gear-second 0.0.3 → 0.0.4

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 +8 -8
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,8 +1,8 @@
1
- (function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode("html.gear-second{font-size:16px!important;background:#000}html.gear-second,html.gear-second body{overflow:hidden!important}html.gear-second body{touch-action:pan-x pan-y!important}html.gear-second body>nav,html.gear-second body>header,html.gear-second body>footer{visibility:hidden!important;display:none!important}html.gear-second body gear-second{z-index:99999;visibility:visible!important;position:fixed!important;top:0px!important;right:0px!important;bottom:0px!important;left:0px!important;display:block!important}html.gear-second:not(.gear-second--adblock) body>*:not(gear-second){margin-top:var(--tk-safe-top)!important;margin-bottom:var(--tk-safe-bottom)!important}html.gear-second--adblock,html.gear-second--adblock body,html.gear-second--adblock body *:not(gear-second){visibility:hidden!important}html.gear-second--adblock body *:not(gear-second){display:none!important}")),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- (function(Le,ne){typeof exports=="object"&&typeof module<"u"?module.exports=ne():typeof define=="function"&&define.amd?define(ne):(Le=typeof globalThis<"u"?globalThis:Le||self,Le._gearSecond_=ne())})(this,function(){"use strict";var Wh=Object.defineProperty;var Hh=(Le,ne,Fe)=>ne in Le?Wh(Le,ne,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):Le[ne]=Fe;var Bl=(Le,ne,Fe)=>(Hh(Le,typeof ne!="symbol"?ne+"":ne,Fe),Fe);function Le(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const ne={},Fe=[],qe=()=>{},zl=()=>!1,Nl=/^on[^a-z]/,Tn=e=>Nl.test(e),uo=e=>e.startsWith("onUpdate:"),pe=Object.assign,fo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Dl=Object.prototype.hasOwnProperty,re=(e,t)=>Dl.call(e,t),H=Array.isArray,Vt=e=>Cn(e)==="[object Map]",wr=e=>Cn(e)==="[object Set]",Q=e=>typeof e=="function",he=e=>typeof e=="string",po=e=>typeof e=="symbol",ue=e=>e!==null&&typeof e=="object",xr=e=>ue(e)&&Q(e.then)&&Q(e.catch),Or=Object.prototype.toString,Cn=e=>Or.call(e),Fl=e=>Cn(e).slice(8,-1),Pr=e=>Cn(e)==="[object Object]",ho=e=>he(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,En=Le(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),$n=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Rl=/-(\w)/g,Ae=$n(e=>e.replace(Rl,(t,n)=>n?n.toUpperCase():"")),Vl=/\B([A-Z])/g,Re=$n(e=>e.replace(Vl,"-$1").toLowerCase()),In=$n(e=>e.charAt(0).toUpperCase()+e.slice(1)),go=$n(e=>e?`on${In(e)}`:""),sn=(e,t)=>!Object.is(e,t),Sn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Mn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},mo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},vo=e=>{const t=he(e)?Number(e):NaN;return isNaN(t)?e:t};let kr;const bo=()=>kr||(kr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ye(e){if(H(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=he(o)?Kl(o):Ye(o);if(r)for(const s in r)t[s]=r[s]}return t}else{if(he(e))return e;if(ue(e))return e}}const Ul=/;(?![^(]*\))/g,Wl=/:([^]+)/,Hl=new RegExp("\\/\\*.*?\\*\\/","gs");function Kl(e){const t={};return e.replace(Hl,"").split(Ul).forEach(n=>{if(n){const o=n.split(Wl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function ve(e){let t="";if(he(e))t=e;else if(H(e))for(let n=0;n<e.length;n++){const o=ve(e[n]);o&&(t+=o+" ")}else if(ue(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ql=Le("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Tr(e){return!!e||e===""}const dt=e=>he(e)?e:e==null?"":H(e)||ue(e)&&(e.toString===Or||!Q(e.toString))?JSON.stringify(e,Cr,2):String(e),Cr=(e,t)=>t&&t.__v_isRef?Cr(e,t.value):Vt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:wr(t)?{[`Set(${t.size})`]:[...t.values()]}:ue(t)&&!H(t)&&!Pr(t)?String(t):t;let Be;class Yl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Be,!t&&Be&&(this.index=(Be.scopes||(Be.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Be;try{return Be=this,t()}finally{Be=n}}}on(){Be=this}off(){Be=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 Zl(e,t=Be){t&&t.active&&t.effects.push(e)}function Er(){return Be}function Xl(e){Be&&Be.cleanups.push(e)}const _o=e=>{const t=new Set(e);return t.w=0,t.n=0,t},$r=e=>(e.w&pt)>0,Ir=e=>(e.n&pt)>0,Jl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=pt},Ql=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];$r(r)&&!Ir(r)?r.delete(e):t[n++]=r,r.w&=~pt,r.n&=~pt}t.length=n}},yo=new WeakMap;let ln=0,pt=1;const wo=30;let Ze;const Tt=Symbol(""),xo=Symbol("");class Oo{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Zl(this,o)}run(){if(!this.active)return this.fn();let t=Ze,n=ht;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Ze,Ze=this,ht=!0,pt=1<<++ln,ln<=wo?Jl(this):Sr(this),this.fn()}finally{ln<=wo&&Ql(this),pt=1<<--ln,Ze=this.parent,ht=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ze===this?this.deferStop=!0:this.active&&(Sr(this),this.onStop&&this.onStop(),this.active=!1)}}function Sr(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let ht=!0;const Mr=[];function Ut(){Mr.push(ht),ht=!1}function Wt(){const e=Mr.pop();ht=e===void 0?!0:e}function Me(e,t,n){if(ht&&Ze){let o=yo.get(e);o||yo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=_o()),jr(r)}}function jr(e,t){let n=!1;ln<=wo?Ir(e)||(e.n|=pt,n=!$r(e)):n=!e.has(Ze),n&&(e.add(Ze),Ze.deps.push(e))}function it(e,t,n,o,r,s){const i=yo.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&H(e)){const a=Number(o);i.forEach((c,u)=>{(u==="length"||u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":H(e)?ho(n)&&l.push(i.get("length")):(l.push(i.get(Tt)),Vt(e)&&l.push(i.get(xo)));break;case"delete":H(e)||(l.push(i.get(Tt)),Vt(e)&&l.push(i.get(xo)));break;case"set":Vt(e)&&l.push(i.get(Tt));break}if(l.length===1)l[0]&&Po(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);Po(_o(a))}}function Po(e,t){const n=H(e)?e:[...e];for(const o of n)o.computed&&Lr(o);for(const o of n)o.computed||Lr(o)}function Lr(e,t){(e!==Ze||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Gl=Le("__proto__,__v_isRef,__isVue"),Ar=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(po)),ea=ko(),ta=ko(!1,!0),na=ko(!0),Br=oa();function oa(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=se(this);for(let s=0,i=this.length;s<i;s++)Me(o,"get",s+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(se)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Ut();const o=se(this)[t].apply(this,n);return Wt(),o}}),e}function ra(e){const t=se(this);return Me(t,"has",e),t.hasOwnProperty(e)}function ko(e=!1,t=!1){return function(o,r,s){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&s===(e?t?ya:Hr:t?Wr:Ur).get(o))return o;const i=H(o);if(!e){if(i&&re(Br,r))return Reflect.get(Br,r,s);if(r==="hasOwnProperty")return ra}const l=Reflect.get(o,r,s);return(po(r)?Ar.has(r):Gl(r))||(e||Me(o,"get",r),t)?l:xe(l)?i&&ho(r)?l:l.value:ue(l)?e?Eo(l):an(l):l}}const sa=zr(),ia=zr(!0);function zr(e=!1){return function(n,o,r,s){let i=n[o];if(Kt(i)&&xe(i)&&!xe(r))return!1;if(!e&&(!Dn(r)&&!Kt(r)&&(i=se(i),r=se(r)),!H(n)&&xe(i)&&!xe(r)))return i.value=r,!0;const l=H(n)&&ho(o)?Number(o)<n.length:re(n,o),a=Reflect.set(n,o,r,s);return n===se(s)&&(l?sn(r,i)&&it(n,"set",o,r):it(n,"add",o,r)),a}}function la(e,t){const n=re(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&it(e,"delete",t,void 0),o}function aa(e,t){const n=Reflect.has(e,t);return(!po(t)||!Ar.has(t))&&Me(e,"has",t),n}function ca(e){return Me(e,"iterate",H(e)?"length":Tt),Reflect.ownKeys(e)}const Nr={get:ea,set:sa,deleteProperty:la,has:aa,ownKeys:ca},ua={get:na,set(e,t){return!0},deleteProperty(e,t){return!0}},fa=pe({},Nr,{get:ta,set:ia}),To=e=>e,jn=e=>Reflect.getPrototypeOf(e);function Ln(e,t,n=!1,o=!1){e=e.__v_raw;const r=se(e),s=se(t);n||(t!==s&&Me(r,"get",t),Me(r,"get",s));const{has:i}=jn(r),l=o?To:n?Io:cn;if(i.call(r,t))return l(e.get(t));if(i.call(r,s))return l(e.get(s));e!==r&&e.get(t)}function An(e,t=!1){const n=this.__v_raw,o=se(n),r=se(e);return t||(e!==r&&Me(o,"has",e),Me(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Bn(e,t=!1){return e=e.__v_raw,!t&&Me(se(e),"iterate",Tt),Reflect.get(e,"size",e)}function Dr(e){e=se(e);const t=se(this);return jn(t).has.call(t,e)||(t.add(e),it(t,"add",e,e)),this}function Fr(e,t){t=se(t);const n=se(this),{has:o,get:r}=jn(n);let s=o.call(n,e);s||(e=se(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?sn(t,i)&&it(n,"set",e,t):it(n,"add",e,t),this}function Rr(e){const t=se(this),{has:n,get:o}=jn(t);let r=n.call(t,e);r||(e=se(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&it(t,"delete",e,void 0),s}function Vr(){const e=se(this),t=e.size!==0,n=e.clear();return t&&it(e,"clear",void 0,void 0),n}function zn(e,t){return function(o,r){const s=this,i=s.__v_raw,l=se(i),a=t?To:e?Io:cn;return!e&&Me(l,"iterate",Tt),i.forEach((c,u)=>o.call(r,a(c),a(u),s))}}function Nn(e,t,n){return function(...o){const r=this.__v_raw,s=se(r),i=Vt(s),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=r[e](...o),u=n?To:t?Io:cn;return!t&&Me(s,"iterate",a?xo:Tt),{next(){const{value:d,done:p}=c.next();return p?{value:d,done:p}:{value:l?[u(d[0]),u(d[1])]:u(d),done:p}},[Symbol.iterator](){return this}}}}function gt(e){return function(...t){return e==="delete"?!1:this}}function da(){const e={get(s){return Ln(this,s)},get size(){return Bn(this)},has:An,add:Dr,set:Fr,delete:Rr,clear:Vr,forEach:zn(!1,!1)},t={get(s){return Ln(this,s,!1,!0)},get size(){return Bn(this)},has:An,add:Dr,set:Fr,delete:Rr,clear:Vr,forEach:zn(!1,!0)},n={get(s){return Ln(this,s,!0)},get size(){return Bn(this,!0)},has(s){return An.call(this,s,!0)},add:gt("add"),set:gt("set"),delete:gt("delete"),clear:gt("clear"),forEach:zn(!0,!1)},o={get(s){return Ln(this,s,!0,!0)},get size(){return Bn(this,!0)},has(s){return An.call(this,s,!0)},add:gt("add"),set:gt("set"),delete:gt("delete"),clear:gt("clear"),forEach:zn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Nn(s,!1,!1),n[s]=Nn(s,!0,!1),t[s]=Nn(s,!1,!0),o[s]=Nn(s,!0,!0)}),[e,n,t,o]}const[pa,ha,ga,ma]=da();function Co(e,t){const n=t?e?ma:ga:e?ha:pa;return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(re(n,r)&&r in o?n:o,r,s)}const va={get:Co(!1,!1)},ba={get:Co(!1,!0)},_a={get:Co(!0,!1)},Ur=new WeakMap,Wr=new WeakMap,Hr=new WeakMap,ya=new WeakMap;function wa(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xa(e){return e.__v_skip||!Object.isExtensible(e)?0:wa(Fl(e))}function an(e){return Kt(e)?e:$o(e,!1,Nr,va,Ur)}function Oa(e){return $o(e,!1,fa,ba,Wr)}function Eo(e){return $o(e,!0,ua,_a,Hr)}function $o(e,t,n,o,r){if(!ue(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=xa(e);if(i===0)return e;const l=new Proxy(e,i===2?o:n);return r.set(e,l),l}function Ht(e){return Kt(e)?Ht(e.__v_raw):!!(e&&e.__v_isReactive)}function Kt(e){return!!(e&&e.__v_isReadonly)}function Dn(e){return!!(e&&e.__v_isShallow)}function Kr(e){return Ht(e)||Kt(e)}function se(e){const t=e&&e.__v_raw;return t?se(t):e}function qr(e){return Mn(e,"__v_skip",!0),e}const cn=e=>ue(e)?an(e):e,Io=e=>ue(e)?Eo(e):e;function Yr(e){ht&&Ze&&(e=se(e),jr(e.dep||(e.dep=_o())))}function Zr(e,t){e=se(e);const n=e.dep;n&&Po(n)}function xe(e){return!!(e&&e.__v_isRef===!0)}function ee(e){return Jr(e,!1)}function Xr(e){return Jr(e,!0)}function Jr(e,t){return xe(e)?e:new Pa(e,t)}class Pa{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:se(t),this._value=n?t:cn(t)}get value(){return Yr(this),this._value}set value(t){const n=this.__v_isShallow||Dn(t)||Kt(t);t=n?t:se(t),sn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:cn(t),Zr(this))}}function G(e){return xe(e)?e.value:e}const ka={get:(e,t,n)=>G(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return xe(r)&&!xe(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Qr(e){return Ht(e)?e:new Proxy(e,ka)}class Ta{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Oo(t,()=>{this._dirty||(this._dirty=!0,Zr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=se(this);return Yr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Ca(e,t,n=!1){let o,r;const s=Q(e);return s?(o=e,r=qe):(o=e.get,r=e.set),new Ta(o,r,s||!r,n)}function qh(e,...t){}function mt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){Fn(s,t,n)}return r}function Ve(e,t,n,o){if(Q(e)){const s=mt(e,t,n,o);return s&&xr(s)&&s.catch(i=>{Fn(i,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(Ve(e[s],t,n,o));return r}function Fn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const i=t.proxy,l=n;for(;s;){const c=s.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,i,l)===!1)return}s=s.parent}const a=t.appContext.config.errorHandler;if(a){mt(a,null,10,[e,i,l]);return}}Ea(e,n,r,o)}function Ea(e,t,n,o=!0){console.error(e)}let un=!1,So=!1;const Te=[];let et=0;const qt=[];let lt=null,Ct=0;const Gr=Promise.resolve();let Mo=null;function at(e){const t=Mo||Gr;return e?t.then(this?e.bind(this):e):t}function $a(e){let t=et+1,n=Te.length;for(;t<n;){const o=t+n>>>1;fn(Te[o])<e?t=o+1:n=o}return t}function jo(e){(!Te.length||!Te.includes(e,un&&e.allowRecurse?et+1:et))&&(e.id==null?Te.push(e):Te.splice($a(e.id),0,e),es())}function es(){!un&&!So&&(So=!0,Mo=Gr.then(os))}function Ia(e){const t=Te.indexOf(e);t>et&&Te.splice(t,1)}function Sa(e){H(e)?qt.push(...e):(!lt||!lt.includes(e,e.allowRecurse?Ct+1:Ct))&&qt.push(e),es()}function ts(e,t=un?et+1:0){for(;t<Te.length;t++){const n=Te[t];n&&n.pre&&(Te.splice(t,1),t--,n())}}function ns(e){if(qt.length){const t=[...new Set(qt)];if(qt.length=0,lt){lt.push(...t);return}for(lt=t,lt.sort((n,o)=>fn(n)-fn(o)),Ct=0;Ct<lt.length;Ct++)lt[Ct]();lt=null,Ct=0}}const fn=e=>e.id==null?1/0:e.id,Ma=(e,t)=>{const n=fn(e)-fn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function os(e){So=!1,un=!0,Te.sort(Ma);const t=qe;try{for(et=0;et<Te.length;et++){const n=Te[et];n&&n.active!==!1&&mt(n,null,14)}}finally{et=0,Te.length=0,ns(),un=!1,Mo=null,(Te.length||qt.length)&&os()}}function ja(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ne;let r=n;const s=t.startsWith("update:"),i=s&&t.slice(7);if(i&&i in o){const u=`${i==="modelValue"?"model":i}Modifiers`,{number:d,trim:p}=o[u]||ne;p&&(r=n.map(g=>he(g)?g.trim():g)),d&&(r=n.map(mo))}let l,a=o[l=go(t)]||o[l=go(Ae(t))];!a&&s&&(a=o[l=go(Re(t))]),a&&Ve(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,Ve(c,e,6,r)}}function rs(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const s=e.emits;let i={},l=!1;if(!Q(e)){const a=c=>{const u=rs(c,t,!0);u&&(l=!0,pe(i,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!s&&!l?(ue(e)&&o.set(e,null),null):(H(s)?s.forEach(a=>i[a]=null):pe(i,s),ue(e)&&o.set(e,i),i)}function Rn(e,t){return!e||!Tn(t)?!1:(t=t.slice(2).replace(/Once$/,""),re(e,t[0].toLowerCase()+t.slice(1))||re(e,Re(t))||re(e,t))}let Oe=null,ss=null;function Vn(e){const t=Oe;return Oe=e,ss=e&&e.type.__scopeId||null,t}function ie(e,t=Oe,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Ls(-1);const s=Vn(t);let i;try{i=e(...r)}finally{Vn(s),o._d&&Ls(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function Yh(){}function Lo(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:l,attrs:a,emit:c,render:u,renderCache:d,data:p,setupState:g,ctx:O,inheritAttrs:m}=e;let P,C;const b=Vn(e);try{if(n.shapeFlag&4){const $=r||o;P=nt(u.call($,$,d,s,g,p,O)),C=a}else{const $=t;P=nt($.length>1?$(s,{attrs:a,slots:l,emit:c}):$(s,null)),C=t.props?a:La(a)}}catch($){gn.length=0,Fn($,e,1),P=Y(We)}let E=P;if(C&&m!==!1){const $=Object.keys(C),{shapeFlag:B}=E;$.length&&B&7&&(i&&$.some(uo)&&(C=Aa(C,i)),E=bt(E,C))}return n.dirs&&(E=bt(E),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),P=E,Vn(b),P}const La=e=>{let t;for(const n in e)(n==="class"||n==="style"||Tn(n))&&((t||(t={}))[n]=e[n]);return t},Aa=(e,t)=>{const n={};for(const o in e)(!uo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Ba(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:l,patchFlag:a}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?is(o,i,c):!!i;if(a&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const p=u[d];if(i[p]!==o[p]&&!Rn(c,p))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===i?!1:o?i?is(o,i,c):!0:!!i;return!1}function is(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const s=o[r];if(t[s]!==e[s]&&!Rn(n,s))return!0}return!1}function za({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Na=e=>e.__isSuspense;function Da(e,t){t&&t.pendingBranch?H(e)?t.effects.push(...e):t.effects.push(e):Sa(e)}function Fa(e,t){return Ao(e,null,t)}const Un={};function ge(e,t,n){return Ao(e,t,n)}function Ao(e,t,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:i}=ne){var l;const a=Er()===((l=we)==null?void 0:l.scope)?we:null;let c,u=!1,d=!1;if(xe(e)?(c=()=>e.value,u=Dn(e)):Ht(e)?(c=()=>e,o=!0):H(e)?(d=!0,u=e.some($=>Ht($)||Dn($)),c=()=>e.map($=>{if(xe($))return $.value;if(Ht($))return Et($);if(Q($))return mt($,a,2)})):Q(e)?t?c=()=>mt(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return p&&p(),Ve(e,a,3,[g])}:c=qe,t&&o){const $=c;c=()=>Et($())}let p,g=$=>{p=b.onStop=()=>{mt($,a,4)}},O;if(vn)if(g=qe,t?n&&Ve(t,a,3,[c(),d?[]:void 0,g]):c(),r==="sync"){const $=jc();O=$.__watcherHandles||($.__watcherHandles=[])}else return qe;let m=d?new Array(e.length).fill(Un):Un;const P=()=>{if(b.active)if(t){const $=b.run();(o||u||(d?$.some((B,V)=>sn(B,m[V])):sn($,m)))&&(p&&p(),Ve(t,a,3,[$,m===Un?void 0:d&&m[0]===Un?[]:m,g]),m=$)}else b.run()};P.allowRecurse=!!t;let C;r==="sync"?C=P:r==="post"?C=()=>je(P,a&&a.suspense):(P.pre=!0,a&&(P.id=a.uid),C=()=>jo(P));const b=new Oo(c,C);t?n?P():m=b.run():r==="post"?je(b.run.bind(b),a&&a.suspense):b.run();const E=()=>{b.stop(),a&&a.scope&&fo(a.scope.effects,b)};return O&&O.push(E),E}function Ra(e,t,n){const o=this.proxy,r=he(e)?e.includes(".")?ls(o,e):()=>o[e]:e.bind(o,o);let s;Q(t)?s=t:(s=t.handler,n=t);const i=we;Jt(this);const l=Ao(r,s.bind(o),n);return i?Jt(i):jt(),l}function ls(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 Et(e,t){if(!ue(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),xe(e))Et(e.value,t);else if(H(e))for(let n=0;n<e.length;n++)Et(e[n],t);else if(wr(e)||Vt(e))e.forEach(n=>{Et(n,t)});else if(Pr(e))for(const n in e)Et(e[n],t);return e}function vt(e,t){const n=Oe;if(n===null)return e;const o=Gn(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,l,a,c=ne]=t[s];i&&(Q(i)&&(i={mounted:i,updated:i}),i.deep&&Et(l),r.push({dir:i,instance:o,value:l,oldValue:void 0,arg:a,modifiers:c}))}return e}function $t(e,t,n,o){const r=e.dirs,s=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];s&&(l.oldValue=s[i].value);let a=l.dir[o];a&&(Ut(),Ve(a,n,8,[e.el,l,e,t]),Wt())}}function Va(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return tt(()=>{e.isMounted=!0}),ps(()=>{e.isUnmounting=!0}),e}const Ue=[Function,Array],as={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ue,onEnter:Ue,onAfterEnter:Ue,onEnterCancelled:Ue,onBeforeLeave:Ue,onLeave:Ue,onAfterLeave:Ue,onLeaveCancelled:Ue,onBeforeAppear:Ue,onAppear:Ue,onAfterAppear:Ue,onAppearCancelled:Ue},Ua={name:"BaseTransition",props:as,setup(e,{slots:t}){const n=zs(),o=Va();let r;return()=>{const s=t.default&&fs(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const m of s)if(m.type!==We){i=m;break}}const l=se(e),{mode:a}=l;if(o.isLeaving)return zo(i);const c=us(i);if(!c)return zo(i);const u=Bo(c,l,o,n);No(c,u);const d=n.subTree,p=d&&us(d);let g=!1;const{getTransitionKey:O}=c.type;if(O){const m=O();r===void 0?r=m:m!==r&&(r=m,g=!0)}if(p&&p.type!==We&&(!Mt(c,p)||g)){const m=Bo(p,l,o,n);if(No(p,m),a==="out-in")return o.isLeaving=!0,m.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},zo(i);a==="in-out"&&c.type!==We&&(m.delayLeave=(P,C,b)=>{const E=cs(o,p);E[String(p.key)]=p,P._leaveCb=()=>{C(),P._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=b})}return i}}};function cs(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 Bo(e,t,n,o){const{appear:r,mode:s,persisted:i=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:p,onAfterLeave:g,onLeaveCancelled:O,onBeforeAppear:m,onAppear:P,onAfterAppear:C,onAppearCancelled:b}=t,E=String(e.key),$=cs(n,e),B=(k,z)=>{k&&Ve(k,o,9,z)},V=(k,z)=>{const K=z[1];B(k,z),H(k)?k.every(le=>le.length<=1)&&K():k.length<=1&&K()},y={mode:s,persisted:i,beforeEnter(k){let z=l;if(!n.isMounted)if(r)z=m||l;else return;k._leaveCb&&k._leaveCb(!0);const K=$[E];K&&Mt(e,K)&&K.el._leaveCb&&K.el._leaveCb(),B(z,[k])},enter(k){let z=a,K=c,le=u;if(!n.isMounted)if(r)z=P||a,K=C||c,le=b||u;else return;let L=!1;const w=k._enterCb=R=>{L||(L=!0,R?B(le,[k]):B(K,[k]),y.delayedLeave&&y.delayedLeave(),k._enterCb=void 0)};z?V(z,[k,w]):w()},leave(k,z){const K=String(e.key);if(k._enterCb&&k._enterCb(!0),n.isUnmounting)return z();B(d,[k]);let le=!1;const L=k._leaveCb=w=>{le||(le=!0,z(),w?B(O,[k]):B(g,[k]),k._leaveCb=void 0,$[K]===e&&delete $[K])};$[K]=e,p?V(p,[k,L]):L()},clone(k){return Bo(k,t,n,o)}};return y}function zo(e){if(Wn(e))return e=bt(e),e.children=null,e}function us(e){return Wn(e)?e.children?e.children[0]:void 0:e}function No(e,t){e.shapeFlag&6&&e.component?No(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 fs(e,t=!1,n){let o=[],r=0;for(let s=0;s<e.length;s++){let i=e[s];const l=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===ye?(i.patchFlag&128&&r++,o=o.concat(fs(i.children,t,l))):(t||i.type!==We)&&o.push(l!=null?bt(i,{key:l}):i)}if(r>1)for(let s=0;s<o.length;s++)o[s].patchFlag=-2;return o}function Pe(e,t){return Q(e)?(()=>pe({name:e.name},t,{setup:e}))():e}const dn=e=>!!e.type.__asyncLoader,Wn=e=>e.type.__isKeepAlive;function Wa(e,t){ds(e,"a",t)}function Ha(e,t){ds(e,"da",t)}function ds(e,t,n=we){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Hn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Wn(r.parent.vnode)&&Ka(o,t,n,r),r=r.parent}}function Ka(e,t,n,o){const r=Hn(t,e,o,!0);It(()=>{fo(o[t],r)},n)}function Hn(e,t,n=we,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Ut(),Jt(n);const l=Ve(t,n,e,i);return jt(),Wt(),l});return o?r.unshift(s):r.push(s),s}}const ct=e=>(t,n=we)=>(!vn||e==="sp")&&Hn(e,(...o)=>t(...o),n),qa=ct("bm"),tt=ct("m"),Ya=ct("bu"),Za=ct("u"),ps=ct("bum"),It=ct("um"),Xa=ct("sp"),Ja=ct("rtg"),Qa=ct("rtc");function Ga(e,t=we){Hn("ec",e,t)}const hs="components",gs=Symbol.for("v-ndc");function ec(e){return he(e)?tc(hs,e,!1)||e:e||gs}function tc(e,t,n=!0,o=!1){const r=Oe||we;if(r){const s=r.type;if(e===hs){const l=Ic(s,!1);if(l&&(l===t||l===Ae(t)||l===In(Ae(t))))return s}const i=ms(r[e]||s[e],t)||ms(r.appContext[e],t);return!i&&o?s:i}}function ms(e,t){return e&&(e[t]||e[Ae(t)]||e[In(Ae(t))])}function Kn(e,t,n,o){let r;const s=n&&n[o];if(H(e)||he(e)){r=new Array(e.length);for(let i=0,l=e.length;i<l;i++)r[i]=t(e[i],i,void 0,s&&s[i])}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,s&&s[i])}else if(ue(e))if(e[Symbol.iterator])r=Array.from(e,(i,l)=>t(i,l,void 0,s&&s[l]));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,a=i.length;l<a;l++){const c=i[l];r[l]=t(e[c],c,l,s&&s[l])}}else r=[];return n&&(n[o]=r),r}function nc(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(H(o))for(let r=0;r<o.length;r++)e[o[r].name]=o[r].fn;else o&&(e[o.name]=o.key?(...r)=>{const s=o.fn(...r);return s&&(s.key=o.key),s}:o.fn)}return e}function Ce(e,t,n={},o,r){if(Oe.isCE||Oe.parent&&dn(Oe.parent)&&Oe.parent.isCE)return t!=="default"&&(n.name=t),Y("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),N();const i=s&&vs(s(n)),l=Ee(ye,{key:n.key||i&&i.key||`_${t}`},i||(o?o():[]),i&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function vs(e){return e.some(t=>Xn(t)?!(t.type===We||t.type===ye&&!vs(t.children)):!0)?e:null}const Do=e=>e?Ds(e)?Gn(e)||e.proxy:Do(e.parent):null,pn=pe(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=>Do(e.parent),$root:e=>Do(e.root),$emit:e=>e.emit,$options:e=>Vo(e),$forceUpdate:e=>e.f||(e.f=()=>jo(e.update)),$nextTick:e=>e.n||(e.n=at.bind(e.proxy)),$watch:e=>Ra.bind(e)}),Fo=(e,t)=>e!==ne&&!e.__isScriptSetup&&re(e,t),oc={get({_:e},t){const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(Fo(o,t))return i[t]=1,o[t];if(r!==ne&&re(r,t))return i[t]=2,r[t];if((c=e.propsOptions[0])&&re(c,t))return i[t]=3,s[t];if(n!==ne&&re(n,t))return i[t]=4,n[t];Ro&&(i[t]=0)}}const u=pn[t];let d,p;if(u)return t==="$attrs"&&Me(e,"get",t),u(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==ne&&re(n,t))return i[t]=4,n[t];if(p=a.config.globalProperties,re(p,t))return p[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return Fo(r,t)?(r[t]=n,!0):o!==ne&&re(o,t)?(o[t]=n,!0):re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:s}},i){let l;return!!n[i]||e!==ne&&re(e,i)||Fo(t,i)||(l=s[0])&&re(l,i)||re(o,i)||re(pn,i)||re(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function bs(e){return H(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ro=!0;function rc(e){const t=Vo(e),n=e.proxy,o=e.ctx;Ro=!1,t.beforeCreate&&_s(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:l,provide:a,inject:c,created:u,beforeMount:d,mounted:p,beforeUpdate:g,updated:O,activated:m,deactivated:P,beforeDestroy:C,beforeUnmount:b,destroyed:E,unmounted:$,render:B,renderTracked:V,renderTriggered:y,errorCaptured:k,serverPrefetch:z,expose:K,inheritAttrs:le,components:L,directives:w,filters:R}=t;if(c&&sc(c,o,null),i)for(const D in i){const Z=i[D];Q(Z)&&(o[D]=Z.bind(n))}if(r){const D=r.call(n,n);ue(D)&&(e.data=an(D))}if(Ro=!0,s)for(const D in s){const Z=s[D],ke=Q(Z)?Z.bind(n,n):Q(Z.get)?Z.get.bind(n,n):qe,Qe=!Q(Z)&&Q(Z.set)?Z.set.bind(n):qe,Ne=fe({get:ke,set:Qe});Object.defineProperty(o,D,{enumerable:!0,configurable:!0,get:()=>Ne.value,set:$e=>Ne.value=$e})}if(l)for(const D in l)ys(l[D],o,n,D);if(a){const D=Q(a)?a.call(n):a;Reflect.ownKeys(D).forEach(Z=>{Wo(Z,D[Z])})}u&&_s(u,e,"c");function I(D,Z){H(Z)?Z.forEach(ke=>D(ke.bind(n))):Z&&D(Z.bind(n))}if(I(qa,d),I(tt,p),I(Ya,g),I(Za,O),I(Wa,m),I(Ha,P),I(Ga,k),I(Qa,V),I(Ja,y),I(ps,b),I(It,$),I(Xa,z),H(K))if(K.length){const D=e.exposed||(e.exposed={});K.forEach(Z=>{Object.defineProperty(D,Z,{get:()=>n[Z],set:ke=>n[Z]=ke})})}else e.exposed||(e.exposed={});B&&e.render===qe&&(e.render=B),le!=null&&(e.inheritAttrs=le),L&&(e.components=L),w&&(e.directives=w)}function sc(e,t,n=qe){H(e)&&(e=Uo(e));for(const o in e){const r=e[o];let s;ue(r)?"default"in r?s=Yt(r.from||o,r.default,!0):s=Yt(r.from||o):s=Yt(r),xe(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[o]=s}}function _s(e,t,n){Ve(H(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function ys(e,t,n,o){const r=o.includes(".")?ls(n,o):()=>n[o];if(he(e)){const s=t[e];Q(s)&&ge(r,s)}else if(Q(e))ge(r,e.bind(n));else if(ue(e))if(H(e))e.forEach(s=>ys(s,t,n,o));else{const s=Q(e.handler)?e.handler.bind(n):t[e.handler];Q(s)&&ge(r,s,e)}}function Vo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,l=s.get(t);let a;return l?a=l:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(c=>qn(a,c,i,!0)),qn(a,t,i)),ue(t)&&s.set(t,a),a}function qn(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&qn(e,s,n,!0),r&&r.forEach(i=>qn(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const l=ic[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const ic={data:ws,props:xs,emits:xs,methods:hn,computed:hn,beforeCreate:Se,created:Se,beforeMount:Se,mounted:Se,beforeUpdate:Se,updated:Se,beforeDestroy:Se,beforeUnmount:Se,destroyed:Se,unmounted:Se,activated:Se,deactivated:Se,errorCaptured:Se,serverPrefetch:Se,components:hn,directives:hn,watch:ac,provide:ws,inject:lc};function ws(e,t){return t?e?function(){return pe(Q(e)?e.call(this,this):e,Q(t)?t.call(this,this):t)}:t:e}function lc(e,t){return hn(Uo(e),Uo(t))}function Uo(e){if(H(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Se(e,t){return e?[...new Set([].concat(e,t))]:t}function hn(e,t){return e?pe(Object.create(null),e,t):t}function xs(e,t){return e?H(e)&&H(t)?[...new Set([...e,...t])]:pe(Object.create(null),bs(e),bs(t??{})):t}function ac(e,t){if(!e)return t;if(!t)return e;const n=pe(Object.create(null),e);for(const o in t)n[o]=Se(e[o],t[o]);return n}function Os(){return{app:null,config:{isNativeTag:zl,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 cc=0;function uc(e,t){return function(o,r=null){Q(o)||(o=pe({},o)),r!=null&&!ue(r)&&(r=null);const s=Os(),i=new Set;let l=!1;const a=s.app={_uid:cc++,_component:o,_props:r,_container:null,_context:s,_instance:null,version:Lc,get config(){return s.config},set config(c){},use(c,...u){return i.has(c)||(c&&Q(c.install)?(i.add(c),c.install(a,...u)):Q(c)&&(i.add(c),c(a,...u))),a},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),a},component(c,u){return u?(s.components[c]=u,a):s.components[c]},directive(c,u){return u?(s.directives[c]=u,a):s.directives[c]},mount(c,u,d){if(!l){const p=Y(o,r);return p.appContext=s,u&&t?t(p,c):e(p,c,d),l=!0,a._container=c,c.__vue_app__=a,Gn(p.component)||p.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return s.provides[c]=u,a},runWithContext(c){Yn=a;try{return c()}finally{Yn=null}}};return a}}let Yn=null;function Wo(e,t){if(we){let n=we.provides;const o=we.parent&&we.parent.provides;o===n&&(n=we.provides=Object.create(o)),n[e]=t}}function Yt(e,t,n=!1){const o=we||Oe;if(o||Yn){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Yn._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&Q(t)?t.call(o&&o.proxy):t}}function fc(e,t,n,o=!1){const r={},s={};Mn(s,Jn,1),e.propsDefaults=Object.create(null),Ps(e,t,r,s);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:Oa(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function dc(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,l=se(r),[a]=e.propsOptions;let c=!1;if((o||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let p=u[d];if(Rn(e.emitsOptions,p))continue;const g=t[p];if(a)if(re(s,p))g!==s[p]&&(s[p]=g,c=!0);else{const O=Ae(p);r[O]=Ho(a,l,O,g,e,!1)}else g!==s[p]&&(s[p]=g,c=!0)}}}else{Ps(e,t,r,s)&&(c=!0);let u;for(const d in l)(!t||!re(t,d)&&((u=Re(d))===d||!re(t,u)))&&(a?n&&(n[d]!==void 0||n[u]!==void 0)&&(r[d]=Ho(a,l,d,void 0,e,!0)):delete r[d]);if(s!==l)for(const d in s)(!t||!re(t,d))&&(delete s[d],c=!0)}c&&it(e,"set","$attrs")}function Ps(e,t,n,o){const[r,s]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(En(a))continue;const c=t[a];let u;r&&re(r,u=Ae(a))?!s||!s.includes(u)?n[u]=c:(l||(l={}))[u]=c:Rn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,i=!0)}if(s){const a=se(n),c=l||ne;for(let u=0;u<s.length;u++){const d=s[u];n[d]=Ho(r,a,d,c[d],e,!re(c,d))}}return i}function Ho(e,t,n,o,r,s){const i=e[n];if(i!=null){const l=re(i,"default");if(l&&o===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&Q(a)){const{propsDefaults:c}=r;n in c?o=c[n]:(Jt(r),o=c[n]=a.call(null,t),jt())}else o=a}i[0]&&(s&&!l?o=!1:i[1]&&(o===""||o===Re(n))&&(o=!0))}return o}function ks(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const s=e.props,i={},l=[];let a=!1;if(!Q(e)){const u=d=>{a=!0;const[p,g]=ks(d,t,!0);pe(i,p),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!a)return ue(e)&&o.set(e,Fe),Fe;if(H(s))for(let u=0;u<s.length;u++){const d=Ae(s[u]);Ts(d)&&(i[d]=ne)}else if(s)for(const u in s){const d=Ae(u);if(Ts(d)){const p=s[u],g=i[d]=H(p)||Q(p)?{type:p}:pe({},p);if(g){const O=$s(Boolean,g.type),m=$s(String,g.type);g[0]=O>-1,g[1]=m<0||O<m,(O>-1||re(g,"default"))&&l.push(d)}}}const c=[i,l];return ue(e)&&o.set(e,c),c}function Ts(e){return e[0]!=="$"}function Cs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Es(e,t){return Cs(e)===Cs(t)}function $s(e,t){return H(t)?t.findIndex(n=>Es(n,e)):Q(t)&&Es(t,e)?0:-1}const Is=e=>e[0]==="_"||e==="$stable",Ko=e=>H(e)?e.map(nt):[nt(e)],pc=(e,t,n)=>{if(t._n)return t;const o=ie((...r)=>Ko(t(...r)),n);return o._c=!1,o},Ss=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Is(r))continue;const s=e[r];if(Q(s))t[r]=pc(r,s,o);else if(s!=null){const i=Ko(s);t[r]=()=>i}}},Ms=(e,t)=>{const n=Ko(t);e.slots.default=()=>n},hc=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=se(t),Mn(t,"_",n)):Ss(t,e.slots={})}else e.slots={},t&&Ms(e,t);Mn(e.slots,Jn,1)},gc=(e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,i=ne;if(o.shapeFlag&32){const l=t._;l?n&&l===1?s=!1:(pe(r,t),!n&&l===1&&delete r._):(s=!t.$stable,Ss(t,r)),i=t}else t&&(Ms(e,t),i={default:1});if(s)for(const l in r)!Is(l)&&!(l in i)&&delete r[l]};function qo(e,t,n,o,r=!1){if(H(e)){e.forEach((p,g)=>qo(p,t&&(H(t)?t[g]:t),n,o,r));return}if(dn(o)&&!r)return;const s=o.shapeFlag&4?Gn(o.component)||o.component.proxy:o.el,i=r?null:s,{i:l,r:a}=e,c=t&&t.r,u=l.refs===ne?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(he(c)?(u[c]=null,re(d,c)&&(d[c]=null)):xe(c)&&(c.value=null)),Q(a))mt(a,l,12,[i,u]);else{const p=he(a),g=xe(a);if(p||g){const O=()=>{if(e.f){const m=p?re(d,a)?d[a]:u[a]:a.value;r?H(m)&&fo(m,s):H(m)?m.includes(s)||m.push(s):p?(u[a]=[s],re(d,a)&&(d[a]=u[a])):(a.value=[s],e.k&&(u[e.k]=a.value))}else p?(u[a]=i,re(d,a)&&(d[a]=i)):g&&(a.value=i,e.k&&(u[e.k]=i))};i?(O.id=-1,je(O,n)):O()}}}const je=Da;function mc(e){return vc(e)}function vc(e,t){const n=bo();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:l,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:p,setScopeId:g=qe,insertStaticContent:O}=e,m=(f,h,v,_=null,x=null,M=null,A=!1,S=null,j=!!h.dynamicChildren)=>{if(f===h)return;f&&!Mt(f,h)&&(_=rt(f),$e(f,x,M,!0),f=null),h.patchFlag===-2&&(j=!1,h.dynamicChildren=null);const{type:T,ref:U,shapeFlag:F}=h;switch(T){case Zn:P(f,h,v,_);break;case We:C(f,h,v,_);break;case Yo:f==null&&b(h,v,_,A);break;case ye:L(f,h,v,_,x,M,A,S,j);break;default:F&1?B(f,h,v,_,x,M,A,S,j):F&6?w(f,h,v,_,x,M,A,S,j):(F&64||F&128)&&T.process(f,h,v,_,x,M,A,S,j,kt)}U!=null&&x&&qo(U,f&&f.ref,M,h||f,!h)},P=(f,h,v,_)=>{if(f==null)o(h.el=l(h.children),v,_);else{const x=h.el=f.el;h.children!==f.children&&c(x,h.children)}},C=(f,h,v,_)=>{f==null?o(h.el=a(h.children||""),v,_):h.el=f.el},b=(f,h,v,_)=>{[f.el,f.anchor]=O(f.children,h,v,_,f.el,f.anchor)},E=({el:f,anchor:h},v,_)=>{let x;for(;f&&f!==h;)x=p(f),o(f,v,_),f=x;o(h,v,_)},$=({el:f,anchor:h})=>{let v;for(;f&&f!==h;)v=p(f),r(f),f=v;r(h)},B=(f,h,v,_,x,M,A,S,j)=>{A=A||h.type==="svg",f==null?V(h,v,_,x,M,A,S,j):z(f,h,x,M,A,S,j)},V=(f,h,v,_,x,M,A,S)=>{let j,T;const{type:U,props:F,shapeFlag:W,transition:J,dirs:oe}=f;if(j=f.el=i(f.type,M,F&&F.is,F),W&8?u(j,f.children):W&16&&k(f.children,j,null,_,x,M&&U!=="foreignObject",A,S),oe&&$t(f,null,_,"created"),y(j,f,f.scopeId,A,_),F){for(const ae in F)ae!=="value"&&!En(ae)&&s(j,ae,null,F[ae],M,f.children,_,x,Ie);"value"in F&&s(j,"value",null,F.value),(T=F.onVnodeBeforeMount)&&ot(T,_,f)}oe&&$t(f,null,_,"beforeMount");const ce=(!x||x&&!x.pendingBranch)&&J&&!J.persisted;ce&&J.beforeEnter(j),o(j,h,v),((T=F&&F.onVnodeMounted)||ce||oe)&&je(()=>{T&&ot(T,_,f),ce&&J.enter(j),oe&&$t(f,null,_,"mounted")},x)},y=(f,h,v,_,x)=>{if(v&&g(f,v),_)for(let M=0;M<_.length;M++)g(f,_[M]);if(x){let M=x.subTree;if(h===M){const A=x.vnode;y(f,A,A.scopeId,A.slotScopeIds,x.parent)}}},k=(f,h,v,_,x,M,A,S,j=0)=>{for(let T=j;T<f.length;T++){const U=f[T]=S?_t(f[T]):nt(f[T]);m(null,U,h,v,_,x,M,A,S)}},z=(f,h,v,_,x,M,A)=>{const S=h.el=f.el;let{patchFlag:j,dynamicChildren:T,dirs:U}=h;j|=f.patchFlag&16;const F=f.props||ne,W=h.props||ne;let J;v&&St(v,!1),(J=W.onVnodeBeforeUpdate)&&ot(J,v,h,f),U&&$t(h,f,v,"beforeUpdate"),v&&St(v,!0);const oe=x&&h.type!=="foreignObject";if(T?K(f.dynamicChildren,T,S,v,_,oe,M):A||Z(f,h,S,null,v,_,oe,M,!1),j>0){if(j&16)le(S,h,F,W,v,_,x);else if(j&2&&F.class!==W.class&&s(S,"class",null,W.class,x),j&4&&s(S,"style",F.style,W.style,x),j&8){const ce=h.dynamicProps;for(let ae=0;ae<ce.length;ae++){const me=ce[ae],Ge=F[me],rn=W[me];(rn!==Ge||me==="value")&&s(S,me,Ge,rn,x,f.children,v,_,Ie)}}j&1&&f.children!==h.children&&u(S,h.children)}else!A&&T==null&&le(S,h,F,W,v,_,x);((J=W.onVnodeUpdated)||U)&&je(()=>{J&&ot(J,v,h,f),U&&$t(h,f,v,"updated")},_)},K=(f,h,v,_,x,M,A)=>{for(let S=0;S<h.length;S++){const j=f[S],T=h[S],U=j.el&&(j.type===ye||!Mt(j,T)||j.shapeFlag&70)?d(j.el):v;m(j,T,U,null,_,x,M,A,!0)}},le=(f,h,v,_,x,M,A)=>{if(v!==_){if(v!==ne)for(const S in v)!En(S)&&!(S in _)&&s(f,S,v[S],null,A,h.children,x,M,Ie);for(const S in _){if(En(S))continue;const j=_[S],T=v[S];j!==T&&S!=="value"&&s(f,S,T,j,A,h.children,x,M,Ie)}"value"in _&&s(f,"value",v.value,_.value)}},L=(f,h,v,_,x,M,A,S,j)=>{const T=h.el=f?f.el:l(""),U=h.anchor=f?f.anchor:l("");let{patchFlag:F,dynamicChildren:W,slotScopeIds:J}=h;J&&(S=S?S.concat(J):J),f==null?(o(T,v,_),o(U,v,_),k(h.children,v,U,x,M,A,S,j)):F>0&&F&64&&W&&f.dynamicChildren?(K(f.dynamicChildren,W,v,x,M,A,S),(h.key!=null||x&&h===x.subTree)&&js(f,h,!0)):Z(f,h,v,U,x,M,A,S,j)},w=(f,h,v,_,x,M,A,S,j)=>{h.slotScopeIds=S,f==null?h.shapeFlag&512?x.ctx.activate(h,v,_,A,j):R(h,v,_,x,M,A,j):te(f,h,j)},R=(f,h,v,_,x,M,A)=>{const S=f.component=kc(f,_,x);if(Wn(f)&&(S.ctx.renderer=kt),Tc(S),S.asyncDep){if(x&&x.registerDep(S,I),!f.el){const j=S.subTree=Y(We);C(null,j,h,v)}return}I(S,f,h,v,x,M,A)},te=(f,h,v)=>{const _=h.component=f.component;if(Ba(f,h,v))if(_.asyncDep&&!_.asyncResolved){D(_,h,v);return}else _.next=h,Ia(_.update),_.update();else h.el=f.el,_.vnode=h},I=(f,h,v,_,x,M,A)=>{const S=()=>{if(f.isMounted){let{next:U,bu:F,u:W,parent:J,vnode:oe}=f,ce=U,ae;St(f,!1),U?(U.el=oe.el,D(f,U,A)):U=oe,F&&Sn(F),(ae=U.props&&U.props.onVnodeBeforeUpdate)&&ot(ae,J,U,oe),St(f,!0);const me=Lo(f),Ge=f.subTree;f.subTree=me,m(Ge,me,d(Ge.el),rt(Ge),f,x,M),U.el=me.el,ce===null&&za(f,me.el),W&&je(W,x),(ae=U.props&&U.props.onVnodeUpdated)&&je(()=>ot(ae,J,U,oe),x)}else{let U;const{el:F,props:W}=h,{bm:J,m:oe,parent:ce}=f,ae=dn(h);if(St(f,!1),J&&Sn(J),!ae&&(U=W&&W.onVnodeBeforeMount)&&ot(U,ce,h),St(f,!0),F&&Pn){const me=()=>{f.subTree=Lo(f),Pn(F,f.subTree,f,x,null)};ae?h.type.__asyncLoader().then(()=>!f.isUnmounted&&me()):me()}else{const me=f.subTree=Lo(f);m(null,me,v,_,f,x,M),h.el=me.el}if(oe&&je(oe,x),!ae&&(U=W&&W.onVnodeMounted)){const me=h;je(()=>ot(U,ce,me),x)}(h.shapeFlag&256||ce&&dn(ce.vnode)&&ce.vnode.shapeFlag&256)&&f.a&&je(f.a,x),f.isMounted=!0,h=v=_=null}},j=f.effect=new Oo(S,()=>jo(T),f.scope),T=f.update=()=>j.run();T.id=f.uid,St(f,!0),T()},D=(f,h,v)=>{h.component=f;const _=f.vnode.props;f.vnode=h,f.next=null,dc(f,h.props,_,v),gc(f,h.children,v),Ut(),ts(),Wt()},Z=(f,h,v,_,x,M,A,S,j=!1)=>{const T=f&&f.children,U=f?f.shapeFlag:0,F=h.children,{patchFlag:W,shapeFlag:J}=h;if(W>0){if(W&128){Qe(T,F,v,_,x,M,A,S,j);return}else if(W&256){ke(T,F,v,_,x,M,A,S,j);return}}J&8?(U&16&&Ie(T,x,M),F!==T&&u(v,F)):U&16?J&16?Qe(T,F,v,_,x,M,A,S,j):Ie(T,x,M,!0):(U&8&&u(v,""),J&16&&k(F,v,_,x,M,A,S,j))},ke=(f,h,v,_,x,M,A,S,j)=>{f=f||Fe,h=h||Fe;const T=f.length,U=h.length,F=Math.min(T,U);let W;for(W=0;W<F;W++){const J=h[W]=j?_t(h[W]):nt(h[W]);m(f[W],J,v,null,x,M,A,S,j)}T>U?Ie(f,x,M,!0,!1,F):k(h,v,_,x,M,A,S,j,F)},Qe=(f,h,v,_,x,M,A,S,j)=>{let T=0;const U=h.length;let F=f.length-1,W=U-1;for(;T<=F&&T<=W;){const J=f[T],oe=h[T]=j?_t(h[T]):nt(h[T]);if(Mt(J,oe))m(J,oe,v,null,x,M,A,S,j);else break;T++}for(;T<=F&&T<=W;){const J=f[F],oe=h[W]=j?_t(h[W]):nt(h[W]);if(Mt(J,oe))m(J,oe,v,null,x,M,A,S,j);else break;F--,W--}if(T>F){if(T<=W){const J=W+1,oe=J<U?h[J].el:_;for(;T<=W;)m(null,h[T]=j?_t(h[T]):nt(h[T]),v,oe,x,M,A,S,j),T++}}else if(T>W)for(;T<=F;)$e(f[T],x,M,!0),T++;else{const J=T,oe=T,ce=new Map;for(T=oe;T<=W;T++){const De=h[T]=j?_t(h[T]):nt(h[T]);De.key!=null&&ce.set(De.key,T)}let ae,me=0;const Ge=W-oe+1;let rn=!1,jl=0;const kn=new Array(Ge);for(T=0;T<Ge;T++)kn[T]=0;for(T=J;T<=F;T++){const De=f[T];if(me>=Ge){$e(De,x,M,!0);continue}let st;if(De.key!=null)st=ce.get(De.key);else for(ae=oe;ae<=W;ae++)if(kn[ae-oe]===0&&Mt(De,h[ae])){st=ae;break}st===void 0?$e(De,x,M,!0):(kn[st-oe]=T+1,st>=jl?jl=st:rn=!0,m(De,h[st],v,null,x,M,A,S,j),me++)}const Ll=rn?bc(kn):Fe;for(ae=Ll.length-1,T=Ge-1;T>=0;T--){const De=oe+T,st=h[De],Al=De+1<U?h[De+1].el:_;kn[T]===0?m(null,st,v,Al,x,M,A,S,j):rn&&(ae<0||T!==Ll[ae]?Ne(st,v,Al,2):ae--)}}},Ne=(f,h,v,_,x=null)=>{const{el:M,type:A,transition:S,children:j,shapeFlag:T}=f;if(T&6){Ne(f.component.subTree,h,v,_);return}if(T&128){f.suspense.move(h,v,_);return}if(T&64){A.move(f,h,v,kt);return}if(A===ye){o(M,h,v);for(let F=0;F<j.length;F++)Ne(j[F],h,v,_);o(f.anchor,h,v);return}if(A===Yo){E(f,h,v);return}if(_!==2&&T&1&&S)if(_===0)S.beforeEnter(M),o(M,h,v),je(()=>S.enter(M),x);else{const{leave:F,delayLeave:W,afterLeave:J}=S,oe=()=>o(M,h,v),ce=()=>{F(M,()=>{oe(),J&&J()})};W?W(M,oe,ce):ce()}else o(M,h,v)},$e=(f,h,v,_=!1,x=!1)=>{const{type:M,props:A,ref:S,children:j,dynamicChildren:T,shapeFlag:U,patchFlag:F,dirs:W}=f;if(S!=null&&qo(S,null,v,f,!0),U&256){h.ctx.deactivate(f);return}const J=U&1&&W,oe=!dn(f);let ce;if(oe&&(ce=A&&A.onVnodeBeforeUnmount)&&ot(ce,h,f),U&6)xn(f.component,v,_);else{if(U&128){f.suspense.unmount(v,_);return}J&&$t(f,null,h,"beforeUnmount"),U&64?f.type.remove(f,h,v,x,kt,_):T&&(M!==ye||F>0&&F&64)?Ie(T,h,v,!1,!0):(M===ye&&F&384||!x&&U&16)&&Ie(j,h,v),_&&_e(f)}(oe&&(ce=A&&A.onVnodeUnmounted)||J)&&je(()=>{ce&&ot(ce,h,f),J&&$t(f,null,h,"unmounted")},v)},_e=f=>{const{type:h,el:v,anchor:_,transition:x}=f;if(h===ye){Pt(v,_);return}if(h===Yo){$(f);return}const M=()=>{r(v),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(f.shapeFlag&1&&x&&!x.persisted){const{leave:A,delayLeave:S}=x,j=()=>A(v,M);S?S(f.el,M,j):j()}else M()},Pt=(f,h)=>{let v;for(;f!==h;)v=p(f),r(f),f=v;r(h)},xn=(f,h,v)=>{const{bum:_,scope:x,update:M,subTree:A,um:S}=f;_&&Sn(_),x.stop(),M&&(M.active=!1,$e(A,f,h,v)),S&&je(S,h),je(()=>{f.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},Ie=(f,h,v,_=!1,x=!1,M=0)=>{for(let A=M;A<f.length;A++)$e(f[A],h,v,_,x)},rt=f=>f.shapeFlag&6?rt(f.component.subTree):f.shapeFlag&128?f.suspense.next():p(f.anchor||f.el),co=(f,h,v)=>{f==null?h._vnode&&$e(h._vnode,null,null,!0):m(h._vnode||null,f,h,null,null,null,v),ts(),ns(),h._vnode=f},kt={p:m,um:$e,m:Ne,r:_e,mt:R,mc:k,pc:Z,pbc:K,n:rt,o:e};let On,Pn;return t&&([On,Pn]=t(kt)),{render:co,hydrate:On,createApp:uc(co,On)}}function St({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function js(e,t,n=!1){const o=e.children,r=t.children;if(H(o)&&H(r))for(let s=0;s<o.length;s++){const i=o[s];let l=r[s];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[s]=_t(r[s]),l.el=i.el),n||js(i,l)),l.type===Zn&&(l.el=i.el)}}function bc(e){const t=e.slice(),n=[0];let o,r,s,i,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(r=n[n.length-1],e[r]<c){t[o]=r,n.push(o);continue}for(s=0,i=n.length-1;s<i;)l=s+i>>1,e[n[l]]<c?s=l+1:i=l;c<e[n[s]]&&(s>0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}const _c=e=>e.__isTeleport,ye=Symbol.for("v-fgt"),Zn=Symbol.for("v-txt"),We=Symbol.for("v-cmt"),Yo=Symbol.for("v-stc"),gn=[];let Xe=null;function N(e=!1){gn.push(Xe=e?null:[])}function yc(){gn.pop(),Xe=gn[gn.length-1]||null}let mn=1;function Ls(e){mn+=e}function As(e){return e.dynamicChildren=mn>0?Xe||Fe:null,yc(),mn>0&&Xe&&Xe.push(e),e}function q(e,t,n,o,r,s){return As(X(e,t,n,o,r,s,!0))}function Ee(e,t,n,o,r){return As(Y(e,t,n,o,r,!0))}function Xn(e){return e?e.__v_isVNode===!0:!1}function Mt(e,t){return e.type===t.type&&e.key===t.key}const Jn="__vInternal",Bs=({key:e})=>e??null,Qn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?he(e)||xe(e)||Q(e)?{i:Oe,r:e,k:t,f:!!n}:e:null);function X(e,t=null,n=null,o=0,r=null,s=e===ye?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Bs(t),ref:t&&Qn(t),scopeId:ss,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Oe};return l?(Zo(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=he(n)?8:16),mn>0&&!i&&Xe&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&Xe.push(a),a}const Y=wc;function wc(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===gs)&&(e=We),Xn(e)){const l=bt(e,t,!0);return n&&Zo(l,n),mn>0&&!s&&Xe&&(l.shapeFlag&6?Xe[Xe.indexOf(e)]=l:Xe.push(l)),l.patchFlag|=-2,l}if(Sc(e)&&(e=e.__vccOpts),t){t=xc(t);let{class:l,style:a}=t;l&&!he(l)&&(t.class=ve(l)),ue(a)&&(Kr(a)&&!H(a)&&(a=pe({},a)),t.style=Ye(a))}const i=he(e)?1:Na(e)?128:_c(e)?64:ue(e)?4:Q(e)?2:0;return X(e,t,n,o,r,i,s,!0)}function xc(e){return e?Kr(e)||Jn in e?pe({},e):e:null}function bt(e,t,n=!1){const{props:o,ref:r,patchFlag:s,children:i}=e,l=t?Xo(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Bs(l),ref:t&&t.ref?n&&r?H(r)?r.concat(Qn(t)):[r,Qn(t)]:Qn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ye?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&bt(e.ssContent),ssFallback:e.ssFallback&&bt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Zt(e=" ",t=0){return Y(Zn,null,e,t)}function He(e="",t=!1){return t?(N(),Ee(We,null,e)):Y(We,null,e)}function nt(e){return e==null||typeof e=="boolean"?Y(We):H(e)?Y(ye,null,e.slice()):typeof e=="object"?_t(e):Y(Zn,null,String(e))}function _t(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:bt(e)}function Zo(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(H(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Zo(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Jn in t)?t._ctx=Oe:r===3&&Oe&&(Oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Q(t)?(t={default:t,_ctx:Oe},n=32):(t=String(t),o&64?(n=16,t=[Zt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Xo(...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=ve([t.class,o.class]));else if(r==="style")t.style=Ye([t.style,o.style]);else if(Tn(r)){const s=t[r],i=o[r];i&&s!==i&&!(H(s)&&s.includes(i))&&(t[r]=s?[].concat(s,i):i)}else r!==""&&(t[r]=o[r])}return t}function ot(e,t,n,o=null){Ve(e,t,7,[n,o])}const Oc=Os();let Pc=0;function kc(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Oc,s={uid:Pc++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Yl(!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:ks(o,r),emitsOptions:rs(o,r),emit:null,emitted:null,propsDefaults:ne,inheritAttrs:o.inheritAttrs,ctx:ne,data:ne,props:ne,attrs:ne,slots:ne,refs:ne,setupState:ne,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=ja.bind(null,s),e.ce&&e.ce(s),s}let we=null;const zs=()=>we||Oe;let Jo,Xt,Ns="__VUE_INSTANCE_SETTERS__";(Xt=bo()[Ns])||(Xt=bo()[Ns]=[]),Xt.push(e=>we=e),Jo=e=>{Xt.length>1?Xt.forEach(t=>t(e)):Xt[0](e)};const Jt=e=>{Jo(e),e.scope.on()},jt=()=>{we&&we.scope.off(),Jo(null)};function Ds(e){return e.vnode.shapeFlag&4}let vn=!1;function Tc(e,t=!1){vn=t;const{props:n,children:o}=e.vnode,r=Ds(e);fc(e,n,r,t),hc(e,o);const s=r?Cc(e,t):void 0;return vn=!1,s}function Cc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=qr(new Proxy(e.ctx,oc));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?$c(e):null;Jt(e),Ut();const s=mt(o,e,0,[e.props,r]);if(Wt(),jt(),xr(s)){if(s.then(jt,jt),t)return s.then(i=>{Fs(e,i,t)}).catch(i=>{Fn(i,e,0)});e.asyncDep=s}else Fs(e,s,t)}else Vs(e,t)}function Fs(e,t,n){Q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ue(t)&&(e.setupState=Qr(t)),Vs(e,n)}let Rs;function Vs(e,t,n){const o=e.type;if(!e.render){if(!t&&Rs&&!o.render){const r=o.template||Vo(e).template;if(r){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=pe(pe({isCustomElement:s,delimiters:l},i),a);o.render=Rs(r,c)}}e.render=o.render||qe}Jt(e),Ut(),rc(e),Wt(),jt()}function Ec(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Me(e,"get","$attrs"),t[n]}}))}function $c(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Ec(e)},slots:e.slots,emit:e.emit,expose:t}}function Gn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Qr(qr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in pn)return pn[n](e)},has(t,n){return n in t||n in pn}}))}function Ic(e,t=!0){return Q(e)?e.displayName||e.name:e.name||t&&e.__name}function Sc(e){return Q(e)&&"__vccOpts"in e}const fe=(e,t)=>Ca(e,t,vn);function Us(e,t,n){const o=arguments.length;return o===2?ue(t)&&!H(t)?Xn(t)?Y(e,null,[t]):Y(e,t):Y(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Xn(n)&&(n=[n]),Y(e,t,n))}const Mc=Symbol.for("v-scx"),jc=()=>Yt(Mc),Lc="3.3.2",Ac="http://www.w3.org/2000/svg",Lt=typeof document<"u"?document:null,Ws=Lt&&Lt.createElement("template"),Bc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?Lt.createElementNS(Ac,e):Lt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Lt.createTextNode(e),createComment:e=>Lt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Lt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,s){const i=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{Ws.innerHTML=o?`<svg>${e}</svg>`:e;const l=Ws.content;if(o){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function zc(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Nc(e,t,n){const o=e.style,r=he(n);if(n&&!r){if(t&&!he(t))for(const s in t)n[s]==null&&Qo(o,s,"");for(const s in n)Qo(o,s,n[s])}else{const s=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=s)}}const Hs=/\s*!important$/;function Qo(e,t,n){if(H(n))n.forEach(o=>Qo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Dc(e,t);Hs.test(n)?e.setProperty(Re(o),n.replace(Hs,""),"important"):e[o]=n}}const Ks=["Webkit","Moz","ms"],Go={};function Dc(e,t){const n=Go[t];if(n)return n;let o=Ae(t);if(o!=="filter"&&o in e)return Go[t]=o;o=In(o);for(let r=0;r<Ks.length;r++){const s=Ks[r]+o;if(s in e)return Go[t]=s}return t}const qs="http://www.w3.org/1999/xlink";function Fc(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(qs,t.slice(6,t.length)):e.setAttributeNS(qs,t,n);else{const s=ql(t);n==null||s&&!Tr(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function Rc(e,t,n,o,r,s,i){if(t==="innerHTML"||t==="textContent"){o&&i(o,r,s),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const c=l==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Tr(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function Qt(e,t,n,o){e.addEventListener(t,n,o)}function Vc(e,t,n,o){e.removeEventListener(t,n,o)}function Uc(e,t,n,o,r=null){const s=e._vei||(e._vei={}),i=s[t];if(o&&i)i.value=o;else{const[l,a]=Wc(t);if(o){const c=s[t]=qc(o,r);Qt(e,l,c,a)}else i&&(Vc(e,l,i,a),s[t]=void 0)}}const Ys=/(?:Once|Passive|Capture)$/;function Wc(e){let t;if(Ys.test(e)){t={};let o;for(;o=e.match(Ys);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Re(e.slice(2)),t]}let er=0;const Hc=Promise.resolve(),Kc=()=>er||(Hc.then(()=>er=0),er=Date.now());function qc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Ve(Yc(o,n.value),t,5,[o])};return n.value=e,n.attached=Kc(),n}function Yc(e,t){if(H(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 Zs=/^on[a-z]/,Zc=(e,t,n,o,r=!1,s,i,l,a)=>{t==="class"?zc(e,o,r):t==="style"?Nc(e,n,o):Tn(t)?uo(t)||Uc(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Xc(e,t,o,r))?Rc(e,t,o,s,i,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Fc(e,t,o,r))};function Xc(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Zs.test(t)&&Q(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Zs.test(t)&&he(n)?!1:t in e}function Jc(e,t){const n=Pe(e);class o extends tr{constructor(s){super(n,s,t)}}return o.def=n,o}const Qc=typeof HTMLElement<"u"?HTMLElement:class{};class tr extends Qc{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=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,at(()=>{this._connected||(ii(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);new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}).observe(this,{attributes:!0});const t=(o,r=!1)=>{const{props:s,styles:i}=o;let l;if(s&&!H(s))for(const a in s){const c=s[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=vo(this._props[a])),(l||(l=Object.create(null)))[Ae(a)]=!0)}this._numberProps=l,r&&this._resolveProps(o),this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=H(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(Ae))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(s){this._setProp(r,s)}})}_setAttr(t){let n=this.getAttribute(t);const o=Ae(t);this._numberProps&&this._numberProps[o]&&(n=vo(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(Re(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Re(t),n+""):n||this.removeAttribute(Re(t))))}_update(){ii(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Y(this._def,pe({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(s,i)=>{this.dispatchEvent(new CustomEvent(s,{detail:i}))};n.emit=(s,...i)=>{o(s,i),Re(s)!==s&&o(Re(s),i)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof tr){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 yt="transition",bn="animation",Gt=(e,{slots:t})=>Us(Ua,Gc(e),t);Gt.displayName="Transition";const Xs={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};Gt.props=pe({},as,Xs);const At=(e,t=[])=>{H(e)?e.forEach(n=>n(...t)):e&&e(...t)},Js=e=>e?H(e)?e.some(t=>t.length>1):e.length>1:!1;function Gc(e){const t={};for(const L in e)L in Xs||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=s,appearActiveClass:c=i,appearToClass:u=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,O=eu(r),m=O&&O[0],P=O&&O[1],{onBeforeEnter:C,onEnter:b,onEnterCancelled:E,onLeave:$,onLeaveCancelled:B,onBeforeAppear:V=C,onAppear:y=b,onAppearCancelled:k=E}=t,z=(L,w,R)=>{Bt(L,w?u:l),Bt(L,w?c:i),R&&R()},K=(L,w)=>{L._isLeaving=!1,Bt(L,d),Bt(L,g),Bt(L,p),w&&w()},le=L=>(w,R)=>{const te=L?y:b,I=()=>z(w,L,R);At(te,[w,I]),Qs(()=>{Bt(w,L?a:s),wt(w,L?u:l),Js(te)||Gs(w,o,m,I)})};return pe(t,{onBeforeEnter(L){At(C,[L]),wt(L,s),wt(L,i)},onBeforeAppear(L){At(V,[L]),wt(L,a),wt(L,c)},onEnter:le(!1),onAppear:le(!0),onLeave(L,w){L._isLeaving=!0;const R=()=>K(L,w);wt(L,d),ou(),wt(L,p),Qs(()=>{L._isLeaving&&(Bt(L,d),wt(L,g),Js($)||Gs(L,o,P,R))}),At($,[L,R])},onEnterCancelled(L){z(L,!1),At(E,[L])},onAppearCancelled(L){z(L,!0),At(k,[L])},onLeaveCancelled(L){K(L),At(B,[L])}})}function eu(e){if(e==null)return null;if(ue(e))return[nr(e.enter),nr(e.leave)];{const t=nr(e);return[t,t]}}function nr(e){return vo(e)}function wt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Bt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Qs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let tu=0;function Gs(e,t,n,o){const r=e._endId=++tu,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:l,propCount:a}=nu(e,t);if(!i)return o();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,p),s()},p=g=>{g.target===e&&++u>=a&&d()};setTimeout(()=>{u<a&&d()},l+1),e.addEventListener(c,p)}function nu(e,t){const n=window.getComputedStyle(e),o=O=>(n[O]||"").split(", "),r=o(`${yt}Delay`),s=o(`${yt}Duration`),i=ei(r,s),l=o(`${bn}Delay`),a=o(`${bn}Duration`),c=ei(l,a);let u=null,d=0,p=0;t===yt?i>0&&(u=yt,d=i,p=s.length):t===bn?c>0&&(u=bn,d=c,p=a.length):(d=Math.max(i,c),u=d>0?i>c?yt:bn:null,p=u?u===yt?s.length:a.length:0);const g=u===yt&&/\b(transform|all)(,|$)/.test(o(`${yt}Property`).toString());return{type:u,timeout:d,propCount:p,hasTransform:g}}function ei(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>ti(n)+ti(e[o])))}function ti(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function ou(){return document.body.offsetHeight}const ni=e=>{const t=e.props["onUpdate:modelValue"]||!1;return H(t)?n=>Sn(t,n):t};function ru(e){e.target.composing=!0}function oi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const su={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=ni(r);const s=o||r.props&&r.props.type==="number";Qt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),s&&(l=mo(l)),e._assign(l)}),n&&Qt(e,"change",()=>{e.value=e.value.trim()}),t||(Qt(e,"compositionstart",ru),Qt(e,"compositionend",oi),Qt(e,"change",oi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},s){if(e._assign=ni(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&mo(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},iu=["ctrl","shift","alt","meta"],lu={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)=>iu.some(n=>e[`${n}Key`]&&!t.includes(n))},zt=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const s=lu[t[r]];if(s&&s(n,t))return}return e(n,...o)},au={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ri=(e,t)=>n=>{if(!("key"in n))return;const o=Re(n.key);if(t.some(r=>r===o||au[r]===o))return e(n)},cu={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):_n(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),_n(e,!0),o.enter(e)):o.leave(e,()=>{_n(e,!1)}):_n(e,t))},beforeUnmount(e,{value:t}){_n(e,t)}};function _n(e,t){e.style.display=t?e._vod:"none"}const uu=pe({patchProp:Zc},Bc);let si;function fu(){return si||(si=mc(uu))}const ii=(...e)=>{fu().render(...e)},du={class:"flex gap-3 items-center children-pointer-events-auto relative z-30"},pu={class:"ml-auto inline-block"},hu={class:"absolute right-0 bottom-0 inline-flex flex-col items-center gap-4 children-pointer-events-auto pb-4 sm:pb-0"},gu={class:"inline-block z-20 relative"},mu={class:"absolute left-0 bottom-0 inline-block pointer-events-auto ml-1"},li=Pe({__name:"ReaderLayout",props:{idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{},spaceBottom:{},touchDevice:{type:Boolean}},setup(e){return(t,n)=>(N(),q("div",{class:ve(["fixed inset-0 bg-black visible z-[9999999999] text-stone-100 font-sans text-base",{"cursor-none":t.idle}])},[Ce(t.$slots,"default"),X("div",{class:ve(["fixed pointer-events-none cursor-auto duration-150 ease-linear inset-2 sm:inset-3 bottom-5",{"opacity-100 z-10":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}]),style:Ye({paddingTop:`${t.spaceTop||0}px`,paddingBottom:`${t.spaceBottom||0}px`})},[X("div",du,[Ce(t.$slots,"back"),t.touchDevice?He("",!0):Ce(t.$slots,"exit",{key:0}),Ce(t.$slots,"chapter-nav"),X("div",pu,[Ce(t.$slots,"page-nav")])]),X("div",hu,[Ce(t.$slots,"entry"),X("div",gu,[Ce(t.$slots,"settings")]),Ce(t.$slots,"play")]),X("div",{class:ve(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[Ce(t.$slots,"progress")],2),X("div",mu,[Ce(t.$slots,"reset-zoom")])],6)],2))}}),vu=Object.freeze(Object.defineProperty({__proto__:null,default:li},Symbol.toStringTag,{value:"Module"})),be=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},bu={},_u={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},yu=[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 wu(e,t){return N(),q("svg",_u,yu)}const ai=be(bu,[["render",wu]]),xu=Object.freeze(Object.defineProperty({__proto__:null,default:ai},Symbol.toStringTag,{value:"Module"})),Ou={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"},Pu={class:"block w-4 h-4"},ku={class:"w-12"},ci=Pe({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=ai;return t.zoom!==1?(N(),q("button",Ou,[X("div",Pu,[Y(o)]),X("div",ku,dt(Math.ceil(t.zoom*100))+"%",1)])):He("",!0)}}}),Tu=Object.freeze(Object.defineProperty({__proto__:null,default:ci},Symbol.toStringTag,{value:"Module"})),Cu={},Eu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},$u=[X("path",{fill:"currentColor",d:"M6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h6v2H7v12.95l5-2.15l5 2.15V11h2v8.475q0 .55-.45.838t-.95.087L12 18l-5.6 2.4ZM7 5h6h-6Zm11 4q-.425 0-.713-.287T17 8V7h-1q-.425 0-.713-.288T15 6q0-.425.288-.713T16 5h1V4q0-.425.288-.713T18 3q.425 0 .713.288T19 4v1h1q.425 0 .713.288T21 6q0 .425-.288.713T20 7h-1v1q0 .425-.288.713T18 9Z"},null,-1)];function Iu(e,t){return N(),q("svg",Eu,$u)}const ui=be(Cu,[["render",Iu]]),Su=Object.freeze(Object.defineProperty({__proto__:null,default:ui},Symbol.toStringTag,{value:"Module"})),Mu={},ju={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Lu=[X("path",{fill:"currentColor",d:"M17.825 8.575q-.2 0-.375-.062t-.325-.213L15.7 6.875q-.3-.3-.3-.712t.3-.688q.275-.3.7-.3t.7.275l.725.725l2.825-2.85q.3-.3.7-.3t.725.3q.275.3.275.725t-.275.7l-3.55 3.55q-.15.15-.325.213t-.375.062ZM6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h7q-.5.75-.75 1.438T13 6q0 1.8 1.137 3.175T17 10.9q.575.075 1 .075t1-.075v8.575q0 .55-.45.838t-.95.087L12 18l-5.6 2.4Z"},null,-1)];function Au(e,t){return N(),q("svg",ju,Lu)}const fi=be(Mu,[["render",Au]]),Bu=Object.freeze(Object.defineProperty({__proto__:null,default:fi},Symbol.toStringTag,{value:"Module"})),zu={},Nu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Du=[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 Fu(e,t){return N(),q("svg",Nu,Du)}const di=be(zu,[["render",Fu]]),Ru=Object.freeze(Object.defineProperty({__proto__:null,default:di},Symbol.toStringTag,{value:"Module"})),Vu={},Uu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Wu=[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 Hu(e,t){return N(),q("svg",Uu,Wu)}const or=be(Vu,[["render",Hu]]),Ku=Object.freeze(Object.defineProperty({__proto__:null,default:or},Symbol.toStringTag,{value:"Module"})),qu=(e,t,n)=>{const o=document.createElement("span");let r=1,s=.65;const i=setInterval(a,20);l();function l(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${n.currentTarget.clientWidth/2}px`,o.style.top=`${n.currentTarget.clientHeight/2}px`,n.currentTarget.appendChild(o)}function a(){const c=+t.value||50;r<=c?(r++,s-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${s}`):(o.remove(),clearInterval(i))}},en={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.addEventListener("click",n=>qu(e,t,n))}},Yu={class:"group-hover:bg-stone-100 group-hover:bg-opacity-10 duration-200 rounđe-full p-2 w-full h-full inline-flex justify-center items-center"},eo=Pe({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){return(n,o)=>vt((N(),Ee(ec(n.href?"a":"button"),Xo(n.href?{href:n.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full group duration-200",{"pointer-events-none text-stone-300 hover:text-stone-300":n.disabled,"text-stone-100 hover:text-stone-100":!n.disabled,"bg-black bg-opacity-50":!n.transparent}],onClick:o[0]||(o[0]=zt(()=>t("click"),["stop"]))}),{default:ie(()=>[X("div",Yu,[Ce(n.$slots,"default")])]),_:3},16,["class"])),[[G(en),15]])}}),Zu=Object.freeze(Object.defineProperty({__proto__:null,default:eo},Symbol.toStringTag,{value:"Module"}));function Xu(){const e=ee(!1);let t=0;return Wo("setBusyState",n=>{t+=n?1:-1;const o=t>0;e.value!=o&&(e.value=o)}),e}function pi(){const e=Yt("setBusyState");let t=!1;return It(()=>{t&&(e==null||e(!1))}),n=>{t!==n&&(t=n,e==null||e(n))}}class Ju{constructor(){Bl(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.onKeyUp,{capture:!0})}dispose(){window.removeEventListener("keydown",this.onKeyDown,{capture:!0}),window.removeEventListener("keyup",this.onKeyUp,{capture:!0}),window.removeEventListener("keypress",this.onKeyUp,{capture:!0})}onKeyDown(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>n(t))}onKeyUp(t){t.stopImmediatePropagation(),t.stopPropagation()}addListener(t){this.listeners.push(t)}removeListener(t){const n=this.listeners.indexOf(t);n!==-1&&this.listeners.splice(n,1)}}function Qu(){const e=new Ju;return It(()=>e.dispose()),Wo("keyController",e),e}function rr(e){const t=Yt("keyController");tt(()=>t.addListener(e)),It(()=>t.removeListener(e))}const Gu={class:"relative flex w-full flex-shrink-0 justify-center items-center h-16"},ef={class:"inline-flex items-center h-full absolute left-3 top-0"},tf=X("span",{class:"text-xl font-medium"},"Customize",-1),nf={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-16 flex-grow scrollbar-sm"},hi=Pe({__name:"BottomSheet",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;rr(r);const o=pi();ge(()=>n.modelValue,s=>{o(s)},{immediate:!0});function r(s){n.modelValue&&s.key==="Escape"&&(t("update:modelValue",!1),s.preventDefault())}return(s,i)=>{const l=or,a=eo;return N(),q("div",{class:ve(["fixed inset-0 flex flex-col items-center justify-end select-none",{"!pointer-events-none":!n.modelValue}]),onClick:i[2]||(i[2]=()=>t("update:modelValue",!1))},[Y(Gt,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:ie(()=>[n.modelValue?(N(),q("div",{key:0,class:"inline-flex flex-col h-[22rem] w-full sm:w-[32rem] max-h-[80vh] bg-stone-800 bg-opacity-75 backdrop-blur-md rounded-t-xl max-w-full overflow-hidden duration-200",onClick:i[1]||(i[1]=zt(()=>{},["stop"]))},[X("div",Gu,[X("div",ef,[Y(a,{transparent:"",onClick:i[0]||(i[0]=()=>t("update:modelValue",!1))},{default:ie(()=>[Y(l)]),_:1})]),tf]),X("div",nf,[Ce(s.$slots,"default")])])):He("",!0)]),_:3})],2)}}}),of=Object.freeze(Object.defineProperty({__proto__:null,default:hi},Symbol.toStringTag,{value:"Module"})),rf=["min","max","step"],sf={class:"flex-shrink-0"},gi=be(Pe({__name:"InputPercentage",props:{modelValue:{},min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=fe({get(){return n.modelValue},set(r){t("update:modelValue",+r)}});return(r,s)=>(N(),q("div",{class:ve(["flex items-center gap-3 pl-1",{"pointer-events-none opacity-50":r.disabled}])},[vt(X("input",{"onUpdate:modelValue":s[0]||(s[0]=i=>o.value=i),type:"range",min:r.min,max:r.max,step:r.step??1,class:"flex-grow"},null,8,rf),[[su,o.value]]),X("p",sf,[Ce(r.$slots,"suffix")])],2))}}),[["styles",[`input[type=range]{height:.125rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;--tw-bg-opacity: 1;background-color:rgb(120 113 108 / var(--tw-bg-opacity));outline:2px solid transparent;outline-offset:2px;transition-duration:.2s}@media (hover: hover) and (pointer: fine){input[type=range]:hover{--tw-bg-opacity: 1;background-color:rgb(168 162 158 / var(--tw-bg-opacity))}}input[type=range]:focus{--tw-bg-opacity: 1;background-color:rgb(168 162 158 / var(--tw-bg-opacity))}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none!important;height:1.25rem;width:1.25rem;cursor:pointer;border-radius:9999px;border-width:2px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(214 211 209 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(214 211 209 / var(--tw-bg-opacity));transition-duration:.2s}input[type=range]::-webkit-slider-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(250 250 249 / var(--tw-bg-opacity))}input[type=range]:focus::-webkit-slider-thumb{border-width:3px;border-color:rgb(184 92 56 / var(--tw-border-opacity));--tw-border-opacity: .8}
3
- `]]]),lf=Object.freeze(Object.defineProperty({__proto__:null,default:gi},Symbol.toStringTag,{value:"Module"})),af={class:"flex items-center mb-8 last:mb-0"},cf={class:"flex-grow overflow-hidden"},mi=Pe({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(N(),q("div",af,[X("div",{class:ve(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},dt(t.label),3),X("div",cf,[Ce(t.$slots,"default")])]))}}),uf=Object.freeze(Object.defineProperty({__proto__:null,default:mi},Symbol.toStringTag,{value:"Module"})),ff=["onClick","onKeyup"],vi=Pe({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ee(null),r=ee({width:"",left:""});tt(()=>{let i=!1;ge(()=>n.modelValue,l=>{var c;const a=(c=o.value)==null?void 0:c.children[l+1];a&&(r.value={width:a.offsetWidth+"px",left:a.offsetLeft+"px"},a.scrollIntoView({behavior:i?"smooth":"auto",block:"center",inline:"center"}),i=!0)},{immediate:!0})});function s(i){t("update:modelValue",i)}return(i,l)=>(N(),q("div",{ref_key:"root",ref:o,class:"relative h-7 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-5 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Ye(r.value)},null,4),(N(!0),q(ye,null,Kn(n.items,(a,c)=>vt((N(),q("div",{key:c,tabindex:"0",class:ve(["inline-flex justify-center items-center h-5 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.modelValue,"text-stone-400":c!=n.modelValue}]),onClick:()=>s(c),onKeyup:[ri(()=>s(c),["enter"]),ri(()=>s(c),["space"])]},[Zt(dt(a),1)],42,ff)),[[G(en),30]])),128))],512))}}),df=Object.freeze(Object.defineProperty({__proto__:null,default:vi},Symbol.toStringTag,{value:"Module"})),pf={},hf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},gf=[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 mf(e,t){return N(),q("svg",hf,gf)}const bi=be(pf,[["render",mf]]),vf=Object.freeze(Object.defineProperty({__proto__:null,default:bi},Symbol.toStringTag,{value:"Module"})),_i=Pe({__name:"ButtonReaderSettings",props:{modelValue:{},zoom:{},webtoon:{type:Boolean},playing:{type:Boolean},disabled:{type:Boolean}},emits:["update:modelValue","update:zoom"],setup(e,{emit:t}){const n=e,o=ee(!1);function r(s){t("update:modelValue",{...n.modelValue,...s})}return(s,i)=>{const l=bi,a=eo,c=vi,u=mi,d=gi,p=hi;return N(),q(ye,null,[Y(a,{disabled:s.disabled,onClick:i[0]||(i[0]=()=>o.value=!0)},{default:ie(()=>[Y(l)]),_:1},8,["disabled"]),Y(p,{modelValue:o.value,"onUpdate:modelValue":i[5]||(i[5]=g=>o.value=g)},{default:ie(()=>[Y(u,{label:"Style"},{default:ie(()=>[Y(c,{"model-value":s.modelValue.style,items:s.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":i[1]||(i[1]=g=>r({style:g}))},null,8,["model-value","items"])]),_:1}),Y(u,{label:"Direction"},{default:ie(()=>[Y(c,{"model-value":s.modelValue.direction,items:s.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":i[2]||(i[2]=g=>r({direction:g}))},null,8,["model-value","items"])]),_:1}),Y(u,{label:"Speed"},{default:ie(()=>[Y(d,{"model-value":s.modelValue.speed,min:.1,max:3,step:.1,suffix:"x","onUpdate:modelValue":i[3]||(i[3]=g=>r({speed:g}))},{suffix:ie(()=>[Zt(dt(s.modelValue.speed.toFixed(1))+"x ",1)]),_:1},8,["model-value"])]),_:1}),Y(u,{label:"Zoom",disabled:s.playing},{default:ie(()=>[Y(d,{"model-value":Math.ceil(s.zoom*100),min:25,max:500,disabled:s.playing,"onUpdate:modelValue":i[4]||(i[4]=g=>t("update:zoom",Math.ceil(g)/100))},{suffix:ie(()=>[Zt(dt(Math.ceil(s.zoom*100))+"% ",1)]),_:1},8,["model-value","disabled"])]),_:1},8,["disabled"])]),_:1},8,["modelValue"])],64)}}}),bf=Object.freeze(Object.defineProperty({__proto__:null,default:_i},Symbol.toStringTag,{value:"Module"})),_f={},yf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wf=[X("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function xf(e,t){return N(),q("svg",yf,wf)}const yi=be(_f,[["render",xf]]),Of=Object.freeze(Object.defineProperty({__proto__:null,default:yi},Symbol.toStringTag,{value:"Module"})),Pf=["aria-hidden"],kf=["onClick"],Tf=["onClick"],Cf={class:"inline-flex items-center justify-center w-full h-full px-4 rounded-full group-hover:bg-stone-200 group-hover:bg-opacity-20 duration-200"},Ef={class:"whitespace-nowrap"},sr=Pe({__name:"ButtonDropdown",props:{modelValue:{},label:{},items:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ee(null),r=ee(!1),s=ee(null),i=ee(!1),l=ee(!1),a=ee(!1);rr(g);const c=pi();function u(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(d(),at(()=>setTimeout(()=>{var C,b;(b=(C=s.value)==null?void 0:C.children[n.modelValue])==null||b.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),m(o.value)):setTimeout(P,250)}function d(){const C=o.value;if(C){const b=C.getBoundingClientRect(),E=b.x+b.width/2;i.value=b.y>window.innerHeight/2,l.value=E<window.innerWidth/3,a.value=E>window.innerWidth/3*2}}function p(C){C!=n.modelValue&&t("update:modelValue",C),u()}function g(C){r.value&&C.key==="Escape"&&(u(),C.preventDefault())}let O=[];function m(C){const b=window.getComputedStyle(C).zIndex,E=C.style.zIndex;(!b||!(+b>0))&&((!C.parentElement||C.parentElement.childElementCount>1)&&(C.style.zIndex="1",O.push({el:C,zIndex:E})),C.parentElement&&m(C.parentElement))}function P(){O.forEach(({el:C,zIndex:b})=>{C.style.zIndex=b??""}),O=[]}return(C,b)=>{const E=yi;return N(),q("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(N(),q("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:u})):He("",!0),n.items.length?(N(),Ee(Gt,{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:ie(()=>[r.value?(N(),q("ul",{key:0,ref_key:"list",ref:s,"aria-hidden":!r.value,class:ve(["scrollbar-sm duration-[250ms] delay-150 absolute w-40 max-h-[75vh] list-none bg-stone-800 bg-opacity-80 backdrop-blur-md rounded-lg overflow-auto",{"origin-bottom bottom-full -translate-y-1.5":i.value,"origin-top top-full translate-y-1.5":!i.value,"left-1/2 -ml-20 text-center":!l.value&&!a.value,"right-0 text-right":a.value}]),onWheelPassive:b[0]||(b[0]=zt(()=>{},["stop"]))},[(N(!0),q(ye,null,Kn(n.items,($,B)=>vt((N(),q("li",{key:B,tabindex:"-1",class:ve(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-200 hover:bg-opacity-10 duration-200",{"text-primary":B===C.modelValue}]),onClick:()=>p(B)},[X("div",{class:ve(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":B>0}])},dt($),3)],10,kf)),[[G(en),30]])),128))],42,Pf)):He("",!0)]),_:1})):He("",!0),vt((N(),q("button",{type:"button",tabindex:"-1",class:ve(["w-full h-10 max-h-full bg-transparent rounded-full bg-black bg-opacity-50 group duration-200",{"pointer-events-none text-stone-400":C.disabled}]),onClick:zt(u,["stop"])},[X("div",Cf,[X("span",Ef,dt(n.label),1),n.items.length?(N(),q("span",{key:0,class:ve(["w-4 h-4 flex ml-1 -mr-3",{"rotate-180":i.value}]),"aria-hidden":"true"},[Y(E)],2)):He("",!0)])],10,Tf)),[[G(en),30]])],512)}}}),$f=Object.freeze(Object.defineProperty({__proto__:null,default:sr},Symbol.toStringTag,{value:"Module"})),wi=Pe({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=fe(()=>Math.floor(n.modelValue)),r=fe(()=>n.pages.map(c=>c.map(({index:u})=>`${u+1}`).join("-"))),s=fe(()=>{const c=o.value,u=n.pages.findIndex(d=>d.some(({index:p})=>p===c));return u===-1?n.pages.length-1:u}),i=fe(()=>n.pages.length?`${r.value[s.value]}/${n.totalImgs}`:"--");function l(c){const u=n.pages[c][0].index;a(u)}function a(c){t("update:modelValue",c)}return(c,u)=>{const d=sr;return N(),Ee(d,{"model-value":s.value,label:i.value,items:r.value,disabled:c.disabled,"onUpdate:modelValue":l},null,8,["model-value","label","items","disabled"])}}}),If=Object.freeze(Object.defineProperty({__proto__:null,default:wi},Symbol.toStringTag,{value:"Module"})),Sf={},Mf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},jf=[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 Lf(e,t){return N(),q("svg",Mf,jf)}const ir=be(Sf,[["render",Lf]]),Af=Object.freeze(Object.defineProperty({__proto__:null,default:ir},Symbol.toStringTag,{value:"Module"})),Bf={},zf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Nf=[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 Df(e,t){return N(),q("svg",zf,Nf)}const lr=be(Bf,[["render",Df]]),Ff=Object.freeze(Object.defineProperty({__proto__:null,default:lr},Symbol.toStringTag,{value:"Module"})),xi=be(Pe({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=ee(0);return ge(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const s=ir,i=lr;return n.value?(N(),q("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(N(),Ee(s,{key:0})):(N(),Ee(i,{key:1}))])):He("",!0)}}}),[["styles",[`.animate-pause-fade{transform-origin:center;animation:pause-fade .4s linear forwards}@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)}}
4
- `]]]),Rf=Object.freeze(Object.defineProperty({__proto__:null,default:xi},Symbol.toStringTag,{value:"Module"})),Vf={},Uf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Wf=[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 Hf(e,t){return N(),q("svg",Uf,Wf)}const Oi=be(Vf,[["render",Hf]]),Kf=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"}));var Pi;const ar=typeof window<"u",qf=e=>typeof e=="function",Yf=e=>typeof e=="string",xt=()=>{};ar&&((Pi=window==null?void 0:window.navigator)!=null&&Pi.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function to(e){return typeof e=="function"?e():G(e)}function ki(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}const Ti=e=>e();function Zf(e,t={}){let n,o,r=xt;const s=l=>{clearTimeout(l),r(),r=xt};return l=>{const a=to(e),c=to(t.maxWait);return n&&s(n),a<=0||c!==void 0&&c<=0?(o&&(s(o),o=null),Promise.resolve(l())):new Promise((u,d)=>{r=t.rejectOnCancel?d:u,c&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&s(o),o=null,u(l())},a)})}}function Xf(e=Ti){const t=ee(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...s)=>{t.value&&e(...s)};return{isActive:Eo(t),pause:n,resume:o,eventFilter:r}}function Jf(e,t=!1,n="Timeout"){return new Promise((o,r)=>{setTimeout(t?()=>r(n):o,e)})}function Qf(e){return e}function cr(e){return Er()?(Xl(e),!0):!1}function tn(e,t=200,n={}){return ki(Zf(t,n),e)}function Gf(e,t=!0){zs()?tt(e):t?e():at(e)}var Ci=Object.getOwnPropertySymbols,ed=Object.prototype.hasOwnProperty,td=Object.prototype.propertyIsEnumerable,nd=(e,t)=>{var n={};for(var o in e)ed.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Ci)for(var o of Ci(e))t.indexOf(o)<0&&td.call(e,o)&&(n[o]=e[o]);return n};function od(e,t,n={}){const o=n,{eventFilter:r=Ti}=o,s=nd(o,["eventFilter"]);return ge(e,ki(r,t),s)}var rd=Object.defineProperty,sd=Object.defineProperties,id=Object.getOwnPropertyDescriptors,no=Object.getOwnPropertySymbols,Ei=Object.prototype.hasOwnProperty,$i=Object.prototype.propertyIsEnumerable,Ii=(e,t,n)=>t in e?rd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ld=(e,t)=>{for(var n in t||(t={}))Ei.call(t,n)&&Ii(e,n,t[n]);if(no)for(var n of no(t))$i.call(t,n)&&Ii(e,n,t[n]);return e},ad=(e,t)=>sd(e,id(t)),cd=(e,t)=>{var n={};for(var o in e)Ei.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&no)for(var o of no(e))t.indexOf(o)<0&&$i.call(e,o)&&(n[o]=e[o]);return n};function ud(e,t,n={}){const o=n,{eventFilter:r}=o,s=cd(o,["eventFilter"]),{eventFilter:i,pause:l,resume:a,isActive:c}=Xf(r);return{stop:od(e,t,ad(ld({},s),{eventFilter:i})),pause:l,resume:a,isActive:c}}function Nt(e){var t;const n=to(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ot=ar?window:void 0,fd=ar?window.document:void 0;function yn(...e){let t,n,o,r;if(Yf(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=Ot):[t,n,o,r]=e,!t)return xt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},l=(u,d,p)=>(u.addEventListener(d,p,r),()=>u.removeEventListener(d,p,r)),a=ge(()=>Nt(t),u=>{i(),u&&s.push(...n.flatMap(d=>o.map(p=>l(u,d,p))))},{immediate:!0,flush:"post"}),c=()=>{a(),i()};return cr(c),c}function dd(e,t,n){const{immediate:o=!0,delay:r=0,onError:s=xt,onSuccess:i=xt,resetOnExecute:l=!0,shallow:a=!0,throwError:c}=n??{},u=a?Xr(t):ee(t),d=ee(!1),p=ee(!1),g=ee(void 0);async function O(m=0,...P){l&&(u.value=t),g.value=void 0,d.value=!1,p.value=!0,m>0&&await Jf(m);const C=typeof e=="function"?e(...P):e;try{const b=await C;u.value=b,d.value=!0,i(b)}catch(b){if(g.value=b,s(b),c)throw g}finally{p.value=!1}return u.value}return o&&O(r),{state:u,isReady:d,isLoading:p,error:g,execute:O}}function Si(e,t=!1){const n=ee(),o=()=>n.value=!!e();return o(),Gf(o,t),n}const ur=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fr="__vueuse_ssr_handlers__";ur[fr]=ur[fr]||{};const pd=ur[fr];function hd(e,t){return pd[e]||t}function gd(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var md=Object.defineProperty,Mi=Object.getOwnPropertySymbols,vd=Object.prototype.hasOwnProperty,bd=Object.prototype.propertyIsEnumerable,ji=(e,t,n)=>t in e?md(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Li=(e,t)=>{for(var n in t||(t={}))vd.call(t,n)&&ji(e,n,t[n]);if(Mi)for(var n of Mi(t))bd.call(t,n)&&ji(e,n,t[n]);return e};const _d={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function Ai(e,t,n,o={}){var r;const{flush:s="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:d=Ot,eventFilter:p,onError:g=y=>{console.error(y)}}=o,O=(u?Xr:ee)(t);if(!n)try{n=hd("getDefaultStorage",()=>{var y;return(y=Ot)==null?void 0:y.localStorage})()}catch(y){g(y)}if(!n)return O;const m=to(t),P=gd(m),C=(r=o.serializer)!=null?r:_d[P],{pause:b,resume:E}=ud(O,()=>$(O.value),{flush:s,deep:i,eventFilter:p});return d&&l&&yn(d,"storage",V),V(),O;function $(y){try{if(y==null)n.removeItem(e);else{const k=C.write(y),z=n.getItem(e);z!==k&&(n.setItem(e,k),d&&(d==null||d.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:z,newValue:k,storageArea:n}))))}}catch(k){g(k)}}function B(y){const k=y?y.newValue:n.getItem(e);if(k==null)return a&&m!==null&&n.setItem(e,C.write(m)),m;if(!y&&c){const z=C.read(k);return qf(c)?c(z,m):P==="object"&&!Array.isArray(z)?Li(Li({},m),z):z}else return typeof k!="string"?k:C.read(k)}function V(y){if(!(y&&y.storageArea!==n)){if(y&&y.key==null){O.value=m;return}if(!(y&&y.key!==e)){b();try{O.value=B(y)}catch(k){g(k)}finally{y?at(E):E()}}}}}function yd({document:e=fd}={}){if(!e)return ee("visible");const t=ee(e.visibilityState);return yn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Bi=Object.getOwnPropertySymbols,wd=Object.prototype.hasOwnProperty,xd=Object.prototype.propertyIsEnumerable,Od=(e,t)=>{var n={};for(var o in e)wd.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Bi)for(var o of Bi(e))t.indexOf(o)<0&&xd.call(e,o)&&(n[o]=e[o]);return n};function zi(e,t,n={}){const o=n,{window:r=Ot}=o,s=Od(o,["window"]);let i;const l=Si(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},c=ge(()=>Nt(e),d=>{a(),l.value&&r&&d&&(i=new ResizeObserver(t),i.observe(d,s))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return cr(u),{isSupported:l,stop:u}}function Pd(e,t={width:0,height:0},n={}){const{window:o=Ot,box:r="content-box"}=n,s=fe(()=>{var a,c;return(c=(a=Nt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),i=ee(t.width),l=ee(t.height);return zi(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&s.value){const u=Nt(e);if(u){const d=o.getComputedStyle(u);i.value=parseFloat(d.width),l.value=parseFloat(d.height)}}else if(c){const u=Array.isArray(c)?c:[c];i.value=u.reduce((d,{inlineSize:p})=>d+p,0),l.value=u.reduce((d,{blockSize:p})=>d+p,0)}else i.value=a.contentRect.width,l.value=a.contentRect.height},n),ge(()=>Nt(e),a=>{i.value=a?t.width:0,l.value=a?t.height:0}),{width:i,height:l}}function Ni(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:i=Ot}=n,l=Si(()=>i&&"IntersectionObserver"in i);let a=xt;const c=l.value?ge(()=>({el:Nt(e),root:Nt(o)}),({el:d,root:p})=>{if(a(),!d)return;const g=new IntersectionObserver(t,{root:p,rootMargin:r,threshold:s});g.observe(d),a=()=>{g.disconnect(),a=xt}},{immediate:!0,flush:"post"}):xt,u=()=>{a(),c()};return cr(u),{isSupported:l,stop:u}}function kd(e,t,n={}){const{window:o=Ot}=n;return Ai(e,t,o==null?void 0:o.localStorage,n)}var Di;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Di||(Di={}));function Fi(e,t,n={}){const{window:o=Ot}=n;return Ai(e,t,o==null?void 0:o.sessionStorage,n)}var Td=Object.defineProperty,Ri=Object.getOwnPropertySymbols,Cd=Object.prototype.hasOwnProperty,Ed=Object.prototype.propertyIsEnumerable,Vi=(e,t,n)=>t in e?Td(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$d=(e,t)=>{for(var n in t||(t={}))Cd.call(t,n)&&Vi(e,n,t[n]);if(Ri)for(var n of Ri(t))Ed.call(t,n)&&Vi(e,n,t[n]);return e};$d({linear:Qf},{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]});var Je=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(Je||{});const Ui=Pe({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=Fi("tk:dir",!0),o=tn(()=>n.value=!1,1250);return ge(()=>t.direction,()=>{n.value=!0,o()}),tt(o),(r,s)=>{const i=Oi;return N(),Ee(Gt,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[G(n)?(N(),q("div",{key:0,class:ve(["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":r.direction===G(Je).vertical,"rotate-180":r.direction===G(Je).rtl}])},[Y(i)],2)):He("",!0)]),_:1})}}}),Id=Object.freeze(Object.defineProperty({__proto__:null,default:Ui},Symbol.toStringTag,{value:"Module"})),Wi=5,Hi=.25,Ki=Pe({__name:"ZoomWrapper",props:{modelValue:{},playing:{type:Boolean},rtl:{type:Boolean},horizontal:{type:Boolean},spaceTop:{},spaceBottom:{},touchDevice:{type:Boolean},busy:{type:Boolean}},emits:["update:modelValue","drag-changed","click"],setup(e,{emit:t}){const n=e,o=ee(null),r=ee(Math.min(Wi,Math.max(Hi,n.modelValue))),s=ee(!1),i=ee(!1),l=ee(!1),a=ee(!1);ge(()=>n.modelValue,w=>L(w)),tt(()=>{n.touchDevice?yn(window,"touchstart",b):(yn(o,"mousedown",g),ge(()=>n.horizontal,w=>{w?window.addEventListener("wheel",V,{passive:!1}):window.removeEventListener("wheel",V)},{immediate:!0}))}),It(()=>{window.removeEventListener("wheel",V)}),rr(w=>{var I;if(n.busy)return;(I=o.value)==null||I.focus();const R=w.key==="Meta",te=w.key==="Control";if(R||te){s.value=!0,n.playing||window.addEventListener("wheel",u,{passive:!1});const D=()=>{s.value=!1,window.removeEventListener("wheel",u),window.removeEventListener("keyup",D),window.removeEventListener("blur",D)};window.addEventListener("keyup",D),window.addEventListener("blur",D)}else(w.ctrlKey||w.metaKey)&&w.key==="0"&&L(1)});function c(w){l.value!==w&&(l.value=w,t("drag-changed",w))}function u(w){w.stopPropagation(),w.preventDefault();const R=Math.ceil((r.value+w.deltaY*-.01)*100)/100;L(R,{x:w.clientX,y:w.clientY})}let d={x:0,y:0},p={x:0,y:0};function g(w){w.button===0&&(d={x:w.clientX,y:w.clientY},p={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",O),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",O),setTimeout(()=>c(!1))},{once:!0}),w.preventDefault(),w.stopPropagation())}function O(w){c(!0);const R=w.clientX-d.x,te=w.clientY-d.y,I=o.value;I.scrollLeft=p.x-R,I.scrollTop=p.y-te}let m=0,P=1,C;function b(w){if(n.busy)return;const R=w.touches.length===1&&n.playing;if(a.value=!R&&w.touches.length===2&&!n.playing,a.value){w.stopPropagation(),w.preventDefault(),m=y(w),P=r.value;const te=o.value;C={x:(w.touches[0].clientX+w.touches[1].clientX)/2,y:(w.touches[0].clientY+w.touches[1].clientY)/2,scrollLeft:te.scrollLeft,scrollTop:te.scrollTop,scrollWidth:te.scrollWidth,scrollHeight:te.scrollHeight}}(a.value||R)&&(window.addEventListener("touchmove",$),window.addEventListener("touchend",E,{once:!0}))}function E(){if(window.removeEventListener("touchmove",$),a.value=!1,!l.value)return;const w=tn(()=>{c(!1),o.value.removeEventListener("scroll",te)},100),R=setTimeout(w,100);o.value.addEventListener("scroll",te);function te(){clearTimeout(R),w()}}function $(w){if(n.playing){if(l.value)return;c(!0);return}if(a.value){w.stopPropagation(),w.preventDefault();const te=y(w)/m;L(Math.ceil(te*P*100)/100,C)}}const B=tn(()=>i.value=!1,100);function V(w){n.busy||(i.value||(i.value=!0),B(),w.deltaY&&(!s.value&&o.value&&(o.value.scrollLeft+=w.deltaY*(n.rtl?-1:1)),w.preventDefault()))}function y(w){return Math.hypot(w.touches[0].clientX-w.touches[1].clientX,w.touches[0].clientY-w.touches[1].clientY)}let k=0,z;function K(w){if(w.stopPropagation(),!l.value){if(n.playing){t("click",w);return}k++,z&&clearTimeout(z),k===2&&le(w),z=setTimeout(()=>{k===1&&t("click",w),z=void 0,k=0},300)}}function le(w){const R=r.value===1?2:1;L(R,{x:w.clientX,y:w.clientY})}async function L(w,R){const te=o.value,I=Math.min(Wi,Math.max(Hi,w));if(!te||r.value===I)return;const D=(R==null?void 0:R.scrollLeft)??te.scrollLeft,Z=(R==null?void 0:R.scrollTop)??te.scrollTop,ke=(R==null?void 0:R.scrollHeight)??te.scrollHeight,Qe=(R==null?void 0:R.scrollWidth)??te.scrollWidth,Ne=R&&n.rtl?te.clientWidth-R.x:(R==null?void 0:R.x)??te.clientWidth/2,$e=(R==null?void 0:R.y)??te.clientHeight/2;r.value=I,t("update:modelValue",I),await at();const _e=te.scrollWidth/Qe,Pt=te.scrollHeight/ke;te.scrollLeft=D*_e+Ne*(_e-1)*(n.rtl?-1:1),te.scrollTop=Z*Pt+$e*(Pt-1)}return(w,R)=>(N(),q("div",{ref_key:"root",ref:o,tabindex:"0",class:ve(["w-full h-full overflow-auto scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":l.value||i.value,"cursor-grabbing":l.value,"overflow-hidden":a.value}]),style:Ye({"font-size":`${r.value}px`,paddingBottom:w.spaceTop?`${w.spaceTop}px`:void 0}),onClick:K},[Ce(w.$slots,"default")],6))}}),Sd=Object.freeze(Object.defineProperty({__proto__:null,default:Ki},Symbol.toStringTag,{value:"Module"})),Md=`.loading-indicator{position:relative;display:inline-block;height:5rem;width:5rem}.loading-indicator:before,.loading-indicator:after{position:absolute;display:block;border-radius:9999px;opacity:1;content:"";border:4px solid #b85c38;animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite}.loading-indicator:after{animation-delay:-.5s}@keyframes lds-ripple{0%{top:36px;left:36px;width:0;height:0;opacity:0}4.9%{top:36px;left:36px;width:0;height:0;opacity:0}5%{top:36px;left:36px;width:0;height:0;opacity:1}to{top:0px;left:0px;width:72px;height:72px;opacity:0}}
5
- `,jd={},Ld={class:"flex justify-center items-center w-full h-full"},Ad=[X("div",{class:"loading-indicator"},null,-1)];function Bd(e,t){return N(),q("div",Ld,Ad)}const dr=be(jd,[["render",Bd],["styles",[Md]]]),zd=Object.freeze(Object.defineProperty({__proto__:null,default:dr},Symbol.toStringTag,{value:"Module"}));var Dt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Dt||{});const Nd=["data-index"],Dd={key:0,class:"h-[75vh] w-[50vw] m-auto"},Fd=["src"],Rd=["src"],Vd=["data-index"],qi=be(Pe({__name:"ReaderBody",props:{pages:{},totalImgs:{},zoom:{},settings:{},spaceTop:{},spaceBottom:{},touchDevice:{type:Boolean},playController:{},busy:{type:Boolean}},emits:["update:zoom","update:playing","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=ee(null),r=fe(()=>{var m;return(m=o.value)==null?void 0:m.$el}),s=ee(null),i=Pd(r),l=fe(()=>n.settings.style===Dt.longStrip),a=fe(()=>n.settings.direction===Je.rtl),c=fe(()=>n.settings.direction===Je.vertical),u=fe(()=>{const{width:{value:m},height:{value:P}}=i;return n.pages.map(C=>{const b={indexes:C.map(V=>V.index)},E=C.map(({el:V})=>V).filter(Boolean);if(!E.length)return b;b.srcs=E.map(V=>V.src);const $=E.reduce((V,y)=>V+y.naturalWidth,0),B=E.reduce((V,y)=>V+y.naturalHeight,0)/E.length;return l.value&&c.value||!l.value&&m/$<P/B?(b.width=Math.min(m,$),b.height=B*b.width/$):b.height=Math.min(P,B),b})}),d=fe(()=>u.value.map(m=>(m==null?void 0:m.width)??(m==null?void 0:m.height)).filter(Boolean).sort((m,P)=>P-m)[0]);let p=!1;function g(m){p!==m&&(p=m,n.playController.isPlaying.value&&(p?n.playController.pause():n.playController.resume()))}function O(m){if(!l.value){const P=c.value?i.height.value:i.width.value,b=(c.value?m.clientY:a.value?P-m.clientX:m.clientX)/P;if(b<=.2){t("prev");return}else if(b>=.8){t("next");return}}t("click")}return(m,P)=>{const C=dr,b=Ki;return N(),Ee(b,{"model-value":m.zoom,ref_key:"root",ref:o,class:ve(["reader-body",{"reader-body--long-strip":l.value,"reader-body--pages":!l.value,"reader-body--vertical":c.value,"reader-body--rtl":a.value}]),playing:n.playController.isPlaying.value,horizontal:!c.value,rtl:a.value,"space-top":c.value?m.spaceTop:0,"space-bottom":c.value?m.spaceBottom:0,"touch-device":m.touchDevice,busy:m.busy,style:Ye({...c.value?{"--translate-y":(m.spaceTop||0)+"px"}:{},...l.value?{"--max-size-em":d.value+"em"}:{"--screen-width-em":G(i).width.value+"em","--screen-height-em":G(i).height.value+"em"}}),onDragChanged:g,"onUpdate:modelValue":P[0]||(P[0]=E=>t("update:zoom",E)),onClick:O},{default:ie(()=>[(N(!0),q(ye,null,Kn(u.value,E=>(N(),q("div",Xo({key:n.settings.direction+"_"+E.indexes[0],"data-index":E.indexes[0]},E.indexes.length>1?{"data-second-index":E.indexes[1]}:{}),[E.srcs?E.srcs.length==1?(N(),q("img",{key:1,src:E.srcs[0],style:Ye({width:E.width!==void 0?E.width+"em":"",height:E.height!==void 0?E.height+"em":""})},null,12,Fd)):(N(),q("div",{key:2,class:ve(["flex justify-center items-center",{"flex-row-reverse":a.value}]),style:Ye({width:E.width!==void 0?E.width+"em":"",height:E.height!==void 0?E.height+"em":""})},[(N(!0),q(ye,null,Kn(E.srcs,$=>(N(),q("div",{key:$,class:"h-full flex select-none"},[X("img",{src:$,class:"flex-shrink-0 max-w-full max-h-full object-contain"},null,8,Rd)]))),128))],6)):(N(),q("div",Dd,[Y(C)]))],16,Nd))),128)),X("div",{ref_key:"autoNextEl",ref:s,"data-index":m.totalImgs,style:Ye(l.value?c.value?{height:G(i).height.value+"em"}:{width:G(i).width.value+"em"}:{})},[Ce(m.$slots,"end")],12,Vd)]),_:3},8,["model-value","playing","horizontal","rtl","space-top","space-bottom","touch-device","busy","class","style"])}}}),[["styles",[`.reader-body--rtl{flex-direction:row-reverse}.reader-body:not(.reader-body--vertical){display:flex;height:100%;align-items:center;justify-content:flex-start}.reader-body--long-strip.reader-body--vertical>div{width:var(--max-size-em)}.reader-body--long-strip:not(.reader-body--vertical)>div{display:flex;flex-direction:column;justify-content:center;height:var(--max-size-em)}.reader-body--long-strip>div>img{margin:auto;flex-shrink:0}.reader-body--pages:before,.reader-body--pages:after{content:"";position:fixed;z-index:10;display:block;cursor:pointer}.reader-body--pages>div{display:flex;scroll-snap-align:center;align-items:center;justify-content:center;min-width:var(--screen-width-em);min-height:var(--screen-height-em);width:var(--screen-width-em);height:var(--screen-height-em)}.reader-body--pages.reader-body--vertical{scroll-snap-type:y var(--tw-scroll-snap-strictness);--tw-scroll-snap-strictness: mandatory}.reader-body--pages.reader-body--vertical:before,.reader-body--pages.reader-body--vertical:after{height:20vw;left:0px;right:0px}.reader-body--pages.reader-body--vertical:before{top:0px}.reader-body--pages.reader-body--vertical:after{bottom:0px}.reader-body--pages:not(.reader-body--vertical){scroll-snap-type:x var(--tw-scroll-snap-strictness);--tw-scroll-snap-strictness: mandatory}.reader-body--pages:not(.reader-body--vertical):before,.reader-body--pages:not(.reader-body--vertical):after{width:20vw;top:0px;bottom:0px}.reader-body--pages:not(.reader-body--vertical):before{left:0px}.reader-body--pages:not(.reader-body--vertical):after{right:0px}.reader-body--pages>div>img{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.reader-body>div{margin:auto;flex-shrink:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform:translateY(var(--translate-y))}.reader-body img{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important;--tw-bg-opacity: 1 !important;background-color:rgb(41 37 36 / var(--tw-bg-opacity))!important}
6
- `]]]),Ud=Object.freeze(Object.defineProperty({__proto__:null,default:qi},Symbol.toStringTag,{value:"Module"})),Wd={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},Hd={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"},Yi=be(Pe({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=e,o=ee(null),r=ee(null),s=ee(!1),i=ee(!1),l=ee(3);return tt(()=>{if(!n.hasNext)return;let a;Ni(r,c=>{i.value=c.some(u=>u.isIntersecting),l.value=5,a&&(clearInterval(a),a=void 0),i.value&&(a=setInterval(()=>{l.value-=1,l.value<=0&&(clearInterval(a),a=void 0,t("next"))},1e3))}),Ni(o,c=>{s.value=c.some(u=>u.isIntersecting)}),It(()=>a&&clearInterval(a))}),(a,c)=>(N(),q("div",{ref_key:"root",ref:o,class:"h-full w-full flex justify-center items-center"},[vt(X("div",Wd,[a.hasNext?(N(),q("div",Hd,[i.value?(N(),q("div",Kd)):He("",!0),vt((N(),q("button",{ref_key:"nextButton",ref:r,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:c[0]||(c[0]=zt(()=>t("next"),["stop"]))},[Zt(" Next in "+dt(l.value),1)])),[[G(en)]])])):He("",!0),vt((N(),q("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:c[1]||(c[1]=zt(()=>t("hide"),["stop"]))},[Zt(" Hide ")])),[[G(en)]])],512),[[cu,s.value||!a.hasNext]])],512))}}),[["styles",[`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0%}to{width:100%}}
7
- `]]]),qd=Object.freeze(Object.defineProperty({__proto__:null,default:Yi},Symbol.toStringTag,{value:"Module"}));var ut=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(ut||{}),Zi=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Zi||{});const pr=40;function Yd({page:e,settings:t,spaceTop:n,scrollEl:o,interferePlayer:r,onChangedPage:s}){let i=!1,l=!1,a;const c=tn(m,150),u=Zd(P,300),d=fe(()=>t.value.style===Zi.longStrip),p=fe(()=>t.value.direction===ut.rtl),g=fe(()=>t.value.direction===ut.vertical);tt(()=>{let y=null;Fa(async()=>{o.value&&o.value!==y&&(y=o.value,c(e.value),o.value.addEventListener("scroll",u))});let k=window.innerWidth;zi(o,()=>{const z=window.innerWidth;k!=z&&(k=z,O())}),ge(()=>[t.value.style,t.value.direction],O)});async function O(){i=!0,l=!1,await at(),m(e.value)}function m(y){if(!o.value)return;i=!0;const k=async()=>{await at(),i=!1,l=!0},z=C(Math.floor(y));if(!z){k();return}if(d.value){const K=d.value?y%1*(g.value?z.offsetHeight:z.offsetWidth)||1:0,le=b(z)+K;r(()=>{E(le),k()})}else{const K=l;r(()=>{z.scrollIntoView(K?{behavior:"smooth",block:"start",inline:"start"}:void 0),k()})}}async function P(){if(!o.value||i||!l)return;const y=B();if(!y)return;const k=+y.getAttribute("data-index")||0,z=y.getBoundingClientRect(),K=d.value?Math.floor((k+V(z))*100)/100:k;K!==e.value&&s(K)}function C(y){var k;return(k=o.value)==null?void 0:k.querySelector(`[data-index="${y}"],[data-second-index="${y}"]`)}function b(y){return g.value?y.offsetTop:p.value?o.value.clientWidth-y.offsetLeft-y.offsetWidth:y.offsetLeft}function E(y){if($()!==y)return g.value?o.value.scrollTop=y:p.value?o.value.scrollLeft=-y:o.value.scrollLeft=y,y}function $(){return g.value?o.value.scrollTop:p.value?-o.value.scrollLeft:o.value.scrollLeft}function B(){a??(a=o.value.getRootNode());const y=g.value||!d.value;return a.elementsFromPoint(y?window.innerWidth/2:p.value?window.innerWidth-pr:pr,y?n.value||pr:window.innerHeight/2).find(z=>z.hasAttribute("data-index"))}function V(y){return g.value?Math.abs(y.top-(n.value||0))/y.height:p.value?Math.max(0,y.right-o.value.clientWidth)/y.width:Math.abs(y.left)/y.width}return{goToPage:m}}function Zd(e,t){let n;return()=>{n||(n=setTimeout(()=>{n=void 0,e()},t))}}function Xd(e){var l,a,c;let t=-1;const{vol:n,chap:o,title:{chapters:r}}=e;r!=null&&r.length&&(t=r.findIndex(u=>u.slug===e.slug),t===-1&&(t=r.findIndex(u=>u.vol===n&&u.chap===o)),t===-1&&(t=r.findIndex(u=>e.slug.startsWith(`${u.slug}-`)&&e.slug.length-u.slug.length>3)));const s=e.prevSlug??((l=r==null?void 0:r[t+1])==null?void 0:l.slug),i=e.nextSlug??((a=r==null?void 0:r[t-1])==null?void 0:a.slug);return{activeIndex:t,activeLabel:Xi({vol:n,chap:o}),chaptersText:((c=e.title.chapters)==null?void 0:c.map(Xi))??[],prevPath:hr(e.basePath,s),nextPath:hr(e.basePath,i)}}function hr(e,t){return!t||t.includes("://")||t.startsWith("/")?t:(e||"/")+t}function Xi({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const gr=3;function Jd(e,t){const n=an(Array.from({length:e.value.length})),o=[];let r=0;ge([t,e],async([l,a],[c])=>{const u=Math.floor(l),d=Math.floor(c||-1),p=a.length-n.length;if(p>0){const g=Array.from({length:p});n.push(...g)}u!==d&&(r=Math.max(0,r-Math.abs(u-d)));for(let g=u;g<a.length;g++){if(r>gr)return;s(g)}for(let g=u-1;g>=0;g--){if(r>gr)return;s(g)}},{immediate:!0});async function s(l){l===void 0||!e.value[l]||r>gr||(o[l]||(o[l]=!0,r++,n[l]=await Qd(e.value[l]),r=Math.max(0,r-1)),s(i()))}function i(){for(let l=Math.floor(t.value);l<e.value.length;l++)if(!o[l])return l;for(let l=Math.floor(t.value)-1;l>=0;l--)if(!o[l])return l}return n}function Qd(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{n.naturalHeight&&n.naturalWidth&&(t(n),clearInterval(o))},20);n.onerror=()=>{t(n),clearInterval(o)},n.src=e})}function Gd(e,t){return fe(()=>t.value?Ji(e):e.map((n,o)=>[{el:n,index:o}]))}function Ji(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(s=>s&&s.naturalWidth>s.naturalHeight)?[n[0]]:n;return[r.map((s,i)=>({el:s,index:t+i})),...Ji(e.slice(r.length),t+r.length)]}function ep(e,t,n){const o=Math.max(e.length<4?0:e.length<6?1:2,t),r=Math.min(o+4,e.length<6?e.length-1:e.length),s=Math.max(0,r-4),i=e.slice(s,r),l=new Promise(a=>{if(n!==void 0){a(n);return}let c=!1;Promise.all(i.map(async u=>{const d=await tp(u);!c&&d&&(c=!0,a(!0))})).then(()=>{c||a(!1)})});return dd(l,n??!1)}function tp(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{n.naturalHeight&&n.naturalWidth&&(t(n.naturalHeight/n.naturalWidth>2.5),clearInterval(o))},20);n.onerror=()=>{t(!1),clearInterval(o)},n.src=e})}const Qi=5e3;function np(e){const t=Fi("tk:isPlaying",!1),n=ee(!1);let o,r;const s=tn(m,100),i=tn(()=>{n.value=!0},e.value.touchDevice?2e3:1e3),l=()=>setTimeout(()=>{n.value=!1,i()},30);e.value.touchDevice||(l(),yn(window,"mousemove",l));const a=yd();tt(()=>{ge(a,b=>{t.value&&(b==="visible"?m():r==null||r())})});async function c(b){t.value&&(r==null||r()),b&&(await at(),await b()),t.value&&s()}function u(){t.value?d():p()}function d(){t.value&&(t.value=!1,r==null||r(),l())}function p(){t.value||(t.value=!0,m(),l())}function g(){r==null||r()}function O(b){const E=e.value.direction===ut.vertical;switch(b.key){case" ":b.preventDefault(),u();break;case"PageUp":case"PageDown":case(E?"ArrowUp":"ArrowLeft"):case(E?"ArrowDown":"ArrowRight"):c(()=>new Promise($=>setTimeout($,100)));break}}function m(){if(!t.value)return;const b=e.value,E=b.scrollEl,$=b.direction===ut.vertical,B=$?E.scrollHeight-E.clientHeight:E.scrollWidth-E.clientWidth,V=C(),y=Math.min(Qi,B-V),z=($?15:25)/b.speed*y;if(!z){d();return}const K=y===Qi?setTimeout(p,z):void 0;r=()=>{o=Date.now(),K&&clearTimeout(K),r=void 0},P(V,y,z)}function P(b,E,$){const B=b+E,V=b;let y;const k=Date.now();o=k,window.requestAnimationFrame(async function z(K){if(k!=o)return;y=y||K;const le=K-y,L=e.value;let w=V<B?(B-V)*le/$+V:V-(V-B)*le/$;const R=L.direction===ut.vertical;!R&&L.direction===ut.rtl&&(w=-w),R?L.scrollEl.scrollTop=w:L.scrollEl.scrollLeft=w,le<$?window.requestAnimationFrame(z):R?L.scrollEl.scrollTop=B:L.scrollEl.scrollLeft=B})}function C(){const b=e.value;return b.direction===ut.vertical?b.scrollEl.scrollTop:b.direction===ut.rtl?-b.scrollEl.scrollLeft:b.scrollEl.scrollLeft}return{isPlaying:t,isIdle:n,toggle:u,play:p,pause:g,resume:m,stop:d,interfere:c,onKey:O,awake:l}}function op(e){const t=kd(`tkr:${e.titleSlug}`,e.defaultSettings??{style:Dt.longStrip,direction:Je.vertical,speed:1,autoPlay:!1},{writeDefaults:!1,mergeDefaults(n,o){const r={...o,...n};return Object.values(Je).includes(n.direction)||(n.direction=Je.vertical),Object.values(Dt).includes(n.style)||(n.style=Dt.longStrip),n.speed>0&&n.speed<2||(n.speed=1),r}});return fe({get(){return e.asyncIsWebtoon.state.value===!0?{...t.value,style:Dt.longStrip,direction:Je.vertical}:t.value},set(n){t.value=n}})}const rp=Pe({...{inheritAttrs:!1},__name:"TrackkunReader",props:{raw:{},page:{},defaultSettings:{},spaceTop:{},spaceBottom:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},userEntryId:{},autoPlay:{type:Boolean}},emits:["pageChanged","fullScreenChanged","dispose","openEntry","addEntry"],setup(e,{emit:t}){const n=e,o=Xu(),r=fe(()=>Array.isArray(n.raw.imgs)?n.raw.imgs.filter(I=>typeof I=="string"):[]),s=ee(typeof n.page=="number"?Math.max(0,Math.min(n.page,r.value.length-1)):0),i=ep(r.value,Math.ceil(s.value),n.raw.isWebtoon),l=op({titleSlug:n.raw.title.slug,asyncIsWebtoon:i,defaultSettings:n.defaultSettings}),a=fe(()=>l.value.direction===Je.rtl),c=fe(()=>l.value.style===Dt.double),u=Jd(r,s),d=Gd(u,c),p=ee(1),g=fe(()=>s.value>=r.value.length),O=Xd(n.raw),m=ee(null),P=np(fe(()=>{var I;return{autoPlay:n.autoPlay,speed:l.value.speed,scrollEl:(I=m.value)==null?void 0:I.$el,direction:l.value.direction,touchDevice:n.touchDevice}}));ge(P.isPlaying,I=>{I||L(!1)}),ge(P.isIdle,I=>{P.isPlaying.value&&L(I)}),ge(o,I=>{!I&&P.isIdle.value&&P.awake()}),Qu().addListener(I=>{if(P.onKey(I),!(l.value.direction===Je.vertical))return;const Z=I.key==="ArrowLeft",ke=I.key==="ArrowRight";Z?B():ke&&$()});const b=Yd({page:s,settings:l,spaceTop:fe(()=>n.spaceTop),scrollEl:fe(()=>{var I;return(I=m.value)==null?void 0:I.$el}),interferePlayer:I=>P.interfere(I),onChangedPage(I){if(I<0||I>=r.value.length+1)return;s.value=I,t("pageChanged",I),I>=r.value.length&&(L(!1),P.stop())}});function E(){if(P.isPlaying.value){!n.fullScreen||!n.touchDevice?P.stop():P.awake();return}L()}function $(){y(O.nextPath)}function B(){y(O.prevPath)}function V(I){var Z;const D=(Z=n.raw.title.chapters)==null?void 0:Z[I].slug;D&&y(hr(n.raw.basePath,D))}function y(I){I&&(location.href=I.includes("://")?I:location.origin+I)}function k(){var Z;const I=d.value,D=g.value?I[I.length-1][0].index:(Z=I[K()-1])==null?void 0:Z[0].index;D!==void 0?b.goToPage(D):B()}function z(){var D;const I=g.value?Math.floor(s.value)+1:((D=d.value[K()+1])==null?void 0:D[0].index)??r.value.length;b.goToPage(I)}function K(){const I=Math.floor(s.value),D=d.value.findIndex(Z=>Z.some(({index:ke})=>ke===I));return D===-1?d.value.length-1:D}function le(){t("dispose")}async function L(I){o.value||t("fullScreenChanged",typeof I=="boolean"?I:!n.fullScreen)}function w(){n.userEntryId?te():R()}function R(){P.stop(),t("addEntry")}function te(){P.stop(),t("openEntry",n.userEntryId)}return(I,D)=>{const Z=dr,ke=Yi,Qe=qi,Ne=Ui,$e=xi,_e=sr,Pt=lr,xn=ir,Ie=eo,rt=wi,co=_i,kt=or,On=di,Pn=fi,f=ui,h=ci,v=li;return N(),Ee(v,{"full-screen":!!I.fullScreen,idle:G(P).isIdle.value&&!G(o),"space-top":n.spaceTop,"space-bottom":n.spaceBottom,"touch-device":I.touchDevice,rtl:a.value},nc({"chapter-nav":ie(()=>[Y(_e,{modelValue:G(O).activeIndex,label:G(O).activeLabel,items:G(O).chaptersText,"onUpdate:modelValue":V},null,8,["modelValue","label","items"])]),play:ie(()=>[Y(Ie,{disabled:G(i).isLoading.value,onClick:D[2]||(D[2]=()=>G(P).toggle())},{default:ie(()=>[G(P).isPlaying.value?(N(),Ee(Pt,{key:0})):(N(),Ee(xn,{key:1}))]),_:1},8,["disabled"])]),"page-nav":ie(()=>[Y(rt,{"model-value":s.value,disabled:G(i).isLoading.value,pages:G(d),"total-imgs":r.value.length,"onUpdate:modelValue":G(b).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),settings:ie(()=>[Y(co,{modelValue:G(l),"onUpdate:modelValue":D[3]||(D[3]=_=>xe(l)?l.value=_:null),zoom:p.value,webtoon:G(i).state.value,disabled:G(i).isLoading.value,playing:G(P).isPlaying.value,"onUpdate:zoom":D[4]||(D[4]=_=>p.value=_)},null,8,["modelValue","zoom","webtoon","disabled","playing"])]),back:ie(()=>[Y(Ie,{href:I.raw.title.url,title:"Back to chapters"},{default:ie(()=>[Y(kt)]),_:1},8,["href"])]),exit:ie(()=>[Y(Ie,{title:"Hide reader",onClick:le},{default:ie(()=>[Y(On,{class:"text-stone-300"})]),_:1})]),entry:ie(()=>[Y(Ie,{onClick:w,title:I.userEntryId?"View entry":"Add to Trackkun"},{default:ie(()=>[I.userEntryId?(N(),Ee(Pn,{key:0})):(N(),Ee(f,{key:1}))]),_:1},8,["title"])]),progress:ie(()=>[X("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500",style:Ye({width:`${s.value/(r.value.length-1)*100}%`})},null,4)]),default:ie(()=>[G(i).isLoading.value?(N(),Ee(Z,{key:0})):(N(),q(ye,{key:1},[Y(Qe,{ref_key:"body",ref:m,zoom:p.value,"onUpdate:zoom":D[0]||(D[0]=_=>p.value=_),pages:G(d),"total-imgs":r.value.length,settings:G(l),"space-top":I.spaceTop,"space-bottom":n.spaceBottom,"touch-device":I.touchDevice,busy:G(o),"play-controller":G(P),onPrev:k,onNext:z,onClick:E,onWheelPassive:D[1]||(D[1]=()=>G(P).interfere())},{end:ie(()=>[Y(ke,{"has-next":!!G(O).nextPath,onNext:$,onHide:le},null,8,["has-next"])]),_:1},8,["zoom","pages","total-imgs","settings","space-top","space-bottom","touch-device","busy","play-controller"]),Y(Ne,{direction:G(l).direction},null,8,["direction"]),g.value?He("",!0):(N(),Ee($e,{key:0,playing:G(P).isPlaying.value},null,8,["playing"]))],64))]),_:2},[G(P).isPlaying.value?void 0:{name:"reset-zoom",fn:ie(()=>[Y(Gt,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[Y(h,{zoom:p.value,onClick:D[5]||(D[5]=zt(()=>p.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),key:"0"}]),1032,["full-screen","idle","space-top","space-bottom","touch-device","rtl"])}}}),Gi=be(rp,[["styles",[`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Helvetica,sans-serif;font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}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,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-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,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;white-space:nowrap;border-style:none;background-image:none;outline:2px solid transparent;outline-offset:2px}button[disabled]{cursor:default!important}svg{width:100%;height:100%}*,:before,:after{--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-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: rgb(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-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: rgb(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: }.\\!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{top:0px;right:0px;bottom:0px;left:0px}.inset-2{top:.5rem;right:.5rem;bottom:.5rem;left:.5rem}.left-0{left:0px}.top-0{top:0px}.bottom-0{bottom:0px}.left-3{left:.75rem}.bottom-full{bottom:100%}.top-full{top:100%}.left-1\\/2{left:50%}.right-0{right:0px}.top-1\\/2{top:50%}.top-1{top:.25rem}.bottom-5{bottom:1.25rem}.z-50{z-index:50}.z-10{z-index:10}.z-\\[9999999999\\]{z-index:9999999999}.-z-10{z-index:-10}.z-30{z-index:30}.z-20{z-index:20}.m-auto{margin:auto}.-mx-12{margin-left:-3rem;margin-right:-3rem}.-my-12{margin-top:-3rem;margin-bottom:-3rem}.-ml-20{margin-left:-5rem}.ml-1{margin-left:.25rem}.-mr-3{margin-right:-.75rem}.ml-auto{margin-left:auto}.mb-8{margin-bottom:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-0\\.5{height:.125rem}.h-0{height:0px}.h-full{height:100%}.h-12{height:3rem}.h-\\[22rem\\]{height:22rem}.h-16{height:4rem}.h-10{height:2.5rem}.h-4{height:1rem}.h-9{height:2.25rem}.h-24{height:6rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-20{height:5rem}.h-\\[75vh\\]{height:75vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[75vh\\]{max-height:75vh}.max-h-full{max-height:100%}.w-full{width:100%}.w-28{width:7rem}.w-40{width:10rem}.w-4{width:1rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-5{width:1.25rem}.w-20{width:5rem}.w-24{width:6rem}.w-\\[50vw\\]{width:50vw}.w-\\[4\\.5rem\\]{width:4.5rem}.max-w-full{max-width:100%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-top{transform-origin:top}.translate-y-full{--tw-translate-y: 100%;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\\.5{--tw-translate-y: -.375rem;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: -.25rem;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\\.5{--tw-translate-y: .375rem;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: .25rem;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-x-1\\/2{--tw-translate-x: -50%;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%;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-180{--tw-rotate: 180deg;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;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: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))}.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-pointer{cursor:pointer}.cursor-none{cursor:none}.cursor-auto{cursor:auto}.cursor-grabbing{cursor:grabbing}.touch-pan-x{--tw-pan-x: pan-x;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y: pan-y;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.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-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-6{gap:1.5rem}.gap-1{gap:.25rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-2xl{border-radius:1rem}.rounded-\\[2\\.5rem\\]{border-radius:2.5rem}.rounded-t-sm{border-top-left-radius:.125rem;border-top-right-radius:.125rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border-2{border-width:2px}.border-\\[3px\\]{border-width:3px}.border{border-width:1px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-600{--tw-border-opacity: 1;border-color:rgb(87 83 78 / var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity: 1;border-color:rgb(168 162 158 / var(--tw-border-opacity))}.border-stone-300{--tw-border-opacity: 1;border-color:rgb(214 211 209 / var(--tw-border-opacity))}.border-primary{--tw-border-opacity: 1;border-color:rgb(184 92 56 / var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity: .3}.bg-orange-500{--tw-bg-opacity: 1;background-color:rgb(249 115 22 / var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity: 1;background-color:rgb(87 83 78 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-stone-800{--tw-bg-opacity: 1;background-color:rgb(41 37 36 / var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-stone-500{--tw-bg-opacity: 1;background-color:rgb(120 113 108 / 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-opacity-50{--tw-bg-opacity: .5}.bg-opacity-75{--tw-bg-opacity: .75}.bg-opacity-80{--tw-bg-opacity: .8}.bg-opacity-40{--tw-bg-opacity: .4}.bg-opacity-90{--tw-bg-opacity: .9}.object-contain{-o-object-fit:contain;object-fit:contain}.p-6{padding:1.5rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-1{padding:.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.pt-3{padding-top:.75rem}.pb-16{padding-bottom:4rem}.pl-1{padding-left:.25rem}.pb-4{padding-bottom:1rem}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:1rem;line-height:1.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.leading-none{line-height:1}.text-stone-300{--tw-text-opacity: 1;color:rgb(214 211 209 / var(--tw-text-opacity))}.text-primary{--tw-text-opacity: 1;color:rgb(184 92 56 / var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity: 1;color:rgb(168 162 158 / var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity: 1;color:rgb(245 245 244 / 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-50{opacity:.5}.opacity-100{opacity:1}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur: blur(8px);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)}.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)}.delay-150{transition-delay:.15s}.duration-200{transition-duration:.2s}.duration-\\[250ms\\]{transition-duration:.25s}.duration-500{transition-duration:.5s}.duration-150{transition-duration:.15s}.ease-linear{transition-timing-function:linear}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-width:thin;scrollbar-color:#777 transparent}.scrollbar-sm::-webkit-scrollbar{height:.25rem;width:.25rem;background-color:transparent}.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-300:hover{--tw-bg-opacity: 1;background-color:rgb(214 211 209 / var(--tw-bg-opacity))}.hover\\:bg-stone-200:hover{--tw-bg-opacity: 1;background-color:rgb(231 229 228 / 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-stone-400:hover{--tw-bg-opacity: 1;background-color:rgb(168 162 158 / 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-opacity-10:hover{--tw-bg-opacity: .1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity: .5}.hover\\:text-stone-300:hover{--tw-text-opacity: 1;color:rgb(214 211 209 / var(--tw-text-opacity))}.hover\\:text-stone-100:hover{--tw-text-opacity: 1;color:rgb(245 245 244 / 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-200{--tw-bg-opacity: 1;background-color:rgb(231 229 228 / var(--tw-bg-opacity))}.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}.group:hover .group-hover\\:bg-opacity-10{--tw-bg-opacity: .1}}@media (min-width: 640px){.sm\\:inset-3{top:.75rem;right:.75rem;bottom:.75rem;left:.75rem}.sm\\:w-\\[32rem\\]{width:32rem}.sm\\:pb-0{padding-bottom:0}}@media (min-width: 768px){.md\\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width: 1024px){.lg\\:px-10{padding-left:2.5rem;padding-right:2.5rem}}@media (min-width: 1280px){.xl\\:px-12{padding-left:3rem;padding-right:3rem}}
8
- `]]]),sp=Object.freeze(Object.defineProperty({__proto__:null,default:Gi},Symbol.toStringTag,{value:"Module"})),ip={},lp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ap=[X("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function cp(e,t){return N(),q("svg",lp,ap)}const up=Object.freeze(Object.defineProperty({__proto__:null,default:be(ip,[["render",cp]])},Symbol.toStringTag,{value:"Module"})),fp={},dp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},pp=[X("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function hp(e,t){return N(),q("svg",dp,pp)}const gp=Object.freeze(Object.defineProperty({__proto__:null,default:be(fp,[["render",hp]])},Symbol.toStringTag,{value:"Module"})),mp={},vp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},bp=[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 _p(e,t){return N(),q("svg",vp,bp)}const yp=Object.freeze(Object.defineProperty({__proto__:null,default:be(mp,[["render",_p]])},Symbol.toStringTag,{value:"Module"})),wp="webp",el=["jpg","jpng","png","webp","svg","gif","avif","apng","bmp"];function tl(e){return`${xp(e)}.${wp}`}function xp(e){const t=e.split("?")[0].split("#")[0].split("/").filter(Boolean),n=Op(t.slice(-1)[0]);return n.length>=16?n:t.slice(0,-1).join("").slice(n.length-16)+n}function Op(e){const t=Pp(e),n=t.replace(/-\d{3}x\d{3}$/,"");if(n!==t||t===e)return n;const o=t.split(".").reverse();if(o.length<3)return t;const[r,s,...i]=o;return!s||!el.includes(s)||!r||isNaN(+r)?t:i.reverse().join(".")}function Pp(e){const t=e.lastIndexOf(".");if(t===-1)return e;const n=e.substring(t+1);return el.includes(n)?e.substring(0,t):e}const kp={text:Tp,attr:Cp,"attr-contain":Ep,value:$p,row:Ip};function de(e,t={}){if(!e)return;const{root:n=document.documentElement,returnAll:o,preProcess:r}=t,s=nl(e);if(s.length>1){for(let d=0;d<s.length;d+=1){const p=de(s[d],t);if(p!=null&&p.length)return p}return}const[i,l]=e.split("|");if(!l)return;const a=(l!=null&&l.startsWith("[")&&l.endsWith("]")?l.substring(1,l.length-1).split(","):[l]).map(d=>{const p=d.indexOf(":"),g=p!==-1;return{action:g?d.substring(0,p):d,param:g?d.substring(p+1):""}}),c=i?Array.from(n.querySelectorAll(i)):[n];if(!c.length)return o?[]:void 0;r&&r(c);const u=[];for(const d of c)for(const p of a){const g=kp[p.action],O=g(d,p.param);if(O){if(o){u.push(O);break}return O}}return o?u:void 0}function Tp(e){return Array.from(e.childNodes).filter(t=>t.nodeType===3).map(t=>nn(t.textContent)).filter(Boolean).join(" ").trim()||nn(e.textContent)}function Cp(e,t){return nn(e.getAttribute(t))}function Ep(e,t){let n=e.getAttribute(t);if(!n){const o=e.getAttributeNames().find(r=>r.includes(t));o&&(n=e.getAttribute(o))}return nn(n)}function nl(e){const t=[],n=e.split("||").map(o=>o.trim()).filter(Boolean);return n.forEach((o,r)=>{if(o.includes("|")){t.push(o);return}const s=n[r+1];s&&(n[r+1]=`${o},${s}`)}),t}function $p(e){return e.value}function Ip(e,t){var n,o;if(!t)return;const r=(n=nn(e.textContent))==null?void 0:n.toLowerCase(),s=t.toLowerCase();if(!(r!==s&&r!==`${s}:`))return nn((o=e.nextElementSibling)==null?void 0:o.textContent)}function nn(e){if(e)return(e==null?void 0:e.replace(/(\n|\t)/g," ").trim())||void 0}async function ol(e,t,n){const o=await n(()=>{e=0});if(o)return o;if(!(e<=0))return await new Promise(r=>{setTimeout(async()=>{const s=await ol(e-1,t,n);r(s)},t)})}async function wn(e,t,n=0){var o;const r=(o=t.root)!=null?o:document.documentElement;return ol(t.lazy===!0?200:0,100,()=>{var s;const i=t.all===!0?Array.from(r.querySelectorAll(e)):(s=r.querySelector(e))!=null?s:void 0;return(t.all?!(i!=null&&i.length):!i)?void 0:i})}const Sp=/(vol(ume|\.)?\s*(\d+))/i,Mp=/(ch(ap(t(er)?|\.)?|\.)?|^#)\s*(\d+([_-~,.]\d+)?)/i,jp=/\d+([_-~,.]\d+)?/,Lp=/[_-~,]/,Ap=/^[^a-zA-Z0-9]*|[^a-zA-Z0-9]*$/g;function mr(e,t){var n;if(!e||!e)return;if(!isNaN(+e))return{chap:+e};const o=e.match(Sp),r=o!=null&&o[0]?e.replace(o[0],"").trim():e,s=r.match(Mp),i=r.match(jp),l=(n=s==null?void 0:s[5])!=null?n:i==null?void 0:i[0];if(!l)return;const a=+l.replace(Lp,".");if(isNaN(a))return;const c=o==null?void 0:o[3],u=c&&!isNaN(+c)?+c:void 0,d=r.replace((s||i)[0],"").replace(Ap,""),p=t&&d.startsWith(t)?d.replace(t,""):d;return{vol:u,chap:a,label:p||void 0}}const rl=[{regex:/(sec(ond(s)?)? ago|giây trước)/,seconds:1},{regex:/(min(s|ute(s)?)? ago|phút trước)/,seconds:60},{regex:/(hour(s)? ago|giờ trước)/,seconds:3600},{regex:/(day(s)? ago|ngày trước)/,seconds:86400},{regex:/(week(s)? ago|tuần trước)/,seconds:604800},{regex:/(month(s)? ago|tháng trước)/,seconds:2592e3},{regex:/(year(s)? ago|năm trước)/,seconds:31536e3}];function Bp(e){if(!e||e.includes("now"))return Date.now();if(e.includes("yesterday"))return Date.now()-864e5;const t=new Date(e);if(t instanceof Date){const n=t.valueOf();if(!isNaN(n))return t.getHours()===0&&t.getMinutes()===0?Math.min(Date.now(),n+432e5):n}for(let n=0;n<rl.length;n++){const{regex:o,seconds:r}=rl[n];if(o.test(e)){const s=e.split(" ").slice(-3)[0],i=s=="an"||s==="a"?1:+s;if(isNaN(i)||i<0)return;const l=Date.now()-i*r*1e3;return l>0?l:void 0}}}function sl(e,t){if(!e)return"/";const n=e.replace("{titleSlug}",t),o=n.endsWith("/")?n:n+"/";return o.startsWith("/")?o:"/"+o}var zp=(e=>(e[e.reading=1]="reading",e[e.paused=2]="paused",e[e.plan=3]="plan",e[e.completed=4]="completed",e[e.dropped=5]="dropped",e[e.deleted=6]="deleted",e))(zp||{}),oo=(e=>(e[e.none=0]="none",e[e.removeLastSegment=1]="removeLastSegment",e[e.removeIdAfterLastDash=2]="removeIdAfterLastDash",e[e.removeIdBeforeFirstDash=3]="removeIdBeforeFirstDash",e))(oo||{}),il=(e=>(e[e.none=0]="none",e[e.removePage=1]="removePage",e))(il||{}),Np=(e=>(e[e.string=1]="string",e[e.number=2]="number",e[e.bool=3]="bool",e[e.selection=4]="selection",e))(Np||{}),Dp=(e=>(e[e.SiteUpdate=1]="SiteUpdate",e[e.SiteTitleImg=2]="SiteTitleImg",e))(Dp||{});function vr({basePath:e,fullPath:t,siteMeta:n}){if(!t)return;const o=t.replace(e,"");switch(n.readerSlugTransformer){case il.removePage:return o.replace(/-page-\d{1,3}\.html$/,".html");default:return o}}function Fp(e,{removeTrailingSlash:t=!0}={}){if(!e)return;const n=t&&e.endsWith("/")?e.slice(0,-1):e;try{return new URL(n)}catch{return}}function Ft(e){var t;if(!(!e||typeof e!="string"))return e.startsWith("http://")||e.startsWith("https://")?(t=Fp(e))==null?void 0:t.pathname:e}var Rp=Object.defineProperty,Vp=Object.defineProperties,Up=Object.getOwnPropertyDescriptors,ll=Object.getOwnPropertySymbols,Wp=Object.prototype.hasOwnProperty,Hp=Object.prototype.propertyIsEnumerable,al=(e,t,n)=>t in e?Rp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kp=(e,t)=>{for(var n in t||(t={}))Wp.call(t,n)&&al(e,n,t[n]);if(ll)for(var n of ll(t))Hp.call(t,n)&&al(e,n,t[n]);return e},qp=(e,t)=>Vp(e,Up(t));async function ro(e,{root:t=document.documentElement,titleSlug:n="",titleName:o,lazy:r=!0,siteMeta:s}){var i;if(!e)return;const l=[],a=await wn(e.sel,{root:t,all:!0,lazy:r});if(!(a!=null&&a.length))return l;const c=(a??[]).map(m=>({label:de(e.label,{root:m}),url:de(e.url,{root:m}),at:de(e.at,{root:m})})),u=c.map(({label:m})=>mr(m,o)),d=(i=u[1])==null?void 0:i.chap;!u[0]&&(d===void 0||d<=1)&&(u[0]={label:c[0].label,chap:0});const p=sl(s.readerBase,n),g=s.readerBase.split("/").indexOf("{lang}"),O=g!==-1;return u.forEach((m,P)=>{var C;if(!m)return;const{url:b,at:E}=c[P],$=Ft(b),B=O?$==null?void 0:$.substring(1).split("/")[g]:void 0,V=vr({basePath:B?p.replace("{lang}",B):p,fullPath:$,siteMeta:s});V&&l.push(qp(Kp({},m),{slug:V,lang:B,ts:Bp(E)||((C=l[l.length+1])==null?void 0:C.ts)||Date.now()}))}),so(l)}function so(e){return e.sort((t,n)=>t.vol===void 0||n.vol===void 0?n.chap-t.chap:n.vol-t.vol||n.chap-t.chap),Yp(e)}function Yp(e){let t;for(let n=e.length-1;n>=0;n--){const o=e[n];o.vol!==void 0?t=o.vol:t!==void 0&&(o.inferVol=t)}return e}function io({url:e,siteMeta:t}){var n;if(typeof e!="string")return;const o=t.titleSlugTransformer,r=(n=Ft(e))==null?void 0:n.split("/").filter(Boolean);if(!r||!r.length)return e;const s=r[r.length-1];switch(o){case oo.removeLastSegment:return r.length>=2?r[r.length-2]:s;case oo.removeIdAfterLastDash:{const i=s.lastIndexOf("-"),l=+s.substring(i+1);return i===-1||isNaN(l)||l<1e4?s:s.substring(0,i)}case oo.removeIdBeforeFirstDash:{const i=s.indexOf("-"),l=+s.substring(0,i);return i===-1||isNaN(l)||l<1e3?s:s.substring(i+1)}default:return s}}function Zp(){return Math.random().toString(16).slice(2)}async function Xp({addListener:e,removeListener:t,transform:n,filter:o,handler:r,onTimeout:s,timeout:i,once:l}){return new Promise(a=>{e(d);const c=()=>l===!0&&t(d),u=i?setTimeout(()=>{c(),a(void 0),s==null||s()},i):void 0;async function d(p,...g){p=n?n(p):p,p!==void 0&&(!o||o(p,...g))&&(c(),a(p),r==null||r(p,...g),u&&clearTimeout(u))}})}var Jp=Object.defineProperty,cl=Object.getOwnPropertySymbols,Qp=Object.prototype.hasOwnProperty,Gp=Object.prototype.propertyIsEnumerable,ul=(e,t,n)=>t in e?Jp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eh=(e,t)=>{for(var n in t||(t={}))Qp.call(t,n)&&ul(e,n,t[n]);if(cl)for(var n of cl(t))Gp.call(t,n)&&ul(e,n,t[n]);return e};async function th(e){const t=await Xp(eh({addListener:n=>window.addEventListener("message",n),removeListener:n=>window.removeEventListener("message",n)},e));return t==null?void 0:t.data}async function nh(e){var t;const{receiverWindow:n,timeout:o,targetOrigin:r,event:s,args:i}=e,l={reqId:Zp(),event:s,args:i};(t=n||window)==null||t.postMessage(l,r??"*");const a=await th({filter:c=>{var u;return((u=c==null?void 0:c.data)==null?void 0:u.resId)===l.reqId},timeout:o??3e4,once:!0});return a==null?void 0:a.result}const on={isAny:!0};function ft(e,...t){return nh({event:"tk:fetchResult",args:{baseUrl:e,segments:t}})}const oh='meta[property="og:url"]|attr:content,meta[name="url"]|attr:content';function fl(e=document.documentElement){try{return window.location.origin+window.location.pathname}catch{}const t=de(oh,{root:e});if(!(!t||Ft(t)==="/"))return t}function dl(e,t){if(!(t!=null&&t.length))return;const n={};e.forEach(({id:r,name:s,altNames:i})=>{n[br(s)]=r,i&&i.forEach(l=>{n[br(l)]=r})});const o=t.map(r=>n[br(r)]).filter(Boolean);return o.length===0?void 0:Array.from(new Set(o)).sort((r,s)=>r-s)}function br(e){const t=e.toLowerCase().replaceAll(" ","");return t[t.length-1]==="s"?t.substring(0,t.length-1):t}var ze=(e=>(e.title="title",e.reader="reader",e.update="update",e.search="search",e))(ze||{}),rh=Object.defineProperty,sh=Object.defineProperties,ih=Object.getOwnPropertyDescriptors,pl=Object.getOwnPropertySymbols,lh=Object.prototype.hasOwnProperty,ah=Object.prototype.propertyIsEnumerable,hl=(e,t,n)=>t in e?rh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lo=(e,t)=>{for(var n in t||(t={}))lh.call(t,n)&&hl(e,n,t[n]);if(pl)for(var n of pl(t))ah.call(t,n)&&hl(e,n,t[n]);return e},gl=(e,t)=>sh(e,ih(t));async function ch({spec:e,siteMeta:t,tags:n,lazy:o}){var r,s,i;if(e.id=="mangadex")return await fh({tags:n});if(!(e!=null&&e.title))return;const{sel:l,name:a,img:c,chapter:u,langs:d,tags:p,type:g}=e.title;if(!l||!a||!u||!await wn(l,{lazy:o||((r=e.title.lazy)!=null?r:!1)}))return;const O=de(a);if(!O)return;const m=io({url:fl(),siteMeta:t});if(!m)return;let P=(s=de(p,{returnAll:!0}))!=null?s:[];P.length===1&&(P=P[0].split(",").map(E=>E.trim()).filter(Boolean));const C=de(g),b={type:ze.title,url:location.origin+location.pathname,slug:m,name:O,langs:(i=de(d,{returnAll:!0}))!=null?i:d&&!t.multiLang&&t.defaultLang?[t.defaultLang]:void 0,tags:dl(n,[...P??[],...C?[C]:[]]),imgUrl:de(c),chapters:[]};return e.id==="comick"?lo(lo({},b),await uh()):gl(lo({},b),{chapters:await ro(u,{siteMeta:t,lazy:!0,titleSlug:m,titleName:O})})}async function uh(){const e="https://api.comick.app/",[t]=await Promise.all([ft(e,"comic",on,"chapters")]);if(!t)return{};const n=t.value,o=n.chapters.map(r=>{const{vol:s,chap:i,hid:l,lang:a,updated_at:c}=r,u=typeof i=="string"&&!isNaN(+i)?+i:void 0;if(typeof u=="number")return{slug:l,vol:typeof s=="string"&&!isNaN(+s)?+s:void 0,chap:u,lang:a,ts:new Date(c).valueOf()}}).filter(Boolean);return{hasMoreChapters:n.chapters.length<n.total,chapters:o}}async function fh({tags:e}){var t,n,o;const r="https://api.mangadex.org/manga/",[s,i]=await Promise.all([ft(r,on),ft(r,on,"feed")]);if(!s||!i)return;const l=(o=(n=(t=i.value.data)==null?void 0:t.map)==null?void 0:n.call(t,u=>{const{attributes:d,id:p}=u;if(typeof d!="object"||typeof p!="string"||!p)return;const{externalUrl:g,title:O,volume:m,chapter:P,translatedLanguage:C}=d;return{slug:g||p,label:O||void 0,vol:typeof m=="string"?+m:void 0,chap:typeof P=="string"?+P:void 0,lang:C||"en",ts:new Date(d.readableAt).valueOf()}}).filter(u=>(u==null?void 0:u.chap)!=null))!=null?o:[],{data:a}=s.value;if(!a)return;const c=ml({data:a,entryTags:e});if(c)return gl(lo({},c),{chapters:l,hasMoreChapters:(i.value.total||0)>(i.value.limit||0)})}function ml({data:e,entryTags:t}){var n,o,r,s,i;const{id:l,attributes:a,relationships:c}=e;if(!l||typeof l!="string"||typeof a!="object")return;const{title:u,availableTranslatedLanguages:d,altTitles:p,tags:g,restrictedContent:O}=a;if(typeof u!="object"||!Array.isArray(d))return;const m=Object.values(u)[0];if(!m||typeof m!="string")return;const P=dh(),C=(o=(n=d==null?void 0:d.map)==null?void 0:n.call(d,k=>typeof k=="string"?k:void 0).filter(Boolean))!=null?o:[],b=C.filter(k=>k&&(!P||P.includes(k))),E=(r=p==null?void 0:p.map)==null?void 0:r.call(p,k=>{const[[z,K]=[]]=Object.entries(k);return{lang:z,name:K}}),$=(s=c==null?void 0:c.find)==null?void 0:s.call(c,k=>k.type==="cover_art"),B=(i=$==null?void 0:$.attributes)==null?void 0:i.fileName,V=B?`https://mangadex.org/covers/${l}/${B}`:void 0,y=(g||[]).map(k=>{var z,K;return(K=(z=k==null?void 0:k.attributes)==null?void 0:z.name)==null?void 0:K.en}).concat(O).filter(Boolean);return{type:ze.title,url:`${location.origin}/title/${l}`,slug:l,name:m,altNames:E,langs:b.length>0?b:C,imgUrl:V,tags:dl(t,y),isWebtoon:g==null?void 0:g.some(k=>k.attributes.name.en==="Long Strip")}}function dh(){var e;const t=localStorage.getItem("md");if(t)try{const n=JSON.parse(t),o=(e=n==null?void 0:n.userPreferences)==null?void 0:e.filteredLanguages;return o!=null&&o.length?o:void 0}catch{return}}var ph=Object.defineProperty,hh=Object.defineProperties,gh=Object.getOwnPropertyDescriptors,vl=Object.getOwnPropertySymbols,mh=Object.prototype.hasOwnProperty,vh=Object.prototype.propertyIsEnumerable,bl=(e,t,n)=>t in e?ph(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_l=(e,t)=>{for(var n in t||(t={}))mh.call(t,n)&&bl(e,n,t[n]);if(vl)for(var n of vl(t))vh.call(t,n)&&bl(e,n,t[n]);return e},bh=(e,t)=>hh(e,gh(t));async function _h({spec:e,siteMeta:t,tags:n,lazy:o}){var r,s,i;if(e.id=="mangadex")return await xh({entryTags:n});if(!(e!=null&&e.reader)||!await wh(e.reader,o))return;const l=await yh({spec:e,siteMeta:t});if(!l)return;const{name:a,slug:c,chapters:u}=l,d=(r=de(e.reader.label))==null?void 0:r.toLowerCase().replace(a.toLowerCase(),"");if(!d)return;const{vol:p,chap:g=0}=mr(d,a)||{};let O;const m=(s=de(e.reader.img,{returnAll:!0,preProcess(B){const V=B.map(y=>+(y.getAttribute("height")||0)/+(y.getAttribute("width")||1));V.some(y=>y>2.5)?O=!0:V.filter(Boolean).length>Math.max(1,V.length-2)&&(O=!1)}}))!=null?s:[];if(!m.length)return;const P=sl(t.readerBase,c),C=t.readerBase.split("/").indexOf("{lang}"),b=C!==-1?location.pathname.substring(1).split("/")[C]:void 0,E=b?P.replace("{lang}",b):P,$=b??de(e.reader.lang);return{type:ze.reader,url:location.origin+location.pathname,isWebtoon:O,vol:p,inferVol:(i=u==null?void 0:u.find(B=>B.vol===p&&B.chap===g))==null?void 0:i.inferVol,chap:g,lang:$,slug:vr({basePath:E,fullPath:location.pathname,siteMeta:t}),nextSlug:yl({sel:e.reader.next,basePath:E,siteMeta:t}),prevSlug:yl({sel:e.reader.prev,basePath:E,siteMeta:t}),basePath:E,imgs:m,imgsLocator:e.reader.img,title:{type:ze.title,url:l.url,slug:c,name:a,langs:$?[$]:void 0,chapters:u}}}async function yh({spec:e,siteMeta:t}){var n,o;const{sel:r,name:s,url:i}=e.reader.title||{};if(!r||!s||!i)return;const l=document.querySelector(r);if(!(l instanceof HTMLElement))return;const a=de(s,{root:l}),c=de(i,{root:l}),u=io({url:c,siteMeta:t});if(!(!a||!c||!u))return{type:ze.title,url:c,name:a,slug:u,chapters:e.id==="nettruyen"?await Oh():(o=await ro((n=e.reader)==null?void 0:n.chapter,{titleSlug:u,titleName:a,siteMeta:t}))!=null?o:[]}}function yl({sel:e,basePath:t,siteMeta:n}){const o=de(e);if(!(!o||o.startsWith("#")||o.startsWith("/#")))return vr({basePath:t,fullPath:Ft(o),siteMeta:n})}async function wh(e,t){const{sel:n,img:o}=e;if(!n||!o||!await wn(n,{lazy:t===!0}))return!1;const r=nl(o).map(s=>s.split("|")[0]).join(",");return!!await wn(r,{lazy:!0})}async function xh({entryTags:e}){var t,n,o,r,s,i,l,a,c,u,d,p,g,O,m,P;const C="https://api.mangadex.org/",[b,E,$]=await Promise.all([ft(C,"chapter",on),ft(C,"at-home","server",on),ft(C,"manga",on,"aggregate")]);if(!b||!E||!$)return;const B=b.value.data,{volume:V,chapter:y,externalUrl:k,translatedLanguage:z}=B.attributes||{},{baseUrl:K,chapter:{data:le,dataSaver:L,hash:w}}=E.value,R=(n=(t=B.relationships)==null?void 0:t.find)==null?void 0:n.call(t,_e=>_e.type==="manga");if(!R)return;const te=ml({data:R,entryTags:e});if(!te||typeof((o=$.value)==null?void 0:o.volumes)!="object")return;const I=Object.values($.value.volumes).map(({volume:_e,chapters:Pt})=>{const xn=_e==="none"||typeof _e!="string"?void 0:+_e;return Object.values(Pt).map(({id:Ie,chapter:rt})=>typeof rt!="string"||rt==="none"?void 0:{vol:xn,chap:+rt,slug:Ie})}).flat().filter(Boolean).reverse();if(typeof y!="string"||y==="none"){if(I.length)return;I.push({chap:0,slug:B.id})}so(I);const D=I.findIndex(_e=>_e.slug===B.id),Z=(s=(r=B.relationships)==null?void 0:r.find)==null?void 0:s.call(r,_e=>_e.type==="scanlation_group"),ke=K.endsWith("/")?K:K+"/",Qe=!!((l=(i=localStorage.getItem("md"))==null?void 0:i.includes)!=null&&l.call(i,'"dataSaver":true')),Ne=`${ke}${Qe?"data-saver":"data"}/`,$e=(d=(u=(c=(a=Qe?L:le)!=null?a:[]).map)==null?void 0:u.call(c,_e=>`${Ne}${w}/${_e}`))!=null?d:[];return{type:ze.reader,url:location.origin+location.pathname,externalUrl:k,vol:typeof V=="string"?+V:void 0,inferVol:(p=I[D])==null?void 0:p.inferVol,chap:+y||0,imgs:$e,lang:z,slug:B.id,prevSlug:(g=I[D+1])==null?void 0:g.slug,nextSlug:(O=I[D-1])==null?void 0:O.slug,basePath:"/chapter/",groupName:(m=Z==null?void 0:Z.attributes)==null?void 0:m.name,groupUrl:(P=Z==null?void 0:Z.attributes)==null?void 0:P.website,title:bh(_l({},te),{langs:z?[z]:te.langs,chapters:I})}}async function Oh(){var e;const t=de(".next.a_next + .follow-link|attr:data-id"),n=await fetch(`https://www.nettruyenio.com/Comic/Services/ComicService.asmx/ProcessChapterList?comicId=${t}`).then(o=>o.status===200?o.json():void 0);return(e=n==null?void 0:n.chapters)!=null&&e.length?so(n.chapters.map(o=>{const{name:r,url:s}=o,i=mr(r);if(!(!i||!s))return _l({slug:Ft(s).split("/").filter(Boolean).slice(2).join("/")},i)})):[]}function wl(e){if(e.length<=1)return;const t=e.slice(0,30).map(s=>s.split("/").filter(Boolean).slice(0,-1)),n=t[0],o=n.length;if(!o)return;const r=[];for(let s=0;s<o;s++){const i=n[s];if(!t.every(l=>l[s]===i))break;r.push(i)}if(r.length)return r.join("/")}async function Ph({spec:e,siteMeta:t}){var n;const o=(n=e.search)==null?void 0:n.title;if(!o)return;const{chapter:r}=o,s=[];if(await new Promise(l=>setTimeout(l,3e3)),await Promise.all(Array.from(document.querySelectorAll(o.sel)).map(async l=>{var a;const c=de(o.url,{root:l}),u=Ft(c);if(!u)return;const d=de(o.name,{root:l});if(!d)return;const p=de(o.img,{root:l}),g=p?tl(p):void 0,O=io({url:u,siteMeta:t});O&&s.push({path:u,slug:O,img:g,name:d,chapters:(a=await ro(r,{root:l,siteMeta:t,titleSlug:O,titleName:d}))!=null?a:[]})})),!s.length)return;const i=wl(s.map(l=>l.path));return{type:ze.search,url:location.origin+location.pathname,rawUpdates:s,newTitleBase:i!==t.titleBase?i:void 0}}var kh=Object.defineProperty,xl=Object.getOwnPropertySymbols,Th=Object.prototype.hasOwnProperty,Ch=Object.prototype.propertyIsEnumerable,Ol=(e,t,n)=>t in e?kh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Eh=(e,t)=>{for(var n in t||(t={}))Th.call(t,n)&&Ol(e,n,t[n]);if(xl)for(var n of xl(t))Ch.call(t,n)&&Ol(e,n,t[n]);return e};function $h(e,t){var n,o;const r=[...t],s=[];let i=-1,l=-1;for(let c=0;c<e.length&&!(!r.length&&c>=10);c++){const u=Eh({},e[c]),d=r.findIndex(O=>O.slug===u.slug&&O.name===u.name),p=d===-1?void 0:r.splice(d,1)[0],g=!p||((n=p.chapters[0])==null?void 0:n.chap)!==((o=u.chapters[0])==null?void 0:o.chap);d!==-1&&(l=c),g&&(i=c,u.changed=!0),s.push(u)}if(i===-1)return[];if(r.length){const c=Math.max(10,l+1);s.splice(c);for(let u=l+1;u<s.length;u++)s[u].changed=!1;return s}const a=Math.min(Math.max(i+1,10),Math.max(l+1,50));return s.slice(0,a)}var Ih=Object.defineProperty,Sh=Object.defineProperties,Mh=Object.getOwnPropertyDescriptors,ao=Object.getOwnPropertySymbols,Pl=Object.prototype.hasOwnProperty,kl=Object.prototype.propertyIsEnumerable,Tl=(e,t,n)=>t in e?Ih(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cl=(e,t)=>{for(var n in t||(t={}))Pl.call(t,n)&&Tl(e,n,t[n]);if(ao)for(var n of ao(t))kl.call(t,n)&&Tl(e,n,t[n]);return e},jh=(e,t)=>Sh(e,Mh(t)),El=(e,t)=>{var n={};for(var o in e)Pl.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&ao)for(var o of ao(e))t.indexOf(o)<0&&kl.call(e,o)&&(n[o]=e[o]);return n};async function Lh(e){return e.spec.id=="mangadex"?await Bh(e):e.spec.id=="comick"?await zh(e):await Ah(e)}async function Ah({spec:e,siteMeta:t,root:n,lazy:o,oldRawUpdates:r}){var s;if(!((s=e==null?void 0:e.update)!=null&&s.title))return;const i=e.update.title,{chapter:l}=i,a=El(i,["chapter"]);if(!a.sel||!a.name||!(l!=null&&l.sel)||!(l!=null&&l.label))return;const c=await wn(a.sel,{root:n,lazy:o??!0,all:!0});if(!(c!=null&&c.length))return;const u=c.map(g=>{const O=de(a.url,{root:g}),m=Ft(O);if(!m)return;const P=de(a.name,{root:g});if(!P)return;const C=de(a.img,{root:g}),b=C?tl(C):void 0;return{titleEl:g,path:m,img:b,name:P,lang:de(a.lang,{root:g})}}).filter(Boolean);if(!u.length)return;const d=wl(u.map(g=>g.path)),p=await Promise.all(u.map(async g=>{var O;const m=g,{path:P,titleEl:C,lang:b}=m,E=El(m,["path","titleEl","lang"]),$=io({url:P,siteMeta:t}),B=(O=await ro(l,{siteMeta:t,root:C,titleSlug:$,titleName:E==null?void 0:E.name}))!=null?O:[];return Cl({slug:$,chapters:b?B.map(V=>{var y;return jh(Cl({},V),{lang:(y=V.lang)!=null?y:b})}):B},E)}));return _r({newTitleBase:d&&d!==t.titleBase?d:void 0,rawUpdates:p,oldRawUpdates:r})}async function Bh(e){const t="https://api.mangadex.org/",[n,o]=await Promise.all([ft(t,"chapter"),ft(t,"manga")]);if(!o||!n)return;const r={};o.value.data.forEach(({id:i,relationships:l})=>{var a;const c=l.find(({type:d})=>d==="cover_art"),u=(a=c==null?void 0:c.attributes)==null?void 0:a.fileName;u&&(r[i]=`https://mangadex.org/covers/${i}/${u}`)});const s=n.value.data.map(({relationships:i,attributes:l,id:a})=>{const c=i.find(({type:p})=>p==="manga"),u=typeof l.volume=="string"?+l.volume:void 0,d=typeof l.chapter=="string"?+l.chapter:void 0;if(d)return{slug:c.id,name:Object.values(c.attributes.title)[0],img:r[c.id],chapters:[{slug:l.externalUrl||a,label:l.title||void 0,vol:u,chap:d,lang:l.translatedLanguage,ts:new Date(l.readableAt).valueOf()}]}}).filter(Boolean);return _r({rawUpdates:$l(s),oldRawUpdates:e==null?void 0:e.oldRawUpdates})}async function zh(e){const t="https://api.comick.app/",[n]=await Promise.all([ft(t,"chapter")]);if(!n)return;const o=n.value.chapters.map(r=>{var s,i;const{vol:l,chap:a,hid:c,lang:u,updated_at:d,md_comics:p}=r,g=typeof a=="string"&&!isNaN(+a)?+a:void 0;if(typeof g!="number")return;const O=(i=(s=p.md_covers)==null?void 0:s[0])==null?void 0:i.b2key;return{slug:p.hid,name:p.title,img:typeof O=="string"?`https://meo.comick.pictures/${O}`:void 0,chapters:[{slug:c,vol:typeof l=="string"&&!isNaN(+l)?+l:void 0,chap:g,lang:u,ts:new Date(d).valueOf()}]}}).filter(Boolean);return _r({rawUpdates:o,oldRawUpdates:e==null?void 0:e.oldRawUpdates})}function $l(e){const t={};return e.forEach(n=>{Object.values(n.chapters.reduce((o,r)=>{const s=r.lang||"default";return o[s]||(o[s]=[]),o[s].push(r),o},{})).forEach(o=>{var r;const s=(r=o[0])==null?void 0:r.lang,i=`${n.slug}:${s||""}`;t[i]?(t[i].chapters.push(...o),so(t[i].chapters)):t[i]=n})}),Object.values(t)}function _r(e){var t;const n=$l(e.rawUpdates);if(n.length)return{type:ze.update,url:(t=fl())!=null?t:"",newTitleBase:e.newTitleBase,rawUpdates:e.oldRawUpdates?$h(n,e.oldRawUpdates):n}}ze.reader,ze.title,ze.search,ze.update;const Tg="",Rt="gear-second",Il="gear-second--adblock",Sl={raw:{},page:0,defaultSettings:void 0,spaceTop:0,spaceBottom:0,fullScreen:!1,onDispose:void 0,touchDevice:void 0,userEntryId:void 0,autoPlay:!1,adBlock:!1},Ke=an(Sl);async function Nh(e){let t;document.documentElement.classList.add(Rt),e.adBlock&&document.documentElement.classList.add(Il);const{isInstalled:n,isMounted:o}=Dh();n||await Fh(),Object.assign(Ke,Sl,e,{page:Uh(e),onDispose:()=>t==null?void 0:t()}),yr();const r=o?document.querySelector(Rt):document.createElement(Rt);return o||document.body.appendChild(r),Ml(e.raw.slug),t=()=>{var i;(i=e==null?void 0:e.onDispose)==null||i.call(e),document.body.removeChild(r),document.documentElement.classList.remove(Rt),document.documentElement.classList.remove(Il),Vh(Ke)},{dispose:t,updateArgs(i){Object.assign(Ke,i),yr()}}}function Dh(){const e=!!window.customElements.get(Rt),t=e&&!!document.body.querySelector(Rt);return{isInstalled:e,isMounted:t}}async function Fh(){const e=Jc({styles:[await Rh()],data:()=>({readerData:Ke,isFinished:!1}),render(){return Us(Gi,{...this.readerData,onFullScreenChanged:t=>{var n,o;this.readerData.fullScreen=t,(o=(n=this.readerData).onFullScreenChanged)==null||o.call(n,t),yr()},onPageChanged:t=>{var n,o,r,s;this.readerData.page=t,(o=(n=this.readerData).onPageChanged)==null||o.call(n,t),!this.isFinished&&t>=this.readerData.raw.imgs.length-2&&(this.isFinished=!0,(s=(r=this.readerData).onFinished)==null||s.call(r))}})}});window.customElements.define(Rt,e)}async function Rh(){const e=Object.assign({"./TrackkunReader.vue":sp,"./components/AutoNext.vue":qd,"./components/BottomSheet.vue":of,"./components/ButtonDropdown.vue":$f,"./components/ButtonIcon.vue":Zu,"./components/ButtonReaderSettings.vue":bf,"./components/ButtonResetZoom.vue":Tu,"./components/DirectionToast.vue":Id,"./components/InputPercentage.vue":lf,"./components/InputSelect.vue":df,"./components/LoadingIndicator.vue":zd,"./components/PageNav.vue":If,"./components/PauseToast.vue":Rf,"./components/ReaderBody.vue":Ud,"./components/ReaderLayout.vue":vu,"./components/TableField.vue":uf,"./components/ZoomWrapper.vue":Sd,"./components/icons/IconBookmarkNew.vue":Su,"./components/icons/IconBookmarked.vue":Bu,"./components/icons/IconChevronLeft.vue":up,"./components/icons/IconChevronRight.vue":gp,"./components/icons/IconClose.vue":Ku,"./components/icons/IconExclamationCircle.vue":yp,"./components/icons/IconNext.vue":Kf,"./components/icons/IconPause.vue":Ff,"./components/icons/IconPlay.vue":Af,"./components/icons/IconReaderExit.vue":Ru,"./components/icons/IconSettings.vue":vf,"./components/icons/IconTriangle.vue":Of,"./components/icons/IconZoom.vue":xu}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}function yr(){if(Ke.adBlock)return;const{spaceTop:e,spaceBottom:t,fullScreen:n}=Ke,o=document.querySelector(":root");o==null||o.style.setProperty("--tk-safe-top",`${n?0:(e||0)+44}px`),o==null||o.style.setProperty("--tk-safe-bottom",`${n?0:t||0}px`)}function Vh({page:e,raw:t}){if(e<1||!t)return;if(e>=t.imgs.length){document.documentElement.scrollTop=document.documentElement.scrollHeight;return}const n=t.imgs[Math.floor(e)],o=n?document.querySelector(`[src="${n}"],[data-src="${n}"]`):void 0;o&&setTimeout(()=>{o.scrollIntoView(),setTimeout(()=>{window.scrollTo({top:document.documentElement.scrollTop+e%1*o.getBoundingClientRect().height})})})}function Uh({page:e,raw:t}){if(!(t!=null&&t.imgs.length)||document.documentElement.scrollTop<700)return e;for(let n=0;n<t.imgs.length;n++){const o=t.imgs[n],r=document.querySelector(`[src="${o}"],[data-src="${o}"]`);if(!r)continue;const s=r.getBoundingClientRect();if(s.bottom>0){const i=s.top;return n+(i>=0?0:Math.floor(-i/s.height*100)/100)}}return e}async function Ml(e,t=0){if(!Ke.raw.imgsLocator||t>=7||(await new Promise(r=>setTimeout(r,1e3)),Ke.raw.slug!==e))return;const n=de(Ke.raw.imgsLocator,{returnAll:!0});if(!(n!=null&&n.length))return;const o=n.length>Ke.raw.imgs.length;o&&(Ke.raw={...Ke.raw,imgs:n}),Ml(e,o?0:t+1)}return Nh});
1
+ (function(){"use strict";try{if(typeof document!="undefined"){var o=document.createElement("style");o.appendChild(document.createTextNode("html.gear-second{background:#000;font-size:16px!important}html.gear-second,html.gear-second body{overflow:hidden!important}html.gear-second body{touch-action:pan-x pan-y!important}html.gear-second body>footer,html.gear-second body>header,html.gear-second body>nav{display:none!important;visibility:hidden!important}html.gear-second body gear-second{bottom:0!important;display:block!important;left:0!important;position:fixed!important;right:0!important;top:0!important;visibility:visible!important;z-index:99999}html.gear-second:not(.gear-second--adblock) body>:not(gear-second){margin-bottom:var(--tk-safe-bottom)!important;margin-top:var(--tk-safe-top)!important}html.gear-second--adblock,html.gear-second--adblock body,html.gear-second--adblock body :not(gear-second){visibility:hidden!important}html.gear-second--adblock body :not(gear-second){display:none!important}")),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
+ (function(Le,te){typeof exports=="object"&&typeof module<"u"?module.exports=te():typeof define=="function"&&define.amd?define(te):(Le=typeof globalThis<"u"?globalThis:Le||self,Le._gearSecond_=te())})(this,function(){"use strict";var Fd=Object.defineProperty;var Vd=(Le,te,Be)=>te in Le?Fd(Le,te,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Le[te]=Be;var Wi=(Le,te,Be)=>(Vd(Le,typeof te!="symbol"?te+"":te,Be),Be);function Le(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const te={},Be=[],We=()=>{},Ki=()=>!1,Ui=/^on[^a-z]/,vn=e=>Ui.test(e),Jn=e=>e.startsWith("onUpdate:"),de=Object.assign,Qn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},qi=Object.prototype.hasOwnProperty,re=(e,t)=>qi.call(e,t),V=Array.isArray,At=e=>yn(e)==="[object Map]",rr=e=>yn(e)==="[object Set]",J=e=>typeof e=="function",pe=e=>typeof e=="string",Gn=e=>typeof e=="symbol",ue=e=>e!==null&&typeof e=="object",sr=e=>ue(e)&&J(e.then)&&J(e.catch),ir=Object.prototype.toString,yn=e=>ir.call(e),Yi=e=>yn(e).slice(8,-1),lr=e=>yn(e)==="[object Object]",eo=e=>pe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,wn=Le(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Zi=/-(\w)/g,Ae=xn(e=>e.replace(Zi,(t,n)=>n?n.toUpperCase():"")),Xi=/\B([A-Z])/g,Ne=xn(e=>e.replace(Xi,"-$1").toLowerCase()),Cn=xn(e=>e.charAt(0).toUpperCase()+e.slice(1)),to=xn(e=>e?`on${Cn(e)}`:""),en=(e,t)=>!Object.is(e,t),Tn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},kn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},no=e=>{const t=parseFloat(e);return isNaN(t)?e:t},oo=e=>{const t=pe(e)?Number(e):NaN;return isNaN(t)?e:t};let ar;const ro=()=>ar||(ar=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ke(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=pe(o)?el(o):Ke(o);if(r)for(const s in r)t[s]=r[s]}return t}else{if(pe(e))return e;if(ue(e))return e}}const Ji=/;(?![^(]*\))/g,Qi=/:([^]+)/,Gi=new RegExp("\\/\\*.*?\\*\\/","gs");function el(e){const t={};return e.replace(Gi,"").split(Ji).forEach(n=>{if(n){const o=n.split(Qi);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function me(e){let t="";if(pe(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const o=me(e[n]);o&&(t+=o+" ")}else if(ue(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const tl=Le("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function cr(e){return!!e||e===""}const st=e=>pe(e)?e:e==null?"":V(e)||ue(e)&&(e.toString===ir||!J(e.toString))?JSON.stringify(e,ur,2):String(e),ur=(e,t)=>t&&t.__v_isRef?ur(e,t.value):At(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:rr(t)?{[`Set(${t.size})`]:[...t.values()]}:ue(t)&&!V(t)&&!lr(t)?String(t):t;let je;class nl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=je,!t&&je&&(this.index=(je.scopes||(je.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=je;try{return je=this,t()}finally{je=n}}}on(){je=this}off(){je=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 ol(e,t=je){t&&t.active&&t.effects.push(e)}function fr(){return je}function rl(e){je&&je.cleanups.push(e)}const so=e=>{const t=new Set(e);return t.w=0,t.n=0,t},dr=e=>(e.w&it)>0,pr=e=>(e.n&it)>0,sl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=it},il=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];dr(r)&&!pr(r)?r.delete(e):t[n++]=r,r.w&=~it,r.n&=~it}t.length=n}},io=new WeakMap;let tn=0,it=1;const lo=30;let Ue;const yt=Symbol(""),ao=Symbol("");class co{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,ol(this,o)}run(){if(!this.active)return this.fn();let t=Ue,n=lt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Ue,Ue=this,lt=!0,it=1<<++tn,tn<=lo?sl(this):hr(this),this.fn()}finally{tn<=lo&&il(this),it=1<<--tn,Ue=this.parent,lt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ue===this?this.deferStop=!0:this.active&&(hr(this),this.onStop&&this.onStop(),this.active=!1)}}function hr(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let lt=!0;const gr=[];function jt(){gr.push(lt),lt=!1}function zt(){const e=gr.pop();lt=e===void 0?!0:e}function $e(e,t,n){if(lt&&Ue){let o=io.get(e);o||io.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=so()),mr(r)}}function mr(e,t){let n=!1;tn<=lo?pr(e)||(e.n|=it,n=!dr(e)):n=!e.has(Ue),n&&(e.add(Ue),Ue.deps.push(e))}function tt(e,t,n,o,r,s){const i=io.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&V(e)){const a=Number(o);i.forEach((c,f)=>{(f==="length"||f>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":V(e)?eo(n)&&l.push(i.get("length")):(l.push(i.get(yt)),At(e)&&l.push(i.get(ao)));break;case"delete":V(e)||(l.push(i.get(yt)),At(e)&&l.push(i.get(ao)));break;case"set":At(e)&&l.push(i.get(yt));break}if(l.length===1)l[0]&&uo(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);uo(so(a))}}function uo(e,t){const n=V(e)?e:[...e];for(const o of n)o.computed&&br(o);for(const o of n)o.computed||br(o)}function br(e,t){(e!==Ue||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const ll=Le("__proto__,__v_isRef,__isVue"),_r=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Gn)),al=fo(),cl=fo(!1,!0),ul=fo(!0),vr=fl();function fl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=se(this);for(let s=0,i=this.length;s<i;s++)$e(o,"get",s+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(se)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){jt();const o=se(this)[t].apply(this,n);return zt(),o}}),e}function dl(e){const t=se(this);return $e(t,"has",e),t.hasOwnProperty(e)}function fo(e=!1,t=!1){return function(o,r,s){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&s===(e?t?Ol:Or:t?Er:Pr).get(o))return o;const i=V(o);if(!e){if(i&&re(vr,r))return Reflect.get(vr,r,s);if(r==="hasOwnProperty")return dl}const l=Reflect.get(o,r,s);return(Gn(r)?_r.has(r):ll(r))||(e||$e(o,"get",r),t)?l:ve(l)?i&&eo(r)?l:l.value:ue(l)?e?go(l):nn(l):l}}const pl=yr(),hl=yr(!0);function yr(e=!1){return function(n,o,r,s){let i=n[o];if(Nt(i)&&ve(i)&&!ve(r))return!1;if(!e&&(!Mn(r)&&!Nt(r)&&(i=se(i),r=se(r)),!V(n)&&ve(i)&&!ve(r)))return i.value=r,!0;const l=V(n)&&eo(o)?Number(o)<n.length:re(n,o),a=Reflect.set(n,o,r,s);return n===se(s)&&(l?en(r,i)&&tt(n,"set",o,r):tt(n,"add",o,r)),a}}function gl(e,t){const n=re(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&tt(e,"delete",t,void 0),o}function ml(e,t){const n=Reflect.has(e,t);return(!Gn(t)||!_r.has(t))&&$e(e,"has",t),n}function bl(e){return $e(e,"iterate",V(e)?"length":yt),Reflect.ownKeys(e)}const wr={get:al,set:pl,deleteProperty:gl,has:ml,ownKeys:bl},_l={get:ul,set(e,t){return!0},deleteProperty(e,t){return!0}},vl=de({},wr,{get:cl,set:hl}),po=e=>e,Pn=e=>Reflect.getPrototypeOf(e);function En(e,t,n=!1,o=!1){e=e.__v_raw;const r=se(e),s=se(t);n||(t!==s&&$e(r,"get",t),$e(r,"get",s));const{has:i}=Pn(r),l=o?po:n?bo:on;if(i.call(r,t))return l(e.get(t));if(i.call(r,s))return l(e.get(s));e!==r&&e.get(t)}function On(e,t=!1){const n=this.__v_raw,o=se(n),r=se(e);return t||(e!==r&&$e(o,"has",e),$e(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function $n(e,t=!1){return e=e.__v_raw,!t&&$e(se(e),"iterate",yt),Reflect.get(e,"size",e)}function xr(e){e=se(e);const t=se(this);return Pn(t).has.call(t,e)||(t.add(e),tt(t,"add",e,e)),this}function Cr(e,t){t=se(t);const n=se(this),{has:o,get:r}=Pn(n);let s=o.call(n,e);s||(e=se(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?en(t,i)&&tt(n,"set",e,t):tt(n,"add",e,t),this}function Tr(e){const t=se(this),{has:n,get:o}=Pn(t);let r=n.call(t,e);r||(e=se(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&tt(t,"delete",e,void 0),s}function kr(){const e=se(this),t=e.size!==0,n=e.clear();return t&&tt(e,"clear",void 0,void 0),n}function In(e,t){return function(o,r){const s=this,i=s.__v_raw,l=se(i),a=t?po:e?bo:on;return!e&&$e(l,"iterate",yt),i.forEach((c,f)=>o.call(r,a(c),a(f),s))}}function Sn(e,t,n){return function(...o){const r=this.__v_raw,s=se(r),i=At(s),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=r[e](...o),f=n?po:t?bo:on;return!t&&$e(s,"iterate",a?ao:yt),{next(){const{value:p,done:h}=c.next();return h?{value:p,done:h}:{value:l?[f(p[0]),f(p[1])]:f(p),done:h}},[Symbol.iterator](){return this}}}}function at(e){return function(...t){return e==="delete"?!1:this}}function yl(){const e={get(s){return En(this,s)},get size(){return $n(this)},has:On,add:xr,set:Cr,delete:Tr,clear:kr,forEach:In(!1,!1)},t={get(s){return En(this,s,!1,!0)},get size(){return $n(this)},has:On,add:xr,set:Cr,delete:Tr,clear:kr,forEach:In(!1,!0)},n={get(s){return En(this,s,!0)},get size(){return $n(this,!0)},has(s){return On.call(this,s,!0)},add:at("add"),set:at("set"),delete:at("delete"),clear:at("clear"),forEach:In(!0,!1)},o={get(s){return En(this,s,!0,!0)},get size(){return $n(this,!0)},has(s){return On.call(this,s,!0)},add:at("add"),set:at("set"),delete:at("delete"),clear:at("clear"),forEach:In(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Sn(s,!1,!1),n[s]=Sn(s,!0,!1),t[s]=Sn(s,!1,!0),o[s]=Sn(s,!0,!0)}),[e,n,t,o]}const[wl,xl,Cl,Tl]=yl();function ho(e,t){const n=t?e?Tl:Cl:e?xl:wl;return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(re(n,r)&&r in o?n:o,r,s)}const kl={get:ho(!1,!1)},Pl={get:ho(!1,!0)},El={get:ho(!0,!1)},Pr=new WeakMap,Er=new WeakMap,Or=new WeakMap,Ol=new WeakMap;function $l(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Il(e){return e.__v_skip||!Object.isExtensible(e)?0:$l(Yi(e))}function nn(e){return Nt(e)?e:mo(e,!1,wr,kl,Pr)}function Sl(e){return mo(e,!1,vl,Pl,Er)}function go(e){return mo(e,!0,_l,El,Or)}function mo(e,t,n,o,r){if(!ue(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=Il(e);if(i===0)return e;const l=new Proxy(e,i===2?o:n);return r.set(e,l),l}function Bt(e){return Nt(e)?Bt(e.__v_raw):!!(e&&e.__v_isReactive)}function Nt(e){return!!(e&&e.__v_isReadonly)}function Mn(e){return!!(e&&e.__v_isShallow)}function $r(e){return Bt(e)||Nt(e)}function se(e){const t=e&&e.__v_raw;return t?se(t):e}function Ir(e){return kn(e,"__v_skip",!0),e}const on=e=>ue(e)?nn(e):e,bo=e=>ue(e)?go(e):e;function Sr(e){lt&&Ue&&(e=se(e),mr(e.dep||(e.dep=so())))}function Mr(e,t){e=se(e);const n=e.dep;n&&uo(n)}function ve(e){return!!(e&&e.__v_isRef===!0)}function G(e){return Ar(e,!1)}function Lr(e){return Ar(e,!0)}function Ar(e,t){return ve(e)?e:new Ml(e,t)}class Ml{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:se(t),this._value=n?t:on(t)}get value(){return Sr(this),this._value}set value(t){const n=this.__v_isShallow||Mn(t)||Nt(t);t=n?t:se(t),en(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:on(t),Mr(this))}}function X(e){return ve(e)?e.value:e}const Ll={get:(e,t,n)=>X(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return ve(r)&&!ve(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function jr(e){return Bt(e)?e:new Proxy(e,Ll)}class Al{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new co(t,()=>{this._dirty||(this._dirty=!0,Mr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=se(this);return Sr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function jl(e,t,n=!1){let o,r;const s=J(e);return s?(o=e,r=We):(o=e.get,r=e.set),new Al(o,r,s||!r,n)}function Wd(e,...t){}function ct(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){Ln(s,t,n)}return r}function De(e,t,n,o){if(J(e)){const s=ct(e,t,n,o);return s&&sr(s)&&s.catch(i=>{Ln(i,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(De(e[s],t,n,o));return r}function Ln(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const i=t.proxy,l=n;for(;s;){const c=s.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,i,l)===!1)return}s=s.parent}const a=t.appContext.config.errorHandler;if(a){ct(a,null,10,[e,i,l]);return}}zl(e,n,r,o)}function zl(e,t,n,o=!0){console.error(e)}let rn=!1,_o=!1;const Te=[];let Xe=0;const Dt=[];let nt=null,wt=0;const zr=Promise.resolve();let vo=null;function ot(e){const t=vo||zr;return e?t.then(this?e.bind(this):e):t}function Bl(e){let t=Xe+1,n=Te.length;for(;t<n;){const o=t+n>>>1;sn(Te[o])<e?t=o+1:n=o}return t}function yo(e){(!Te.length||!Te.includes(e,rn&&e.allowRecurse?Xe+1:Xe))&&(e.id==null?Te.push(e):Te.splice(Bl(e.id),0,e),Br())}function Br(){!rn&&!_o&&(_o=!0,vo=zr.then(Rr))}function Nl(e){const t=Te.indexOf(e);t>Xe&&Te.splice(t,1)}function Dl(e){V(e)?Dt.push(...e):(!nt||!nt.includes(e,e.allowRecurse?wt+1:wt))&&Dt.push(e),Br()}function Nr(e,t=rn?Xe+1:0){for(;t<Te.length;t++){const n=Te[t];n&&n.pre&&(Te.splice(t,1),t--,n())}}function Dr(e){if(Dt.length){const t=[...new Set(Dt)];if(Dt.length=0,nt){nt.push(...t);return}for(nt=t,nt.sort((n,o)=>sn(n)-sn(o)),wt=0;wt<nt.length;wt++)nt[wt]();nt=null,wt=0}}const sn=e=>e.id==null?1/0:e.id,Rl=(e,t)=>{const n=sn(e)-sn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Rr(e){_o=!1,rn=!0,Te.sort(Rl);const t=We;try{for(Xe=0;Xe<Te.length;Xe++){const n=Te[Xe];n&&n.active!==!1&&ct(n,null,14)}}finally{Xe=0,Te.length=0,Dr(),rn=!1,vo=null,(Te.length||Dt.length)&&Rr()}}function Fl(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||te;let r=n;const s=t.startsWith("update:"),i=s&&t.slice(7);if(i&&i in o){const f=`${i==="modelValue"?"model":i}Modifiers`,{number:p,trim:h}=o[f]||te;h&&(r=n.map(m=>pe(m)?m.trim():m)),p&&(r=n.map(no))}let l,a=o[l=to(t)]||o[l=to(Ae(t))];!a&&s&&(a=o[l=to(Ne(t))]),a&&De(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,De(c,e,6,r)}}function Fr(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const s=e.emits;let i={},l=!1;if(!J(e)){const a=c=>{const f=Fr(c,t,!0);f&&(l=!0,de(i,f))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!s&&!l?(ue(e)&&o.set(e,null),null):(V(s)?s.forEach(a=>i[a]=null):de(i,s),ue(e)&&o.set(e,i),i)}function An(e,t){return!e||!vn(t)?!1:(t=t.slice(2).replace(/Once$/,""),re(e,t[0].toLowerCase()+t.slice(1))||re(e,Ne(t))||re(e,t))}let xe=null,Vr=null;function jn(e){const t=xe;return xe=e,Vr=e&&e.type.__scopeId||null,t}function ie(e,t=xe,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&bs(-1);const s=jn(t);let i;try{i=e(...r)}finally{jn(s),o._d&&bs(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function Kd(){}function wo(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:l,attrs:a,emit:c,render:f,renderCache:p,data:h,setupState:m,ctx:j,inheritAttrs:b}=e;let I,M;const x=jn(e);try{if(n.shapeFlag&4){const S=r||o;I=Qe(f.call(S,S,p,s,m,h,j)),M=a}else{const S=t;I=Qe(S.length>1?S(s,{attrs:a,slots:l,emit:c}):S(s,null)),M=t.props?a:Vl(a)}}catch(S){un.length=0,Ln(S,e,1),I=W(Fe)}let $=I;if(M&&b!==!1){const S=Object.keys(M),{shapeFlag:q}=$;S.length&&q&7&&(i&&S.some(Jn)&&(M=Hl(M,i)),$=ft($,M))}return n.dirs&&($=ft($),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&($.transition=n.transition),I=$,jn(x),I}const Vl=e=>{let t;for(const n in e)(n==="class"||n==="style"||vn(n))&&((t||(t={}))[n]=e[n]);return t},Hl=(e,t)=>{const n={};for(const o in e)(!Jn(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Wl(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:l,patchFlag:a}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?Hr(o,i,c):!!i;if(a&8){const f=t.dynamicProps;for(let p=0;p<f.length;p++){const h=f[p];if(i[h]!==o[h]&&!An(c,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===i?!1:o?i?Hr(o,i,c):!0:!!i;return!1}function Hr(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const s=o[r];if(t[s]!==e[s]&&!An(n,s))return!0}return!1}function Kl({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Ul=e=>e.__isSuspense;function ql(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):Dl(e)}function Yl(e,t){return xo(e,null,t)}const zn={};function he(e,t,n){return xo(e,t,n)}function xo(e,t,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:i}=te){var l;const a=fr()===((l=we)==null?void 0:l.scope)?we:null;let c,f=!1,p=!1;if(ve(e)?(c=()=>e.value,f=Mn(e)):Bt(e)?(c=()=>e,o=!0):V(e)?(p=!0,f=e.some(S=>Bt(S)||Mn(S)),c=()=>e.map(S=>{if(ve(S))return S.value;if(Bt(S))return xt(S);if(J(S))return ct(S,a,2)})):J(e)?t?c=()=>ct(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),De(e,a,3,[m])}:c=We,t&&o){const S=c;c=()=>xt(S())}let h,m=S=>{h=x.onStop=()=>{ct(S,a,4)}},j;if(dn)if(m=We,t?n&&De(t,a,3,[c(),p?[]:void 0,m]):c(),r==="sync"){const S=Fa();j=S.__watcherHandles||(S.__watcherHandles=[])}else return We;let b=p?new Array(e.length).fill(zn):zn;const I=()=>{if(x.active)if(t){const S=x.run();(o||f||(p?S.some((q,ee)=>en(q,b[ee])):en(S,b)))&&(h&&h(),De(t,a,3,[S,b===zn?void 0:p&&b[0]===zn?[]:b,m]),b=S)}else x.run()};I.allowRecurse=!!t;let M;r==="sync"?M=I:r==="post"?M=()=>Ie(I,a&&a.suspense):(I.pre=!0,a&&(I.id=a.uid),M=()=>yo(I));const x=new co(c,M);t?n?I():b=x.run():r==="post"?Ie(x.run.bind(x),a&&a.suspense):x.run();const $=()=>{x.stop(),a&&a.scope&&Qn(a.scope.effects,x)};return j&&j.push($),$}function Zl(e,t,n){const o=this.proxy,r=pe(e)?e.includes(".")?Wr(o,e):()=>o[e]:e.bind(o,o);let s;J(t)?s=t:(s=t.handler,n=t);const i=we;Ht(this);const l=xo(r,s.bind(o),n);return i?Ht(i):Et(),l}function Wr(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 xt(e,t){if(!ue(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),ve(e))xt(e.value,t);else if(V(e))for(let n=0;n<e.length;n++)xt(e[n],t);else if(rr(e)||At(e))e.forEach(n=>{xt(n,t)});else if(lr(e))for(const n in e)xt(e[n],t);return e}function ut(e,t){const n=xe;if(n===null)return e;const o=Un(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,l,a,c=te]=t[s];i&&(J(i)&&(i={mounted:i,updated:i}),i.deep&&xt(l),r.push({dir:i,instance:o,value:l,oldValue:void 0,arg:a,modifiers:c}))}return e}function Ct(e,t,n,o){const r=e.dirs,s=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];s&&(l.oldValue=s[i].value);let a=l.dir[o];a&&(jt(),De(a,n,8,[e.el,l,e,t]),zt())}}function Xl(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Je(()=>{e.isMounted=!0}),Xr(()=>{e.isUnmounting=!0}),e}const Re=[Function,Array],Kr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Re,onEnter:Re,onAfterEnter:Re,onEnterCancelled:Re,onBeforeLeave:Re,onLeave:Re,onAfterLeave:Re,onLeaveCancelled:Re,onBeforeAppear:Re,onAppear:Re,onAfterAppear:Re,onAppearCancelled:Re},Jl={name:"BaseTransition",props:Kr,setup(e,{slots:t}){const n=ys(),o=Xl();let r;return()=>{const s=t.default&&Yr(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const b of s)if(b.type!==Fe){i=b;break}}const l=se(e),{mode:a}=l;if(o.isLeaving)return To(i);const c=qr(i);if(!c)return To(i);const f=Co(c,l,o,n);ko(c,f);const p=n.subTree,h=p&&qr(p);let m=!1;const{getTransitionKey:j}=c.type;if(j){const b=j();r===void 0?r=b:b!==r&&(r=b,m=!0)}if(h&&h.type!==Fe&&(!Pt(c,h)||m)){const b=Co(h,l,o,n);if(ko(h,b),a==="out-in")return o.isLeaving=!0,b.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},To(i);a==="in-out"&&c.type!==Fe&&(b.delayLeave=(I,M,x)=>{const $=Ur(o,h);$[String(h.key)]=h,I._leaveCb=()=>{M(),I._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=x})}return i}}};function Ur(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 Co(e,t,n,o){const{appear:r,mode:s,persisted:i=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:p,onLeave:h,onAfterLeave:m,onLeaveCancelled:j,onBeforeAppear:b,onAppear:I,onAfterAppear:M,onAppearCancelled:x}=t,$=String(e.key),S=Ur(n,e),q=(O,D)=>{O&&De(O,o,9,D)},ee=(O,D)=>{const U=D[1];q(O,D),V(O)?O.every(ae=>ae.length<=1)&&U():O.length<=1&&U()},C={mode:s,persisted:i,beforeEnter(O){let D=l;if(!n.isMounted)if(r)D=b||l;else return;O._leaveCb&&O._leaveCb(!0);const U=S[$];U&&Pt(e,U)&&U.el._leaveCb&&U.el._leaveCb(),q(D,[O])},enter(O){let D=a,U=c,ae=f;if(!n.isMounted)if(r)D=I||a,U=M||c,ae=x||f;else return;let A=!1;const ne=O._enterCb=T=>{A||(A=!0,T?q(ae,[O]):q(U,[O]),C.delayedLeave&&C.delayedLeave(),O._enterCb=void 0)};D?ee(D,[O,ne]):ne()},leave(O,D){const U=String(e.key);if(O._enterCb&&O._enterCb(!0),n.isUnmounting)return D();q(p,[O]);let ae=!1;const A=O._leaveCb=ne=>{ae||(ae=!0,D(),ne?q(j,[O]):q(m,[O]),O._leaveCb=void 0,S[U]===e&&delete S[U])};S[U]=e,h?ee(h,[O,A]):A()},clone(O){return Co(O,t,n,o)}};return C}function To(e){if(Bn(e))return e=ft(e),e.children=null,e}function qr(e){return Bn(e)?e.children?e.children[0]:void 0:e}function ko(e,t){e.shapeFlag&6&&e.component?ko(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 Yr(e,t=!1,n){let o=[],r=0;for(let s=0;s<e.length;s++){let i=e[s];const l=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===ye?(i.patchFlag&128&&r++,o=o.concat(Yr(i.children,t,l))):(t||i.type!==Fe)&&o.push(l!=null?ft(i,{key:l}):i)}if(r>1)for(let s=0;s<o.length;s++)o[s].patchFlag=-2;return o}function Ce(e,t){return J(e)?(()=>de({name:e.name},t,{setup:e}))():e}const ln=e=>!!e.type.__asyncLoader,Bn=e=>e.type.__isKeepAlive;function Ql(e,t){Zr(e,"a",t)}function Gl(e,t){Zr(e,"da",t)}function Zr(e,t,n=we){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Nn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Bn(r.parent.vnode)&&ea(o,t,n,r),r=r.parent}}function ea(e,t,n,o){const r=Nn(t,e,o,!0);Tt(()=>{Qn(o[t],r)},n)}function Nn(e,t,n=we,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;jt(),Ht(n);const l=De(t,n,e,i);return Et(),zt(),l});return o?r.unshift(s):r.push(s),s}}const rt=e=>(t,n=we)=>(!dn||e==="sp")&&Nn(e,(...o)=>t(...o),n),ta=rt("bm"),Je=rt("m"),na=rt("bu"),oa=rt("u"),Xr=rt("bum"),Tt=rt("um"),ra=rt("sp"),sa=rt("rtg"),ia=rt("rtc");function la(e,t=we){Nn("ec",e,t)}const Jr="components",Qr=Symbol.for("v-ndc");function aa(e){return pe(e)?ca(Jr,e,!1)||e:e||Qr}function ca(e,t,n=!0,o=!1){const r=xe||we;if(r){const s=r.type;if(e===Jr){const l=Na(s,!1);if(l&&(l===t||l===Ae(t)||l===Cn(Ae(t))))return s}const i=Gr(r[e]||s[e],t)||Gr(r.appContext[e],t);return!i&&o?s:i}}function Gr(e,t){return e&&(e[t]||e[Ae(t)]||e[Cn(Ae(t))])}function Dn(e,t,n,o){let r;const s=n&&n[o];if(V(e)||pe(e)){r=new Array(e.length);for(let i=0,l=e.length;i<l;i++)r[i]=t(e[i],i,void 0,s&&s[i])}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,s&&s[i])}else if(ue(e))if(e[Symbol.iterator])r=Array.from(e,(i,l)=>t(i,l,void 0,s&&s[l]));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,a=i.length;l<a;l++){const c=i[l];r[l]=t(e[c],c,l,s&&s[l])}}else r=[];return n&&(n[o]=r),r}function ua(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(V(o))for(let r=0;r<o.length;r++)e[o[r].name]=o[r].fn;else o&&(e[o.name]=o.key?(...r)=>{const s=o.fn(...r);return s&&(s.key=o.key),s}:o.fn)}return e}function ke(e,t,n={},o,r){if(xe.isCE||xe.parent&&ln(xe.parent)&&xe.parent.isCE)return t!=="default"&&(n.name=t),W("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),z();const i=s&&es(s(n)),l=Pe(ye,{key:n.key||i&&i.key||`_${t}`},i||(o?o():[]),i&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function es(e){return e.some(t=>Hn(t)?!(t.type===Fe||t.type===ye&&!es(t.children)):!0)?e:null}const Po=e=>e?xs(e)?Un(e)||e.proxy:Po(e.parent):null,an=de(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=>Po(e.parent),$root:e=>Po(e.root),$emit:e=>e.emit,$options:e=>$o(e),$forceUpdate:e=>e.f||(e.f=()=>yo(e.update)),$nextTick:e=>e.n||(e.n=ot.bind(e.proxy)),$watch:e=>Zl.bind(e)}),Eo=(e,t)=>e!==te&&!e.__isScriptSetup&&re(e,t),fa={get({_:e},t){const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(Eo(o,t))return i[t]=1,o[t];if(r!==te&&re(r,t))return i[t]=2,r[t];if((c=e.propsOptions[0])&&re(c,t))return i[t]=3,s[t];if(n!==te&&re(n,t))return i[t]=4,n[t];Oo&&(i[t]=0)}}const f=an[t];let p,h;if(f)return t==="$attrs"&&$e(e,"get",t),f(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==te&&re(n,t))return i[t]=4,n[t];if(h=a.config.globalProperties,re(h,t))return h[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return Eo(r,t)?(r[t]=n,!0):o!==te&&re(o,t)?(o[t]=n,!0):re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:s}},i){let l;return!!n[i]||e!==te&&re(e,i)||Eo(t,i)||(l=s[0])&&re(l,i)||re(o,i)||re(an,i)||re(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ts(e){return V(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Oo=!0;function da(e){const t=$o(e),n=e.proxy,o=e.ctx;Oo=!1,t.beforeCreate&&ns(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:l,provide:a,inject:c,created:f,beforeMount:p,mounted:h,beforeUpdate:m,updated:j,activated:b,deactivated:I,beforeDestroy:M,beforeUnmount:x,destroyed:$,unmounted:S,render:q,renderTracked:ee,renderTriggered:C,errorCaptured:O,serverPrefetch:D,expose:U,inheritAttrs:ae,components:A,directives:ne,filters:T}=t;if(c&&pa(c,o,null),i)for(const N in i){const Q=i[N];J(Q)&&(o[N]=Q.bind(n))}if(r){const N=r.call(n,n);ue(N)&&(e.data=nn(N))}if(Oo=!0,s)for(const N in s){const Q=s[N],Oe=J(Q)?Q.bind(n,n):J(Q.get)?Q.get.bind(n,n):We,_t=!J(Q)&&J(Q.set)?Q.set.bind(n):We,Ye=fe({get:Oe,set:_t});Object.defineProperty(o,N,{enumerable:!0,configurable:!0,get:()=>Ye.value,set:Se=>Ye.value=Se})}if(l)for(const N in l)os(l[N],o,n,N);if(a){const N=J(a)?a.call(n):a;Reflect.ownKeys(N).forEach(Q=>{So(Q,N[Q])})}f&&ns(f,e,"c");function y(N,Q){V(Q)?Q.forEach(Oe=>N(Oe.bind(n))):Q&&N(Q.bind(n))}if(y(ta,p),y(Je,h),y(na,m),y(oa,j),y(Ql,b),y(Gl,I),y(la,O),y(ia,ee),y(sa,C),y(Xr,x),y(Tt,S),y(ra,D),V(U))if(U.length){const N=e.exposed||(e.exposed={});U.forEach(Q=>{Object.defineProperty(N,Q,{get:()=>n[Q],set:Oe=>n[Q]=Oe})})}else e.exposed||(e.exposed={});q&&e.render===We&&(e.render=q),ae!=null&&(e.inheritAttrs=ae),A&&(e.components=A),ne&&(e.directives=ne)}function pa(e,t,n=We){V(e)&&(e=Io(e));for(const o in e){const r=e[o];let s;ue(r)?"default"in r?s=Rt(r.from||o,r.default,!0):s=Rt(r.from||o):s=Rt(r),ve(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[o]=s}}function ns(e,t,n){De(V(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function os(e,t,n,o){const r=o.includes(".")?Wr(n,o):()=>n[o];if(pe(e)){const s=t[e];J(s)&&he(r,s)}else if(J(e))he(r,e.bind(n));else if(ue(e))if(V(e))e.forEach(s=>os(s,t,n,o));else{const s=J(e.handler)?e.handler.bind(n):t[e.handler];J(s)&&he(r,s,e)}}function $o(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,l=s.get(t);let a;return l?a=l:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(c=>Rn(a,c,i,!0)),Rn(a,t,i)),ue(t)&&s.set(t,a),a}function Rn(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&Rn(e,s,n,!0),r&&r.forEach(i=>Rn(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const l=ha[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const ha={data:rs,props:ss,emits:ss,methods:cn,computed:cn,beforeCreate:Ee,created:Ee,beforeMount:Ee,mounted:Ee,beforeUpdate:Ee,updated:Ee,beforeDestroy:Ee,beforeUnmount:Ee,destroyed:Ee,unmounted:Ee,activated:Ee,deactivated:Ee,errorCaptured:Ee,serverPrefetch:Ee,components:cn,directives:cn,watch:ma,provide:rs,inject:ga};function rs(e,t){return t?e?function(){return de(J(e)?e.call(this,this):e,J(t)?t.call(this,this):t)}:t:e}function ga(e,t){return cn(Io(e),Io(t))}function Io(e){if(V(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ee(e,t){return e?[...new Set([].concat(e,t))]:t}function cn(e,t){return e?de(Object.create(null),e,t):t}function ss(e,t){return e?V(e)&&V(t)?[...new Set([...e,...t])]:de(Object.create(null),ts(e),ts(t??{})):t}function ma(e,t){if(!e)return t;if(!t)return e;const n=de(Object.create(null),e);for(const o in t)n[o]=Ee(e[o],t[o]);return n}function is(){return{app:null,config:{isNativeTag:Ki,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 ba=0;function _a(e,t){return function(o,r=null){J(o)||(o=de({},o)),r!=null&&!ue(r)&&(r=null);const s=is(),i=new Set;let l=!1;const a=s.app={_uid:ba++,_component:o,_props:r,_container:null,_context:s,_instance:null,version:Va,get config(){return s.config},set config(c){},use(c,...f){return i.has(c)||(c&&J(c.install)?(i.add(c),c.install(a,...f)):J(c)&&(i.add(c),c(a,...f))),a},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),a},component(c,f){return f?(s.components[c]=f,a):s.components[c]},directive(c,f){return f?(s.directives[c]=f,a):s.directives[c]},mount(c,f,p){if(!l){const h=W(o,r);return h.appContext=s,f&&t?t(h,c):e(h,c,p),l=!0,a._container=c,c.__vue_app__=a,Un(h.component)||h.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,f){return s.provides[c]=f,a},runWithContext(c){Fn=a;try{return c()}finally{Fn=null}}};return a}}let Fn=null;function So(e,t){if(we){let n=we.provides;const o=we.parent&&we.parent.provides;o===n&&(n=we.provides=Object.create(o)),n[e]=t}}function Rt(e,t,n=!1){const o=we||xe;if(o||Fn){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Fn._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&J(t)?t.call(o&&o.proxy):t}}function va(e,t,n,o=!1){const r={},s={};kn(s,Wn,1),e.propsDefaults=Object.create(null),ls(e,t,r,s);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:Sl(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function ya(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,l=se(r),[a]=e.propsOptions;let c=!1;if((o||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let p=0;p<f.length;p++){let h=f[p];if(An(e.emitsOptions,h))continue;const m=t[h];if(a)if(re(s,h))m!==s[h]&&(s[h]=m,c=!0);else{const j=Ae(h);r[j]=Mo(a,l,j,m,e,!1)}else m!==s[h]&&(s[h]=m,c=!0)}}}else{ls(e,t,r,s)&&(c=!0);let f;for(const p in l)(!t||!re(t,p)&&((f=Ne(p))===p||!re(t,f)))&&(a?n&&(n[p]!==void 0||n[f]!==void 0)&&(r[p]=Mo(a,l,p,void 0,e,!0)):delete r[p]);if(s!==l)for(const p in s)(!t||!re(t,p))&&(delete s[p],c=!0)}c&&tt(e,"set","$attrs")}function ls(e,t,n,o){const[r,s]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(wn(a))continue;const c=t[a];let f;r&&re(r,f=Ae(a))?!s||!s.includes(f)?n[f]=c:(l||(l={}))[f]=c:An(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,i=!0)}if(s){const a=se(n),c=l||te;for(let f=0;f<s.length;f++){const p=s[f];n[p]=Mo(r,a,p,c[p],e,!re(c,p))}}return i}function Mo(e,t,n,o,r,s){const i=e[n];if(i!=null){const l=re(i,"default");if(l&&o===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&J(a)){const{propsDefaults:c}=r;n in c?o=c[n]:(Ht(r),o=c[n]=a.call(null,t),Et())}else o=a}i[0]&&(s&&!l?o=!1:i[1]&&(o===""||o===Ne(n))&&(o=!0))}return o}function as(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const s=e.props,i={},l=[];let a=!1;if(!J(e)){const f=p=>{a=!0;const[h,m]=as(p,t,!0);de(i,h),m&&l.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!s&&!a)return ue(e)&&o.set(e,Be),Be;if(V(s))for(let f=0;f<s.length;f++){const p=Ae(s[f]);cs(p)&&(i[p]=te)}else if(s)for(const f in s){const p=Ae(f);if(cs(p)){const h=s[f],m=i[p]=V(h)||J(h)?{type:h}:de({},h);if(m){const j=ds(Boolean,m.type),b=ds(String,m.type);m[0]=j>-1,m[1]=b<0||j<b,(j>-1||re(m,"default"))&&l.push(p)}}}const c=[i,l];return ue(e)&&o.set(e,c),c}function cs(e){return e[0]!=="$"}function us(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function fs(e,t){return us(e)===us(t)}function ds(e,t){return V(t)?t.findIndex(n=>fs(n,e)):J(t)&&fs(t,e)?0:-1}const ps=e=>e[0]==="_"||e==="$stable",Lo=e=>V(e)?e.map(Qe):[Qe(e)],wa=(e,t,n)=>{if(t._n)return t;const o=ie((...r)=>Lo(t(...r)),n);return o._c=!1,o},hs=(e,t,n)=>{const o=e._ctx;for(const r in e){if(ps(r))continue;const s=e[r];if(J(s))t[r]=wa(r,s,o);else if(s!=null){const i=Lo(s);t[r]=()=>i}}},gs=(e,t)=>{const n=Lo(t);e.slots.default=()=>n},xa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=se(t),kn(t,"_",n)):hs(t,e.slots={})}else e.slots={},t&&gs(e,t);kn(e.slots,Wn,1)},Ca=(e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,i=te;if(o.shapeFlag&32){const l=t._;l?n&&l===1?s=!1:(de(r,t),!n&&l===1&&delete r._):(s=!t.$stable,hs(t,r)),i=t}else t&&(gs(e,t),i={default:1});if(s)for(const l in r)!ps(l)&&!(l in i)&&delete r[l]};function Ao(e,t,n,o,r=!1){if(V(e)){e.forEach((h,m)=>Ao(h,t&&(V(t)?t[m]:t),n,o,r));return}if(ln(o)&&!r)return;const s=o.shapeFlag&4?Un(o.component)||o.component.proxy:o.el,i=r?null:s,{i:l,r:a}=e,c=t&&t.r,f=l.refs===te?l.refs={}:l.refs,p=l.setupState;if(c!=null&&c!==a&&(pe(c)?(f[c]=null,re(p,c)&&(p[c]=null)):ve(c)&&(c.value=null)),J(a))ct(a,l,12,[i,f]);else{const h=pe(a),m=ve(a);if(h||m){const j=()=>{if(e.f){const b=h?re(p,a)?p[a]:f[a]:a.value;r?V(b)&&Qn(b,s):V(b)?b.includes(s)||b.push(s):h?(f[a]=[s],re(p,a)&&(p[a]=f[a])):(a.value=[s],e.k&&(f[e.k]=a.value))}else h?(f[a]=i,re(p,a)&&(p[a]=i)):m&&(a.value=i,e.k&&(f[e.k]=i))};i?(j.id=-1,Ie(j,n)):j()}}}const Ie=ql;function Ta(e){return ka(e)}function ka(e,t){const n=ro();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:l,createComment:a,setText:c,setElementText:f,parentNode:p,nextSibling:h,setScopeId:m=We,insertStaticContent:j}=e,b=(u,d,g,_=null,v=null,P=null,L=!1,k=null,E=!!d.dynamicChildren)=>{if(u===d)return;u&&!Pt(u,d)&&(_=Qt(u),Se(u,v,P,!0),u=null),d.patchFlag===-2&&(E=!1,d.dynamicChildren=null);const{type:w,ref:R,shapeFlag:B}=d;switch(w){case Vn:I(u,d,g,_);break;case Fe:M(u,d,g,_);break;case jo:u==null&&x(d,g,_,L);break;case ye:A(u,d,g,_,v,P,L,k,E);break;default:B&1?q(u,d,g,_,v,P,L,k,E):B&6?ne(u,d,g,_,v,P,L,k,E):(B&64||B&128)&&w.process(u,d,g,_,v,P,L,k,E,vt)}R!=null&&v&&Ao(R,u&&u.ref,P,d||u,!d)},I=(u,d,g,_)=>{if(u==null)o(d.el=l(d.children),g,_);else{const v=d.el=u.el;d.children!==u.children&&c(v,d.children)}},M=(u,d,g,_)=>{u==null?o(d.el=a(d.children||""),g,_):d.el=u.el},x=(u,d,g,_)=>{[u.el,u.anchor]=j(u.children,d,g,_,u.el,u.anchor)},$=({el:u,anchor:d},g,_)=>{let v;for(;u&&u!==d;)v=h(u),o(u,g,_),u=v;o(d,g,_)},S=({el:u,anchor:d})=>{let g;for(;u&&u!==d;)g=h(u),r(u),u=g;r(d)},q=(u,d,g,_,v,P,L,k,E)=>{L=L||d.type==="svg",u==null?ee(d,g,_,v,P,L,k,E):D(u,d,v,P,L,k,E)},ee=(u,d,g,_,v,P,L,k)=>{let E,w;const{type:R,props:B,shapeFlag:F,transition:Z,dirs:oe}=u;if(E=u.el=i(u.type,P,B&&B.is,B),F&8?f(E,u.children):F&16&&O(u.children,E,null,_,v,P&&R!=="foreignObject",L,k),oe&&Ct(u,null,_,"created"),C(E,u,u.scopeId,L,_),B){for(const le in B)le!=="value"&&!wn(le)&&s(E,le,null,B[le],P,u.children,_,v,Me);"value"in B&&s(E,"value",null,B.value),(w=B.onVnodeBeforeMount)&&Ge(w,_,u)}oe&&Ct(u,null,_,"beforeMount");const ce=(!v||v&&!v.pendingBranch)&&Z&&!Z.persisted;ce&&Z.beforeEnter(E),o(E,d,g),((w=B&&B.onVnodeMounted)||ce||oe)&&Ie(()=>{w&&Ge(w,_,u),ce&&Z.enter(E),oe&&Ct(u,null,_,"mounted")},v)},C=(u,d,g,_,v)=>{if(g&&m(u,g),_)for(let P=0;P<_.length;P++)m(u,_[P]);if(v){let P=v.subTree;if(d===P){const L=v.vnode;C(u,L,L.scopeId,L.slotScopeIds,v.parent)}}},O=(u,d,g,_,v,P,L,k,E=0)=>{for(let w=E;w<u.length;w++){const R=u[w]=k?dt(u[w]):Qe(u[w]);b(null,R,d,g,_,v,P,L,k)}},D=(u,d,g,_,v,P,L)=>{const k=d.el=u.el;let{patchFlag:E,dynamicChildren:w,dirs:R}=d;E|=u.patchFlag&16;const B=u.props||te,F=d.props||te;let Z;g&&kt(g,!1),(Z=F.onVnodeBeforeUpdate)&&Ge(Z,g,d,u),R&&Ct(d,u,g,"beforeUpdate"),g&&kt(g,!0);const oe=v&&d.type!=="foreignObject";if(w?U(u.dynamicChildren,w,k,g,_,oe,P):L||Q(u,d,k,null,g,_,oe,P,!1),E>0){if(E&16)ae(k,d,B,F,g,_,v);else if(E&2&&B.class!==F.class&&s(k,"class",null,F.class,v),E&4&&s(k,"style",B.style,F.style,v),E&8){const ce=d.dynamicProps;for(let le=0;le<ce.length;le++){const ge=ce[le],Ze=B[ge],Gt=F[ge];(Gt!==Ze||ge==="value")&&s(k,ge,Ze,Gt,v,u.children,g,_,Me)}}E&1&&u.children!==d.children&&f(k,d.children)}else!L&&w==null&&ae(k,d,B,F,g,_,v);((Z=F.onVnodeUpdated)||R)&&Ie(()=>{Z&&Ge(Z,g,d,u),R&&Ct(d,u,g,"updated")},_)},U=(u,d,g,_,v,P,L)=>{for(let k=0;k<d.length;k++){const E=u[k],w=d[k],R=E.el&&(E.type===ye||!Pt(E,w)||E.shapeFlag&70)?p(E.el):g;b(E,w,R,null,_,v,P,L,!0)}},ae=(u,d,g,_,v,P,L)=>{if(g!==_){if(g!==te)for(const k in g)!wn(k)&&!(k in _)&&s(u,k,g[k],null,L,d.children,v,P,Me);for(const k in _){if(wn(k))continue;const E=_[k],w=g[k];E!==w&&k!=="value"&&s(u,k,w,E,L,d.children,v,P,Me)}"value"in _&&s(u,"value",g.value,_.value)}},A=(u,d,g,_,v,P,L,k,E)=>{const w=d.el=u?u.el:l(""),R=d.anchor=u?u.anchor:l("");let{patchFlag:B,dynamicChildren:F,slotScopeIds:Z}=d;Z&&(k=k?k.concat(Z):Z),u==null?(o(w,g,_),o(R,g,_),O(d.children,g,R,v,P,L,k,E)):B>0&&B&64&&F&&u.dynamicChildren?(U(u.dynamicChildren,F,g,v,P,L,k),(d.key!=null||v&&d===v.subTree)&&ms(u,d,!0)):Q(u,d,g,R,v,P,L,k,E)},ne=(u,d,g,_,v,P,L,k,E)=>{d.slotScopeIds=k,u==null?d.shapeFlag&512?v.ctx.activate(d,g,_,L,E):T(d,g,_,v,P,L,E):Y(u,d,E)},T=(u,d,g,_,v,P,L)=>{const k=u.component=La(u,_,v);if(Bn(u)&&(k.ctx.renderer=vt),Aa(k),k.asyncDep){if(v&&v.registerDep(k,y),!u.el){const E=k.subTree=W(Fe);M(null,E,d,g)}return}y(k,u,d,g,v,P,L)},Y=(u,d,g)=>{const _=d.component=u.component;if(Wl(u,d,g))if(_.asyncDep&&!_.asyncResolved){N(_,d,g);return}else _.next=d,Nl(_.update),_.update();else d.el=u.el,_.vnode=d},y=(u,d,g,_,v,P,L)=>{const k=()=>{if(u.isMounted){let{next:R,bu:B,u:F,parent:Z,vnode:oe}=u,ce=R,le;kt(u,!1),R?(R.el=oe.el,N(u,R,L)):R=oe,B&&Tn(B),(le=R.props&&R.props.onVnodeBeforeUpdate)&&Ge(le,Z,R,oe),kt(u,!0);const ge=wo(u),Ze=u.subTree;u.subTree=ge,b(Ze,ge,p(Ze.el),Qt(Ze),u,v,P),R.el=ge.el,ce===null&&Kl(u,ge.el),F&&Ie(F,v),(le=R.props&&R.props.onVnodeUpdated)&&Ie(()=>Ge(le,Z,R,oe),v)}else{let R;const{el:B,props:F}=d,{bm:Z,m:oe,parent:ce}=u,le=ln(d);if(kt(u,!1),Z&&Tn(Z),!le&&(R=F&&F.onVnodeBeforeMount)&&Ge(R,ce,d),kt(u,!0),B&&bn){const ge=()=>{u.subTree=wo(u),bn(B,u.subTree,u,v,null)};le?d.type.__asyncLoader().then(()=>!u.isUnmounted&&ge()):ge()}else{const ge=u.subTree=wo(u);b(null,ge,g,_,u,v,P),d.el=ge.el}if(oe&&Ie(oe,v),!le&&(R=F&&F.onVnodeMounted)){const ge=d;Ie(()=>Ge(R,ce,ge),v)}(d.shapeFlag&256||ce&&ln(ce.vnode)&&ce.vnode.shapeFlag&256)&&u.a&&Ie(u.a,v),u.isMounted=!0,d=g=_=null}},E=u.effect=new co(k,()=>yo(w),u.scope),w=u.update=()=>E.run();w.id=u.uid,kt(u,!0),w()},N=(u,d,g)=>{d.component=u;const _=u.vnode.props;u.vnode=d,u.next=null,ya(u,d.props,_,g),Ca(u,d.children,g),jt(),Nr(),zt()},Q=(u,d,g,_,v,P,L,k,E=!1)=>{const w=u&&u.children,R=u?u.shapeFlag:0,B=d.children,{patchFlag:F,shapeFlag:Z}=d;if(F>0){if(F&128){_t(w,B,g,_,v,P,L,k,E);return}else if(F&256){Oe(w,B,g,_,v,P,L,k,E);return}}Z&8?(R&16&&Me(w,v,P),B!==w&&f(g,B)):R&16?Z&16?_t(w,B,g,_,v,P,L,k,E):Me(w,v,P,!0):(R&8&&f(g,""),Z&16&&O(B,g,_,v,P,L,k,E))},Oe=(u,d,g,_,v,P,L,k,E)=>{u=u||Be,d=d||Be;const w=u.length,R=d.length,B=Math.min(w,R);let F;for(F=0;F<B;F++){const Z=d[F]=E?dt(d[F]):Qe(d[F]);b(u[F],Z,g,null,v,P,L,k,E)}w>R?Me(u,v,P,!0,!1,B):O(d,g,_,v,P,L,k,E,B)},_t=(u,d,g,_,v,P,L,k,E)=>{let w=0;const R=d.length;let B=u.length-1,F=R-1;for(;w<=B&&w<=F;){const Z=u[w],oe=d[w]=E?dt(d[w]):Qe(d[w]);if(Pt(Z,oe))b(Z,oe,g,null,v,P,L,k,E);else break;w++}for(;w<=B&&w<=F;){const Z=u[B],oe=d[F]=E?dt(d[F]):Qe(d[F]);if(Pt(Z,oe))b(Z,oe,g,null,v,P,L,k,E);else break;B--,F--}if(w>B){if(w<=F){const Z=F+1,oe=Z<R?d[Z].el:_;for(;w<=F;)b(null,d[w]=E?dt(d[w]):Qe(d[w]),g,oe,v,P,L,k,E),w++}}else if(w>F)for(;w<=B;)Se(u[w],v,P,!0),w++;else{const Z=w,oe=w,ce=new Map;for(w=oe;w<=F;w++){const ze=d[w]=E?dt(d[w]):Qe(d[w]);ze.key!=null&&ce.set(ze.key,w)}let le,ge=0;const Ze=F-oe+1;let Gt=!1,Fi=0;const _n=new Array(Ze);for(w=0;w<Ze;w++)_n[w]=0;for(w=Z;w<=B;w++){const ze=u[w];if(ge>=Ze){Se(ze,v,P,!0);continue}let et;if(ze.key!=null)et=ce.get(ze.key);else for(le=oe;le<=F;le++)if(_n[le-oe]===0&&Pt(ze,d[le])){et=le;break}et===void 0?Se(ze,v,P,!0):(_n[et-oe]=w+1,et>=Fi?Fi=et:Gt=!0,b(ze,d[et],g,null,v,P,L,k,E),ge++)}const Vi=Gt?Pa(_n):Be;for(le=Vi.length-1,w=Ze-1;w>=0;w--){const ze=oe+w,et=d[ze],Hi=ze+1<R?d[ze+1].el:_;_n[w]===0?b(null,et,g,Hi,v,P,L,k,E):Gt&&(le<0||w!==Vi[le]?Ye(et,g,Hi,2):le--)}}},Ye=(u,d,g,_,v=null)=>{const{el:P,type:L,transition:k,children:E,shapeFlag:w}=u;if(w&6){Ye(u.component.subTree,d,g,_);return}if(w&128){u.suspense.move(d,g,_);return}if(w&64){L.move(u,d,g,vt);return}if(L===ye){o(P,d,g);for(let B=0;B<E.length;B++)Ye(E[B],d,g,_);o(u.anchor,d,g);return}if(L===jo){$(u,d,g);return}if(_!==2&&w&1&&k)if(_===0)k.beforeEnter(P),o(P,d,g),Ie(()=>k.enter(P),v);else{const{leave:B,delayLeave:F,afterLeave:Z}=k,oe=()=>o(P,d,g),ce=()=>{B(P,()=>{oe(),Z&&Z()})};F?F(P,oe,ce):ce()}else o(P,d,g)},Se=(u,d,g,_=!1,v=!1)=>{const{type:P,props:L,ref:k,children:E,dynamicChildren:w,shapeFlag:R,patchFlag:B,dirs:F}=u;if(k!=null&&Ao(k,null,g,u,!0),R&256){d.ctx.deactivate(u);return}const Z=R&1&&F,oe=!ln(u);let ce;if(oe&&(ce=L&&L.onVnodeBeforeUnmount)&&Ge(ce,d,u),R&6)Jt(u.component,g,_);else{if(R&128){u.suspense.unmount(g,_);return}Z&&Ct(u,null,d,"beforeUnmount"),R&64?u.type.remove(u,d,g,v,vt,_):w&&(P!==ye||B>0&&B&64)?Me(w,d,g,!1,!0):(P===ye&&B&384||!v&&R&16)&&Me(E,d,g),_&&Zt(u)}(oe&&(ce=L&&L.onVnodeUnmounted)||Z)&&Ie(()=>{ce&&Ge(ce,d,u),Z&&Ct(u,null,d,"unmounted")},g)},Zt=u=>{const{type:d,el:g,anchor:_,transition:v}=u;if(d===ye){Xt(g,_);return}if(d===jo){S(u);return}const P=()=>{r(g),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(u.shapeFlag&1&&v&&!v.persisted){const{leave:L,delayLeave:k}=v,E=()=>L(g,P);k?k(u.el,P,E):E()}else P()},Xt=(u,d)=>{let g;for(;u!==d;)g=h(u),r(u),u=g;r(d)},Jt=(u,d,g)=>{const{bum:_,scope:v,update:P,subTree:L,um:k}=u;_&&Tn(_),v.stop(),P&&(P.active=!1,Se(L,u,d,g)),k&&Ie(k,d),Ie(()=>{u.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},Me=(u,d,g,_=!1,v=!1,P=0)=>{for(let L=P;L<u.length;L++)Se(u[L],d,g,_,v)},Qt=u=>u.shapeFlag&6?Qt(u.component.subTree):u.shapeFlag&128?u.suspense.next():h(u.anchor||u.el),Xn=(u,d,g)=>{u==null?d._vnode&&Se(d._vnode,null,null,!0):b(d._vnode||null,u,d,null,null,null,g),Nr(),Dr(),d._vnode=u},vt={p:b,um:Se,m:Ye,r:Zt,mt:T,mc:O,pc:Q,pbc:U,n:Qt,o:e};let mn,bn;return t&&([mn,bn]=t(vt)),{render:Xn,hydrate:mn,createApp:_a(Xn,mn)}}function kt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ms(e,t,n=!1){const o=e.children,r=t.children;if(V(o)&&V(r))for(let s=0;s<o.length;s++){const i=o[s];let l=r[s];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[s]=dt(r[s]),l.el=i.el),n||ms(i,l)),l.type===Vn&&(l.el=i.el)}}function Pa(e){const t=e.slice(),n=[0];let o,r,s,i,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(r=n[n.length-1],e[r]<c){t[o]=r,n.push(o);continue}for(s=0,i=n.length-1;s<i;)l=s+i>>1,e[n[l]]<c?s=l+1:i=l;c<e[n[s]]&&(s>0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}const Ea=e=>e.__isTeleport,ye=Symbol.for("v-fgt"),Vn=Symbol.for("v-txt"),Fe=Symbol.for("v-cmt"),jo=Symbol.for("v-stc"),un=[];let qe=null;function z(e=!1){un.push(qe=e?null:[])}function Oa(){un.pop(),qe=un[un.length-1]||null}let fn=1;function bs(e){fn+=e}function _s(e){return e.dynamicChildren=fn>0?qe||Be:null,Oa(),fn>0&&qe&&qe.push(e),e}function H(e,t,n,o,r,s){return _s(K(e,t,n,o,r,s,!0))}function Pe(e,t,n,o,r){return _s(W(e,t,n,o,r,!0))}function Hn(e){return e?e.__v_isVNode===!0:!1}function Pt(e,t){return e.type===t.type&&e.key===t.key}const Wn="__vInternal",vs=({key:e})=>e??null,Kn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?pe(e)||ve(e)||J(e)?{i:xe,r:e,k:t,f:!!n}:e:null);function K(e,t=null,n=null,o=0,r=null,s=e===ye?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&vs(t),ref:t&&Kn(t),scopeId:Vr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:xe};return l?(zo(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=pe(n)?8:16),fn>0&&!i&&qe&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&qe.push(a),a}const W=$a;function $a(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===Qr)&&(e=Fe),Hn(e)){const l=ft(e,t,!0);return n&&zo(l,n),fn>0&&!s&&qe&&(l.shapeFlag&6?qe[qe.indexOf(e)]=l:qe.push(l)),l.patchFlag|=-2,l}if(Da(e)&&(e=e.__vccOpts),t){t=Ia(t);let{class:l,style:a}=t;l&&!pe(l)&&(t.class=me(l)),ue(a)&&($r(a)&&!V(a)&&(a=de({},a)),t.style=Ke(a))}const i=pe(e)?1:Ul(e)?128:Ea(e)?64:ue(e)?4:J(e)?2:0;return K(e,t,n,o,r,i,s,!0)}function Ia(e){return e?$r(e)||Wn in e?de({},e):e:null}function ft(e,t,n=!1){const{props:o,ref:r,patchFlag:s,children:i}=e,l=t?Bo(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&vs(l),ref:t&&t.ref?n&&r?V(r)?r.concat(Kn(t)):[r,Kn(t)]:Kn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ye?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ft(e.ssContent),ssFallback:e.ssFallback&&ft(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ft(e=" ",t=0){return W(Vn,null,e,t)}function Ve(e="",t=!1){return t?(z(),Pe(Fe,null,e)):W(Fe,null,e)}function Qe(e){return e==null||typeof e=="boolean"?W(Fe):V(e)?W(ye,null,e.slice()):typeof e=="object"?dt(e):W(Vn,null,String(e))}function dt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ft(e)}function zo(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),zo(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Wn in t)?t._ctx=xe:r===3&&xe&&(xe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else J(t)?(t={default:t,_ctx:xe},n=32):(t=String(t),o&64?(n=16,t=[Ft(t)]):n=8);e.children=t,e.shapeFlag|=n}function Bo(...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=Ke([t.style,o.style]);else if(vn(r)){const s=t[r],i=o[r];i&&s!==i&&!(V(s)&&s.includes(i))&&(t[r]=s?[].concat(s,i):i)}else r!==""&&(t[r]=o[r])}return t}function Ge(e,t,n,o=null){De(e,t,7,[n,o])}const Sa=is();let Ma=0;function La(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Sa,s={uid:Ma++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new nl(!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:as(o,r),emitsOptions:Fr(o,r),emit:null,emitted:null,propsDefaults:te,inheritAttrs:o.inheritAttrs,ctx:te,data:te,props:te,attrs:te,slots:te,refs:te,setupState:te,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=Fl.bind(null,s),e.ce&&e.ce(s),s}let we=null;const ys=()=>we||xe;let No,Vt,ws="__VUE_INSTANCE_SETTERS__";(Vt=ro()[ws])||(Vt=ro()[ws]=[]),Vt.push(e=>we=e),No=e=>{Vt.length>1?Vt.forEach(t=>t(e)):Vt[0](e)};const Ht=e=>{No(e),e.scope.on()},Et=()=>{we&&we.scope.off(),No(null)};function xs(e){return e.vnode.shapeFlag&4}let dn=!1;function Aa(e,t=!1){dn=t;const{props:n,children:o}=e.vnode,r=xs(e);va(e,n,r,t),xa(e,o);const s=r?ja(e,t):void 0;return dn=!1,s}function ja(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Ir(new Proxy(e.ctx,fa));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?Ba(e):null;Ht(e),jt();const s=ct(o,e,0,[e.props,r]);if(zt(),Et(),sr(s)){if(s.then(Et,Et),t)return s.then(i=>{Cs(e,i,t)}).catch(i=>{Ln(i,e,0)});e.asyncDep=s}else Cs(e,s,t)}else ks(e,t)}function Cs(e,t,n){J(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ue(t)&&(e.setupState=jr(t)),ks(e,n)}let Ts;function ks(e,t,n){const o=e.type;if(!e.render){if(!t&&Ts&&!o.render){const r=o.template||$o(e).template;if(r){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=de(de({isCustomElement:s,delimiters:l},i),a);o.render=Ts(r,c)}}e.render=o.render||We}Ht(e),jt(),da(e),zt(),Et()}function za(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return $e(e,"get","$attrs"),t[n]}}))}function Ba(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return za(e)},slots:e.slots,emit:e.emit,expose:t}}function Un(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(jr(Ir(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in an)return an[n](e)},has(t,n){return n in t||n in an}}))}function Na(e,t=!0){return J(e)?e.displayName||e.name:e.name||t&&e.__name}function Da(e){return J(e)&&"__vccOpts"in e}const fe=(e,t)=>jl(e,t,dn);function Ps(e,t,n){const o=arguments.length;return o===2?ue(t)&&!V(t)?Hn(t)?W(e,null,[t]):W(e,t):W(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Hn(n)&&(n=[n]),W(e,t,n))}const Ra=Symbol.for("v-scx"),Fa=()=>Rt(Ra),Va="3.3.2",Ha="http://www.w3.org/2000/svg",Ot=typeof document<"u"?document:null,Es=Ot&&Ot.createElement("template"),Wa={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?Ot.createElementNS(Ha,e):Ot.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Ot.createTextNode(e),createComment:e=>Ot.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ot.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,s){const i=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{Es.innerHTML=o?`<svg>${e}</svg>`:e;const l=Es.content;if(o){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Ka(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Ua(e,t,n){const o=e.style,r=pe(n);if(n&&!r){if(t&&!pe(t))for(const s in t)n[s]==null&&Do(o,s,"");for(const s in n)Do(o,s,n[s])}else{const s=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=s)}}const Os=/\s*!important$/;function Do(e,t,n){if(V(n))n.forEach(o=>Do(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=qa(e,t);Os.test(n)?e.setProperty(Ne(o),n.replace(Os,""),"important"):e[o]=n}}const $s=["Webkit","Moz","ms"],Ro={};function qa(e,t){const n=Ro[t];if(n)return n;let o=Ae(t);if(o!=="filter"&&o in e)return Ro[t]=o;o=Cn(o);for(let r=0;r<$s.length;r++){const s=$s[r]+o;if(s in e)return Ro[t]=s}return t}const Is="http://www.w3.org/1999/xlink";function Ya(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Is,t.slice(6,t.length)):e.setAttributeNS(Is,t,n);else{const s=tl(t);n==null||s&&!cr(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function Za(e,t,n,o,r,s,i){if(t==="innerHTML"||t==="textContent"){o&&i(o,r,s),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const c=l==="OPTION"?e.getAttribute("value"):e.value,f=n??"";c!==f&&(e.value=f),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=cr(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function Wt(e,t,n,o){e.addEventListener(t,n,o)}function Xa(e,t,n,o){e.removeEventListener(t,n,o)}function Ja(e,t,n,o,r=null){const s=e._vei||(e._vei={}),i=s[t];if(o&&i)i.value=o;else{const[l,a]=Qa(t);if(o){const c=s[t]=tc(o,r);Wt(e,l,c,a)}else i&&(Xa(e,l,i,a),s[t]=void 0)}}const Ss=/(?:Once|Passive|Capture)$/;function Qa(e){let t;if(Ss.test(e)){t={};let o;for(;o=e.match(Ss);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ne(e.slice(2)),t]}let Fo=0;const Ga=Promise.resolve(),ec=()=>Fo||(Ga.then(()=>Fo=0),Fo=Date.now());function tc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;De(nc(o,n.value),t,5,[o])};return n.value=e,n.attached=ec(),n}function nc(e,t){if(V(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 Ms=/^on[a-z]/,oc=(e,t,n,o,r=!1,s,i,l,a)=>{t==="class"?Ka(e,o,r):t==="style"?Ua(e,n,o):vn(t)?Jn(t)||Ja(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):rc(e,t,o,r))?Za(e,t,o,s,i,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Ya(e,t,o,r))};function rc(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Ms.test(t)&&J(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ms.test(t)&&pe(n)?!1:t in e}function sc(e,t){const n=Ce(e);class o extends Vo{constructor(s){super(n,s,t)}}return o.def=n,o}const ic=typeof HTMLElement<"u"?HTMLElement:class{};class Vo extends ic{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=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,ot(()=>{this._connected||(Hs(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);new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}).observe(this,{attributes:!0});const t=(o,r=!1)=>{const{props:s,styles:i}=o;let l;if(s&&!V(s))for(const a in s){const c=s[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=oo(this._props[a])),(l||(l=Object.create(null)))[Ae(a)]=!0)}this._numberProps=l,r&&this._resolveProps(o),this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=V(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(Ae))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(s){this._setProp(r,s)}})}_setAttr(t){let n=this.getAttribute(t);const o=Ae(t);this._numberProps&&this._numberProps[o]&&(n=oo(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(Ne(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ne(t),n+""):n||this.removeAttribute(Ne(t))))}_update(){Hs(this._createVNode(),this.shadowRoot)}_createVNode(){const t=W(this._def,de({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(s,i)=>{this.dispatchEvent(new CustomEvent(s,{detail:i}))};n.emit=(s,...i)=>{o(s,i),Ne(s)!==s&&o(Ne(s),i)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Vo){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 pt="transition",pn="animation",Kt=(e,{slots:t})=>Ps(Jl,lc(e),t);Kt.displayName="Transition";const Ls={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};Kt.props=de({},Kr,Ls);const $t=(e,t=[])=>{V(e)?e.forEach(n=>n(...t)):e&&e(...t)},As=e=>e?V(e)?e.some(t=>t.length>1):e.length>1:!1;function lc(e){const t={};for(const A in e)A in Ls||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=s,appearActiveClass:c=i,appearToClass:f=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,j=ac(r),b=j&&j[0],I=j&&j[1],{onBeforeEnter:M,onEnter:x,onEnterCancelled:$,onLeave:S,onLeaveCancelled:q,onBeforeAppear:ee=M,onAppear:C=x,onAppearCancelled:O=$}=t,D=(A,ne,T)=>{It(A,ne?f:l),It(A,ne?c:i),T&&T()},U=(A,ne)=>{A._isLeaving=!1,It(A,p),It(A,m),It(A,h),ne&&ne()},ae=A=>(ne,T)=>{const Y=A?C:x,y=()=>D(ne,A,T);$t(Y,[ne,y]),js(()=>{It(ne,A?a:s),ht(ne,A?f:l),As(Y)||zs(ne,o,b,y)})};return de(t,{onBeforeEnter(A){$t(M,[A]),ht(A,s),ht(A,i)},onBeforeAppear(A){$t(ee,[A]),ht(A,a),ht(A,c)},onEnter:ae(!1),onAppear:ae(!0),onLeave(A,ne){A._isLeaving=!0;const T=()=>U(A,ne);ht(A,p),fc(),ht(A,h),js(()=>{A._isLeaving&&(It(A,p),ht(A,m),As(S)||zs(A,o,I,T))}),$t(S,[A,T])},onEnterCancelled(A){D(A,!1),$t($,[A])},onAppearCancelled(A){D(A,!0),$t(O,[A])},onLeaveCancelled(A){U(A),$t(q,[A])}})}function ac(e){if(e==null)return null;if(ue(e))return[Ho(e.enter),Ho(e.leave)];{const t=Ho(e);return[t,t]}}function Ho(e){return oo(e)}function ht(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function It(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function js(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let cc=0;function zs(e,t,n,o){const r=e._endId=++cc,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:l,propCount:a}=uc(e,t);if(!i)return o();const c=i+"end";let f=0;const p=()=>{e.removeEventListener(c,h),s()},h=m=>{m.target===e&&++f>=a&&p()};setTimeout(()=>{f<a&&p()},l+1),e.addEventListener(c,h)}function uc(e,t){const n=window.getComputedStyle(e),o=j=>(n[j]||"").split(", "),r=o(`${pt}Delay`),s=o(`${pt}Duration`),i=Bs(r,s),l=o(`${pn}Delay`),a=o(`${pn}Duration`),c=Bs(l,a);let f=null,p=0,h=0;t===pt?i>0&&(f=pt,p=i,h=s.length):t===pn?c>0&&(f=pn,p=c,h=a.length):(p=Math.max(i,c),f=p>0?i>c?pt:pn:null,h=f?f===pt?s.length:a.length:0);const m=f===pt&&/\b(transform|all)(,|$)/.test(o(`${pt}Property`).toString());return{type:f,timeout:p,propCount:h,hasTransform:m}}function Bs(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Ns(n)+Ns(e[o])))}function Ns(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function fc(){return document.body.offsetHeight}const Ds=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>Tn(t,n):t};function dc(e){e.target.composing=!0}function Rs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const pc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=Ds(r);const s=o||r.props&&r.props.type==="number";Wt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),s&&(l=no(l)),e._assign(l)}),n&&Wt(e,"change",()=>{e.value=e.value.trim()}),t||(Wt(e,"compositionstart",dc),Wt(e,"compositionend",Rs),Wt(e,"change",Rs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},s){if(e._assign=Ds(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&no(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},hc=["ctrl","shift","alt","meta"],gc={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))},St=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const s=gc[t[r]];if(s&&s(n,t))return}return e(n,...o)},mc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Fs=(e,t)=>n=>{if(!("key"in n))return;const o=Ne(n.key);if(t.some(r=>r===o||mc[r]===o))return e(n)},bc={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):hn(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),hn(e,!0),o.enter(e)):o.leave(e,()=>{hn(e,!1)}):hn(e,t))},beforeUnmount(e,{value:t}){hn(e,t)}};function hn(e,t){e.style.display=t?e._vod:"none"}const _c=de({patchProp:oc},Wa);let Vs;function vc(){return Vs||(Vs=Ta(_c))}const Hs=(...e)=>{vc().render(...e)},yc={class:"flex gap-3 items-center children-pointer-events-auto relative z-30"},wc={class:"ml-auto inline-block"},xc={class:"absolute right-0 bottom-0 inline-flex flex-col items-center gap-4 children-pointer-events-auto pb-4 sm:pb-0"},Cc={class:"inline-block z-20 relative"},Tc={class:"absolute left-0 bottom-0 inline-block pointer-events-auto ml-1"},Ws=Ce({__name:"ReaderLayout",props:{idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{},spaceBottom:{},touchDevice:{type:Boolean}},setup(e){return(t,n)=>(z(),H("div",{class:me(["fixed inset-0 bg-black visible z-[9999999999] text-stone-100 font-sans text-base",{"cursor-none":t.idle}])},[ke(t.$slots,"default"),K("div",{class:me(["fixed pointer-events-none cursor-auto duration-150 ease-linear inset-2 sm:inset-3 bottom-5",{"opacity-100 z-10":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}]),style:Ke({paddingTop:`${t.spaceTop||0}px`,paddingBottom:`${t.spaceBottom||0}px`})},[K("div",yc,[ke(t.$slots,"back"),t.touchDevice?Ve("",!0):ke(t.$slots,"exit",{key:0}),ke(t.$slots,"chapter-nav"),K("div",wc,[ke(t.$slots,"page-nav")])]),K("div",xc,[ke(t.$slots,"entry"),K("div",Cc,[ke(t.$slots,"settings")]),ke(t.$slots,"play")]),K("div",{class:me(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[ke(t.$slots,"progress")],2),K("div",Tc,[ke(t.$slots,"reset-zoom")])],6)],2))}}),kc=Object.freeze(Object.defineProperty({__proto__:null,default:Ws},Symbol.toStringTag,{value:"Module"})),be=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Pc={},Ec={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Oc=[K("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[K("circle",{cx:"14",cy:"14",r:"12"}),K("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function $c(e,t){return z(),H("svg",Ec,Oc)}const Ks=be(Pc,[["render",$c]]),Ic=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),Sc={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"},Mc={class:"block w-4 h-4"},Lc={class:"w-12"},Us=Ce({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=Ks;return t.zoom!==1?(z(),H("button",Sc,[K("div",Mc,[W(o)]),K("div",Lc,st(Math.ceil(t.zoom*100))+"%",1)])):Ve("",!0)}}}),Ac=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"})),jc={},zc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Bc=[K("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 Nc(e,t){return z(),H("svg",zc,Bc)}const qs=be(jc,[["render",Nc]]),Dc=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),Rc={},Fc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Vc=[K("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 Hc(e,t){return z(),H("svg",Fc,Vc)}const Ys=be(Rc,[["render",Hc]]),Wc=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),Kc={},Uc={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},qc=[K("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 Yc(e,t){return z(),H("svg",Uc,qc)}const Zs=be(Kc,[["render",Yc]]),Zc=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),Xc={},Jc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Qc=[K("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 Gc(e,t){return z(),H("svg",Jc,Qc)}const Wo=be(Xc,[["render",Gc]]),eu=Object.freeze(Object.defineProperty({__proto__:null,default:Wo},Symbol.toStringTag,{value:"Module"})),tu=(e,t,n)=>{const o=document.createElement("span");let r=1,s=.65;const i=setInterval(a,20);l();function l(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${n.currentTarget.clientWidth/2}px`,o.style.top=`${n.currentTarget.clientHeight/2}px`,n.currentTarget.appendChild(o)}function a(){const c=+t.value||50;r<=c?(r++,s-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${s}`):(o.remove(),clearInterval(i))}},Ut={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.addEventListener("click",n=>tu(e,t,n))}},nu={class:"group-hover:bg-stone-100 group-hover:bg-opacity-10 duration-200 rounđe-full p-2 w-full h-full inline-flex justify-center items-center"},qn=Ce({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){return(n,o)=>ut((z(),Pe(aa(n.href?"a":"button"),Bo(n.href?{href:n.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full group duration-200",{"pointer-events-none text-stone-300 hover:text-stone-300":n.disabled,"text-stone-100 hover:text-stone-100":!n.disabled,"bg-black bg-opacity-50":!n.transparent}],onClick:o[0]||(o[0]=St(()=>t("click"),["stop"]))}),{default:ie(()=>[K("div",nu,[ke(n.$slots,"default")])]),_:3},16,["class"])),[[X(Ut),15]])}}),ou=Object.freeze(Object.defineProperty({__proto__:null,default:qn},Symbol.toStringTag,{value:"Module"}));function ru(){const e=G(!1);let t=0;return So("setBusyState",n=>{t+=n?1:-1;const o=t>0;e.value!=o&&(e.value=o)}),e}function Xs(){const e=Rt("setBusyState");let t=!1;return Tt(()=>{t&&(e==null||e(!1))}),n=>{t!==n&&(t=n,e==null||e(n))}}class su{constructor(){Wi(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 iu(){const e=new su;return Tt(()=>e.dispose()),So("keyController",e),e}function Ko(e){const t=Rt("keyController");Je(()=>t.addListener(e)),Tt(()=>t.removeListener(e))}const lu={class:"relative flex w-full flex-shrink-0 justify-center items-center h-16"},au={class:"inline-flex items-center h-full absolute left-3 top-0"},cu=K("span",{class:"text-xl font-medium"},"Customize",-1),uu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-16 flex-grow scrollbar-sm"},Js=Ce({__name:"BottomSheet",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;Ko({onKeyDown:r});const o=Xs();he(()=>n.modelValue,s=>{o(s)},{immediate:!0});function r(s){n.modelValue&&s.key==="Escape"&&(t("update:modelValue",!1),s.preventDefault())}return(s,i)=>{const l=Wo,a=qn;return z(),H("div",{class:me(["fixed inset-0 flex flex-col items-center justify-end select-none",{"!pointer-events-none":!n.modelValue}]),onClick:i[2]||(i[2]=()=>t("update:modelValue",!1))},[W(Kt,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:ie(()=>[n.modelValue?(z(),H("div",{key:0,class:"inline-flex flex-col h-[22rem] w-full sm:w-[32rem] max-h-[80vh] bg-stone-800 bg-opacity-75 backdrop-blur-md rounded-t-xl max-w-full overflow-hidden duration-200",onClick:i[1]||(i[1]=St(()=>{},["stop"]))},[K("div",lu,[K("div",au,[W(a,{transparent:"",onClick:i[0]||(i[0]=()=>t("update:modelValue",!1))},{default:ie(()=>[W(l)]),_:1})]),cu]),K("div",uu,[ke(s.$slots,"default")])])):Ve("",!0)]),_:3})],2)}}}),fu=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),du=["min","max","step"],pu={class:"flex-shrink-0"},Qs=be(Ce({__name:"InputPercentage",props:{modelValue:{},min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=fe({get(){return n.modelValue},set(r){t("update:modelValue",+r)}});return(r,s)=>(z(),H("div",{class:me(["flex items-center gap-3 pl-1",{"pointer-events-none opacity-50":r.disabled}])},[ut(K("input",{"onUpdate:modelValue":s[0]||(s[0]=i=>o.value=i),type:"range",min:r.min,max:r.max,step:r.step??1,class:"flex-grow"},null,8,du),[[pc,o.value]]),K("p",pu,[ke(r.$slots,"suffix")])],2))}}),[["styles",[`input[type=range]{--tw-bg-opacity:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:rgb(120 113 108/var(--tw-bg-opacity));border-style:none;cursor:pointer;height:.125rem;outline:2px solid transparent;outline-offset:2px;transition-duration:.2s}@media (hover:hover) and (pointer:fine){input[type=range]:hover{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}}input[type=range]:focus{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}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:9999px;border-style:solid;border-width:2px;cursor:pointer;height:1.25rem;transition-duration:.2s;width:1.25rem}input[type=range]::-webkit-slider-thumb:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}input[type=range]:focus::-webkit-slider-thumb{--tw-border-opacity:.8;border-color:rgb(184 92 56/var(--tw-border-opacity));border-width:3px}
3
+ `]]]),hu=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),gu={class:"flex items-center mb-8 last:mb-0"},mu={class:"flex-grow overflow-hidden"},Gs=Ce({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(z(),H("div",gu,[K("div",{class:me(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},st(t.label),3),K("div",mu,[ke(t.$slots,"default")])]))}}),bu=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),_u=["onClick","onKeyup"],ei=Ce({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=G(null),r=G({width:"",left:""});Je(()=>{let i=!1;he(()=>n.modelValue,l=>{var c;const a=(c=o.value)==null?void 0:c.children[l+1];a&&(r.value={width:a.offsetWidth+"px",left:a.offsetLeft+"px"},a.scrollIntoView({behavior:i?"smooth":"auto",block:"center",inline:"center"}),i=!0)},{immediate:!0})});function s(i){t("update:modelValue",i)}return(i,l)=>(z(),H("div",{ref_key:"root",ref:o,class:"relative h-7 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[K("div",{class:"bg-stone-400 h-5 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Ke(r.value)},null,4),(z(!0),H(ye,null,Dn(n.items,(a,c)=>ut((z(),H("div",{key:c,tabindex:"0",class:me(["inline-flex justify-center items-center h-5 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.modelValue,"text-stone-400":c!=n.modelValue}]),onClick:()=>s(c),onKeyup:[Fs(()=>s(c),["enter"]),Fs(()=>s(c),["space"])]},[Ft(st(a),1)],42,_u)),[[X(Ut),30]])),128))],512))}}),vu=Object.freeze(Object.defineProperty({__proto__:null,default:ei},Symbol.toStringTag,{value:"Module"})),yu={},wu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},xu=[K("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),K("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Cu(e,t){return z(),H("svg",wu,xu)}const ti=be(yu,[["render",Cu]]),Tu=Object.freeze(Object.defineProperty({__proto__:null,default:ti},Symbol.toStringTag,{value:"Module"})),ni=Ce({__name:"ButtonReaderSettings",props:{modelValue:{},zoom:{},webtoon:{type:Boolean},playing:{type:Boolean},disabled:{type:Boolean}},emits:["update:modelValue","update:zoom"],setup(e,{emit:t}){const n=e,o=G(!1);function r(s){t("update:modelValue",{...n.modelValue,...s})}return(s,i)=>{const l=ti,a=qn,c=ei,f=Gs,p=Qs,h=Js;return z(),H(ye,null,[W(a,{disabled:s.disabled,onClick:i[0]||(i[0]=()=>o.value=!0)},{default:ie(()=>[W(l)]),_:1},8,["disabled"]),W(h,{modelValue:o.value,"onUpdate:modelValue":i[5]||(i[5]=m=>o.value=m)},{default:ie(()=>[W(f,{label:"Style"},{default:ie(()=>[W(c,{"model-value":s.modelValue.style,items:s.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":i[1]||(i[1]=m=>r({style:m}))},null,8,["model-value","items"])]),_:1}),W(f,{label:"Direction"},{default:ie(()=>[W(c,{"model-value":s.modelValue.direction,items:s.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":i[2]||(i[2]=m=>r({direction:m}))},null,8,["model-value","items"])]),_:1}),W(f,{label:"Speed"},{default:ie(()=>[W(p,{"model-value":s.modelValue.speed,min:.1,max:3,step:.1,suffix:"x","onUpdate:modelValue":i[3]||(i[3]=m=>r({speed:m}))},{suffix:ie(()=>[Ft(st(s.modelValue.speed.toFixed(1))+"x ",1)]),_:1},8,["model-value"])]),_:1}),W(f,{label:"Zoom",disabled:s.playing},{default:ie(()=>[W(p,{"model-value":Math.ceil(s.zoom*100),min:25,max:500,disabled:s.playing,"onUpdate:modelValue":i[4]||(i[4]=m=>t("update:zoom",Math.ceil(m)/100))},{suffix:ie(()=>[Ft(st(Math.ceil(s.zoom*100))+"% ",1)]),_:1},8,["model-value","disabled"])]),_:1},8,["disabled"])]),_:1},8,["modelValue"])],64)}}}),ku=Object.freeze(Object.defineProperty({__proto__:null,default:ni},Symbol.toStringTag,{value:"Module"})),Pu={},Eu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ou=[K("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function $u(e,t){return z(),H("svg",Eu,Ou)}const oi=be(Pu,[["render",$u]]),Iu=Object.freeze(Object.defineProperty({__proto__:null,default:oi},Symbol.toStringTag,{value:"Module"})),Su=["aria-hidden"],Mu=["onClick"],Lu=["onClick"],Au={class:"inline-flex items-center justify-center w-full h-full px-4 rounded-full group-hover:bg-stone-200 group-hover:bg-opacity-20 duration-200"},ju={class:"whitespace-nowrap"},Uo=Ce({__name:"ButtonDropdown",props:{modelValue:{},label:{},items:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=G(null),r=G(!1),s=G(null),i=G(!1),l=G(!1),a=G(!1);Ko({onKeyDown:m});const c=Xs();function f(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(p(),ot(()=>setTimeout(()=>{var M,x;(x=(M=s.value)==null?void 0:M.children[n.modelValue])==null||x.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),b(o.value)):setTimeout(I,250)}function p(){const M=o.value;if(M){const x=M.getBoundingClientRect(),$=x.x+x.width/2;i.value=x.y>window.innerHeight/2,l.value=$<window.innerWidth/3,a.value=$>window.innerWidth/3*2}}function h(M){M!=n.modelValue&&t("update:modelValue",M),f()}function m(M){r.value&&M.key==="Escape"&&(f(),M.preventDefault())}let j=[];function b(M){const x=window.getComputedStyle(M).zIndex,$=M.style.zIndex;(!x||!(+x>0))&&((!M.parentElement||M.parentElement.childElementCount>1)&&(M.style.zIndex="1",j.push({el:M,zIndex:$})),M.parentElement&&b(M.parentElement))}function I(){j.forEach(({el:M,zIndex:x})=>{M.style.zIndex=x??""}),j=[]}return(M,x)=>{const $=oi;return z(),H("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(z(),H("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:f})):Ve("",!0),n.items.length?(z(),Pe(Kt,{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:ie(()=>[r.value?(z(),H("ul",{key:0,ref_key:"list",ref:s,"aria-hidden":!r.value,class:me(["scrollbar-sm duration-[250ms] delay-150 absolute w-40 max-h-[75vh] list-none bg-stone-800 bg-opacity-80 backdrop-blur-md rounded-lg overflow-auto",{"origin-bottom bottom-full -translate-y-1.5":i.value,"origin-top top-full translate-y-1.5":!i.value,"left-1/2 -ml-20 text-center":!l.value&&!a.value,"right-0 text-right":a.value}]),onWheelPassive:x[0]||(x[0]=St(()=>{},["stop"]))},[(z(!0),H(ye,null,Dn(n.items,(S,q)=>ut((z(),H("li",{key:q,tabindex:"-1",class:me(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-200 hover:bg-opacity-10 duration-200",{"text-primary":q===M.modelValue}]),onClick:()=>h(q)},[K("div",{class:me(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":q>0}])},st(S),3)],10,Mu)),[[X(Ut),30]])),128))],42,Su)):Ve("",!0)]),_:1})):Ve("",!0),ut((z(),H("button",{type:"button",tabindex:"-1",class:me(["w-full h-10 max-h-full bg-transparent rounded-full bg-black bg-opacity-50 group duration-200",{"pointer-events-none text-stone-400":M.disabled}]),onClick:St(f,["stop"])},[K("div",Au,[K("span",ju,st(n.label),1),n.items.length?(z(),H("span",{key:0,class:me(["w-4 h-4 flex ml-1 -mr-3",{"rotate-180":i.value}]),"aria-hidden":"true"},[W($)],2)):Ve("",!0)])],10,Lu)),[[X(Ut),30]])],512)}}}),zu=Object.freeze(Object.defineProperty({__proto__:null,default:Uo},Symbol.toStringTag,{value:"Module"})),ri=Ce({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=fe(()=>Math.floor(n.modelValue)),r=fe(()=>n.pages.map(c=>c.map(({index:f})=>`${f+1}`).join("-"))),s=fe(()=>{const c=o.value,f=n.pages.findIndex(p=>p.some(({index:h})=>h===c));return f===-1?n.pages.length-1:f}),i=fe(()=>n.pages.length?`${r.value[s.value]}/${n.totalImgs}`:"--");function l(c){const f=n.pages[c][0].index;a(f)}function a(c){t("update:modelValue",c)}return(c,f)=>{const p=Uo;return z(),Pe(p,{"model-value":s.value,label:i.value,items:r.value,disabled:c.disabled,"onUpdate:modelValue":l},null,8,["model-value","label","items","disabled"])}}}),Bu=Object.freeze(Object.defineProperty({__proto__:null,default:ri},Symbol.toStringTag,{value:"Module"})),Nu={},Du={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Ru=[K("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 Fu(e,t){return z(),H("svg",Du,Ru)}const qo=be(Nu,[["render",Fu]]),Vu=Object.freeze(Object.defineProperty({__proto__:null,default:qo},Symbol.toStringTag,{value:"Module"})),Hu={},Wu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Ku=[K("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),K("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 Uu(e,t){return z(),H("svg",Wu,Ku)}const Yo=be(Hu,[["render",Uu]]),qu=Object.freeze(Object.defineProperty({__proto__:null,default:Yo},Symbol.toStringTag,{value:"Module"})),si=be(Ce({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=G(0);return he(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const s=qo,i=Yo;return n.value?(z(),H("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?(z(),Pe(s,{key:0})):(z(),Pe(i,{key:1}))])):Ve("",!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)}}
4
+ `]]]),Yu=Object.freeze(Object.defineProperty({__proto__:null,default:si},Symbol.toStringTag,{value:"Module"})),Zu={},Xu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ju=[K("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 Qu(e,t){return z(),H("svg",Xu,Ju)}const ii=be(Zu,[["render",Qu]]),Gu=Object.freeze(Object.defineProperty({__proto__:null,default:ii},Symbol.toStringTag,{value:"Module"}));var li;const Zo=typeof window<"u",ef=e=>typeof e=="function",tf=e=>typeof e=="string",gt=()=>{};Zo&&((li=window==null?void 0:window.navigator)!=null&&li.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Yn(e){return typeof e=="function"?e():X(e)}function ai(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}const ci=e=>e();function nf(e,t={}){let n,o,r=gt;const s=l=>{clearTimeout(l),r(),r=gt};return l=>{const a=Yn(e),c=Yn(t.maxWait);return n&&s(n),a<=0||c!==void 0&&c<=0?(o&&(s(o),o=null),Promise.resolve(l())):new Promise((f,p)=>{r=t.rejectOnCancel?p:f,c&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,f(l())},c)),n=setTimeout(()=>{o&&s(o),o=null,f(l())},a)})}}function of(e=ci){const t=G(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...s)=>{t.value&&e(...s)};return{isActive:go(t),pause:n,resume:o,eventFilter:r}}function rf(e,t=!1,n="Timeout"){return new Promise((o,r)=>{setTimeout(t?()=>r(n):o,e)})}function sf(e){return e}function Xo(e){return fr()?(rl(e),!0):!1}function qt(e,t=200,n={}){return ai(nf(t,n),e)}function lf(e,t=!0){ys()?Je(e):t?e():ot(e)}var ui=Object.getOwnPropertySymbols,af=Object.prototype.hasOwnProperty,cf=Object.prototype.propertyIsEnumerable,uf=(e,t)=>{var n={};for(var o in e)af.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&ui)for(var o of ui(e))t.indexOf(o)<0&&cf.call(e,o)&&(n[o]=e[o]);return n};function ff(e,t,n={}){const o=n,{eventFilter:r=ci}=o,s=uf(o,["eventFilter"]);return he(e,ai(r,t),s)}var df=Object.defineProperty,pf=Object.defineProperties,hf=Object.getOwnPropertyDescriptors,Zn=Object.getOwnPropertySymbols,fi=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,pi=(e,t,n)=>t in e?df(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gf=(e,t)=>{for(var n in t||(t={}))fi.call(t,n)&&pi(e,n,t[n]);if(Zn)for(var n of Zn(t))di.call(t,n)&&pi(e,n,t[n]);return e},mf=(e,t)=>pf(e,hf(t)),bf=(e,t)=>{var n={};for(var o in e)fi.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Zn)for(var o of Zn(e))t.indexOf(o)<0&&di.call(e,o)&&(n[o]=e[o]);return n};function _f(e,t,n={}){const o=n,{eventFilter:r}=o,s=bf(o,["eventFilter"]),{eventFilter:i,pause:l,resume:a,isActive:c}=of(r);return{stop:ff(e,t,mf(gf({},s),{eventFilter:i})),pause:l,resume:a,isActive:c}}function Mt(e){var t;const n=Yn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const mt=Zo?window:void 0,vf=Zo?window.document:void 0;function gn(...e){let t,n,o,r;if(tf(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=mt):[t,n,o,r]=e,!t)return gt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(f=>f()),s.length=0},l=(f,p,h)=>(f.addEventListener(p,h,r),()=>f.removeEventListener(p,h,r)),a=he(()=>Mt(t),f=>{i(),f&&s.push(...n.flatMap(p=>o.map(h=>l(f,p,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),i()};return Xo(c),c}function yf(e,t,n){const{immediate:o=!0,delay:r=0,onError:s=gt,onSuccess:i=gt,resetOnExecute:l=!0,shallow:a=!0,throwError:c}=n??{},f=a?Lr(t):G(t),p=G(!1),h=G(!1),m=G(void 0);async function j(b=0,...I){l&&(f.value=t),m.value=void 0,p.value=!1,h.value=!0,b>0&&await rf(b);const M=typeof e=="function"?e(...I):e;try{const x=await M;f.value=x,p.value=!0,i(x)}catch(x){if(m.value=x,s(x),c)throw m}finally{h.value=!1}return f.value}return o&&j(r),{state:f,isReady:p,isLoading:h,error:m,execute:j}}function hi(e,t=!1){const n=G(),o=()=>n.value=!!e();return o(),lf(o,t),n}const Jo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Qo="__vueuse_ssr_handlers__";Jo[Qo]=Jo[Qo]||{};const wf=Jo[Qo];function xf(e,t){return wf[e]||t}function Cf(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var Tf=Object.defineProperty,gi=Object.getOwnPropertySymbols,kf=Object.prototype.hasOwnProperty,Pf=Object.prototype.propertyIsEnumerable,mi=(e,t,n)=>t in e?Tf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bi=(e,t)=>{for(var n in t||(t={}))kf.call(t,n)&&mi(e,n,t[n]);if(gi)for(var n of gi(t))Pf.call(t,n)&&mi(e,n,t[n]);return e};const Ef={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function _i(e,t,n,o={}){var r;const{flush:s="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:f,window:p=mt,eventFilter:h,onError:m=C=>{console.error(C)}}=o,j=(f?Lr:G)(t);if(!n)try{n=xf("getDefaultStorage",()=>{var C;return(C=mt)==null?void 0:C.localStorage})()}catch(C){m(C)}if(!n)return j;const b=Yn(t),I=Cf(b),M=(r=o.serializer)!=null?r:Ef[I],{pause:x,resume:$}=_f(j,()=>S(j.value),{flush:s,deep:i,eventFilter:h});return p&&l&&gn(p,"storage",ee),ee(),j;function S(C){try{if(C==null)n.removeItem(e);else{const O=M.write(C),D=n.getItem(e);D!==O&&(n.setItem(e,O),p&&(p==null||p.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:D,newValue:O,storageArea:n}))))}}catch(O){m(O)}}function q(C){const O=C?C.newValue:n.getItem(e);if(O==null)return a&&b!==null&&n.setItem(e,M.write(b)),b;if(!C&&c){const D=M.read(O);return ef(c)?c(D,b):I==="object"&&!Array.isArray(D)?bi(bi({},b),D):D}else return typeof O!="string"?O:M.read(O)}function ee(C){if(!(C&&C.storageArea!==n)){if(C&&C.key==null){j.value=b;return}if(!(C&&C.key!==e)){x();try{j.value=q(C)}catch(O){m(O)}finally{C?ot($):$()}}}}}function Of({document:e=vf}={}){if(!e)return G("visible");const t=G(e.visibilityState);return gn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var vi=Object.getOwnPropertySymbols,$f=Object.prototype.hasOwnProperty,If=Object.prototype.propertyIsEnumerable,Sf=(e,t)=>{var n={};for(var o in e)$f.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&vi)for(var o of vi(e))t.indexOf(o)<0&&If.call(e,o)&&(n[o]=e[o]);return n};function yi(e,t,n={}){const o=n,{window:r=mt}=o,s=Sf(o,["window"]);let i;const l=hi(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},c=he(()=>Mt(e),p=>{a(),l.value&&r&&p&&(i=new ResizeObserver(t),i.observe(p,s))},{immediate:!0,flush:"post"}),f=()=>{a(),c()};return Xo(f),{isSupported:l,stop:f}}function Mf(e,t={width:0,height:0},n={}){const{window:o=mt,box:r="content-box"}=n,s=fe(()=>{var a,c;return(c=(a=Mt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),i=G(t.width),l=G(t.height);return yi(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&s.value){const f=Mt(e);if(f){const p=o.getComputedStyle(f);i.value=parseFloat(p.width),l.value=parseFloat(p.height)}}else if(c){const f=Array.isArray(c)?c:[c];i.value=f.reduce((p,{inlineSize:h})=>p+h,0),l.value=f.reduce((p,{blockSize:h})=>p+h,0)}else i.value=a.contentRect.width,l.value=a.contentRect.height},n),he(()=>Mt(e),a=>{i.value=a?t.width:0,l.value=a?t.height:0}),{width:i,height:l}}function wi(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:i=mt}=n,l=hi(()=>i&&"IntersectionObserver"in i);let a=gt;const c=l.value?he(()=>({el:Mt(e),root:Mt(o)}),({el:p,root:h})=>{if(a(),!p)return;const m=new IntersectionObserver(t,{root:h,rootMargin:r,threshold:s});m.observe(p),a=()=>{m.disconnect(),a=gt}},{immediate:!0,flush:"post"}):gt,f=()=>{a(),c()};return Xo(f),{isSupported:l,stop:f}}function xi(e,t,n={}){const{window:o=mt}=n;return _i(e,t,o==null?void 0:o.localStorage,n)}var Ci;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ci||(Ci={}));function Ti(e,t,n={}){const{window:o=mt}=n;return _i(e,t,o==null?void 0:o.sessionStorage,n)}var Lf=Object.defineProperty,ki=Object.getOwnPropertySymbols,Af=Object.prototype.hasOwnProperty,jf=Object.prototype.propertyIsEnumerable,Pi=(e,t,n)=>t in e?Lf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zf=(e,t)=>{for(var n in t||(t={}))Af.call(t,n)&&Pi(e,n,t[n]);if(ki)for(var n of ki(t))jf.call(t,n)&&Pi(e,n,t[n]);return e};zf({linear:sf},{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]});var _e=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(_e||{});const Ei=Ce({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=Ti("tk:dir",!0),o=qt(()=>n.value=!1,1250);return he(()=>t.direction,()=>{n.value=!0,o()}),Je(o),(r,s)=>{const i=ii;return z(),Pe(Kt,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[X(n)?(z(),H("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":r.direction===X(_e).vertical,"rotate-180":r.direction===X(_e).rtl}])},[W(i)],2)):Ve("",!0)]),_:1})}}}),Bf=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),Oi=5,$i=.25,Ii=Ce({__name:"ZoomWrapper",props:{modelValue:{},playing:{type:Boolean},rtl:{type:Boolean},horizontal:{type:Boolean},spaceTop:{},spaceBottom:{},touchDevice:{type:Boolean},busy:{type:Boolean}},emits:["update:modelValue","drag-changed","click"],setup(e,{emit:t}){const n=e,o=G(null),r=G(Math.min(Oi,Math.max($i,n.modelValue))),s=G(!1),i=G(!1),l=G(!1),a=G(!1);he(()=>n.modelValue,T=>ne(T)),Je(()=>{n.touchDevice?gn(window,"touchstart",$):(gn(o,"mousedown",j),he(()=>n.horizontal,T=>{T?window.addEventListener("wheel",C,{passive:!1}):window.removeEventListener("wheel",C)},{immediate:!0}))}),Tt(()=>{window.removeEventListener("wheel",C)});let c;Ko({onKeyDown:T=>{var N;if(n.busy)return;(N=o.value)==null||N.focus();const Y=T.key==="Meta",y=T.key==="Control";Y||y?(s.value=!0,n.playing||window.addEventListener("wheel",p,{passive:!1}),c=()=>{s.value=!1,window.removeEventListener("wheel",p),window.removeEventListener("blur",c),c=void 0},window.addEventListener("blur",c)):(T.ctrlKey||T.metaKey)&&T.key==="0"&&ne(1)},onKeyUp:()=>{s.value==!0&&(c==null||c())}});function f(T){l.value!==T&&(l.value=T,t("drag-changed",T))}function p(T){T.stopPropagation(),T.preventDefault();const Y=Math.ceil((r.value+T.deltaY*-.01)*100)/100;ne(Y,{x:T.clientX,y:T.clientY})}let h={x:0,y:0},m={x:0,y:0};function j(T){T.button===0&&(h={x:T.clientX,y:T.clientY},m={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",b),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",b),setTimeout(()=>f(!1))},{once:!0}),T.preventDefault(),T.stopPropagation())}function b(T){f(!0);const Y=T.clientX-h.x,y=T.clientY-h.y,N=o.value;N.scrollLeft=m.x-Y,N.scrollTop=m.y-y}let I=0,M=1,x;function $(T){if(n.busy)return;const Y=T.touches.length===1&&n.playing;if(a.value=!Y&&T.touches.length===2&&!n.playing,a.value){T.stopPropagation(),T.preventDefault(),I=O(T),M=r.value;const y=o.value;x={x:(T.touches[0].clientX+T.touches[1].clientX)/2,y:(T.touches[0].clientY+T.touches[1].clientY)/2,scrollLeft:y.scrollLeft,scrollTop:y.scrollTop,scrollWidth:y.scrollWidth,scrollHeight:y.scrollHeight}}(a.value||Y)&&(window.addEventListener("touchmove",q),window.addEventListener("touchend",S,{once:!0}))}function S(){if(window.removeEventListener("touchmove",q),a.value=!1,!l.value)return;const T=qt(()=>{f(!1),o.value.removeEventListener("scroll",y)},100),Y=setTimeout(T,100);o.value.addEventListener("scroll",y);function y(){clearTimeout(Y),T()}}function q(T){if(n.playing){if(l.value)return;f(!0);return}if(a.value){T.stopPropagation(),T.preventDefault();const y=O(T)/I;ne(Math.ceil(y*M*100)/100,x)}}const ee=qt(()=>i.value=!1,100);function C(T){n.busy||(i.value||(i.value=!0),ee(),T.deltaY&&(!s.value&&o.value&&(o.value.scrollLeft+=T.deltaY*(n.rtl?-1:1)),T.preventDefault()))}function O(T){return Math.hypot(T.touches[0].clientX-T.touches[1].clientX,T.touches[0].clientY-T.touches[1].clientY)}let D=0,U;function ae(T){if(T.stopPropagation(),!l.value){if(n.playing){t("click",T);return}D++,U&&clearTimeout(U),D===2&&A(T),U=setTimeout(()=>{D===1&&t("click",T),U=void 0,D=0},300)}}function A(T){const Y=r.value===1?2:1;ne(Y,{x:T.clientX,y:T.clientY})}async function ne(T,Y){const y=o.value,N=Math.min(Oi,Math.max($i,T));if(!y||r.value===N)return;const Q=(Y==null?void 0:Y.scrollLeft)??y.scrollLeft,Oe=(Y==null?void 0:Y.scrollTop)??y.scrollTop,_t=(Y==null?void 0:Y.scrollHeight)??y.scrollHeight,Ye=(Y==null?void 0:Y.scrollWidth)??y.scrollWidth,Se=Y&&n.rtl?y.clientWidth-Y.x:(Y==null?void 0:Y.x)??y.clientWidth/2,Zt=(Y==null?void 0:Y.y)??y.clientHeight/2;r.value=N,t("update:modelValue",N),await ot();const Xt=y.scrollWidth/Ye,Jt=y.scrollHeight/_t;y.scrollLeft=Q*Xt+Se*(Xt-1)*(n.rtl?-1:1),y.scrollTop=Oe*Jt+Zt*(Jt-1)}return(T,Y)=>(z(),H("div",{ref_key:"root",ref:o,tabindex:"0",class:me(["w-full h-full overflow-auto scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":l.value||i.value,"cursor-grabbing":l.value,"overflow-hidden":a.value}]),style:Ke({"font-size":`${r.value}px`,paddingBottom:T.spaceTop?`${T.spaceTop}px`:void 0}),onClick:ae},[ke(T.$slots,"default")],6))}}),Nf=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"})),Df=`.loading-indicator{display:inline-block;height:5rem;position:relative;width:5rem}.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}}
5
+ `,Rf={},Ff={class:"flex justify-center items-center w-full h-full"},Vf=[K("div",{class:"loading-indicator"},null,-1)];function Hf(e,t){return z(),H("div",Ff,Vf)}const Go=be(Rf,[["render",Hf],["styles",[Df]]]),Wf=Object.freeze(Object.defineProperty({__proto__:null,default:Go},Symbol.toStringTag,{value:"Module"}));var bt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(bt||{});const Kf=["data-index"],Uf={key:0,class:"h-[75vh] w-[50vw] m-auto"},qf=["src"],Yf=["src"],Zf=["data-index"],Si=be(Ce({__name:"ReaderBody",props:{pages:{},totalImgs:{},zoom:{},settings:{},spaceTop:{},spaceBottom:{},touchDevice:{type:Boolean},playController:{},busy:{type:Boolean}},emits:["update:zoom","update:playing","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=G(null),r=fe(()=>{var b;return(b=o.value)==null?void 0:b.$el}),s=G(null),i=Mf(r),l=fe(()=>n.settings.style===bt.longStrip),a=fe(()=>n.settings.direction===_e.rtl),c=fe(()=>n.settings.direction===_e.vertical),f=fe(()=>{const{width:{value:b},height:{value:I}}=i;return n.pages.map(M=>{const x={indexes:M.map(ee=>ee.index)},$=M.map(({el:ee})=>ee).filter(Boolean);if(!$.length)return x;x.srcs=$.map(ee=>ee.src);const S=$.reduce((ee,C)=>ee+C.naturalWidth,0),q=$.reduce((ee,C)=>ee+C.naturalHeight,0)/$.length;return l.value&&c.value||!l.value&&b/S<I/q?(x.width=Math.min(b,S),x.height=q*x.width/S):x.height=Math.min(I,q),x})}),p=fe(()=>f.value.map(b=>(b==null?void 0:b.width)??(b==null?void 0:b.height)).filter(Boolean).sort((b,I)=>I-b)[0]);let h=!1;function m(b){h!==b&&(h=b,n.playController.isPlaying.value&&(h?n.playController.pause():n.playController.resume()))}function j(b){if(!l.value){const I=c.value?i.height.value:i.width.value,x=(c.value?b.clientY:a.value?I-b.clientX:b.clientX)/I;if(x<=.2){t("prev");return}else if(x>=.8){t("next");return}}t("click")}return(b,I)=>{const M=Go,x=Ii;return z(),Pe(x,{"model-value":b.zoom,ref_key:"root",ref:o,class:me(["reader-body",{"reader-body--long-strip":l.value,"reader-body--pages":!l.value,"reader-body--vertical":c.value,"reader-body--rtl":a.value}]),playing:n.playController.isPlaying.value,horizontal:!c.value,rtl:a.value,"space-top":c.value?b.spaceTop:0,"space-bottom":c.value?b.spaceBottom:0,"touch-device":b.touchDevice,busy:b.busy,style:Ke({...c.value?{"--translate-y":(b.spaceTop||0)+"px"}:{},...l.value?{"--max-size-em":p.value+"em"}:{"--screen-width-em":X(i).width.value+"em","--screen-height-em":X(i).height.value+"em"}}),onDragChanged:m,"onUpdate:modelValue":I[0]||(I[0]=$=>t("update:zoom",$)),onClick:j},{default:ie(()=>[(z(!0),H(ye,null,Dn(f.value,$=>(z(),H("div",Bo({key:n.settings.direction+"_"+$.indexes[0],"data-index":$.indexes[0]},$.indexes.length>1?{"data-second-index":$.indexes[1]}:{}),[$.srcs?$.srcs.length==1?(z(),H("img",{key:1,src:$.srcs[0],style:Ke({width:$.width!==void 0?$.width+"em":"",height:$.height!==void 0?$.height+"em":""})},null,12,qf)):(z(),H("div",{key:2,class:me(["flex justify-center items-center",{"flex-row-reverse":a.value}]),style:Ke({width:$.width!==void 0?$.width+"em":"",height:$.height!==void 0?$.height+"em":""})},[(z(!0),H(ye,null,Dn($.srcs,S=>(z(),H("div",{key:S,class:"h-full flex select-none"},[K("img",{src:S,class:"flex-shrink-0 max-w-full max-h-full object-contain"},null,8,Yf)]))),128))],6)):(z(),H("div",Uf,[W(M)]))],16,Kf))),128)),K("div",{ref_key:"autoNextEl",ref:s,"data-index":b.totalImgs,style:Ke(l.value?c.value?{height:X(i).height.value+"em"}:{width:X(i).width.value+"em"}:{})},[ke(b.$slots,"end")],12,Zf)]),_:3},8,["model-value","playing","horizontal","rtl","space-top","space-bottom","touch-device","busy","class","style"])}}}),[["styles",[`.reader-body--rtl{flex-direction:row-reverse}.reader-body:not(.reader-body--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.reader-body--long-strip.reader-body--vertical>div{width:var(--max-size-em)}.reader-body--long-strip:not(.reader-body--vertical)>div{display:flex;flex-direction:column;height:var(--max-size-em);justify-content:center}.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>div{align-items:center;display:flex;height:var(--screen-height-em);justify-content:center;min-height:var(--screen-height-em);min-width:var(--screen-width-em);scroll-snap-align:center;width:var(--screen-width-em)}.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: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):after,.reader-body--pages:not(.reader-body--vertical):before{bottom:0;top:0;width:20vw}.reader-body--pages:not(.reader-body--vertical):before{left:0}.reader-body--pages:not(.reader-body--vertical):after{right:0}.reader-body--pages>div>img{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.reader-body>div{flex-shrink:0;margin:auto;transform:translateY(var(--translate-y));-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body img{--tw-bg-opacity:1!important;background-color:rgb(41 37 36/var(--tw-bg-opacity))!important;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}
6
+ `]]]),Xf=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"})),Jf={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},Qf={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},Gf={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},Mi=be(Ce({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=e,o=G(null),r=G(null),s=G(!1),i=G(!1),l=G(3);return Je(()=>{if(!n.hasNext)return;let a;wi(r,c=>{i.value=c.some(f=>f.isIntersecting),l.value=5,a&&(clearInterval(a),a=void 0),i.value&&(a=setInterval(()=>{l.value-=1,l.value<=0&&(clearInterval(a),a=void 0,t("next"))},1e3))}),wi(o,c=>{s.value=c.some(f=>f.isIntersecting)}),Tt(()=>a&&clearInterval(a))}),(a,c)=>(z(),H("div",{ref_key:"root",ref:o,class:"h-full w-full flex justify-center items-center"},[ut(K("div",Jf,[a.hasNext?(z(),H("div",Qf,[i.value?(z(),H("div",Gf)):Ve("",!0),ut((z(),H("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]=St(()=>t("next"),["stop"]))},[Ft(" Next in "+st(l.value),1)])),[[X(Ut)]])])):Ve("",!0),ut((z(),H("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]=St(()=>t("hide"),["stop"]))},[Ft(" Hide ")])),[[X(Ut)]])],512),[[bc,s.value||!a.hasNext]])],512))}}),[["styles",[`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
7
+ `]]]),ed=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"})),er=40;function td({page:e,settings:t,spaceTop:n,scrollEl:o,interferePlayer:r,onChangedPage:s}){let i=!1,l=!1,a;const c=qt(b,150),f=nd(I,300),p=fe(()=>t.value.style===bt.longStrip),h=fe(()=>t.value.direction===_e.rtl),m=fe(()=>t.value.direction===_e.vertical);Je(()=>{let C=null;Yl(async()=>{o.value&&o.value!==C&&(C=o.value,c(e.value),o.value.addEventListener("scroll",f))});let O=window.innerWidth;yi(o,()=>{const D=window.innerWidth;O!=D&&(O=D,j())}),he(()=>[t.value.style,t.value.direction],j)});async function j(){i=!0,l=!1,await ot(),b(e.value)}function b(C){if(!o.value)return;i=!0;const O=async()=>{await ot(),i=!1,l=!0},D=M(Math.floor(C));if(!D){O();return}if(p.value){const U=p.value?C%1*(m.value?D.offsetHeight:D.offsetWidth)||1:0,ae=x(D)+U;r(()=>{$(ae),O()})}else{const U=l;r(()=>{D.scrollIntoView(U?{behavior:"smooth",block:"start",inline:"start"}:void 0),O()})}}async function I(){if(!o.value||i||!l)return;const C=q();if(!C)return;const O=+C.getAttribute("data-index")||0,D=C.getBoundingClientRect(),U=p.value?Math.floor((O+ee(D))*100)/100:O;U!==e.value&&s(U)}function M(C){var O;return(O=o.value)==null?void 0:O.querySelector(`[data-index="${C}"],[data-second-index="${C}"]`)}function x(C){return m.value?C.offsetTop:h.value?o.value.clientWidth-C.offsetLeft-C.offsetWidth:C.offsetLeft}function $(C){if(S()!==C)return m.value?o.value.scrollTop=C:h.value?o.value.scrollLeft=-C:o.value.scrollLeft=C,C}function S(){return m.value?o.value.scrollTop:h.value?-o.value.scrollLeft:o.value.scrollLeft}function q(){a??(a=o.value.getRootNode());const C=m.value||!p.value;return a.elementsFromPoint(C?window.innerWidth/2:h.value?window.innerWidth-er:er,C?n.value||er:window.innerHeight/2).find(D=>D.hasAttribute("data-index"))}function ee(C){return m.value?Math.abs(C.top-(n.value||0))/C.height:h.value?Math.max(0,C.right-o.value.clientWidth)/C.width:Math.abs(C.left)/C.width}return{goToPage:b}}function nd(e,t){let n;return()=>{n||(n=setTimeout(()=>{n=void 0,e()},t))}}function od(e){var l,a,c;let t=-1;const{vol:n,chap:o,title:{chapters:r}}=e;r!=null&&r.length&&(t=r.findIndex(f=>f.slug===e.slug),t===-1&&(t=r.findIndex(f=>f.vol===n&&f.chap===o)),t===-1&&(t=r.findIndex(f=>e.slug.startsWith(`${f.slug}-`)&&e.slug.length-f.slug.length>3)));const s=e.prevSlug??((l=r==null?void 0:r[t+1])==null?void 0:l.slug),i=e.nextSlug??((a=r==null?void 0:r[t-1])==null?void 0:a.slug);return{activeIndex:t,activeLabel:Li({vol:n,chap:o}),chaptersText:((c=e.title.chapters)==null?void 0:c.map(Li))??[],prevPath:tr(e.basePath,s),nextPath:tr(e.basePath,i)}}function tr(e,t){return!t||t.includes("://")||t.startsWith("/")?t:(e||"/")+t}function Li({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const nr=3;function rd(e,t){const n=nn(Array.from({length:e.value.length})),o=[];let r=0;he([t,e],async([l,a],[c])=>{const f=Math.floor(l),p=Math.floor(c||-1),h=a.length-n.length;if(h>0){const m=Array.from({length:h});n.push(...m)}f!==p&&(r=Math.max(0,r-Math.abs(f-p)));for(let m=f;m<a.length;m++){if(r>nr)return;s(m)}for(let m=f-1;m>=0;m--){if(r>nr)return;s(m)}},{immediate:!0});async function s(l){l===void 0||!e.value[l]||r>nr||(o[l]||(o[l]=!0,r++,n[l]=await sd(e.value[l]),r=Math.max(0,r-1)),s(i()))}function i(){for(let l=Math.floor(t.value);l<e.value.length;l++)if(!o[l])return l;for(let l=Math.floor(t.value)-1;l>=0;l--)if(!o[l])return l}return n}function sd(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{n.naturalHeight&&n.naturalWidth&&(t(n),clearInterval(o))},20);n.onerror=()=>{t(n),clearInterval(o)},n.src=e})}function id(e,t){return fe(()=>t.value?Ai(e):e.map((n,o)=>[{el:n,index:o}]))}function Ai(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(s=>s&&s.naturalWidth>s.naturalHeight)?[n[0]]:n;return[r.map((s,i)=>({el:s,index:t+i})),...Ai(e.slice(r.length),t+r.length)]}function ld(e,t,n){const o=Math.max(e.length<4?0:e.length<6?1:2,t),r=Math.min(o+4,e.length<6?e.length-1:e.length),s=Math.max(0,r-4),i=e.slice(s,r),l=new Promise(a=>{if(n!==void 0){a(n);return}let c=!1;Promise.all(i.map(async f=>{const p=await ad(f);!c&&p&&(c=!0,a(!0))})).then(()=>{c||a(!1)})});return yf(l,n??!1)}function ad(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{n.naturalHeight&&n.naturalWidth&&(t(n.naturalHeight/n.naturalWidth>2.5),clearInterval(o))},20);n.onerror=()=>{t(!1),clearInterval(o)},n.src=e})}const ji=5e3;function cd(e){const t=Ti("tk:isPlaying",!1),n=G(!1);let o,r;const s=qt(b,100),i=qt(()=>{n.value=!0},e.value.touchDevice?2e3:1e3),l=()=>setTimeout(()=>{n.value=!1,i()},30);e.value.touchDevice||(l(),gn(window,"mousemove",l));const a=Of();Je(()=>{he(a,x=>{t.value&&(x==="visible"?b():r==null||r())})});async function c(x){t.value&&(r==null||r()),x&&(await ot(),await x()),t.value&&s()}function f(){t.value?p():h()}function p(){t.value&&(t.value=!1,r==null||r(),l())}function h(){t.value||(t.value=!0,b(),l())}function m(){r==null||r()}function j(x){const $=e.value.direction===_e.vertical;switch(x.key){case" ":x.preventDefault(),f();break;case"PageUp":case"PageDown":case($?"ArrowUp":"ArrowLeft"):case($?"ArrowDown":"ArrowRight"):c(()=>new Promise(S=>setTimeout(S,100)));break}}function b(){if(!t.value)return;const x=e.value,$=x.scrollEl,S=x.direction===_e.vertical,q=S?$.scrollHeight-$.clientHeight:$.scrollWidth-$.clientWidth,ee=M(),C=Math.min(ji,q-ee),D=(S?15:25)/x.speed*C;if(!D){p();return}const U=C===ji?setTimeout(h,D):void 0;r=()=>{o=Date.now(),U&&clearTimeout(U),r=void 0},I(ee,C,D)}function I(x,$,S){const q=x+$,ee=x;let C;const O=Date.now();o=O,window.requestAnimationFrame(async function D(U){if(O!=o)return;C=C||U;const ae=U-C,A=e.value;let ne=ee<q?(q-ee)*ae/S+ee:ee-(ee-q)*ae/S;const T=A.direction===_e.vertical;!T&&A.direction===_e.rtl&&(ne=-ne),T?A.scrollEl.scrollTop=ne:A.scrollEl.scrollLeft=ne,ae<S?window.requestAnimationFrame(D):T?A.scrollEl.scrollTop=q:A.scrollEl.scrollLeft=q})}function M(){const x=e.value;return x.direction===_e.vertical?x.scrollEl.scrollTop:x.direction===_e.rtl?-x.scrollEl.scrollLeft:x.scrollEl.scrollLeft}return{isPlaying:t,isIdle:n,toggle:f,play:h,pause:m,resume:b,stop:p,interfere:c,onKey:j,awake:l}}function ud(e){const t=xi(`tkr:${e.titleSlug}`,e.defaultSettings??{style:bt.longStrip,direction:_e.vertical,speed:1,autoPlay:!1},{writeDefaults:!1,mergeDefaults(n,o){const r={...o,...n};return Object.values(_e).includes(n.direction)||(n.direction=_e.vertical),Object.values(bt).includes(n.style)||(n.style=bt.longStrip),n.speed>0&&n.speed<2||(n.speed=1),r}});return fe({get(){return e.asyncIsWebtoon.state.value===!0?{...t.value,style:bt.longStrip,direction:_e.vertical}:t.value},set(n){t.value=n}})}const fd=Ce({...{inheritAttrs:!1},__name:"TrackkunReader",props:{raw:{},page:{},defaultSettings:{},spaceTop:{},spaceBottom:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},userEntryId:{},autoPlay:{type:Boolean}},emits:["pageChanged","fullScreenChanged","dispose","openEntry","addEntry"],setup(e,{emit:t}){const n=e,o=ru(),r=fe(()=>Array.isArray(n.raw.imgs)?n.raw.imgs.filter(y=>typeof y=="string"):[]),s=G(typeof n.page=="number"?Math.max(0,Math.min(n.page,r.value.length-1)):0),i=ld(r.value,Math.ceil(s.value),n.raw.isWebtoon),l=ud({titleSlug:n.raw.title.slug,asyncIsWebtoon:i,defaultSettings:n.defaultSettings}),a=fe(()=>l.value.direction===_e.rtl),c=fe(()=>l.value.style===bt.double),f=rd(r,s),p=id(f,c),h=xi(`tkr:zoom:${n.raw.title.slug}`,1,{writeDefaults:!1,mergeDefaults(y){return Math.max(.25,Math.min(1,y))}}),m=fe(()=>s.value>=r.value.length),j=od(n.raw),b=G(null),I=cd(fe(()=>{var y;return{autoPlay:n.autoPlay,speed:l.value.speed,scrollEl:(y=b.value)==null?void 0:y.$el,direction:l.value.direction,touchDevice:n.touchDevice}}));he(I.isPlaying,y=>{y||A(!1)}),he(I.isIdle,y=>{I.isPlaying.value&&A(y)}),he(o,y=>{!y&&I.isIdle.value&&I.awake()}),iu().addListener({onKeyDown:y=>{if(I.onKey(y),!(l.value.direction===_e.vertical))return;const Q=y.key==="ArrowLeft",Oe=y.key==="ArrowRight";Q?q():Oe&&S()}});const x=td({page:s,settings:l,spaceTop:fe(()=>n.spaceTop),scrollEl:fe(()=>{var y;return(y=b.value)==null?void 0:y.$el}),interferePlayer:y=>I.interfere(y),onChangedPage(y){if(y<0||y>=r.value.length+1)return;s.value=y,t("pageChanged",y),y>=r.value.length&&(A(!1),I.stop())}});function $(){if(I.isPlaying.value){!n.fullScreen||!n.touchDevice?I.stop():I.awake();return}A()}function S(){C(j.nextPath)}function q(){C(j.prevPath)}function ee(y){var Q;const N=(Q=n.raw.title.chapters)==null?void 0:Q[y].slug;N&&C(tr(n.raw.basePath,N))}function C(y){y&&(location.href=y.includes("://")?y:location.origin+y)}function O(){var Q;const y=p.value,N=m.value?y[y.length-1][0].index:(Q=y[U()-1])==null?void 0:Q[0].index;N!==void 0?x.goToPage(N):q()}function D(){var N;const y=m.value?Math.floor(s.value)+1:((N=p.value[U()+1])==null?void 0:N[0].index)??r.value.length;x.goToPage(y)}function U(){const y=Math.floor(s.value),N=p.value.findIndex(Q=>Q.some(({index:Oe})=>Oe===y));return N===-1?p.value.length-1:N}function ae(){t("dispose")}async function A(y){o.value||t("fullScreenChanged",typeof y=="boolean"?y:!n.fullScreen)}function ne(){n.userEntryId?Y():T()}function T(){I.stop(),t("addEntry")}function Y(){I.stop(),t("openEntry",n.userEntryId)}return(y,N)=>{const Q=Go,Oe=Mi,_t=Si,Ye=Ei,Se=si,Zt=Uo,Xt=Yo,Jt=qo,Me=qn,Qt=ri,Xn=ni,vt=Wo,mn=Zs,bn=Ys,u=qs,d=Us,g=Ws;return z(),Pe(g,{"full-screen":!!y.fullScreen,idle:X(I).isIdle.value&&!X(o),"space-top":n.spaceTop,"space-bottom":n.spaceBottom,"touch-device":y.touchDevice,rtl:a.value},ua({"chapter-nav":ie(()=>[W(Zt,{modelValue:X(j).activeIndex,label:X(j).activeLabel,items:X(j).chaptersText,"onUpdate:modelValue":ee},null,8,["modelValue","label","items"])]),play:ie(()=>[W(Me,{disabled:X(i).isLoading.value,onClick:N[2]||(N[2]=()=>X(I).toggle())},{default:ie(()=>[X(I).isPlaying.value?(z(),Pe(Xt,{key:0})):(z(),Pe(Jt,{key:1}))]),_:1},8,["disabled"])]),"page-nav":ie(()=>[W(Qt,{"model-value":s.value,disabled:X(i).isLoading.value,pages:X(p),"total-imgs":r.value.length,"onUpdate:modelValue":X(x).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),settings:ie(()=>[W(Xn,{modelValue:X(l),"onUpdate:modelValue":N[3]||(N[3]=_=>ve(l)?l.value=_:null),zoom:X(h),webtoon:X(i).state.value,disabled:X(i).isLoading.value,playing:X(I).isPlaying.value,"onUpdate:zoom":N[4]||(N[4]=_=>h.value=_)},null,8,["modelValue","zoom","webtoon","disabled","playing"])]),back:ie(()=>[W(Me,{href:y.raw.title.url,title:"Back to chapters"},{default:ie(()=>[W(vt)]),_:1},8,["href"])]),exit:ie(()=>[W(Me,{title:"Hide reader",onClick:ae},{default:ie(()=>[W(mn,{class:"text-stone-300"})]),_:1})]),entry:ie(()=>[W(Me,{onClick:ne,title:y.userEntryId?"View entry":"Add to Trackkun"},{default:ie(()=>[y.userEntryId?(z(),Pe(bn,{key:0})):(z(),Pe(u,{key:1}))]),_:1},8,["title"])]),progress:ie(()=>[K("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500",style:Ke({width:`${s.value/(r.value.length-1)*100}%`})},null,4)]),default:ie(()=>[X(i).isLoading.value?(z(),Pe(Q,{key:0})):(z(),H(ye,{key:1},[W(_t,{ref_key:"body",ref:b,zoom:X(h),"onUpdate:zoom":N[0]||(N[0]=_=>ve(h)?h.value=_:null),pages:X(p),"total-imgs":r.value.length,settings:X(l),"space-top":y.spaceTop,"space-bottom":n.spaceBottom,"touch-device":y.touchDevice,busy:X(o),"play-controller":X(I),onPrev:O,onNext:D,onClick:$,onWheelPassive:N[1]||(N[1]=()=>X(I).interfere())},{end:ie(()=>[W(Oe,{"has-next":!!X(j).nextPath,onNext:S,onHide:ae},null,8,["has-next"])]),_:1},8,["zoom","pages","total-imgs","settings","space-top","space-bottom","touch-device","busy","play-controller"]),W(Ye,{direction:X(l).direction},null,8,["direction"]),m.value?Ve("",!0):(z(),Pe(Se,{key:0,playing:X(I).isPlaying.value},null,8,["playing"]))],64))]),_:2},[X(I).isPlaying.value?void 0:{name:"reset-zoom",fn:ie(()=>[W(Kt,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[W(d,{zoom:X(h),onClick:N[5]||(N[5]=St(()=>h.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),key:"0"}]),1032,["full-screen","idle","space-top","space-bottom","touch-device","rtl"])}}}),zi=be(fd,[["styles",[`/*! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:Helvetica,sans-serif;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-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}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{color:inherit;font-family:inherit;font-size:100%;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}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-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-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: }.\\!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{bottom:0;left:0;right:0;top:0}.inset-2{bottom:.5rem;left:.5rem;right:.5rem;top:.5rem}.left-0{left:0}.top-0{top:0}.bottom-0{bottom:0}.left-3{left:.75rem}.bottom-full{bottom:100%}.top-full{top:100%}.left-1\\/2{left:50%}.right-0{right:0}.top-1\\/2{top:50%}.top-1{top:.25rem}.bottom-5{bottom:1.25rem}.z-50{z-index:50}.z-10{z-index:10}.z-\\[9999999999\\]{z-index:9999999999}.-z-10{z-index:-10}.z-30{z-index:30}.z-20{z-index:20}.m-auto{margin:auto}.-mx-12{margin-left:-3rem;margin-right:-3rem}.-my-12{margin-bottom:-3rem;margin-top:-3rem}.-ml-20{margin-left:-5rem}.ml-1{margin-left:.25rem}.-mr-3{margin-right:-.75rem}.ml-auto{margin-left:auto}.mb-8{margin-bottom:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-0\\.5{height:.125rem}.h-0{height:0}.h-full{height:100%}.h-12{height:3rem}.h-\\[22rem\\]{height:22rem}.h-16{height:4rem}.h-10{height:2.5rem}.h-4{height:1rem}.h-9{height:2.25rem}.h-24{height:6rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-20{height:5rem}.h-\\[75vh\\]{height:75vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[75vh\\]{max-height:75vh}.max-h-full{max-height:100%}.w-full{width:100%}.w-28{width:7rem}.w-40{width:10rem}.w-4{width:1rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-5{width:1.25rem}.w-20{width:5rem}.w-24{width:6rem}.w-\\[50vw\\]{width:50vw}.w-\\[4\\.5rem\\]{width:4.5rem}.max-w-full{max-width:100%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-top{transform-origin:top}.translate-y-full{--tw-translate-y:100%}.-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-1\\.5{--tw-translate-y:-.375rem}.-translate-y-1{--tw-translate-y:-.25rem}.-translate-y-1,.translate-y-1\\.5{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\\.5{--tw-translate-y:.375rem}.translate-y-1{--tw-translate-y:.25rem}.-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-x-1\\/2{--tw-translate-x:-50%}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.rotate-180{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-180{--tw-rotate:180deg}.rotate-90{--tw-rotate:90deg}.rotate-90,.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-pointer{cursor:pointer}.cursor-none{cursor:none}.cursor-auto{cursor:auto}.cursor-grabbing{cursor:grabbing}.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-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-6{gap:1.5rem}.gap-1{gap:.25rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-2xl{border-radius:1rem}.rounded-\\[2\\.5rem\\]{border-radius:2.5rem}.rounded-t-sm{border-top-left-radius:.125rem;border-top-right-radius:.125rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border-2{border-width:2px}.border-\\[3px\\]{border-width:3px}.border{border-width:1px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-primary{--tw-border-opacity:1;border-color:rgb(184 92 56/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-stone-500{--tw-bg-opacity:1;background-color:rgb(120 113 108/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-opacity-50{--tw-bg-opacity:.5}.bg-opacity-75{--tw-bg-opacity:.75}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-40{--tw-bg-opacity:.4}.bg-opacity-90{--tw-bg-opacity:.9}.object-contain{-o-object-fit:contain;object-fit:contain}.p-6{padding:1.5rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-1{padding:.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.pt-3{padding-top:.75rem}.pb-16{padding-bottom:4rem}.pl-1{padding-left:.25rem}.pb-4{padding-bottom:1rem}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:1rem;line-height:1.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.leading-none{line-height:1}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/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-50{opacity:.5}.opacity-100{opacity:1}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur:blur(8px)}.blur,.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)}.delay-150{transition-delay:.15s}.duration-200{transition-duration:.2s}.duration-\\[250ms\\]{transition-duration:.25s}.duration-500{transition-duration:.5s}.duration-150{transition-duration:.15s}.ease-linear{transition-timing-function:linear}.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:.25rem;width:.25rem}.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-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-200:hover{--tw-bg-opacity:1;background-color:rgb(231 229 228/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-stone-400:hover{--tw-bg-opacity:1;background-color:rgb(168 162 158/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-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-300:hover{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/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-200{--tw-bg-opacity:1;background-color:rgb(231 229 228/var(--tw-bg-opacity))}.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}.group:hover .group-hover\\:bg-opacity-10{--tw-bg-opacity:.1}}@media (min-width:640px){.sm\\:inset-3{bottom:.75rem;left:.75rem;right:.75rem;top:.75rem}.sm\\:w-\\[32rem\\]{width:32rem}.sm\\:pb-0{padding-bottom:0}}@media (min-width:768px){.md\\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width:1024px){.lg\\:px-10{padding-left:2.5rem;padding-right:2.5rem}}@media (min-width:1280px){.xl\\:px-12{padding-left:3rem;padding-right:3rem}}
8
+ `]]]),dd=Object.freeze(Object.defineProperty({__proto__:null,default:zi},Symbol.toStringTag,{value:"Module"})),pd={},hd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},gd=[K("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function md(e,t){return z(),H("svg",hd,gd)}const bd=Object.freeze(Object.defineProperty({__proto__:null,default:be(pd,[["render",md]])},Symbol.toStringTag,{value:"Module"})),_d={},vd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},yd=[K("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function wd(e,t){return z(),H("svg",vd,yd)}const xd=Object.freeze(Object.defineProperty({__proto__:null,default:be(_d,[["render",wd]])},Symbol.toStringTag,{value:"Module"})),Cd={},Td={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},kd=[K("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 Pd(e,t){return z(),H("svg",Td,kd)}const Ed=Object.freeze(Object.defineProperty({__proto__:null,default:be(Cd,[["render",Pd]])},Symbol.toStringTag,{value:"Module"})),Od={text:$d,attr:Id,"attr-contain":Sd,value:Ld,row:Ad};function Bi(e,t={}){if(!e)return;const{root:n=document.documentElement,returnAll:o,preProcess:r}=t,s=Md(e);if(s.length>1){for(let p=0;p<s.length;p+=1){const h=Bi(s[p],t);if(h!=null&&h.length)return h}return}const[i,l]=e.split("|");if(!l)return;const a=(l!=null&&l.startsWith("[")&&l.endsWith("]")?l.substring(1,l.length-1).split(","):[l]).map(p=>{const h=p.indexOf(":"),m=h!==-1;return{action:m?p.substring(0,h):p,param:m?p.substring(h+1):""}}),c=i?Array.from(n.querySelectorAll(i)):[n];if(!c.length)return o?[]:void 0;r&&r(c);const f=[];for(const p of c)for(const h of a){const m=Od[h.action],j=m(p,h.param);if(j){if(o){f.push(j);break}return j}}return o?f:void 0}function $d(e){return Array.from(e.childNodes).filter(n=>n.nodeType===3).map(n=>Yt(n.textContent)).filter(Boolean).join(" ").trim()||Yt(e.textContent)}function Id(e,t){return Yt(e.getAttribute(t))}function Sd(e,t){let n=e.getAttribute(t);if(!n){const o=e.getAttributeNames().find(r=>r.includes(t));o&&(n=e.getAttribute(o))}return Yt(n)}function Md(e){const t=[],n=e.split("||").map(o=>o.trim()).filter(Boolean);return n.forEach((o,r)=>{if(o.includes("|")){t.push(o);return}const s=n[r+1];s&&(n[r+1]=`${o},${s}`)}),t}function Ld(e){return e.value}function Ad(e,t){var r,s;if(!t)return;const n=(r=Yt(e.textContent))==null?void 0:r.toLowerCase(),o=t.toLowerCase();if(!(n!==o&&n!==`${o}:`))return Yt((s=e.nextElementSibling)==null?void 0:s.textContent)}function Yt(e){if(e)return(e==null?void 0:e.replace(/(\n|\t)/g," ").trim())||void 0}const Cp="",Lt="gear-second",Ni="gear-second--adblock",Di={raw:{},page:0,defaultSettings:void 0,spaceTop:0,spaceBottom:0,fullScreen:!1,onDispose:void 0,touchDevice:void 0,userEntryId:void 0,autoPlay:!1,adBlock:!1},He=nn(Di);async function jd(e){let t;document.documentElement.classList.add(Lt),e.adBlock&&document.documentElement.classList.add(Ni);const{isInstalled:n,isMounted:o}=zd();n||await Bd(),Object.assign(He,Di,e,{page:Rd(e),onDispose:()=>t==null?void 0:t()}),or();const r=o?document.querySelector(Lt):document.createElement(Lt);return o||document.body.appendChild(r),Ri(e.raw.slug),t=()=>{var i;(i=e==null?void 0:e.onDispose)==null||i.call(e),document.body.removeChild(r),document.documentElement.classList.remove(Lt),document.documentElement.classList.remove(Ni),Dd(He)},{dispose:t,updateArgs(i){Object.assign(He,i),or()}}}function zd(){const e=!!window.customElements.get(Lt),t=e&&!!document.body.querySelector(Lt);return{isInstalled:e,isMounted:t}}async function Bd(){const e=sc({styles:[await Nd()],data:()=>({readerData:He,isFinished:!1}),render(){return Ps(zi,{...this.readerData,onFullScreenChanged:t=>{var n,o;this.readerData.fullScreen=t,(o=(n=this.readerData).onFullScreenChanged)==null||o.call(n,t),or()},onPageChanged:t=>{var n,o,r,s;this.readerData.page=t,(o=(n=this.readerData).onPageChanged)==null||o.call(n,t),!this.isFinished&&t>=this.readerData.raw.imgs.length-2&&(this.isFinished=!0,(s=(r=this.readerData).onFinished)==null||s.call(r))}})}});window.customElements.define(Lt,e)}async function Nd(){const e=Object.assign({"./TrackkunReader.vue":dd,"./components/AutoNext.vue":ed,"./components/BottomSheet.vue":fu,"./components/ButtonDropdown.vue":zu,"./components/ButtonIcon.vue":ou,"./components/ButtonReaderSettings.vue":ku,"./components/ButtonResetZoom.vue":Ac,"./components/DirectionToast.vue":Bf,"./components/InputPercentage.vue":hu,"./components/InputSelect.vue":vu,"./components/LoadingIndicator.vue":Wf,"./components/PageNav.vue":Bu,"./components/PauseToast.vue":Yu,"./components/ReaderBody.vue":Xf,"./components/ReaderLayout.vue":kc,"./components/TableField.vue":bu,"./components/ZoomWrapper.vue":Nf,"./components/icons/IconBookmarkNew.vue":Dc,"./components/icons/IconBookmarked.vue":Wc,"./components/icons/IconChevronLeft.vue":bd,"./components/icons/IconChevronRight.vue":xd,"./components/icons/IconClose.vue":eu,"./components/icons/IconExclamationCircle.vue":Ed,"./components/icons/IconNext.vue":Gu,"./components/icons/IconPause.vue":qu,"./components/icons/IconPlay.vue":Vu,"./components/icons/IconReaderExit.vue":Zc,"./components/icons/IconSettings.vue":Tu,"./components/icons/IconTriangle.vue":Iu,"./components/icons/IconZoom.vue":Ic}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}function or(){if(He.adBlock)return;const{spaceTop:e,spaceBottom:t,fullScreen:n}=He,o=document.querySelector(":root");o==null||o.style.setProperty("--tk-safe-top",`${n?0:(e||0)+44}px`),o==null||o.style.setProperty("--tk-safe-bottom",`${n?0:t||0}px`)}function Dd({page:e,raw:t}){if(e<1||!t)return;if(e>=t.imgs.length){document.documentElement.scrollTop=document.documentElement.scrollHeight;return}const n=t.imgs[Math.floor(e)],o=n?document.querySelector(`[src="${n}"],[data-src="${n}"]`):void 0;o&&setTimeout(()=>{o.scrollIntoView(),setTimeout(()=>{window.scrollTo({top:document.documentElement.scrollTop+e%1*o.getBoundingClientRect().height})})})}function Rd({page:e,raw:t}){if(!(t!=null&&t.imgs.length)||document.documentElement.scrollTop<700)return e;for(let n=0;n<t.imgs.length;n++){const o=t.imgs[n],r=document.querySelector(`[src="${o}"],[data-src="${o}"]`);if(!r)continue;const s=r.getBoundingClientRect();if(s.bottom>0){const i=s.top;return n+(i>=0?0:Math.floor(-i/s.height*100)/100)}}return e}async function Ri(e,t=0){if(!He.raw.imgsLocator||t>=7||(await new Promise(r=>setTimeout(r,1e3)),He.raw.slug!==e))return;const n=Bi(He.raw.imgsLocator,{returnAll:!0});if(!(n!=null&&n.length))return;const o=n.length>He.raw.imgs.length;o&&(He.raw={...He.raw,imgs:n}),Ri(e,o?0:t+1)}return jd});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gear-second",
3
3
  "author": "endyquang",
4
- "version": "0.0.3",
4
+ "version": "0.0.4",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Trkun manga reader",
7
7
  "main": "index.js",