gear-second 1.5.7 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +16 -16
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,29 +1,29 @@
1
- (function(Ke,de){typeof exports=="object"&&typeof module<"u"?module.exports=de():typeof define=="function"&&define.amd?define(de):(Ke=typeof globalThis<"u"?globalThis:Ke||self,Ke._gearSecond_=de())})(this,function(){"use strict";var kp=Object.defineProperty;var Ip=(Ke,de,Ge)=>de in Ke?kp(Ke,de,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Ke[de]=Ge;var pl=(Ke,de,Ge)=>(Ip(Ke,typeof de!="symbol"?de+"":de,Ge),Ge);/**
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);/**
2
2
  * @vue/shared v3.4.15
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **/function Ke(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const de={},Ge=[],Ue=()=>{},hl=()=>!1,Pn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),bo=e=>e.startsWith("onUpdate:"),Ce=Object.assign,yo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},gl=Object.prototype.hasOwnProperty,ve=(e,t)=>gl.call(e,t),ee=Array.isArray,Gt=e=>Mn(e)==="[object Map]",Tr=e=>Mn(e)==="[object Set]",le=e=>typeof e=="function",ke=e=>typeof e=="string",Jt=e=>typeof e=="symbol",ye=e=>e!==null&&typeof e=="object",$r=e=>(ye(e)||le(e))&&le(e.then)&&le(e.catch),Er=Object.prototype.toString,Mn=e=>Er.call(e),ml=e=>Mn(e).slice(8,-1),Pr=e=>Mn(e)==="[object Object]",wo=e=>ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,On=Ke(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ln=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},vl=/-(\w)/g,Ne=Ln(e=>e.replace(vl,(t,n)=>n?n.toUpperCase():"")),_l=/\B([A-Z])/g,Ye=Ln(e=>e.replace(_l,"-$1").toLowerCase()),An=Ln(e=>e.charAt(0).toUpperCase()+e.slice(1)),xo=Ln(e=>e?`on${An(e)}`:""),lt=(e,t)=>!Object.is(e,t),zn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},jn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},So=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Co=e=>{const t=ke(e)?Number(e):NaN;return isNaN(t)?e:t};let Mr;const ko=()=>Mr||(Mr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Be(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=ke(o)?xl(o):Be(o);if(r)for(const i in r)t[i]=r[i]}return t}else if(ke(e)||ye(e))return e}const bl=/;(?![^(]*\))/g,yl=/:([^]+)/,wl=/\/\*[^]*?\*\//g;function xl(e){const t={};return e.replace(wl,"").split(bl).forEach(n=>{if(n){const o=n.split(yl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Me(e){let t="";if(ke(e))t=e;else if(ee(e))for(let n=0;n<e.length;n++){const o=Me(e[n]);o&&(t+=o+" ")}else if(ye(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Sl=Ke("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Or(e){return!!e||e===""}const Je=e=>ke(e)?e:e==null?"":ee(e)||ye(e)&&(e.toString===Er||!le(e.toString))?JSON.stringify(e,Lr,2):String(e),Lr=(e,t)=>t&&t.__v_isRef?Lr(e,t.value):Gt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],i)=>(n[Io(o,i)+" =>"]=r,n),{})}:Tr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Io(n))}:Jt(t)?Io(t):ye(t)&&!ee(t)&&!Pr(t)?String(t):t,Io=(e,t="")=>{var n;return Jt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
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};/**
6
6
  * @vue/reactivity v3.4.15
7
7
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
8
  * @license MIT
9
- **/let qe;class Cl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=qe,!t&&qe&&(this.index=(qe.scopes||(qe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=qe;try{return qe=this,t()}finally{qe=n}}}on(){qe=this}off(){qe=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function kl(e,t=qe){t&&t.active&&t.effects.push(e)}function Ar(){return qe}function Il(e){qe&&qe.cleanups.push(e)}let Bt;class To{constructor(t,n,o,r){this.fn=t,this.trigger=n,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,kl(this,r)}get dirty(){if(this._dirtyLevel===1){St();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Tl(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),Ct()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=xt,n=Bt;try{return xt=!0,Bt=this,this._runnings++,zr(this),this.fn()}finally{jr(this),this._runnings--,Bt=n,xt=t}}stop(){var t;this.active&&(zr(this),jr(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Tl(e){return e.value}function zr(e){e._trackId++,e._depsLength=0}function jr(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 xt=!0,$o=0;const Dr=[];function St(){Dr.push(xt),xt=!1}function Ct(){const e=Dr.pop();xt=e===void 0?!0:e}function Eo(){$o++}function Po(){for($o--;!$o&&Mo.length;)Mo.shift()()}function Rr(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 Mo=[];function Vr(e,t,n){Eo();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())}Nr(e),Po()}function Nr(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,Mo.push(t.scheduler))}const Hr=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Oo=new WeakMap,Dt=Symbol(""),Lo=Symbol("");function He(e,t,n){if(xt&&Bt){let o=Oo.get(e);o||Oo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=Hr(()=>o.delete(n))),Rr(Bt,r)}}function gt(e,t,n,o,r,i){const s=Oo.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&ee(e)){const a=Number(o);s.forEach((c,u)=>{(u==="length"||!Jt(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":ee(e)?wo(n)&&l.push(s.get("length")):(l.push(s.get(Dt)),Gt(e)&&l.push(s.get(Lo)));break;case"delete":ee(e)||(l.push(s.get(Dt)),Gt(e)&&l.push(s.get(Lo)));break;case"set":Gt(e)&&l.push(s.get(Dt));break}Eo();for(const a of l)a&&Vr(a,2);Po()}const $l=Ke("__proto__,__v_isRef,__isVue"),Fr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Jt)),Wr=El();function El(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=me(this);for(let i=0,s=this.length;i<s;i++)He(o,"get",i+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(me)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){St(),Eo();const o=me(this)[t].apply(this,n);return Po(),Ct(),o}}),e}function Pl(e){const t=me(this);return He(t,"has",e),t.hasOwnProperty(e)}class Kr{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,o){const r=this._isReadonly,i=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return o===(r?i?Fl:Qr:i?Jr:Gr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=ee(t);if(!r){if(s&&ve(Wr,n))return Reflect.get(Wr,n,o);if(n==="hasOwnProperty")return Pl}const l=Reflect.get(t,n,o);return(Jt(n)?Fr.has(n):$l(n))||(r||He(t,"get",n),i)?l:Oe(l)?s&&wo(n)?l:l.value:ye(l)?r?ei(l):an(l):l}}class Ur extends Kr{constructor(t=!1){super(!1,t)}set(t,n,o,r){let i=t[n];if(!this._shallow){const a=en(i);if(!Fn(o)&&!en(o)&&(i=me(i),o=me(o)),!ee(t)&&Oe(i)&&!Oe(o))return a?!1:(i.value=o,!0)}const s=ee(t)&&wo(n)?Number(n)<t.length:ve(t,n),l=Reflect.set(t,n,o,r);return t===me(r)&&(s?lt(o,i)&&gt(t,"set",n,o):gt(t,"add",n,o)),l}deleteProperty(t,n){const o=ve(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(!Jt(n)||!Fr.has(n))&&He(t,"has",n),o}ownKeys(t){return He(t,"iterate",ee(t)?"length":Dt),Reflect.ownKeys(t)}}class Ml extends Kr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ol=new Ur,Ll=new Ml,Al=new Ur(!0),Ao=e=>e,Bn=e=>Reflect.getPrototypeOf(e);function Dn(e,t,n=!1,o=!1){e=e.__v_raw;const r=me(e),i=me(t);n||(lt(t,i)&&He(r,"get",t),He(r,"get",i));const{has:s}=Bn(r),l=o?Ao:n?Bo:cn;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 Rn(e,t=!1){const n=this.__v_raw,o=me(n),r=me(e);return t||(lt(e,r)&&He(o,"has",e),He(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Vn(e,t=!1){return e=e.__v_raw,!t&&He(me(e),"iterate",Dt),Reflect.get(e,"size",e)}function Yr(e){e=me(e);const t=me(this);return Bn(t).has.call(t,e)||(t.add(e),gt(t,"add",e,e)),this}function qr(e,t){t=me(t);const n=me(this),{has:o,get:r}=Bn(n);let i=o.call(n,e);i||(e=me(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?lt(t,s)&&gt(n,"set",e,t):gt(n,"add",e,t),this}function Xr(e){const t=me(this),{has:n,get:o}=Bn(t);let r=n.call(t,e);r||(e=me(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&gt(t,"delete",e,void 0),i}function Zr(){const e=me(this),t=e.size!==0,n=e.clear();return t&&gt(e,"clear",void 0,void 0),n}function Nn(e,t){return function(o,r){const i=this,s=i.__v_raw,l=me(s),a=t?Ao:e?Bo:cn;return!e&&He(l,"iterate",Dt),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=me(r),s=Gt(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...o),u=n?Ao:t?Bo:cn;return!t&&He(i,"iterate",a?Lo:Dt),{next(){const{value:d,done:h}=c.next();return h?{value:d,done:h}:{value:l?[u(d[0]),u(d[1])]:u(d),done:h}},[Symbol.iterator](){return this}}}}function kt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function zl(){const e={get(i){return Dn(this,i)},get size(){return Vn(this)},has:Rn,add:Yr,set:qr,delete:Xr,clear:Zr,forEach:Nn(!1,!1)},t={get(i){return Dn(this,i,!1,!0)},get size(){return Vn(this)},has:Rn,add:Yr,set:qr,delete:Xr,clear:Zr,forEach:Nn(!1,!0)},n={get(i){return Dn(this,i,!0)},get size(){return Vn(this,!0)},has(i){return Rn.call(this,i,!0)},add:kt("add"),set:kt("set"),delete:kt("delete"),clear:kt("clear"),forEach:Nn(!0,!1)},o={get(i){return Dn(this,i,!0,!0)},get size(){return Vn(this,!0)},has(i){return Rn.call(this,i,!0)},add:kt("add"),set:kt("set"),delete:kt("delete"),clear:kt("clear"),forEach:Nn(!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[jl,Bl,Dl,Rl]=zl();function zo(e,t){const n=t?e?Rl:Dl:e?Bl:jl;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ve(n,r)&&r in o?n:o,r,i)}const Vl={get:zo(!1,!1)},Nl={get:zo(!1,!0)},Hl={get:zo(!0,!1)},Gr=new WeakMap,Jr=new WeakMap,Qr=new WeakMap,Fl=new WeakMap;function Wl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Kl(e){return e.__v_skip||!Object.isExtensible(e)?0:Wl(ml(e))}function an(e){return en(e)?e:jo(e,!1,Ol,Vl,Gr)}function Ul(e){return jo(e,!1,Al,Nl,Jr)}function ei(e){return jo(e,!0,Ll,Hl,Qr)}function jo(e,t,n,o,r){if(!ye(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Kl(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return r.set(e,l),l}function Qt(e){return en(e)?Qt(e.__v_raw):!!(e&&e.__v_isReactive)}function en(e){return!!(e&&e.__v_isReadonly)}function Fn(e){return!!(e&&e.__v_isShallow)}function ti(e){return Qt(e)||en(e)}function me(e){const t=e&&e.__v_raw;return t?me(t):e}function ni(e){return jn(e,"__v_skip",!0),e}const cn=e=>ye(e)?an(e):e,Bo=e=>ye(e)?ei(e):e;class oi{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new To(()=>t(this._value),()=>un(this,1),()=>this.dep&&Nr(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=me(this);return(!t._cacheable||t.effect.dirty)&&lt(t._value,t._value=t.effect.run())&&un(t,2),Do(t),t.effect._dirtyLevel>=1&&un(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Yl(e,t,n=!1){let o,r;const i=le(e);return i?(o=e,r=Ue):(o=e.get,r=e.set),new oi(o,r,i||!r,n)}function Do(e){xt&&Bt&&(e=me(e),Rr(Bt,e.dep||(e.dep=Hr(()=>e.dep=void 0,e instanceof oi?e:void 0))))}function un(e,t=2,n){e=me(e);const o=e.dep;o&&Vr(o,t)}function Oe(e){return!!(e&&e.__v_isRef===!0)}function G(e){return ql(e,!1)}function ql(e,t){return Oe(e)?e:new Xl(e,t)}class Xl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:me(t),this._value=n?t:cn(t)}get value(){return Do(this),this._value}set value(t){const n=this.__v_isShallow||Fn(t)||en(t);t=n?t:me(t),lt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:cn(t),un(this,2))}}function te(e){return Oe(e)?e.value:e}const Zl={get:(e,t,n)=>te(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Oe(r)&&!Oe(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function ri(e){return Qt(e)?e:new Proxy(e,Zl)}class Gl{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>Do(this),()=>un(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function Jl(e){return new Gl(e)}/**
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)}/**
10
10
  * @vue/runtime-core v3.4.15
11
11
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
12
  * @license MIT
13
- **/const fn=[];function $p(e,...t){St();const n=fn.length?fn[fn.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=Ql();if(o)mt(o,n,11,[e+t.join(""),n&&n.proxy,r.map(({vnode:i})=>`at <${Zi(n,i.type)}>`).join(`
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
14
  `),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(`
15
- `,...ea(r)),console.warn(...i)}Ct()}function Ql(){let e=fn[fn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function ea(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
16
- `],...ta(n))}),t}function ta({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,r=` at <${Zi(e.component,e.type,o)}`,i=">"+n;return e.props?[r,...na(e.props),i]:[r+i]}function na(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...ii(o,e[o]))}),n.length>3&&t.push(" ..."),t}function ii(e,t,n){return ke(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Oe(t)?(t=ii(e,me(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):le(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=me(t),n?t:[`${e}=`,t])}function mt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){Wn(i,t,n)}return r}function Qe(e,t,n,o){if(le(e)){const i=mt(e,t,n,o);return i&&$r(i)&&i.catch(s=>{Wn(s,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(Qe(e[i],t,n,o));return r}function Wn(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){mt(a,null,10,[e,s,l]);return}}oa(e,n,r,o)}function oa(e,t,n,o=!0){console.error(e)}let dn=!1,Ro=!1;const je=[];let at=0;const tn=[];let It=null,Rt=0;const si=Promise.resolve();let Vo=null;function vt(e){const t=Vo||si;return e?t.then(this?e.bind(this):e):t}function ra(e){let t=at+1,n=je.length;for(;t<n;){const o=t+n>>>1,r=je[o],i=pn(r);i<e||i===e&&r.pre?t=o+1:n=o}return t}function No(e){(!je.length||!je.includes(e,dn&&e.allowRecurse?at+1:at))&&(e.id==null?je.push(e):je.splice(ra(e.id),0,e),li())}function li(){!dn&&!Ro&&(Ro=!0,Vo=si.then(ui))}function ia(e){const t=je.indexOf(e);t>at&&je.splice(t,1)}function sa(e){ee(e)?tn.push(...e):(!It||!It.includes(e,e.allowRecurse?Rt+1:Rt))&&tn.push(e),li()}function ai(e,t,n=dn?at+1:0){for(;n<je.length;n++){const o=je[n];if(o&&o.pre){if(e&&o.id!==e.uid)continue;je.splice(n,1),n--,o()}}}function ci(e){if(tn.length){const t=[...new Set(tn)].sort((n,o)=>pn(n)-pn(o));if(tn.length=0,It){It.push(...t);return}for(It=t,Rt=0;Rt<It.length;Rt++)It[Rt]();It=null,Rt=0}}const pn=e=>e.id==null?1/0:e.id,la=(e,t)=>{const n=pn(e)-pn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ui(e){Ro=!1,dn=!0,je.sort(la);const t=Ue;try{for(at=0;at<je.length;at++){const n=je[at];n&&n.active!==!1&&mt(n,null,14)}}finally{at=0,je.length=0,ci(),dn=!1,Vo=null,(je.length||tn.length)&&ui()}}function aa(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||de;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:d,trim:h}=o[u]||de;h&&(r=n.map(x=>ke(x)?x.trim():x)),d&&(r=n.map(So))}let l,a=o[l=xo(t)]||o[l=xo(Ne(t))];!a&&i&&(a=o[l=xo(Ye(t))]),a&&Qe(a,e,6,r);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Qe(c,e,6,r)}}function fi(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let s={},l=!1;if(!le(e)){const a=c=>{const u=fi(c,t,!0);u&&(l=!0,Ce(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(ye(e)&&o.set(e,null),null):(ee(i)?i.forEach(a=>s[a]=null):Ce(s,i),ye(e)&&o.set(e,s),s)}function Kn(e,t){return!e||!Pn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ve(e,t[0].toLowerCase()+t.slice(1))||ve(e,Ye(t))||ve(e,t))}let Le=null,di=null;function Un(e){const t=Le;return Le=e,di=e&&e.type.__scopeId||null,t}function fe(e,t=Le,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Ni(-1);const i=Un(t);let s;try{s=e(...r)}finally{Un(i),o._d&&Ni(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function Ep(){}function Ho(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:d,data:h,setupState:x,ctx:S,inheritAttrs:v}=e;let z,j;const re=Un(e);try{if(n.shapeFlag&4){const $=r||o,w=$;z=ct(u.call(w,$,d,i,x,h,S)),j=a}else{const $=t;z=ct($.length>1?$(i,{attrs:a,slots:l,emit:c}):$(i,null)),j=t.props?a:ca(a)}}catch($){_n.length=0,Wn($,e,1),z=Q(nt)}let C=z;if(j&&v!==!1){const $=Object.keys(j),{shapeFlag:w}=C;$.length&&w&7&&(s&&$.some(bo)&&(j=ua(j,s)),C=$t(C,j))}return n.dirs&&(C=$t(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),z=C,Un(re),z}const ca=e=>{let t;for(const n in e)(n==="class"||n==="style"||Pn(n))&&((t||(t={}))[n]=e[n]);return t},ua=(e,t)=>{const n={};for(const o in e)(!bo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function fa(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?pi(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const h=u[d];if(s[h]!==o[h]&&!Kn(c,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?pi(o,s,c):!0:!!s;return!1}function pi(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]&&!Kn(n,i))return!0}return!1}function da({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=n,t=t.parent;else break}}const hi="components",gi=Symbol.for("v-ndc");function pa(e){return ke(e)?ha(hi,e,!1)||e:e||gi}function ha(e,t,n=!0,o=!1){const r=Le||ze;if(r){const i=r.type;if(e===hi){const l=Xi(i,!1);if(l&&(l===t||l===Ne(t)||l===An(Ne(t))))return i}const s=mi(r[e]||i[e],t)||mi(r.appContext[e],t);return!s&&o?i:s}}function mi(e,t){return e&&(e[t]||e[Ne(t)]||e[An(Ne(t))])}const ga=e=>e.__isSuspense;function ma(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):sa(e)}const va=Symbol.for("v-scx"),_a=()=>Ft(va);function ba(e,t){return Fo(e,null,{flush:"sync"})}const Yn={};function _e(e,t,n){return Fo(e,t,n)}function Fo(e,t,{immediate:n,deep:o,flush:r,once:i,onTrack:s,onTrigger:l}=de){if(t&&i){const m=t;t=(...W)=>{m(...W),w()}}const a=ze,c=m=>o===!0?m:Vt(m,o===!1?1:void 0);let u,d=!1,h=!1;if(Oe(e)?(u=()=>e.value,d=Fn(e)):Qt(e)?(u=()=>c(e),d=!0):ee(e)?(h=!0,d=e.some(m=>Qt(m)||Fn(m)),u=()=>e.map(m=>{if(Oe(m))return m.value;if(Qt(m))return c(m);if(le(m))return mt(m,a,2)})):le(e)?t?u=()=>mt(e,a,2):u=()=>(x&&x(),Qe(e,a,3,[S])):u=Ue,t&&o){const m=u;u=()=>Vt(m())}let x,S=m=>{x=C.onStop=()=>{mt(m,a,4),x=C.onStop=void 0}},v;if(ao)if(S=Ue,t?n&&Qe(t,a,3,[u(),h?[]:void 0,S]):u(),r==="sync"){const m=_a();v=m.__watcherHandles||(m.__watcherHandles=[])}else return Ue;let z=h?new Array(e.length).fill(Yn):Yn;const j=()=>{if(!(!C.active||!C.dirty))if(t){const m=C.run();(o||d||(h?m.some((W,_)=>lt(W,z[_])):lt(m,z)))&&(x&&x(),Qe(t,a,3,[m,z===Yn?void 0:h&&z[0]===Yn?[]:z,S]),z=m)}else C.run()};j.allowRecurse=!!t;let re;r==="sync"?re=j:r==="post"?re=()=>Fe(j,a&&a.suspense):(j.pre=!0,a&&(j.id=a.uid),re=()=>No(j));const C=new To(u,Ue,re),$=Ar(),w=()=>{C.stop(),$&&yo($.effects,C)};return t?n?j():z=C.run():r==="post"?Fe(C.run.bind(C),a&&a.suspense):C.run(),v&&v.push(w),w}function ya(e,t,n){const o=this.proxy,r=ke(e)?e.includes(".")?vi(o,e):()=>o[e]:e.bind(o,o);let i;le(t)?i=t:(i=t.handler,n=t);const s=yn(this),l=Fo(r,i.bind(o),n);return s(),l}function vi(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 Vt(e,t,n=0,o){if(!ye(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),Oe(e))Vt(e.value,t,n,o);else if(ee(e))for(let r=0;r<e.length;r++)Vt(e[r],t,n,o);else if(Tr(e)||Gt(e))e.forEach(r=>{Vt(r,t,n,o)});else if(Pr(e))for(const r in e)Vt(e[r],t,n,o);return e}function _t(e,t){if(Le===null)return e;const n=co(Le)||Le.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,s,l,a=de]=t[r];i&&(le(i)&&(i={mounted:i,updated:i}),i.deep&&Vt(s),o.push({dir:i,instance:n,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Nt(e,t,n,o){const r=e.dirs,i=t&&t.dirs;for(let s=0;s<r.length;s++){const l=r[s];i&&(l.oldValue=i[s].value);let a=l.dir[o];a&&(St(),Qe(a,n,8,[e.el,l,e,t]),Ct())}}const Tt=Symbol("_leaveCb"),qn=Symbol("_enterCb");function wa(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return tt(()=>{e.isMounted=!0}),Gn(()=>{e.isUnmounting=!0}),e}const et=[Function,Array],_i={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},xa={name:"BaseTransition",props:_i,setup(e,{slots:t}){const n=rr(),o=wa();let r;return()=>{const i=t.default&&wi(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const v of i)if(v.type!==nt){s=v;break}}const l=me(e),{mode:a}=l;if(o.isLeaving)return Ko(s);const c=yi(s);if(!c)return Ko(s);const u=Wo(c,l,o,n);Uo(c,u);const d=n.subTree,h=d&&yi(d);let x=!1;const{getTransitionKey:S}=c.type;if(S){const v=S();r===void 0?r=v:v!==r&&(r=v,x=!0)}if(h&&h.type!==nt&&(!Kt(c,h)||x)){const v=Wo(h,l,o,n);if(Uo(h,v),a==="out-in")return o.isLeaving=!0,v.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Ko(s);a==="in-out"&&c.type!==nt&&(v.delayLeave=(z,j,re)=>{const C=bi(o,h);C[String(h.key)]=h,z[Tt]=()=>{j(),z[Tt]=void 0,delete u.delayedLeave},u.delayedLeave=re})}return s}}};function bi(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 Wo(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:h,onAfterLeave:x,onLeaveCancelled:S,onBeforeAppear:v,onAppear:z,onAfterAppear:j,onAppearCancelled:re}=t,C=String(e.key),$=bi(n,e),w=(_,Y)=>{_&&Qe(_,o,9,Y)},m=(_,Y)=>{const B=Y[1];w(_,Y),ee(_)?_.every(se=>se.length<=1)&&B():_.length<=1&&B()},W={mode:i,persisted:s,beforeEnter(_){let Y=l;if(!n.isMounted)if(r)Y=v||l;else return;_[Tt]&&_[Tt](!0);const B=$[C];B&&Kt(e,B)&&B.el[Tt]&&B.el[Tt](),w(Y,[_])},enter(_){let Y=a,B=c,se=u;if(!n.isMounted)if(r)Y=z||a,B=j||c,se=re||u;else return;let N=!1;const ie=_[qn]=pe=>{N||(N=!0,pe?w(se,[_]):w(B,[_]),W.delayedLeave&&W.delayedLeave(),_[qn]=void 0)};Y?m(Y,[_,ie]):ie()},leave(_,Y){const B=String(e.key);if(_[qn]&&_[qn](!0),n.isUnmounting)return Y();w(d,[_]);let se=!1;const N=_[Tt]=ie=>{se||(se=!0,Y(),ie?w(S,[_]):w(x,[_]),_[Tt]=void 0,$[B]===e&&delete $[B])};$[B]=e,h?m(h,[_,N]):N()},clone(_){return Wo(_,t,n,o)}};return W}function Ko(e){if(Xn(e))return e=$t(e),e.children=null,e}function yi(e){return Xn(e)?e.children?e.children[0]:void 0:e}function Uo(e,t){e.shapeFlag&6&&e.component?Uo(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function wi(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===Ie?(s.patchFlag&128&&r++,o=o.concat(wi(s.children,t,l))):(t||s.type!==nt)&&o.push(l!=null?$t(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 Te(e,t){return le(e)?(()=>Ce({name:e.name},t,{setup:e}))():e}const hn=e=>!!e.type.__asyncLoader,Xn=e=>e.type.__isKeepAlive;function Sa(e,t){xi(e,"a",t)}function Ca(e,t){xi(e,"da",t)}function xi(e,t,n=ze){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Zn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Xn(r.parent.vnode)&&ka(o,t,n,r),r=r.parent}}function ka(e,t,n,o){const r=Zn(t,e,o,!0);it(()=>{yo(o[t],r)},n)}function Zn(e,t,n=ze,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;St();const l=yn(n),a=Qe(t,n,e,s);return l(),Ct(),a});return o?r.unshift(i):r.push(i),i}}const bt=e=>(t,n=ze)=>(!ao||e==="sp")&&Zn(e,(...o)=>t(...o),n),Ia=bt("bm"),tt=bt("m"),Ta=bt("bu"),$a=bt("u"),Gn=bt("bum"),it=bt("um"),Ea=bt("sp"),Pa=bt("rtg"),Ma=bt("rtc");function Oa(e,t=ze){Zn("ec",e,t)}function gn(e,t,n,o){let r;const i=n&&n[o];if(ee(e)||ke(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(ye(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 Si(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(ee(o))for(let r=0;r<o.length;r++)e[o[r].name]=o[r].fn;else o&&(e[o.name]=o.key?(...r)=>{const i=o.fn(...r);return i&&(i.key=o.key),i}:o.fn)}return e}function $e(e,t,n={},o,r){if(Le.isCE||Le.parent&&hn(Le.parent)&&Le.parent.isCE)return t!=="default"&&(n.name=t),Q("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),R();const s=i&&Ci(i(n)),l=xe(Ie,{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===Ie&&!Ci(t.children)):!0)?e:null}const Yo=e=>e?Ki(e)?co(e)||e.proxy:Yo(e.parent):null,mn=Ce(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=>Yo(e.parent),$root:e=>Yo(e.root),$emit:e=>e.emit,$options:e=>Zo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,No(e.update)}),$nextTick:e=>e.n||(e.n=vt.bind(e.proxy)),$watch:e=>ya.bind(e)}),qo=(e,t)=>e!==de&&!e.__isScriptSetup&&ve(e,t),La={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 x=s[t];if(x!==void 0)switch(x){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(qo(o,t))return s[t]=1,o[t];if(r!==de&&ve(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&ve(c,t))return s[t]=3,i[t];if(n!==de&&ve(n,t))return s[t]=4,n[t];Xo&&(s[t]=0)}}const u=mn[t];let d,h;if(u)return t==="$attrs"&&He(e,"get",t),u(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==de&&ve(n,t))return s[t]=4,n[t];if(h=a.config.globalProperties,ve(h,t))return h[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return qo(r,t)?(r[t]=n,!0):o!==de&&ve(o,t)?(o[t]=n,!0):ve(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!==de&&ve(e,s)||qo(t,s)||(l=i[0])&&ve(l,s)||ve(o,s)||ve(mn,s)||ve(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ve(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Jn(e){return ee(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Ht(e,t){return!e||!t?e||t:ee(e)&&ee(t)?e.concat(t):Ce({},Jn(e),Jn(t))}let Xo=!0;function Aa(e){const t=Zo(e),n=e.proxy,o=e.ctx;Xo=!1,t.beforeCreate&&ki(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:x,updated:S,activated:v,deactivated:z,beforeDestroy:j,beforeUnmount:re,destroyed:C,unmounted:$,render:w,renderTracked:m,renderTriggered:W,errorCaptured:_,serverPrefetch:Y,expose:B,inheritAttrs:se,components:N,directives:ie,filters:pe}=t;if(c&&za(c,o,null),s)for(const y in s){const H=s[y];le(H)&&(o[y]=H.bind(n))}if(r){const y=r.call(n,n);ye(y)&&(e.data=an(y))}if(Xo=!0,i)for(const y in i){const H=i[y],M=le(H)?H.bind(n,n):le(H.get)?H.get.bind(n,n):Ue,K=!le(H)&&le(H.set)?H.set.bind(n):Ue,O=ae({get:M,set:K});Object.defineProperty(o,y,{enumerable:!0,configurable:!0,get:()=>O.value,set:D=>O.value=D})}if(l)for(const y in l)Ii(l[y],o,n,y);if(a){const y=le(a)?a.call(n):a;Reflect.ownKeys(y).forEach(H=>{to(H,y[H])})}u&&ki(u,e,"c");function J(y,H){ee(H)?H.forEach(M=>y(M.bind(n))):H&&y(H.bind(n))}if(J(Ia,d),J(tt,h),J(Ta,x),J($a,S),J(Sa,v),J(Ca,z),J(Oa,_),J(Ma,m),J(Pa,W),J(Gn,re),J(it,$),J(Ea,Y),ee(B))if(B.length){const y=e.exposed||(e.exposed={});B.forEach(H=>{Object.defineProperty(y,H,{get:()=>n[H],set:M=>n[H]=M})})}else e.exposed||(e.exposed={});w&&e.render===Ue&&(e.render=w),se!=null&&(e.inheritAttrs=se),N&&(e.components=N),ie&&(e.directives=ie)}function za(e,t,n=Ue){ee(e)&&(e=Go(e));for(const o in e){const r=e[o];let i;ye(r)?"default"in r?i=Ft(r.from||o,r.default,!0):i=Ft(r.from||o):i=Ft(r),Oe(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function ki(e,t,n){Qe(ee(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ii(e,t,n,o){const r=o.includes(".")?vi(n,o):()=>n[o];if(ke(e)){const i=t[e];le(i)&&_e(r,i)}else if(le(e))_e(r,e.bind(n));else if(ye(e))if(ee(e))e.forEach(i=>Ii(i,t,n,o));else{const i=le(e.handler)?e.handler.bind(n):t[e.handler];le(i)&&_e(r,i,e)}}function Zo(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=>Qn(a,c,s,!0)),Qn(a,t,s)),ye(t)&&i.set(t,a),a}function Qn(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Qn(e,i,n,!0),r&&r.forEach(s=>Qn(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=ja[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const ja={data:Ti,props:$i,emits:$i,methods:vn,computed:vn,beforeCreate:De,created:De,beforeMount:De,mounted:De,beforeUpdate:De,updated:De,beforeDestroy:De,beforeUnmount:De,destroyed:De,unmounted:De,activated:De,deactivated:De,errorCaptured:De,serverPrefetch:De,components:vn,directives:vn,watch:Da,provide:Ti,inject:Ba};function Ti(e,t){return t?e?function(){return Ce(le(e)?e.call(this,this):e,le(t)?t.call(this,this):t)}:t:e}function Ba(e,t){return vn(Go(e),Go(t))}function Go(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function De(e,t){return e?[...new Set([].concat(e,t))]:t}function vn(e,t){return e?Ce(Object.create(null),e,t):t}function $i(e,t){return e?ee(e)&&ee(t)?[...new Set([...e,...t])]:Ce(Object.create(null),Jn(e),Jn(t??{})):t}function Da(e,t){if(!e)return t;if(!t)return e;const n=Ce(Object.create(null),e);for(const o in t)n[o]=De(e[o],t[o]);return n}function Ei(){return{app:null,config:{isNativeTag:hl,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 Ra=0;function Va(e,t){return function(o,r=null){le(o)||(o=Ce({},o)),r!=null&&!ye(r)&&(r=null);const i=Ei(),s=new WeakSet;let l=!1;const a=i.app={_uid:Ra++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:fc,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&le(c.install)?(s.add(c),c.install(a,...u)):le(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,d){if(!l){const h=Q(o,r);return h.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),u&&t?t(h,c):e(h,c,d),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(ze){let n=ze.provides;const o=ze.parent&&ze.parent.provides;o===n&&(n=ze.provides=Object.create(o)),n[e]=t}}function Ft(e,t,n=!1){const o=ze||Le;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&&le(t)?t.call(o&&o.proxy):t}}function Na(e,t,n,o=!1){const r={},i={};jn(i,ro,1),e.propsDefaults=Object.create(null),Pi(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:Ul(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Ha(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=me(r),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let h=u[d];if(Kn(e.emitsOptions,h))continue;const x=t[h];if(a)if(ve(i,h))x!==i[h]&&(i[h]=x,c=!0);else{const S=Ne(h);r[S]=Jo(a,l,S,x,e,!1)}else x!==i[h]&&(i[h]=x,c=!0)}}}else{Pi(e,t,r,i)&&(c=!0);let u;for(const d in l)(!t||!ve(t,d)&&((u=Ye(d))===d||!ve(t,u)))&&(a?n&&(n[d]!==void 0||n[u]!==void 0)&&(r[d]=Jo(a,l,d,void 0,e,!0)):delete r[d]);if(i!==l)for(const d in i)(!t||!ve(t,d))&&(delete i[d],c=!0)}c&&gt(e,"set","$attrs")}function Pi(e,t,n,o){const[r,i]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(On(a))continue;const c=t[a];let u;r&&ve(r,u=Ne(a))?!i||!i.includes(u)?n[u]=c:(l||(l={}))[u]=c:Kn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(i){const a=me(n),c=l||de;for(let u=0;u<i.length;u++){const d=i[u];n[d]=Jo(r,a,d,c[d],e,!ve(c,d))}}return s}function Jo(e,t,n,o,r,i){const s=e[n];if(s!=null){const l=ve(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&le(a)){const{propsDefaults:c}=r;if(n in c)o=c[n];else{const u=yn(r);o=c[n]=a.call(null,t),u()}}else o=a}s[0]&&(i&&!l?o=!1:s[1]&&(o===""||o===Ye(n))&&(o=!0))}return o}function Mi(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(!le(e)){const u=d=>{a=!0;const[h,x]=Mi(d,t,!0);Ce(s,h),x&&l.push(...x)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return ye(e)&&o.set(e,Ge),Ge;if(ee(i))for(let u=0;u<i.length;u++){const d=Ne(i[u]);Oi(d)&&(s[d]=de)}else if(i)for(const u in i){const d=Ne(u);if(Oi(d)){const h=i[u],x=s[d]=ee(h)||le(h)?{type:h}:Ce({},h);if(x){const S=zi(Boolean,x.type),v=zi(String,x.type);x[0]=S>-1,x[1]=v<0||S<v,(S>-1||ve(x,"default"))&&l.push(d)}}}const c=[s,l];return ye(e)&&o.set(e,c),c}function Oi(e){return e[0]!=="$"}function Li(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ai(e,t){return Li(e)===Li(t)}function zi(e,t){return ee(t)?t.findIndex(n=>Ai(n,e)):le(t)&&Ai(t,e)?0:-1}const ji=e=>e[0]==="_"||e==="$stable",Qo=e=>ee(e)?e.map(ct):[ct(e)],Fa=(e,t,n)=>{if(t._n)return t;const o=fe((...r)=>Qo(t(...r)),n);return o._c=!1,o},Bi=(e,t,n)=>{const o=e._ctx;for(const r in e){if(ji(r))continue;const i=e[r];if(le(i))t[r]=Fa(r,i,o);else if(i!=null){const s=Qo(i);t[r]=()=>s}}},Di=(e,t)=>{const n=Qo(t);e.slots.default=()=>n},Wa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=me(t),jn(t,"_",n)):Bi(t,e.slots={})}else e.slots={},t&&Di(e,t);jn(e.slots,ro,1)},Ka=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=de;if(o.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(Ce(r,t),!n&&l===1&&delete r._):(i=!t.$stable,Bi(t,r)),s=t}else t&&(Di(e,t),s={default:1});if(i)for(const l in r)!ji(l)&&s[l]==null&&delete r[l]};function er(e,t,n,o,r=!1){if(ee(e)){e.forEach((h,x)=>er(h,t&&(ee(t)?t[x]:t),n,o,r));return}if(hn(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===de?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(ke(c)?(u[c]=null,ve(d,c)&&(d[c]=null)):Oe(c)&&(c.value=null)),le(a))mt(a,l,12,[s,u]);else{const h=ke(a),x=Oe(a),S=e.f;if(h||x){const v=()=>{if(S){const z=h?ve(d,a)?d[a]:u[a]:a.value;r?ee(z)&&yo(z,i):ee(z)?z.includes(i)||z.push(i):h?(u[a]=[i],ve(d,a)&&(d[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else h?(u[a]=s,ve(d,a)&&(d[a]=s)):x&&(a.value=s,e.k&&(u[e.k]=s))};r||S?v():(v.id=-1,Fe(v,n))}}}function Ua(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(ko().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Fe=ma;function Ya(e){return qa(e)}function qa(e,t){Ua();const n=ko();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:h,setScopeId:x=Ue,insertStaticContent:S}=e,v=(f,p,b,I=null,T=null,L=null,F=void 0,A=null,V=!!p.dynamicChildren)=>{if(f===p)return;f&&!Kt(f,p)&&(I=Se(f),D(f,T,L,!0),f=null),p.patchFlag===-2&&(V=!1,p.dynamicChildren=null);const{type:E,ref:U,shapeFlag:g}=p;switch(E){case no:z(f,p,b,I);break;case nt:j(f,p,b,I);break;case nr:f==null&&re(p,b,I,F);break;case Ie:N(f,p,b,I,T,L,F,A,V);break;default:g&1?w(f,p,b,I,T,L,F,A,V):g&6?ie(f,p,b,I,T,L,F,A,V):(g&64||g&128)&&E.process(f,p,b,I,T,L,F,A,V,dt)}U!=null&&T&&er(U,f&&f.ref,L,p||f,!p)},z=(f,p,b,I)=>{if(f==null)o(p.el=l(p.children),b,I);else{const T=p.el=f.el;p.children!==f.children&&c(T,p.children)}},j=(f,p,b,I)=>{f==null?o(p.el=a(p.children||""),b,I):p.el=f.el},re=(f,p,b,I)=>{[f.el,f.anchor]=S(f.children,p,b,I,f.el,f.anchor)},C=({el:f,anchor:p},b,I)=>{let T;for(;f&&f!==p;)T=h(f),o(f,b,I),f=T;o(p,b,I)},$=({el:f,anchor:p})=>{let b;for(;f&&f!==p;)b=h(f),r(f),f=b;r(p)},w=(f,p,b,I,T,L,F,A,V)=>{p.type==="svg"?F="svg":p.type==="math"&&(F="mathml"),f==null?m(p,b,I,T,L,F,A,V):Y(f,p,T,L,F,A,V)},m=(f,p,b,I,T,L,F,A)=>{let V,E;const{props:U,shapeFlag:g,transition:k,dirs:q}=f;if(V=f.el=s(f.type,L,U&&U.is,U),g&8?u(V,f.children):g&16&&_(f.children,V,null,I,T,tr(f,L),F,A),q&&Nt(f,null,I,"created"),W(V,f,f.scopeId,F,I),U){for(const he in U)he!=="value"&&!On(he)&&i(V,he,null,U[he],L,f.children,I,T,ue);"value"in U&&i(V,"value",null,U.value,L),(E=U.onVnodeBeforeMount)&&ut(E,I,f)}q&&Nt(f,null,I,"beforeMount");const oe=Xa(T,k);oe&&k.beforeEnter(V),o(V,p,b),((E=U&&U.onVnodeMounted)||oe||q)&&Fe(()=>{E&&ut(E,I,f),oe&&k.enter(V),q&&Nt(f,null,I,"mounted")},T)},W=(f,p,b,I,T)=>{if(b&&x(f,b),I)for(let L=0;L<I.length;L++)x(f,I[L]);if(T){let L=T.subTree;if(p===L){const F=T.vnode;W(f,F,F.scopeId,F.slotScopeIds,T.parent)}}},_=(f,p,b,I,T,L,F,A,V=0)=>{for(let E=V;E<f.length;E++){const U=f[E]=A?Pt(f[E]):ct(f[E]);v(null,U,p,b,I,T,L,F,A)}},Y=(f,p,b,I,T,L,F)=>{const A=p.el=f.el;let{patchFlag:V,dynamicChildren:E,dirs:U}=p;V|=f.patchFlag&16;const g=f.props||de,k=p.props||de;let q;if(b&&Wt(b,!1),(q=k.onVnodeBeforeUpdate)&&ut(q,b,p,f),U&&Nt(p,f,b,"beforeUpdate"),b&&Wt(b,!0),E?B(f.dynamicChildren,E,A,b,I,tr(p,T),L):F||H(f,p,A,null,b,I,tr(p,T),L,!1),V>0){if(V&16)se(A,p,g,k,b,I,T);else if(V&2&&g.class!==k.class&&i(A,"class",null,k.class,T),V&4&&i(A,"style",g.style,k.style,T),V&8){const oe=p.dynamicProps;for(let he=0;he<oe.length;he++){const be=oe[he],Pe=g[be],Ze=k[be];(Ze!==Pe||be==="value")&&i(A,be,Pe,Ze,T,f.children,b,I,ue)}}V&1&&f.children!==p.children&&u(A,p.children)}else!F&&E==null&&se(A,p,g,k,b,I,T);((q=k.onVnodeUpdated)||U)&&Fe(()=>{q&&ut(q,b,p,f),U&&Nt(p,f,b,"updated")},I)},B=(f,p,b,I,T,L,F)=>{for(let A=0;A<p.length;A++){const V=f[A],E=p[A],U=V.el&&(V.type===Ie||!Kt(V,E)||V.shapeFlag&70)?d(V.el):b;v(V,E,U,null,I,T,L,F,!0)}},se=(f,p,b,I,T,L,F)=>{if(b!==I){if(b!==de)for(const A in b)!On(A)&&!(A in I)&&i(f,A,b[A],null,F,p.children,T,L,ue);for(const A in I){if(On(A))continue;const V=I[A],E=b[A];V!==E&&A!=="value"&&i(f,A,E,V,F,p.children,T,L,ue)}"value"in I&&i(f,"value",b.value,I.value,F)}},N=(f,p,b,I,T,L,F,A,V)=>{const E=p.el=f?f.el:l(""),U=p.anchor=f?f.anchor:l("");let{patchFlag:g,dynamicChildren:k,slotScopeIds:q}=p;q&&(A=A?A.concat(q):q),f==null?(o(E,b,I),o(U,b,I),_(p.children||[],b,U,T,L,F,A,V)):g>0&&g&64&&k&&f.dynamicChildren?(B(f.dynamicChildren,k,b,T,L,F,A),(p.key!=null||T&&p===T.subTree)&&Ri(f,p,!0)):H(f,p,b,U,T,L,F,A,V)},ie=(f,p,b,I,T,L,F,A,V)=>{p.slotScopeIds=A,f==null?p.shapeFlag&512?T.ctx.activate(p,b,I,F,V):pe(p,b,I,T,L,F,V):P(f,p,V)},pe=(f,p,b,I,T,L,F)=>{const A=f.component=oc(f,I,T);if(Xn(f)&&(A.ctx.renderer=dt),rc(A),A.asyncDep){if(T&&T.registerDep(A,J),!f.el){const V=A.subTree=Q(nt);j(null,V,p,b)}}else J(A,f,p,b,T,L,F)},P=(f,p,b)=>{const I=p.component=f.component;if(fa(f,p,b))if(I.asyncDep&&!I.asyncResolved){y(I,p,b);return}else I.next=p,ia(I.update),I.effect.dirty=!0,I.update();else p.el=f.el,I.vnode=p},J=(f,p,b,I,T,L,F)=>{const A=()=>{if(f.isMounted){let{next:U,bu:g,u:k,parent:q,vnode:oe}=f;{const jt=Vi(f);if(jt){U&&(U.el=oe.el,y(f,U,F)),jt.asyncDep.then(()=>{f.isUnmounted||A()});return}}let he=U,be;Wt(f,!1),U?(U.el=oe.el,y(f,U,F)):U=oe,g&&zn(g),(be=U.props&&U.props.onVnodeBeforeUpdate)&&ut(be,q,U,oe),Wt(f,!0);const Pe=Ho(f),Ze=f.subTree;f.subTree=Pe,v(Ze,Pe,d(Ze.el),Se(Ze),f,T,L),U.el=Pe.el,he===null&&da(f,Pe.el),k&&Fe(k,T),(be=U.props&&U.props.onVnodeUpdated)&&Fe(()=>ut(be,q,U,oe),T)}else{let U;const{el:g,props:k}=p,{bm:q,m:oe,parent:he}=f,be=hn(p);if(Wt(f,!1),q&&zn(q),!be&&(U=k&&k.onVnodeBeforeMount)&&ut(U,he,p),Wt(f,!0),g&&En){const Pe=()=>{f.subTree=Ho(f),En(g,f.subTree,f,T,null)};be?p.type.__asyncLoader().then(()=>!f.isUnmounted&&Pe()):Pe()}else{const Pe=f.subTree=Ho(f);v(null,Pe,b,I,f,T,L),p.el=Pe.el}if(oe&&Fe(oe,T),!be&&(U=k&&k.onVnodeMounted)){const Pe=p;Fe(()=>ut(U,he,Pe),T)}(p.shapeFlag&256||he&&hn(he.vnode)&&he.vnode.shapeFlag&256)&&f.a&&Fe(f.a,T),f.isMounted=!0,p=b=I=null}},V=f.effect=new To(A,Ue,()=>No(E),f.scope),E=f.update=()=>{V.dirty&&V.run()};E.id=f.uid,Wt(f,!0),E()},y=(f,p,b)=>{p.component=f;const I=f.vnode.props;f.vnode=p,f.next=null,Ha(f,p.props,I,b),Ka(f,p.children,b),St(),ai(f),Ct()},H=(f,p,b,I,T,L,F,A,V=!1)=>{const E=f&&f.children,U=f?f.shapeFlag:0,g=p.children,{patchFlag:k,shapeFlag:q}=p;if(k>0){if(k&128){K(E,g,b,I,T,L,F,A,V);return}else if(k&256){M(E,g,b,I,T,L,F,A,V);return}}q&8?(U&16&&ue(E,T,L),g!==E&&u(b,g)):U&16?q&16?K(E,g,b,I,T,L,F,A,V):ue(E,T,L,!0):(U&8&&u(b,""),q&16&&_(g,b,I,T,L,F,A,V))},M=(f,p,b,I,T,L,F,A,V)=>{f=f||Ge,p=p||Ge;const E=f.length,U=p.length,g=Math.min(E,U);let k;for(k=0;k<g;k++){const q=p[k]=V?Pt(p[k]):ct(p[k]);v(f[k],q,b,null,T,L,F,A,V)}E>U?ue(f,T,L,!0,!1,g):_(p,b,I,T,L,F,A,V,g)},K=(f,p,b,I,T,L,F,A,V)=>{let E=0;const U=p.length;let g=f.length-1,k=U-1;for(;E<=g&&E<=k;){const q=f[E],oe=p[E]=V?Pt(p[E]):ct(p[E]);if(Kt(q,oe))v(q,oe,b,null,T,L,F,A,V);else break;E++}for(;E<=g&&E<=k;){const q=f[g],oe=p[k]=V?Pt(p[k]):ct(p[k]);if(Kt(q,oe))v(q,oe,b,null,T,L,F,A,V);else break;g--,k--}if(E>g){if(E<=k){const q=k+1,oe=q<U?p[q].el:I;for(;E<=k;)v(null,p[E]=V?Pt(p[E]):ct(p[E]),b,oe,T,L,F,A,V),E++}}else if(E>k)for(;E<=g;)D(f[E],T,L,!0),E++;else{const q=E,oe=E,he=new Map;for(E=oe;E<=k;E++){const Ve=p[E]=V?Pt(p[E]):ct(p[E]);Ve.key!=null&&he.set(Ve.key,E)}let be,Pe=0;const Ze=k-oe+1;let jt=!1,ht=0;const Zt=new Array(Ze);for(E=0;E<Ze;E++)Zt[E]=0;for(E=q;E<=g;E++){const Ve=f[E];if(Pe>=Ze){D(Ve,T,L,!0);continue}let rt;if(Ve.key!=null)rt=he.get(Ve.key);else for(be=oe;be<=k;be++)if(Zt[be-oe]===0&&Kt(Ve,p[be])){rt=be;break}rt===void 0?D(Ve,T,L,!0):(Zt[rt-oe]=E+1,rt>=ht?ht=rt:jt=!0,v(Ve,p[rt],b,null,T,L,F,A,V),Pe++)}const vo=jt?Za(Zt):Ge;for(be=vo.length-1,E=Ze-1;E>=0;E--){const Ve=oe+E,rt=p[Ve],_o=Ve+1<U?p[Ve+1].el:I;Zt[E]===0?v(null,rt,b,_o,T,L,F,A,V):jt&&(be<0||E!==vo[be]?O(rt,b,_o,2):be--)}}},O=(f,p,b,I,T=null)=>{const{el:L,type:F,transition:A,children:V,shapeFlag:E}=f;if(E&6){O(f.component.subTree,p,b,I);return}if(E&128){f.suspense.move(p,b,I);return}if(E&64){F.move(f,p,b,dt);return}if(F===Ie){o(L,p,b);for(let g=0;g<V.length;g++)O(V[g],p,b,I);o(f.anchor,p,b);return}if(F===nr){C(f,p,b);return}if(I!==2&&E&1&&A)if(I===0)A.beforeEnter(L),o(L,p,b),Fe(()=>A.enter(L),T);else{const{leave:g,delayLeave:k,afterLeave:q}=A,oe=()=>o(L,p,b),he=()=>{g(L,()=>{oe(),q&&q()})};k?k(L,oe,he):he()}else o(L,p,b)},D=(f,p,b,I=!1,T=!1)=>{const{type:L,props:F,ref:A,children:V,dynamicChildren:E,shapeFlag:U,patchFlag:g,dirs:k}=f;if(A!=null&&er(A,null,b,f,!0),U&256){p.ctx.deactivate(f);return}const q=U&1&&k,oe=!hn(f);let he;if(oe&&(he=F&&F.onVnodeBeforeUnmount)&&ut(he,p,f),U&6)ge(f.component,b,I);else{if(U&128){f.suspense.unmount(b,I);return}q&&Nt(f,null,p,"beforeUnmount"),U&64?f.type.remove(f,p,b,T,dt,I):E&&(L!==Ie||g>0&&g&64)?ue(E,p,b,!1,!0):(L===Ie&&g&384||!T&&U&16)&&ue(V,p,b),I&&ne(f)}(oe&&(he=F&&F.onVnodeUnmounted)||q)&&Fe(()=>{he&&ut(he,p,f),q&&Nt(f,null,p,"unmounted")},b)},ne=f=>{const{type:p,el:b,anchor:I,transition:T}=f;if(p===Ie){ce(b,I);return}if(p===nr){$(f);return}const L=()=>{r(b),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(f.shapeFlag&1&&T&&!T.persisted){const{leave:F,delayLeave:A}=T,V=()=>F(b,L);A?A(f.el,L,V):V()}else L()},ce=(f,p)=>{let b;for(;f!==p;)b=h(f),r(f),f=b;r(p)},ge=(f,p,b)=>{const{bum:I,scope:T,update:L,subTree:F,um:A}=f;I&&zn(I),T.stop(),L&&(L.active=!1,D(F,f,p,b)),A&&Fe(A,p),Fe(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},ue=(f,p,b,I=!1,T=!1,L=0)=>{for(let F=L;F<f.length;F++)D(f[F],p,b,I,T)},Se=f=>f.shapeFlag&6?Se(f.component.subTree):f.shapeFlag&128?f.suspense.next():h(f.anchor||f.el);let Ee=!1;const Re=(f,p,b)=>{f==null?p._vnode&&D(p._vnode,null,null,!0):v(p._vnode||null,f,p,null,null,null,b),Ee||(Ee=!0,ai(),ci(),Ee=!1),p._vnode=f},dt={p:v,um:D,m:O,r:ne,mt:pe,mc:_,pc:H,pbc:B,n:Se,o:e};let pt,En;return t&&([pt,En]=t(dt)),{render:Re,hydrate:pt,createApp:Va(Re,pt)}}function tr({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 Wt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Xa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ri(e,t,n=!1){const o=e.children,r=t.children;if(ee(o)&&ee(r))for(let i=0;i<o.length;i++){const s=o[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=Pt(r[i]),l.el=s.el),n||Ri(s,l)),l.type===no&&(l.el=s.el)}}function Za(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 Vi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vi(t)}const Ga=e=>e.__isTeleport,Ie=Symbol.for("v-fgt"),no=Symbol.for("v-txt"),nt=Symbol.for("v-cmt"),nr=Symbol.for("v-stc"),_n=[];let st=null;function R(e=!1){_n.push(st=e?null:[])}function Ja(){_n.pop(),st=_n[_n.length-1]||null}let bn=1;function Ni(e){bn+=e}function Hi(e){return e.dynamicChildren=bn>0?st||Ge:null,Ja(),bn>0&&st&&st.push(e),e}function Z(e,t,n,o,r,i){return Hi(X(e,t,n,o,r,i,!0))}function xe(e,t,n,o,r){return Hi(Q(e,t,n,o,r,!0))}function oo(e){return e?e.__v_isVNode===!0:!1}function Kt(e,t){return e.type===t.type&&e.key===t.key}const ro="__vInternal",Fi=({key:e})=>e??null,io=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ke(e)||Oe(e)||le(e)?{i:Le,r:e,k:t,f:!!n}:e:null);function X(e,t=null,n=null,o=0,r=null,i=e===Ie?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Fi(t),ref:t&&io(t),scopeId:di,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:Le};return l?(or(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=ke(n)?8:16),bn>0&&!s&&st&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&st.push(a),a}const Q=Qa;function Qa(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===gi)&&(e=nt),oo(e)){const l=$t(e,t,!0);return n&&or(l,n),bn>0&&!i&&st&&(l.shapeFlag&6?st[st.indexOf(e)]=l:st.push(l)),l.patchFlag|=-2,l}if(uc(e)&&(e=e.__vccOpts),t){t=ec(t);let{class:l,style:a}=t;l&&!ke(l)&&(t.class=Me(l)),ye(a)&&(ti(a)&&!ee(a)&&(a=Ce({},a)),t.style=Be(a))}const s=ke(e)?1:ga(e)?128:Ga(e)?64:ye(e)?4:le(e)?2:0;return X(e,t,n,o,r,s,i,!0)}function ec(e){return e?ti(e)||ro in e?Ce({},e):e:null}function $t(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&&Fi(l),ref:t&&t.ref?n&&r?ee(r)?r.concat(io(t)):[r,io(t)]:io(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ie?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&&$t(e.ssContent),ssFallback:e.ssFallback&&$t(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Et(e=" ",t=0){return Q(no,null,e,t)}function Ae(e="",t=!1){return t?(R(),xe(nt,null,e)):Q(nt,null,e)}function ct(e){return e==null||typeof e=="boolean"?Q(nt):ee(e)?Q(Ie,null,e.slice()):typeof e=="object"?Pt(e):Q(no,null,String(e))}function Pt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$t(e)}function or(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ee(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),or(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(ro in t)?t._ctx=Le:r===3&&Le&&(Le.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else le(t)?(t={default:t,_ctx:Le},n=32):(t=String(t),o&64?(n=16,t=[Et(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=Me([t.class,o.class]));else if(r==="style")t.style=Be([t.style,o.style]);else if(Pn(r)){const i=t[r],s=o[r];s&&i!==s&&!(ee(i)&&i.includes(s))&&(t[r]=i?[].concat(i,s):s)}else r!==""&&(t[r]=o[r])}return t}function ut(e,t,n,o=null){Qe(e,t,7,[n,o])}const tc=Ei();let nc=0;function oc(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||tc,i={uid:nc++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Cl(!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:Mi(o,r),emitsOptions:fi(o,r),emit:null,emitted:null,propsDefaults:de,inheritAttrs:o.inheritAttrs,ctx:de,data:de,props:de,attrs:de,slots:de,refs:de,setupState:de,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=aa.bind(null,i),e.ce&&e.ce(i),i}let ze=null;const rr=()=>ze||Le;let lo,ir;{const e=ko(),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=>ze=n),ir=t("__VUE_SSR_SETTERS__",n=>ao=n)}const yn=e=>{const t=ze;return lo(e),e.scope.on(),()=>{e.scope.off(),lo(t)}},Wi=()=>{ze&&ze.scope.off(),lo(null)};function Ki(e){return e.vnode.shapeFlag&4}let ao=!1;function rc(e,t=!1){t&&ir(t);const{props:n,children:o}=e.vnode,r=Ki(e);Na(e,n,r,t),Wa(e,o);const i=r?ic(e,t):void 0;return t&&ir(!1),i}function ic(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ni(new Proxy(e.ctx,La));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?lc(e):null,i=yn(e);St();const s=mt(o,e,0,[e.props,r]);if(Ct(),i(),$r(s)){if(s.then(Wi,Wi),t)return s.then(l=>{Ui(e,l,t)}).catch(l=>{Wn(l,e,0)});e.asyncDep=s}else Ui(e,s,t)}else qi(e,t)}function Ui(e,t,n){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ye(t)&&(e.setupState=ri(t)),qi(e,n)}let Yi;function qi(e,t,n){const o=e.type;if(!e.render){if(!t&&Yi&&!o.render){const r=o.template||Zo(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=Ce(Ce({isCustomElement:i,delimiters:l},s),a);o.render=Yi(r,c)}}e.render=o.render||Ue}{const r=yn(e);St();try{Aa(e)}finally{Ct(),r()}}}function sc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return He(e,"get","$attrs"),t[n]}}))}function lc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return sc(e)},slots:e.slots,emit:e.emit,expose:t}}function co(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ri(ni(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mn)return mn[n](e)},has(t,n){return n in t||n in mn}}))}const ac=/(?:^|[-_])(\w)/g,cc=e=>e.replace(ac,t=>t.toUpperCase()).replace(/[-_]/g,"");function Xi(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}function Zi(e,t,n=!1){let o=Xi(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?cc(o):n?"App":"Anonymous"}function uc(e){return le(e)&&"__vccOpts"in e}const ae=(e,t)=>Yl(e,t,ao);function nn(e,t,n=de){const o=rr(),r=Ne(t),i=Ye(t),s=Jl((a,c)=>{let u;return ba(()=>{const d=e[t];lt(u,d)&&(u=d,c())}),{get(){return a(),n.get?n.get(u):u},set(d){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(d,u)&&(u=d,c()),o.emit(`update:${t}`,n.set?n.set(d):d)}}}),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 Gi(e,t,n){const o=arguments.length;return o===2?ye(t)&&!ee(t)?oo(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&oo(n)&&(n=[n]),Q(e,t,n))}const fc="3.4.15";/**
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";/**
17
17
  * @vue/runtime-dom v3.4.15
18
18
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
19
19
  * @license MIT
20
- **/const dc="http://www.w3.org/2000/svg",pc="http://www.w3.org/1998/Math/MathML",Mt=typeof document<"u"?document:null,Ji=Mt&&Mt.createElement("template"),hc={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"?Mt.createElementNS(dc,e):t==="mathml"?Mt.createElementNS(pc,e):Mt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Mt.createTextNode(e),createComment:e=>Mt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Mt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Ji.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=Ji.content;if(o==="svg"||o==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ot="transition",wn="animation",xn=Symbol("_vtc"),on=(e,{slots:t})=>Gi(xa,gc(e),t);on.displayName="Transition";const Qi={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};on.props=Ce({},_i,Qi);const Ut=(e,t=[])=>{ee(e)?e.forEach(n=>n(...t)):e&&e(...t)},es=e=>e?ee(e)?e.some(t=>t.length>1):e.length>1:!1;function gc(e){const t={};for(const N in e)N in Qi||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:x=`${n}-leave-to`}=e,S=mc(r),v=S&&S[0],z=S&&S[1],{onBeforeEnter:j,onEnter:re,onEnterCancelled:C,onLeave:$,onLeaveCancelled:w,onBeforeAppear:m=j,onAppear:W=re,onAppearCancelled:_=C}=t,Y=(N,ie,pe)=>{Yt(N,ie?u:l),Yt(N,ie?c:s),pe&&pe()},B=(N,ie)=>{N._isLeaving=!1,Yt(N,d),Yt(N,x),Yt(N,h),ie&&ie()},se=N=>(ie,pe)=>{const P=N?W:re,J=()=>Y(ie,N,pe);Ut(P,[ie,J]),ts(()=>{Yt(ie,N?a:i),Lt(ie,N?u:l),es(P)||ns(ie,o,v,J)})};return Ce(t,{onBeforeEnter(N){Ut(j,[N]),Lt(N,i),Lt(N,s)},onBeforeAppear(N){Ut(m,[N]),Lt(N,a),Lt(N,c)},onEnter:se(!1),onAppear:se(!0),onLeave(N,ie){N._isLeaving=!0;const pe=()=>B(N,ie);Lt(N,d),bc(),Lt(N,h),ts(()=>{N._isLeaving&&(Yt(N,d),Lt(N,x),es($)||ns(N,o,z,pe))}),Ut($,[N,pe])},onEnterCancelled(N){Y(N,!1),Ut(C,[N])},onAppearCancelled(N){Y(N,!0),Ut(_,[N])},onLeaveCancelled(N){B(N),Ut(w,[N])}})}function mc(e){if(e==null)return null;if(ye(e))return[sr(e.enter),sr(e.leave)];{const t=sr(e);return[t,t]}}function sr(e){return Co(e)}function Lt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[xn]||(e[xn]=new Set)).add(t)}function Yt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[xn];n&&(n.delete(t),n.size||(e[xn]=void 0))}function ts(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let vc=0;function ns(e,t,n,o){const r=e._endId=++vc,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=_c(e,t);if(!s)return o();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,h),i()},h=x=>{x.target===e&&++u>=a&&d()};setTimeout(()=>{u<a&&d()},l+1),e.addEventListener(c,h)}function _c(e,t){const n=window.getComputedStyle(e),o=S=>(n[S]||"").split(", "),r=o(`${Ot}Delay`),i=o(`${Ot}Duration`),s=os(r,i),l=o(`${wn}Delay`),a=o(`${wn}Duration`),c=os(l,a);let u=null,d=0,h=0;t===Ot?s>0&&(u=Ot,d=s,h=i.length):t===wn?c>0&&(u=wn,d=c,h=a.length):(d=Math.max(s,c),u=d>0?s>c?Ot:wn:null,h=u?u===Ot?i.length:a.length:0);const x=u===Ot&&/\b(transform|all)(,|$)/.test(o(`${Ot}Property`).toString());return{type:u,timeout:d,propCount:h,hasTransform:x}}function os(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>rs(n)+rs(e[o])))}function rs(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function bc(){return document.body.offsetHeight}function yc(e,t,n){const o=e[xn];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const lr=Symbol("_vod"),is={beforeMount(e,{value:t},{transition:n}){e[lr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Sn(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),Sn(e,!0),o.enter(e)):o.leave(e,()=>{Sn(e,!1)}):Sn(e,t))},beforeUnmount(e,{value:t}){Sn(e,t)}};function Sn(e,t){e.style.display=t?e[lr]:"none"}const wc=Symbol("");function xc(e,t,n){const o=e.style,r=o.display,i=ke(n);if(n&&!i){if(t&&!ke(t))for(const s in t)n[s]==null&&ar(o,s,"");for(const s in n)ar(o,s,n[s])}else if(i){if(t!==n){const s=o[wc];s&&(n+=";"+s),o.cssText=n}}else t&&e.removeAttribute("style");lr in e&&(o.display=r)}const ss=/\s*!important$/;function ar(e,t,n){if(ee(n))n.forEach(o=>ar(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Sc(e,t);ss.test(n)?e.setProperty(Ye(o),n.replace(ss,""),"important"):e[o]=n}}const ls=["Webkit","Moz","ms"],cr={};function Sc(e,t){const n=cr[t];if(n)return n;let o=Ne(t);if(o!=="filter"&&o in e)return cr[t]=o;o=An(o);for(let r=0;r<ls.length;r++){const i=ls[r]+o;if(i in e)return cr[t]=i}return t}const as="http://www.w3.org/1999/xlink";function Cc(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(as,t.slice(6,t.length)):e.setAttributeNS(as,t,n);else{const i=Sl(t);n==null||i&&!Or(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function kc(e,t,n,o,r,i,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,r,i),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const c=l==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Or(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function rn(e,t,n,o){e.addEventListener(t,n,o)}function Ic(e,t,n,o){e.removeEventListener(t,n,o)}const cs=Symbol("_vei");function Tc(e,t,n,o,r=null){const i=e[cs]||(e[cs]={}),s=i[t];if(o&&s)s.value=o;else{const[l,a]=$c(t);if(o){const c=i[t]=Mc(o,r);rn(e,l,c,a)}else s&&(Ic(e,l,s,a),i[t]=void 0)}}const us=/(?:Once|Passive|Capture)$/;function $c(e){let t;if(us.test(e)){t={};let o;for(;o=e.match(us);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ye(e.slice(2)),t]}let ur=0;const Ec=Promise.resolve(),Pc=()=>ur||(Ec.then(()=>ur=0),ur=Date.now());function Mc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Qe(Oc(o,n.value),t,5,[o])};return n.value=e,n.attached=Pc(),n}function Oc(e,t){if(ee(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Lc=(e,t,n,o,r,i,s,l,a)=>{const c=r==="svg";t==="class"?yc(e,o,c):t==="style"?xc(e,n,o):Pn(t)?bo(t)||Tc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ac(e,t,o,c))?kc(e,t,o,i,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Cc(e,t,o,c))};function Ac(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&fs(t)&&le(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return fs(t)&&ke(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function zc(e,t){const n=Te(e);class o extends fr{constructor(i){super(n,i,t)}}return o.def=n,o}const jc=typeof HTMLElement<"u"?HTMLElement:class{};class fr extends jc{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||(ms(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);this._ob=new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(o,r=!1)=>{const{props:i,styles:s}=o;let l;if(i&&!ee(i))for(const a in i){const c=i[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=Co(this._props[a])),(l||(l=Object.create(null)))[Ne(a)]=!0)}this._numberProps=l,r&&this._resolveProps(o),this._applyStyles(s),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=ee(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(Ne))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i)}})}_setAttr(t){let n=this.getAttribute(t);const o=Ne(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(Ye(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ye(t),n+""):n||this.removeAttribute(Ye(t))))}_update(){ms(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Q(this._def,Ce({},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),Ye(i)!==i&&o(Ye(i),s)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof fr){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 ds=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?n=>zn(t,n):t};function Bc(e){e.target.composing=!0}function ps(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const dr=Symbol("_assign"),Dc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[dr]=ds(r);const i=o||r.props&&r.props.type==="number";rn(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=So(l)),e[dr](l)}),n&&rn(e,"change",()=>{e.value=e.value.trim()}),t||(rn(e,"compositionstart",Bc),rn(e,"compositionend",ps),rn(e,"change",ps))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e[dr]=ds(i),e.composing)return;const s=r||e.type==="number"?So(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Rc=["ctrl","shift","alt","meta"],Vc={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)=>Rc.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=Vc[t[s]];if(l&&l(r,t))return}return e(r,...i)})},Nc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},hs=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const i=Ye(r.key);if(t.some(s=>s===i||Nc[s]===i))return e(r)})},Hc=Ce({patchProp:Lc},hc);let gs;function Fc(){return gs||(gs=Ya(Hc))}const ms=(...e)=>{Fc().render(...e)},Wc=`.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
- `,we=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Kc={},Uc={class:"loading-indicator"};function Yc(e,t){return R(),Z("div",Uc)}const pr=we(Kc,[["render",Yc],["styles",[Wc]]]),qc=Object.freeze(Object.defineProperty({__proto__:null,default:pr},Symbol.toStringTag,{value:"Module"})),Xc={key:0,class:"fixed inset-0 h-[101%] overflow-auto scrollbar-none flex justify-center items-center z-10 bg-black"},Zc={class:"flex justify-between items-end"},Gc={class:"inline-block children-pointer-events-auto w-1/3"},Jc={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Qc={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},eu={class:"inline-block z-20 relative"},vs=we(Te({__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=pr;return R(),Z("div",{class:Me(["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(),Z("div",Xc,[Q(o)])):Ae("",!0),$e(t.$slots,"default"),X("div",{id:"controls",class:Me(["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}])},[X("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:Be({paddingTop:`${t.spaceTop||0}px`})},[$e(t.$slots,"back"),$e(t.$slots,"exit"),$e(t.$slots,"chapter-nav")],4),X("div",Zc,[X("div",Gc,[$e(t.$slots,"page-nav")]),X("div",Jc,[$e(t.$slots,"reset-zoom")]),X("div",Qc,[$e(t.$slots,"entry"),X("div",eu,[$e(t.$slots,"settings")]),$e(t.$slots,"full-screen"),$e(t.$slots,"play")])]),X("div",{class:Me(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[$e(t.$slots,"progress")],2)],2)],2)}}}),[["styles",[`.reader-layout{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity));direction:ltr;font-family:Helvetica,sans-serif;font-size:16px;height:100vh;left:0;line-height:24px;overflow:auto;overscroll-behavior:contain;position:fixed;scrollbar-width:none;top:0;width:100vw}.reader-layout::-webkit-scrollbar{display:none}
22
- `]]]),tu=Object.freeze(Object.defineProperty({__proto__:null,default:vs},Symbol.toStringTag,{value:"Module"})),nu={},ou={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},ru=[X("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[X("circle",{cx:"14",cy:"14",r:"12"}),X("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function iu(e,t){return R(),Z("svg",ou,ru)}const _s=we(nu,[["render",iu]]),su=Object.freeze(Object.defineProperty({__proto__:null,default:_s},Symbol.toStringTag,{value:"Module"})),lu={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"},au={class:"block w-4 h-4"},cu={class:"w-12"},bs=Te({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=_s;return t.zoom!==1?(R(),Z("button",lu,[X("div",au,[Q(o)]),X("div",cu,Je(Math.ceil(t.zoom*100))+"%",1)])):Ae("",!0)}}}),uu=Object.freeze(Object.defineProperty({__proto__:null,default:bs},Symbol.toStringTag,{value:"Module"})),fu={},du={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},pu=[X("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function hu(e,t){return R(),Z("svg",du,pu)}const hr=we(fu,[["render",hu]]),gu=Object.freeze(Object.defineProperty({__proto__:null,default:hr},Symbol.toStringTag,{value:"Module"})),mu={},vu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},_u=[X("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),X("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function bu(e,t){return R(),Z("svg",vu,_u)}const gr=we(mu,[["render",bu]]),yu=Object.freeze(Object.defineProperty({__proto__:null,default:gr},Symbol.toStringTag,{value:"Module"}));function wu({touchDevice:e}){const t=G(!1);let n=0;return to("busy:touchDevice",e),to("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function mr(){const e=Ft("busy:touchDevice"),t=Ft("setBusyState");let n=!1;return it(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const xu=(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))}},sn={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>xu(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},Su={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=Te({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=t,r=mr();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")}return(c,u)=>_t((R(),xe(pa(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:fe(()=>[X("div",Su,[$e(c.$slots,"default")])]),_:3},16,["class"])),[[te(sn),c.disabled?0:15]])}}),Cu=Object.freeze(Object.defineProperty({__proto__:null,default:uo},Symbol.toStringTag,{value:"Module"})),ku={},Iu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Tu=[X("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)];function $u(e,t){return R(),Z("svg",Iu,Tu)}const ys=we(ku,[["render",$u]]),Eu=Object.freeze(Object.defineProperty({__proto__:null,default:ys},Symbol.toStringTag,{value:"Module"}));class Pu{constructor(){pl(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 Mu(){const e=new Pu;return it(()=>e.dispose()),to("keyController",e),e}function fo(e){const t=Ft("keyController");tt(()=>t.addListener(e)),it(()=>t.removeListener(e))}const Ou={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},Lu={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3"},Au={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},ws=Te({__name:"BottomSheet",props:Ht({name:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=nn(e,"modelValue");fo({onKeyDown:o});const n=mr();_e(t,r=>n(r));function o(r){t.value&&r.key==="Escape"&&(t.value=!1,r.preventDefault())}return(r,i)=>{const s=ys,l=uo;return R(),Z("div",{class:Me(["fixed-screen flex flex-col items-center justify-end select-none",{"!pointer-events-none":!t.value}]),onClick:i[3]||(i[3]=()=>t.value=!1)},[Q(on,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:fe(()=>[t.value?(R(),Z("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"]))},[X("div",Ou,[Q(l,{transparent:"",onClick:i[0]||(i[0]=()=>t.value=!1)},{default:fe(()=>[Q(s)]),_:1}),X("div",Lu,Je(r.name),1),$e(r.$slots,"actions")]),X("div",Au,[$e(r.$slots,"default")])],32)):Ae("",!0)]),_:3})],2)}}}),zu=Object.freeze(Object.defineProperty({__proto__:null,default:ws},Symbol.toStringTag,{value:"Module"})),ju=["min","max","step"],Bu={class:"flex-shrink-0"},xs=we(Te({__name:"InputPercentage",props:Ht({min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=nn(e,"modelValue"),n=ae({get(){return t.value},set(o){t.value=+o}});return(o,r)=>(R(),Z("div",{class:Me(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":o.disabled}]),style:Be({"--percentage":`${(n.value-o.min)/(o.max-o.min)*100}%`})},[_t(X("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,ju),[[Dc,n.value]]),X("p",Bu,[$e(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
- `]]]),Du=Object.freeze(Object.defineProperty({__proto__:null,default:xs},Symbol.toStringTag,{value:"Module"})),Ru={class:"flex items-center mb-8 last:mb-0"},Vu={class:"flex-grow overflow-hidden"},Ss=Te({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(R(),Z("div",Ru,[X("div",{class:Me(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Je(t.label),3),X("div",Vu,[$e(t.$slots,"default")])]))}}),Nu=Object.freeze(Object.defineProperty({__proto__:null,default:Ss},Symbol.toStringTag,{value:"Module"})),Hu=["onClick","onKeyup"],Cs=Te({__name:"InputSelect",props:Ht({items:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=nn(e,"modelValue"),o=G(null),r=G({width:"",left:""});tt(()=>{let s=!1;_e(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(),Z("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[X("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Be(r.value)},null,4),(R(!0),Z(Ie,null,gn(t.items,(a,c)=>_t((R(),Z("div",{key:c,tabindex:"0",class:Me(["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:[hs(()=>i(c),["enter"]),hs(()=>i(c),["space"])]},[Et(Je(a),1)],42,Hu)),[[te(sn),30]])),128))],512))}}),Fu=Object.freeze(Object.defineProperty({__proto__:null,default:Cs},Symbol.toStringTag,{value:"Module"})),Wu={},Ku={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Uu=[X("path",{fill:"currentColor",d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"},null,-1)];function Yu(e,t){return R(),Z("svg",Ku,Uu)}const ks=we(Wu,[["render",Yu]]),qu=Object.freeze(Object.defineProperty({__proto__:null,default:ks},Symbol.toStringTag,{value:"Module"})),Xu={},Zu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Gu=[X("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),X("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Ju(e,t){return R(),Z("svg",Zu,Gu)}const Is=we(Xu,[["render",Ju]]),Qu=Object.freeze(Object.defineProperty({__proto__:null,default:Is},Symbol.toStringTag,{value:"Module"}));function ef(e){if(e)try{return JSON.parse(e)}catch{return}}function tf(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||{}),qt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(qt||{});const nf=.25,of=5,rf=.25,Cn=.25,kn=5,sf=.05,lf=0,af=4;function cf(e){var j,re,C,$,w;const{titleName:t,isWebtoon:n}=e,o=ae(()=>t.value?tf(t.value):location.hostname),r=G(uf(`tkr:${o.value}`)),i=m=>{r.value=m;const W=`tkr:${o.value}`;!m||!Object.keys(m).length?localStorage.removeItem(W):localStorage.setItem(W,JSON.stringify(m))},s=m=>{if(!r.value){i(m);return}const W={...r.value};Object.entries(m).forEach(([_,Y])=>{Y===void 0?delete W[_]:W[_]=Y}),i(W)},l=G(((j=r.value)==null?void 0:j.style)??e.defaultStyle??qt.longStrip),a=G(((re=r.value)==null?void 0:re.direction)??e.defaultDirection??ft.vertical),c=G((C=r.value)==null?void 0:C.gap),u=G((($=r.value)==null?void 0:$.speed)??1),d=G(((w=r.value)==null?void 0:w.zoom)??1),h=ae({get(){return n.value?qt.longStrip:l.value},set:m=>{l.value=m,s({style:m}),m!==qt.longStrip&&a.value===ft.vertical&&(x.value=ft.rtl)}}),x=ae({get:()=>n.value?ft.vertical:a.value,set:m=>{a.value=m,s({direction:m})}}),S=ae({get:()=>c.value??(e.maybeWebtoon.value?0:1),set(m){c.value=m,s({gap:m})}}),v=ae({get:()=>u.value,set(m){u.value=m,s({speed:m===1?void 0:m})}}),z=ae({get:()=>d.value,set(m){d.value=m,s({zoom:m===1?void 0:m})}});return{direction:x,style:h,gap:S,speed:v,zoom:z,isLongStrip:ae(()=>h.value===qt.longStrip),isDouble:ae(()=>h.value===qt.double),isRTL:ae(()=>x.value===ft.rtl),isVertical:ae(()=>x.value===ft.vertical)}}function uf(e){const t=localStorage.getItem(e),n=ef(t),o={};return n?(n.style!==void 0&&Object.values(qt).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>=lf&&n.gap<=af&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=Cn&&n.speed<=kn&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=Cn&&n.zoom<=kn&&(o.zoom=n.zoom),Object.keys(o).length?o:void 0):o}const Ts=Te({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=e,o=t,r=G(!1),i=ae(()=>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=Is,d=uo,h=ks,x=Cs,S=Ss,v=xs,z=ws;return R(),Z(Ie,null,[Q(d,{title:"Reader settings (S)",disabled:a.disabled,onClick:c[0]||(c[0]=()=>r.value=!0)},{default:fe(()=>[Q(u)]),_:1},8,["disabled"]),Q(z,{modelValue:r.value,"onUpdate:modelValue":c[5]||(c[5]=j=>r.value=j),name:i.value},{actions:fe(()=>[Q(d,{transparent:"",onClick:l},{default:fe(()=>[Q(h)]),_:1})]),default:fe(()=>[Q(S,{label:"Style"},{default:fe(()=>[Q(x,{"model-value":a.readerStyle,items:a.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":c[1]||(c[1]=j=>o("update:reader-style",j))},null,8,["model-value","items"])]),_:1}),Q(S,{label:"Direction"},{default:fe(()=>[Q(x,{"model-value":a.direction,items:a.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":c[2]||(c[2]=j=>o("update:direction",j))},null,8,["model-value","items"])]),_:1}),Q(S,{label:"Gap"},{default:fe(()=>[Q(x,{"model-value":a.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":c[3]||(c[3]=j=>o("update:gap",j))},null,8,["model-value"])]),_:1}),Q(S,{label:"Speed"},{default:fe(()=>[Q(v,{"model-value":a.speed,min:te(nf),max:te(of),step:te(rf),suffix:"x","onUpdate:modelValue":c[4]||(c[4]=j=>o("update:speed",j))},{suffix:fe(()=>[Et(Je(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),Q(S,{label:"Zoom"},{default:fe(()=>[Q(v,{"model-value":Math.ceil(a.zoom*100),min:te(Cn)*100,max:te(kn)*100,step:te(sf)*100,"onUpdate:modelValue":s},{suffix:fe(()=>[Et(Je(Math.ceil(a.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),ff=Object.freeze(Object.defineProperty({__proto__:null,default:Ts},Symbol.toStringTag,{value:"Module"})),df={},pf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},hf=[X("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function gf(e,t){return R(),Z("svg",pf,hf)}const $s=we(df,[["render",gf]]),mf=Object.freeze(Object.defineProperty({__proto__:null,default:$s},Symbol.toStringTag,{value:"Module"})),vf={},_f={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},bf=[X("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function yf(e,t){return R(),Z("svg",_f,bf)}const Es=we(vf,[["render",yf]]),wf=Object.freeze(Object.defineProperty({__proto__:null,default:Es},Symbol.toStringTag,{value:"Module"})),xf={},Sf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Cf=[X("path",{d:"M18.652 3C18.0277 3 17.5216 3.5061 17.5216 4.13042V5.26083H16.3912C15.7669 5.26083 15.2608 5.76693 15.2608 6.39125C15.2608 7.01556 15.7669 7.52166 16.3912 7.52166H17.5216V8.65208C17.5216 9.27639 18.0277 9.78249 18.652 9.78249C19.2764 9.78249 19.7825 9.27639 19.7825 8.65208V7.52166H20.9129C21.5372 7.52166 22.0433 7.01556 22.0433 6.39125C22.0433 5.76693 21.5372 5.26083 20.9129 5.26083H19.7825V4.13042C19.7825 3.5061 19.2764 3 18.652 3Z",fill:"currentColor"},null,-1),X("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.0183 5.92413L8.24658 7.18954C7.65717 7.34584 7.24677 7.87926 7.24677 8.48905V18.0483C7.24677 18.4887 7.72075 18.7663 8.10482 18.5509L11.4937 16.65C11.7272 16.519 12.012 16.519 12.2454 16.65L18.6384 20.2363C19.1505 20.5235 19.7825 20.1534 19.7825 19.5663L19.7825 12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 6.23454 13.0067 6.07783 13.0183 5.92413Z",fill:"currentColor"},null,-1),X("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.49315 4.13042C4.64457 4.13042 3.95667 4.81833 3.95667 5.6669V19.5663C3.95667 20.1535 4.58867 20.5236 5.10077 20.2363L11.4937 16.6501C11.7272 16.5191 12.012 16.5191 12.2454 16.6501L18.6384 20.2363C19.1505 20.5236 19.7825 20.1535 19.7825 19.5663V12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 5.26083 13.3507 4.13042 13.3507 4.13042H5.49315Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function kf(e,t){return R(),Z("svg",Sf,Cf)}const Ps=we(xf,[["render",kf]]),If=Object.freeze(Object.defineProperty({__proto__:null,default:Ps},Symbol.toStringTag,{value:"Module"})),Tf={},$f={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ef=[X("path",{d:"M17.1026 8.89862C17.1114 8.90798 17.1203 8.91723 17.1295 8.92636C17.5709 9.36781 18.2866 9.36781 18.7281 8.92636L22.7247 4.92974C23.1662 4.48828 23.1662 3.77255 22.7247 3.33109C22.2833 2.88964 21.5675 2.88964 21.1261 3.33109L17.9292 6.52793L17.1286 5.72729C16.6871 5.28583 15.9714 5.28583 15.5299 5.72729C15.0885 6.16874 15.0885 6.88448 15.5299 7.32593L17.1026 8.89862Z",fill:"currentColor"},null,-1),X("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9564 5.92413L8.18463 7.18954C7.59522 7.34584 7.18481 7.87926 7.18481 8.48905V18.0483C7.18481 18.4887 7.65879 18.7663 8.04287 18.5509L11.4318 16.65C11.6652 16.519 11.95 16.519 12.1835 16.65L18.5764 20.2363C19.0885 20.5235 19.7205 20.1534 19.7205 19.5663L19.7205 12.0433H18.5901C15.4686 12.0433 12.938 9.5128 12.938 6.39125C12.938 6.23454 12.9448 6.07783 12.9564 5.92413Z",fill:"currentColor"},null,-1),X("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.4312 4.13042C4.58262 4.13042 3.89471 4.81833 3.89471 5.6669V19.5663C3.89471 20.1535 4.52672 20.5236 5.03882 20.2363L11.4318 16.6501C11.6652 16.5191 11.95 16.5191 12.1835 16.6501L18.5764 20.2363C19.0885 20.5236 19.7205 20.1535 19.7205 19.5663V5.6669C19.7205 5.6646 19.7205 5.66229 19.7205 5.65998V12.0433H18.5901C15.4685 12.0433 12.938 9.5128 12.938 6.39125C12.938 5.26083 13.2887 4.13042 13.2887 4.13042H5.4312Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function Pf(e,t){return R(),Z("svg",$f,Ef)}const Ms=we(Tf,[["render",Pf]]),Mf=Object.freeze(Object.defineProperty({__proto__:null,default:Ms},Symbol.toStringTag,{value:"Module"})),Of={},Lf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Af=[X("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function zf(e,t){return R(),Z("svg",Lf,Af)}const Os=we(Of,[["render",zf]]),jf=Object.freeze(Object.defineProperty({__proto__:null,default:Os},Symbol.toStringTag,{value:"Module"})),Bf=["aria-hidden"],Df=["onClick"],Rf={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"},Vf={class:"whitespace-nowrap"},vr=Te({__name:"ButtonDropdown",props:Ht({label:{},title:{},items:{},disabled:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=nn(e,"modelValue"),o=G(null),r=G(!1),i=G(null),s=G(!1),l=G(!1),a=G(!1);fo({onKeyDown:x});const c=mr();function u(){if(!t.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(d(),vt(()=>setTimeout(()=>{var $,w;(w=($=i.value)==null?void 0:$.children[n.value])==null||w.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),v(o.value)):setTimeout(z,250)}function d(){const $=o.value;if($){const w=$.getBoundingClientRect(),m=w.x+w.width/2;s.value=w.y>window.innerHeight/2,l.value=m<window.innerWidth/3,a.value=m>window.innerWidth/3*2}}function h($){$!=n.value&&(n.value=$),u()}function x($){r.value&&$.key==="Escape"&&(u(),$.preventDefault())}let S=[];function v($){const w=window.getComputedStyle($).zIndex,m=$.style.zIndex;(!w||!(+w>0))&&((!$.parentElement||$.parentElement.childElementCount>1)&&($.style.zIndex="1",S.push({el:$,zIndex:m})),$.parentElement&&v($.parentElement))}function z(){S.forEach(({el:$,zIndex:w})=>{$.style.zIndex=w??""}),S=[]}let j=!1;function re(){j||(j=!0,c(!0,{desktopOnly:!0}))}function C(){j&&(j=!1,c(!1,{desktopOnly:!0}))}return($,w)=>{const m=Os;return R(),Z("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(R(),Z("div",{key:0,class:"fixed-screen bg-transparent",onClick:u})):Ae("",!0),$.items.length?(R(),xe(on,{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:fe(()=>[r.value?(R(),Z("ul",{key:0,ref_key:"list",ref:i,"aria-hidden":!r.value,class:Me(["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":s.value,"origin-top top-full translate-y-1.5":!s.value,"left-1/2 -ml-20 text-center":!l.value&&!a.value,"right-0 text-right":a.value}]),onWheelPassive:w[0]||(w[0]=ot(()=>{},["stop"]))},[(R(!0),Z(Ie,null,gn($.items,(W,_)=>_t((R(),Z("li",{key:_,tabindex:"-1",class:Me(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":_===n.value}]),onClick:()=>h(_)},[X("div",{class:Me(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":_>0}])},[$e($.$slots,"item",{item:W},()=>[Et(Je(W),1)])],2)],10,Df)),[[te(sn),30]])),128))],42,Bf)):Ae("",!0)]),_:3})):Ae("",!0),_t((R(),Z("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":$.disabled}]},$.title?{title:$.title}:{},{onClick:ot(u,["stop"]),onMouseenter:re,onMouseleave:C}),[X("div",Rf,[X("span",Vf,Je($.label),1),$.items.length?(R(),Z("span",{key:0,class:Me(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":s.value}]),"aria-hidden":"true"},[Q(m)],2)):Ae("",!0)])],16)),[[te(sn),30]])],512)}}}),Nf=Object.freeze(Object.defineProperty({__proto__:null,default:vr},Symbol.toStringTag,{value:"Module"})),Ls=Te({__name:"PageNav",props:Ht({disabled:{type:Boolean},pages:{},totalImgs:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=nn(e,"modelValue"),o=ae(()=>t.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),r=ae(()=>{const a=n.value,c=t.pages.findIndex(u=>u.some(({index:d})=>d===a));return c===-1?t.pages.length-1:c}),i=ae(()=>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=vr;return R(),xe(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"])}}}),Hf=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),Ff={},Wf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Kf=[X("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Uf(e,t){return R(),Z("svg",Wf,Kf)}const As=we(Ff,[["render",Uf]]),Yf=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"})),qf={},Xf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Zf=[X("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Gf(e,t){return R(),Z("svg",Xf,Zf)}const zs=we(qf,[["render",Gf]]),Jf=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),Qf={},ed={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},td=[X("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function nd(e,t){return R(),Z("svg",ed,td)}const js=we(Qf,[["render",nd]]),od=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),rd={},id={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},sd=[X("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function ld(e,t){return R(),Z("svg",id,sd)}const Bs=we(rd,[["render",ld]]),ad=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"}));var Ds;const _r=typeof window<"u",cd=e=>typeof e=="string",At=()=>{};_r&&((Ds=window==null?void 0:window.navigator)!=null&&Ds.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function po(e){return typeof e=="function"?e():te(e)}function Rs(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 ud(e,t={}){let n,o,r=At;const i=l=>{clearTimeout(l),r(),r=At};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,d)=>{r=t.rejectOnCancel?d:u,c&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&i(o),o=null,u(l())},a)})}}function fd(e,t=!0,n=!0,o=!1){let r=0,i,s=!0,l=At,a;const c=()=>{i&&(clearTimeout(i),i=void 0,l(),l=At)};return d=>{const h=po(e),x=Date.now()-r,S=()=>a=d();if(c(),h<=0)return r=Date.now(),S();if(x>h&&(n||!s))r=Date.now(),S();else if(t)return new Promise((v,z)=>{l=o?z:v,i=setTimeout(()=>{r=Date.now(),s=!0,v(S()),c()},h-x)});return!n&&!i&&(i=setTimeout(()=>s=!0,h)),s=!1,a}}function dd(e){return e}function br(e){return Ar()?(Il(e),!0):!1}function We(e,t=200,n={}){return Rs(ud(t,n),e)}function Vs(e,t=200,n=!1,o=!0,r=!1){return Rs(fd(t,n,o,r),e)}function Ns(e,t=!0){rr()?tt(e):t?e():vt(e)}function Xt(e){var t;const n=po(e);return(t=n==null?void 0:n.$el)!=null?t:n}const In=_r?window:void 0,pd=_r?window.document:void 0;function zt(...e){let t,n,o,r;if(cd(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=In):[t,n,o,r]=e,!t)return At;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,d,h)=>(u.addEventListener(d,h,r),()=>u.removeEventListener(d,h,r)),a=_e(()=>Xt(t),u=>{s(),u&&i.push(...n.flatMap(d=>o.map(h=>l(u,d,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return br(c),c}function Hs(e,t=!1){const n=G(),o=()=>n.value=!!e();return o(),Ns(o,t),n}const Fs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ws="__vueuse_ssr_handlers__";Fs[Ws]=Fs[Ws]||{};function Ks({document:e=pd}={}){if(!e)return G("visible");const t=G(e.visibilityState);return zt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Us=Object.getOwnPropertySymbols,hd=Object.prototype.hasOwnProperty,gd=Object.prototype.propertyIsEnumerable,md=(e,t)=>{var n={};for(var o in e)hd.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Us)for(var o of Us(e))t.indexOf(o)<0&&gd.call(e,o)&&(n[o]=e[o]);return n};function vd(e,t,n={}){const o=n,{window:r=In}=o,i=md(o,["window"]);let s;const l=Hs(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},c=_e(()=>Xt(e),d=>{a(),l.value&&r&&d&&(s=new ResizeObserver(t),s.observe(d,i))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return br(u),{isSupported:l,stop:u}}function yr(e,t={width:0,height:0},n={}){const{window:o=In,box:r="content-box"}=n,i=ae(()=>{var a,c;return(c=(a=Xt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=G(t.width),l=G(t.height);return vd(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&i.value){const u=Xt(e);if(u){const d=o.getComputedStyle(u);s.value=parseFloat(d.width),l.value=parseFloat(d.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((d,{inlineSize:h})=>d+h,0),l.value=u.reduce((d,{blockSize:h})=>d+h,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),_e(()=>Xt(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function wr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=In}=n,l=Hs(()=>s&&"IntersectionObserver"in s);let a=At;const c=l.value?_e(()=>({el:Xt(e),root:Xt(o)}),({el:d,root:h})=>{if(a(),!d)return;const x=new IntersectionObserver(t,{root:h,rootMargin:r,threshold:i});x.observe(d),a=()=>{x.disconnect(),a=At}},{immediate:!0,flush:"post"}):At,u=()=>{a(),c()};return br(u),{isSupported:l,stop:u}}var Ys;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ys||(Ys={}));var _d=Object.defineProperty,qs=Object.getOwnPropertySymbols,bd=Object.prototype.hasOwnProperty,yd=Object.prototype.propertyIsEnumerable,Xs=(e,t,n)=>t in e?_d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wd=(e,t)=>{for(var n in t||(t={}))bd.call(t,n)&&Xs(e,n,t[n]);if(qs)for(var n of qs(t))yd.call(t,n)&&Xs(e,n,t[n]);return e};wd({linear:dd},{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 xd(e={}){const{window:t=In,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,s=G(n),l=G(o),a=()=>{t&&(i?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),Ns(a),zt("resize",a,{passive:!0}),r&&zt("orientationchange",a,{passive:!0}),{width:s,height:l}}const Zs=we(Te({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=t,o=G(null),r=G(0),i=G([]),s=ae(()=>i.value[r.value]),l=Vs(a,500);tt(()=>{const d=yr(o),h=We(()=>c({width:d.width.value,height:d.height.value}),50);h(),_e(d.width,h),_e(d.height,h)});function a(){r.value>=i.value.length-1?n("hide"):r.value++}function c(d){const h=u();i.value=h.map(({rect:x,text:S})=>{const v=x.top<d.height-x.bottom,z=x.left<d.width-x.right;return{text:S,style:{left:`${x.left}px`,top:`${x.top}px`,width:`${x.width}px`,height:`${x.height}px`},textStyle:{left:z?`${x.left-12}px`:void 0,right:z?void 0:`${d.width-x.left}px`,top:v?`${x.bottom+12}px`:`${x.top+20}px`,textAlign:v?void 0:"right",transform:v?void 0:"translateY(-50%)"}}}),r.value>=i.value.length&&(r.value=i.value.length-1)}function u(){var x;const d=(x=o.value)==null?void 0:x.parentElement;if(!d)return[];const h=[];return d.querySelectorAll("[data-tour]").forEach(S=>{var j;const v=(j=S.getAttribute("data-tour"))==null?void 0:j.trim();if(!(v!=null&&v.length))return;const z=S.getBoundingClientRect();h.push({rect:z,text:v})}),h}return(d,h)=>{var x,S;return R(),Z(Ie,null,[X("div",{class:Me(["fixed-screen bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),X("div",{ref_key:"root",ref:o,class:"tour",onClick:h[0]||(h[0]=ot((...v)=>te(l)&&te(l)(...v),["stop"]))},[s.value?(R(),Z("div",{key:r.value,class:"tour__target",style:Be(s.value.style)},null,4)):Ae("",!0),(R(),Z("div",{key:r.value,class:"tour__text",style:Be((x=s.value)==null?void 0:x.textStyle)},Je(((S=s.value)==null?void 0:S.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
- `]]]),Sd=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),Cd=X("div",{class:"fixed-screen bg-black bg-opacity-90"},null,-1),Gs=Te({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,r=G(null),i=G([]);tt(async()=>{const c=yr(r),u=We(()=>{s({width:c.width.value,height:c.height.value})},50);u(),_e(c.width,u),_e(c.height,u)});function s(c){var h;const u=(h=r.value)==null?void 0:h.parentElement;if(!u)return;const d=Array.from(u.querySelectorAll("#controls [title]"));d.length&&(i.value=l(d,c))}function l(c,u){const d=[],h=[];let x=0,S=0;const v=50,z=25;c.forEach(w=>{var B;const m=(B=w.getAttribute("title"))==null?void 0:B.trim(),W=w.getBoundingClientRect();if(!m||!W.height||!W.width)return;const _=Math.ceil((W.top-10)/v),Y=Math.ceil((W.left-10)/v);h.push({isTour:!1,title:m,rect:W,fromX:Y,toX:Math.max(Y+1,Math.ceil((W.right+10)/v)),fromY:_,toY:Math.max(_+1,Math.ceil((W.bottom+10)/v))})}),h.forEach(w=>{for(let m=w.fromY;m<w.toY;m++){d[m]??(d[m]=[]);for(let W=w.fromX;W<w.toX;W++)d[m][W]=w;w.toY>x+1&&(x=w.toY-1),w.toX>S+1&&(S=w.toX-1)}});let j=S/2;h.forEach(w=>{w.isAlignRight=w.fromX>j});const re=(w,m)=>{d[m]??(d[m]=[]);const W=m>=w.toY;if(w.isTour)for(let _=w.fromX;_<w.toX;_++)delete d[w.fromY][_],w.fromY=m,w.toY=m+(W?1:-1),d[m][_]=w;else{const _=w.isAlignRight?w.fromX-3:w.fromX,Y=_+3;w.helpItem={fromX:_,toX:Y,fromY:m,toY:m+1,isTour:!0,isAlignRight:w.isAlignRight};for(let B=_;B<Y;B++)d[m][B]=w.helpItem}},C=(w,m)=>{if(m>x||m<0)return!1;const W=m>=w.toY,_=d[m];if(!_)return re(w,m),!0;const Y=_[w.fromX];if(Y&&!Y.isTour)return!1;if(Y&&Y.isTour)return C(Y,W?m+1:m-1)?(re(w,m),!0):!1;if(!Y){const B=w.isAlignRight?-1:1;return _[w.fromX+B]||_[w.fromX+B*2]?C(w,W?m+1:m-1):(re(w,m),!0)}return!1};h.forEach(w=>{if(!C(w,w.toY)){if(w.isAlignRight){const m=d[w.fromY]??[];if(!m.slice(w.fromX-3,w.fromX).filter(Boolean).length){const _=w.fromX-3,Y=w.fromX;w.helpItem={isTour:!0,isAlignRight:!0,fromX:_,toX:Y,fromY:w.fromY,toY:w.toY};for(let B=w.fromX-3;B<w.fromX;B++)m[B]=w.helpItem;return}}C(w,w.fromY-1)}});const $=[];return h.forEach(w=>{const{title:m,helpItem:W,rect:_,isAlignRight:Y,fromX:B,fromY:se,toY:N}=w;if(!m||!W||!_)return;const ie=W.fromY>=N,pe=W.toY<=se;$.push({title:a(m),style:{top:ie?`${_.bottom+(W.fromY-N)*v+z}px`:pe?void 0:`${_.top+8}px`,bottom:pe?`${u.height-_.top+(W.toY-se)*v+z}px`:void 0,left:Y?void 0:`${_.left}px`,right:Y?ie?`${u.width-_.right}px`:`${u.width-_.right+_.width+z}px`:void 0},arrowStyle:{width:pe||ie?"2px":`${Math.abs(W.toX-B)*v+z-5}px`,height:pe||ie?`${(ie?W.fromY-N:se-W.toY)*v+z}px`:"2px",top:ie?`${_.bottom}px`:pe?void 0:`${_.top+20}px`,bottom:pe?`${u.height-_.top}px`:void 0,left:Y?void 0:`${_.left+_.width/2}px`,right:Y?ie?`${u.width-_.right+_.width/2}px`:`${u.width-_.right+_.width}px`:void 0}})}),$}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(R(),Z(Ie,null,[Cd,X("div",{ref_key:"root",ref:r,class:"fixed-screen z-20 overscroll-contain select-none",onClick:u[0]||(u[0]=ot(d=>o("hide"),["stop"]))},[(R(!0),Z(Ie,null,gn(i.value,d=>(R(),Z(Ie,{key:d.title},[X("div",{class:"absolute",style:Be(d.style)},Je(d.title),5),X("div",{class:"absolute bg-stone-300 rounded-lg",style:Be(d.arrowStyle)},null,4)],64))),128))],512)],64))}}),kd=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),Js=we(Te({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=G(0);return _e(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const i=hr,s=gr;return n.value?(R(),Z("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(),xe(i,{key:0})):(R(),xe(s,{key:1}))])):Ae("",!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
- `]]]),Id=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),Td={},$d={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ed=[X("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function Pd(e,t){return R(),Z("svg",$d,Ed)}const Qs=we(Td,[["render",Pd]]),Md=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),el=Te({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=G(typeof n!="string"||+n!==t.direction),r=We(()=>o.value=!1,1250);_e(()=>t.direction,()=>{i(),o.value=!0,r()}),tt(()=>{i(),r();let s;const l=Ks();_e(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=Qs;return R(),xe(on,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:fe(()=>[o.value?(R(),Z("div",{key:0,class:Me(["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===te(ft).vertical,"rotate-180":s.direction===te(ft).rtl}])},[Q(a)],2)):Ae("",!0)]),_:1})}}}),Od=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),ho=[];function Ld(e){ho.push(e),it(()=>{const t=ho.indexOf(e);t!==-1&&ho.splice(t,1)})}function Ad(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,i=t*o;ho.forEach(s=>s(r,i))}const tl=Te({__name:"ZoomWrapper",props:Ht({pageIndex:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:Ht(["dragEnd","click"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,r=nn(e,"modelValue"),i=G(null),s=G(Math.min(kn,Math.max(Cn,r.value))),l=G(!1),a=G(!1),c=G(!1);_e(r,P=>pe(P)),tt(()=>{n.touchDevice?(zt(i,"touchstart",j),!navigator.userAgent.toLowerCase().includes("android")&&Ld(B)):(zt(i,"mousedown",x),zt(window,"wheel",w))}),fo({onKeyDown:P=>{var J;if(!n.busy&&((J=i.value)==null||J.focus(),!(P.key==="Meta"||P.key==="Control")&&(P.ctrlKey||P.metaKey)))switch(P.key){case"0":pe(1);break;case"-":pe(s.value-.2),P.preventDefault();break;case"=":case"+":pe(s.value+.2),P.preventDefault();break}}});function u(P){a.value!==P&&(a.value=P,P?n.playController.pause():(o("dragEnd"),n.playController.resume()))}let d={x:0,y:0},h={x:0,y:0};function x(P){P.button===0&&(d={x:P.clientX,y:P.clientY},h={x:i.value.scrollLeft,y:i.value.scrollTop},window.addEventListener("mousemove",S),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",S),setTimeout(()=>u(!1))},{once:!0}),P.preventDefault(),P.stopPropagation())}function S(P){u(!0);const J=P.clientX-d.x,y=P.clientY-d.y,H=i.value;H.scrollLeft=h.x-J,H.scrollTop=h.y-y}let v=!1,z={distance:0,zoom:s.value,x:0,y:0};function j(P){n.busy||(v=P.touches.length===2,v&&(u(!0),P.stopPropagation(),P.preventDefault(),z={distance:m(P),zoom:s.value,x:(P.touches[0].clientX+P.touches[1].clientX)/2,y:(P.touches[0].clientY+P.touches[1].clientY)/2}),(v||n.playController.isPlaying.value&&n.longStrip)&&(window.addEventListener("touchmove",C),window.addEventListener("touchend",re,{once:!0})))}function re(){if(window.removeEventListener("touchmove",C),v){u(!1),v=!1;return}if(!a.value)return;const P=We(()=>{u(!1),i.value.removeEventListener("scroll",y)},200),J=setTimeout(P,200);i.value.addEventListener("scroll",y);function y(){clearTimeout(J),P()}}function C(P){if(u(!0),v){P.stopPropagation(),P.preventDefault();const y=m(P)/z.distance;pe(Math.ceil(y*z.zoom*100)/100,z)}}const $=We(()=>l.value=!1,100);function w(P){if(!n.busy){if(P.ctrlKey||P.metaKey){P.stopPropagation(),P.preventDefault();const J=Math.ceil((s.value+P.deltaY*-.01)*100)/100;pe(J,{x:P.clientX,y:P.clientY});return}n.horizontal&&(l.value||(l.value=!0),$(),P.deltaY&&(i.value&&(i.value.scrollLeft+=P.deltaY*(n.rtl?-1:1)),P.stopPropagation(),P.preventDefault()))}}function m(P){return Math.hypot(P.touches[0].clientX-P.touches[1].clientX,P.touches[0].clientY-P.touches[1].clientY)}let W=0,_;function Y(P){if(!a.value){if(!n.touchDevice){o("click",P);return}W++,_&&clearTimeout(_),W===2&&B(P.clientX,P.clientY),_=setTimeout(()=>{!a.value&&W===1&&o("click",P),_=void 0,W=0},300)}}function B(P,J){if(!W)return;W=0;const y=s.value===1?2:1;pe(y,{x:P,y:J})}let se;const N=We(()=>{c.value=!1,se=void 0},150);function ie(){if(!c.value){const P=i.value;if(!P)return;const J=P.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;J&&(se={el:J,rect:J.getBoundingClientRect()},c.value=!0)}if(se)return N(),se}async function pe(P,J){const y=i.value,H=Math.min(kn,Math.max(Cn,P));if(!y||s.value===H)return;const M=ie();if(!M)return;const K=(J==null?void 0:J.x)??y.clientWidth/2,O=(J==null?void 0:J.y)??y.clientHeight/2;s.value=H,r.value=H,await vt();const{el:D,rect:ne}=M,ce=D.offsetWidth/ne.width,ge=D.offsetHeight/ne.height;y.scrollLeft=D.offsetLeft-ne.left*ce+K*(ce-1),y.scrollTop=D.offsetTop-ne.top*ge+O*(ge-1)}return(P,J)=>(R(),Z("div",{ref_key:"root",ref:i,tabindex:"0",class:Me(["w-full h-full overflow-auto overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!P.longStrip&&(a.value||l.value||c.value),"cursor-grabbing":a.value,"overflow-hidden":c.value}]),style:Be({"font-size":`${s.value}px`}),onClick:ot(Y,["stop"])},[$e(P.$slots,"default")],6))}}),zd=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),nl=Te({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=t,o=G(null),r=G(!1);return tt(async()=>{await vt();let i=!1;wr(o,s=>{r.value=s.some(l=>l.isIntersecting),r.value&&!i&&n("visible")})}),(i,s)=>(R(),Z("div",{ref_key:"root",ref:o},[$e(i.$slots,"default",{visible:r.value})],512))}}),jd=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"}));function Bd({pageIndex:e,isLongStrip:t}){let n=e.value,o=e.value+3;const r=G(n),i=G(o),s=We(l,50);_e(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 Dd={key:0,class:"page--loading"},Rd=["src"],Vd=["src"],Nd=["data-index"],ol=we(Te({__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=G(null),i=ae(()=>{var S;return(S=r.value)==null?void 0:S.$el}),s=G(null),l=yr(i),a=ae(()=>{const{width:S,height:v}=l,z=n.isLongStrip?n.isVertical?S.value:v.value:Math.min(S.value,v.value);return Math.min(4,Math.max(1,Math.ceil(z/400-1)))*n.gap}),c=Bd({pageIndex:ae(()=>n.pageIndex),isLongStrip:ae(()=>n.isLongStrip)}),u=ae(()=>{const{width:{value:S},height:{value:v}}=l;return n.pages.map(z=>{var Y;const j=z.some(B=>{var se;return(se=B.img)==null?void 0:se.isLoading}),re=z.map(B=>B.index),C={isLoading:j,indexes:re};if(j||re[re.length-1]<c.min.value-1||re[0]>c.max.value+2)return C;const $=z.map(({img:B})=>B).filter(Boolean);if(!$.length||(C.srcs=$.map(({src:B})=>B),$.every(B=>B.hasError)))return C;const m=(Y=$.find(B=>!B.hasError))==null?void 0:Y.size,W=$.reduce((B,se)=>{var N;return B+(((N=se.size)==null?void 0:N.width)??m.width)},0),_=$.reduce((B,se)=>{var N;return B+(((N=se.size)==null?void 0:N.height)??m.height)},0)/$.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&S/W<v/_?(C.width=Math.min(S,W),C.height=_*C.width/W):C.height=Math.min(v,_),C})}),d=ae(()=>{const S=n.isVertical?"width":"height";return u.value.map(v=>v[S]).filter(Boolean).sort((v,z)=>z-v)[0]});function h({indexes:S}){const v=S[S.length-1];v!==void 0&&c.onPageVisible(v)}function x(S){if(!n.isLongStrip){const v=n.isVertical?l.height.value:l.width.value,j=(n.isVertical?S.clientY:n.isRTL?v-S.clientX:S.clientX)/v;if(j<=.2&&n.pageIndex>0){o("prev");return}else if(j>=.8&&n.pageIndex<n.totalImgs){o("next");return}}o("click")}return(S,v)=>{const z=pr,j=nl,re=tl;return R(),xe(re,{ref_key:"root",ref:r,"model-value":S.zoom,"page-index":S.pageIndex,class:Me(["reader-body",{"reader-body--long-strip":S.isLongStrip,"reader-body--pages":!S.isLongStrip,"reader-body--vertical":S.isVertical,"reader-body--rtl":S.isRTL,"reader-body--idle":S.idle,"reader-body--first":!S.isLongStrip&&S.pageIndex==0,"reader-body--last":!S.isLongStrip&&S.pageIndex==S.totalImgs}]),"play-controller":S.playController,horizontal:!S.isVertical,rtl:S.isRTL,"touch-device":S.touchDevice,busy:S.busy,"long-strip":S.isLongStrip,style:Be({"--gap":`${a.value}em`,"--space-top":(S.spaceTop||0)+"px","--screen-width-em":te(l).width.value+"em","--screen-height-em":te(l).height.value+"em",...S.isLongStrip?{"--max-size-em":d.value+"em"}:{}}),"onUpdate:modelValue":v[0]||(v[0]=C=>o("update:zoom",C)),onDragEnd:v[1]||(v[1]=()=>o("dragEnd")),onClick:x,onScroll:te(c).onScroll},{default:fe(()=>[(R(!0),Z(Ie,null,gn(u.value,C=>(R(),xe(j,so({key:S.direction+"_"+C.indexes[0],"data-index":C.indexes[0]},C.indexes.length>1?{"data-index2":C.indexes[1]}:{},{onVisible:()=>h(C)}),{default:fe(({visible:$})=>{var w;return[!((w=C.srcs)!=null&&w.length)||C.isLoading?(R(),Z("div",Dd,[_t(Q(z,null,null,512),[[is,$]])])):C.srcs.length==1?(R(),Z("img",{key:1,src:C.srcs[0],style:Be({height:C.height!==void 0?C.height+"em":""})},null,12,Rd)):(R(),Z("div",{key:2,class:Me(["page--double",{"flex-row-reverse":S.isRTL}]),style:Be({width:C.width!==void 0?C.width+"em":"",height:C.height!==void 0?C.height+"em":""})},[(R(!0),Z(Ie,null,gn(C.srcs,m=>(R(),Z("div",{key:m},[X("img",{src:m},null,8,Vd)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),X("div",{ref_key:"autoNextEl",ref:s,class:"last","data-index":S.totalImgs},[$e(S.$slots,"end")],8,Nd)]),_: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
- `]]]),Hd=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),Fd={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},Wd={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},Kd={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},rl=we(Te({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=t,o=G(null),r=G(null),i=G(!1),s=G(!1),l=G(3);return tt(()=>{let a;wr(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))}),wr(o,c=>{i.value=c.some(u=>u.isIntersecting)}),it(()=>a&&clearInterval(a))}),(a,c)=>(R(),Z("div",{ref_key:"root",ref:o,class:"h-full w-full flex justify-center items-center"},[_t(X("div",Fd,[a.hasNext?(R(),Z("div",Wd,[s.value?(R(),Z("div",Kd)):Ae("",!0),_t((R(),Z("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"]))},[Et(" Next in "+Je(l.value),1)])),[[te(sn)]])])):Ae("",!0),_t((R(),Z("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"]))},[Et(" Hide ")])),[[te(sn)]])],512),[[is,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
- `]]]),Ud=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"}));async function Tn(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 Tn(e-1,t,n);r(i)},t)})}function ln(e=0){return new Promise(t=>setTimeout(t,e))}const il=3;function Yd(e){var P,J,y,H;const t=((J=(P=e.raw.value)==null?void 0:P.imgs)==null?void 0:J.filter(Boolean))??[];let n=!!t.length,o=t.map(M=>({src:M}));const r=an({}),i=[],s=G((y=e.raw.value)==null?void 0:y.isWebtoon),l=G((H=e.raw.value)==null?void 0:H.isWebtoon),a=Date.now(),c=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android");let u=!0,d=!1,h=!1,x=0,S=0,v,z=e.isAutoShow!==!1?e.page.value:n?Gd(t):void 0,j=!1;const re=We(m,50),C=()=>{j?re():(j=!0,m())};n?C():B(),_e(()=>{var M;return(M=e.raw.value)==null?void 0:M.imgs},M=>{M!=null&&M.length&&M.length!==o.length&&(n=!0,w(M.map(K=>({src:K}))))}),it(()=>{u=!1,i.forEach(M=>URL.revokeObjectURL(M))}),Gn(()=>{d&&mo({images:o,page:e.page.value})});function $(){var ne,ce,ge,ue;if(d||s.value===void 0||z===void 0)return;const M=Math.max(0,Math.min(z,o.length)),K=o.length-1,O=Math.min(Math.floor(M),K);if(O>=1){const Se=(ne=o[O])==null?void 0:ne.src;if(!Se){e.isAutoShow&&mo({images:o,page:O});return}const Ee=(ce=o[O-1])==null?void 0:ce.src;if(Ee&&!((ge=r[Ee])!=null&&ge.size)||!((ue=r[Se])!=null&&ue.size))return}if(d)return;d=!0,e.onReady(M);let D=!0;_e(()=>Math.floor(e.page.value),(Se,Ee)=>{mo({images:o,page:Se,smooth:c,isScrollDown:Ee===void 0||Se>Ee,skipIfVisible:D}),D=!1,Ee??(Ee=-1),Se!==Ee&&(x=Math.max(0,x-Math.abs(Se-Ee))),C()},{immediate:!0})}function w(M){(M.length!==o.length||M.some((O,D)=>{const ne=o[D];return(ne==null?void 0:ne.el)!==(O==null?void 0:O.el)||(ne==null?void 0:ne.src)!==(O==null?void 0:O.src)}))&&(o=M,e.isAutoShow===!1&&z===void 0&&(z=ll(M)),C())}async function m(){if(!u)return;const M=async O=>{x++,W(o[O],O).then(()=>{x--,re()}),await ln()},K=Math.max(0,Math.min(o.length-1,Math.floor(e.page.value-1)));for(let O=K;O<o.length;O++){if(x>=il)return;await M(O)}for(let O=K-1;O>=0;O--){if(x>=il)return;await M(O)}}async function W(M,K){const O=M.el;let D=M.src;if(!O&&!D||D&&r[D])return;const ne=O instanceof HTMLImageElement,ce=O instanceof HTMLCanvasElement;if(O){if(O._tkLoadId_===a)return;if(O._tkLoadId_=a,ne){const ue=()=>_(O);O.addEventListener("load",ue),it(()=>O.removeEventListener("load",ue))}}if(ne&&!D){if(D=go(O),!D)return;M.src=D}else ce&&!D&&(D=await sl(O),D&&i.push(D));if(!D)return;const ge=ne&&D.startsWith("blob");ge&&!O.complete||(r[D]={src:D,isLoading:!0,hasError:!1},ge&&c&&await ln(300),Y({imgEl:ne?O:void 0,src:D,index:K}))}async function _(M){if(!u)return;const K=o.findIndex(D=>D.el===M);if(K===-1)return;const O=go(M);O&&(!O.startsWith("blob")&&o[K].src===O||(o[K].src=O,r[O]??(r[O]={src:O,isLoading:!0,hasError:!1}),Y({imgEl:M,src:O,index:K})))}async function Y({imgEl:M,src:K,index:O}){const D=M?await Xd(M,K):K;if(!D)return;M&&D!==K&&i.push(D);const ne=await Zd(D,M),ce=!!ne&&(ne.width<200||ne.height<200);if(r[K]={src:D,size:ne,isLoading:!1,hasError:!ne,invalid:ce},ne&&!s.value&&O>Math.min(1,o.length-3)&&O<Math.max(o.length-2,3)){const ge=ne.height/ne.width,ue=ge>2||ge<.5,Se=ge>1.6||ge<.6;s.value!==ue&&(s.value=ue),l.value!==Se&&(l.value=Se)}$()}function B(){var ne;const M=We(()=>{v&&N(v)},100),K=new MutationObserver(M),O=(ne=e.spec)!=null&&ne.imgDivs?void 0:(()=>{let ce=window.innerWidth;return new ResizeObserver(We(()=>{const ge=window.innerWidth;if(ge!==ce){ce=ge;return}M()},50))})();Gn(async()=>{K.disconnect(),O==null||O.disconnect()});let D=!1;se(ce=>{v!==ce&&(v=ce,K.disconnect(),O==null||O.disconnect(),K.observe(v,{childList:!0,subtree:!0}),O==null||O.observe(v),D?M():(D=!0,N(v)))})}async function se(M){var ge;const K=(ge=e.spec)==null?void 0:ge.content;if(!K){M(document.body);return}const O=await qd(e.spec);let D=K?await Tn(O?100:1,10,()=>document.querySelector(K)):void 0;if(!D)return;M(D);let ne=0;const ce=async()=>{if(u&&!(D!=null&&D.isConnected)&&!n){if(ne=0,D=await Tn(50,20,()=>{const ue=document.querySelector(K);return ue!=null&&ue.isConnected&&ue!==D?ue:void 0}),!D)return;M(D)}!u||n||++ne>=10||setTimeout(ce,200)};setTimeout(ce,200)}async function N(M){var ne;if(!u||!M.isConnected||n)return;const K=Date.now();S=K;const O=(ne=e.spec)==null?void 0:ne.imgDivs,D=O?await ie(M,O):pe(M);if(!(S!==K||!M.isConnected||!u||n)){if(!e.raw.value&&!D.length){e.onError("no_img");return}w(D)}}async function ie(M,K){const O=Array.from(M.querySelectorAll(K)),D=new Map,ne=O.map(ce=>{const ge=Array.from(ce.querySelectorAll("img,canvas"));for(const ue of ge)if(xr(ue,D)){if(ue instanceof HTMLCanvasElement){if(al(ue))return{el:ue,parentEl:ce}}else if(ue instanceof HTMLImageElement&&cl(ue)){const Se=go(ue);return{el:ue,src:Se,parentEl:ce}}}return{parentEl:ce}});return!h&&e.isAutoShow!==!1&&e.page.value&&(h=!0,mo({images:ne,page:e.page.value,skipIfVisible:!0}),await ln(1)),ne}function pe(M){const K=[],O={},D=new Map;return Array.from(M.querySelectorAll("img,canvas")).forEach(ce=>{if(xr(ce,D)){if(ce instanceof HTMLCanvasElement)al(ce)&&K.push({el:ce});else if(ce instanceof HTMLImageElement&&cl(ce)){const ge=go(ce);if(ge){const ue=O[ge];if(ue!==void 0&&ue!==-1){K.splice(ue,1);return}O[ge]=K.length}K.push({el:ce,src:ge})}}}),K}return{asyncImgs:ae(()=>{Object.values(r);const M=[];return o.forEach(({src:K,parentEl:O})=>{const D=K?r[K]:void 0;(K&&!(D!=null&&D.invalid)||O)&&M.push(D)}),M}),isWebtoon:ae(()=>s.value??!1),maybeWebtoon:ae(()=>l.value??!1)}}async function qd(e){const{lstrip:t,lstripBtn:n}=e||{};if(!n||!!t&&!!document.querySelector(t))return!1;const r=await Tn(50,30,()=>document.querySelector(n));if(!r)return!1;if(r.tagName.toLowerCase()==="a"&&!r._tkDirty_){r._tkDirty_=!0;const i=s=>s.preventDefault();r.addEventListener("click",i),it(()=>{delete r._tkDirty_,r.removeEventListener("click",i)})}return r.click(),await ln(),!0}function sl(e){return new Promise(t=>{const n=o=>{if(!o)return t(void 0);const r=URL.createObjectURL(o);t(r)};e.toBlob(n,"image/jpeg",1)})}async function Xd(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),r=o.getContext("2d"),i=e.naturalWidth,s=e.naturalHeight;return o.width=i,o.height=s,r==null||r.drawImage(e,0,0,i,s),await sl(o)}async function Zd(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})}function Gd(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src)).map(o=>({el:o}));return ll(n)}function ll(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 al(e){return e.isConnected&&e.width>=200&&e.height>=200}function cl(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||t.width>=200&&t.height>=200}function go(e){const t=e.getAttributeNames(),n=t.indexOf("src");n!==-1&&(t.splice(n,1),t.push("src"));for(const o of t){if(o==="srcset"||o!=="data-url"&&o!=="data-original"&&!o.includes("src"))continue;const r=e.getAttribute(o);if(r)return o==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:r.replace(/(\n|\t)/g," ").trim()}}function xr(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=xr(e.parentElement,t);return t.set(e,i),i}function mo({images: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.src}"]`);if(!l)return;const a=l.getBoundingClientRect();if(o&&a.top<=0&&a.top+a.height>0)return;const c=Sr(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 Sr(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)return Sr(e.parentElement,t);if(e===document.body){const i=Sr(document.documentElement,t);if(i)return i}let r=0;return t.forEach((i,s)=>{s===e||s===o||(r+=i)}),{el:e,top:r}}function Jd(e,t){return ae(()=>t.value?ul(e.value):e.value.map((n,o)=>[{img:n,index:o}]))}function ul(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(i=>(i==null?void 0:i.size)&&i.size.width>i.size.height)?[n[0]]:n;return[r.map((i,s)=>({img:i,index:t+s})),...ul(e.slice(r.length),t+r.length)]}function Qd(e,t){const n=sessionStorage.getItem("tk:page:path");n!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),n&&sessionStorage.removeItem("tk:page"));const o=G(t&&e>0?Math.max(0,e):+(sessionStorage.getItem("tk:page")??"0")||e);return ae({get:()=>o.value,set:r=>{o.value=r,sessionStorage.setItem("tk:page",r+"")}})}function ep(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const Cr=40;function tp({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:i,spaceTop:s,scrollEl:l,isWebtoon:a,interferePlayer:c,onChangedPage:u,onInitialized:d,onFinished:h}){let x=!1,S=!1,v=!1,z;const j=We(Y,300),re=Vs(()=>{Y(),j()},300),C=We(m,50);async function $(){W(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function w(){var y;S=!0,d(),B(),(y=l.value)==null||y.addEventListener("scroll",re),setTimeout(()=>{const{width:H,height:M}=xd();_e(H,()=>{r.value&&C()}),_e(M,()=>{r.value||C()}),_e(n,m),_e(t,m)},300)}async function m(){if(!S||x)return;x=!0,await vt();const y=e.value;if(N()===y){x=!1;return}W(y)}function W(y,{smooth:H,ensureLastImgVisibility:M=!1}={smooth:!1}){const K=l.value;if(!K)return;x=!0;const O=async()=>{await vt(),x=!1,S||w()},D=Math.floor(y),ne=K.querySelector(`[data-index="${D}"],[data-index2="${D}"]`);if(!ne){O();return}c(async()=>{await _(K,!o.value&&H,async()=>{await J(K,ne,{smooth:H,page:y,ensureLastImgVisibility:M})}),await O()})}async function _(y,H,M){H&&y.style.setProperty("scroll-snap-type","none"),await M(),H&&y.style.removeProperty("scroll-snap-type")}function Y(){if(x)return;const y=N();y!==void 0&&y!==e.value&&u(y),B()}function B(){v||!v&&se()&&(v=!0,h())}function se(){const y=l.value;if(!y)return!1;const H=o.value?a.value?3:!r.value&&y.clientWidth>y.clientHeight?2.25:2.5:2;return r.value?y.scrollHeight-y.scrollTop<y.clientHeight*H:y.scrollWidth-(i.value?-y.scrollLeft:y.scrollLeft)<y.clientWidth*H}function N(){const y=ie();return y?(+y.getAttribute("data-index")||0)+(o.value?pe(y):0):void 0}function ie(){var H;if(z??(z=l.value.getRootNode()),!z)return;const y=(H=z.elementsFromPoint)==null?void 0:H.call(z,r.value||!o.value?window.innerWidth/2:i.value?window.innerWidth-Cr:Cr,r.value&&o.value?s.value||Cr:window.innerHeight/2);if(y)for(let M=0;M<y.length;M++){const K=y[M];if(K.hasAttribute("data-index"))return K;if(K===l.value)break}}function pe(y){const H=y.getBoundingClientRect();return r.value?Math.abs(H.top-s.value)/H.height:i.value?Math.max(0,H.right-l.value.clientWidth)/H.width:Math.abs(H.left)/H.width}let P=!1;async function J(y,H,M){if(P)return;const K=H.getBoundingClientRect();if(!o.value){if(r.value){if(K.top<=0&&K.bottom>=y.clientHeight)return}else if(K.left<=0&&K.right>=y.clientWidth)return}P=!0;const O=r.value?y.scrollTop:y.scrollLeft,D=M.page,ne=o.value?D%1:0,ce=await Tn(30,10,async()=>{await ln();let Re;if(!(H.offsetHeight<10))return o.value?r.value?Re=H.offsetTop+ne*H.offsetHeight-s.value:i.value?Re=H.offsetLeft-y.clientWidth+H.offsetWidth-ne*H.offsetWidth:Re=H.offsetLeft+ne*H.offsetWidth:r.value?Re=H.offsetTop+(K.top>0?0:K.height-y.clientHeight):Re=H.offsetLeft+(K.left>0?0:K.width-y.clientWidth),D>.5&&Math.abs(Re)<100?void 0:Re})??0,ge=M.ensureLastImgVisibility?r.value?Math.min(ce,y.scrollHeight-y.clientHeight*2):i.value?Math.max(ce,-(y.scrollWidth-y.clientWidth*2)):Math.min(ce,y.scrollWidth-y.clientWidth*2):ce;if(!M.smooth){r.value?y.scrollTop=ge:y.scrollLeft=ge,P=!1;return}const ue=ge-O,Se=30;let Ee=0;return new Promise(Re=>{(function dt(){const pt=np(Ee,O,ue,Se);r.value?y.scrollTop=pt:y.scrollLeft=pt,Ee++,Ee<=Se?requestAnimationFrame(dt):(Re(),P=!1)})()})}return{init:$,goToPage:W}}function np(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function op({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:i,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=G(typeof l=="string"?l==="true":e),c=ae({get:()=>a.value,set:_=>{a.value=_,sessionStorage.setItem("tk:playing",_?"true":"false")}}),u=G(!1);let d,h;const x=We(m,100),S=We(()=>{u.value=!0},t?2e3:1e3),v=()=>setTimeout(()=>{u.value=!1,S()},30);v(),t||zt(window,"mousemove",v);const z=Ks();tt(()=>{_e(z,_=>{c.value&&(_==="visible"?m():h==null||h())}),_e(s,()=>j()),_e(i,_=>{_||C()})}),it(C);async function j(_){c.value&&(h==null||h()),_&&(await vt(),await _()),c.value&&x()}function re(){c.value?C():$()}function C(){c.value&&(c.value=!1,h==null||h(),v())}function $(){!c.value&&i.value&&(c.value=!0,m(),v())}function w(){h==null||h()}function m(){const _=n.value;if(!c.value||!_)return;const Y=o.value?_.scrollHeight-_.clientHeight:_.scrollWidth-_.clientWidth,B=W();if(Y<=B){C();return}h=()=>{d=Date.now(),h=void 0};const se=Date.now();d=se;const N=.05*s.value,ie=o.value?"scrollTop":"scrollLeft";let pe=Date.now(),P=0;const J=()=>{if(d!==se)return;const y=Date.now(),H=y-pe;pe=y;const M=N*H+P;M>=1?(P=M%1,_[ie]+=(M-P)*(r.value?-1:1)):P=M,setTimeout(J,1)};J()}function W(){const _=n.value;return o.value?_.scrollTop:r.value?-_.scrollLeft:_.scrollLeft}return{isPlaying:c,isIdle:u,toggle:re,play:$,pause:w,resume:m,stop:C,interfere:j,awake:v}}function rp(e){var x,S,v,z,j,re;let t=-1,n=(x=e.prev)==null?void 0:x.slug,o=(S=e.next)==null?void 0:S.slug;const{vol:r,inferVol:i,chap:s,title:l,slug:a,basePath:c}=e,u=r??i,d=((v=l.chapters)==null?void 0:v.filter(C=>C.slug))??[],h=d.length>1?d:[];if(h.length){if(t=h.findIndex(C=>C.slug===e.slug),t===-1&&(t=h.findIndex(C=>(C.vol??C.inferVol)===u&&C.chap===s)),t===-1&&(t=h.findIndex(C=>a.startsWith(`${C.slug}-`)&&a.length-C.slug.length>3)),t!==-1)n??(n=(z=h[t+1])==null?void 0:z.slug),o??(o=(j=h[t-1])==null?void 0:j.slug);else if(!n&&!o){const C=h.findIndex($=>{const w=$.vol??$.inferVol;return u===void 0||w===void 0||u===w?$.chap<s:w<u});C!==-1?(n=h[C].slug,o=(re=h[C-1])==null?void 0:re.slug):o=h[h.length-1].slug}}return{activeIndex:t,activeLabel:fl({vol:r,chap:s}),chapters:h.map(C=>({label:fl(C),path:kr(c,C.slug)})),prevPath:kr(c,n),nextPath:kr(c,o)}}function kr(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function fl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const ip={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},dl=we(Te({inheritAttrs:!1,__name:"TrackkunReader",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=G(!1),a=G(!1),c=wu({touchDevice:n.touchDevice}),u=Qd(n.page,n.isAutoShow),d=ae(()=>n.spaceTop??0),{asyncImgs:h,isWebtoon:x,maybeWebtoon:S}=Yd({raw:ae(()=>n.raw),spec:n.spec,page:u,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:d,async onReady(g){ce(g),l.value=!0},onError:()=>{o("error"),T()}}),{direction:v,style:z,isRTL:j,isDouble:re,isVertical:C,isLongStrip:$,gap:w,speed:m,zoom:W}=cf({titleName:ae(()=>{var g;return(g=n.raw)==null?void 0:g.title.name}),isWebtoon:x,maybeWebtoon:S,defaultStyle:n.readerStyle,defaultDirection:n.direction}),_=Jd(h,re),Y=ae(()=>u.value>=h.value.length),B=ae(()=>n.raw?rp(n.raw):void 0),se=ae(()=>{var g,k;return j.value?(g=B.value)==null?void 0:g.nextPath:(k=B.value)==null?void 0:k.prevPath}),N=ae(()=>{var g,k;return j.value?(g=B.value)==null?void 0:g.prevPath:(k=B.value)==null?void 0:k.nextPath}),ie=G(null),pe=G(null),P=G(!1),J=G(!1),y=op({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:ae(()=>{var g;return(g=ie.value)==null?void 0:g.$el}),speed:m,isRTL:j,isVertical:C,isLongStrip:$}),H=ae(()=>!n.touchDevice&&y.isIdle.value&&!c.value),M=ae({get(){return W.value},set(g){y.interfere(()=>{W.value=g})}}),K=tp({page:u,style:z,direction:v,isLongStrip:$,isVertical:C,isRTL:j,spaceTop:d,isWebtoon:x,scrollEl:ae(()=>{var g;return(g=ie.value)==null?void 0:g.$el}),interferePlayer:g=>y.interfere(g),onChangedPage:ce,onInitialized(){o("ready"),a.value=!0,n.touchDevice&&(i=ge())},onFinished:()=>o("finished")}),O=ae(()=>Math.floor(u.value)),D=()=>y.interfere(()=>ln(100));Mu().addListener({onKeyDown:g=>{if(n.tourEnabled)return;const k=$.value&&C.value,q=$.value&&!C.value,oe=!$.value&&C.value,he=!$.value&&!C.value;switch(g.key){case" ":g.preventDefault(),$.value?(U(!1),y.toggle()):b();break;case"ArrowUp":case"PageUp":k?D():oe&&O.value!==0&&(g.preventDefault(),p());break;case"ArrowDown":case"PageDown":k?D():oe&&!Y.value&&(g.preventDefault(),b());break;case"ArrowLeft":q?D():he?(g.preventDefault(),En()):C.value&&Re();break;case"ArrowRight":q?D():he?(g.preventDefault(),f()):C.value&&Ee();break}},onKeyUp:g=>{switch(g.key){case"f":A();break;case"t":F();break;case"h":U();break}}}),zt("fullscreenchange",()=>{P.value=!!document.fullscreenElement}),_e(y.isPlaying,g=>{g||L(!1),o("playingChanged",g)}),_e(y.isIdle,g=>{y.isPlaying.value&&L(g)}),_e(c,g=>{!g&&y.isIdle.value?y.awake():g&&n.fullScreen&&L()});function ce(g){if(u.value===g)return;const k=h.value.length;if(g<0||g>=k+1)return;const q=u.value;u.value=g;const oe=Math.floor(g*100)/100;oe!==s&&(s=oe,o("pageChanged",oe)),g>=k?(L(!1),y.stop()):g<.01?(L(!1),y.awake()):n.touchDevice&&!r&&($.value?i!==void 0&&ge()-i>300&&L(!0):Math.abs(q-g)===1&&L(!0))}function ge(){var k;const g=(k=ie.value)==null?void 0:k.$el;return g?C.value?g.scrollTop:j.value?-g.scrollLeft:g.scrollLeft:0}function ue(){!n.touchDevice&&!$.value&&K.goToPage(O.value,{smooth:!0})}function Se(){if(y.isPlaying.value){!n.fullScreen||!n.touchDevice?y.stop():y.awake();return}L()}function Ee(){var g;pt((g=B.value)==null?void 0:g.nextPath)}function Re(){var g;pt((g=B.value)==null?void 0:g.prevPath)}function dt(g){var q,oe,he;const k=(he=(oe=(q=B.value)==null?void 0:q.chapters)==null?void 0:oe[g])==null?void 0:he.path;k&&pt(k)}function pt(g){g&&(location.href=g.includes("://")?g:location.origin+g)}function En(){j.value?b():p()}function f(){j.value?p():b()}function p(){var q;const g=_.value,k=Y.value?g[g.length-1][0].index:(q=g[I()-1])==null?void 0:q[0].index;k!==void 0?K.goToPage(k):Re()}function b(){var g,k;if(Y.value)Ee();else{const q=((k=(g=_.value[I()+1])==null?void 0:g[0])==null?void 0:k.index)??h.value.length;K.goToPage(q)}}function I(){const g=O.value,k=_.value.findIndex(q=>q.some(({index:oe})=>oe===g));return k===-1?_.value.length-1:k}function T(){ep(),o("dispose")}async function L(g){if(c.value&&!n.fullScreen)return;r=!0;const k=typeof g=="boolean"?g:!n.fullScreen;o("fullScreenChanged",k),k&&setTimeout(()=>{n.fullScreen&&c.value&&o("fullScreenChanged",!1)},100)}function F(){n.entryId?E():V()}function A(){var g,k;document.fullscreenElement?document.exitFullscreen():(k=(g=pe.value)==null?void 0:g.$el)==null||k.requestFullscreen()}function V(){y.stop(),o("addEntry")}function E(){y.stop(),o("openEntry",n.entryId)}function U(g){J.value!==g&&(J.value=!J.value,J.value&&y.isPlaying.value&&y.stop())}return(g,k)=>{const q=rl,oe=ol,he=el,be=Js,Pe=Gs,Ze=Zs,jt=Bs,ht=uo,Zt=js,vo=vr,Ve=zs,rt=As,_o=Ls,mp=Ms,vp=Ps,_p=Es,bp=$s,yp=Ts,wp=gr,xp=hr,Sp=bs,Cp=vs;return g.immediate||l.value?(R(),xe(Cp,{key:0,ref_key:"root",ref:pe,loading:!a.value,immediate:!!g.immediate,"full-screen":!!g.fullScreen,idle:H.value,"space-top":d.value,rtl:te(j),onClick:k[10]||(k[10]=ot(()=>{},["stop"]))},Si({settings:fe(()=>{var yt;return[Q(yp,{"reader-style":te(z),"onUpdate:readerStyle":k[3]||(k[3]=wt=>Oe(z)?z.value=wt:null),direction:te(v),"onUpdate:direction":k[4]||(k[4]=wt=>Oe(v)?v.value=wt:null),gap:te(w),"onUpdate:gap":k[5]||(k[5]=wt=>Oe(w)?w.value=wt:null),speed:te(m),"onUpdate:speed":k[6]||(k[6]=wt=>Oe(m)?m.value=wt:null),zoom:M.value,"onUpdate:zoom":k[7]||(k[7]=wt=>M.value=wt),name:(yt=g.raw)==null?void 0:yt.title.name,webtoon:te(x),disabled:!l.value,onHelp:U},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":fe(()=>[Q(on,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:fe(()=>[Q(Sp,{zoom:M.value,onClick:k[9]||(k[9]=ot(()=>M.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:fe(()=>[X("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Be({width:`${te(u)/(te(h).length-1)*100}%`})},null,4)]),default:fe(()=>[l.value?(R(),xe(oe,{key:0,ref_key:"body",ref:ie,zoom:M.value,"onUpdate:zoom":k[0]||(k[0]=yt=>M.value=yt),"page-index":O.value,pages:te(_),"total-imgs":te(h).length,direction:te(v),gap:te(w),"is-long-strip":te($),isRTL:te(j),"is-vertical":te(C),"space-top":d.value,busy:te(c),idle:H.value,"play-controller":te(y),"touch-device":g.touchDevice,onVnodeMounted:te(K).init,onPrev:p,onNext:b,onClick:Se,onDragEnd:ue,onWheelPassive:k[1]||(k[1]=()=>te(y).interfere())},Si({_:2},[l.value&&te(h).length?{name:"end",fn:fe(()=>{var yt;return[Q(q,{"has-next":!!((yt=B.value)!=null&&yt.nextPath),onNext:Ee,onHide:T},null,8,["has-next"])]}),key:"0"}:void 0]),1032,["zoom","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","busy","idle","play-controller","touch-device","onVnodeMounted"])):Ae("",!0),a.value&&!Y.value&&!g.tourEnabled?(R(),xe(he,{key:1,direction:te(v)},null,8,["direction"])):Ae("",!0),a.value&&!Y.value?(R(),xe(be,{key:2,playing:!!te(y).isPlaying.value},null,8,["playing"])):Ae("",!0),J.value?(R(),xe(Pe,{key:3,"touch-device":g.touchDevice,onHide:U},null,8,["touch-device"])):Ae("",!0),g.tourEnabled?(R(),xe(Ze,{key:4,onHide:k[2]||(k[2]=()=>o("tourEnabledChanged",!1))})):Ae("",!0)]),_:2},[g.raw?{name:"back",fn:fe(()=>[Q(ht,{href:g.raw.title.url,title:"Back to manga"},{default:fe(()=>[Q(jt)]),_:1},8,["href"])]),key:"0"}:void 0,g.touchDevice?void 0:{name:"exit",fn:fe(()=>[Q(ht,{title:"Hide reader","data-tour":"You have entered Trackkun reader mode, press here to return to the original page",onClick:T},{default:fe(()=>[Q(Zt)]),_:1})]),key:"1"},B.value?{name:"chapter-nav",fn:fe(()=>[Q(vo,{modelValue:B.value.activeIndex,label:B.value.activeLabel,title:"Select chapter",items:B.value.chapters,"onUpdate:modelValue":dt},{item:fe(({item:yt})=>[Et(Je(yt.label),1)]),_:1},8,["modelValue","label","items"]),se.value||N.value?(R(),Z("div",ip,[Q(ht,{title:`${te(j)?"Next":"Prev"} chapter (←)`,href:se.value,disabled:!se.value,class:"!rounded-r-none"},{default:fe(()=>[Q(Ve)]),_:1},8,["title","href","disabled"]),Q(ht,{title:`${te(j)?"Prev":"Next"} chapter (→)`,href:N.value,disabled:!N.value,class:"!rounded-l-none"},{default:fe(()=>[Q(rt)]),_:1},8,["title","href","disabled"])])):Ae("",!0)]),key:"2"}:void 0,te(_).length?{name:"page-nav",fn:fe(()=>[Q(_o,{"model-value":O.value,disabled:!a.value,pages:te(_),"total-imgs":te(h).length,"onUpdate:modelValue":te(K).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,g.raw?{name:"entry",fn:fe(()=>[Q(ht,{title:g.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:F},{default:fe(()=>[g.entryId?(R(),xe(mp,{key:0})):(R(),xe(vp,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,g.touchDevice?void 0:{name:"full-screen",fn:fe(()=>[Q(ht,{title:`${P.value?"Exit":"Enter"} fullscreen (F)`,onClick:A},{default:fe(()=>[P.value?(R(),xe(_p,{key:0})):(R(),xe(bp,{key:1}))]),_:1},8,["title"])]),key:"5"},te($)?{name:"play",fn:fe(()=>[Q(ht,{"data-tour":"Press here to play like a video",title:`${te(y).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!a.value,onClick:k[8]||(k[8]=()=>te(y).toggle())},{default:fe(()=>[te(y).isPlaying.value?(R(),xe(wp,{key:0})):(R(),xe(xp,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0]),1032,["loading","immediate","full-screen","idle","space-top","rtl"])):Ae("",!0)}}}),[["styles",[`/*! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Helvetica,sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:300px){.container{max-width:300px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-full{top:100%}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.-ml-20{margin-left:-80px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.ml-1{margin-left:4px}.ml-auto{margin-left:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-0\\.5{height:2px}.h-1{height:4px}.h-1\\.5{height:6px}.h-10{height:40px}.h-12{height:48px}.h-16{height:64px}.h-20{height:80px}.h-24{height:96px}.h-4{height:16px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-9{height:36px}.h-\\[101\\%\\]{height:101%}.h-\\[27rem\\]{height:432px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-full{max-height:100%}.w-1{width:4px}.w-1\\/3{width:33.333333%}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-28{width:112px}.w-4{width:16px}.w-40{width:160px}.w-\\[4\\.5rem\\]{width:72px}.w-full{width:100%}.w-screen{width:100vw}.max-w-full{max-width:100%}.max-w-xs{max-width:320px}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-right{transform-origin:right}.origin-top{transform-origin:top}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1{--tw-translate-y:-4px}.-translate-y-1\\.5{--tw-translate-y:-6px}.-translate-y-1\\.5,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--tw-translate-y:4px}.translate-y-1\\.5{--tw-translate-y:6px}.translate-y-1\\.5,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y:100%}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-grabbing{cursor:grabbing}.cursor-none{cursor:none}.cursor-pointer{cursor:pointer}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.\\!snap-none{scroll-snap-type:none!important}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.gap-6{gap:24px}.gap-\\[1px\\]{gap:1px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:4px}.rounded-2xl{border-radius:16px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-sm{border-radius:2px}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.rounded-t-sm{border-top-left-radius:2px;border-top-right-radius:2px}.rounded-t-xl{border-top-left-radius:12px;border-top-right-radius:12px}.border{border-width:1px}.border-2{border-width:2px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-opacity-40{--tw-bg-opacity:.4}.bg-opacity-50{--tw-bg-opacity:.5}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-90{--tw-bg-opacity:.9}.bg-none{background-image:none}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:4px}.p-2{padding:8px}.p-4{padding:16px}.p-6{padding:24px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-6{padding-left:24px;padding-right:24px}.py-1{padding-bottom:4px;padding-top:4px}.py-2{padding-bottom:8px;padding-top:8px}.pb-12{padding-bottom:48px}.pb-6{padding-bottom:24px}.pl-1{padding-left:4px}.pt-3{padding-top:12px}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-90{opacity:.9}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.fixed-screen{height:100vh;left:0;position:fixed;top:0;width:100vw}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:4px;width:4px}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:300px){.\\32xs\\:gap-3{gap:12px}}@media (min-width:640px){.sm\\:w-\\[32rem\\]{width:512px}.sm\\:p-3{padding:12px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-5{padding-bottom:20px}.md\\:text-lg{font-size:18px;line-height:28px}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}.lg\\:pb-3{padding-bottom:12px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
28
- `]]]),sp=Object.freeze(Object.defineProperty({__proto__:null,default:dl},Symbol.toStringTag,{value:"Module"})),lp={},ap={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},cp=[X("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 up(e,t){return R(),Z("svg",ap,cp)}const fp=Object.freeze(Object.defineProperty({__proto__:null,default:we(lp,[["render",up]])},Symbol.toStringTag,{value:"Module"})),dp=`gear-second{display:block!important;inset:0!important;opacity:0!important;pointer-events:none!important;position:fixed!important;z-index:-10!important}html.gear-second,html.gear-second *{pointer-events:none!important;scroll-behavior:auto!important;scrollbar-width:none!important}html.gear-second ::-webkit-scrollbar,html.gear-second::-webkit-scrollbar{display:none!important}html.gear-second body gear-second~*,html.gear-second>:not(body):not(head){--tw-translate-x:100%!important;--tw-translate-y:-100%!important;display:none!important;height:0!important;min-height:0!important;min-width:0!important;opacity:0!important;pointer-events:none!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important;visibility:hidden!important;width:0!important}html.gear-second body{touch-action:pan-x pan-y!important}html.gear-second body gear-second{--tw-bg-opacity:1!important;background-color:rgb(0 0 0/var(--tw-bg-opacity))!important;filter:none!important;opacity:1!important;pointer-events:auto!important;transform:none!important;visibility:visible!important;z-index:10000000000000000!important}html.gear-second body .m-content #progress-bar{display:none!important}
29
- `,$n="gear-second",Ir={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:an({...Ir})};async function pp(e){return Xe.promise?(Xe.data.raw=e.raw,await Xe.promise):(Xe.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($n),Object.assign(Xe.data,Ir),Xe.promise=void 0)};Object.assign(Xe.data,Ir,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;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}}),hp().then(()=>{if(n){a();return}r=document.createElement($n),document.documentElement.classList.add($n),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)=>Ad(c,u),updateArgs(c){Object.assign(Xe.data,c)},dispose:s}))}function a(){o||t(void 0)}}),await Xe.promise)}async function hp(){if(window.customElements.get($n))return;const e=document.createElement("style");e.appendChild(document.createTextNode(dp)),document.head.appendChild(e);const t=zc({styles:[await gp()],data:()=>({readerData:Xe.data}),render(){return Gi(dl,this.readerData)}});window.customElements.define($n,t)}async function gp(){const e=Object.assign({"./TrackkunReader.vue":sp,"./components/AutoNext.vue":Ud,"./components/BottomSheet.vue":zu,"./components/ButtonDropdown.vue":Nf,"./components/ButtonIcon.vue":Cu,"./components/ButtonReaderSettings.vue":ff,"./components/ButtonResetZoom.vue":uu,"./components/DirectionToast.vue":Od,"./components/HelpScreen.vue":kd,"./components/InputPercentage.vue":Du,"./components/InputSelect.vue":Fu,"./components/IntersectionWrapper.vue":jd,"./components/LoadingIndicator.vue":qc,"./components/PageNav.vue":Hf,"./components/PauseToast.vue":Id,"./components/ReaderBody.vue":Hd,"./components/ReaderLayout.vue":tu,"./components/ReaderTour.vue":Sd,"./components/TableField.vue":Nu,"./components/ZoomWrapper.vue":zd,"./components/icons/IconBack.vue":ad,"./components/icons/IconBookmarkNew.vue":If,"./components/icons/IconBookmarked.vue":Mf,"./components/icons/IconChevronLeft.vue":Jf,"./components/icons/IconChevronRight.vue":Yf,"./components/icons/IconClose.vue":Eu,"./components/icons/IconExclamationCircle.vue":fp,"./components/icons/IconFullscreen.vue":mf,"./components/icons/IconFullscreenExit.vue":wf,"./components/icons/IconHelp.vue":qu,"./components/icons/IconNext.vue":Md,"./components/icons/IconPause.vue":yu,"./components/icons/IconPlay.vue":gu,"./components/icons/IconReaderExit.vue":od,"./components/icons/IconSettings.vue":Qu,"./components/icons/IconTriangle.vue":jf,"./components/icons/IconZoom.vue":su}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return pp});
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});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gear-second",
3
3
  "author": "endyquang",
4
- "version": "1.5.7",
4
+ "version": "1.6.1",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Trkun manga reader",
7
7
  "main": "index.js",