gear-second 0.0.8 → 0.2.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.
- package/index.js +8 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(function(Me,ee){typeof exports=="object"&&typeof module<"u"?module.exports=ee():typeof define=="function"&&define.amd?define(ee):(Me=typeof globalThis<"u"?globalThis:Me||self,Me._gearSecond_=ee())})(this,function(){"use strict";var ep=Object.defineProperty;var tp=(Me,ee,Be)=>ee in Me?ep(Me,ee,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Me[ee]=Be;var Xi=(Me,ee,Be)=>(tp(Me,typeof ee!="symbol"?ee+"":ee,Be),Be);function Me(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 ee={},Be=[],Ke=()=>{},Ji=()=>!1,Qi=/^on[^a-z]/,vn=e=>Qi.test(e),eo=e=>e.startsWith("onUpdate:"),ge=Object.assign,to=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Gi=Object.prototype.hasOwnProperty,re=(e,t)=>Gi.call(e,t),R=Array.isArray,zt=e=>yn(e)==="[object Map]",ar=e=>yn(e)==="[object Set]",Q=e=>typeof e=="function",be=e=>typeof e=="string",no=e=>typeof e=="symbol",de=e=>e!==null&&typeof e=="object",cr=e=>de(e)&&Q(e.then)&&Q(e.catch),ur=Object.prototype.toString,yn=e=>ur.call(e),el=e=>yn(e).slice(8,-1),fr=e=>yn(e)==="[object Object]",oo=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,wn=Me(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},tl=/-(\w)/g,Ae=xn(e=>e.replace(tl,(t,n)=>n?n.toUpperCase():"")),nl=/\B([A-Z])/g,De=xn(e=>e.replace(nl,"-$1").toLowerCase()),kn=xn(e=>e.charAt(0).toUpperCase()+e.slice(1)),ro=xn(e=>e?`on${kn(e)}`:""),en=(e,t)=>!Object.is(e,t),Cn=(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})},so=e=>{const t=parseFloat(e);return isNaN(t)?e:t},io=e=>{const t=be(e)?Number(e):NaN;return isNaN(t)?e:t};let dr;const lo=()=>dr||(dr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ne(e){if(R(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=be(o)?il(o):Ne(o);if(r)for(const s in r)t[s]=r[s]}return t}else{if(be(e))return e;if(de(e))return e}}const ol=/;(?![^(]*\))/g,rl=/:([^]+)/,sl=new RegExp("\\/\\*.*?\\*\\/","gs");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 ve(e){let t="";if(be(e))t=e;else if(R(e))for(let n=0;n<e.length;n++){const o=ve(e[n]);o&&(t+=o+" ")}else if(de(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ll=Me("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function pr(e){return!!e||e===""}const lt=e=>be(e)?e:e==null?"":R(e)||de(e)&&(e.toString===ur||!Q(e.toString))?JSON.stringify(e,hr,2):String(e),hr=(e,t)=>t&&t.__v_isRef?hr(e,t.value):zt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:ar(t)?{[`Set(${t.size})`]:[...t.values()]}:de(t)&&!R(t)&&!fr(t)?String(t):t;let je;class al{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=je,!t&&je&&(this.index=(je.scopes||(je.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=je;try{return je=this,t()}finally{je=n}}}on(){je=this}off(){je=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function cl(e,t=je){t&&t.active&&t.effects.push(e)}function gr(){return je}function ul(e){je&&je.cleanups.push(e)}const ao=e=>{const t=new Set(e);return t.w=0,t.n=0,t},mr=e=>(e.w&at)>0,br=e=>(e.n&at)>0,fl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=at},dl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];mr(r)&&!br(r)?r.delete(e):t[n++]=r,r.w&=~at,r.n&=~at}t.length=n}},co=new WeakMap;let tn=0,at=1;const uo=30;let Ue;const xt=Symbol(""),fo=Symbol("");class po{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=Ue,n=ct;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Ue,Ue=this,ct=!0,at=1<<++tn,tn<=uo?fl(this):_r(this),this.fn()}finally{tn<=uo&&dl(this),at=1<<--tn,Ue=this.parent,ct=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ue===this?this.deferStop=!0:this.active&&(_r(this),this.onStop&&this.onStop(),this.active=!1)}}function _r(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let ct=!0;const vr=[];function Bt(){vr.push(ct),ct=!1}function Dt(){const e=vr.pop();ct=e===void 0?!0:e}function $e(e,t,n){if(ct&&Ue){let o=co.get(e);o||co.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=ao()),yr(r)}}function yr(e,t){let n=!1;tn<=uo?br(e)||(e.n|=at,n=!mr(e)):n=!e.has(Ue),n&&(e.add(Ue),Ue.deps.push(e))}function nt(e,t,n,o,r,s){const i=co.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&R(e)){const a=Number(o);i.forEach((c,f)=>{(f==="length"||f>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":R(e)?oo(n)&&l.push(i.get("length")):(l.push(i.get(xt)),zt(e)&&l.push(i.get(fo)));break;case"delete":R(e)||(l.push(i.get(xt)),zt(e)&&l.push(i.get(fo)));break;case"set":zt(e)&&l.push(i.get(xt));break}if(l.length===1)l[0]&&ho(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);ho(ao(a))}}function ho(e,t){const n=R(e)?e:[...e];for(const o of n)o.computed&&wr(o);for(const o of n)o.computed||wr(o)}function wr(e,t){(e!==Ue||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const pl=Me("__proto__,__v_isRef,__isVue"),xr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(no)),hl=go(),gl=go(!1,!0),ml=go(!0),kr=bl();function bl(){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++)$e(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){Bt();const o=ie(this)[t].apply(this,n);return Dt(),o}}),e}function _l(e){const t=ie(this);return $e(t,"has",e),t.hasOwnProperty(e)}function go(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:Mr:t?Sr:$r).get(o))return o;const i=R(o);if(!e){if(i&&re(kr,r))return Reflect.get(kr,r,s);if(r==="hasOwnProperty")return _l}const l=Reflect.get(o,r,s);return(no(r)?xr.has(r):pl(r))||(e||$e(o,"get",r),t)?l:me(l)?i&&oo(r)?l:l.value:de(l)?e?_o(l):nn(l):l}}const vl=Cr(),yl=Cr(!0);function Cr(e=!1){return function(n,o,r,s){let i=n[o];if(Rt(i)&&me(i)&&!me(r))return!1;if(!e&&(!Mn(r)&&!Rt(r)&&(i=ie(i),r=ie(r)),!R(n)&&me(i)&&!me(r)))return i.value=r,!0;const l=R(n)&&oo(o)?Number(o)<n.length:re(n,o),a=Reflect.set(n,o,r,s);return n===ie(s)&&(l?en(r,i)&&nt(n,"set",o,r):nt(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&&nt(e,"delete",t,void 0),o}function xl(e,t){const n=Reflect.has(e,t);return(!no(t)||!xr.has(t))&&$e(e,"has",t),n}function kl(e){return $e(e,"iterate",R(e)?"length":xt),Reflect.ownKeys(e)}const Tr={get:hl,set:vl,deleteProperty:wl,has:xl,ownKeys:kl},Cl={get:ml,set(e,t){return!0},deleteProperty(e,t){return!0}},Tl=ge({},Tr,{get:gl,set:yl}),mo=e=>e,Pn=e=>Reflect.getPrototypeOf(e);function On(e,t,n=!1,o=!1){e=e.__v_raw;const r=ie(e),s=ie(t);n||(t!==s&&$e(r,"get",t),$e(r,"get",s));const{has:i}=Pn(r),l=o?mo:n?yo: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&&$e(o,"has",e),$e(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&&$e(ie(e),"iterate",xt),Reflect.get(e,"size",e)}function Pr(e){e=ie(e);const t=ie(this);return Pn(t).has.call(t,e)||(t.add(e),nt(t,"add",e,e)),this}function Or(e,t){t=ie(t);const n=ie(this),{has:o,get:r}=Pn(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)&&nt(n,"set",e,t):nt(n,"add",e,t),this}function Ir(e){const t=ie(this),{has:n,get:o}=Pn(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&&nt(t,"delete",e,void 0),s}function Er(){const e=ie(this),t=e.size!==0,n=e.clear();return t&&nt(e,"clear",void 0,void 0),n}function $n(e,t){return function(o,r){const s=this,i=s.__v_raw,l=ie(i),a=t?mo:e?yo:on;return!e&&$e(l,"iterate",xt),i.forEach((c,f)=>o.call(r,a(c),a(f),s))}}function Sn(e,t,n){return function(...o){const r=this.__v_raw,s=ie(r),i=zt(s),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=r[e](...o),f=n?mo:t?yo:on;return!t&&$e(s,"iterate",a?fo:xt),{next(){const{value:h,done:p}=c.next();return p?{value:h,done:p}:{value:l?[f(h[0]),f(h[1])]:f(h),done:p}},[Symbol.iterator](){return this}}}}function ut(e){return function(...t){return e==="delete"?!1:this}}function Pl(){const e={get(s){return On(this,s)},get size(){return En(this)},has:In,add:Pr,set:Or,delete:Ir,clear:Er,forEach:$n(!1,!1)},t={get(s){return On(this,s,!1,!0)},get size(){return En(this)},has:In,add:Pr,set:Or,delete:Ir,clear:Er,forEach:$n(!1,!0)},n={get(s){return On(this,s,!0)},get size(){return En(this,!0)},has(s){return In.call(this,s,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:$n(!0,!1)},o={get(s){return On(this,s,!0,!0)},get size(){return En(this,!0)},has(s){return In.call(this,s,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:$n(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Sn(s,!1,!1),n[s]=Sn(s,!0,!1),t[s]=Sn(s,!1,!0),o[s]=Sn(s,!0,!0)}),[e,n,t,o]}const[Ol,Il,El,$l]=Pl();function bo(e,t){const n=t?e?$l:El:e?Il: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:bo(!1,!1)},Ml={get:bo(!1,!0)},Al={get:bo(!0,!1)},$r=new WeakMap,Sr=new WeakMap,Mr=new WeakMap,jl=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(el(e))}function nn(e){return Rt(e)?e:vo(e,!1,Tr,Sl,$r)}function Bl(e){return vo(e,!1,Tl,Ml,Sr)}function _o(e){return vo(e,!0,Cl,Al,Mr)}function vo(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 Nt(e){return Rt(e)?Nt(e.__v_raw):!!(e&&e.__v_isReactive)}function Rt(e){return!!(e&&e.__v_isReadonly)}function Mn(e){return!!(e&&e.__v_isShallow)}function Ar(e){return Nt(e)||Rt(e)}function ie(e){const t=e&&e.__v_raw;return t?ie(t):e}function jr(e){return Tn(e,"__v_skip",!0),e}const on=e=>de(e)?nn(e):e,yo=e=>de(e)?_o(e):e;function Lr(e){ct&&Ue&&(e=ie(e),yr(e.dep||(e.dep=ao())))}function zr(e,t){e=ie(e);const n=e.dep;n&&ho(n)}function me(e){return!!(e&&e.__v_isRef===!0)}function te(e){return Dr(e,!1)}function Br(e){return Dr(e,!0)}function Dr(e,t){return me(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 Lr(this),this._value}set value(t){const n=this.__v_isShallow||Mn(t)||Rt(t);t=n?t:ie(t),en(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:on(t),zr(this))}}function L(e){return me(e)?e.value:e}const Nl={get:(e,t,n)=>L(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return me(r)&&!me(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Nr(e){return Nt(e)?e:new Proxy(e,Nl)}class Rl{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 po(t,()=>{this._dirty||(this._dirty=!0,zr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=ie(this);return Lr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Fl(e,t,n=!1){let o,r;const s=Q(e);return s?(o=e,r=Ke):(o=e.get,r=e.set),new Rl(o,r,s||!r,n)}function op(e,...t){}function ft(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){An(s,t,n)}return r}function Re(e,t,n,o){if(Q(e)){const s=ft(e,t,n,o);return s&&cr(s)&&s.catch(i=>{An(i,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(Re(e[s],t,n,o));return r}function An(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const i=t.proxy,l=n;for(;s;){const c=s.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,i,l)===!1)return}s=s.parent}const a=t.appContext.config.errorHandler;if(a){ft(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,wo=!1;const Pe=[];let Je=0;const Ft=[];let ot=null,kt=0;const Rr=Promise.resolve();let xo=null;function rt(e){const t=xo||Rr;return e?t.then(this?e.bind(this):e):t}function Vl(e){let t=Je+1,n=Pe.length;for(;t<n;){const o=t+n>>>1;sn(Pe[o])<e?t=o+1:n=o}return t}function ko(e){(!Pe.length||!Pe.includes(e,rn&&e.allowRecurse?Je+1:Je))&&(e.id==null?Pe.push(e):Pe.splice(Vl(e.id),0,e),Fr())}function Fr(){!rn&&!wo&&(wo=!0,xo=Rr.then(Wr))}function Wl(e){const t=Pe.indexOf(e);t>Je&&Pe.splice(t,1)}function Kl(e){R(e)?Ft.push(...e):(!ot||!ot.includes(e,e.allowRecurse?kt+1:kt))&&Ft.push(e),Fr()}function Hr(e,t=rn?Je+1:0){for(;t<Pe.length;t++){const n=Pe[t];n&&n.pre&&(Pe.splice(t,1),t--,n())}}function Vr(e){if(Ft.length){const t=[...new Set(Ft)];if(Ft.length=0,ot){ot.push(...t);return}for(ot=t,ot.sort((n,o)=>sn(n)-sn(o)),kt=0;kt<ot.length;kt++)ot[kt]();ot=null,kt=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 Wr(e){wo=!1,rn=!0,Pe.sort(Ul);const t=Ke;try{for(Je=0;Je<Pe.length;Je++){const n=Pe[Je];n&&n.active!==!1&&ft(n,null,14)}}finally{Je=0,Pe.length=0,Vr(),rn=!1,xo=null,(Pe.length||Ft.length)&&Wr()}}function ql(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ee;let r=n;const s=t.startsWith("update:"),i=s&&t.slice(7);if(i&&i in o){const f=`${i==="modelValue"?"model":i}Modifiers`,{number:h,trim:p}=o[f]||ee;p&&(r=n.map(_=>be(_)?_.trim():_)),h&&(r=n.map(so))}let l,a=o[l=ro(t)]||o[l=ro(Ae(t))];!a&&s&&(a=o[l=ro(De(t))]),a&&Re(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,Re(c,e,6,r)}}function Kr(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 f=Kr(c,t,!0);f&&(l=!0,ge(i,f))};!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):(R(s)?s.forEach(a=>i[a]=null):ge(i,s),de(e)&&o.set(e,i),i)}function jn(e,t){return!e||!vn(t)?!1:(t=t.slice(2).replace(/Once$/,""),re(e,t[0].toLowerCase()+t.slice(1))||re(e,De(t))||re(e,t))}let ke=null,Ur=null;function Ln(e){const t=ke;return ke=e,Ur=e&&e.type.__scopeId||null,t}function le(e,t=ke,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&ws(-1);const s=Ln(t);let i;try{i=e(...r)}finally{Ln(s),o._d&&ws(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function rp(){}function Co(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:l,attrs:a,emit:c,render:f,renderCache:h,data:p,setupState:_,ctx:O,inheritAttrs:x}=e;let I,B;const z=Ln(e);try{if(n.shapeFlag&4){const b=r||o;I=Ge(f.call(b,b,h,s,_,p,O)),B=a}else{const b=t;I=Ge(b.length>1?b(s,{attrs:a,slots:l,emit:c}):b(s,null)),B=t.props?a:Zl(a)}}catch(b){un.length=0,An(b,e,1),I=W(He)}let V=I;if(B&&x!==!1){const b=Object.keys(B),{shapeFlag:Y}=V;b.length&&Y&7&&(i&&b.some(eo)&&(B=Yl(B,i)),V=pt(V,B))}return n.dirs&&(V=pt(V),V.dirs=V.dirs?V.dirs.concat(n.dirs):n.dirs),n.transition&&(V.transition=n.transition),I=V,Ln(z),I}const Zl=e=>{let t;for(const n in e)(n==="class"||n==="style"||vn(n))&&((t||(t={}))[n]=e[n]);return t},Yl=(e,t)=>{const n={};for(const o in e)(!eo(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?qr(o,i,c):!!i;if(a&8){const f=t.dynamicProps;for(let h=0;h<f.length;h++){const p=f[h];if(i[p]!==o[p]&&!jn(c,p))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===i?!1:o?i?qr(o,i,c):!0:!!i;return!1}function qr(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]&&!jn(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?R(e)?t.effects.push(...e):t.effects.push(e):Kl(e)}function ea(e,t){return To(e,null,t)}const zn={};function he(e,t,n){return To(e,t,n)}function To(e,t,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:i}=ee){var l;const a=gr()===((l=xe)==null?void 0:l.scope)?xe:null;let c,f=!1,h=!1;if(me(e)?(c=()=>e.value,f=Mn(e)):Nt(e)?(c=()=>e,o=!0):R(e)?(h=!0,f=e.some(b=>Nt(b)||Mn(b)),c=()=>e.map(b=>{if(me(b))return b.value;if(Nt(b))return Ct(b);if(Q(b))return ft(b,a,2)})):Q(e)?t?c=()=>ft(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return p&&p(),Re(e,a,3,[_])}:c=Ke,t&&o){const b=c;c=()=>Ct(b())}let p,_=b=>{p=z.onStop=()=>{ft(b,a,4)}},O;if(dn)if(_=Ke,t?n&&Re(t,a,3,[c(),h?[]:void 0,_]):c(),r==="sync"){const b=qa();O=b.__watcherHandles||(b.__watcherHandles=[])}else return Ke;let x=h?new Array(e.length).fill(zn):zn;const I=()=>{if(z.active)if(t){const b=z.run();(o||f||(h?b.some((Y,ae)=>en(Y,x[ae])):en(b,x)))&&(p&&p(),Re(t,a,3,[b,x===zn?void 0:h&&x[0]===zn?[]:x,_]),x=b)}else z.run()};I.allowRecurse=!!t;let B;r==="sync"?B=I:r==="post"?B=()=>Se(I,a&&a.suspense):(I.pre=!0,a&&(I.id=a.uid),B=()=>ko(I));const z=new po(c,B);t?n?I():x=z.run():r==="post"?Se(z.run.bind(z),a&&a.suspense):z.run();const V=()=>{z.stop(),a&&a.scope&&to(a.scope.effects,z)};return O&&O.push(V),V}function ta(e,t,n){const o=this.proxy,r=be(e)?e.includes(".")?Zr(o,e):()=>o[e]:e.bind(o,o);let s;Q(t)?s=t:(s=t.handler,n=t);const i=xe;Wt(this);const l=To(r,s.bind(o),n);return i?Wt(i):Et(),l}function Zr(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 Ct(e,t){if(!de(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),me(e))Ct(e.value,t);else if(R(e))for(let n=0;n<e.length;n++)Ct(e[n],t);else if(ar(e)||zt(e))e.forEach(n=>{Ct(n,t)});else if(fr(e))for(const n in e)Ct(e[n],t);return e}function dt(e,t){const n=ke;if(n===null)return e;const o=qn(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,l,a,c=ee]=t[s];i&&(Q(i)&&(i={mounted:i,updated:i}),i.deep&&Ct(l),r.push({dir:i,instance:o,value:l,oldValue:void 0,arg:a,modifiers:c}))}return e}function Tt(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&&(Bt(),Re(a,n,8,[e.el,l,e,t]),Dt())}}function na(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Qe(()=>{e.isMounted=!0}),es(()=>{e.isUnmounting=!0}),e}const Fe=[Function,Array],Yr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Fe,onEnter:Fe,onAfterEnter:Fe,onEnterCancelled:Fe,onBeforeLeave:Fe,onLeave:Fe,onAfterLeave:Fe,onLeaveCancelled:Fe,onBeforeAppear:Fe,onAppear:Fe,onAfterAppear:Fe,onAppearCancelled:Fe},oa={name:"BaseTransition",props:Yr,setup(e,{slots:t}){const n=Cs(),o=na();let r;return()=>{const s=t.default&&Qr(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const x of s)if(x.type!==He){i=x;break}}const l=ie(e),{mode:a}=l;if(o.isLeaving)return Oo(i);const c=Jr(i);if(!c)return Oo(i);const f=Po(c,l,o,n);Io(c,f);const h=n.subTree,p=h&&Jr(h);let _=!1;const{getTransitionKey:O}=c.type;if(O){const x=O();r===void 0?r=x:x!==r&&(r=x,_=!0)}if(p&&p.type!==He&&(!It(c,p)||_)){const x=Po(p,l,o,n);if(Io(p,x),a==="out-in")return o.isLeaving=!0,x.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},Oo(i);a==="in-out"&&c.type!==He&&(x.delayLeave=(I,B,z)=>{const V=Xr(o,p);V[String(p.key)]=p,I._leaveCb=()=>{B(),I._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=z})}return i}}};function Xr(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 Po(e,t,n,o){const{appear:r,mode:s,persisted:i=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:h,onLeave:p,onAfterLeave:_,onLeaveCancelled:O,onBeforeAppear:x,onAppear:I,onAfterAppear:B,onAppearCancelled:z}=t,V=String(e.key),b=Xr(n,e),Y=(m,A)=>{m&&Re(m,o,9,A)},ae=(m,A)=>{const F=A[1];Y(m,A),R(m)?m.every(oe=>oe.length<=1)&&F():m.length<=1&&F()},U={mode:s,persisted:i,beforeEnter(m){let A=l;if(!n.isMounted)if(r)A=x||l;else return;m._leaveCb&&m._leaveCb(!0);const F=b[V];F&&It(e,F)&&F.el._leaveCb&&F.el._leaveCb(),Y(A,[m])},enter(m){let A=a,F=c,oe=f;if(!n.isMounted)if(r)A=I||a,F=B||c,oe=z||f;else return;let $=!1;const se=m._enterCb=C=>{$||($=!0,C?Y(oe,[m]):Y(F,[m]),U.delayedLeave&&U.delayedLeave(),m._enterCb=void 0)};A?ae(A,[m,se]):se()},leave(m,A){const F=String(e.key);if(m._enterCb&&m._enterCb(!0),n.isUnmounting)return A();Y(h,[m]);let oe=!1;const $=m._leaveCb=se=>{oe||(oe=!0,A(),se?Y(O,[m]):Y(_,[m]),m._leaveCb=void 0,b[F]===e&&delete b[F])};b[F]=e,p?ae(p,[m,$]):$()},clone(m){return Po(m,t,n,o)}};return U}function Oo(e){if(Bn(e))return e=pt(e),e.children=null,e}function Jr(e){return Bn(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 Qr(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===we?(i.patchFlag&128&&r++,o=o.concat(Qr(i.children,t,l))):(t||i.type!==He)&&o.push(l!=null?pt(i,{key:l}):i)}if(r>1)for(let s=0;s<o.length;s++)o[s].patchFlag=-2;return o}function Ce(e,t){return Q(e)?(()=>ge({name:e.name},t,{setup:e}))():e}const ln=e=>!!e.type.__asyncLoader,Bn=e=>e.type.__isKeepAlive;function ra(e,t){Gr(e,"a",t)}function sa(e,t){Gr(e,"da",t)}function Gr(e,t,n=xe){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Dn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Bn(r.parent.vnode)&&ia(o,t,n,r),r=r.parent}}function ia(e,t,n,o){const r=Dn(t,e,o,!0);it(()=>{to(o[t],r)},n)}function Dn(e,t,n=xe,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Bt(),Wt(n);const l=Re(t,n,e,i);return Et(),Dt(),l});return o?r.unshift(s):r.push(s),s}}const st=e=>(t,n=xe)=>(!dn||e==="sp")&&Dn(e,(...o)=>t(...o),n),la=st("bm"),Qe=st("m"),aa=st("bu"),ca=st("u"),es=st("bum"),it=st("um"),ua=st("sp"),fa=st("rtg"),da=st("rtc");function pa(e,t=xe){Dn("ec",e,t)}const Eo="components";function ha(e,t){return ns(Eo,e,!0,t)||e}const ts=Symbol.for("v-ndc");function ga(e){return be(e)?ns(Eo,e,!1)||e:e||ts}function ns(e,t,n=!0,o=!1){const r=ke||xe;if(r){const s=r.type;if(e===Eo){const l=Wa(s,!1);if(l&&(l===t||l===Ae(t)||l===kn(Ae(t))))return s}const i=os(r[e]||s[e],t)||os(r.appContext[e],t);return!i&&o?s:i}}function os(e,t){return e&&(e[t]||e[Ae(t)]||e[kn(Ae(t))])}function Nn(e,t,n,o){let r;const s=n&&n[o];if(R(e)||be(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 ma(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(R(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 Oe(e,t,n={},o,r){if(ke.isCE||ke.parent&&ln(ke.parent)&&ke.parent.isCE)return t!=="default"&&(n.name=t),W("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),S();const i=s&&rs(s(n)),l=Te(we,{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 rs(e){return e.some(t=>Wn(t)?!(t.type===He||t.type===we&&!rs(t.children)):!0)?e:null}const $o=e=>e?Ps(e)?qn(e)||e.proxy:$o(e.parent):null,an=ge(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=>$o(e.parent),$root:e=>$o(e.root),$emit:e=>e.emit,$options:e=>Ao(e),$forceUpdate:e=>e.f||(e.f=()=>ko(e.update)),$nextTick:e=>e.n||(e.n=rt.bind(e.proxy)),$watch:e=>ta.bind(e)}),So=(e,t)=>e!==ee&&!e.__isScriptSetup&&re(e,t),ba={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 _=i[t];if(_!==void 0)switch(_){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!==ee&&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!==ee&&re(n,t))return i[t]=4,n[t];Mo&&(i[t]=0)}}const f=an[t];let h,p;if(f)return t==="$attrs"&&$e(e,"get",t),f(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==ee&&re(n,t))return i[t]=4,n[t];if(p=a.config.globalProperties,re(p,t))return p[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return So(r,t)?(r[t]=n,!0):o!==ee&&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!==ee&&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 ss(e){return R(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Mo=!0;function _a(e){const t=Ao(e),n=e.proxy,o=e.ctx;Mo=!1,t.beforeCreate&&is(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:l,provide:a,inject:c,created:f,beforeMount:h,mounted:p,beforeUpdate:_,updated:O,activated:x,deactivated:I,beforeDestroy:B,beforeUnmount:z,destroyed:V,unmounted:b,render:Y,renderTracked:ae,renderTriggered:U,errorCaptured:m,serverPrefetch:A,expose:F,inheritAttrs:oe,components:$,directives:se,filters:C}=t;if(c&&va(c,o,null),i)for(const G in i){const ce=i[G];Q(ce)&&(o[G]=ce.bind(n))}if(r){const G=r.call(n,n);de(G)&&(e.data=nn(G))}if(Mo=!0,s)for(const G in s){const ce=s[G],Ze=Q(ce)?ce.bind(n,n):Q(ce.get)?ce.get.bind(n,n):Ke,yt=!Q(ce)&&Q(ce.set)?ce.set.bind(n):Ke,M=pe({get:Ze,set:yt});Object.defineProperty(o,G,{enumerable:!0,configurable:!0,get:()=>M.value,set:X=>M.value=X})}if(l)for(const G in l)ls(l[G],o,n,G);if(a){const G=Q(a)?a.call(n):a;Reflect.ownKeys(G).forEach(ce=>{Hn(ce,G[ce])})}f&&is(f,e,"c");function H(G,ce){R(ce)?ce.forEach(Ze=>G(Ze.bind(n))):ce&&G(ce.bind(n))}if(H(la,h),H(Qe,p),H(aa,_),H(ca,O),H(ra,x),H(sa,I),H(pa,m),H(da,ae),H(fa,U),H(es,z),H(it,b),H(ua,A),R(F))if(F.length){const G=e.exposed||(e.exposed={});F.forEach(ce=>{Object.defineProperty(G,ce,{get:()=>n[ce],set:Ze=>n[ce]=Ze})})}else e.exposed||(e.exposed={});Y&&e.render===Ke&&(e.render=Y),oe!=null&&(e.inheritAttrs=oe),$&&(e.components=$),se&&(e.directives=se)}function va(e,t,n=Ke){R(e)&&(e=jo(e));for(const o in e){const r=e[o];let s;de(r)?"default"in r?s=Pt(r.from||o,r.default,!0):s=Pt(r.from||o):s=Pt(r),me(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[o]=s}}function is(e,t,n){Re(R(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function ls(e,t,n,o){const r=o.includes(".")?Zr(n,o):()=>n[o];if(be(e)){const s=t[e];Q(s)&&he(r,s)}else if(Q(e))he(r,e.bind(n));else if(de(e))if(R(e))e.forEach(s=>ls(s,t,n,o));else{const s=Q(e.handler)?e.handler.bind(n):t[e.handler];Q(s)&&he(r,s,e)}}function Ao(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=ya[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const ya={data:as,props:cs,emits:cs,methods:cn,computed:cn,beforeCreate:Ee,created:Ee,beforeMount:Ee,mounted:Ee,beforeUpdate:Ee,updated:Ee,beforeDestroy:Ee,beforeUnmount:Ee,destroyed:Ee,unmounted:Ee,activated:Ee,deactivated:Ee,errorCaptured:Ee,serverPrefetch:Ee,components:cn,directives:cn,watch:xa,provide:as,inject:wa};function as(e,t){return t?e?function(){return ge(Q(e)?e.call(this,this):e,Q(t)?t.call(this,this):t)}:t:e}function wa(e,t){return cn(jo(e),jo(t))}function jo(e){if(R(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ee(e,t){return e?[...new Set([].concat(e,t))]:t}function cn(e,t){return e?ge(Object.create(null),e,t):t}function cs(e,t){return e?R(e)&&R(t)?[...new Set([...e,...t])]:ge(Object.create(null),ss(e),ss(t??{})):t}function xa(e,t){if(!e)return t;if(!t)return e;const n=ge(Object.create(null),e);for(const o in t)n[o]=Ee(e[o],t[o]);return n}function us(){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 ka=0;function Ca(e,t){return function(o,r=null){Q(o)||(o=ge({},o)),r!=null&&!de(r)&&(r=null);const s=us(),i=new Set;let l=!1;const a=s.app={_uid:ka++,_component:o,_props:r,_container:null,_context:s,_instance:null,version:Za,get config(){return s.config},set config(c){},use(c,...f){return i.has(c)||(c&&Q(c.install)?(i.add(c),c.install(a,...f)):Q(c)&&(i.add(c),c(a,...f))),a},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),a},component(c,f){return f?(s.components[c]=f,a):s.components[c]},directive(c,f){return f?(s.directives[c]=f,a):s.directives[c]},mount(c,f,h){if(!l){const p=W(o,r);return p.appContext=s,f&&t?t(p,c):e(p,c,h),l=!0,a._container=c,c.__vue_app__=a,qn(p.component)||p.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,f){return s.provides[c]=f,a},runWithContext(c){Fn=a;try{return c()}finally{Fn=null}}};return a}}let Fn=null;function Hn(e,t){if(xe){let n=xe.provides;const o=xe.parent&&xe.parent.provides;o===n&&(n=xe.provides=Object.create(o)),n[e]=t}}function Pt(e,t,n=!1){const o=xe||ke;if(o||Fn){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Fn._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&Q(t)?t.call(o&&o.proxy):t}}function Ta(e,t,n,o=!1){const r={},s={};Tn(s,Kn,1),e.propsDefaults=Object.create(null),fs(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 f=e.vnode.dynamicProps;for(let h=0;h<f.length;h++){let p=f[h];if(jn(e.emitsOptions,p))continue;const _=t[p];if(a)if(re(s,p))_!==s[p]&&(s[p]=_,c=!0);else{const O=Ae(p);r[O]=Lo(a,l,O,_,e,!1)}else _!==s[p]&&(s[p]=_,c=!0)}}}else{fs(e,t,r,s)&&(c=!0);let f;for(const h in l)(!t||!re(t,h)&&((f=De(h))===h||!re(t,f)))&&(a?n&&(n[h]!==void 0||n[f]!==void 0)&&(r[h]=Lo(a,l,h,void 0,e,!0)):delete r[h]);if(s!==l)for(const h in s)(!t||!re(t,h))&&(delete s[h],c=!0)}c&&nt(e,"set","$attrs")}function fs(e,t,n,o){const[r,s]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(wn(a))continue;const c=t[a];let f;r&&re(r,f=Ae(a))?!s||!s.includes(f)?n[f]=c:(l||(l={}))[f]=c:jn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,i=!0)}if(s){const a=ie(n),c=l||ee;for(let f=0;f<s.length;f++){const h=s[f];n[h]=Lo(r,a,h,c[h],e,!re(c,h))}}return i}function Lo(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]:(Wt(r),o=c[n]=a.call(null,t),Et())}else o=a}i[0]&&(s&&!l?o=!1:i[1]&&(o===""||o===De(n))&&(o=!0))}return o}function ds(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 f=h=>{a=!0;const[p,_]=ds(h,t,!0);ge(i,p),_&&l.push(..._)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!s&&!a)return de(e)&&o.set(e,Be),Be;if(R(s))for(let f=0;f<s.length;f++){const h=Ae(s[f]);ps(h)&&(i[h]=ee)}else if(s)for(const f in s){const h=Ae(f);if(ps(h)){const p=s[f],_=i[h]=R(p)||Q(p)?{type:p}:ge({},p);if(_){const O=ms(Boolean,_.type),x=ms(String,_.type);_[0]=O>-1,_[1]=x<0||O<x,(O>-1||re(_,"default"))&&l.push(h)}}}const c=[i,l];return de(e)&&o.set(e,c),c}function ps(e){return e[0]!=="$"}function hs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function gs(e,t){return hs(e)===hs(t)}function ms(e,t){return R(t)?t.findIndex(n=>gs(n,e)):Q(t)&&gs(t,e)?0:-1}const bs=e=>e[0]==="_"||e==="$stable",zo=e=>R(e)?e.map(Ge):[Ge(e)],Oa=(e,t,n)=>{if(t._n)return t;const o=le((...r)=>zo(t(...r)),n);return o._c=!1,o},_s=(e,t,n)=>{const o=e._ctx;for(const r in e){if(bs(r))continue;const s=e[r];if(Q(s))t[r]=Oa(r,s,o);else if(s!=null){const i=zo(s);t[r]=()=>i}}},vs=(e,t)=>{const n=zo(t);e.slots.default=()=>n},Ia=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ie(t),Tn(t,"_",n)):_s(t,e.slots={})}else e.slots={},t&&vs(e,t);Tn(e.slots,Kn,1)},Ea=(e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,i=ee;if(o.shapeFlag&32){const l=t._;l?n&&l===1?s=!1:(ge(r,t),!n&&l===1&&delete r._):(s=!t.$stable,_s(t,r)),i=t}else t&&(vs(e,t),i={default:1});if(s)for(const l in r)!bs(l)&&!(l in i)&&delete r[l]};function Bo(e,t,n,o,r=!1){if(R(e)){e.forEach((p,_)=>Bo(p,t&&(R(t)?t[_]:t),n,o,r));return}if(ln(o)&&!r)return;const s=o.shapeFlag&4?qn(o.component)||o.component.proxy:o.el,i=r?null:s,{i:l,r:a}=e,c=t&&t.r,f=l.refs===ee?l.refs={}:l.refs,h=l.setupState;if(c!=null&&c!==a&&(be(c)?(f[c]=null,re(h,c)&&(h[c]=null)):me(c)&&(c.value=null)),Q(a))ft(a,l,12,[i,f]);else{const p=be(a),_=me(a);if(p||_){const O=()=>{if(e.f){const x=p?re(h,a)?h[a]:f[a]:a.value;r?R(x)&&to(x,s):R(x)?x.includes(s)||x.push(s):p?(f[a]=[s],re(h,a)&&(h[a]=f[a])):(a.value=[s],e.k&&(f[e.k]=a.value))}else p?(f[a]=i,re(h,a)&&(h[a]=i)):_&&(a.value=i,e.k&&(f[e.k]=i))};i?(O.id=-1,Se(O,n)):O()}}}const Se=Gl;function $a(e){return Sa(e)}function Sa(e,t){const n=lo();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:l,createComment:a,setText:c,setElementText:f,parentNode:h,nextSibling:p,setScopeId:_=Ke,insertStaticContent:O}=e,x=(u,d,g,w=null,y=null,T=null,E=!1,k=null,P=!!d.dynamicChildren)=>{if(u===d)return;u&&!It(u,d)&&(w=Qt(u),X(u,y,T,!0),u=null),d.patchFlag===-2&&(P=!1,d.dynamicChildren=null);const{type:v,ref:D,shapeFlag:j}=d;switch(v){case Vn:I(u,d,g,w);break;case He:B(u,d,g,w);break;case Do:u==null&&z(d,g,w,E);break;case we:$(u,d,g,w,y,T,E,k,P);break;default:j&1?Y(u,d,g,w,y,T,E,k,P):j&6?se(u,d,g,w,y,T,E,k,P):(j&64||j&128)&&v.process(u,d,g,w,y,T,E,k,P,We)}D!=null&&y&&Bo(D,u&&u.ref,T,d||u,!d)},I=(u,d,g,w)=>{if(u==null)o(d.el=l(d.children),g,w);else{const y=d.el=u.el;d.children!==u.children&&c(y,d.children)}},B=(u,d,g,w)=>{u==null?o(d.el=a(d.children||""),g,w):d.el=u.el},z=(u,d,g,w)=>{[u.el,u.anchor]=O(u.children,d,g,w,u.el,u.anchor)},V=({el:u,anchor:d},g,w)=>{let y;for(;u&&u!==d;)y=p(u),o(u,g,w),u=y;o(d,g,w)},b=({el:u,anchor:d})=>{let g;for(;u&&u!==d;)g=p(u),r(u),u=g;r(d)},Y=(u,d,g,w,y,T,E,k,P)=>{E=E||d.type==="svg",u==null?ae(d,g,w,y,T,E,k,P):A(u,d,y,T,E,k,P)},ae=(u,d,g,w,y,T,E,k)=>{let P,v;const{type:D,props:j,shapeFlag:N,transition:J,dirs:ne}=u;if(P=u.el=i(u.type,T,j&&j.is,j),N&8?f(P,u.children):N&16&&m(u.children,P,null,w,y,T&&D!=="foreignObject",E,k),ne&&Tt(u,null,w,"created"),U(P,u,u.scopeId,E,w),j){for(const ue in j)ue!=="value"&&!wn(ue)&&s(P,ue,null,j[ue],T,u.children,w,y,Ye);"value"in j&&s(P,"value",null,j.value),(v=j.onVnodeBeforeMount)&&et(v,w,u)}ne&&Tt(u,null,w,"beforeMount");const fe=(!y||y&&!y.pendingBranch)&&J&&!J.persisted;fe&&J.beforeEnter(P),o(P,d,g),((v=j&&j.onVnodeMounted)||fe||ne)&&Se(()=>{v&&et(v,w,u),fe&&J.enter(P),ne&&Tt(u,null,w,"mounted")},y)},U=(u,d,g,w,y)=>{if(g&&_(u,g),w)for(let T=0;T<w.length;T++)_(u,w[T]);if(y){let T=y.subTree;if(d===T){const E=y.vnode;U(u,E,E.scopeId,E.slotScopeIds,y.parent)}}},m=(u,d,g,w,y,T,E,k,P=0)=>{for(let v=P;v<u.length;v++){const D=u[v]=k?ht(u[v]):Ge(u[v]);x(null,D,d,g,w,y,T,E,k)}},A=(u,d,g,w,y,T,E)=>{const k=d.el=u.el;let{patchFlag:P,dynamicChildren:v,dirs:D}=d;P|=u.patchFlag&16;const j=u.props||ee,N=d.props||ee;let J;g&&Ot(g,!1),(J=N.onVnodeBeforeUpdate)&&et(J,g,d,u),D&&Tt(d,u,g,"beforeUpdate"),g&&Ot(g,!0);const ne=y&&d.type!=="foreignObject";if(v?F(u.dynamicChildren,v,k,g,w,ne,T):E||ce(u,d,k,null,g,w,ne,T,!1),P>0){if(P&16)oe(k,d,j,N,g,w,y);else if(P&2&&j.class!==N.class&&s(k,"class",null,N.class,y),P&4&&s(k,"style",j.style,N.style,y),P&8){const fe=d.dynamicProps;for(let ue=0;ue<fe.length;ue++){const _e=fe[ue],Xe=j[_e],Gt=N[_e];(Gt!==Xe||_e==="value")&&s(k,_e,Xe,Gt,y,u.children,g,w,Ye)}}P&1&&u.children!==d.children&&f(k,d.children)}else!E&&v==null&&oe(k,d,j,N,g,w,y);((J=N.onVnodeUpdated)||D)&&Se(()=>{J&&et(J,g,d,u),D&&Tt(d,u,g,"updated")},w)},F=(u,d,g,w,y,T,E)=>{for(let k=0;k<d.length;k++){const P=u[k],v=d[k],D=P.el&&(P.type===we||!It(P,v)||P.shapeFlag&70)?h(P.el):g;x(P,v,D,null,w,y,T,E,!0)}},oe=(u,d,g,w,y,T,E)=>{if(g!==w){if(g!==ee)for(const k in g)!wn(k)&&!(k in w)&&s(u,k,g[k],null,E,d.children,y,T,Ye);for(const k in w){if(wn(k))continue;const P=w[k],v=g[k];P!==v&&k!=="value"&&s(u,k,v,P,E,d.children,y,T,Ye)}"value"in w&&s(u,"value",g.value,w.value)}},$=(u,d,g,w,y,T,E,k,P)=>{const v=d.el=u?u.el:l(""),D=d.anchor=u?u.anchor:l("");let{patchFlag:j,dynamicChildren:N,slotScopeIds:J}=d;J&&(k=k?k.concat(J):J),u==null?(o(v,g,w),o(D,g,w),m(d.children,g,D,y,T,E,k,P)):j>0&&j&64&&N&&u.dynamicChildren?(F(u.dynamicChildren,N,g,y,T,E,k),(d.key!=null||y&&d===y.subTree)&&ys(u,d,!0)):ce(u,d,g,D,y,T,E,k,P)},se=(u,d,g,w,y,T,E,k,P)=>{d.slotScopeIds=k,u==null?d.shapeFlag&512?y.ctx.activate(d,g,w,E,P):C(d,g,w,y,T,E,P):Z(u,d,P)},C=(u,d,g,w,y,T,E)=>{const k=u.component=Na(u,w,y);if(Bn(u)&&(k.ctx.renderer=We),Ra(k),k.asyncDep){if(y&&y.registerDep(k,H),!u.el){const P=k.subTree=W(He);B(null,P,d,g)}return}H(k,u,d,g,y,T,E)},Z=(u,d,g)=>{const w=d.component=u.component;if(Xl(u,d,g))if(w.asyncDep&&!w.asyncResolved){G(w,d,g);return}else w.next=d,Wl(w.update),w.update();else d.el=u.el,w.vnode=d},H=(u,d,g,w,y,T,E)=>{const k=()=>{if(u.isMounted){let{next:D,bu:j,u:N,parent:J,vnode:ne}=u,fe=D,ue;Ot(u,!1),D?(D.el=ne.el,G(u,D,E)):D=ne,j&&Cn(j),(ue=D.props&&D.props.onVnodeBeforeUpdate)&&et(ue,J,D,ne),Ot(u,!0);const _e=Co(u),Xe=u.subTree;u.subTree=_e,x(Xe,_e,h(Xe.el),Qt(Xe),u,y,T),D.el=_e.el,fe===null&&Jl(u,_e.el),N&&Se(N,y),(ue=D.props&&D.props.onVnodeUpdated)&&Se(()=>et(ue,J,D,ne),y)}else{let D;const{el:j,props:N}=d,{bm:J,m:ne,parent:fe}=u,ue=ln(d);if(Ot(u,!1),J&&Cn(J),!ue&&(D=N&&N.onVnodeBeforeMount)&&et(D,fe,d),Ot(u,!0),j&&bn){const _e=()=>{u.subTree=Co(u),bn(j,u.subTree,u,y,null)};ue?d.type.__asyncLoader().then(()=>!u.isUnmounted&&_e()):_e()}else{const _e=u.subTree=Co(u);x(null,_e,g,w,u,y,T),d.el=_e.el}if(ne&&Se(ne,y),!ue&&(D=N&&N.onVnodeMounted)){const _e=d;Se(()=>et(D,fe,_e),y)}(d.shapeFlag&256||fe&&ln(fe.vnode)&&fe.vnode.shapeFlag&256)&&u.a&&Se(u.a,y),u.isMounted=!0,d=g=w=null}},P=u.effect=new po(k,()=>ko(v),u.scope),v=u.update=()=>P.run();v.id=u.uid,Ot(u,!0),v()},G=(u,d,g)=>{d.component=u;const w=u.vnode.props;u.vnode=d,u.next=null,Pa(u,d.props,w,g),Ea(u,d.children,g),Bt(),Hr(),Dt()},ce=(u,d,g,w,y,T,E,k,P=!1)=>{const v=u&&u.children,D=u?u.shapeFlag:0,j=d.children,{patchFlag:N,shapeFlag:J}=d;if(N>0){if(N&128){yt(v,j,g,w,y,T,E,k,P);return}else if(N&256){Ze(v,j,g,w,y,T,E,k,P);return}}J&8?(D&16&&Ye(v,y,T),j!==v&&f(g,j)):D&16?J&16?yt(v,j,g,w,y,T,E,k,P):Ye(v,y,T,!0):(D&8&&f(g,""),J&16&&m(j,g,w,y,T,E,k,P))},Ze=(u,d,g,w,y,T,E,k,P)=>{u=u||Be,d=d||Be;const v=u.length,D=d.length,j=Math.min(v,D);let N;for(N=0;N<j;N++){const J=d[N]=P?ht(d[N]):Ge(d[N]);x(u[N],J,g,null,y,T,E,k,P)}v>D?Ye(u,y,T,!0,!1,j):m(d,g,w,y,T,E,k,P,j)},yt=(u,d,g,w,y,T,E,k,P)=>{let v=0;const D=d.length;let j=u.length-1,N=D-1;for(;v<=j&&v<=N;){const J=u[v],ne=d[v]=P?ht(d[v]):Ge(d[v]);if(It(J,ne))x(J,ne,g,null,y,T,E,k,P);else break;v++}for(;v<=j&&v<=N;){const J=u[j],ne=d[N]=P?ht(d[N]):Ge(d[N]);if(It(J,ne))x(J,ne,g,null,y,T,E,k,P);else break;j--,N--}if(v>j){if(v<=N){const J=N+1,ne=J<D?d[J].el:w;for(;v<=N;)x(null,d[v]=P?ht(d[v]):Ge(d[v]),g,ne,y,T,E,k,P),v++}}else if(v>N)for(;v<=j;)X(u[v],y,T,!0),v++;else{const J=v,ne=v,fe=new Map;for(v=ne;v<=N;v++){const ze=d[v]=P?ht(d[v]):Ge(d[v]);ze.key!=null&&fe.set(ze.key,v)}let ue,_e=0;const Xe=N-ne+1;let Gt=!1,qi=0;const _n=new Array(Xe);for(v=0;v<Xe;v++)_n[v]=0;for(v=J;v<=j;v++){const ze=u[v];if(_e>=Xe){X(ze,y,T,!0);continue}let tt;if(ze.key!=null)tt=fe.get(ze.key);else for(ue=ne;ue<=N;ue++)if(_n[ue-ne]===0&&It(ze,d[ue])){tt=ue;break}tt===void 0?X(ze,y,T,!0):(_n[tt-ne]=v+1,tt>=qi?qi=tt:Gt=!0,x(ze,d[tt],g,null,y,T,E,k,P),_e++)}const Zi=Gt?Ma(_n):Be;for(ue=Zi.length-1,v=Xe-1;v>=0;v--){const ze=ne+v,tt=d[ze],Yi=ze+1<D?d[ze+1].el:w;_n[v]===0?x(null,tt,g,Yi,y,T,E,k,P):Gt&&(ue<0||v!==Zi[ue]?M(tt,g,Yi,2):ue--)}}},M=(u,d,g,w,y=null)=>{const{el:T,type:E,transition:k,children:P,shapeFlag:v}=u;if(v&6){M(u.component.subTree,d,g,w);return}if(v&128){u.suspense.move(d,g,w);return}if(v&64){E.move(u,d,g,We);return}if(E===we){o(T,d,g);for(let j=0;j<P.length;j++)M(P[j],d,g,w);o(u.anchor,d,g);return}if(E===Do){V(u,d,g);return}if(w!==2&&v&1&&k)if(w===0)k.beforeEnter(T),o(T,d,g),Se(()=>k.enter(T),y);else{const{leave:j,delayLeave:N,afterLeave:J}=k,ne=()=>o(T,d,g),fe=()=>{j(T,()=>{ne(),J&&J()})};N?N(T,ne,fe):fe()}else o(T,d,g)},X=(u,d,g,w=!1,y=!1)=>{const{type:T,props:E,ref:k,children:P,dynamicChildren:v,shapeFlag:D,patchFlag:j,dirs:N}=u;if(k!=null&&Bo(k,null,g,u,!0),D&256){d.ctx.deactivate(u);return}const J=D&1&&N,ne=!ln(u);let fe;if(ne&&(fe=E&&E.onVnodeBeforeUnmount)&&et(fe,d,u),D&6)Jt(u.component,g,w);else{if(D&128){u.suspense.unmount(g,w);return}J&&Tt(u,null,d,"beforeUnmount"),D&64?u.type.remove(u,d,g,y,We,w):v&&(T!==we||j>0&&j&64)?Ye(v,d,g,!1,!0):(T===we&&j&384||!y&&D&16)&&Ye(P,d,g),w&&Ie(u)}(ne&&(fe=E&&E.onVnodeUnmounted)||J)&&Se(()=>{fe&&et(fe,d,u),J&&Tt(u,null,d,"unmounted")},g)},Ie=u=>{const{type:d,el:g,anchor:w,transition:y}=u;if(d===we){wt(g,w);return}if(d===Do){b(u);return}const T=()=>{r(g),y&&!y.persisted&&y.afterLeave&&y.afterLeave()};if(u.shapeFlag&1&&y&&!y.persisted){const{leave:E,delayLeave:k}=y,P=()=>E(g,T);k?k(u.el,T,P):P()}else T()},wt=(u,d)=>{let g;for(;u!==d;)g=p(u),r(u),u=g;r(d)},Jt=(u,d,g)=>{const{bum:w,scope:y,update:T,subTree:E,um:k}=u;w&&Cn(w),y.stop(),T&&(T.active=!1,X(E,u,d,g)),k&&Se(k,d),Se(()=>{u.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},Ye=(u,d,g,w=!1,y=!1,T=0)=>{for(let E=T;E<u.length;E++)X(u[E],d,g,w,y)},Qt=u=>u.shapeFlag&6?Qt(u.component.subTree):u.shapeFlag&128?u.suspense.next():p(u.anchor||u.el),Gn=(u,d,g)=>{u==null?d._vnode&&X(d._vnode,null,null,!0):x(d._vnode||null,u,d,null,null,null,g),Hr(),Vr(),d._vnode=u},We={p:x,um:X,m:M,r:Ie,mt:C,mc:m,pc:ce,pbc:F,n:Qt,o:e};let mn,bn;return t&&([mn,bn]=t(We)),{render:Gn,hydrate:mn,createApp:Ca(Gn,mn)}}function Ot({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ys(e,t,n=!1){const o=e.children,r=t.children;if(R(o)&&R(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]=ht(r[s]),l.el=i.el),n||ys(i,l)),l.type===Vn&&(l.el=i.el)}}function Ma(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 Aa=e=>e.__isTeleport,we=Symbol.for("v-fgt"),Vn=Symbol.for("v-txt"),He=Symbol.for("v-cmt"),Do=Symbol.for("v-stc"),un=[];let qe=null;function S(e=!1){un.push(qe=e?null:[])}function ja(){un.pop(),qe=un[un.length-1]||null}let fn=1;function ws(e){fn+=e}function xs(e){return e.dynamicChildren=fn>0?qe||Be:null,ja(),fn>0&&qe&&qe.push(e),e}function K(e,t,n,o,r,s){return xs(q(e,t,n,o,r,s,!0))}function Te(e,t,n,o,r){return xs(W(e,t,n,o,r,!0))}function Wn(e){return e?e.__v_isVNode===!0:!1}function It(e,t){return e.type===t.type&&e.key===t.key}const Kn="__vInternal",ks=({key:e})=>e??null,Un=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||me(e)||Q(e)?{i:ke,r:e,k:t,f:!!n}:e:null);function q(e,t=null,n=null,o=0,r=null,s=e===we?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ks(t),ref:t&&Un(t),scopeId:Ur,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:ke};return l?(No(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=be(n)?8:16),fn>0&&!i&&qe&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&qe.push(a),a}const W=La;function La(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===ts)&&(e=He),Wn(e)){const l=pt(e,t,!0);return n&&No(l,n),fn>0&&!s&&qe&&(l.shapeFlag&6?qe[qe.indexOf(e)]=l:qe.push(l)),l.patchFlag|=-2,l}if(Ka(e)&&(e=e.__vccOpts),t){t=za(t);let{class:l,style:a}=t;l&&!be(l)&&(t.class=ve(l)),de(a)&&(Ar(a)&&!R(a)&&(a=ge({},a)),t.style=Ne(a))}const i=be(e)?1:Ql(e)?128:Aa(e)?64:de(e)?4:Q(e)?2:0;return q(e,t,n,o,r,i,s,!0)}function za(e){return e?Ar(e)||Kn in e?ge({},e):e:null}function pt(e,t,n=!1){const{props:o,ref:r,patchFlag:s,children:i}=e,l=t?Ro(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&ks(l),ref:t&&t.ref?n&&r?R(r)?r.concat(Un(t)):[r,Un(t)]:Un(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!==we?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pt(e.ssContent),ssFallback:e.ssFallback&&pt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ht(e=" ",t=0){return W(Vn,null,e,t)}function Le(e="",t=!1){return t?(S(),Te(He,null,e)):W(He,null,e)}function Ge(e){return e==null||typeof e=="boolean"?W(He):R(e)?W(we,null,e.slice()):typeof e=="object"?ht(e):W(Vn,null,String(e))}function ht(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pt(e)}function No(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(R(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&&!(Kn in t)?t._ctx=ke:r===3&&ke&&(ke.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Q(t)?(t={default:t,_ctx:ke},n=32):(t=String(t),o&64?(n=16,t=[Ht(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ro(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=ve([t.class,o.class]));else if(r==="style")t.style=Ne([t.style,o.style]);else if(vn(r)){const s=t[r],i=o[r];i&&s!==i&&!(R(s)&&s.includes(i))&&(t[r]=s?[].concat(s,i):i)}else r!==""&&(t[r]=o[r])}return t}function et(e,t,n,o=null){Re(e,t,7,[n,o])}const Ba=us();let Da=0;function Na(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Ba,s={uid:Da++,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:ds(o,r),emitsOptions:Kr(o,r),emit:null,emitted:null,propsDefaults:ee,inheritAttrs:o.inheritAttrs,ctx:ee,data:ee,props:ee,attrs:ee,slots:ee,refs:ee,setupState:ee,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 xe=null;const Cs=()=>xe||ke;let Fo,Vt,Ts="__VUE_INSTANCE_SETTERS__";(Vt=lo()[Ts])||(Vt=lo()[Ts]=[]),Vt.push(e=>xe=e),Fo=e=>{Vt.length>1?Vt.forEach(t=>t(e)):Vt[0](e)};const Wt=e=>{Fo(e),e.scope.on()},Et=()=>{xe&&xe.scope.off(),Fo(null)};function Ps(e){return e.vnode.shapeFlag&4}let dn=!1;function Ra(e,t=!1){dn=t;const{props:n,children:o}=e.vnode,r=Ps(e);Ta(e,n,r,t),Ia(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=jr(new Proxy(e.ctx,ba));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?Va(e):null;Wt(e),Bt();const s=ft(o,e,0,[e.props,r]);if(Dt(),Et(),cr(s)){if(s.then(Et,Et),t)return s.then(i=>{Os(e,i,t)}).catch(i=>{An(i,e,0)});e.asyncDep=s}else Os(e,s,t)}else Es(e,t)}function Os(e,t,n){Q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:de(t)&&(e.setupState=Nr(t)),Es(e,n)}let Is;function Es(e,t,n){const o=e.type;if(!e.render){if(!t&&Is&&!o.render){const r=o.template||Ao(e).template;if(r){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=ge(ge({isCustomElement:s,delimiters:l},i),a);o.render=Is(r,c)}}e.render=o.render||Ke}Wt(e),Bt(),_a(e),Dt(),Et()}function Ha(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return $e(e,"get","$attrs"),t[n]}}))}function Va(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Ha(e)},slots:e.slots,emit:e.emit,expose:t}}function qn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Nr(jr(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 Wa(e,t=!0){return Q(e)?e.displayName||e.name:e.name||t&&e.__name}function Ka(e){return Q(e)&&"__vccOpts"in e}const pe=(e,t)=>Fl(e,t,dn);function $s(e,t,n){const o=arguments.length;return o===2?de(t)&&!R(t)?Wn(t)?W(e,null,[t]):W(e,t):W(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Wn(n)&&(n=[n]),W(e,t,n))}const Ua=Symbol.for("v-scx"),qa=()=>Pt(Ua),Za="3.3.2",Ya="http://www.w3.org/2000/svg",$t=typeof document<"u"?document:null,Ss=$t&&$t.createElement("template"),Xa={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?$t.createElementNS(Ya,e):$t.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>$t.createTextNode(e),createComment:e=>$t.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>$t.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{Ss.innerHTML=o?`<svg>${e}</svg>`:e;const l=Ss.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 Ja(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 Qa(e,t,n){const o=e.style,r=be(n);if(n&&!r){if(t&&!be(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 Ms=/\s*!important$/;function Ho(e,t,n){if(R(n))n.forEach(o=>Ho(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Ga(e,t);Ms.test(n)?e.setProperty(De(o),n.replace(Ms,""),"important"):e[o]=n}}const As=["Webkit","Moz","ms"],Vo={};function Ga(e,t){const n=Vo[t];if(n)return n;let o=Ae(t);if(o!=="filter"&&o in e)return Vo[t]=o;o=kn(o);for(let r=0;r<As.length;r++){const s=As[r]+o;if(s in e)return Vo[t]=s}return t}const js="http://www.w3.org/1999/xlink";function ec(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(js,t.slice(6,t.length)):e.setAttributeNS(js,t,n);else{const s=ll(t);n==null||s&&!pr(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function tc(e,t,n,o,r,s,i){if(t==="innerHTML"||t==="textContent"){o&&i(o,r,s),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const c=l==="OPTION"?e.getAttribute("value"):e.value,f=n??"";c!==f&&(e.value=f),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=pr(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function Kt(e,t,n,o){e.addEventListener(t,n,o)}function nc(e,t,n,o){e.removeEventListener(t,n,o)}function oc(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]=rc(t);if(o){const c=s[t]=lc(o,r);Kt(e,l,c,a)}else i&&(nc(e,l,i,a),s[t]=void 0)}}const Ls=/(?:Once|Passive|Capture)$/;function rc(e){let t;if(Ls.test(e)){t={};let o;for(;o=e.match(Ls);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):De(e.slice(2)),t]}let Wo=0;const sc=Promise.resolve(),ic=()=>Wo||(sc.then(()=>Wo=0),Wo=Date.now());function lc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Re(ac(o,n.value),t,5,[o])};return n.value=e,n.attached=ic(),n}function ac(e,t){if(R(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const zs=/^on[a-z]/,cc=(e,t,n,o,r=!1,s,i,l,a)=>{t==="class"?Ja(e,o,r):t==="style"?Qa(e,n,o):vn(t)?eo(t)||oc(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):uc(e,t,o,r))?tc(e,t,o,s,i,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),ec(e,t,o,r))};function uc(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&zs.test(t)&&Q(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||zs.test(t)&&be(n)?!1:t in e}function fc(e,t){const n=Ce(e);class o extends Ko{constructor(s){super(n,s,t)}}return o.def=n,o}const dc=typeof HTMLElement<"u"?HTMLElement:class{};class Ko extends dc{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,rt(()=>{this._connected||(qs(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&&!R(s))for(const a in s){const c=s[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=io(this._props[a])),(l||(l=Object.create(null)))[Ae(a)]=!0)}this._numberProps=l,r&&this._resolveProps(o),this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=R(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(Ae))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(s){this._setProp(r,s)}})}_setAttr(t){let n=this.getAttribute(t);const o=Ae(t);this._numberProps&&this._numberProps[o]&&(n=io(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(De(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(De(t),n+""):n||this.removeAttribute(De(t))))}_update(){qs(this._createVNode(),this.shadowRoot)}_createVNode(){const t=W(this._def,ge({},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),De(s)!==s&&o(De(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 gt="transition",pn="animation",Ut=(e,{slots:t})=>$s(oa,pc(e),t);Ut.displayName="Transition";const Bs={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};Ut.props=ge({},Yr,Bs);const St=(e,t=[])=>{R(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ds=e=>e?R(e)?e.some(t=>t.length>1):e.length>1:!1;function pc(e){const t={};for(const $ in e)$ in Bs||(t[$]=e[$]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=s,appearActiveClass:c=i,appearToClass:f=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:_=`${n}-leave-to`}=e,O=hc(r),x=O&&O[0],I=O&&O[1],{onBeforeEnter:B,onEnter:z,onEnterCancelled:V,onLeave:b,onLeaveCancelled:Y,onBeforeAppear:ae=B,onAppear:U=z,onAppearCancelled:m=V}=t,A=($,se,C)=>{Mt($,se?f:l),Mt($,se?c:i),C&&C()},F=($,se)=>{$._isLeaving=!1,Mt($,h),Mt($,_),Mt($,p),se&&se()},oe=$=>(se,C)=>{const Z=$?U:z,H=()=>A(se,$,C);St(Z,[se,H]),Ns(()=>{Mt(se,$?a:s),mt(se,$?f:l),Ds(Z)||Rs(se,o,x,H)})};return ge(t,{onBeforeEnter($){St(B,[$]),mt($,s),mt($,i)},onBeforeAppear($){St(ae,[$]),mt($,a),mt($,c)},onEnter:oe(!1),onAppear:oe(!0),onLeave($,se){$._isLeaving=!0;const C=()=>F($,se);mt($,h),bc(),mt($,p),Ns(()=>{$._isLeaving&&(Mt($,h),mt($,_),Ds(b)||Rs($,o,I,C))}),St(b,[$,C])},onEnterCancelled($){A($,!1),St(V,[$])},onAppearCancelled($){A($,!0),St(m,[$])},onLeaveCancelled($){F($),St(Y,[$])}})}function hc(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 io(e)}function mt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Mt(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 Ns(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let gc=0;function Rs(e,t,n,o){const r=e._endId=++gc,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:l,propCount:a}=mc(e,t);if(!i)return o();const c=i+"end";let f=0;const h=()=>{e.removeEventListener(c,p),s()},p=_=>{_.target===e&&++f>=a&&h()};setTimeout(()=>{f<a&&h()},l+1),e.addEventListener(c,p)}function mc(e,t){const n=window.getComputedStyle(e),o=O=>(n[O]||"").split(", "),r=o(`${gt}Delay`),s=o(`${gt}Duration`),i=Fs(r,s),l=o(`${pn}Delay`),a=o(`${pn}Duration`),c=Fs(l,a);let f=null,h=0,p=0;t===gt?i>0&&(f=gt,h=i,p=s.length):t===pn?c>0&&(f=pn,h=c,p=a.length):(h=Math.max(i,c),f=h>0?i>c?gt:pn:null,p=f?f===gt?s.length:a.length:0);const _=f===gt&&/\b(transform|all)(,|$)/.test(o(`${gt}Property`).toString());return{type:f,timeout:h,propCount:p,hasTransform:_}}function Fs(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Hs(n)+Hs(e[o])))}function Hs(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function bc(){return document.body.offsetHeight}const Vs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return R(t)?n=>Cn(t,n):t};function _c(e){e.target.composing=!0}function Ws(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const vc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=Vs(r);const s=o||r.props&&r.props.type==="number";Kt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),s&&(l=so(l)),e._assign(l)}),n&&Kt(e,"change",()=>{e.value=e.value.trim()}),t||(Kt(e,"compositionstart",_c),Kt(e,"compositionend",Ws),Kt(e,"change",Ws))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},s){if(e._assign=Vs(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&so(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},yc=["ctrl","shift","alt","meta"],wc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>yc.some(n=>e[`${n}Key`]&&!t.includes(n))},At=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const s=wc[t[r]];if(s&&s(n,t))return}return e(n,...o)},xc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ks=(e,t)=>n=>{if(!("key"in n))return;const o=De(n.key);if(t.some(r=>r===o||xc[r]===o))return e(n)},kc={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=ge({patchProp:cc},Xa);let Us;function Tc(){return Us||(Us=$a(Cc))}const qs=(...e)=>{Tc().render(...e)},Pc={class:"flex gap-3 items-center children-pointer-events-auto relative z-30"},Oc={class:"ml-auto inline-block"},Ic={class:"absolute right-0 bottom-0 inline-flex flex-col items-center gap-4 children-pointer-events-auto pb-4 sm:pb-0"},Ec={class:"inline-block z-20 relative"},$c={class:"absolute left-0 bottom-0 inline-block pointer-events-auto ml-1 pb-4 sm:pb-0"},Zs=Ce({__name:"ReaderLayout",props:{idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{},spaceBottom:{},touchDevice:{type:Boolean}},setup(e){return(t,n)=>(S(),K("div",{class:ve(["fixed inset-0 bg-black visible z-[9999999999] text-stone-100 font-sans text-base",{"cursor-none":t.idle}])},[Oe(t.$slots,"default"),q("div",{class:ve(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear inset-2 sm:inset-3 bottom-5",{"opacity-100 z-10":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}]),style:Ne({paddingTop:`${t.spaceTop||0}px`,paddingBottom:`${t.spaceBottom||0}px`})},[q("div",Pc,[Oe(t.$slots,"back"),t.touchDevice?Le("",!0):Oe(t.$slots,"exit",{key:0}),Oe(t.$slots,"chapter-nav"),q("div",Oc,[Oe(t.$slots,"page-nav")])]),q("div",Ic,[Oe(t.$slots,"entry"),q("div",Ec,[Oe(t.$slots,"settings")]),Oe(t.$slots,"play")]),q("div",$c,[Oe(t.$slots,"reset-zoom")]),q("div",{class:ve(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[Oe(t.$slots,"progress")],2)],6)],2))}}),Sc=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),ye=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Mc={},Ac={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},jc=[q("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[q("circle",{cx:"14",cy:"14",r:"12"}),q("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function Lc(e,t){return S(),K("svg",Ac,jc)}const Ys=ye(Mc,[["render",Lc]]),zc=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},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"},Xs=Ce({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=Ys;return t.zoom!==1?(S(),K("button",Bc,[q("div",Dc,[W(o)]),q("div",Nc,lt(Math.ceil(t.zoom*100))+"%",1)])):Le("",!0)}}}),Rc=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),Fc={},Hc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Vc=[q("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function Wc(e,t){return S(),K("svg",Hc,Vc)}const qo=ye(Fc,[["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"},Zc=[q("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),q("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function Yc(e,t){return S(),K("svg",qc,Zc)}const Zo=ye(Uc,[["render",Yc]]),Xc=Object.freeze(Object.defineProperty({__proto__:null,default:Zo},Symbol.toStringTag,{value:"Module"}));function Jc({touchDevice:e}){const t=te(!1);let n=0;return Hn("busy:touchDevice",e),Hn("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function Yo({desktopOnly:e=!1}={}){if(e&&Pt("busy:touchDevice"))return()=>{};const t=Pt("setBusyState");let n=!1;return it(()=>{n&&(t==null||t(!1))}),o=>{n!==o&&(n=o,t==null||t(o))}}const Qc=(e,t,n)=>{const o=document.createElement("span");let r=1,s=.65;const i=setInterval(a,20);l();function l(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${n.currentTarget.clientWidth/2}px`,o.style.top=`${n.currentTarget.clientHeight/2}px`,n.currentTarget.appendChild(o)}function a(){const c=+t.value||50;r<=c?(r++,s-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${s}`):(o.remove(),clearInterval(i))}},qt={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.addEventListener("click",n=>Qc(e,t,n))}},Gc={class:"group-hover:bg-stone-100 group-hover:bg-opacity-10 duration-200 rounđe-full p-2 w-full h-full inline-flex justify-center items-center"},Zn=Ce({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=Yo({desktopOnly:!0});let o=!1;function r(){o||(o=!0,n(!0))}function s(){o&&(o=!1,n(!1))}return(i,l)=>dt((S(),Te(ga(i.href?"a":"button"),Ro(i.href?{href:i.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full group duration-200",{"pointer-events-none text-stone-300 hover:text-stone-300":i.disabled,"text-stone-100 hover:text-stone-100":!i.disabled,"bg-black bg-opacity-50":!i.transparent}],onClick:l[0]||(l[0]=At(()=>t("click"),["stop"])),onMouseenter:r,onMouseleave:s}),{default:le(()=>[q("div",Gc,[Oe(i.$slots,"default")])]),_:3},16,["class"])),[[L(qt),15]])}}),eu=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"}));class tu{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 nu(){const e=new tu;return it(()=>e.dispose()),Hn("keyController",e),e}function Xo(e){const t=Pt("keyController");Qe(()=>t.addListener(e)),it(()=>t.removeListener(e))}const ou={class:"relative flex w-full flex-shrink-0 justify-center items-center h-16"},ru={class:"inline-flex items-center h-full absolute left-3 top-0"},su=q("span",{class:"text-xl font-medium"},"Customize",-1),iu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-16 flex-grow scrollbar-sm"},Js=Ce({__name:"BottomSheet",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;Xo({onKeyDown:r});const o=Yo();he(()=>n.modelValue,s=>{o(s)},{immediate:!0});function r(s){n.modelValue&&s.key==="Escape"&&(t("update:modelValue",!1),s.preventDefault())}return(s,i)=>{const l=ha("IconClose"),a=Zn;return S(),K("div",{class:ve(["fixed inset-0 flex flex-col items-center justify-end select-none",{"!pointer-events-none":!n.modelValue}]),onClick:i[2]||(i[2]=()=>t("update:modelValue",!1))},[W(Ut,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:le(()=>[n.modelValue?(S(),K("div",{key:0,class:"inline-flex flex-col h-[22rem] w-full sm:w-[32rem] max-h-[80vh] bg-stone-800 bg-opacity-75 backdrop-blur-md rounded-t-xl max-w-full overflow-hidden duration-200",onClick:i[1]||(i[1]=At(()=>{},["stop"]))},[q("div",ou,[q("div",ru,[W(a,{transparent:"",onClick:i[0]||(i[0]=()=>t("update:modelValue",!1))},{default:le(()=>[W(l)]),_:1})]),su]),q("div",iu,[Oe(s.$slots,"default")])])):Le("",!0)]),_:3})],2)}}}),lu=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),au=["min","max","step"],cu={class:"flex-shrink-0"},Qs=ye(Ce({__name:"InputPercentage",props:{modelValue:{},min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=pe({get(){return n.modelValue},set(r){t("update:modelValue",+r)}});return(r,s)=>(S(),K("div",{class:ve(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:Ne({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[dt(q("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,au),[[vc,o.value]]),q("p",cu,[Oe(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
|
-
`]]]),uu=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),fu={class:"flex items-center mb-8 last:mb-0"},du={class:"flex-grow overflow-hidden"},Gs=Ce({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(S(),K("div",fu,[q("div",{class:ve(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},lt(t.label),3),q("div",du,[Oe(t.$slots,"default")])]))}}),pu=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),hu=["onClick","onKeyup"],ei=Ce({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=te(null),r=te({width:"",left:""});Qe(()=>{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)=>(S(),K("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[q("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Ne(r.value)},null,4),(S(!0),K(we,null,Nn(n.items,(a,c)=>dt((S(),K("div",{key:c,tabindex:"0",class:ve(["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:[Ks(()=>s(c),["enter"]),Ks(()=>s(c),["space"])]},[Ht(lt(a),1)],42,hu)),[[L(qt),30]])),128))],512))}}),gu=Object.freeze(Object.defineProperty({__proto__:null,default:ei},Symbol.toStringTag,{value:"Module"})),mu={},bu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},_u=[q("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),q("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function vu(e,t){return S(),K("svg",bu,_u)}const ti=ye(mu,[["render",vu]]),yu=Object.freeze(Object.defineProperty({__proto__:null,default:ti},Symbol.toStringTag,{value:"Module"}));var ni;const Jo=typeof window<"u",wu=e=>typeof e=="function",xu=e=>typeof e=="string",bt=()=>{};Jo&&((ni=window==null?void 0:window.navigator)!=null&&ni.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Yn(e){return typeof e=="function"?e():L(e)}function oi(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 ri=e=>e();function ku(e,t={}){let n,o,r=bt;const s=l=>{clearTimeout(l),r(),r=bt};return l=>{const a=Yn(e),c=Yn(t.maxWait);return n&&s(n),a<=0||c!==void 0&&c<=0?(o&&(s(o),o=null),Promise.resolve(l())):new Promise((f,h)=>{r=t.rejectOnCancel?h:f,c&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,f(l())},c)),n=setTimeout(()=>{o&&s(o),o=null,f(l())},a)})}}function Cu(e=ri){const t=te(!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 Tu(e,t=!1,n="Timeout"){return new Promise((o,r)=>{setTimeout(t?()=>r(n):o,e)})}function Pu(e){return e}function Qo(e){return gr()?(ul(e),!0):!1}function Zt(e,t=200,n={}){return oi(ku(t,n),e)}function Ou(e,t=!0){Cs()?Qe(e):t?e():rt(e)}var si=Object.getOwnPropertySymbols,Iu=Object.prototype.hasOwnProperty,Eu=Object.prototype.propertyIsEnumerable,$u=(e,t)=>{var n={};for(var o in e)Iu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&si)for(var o of si(e))t.indexOf(o)<0&&Eu.call(e,o)&&(n[o]=e[o]);return n};function Su(e,t,n={}){const o=n,{eventFilter:r=ri}=o,s=$u(o,["eventFilter"]);return he(e,oi(r,t),s)}var Mu=Object.defineProperty,Au=Object.defineProperties,ju=Object.getOwnPropertyDescriptors,Xn=Object.getOwnPropertySymbols,ii=Object.prototype.hasOwnProperty,li=Object.prototype.propertyIsEnumerable,ai=(e,t,n)=>t in e?Mu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lu=(e,t)=>{for(var n in t||(t={}))ii.call(t,n)&&ai(e,n,t[n]);if(Xn)for(var n of Xn(t))li.call(t,n)&&ai(e,n,t[n]);return e},zu=(e,t)=>Au(e,ju(t)),Bu=(e,t)=>{var n={};for(var o in e)ii.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Xn)for(var o of Xn(e))t.indexOf(o)<0&&li.call(e,o)&&(n[o]=e[o]);return n};function Du(e,t,n={}){const o=n,{eventFilter:r}=o,s=Bu(o,["eventFilter"]),{eventFilter:i,pause:l,resume:a,isActive:c}=Cu(r);return{stop:Su(e,t,zu(Lu({},s),{eventFilter:i})),pause:l,resume:a,isActive:c}}function jt(e){var t;const n=Yn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const _t=Jo?window:void 0,Nu=Jo?window.document:void 0;function gn(...e){let t,n,o,r;if(xu(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=_t):[t,n,o,r]=e,!t)return bt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(f=>f()),s.length=0},l=(f,h,p)=>(f.addEventListener(h,p,r),()=>f.removeEventListener(h,p,r)),a=he(()=>jt(t),f=>{i(),f&&s.push(...n.flatMap(h=>o.map(p=>l(f,h,p))))},{immediate:!0,flush:"post"}),c=()=>{a(),i()};return Qo(c),c}function Ru(e,t,n){const{immediate:o=!0,delay:r=0,onError:s=bt,onSuccess:i=bt,resetOnExecute:l=!0,shallow:a=!0,throwError:c}=n??{},f=a?Br(t):te(t),h=te(!1),p=te(!1),_=te(void 0);async function O(x=0,...I){l&&(f.value=t),_.value=void 0,h.value=!1,p.value=!0,x>0&&await Tu(x);const B=typeof e=="function"?e(...I):e;try{const z=await B;f.value=z,h.value=!0,i(z)}catch(z){if(_.value=z,s(z),c)throw _}finally{p.value=!1}return f.value}return o&&O(r),{state:f,isReady:h,isLoading:p,error:_,execute:O}}function ci(e,t=!1){const n=te(),o=()=>n.value=!!e();return o(),Ou(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 Fu=Go[er];function Hu(e,t){return Fu[e]||t}function Vu(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 Wu=Object.defineProperty,ui=Object.getOwnPropertySymbols,Ku=Object.prototype.hasOwnProperty,Uu=Object.prototype.propertyIsEnumerable,fi=(e,t,n)=>t in e?Wu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,di=(e,t)=>{for(var n in t||(t={}))Ku.call(t,n)&&fi(e,n,t[n]);if(ui)for(var n of ui(t))Uu.call(t,n)&&fi(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 pi(e,t,n,o={}){var r;const{flush:s="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:f,window:h=_t,eventFilter:p,onError:_=U=>{console.error(U)}}=o,O=(f?Br:te)(t);if(!n)try{n=Hu("getDefaultStorage",()=>{var U;return(U=_t)==null?void 0:U.localStorage})()}catch(U){_(U)}if(!n)return O;const x=Yn(t),I=Vu(x),B=(r=o.serializer)!=null?r:qu[I],{pause:z,resume:V}=Du(O,()=>b(O.value),{flush:s,deep:i,eventFilter:p});return h&&l&&gn(h,"storage",ae),ae(),O;function b(U){try{if(U==null)n.removeItem(e);else{const m=B.write(U),A=n.getItem(e);A!==m&&(n.setItem(e,m),h&&(h==null||h.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:A,newValue:m,storageArea:n}))))}}catch(m){_(m)}}function Y(U){const m=U?U.newValue:n.getItem(e);if(m==null)return a&&x!==null&&n.setItem(e,B.write(x)),x;if(!U&&c){const A=B.read(m);return wu(c)?c(A,x):I==="object"&&!Array.isArray(A)?di(di({},x),A):A}else return typeof m!="string"?m:B.read(m)}function ae(U){if(!(U&&U.storageArea!==n)){if(U&&U.key==null){O.value=x;return}if(!(U&&U.key!==e)){z();try{O.value=Y(U)}catch(m){_(m)}finally{U?rt(V):V()}}}}}function Zu({document:e=Nu}={}){if(!e)return te("visible");const t=te(e.visibilityState);return gn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var hi=Object.getOwnPropertySymbols,Yu=Object.prototype.hasOwnProperty,Xu=Object.prototype.propertyIsEnumerable,Ju=(e,t)=>{var n={};for(var o in e)Yu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&hi)for(var o of hi(e))t.indexOf(o)<0&&Xu.call(e,o)&&(n[o]=e[o]);return n};function gi(e,t,n={}){const o=n,{window:r=_t}=o,s=Ju(o,["window"]);let i;const l=ci(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},c=he(()=>jt(e),h=>{a(),l.value&&r&&h&&(i=new ResizeObserver(t),i.observe(h,s))},{immediate:!0,flush:"post"}),f=()=>{a(),c()};return Qo(f),{isSupported:l,stop:f}}function Qu(e,t={width:0,height:0},n={}){const{window:o=_t,box:r="content-box"}=n,s=pe(()=>{var a,c;return(c=(a=jt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),i=te(t.width),l=te(t.height);return gi(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&s.value){const f=jt(e);if(f){const h=o.getComputedStyle(f);i.value=parseFloat(h.width),l.value=parseFloat(h.height)}}else if(c){const f=Array.isArray(c)?c:[c];i.value=f.reduce((h,{inlineSize:p})=>h+p,0),l.value=f.reduce((h,{blockSize:p})=>h+p,0)}else i.value=a.contentRect.width,l.value=a.contentRect.height},n),he(()=>jt(e),a=>{i.value=a?t.width:0,l.value=a?t.height:0}),{width:i,height:l}}function mi(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:i=_t}=n,l=ci(()=>i&&"IntersectionObserver"in i);let a=bt;const c=l.value?he(()=>({el:jt(e),root:jt(o)}),({el:h,root:p})=>{if(a(),!h)return;const _=new IntersectionObserver(t,{root:p,rootMargin:r,threshold:s});_.observe(h),a=()=>{_.disconnect(),a=bt}},{immediate:!0,flush:"post"}):bt,f=()=>{a(),c()};return Qo(f),{isSupported:l,stop:f}}function Jn(e,t,n={}){const{window:o=_t}=n;return pi(e,t,o==null?void 0:o.localStorage,n)}var bi;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(bi||(bi={}));function tr(e,t,n={}){const{window:o=_t}=n;return pi(e,t,o==null?void 0:o.sessionStorage,n)}var Gu=Object.defineProperty,_i=Object.getOwnPropertySymbols,ef=Object.prototype.hasOwnProperty,tf=Object.prototype.propertyIsEnumerable,vi=(e,t,n)=>t in e?Gu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nf=(e,t)=>{for(var n in t||(t={}))ef.call(t,n)&&vi(e,n,t[n]);if(_i)for(var n of _i(t))tf.call(t,n)&&vi(e,n,t[n]);return e};nf({linear:Pu},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});var vt=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(vt||{}),Yt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Yt||{});const yi=.25,wi=3,of=.25,xi=.25,ki=5,rf=.05;function sf(e){const{titleId:t,asyncIsWebtoon:n}=e,o=Jn(`tk:style:${t}`,Yt.longStrip,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(c,f){return Object.values(Yt).includes(c)?c:f}}),r=Jn(`tk:dir:${t}`,vt.vertical,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(c,f){return Object.values(vt).includes(c)?c:f}}),s=Jn(`tk:speed:${t}`,1,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(c,f){return c>=yi&&c<=wi?+c:f}}),i=Jn(`tk:zoom:${t}`,1,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(c,f){return c>=xi&&c<=ki?+c:f}}),l=pe({get(){return n.state.value?Yt.longStrip:o.value},set:c=>o.value=c}),a=pe({get:()=>n.state.value?vt.vertical:r.value,set:c=>r.value=c});return{direction:a,style:l,speed:s,zoom:i,isLongStrip:pe(()=>l.value===Yt.longStrip),isDouble:pe(()=>l.value===Yt.double),isRTL:pe(()=>a.value===vt.rtl),isVertical:pe(()=>a.value===vt.vertical)}}const Ci=Ce({__name:"ButtonReaderSettings",props:{direction:{},readerStyle:{},speed:{},zoom:{},webtoon:{type:Boolean},disabledZoom:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:speed","update:zoom"],setup(e,{emit:t}){const n=te(!1);return(o,r)=>{const s=ti,i=Zn,l=ei,a=Gs,c=Qs,f=Js;return S(),K(we,null,[W(i,{title:"Customize",disabled:o.disabled,onClick:r[0]||(r[0]=()=>n.value=!0)},{default:le(()=>[W(s)]),_:1},8,["disabled"]),W(f,{modelValue:n.value,"onUpdate:modelValue":r[5]||(r[5]=h=>n.value=h)},{default:le(()=>[W(a,{label:"Style"},{default:le(()=>[W(l,{"model-value":o.readerStyle,items:o.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":r[1]||(r[1]=h=>t("update:reader-style",h))},null,8,["model-value","items"])]),_:1}),W(a,{label:"Direction"},{default:le(()=>[W(l,{"model-value":o.direction,items:o.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":r[2]||(r[2]=h=>t("update:direction",h))},null,8,["model-value","items"])]),_:1}),W(a,{label:"Speed"},{default:le(()=>[W(c,{"model-value":o.speed,min:L(yi),max:L(wi),step:L(of),suffix:"x","onUpdate:modelValue":r[3]||(r[3]=h=>t("update:speed",h))},{suffix:le(()=>[Ht(lt(o.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),W(a,{label:"Zoom",disabled:o.disabledZoom},{default:le(()=>[W(c,{"model-value":Math.ceil(o.zoom*100),min:L(xi)*100,max:L(ki)*100,step:L(rf)*100,disabled:o.disabledZoom,"onUpdate:modelValue":r[4]||(r[4]=h=>t("update:zoom",Math.round(h)/100))},{suffix:le(()=>[Ht(lt(Math.ceil(o.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step","disabled"])]),_:1},8,["disabled"])]),_:1},8,["modelValue"])],64)}}}),lf=Object.freeze(Object.defineProperty({__proto__:null,default:Ci},Symbol.toStringTag,{value:"Module"})),af={},cf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},uf=[q("path",{fill:"currentColor",d:"M6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h6v2H7v12.95l5-2.15l5 2.15V11h2v8.475q0 .55-.45.838t-.95.087L12 18l-5.6 2.4ZM7 5h6h-6Zm11 4q-.425 0-.713-.287T17 8V7h-1q-.425 0-.713-.288T15 6q0-.425.288-.713T16 5h1V4q0-.425.288-.713T18 3q.425 0 .713.288T19 4v1h1q.425 0 .713.288T21 6q0 .425-.288.713T20 7h-1v1q0 .425-.288.713T18 9Z"},null,-1)];function ff(e,t){return S(),K("svg",cf,uf)}const Ti=ye(af,[["render",ff]]),df=Object.freeze(Object.defineProperty({__proto__:null,default:Ti},Symbol.toStringTag,{value:"Module"})),pf={},hf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},gf=[q("path",{fill:"currentColor",d:"M17.825 8.575q-.2 0-.375-.062t-.325-.213L15.7 6.875q-.3-.3-.3-.712t.3-.688q.275-.3.7-.3t.7.275l.725.725l2.825-2.85q.3-.3.7-.3t.725.3q.275.3.275.725t-.275.7l-3.55 3.55q-.15.15-.325.213t-.375.062ZM6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h7q-.5.75-.75 1.438T13 6q0 1.8 1.137 3.175T17 10.9q.575.075 1 .075t1-.075v8.575q0 .55-.45.838t-.95.087L12 18l-5.6 2.4Z"},null,-1)];function mf(e,t){return S(),K("svg",hf,gf)}const Pi=ye(pf,[["render",mf]]),bf=Object.freeze(Object.defineProperty({__proto__:null,default:Pi},Symbol.toStringTag,{value:"Module"})),_f={},vf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},yf=[q("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function wf(e,t){return S(),K("svg",vf,yf)}const Oi=ye(_f,[["render",wf]]),xf=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),kf=["aria-hidden"],Cf=["onClick"],Tf=["onClick"],Pf={class:"inline-flex items-center justify-center w-full h-full px-4 rounded-full group-hover:bg-stone-200 group-hover:bg-opacity-20 duration-200"},Of={class:"whitespace-nowrap"},nr=Ce({__name:"ButtonDropdown",props:{modelValue:{},label:{},items:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=te(null),r=te(!1),s=te(null),i=te(!1),l=te(!1),a=te(!1);Xo({onKeyDown:_});const c=Yo({desktopOnly:!0});function f(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(h(),rt(()=>setTimeout(()=>{var b,Y;(Y=(b=s.value)==null?void 0:b.children[n.modelValue])==null||Y.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),x(o.value)):setTimeout(I,250)}function h(){const b=o.value;if(b){const Y=b.getBoundingClientRect(),ae=Y.x+Y.width/2;i.value=Y.y>window.innerHeight/2,l.value=ae<window.innerWidth/3,a.value=ae>window.innerWidth/3*2}}function p(b){b!=n.modelValue&&t("update:modelValue",b),f()}function _(b){r.value&&b.key==="Escape"&&(f(),b.preventDefault())}let O=[];function x(b){const Y=window.getComputedStyle(b).zIndex,ae=b.style.zIndex;(!Y||!(+Y>0))&&((!b.parentElement||b.parentElement.childElementCount>1)&&(b.style.zIndex="1",O.push({el:b,zIndex:ae})),b.parentElement&&x(b.parentElement))}function I(){O.forEach(({el:b,zIndex:Y})=>{b.style.zIndex=Y??""}),O=[]}let B=!1;function z(){B||(B=!0,c(!0))}function V(){B&&(B=!1,c(!1))}return(b,Y)=>{const ae=Oi;return S(),K("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(S(),K("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:f})):Le("",!0),n.items.length?(S(),Te(Ut,{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:le(()=>[r.value?(S(),K("ul",{key:0,ref_key:"list",ref:s,"aria-hidden":!r.value,class:ve(["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:Y[0]||(Y[0]=At(()=>{},["stop"]))},[(S(!0),K(we,null,Nn(n.items,(U,m)=>dt((S(),K("li",{key:m,tabindex:"-1",class:ve(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-200 hover:bg-opacity-10 duration-100",{"text-primary":m===b.modelValue}]),onClick:()=>p(m)},[q("div",{class:ve(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":m>0}])},lt(U),3)],10,Cf)),[[L(qt),30]])),128))],42,kf)):Le("",!0)]),_:1})):Le("",!0),dt((S(),K("button",{type:"button",tabindex:"-1",class:ve(["w-full h-10 max-h-full bg-transparent rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":b.disabled}]),onClick:At(f,["stop"]),onMouseenter:z,onMouseleave:V},[q("div",Pf,[q("span",Of,lt(n.label),1),n.items.length?(S(),K("span",{key:0,class:ve(["w-4 h-4 flex ml-1 -mr-3",{"rotate-180":i.value}]),"aria-hidden":"true"},[W(ae)],2)):Le("",!0)])],42,Tf)),[[L(qt),30]])],512)}}}),If=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"})),Ii=Ce({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=pe(()=>Math.floor(n.modelValue)),r=pe(()=>n.pages.map(c=>c.map(({index:f})=>`${f+1}`).join("-"))),s=pe(()=>{const c=o.value,f=n.pages.findIndex(h=>h.some(({index:p})=>p===c));return f===-1?n.pages.length-1:f}),i=pe(()=>n.pages.length?`${r.value[s.value]}/${n.totalImgs}`:"--");function l(c){const f=n.pages[c][0].index;a(f)}function a(c){t("update:modelValue",c)}return(c,f)=>{const h=nr;return S(),Te(h,{"model-value":s.value,label:i.value,items:r.value,disabled:c.disabled,"onUpdate:modelValue":l},null,8,["model-value","label","items","disabled"])}}}),Ef=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"})),$f={},Sf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Mf=[q("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Af(e,t){return S(),K("svg",Sf,Mf)}const Ei=ye($f,[["render",Af]]),jf=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),Lf={},zf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Bf=[q("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function Df(e,t){return S(),K("svg",zf,Bf)}const $i=ye(Lf,[["render",Df]]),Nf=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"})),Rf={},Ff={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Hf=[q("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function Vf(e,t){return S(),K("svg",Ff,Hf)}const Si=ye(Rf,[["render",Vf]]),Wf=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"})),Mi=ye(Ce({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=te(0);return he(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const s=qo,i=Zo;return n.value?(S(),K("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(S(),Te(s,{key:0})):(S(),Te(i,{key:1}))])):Le("",!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
|
-
`]]]),
|
|
4
|
-
`,
|
|
5
|
-
`]]]),
|
|
6
|
-
`]]]),md=Object.freeze(Object.defineProperty({__proto__:null,default:Ni},Symbol.toStringTag,{value:"Module"}));function bd(e){var l,a,c;let t=-1;const{vol:n,chap:o,title:{chapters:r}}=e;r!=null&&r.length&&(t=r.findIndex(f=>f.slug===e.slug),t===-1&&(t=r.findIndex(f=>f.vol===n&&f.chap===o)),t===-1&&(t=r.findIndex(f=>e.slug.startsWith(`${f.slug}-`)&&e.slug.length-f.slug.length>3)));const s=e.prevSlug??((l=r==null?void 0:r[t+1])==null?void 0:l.slug),i=e.nextSlug??((a=r==null?void 0:r[t-1])==null?void 0:a.slug);return{activeIndex:t,activeLabel:Ri({vol:n,chap:o}),chaptersText:((c=e.title.chapters)==null?void 0:c.map(Ri))??[],prevPath:rr(e.basePath,s),nextPath:rr(e.basePath,i)}}function rr(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 sr=3;function _d(e,t){const n=nn(Array.from({length:e.value.length})),o=[];let r=0;he([t,e],async([l,a],[c])=>{const f=Math.floor(l),h=Math.floor(c||-1),p=a.length-n.length;if(p>0){const _=Array.from({length:p});n.push(..._)}f!==h&&(r=Math.max(0,r-Math.abs(f-h)));for(let _=f;_<a.length;_++){if(r>sr)return;s(_)}for(let _=f-1;_>=0;_--){if(r>sr)return;s(_)}},{immediate:!0});async function s(l){l===void 0||!e.value[l]||r>sr||(o[l]||(o[l]=!0,r++,n[l]=await vd(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 vd(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 yd(e,t){return pe(()=>t.value?Fi(e):e.map((n,o)=>[{el: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)=>({el:s,index:t+i})),...Fi(e.slice(r.length),t+r.length)]}function wd(e,t,n){const o=new Promise(r=>{if(n!==void 0){r(n);return}const s=Math.max(e.length<4?0:e.length<6?1:2,t),i=Math.min(s+4,e.length<6?e.length-1:e.length),l=Math.max(0,i-4),a=e.slice(l,i);let c=!1;Promise.all(a.map(async f=>{const h=await xd(f);!c&&h&&(c=!0,r(!0))})).then(()=>{c||r(!1)})});return Ru(o,n??!1)}function xd(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 kd({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 Cd(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const ir=40;function Td({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:s,spaceTop:i,scrollEl:l,interferePlayer:a,onChangedPage:c}){let f=!1,h=!1,p;const _=Zt(I,150),O=Pd(B,300);Qe(()=>{let m=null;ea(async()=>{l.value&&l.value!==m&&(m=l.value,_(e.value),l.value.addEventListener("scroll",O))});let A=window.innerWidth;gi(l,()=>{const F=window.innerWidth;A!=F&&(A=F,x())}),he(n,x),he(t,x)});async function x(){f=!0,h=!1,await rt(),I(e.value)}function I(m){if(!l.value)return;f=!0;const A=async()=>{await rt(),f=!1,h=!0},F=z(Math.floor(m));if(!F){A();return}if(o.value){const oe=o.value?m%1*(r.value?F.offsetHeight:F.offsetWidth)||1:0,$=V(F)+oe;a(()=>{b($),A()})}else{const oe=h;a(()=>{F.scrollIntoView(oe?{behavior:"smooth",block:"start",inline:"start"}:void 0),A()})}}async function B(){if(!l.value||f||!h)return;const m=ae();if(!m)return;const A=+m.getAttribute("data-index")||0,F=m.getBoundingClientRect(),oe=o.value?Math.floor((A+U(F))*100)/100:A;oe!==e.value&&c(oe)}function z(m){var A;return(A=l.value)==null?void 0:A.querySelector(`[data-index="${m}"],[data-second-index="${m}"]`)}function V(m){return r.value?m.offsetTop:s.value?l.value.clientWidth-m.offsetLeft-m.offsetWidth:m.offsetLeft}function b(m){if(Y()!==m)return r.value?l.value.scrollTop=m-(o.value?i.value??0:0):s.value?l.value.scrollLeft=-m:l.value.scrollLeft=m,m}function Y(){return r.value?l.value.scrollTop:s.value?-l.value.scrollLeft:l.value.scrollLeft}function ae(){p??(p=l.value.getRootNode());const m=r.value||!o.value,A=p.elementsFromPoint(m?window.innerWidth/2:s.value?window.innerWidth-ir:ir,m?i.value||ir:window.innerHeight/2);for(let F=0;F<A.length;F++){const oe=A[F];if(oe.hasAttribute("data-index"))return oe;if(oe===l.value)break}}function U(m){return r.value?Math.abs(m.top-(i.value||0))/m.height:s.value?Math.max(0,m.right-l.value.clientWidth)/m.width:Math.abs(m.left)/m.width}return{goToPage:I}}function Pd(e,t){let n;return()=>{n||(n=setTimeout(()=>{n=void 0,e()},t))}}function Od({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,speed:s,onLongIdle:i}){const l=tr("tk:isPlaying",e),a=te(!1);let c,f;const h=Zt(ae,100);let p;const _=Zt(()=>{a.value=!0,clearTimeout(p),p=l.value?void 0:setTimeout(i,15e3)},t?2e3:1e3),O=()=>setTimeout(()=>{a.value=!1,_(),p&&(clearTimeout(p),p=void 0)},30);t||(O(),gn(window,"mousemove",O));const x=Zu();Qe(()=>{he(x,m=>{l.value&&(m==="visible"?ae():f==null||f())}),he(s,()=>I())}),it(()=>{clearTimeout(p),p=void 0});async function I(m){l.value&&(f==null||f()),m&&(await rt(),await m()),l.value&&h()}function B(){l.value?z():V()}function z(){l.value&&(l.value=!1,f==null||f(),O())}function V(){l.value||(l.value=!0,ae(),O())}function b(){f==null||f()}function Y(m){switch(m.key){case" ":m.preventDefault(),B();break;case"PageUp":case"PageDown":case(o.value?"ArrowUp":"ArrowLeft"):case(o.value?"ArrowDown":"ArrowRight"):I(()=>new Promise(A=>setTimeout(A,100)));break}}function ae(){const m=n.value;if(!l.value||!m)return;const A=o.value?m.scrollHeight-m.clientHeight:m.scrollWidth-m.clientWidth,F=U();if(A<=F){z();return}f=()=>{c=Date.now(),f=void 0};const oe=Date.now();c=oe;const $=(o.value?15:25)/s.value,se=o.value?"scrollTop":"scrollLeft",C=()=>{if(c!==oe)return;const Z=r.value?-1:1;m[se]+=Z,setTimeout(C,$)};C()}function U(){const m=n.value;return o.value?m.scrollTop:r.value?-m.scrollLeft:m.scrollLeft}return{isPlaying:l,isIdle:a,toggle:B,play:V,pause:b,resume:ae,stop:z,interfere:I,onKey:Y,awake:O}}const Id=Ce({...{inheritAttrs:!1},__name:"TrackkunReader",props:{raw:{},page:{},spaceTop:{},spaceBottom:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean}},emits:["pageChanged","fullScreenChanged","playingChanged","dispose","openEntry","addEntry","longIdle"],setup(e,{emit:t}){const n=e,o=Jc({touchDevice:n.touchDevice}),r=pe(()=>Array.isArray(n.raw.imgs)?n.raw.imgs.filter(M=>typeof M=="string"):[]),s=kd({initialPage:n.page,max:r.value.length-1}),i=wd(r.value,Math.ceil(s.value),n.raw.isWebtoon),{direction:l,style:a,isRTL:c,isDouble:f,isVertical:h,isLongStrip:p,speed:_,zoom:O}=sf({titleId:n.raw.id??n.raw.title.slug,asyncIsWebtoon:i}),x=_d(r,s),I=yd(x,f),B=pe(()=>s.value>=r.value.length),z=bd(n.raw),V=te(null),b=Od({autoPlay:n.autoPlay,touchDevice:n.touchDevice,scrollEl:pe(()=>{var M;return(M=V.value)==null?void 0:M.$el}),speed:_,isRTL:c,isVertical:h,onLongIdle:()=>t("longIdle")});he(b.isPlaying,M=>{M||G(!1),t("playingChanged",M)}),he(b.isIdle,M=>{b.isPlaying.value&&G(M)}),he(o,M=>{!M&&b.isIdle.value?b.awake():M&&n.fullScreen&&G()});const Y=pe(()=>b.isIdle.value&&!o.value);nu().addListener({onKeyDown:M=>{if(b.onKey(M),!h.value)return;const X=M.key==="ArrowLeft",Ie=M.key==="ArrowRight";X?F():Ie&&A()}});const U=Td({page:s,style:a,direction:l,isLongStrip:p,isVertical:h,isRTL:c,spaceTop:pe(()=>n.spaceTop),scrollEl:pe(()=>{var M;return(M=V.value)==null?void 0:M.$el}),interferePlayer:M=>b.interfere(M),onChangedPage(M){if(M<0||M>=r.value.length+1)return;s.value=M,t("pageChanged",M),M>=r.value.length&&(G(!1),b.stop())}});function m(){if(b.isPlaying.value){!n.fullScreen||!n.touchDevice?b.stop():b.awake();return}G()}function A(){$(z.nextPath)}function F(){$(z.prevPath)}function oe(M){var Ie;const X=(Ie=n.raw.title.chapters)==null?void 0:Ie[M].slug;X&&$(rr(n.raw.basePath,X))}function $(M){M&&(location.href=M.includes("://")?M:location.origin+M)}function se(){var Ie;const M=I.value,X=B.value?M[M.length-1][0].index:(Ie=M[Z()-1])==null?void 0:Ie[0].index;X!==void 0?U.goToPage(X):F()}function C(){var X;const M=B.value?Math.floor(s.value)+1:((X=I.value[Z()+1])==null?void 0:X[0].index)??r.value.length;U.goToPage(M)}function Z(){const M=Math.floor(s.value),X=I.value.findIndex(Ie=>Ie.some(({index:wt})=>wt===M));return X===-1?I.value.length-1:X}function H(){Cd(),t("dispose")}async function G(M){o.value&&!n.fullScreen||t("fullScreenChanged",typeof M=="boolean"?M:!n.fullScreen)}function ce(){n.entryId?yt():Ze()}function Ze(){b.stop(),t("addEntry")}function yt(){b.stop(),t("openEntry",n.entryId)}return(M,X)=>{const Ie=or,wt=Ni,Jt=Di,Ye=ji,Qt=Mi,Gn=Si,We=Zn,mn=$i,bn=nr,u=Ei,d=Ii,g=Pi,w=Ti,y=Ci,T=Zo,E=qo,k=Xs,P=Zs;return S(),Te(P,{"full-screen":!!M.fullScreen,idle:Y.value,"space-top":n.spaceTop,"space-bottom":n.spaceBottom,"touch-device":M.touchDevice,rtl:L(c)},ma({back:le(()=>[W(We,{href:M.raw.title.url,title:M.raw.title.name},{default:le(()=>[W(Gn)]),_:1},8,["href","title"])]),exit:le(()=>[W(We,{title:"Hide reader",onClick:H},{default:le(()=>[W(mn)]),_:1})]),"chapter-nav":le(()=>[W(bn,{modelValue:L(z).activeIndex,label:L(z).activeLabel,items:L(z).chaptersText,"onUpdate:modelValue":oe},null,8,["modelValue","label","items"]),L(z).nextPath?(S(),Te(We,{key:0,title:"Next",href:L(z).nextPath,class:"hidden sm:block",onClick:A},{default:le(()=>[W(u)]),_:1},8,["href"])):Le("",!0)]),"page-nav":le(()=>[W(d,{"model-value":L(s),disabled:L(i).isLoading.value,pages:L(I),"total-imgs":r.value.length,"onUpdate:modelValue":L(U).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),entry:le(()=>[W(We,{title:M.entryId?"View entry":"Add to Trackkun",onClick:ce},{default:le(()=>[M.entryId?(S(),Te(g,{key:0})):(S(),Te(w,{key:1}))]),_:1},8,["title"])]),settings:le(()=>[W(y,{"reader-style":L(a),"onUpdate:readerStyle":X[2]||(X[2]=v=>me(a)?a.value=v:null),direction:L(l),"onUpdate:direction":X[3]||(X[3]=v=>me(l)?l.value=v:null),speed:L(_),"onUpdate:speed":X[4]||(X[4]=v=>me(_)?_.value=v:null),zoom:L(O),"onUpdate:zoom":X[5]||(X[5]=v=>me(O)?O.value=v:null),webtoon:L(i).state.value,disabled:L(i).isLoading.value,"disabled-zoom":L(b).isPlaying.value},null,8,["reader-style","direction","speed","zoom","webtoon","disabled","disabled-zoom"])]),play:le(()=>[W(We,{title:L(b).isPlaying.value?"Pause":"Play",disabled:L(i).isLoading.value,onClick:X[6]||(X[6]=()=>L(b).toggle())},{default:le(()=>[L(b).isPlaying.value?(S(),Te(T,{key:0})):(S(),Te(E,{key:1}))]),_:1},8,["title","disabled"])]),progress:le(()=>[q("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500",style:Ne({width:`${L(s)/(r.value.length-1)*100}%`})},null,4)]),default:le(()=>[L(i).isLoading.value?(S(),Te(Ie,{key:0})):(S(),K(we,{key:1},[W(Jt,{ref_key:"body",ref:V,zoom:L(O),"onUpdate:zoom":X[0]||(X[0]=v=>me(O)?O.value=v:null),pages:L(I),"total-imgs":r.value.length,direction:L(l),"is-long-strip":L(p),isRTL:L(c),"is-vertical":L(h),"space-top":M.spaceTop,"space-bottom":n.spaceBottom,"touch-device":M.touchDevice,busy:L(o),idle:Y.value,"play-controller":L(b),onPrev:se,onNext:C,onClick:m,onWheelPassive:X[1]||(X[1]=()=>L(b).interfere())},{end:le(()=>[W(wt,{"has-next":!!L(z).nextPath,onNext:A,onHide:H},null,8,["has-next"])]),_:1},8,["zoom","pages","total-imgs","direction","is-long-strip","isRTL","is-vertical","space-top","space-bottom","touch-device","busy","idle","play-controller"]),W(Ye,{direction:L(l)},null,8,["direction"]),B.value?Le("",!0):(S(),Te(Qt,{key:0,playing:L(b).isPlaying.value},null,8,["playing"]))],64))]),_:2},[L(b).isPlaying.value?void 0:{name:"reset-zoom",fn:le(()=>[W(Ut,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:le(()=>[W(k,{zoom:L(O),onClick:X[7]||(X[7]=At(()=>O.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),key:"0"}]),1032,["full-screen","idle","space-top","space-bottom","touch-device","rtl"])}}}),Hi=ye(Id,[["styles",[`/*! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:Helvetica,sans-serif;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.inset-2{bottom:.5rem;left:.5rem;right:.5rem;top:.5rem}.left-0{left:0}.top-0{top:0}.bottom-0{bottom:0}.left-3{left:.75rem}.bottom-full{bottom:100%}.top-full{top:100%}.left-1\\/2{left:50%}.right-0{right:0}.top-1\\/2{top:50%}.top-1{top:.25rem}.bottom-5{bottom:1.25rem}.z-50{z-index:50}.z-10{z-index:10}.z-\\[9999999999\\]{z-index:9999999999}.-z-10{z-index:-10}.z-30{z-index:30}.z-20{z-index:20}.m-auto{margin:auto}.-mx-12{margin-left:-3rem;margin-right:-3rem}.-my-12{margin-bottom:-3rem;margin-top:-3rem}.-ml-20{margin-left:-5rem}.ml-1{margin-left:.25rem}.-mr-3{margin-right:-.75rem}.ml-auto{margin-left:auto}.mb-8{margin-bottom:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-0\\.5{height:.125rem}.h-0{height:0}.h-full{height:100%}.h-12{height:3rem}.h-\\[22rem\\]{height:22rem}.h-16{height:4rem}.h-10{height:2.5rem}.h-4{height:1rem}.h-9{height:2.25rem}.h-24{height:6rem}.h-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-\\[4\\.5rem\\]{width:4.5rem}.max-w-full{max-width:100%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-top{transform-origin:top}.translate-y-full{--tw-translate-y:100%}.-translate-y-1\\.5,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\.5{--tw-translate-y:-.375rem}.-translate-y-1{--tw-translate-y:-.25rem}.-translate-y-1,.translate-y-1\\.5{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\\.5{--tw-translate-y:.375rem}.translate-y-1{--tw-translate-y:.25rem}.-translate-x-1\\/2,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.rotate-90{--tw-rotate:90deg}.rotate-90,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.cursor-none{cursor:none}.cursor-auto{cursor:auto}.cursor-grabbing{cursor:grabbing}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.\\!snap-none{scroll-snap-type:none!important}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-6{gap:1.5rem}.gap-1{gap:.25rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-2xl{border-radius:1rem}.rounded-sm{border-radius:.125rem}.rounded-\\[2\\.5rem\\]{border-radius:2.5rem}.rounded-t-sm{border-top-left-radius:.125rem;border-top-right-radius:.125rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border-2{border-width:2px}.border{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-16{padding-bottom:4rem}.pl-1{padding-left:.25rem}.pb-4{padding-bottom:1rem}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:1rem;line-height:1.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.leading-none{line-height:1}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-150{transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-500{transition-duration:.5s}.ease-linear{transition-timing-function:linear}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:.25rem;width:.25rem}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-200:hover{--tw-bg-opacity:1;background-color:rgb(231 229 228/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-300:hover{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-200{--tw-bg-opacity:1;background-color:rgb(231 229 228/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}.group:hover .group-hover\\:bg-opacity-10{--tw-bg-opacity:.1}}@media (min-width:640px){.sm\\:inset-3{bottom:.75rem;left:.75rem;right:.75rem;top:.75rem}.sm\\:block{display:block}.sm\\:w-\\[32rem\\]{width:32rem}.sm\\:pb-0{padding-bottom:0}}@media (min-width:768px){.md\\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width:1024px){.lg\\:px-10{padding-left:2.5rem;padding-right:2.5rem}}@media (min-width:1280px){.xl\\:px-12{padding-left:3rem;padding-right:3rem}}
|
|
7
|
-
`]]]),
|
|
8
|
-
`,
|
|
1
|
+
(function(je,G){typeof exports=="object"&&typeof module<"u"?module.exports=G():typeof define=="function"&&define.amd?define(G):(je=typeof globalThis<"u"?globalThis:je||self,je._gearSecond_=G())})(this,function(){"use strict";var tp=Object.defineProperty;var np=(je,G,De)=>G in je?tp(je,G,{enumerable:!0,configurable:!0,writable:!0,value:De}):je[G]=De;var Zi=(je,G,De)=>(np(je,typeof G!="symbol"?G+"":G,De),De);function je(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={},De=[],qe=()=>{},Xi=()=>!1,Ji=/^on[^a-z]/,bn=e=>Ji.test(e),no=e=>e.startsWith("onUpdate:"),ge=Object.assign,oo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Qi=Object.prototype.hasOwnProperty,se=(e,t)=>Qi.call(e,t),F=Array.isArray,Bt=e=>yn(e)==="[object Map]",ur=e=>yn(e)==="[object Set]",Q=e=>typeof e=="function",ve=e=>typeof e=="string",ro=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",fr=e=>pe(e)&&Q(e.then)&&Q(e.catch),dr=Object.prototype.toString,yn=e=>dr.call(e),Gi=e=>yn(e).slice(8,-1),pr=e=>yn(e)==="[object Object]",so=e=>ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,wn=je(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},el=/-(\w)/g,Ae=xn(e=>e.replace(el,(t,n)=>n?n.toUpperCase():"")),tl=/\B([A-Z])/g,Ne=xn(e=>e.replace(tl,"-$1").toLowerCase()),kn=xn(e=>e.charAt(0).toUpperCase()+e.slice(1)),io=xn(e=>e?`on${kn(e)}`:""),en=(e,t)=>!Object.is(e,t),Cn=(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})},lo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ao=e=>{const t=ve(e)?Number(e):NaN;return isNaN(t)?e:t};let hr;const co=()=>hr||(hr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Re(e){if(F(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=ve(o)?sl(o):Re(o);if(r)for(const s in r)t[s]=r[s]}return t}else{if(ve(e))return e;if(pe(e))return e}}const nl=/;(?![^(]*\))/g,ol=/:([^]+)/,rl=new RegExp("\\/\\*.*?\\*\\/","gs");function sl(e){const t={};return e.replace(rl,"").split(nl).forEach(n=>{if(n){const o=n.split(ol);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function be(e){let t="";if(ve(e))t=e;else if(F(e))for(let n=0;n<e.length;n++){const o=be(e[n]);o&&(t+=o+" ")}else if(pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const il=je("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function gr(e){return!!e||e===""}const at=e=>ve(e)?e:e==null?"":F(e)||pe(e)&&(e.toString===dr||!Q(e.toString))?JSON.stringify(e,mr,2):String(e),mr=(e,t)=>t&&t.__v_isRef?mr(e,t.value):Bt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:ur(t)?{[`Set(${t.size})`]:[...t.values()]}:pe(t)&&!F(t)&&!pr(t)?String(t):t;let Le;class ll{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Le,!t&&Le&&(this.index=(Le.scopes||(Le.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Le;try{return Le=this,t()}finally{Le=n}}}on(){Le=this}off(){Le=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 al(e,t=Le){t&&t.active&&t.effects.push(e)}function vr(){return Le}function cl(e){Le&&Le.cleanups.push(e)}const uo=e=>{const t=new Set(e);return t.w=0,t.n=0,t},_r=e=>(e.w&ct)>0,br=e=>(e.n&ct)>0,ul=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ct},fl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];_r(r)&&!br(r)?r.delete(e):t[n++]=r,r.w&=~ct,r.n&=~ct}t.length=n}},fo=new WeakMap;let tn=0,ct=1;const po=30;let Ye;const kt=Symbol(""),ho=Symbol("");class go{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,al(this,o)}run(){if(!this.active)return this.fn();let t=Ye,n=ut;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Ye,Ye=this,ut=!0,ct=1<<++tn,tn<=po?ul(this):yr(this),this.fn()}finally{tn<=po&&fl(this),ct=1<<--tn,Ye=this.parent,ut=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ye===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 ut=!0;const wr=[];function Dt(){wr.push(ut),ut=!1}function Nt(){const e=wr.pop();ut=e===void 0?!0:e}function $e(e,t,n){if(ut&&Ye){let o=fo.get(e);o||fo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=uo()),xr(r)}}function xr(e,t){let n=!1;tn<=po?br(e)||(e.n|=ct,n=!_r(e)):n=!e.has(Ye),n&&(e.add(Ye),Ye.deps.push(e))}function ot(e,t,n,o,r,s){const i=fo.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&F(e)){const a=Number(o);i.forEach((c,f)=>{(f==="length"||f>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":F(e)?so(n)&&l.push(i.get("length")):(l.push(i.get(kt)),Bt(e)&&l.push(i.get(ho)));break;case"delete":F(e)||(l.push(i.get(kt)),Bt(e)&&l.push(i.get(ho)));break;case"set":Bt(e)&&l.push(i.get(kt));break}if(l.length===1)l[0]&&mo(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);mo(uo(a))}}function mo(e,t){const n=F(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!==Ye||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const dl=je("__proto__,__v_isRef,__isVue"),Cr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ro)),pl=vo(),hl=vo(!1,!0),gl=vo(!0),Tr=ml();function ml(){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++)$e(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){Dt();const o=le(this)[t].apply(this,n);return Nt(),o}}),e}function vl(e){const t=le(this);return $e(t,"has",e),t.hasOwnProperty(e)}function vo(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:Mr).get(o))return o;const i=F(o);if(!e){if(i&&se(Tr,r))return Reflect.get(Tr,r,s);if(r==="hasOwnProperty")return vl}const l=Reflect.get(o,r,s);return(ro(r)?Cr.has(r):dl(r))||(e||$e(o,"get",r),t)?l:ye(l)?i&&so(r)?l:l.value:pe(l)?e?yo(l):nn(l):l}}const _l=Pr(),bl=Pr(!0);function Pr(e=!1){return function(n,o,r,s){let i=n[o];if(Ft(i)&&ye(i)&&!ye(r))return!1;if(!e&&(!Mn(r)&&!Ft(r)&&(i=le(i),r=le(r)),!F(n)&&ye(i)&&!ye(r)))return i.value=r,!0;const l=F(n)&&so(o)?Number(o)<n.length:se(n,o),a=Reflect.set(n,o,r,s);return n===le(s)&&(l?en(r,i)&&ot(n,"set",o,r):ot(n,"add",o,r)),a}}function yl(e,t){const n=se(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&ot(e,"delete",t,void 0),o}function wl(e,t){const n=Reflect.has(e,t);return(!ro(t)||!Cr.has(t))&&$e(e,"has",t),n}function xl(e){return $e(e,"iterate",F(e)?"length":kt),Reflect.ownKeys(e)}const Or={get:pl,set:_l,deleteProperty:yl,has:wl,ownKeys:xl},kl={get:gl,set(e,t){return!0},deleteProperty(e,t){return!0}},Cl=ge({},Or,{get:hl,set:bl}),_o=e=>e,Pn=e=>Reflect.getPrototypeOf(e);function On(e,t,n=!1,o=!1){e=e.__v_raw;const r=le(e),s=le(t);n||(t!==s&&$e(r,"get",t),$e(r,"get",s));const{has:i}=Pn(r),l=o?_o:n?xo: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=le(n),r=le(e);return t||(e!==r&&$e(o,"has",e),$e(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function En(e,t=!1){return e=e.__v_raw,!t&&$e(le(e),"iterate",kt),Reflect.get(e,"size",e)}function Ir(e){e=le(e);const t=le(this);return Pn(t).has.call(t,e)||(t.add(e),ot(t,"add",e,e)),this}function Er(e,t){t=le(t);const n=le(this),{has:o,get:r}=Pn(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?en(t,i)&&ot(n,"set",e,t):ot(n,"add",e,t),this}function $r(e){const t=le(this),{has:n,get:o}=Pn(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&&ot(t,"delete",e,void 0),s}function Sr(){const e=le(this),t=e.size!==0,n=e.clear();return t&&ot(e,"clear",void 0,void 0),n}function $n(e,t){return function(o,r){const s=this,i=s.__v_raw,l=le(i),a=t?_o:e?xo:on;return!e&&$e(l,"iterate",kt),i.forEach((c,f)=>o.call(r,a(c),a(f),s))}}function Sn(e,t,n){return function(...o){const r=this.__v_raw,s=le(r),i=Bt(s),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=r[e](...o),f=n?_o:t?xo:on;return!t&&$e(s,"iterate",a?ho:kt),{next(){const{value:h,done:d}=c.next();return d?{value:h,done:d}:{value:l?[f(h[0]),f(h[1])]:f(h),done:d}},[Symbol.iterator](){return this}}}}function ft(e){return function(...t){return e==="delete"?!1:this}}function Tl(){const e={get(s){return On(this,s)},get size(){return En(this)},has:In,add:Ir,set:Er,delete:$r,clear:Sr,forEach:$n(!1,!1)},t={get(s){return On(this,s,!1,!0)},get size(){return En(this)},has:In,add:Ir,set:Er,delete:$r,clear:Sr,forEach:$n(!1,!0)},n={get(s){return On(this,s,!0)},get size(){return En(this,!0)},has(s){return In.call(this,s,!0)},add:ft("add"),set:ft("set"),delete:ft("delete"),clear:ft("clear"),forEach:$n(!0,!1)},o={get(s){return On(this,s,!0,!0)},get size(){return En(this,!0)},has(s){return In.call(this,s,!0)},add:ft("add"),set:ft("set"),delete:ft("delete"),clear:ft("clear"),forEach:$n(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Sn(s,!1,!1),n[s]=Sn(s,!0,!1),t[s]=Sn(s,!1,!0),o[s]=Sn(s,!0,!0)}),[e,n,t,o]}const[Pl,Ol,Il,El]=Tl();function bo(e,t){const n=t?e?El:Il:e?Ol: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 $l={get:bo(!1,!1)},Sl={get:bo(!1,!0)},Ml={get:bo(!0,!1)},Mr=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 Ll(e){return e.__v_skip||!Object.isExtensible(e)?0:Al(Gi(e))}function nn(e){return Ft(e)?e:wo(e,!1,Or,$l,Mr)}function zl(e){return wo(e,!1,Cl,Sl,jr)}function yo(e){return wo(e,!0,kl,Ml,Ar)}function wo(e,t,n,o,r){if(!pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=Ll(e);if(i===0)return e;const l=new Proxy(e,i===2?o:n);return r.set(e,l),l}function Rt(e){return Ft(e)?Rt(e.__v_raw):!!(e&&e.__v_isReactive)}function Ft(e){return!!(e&&e.__v_isReadonly)}function Mn(e){return!!(e&&e.__v_isShallow)}function Lr(e){return Rt(e)||Ft(e)}function le(e){const t=e&&e.__v_raw;return t?le(t):e}function zr(e){return Tn(e,"__v_skip",!0),e}const on=e=>pe(e)?nn(e):e,xo=e=>pe(e)?yo(e):e;function Br(e){ut&&Ye&&(e=le(e),xr(e.dep||(e.dep=uo())))}function Dr(e,t){e=le(e);const n=e.dep;n&&mo(n)}function ye(e){return!!(e&&e.__v_isRef===!0)}function ee(e){return Rr(e,!1)}function Nr(e){return Rr(e,!0)}function Rr(e,t){return ye(e)?e:new Bl(e,t)}class Bl{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:on(t)}get value(){return Br(this),this._value}set value(t){const n=this.__v_isShallow||Mn(t)||Ft(t);t=n?t:le(t),en(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:on(t),Dr(this))}}function D(e){return ye(e)?e.value:e}const Dl={get:(e,t,n)=>D(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return ye(r)&&!ye(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Fr(e){return Rt(e)?e:new Proxy(e,Dl)}class Nl{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 go(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 Rl(e,t,n=!1){let o,r;const s=Q(e);return s?(o=e,r=qe):(o=e.get,r=e.set),new Nl(o,r,s||!r,n)}function rp(e,...t){}function dt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){jn(s,t,n)}return r}function Fe(e,t,n,o){if(Q(e)){const s=dt(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(Fe(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 f=0;f<c.length;f++)if(c[f](e,i,l)===!1)return}s=s.parent}const a=t.appContext.config.errorHandler;if(a){dt(a,null,10,[e,i,l]);return}}Fl(e,n,r,o)}function Fl(e,t,n,o=!0){console.error(e)}let rn=!1,ko=!1;const Pe=[];let Qe=0;const Ht=[];let rt=null,Ct=0;const Hr=Promise.resolve();let Co=null;function st(e){const t=Co||Hr;return e?t.then(this?e.bind(this):e):t}function Hl(e){let t=Qe+1,n=Pe.length;for(;t<n;){const o=t+n>>>1;sn(Pe[o])<e?t=o+1:n=o}return t}function To(e){(!Pe.length||!Pe.includes(e,rn&&e.allowRecurse?Qe+1:Qe))&&(e.id==null?Pe.push(e):Pe.splice(Hl(e.id),0,e),Vr())}function Vr(){!rn&&!ko&&(ko=!0,Co=Hr.then(Ur))}function Vl(e){const t=Pe.indexOf(e);t>Qe&&Pe.splice(t,1)}function Wl(e){F(e)?Ht.push(...e):(!rt||!rt.includes(e,e.allowRecurse?Ct+1:Ct))&&Ht.push(e),Vr()}function Wr(e,t=rn?Qe+1:0){for(;t<Pe.length;t++){const n=Pe[t];n&&n.pre&&(Pe.splice(t,1),t--,n())}}function Kr(e){if(Ht.length){const t=[...new Set(Ht)];if(Ht.length=0,rt){rt.push(...t);return}for(rt=t,rt.sort((n,o)=>sn(n)-sn(o)),Ct=0;Ct<rt.length;Ct++)rt[Ct]();rt=null,Ct=0}}const sn=e=>e.id==null?1/0:e.id,Kl=(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 Ur(e){ko=!1,rn=!0,Pe.sort(Kl);const t=qe;try{for(Qe=0;Qe<Pe.length;Qe++){const n=Pe[Qe];n&&n.active!==!1&&dt(n,null,14)}}finally{Qe=0,Pe.length=0,Kr(),rn=!1,Co=null,(Pe.length||Ht.length)&&Ur()}}function Ul(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 f=`${i==="modelValue"?"model":i}Modifiers`,{number:h,trim:d}=o[f]||G;d&&(r=n.map(v=>ve(v)?v.trim():v)),h&&(r=n.map(lo))}let l,a=o[l=io(t)]||o[l=io(Ae(t))];!a&&s&&(a=o[l=io(Ne(t))]),a&&Fe(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,Fe(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(!Q(e)){const a=c=>{const f=qr(c,t,!0);f&&(l=!0,ge(i,f))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!s&&!l?(pe(e)&&o.set(e,null),null):(F(s)?s.forEach(a=>i[a]=null):ge(i,s),pe(e)&&o.set(e,i),i)}function An(e,t){return!e||!bn(t)?!1:(t=t.slice(2).replace(/Once$/,""),se(e,t[0].toLowerCase()+t.slice(1))||se(e,Ne(t))||se(e,t))}let Ce=null,Yr=null;function Ln(e){const t=Ce;return Ce=e,Yr=e&&e.type.__scopeId||null,t}function ie(e,t=Ce,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&ks(-1);const s=Ln(t);let i;try{i=e(...r)}finally{Ln(s),o._d&&ks(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function sp(){}function Po(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:l,attrs:a,emit:c,render:f,renderCache:h,data:d,setupState:v,ctx:E,inheritAttrs:x}=e;let O,N;const L=Ln(e);try{if(n.shapeFlag&4){const w=r||o;O=et(f.call(w,w,h,s,v,d,E)),N=a}else{const w=t;O=et(w.length>1?w(s,{attrs:a,slots:l,emit:c}):w(s,null)),N=t.props?a:ql(a)}}catch(w){un.length=0,jn(w,e,1),O=H(Ve)}let K=O;if(N&&x!==!1){const w=Object.keys(N),{shapeFlag:Z}=K;w.length&&Z&7&&(i&&w.some(no)&&(N=Yl(N,i)),K=ht(K,N))}return n.dirs&&(K=ht(K),K.dirs=K.dirs?K.dirs.concat(n.dirs):n.dirs),n.transition&&(K.transition=n.transition),O=K,Ln(L),O}const ql=e=>{let t;for(const n in e)(n==="class"||n==="style"||bn(n))&&((t||(t={}))[n]=e[n]);return t},Yl=(e,t)=>{const n={};for(const o in e)(!no(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?Zr(o,i,c):!!i;if(a&8){const f=t.dynamicProps;for(let h=0;h<f.length;h++){const d=f[h];if(i[d]!==o[d]&&!An(c,d))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===i?!1:o?i?Zr(o,i,c):!0:!!i;return!1}function Zr(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 Xl({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Jl=e=>e.__isSuspense;function Ql(e,t){t&&t.pendingBranch?F(e)?t.effects.push(...e):t.effects.push(e):Wl(e)}function Gl(e,t){return Oo(e,null,t)}const zn={};function he(e,t,n){return Oo(e,t,n)}function Oo(e,t,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:i}=G){var l;const a=vr()===((l=ke)==null?void 0:l.scope)?ke:null;let c,f=!1,h=!1;if(ye(e)?(c=()=>e.value,f=Mn(e)):Rt(e)?(c=()=>e,o=!0):F(e)?(h=!0,f=e.some(w=>Rt(w)||Mn(w)),c=()=>e.map(w=>{if(ye(w))return w.value;if(Rt(w))return Tt(w);if(Q(w))return dt(w,a,2)})):Q(e)?t?c=()=>dt(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return d&&d(),Fe(e,a,3,[v])}:c=qe,t&&o){const w=c;c=()=>Tt(w())}let d,v=w=>{d=L.onStop=()=>{dt(w,a,4)}},E;if(dn)if(v=qe,t?n&&Fe(t,a,3,[c(),h?[]:void 0,v]):c(),r==="sync"){const w=Ua();E=w.__watcherHandles||(w.__watcherHandles=[])}else return qe;let x=h?new Array(e.length).fill(zn):zn;const O=()=>{if(L.active)if(t){const w=L.run();(o||f||(h?w.some((Z,V)=>en(Z,x[V])):en(w,x)))&&(d&&d(),Fe(t,a,3,[w,x===zn?void 0:h&&x[0]===zn?[]:x,v]),x=w)}else L.run()};O.allowRecurse=!!t;let N;r==="sync"?N=O:r==="post"?N=()=>Se(O,a&&a.suspense):(O.pre=!0,a&&(O.id=a.uid),N=()=>To(O));const L=new go(c,N);t?n?O():x=L.run():r==="post"?Se(L.run.bind(L),a&&a.suspense):L.run();const K=()=>{L.stop(),a&&a.scope&&oo(a.scope.effects,L)};return E&&E.push(K),K}function ea(e,t,n){const o=this.proxy,r=ve(e)?e.includes(".")?Xr(o,e):()=>o[e]:e.bind(o,o);let s;Q(t)?s=t:(s=t.handler,n=t);const i=ke;Kt(this);const l=Oo(r,s.bind(o),n);return i?Kt(i):$t(),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 Tt(e,t){if(!pe(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),ye(e))Tt(e.value,t);else if(F(e))for(let n=0;n<e.length;n++)Tt(e[n],t);else if(ur(e)||Bt(e))e.forEach(n=>{Tt(n,t)});else if(pr(e))for(const n in e)Tt(e[n],t);return e}function pt(e,t){const n=Ce;if(n===null)return e;const o=qn(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&&Tt(l),r.push({dir:i,instance:o,value:l,oldValue:void 0,arg:a,modifiers:c}))}return e}function Pt(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&&(Dt(),Fe(a,n,8,[e.el,l,e,t]),Nt())}}function ta(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ge(()=>{e.isMounted=!0}),ns(()=>{e.isUnmounting=!0}),e}const He=[Function,Array],Jr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:He,onEnter:He,onAfterEnter:He,onEnterCancelled:He,onBeforeLeave:He,onLeave:He,onAfterLeave:He,onLeaveCancelled:He,onBeforeAppear:He,onAppear:He,onAfterAppear:He,onAppearCancelled:He},na={name:"BaseTransition",props:Jr,setup(e,{slots:t}){const n=Ps(),o=ta();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 x of s)if(x.type!==Ve){i=x;break}}const l=le(e),{mode:a}=l;if(o.isLeaving)return Eo(i);const c=Gr(i);if(!c)return Eo(i);const f=Io(c,l,o,n);$o(c,f);const h=n.subTree,d=h&&Gr(h);let v=!1;const{getTransitionKey:E}=c.type;if(E){const x=E();r===void 0?r=x:x!==r&&(r=x,v=!0)}if(d&&d.type!==Ve&&(!Et(c,d)||v)){const x=Io(d,l,o,n);if($o(d,x),a==="out-in")return o.isLeaving=!0,x.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},Eo(i);a==="in-out"&&c.type!==Ve&&(x.delayLeave=(O,N,L)=>{const K=Qr(o,d);K[String(d.key)]=d,O._leaveCb=()=>{N(),O._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=L})}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 Io(e,t,n,o){const{appear:r,mode:s,persisted:i=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:h,onLeave:d,onAfterLeave:v,onLeaveCancelled:E,onBeforeAppear:x,onAppear:O,onAfterAppear:N,onAppearCancelled:L}=t,K=String(e.key),w=Qr(n,e),Z=(m,A)=>{m&&Fe(m,o,9,A)},V=(m,A)=>{const W=A[1];Z(m,A),F(m)?m.every(ce=>ce.length<=1)&&W():m.length<=1&&W()},X={mode:s,persisted:i,beforeEnter(m){let A=l;if(!n.isMounted)if(r)A=x||l;else return;m._leaveCb&&m._leaveCb(!0);const W=w[K];W&&Et(e,W)&&W.el._leaveCb&&W.el._leaveCb(),Z(A,[m])},enter(m){let A=a,W=c,ce=f;if(!n.isMounted)if(r)A=O||a,W=N||c,ce=L||f;else return;let S=!1;const oe=m._enterCb=T=>{S||(S=!0,T?Z(ce,[m]):Z(W,[m]),X.delayedLeave&&X.delayedLeave(),m._enterCb=void 0)};A?V(A,[m,oe]):oe()},leave(m,A){const W=String(e.key);if(m._enterCb&&m._enterCb(!0),n.isUnmounting)return A();Z(h,[m]);let ce=!1;const S=m._leaveCb=oe=>{ce||(ce=!0,A(),oe?Z(E,[m]):Z(v,[m]),m._leaveCb=void 0,w[W]===e&&delete w[W])};w[W]=e,d?V(d,[m,S]):S()},clone(m){return Io(m,t,n,o)}};return X}function Eo(e){if(Bn(e))return e=ht(e),e.children=null,e}function Gr(e){return Bn(e)?e.children?e.children[0]:void 0:e}function $o(e,t){e.shapeFlag&6&&e.component?$o(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===xe?(i.patchFlag&128&&r++,o=o.concat(es(i.children,t,l))):(t||i.type!==Ve)&&o.push(l!=null?ht(i,{key:l}):i)}if(r>1)for(let s=0;s<o.length;s++)o[s].patchFlag=-2;return o}function Te(e,t){return Q(e)?(()=>ge({name:e.name},t,{setup:e}))():e}const ln=e=>!!e.type.__asyncLoader,Bn=e=>e.type.__isKeepAlive;function oa(e,t){ts(e,"a",t)}function ra(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(Dn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Bn(r.parent.vnode)&&sa(o,t,n,r),r=r.parent}}function sa(e,t,n,o){const r=Dn(t,e,o,!0);lt(()=>{oo(o[t],r)},n)}function Dn(e,t,n=ke,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Dt(),Kt(n);const l=Fe(t,n,e,i);return $t(),Nt(),l});return o?r.unshift(s):r.push(s),s}}const it=e=>(t,n=ke)=>(!dn||e==="sp")&&Dn(e,(...o)=>t(...o),n),ia=it("bm"),Ge=it("m"),la=it("bu"),aa=it("u"),ns=it("bum"),lt=it("um"),ca=it("sp"),ua=it("rtg"),fa=it("rtc");function da(e,t=ke){Dn("ec",e,t)}const So="components";function pa(e,t){return rs(So,e,!0,t)||e}const os=Symbol.for("v-ndc");function ha(e){return ve(e)?rs(So,e,!1)||e:e||os}function rs(e,t,n=!0,o=!1){const r=Ce||ke;if(r){const s=r.type;if(e===So){const l=Va(s,!1);if(l&&(l===t||l===Ae(t)||l===kn(Ae(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[Ae(t)]||e[kn(Ae(t))])}function Nn(e,t,n,o){let r;const s=n&&n[o];if(F(e)||ve(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(pe(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 ga(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(F(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 Oe(e,t,n={},o,r){if(Ce.isCE||Ce.parent&&ln(Ce.parent)&&Ce.parent.isCE)return t!=="default"&&(n.name=t),H("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),$();const i=s&&is(s(n)),l=Ie(xe,{key:n.key||i&&i.key||`_${t}`},i||(o?o():[]),i&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function is(e){return e.some(t=>Wn(t)?!(t.type===Ve||t.type===xe&&!is(t.children)):!0)?e:null}const Mo=e=>e?Is(e)?qn(e)||e.proxy:Mo(e.parent):null,an=ge(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=>Mo(e.parent),$root:e=>Mo(e.root),$emit:e=>e.emit,$options:e=>Lo(e),$forceUpdate:e=>e.f||(e.f=()=>To(e.update)),$nextTick:e=>e.n||(e.n=st.bind(e.proxy)),$watch:e=>ea.bind(e)}),jo=(e,t)=>e!==G&&!e.__isScriptSetup&&se(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 v=i[t];if(v!==void 0)switch(v){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(jo(o,t))return i[t]=1,o[t];if(r!==G&&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!==G&&se(n,t))return i[t]=4,n[t];Ao&&(i[t]=0)}}const f=an[t];let h,d;if(f)return t==="$attrs"&&$e(e,"get",t),f(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==G&&se(n,t))return i[t]=4,n[t];if(d=a.config.globalProperties,se(d,t))return d[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return jo(r,t)?(r[t]=n,!0):o!==G&&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!==G&&se(e,i)||jo(t,i)||(l=s[0])&&se(l,i)||se(o,i)||se(an,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 ls(e){return F(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ao=!0;function va(e){const t=Lo(e),n=e.proxy,o=e.ctx;Ao=!1,t.beforeCreate&&as(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:l,provide:a,inject:c,created:f,beforeMount:h,mounted:d,beforeUpdate:v,updated:E,activated:x,deactivated:O,beforeDestroy:N,beforeUnmount:L,destroyed:K,unmounted:w,render:Z,renderTracked:V,renderTriggered:X,errorCaptured:m,serverPrefetch:A,expose:W,inheritAttrs:ce,components:S,directives:oe,filters:T}=t;if(c&&_a(c,o,null),i)for(const re in i){const ae=i[re];Q(ae)&&(o[re]=ae.bind(n))}if(r){const re=r.call(n,n);pe(re)&&(e.data=nn(re))}if(Ao=!0,s)for(const re in s){const ae=s[re],Ke=Q(ae)?ae.bind(n,n):Q(ae.get)?ae.get.bind(n,n):qe,Ue=!Q(ae)&&Q(ae.set)?ae.set.bind(n):qe,Xe=fe({get:Ke,set:Ue});Object.defineProperty(o,re,{enumerable:!0,configurable:!0,get:()=>Xe.value,set:Me=>Xe.value=Me})}if(l)for(const re in l)cs(l[re],o,n,re);if(a){const re=Q(a)?a.call(n):a;Reflect.ownKeys(re).forEach(ae=>{Hn(ae,re[ae])})}f&&as(f,e,"c");function J(re,ae){F(ae)?ae.forEach(Ke=>re(Ke.bind(n))):ae&&re(ae.bind(n))}if(J(ia,h),J(Ge,d),J(la,v),J(aa,E),J(oa,x),J(ra,O),J(da,m),J(fa,V),J(ua,X),J(ns,L),J(lt,w),J(ca,A),F(W))if(W.length){const re=e.exposed||(e.exposed={});W.forEach(ae=>{Object.defineProperty(re,ae,{get:()=>n[ae],set:Ke=>n[ae]=Ke})})}else e.exposed||(e.exposed={});Z&&e.render===qe&&(e.render=Z),ce!=null&&(e.inheritAttrs=ce),S&&(e.components=S),oe&&(e.directives=oe)}function _a(e,t,n=qe){F(e)&&(e=zo(e));for(const o in e){const r=e[o];let s;pe(r)?"default"in r?s=Ot(r.from||o,r.default,!0):s=Ot(r.from||o):s=Ot(r),ye(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[o]=s}}function as(e,t,n){Fe(F(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function cs(e,t,n,o){const r=o.includes(".")?Xr(n,o):()=>n[o];if(ve(e)){const s=t[e];Q(s)&&he(r,s)}else if(Q(e))he(r,e.bind(n));else if(pe(e))if(F(e))e.forEach(s=>cs(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)),pe(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:us,props:fs,emits:fs,methods:cn,computed:cn,beforeCreate:Ee,created:Ee,beforeMount:Ee,mounted:Ee,beforeUpdate:Ee,updated:Ee,beforeDestroy:Ee,beforeUnmount:Ee,destroyed:Ee,unmounted:Ee,activated:Ee,deactivated:Ee,errorCaptured:Ee,serverPrefetch:Ee,components:cn,directives:cn,watch:wa,provide:us,inject:ya};function us(e,t){return t?e?function(){return ge(Q(e)?e.call(this,this):e,Q(t)?t.call(this,this):t)}:t:e}function ya(e,t){return cn(zo(e),zo(t))}function zo(e){if(F(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ee(e,t){return e?[...new Set([].concat(e,t))]:t}function cn(e,t){return e?ge(Object.create(null),e,t):t}function fs(e,t){return e?F(e)&&F(t)?[...new Set([...e,...t])]:ge(Object.create(null),ls(e),ls(t??{})):t}function wa(e,t){if(!e)return t;if(!t)return e;const n=ge(Object.create(null),e);for(const o in t)n[o]=Ee(e[o],t[o]);return n}function ds(){return{app:null,config:{isNativeTag:Xi,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 ka(e,t){return function(o,r=null){Q(o)||(o=ge({},o)),r!=null&&!pe(r)&&(r=null);const s=ds(),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,...f){return i.has(c)||(c&&Q(c.install)?(i.add(c),c.install(a,...f)):Q(c)&&(i.add(c),c(a,...f))),a},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),a},component(c,f){return f?(s.components[c]=f,a):s.components[c]},directive(c,f){return f?(s.directives[c]=f,a):s.directives[c]},mount(c,f,h){if(!l){const d=H(o,r);return d.appContext=s,f&&t?t(d,c):e(d,c,h),l=!0,a._container=c,c.__vue_app__=a,qn(d.component)||d.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,f){return s.provides[c]=f,a},runWithContext(c){Fn=a;try{return c()}finally{Fn=null}}};return a}}let Fn=null;function Hn(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 Ot(e,t,n=!1){const o=ke||Ce;if(o||Fn){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Fn._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&Q(t)?t.call(o&&o.proxy):t}}function Ca(e,t,n,o=!1){const r={},s={};Tn(s,Kn,1),e.propsDefaults=Object.create(null),ps(e,t,r,s);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:zl(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function Ta(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 f=e.vnode.dynamicProps;for(let h=0;h<f.length;h++){let d=f[h];if(An(e.emitsOptions,d))continue;const v=t[d];if(a)if(se(s,d))v!==s[d]&&(s[d]=v,c=!0);else{const E=Ae(d);r[E]=Bo(a,l,E,v,e,!1)}else v!==s[d]&&(s[d]=v,c=!0)}}}else{ps(e,t,r,s)&&(c=!0);let f;for(const h in l)(!t||!se(t,h)&&((f=Ne(h))===h||!se(t,f)))&&(a?n&&(n[h]!==void 0||n[f]!==void 0)&&(r[h]=Bo(a,l,h,void 0,e,!0)):delete r[h]);if(s!==l)for(const h in s)(!t||!se(t,h))&&(delete s[h],c=!0)}c&&ot(e,"set","$attrs")}function ps(e,t,n,o){const[r,s]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(wn(a))continue;const c=t[a];let f;r&&se(r,f=Ae(a))?!s||!s.includes(f)?n[f]=c:(l||(l={}))[f]=c:An(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,i=!0)}if(s){const a=le(n),c=l||G;for(let f=0;f<s.length;f++){const h=s[f];n[h]=Bo(r,a,h,c[h],e,!se(c,h))}}return i}function Bo(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&&Q(a)){const{propsDefaults:c}=r;n in c?o=c[n]:(Kt(r),o=c[n]=a.call(null,t),$t())}else o=a}i[0]&&(s&&!l?o=!1:i[1]&&(o===""||o===Ne(n))&&(o=!0))}return o}function hs(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 f=h=>{a=!0;const[d,v]=hs(h,t,!0);ge(i,d),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!s&&!a)return pe(e)&&o.set(e,De),De;if(F(s))for(let f=0;f<s.length;f++){const h=Ae(s[f]);gs(h)&&(i[h]=G)}else if(s)for(const f in s){const h=Ae(f);if(gs(h)){const d=s[f],v=i[h]=F(d)||Q(d)?{type:d}:ge({},d);if(v){const E=_s(Boolean,v.type),x=_s(String,v.type);v[0]=E>-1,v[1]=x<0||E<x,(E>-1||se(v,"default"))&&l.push(h)}}}const c=[i,l];return pe(e)&&o.set(e,c),c}function gs(e){return e[0]!=="$"}function ms(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function vs(e,t){return ms(e)===ms(t)}function _s(e,t){return F(t)?t.findIndex(n=>vs(n,e)):Q(t)&&vs(t,e)?0:-1}const bs=e=>e[0]==="_"||e==="$stable",Do=e=>F(e)?e.map(et):[et(e)],Pa=(e,t,n)=>{if(t._n)return t;const o=ie((...r)=>Do(t(...r)),n);return o._c=!1,o},ys=(e,t,n)=>{const o=e._ctx;for(const r in e){if(bs(r))continue;const s=e[r];if(Q(s))t[r]=Pa(r,s,o);else if(s!=null){const i=Do(s);t[r]=()=>i}}},ws=(e,t)=>{const n=Do(t);e.slots.default=()=>n},Oa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=le(t),Tn(t,"_",n)):ys(t,e.slots={})}else e.slots={},t&&ws(e,t);Tn(e.slots,Kn,1)},Ia=(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:(ge(r,t),!n&&l===1&&delete r._):(s=!t.$stable,ys(t,r)),i=t}else t&&(ws(e,t),i={default:1});if(s)for(const l in r)!bs(l)&&!(l in i)&&delete r[l]};function No(e,t,n,o,r=!1){if(F(e)){e.forEach((d,v)=>No(d,t&&(F(t)?t[v]:t),n,o,r));return}if(ln(o)&&!r)return;const s=o.shapeFlag&4?qn(o.component)||o.component.proxy:o.el,i=r?null:s,{i:l,r:a}=e,c=t&&t.r,f=l.refs===G?l.refs={}:l.refs,h=l.setupState;if(c!=null&&c!==a&&(ve(c)?(f[c]=null,se(h,c)&&(h[c]=null)):ye(c)&&(c.value=null)),Q(a))dt(a,l,12,[i,f]);else{const d=ve(a),v=ye(a);if(d||v){const E=()=>{if(e.f){const x=d?se(h,a)?h[a]:f[a]:a.value;r?F(x)&&oo(x,s):F(x)?x.includes(s)||x.push(s):d?(f[a]=[s],se(h,a)&&(h[a]=f[a])):(a.value=[s],e.k&&(f[e.k]=a.value))}else d?(f[a]=i,se(h,a)&&(h[a]=i)):v&&(a.value=i,e.k&&(f[e.k]=i))};i?(E.id=-1,Se(E,n)):E()}}}const Se=Ql;function Ea(e){return $a(e)}function $a(e,t){const n=co();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:l,createComment:a,setText:c,setElementText:f,parentNode:h,nextSibling:d,setScopeId:v=qe,insertStaticContent:E}=e,x=(u,p,g,b=null,_=null,C=null,I=!1,k=null,P=!!p.dynamicChildren)=>{if(u===p)return;u&&!Et(u,p)&&(b=wt(u),Me(u,_,C,!0),u=null),p.patchFlag===-2&&(P=!1,p.dynamicChildren=null);const{type:y,ref:z,shapeFlag:M}=p;switch(y){case Vn:O(u,p,g,b);break;case Ve:N(u,p,g,b);break;case Ro:u==null&&L(p,g,b,I);break;case xe:S(u,p,g,b,_,C,I,k,P);break;default:M&1?Z(u,p,g,b,_,C,I,k,P):M&6?oe(u,p,g,b,_,C,I,k,P):(M&64||M&128)&&y.process(u,p,g,b,_,C,I,k,P,xt)}z!=null&&_&&No(z,u&&u.ref,C,p||u,!p)},O=(u,p,g,b)=>{if(u==null)o(p.el=l(p.children),g,b);else{const _=p.el=u.el;p.children!==u.children&&c(_,p.children)}},N=(u,p,g,b)=>{u==null?o(p.el=a(p.children||""),g,b):p.el=u.el},L=(u,p,g,b)=>{[u.el,u.anchor]=E(u.children,p,g,b,u.el,u.anchor)},K=({el:u,anchor:p},g,b)=>{let _;for(;u&&u!==p;)_=d(u),o(u,g,b),u=_;o(p,g,b)},w=({el:u,anchor:p})=>{let g;for(;u&&u!==p;)g=d(u),r(u),u=g;r(p)},Z=(u,p,g,b,_,C,I,k,P)=>{I=I||p.type==="svg",u==null?V(p,g,b,_,C,I,k,P):A(u,p,_,C,I,k,P)},V=(u,p,g,b,_,C,I,k)=>{let P,y;const{type:z,props:M,shapeFlag:B,transition:R,dirs:ne}=u;if(P=u.el=i(u.type,C,M&&M.is,M),B&8?f(P,u.children):B&16&&m(u.children,P,null,b,_,C&&z!=="foreignObject",I,k),ne&&Pt(u,null,b,"created"),X(P,u,u.scopeId,I,b),M){for(const ue in M)ue!=="value"&&!wn(ue)&&s(P,ue,null,M[ue],C,u.children,b,_,me);"value"in M&&s(P,"value",null,M.value),(y=M.onVnodeBeforeMount)&&tt(y,b,u)}ne&&Pt(u,null,b,"beforeMount");const de=(!_||_&&!_.pendingBranch)&&R&&!R.persisted;de&&R.beforeEnter(P),o(P,p,g),((y=M&&M.onVnodeMounted)||de||ne)&&Se(()=>{y&&tt(y,b,u),de&&R.enter(P),ne&&Pt(u,null,b,"mounted")},_)},X=(u,p,g,b,_)=>{if(g&&v(u,g),b)for(let C=0;C<b.length;C++)v(u,b[C]);if(_){let C=_.subTree;if(p===C){const I=_.vnode;X(u,I,I.scopeId,I.slotScopeIds,_.parent)}}},m=(u,p,g,b,_,C,I,k,P=0)=>{for(let y=P;y<u.length;y++){const z=u[y]=k?gt(u[y]):et(u[y]);x(null,z,p,g,b,_,C,I,k)}},A=(u,p,g,b,_,C,I)=>{const k=p.el=u.el;let{patchFlag:P,dynamicChildren:y,dirs:z}=p;P|=u.patchFlag&16;const M=u.props||G,B=p.props||G;let R;g&&It(g,!1),(R=B.onVnodeBeforeUpdate)&&tt(R,g,p,u),z&&Pt(p,u,g,"beforeUpdate"),g&&It(g,!0);const ne=_&&p.type!=="foreignObject";if(y?W(u.dynamicChildren,y,k,g,b,ne,C):I||ae(u,p,k,null,g,b,ne,C,!1),P>0){if(P&16)ce(k,p,M,B,g,b,_);else if(P&2&&M.class!==B.class&&s(k,"class",null,B.class,_),P&4&&s(k,"style",M.style,B.style,_),P&8){const de=p.dynamicProps;for(let ue=0;ue<de.length;ue++){const _e=de[ue],Je=M[_e],Gt=B[_e];(Gt!==Je||_e==="value")&&s(k,_e,Je,Gt,_,u.children,g,b,me)}}P&1&&u.children!==p.children&&f(k,p.children)}else!I&&y==null&&ce(k,p,M,B,g,b,_);((R=B.onVnodeUpdated)||z)&&Se(()=>{R&&tt(R,g,p,u),z&&Pt(p,u,g,"updated")},b)},W=(u,p,g,b,_,C,I)=>{for(let k=0;k<p.length;k++){const P=u[k],y=p[k],z=P.el&&(P.type===xe||!Et(P,y)||P.shapeFlag&70)?h(P.el):g;x(P,y,z,null,b,_,C,I,!0)}},ce=(u,p,g,b,_,C,I)=>{if(g!==b){if(g!==G)for(const k in g)!wn(k)&&!(k in b)&&s(u,k,g[k],null,I,p.children,_,C,me);for(const k in b){if(wn(k))continue;const P=b[k],y=g[k];P!==y&&k!=="value"&&s(u,k,y,P,I,p.children,_,C,me)}"value"in b&&s(u,"value",g.value,b.value)}},S=(u,p,g,b,_,C,I,k,P)=>{const y=p.el=u?u.el:l(""),z=p.anchor=u?u.anchor:l("");let{patchFlag:M,dynamicChildren:B,slotScopeIds:R}=p;R&&(k=k?k.concat(R):R),u==null?(o(y,g,b),o(z,g,b),m(p.children,g,z,_,C,I,k,P)):M>0&&M&64&&B&&u.dynamicChildren?(W(u.dynamicChildren,B,g,_,C,I,k),(p.key!=null||_&&p===_.subTree)&&xs(u,p,!0)):ae(u,p,g,z,_,C,I,k,P)},oe=(u,p,g,b,_,C,I,k,P)=>{p.slotScopeIds=k,u==null?p.shapeFlag&512?_.ctx.activate(p,g,b,I,P):T(p,g,b,_,C,I,P):U(u,p,P)},T=(u,p,g,b,_,C,I)=>{const k=u.component=Da(u,b,_);if(Bn(u)&&(k.ctx.renderer=xt),Na(k),k.asyncDep){if(_&&_.registerDep(k,J),!u.el){const P=k.subTree=H(Ve);N(null,P,p,g)}return}J(k,u,p,g,_,C,I)},U=(u,p,g)=>{const b=p.component=u.component;if(Zl(u,p,g))if(b.asyncDep&&!b.asyncResolved){re(b,p,g);return}else b.next=p,Vl(b.update),b.update();else p.el=u.el,b.vnode=p},J=(u,p,g,b,_,C,I)=>{const k=()=>{if(u.isMounted){let{next:z,bu:M,u:B,parent:R,vnode:ne}=u,de=z,ue;It(u,!1),z?(z.el=ne.el,re(u,z,I)):z=ne,M&&Cn(M),(ue=z.props&&z.props.onVnodeBeforeUpdate)&&tt(ue,R,z,ne),It(u,!0);const _e=Po(u),Je=u.subTree;u.subTree=_e,x(Je,_e,h(Je.el),wt(Je),u,_,C),z.el=_e.el,de===null&&Xl(u,_e.el),B&&Se(B,_),(ue=z.props&&z.props.onVnodeUpdated)&&Se(()=>tt(ue,R,z,ne),_)}else{let z;const{el:M,props:B}=p,{bm:R,m:ne,parent:de}=u,ue=ln(p);if(It(u,!1),R&&Cn(R),!ue&&(z=B&&B.onVnodeBeforeMount)&&tt(z,de,p),It(u,!0),M&&vn){const _e=()=>{u.subTree=Po(u),vn(M,u.subTree,u,_,null)};ue?p.type.__asyncLoader().then(()=>!u.isUnmounted&&_e()):_e()}else{const _e=u.subTree=Po(u);x(null,_e,g,b,u,_,C),p.el=_e.el}if(ne&&Se(ne,_),!ue&&(z=B&&B.onVnodeMounted)){const _e=p;Se(()=>tt(z,de,_e),_)}(p.shapeFlag&256||de&&ln(de.vnode)&&de.vnode.shapeFlag&256)&&u.a&&Se(u.a,_),u.isMounted=!0,p=g=b=null}},P=u.effect=new go(k,()=>To(y),u.scope),y=u.update=()=>P.run();y.id=u.uid,It(u,!0),y()},re=(u,p,g)=>{p.component=u;const b=u.vnode.props;u.vnode=p,u.next=null,Ta(u,p.props,b,g),Ia(u,p.children,g),Dt(),Wr(),Nt()},ae=(u,p,g,b,_,C,I,k,P=!1)=>{const y=u&&u.children,z=u?u.shapeFlag:0,M=p.children,{patchFlag:B,shapeFlag:R}=p;if(B>0){if(B&128){Ue(y,M,g,b,_,C,I,k,P);return}else if(B&256){Ke(y,M,g,b,_,C,I,k,P);return}}R&8?(z&16&&me(y,_,C),M!==y&&f(g,M)):z&16?R&16?Ue(y,M,g,b,_,C,I,k,P):me(y,_,C,!0):(z&8&&f(g,""),R&16&&m(M,g,b,_,C,I,k,P))},Ke=(u,p,g,b,_,C,I,k,P)=>{u=u||De,p=p||De;const y=u.length,z=p.length,M=Math.min(y,z);let B;for(B=0;B<M;B++){const R=p[B]=P?gt(p[B]):et(p[B]);x(u[B],R,g,null,_,C,I,k,P)}y>z?me(u,_,C,!0,!1,M):m(p,g,b,_,C,I,k,P,M)},Ue=(u,p,g,b,_,C,I,k,P)=>{let y=0;const z=p.length;let M=u.length-1,B=z-1;for(;y<=M&&y<=B;){const R=u[y],ne=p[y]=P?gt(p[y]):et(p[y]);if(Et(R,ne))x(R,ne,g,null,_,C,I,k,P);else break;y++}for(;y<=M&&y<=B;){const R=u[M],ne=p[B]=P?gt(p[B]):et(p[B]);if(Et(R,ne))x(R,ne,g,null,_,C,I,k,P);else break;M--,B--}if(y>M){if(y<=B){const R=B+1,ne=R<z?p[R].el:b;for(;y<=B;)x(null,p[y]=P?gt(p[y]):et(p[y]),g,ne,_,C,I,k,P),y++}}else if(y>B)for(;y<=M;)Me(u[y],_,C,!0),y++;else{const R=y,ne=y,de=new Map;for(y=ne;y<=B;y++){const Be=p[y]=P?gt(p[y]):et(p[y]);Be.key!=null&&de.set(Be.key,y)}let ue,_e=0;const Je=B-ne+1;let Gt=!1,Ui=0;const _n=new Array(Je);for(y=0;y<Je;y++)_n[y]=0;for(y=R;y<=M;y++){const Be=u[y];if(_e>=Je){Me(Be,_,C,!0);continue}let nt;if(Be.key!=null)nt=de.get(Be.key);else for(ue=ne;ue<=B;ue++)if(_n[ue-ne]===0&&Et(Be,p[ue])){nt=ue;break}nt===void 0?Me(Be,_,C,!0):(_n[nt-ne]=y+1,nt>=Ui?Ui=nt:Gt=!0,x(Be,p[nt],g,null,_,C,I,k,P),_e++)}const qi=Gt?Sa(_n):De;for(ue=qi.length-1,y=Je-1;y>=0;y--){const Be=ne+y,nt=p[Be],Yi=Be+1<z?p[Be+1].el:b;_n[y]===0?x(null,nt,g,Yi,_,C,I,k,P):Gt&&(ue<0||y!==qi[ue]?Xe(nt,g,Yi,2):ue--)}}},Xe=(u,p,g,b,_=null)=>{const{el:C,type:I,transition:k,children:P,shapeFlag:y}=u;if(y&6){Xe(u.component.subTree,p,g,b);return}if(y&128){u.suspense.move(p,g,b);return}if(y&64){I.move(u,p,g,xt);return}if(I===xe){o(C,p,g);for(let M=0;M<P.length;M++)Xe(P[M],p,g,b);o(u.anchor,p,g);return}if(I===Ro){K(u,p,g);return}if(b!==2&&y&1&&k)if(b===0)k.beforeEnter(C),o(C,p,g),Se(()=>k.enter(C),_);else{const{leave:M,delayLeave:B,afterLeave:R}=k,ne=()=>o(C,p,g),de=()=>{M(C,()=>{ne(),R&&R()})};B?B(C,ne,de):de()}else o(C,p,g)},Me=(u,p,g,b=!1,_=!1)=>{const{type:C,props:I,ref:k,children:P,dynamicChildren:y,shapeFlag:z,patchFlag:M,dirs:B}=u;if(k!=null&&No(k,null,g,u,!0),z&256){p.ctx.deactivate(u);return}const R=z&1&&B,ne=!ln(u);let de;if(ne&&(de=I&&I.onVnodeBeforeUnmount)&&tt(de,p,u),z&6)te(u.component,g,b);else{if(z&128){u.suspense.unmount(g,b);return}R&&Pt(u,null,p,"beforeUnmount"),z&64?u.type.remove(u,p,g,_,xt,b):y&&(C!==xe||M>0&&M&64)?me(y,p,g,!1,!0):(C===xe&&M&384||!_&&z&16)&&me(P,p,g),b&&Qt(u)}(ne&&(de=I&&I.onVnodeUnmounted)||R)&&Se(()=>{de&&tt(de,p,u),R&&Pt(u,null,p,"unmounted")},g)},Qt=u=>{const{type:p,el:g,anchor:b,transition:_}=u;if(p===xe){j(g,b);return}if(p===Ro){w(u);return}const C=()=>{r(g),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(u.shapeFlag&1&&_&&!_.persisted){const{leave:I,delayLeave:k}=_,P=()=>I(g,C);k?k(u.el,C,P):P()}else C()},j=(u,p)=>{let g;for(;u!==p;)g=d(u),r(u),u=g;r(p)},te=(u,p,g)=>{const{bum:b,scope:_,update:C,subTree:I,um:k}=u;b&&Cn(b),_.stop(),C&&(C.active=!1,Me(I,u,p,g)),k&&Se(k,p),Se(()=>{u.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},me=(u,p,g,b=!1,_=!1,C=0)=>{for(let I=C;I<u.length;I++)Me(u[I],p,g,b,_)},wt=u=>u.shapeFlag&6?wt(u.component.subTree):u.shapeFlag&128?u.suspense.next():d(u.anchor||u.el),to=(u,p,g)=>{u==null?p._vnode&&Me(p._vnode,null,null,!0):x(p._vnode||null,u,p,null,null,null,g),Wr(),Kr(),p._vnode=u},xt={p:x,um:Me,m:Xe,r:Qt,mt:T,mc:m,pc:ae,pbc:W,n:wt,o:e};let mn,vn;return t&&([mn,vn]=t(xt)),{render:to,hydrate:mn,createApp:ka(to,mn)}}function It({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function xs(e,t,n=!1){const o=e.children,r=t.children;if(F(o)&&F(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]=gt(r[s]),l.el=i.el),n||xs(i,l)),l.type===Vn&&(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,xe=Symbol.for("v-fgt"),Vn=Symbol.for("v-txt"),Ve=Symbol.for("v-cmt"),Ro=Symbol.for("v-stc"),un=[];let Ze=null;function $(e=!1){un.push(Ze=e?null:[])}function ja(){un.pop(),Ze=un[un.length-1]||null}let fn=1;function ks(e){fn+=e}function Cs(e){return e.dynamicChildren=fn>0?Ze||De:null,ja(),fn>0&&Ze&&Ze.push(e),e}function q(e,t,n,o,r,s){return Cs(Y(e,t,n,o,r,s,!0))}function Ie(e,t,n,o,r){return Cs(H(e,t,n,o,r,!0))}function Wn(e){return e?e.__v_isVNode===!0:!1}function Et(e,t){return e.type===t.type&&e.key===t.key}const Kn="__vInternal",Ts=({key:e})=>e??null,Un=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ve(e)||ye(e)||Q(e)?{i:Ce,r:e,k:t,f:!!n}:e:null);function Y(e,t=null,n=null,o=0,r=null,s=e===xe?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ts(t),ref:t&&Un(t),scopeId:Yr,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:Ce};return l?(Fo(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=ve(n)?8:16),fn>0&&!i&&Ze&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&Ze.push(a),a}const H=Aa;function Aa(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===os)&&(e=Ve),Wn(e)){const l=ht(e,t,!0);return n&&Fo(l,n),fn>0&&!s&&Ze&&(l.shapeFlag&6?Ze[Ze.indexOf(e)]=l:Ze.push(l)),l.patchFlag|=-2,l}if(Wa(e)&&(e=e.__vccOpts),t){t=La(t);let{class:l,style:a}=t;l&&!ve(l)&&(t.class=be(l)),pe(a)&&(Lr(a)&&!F(a)&&(a=ge({},a)),t.style=Re(a))}const i=ve(e)?1:Jl(e)?128:Ma(e)?64:pe(e)?4:Q(e)?2:0;return Y(e,t,n,o,r,i,s,!0)}function La(e){return e?Lr(e)||Kn in e?ge({},e):e:null}function ht(e,t,n=!1){const{props:o,ref:r,patchFlag:s,children:i}=e,l=t?Ho(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?F(r)?r.concat(Un(t)):[r,Un(t)]:Un(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xe?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ht(e.ssContent),ssFallback:e.ssFallback&&ht(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Vt(e=" ",t=0){return H(Vn,null,e,t)}function ze(e="",t=!1){return t?($(),Ie(Ve,null,e)):H(Ve,null,e)}function et(e){return e==null||typeof e=="boolean"?H(Ve):F(e)?H(xe,null,e.slice()):typeof e=="object"?gt(e):H(Vn,null,String(e))}function gt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ht(e)}function Fo(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(F(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Fo(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Kn in t)?t._ctx=Ce:r===3&&Ce&&(Ce.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Q(t)?(t={default:t,_ctx:Ce},n=32):(t=String(t),o&64?(n=16,t=[Vt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ho(...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=Re([t.style,o.style]);else if(bn(r)){const s=t[r],i=o[r];i&&s!==i&&!(F(s)&&s.includes(i))&&(t[r]=s?[].concat(s,i):i)}else r!==""&&(t[r]=o[r])}return t}function tt(e,t,n,o=null){Fe(e,t,7,[n,o])}const za=ds();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 ll(!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:hs(o,r),emitsOptions:qr(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=Ul.bind(null,s),e.ce&&e.ce(s),s}let ke=null;const Ps=()=>ke||Ce;let Vo,Wt,Os="__VUE_INSTANCE_SETTERS__";(Wt=co()[Os])||(Wt=co()[Os]=[]),Wt.push(e=>ke=e),Vo=e=>{Wt.length>1?Wt.forEach(t=>t(e)):Wt[0](e)};const Kt=e=>{Vo(e),e.scope.on()},$t=()=>{ke&&ke.scope.off(),Vo(null)};function Is(e){return e.vnode.shapeFlag&4}let dn=!1;function Na(e,t=!1){dn=t;const{props:n,children:o}=e.vnode,r=Is(e);Ca(e,n,r,t),Oa(e,o);const s=r?Ra(e,t):void 0;return dn=!1,s}function Ra(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=zr(new Proxy(e.ctx,ma));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?Ha(e):null;Kt(e),Dt();const s=dt(o,e,0,[e.props,r]);if(Nt(),$t(),fr(s)){if(s.then($t,$t),t)return s.then(i=>{Es(e,i,t)}).catch(i=>{jn(i,e,0)});e.asyncDep=s}else Es(e,s,t)}else Ss(e,t)}function Es(e,t,n){Q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=Fr(t)),Ss(e,n)}let $s;function Ss(e,t,n){const o=e.type;if(!e.render){if(!t&&$s&&!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=ge(ge({isCustomElement:s,delimiters:l},i),a);o.render=$s(r,c)}}e.render=o.render||qe}Kt(e),Dt(),va(e),Nt(),$t()}function Fa(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return $e(e,"get","$attrs"),t[n]}}))}function Ha(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Fa(e)},slots:e.slots,emit:e.emit,expose:t}}function qn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Fr(zr(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 fe=(e,t)=>Rl(e,t,dn);function Ms(e,t,n){const o=arguments.length;return o===2?pe(t)&&!F(t)?Wn(t)?H(e,null,[t]):H(e,t):H(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Wn(n)&&(n=[n]),H(e,t,n))}const Ka=Symbol.for("v-scx"),Ua=()=>Ot(Ka),qa="3.3.2",Ya="http://www.w3.org/2000/svg",St=typeof document<"u"?document:null,js=St&&St.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?St.createElementNS(Ya,e):St.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>St.createTextNode(e),createComment:e=>St.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>St.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{js.innerHTML=o?`<svg>${e}</svg>`:e;const l=js.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=ve(n);if(n&&!r){if(t&&!ve(t))for(const s in t)n[s]==null&&Wo(o,s,"");for(const s in n)Wo(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 Wo(e,t,n){if(F(n))n.forEach(o=>Wo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Qa(e,t);As.test(n)?e.setProperty(Ne(o),n.replace(As,""),"important"):e[o]=n}}const Ls=["Webkit","Moz","ms"],Ko={};function Qa(e,t){const n=Ko[t];if(n)return n;let o=Ae(t);if(o!=="filter"&&o in e)return Ko[t]=o;o=kn(o);for(let r=0;r<Ls.length;r++){const s=Ls[r]+o;if(s in e)return Ko[t]=s}return t}const zs="http://www.w3.org/1999/xlink";function Ga(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(zs,t.slice(6,t.length)):e.setAttributeNS(zs,t,n);else{const s=il(t);n==null||s&&!gr(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,f=n??"";c!==f&&(e.value=f),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=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 Ut(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);Ut(e,l,c,a)}else i&&(tc(e,l,i,a),s[t]=void 0)}}const Bs=/(?:Once|Passive|Capture)$/;function oc(e){let t;if(Bs.test(e)){t={};let o;for(;o=e.match(Bs);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ne(e.slice(2)),t]}let Uo=0;const rc=Promise.resolve(),sc=()=>Uo||(rc.then(()=>Uo=0),Uo=Date.now());function ic(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Fe(lc(o,n.value),t,5,[o])};return n.value=e,n.attached=sc(),n}function lc(e,t){if(F(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 Ds=/^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):bn(t)?no(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&&Ds.test(t)&&Q(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ds.test(t)&&ve(n)?!1:t in e}function uc(e,t){const n=Te(e);class o extends qo{constructor(s){super(n,s,t)}}return o.def=n,o}const fc=typeof HTMLElement<"u"?HTMLElement:class{};class qo 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,st(()=>{this._connected||(Zs(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&&!F(s))for(const a in s){const c=s[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=ao(this._props[a])),(l||(l=Object.create(null)))[Ae(a)]=!0)}this._numberProps=l,r&&this._resolveProps(o),this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=F(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(Ae))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(s){this._setProp(r,s)}})}_setAttr(t){let n=this.getAttribute(t);const o=Ae(t);this._numberProps&&this._numberProps[o]&&(n=ao(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(Ne(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ne(t),n+""):n||this.removeAttribute(Ne(t))))}_update(){Zs(this._createVNode(),this.shadowRoot)}_createVNode(){const t=H(this._def,ge({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(s,i)=>{this.dispatchEvent(new CustomEvent(s,{detail:i}))};n.emit=(s,...i)=>{o(s,i),Ne(s)!==s&&o(Ne(s),i)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof qo){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 mt="transition",pn="animation",qt=(e,{slots:t})=>Ms(na,dc(e),t);qt.displayName="Transition";const Ns={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};qt.props=ge({},Jr,Ns);const Mt=(e,t=[])=>{F(e)?e.forEach(n=>n(...t)):e&&e(...t)},Rs=e=>e?F(e)?e.some(t=>t.length>1):e.length>1:!1;function dc(e){const t={};for(const S in e)S in Ns||(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:f=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,E=pc(r),x=E&&E[0],O=E&&E[1],{onBeforeEnter:N,onEnter:L,onEnterCancelled:K,onLeave:w,onLeaveCancelled:Z,onBeforeAppear:V=N,onAppear:X=L,onAppearCancelled:m=K}=t,A=(S,oe,T)=>{jt(S,oe?f:l),jt(S,oe?c:i),T&&T()},W=(S,oe)=>{S._isLeaving=!1,jt(S,h),jt(S,v),jt(S,d),oe&&oe()},ce=S=>(oe,T)=>{const U=S?X:L,J=()=>A(oe,S,T);Mt(U,[oe,J]),Fs(()=>{jt(oe,S?a:s),vt(oe,S?f:l),Rs(U)||Hs(oe,o,x,J)})};return ge(t,{onBeforeEnter(S){Mt(N,[S]),vt(S,s),vt(S,i)},onBeforeAppear(S){Mt(V,[S]),vt(S,a),vt(S,c)},onEnter:ce(!1),onAppear:ce(!0),onLeave(S,oe){S._isLeaving=!0;const T=()=>W(S,oe);vt(S,h),mc(),vt(S,d),Fs(()=>{S._isLeaving&&(jt(S,h),vt(S,v),Rs(w)||Hs(S,o,O,T))}),Mt(w,[S,T])},onEnterCancelled(S){A(S,!1),Mt(K,[S])},onAppearCancelled(S){A(S,!0),Mt(m,[S])},onLeaveCancelled(S){W(S),Mt(Z,[S])}})}function pc(e){if(e==null)return null;if(pe(e))return[Yo(e.enter),Yo(e.leave)];{const t=Yo(e);return[t,t]}}function Yo(e){return ao(e)}function vt(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 Fs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let hc=0;function Hs(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 f=0;const h=()=>{e.removeEventListener(c,d),s()},d=v=>{v.target===e&&++f>=a&&h()};setTimeout(()=>{f<a&&h()},l+1),e.addEventListener(c,d)}function gc(e,t){const n=window.getComputedStyle(e),o=E=>(n[E]||"").split(", "),r=o(`${mt}Delay`),s=o(`${mt}Duration`),i=Vs(r,s),l=o(`${pn}Delay`),a=o(`${pn}Duration`),c=Vs(l,a);let f=null,h=0,d=0;t===mt?i>0&&(f=mt,h=i,d=s.length):t===pn?c>0&&(f=pn,h=c,d=a.length):(h=Math.max(i,c),f=h>0?i>c?mt:pn:null,d=f?f===mt?s.length:a.length:0);const v=f===mt&&/\b(transform|all)(,|$)/.test(o(`${mt}Property`).toString());return{type:f,timeout:h,propCount:d,hasTransform:v}}function Vs(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Ws(n)+Ws(e[o])))}function Ws(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function mc(){return document.body.offsetHeight}const Ks=e=>{const t=e.props["onUpdate:modelValue"]||!1;return F(t)?n=>Cn(t,n):t};function vc(e){e.target.composing=!0}function Us(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=Ks(r);const s=o||r.props&&r.props.type==="number";Ut(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),s&&(l=lo(l)),e._assign(l)}),n&&Ut(e,"change",()=>{e.value=e.value.trim()}),t||(Ut(e,"compositionstart",vc),Ut(e,"compositionend",Us),Ut(e,"change",Us))},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")&&lo(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))},At=(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"},qs=(e,t)=>n=>{if(!("key"in n))return;const o=Ne(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 kc=ge({patchProp:ac},Za);let Ys;function Cc(){return Ys||(Ys=Ea(kc))}const Zs=(...e)=>{Cc().render(...e)},Tc={class:"flex gap-3 items-center children-pointer-events-auto relative z-30"},Pc={class:"flex justify-between items-end"},Oc={class:"inline-block children-pointer-events-auto w-1/3"},Ic={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Ec={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},$c={class:"inline-block z-20 relative"},Xs=Te({__name:"ReaderLayout",props:{idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{},spaceBottom:{},touchDevice:{type:Boolean}},setup(e){return(t,n)=>($(),q("div",{class:be(["fixed inset-0 bg-black visible z-[9999999999] text-stone-100 font-sans text-base",{"cursor-none":t.idle}])},[Oe(t.$slots,"default"),Y("div",{class:be(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear inset-2 sm:inset-3 bottom-0 flex flex-col justify-between",{"opacity-100 z-10":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}]),style:Re({paddingTop:`${t.spaceTop||0}px`,paddingBottom:t.spaceBottom?`${t.spaceBottom}px`:""})},[Y("div",Tc,[Oe(t.$slots,"back"),t.touchDevice?ze("",!0):Oe(t.$slots,"exit",{key:0}),Oe(t.$slots,"chapter-nav")]),Y("div",Pc,[Y("div",Oc,[Oe(t.$slots,"page-nav")]),Y("div",Ic,[Oe(t.$slots,"reset-zoom")]),Y("div",Ec,[Oe(t.$slots,"entry"),Y("div",$c,[Oe(t.$slots,"settings")]),Oe(t.$slots,"play")])]),Y("div",{class:be(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[Oe(t.$slots,"progress")],2)],6)],2))}}),Sc=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),we=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Mc={},jc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Ac=[Y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[Y("circle",{cx:"14",cy:"14",r:"12"}),Y("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function Lc(e,t){return $(),q("svg",jc,Ac)}const Js=we(Mc,[["render",Lc]]),zc=Object.freeze(Object.defineProperty({__proto__:null,default:Js},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"},Qs=Te({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=Js;return t.zoom!==1?($(),q("button",Bc,[Y("div",Dc,[H(o)]),Y("div",Nc,at(Math.ceil(t.zoom*100))+"%",1)])):ze("",!0)}}}),Rc=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),Fc={},Hc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Vc=[Y("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 $(),q("svg",Hc,Vc)}const Zo=we(Fc,[["render",Wc]]),Kc=Object.freeze(Object.defineProperty({__proto__:null,default:Zo},Symbol.toStringTag,{value:"Module"})),Uc={},qc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Yc=[Y("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),Y("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 $(),q("svg",qc,Yc)}const Xo=we(Uc,[["render",Zc]]),Xc=Object.freeze(Object.defineProperty({__proto__:null,default:Xo},Symbol.toStringTag,{value:"Module"}));function Jc({touchDevice:e}){const t=ee(!1);let n=0;return Hn("busy:touchDevice",e),Hn("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function Jo({desktopOnly:e=!1}={}){if(e&&Ot("busy:touchDevice"))return()=>{};const t=Ot("setBusyState");let n=!1;return lt(()=>{n&&(t==null||t(!1))}),o=>{n!==o&&(n=o,t==null||t(o))}}const Qc=(e,t,n)=>{const o=document.createElement("span");let r=1,s=.65;const i=setInterval(a,20);l();function l(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${n.currentTarget.clientWidth/2}px`,o.style.top=`${n.currentTarget.clientHeight/2}px`,n.currentTarget.appendChild(o)}function a(){const c=+t.value||50;r<=c?(r++,s-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${s}`):(o.remove(),clearInterval(i))}},Yt={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.addEventListener("click",n=>Qc(e,t,n))}},Gc={class:"group-hover:bg-stone-100 group-hover:bg-opacity-10 duration-200 rounđe-full p-2 w-full h-full inline-flex justify-center items-center"},Yn=Te({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=Jo({desktopOnly:!0});let o=!1;function r(){o||(o=!0,n(!0))}function s(){o&&(o=!1,n(!1))}return(i,l)=>pt(($(),Ie(ha(i.href?"a":"button"),Ho(i.href?{href:i.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full group duration-200",{"pointer-events-none text-stone-400 hover:text-stone-400":i.disabled,"text-stone-100 hover:text-stone-100":!i.disabled,"bg-black bg-opacity-50":!i.transparent}],onClick:l[0]||(l[0]=At(()=>t("click"),["stop"])),onMouseenter:r,onMouseleave:s}),{default:ie(()=>[Y("div",Gc,[Oe(i.$slots,"default")])]),_:3},16,["class"])),[[D(Yt),15]])}}),eu=Object.freeze(Object.defineProperty({__proto__:null,default:Yn},Symbol.toStringTag,{value:"Module"}));class tu{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 nu(){const e=new tu;return lt(()=>e.dispose()),Hn("keyController",e),e}function Qo(e){const t=Ot("keyController");Ge(()=>t.addListener(e)),lt(()=>t.removeListener(e))}const ou={class:"relative flex w-full flex-shrink-0 justify-center items-center h-16"},ru={class:"inline-flex items-center h-full absolute left-3 top-0"},su=Y("span",{class:"text-xl font-medium"},"Customize",-1),iu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},Gs=Te({__name:"BottomSheet",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;Qo({onKeyDown:r});const o=Jo();he(()=>n.modelValue,s=>{o(s)},{immediate:!0});function r(s){n.modelValue&&s.key==="Escape"&&(t("update:modelValue",!1),s.preventDefault())}return(s,i)=>{const l=pa("IconClose"),a=Yn;return $(),q("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))},[H(qt,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:ie(()=>[n.modelValue?($(),q("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]=At(()=>{},["stop"]))},[Y("div",ou,[Y("div",ru,[H(a,{transparent:"",onClick:i[0]||(i[0]=()=>t("update:modelValue",!1))},{default:ie(()=>[H(l)]),_:1})]),su]),Y("div",iu,[Oe(s.$slots,"default")])])):ze("",!0)]),_:3})],2)}}}),lu=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),au=["min","max","step"],cu={class:"flex-shrink-0"},ei=we(Te({__name:"InputPercentage",props:{modelValue:{},min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=fe({get(){return n.modelValue},set(r){t("update:modelValue",+r)}});return(r,s)=>($(),q("div",{class:be(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:Re({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[pt(Y("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,au),[[_c,o.value]]),Y("p",cu,[Oe(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
|
+
`]]]),uu=Object.freeze(Object.defineProperty({__proto__:null,default:ei},Symbol.toStringTag,{value:"Module"})),fu={class:"flex items-center mb-8 last:mb-0"},du={class:"flex-grow overflow-hidden"},ti=Te({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>($(),q("div",fu,[Y("div",{class:be(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},at(t.label),3),Y("div",du,[Oe(t.$slots,"default")])]))}}),pu=Object.freeze(Object.defineProperty({__proto__:null,default:ti},Symbol.toStringTag,{value:"Module"})),hu=["onClick","onKeyup"],ni=Te({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ee(null),r=ee({width:"",left:""});Ge(()=>{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)=>($(),q("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[Y("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Re(r.value)},null,4),($(!0),q(xe,null,Nn(n.items,(a,c)=>pt(($(),q("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:[qs(()=>s(c),["enter"]),qs(()=>s(c),["space"])]},[Vt(at(a),1)],42,hu)),[[D(Yt),30]])),128))],512))}}),gu=Object.freeze(Object.defineProperty({__proto__:null,default:ni},Symbol.toStringTag,{value:"Module"})),mu={},vu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},_u=[Y("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),Y("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function bu(e,t){return $(),q("svg",vu,_u)}const oi=we(mu,[["render",bu]]),yu=Object.freeze(Object.defineProperty({__proto__:null,default:oi},Symbol.toStringTag,{value:"Module"}));var ri;const Go=typeof window<"u",wu=e=>typeof e=="function",xu=e=>typeof e=="string",_t=()=>{};Go&&((ri=window==null?void 0:window.navigator)!=null&&ri.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Zn(e){return typeof e=="function"?e():D(e)}function si(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 ii=e=>e();function ku(e,t={}){let n,o,r=_t;const s=l=>{clearTimeout(l),r(),r=_t};return l=>{const a=Zn(e),c=Zn(t.maxWait);return n&&s(n),a<=0||c!==void 0&&c<=0?(o&&(s(o),o=null),Promise.resolve(l())):new Promise((f,h)=>{r=t.rejectOnCancel?h:f,c&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,f(l())},c)),n=setTimeout(()=>{o&&s(o),o=null,f(l())},a)})}}function Cu(e=ii){const t=ee(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...s)=>{t.value&&e(...s)};return{isActive:yo(t),pause:n,resume:o,eventFilter:r}}function Tu(e,t=!1,n="Timeout"){return new Promise((o,r)=>{setTimeout(t?()=>r(n):o,e)})}function Pu(e){return e}function er(e){return vr()?(cl(e),!0):!1}function Zt(e,t=200,n={}){return si(ku(t,n),e)}function Ou(e,t=!0){Ps()?Ge(e):t?e():st(e)}var li=Object.getOwnPropertySymbols,Iu=Object.prototype.hasOwnProperty,Eu=Object.prototype.propertyIsEnumerable,$u=(e,t)=>{var n={};for(var o in e)Iu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&li)for(var o of li(e))t.indexOf(o)<0&&Eu.call(e,o)&&(n[o]=e[o]);return n};function Su(e,t,n={}){const o=n,{eventFilter:r=ii}=o,s=$u(o,["eventFilter"]);return he(e,si(r,t),s)}var Mu=Object.defineProperty,ju=Object.defineProperties,Au=Object.getOwnPropertyDescriptors,Xn=Object.getOwnPropertySymbols,ai=Object.prototype.hasOwnProperty,ci=Object.prototype.propertyIsEnumerable,ui=(e,t,n)=>t in e?Mu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lu=(e,t)=>{for(var n in t||(t={}))ai.call(t,n)&&ui(e,n,t[n]);if(Xn)for(var n of Xn(t))ci.call(t,n)&&ui(e,n,t[n]);return e},zu=(e,t)=>ju(e,Au(t)),Bu=(e,t)=>{var n={};for(var o in e)ai.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Xn)for(var o of Xn(e))t.indexOf(o)<0&&ci.call(e,o)&&(n[o]=e[o]);return n};function Du(e,t,n={}){const o=n,{eventFilter:r}=o,s=Bu(o,["eventFilter"]),{eventFilter:i,pause:l,resume:a,isActive:c}=Cu(r);return{stop:Su(e,t,zu(Lu({},s),{eventFilter:i})),pause:l,resume:a,isActive:c}}function Lt(e){var t;const n=Zn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const bt=Go?window:void 0,Nu=Go?window.document:void 0;function gn(...e){let t,n,o,r;if(xu(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=bt):[t,n,o,r]=e,!t)return _t;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(f=>f()),s.length=0},l=(f,h,d)=>(f.addEventListener(h,d,r),()=>f.removeEventListener(h,d,r)),a=he(()=>Lt(t),f=>{i(),f&&s.push(...n.flatMap(h=>o.map(d=>l(f,h,d))))},{immediate:!0,flush:"post"}),c=()=>{a(),i()};return er(c),c}function Ru(e,t,n){const{immediate:o=!0,delay:r=0,onError:s=_t,onSuccess:i=_t,resetOnExecute:l=!0,shallow:a=!0,throwError:c}=n??{},f=a?Nr(t):ee(t),h=ee(!1),d=ee(!1),v=ee(void 0);async function E(x=0,...O){l&&(f.value=t),v.value=void 0,h.value=!1,d.value=!0,x>0&&await Tu(x);const N=typeof e=="function"?e(...O):e;try{const L=await N;f.value=L,h.value=!0,i(L)}catch(L){if(v.value=L,s(L),c)throw v}finally{d.value=!1}return f.value}return o&&E(r),{state:f,isReady:h,isLoading:d,error:v,execute:E}}function fi(e,t=!1){const n=ee(),o=()=>n.value=!!e();return o(),Ou(o,t),n}const tr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},nr="__vueuse_ssr_handlers__";tr[nr]=tr[nr]||{};const Fu=tr[nr];function Hu(e,t){return Fu[e]||t}function Vu(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 Wu=Object.defineProperty,di=Object.getOwnPropertySymbols,Ku=Object.prototype.hasOwnProperty,Uu=Object.prototype.propertyIsEnumerable,pi=(e,t,n)=>t in e?Wu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hi=(e,t)=>{for(var n in t||(t={}))Ku.call(t,n)&&pi(e,n,t[n]);if(di)for(var n of di(t))Uu.call(t,n)&&pi(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 gi(e,t,n,o={}){var r;const{flush:s="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:f,window:h=bt,eventFilter:d,onError:v=X=>{console.error(X)}}=o,E=(f?Nr:ee)(t);if(!n)try{n=Hu("getDefaultStorage",()=>{var X;return(X=bt)==null?void 0:X.localStorage})()}catch(X){v(X)}if(!n)return E;const x=Zn(t),O=Vu(x),N=(r=o.serializer)!=null?r:qu[O],{pause:L,resume:K}=Du(E,()=>w(E.value),{flush:s,deep:i,eventFilter:d});return h&&l&&gn(h,"storage",V),V(),E;function w(X){try{if(X==null)n.removeItem(e);else{const m=N.write(X),A=n.getItem(e);A!==m&&(n.setItem(e,m),h&&(h==null||h.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:A,newValue:m,storageArea:n}))))}}catch(m){v(m)}}function Z(X){const m=X?X.newValue:n.getItem(e);if(m==null)return a&&x!==null&&n.setItem(e,N.write(x)),x;if(!X&&c){const A=N.read(m);return wu(c)?c(A,x):O==="object"&&!Array.isArray(A)?hi(hi({},x),A):A}else return typeof m!="string"?m:N.read(m)}function V(X){if(!(X&&X.storageArea!==n)){if(X&&X.key==null){E.value=x;return}if(!(X&&X.key!==e)){L();try{E.value=Z(X)}catch(m){v(m)}finally{X?st(K):K()}}}}}function Yu({document:e=Nu}={}){if(!e)return ee("visible");const t=ee(e.visibilityState);return gn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var mi=Object.getOwnPropertySymbols,Zu=Object.prototype.hasOwnProperty,Xu=Object.prototype.propertyIsEnumerable,Ju=(e,t)=>{var n={};for(var o in e)Zu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&mi)for(var o of mi(e))t.indexOf(o)<0&&Xu.call(e,o)&&(n[o]=e[o]);return n};function vi(e,t,n={}){const o=n,{window:r=bt}=o,s=Ju(o,["window"]);let i;const l=fi(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},c=he(()=>Lt(e),h=>{a(),l.value&&r&&h&&(i=new ResizeObserver(t),i.observe(h,s))},{immediate:!0,flush:"post"}),f=()=>{a(),c()};return er(f),{isSupported:l,stop:f}}function Qu(e,t={width:0,height:0},n={}){const{window:o=bt,box:r="content-box"}=n,s=fe(()=>{var a,c;return(c=(a=Lt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),i=ee(t.width),l=ee(t.height);return vi(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&s.value){const f=Lt(e);if(f){const h=o.getComputedStyle(f);i.value=parseFloat(h.width),l.value=parseFloat(h.height)}}else if(c){const f=Array.isArray(c)?c:[c];i.value=f.reduce((h,{inlineSize:d})=>h+d,0),l.value=f.reduce((h,{blockSize:d})=>h+d,0)}else i.value=a.contentRect.width,l.value=a.contentRect.height},n),he(()=>Lt(e),a=>{i.value=a?t.width:0,l.value=a?t.height:0}),{width:i,height:l}}function _i(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:i=bt}=n,l=fi(()=>i&&"IntersectionObserver"in i);let a=_t;const c=l.value?he(()=>({el:Lt(e),root:Lt(o)}),({el:h,root:d})=>{if(a(),!h)return;const v=new IntersectionObserver(t,{root:d,rootMargin:r,threshold:s});v.observe(h),a=()=>{v.disconnect(),a=_t}},{immediate:!0,flush:"post"}):_t,f=()=>{a(),c()};return er(f),{isSupported:l,stop:f}}function Jn(e,t,n={}){const{window:o=bt}=n;return gi(e,t,o==null?void 0:o.localStorage,n)}var bi;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(bi||(bi={}));function or(e,t,n={}){const{window:o=bt}=n;return gi(e,t,o==null?void 0:o.sessionStorage,n)}var Gu=Object.defineProperty,yi=Object.getOwnPropertySymbols,ef=Object.prototype.hasOwnProperty,tf=Object.prototype.propertyIsEnumerable,wi=(e,t,n)=>t in e?Gu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nf=(e,t)=>{for(var n in t||(t={}))ef.call(t,n)&&wi(e,n,t[n]);if(yi)for(var n of yi(t))tf.call(t,n)&&wi(e,n,t[n]);return e};nf({linear:Pu},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});var yt=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(yt||{}),Xt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Xt||{});const xi=.25,ki=3,of=.25,Qn=.25,Gn=5,rf=.05;function sf(e){const{titleId:t,asyncIsWebtoon:n}=e,o=Jn(`tk:style:${t}`,Xt.longStrip,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(c,f){return Object.values(Xt).includes(c)?c:f}}),r=Jn(`tk:dir:${t}`,yt.vertical,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(c,f){return Object.values(yt).includes(c)?c:f}}),s=Jn(`tk:speed:${t}`,1,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(c,f){return c>=xi&&c<=ki?+c:f}}),i=Jn(`tk:zoom:${t}`,1,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(c,f){return c>=Qn&&c<=Gn?+c:f}}),l=fe({get(){return n.state.value?Xt.longStrip:o.value},set:c=>o.value=c}),a=fe({get:()=>n.state.value?yt.vertical:r.value,set:c=>r.value=c});return{direction:a,style:l,speed:s,zoom:i,isLongStrip:fe(()=>l.value===Xt.longStrip),isDouble:fe(()=>l.value===Xt.double),isRTL:fe(()=>a.value===yt.rtl),isVertical:fe(()=>a.value===yt.vertical)}}const Ci=Te({__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=oi,l=Yn,a=ni,c=ti,f=ei,h=Gs;return $(),q(xe,null,[H(l,{title:"Customize",disabled:r.disabled,onClick:s[0]||(s[0]=()=>n.value=!0)},{default:ie(()=>[H(i)]),_:1},8,["disabled"]),H(h,{modelValue:n.value,"onUpdate:modelValue":s[4]||(s[4]=d=>n.value=d)},{default:ie(()=>[H(c,{label:"Style"},{default:ie(()=>[H(a,{"model-value":r.readerStyle,items:r.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":s[1]||(s[1]=d=>t("update:reader-style",d))},null,8,["model-value","items"])]),_:1}),H(c,{label:"Direction"},{default:ie(()=>[H(a,{"model-value":r.direction,items:r.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":s[2]||(s[2]=d=>t("update:direction",d))},null,8,["model-value","items"])]),_:1}),H(c,{label:"Speed"},{default:ie(()=>[H(f,{"model-value":r.speed,min:D(xi),max:D(ki),step:D(of),suffix:"x","onUpdate:modelValue":s[3]||(s[3]=d=>t("update:speed",d))},{suffix:ie(()=>[Vt(at(r.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),H(c,{label:"Zoom"},{default:ie(()=>[H(f,{"model-value":Math.ceil(r.zoom*100),min:D(Qn)*100,max:D(Gn)*100,step:D(rf)*100,"onUpdate:modelValue":o},{suffix:ie(()=>[Vt(at(Math.ceil(r.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue"])],64)}}}),lf=Object.freeze(Object.defineProperty({__proto__:null,default:Ci},Symbol.toStringTag,{value:"Module"})),af={},cf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},uf=[Y("path",{fill:"currentColor",d:"M6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h6v2H7v12.95l5-2.15l5 2.15V11h2v8.475q0 .55-.45.838t-.95.087L12 18l-5.6 2.4ZM7 5h6h-6Zm11 4q-.425 0-.713-.287T17 8V7h-1q-.425 0-.713-.288T15 6q0-.425.288-.713T16 5h1V4q0-.425.288-.713T18 3q.425 0 .713.288T19 4v1h1q.425 0 .713.288T21 6q0 .425-.288.713T20 7h-1v1q0 .425-.288.713T18 9Z"},null,-1)];function ff(e,t){return $(),q("svg",cf,uf)}const Ti=we(af,[["render",ff]]),df=Object.freeze(Object.defineProperty({__proto__:null,default:Ti},Symbol.toStringTag,{value:"Module"})),pf={},hf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},gf=[Y("path",{fill:"currentColor",d:"M17.825 8.575q-.2 0-.375-.062t-.325-.213L15.7 6.875q-.3-.3-.3-.712t.3-.688q.275-.3.7-.3t.7.275l.725.725l2.825-2.85q.3-.3.7-.3t.725.3q.275.3.275.725t-.275.7l-3.55 3.55q-.15.15-.325.213t-.375.062ZM6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h7q-.5.75-.75 1.438T13 6q0 1.8 1.137 3.175T17 10.9q.575.075 1 .075t1-.075v8.575q0 .55-.45.838t-.95.087L12 18l-5.6 2.4Z"},null,-1)];function mf(e,t){return $(),q("svg",hf,gf)}const Pi=we(pf,[["render",mf]]),vf=Object.freeze(Object.defineProperty({__proto__:null,default:Pi},Symbol.toStringTag,{value:"Module"})),_f={},bf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},yf=[Y("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function wf(e,t){return $(),q("svg",bf,yf)}const Oi=we(_f,[["render",wf]]),xf=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),kf=["aria-hidden"],Cf=["onClick"],Tf=["onClick"],Pf={class:"inline-flex items-center justify-center w-full h-full px-4 rounded-full group-hover:bg-stone-200 group-hover:bg-opacity-20 duration-200"},Of={class:"whitespace-nowrap"},rr=Te({__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);Qo({onKeyDown:v});const c=Jo({desktopOnly:!0});function f(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(h(),st(()=>setTimeout(()=>{var w,Z;(Z=(w=s.value)==null?void 0:w.children[n.modelValue])==null||Z.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),x(o.value)):setTimeout(O,250)}function h(){const w=o.value;if(w){const Z=w.getBoundingClientRect(),V=Z.x+Z.width/2;i.value=Z.y>window.innerHeight/2,l.value=V<window.innerWidth/3,a.value=V>window.innerWidth/3*2}}function d(w){w!=n.modelValue&&t("update:modelValue",w),f()}function v(w){r.value&&w.key==="Escape"&&(f(),w.preventDefault())}let E=[];function x(w){const Z=window.getComputedStyle(w).zIndex,V=w.style.zIndex;(!Z||!(+Z>0))&&((!w.parentElement||w.parentElement.childElementCount>1)&&(w.style.zIndex="1",E.push({el:w,zIndex:V})),w.parentElement&&x(w.parentElement))}function O(){E.forEach(({el:w,zIndex:Z})=>{w.style.zIndex=Z??""}),E=[]}let N=!1;function L(){N||(N=!0,c(!0))}function K(){N&&(N=!1,c(!1))}return(w,Z)=>{const V=Oi;return $(),q("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?($(),q("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:f})):ze("",!0),n.items.length?($(),Ie(qt,{key:1,name:"slide-fade","enter-from-class":"scale-y-90 opacity-0 pointer-events-none","leave-to-class":"scale-y-90 opacity-0 pointer-events-none"},{default:ie(()=>[r.value?($(),q("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:Z[0]||(Z[0]=At(()=>{},["stop"]))},[($(!0),q(xe,null,Nn(n.items,(X,m)=>pt(($(),q("li",{key:m,tabindex:"-1",class:be(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-200 hover:bg-opacity-10 duration-100",{"text-primary":m===w.modelValue}]),onClick:()=>d(m)},[Y("div",{class:be(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":m>0}])},at(X),3)],10,Cf)),[[D(Yt),30]])),128))],42,kf)):ze("",!0)]),_:1})):ze("",!0),pt(($(),q("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":w.disabled}]),onClick:At(f,["stop"]),onMouseenter:L,onMouseleave:K},[Y("div",Pf,[Y("span",Of,at(n.label),1),n.items.length?($(),q("span",{key:0,class:be(["w-4 h-4 flex ml-1 -mr-3",{"rotate-180":i.value}]),"aria-hidden":"true"},[H(V)],2)):ze("",!0)])],42,Tf)),[[D(Yt),30]])],512)}}}),If=Object.freeze(Object.defineProperty({__proto__:null,default:rr},Symbol.toStringTag,{value:"Module"})),Ii=Te({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=fe(()=>Math.floor(n.modelValue)),r=fe(()=>n.pages.map(c=>c.map(({index:f})=>`${f+1}`).join("-"))),s=fe(()=>{const c=o.value,f=n.pages.findIndex(h=>h.some(({index:d})=>d===c));return f===-1?n.pages.length-1:f}),i=fe(()=>n.pages.length?`${r.value[s.value]}/${n.totalImgs}`:"--");function l(c){const f=n.pages[c][0].index;a(f)}function a(c){t("update:modelValue",c)}return(c,f)=>{const h=rr;return $(),Ie(h,{"model-value":s.value,label:i.value,items:r.value,disabled:c.disabled,"onUpdate:modelValue":l},null,8,["model-value","label","items","disabled"])}}}),Ef=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"})),$f={},Sf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Mf=[Y("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function jf(e,t){return $(),q("svg",Sf,Mf)}const Ei=we($f,[["render",jf]]),Af=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),Lf={},zf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Bf=[Y("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Df(e,t){return $(),q("svg",zf,Bf)}const $i=we(Lf,[["render",Df]]),Nf=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"})),Rf={},Ff={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Hf=[Y("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 Vf(e,t){return $(),q("svg",Ff,Hf)}const Si=we(Rf,[["render",Vf]]),Wf=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"})),Kf={},Uf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},qf=[Y("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function Yf(e,t){return $(),q("svg",Uf,qf)}const Mi=we(Kf,[["render",Yf]]),Zf=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"})),ji=we(Te({__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=Zo,i=Xo;return n.value?($(),q("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?($(),Ie(s,{key:0})):($(),Ie(i,{key:1}))])):ze("",!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
|
+
`]]]),Xf=Object.freeze(Object.defineProperty({__proto__:null,default:ji},Symbol.toStringTag,{value:"Module"})),Jf={},Qf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Gf=[Y("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 ed(e,t){return $(),q("svg",Qf,Gf)}const Ai=we(Jf,[["render",ed]]),td=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),Li=Te({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=or("tk:dir",!0),o=Zt(()=>n.value=!1,1250);return he(()=>t.direction,()=>{n.value=!0,o()}),Ge(o),(r,s)=>{const i=Ai;return $(),Ie(qt,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[D(n)?($(),q("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===D(yt).vertical,"rotate-180":r.direction===D(yt).rtl}])},[H(i)],2)):ze("",!0)]),_:1})}}}),nd=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"})),eo=[];function od(e){eo.push(e),lt(()=>{const t=eo.indexOf(e);t!==-1&&eo.splice(t,1)})}function rd(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,s=t*o;eo.forEach(i=>i(r,s))}const zi=Te({__name:"ZoomWrapper",props:{modelValue:{},rtl:{type:Boolean},horizontal:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},emits:["update:modelValue","drag-changed","click"],setup(e,{emit:t}){const n=e,o=ee(null),r=ee(Math.min(Gn,Math.max(Qn,n.modelValue))),s=ee(!1),i=ee(!1),l=ee(!1),a=ee(!1);he(()=>n.modelValue,T=>oe(T)),Ge(()=>{n.touchDevice?(gn(window,"touchstart",K),od(S)):(gn(o,"mousedown",E),he(()=>n.horizontal,T=>{T?window.addEventListener("wheel",X,{passive:!1}):window.removeEventListener("wheel",X)},{immediate:!0}))}),lt(()=>{window.removeEventListener("wheel",X)});let c;Qo({onKeyDown:T=>{var re;if(n.busy)return;(re=o.value)==null||re.focus();const U=T.key==="Meta",J=T.key==="Control";U||J?(s.value=!0,window.addEventListener("wheel",h,{passive:!1}),c=()=>{s.value=!1,window.removeEventListener("wheel",h),window.removeEventListener("blur",c),c=void 0},window.addEventListener("blur",c)):(T.ctrlKey||T.metaKey)&&T.key==="0"&&oe(1)},onKeyUp:()=>{s.value==!0&&(c==null||c())}});function f(T){l.value!==T&&(l.value=T,t("drag-changed",T))}function h(T){T.stopPropagation(),T.preventDefault();const U=Math.ceil((r.value+T.deltaY*-.01)*100)/100;oe(U,{x:T.clientX,y:T.clientY})}let d={x:0,y:0},v={x:0,y:0};function E(T){T.button===0&&(d={x:T.clientX,y:T.clientY},v={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",x),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",x),setTimeout(()=>f(!1))},{once:!0}),T.preventDefault(),T.stopPropagation())}function x(T){f(!0);const U=T.clientX-d.x,J=T.clientY-d.y,re=o.value;re.scrollLeft=v.x-U,re.scrollTop=v.y-J}let O=0,N=1,L;function K(T){if(!n.busy){if(a.value=T.touches.length===2,a.value){f(!0),T.stopPropagation(),T.preventDefault();const U=o.value;O=m(T),N=r.value,L={x:(T.touches[0].clientX+T.touches[1].clientX)/2,y:(T.touches[0].clientY+T.touches[1].clientY)/2,scrollLeft:U.scrollLeft,scrollTop:U.scrollTop,scrollWidth:U.scrollWidth,scrollHeight:U.scrollHeight}}window.addEventListener("touchmove",Z),window.addEventListener("touchend",w,{once:!0})}}function w(){if(window.removeEventListener("touchmove",Z),a.value=!1,!l.value)return;const T=Zt(()=>{f(!1),o.value.removeEventListener("scroll",J)},100),U=setTimeout(T,100);o.value.addEventListener("scroll",J);function J(){clearTimeout(U),T()}}function Z(T){if(f(!0),a.value){T.stopPropagation(),T.preventDefault();const J=m(T)/O;oe(Math.ceil(J*N*100)/100,L)}}const V=Zt(()=>i.value=!1,100);function X(T){n.busy||(i.value||(i.value=!0),V(),T.deltaY&&(!s.value&&o.value&&(o.value.scrollLeft+=T.deltaY*(n.rtl?-1:1)),T.preventDefault()))}function m(T){return Math.hypot(T.touches[0].clientX-T.touches[1].clientX,T.touches[0].clientY-T.touches[1].clientY)}let A=0,W;function ce(T){T.stopPropagation(),!l.value&&(A++,W&&clearTimeout(W),A===2&&S(T.clientX,T.clientY),W=setTimeout(()=>{A===1&&t("click",T),W=void 0,A=0},300))}function S(T,U){if(!A)return;A=0;const J=r.value===1?2:1;oe(J,{x:T,y:U})}async function oe(T,U){const J=o.value,re=Math.min(Gn,Math.max(Qn,T));if(!J||r.value===re)return;const ae=(U==null?void 0:U.scrollLeft)??J.scrollLeft,Ke=(U==null?void 0:U.scrollTop)??J.scrollTop,Ue=(U==null?void 0:U.scrollHeight)??J.scrollHeight,Xe=(U==null?void 0:U.scrollWidth)??J.scrollWidth,Me=U&&n.rtl?J.clientWidth-U.x:(U==null?void 0:U.x)??J.clientWidth/2,Qt=(U==null?void 0:U.y)??J.clientHeight/2;r.value=re,t("update:modelValue",re),await st();const j=J.scrollWidth/Xe,te=J.scrollHeight/Ue;J.scrollLeft=ae*j+Me*(j-1)*(n.rtl?-1:1),J.scrollTop=Ke*te+Qt*(te-1)}return(T,U)=>($(),q("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:Re({"font-size":`${r.value}px`}),onClick:ce},[Oe(T.$slots,"default")],6))}}),sd=Object.freeze(Object.defineProperty({__proto__:null,default:zi},Symbol.toStringTag,{value:"Module"})),id=`.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
|
+
`,ld={},ad={class:"flex justify-center items-center w-full h-full"},cd=[Y("div",{class:"loading-indicator"},null,-1)];function ud(e,t){return $(),q("div",ad,cd)}const sr=we(ld,[["render",ud],["styles",[id]]]),fd=Object.freeze(Object.defineProperty({__proto__:null,default:sr},Symbol.toStringTag,{value:"Module"})),dd=["data-index"],pd={key:0,class:"h-[75vh] w-[50vw] m-auto"},hd=["src"],gd=["src"],md=["data-index"],Bi=we(Te({__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=fe(()=>{var d;return(d=o.value)==null?void 0:d.$el}),s=ee(null),i=Qu(r),l=fe(()=>{const{width:{value:d},height:{value:v}}=i;return n.pages.map(E=>{const x={indexes:E.map(K=>K.index)},O=E.map(({el:K})=>K).filter(Boolean);if(!O.length)return x;x.srcs=O.map(K=>K.src);const N=O.reduce((K,w)=>K+w.naturalWidth,0),L=O.reduce((K,w)=>K+w.naturalHeight,0)/O.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&d/N<v/L?(x.width=Math.min(d,N),x.height=L*x.width/N):x.height=Math.min(v,L),x})}),a=fe(()=>l.value.map(d=>(d==null?void 0:d.width)??(d==null?void 0:d.height)).filter(Boolean).sort((d,v)=>v-d)[0]);let c=!1;function f(d){c!==d&&(c=d,n.playController.isPlaying.value&&(c?n.playController.pause():n.playController.resume()))}function h(d){if(!n.isLongStrip){const v=n.isVertical?i.height.value:i.width.value,x=(n.isVertical?d.clientY:n.isRTL?v-d.clientX:d.clientX)/v;if(x<=.2){t("prev");return}else if(x>=.8){t("next");return}}t("click")}return(d,v)=>{const E=sr,x=zi;return $(),Ie(x,{"model-value":d.zoom,ref_key:"root",ref:o,class:be(["reader-body",{"reader-body--long-strip":d.isLongStrip,"reader-body--pages":!d.isLongStrip,"reader-body--vertical":d.isVertical,"reader-body--rtl":d.isRTL,"reader-body--idle":d.idle}]),playing:n.playController.isPlaying.value,horizontal:!d.isVertical,rtl:d.isRTL,"touch-device":d.touchDevice,busy:d.busy,style:Re({"--space-top":(d.spaceTop||0)+"em",...d.isLongStrip?{"--max-size-em":a.value+"em"}:{"--screen-width-em":D(i).width.value+"em","--screen-height-em":D(i).height.value+"em"}}),onDragChanged:f,"onUpdate:modelValue":v[0]||(v[0]=O=>t("update:zoom",O)),onClick:h},{default:ie(()=>[($(!0),q(xe,null,Nn(l.value,O=>($(),q("div",Ho({key:d.direction+"_"+O.indexes[0],"data-index":O.indexes[0]},O.indexes.length>1?{"data-second-index":O.indexes[1]}:{}),[O.srcs?O.srcs.length==1?($(),q("img",{key:1,src:O.srcs[0],style:Re({width:O.width!==void 0?O.width+"em":"",height:O.height!==void 0?O.height+"em":""})},null,12,hd)):($(),q("div",{key:2,class:be(["flex justify-center items-center",{"flex-row-reverse":d.isRTL}]),style:Re({width:O.width!==void 0?O.width+"em":"",height:O.height!==void 0?O.height+"em":""})},[($(!0),q(xe,null,Nn(O.srcs,N=>($(),q("div",{key:N,class:"h-full flex select-none"},[Y("img",{src:N,class:"flex-shrink-0 max-w-full max-h-full object-contain"},null,8,gd)]))),128))],6)):($(),q("div",pd,[H(E)]))],16,dd))),128)),Y("div",{ref_key:"autoNextEl",ref:s,"data-index":d.totalImgs,style:Re(d.isLongStrip?d.isVertical?{height:D(i).height.value+"em"}:{width:D(i).width.value+"em"}:{})},[Oe(d.$slots,"end")],12,md)]),_:3},8,["model-value","playing","horizontal","rtl","touch-device","busy","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
|
+
`]]]),vd=Object.freeze(Object.defineProperty({__proto__:null,default:Bi},Symbol.toStringTag,{value:"Module"})),_d={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},bd={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},yd={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},Di=we(Te({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=e,o=ee(null),r=ee(null),s=ee(!1),i=ee(!1),l=ee(3);return Ge(()=>{if(!n.hasNext)return;let a;_i(r,c=>{i.value=c.some(f=>f.isIntersecting),l.value=5,a&&(clearInterval(a),a=void 0),i.value&&(a=setInterval(()=>{l.value-=1,l.value<=0&&(clearInterval(a),a=void 0,t("next"))},1e3))}),_i(o,c=>{s.value=c.some(f=>f.isIntersecting)}),lt(()=>a&&clearInterval(a))}),(a,c)=>($(),q("div",{ref_key:"root",ref:o,class:"h-full w-full flex justify-center items-center"},[pt(Y("div",_d,[a.hasNext?($(),q("div",bd,[i.value?($(),q("div",yd)):ze("",!0),pt(($(),q("button",{ref_key:"nextButton",ref:r,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:c[0]||(c[0]=At(()=>t("next"),["stop"]))},[Vt(" Next in "+at(l.value),1)])),[[D(Yt)]])])):ze("",!0),pt(($(),q("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:c[1]||(c[1]=At(()=>t("hide"),["stop"]))},[Vt(" Hide ")])),[[D(Yt)]])],512),[[xc,s.value||!a.hasNext]])],512))}}),[["styles",[`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
|
|
6
|
+
`]]]),wd=Object.freeze(Object.defineProperty({__proto__:null,default:Di},Symbol.toStringTag,{value:"Module"}));function xd(e){var a,c,f,h,d;let t=-1;const{vol:n,chap:o,title:r}=e,s=((a=r==null?void 0:r.chapters)==null?void 0:a.length)>1?r.chapters:[];s.length&&(t=s.findIndex(v=>v.slug===e.slug),t===-1&&(t=s.findIndex(v=>v.vol===n&&v.chap===o)),t===-1&&(t=s.findIndex(v=>e.slug.startsWith(`${v.slug}-`)&&e.slug.length-v.slug.length>3)));const i=((c=e.prev)==null?void 0:c.slug)??((f=s[t+1])==null?void 0:f.slug),l=((h=e.next)==null?void 0:h.slug)??((d=s[t-1])==null?void 0:d.slug);return{activeIndex:t,activeLabel:Ni({vol:n,chap:o}),chaptersText:s.map(Ni),prevPath:ir(e.basePath,i),nextPath:ir(e.basePath,l)}}function ir(e,t){return!t||t.includes("://")||t.startsWith("/")?t:(e||"/")+t}function Ni({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const lr=3;function kd(e,t){const n=nn(Array.from({length:e.value.length})),o=[];let r=0;he([t,e],async([l,a],[c])=>{const f=Math.floor(l),h=Math.floor(c||-1),d=a.length-n.length;if(d>0){const v=Array.from({length:d});n.push(...v)}f!==h&&(r=Math.max(0,r-Math.abs(f-h)));for(let v=f;v<a.length;v++){if(r>lr)return;s(v)}for(let v=f-1;v>=0;v--){if(r>lr)return;s(v)}},{immediate:!0});async function s(l){l===void 0||!e.value[l]||r>lr||(o[l]||(o[l]=!0,r++,n[l]=await Cd(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 Cd(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 Td(e,t){return fe(()=>t.value?Ri(e):e.map((n,o)=>[{el:n,index:o}]))}function Ri(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})),...Ri(e.slice(r.length),t+r.length)]}function Pd(e,t,n){const o=new Promise(r=>{if(n!==void 0){r(n);return}const s=Math.max(e.length<4?0:e.length<6?1:2,t),i=Math.min(s+4,e.length<6?e.length-1:e.length),l=Math.max(0,i-4),a=e.slice(l,i);let c=!1;Promise.all(a.map(async f=>{const h=await Od(f);!c&&h&&(c=!0,r(!0))})).then(()=>{c||r(!1)})});return Ru(o,n??!1)}function Od(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 Id({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")),or("tk:page",n,{writeDefaults:!1,mergeDefaults(r){return Math.max(0,Math.min(r,t))}})}function Ed(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const ar=40;function $d({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:s,spaceTop:i,scrollEl:l,interferePlayer:a,onChangedPage:c}){let f=!1,h=!1,d;const v=Zt(O,150),E=Sd(N,300);Ge(()=>{let m=null;Gl(async()=>{l.value&&l.value!==m&&(m=l.value,v(e.value),l.value.addEventListener("scroll",E))});let A=window.innerWidth;vi(l,()=>{const W=window.innerWidth;A!=W&&(A=W,x())}),he(n,x),he(t,x)});async function x(){f=!0,h=!1,await st(),O(e.value)}function O(m){if(!l.value)return;f=!0;const A=async()=>{await st(),f=!1,h=!0},W=L(Math.floor(m));if(!W){A();return}if(o.value){const ce=o.value?m%1*(r.value?W.offsetHeight:W.offsetWidth)||1:0,S=K(W)+ce;a(()=>{w(S),A()})}else{const ce=h;a(()=>{W.scrollIntoView(ce?{behavior:"smooth",block:"start",inline:"start"}:void 0),A()})}}async function N(){if(!l.value||f||!h)return;const m=V();if(!m)return;const A=+m.getAttribute("data-index")||0,W=m.getBoundingClientRect(),ce=o.value?Math.floor((A+X(W))*100)/100:A;ce!==e.value&&c(ce)}function L(m){var A;return(A=l.value)==null?void 0:A.querySelector(`[data-index="${m}"],[data-second-index="${m}"]`)}function K(m){return r.value?m.offsetTop:s.value?l.value.clientWidth-m.offsetLeft-m.offsetWidth:m.offsetLeft}function w(m){if(Z()!==m)return r.value?l.value.scrollTop=m-(o.value?i.value??0:0):s.value?l.value.scrollLeft=-m:l.value.scrollLeft=m,m}function Z(){return r.value?l.value.scrollTop:s.value?-l.value.scrollLeft:l.value.scrollLeft}function V(){d??(d=l.value.getRootNode());const m=d.elementsFromPoint(r.value||!o.value?window.innerWidth/2:s.value?window.innerWidth-ar:ar,r.value&&o.value?i.value||ar:window.innerHeight/2);for(let A=0;A<m.length;A++){const W=m[A];if(W.hasAttribute("data-index"))return W;if(W===l.value)break}}function X(m){return r.value?Math.abs(m.top-(i.value||0))/m.height:s.value?Math.max(0,m.right-l.value.clientWidth)/m.width:Math.abs(m.left)/m.width}return{goToPage:O}}function Sd(e,t){let n;return()=>{n||(n=setTimeout(()=>{n=void 0,e()},t))}}function Md({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,speed:s,onLongIdle:i}){const l=or("tk:isPlaying",e),a=ee(!1);let c,f;const h=Zt(V,100);let d;const v=Zt(()=>{a.value=!0,clearTimeout(d),d=l.value?void 0:setTimeout(i,15e3)},t?2e3:1e3),E=()=>setTimeout(()=>{a.value=!1,v(),d&&(clearTimeout(d),d=void 0)},30);E(),t||gn(window,"mousemove",E);const x=Yu();Ge(()=>{he(x,m=>{l.value&&(m==="visible"?V():f==null||f())}),he(s,()=>O())}),lt(()=>{clearTimeout(d),d=void 0});async function O(m){l.value&&(f==null||f()),m&&(await st(),await m()),l.value&&h()}function N(){l.value?L():K()}function L(){l.value&&(l.value=!1,f==null||f(),E())}function K(){l.value||(l.value=!0,V(),E())}function w(){f==null||f()}function Z(m){switch(m.key){case" ":m.preventDefault(),N();break;case"PageUp":case"PageDown":case(o.value?"ArrowUp":"ArrowLeft"):case(o.value?"ArrowDown":"ArrowRight"):O(()=>new Promise(A=>setTimeout(A,100)));break}}function V(){const m=n.value;if(!l.value||!m)return;const A=o.value?m.scrollHeight-m.clientHeight:m.scrollWidth-m.clientWidth,W=X();if(A<=W){L();return}f=()=>{c=Date.now(),f=void 0};const ce=Date.now();c=ce;const S=(o.value?15:25)/s.value,oe=o.value?"scrollTop":"scrollLeft",T=()=>{if(c!==ce)return;const U=r.value?-1:1;m[oe]+=U,setTimeout(T,S)};T()}function X(){const m=n.value;return o.value?m.scrollTop:r.value?-m.scrollLeft:m.scrollLeft}return{isPlaying:l,isIdle:a,toggle:N,play:K,pause:w,resume:V,stop:L,interfere:O,onKey:Z,awake:E}}const jd={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},Ad=Te({...{inheritAttrs:!1},__name:"TrackkunReader",props:{raw:{},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=fe(()=>Array.isArray(n.raw.imgs)?n.raw.imgs.filter(j=>typeof j=="string"):[]),s=Id({initialPage:n.page,max:r.value.length-1}),i=Pd(r.value,Math.ceil(s.value),n.raw.isWebtoon),{direction:l,style:a,isRTL:c,isDouble:f,isVertical:h,isLongStrip:d,speed:v,zoom:E}=sf({titleId:n.raw.id??n.raw.title.slug,asyncIsWebtoon:i}),x=kd(r,s),O=Td(x,f),N=fe(()=>s.value>=r.value.length),L=xd(n.raw),K=fe(()=>c.value?L.nextPath:L.prevPath),w=fe(()=>c.value?L.prevPath:L.nextPath),Z=ee(null),V=Md({autoPlay:n.autoPlay,touchDevice:n.touchDevice,scrollEl:fe(()=>{var j;return(j=Z.value)==null?void 0:j.$el}),speed:v,isRTL:c,isVertical:h,onLongIdle:()=>t("longIdle")});he(V.isPlaying,j=>{j||Ue(!1),t("playingChanged",j)}),he(V.isIdle,j=>{V.isPlaying.value&&Ue(j)}),he(o,j=>{!j&&V.isIdle.value?V.awake():j&&n.fullScreen&&Ue()});const X=fe(()=>V.isIdle.value&&!o.value),m=fe({get(){return E.value},set(j){V.interfere(()=>{E.value=j})}});nu().addListener({onKeyDown:j=>{if(V.onKey(j),!h.value)return;const te=j.key==="ArrowLeft",me=j.key==="ArrowRight";te?oe():me&&S()}});const W=$d({page:s,style:a,direction:l,isLongStrip:d,isVertical:h,isRTL:c,spaceTop:fe(()=>n.spaceTop),scrollEl:fe(()=>{var j;return(j=Z.value)==null?void 0:j.$el}),interferePlayer:j=>V.interfere(j),onChangedPage(j){if(j<0||j>=r.value.length+1)return;s.value=j,t("pageChanged",j),j>=r.value.length&&(Ue(!1),V.stop())}});function ce(){if(V.isPlaying.value){!n.fullScreen||!n.touchDevice?V.stop():V.awake();return}Ue()}function S(){U(L.nextPath)}function oe(){U(L.prevPath)}function T(j){var me;const te=(me=n.raw.title.chapters)==null?void 0:me[j].slug;te&&U(ir(n.raw.basePath,te))}function U(j){j&&(location.href=j.includes("://")?j:location.origin+j)}function J(){var me;const j=O.value,te=N.value?j[j.length-1][0].index:(me=j[ae()-1])==null?void 0:me[0].index;te!==void 0?W.goToPage(te):oe()}function re(){var te;const j=N.value?Math.floor(s.value)+1:((te=O.value[ae()+1])==null?void 0:te[0].index)??r.value.length;W.goToPage(j)}function ae(){const j=Math.floor(s.value),te=O.value.findIndex(me=>me.some(({index:wt})=>wt===j));return te===-1?O.value.length-1:te}function Ke(){Ed(),t("dispose")}async function Ue(j){o.value&&!n.fullScreen||t("fullScreenChanged",typeof j=="boolean"?j:!n.fullScreen)}function Xe(){n.entryId?Qt():Me()}function Me(){V.stop(),t("addEntry")}function Qt(){V.stop(),t("openEntry",n.entryId)}return(j,te)=>{const me=sr,wt=Di,to=Bi,xt=Li,mn=ji,vn=Mi,u=Yn,p=Si,g=rr,b=$i,_=Ei,C=Ii,I=Pi,k=Ti,P=Ci,y=Xo,z=Zo,M=Qs,B=Xs;return $(),Ie(B,{"full-screen":!!j.fullScreen,idle:X.value,"space-top":n.spaceTop,"space-bottom":n.spaceBottom,"touch-device":j.touchDevice,rtl:D(c)},{back:ie(()=>[H(u,{href:j.raw.title.url,title:j.raw.title.name},{default:ie(()=>[H(vn)]),_:1},8,["href","title"])]),exit:ie(()=>[H(u,{title:"Hide reader",onClick:Ke},{default:ie(()=>[H(p)]),_:1})]),"chapter-nav":ie(()=>[H(g,{modelValue:D(L).activeIndex,label:D(L).activeLabel,items:D(L).chaptersText,"onUpdate:modelValue":T},null,8,["modelValue","label","items"]),K.value||w.value?($(),q("div",jd,[H(u,{title:D(c)?"Next":"Previous",href:K.value,disabled:!K.value,class:"!rounded-r-none"},{default:ie(()=>[H(b)]),_:1},8,["title","href","disabled"]),H(u,{title:D(c)?"Previous":"Next",href:w.value,disabled:!w.value,class:"!rounded-l-none"},{default:ie(()=>[H(_)]),_:1},8,["title","href","disabled"])])):ze("",!0)]),"page-nav":ie(()=>[H(C,{"model-value":D(s),disabled:D(i).isLoading.value,pages:D(O),"total-imgs":r.value.length,"onUpdate:modelValue":D(W).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),entry:ie(()=>[H(u,{title:j.entryId?"View entry":"Add to Trackkun",onClick:Xe},{default:ie(()=>[j.entryId?($(),Ie(I,{key:0})):($(),Ie(k,{key:1}))]),_:1},8,["title"])]),settings:ie(()=>[H(P,{"reader-style":D(a),"onUpdate:readerStyle":te[2]||(te[2]=R=>ye(a)?a.value=R:null),direction:D(l),"onUpdate:direction":te[3]||(te[3]=R=>ye(l)?l.value=R:null),speed:D(v),"onUpdate:speed":te[4]||(te[4]=R=>ye(v)?v.value=R:null),zoom:m.value,"onUpdate:zoom":te[5]||(te[5]=R=>m.value=R),webtoon:D(i).state.value,disabled:D(i).isLoading.value},null,8,["reader-style","direction","speed","zoom","webtoon","disabled"])]),play:ie(()=>[H(u,{title:D(V).isPlaying.value?"Pause":"Play",disabled:D(i).isLoading.value,onClick:te[6]||(te[6]=()=>D(V).toggle())},{default:ie(()=>[D(V).isPlaying.value?($(),Ie(y,{key:0})):($(),Ie(z,{key:1}))]),_:1},8,["title","disabled"])]),"reset-zoom":ie(()=>[H(qt,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[H(M,{zoom:m.value,onClick:te[7]||(te[7]=At(()=>m.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:ie(()=>[Y("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500",style:Re({width:`${D(s)/(r.value.length-1)*100}%`})},null,4)]),default:ie(()=>[D(i).isLoading.value?($(),Ie(me,{key:0})):($(),q(xe,{key:1},[H(to,{ref_key:"body",ref:Z,zoom:m.value,"onUpdate:zoom":te[0]||(te[0]=R=>m.value=R),pages:D(O),"total-imgs":r.value.length,direction:D(l),"is-long-strip":D(d),isRTL:D(c),"is-vertical":D(h),"space-top":j.spaceTop,"space-bottom":n.spaceBottom,"touch-device":j.touchDevice,busy:D(o),idle:X.value,"play-controller":D(V),onPrev:J,onNext:re,onClick:ce,onWheelPassive:te[1]||(te[1]=()=>D(V).interfere())},ga({_:2},[D(i).isLoading.value?void 0:{name:"end",fn:ie(()=>[H(wt,{"has-next":!!D(L).nextPath,onNext:S,onHide:Ke},null,8,["has-next"])]),key:"0"}]),1032,["zoom","pages","total-imgs","direction","is-long-strip","isRTL","is-vertical","space-top","space-bottom","touch-device","busy","idle","play-controller"]),H(xt,{direction:D(l)},null,8,["direction"]),N.value?ze("",!0):($(),Ie(mn,{key:0,playing:D(V).isPlaying.value},null,8,["playing"]))],64))]),_:1},8,["full-screen","idle","space-top","space-bottom","touch-device","rtl"])}}}),Fi=we(Ad,[["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-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}.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-150{transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-500{transition-duration:.5s}.ease-linear{transition-timing-function:linear}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:.25rem;width:.25rem}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-200:hover{--tw-bg-opacity:1;background-color:rgb(231 229 228/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-stone-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-200{--tw-bg-opacity:1;background-color:rgb(231 229 228/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}.group:hover .group-hover\\:bg-opacity-10{--tw-bg-opacity:.1}}@media (min-width:640px){.sm\\:inset-3{bottom:.75rem;left:.75rem;right:.75rem;top:.75rem}.sm\\:w-\\[32rem\\]{width:32rem}}@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
|
+
`]]]),Ld=Object.freeze(Object.defineProperty({__proto__:null,default:Fi},Symbol.toStringTag,{value:"Module"})),zd={},Bd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Dd=[Y("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 Nd(e,t){return $(),q("svg",Bd,Dd)}const Rd=Object.freeze(Object.defineProperty({__proto__:null,default:we(zd,[["render",Nd]])},Symbol.toStringTag,{value:"Module"})),Fd={text:Hd,attr:Vd,"attr-contain":Wd,value:Ud,row:qd};function Hi(e,t={}){if(!e)return;const{root:n=document.documentElement,returnAll:o,preProcess:r}=t,s=Kd(e);if(s.length>1){for(let h=0;h<s.length;h+=1){const d=Hi(s[h],t);if(d!=null&&d.length)return d}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(h=>{const d=h.indexOf(":"),v=d!==-1;return{action:v?h.substring(0,d):h,param:v?h.substring(d+1):""}}),c=i?Array.from(n.querySelectorAll(i)):[n];if(!c.length)return o?[]:void 0;r&&r(c);const f=[];for(const h of c)for(const d of a){const v=Fd[d.action],E=v(h,d.param);if(E){if(o){f.push(E);break}return E}}return o?f:void 0}function Hd(e){return Array.from(e.childNodes).filter(n=>n.nodeType===3).map(n=>Jt(n.textContent)).filter(Boolean).join(" ").trim()||Jt(e.textContent)}function Vd(e,t){return Jt(e.getAttribute(t))}function Wd(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 Kd(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 Ud(e){return e.value}function qd(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 Yd=`html.gear-second{background:#000;font-size:16px!important}html.gear-second,html.gear-second body{overflow:hidden!important}html.gear-second body{touch-action:pan-x pan-y!important}html.gear-second body>footer,html.gear-second body>header,html.gear-second body>nav{display:none!important;visibility:hidden!important}html.gear-second body gear-second{bottom:0!important;display:block!important;left:0!important;position:fixed!important;right:0!important;top:0!important;visibility:visible!important;z-index:99999}html.gear-second:not(.gear-second--adblock) body>:not(gear-second){margin-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}
|
|
8
|
+
`,zt="gear-second",Vi="gear-second--adblock",Wi={raw:{},page:0,spaceTop:0,spaceBottom:0,fullScreen:!1,onDispose:void 0,touchDevice:void 0,entryId:void 0,autoPlay:!1,adBlock:!1,isGuest:!1},We=nn(Wi);async function Zd(e){let t;document.documentElement.classList.add(zt),e.adBlock&&document.documentElement.classList.add(Vi);const{isInstalled:n,isMounted:o}=Xd();n||await Jd(),Object.assign(We,Wi,e,{page:ep(e),onDispose:()=>t==null?void 0:t()}),cr();const r=o?document.querySelector(zt):document.createElement(zt);return o||document.body.appendChild(r),Ki(e.raw.slug),t=()=>{var s;(s=e==null?void 0:e.onDispose)==null||s.call(e),document.body.removeChild(r),document.documentElement.classList.remove(zt),document.documentElement.classList.remove(Vi),Gd(We)},{dispose:t,updateArgs(s){Object.assign(We,s),cr()},triggerDoubleTap:(s,i)=>rd(s,i)}}function Xd(){const e=!!window.customElements.get(zt),t=e&&!!document.body.querySelector(zt);return{isInstalled:e,isMounted:t}}async function Jd(){const e=document.createElement("style");e.appendChild(document.createTextNode(Yd)),document.head.appendChild(e);const t=uc({styles:[await Qd()],data:()=>({readerData:We,isFinished:!1}),render(){return Ms(Fi,{...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.raw.imgs.length-2&&(this.isFinished=!0,(i=(s=this.readerData).onFinished)==null||i.call(s))}})}});window.customElements.define(zt,t)}async function Qd(){const e=Object.assign({"./TrackkunReader.vue":Ld,"./components/AutoNext.vue":wd,"./components/BottomSheet.vue":lu,"./components/ButtonDropdown.vue":If,"./components/ButtonIcon.vue":eu,"./components/ButtonReaderSettings.vue":lf,"./components/ButtonResetZoom.vue":Rc,"./components/DirectionToast.vue":nd,"./components/InputPercentage.vue":uu,"./components/InputSelect.vue":gu,"./components/LoadingIndicator.vue":fd,"./components/PageNav.vue":Ef,"./components/PauseToast.vue":Xf,"./components/ReaderBody.vue":vd,"./components/ReaderLayout.vue":Sc,"./components/TableField.vue":pu,"./components/ZoomWrapper.vue":sd,"./components/icons/IconBack.vue":Zf,"./components/icons/IconBookmarkNew.vue":df,"./components/icons/IconBookmarked.vue":vf,"./components/icons/IconChevronLeft.vue":Nf,"./components/icons/IconChevronRight.vue":Af,"./components/icons/IconExclamationCircle.vue":Rd,"./components/icons/IconNext.vue":td,"./components/icons/IconPause.vue":Xc,"./components/icons/IconPlay.vue":Kc,"./components/icons/IconReaderExit.vue":Wf,"./components/icons/IconSettings.vue":yu,"./components/icons/IconTriangle.vue":xf,"./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(We.adBlock)return;const{spaceTop:e,fullScreen:t}=We,n=document.querySelector(":root");n==null||n.style.setProperty("--tk-safe-top",`${t?0:(e||0)+56}px`)}function Gd({page:e,raw:t}){if(e<1||!t)return;if(e>=t.imgs.length){document.documentElement.scrollTop=document.documentElement.scrollHeight;return}const n=t.imgs[Math.floor(e)],o=n?document.querySelector(`[src="${n}"],[data-src="${n}"]`):void 0;o&&setTimeout(()=>{o.scrollIntoView(),setTimeout(()=>{window.scrollTo({top:document.documentElement.scrollTop+e%1*o.getBoundingClientRect().height})})})}function ep({page:e,raw:t}){if(!(t!=null&&t.imgs.length)||document.documentElement.scrollTop<700)return e;for(let n=0;n<t.imgs.length;n++){const o=t.imgs[n],r=document.querySelector(`[src="${o}"],[data-src="${o}"]`);if(!r)continue;const s=r.getBoundingClientRect();if(s.bottom>0){const i=s.top;return n+(i>=0?0:Math.floor(-i/s.height*100)/100)}}return e}async function Ki(e,t=0){if(!We.raw.imgsLocator||t>=7||(await new Promise(r=>setTimeout(r,1e3)),We.raw.slug!==e))return;const n=Hi(We.raw.imgsLocator,{returnAll:!0});if(!(n!=null&&n.length))return;const o=n.length>We.raw.imgs.length;o&&(We.raw={...We.raw,imgs:n}),Ki(e,o?0:t+1)}return Zd});
|