gear-second 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +8 -8
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,8 +1,8 @@
1
- (function(ze,G){typeof exports=="object"&&typeof module<"u"?module.exports=G():typeof define=="function"&&define.amd?define(G):(ze=typeof globalThis<"u"?globalThis:ze||self,ze._gearSecond_=G())})(this,function(){"use strict";var lp=Object.defineProperty;var ap=(ze,G,He)=>G in ze?lp(ze,G,{enumerable:!0,configurable:!0,writable:!0,value:He}):ze[G]=He;var Xi=(ze,G,He)=>(ap(ze,typeof G!="symbol"?G+"":G,He),He);function ze(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 G={},He=[],Ye=()=>{},Ji=()=>!1,Qi=/^on[^a-z]/,yn=e=>Qi.test(e),to=e=>e.startsWith("onUpdate:"),ve=Object.assign,no=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Gi=Object.prototype.hasOwnProperty,re=(e,t)=>Gi.call(e,t),W=Array.isArray,Nt=e=>wn(e)==="[object Map]",fr=e=>wn(e)==="[object Set]",Q=e=>typeof e=="function",_e=e=>typeof e=="string",oo=e=>typeof e=="symbol",de=e=>e!==null&&typeof e=="object",dr=e=>de(e)&&Q(e.then)&&Q(e.catch),pr=Object.prototype.toString,wn=e=>pr.call(e),el=e=>wn(e).slice(8,-1),hr=e=>wn(e)==="[object Object]",ro=e=>_e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,xn=ze(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},tl=/-(\w)/g,Be=Cn(e=>e.replace(tl,(t,n)=>n?n.toUpperCase():"")),nl=/\B([A-Z])/g,Ve=Cn(e=>e.replace(nl,"-$1").toLowerCase()),kn=Cn(e=>e.charAt(0).toUpperCase()+e.slice(1)),so=Cn(e=>e?`on${kn(e)}`:""),en=(e,t)=>!Object.is(e,t),Pn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Tn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},io=e=>{const t=parseFloat(e);return isNaN(t)?e:t},lo=e=>{const t=_e(e)?Number(e):NaN;return isNaN(t)?e:t};let gr;const ao=()=>gr||(gr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function We(e){if(W(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=_e(o)?il(o):We(o);if(r)for(const s in r)t[s]=r[s]}return t}else{if(_e(e))return e;if(de(e))return e}}const ol=/;(?![^(]*\))/g,rl=/:([^]+)/,sl=/\/\*[^]*?\*\//g;function il(e){const t={};return e.replace(sl,"").split(ol).forEach(n=>{if(n){const o=n.split(rl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function be(e){let t="";if(_e(e))t=e;else if(W(e))for(let n=0;n<e.length;n++){const o=be(e[n]);o&&(t+=o+" ")}else if(de(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ll=ze("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function mr(e){return!!e||e===""}const it=e=>_e(e)?e:e==null?"":W(e)||de(e)&&(e.toString===pr||!Q(e.toString))?JSON.stringify(e,vr,2):String(e),vr=(e,t)=>t&&t.__v_isRef?vr(e,t.value):Nt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:fr(t)?{[`Set(${t.size})`]:[...t.values()]}:de(t)&&!W(t)&&!hr(t)?String(t):t;let De;class al{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=De,!t&&De&&(this.index=(De.scopes||(De.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=De;try{return De=this,t()}finally{De=n}}}on(){De=this}off(){De=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 cl(e,t=De){t&&t.active&&t.effects.push(e)}function _r(){return De}function ul(e){De&&De.cleanups.push(e)}const co=e=>{const t=new Set(e);return t.w=0,t.n=0,t},br=e=>(e.w&dt)>0,yr=e=>(e.n&dt)>0,fl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=dt},dl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];br(r)&&!yr(r)?r.delete(e):t[n++]=r,r.w&=~dt,r.n&=~dt}t.length=n}},uo=new WeakMap;let tn=0,dt=1;const fo=30;let Ze;const Pt=Symbol(""),po=Symbol("");class ho{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,cl(this,o)}run(){if(!this.active)return this.fn();let t=Ze,n=pt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Ze,Ze=this,pt=!0,dt=1<<++tn,tn<=fo?fl(this):wr(this),this.fn()}finally{tn<=fo&&dl(this),dt=1<<--tn,Ze=this.parent,pt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ze===this?this.deferStop=!0:this.active&&(wr(this),this.onStop&&this.onStop(),this.active=!1)}}function wr(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let pt=!0;const xr=[];function Ft(){xr.push(pt),pt=!1}function Rt(){const e=xr.pop();pt=e===void 0?!0:e}function Le(e,t,n){if(pt&&Ze){let o=uo.get(e);o||uo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=co()),Cr(r)}}function Cr(e,t){let n=!1;tn<=fo?yr(e)||(e.n|=dt,n=!br(e)):n=!e.has(Ze),n&&(e.add(Ze),Ze.deps.push(e))}function lt(e,t,n,o,r,s){const i=uo.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&W(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":W(e)?ro(n)&&l.push(i.get("length")):(l.push(i.get(Pt)),Nt(e)&&l.push(i.get(po)));break;case"delete":W(e)||(l.push(i.get(Pt)),Nt(e)&&l.push(i.get(po)));break;case"set":Nt(e)&&l.push(i.get(Pt));break}if(l.length===1)l[0]&&go(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);go(co(a))}}function go(e,t){const n=W(e)?e:[...e];for(const o of n)o.computed&&kr(o);for(const o of n)o.computed||kr(o)}function kr(e,t){(e!==Ze||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const pl=ze("__proto__,__v_isRef,__isVue"),Pr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(oo)),hl=mo(),gl=mo(!1,!0),ml=mo(!0),Tr=vl();function vl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ie(this);for(let s=0,i=this.length;s<i;s++)Le(o,"get",s+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(ie)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Ft();const o=ie(this)[t].apply(this,n);return Rt(),o}}),e}function _l(e){const t=ie(this);return Le(t,"has",e),t.hasOwnProperty(e)}function mo(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?jl:Ar:t?jr:Lr).get(o))return o;const i=W(o);if(!e){if(i&&re(Tr,r))return Reflect.get(Tr,r,s);if(r==="hasOwnProperty")return _l}const l=Reflect.get(o,r,s);return(oo(r)?Pr.has(r):pl(r))||(e||Le(o,"get",r),t)?l:xe(l)?i&&ro(r)?l:l.value:de(l)?e?bo(l):nn(l):l}}const bl=Or(),yl=Or(!0);function Or(e=!1){return function(n,o,r,s){let i=n[o];if(Vt(i)&&xe(i)&&!xe(r))return!1;if(!e&&(!Ln(r)&&!Vt(r)&&(i=ie(i),r=ie(r)),!W(n)&&xe(i)&&!xe(r)))return i.value=r,!0;const l=W(n)&&ro(o)?Number(o)<n.length:re(n,o),a=Reflect.set(n,o,r,s);return n===ie(s)&&(l?en(r,i)&&lt(n,"set",o,r):lt(n,"add",o,r)),a}}function wl(e,t){const n=re(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&lt(e,"delete",t,void 0),o}function xl(e,t){const n=Reflect.has(e,t);return(!oo(t)||!Pr.has(t))&&Le(e,"has",t),n}function Cl(e){return Le(e,"iterate",W(e)?"length":Pt),Reflect.ownKeys(e)}const $r={get:hl,set:bl,deleteProperty:wl,has:xl,ownKeys:Cl},kl={get:ml,set(e,t){return!0},deleteProperty(e,t){return!0}},Pl=ve({},$r,{get:gl,set:yl}),vo=e=>e,On=e=>Reflect.getPrototypeOf(e);function $n(e,t,n=!1,o=!1){e=e.__v_raw;const r=ie(e),s=ie(t);n||(t!==s&&Le(r,"get",t),Le(r,"get",s));const{has:i}=On(r),l=o?vo:n?wo: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 In(e,t=!1){const n=this.__v_raw,o=ie(n),r=ie(e);return t||(e!==r&&Le(o,"has",e),Le(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function En(e,t=!1){return e=e.__v_raw,!t&&Le(ie(e),"iterate",Pt),Reflect.get(e,"size",e)}function Ir(e){e=ie(e);const t=ie(this);return On(t).has.call(t,e)||(t.add(e),lt(t,"add",e,e)),this}function Er(e,t){t=ie(t);const n=ie(this),{has:o,get:r}=On(n);let s=o.call(n,e);s||(e=ie(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?en(t,i)&&lt(n,"set",e,t):lt(n,"add",e,t),this}function Sr(e){const t=ie(this),{has:n,get:o}=On(t);let r=n.call(t,e);r||(e=ie(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&lt(t,"delete",e,void 0),s}function Mr(){const e=ie(this),t=e.size!==0,n=e.clear();return t&&lt(e,"clear",void 0,void 0),n}function Sn(e,t){return function(o,r){const s=this,i=s.__v_raw,l=ie(i),a=t?vo:e?wo:on;return!e&&Le(l,"iterate",Pt),i.forEach((c,u)=>o.call(r,a(c),a(u),s))}}function Mn(e,t,n){return function(...o){const r=this.__v_raw,s=ie(r),i=Nt(s),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=r[e](...o),u=n?vo:t?wo:on;return!t&&Le(s,"iterate",a?po:Pt),{next(){const{value:d,done:h}=c.next();return h?{value:d,done:h}:{value:l?[u(d[0]),u(d[1])]:u(d),done:h}},[Symbol.iterator](){return this}}}}function ht(e){return function(...t){return e==="delete"?!1:this}}function Tl(){const e={get(s){return $n(this,s)},get size(){return En(this)},has:In,add:Ir,set:Er,delete:Sr,clear:Mr,forEach:Sn(!1,!1)},t={get(s){return $n(this,s,!1,!0)},get size(){return En(this)},has:In,add:Ir,set:Er,delete:Sr,clear:Mr,forEach:Sn(!1,!0)},n={get(s){return $n(this,s,!0)},get size(){return En(this,!0)},has(s){return In.call(this,s,!0)},add:ht("add"),set:ht("set"),delete:ht("delete"),clear:ht("clear"),forEach:Sn(!0,!1)},o={get(s){return $n(this,s,!0,!0)},get size(){return En(this,!0)},has(s){return In.call(this,s,!0)},add:ht("add"),set:ht("set"),delete:ht("delete"),clear:ht("clear"),forEach:Sn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Mn(s,!1,!1),n[s]=Mn(s,!0,!1),t[s]=Mn(s,!1,!0),o[s]=Mn(s,!0,!0)}),[e,n,t,o]}const[Ol,$l,Il,El]=Tl();function _o(e,t){const n=t?e?El:Il:e?$l:Ol;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 Sl={get:_o(!1,!1)},Ml={get:_o(!1,!0)},Ll={get:_o(!0,!1)},Lr=new WeakMap,jr=new WeakMap,Ar=new WeakMap,jl=new WeakMap;function Al(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function zl(e){return e.__v_skip||!Object.isExtensible(e)?0:Al(el(e))}function nn(e){return Vt(e)?e:yo(e,!1,$r,Sl,Lr)}function Bl(e){return yo(e,!1,Pl,Ml,jr)}function bo(e){return yo(e,!0,kl,Ll,Ar)}function yo(e,t,n,o,r){if(!de(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=zl(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 Vt(e)?Ht(e.__v_raw):!!(e&&e.__v_isReactive)}function Vt(e){return!!(e&&e.__v_isReadonly)}function Ln(e){return!!(e&&e.__v_isShallow)}function zr(e){return Ht(e)||Vt(e)}function ie(e){const t=e&&e.__v_raw;return t?ie(t):e}function Br(e){return Tn(e,"__v_skip",!0),e}const on=e=>de(e)?nn(e):e,wo=e=>de(e)?bo(e):e;function Dr(e){pt&&Ze&&(e=ie(e),Cr(e.dep||(e.dep=co())))}function Nr(e,t){e=ie(e);const n=e.dep;n&&go(n)}function xe(e){return!!(e&&e.__v_isRef===!0)}function ee(e){return Rr(e,!1)}function Fr(e){return Rr(e,!0)}function Rr(e,t){return xe(e)?e:new Dl(e,t)}class Dl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ie(t),this._value=n?t:on(t)}get value(){return Dr(this),this._value}set value(t){const n=this.__v_isShallow||Ln(t)||Vt(t);t=n?t:ie(t),en(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:on(t),Nr(this))}}function K(e){return xe(e)?e.value:e}const Nl={get:(e,t,n)=>K(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 Hr(e){return Ht(e)?e:new Proxy(e,Nl)}class Fl{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 ho(t,()=>{this._dirty||(this._dirty=!0,Nr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=ie(this);return Dr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Rl(e,t,n=!1){let o,r;const s=Q(e);return s?(o=e,r=Ye):(o=e.get,r=e.set),new Fl(o,r,s||!r,n)}function up(e,...t){}function gt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){jn(s,t,n)}return r}function Ke(e,t,n,o){if(Q(e)){const s=gt(e,t,n,o);return s&&dr(s)&&s.catch(i=>{jn(i,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(Ke(e[s],t,n,o));return r}function jn(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){gt(a,null,10,[e,i,l]);return}}Hl(e,n,r,o)}function Hl(e,t,n,o=!0){console.error(e)}let rn=!1,xo=!1;const Ie=[];let et=0;const Wt=[];let at=null,Tt=0;const Vr=Promise.resolve();let Co=null;function ct(e){const t=Co||Vr;return e?t.then(this?e.bind(this):e):t}function Vl(e){let t=et+1,n=Ie.length;for(;t<n;){const o=t+n>>>1;sn(Ie[o])<e?t=o+1:n=o}return t}function ko(e){(!Ie.length||!Ie.includes(e,rn&&e.allowRecurse?et+1:et))&&(e.id==null?Ie.push(e):Ie.splice(Vl(e.id),0,e),Wr())}function Wr(){!rn&&!xo&&(xo=!0,Co=Vr.then(qr))}function Wl(e){const t=Ie.indexOf(e);t>et&&Ie.splice(t,1)}function Kl(e){W(e)?Wt.push(...e):(!at||!at.includes(e,e.allowRecurse?Tt+1:Tt))&&Wt.push(e),Wr()}function Kr(e,t=rn?et+1:0){for(;t<Ie.length;t++){const n=Ie[t];n&&n.pre&&(Ie.splice(t,1),t--,n())}}function Ur(e){if(Wt.length){const t=[...new Set(Wt)];if(Wt.length=0,at){at.push(...t);return}for(at=t,at.sort((n,o)=>sn(n)-sn(o)),Tt=0;Tt<at.length;Tt++)at[Tt]();at=null,Tt=0}}const sn=e=>e.id==null?1/0:e.id,Ul=(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 qr(e){xo=!1,rn=!0,Ie.sort(Ul);const t=Ye;try{for(et=0;et<Ie.length;et++){const n=Ie[et];n&&n.active!==!1&&gt(n,null,14)}}finally{et=0,Ie.length=0,Ur(),rn=!1,Co=null,(Ie.length||Wt.length)&&qr()}}function ql(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||G;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:h}=o[u]||G;h&&(r=n.map(m=>_e(m)?m.trim():m)),d&&(r=n.map(io))}let l,a=o[l=so(t)]||o[l=so(Be(t))];!a&&s&&(a=o[l=so(Ve(t))]),a&&Ke(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,Ke(c,e,6,r)}}function Yr(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=Yr(c,t,!0);u&&(l=!0,ve(i,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!s&&!l?(de(e)&&o.set(e,null),null):(W(s)?s.forEach(a=>i[a]=null):ve(i,s),de(e)&&o.set(e,i),i)}function An(e,t){return!e||!yn(t)?!1:(t=t.slice(2).replace(/Once$/,""),re(e,t[0].toLowerCase()+t.slice(1))||re(e,Ve(t))||re(e,t))}let Te=null,Zr=null;function zn(e){const t=Te;return Te=e,Zr=e&&e.type.__scopeId||null,t}function oe(e,t=Te,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Ps(-1);const s=zn(t);let i;try{i=e(...r)}finally{zn(s),o._d&&Ps(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function fp(){}function Po(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:h,setupState:m,ctx:C,inheritAttrs:y}=e;let V,N;const z=zn(e);try{if(n.shapeFlag&4){const A=r||o;V=nt(u.call(A,A,d,s,m,h,C)),N=a}else{const A=t;V=nt(A.length>1?A(s,{attrs:a,slots:l,emit:c}):A(s,null)),N=t.props?a:Yl(a)}}catch(A){un.length=0,jn(A,e,1),V=Y(qe)}let X=V;if(N&&y!==!1){const A=Object.keys(N),{shapeFlag:E}=X;A.length&&E&7&&(i&&A.some(to)&&(N=Zl(N,i)),X=vt(X,N))}return n.dirs&&(X=vt(X),X.dirs=X.dirs?X.dirs.concat(n.dirs):n.dirs),n.transition&&(X.transition=n.transition),V=X,zn(z),V}const Yl=e=>{let t;for(const n in e)(n==="class"||n==="style"||yn(n))&&((t||(t={}))[n]=e[n]);return t},Zl=(e,t)=>{const n={};for(const o in e)(!to(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Xl(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?Xr(o,i,c):!!i;if(a&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const h=u[d];if(i[h]!==o[h]&&!An(c,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===i?!1:o?i?Xr(o,i,c):!0:!!i;return!1}function Xr(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 Jl({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Ql=e=>e.__isSuspense;function Gl(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):Kl(e)}function ea(e,t){return To(e,null,t)}const Bn={};function he(e,t,n){return To(e,t,n)}function To(e,t,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:i}=G){var l;const a=_r()===((l=Pe)==null?void 0:l.scope)?Pe:null;let c,u=!1,d=!1;if(xe(e)?(c=()=>e.value,u=Ln(e)):Ht(e)?(c=()=>e,o=!0):W(e)?(d=!0,u=e.some(A=>Ht(A)||Ln(A)),c=()=>e.map(A=>{if(xe(A))return A.value;if(Ht(A))return Ot(A);if(Q(A))return gt(A,a,2)})):Q(e)?t?c=()=>gt(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),Ke(e,a,3,[m])}:c=Ye,t&&o){const A=c;c=()=>Ot(A())}let h,m=A=>{h=z.onStop=()=>{gt(A,a,4)}},C;if(dn)if(m=Ye,t?n&&Ke(t,a,3,[c(),d?[]:void 0,m]):c(),r==="sync"){const A=Ua();C=A.__watcherHandles||(A.__watcherHandles=[])}else return Ye;let y=d?new Array(e.length).fill(Bn):Bn;const V=()=>{if(z.active)if(t){const A=z.run();(o||u||(d?A.some((E,B)=>en(E,y[B])):en(A,y)))&&(h&&h(),Ke(t,a,3,[A,y===Bn?void 0:d&&y[0]===Bn?[]:y,m]),y=A)}else z.run()};V.allowRecurse=!!t;let N;r==="sync"?N=V:r==="post"?N=()=>je(V,a&&a.suspense):(V.pre=!0,a&&(V.id=a.uid),N=()=>ko(V));const z=new ho(c,N);t?n?V():y=z.run():r==="post"?je(z.run.bind(z),a&&a.suspense):z.run();const X=()=>{z.stop(),a&&a.scope&&no(a.scope.effects,z)};return C&&C.push(X),X}function ta(e,t,n){const o=this.proxy,r=_e(e)?e.includes(".")?Jr(o,e):()=>o[e]:e.bind(o,o);let s;Q(t)?s=t:(s=t.handler,n=t);const i=Pe;Ut(this);const l=To(r,s.bind(o),n);return i?Ut(i):Mt(),l}function Jr(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 Ot(e,t){if(!de(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),xe(e))Ot(e.value,t);else if(W(e))for(let n=0;n<e.length;n++)Ot(e[n],t);else if(fr(e)||Nt(e))e.forEach(n=>{Ot(n,t)});else if(hr(e))for(const n in e)Ot(e[n],t);return e}function mt(e,t){const n=Te;if(n===null)return e;const o=Yn(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,l,a,c=G]=t[s];i&&(Q(i)&&(i={mounted:i,updated:i}),i.deep&&Ot(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&&(Ft(),Ke(a,n,8,[e.el,l,e,t]),Rt())}}function na(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return tt(()=>{e.isMounted=!0}),os(()=>{e.isUnmounting=!0}),e}const Ue=[Function,Array],Qr={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},oa={name:"BaseTransition",props:Qr,setup(e,{slots:t}){const n=$s(),o=na();let r;return()=>{const s=t.default&&ts(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const y of s)if(y.type!==qe){i=y;break}}const l=ie(e),{mode:a}=l;if(o.isLeaving)return $o(i);const c=es(i);if(!c)return $o(i);const u=Oo(c,l,o,n);Io(c,u);const d=n.subTree,h=d&&es(d);let m=!1;const{getTransitionKey:C}=c.type;if(C){const y=C();r===void 0?r=y:y!==r&&(r=y,m=!0)}if(h&&h.type!==qe&&(!St(c,h)||m)){const y=Oo(h,l,o,n);if(Io(h,y),a==="out-in")return o.isLeaving=!0,y.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},$o(i);a==="in-out"&&c.type!==qe&&(y.delayLeave=(V,N,z)=>{const X=Gr(o,h);X[String(h.key)]=h,V._leaveCb=()=>{N(),V._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=z})}return i}}};function Gr(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 Oo(e,t,n,o){const{appear:r,mode:s,persisted:i=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:h,onAfterLeave:m,onLeaveCancelled:C,onBeforeAppear:y,onAppear:V,onAfterAppear:N,onAppearCancelled:z}=t,X=String(e.key),A=Gr(n,e),E=(b,T)=>{b&&Ke(b,o,9,T)},B=(b,T)=>{const H=T[1];E(b,T),W(b)?b.every(ae=>ae.length<=1)&&H():b.length<=1&&H()},q={mode:s,persisted:i,beforeEnter(b){let T=l;if(!n.isMounted)if(r)T=y||l;else return;b._leaveCb&&b._leaveCb(!0);const H=A[X];H&&St(e,H)&&H.el._leaveCb&&H.el._leaveCb(),E(T,[b])},enter(b){let T=a,H=c,ae=u;if(!n.isMounted)if(r)T=V||a,H=N||c,ae=z||u;else return;let S=!1;const se=b._enterCb=Ce=>{S||(S=!0,Ce?E(ae,[b]):E(H,[b]),q.delayedLeave&&q.delayedLeave(),b._enterCb=void 0)};T?B(T,[b,se]):se()},leave(b,T){const H=String(e.key);if(b._enterCb&&b._enterCb(!0),n.isUnmounting)return T();E(d,[b]);let ae=!1;const S=b._leaveCb=se=>{ae||(ae=!0,T(),se?E(C,[b]):E(m,[b]),b._leaveCb=void 0,A[H]===e&&delete A[H])};A[H]=e,h?B(h,[b,S]):S()},clone(b){return Oo(b,t,n,o)}};return q}function $o(e){if(Dn(e))return e=vt(e),e.children=null,e}function es(e){return Dn(e)?e.children?e.children[0]:void 0:e}function Io(e,t){e.shapeFlag&6&&e.component?Io(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 ts(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===ke?(i.patchFlag&128&&r++,o=o.concat(ts(i.children,t,l))):(t||i.type!==qe)&&o.push(l!=null?vt(i,{key:l}):i)}if(r>1)for(let s=0;s<o.length;s++)o[s].patchFlag=-2;return o}function Oe(e,t){return Q(e)?(()=>ve({name:e.name},t,{setup:e}))():e}const ln=e=>!!e.type.__asyncLoader,Dn=e=>e.type.__isKeepAlive;function ra(e,t){ns(e,"a",t)}function sa(e,t){ns(e,"da",t)}function ns(e,t,n=Pe){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Nn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Dn(r.parent.vnode)&&ia(o,t,n,r),r=r.parent}}function ia(e,t,n,o){const r=Nn(t,e,o,!0);ft(()=>{no(o[t],r)},n)}function Nn(e,t,n=Pe,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Ft(),Ut(n);const l=Ke(t,n,e,i);return Mt(),Rt(),l});return o?r.unshift(s):r.push(s),s}}const ut=e=>(t,n=Pe)=>(!dn||e==="sp")&&Nn(e,(...o)=>t(...o),n),la=ut("bm"),tt=ut("m"),aa=ut("bu"),ca=ut("u"),os=ut("bum"),ft=ut("um"),ua=ut("sp"),fa=ut("rtg"),da=ut("rtc");function pa(e,t=Pe){Nn("ec",e,t)}const rs="components",ss=Symbol.for("v-ndc");function ha(e){return _e(e)?ga(rs,e,!1)||e:e||ss}function ga(e,t,n=!0,o=!1){const r=Te||Pe;if(r){const s=r.type;if(e===rs){const l=Va(s,!1);if(l&&(l===t||l===Be(t)||l===kn(Be(t))))return s}const i=is(r[e]||s[e],t)||is(r.appContext[e],t);return!i&&o?s:i}}function is(e,t){return e&&(e[t]||e[Be(t)]||e[kn(Be(t))])}function Fn(e,t,n,o){let r;const s=n&&n[o];if(W(e)||_e(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(de(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 ls(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(W(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 $e(e,t,n={},o,r){if(Te.isCE||Te.parent&&ln(Te.parent)&&Te.parent.isCE)return t!=="default"&&(n.name=t),Y("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),L();const i=s&&as(s(n)),l=Ee(ke,{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 as(e){return e.some(t=>Kn(t)?!(t.type===qe||t.type===ke&&!as(t.children)):!0)?e:null}const Eo=e=>e?Es(e)?Yn(e)||e.proxy:Eo(e.parent):null,an=ve(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=>Eo(e.parent),$root:e=>Eo(e.root),$emit:e=>e.emit,$options:e=>Lo(e),$forceUpdate:e=>e.f||(e.f=()=>ko(e.update)),$nextTick:e=>e.n||(e.n=ct.bind(e.proxy)),$watch:e=>ta.bind(e)}),So=(e,t)=>e!==G&&!e.__isScriptSetup&&re(e,t),ma={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(So(o,t))return i[t]=1,o[t];if(r!==G&&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!==G&&re(n,t))return i[t]=4,n[t];Mo&&(i[t]=0)}}const u=an[t];let d,h;if(u)return t==="$attrs"&&Le(e,"get",t),u(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==G&&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 So(r,t)?(r[t]=n,!0):o!==G&&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!==G&&re(e,i)||So(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 cs(e){return W(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Mo=!0;function va(e){const t=Lo(e),n=e.proxy,o=e.ctx;Mo=!1,t.beforeCreate&&us(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:l,provide:a,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:m,updated:C,activated:y,deactivated:V,beforeDestroy:N,beforeUnmount:z,destroyed:X,unmounted:A,render:E,renderTracked:B,renderTriggered:q,errorCaptured:b,serverPrefetch:T,expose:H,inheritAttrs:ae,components:S,directives:se,filters:Ce}=t;if(c&&_a(c,o,null),i)for(const x in i){const M=i[x];Q(M)&&(o[x]=M.bind(n))}if(r){const x=r.call(n,n);de(x)&&(e.data=nn(x))}if(Mo=!0,s)for(const x in s){const M=s[x],te=Q(M)?M.bind(n,n):Q(M.get)?M.get.bind(n,n):Ye,pe=!Q(M)&&Q(M.set)?M.set.bind(n):Ye,Je=ue({get:te,set:pe});Object.defineProperty(o,x,{enumerable:!0,configurable:!0,get:()=>Je.value,set:Ae=>Je.value=Ae})}if(l)for(const x in l)fs(l[x],o,n,x);if(a){const x=Q(a)?a.call(n):a;Reflect.ownKeys(x).forEach(M=>{Vn(M,x[M])})}u&&us(u,e,"c");function le(x,M){W(M)?M.forEach(te=>x(te.bind(n))):M&&x(M.bind(n))}if(le(la,d),le(tt,h),le(aa,m),le(ca,C),le(ra,y),le(sa,V),le(pa,b),le(da,B),le(fa,q),le(os,z),le(ft,A),le(ua,T),W(H))if(H.length){const x=e.exposed||(e.exposed={});H.forEach(M=>{Object.defineProperty(x,M,{get:()=>n[M],set:te=>n[M]=te})})}else e.exposed||(e.exposed={});E&&e.render===Ye&&(e.render=E),ae!=null&&(e.inheritAttrs=ae),S&&(e.components=S),se&&(e.directives=se)}function _a(e,t,n=Ye){W(e)&&(e=jo(e));for(const o in e){const r=e[o];let s;de(r)?"default"in r?s=It(r.from||o,r.default,!0):s=It(r.from||o):s=It(r),xe(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[o]=s}}function us(e,t,n){Ke(W(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function fs(e,t,n,o){const r=o.includes(".")?Jr(n,o):()=>n[o];if(_e(e)){const s=t[e];Q(s)&&he(r,s)}else if(Q(e))he(r,e.bind(n));else if(de(e))if(W(e))e.forEach(s=>fs(s,t,n,o));else{const s=Q(e.handler)?e.handler.bind(n):t[e.handler];Q(s)&&he(r,s,e)}}function Lo(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)),de(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=ba[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const ba={data:ds,props:ps,emits:ps,methods:cn,computed:cn,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:cn,directives:cn,watch:wa,provide:ds,inject:ya};function ds(e,t){return t?e?function(){return ve(Q(e)?e.call(this,this):e,Q(t)?t.call(this,this):t)}:t:e}function ya(e,t){return cn(jo(e),jo(t))}function jo(e){if(W(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 cn(e,t){return e?ve(Object.create(null),e,t):t}function ps(e,t){return e?W(e)&&W(t)?[...new Set([...e,...t])]:ve(Object.create(null),cs(e),cs(t??{})):t}function wa(e,t){if(!e)return t;if(!t)return e;const n=ve(Object.create(null),e);for(const o in t)n[o]=Se(e[o],t[o]);return n}function hs(){return{app:null,config:{isNativeTag:Ji,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 xa=0;function Ca(e,t){return function(o,r=null){Q(o)||(o=ve({},o)),r!=null&&!de(r)&&(r=null);const s=hs(),i=new Set;let l=!1;const a=s.app={_uid:xa++,_component:o,_props:r,_container:null,_context:s,_instance:null,version:qa,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 h=Y(o,r);return h.appContext=s,u&&t?t(h,c):e(h,c,d),l=!0,a._container=c,c.__vue_app__=a,Yn(h.component)||h.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return s.provides[c]=u,a},runWithContext(c){Hn=a;try{return c()}finally{Hn=null}}};return a}}let Hn=null;function Vn(e,t){if(Pe){let n=Pe.provides;const o=Pe.parent&&Pe.parent.provides;o===n&&(n=Pe.provides=Object.create(o)),n[e]=t}}function It(e,t,n=!1){const o=Pe||Te;if(o||Hn){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Hn._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 ka(e,t,n,o=!1){const r={},s={};Tn(s,Un,1),e.propsDefaults=Object.create(null),gs(e,t,r,s);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:Bl(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function Pa(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,l=ie(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 h=u[d];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 C=Be(h);r[C]=Ao(a,l,C,m,e,!1)}else m!==s[h]&&(s[h]=m,c=!0)}}}else{gs(e,t,r,s)&&(c=!0);let u;for(const d in l)(!t||!re(t,d)&&((u=Ve(d))===d||!re(t,u)))&&(a?n&&(n[d]!==void 0||n[u]!==void 0)&&(r[d]=Ao(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&&lt(e,"set","$attrs")}function gs(e,t,n,o){const[r,s]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(xn(a))continue;const c=t[a];let u;r&&re(r,u=Be(a))?!s||!s.includes(u)?n[u]=c:(l||(l={}))[u]=c:An(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,i=!0)}if(s){const a=ie(n),c=l||G;for(let u=0;u<s.length;u++){const d=s[u];n[d]=Ao(r,a,d,c[d],e,!re(c,d))}}return i}function Ao(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]:(Ut(r),o=c[n]=a.call(null,t),Mt())}else o=a}i[0]&&(s&&!l?o=!1:i[1]&&(o===""||o===Ve(n))&&(o=!0))}return o}function ms(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[h,m]=ms(d,t,!0);ve(i,h),m&&l.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!a)return de(e)&&o.set(e,He),He;if(W(s))for(let u=0;u<s.length;u++){const d=Be(s[u]);vs(d)&&(i[d]=G)}else if(s)for(const u in s){const d=Be(u);if(vs(d)){const h=s[u],m=i[d]=W(h)||Q(h)?{type:h}:ve({},h);if(m){const C=ys(Boolean,m.type),y=ys(String,m.type);m[0]=C>-1,m[1]=y<0||C<y,(C>-1||re(m,"default"))&&l.push(d)}}}const c=[i,l];return de(e)&&o.set(e,c),c}function vs(e){return e[0]!=="$"}function _s(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function bs(e,t){return _s(e)===_s(t)}function ys(e,t){return W(t)?t.findIndex(n=>bs(n,e)):Q(t)&&bs(t,e)?0:-1}const ws=e=>e[0]==="_"||e==="$stable",zo=e=>W(e)?e.map(nt):[nt(e)],Ta=(e,t,n)=>{if(t._n)return t;const o=oe((...r)=>zo(t(...r)),n);return o._c=!1,o},xs=(e,t,n)=>{const o=e._ctx;for(const r in e){if(ws(r))continue;const s=e[r];if(Q(s))t[r]=Ta(r,s,o);else if(s!=null){const i=zo(s);t[r]=()=>i}}},Cs=(e,t)=>{const n=zo(t);e.slots.default=()=>n},Oa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ie(t),Tn(t,"_",n)):xs(t,e.slots={})}else e.slots={},t&&Cs(e,t);Tn(e.slots,Un,1)},$a=(e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,i=G;if(o.shapeFlag&32){const l=t._;l?n&&l===1?s=!1:(ve(r,t),!n&&l===1&&delete r._):(s=!t.$stable,xs(t,r)),i=t}else t&&(Cs(e,t),i={default:1});if(s)for(const l in r)!ws(l)&&!(l in i)&&delete r[l]};function Bo(e,t,n,o,r=!1){if(W(e)){e.forEach((h,m)=>Bo(h,t&&(W(t)?t[m]:t),n,o,r));return}if(ln(o)&&!r)return;const s=o.shapeFlag&4?Yn(o.component)||o.component.proxy:o.el,i=r?null:s,{i:l,r:a}=e,c=t&&t.r,u=l.refs===G?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(_e(c)?(u[c]=null,re(d,c)&&(d[c]=null)):xe(c)&&(c.value=null)),Q(a))gt(a,l,12,[i,u]);else{const h=_e(a),m=xe(a);if(h||m){const C=()=>{if(e.f){const y=h?re(d,a)?d[a]:u[a]:a.value;r?W(y)&&no(y,s):W(y)?y.includes(s)||y.push(s):h?(u[a]=[s],re(d,a)&&(d[a]=u[a])):(a.value=[s],e.k&&(u[e.k]=a.value))}else h?(u[a]=i,re(d,a)&&(d[a]=i)):m&&(a.value=i,e.k&&(u[e.k]=i))};i?(C.id=-1,je(C,n)):C()}}}const je=Gl;function Ia(e){return Ea(e)}function Ea(e,t){const n=ao();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:l,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:h,setScopeId:m=Ye,insertStaticContent:C}=e,y=(f,p,g,_=null,v=null,P=null,I=!1,k=null,O=!!p.dynamicChildren)=>{if(f===p)return;f&&!St(f,p)&&(_=Fe(f),Ae(f,v,P,!0),f=null),p.patchFlag===-2&&(O=!1,p.dynamicChildren=null);const{type:w,ref:F,shapeFlag:j}=p;switch(w){case Wn:V(f,p,g,_);break;case qe:N(f,p,g,_);break;case Do:f==null&&z(p,g,_,I);break;case ke:S(f,p,g,_,v,P,I,k,O);break;default:j&1?E(f,p,g,_,v,P,I,k,O):j&6?se(f,p,g,_,v,P,I,k,O):(j&64||j&128)&&w.process(f,p,g,_,v,P,I,k,O,Qe)}F!=null&&v&&Bo(F,f&&f.ref,P,p||f,!p)},V=(f,p,g,_)=>{if(f==null)o(p.el=l(p.children),g,_);else{const v=p.el=f.el;p.children!==f.children&&c(v,p.children)}},N=(f,p,g,_)=>{f==null?o(p.el=a(p.children||""),g,_):p.el=f.el},z=(f,p,g,_)=>{[f.el,f.anchor]=C(f.children,p,g,_,f.el,f.anchor)},X=({el:f,anchor:p},g,_)=>{let v;for(;f&&f!==p;)v=h(f),o(f,g,_),f=v;o(p,g,_)},A=({el:f,anchor:p})=>{let g;for(;f&&f!==p;)g=h(f),r(f),f=g;r(p)},E=(f,p,g,_,v,P,I,k,O)=>{I=I||p.type==="svg",f==null?B(p,g,_,v,P,I,k,O):T(f,p,v,P,I,k,O)},B=(f,p,g,_,v,P,I,k)=>{let O,w;const{type:F,props:j,shapeFlag:R,transition:D,dirs:ne}=f;if(O=f.el=i(f.type,P,j&&j.is,j),R&8?u(O,f.children):R&16&&b(f.children,O,null,_,v,P&&F!=="foreignObject",I,k),ne&&$t(f,null,_,"created"),q(O,f,f.scopeId,I,_),j){for(const ce in j)ce!=="value"&&!xn(ce)&&s(O,ce,null,j[ce],P,f.children,_,v,me);"value"in j&&s(O,"value",null,j.value),(w=j.onVnodeBeforeMount)&&ot(w,_,f)}ne&&$t(f,null,_,"beforeMount");const fe=(!v||v&&!v.pendingBranch)&&D&&!D.persisted;fe&&D.beforeEnter(O),o(O,p,g),((w=j&&j.onVnodeMounted)||fe||ne)&&je(()=>{w&&ot(w,_,f),fe&&D.enter(O),ne&&$t(f,null,_,"mounted")},v)},q=(f,p,g,_,v)=>{if(g&&m(f,g),_)for(let P=0;P<_.length;P++)m(f,_[P]);if(v){let P=v.subTree;if(p===P){const I=v.vnode;q(f,I,I.scopeId,I.slotScopeIds,v.parent)}}},b=(f,p,g,_,v,P,I,k,O=0)=>{for(let w=O;w<f.length;w++){const F=f[w]=k?bt(f[w]):nt(f[w]);y(null,F,p,g,_,v,P,I,k)}},T=(f,p,g,_,v,P,I)=>{const k=p.el=f.el;let{patchFlag:O,dynamicChildren:w,dirs:F}=p;O|=f.patchFlag&16;const j=f.props||G,R=p.props||G;let D;g&&Et(g,!1),(D=R.onVnodeBeforeUpdate)&&ot(D,g,p,f),F&&$t(p,f,g,"beforeUpdate"),g&&Et(g,!0);const ne=v&&p.type!=="foreignObject";if(w?H(f.dynamicChildren,w,k,g,_,ne,P):I||M(f,p,k,null,g,_,ne,P,!1),O>0){if(O&16)ae(k,p,j,R,g,_,v);else if(O&2&&j.class!==R.class&&s(k,"class",null,R.class,v),O&4&&s(k,"style",j.style,R.style,v),O&8){const fe=p.dynamicProps;for(let ce=0;ce<fe.length;ce++){const we=fe[ce],Ge=j[we],Gt=R[we];(Gt!==Ge||we==="value")&&s(k,we,Ge,Gt,v,f.children,g,_,me)}}O&1&&f.children!==p.children&&u(k,p.children)}else!I&&w==null&&ae(k,p,j,R,g,_,v);((D=R.onVnodeUpdated)||F)&&je(()=>{D&&ot(D,g,p,f),F&&$t(p,f,g,"updated")},_)},H=(f,p,g,_,v,P,I)=>{for(let k=0;k<p.length;k++){const O=f[k],w=p[k],F=O.el&&(O.type===ke||!St(O,w)||O.shapeFlag&70)?d(O.el):g;y(O,w,F,null,_,v,P,I,!0)}},ae=(f,p,g,_,v,P,I)=>{if(g!==_){if(g!==G)for(const k in g)!xn(k)&&!(k in _)&&s(f,k,g[k],null,I,p.children,v,P,me);for(const k in _){if(xn(k))continue;const O=_[k],w=g[k];O!==w&&k!=="value"&&s(f,k,w,O,I,p.children,v,P,me)}"value"in _&&s(f,"value",g.value,_.value)}},S=(f,p,g,_,v,P,I,k,O)=>{const w=p.el=f?f.el:l(""),F=p.anchor=f?f.anchor:l("");let{patchFlag:j,dynamicChildren:R,slotScopeIds:D}=p;D&&(k=k?k.concat(D):D),f==null?(o(w,g,_),o(F,g,_),b(p.children,g,F,v,P,I,k,O)):j>0&&j&64&&R&&f.dynamicChildren?(H(f.dynamicChildren,R,g,v,P,I,k),(p.key!=null||v&&p===v.subTree)&&ks(f,p,!0)):M(f,p,g,F,v,P,I,k,O)},se=(f,p,g,_,v,P,I,k,O)=>{p.slotScopeIds=k,f==null?p.shapeFlag&512?v.ctx.activate(p,g,_,I,O):Ce(p,g,_,v,P,I,O):Me(f,p,O)},Ce=(f,p,g,_,v,P,I)=>{const k=f.component=Da(f,_,v);if(Dn(f)&&(k.ctx.renderer=Qe),Na(k),k.asyncDep){if(v&&v.registerDep(k,le),!f.el){const O=k.subTree=Y(qe);N(null,O,p,g)}return}le(k,f,p,g,v,P,I)},Me=(f,p,g)=>{const _=p.component=f.component;if(Xl(f,p,g))if(_.asyncDep&&!_.asyncResolved){x(_,p,g);return}else _.next=p,Wl(_.update),_.update();else p.el=f.el,_.vnode=p},le=(f,p,g,_,v,P,I)=>{const k=()=>{if(f.isMounted){let{next:F,bu:j,u:R,parent:D,vnode:ne}=f,fe=F,ce;Et(f,!1),F?(F.el=ne.el,x(f,F,I)):F=ne,j&&Pn(j),(ce=F.props&&F.props.onVnodeBeforeUpdate)&&ot(ce,D,F,ne),Et(f,!0);const we=Po(f),Ge=f.subTree;f.subTree=we,y(Ge,we,d(Ge.el),Fe(Ge),f,v,P),F.el=we.el,fe===null&&Jl(f,we.el),R&&je(R,v),(ce=F.props&&F.props.onVnodeUpdated)&&je(()=>ot(ce,D,F,ne),v)}else{let F;const{el:j,props:R}=p,{bm:D,m:ne,parent:fe}=f,ce=ln(p);if(Et(f,!1),D&&Pn(D),!ce&&(F=R&&R.onVnodeBeforeMount)&&ot(F,fe,p),Et(f,!0),j&&_n){const we=()=>{f.subTree=Po(f),_n(j,f.subTree,f,v,null)};ce?p.type.__asyncLoader().then(()=>!f.isUnmounted&&we()):we()}else{const we=f.subTree=Po(f);y(null,we,g,_,f,v,P),p.el=we.el}if(ne&&je(ne,v),!ce&&(F=R&&R.onVnodeMounted)){const we=p;je(()=>ot(F,fe,we),v)}(p.shapeFlag&256||fe&&ln(fe.vnode)&&fe.vnode.shapeFlag&256)&&f.a&&je(f.a,v),f.isMounted=!0,p=g=_=null}},O=f.effect=new ho(k,()=>ko(w),f.scope),w=f.update=()=>O.run();w.id=f.uid,Et(f,!0),w()},x=(f,p,g)=>{p.component=f;const _=f.vnode.props;f.vnode=p,f.next=null,Pa(f,p.props,_,g),$a(f,p.children,g),Ft(),Kr(),Rt()},M=(f,p,g,_,v,P,I,k,O=!1)=>{const w=f&&f.children,F=f?f.shapeFlag:0,j=p.children,{patchFlag:R,shapeFlag:D}=p;if(R>0){if(R&128){pe(w,j,g,_,v,P,I,k,O);return}else if(R&256){te(w,j,g,_,v,P,I,k,O);return}}D&8?(F&16&&me(w,v,P),j!==w&&u(g,j)):F&16?D&16?pe(w,j,g,_,v,P,I,k,O):me(w,v,P,!0):(F&8&&u(g,""),D&16&&b(j,g,_,v,P,I,k,O))},te=(f,p,g,_,v,P,I,k,O)=>{f=f||He,p=p||He;const w=f.length,F=p.length,j=Math.min(w,F);let R;for(R=0;R<j;R++){const D=p[R]=O?bt(p[R]):nt(p[R]);y(f[R],D,g,null,v,P,I,k,O)}w>F?me(f,v,P,!0,!1,j):b(p,g,_,v,P,I,k,O,j)},pe=(f,p,g,_,v,P,I,k,O)=>{let w=0;const F=p.length;let j=f.length-1,R=F-1;for(;w<=j&&w<=R;){const D=f[w],ne=p[w]=O?bt(p[w]):nt(p[w]);if(St(D,ne))y(D,ne,g,null,v,P,I,k,O);else break;w++}for(;w<=j&&w<=R;){const D=f[j],ne=p[R]=O?bt(p[R]):nt(p[R]);if(St(D,ne))y(D,ne,g,null,v,P,I,k,O);else break;j--,R--}if(w>j){if(w<=R){const D=R+1,ne=D<F?p[D].el:_;for(;w<=R;)y(null,p[w]=O?bt(p[w]):nt(p[w]),g,ne,v,P,I,k,O),w++}}else if(w>R)for(;w<=j;)Ae(f[w],v,P,!0),w++;else{const D=w,ne=w,fe=new Map;for(w=ne;w<=R;w++){const Re=p[w]=O?bt(p[w]):nt(p[w]);Re.key!=null&&fe.set(Re.key,w)}let ce,we=0;const Ge=R-ne+1;let Gt=!1,qi=0;const bn=new Array(Ge);for(w=0;w<Ge;w++)bn[w]=0;for(w=D;w<=j;w++){const Re=f[w];if(we>=Ge){Ae(Re,v,P,!0);continue}let st;if(Re.key!=null)st=fe.get(Re.key);else for(ce=ne;ce<=R;ce++)if(bn[ce-ne]===0&&St(Re,p[ce])){st=ce;break}st===void 0?Ae(Re,v,P,!0):(bn[st-ne]=w+1,st>=qi?qi=st:Gt=!0,y(Re,p[st],g,null,v,P,I,k,O),we++)}const Yi=Gt?Sa(bn):He;for(ce=Yi.length-1,w=Ge-1;w>=0;w--){const Re=ne+w,st=p[Re],Zi=Re+1<F?p[Re+1].el:_;bn[w]===0?y(null,st,g,Zi,v,P,I,k,O):Gt&&(ce<0||w!==Yi[ce]?Je(st,g,Zi,2):ce--)}}},Je=(f,p,g,_,v=null)=>{const{el:P,type:I,transition:k,children:O,shapeFlag:w}=f;if(w&6){Je(f.component.subTree,p,g,_);return}if(w&128){f.suspense.move(p,g,_);return}if(w&64){I.move(f,p,g,Qe);return}if(I===ke){o(P,p,g);for(let j=0;j<O.length;j++)Je(O[j],p,g,_);o(f.anchor,p,g);return}if(I===Do){X(f,p,g);return}if(_!==2&&w&1&&k)if(_===0)k.beforeEnter(P),o(P,p,g),je(()=>k.enter(P),v);else{const{leave:j,delayLeave:R,afterLeave:D}=k,ne=()=>o(P,p,g),fe=()=>{j(P,()=>{ne(),D&&D()})};R?R(P,ne,fe):fe()}else o(P,p,g)},Ae=(f,p,g,_=!1,v=!1)=>{const{type:P,props:I,ref:k,children:O,dynamicChildren:w,shapeFlag:F,patchFlag:j,dirs:R}=f;if(k!=null&&Bo(k,null,g,f,!0),F&256){p.ctx.deactivate(f);return}const D=F&1&&R,ne=!ln(f);let fe;if(ne&&(fe=I&&I.onVnodeBeforeUnmount)&&ot(fe,p,f),F&6)J(f.component,g,_);else{if(F&128){f.suspense.unmount(g,_);return}D&&$t(f,null,p,"beforeUnmount"),F&64?f.type.remove(f,p,g,v,Qe,_):w&&(P!==ke||j>0&&j&64)?me(w,p,g,!1,!0):(P===ke&&j&384||!v&&F&16)&&me(O,p,g),_&&Qt(f)}(ne&&(fe=I&&I.onVnodeUnmounted)||D)&&je(()=>{fe&&ot(fe,p,f),D&&$t(f,null,p,"unmounted")},g)},Qt=f=>{const{type:p,el:g,anchor:_,transition:v}=f;if(p===ke){$(g,_);return}if(p===Do){A(f);return}const P=()=>{r(g),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(f.shapeFlag&1&&v&&!v.persisted){const{leave:I,delayLeave:k}=v,O=()=>I(g,P);k?k(f.el,P,O):O()}else P()},$=(f,p)=>{let g;for(;f!==p;)g=h(f),r(f),f=g;r(p)},J=(f,p,g)=>{const{bum:_,scope:v,update:P,subTree:I,um:k}=f;_&&Pn(_),v.stop(),P&&(P.active=!1,Ae(I,f,p,g)),k&&je(k,p),je(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},me=(f,p,g,_=!1,v=!1,P=0)=>{for(let I=P;I<f.length;I++)Ae(f[I],p,g,_,v)},Fe=f=>f.shapeFlag&6?Fe(f.component.subTree):f.shapeFlag&128?f.suspense.next():h(f.anchor||f.el),rt=(f,p,g)=>{f==null?p._vnode&&Ae(p._vnode,null,null,!0):y(p._vnode||null,f,p,null,null,null,g),Kr(),Ur(),p._vnode=f},Qe={p:y,um:Ae,m:Je,r:Qt,mt:Ce,mc:b,pc:M,pbc:H,n:Fe,o:e};let vn,_n;return t&&([vn,_n]=t(Qe)),{render:rt,hydrate:vn,createApp:Ca(rt,vn)}}function Et({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ks(e,t,n=!1){const o=e.children,r=t.children;if(W(o)&&W(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]=bt(r[s]),l.el=i.el),n||ks(i,l)),l.type===Wn&&(l.el=i.el)}}function Sa(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 Ma=e=>e.__isTeleport,ke=Symbol.for("v-fgt"),Wn=Symbol.for("v-txt"),qe=Symbol.for("v-cmt"),Do=Symbol.for("v-stc"),un=[];let Xe=null;function L(e=!1){un.push(Xe=e?null:[])}function La(){un.pop(),Xe=un[un.length-1]||null}let fn=1;function Ps(e){fn+=e}function Ts(e){return e.dynamicChildren=fn>0?Xe||He:null,La(),fn>0&&Xe&&Xe.push(e),e}function Z(e,t,n,o,r,s){return Ts(U(e,t,n,o,r,s,!0))}function Ee(e,t,n,o,r){return Ts(Y(e,t,n,o,r,!0))}function Kn(e){return e?e.__v_isVNode===!0:!1}function St(e,t){return e.type===t.type&&e.key===t.key}const Un="__vInternal",Os=({key:e})=>e??null,qn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?_e(e)||xe(e)||Q(e)?{i:Te,r:e,k:t,f:!!n}:e:null);function U(e,t=null,n=null,o=0,r=null,s=e===ke?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Os(t),ref:t&&qn(t),scopeId:Zr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Te};return l?(No(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=_e(n)?8:16),fn>0&&!i&&Xe&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&Xe.push(a),a}const Y=ja;function ja(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===ss)&&(e=qe),Kn(e)){const l=vt(e,t,!0);return n&&No(l,n),fn>0&&!s&&Xe&&(l.shapeFlag&6?Xe[Xe.indexOf(e)]=l:Xe.push(l)),l.patchFlag|=-2,l}if(Wa(e)&&(e=e.__vccOpts),t){t=Aa(t);let{class:l,style:a}=t;l&&!_e(l)&&(t.class=be(l)),de(a)&&(zr(a)&&!W(a)&&(a=ve({},a)),t.style=We(a))}const i=_e(e)?1:Ql(e)?128:Ma(e)?64:de(e)?4:Q(e)?2:0;return U(e,t,n,o,r,i,s,!0)}function Aa(e){return e?zr(e)||Un in e?ve({},e):e:null}function vt(e,t,n=!1){const{props:o,ref:r,patchFlag:s,children:i}=e,l=t?Fo(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Os(l),ref:t&&t.ref?n&&r?W(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!==ke?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&&vt(e.ssContent),ssFallback:e.ssFallback&&vt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function _t(e=" ",t=0){return Y(Wn,null,e,t)}function Ne(e="",t=!1){return t?(L(),Ee(qe,null,e)):Y(qe,null,e)}function nt(e){return e==null||typeof e=="boolean"?Y(qe):W(e)?Y(ke,null,e.slice()):typeof e=="object"?bt(e):Y(Wn,null,String(e))}function bt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:vt(e)}function No(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(W(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),No(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Un in t)?t._ctx=Te:r===3&&Te&&(Te.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Q(t)?(t={default:t,_ctx:Te},n=32):(t=String(t),o&64?(n=16,t=[_t(t)]):n=8);e.children=t,e.shapeFlag|=n}function Fo(...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=be([t.class,o.class]));else if(r==="style")t.style=We([t.style,o.style]);else if(yn(r)){const s=t[r],i=o[r];i&&s!==i&&!(W(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){Ke(e,t,7,[n,o])}const za=hs();let Ba=0;function Da(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||za,s={uid:Ba++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new al(!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:ms(o,r),emitsOptions:Yr(o,r),emit:null,emitted:null,propsDefaults:G,inheritAttrs:o.inheritAttrs,ctx:G,data:G,props:G,attrs:G,slots:G,refs:G,setupState:G,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=ql.bind(null,s),e.ce&&e.ce(s),s}let Pe=null;const $s=()=>Pe||Te;let Ro,Kt,Is="__VUE_INSTANCE_SETTERS__";(Kt=ao()[Is])||(Kt=ao()[Is]=[]),Kt.push(e=>Pe=e),Ro=e=>{Kt.length>1?Kt.forEach(t=>t(e)):Kt[0](e)};const Ut=e=>{Ro(e),e.scope.on()},Mt=()=>{Pe&&Pe.scope.off(),Ro(null)};function Es(e){return e.vnode.shapeFlag&4}let dn=!1;function Na(e,t=!1){dn=t;const{props:n,children:o}=e.vnode,r=Es(e);ka(e,n,r,t),Oa(e,o);const s=r?Fa(e,t):void 0;return dn=!1,s}function Fa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Br(new Proxy(e.ctx,ma));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?Ha(e):null;Ut(e),Ft();const s=gt(o,e,0,[e.props,r]);if(Rt(),Mt(),dr(s)){if(s.then(Mt,Mt),t)return s.then(i=>{Ss(e,i,t)}).catch(i=>{jn(i,e,0)});e.asyncDep=s}else Ss(e,s,t)}else Ls(e,t)}function Ss(e,t,n){Q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:de(t)&&(e.setupState=Hr(t)),Ls(e,n)}let Ms;function Ls(e,t,n){const o=e.type;if(!e.render){if(!t&&Ms&&!o.render){const r=o.template||Lo(e).template;if(r){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=ve(ve({isCustomElement:s,delimiters:l},i),a);o.render=Ms(r,c)}}e.render=o.render||Ye}Ut(e),Ft(),va(e),Rt(),Mt()}function Ra(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Le(e,"get","$attrs"),t[n]}}))}function Ha(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Ra(e)},slots:e.slots,emit:e.emit,expose:t}}function Yn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Hr(Br(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 Va(e,t=!0){return Q(e)?e.displayName||e.name:e.name||t&&e.__name}function Wa(e){return Q(e)&&"__vccOpts"in e}const ue=(e,t)=>Rl(e,t,dn);function js(e,t,n){const o=arguments.length;return o===2?de(t)&&!W(t)?Kn(t)?Y(e,null,[t]):Y(e,t):Y(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Kn(n)&&(n=[n]),Y(e,t,n))}const Ka=Symbol.for("v-scx"),Ua=()=>It(Ka),qa="3.3.4",Ya="http://www.w3.org/2000/svg",Lt=typeof document<"u"?document:null,As=Lt&&Lt.createElement("template"),Za={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(Ya,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{As.innerHTML=o?`<svg>${e}</svg>`:e;const l=As.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 Xa(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 Ja(e,t,n){const o=e.style,r=_e(n);if(n&&!r){if(t&&!_e(t))for(const s in t)n[s]==null&&Ho(o,s,"");for(const s in n)Ho(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 zs=/\s*!important$/;function Ho(e,t,n){if(W(n))n.forEach(o=>Ho(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Qa(e,t);zs.test(n)?e.setProperty(Ve(o),n.replace(zs,""),"important"):e[o]=n}}const Bs=["Webkit","Moz","ms"],Vo={};function Qa(e,t){const n=Vo[t];if(n)return n;let o=Be(t);if(o!=="filter"&&o in e)return Vo[t]=o;o=kn(o);for(let r=0;r<Bs.length;r++){const s=Bs[r]+o;if(s in e)return Vo[t]=s}return t}const Ds="http://www.w3.org/1999/xlink";function Ga(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Ds,t.slice(6,t.length)):e.setAttributeNS(Ds,t,n);else{const s=ll(t);n==null||s&&!mr(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function ec(e,t,n,o,r,s,i){if(t==="innerHTML"||t==="textContent"){o&&i(o,r,s),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const c=l==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=mr(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 tc(e,t,n,o){e.removeEventListener(t,n,o)}function nc(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]=oc(t);if(o){const c=s[t]=ic(o,r);qt(e,l,c,a)}else i&&(tc(e,l,i,a),s[t]=void 0)}}const Ns=/(?:Once|Passive|Capture)$/;function oc(e){let t;if(Ns.test(e)){t={};let o;for(;o=e.match(Ns);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ve(e.slice(2)),t]}let Wo=0;const rc=Promise.resolve(),sc=()=>Wo||(rc.then(()=>Wo=0),Wo=Date.now());function ic(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Ke(lc(o,n.value),t,5,[o])};return n.value=e,n.attached=sc(),n}function lc(e,t){if(W(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const Fs=/^on[a-z]/,ac=(e,t,n,o,r=!1,s,i,l,a)=>{t==="class"?Xa(e,o,r):t==="style"?Ja(e,n,o):yn(t)?to(t)||nc(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):cc(e,t,o,r))?ec(e,t,o,s,i,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Ga(e,t,o,r))};function cc(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Fs.test(t)&&Q(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Fs.test(t)&&_e(n)?!1:t in e}function uc(e,t){const n=Oe(e);class o extends Ko{constructor(s){super(n,s,t)}}return o.def=n,o}const fc=typeof HTMLElement<"u"?HTMLElement:class{};class Ko extends fc{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,ct(()=>{this._connected||(Js(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&&!W(s))for(const a in s){const c=s[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=lo(this._props[a])),(l||(l=Object.create(null)))[Be(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=W(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(Be))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(s){this._setProp(r,s)}})}_setAttr(t){let n=this.getAttribute(t);const o=Be(t);this._numberProps&&this._numberProps[o]&&(n=lo(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(Ve(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ve(t),n+""):n||this.removeAttribute(Ve(t))))}_update(){Js(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Y(this._def,ve({},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),Ve(s)!==s&&o(Ve(s),i)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Ko){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",pn="animation",Yt=(e,{slots:t})=>js(oa,dc(e),t);Yt.displayName="Transition";const Rs={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};Yt.props=ve({},Qr,Rs);const jt=(e,t=[])=>{W(e)?e.forEach(n=>n(...t)):e&&e(...t)},Hs=e=>e?W(e)?e.some(t=>t.length>1):e.length>1:!1;function dc(e){const t={};for(const S in e)S in Rs||(t[S]=e[S]);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:h=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,C=pc(r),y=C&&C[0],V=C&&C[1],{onBeforeEnter:N,onEnter:z,onEnterCancelled:X,onLeave:A,onLeaveCancelled:E,onBeforeAppear:B=N,onAppear:q=z,onAppearCancelled:b=X}=t,T=(S,se,Ce)=>{At(S,se?u:l),At(S,se?c:i),Ce&&Ce()},H=(S,se)=>{S._isLeaving=!1,At(S,d),At(S,m),At(S,h),se&&se()},ae=S=>(se,Ce)=>{const Me=S?q:z,le=()=>T(se,S,Ce);jt(Me,[se,le]),Vs(()=>{At(se,S?a:s),wt(se,S?u:l),Hs(Me)||Ws(se,o,y,le)})};return ve(t,{onBeforeEnter(S){jt(N,[S]),wt(S,s),wt(S,i)},onBeforeAppear(S){jt(B,[S]),wt(S,a),wt(S,c)},onEnter:ae(!1),onAppear:ae(!0),onLeave(S,se){S._isLeaving=!0;const Ce=()=>H(S,se);wt(S,d),mc(),wt(S,h),Vs(()=>{S._isLeaving&&(At(S,d),wt(S,m),Hs(A)||Ws(S,o,V,Ce))}),jt(A,[S,Ce])},onEnterCancelled(S){T(S,!1),jt(X,[S])},onAppearCancelled(S){T(S,!0),jt(b,[S])},onLeaveCancelled(S){H(S),jt(E,[S])}})}function pc(e){if(e==null)return null;if(de(e))return[Uo(e.enter),Uo(e.leave)];{const t=Uo(e);return[t,t]}}function Uo(e){return lo(e)}function wt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function At(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 Vs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let hc=0;function Ws(e,t,n,o){const r=e._endId=++hc,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:l,propCount:a}=gc(e,t);if(!i)return o();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,h),s()},h=m=>{m.target===e&&++u>=a&&d()};setTimeout(()=>{u<a&&d()},l+1),e.addEventListener(c,h)}function gc(e,t){const n=window.getComputedStyle(e),o=C=>(n[C]||"").split(", "),r=o(`${yt}Delay`),s=o(`${yt}Duration`),i=Ks(r,s),l=o(`${pn}Delay`),a=o(`${pn}Duration`),c=Ks(l,a);let u=null,d=0,h=0;t===yt?i>0&&(u=yt,d=i,h=s.length):t===pn?c>0&&(u=pn,d=c,h=a.length):(d=Math.max(i,c),u=d>0?i>c?yt:pn:null,h=u?u===yt?s.length:a.length:0);const m=u===yt&&/\b(transform|all)(,|$)/.test(o(`${yt}Property`).toString());return{type:u,timeout:d,propCount:h,hasTransform:m}}function Ks(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Us(n)+Us(e[o])))}function Us(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function mc(){return document.body.offsetHeight}const qs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return W(t)?n=>Pn(t,n):t};function vc(e){e.target.composing=!0}function Ys(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const _c={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=qs(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=io(l)),e._assign(l)}),n&&qt(e,"change",()=>{e.value=e.value.trim()}),t||(qt(e,"compositionstart",vc),qt(e,"compositionend",Ys),qt(e,"change",Ys))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},s){if(e._assign=qs(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&io(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},bc=["ctrl","shift","alt","meta"],yc={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)=>bc.some(n=>e[`${n}Key`]&&!t.includes(n))},zt=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const s=yc[t[r]];if(s&&s(n,t))return}return e(n,...o)},wc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Zs=(e,t)=>n=>{if(!("key"in n))return;const o=Ve(n.key);if(t.some(r=>r===o||wc[r]===o))return e(n)},xc={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 Cc=ve({patchProp:ac},Za);let Xs;function kc(){return Xs||(Xs=Ia(Cc))}const Js=(...e)=>{kc().render(...e)},Pc={class:"flex gap-3 items-center children-pointer-events-auto relative z-30"},Tc={class:"flex justify-between items-end"},Oc={class:"inline-block children-pointer-events-auto w-1/3"},$c={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Ic={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},Ec={class:"inline-block z-20 relative"},Qs=Oe({__name:"ReaderLayout",props:{idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{},spaceBottom:{},touchDevice:{type:Boolean}},setup(e){return(t,n)=>(L(),Z("div",{class:be(["fixed inset-0 bg-black visible z-[9999999999] text-stone-100 font-sans text-base",{"cursor-none":t.idle}])},[$e(t.$slots,"default"),U("div",{class:be(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear inset-2 sm:inset-3 flex flex-col justify-between",{"opacity-100 z-10":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}]),style:We({paddingTop:`${t.spaceTop||0}px`,paddingBottom:t.spaceBottom?`${t.spaceBottom}px`:""})},[U("div",Pc,[$e(t.$slots,"back"),t.touchDevice?Ne("",!0):$e(t.$slots,"exit",{key:0}),$e(t.$slots,"chapter-nav")]),U("div",Tc,[U("div",Oc,[$e(t.$slots,"page-nav")]),U("div",$c,[$e(t.$slots,"reset-zoom")]),U("div",Ic,[$e(t.$slots,"entry"),U("div",Ec,[$e(t.$slots,"settings")]),$e(t.$slots,"play")])]),U("div",{class:be(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[$e(t.$slots,"progress")],2)],6)],2))}}),Sc=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),ye=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Mc={},Lc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},jc=[U("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[U("circle",{cx:"14",cy:"14",r:"12"}),U("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function Ac(e,t){return L(),Z("svg",Lc,jc)}const Gs=ye(Mc,[["render",Ac]]),zc=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),Bc={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"},Dc={class:"block w-4 h-4"},Nc={class:"w-12"},ei=Oe({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=Gs;return t.zoom!==1?(L(),Z("button",Bc,[U("div",Dc,[Y(o)]),U("div",Nc,it(Math.ceil(t.zoom*100))+"%",1)])):Ne("",!0)}}}),Fc=Object.freeze(Object.defineProperty({__proto__:null,default:ei},Symbol.toStringTag,{value:"Module"})),Rc={},Hc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Vc=[U("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function Wc(e,t){return L(),Z("svg",Hc,Vc)}const qo=ye(Rc,[["render",Wc]]),Kc=Object.freeze(Object.defineProperty({__proto__:null,default:qo},Symbol.toStringTag,{value:"Module"})),Uc={},qc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Yc=[U("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),U("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function Zc(e,t){return L(),Z("svg",qc,Yc)}const Yo=ye(Uc,[["render",Zc]]),Xc=Object.freeze(Object.defineProperty({__proto__:null,default:Yo},Symbol.toStringTag,{value:"Module"}));function Jc({touchDevice:e}){const t=ee(!1);let n=0;return Vn("busy:touchDevice",e),Vn("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function Zo(){const e=It("busy:touchDevice"),t=It("setBusyState");let n=!1;return ft(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const Qc=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,s=.65;const i=setInterval(a,20);l();function l(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function a(){const c=+n||50;r<=c?(r++,s-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${s}`):(o.remove(),clearInterval(i))}},Zt={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>Qc(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},Gc={class:"group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200 rounđe-full p-2 w-full h-full inline-flex justify-center items-center"},Zn=Oe({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=Zo();let r=!1;function s(){r||(r=!0,o(!0,{desktopOnly:!0}))}function i(){r&&(r=!1,o(!1,{desktopOnly:!0}))}function l(a){n.disabled?a.preventDefault():t("click")}return(a,c)=>mt((L(),Ee(ha(a.href?"a":"button"),Fo(a.href?{href:a.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full",{"cursor-default text-stone-400 hover:text-stone-400":a.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!a.disabled,"bg-black bg-opacity-50":!a.transparent}],onClick:zt(l,["stop"]),onMouseenter:s,onMouseleave:i}),{default:oe(()=>[U("div",Gc,[$e(a.$slots,"default")])]),_:3},16,["class","onClick"])),[[K(Zt),a.disabled?0:15]])}}),eu=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"})),tu={},nu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ou=[U("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)];function ru(e,t){return L(),Z("svg",nu,ou)}const ti=ye(tu,[["render",ru]]),su=Object.freeze(Object.defineProperty({__proto__:null,default:ti},Symbol.toStringTag,{value:"Module"}));class iu{constructor(){Xi(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 lu(){const e=new iu;return ft(()=>e.dispose()),Vn("keyController",e),e}function Xo(e){const t=It("keyController");tt(()=>t.addListener(e)),ft(()=>t.removeListener(e))}const au={class:"relative flex w-full flex-shrink-0 justify-center items-center h-16"},cu={class:"inline-flex items-center h-full absolute left-3 top-0"},uu=U("span",{class:"text-xl font-medium"},"Customize",-1),fu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},ni=Oe({__name:"BottomSheet",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;Xo({onKeyDown:r});const o=Zo();he(()=>n.modelValue,s=>o(s));function r(s){n.modelValue&&s.key==="Escape"&&(t("update:modelValue",!1),s.preventDefault())}return(s,i)=>{const l=ti,a=Zn;return L(),Z("div",{class:be(["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(Yt,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:oe(()=>[n.modelValue?(L(),Z("div",{key:0,class:"inline-flex flex-col h-[24rem] 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"]))},[U("div",au,[U("div",cu,[Y(a,{transparent:"",onClick:i[0]||(i[0]=()=>t("update:modelValue",!1))},{default:oe(()=>[Y(l)]),_:1})]),uu]),U("div",fu,[$e(s.$slots,"default")])])):Ne("",!0)]),_:3})],2)}}}),du=Object.freeze(Object.defineProperty({__proto__:null,default:ni},Symbol.toStringTag,{value:"Module"})),pu=["min","max","step"],hu={class:"flex-shrink-0"},oi=ye(Oe({__name:"InputPercentage",props:{modelValue:{},min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ue({get(){return n.modelValue},set(r){t("update:modelValue",+r)}});return(r,s)=>(L(),Z("div",{class:be(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:We({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[mt(U("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,pu),[[_c,o.value]]),U("p",hu,[$e(r.$slots,"suffix")])],6))}}),[["styles",[`input[type=range]{--tw-bg-opacity:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to right,#d6d3d1 var(--percentage),#78716c var(--percentage));background-color:rgb(120 113 108/var(--tw-bg-opacity));border-radius:.125rem;border-style:none;cursor:pointer;height:.375rem;opacity:.9;outline:2px solid transparent;outline-offset:2px}input[type=range]::-webkit-slider-thumb{--tw-border-opacity:1;--tw-bg-opacity:1;-webkit-appearance:none!important;background-color:rgb(214 211 209/var(--tw-bg-opacity));border-color:rgb(214 211 209/var(--tw-border-opacity));border-radius:.125rem;border-style:solid;border-width:2px;cursor:pointer;height:1.75rem;transition-duration:.2s;width:1rem}input[type=range]:hover{opacity:1}
2
- `]]]),gu=Object.freeze(Object.defineProperty({__proto__:null,default:oi},Symbol.toStringTag,{value:"Module"})),mu={class:"flex items-center mb-8 last:mb-0"},vu={class:"flex-grow overflow-hidden"},ri=Oe({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(L(),Z("div",mu,[U("div",{class:be(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},it(t.label),3),U("div",vu,[$e(t.$slots,"default")])]))}}),_u=Object.freeze(Object.defineProperty({__proto__:null,default:ri},Symbol.toStringTag,{value:"Module"})),bu=["onClick","onKeyup"],si=Oe({__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;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)=>(L(),Z("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[U("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:We(r.value)},null,4),(L(!0),Z(ke,null,Fn(n.items,(a,c)=>mt((L(),Z("div",{key:c,tabindex:"0",class:be(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.modelValue,"text-stone-400":c!=n.modelValue}]),onClick:()=>s(c),onKeyup:[Zs(()=>s(c),["enter"]),Zs(()=>s(c),["space"])]},[_t(it(a),1)],42,bu)),[[K(Zt),30]])),128))],512))}}),yu=Object.freeze(Object.defineProperty({__proto__:null,default:si},Symbol.toStringTag,{value:"Module"})),wu={},xu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Cu=[U("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),U("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function ku(e,t){return L(),Z("svg",xu,Cu)}const ii=ye(wu,[["render",ku]]),Pu=Object.freeze(Object.defineProperty({__proto__:null,default:ii},Symbol.toStringTag,{value:"Module"}));var li;const Jo=typeof window<"u",Tu=e=>typeof e=="function",Ou=e=>typeof e=="string",xt=()=>{};Jo&&((li=window==null?void 0:window.navigator)!=null&&li.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Xn(e){return typeof e=="function"?e():K(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 $u(e,t={}){let n,o,r=xt;const s=l=>{clearTimeout(l),r(),r=xt};return l=>{const a=Xn(e),c=Xn(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 Iu(e=ci){const t=ee(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...s)=>{t.value&&e(...s)};return{isActive:bo(t),pause:n,resume:o,eventFilter:r}}function Eu(e,t=!1,n="Timeout"){return new Promise((o,r)=>{setTimeout(t?()=>r(n):o,e)})}function Su(e){return e}function Qo(e){return _r()?(ul(e),!0):!1}function Bt(e,t=200,n={}){return ai($u(t,n),e)}function Mu(e,t=!0){$s()?tt(e):t?e():ct(e)}var ui=Object.getOwnPropertySymbols,Lu=Object.prototype.hasOwnProperty,ju=Object.prototype.propertyIsEnumerable,Au=(e,t)=>{var n={};for(var o in e)Lu.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&&ju.call(e,o)&&(n[o]=e[o]);return n};function zu(e,t,n={}){const o=n,{eventFilter:r=ci}=o,s=Au(o,["eventFilter"]);return he(e,ai(r,t),s)}var Bu=Object.defineProperty,Du=Object.defineProperties,Nu=Object.getOwnPropertyDescriptors,Jn=Object.getOwnPropertySymbols,fi=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,pi=(e,t,n)=>t in e?Bu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fu=(e,t)=>{for(var n in t||(t={}))fi.call(t,n)&&pi(e,n,t[n]);if(Jn)for(var n of Jn(t))di.call(t,n)&&pi(e,n,t[n]);return e},Ru=(e,t)=>Du(e,Nu(t)),Hu=(e,t)=>{var n={};for(var o in e)fi.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Jn)for(var o of Jn(e))t.indexOf(o)<0&&di.call(e,o)&&(n[o]=e[o]);return n};function Vu(e,t,n={}){const o=n,{eventFilter:r}=o,s=Hu(o,["eventFilter"]),{eventFilter:i,pause:l,resume:a,isActive:c}=Iu(r);return{stop:zu(e,t,Ru(Fu({},s),{eventFilter:i})),pause:l,resume:a,isActive:c}}function Dt(e){var t;const n=Xn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ct=Jo?window:void 0,Wu=Jo?window.document:void 0;function gn(...e){let t,n,o,r;if(Ou(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=Ct):[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,h)=>(u.addEventListener(d,h,r),()=>u.removeEventListener(d,h,r)),a=he(()=>Dt(t),u=>{i(),u&&s.push(...n.flatMap(d=>o.map(h=>l(u,d,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),i()};return Qo(c),c}function Ku(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?Fr(t):ee(t),d=ee(!1),h=ee(!1),m=ee(void 0);async function C(y=0,...V){l&&(u.value=t),m.value=void 0,d.value=!1,h.value=!0,y>0&&await Eu(y);const N=typeof e=="function"?e(...V):e;try{const z=await N;u.value=z,d.value=!0,i(z)}catch(z){if(m.value=z,s(z),c)throw m}finally{h.value=!1}return u.value}return o&&C(r),{state:u,isReady:d,isLoading:h,error:m,execute:C}}function hi(e,t=!1){const n=ee(),o=()=>n.value=!!e();return o(),Mu(o,t),n}const Go=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},er="__vueuse_ssr_handlers__";Go[er]=Go[er]||{};const Uu=Go[er];function qu(e,t){return Uu[e]||t}function Yu(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 Zu=Object.defineProperty,gi=Object.getOwnPropertySymbols,Xu=Object.prototype.hasOwnProperty,Ju=Object.prototype.propertyIsEnumerable,mi=(e,t,n)=>t in e?Zu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vi=(e,t)=>{for(var n in t||(t={}))Xu.call(t,n)&&mi(e,n,t[n]);if(gi)for(var n of gi(t))Ju.call(t,n)&&mi(e,n,t[n]);return e};const Qu={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:u,window:d=Ct,eventFilter:h,onError:m=q=>{console.error(q)}}=o,C=(u?Fr:ee)(t);if(!n)try{n=qu("getDefaultStorage",()=>{var q;return(q=Ct)==null?void 0:q.localStorage})()}catch(q){m(q)}if(!n)return C;const y=Xn(t),V=Yu(y),N=(r=o.serializer)!=null?r:Qu[V],{pause:z,resume:X}=Vu(C,()=>A(C.value),{flush:s,deep:i,eventFilter:h});return d&&l&&gn(d,"storage",B),B(),C;function A(q){try{if(q==null)n.removeItem(e);else{const b=N.write(q),T=n.getItem(e);T!==b&&(n.setItem(e,b),d&&(d==null||d.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:T,newValue:b,storageArea:n}))))}}catch(b){m(b)}}function E(q){const b=q?q.newValue:n.getItem(e);if(b==null)return a&&y!==null&&n.setItem(e,N.write(y)),y;if(!q&&c){const T=N.read(b);return Tu(c)?c(T,y):V==="object"&&!Array.isArray(T)?vi(vi({},y),T):T}else return typeof b!="string"?b:N.read(b)}function B(q){if(!(q&&q.storageArea!==n)){if(q&&q.key==null){C.value=y;return}if(!(q&&q.key!==e)){z();try{C.value=E(q)}catch(b){m(b)}finally{q?ct(X):X()}}}}}function Gu({document:e=Wu}={}){if(!e)return ee("visible");const t=ee(e.visibilityState);return gn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var bi=Object.getOwnPropertySymbols,ef=Object.prototype.hasOwnProperty,tf=Object.prototype.propertyIsEnumerable,nf=(e,t)=>{var n={};for(var o in e)ef.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&&tf.call(e,o)&&(n[o]=e[o]);return n};function yi(e,t,n={}){const o=n,{window:r=Ct}=o,s=nf(o,["window"]);let i;const l=hi(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},c=he(()=>Dt(e),d=>{a(),l.value&&r&&d&&(i=new ResizeObserver(t),i.observe(d,s))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return Qo(u),{isSupported:l,stop:u}}function of(e,t={width:0,height:0},n={}){const{window:o=Ct,box:r="content-box"}=n,s=ue(()=>{var a,c;return(c=(a=Dt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),i=ee(t.width),l=ee(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 u=Dt(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:h})=>d+h,0),l.value=u.reduce((d,{blockSize:h})=>d+h,0)}else i.value=a.contentRect.width,l.value=a.contentRect.height},n),he(()=>Dt(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=Ct}=n,l=hi(()=>i&&"IntersectionObserver"in i);let a=xt;const c=l.value?he(()=>({el:Dt(e),root:Dt(o)}),({el:d,root:h})=>{if(a(),!d)return;const m=new IntersectionObserver(t,{root:h,rootMargin:r,threshold:s});m.observe(d),a=()=>{m.disconnect(),a=xt}},{immediate:!0,flush:"post"}):xt,u=()=>{a(),c()};return Qo(u),{isSupported:l,stop:u}}function Qn(e,t,n={}){const{window:o=Ct}=n;return _i(e,t,o==null?void 0:o.localStorage,n)}var xi;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(xi||(xi={}));function tr(e,t,n={}){const{window:o=Ct}=n;return _i(e,t,o==null?void 0:o.sessionStorage,n)}var rf=Object.defineProperty,Ci=Object.getOwnPropertySymbols,sf=Object.prototype.hasOwnProperty,lf=Object.prototype.propertyIsEnumerable,ki=(e,t,n)=>t in e?rf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,af=(e,t)=>{for(var n in t||(t={}))sf.call(t,n)&&ki(e,n,t[n]);if(Ci)for(var n of Ci(t))lf.call(t,n)&&ki(e,n,t[n]);return e};af({linear:Su},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function cf(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var kt=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(kt||{}),Xt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Xt||{});const Pi=.25,Ti=5,uf=.25,Gn=.25,nr=5,ff=.05;function df(e){const{titleName:t,asyncIsWebtoon:n}=e,o=t?cf(t):location.pathname,r=Qn(`tk:style:${o}`,Xt.longStrip,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(u,d){return Object.values(Xt).includes(u)?u:d}}),s=Qn(`tk:dir:${o}`,kt.vertical,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(u,d){return Object.values(kt).includes(u)?u:d}}),i=Qn(`tk:speed:${o}`,1,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(u,d){return u>=Pi&&u<=Ti?+u:d}}),l=Qn(`tk:zoom:${o}`,1,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(u,d){return u>=Gn&&u<=1?+u:d}}),a=ue({get(){return n.state.value?Xt.longStrip:r.value},set:u=>r.value=u}),c=ue({get:()=>n.state.value?kt.vertical:s.value,set:u=>s.value=u});return{direction:c,style:a,speed:i,zoom:l,isLongStrip:ue(()=>a.value===Xt.longStrip),isDouble:ue(()=>a.value===Xt.double),isRTL:ue(()=>c.value===kt.rtl),isVertical:ue(()=>c.value===kt.vertical)}}const Oi=Oe({__name:"ButtonReaderSettings",props:{direction:{},readerStyle:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:speed","update:zoom"],setup(e,{emit:t}){const n=ee(!1);function o(r){t("update:zoom",Math.round(r)/100)}return(r,s)=>{const i=ii,l=Zn,a=si,c=ri,u=oi,d=ni;return L(),Z(ke,null,[Y(l,{title:"Customize",disabled:r.disabled,onClick:s[0]||(s[0]=()=>n.value=!0)},{default:oe(()=>[Y(i)]),_:1},8,["disabled"]),Y(d,{modelValue:n.value,"onUpdate:modelValue":s[4]||(s[4]=h=>n.value=h)},{default:oe(()=>[Y(c,{label:"Style"},{default:oe(()=>[Y(a,{"model-value":r.readerStyle,items:r.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":s[1]||(s[1]=h=>t("update:reader-style",h))},null,8,["model-value","items"])]),_:1}),Y(c,{label:"Direction"},{default:oe(()=>[Y(a,{"model-value":r.direction,items:r.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":s[2]||(s[2]=h=>t("update:direction",h))},null,8,["model-value","items"])]),_:1}),Y(c,{label:"Speed"},{default:oe(()=>[Y(u,{"model-value":r.speed,min:K(Pi),max:K(Ti),step:K(uf),suffix:"x","onUpdate:modelValue":s[3]||(s[3]=h=>t("update:speed",h))},{suffix:oe(()=>[_t(it(r.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),Y(c,{label:"Zoom"},{default:oe(()=>[Y(u,{"model-value":Math.ceil(r.zoom*100),min:K(Gn)*100,max:K(nr)*100,step:K(ff)*100,"onUpdate:modelValue":o},{suffix:oe(()=>[_t(it(Math.ceil(r.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue"])],64)}}}),pf=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),hf={},gf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},mf=[U("path",{d:"M18.652 3C18.0277 3 17.5216 3.5061 17.5216 4.13042V5.26083H16.3912C15.7669 5.26083 15.2608 5.76693 15.2608 6.39125C15.2608 7.01556 15.7669 7.52166 16.3912 7.52166H17.5216V8.65208C17.5216 9.27639 18.0277 9.78249 18.652 9.78249C19.2764 9.78249 19.7825 9.27639 19.7825 8.65208V7.52166H20.9129C21.5372 7.52166 22.0433 7.01556 22.0433 6.39125C22.0433 5.76693 21.5372 5.26083 20.9129 5.26083H19.7825V4.13042C19.7825 3.5061 19.2764 3 18.652 3Z",fill:"currentColor"},null,-1),U("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.0183 5.92413L8.24658 7.18954C7.65717 7.34584 7.24677 7.87926 7.24677 8.48905V18.0483C7.24677 18.4887 7.72075 18.7663 8.10482 18.5509L11.4937 16.65C11.7272 16.519 12.012 16.519 12.2454 16.65L18.6384 20.2363C19.1505 20.5235 19.7825 20.1534 19.7825 19.5663L19.7825 12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 6.23454 13.0067 6.07783 13.0183 5.92413Z",fill:"currentColor"},null,-1),U("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.49315 4.13042C4.64457 4.13042 3.95667 4.81833 3.95667 5.6669V19.5663C3.95667 20.1535 4.58867 20.5236 5.10077 20.2363L11.4937 16.6501C11.7272 16.5191 12.012 16.5191 12.2454 16.6501L18.6384 20.2363C19.1505 20.5236 19.7825 20.1535 19.7825 19.5663V12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 5.26083 13.3507 4.13042 13.3507 4.13042H5.49315Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function vf(e,t){return L(),Z("svg",gf,mf)}const $i=ye(hf,[["render",vf]]),_f=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"})),bf={},yf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wf=[U("path",{d:"M17.1026 8.89862C17.1114 8.90798 17.1203 8.91723 17.1295 8.92636C17.5709 9.36781 18.2866 9.36781 18.7281 8.92636L22.7247 4.92974C23.1662 4.48828 23.1662 3.77255 22.7247 3.33109C22.2833 2.88964 21.5675 2.88964 21.1261 3.33109L17.9292 6.52793L17.1286 5.72729C16.6871 5.28583 15.9714 5.28583 15.5299 5.72729C15.0885 6.16874 15.0885 6.88448 15.5299 7.32593L17.1026 8.89862Z",fill:"currentColor"},null,-1),U("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9564 5.92413L8.18463 7.18954C7.59522 7.34584 7.18481 7.87926 7.18481 8.48905V18.0483C7.18481 18.4887 7.65879 18.7663 8.04287 18.5509L11.4318 16.65C11.6652 16.519 11.95 16.519 12.1835 16.65L18.5764 20.2363C19.0885 20.5235 19.7205 20.1534 19.7205 19.5663L19.7205 12.0433H18.5901C15.4686 12.0433 12.938 9.5128 12.938 6.39125C12.938 6.23454 12.9448 6.07783 12.9564 5.92413Z",fill:"currentColor"},null,-1),U("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.4312 4.13042C4.58262 4.13042 3.89471 4.81833 3.89471 5.6669V19.5663C3.89471 20.1535 4.52672 20.5236 5.03882 20.2363L11.4318 16.6501C11.6652 16.5191 11.95 16.5191 12.1835 16.6501L18.5764 20.2363C19.0885 20.5236 19.7205 20.1535 19.7205 19.5663V5.6669C19.7205 5.6646 19.7205 5.66229 19.7205 5.65998V12.0433H18.5901C15.4685 12.0433 12.938 9.5128 12.938 6.39125C12.938 5.26083 13.2887 4.13042 13.2887 4.13042H5.4312Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function xf(e,t){return L(),Z("svg",yf,wf)}const Ii=ye(bf,[["render",xf]]),Cf=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"})),kf={},Pf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Tf=[U("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function Of(e,t){return L(),Z("svg",Pf,Tf)}const Ei=ye(kf,[["render",Of]]),$f=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),If=["aria-hidden"],Ef=["onClick"],Sf=["onClick"],Mf={class:"whitespace-nowrap"},or=Oe({__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);Xo({onKeyDown:C});const c=Zo();function u(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(d(),ct(()=>setTimeout(()=>{var E,B;(B=(E=s.value)==null?void 0:E.children[n.modelValue])==null||B.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),V(o.value)):setTimeout(N,250)}function d(){const E=o.value;if(E){const B=E.getBoundingClientRect(),q=B.x+B.width/2;i.value=B.y>window.innerHeight/2,l.value=q<window.innerWidth/3,a.value=q>window.innerWidth/3*2}}function h(E){E!=n.modelValue&&t("update:modelValue",E),u()}function m(E){n.items.length||E.stopPropagation()}function C(E){r.value&&E.key==="Escape"&&(u(),E.preventDefault())}let y=[];function V(E){const B=window.getComputedStyle(E).zIndex,q=E.style.zIndex;(!B||!(+B>0))&&((!E.parentElement||E.parentElement.childElementCount>1)&&(E.style.zIndex="1",y.push({el:E,zIndex:q})),E.parentElement&&V(E.parentElement))}function N(){y.forEach(({el:E,zIndex:B})=>{E.style.zIndex=B??""}),y=[]}let z=!1;function X(){z||(z=!0,c(!0,{desktopOnly:!0}))}function A(){z&&(z=!1,c(!1,{desktopOnly:!0}))}return(E,B)=>{const q=Ei;return L(),Z("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(L(),Z("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:u})):Ne("",!0),E.items.length?(L(),Ee(Yt,{key:1,name:"slide-fade","enter-from-class":"scale-y-90 opacity-0 pointer-events-none","leave-to-class":"scale-y-90 opacity-0 pointer-events-none"},{default:oe(()=>[r.value?(L(),Z("ul",{key:0,ref_key:"list",ref:s,"aria-hidden":!r.value,class:be(["scrollbar-sm duration-150 delay-50 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"]))},[(L(!0),Z(ke,null,Fn(E.items,(b,T)=>mt((L(),Z("li",{key:T,tabindex:"-1",class:be(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":T===E.modelValue}]),onClick:()=>h(T)},[U("div",{class:be(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":T>0}])},[$e(E.$slots,"item",{item:b},()=>[_t(it(b),1)])],2)],10,Ef)),[[K(Zt),30]])),128))],42,If)):Ne("",!0)]),_:3})):Ne("",!0),mt((L(),Z("button",{type:"button",tabindex:"-1",class:be(["w-full h-10 max-h-full bg-transparent rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":E.disabled}]),onClick:zt(u,["stop"]),onMouseenter:X,onMouseleave:A},[U("div",{class:be(["inline-flex items-center justify-center w-full h-full px-4 rounded-full",{"group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200":!!E.items.length,"cursor-default":!E.items.length}]),onClick:m},[U("span",Mf,it(E.label),1),E.items.length?(L(),Z("span",{key:0,class:be(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":i.value}]),"aria-hidden":"true"},[Y(q)],2)):Ne("",!0)],2)],42,Sf)),[[K(Zt),30]])],512)}}}),Lf=Object.freeze(Object.defineProperty({__proto__:null,default:or},Symbol.toStringTag,{value:"Module"})),Si=Oe({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ue(()=>Math.floor(n.modelValue)),r=ue(()=>n.pages.map(c=>c.map(({index:u})=>`${u+1}`).join("-"))),s=ue(()=>{const c=o.value,u=n.pages.findIndex(d=>d.some(({index:h})=>h===c));return u===-1?n.pages.length-1:u}),i=ue(()=>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=or;return L(),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"])}}}),jf=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"})),Af={},zf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Bf=[U("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Df(e,t){return L(),Z("svg",zf,Bf)}const Mi=ye(Af,[["render",Df]]),Nf=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"})),Ff={},Rf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Hf=[U("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Vf(e,t){return L(),Z("svg",Rf,Hf)}const Li=ye(Ff,[["render",Vf]]),Wf=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"})),Kf={},Uf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},qf=[U("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function Yf(e,t){return L(),Z("svg",Uf,qf)}const ji=ye(Kf,[["render",Yf]]),Zf=Object.freeze(Object.defineProperty({__proto__:null,default:ji},Symbol.toStringTag,{value:"Module"})),Xf={},Jf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Qf=[U("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function Gf(e,t){return L(),Z("svg",Jf,Qf)}const Ai=ye(Xf,[["render",Gf]]),ed=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),zi=ye(Oe({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=ee(0);return he(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const s=qo,i=Yo;return n.value?(L(),Z("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(L(),Ee(s,{key:0})):(L(),Ee(i,{key:1}))])):Ne("",!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)}}
3
- `]]]),td=Object.freeze(Object.defineProperty({__proto__:null,default:zi},Symbol.toStringTag,{value:"Module"})),nd={},od={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},rd=[U("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function sd(e,t){return L(),Z("svg",od,rd)}const Bi=ye(nd,[["render",sd]]),id=Object.freeze(Object.defineProperty({__proto__:null,default:Bi},Symbol.toStringTag,{value:"Module"})),Di=Oe({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=tr("tk:dir",!0),o=Bt(()=>n.value=!1,1250);return he(()=>t.direction,()=>{n.value=!0,o()}),tt(o),(r,s)=>{const i=Bi;return L(),Ee(Yt,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:oe(()=>[K(n)?(L(),Z("div",{key:0,class:be(["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===K(kt).vertical,"rotate-180":r.direction===K(kt).rtl}])},[Y(i)],2)):Ne("",!0)]),_:1})}}}),ld=Object.freeze(Object.defineProperty({__proto__:null,default:Di},Symbol.toStringTag,{value:"Module"})),eo=[];function ad(e){eo.push(e),ft(()=>{const t=eo.indexOf(e);t!==-1&&eo.splice(t,1)})}function cd(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,s=t*o;eo.forEach(i=>i(r,s))}const Ni=Oe({__name:"ZoomWrapper",props:{modelValue:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},emits:["update:modelValue","click"],setup(e,{emit:t}){const n=e,o=ee(null),r=ee(Math.min(nr,Math.max(Gn,n.modelValue))),s=ee(!1),i=ee(!1),l=ee(!1),a=ee(!1),c=Bt(()=>a.value=!1,150);function u(){a.value||(a.value=!0),c()}he(()=>n.modelValue,x=>le(x)),tt(()=>{n.touchDevice?(gn(window,"touchstart",B),ad(Me)):(gn(o,"mousedown",V),he(()=>n.horizontal,x=>{x?window.addEventListener("wheel",H,{passive:!1}):window.removeEventListener("wheel",H)},{immediate:!0}))}),ft(()=>{window.removeEventListener("wheel",H)});let d;Xo({onKeyDown:x=>{var pe;if(n.busy)return;(pe=o.value)==null||pe.focus();const M=x.key==="Meta",te=x.key==="Control";M||te?(s.value=!0,window.addEventListener("wheel",m,{passive:!1}),d=()=>{s.value=!1,window.removeEventListener("wheel",m),window.removeEventListener("blur",d),d=void 0},window.addEventListener("blur",d)):(x.ctrlKey||x.metaKey)&&x.key==="0"&&le(1)},onKeyUp:()=>{s.value==!0&&(d==null||d())}});function h(x){l.value!==x&&(l.value=x,x?n.playController.pause():n.playController.resume())}function m(x){x.stopPropagation(),x.preventDefault();const M=Math.ceil((r.value+x.deltaY*-.01)*100)/100;le(M,{x:x.clientX,y:x.clientY})}let C={x:0,y:0},y={x:0,y:0};function V(x){x.button===0&&(C={x:x.clientX,y:x.clientY},y={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",N),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",N),setTimeout(()=>h(!1))},{once:!0}),x.preventDefault(),x.stopPropagation())}function N(x){h(!0);const M=x.clientX-C.x,te=x.clientY-C.y,pe=o.value;pe.scrollLeft=y.x-M,pe.scrollTop=y.y-te}let z=0,X=1,A,E=!1;function B(x){if(!n.busy){if(E=x.touches.length===2,E){h(!0),x.stopPropagation(),x.preventDefault();const M=o.value;z=ae(x),X=r.value,A={x:(x.touches[0].clientX+x.touches[1].clientX)/2,y:(x.touches[0].clientY+x.touches[1].clientY)/2,scrollLeft:M.scrollLeft,scrollTop:M.scrollTop,scrollWidth:M.scrollWidth,scrollHeight:M.scrollHeight}}(E||n.playController.isPlaying&&n.longStrip)&&(window.addEventListener("touchmove",b),window.addEventListener("touchend",q,{once:!0}))}}function q(){if(window.removeEventListener("touchmove",b),E){h(!1),E=!1;return}if(!l.value)return;const x=Bt(()=>{h(!1),o.value.removeEventListener("scroll",te)},100),M=setTimeout(x,100);o.value.addEventListener("scroll",te);function te(){clearTimeout(M),x()}}function b(x){if(h(!0),E){x.stopPropagation(),x.preventDefault();const te=ae(x)/z;le(Math.ceil(te*X*100)/100,A)}}const T=Bt(()=>i.value=!1,100);function H(x){n.busy||(i.value||(i.value=!0),T(),x.deltaY&&(!s.value&&o.value&&(o.value.scrollLeft+=x.deltaY*(n.rtl?-1:1)),x.preventDefault()))}function ae(x){return Math.hypot(x.touches[0].clientX-x.touches[1].clientX,x.touches[0].clientY-x.touches[1].clientY)}let S=0,se;function Ce(x){x.stopPropagation(),!l.value&&(S++,se&&clearTimeout(se),S===2&&Me(x.clientX,x.clientY),se=setTimeout(()=>{!l.value&&S===1&&t("click",x),se=void 0,S=0},300))}function Me(x,M){if(!S)return;S=0;const te=r.value===1?2:1;le(te,{x,y:M})}async function le(x,M){const te=o.value,pe=Math.min(nr,Math.max(Gn,x));if(!te||r.value===pe)return;const Je=(M==null?void 0:M.scrollLeft)??te.scrollLeft,Ae=(M==null?void 0:M.scrollTop)??te.scrollTop,Qt=(M==null?void 0:M.scrollHeight)??te.scrollHeight,$=(M==null?void 0:M.scrollWidth)??te.scrollWidth,J=(M==null?void 0:M.x)??te.clientWidth/2,me=n.rtl?te.clientWidth-J:J,Fe=(M==null?void 0:M.y)??te.clientHeight/2;u(),r.value=pe,t("update:modelValue",pe),await ct();const rt=te.scrollWidth/$,Qe=te.scrollHeight/Qt;te.scrollLeft=Je*rt+me*(rt-1)*(n.rtl?-1:1),te.scrollTop=Ae*Qe+Fe*(Qe-1)}return(x,M)=>(L(),Z("div",{ref_key:"root",ref:o,tabindex:"0",class:be(["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:We({"font-size":`${r.value}px`}),onClick:Ce},[$e(x.$slots,"default")],6))}}),ud=Object.freeze(Object.defineProperty({__proto__:null,default:Ni},Symbol.toStringTag,{value:"Module"})),fd=`.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}}
4
- `,dd={},pd={class:"flex justify-center items-center w-full h-full"},hd=[U("div",{class:"loading-indicator"},null,-1)];function gd(e,t){return L(),Z("div",pd,hd)}const rr=ye(dd,[["render",gd],["styles",[fd]]]),md=Object.freeze(Object.defineProperty({__proto__:null,default:rr},Symbol.toStringTag,{value:"Module"})),vd=["data-index"],_d={key:0,class:"h-[75vh] w-[50vw] m-auto"},bd=["src"],yd=["src"],wd=["data-index"],Fi=ye(Oe({__name:"ReaderBody",props:{direction:{},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isRTL:{type:Boolean},pages:{},totalImgs:{},zoom:{},spaceTop:{},spaceBottom:{},touchDevice:{type:Boolean},playController:{},busy:{type:Boolean},idle:{type:Boolean}},emits:["update:zoom","update:playing","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=ee(null),r=ue(()=>{var u;return(u=o.value)==null?void 0:u.$el}),s=ee(null),i=of(r),l=ue(()=>{const{width:{value:u},height:{value:d}}=i;return n.pages.map(h=>{const m={indexes:h.map(N=>N.index)},C=h.map(({el:N})=>N).filter(Boolean);if(!C.length)return m;m.srcs=C.map(N=>N.src);const y=C.reduce((N,z)=>N+z.naturalWidth,0),V=C.reduce((N,z)=>N+z.naturalHeight,0)/C.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&u/y<d/V?(m.width=Math.min(u,y),m.height=V*m.width/y):m.height=Math.min(d,V),m})}),a=ue(()=>l.value.map(u=>(u==null?void 0:u.width)??(u==null?void 0:u.height)).filter(Boolean).sort((u,d)=>d-u)[0]);function c(u){if(!n.isLongStrip){const d=n.isVertical?i.height.value:i.width.value,m=(n.isVertical?u.clientY:n.isRTL?d-u.clientX:u.clientX)/d;if(m<=.2){t("prev");return}else if(m>=.8){t("next");return}}t("click")}return(u,d)=>{const h=rr,m=Ni;return L(),Ee(m,{"model-value":u.zoom,ref_key:"root",ref:o,class:be(["reader-body",{"reader-body--long-strip":u.isLongStrip,"reader-body--pages":!u.isLongStrip,"reader-body--vertical":u.isVertical,"reader-body--rtl":u.isRTL,"reader-body--idle":u.idle}]),"play-controller":u.playController,horizontal:!u.isVertical,rtl:u.isRTL,"touch-device":u.touchDevice,busy:u.busy,"long-strip":u.isLongStrip,style:We({"--space-top":(u.spaceTop||0)+"em",...u.isLongStrip?{"--max-size-em":a.value+"em"}:{"--screen-width-em":K(i).width.value+"em","--screen-height-em":K(i).height.value+"em"}}),"onUpdate:modelValue":d[0]||(d[0]=C=>t("update:zoom",C)),onClick:c},{default:oe(()=>[(L(!0),Z(ke,null,Fn(l.value,C=>(L(),Z("div",Fo({key:u.direction+"_"+C.indexes[0],"data-index":C.indexes[0]},C.indexes.length>1?{"data-second-index":C.indexes[1]}:{}),[C.srcs?C.srcs.length==1?(L(),Z("img",{key:1,src:C.srcs[0],style:We({width:C.width!==void 0?C.width+"em":"",height:C.height!==void 0?C.height+"em":""})},null,12,bd)):(L(),Z("div",{key:2,class:be(["flex justify-center items-center",{"flex-row-reverse":u.isRTL}]),style:We({width:C.width!==void 0?C.width+"em":"",height:C.height!==void 0?C.height+"em":""})},[(L(!0),Z(ke,null,Fn(C.srcs,y=>(L(),Z("div",{key:y,class:"h-full flex select-none"},[U("img",{src:y,class:"flex-shrink-0 max-w-full max-h-full object-contain"},null,8,yd)]))),128))],6)):(L(),Z("div",_d,[Y(h)]))],16,vd))),128)),U("div",{ref_key:"autoNextEl",ref:s,"data-index":u.totalImgs,style:We(u.isLongStrip?u.isVertical?{height:K(i).height.value+"em"}:{width:K(i).width.value+"em"}:{})},[$e(u.$slots,"end")],12,wd)]),_:3},8,["model-value","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style"])}}}),[["styles",[`.reader-body{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width:1024px){.reader-body{transform:none}}.reader-body--rtl{flex-direction:row-reverse}.reader-body:not(.reader-body--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.reader-body--long-strip.reader-body--vertical>div:first-child{margin-top:var(--space-top)}.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.reader-body--idle:after,.reader-body--pages.reader-body--idle:before{cursor:none}.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;-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}
5
- `]]]),xd=Object.freeze(Object.defineProperty({__proto__:null,default:Fi},Symbol.toStringTag,{value:"Module"})),Cd={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},kd={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},Pd={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},Ri=ye(Oe({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=ee(null),o=ee(null),r=ee(!1),s=ee(!1),i=ee(3);return tt(()=>{let l;wi(o,a=>{s.value=a.some(c=>c.isIntersecting),i.value=5,l&&(clearInterval(l),l=void 0),s.value&&(l=setInterval(()=>{i.value-=1,i.value<=0&&(clearInterval(l),l=void 0,t("next"))},1e3))}),wi(n,a=>{r.value=a.some(c=>c.isIntersecting)}),ft(()=>l&&clearInterval(l))}),(l,a)=>(L(),Z("div",{ref_key:"root",ref:n,class:"h-full w-full flex justify-center items-center"},[mt(U("div",Cd,[l.hasNext?(L(),Z("div",kd,[s.value?(L(),Z("div",Pd)):Ne("",!0),mt((L(),Z("button",{ref_key:"nextButton",ref:o,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:a[0]||(a[0]=zt(()=>t("next"),["stop"]))},[_t(" Next in "+it(i.value),1)])),[[K(Zt)]])])):Ne("",!0),mt((L(),Z("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:a[1]||(a[1]=zt(()=>t("hide"),["stop"]))},[_t(" Hide ")])),[[K(Zt)]])],512),[[xc,r.value||!l.hasNext]])],512))}}),[["styles",[`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
6
- `]]]),Td=Object.freeze(Object.defineProperty({__proto__:null,default:Ri},Symbol.toStringTag,{value:"Module"})),sr=3;function Od(e,t){const n=nn(Array.from({length:e.value.length})),o=[];let r=0;he([t,e],async([l,a],[c])=>{const u=Math.floor(l),d=Math.floor(c||-1),h=a.length-n.length;if(h>0){const m=Array.from({length:h});n.push(...m)}u!==d&&(r=Math.max(0,r-Math.abs(u-d)));for(let m=u;m<a.length;m++){if(r>sr)return;s(m)}for(let m=u-1;m>=0;m--){if(r>sr)return;s(m)}},{immediate:!0});async function s(l){l===void 0||!e.value[l]||r>sr||(o[l]||(o[l]=!0,r++,n[l]=await $d(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 $d(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 ue(()=>t.value?Hi(e):e.map((n,o)=>[{el:n,index:o}]))}function Hi(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})),...Hi(e.slice(r.length),t+r.length)]}function Ed(e,t,n){return Ku(async()=>{if(n!==void 0)return n;const o=await Sd(e);return await new Promise(r=>{if(n!==void 0){r(n);return}const s=Math.max(o.length<4?0:o.length<6?1:2,t),i=Math.min(s+4,o.length<6?o.length-1:o.length),l=Math.max(0,i-4),a=o.slice(l,i);let c=!1;Promise.all(a.map(async u=>{const d=await Md(u);!c&&d&&(c=!0,r(!0))})).then(()=>{c||r(!1)})})},n??!1)}async function Sd(e){return e.value.length?e.value:await new Promise(t=>{const n=he(e,o=>{n(),o.length&&t(o)})})}function Md(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})}function Ld({initialPage:e,max:t}){const n=typeof e=="number"?Math.max(0,Math.min(e,t)):0,o=sessionStorage.getItem("tk:page:path");return o!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),o&&sessionStorage.removeItem("tk:page")),tr("tk:page",n,{writeDefaults:!1,mergeDefaults(r){return Math.max(0,Math.min(r,t))}})}function jd(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const ir=40;function Ad({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:s,spaceTop:i,scrollEl:l,interferePlayer:a,onChangedPage:c}){let u=!1,d=!1,h;const m=Bt(V,150),C=zd(N,300);tt(()=>{let b=null;ea(async()=>{l.value&&l.value!==b&&(b=l.value,m(e.value),l.value.addEventListener("scroll",C))});let T=window.innerWidth;yi(l,()=>{const H=window.innerWidth;T!=H&&(T=H,y())}),he(n,y),he(t,y)});async function y(){u=!0,d=!1,await ct(),V(e.value)}function V(b){if(!l.value)return;u=!0;const T=async()=>{await ct(),u=!1,d=!0},H=z(Math.floor(b));if(!H){T();return}if(o.value){const ae=o.value?b%1*(r.value?H.offsetHeight:H.offsetWidth)||1:0,S=X(H)+ae;a(()=>{A(S),T()})}else{const ae=d;a(()=>{H.scrollIntoView(ae?{behavior:"smooth",block:"start",inline:"start"}:void 0),T()})}}async function N(){if(!l.value||u||!d)return;const b=B();if(!b)return;const T=+b.getAttribute("data-index")||0,H=b.getBoundingClientRect(),ae=o.value?Math.floor((T+q(H))*100)/100:T;ae!==e.value&&c(ae)}function z(b){var T;return(T=l.value)==null?void 0:T.querySelector(`[data-index="${b}"],[data-second-index="${b}"]`)}function X(b){return r.value?b.offsetTop:s.value?l.value.clientWidth-b.offsetLeft-b.offsetWidth:b.offsetLeft}function A(b){if(E()!==b)return r.value?l.value.scrollTop=b-(o.value?i.value??0:0):s.value?l.value.scrollLeft=-b:l.value.scrollLeft=b,b}function E(){return r.value?l.value.scrollTop:s.value?-l.value.scrollLeft:l.value.scrollLeft}function B(){h??(h=l.value.getRootNode());const b=h.elementsFromPoint(r.value||!o.value?window.innerWidth/2:s.value?window.innerWidth-ir:ir,r.value&&o.value?i.value||ir:window.innerHeight/2);for(let T=0;T<b.length;T++){const H=b[T];if(H.hasAttribute("data-index"))return H;if(H===l.value)break}}function q(b){return r.value?Math.abs(b.top-(i.value||0))/b.height:s.value?Math.max(0,b.right-l.value.clientWidth)/b.width:Math.abs(b.left)/b.width}return{goToPage:V}}function zd(e,t){let n;return()=>{n||(n=setTimeout(()=>{n=void 0,e()},t))}}function Bd({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:s,speed:i,onLongIdle:l}){const a=tr("tk:isPlaying",e,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults:(T,H)=>T===void 0?H:T===!0||T==="true"}),c=ee(!1);let u,d;const h=Bt(q,100);let m;const C=Bt(()=>{c.value=!0,clearTimeout(m),m=a.value?void 0:setTimeout(l,15e3)},t?2e3:1e3),y=()=>setTimeout(()=>{c.value=!1,C(),m&&(clearTimeout(m),m=void 0)},30);y(),t||gn(window,"mousemove",y);const V=Gu();tt(()=>{he(V,T=>{a.value&&(T==="visible"?q():d==null||d())}),he(i,()=>N()),he(s,T=>{T||X()})}),ft(()=>{clearTimeout(m),m=void 0});async function N(T){a.value&&(d==null||d()),T&&(await ct(),await T()),a.value&&h()}function z(){a.value?X():A()}function X(){a.value&&(a.value=!1,d==null||d(),y())}function A(){!a.value&&s.value&&(a.value=!0,q(),y())}function E(){d==null||d()}function B(T){switch(T.key){case" ":T.preventDefault(),z();break;case"PageUp":case"PageDown":case(o.value?"ArrowUp":"ArrowLeft"):case(o.value?"ArrowDown":"ArrowRight"):N(()=>new Promise(H=>setTimeout(H,100)));break}}function q(){const T=n.value;if(!a.value||!T)return;const H=o.value?T.scrollHeight-T.clientHeight:T.scrollWidth-T.clientWidth,ae=b();if(H<=ae){X();return}d=()=>{u=Date.now(),d=void 0};const S=Date.now();u=S;const se=.05*i.value,Ce=o.value?"scrollTop":"scrollLeft";let Me=Date.now(),le=0;const x=()=>{if(u!==S)return;const M=Date.now(),te=M-Me;Me=M;const pe=se*te+le;pe>=1?(le=pe%1,T[Ce]+=(pe-le)*(r.value?-1:1)):le=pe,setTimeout(x,1)};x()}function b(){const T=n.value;return o.value?T.scrollTop:r.value?-T.scrollLeft:T.scrollLeft}return{isPlaying:a,isIdle:c,toggle:z,play:A,pause:E,resume:q,stop:X,interfere:N,onKey:B,awake:y}}function Dd(e){var d,h,m,C;let t=-1;const{vol:n,chap:o,title:r,slug:s,basePath:i}=e,l=r.chapters??[],a=(l==null?void 0:l.length)>1?l:[];a.length&&(t=a.findIndex(y=>y.slug===e.slug),t===-1&&(t=a.findIndex(y=>y.vol===n&&y.chap===o)),t===-1&&(t=a.findIndex(y=>s.startsWith(`${y.slug}-`)&&s.length-y.slug.length>3)));const c=((d=e.prev)==null?void 0:d.slug)??((h=a[t+1])==null?void 0:h.slug),u=((m=e.next)==null?void 0:m.slug)??((C=a[t-1])==null?void 0:C.slug);return{activeIndex:t,activeLabel:Vi({vol:n,chap:o}),chapters:a.map(y=>({label:Vi(y),path:lr(i,y.slug)})),prevPath:lr(i,c),nextPath:lr(i,u)}}function lr(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function Vi({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const Nd={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},Fd=Oe({...{inheritAttrs:!1},__name:"TrackkunReader",props:{raw:{},imgs:{},isWebtoon:{type:Boolean},page:{},spaceTop:{},spaceBottom:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},isGuest:{type:Boolean}},emits:["pageChanged","fullScreenChanged","playingChanged","dispose","openEntry","addEntry","longIdle"],setup(e,{emit:t}){const n=e,o=Jc({touchDevice:n.touchDevice}),r=ue(()=>Array.isArray(n.imgs)?n.imgs.filter($=>typeof $=="string"):[]),s=Ld({initialPage:n.page,max:r.value.length-1}),i=Ed(r,Math.ceil(s.value),n.isWebtoon),{direction:l,style:a,isRTL:c,isDouble:u,isVertical:d,isLongStrip:h,speed:m,zoom:C}=df({titleName:n.raw.title.name,asyncIsWebtoon:i}),y=Od(r,s),V=Id(y,u),N=ue(()=>s.value>=r.value.length),z=ue(()=>Dd(n.raw)),X=ue(()=>{var $,J;return c.value?($=z.value)==null?void 0:$.nextPath:(J=z.value)==null?void 0:J.prevPath}),A=ue(()=>{var $,J;return c.value?($=z.value)==null?void 0:$.prevPath:(J=z.value)==null?void 0:J.nextPath}),E=ee(null),B=Bd({autoPlay:n.autoPlay,touchDevice:n.touchDevice,scrollEl:ue(()=>{var $;return($=E.value)==null?void 0:$.$el}),speed:m,isRTL:c,isVertical:d,isLongStrip:h,onLongIdle:()=>t("longIdle")});he(B.isPlaying,$=>{$||pe(!1),t("playingChanged",$)}),he(B.isIdle,$=>{B.isPlaying.value&&pe($)}),he(o,$=>{!$&&B.isIdle.value?B.awake():$&&n.fullScreen&&pe()});const q=ue(()=>!n.touchDevice&&B.isIdle.value&&!o.value),b=ue({get(){return C.value},set($){B.interfere(()=>{C.value=$})}});lu().addListener({onKeyDown:$=>{if(B.onKey($),!d.value)return;const J=$.key==="ArrowLeft",me=$.key==="ArrowRight";J?se():me&&S()}});const H=Ad({page:s,style:a,direction:l,isLongStrip:h,isVertical:d,isRTL:c,spaceTop:ue(()=>n.spaceTop),scrollEl:ue(()=>{var $;return($=E.value)==null?void 0:$.$el}),interferePlayer:$=>B.interfere($),onChangedPage($){if($<0||$>=r.value.length+1)return;s.value=$,t("pageChanged",$),$>=r.value.length&&(pe(!1),B.stop())}});function ae(){if(B.isPlaying.value){!n.fullScreen||!n.touchDevice?B.stop():B.awake();return}pe()}function S(){var $;Me(($=z.value)==null?void 0:$.nextPath)}function se(){var $;Me(($=z.value)==null?void 0:$.prevPath)}function Ce($){var me,Fe,rt;const J=(rt=(Fe=(me=z.value)==null?void 0:me.chapters)==null?void 0:Fe[$])==null?void 0:rt.path;J&&Me(J)}function Me($){$&&(location.href=$.includes("://")?$:location.origin+$)}function le(){var me;const $=V.value,J=N.value?$[$.length-1][0].index:(me=$[M()-1])==null?void 0:me[0].index;J!==void 0?H.goToPage(J):se()}function x(){var J;const $=N.value?Math.floor(s.value)+1:((J=V.value[M()+1])==null?void 0:J[0].index)??r.value.length;H.goToPage($)}function M(){const $=Math.floor(s.value),J=V.value.findIndex(me=>me.some(({index:Fe})=>Fe===$));return J===-1?V.value.length-1:J}function te(){jd(),B.stop(),t("dispose")}async function pe($){o.value&&!n.fullScreen||t("fullScreenChanged",typeof $=="boolean"?$:!n.fullScreen)}function Je(){n.entryId?Qt():Ae()}function Ae(){B.stop(),t("addEntry")}function Qt(){B.stop(),t("openEntry",n.entryId)}return($,J)=>{const me=rr,Fe=Ri,rt=Fi,Qe=Di,vn=zi,_n=Ai,f=Zn,p=ji,g=or,_=Li,v=Mi,P=Si,I=Ii,k=$i,O=Oi,w=Yo,F=qo,j=ei,R=Qs;return L(),Ee(R,{"full-screen":!!$.fullScreen,idle:q.value,"space-top":n.spaceTop,"space-bottom":n.spaceBottom,"touch-device":$.touchDevice,rtl:K(c)},ls({back:oe(()=>[Y(f,{href:$.raw.title.url,title:$.raw.title.name},{default:oe(()=>[Y(_n)]),_:1},8,["href","title"])]),exit:oe(()=>[Y(f,{title:"Hide reader",onClick:te},{default:oe(()=>[Y(p)]),_:1})]),"chapter-nav":oe(()=>[Y(g,{modelValue:z.value.activeIndex,label:z.value.activeLabel,items:z.value.chapters,"onUpdate:modelValue":Ce},{item:oe(({item:D})=>[_t(it(D.label),1)]),_:1},8,["modelValue","label","items"]),X.value||A.value?(L(),Z("div",Nd,[Y(f,{title:K(c)?"Next":"Previous",href:X.value,disabled:!X.value,class:"!rounded-r-none"},{default:oe(()=>[Y(_)]),_:1},8,["title","href","disabled"]),Y(f,{title:K(c)?"Previous":"Next",href:A.value,disabled:!A.value,class:"!rounded-l-none"},{default:oe(()=>[Y(v)]),_:1},8,["title","href","disabled"])])):Ne("",!0)]),entry:oe(()=>[Y(f,{title:$.entryId?"View entry":"Add to Trackkun",onClick:Je},{default:oe(()=>[$.entryId?(L(),Ee(I,{key:0})):(L(),Ee(k,{key:1}))]),_:1},8,["title"])]),settings:oe(()=>[Y(O,{"reader-style":K(a),"onUpdate:readerStyle":J[2]||(J[2]=D=>xe(a)?a.value=D:null),direction:K(l),"onUpdate:direction":J[3]||(J[3]=D=>xe(l)?l.value=D:null),speed:K(m),"onUpdate:speed":J[4]||(J[4]=D=>xe(m)?m.value=D:null),zoom:b.value,"onUpdate:zoom":J[5]||(J[5]=D=>b.value=D),webtoon:K(i).state.value,disabled:K(i).isLoading.value},null,8,["reader-style","direction","speed","zoom","webtoon","disabled"])]),play:oe(()=>[Y(f,{title:K(B).isPlaying.value?"Pause":"Play",disabled:K(i).isLoading.value||!K(h),onClick:J[6]||(J[6]=()=>K(B).toggle())},{default:oe(()=>[K(B).isPlaying.value?(L(),Ee(w,{key:0})):(L(),Ee(F,{key:1}))]),_:1},8,["title","disabled"])]),"reset-zoom":oe(()=>[Y(Yt,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:oe(()=>[Y(j,{zoom:b.value,onClick:J[7]||(J[7]=zt(()=>b.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:oe(()=>[U("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:We({width:`${K(s)/(r.value.length-1)*100}%`})},null,4)]),default:oe(()=>[K(i).isLoading.value||!r.value.length?(L(),Ee(me,{key:0})):(L(),Z(ke,{key:1},[Y(rt,{ref_key:"body",ref:E,zoom:b.value,"onUpdate:zoom":J[0]||(J[0]=D=>b.value=D),pages:K(V),"total-imgs":r.value.length,direction:K(l),"is-long-strip":K(h),isRTL:K(c),"is-vertical":K(d),"space-top":$.spaceTop,"space-bottom":n.spaceBottom,"touch-device":$.touchDevice,busy:K(o),idle:q.value,"play-controller":K(B),onPrev:le,onNext:x,onClick:ae,onWheelPassive:J[1]||(J[1]=()=>K(B).interfere())},ls({_:2},[!K(i).isLoading.value&&r.value.length?{name:"end",fn:oe(()=>[Y(Fe,{"has-next":!!z.value.nextPath,onNext:S,onHide:te},null,8,["has-next"])]),key:"0"}:void 0]),1032,["zoom","pages","total-imgs","direction","is-long-strip","isRTL","is-vertical","space-top","space-bottom","touch-device","busy","idle","play-controller"]),Y(Qe,{direction:K(l)},null,8,["direction"]),N.value?Ne("",!0):(L(),Ee(vn,{key:0,playing:!!K(B).isPlaying.value},null,8,["playing"]))],64))]),_:2},[K(V).length?{name:"page-nav",fn:oe(()=>[Y(P,{"model-value":K(s),disabled:K(i).isLoading.value,pages:K(V),"total-imgs":r.value.length,"onUpdate:modelValue":K(H).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"0"}:void 0]),1032,["full-screen","idle","space-top","space-bottom","touch-device","rtl"])}}}),Wi=ye(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}.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-auto{margin-left:auto}.-ml-20{margin-left:-5rem}.ml-1{margin-left:.25rem}.-mr-3{margin-right:-.75rem}.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-\\[24rem\\]{height:24rem}.h-16{height:4rem}.h-10{height:2.5rem}.h-4{height:1rem}.h-9{height:2.25rem}.h-24{height:6rem}.h-1\\.5{height:.375rem}.h-1{height:.25rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-6{height:1.5rem}.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-20{width:5rem}.w-24{width:6rem}.w-\\[50vw\\]{width:50vw}.w-1\\/3{width:33.333333%}.w-\\[4\\.5rem\\]{width:4.5rem}.max-w-full{max-width:100%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-right{transform-origin:right}.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,.translate-y-0{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-0{--tw-translate-y:0px}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.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-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-\\[1px\\]{gap:1px}.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-sm{border-radius:.125rem}.rounded-\\[2\\.5rem\\]{border-radius:2.5rem}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.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{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-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-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}.py-1{padding-bottom:.25rem;padding-top:.25rem}.pt-3{padding-top:.75rem}.pb-12{padding-bottom:3rem}.pl-1{padding-left:.25rem}.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}.lowercase{text-transform:lowercase}.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)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.duration-150{transition-duration:.15s}.duration-100{transition-duration:.1s}.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-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/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-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-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/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-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:640px){.sm\\:inset-3{bottom:.75rem;left:.75rem;right:.75rem;top:.75rem}.sm\\:w-\\[32rem\\]{width:32rem}}@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}}
7
- `]]]),Rd=Object.freeze(Object.defineProperty({__proto__:null,default:Wi},Symbol.toStringTag,{value:"Module"})),Hd={},Vd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Wd=[U("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46s46-20.595 46-46s-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];function Kd(e,t){return L(),Z("svg",Vd,Wd)}const Ud=Object.freeze(Object.defineProperty({__proto__:null,default:ye(Hd,[["render",Kd]])},Symbol.toStringTag,{value:"Module"})),qd={text:Yd,attr:Zd,"attr-contain":Xd,value:Qd,row:Gd};function ar(e,t={}){if(!e)return;const{root:n=document.documentElement,returnAll:o,preProcess:r}=t,s=Jd(e);if(s.length>1){for(let d=0;d<s.length;d+=1){const h=ar(s[d],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(d=>{const h=d.indexOf(":"),m=h!==-1;return{action:m?d.substring(0,h):d,param:m?d.substring(h+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 h of a){const m=qd[h.action],C=m(d,h.param);if(C){if(o){u.push(C);break}return C}}return o?u:void 0}function Yd(e){return Array.from(e.childNodes).filter(n=>n.nodeType===3).map(n=>Jt(n.textContent)).filter(Boolean).join(" ").trim()||Jt(e.textContent)}function Zd(e,t){return Jt(e.getAttribute(t))}function Xd(e,t){let n=e.getAttribute(t);if(!n){const o=e.getAttributeNames().find(r=>r.includes(t));o&&(n=e.getAttribute(o))}return Jt(n)}function Jd(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 Qd(e){return e.value}function Gd(e,t){var r,s,i;if(!t)return;const n=(r=Jt(e.textContent))==null?void 0:r.toLowerCase(),o=t.toLowerCase();if(!(n!==o&&n!==`${o}:`))return Jt(((s=e.nextElementSibling)==null?void 0:s.textContent)??((i=e.nextSibling)==null?void 0:i.textContent))}function Jt(e){if(e)return(e==null?void 0:e.replace(/(\n|\t)/g," ").trim())||void 0}const ep=`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 #radio_content.cerrado,html.gear-second body .pf-br-icon{--tw-translate-x:-100%!important;display:none!important;height:0!important;max-height:0!important;max-width:0!important;opacity:0!important;pointer-events:none!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important;visibility:hidden!important;width:0!important;z-index:-10!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-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;pointer-events:none!important}
8
- `,mn="gear-second",Ki="gear-second--adblock",cr={raw:{},spec:void 0,imgs:[],isWebtoon:void 0,page:0,spaceTop:void 0,spaceBottom:void 0,fullScreen:void 0,touchDevice:void 0,entryId:void 0,autoPlay:void 0,adBlock:void 0,textScaleFactor:void 0,isGuest:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPlayingChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onLongIdle:void 0,onFinished:void 0},ge={el:void 0,controller:void 0,data:nn({...cr})};async function tp(e){var r,s;if(ge.controller)return ge.data.raw=e.raw,ge.controller;const t=()=>{var i;ge.el&&(document.body.removeChild(ge.el),ge.el=void 0),document.documentElement.classList.remove(mn),document.documentElement.classList.remove(Ki),rp(ge.data),Object.assign(ge.data,cr),ge.controller=void 0,(i=e==null?void 0:e.onDispose)==null||i.call(e)};ge.controller={triggerDoubleTap:(i,l)=>cd(i,l),updateArgs(i){Object.assign(ge.data,i),ur()},dispose:t};let n=e.raw.isWebtoon;const o=(r=e.raw.imgs)!=null&&r.length?e.raw.imgs:ar(e.raw.imgsLocator??((s=e.spec)==null?void 0:s.imgs),{returnAll:!0,preProcess:n!==void 0?void 0:i=>n=n||ip(i)})??[];return document.documentElement.classList.add(mn),e.adBlock&&document.documentElement.classList.add(Ki),await np(),Object.assign(ge.data,cr,e,{isWebtoon:n,imgs:o,page:sp({page:e.page??0,imgs:o}),onDispose:t}),ur(),Ui(e.raw.slug),ge.el||(ge.el=document.createElement(mn),document.body.appendChild(ge.el)),ge.controller}async function np(){if(window.customElements.get(mn))return;const e=document.createElement("style");e.appendChild(document.createTextNode(ep)),document.head.appendChild(e);const t=uc({styles:[await op()],data:()=>({readerData:ge.data,isFinished:!1}),render(){return js(Wi,{...this.readerData,onFullScreenChanged:n=>{var o,r;this.readerData.fullScreen=n,(r=(o=this.readerData).onFullScreenChanged)==null||r.call(o,n),ur()},onPageChanged:n=>{var o,r,s,i;this.readerData.page=n,(r=(o=this.readerData).onPageChanged)==null||r.call(o,n),!this.isFinished&&n>=this.readerData.imgs.length-2&&(this.isFinished=!0,(i=(s=this.readerData).onFinished)==null||i.call(s))}})}});window.customElements.define(mn,t)}async function op(){const e=Object.assign({"./TrackkunReader.vue":Rd,"./components/AutoNext.vue":Td,"./components/BottomSheet.vue":du,"./components/ButtonDropdown.vue":Lf,"./components/ButtonIcon.vue":eu,"./components/ButtonReaderSettings.vue":pf,"./components/ButtonResetZoom.vue":Fc,"./components/DirectionToast.vue":ld,"./components/InputPercentage.vue":gu,"./components/InputSelect.vue":yu,"./components/LoadingIndicator.vue":md,"./components/PageNav.vue":jf,"./components/PauseToast.vue":td,"./components/ReaderBody.vue":xd,"./components/ReaderLayout.vue":Sc,"./components/TableField.vue":_u,"./components/ZoomWrapper.vue":ud,"./components/icons/IconBack.vue":ed,"./components/icons/IconBookmarkNew.vue":_f,"./components/icons/IconBookmarked.vue":Cf,"./components/icons/IconChevronLeft.vue":Wf,"./components/icons/IconChevronRight.vue":Nf,"./components/icons/IconClose.vue":su,"./components/icons/IconExclamationCircle.vue":Ud,"./components/icons/IconNext.vue":id,"./components/icons/IconPause.vue":Xc,"./components/icons/IconPlay.vue":Kc,"./components/icons/IconReaderExit.vue":Zf,"./components/icons/IconSettings.vue":Pu,"./components/icons/IconTriangle.vue":$f,"./components/icons/IconZoom.vue":zc}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}function ur(){if(ge.data.adBlock)return;const{spaceTop:e,fullScreen:t}=ge.data,n=document.querySelector(":root");n==null||n.style.setProperty("--tk-safe-top",`${t?0:(e||0)+56}px`)}function rp({page:e,imgs:t}){if(e<1||!t)return;if(e>=t.length){document.documentElement.scrollTop=document.documentElement.scrollHeight;return}const n=t[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 sp({page:e,imgs:t}){if(!t.length||document.documentElement.scrollTop<700)return e;for(let n=0;n<t.length;n++){const o=t[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 Ui(e,t=0){var s;const n=ge.data.raw.imgsLocator??((s=ge.data.spec)==null?void 0:s.imgs);if(!n||t>=7||(await new Promise(i=>setTimeout(i,1e3)),ge.data.raw.slug!==e))return;const o=ar(n,{returnAll:!0});if(!(o!=null&&o.length))return;const r=o.length>ge.data.imgs.length;r&&(ge.data.imgs=o),Ui(e,r?0:t+1)}function ip(e){const t=e.map(n=>+(n.getAttribute("height")||0)/+(n.getAttribute("width")||1));if(t.some(n=>n>2.5))return!0;if(t.filter(Boolean).length>Math.max(1,t.length-2))return!1}return tp});
1
+ (function(De,ne){typeof exports=="object"&&typeof module<"u"?module.exports=ne():typeof define=="function"&&define.amd?define(ne):(De=typeof globalThis<"u"?globalThis:De||self,De._gearSecond_=ne())})(this,function(){"use strict";var fp=Object.defineProperty;var dp=(De,ne,We)=>ne in De?fp(De,ne,{enumerable:!0,configurable:!0,writable:!0,value:We}):De[ne]=We;var Zi=(De,ne,We)=>(dp(De,typeof ne!="symbol"?ne+"":ne,We),We);function De(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={},We=[],Je=()=>{},Yi=()=>!1,Xi=/^on[^a-z]/,xn=e=>Xi.test(e),to=e=>e.startsWith("onUpdate:"),be=Object.assign,no=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ji=Object.prototype.hasOwnProperty,se=(e,t)=>Ji.call(e,t),U=Array.isArray,Ht=e=>Cn(e)==="[object Map]",ur=e=>Cn(e)==="[object Set]",G=e=>typeof e=="function",_e=e=>typeof e=="string",oo=e=>typeof e=="symbol",he=e=>e!==null&&typeof e=="object",fr=e=>he(e)&&G(e.then)&&G(e.catch),dr=Object.prototype.toString,Cn=e=>dr.call(e),Qi=e=>Cn(e).slice(8,-1),pr=e=>Cn(e)==="[object Object]",ro=e=>_e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,kn=De(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Gi=/-(\w)/g,Ne=Pn(e=>e.replace(Gi,(t,n)=>n?n.toUpperCase():"")),el=/\B([A-Z])/g,Ue=Pn(e=>e.replace(el,"-$1").toLowerCase()),Tn=Pn(e=>e.charAt(0).toUpperCase()+e.slice(1)),so=Pn(e=>e?`on${Tn(e)}`:""),on=(e,t)=>!Object.is(e,t),On=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},$n=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},io=e=>{const t=parseFloat(e);return isNaN(t)?e:t},lo=e=>{const t=_e(e)?Number(e):NaN;return isNaN(t)?e:t};let hr;const ao=()=>hr||(hr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ke(e){if(U(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=_e(o)?rl(o):Ke(o);if(r)for(const s in r)t[s]=r[s]}return t}else{if(_e(e))return e;if(he(e))return e}}const tl=/;(?![^(]*\))/g,nl=/:([^]+)/,ol=/\/\*[^]*?\*\//g;function rl(e){const t={};return e.replace(ol,"").split(tl).forEach(n=>{if(n){const o=n.split(nl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function ye(e){let t="";if(_e(e))t=e;else if(U(e))for(let n=0;n<e.length;n++){const o=ye(e[n]);o&&(t+=o+" ")}else if(he(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const sl=De("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function gr(e){return!!e||e===""}const lt=e=>_e(e)?e:e==null?"":U(e)||he(e)&&(e.toString===dr||!G(e.toString))?JSON.stringify(e,mr,2):String(e),mr=(e,t)=>t&&t.__v_isRef?mr(e,t.value):Ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:ur(t)?{[`Set(${t.size})`]:[...t.values()]}:he(t)&&!U(t)&&!pr(t)?String(t):t;let Fe;class il{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Fe,!t&&Fe&&(this.index=(Fe.scopes||(Fe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Fe;try{return Fe=this,t()}finally{Fe=n}}}on(){Fe=this}off(){Fe=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 ll(e,t=Fe){t&&t.active&&t.effects.push(e)}function vr(){return Fe}function al(e){Fe&&Fe.cleanups.push(e)}const co=e=>{const t=new Set(e);return t.w=0,t.n=0,t},br=e=>(e.w&ht)>0,_r=e=>(e.n&ht)>0,cl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ht},ul=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];br(r)&&!_r(r)?r.delete(e):t[n++]=r,r.w&=~ht,r.n&=~ht}t.length=n}},uo=new WeakMap;let rn=0,ht=1;const fo=30;let Qe;const Tt=Symbol(""),po=Symbol("");class ho{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,ll(this,o)}run(){if(!this.active)return this.fn();let t=Qe,n=gt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Qe,Qe=this,gt=!0,ht=1<<++rn,rn<=fo?cl(this):yr(this),this.fn()}finally{rn<=fo&&ul(this),ht=1<<--rn,Qe=this.parent,gt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Qe===this?this.deferStop=!0:this.active&&(yr(this),this.onStop&&this.onStop(),this.active=!1)}}function yr(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let gt=!0;const wr=[];function Vt(){wr.push(gt),gt=!1}function Wt(){const e=wr.pop();gt=e===void 0?!0:e}function Ae(e,t,n){if(gt&&Qe){let o=uo.get(e);o||uo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=co()),xr(r)}}function xr(e,t){let n=!1;rn<=fo?_r(e)||(e.n|=ht,n=!br(e)):n=!e.has(Qe),n&&(e.add(Qe),Qe.deps.push(e))}function at(e,t,n,o,r,s){const i=uo.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&U(e)){const a=Number(o);i.forEach((c,d)=>{(d==="length"||d>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":U(e)?ro(n)&&l.push(i.get("length")):(l.push(i.get(Tt)),Ht(e)&&l.push(i.get(po)));break;case"delete":U(e)||(l.push(i.get(Tt)),Ht(e)&&l.push(i.get(po)));break;case"set":Ht(e)&&l.push(i.get(Tt));break}if(l.length===1)l[0]&&go(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);go(co(a))}}function go(e,t){const n=U(e)?e:[...e];for(const o of n)o.computed&&Cr(o);for(const o of n)o.computed||Cr(o)}function Cr(e,t){(e!==Qe||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const fl=De("__proto__,__v_isRef,__isVue"),kr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(oo)),dl=mo(),pl=mo(!1,!0),hl=mo(!0),Pr=gl();function gl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=le(this);for(let s=0,i=this.length;s<i;s++)Ae(o,"get",s+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(le)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Vt();const o=le(this)[t].apply(this,n);return Wt(),o}}),e}function ml(e){const t=le(this);return Ae(t,"has",e),t.hasOwnProperty(e)}function mo(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?Ml:zr:t?Lr:Mr).get(o))return o;const i=U(o);if(!e){if(i&&se(Pr,r))return Reflect.get(Pr,r,s);if(r==="hasOwnProperty")return ml}const l=Reflect.get(o,r,s);return(oo(r)?kr.has(r):fl(r))||(e||Ae(o,"get",r),t)?l:we(l)?i&&ro(r)?l:l.value:he(l)?e?_o(l):sn(l):l}}const vl=Tr(),bl=Tr(!0);function Tr(e=!1){return function(n,o,r,s){let i=n[o];if(Kt(i)&&we(i)&&!we(r))return!1;if(!e&&(!An(r)&&!Kt(r)&&(i=le(i),r=le(r)),!U(n)&&we(i)&&!we(r)))return i.value=r,!0;const l=U(n)&&ro(o)?Number(o)<n.length:se(n,o),a=Reflect.set(n,o,r,s);return n===le(s)&&(l?on(r,i)&&at(n,"set",o,r):at(n,"add",o,r)),a}}function _l(e,t){const n=se(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&at(e,"delete",t,void 0),o}function yl(e,t){const n=Reflect.has(e,t);return(!oo(t)||!kr.has(t))&&Ae(e,"has",t),n}function wl(e){return Ae(e,"iterate",U(e)?"length":Tt),Reflect.ownKeys(e)}const Or={get:dl,set:vl,deleteProperty:_l,has:yl,ownKeys:wl},xl={get:hl,set(e,t){return!0},deleteProperty(e,t){return!0}},Cl=be({},Or,{get:pl,set:bl}),vo=e=>e,In=e=>Reflect.getPrototypeOf(e);function En(e,t,n=!1,o=!1){e=e.__v_raw;const r=le(e),s=le(t);n||(t!==s&&Ae(r,"get",t),Ae(r,"get",s));const{has:i}=In(r),l=o?vo:n?wo:ln;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 Sn(e,t=!1){const n=this.__v_raw,o=le(n),r=le(e);return t||(e!==r&&Ae(o,"has",e),Ae(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Mn(e,t=!1){return e=e.__v_raw,!t&&Ae(le(e),"iterate",Tt),Reflect.get(e,"size",e)}function $r(e){e=le(e);const t=le(this);return In(t).has.call(t,e)||(t.add(e),at(t,"add",e,e)),this}function Ir(e,t){t=le(t);const n=le(this),{has:o,get:r}=In(n);let s=o.call(n,e);s||(e=le(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?on(t,i)&&at(n,"set",e,t):at(n,"add",e,t),this}function Er(e){const t=le(this),{has:n,get:o}=In(t);let r=n.call(t,e);r||(e=le(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&at(t,"delete",e,void 0),s}function Sr(){const e=le(this),t=e.size!==0,n=e.clear();return t&&at(e,"clear",void 0,void 0),n}function Ln(e,t){return function(o,r){const s=this,i=s.__v_raw,l=le(i),a=t?vo:e?wo:ln;return!e&&Ae(l,"iterate",Tt),i.forEach((c,d)=>o.call(r,a(c),a(d),s))}}function zn(e,t,n){return function(...o){const r=this.__v_raw,s=le(r),i=Ht(s),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=r[e](...o),d=n?vo:t?wo:ln;return!t&&Ae(s,"iterate",a?po:Tt),{next(){const{value:u,done:h}=c.next();return h?{value:u,done:h}:{value:l?[d(u[0]),d(u[1])]:d(u),done:h}},[Symbol.iterator](){return this}}}}function mt(e){return function(...t){return e==="delete"?!1:this}}function kl(){const e={get(s){return En(this,s)},get size(){return Mn(this)},has:Sn,add:$r,set:Ir,delete:Er,clear:Sr,forEach:Ln(!1,!1)},t={get(s){return En(this,s,!1,!0)},get size(){return Mn(this)},has:Sn,add:$r,set:Ir,delete:Er,clear:Sr,forEach:Ln(!1,!0)},n={get(s){return En(this,s,!0)},get size(){return Mn(this,!0)},has(s){return Sn.call(this,s,!0)},add:mt("add"),set:mt("set"),delete:mt("delete"),clear:mt("clear"),forEach:Ln(!0,!1)},o={get(s){return En(this,s,!0,!0)},get size(){return Mn(this,!0)},has(s){return Sn.call(this,s,!0)},add:mt("add"),set:mt("set"),delete:mt("delete"),clear:mt("clear"),forEach:Ln(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=zn(s,!1,!1),n[s]=zn(s,!0,!1),t[s]=zn(s,!1,!0),o[s]=zn(s,!0,!0)}),[e,n,t,o]}const[Pl,Tl,Ol,$l]=kl();function bo(e,t){const n=t?e?$l:Ol:e?Tl:Pl;return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(se(n,r)&&r in o?n:o,r,s)}const Il={get:bo(!1,!1)},El={get:bo(!1,!0)},Sl={get:bo(!0,!1)},Mr=new WeakMap,Lr=new WeakMap,zr=new WeakMap,Ml=new WeakMap;function Ll(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function zl(e){return e.__v_skip||!Object.isExtensible(e)?0:Ll(Qi(e))}function sn(e){return Kt(e)?e:yo(e,!1,Or,Il,Mr)}function Al(e){return yo(e,!1,Cl,El,Lr)}function _o(e){return yo(e,!0,xl,Sl,zr)}function yo(e,t,n,o,r){if(!he(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=zl(e);if(i===0)return e;const l=new Proxy(e,i===2?o:n);return r.set(e,l),l}function Ut(e){return Kt(e)?Ut(e.__v_raw):!!(e&&e.__v_isReactive)}function Kt(e){return!!(e&&e.__v_isReadonly)}function An(e){return!!(e&&e.__v_isShallow)}function Ar(e){return Ut(e)||Kt(e)}function le(e){const t=e&&e.__v_raw;return t?le(t):e}function jr(e){return $n(e,"__v_skip",!0),e}const ln=e=>he(e)?sn(e):e,wo=e=>he(e)?_o(e):e;function Br(e){gt&&Qe&&(e=le(e),xr(e.dep||(e.dep=co())))}function Dr(e,t){e=le(e);const n=e.dep;n&&go(n)}function we(e){return!!(e&&e.__v_isRef===!0)}function J(e){return Fr(e,!1)}function Nr(e){return Fr(e,!0)}function Fr(e,t){return we(e)?e:new jl(e,t)}class jl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:le(t),this._value=n?t:ln(t)}get value(){return Br(this),this._value}set value(t){const n=this.__v_isShallow||An(t)||Kt(t);t=n?t:le(t),on(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ln(t),Dr(this))}}function V(e){return we(e)?e.value:e}const Bl={get:(e,t,n)=>V(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return we(r)&&!we(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Rr(e){return Ut(e)?e:new Proxy(e,Bl)}class Dl{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 ho(t,()=>{this._dirty||(this._dirty=!0,Dr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=le(this);return Br(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Nl(e,t,n=!1){let o,r;const s=G(e);return s?(o=e,r=Je):(o=e.get,r=e.set),new Dl(o,r,s||!r,n)}function hp(e,...t){}function vt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){jn(s,t,n)}return r}function qe(e,t,n,o){if(G(e)){const s=vt(e,t,n,o);return s&&fr(s)&&s.catch(i=>{jn(i,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(qe(e[s],t,n,o));return r}function jn(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 d=0;d<c.length;d++)if(c[d](e,i,l)===!1)return}s=s.parent}const a=t.appContext.config.errorHandler;if(a){vt(a,null,10,[e,i,l]);return}}Fl(e,n,r,o)}function Fl(e,t,n,o=!0){console.error(e)}let an=!1,xo=!1;const Ee=[];let et=0;const qt=[];let ct=null,Ot=0;const Hr=Promise.resolve();let Co=null;function ut(e){const t=Co||Hr;return e?t.then(this?e.bind(this):e):t}function Rl(e){let t=et+1,n=Ee.length;for(;t<n;){const o=t+n>>>1;cn(Ee[o])<e?t=o+1:n=o}return t}function ko(e){(!Ee.length||!Ee.includes(e,an&&e.allowRecurse?et+1:et))&&(e.id==null?Ee.push(e):Ee.splice(Rl(e.id),0,e),Vr())}function Vr(){!an&&!xo&&(xo=!0,Co=Hr.then(Kr))}function Hl(e){const t=Ee.indexOf(e);t>et&&Ee.splice(t,1)}function Vl(e){U(e)?qt.push(...e):(!ct||!ct.includes(e,e.allowRecurse?Ot+1:Ot))&&qt.push(e),Vr()}function Wr(e,t=an?et+1:0){for(;t<Ee.length;t++){const n=Ee[t];n&&n.pre&&(Ee.splice(t,1),t--,n())}}function Ur(e){if(qt.length){const t=[...new Set(qt)];if(qt.length=0,ct){ct.push(...t);return}for(ct=t,ct.sort((n,o)=>cn(n)-cn(o)),Ot=0;Ot<ct.length;Ot++)ct[Ot]();ct=null,Ot=0}}const cn=e=>e.id==null?1/0:e.id,Wl=(e,t)=>{const n=cn(e)-cn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Kr(e){xo=!1,an=!0,Ee.sort(Wl);const t=Je;try{for(et=0;et<Ee.length;et++){const n=Ee[et];n&&n.active!==!1&&vt(n,null,14)}}finally{et=0,Ee.length=0,Ur(),an=!1,Co=null,(Ee.length||qt.length)&&Kr()}}function Ul(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 d=`${i==="modelValue"?"model":i}Modifiers`,{number:u,trim:h}=o[d]||ne;h&&(r=n.map(b=>_e(b)?b.trim():b)),u&&(r=n.map(io))}let l,a=o[l=so(t)]||o[l=so(Ne(t))];!a&&s&&(a=o[l=so(Ue(t))]),a&&qe(a,e,6,r);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,qe(c,e,6,r)}}function qr(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(!G(e)){const a=c=>{const d=qr(c,t,!0);d&&(l=!0,be(i,d))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!s&&!l?(he(e)&&o.set(e,null),null):(U(s)?s.forEach(a=>i[a]=null):be(i,s),he(e)&&o.set(e,i),i)}function Bn(e,t){return!e||!xn(t)?!1:(t=t.slice(2).replace(/Once$/,""),se(e,t[0].toLowerCase()+t.slice(1))||se(e,Ue(t))||se(e,t))}let Te=null,Zr=null;function Dn(e){const t=Te;return Te=e,Zr=e&&e.type.__scopeId||null,t}function oe(e,t=Te,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&ks(-1);const s=Dn(t);let i;try{i=e(...r)}finally{Dn(s),o._d&&ks(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function gp(){}function Po(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:l,attrs:a,emit:c,render:d,renderCache:u,data:h,setupState:b,ctx:$,inheritAttrs:v}=e;let q,D;const B=Dn(e);try{if(n.shapeFlag&4){const z=r||o;q=nt(d.call(z,z,u,s,b,h,$)),D=a}else{const z=t;q=nt(z.length>1?z(s,{attrs:a,slots:l,emit:c}):z(s,null)),D=t.props?a:Kl(a)}}catch(z){pn.length=0,jn(z,e,1),q=W(Ye)}let N=q;if(D&&v!==!1){const z=Object.keys(D),{shapeFlag:E}=N;z.length&&E&7&&(i&&z.some(to)&&(D=ql(D,i)),N=_t(N,D))}return n.dirs&&(N=_t(N),N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition&&(N.transition=n.transition),q=N,Dn(B),q}const Kl=e=>{let t;for(const n in e)(n==="class"||n==="style"||xn(n))&&((t||(t={}))[n]=e[n]);return t},ql=(e,t)=>{const n={};for(const o in e)(!to(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Zl(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?Yr(o,i,c):!!i;if(a&8){const d=t.dynamicProps;for(let u=0;u<d.length;u++){const h=d[u];if(i[h]!==o[h]&&!Bn(c,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===i?!1:o?i?Yr(o,i,c):!0:!!i;return!1}function Yr(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]&&!Bn(n,s))return!0}return!1}function Yl({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Xl=e=>e.__isSuspense;function Jl(e,t){t&&t.pendingBranch?U(e)?t.effects.push(...e):t.effects.push(e):Vl(e)}function Ql(e,t){return To(e,null,t)}const Nn={};function de(e,t,n){return To(e,t,n)}function To(e,t,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:i}=ne){var l;const a=vr()===((l=ke)==null?void 0:l.scope)?ke:null;let c,d=!1,u=!1;if(we(e)?(c=()=>e.value,d=An(e)):Ut(e)?(c=()=>e,o=!0):U(e)?(u=!0,d=e.some(z=>Ut(z)||An(z)),c=()=>e.map(z=>{if(we(z))return z.value;if(Ut(z))return $t(z);if(G(z))return vt(z,a,2)})):G(e)?t?c=()=>vt(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),qe(e,a,3,[b])}:c=Je,t&&o){const z=c;c=()=>$t(z())}let h,b=z=>{h=B.onStop=()=>{vt(z,a,4)}},$;if(gn)if(b=Je,t?n&&qe(t,a,3,[c(),u?[]:void 0,b]):c(),r==="sync"){const z=Wa();$=z.__watcherHandles||(z.__watcherHandles=[])}else return Je;let v=u?new Array(e.length).fill(Nn):Nn;const q=()=>{if(B.active)if(t){const z=B.run();(o||d||(u?z.some((E,m)=>on(E,v[m])):on(z,v)))&&(h&&h(),qe(t,a,3,[z,v===Nn?void 0:u&&v[0]===Nn?[]:v,b]),v=z)}else B.run()};q.allowRecurse=!!t;let D;r==="sync"?D=q:r==="post"?D=()=>je(q,a&&a.suspense):(q.pre=!0,a&&(q.id=a.uid),D=()=>ko(q));const B=new ho(c,D);t?n?q():v=B.run():r==="post"?je(B.run.bind(B),a&&a.suspense):B.run();const N=()=>{B.stop(),a&&a.scope&&no(a.scope.effects,B)};return $&&$.push(N),N}function Gl(e,t,n){const o=this.proxy,r=_e(e)?e.includes(".")?Xr(o,e):()=>o[e]:e.bind(o,o);let s;G(t)?s=t:(s=t.handler,n=t);const i=ke;Yt(this);const l=To(r,s.bind(o),n);return i?Yt(i):Lt(),l}function Xr(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 $t(e,t){if(!he(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),we(e))$t(e.value,t);else if(U(e))for(let n=0;n<e.length;n++)$t(e[n],t);else if(ur(e)||Ht(e))e.forEach(n=>{$t(n,t)});else if(pr(e))for(const n in e)$t(e[n],t);return e}function bt(e,t){const n=Te;if(n===null)return e;const o=Xn(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&&(G(i)&&(i={mounted:i,updated:i}),i.deep&&$t(l),r.push({dir:i,instance:o,value:l,oldValue:void 0,arg:a,modifiers:c}))}return e}function It(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&&(Vt(),qe(a,n,8,[e.el,l,e,t]),Wt())}}function ea(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return tt(()=>{e.isMounted=!0}),ns(()=>{e.isUnmounting=!0}),e}const Ze=[Function,Array],Jr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ze,onEnter:Ze,onAfterEnter:Ze,onEnterCancelled:Ze,onBeforeLeave:Ze,onLeave:Ze,onAfterLeave:Ze,onLeaveCancelled:Ze,onBeforeAppear:Ze,onAppear:Ze,onAfterAppear:Ze,onAppearCancelled:Ze},ta={name:"BaseTransition",props:Jr,setup(e,{slots:t}){const n=Os(),o=ea();let r;return()=>{const s=t.default&&es(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const v of s)if(v.type!==Ye){i=v;break}}const l=le(e),{mode:a}=l;if(o.isLeaving)return $o(i);const c=Gr(i);if(!c)return $o(i);const d=Oo(c,l,o,n);Io(c,d);const u=n.subTree,h=u&&Gr(u);let b=!1;const{getTransitionKey:$}=c.type;if($){const v=$();r===void 0?r=v:v!==r&&(r=v,b=!0)}if(h&&h.type!==Ye&&(!Mt(c,h)||b)){const v=Oo(h,l,o,n);if(Io(h,v),a==="out-in")return o.isLeaving=!0,v.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},$o(i);a==="in-out"&&c.type!==Ye&&(v.delayLeave=(q,D,B)=>{const N=Qr(o,h);N[String(h.key)]=h,q._leaveCb=()=>{D(),q._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=B})}return i}}};function Qr(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 Oo(e,t,n,o){const{appear:r,mode:s,persisted:i=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:u,onLeave:h,onAfterLeave:b,onLeaveCancelled:$,onBeforeAppear:v,onAppear:q,onAfterAppear:D,onAppearCancelled:B}=t,N=String(e.key),z=Qr(n,e),E=(y,F)=>{y&&qe(y,o,9,F)},m=(y,F)=>{const Q=F[1];E(y,F),U(y)?y.every(ie=>ie.length<=1)&&Q():y.length<=1&&Q()},_={mode:s,persisted:i,beforeEnter(y){let F=l;if(!n.isMounted)if(r)F=v||l;else return;y._leaveCb&&y._leaveCb(!0);const Q=z[N];Q&&Mt(e,Q)&&Q.el._leaveCb&&Q.el._leaveCb(),E(F,[y])},enter(y){let F=a,Q=c,ie=d;if(!n.isMounted)if(r)F=q||a,Q=D||c,ie=B||d;else return;let S=!1;const re=y._enterCb=me=>{S||(S=!0,me?E(ie,[y]):E(Q,[y]),_.delayedLeave&&_.delayedLeave(),y._enterCb=void 0)};F?m(F,[y,re]):re()},leave(y,F){const Q=String(e.key);if(y._enterCb&&y._enterCb(!0),n.isUnmounting)return F();E(u,[y]);let ie=!1;const S=y._leaveCb=re=>{ie||(ie=!0,F(),re?E($,[y]):E(b,[y]),y._leaveCb=void 0,z[Q]===e&&delete z[Q])};z[Q]=e,h?m(h,[y,S]):S()},clone(y){return Oo(y,t,n,o)}};return _}function $o(e){if(Fn(e))return e=_t(e),e.children=null,e}function Gr(e){return Fn(e)?e.children?e.children[0]:void 0:e}function Io(e,t){e.shapeFlag&6&&e.component?Io(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 es(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===Ce?(i.patchFlag&128&&r++,o=o.concat(es(i.children,t,l))):(t||i.type!==Ye)&&o.push(l!=null?_t(i,{key:l}):i)}if(r>1)for(let s=0;s<o.length;s++)o[s].patchFlag=-2;return o}function Oe(e,t){return G(e)?(()=>be({name:e.name},t,{setup:e}))():e}const un=e=>!!e.type.__asyncLoader,Fn=e=>e.type.__isKeepAlive;function na(e,t){ts(e,"a",t)}function oa(e,t){ts(e,"da",t)}function ts(e,t,n=ke){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Rn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Fn(r.parent.vnode)&&ra(o,t,n,r),r=r.parent}}function ra(e,t,n,o){const r=Rn(t,e,o,!0);dt(()=>{no(o[t],r)},n)}function Rn(e,t,n=ke,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Vt(),Yt(n);const l=qe(t,n,e,i);return Lt(),Wt(),l});return o?r.unshift(s):r.push(s),s}}const ft=e=>(t,n=ke)=>(!gn||e==="sp")&&Rn(e,(...o)=>t(...o),n),sa=ft("bm"),tt=ft("m"),ia=ft("bu"),la=ft("u"),ns=ft("bum"),dt=ft("um"),aa=ft("sp"),ca=ft("rtg"),ua=ft("rtc");function fa(e,t=ke){Rn("ec",e,t)}const os="components",rs=Symbol.for("v-ndc");function da(e){return _e(e)?pa(os,e,!1)||e:e||rs}function pa(e,t,n=!0,o=!1){const r=Te||ke;if(r){const s=r.type;if(e===os){const l=Ra(s,!1);if(l&&(l===t||l===Ne(t)||l===Tn(Ne(t))))return s}const i=ss(r[e]||s[e],t)||ss(r.appContext[e],t);return!i&&o?s:i}}function ss(e,t){return e&&(e[t]||e[Ne(t)]||e[Tn(Ne(t))])}function Hn(e,t,n,o){let r;const s=n&&n[o];if(U(e)||_e(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(he(e))if(e[Symbol.iterator])r=Array.from(e,(i,l)=>t(i,l,void 0,s&&s[l]));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,a=i.length;l<a;l++){const c=i[l];r[l]=t(e[c],c,l,s&&s[l])}}else r=[];return n&&(n[o]=r),r}function is(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(U(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 $e(e,t,n={},o,r){if(Te.isCE||Te.parent&&un(Te.parent)&&Te.parent.isCE)return t!=="default"&&(n.name=t),W("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),A();const i=s&&ls(s(n)),l=Se(Ce,{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 ls(e){return e.some(t=>qn(t)?!(t.type===Ye||t.type===Ce&&!ls(t.children)):!0)?e:null}const Eo=e=>e?Is(e)?Xn(e)||e.proxy:Eo(e.parent):null,fn=be(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Eo(e.parent),$root:e=>Eo(e.root),$emit:e=>e.emit,$options:e=>Lo(e),$forceUpdate:e=>e.f||(e.f=()=>ko(e.update)),$nextTick:e=>e.n||(e.n=ut.bind(e.proxy)),$watch:e=>Gl.bind(e)}),So=(e,t)=>e!==ne&&!e.__isScriptSetup&&se(e,t),ha={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 b=i[t];if(b!==void 0)switch(b){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(So(o,t))return i[t]=1,o[t];if(r!==ne&&se(r,t))return i[t]=2,r[t];if((c=e.propsOptions[0])&&se(c,t))return i[t]=3,s[t];if(n!==ne&&se(n,t))return i[t]=4,n[t];Mo&&(i[t]=0)}}const d=fn[t];let u,h;if(d)return t==="$attrs"&&Ae(e,"get",t),d(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(n!==ne&&se(n,t))return i[t]=4,n[t];if(h=a.config.globalProperties,se(h,t))return h[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return So(r,t)?(r[t]=n,!0):o!==ne&&se(o,t)?(o[t]=n,!0):se(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&&se(e,i)||So(t,i)||(l=s[0])&&se(l,i)||se(o,i)||se(fn,i)||se(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:se(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function as(e){return U(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Mo=!0;function ga(e){const t=Lo(e),n=e.proxy,o=e.ctx;Mo=!1,t.beforeCreate&&cs(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:l,provide:a,inject:c,created:d,beforeMount:u,mounted:h,beforeUpdate:b,updated:$,activated:v,deactivated:q,beforeDestroy:D,beforeUnmount:B,destroyed:N,unmounted:z,render:E,renderTracked:m,renderTriggered:_,errorCaptured:y,serverPrefetch:F,expose:Q,inheritAttrs:ie,components:S,directives:re,filters:me}=t;if(c&&ma(c,o,null),i)for(const k in i){const L=i[k];G(L)&&(o[k]=L.bind(n))}if(r){const k=r.call(n,n);he(k)&&(e.data=sn(k))}if(Mo=!0,s)for(const k in s){const L=s[k],ee=G(L)?L.bind(n,n):G(L.get)?L.get.bind(n,n):Je,Me=!G(L)&&G(L.set)?L.set.bind(n):Je,Be=ce({get:ee,set:Me});Object.defineProperty(o,k,{enumerable:!0,configurable:!0,get:()=>Be.value,set:Ie=>Be.value=Ie})}if(l)for(const k in l)us(l[k],o,n,k);if(a){const k=G(a)?a.call(n):a;Reflect.ownKeys(k).forEach(L=>{Un(L,k[L])})}d&&cs(d,e,"c");function ae(k,L){U(L)?L.forEach(ee=>k(ee.bind(n))):L&&k(L.bind(n))}if(ae(sa,u),ae(tt,h),ae(ia,b),ae(la,$),ae(na,v),ae(oa,q),ae(fa,y),ae(ua,m),ae(ca,_),ae(ns,B),ae(dt,z),ae(aa,F),U(Q))if(Q.length){const k=e.exposed||(e.exposed={});Q.forEach(L=>{Object.defineProperty(k,L,{get:()=>n[L],set:ee=>n[L]=ee})})}else e.exposed||(e.exposed={});E&&e.render===Je&&(e.render=E),ie!=null&&(e.inheritAttrs=ie),S&&(e.components=S),re&&(e.directives=re)}function ma(e,t,n=Je){U(e)&&(e=zo(e));for(const o in e){const r=e[o];let s;he(r)?"default"in r?s=Et(r.from||o,r.default,!0):s=Et(r.from||o):s=Et(r),we(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[o]=s}}function cs(e,t,n){qe(U(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function us(e,t,n,o){const r=o.includes(".")?Xr(n,o):()=>n[o];if(_e(e)){const s=t[e];G(s)&&de(r,s)}else if(G(e))de(r,e.bind(n));else if(he(e))if(U(e))e.forEach(s=>us(s,t,n,o));else{const s=G(e.handler)?e.handler.bind(n):t[e.handler];G(s)&&de(r,s,e)}}function Lo(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=>Vn(a,c,i,!0)),Vn(a,t,i)),he(t)&&s.set(t,a),a}function Vn(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&Vn(e,s,n,!0),r&&r.forEach(i=>Vn(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const l=va[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const va={data:fs,props:ds,emits:ds,methods:dn,computed:dn,beforeCreate:ze,created:ze,beforeMount:ze,mounted:ze,beforeUpdate:ze,updated:ze,beforeDestroy:ze,beforeUnmount:ze,destroyed:ze,unmounted:ze,activated:ze,deactivated:ze,errorCaptured:ze,serverPrefetch:ze,components:dn,directives:dn,watch:_a,provide:fs,inject:ba};function fs(e,t){return t?e?function(){return be(G(e)?e.call(this,this):e,G(t)?t.call(this,this):t)}:t:e}function ba(e,t){return dn(zo(e),zo(t))}function zo(e){if(U(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ze(e,t){return e?[...new Set([].concat(e,t))]:t}function dn(e,t){return e?be(Object.create(null),e,t):t}function ds(e,t){return e?U(e)&&U(t)?[...new Set([...e,...t])]:be(Object.create(null),as(e),as(t??{})):t}function _a(e,t){if(!e)return t;if(!t)return e;const n=be(Object.create(null),e);for(const o in t)n[o]=ze(e[o],t[o]);return n}function ps(){return{app:null,config:{isNativeTag:Yi,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 ya=0;function wa(e,t){return function(o,r=null){G(o)||(o=be({},o)),r!=null&&!he(r)&&(r=null);const s=ps(),i=new Set;let l=!1;const a=s.app={_uid:ya++,_component:o,_props:r,_container:null,_context:s,_instance:null,version:Ua,get config(){return s.config},set config(c){},use(c,...d){return i.has(c)||(c&&G(c.install)?(i.add(c),c.install(a,...d)):G(c)&&(i.add(c),c(a,...d))),a},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),a},component(c,d){return d?(s.components[c]=d,a):s.components[c]},directive(c,d){return d?(s.directives[c]=d,a):s.directives[c]},mount(c,d,u){if(!l){const h=W(o,r);return h.appContext=s,d&&t?t(h,c):e(h,c,u),l=!0,a._container=c,c.__vue_app__=a,Xn(h.component)||h.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,d){return s.provides[c]=d,a},runWithContext(c){Wn=a;try{return c()}finally{Wn=null}}};return a}}let Wn=null;function Un(e,t){if(ke){let n=ke.provides;const o=ke.parent&&ke.parent.provides;o===n&&(n=ke.provides=Object.create(o)),n[e]=t}}function Et(e,t,n=!1){const o=ke||Te;if(o||Wn){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Wn._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&G(t)?t.call(o&&o.proxy):t}}function xa(e,t,n,o=!1){const r={},s={};$n(s,Zn,1),e.propsDefaults=Object.create(null),hs(e,t,r,s);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:Al(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function Ca(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,l=le(r),[a]=e.propsOptions;let c=!1;if((o||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let u=0;u<d.length;u++){let h=d[u];if(Bn(e.emitsOptions,h))continue;const b=t[h];if(a)if(se(s,h))b!==s[h]&&(s[h]=b,c=!0);else{const $=Ne(h);r[$]=Ao(a,l,$,b,e,!1)}else b!==s[h]&&(s[h]=b,c=!0)}}}else{hs(e,t,r,s)&&(c=!0);let d;for(const u in l)(!t||!se(t,u)&&((d=Ue(u))===u||!se(t,d)))&&(a?n&&(n[u]!==void 0||n[d]!==void 0)&&(r[u]=Ao(a,l,u,void 0,e,!0)):delete r[u]);if(s!==l)for(const u in s)(!t||!se(t,u))&&(delete s[u],c=!0)}c&&at(e,"set","$attrs")}function hs(e,t,n,o){const[r,s]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(kn(a))continue;const c=t[a];let d;r&&se(r,d=Ne(a))?!s||!s.includes(d)?n[d]=c:(l||(l={}))[d]=c:Bn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,i=!0)}if(s){const a=le(n),c=l||ne;for(let d=0;d<s.length;d++){const u=s[d];n[u]=Ao(r,a,u,c[u],e,!se(c,u))}}return i}function Ao(e,t,n,o,r,s){const i=e[n];if(i!=null){const l=se(i,"default");if(l&&o===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&G(a)){const{propsDefaults:c}=r;n in c?o=c[n]:(Yt(r),o=c[n]=a.call(null,t),Lt())}else o=a}i[0]&&(s&&!l?o=!1:i[1]&&(o===""||o===Ue(n))&&(o=!0))}return o}function gs(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(!G(e)){const d=u=>{a=!0;const[h,b]=gs(u,t,!0);be(i,h),b&&l.push(...b)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!s&&!a)return he(e)&&o.set(e,We),We;if(U(s))for(let d=0;d<s.length;d++){const u=Ne(s[d]);ms(u)&&(i[u]=ne)}else if(s)for(const d in s){const u=Ne(d);if(ms(u)){const h=s[d],b=i[u]=U(h)||G(h)?{type:h}:be({},h);if(b){const $=_s(Boolean,b.type),v=_s(String,b.type);b[0]=$>-1,b[1]=v<0||$<v,($>-1||se(b,"default"))&&l.push(u)}}}const c=[i,l];return he(e)&&o.set(e,c),c}function ms(e){return e[0]!=="$"}function vs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function bs(e,t){return vs(e)===vs(t)}function _s(e,t){return U(t)?t.findIndex(n=>bs(n,e)):G(t)&&bs(t,e)?0:-1}const ys=e=>e[0]==="_"||e==="$stable",jo=e=>U(e)?e.map(nt):[nt(e)],ka=(e,t,n)=>{if(t._n)return t;const o=oe((...r)=>jo(t(...r)),n);return o._c=!1,o},ws=(e,t,n)=>{const o=e._ctx;for(const r in e){if(ys(r))continue;const s=e[r];if(G(s))t[r]=ka(r,s,o);else if(s!=null){const i=jo(s);t[r]=()=>i}}},xs=(e,t)=>{const n=jo(t);e.slots.default=()=>n},Pa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=le(t),$n(t,"_",n)):ws(t,e.slots={})}else e.slots={},t&&xs(e,t);$n(e.slots,Zn,1)},Ta=(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:(be(r,t),!n&&l===1&&delete r._):(s=!t.$stable,ws(t,r)),i=t}else t&&(xs(e,t),i={default:1});if(s)for(const l in r)!ys(l)&&!(l in i)&&delete r[l]};function Bo(e,t,n,o,r=!1){if(U(e)){e.forEach((h,b)=>Bo(h,t&&(U(t)?t[b]:t),n,o,r));return}if(un(o)&&!r)return;const s=o.shapeFlag&4?Xn(o.component)||o.component.proxy:o.el,i=r?null:s,{i:l,r:a}=e,c=t&&t.r,d=l.refs===ne?l.refs={}:l.refs,u=l.setupState;if(c!=null&&c!==a&&(_e(c)?(d[c]=null,se(u,c)&&(u[c]=null)):we(c)&&(c.value=null)),G(a))vt(a,l,12,[i,d]);else{const h=_e(a),b=we(a);if(h||b){const $=()=>{if(e.f){const v=h?se(u,a)?u[a]:d[a]:a.value;r?U(v)&&no(v,s):U(v)?v.includes(s)||v.push(s):h?(d[a]=[s],se(u,a)&&(u[a]=d[a])):(a.value=[s],e.k&&(d[e.k]=a.value))}else h?(d[a]=i,se(u,a)&&(u[a]=i)):b&&(a.value=i,e.k&&(d[e.k]=i))};i?($.id=-1,je($,n)):$()}}}const je=Jl;function Oa(e){return $a(e)}function $a(e,t){const n=ao();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:l,createComment:a,setText:c,setElementText:d,parentNode:u,nextSibling:h,setScopeId:b=Je,insertStaticContent:$}=e,v=(f,p,g,x=null,w=null,P=null,M=!1,T=null,I=!!p.dynamicChildren)=>{if(f===p)return;f&&!Mt(f,p)&&(x=Pt(f),Ie(f,w,P,!0),f=null),p.patchFlag===-2&&(I=!1,p.dynamicChildren=null);const{type:C,ref:R,shapeFlag:j}=p;switch(C){case Kn:q(f,p,g,x);break;case Ye:D(f,p,g,x);break;case Do:f==null&&B(p,g,x,M);break;case Ce:S(f,p,g,x,w,P,M,T,I);break;default:j&1?E(f,p,g,x,w,P,M,T,I):j&6?re(f,p,g,x,w,P,M,T,I):(j&64||j&128)&&C.process(f,p,g,x,w,P,M,T,I,O)}R!=null&&w&&Bo(R,f&&f.ref,P,p||f,!p)},q=(f,p,g,x)=>{if(f==null)o(p.el=l(p.children),g,x);else{const w=p.el=f.el;p.children!==f.children&&c(w,p.children)}},D=(f,p,g,x)=>{f==null?o(p.el=a(p.children||""),g,x):p.el=f.el},B=(f,p,g,x)=>{[f.el,f.anchor]=$(f.children,p,g,x,f.el,f.anchor)},N=({el:f,anchor:p},g,x)=>{let w;for(;f&&f!==p;)w=h(f),o(f,g,x),f=w;o(p,g,x)},z=({el:f,anchor:p})=>{let g;for(;f&&f!==p;)g=h(f),r(f),f=g;r(p)},E=(f,p,g,x,w,P,M,T,I)=>{M=M||p.type==="svg",f==null?m(p,g,x,w,P,M,T,I):F(f,p,w,P,M,T,I)},m=(f,p,g,x,w,P,M,T)=>{let I,C;const{type:R,props:j,shapeFlag:H,transition:X,dirs:te}=f;if(I=f.el=i(f.type,P,j&&j.is,j),H&8?d(I,f.children):H&16&&y(f.children,I,null,x,w,P&&R!=="foreignObject",M,T),te&&It(f,null,x,"created"),_(I,f,f.scopeId,M,x),j){for(const ue in j)ue!=="value"&&!kn(ue)&&s(I,ue,null,j[ue],P,f.children,x,w,He);"value"in j&&s(I,"value",null,j.value),(C=j.onVnodeBeforeMount)&&ot(C,x,f)}te&&It(f,null,x,"beforeMount");const fe=(!w||w&&!w.pendingBranch)&&X&&!X.persisted;fe&&X.beforeEnter(I),o(I,p,g),((C=j&&j.onVnodeMounted)||fe||te)&&je(()=>{C&&ot(C,x,f),fe&&X.enter(I),te&&It(f,null,x,"mounted")},w)},_=(f,p,g,x,w)=>{if(g&&b(f,g),x)for(let P=0;P<x.length;P++)b(f,x[P]);if(w){let P=w.subTree;if(p===P){const M=w.vnode;_(f,M,M.scopeId,M.slotScopeIds,w.parent)}}},y=(f,p,g,x,w,P,M,T,I=0)=>{for(let C=I;C<f.length;C++){const R=f[C]=T?wt(f[C]):nt(f[C]);v(null,R,p,g,x,w,P,M,T)}},F=(f,p,g,x,w,P,M)=>{const T=p.el=f.el;let{patchFlag:I,dynamicChildren:C,dirs:R}=p;I|=f.patchFlag&16;const j=f.props||ne,H=p.props||ne;let X;g&&St(g,!1),(X=H.onVnodeBeforeUpdate)&&ot(X,g,p,f),R&&It(p,f,g,"beforeUpdate"),g&&St(g,!0);const te=w&&p.type!=="foreignObject";if(C?Q(f.dynamicChildren,C,T,g,x,te,P):M||L(f,p,T,null,g,x,te,P,!1),I>0){if(I&16)ie(T,p,j,H,g,x,w);else if(I&2&&j.class!==H.class&&s(T,"class",null,H.class,w),I&4&&s(T,"style",j.style,H.style,w),I&8){const fe=p.dynamicProps;for(let ue=0;ue<fe.length;ue++){const ve=fe[ue],pe=j[ve],nn=H[ve];(nn!==pe||ve==="value")&&s(T,ve,pe,nn,w,f.children,g,x,He)}}I&1&&f.children!==p.children&&d(T,p.children)}else!M&&C==null&&ie(T,p,j,H,g,x,w);((X=H.onVnodeUpdated)||R)&&je(()=>{X&&ot(X,g,p,f),R&&It(p,f,g,"updated")},x)},Q=(f,p,g,x,w,P,M)=>{for(let T=0;T<p.length;T++){const I=f[T],C=p[T],R=I.el&&(I.type===Ce||!Mt(I,C)||I.shapeFlag&70)?u(I.el):g;v(I,C,R,null,x,w,P,M,!0)}},ie=(f,p,g,x,w,P,M)=>{if(g!==x){if(g!==ne)for(const T in g)!kn(T)&&!(T in x)&&s(f,T,g[T],null,M,p.children,w,P,He);for(const T in x){if(kn(T))continue;const I=x[T],C=g[T];I!==C&&T!=="value"&&s(f,T,C,I,M,p.children,w,P,He)}"value"in x&&s(f,"value",g.value,x.value)}},S=(f,p,g,x,w,P,M,T,I)=>{const C=p.el=f?f.el:l(""),R=p.anchor=f?f.anchor:l("");let{patchFlag:j,dynamicChildren:H,slotScopeIds:X}=p;X&&(T=T?T.concat(X):X),f==null?(o(C,g,x),o(R,g,x),y(p.children,g,R,w,P,M,T,I)):j>0&&j&64&&H&&f.dynamicChildren?(Q(f.dynamicChildren,H,g,w,P,M,T),(p.key!=null||w&&p===w.subTree)&&Cs(f,p,!0)):L(f,p,g,R,w,P,M,T,I)},re=(f,p,g,x,w,P,M,T,I)=>{p.slotScopeIds=T,f==null?p.shapeFlag&512?w.ctx.activate(p,g,x,M,I):me(p,g,x,w,P,M,I):Pe(f,p,I)},me=(f,p,g,x,w,P,M)=>{const T=f.component=ja(f,x,w);if(Fn(f)&&(T.ctx.renderer=O),Ba(T),T.asyncDep){if(w&&w.registerDep(T,ae),!f.el){const I=T.subTree=W(Ye);D(null,I,p,g)}return}ae(T,f,p,g,w,P,M)},Pe=(f,p,g)=>{const x=p.component=f.component;if(Zl(f,p,g))if(x.asyncDep&&!x.asyncResolved){k(x,p,g);return}else x.next=p,Hl(x.update),x.update();else p.el=f.el,x.vnode=p},ae=(f,p,g,x,w,P,M)=>{const T=()=>{if(f.isMounted){let{next:R,bu:j,u:H,parent:X,vnode:te}=f,fe=R,ue;St(f,!1),R?(R.el=te.el,k(f,R,M)):R=te,j&&On(j),(ue=R.props&&R.props.onVnodeBeforeUpdate)&&ot(ue,X,R,te),St(f,!0);const ve=Po(f),pe=f.subTree;f.subTree=ve,v(pe,ve,u(pe.el),Pt(pe),f,w,P),R.el=ve.el,fe===null&&Yl(f,ve.el),H&&je(H,w),(ue=R.props&&R.props.onVnodeUpdated)&&je(()=>ot(ue,X,R,te),w)}else{let R;const{el:j,props:H}=p,{bm:X,m:te,parent:fe}=f,ue=un(p);if(St(f,!1),X&&On(X),!ue&&(R=H&&H.onVnodeBeforeMount)&&ot(R,fe,p),St(f,!0),j&&Le){const ve=()=>{f.subTree=Po(f),Le(j,f.subTree,f,w,null)};ue?p.type.__asyncLoader().then(()=>!f.isUnmounted&&ve()):ve()}else{const ve=f.subTree=Po(f);v(null,ve,g,x,f,w,P),p.el=ve.el}if(te&&je(te,w),!ue&&(R=H&&H.onVnodeMounted)){const ve=p;je(()=>ot(R,fe,ve),w)}(p.shapeFlag&256||fe&&un(fe.vnode)&&fe.vnode.shapeFlag&256)&&f.a&&je(f.a,w),f.isMounted=!0,p=g=x=null}},I=f.effect=new ho(T,()=>ko(C),f.scope),C=f.update=()=>I.run();C.id=f.uid,St(f,!0),C()},k=(f,p,g)=>{p.component=f;const x=f.vnode.props;f.vnode=p,f.next=null,Ca(f,p.props,x,g),Ta(f,p.children,g),Vt(),Wr(),Wt()},L=(f,p,g,x,w,P,M,T,I=!1)=>{const C=f&&f.children,R=f?f.shapeFlag:0,j=p.children,{patchFlag:H,shapeFlag:X}=p;if(H>0){if(H&128){Me(C,j,g,x,w,P,M,T,I);return}else if(H&256){ee(C,j,g,x,w,P,M,T,I);return}}X&8?(R&16&&He(C,w,P),j!==C&&d(g,j)):R&16?X&16?Me(C,j,g,x,w,P,M,T,I):He(C,w,P,!0):(R&8&&d(g,""),X&16&&y(j,g,x,w,P,M,T,I))},ee=(f,p,g,x,w,P,M,T,I)=>{f=f||We,p=p||We;const C=f.length,R=p.length,j=Math.min(C,R);let H;for(H=0;H<j;H++){const X=p[H]=I?wt(p[H]):nt(p[H]);v(f[H],X,g,null,w,P,M,T,I)}C>R?He(f,w,P,!0,!1,j):y(p,g,x,w,P,M,T,I,j)},Me=(f,p,g,x,w,P,M,T,I)=>{let C=0;const R=p.length;let j=f.length-1,H=R-1;for(;C<=j&&C<=H;){const X=f[C],te=p[C]=I?wt(p[C]):nt(p[C]);if(Mt(X,te))v(X,te,g,null,w,P,M,T,I);else break;C++}for(;C<=j&&C<=H;){const X=f[j],te=p[H]=I?wt(p[H]):nt(p[H]);if(Mt(X,te))v(X,te,g,null,w,P,M,T,I);else break;j--,H--}if(C>j){if(C<=H){const X=H+1,te=X<R?p[X].el:x;for(;C<=H;)v(null,p[C]=I?wt(p[C]):nt(p[C]),g,te,w,P,M,T,I),C++}}else if(C>H)for(;C<=j;)Ie(f[C],w,P,!0),C++;else{const X=C,te=C,fe=new Map;for(C=te;C<=H;C++){const Ve=p[C]=I?wt(p[C]):nt(p[C]);Ve.key!=null&&fe.set(Ve.key,C)}let ue,ve=0;const pe=H-te+1;let nn=!1,Ui=0;const wn=new Array(pe);for(C=0;C<pe;C++)wn[C]=0;for(C=X;C<=j;C++){const Ve=f[C];if(ve>=pe){Ie(Ve,w,P,!0);continue}let it;if(Ve.key!=null)it=fe.get(Ve.key);else for(ue=te;ue<=H;ue++)if(wn[ue-te]===0&&Mt(Ve,p[ue])){it=ue;break}it===void 0?Ie(Ve,w,P,!0):(wn[it-te]=C+1,it>=Ui?Ui=it:nn=!0,v(Ve,p[it],g,null,w,P,M,T,I),ve++)}const Ki=nn?Ia(wn):We;for(ue=Ki.length-1,C=pe-1;C>=0;C--){const Ve=te+C,it=p[Ve],qi=Ve+1<R?p[Ve+1].el:x;wn[C]===0?v(null,it,g,qi,w,P,M,T,I):nn&&(ue<0||C!==Ki[ue]?Be(it,g,qi,2):ue--)}}},Be=(f,p,g,x,w=null)=>{const{el:P,type:M,transition:T,children:I,shapeFlag:C}=f;if(C&6){Be(f.component.subTree,p,g,x);return}if(C&128){f.suspense.move(p,g,x);return}if(C&64){M.move(f,p,g,O);return}if(M===Ce){o(P,p,g);for(let j=0;j<I.length;j++)Be(I[j],p,g,x);o(f.anchor,p,g);return}if(M===Do){N(f,p,g);return}if(x!==2&&C&1&&T)if(x===0)T.beforeEnter(P),o(P,p,g),je(()=>T.enter(P),w);else{const{leave:j,delayLeave:H,afterLeave:X}=T,te=()=>o(P,p,g),fe=()=>{j(P,()=>{te(),X&&X()})};H?H(P,te,fe):fe()}else o(P,p,g)},Ie=(f,p,g,x=!1,w=!1)=>{const{type:P,props:M,ref:T,children:I,dynamicChildren:C,shapeFlag:R,patchFlag:j,dirs:H}=f;if(T!=null&&Bo(T,null,g,f,!0),R&256){p.ctx.deactivate(f);return}const X=R&1&&H,te=!un(f);let fe;if(te&&(fe=M&&M.onVnodeBeforeUnmount)&&ot(fe,p,f),R&6)st(f.component,g,x);else{if(R&128){f.suspense.unmount(g,x);return}X&&It(f,null,p,"beforeUnmount"),R&64?f.type.remove(f,p,g,w,O,x):C&&(P!==Ce||j>0&&j&64)?He(C,p,g,!1,!0):(P===Ce&&j&384||!w&&R&16)&&He(I,p,g),x&&Ft(f)}(te&&(fe=M&&M.onVnodeUnmounted)||X)&&je(()=>{fe&&ot(fe,p,f),X&&It(f,null,p,"unmounted")},g)},Ft=f=>{const{type:p,el:g,anchor:x,transition:w}=f;if(p===Ce){tn(g,x);return}if(p===Do){z(f);return}const P=()=>{r(g),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(f.shapeFlag&1&&w&&!w.persisted){const{leave:M,delayLeave:T}=w,I=()=>M(g,P);T?T(f.el,P,I):I()}else P()},tn=(f,p)=>{let g;for(;f!==p;)g=h(f),r(f),f=g;r(p)},st=(f,p,g)=>{const{bum:x,scope:w,update:P,subTree:M,um:T}=f;x&&On(x),w.stop(),P&&(P.active=!1,Ie(M,f,p,g)),T&&je(T,p),je(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},He=(f,p,g,x=!1,w=!1,P=0)=>{for(let M=P;M<f.length;M++)Ie(f[M],p,g,x,w)},Pt=f=>f.shapeFlag&6?Pt(f.component.subTree):f.shapeFlag&128?f.suspense.next():h(f.anchor||f.el),Rt=(f,p,g)=>{f==null?p._vnode&&Ie(p._vnode,null,null,!0):v(p._vnode||null,f,p,null,null,null,g),Wr(),Ur(),p._vnode=f},O={p:v,um:Ie,m:Be,r:Ft,mt:me,mc:y,pc:L,pbc:Q,n:Pt,o:e};let Y,Le;return t&&([Y,Le]=t(O)),{render:Rt,hydrate:Y,createApp:wa(Rt,Y)}}function St({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Cs(e,t,n=!1){const o=e.children,r=t.children;if(U(o)&&U(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]=wt(r[s]),l.el=i.el),n||Cs(i,l)),l.type===Kn&&(l.el=i.el)}}function Ia(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,Ce=Symbol.for("v-fgt"),Kn=Symbol.for("v-txt"),Ye=Symbol.for("v-cmt"),Do=Symbol.for("v-stc"),pn=[];let Ge=null;function A(e=!1){pn.push(Ge=e?null:[])}function Sa(){pn.pop(),Ge=pn[pn.length-1]||null}let hn=1;function ks(e){hn+=e}function Ps(e){return e.dynamicChildren=hn>0?Ge||We:null,Sa(),hn>0&&Ge&&Ge.push(e),e}function Z(e,t,n,o,r,s){return Ps(K(e,t,n,o,r,s,!0))}function Se(e,t,n,o,r){return Ps(W(e,t,n,o,r,!0))}function qn(e){return e?e.__v_isVNode===!0:!1}function Mt(e,t){return e.type===t.type&&e.key===t.key}const Zn="__vInternal",Ts=({key:e})=>e??null,Yn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?_e(e)||we(e)||G(e)?{i:Te,r:e,k:t,f:!!n}:e:null);function K(e,t=null,n=null,o=0,r=null,s=e===Ce?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ts(t),ref:t&&Yn(t),scopeId:Zr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Te};return l?(No(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=_e(n)?8:16),hn>0&&!i&&Ge&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&Ge.push(a),a}const W=Ma;function Ma(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===rs)&&(e=Ye),qn(e)){const l=_t(e,t,!0);return n&&No(l,n),hn>0&&!s&&Ge&&(l.shapeFlag&6?Ge[Ge.indexOf(e)]=l:Ge.push(l)),l.patchFlag|=-2,l}if(Ha(e)&&(e=e.__vccOpts),t){t=La(t);let{class:l,style:a}=t;l&&!_e(l)&&(t.class=ye(l)),he(a)&&(Ar(a)&&!U(a)&&(a=be({},a)),t.style=Ke(a))}const i=_e(e)?1:Xl(e)?128:Ea(e)?64:he(e)?4:G(e)?2:0;return K(e,t,n,o,r,i,s,!0)}function La(e){return e?Ar(e)||Zn in e?be({},e):e:null}function _t(e,t,n=!1){const{props:o,ref:r,patchFlag:s,children:i}=e,l=t?Fo(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ts(l),ref:t&&t.ref?n&&r?U(r)?r.concat(Yn(t)):[r,Yn(t)]:Yn(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!==Ce?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&&_t(e.ssContent),ssFallback:e.ssFallback&&_t(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function yt(e=" ",t=0){return W(Kn,null,e,t)}function Re(e="",t=!1){return t?(A(),Se(Ye,null,e)):W(Ye,null,e)}function nt(e){return e==null||typeof e=="boolean"?W(Ye):U(e)?W(Ce,null,e.slice()):typeof e=="object"?wt(e):W(Kn,null,String(e))}function wt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:_t(e)}function No(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(U(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),No(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Zn in t)?t._ctx=Te:r===3&&Te&&(Te.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else G(t)?(t={default:t,_ctx:Te},n=32):(t=String(t),o&64?(n=16,t=[yt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Fo(...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=ye([t.class,o.class]));else if(r==="style")t.style=Ke([t.style,o.style]);else if(xn(r)){const s=t[r],i=o[r];i&&s!==i&&!(U(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){qe(e,t,7,[n,o])}const za=ps();let Aa=0;function ja(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||za,s={uid:Aa++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new il(!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:gs(o,r),emitsOptions:qr(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=Ul.bind(null,s),e.ce&&e.ce(s),s}let ke=null;const Os=()=>ke||Te;let Ro,Zt,$s="__VUE_INSTANCE_SETTERS__";(Zt=ao()[$s])||(Zt=ao()[$s]=[]),Zt.push(e=>ke=e),Ro=e=>{Zt.length>1?Zt.forEach(t=>t(e)):Zt[0](e)};const Yt=e=>{Ro(e),e.scope.on()},Lt=()=>{ke&&ke.scope.off(),Ro(null)};function Is(e){return e.vnode.shapeFlag&4}let gn=!1;function Ba(e,t=!1){gn=t;const{props:n,children:o}=e.vnode,r=Is(e);xa(e,n,r,t),Pa(e,o);const s=r?Da(e,t):void 0;return gn=!1,s}function Da(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=jr(new Proxy(e.ctx,ha));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?Fa(e):null;Yt(e),Vt();const s=vt(o,e,0,[e.props,r]);if(Wt(),Lt(),fr(s)){if(s.then(Lt,Lt),t)return s.then(i=>{Es(e,i,t)}).catch(i=>{jn(i,e,0)});e.asyncDep=s}else Es(e,s,t)}else Ms(e,t)}function Es(e,t,n){G(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:he(t)&&(e.setupState=Rr(t)),Ms(e,n)}let Ss;function Ms(e,t,n){const o=e.type;if(!e.render){if(!t&&Ss&&!o.render){const r=o.template||Lo(e).template;if(r){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=be(be({isCustomElement:s,delimiters:l},i),a);o.render=Ss(r,c)}}e.render=o.render||Je}Yt(e),Vt(),ga(e),Wt(),Lt()}function Na(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ae(e,"get","$attrs"),t[n]}}))}function Fa(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Na(e)},slots:e.slots,emit:e.emit,expose:t}}function Xn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Rr(jr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in fn)return fn[n](e)},has(t,n){return n in t||n in fn}}))}function Ra(e,t=!0){return G(e)?e.displayName||e.name:e.name||t&&e.__name}function Ha(e){return G(e)&&"__vccOpts"in e}const ce=(e,t)=>Nl(e,t,gn);function Ls(e,t,n){const o=arguments.length;return o===2?he(t)&&!U(t)?qn(t)?W(e,null,[t]):W(e,t):W(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&qn(n)&&(n=[n]),W(e,t,n))}const Va=Symbol.for("v-scx"),Wa=()=>Et(Va),Ua="3.3.4",Ka="http://www.w3.org/2000/svg",zt=typeof document<"u"?document:null,zs=zt&&zt.createElement("template"),qa={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?zt.createElementNS(Ka,e):zt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>zt.createTextNode(e),createComment:e=>zt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>zt.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{zs.innerHTML=o?`<svg>${e}</svg>`:e;const l=zs.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 Za(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 Ya(e,t,n){const o=e.style,r=_e(n);if(n&&!r){if(t&&!_e(t))for(const s in t)n[s]==null&&Ho(o,s,"");for(const s in n)Ho(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 As=/\s*!important$/;function Ho(e,t,n){if(U(n))n.forEach(o=>Ho(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Xa(e,t);As.test(n)?e.setProperty(Ue(o),n.replace(As,""),"important"):e[o]=n}}const js=["Webkit","Moz","ms"],Vo={};function Xa(e,t){const n=Vo[t];if(n)return n;let o=Ne(t);if(o!=="filter"&&o in e)return Vo[t]=o;o=Tn(o);for(let r=0;r<js.length;r++){const s=js[r]+o;if(s in e)return Vo[t]=s}return t}const Bs="http://www.w3.org/1999/xlink";function Ja(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Bs,t.slice(6,t.length)):e.setAttributeNS(Bs,t,n);else{const s=sl(t);n==null||s&&!gr(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function Qa(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,d=n??"";c!==d&&(e.value=d),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=gr(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function Xt(e,t,n,o){e.addEventListener(t,n,o)}function Ga(e,t,n,o){e.removeEventListener(t,n,o)}function ec(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]=tc(t);if(o){const c=s[t]=rc(o,r);Xt(e,l,c,a)}else i&&(Ga(e,l,i,a),s[t]=void 0)}}const Ds=/(?:Once|Passive|Capture)$/;function tc(e){let t;if(Ds.test(e)){t={};let o;for(;o=e.match(Ds);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ue(e.slice(2)),t]}let Wo=0;const nc=Promise.resolve(),oc=()=>Wo||(nc.then(()=>Wo=0),Wo=Date.now());function rc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;qe(sc(o,n.value),t,5,[o])};return n.value=e,n.attached=oc(),n}function sc(e,t){if(U(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 Ns=/^on[a-z]/,ic=(e,t,n,o,r=!1,s,i,l,a)=>{t==="class"?Za(e,o,r):t==="style"?Ya(e,n,o):xn(t)?to(t)||ec(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):lc(e,t,o,r))?Qa(e,t,o,s,i,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Ja(e,t,o,r))};function lc(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Ns.test(t)&&G(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ns.test(t)&&_e(n)?!1:t in e}function ac(e,t){const n=Oe(e);class o extends Uo{constructor(s){super(n,s,t)}}return o.def=n,o}const cc=typeof HTMLElement<"u"?HTMLElement:class{};class Uo extends cc{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,ut(()=>{this._connected||(Xs(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&&!U(s))for(const a in s){const c=s[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=lo(this._props[a])),(l||(l=Object.create(null)))[Ne(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=U(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(Ne))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(s){this._setProp(r,s)}})}_setAttr(t){let n=this.getAttribute(t);const o=Ne(t);this._numberProps&&this._numberProps[o]&&(n=lo(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(Ue(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ue(t),n+""):n||this.removeAttribute(Ue(t))))}_update(){Xs(this._createVNode(),this.shadowRoot)}_createVNode(){const t=W(this._def,be({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(s,i)=>{this.dispatchEvent(new CustomEvent(s,{detail:i}))};n.emit=(s,...i)=>{o(s,i),Ue(s)!==s&&o(Ue(s),i)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Uo){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 xt="transition",mn="animation",Jt=(e,{slots:t})=>Ls(ta,uc(e),t);Jt.displayName="Transition";const Fs={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};Jt.props=be({},Jr,Fs);const At=(e,t=[])=>{U(e)?e.forEach(n=>n(...t)):e&&e(...t)},Rs=e=>e?U(e)?e.some(t=>t.length>1):e.length>1:!1;function uc(e){const t={};for(const S in e)S in Fs||(t[S]=e[S]);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:d=l,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:b=`${n}-leave-to`}=e,$=fc(r),v=$&&$[0],q=$&&$[1],{onBeforeEnter:D,onEnter:B,onEnterCancelled:N,onLeave:z,onLeaveCancelled:E,onBeforeAppear:m=D,onAppear:_=B,onAppearCancelled:y=N}=t,F=(S,re,me)=>{jt(S,re?d:l),jt(S,re?c:i),me&&me()},Q=(S,re)=>{S._isLeaving=!1,jt(S,u),jt(S,b),jt(S,h),re&&re()},ie=S=>(re,me)=>{const Pe=S?_:B,ae=()=>F(re,S,me);At(Pe,[re,ae]),Hs(()=>{jt(re,S?a:s),Ct(re,S?d:l),Rs(Pe)||Vs(re,o,v,ae)})};return be(t,{onBeforeEnter(S){At(D,[S]),Ct(S,s),Ct(S,i)},onBeforeAppear(S){At(m,[S]),Ct(S,a),Ct(S,c)},onEnter:ie(!1),onAppear:ie(!0),onLeave(S,re){S._isLeaving=!0;const me=()=>Q(S,re);Ct(S,u),hc(),Ct(S,h),Hs(()=>{S._isLeaving&&(jt(S,u),Ct(S,b),Rs(z)||Vs(S,o,q,me))}),At(z,[S,me])},onEnterCancelled(S){F(S,!1),At(N,[S])},onAppearCancelled(S){F(S,!0),At(y,[S])},onLeaveCancelled(S){Q(S),At(E,[S])}})}function fc(e){if(e==null)return null;if(he(e))return[Ko(e.enter),Ko(e.leave)];{const t=Ko(e);return[t,t]}}function Ko(e){return lo(e)}function Ct(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function jt(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 Hs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let dc=0;function Vs(e,t,n,o){const r=e._endId=++dc,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:l,propCount:a}=pc(e,t);if(!i)return o();const c=i+"end";let d=0;const u=()=>{e.removeEventListener(c,h),s()},h=b=>{b.target===e&&++d>=a&&u()};setTimeout(()=>{d<a&&u()},l+1),e.addEventListener(c,h)}function pc(e,t){const n=window.getComputedStyle(e),o=$=>(n[$]||"").split(", "),r=o(`${xt}Delay`),s=o(`${xt}Duration`),i=Ws(r,s),l=o(`${mn}Delay`),a=o(`${mn}Duration`),c=Ws(l,a);let d=null,u=0,h=0;t===xt?i>0&&(d=xt,u=i,h=s.length):t===mn?c>0&&(d=mn,u=c,h=a.length):(u=Math.max(i,c),d=u>0?i>c?xt:mn:null,h=d?d===xt?s.length:a.length:0);const b=d===xt&&/\b(transform|all)(,|$)/.test(o(`${xt}Property`).toString());return{type:d,timeout:u,propCount:h,hasTransform:b}}function Ws(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Us(n)+Us(e[o])))}function Us(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function hc(){return document.body.offsetHeight}const Ks=e=>{const t=e.props["onUpdate:modelValue"]||!1;return U(t)?n=>On(t,n):t};function gc(e){e.target.composing=!0}function qs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const mc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=Ks(r);const s=o||r.props&&r.props.type==="number";Xt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),s&&(l=io(l)),e._assign(l)}),n&&Xt(e,"change",()=>{e.value=e.value.trim()}),t||(Xt(e,"compositionstart",gc),Xt(e,"compositionend",qs),Xt(e,"change",qs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},s){if(e._assign=Ks(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&io(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},vc=["ctrl","shift","alt","meta"],bc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>vc.some(n=>e[`${n}Key`]&&!t.includes(n))},Bt=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const s=bc[t[r]];if(s&&s(n,t))return}return e(n,...o)},_c={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Zs=(e,t)=>n=>{if(!("key"in n))return;const o=Ue(n.key);if(t.some(r=>r===o||_c[r]===o))return e(n)},yc={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):vn(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),vn(e,!0),o.enter(e)):o.leave(e,()=>{vn(e,!1)}):vn(e,t))},beforeUnmount(e,{value:t}){vn(e,t)}};function vn(e,t){e.style.display=t?e._vod:"none"}const wc=be({patchProp:ic},qa);let Ys;function xc(){return Ys||(Ys=Oa(wc))}const Xs=(...e)=>{xc().render(...e)},Cc={class:"flex gap-3 items-center children-pointer-events-auto relative z-30"},kc={class:"flex justify-between items-end"},Pc={class:"inline-block children-pointer-events-auto w-1/3"},Tc={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Oc={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},$c={class:"inline-block z-20 relative"},Js=Oe({__name:"ReaderLayout",props:{idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{},spaceBottom:{},touchDevice:{type:Boolean}},setup(e){return(t,n)=>(A(),Z("div",{class:ye(["fixed inset-0 bg-black visible z-[9999999999] text-stone-100 font-sans text-base",{"cursor-none":t.idle}])},[$e(t.$slots,"default"),K("div",{class:ye(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear inset-2 sm:inset-3 flex flex-col justify-between pb-4 sm:pb-2 md:pb-0",{"opacity-100 z-10":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}]),style:Ke({paddingTop:`${t.spaceTop||0}px`,paddingBottom:t.spaceBottom?`${t.spaceBottom}px`:""})},[K("div",Cc,[$e(t.$slots,"back"),t.touchDevice?Re("",!0):$e(t.$slots,"exit",{key:0}),$e(t.$slots,"chapter-nav")]),K("div",kc,[K("div",Pc,[$e(t.$slots,"page-nav")]),K("div",Tc,[$e(t.$slots,"reset-zoom")]),K("div",Oc,[$e(t.$slots,"entry"),K("div",$c,[$e(t.$slots,"settings")]),$e(t.$slots,"play")])]),K("div",{class:ye(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[$e(t.$slots,"progress")],2)],6)],2))}}),Ic=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),xe=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ec={},Sc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Mc=[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 Lc(e,t){return A(),Z("svg",Sc,Mc)}const Qs=xe(Ec,[["render",Lc]]),zc=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),Ac={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"},jc={class:"block w-4 h-4"},Bc={class:"w-12"},Gs=Oe({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=Qs;return t.zoom!==1?(A(),Z("button",Ac,[K("div",jc,[W(o)]),K("div",Bc,lt(Math.ceil(t.zoom*100))+"%",1)])):Re("",!0)}}}),Dc=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),Nc={},Fc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Rc=[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 Hc(e,t){return A(),Z("svg",Fc,Rc)}const qo=xe(Nc,[["render",Hc]]),Vc=Object.freeze(Object.defineProperty({__proto__:null,default:qo},Symbol.toStringTag,{value:"Module"})),Wc={},Uc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Kc=[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 qc(e,t){return A(),Z("svg",Uc,Kc)}const Zo=xe(Wc,[["render",qc]]),Zc=Object.freeze(Object.defineProperty({__proto__:null,default:Zo},Symbol.toStringTag,{value:"Module"}));function Yc({touchDevice:e}){const t=J(!1);let n=0;return Un("busy:touchDevice",e),Un("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function Yo(){const e=Et("busy:touchDevice"),t=Et("setBusyState");let n=!1;return dt(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const Xc=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,s=.65;const i=setInterval(a,20);l();function l(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function a(){const c=+n||50;r<=c?(r++,s-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${s}`):(o.remove(),clearInterval(i))}},Qt={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>Xc(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},Jc={class:"group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200 rounđe-full p-2 w-full h-full inline-flex justify-center items-center"},Jn=Oe({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=Yo();let r=!1;function s(){r||(r=!0,o(!0,{desktopOnly:!0}))}function i(){r&&(r=!1,o(!1,{desktopOnly:!0}))}function l(a){n.disabled?a.preventDefault():t("click")}return(a,c)=>bt((A(),Se(da(a.href?"a":"button"),Fo(a.href?{href:a.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full",{"cursor-default text-stone-400 hover:text-stone-400":a.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!a.disabled,"bg-black bg-opacity-50":!a.transparent}],onClick:Bt(l,["stop"]),onMouseenter:s,onMouseleave:i}),{default:oe(()=>[K("div",Jc,[$e(a.$slots,"default")])]),_:3},16,["class","onClick"])),[[V(Qt),a.disabled?0:15]])}}),Qc=Object.freeze(Object.defineProperty({__proto__:null,default:Jn},Symbol.toStringTag,{value:"Module"})),Gc={},eu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},tu=[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 nu(e,t){return A(),Z("svg",eu,tu)}const ei=xe(Gc,[["render",nu]]),ou=Object.freeze(Object.defineProperty({__proto__:null,default:ei},Symbol.toStringTag,{value:"Module"}));class ru{constructor(){Zi(this,"listeners");this.listeners=[],this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.init()}init(){window.addEventListener("keydown",this.onKeyDown,{capture:!0}),window.addEventListener("keyup",this.onKeyUp,{capture:!0}),window.addEventListener("keypress",this.onKeyPress,{capture:!0})}dispose(){window.removeEventListener("keydown",this.onKeyDown,{capture:!0}),window.removeEventListener("keyup",this.onKeyUp,{capture:!0}),window.removeEventListener("keypress",this.onKeyPress,{capture:!0})}onKeyPress(t){t.stopImmediatePropagation(),t.stopPropagation()}onKeyDown(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyDown)==null?void 0:o.call(n,t)})}onKeyUp(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyUp)==null?void 0:o.call(n,t)})}addListener(t){this.listeners.push(t)}removeListener(t){const n=this.listeners.indexOf(t);n!==-1&&this.listeners.splice(n,1)}}function su(){const e=new ru;return dt(()=>e.dispose()),Un("keyController",e),e}function Xo(e){const t=Et("keyController");tt(()=>t.addListener(e)),dt(()=>t.removeListener(e))}const iu={class:"relative flex w-full flex-shrink-0 justify-center items-center h-16"},lu={class:"inline-flex items-center h-full absolute left-3 top-0"},au=K("span",{class:"text-xl font-medium"},"Customize",-1),cu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},ti=Oe({__name:"BottomSheet",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;Xo({onKeyDown:r});const o=Yo();de(()=>n.modelValue,s=>o(s));function r(s){n.modelValue&&s.key==="Escape"&&(t("update:modelValue",!1),s.preventDefault())}return(s,i)=>{const l=ei,a=Jn;return A(),Z("div",{class:ye(["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(Jt,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:oe(()=>[n.modelValue?(A(),Z("div",{key:0,class:"inline-flex flex-col h-[27rem] 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]=Bt(()=>{},["stop"]))},[K("div",iu,[K("div",lu,[W(a,{transparent:"",onClick:i[0]||(i[0]=()=>t("update:modelValue",!1))},{default:oe(()=>[W(l)]),_:1})]),au]),K("div",cu,[$e(s.$slots,"default")])])):Re("",!0)]),_:3})],2)}}}),uu=Object.freeze(Object.defineProperty({__proto__:null,default:ti},Symbol.toStringTag,{value:"Module"})),fu=["min","max","step"],du={class:"flex-shrink-0"},ni=xe(Oe({__name:"InputPercentage",props:{modelValue:{},min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ce({get(){return n.modelValue},set(r){t("update:modelValue",+r)}});return(r,s)=>(A(),Z("div",{class:ye(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:Ke({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[bt(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,fu),[[mc,o.value]]),K("p",du,[$e(r.$slots,"suffix")])],6))}}),[["styles",[`input[type=range]{--tw-bg-opacity:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to right,#d6d3d1 var(--percentage),#78716c var(--percentage));background-color:rgb(120 113 108/var(--tw-bg-opacity));border-radius:.125rem;border-style:none;cursor:pointer;height:.375rem;opacity:.9;outline:2px solid transparent;outline-offset:2px}input[type=range]::-webkit-slider-thumb{--tw-border-opacity:1;--tw-bg-opacity:1;-webkit-appearance:none!important;background-color:rgb(214 211 209/var(--tw-bg-opacity));border-color:rgb(214 211 209/var(--tw-border-opacity));border-radius:.125rem;border-style:solid;border-width:2px;cursor:pointer;height:1.75rem;transition-duration:.2s;width:1rem}input[type=range]:hover{opacity:1}
2
+ `]]]),pu=Object.freeze(Object.defineProperty({__proto__:null,default:ni},Symbol.toStringTag,{value:"Module"})),hu={class:"flex items-center mb-8 last:mb-0"},gu={class:"flex-grow overflow-hidden"},oi=Oe({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(A(),Z("div",hu,[K("div",{class:ye(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},lt(t.label),3),K("div",gu,[$e(t.$slots,"default")])]))}}),mu=Object.freeze(Object.defineProperty({__proto__:null,default:oi},Symbol.toStringTag,{value:"Module"})),vu=["onClick","onKeyup"],ri=Oe({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=J(null),r=J({width:"",left:""});tt(()=>{let i=!1;de(()=>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)=>(A(),Z("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[K("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Ke(r.value)},null,4),(A(!0),Z(Ce,null,Hn(n.items,(a,c)=>bt((A(),Z("div",{key:c,tabindex:"0",class:ye(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.modelValue,"text-stone-400":c!=n.modelValue}]),onClick:()=>s(c),onKeyup:[Zs(()=>s(c),["enter"]),Zs(()=>s(c),["space"])]},[yt(lt(a),1)],42,vu)),[[V(Qt),30]])),128))],512))}}),bu=Object.freeze(Object.defineProperty({__proto__:null,default:ri},Symbol.toStringTag,{value:"Module"})),_u={},yu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},wu=[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 xu(e,t){return A(),Z("svg",yu,wu)}const si=xe(_u,[["render",xu]]),Cu=Object.freeze(Object.defineProperty({__proto__:null,default:si},Symbol.toStringTag,{value:"Module"}));var ii;const Jo=typeof window<"u",ku=e=>typeof e=="function",Pu=e=>typeof e=="string",kt=()=>{};Jo&&((ii=window==null?void 0:window.navigator)!=null&&ii.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Qn(e){return typeof e=="function"?e():V(e)}function li(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 ai=e=>e();function Tu(e,t={}){let n,o,r=kt;const s=l=>{clearTimeout(l),r(),r=kt};return l=>{const a=Qn(e),c=Qn(t.maxWait);return n&&s(n),a<=0||c!==void 0&&c<=0?(o&&(s(o),o=null),Promise.resolve(l())):new Promise((d,u)=>{r=t.rejectOnCancel?u:d,c&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,d(l())},c)),n=setTimeout(()=>{o&&s(o),o=null,d(l())},a)})}}function Ou(e=ai){const t=J(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...s)=>{t.value&&e(...s)};return{isActive:_o(t),pause:n,resume:o,eventFilter:r}}function $u(e,t=!1,n="Timeout"){return new Promise((o,r)=>{setTimeout(t?()=>r(n):o,e)})}function Iu(e){return e}function Qo(e){return vr()?(al(e),!0):!1}function Gt(e,t=200,n={}){return li(Tu(t,n),e)}function ci(e,t=!0){Os()?tt(e):t?e():ut(e)}var ui=Object.getOwnPropertySymbols,Eu=Object.prototype.hasOwnProperty,Su=Object.prototype.propertyIsEnumerable,Mu=(e,t)=>{var n={};for(var o in e)Eu.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&&Su.call(e,o)&&(n[o]=e[o]);return n};function Lu(e,t,n={}){const o=n,{eventFilter:r=ai}=o,s=Mu(o,["eventFilter"]);return de(e,li(r,t),s)}var zu=Object.defineProperty,Au=Object.defineProperties,ju=Object.getOwnPropertyDescriptors,Gn=Object.getOwnPropertySymbols,fi=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,pi=(e,t,n)=>t in e?zu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bu=(e,t)=>{for(var n in t||(t={}))fi.call(t,n)&&pi(e,n,t[n]);if(Gn)for(var n of Gn(t))di.call(t,n)&&pi(e,n,t[n]);return e},Du=(e,t)=>Au(e,ju(t)),Nu=(e,t)=>{var n={};for(var o in e)fi.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Gn)for(var o of Gn(e))t.indexOf(o)<0&&di.call(e,o)&&(n[o]=e[o]);return n};function Fu(e,t,n={}){const o=n,{eventFilter:r}=o,s=Nu(o,["eventFilter"]),{eventFilter:i,pause:l,resume:a,isActive:c}=Ou(r);return{stop:Lu(e,t,Du(Bu({},s),{eventFilter:i})),pause:l,resume:a,isActive:c}}function Dt(e){var t;const n=Qn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const pt=Jo?window:void 0,Ru=Jo?window.document:void 0;function Nt(...e){let t,n,o,r;if(Pu(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=pt):[t,n,o,r]=e,!t)return kt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(d=>d()),s.length=0},l=(d,u,h)=>(d.addEventListener(u,h,r),()=>d.removeEventListener(u,h,r)),a=de(()=>Dt(t),d=>{i(),d&&s.push(...n.flatMap(u=>o.map(h=>l(d,u,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),i()};return Qo(c),c}function Hu(e,t,n){const{immediate:o=!0,delay:r=0,onError:s=kt,onSuccess:i=kt,resetOnExecute:l=!0,shallow:a=!0,throwError:c}=n??{},d=a?Nr(t):J(t),u=J(!1),h=J(!1),b=J(void 0);async function $(v=0,...q){l&&(d.value=t),b.value=void 0,u.value=!1,h.value=!0,v>0&&await $u(v);const D=typeof e=="function"?e(...q):e;try{const B=await D;d.value=B,u.value=!0,i(B)}catch(B){if(b.value=B,s(B),c)throw b}finally{h.value=!1}return d.value}return o&&$(r),{state:d,isReady:u,isLoading:h,error:b,execute:$}}function hi(e,t=!1){const n=J(),o=()=>n.value=!!e();return o(),ci(o,t),n}const Go=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},er="__vueuse_ssr_handlers__";Go[er]=Go[er]||{};const Vu=Go[er];function Wu(e,t){return Vu[e]||t}function Uu(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 Ku=Object.defineProperty,gi=Object.getOwnPropertySymbols,qu=Object.prototype.hasOwnProperty,Zu=Object.prototype.propertyIsEnumerable,mi=(e,t,n)=>t in e?Ku(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vi=(e,t)=>{for(var n in t||(t={}))qu.call(t,n)&&mi(e,n,t[n]);if(gi)for(var n of gi(t))Zu.call(t,n)&&mi(e,n,t[n]);return e};const Yu={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 bi(e,t,n,o={}){var r;const{flush:s="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:d,window:u=pt,eventFilter:h,onError:b=_=>{console.error(_)}}=o,$=(d?Nr:J)(t);if(!n)try{n=Wu("getDefaultStorage",()=>{var _;return(_=pt)==null?void 0:_.localStorage})()}catch(_){b(_)}if(!n)return $;const v=Qn(t),q=Uu(v),D=(r=o.serializer)!=null?r:Yu[q],{pause:B,resume:N}=Fu($,()=>z($.value),{flush:s,deep:i,eventFilter:h});return u&&l&&Nt(u,"storage",m),m(),$;function z(_){try{if(_==null)n.removeItem(e);else{const y=D.write(_),F=n.getItem(e);F!==y&&(n.setItem(e,y),u&&(u==null||u.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:F,newValue:y,storageArea:n}))))}}catch(y){b(y)}}function E(_){const y=_?_.newValue:n.getItem(e);if(y==null)return a&&v!==null&&n.setItem(e,D.write(v)),v;if(!_&&c){const F=D.read(y);return ku(c)?c(F,v):q==="object"&&!Array.isArray(F)?vi(vi({},v),F):F}else return typeof y!="string"?y:D.read(y)}function m(_){if(!(_&&_.storageArea!==n)){if(_&&_.key==null){$.value=v;return}if(!(_&&_.key!==e)){B();try{$.value=E(_)}catch(y){b(y)}finally{_?ut(N):N()}}}}}function _i({document:e=Ru}={}){if(!e)return J("visible");const t=J(e.visibilityState);return Nt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var yi=Object.getOwnPropertySymbols,Xu=Object.prototype.hasOwnProperty,Ju=Object.prototype.propertyIsEnumerable,Qu=(e,t)=>{var n={};for(var o in e)Xu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&yi)for(var o of yi(e))t.indexOf(o)<0&&Ju.call(e,o)&&(n[o]=e[o]);return n};function Gu(e,t,n={}){const o=n,{window:r=pt}=o,s=Qu(o,["window"]);let i;const l=hi(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},c=de(()=>Dt(e),u=>{a(),l.value&&r&&u&&(i=new ResizeObserver(t),i.observe(u,s))},{immediate:!0,flush:"post"}),d=()=>{a(),c()};return Qo(d),{isSupported:l,stop:d}}function ef(e,t={width:0,height:0},n={}){const{window:o=pt,box:r="content-box"}=n,s=ce(()=>{var a,c;return(c=(a=Dt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),i=J(t.width),l=J(t.height);return Gu(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&s.value){const d=Dt(e);if(d){const u=o.getComputedStyle(d);i.value=parseFloat(u.width),l.value=parseFloat(u.height)}}else if(c){const d=Array.isArray(c)?c:[c];i.value=d.reduce((u,{inlineSize:h})=>u+h,0),l.value=d.reduce((u,{blockSize:h})=>u+h,0)}else i.value=a.contentRect.width,l.value=a.contentRect.height},n),de(()=>Dt(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=pt}=n,l=hi(()=>i&&"IntersectionObserver"in i);let a=kt;const c=l.value?de(()=>({el:Dt(e),root:Dt(o)}),({el:u,root:h})=>{if(a(),!u)return;const b=new IntersectionObserver(t,{root:h,rootMargin:r,threshold:s});b.observe(u),a=()=>{b.disconnect(),a=kt}},{immediate:!0,flush:"post"}):kt,d=()=>{a(),c()};return Qo(d),{isSupported:l,stop:d}}function tf(e,t,n={}){const{window:o=pt}=n;return bi(e,t,o==null?void 0:o.localStorage,n)}var xi;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(xi||(xi={}));function tr(e,t,n={}){const{window:o=pt}=n;return bi(e,t,o==null?void 0:o.sessionStorage,n)}var nf=Object.defineProperty,Ci=Object.getOwnPropertySymbols,of=Object.prototype.hasOwnProperty,rf=Object.prototype.propertyIsEnumerable,ki=(e,t,n)=>t in e?nf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sf=(e,t)=>{for(var n in t||(t={}))of.call(t,n)&&ki(e,n,t[n]);if(Ci)for(var n of Ci(t))rf.call(t,n)&&ki(e,n,t[n]);return e};sf({linear:Iu},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function lf(e={}){const{window:t=pt,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:s=!0}=e,i=J(n),l=J(o),a=()=>{t&&(s?(i.value=t.innerWidth,l.value=t.innerHeight):(i.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),ci(a),Nt("resize",a,{passive:!0}),r&&Nt("orientationchange",a,{passive:!0}),{width:i,height:l}}function af(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var Xe=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(Xe||{}),rt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(rt||{});const cf=.25,uf=5,ff=.25,bn=.25,_n=5,df=.05,pf=0,hf=4;function gf(e){var D,B,N,z,E;const{titleName:t,asyncIsWebtoon:n}=e,r=`tkr:${t?af(t):location.pathname}`,s=tf(r,{},{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(m){const _={};return m?(m.style!==void 0&&Object.values(rt).includes(m.style)&&(_.style=m.style),m.direction!==void 0&&Object.values(Xe).includes(m.direction)&&(_.direction=m.direction),m.gap!==void 0&&m.gap>=pf&&m.gap<=hf&&(_.gap=m.gap),m.speed!==void 0&&m.speed>=bn&&m.speed<=_n&&(_.speed=m.speed),m.zoom!==void 0&&m.zoom>=bn&&m.zoom<=_n&&(_.zoom=m.zoom),Object.keys(_).length?_:void 0):_}}),i=m=>{if(!s.value){s.value=m;return}const _={...s.value};Object.entries(m).forEach(([y,F])=>{F===void 0?delete _[y]:_[y]=F}),Object.keys(_).length?s.value=_:(s.value=void 0,localStorage.removeItem(r))},l=J(((D=s.value)==null?void 0:D.style)??rt.longStrip),a=J(((B=s.value)==null?void 0:B.direction)??Xe.vertical),c=J((N=s.value)==null?void 0:N.gap),d=J(((z=s.value)==null?void 0:z.speed)??1),u=J(((E=s.value)==null?void 0:E.zoom)??1),h=ce({get(){return n.state.value?rt.longStrip:l.value??rt.longStrip},set:m=>{l.value=m,i({style:m===rt.longStrip?void 0:m}),m!==rt.longStrip&&a.value===Xe.vertical&&(b.value=m===rt.single?Xe.ltr:Xe.rtl)}}),b=ce({get:()=>n.state.value?Xe.vertical:a.value,set:m=>{a.value=m,i({direction:m===Xe.vertical?void 0:m})}}),$=ce({get:()=>c.value??(n.state.value?0:1),set(m){c.value=m,i({gap:m})}}),v=ce({get:()=>d.value,set(m){d.value=m,i({speed:m===1?void 0:m})}}),q=ce({get:()=>u.value,set(m){u.value=m,i({zoom:m===1?void 0:m})}});return{direction:b,style:h,gap:$,speed:v,zoom:q,isLongStrip:ce(()=>h.value===rt.longStrip),isDouble:ce(()=>h.value===rt.double),isRTL:ce(()=>b.value===Xe.rtl),isVertical:ce(()=>b.value===Xe.vertical)}}const Pi=Oe({__name:"ButtonReaderSettings",props:{direction:{},readerStyle:{},gap:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:speed","update:zoom"],setup(e,{emit:t}){const n=J(!1);function o(r){t("update:zoom",Math.round(r)/100)}return(r,s)=>{const i=si,l=Jn,a=ri,c=oi,d=ni,u=ti;return A(),Z(Ce,null,[W(l,{title:"Customize",disabled:r.disabled,onClick:s[0]||(s[0]=()=>n.value=!0)},{default:oe(()=>[W(i)]),_:1},8,["disabled"]),W(u,{modelValue:n.value,"onUpdate:modelValue":s[5]||(s[5]=h=>n.value=h)},{default:oe(()=>[W(c,{label:"Style"},{default:oe(()=>[W(a,{"model-value":r.readerStyle,items:r.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":s[1]||(s[1]=h=>t("update:reader-style",h))},null,8,["model-value","items"])]),_:1}),W(c,{label:"Direction"},{default:oe(()=>[W(a,{"model-value":r.direction,items:r.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":s[2]||(s[2]=h=>t("update:direction",h))},null,8,["model-value","items"])]),_:1}),W(c,{label:"Gap"},{default:oe(()=>[W(a,{"model-value":r.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":s[3]||(s[3]=h=>t("update:gap",h))},null,8,["model-value"])]),_:1}),W(c,{label:"Speed"},{default:oe(()=>[W(d,{"model-value":r.speed,min:V(cf),max:V(uf),step:V(ff),suffix:"x","onUpdate:modelValue":s[4]||(s[4]=h=>t("update:speed",h))},{suffix:oe(()=>[yt(lt(r.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),W(c,{label:"Zoom"},{default:oe(()=>[W(d,{"model-value":Math.ceil(r.zoom*100),min:V(bn)*100,max:V(_n)*100,step:V(df)*100,"onUpdate:modelValue":o},{suffix:oe(()=>[yt(lt(Math.ceil(r.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue"])],64)}}}),mf=Object.freeze(Object.defineProperty({__proto__:null,default:Pi},Symbol.toStringTag,{value:"Module"})),vf={},bf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_f=[K("path",{d:"M18.652 3C18.0277 3 17.5216 3.5061 17.5216 4.13042V5.26083H16.3912C15.7669 5.26083 15.2608 5.76693 15.2608 6.39125C15.2608 7.01556 15.7669 7.52166 16.3912 7.52166H17.5216V8.65208C17.5216 9.27639 18.0277 9.78249 18.652 9.78249C19.2764 9.78249 19.7825 9.27639 19.7825 8.65208V7.52166H20.9129C21.5372 7.52166 22.0433 7.01556 22.0433 6.39125C22.0433 5.76693 21.5372 5.26083 20.9129 5.26083H19.7825V4.13042C19.7825 3.5061 19.2764 3 18.652 3Z",fill:"currentColor"},null,-1),K("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.0183 5.92413L8.24658 7.18954C7.65717 7.34584 7.24677 7.87926 7.24677 8.48905V18.0483C7.24677 18.4887 7.72075 18.7663 8.10482 18.5509L11.4937 16.65C11.7272 16.519 12.012 16.519 12.2454 16.65L18.6384 20.2363C19.1505 20.5235 19.7825 20.1534 19.7825 19.5663L19.7825 12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 6.23454 13.0067 6.07783 13.0183 5.92413Z",fill:"currentColor"},null,-1),K("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.49315 4.13042C4.64457 4.13042 3.95667 4.81833 3.95667 5.6669V19.5663C3.95667 20.1535 4.58867 20.5236 5.10077 20.2363L11.4937 16.6501C11.7272 16.5191 12.012 16.5191 12.2454 16.6501L18.6384 20.2363C19.1505 20.5236 19.7825 20.1535 19.7825 19.5663V12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 5.26083 13.3507 4.13042 13.3507 4.13042H5.49315Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function yf(e,t){return A(),Z("svg",bf,_f)}const Ti=xe(vf,[["render",yf]]),wf=Object.freeze(Object.defineProperty({__proto__:null,default:Ti},Symbol.toStringTag,{value:"Module"})),xf={},Cf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},kf=[K("path",{d:"M17.1026 8.89862C17.1114 8.90798 17.1203 8.91723 17.1295 8.92636C17.5709 9.36781 18.2866 9.36781 18.7281 8.92636L22.7247 4.92974C23.1662 4.48828 23.1662 3.77255 22.7247 3.33109C22.2833 2.88964 21.5675 2.88964 21.1261 3.33109L17.9292 6.52793L17.1286 5.72729C16.6871 5.28583 15.9714 5.28583 15.5299 5.72729C15.0885 6.16874 15.0885 6.88448 15.5299 7.32593L17.1026 8.89862Z",fill:"currentColor"},null,-1),K("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9564 5.92413L8.18463 7.18954C7.59522 7.34584 7.18481 7.87926 7.18481 8.48905V18.0483C7.18481 18.4887 7.65879 18.7663 8.04287 18.5509L11.4318 16.65C11.6652 16.519 11.95 16.519 12.1835 16.65L18.5764 20.2363C19.0885 20.5235 19.7205 20.1534 19.7205 19.5663L19.7205 12.0433H18.5901C15.4686 12.0433 12.938 9.5128 12.938 6.39125C12.938 6.23454 12.9448 6.07783 12.9564 5.92413Z",fill:"currentColor"},null,-1),K("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.4312 4.13042C4.58262 4.13042 3.89471 4.81833 3.89471 5.6669V19.5663C3.89471 20.1535 4.52672 20.5236 5.03882 20.2363L11.4318 16.6501C11.6652 16.5191 11.95 16.5191 12.1835 16.6501L18.5764 20.2363C19.0885 20.5236 19.7205 20.1535 19.7205 19.5663V5.6669C19.7205 5.6646 19.7205 5.66229 19.7205 5.65998V12.0433H18.5901C15.4685 12.0433 12.938 9.5128 12.938 6.39125C12.938 5.26083 13.2887 4.13042 13.2887 4.13042H5.4312Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function Pf(e,t){return A(),Z("svg",Cf,kf)}const Oi=xe(xf,[["render",Pf]]),Tf=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),Of={},$f={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},If=[K("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function Ef(e,t){return A(),Z("svg",$f,If)}const $i=xe(Of,[["render",Ef]]),Sf=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"})),Mf=["aria-hidden"],Lf=["onClick"],zf=["onClick"],Af={class:"whitespace-nowrap"},nr=Oe({__name:"ButtonDropdown",props:{modelValue:{},label:{},items:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=J(null),r=J(!1),s=J(null),i=J(!1),l=J(!1),a=J(!1);Xo({onKeyDown:$});const c=Yo();function d(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(u(),ut(()=>setTimeout(()=>{var E,m;(m=(E=s.value)==null?void 0:E.children[n.modelValue])==null||m.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),q(o.value)):setTimeout(D,250)}function u(){const E=o.value;if(E){const m=E.getBoundingClientRect(),_=m.x+m.width/2;i.value=m.y>window.innerHeight/2,l.value=_<window.innerWidth/3,a.value=_>window.innerWidth/3*2}}function h(E){E!=n.modelValue&&t("update:modelValue",E),d()}function b(E){n.items.length||E.stopPropagation()}function $(E){r.value&&E.key==="Escape"&&(d(),E.preventDefault())}let v=[];function q(E){const m=window.getComputedStyle(E).zIndex,_=E.style.zIndex;(!m||!(+m>0))&&((!E.parentElement||E.parentElement.childElementCount>1)&&(E.style.zIndex="1",v.push({el:E,zIndex:_})),E.parentElement&&q(E.parentElement))}function D(){v.forEach(({el:E,zIndex:m})=>{E.style.zIndex=m??""}),v=[]}let B=!1;function N(){B||(B=!0,c(!0,{desktopOnly:!0}))}function z(){B&&(B=!1,c(!1,{desktopOnly:!0}))}return(E,m)=>{const _=$i;return A(),Z("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(A(),Z("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:d})):Re("",!0),E.items.length?(A(),Se(Jt,{key:1,name:"slide-fade","enter-from-class":"scale-y-90 opacity-0 pointer-events-none","leave-to-class":"scale-y-90 opacity-0 pointer-events-none"},{default:oe(()=>[r.value?(A(),Z("ul",{key:0,ref_key:"list",ref:s,"aria-hidden":!r.value,class:ye(["scrollbar-sm duration-150 delay-50 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:m[0]||(m[0]=Bt(()=>{},["stop"]))},[(A(!0),Z(Ce,null,Hn(E.items,(y,F)=>bt((A(),Z("li",{key:F,tabindex:"-1",class:ye(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":F===E.modelValue}]),onClick:()=>h(F)},[K("div",{class:ye(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":F>0}])},[$e(E.$slots,"item",{item:y},()=>[yt(lt(y),1)])],2)],10,Lf)),[[V(Qt),30]])),128))],42,Mf)):Re("",!0)]),_:3})):Re("",!0),bt((A(),Z("button",{type:"button",tabindex:"-1",class:ye(["w-full h-10 max-h-full bg-transparent rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":E.disabled}]),onClick:Bt(d,["stop"]),onMouseenter:N,onMouseleave:z},[K("div",{class:ye(["inline-flex items-center justify-center w-full h-full px-4 rounded-full",{"group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200":!!E.items.length,"cursor-default":!E.items.length}]),onClick:b},[K("span",Af,lt(E.label),1),E.items.length?(A(),Z("span",{key:0,class:ye(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":i.value}]),"aria-hidden":"true"},[W(_)],2)):Re("",!0)],2)],42,zf)),[[V(Qt),30]])],512)}}}),jf=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"})),Ii=Oe({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ce(()=>Math.floor(n.modelValue)),r=ce(()=>n.pages.map(c=>c.map(({index:d})=>`${d+1}`).join("-"))),s=ce(()=>{const c=o.value,d=n.pages.findIndex(u=>u.some(({index:h})=>h===c));return d===-1?n.pages.length-1:d}),i=ce(()=>n.pages.length?`${r.value[s.value]}/${n.totalImgs}`:"--");function l(c){const d=n.pages[c][0].index;a(d)}function a(c){t("update:modelValue",c)}return(c,d)=>{const u=nr;return A(),Se(u,{"model-value":s.value,label:i.value,items:r.value,disabled:c.disabled,"onUpdate:modelValue":l},null,8,["model-value","label","items","disabled"])}}}),Bf=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"})),Df={},Nf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ff=[K("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Rf(e,t){return A(),Z("svg",Nf,Ff)}const Ei=xe(Df,[["render",Rf]]),Hf=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),Vf={},Wf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Uf=[K("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Kf(e,t){return A(),Z("svg",Wf,Uf)}const Si=xe(Vf,[["render",Kf]]),qf=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"})),Zf={},Yf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Xf=[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 Jf(e,t){return A(),Z("svg",Yf,Xf)}const Mi=xe(Zf,[["render",Jf]]),Qf=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"})),Gf={},ed={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},td=[K("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function nd(e,t){return A(),Z("svg",ed,td)}const Li=xe(Gf,[["render",nd]]),od=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"})),zi=xe(Oe({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=J(0);return de(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const s=qo,i=Zo;return n.value?(A(),Z("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(A(),Se(s,{key:0})):(A(),Se(i,{key:1}))])):Re("",!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)}}
3
+ `]]]),rd=Object.freeze(Object.defineProperty({__proto__:null,default:zi},Symbol.toStringTag,{value:"Module"})),sd={},id={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ld=[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 ad(e,t){return A(),Z("svg",id,ld)}const Ai=xe(sd,[["render",ad]]),cd=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),ji=Oe({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=tr("tk:dir",!0),o=Gt(()=>n.value=!1,1250);return de(()=>t.direction,()=>{n.value=!0,o()}),tt(()=>{o();let r;const s=_i();de(s,i=>{i!=="visible"?r=Date.now():Date.now()-r>3e4&&(n.value=!0,o())})}),(r,s)=>{const i=Ai;return A(),Se(Jt,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:oe(()=>[V(n)?(A(),Z("div",{key:0,class:ye(["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===V(Xe).vertical,"rotate-180":r.direction===V(Xe).rtl}])},[W(i)],2)):Re("",!0)]),_:1})}}}),ud=Object.freeze(Object.defineProperty({__proto__:null,default:ji},Symbol.toStringTag,{value:"Module"})),eo=[];function fd(e){eo.push(e),dt(()=>{const t=eo.indexOf(e);t!==-1&&eo.splice(t,1)})}function dd(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,s=t*o;eo.forEach(i=>i(r,s))}const Bi=Oe({__name:"ZoomWrapper",props:{modelValue:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},emits:["update:modelValue","dragEnd","click"],setup(e,{emit:t}){const n=e,o=J(null),r=J(Math.min(_n,Math.max(bn,n.modelValue))),s=J(!1),i=J(!1),l=J(!1),a=J(!1),c=Gt(()=>a.value=!1,150);function d(){a.value||(a.value=!0),c()}de(()=>n.modelValue,k=>ae(k)),tt(()=>{n.touchDevice?(Nt(window,"touchstart",m),fd(Pe)):(Nt(o,"mousedown",q),de(()=>n.horizontal,k=>{k?window.addEventListener("wheel",Q,{passive:!1}):window.removeEventListener("wheel",Q)},{immediate:!0}))}),dt(()=>{window.removeEventListener("wheel",Q)});let u;Xo({onKeyDown:k=>{var Me;if(n.busy)return;(Me=o.value)==null||Me.focus();const L=k.key==="Meta",ee=k.key==="Control";L||ee?(s.value=!0,window.addEventListener("wheel",b,{passive:!1}),u=()=>{s.value=!1,window.removeEventListener("wheel",b),window.removeEventListener("blur",u),u=void 0},window.addEventListener("blur",u)):(k.ctrlKey||k.metaKey)&&k.key==="0"&&ae(1)},onKeyUp:()=>{s.value==!0&&(u==null||u())}});function h(k){l.value!==k&&(l.value=k,k?n.playController.pause():(t("dragEnd"),n.playController.resume()))}function b(k){k.stopPropagation(),k.preventDefault();const L=Math.ceil((r.value+k.deltaY*-.01)*100)/100;ae(L,{x:k.clientX,y:k.clientY})}let $={x:0,y:0},v={x:0,y:0};function q(k){k.button===0&&($={x:k.clientX,y:k.clientY},v={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",D),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",D),setTimeout(()=>h(!1))},{once:!0}),k.preventDefault(),k.stopPropagation())}function D(k){h(!0);const L=k.clientX-$.x,ee=k.clientY-$.y,Me=o.value;Me.scrollLeft=v.x-L,Me.scrollTop=v.y-ee}let B=0,N=1,z,E=!1;function m(k){if(!n.busy){if(E=k.touches.length===2,E){h(!0),k.stopPropagation(),k.preventDefault();const L=o.value;B=ie(k),N=r.value,z={x:(k.touches[0].clientX+k.touches[1].clientX)/2,y:(k.touches[0].clientY+k.touches[1].clientY)/2,scrollLeft:L.scrollLeft,scrollTop:L.scrollTop,scrollWidth:L.scrollWidth,scrollHeight:L.scrollHeight}}(E||n.playController.isPlaying&&n.longStrip)&&(window.addEventListener("touchmove",y),window.addEventListener("touchend",_,{once:!0}))}}function _(){if(window.removeEventListener("touchmove",y),E){h(!1),E=!1;return}if(!l.value)return;const k=Gt(()=>{h(!1),o.value.removeEventListener("scroll",ee)},100),L=setTimeout(k,100);o.value.addEventListener("scroll",ee);function ee(){clearTimeout(L),k()}}function y(k){if(h(!0),E){k.stopPropagation(),k.preventDefault();const ee=ie(k)/B;ae(Math.ceil(ee*N*100)/100,z)}}const F=Gt(()=>i.value=!1,100);function Q(k){n.busy||(i.value||(i.value=!0),F(),k.deltaY&&(!s.value&&o.value&&(o.value.scrollLeft+=k.deltaY*(n.rtl?-1:1)),k.preventDefault()))}function ie(k){return Math.hypot(k.touches[0].clientX-k.touches[1].clientX,k.touches[0].clientY-k.touches[1].clientY)}let S=0,re;function me(k){k.stopPropagation(),!l.value&&(S++,re&&clearTimeout(re),S===2&&Pe(k.clientX,k.clientY),re=setTimeout(()=>{!l.value&&S===1&&t("click",k),re=void 0,S=0},300))}function Pe(k,L){if(!S)return;S=0;const ee=r.value===1?2:1;ae(ee,{x:k,y:L})}async function ae(k,L){const ee=o.value,Me=Math.min(_n,Math.max(bn,k));if(!ee||r.value===Me)return;const Be=(L==null?void 0:L.scrollLeft)??ee.scrollLeft,Ie=(L==null?void 0:L.scrollTop)??ee.scrollTop,Ft=(L==null?void 0:L.scrollHeight)??ee.scrollHeight,tn=(L==null?void 0:L.scrollWidth)??ee.scrollWidth,st=(L==null?void 0:L.x)??ee.clientWidth/2,He=n.rtl?ee.clientWidth-st:st,Pt=(L==null?void 0:L.y)??ee.clientHeight/2;d(),r.value=Me,t("update:modelValue",Me),await ut();const Rt=ee.scrollWidth/tn,O=ee.scrollHeight/Ft;ee.scrollLeft=Be*Rt+He*(Rt-1)*(n.rtl?-1:1),ee.scrollTop=Ie*O+Pt*(O-1)}return(k,L)=>(A(),Z("div",{ref_key:"root",ref:o,tabindex:"0",class:ye(["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`}),onClick:me},[$e(k.$slots,"default")],6))}}),pd=Object.freeze(Object.defineProperty({__proto__:null,default:Bi},Symbol.toStringTag,{value:"Module"})),hd=`.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}}
4
+ `,gd={},md={class:"flex justify-center items-center w-full h-full"},vd=[K("div",{class:"loading-indicator"},null,-1)];function bd(e,t){return A(),Z("div",md,vd)}const or=xe(gd,[["render",bd],["styles",[hd]]]),_d=Object.freeze(Object.defineProperty({__proto__:null,default:or},Symbol.toStringTag,{value:"Module"})),yd=["data-index"],wd={key:0,class:"page--loading"},xd=["src"],Cd=["src"],kd=["data-index"],Di=xe(Oe({__name:"ReaderBody",props:{direction:{},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isRTL:{type:Boolean},pages:{},totalImgs:{},gap:{},zoom:{},spaceTop:{},spaceBottom:{},touchDevice:{type:Boolean},playController:{},busy:{type:Boolean},idle:{type:Boolean}},emits:["update:zoom","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=J(null),r=ce(()=>{var u;return(u=o.value)==null?void 0:u.$el}),s=J(null),i=ef(r),l=ce(()=>{const{width:u,height:h}=i,b=n.isLongStrip?n.isVertical?u.value:h.value:Math.min(u.value,h.value);return Math.min(4,Math.max(1,Math.ceil(b/400-1)))*n.gap}),a=ce(()=>{const{width:{value:u},height:{value:h}}=i;return n.pages.map(b=>{const $={indexes:b.map(B=>B.index)},v=b.map(({img:B})=>B).filter(Boolean);if(!v.length)return $;$.srcs=v.map(({src:B})=>B);const q=v.reduce((B,N)=>B+N.naturalWidth,0),D=v.reduce((B,N)=>B+N.naturalHeight,0)/v.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&u/q<h/D?($.width=Math.min(u,q),$.height=D*$.width/q):$.height=Math.min(h,D),$})}),c=ce(()=>a.value.map(u=>(u==null?void 0:u.width)??(u==null?void 0:u.height)).filter(Boolean).sort((u,h)=>h-u)[0]);function d(u){if(!n.isLongStrip){const h=n.isVertical?i.height.value:i.width.value,$=(n.isVertical?u.clientY:n.isRTL?h-u.clientX:u.clientX)/h;if($<=.2){t("prev");return}else if($>=.8){t("next");return}}t("click")}return(u,h)=>{const b=or,$=Bi;return A(),Se($,{"model-value":u.zoom,ref_key:"root",ref:o,class:ye(["reader-body",{"reader-body--long-strip":u.isLongStrip,"reader-body--pages":!u.isLongStrip,"reader-body--vertical":u.isVertical,"reader-body--rtl":u.isRTL,"reader-body--idle":u.idle}]),"play-controller":u.playController,horizontal:!u.isVertical,rtl:u.isRTL,"touch-device":u.touchDevice,busy:u.busy,"long-strip":u.isLongStrip,style:Ke({"--gap":`${l.value}em`,"--space-top":(u.spaceTop||0)+"em","--screen-width-em":V(i).width.value+"em","--screen-height-em":V(i).height.value+"em",...u.isLongStrip?{"--max-size-em":c.value+"em"}:{}}),"onUpdate:modelValue":h[0]||(h[0]=v=>t("update:zoom",v)),onDragEnd:h[1]||(h[1]=()=>t("dragEnd")),onClick:d},{default:oe(()=>[(A(!0),Z(Ce,null,Hn(a.value,v=>{var q;return A(),Z("div",Fo({key:u.direction+"_"+v.indexes[0],"data-index":v.indexes[0]},v.indexes.length>1?{"data-index2":v.indexes[1]}:{}),[(q=v.srcs)!=null&&q.length?v.srcs.length==1?(A(),Z("img",{key:1,src:v.srcs[0],style:Ke({width:v.width!==void 0?v.width+"em":"",height:v.height!==void 0?v.height+"em":""})},null,12,xd)):(A(),Z("div",{key:2,class:ye(["page--double",{"flex-row-reverse":u.isRTL}]),style:Ke({height:v.height!==void 0?v.height+"em":""})},[(A(!0),Z(Ce,null,Hn(v.srcs,D=>(A(),Z("div",{key:D},[K("img",{src:D},null,8,Cd)]))),128))],6)):(A(),Z("div",wd,[W(b)]))],16,yd)}),128)),K("div",{ref_key:"autoNextEl",ref:s,"data-index":u.totalImgs,style:Ke(u.isLongStrip?u.isVertical?{height:V(i).height.value+"em"}:{width:V(i).width.value+"em"}:{})},[$e(u.$slots,"end")],12,kd)]),_:3},8,["model-value","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style"])}}}),[["styles",[`.reader-body{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width:1024px){.reader-body{transform:none}}.reader-body--rtl{flex-direction:row-reverse}.reader-body:not(.reader-body--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.reader-body--long-strip.reader-body--vertical>div:first-child{margin-top:var(--space-top);padding-top:0}.reader-body--long-strip.reader-body--vertical>div:last-child{padding-bottom:0}.reader-body--long-strip.reader-body--vertical>div{padding:calc(var(--gap)/2) 0;width:var(--max-size-em)}.reader-body--long-strip:not(.reader-body--vertical)>div{align-items:center;display:flex;height:var(--max-size-em);padding:0 calc(var(--gap)/2)}.reader-body--long-strip>div>img{flex-shrink:0;margin:auto}.reader-body--pages:after,.reader-body--pages:before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.reader-body--pages.reader-body--idle:after,.reader-body--pages.reader-body--idle:before{cursor:none}.reader-body--pages>div{align-items:center;display:flex;height:var(--screen-height-em);justify-content:center;min-height:100vh;min-width:100vw;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 .page--double{align-items:center;display:flex;gap:var(--gap);justify-content:center}.reader-body--pages .page--double div{display:flex;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body--pages .page--double div img{flex-shrink:0;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.reader-body .page--loading{height:calc(var(--screen-height-em)*.75);margin:auto;width:calc(var(--screen-width-em)*.5)}.reader-body>div{flex-shrink:0;margin:auto;-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}
5
+ `]]]),Pd=Object.freeze(Object.defineProperty({__proto__:null,default:Di},Symbol.toStringTag,{value:"Module"})),Td={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},Od={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},$d={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},Ni=xe(Oe({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=J(null),o=J(null),r=J(!1),s=J(!1),i=J(3);return tt(()=>{let l;wi(o,a=>{s.value=a.some(c=>c.isIntersecting),i.value=5,l&&(clearInterval(l),l=void 0),s.value&&(l=setInterval(()=>{i.value-=1,i.value<=0&&(clearInterval(l),l=void 0,t("next"))},1e3))}),wi(n,a=>{r.value=a.some(c=>c.isIntersecting)}),dt(()=>l&&clearInterval(l))}),(l,a)=>(A(),Z("div",{ref_key:"root",ref:n,class:"h-full w-full flex justify-center items-center"},[bt(K("div",Td,[l.hasNext?(A(),Z("div",Od,[s.value?(A(),Z("div",$d)):Re("",!0),bt((A(),Z("button",{ref_key:"nextButton",ref:o,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:a[0]||(a[0]=Bt(()=>t("next"),["stop"]))},[yt(" Next in "+lt(i.value),1)])),[[V(Qt)]])])):Re("",!0),bt((A(),Z("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:a[1]||(a[1]=Bt(()=>t("hide"),["stop"]))},[yt(" Hide ")])),[[V(Qt)]])],512),[[yc,r.value||!l.hasNext]])],512))}}),[["styles",[`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
6
+ `]]]),Id=Object.freeze(Object.defineProperty({__proto__:null,default:Ni},Symbol.toStringTag,{value:"Module"})),rr=3;function Ed(e,t){const n=sn(Array.from({length:e.value.length})),o=[];let r=0;de([t,e],async([l,a],[c])=>{const d=Math.floor(l),u=Math.floor(c||-1),h=a.length-n.length;if(h>0){const b=Array.from({length:h});n.push(...b)}d!==u&&(r=Math.max(0,r-Math.abs(d-u)));for(let b=d;b<a.length;b++){if(r>rr)return;s(b)}for(let b=d-1;b>=0;b--){if(r>rr)return;s(b)}},{immediate:!0});async function s(l){l===void 0||!e.value[l]||r>rr||(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(()=>{const{naturalWidth:r,naturalHeight:s}=n;s&&r&&(t({src:e,naturalWidth:r,naturalHeight:s}),clearInterval(o))},20);n.onerror=()=>{t(void 0),clearInterval(o)},n.src=e})}function Md(e,t){return ce(()=>t.value?Fi(e):e.map((n,o)=>[{img:n,index:o}]))}function Fi(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)=>({img:s,index:t+i})),...Fi(e.slice(r.length),t+r.length)]}function Ld(e,t,n){return Hu(async()=>{if(n!==void 0)return n;const o=await zd(e);return await new Promise(r=>{if(n!==void 0){r(n);return}const s=Math.max(o.length<4?0:o.length<6?1:2,t),i=Math.min(s+4,o.length<6?o.length-1:o.length),l=Math.max(0,i-4),a=o.slice(l,i);let c=!1;Promise.all(a.map(async d=>{const u=await Ad(d);!c&&u&&(c=!0,r(!0))})).then(()=>{c||r(!1)})})},n??!1)}async function zd(e){return e.value.length?e.value:await new Promise(t=>{const n=de(e,o=>{n(),o.length&&t(o)})})}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})}function jd({initialPage:e,max:t}){const n=typeof e=="number"?Math.max(0,Math.min(e,t)):0,o=sessionStorage.getItem("tk:page:path");return o!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),o&&sessionStorage.removeItem("tk:page")),tr("tk:page",n,{writeDefaults:!1,mergeDefaults(r){return Math.max(0,Math.min(r,t))}})}function Bd(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const sr=40;function Dd({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:s,spaceTop:i,scrollEl:l,interferePlayer:a,onChangedPage:c}){let d=!1,u=!1,h;const b=Fd(q,300);tt(()=>{let m=null;Ql(async()=>{l.value&&l.value!==m&&(m=l.value,v(e.value),m==null||m.removeEventListener("scroll",b),l.value.addEventListener("scroll",b))});const{width:_,height:y}=lf();de(_,$),de(y,$),de(n,$),de(t,$)});async function $(){d=!0;const m=e.value;await ut(),D()!==m&&v(m)}function v(m,{smooth:_}={smooth:!1}){const y=l.value;if(!y)return;d=!0;const F=async()=>{await ut(),d=!1,u=!0},Q=Math.floor(m),ie=y.querySelector(`[data-index="${Q}"],[data-index2="${Q}"]`);if(!ie){F();return}a(async()=>{u?o.value?(await E(y,ie,{smooth:_,offsetDelta:m%1}),q()):(y.style.setProperty("scroll-snap-type","none"),await E(y,ie,{smooth:_}),y.style.setProperty("scroll-snap-type",""),q()):o.value?(r.value||await new Promise(S=>setTimeout(S,300)),await E(y,ie,{smooth:_,offsetDelta:m%1})):await E(y,ie,{smooth:_}),await F()})}function q(){if(!l.value||d)return;const m=D();m!==void 0&&m!==e.value&&c(m)}function D(){const m=B();if(!m)return;const _=+m.getAttribute("data-index")||0;return o.value?Math.floor((_+N(m))*100)/100:_}function B(){h??(h=l.value.getRootNode());const m=h.elementsFromPoint(r.value||!o.value?window.innerWidth/2:s.value?window.innerWidth-sr:sr,r.value&&o.value?i.value||sr:window.innerHeight/2);for(let _=0;_<m.length;_++){const y=m[_];if(y.hasAttribute("data-index"))return y;if(y===l.value)break}}function N(m){const _=m.getBoundingClientRect();return r.value?Math.abs(_.top-(i.value||0))/_.height:s.value?Math.max(0,_.right-l.value.clientWidth)/_.width:Math.abs(_.left)/_.width}let z=!1;async function E(m,_,y){if(z)return;z=!0;const F=r.value?m.scrollTop:m.scrollLeft,Q=y.offsetDelta??0,ie=r.value?_.offsetTop+Q*_.offsetHeight-(o.value?i.value??0:0):s.value?_.offsetLeft-m.clientWidth+_.offsetWidth-Q*_.offsetWidth:_.offsetLeft+Q*_.offsetWidth;if(!y.smooth){r.value?m.scrollTop=ie:m.scrollLeft=ie,z=!1;return}const S=ie-F,re=30;let me=0;return new Promise(Pe=>{(function ae(){const k=Nd(me,F,S,re);r.value?m.scrollTop=k:m.scrollLeft=k,me++,me<=re?requestAnimationFrame(ae):(Pe(),z=!1)})()})}return{goToPage:v}}function Nd(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function Fd(e,t){let n;return()=>{n||(n=setTimeout(()=>{n=void 0,e()},t))}}function Rd({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:s,speed:i,onLongIdle:l}){const a=tr("tk:isPlaying",e,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults:(y,F)=>y===void 0?F:y===!0||y==="true"}),c=J(!1);let d,u;const h=Gt(m,100);let b;const $=Gt(()=>{c.value=!0,clearTimeout(b),b=a.value?void 0:setTimeout(l,15e3)},t?2e3:1e3),v=()=>setTimeout(()=>{c.value=!1,$(),b&&(clearTimeout(b),b=void 0)},30);v(),t||Nt(window,"mousemove",v);const q=_i();tt(()=>{de(q,y=>{a.value&&(y==="visible"?m():u==null||u())}),de(i,()=>D()),de(s,y=>{y||N()})}),dt(()=>{clearTimeout(b),b=void 0});async function D(y){a.value&&(u==null||u()),y&&(await ut(),await y()),a.value&&h()}function B(){a.value?N():z()}function N(){a.value&&(a.value=!1,u==null||u(),v())}function z(){!a.value&&s.value&&(a.value=!0,m(),v())}function E(){u==null||u()}function m(){const y=n.value;if(!a.value||!y)return;const F=o.value?y.scrollHeight-y.clientHeight:y.scrollWidth-y.clientWidth,Q=_();if(F<=Q){N();return}u=()=>{d=Date.now(),u=void 0};const ie=Date.now();d=ie;const S=.05*i.value,re=o.value?"scrollTop":"scrollLeft";let me=Date.now(),Pe=0;const ae=()=>{if(d!==ie)return;const k=Date.now(),L=k-me;me=k;const ee=S*L+Pe;ee>=1?(Pe=ee%1,y[re]+=(ee-Pe)*(r.value?-1:1)):Pe=ee,setTimeout(ae,1)};ae()}function _(){const y=n.value;return o.value?y.scrollTop:r.value?-y.scrollLeft:y.scrollLeft}return{isPlaying:a,isIdle:c,toggle:B,play:z,pause:E,resume:m,stop:N,interfere:D,awake:v}}function Hd(e){var u,h,b,$;let t=-1;const{vol:n,chap:o,title:r,slug:s,basePath:i}=e,l=r.chapters??[],a=(l==null?void 0:l.length)>1?l:[];a.length&&(t=a.findIndex(v=>v.slug===e.slug),t===-1&&(t=a.findIndex(v=>v.vol===n&&v.chap===o)),t===-1&&(t=a.findIndex(v=>s.startsWith(`${v.slug}-`)&&s.length-v.slug.length>3)));const c=((u=e.prev)==null?void 0:u.slug)??((h=a[t+1])==null?void 0:h.slug),d=((b=e.next)==null?void 0:b.slug)??(($=a[t-1])==null?void 0:$.slug);return{activeIndex:t,activeLabel:Ri({vol:n,chap:o}),chapters:a.map(v=>({label:Ri(v),path:ir(i,v.slug)})),prevPath:ir(i,c),nextPath:ir(i,d)}}function ir(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function Ri({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const Vd={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},Wd=Oe({...{inheritAttrs:!1},__name:"TrackkunReader",props:{raw:{},imgs:{},isWebtoon:{type:Boolean},page:{},spaceTop:{},spaceBottom:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},isGuest:{type:Boolean}},emits:["pageChanged","fullScreenChanged","playingChanged","dispose","openEntry","addEntry","longIdle"],setup(e,{emit:t}){const n=e,o=Yc({touchDevice:n.touchDevice}),r=ce(()=>Array.isArray(n.imgs)?n.imgs.filter(O=>typeof O=="string"):[]),s=jd({initialPage:n.page,max:r.value.length-1}),i=Ld(r,Math.ceil(s.value),n.isWebtoon),{direction:l,style:a,isRTL:c,isDouble:d,isVertical:u,isLongStrip:h,gap:b,speed:$,zoom:v}=gf({titleName:n.raw.title.name,asyncIsWebtoon:i}),q=Ed(r,s),D=Md(q,d),B=ce(()=>s.value>=r.value.length),N=ce(()=>Hd(n.raw)),z=ce(()=>{var O,Y;return c.value?(O=N.value)==null?void 0:O.nextPath:(Y=N.value)==null?void 0:Y.prevPath}),E=ce(()=>{var O,Y;return c.value?(O=N.value)==null?void 0:O.prevPath:(Y=N.value)==null?void 0:Y.nextPath}),m=J(null),_=Rd({autoPlay:n.autoPlay,touchDevice:n.touchDevice,scrollEl:ce(()=>{var O;return(O=m.value)==null?void 0:O.$el}),speed:$,isRTL:c,isVertical:u,isLongStrip:h,onLongIdle:()=>t("longIdle")});de(_.isPlaying,O=>{O||st(!1),t("playingChanged",O)}),de(_.isIdle,O=>{_.isPlaying.value&&st(O)}),de(o,O=>{!O&&_.isIdle.value?_.awake():O&&n.fullScreen&&st()});const y=ce(()=>!n.touchDevice&&_.isIdle.value&&!o.value),F=ce({get(){return v.value},set(O){_.interfere(()=>{v.value=O})}}),Q=()=>_.interfere(()=>new Promise(O=>setTimeout(O,100)));su().addListener({onKeyDown:O=>{const Y=h.value&&u.value,Le=h.value&&!u.value,f=!h.value&&u.value,p=!h.value&&!u.value;switch(O.key){case" ":h.value&&(O.preventDefault(),_.toggle());break;case"ArrowUp":case"PageUp":Y?Q():f&&(O.preventDefault(),Be());break;case"ArrowDown":case"PageDown":Y?Q():f&&(O.preventDefault(),Ie());break;case"ArrowLeft":Le?Q():p?(O.preventDefault(),ee()):u.value&&ae();break;case"ArrowRight":Le?Q():p?(O.preventDefault(),Me()):u.value&&Pe();break}}});const S=Dd({page:s,style:a,direction:l,isLongStrip:h,isVertical:u,isRTL:c,spaceTop:ce(()=>n.spaceTop),scrollEl:ce(()=>{var O;return(O=m.value)==null?void 0:O.$el}),interferePlayer:O=>_.interfere(O),onChangedPage(O){if(O<0||O>=r.value.length+1)return;s.value=O,t("pageChanged",O),O>=r.value.length&&(st(!1),_.stop())}});function re(){h.value||S.goToPage(Math.floor(s.value),{smooth:!0})}function me(){if(_.isPlaying.value){!n.fullScreen||!n.touchDevice?_.stop():_.awake();return}st()}function Pe(){var O;L((O=N.value)==null?void 0:O.nextPath)}function ae(){var O;L((O=N.value)==null?void 0:O.prevPath)}function k(O){var Le,f,p;const Y=(p=(f=(Le=N.value)==null?void 0:Le.chapters)==null?void 0:f[O])==null?void 0:p.path;Y&&L(Y)}function L(O){O&&(location.href=O.includes("://")?O:location.origin+O)}function ee(){c.value?Ie():Be()}function Me(){c.value?Be():Ie()}function Be(){var Le;const O=D.value,Y=B.value?O[O.length-1][0].index:(Le=O[Ft()-1])==null?void 0:Le[0].index;Y!==void 0?S.goToPage(Y):ae()}function Ie(){var Y;const O=B.value?Math.floor(s.value)+1:((Y=D.value[Ft()+1])==null?void 0:Y[0].index)??r.value.length;S.goToPage(O)}function Ft(){const O=Math.floor(s.value),Y=D.value.findIndex(Le=>Le.some(({index:f})=>f===O));return Y===-1?D.value.length-1:Y}function tn(){Bd(),_.stop(),t("dispose")}async function st(O){o.value&&!n.fullScreen||t("fullScreenChanged",typeof O=="boolean"?O:!n.fullScreen)}function He(){n.entryId?Rt():Pt()}function Pt(){_.stop(),t("addEntry")}function Rt(){_.stop(),t("openEntry",n.entryId)}return(O,Y)=>{const Le=or,f=Ni,p=Di,g=ji,x=zi,w=Li,P=Jn,M=Mi,T=nr,I=Si,C=Ei,R=Ii,j=Oi,H=Ti,X=Pi,te=Zo,fe=qo,ue=Gs,ve=Js;return A(),Se(ve,{"full-screen":!!O.fullScreen,idle:y.value,"space-top":n.spaceTop,"space-bottom":n.spaceBottom,"touch-device":O.touchDevice,rtl:V(c)},is({back:oe(()=>[W(P,{href:O.raw.title.url,title:O.raw.title.name},{default:oe(()=>[W(w)]),_:1},8,["href","title"])]),exit:oe(()=>[W(P,{title:"Hide reader",onClick:tn},{default:oe(()=>[W(M)]),_:1})]),"chapter-nav":oe(()=>[W(T,{modelValue:N.value.activeIndex,label:N.value.activeLabel,items:N.value.chapters,"onUpdate:modelValue":k},{item:oe(({item:pe})=>[yt(lt(pe.label),1)]),_:1},8,["modelValue","label","items"]),z.value||E.value?(A(),Z("div",Vd,[W(P,{title:V(c)?"Next":"Previous",href:z.value,disabled:!z.value,class:"!rounded-r-none"},{default:oe(()=>[W(I)]),_:1},8,["title","href","disabled"]),W(P,{title:V(c)?"Previous":"Next",href:E.value,disabled:!E.value,class:"!rounded-l-none"},{default:oe(()=>[W(C)]),_:1},8,["title","href","disabled"])])):Re("",!0)]),entry:oe(()=>[W(P,{title:O.entryId?"View entry":"Add to Trackkun",onClick:He},{default:oe(()=>[O.entryId?(A(),Se(j,{key:0})):(A(),Se(H,{key:1}))]),_:1},8,["title"])]),settings:oe(()=>[W(X,{"reader-style":V(a),"onUpdate:readerStyle":Y[3]||(Y[3]=pe=>we(a)?a.value=pe:null),direction:V(l),"onUpdate:direction":Y[4]||(Y[4]=pe=>we(l)?l.value=pe:null),gap:V(b),"onUpdate:gap":Y[5]||(Y[5]=pe=>we(b)?b.value=pe:null),speed:V($),"onUpdate:speed":Y[6]||(Y[6]=pe=>we($)?$.value=pe:null),zoom:F.value,"onUpdate:zoom":Y[7]||(Y[7]=pe=>F.value=pe),webtoon:V(i).state.value,disabled:V(i).isLoading.value},null,8,["reader-style","direction","gap","speed","zoom","webtoon","disabled"])]),play:oe(()=>[W(P,{title:V(_).isPlaying.value?"Pause":"Play",disabled:V(i).isLoading.value||!V(h),onClick:Y[8]||(Y[8]=()=>V(_).toggle())},{default:oe(()=>[V(_).isPlaying.value?(A(),Se(te,{key:0})):(A(),Se(fe,{key:1}))]),_:1},8,["title","disabled"])]),"reset-zoom":oe(()=>[W(Jt,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:oe(()=>[W(ue,{zoom:F.value,onClick:Y[9]||(Y[9]=Bt(()=>F.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:oe(()=>[K("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Ke({width:`${V(s)/(r.value.length-1)*100}%`})},null,4)]),default:oe(()=>[V(i).isLoading.value||!r.value.length?(A(),Se(Le,{key:0})):(A(),Z(Ce,{key:1},[W(p,{ref_key:"body",ref:m,zoom:F.value,"onUpdate:zoom":Y[0]||(Y[0]=pe=>F.value=pe),pages:V(D),"total-imgs":r.value.length,direction:V(l),gap:V(b),"is-long-strip":V(h),isRTL:V(c),"is-vertical":V(u),"space-top":O.spaceTop,"space-bottom":n.spaceBottom,"touch-device":O.touchDevice,busy:V(o),idle:y.value,"play-controller":V(_),onPrev:Be,onNext:Ie,onClick:me,onDragEnd:re,onWheelPassive:Y[1]||(Y[1]=()=>V(_).interfere())},is({_:2},[!V(i).isLoading.value&&r.value.length?{name:"end",fn:oe(()=>[W(f,{"has-next":!!N.value.nextPath,onNext:Pe,onHide:tn},null,8,["has-next"])]),key:"0"}:void 0]),1032,["zoom","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","space-bottom","touch-device","busy","idle","play-controller"]),W(g,{direction:V(l)},null,8,["direction"]),B.value?Re("",!0):(A(),Se(x,{key:0,playing:!!V(_).isPlaying.value},null,8,["playing"]))],64))]),_:2},[V(D).length?{name:"page-nav",fn:oe(()=>[W(R,{"model-value":V(s),disabled:V(i).isLoading.value,pages:V(D),"total-imgs":r.value.length,"onUpdate:modelValue":Y[2]||(Y[2]=pe=>V(S).goToPage(pe,{smooth:!0}))},null,8,["model-value","disabled","pages","total-imgs"])]),key:"0"}:void 0]),1032,["full-screen","idle","space-top","space-bottom","touch-device","rtl"])}}}),Hi=xe(Wd,[["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}.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-auto{margin-left:auto}.-ml-20{margin-left:-5rem}.ml-1{margin-left:.25rem}.-mr-3{margin-right:-.75rem}.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-\\[27rem\\]{height:27rem}.h-16{height:4rem}.h-10{height:2.5rem}.h-4{height:1rem}.h-9{height:2.25rem}.h-24{height:6rem}.h-1\\.5{height:.375rem}.h-1{height:.25rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-6{height:1.5rem}.h-20{height:5rem}.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-20{width:5rem}.w-24{width:6rem}.w-1\\/3{width:33.333333%}.w-\\[4\\.5rem\\]{width:4.5rem}.max-w-full{max-width:100%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-right{transform-origin:right}.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,.translate-y-0{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-0{--tw-translate-y:0px}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.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-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-\\[1px\\]{gap:1px}.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-sm{border-radius:.125rem}.rounded-\\[2\\.5rem\\]{border-radius:2.5rem}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.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{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-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-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}.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}.py-1{padding-bottom:.25rem;padding-top:.25rem}.pt-3{padding-top:.75rem}.pb-12{padding-bottom:3rem}.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}.lowercase{text-transform:lowercase}.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)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.duration-150{transition-duration:.15s}.duration-100{transition-duration:.1s}.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-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/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-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-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/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-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:640px){.sm\\:inset-3{bottom:.75rem;left:.75rem;right:.75rem;top:.75rem}.sm\\:w-\\[32rem\\]{width:32rem}.sm\\:pb-2{padding-bottom:.5rem}}@media (min-width:768px){.md\\:px-8{padding-left:2rem;padding-right:2rem}.md\\:pb-0{padding-bottom:0}}@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}}
7
+ `]]]),Ud=Object.freeze(Object.defineProperty({__proto__:null,default:Hi},Symbol.toStringTag,{value:"Module"})),Kd={},qd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Zd=[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 Yd(e,t){return A(),Z("svg",qd,Zd)}const Xd=Object.freeze(Object.defineProperty({__proto__:null,default:xe(Kd,[["render",Yd]])},Symbol.toStringTag,{value:"Module"})),Jd={text:Qd,attr:Gd,"attr-contain":ep,value:np,row:op};function lr(e,t={}){if(!e)return;const{root:n=document.documentElement,returnAll:o,preProcess:r}=t,s=tp(e);if(s.length>1){for(let u=0;u<s.length;u+=1){const h=lr(s[u],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(u=>{const h=u.indexOf(":"),b=h!==-1;return{action:b?u.substring(0,h):u,param:b?u.substring(h+1):""}}),c=i?Array.from(n.querySelectorAll(i)):[n];if(!c.length)return o?[]:void 0;r&&r(c);const d=[];for(const u of c)for(const h of a){const b=Jd[h.action],$=b(u,h.param);if($){if(o){d.push($);break}return $}}return o?d:void 0}function Qd(e){return Array.from(e.childNodes).filter(n=>n.nodeType===3).map(n=>en(n.textContent)).filter(Boolean).join(" ").trim()||en(e.textContent)}function Gd(e,t){return en(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 en(n)}function tp(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 np(e){return e.value}function op(e,t){var r,s,i;if(!t)return;const n=(r=en(e.textContent))==null?void 0:r.toLowerCase(),o=t.toLowerCase();if(!(n!==o&&n!==`${o}:`))return en(((s=e.nextElementSibling)==null?void 0:s.textContent)??((i=e.nextSibling)==null?void 0:i.textContent))}function en(e){if(e)return(e==null?void 0:e.replace(/(\n|\t)/g," ").trim())||void 0}const rp=`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 #radio_content.cerrado,html.gear-second body .pf-br-icon{--tw-translate-x:-100%!important;display:none!important;height:0!important;max-height:0!important;max-width:0!important;opacity:0!important;pointer-events:none!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important;visibility:hidden!important;width:0!important;z-index:-10!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-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;pointer-events:none!important}
8
+ `,yn="gear-second",Vi="gear-second--adblock",ar={raw:{},spec:void 0,imgs:[],isWebtoon:void 0,page:0,spaceTop:void 0,spaceBottom:void 0,fullScreen:void 0,touchDevice:void 0,entryId:void 0,autoPlay:void 0,adBlock:void 0,textScaleFactor:void 0,isGuest:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPlayingChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onLongIdle:void 0,onFinished:void 0},ge={el:void 0,controller:void 0,data:sn({...ar})};async function sp(e){var r,s;if(ge.controller)return ge.data.raw=e.raw,ge.controller;const t=()=>{var i;ge.el&&(document.body.removeChild(ge.el),ge.el=void 0),document.documentElement.classList.remove(yn),document.documentElement.classList.remove(Vi),ap(ge.data),Object.assign(ge.data,ar),ge.controller=void 0,(i=e==null?void 0:e.onDispose)==null||i.call(e)};ge.controller={triggerDoubleTap:(i,l)=>dd(i,l),updateArgs(i){Object.assign(ge.data,i),cr()},dispose:t};let n=e.raw.isWebtoon;const o=(r=e.raw.imgs)!=null&&r.length?e.raw.imgs:lr(e.raw.imgsLocator??((s=e.spec)==null?void 0:s.imgs),{returnAll:!0,preProcess:n!==void 0?void 0:i=>n=n||up(i)})??[];return document.documentElement.classList.add(yn),e.adBlock&&document.documentElement.classList.add(Vi),await ip(),Object.assign(ge.data,ar,e,{isWebtoon:n,imgs:o,page:cp({page:e.page??0,imgs:o}),onDispose:t}),cr(),Wi(e.raw.slug),ge.el||(ge.el=document.createElement(yn),document.body.appendChild(ge.el)),ge.controller}async function ip(){if(window.customElements.get(yn))return;const e=document.createElement("style");e.appendChild(document.createTextNode(rp)),document.head.appendChild(e);const t=ac({styles:[await lp()],data:()=>({readerData:ge.data,isFinished:!1}),render(){return Ls(Hi,{...this.readerData,onFullScreenChanged:n=>{var o,r;this.readerData.fullScreen=n,(r=(o=this.readerData).onFullScreenChanged)==null||r.call(o,n),cr()},onPageChanged:n=>{var o,r,s,i;this.readerData.page=n,(r=(o=this.readerData).onPageChanged)==null||r.call(o,n),!this.isFinished&&n>=this.readerData.imgs.length-2&&(this.isFinished=!0,(i=(s=this.readerData).onFinished)==null||i.call(s))}})}});window.customElements.define(yn,t)}async function lp(){const e=Object.assign({"./TrackkunReader.vue":Ud,"./components/AutoNext.vue":Id,"./components/BottomSheet.vue":uu,"./components/ButtonDropdown.vue":jf,"./components/ButtonIcon.vue":Qc,"./components/ButtonReaderSettings.vue":mf,"./components/ButtonResetZoom.vue":Dc,"./components/DirectionToast.vue":ud,"./components/InputPercentage.vue":pu,"./components/InputSelect.vue":bu,"./components/LoadingIndicator.vue":_d,"./components/PageNav.vue":Bf,"./components/PauseToast.vue":rd,"./components/ReaderBody.vue":Pd,"./components/ReaderLayout.vue":Ic,"./components/TableField.vue":mu,"./components/ZoomWrapper.vue":pd,"./components/icons/IconBack.vue":od,"./components/icons/IconBookmarkNew.vue":wf,"./components/icons/IconBookmarked.vue":Tf,"./components/icons/IconChevronLeft.vue":qf,"./components/icons/IconChevronRight.vue":Hf,"./components/icons/IconClose.vue":ou,"./components/icons/IconExclamationCircle.vue":Xd,"./components/icons/IconNext.vue":cd,"./components/icons/IconPause.vue":Zc,"./components/icons/IconPlay.vue":Vc,"./components/icons/IconReaderExit.vue":Qf,"./components/icons/IconSettings.vue":Cu,"./components/icons/IconTriangle.vue":Sf,"./components/icons/IconZoom.vue":zc}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}function cr(){if(ge.data.adBlock)return;const{spaceTop:e,fullScreen:t}=ge.data,n=document.querySelector(":root");n==null||n.style.setProperty("--tk-safe-top",`${t?0:(e||0)+56}px`)}function ap({page:e,imgs:t}){if(e<1||!t)return;if(e>=t.length){document.documentElement.scrollTop=document.documentElement.scrollHeight;return}const n=t[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 cp({page:e,imgs:t}){if(!t.length||document.documentElement.scrollTop<700)return e;for(let n=0;n<t.length;n++){const o=t[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 Wi(e,t=0){var s;const n=ge.data.raw.imgsLocator??((s=ge.data.spec)==null?void 0:s.imgs);if(!n||t>=7||(await new Promise(i=>setTimeout(i,1e3)),ge.data.raw.slug!==e))return;const o=lr(n,{returnAll:!0});if(!(o!=null&&o.length))return;const r=o.length>ge.data.imgs.length;r&&(ge.data.imgs=o),Wi(e,r?0:t+1)}function up(e){const t=e.map(n=>+(n.getAttribute("height")||0)/+(n.getAttribute("width")||1));if(t.some(n=>n>2.5))return!0;if(t.filter(Boolean).length>Math.max(1,t.length-2))return!1}return sp});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gear-second",
3
3
  "author": "endyquang",
4
- "version": "0.4.0",
4
+ "version": "0.5.0",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Trkun manga reader",
7
7
  "main": "index.js",