gear-second 0.3.7 → 0.4.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(je,ee){typeof exports=="object"&&typeof module<"u"?module.exports=ee():typeof define=="function"&&define.amd?define(ee):(je=typeof globalThis<"u"?globalThis:je||self,je._gearSecond_=ee())})(this,function(){"use strict";var ap=Object.defineProperty;var cp=(je,ee,Ne)=>ee in je?ap(je,ee,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):je[ee]=Ne;var Xi=(je,ee,Ne)=>(cp(je,typeof ee!="symbol"?ee+"":ee,Ne),Ne);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 ee={},Ne=[],qe=()=>{},Ji=()=>!1,Qi=/^on[^a-z]/,yn=e=>Qi.test(e),no=e=>e.startsWith("onUpdate:"),me=Object.assign,oo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Gi=Object.prototype.hasOwnProperty,ie=(e,t)=>Gi.call(e,t),R=Array.isArray,Dt=e=>wn(e)==="[object Map]",fr=e=>wn(e)==="[object Set]",G=e=>typeof e=="function",_e=e=>typeof e=="string",ro=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",dr=e=>pe(e)&&G(e.then)&&G(e.catch),pr=Object.prototype.toString,wn=e=>pr.call(e),el=e=>wn(e).slice(8,-1),hr=e=>wn(e)==="[object Object]",so=e=>_e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,xn=je(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},tl=/-(\w)/g,Ae=Cn(e=>e.replace(tl,(t,n)=>n?n.toUpperCase():"")),nl=/\B([A-Z])/g,Fe=Cn(e=>e.replace(nl,"-$1").toLowerCase()),kn=Cn(e=>e.charAt(0).toUpperCase()+e.slice(1)),io=Cn(e=>e?`on${kn(e)}`:""),en=(e,t)=>!Object.is(e,t),Pn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Tn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},lo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ao=e=>{const t=_e(e)?Number(e):NaN;return isNaN(t)?e:t};let gr;const co=()=>gr||(gr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Re(e){if(R(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=_e(o)?il(o):Re(o);if(r)for(const s in r)t[s]=r[s]}return t}else{if(_e(e))return e;if(pe(e))return e}}const ol=/;(?![^(]*\))/g,rl=/:([^]+)/,sl=/\/\*[^]*?\*\//g;function il(e){const t={};return e.replace(sl,"").split(ol).forEach(n=>{if(n){const o=n.split(rl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function we(e){let t="";if(_e(e))t=e;else if(R(e))for(let n=0;n<e.length;n++){const o=we(e[n]);o&&(t+=o+" ")}else if(pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ll=je("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function mr(e){return!!e||e===""}const rt=e=>_e(e)?e:e==null?"":R(e)||pe(e)&&(e.toString===pr||!G(e.toString))?JSON.stringify(e,vr,2):String(e),vr=(e,t)=>t&&t.__v_isRef?vr(e,t.value):Dt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:fr(t)?{[`Set(${t.size})`]:[...t.values()]}:pe(t)&&!R(t)&&!hr(t)?String(t):t;let ze;class al{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ze,!t&&ze&&(this.index=(ze.scopes||(ze.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=ze;try{return ze=this,t()}finally{ze=n}}}on(){ze=this}off(){ze=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=ze){t&&t.active&&t.effects.push(e)}function _r(){return ze}function ul(e){ze&&ze.cleanups.push(e)}const uo=e=>{const t=new Set(e);return t.w=0,t.n=0,t},br=e=>(e.w&ut)>0,yr=e=>(e.n&ut)>0,fl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ut},dl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];br(r)&&!yr(r)?r.delete(e):t[n++]=r,r.w&=~ut,r.n&=~ut}t.length=n}},fo=new WeakMap;let tn=0,ut=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,cl(this,o)}run(){if(!this.active)return this.fn();let t=Ye,n=ft;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Ye,Ye=this,ft=!0,ut=1<<++tn,tn<=po?fl(this):wr(this),this.fn()}finally{tn<=po&&dl(this),ut=1<<--tn,Ye=this.parent,ft=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ye===this?this.deferStop=!0:this.active&&(wr(this),this.onStop&&this.onStop(),this.active=!1)}}function wr(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let ft=!0;const xr=[];function Nt(){xr.push(ft),ft=!1}function Ft(){const e=xr.pop();ft=e===void 0?!0:e}function Se(e,t,n){if(ft&&Ye){let o=fo.get(e);o||fo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=uo()),Cr(r)}}function Cr(e,t){let n=!1;tn<=po?yr(e)||(e.n|=ut,n=!br(e)):n=!e.has(Ye),n&&(e.add(Ye),Ye.deps.push(e))}function st(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"&&R(e)){const a=Number(o);i.forEach((c,u)=>{(u==="length"||u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":R(e)?so(n)&&l.push(i.get("length")):(l.push(i.get(kt)),Dt(e)&&l.push(i.get(ho)));break;case"delete":R(e)||(l.push(i.get(kt)),Dt(e)&&l.push(i.get(ho)));break;case"set":Dt(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=R(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 pl=je("__proto__,__v_isRef,__isVue"),Pr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ro)),hl=vo(),gl=vo(!1,!0),ml=vo(!0),Tr=vl();function vl(){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++)Se(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){Nt();const o=le(this)[t].apply(this,n);return Ft(),o}}),e}function _l(e){const t=le(this);return Se(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:Lr).get(o))return o;const i=R(o);if(!e){if(i&&ie(Tr,r))return Reflect.get(Tr,r,s);if(r==="hasOwnProperty")return _l}const l=Reflect.get(o,r,s);return(ro(r)?Pr.has(r):pl(r))||(e||Se(o,"get",r),t)?l:xe(l)?i&&so(r)?l:l.value:pe(l)?e?yo(l):nn(l):l}}const bl=Or(),yl=Or(!0);function Or(e=!1){return function(n,o,r,s){let i=n[o];if(Ht(i)&&xe(i)&&!xe(r))return!1;if(!e&&(!Ln(r)&&!Ht(r)&&(i=le(i),r=le(r)),!R(n)&&xe(i)&&!xe(r)))return i.value=r,!0;const l=R(n)&&so(o)?Number(o)<n.length:ie(n,o),a=Reflect.set(n,o,r,s);return n===le(s)&&(l?en(r,i)&&st(n,"set",o,r):st(n,"add",o,r)),a}}function wl(e,t){const n=ie(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&st(e,"delete",t,void 0),o}function xl(e,t){const n=Reflect.has(e,t);return(!ro(t)||!Pr.has(t))&&Se(e,"has",t),n}function Cl(e){return Se(e,"iterate",R(e)?"length":kt),Reflect.ownKeys(e)}const $r={get:hl,set:bl,deleteProperty:wl,has:xl,ownKeys:Cl},kl={get:ml,set(e,t){return!0},deleteProperty(e,t){return!0}},Pl=me({},$r,{get:gl,set:yl}),_o=e=>e,On=e=>Reflect.getPrototypeOf(e);function $n(e,t,n=!1,o=!1){e=e.__v_raw;const r=le(e),s=le(t);n||(t!==s&&Se(r,"get",t),Se(r,"get",s));const{has:i}=On(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&&Se(o,"has",e),Se(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&&Se(le(e),"iterate",kt),Reflect.get(e,"size",e)}function Ir(e){e=le(e);const t=le(this);return On(t).has.call(t,e)||(t.add(e),st(t,"add",e,e)),this}function Er(e,t){t=le(t);const n=le(this),{has:o,get:r}=On(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)&&st(n,"set",e,t):st(n,"add",e,t),this}function Sr(e){const t=le(this),{has:n,get:o}=On(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&&st(t,"delete",e,void 0),s}function Mr(){const e=le(this),t=e.size!==0,n=e.clear();return t&&st(e,"clear",void 0,void 0),n}function Sn(e,t){return function(o,r){const s=this,i=s.__v_raw,l=le(i),a=t?_o:e?xo:on;return!e&&Se(l,"iterate",kt),i.forEach((c,u)=>o.call(r,a(c),a(u),s))}}function Mn(e,t,n){return function(...o){const r=this.__v_raw,s=le(r),i=Dt(s),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=r[e](...o),u=n?_o:t?xo:on;return!t&&Se(s,"iterate",a?ho:kt),{next(){const{value:d,done:h}=c.next();return h?{value:d,done:h}:{value:l?[u(d[0]),u(d[1])]:u(d),done:h}},[Symbol.iterator](){return this}}}}function dt(e){return function(...t){return e==="delete"?!1:this}}function Tl(){const e={get(s){return $n(this,s)},get size(){return En(this)},has:In,add:Ir,set:Er,delete:Sr,clear:Mr,forEach:Sn(!1,!1)},t={get(s){return $n(this,s,!1,!0)},get size(){return En(this)},has:In,add:Ir,set:Er,delete:Sr,clear:Mr,forEach:Sn(!1,!0)},n={get(s){return $n(this,s,!0)},get size(){return En(this,!0)},has(s){return In.call(this,s,!0)},add:dt("add"),set:dt("set"),delete:dt("delete"),clear:dt("clear"),forEach:Sn(!0,!1)},o={get(s){return $n(this,s,!0,!0)},get size(){return En(this,!0)},has(s){return In.call(this,s,!0)},add:dt("add"),set:dt("set"),delete:dt("delete"),clear:dt("clear"),forEach:Sn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Mn(s,!1,!1),n[s]=Mn(s,!0,!1),t[s]=Mn(s,!1,!0),o[s]=Mn(s,!0,!0)}),[e,n,t,o]}const[Ol,$l,Il,El]=Tl();function bo(e,t){const n=t?e?El:Il:e?$l:Ol;return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ie(n,r)&&r in o?n:o,r,s)}const Sl={get:bo(!1,!1)},Ml={get:bo(!1,!0)},Ll={get:bo(!0,!1)},Lr=new WeakMap,jr=new WeakMap,Ar=new WeakMap,jl=new WeakMap;function Al(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function zl(e){return e.__v_skip||!Object.isExtensible(e)?0:Al(el(e))}function nn(e){return Ht(e)?e:wo(e,!1,$r,Sl,Lr)}function Bl(e){return wo(e,!1,Pl,Ml,jr)}function yo(e){return wo(e,!0,kl,Ll,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=zl(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 Ht(e)?Rt(e.__v_raw):!!(e&&e.__v_isReactive)}function Ht(e){return!!(e&&e.__v_isReadonly)}function Ln(e){return!!(e&&e.__v_isShallow)}function zr(e){return Rt(e)||Ht(e)}function le(e){const t=e&&e.__v_raw;return t?le(t):e}function Br(e){return Tn(e,"__v_skip",!0),e}const on=e=>pe(e)?nn(e):e,xo=e=>pe(e)?yo(e):e;function Dr(e){ft&&Ye&&(e=le(e),Cr(e.dep||(e.dep=uo())))}function Nr(e,t){e=le(e);const n=e.dep;n&&mo(n)}function xe(e){return!!(e&&e.__v_isRef===!0)}function te(e){return Rr(e,!1)}function Fr(e){return Rr(e,!0)}function Rr(e,t){return xe(e)?e:new Dl(e,t)}class Dl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:le(t),this._value=n?t:on(t)}get value(){return Dr(this),this._value}set value(t){const n=this.__v_isShallow||Ln(t)||Ht(t);t=n?t:le(t),en(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:on(t),Nr(this))}}function H(e){return xe(e)?e.value:e}const Nl={get:(e,t,n)=>H(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return xe(r)&&!xe(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Hr(e){return Rt(e)?e:new Proxy(e,Nl)}class Fl{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new go(t,()=>{this._dirty||(this._dirty=!0,Nr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=le(this);return Dr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Rl(e,t,n=!1){let o,r;const s=G(e);return s?(o=e,r=qe):(o=e.get,r=e.set),new Fl(o,r,s||!r,n)}function fp(e,...t){}function pt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){jn(s,t,n)}return r}function He(e,t,n,o){if(G(e)){const s=pt(e,t,n,o);return s&&dr(s)&&s.catch(i=>{jn(i,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(He(e[s],t,n,o));return r}function jn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const i=t.proxy,l=n;for(;s;){const c=s.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,i,l)===!1)return}s=s.parent}const a=t.appContext.config.errorHandler;if(a){pt(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,Co=!1;const $e=[];let Ge=0;const Vt=[];let it=null,Pt=0;const Vr=Promise.resolve();let ko=null;function lt(e){const t=ko||Vr;return e?t.then(this?e.bind(this):e):t}function Vl(e){let t=Ge+1,n=$e.length;for(;t<n;){const o=t+n>>>1;sn($e[o])<e?t=o+1:n=o}return t}function Po(e){(!$e.length||!$e.includes(e,rn&&e.allowRecurse?Ge+1:Ge))&&(e.id==null?$e.push(e):$e.splice(Vl(e.id),0,e),Wr())}function Wr(){!rn&&!Co&&(Co=!0,ko=Vr.then(qr))}function Wl(e){const t=$e.indexOf(e);t>Ge&&$e.splice(t,1)}function Kl(e){R(e)?Vt.push(...e):(!it||!it.includes(e,e.allowRecurse?Pt+1:Pt))&&Vt.push(e),Wr()}function Kr(e,t=rn?Ge+1:0){for(;t<$e.length;t++){const n=$e[t];n&&n.pre&&($e.splice(t,1),t--,n())}}function Ur(e){if(Vt.length){const t=[...new Set(Vt)];if(Vt.length=0,it){it.push(...t);return}for(it=t,it.sort((n,o)=>sn(n)-sn(o)),Pt=0;Pt<it.length;Pt++)it[Pt]();it=null,Pt=0}}const sn=e=>e.id==null?1/0:e.id,Ul=(e,t)=>{const n=sn(e)-sn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function qr(e){Co=!1,rn=!0,$e.sort(Ul);const t=qe;try{for(Ge=0;Ge<$e.length;Ge++){const n=$e[Ge];n&&n.active!==!1&&pt(n,null,14)}}finally{Ge=0,$e.length=0,Ur(),rn=!1,ko=null,($e.length||Vt.length)&&qr()}}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 u=`${i==="modelValue"?"model":i}Modifiers`,{number:d,trim:h}=o[u]||ee;h&&(r=n.map(m=>_e(m)?m.trim():m)),d&&(r=n.map(lo))}let l,a=o[l=io(t)]||o[l=io(Ae(t))];!a&&s&&(a=o[l=io(Fe(t))]),a&&He(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,He(c,e,6,r)}}function Yr(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const s=e.emits;let i={},l=!1;if(!G(e)){const a=c=>{const u=Yr(c,t,!0);u&&(l=!0,me(i,u))};!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):(R(s)?s.forEach(a=>i[a]=null):me(i,s),pe(e)&&o.set(e,i),i)}function An(e,t){return!e||!yn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ie(e,t[0].toLowerCase()+t.slice(1))||ie(e,Fe(t))||ie(e,t))}let Pe=null,Zr=null;function zn(e){const t=Pe;return Pe=e,Zr=e&&e.type.__scopeId||null,t}function oe(e,t=Pe,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Ps(-1);const s=zn(t);let i;try{i=e(...r)}finally{zn(s),o._d&&Ps(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function dp(){}function To(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:l,attrs:a,emit:c,render:u,renderCache:d,data:h,setupState:m,ctx:x,inheritAttrs:w}=e;let F,j;const A=zn(e);try{if(n.shapeFlag&4){const k=r||o;F=tt(u.call(k,k,d,s,m,h,x)),j=a}else{const k=t;F=tt(k.length>1?k(s,{attrs:a,slots:l,emit:c}):k(s,null)),j=t.props?a:Yl(a)}}catch(k){un.length=0,jn(k,e,1),F=W(We)}let Q=F;if(j&&w!==!1){const k=Object.keys(j),{shapeFlag:Z}=Q;k.length&&Z&7&&(i&&k.some(no)&&(j=Zl(j,i)),Q=gt(Q,j))}return n.dirs&&(Q=gt(Q),Q.dirs=Q.dirs?Q.dirs.concat(n.dirs):n.dirs),n.transition&&(Q.transition=n.transition),F=Q,zn(A),F}const Yl=e=>{let t;for(const n in e)(n==="class"||n==="style"||yn(n))&&((t||(t={}))[n]=e[n]);return t},Zl=(e,t)=>{const n={};for(const o in e)(!no(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Xl(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:l,patchFlag:a}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?Xr(o,i,c):!!i;if(a&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const h=u[d];if(i[h]!==o[h]&&!An(c,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===i?!1:o?i?Xr(o,i,c):!0:!!i;return!1}function Xr(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const s=o[r];if(t[s]!==e[s]&&!An(n,s))return!0}return!1}function Jl({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Ql=e=>e.__isSuspense;function Gl(e,t){t&&t.pendingBranch?R(e)?t.effects.push(...e):t.effects.push(e):Kl(e)}function ea(e,t){return Oo(e,null,t)}const Bn={};function he(e,t,n){return Oo(e,t,n)}function Oo(e,t,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:i}=ee){var l;const a=_r()===((l=ke)==null?void 0:l.scope)?ke:null;let c,u=!1,d=!1;if(xe(e)?(c=()=>e.value,u=Ln(e)):Rt(e)?(c=()=>e,o=!0):R(e)?(d=!0,u=e.some(k=>Rt(k)||Ln(k)),c=()=>e.map(k=>{if(xe(k))return k.value;if(Rt(k))return Tt(k);if(G(k))return pt(k,a,2)})):G(e)?t?c=()=>pt(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),He(e,a,3,[m])}:c=qe,t&&o){const k=c;c=()=>Tt(k())}let h,m=k=>{h=A.onStop=()=>{pt(k,a,4)}},x;if(dn)if(m=qe,t?n&&He(t,a,3,[c(),d?[]:void 0,m]):c(),r==="sync"){const k=Ua();x=k.__watcherHandles||(k.__watcherHandles=[])}else return qe;let w=d?new Array(e.length).fill(Bn):Bn;const F=()=>{if(A.active)if(t){const k=A.run();(o||u||(d?k.some((Z,Y)=>en(Z,w[Y])):en(k,w)))&&(h&&h(),He(t,a,3,[k,w===Bn?void 0:d&&w[0]===Bn?[]:w,m]),w=k)}else A.run()};F.allowRecurse=!!t;let j;r==="sync"?j=F:r==="post"?j=()=>Me(F,a&&a.suspense):(F.pre=!0,a&&(F.id=a.uid),j=()=>Po(F));const A=new go(c,j);t?n?F():w=A.run():r==="post"?Me(A.run.bind(A),a&&a.suspense):A.run();const Q=()=>{A.stop(),a&&a.scope&&oo(a.scope.effects,A)};return x&&x.push(Q),Q}function ta(e,t,n){const o=this.proxy,r=_e(e)?e.includes(".")?Jr(o,e):()=>o[e]:e.bind(o,o);let s;G(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):St(),l}function Jr(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r<n.length&&o;r++)o=o[n[r]];return o}}function Tt(e,t){if(!pe(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),xe(e))Tt(e.value,t);else if(R(e))for(let n=0;n<e.length;n++)Tt(e[n],t);else if(fr(e)||Dt(e))e.forEach(n=>{Tt(n,t)});else if(hr(e))for(const n in e)Tt(e[n],t);return e}function ht(e,t){const n=Pe;if(n===null)return e;const o=Yn(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,l,a,c=ee]=t[s];i&&(G(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 Ot(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&&(Nt(),He(a,n,8,[e.el,l,e,t]),Ft())}}function na(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return et(()=>{e.isMounted=!0}),os(()=>{e.isUnmounting=!0}),e}const Ve=[Function,Array],Qr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ve,onEnter:Ve,onAfterEnter:Ve,onEnterCancelled:Ve,onBeforeLeave:Ve,onLeave:Ve,onAfterLeave:Ve,onLeaveCancelled:Ve,onBeforeAppear:Ve,onAppear:Ve,onAfterAppear:Ve,onAppearCancelled:Ve},oa={name:"BaseTransition",props:Qr,setup(e,{slots:t}){const n=$s(),o=na();let r;return()=>{const s=t.default&&ts(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const w of s)if(w.type!==We){i=w;break}}const l=le(e),{mode:a}=l;if(o.isLeaving)return Io(i);const c=es(i);if(!c)return Io(i);const u=$o(c,l,o,n);Eo(c,u);const d=n.subTree,h=d&&es(d);let m=!1;const{getTransitionKey:x}=c.type;if(x){const w=x();r===void 0?r=w:w!==r&&(r=w,m=!0)}if(h&&h.type!==We&&(!Et(c,h)||m)){const w=$o(h,l,o,n);if(Eo(h,w),a==="out-in")return o.isLeaving=!0,w.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},Io(i);a==="in-out"&&c.type!==We&&(w.delayLeave=(F,j,A)=>{const Q=Gr(o,h);Q[String(h.key)]=h,F._leaveCb=()=>{j(),F._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=A})}return i}}};function Gr(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function $o(e,t,n,o){const{appear:r,mode:s,persisted:i=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:h,onAfterLeave:m,onLeaveCancelled:x,onBeforeAppear:w,onAppear:F,onAfterAppear:j,onAppearCancelled:A}=t,Q=String(e.key),k=Gr(n,e),Z=(v,O)=>{v&&He(v,o,9,O)},Y=(v,O)=>{const B=O[1];Z(v,O),R(v)?v.every(ce=>ce.length<=1)&&B():v.length<=1&&B()},K={mode:s,persisted:i,beforeEnter(v){let O=l;if(!n.isMounted)if(r)O=w||l;else return;v._leaveCb&&v._leaveCb(!0);const B=k[Q];B&&Et(e,B)&&B.el._leaveCb&&B.el._leaveCb(),Z(O,[v])},enter(v){let O=a,B=c,ce=u;if(!n.isMounted)if(r)O=F||a,B=j||c,ce=A||u;else return;let M=!1;const re=v._enterCb=T=>{M||(M=!0,T?Z(ce,[v]):Z(B,[v]),K.delayedLeave&&K.delayedLeave(),v._enterCb=void 0)};O?Y(O,[v,re]):re()},leave(v,O){const B=String(e.key);if(v._enterCb&&v._enterCb(!0),n.isUnmounting)return O();Z(d,[v]);let ce=!1;const M=v._leaveCb=re=>{ce||(ce=!0,O(),re?Z(x,[v]):Z(m,[v]),v._leaveCb=void 0,k[B]===e&&delete k[B])};k[B]=e,h?Y(h,[v,M]):M()},clone(v){return $o(v,t,n,o)}};return K}function Io(e){if(Dn(e))return e=gt(e),e.children=null,e}function es(e){return Dn(e)?e.children?e.children[0]:void 0:e}function Eo(e,t){e.shapeFlag&6&&e.component?Eo(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ts(e,t=!1,n){let o=[],r=0;for(let s=0;s<e.length;s++){let i=e[s];const l=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===Ce?(i.patchFlag&128&&r++,o=o.concat(ts(i.children,t,l))):(t||i.type!==We)&&o.push(l!=null?gt(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 G(e)?(()=>me({name:e.name},t,{setup:e}))():e}const ln=e=>!!e.type.__asyncLoader,Dn=e=>e.type.__isKeepAlive;function ra(e,t){ns(e,"a",t)}function sa(e,t){ns(e,"da",t)}function ns(e,t,n=ke){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Nn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Dn(r.parent.vnode)&&ia(o,t,n,r),r=r.parent}}function ia(e,t,n,o){const r=Nn(t,e,o,!0);ct(()=>{oo(o[t],r)},n)}function Nn(e,t,n=ke,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Nt(),Kt(n);const l=He(t,n,e,i);return St(),Ft(),l});return o?r.unshift(s):r.push(s),s}}const at=e=>(t,n=ke)=>(!dn||e==="sp")&&Nn(e,(...o)=>t(...o),n),la=at("bm"),et=at("m"),aa=at("bu"),ca=at("u"),os=at("bum"),ct=at("um"),ua=at("sp"),fa=at("rtg"),da=at("rtc");function pa(e,t=ke){Nn("ec",e,t)}const rs="components",ss=Symbol.for("v-ndc");function ha(e){return _e(e)?ga(rs,e,!1)||e:e||ss}function ga(e,t,n=!0,o=!1){const r=Pe||ke;if(r){const s=r.type;if(e===rs){const l=Va(s,!1);if(l&&(l===t||l===Ae(t)||l===kn(Ae(t))))return s}const i=is(r[e]||s[e],t)||is(r.appContext[e],t);return!i&&o?s:i}}function is(e,t){return e&&(e[t]||e[Ae(t)]||e[kn(Ae(t))])}function Fn(e,t,n,o){let r;const s=n&&n[o];if(R(e)||_e(e)){r=new Array(e.length);for(let i=0,l=e.length;i<l;i++)r[i]=t(e[i],i,void 0,s&&s[i])}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,s&&s[i])}else if(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 ls(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(Pe.isCE||Pe.parent&&ln(Pe.parent)&&Pe.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&&as(s(n)),l=Ie(Ce,{key:n.key||i&&i.key||`_${t}`},i||(o?o():[]),i&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function as(e){return e.some(t=>Kn(t)?!(t.type===We||t.type===Ce&&!as(t.children)):!0)?e:null}const So=e=>e?Es(e)?Yn(e)||e.proxy:So(e.parent):null,an=me(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=>So(e.parent),$root:e=>So(e.root),$emit:e=>e.emit,$options:e=>jo(e),$forceUpdate:e=>e.f||(e.f=()=>Po(e.update)),$nextTick:e=>e.n||(e.n=lt.bind(e.proxy)),$watch:e=>ta.bind(e)}),Mo=(e,t)=>e!==ee&&!e.__isScriptSetup&&ie(e,t),ma={get({_:e},t){const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(Mo(o,t))return i[t]=1,o[t];if(r!==ee&&ie(r,t))return i[t]=2,r[t];if((c=e.propsOptions[0])&&ie(c,t))return i[t]=3,s[t];if(n!==ee&&ie(n,t))return i[t]=4,n[t];Lo&&(i[t]=0)}}const u=an[t];let d,h;if(u)return t==="$attrs"&&Se(e,"get",t),u(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==ee&&ie(n,t))return i[t]=4,n[t];if(h=a.config.globalProperties,ie(h,t))return h[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return Mo(r,t)?(r[t]=n,!0):o!==ee&&ie(o,t)?(o[t]=n,!0):ie(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&&ie(e,i)||Mo(t,i)||(l=s[0])&&ie(l,i)||ie(o,i)||ie(an,i)||ie(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ie(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function cs(e){return R(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Lo=!0;function va(e){const t=jo(e),n=e.proxy,o=e.ctx;Lo=!1,t.beforeCreate&&us(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:l,provide:a,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:m,updated:x,activated:w,deactivated:F,beforeDestroy:j,beforeUnmount:A,destroyed:Q,unmounted:k,render:Z,renderTracked:Y,renderTriggered:K,errorCaptured:v,serverPrefetch:O,expose:B,inheritAttrs:ce,components:M,directives:re,filters:T}=t;if(c&&_a(c,o,null),i)for(const se in i){const ae=i[se];G(ae)&&(o[se]=ae.bind(n))}if(r){const se=r.call(n,n);pe(se)&&(e.data=nn(se))}if(Lo=!0,s)for(const se in s){const ae=s[se],Ke=G(ae)?ae.bind(n,n):G(ae.get)?ae.get.bind(n,n):qe,Ue=!G(ae)&&G(ae.set)?ae.set.bind(n):qe,Xe=fe({get:Ke,set:Ue});Object.defineProperty(o,se,{enumerable:!0,configurable:!0,get:()=>Xe.value,set:Le=>Xe.value=Le})}if(l)for(const se in l)fs(l[se],o,n,se);if(a){const se=G(a)?a.call(n):a;Reflect.ownKeys(se).forEach(ae=>{Vn(ae,se[ae])})}u&&us(u,e,"c");function X(se,ae){R(ae)?ae.forEach(Ke=>se(Ke.bind(n))):ae&&se(ae.bind(n))}if(X(la,d),X(et,h),X(aa,m),X(ca,x),X(ra,w),X(sa,F),X(pa,v),X(da,Y),X(fa,K),X(os,A),X(ct,k),X(ua,O),R(B))if(B.length){const se=e.exposed||(e.exposed={});B.forEach(ae=>{Object.defineProperty(se,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),M&&(e.components=M),re&&(e.directives=re)}function _a(e,t,n=qe){R(e)&&(e=Ao(e));for(const o in e){const r=e[o];let s;pe(r)?"default"in r?s=$t(r.from||o,r.default,!0):s=$t(r.from||o):s=$t(r),xe(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[o]=s}}function us(e,t,n){He(R(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function fs(e,t,n,o){const r=o.includes(".")?Jr(n,o):()=>n[o];if(_e(e)){const s=t[e];G(s)&&he(r,s)}else if(G(e))he(r,e.bind(n));else if(pe(e))if(R(e))e.forEach(s=>fs(s,t,n,o));else{const s=G(e.handler)?e.handler.bind(n):t[e.handler];G(s)&&he(r,s,e)}}function jo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,l=s.get(t);let a;return l?a=l:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(c=>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:ds,props:ps,emits:ps,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:ds,inject:ya};function ds(e,t){return t?e?function(){return me(G(e)?e.call(this,this):e,G(t)?t.call(this,this):t)}:t:e}function ya(e,t){return cn(Ao(e),Ao(t))}function Ao(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?me(Object.create(null),e,t):t}function ps(e,t){return e?R(e)&&R(t)?[...new Set([...e,...t])]:me(Object.create(null),cs(e),cs(t??{})):t}function wa(e,t){if(!e)return t;if(!t)return e;const n=me(Object.create(null),e);for(const o in t)n[o]=Ee(e[o],t[o]);return n}function hs(){return{app:null,config:{isNativeTag:Ji,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let xa=0;function Ca(e,t){return function(o,r=null){G(o)||(o=me({},o)),r!=null&&!pe(r)&&(r=null);const s=hs(),i=new Set;let l=!1;const a=s.app={_uid:xa++,_component:o,_props:r,_container:null,_context:s,_instance:null,version:qa,get config(){return s.config},set config(c){},use(c,...u){return i.has(c)||(c&&G(c.install)?(i.add(c),c.install(a,...u)):G(c)&&(i.add(c),c(a,...u))),a},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),a},component(c,u){return u?(s.components[c]=u,a):s.components[c]},directive(c,u){return u?(s.directives[c]=u,a):s.directives[c]},mount(c,u,d){if(!l){const h=W(o,r);return h.appContext=s,u&&t?t(h,c):e(h,c,d),l=!0,a._container=c,c.__vue_app__=a,Yn(h.component)||h.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return s.provides[c]=u,a},runWithContext(c){Hn=a;try{return c()}finally{Hn=null}}};return a}}let Hn=null;function Vn(e,t){if(ke){let n=ke.provides;const o=ke.parent&&ke.parent.provides;o===n&&(n=ke.provides=Object.create(o)),n[e]=t}}function $t(e,t,n=!1){const o=ke||Pe;if(o||Hn){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Hn._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&G(t)?t.call(o&&o.proxy):t}}function ka(e,t,n,o=!1){const r={},s={};Tn(s,Un,1),e.propsDefaults=Object.create(null),gs(e,t,r,s);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:Bl(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function Pa(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,l=le(r),[a]=e.propsOptions;let c=!1;if((o||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let h=u[d];if(An(e.emitsOptions,h))continue;const m=t[h];if(a)if(ie(s,h))m!==s[h]&&(s[h]=m,c=!0);else{const x=Ae(h);r[x]=zo(a,l,x,m,e,!1)}else m!==s[h]&&(s[h]=m,c=!0)}}}else{gs(e,t,r,s)&&(c=!0);let u;for(const d in l)(!t||!ie(t,d)&&((u=Fe(d))===d||!ie(t,u)))&&(a?n&&(n[d]!==void 0||n[u]!==void 0)&&(r[d]=zo(a,l,d,void 0,e,!0)):delete r[d]);if(s!==l)for(const d in s)(!t||!ie(t,d))&&(delete s[d],c=!0)}c&&st(e,"set","$attrs")}function gs(e,t,n,o){const[r,s]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(xn(a))continue;const c=t[a];let u;r&&ie(r,u=Ae(a))?!s||!s.includes(u)?n[u]=c:(l||(l={}))[u]=c:An(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,i=!0)}if(s){const a=le(n),c=l||ee;for(let u=0;u<s.length;u++){const d=s[u];n[d]=zo(r,a,d,c[d],e,!ie(c,d))}}return i}function zo(e,t,n,o,r,s){const i=e[n];if(i!=null){const l=ie(i,"default");if(l&&o===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&G(a)){const{propsDefaults:c}=r;n in c?o=c[n]:(Kt(r),o=c[n]=a.call(null,t),St())}else o=a}i[0]&&(s&&!l?o=!1:i[1]&&(o===""||o===Fe(n))&&(o=!0))}return o}function ms(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const s=e.props,i={},l=[];let a=!1;if(!G(e)){const u=d=>{a=!0;const[h,m]=ms(d,t,!0);me(i,h),m&&l.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!a)return pe(e)&&o.set(e,Ne),Ne;if(R(s))for(let u=0;u<s.length;u++){const d=Ae(s[u]);vs(d)&&(i[d]=ee)}else if(s)for(const u in s){const d=Ae(u);if(vs(d)){const h=s[u],m=i[d]=R(h)||G(h)?{type:h}:me({},h);if(m){const x=ys(Boolean,m.type),w=ys(String,m.type);m[0]=x>-1,m[1]=w<0||x<w,(x>-1||ie(m,"default"))&&l.push(d)}}}const c=[i,l];return pe(e)&&o.set(e,c),c}function vs(e){return e[0]!=="$"}function _s(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function bs(e,t){return _s(e)===_s(t)}function ys(e,t){return R(t)?t.findIndex(n=>bs(n,e)):G(t)&&bs(t,e)?0:-1}const ws=e=>e[0]==="_"||e==="$stable",Bo=e=>R(e)?e.map(tt):[tt(e)],Ta=(e,t,n)=>{if(t._n)return t;const o=oe((...r)=>Bo(t(...r)),n);return o._c=!1,o},xs=(e,t,n)=>{const o=e._ctx;for(const r in e){if(ws(r))continue;const s=e[r];if(G(s))t[r]=Ta(r,s,o);else if(s!=null){const i=Bo(s);t[r]=()=>i}}},Cs=(e,t)=>{const n=Bo(t);e.slots.default=()=>n},Oa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=le(t),Tn(t,"_",n)):xs(t,e.slots={})}else e.slots={},t&&Cs(e,t);Tn(e.slots,Un,1)},$a=(e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,i=ee;if(o.shapeFlag&32){const l=t._;l?n&&l===1?s=!1:(me(r,t),!n&&l===1&&delete r._):(s=!t.$stable,xs(t,r)),i=t}else t&&(Cs(e,t),i={default:1});if(s)for(const l in r)!ws(l)&&!(l in i)&&delete r[l]};function Do(e,t,n,o,r=!1){if(R(e)){e.forEach((h,m)=>Do(h,t&&(R(t)?t[m]:t),n,o,r));return}if(ln(o)&&!r)return;const s=o.shapeFlag&4?Yn(o.component)||o.component.proxy:o.el,i=r?null:s,{i:l,r:a}=e,c=t&&t.r,u=l.refs===ee?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(_e(c)?(u[c]=null,ie(d,c)&&(d[c]=null)):xe(c)&&(c.value=null)),G(a))pt(a,l,12,[i,u]);else{const h=_e(a),m=xe(a);if(h||m){const x=()=>{if(e.f){const w=h?ie(d,a)?d[a]:u[a]:a.value;r?R(w)&&oo(w,s):R(w)?w.includes(s)||w.push(s):h?(u[a]=[s],ie(d,a)&&(d[a]=u[a])):(a.value=[s],e.k&&(u[e.k]=a.value))}else h?(u[a]=i,ie(d,a)&&(d[a]=i)):m&&(a.value=i,e.k&&(u[e.k]=i))};i?(x.id=-1,Me(x,n)):x()}}}const Me=Gl;function Ia(e){return Ea(e)}function Ea(e,t){const n=co();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:l,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:h,setScopeId:m=qe,insertStaticContent:x}=e,w=(f,p,g,b=null,_=null,P=null,E=!1,C=null,$=!!p.dynamicChildren)=>{if(f===p)return;f&&!Et(f,p)&&(b=Je(f),Le(f,_,P,!0),f=null),p.patchFlag===-2&&($=!1,p.dynamicChildren=null);const{type:y,ref:D,shapeFlag:L}=p;switch(y){case Wn:F(f,p,g,b);break;case We:j(f,p,g,b);break;case No:f==null&&A(p,g,b,E);break;case Ce:M(f,p,g,b,_,P,E,C,$);break;default:L&1?Z(f,p,g,b,_,P,E,C,$):L&6?re(f,p,g,b,_,P,E,C,$):(L&64||L&128)&&y.process(f,p,g,b,_,P,E,C,$,Ct)}D!=null&&_&&Do(D,f&&f.ref,P,p||f,!p)},F=(f,p,g,b)=>{if(f==null)o(p.el=l(p.children),g,b);else{const _=p.el=f.el;p.children!==f.children&&c(_,p.children)}},j=(f,p,g,b)=>{f==null?o(p.el=a(p.children||""),g,b):p.el=f.el},A=(f,p,g,b)=>{[f.el,f.anchor]=x(f.children,p,g,b,f.el,f.anchor)},Q=({el:f,anchor:p},g,b)=>{let _;for(;f&&f!==p;)_=h(f),o(f,g,b),f=_;o(p,g,b)},k=({el:f,anchor:p})=>{let g;for(;f&&f!==p;)g=h(f),r(f),f=g;r(p)},Z=(f,p,g,b,_,P,E,C,$)=>{E=E||p.type==="svg",f==null?Y(p,g,b,_,P,E,C,$):O(f,p,_,P,E,C,$)},Y=(f,p,g,b,_,P,E,C)=>{let $,y;const{type:D,props:L,shapeFlag:N,transition:z,dirs:ne}=f;if($=f.el=i(f.type,P,L&&L.is,L),N&8?u($,f.children):N&16&&v(f.children,$,null,b,_,P&&D!=="foreignObject",E,C),ne&&Ot(f,null,b,"created"),K($,f,f.scopeId,E,b),L){for(const ue in L)ue!=="value"&&!xn(ue)&&s($,ue,null,L[ue],P,f.children,b,_,ve);"value"in L&&s($,"value",null,L.value),(y=L.onVnodeBeforeMount)&&nt(y,b,f)}ne&&Ot(f,null,b,"beforeMount");const de=(!_||_&&!_.pendingBranch)&&z&&!z.persisted;de&&z.beforeEnter($),o($,p,g),((y=L&&L.onVnodeMounted)||de||ne)&&Me(()=>{y&&nt(y,b,f),de&&z.enter($),ne&&Ot(f,null,b,"mounted")},_)},K=(f,p,g,b,_)=>{if(g&&m(f,g),b)for(let P=0;P<b.length;P++)m(f,b[P]);if(_){let P=_.subTree;if(p===P){const E=_.vnode;K(f,E,E.scopeId,E.slotScopeIds,_.parent)}}},v=(f,p,g,b,_,P,E,C,$=0)=>{for(let y=$;y<f.length;y++){const D=f[y]=C?vt(f[y]):tt(f[y]);w(null,D,p,g,b,_,P,E,C)}},O=(f,p,g,b,_,P,E)=>{const C=p.el=f.el;let{patchFlag:$,dynamicChildren:y,dirs:D}=p;$|=f.patchFlag&16;const L=f.props||ee,N=p.props||ee;let z;g&&It(g,!1),(z=N.onVnodeBeforeUpdate)&&nt(z,g,p,f),D&&Ot(p,f,g,"beforeUpdate"),g&&It(g,!0);const ne=_&&p.type!=="foreignObject";if(y?B(f.dynamicChildren,y,C,g,b,ne,P):E||ae(f,p,C,null,g,b,ne,P,!1),$>0){if($&16)ce(C,p,L,N,g,b,_);else if($&2&&L.class!==N.class&&s(C,"class",null,N.class,_),$&4&&s(C,"style",L.style,N.style,_),$&8){const de=p.dynamicProps;for(let ue=0;ue<de.length;ue++){const ye=de[ue],Qe=L[ye],Gt=N[ye];(Gt!==Qe||ye==="value")&&s(C,ye,Qe,Gt,_,f.children,g,b,ve)}}$&1&&f.children!==p.children&&u(C,p.children)}else!E&&y==null&&ce(C,p,L,N,g,b,_);((z=N.onVnodeUpdated)||D)&&Me(()=>{z&&nt(z,g,p,f),D&&Ot(p,f,g,"updated")},b)},B=(f,p,g,b,_,P,E)=>{for(let C=0;C<p.length;C++){const $=f[C],y=p[C],D=$.el&&($.type===Ce||!Et($,y)||$.shapeFlag&70)?d($.el):g;w($,y,D,null,b,_,P,E,!0)}},ce=(f,p,g,b,_,P,E)=>{if(g!==b){if(g!==ee)for(const C in g)!xn(C)&&!(C in b)&&s(f,C,g[C],null,E,p.children,_,P,ve);for(const C in b){if(xn(C))continue;const $=b[C],y=g[C];$!==y&&C!=="value"&&s(f,C,y,$,E,p.children,_,P,ve)}"value"in b&&s(f,"value",g.value,b.value)}},M=(f,p,g,b,_,P,E,C,$)=>{const y=p.el=f?f.el:l(""),D=p.anchor=f?f.anchor:l("");let{patchFlag:L,dynamicChildren:N,slotScopeIds:z}=p;z&&(C=C?C.concat(z):z),f==null?(o(y,g,b),o(D,g,b),v(p.children,g,D,_,P,E,C,$)):L>0&&L&64&&N&&f.dynamicChildren?(B(f.dynamicChildren,N,g,_,P,E,C),(p.key!=null||_&&p===_.subTree)&&ks(f,p,!0)):ae(f,p,g,D,_,P,E,C,$)},re=(f,p,g,b,_,P,E,C,$)=>{p.slotScopeIds=C,f==null?p.shapeFlag&512?_.ctx.activate(p,g,b,E,$):T(p,g,b,_,P,E,$):U(f,p,$)},T=(f,p,g,b,_,P,E)=>{const C=f.component=Da(f,b,_);if(Dn(f)&&(C.ctx.renderer=Ct),Na(C),C.asyncDep){if(_&&_.registerDep(C,X),!f.el){const $=C.subTree=W(We);j(null,$,p,g)}return}X(C,f,p,g,_,P,E)},U=(f,p,g)=>{const b=p.component=f.component;if(Xl(f,p,g))if(b.asyncDep&&!b.asyncResolved){se(b,p,g);return}else b.next=p,Wl(b.update),b.update();else p.el=f.el,b.vnode=p},X=(f,p,g,b,_,P,E)=>{const C=()=>{if(f.isMounted){let{next:D,bu:L,u:N,parent:z,vnode:ne}=f,de=D,ue;It(f,!1),D?(D.el=ne.el,se(f,D,E)):D=ne,L&&Pn(L),(ue=D.props&&D.props.onVnodeBeforeUpdate)&&nt(ue,z,D,ne),It(f,!0);const ye=To(f),Qe=f.subTree;f.subTree=ye,w(Qe,ye,d(Qe.el),Je(Qe),f,_,P),D.el=ye.el,de===null&&Jl(f,ye.el),N&&Me(N,_),(ue=D.props&&D.props.onVnodeUpdated)&&Me(()=>nt(ue,z,D,ne),_)}else{let D;const{el:L,props:N}=p,{bm:z,m:ne,parent:de}=f,ue=ln(p);if(It(f,!1),z&&Pn(z),!ue&&(D=N&&N.onVnodeBeforeMount)&&nt(D,de,p),It(f,!0),L&&_n){const ye=()=>{f.subTree=To(f),_n(L,f.subTree,f,_,null)};ue?p.type.__asyncLoader().then(()=>!f.isUnmounted&&ye()):ye()}else{const ye=f.subTree=To(f);w(null,ye,g,b,f,_,P),p.el=ye.el}if(ne&&Me(ne,_),!ue&&(D=N&&N.onVnodeMounted)){const ye=p;Me(()=>nt(D,de,ye),_)}(p.shapeFlag&256||de&&ln(de.vnode)&&de.vnode.shapeFlag&256)&&f.a&&Me(f.a,_),f.isMounted=!0,p=g=b=null}},$=f.effect=new go(C,()=>Po(y),f.scope),y=f.update=()=>$.run();y.id=f.uid,It(f,!0),y()},se=(f,p,g)=>{p.component=f;const b=f.vnode.props;f.vnode=p,f.next=null,Pa(f,p.props,b,g),$a(f,p.children,g),Nt(),Kr(),Ft()},ae=(f,p,g,b,_,P,E,C,$=!1)=>{const y=f&&f.children,D=f?f.shapeFlag:0,L=p.children,{patchFlag:N,shapeFlag:z}=p;if(N>0){if(N&128){Ue(y,L,g,b,_,P,E,C,$);return}else if(N&256){Ke(y,L,g,b,_,P,E,C,$);return}}z&8?(D&16&&ve(y,_,P),L!==y&&u(g,L)):D&16?z&16?Ue(y,L,g,b,_,P,E,C,$):ve(y,_,P,!0):(D&8&&u(g,""),z&16&&v(L,g,b,_,P,E,C,$))},Ke=(f,p,g,b,_,P,E,C,$)=>{f=f||Ne,p=p||Ne;const y=f.length,D=p.length,L=Math.min(y,D);let N;for(N=0;N<L;N++){const z=p[N]=$?vt(p[N]):tt(p[N]);w(f[N],z,g,null,_,P,E,C,$)}y>D?ve(f,_,P,!0,!1,L):v(p,g,b,_,P,E,C,$,L)},Ue=(f,p,g,b,_,P,E,C,$)=>{let y=0;const D=p.length;let L=f.length-1,N=D-1;for(;y<=L&&y<=N;){const z=f[y],ne=p[y]=$?vt(p[y]):tt(p[y]);if(Et(z,ne))w(z,ne,g,null,_,P,E,C,$);else break;y++}for(;y<=L&&y<=N;){const z=f[L],ne=p[N]=$?vt(p[N]):tt(p[N]);if(Et(z,ne))w(z,ne,g,null,_,P,E,C,$);else break;L--,N--}if(y>L){if(y<=N){const z=N+1,ne=z<D?p[z].el:b;for(;y<=N;)w(null,p[y]=$?vt(p[y]):tt(p[y]),g,ne,_,P,E,C,$),y++}}else if(y>N)for(;y<=L;)Le(f[y],_,P,!0),y++;else{const z=y,ne=y,de=new Map;for(y=ne;y<=N;y++){const De=p[y]=$?vt(p[y]):tt(p[y]);De.key!=null&&de.set(De.key,y)}let ue,ye=0;const Qe=N-ne+1;let Gt=!1,qi=0;const bn=new Array(Qe);for(y=0;y<Qe;y++)bn[y]=0;for(y=z;y<=L;y++){const De=f[y];if(ye>=Qe){Le(De,_,P,!0);continue}let ot;if(De.key!=null)ot=de.get(De.key);else for(ue=ne;ue<=N;ue++)if(bn[ue-ne]===0&&Et(De,p[ue])){ot=ue;break}ot===void 0?Le(De,_,P,!0):(bn[ot-ne]=y+1,ot>=qi?qi=ot:Gt=!0,w(De,p[ot],g,null,_,P,E,C,$),ye++)}const Yi=Gt?Sa(bn):Ne;for(ue=Yi.length-1,y=Qe-1;y>=0;y--){const De=ne+y,ot=p[De],Zi=De+1<D?p[De+1].el:b;bn[y]===0?w(null,ot,g,Zi,_,P,E,C,$):Gt&&(ue<0||y!==Yi[ue]?Xe(ot,g,Zi,2):ue--)}}},Xe=(f,p,g,b,_=null)=>{const{el:P,type:E,transition:C,children:$,shapeFlag:y}=f;if(y&6){Xe(f.component.subTree,p,g,b);return}if(y&128){f.suspense.move(p,g,b);return}if(y&64){E.move(f,p,g,Ct);return}if(E===Ce){o(P,p,g);for(let L=0;L<$.length;L++)Xe($[L],p,g,b);o(f.anchor,p,g);return}if(E===No){Q(f,p,g);return}if(b!==2&&y&1&&C)if(b===0)C.beforeEnter(P),o(P,p,g),Me(()=>C.enter(P),_);else{const{leave:L,delayLeave:N,afterLeave:z}=C,ne=()=>o(P,p,g),de=()=>{L(P,()=>{ne(),z&&z()})};N?N(P,ne,de):de()}else o(P,p,g)},Le=(f,p,g,b=!1,_=!1)=>{const{type:P,props:E,ref:C,children:$,dynamicChildren:y,shapeFlag:D,patchFlag:L,dirs:N}=f;if(C!=null&&Do(C,null,g,f,!0),D&256){p.ctx.deactivate(f);return}const z=D&1&&N,ne=!ln(f);let de;if(ne&&(de=E&&E.onVnodeBeforeUnmount)&&nt(de,p,f),D&6)J(f.component,g,b);else{if(D&128){f.suspense.unmount(g,b);return}z&&Ot(f,null,p,"beforeUnmount"),D&64?f.type.remove(f,p,g,_,Ct,b):y&&(P!==Ce||L>0&&L&64)?ve(y,p,g,!1,!0):(P===Ce&&L&384||!_&&D&16)&&ve($,p,g),b&&Qt(f)}(ne&&(de=E&&E.onVnodeUnmounted)||z)&&Me(()=>{de&&nt(de,p,f),z&&Ot(f,null,p,"unmounted")},g)},Qt=f=>{const{type:p,el:g,anchor:b,transition:_}=f;if(p===Ce){I(g,b);return}if(p===No){k(f);return}const P=()=>{r(g),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(f.shapeFlag&1&&_&&!_.persisted){const{leave:E,delayLeave:C}=_,$=()=>E(g,P);C?C(f.el,P,$):$()}else P()},I=(f,p)=>{let g;for(;f!==p;)g=h(f),r(f),f=g;r(p)},J=(f,p,g)=>{const{bum:b,scope:_,update:P,subTree:E,um:C}=f;b&&Pn(b),_.stop(),P&&(P.active=!1,Le(E,f,p,g)),C&&Me(C,p),Me(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},ve=(f,p,g,b=!1,_=!1,P=0)=>{for(let E=P;E<f.length;E++)Le(f[E],p,g,b,_)},Je=f=>f.shapeFlag&6?Je(f.component.subTree):f.shapeFlag&128?f.suspense.next():h(f.anchor||f.el),Bt=(f,p,g)=>{f==null?p._vnode&&Le(p._vnode,null,null,!0):w(p._vnode||null,f,p,null,null,null,g),Kr(),Ur(),p._vnode=f},Ct={p:w,um:Le,m:Xe,r:Qt,mt:T,mc:v,pc:ae,pbc:B,n:Je,o:e};let vn,_n;return t&&([vn,_n]=t(Ct)),{render:Bt,hydrate:vn,createApp:Ca(Bt,vn)}}function It({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ks(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]=vt(r[s]),l.el=i.el),n||ks(i,l)),l.type===Wn&&(l.el=i.el)}}function Sa(e){const t=e.slice(),n=[0];let o,r,s,i,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(r=n[n.length-1],e[r]<c){t[o]=r,n.push(o);continue}for(s=0,i=n.length-1;s<i;)l=s+i>>1,e[n[l]]<c?s=l+1:i=l;c<e[n[s]]&&(s>0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}const Ma=e=>e.__isTeleport,Ce=Symbol.for("v-fgt"),Wn=Symbol.for("v-txt"),We=Symbol.for("v-cmt"),No=Symbol.for("v-stc"),un=[];let Ze=null;function S(e=!1){un.push(Ze=e?null:[])}function La(){un.pop(),Ze=un[un.length-1]||null}let fn=1;function Ps(e){fn+=e}function Ts(e){return e.dynamicChildren=fn>0?Ze||Ne:null,La(),fn>0&&Ze&&Ze.push(e),e}function q(e,t,n,o,r,s){return Ts(V(e,t,n,o,r,s,!0))}function Ie(e,t,n,o,r){return Ts(W(e,t,n,o,r,!0))}function Kn(e){return e?e.__v_isVNode===!0:!1}function Et(e,t){return e.type===t.type&&e.key===t.key}const Un="__vInternal",Os=({key:e})=>e??null,qn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?_e(e)||xe(e)||G(e)?{i:Pe,r:e,k:t,f:!!n}:e:null);function V(e,t=null,n=null,o=0,r=null,s=e===Ce?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Os(t),ref:t&&qn(t),scopeId:Zr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Pe};return l?(Fo(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=_e(n)?8:16),fn>0&&!i&&Ze&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&Ze.push(a),a}const W=ja;function ja(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===ss)&&(e=We),Kn(e)){const l=gt(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=Aa(t);let{class:l,style:a}=t;l&&!_e(l)&&(t.class=we(l)),pe(a)&&(zr(a)&&!R(a)&&(a=me({},a)),t.style=Re(a))}const i=_e(e)?1:Ql(e)?128:Ma(e)?64:pe(e)?4:G(e)?2:0;return V(e,t,n,o,r,i,s,!0)}function Aa(e){return e?zr(e)||Un in e?me({},e):e:null}function gt(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&&Os(l),ref:t&&t.ref?n&&r?R(r)?r.concat(qn(t)):[r,qn(t)]:qn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ce?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&>(e.ssContent),ssFallback:e.ssFallback&>(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function mt(e=" ",t=0){return W(Wn,null,e,t)}function Be(e="",t=!1){return t?(S(),Ie(We,null,e)):W(We,null,e)}function tt(e){return e==null||typeof e=="boolean"?W(We):R(e)?W(Ce,null,e.slice()):typeof e=="object"?vt(e):W(Wn,null,String(e))}function vt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:gt(e)}function Fo(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),Fo(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Un in t)?t._ctx=Pe:r===3&&Pe&&(Pe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else G(t)?(t={default:t,_ctx:Pe},n=32):(t=String(t),o&64?(n=16,t=[mt(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=we([t.class,o.class]));else if(r==="style")t.style=Re([t.style,o.style]);else if(yn(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 nt(e,t,n,o=null){He(e,t,7,[n,o])}const za=hs();let Ba=0;function Da(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||za,s={uid:Ba++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new al(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ms(o,r),emitsOptions:Yr(o,r),emit:null,emitted:null,propsDefaults: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 ke=null;const $s=()=>ke||Pe;let Ho,Wt,Is="__VUE_INSTANCE_SETTERS__";(Wt=co()[Is])||(Wt=co()[Is]=[]),Wt.push(e=>ke=e),Ho=e=>{Wt.length>1?Wt.forEach(t=>t(e)):Wt[0](e)};const Kt=e=>{Ho(e),e.scope.on()},St=()=>{ke&&ke.scope.off(),Ho(null)};function Es(e){return e.vnode.shapeFlag&4}let dn=!1;function Na(e,t=!1){dn=t;const{props:n,children:o}=e.vnode,r=Es(e);ka(e,n,r,t),Oa(e,o);const s=r?Fa(e,t):void 0;return dn=!1,s}function Fa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Br(new Proxy(e.ctx,ma));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?Ha(e):null;Kt(e),Nt();const s=pt(o,e,0,[e.props,r]);if(Ft(),St(),dr(s)){if(s.then(St,St),t)return s.then(i=>{Ss(e,i,t)}).catch(i=>{jn(i,e,0)});e.asyncDep=s}else Ss(e,s,t)}else Ls(e,t)}function Ss(e,t,n){G(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=Hr(t)),Ls(e,n)}let Ms;function Ls(e,t,n){const o=e.type;if(!e.render){if(!t&&Ms&&!o.render){const r=o.template||jo(e).template;if(r){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=me(me({isCustomElement:s,delimiters:l},i),a);o.render=Ms(r,c)}}e.render=o.render||qe}Kt(e),Nt(),va(e),Ft(),St()}function Ra(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Se(e,"get","$attrs"),t[n]}}))}function Ha(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Ra(e)},slots:e.slots,emit:e.emit,expose:t}}function Yn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Hr(Br(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in an)return an[n](e)},has(t,n){return n in t||n in an}}))}function Va(e,t=!0){return G(e)?e.displayName||e.name:e.name||t&&e.__name}function Wa(e){return G(e)&&"__vccOpts"in e}const fe=(e,t)=>Rl(e,t,dn);function js(e,t,n){const o=arguments.length;return o===2?pe(t)&&!R(t)?Kn(t)?W(e,null,[t]):W(e,t):W(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Kn(n)&&(n=[n]),W(e,t,n))}const Ka=Symbol.for("v-scx"),Ua=()=>$t(Ka),qa="3.3.4",Ya="http://www.w3.org/2000/svg",Mt=typeof document<"u"?document:null,As=Mt&&Mt.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?Mt.createElementNS(Ya,e):Mt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Mt.createTextNode(e),createComment:e=>Mt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Mt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,s){const i=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{As.innerHTML=o?`<svg>${e}</svg>`:e;const l=As.content;if(o){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Xa(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Ja(e,t,n){const o=e.style,r=_e(n);if(n&&!r){if(t&&!_e(t))for(const s in t)n[s]==null&&Vo(o,s,"");for(const s in n)Vo(o,s,n[s])}else{const s=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=s)}}const zs=/\s*!important$/;function Vo(e,t,n){if(R(n))n.forEach(o=>Vo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Qa(e,t);zs.test(n)?e.setProperty(Fe(o),n.replace(zs,""),"important"):e[o]=n}}const Bs=["Webkit","Moz","ms"],Wo={};function Qa(e,t){const n=Wo[t];if(n)return n;let o=Ae(t);if(o!=="filter"&&o in e)return Wo[t]=o;o=kn(o);for(let r=0;r<Bs.length;r++){const s=Bs[r]+o;if(s in e)return Wo[t]=s}return t}const Ds="http://www.w3.org/1999/xlink";function Ga(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Ds,t.slice(6,t.length)):e.setAttributeNS(Ds,t,n);else{const s=ll(t);n==null||s&&!mr(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function ec(e,t,n,o,r,s,i){if(t==="innerHTML"||t==="textContent"){o&&i(o,r,s),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const c=l==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=mr(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function 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 Ns=/(?:Once|Passive|Capture)$/;function oc(e){let t;if(Ns.test(e)){t={};let o;for(;o=e.match(Ns);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Fe(e.slice(2)),t]}let Ko=0;const rc=Promise.resolve(),sc=()=>Ko||(rc.then(()=>Ko=0),Ko=Date.now());function ic(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;He(lc(o,n.value),t,5,[o])};return n.value=e,n.attached=sc(),n}function lc(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 Fs=/^on[a-z]/,ac=(e,t,n,o,r=!1,s,i,l,a)=>{t==="class"?Xa(e,o,r):t==="style"?Ja(e,n,o):yn(t)?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&&Fs.test(t)&&G(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Fs.test(t)&&_e(n)?!1:t in e}function uc(e,t){const n=Te(e);class o extends Uo{constructor(s){super(n,s,t)}}return o.def=n,o}const fc=typeof HTMLElement<"u"?HTMLElement:class{};class Uo 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,lt(()=>{this._connected||(Js(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}).observe(this,{attributes:!0});const t=(o,r=!1)=>{const{props:s,styles:i}=o;let l;if(s&&!R(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=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=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(Fe(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Fe(t),n+""):n||this.removeAttribute(Fe(t))))}_update(){Js(this._createVNode(),this.shadowRoot)}_createVNode(){const t=W(this._def,me({},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),Fe(s)!==s&&o(Fe(s),i)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Uo){n.parent=r._instance,n.provides=r._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}const _t="transition",pn="animation",qt=(e,{slots:t})=>js(oa,dc(e),t);qt.displayName="Transition";const Rs={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};qt.props=me({},Qr,Rs);const Lt=(e,t=[])=>{R(e)?e.forEach(n=>n(...t)):e&&e(...t)},Hs=e=>e?R(e)?e.some(t=>t.length>1):e.length>1:!1;function dc(e){const t={};for(const M in e)M in Rs||(t[M]=e[M]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=s,appearActiveClass:c=i,appearToClass:u=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,x=pc(r),w=x&&x[0],F=x&&x[1],{onBeforeEnter:j,onEnter:A,onEnterCancelled:Q,onLeave:k,onLeaveCancelled:Z,onBeforeAppear:Y=j,onAppear:K=A,onAppearCancelled:v=Q}=t,O=(M,re,T)=>{jt(M,re?u:l),jt(M,re?c:i),T&&T()},B=(M,re)=>{M._isLeaving=!1,jt(M,d),jt(M,m),jt(M,h),re&&re()},ce=M=>(re,T)=>{const U=M?K:A,X=()=>O(re,M,T);Lt(U,[re,X]),Vs(()=>{jt(re,M?a:s),bt(re,M?u:l),Hs(U)||Ws(re,o,w,X)})};return me(t,{onBeforeEnter(M){Lt(j,[M]),bt(M,s),bt(M,i)},onBeforeAppear(M){Lt(Y,[M]),bt(M,a),bt(M,c)},onEnter:ce(!1),onAppear:ce(!0),onLeave(M,re){M._isLeaving=!0;const T=()=>B(M,re);bt(M,d),mc(),bt(M,h),Vs(()=>{M._isLeaving&&(jt(M,d),bt(M,m),Hs(k)||Ws(M,o,F,T))}),Lt(k,[M,T])},onEnterCancelled(M){O(M,!1),Lt(Q,[M])},onAppearCancelled(M){O(M,!0),Lt(v,[M])},onLeaveCancelled(M){B(M),Lt(Z,[M])}})}function pc(e){if(e==null)return null;if(pe(e))return[qo(e.enter),qo(e.leave)];{const t=qo(e);return[t,t]}}function qo(e){return ao(e)}function bt(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 Vs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let hc=0;function Ws(e,t,n,o){const r=e._endId=++hc,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:l,propCount:a}=gc(e,t);if(!i)return o();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,h),s()},h=m=>{m.target===e&&++u>=a&&d()};setTimeout(()=>{u<a&&d()},l+1),e.addEventListener(c,h)}function gc(e,t){const n=window.getComputedStyle(e),o=x=>(n[x]||"").split(", "),r=o(`${_t}Delay`),s=o(`${_t}Duration`),i=Ks(r,s),l=o(`${pn}Delay`),a=o(`${pn}Duration`),c=Ks(l,a);let u=null,d=0,h=0;t===_t?i>0&&(u=_t,d=i,h=s.length):t===pn?c>0&&(u=pn,d=c,h=a.length):(d=Math.max(i,c),u=d>0?i>c?_t:pn:null,h=u?u===_t?s.length:a.length:0);const m=u===_t&&/\b(transform|all)(,|$)/.test(o(`${_t}Property`).toString());return{type:u,timeout:d,propCount:h,hasTransform:m}}function Ks(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Us(n)+Us(e[o])))}function Us(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function mc(){return document.body.offsetHeight}const qs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return R(t)?n=>Pn(t,n):t};function vc(e){e.target.composing=!0}function Ys(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const _c={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=qs(r);const s=o||r.props&&r.props.type==="number";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",Ys),Ut(e,"change",Ys))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},s){if(e._assign=qs(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&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"},Zs=(e,t)=>n=>{if(!("key"in n))return;const o=Fe(n.key);if(t.some(r=>r===o||wc[r]===o))return e(n)},xc={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):hn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),hn(e,!0),o.enter(e)):o.leave(e,()=>{hn(e,!1)}):hn(e,t))},beforeUnmount(e,{value:t}){hn(e,t)}};function hn(e,t){e.style.display=t?e._vod:"none"}const Cc=me({patchProp:ac},Za);let Xs;function kc(){return Xs||(Xs=Ia(Cc))}const Js=(...e)=>{kc().render(...e)},Pc={class:"flex gap-3 items-center children-pointer-events-auto relative z-30"},Tc={class:"flex justify-between items-end"},Oc={class:"inline-block children-pointer-events-auto w-1/3"},$c={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Ic={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},Ec={class:"inline-block z-20 relative"},Qs=Te({__name:"ReaderLayout",props:{idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{},spaceBottom:{},touchDevice:{type:Boolean}},setup(e){return(t,n)=>(S(),q("div",{class:we(["fixed inset-0 bg-black visible z-[9999999999] text-stone-100 font-sans text-base",{"cursor-none":t.idle}])},[Oe(t.$slots,"default"),V("div",{class:we(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear inset-2 sm:inset-3 flex flex-col justify-between",{"opacity-100 z-10":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}]),style:Re({paddingTop:`${t.spaceTop||0}px`,paddingBottom:t.spaceBottom?`${t.spaceBottom}px`:""})},[V("div",Pc,[Oe(t.$slots,"back"),t.touchDevice?Be("",!0):Oe(t.$slots,"exit",{key:0}),Oe(t.$slots,"chapter-nav")]),V("div",Tc,[V("div",Oc,[Oe(t.$slots,"page-nav")]),V("div",$c,[Oe(t.$slots,"reset-zoom")]),V("div",Ic,[Oe(t.$slots,"entry"),V("div",Ec,[Oe(t.$slots,"settings")]),Oe(t.$slots,"play")])]),V("div",{class:we(["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:Qs},Symbol.toStringTag,{value:"Module"})),be=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Mc={},Lc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},jc=[V("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[V("circle",{cx:"14",cy:"14",r:"12"}),V("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function Ac(e,t){return S(),q("svg",Lc,jc)}const Gs=be(Mc,[["render",Ac]]),zc=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),Bc={key:0,class:"h-9 rounded-full inline-flex justify-between items-center bg-black bg-opacity-50 gap-1 py-2 px-3 pointer-events-auto hover:bg-stone-900 hover:bg-opacity-50 duration-200",title:"Reset zoom"},Dc={class:"block w-4 h-4"},Nc={class:"w-12"},ei=Te({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=Gs;return t.zoom!==1?(S(),q("button",Bc,[V("div",Dc,[W(o)]),V("div",Nc,rt(Math.ceil(t.zoom*100))+"%",1)])):Be("",!0)}}}),Fc=Object.freeze(Object.defineProperty({__proto__:null,default:ei},Symbol.toStringTag,{value:"Module"})),Rc={},Hc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Vc=[V("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(),q("svg",Hc,Vc)}const Yo=be(Rc,[["render",Wc]]),Kc=Object.freeze(Object.defineProperty({__proto__:null,default:Yo},Symbol.toStringTag,{value:"Module"})),Uc={},qc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Yc=[V("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),V("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 S(),q("svg",qc,Yc)}const Zo=be(Uc,[["render",Zc]]),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 Vn("busy:touchDevice",e),Vn("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function Xo(){const e=$t("busy:touchDevice"),t=$t("setBusyState");let n=!1;return ct(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const Qc=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,s=.65;const i=setInterval(a,20);l();function l(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function a(){const c=+n||50;r<=c?(r++,s-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${s}`):(o.remove(),clearInterval(i))}},Yt={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>Qc(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},Gc={class:"group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200 rounđe-full p-2 w-full h-full inline-flex justify-center items-center"},Zn=Te({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=Xo();let r=!1;function s(){r||(r=!0,o(!0,{desktopOnly:!0}))}function i(){r&&(r=!1,o(!1,{desktopOnly:!0}))}function l(a){n.disabled?a.preventDefault():t("click")}return(a,c)=>ht((S(),Ie(ha(a.href?"a":"button"),Ro(a.href?{href:a.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full",{"cursor-default text-stone-400 hover:text-stone-400":a.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!a.disabled,"bg-black bg-opacity-50":!a.transparent}],onClick:At(l,["stop"]),onMouseenter:s,onMouseleave:i}),{default:oe(()=>[V("div",Gc,[Oe(a.$slots,"default")])]),_:3},16,["class","onClick"])),[[H(Yt),a.disabled?0:15]])}}),eu=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"})),tu={},nu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ou=[V("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)];function ru(e,t){return S(),q("svg",nu,ou)}const ti=be(tu,[["render",ru]]),su=Object.freeze(Object.defineProperty({__proto__:null,default:ti},Symbol.toStringTag,{value:"Module"}));class iu{constructor(){Xi(this,"listeners");this.listeners=[],this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.init()}init(){window.addEventListener("keydown",this.onKeyDown,{capture:!0}),window.addEventListener("keyup",this.onKeyUp,{capture:!0}),window.addEventListener("keypress",this.onKeyPress,{capture:!0})}dispose(){window.removeEventListener("keydown",this.onKeyDown,{capture:!0}),window.removeEventListener("keyup",this.onKeyUp,{capture:!0}),window.removeEventListener("keypress",this.onKeyPress,{capture:!0})}onKeyPress(t){t.stopImmediatePropagation(),t.stopPropagation()}onKeyDown(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyDown)==null?void 0:o.call(n,t)})}onKeyUp(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyUp)==null?void 0:o.call(n,t)})}addListener(t){this.listeners.push(t)}removeListener(t){const n=this.listeners.indexOf(t);n!==-1&&this.listeners.splice(n,1)}}function lu(){const e=new iu;return ct(()=>e.dispose()),Vn("keyController",e),e}function Jo(e){const t=$t("keyController");et(()=>t.addListener(e)),ct(()=>t.removeListener(e))}const au={class:"relative flex w-full flex-shrink-0 justify-center items-center h-16"},cu={class:"inline-flex items-center h-full absolute left-3 top-0"},uu=V("span",{class:"text-xl font-medium"},"Customize",-1),fu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},ni=Te({__name:"BottomSheet",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;Jo({onKeyDown:r});const o=Xo();he(()=>n.modelValue,s=>o(s));function r(s){n.modelValue&&s.key==="Escape"&&(t("update:modelValue",!1),s.preventDefault())}return(s,i)=>{const l=ti,a=Zn;return S(),q("div",{class:we(["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(qt,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:oe(()=>[n.modelValue?(S(),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"]))},[V("div",au,[V("div",cu,[W(a,{transparent:"",onClick:i[0]||(i[0]=()=>t("update:modelValue",!1))},{default:oe(()=>[W(l)]),_:1})]),uu]),V("div",fu,[Oe(s.$slots,"default")])])):Be("",!0)]),_:3})],2)}}}),du=Object.freeze(Object.defineProperty({__proto__:null,default:ni},Symbol.toStringTag,{value:"Module"})),pu=["min","max","step"],hu={class:"flex-shrink-0"},oi=be(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)=>(S(),q("div",{class:we(["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}%`})},[ht(V("input",{"onUpdate:modelValue":s[0]||(s[0]=i=>o.value=i),type:"range",min:r.min,max:r.max,step:r.step??1,class:"flex-grow"},null,8,pu),[[_c,o.value]]),V("p",hu,[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
|
-
`]]]),gu=Object.freeze(Object.defineProperty({__proto__:null,default:oi},Symbol.toStringTag,{value:"Module"})),mu={class:"flex items-center mb-8 last:mb-0"},vu={class:"flex-grow overflow-hidden"},ri=Te({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(S(),q("div",mu,[V("div",{class:we(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},rt(t.label),3),V("div",vu,[Oe(t.$slots,"default")])]))}}),_u=Object.freeze(Object.defineProperty({__proto__:null,default:ri},Symbol.toStringTag,{value:"Module"})),bu=["onClick","onKeyup"],si=Te({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=te(null),r=te({width:"",left:""});et(()=>{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(),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:{}},[V("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Re(r.value)},null,4),(S(!0),q(Ce,null,Fn(n.items,(a,c)=>ht((S(),q("div",{key:c,tabindex:"0",class:we(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.modelValue,"text-stone-400":c!=n.modelValue}]),onClick:()=>s(c),onKeyup:[Zs(()=>s(c),["enter"]),Zs(()=>s(c),["space"])]},[mt(rt(a),1)],42,bu)),[[H(Yt),30]])),128))],512))}}),yu=Object.freeze(Object.defineProperty({__proto__:null,default:si},Symbol.toStringTag,{value:"Module"})),wu={},xu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Cu=[V("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),V("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function ku(e,t){return S(),q("svg",xu,Cu)}const ii=be(wu,[["render",ku]]),Pu=Object.freeze(Object.defineProperty({__proto__:null,default:ii},Symbol.toStringTag,{value:"Module"}));var li;const Qo=typeof window<"u",Tu=e=>typeof e=="function",Ou=e=>typeof e=="string",yt=()=>{};Qo&&((li=window==null?void 0:window.navigator)!=null&&li.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Xn(e){return typeof e=="function"?e():H(e)}function ai(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}const ci=e=>e();function $u(e,t={}){let n,o,r=yt;const s=l=>{clearTimeout(l),r(),r=yt};return l=>{const a=Xn(e),c=Xn(t.maxWait);return n&&s(n),a<=0||c!==void 0&&c<=0?(o&&(s(o),o=null),Promise.resolve(l())):new Promise((u,d)=>{r=t.rejectOnCancel?d:u,c&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&s(o),o=null,u(l())},a)})}}function Iu(e=ci){const t=te(!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 Eu(e,t=!1,n="Timeout"){return new Promise((o,r)=>{setTimeout(t?()=>r(n):o,e)})}function Su(e){return e}function Go(e){return _r()?(ul(e),!0):!1}function Zt(e,t=200,n={}){return ai($u(t,n),e)}function Mu(e,t=!0){$s()?et(e):t?e():lt(e)}var ui=Object.getOwnPropertySymbols,Lu=Object.prototype.hasOwnProperty,ju=Object.prototype.propertyIsEnumerable,Au=(e,t)=>{var n={};for(var o in e)Lu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&ui)for(var o of ui(e))t.indexOf(o)<0&&ju.call(e,o)&&(n[o]=e[o]);return n};function zu(e,t,n={}){const o=n,{eventFilter:r=ci}=o,s=Au(o,["eventFilter"]);return he(e,ai(r,t),s)}var Bu=Object.defineProperty,Du=Object.defineProperties,Nu=Object.getOwnPropertyDescriptors,Jn=Object.getOwnPropertySymbols,fi=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,pi=(e,t,n)=>t in e?Bu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fu=(e,t)=>{for(var n in t||(t={}))fi.call(t,n)&&pi(e,n,t[n]);if(Jn)for(var n of Jn(t))di.call(t,n)&&pi(e,n,t[n]);return e},Ru=(e,t)=>Du(e,Nu(t)),Hu=(e,t)=>{var n={};for(var o in e)fi.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Jn)for(var o of Jn(e))t.indexOf(o)<0&&di.call(e,o)&&(n[o]=e[o]);return n};function Vu(e,t,n={}){const o=n,{eventFilter:r}=o,s=Hu(o,["eventFilter"]),{eventFilter:i,pause:l,resume:a,isActive:c}=Iu(r);return{stop:zu(e,t,Ru(Fu({},s),{eventFilter:i})),pause:l,resume:a,isActive:c}}function zt(e){var t;const n=Xn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const wt=Qo?window:void 0,Wu=Qo?window.document:void 0;function gn(...e){let t,n,o,r;if(Ou(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=wt):[t,n,o,r]=e,!t)return yt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},l=(u,d,h)=>(u.addEventListener(d,h,r),()=>u.removeEventListener(d,h,r)),a=he(()=>zt(t),u=>{i(),u&&s.push(...n.flatMap(d=>o.map(h=>l(u,d,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),i()};return Go(c),c}function Ku(e,t,n){const{immediate:o=!0,delay:r=0,onError:s=yt,onSuccess:i=yt,resetOnExecute:l=!0,shallow:a=!0,throwError:c}=n??{},u=a?Fr(t):te(t),d=te(!1),h=te(!1),m=te(void 0);async function x(w=0,...F){l&&(u.value=t),m.value=void 0,d.value=!1,h.value=!0,w>0&&await Eu(w);const j=typeof e=="function"?e(...F):e;try{const A=await j;u.value=A,d.value=!0,i(A)}catch(A){if(m.value=A,s(A),c)throw m}finally{h.value=!1}return u.value}return o&&x(r),{state:u,isReady:d,isLoading:h,error:m,execute:x}}function hi(e,t=!1){const n=te(),o=()=>n.value=!!e();return o(),Mu(o,t),n}const er=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},tr="__vueuse_ssr_handlers__";er[tr]=er[tr]||{};const Uu=er[tr];function qu(e,t){return Uu[e]||t}function Yu(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var Zu=Object.defineProperty,gi=Object.getOwnPropertySymbols,Xu=Object.prototype.hasOwnProperty,Ju=Object.prototype.propertyIsEnumerable,mi=(e,t,n)=>t in e?Zu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vi=(e,t)=>{for(var n in t||(t={}))Xu.call(t,n)&&mi(e,n,t[n]);if(gi)for(var n of gi(t))Ju.call(t,n)&&mi(e,n,t[n]);return e};const Qu={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function _i(e,t,n,o={}){var r;const{flush:s="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:d=wt,eventFilter:h,onError:m=K=>{console.error(K)}}=o,x=(u?Fr:te)(t);if(!n)try{n=qu("getDefaultStorage",()=>{var K;return(K=wt)==null?void 0:K.localStorage})()}catch(K){m(K)}if(!n)return x;const w=Xn(t),F=Yu(w),j=(r=o.serializer)!=null?r:Qu[F],{pause:A,resume:Q}=Vu(x,()=>k(x.value),{flush:s,deep:i,eventFilter:h});return d&&l&&gn(d,"storage",Y),Y(),x;function k(K){try{if(K==null)n.removeItem(e);else{const v=j.write(K),O=n.getItem(e);O!==v&&(n.setItem(e,v),d&&(d==null||d.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:O,newValue:v,storageArea:n}))))}}catch(v){m(v)}}function Z(K){const v=K?K.newValue:n.getItem(e);if(v==null)return a&&w!==null&&n.setItem(e,j.write(w)),w;if(!K&&c){const O=j.read(v);return Tu(c)?c(O,w):F==="object"&&!Array.isArray(O)?vi(vi({},w),O):O}else return typeof v!="string"?v:j.read(v)}function Y(K){if(!(K&&K.storageArea!==n)){if(K&&K.key==null){x.value=w;return}if(!(K&&K.key!==e)){A();try{x.value=Z(K)}catch(v){m(v)}finally{K?lt(Q):Q()}}}}}function Gu({document:e=Wu}={}){if(!e)return te("visible");const t=te(e.visibilityState);return gn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var bi=Object.getOwnPropertySymbols,ef=Object.prototype.hasOwnProperty,tf=Object.prototype.propertyIsEnumerable,nf=(e,t)=>{var n={};for(var o in e)ef.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&bi)for(var o of bi(e))t.indexOf(o)<0&&tf.call(e,o)&&(n[o]=e[o]);return n};function yi(e,t,n={}){const o=n,{window:r=wt}=o,s=nf(o,["window"]);let i;const l=hi(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},c=he(()=>zt(e),d=>{a(),l.value&&r&&d&&(i=new ResizeObserver(t),i.observe(d,s))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return Go(u),{isSupported:l,stop:u}}function of(e,t={width:0,height:0},n={}){const{window:o=wt,box:r="content-box"}=n,s=fe(()=>{var a,c;return(c=(a=zt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),i=te(t.width),l=te(t.height);return yi(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&s.value){const u=zt(e);if(u){const d=o.getComputedStyle(u);i.value=parseFloat(d.width),l.value=parseFloat(d.height)}}else if(c){const u=Array.isArray(c)?c:[c];i.value=u.reduce((d,{inlineSize:h})=>d+h,0),l.value=u.reduce((d,{blockSize:h})=>d+h,0)}else i.value=a.contentRect.width,l.value=a.contentRect.height},n),he(()=>zt(e),a=>{i.value=a?t.width:0,l.value=a?t.height:0}),{width:i,height:l}}function wi(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:i=wt}=n,l=hi(()=>i&&"IntersectionObserver"in i);let a=yt;const c=l.value?he(()=>({el:zt(e),root:zt(o)}),({el:d,root:h})=>{if(a(),!d)return;const m=new IntersectionObserver(t,{root:h,rootMargin:r,threshold:s});m.observe(d),a=()=>{m.disconnect(),a=yt}},{immediate:!0,flush:"post"}):yt,u=()=>{a(),c()};return Go(u),{isSupported:l,stop:u}}function Qn(e,t,n={}){const{window:o=wt}=n;return _i(e,t,o==null?void 0:o.localStorage,n)}var xi;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(xi||(xi={}));function nr(e,t,n={}){const{window:o=wt}=n;return _i(e,t,o==null?void 0:o.sessionStorage,n)}var rf=Object.defineProperty,Ci=Object.getOwnPropertySymbols,sf=Object.prototype.hasOwnProperty,lf=Object.prototype.propertyIsEnumerable,ki=(e,t,n)=>t in e?rf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,af=(e,t)=>{for(var n in t||(t={}))sf.call(t,n)&&ki(e,n,t[n]);if(Ci)for(var n of Ci(t))lf.call(t,n)&&ki(e,n,t[n]);return e};af({linear:Su},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function cf(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var xt=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(xt||{}),Xt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Xt||{});const Pi=.25,Ti=5,uf=.25,Gn=.25,eo=5,ff=.05;function df(e){const{titleName:t,asyncIsWebtoon:n}=e,o=t?cf(t):location.pathname,r=Qn(`tk:style:${o}`,Xt.longStrip,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(u,d){return Object.values(Xt).includes(u)?u:d}}),s=Qn(`tk:dir:${o}`,xt.vertical,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(u,d){return Object.values(xt).includes(u)?u:d}}),i=Qn(`tk:speed:${o}`,1,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(u,d){return u>=Pi&&u<=Ti?+u:d}}),l=Qn(`tk:zoom:${o}`,1,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(u,d){return u>=Gn&&u<=eo?+u:d}}),a=fe({get(){return n.state.value?Xt.longStrip:r.value},set:u=>r.value=u}),c=fe({get:()=>n.state.value?xt.vertical:s.value,set:u=>s.value=u});return{direction:c,style:a,speed:i,zoom:l,isLongStrip:fe(()=>a.value===Xt.longStrip),isDouble:fe(()=>a.value===Xt.double),isRTL:fe(()=>c.value===xt.rtl),isVertical:fe(()=>c.value===xt.vertical)}}const Oi=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=te(!1);function o(r){t("update:zoom",Math.round(r)/100)}return(r,s)=>{const i=ii,l=Zn,a=si,c=ri,u=oi,d=ni;return S(),q(Ce,null,[W(l,{title:"Customize",disabled:r.disabled,onClick:s[0]||(s[0]=()=>n.value=!0)},{default:oe(()=>[W(i)]),_:1},8,["disabled"]),W(d,{modelValue:n.value,"onUpdate:modelValue":s[4]||(s[4]=h=>n.value=h)},{default:oe(()=>[W(c,{label:"Style"},{default:oe(()=>[W(a,{"model-value":r.readerStyle,items:r.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":s[1]||(s[1]=h=>t("update:reader-style",h))},null,8,["model-value","items"])]),_:1}),W(c,{label:"Direction"},{default:oe(()=>[W(a,{"model-value":r.direction,items:r.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":s[2]||(s[2]=h=>t("update:direction",h))},null,8,["model-value","items"])]),_:1}),W(c,{label:"Speed"},{default:oe(()=>[W(u,{"model-value":r.speed,min:H(Pi),max:H(Ti),step:H(uf),suffix:"x","onUpdate:modelValue":s[3]||(s[3]=h=>t("update:speed",h))},{suffix:oe(()=>[mt(rt(r.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),W(c,{label:"Zoom"},{default:oe(()=>[W(u,{"model-value":Math.ceil(r.zoom*100),min:H(Gn)*100,max:H(eo)*100,step:H(ff)*100,"onUpdate:modelValue":o},{suffix:oe(()=>[mt(rt(Math.ceil(r.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue"])],64)}}}),pf=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),hf={},gf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},mf=[V("path",{d:"M18.652 3C18.0277 3 17.5216 3.5061 17.5216 4.13042V5.26083H16.3912C15.7669 5.26083 15.2608 5.76693 15.2608 6.39125C15.2608 7.01556 15.7669 7.52166 16.3912 7.52166H17.5216V8.65208C17.5216 9.27639 18.0277 9.78249 18.652 9.78249C19.2764 9.78249 19.7825 9.27639 19.7825 8.65208V7.52166H20.9129C21.5372 7.52166 22.0433 7.01556 22.0433 6.39125C22.0433 5.76693 21.5372 5.26083 20.9129 5.26083H19.7825V4.13042C19.7825 3.5061 19.2764 3 18.652 3Z",fill:"white"},null,-1),V("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.0183 5.92413L8.24658 7.18954C7.65717 7.34584 7.24677 7.87926 7.24677 8.48905V18.0483C7.24677 18.4887 7.72075 18.7663 8.10482 18.5509L11.4937 16.65C11.7272 16.519 12.012 16.519 12.2454 16.65L18.6384 20.2363C19.1505 20.5235 19.7825 20.1534 19.7825 19.5663L19.7825 12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 6.23454 13.0067 6.07783 13.0183 5.92413Z",fill:"white"},null,-1),V("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.49315 4.13042C4.64457 4.13042 3.95667 4.81833 3.95667 5.6669V19.5663C3.95667 20.1535 4.58867 20.5236 5.10077 20.2363L11.4937 16.6501C11.7272 16.5191 12.012 16.5191 12.2454 16.6501L18.6384 20.2363C19.1505 20.5236 19.7825 20.1535 19.7825 19.5663V12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 5.26083 13.3507 4.13042 13.3507 4.13042H5.49315Z",fill:"white","fill-opacity":"0.5"},null,-1)];function vf(e,t){return S(),q("svg",gf,mf)}const $i=be(hf,[["render",vf]]),_f=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"})),bf={},yf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wf=[V("path",{d:"M17.1026 8.89862C17.1114 8.90798 17.1203 8.91723 17.1295 8.92636C17.5709 9.36781 18.2866 9.36781 18.7281 8.92636L22.7247 4.92974C23.1662 4.48828 23.1662 3.77255 22.7247 3.33109C22.2833 2.88964 21.5675 2.88964 21.1261 3.33109L17.9292 6.52793L17.1286 5.72729C16.6871 5.28583 15.9714 5.28583 15.5299 5.72729C15.0885 6.16874 15.0885 6.88448 15.5299 7.32593L17.1026 8.89862Z",fill:"white"},null,-1),V("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9564 5.92413L8.18463 7.18954C7.59522 7.34584 7.18481 7.87926 7.18481 8.48905V18.0483C7.18481 18.4887 7.65879 18.7663 8.04287 18.5509L11.4318 16.65C11.6652 16.519 11.95 16.519 12.1835 16.65L18.5764 20.2363C19.0885 20.5235 19.7205 20.1534 19.7205 19.5663L19.7205 12.0433H18.5901C15.4686 12.0433 12.938 9.5128 12.938 6.39125C12.938 6.23454 12.9448 6.07783 12.9564 5.92413Z",fill:"white"},null,-1),V("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.4312 4.13042C4.58262 4.13042 3.89471 4.81833 3.89471 5.6669V19.5663C3.89471 20.1535 4.52672 20.5236 5.03882 20.2363L11.4318 16.6501C11.6652 16.5191 11.95 16.5191 12.1835 16.6501L18.5764 20.2363C19.0885 20.5236 19.7205 20.1535 19.7205 19.5663V5.6669C19.7205 5.6646 19.7205 5.66229 19.7205 5.65998V12.0433H18.5901C15.4685 12.0433 12.938 9.5128 12.938 6.39125C12.938 5.26083 13.2887 4.13042 13.2887 4.13042H5.4312Z",fill:"white","fill-opacity":"0.5"},null,-1)];function xf(e,t){return S(),q("svg",yf,wf)}const Ii=be(bf,[["render",xf]]),Cf=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"})),kf={},Pf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Tf=[V("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function Of(e,t){return S(),q("svg",Pf,Tf)}const Ei=be(kf,[["render",Of]]),$f=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),If=["aria-hidden"],Ef=["onClick"],Sf=["onClick"],Mf={class:"inline-flex items-center justify-center w-full h-full px-4 rounded-full group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200"},Lf={class:"whitespace-nowrap"},or=Te({__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);Jo({onKeyDown:m});const c=Xo();function u(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(d(),lt(()=>setTimeout(()=>{var k,Z;(Z=(k=s.value)==null?void 0:k.children[n.modelValue])==null||Z.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),w(o.value)):setTimeout(F,250)}function d(){const k=o.value;if(k){const Z=k.getBoundingClientRect(),Y=Z.x+Z.width/2;i.value=Z.y>window.innerHeight/2,l.value=Y<window.innerWidth/3,a.value=Y>window.innerWidth/3*2}}function h(k){k!=n.modelValue&&t("update:modelValue",k),u()}function m(k){r.value&&k.key==="Escape"&&(u(),k.preventDefault())}let x=[];function w(k){const Z=window.getComputedStyle(k).zIndex,Y=k.style.zIndex;(!Z||!(+Z>0))&&((!k.parentElement||k.parentElement.childElementCount>1)&&(k.style.zIndex="1",x.push({el:k,zIndex:Y})),k.parentElement&&w(k.parentElement))}function F(){x.forEach(({el:k,zIndex:Z})=>{k.style.zIndex=Z??""}),x=[]}let j=!1;function A(){j||(j=!0,c(!0,{desktopOnly:!0}))}function Q(){j&&(j=!1,c(!1,{desktopOnly:!0}))}return(k,Z)=>{const Y=Ei;return S(),q("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(S(),q("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:u})):Be("",!0),n.items.length?(S(),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:oe(()=>[r.value?(S(),q("ul",{key:0,ref_key:"list",ref:s,"aria-hidden":!r.value,class:we(["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"]))},[(S(!0),q(Ce,null,Fn(n.items,(K,v)=>ht((S(),q("li",{key:v,tabindex:"-1",class:we(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":v===k.modelValue}]),onClick:()=>h(v)},[V("div",{class:we(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":v>0}])},[Oe(k.$slots,"item",{item:K},()=>[mt(rt(K),1)])],2)],10,Ef)),[[H(Yt),30]])),128))],42,If)):Be("",!0)]),_:3})):Be("",!0),ht((S(),q("button",{type:"button",tabindex:"-1",class:we(["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":k.disabled}]),onClick:At(u,["stop"]),onMouseenter:A,onMouseleave:Q},[V("div",Mf,[V("span",Lf,rt(n.label),1),n.items.length?(S(),q("span",{key:0,class:we(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":i.value}]),"aria-hidden":"true"},[W(Y)],2)):Be("",!0)])],42,Sf)),[[H(Yt),30]])],512)}}}),jf=Object.freeze(Object.defineProperty({__proto__:null,default:or},Symbol.toStringTag,{value:"Module"})),Si=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:u})=>`${u+1}`).join("-"))),s=fe(()=>{const c=o.value,u=n.pages.findIndex(d=>d.some(({index:h})=>h===c));return u===-1?n.pages.length-1:u}),i=fe(()=>n.pages.length?`${r.value[s.value]}/${n.totalImgs}`:"--");function l(c){const u=n.pages[c][0].index;a(u)}function a(c){t("update:modelValue",c)}return(c,u)=>{const d=or;return S(),Ie(d,{"model-value":s.value,label:i.value,items:r.value,disabled:c.disabled,"onUpdate:modelValue":l},null,8,["model-value","label","items","disabled"])}}}),Af=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"})),zf={},Bf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Df=[V("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Nf(e,t){return S(),q("svg",Bf,Df)}const Mi=be(zf,[["render",Nf]]),Ff=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"})),Rf={},Hf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Vf=[V("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Wf(e,t){return S(),q("svg",Hf,Vf)}const Li=be(Rf,[["render",Wf]]),Kf=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"})),Uf={},qf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Yf=[V("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 Zf(e,t){return S(),q("svg",qf,Yf)}const ji=be(Uf,[["render",Zf]]),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=[V("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 ed(e,t){return S(),q("svg",Qf,Gf)}const Ai=be(Jf,[["render",ed]]),td=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),zi=be(Te({__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=Yo,i=Zo;return n.value?(S(),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?(S(),Ie(s,{key:0})):(S(),Ie(i,{key:1}))])):Be("",!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
|
-
`]]]),Od=Object.freeze(Object.defineProperty({__proto__:null,default:Ri},Symbol.toStringTag,{value:"Module"})),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 u=Math.floor(l),d=Math.floor(c||-1),h=a.length-n.length;if(h>0){const m=Array.from({length:h});n.push(...m)}u!==d&&(r=Math.max(0,r-Math.abs(u-d)));for(let m=u;m<a.length;m++){if(r>sr)return;s(m)}for(let m=u-1;m>=0;m--){if(r>sr)return;s(m)}},{immediate:!0});async function s(l){l===void 0||!e.value[l]||r>sr||(o[l]||(o[l]=!0,r++,n[l]=await Id(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 Id(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 Ed(e,t){return fe(()=>t.value?Hi(e):e.map((n,o)=>[{el:n,index:o}]))}function Hi(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(s=>s&&s.naturalWidth>s.naturalHeight)?[n[0]]:n;return[r.map((s,i)=>({el:s,index:t+i})),...Hi(e.slice(r.length),t+r.length)]}function Sd(e,t,n){return Ku(async()=>{if(n!==void 0)return n;const o=await Md(e);return await new Promise(r=>{if(n!==void 0){r(n);return}const s=Math.max(o.length<4?0:o.length<6?1:2,t),i=Math.min(s+4,o.length<6?o.length-1:o.length),l=Math.max(0,i-4),a=o.slice(l,i);let c=!1;Promise.all(a.map(async u=>{const d=await Ld(u);!c&&d&&(c=!0,r(!0))})).then(()=>{c||r(!1)})})},n??!1)}async function Md(e){return e.value.length?e.value:await new Promise(t=>{const n=he(e,o=>{n(),o.length&&t(o)})})}function Ld(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{n.naturalHeight&&n.naturalWidth&&(t(n.naturalHeight/n.naturalWidth>2.5),clearInterval(o))},20);n.onerror=()=>{t(!1),clearInterval(o)},n.src=e})}function jd({initialPage:e,max:t}){const n=typeof e=="number"?Math.max(0,Math.min(e,t)):0,o=sessionStorage.getItem("tk:page:path");return o!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),o&&sessionStorage.removeItem("tk:page")),nr("tk:page",n,{writeDefaults:!1,mergeDefaults(r){return Math.max(0,Math.min(r,t))}})}function Ad(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const ir=40;function zd({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:s,spaceTop:i,scrollEl:l,interferePlayer:a,onChangedPage:c}){let u=!1,d=!1,h;const m=Zt(F,150),x=Bd(j,300);et(()=>{let v=null;ea(async()=>{l.value&&l.value!==v&&(v=l.value,m(e.value),l.value.addEventListener("scroll",x))});let O=window.innerWidth;yi(l,()=>{const B=window.innerWidth;O!=B&&(O=B,w())}),he(n,w),he(t,w)});async function w(){u=!0,d=!1,await lt(),F(e.value)}function F(v){if(!l.value)return;u=!0;const O=async()=>{await lt(),u=!1,d=!0},B=A(Math.floor(v));if(!B){O();return}if(o.value){const ce=o.value?v%1*(r.value?B.offsetHeight:B.offsetWidth)||1:0,M=Q(B)+ce;a(()=>{k(M),O()})}else{const ce=d;a(()=>{B.scrollIntoView(ce?{behavior:"smooth",block:"start",inline:"start"}:void 0),O()})}}async function j(){if(!l.value||u||!d)return;const v=Y();if(!v)return;const O=+v.getAttribute("data-index")||0,B=v.getBoundingClientRect(),ce=o.value?Math.floor((O+K(B))*100)/100:O;ce!==e.value&&c(ce)}function A(v){var O;return(O=l.value)==null?void 0:O.querySelector(`[data-index="${v}"],[data-second-index="${v}"]`)}function Q(v){return r.value?v.offsetTop:s.value?l.value.clientWidth-v.offsetLeft-v.offsetWidth:v.offsetLeft}function k(v){if(Z()!==v)return r.value?l.value.scrollTop=v-(o.value?i.value??0:0):s.value?l.value.scrollLeft=-v:l.value.scrollLeft=v,v}function Z(){return r.value?l.value.scrollTop:s.value?-l.value.scrollLeft:l.value.scrollLeft}function Y(){h??(h=l.value.getRootNode());const v=h.elementsFromPoint(r.value||!o.value?window.innerWidth/2:s.value?window.innerWidth-ir:ir,r.value&&o.value?i.value||ir:window.innerHeight/2);for(let O=0;O<v.length;O++){const B=v[O];if(B.hasAttribute("data-index"))return B;if(B===l.value)break}}function K(v){return r.value?Math.abs(v.top-(i.value||0))/v.height:s.value?Math.max(0,v.right-l.value.clientWidth)/v.width:Math.abs(v.left)/v.width}return{goToPage:F}}function Bd(e,t){let n;return()=>{n||(n=setTimeout(()=>{n=void 0,e()},t))}}function Dd({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:s,speed:i,onLongIdle:l}){const a=nr("tk:isPlaying",e,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults:(O,B)=>O===void 0?B:O===!0||O==="true"}),c=te(!1);let u,d;const h=Zt(K,100);let m;const x=Zt(()=>{c.value=!0,clearTimeout(m),m=a.value?void 0:setTimeout(l,15e3)},t?2e3:1e3),w=()=>setTimeout(()=>{c.value=!1,x(),m&&(clearTimeout(m),m=void 0)},30);w(),t||gn(window,"mousemove",w);const F=Gu();et(()=>{he(F,O=>{a.value&&(O==="visible"?K():d==null||d())}),he(i,()=>j()),he(s,O=>{O||Q()})}),ct(()=>{clearTimeout(m),m=void 0});async function j(O){a.value&&(d==null||d()),O&&(await lt(),await O()),a.value&&h()}function A(){a.value?Q():k()}function Q(){a.value&&(a.value=!1,d==null||d(),w())}function k(){!a.value&&s.value&&(a.value=!0,K(),w())}function Z(){d==null||d()}function Y(O){switch(O.key){case" ":O.preventDefault(),A();break;case"PageUp":case"PageDown":case(o.value?"ArrowUp":"ArrowLeft"):case(o.value?"ArrowDown":"ArrowRight"):j(()=>new Promise(B=>setTimeout(B,100)));break}}function K(){const O=n.value;if(!a.value||!O)return;const B=o.value?O.scrollHeight-O.clientHeight:O.scrollWidth-O.clientWidth,ce=v();if(B<=ce){Q();return}d=()=>{u=Date.now(),d=void 0};const M=Date.now();u=M;const re=(o.value?15:25)/i.value,T=o.value?"scrollTop":"scrollLeft",U=()=>{if(u!==M)return;const X=r.value?-1:1;O[T]+=X,setTimeout(U,re)};U()}function v(){const O=n.value;return o.value?O.scrollTop:r.value?-O.scrollLeft:O.scrollLeft}return{isPlaying:a,isIdle:c,toggle:A,play:k,pause:Z,resume:K,stop:Q,interfere:j,onKey:Y,awake:w}}function Nd(e){var d,h,m,x;let t=-1;const{vol:n,chap:o,title:r,slug:s,basePath:i}=e,l=r.chapters??[],a=(l==null?void 0:l.length)>1?l:[];a.length&&(t=a.findIndex(w=>w.slug===e.slug),t===-1&&(t=a.findIndex(w=>w.vol===n&&w.chap===o)),t===-1&&(t=a.findIndex(w=>s.startsWith(`${w.slug}-`)&&s.length-w.slug.length>3)));const c=((d=e.prev)==null?void 0:d.slug)??((h=a[t+1])==null?void 0:h.slug),u=((m=e.next)==null?void 0:m.slug)??((x=a[t-1])==null?void 0:x.slug);return{activeIndex:t,activeLabel:Vi({vol:n,chap:o}),chapters:a.map(w=>({label:Vi(w),path:lr(i,w.slug)})),prevPath:lr(i,c),nextPath:lr(i,u)}}function lr(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function Vi({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const Fd={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},Rd=Te({...{inheritAttrs:!1},__name:"TrackkunReader",props:{raw:{},imgs:{},isWebtoon:{type:Boolean},page:{},spaceTop:{},spaceBottom:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},isGuest:{type:Boolean}},emits:["pageChanged","fullScreenChanged","playingChanged","dispose","openEntry","addEntry","longIdle"],setup(e,{emit:t}){const n=e,o=Jc({touchDevice:n.touchDevice}),r=fe(()=>Array.isArray(n.imgs)?n.imgs.filter(I=>typeof I=="string"):[]),s=jd({initialPage:n.page,max:r.value.length-1}),i=Sd(r,Math.ceil(s.value),n.isWebtoon),{direction:l,style:a,isRTL:c,isDouble:u,isVertical:d,isLongStrip:h,speed:m,zoom:x}=df({titleName:n.raw.title.name,asyncIsWebtoon:i}),w=$d(r,s),F=Ed(w,u),j=fe(()=>s.value>=r.value.length),A=fe(()=>Nd(n.raw)),Q=fe(()=>{var I,J;return c.value?(I=A.value)==null?void 0:I.nextPath:(J=A.value)==null?void 0:J.prevPath}),k=fe(()=>{var I,J;return c.value?(I=A.value)==null?void 0:I.prevPath:(J=A.value)==null?void 0:J.nextPath}),Z=te(null),Y=Dd({autoPlay:n.autoPlay,touchDevice:n.touchDevice,scrollEl:fe(()=>{var I;return(I=Z.value)==null?void 0:I.$el}),speed:m,isRTL:c,isVertical:d,isLongStrip:h,onLongIdle:()=>t("longIdle")});he(Y.isPlaying,I=>{I||Ue(!1),t("playingChanged",I)}),he(Y.isIdle,I=>{Y.isPlaying.value&&Ue(I)}),he(o,I=>{!I&&Y.isIdle.value?Y.awake():I&&n.fullScreen&&Ue()});const K=fe(()=>Y.isIdle.value&&!o.value),v=fe({get(){return x.value},set(I){Y.interfere(()=>{x.value=I})}});lu().addListener({onKeyDown:I=>{if(Y.onKey(I),!d.value)return;const J=I.key==="ArrowLeft",ve=I.key==="ArrowRight";J?re():ve&&M()}});const B=zd({page:s,style:a,direction:l,isLongStrip:h,isVertical:d,isRTL:c,spaceTop:fe(()=>n.spaceTop),scrollEl:fe(()=>{var I;return(I=Z.value)==null?void 0:I.$el}),interferePlayer:I=>Y.interfere(I),onChangedPage(I){if(I<0||I>=r.value.length+1)return;s.value=I,t("pageChanged",I),I>=r.value.length&&(Ue(!1),Y.stop())}});function ce(){if(Y.isPlaying.value){!n.fullScreen||!n.touchDevice?Y.stop():Y.awake();return}Ue()}function M(){var I;U((I=A.value)==null?void 0:I.nextPath)}function re(){var I;U((I=A.value)==null?void 0:I.prevPath)}function T(I){var ve,Je,Bt;const J=(Bt=(Je=(ve=A.value)==null?void 0:ve.chapters)==null?void 0:Je[I])==null?void 0:Bt.path;J&&U(J)}function U(I){I&&(location.href=I.includes("://")?I:location.origin+I)}function X(){var ve;const I=F.value,J=j.value?I[I.length-1][0].index:(ve=I[ae()-1])==null?void 0:ve[0].index;J!==void 0?B.goToPage(J):re()}function se(){var J;const I=j.value?Math.floor(s.value)+1:((J=F.value[ae()+1])==null?void 0:J[0].index)??r.value.length;B.goToPage(I)}function ae(){const I=Math.floor(s.value),J=F.value.findIndex(ve=>ve.some(({index:Je})=>Je===I));return J===-1?F.value.length-1:J}function Ke(){Ad(),Y.stop(),t("dispose")}async function Ue(I){o.value&&!n.fullScreen||t("fullScreenChanged",typeof I=="boolean"?I:!n.fullScreen)}function Xe(){n.entryId?Qt():Le()}function Le(){Y.stop(),t("addEntry")}function Qt(){Y.stop(),t("openEntry",n.entryId)}return(I,J)=>{const ve=rr,Je=Ri,Bt=Fi,Ct=Di,vn=zi,_n=Ai,f=Zn,p=ji,g=or,b=Li,_=Mi,P=Si,E=Ii,C=$i,$=Oi,y=Zo,D=Yo,L=ei,N=Qs;return S(),Ie(N,{"full-screen":!!I.fullScreen,idle:K.value,"space-top":n.spaceTop,"space-bottom":n.spaceBottom,"touch-device":I.touchDevice,rtl:H(c)},ls({back:oe(()=>[W(f,{href:I.raw.title.url,title:I.raw.title.name},{default:oe(()=>[W(_n)]),_:1},8,["href","title"])]),exit:oe(()=>[W(f,{title:"Hide reader",onClick:Ke},{default:oe(()=>[W(p)]),_:1})]),"chapter-nav":oe(()=>[W(g,{modelValue:A.value.activeIndex,label:A.value.activeLabel,items:A.value.chapters,"onUpdate:modelValue":T},{item:oe(({item:z})=>[mt(rt(z.label),1)]),_:1},8,["modelValue","label","items"]),Q.value||k.value?(S(),q("div",Fd,[W(f,{title:H(c)?"Next":"Previous",href:Q.value,disabled:!Q.value,class:"!rounded-r-none"},{default:oe(()=>[W(b)]),_:1},8,["title","href","disabled"]),W(f,{title:H(c)?"Previous":"Next",href:k.value,disabled:!k.value,class:"!rounded-l-none"},{default:oe(()=>[W(_)]),_:1},8,["title","href","disabled"])])):Be("",!0)]),entry:oe(()=>[W(f,{title:I.entryId?"View entry":"Add to Trackkun",onClick:Xe},{default:oe(()=>[I.entryId?(S(),Ie(E,{key:0})):(S(),Ie(C,{key:1}))]),_:1},8,["title"])]),settings:oe(()=>[W($,{"reader-style":H(a),"onUpdate:readerStyle":J[2]||(J[2]=z=>xe(a)?a.value=z:null),direction:H(l),"onUpdate:direction":J[3]||(J[3]=z=>xe(l)?l.value=z:null),speed:H(m),"onUpdate:speed":J[4]||(J[4]=z=>xe(m)?m.value=z:null),zoom:v.value,"onUpdate:zoom":J[5]||(J[5]=z=>v.value=z),webtoon:H(i).state.value,disabled:H(i).isLoading.value},null,8,["reader-style","direction","speed","zoom","webtoon","disabled"])]),play:oe(()=>[W(f,{title:H(Y).isPlaying.value?"Pause":"Play",disabled:H(i).isLoading.value||!H(h),onClick:J[6]||(J[6]=()=>H(Y).toggle())},{default:oe(()=>[H(Y).isPlaying.value?(S(),Ie(y,{key:0})):(S(),Ie(D,{key:1}))]),_:1},8,["title","disabled"])]),"reset-zoom":oe(()=>[W(qt,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:oe(()=>[W(L,{zoom:v.value,onClick:J[7]||(J[7]=At(()=>v.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:oe(()=>[V("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Re({width:`${H(s)/(r.value.length-1)*100}%`})},null,4)]),default:oe(()=>[H(i).isLoading.value||!r.value.length?(S(),Ie(ve,{key:0})):(S(),q(Ce,{key:1},[W(Bt,{ref_key:"body",ref:Z,zoom:v.value,"onUpdate:zoom":J[0]||(J[0]=z=>v.value=z),pages:H(F),"total-imgs":r.value.length,direction:H(l),"is-long-strip":H(h),isRTL:H(c),"is-vertical":H(d),"space-top":I.spaceTop,"space-bottom":n.spaceBottom,"touch-device":I.touchDevice,busy:H(o),idle:K.value,"play-controller":H(Y),onPrev:X,onNext:se,onClick:ce,onWheelPassive:J[1]||(J[1]=()=>H(Y).interfere())},ls({_:2},[!H(i).isLoading.value&&r.value.length?{name:"end",fn:oe(()=>[W(Je,{"has-next":!!A.value.nextPath,onNext:M,onHide:Ke},null,8,["has-next"])]),key:"0"}:void 0]),1032,["zoom","pages","total-imgs","direction","is-long-strip","isRTL","is-vertical","space-top","space-bottom","touch-device","busy","idle","play-controller"]),W(Ct,{direction:H(l)},null,8,["direction"]),j.value?Be("",!0):(S(),Ie(vn,{key:0,playing:!!H(Y).isPlaying.value},null,8,["playing"]))],64))]),_:2},[H(F).length?{name:"page-nav",fn:oe(()=>[W(P,{"model-value":H(s),disabled:H(i).isLoading.value,pages:H(F),"total-imgs":r.value.length,"onUpdate:modelValue":H(B).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"0"}:void 0]),1032,["full-screen","idle","space-top","space-bottom","touch-device","rtl"])}}}),Wi=be(Rd,[["styles",[`/*! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:Helvetica,sans-serif;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.inset-2{bottom:.5rem;left:.5rem;right:.5rem;top:.5rem}.left-0{left:0}.top-0{top:0}.bottom-0{bottom:0}.left-3{left:.75rem}.bottom-full{bottom:100%}.top-full{top:100%}.left-1\\/2{left:50%}.right-0{right:0}.top-1\\/2{top:50%}.top-1{top:.25rem}.z-50{z-index:50}.z-10{z-index:10}.z-\\[9999999999\\]{z-index:9999999999}.-z-10{z-index:-10}.z-30{z-index:30}.z-20{z-index:20}.m-auto{margin:auto}.-mx-12{margin-left:-3rem;margin-right:-3rem}.-my-12{margin-bottom:-3rem;margin-top:-3rem}.ml-auto{margin-left:auto}.-ml-20{margin-left:-5rem}.ml-1{margin-left:.25rem}.-mr-3{margin-right:-.75rem}.mb-8{margin-bottom:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-0\\.5{height:.125rem}.h-0{height:0}.h-full{height:100%}.h-12{height:3rem}.h-\\[24rem\\]{height:24rem}.h-16{height:4rem}.h-10{height:2.5rem}.h-4{height:1rem}.h-9{height:2.25rem}.h-24{height:6rem}.h-1\\.5{height:.375rem}.h-1{height:.25rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-6{height:1.5rem}.h-20{height:5rem}.h-\\[75vh\\]{height:75vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[75vh\\]{max-height:75vh}.max-h-full{max-height:100%}.w-full{width:100%}.w-28{width:7rem}.w-40{width:10rem}.w-4{width:1rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-20{width:5rem}.w-24{width:6rem}.w-\\[50vw\\]{width:50vw}.w-1\\/3{width:33.333333%}.w-\\[4\\.5rem\\]{width:4.5rem}.max-w-full{max-width:100%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-right{transform-origin:right}.origin-bottom{transform-origin:bottom}.origin-top{transform-origin:top}.translate-y-full{--tw-translate-y:100%}.-translate-y-1\\.5,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\.5{--tw-translate-y:-.375rem}.-translate-y-1{--tw-translate-y:-.25rem}.-translate-y-1,.translate-y-1\\.5{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\\.5{--tw-translate-y:.375rem}.translate-y-1{--tw-translate-y:.25rem}.-translate-x-1\\/2,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.cursor-none{cursor:none}.cursor-auto{cursor:auto}.cursor-grabbing{cursor:grabbing}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.\\!snap-none{scroll-snap-type:none!important}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-\\[1px\\]{gap:1px}.gap-6{gap:1.5rem}.gap-1{gap:.25rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-2xl{border-radius:1rem}.rounded-sm{border-radius:.125rem}.rounded-\\[2\\.5rem\\]{border-radius:2.5rem}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-t-sm{border-top-left-radius:.125rem;border-top-right-radius:.125rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border-2{border-width:2px}.border{border-width:1px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:.5}.bg-opacity-75{--tw-bg-opacity:.75}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-40{--tw-bg-opacity:.4}.bg-opacity-90{--tw-bg-opacity:.9}.object-contain{-o-object-fit:contain;object-fit:contain}.p-6{padding:1.5rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-1{padding:.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.pt-3{padding-top:.75rem}.pb-12{padding-bottom:3rem}.pl-1{padding-left:.25rem}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:1rem;line-height:1.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.duration-150{transition-duration:.15s}.duration-100{transition-duration:.1s}.ease-linear{transition-timing-function:linear}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:.25rem;width:.25rem}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:640px){.sm\\:inset-3{bottom:.75rem;left:.75rem;right:.75rem;top:.75rem}.sm\\:w-\\[32rem\\]{width:32rem}}@media (min-width:768px){.md\\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width:1024px){.lg\\:px-10{padding-left:2.5rem;padding-right:2.5rem}}@media (min-width:1280px){.xl\\:px-12{padding-left:3rem;padding-right:3rem}}
|
|
7
|
-
`]]]),
|
|
8
|
-
`,mn="gear-second",Ki="gear-second--adblock",cr={raw:{},imgs:[],isWebtoon:void 0,page:0,spaceTop:void 0,spaceBottom:void 0,fullScreen:void 0,touchDevice:void 0,entryId:void 0,autoPlay:void 0,adBlock:void 0,textScaleFactor:void 0,isGuest:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPlayingChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onLongIdle:void 0,onFinished:void 0},ge={el:void 0,controller:void 0,data:nn({...cr})};async function
|
|
1
|
+
(function(ze,G){typeof exports=="object"&&typeof module<"u"?module.exports=G():typeof define=="function"&&define.amd?define(G):(ze=typeof globalThis<"u"?globalThis:ze||self,ze._gearSecond_=G())})(this,function(){"use strict";var lp=Object.defineProperty;var ap=(ze,G,He)=>G in ze?lp(ze,G,{enumerable:!0,configurable:!0,writable:!0,value:He}):ze[G]=He;var Xi=(ze,G,He)=>(ap(ze,typeof G!="symbol"?G+"":G,He),He);function ze(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const G={},He=[],Ye=()=>{},Ji=()=>!1,Qi=/^on[^a-z]/,yn=e=>Qi.test(e),to=e=>e.startsWith("onUpdate:"),ve=Object.assign,no=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Gi=Object.prototype.hasOwnProperty,re=(e,t)=>Gi.call(e,t),W=Array.isArray,Nt=e=>wn(e)==="[object Map]",fr=e=>wn(e)==="[object Set]",Q=e=>typeof e=="function",_e=e=>typeof e=="string",oo=e=>typeof e=="symbol",de=e=>e!==null&&typeof e=="object",dr=e=>de(e)&&Q(e.then)&&Q(e.catch),pr=Object.prototype.toString,wn=e=>pr.call(e),el=e=>wn(e).slice(8,-1),hr=e=>wn(e)==="[object Object]",ro=e=>_e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,xn=ze(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},tl=/-(\w)/g,Be=Cn(e=>e.replace(tl,(t,n)=>n?n.toUpperCase():"")),nl=/\B([A-Z])/g,Ve=Cn(e=>e.replace(nl,"-$1").toLowerCase()),kn=Cn(e=>e.charAt(0).toUpperCase()+e.slice(1)),so=Cn(e=>e?`on${kn(e)}`:""),en=(e,t)=>!Object.is(e,t),Pn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Tn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},io=e=>{const t=parseFloat(e);return isNaN(t)?e:t},lo=e=>{const t=_e(e)?Number(e):NaN;return isNaN(t)?e:t};let gr;const ao=()=>gr||(gr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function We(e){if(W(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=_e(o)?il(o):We(o);if(r)for(const s in r)t[s]=r[s]}return t}else{if(_e(e))return e;if(de(e))return e}}const ol=/;(?![^(]*\))/g,rl=/:([^]+)/,sl=/\/\*[^]*?\*\//g;function il(e){const t={};return e.replace(sl,"").split(ol).forEach(n=>{if(n){const o=n.split(rl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function be(e){let t="";if(_e(e))t=e;else if(W(e))for(let n=0;n<e.length;n++){const o=be(e[n]);o&&(t+=o+" ")}else if(de(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ll=ze("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function mr(e){return!!e||e===""}const it=e=>_e(e)?e:e==null?"":W(e)||de(e)&&(e.toString===pr||!Q(e.toString))?JSON.stringify(e,vr,2):String(e),vr=(e,t)=>t&&t.__v_isRef?vr(e,t.value):Nt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:fr(t)?{[`Set(${t.size})`]:[...t.values()]}:de(t)&&!W(t)&&!hr(t)?String(t):t;let De;class al{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=De,!t&&De&&(this.index=(De.scopes||(De.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=De;try{return De=this,t()}finally{De=n}}}on(){De=this}off(){De=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function cl(e,t=De){t&&t.active&&t.effects.push(e)}function _r(){return De}function ul(e){De&&De.cleanups.push(e)}const co=e=>{const t=new Set(e);return t.w=0,t.n=0,t},br=e=>(e.w&dt)>0,yr=e=>(e.n&dt)>0,fl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=dt},dl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];br(r)&&!yr(r)?r.delete(e):t[n++]=r,r.w&=~dt,r.n&=~dt}t.length=n}},uo=new WeakMap;let tn=0,dt=1;const fo=30;let Ze;const Pt=Symbol(""),po=Symbol("");class ho{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,cl(this,o)}run(){if(!this.active)return this.fn();let t=Ze,n=pt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Ze,Ze=this,pt=!0,dt=1<<++tn,tn<=fo?fl(this):wr(this),this.fn()}finally{tn<=fo&&dl(this),dt=1<<--tn,Ze=this.parent,pt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ze===this?this.deferStop=!0:this.active&&(wr(this),this.onStop&&this.onStop(),this.active=!1)}}function wr(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let pt=!0;const xr=[];function Ft(){xr.push(pt),pt=!1}function Rt(){const e=xr.pop();pt=e===void 0?!0:e}function Le(e,t,n){if(pt&&Ze){let o=uo.get(e);o||uo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=co()),Cr(r)}}function Cr(e,t){let n=!1;tn<=fo?yr(e)||(e.n|=dt,n=!br(e)):n=!e.has(Ze),n&&(e.add(Ze),Ze.deps.push(e))}function lt(e,t,n,o,r,s){const i=uo.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&W(e)){const a=Number(o);i.forEach((c,u)=>{(u==="length"||u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":W(e)?ro(n)&&l.push(i.get("length")):(l.push(i.get(Pt)),Nt(e)&&l.push(i.get(po)));break;case"delete":W(e)||(l.push(i.get(Pt)),Nt(e)&&l.push(i.get(po)));break;case"set":Nt(e)&&l.push(i.get(Pt));break}if(l.length===1)l[0]&&go(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);go(co(a))}}function go(e,t){const n=W(e)?e:[...e];for(const o of n)o.computed&&kr(o);for(const o of n)o.computed||kr(o)}function kr(e,t){(e!==Ze||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const pl=ze("__proto__,__v_isRef,__isVue"),Pr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(oo)),hl=mo(),gl=mo(!1,!0),ml=mo(!0),Tr=vl();function vl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ie(this);for(let s=0,i=this.length;s<i;s++)Le(o,"get",s+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(ie)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Ft();const o=ie(this)[t].apply(this,n);return Rt(),o}}),e}function _l(e){const t=ie(this);return Le(t,"has",e),t.hasOwnProperty(e)}function mo(e=!1,t=!1){return function(o,r,s){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&s===(e?t?jl:Ar:t?jr:Lr).get(o))return o;const i=W(o);if(!e){if(i&&re(Tr,r))return Reflect.get(Tr,r,s);if(r==="hasOwnProperty")return _l}const l=Reflect.get(o,r,s);return(oo(r)?Pr.has(r):pl(r))||(e||Le(o,"get",r),t)?l:xe(l)?i&&ro(r)?l:l.value:de(l)?e?bo(l):nn(l):l}}const bl=Or(),yl=Or(!0);function Or(e=!1){return function(n,o,r,s){let i=n[o];if(Vt(i)&&xe(i)&&!xe(r))return!1;if(!e&&(!Ln(r)&&!Vt(r)&&(i=ie(i),r=ie(r)),!W(n)&&xe(i)&&!xe(r)))return i.value=r,!0;const l=W(n)&&ro(o)?Number(o)<n.length:re(n,o),a=Reflect.set(n,o,r,s);return n===ie(s)&&(l?en(r,i)&<(n,"set",o,r):lt(n,"add",o,r)),a}}function wl(e,t){const n=re(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&<(e,"delete",t,void 0),o}function xl(e,t){const n=Reflect.has(e,t);return(!oo(t)||!Pr.has(t))&&Le(e,"has",t),n}function Cl(e){return Le(e,"iterate",W(e)?"length":Pt),Reflect.ownKeys(e)}const $r={get:hl,set:bl,deleteProperty:wl,has:xl,ownKeys:Cl},kl={get:ml,set(e,t){return!0},deleteProperty(e,t){return!0}},Pl=ve({},$r,{get:gl,set:yl}),vo=e=>e,On=e=>Reflect.getPrototypeOf(e);function $n(e,t,n=!1,o=!1){e=e.__v_raw;const r=ie(e),s=ie(t);n||(t!==s&&Le(r,"get",t),Le(r,"get",s));const{has:i}=On(r),l=o?vo:n?wo:on;if(i.call(r,t))return l(e.get(t));if(i.call(r,s))return l(e.get(s));e!==r&&e.get(t)}function In(e,t=!1){const n=this.__v_raw,o=ie(n),r=ie(e);return t||(e!==r&&Le(o,"has",e),Le(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function En(e,t=!1){return e=e.__v_raw,!t&&Le(ie(e),"iterate",Pt),Reflect.get(e,"size",e)}function Ir(e){e=ie(e);const t=ie(this);return On(t).has.call(t,e)||(t.add(e),lt(t,"add",e,e)),this}function Er(e,t){t=ie(t);const n=ie(this),{has:o,get:r}=On(n);let s=o.call(n,e);s||(e=ie(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?en(t,i)&<(n,"set",e,t):lt(n,"add",e,t),this}function Sr(e){const t=ie(this),{has:n,get:o}=On(t);let r=n.call(t,e);r||(e=ie(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&<(t,"delete",e,void 0),s}function Mr(){const e=ie(this),t=e.size!==0,n=e.clear();return t&<(e,"clear",void 0,void 0),n}function Sn(e,t){return function(o,r){const s=this,i=s.__v_raw,l=ie(i),a=t?vo:e?wo:on;return!e&&Le(l,"iterate",Pt),i.forEach((c,u)=>o.call(r,a(c),a(u),s))}}function Mn(e,t,n){return function(...o){const r=this.__v_raw,s=ie(r),i=Nt(s),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=r[e](...o),u=n?vo:t?wo:on;return!t&&Le(s,"iterate",a?po:Pt),{next(){const{value:d,done:h}=c.next();return h?{value:d,done:h}:{value:l?[u(d[0]),u(d[1])]:u(d),done:h}},[Symbol.iterator](){return this}}}}function ht(e){return function(...t){return e==="delete"?!1:this}}function Tl(){const e={get(s){return $n(this,s)},get size(){return En(this)},has:In,add:Ir,set:Er,delete:Sr,clear:Mr,forEach:Sn(!1,!1)},t={get(s){return $n(this,s,!1,!0)},get size(){return En(this)},has:In,add:Ir,set:Er,delete:Sr,clear:Mr,forEach:Sn(!1,!0)},n={get(s){return $n(this,s,!0)},get size(){return En(this,!0)},has(s){return In.call(this,s,!0)},add:ht("add"),set:ht("set"),delete:ht("delete"),clear:ht("clear"),forEach:Sn(!0,!1)},o={get(s){return $n(this,s,!0,!0)},get size(){return En(this,!0)},has(s){return In.call(this,s,!0)},add:ht("add"),set:ht("set"),delete:ht("delete"),clear:ht("clear"),forEach:Sn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Mn(s,!1,!1),n[s]=Mn(s,!0,!1),t[s]=Mn(s,!1,!0),o[s]=Mn(s,!0,!0)}),[e,n,t,o]}const[Ol,$l,Il,El]=Tl();function _o(e,t){const n=t?e?El:Il:e?$l:Ol;return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(re(n,r)&&r in o?n:o,r,s)}const Sl={get:_o(!1,!1)},Ml={get:_o(!1,!0)},Ll={get:_o(!0,!1)},Lr=new WeakMap,jr=new WeakMap,Ar=new WeakMap,jl=new WeakMap;function Al(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function zl(e){return e.__v_skip||!Object.isExtensible(e)?0:Al(el(e))}function nn(e){return Vt(e)?e:yo(e,!1,$r,Sl,Lr)}function Bl(e){return yo(e,!1,Pl,Ml,jr)}function bo(e){return yo(e,!0,kl,Ll,Ar)}function yo(e,t,n,o,r){if(!de(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=zl(e);if(i===0)return e;const l=new Proxy(e,i===2?o:n);return r.set(e,l),l}function Ht(e){return Vt(e)?Ht(e.__v_raw):!!(e&&e.__v_isReactive)}function Vt(e){return!!(e&&e.__v_isReadonly)}function Ln(e){return!!(e&&e.__v_isShallow)}function zr(e){return Ht(e)||Vt(e)}function ie(e){const t=e&&e.__v_raw;return t?ie(t):e}function Br(e){return Tn(e,"__v_skip",!0),e}const on=e=>de(e)?nn(e):e,wo=e=>de(e)?bo(e):e;function Dr(e){pt&&Ze&&(e=ie(e),Cr(e.dep||(e.dep=co())))}function Nr(e,t){e=ie(e);const n=e.dep;n&&go(n)}function xe(e){return!!(e&&e.__v_isRef===!0)}function ee(e){return Rr(e,!1)}function Fr(e){return Rr(e,!0)}function Rr(e,t){return xe(e)?e:new Dl(e,t)}class Dl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ie(t),this._value=n?t:on(t)}get value(){return Dr(this),this._value}set value(t){const n=this.__v_isShallow||Ln(t)||Vt(t);t=n?t:ie(t),en(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:on(t),Nr(this))}}function K(e){return xe(e)?e.value:e}const Nl={get:(e,t,n)=>K(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return xe(r)&&!xe(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Hr(e){return Ht(e)?e:new Proxy(e,Nl)}class Fl{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ho(t,()=>{this._dirty||(this._dirty=!0,Nr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=ie(this);return Dr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Rl(e,t,n=!1){let o,r;const s=Q(e);return s?(o=e,r=Ye):(o=e.get,r=e.set),new Fl(o,r,s||!r,n)}function up(e,...t){}function gt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){jn(s,t,n)}return r}function Ke(e,t,n,o){if(Q(e)){const s=gt(e,t,n,o);return s&&dr(s)&&s.catch(i=>{jn(i,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(Ke(e[s],t,n,o));return r}function jn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const i=t.proxy,l=n;for(;s;){const c=s.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,i,l)===!1)return}s=s.parent}const a=t.appContext.config.errorHandler;if(a){gt(a,null,10,[e,i,l]);return}}Hl(e,n,r,o)}function Hl(e,t,n,o=!0){console.error(e)}let rn=!1,xo=!1;const Ie=[];let et=0;const Wt=[];let at=null,Tt=0;const Vr=Promise.resolve();let Co=null;function ct(e){const t=Co||Vr;return e?t.then(this?e.bind(this):e):t}function Vl(e){let t=et+1,n=Ie.length;for(;t<n;){const o=t+n>>>1;sn(Ie[o])<e?t=o+1:n=o}return t}function ko(e){(!Ie.length||!Ie.includes(e,rn&&e.allowRecurse?et+1:et))&&(e.id==null?Ie.push(e):Ie.splice(Vl(e.id),0,e),Wr())}function Wr(){!rn&&!xo&&(xo=!0,Co=Vr.then(qr))}function Wl(e){const t=Ie.indexOf(e);t>et&&Ie.splice(t,1)}function Kl(e){W(e)?Wt.push(...e):(!at||!at.includes(e,e.allowRecurse?Tt+1:Tt))&&Wt.push(e),Wr()}function Kr(e,t=rn?et+1:0){for(;t<Ie.length;t++){const n=Ie[t];n&&n.pre&&(Ie.splice(t,1),t--,n())}}function Ur(e){if(Wt.length){const t=[...new Set(Wt)];if(Wt.length=0,at){at.push(...t);return}for(at=t,at.sort((n,o)=>sn(n)-sn(o)),Tt=0;Tt<at.length;Tt++)at[Tt]();at=null,Tt=0}}const sn=e=>e.id==null?1/0:e.id,Ul=(e,t)=>{const n=sn(e)-sn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function qr(e){xo=!1,rn=!0,Ie.sort(Ul);const t=Ye;try{for(et=0;et<Ie.length;et++){const n=Ie[et];n&&n.active!==!1&>(n,null,14)}}finally{et=0,Ie.length=0,Ur(),rn=!1,Co=null,(Ie.length||Wt.length)&&qr()}}function ql(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||G;let r=n;const s=t.startsWith("update:"),i=s&&t.slice(7);if(i&&i in o){const u=`${i==="modelValue"?"model":i}Modifiers`,{number:d,trim:h}=o[u]||G;h&&(r=n.map(m=>_e(m)?m.trim():m)),d&&(r=n.map(io))}let l,a=o[l=so(t)]||o[l=so(Be(t))];!a&&s&&(a=o[l=so(Ve(t))]),a&&Ke(a,e,6,r);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ke(c,e,6,r)}}function Yr(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const s=e.emits;let i={},l=!1;if(!Q(e)){const a=c=>{const u=Yr(c,t,!0);u&&(l=!0,ve(i,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!s&&!l?(de(e)&&o.set(e,null),null):(W(s)?s.forEach(a=>i[a]=null):ve(i,s),de(e)&&o.set(e,i),i)}function An(e,t){return!e||!yn(t)?!1:(t=t.slice(2).replace(/Once$/,""),re(e,t[0].toLowerCase()+t.slice(1))||re(e,Ve(t))||re(e,t))}let Te=null,Zr=null;function zn(e){const t=Te;return Te=e,Zr=e&&e.type.__scopeId||null,t}function oe(e,t=Te,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Ps(-1);const s=zn(t);let i;try{i=e(...r)}finally{zn(s),o._d&&Ps(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function fp(){}function Po(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:l,attrs:a,emit:c,render:u,renderCache:d,data:h,setupState:m,ctx:C,inheritAttrs:y}=e;let V,N;const z=zn(e);try{if(n.shapeFlag&4){const A=r||o;V=nt(u.call(A,A,d,s,m,h,C)),N=a}else{const A=t;V=nt(A.length>1?A(s,{attrs:a,slots:l,emit:c}):A(s,null)),N=t.props?a:Yl(a)}}catch(A){un.length=0,jn(A,e,1),V=Y(qe)}let X=V;if(N&&y!==!1){const A=Object.keys(N),{shapeFlag:E}=X;A.length&&E&7&&(i&&A.some(to)&&(N=Zl(N,i)),X=vt(X,N))}return n.dirs&&(X=vt(X),X.dirs=X.dirs?X.dirs.concat(n.dirs):n.dirs),n.transition&&(X.transition=n.transition),V=X,zn(z),V}const Yl=e=>{let t;for(const n in e)(n==="class"||n==="style"||yn(n))&&((t||(t={}))[n]=e[n]);return t},Zl=(e,t)=>{const n={};for(const o in e)(!to(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Xl(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:l,patchFlag:a}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?Xr(o,i,c):!!i;if(a&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const h=u[d];if(i[h]!==o[h]&&!An(c,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===i?!1:o?i?Xr(o,i,c):!0:!!i;return!1}function Xr(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const s=o[r];if(t[s]!==e[s]&&!An(n,s))return!0}return!1}function Jl({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Ql=e=>e.__isSuspense;function Gl(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):Kl(e)}function ea(e,t){return To(e,null,t)}const Bn={};function he(e,t,n){return To(e,t,n)}function To(e,t,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:i}=G){var l;const a=_r()===((l=Pe)==null?void 0:l.scope)?Pe:null;let c,u=!1,d=!1;if(xe(e)?(c=()=>e.value,u=Ln(e)):Ht(e)?(c=()=>e,o=!0):W(e)?(d=!0,u=e.some(A=>Ht(A)||Ln(A)),c=()=>e.map(A=>{if(xe(A))return A.value;if(Ht(A))return Ot(A);if(Q(A))return gt(A,a,2)})):Q(e)?t?c=()=>gt(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),Ke(e,a,3,[m])}:c=Ye,t&&o){const A=c;c=()=>Ot(A())}let h,m=A=>{h=z.onStop=()=>{gt(A,a,4)}},C;if(dn)if(m=Ye,t?n&&Ke(t,a,3,[c(),d?[]:void 0,m]):c(),r==="sync"){const A=Ua();C=A.__watcherHandles||(A.__watcherHandles=[])}else return Ye;let y=d?new Array(e.length).fill(Bn):Bn;const V=()=>{if(z.active)if(t){const A=z.run();(o||u||(d?A.some((E,B)=>en(E,y[B])):en(A,y)))&&(h&&h(),Ke(t,a,3,[A,y===Bn?void 0:d&&y[0]===Bn?[]:y,m]),y=A)}else z.run()};V.allowRecurse=!!t;let N;r==="sync"?N=V:r==="post"?N=()=>je(V,a&&a.suspense):(V.pre=!0,a&&(V.id=a.uid),N=()=>ko(V));const z=new ho(c,N);t?n?V():y=z.run():r==="post"?je(z.run.bind(z),a&&a.suspense):z.run();const X=()=>{z.stop(),a&&a.scope&&no(a.scope.effects,z)};return C&&C.push(X),X}function ta(e,t,n){const o=this.proxy,r=_e(e)?e.includes(".")?Jr(o,e):()=>o[e]:e.bind(o,o);let s;Q(t)?s=t:(s=t.handler,n=t);const i=Pe;Ut(this);const l=To(r,s.bind(o),n);return i?Ut(i):Mt(),l}function Jr(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r<n.length&&o;r++)o=o[n[r]];return o}}function Ot(e,t){if(!de(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),xe(e))Ot(e.value,t);else if(W(e))for(let n=0;n<e.length;n++)Ot(e[n],t);else if(fr(e)||Nt(e))e.forEach(n=>{Ot(n,t)});else if(hr(e))for(const n in e)Ot(e[n],t);return e}function mt(e,t){const n=Te;if(n===null)return e;const o=Yn(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,l,a,c=G]=t[s];i&&(Q(i)&&(i={mounted:i,updated:i}),i.deep&&Ot(l),r.push({dir:i,instance:o,value:l,oldValue:void 0,arg:a,modifiers:c}))}return e}function $t(e,t,n,o){const r=e.dirs,s=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];s&&(l.oldValue=s[i].value);let a=l.dir[o];a&&(Ft(),Ke(a,n,8,[e.el,l,e,t]),Rt())}}function na(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return tt(()=>{e.isMounted=!0}),os(()=>{e.isUnmounting=!0}),e}const Ue=[Function,Array],Qr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ue,onEnter:Ue,onAfterEnter:Ue,onEnterCancelled:Ue,onBeforeLeave:Ue,onLeave:Ue,onAfterLeave:Ue,onLeaveCancelled:Ue,onBeforeAppear:Ue,onAppear:Ue,onAfterAppear:Ue,onAppearCancelled:Ue},oa={name:"BaseTransition",props:Qr,setup(e,{slots:t}){const n=$s(),o=na();let r;return()=>{const s=t.default&&ts(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const y of s)if(y.type!==qe){i=y;break}}const l=ie(e),{mode:a}=l;if(o.isLeaving)return $o(i);const c=es(i);if(!c)return $o(i);const u=Oo(c,l,o,n);Io(c,u);const d=n.subTree,h=d&&es(d);let m=!1;const{getTransitionKey:C}=c.type;if(C){const y=C();r===void 0?r=y:y!==r&&(r=y,m=!0)}if(h&&h.type!==qe&&(!St(c,h)||m)){const y=Oo(h,l,o,n);if(Io(h,y),a==="out-in")return o.isLeaving=!0,y.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},$o(i);a==="in-out"&&c.type!==qe&&(y.delayLeave=(V,N,z)=>{const X=Gr(o,h);X[String(h.key)]=h,V._leaveCb=()=>{N(),V._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=z})}return i}}};function Gr(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Oo(e,t,n,o){const{appear:r,mode:s,persisted:i=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:h,onAfterLeave:m,onLeaveCancelled:C,onBeforeAppear:y,onAppear:V,onAfterAppear:N,onAppearCancelled:z}=t,X=String(e.key),A=Gr(n,e),E=(b,T)=>{b&&Ke(b,o,9,T)},B=(b,T)=>{const H=T[1];E(b,T),W(b)?b.every(ae=>ae.length<=1)&&H():b.length<=1&&H()},q={mode:s,persisted:i,beforeEnter(b){let T=l;if(!n.isMounted)if(r)T=y||l;else return;b._leaveCb&&b._leaveCb(!0);const H=A[X];H&&St(e,H)&&H.el._leaveCb&&H.el._leaveCb(),E(T,[b])},enter(b){let T=a,H=c,ae=u;if(!n.isMounted)if(r)T=V||a,H=N||c,ae=z||u;else return;let S=!1;const se=b._enterCb=Ce=>{S||(S=!0,Ce?E(ae,[b]):E(H,[b]),q.delayedLeave&&q.delayedLeave(),b._enterCb=void 0)};T?B(T,[b,se]):se()},leave(b,T){const H=String(e.key);if(b._enterCb&&b._enterCb(!0),n.isUnmounting)return T();E(d,[b]);let ae=!1;const S=b._leaveCb=se=>{ae||(ae=!0,T(),se?E(C,[b]):E(m,[b]),b._leaveCb=void 0,A[H]===e&&delete A[H])};A[H]=e,h?B(h,[b,S]):S()},clone(b){return Oo(b,t,n,o)}};return q}function $o(e){if(Dn(e))return e=vt(e),e.children=null,e}function es(e){return Dn(e)?e.children?e.children[0]:void 0:e}function Io(e,t){e.shapeFlag&6&&e.component?Io(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ts(e,t=!1,n){let o=[],r=0;for(let s=0;s<e.length;s++){let i=e[s];const l=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===ke?(i.patchFlag&128&&r++,o=o.concat(ts(i.children,t,l))):(t||i.type!==qe)&&o.push(l!=null?vt(i,{key:l}):i)}if(r>1)for(let s=0;s<o.length;s++)o[s].patchFlag=-2;return o}function Oe(e,t){return Q(e)?(()=>ve({name:e.name},t,{setup:e}))():e}const ln=e=>!!e.type.__asyncLoader,Dn=e=>e.type.__isKeepAlive;function ra(e,t){ns(e,"a",t)}function sa(e,t){ns(e,"da",t)}function ns(e,t,n=Pe){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Nn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Dn(r.parent.vnode)&&ia(o,t,n,r),r=r.parent}}function ia(e,t,n,o){const r=Nn(t,e,o,!0);ft(()=>{no(o[t],r)},n)}function Nn(e,t,n=Pe,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Ft(),Ut(n);const l=Ke(t,n,e,i);return Mt(),Rt(),l});return o?r.unshift(s):r.push(s),s}}const ut=e=>(t,n=Pe)=>(!dn||e==="sp")&&Nn(e,(...o)=>t(...o),n),la=ut("bm"),tt=ut("m"),aa=ut("bu"),ca=ut("u"),os=ut("bum"),ft=ut("um"),ua=ut("sp"),fa=ut("rtg"),da=ut("rtc");function pa(e,t=Pe){Nn("ec",e,t)}const rs="components",ss=Symbol.for("v-ndc");function ha(e){return _e(e)?ga(rs,e,!1)||e:e||ss}function ga(e,t,n=!0,o=!1){const r=Te||Pe;if(r){const s=r.type;if(e===rs){const l=Va(s,!1);if(l&&(l===t||l===Be(t)||l===kn(Be(t))))return s}const i=is(r[e]||s[e],t)||is(r.appContext[e],t);return!i&&o?s:i}}function is(e,t){return e&&(e[t]||e[Be(t)]||e[kn(Be(t))])}function Fn(e,t,n,o){let r;const s=n&&n[o];if(W(e)||_e(e)){r=new Array(e.length);for(let i=0,l=e.length;i<l;i++)r[i]=t(e[i],i,void 0,s&&s[i])}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,s&&s[i])}else if(de(e))if(e[Symbol.iterator])r=Array.from(e,(i,l)=>t(i,l,void 0,s&&s[l]));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,a=i.length;l<a;l++){const c=i[l];r[l]=t(e[c],c,l,s&&s[l])}}else r=[];return n&&(n[o]=r),r}function ls(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(W(o))for(let r=0;r<o.length;r++)e[o[r].name]=o[r].fn;else o&&(e[o.name]=o.key?(...r)=>{const s=o.fn(...r);return s&&(s.key=o.key),s}:o.fn)}return e}function $e(e,t,n={},o,r){if(Te.isCE||Te.parent&&ln(Te.parent)&&Te.parent.isCE)return t!=="default"&&(n.name=t),Y("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),L();const i=s&&as(s(n)),l=Ee(ke,{key:n.key||i&&i.key||`_${t}`},i||(o?o():[]),i&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function as(e){return e.some(t=>Kn(t)?!(t.type===qe||t.type===ke&&!as(t.children)):!0)?e:null}const Eo=e=>e?Es(e)?Yn(e)||e.proxy:Eo(e.parent):null,an=ve(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Eo(e.parent),$root:e=>Eo(e.root),$emit:e=>e.emit,$options:e=>Lo(e),$forceUpdate:e=>e.f||(e.f=()=>ko(e.update)),$nextTick:e=>e.n||(e.n=ct.bind(e.proxy)),$watch:e=>ta.bind(e)}),So=(e,t)=>e!==G&&!e.__isScriptSetup&&re(e,t),ma={get({_:e},t){const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(So(o,t))return i[t]=1,o[t];if(r!==G&&re(r,t))return i[t]=2,r[t];if((c=e.propsOptions[0])&&re(c,t))return i[t]=3,s[t];if(n!==G&&re(n,t))return i[t]=4,n[t];Mo&&(i[t]=0)}}const u=an[t];let d,h;if(u)return t==="$attrs"&&Le(e,"get",t),u(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==G&&re(n,t))return i[t]=4,n[t];if(h=a.config.globalProperties,re(h,t))return h[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return So(r,t)?(r[t]=n,!0):o!==G&&re(o,t)?(o[t]=n,!0):re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:s}},i){let l;return!!n[i]||e!==G&&re(e,i)||So(t,i)||(l=s[0])&&re(l,i)||re(o,i)||re(an,i)||re(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function cs(e){return W(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Mo=!0;function va(e){const t=Lo(e),n=e.proxy,o=e.ctx;Mo=!1,t.beforeCreate&&us(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:l,provide:a,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:m,updated:C,activated:y,deactivated:V,beforeDestroy:N,beforeUnmount:z,destroyed:X,unmounted:A,render:E,renderTracked:B,renderTriggered:q,errorCaptured:b,serverPrefetch:T,expose:H,inheritAttrs:ae,components:S,directives:se,filters:Ce}=t;if(c&&_a(c,o,null),i)for(const x in i){const M=i[x];Q(M)&&(o[x]=M.bind(n))}if(r){const x=r.call(n,n);de(x)&&(e.data=nn(x))}if(Mo=!0,s)for(const x in s){const M=s[x],te=Q(M)?M.bind(n,n):Q(M.get)?M.get.bind(n,n):Ye,pe=!Q(M)&&Q(M.set)?M.set.bind(n):Ye,Je=ue({get:te,set:pe});Object.defineProperty(o,x,{enumerable:!0,configurable:!0,get:()=>Je.value,set:Ae=>Je.value=Ae})}if(l)for(const x in l)fs(l[x],o,n,x);if(a){const x=Q(a)?a.call(n):a;Reflect.ownKeys(x).forEach(M=>{Vn(M,x[M])})}u&&us(u,e,"c");function le(x,M){W(M)?M.forEach(te=>x(te.bind(n))):M&&x(M.bind(n))}if(le(la,d),le(tt,h),le(aa,m),le(ca,C),le(ra,y),le(sa,V),le(pa,b),le(da,B),le(fa,q),le(os,z),le(ft,A),le(ua,T),W(H))if(H.length){const x=e.exposed||(e.exposed={});H.forEach(M=>{Object.defineProperty(x,M,{get:()=>n[M],set:te=>n[M]=te})})}else e.exposed||(e.exposed={});E&&e.render===Ye&&(e.render=E),ae!=null&&(e.inheritAttrs=ae),S&&(e.components=S),se&&(e.directives=se)}function _a(e,t,n=Ye){W(e)&&(e=jo(e));for(const o in e){const r=e[o];let s;de(r)?"default"in r?s=It(r.from||o,r.default,!0):s=It(r.from||o):s=It(r),xe(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[o]=s}}function us(e,t,n){Ke(W(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function fs(e,t,n,o){const r=o.includes(".")?Jr(n,o):()=>n[o];if(_e(e)){const s=t[e];Q(s)&&he(r,s)}else if(Q(e))he(r,e.bind(n));else if(de(e))if(W(e))e.forEach(s=>fs(s,t,n,o));else{const s=Q(e.handler)?e.handler.bind(n):t[e.handler];Q(s)&&he(r,s,e)}}function Lo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,l=s.get(t);let a;return l?a=l:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(c=>Rn(a,c,i,!0)),Rn(a,t,i)),de(t)&&s.set(t,a),a}function Rn(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&Rn(e,s,n,!0),r&&r.forEach(i=>Rn(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const l=ba[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const ba={data:ds,props:ps,emits:ps,methods:cn,computed:cn,beforeCreate:Se,created:Se,beforeMount:Se,mounted:Se,beforeUpdate:Se,updated:Se,beforeDestroy:Se,beforeUnmount:Se,destroyed:Se,unmounted:Se,activated:Se,deactivated:Se,errorCaptured:Se,serverPrefetch:Se,components:cn,directives:cn,watch:wa,provide:ds,inject:ya};function ds(e,t){return t?e?function(){return ve(Q(e)?e.call(this,this):e,Q(t)?t.call(this,this):t)}:t:e}function ya(e,t){return cn(jo(e),jo(t))}function jo(e){if(W(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Se(e,t){return e?[...new Set([].concat(e,t))]:t}function cn(e,t){return e?ve(Object.create(null),e,t):t}function ps(e,t){return e?W(e)&&W(t)?[...new Set([...e,...t])]:ve(Object.create(null),cs(e),cs(t??{})):t}function wa(e,t){if(!e)return t;if(!t)return e;const n=ve(Object.create(null),e);for(const o in t)n[o]=Se(e[o],t[o]);return n}function hs(){return{app:null,config:{isNativeTag:Ji,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let xa=0;function Ca(e,t){return function(o,r=null){Q(o)||(o=ve({},o)),r!=null&&!de(r)&&(r=null);const s=hs(),i=new Set;let l=!1;const a=s.app={_uid:xa++,_component:o,_props:r,_container:null,_context:s,_instance:null,version:qa,get config(){return s.config},set config(c){},use(c,...u){return i.has(c)||(c&&Q(c.install)?(i.add(c),c.install(a,...u)):Q(c)&&(i.add(c),c(a,...u))),a},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),a},component(c,u){return u?(s.components[c]=u,a):s.components[c]},directive(c,u){return u?(s.directives[c]=u,a):s.directives[c]},mount(c,u,d){if(!l){const h=Y(o,r);return h.appContext=s,u&&t?t(h,c):e(h,c,d),l=!0,a._container=c,c.__vue_app__=a,Yn(h.component)||h.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return s.provides[c]=u,a},runWithContext(c){Hn=a;try{return c()}finally{Hn=null}}};return a}}let Hn=null;function Vn(e,t){if(Pe){let n=Pe.provides;const o=Pe.parent&&Pe.parent.provides;o===n&&(n=Pe.provides=Object.create(o)),n[e]=t}}function It(e,t,n=!1){const o=Pe||Te;if(o||Hn){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Hn._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&Q(t)?t.call(o&&o.proxy):t}}function ka(e,t,n,o=!1){const r={},s={};Tn(s,Un,1),e.propsDefaults=Object.create(null),gs(e,t,r,s);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:Bl(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function Pa(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,l=ie(r),[a]=e.propsOptions;let c=!1;if((o||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let h=u[d];if(An(e.emitsOptions,h))continue;const m=t[h];if(a)if(re(s,h))m!==s[h]&&(s[h]=m,c=!0);else{const C=Be(h);r[C]=Ao(a,l,C,m,e,!1)}else m!==s[h]&&(s[h]=m,c=!0)}}}else{gs(e,t,r,s)&&(c=!0);let u;for(const d in l)(!t||!re(t,d)&&((u=Ve(d))===d||!re(t,u)))&&(a?n&&(n[d]!==void 0||n[u]!==void 0)&&(r[d]=Ao(a,l,d,void 0,e,!0)):delete r[d]);if(s!==l)for(const d in s)(!t||!re(t,d))&&(delete s[d],c=!0)}c&<(e,"set","$attrs")}function gs(e,t,n,o){const[r,s]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(xn(a))continue;const c=t[a];let u;r&&re(r,u=Be(a))?!s||!s.includes(u)?n[u]=c:(l||(l={}))[u]=c:An(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,i=!0)}if(s){const a=ie(n),c=l||G;for(let u=0;u<s.length;u++){const d=s[u];n[d]=Ao(r,a,d,c[d],e,!re(c,d))}}return i}function Ao(e,t,n,o,r,s){const i=e[n];if(i!=null){const l=re(i,"default");if(l&&o===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&Q(a)){const{propsDefaults:c}=r;n in c?o=c[n]:(Ut(r),o=c[n]=a.call(null,t),Mt())}else o=a}i[0]&&(s&&!l?o=!1:i[1]&&(o===""||o===Ve(n))&&(o=!0))}return o}function ms(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const s=e.props,i={},l=[];let a=!1;if(!Q(e)){const u=d=>{a=!0;const[h,m]=ms(d,t,!0);ve(i,h),m&&l.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!a)return de(e)&&o.set(e,He),He;if(W(s))for(let u=0;u<s.length;u++){const d=Be(s[u]);vs(d)&&(i[d]=G)}else if(s)for(const u in s){const d=Be(u);if(vs(d)){const h=s[u],m=i[d]=W(h)||Q(h)?{type:h}:ve({},h);if(m){const C=ys(Boolean,m.type),y=ys(String,m.type);m[0]=C>-1,m[1]=y<0||C<y,(C>-1||re(m,"default"))&&l.push(d)}}}const c=[i,l];return de(e)&&o.set(e,c),c}function vs(e){return e[0]!=="$"}function _s(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function bs(e,t){return _s(e)===_s(t)}function ys(e,t){return W(t)?t.findIndex(n=>bs(n,e)):Q(t)&&bs(t,e)?0:-1}const ws=e=>e[0]==="_"||e==="$stable",zo=e=>W(e)?e.map(nt):[nt(e)],Ta=(e,t,n)=>{if(t._n)return t;const o=oe((...r)=>zo(t(...r)),n);return o._c=!1,o},xs=(e,t,n)=>{const o=e._ctx;for(const r in e){if(ws(r))continue;const s=e[r];if(Q(s))t[r]=Ta(r,s,o);else if(s!=null){const i=zo(s);t[r]=()=>i}}},Cs=(e,t)=>{const n=zo(t);e.slots.default=()=>n},Oa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ie(t),Tn(t,"_",n)):xs(t,e.slots={})}else e.slots={},t&&Cs(e,t);Tn(e.slots,Un,1)},$a=(e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,i=G;if(o.shapeFlag&32){const l=t._;l?n&&l===1?s=!1:(ve(r,t),!n&&l===1&&delete r._):(s=!t.$stable,xs(t,r)),i=t}else t&&(Cs(e,t),i={default:1});if(s)for(const l in r)!ws(l)&&!(l in i)&&delete r[l]};function Bo(e,t,n,o,r=!1){if(W(e)){e.forEach((h,m)=>Bo(h,t&&(W(t)?t[m]:t),n,o,r));return}if(ln(o)&&!r)return;const s=o.shapeFlag&4?Yn(o.component)||o.component.proxy:o.el,i=r?null:s,{i:l,r:a}=e,c=t&&t.r,u=l.refs===G?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(_e(c)?(u[c]=null,re(d,c)&&(d[c]=null)):xe(c)&&(c.value=null)),Q(a))gt(a,l,12,[i,u]);else{const h=_e(a),m=xe(a);if(h||m){const C=()=>{if(e.f){const y=h?re(d,a)?d[a]:u[a]:a.value;r?W(y)&&no(y,s):W(y)?y.includes(s)||y.push(s):h?(u[a]=[s],re(d,a)&&(d[a]=u[a])):(a.value=[s],e.k&&(u[e.k]=a.value))}else h?(u[a]=i,re(d,a)&&(d[a]=i)):m&&(a.value=i,e.k&&(u[e.k]=i))};i?(C.id=-1,je(C,n)):C()}}}const je=Gl;function Ia(e){return Ea(e)}function Ea(e,t){const n=ao();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:l,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:h,setScopeId:m=Ye,insertStaticContent:C}=e,y=(f,p,g,_=null,v=null,P=null,I=!1,k=null,O=!!p.dynamicChildren)=>{if(f===p)return;f&&!St(f,p)&&(_=Fe(f),Ae(f,v,P,!0),f=null),p.patchFlag===-2&&(O=!1,p.dynamicChildren=null);const{type:w,ref:F,shapeFlag:j}=p;switch(w){case Wn:V(f,p,g,_);break;case qe:N(f,p,g,_);break;case Do:f==null&&z(p,g,_,I);break;case ke:S(f,p,g,_,v,P,I,k,O);break;default:j&1?E(f,p,g,_,v,P,I,k,O):j&6?se(f,p,g,_,v,P,I,k,O):(j&64||j&128)&&w.process(f,p,g,_,v,P,I,k,O,Qe)}F!=null&&v&&Bo(F,f&&f.ref,P,p||f,!p)},V=(f,p,g,_)=>{if(f==null)o(p.el=l(p.children),g,_);else{const v=p.el=f.el;p.children!==f.children&&c(v,p.children)}},N=(f,p,g,_)=>{f==null?o(p.el=a(p.children||""),g,_):p.el=f.el},z=(f,p,g,_)=>{[f.el,f.anchor]=C(f.children,p,g,_,f.el,f.anchor)},X=({el:f,anchor:p},g,_)=>{let v;for(;f&&f!==p;)v=h(f),o(f,g,_),f=v;o(p,g,_)},A=({el:f,anchor:p})=>{let g;for(;f&&f!==p;)g=h(f),r(f),f=g;r(p)},E=(f,p,g,_,v,P,I,k,O)=>{I=I||p.type==="svg",f==null?B(p,g,_,v,P,I,k,O):T(f,p,v,P,I,k,O)},B=(f,p,g,_,v,P,I,k)=>{let O,w;const{type:F,props:j,shapeFlag:R,transition:D,dirs:ne}=f;if(O=f.el=i(f.type,P,j&&j.is,j),R&8?u(O,f.children):R&16&&b(f.children,O,null,_,v,P&&F!=="foreignObject",I,k),ne&&$t(f,null,_,"created"),q(O,f,f.scopeId,I,_),j){for(const ce in j)ce!=="value"&&!xn(ce)&&s(O,ce,null,j[ce],P,f.children,_,v,me);"value"in j&&s(O,"value",null,j.value),(w=j.onVnodeBeforeMount)&&ot(w,_,f)}ne&&$t(f,null,_,"beforeMount");const fe=(!v||v&&!v.pendingBranch)&&D&&!D.persisted;fe&&D.beforeEnter(O),o(O,p,g),((w=j&&j.onVnodeMounted)||fe||ne)&&je(()=>{w&&ot(w,_,f),fe&&D.enter(O),ne&&$t(f,null,_,"mounted")},v)},q=(f,p,g,_,v)=>{if(g&&m(f,g),_)for(let P=0;P<_.length;P++)m(f,_[P]);if(v){let P=v.subTree;if(p===P){const I=v.vnode;q(f,I,I.scopeId,I.slotScopeIds,v.parent)}}},b=(f,p,g,_,v,P,I,k,O=0)=>{for(let w=O;w<f.length;w++){const F=f[w]=k?bt(f[w]):nt(f[w]);y(null,F,p,g,_,v,P,I,k)}},T=(f,p,g,_,v,P,I)=>{const k=p.el=f.el;let{patchFlag:O,dynamicChildren:w,dirs:F}=p;O|=f.patchFlag&16;const j=f.props||G,R=p.props||G;let D;g&&Et(g,!1),(D=R.onVnodeBeforeUpdate)&&ot(D,g,p,f),F&&$t(p,f,g,"beforeUpdate"),g&&Et(g,!0);const ne=v&&p.type!=="foreignObject";if(w?H(f.dynamicChildren,w,k,g,_,ne,P):I||M(f,p,k,null,g,_,ne,P,!1),O>0){if(O&16)ae(k,p,j,R,g,_,v);else if(O&2&&j.class!==R.class&&s(k,"class",null,R.class,v),O&4&&s(k,"style",j.style,R.style,v),O&8){const fe=p.dynamicProps;for(let ce=0;ce<fe.length;ce++){const we=fe[ce],Ge=j[we],Gt=R[we];(Gt!==Ge||we==="value")&&s(k,we,Ge,Gt,v,f.children,g,_,me)}}O&1&&f.children!==p.children&&u(k,p.children)}else!I&&w==null&&ae(k,p,j,R,g,_,v);((D=R.onVnodeUpdated)||F)&&je(()=>{D&&ot(D,g,p,f),F&&$t(p,f,g,"updated")},_)},H=(f,p,g,_,v,P,I)=>{for(let k=0;k<p.length;k++){const O=f[k],w=p[k],F=O.el&&(O.type===ke||!St(O,w)||O.shapeFlag&70)?d(O.el):g;y(O,w,F,null,_,v,P,I,!0)}},ae=(f,p,g,_,v,P,I)=>{if(g!==_){if(g!==G)for(const k in g)!xn(k)&&!(k in _)&&s(f,k,g[k],null,I,p.children,v,P,me);for(const k in _){if(xn(k))continue;const O=_[k],w=g[k];O!==w&&k!=="value"&&s(f,k,w,O,I,p.children,v,P,me)}"value"in _&&s(f,"value",g.value,_.value)}},S=(f,p,g,_,v,P,I,k,O)=>{const w=p.el=f?f.el:l(""),F=p.anchor=f?f.anchor:l("");let{patchFlag:j,dynamicChildren:R,slotScopeIds:D}=p;D&&(k=k?k.concat(D):D),f==null?(o(w,g,_),o(F,g,_),b(p.children,g,F,v,P,I,k,O)):j>0&&j&64&&R&&f.dynamicChildren?(H(f.dynamicChildren,R,g,v,P,I,k),(p.key!=null||v&&p===v.subTree)&&ks(f,p,!0)):M(f,p,g,F,v,P,I,k,O)},se=(f,p,g,_,v,P,I,k,O)=>{p.slotScopeIds=k,f==null?p.shapeFlag&512?v.ctx.activate(p,g,_,I,O):Ce(p,g,_,v,P,I,O):Me(f,p,O)},Ce=(f,p,g,_,v,P,I)=>{const k=f.component=Da(f,_,v);if(Dn(f)&&(k.ctx.renderer=Qe),Na(k),k.asyncDep){if(v&&v.registerDep(k,le),!f.el){const O=k.subTree=Y(qe);N(null,O,p,g)}return}le(k,f,p,g,v,P,I)},Me=(f,p,g)=>{const _=p.component=f.component;if(Xl(f,p,g))if(_.asyncDep&&!_.asyncResolved){x(_,p,g);return}else _.next=p,Wl(_.update),_.update();else p.el=f.el,_.vnode=p},le=(f,p,g,_,v,P,I)=>{const k=()=>{if(f.isMounted){let{next:F,bu:j,u:R,parent:D,vnode:ne}=f,fe=F,ce;Et(f,!1),F?(F.el=ne.el,x(f,F,I)):F=ne,j&&Pn(j),(ce=F.props&&F.props.onVnodeBeforeUpdate)&&ot(ce,D,F,ne),Et(f,!0);const we=Po(f),Ge=f.subTree;f.subTree=we,y(Ge,we,d(Ge.el),Fe(Ge),f,v,P),F.el=we.el,fe===null&&Jl(f,we.el),R&&je(R,v),(ce=F.props&&F.props.onVnodeUpdated)&&je(()=>ot(ce,D,F,ne),v)}else{let F;const{el:j,props:R}=p,{bm:D,m:ne,parent:fe}=f,ce=ln(p);if(Et(f,!1),D&&Pn(D),!ce&&(F=R&&R.onVnodeBeforeMount)&&ot(F,fe,p),Et(f,!0),j&&_n){const we=()=>{f.subTree=Po(f),_n(j,f.subTree,f,v,null)};ce?p.type.__asyncLoader().then(()=>!f.isUnmounted&&we()):we()}else{const we=f.subTree=Po(f);y(null,we,g,_,f,v,P),p.el=we.el}if(ne&&je(ne,v),!ce&&(F=R&&R.onVnodeMounted)){const we=p;je(()=>ot(F,fe,we),v)}(p.shapeFlag&256||fe&&ln(fe.vnode)&&fe.vnode.shapeFlag&256)&&f.a&&je(f.a,v),f.isMounted=!0,p=g=_=null}},O=f.effect=new ho(k,()=>ko(w),f.scope),w=f.update=()=>O.run();w.id=f.uid,Et(f,!0),w()},x=(f,p,g)=>{p.component=f;const _=f.vnode.props;f.vnode=p,f.next=null,Pa(f,p.props,_,g),$a(f,p.children,g),Ft(),Kr(),Rt()},M=(f,p,g,_,v,P,I,k,O=!1)=>{const w=f&&f.children,F=f?f.shapeFlag:0,j=p.children,{patchFlag:R,shapeFlag:D}=p;if(R>0){if(R&128){pe(w,j,g,_,v,P,I,k,O);return}else if(R&256){te(w,j,g,_,v,P,I,k,O);return}}D&8?(F&16&&me(w,v,P),j!==w&&u(g,j)):F&16?D&16?pe(w,j,g,_,v,P,I,k,O):me(w,v,P,!0):(F&8&&u(g,""),D&16&&b(j,g,_,v,P,I,k,O))},te=(f,p,g,_,v,P,I,k,O)=>{f=f||He,p=p||He;const w=f.length,F=p.length,j=Math.min(w,F);let R;for(R=0;R<j;R++){const D=p[R]=O?bt(p[R]):nt(p[R]);y(f[R],D,g,null,v,P,I,k,O)}w>F?me(f,v,P,!0,!1,j):b(p,g,_,v,P,I,k,O,j)},pe=(f,p,g,_,v,P,I,k,O)=>{let w=0;const F=p.length;let j=f.length-1,R=F-1;for(;w<=j&&w<=R;){const D=f[w],ne=p[w]=O?bt(p[w]):nt(p[w]);if(St(D,ne))y(D,ne,g,null,v,P,I,k,O);else break;w++}for(;w<=j&&w<=R;){const D=f[j],ne=p[R]=O?bt(p[R]):nt(p[R]);if(St(D,ne))y(D,ne,g,null,v,P,I,k,O);else break;j--,R--}if(w>j){if(w<=R){const D=R+1,ne=D<F?p[D].el:_;for(;w<=R;)y(null,p[w]=O?bt(p[w]):nt(p[w]),g,ne,v,P,I,k,O),w++}}else if(w>R)for(;w<=j;)Ae(f[w],v,P,!0),w++;else{const D=w,ne=w,fe=new Map;for(w=ne;w<=R;w++){const Re=p[w]=O?bt(p[w]):nt(p[w]);Re.key!=null&&fe.set(Re.key,w)}let ce,we=0;const Ge=R-ne+1;let Gt=!1,qi=0;const bn=new Array(Ge);for(w=0;w<Ge;w++)bn[w]=0;for(w=D;w<=j;w++){const Re=f[w];if(we>=Ge){Ae(Re,v,P,!0);continue}let st;if(Re.key!=null)st=fe.get(Re.key);else for(ce=ne;ce<=R;ce++)if(bn[ce-ne]===0&&St(Re,p[ce])){st=ce;break}st===void 0?Ae(Re,v,P,!0):(bn[st-ne]=w+1,st>=qi?qi=st:Gt=!0,y(Re,p[st],g,null,v,P,I,k,O),we++)}const Yi=Gt?Sa(bn):He;for(ce=Yi.length-1,w=Ge-1;w>=0;w--){const Re=ne+w,st=p[Re],Zi=Re+1<F?p[Re+1].el:_;bn[w]===0?y(null,st,g,Zi,v,P,I,k,O):Gt&&(ce<0||w!==Yi[ce]?Je(st,g,Zi,2):ce--)}}},Je=(f,p,g,_,v=null)=>{const{el:P,type:I,transition:k,children:O,shapeFlag:w}=f;if(w&6){Je(f.component.subTree,p,g,_);return}if(w&128){f.suspense.move(p,g,_);return}if(w&64){I.move(f,p,g,Qe);return}if(I===ke){o(P,p,g);for(let j=0;j<O.length;j++)Je(O[j],p,g,_);o(f.anchor,p,g);return}if(I===Do){X(f,p,g);return}if(_!==2&&w&1&&k)if(_===0)k.beforeEnter(P),o(P,p,g),je(()=>k.enter(P),v);else{const{leave:j,delayLeave:R,afterLeave:D}=k,ne=()=>o(P,p,g),fe=()=>{j(P,()=>{ne(),D&&D()})};R?R(P,ne,fe):fe()}else o(P,p,g)},Ae=(f,p,g,_=!1,v=!1)=>{const{type:P,props:I,ref:k,children:O,dynamicChildren:w,shapeFlag:F,patchFlag:j,dirs:R}=f;if(k!=null&&Bo(k,null,g,f,!0),F&256){p.ctx.deactivate(f);return}const D=F&1&&R,ne=!ln(f);let fe;if(ne&&(fe=I&&I.onVnodeBeforeUnmount)&&ot(fe,p,f),F&6)J(f.component,g,_);else{if(F&128){f.suspense.unmount(g,_);return}D&&$t(f,null,p,"beforeUnmount"),F&64?f.type.remove(f,p,g,v,Qe,_):w&&(P!==ke||j>0&&j&64)?me(w,p,g,!1,!0):(P===ke&&j&384||!v&&F&16)&&me(O,p,g),_&&Qt(f)}(ne&&(fe=I&&I.onVnodeUnmounted)||D)&&je(()=>{fe&&ot(fe,p,f),D&&$t(f,null,p,"unmounted")},g)},Qt=f=>{const{type:p,el:g,anchor:_,transition:v}=f;if(p===ke){$(g,_);return}if(p===Do){A(f);return}const P=()=>{r(g),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(f.shapeFlag&1&&v&&!v.persisted){const{leave:I,delayLeave:k}=v,O=()=>I(g,P);k?k(f.el,P,O):O()}else P()},$=(f,p)=>{let g;for(;f!==p;)g=h(f),r(f),f=g;r(p)},J=(f,p,g)=>{const{bum:_,scope:v,update:P,subTree:I,um:k}=f;_&&Pn(_),v.stop(),P&&(P.active=!1,Ae(I,f,p,g)),k&&je(k,p),je(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},me=(f,p,g,_=!1,v=!1,P=0)=>{for(let I=P;I<f.length;I++)Ae(f[I],p,g,_,v)},Fe=f=>f.shapeFlag&6?Fe(f.component.subTree):f.shapeFlag&128?f.suspense.next():h(f.anchor||f.el),rt=(f,p,g)=>{f==null?p._vnode&&Ae(p._vnode,null,null,!0):y(p._vnode||null,f,p,null,null,null,g),Kr(),Ur(),p._vnode=f},Qe={p:y,um:Ae,m:Je,r:Qt,mt:Ce,mc:b,pc:M,pbc:H,n:Fe,o:e};let vn,_n;return t&&([vn,_n]=t(Qe)),{render:rt,hydrate:vn,createApp:Ca(rt,vn)}}function Et({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ks(e,t,n=!1){const o=e.children,r=t.children;if(W(o)&&W(r))for(let s=0;s<o.length;s++){const i=o[s];let l=r[s];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[s]=bt(r[s]),l.el=i.el),n||ks(i,l)),l.type===Wn&&(l.el=i.el)}}function Sa(e){const t=e.slice(),n=[0];let o,r,s,i,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(r=n[n.length-1],e[r]<c){t[o]=r,n.push(o);continue}for(s=0,i=n.length-1;s<i;)l=s+i>>1,e[n[l]]<c?s=l+1:i=l;c<e[n[s]]&&(s>0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}const Ma=e=>e.__isTeleport,ke=Symbol.for("v-fgt"),Wn=Symbol.for("v-txt"),qe=Symbol.for("v-cmt"),Do=Symbol.for("v-stc"),un=[];let Xe=null;function L(e=!1){un.push(Xe=e?null:[])}function La(){un.pop(),Xe=un[un.length-1]||null}let fn=1;function Ps(e){fn+=e}function Ts(e){return e.dynamicChildren=fn>0?Xe||He:null,La(),fn>0&&Xe&&Xe.push(e),e}function Z(e,t,n,o,r,s){return Ts(U(e,t,n,o,r,s,!0))}function Ee(e,t,n,o,r){return Ts(Y(e,t,n,o,r,!0))}function Kn(e){return e?e.__v_isVNode===!0:!1}function St(e,t){return e.type===t.type&&e.key===t.key}const Un="__vInternal",Os=({key:e})=>e??null,qn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?_e(e)||xe(e)||Q(e)?{i:Te,r:e,k:t,f:!!n}:e:null);function U(e,t=null,n=null,o=0,r=null,s=e===ke?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Os(t),ref:t&&qn(t),scopeId:Zr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Te};return l?(No(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=_e(n)?8:16),fn>0&&!i&&Xe&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&Xe.push(a),a}const Y=ja;function ja(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===ss)&&(e=qe),Kn(e)){const l=vt(e,t,!0);return n&&No(l,n),fn>0&&!s&&Xe&&(l.shapeFlag&6?Xe[Xe.indexOf(e)]=l:Xe.push(l)),l.patchFlag|=-2,l}if(Wa(e)&&(e=e.__vccOpts),t){t=Aa(t);let{class:l,style:a}=t;l&&!_e(l)&&(t.class=be(l)),de(a)&&(zr(a)&&!W(a)&&(a=ve({},a)),t.style=We(a))}const i=_e(e)?1:Ql(e)?128:Ma(e)?64:de(e)?4:Q(e)?2:0;return U(e,t,n,o,r,i,s,!0)}function Aa(e){return e?zr(e)||Un in e?ve({},e):e:null}function vt(e,t,n=!1){const{props:o,ref:r,patchFlag:s,children:i}=e,l=t?Fo(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Os(l),ref:t&&t.ref?n&&r?W(r)?r.concat(qn(t)):[r,qn(t)]:qn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ke?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&vt(e.ssContent),ssFallback:e.ssFallback&&vt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function _t(e=" ",t=0){return Y(Wn,null,e,t)}function Ne(e="",t=!1){return t?(L(),Ee(qe,null,e)):Y(qe,null,e)}function nt(e){return e==null||typeof e=="boolean"?Y(qe):W(e)?Y(ke,null,e.slice()):typeof e=="object"?bt(e):Y(Wn,null,String(e))}function bt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:vt(e)}function No(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(W(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),No(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Un in t)?t._ctx=Te:r===3&&Te&&(Te.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Q(t)?(t={default:t,_ctx:Te},n=32):(t=String(t),o&64?(n=16,t=[_t(t)]):n=8);e.children=t,e.shapeFlag|=n}function Fo(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=be([t.class,o.class]));else if(r==="style")t.style=We([t.style,o.style]);else if(yn(r)){const s=t[r],i=o[r];i&&s!==i&&!(W(s)&&s.includes(i))&&(t[r]=s?[].concat(s,i):i)}else r!==""&&(t[r]=o[r])}return t}function ot(e,t,n,o=null){Ke(e,t,7,[n,o])}const za=hs();let Ba=0;function Da(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||za,s={uid:Ba++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new al(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ms(o,r),emitsOptions:Yr(o,r),emit:null,emitted:null,propsDefaults:G,inheritAttrs:o.inheritAttrs,ctx:G,data:G,props:G,attrs:G,slots:G,refs:G,setupState:G,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=ql.bind(null,s),e.ce&&e.ce(s),s}let Pe=null;const $s=()=>Pe||Te;let Ro,Kt,Is="__VUE_INSTANCE_SETTERS__";(Kt=ao()[Is])||(Kt=ao()[Is]=[]),Kt.push(e=>Pe=e),Ro=e=>{Kt.length>1?Kt.forEach(t=>t(e)):Kt[0](e)};const Ut=e=>{Ro(e),e.scope.on()},Mt=()=>{Pe&&Pe.scope.off(),Ro(null)};function Es(e){return e.vnode.shapeFlag&4}let dn=!1;function Na(e,t=!1){dn=t;const{props:n,children:o}=e.vnode,r=Es(e);ka(e,n,r,t),Oa(e,o);const s=r?Fa(e,t):void 0;return dn=!1,s}function Fa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Br(new Proxy(e.ctx,ma));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?Ha(e):null;Ut(e),Ft();const s=gt(o,e,0,[e.props,r]);if(Rt(),Mt(),dr(s)){if(s.then(Mt,Mt),t)return s.then(i=>{Ss(e,i,t)}).catch(i=>{jn(i,e,0)});e.asyncDep=s}else Ss(e,s,t)}else Ls(e,t)}function Ss(e,t,n){Q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:de(t)&&(e.setupState=Hr(t)),Ls(e,n)}let Ms;function Ls(e,t,n){const o=e.type;if(!e.render){if(!t&&Ms&&!o.render){const r=o.template||Lo(e).template;if(r){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=ve(ve({isCustomElement:s,delimiters:l},i),a);o.render=Ms(r,c)}}e.render=o.render||Ye}Ut(e),Ft(),va(e),Rt(),Mt()}function Ra(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Le(e,"get","$attrs"),t[n]}}))}function Ha(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Ra(e)},slots:e.slots,emit:e.emit,expose:t}}function Yn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Hr(Br(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in an)return an[n](e)},has(t,n){return n in t||n in an}}))}function Va(e,t=!0){return Q(e)?e.displayName||e.name:e.name||t&&e.__name}function Wa(e){return Q(e)&&"__vccOpts"in e}const ue=(e,t)=>Rl(e,t,dn);function js(e,t,n){const o=arguments.length;return o===2?de(t)&&!W(t)?Kn(t)?Y(e,null,[t]):Y(e,t):Y(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Kn(n)&&(n=[n]),Y(e,t,n))}const Ka=Symbol.for("v-scx"),Ua=()=>It(Ka),qa="3.3.4",Ya="http://www.w3.org/2000/svg",Lt=typeof document<"u"?document:null,As=Lt&&Lt.createElement("template"),Za={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?Lt.createElementNS(Ya,e):Lt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Lt.createTextNode(e),createComment:e=>Lt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Lt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,s){const i=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{As.innerHTML=o?`<svg>${e}</svg>`:e;const l=As.content;if(o){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Xa(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Ja(e,t,n){const o=e.style,r=_e(n);if(n&&!r){if(t&&!_e(t))for(const s in t)n[s]==null&&Ho(o,s,"");for(const s in n)Ho(o,s,n[s])}else{const s=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=s)}}const zs=/\s*!important$/;function Ho(e,t,n){if(W(n))n.forEach(o=>Ho(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Qa(e,t);zs.test(n)?e.setProperty(Ve(o),n.replace(zs,""),"important"):e[o]=n}}const Bs=["Webkit","Moz","ms"],Vo={};function Qa(e,t){const n=Vo[t];if(n)return n;let o=Be(t);if(o!=="filter"&&o in e)return Vo[t]=o;o=kn(o);for(let r=0;r<Bs.length;r++){const s=Bs[r]+o;if(s in e)return Vo[t]=s}return t}const Ds="http://www.w3.org/1999/xlink";function Ga(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Ds,t.slice(6,t.length)):e.setAttributeNS(Ds,t,n);else{const s=ll(t);n==null||s&&!mr(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function ec(e,t,n,o,r,s,i){if(t==="innerHTML"||t==="textContent"){o&&i(o,r,s),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const c=l==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=mr(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function qt(e,t,n,o){e.addEventListener(t,n,o)}function tc(e,t,n,o){e.removeEventListener(t,n,o)}function nc(e,t,n,o,r=null){const s=e._vei||(e._vei={}),i=s[t];if(o&&i)i.value=o;else{const[l,a]=oc(t);if(o){const c=s[t]=ic(o,r);qt(e,l,c,a)}else i&&(tc(e,l,i,a),s[t]=void 0)}}const Ns=/(?:Once|Passive|Capture)$/;function oc(e){let t;if(Ns.test(e)){t={};let o;for(;o=e.match(Ns);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ve(e.slice(2)),t]}let Wo=0;const rc=Promise.resolve(),sc=()=>Wo||(rc.then(()=>Wo=0),Wo=Date.now());function ic(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Ke(lc(o,n.value),t,5,[o])};return n.value=e,n.attached=sc(),n}function lc(e,t){if(W(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const Fs=/^on[a-z]/,ac=(e,t,n,o,r=!1,s,i,l,a)=>{t==="class"?Xa(e,o,r):t==="style"?Ja(e,n,o):yn(t)?to(t)||nc(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):cc(e,t,o,r))?ec(e,t,o,s,i,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Ga(e,t,o,r))};function cc(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Fs.test(t)&&Q(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Fs.test(t)&&_e(n)?!1:t in e}function uc(e,t){const n=Oe(e);class o extends Ko{constructor(s){super(n,s,t)}}return o.def=n,o}const fc=typeof HTMLElement<"u"?HTMLElement:class{};class Ko extends fc{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&o?o(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,ct(()=>{this._connected||(Js(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}).observe(this,{attributes:!0});const t=(o,r=!1)=>{const{props:s,styles:i}=o;let l;if(s&&!W(s))for(const a in s){const c=s[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=lo(this._props[a])),(l||(l=Object.create(null)))[Be(a)]=!0)}this._numberProps=l,r&&this._resolveProps(o),this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=W(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(Be))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(s){this._setProp(r,s)}})}_setAttr(t){let n=this.getAttribute(t);const o=Be(t);this._numberProps&&this._numberProps[o]&&(n=lo(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(Ve(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ve(t),n+""):n||this.removeAttribute(Ve(t))))}_update(){Js(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Y(this._def,ve({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(s,i)=>{this.dispatchEvent(new CustomEvent(s,{detail:i}))};n.emit=(s,...i)=>{o(s,i),Ve(s)!==s&&o(Ve(s),i)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Ko){n.parent=r._instance,n.provides=r._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}const yt="transition",pn="animation",Yt=(e,{slots:t})=>js(oa,dc(e),t);Yt.displayName="Transition";const Rs={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Yt.props=ve({},Qr,Rs);const jt=(e,t=[])=>{W(e)?e.forEach(n=>n(...t)):e&&e(...t)},Hs=e=>e?W(e)?e.some(t=>t.length>1):e.length>1:!1;function dc(e){const t={};for(const S in e)S in Rs||(t[S]=e[S]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=s,appearActiveClass:c=i,appearToClass:u=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,C=pc(r),y=C&&C[0],V=C&&C[1],{onBeforeEnter:N,onEnter:z,onEnterCancelled:X,onLeave:A,onLeaveCancelled:E,onBeforeAppear:B=N,onAppear:q=z,onAppearCancelled:b=X}=t,T=(S,se,Ce)=>{At(S,se?u:l),At(S,se?c:i),Ce&&Ce()},H=(S,se)=>{S._isLeaving=!1,At(S,d),At(S,m),At(S,h),se&&se()},ae=S=>(se,Ce)=>{const Me=S?q:z,le=()=>T(se,S,Ce);jt(Me,[se,le]),Vs(()=>{At(se,S?a:s),wt(se,S?u:l),Hs(Me)||Ws(se,o,y,le)})};return ve(t,{onBeforeEnter(S){jt(N,[S]),wt(S,s),wt(S,i)},onBeforeAppear(S){jt(B,[S]),wt(S,a),wt(S,c)},onEnter:ae(!1),onAppear:ae(!0),onLeave(S,se){S._isLeaving=!0;const Ce=()=>H(S,se);wt(S,d),mc(),wt(S,h),Vs(()=>{S._isLeaving&&(At(S,d),wt(S,m),Hs(A)||Ws(S,o,V,Ce))}),jt(A,[S,Ce])},onEnterCancelled(S){T(S,!1),jt(X,[S])},onAppearCancelled(S){T(S,!0),jt(b,[S])},onLeaveCancelled(S){H(S),jt(E,[S])}})}function pc(e){if(e==null)return null;if(de(e))return[Uo(e.enter),Uo(e.leave)];{const t=Uo(e);return[t,t]}}function Uo(e){return lo(e)}function wt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function At(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Vs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let hc=0;function Ws(e,t,n,o){const r=e._endId=++hc,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:l,propCount:a}=gc(e,t);if(!i)return o();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,h),s()},h=m=>{m.target===e&&++u>=a&&d()};setTimeout(()=>{u<a&&d()},l+1),e.addEventListener(c,h)}function gc(e,t){const n=window.getComputedStyle(e),o=C=>(n[C]||"").split(", "),r=o(`${yt}Delay`),s=o(`${yt}Duration`),i=Ks(r,s),l=o(`${pn}Delay`),a=o(`${pn}Duration`),c=Ks(l,a);let u=null,d=0,h=0;t===yt?i>0&&(u=yt,d=i,h=s.length):t===pn?c>0&&(u=pn,d=c,h=a.length):(d=Math.max(i,c),u=d>0?i>c?yt:pn:null,h=u?u===yt?s.length:a.length:0);const m=u===yt&&/\b(transform|all)(,|$)/.test(o(`${yt}Property`).toString());return{type:u,timeout:d,propCount:h,hasTransform:m}}function Ks(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Us(n)+Us(e[o])))}function Us(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function mc(){return document.body.offsetHeight}const qs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return W(t)?n=>Pn(t,n):t};function vc(e){e.target.composing=!0}function Ys(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const _c={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=qs(r);const s=o||r.props&&r.props.type==="number";qt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),s&&(l=io(l)),e._assign(l)}),n&&qt(e,"change",()=>{e.value=e.value.trim()}),t||(qt(e,"compositionstart",vc),qt(e,"compositionend",Ys),qt(e,"change",Ys))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},s){if(e._assign=qs(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&io(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},bc=["ctrl","shift","alt","meta"],yc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>bc.some(n=>e[`${n}Key`]&&!t.includes(n))},zt=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const s=yc[t[r]];if(s&&s(n,t))return}return e(n,...o)},wc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Zs=(e,t)=>n=>{if(!("key"in n))return;const o=Ve(n.key);if(t.some(r=>r===o||wc[r]===o))return e(n)},xc={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):hn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),hn(e,!0),o.enter(e)):o.leave(e,()=>{hn(e,!1)}):hn(e,t))},beforeUnmount(e,{value:t}){hn(e,t)}};function hn(e,t){e.style.display=t?e._vod:"none"}const Cc=ve({patchProp:ac},Za);let Xs;function kc(){return Xs||(Xs=Ia(Cc))}const Js=(...e)=>{kc().render(...e)},Pc={class:"flex gap-3 items-center children-pointer-events-auto relative z-30"},Tc={class:"flex justify-between items-end"},Oc={class:"inline-block children-pointer-events-auto w-1/3"},$c={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Ic={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},Ec={class:"inline-block z-20 relative"},Qs=Oe({__name:"ReaderLayout",props:{idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{},spaceBottom:{},touchDevice:{type:Boolean}},setup(e){return(t,n)=>(L(),Z("div",{class:be(["fixed inset-0 bg-black visible z-[9999999999] text-stone-100 font-sans text-base",{"cursor-none":t.idle}])},[$e(t.$slots,"default"),U("div",{class:be(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear inset-2 sm:inset-3 flex flex-col justify-between",{"opacity-100 z-10":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}]),style:We({paddingTop:`${t.spaceTop||0}px`,paddingBottom:t.spaceBottom?`${t.spaceBottom}px`:""})},[U("div",Pc,[$e(t.$slots,"back"),t.touchDevice?Ne("",!0):$e(t.$slots,"exit",{key:0}),$e(t.$slots,"chapter-nav")]),U("div",Tc,[U("div",Oc,[$e(t.$slots,"page-nav")]),U("div",$c,[$e(t.$slots,"reset-zoom")]),U("div",Ic,[$e(t.$slots,"entry"),U("div",Ec,[$e(t.$slots,"settings")]),$e(t.$slots,"play")])]),U("div",{class:be(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[$e(t.$slots,"progress")],2)],6)],2))}}),Sc=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),ye=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Mc={},Lc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},jc=[U("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[U("circle",{cx:"14",cy:"14",r:"12"}),U("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function Ac(e,t){return L(),Z("svg",Lc,jc)}const Gs=ye(Mc,[["render",Ac]]),zc=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),Bc={key:0,class:"h-9 rounded-full inline-flex justify-between items-center bg-black bg-opacity-50 gap-1 py-2 px-3 pointer-events-auto hover:bg-stone-900 hover:bg-opacity-50 duration-200",title:"Reset zoom"},Dc={class:"block w-4 h-4"},Nc={class:"w-12"},ei=Oe({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=Gs;return t.zoom!==1?(L(),Z("button",Bc,[U("div",Dc,[Y(o)]),U("div",Nc,it(Math.ceil(t.zoom*100))+"%",1)])):Ne("",!0)}}}),Fc=Object.freeze(Object.defineProperty({__proto__:null,default:ei},Symbol.toStringTag,{value:"Module"})),Rc={},Hc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Vc=[U("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function Wc(e,t){return L(),Z("svg",Hc,Vc)}const qo=ye(Rc,[["render",Wc]]),Kc=Object.freeze(Object.defineProperty({__proto__:null,default:qo},Symbol.toStringTag,{value:"Module"})),Uc={},qc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Yc=[U("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),U("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function Zc(e,t){return L(),Z("svg",qc,Yc)}const Yo=ye(Uc,[["render",Zc]]),Xc=Object.freeze(Object.defineProperty({__proto__:null,default:Yo},Symbol.toStringTag,{value:"Module"}));function Jc({touchDevice:e}){const t=ee(!1);let n=0;return Vn("busy:touchDevice",e),Vn("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function Zo(){const e=It("busy:touchDevice"),t=It("setBusyState");let n=!1;return ft(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const Qc=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,s=.65;const i=setInterval(a,20);l();function l(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function a(){const c=+n||50;r<=c?(r++,s-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${s}`):(o.remove(),clearInterval(i))}},Zt={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>Qc(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},Gc={class:"group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200 rounđe-full p-2 w-full h-full inline-flex justify-center items-center"},Zn=Oe({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=Zo();let r=!1;function s(){r||(r=!0,o(!0,{desktopOnly:!0}))}function i(){r&&(r=!1,o(!1,{desktopOnly:!0}))}function l(a){n.disabled?a.preventDefault():t("click")}return(a,c)=>mt((L(),Ee(ha(a.href?"a":"button"),Fo(a.href?{href:a.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full",{"cursor-default text-stone-400 hover:text-stone-400":a.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!a.disabled,"bg-black bg-opacity-50":!a.transparent}],onClick:zt(l,["stop"]),onMouseenter:s,onMouseleave:i}),{default:oe(()=>[U("div",Gc,[$e(a.$slots,"default")])]),_:3},16,["class","onClick"])),[[K(Zt),a.disabled?0:15]])}}),eu=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"})),tu={},nu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ou=[U("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)];function ru(e,t){return L(),Z("svg",nu,ou)}const ti=ye(tu,[["render",ru]]),su=Object.freeze(Object.defineProperty({__proto__:null,default:ti},Symbol.toStringTag,{value:"Module"}));class iu{constructor(){Xi(this,"listeners");this.listeners=[],this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.init()}init(){window.addEventListener("keydown",this.onKeyDown,{capture:!0}),window.addEventListener("keyup",this.onKeyUp,{capture:!0}),window.addEventListener("keypress",this.onKeyPress,{capture:!0})}dispose(){window.removeEventListener("keydown",this.onKeyDown,{capture:!0}),window.removeEventListener("keyup",this.onKeyUp,{capture:!0}),window.removeEventListener("keypress",this.onKeyPress,{capture:!0})}onKeyPress(t){t.stopImmediatePropagation(),t.stopPropagation()}onKeyDown(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyDown)==null?void 0:o.call(n,t)})}onKeyUp(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyUp)==null?void 0:o.call(n,t)})}addListener(t){this.listeners.push(t)}removeListener(t){const n=this.listeners.indexOf(t);n!==-1&&this.listeners.splice(n,1)}}function lu(){const e=new iu;return ft(()=>e.dispose()),Vn("keyController",e),e}function Xo(e){const t=It("keyController");tt(()=>t.addListener(e)),ft(()=>t.removeListener(e))}const au={class:"relative flex w-full flex-shrink-0 justify-center items-center h-16"},cu={class:"inline-flex items-center h-full absolute left-3 top-0"},uu=U("span",{class:"text-xl font-medium"},"Customize",-1),fu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},ni=Oe({__name:"BottomSheet",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;Xo({onKeyDown:r});const o=Zo();he(()=>n.modelValue,s=>o(s));function r(s){n.modelValue&&s.key==="Escape"&&(t("update:modelValue",!1),s.preventDefault())}return(s,i)=>{const l=ti,a=Zn;return L(),Z("div",{class:be(["fixed inset-0 flex flex-col items-center justify-end select-none",{"!pointer-events-none":!n.modelValue}]),onClick:i[2]||(i[2]=()=>t("update:modelValue",!1))},[Y(Yt,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:oe(()=>[n.modelValue?(L(),Z("div",{key:0,class:"inline-flex flex-col h-[24rem] w-full sm:w-[32rem] max-h-[80vh] bg-stone-800 bg-opacity-75 backdrop-blur-md rounded-t-xl max-w-full overflow-hidden duration-200",onClick:i[1]||(i[1]=zt(()=>{},["stop"]))},[U("div",au,[U("div",cu,[Y(a,{transparent:"",onClick:i[0]||(i[0]=()=>t("update:modelValue",!1))},{default:oe(()=>[Y(l)]),_:1})]),uu]),U("div",fu,[$e(s.$slots,"default")])])):Ne("",!0)]),_:3})],2)}}}),du=Object.freeze(Object.defineProperty({__proto__:null,default:ni},Symbol.toStringTag,{value:"Module"})),pu=["min","max","step"],hu={class:"flex-shrink-0"},oi=ye(Oe({__name:"InputPercentage",props:{modelValue:{},min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ue({get(){return n.modelValue},set(r){t("update:modelValue",+r)}});return(r,s)=>(L(),Z("div",{class:be(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:We({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[mt(U("input",{"onUpdate:modelValue":s[0]||(s[0]=i=>o.value=i),type:"range",min:r.min,max:r.max,step:r.step??1,class:"flex-grow"},null,8,pu),[[_c,o.value]]),U("p",hu,[$e(r.$slots,"suffix")])],6))}}),[["styles",[`input[type=range]{--tw-bg-opacity:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to right,#d6d3d1 var(--percentage),#78716c var(--percentage));background-color:rgb(120 113 108/var(--tw-bg-opacity));border-radius:.125rem;border-style:none;cursor:pointer;height:.375rem;opacity:.9;outline:2px solid transparent;outline-offset:2px}input[type=range]::-webkit-slider-thumb{--tw-border-opacity:1;--tw-bg-opacity:1;-webkit-appearance:none!important;background-color:rgb(214 211 209/var(--tw-bg-opacity));border-color:rgb(214 211 209/var(--tw-border-opacity));border-radius:.125rem;border-style:solid;border-width:2px;cursor:pointer;height:1.75rem;transition-duration:.2s;width:1rem}input[type=range]:hover{opacity:1}
|
|
2
|
+
`]]]),gu=Object.freeze(Object.defineProperty({__proto__:null,default:oi},Symbol.toStringTag,{value:"Module"})),mu={class:"flex items-center mb-8 last:mb-0"},vu={class:"flex-grow overflow-hidden"},ri=Oe({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(L(),Z("div",mu,[U("div",{class:be(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},it(t.label),3),U("div",vu,[$e(t.$slots,"default")])]))}}),_u=Object.freeze(Object.defineProperty({__proto__:null,default:ri},Symbol.toStringTag,{value:"Module"})),bu=["onClick","onKeyup"],si=Oe({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ee(null),r=ee({width:"",left:""});tt(()=>{let i=!1;he(()=>n.modelValue,l=>{var c;const a=(c=o.value)==null?void 0:c.children[l+1];a&&(r.value={width:a.offsetWidth+"px",left:a.offsetLeft+"px"},a.scrollIntoView({behavior:i?"smooth":"auto",block:"center",inline:"center"}),i=!0)},{immediate:!0})});function s(i){t("update:modelValue",i)}return(i,l)=>(L(),Z("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[U("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:We(r.value)},null,4),(L(!0),Z(ke,null,Fn(n.items,(a,c)=>mt((L(),Z("div",{key:c,tabindex:"0",class:be(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.modelValue,"text-stone-400":c!=n.modelValue}]),onClick:()=>s(c),onKeyup:[Zs(()=>s(c),["enter"]),Zs(()=>s(c),["space"])]},[_t(it(a),1)],42,bu)),[[K(Zt),30]])),128))],512))}}),yu=Object.freeze(Object.defineProperty({__proto__:null,default:si},Symbol.toStringTag,{value:"Module"})),wu={},xu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Cu=[U("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),U("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function ku(e,t){return L(),Z("svg",xu,Cu)}const ii=ye(wu,[["render",ku]]),Pu=Object.freeze(Object.defineProperty({__proto__:null,default:ii},Symbol.toStringTag,{value:"Module"}));var li;const Jo=typeof window<"u",Tu=e=>typeof e=="function",Ou=e=>typeof e=="string",xt=()=>{};Jo&&((li=window==null?void 0:window.navigator)!=null&&li.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Xn(e){return typeof e=="function"?e():K(e)}function ai(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}const ci=e=>e();function $u(e,t={}){let n,o,r=xt;const s=l=>{clearTimeout(l),r(),r=xt};return l=>{const a=Xn(e),c=Xn(t.maxWait);return n&&s(n),a<=0||c!==void 0&&c<=0?(o&&(s(o),o=null),Promise.resolve(l())):new Promise((u,d)=>{r=t.rejectOnCancel?d:u,c&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&s(o),o=null,u(l())},a)})}}function Iu(e=ci){const t=ee(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...s)=>{t.value&&e(...s)};return{isActive:bo(t),pause:n,resume:o,eventFilter:r}}function Eu(e,t=!1,n="Timeout"){return new Promise((o,r)=>{setTimeout(t?()=>r(n):o,e)})}function Su(e){return e}function Qo(e){return _r()?(ul(e),!0):!1}function Bt(e,t=200,n={}){return ai($u(t,n),e)}function Mu(e,t=!0){$s()?tt(e):t?e():ct(e)}var ui=Object.getOwnPropertySymbols,Lu=Object.prototype.hasOwnProperty,ju=Object.prototype.propertyIsEnumerable,Au=(e,t)=>{var n={};for(var o in e)Lu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&ui)for(var o of ui(e))t.indexOf(o)<0&&ju.call(e,o)&&(n[o]=e[o]);return n};function zu(e,t,n={}){const o=n,{eventFilter:r=ci}=o,s=Au(o,["eventFilter"]);return he(e,ai(r,t),s)}var Bu=Object.defineProperty,Du=Object.defineProperties,Nu=Object.getOwnPropertyDescriptors,Jn=Object.getOwnPropertySymbols,fi=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,pi=(e,t,n)=>t in e?Bu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fu=(e,t)=>{for(var n in t||(t={}))fi.call(t,n)&&pi(e,n,t[n]);if(Jn)for(var n of Jn(t))di.call(t,n)&&pi(e,n,t[n]);return e},Ru=(e,t)=>Du(e,Nu(t)),Hu=(e,t)=>{var n={};for(var o in e)fi.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Jn)for(var o of Jn(e))t.indexOf(o)<0&&di.call(e,o)&&(n[o]=e[o]);return n};function Vu(e,t,n={}){const o=n,{eventFilter:r}=o,s=Hu(o,["eventFilter"]),{eventFilter:i,pause:l,resume:a,isActive:c}=Iu(r);return{stop:zu(e,t,Ru(Fu({},s),{eventFilter:i})),pause:l,resume:a,isActive:c}}function Dt(e){var t;const n=Xn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ct=Jo?window:void 0,Wu=Jo?window.document:void 0;function gn(...e){let t,n,o,r;if(Ou(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=Ct):[t,n,o,r]=e,!t)return xt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},l=(u,d,h)=>(u.addEventListener(d,h,r),()=>u.removeEventListener(d,h,r)),a=he(()=>Dt(t),u=>{i(),u&&s.push(...n.flatMap(d=>o.map(h=>l(u,d,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),i()};return Qo(c),c}function Ku(e,t,n){const{immediate:o=!0,delay:r=0,onError:s=xt,onSuccess:i=xt,resetOnExecute:l=!0,shallow:a=!0,throwError:c}=n??{},u=a?Fr(t):ee(t),d=ee(!1),h=ee(!1),m=ee(void 0);async function C(y=0,...V){l&&(u.value=t),m.value=void 0,d.value=!1,h.value=!0,y>0&&await Eu(y);const N=typeof e=="function"?e(...V):e;try{const z=await N;u.value=z,d.value=!0,i(z)}catch(z){if(m.value=z,s(z),c)throw m}finally{h.value=!1}return u.value}return o&&C(r),{state:u,isReady:d,isLoading:h,error:m,execute:C}}function hi(e,t=!1){const n=ee(),o=()=>n.value=!!e();return o(),Mu(o,t),n}const Go=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},er="__vueuse_ssr_handlers__";Go[er]=Go[er]||{};const Uu=Go[er];function qu(e,t){return Uu[e]||t}function Yu(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var Zu=Object.defineProperty,gi=Object.getOwnPropertySymbols,Xu=Object.prototype.hasOwnProperty,Ju=Object.prototype.propertyIsEnumerable,mi=(e,t,n)=>t in e?Zu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vi=(e,t)=>{for(var n in t||(t={}))Xu.call(t,n)&&mi(e,n,t[n]);if(gi)for(var n of gi(t))Ju.call(t,n)&&mi(e,n,t[n]);return e};const Qu={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function _i(e,t,n,o={}){var r;const{flush:s="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:d=Ct,eventFilter:h,onError:m=q=>{console.error(q)}}=o,C=(u?Fr:ee)(t);if(!n)try{n=qu("getDefaultStorage",()=>{var q;return(q=Ct)==null?void 0:q.localStorage})()}catch(q){m(q)}if(!n)return C;const y=Xn(t),V=Yu(y),N=(r=o.serializer)!=null?r:Qu[V],{pause:z,resume:X}=Vu(C,()=>A(C.value),{flush:s,deep:i,eventFilter:h});return d&&l&&gn(d,"storage",B),B(),C;function A(q){try{if(q==null)n.removeItem(e);else{const b=N.write(q),T=n.getItem(e);T!==b&&(n.setItem(e,b),d&&(d==null||d.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:T,newValue:b,storageArea:n}))))}}catch(b){m(b)}}function E(q){const b=q?q.newValue:n.getItem(e);if(b==null)return a&&y!==null&&n.setItem(e,N.write(y)),y;if(!q&&c){const T=N.read(b);return Tu(c)?c(T,y):V==="object"&&!Array.isArray(T)?vi(vi({},y),T):T}else return typeof b!="string"?b:N.read(b)}function B(q){if(!(q&&q.storageArea!==n)){if(q&&q.key==null){C.value=y;return}if(!(q&&q.key!==e)){z();try{C.value=E(q)}catch(b){m(b)}finally{q?ct(X):X()}}}}}function Gu({document:e=Wu}={}){if(!e)return ee("visible");const t=ee(e.visibilityState);return gn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var bi=Object.getOwnPropertySymbols,ef=Object.prototype.hasOwnProperty,tf=Object.prototype.propertyIsEnumerable,nf=(e,t)=>{var n={};for(var o in e)ef.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&bi)for(var o of bi(e))t.indexOf(o)<0&&tf.call(e,o)&&(n[o]=e[o]);return n};function yi(e,t,n={}){const o=n,{window:r=Ct}=o,s=nf(o,["window"]);let i;const l=hi(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},c=he(()=>Dt(e),d=>{a(),l.value&&r&&d&&(i=new ResizeObserver(t),i.observe(d,s))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return Qo(u),{isSupported:l,stop:u}}function of(e,t={width:0,height:0},n={}){const{window:o=Ct,box:r="content-box"}=n,s=ue(()=>{var a,c;return(c=(a=Dt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),i=ee(t.width),l=ee(t.height);return yi(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&s.value){const u=Dt(e);if(u){const d=o.getComputedStyle(u);i.value=parseFloat(d.width),l.value=parseFloat(d.height)}}else if(c){const u=Array.isArray(c)?c:[c];i.value=u.reduce((d,{inlineSize:h})=>d+h,0),l.value=u.reduce((d,{blockSize:h})=>d+h,0)}else i.value=a.contentRect.width,l.value=a.contentRect.height},n),he(()=>Dt(e),a=>{i.value=a?t.width:0,l.value=a?t.height:0}),{width:i,height:l}}function wi(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:i=Ct}=n,l=hi(()=>i&&"IntersectionObserver"in i);let a=xt;const c=l.value?he(()=>({el:Dt(e),root:Dt(o)}),({el:d,root:h})=>{if(a(),!d)return;const m=new IntersectionObserver(t,{root:h,rootMargin:r,threshold:s});m.observe(d),a=()=>{m.disconnect(),a=xt}},{immediate:!0,flush:"post"}):xt,u=()=>{a(),c()};return Qo(u),{isSupported:l,stop:u}}function Qn(e,t,n={}){const{window:o=Ct}=n;return _i(e,t,o==null?void 0:o.localStorage,n)}var xi;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(xi||(xi={}));function tr(e,t,n={}){const{window:o=Ct}=n;return _i(e,t,o==null?void 0:o.sessionStorage,n)}var rf=Object.defineProperty,Ci=Object.getOwnPropertySymbols,sf=Object.prototype.hasOwnProperty,lf=Object.prototype.propertyIsEnumerable,ki=(e,t,n)=>t in e?rf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,af=(e,t)=>{for(var n in t||(t={}))sf.call(t,n)&&ki(e,n,t[n]);if(Ci)for(var n of Ci(t))lf.call(t,n)&&ki(e,n,t[n]);return e};af({linear:Su},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function cf(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var kt=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(kt||{}),Xt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Xt||{});const Pi=.25,Ti=5,uf=.25,Gn=.25,nr=5,ff=.05;function df(e){const{titleName:t,asyncIsWebtoon:n}=e,o=t?cf(t):location.pathname,r=Qn(`tk:style:${o}`,Xt.longStrip,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(u,d){return Object.values(Xt).includes(u)?u:d}}),s=Qn(`tk:dir:${o}`,kt.vertical,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(u,d){return Object.values(kt).includes(u)?u:d}}),i=Qn(`tk:speed:${o}`,1,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(u,d){return u>=Pi&&u<=Ti?+u:d}}),l=Qn(`tk:zoom:${o}`,1,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(u,d){return u>=Gn&&u<=1?+u:d}}),a=ue({get(){return n.state.value?Xt.longStrip:r.value},set:u=>r.value=u}),c=ue({get:()=>n.state.value?kt.vertical:s.value,set:u=>s.value=u});return{direction:c,style:a,speed:i,zoom:l,isLongStrip:ue(()=>a.value===Xt.longStrip),isDouble:ue(()=>a.value===Xt.double),isRTL:ue(()=>c.value===kt.rtl),isVertical:ue(()=>c.value===kt.vertical)}}const Oi=Oe({__name:"ButtonReaderSettings",props:{direction:{},readerStyle:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:speed","update:zoom"],setup(e,{emit:t}){const n=ee(!1);function o(r){t("update:zoom",Math.round(r)/100)}return(r,s)=>{const i=ii,l=Zn,a=si,c=ri,u=oi,d=ni;return L(),Z(ke,null,[Y(l,{title:"Customize",disabled:r.disabled,onClick:s[0]||(s[0]=()=>n.value=!0)},{default:oe(()=>[Y(i)]),_:1},8,["disabled"]),Y(d,{modelValue:n.value,"onUpdate:modelValue":s[4]||(s[4]=h=>n.value=h)},{default:oe(()=>[Y(c,{label:"Style"},{default:oe(()=>[Y(a,{"model-value":r.readerStyle,items:r.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":s[1]||(s[1]=h=>t("update:reader-style",h))},null,8,["model-value","items"])]),_:1}),Y(c,{label:"Direction"},{default:oe(()=>[Y(a,{"model-value":r.direction,items:r.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":s[2]||(s[2]=h=>t("update:direction",h))},null,8,["model-value","items"])]),_:1}),Y(c,{label:"Speed"},{default:oe(()=>[Y(u,{"model-value":r.speed,min:K(Pi),max:K(Ti),step:K(uf),suffix:"x","onUpdate:modelValue":s[3]||(s[3]=h=>t("update:speed",h))},{suffix:oe(()=>[_t(it(r.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),Y(c,{label:"Zoom"},{default:oe(()=>[Y(u,{"model-value":Math.ceil(r.zoom*100),min:K(Gn)*100,max:K(nr)*100,step:K(ff)*100,"onUpdate:modelValue":o},{suffix:oe(()=>[_t(it(Math.ceil(r.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue"])],64)}}}),pf=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),hf={},gf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},mf=[U("path",{d:"M18.652 3C18.0277 3 17.5216 3.5061 17.5216 4.13042V5.26083H16.3912C15.7669 5.26083 15.2608 5.76693 15.2608 6.39125C15.2608 7.01556 15.7669 7.52166 16.3912 7.52166H17.5216V8.65208C17.5216 9.27639 18.0277 9.78249 18.652 9.78249C19.2764 9.78249 19.7825 9.27639 19.7825 8.65208V7.52166H20.9129C21.5372 7.52166 22.0433 7.01556 22.0433 6.39125C22.0433 5.76693 21.5372 5.26083 20.9129 5.26083H19.7825V4.13042C19.7825 3.5061 19.2764 3 18.652 3Z",fill:"currentColor"},null,-1),U("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.0183 5.92413L8.24658 7.18954C7.65717 7.34584 7.24677 7.87926 7.24677 8.48905V18.0483C7.24677 18.4887 7.72075 18.7663 8.10482 18.5509L11.4937 16.65C11.7272 16.519 12.012 16.519 12.2454 16.65L18.6384 20.2363C19.1505 20.5235 19.7825 20.1534 19.7825 19.5663L19.7825 12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 6.23454 13.0067 6.07783 13.0183 5.92413Z",fill:"currentColor"},null,-1),U("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.49315 4.13042C4.64457 4.13042 3.95667 4.81833 3.95667 5.6669V19.5663C3.95667 20.1535 4.58867 20.5236 5.10077 20.2363L11.4937 16.6501C11.7272 16.5191 12.012 16.5191 12.2454 16.6501L18.6384 20.2363C19.1505 20.5236 19.7825 20.1535 19.7825 19.5663V12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 5.26083 13.3507 4.13042 13.3507 4.13042H5.49315Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function vf(e,t){return L(),Z("svg",gf,mf)}const $i=ye(hf,[["render",vf]]),_f=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"})),bf={},yf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wf=[U("path",{d:"M17.1026 8.89862C17.1114 8.90798 17.1203 8.91723 17.1295 8.92636C17.5709 9.36781 18.2866 9.36781 18.7281 8.92636L22.7247 4.92974C23.1662 4.48828 23.1662 3.77255 22.7247 3.33109C22.2833 2.88964 21.5675 2.88964 21.1261 3.33109L17.9292 6.52793L17.1286 5.72729C16.6871 5.28583 15.9714 5.28583 15.5299 5.72729C15.0885 6.16874 15.0885 6.88448 15.5299 7.32593L17.1026 8.89862Z",fill:"currentColor"},null,-1),U("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9564 5.92413L8.18463 7.18954C7.59522 7.34584 7.18481 7.87926 7.18481 8.48905V18.0483C7.18481 18.4887 7.65879 18.7663 8.04287 18.5509L11.4318 16.65C11.6652 16.519 11.95 16.519 12.1835 16.65L18.5764 20.2363C19.0885 20.5235 19.7205 20.1534 19.7205 19.5663L19.7205 12.0433H18.5901C15.4686 12.0433 12.938 9.5128 12.938 6.39125C12.938 6.23454 12.9448 6.07783 12.9564 5.92413Z",fill:"currentColor"},null,-1),U("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.4312 4.13042C4.58262 4.13042 3.89471 4.81833 3.89471 5.6669V19.5663C3.89471 20.1535 4.52672 20.5236 5.03882 20.2363L11.4318 16.6501C11.6652 16.5191 11.95 16.5191 12.1835 16.6501L18.5764 20.2363C19.0885 20.5236 19.7205 20.1535 19.7205 19.5663V5.6669C19.7205 5.6646 19.7205 5.66229 19.7205 5.65998V12.0433H18.5901C15.4685 12.0433 12.938 9.5128 12.938 6.39125C12.938 5.26083 13.2887 4.13042 13.2887 4.13042H5.4312Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function xf(e,t){return L(),Z("svg",yf,wf)}const Ii=ye(bf,[["render",xf]]),Cf=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"})),kf={},Pf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Tf=[U("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function Of(e,t){return L(),Z("svg",Pf,Tf)}const Ei=ye(kf,[["render",Of]]),$f=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),If=["aria-hidden"],Ef=["onClick"],Sf=["onClick"],Mf={class:"whitespace-nowrap"},or=Oe({__name:"ButtonDropdown",props:{modelValue:{},label:{},items:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ee(null),r=ee(!1),s=ee(null),i=ee(!1),l=ee(!1),a=ee(!1);Xo({onKeyDown:C});const c=Zo();function u(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(d(),ct(()=>setTimeout(()=>{var E,B;(B=(E=s.value)==null?void 0:E.children[n.modelValue])==null||B.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),V(o.value)):setTimeout(N,250)}function d(){const E=o.value;if(E){const B=E.getBoundingClientRect(),q=B.x+B.width/2;i.value=B.y>window.innerHeight/2,l.value=q<window.innerWidth/3,a.value=q>window.innerWidth/3*2}}function h(E){E!=n.modelValue&&t("update:modelValue",E),u()}function m(E){n.items.length||E.stopPropagation()}function C(E){r.value&&E.key==="Escape"&&(u(),E.preventDefault())}let y=[];function V(E){const B=window.getComputedStyle(E).zIndex,q=E.style.zIndex;(!B||!(+B>0))&&((!E.parentElement||E.parentElement.childElementCount>1)&&(E.style.zIndex="1",y.push({el:E,zIndex:q})),E.parentElement&&V(E.parentElement))}function N(){y.forEach(({el:E,zIndex:B})=>{E.style.zIndex=B??""}),y=[]}let z=!1;function X(){z||(z=!0,c(!0,{desktopOnly:!0}))}function A(){z&&(z=!1,c(!1,{desktopOnly:!0}))}return(E,B)=>{const q=Ei;return L(),Z("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(L(),Z("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:u})):Ne("",!0),E.items.length?(L(),Ee(Yt,{key:1,name:"slide-fade","enter-from-class":"scale-y-90 opacity-0 pointer-events-none","leave-to-class":"scale-y-90 opacity-0 pointer-events-none"},{default:oe(()=>[r.value?(L(),Z("ul",{key:0,ref_key:"list",ref:s,"aria-hidden":!r.value,class:be(["scrollbar-sm duration-150 delay-50 absolute w-40 max-h-[75vh] list-none bg-stone-800 bg-opacity-80 backdrop-blur-md rounded-lg overflow-auto",{"origin-bottom bottom-full -translate-y-1.5":i.value,"origin-top top-full translate-y-1.5":!i.value,"left-1/2 -ml-20 text-center":!l.value&&!a.value,"right-0 text-right":a.value}]),onWheelPassive:B[0]||(B[0]=zt(()=>{},["stop"]))},[(L(!0),Z(ke,null,Fn(E.items,(b,T)=>mt((L(),Z("li",{key:T,tabindex:"-1",class:be(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":T===E.modelValue}]),onClick:()=>h(T)},[U("div",{class:be(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":T>0}])},[$e(E.$slots,"item",{item:b},()=>[_t(it(b),1)])],2)],10,Ef)),[[K(Zt),30]])),128))],42,If)):Ne("",!0)]),_:3})):Ne("",!0),mt((L(),Z("button",{type:"button",tabindex:"-1",class:be(["w-full h-10 max-h-full bg-transparent rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":E.disabled}]),onClick:zt(u,["stop"]),onMouseenter:X,onMouseleave:A},[U("div",{class:be(["inline-flex items-center justify-center w-full h-full px-4 rounded-full",{"group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200":!!E.items.length,"cursor-default":!E.items.length}]),onClick:m},[U("span",Mf,it(E.label),1),E.items.length?(L(),Z("span",{key:0,class:be(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":i.value}]),"aria-hidden":"true"},[Y(q)],2)):Ne("",!0)],2)],42,Sf)),[[K(Zt),30]])],512)}}}),Lf=Object.freeze(Object.defineProperty({__proto__:null,default:or},Symbol.toStringTag,{value:"Module"})),Si=Oe({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ue(()=>Math.floor(n.modelValue)),r=ue(()=>n.pages.map(c=>c.map(({index:u})=>`${u+1}`).join("-"))),s=ue(()=>{const c=o.value,u=n.pages.findIndex(d=>d.some(({index:h})=>h===c));return u===-1?n.pages.length-1:u}),i=ue(()=>n.pages.length?`${r.value[s.value]}/${n.totalImgs}`:"--");function l(c){const u=n.pages[c][0].index;a(u)}function a(c){t("update:modelValue",c)}return(c,u)=>{const d=or;return L(),Ee(d,{"model-value":s.value,label:i.value,items:r.value,disabled:c.disabled,"onUpdate:modelValue":l},null,8,["model-value","label","items","disabled"])}}}),jf=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"})),Af={},zf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Bf=[U("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Df(e,t){return L(),Z("svg",zf,Bf)}const Mi=ye(Af,[["render",Df]]),Nf=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"})),Ff={},Rf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Hf=[U("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Vf(e,t){return L(),Z("svg",Rf,Hf)}const Li=ye(Ff,[["render",Vf]]),Wf=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"})),Kf={},Uf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},qf=[U("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function Yf(e,t){return L(),Z("svg",Uf,qf)}const ji=ye(Kf,[["render",Yf]]),Zf=Object.freeze(Object.defineProperty({__proto__:null,default:ji},Symbol.toStringTag,{value:"Module"})),Xf={},Jf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Qf=[U("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function Gf(e,t){return L(),Z("svg",Jf,Qf)}const Ai=ye(Xf,[["render",Gf]]),ed=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),zi=ye(Oe({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=ee(0);return he(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const s=qo,i=Yo;return n.value?(L(),Z("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(L(),Ee(s,{key:0})):(L(),Ee(i,{key:1}))])):Ne("",!0)}}}),[["styles",[`.animate-pause-fade{animation:pause-fade .4s linear forwards;transform-origin:center}@keyframes pause-fade{0%{opacity:0;transform:scale(.3)}10%{opacity:1;transform:scale(.35)}55%{opacity:1;transform:scale(.65)}to{opacity:0;transform:scale(1)}}
|
|
3
|
+
`]]]),td=Object.freeze(Object.defineProperty({__proto__:null,default:zi},Symbol.toStringTag,{value:"Module"})),nd={},od={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},rd=[U("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function sd(e,t){return L(),Z("svg",od,rd)}const Bi=ye(nd,[["render",sd]]),id=Object.freeze(Object.defineProperty({__proto__:null,default:Bi},Symbol.toStringTag,{value:"Module"})),Di=Oe({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=tr("tk:dir",!0),o=Bt(()=>n.value=!1,1250);return he(()=>t.direction,()=>{n.value=!0,o()}),tt(o),(r,s)=>{const i=Bi;return L(),Ee(Yt,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:oe(()=>[K(n)?(L(),Z("div",{key:0,class:be(["fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none w-28 h-24 p-4 bg-black bg-opacity-40 rounded-2xl duration-500",{"rotate-90":r.direction===K(kt).vertical,"rotate-180":r.direction===K(kt).rtl}])},[Y(i)],2)):Ne("",!0)]),_:1})}}}),ld=Object.freeze(Object.defineProperty({__proto__:null,default:Di},Symbol.toStringTag,{value:"Module"})),eo=[];function ad(e){eo.push(e),ft(()=>{const t=eo.indexOf(e);t!==-1&&eo.splice(t,1)})}function cd(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,s=t*o;eo.forEach(i=>i(r,s))}const Ni=Oe({__name:"ZoomWrapper",props:{modelValue:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},emits:["update:modelValue","click"],setup(e,{emit:t}){const n=e,o=ee(null),r=ee(Math.min(nr,Math.max(Gn,n.modelValue))),s=ee(!1),i=ee(!1),l=ee(!1),a=ee(!1),c=Bt(()=>a.value=!1,150);function u(){a.value||(a.value=!0),c()}he(()=>n.modelValue,x=>le(x)),tt(()=>{n.touchDevice?(gn(window,"touchstart",B),ad(Me)):(gn(o,"mousedown",V),he(()=>n.horizontal,x=>{x?window.addEventListener("wheel",H,{passive:!1}):window.removeEventListener("wheel",H)},{immediate:!0}))}),ft(()=>{window.removeEventListener("wheel",H)});let d;Xo({onKeyDown:x=>{var pe;if(n.busy)return;(pe=o.value)==null||pe.focus();const M=x.key==="Meta",te=x.key==="Control";M||te?(s.value=!0,window.addEventListener("wheel",m,{passive:!1}),d=()=>{s.value=!1,window.removeEventListener("wheel",m),window.removeEventListener("blur",d),d=void 0},window.addEventListener("blur",d)):(x.ctrlKey||x.metaKey)&&x.key==="0"&&le(1)},onKeyUp:()=>{s.value==!0&&(d==null||d())}});function h(x){l.value!==x&&(l.value=x,x?n.playController.pause():n.playController.resume())}function m(x){x.stopPropagation(),x.preventDefault();const M=Math.ceil((r.value+x.deltaY*-.01)*100)/100;le(M,{x:x.clientX,y:x.clientY})}let C={x:0,y:0},y={x:0,y:0};function V(x){x.button===0&&(C={x:x.clientX,y:x.clientY},y={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",N),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",N),setTimeout(()=>h(!1))},{once:!0}),x.preventDefault(),x.stopPropagation())}function N(x){h(!0);const M=x.clientX-C.x,te=x.clientY-C.y,pe=o.value;pe.scrollLeft=y.x-M,pe.scrollTop=y.y-te}let z=0,X=1,A,E=!1;function B(x){if(!n.busy){if(E=x.touches.length===2,E){h(!0),x.stopPropagation(),x.preventDefault();const M=o.value;z=ae(x),X=r.value,A={x:(x.touches[0].clientX+x.touches[1].clientX)/2,y:(x.touches[0].clientY+x.touches[1].clientY)/2,scrollLeft:M.scrollLeft,scrollTop:M.scrollTop,scrollWidth:M.scrollWidth,scrollHeight:M.scrollHeight}}(E||n.playController.isPlaying&&n.longStrip)&&(window.addEventListener("touchmove",b),window.addEventListener("touchend",q,{once:!0}))}}function q(){if(window.removeEventListener("touchmove",b),E){h(!1),E=!1;return}if(!l.value)return;const x=Bt(()=>{h(!1),o.value.removeEventListener("scroll",te)},100),M=setTimeout(x,100);o.value.addEventListener("scroll",te);function te(){clearTimeout(M),x()}}function b(x){if(h(!0),E){x.stopPropagation(),x.preventDefault();const te=ae(x)/z;le(Math.ceil(te*X*100)/100,A)}}const T=Bt(()=>i.value=!1,100);function H(x){n.busy||(i.value||(i.value=!0),T(),x.deltaY&&(!s.value&&o.value&&(o.value.scrollLeft+=x.deltaY*(n.rtl?-1:1)),x.preventDefault()))}function ae(x){return Math.hypot(x.touches[0].clientX-x.touches[1].clientX,x.touches[0].clientY-x.touches[1].clientY)}let S=0,se;function Ce(x){x.stopPropagation(),!l.value&&(S++,se&&clearTimeout(se),S===2&&Me(x.clientX,x.clientY),se=setTimeout(()=>{!l.value&&S===1&&t("click",x),se=void 0,S=0},300))}function Me(x,M){if(!S)return;S=0;const te=r.value===1?2:1;le(te,{x,y:M})}async function le(x,M){const te=o.value,pe=Math.min(nr,Math.max(Gn,x));if(!te||r.value===pe)return;const Je=(M==null?void 0:M.scrollLeft)??te.scrollLeft,Ae=(M==null?void 0:M.scrollTop)??te.scrollTop,Qt=(M==null?void 0:M.scrollHeight)??te.scrollHeight,$=(M==null?void 0:M.scrollWidth)??te.scrollWidth,J=(M==null?void 0:M.x)??te.clientWidth/2,me=n.rtl?te.clientWidth-J:J,Fe=(M==null?void 0:M.y)??te.clientHeight/2;u(),r.value=pe,t("update:modelValue",pe),await ct();const rt=te.scrollWidth/$,Qe=te.scrollHeight/Qt;te.scrollLeft=Je*rt+me*(rt-1)*(n.rtl?-1:1),te.scrollTop=Ae*Qe+Fe*(Qe-1)}return(x,M)=>(L(),Z("div",{ref_key:"root",ref:o,tabindex:"0",class:be(["w-full h-full overflow-auto scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":l.value||i.value,"cursor-grabbing":l.value,"overflow-hidden":a.value}]),style:We({"font-size":`${r.value}px`}),onClick:Ce},[$e(x.$slots,"default")],6))}}),ud=Object.freeze(Object.defineProperty({__proto__:null,default:Ni},Symbol.toStringTag,{value:"Module"})),fd=`.loading-indicator{display:inline-block;height:5rem;position:relative;width:5rem}.loading-indicator:after,.loading-indicator:before{animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite;border:4px solid #b85c38;border-radius:9999px;content:"";display:block;opacity:1;position:absolute}.loading-indicator:after{animation-delay:-.5s}@keyframes lds-ripple{0%{height:0;left:36px;opacity:0;top:36px;width:0}4.9%{height:0;left:36px;opacity:0;top:36px;width:0}5%{height:0;left:36px;opacity:1;top:36px;width:0}to{height:72px;left:0;opacity:0;top:0;width:72px}}
|
|
4
|
+
`,dd={},pd={class:"flex justify-center items-center w-full h-full"},hd=[U("div",{class:"loading-indicator"},null,-1)];function gd(e,t){return L(),Z("div",pd,hd)}const rr=ye(dd,[["render",gd],["styles",[fd]]]),md=Object.freeze(Object.defineProperty({__proto__:null,default:rr},Symbol.toStringTag,{value:"Module"})),vd=["data-index"],_d={key:0,class:"h-[75vh] w-[50vw] m-auto"},bd=["src"],yd=["src"],wd=["data-index"],Fi=ye(Oe({__name:"ReaderBody",props:{direction:{},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isRTL:{type:Boolean},pages:{},totalImgs:{},zoom:{},spaceTop:{},spaceBottom:{},touchDevice:{type:Boolean},playController:{},busy:{type:Boolean},idle:{type:Boolean}},emits:["update:zoom","update:playing","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=ee(null),r=ue(()=>{var u;return(u=o.value)==null?void 0:u.$el}),s=ee(null),i=of(r),l=ue(()=>{const{width:{value:u},height:{value:d}}=i;return n.pages.map(h=>{const m={indexes:h.map(N=>N.index)},C=h.map(({el:N})=>N).filter(Boolean);if(!C.length)return m;m.srcs=C.map(N=>N.src);const y=C.reduce((N,z)=>N+z.naturalWidth,0),V=C.reduce((N,z)=>N+z.naturalHeight,0)/C.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&u/y<d/V?(m.width=Math.min(u,y),m.height=V*m.width/y):m.height=Math.min(d,V),m})}),a=ue(()=>l.value.map(u=>(u==null?void 0:u.width)??(u==null?void 0:u.height)).filter(Boolean).sort((u,d)=>d-u)[0]);function c(u){if(!n.isLongStrip){const d=n.isVertical?i.height.value:i.width.value,m=(n.isVertical?u.clientY:n.isRTL?d-u.clientX:u.clientX)/d;if(m<=.2){t("prev");return}else if(m>=.8){t("next");return}}t("click")}return(u,d)=>{const h=rr,m=Ni;return L(),Ee(m,{"model-value":u.zoom,ref_key:"root",ref:o,class:be(["reader-body",{"reader-body--long-strip":u.isLongStrip,"reader-body--pages":!u.isLongStrip,"reader-body--vertical":u.isVertical,"reader-body--rtl":u.isRTL,"reader-body--idle":u.idle}]),"play-controller":u.playController,horizontal:!u.isVertical,rtl:u.isRTL,"touch-device":u.touchDevice,busy:u.busy,"long-strip":u.isLongStrip,style:We({"--space-top":(u.spaceTop||0)+"em",...u.isLongStrip?{"--max-size-em":a.value+"em"}:{"--screen-width-em":K(i).width.value+"em","--screen-height-em":K(i).height.value+"em"}}),"onUpdate:modelValue":d[0]||(d[0]=C=>t("update:zoom",C)),onClick:c},{default:oe(()=>[(L(!0),Z(ke,null,Fn(l.value,C=>(L(),Z("div",Fo({key:u.direction+"_"+C.indexes[0],"data-index":C.indexes[0]},C.indexes.length>1?{"data-second-index":C.indexes[1]}:{}),[C.srcs?C.srcs.length==1?(L(),Z("img",{key:1,src:C.srcs[0],style:We({width:C.width!==void 0?C.width+"em":"",height:C.height!==void 0?C.height+"em":""})},null,12,bd)):(L(),Z("div",{key:2,class:be(["flex justify-center items-center",{"flex-row-reverse":u.isRTL}]),style:We({width:C.width!==void 0?C.width+"em":"",height:C.height!==void 0?C.height+"em":""})},[(L(!0),Z(ke,null,Fn(C.srcs,y=>(L(),Z("div",{key:y,class:"h-full flex select-none"},[U("img",{src:y,class:"flex-shrink-0 max-w-full max-h-full object-contain"},null,8,yd)]))),128))],6)):(L(),Z("div",_d,[Y(h)]))],16,vd))),128)),U("div",{ref_key:"autoNextEl",ref:s,"data-index":u.totalImgs,style:We(u.isLongStrip?u.isVertical?{height:K(i).height.value+"em"}:{width:K(i).width.value+"em"}:{})},[$e(u.$slots,"end")],12,wd)]),_:3},8,["model-value","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style"])}}}),[["styles",[`.reader-body{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width:1024px){.reader-body{transform:none}}.reader-body--rtl{flex-direction:row-reverse}.reader-body:not(.reader-body--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.reader-body--long-strip.reader-body--vertical>div:first-child{margin-top:var(--space-top)}.reader-body--long-strip.reader-body--vertical>div{width:var(--max-size-em)}.reader-body--long-strip:not(.reader-body--vertical)>div{display:flex;flex-direction:column;height:var(--max-size-em);justify-content:center}.reader-body--long-strip>div>img{flex-shrink:0;margin:auto}.reader-body--pages:after,.reader-body--pages:before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.reader-body--pages.reader-body--idle:after,.reader-body--pages.reader-body--idle:before{cursor:none}.reader-body--pages>div{align-items:center;display:flex;height:var(--screen-height-em);justify-content:center;min-height:var(--screen-height-em);min-width:var(--screen-width-em);scroll-snap-align:center;width:var(--screen-width-em)}.reader-body--pages.reader-body--vertical{--tw-scroll-snap-strictness:mandatory;scroll-snap-type:y var(--tw-scroll-snap-strictness)}.reader-body--pages.reader-body--vertical:after,.reader-body--pages.reader-body--vertical:before{height:20vw;left:0;right:0}.reader-body--pages.reader-body--vertical:before{top:0}.reader-body--pages.reader-body--vertical:after{bottom:0}.reader-body--pages:not(.reader-body--vertical){--tw-scroll-snap-strictness:mandatory;scroll-snap-type:x var(--tw-scroll-snap-strictness)}.reader-body--pages:not(.reader-body--vertical):after,.reader-body--pages:not(.reader-body--vertical):before{bottom:0;top:0;width:20vw}.reader-body--pages:not(.reader-body--vertical):before{left:0}.reader-body--pages:not(.reader-body--vertical):after{right:0}.reader-body--pages>div>img{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.reader-body>div{flex-shrink:0;margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body img{--tw-bg-opacity:1!important;background-color:rgb(41 37 36/var(--tw-bg-opacity))!important;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}
|
|
5
|
+
`]]]),xd=Object.freeze(Object.defineProperty({__proto__:null,default:Fi},Symbol.toStringTag,{value:"Module"})),Cd={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},kd={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},Pd={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},Ri=ye(Oe({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=ee(null),o=ee(null),r=ee(!1),s=ee(!1),i=ee(3);return tt(()=>{let l;wi(o,a=>{s.value=a.some(c=>c.isIntersecting),i.value=5,l&&(clearInterval(l),l=void 0),s.value&&(l=setInterval(()=>{i.value-=1,i.value<=0&&(clearInterval(l),l=void 0,t("next"))},1e3))}),wi(n,a=>{r.value=a.some(c=>c.isIntersecting)}),ft(()=>l&&clearInterval(l))}),(l,a)=>(L(),Z("div",{ref_key:"root",ref:n,class:"h-full w-full flex justify-center items-center"},[mt(U("div",Cd,[l.hasNext?(L(),Z("div",kd,[s.value?(L(),Z("div",Pd)):Ne("",!0),mt((L(),Z("button",{ref_key:"nextButton",ref:o,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:a[0]||(a[0]=zt(()=>t("next"),["stop"]))},[_t(" Next in "+it(i.value),1)])),[[K(Zt)]])])):Ne("",!0),mt((L(),Z("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:a[1]||(a[1]=zt(()=>t("hide"),["stop"]))},[_t(" Hide ")])),[[K(Zt)]])],512),[[xc,r.value||!l.hasNext]])],512))}}),[["styles",[`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
|
|
6
|
+
`]]]),Td=Object.freeze(Object.defineProperty({__proto__:null,default:Ri},Symbol.toStringTag,{value:"Module"})),sr=3;function Od(e,t){const n=nn(Array.from({length:e.value.length})),o=[];let r=0;he([t,e],async([l,a],[c])=>{const u=Math.floor(l),d=Math.floor(c||-1),h=a.length-n.length;if(h>0){const m=Array.from({length:h});n.push(...m)}u!==d&&(r=Math.max(0,r-Math.abs(u-d)));for(let m=u;m<a.length;m++){if(r>sr)return;s(m)}for(let m=u-1;m>=0;m--){if(r>sr)return;s(m)}},{immediate:!0});async function s(l){l===void 0||!e.value[l]||r>sr||(o[l]||(o[l]=!0,r++,n[l]=await $d(e.value[l]),r=Math.max(0,r-1)),s(i()))}function i(){for(let l=Math.floor(t.value);l<e.value.length;l++)if(!o[l])return l;for(let l=Math.floor(t.value)-1;l>=0;l--)if(!o[l])return l}return n}function $d(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{n.naturalHeight&&n.naturalWidth&&(t(n),clearInterval(o))},20);n.onerror=()=>{t(n),clearInterval(o)},n.src=e})}function Id(e,t){return ue(()=>t.value?Hi(e):e.map((n,o)=>[{el:n,index:o}]))}function Hi(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(s=>s&&s.naturalWidth>s.naturalHeight)?[n[0]]:n;return[r.map((s,i)=>({el:s,index:t+i})),...Hi(e.slice(r.length),t+r.length)]}function Ed(e,t,n){return Ku(async()=>{if(n!==void 0)return n;const o=await Sd(e);return await new Promise(r=>{if(n!==void 0){r(n);return}const s=Math.max(o.length<4?0:o.length<6?1:2,t),i=Math.min(s+4,o.length<6?o.length-1:o.length),l=Math.max(0,i-4),a=o.slice(l,i);let c=!1;Promise.all(a.map(async u=>{const d=await Md(u);!c&&d&&(c=!0,r(!0))})).then(()=>{c||r(!1)})})},n??!1)}async function Sd(e){return e.value.length?e.value:await new Promise(t=>{const n=he(e,o=>{n(),o.length&&t(o)})})}function Md(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{n.naturalHeight&&n.naturalWidth&&(t(n.naturalHeight/n.naturalWidth>2.5),clearInterval(o))},20);n.onerror=()=>{t(!1),clearInterval(o)},n.src=e})}function Ld({initialPage:e,max:t}){const n=typeof e=="number"?Math.max(0,Math.min(e,t)):0,o=sessionStorage.getItem("tk:page:path");return o!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),o&&sessionStorage.removeItem("tk:page")),tr("tk:page",n,{writeDefaults:!1,mergeDefaults(r){return Math.max(0,Math.min(r,t))}})}function jd(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const ir=40;function Ad({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:s,spaceTop:i,scrollEl:l,interferePlayer:a,onChangedPage:c}){let u=!1,d=!1,h;const m=Bt(V,150),C=zd(N,300);tt(()=>{let b=null;ea(async()=>{l.value&&l.value!==b&&(b=l.value,m(e.value),l.value.addEventListener("scroll",C))});let T=window.innerWidth;yi(l,()=>{const H=window.innerWidth;T!=H&&(T=H,y())}),he(n,y),he(t,y)});async function y(){u=!0,d=!1,await ct(),V(e.value)}function V(b){if(!l.value)return;u=!0;const T=async()=>{await ct(),u=!1,d=!0},H=z(Math.floor(b));if(!H){T();return}if(o.value){const ae=o.value?b%1*(r.value?H.offsetHeight:H.offsetWidth)||1:0,S=X(H)+ae;a(()=>{A(S),T()})}else{const ae=d;a(()=>{H.scrollIntoView(ae?{behavior:"smooth",block:"start",inline:"start"}:void 0),T()})}}async function N(){if(!l.value||u||!d)return;const b=B();if(!b)return;const T=+b.getAttribute("data-index")||0,H=b.getBoundingClientRect(),ae=o.value?Math.floor((T+q(H))*100)/100:T;ae!==e.value&&c(ae)}function z(b){var T;return(T=l.value)==null?void 0:T.querySelector(`[data-index="${b}"],[data-second-index="${b}"]`)}function X(b){return r.value?b.offsetTop:s.value?l.value.clientWidth-b.offsetLeft-b.offsetWidth:b.offsetLeft}function A(b){if(E()!==b)return r.value?l.value.scrollTop=b-(o.value?i.value??0:0):s.value?l.value.scrollLeft=-b:l.value.scrollLeft=b,b}function E(){return r.value?l.value.scrollTop:s.value?-l.value.scrollLeft:l.value.scrollLeft}function B(){h??(h=l.value.getRootNode());const b=h.elementsFromPoint(r.value||!o.value?window.innerWidth/2:s.value?window.innerWidth-ir:ir,r.value&&o.value?i.value||ir:window.innerHeight/2);for(let T=0;T<b.length;T++){const H=b[T];if(H.hasAttribute("data-index"))return H;if(H===l.value)break}}function q(b){return r.value?Math.abs(b.top-(i.value||0))/b.height:s.value?Math.max(0,b.right-l.value.clientWidth)/b.width:Math.abs(b.left)/b.width}return{goToPage:V}}function zd(e,t){let n;return()=>{n||(n=setTimeout(()=>{n=void 0,e()},t))}}function Bd({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:s,speed:i,onLongIdle:l}){const a=tr("tk:isPlaying",e,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults:(T,H)=>T===void 0?H:T===!0||T==="true"}),c=ee(!1);let u,d;const h=Bt(q,100);let m;const C=Bt(()=>{c.value=!0,clearTimeout(m),m=a.value?void 0:setTimeout(l,15e3)},t?2e3:1e3),y=()=>setTimeout(()=>{c.value=!1,C(),m&&(clearTimeout(m),m=void 0)},30);y(),t||gn(window,"mousemove",y);const V=Gu();tt(()=>{he(V,T=>{a.value&&(T==="visible"?q():d==null||d())}),he(i,()=>N()),he(s,T=>{T||X()})}),ft(()=>{clearTimeout(m),m=void 0});async function N(T){a.value&&(d==null||d()),T&&(await ct(),await T()),a.value&&h()}function z(){a.value?X():A()}function X(){a.value&&(a.value=!1,d==null||d(),y())}function A(){!a.value&&s.value&&(a.value=!0,q(),y())}function E(){d==null||d()}function B(T){switch(T.key){case" ":T.preventDefault(),z();break;case"PageUp":case"PageDown":case(o.value?"ArrowUp":"ArrowLeft"):case(o.value?"ArrowDown":"ArrowRight"):N(()=>new Promise(H=>setTimeout(H,100)));break}}function q(){const T=n.value;if(!a.value||!T)return;const H=o.value?T.scrollHeight-T.clientHeight:T.scrollWidth-T.clientWidth,ae=b();if(H<=ae){X();return}d=()=>{u=Date.now(),d=void 0};const S=Date.now();u=S;const se=.05*i.value,Ce=o.value?"scrollTop":"scrollLeft";let Me=Date.now(),le=0;const x=()=>{if(u!==S)return;const M=Date.now(),te=M-Me;Me=M;const pe=se*te+le;pe>=1?(le=pe%1,T[Ce]+=(pe-le)*(r.value?-1:1)):le=pe,setTimeout(x,1)};x()}function b(){const T=n.value;return o.value?T.scrollTop:r.value?-T.scrollLeft:T.scrollLeft}return{isPlaying:a,isIdle:c,toggle:z,play:A,pause:E,resume:q,stop:X,interfere:N,onKey:B,awake:y}}function Dd(e){var d,h,m,C;let t=-1;const{vol:n,chap:o,title:r,slug:s,basePath:i}=e,l=r.chapters??[],a=(l==null?void 0:l.length)>1?l:[];a.length&&(t=a.findIndex(y=>y.slug===e.slug),t===-1&&(t=a.findIndex(y=>y.vol===n&&y.chap===o)),t===-1&&(t=a.findIndex(y=>s.startsWith(`${y.slug}-`)&&s.length-y.slug.length>3)));const c=((d=e.prev)==null?void 0:d.slug)??((h=a[t+1])==null?void 0:h.slug),u=((m=e.next)==null?void 0:m.slug)??((C=a[t-1])==null?void 0:C.slug);return{activeIndex:t,activeLabel:Vi({vol:n,chap:o}),chapters:a.map(y=>({label:Vi(y),path:lr(i,y.slug)})),prevPath:lr(i,c),nextPath:lr(i,u)}}function lr(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function Vi({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const Nd={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},Fd=Oe({...{inheritAttrs:!1},__name:"TrackkunReader",props:{raw:{},imgs:{},isWebtoon:{type:Boolean},page:{},spaceTop:{},spaceBottom:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},isGuest:{type:Boolean}},emits:["pageChanged","fullScreenChanged","playingChanged","dispose","openEntry","addEntry","longIdle"],setup(e,{emit:t}){const n=e,o=Jc({touchDevice:n.touchDevice}),r=ue(()=>Array.isArray(n.imgs)?n.imgs.filter($=>typeof $=="string"):[]),s=Ld({initialPage:n.page,max:r.value.length-1}),i=Ed(r,Math.ceil(s.value),n.isWebtoon),{direction:l,style:a,isRTL:c,isDouble:u,isVertical:d,isLongStrip:h,speed:m,zoom:C}=df({titleName:n.raw.title.name,asyncIsWebtoon:i}),y=Od(r,s),V=Id(y,u),N=ue(()=>s.value>=r.value.length),z=ue(()=>Dd(n.raw)),X=ue(()=>{var $,J;return c.value?($=z.value)==null?void 0:$.nextPath:(J=z.value)==null?void 0:J.prevPath}),A=ue(()=>{var $,J;return c.value?($=z.value)==null?void 0:$.prevPath:(J=z.value)==null?void 0:J.nextPath}),E=ee(null),B=Bd({autoPlay:n.autoPlay,touchDevice:n.touchDevice,scrollEl:ue(()=>{var $;return($=E.value)==null?void 0:$.$el}),speed:m,isRTL:c,isVertical:d,isLongStrip:h,onLongIdle:()=>t("longIdle")});he(B.isPlaying,$=>{$||pe(!1),t("playingChanged",$)}),he(B.isIdle,$=>{B.isPlaying.value&&pe($)}),he(o,$=>{!$&&B.isIdle.value?B.awake():$&&n.fullScreen&&pe()});const q=ue(()=>!n.touchDevice&&B.isIdle.value&&!o.value),b=ue({get(){return C.value},set($){B.interfere(()=>{C.value=$})}});lu().addListener({onKeyDown:$=>{if(B.onKey($),!d.value)return;const J=$.key==="ArrowLeft",me=$.key==="ArrowRight";J?se():me&&S()}});const H=Ad({page:s,style:a,direction:l,isLongStrip:h,isVertical:d,isRTL:c,spaceTop:ue(()=>n.spaceTop),scrollEl:ue(()=>{var $;return($=E.value)==null?void 0:$.$el}),interferePlayer:$=>B.interfere($),onChangedPage($){if($<0||$>=r.value.length+1)return;s.value=$,t("pageChanged",$),$>=r.value.length&&(pe(!1),B.stop())}});function ae(){if(B.isPlaying.value){!n.fullScreen||!n.touchDevice?B.stop():B.awake();return}pe()}function S(){var $;Me(($=z.value)==null?void 0:$.nextPath)}function se(){var $;Me(($=z.value)==null?void 0:$.prevPath)}function Ce($){var me,Fe,rt;const J=(rt=(Fe=(me=z.value)==null?void 0:me.chapters)==null?void 0:Fe[$])==null?void 0:rt.path;J&&Me(J)}function Me($){$&&(location.href=$.includes("://")?$:location.origin+$)}function le(){var me;const $=V.value,J=N.value?$[$.length-1][0].index:(me=$[M()-1])==null?void 0:me[0].index;J!==void 0?H.goToPage(J):se()}function x(){var J;const $=N.value?Math.floor(s.value)+1:((J=V.value[M()+1])==null?void 0:J[0].index)??r.value.length;H.goToPage($)}function M(){const $=Math.floor(s.value),J=V.value.findIndex(me=>me.some(({index:Fe})=>Fe===$));return J===-1?V.value.length-1:J}function te(){jd(),B.stop(),t("dispose")}async function pe($){o.value&&!n.fullScreen||t("fullScreenChanged",typeof $=="boolean"?$:!n.fullScreen)}function Je(){n.entryId?Qt():Ae()}function Ae(){B.stop(),t("addEntry")}function Qt(){B.stop(),t("openEntry",n.entryId)}return($,J)=>{const me=rr,Fe=Ri,rt=Fi,Qe=Di,vn=zi,_n=Ai,f=Zn,p=ji,g=or,_=Li,v=Mi,P=Si,I=Ii,k=$i,O=Oi,w=Yo,F=qo,j=ei,R=Qs;return L(),Ee(R,{"full-screen":!!$.fullScreen,idle:q.value,"space-top":n.spaceTop,"space-bottom":n.spaceBottom,"touch-device":$.touchDevice,rtl:K(c)},ls({back:oe(()=>[Y(f,{href:$.raw.title.url,title:$.raw.title.name},{default:oe(()=>[Y(_n)]),_:1},8,["href","title"])]),exit:oe(()=>[Y(f,{title:"Hide reader",onClick:te},{default:oe(()=>[Y(p)]),_:1})]),"chapter-nav":oe(()=>[Y(g,{modelValue:z.value.activeIndex,label:z.value.activeLabel,items:z.value.chapters,"onUpdate:modelValue":Ce},{item:oe(({item:D})=>[_t(it(D.label),1)]),_:1},8,["modelValue","label","items"]),X.value||A.value?(L(),Z("div",Nd,[Y(f,{title:K(c)?"Next":"Previous",href:X.value,disabled:!X.value,class:"!rounded-r-none"},{default:oe(()=>[Y(_)]),_:1},8,["title","href","disabled"]),Y(f,{title:K(c)?"Previous":"Next",href:A.value,disabled:!A.value,class:"!rounded-l-none"},{default:oe(()=>[Y(v)]),_:1},8,["title","href","disabled"])])):Ne("",!0)]),entry:oe(()=>[Y(f,{title:$.entryId?"View entry":"Add to Trackkun",onClick:Je},{default:oe(()=>[$.entryId?(L(),Ee(I,{key:0})):(L(),Ee(k,{key:1}))]),_:1},8,["title"])]),settings:oe(()=>[Y(O,{"reader-style":K(a),"onUpdate:readerStyle":J[2]||(J[2]=D=>xe(a)?a.value=D:null),direction:K(l),"onUpdate:direction":J[3]||(J[3]=D=>xe(l)?l.value=D:null),speed:K(m),"onUpdate:speed":J[4]||(J[4]=D=>xe(m)?m.value=D:null),zoom:b.value,"onUpdate:zoom":J[5]||(J[5]=D=>b.value=D),webtoon:K(i).state.value,disabled:K(i).isLoading.value},null,8,["reader-style","direction","speed","zoom","webtoon","disabled"])]),play:oe(()=>[Y(f,{title:K(B).isPlaying.value?"Pause":"Play",disabled:K(i).isLoading.value||!K(h),onClick:J[6]||(J[6]=()=>K(B).toggle())},{default:oe(()=>[K(B).isPlaying.value?(L(),Ee(w,{key:0})):(L(),Ee(F,{key:1}))]),_:1},8,["title","disabled"])]),"reset-zoom":oe(()=>[Y(Yt,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:oe(()=>[Y(j,{zoom:b.value,onClick:J[7]||(J[7]=zt(()=>b.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:oe(()=>[U("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:We({width:`${K(s)/(r.value.length-1)*100}%`})},null,4)]),default:oe(()=>[K(i).isLoading.value||!r.value.length?(L(),Ee(me,{key:0})):(L(),Z(ke,{key:1},[Y(rt,{ref_key:"body",ref:E,zoom:b.value,"onUpdate:zoom":J[0]||(J[0]=D=>b.value=D),pages:K(V),"total-imgs":r.value.length,direction:K(l),"is-long-strip":K(h),isRTL:K(c),"is-vertical":K(d),"space-top":$.spaceTop,"space-bottom":n.spaceBottom,"touch-device":$.touchDevice,busy:K(o),idle:q.value,"play-controller":K(B),onPrev:le,onNext:x,onClick:ae,onWheelPassive:J[1]||(J[1]=()=>K(B).interfere())},ls({_:2},[!K(i).isLoading.value&&r.value.length?{name:"end",fn:oe(()=>[Y(Fe,{"has-next":!!z.value.nextPath,onNext:S,onHide:te},null,8,["has-next"])]),key:"0"}:void 0]),1032,["zoom","pages","total-imgs","direction","is-long-strip","isRTL","is-vertical","space-top","space-bottom","touch-device","busy","idle","play-controller"]),Y(Qe,{direction:K(l)},null,8,["direction"]),N.value?Ne("",!0):(L(),Ee(vn,{key:0,playing:!!K(B).isPlaying.value},null,8,["playing"]))],64))]),_:2},[K(V).length?{name:"page-nav",fn:oe(()=>[Y(P,{"model-value":K(s),disabled:K(i).isLoading.value,pages:K(V),"total-imgs":r.value.length,"onUpdate:modelValue":K(H).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"0"}:void 0]),1032,["full-screen","idle","space-top","space-bottom","touch-device","rtl"])}}}),Wi=ye(Fd,[["styles",[`/*! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:Helvetica,sans-serif;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.inset-2{bottom:.5rem;left:.5rem;right:.5rem;top:.5rem}.left-0{left:0}.top-0{top:0}.bottom-0{bottom:0}.left-3{left:.75rem}.bottom-full{bottom:100%}.top-full{top:100%}.left-1\\/2{left:50%}.right-0{right:0}.top-1\\/2{top:50%}.top-1{top:.25rem}.z-50{z-index:50}.z-10{z-index:10}.z-\\[9999999999\\]{z-index:9999999999}.-z-10{z-index:-10}.z-30{z-index:30}.z-20{z-index:20}.m-auto{margin:auto}.-mx-12{margin-left:-3rem;margin-right:-3rem}.-my-12{margin-bottom:-3rem;margin-top:-3rem}.ml-auto{margin-left:auto}.-ml-20{margin-left:-5rem}.ml-1{margin-left:.25rem}.-mr-3{margin-right:-.75rem}.mb-8{margin-bottom:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-0\\.5{height:.125rem}.h-0{height:0}.h-full{height:100%}.h-12{height:3rem}.h-\\[24rem\\]{height:24rem}.h-16{height:4rem}.h-10{height:2.5rem}.h-4{height:1rem}.h-9{height:2.25rem}.h-24{height:6rem}.h-1\\.5{height:.375rem}.h-1{height:.25rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-6{height:1.5rem}.h-20{height:5rem}.h-\\[75vh\\]{height:75vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[75vh\\]{max-height:75vh}.max-h-full{max-height:100%}.w-full{width:100%}.w-28{width:7rem}.w-40{width:10rem}.w-4{width:1rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-20{width:5rem}.w-24{width:6rem}.w-\\[50vw\\]{width:50vw}.w-1\\/3{width:33.333333%}.w-\\[4\\.5rem\\]{width:4.5rem}.max-w-full{max-width:100%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-right{transform-origin:right}.origin-bottom{transform-origin:bottom}.origin-top{transform-origin:top}.translate-y-full{--tw-translate-y:100%}.-translate-y-1\\.5,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\.5{--tw-translate-y:-.375rem}.-translate-y-1{--tw-translate-y:-.25rem}.-translate-y-1,.translate-y-1\\.5{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\\.5{--tw-translate-y:.375rem}.translate-y-1{--tw-translate-y:.25rem}.-translate-x-1\\/2,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.cursor-none{cursor:none}.cursor-auto{cursor:auto}.cursor-grabbing{cursor:grabbing}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.\\!snap-none{scroll-snap-type:none!important}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-\\[1px\\]{gap:1px}.gap-6{gap:1.5rem}.gap-1{gap:.25rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-2xl{border-radius:1rem}.rounded-sm{border-radius:.125rem}.rounded-\\[2\\.5rem\\]{border-radius:2.5rem}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-t-sm{border-top-left-radius:.125rem;border-top-right-radius:.125rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border-2{border-width:2px}.border{border-width:1px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:.5}.bg-opacity-75{--tw-bg-opacity:.75}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-40{--tw-bg-opacity:.4}.bg-opacity-90{--tw-bg-opacity:.9}.object-contain{-o-object-fit:contain;object-fit:contain}.p-6{padding:1.5rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-1{padding:.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.pt-3{padding-top:.75rem}.pb-12{padding-bottom:3rem}.pl-1{padding-left:.25rem}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:1rem;line-height:1.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.duration-150{transition-duration:.15s}.duration-100{transition-duration:.1s}.ease-linear{transition-timing-function:linear}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:.25rem;width:.25rem}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:640px){.sm\\:inset-3{bottom:.75rem;left:.75rem;right:.75rem;top:.75rem}.sm\\:w-\\[32rem\\]{width:32rem}}@media (min-width:768px){.md\\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width:1024px){.lg\\:px-10{padding-left:2.5rem;padding-right:2.5rem}}@media (min-width:1280px){.xl\\:px-12{padding-left:3rem;padding-right:3rem}}
|
|
7
|
+
`]]]),Rd=Object.freeze(Object.defineProperty({__proto__:null,default:Wi},Symbol.toStringTag,{value:"Module"})),Hd={},Vd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Wd=[U("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46s46-20.595 46-46s-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];function Kd(e,t){return L(),Z("svg",Vd,Wd)}const Ud=Object.freeze(Object.defineProperty({__proto__:null,default:ye(Hd,[["render",Kd]])},Symbol.toStringTag,{value:"Module"})),qd={text:Yd,attr:Zd,"attr-contain":Xd,value:Qd,row:Gd};function ar(e,t={}){if(!e)return;const{root:n=document.documentElement,returnAll:o,preProcess:r}=t,s=Jd(e);if(s.length>1){for(let d=0;d<s.length;d+=1){const h=ar(s[d],t);if(h!=null&&h.length)return h}return}const[i,l]=e.split("|");if(!l)return;const a=(l!=null&&l.startsWith("[")&&l.endsWith("]")?l.substring(1,l.length-1).split(","):[l]).map(d=>{const h=d.indexOf(":"),m=h!==-1;return{action:m?d.substring(0,h):d,param:m?d.substring(h+1):""}}),c=i?Array.from(n.querySelectorAll(i)):[n];if(!c.length)return o?[]:void 0;r&&r(c);const u=[];for(const d of c)for(const h of a){const m=qd[h.action],C=m(d,h.param);if(C){if(o){u.push(C);break}return C}}return o?u:void 0}function Yd(e){return Array.from(e.childNodes).filter(n=>n.nodeType===3).map(n=>Jt(n.textContent)).filter(Boolean).join(" ").trim()||Jt(e.textContent)}function Zd(e,t){return Jt(e.getAttribute(t))}function Xd(e,t){let n=e.getAttribute(t);if(!n){const o=e.getAttributeNames().find(r=>r.includes(t));o&&(n=e.getAttribute(o))}return Jt(n)}function Jd(e){const t=[],n=e.split("||").map(o=>o.trim()).filter(Boolean);return n.forEach((o,r)=>{if(o.includes("|")){t.push(o);return}const s=n[r+1];s&&(n[r+1]=`${o},${s}`)}),t}function Qd(e){return e.value}function Gd(e,t){var r,s,i;if(!t)return;const n=(r=Jt(e.textContent))==null?void 0:r.toLowerCase(),o=t.toLowerCase();if(!(n!==o&&n!==`${o}:`))return Jt(((s=e.nextElementSibling)==null?void 0:s.textContent)??((i=e.nextSibling)==null?void 0:i.textContent))}function Jt(e){if(e)return(e==null?void 0:e.replace(/(\n|\t)/g," ").trim())||void 0}const ep=`html.gear-second{background:#000;font-size:16px!important}html.gear-second,html.gear-second body{overflow:hidden!important}html.gear-second body{touch-action:pan-x pan-y!important}html.gear-second body>footer,html.gear-second body>header,html.gear-second body>nav{display:none!important;visibility:hidden!important}html.gear-second body #radio_content.cerrado,html.gear-second body .pf-br-icon{--tw-translate-x:-100%!important;display:none!important;height:0!important;max-height:0!important;max-width:0!important;opacity:0!important;pointer-events:none!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important;visibility:hidden!important;width:0!important;z-index:-10!important}html.gear-second body gear-second{bottom:0!important;display:block!important;left:0!important;position:fixed!important;right:0!important;top:0!important;visibility:visible!important;z-index:99999}html.gear-second:not(.gear-second--adblock) body>:not(gear-second){margin-top:var(--tk-safe-top)!important}html.gear-second--adblock,html.gear-second--adblock body,html.gear-second--adblock body :not(gear-second){visibility:hidden!important}html.gear-second--adblock body :not(gear-second){display:none!important;pointer-events:none!important}
|
|
8
|
+
`,mn="gear-second",Ki="gear-second--adblock",cr={raw:{},spec:void 0,imgs:[],isWebtoon:void 0,page:0,spaceTop:void 0,spaceBottom:void 0,fullScreen:void 0,touchDevice:void 0,entryId:void 0,autoPlay:void 0,adBlock:void 0,textScaleFactor:void 0,isGuest:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPlayingChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onLongIdle:void 0,onFinished:void 0},ge={el:void 0,controller:void 0,data:nn({...cr})};async function tp(e){var r,s;if(ge.controller)return ge.data.raw=e.raw,ge.controller;const t=()=>{var i;ge.el&&(document.body.removeChild(ge.el),ge.el=void 0),document.documentElement.classList.remove(mn),document.documentElement.classList.remove(Ki),rp(ge.data),Object.assign(ge.data,cr),ge.controller=void 0,(i=e==null?void 0:e.onDispose)==null||i.call(e)};ge.controller={triggerDoubleTap:(i,l)=>cd(i,l),updateArgs(i){Object.assign(ge.data,i),ur()},dispose:t};let n=e.raw.isWebtoon;const o=(r=e.raw.imgs)!=null&&r.length?e.raw.imgs:ar(e.raw.imgsLocator??((s=e.spec)==null?void 0:s.imgs),{returnAll:!0,preProcess:n!==void 0?void 0:i=>n=n||ip(i)})??[];return document.documentElement.classList.add(mn),e.adBlock&&document.documentElement.classList.add(Ki),await np(),Object.assign(ge.data,cr,e,{isWebtoon:n,imgs:o,page:sp({page:e.page??0,imgs:o}),onDispose:t}),ur(),Ui(e.raw.slug),ge.el||(ge.el=document.createElement(mn),document.body.appendChild(ge.el)),ge.controller}async function np(){if(window.customElements.get(mn))return;const e=document.createElement("style");e.appendChild(document.createTextNode(ep)),document.head.appendChild(e);const t=uc({styles:[await op()],data:()=>({readerData:ge.data,isFinished:!1}),render(){return js(Wi,{...this.readerData,onFullScreenChanged:n=>{var o,r;this.readerData.fullScreen=n,(r=(o=this.readerData).onFullScreenChanged)==null||r.call(o,n),ur()},onPageChanged:n=>{var o,r,s,i;this.readerData.page=n,(r=(o=this.readerData).onPageChanged)==null||r.call(o,n),!this.isFinished&&n>=this.readerData.imgs.length-2&&(this.isFinished=!0,(i=(s=this.readerData).onFinished)==null||i.call(s))}})}});window.customElements.define(mn,t)}async function op(){const e=Object.assign({"./TrackkunReader.vue":Rd,"./components/AutoNext.vue":Td,"./components/BottomSheet.vue":du,"./components/ButtonDropdown.vue":Lf,"./components/ButtonIcon.vue":eu,"./components/ButtonReaderSettings.vue":pf,"./components/ButtonResetZoom.vue":Fc,"./components/DirectionToast.vue":ld,"./components/InputPercentage.vue":gu,"./components/InputSelect.vue":yu,"./components/LoadingIndicator.vue":md,"./components/PageNav.vue":jf,"./components/PauseToast.vue":td,"./components/ReaderBody.vue":xd,"./components/ReaderLayout.vue":Sc,"./components/TableField.vue":_u,"./components/ZoomWrapper.vue":ud,"./components/icons/IconBack.vue":ed,"./components/icons/IconBookmarkNew.vue":_f,"./components/icons/IconBookmarked.vue":Cf,"./components/icons/IconChevronLeft.vue":Wf,"./components/icons/IconChevronRight.vue":Nf,"./components/icons/IconClose.vue":su,"./components/icons/IconExclamationCircle.vue":Ud,"./components/icons/IconNext.vue":id,"./components/icons/IconPause.vue":Xc,"./components/icons/IconPlay.vue":Kc,"./components/icons/IconReaderExit.vue":Zf,"./components/icons/IconSettings.vue":Pu,"./components/icons/IconTriangle.vue":$f,"./components/icons/IconZoom.vue":zc}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}function ur(){if(ge.data.adBlock)return;const{spaceTop:e,fullScreen:t}=ge.data,n=document.querySelector(":root");n==null||n.style.setProperty("--tk-safe-top",`${t?0:(e||0)+56}px`)}function rp({page:e,imgs:t}){if(e<1||!t)return;if(e>=t.length){document.documentElement.scrollTop=document.documentElement.scrollHeight;return}const n=t[Math.floor(e)],o=n?document.querySelector(`[src="${n}"],[data-src="${n}"]`):void 0;o&&setTimeout(()=>{o.scrollIntoView(),setTimeout(()=>{window.scrollTo({top:document.documentElement.scrollTop+e%1*o.getBoundingClientRect().height})})})}function sp({page:e,imgs:t}){if(!t.length||document.documentElement.scrollTop<700)return e;for(let n=0;n<t.length;n++){const o=t[n],r=document.querySelector(`[src="${o}"],[data-src="${o}"]`);if(!r)continue;const s=r.getBoundingClientRect();if(s.bottom>0){const i=s.top;return n+(i>=0?0:Math.floor(-i/s.height*100)/100)}}return e}async function Ui(e,t=0){var s;const n=ge.data.raw.imgsLocator??((s=ge.data.spec)==null?void 0:s.imgs);if(!n||t>=7||(await new Promise(i=>setTimeout(i,1e3)),ge.data.raw.slug!==e))return;const o=ar(n,{returnAll:!0});if(!(o!=null&&o.length))return;const r=o.length>ge.data.imgs.length;r&&(ge.data.imgs=o),Ui(e,r?0:t+1)}function ip(e){const t=e.map(n=>+(n.getAttribute("height")||0)/+(n.getAttribute("width")||1));if(t.some(n=>n>2.5))return!0;if(t.filter(Boolean).length>Math.max(1,t.length-2))return!1}return tp});
|