gear-second 1.18.0 → 1.19.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 +16 -16
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(Ke,ce){typeof exports=="object"&&typeof module<"u"?module.exports=ce():typeof define=="function"&&define.amd?define(ce):(Ke=typeof globalThis<"u"?globalThis:Ke||self,Ke._gearSecond_=ce())})(this,function(){"use strict";var Xp=Object.defineProperty;var Zp=(Ke,ce,Qe)=>ce in Ke?Xp(Ke,ce,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Ke[ce]=Qe;var ve=(Ke,ce,Qe)=>(Zp(Ke,typeof ce!="symbol"?ce+"":ce,Qe),Qe);/**
|
|
2
2
|
* @vue/shared v3.4.15
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
|
-
**/function
|
|
5
|
+
**/function Ke(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const ce={},Qe=[],qe=()=>{},kl=()=>!1,zn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),bo=e=>e.startsWith("onUpdate:"),Se=Object.assign,yo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Cl=Object.prototype.hasOwnProperty,fe=(e,t)=>Cl.call(e,t),ee=Array.isArray,Zt=e=>An(e)==="[object Map]",Ii=e=>An(e)==="[object Set]",se=e=>typeof e=="function",ke=e=>typeof e=="string",Gt=e=>typeof e=="symbol",be=e=>e!==null&&typeof e=="object",Ei=e=>(be(e)||se(e))&&se(e.then)&&se(e.catch),Ti=Object.prototype.toString,An=e=>Ti.call(e),Il=e=>An(e).slice(8,-1),$i=e=>An(e)==="[object Object]",_o=e=>ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Dn=Ke(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),jn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},El=/-(\w)/g,De=jn(e=>e.replace(El,(t,n)=>n?n.toUpperCase():"")),Tl=/\B([A-Z])/g,Ue=jn(e=>e.replace(Tl,"-$1").toLowerCase()),Bn=jn(e=>e.charAt(0).toUpperCase()+e.slice(1)),wo=jn(e=>e?`on${Bn(e)}`:""),rt=(e,t)=>!Object.is(e,t),Rn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Nn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},xo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},So=e=>{const t=ke(e)?Number(e):NaN;return isNaN(t)?e:t};let Mi;const Oi=()=>Mi||(Mi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Le(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],i=ke(o)?Pl(o):Le(o);if(i)for(const r in i)t[r]=i[r]}return t}else if(ke(e)||be(e))return e}const $l=/;(?![^(]*\))/g,Ml=/:([^]+)/,Ol=/\/\*[^]*?\*\//g;function Pl(e){const t={};return e.replace(Ol,"").split($l).forEach(n=>{if(n){const o=n.split(Ml);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Te(e){let t="";if(ke(e))t=e;else if(ee(e))for(let n=0;n<e.length;n++){const o=Te(e[n]);o&&(t+=o+" ")}else if(be(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Ll=Ke("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Pi(e){return!!e||e===""}const Ye=e=>ke(e)?e:e==null?"":ee(e)||be(e)&&(e.toString===Ti||!se(e.toString))?JSON.stringify(e,Li,2):String(e),Li=(e,t)=>t&&t.__v_isRef?Li(e,t.value):Zt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,i],r)=>(n[ko(o,r)+" =>"]=i,n),{})}:Ii(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ko(n))}:Gt(t)?ko(t):be(t)&&!ee(t)&&!$i(t)?String(t):t,ko=(e,t="")=>{var n;return Gt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
6
|
* @vue/reactivity v3.4.15
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
8
|
* @license MIT
|
|
9
|
-
**/let Ke;class zl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ke,!t&&Ke&&(this.index=(Ke.scopes||(Ke.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ke;try{return Ke=this,t()}finally{Ke=n}}}on(){Ke=this}off(){Ke=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 i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function Al(e,t=Ke){t&&t.active&&t.effects.push(e)}function Li(){return Ke}function jl(e){Ke&&Ke.cleanups.push(e)}let jt;class Co{constructor(t,n,o,i){this.fn=t,this.trigger=n,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Al(this,i)}get dirty(){if(this._dirtyLevel===1){yt();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Dl(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),_t()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=bt,n=jt;try{return bt=!0,jt=this,this._runnings++,zi(this),this.fn()}finally{Ai(this),this._runnings--,jt=n,bt=t}}stop(){var t;this.active&&(zi(this),Ai(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Dl(e){return e.value}function zi(e){e._trackId++,e._depsLength=0}function Ai(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)ji(e.deps[t],e);e.deps.length=e._depsLength}}function ji(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let bt=!0,Io=0;const Di=[];function yt(){Di.push(bt),bt=!1}function _t(){const e=Di.pop();bt=e===void 0?!0:e}function Eo(){Io++}function To(){for(Io--;!Io&&$o.length;)$o.shift()()}function Bi(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&ji(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const $o=[];function Ri(e,t,n){Eo();for(const o of e.keys())if(o._dirtyLevel<t&&e.get(o)===o._trackId){const i=o._dirtyLevel;o._dirtyLevel=t,i===0&&(o._shouldSchedule=!0,o.trigger())}Ni(e),To()}function Ni(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,$o.push(t.scheduler))}const Fi=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Mo=new WeakMap,Dt=Symbol(""),Po=Symbol("");function je(e,t,n){if(bt&&jt){let o=Mo.get(e);o||Mo.set(e,o=new Map);let i=o.get(n);i||o.set(n,i=Fi(()=>o.delete(n))),Bi(jt,i)}}function dt(e,t,n,o,i,r){const s=Mo.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&te(e)){const a=Number(o);s.forEach((c,u)=>{(u==="length"||!Gt(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":te(e)?_o(n)&&l.push(s.get("length")):(l.push(s.get(Dt)),Zt(e)&&l.push(s.get(Po)));break;case"delete":te(e)||(l.push(s.get(Dt)),Zt(e)&&l.push(s.get(Po)));break;case"set":Zt(e)&&l.push(s.get(Dt));break}Eo();for(const a of l)a&&Ri(a,2);To()}const Bl=Fe("__proto__,__v_isRef,__isVue"),Hi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Gt)),Vi=Rl();function Rl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ue(this);for(let r=0,s=this.length;r<s;r++)je(o,"get",r+"");const i=o[t](...n);return i===-1||i===!1?o[t](...n.map(ue)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){yt(),Eo();const o=ue(this)[t].apply(this,n);return To(),_t(),o}}),e}function Nl(e){const t=ue(this);return je(t,"has",e),t.hasOwnProperty(e)}class Wi{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,o){const i=this._isReadonly,r=this._shallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return o===(i?r?Jl:Qi:r?Gi:Zi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=te(t);if(!i){if(s&&de(Vi,n))return Reflect.get(Vi,n,o);if(n==="hasOwnProperty")return Nl}const l=Reflect.get(t,n,o);return(Gt(n)?Hi.has(n):Bl(n))||(i||je(t,"get",n),r)?l:Ee(l)?s&&_o(n)?l:l.value:ve(l)?i?Ji(l):cn(l):l}}class Ki extends Wi{constructor(t=!1){super(!1,t)}set(t,n,o,i){let r=t[n];if(!this._shallow){const a=Jt(r);if(!Un(o)&&!Jt(o)&&(r=ue(r),o=ue(o)),!te(t)&&Ee(r)&&!Ee(o))return a?!1:(r.value=o,!0)}const s=te(t)&&_o(n)?Number(n)<t.length:de(t,n),l=Reflect.set(t,n,o,i);return t===ue(i)&&(s?it(o,r)&&dt(t,"set",n,o):dt(t,"add",n,o)),l}deleteProperty(t,n){const o=de(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&o&&dt(t,"delete",n,void 0),i}has(t,n){const o=Reflect.has(t,n);return(!Gt(n)||!Hi.has(n))&&je(t,"has",n),o}ownKeys(t){return je(t,"iterate",te(t)?"length":Dt),Reflect.ownKeys(t)}}class Fl extends Wi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Hl=new Ki,Vl=new Fl,Wl=new Ki(!0),Oo=e=>e,Fn=e=>Reflect.getPrototypeOf(e);function Hn(e,t,n=!1,o=!1){e=e.__v_raw;const i=ue(e),r=ue(t);n||(it(t,r)&&je(i,"get",t),je(i,"get",r));const{has:s}=Fn(i),l=o?Oo:n?Ao:un;if(s.call(i,t))return l(e.get(t));if(s.call(i,r))return l(e.get(r));e!==i&&e.get(t)}function Vn(e,t=!1){const n=this.__v_raw,o=ue(n),i=ue(e);return t||(it(e,i)&&je(o,"has",e),je(o,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Wn(e,t=!1){return e=e.__v_raw,!t&&je(ue(e),"iterate",Dt),Reflect.get(e,"size",e)}function qi(e){e=ue(e);const t=ue(this);return Fn(t).has.call(t,e)||(t.add(e),dt(t,"add",e,e)),this}function Ui(e,t){t=ue(t);const n=ue(this),{has:o,get:i}=Fn(n);let r=o.call(n,e);r||(e=ue(e),r=o.call(n,e));const s=i.call(n,e);return n.set(e,t),r?it(t,s)&&dt(n,"set",e,t):dt(n,"add",e,t),this}function Yi(e){const t=ue(this),{has:n,get:o}=Fn(t);let i=n.call(t,e);i||(e=ue(e),i=n.call(t,e)),o&&o.call(t,e);const r=t.delete(e);return i&&dt(t,"delete",e,void 0),r}function Xi(){const e=ue(this),t=e.size!==0,n=e.clear();return t&&dt(e,"clear",void 0,void 0),n}function Kn(e,t){return function(o,i){const r=this,s=r.__v_raw,l=ue(s),a=t?Oo:e?Ao:un;return!e&&je(l,"iterate",Dt),s.forEach((c,u)=>o.call(i,a(c),a(u),r))}}function qn(e,t,n){return function(...o){const i=this.__v_raw,r=ue(i),s=Zt(r),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=i[e](...o),u=n?Oo:t?Ao:un;return!t&&je(r,"iterate",a?Po:Dt),{next(){const{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:l?[u(f[0]),u(f[1])]:u(f),done:p}},[Symbol.iterator](){return this}}}}function wt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Kl(){const e={get(r){return Hn(this,r)},get size(){return Wn(this)},has:Vn,add:qi,set:Ui,delete:Yi,clear:Xi,forEach:Kn(!1,!1)},t={get(r){return Hn(this,r,!1,!0)},get size(){return Wn(this)},has:Vn,add:qi,set:Ui,delete:Yi,clear:Xi,forEach:Kn(!1,!0)},n={get(r){return Hn(this,r,!0)},get size(){return Wn(this,!0)},has(r){return Vn.call(this,r,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:Kn(!0,!1)},o={get(r){return Hn(this,r,!0,!0)},get size(){return Wn(this,!0)},has(r){return Vn.call(this,r,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:Kn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=qn(r,!1,!1),n[r]=qn(r,!0,!1),t[r]=qn(r,!1,!0),o[r]=qn(r,!0,!0)}),[e,n,t,o]}const[ql,Ul,Yl,Xl]=Kl();function Lo(e,t){const n=t?e?Xl:Yl:e?Ul:ql;return(o,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?o:Reflect.get(de(n,i)&&i in o?n:o,i,r)}const Zl={get:Lo(!1,!1)},Gl={get:Lo(!1,!0)},Ql={get:Lo(!0,!1)},Zi=new WeakMap,Gi=new WeakMap,Qi=new WeakMap,Jl=new WeakMap;function ea(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ta(e){return e.__v_skip||!Object.isExtensible(e)?0:ea(Il(e))}function cn(e){return Jt(e)?e:zo(e,!1,Hl,Zl,Zi)}function na(e){return zo(e,!1,Wl,Gl,Gi)}function Ji(e){return zo(e,!0,Vl,Ql,Qi)}function zo(e,t,n,o,i){if(!ve(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const s=ta(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return i.set(e,l),l}function Qt(e){return Jt(e)?Qt(e.__v_raw):!!(e&&e.__v_isReactive)}function Jt(e){return!!(e&&e.__v_isReadonly)}function Un(e){return!!(e&&e.__v_isShallow)}function er(e){return Qt(e)||Jt(e)}function ue(e){const t=e&&e.__v_raw;return t?ue(t):e}function tr(e){return Nn(e,"__v_skip",!0),e}const un=e=>ve(e)?cn(e):e,Ao=e=>ve(e)?Ji(e):e;class nr{constructor(t,n,o,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Co(()=>t(this._value),()=>dn(this,1),()=>this.dep&&Ni(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=o}get value(){const t=ue(this);return(!t._cacheable||t.effect.dirty)&&it(t._value,t._value=t.effect.run())&&dn(t,2),jo(t),t.effect._dirtyLevel>=1&&dn(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function oa(e,t,n=!1){let o,i;const r=re(e);return r?(o=e,i=He):(o=e.get,i=e.set),new nr(o,i,r||!i,n)}function jo(e){bt&&jt&&(e=ue(e),Bi(jt,e.dep||(e.dep=Fi(()=>e.dep=void 0,e instanceof nr?e:void 0))))}function dn(e,t=2,n){e=ue(e);const o=e.dep;o&&Ri(o,t)}function Ee(e){return!!(e&&e.__v_isRef===!0)}function Y(e){return ia(e,!1)}function ia(e,t){return Ee(e)?e:new ra(e,t)}class ra{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ue(t),this._value=n?t:un(t)}get value(){return jo(this),this._value}set value(t){const n=this.__v_isShallow||Un(t)||Jt(t);t=n?t:ue(t),it(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:un(t),dn(this,2))}}function q(e){return Ee(e)?e.value:e}const sa={get:(e,t,n)=>q(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return Ee(i)&&!Ee(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function or(e){return Qt(e)?e:new Proxy(e,sa)}class la{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>jo(this),()=>dn(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function ir(e){return new la(e)}/**
|
|
9
|
+
**/let Xe;class zl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Xe,!t&&Xe&&(this.index=(Xe.scopes||(Xe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Xe;try{return Xe=this,t()}finally{Xe=n}}}on(){Xe=this}off(){Xe=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 i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function Al(e,t=Xe){t&&t.active&&t.effects.push(e)}function zi(){return Xe}function Dl(e){Xe&&Xe.cleanups.push(e)}let At;class Co{constructor(t,n,o,i){this.fn=t,this.trigger=n,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Al(this,i)}get dirty(){if(this._dirtyLevel===1){_t();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(jl(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),wt()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=yt,n=At;try{return yt=!0,At=this,this._runnings++,Ai(this),this.fn()}finally{Di(this),this._runnings--,At=n,yt=t}}stop(){var t;this.active&&(Ai(this),Di(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function jl(e){return e.value}function Ai(e){e._trackId++,e._depsLength=0}function Di(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)ji(e.deps[t],e);e.deps.length=e._depsLength}}function ji(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let yt=!0,Io=0;const Bi=[];function _t(){Bi.push(yt),yt=!1}function wt(){const e=Bi.pop();yt=e===void 0?!0:e}function Eo(){Io++}function To(){for(Io--;!Io&&$o.length;)$o.shift()()}function Ri(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&ji(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const $o=[];function Ni(e,t,n){Eo();for(const o of e.keys())if(o._dirtyLevel<t&&e.get(o)===o._trackId){const i=o._dirtyLevel;o._dirtyLevel=t,i===0&&(o._shouldSchedule=!0,o.trigger())}Fi(e),To()}function Fi(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,$o.push(t.scheduler))}const Hi=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Mo=new WeakMap,Dt=Symbol(""),Oo=Symbol("");function je(e,t,n){if(yt&&At){let o=Mo.get(e);o||Mo.set(e,o=new Map);let i=o.get(n);i||o.set(n,i=Hi(()=>o.delete(n))),Ri(At,i)}}function pt(e,t,n,o,i,r){const s=Mo.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&ee(e)){const a=Number(o);s.forEach((c,u)=>{(u==="length"||!Gt(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":ee(e)?_o(n)&&l.push(s.get("length")):(l.push(s.get(Dt)),Zt(e)&&l.push(s.get(Oo)));break;case"delete":ee(e)||(l.push(s.get(Dt)),Zt(e)&&l.push(s.get(Oo)));break;case"set":Zt(e)&&l.push(s.get(Dt));break}Eo();for(const a of l)a&&Ni(a,2);To()}const Bl=Ke("__proto__,__v_isRef,__isVue"),Vi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Gt)),Wi=Rl();function Rl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ue(this);for(let r=0,s=this.length;r<s;r++)je(o,"get",r+"");const i=o[t](...n);return i===-1||i===!1?o[t](...n.map(ue)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){_t(),Eo();const o=ue(this)[t].apply(this,n);return To(),wt(),o}}),e}function Nl(e){const t=ue(this);return je(t,"has",e),t.hasOwnProperty(e)}class Ki{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,o){const i=this._isReadonly,r=this._shallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return o===(i?r?Jl:Ji:r?Qi:Gi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=ee(t);if(!i){if(s&&fe(Wi,n))return Reflect.get(Wi,n,o);if(n==="hasOwnProperty")return Nl}const l=Reflect.get(t,n,o);return(Gt(n)?Vi.has(n):Bl(n))||(i||je(t,"get",n),r)?l:Ee(l)?s&&_o(n)?l:l.value:be(l)?i?er(l):cn(l):l}}class qi extends Ki{constructor(t=!1){super(!1,t)}set(t,n,o,i){let r=t[n];if(!this._shallow){const a=Jt(r);if(!Un(o)&&!Jt(o)&&(r=ue(r),o=ue(o)),!ee(t)&&Ee(r)&&!Ee(o))return a?!1:(r.value=o,!0)}const s=ee(t)&&_o(n)?Number(n)<t.length:fe(t,n),l=Reflect.set(t,n,o,i);return t===ue(i)&&(s?rt(o,r)&&pt(t,"set",n,o):pt(t,"add",n,o)),l}deleteProperty(t,n){const o=fe(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&o&&pt(t,"delete",n,void 0),i}has(t,n){const o=Reflect.has(t,n);return(!Gt(n)||!Vi.has(n))&&je(t,"has",n),o}ownKeys(t){return je(t,"iterate",ee(t)?"length":Dt),Reflect.ownKeys(t)}}class Fl extends Ki{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Hl=new qi,Vl=new Fl,Wl=new qi(!0),Po=e=>e,Fn=e=>Reflect.getPrototypeOf(e);function Hn(e,t,n=!1,o=!1){e=e.__v_raw;const i=ue(e),r=ue(t);n||(rt(t,r)&&je(i,"get",t),je(i,"get",r));const{has:s}=Fn(i),l=o?Po:n?Ao:un;if(s.call(i,t))return l(e.get(t));if(s.call(i,r))return l(e.get(r));e!==i&&e.get(t)}function Vn(e,t=!1){const n=this.__v_raw,o=ue(n),i=ue(e);return t||(rt(e,i)&&je(o,"has",e),je(o,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Wn(e,t=!1){return e=e.__v_raw,!t&&je(ue(e),"iterate",Dt),Reflect.get(e,"size",e)}function Ui(e){e=ue(e);const t=ue(this);return Fn(t).has.call(t,e)||(t.add(e),pt(t,"add",e,e)),this}function Yi(e,t){t=ue(t);const n=ue(this),{has:o,get:i}=Fn(n);let r=o.call(n,e);r||(e=ue(e),r=o.call(n,e));const s=i.call(n,e);return n.set(e,t),r?rt(t,s)&&pt(n,"set",e,t):pt(n,"add",e,t),this}function Xi(e){const t=ue(this),{has:n,get:o}=Fn(t);let i=n.call(t,e);i||(e=ue(e),i=n.call(t,e)),o&&o.call(t,e);const r=t.delete(e);return i&&pt(t,"delete",e,void 0),r}function Zi(){const e=ue(this),t=e.size!==0,n=e.clear();return t&&pt(e,"clear",void 0,void 0),n}function Kn(e,t){return function(o,i){const r=this,s=r.__v_raw,l=ue(s),a=t?Po:e?Ao:un;return!e&&je(l,"iterate",Dt),s.forEach((c,u)=>o.call(i,a(c),a(u),r))}}function qn(e,t,n){return function(...o){const i=this.__v_raw,r=ue(i),s=Zt(r),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=i[e](...o),u=n?Po:t?Ao:un;return!t&&je(r,"iterate",a?Oo:Dt),{next(){const{value:d,done:p}=c.next();return p?{value:d,done:p}:{value:l?[u(d[0]),u(d[1])]:u(d),done:p}},[Symbol.iterator](){return this}}}}function xt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Kl(){const e={get(r){return Hn(this,r)},get size(){return Wn(this)},has:Vn,add:Ui,set:Yi,delete:Xi,clear:Zi,forEach:Kn(!1,!1)},t={get(r){return Hn(this,r,!1,!0)},get size(){return Wn(this)},has:Vn,add:Ui,set:Yi,delete:Xi,clear:Zi,forEach:Kn(!1,!0)},n={get(r){return Hn(this,r,!0)},get size(){return Wn(this,!0)},has(r){return Vn.call(this,r,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:Kn(!0,!1)},o={get(r){return Hn(this,r,!0,!0)},get size(){return Wn(this,!0)},has(r){return Vn.call(this,r,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:Kn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=qn(r,!1,!1),n[r]=qn(r,!0,!1),t[r]=qn(r,!1,!0),o[r]=qn(r,!0,!0)}),[e,n,t,o]}const[ql,Ul,Yl,Xl]=Kl();function Lo(e,t){const n=t?e?Xl:Yl:e?Ul:ql;return(o,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?o:Reflect.get(fe(n,i)&&i in o?n:o,i,r)}const Zl={get:Lo(!1,!1)},Gl={get:Lo(!1,!0)},Ql={get:Lo(!0,!1)},Gi=new WeakMap,Qi=new WeakMap,Ji=new WeakMap,Jl=new WeakMap;function ea(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ta(e){return e.__v_skip||!Object.isExtensible(e)?0:ea(Il(e))}function cn(e){return Jt(e)?e:zo(e,!1,Hl,Zl,Gi)}function na(e){return zo(e,!1,Wl,Gl,Qi)}function er(e){return zo(e,!0,Vl,Ql,Ji)}function zo(e,t,n,o,i){if(!be(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const s=ta(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return i.set(e,l),l}function Qt(e){return Jt(e)?Qt(e.__v_raw):!!(e&&e.__v_isReactive)}function Jt(e){return!!(e&&e.__v_isReadonly)}function Un(e){return!!(e&&e.__v_isShallow)}function tr(e){return Qt(e)||Jt(e)}function ue(e){const t=e&&e.__v_raw;return t?ue(t):e}function nr(e){return Nn(e,"__v_skip",!0),e}const un=e=>be(e)?cn(e):e,Ao=e=>be(e)?er(e):e;class or{constructor(t,n,o,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Co(()=>t(this._value),()=>dn(this,1),()=>this.dep&&Fi(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=o}get value(){const t=ue(this);return(!t._cacheable||t.effect.dirty)&&rt(t._value,t._value=t.effect.run())&&dn(t,2),Do(t),t.effect._dirtyLevel>=1&&dn(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function oa(e,t,n=!1){let o,i;const r=se(e);return r?(o=e,i=qe):(o=e.get,i=e.set),new or(o,i,r||!i,n)}function Do(e){yt&&At&&(e=ue(e),Ri(At,e.dep||(e.dep=Hi(()=>e.dep=void 0,e instanceof or?e:void 0))))}function dn(e,t=2,n){e=ue(e);const o=e.dep;o&&Ni(o,t)}function Ee(e){return!!(e&&e.__v_isRef===!0)}function X(e){return ia(e,!1)}function ia(e,t){return Ee(e)?e:new ra(e,t)}class ra{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ue(t),this._value=n?t:un(t)}get value(){return Do(this),this._value}set value(t){const n=this.__v_isShallow||Un(t)||Jt(t);t=n?t:ue(t),rt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:un(t),dn(this,2))}}function q(e){return Ee(e)?e.value:e}const sa={get:(e,t,n)=>q(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return Ee(i)&&!Ee(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function ir(e){return Qt(e)?e:new Proxy(e,sa)}class la{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>Do(this),()=>dn(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function rr(e){return new la(e)}/**
|
|
10
10
|
* @vue/runtime-core v3.4.15
|
|
11
11
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
12
|
* @license MIT
|
|
13
|
-
**/const fn=[];function
|
|
13
|
+
**/const fn=[];function Qp(e,...t){_t();const n=fn.length?fn[fn.length-1].component:null,o=n&&n.appContext.config.warnHandler,i=aa();if(o)ht(o,n,11,[e+t.join(""),n&&n.proxy,i.map(({vnode:r})=>`at <${Jr(n,r.type)}>`).join(`
|
|
14
14
|
`),i]);else{const r=[`[Vue warn]: ${e}`,...t];i.length&&r.push(`
|
|
15
|
-
`,...ca(i)),console.warn(...r)}
|
|
16
|
-
`],...ua(n))}),t}function ua({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,i=` at <${Qr(e.component,e.type,o)}`,r=">"+n;return e.props?[i,...da(e.props),r]:[i+r]}function da(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...rr(o,e[o]))}),n.length>3&&t.push(" ..."),t}function rr(e,t,n){return ke(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Ee(t)?(t=rr(e,ue(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):re(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ue(t),n?t:[`${e}=`,t])}function ft(e,t,n,o){let i;try{i=o?e(...o):e()}catch(r){Yn(r,t,n)}return i}function Qe(e,t,n,o){if(re(e)){const r=ft(e,t,n,o);return r&&Ii(r)&&r.catch(s=>{Yn(s,t,n)}),r}const i=[];for(let r=0;r<e.length;r++)i.push(Qe(e[r],t,n,o));return i}function Yn(e,t,n,o=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const c=r.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,l)===!1)return}r=r.parent}const a=t.appContext.config.errorHandler;if(a){ft(a,null,10,[e,s,l]);return}}fa(e,n,i,o)}function fa(e,t,n,o=!0){console.error(e)}let pn=!1,Do=!1;const Oe=[];let rt=0;const en=[];let xt=null,Bt=0;const sr=Promise.resolve();let Bo=null;function pt(e){const t=Bo||sr;return e?t.then(this?e.bind(this):e):t}function pa(e){let t=rt+1,n=Oe.length;for(;t<n;){const o=t+n>>>1,i=Oe[o],r=hn(i);r<e||r===e&&i.pre?t=o+1:n=o}return t}function Ro(e){(!Oe.length||!Oe.includes(e,pn&&e.allowRecurse?rt+1:rt))&&(e.id==null?Oe.push(e):Oe.splice(pa(e.id),0,e),lr())}function lr(){!pn&&!Do&&(Do=!0,Bo=sr.then(ur))}function ha(e){const t=Oe.indexOf(e);t>rt&&Oe.splice(t,1)}function ga(e){te(e)?en.push(...e):(!xt||!xt.includes(e,e.allowRecurse?Bt+1:Bt))&&en.push(e),lr()}function ar(e,t,n=pn?rt+1:0){for(;n<Oe.length;n++){const o=Oe[n];if(o&&o.pre){if(e&&o.id!==e.uid)continue;Oe.splice(n,1),n--,o()}}}function cr(e){if(en.length){const t=[...new Set(en)].sort((n,o)=>hn(n)-hn(o));if(en.length=0,xt){xt.push(...t);return}for(xt=t,Bt=0;Bt<xt.length;Bt++)xt[Bt]();xt=null,Bt=0}}const hn=e=>e.id==null?1/0:e.id,ma=(e,t)=>{const n=hn(e)-hn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ur(e){Do=!1,pn=!0,Oe.sort(ma);const t=He;try{for(rt=0;rt<Oe.length;rt++){const n=Oe[rt];n&&n.active!==!1&&ft(n,null,14)}}finally{rt=0,Oe.length=0,cr(),pn=!1,Bo=null,(Oe.length||en.length)&&ur()}}function va(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ae;let i=n;const r=t.startsWith("update:"),s=r&&t.slice(7);if(s&&s in o){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:f,trim:p}=o[u]||ae;p&&(i=n.map(w=>ke(w)?w.trim():w)),f&&(i=n.map(xo))}let l,a=o[l=wo(t)]||o[l=wo(Ae(t))];!a&&r&&(a=o[l=wo(Ve(t))]),a&&Qe(a,e,6,i);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Qe(c,e,6,i)}}function dr(e,t,n=!1){const o=t.emitsCache,i=o.get(e);if(i!==void 0)return i;const r=e.emits;let s={},l=!1;if(!re(e)){const a=c=>{const u=dr(c,t,!0);u&&(l=!0,Se(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(ve(e)&&o.set(e,null),null):(te(r)?r.forEach(a=>s[a]=null):Se(s,r),ve(e)&&o.set(e,s),s)}function Xn(e,t){return!e||!zn(t)?!1:(t=t.slice(2).replace(/Once$/,""),de(e,t[0].toLowerCase()+t.slice(1))||de(e,Ve(t))||de(e,t))}let $e=null,fr=null;function Zn(e){const t=$e;return $e=e,fr=e&&e.type.__scopeId||null,t}function se(e,t=$e,n){if(!t||e._n)return e;const o=(...i)=>{o._d&&Vr(-1);const r=Zn(t);let s;try{s=e(...i)}finally{Zn(r),o._d&&Vr(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function Gp(){}function No(e){const{type:t,vnode:n,proxy:o,withProxy:i,props:r,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:f,data:p,setupState:w,ctx:P,inheritAttrs:E}=e;let N,I;const R=Zn(e);try{if(n.shapeFlag&4){const H=i||o,_=H;N=lt(u.call(_,H,f,r,w,p,P)),I=a}else{const H=t;N=lt(H.length>1?H(r,{attrs:a,slots:l,emit:c}):H(r,null)),I=t.props?a:ba(a)}}catch(H){_n.length=0,Yn(H,e,1),N=ee(et)}let x=N;if(I&&E!==!1){const H=Object.keys(I),{shapeFlag:_}=x;H.length&&_&7&&(s&&H.some(bo)&&(I=ya(I,s)),x=Ct(x,I))}return n.dirs&&(x=Ct(x),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(x.transition=n.transition),N=x,Zn(R),N}const ba=e=>{let t;for(const n in e)(n==="class"||n==="style"||zn(n))&&((t||(t={}))[n]=e[n]);return t},ya=(e,t)=>{const n={};for(const o in e)(!bo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function _a(e,t,n){const{props:o,children:i,component:r}=e,{props:s,children:l,patchFlag:a}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?pr(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const p=u[f];if(s[p]!==o[p]&&!Xn(c,p))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?pr(o,s,c):!0:!!s;return!1}function pr(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let i=0;i<o.length;i++){const r=o[i];if(t[r]!==e[r]&&!Xn(n,r))return!0}return!1}function wa({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=n,t=t.parent;else break}}const hr="components",gr=Symbol.for("v-ndc");function mr(e){return ke(e)?xa(hr,e,!1)||e:e||gr}function xa(e,t,n=!0,o=!1){const i=$e||Pe;if(i){const r=i.type;if(e===hr){const l=Gr(r,!1);if(l&&(l===t||l===Ae(t)||l===Bn(Ae(t))))return r}const s=vr(i[e]||r[e],t)||vr(i.appContext[e],t);return!s&&o?r:s}}function vr(e,t){return e&&(e[t]||e[Ae(t)]||e[Bn(Ae(t))])}const Sa=e=>e.__isSuspense;function ka(e,t){t&&t.pendingBranch?te(e)?t.effects.push(...e):t.effects.push(e):ga(e)}const Ca=Symbol.for("v-scx"),Ia=()=>kt(Ca);function Ea(e,t){return Qn(e,null,t)}function Ta(e,t){return Qn(e,null,{flush:"sync"})}const Gn={};function pe(e,t,n){return Qn(e,t,n)}function Qn(e,t,{immediate:n,deep:o,flush:i,once:r,onTrack:s,onTrigger:l}=ae){if(t&&r){const b=t;t=(...z)=>{b(...z),_()}}const a=Pe,c=b=>o===!0?b:Rt(b,o===!1?1:void 0);let u,f=!1,p=!1;if(Ee(e)?(u=()=>e.value,f=Un(e)):Qt(e)?(u=()=>c(e),f=!0):te(e)?(p=!0,f=e.some(b=>Qt(b)||Un(b)),u=()=>e.map(b=>{if(Ee(b))return b.value;if(Qt(b))return c(b);if(re(b))return ft(b,a,2)})):re(e)?t?u=()=>ft(e,a,2):u=()=>(w&&w(),Qe(e,a,3,[P])):u=He,t&&o){const b=u;u=()=>Rt(b())}let w,P=b=>{w=x.onStop=()=>{ft(b,a,4),w=x.onStop=void 0}},E;if(po)if(P=He,t?n&&Qe(t,a,3,[u(),p?[]:void 0,P]):u(),i==="sync"){const b=Ia();E=b.__watcherHandles||(b.__watcherHandles=[])}else return He;let N=p?new Array(e.length).fill(Gn):Gn;const I=()=>{if(!(!x.active||!x.dirty))if(t){const b=x.run();(o||f||(p?b.some((z,y)=>it(z,N[y])):it(b,N)))&&(w&&w(),Qe(t,a,3,[b,N===Gn?void 0:p&&N[0]===Gn?[]:N,P]),N=b)}else x.run()};I.allowRecurse=!!t;let R;i==="sync"?R=I:i==="post"?R=()=>Be(I,a&&a.suspense):(I.pre=!0,a&&(I.id=a.uid),R=()=>Ro(I));const x=new Co(u,He,R),H=Li(),_=()=>{x.stop(),H&&yo(H.effects,x)};return t?n?I():N=x.run():i==="post"?Be(x.run.bind(x),a&&a.suspense):x.run(),E&&E.push(_),_}function $a(e,t,n){const o=this.proxy,i=ke(e)?e.includes(".")?br(o,e):()=>o[e]:e.bind(o,o);let r;re(t)?r=t:(r=t.handler,n=t);const s=Sn(this),l=Qn(i,r.bind(o),n);return s(),l}function br(e,t){const n=t.split(".");return()=>{let o=e;for(let i=0;i<n.length&&o;i++)o=o[n[i]];return o}}function Rt(e,t,n=0,o){if(!ve(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(o=o||new Set,o.has(e))return e;if(o.add(e),Ee(e))Rt(e.value,t,n,o);else if(te(e))for(let i=0;i<e.length;i++)Rt(e[i],t,n,o);else if(Ci(e)||Zt(e))e.forEach(i=>{Rt(i,t,n,o)});else if(Ti(e))for(const i in e)Rt(e[i],t,n,o);return e}function st(e,t){if($e===null)return e;const n=ho($e)||$e.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,s,l,a=ae]=t[i];r&&(re(r)&&(r={mounted:r,updated:r}),r.deep&&Rt(s),o.push({dir:r,instance:n,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Nt(e,t,n,o){const i=e.dirs,r=t&&t.dirs;for(let s=0;s<i.length;s++){const l=i[s];r&&(l.oldValue=r[s].value);let a=l.dir[o];a&&(yt(),Qe(a,n,8,[e.el,l,e,t]),_t())}}const St=Symbol("_leaveCb"),Jn=Symbol("_enterCb");function Ma(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return De(()=>{e.isMounted=!0}),Wo(()=>{e.isUnmounting=!0}),e}const Je=[Function,Array],yr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Je,onEnter:Je,onAfterEnter:Je,onEnterCancelled:Je,onBeforeLeave:Je,onLeave:Je,onAfterLeave:Je,onLeaveCancelled:Je,onBeforeAppear:Je,onAppear:Je,onAfterAppear:Je,onAppearCancelled:Je},Pa={name:"BaseTransition",props:yr,setup(e,{slots:t}){const n=uo(),o=Ma();let i;return()=>{const r=t.default&&xr(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){for(const E of r)if(E.type!==et){s=E;break}}const l=ue(e),{mode:a}=l;if(o.isLeaving)return Ho(s);const c=wr(s);if(!c)return Ho(s);const u=Fo(c,l,o,n);Vo(c,u);const f=n.subTree,p=f&&wr(f);let w=!1;const{getTransitionKey:P}=c.type;if(P){const E=P();i===void 0?i=E:E!==i&&(i=E,w=!0)}if(p&&p.type!==et&&(!Vt(c,p)||w)){const E=Fo(p,l,o,n);if(Vo(p,E),a==="out-in")return o.isLeaving=!0,E.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Ho(s);a==="in-out"&&c.type!==et&&(E.delayLeave=(N,I,R)=>{const x=_r(o,p);x[String(p.key)]=p,N[St]=()=>{I(),N[St]=void 0,delete u.delayedLeave},u.delayedLeave=R})}return s}}};function _r(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 Fo(e,t,n,o){const{appear:i,mode:r,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:p,onAfterLeave:w,onLeaveCancelled:P,onBeforeAppear:E,onAppear:N,onAfterAppear:I,onAppearCancelled:R}=t,x=String(e.key),H=_r(n,e),_=(y,T)=>{y&&Qe(y,o,9,T)},b=(y,T)=>{const j=T[1];_(y,T),te(y)?y.every(Q=>Q.length<=1)&&j():y.length<=1&&j()},z={mode:r,persisted:s,beforeEnter(y){let T=l;if(!n.isMounted)if(i)T=E||l;else return;y[St]&&y[St](!0);const j=H[x];j&&Vt(e,j)&&j.el[St]&&j.el[St](),_(T,[y])},enter(y){let T=a,j=c,Q=u;if(!n.isMounted)if(i)T=N||a,j=I||c,Q=R||u;else return;let v=!1;const g=y[Jn]=C=>{v||(v=!0,C?_(Q,[y]):_(j,[y]),z.delayedLeave&&z.delayedLeave(),y[Jn]=void 0)};T?b(T,[y,g]):g()},leave(y,T){const j=String(e.key);if(y[Jn]&&y[Jn](!0),n.isUnmounting)return T();_(f,[y]);let Q=!1;const v=y[St]=g=>{Q||(Q=!0,T(),g?_(P,[y]):_(w,[y]),y[St]=void 0,H[j]===e&&delete H[j])};H[j]=e,p?b(p,[y,v]):v()},clone(y){return Fo(y,t,n,o)}};return z}function Ho(e){if(eo(e))return e=Ct(e),e.children=null,e}function wr(e){return eo(e)?e.children?e.children[0]:void 0:e}function Vo(e,t){e.shapeFlag&6&&e.component?Vo(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 xr(e,t=!1,n){let o=[],i=0;for(let r=0;r<e.length;r++){let s=e[r];const l=n==null?s.key:String(n)+String(s.key!=null?s.key:r);s.type===Ie?(s.patchFlag&128&&i++,o=o.concat(xr(s.children,t,l))):(t||s.type!==et)&&o.push(l!=null?Ct(s,{key:l}):s)}if(i>1)for(let r=0;r<o.length;r++)o[r].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function Ce(e,t){return re(e)?(()=>Se({name:e.name},t,{setup:e}))():e}const gn=e=>!!e.type.__asyncLoader,eo=e=>e.type.__isKeepAlive;function Oa(e,t){Sr(e,"a",t)}function La(e,t){Sr(e,"da",t)}function Sr(e,t,n=Pe){const o=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(to(t,o,n),n){let i=n.parent;for(;i&&i.parent;)eo(i.parent.vnode)&&za(o,t,n,i),i=i.parent}}function za(e,t,n,o){const i=to(t,e,o,!0);Ft(()=>{yo(o[t],i)},n)}function to(e,t,n=Pe,o=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;yt();const l=Sn(n),a=Qe(t,n,e,s);return l(),_t(),a});return o?i.unshift(r):i.push(r),r}}const ht=e=>(t,n=Pe)=>(!po||e==="sp")&&to(e,(...o)=>t(...o),n),Aa=ht("bm"),De=ht("m"),ja=ht("bu"),kr=ht("u"),Wo=ht("bum"),Ft=ht("um"),Da=ht("sp"),Ba=ht("rtg"),Ra=ht("rtc");function Na(e,t=Pe){to("ec",e,t)}function mn(e,t,n,o){let i;const r=n&&n[o];if(te(e)||ke(e)){i=new Array(e.length);for(let s=0,l=e.length;s<l;s++)i[s]=t(e[s],s,void 0,r&&r[s])}else if(typeof e=="number"){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,r&&r[s])}else if(ve(e))if(e[Symbol.iterator])i=Array.from(e,(s,l)=>t(s,l,void 0,r&&r[l]));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,a=s.length;l<a;l++){const c=s[l];i[l]=t(e[c],c,l,r&&r[l])}}else i=[];return n&&(n[o]=i),i}function Cr(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(te(o))for(let i=0;i<o.length;i++)e[o[i].name]=o[i].fn;else o&&(e[o.name]=o.key?(...i)=>{const r=o.fn(...i);return r&&(r.key=o.key),r}:o.fn)}return e}function we(e,t,n={},o,i){if($e.isCE||$e.parent&&gn($e.parent)&&$e.parent.isCE)return t!=="default"&&(n.name=t),ee("slot",n,o&&o());let r=e[t];r&&r._c&&(r._d=!1),D();const s=r&&Ir(r(n)),l=he(Ie,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),r&&r._c&&(r._d=!0),l}function Ir(e){return e.some(t=>lo(t)?!(t.type===et||t.type===Ie&&!Ir(t.children)):!0)?e:null}const Ko=e=>e?Ur(e)?ho(e)||e.proxy:Ko(e.parent):null,vn=Se(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=>Ko(e.parent),$root:e=>Ko(e.root),$emit:e=>e.emit,$options:e=>Yo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Ro(e.update)}),$nextTick:e=>e.n||(e.n=pt.bind(e.proxy)),$watch:e=>$a.bind(e)}),qo=(e,t)=>e!==ae&&!e.__isScriptSetup&&de(e,t),Fa={get({_:e},t){const{ctx:n,setupState:o,data:i,props:r,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const w=s[t];if(w!==void 0)switch(w){case 1:return o[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(qo(o,t))return s[t]=1,o[t];if(i!==ae&&de(i,t))return s[t]=2,i[t];if((c=e.propsOptions[0])&&de(c,t))return s[t]=3,r[t];if(n!==ae&&de(n,t))return s[t]=4,n[t];Uo&&(s[t]=0)}}const u=vn[t];let f,p;if(u)return t==="$attrs"&&je(e,"get",t),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==ae&&de(n,t))return s[t]=4,n[t];if(p=a.config.globalProperties,de(p,t))return p[t]},set({_:e},t,n){const{data:o,setupState:i,ctx:r}=e;return qo(i,t)?(i[t]=n,!0):o!==ae&&de(o,t)?(o[t]=n,!0):de(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:i,propsOptions:r}},s){let l;return!!n[s]||e!==ae&&de(e,s)||qo(t,s)||(l=r[0])&&de(l,s)||de(o,s)||de(vn,s)||de(i.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:de(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function no(e){return te(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function tn(e,t){return!e||!t?e||t:te(e)&&te(t)?e.concat(t):Se({},no(e),no(t))}let Uo=!0;function Ha(e){const t=Yo(e),n=e.proxy,o=e.ctx;Uo=!1,t.beforeCreate&&Er(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:p,beforeUpdate:w,updated:P,activated:E,deactivated:N,beforeDestroy:I,beforeUnmount:R,destroyed:x,unmounted:H,render:_,renderTracked:b,renderTriggered:z,errorCaptured:y,serverPrefetch:T,expose:j,inheritAttrs:Q,components:v,directives:g,filters:C}=t;if(c&&Va(c,o,null),s)for(const k in s){const K=s[k];re(K)&&(o[k]=K.bind(n))}if(i){const k=i.call(n,n);ve(k)&&(e.data=cn(k))}if(Uo=!0,r)for(const k in r){const K=r[k],ce=re(K)?K.bind(n,n):re(K.get)?K.get.bind(n,n):He,fe=!re(K)&&re(K.set)?K.set.bind(n):He,be=le({get:ce,set:fe});Object.defineProperty(o,k,{enumerable:!0,configurable:!0,get:()=>be.value,set:_e=>be.value=_e})}if(l)for(const k in l)Tr(l[k],o,n,k);if(a){const k=re(a)?a.call(n):a;Reflect.ownKeys(k).forEach(K=>{yn(K,k[K])})}u&&Er(u,e,"c");function ne(k,K){te(K)?K.forEach(ce=>k(ce.bind(n))):K&&k(K.bind(n))}if(ne(Aa,f),ne(De,p),ne(ja,w),ne(kr,P),ne(Oa,E),ne(La,N),ne(Na,y),ne(Ra,b),ne(Ba,z),ne(Wo,R),ne(Ft,H),ne(Da,T),te(j))if(j.length){const k=e.exposed||(e.exposed={});j.forEach(K=>{Object.defineProperty(k,K,{get:()=>n[K],set:ce=>n[K]=ce})})}else e.exposed||(e.exposed={});_&&e.render===He&&(e.render=_),Q!=null&&(e.inheritAttrs=Q),v&&(e.components=v),g&&(e.directives=g)}function Va(e,t,n=He){te(e)&&(e=Xo(e));for(const o in e){const i=e[o];let r;ve(i)?"default"in i?r=kt(i.from||o,i.default,!0):r=kt(i.from||o):r=kt(i),Ee(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[o]=r}}function Er(e,t,n){Qe(te(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Tr(e,t,n,o){const i=o.includes(".")?br(n,o):()=>n[o];if(ke(e)){const r=t[e];re(r)&&pe(i,r)}else if(re(e))pe(i,e.bind(n));else if(ve(e))if(te(e))e.forEach(r=>Tr(r,t,n,o));else{const r=re(e.handler)?e.handler.bind(n):t[e.handler];re(r)&&pe(i,r,e)}}function Yo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,l=r.get(t);let a;return l?a=l:!i.length&&!n&&!o?a=t:(a={},i.length&&i.forEach(c=>oo(a,c,s,!0)),oo(a,t,s)),ve(t)&&r.set(t,a),a}function oo(e,t,n,o=!1){const{mixins:i,extends:r}=t;r&&oo(e,r,n,!0),i&&i.forEach(s=>oo(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=Wa[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Wa={data:$r,props:Mr,emits:Mr,methods:bn,computed:bn,beforeCreate:ze,created:ze,beforeMount:ze,mounted:ze,beforeUpdate:ze,updated:ze,beforeDestroy:ze,beforeUnmount:ze,destroyed:ze,unmounted:ze,activated:ze,deactivated:ze,errorCaptured:ze,serverPrefetch:ze,components:bn,directives:bn,watch:qa,provide:$r,inject:Ka};function $r(e,t){return t?e?function(){return Se(re(e)?e.call(this,this):e,re(t)?t.call(this,this):t)}:t:e}function Ka(e,t){return bn(Xo(e),Xo(t))}function Xo(e){if(te(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ze(e,t){return e?[...new Set([].concat(e,t))]:t}function bn(e,t){return e?Se(Object.create(null),e,t):t}function Mr(e,t){return e?te(e)&&te(t)?[...new Set([...e,...t])]:Se(Object.create(null),no(e),no(t??{})):t}function qa(e,t){if(!e)return t;if(!t)return e;const n=Se(Object.create(null),e);for(const o in t)n[o]=ze(e[o],t[o]);return n}function Pr(){return{app:null,config:{isNativeTag:kl,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 Ua=0;function Ya(e,t){return function(o,i=null){re(o)||(o=Se({},o)),i!=null&&!ve(i)&&(i=null);const r=Pr(),s=new WeakSet;let l=!1;const a=r.app={_uid:Ua++,_component:o,_props:i,_container:null,_context:r,_instance:null,version:yc,get config(){return r.config},set config(c){},use(c,...u){return s.has(c)||(c&&re(c.install)?(s.add(c),c.install(a,...u)):re(c)&&(s.add(c),c(a,...u))),a},mixin(c){return r.mixins.includes(c)||r.mixins.push(c),a},component(c,u){return u?(r.components[c]=u,a):r.components[c]},directive(c,u){return u?(r.directives[c]=u,a):r.directives[c]},mount(c,u,f){if(!l){const p=ee(o,i);return p.appContext=r,f===!0?f="svg":f===!1&&(f=void 0),u&&t?t(p,c):e(p,c,f),l=!0,a._container=c,c.__vue_app__=a,ho(p.component)||p.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return r.provides[c]=u,a},runWithContext(c){io=a;try{return c()}finally{io=null}}};return a}}let io=null;function yn(e,t){if(Pe){let n=Pe.provides;const o=Pe.parent&&Pe.parent.provides;o===n&&(n=Pe.provides=Object.create(o)),n[e]=t}}function kt(e,t,n=!1){const o=Pe||$e;if(o||io){const i=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:io._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&re(t)?t.call(o&&o.proxy):t}}function Xa(e,t,n,o=!1){const i={},r={};Nn(r,ao,1),e.propsDefaults=Object.create(null),Or(e,t,i,r);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=o?i:na(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function Za(e,t,n,o){const{props:i,attrs:r,vnode:{patchFlag:s}}=e,l=ue(i),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let p=u[f];if(Xn(e.emitsOptions,p))continue;const w=t[p];if(a)if(de(r,p))w!==r[p]&&(r[p]=w,c=!0);else{const P=Ae(p);i[P]=Zo(a,l,P,w,e,!1)}else w!==r[p]&&(r[p]=w,c=!0)}}}else{Or(e,t,i,r)&&(c=!0);let u;for(const f in l)(!t||!de(t,f)&&((u=Ve(f))===f||!de(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(i[f]=Zo(a,l,f,void 0,e,!0)):delete i[f]);if(r!==l)for(const f in r)(!t||!de(t,f))&&(delete r[f],c=!0)}c&&dt(e,"set","$attrs")}function Or(e,t,n,o){const[i,r]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(jn(a))continue;const c=t[a];let u;i&&de(i,u=Ae(a))?!r||!r.includes(u)?n[u]=c:(l||(l={}))[u]=c:Xn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(r){const a=ue(n),c=l||ae;for(let u=0;u<r.length;u++){const f=r[u];n[f]=Zo(i,a,f,c[f],e,!de(c,f))}}return s}function Zo(e,t,n,o,i,r){const s=e[n];if(s!=null){const l=de(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&re(a)){const{propsDefaults:c}=i;if(n in c)o=c[n];else{const u=Sn(i);o=c[n]=a.call(null,t),u()}}else o=a}s[0]&&(r&&!l?o=!1:s[1]&&(o===""||o===Ve(n))&&(o=!0))}return o}function Lr(e,t,n=!1){const o=t.propsCache,i=o.get(e);if(i)return i;const r=e.props,s={},l=[];let a=!1;if(!re(e)){const u=f=>{a=!0;const[p,w]=Lr(f,t,!0);Se(s,p),w&&l.push(...w)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!a)return ve(e)&&o.set(e,Ge),Ge;if(te(r))for(let u=0;u<r.length;u++){const f=Ae(r[u]);zr(f)&&(s[f]=ae)}else if(r)for(const u in r){const f=Ae(u);if(zr(f)){const p=r[u],w=s[f]=te(p)||re(p)?{type:p}:Se({},p);if(w){const P=Dr(Boolean,w.type),E=Dr(String,w.type);w[0]=P>-1,w[1]=E<0||P<E,(P>-1||de(w,"default"))&&l.push(f)}}}const c=[s,l];return ve(e)&&o.set(e,c),c}function zr(e){return e[0]!=="$"}function Ar(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function jr(e,t){return Ar(e)===Ar(t)}function Dr(e,t){return te(t)?t.findIndex(n=>jr(n,e)):re(t)&&jr(t,e)?0:-1}const Br=e=>e[0]==="_"||e==="$stable",Go=e=>te(e)?e.map(lt):[lt(e)],Ga=(e,t,n)=>{if(t._n)return t;const o=se((...i)=>Go(t(...i)),n);return o._c=!1,o},Rr=(e,t,n)=>{const o=e._ctx;for(const i in e){if(Br(i))continue;const r=e[i];if(re(r))t[i]=Ga(i,r,o);else if(r!=null){const s=Go(r);t[i]=()=>s}}},Nr=(e,t)=>{const n=Go(t);e.slots.default=()=>n},Qa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ue(t),Nn(t,"_",n)):Rr(t,e.slots={})}else e.slots={},t&&Nr(e,t);Nn(e.slots,ao,1)},Ja=(e,t,n)=>{const{vnode:o,slots:i}=e;let r=!0,s=ae;if(o.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:(Se(i,t),!n&&l===1&&delete i._):(r=!t.$stable,Rr(t,i)),s=t}else t&&(Nr(e,t),s={default:1});if(r)for(const l in i)!Br(l)&&s[l]==null&&delete i[l]};function Qo(e,t,n,o,i=!1){if(te(e)){e.forEach((p,w)=>Qo(p,t&&(te(t)?t[w]:t),n,o,i));return}if(gn(o)&&!i)return;const r=o.shapeFlag&4?ho(o.component)||o.component.proxy:o.el,s=i?null:r,{i:l,r:a}=e,c=t&&t.r,u=l.refs===ae?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==a&&(ke(c)?(u[c]=null,de(f,c)&&(f[c]=null)):Ee(c)&&(c.value=null)),re(a))ft(a,l,12,[s,u]);else{const p=ke(a),w=Ee(a),P=e.f;if(p||w){const E=()=>{if(P){const N=p?de(f,a)?f[a]:u[a]:a.value;i?te(N)&&yo(N,r):te(N)?N.includes(r)||N.push(r):p?(u[a]=[r],de(f,a)&&(f[a]=u[a])):(a.value=[r],e.k&&(u[e.k]=a.value))}else p?(u[a]=s,de(f,a)&&(f[a]=s)):w&&(a.value=s,e.k&&(u[e.k]=s))};i||P?E():(E.id=-1,Be(E,n))}}}const Be=ka;function ec(e){return tc(e)}function tc(e,t){const n=Mi();n.__VUE__=!0;const{insert:o,remove:i,patchProp:r,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:p,setScopeId:w=He,insertStaticContent:P}=e,E=(d,h,S,$=null,M=null,B=null,V=void 0,A=null,F=!!h.dynamicChildren)=>{if(d===h)return;d&&!Vt(d,h)&&($=mt(d),_e(d,M,B,!0),d=null),h.patchFlag===-2&&(F=!1,h.dynamicChildren=null);const{type:L,ref:W,shapeFlag:oe}=h;switch(L){case ro:N(d,h,S,$);break;case et:I(d,h,S,$);break;case so:d==null&&R(h,S,$,V);break;case Ie:v(d,h,S,$,M,B,V,A,F);break;default:oe&1?_(d,h,S,$,M,B,V,A,F):oe&6?g(d,h,S,$,M,B,V,A,F):(oe&64||oe&128)&&L.process(d,h,S,$,M,B,V,A,F,Xe)}W!=null&&M&&Qo(W,d&&d.ref,B,h||d,!h)},N=(d,h,S,$)=>{if(d==null)o(h.el=l(h.children),S,$);else{const M=h.el=d.el;h.children!==d.children&&c(M,h.children)}},I=(d,h,S,$)=>{d==null?o(h.el=a(h.children||""),S,$):h.el=d.el},R=(d,h,S,$)=>{[d.el,d.anchor]=P(d.children,h,S,$,d.el,d.anchor)},x=({el:d,anchor:h},S,$)=>{let M;for(;d&&d!==h;)M=p(d),o(d,S,$),d=M;o(h,S,$)},H=({el:d,anchor:h})=>{let S;for(;d&&d!==h;)S=p(d),i(d),d=S;i(h)},_=(d,h,S,$,M,B,V,A,F)=>{h.type==="svg"?V="svg":h.type==="math"&&(V="mathml"),d==null?b(h,S,$,M,B,V,A,F):T(d,h,M,B,V,A,F)},b=(d,h,S,$,M,B,V,A)=>{let F,L;const{props:W,shapeFlag:oe,transition:G,dirs:m}=d;if(F=d.el=s(d.type,B,W&&W.is,W),oe&8?u(F,d.children):oe&16&&y(d.children,F,null,$,M,Jo(d,B),V,A),m&&Nt(d,null,$,"created"),z(F,d,d.scopeId,V,$),W){for(const J in W)J!=="value"&&!jn(J)&&r(F,J,null,W[J],B,d.children,$,M,Ye);"value"in W&&r(F,"value",null,W.value,B),(L=W.onVnodeBeforeMount)&&at(L,$,d)}m&&Nt(d,null,$,"beforeMount");const O=nc(M,G);O&&G.beforeEnter(F),o(F,h,S),((L=W&&W.onVnodeMounted)||O||m)&&Be(()=>{L&&at(L,$,d),O&&G.enter(F),m&&Nt(d,null,$,"mounted")},M)},z=(d,h,S,$,M)=>{if(S&&w(d,S),$)for(let B=0;B<$.length;B++)w(d,$[B]);if(M){let B=M.subTree;if(h===B){const V=M.vnode;z(d,V,V.scopeId,V.slotScopeIds,M.parent)}}},y=(d,h,S,$,M,B,V,A,F=0)=>{for(let L=F;L<d.length;L++){const W=d[L]=A?Et(d[L]):lt(d[L]);E(null,W,h,S,$,M,B,V,A)}},T=(d,h,S,$,M,B,V)=>{const A=h.el=d.el;let{patchFlag:F,dynamicChildren:L,dirs:W}=h;F|=d.patchFlag&16;const oe=d.props||ae,G=h.props||ae;let m;if(S&&Ht(S,!1),(m=G.onVnodeBeforeUpdate)&&at(m,S,h,d),W&&Nt(h,d,S,"beforeUpdate"),S&&Ht(S,!0),L?j(d.dynamicChildren,L,A,S,$,Jo(h,M),B):V||K(d,h,A,null,S,$,Jo(h,M),B,!1),F>0){if(F&16)Q(A,h,oe,G,S,$,M);else if(F&2&&oe.class!==G.class&&r(A,"class",null,G.class,M),F&4&&r(A,"style",oe.style,G.style,M),F&8){const O=h.dynamicProps;for(let J=0;J<O.length;J++){const ie=O[J],xe=oe[ie],ot=G[ie];(ot!==xe||ie==="value")&&r(A,ie,xe,ot,M,d.children,S,$,Ye)}}F&1&&d.children!==h.children&&u(A,h.children)}else!V&&L==null&&Q(A,h,oe,G,S,$,M);((m=G.onVnodeUpdated)||W)&&Be(()=>{m&&at(m,S,h,d),W&&Nt(h,d,S,"updated")},$)},j=(d,h,S,$,M,B,V)=>{for(let A=0;A<h.length;A++){const F=d[A],L=h[A],W=F.el&&(F.type===Ie||!Vt(F,L)||F.shapeFlag&70)?f(F.el):S;E(F,L,W,null,$,M,B,V,!0)}},Q=(d,h,S,$,M,B,V)=>{if(S!==$){if(S!==ae)for(const A in S)!jn(A)&&!(A in $)&&r(d,A,S[A],null,V,h.children,M,B,Ye);for(const A in $){if(jn(A))continue;const F=$[A],L=S[A];F!==L&&A!=="value"&&r(d,A,L,F,V,h.children,M,B,Ye)}"value"in $&&r(d,"value",S.value,$.value,V)}},v=(d,h,S,$,M,B,V,A,F)=>{const L=h.el=d?d.el:l(""),W=h.anchor=d?d.anchor:l("");let{patchFlag:oe,dynamicChildren:G,slotScopeIds:m}=h;m&&(A=A?A.concat(m):m),d==null?(o(L,S,$),o(W,S,$),y(h.children||[],S,W,M,B,V,A,F)):oe>0&&oe&64&&G&&d.dynamicChildren?(j(d.dynamicChildren,G,S,M,B,V,A),(h.key!=null||M&&h===M.subTree)&&Fr(d,h,!0)):K(d,h,S,W,M,B,V,A,F)},g=(d,h,S,$,M,B,V,A,F)=>{h.slotScopeIds=A,d==null?h.shapeFlag&512?M.ctx.activate(h,S,$,V,F):C(h,S,$,M,B,V,F):Z(d,h,F)},C=(d,h,S,$,M,B,V)=>{const A=d.component=dc(d,$,M);if(eo(d)&&(A.ctx.renderer=Xe),fc(A),A.asyncDep){if(M&&M.registerDep(A,ne),!d.el){const F=A.subTree=ee(et);I(null,F,h,S)}}else ne(A,d,h,S,M,B,V)},Z=(d,h,S)=>{const $=h.component=d.component;if(_a(d,h,S))if($.asyncDep&&!$.asyncResolved){k($,h,S);return}else $.next=h,ha($.update),$.effect.dirty=!0,$.update();else h.el=d.el,$.vnode=h},ne=(d,h,S,$,M,B,V)=>{const A=()=>{if(d.isMounted){let{next:W,bu:oe,u:G,parent:m,vnode:O}=d;{const an=Hr(d);if(an){W&&(W.el=O.el,k(d,W,V)),an.asyncDep.then(()=>{d.isUnmounted||A()});return}}let J=W,ie;Ht(d,!1),W?(W.el=O.el,k(d,W,V)):W=O,oe&&Rn(oe),(ie=W.props&&W.props.onVnodeBeforeUpdate)&&at(ie,m,W,O),Ht(d,!0);const xe=No(d),ot=d.subTree;d.subTree=xe,E(ot,xe,f(ot.el),mt(ot),d,M,B),W.el=xe.el,J===null&&wa(d,xe.el),G&&Be(G,M),(ie=W.props&&W.props.onVnodeUpdated)&&Be(()=>at(ie,m,W,O),M)}else{let W;const{el:oe,props:G}=h,{bm:m,m:O,parent:J}=d,ie=gn(h);if(Ht(d,!1),m&&Rn(m),!ie&&(W=G&&G.onVnodeBeforeMount)&&at(W,J,h),Ht(d,!0),oe&&On){const xe=()=>{d.subTree=No(d),On(oe,d.subTree,d,M,null)};ie?h.type.__asyncLoader().then(()=>!d.isUnmounted&&xe()):xe()}else{const xe=d.subTree=No(d);E(null,xe,S,$,d,M,B),h.el=xe.el}if(O&&Be(O,M),!ie&&(W=G&&G.onVnodeMounted)){const xe=h;Be(()=>at(W,J,xe),M)}(h.shapeFlag&256||J&&gn(J.vnode)&&J.vnode.shapeFlag&256)&&d.a&&Be(d.a,M),d.isMounted=!0,h=S=$=null}},F=d.effect=new Co(A,He,()=>Ro(L),d.scope),L=d.update=()=>{F.dirty&&F.run()};L.id=d.uid,Ht(d,!0),L()},k=(d,h,S)=>{h.component=d;const $=d.vnode.props;d.vnode=h,d.next=null,Za(d,h.props,$,S),Ja(d,h.children,S),yt(),ar(d),_t()},K=(d,h,S,$,M,B,V,A,F=!1)=>{const L=d&&d.children,W=d?d.shapeFlag:0,oe=h.children,{patchFlag:G,shapeFlag:m}=h;if(G>0){if(G&128){fe(L,oe,S,$,M,B,V,A,F);return}else if(G&256){ce(L,oe,S,$,M,B,V,A,F);return}}m&8?(W&16&&Ye(L,M,B),oe!==L&&u(S,oe)):W&16?m&16?fe(L,oe,S,$,M,B,V,A,F):Ye(L,M,B,!0):(W&8&&u(S,""),m&16&&y(oe,S,$,M,B,V,A,F))},ce=(d,h,S,$,M,B,V,A,F)=>{d=d||Ge,h=h||Ge;const L=d.length,W=h.length,oe=Math.min(L,W);let G;for(G=0;G<oe;G++){const m=h[G]=F?Et(h[G]):lt(h[G]);E(d[G],m,S,null,M,B,V,A,F)}L>W?Ye(d,M,B,!0,!1,oe):y(h,S,$,M,B,V,A,F,oe)},fe=(d,h,S,$,M,B,V,A,F)=>{let L=0;const W=h.length;let oe=d.length-1,G=W-1;for(;L<=oe&&L<=G;){const m=d[L],O=h[L]=F?Et(h[L]):lt(h[L]);if(Vt(m,O))E(m,O,S,null,M,B,V,A,F);else break;L++}for(;L<=oe&&L<=G;){const m=d[oe],O=h[G]=F?Et(h[G]):lt(h[G]);if(Vt(m,O))E(m,O,S,null,M,B,V,A,F);else break;oe--,G--}if(L>oe){if(L<=G){const m=G+1,O=m<W?h[m].el:$;for(;L<=G;)E(null,h[L]=F?Et(h[L]):lt(h[L]),S,O,M,B,V,A,F),L++}}else if(L>G)for(;L<=oe;)_e(d[L],M,B,!0),L++;else{const m=L,O=L,J=new Map;for(L=O;L<=G;L++){const Ze=h[L]=F?Et(h[L]):lt(h[L]);Ze.key!=null&&J.set(Ze.key,L)}let ie,xe=0;const ot=G-O+1;let an=!1,wl=0;const Ln=new Array(ot);for(L=0;L<ot;L++)Ln[L]=0;for(L=m;L<=oe;L++){const Ze=d[L];if(xe>=ot){_e(Ze,M,B,!0);continue}let ut;if(Ze.key!=null)ut=J.get(Ze.key);else for(ie=O;ie<=G;ie++)if(Ln[ie-O]===0&&Vt(Ze,h[ie])){ut=ie;break}ut===void 0?_e(Ze,M,B,!0):(Ln[ut-O]=L+1,ut>=wl?wl=ut:an=!0,E(Ze,h[ut],S,null,M,B,V,A,F),xe++)}const xl=an?oc(Ln):Ge;for(ie=xl.length-1,L=ot-1;L>=0;L--){const Ze=O+L,ut=h[Ze],Sl=Ze+1<W?h[Ze+1].el:$;Ln[L]===0?E(null,ut,S,Sl,M,B,V,A,F):an&&(ie<0||L!==xl[ie]?be(ut,S,Sl,2):ie--)}}},be=(d,h,S,$,M=null)=>{const{el:B,type:V,transition:A,children:F,shapeFlag:L}=d;if(L&6){be(d.component.subTree,h,S,$);return}if(L&128){d.suspense.move(h,S,$);return}if(L&64){V.move(d,h,S,Xe);return}if(V===Ie){o(B,h,S);for(let oe=0;oe<F.length;oe++)be(F[oe],h,S,$);o(d.anchor,h,S);return}if(V===so){x(d,h,S);return}if($!==2&&L&1&&A)if($===0)A.beforeEnter(B),o(B,h,S),Be(()=>A.enter(B),M);else{const{leave:oe,delayLeave:G,afterLeave:m}=A,O=()=>o(B,h,S),J=()=>{oe(B,()=>{O(),m&&m()})};G?G(B,O,J):J()}else o(B,h,S)},_e=(d,h,S,$=!1,M=!1)=>{const{type:B,props:V,ref:A,children:F,dynamicChildren:L,shapeFlag:W,patchFlag:oe,dirs:G}=d;if(A!=null&&Qo(A,null,S,d,!0),W&256){h.ctx.deactivate(d);return}const m=W&1&&G,O=!gn(d);let J;if(O&&(J=V&&V.onVnodeBeforeUnmount)&&at(J,h,d),W&6)zt(d.component,S,$);else{if(W&128){d.suspense.unmount(S,$);return}m&&Nt(d,null,h,"beforeUnmount"),W&64?d.type.remove(d,h,S,M,Xe,$):L&&(B!==Ie||oe>0&&oe&64)?Ye(L,h,S,!1,!0):(B===Ie&&oe&384||!M&&W&16)&&Ye(F,h,S),$&&Ue(d)}(O&&(J=V&&V.onVnodeUnmounted)||m)&&Be(()=>{J&&at(J,h,d),m&&Nt(d,null,h,"unmounted")},S)},Ue=d=>{const{type:h,el:S,anchor:$,transition:M}=d;if(h===Ie){gt(S,$);return}if(h===so){H(d);return}const B=()=>{i(S),M&&!M.persisted&&M.afterLeave&&M.afterLeave()};if(d.shapeFlag&1&&M&&!M.persisted){const{leave:V,delayLeave:A}=M,F=()=>V(S,B);A?A(d.el,B,F):F()}else B()},gt=(d,h)=>{let S;for(;d!==h;)S=p(d),i(d),d=S;i(h)},zt=(d,h,S)=>{const{bum:$,scope:M,update:B,subTree:V,um:A}=d;$&&Rn($),M.stop(),B&&(B.active=!1,_e(V,d,h,S)),A&&Be(A,h),Be(()=>{d.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},Ye=(d,h,S,$=!1,M=!1,B=0)=>{for(let V=B;V<d.length;V++)_e(d[V],h,S,$,M)},mt=d=>d.shapeFlag&6?mt(d.component.subTree):d.shapeFlag&128?d.suspense.next():p(d.anchor||d.el);let vt=!1;const Me=(d,h,S)=>{d==null?h._vnode&&_e(h._vnode,null,null,!0):E(h._vnode||null,d,h,null,null,null,S),vt||(vt=!0,ar(),cr(),vt=!1),h._vnode=d},Xe={p:E,um:_e,m:be,r:Ue,mt:C,mc:y,pc:K,pbc:j,n:mt,o:e};let At,On;return t&&([At,On]=t(Xe)),{render:Me,hydrate:At,createApp:Ya(Me,At)}}function Jo({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ht({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function nc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Fr(e,t,n=!1){const o=e.children,i=t.children;if(te(o)&&te(i))for(let r=0;r<o.length;r++){const s=o[r];let l=i[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=i[r]=Et(i[r]),l.el=s.el),n||Fr(s,l)),l.type===ro&&(l.el=s.el)}}function oc(e){const t=e.slice(),n=[0];let o,i,r,s,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(i=n[n.length-1],e[i]<c){t[o]=i,n.push(o);continue}for(r=0,s=n.length-1;r<s;)l=r+s>>1,e[n[l]]<c?r=l+1:s=l;c<e[n[r]]&&(r>0&&(t[o]=n[r-1]),n[r]=o)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}function Hr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Hr(t)}const ic=e=>e.__isTeleport,Ie=Symbol.for("v-fgt"),ro=Symbol.for("v-txt"),et=Symbol.for("v-cmt"),so=Symbol.for("v-stc"),_n=[];let nt=null;function D(e=!1){_n.push(nt=e?null:[])}function rc(){_n.pop(),nt=_n[_n.length-1]||null}let wn=1;function Vr(e){wn+=e}function Wr(e){return e.dynamicChildren=wn>0?nt||Ge:null,rc(),wn>0&&nt&&nt.push(e),e}function U(e,t,n,o,i,r){return Wr(X(e,t,n,o,i,r,!0))}function he(e,t,n,o,i){return Wr(ee(e,t,n,o,i,!0))}function lo(e){return e?e.__v_isVNode===!0:!1}function Vt(e,t){return e.type===t.type&&e.key===t.key}const ao="__vInternal",Kr=({key:e})=>e??null,co=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ke(e)||Ee(e)||re(e)?{i:$e,r:e,k:t,f:!!n}:e:null);function X(e,t=null,n=null,o=0,i=null,r=e===Ie?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Kr(t),ref:t&&co(t),scopeId:fr,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:r,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:$e};return l?(ei(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=ke(n)?8:16),wn>0&&!s&&nt&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&nt.push(a),a}const ee=sc;function sc(e,t=null,n=null,o=0,i=null,r=!1){if((!e||e===gr)&&(e=et),lo(e)){const l=Ct(e,t,!0);return n&&ei(l,n),wn>0&&!r&&nt&&(l.shapeFlag&6?nt[nt.indexOf(e)]=l:nt.push(l)),l.patchFlag|=-2,l}if(bc(e)&&(e=e.__vccOpts),t){t=lc(t);let{class:l,style:a}=t;l&&!ke(l)&&(t.class=Te(l)),ve(a)&&(er(a)&&!te(a)&&(a=Se({},a)),t.style=Le(a))}const s=ke(e)?1:Sa(e)?128:ic(e)?64:ve(e)?4:re(e)?2:0;return X(e,t,n,o,i,s,r,!0)}function lc(e){return e?er(e)||ao in e?Se({},e):e:null}function Ct(e,t,n=!1){const{props:o,ref:i,patchFlag:r,children:s}=e,l=t?xn(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Kr(l),ref:t&&t.ref?n&&i?te(i)?i.concat(co(t)):[i,co(t)]:co(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ie?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ct(e.ssContent),ssFallback:e.ssFallback&&Ct(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function It(e=" ",t=0){return ee(ro,null,e,t)}function ac(e,t){const n=ee(so,null,e);return n.staticCount=t,n}function ye(e="",t=!1){return t?(D(),he(et,null,e)):ee(et,null,e)}function lt(e){return e==null||typeof e=="boolean"?ee(et):te(e)?ee(Ie,null,e.slice()):typeof e=="object"?Et(e):ee(ro,null,String(e))}function Et(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ct(e)}function ei(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(te(t))n=16;else if(typeof t=="object")if(o&65){const i=t.default;i&&(i._c&&(i._d=!1),ei(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(ao in t)?t._ctx=$e:i===3&&$e&&($e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else re(t)?(t={default:t,_ctx:$e},n=32):(t=String(t),o&64?(n=16,t=[It(t)]):n=8);e.children=t,e.shapeFlag|=n}function xn(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const i in o)if(i==="class")t.class!==o.class&&(t.class=Te([t.class,o.class]));else if(i==="style")t.style=Le([t.style,o.style]);else if(zn(i)){const r=t[i],s=o[i];s&&r!==s&&!(te(r)&&r.includes(s))&&(t[i]=r?[].concat(r,s):s)}else i!==""&&(t[i]=o[i])}return t}function at(e,t,n,o=null){Qe(e,t,7,[n,o])}const cc=Pr();let uc=0;function dc(e,t,n){const o=e.type,i=(t?t.appContext:e.appContext)||cc,r={uid:uc++,vnode:e,type:o,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new zl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Lr(o,i),emitsOptions:dr(o,i),emit:null,emitted:null,propsDefaults:ae,inheritAttrs:o.inheritAttrs,ctx:ae,data:ae,props:ae,attrs:ae,slots:ae,refs:ae,setupState:ae,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 r.ctx={_:r},r.root=t?t.root:r,r.emit=va.bind(null,r),e.ce&&e.ce(r),r}let Pe=null;const uo=()=>Pe||$e;let fo,ti;{const e=Mi(),t=(n,o)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(o),r=>{i.length>1?i.forEach(s=>s(r)):i[0](r)}};fo=t("__VUE_INSTANCE_SETTERS__",n=>Pe=n),ti=t("__VUE_SSR_SETTERS__",n=>po=n)}const Sn=e=>{const t=Pe;return fo(e),e.scope.on(),()=>{e.scope.off(),fo(t)}},qr=()=>{Pe&&Pe.scope.off(),fo(null)};function Ur(e){return e.vnode.shapeFlag&4}let po=!1;function fc(e,t=!1){t&&ti(t);const{props:n,children:o}=e.vnode,i=Ur(e);Xa(e,n,i,t),Qa(e,o);const r=i?pc(e,t):void 0;return t&&ti(!1),r}function pc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=tr(new Proxy(e.ctx,Fa));const{setup:o}=n;if(o){const i=e.setupContext=o.length>1?gc(e):null,r=Sn(e);yt();const s=ft(o,e,0,[e.props,i]);if(_t(),r(),Ii(s)){if(s.then(qr,qr),t)return s.then(l=>{Yr(e,l,t)}).catch(l=>{Yn(l,e,0)});e.asyncDep=s}else Yr(e,s,t)}else Zr(e,t)}function Yr(e,t,n){re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ve(t)&&(e.setupState=or(t)),Zr(e,n)}let Xr;function Zr(e,t,n){const o=e.type;if(!e.render){if(!t&&Xr&&!o.render){const i=o.template||Yo(e).template;if(i){const{isCustomElement:r,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=Se(Se({isCustomElement:r,delimiters:l},s),a);o.render=Xr(i,c)}}e.render=o.render||He}{const i=Sn(e);yt();try{Ha(e)}finally{_t(),i()}}}function hc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return je(e,"get","$attrs"),t[n]}}))}function gc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return hc(e)},slots:e.slots,emit:e.emit,expose:t}}function ho(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(or(tr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in vn)return vn[n](e)},has(t,n){return n in t||n in vn}}))}const mc=/(?:^|[-_])(\w)/g,vc=e=>e.replace(mc,t=>t.toUpperCase()).replace(/[-_]/g,"");function Gr(e,t=!0){return re(e)?e.displayName||e.name:e.name||t&&e.__name}function Qr(e,t,n=!1){let o=Gr(t);if(!o&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(o=i[1])}if(!o&&e&&e.parent){const i=r=>{for(const s in r)if(r[s]===t)return s};o=i(e.components||e.parent.type.components)||i(e.appContext.components)}return o?vc(o):n?"App":"Anonymous"}function bc(e){return re(e)&&"__vccOpts"in e}const le=(e,t)=>oa(e,t,po);function kn(e,t,n=ae){const o=uo(),i=Ae(t),r=Ve(t),s=ir((a,c)=>{let u;return Ta(()=>{const f=e[t];it(u,f)&&(u=f,c())}),{get(){return a(),n.get?n.get(u):u},set(f){const p=o.vnode.props;!(p&&(t in p||i in p||r in p)&&(`onUpdate:${t}`in p||`onUpdate:${i}`in p||`onUpdate:${r}`in p))&&it(f,u)&&(u=f,c()),o.emit(`update:${t}`,n.set?n.set(f):f)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return s[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?e[l]||{}:s,done:!1}:{done:!0}}}},s}function Jr(e,t,n){const o=arguments.length;return o===2?ve(t)&&!te(t)?lo(t)?ee(e,null,[t]):ee(e,t):ee(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&lo(n)&&(n=[n]),ee(e,t,n))}const yc="3.4.15";/**
|
|
15
|
+
`,...ca(i)),console.warn(...r)}wt()}function aa(){let e=fn[fn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function ca(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
|
|
16
|
+
`],...ua(n))}),t}function ua({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,i=` at <${Jr(e.component,e.type,o)}`,r=">"+n;return e.props?[i,...da(e.props),r]:[i+r]}function da(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...sr(o,e[o]))}),n.length>3&&t.push(" ..."),t}function sr(e,t,n){return ke(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Ee(t)?(t=sr(e,ue(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):se(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ue(t),n?t:[`${e}=`,t])}function ht(e,t,n,o){let i;try{i=o?e(...o):e()}catch(r){Yn(r,t,n)}return i}function Je(e,t,n,o){if(se(e)){const r=ht(e,t,n,o);return r&&Ei(r)&&r.catch(s=>{Yn(s,t,n)}),r}const i=[];for(let r=0;r<e.length;r++)i.push(Je(e[r],t,n,o));return i}function Yn(e,t,n,o=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const c=r.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,l)===!1)return}r=r.parent}const a=t.appContext.config.errorHandler;if(a){ht(a,null,10,[e,s,l]);return}}fa(e,n,i,o)}function fa(e,t,n,o=!0){console.error(e)}let pn=!1,jo=!1;const Pe=[];let st=0;const en=[];let St=null,jt=0;const lr=Promise.resolve();let Bo=null;function gt(e){const t=Bo||lr;return e?t.then(this?e.bind(this):e):t}function pa(e){let t=st+1,n=Pe.length;for(;t<n;){const o=t+n>>>1,i=Pe[o],r=hn(i);r<e||r===e&&i.pre?t=o+1:n=o}return t}function Ro(e){(!Pe.length||!Pe.includes(e,pn&&e.allowRecurse?st+1:st))&&(e.id==null?Pe.push(e):Pe.splice(pa(e.id),0,e),ar())}function ar(){!pn&&!jo&&(jo=!0,Bo=lr.then(dr))}function ha(e){const t=Pe.indexOf(e);t>st&&Pe.splice(t,1)}function ga(e){ee(e)?en.push(...e):(!St||!St.includes(e,e.allowRecurse?jt+1:jt))&&en.push(e),ar()}function cr(e,t,n=pn?st+1:0){for(;n<Pe.length;n++){const o=Pe[n];if(o&&o.pre){if(e&&o.id!==e.uid)continue;Pe.splice(n,1),n--,o()}}}function ur(e){if(en.length){const t=[...new Set(en)].sort((n,o)=>hn(n)-hn(o));if(en.length=0,St){St.push(...t);return}for(St=t,jt=0;jt<St.length;jt++)St[jt]();St=null,jt=0}}const hn=e=>e.id==null?1/0:e.id,ma=(e,t)=>{const n=hn(e)-hn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function dr(e){jo=!1,pn=!0,Pe.sort(ma);const t=qe;try{for(st=0;st<Pe.length;st++){const n=Pe[st];n&&n.active!==!1&&ht(n,null,14)}}finally{st=0,Pe.length=0,ur(),pn=!1,Bo=null,(Pe.length||en.length)&&dr()}}function va(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ce;let i=n;const r=t.startsWith("update:"),s=r&&t.slice(7);if(s&&s in o){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:d,trim:p}=o[u]||ce;p&&(i=n.map(x=>ke(x)?x.trim():x)),d&&(i=n.map(xo))}let l,a=o[l=wo(t)]||o[l=wo(De(t))];!a&&r&&(a=o[l=wo(Ue(t))]),a&&Je(a,e,6,i);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Je(c,e,6,i)}}function fr(e,t,n=!1){const o=t.emitsCache,i=o.get(e);if(i!==void 0)return i;const r=e.emits;let s={},l=!1;if(!se(e)){const a=c=>{const u=fr(c,t,!0);u&&(l=!0,Se(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(be(e)&&o.set(e,null),null):(ee(r)?r.forEach(a=>s[a]=null):Se(s,r),be(e)&&o.set(e,s),s)}function Xn(e,t){return!e||!zn(t)?!1:(t=t.slice(2).replace(/Once$/,""),fe(e,t[0].toLowerCase()+t.slice(1))||fe(e,Ue(t))||fe(e,t))}let $e=null,pr=null;function Zn(e){const t=$e;return $e=e,pr=e&&e.type.__scopeId||null,t}function le(e,t=$e,n){if(!t||e._n)return e;const o=(...i)=>{o._d&&Wr(-1);const r=Zn(t);let s;try{s=e(...i)}finally{Zn(r),o._d&&Wr(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function Jp(){}function No(e){const{type:t,vnode:n,proxy:o,withProxy:i,props:r,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:d,data:p,setupState:x,ctx:C,inheritAttrs:E}=e;let F,k;const H=Zn(e);try{if(n.shapeFlag&4){const W=i||o,_=W;F=at(u.call(_,W,d,r,x,p,C)),k=a}else{const W=t;F=at(W.length>1?W(r,{attrs:a,slots:l,emit:c}):W(r,null)),k=t.props?a:ba(a)}}catch(W){_n.length=0,Yn(W,e,1),F=J(tt)}let y=F;if(k&&E!==!1){const W=Object.keys(k),{shapeFlag:_}=y;W.length&&_&7&&(s&&W.some(bo)&&(k=ya(k,s)),y=It(y,k))}return n.dirs&&(y=It(y),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),F=y,Zn(H),F}const ba=e=>{let t;for(const n in e)(n==="class"||n==="style"||zn(n))&&((t||(t={}))[n]=e[n]);return t},ya=(e,t)=>{const n={};for(const o in e)(!bo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function _a(e,t,n){const{props:o,children:i,component:r}=e,{props:s,children:l,patchFlag:a}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?hr(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const p=u[d];if(s[p]!==o[p]&&!Xn(c,p))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?hr(o,s,c):!0:!!s;return!1}function hr(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let i=0;i<o.length;i++){const r=o[i];if(t[r]!==e[r]&&!Xn(n,r))return!0}return!1}function wa({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=n,t=t.parent;else break}}const gr="components",mr=Symbol.for("v-ndc");function vr(e){return ke(e)?xa(gr,e,!1)||e:e||mr}function xa(e,t,n=!0,o=!1){const i=$e||Me;if(i){const r=i.type;if(e===gr){const l=Qr(r,!1);if(l&&(l===t||l===De(t)||l===Bn(De(t))))return r}const s=br(i[e]||r[e],t)||br(i.appContext[e],t);return!s&&o?r:s}}function br(e,t){return e&&(e[t]||e[De(t)]||e[Bn(De(t))])}const Sa=e=>e.__isSuspense;function ka(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):ga(e)}const Ca=Symbol.for("v-scx"),Ia=()=>Ct(Ca);function Ea(e,t){return Qn(e,null,t)}function Ta(e,t){return Qn(e,null,{flush:"sync"})}const Gn={};function ge(e,t,n){return Qn(e,t,n)}function Qn(e,t,{immediate:n,deep:o,flush:i,once:r,onTrack:s,onTrigger:l}=ce){if(t&&r){const v=t;t=(...P)=>{v(...P),_()}}const a=Me,c=v=>o===!0?v:Bt(v,o===!1?1:void 0);let u,d=!1,p=!1;if(Ee(e)?(u=()=>e.value,d=Un(e)):Qt(e)?(u=()=>c(e),d=!0):ee(e)?(p=!0,d=e.some(v=>Qt(v)||Un(v)),u=()=>e.map(v=>{if(Ee(v))return v.value;if(Qt(v))return c(v);if(se(v))return ht(v,a,2)})):se(e)?t?u=()=>ht(e,a,2):u=()=>(x&&x(),Je(e,a,3,[C])):u=qe,t&&o){const v=u;u=()=>Bt(v())}let x,C=v=>{x=y.onStop=()=>{ht(v,a,4),x=y.onStop=void 0}},E;if(po)if(C=qe,t?n&&Je(t,a,3,[u(),p?[]:void 0,C]):u(),i==="sync"){const v=Ia();E=v.__watcherHandles||(v.__watcherHandles=[])}else return qe;let F=p?new Array(e.length).fill(Gn):Gn;const k=()=>{if(!(!y.active||!y.dirty))if(t){const v=y.run();(o||d||(p?v.some((P,b)=>rt(P,F[b])):rt(v,F)))&&(x&&x(),Je(t,a,3,[v,F===Gn?void 0:p&&F[0]===Gn?[]:F,C]),F=v)}else y.run()};k.allowRecurse=!!t;let H;i==="sync"?H=k:i==="post"?H=()=>Re(k,a&&a.suspense):(k.pre=!0,a&&(k.id=a.uid),H=()=>Ro(k));const y=new Co(u,qe,H),W=zi(),_=()=>{y.stop(),W&&yo(W.effects,y)};return t?n?k():F=y.run():i==="post"?Re(y.run.bind(y),a&&a.suspense):y.run(),E&&E.push(_),_}function $a(e,t,n){const o=this.proxy,i=ke(e)?e.includes(".")?yr(o,e):()=>o[e]:e.bind(o,o);let r;se(t)?r=t:(r=t.handler,n=t);const s=Sn(this),l=Qn(i,r.bind(o),n);return s(),l}function yr(e,t){const n=t.split(".");return()=>{let o=e;for(let i=0;i<n.length&&o;i++)o=o[n[i]];return o}}function Bt(e,t,n=0,o){if(!be(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(o=o||new Set,o.has(e))return e;if(o.add(e),Ee(e))Bt(e.value,t,n,o);else if(ee(e))for(let i=0;i<e.length;i++)Bt(e[i],t,n,o);else if(Ii(e)||Zt(e))e.forEach(i=>{Bt(i,t,n,o)});else if($i(e))for(const i in e)Bt(e[i],t,n,o);return e}function lt(e,t){if($e===null)return e;const n=ho($e)||$e.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,s,l,a=ce]=t[i];r&&(se(r)&&(r={mounted:r,updated:r}),r.deep&&Bt(s),o.push({dir:r,instance:n,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Rt(e,t,n,o){const i=e.dirs,r=t&&t.dirs;for(let s=0;s<i.length;s++){const l=i[s];r&&(l.oldValue=r[s].value);let a=l.dir[o];a&&(_t(),Je(a,n,8,[e.el,l,e,t]),wt())}}const kt=Symbol("_leaveCb"),Jn=Symbol("_enterCb");function Ma(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Be(()=>{e.isMounted=!0}),Wo(()=>{e.isUnmounting=!0}),e}const et=[Function,Array],_r={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:et,onEnter:et,onAfterEnter:et,onEnterCancelled:et,onBeforeLeave:et,onLeave:et,onAfterLeave:et,onLeaveCancelled:et,onBeforeAppear:et,onAppear:et,onAfterAppear:et,onAppearCancelled:et},Oa={name:"BaseTransition",props:_r,setup(e,{slots:t}){const n=uo(),o=Ma();let i;return()=>{const r=t.default&&Sr(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){for(const E of r)if(E.type!==tt){s=E;break}}const l=ue(e),{mode:a}=l;if(o.isLeaving)return Ho(s);const c=xr(s);if(!c)return Ho(s);const u=Fo(c,l,o,n);Vo(c,u);const d=n.subTree,p=d&&xr(d);let x=!1;const{getTransitionKey:C}=c.type;if(C){const E=C();i===void 0?i=E:E!==i&&(i=E,x=!0)}if(p&&p.type!==tt&&(!Ht(c,p)||x)){const E=Fo(p,l,o,n);if(Vo(p,E),a==="out-in")return o.isLeaving=!0,E.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Ho(s);a==="in-out"&&c.type!==tt&&(E.delayLeave=(F,k,H)=>{const y=wr(o,p);y[String(p.key)]=p,F[kt]=()=>{k(),F[kt]=void 0,delete u.delayedLeave},u.delayedLeave=H})}return s}}};function wr(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 Fo(e,t,n,o){const{appear:i,mode:r,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:p,onAfterLeave:x,onLeaveCancelled:C,onBeforeAppear:E,onAppear:F,onAfterAppear:k,onAppearCancelled:H}=t,y=String(e.key),W=wr(n,e),_=(b,T)=>{b&&Je(b,o,9,T)},v=(b,T)=>{const j=T[1];_(b,T),ee(b)?b.every(G=>G.length<=1)&&j():b.length<=1&&j()},P={mode:r,persisted:s,beforeEnter(b){let T=l;if(!n.isMounted)if(i)T=E||l;else return;b[kt]&&b[kt](!0);const j=W[y];j&&Ht(e,j)&&j.el[kt]&&j.el[kt](),_(T,[b])},enter(b){let T=a,j=c,G=u;if(!n.isMounted)if(i)T=F||a,j=k||c,G=H||u;else return;let $=!1;const h=b[Jn]=w=>{$||($=!0,w?_(G,[b]):_(j,[b]),P.delayedLeave&&P.delayedLeave(),b[Jn]=void 0)};T?v(T,[b,h]):h()},leave(b,T){const j=String(e.key);if(b[Jn]&&b[Jn](!0),n.isUnmounting)return T();_(d,[b]);let G=!1;const $=b[kt]=h=>{G||(G=!0,T(),h?_(C,[b]):_(x,[b]),b[kt]=void 0,W[j]===e&&delete W[j])};W[j]=e,p?v(p,[b,$]):$()},clone(b){return Fo(b,t,n,o)}};return P}function Ho(e){if(eo(e))return e=It(e),e.children=null,e}function xr(e){return eo(e)?e.children?e.children[0]:void 0:e}function Vo(e,t){e.shapeFlag&6&&e.component?Vo(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 Sr(e,t=!1,n){let o=[],i=0;for(let r=0;r<e.length;r++){let s=e[r];const l=n==null?s.key:String(n)+String(s.key!=null?s.key:r);s.type===Ie?(s.patchFlag&128&&i++,o=o.concat(Sr(s.children,t,l))):(t||s.type!==tt)&&o.push(l!=null?It(s,{key:l}):s)}if(i>1)for(let r=0;r<o.length;r++)o[r].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function Ce(e,t){return se(e)?(()=>Se({name:e.name},t,{setup:e}))():e}const gn=e=>!!e.type.__asyncLoader,eo=e=>e.type.__isKeepAlive;function Pa(e,t){kr(e,"a",t)}function La(e,t){kr(e,"da",t)}function kr(e,t,n=Me){const o=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(to(t,o,n),n){let i=n.parent;for(;i&&i.parent;)eo(i.parent.vnode)&&za(o,t,n,i),i=i.parent}}function za(e,t,n,o){const i=to(t,e,o,!0);Nt(()=>{yo(o[t],i)},n)}function to(e,t,n=Me,o=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;_t();const l=Sn(n),a=Je(t,n,e,s);return l(),wt(),a});return o?i.unshift(r):i.push(r),r}}const mt=e=>(t,n=Me)=>(!po||e==="sp")&&to(e,(...o)=>t(...o),n),Aa=mt("bm"),Be=mt("m"),Da=mt("bu"),Cr=mt("u"),Wo=mt("bum"),Nt=mt("um"),ja=mt("sp"),Ba=mt("rtg"),Ra=mt("rtc");function Na(e,t=Me){to("ec",e,t)}function mn(e,t,n,o){let i;const r=n&&n[o];if(ee(e)||ke(e)){i=new Array(e.length);for(let s=0,l=e.length;s<l;s++)i[s]=t(e[s],s,void 0,r&&r[s])}else if(typeof e=="number"){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,r&&r[s])}else if(be(e))if(e[Symbol.iterator])i=Array.from(e,(s,l)=>t(s,l,void 0,r&&r[l]));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,a=s.length;l<a;l++){const c=s[l];i[l]=t(e[c],c,l,r&&r[l])}}else i=[];return n&&(n[o]=i),i}function Ir(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(ee(o))for(let i=0;i<o.length;i++)e[o[i].name]=o[i].fn;else o&&(e[o.name]=o.key?(...i)=>{const r=o.fn(...i);return r&&(r.key=o.key),r}:o.fn)}return e}function xe(e,t,n={},o,i){if($e.isCE||$e.parent&&gn($e.parent)&&$e.parent.isCE)return t!=="default"&&(n.name=t),J("slot",n,o&&o());let r=e[t];r&&r._c&&(r._d=!1),A();const s=r&&Er(r(n)),l=he(Ie,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),r&&r._c&&(r._d=!0),l}function Er(e){return e.some(t=>lo(t)?!(t.type===tt||t.type===Ie&&!Er(t.children)):!0)?e:null}const Ko=e=>e?Yr(e)?ho(e)||e.proxy:Ko(e.parent):null,vn=Se(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=>Ko(e.parent),$root:e=>Ko(e.root),$emit:e=>e.emit,$options:e=>Yo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Ro(e.update)}),$nextTick:e=>e.n||(e.n=gt.bind(e.proxy)),$watch:e=>$a.bind(e)}),qo=(e,t)=>e!==ce&&!e.__isScriptSetup&&fe(e,t),Fa={get({_:e},t){const{ctx:n,setupState:o,data:i,props:r,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const x=s[t];if(x!==void 0)switch(x){case 1:return o[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(qo(o,t))return s[t]=1,o[t];if(i!==ce&&fe(i,t))return s[t]=2,i[t];if((c=e.propsOptions[0])&&fe(c,t))return s[t]=3,r[t];if(n!==ce&&fe(n,t))return s[t]=4,n[t];Uo&&(s[t]=0)}}const u=vn[t];let d,p;if(u)return t==="$attrs"&&je(e,"get",t),u(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==ce&&fe(n,t))return s[t]=4,n[t];if(p=a.config.globalProperties,fe(p,t))return p[t]},set({_:e},t,n){const{data:o,setupState:i,ctx:r}=e;return qo(i,t)?(i[t]=n,!0):o!==ce&&fe(o,t)?(o[t]=n,!0):fe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:i,propsOptions:r}},s){let l;return!!n[s]||e!==ce&&fe(e,s)||qo(t,s)||(l=r[0])&&fe(l,s)||fe(o,s)||fe(vn,s)||fe(i.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:fe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function no(e){return ee(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function tn(e,t){return!e||!t?e||t:ee(e)&&ee(t)?e.concat(t):Se({},no(e),no(t))}let Uo=!0;function Ha(e){const t=Yo(e),n=e.proxy,o=e.ctx;Uo=!1,t.beforeCreate&&Tr(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:d,mounted:p,beforeUpdate:x,updated:C,activated:E,deactivated:F,beforeDestroy:k,beforeUnmount:H,destroyed:y,unmounted:W,render:_,renderTracked:v,renderTriggered:P,errorCaptured:b,serverPrefetch:T,expose:j,inheritAttrs:G,components:$,directives:h,filters:w}=t;if(c&&Va(c,o,null),s)for(const z in s){const D=s[z];se(D)&&(o[z]=D.bind(n))}if(i){const z=i.call(n,n);be(z)&&(e.data=cn(z))}if(Uo=!0,r)for(const z in r){const D=r[z],pe=se(D)?D.bind(n,n):se(D.get)?D.get.bind(n,n):qe,de=!se(D)&&se(D.set)?D.set.bind(n):qe,ye=ae({get:pe,set:de});Object.defineProperty(o,z,{enumerable:!0,configurable:!0,get:()=>ye.value,set:_e=>ye.value=_e})}if(l)for(const z in l)$r(l[z],o,n,z);if(a){const z=se(a)?a.call(n):a;Reflect.ownKeys(z).forEach(D=>{yn(D,z[D])})}u&&Tr(u,e,"c");function ie(z,D){ee(D)?D.forEach(pe=>z(pe.bind(n))):D&&z(D.bind(n))}if(ie(Aa,d),ie(Be,p),ie(Da,x),ie(Cr,C),ie(Pa,E),ie(La,F),ie(Na,b),ie(Ra,v),ie(Ba,P),ie(Wo,H),ie(Nt,W),ie(ja,T),ee(j))if(j.length){const z=e.exposed||(e.exposed={});j.forEach(D=>{Object.defineProperty(z,D,{get:()=>n[D],set:pe=>n[D]=pe})})}else e.exposed||(e.exposed={});_&&e.render===qe&&(e.render=_),G!=null&&(e.inheritAttrs=G),$&&(e.components=$),h&&(e.directives=h)}function Va(e,t,n=qe){ee(e)&&(e=Xo(e));for(const o in e){const i=e[o];let r;be(i)?"default"in i?r=Ct(i.from||o,i.default,!0):r=Ct(i.from||o):r=Ct(i),Ee(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[o]=r}}function Tr(e,t,n){Je(ee(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function $r(e,t,n,o){const i=o.includes(".")?yr(n,o):()=>n[o];if(ke(e)){const r=t[e];se(r)&&ge(i,r)}else if(se(e))ge(i,e.bind(n));else if(be(e))if(ee(e))e.forEach(r=>$r(r,t,n,o));else{const r=se(e.handler)?e.handler.bind(n):t[e.handler];se(r)&&ge(i,r,e)}}function Yo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,l=r.get(t);let a;return l?a=l:!i.length&&!n&&!o?a=t:(a={},i.length&&i.forEach(c=>oo(a,c,s,!0)),oo(a,t,s)),be(t)&&r.set(t,a),a}function oo(e,t,n,o=!1){const{mixins:i,extends:r}=t;r&&oo(e,r,n,!0),i&&i.forEach(s=>oo(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=Wa[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Wa={data:Mr,props:Or,emits:Or,methods:bn,computed:bn,beforeCreate:ze,created:ze,beforeMount:ze,mounted:ze,beforeUpdate:ze,updated:ze,beforeDestroy:ze,beforeUnmount:ze,destroyed:ze,unmounted:ze,activated:ze,deactivated:ze,errorCaptured:ze,serverPrefetch:ze,components:bn,directives:bn,watch:qa,provide:Mr,inject:Ka};function Mr(e,t){return t?e?function(){return Se(se(e)?e.call(this,this):e,se(t)?t.call(this,this):t)}:t:e}function Ka(e,t){return bn(Xo(e),Xo(t))}function Xo(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ze(e,t){return e?[...new Set([].concat(e,t))]:t}function bn(e,t){return e?Se(Object.create(null),e,t):t}function Or(e,t){return e?ee(e)&&ee(t)?[...new Set([...e,...t])]:Se(Object.create(null),no(e),no(t??{})):t}function qa(e,t){if(!e)return t;if(!t)return e;const n=Se(Object.create(null),e);for(const o in t)n[o]=ze(e[o],t[o]);return n}function Pr(){return{app:null,config:{isNativeTag:kl,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 Ua=0;function Ya(e,t){return function(o,i=null){se(o)||(o=Se({},o)),i!=null&&!be(i)&&(i=null);const r=Pr(),s=new WeakSet;let l=!1;const a=r.app={_uid:Ua++,_component:o,_props:i,_container:null,_context:r,_instance:null,version:yc,get config(){return r.config},set config(c){},use(c,...u){return s.has(c)||(c&&se(c.install)?(s.add(c),c.install(a,...u)):se(c)&&(s.add(c),c(a,...u))),a},mixin(c){return r.mixins.includes(c)||r.mixins.push(c),a},component(c,u){return u?(r.components[c]=u,a):r.components[c]},directive(c,u){return u?(r.directives[c]=u,a):r.directives[c]},mount(c,u,d){if(!l){const p=J(o,i);return p.appContext=r,d===!0?d="svg":d===!1&&(d=void 0),u&&t?t(p,c):e(p,c,d),l=!0,a._container=c,c.__vue_app__=a,ho(p.component)||p.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return r.provides[c]=u,a},runWithContext(c){io=a;try{return c()}finally{io=null}}};return a}}let io=null;function yn(e,t){if(Me){let n=Me.provides;const o=Me.parent&&Me.parent.provides;o===n&&(n=Me.provides=Object.create(o)),n[e]=t}}function Ct(e,t,n=!1){const o=Me||$e;if(o||io){const i=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:io._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&se(t)?t.call(o&&o.proxy):t}}function Xa(e,t,n,o=!1){const i={},r={};Nn(r,ao,1),e.propsDefaults=Object.create(null),Lr(e,t,i,r);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=o?i:na(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function Za(e,t,n,o){const{props:i,attrs:r,vnode:{patchFlag:s}}=e,l=ue(i),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let p=u[d];if(Xn(e.emitsOptions,p))continue;const x=t[p];if(a)if(fe(r,p))x!==r[p]&&(r[p]=x,c=!0);else{const C=De(p);i[C]=Zo(a,l,C,x,e,!1)}else x!==r[p]&&(r[p]=x,c=!0)}}}else{Lr(e,t,i,r)&&(c=!0);let u;for(const d in l)(!t||!fe(t,d)&&((u=Ue(d))===d||!fe(t,u)))&&(a?n&&(n[d]!==void 0||n[u]!==void 0)&&(i[d]=Zo(a,l,d,void 0,e,!0)):delete i[d]);if(r!==l)for(const d in r)(!t||!fe(t,d))&&(delete r[d],c=!0)}c&&pt(e,"set","$attrs")}function Lr(e,t,n,o){const[i,r]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(Dn(a))continue;const c=t[a];let u;i&&fe(i,u=De(a))?!r||!r.includes(u)?n[u]=c:(l||(l={}))[u]=c:Xn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(r){const a=ue(n),c=l||ce;for(let u=0;u<r.length;u++){const d=r[u];n[d]=Zo(i,a,d,c[d],e,!fe(c,d))}}return s}function Zo(e,t,n,o,i,r){const s=e[n];if(s!=null){const l=fe(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&se(a)){const{propsDefaults:c}=i;if(n in c)o=c[n];else{const u=Sn(i);o=c[n]=a.call(null,t),u()}}else o=a}s[0]&&(r&&!l?o=!1:s[1]&&(o===""||o===Ue(n))&&(o=!0))}return o}function zr(e,t,n=!1){const o=t.propsCache,i=o.get(e);if(i)return i;const r=e.props,s={},l=[];let a=!1;if(!se(e)){const u=d=>{a=!0;const[p,x]=zr(d,t,!0);Se(s,p),x&&l.push(...x)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!a)return be(e)&&o.set(e,Qe),Qe;if(ee(r))for(let u=0;u<r.length;u++){const d=De(r[u]);Ar(d)&&(s[d]=ce)}else if(r)for(const u in r){const d=De(u);if(Ar(d)){const p=r[u],x=s[d]=ee(p)||se(p)?{type:p}:Se({},p);if(x){const C=Br(Boolean,x.type),E=Br(String,x.type);x[0]=C>-1,x[1]=E<0||C<E,(C>-1||fe(x,"default"))&&l.push(d)}}}const c=[s,l];return be(e)&&o.set(e,c),c}function Ar(e){return e[0]!=="$"}function Dr(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function jr(e,t){return Dr(e)===Dr(t)}function Br(e,t){return ee(t)?t.findIndex(n=>jr(n,e)):se(t)&&jr(t,e)?0:-1}const Rr=e=>e[0]==="_"||e==="$stable",Go=e=>ee(e)?e.map(at):[at(e)],Ga=(e,t,n)=>{if(t._n)return t;const o=le((...i)=>Go(t(...i)),n);return o._c=!1,o},Nr=(e,t,n)=>{const o=e._ctx;for(const i in e){if(Rr(i))continue;const r=e[i];if(se(r))t[i]=Ga(i,r,o);else if(r!=null){const s=Go(r);t[i]=()=>s}}},Fr=(e,t)=>{const n=Go(t);e.slots.default=()=>n},Qa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ue(t),Nn(t,"_",n)):Nr(t,e.slots={})}else e.slots={},t&&Fr(e,t);Nn(e.slots,ao,1)},Ja=(e,t,n)=>{const{vnode:o,slots:i}=e;let r=!0,s=ce;if(o.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:(Se(i,t),!n&&l===1&&delete i._):(r=!t.$stable,Nr(t,i)),s=t}else t&&(Fr(e,t),s={default:1});if(r)for(const l in i)!Rr(l)&&s[l]==null&&delete i[l]};function Qo(e,t,n,o,i=!1){if(ee(e)){e.forEach((p,x)=>Qo(p,t&&(ee(t)?t[x]:t),n,o,i));return}if(gn(o)&&!i)return;const r=o.shapeFlag&4?ho(o.component)||o.component.proxy:o.el,s=i?null:r,{i:l,r:a}=e,c=t&&t.r,u=l.refs===ce?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(ke(c)?(u[c]=null,fe(d,c)&&(d[c]=null)):Ee(c)&&(c.value=null)),se(a))ht(a,l,12,[s,u]);else{const p=ke(a),x=Ee(a),C=e.f;if(p||x){const E=()=>{if(C){const F=p?fe(d,a)?d[a]:u[a]:a.value;i?ee(F)&&yo(F,r):ee(F)?F.includes(r)||F.push(r):p?(u[a]=[r],fe(d,a)&&(d[a]=u[a])):(a.value=[r],e.k&&(u[e.k]=a.value))}else p?(u[a]=s,fe(d,a)&&(d[a]=s)):x&&(a.value=s,e.k&&(u[e.k]=s))};i||C?E():(E.id=-1,Re(E,n))}}}const Re=ka;function ec(e){return tc(e)}function tc(e,t){const n=Oi();n.__VUE__=!0;const{insert:o,remove:i,patchProp:r,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:p,setScopeId:x=qe,insertStaticContent:C}=e,E=(f,g,S,M=null,I=null,N=null,V=void 0,B=null,R=!!g.dynamicChildren)=>{if(f===g)return;f&&!Ht(f,g)&&(M=vt(f),_e(f,I,N,!0),f=null),g.patchFlag===-2&&(R=!1,g.dynamicChildren=null);const{type:O,ref:K,shapeFlag:te}=g;switch(O){case ro:F(f,g,S,M);break;case tt:k(f,g,S,M);break;case so:f==null&&H(g,S,M,V);break;case Ie:$(f,g,S,M,I,N,V,B,R);break;default:te&1?_(f,g,S,M,I,N,V,B,R):te&6?h(f,g,S,M,I,N,V,B,R):(te&64||te&128)&&O.process(f,g,S,M,I,N,V,B,R,We)}K!=null&&I&&Qo(K,f&&f.ref,N,g||f,!g)},F=(f,g,S,M)=>{if(f==null)o(g.el=l(g.children),S,M);else{const I=g.el=f.el;g.children!==f.children&&c(I,g.children)}},k=(f,g,S,M)=>{f==null?o(g.el=a(g.children||""),S,M):g.el=f.el},H=(f,g,S,M)=>{[f.el,f.anchor]=C(f.children,g,S,M,f.el,f.anchor)},y=({el:f,anchor:g},S,M)=>{let I;for(;f&&f!==g;)I=p(f),o(f,S,M),f=I;o(g,S,M)},W=({el:f,anchor:g})=>{let S;for(;f&&f!==g;)S=p(f),i(f),f=S;i(g)},_=(f,g,S,M,I,N,V,B,R)=>{g.type==="svg"?V="svg":g.type==="math"&&(V="mathml"),f==null?v(g,S,M,I,N,V,B,R):T(f,g,I,N,V,B,R)},v=(f,g,S,M,I,N,V,B)=>{let R,O;const{props:K,shapeFlag:te,transition:Q,dirs:oe}=f;if(R=f.el=s(f.type,N,K&&K.is,K),te&8?u(R,f.children):te&16&&b(f.children,R,null,M,I,Jo(f,N),V,B),oe&&Rt(f,null,M,"created"),P(R,f,f.scopeId,V,M),K){for(const L in K)L!=="value"&&!Dn(L)&&r(R,L,null,K[L],N,f.children,M,I,He);"value"in K&&r(R,"value",null,K.value,N),(O=K.onVnodeBeforeMount)&&ct(O,M,f)}oe&&Rt(f,null,M,"beforeMount");const m=nc(I,Q);m&&Q.beforeEnter(R),o(R,g,S),((O=K&&K.onVnodeMounted)||m||oe)&&Re(()=>{O&&ct(O,M,f),m&&Q.enter(R),oe&&Rt(f,null,M,"mounted")},I)},P=(f,g,S,M,I)=>{if(S&&x(f,S),M)for(let N=0;N<M.length;N++)x(f,M[N]);if(I){let N=I.subTree;if(g===N){const V=I.vnode;P(f,V,V.scopeId,V.slotScopeIds,I.parent)}}},b=(f,g,S,M,I,N,V,B,R=0)=>{for(let O=R;O<f.length;O++){const K=f[O]=B?Tt(f[O]):at(f[O]);E(null,K,g,S,M,I,N,V,B)}},T=(f,g,S,M,I,N,V)=>{const B=g.el=f.el;let{patchFlag:R,dynamicChildren:O,dirs:K}=g;R|=f.patchFlag&16;const te=f.props||ce,Q=g.props||ce;let oe;if(S&&Ft(S,!1),(oe=Q.onVnodeBeforeUpdate)&&ct(oe,S,g,f),K&&Rt(g,f,S,"beforeUpdate"),S&&Ft(S,!0),O?j(f.dynamicChildren,O,B,S,M,Jo(g,I),N):V||D(f,g,B,null,S,M,Jo(g,I),N,!1),R>0){if(R&16)G(B,g,te,Q,S,M,I);else if(R&2&&te.class!==Q.class&&r(B,"class",null,Q.class,I),R&4&&r(B,"style",te.style,Q.style,I),R&8){const m=g.dynamicProps;for(let L=0;L<m.length;L++){const ne=m[L],re=te[ne],Ae=Q[ne];(Ae!==re||ne==="value")&&r(B,ne,re,Ae,I,f.children,S,M,He)}}R&1&&f.children!==g.children&&u(B,g.children)}else!V&&O==null&&G(B,g,te,Q,S,M,I);((oe=Q.onVnodeUpdated)||K)&&Re(()=>{oe&&ct(oe,S,g,f),K&&Rt(g,f,S,"updated")},M)},j=(f,g,S,M,I,N,V)=>{for(let B=0;B<g.length;B++){const R=f[B],O=g[B],K=R.el&&(R.type===Ie||!Ht(R,O)||R.shapeFlag&70)?d(R.el):S;E(R,O,K,null,M,I,N,V,!0)}},G=(f,g,S,M,I,N,V)=>{if(S!==M){if(S!==ce)for(const B in S)!Dn(B)&&!(B in M)&&r(f,B,S[B],null,V,g.children,I,N,He);for(const B in M){if(Dn(B))continue;const R=M[B],O=S[B];R!==O&&B!=="value"&&r(f,B,O,R,V,g.children,I,N,He)}"value"in M&&r(f,"value",S.value,M.value,V)}},$=(f,g,S,M,I,N,V,B,R)=>{const O=g.el=f?f.el:l(""),K=g.anchor=f?f.anchor:l("");let{patchFlag:te,dynamicChildren:Q,slotScopeIds:oe}=g;oe&&(B=B?B.concat(oe):oe),f==null?(o(O,S,M),o(K,S,M),b(g.children||[],S,K,I,N,V,B,R)):te>0&&te&64&&Q&&f.dynamicChildren?(j(f.dynamicChildren,Q,S,I,N,V,B),(g.key!=null||I&&g===I.subTree)&&Hr(f,g,!0)):D(f,g,S,K,I,N,V,B,R)},h=(f,g,S,M,I,N,V,B,R)=>{g.slotScopeIds=B,f==null?g.shapeFlag&512?I.ctx.activate(g,S,M,V,R):w(g,S,M,I,N,V,R):Y(f,g,R)},w=(f,g,S,M,I,N,V)=>{const B=f.component=dc(f,M,I);if(eo(f)&&(B.ctx.renderer=We),fc(B),B.asyncDep){if(I&&I.registerDep(B,ie),!f.el){const R=B.subTree=J(tt);k(null,R,g,S)}}else ie(B,f,g,S,I,N,V)},Y=(f,g,S)=>{const M=g.component=f.component;if(_a(f,g,S))if(M.asyncDep&&!M.asyncResolved){z(M,g,S);return}else M.next=g,ha(M.update),M.effect.dirty=!0,M.update();else g.el=f.el,M.vnode=g},ie=(f,g,S,M,I,N,V)=>{const B=()=>{if(f.isMounted){let{next:K,bu:te,u:Q,parent:oe,vnode:m}=f;{const an=Vr(f);if(an){K&&(K.el=m.el,z(f,K,V)),an.asyncDep.then(()=>{f.isUnmounted||B()});return}}let L=K,ne;Ft(f,!1),K?(K.el=m.el,z(f,K,V)):K=m,te&&Rn(te),(ne=K.props&&K.props.onVnodeBeforeUpdate)&&ct(ne,oe,K,m),Ft(f,!0);const re=No(f),Ae=f.subTree;f.subTree=re,E(Ae,re,d(Ae.el),vt(Ae),f,I,N),K.el=re.el,L===null&&wa(f,re.el),Q&&Re(Q,I),(ne=K.props&&K.props.onVnodeUpdated)&&Re(()=>ct(ne,oe,K,m),I)}else{let K;const{el:te,props:Q}=g,{bm:oe,m,parent:L}=f,ne=gn(g);if(Ft(f,!1),oe&&Rn(oe),!ne&&(K=Q&&Q.onVnodeBeforeMount)&&ct(K,L,g),Ft(f,!0),te&&Pn){const re=()=>{f.subTree=No(f),Pn(te,f.subTree,f,I,null)};ne?g.type.__asyncLoader().then(()=>!f.isUnmounted&&re()):re()}else{const re=f.subTree=No(f);E(null,re,S,M,f,I,N),g.el=re.el}if(m&&Re(m,I),!ne&&(K=Q&&Q.onVnodeMounted)){const re=g;Re(()=>ct(K,L,re),I)}(g.shapeFlag&256||L&&gn(L.vnode)&&L.vnode.shapeFlag&256)&&f.a&&Re(f.a,I),f.isMounted=!0,g=S=M=null}},R=f.effect=new Co(B,qe,()=>Ro(O),f.scope),O=f.update=()=>{R.dirty&&R.run()};O.id=f.uid,Ft(f,!0),O()},z=(f,g,S)=>{g.component=f;const M=f.vnode.props;f.vnode=g,f.next=null,Za(f,g.props,M,S),Ja(f,g.children,S),_t(),cr(f),wt()},D=(f,g,S,M,I,N,V,B,R=!1)=>{const O=f&&f.children,K=f?f.shapeFlag:0,te=g.children,{patchFlag:Q,shapeFlag:oe}=g;if(Q>0){if(Q&128){de(O,te,S,M,I,N,V,B,R);return}else if(Q&256){pe(O,te,S,M,I,N,V,B,R);return}}oe&8?(K&16&&He(O,I,N),te!==O&&u(S,te)):K&16?oe&16?de(O,te,S,M,I,N,V,B,R):He(O,I,N,!0):(K&8&&u(S,""),oe&16&&b(te,S,M,I,N,V,B,R))},pe=(f,g,S,M,I,N,V,B,R)=>{f=f||Qe,g=g||Qe;const O=f.length,K=g.length,te=Math.min(O,K);let Q;for(Q=0;Q<te;Q++){const oe=g[Q]=R?Tt(g[Q]):at(g[Q]);E(f[Q],oe,S,null,I,N,V,B,R)}O>K?He(f,I,N,!0,!1,te):b(g,S,M,I,N,V,B,R,te)},de=(f,g,S,M,I,N,V,B,R)=>{let O=0;const K=g.length;let te=f.length-1,Q=K-1;for(;O<=te&&O<=Q;){const oe=f[O],m=g[O]=R?Tt(g[O]):at(g[O]);if(Ht(oe,m))E(oe,m,S,null,I,N,V,B,R);else break;O++}for(;O<=te&&O<=Q;){const oe=f[te],m=g[Q]=R?Tt(g[Q]):at(g[Q]);if(Ht(oe,m))E(oe,m,S,null,I,N,V,B,R);else break;te--,Q--}if(O>te){if(O<=Q){const oe=Q+1,m=oe<K?g[oe].el:M;for(;O<=Q;)E(null,g[O]=R?Tt(g[O]):at(g[O]),S,m,I,N,V,B,R),O++}}else if(O>Q)for(;O<=te;)_e(f[O],I,N,!0),O++;else{const oe=O,m=O,L=new Map;for(O=m;O<=Q;O++){const Ge=g[O]=R?Tt(g[O]):at(g[O]);Ge.key!=null&&L.set(Ge.key,O)}let ne,re=0;const Ae=Q-m+1;let an=!1,wl=0;const Ln=new Array(Ae);for(O=0;O<Ae;O++)Ln[O]=0;for(O=oe;O<=te;O++){const Ge=f[O];if(re>=Ae){_e(Ge,I,N,!0);continue}let ft;if(Ge.key!=null)ft=L.get(Ge.key);else for(ne=m;ne<=Q;ne++)if(Ln[ne-m]===0&&Ht(Ge,g[ne])){ft=ne;break}ft===void 0?_e(Ge,I,N,!0):(Ln[ft-m]=O+1,ft>=wl?wl=ft:an=!0,E(Ge,g[ft],S,null,I,N,V,B,R),re++)}const xl=an?oc(Ln):Qe;for(ne=xl.length-1,O=Ae-1;O>=0;O--){const Ge=m+O,ft=g[Ge],Sl=Ge+1<K?g[Ge+1].el:M;Ln[O]===0?E(null,ft,S,Sl,I,N,V,B,R):an&&(ne<0||O!==xl[ne]?ye(ft,S,Sl,2):ne--)}}},ye=(f,g,S,M,I=null)=>{const{el:N,type:V,transition:B,children:R,shapeFlag:O}=f;if(O&6){ye(f.component.subTree,g,S,M);return}if(O&128){f.suspense.move(g,S,M);return}if(O&64){V.move(f,g,S,We);return}if(V===Ie){o(N,g,S);for(let te=0;te<R.length;te++)ye(R[te],g,S,M);o(f.anchor,g,S);return}if(V===so){y(f,g,S);return}if(M!==2&&O&1&&B)if(M===0)B.beforeEnter(N),o(N,g,S),Re(()=>B.enter(N),I);else{const{leave:te,delayLeave:Q,afterLeave:oe}=B,m=()=>o(N,g,S),L=()=>{te(N,()=>{m(),oe&&oe()})};Q?Q(N,m,L):L()}else o(N,g,S)},_e=(f,g,S,M=!1,I=!1)=>{const{type:N,props:V,ref:B,children:R,dynamicChildren:O,shapeFlag:K,patchFlag:te,dirs:Q}=f;if(B!=null&&Qo(B,null,S,f,!0),K&256){g.ctx.deactivate(f);return}const oe=K&1&&Q,m=!gn(f);let L;if(m&&(L=V&&V.onVnodeBeforeUnmount)&&ct(L,g,f),K&6)zt(f.component,S,M);else{if(K&128){f.suspense.unmount(S,M);return}oe&&Rt(f,null,g,"beforeUnmount"),K&64?f.type.remove(f,g,S,I,We,M):O&&(N!==Ie||te>0&&te&64)?He(O,g,S,!1,!0):(N===Ie&&te&384||!I&&K&16)&&He(R,g,S),M&&Oe(f)}(m&&(L=V&&V.onVnodeUnmounted)||oe)&&Re(()=>{L&&ct(L,g,f),oe&&Rt(f,null,g,"unmounted")},S)},Oe=f=>{const{type:g,el:S,anchor:M,transition:I}=f;if(g===Ie){Xt(S,M);return}if(g===so){W(f);return}const N=()=>{i(S),I&&!I.persisted&&I.afterLeave&&I.afterLeave()};if(f.shapeFlag&1&&I&&!I.persisted){const{leave:V,delayLeave:B}=I,R=()=>V(S,N);B?B(f.el,N,R):R()}else N()},Xt=(f,g)=>{let S;for(;f!==g;)S=p(f),i(f),f=S;i(g)},zt=(f,g,S)=>{const{bum:M,scope:I,update:N,subTree:V,um:B}=f;M&&Rn(M),I.stop(),N&&(N.active=!1,_e(V,f,g,S)),B&&Re(B,g),Re(()=>{f.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},He=(f,g,S,M=!1,I=!1,N=0)=>{for(let V=N;V<f.length;V++)_e(f[V],g,S,M,I)},vt=f=>f.shapeFlag&6?vt(f.component.subTree):f.shapeFlag&128?f.suspense.next():p(f.anchor||f.el);let bt=!1;const Ve=(f,g,S)=>{f==null?g._vnode&&_e(g._vnode,null,null,!0):E(g._vnode||null,f,g,null,null,null,S),bt||(bt=!0,cr(),ur(),bt=!1),g._vnode=f},We={p:E,um:_e,m:ye,r:Oe,mt:w,mc:b,pc:D,pbc:j,n:vt,o:e};let it,Pn;return t&&([it,Pn]=t(We)),{render:Ve,hydrate:it,createApp:Ya(Ve,it)}}function Jo({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ft({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function nc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Hr(e,t,n=!1){const o=e.children,i=t.children;if(ee(o)&&ee(i))for(let r=0;r<o.length;r++){const s=o[r];let l=i[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=i[r]=Tt(i[r]),l.el=s.el),n||Hr(s,l)),l.type===ro&&(l.el=s.el)}}function oc(e){const t=e.slice(),n=[0];let o,i,r,s,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(i=n[n.length-1],e[i]<c){t[o]=i,n.push(o);continue}for(r=0,s=n.length-1;r<s;)l=r+s>>1,e[n[l]]<c?r=l+1:s=l;c<e[n[r]]&&(r>0&&(t[o]=n[r-1]),n[r]=o)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}function Vr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vr(t)}const ic=e=>e.__isTeleport,Ie=Symbol.for("v-fgt"),ro=Symbol.for("v-txt"),tt=Symbol.for("v-cmt"),so=Symbol.for("v-stc"),_n=[];let ot=null;function A(e=!1){_n.push(ot=e?null:[])}function rc(){_n.pop(),ot=_n[_n.length-1]||null}let wn=1;function Wr(e){wn+=e}function Kr(e){return e.dynamicChildren=wn>0?ot||Qe:null,rc(),wn>0&&ot&&ot.push(e),e}function U(e,t,n,o,i,r){return Kr(Z(e,t,n,o,i,r,!0))}function he(e,t,n,o,i){return Kr(J(e,t,n,o,i,!0))}function lo(e){return e?e.__v_isVNode===!0:!1}function Ht(e,t){return e.type===t.type&&e.key===t.key}const ao="__vInternal",qr=({key:e})=>e??null,co=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ke(e)||Ee(e)||se(e)?{i:$e,r:e,k:t,f:!!n}:e:null);function Z(e,t=null,n=null,o=0,i=null,r=e===Ie?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&qr(t),ref:t&&co(t),scopeId:pr,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:r,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:$e};return l?(ei(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=ke(n)?8:16),wn>0&&!s&&ot&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&ot.push(a),a}const J=sc;function sc(e,t=null,n=null,o=0,i=null,r=!1){if((!e||e===mr)&&(e=tt),lo(e)){const l=It(e,t,!0);return n&&ei(l,n),wn>0&&!r&&ot&&(l.shapeFlag&6?ot[ot.indexOf(e)]=l:ot.push(l)),l.patchFlag|=-2,l}if(bc(e)&&(e=e.__vccOpts),t){t=lc(t);let{class:l,style:a}=t;l&&!ke(l)&&(t.class=Te(l)),be(a)&&(tr(a)&&!ee(a)&&(a=Se({},a)),t.style=Le(a))}const s=ke(e)?1:Sa(e)?128:ic(e)?64:be(e)?4:se(e)?2:0;return Z(e,t,n,o,i,s,r,!0)}function lc(e){return e?tr(e)||ao in e?Se({},e):e:null}function It(e,t,n=!1){const{props:o,ref:i,patchFlag:r,children:s}=e,l=t?xn(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&qr(l),ref:t&&t.ref?n&&i?ee(i)?i.concat(co(t)):[i,co(t)]:co(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ie?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&It(e.ssContent),ssFallback:e.ssFallback&&It(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Et(e=" ",t=0){return J(ro,null,e,t)}function ac(e,t){const n=J(so,null,e);return n.staticCount=t,n}function we(e="",t=!1){return t?(A(),he(tt,null,e)):J(tt,null,e)}function at(e){return e==null||typeof e=="boolean"?J(tt):ee(e)?J(Ie,null,e.slice()):typeof e=="object"?Tt(e):J(ro,null,String(e))}function Tt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:It(e)}function ei(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ee(t))n=16;else if(typeof t=="object")if(o&65){const i=t.default;i&&(i._c&&(i._d=!1),ei(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(ao in t)?t._ctx=$e:i===3&&$e&&($e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else se(t)?(t={default:t,_ctx:$e},n=32):(t=String(t),o&64?(n=16,t=[Et(t)]):n=8);e.children=t,e.shapeFlag|=n}function xn(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const i in o)if(i==="class")t.class!==o.class&&(t.class=Te([t.class,o.class]));else if(i==="style")t.style=Le([t.style,o.style]);else if(zn(i)){const r=t[i],s=o[i];s&&r!==s&&!(ee(r)&&r.includes(s))&&(t[i]=r?[].concat(r,s):s)}else i!==""&&(t[i]=o[i])}return t}function ct(e,t,n,o=null){Je(e,t,7,[n,o])}const cc=Pr();let uc=0;function dc(e,t,n){const o=e.type,i=(t?t.appContext:e.appContext)||cc,r={uid:uc++,vnode:e,type:o,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new zl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:zr(o,i),emitsOptions:fr(o,i),emit:null,emitted:null,propsDefaults:ce,inheritAttrs:o.inheritAttrs,ctx:ce,data:ce,props:ce,attrs:ce,slots:ce,refs:ce,setupState:ce,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 r.ctx={_:r},r.root=t?t.root:r,r.emit=va.bind(null,r),e.ce&&e.ce(r),r}let Me=null;const uo=()=>Me||$e;let fo,ti;{const e=Oi(),t=(n,o)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(o),r=>{i.length>1?i.forEach(s=>s(r)):i[0](r)}};fo=t("__VUE_INSTANCE_SETTERS__",n=>Me=n),ti=t("__VUE_SSR_SETTERS__",n=>po=n)}const Sn=e=>{const t=Me;return fo(e),e.scope.on(),()=>{e.scope.off(),fo(t)}},Ur=()=>{Me&&Me.scope.off(),fo(null)};function Yr(e){return e.vnode.shapeFlag&4}let po=!1;function fc(e,t=!1){t&&ti(t);const{props:n,children:o}=e.vnode,i=Yr(e);Xa(e,n,i,t),Qa(e,o);const r=i?pc(e,t):void 0;return t&&ti(!1),r}function pc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=nr(new Proxy(e.ctx,Fa));const{setup:o}=n;if(o){const i=e.setupContext=o.length>1?gc(e):null,r=Sn(e);_t();const s=ht(o,e,0,[e.props,i]);if(wt(),r(),Ei(s)){if(s.then(Ur,Ur),t)return s.then(l=>{Xr(e,l,t)}).catch(l=>{Yn(l,e,0)});e.asyncDep=s}else Xr(e,s,t)}else Gr(e,t)}function Xr(e,t,n){se(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:be(t)&&(e.setupState=ir(t)),Gr(e,n)}let Zr;function Gr(e,t,n){const o=e.type;if(!e.render){if(!t&&Zr&&!o.render){const i=o.template||Yo(e).template;if(i){const{isCustomElement:r,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=Se(Se({isCustomElement:r,delimiters:l},s),a);o.render=Zr(i,c)}}e.render=o.render||qe}{const i=Sn(e);_t();try{Ha(e)}finally{wt(),i()}}}function hc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return je(e,"get","$attrs"),t[n]}}))}function gc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return hc(e)},slots:e.slots,emit:e.emit,expose:t}}function ho(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ir(nr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in vn)return vn[n](e)},has(t,n){return n in t||n in vn}}))}const mc=/(?:^|[-_])(\w)/g,vc=e=>e.replace(mc,t=>t.toUpperCase()).replace(/[-_]/g,"");function Qr(e,t=!0){return se(e)?e.displayName||e.name:e.name||t&&e.__name}function Jr(e,t,n=!1){let o=Qr(t);if(!o&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(o=i[1])}if(!o&&e&&e.parent){const i=r=>{for(const s in r)if(r[s]===t)return s};o=i(e.components||e.parent.type.components)||i(e.appContext.components)}return o?vc(o):n?"App":"Anonymous"}function bc(e){return se(e)&&"__vccOpts"in e}const ae=(e,t)=>oa(e,t,po);function kn(e,t,n=ce){const o=uo(),i=De(t),r=Ue(t),s=rr((a,c)=>{let u;return Ta(()=>{const d=e[t];rt(u,d)&&(u=d,c())}),{get(){return a(),n.get?n.get(u):u},set(d){const p=o.vnode.props;!(p&&(t in p||i in p||r in p)&&(`onUpdate:${t}`in p||`onUpdate:${i}`in p||`onUpdate:${r}`in p))&&rt(d,u)&&(u=d,c()),o.emit(`update:${t}`,n.set?n.set(d):d)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return s[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?e[l]||{}:s,done:!1}:{done:!0}}}},s}function es(e,t,n){const o=arguments.length;return o===2?be(t)&&!ee(t)?lo(t)?J(e,null,[t]):J(e,t):J(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&lo(n)&&(n=[n]),J(e,t,n))}const yc="3.4.15";/**
|
|
17
17
|
* @vue/runtime-dom v3.4.15
|
|
18
18
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
19
19
|
* @license MIT
|
|
20
|
-
**/const _c="http://www.w3.org/2000/svg",wc="http://www.w3.org/1998/Math/MathML",Tt=typeof document<"u"?document:null,es=Tt&&Tt.createElement("template"),xc={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 i=t==="svg"?Tt.createElementNS(_c,e):t==="mathml"?Tt.createElementNS(wc,e):Tt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&i.setAttribute("multiple",o.multiple),i},createText:e=>Tt.createTextNode(e),createComment:e=>Tt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Tt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,i,r){const s=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{es.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=es.content;if(o==="svg"||o==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},$t="transition",Cn="animation",In=Symbol("_vtc"),nn=(e,{slots:t})=>Jr(Pa,Sc(e),t);nn.displayName="Transition";const ts={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};nn.props=Se({},yr,ts);const Wt=(e,t=[])=>{te(e)?e.forEach(n=>n(...t)):e&&e(...t)},ns=e=>e?te(e)?e.some(t=>t.length>1):e.length>1:!1;function Sc(e){const t={};for(const v in e)v in ts||(t[v]=e[v]);if(e.css===!1)return t;const{name:n="v",type:o,duration:i,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=r,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:w=`${n}-leave-to`}=e,P=kc(i),E=P&&P[0],N=P&&P[1],{onBeforeEnter:I,onEnter:R,onEnterCancelled:x,onLeave:H,onLeaveCancelled:_,onBeforeAppear:b=I,onAppear:z=R,onAppearCancelled:y=x}=t,T=(v,g,C)=>{Kt(v,g?u:l),Kt(v,g?c:s),C&&C()},j=(v,g)=>{v._isLeaving=!1,Kt(v,f),Kt(v,w),Kt(v,p),g&&g()},Q=v=>(g,C)=>{const Z=v?z:R,ne=()=>T(g,v,C);Wt(Z,[g,ne]),os(()=>{Kt(g,v?a:r),Mt(g,v?u:l),ns(Z)||is(g,o,E,ne)})};return Se(t,{onBeforeEnter(v){Wt(I,[v]),Mt(v,r),Mt(v,s)},onBeforeAppear(v){Wt(b,[v]),Mt(v,a),Mt(v,c)},onEnter:Q(!1),onAppear:Q(!0),onLeave(v,g){v._isLeaving=!0;const C=()=>j(v,g);Mt(v,f),Ec(),Mt(v,p),os(()=>{v._isLeaving&&(Kt(v,f),Mt(v,w),ns(H)||is(v,o,N,C))}),Wt(H,[v,C])},onEnterCancelled(v){T(v,!1),Wt(x,[v])},onAppearCancelled(v){T(v,!0),Wt(y,[v])},onLeaveCancelled(v){j(v),Wt(_,[v])}})}function kc(e){if(e==null)return null;if(ve(e))return[ni(e.enter),ni(e.leave)];{const t=ni(e);return[t,t]}}function ni(e){return So(e)}function Mt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[In]||(e[In]=new Set)).add(t)}function Kt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[In];n&&(n.delete(t),n.size||(e[In]=void 0))}function os(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Cc=0;function is(e,t,n,o){const i=e._endId=++Cc,r=()=>{i===e._endId&&o()};if(n)return setTimeout(r,n);const{type:s,timeout:l,propCount:a}=Ic(e,t);if(!s)return o();const c=s+"end";let u=0;const f=()=>{e.removeEventListener(c,p),r()},p=w=>{w.target===e&&++u>=a&&f()};setTimeout(()=>{u<a&&f()},l+1),e.addEventListener(c,p)}function Ic(e,t){const n=window.getComputedStyle(e),o=P=>(n[P]||"").split(", "),i=o(`${$t}Delay`),r=o(`${$t}Duration`),s=rs(i,r),l=o(`${Cn}Delay`),a=o(`${Cn}Duration`),c=rs(l,a);let u=null,f=0,p=0;t===$t?s>0&&(u=$t,f=s,p=r.length):t===Cn?c>0&&(u=Cn,f=c,p=a.length):(f=Math.max(s,c),u=f>0?s>c?$t:Cn:null,p=u?u===$t?r.length:a.length:0);const w=u===$t&&/\b(transform|all)(,|$)/.test(o(`${$t}Property`).toString());return{type:u,timeout:f,propCount:p,hasTransform:w}}function rs(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>ss(n)+ss(e[o])))}function ss(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ec(){return document.body.offsetHeight}function Tc(e,t,n){const o=e[In];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const oi=Symbol("_vod"),$c={beforeMount(e,{value:t},{transition:n}){e[oi]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):En(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),En(e,!0),o.enter(e)):o.leave(e,()=>{En(e,!1)}):En(e,t))},beforeUnmount(e,{value:t}){En(e,t)}};function En(e,t){e.style.display=t?e[oi]:"none"}const Mc=Symbol("");function Pc(e,t,n){const o=e.style,i=o.display,r=ke(n);if(n&&!r){if(t&&!ke(t))for(const s in t)n[s]==null&&ii(o,s,"");for(const s in n)ii(o,s,n[s])}else if(r){if(t!==n){const s=o[Mc];s&&(n+=";"+s),o.cssText=n}}else t&&e.removeAttribute("style");oi in e&&(o.display=i)}const ls=/\s*!important$/;function ii(e,t,n){if(te(n))n.forEach(o=>ii(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Oc(e,t);ls.test(n)?e.setProperty(Ve(o),n.replace(ls,""),"important"):e[o]=n}}const as=["Webkit","Moz","ms"],ri={};function Oc(e,t){const n=ri[t];if(n)return n;let o=Ae(t);if(o!=="filter"&&o in e)return ri[t]=o;o=Bn(o);for(let i=0;i<as.length;i++){const r=as[i]+o;if(r in e)return ri[t]=r}return t}const cs="http://www.w3.org/1999/xlink";function Lc(e,t,n,o,i){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(cs,t.slice(6,t.length)):e.setAttributeNS(cs,t,n);else{const r=Ll(t);n==null||r&&!Pi(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function zc(e,t,n,o,i,r,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,i,r),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=Pi(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function on(e,t,n,o){e.addEventListener(t,n,o)}function Ac(e,t,n,o){e.removeEventListener(t,n,o)}const us=Symbol("_vei");function jc(e,t,n,o,i=null){const r=e[us]||(e[us]={}),s=r[t];if(o&&s)s.value=o;else{const[l,a]=Dc(t);if(o){const c=r[t]=Nc(o,i);on(e,l,c,a)}else s&&(Ac(e,l,s,a),r[t]=void 0)}}const ds=/(?:Once|Passive|Capture)$/;function Dc(e){let t;if(ds.test(e)){t={};let o;for(;o=e.match(ds);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ve(e.slice(2)),t]}let si=0;const Bc=Promise.resolve(),Rc=()=>si||(Bc.then(()=>si=0),si=Date.now());function Nc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Qe(Fc(o,n.value),t,5,[o])};return n.value=e,n.attached=Rc(),n}function Fc(e,t){if(te(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>i=>!i._stopped&&o&&o(i))}else return t}const fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Hc=(e,t,n,o,i,r,s,l,a)=>{const c=i==="svg";t==="class"?Tc(e,o,c):t==="style"?Pc(e,n,o):zn(t)?bo(t)||jc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Vc(e,t,o,c))?zc(e,t,o,r,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Lc(e,t,o,c))};function Vc(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&fs(t)&&re(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return fs(t)&&ke(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Wc(e,t){const n=Ce(e);class o extends li{constructor(r){super(n,r,t)}}return o.def=n,o}const Kc=typeof HTMLElement<"u"?HTMLElement:class{};class li extends Kc{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&o?o(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),pt(()=>{this._connected||(vs(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);this._ob=new MutationObserver(o=>{for(const i of o)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(o,i=!1)=>{const{props:r,styles:s}=o;let l;if(r&&!te(r))for(const a in r){const c=r[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=So(this._props[a])),(l||(l=Object.create(null)))[Ae(a)]=!0)}this._numberProps=l,i&&this._resolveProps(o),this._applyStyles(s),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=te(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&o.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of o.map(Ae))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(r){this._setProp(i,r)}})}_setAttr(t){let n=this.getAttribute(t);const o=Ae(t);this._numberProps&&this._numberProps[o]&&(n=So(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,i=!0){n!==this._props[t]&&(this._props[t]=n,i&&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(){vs(this._createVNode(),this.shadowRoot)}_createVNode(){const t=ee(this._def,Se({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(r,s)=>{this.dispatchEvent(new CustomEvent(r,{detail:s}))};n.emit=(r,...s)=>{o(r,s),Ve(r)!==r&&o(Ve(r),s)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof li){n.parent=i._instance,n.provides=i._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}const ps=e=>{const t=e.props["onUpdate:modelValue"]||!1;return te(t)?n=>Rn(t,n):t};function qc(e){e.target.composing=!0}function hs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ai=Symbol("_assign"),Uc={created(e,{modifiers:{lazy:t,trim:n,number:o}},i){e[ai]=ps(i);const r=o||i.props&&i.props.type==="number";on(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),r&&(l=xo(l)),e[ai](l)}),n&&on(e,"change",()=>{e.value=e.value.trim()}),t||(on(e,"compositionstart",qc),on(e,"compositionend",hs),on(e,"change",hs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:i}},r){if(e[ai]=ps(r),e.composing)return;const s=i||e.type==="number"?xo(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Yc=["ctrl","shift","alt","meta"],Xc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Yc.some(n=>e[`${n}Key`]&&!t.includes(n))},Re=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(i,...r)=>{for(let s=0;s<t.length;s++){const l=Xc[t[s]];if(l&&l(i,t))return}return e(i,...r)})},Zc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},gs=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=i=>{if(!("key"in i))return;const r=Ve(i.key);if(t.some(s=>s===r||Zc[s]===r))return e(i)})},Gc=Se({patchProp:Hc},xc);let ms;function Qc(){return ms||(ms=ec(Gc))}const vs=(...e)=>{Qc().render(...e)};var bs;const ci=typeof window<"u",ys=e=>typeof e=="function",Jc=e=>typeof e=="string",Pt=()=>{};ci&&((bs=window==null?void 0:window.navigator)!=null&&bs.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function go(e){return typeof e=="function"?e():q(e)}function _s(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}function eu(e,t={}){let n,o,i=Pt;const r=l=>{clearTimeout(l),i(),i=Pt};return l=>{const a=go(e),c=go(t.maxWait);return n&&r(n),a<=0||c!==void 0&&c<=0?(o&&(r(o),o=null),Promise.resolve(l())):new Promise((u,f)=>{i=t.rejectOnCancel?f:u,c&&!o&&(o=setTimeout(()=>{n&&r(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&r(o),o=null,u(l())},a)})}}function tu(e,t=!0,n=!0,o=!1){let i=0,r,s=!0,l=Pt,a;const c=()=>{r&&(clearTimeout(r),r=void 0,l(),l=Pt)};return f=>{const p=go(e),w=Date.now()-i,P=()=>a=f();if(c(),p<=0)return i=Date.now(),P();if(w>p&&(n||!s))i=Date.now(),P();else if(t)return new Promise((E,N)=>{l=o?N:E,r=setTimeout(()=>{i=Date.now(),s=!0,E(P()),c()},p-w)});return!n&&!r&&(r=setTimeout(()=>s=!0,p)),s=!1,a}}function nu(e){return e}function ou(e,t){let n,o,i;const r=Y(!0),s=()=>{r.value=!0,i()};pe(e,s,{flush:"sync"});const l=ys(t)?t:t.get,a=ys(t)?void 0:t.set,c=ir((u,f)=>(o=u,i=f,{get(){return r.value&&(n=l(),r.value=!1),o(),n},set(p){a==null||a(p)}}));return Object.isExtensible(c)&&(c.trigger=s),c}function ui(e){return Li()?(jl(e),!0):!1}function Ne(e,t=200,n={}){return _s(eu(t,n),e)}function ws(e,t=200,n=!1,o=!0,i=!1){return _s(tu(t,n,o,i),e)}function xs(e,t=!0){uo()?De(e):t?e():pt(e)}function qt(e){var t;const n=go(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Tn=ci?window:void 0,iu=ci?window.document:void 0;function Ot(...e){let t,n,o,i;if(Jc(e[0])||Array.isArray(e[0])?([n,o,i]=e,t=Tn):[t,n,o,i]=e,!t)return Pt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],s=()=>{r.forEach(u=>u()),r.length=0},l=(u,f,p)=>(u.addEventListener(f,p,i),()=>u.removeEventListener(f,p,i)),a=pe(()=>qt(t),u=>{s(),u&&r.push(...n.flatMap(f=>o.map(p=>l(u,f,p))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return ui(c),c}function Ss(e,t=!1){const n=Y(),o=()=>n.value=!!e();return o(),xs(o,t),n}const ks=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Cs="__vueuse_ssr_handlers__";ks[Cs]=ks[Cs]||{};function Is(){const e=uo(),t=ou(()=>null,()=>e.proxy.$el);return kr(t.trigger),De(t.trigger),t}function Es({document:e=iu}={}){if(!e)return Y("visible");const t=Y(e.visibilityState);return Ot(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Ts=Object.getOwnPropertySymbols,ru=Object.prototype.hasOwnProperty,su=Object.prototype.propertyIsEnumerable,lu=(e,t)=>{var n={};for(var o in e)ru.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Ts)for(var o of Ts(e))t.indexOf(o)<0&&su.call(e,o)&&(n[o]=e[o]);return n};function au(e,t,n={}){const o=n,{window:i=Tn}=o,r=lu(o,["window"]);let s;const l=Ss(()=>i&&"ResizeObserver"in i),a=()=>{s&&(s.disconnect(),s=void 0)},c=pe(()=>qt(e),f=>{a(),l.value&&i&&f&&(s=new ResizeObserver(t),s.observe(f,r))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return ui(u),{isSupported:l,stop:u}}function $s(e,t={width:0,height:0},n={}){const{window:o=Tn,box:i="content-box"}=n,r=le(()=>{var a,c;return(c=(a=qt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=Y(t.width),l=Y(t.height);return au(e,([a])=>{const c=i==="border-box"?a.borderBoxSize:i==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&r.value){const u=qt(e);if(u){const f=o.getComputedStyle(u);s.value=parseFloat(f.width),l.value=parseFloat(f.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((f,{inlineSize:p})=>f+p,0),l.value=u.reduce((f,{blockSize:p})=>f+p,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),pe(()=>qt(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function di(e,t,n={}){const{root:o,rootMargin:i="0px",threshold:r=.1,window:s=Tn}=n,l=Ss(()=>s&&"IntersectionObserver"in s);let a=Pt;const c=l.value?pe(()=>({el:qt(e),root:qt(o)}),({el:f,root:p})=>{if(a(),!f)return;const w=new IntersectionObserver(t,{root:p,rootMargin:i,threshold:r});w.observe(f),a=()=>{w.disconnect(),a=Pt}},{immediate:!0,flush:"post"}):Pt,u=()=>{a(),c()};return ui(u),{isSupported:l,stop:u}}var Ms;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ms||(Ms={}));var cu=Object.defineProperty,Ps=Object.getOwnPropertySymbols,uu=Object.prototype.hasOwnProperty,du=Object.prototype.propertyIsEnumerable,Os=(e,t,n)=>t in e?cu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fu=(e,t)=>{for(var n in t||(t={}))uu.call(t,n)&&Os(e,n,t[n]);if(Ps)for(var n of Ps(t))du.call(t,n)&&Os(e,n,t[n]);return e};fu({linear:nu},{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 Ls(e={}){const{window:t=Tn,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:i=!0,includeScrollbar:r=!0}=e,s=Y(n),l=Y(o),a=()=>{t&&(r?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),xs(a),Ot("resize",a,{passive:!0}),i&&Ot("orientationchange",a,{passive:!0}),{width:s,height:l}}function pu(e){yn("hapticFeedback",e)}function fi(){return kt("hapticFeedback")}const hu=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let i=1,r=.65;const s=setInterval(a,20);l();function l(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function a(){const c=+n||50;i<=c?(i++,r-=.65/c,o.style.transform=`scale(${i})`,o.style.opacity=`${r}`):(o.remove(),clearInterval(s))}},rn={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>hu(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},gu={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},mu={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},vu=Ce({__name:"AutoNext",props:{hasNext:{type:Boolean},offlineMode:{type:Boolean},seconds:{}},emits:["next","hide"],setup(e,{emit:t}){const n=e,o=t,i=Y(null),r=Y(null),s=Y(!1),l=Y(!1),a=Y(n.seconds),c=Y(n.seconds<0),u=Y(n.seconds),f=fi();De(()=>{let P;di(r,E=>{l.value=E.some(N=>N.isIntersecting),c.value=n.seconds<0,a.value=n.seconds,u.value=n.seconds,P&&(clearInterval(P),P=void 0),!(!l.value||c.value)&&(P=setInterval(()=>{a.value-=1,a.value<=0&&(clearInterval(P),P=void 0,o("next"))},1e3))}),di(i,E=>{s.value=E.some(N=>N.isIntersecting)}),Ft(()=>P&&clearInterval(P))});function p(){o("next"),f()}function w(){o("hide")}return(P,E)=>(D(),U("div",{ref_key:"root",ref:i,class:"h-full w-full flex justify-center items-center"},[st(X("div",gu,[P.hasNext?(D(),U("div",mu,[l.value?(D(),U("div",{key:0,class:"absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50",style:Le(c.value?{}:{animation:`auto-next ${u.value}s linear forwards`})},null,4)):ye("",!0),st((D(),U("button",{ref_key:"nextButton",ref:r,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 totalDuration-200",onClick:Re(p,["stop"])},[It(We(c.value?"Next":`Next in ${a.value}`),1)])),[[q(rn)]])])):ye("",!0),st((D(),U("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 totalDuration-200",onClick:Re(w,["stop"])},[It(We(P.offlineMode?"Close":"Hide"),1)])),[[q(rn)]])],512),[[$c,s.value||!P.hasNext]])],512))}}),bu=`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
|
|
21
|
-
`,
|
|
22
|
-
`]]]),ju=Object.freeze(Object.defineProperty({__proto__:null,default:hi},Symbol.toStringTag,{value:"Module"})),Du=["onClick","onKeyup"],$n=Ce({__name:"InputSelect",props:tn({items:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=kn(e,"modelValue"),o=Y(null),i=Y({width:"",left:""});De(()=>{let s=!1;pe(n,l=>{var c;const a=(c=o.value)==null?void 0:c.children[l+1];a&&(i.value={width:a.offsetWidth+"px",left:a.offsetLeft+"px"},a.scrollIntoView({behavior:s?"smooth":"auto",block:"center",inline:"center"}),s=!0)},{immediate:!0})});function r(s){n.value=s}return(s,l)=>(D(),U("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[X("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Le(i.value)},null,4),(D(!0),U(Ie,null,mn(t.items,(a,c)=>st((D(),U("div",{key:c,tabindex:"0",class:Te(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.value,"text-stone-400":c!=n.value}]),onClick:()=>r(c),onKeyup:[gs(()=>r(c),["enter"]),gs(()=>r(c),["space"])]},[It(We(a),1)],42,Du)),[[q(rn),30]])),128))],512))}}),Bu=Object.freeze(Object.defineProperty({__proto__:null,default:$n},Symbol.toStringTag,{value:"Module"})),Ru={class:"flex items-center mb-8 last:mb-0"},Nu={class:"flex-grow overflow-hidden"},Ut=Ce({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(D(),U("div",Ru,[X("div",{class:Te(["flex-shrink-0 w-[4.8rem]",{"opacity-50":t.disabled}])},We(t.label),3),X("div",Nu,[we(t.$slots,"default")])]))}}),Fu=Object.freeze(Object.defineProperty({__proto__:null,default:Ut},Symbol.toStringTag,{value:"Module"})),Hu={},Vu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Wu=[X("path",{fill:"currentColor",d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"},null,-1)];function Ku(e,t){return D(),U("svg",Vu,Wu)}const Ds=ge(Hu,[["render",Ku]]),qu=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),Uu={},Yu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Xu=[X("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),X("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Zu(e,t){return D(),U("svg",Yu,Xu)}const Bs=ge(Uu,[["render",Zu]]),Gu=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"}));function Qu(e){if(e)try{return JSON.parse(e)}catch{return}}function Ju(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var ct=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(ct||{}),Lt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Lt||{});const ed=.25,td=5,nd=.25,Mn=.2,Pn=5,od=.05,id=0,rd=4,Rs=5;function sd(e){var _,b,z,y,T,j,Q;const{titleName:t,isWebtoon:n}=e,o=le(()=>t.value?Ju(t.value):location.hostname),i=Y(ld(`tkr:${o.value}`)),r=v=>{i.value=v;const g=`tkr:${o.value}`;!v||!Object.keys(v).length?localStorage.removeItem(g):localStorage.setItem(g,JSON.stringify(v))},s=v=>{if(!i.value){r(v);return}const g={...i.value};Object.entries(v).forEach(([C,Z])=>{Z===void 0?delete g[C]:g[C]=Z}),r(g)},l=Y(((_=i.value)==null?void 0:_.style)??e.defaultStyle??Lt.longStrip),a=Y(((b=i.value)==null?void 0:b.direction)??e.defaultDirection??ct.vertical),c=Y((z=i.value)==null?void 0:z.gap),u=Y(((y=i.value)==null?void 0:y.speed)??1),f=Y(((T=i.value)==null?void 0:T.zoom)??1),p=Y(((j=i.value)==null?void 0:j.breakFirst)??!1),w=Y(((Q=i.value)==null?void 0:Q.autoNextSeconds)??Rs),P=le({get(){return n.value?Lt.longStrip:l.value},set:v=>{l.value=v,s({style:v}),v!==Lt.longStrip&&a.value===ct.vertical&&(E.value=ct.rtl)}}),E=le({get:()=>n.value?ct.vertical:a.value,set:v=>{a.value=v,s({direction:v})}}),N=le({get:()=>c.value!==void 0?c.value:e.maybeWebtoon.value||P.value!==Lt.longStrip?0:1,set(v){c.value=v,s({gap:v})}}),I=le({get:()=>u.value,set(v){u.value=v,s({speed:v===1?void 0:v})}}),R=le({get:()=>f.value,set(v){f.value=v,s({zoom:v===1?void 0:v})}}),x=le({get:()=>p.value,set(v){p.value=v,s({breakFirst:v?!0:void 0})}}),H=le({get:()=>w.value,set(v){w.value=v,s({autoNextSeconds:v===Rs?void 0:v})}});return{direction:E,style:P,gap:N,speed:I,zoom:R,isLongStrip:le(()=>P.value===Lt.longStrip),isDouble:le(()=>P.value===Lt.double),isRTL:le(()=>E.value===ct.rtl),isVertical:le(()=>E.value===ct.vertical),breakFirst:x,autoNextSeconds:H}}function ld(e){const t=localStorage.getItem(e),n=Qu(t),o={};return n?(n.style!==void 0&&Object.values(Lt).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(ct).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=id&&n.gap<=rd&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=Mn&&n.speed<=Pn&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=Mn&&n.zoom<=Pn&&(o.zoom=n.zoom),n.breakFirst===!0&&(o.breakFirst=!0),n.autoNextSeconds<=5&&n.autoNextSeconds>=-1&&(o.autoNextSeconds=n.autoNextSeconds),Object.keys(o).length?o:void 0):o}const Ns=Ce({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},autoNextSeconds:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:autoNextSeconds","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=e,o=t,i=Y(!1),r=le(()=>n.name??location.hostname);mo({onKeyUp:a=>{a.key==="s"&&!a.metaKey&&!a.ctrlKey&&(i.value=!i.value)}});function s(a){o("update:zoom",Math.round(a)/100)}function l(){i.value=!1,o("help")}return(a,c)=>(D(),U(Ie,null,[ee(tt,{title:"Reader settings (S)",disabled:a.disabled,onClick:c[0]||(c[0]=()=>i.value=!0)},{default:se(()=>[ee(Bs)]),_:1},8,["disabled"]),ee(js,{modelValue:i.value,"onUpdate:modelValue":c[6]||(c[6]=u=>i.value=u),name:r.value},{actions:se(()=>[ee(tt,{transparent:"",onClick:l},{default:se(()=>[ee(Ds)]),_:1})]),default:se(()=>[ee(Ut,{label:"Style"},{default:se(()=>[ee($n,{"model-value":a.readerStyle,items:a.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":c[1]||(c[1]=u=>o("update:reader-style",u))},null,8,["model-value","items"])]),_:1}),ee(Ut,{label:"Direction"},{default:se(()=>[ee($n,{"model-value":a.direction,items:a.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":c[2]||(c[2]=u=>o("update:direction",u))},null,8,["model-value","items"])]),_:1}),ee(Ut,{label:"Gap"},{default:se(()=>[ee($n,{"model-value":a.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":c[3]||(c[3]=u=>o("update:gap",u))},null,8,["model-value"])]),_:1}),ee(Ut,{label:"Auto Next"},{default:se(()=>[ee($n,{"model-value":a.autoNextSeconds<0?0:a.autoNextSeconds,items:["None","1s","2s","3s","4s","5s"],"onUpdate:modelValue":c[4]||(c[4]=u=>o("update:autoNextSeconds",u===0?-1:u))},null,8,["model-value"])]),_:1}),ee(Ut,{label:"Speed"},{default:se(()=>[ee(hi,{"model-value":a.speed,min:q(ed),max:q(td),step:q(nd),suffix:"x","onUpdate:modelValue":c[5]||(c[5]=u=>o("update:speed",u))},{suffix:se(()=>[It(We(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),ee(Ut,{label:"Zoom"},{default:se(()=>[ee(hi,{"model-value":Math.ceil(a.zoom*100),min:q(Mn)*100,max:q(Pn)*100,step:q(od)*100,"onUpdate:modelValue":s},{suffix:se(()=>[It(We(Math.ceil(a.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64))}}),ad=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"})),cd={},ud={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},dd=[X("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[X("circle",{cx:"14",cy:"14",r:"12"}),X("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function fd(e,t){return D(),U("svg",ud,dd)}const Fs=ge(cd,[["render",fd]]),pd=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),hd={class:"block w-4 h-4"},gd={class:"w-12"},Hs=Ce({__name:"ButtonResetZoom",props:{zoom:{}},emits:["click"],setup(e,{emit:t}){const n=t;function o(i){n("click",i)}return(i,r)=>(D(),U("button",{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",onClick:Re(o,["stop"])},[X("div",hd,[ee(Fs)]),X("div",gd,We(Math.ceil(i.zoom*100))+"%",1)]))}}),md=Object.freeze(Object.defineProperty({__proto__:null,default:Hs},Symbol.toStringTag,{value:"Module"}));async function sn(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(i=>{setTimeout(async()=>{const r=await sn(e-1,t,n);i(r)},t)})}const vd={},bd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},yd=[ac('<circle cx="18" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".67" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="12" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".33" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="6" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin="0" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle>',3)];function _d(e,t){return D(),U("svg",bd,yd)}const Vs=ge(vd,[["render",_d]]),wd=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"})),xd={},Sd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},kd=[X("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function Cd(e,t){return D(),U("svg",Sd,kd)}const Ws=ge(xd,[["render",Cd]]),Id=Object.freeze(Object.defineProperty({__proto__:null,default:Ws},Symbol.toStringTag,{value:"Module"})),Ed=["aria-hidden"],Td=["onClick"],$d={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"},Md={class:"whitespace-nowrap"},gi=Ce({__name:"ButtonDropdown",props:tn({label:{},title:{},items:{},disabled:{type:Boolean},canLoadItems:{type:Boolean},loadItems:{type:Function},enableHapticFeedback:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:tn(["select"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,i=kn(e,"modelValue"),r=Y(null),s=Y(!1),l=Y(!1),a=Y(!1),c=Y(!1),u=Y(!1),f={mounted:T=>{var j;(j=T.children[i.value])==null||j.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}};mo({onKeyDown:R});const p=pi(),w=fi();async function P(){if(!n.items.length&&(s.value||await E(),!n.items.length)){s.value=!1;return}s.value=!s.value,p(s.value),s.value?(N(),H(r.value)):setTimeout(_,250)}async function E(){l.value||n.items.length||!n.canLoadItems||!n.loadItems||(l.value=!0,await n.loadItems(),l.value=!1)}function N(){const T=r.value;if(T){const j=T.getBoundingClientRect(),Q=j.x+j.width/2;a.value=j.y>window.innerHeight/2,c.value=Q<window.innerWidth/3,u.value=Q>window.innerWidth/3*2}}function I(T,j){P(),T!=i.value&&(i.value=T,o("select",T,j),n.enableHapticFeedback&&w())}function R(T){s.value&&T.key==="Escape"&&(P(),T.preventDefault())}let x=[];function H(T){const j=window.getComputedStyle(T).zIndex,Q=T.style.zIndex;(!j||!(+j>0))&&((!T.parentElement||T.parentElement.childElementCount>1)&&(T.style.zIndex="1",x.push({el:T,zIndex:Q})),T.parentElement&&H(T.parentElement))}function _(){x.forEach(({el:T,zIndex:j})=>{T.style.zIndex=j??""}),x=[]}let b=!1;function z(){b||(b=!0,p(!0,{desktopOnly:!0}))}function y(){b&&(b=!1,p(!1,{desktopOnly:!0}))}return(T,j)=>(D(),U("div",{ref_key:"root",ref:r,class:"select-none relative inline-flex"},[s.value?(D(),U("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:P})):ye("",!0),T.items.length?(D(),he(nn,{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:se(()=>[s.value?st((D(),U("ul",{key:0,ref:"list","aria-hidden":!s.value,class:Te(["scrollbar-sm duration-150 delay-50 absolute w-40 max-h-[70vh] list-none bg-stone-800 bg-opacity-80 backdrop-blur-md rounded-lg overflow-auto",{"origin-bottom bottom-full -translate-y-1.5":a.value,"origin-top top-full translate-y-1.5":!a.value,"left-1/2 -ml-20 text-center":!c.value&&!u.value,"right-0 text-right":u.value}]),onWheelPassive:j[0]||(j[0]=Re(()=>{},["stop"]))},[(D(!0),U(Ie,null,mn(T.items,(Q,v)=>st((D(),U("li",{key:v,tabindex:"-1",class:Te(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":v===i.value}]),onClick:g=>I(v,g)},[X("div",{class:Te(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":v>0}])},[we(T.$slots,"item",{item:Q},()=>[It(We(Q),1)])],2)],10,Td)),[[q(rn),30]])),128))],42,Ed)),[[f]]):ye("",!0)]),_:3})):ye("",!0),st((D(),U("button",xn({type:"button",tabindex:"-1",class:["w-full h-10 max-h-full rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":T.disabled||l.value}]},T.title?{title:T.title}:{},{onClick:Re(P,["stop"]),onMouseenter:z,onMouseleave:y}),[X("div",$d,[X("span",Md,We(T.label),1),T.items.length||T.canLoadItems?(D(),U("span",{key:0,class:Te(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":a.value}]),"aria-hidden":"true"},[l.value?(D(),he(Vs,{key:0})):(D(),he(Ws,{key:1}))],2)):ye("",!0)])],16)),[[q(rn),30]])],512))}}),Pd=Object.freeze(Object.defineProperty({__proto__:null,default:gi},Symbol.toStringTag,{value:"Module"})),Ks=Ce({__name:"ChapterNav",props:{data:{},chapterSpec:{},touchDevice:{type:Boolean}},emits:["getHiddenChapters","chaptersDialogOpen"],setup(e,{emit:t}){const n=e,o=t;async function i(){const a=n.chapterSpec;if(!a)return;const{trigger:c,sel:u,label:f}=a;if(c&&(!u||!f)){await r(c);return}o("getHiddenChapters"),await sn(50,50,()=>n.data.chapters.length?!0:void 0)}async function r(a){const c=document.querySelector(a);c&&(c instanceof HTMLDialogElement?c.showModal():c.click(),o("chaptersDialogOpen"))}function s(a,c){var u,f,p;(p=(f=(u=n.data)==null?void 0:u.chapters)==null?void 0:f[a])==null||p.select(l(c))}function l(a){return!n.touchDevice&&(a.ctrlKey||a.metaKey)}return(a,c)=>{var u;return D(),he(gi,{modelValue:a.data.activeIndex,label:a.data.activeLabel,title:"Select chapter",items:a.data.chapters,"can-load-items":!!((u=a.chapterSpec)!=null&&u.trigger),"load-items":i,"enable-haptic-feedback":"",onSelect:s},{item:se(({item:f})=>[It(We(f.label),1)]),_:1},8,["modelValue","label","items","can-load-items"])}}}),Od=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),Ld={},zd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ad=[X("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function jd(e,t){return D(),U("svg",zd,Ad)}const qs=ge(Ld,[["render",jd]]),Dd=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),Us=Ce({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=Y(typeof n!="string"||+n!==t.direction),i=Ne(()=>o.value=!1,1250);pe(()=>t.direction,()=>{r(),o.value=!0,i()}),De(()=>{r(),i();let s;const l=Es();pe(l,a=>{a!=="visible"?s=Date.now():Date.now()-s>7e3&&(o.value=!0,i())})});function r(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,l)=>(D(),he(nn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:se(()=>[o.value?(D(),U("div",{key:0,class:Te(["fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none w-28 h-24 p-4 bg-black bg-opacity-40 rounded-2xl duration-500",{"rotate-90":s.direction===q(ct).vertical,"rotate-180":s.direction===q(ct).rtl}])},[ee(qs)],2)):ye("",!0)]),_:1}))}}),Bd=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"})),Rd=X("div",{class:"fixed inset-0 bg-black bg-opacity-90"},null,-1),Ys=Ce({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,i=Y(null),r=Y([]);De(async()=>{const c=$s(i),u=Ne(()=>{s({width:c.width.value,height:c.height.value})},50);u(),pe(c.width,u),pe(c.height,u)});function s(c){var p;const u=(p=i.value)==null?void 0:p.parentElement;if(!u)return;const f=Array.from(u.querySelectorAll("#controls [title]"));f.length&&(r.value=l(f,c))}function l(c,u){const f=[],p=[];let w=0,P=0;const E=50,N=25;c.forEach(_=>{var j;const b=(j=_.getAttribute("title"))==null?void 0:j.trim(),z=_.getBoundingClientRect();if(!b||!z.height||!z.width)return;const y=Math.ceil((z.top-10)/E),T=Math.ceil((z.left-10)/E);p.push({isTour:!1,title:b,rect:z,fromX:T,toX:Math.max(T+1,Math.ceil((z.right+10)/E)),fromY:y,toY:Math.max(y+1,Math.ceil((z.bottom+10)/E))})}),p.forEach(_=>{for(let b=_.fromY;b<_.toY;b++){f[b]??(f[b]=[]);for(let z=_.fromX;z<_.toX;z++)f[b][z]=_;_.toY>w+1&&(w=_.toY-1),_.toX>P+1&&(P=_.toX-1)}});let I=P/2;p.forEach(_=>{_.isAlignRight=_.fromX>I});const R=(_,b)=>{f[b]??(f[b]=[]);const z=b>=_.toY;if(_.isTour)for(let y=_.fromX;y<_.toX;y++)delete f[_.fromY][y],_.fromY=b,_.toY=b+(z?1:-1),f[b][y]=_;else{const y=_.isAlignRight?_.fromX-3:_.fromX,T=y+3;_.helpItem={fromX:y,toX:T,fromY:b,toY:b+1,isTour:!0,isAlignRight:_.isAlignRight};for(let j=y;j<T;j++)f[b][j]=_.helpItem}},x=(_,b)=>{if(b>w||b<0)return!1;const z=b>=_.toY,y=f[b];if(!y)return R(_,b),!0;const T=y[_.fromX];if(T&&!T.isTour)return!1;if(T&&T.isTour)return x(T,z?b+1:b-1)?(R(_,b),!0):!1;if(!T){const j=_.isAlignRight?-1:1;return y[_.fromX+j]||y[_.fromX+j*2]?x(_,z?b+1:b-1):(R(_,b),!0)}return!1};p.forEach(_=>{if(!x(_,_.toY)){if(_.isAlignRight){const b=f[_.fromY]??[];if(!b.slice(_.fromX-3,_.fromX).filter(Boolean).length){const y=_.fromX-3,T=_.fromX;_.helpItem={isTour:!0,isAlignRight:!0,fromX:y,toX:T,fromY:_.fromY,toY:_.toY};for(let j=_.fromX-3;j<_.fromX;j++)b[j]=_.helpItem;return}}x(_,_.fromY-1)}});const H=[];return p.forEach(_=>{const{title:b,helpItem:z,rect:y,isAlignRight:T,fromX:j,fromY:Q,toY:v}=_;if(!b||!z||!y)return;const g=z.fromY>=v,C=z.toY<=Q;H.push({title:a(b),style:{top:g?`${y.bottom+(z.fromY-v)*E+N}px`:C?void 0:`${y.top+8}px`,bottom:C?`${u.height-y.top+(z.toY-Q)*E+N}px`:void 0,left:T?void 0:`${y.left}px`,right:T?g?`${u.width-y.right}px`:`${u.width-y.right+y.width+N}px`:void 0},arrowStyle:{width:C||g?"2px":`${Math.abs(z.toX-j)*E+N-5}px`,height:C||g?`${(g?z.fromY-v:Q-z.toY)*E+N}px`:"2px",top:g?`${y.bottom}px`:C?void 0:`${y.top+20}px`,bottom:C?`${u.height-y.top}px`:void 0,left:T?void 0:`${y.left+y.width/2}px`,right:T?g?`${u.width-y.right+y.width/2}px`:`${u.width-y.right+y.width}px`:void 0}})}),H}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(D(),U(Ie,null,[Rd,X("div",{ref_key:"root",ref:i,class:"fixed inset-0 z-20 overscroll-contain select-none",onClick:u[0]||(u[0]=Re(f=>o("hide"),["stop"]))},[(D(!0),U(Ie,null,mn(r.value,f=>(D(),U(Ie,{key:f.title},[X("div",{class:"absolute",style:Le(f.style)},We(f.title),5),X("div",{class:"absolute bg-stone-300 rounded-lg",style:Le(f.arrowStyle)},null,4)],64))),128))],512)],64))}}),Nd=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),Xs=Ce({__name:"PageNav",props:tn({disabled:{type:Boolean},pages:{},totalImgs:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=kn(e,"modelValue"),o=le(()=>t.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),i=le(()=>{const a=n.value,c=t.pages.findIndex(u=>u.some(({index:f})=>f===a));return c===-1?t.pages.length-1:c}),r=le(()=>t.pages.length?`${o.value[i.value]}/${t.totalImgs}`:"--");function s(a){const c=t.pages[a][0].index;l(c)}function l(a){n.value=a}return(a,c)=>(D(),he(gi,{"model-value":i.value,label:r.value,title:"Current page",items:o.value,disabled:a.disabled,"onUpdate:modelValue":s},null,8,["model-value","label","items","disabled"]))}}),Fd=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),Hd={},Vd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Wd=[X("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),X("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function Kd(e,t){return D(),U("svg",Vd,Wd)}const mi=ge(Hd,[["render",Kd]]),qd=Object.freeze(Object.defineProperty({__proto__:null,default:mi},Symbol.toStringTag,{value:"Module"})),Ud={},Yd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Xd=[X("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function Zd(e,t){return D(),U("svg",Yd,Xd)}const vi=ge(Ud,[["render",Zd]]),Gd=Object.freeze(Object.defineProperty({__proto__:null,default:vi},Symbol.toStringTag,{value:"Module"})),Zs=ge(Ce({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=Y(0);return pe(()=>t.playing,()=>{n.value=Date.now()}),(o,i)=>n.value?(D(),U("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?(D(),he(vi,{key:0})):(D(),he(mi,{key:1}))])):ye("",!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)}}
|
|
23
|
-
`]]]),
|
|
24
|
-
`,
|
|
25
|
-
`]]]),
|
|
26
|
-
`]]]),
|
|
27
|
-
`]]]),_f=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),wf={},xf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Sf=[X("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function kf(e,t){return D(),U("svg",xf,Sf)}const tl=ge(wf,[["render",kf]]),Cf=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),If={},Ef={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Tf=[X("path",{fill:"currentColor",d:"M6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h6v2H7v12.95l5-2.15l5 2.15V11h2v8.475q0 .55-.45.838t-.95.087L12 18l-5.6 2.4ZM7 5h6h-6Zm11 4q-.425 0-.713-.287T17 8V7h-1q-.425 0-.713-.288T15 6q0-.425.288-.713T16 5h1V4q0-.425.288-.713T18 3q.425 0 .713.288T19 4v1h1q.425 0 .713.288T21 6q0 .425-.288.713T20 7h-1v1q0 .425-.288.713T18 9Z"},null,-1)];function $f(e,t){return D(),U("svg",Ef,Tf)}const nl=ge(If,[["render",$f]]),Mf=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),Pf={},Of={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Lf=[X("path",{fill:"currentColor",d:"M17.825 8.575q-.2 0-.375-.062t-.325-.213L15.7 6.875q-.3-.3-.3-.712t.3-.688q.275-.3.7-.3t.7.275l.725.725l2.825-2.85q.3-.3.7-.3t.725.3q.275.3.275.725t-.275.7l-3.55 3.55q-.15.15-.325.213t-.375.062ZM6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h7q-.5.75-.75 1.438T13 6q0 1.8 1.137 3.175T17 10.9q.575.075 1 .075t1-.075v8.575q0 .55-.45.838t-.95.087L12 18l-5.6 2.4Z"},null,-1)];function zf(e,t){return D(),U("svg",Of,Lf)}const ol=ge(Pf,[["render",zf]]),Af=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),jf={},Df={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Bf=[X("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Rf(e,t){return D(),U("svg",Df,Bf)}const il=ge(jf,[["render",Rf]]),Nf=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"})),Ff={},Hf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Vf=[X("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Wf(e,t){return D(),U("svg",Hf,Vf)}const rl=ge(Ff,[["render",Wf]]),Kf=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),qf={},Uf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56"},Yf=[X("path",{fill:"currentColor",d:"M29.84 49.574h12.398c4.899 0 7.336-2.437 7.336-7.265V13.69c0-4.828-2.437-7.265-7.336-7.265H29.84Zm-16.055 0h12.398V6.426H13.785c-4.875 0-7.36 2.414-7.36 7.265V42.31c0 4.851 2.485 7.265 7.36 7.265"},null,-1)];function Xf(e,t){return D(),U("svg",Uf,Yf)}const sl=ge(qf,[["render",Xf]]),Zf=Object.freeze(Object.defineProperty({__proto__:null,default:sl},Symbol.toStringTag,{value:"Module"})),Gf={},Qf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Jf=[X("g",{fill:"none"},[X("path",{d:"M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"}),X("path",{fill:"currentColor",d:"M8 3v18H5a2 2 0 0 1-1.995-1.85L3 19V5a2 2 0 0 1 1.85-1.995L5 3zm11 0a2 2 0 0 1 1.995 1.85L21 5v14a2 2 0 0 1-1.85 1.995L19 21h-9V3z"})],-1)];function ep(e,t){return D(),U("svg",Qf,Jf)}const ll=ge(Gf,[["render",ep]]),tp=Object.freeze(Object.defineProperty({__proto__:null,default:ll},Symbol.toStringTag,{value:"Module"})),np={},op={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},ip=[X("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function rp(e,t){return D(),U("svg",op,ip)}const al=ge(np,[["render",rp]]),sp=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"})),lp={},ap={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},cp=[X("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function up(e,t){return D(),U("svg",ap,cp)}const cl=ge(lp,[["render",up]]),dp=Object.freeze(Object.defineProperty({__proto__:null,default:cl},Symbol.toStringTag,{value:"Module"})),fp={},pp={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},hp=[X("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function gp(e,t){return D(),U("svg",pp,hp)}const ul=ge(fp,[["render",gp]]),mp=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"}));function ln(e=0){return new Promise(t=>setTimeout(t,e))}function dl(e){return new Promise(t=>{const n=o=>{if(!o)return t(void 0);const i=URL.createObjectURL(o);t(i)};e.toBlob(n,"image/jpeg",1)})}async function vp(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),i=o.getContext("2d"),r=e.naturalWidth,s=e.naturalHeight;return o.width=r,o.height=s,i==null||i.drawImage(e,0,0,r,s),await dl(o)}function vo(e){const t=e.getAttributeNames(),n=t.indexOf("src");n!==-1&&(t.splice(n,1),t.push("src"));for(const o of t){if(o==="srcset"||o!=="data-url"&&o!=="data-original"&&!o.includes("src"))continue;const i=e.getAttribute(o);if(i)return o==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:i.replace(/(\n|\t)/g," ").trim()}}async function bp(e,t){return(t==null?void 0:t.src)===e&&t.naturalWidth&&t.naturalHeight?{width:t.naturalWidth,height:t.naturalHeight}:await new Promise(n=>{const o=new Image,i=setInterval(()=>{const{naturalWidth:r,naturalHeight:s}=o;s&&r&&(n({width:r,height:s}),clearInterval(i))},20);o.onerror=()=>{n(void 0),clearInterval(i)},o.src=e})}class yp{constructor({isIOS:t,onDownloaded:n,onDownloadError:o}){me(this,"reactiveResults",cn({}));me(this,"isIOS");me(this,"tkLoadId",Date.now());me(this,"isMounted",!0);me(this,"onDisposeCallbacks",[]);me(this,"onDownloaded");me(this,"onDownloadError");this.isIOS=t,this.onDownloaded=n,this.onDownloadError=o}dispose(){this.isMounted=!1,this.onDisposeCallbacks.forEach(t=>t()),this.onDisposeCallbacks=[],this.onDownloaded=()=>{}}async download(t){var l;if(!this.isMounted)return;const n=t.el;let o=t.computedSrc;if(!n&&!o)return;const i=n instanceof HTMLImageElement,r=n instanceof HTMLCanvasElement;if(n){if(n._tkLoadId===this.tkLoadId)return;if(n._tkLoadId=this.tkLoadId,i){const a=()=>this.onImgElLoaded(t,n,!0),c=()=>this.onImgElLoaded(t,n,!1);n.addEventListener("load",a),n.addEventListener("error",c),this.onDisposeCallbacks.push(()=>{n.removeEventListener("load",a),n.removeEventListener("error",c)})}}if(i&&!o){if(o=vo(n),!o)return;n._tkSrc=o}else if(r&&!o){if(o=await dl(n),!o)return;n._tkSrc=o}if(!o||!this.isMounted)return;const s=i&&o.startsWith("blob:");s&&!n.complete||((l=this.reactiveResults)[o]??(l[o]={src:o,isLoading:!0,hasError:!1}),s&&this.isIOS&&await ln(300),await this.downloadSrc(t))}async onImgElLoaded(t,n,o){var r;if(!this.isMounted)return;const i=vo(n);if(i&&!(!i.startsWith("blob:")&&t.computedSrc===i)){if(n._tkSrc=i,!o){this.reactiveResults[i]={src:i,isLoading:!1,hasError:!0},this.onDownloadError();return}(r=this.reactiveResults)[i]??(r[i]={src:i,isLoading:!0,hasError:!1}),this.downloadSrc(t)}}async downloadSrc(t){const n=t.computedSrc;if(!n)return;const o=t.el instanceof HTMLImageElement?t.el:void 0,i=o?await vp(o,n):n;if(!i||!this.isMounted)return;const r=await bp(i,o);this.isMounted&&(this.reactiveResults[n]={src:i,size:r,isLoading:!1,hasError:!r,invalid:!!r&&(r.width<200||r.height<200)},r?this.onDownloaded(t,r):this.onDownloadError())}}const _p=3;class wp{constructor({getItems:t,getActiveIndex:n,isCompleted:o,callback:i}){me(this,"isQueueStarted",!1);me(this,"debouncedEnqueue");me(this,"concurrentCount",0);me(this,"getItems");me(this,"getActiveIndex");me(this,"isCompleted");me(this,"callback");me(this,"activeIndex",0);me(this,"completedItems");me(this,"isMounted",!0);this.getItems=t,this.getActiveIndex=n,this.isCompleted=o,this.callback=i,this.debouncedEnqueue=Ne(this.enqueue.bind(this),50)}dispose(){this.isMounted=!1}run(){this.isQueueStarted?this.debouncedEnqueue():(this.isQueueStarted=!0,this.enqueue())}get canEnqueue(){return this.concurrentCount<_p&&this.isMounted}async enqueue(){if(!this.canEnqueue)return;const t=this.getItems();if(t===this.completedItems)return;this.completedItems=void 0;const n=this.resetActiveIndex(),o=Math.max(0,Math.min(t.length-1,n-1)),i=[];for(let r=o;r<t.length;r++){if(!this.canEnqueue)return;i.push(await this.invokeItemCallback(r,r==t.length-1))}for(let r=o-1;r>=0;r--){if(!this.canEnqueue)return;i.push(await this.invokeItemCallback(r,r==0))}this.getItems()===t&&i.filter(Boolean).length==t.length&&(this.completedItems=t)}async invokeItemCallback(t,n){const o=this.getItems()[t];return o?this.isCompleted(o)?!0:(this.concurrentCount++,this.callback(o).then(()=>{this.concurrentCount=Math.max(0,this.concurrentCount-1),n||this.debouncedEnqueue()}),await ln(),!1):!1}resetActiveIndex(){const t=this.getActiveIndex();return t<this.activeIndex&&(this.concurrentCount=Math.max(0,this.concurrentCount-Math.abs(t-this.activeIndex))),this.activeIndex=t,t}}class Yt{constructor(t,n,o){this.src=t,this.el=n,this.parentEl=o}get computedSrc(){var t;return this.src??((t=this.el)==null?void 0:t._tkSrc)}}class fl{constructor(){me(this,"elsPool",new Map)}check(t){if(!t||t===document.body)return!0;const n=this.elsPool.get(t);if(n!==void 0)return n;const o=getComputedStyle(t);if(!(o.display!=="none"&&+(o.opacity??"1")>.1))return this.elsPool.set(t,!1),!1;const r=this.check(t.parentElement);return this.elsPool.set(t,r),r}}function _i(e){const t=e.tagName.toLowerCase();if(t==="option"){const n=e.parentElement;if(n.tagName.toLowerCase()!=="select")return;n.value=e.getAttribute("value")||"",n.dispatchEvent(new Event("change"));return}return t==="a"&&e.addEventListener("click",n=>n.preventDefault(),{once:!0}),e.click()}async function xp(e){const{lstrip:t,lstripBtn:n}=e||{};if(!t||!n||!!document.querySelector(t))return!1;const i=await sn(50,30,()=>document.querySelector(n));return i?(_i(i),await ln(),!0):!1}class Sp{constructor({spec:t,onChanged:n}){me(this,"spec");me(this,"onChanged");me(this,"rawImages",[]);me(this,"isMounted",!0);me(this,"loadRawImagesTs");me(this,"disconnectObservers");this.spec=t,this.onChanged=n,this.init()}dispose(){var t;this.isMounted=!1,(t=this.disconnectObservers)==null||t.call(this),this.disconnectObservers=void 0,this.onChanged=()=>{}}init(){var s;let t;const n=Ne(()=>{t&&this.loadRawImages(t)},100),o=new MutationObserver(n),i=(s=this.spec)!=null&&s.imgDivs?void 0:(()=>{let l=window.innerWidth;return new ResizeObserver(Ne(()=>{const a=window.innerWidth;if(a!==l){l=a;return}n()},50))})();this.disconnectObservers=async()=>{o.disconnect(),i==null||i.disconnect()};let r=!1;this.loadContentEl(l=>{t!==l&&(t=l,o.disconnect(),i==null||i.disconnect(),o.observe(t,{childList:!0,subtree:!0}),i==null||i.observe(t),r?n():(r=!0,this.loadRawImages(t)))})}setRawImages(t){let n=!1;const o=t.map((i,r)=>{const s=this.rawImages[r];return s&&s.el===i.el&&s.parentEl===i.parentEl&&s.src===i.src?s:(n=!0,i)});(n||!o.length)&&(this.rawImages=o,this.onChanged(t))}async loadContentEl(t){var l;const n=await xp(this.spec),o=(l=this.spec)==null?void 0:l.content;if(!o){t(document.body);return}let i=await sn(n?100:1,10,()=>{for(const a of o.split(",")){const c=document.querySelector(a);if(c)return c}});if(!i)return;t(i);let r=0;const s=async()=>{if(this.isMounted&&!(i!=null&&i.isConnected)){if(r=0,i=await sn(50,20,()=>{const a=document.querySelector(o);return a!=null&&a.isConnected&&a!==i?a:void 0}),!i)return;t(i)}!this.isMounted||++r>=10||setTimeout(s,200)};setTimeout(s,200)}async loadRawImages(t){var r;if(!this.isMounted||!t.isConnected)return;const n=Date.now();this.loadRawImagesTs=n;const o=(r=this.spec)==null?void 0:r.imgDivs,i=o?await kp(t,o):pl(t);this.loadRawImagesTs!==n||!t.isConnected||!this.isMounted||this.setRawImages(i)}}async function kp(e,t){const n=Array.from(e.querySelectorAll(t));if(!n.length)return pl(e);const o=new fl;return n.map(r=>{const s=Array.from(r.querySelectorAll("img,canvas"));for(const l of s)if(o.check(l)){if(l instanceof HTMLCanvasElement){if(hl(l))return new Yt(void 0,l,r)}else if(l instanceof HTMLImageElement&&gl(l)){const a=vo(l);return new Yt(a,l,r)}}return new Yt(void 0,void 0,r)})}function pl(e){const t=[],n={},o=new fl;return Array.from(e.querySelectorAll("img,canvas")).forEach(r=>{if(o.check(r)){if(r instanceof HTMLCanvasElement)hl(r)&&t.push(new Yt(void 0,r));else if(r instanceof HTMLImageElement&&gl(r)){const s=vo(r);if(s){const l=n[s];if(l!==void 0&&l!==-1){t.splice(l,1);return}n[s]=t.length}t.push(new Yt(s,r))}}}),t}function hl(e){return e.isConnected&&ml(e.width,e.height)}function gl(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||ml(t.width,t.height)}function ml(e,t){return e>=130&&t>=130&&(e>=200||t>=200)}const wi="mp-scroll-container";class xi{constructor(){me(this,"unmountedCallbacks",new Map)}dispose(){for(const t of this.unmountedCallbacks.values())t()}scrollTo({rawImages:t,page:n,skipIfVisible:o,isScrollDown:i,fallbackScrollEl:r}){const s=Math.floor(n),l=t[Math.min(t.length-1,s)];if(!l)return;const a=l.el??l.parentEl??document.querySelector(`img[src^="${l.computedSrc}"]`);if(!a)return;const c=a.getBoundingClientRect();if(o&&c.top<=0&&c.top+c.height>0)return;const u=xi.getScrollable(a,r);if(!u)return;const{el:f,top:p}=u;r!==document.documentElement&&!f.classList.contains(wi)&&(f.classList.add(wi),this.unmountedCallbacks.has(f)||this.unmountedCallbacks.set(f,()=>{f.classList.remove(wi)}));const w=n>=t.length?c.height:i?Math.max(0,c.height-window.innerHeight+100):n%1*c.height,P={top:p+w,behavior:"instant"};f.scrollTo(P),f===document.body&&document.documentElement.scrollTo(P)}static getScrollable(t,n){const o=(i,r)=>{if(!i)return;const{offsetTop:s,offsetParent:l}=i;if(l&&s&&r.set(l,Math.max(r.get(l)??0,s)),!(i===n||i.scrollHeight-i.clientHeight>=10&&window.getComputedStyle(i).overflow!=="visible"))return o(i.parentElement,r);let c=0;return r.forEach((u,f)=>{c+=f===l?u-s:u}),{el:i,top:c}};return o(t,new Map)}}function vl(e){var t,n;for(let o=0;o<e.length;o++){const i=((t=e[o])==null?void 0:t.el)??((n=e[o])==null?void 0:n.parentEl),r=i==null?void 0:i.getBoundingClientRect();if(!r||r.bottom<=0)continue;const s=r.top;return o+(s>=0?0:-s/r.height)}return 0}function Cp(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src)).map(o=>new Yt(void 0,o));return vl(n)}function Ip(e){var I,R,x,H;const t=Y((I=e.raw.value)==null?void 0:I.isWebtoon),n=Y((R=e.raw.value)==null?void 0:R.isWebtoon);let o=!1;const i=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android"),r=((H=(x=e.raw.value)==null?void 0:x.imgs)==null?void 0:H.filter(Boolean))??[];let s=e.isAutoShow!==!1?e.page.value:r.length?Cp(r):void 0,l=r.map(_=>new Yt(_)),a,c,u=setTimeout(e.onTimeout,2e4);const f=()=>{u&&(clearTimeout(u),u=void 0)},p=new yp({isIOS:i,onDownloaded(_,b){f();let z=l.indexOf(_);if(z===-1){const y=_.computedSrc;z=l.findIndex(T=>T.computedSrc===y)}if(z!==-1){if(b&&!t.value&&z>Math.min(1,l.length-3)&&z<Math.max(l.length-2,3)){const y=b.height/b.width,T=y>2||y<.5,j=y>1.6||y<.6;t.value!==T&&(t.value=T),n.value!==j&&(n.value=j)}E()}},onDownloadError(){c||t.value!==void 0||(c=setTimeout(()=>{c=void 0,t.value===void 0&&e.onError("Failed to load images")},3e3))}}),w=new wp({getItems:()=>l,getActiveIndex:()=>Math.floor(e.page.value),isCompleted:_=>{const b=_.computedSrc;return!!(b&&p.reactiveResults[b])},callback:_=>p.download(_)}),P=new xi;if(r.length)w.run();else{let _=!1;a=new Sp({spec:e.spec,async onChanged(b){var z;if(l=b,!e.raw.value&&!b.length){e.onError("no_img");return}(z=e.spec)!=null&&z.imgDivs&&!_&&e.isAutoShow!==!1&&e.page.value&&(_=!0,P.scrollTo({rawImages:b,page:e.page.value,skipIfVisible:!0,fallbackScrollEl:i?document.body:document.documentElement}),await ln(1)),s===void 0&&e.isAutoShow===!1&&(s=vl(b)),w.run()}})}Wo(()=>{p.dispose(),w.dispose(),a==null||a.dispose(),c&&clearTimeout(c),P.dispose(),o&&P.scrollTo({rawImages:l,page:e.page.value,fallbackScrollEl:document.documentElement})});function E(){var y,T,j;if(o||t.value===void 0||s===void 0)return;const _=Math.max(0,Math.min(s,l.length)),b=Math.min(Math.floor(_),l.length-1);if(b>=1){if(!((y=l[b])==null?void 0:y.computedSrc)){e.isAutoShow&&P.scrollTo({rawImages:l,page:b,fallbackScrollEl:i?document.body:document.documentElement});return}for(let v=b;v<l.length;v++){const g=(T=l[v])==null?void 0:T.computedSrc;if(!g)return;const C=p.reactiveResults[g];if(!C)return;if(!C.invalid){if(!C.size&&!C.hasError)return;break}}for(let v=b-1;v>=0;v--){const g=(j=l[v])==null?void 0:j.computedSrc;if(!g)break;const C=p.reactiveResults[g];if(!C)return;if(!C.invalid){if(!C.size&&!C.hasError)return;break}}}if(o)return;o=!0,e.onReady(_);let z=!0;pe(()=>Math.floor(e.page.value),(Q,v)=>{Q===v&&!z||(P.scrollTo({rawImages:l,page:Q,isScrollDown:v===void 0||Q>v||l.length===1,skipIfVisible:z&&l.length>1,fallbackScrollEl:i?document.body:document.documentElement}),z=!1,v??(v=-1),w.run())},{immediate:!0})}return{asyncImgs:le(()=>{Object.values(p.reactiveResults);const _=[];return l.forEach(b=>{const z=b.computedSrc,y=z?p.reactiveResults[z]:void 0;(z&&!(y!=null&&y.invalid)||b.parentEl)&&_.push(y)}),_}),isWebtoon:le(()=>t.value??!1),maybeWebtoon:le(()=>n.value??!1)}}function Ep(e,t,n){return le(()=>t.value?bl(e.value,n.value):e.value.map((o,i)=>[{img:o,index:i}]))}function bl(e,t,n=0){if(e.length===0)return[];const o=e.slice(0,2),i=o.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height),r=i||t?[o[0]]:o;return[r.map((s,l)=>({img:s,index:n+l})),...bl(e.slice(r.length),t&&i,n+r.length)]}function Tp(e,t){const n=sessionStorage.getItem("tk:page:path");n!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),n&&sessionStorage.removeItem("tk:page"));const o=Y(t&&e>0?Math.max(0,e):+(sessionStorage.getItem("tk:page")??"0")||e);return le({get:()=>o.value,set:i=>{o.value=i,sessionStorage.setItem("tk:page",i+"")}})}function $p(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const Si=40;function Mp({page:e,direction:t,style:n,isLongStrip:o,isVertical:i,isRTL:r,spaceTop:s,scrollEl:l,isWebtoon:a,interferePlayer:c,onChangedPage:u,onInitialized:f,onFinished:p}){let w=!1,P=!1,E=!1,N;const I=Ne(T,300),R=ws(()=>{T(),I()},300),x=Ne(b,50);async function H(){z(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function _(){var k;P=!0,f(),j(),(k=l.value)==null||k.addEventListener("scroll",R),setTimeout(()=>{const{width:K,height:ce}=Ls();pe(K,()=>{i.value&&x()}),pe(ce,()=>{i.value||x()}),pe(n,b),pe(t,b)},300)}async function b(){if(!P||w)return;w=!0,await pt();const k=e.value;if(v()===k){w=!1;return}z(k)}function z(k,{smooth:K,ensureLastImgVisibility:ce=!1}={smooth:!1}){const fe=l.value;if(!fe)return;w=!0;const be=async()=>{await pt(),w=!1,P||_()},_e=Math.floor(k),Ue=yi(fe,_e);if(!Ue){be();return}c(async()=>{await y(fe,!o.value&&K,async()=>{await ne(fe,Ue,{smooth:K,page:k,ensureLastImgVisibility:ce})}),await be()})}async function y(k,K,ce){K&&k.style.setProperty("scroll-snap-type","none"),await ce(),K&&k.style.removeProperty("scroll-snap-type")}function T(){if(w)return;const k=v();k!==void 0&&k!==e.value&&u(k),j()}function j(){E||!E&&Q()&&(E=!0,p())}function Q(){const k=l.value;if(!k)return!1;const K=o.value?a.value?3:!i.value&&k.clientWidth>k.clientHeight?2.25:2.5:2;return i.value?k.scrollHeight-k.scrollTop<k.clientHeight*K:k.scrollWidth-(r.value?-k.scrollLeft:k.scrollLeft)<k.clientWidth*K}function v(){const k=g();return k?(+k.getAttribute("data-index")||0)+(o.value?C(k):0):void 0}function g(){var K;if(N??(N=l.value.getRootNode()),!N)return;const k=(K=N.elementsFromPoint)==null?void 0:K.call(N,i.value||!o.value?window.innerWidth/2:r.value?window.innerWidth-Si:Si,i.value&&o.value?s.value||Si:window.innerHeight/2);if(k)for(let ce=0;ce<k.length;ce++){const fe=k[ce];if(fe.hasAttribute("data-index"))return fe;if(fe===l.value)break}}function C(k){const K=k.getBoundingClientRect();return i.value?Math.abs(K.top-s.value)/K.height:r.value?Math.max(0,K.right-l.value.clientWidth)/K.width:Math.abs(K.left)/K.width}let Z=!1;async function ne(k,K,ce){if(Z)return;const fe=K.getBoundingClientRect();if(!o.value){if(i.value){if(fe.top<=0&&fe.bottom>=k.clientHeight)return}else if(fe.left<=0&&fe.right>=k.clientWidth)return}Z=!0;const be=i.value?k.scrollTop:k.scrollLeft,_e=ce.page,Ue=o.value?_e%1:0,gt=await sn(30,10,async()=>{await ln();let Me;if(!(K.offsetHeight<10))return o.value?i.value?Me=K.offsetTop+Ue*K.offsetHeight-s.value:r.value?Me=K.offsetLeft-k.clientWidth+K.offsetWidth-Ue*K.offsetWidth:Me=K.offsetLeft+Ue*K.offsetWidth:i.value?Me=K.offsetTop+(fe.top>0?0:fe.height-k.clientHeight):Me=K.offsetLeft+(fe.left>0?0:fe.width-k.clientWidth),_e>.5&&Math.abs(Me)<100?void 0:Me})??0,zt=ce.ensureLastImgVisibility?i.value?Math.min(gt,k.scrollHeight-k.clientHeight*2):r.value?Math.max(gt,-(k.scrollWidth-k.clientWidth*2)):Math.min(gt,k.scrollWidth-k.clientWidth*2):gt;if(!ce.smooth){i.value?k.scrollTop=zt:k.scrollLeft=zt,Z=!1;return}const Ye=zt-be,mt=30;let vt=0;return new Promise(Me=>{(function Xe(){const At=Pp(vt,be,Ye,mt);i.value?k.scrollTop=At:k.scrollLeft=At,vt++,vt<=mt?requestAnimationFrame(Xe):(Me(),Z=!1)})()})}return{init:H,goToPage:z}}function Pp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function Op({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:i,isLongStrip:r,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=Y(typeof l=="string"?l==="true":e),c=le({get:()=>a.value,set:y=>{a.value=y,sessionStorage.setItem("tk:playing",y?"true":"false")}}),u=Y(!1);let f,p;const w=Ne(b,100),P=Ne(()=>{u.value=!0},t?2e3:1e3),E=()=>setTimeout(()=>{u.value=!1,P()},30);E(),t||Ot(window,"mousemove",E);const N=Es();De(()=>{pe(N,y=>{c.value&&(y==="visible"?b():p==null||p())}),pe(s,()=>I()),pe(r,y=>{y||x()})}),Ft(x);async function I(y){c.value&&(p==null||p()),y&&(await pt(),await y()),c.value&&w()}function R(){c.value?x():H()}function x(){c.value&&(c.value=!1,p==null||p(),E())}function H(){!c.value&&r.value&&(c.value=!0,b(),E())}function _(){p==null||p()}function b(){const y=n.value;if(!c.value||!y)return;const T=o.value?y.scrollHeight-y.clientHeight:y.scrollWidth-y.clientWidth,j=z();if(T<=j){x();return}p=()=>{f=Date.now(),p=void 0};const Q=Date.now();f=Q;const v=.05*s.value,g=o.value?"scrollTop":"scrollLeft";let C=Date.now(),Z=0;const ne=()=>{if(f!==Q)return;const k=Date.now(),K=k-C;C=k;const ce=v*K+Z;ce>=1?(Z=ce%1,y[g]+=(ce-Z)*(i.value?-1:1)):Z=ce,setTimeout(ne,1)};ne()}function z(){const y=n.value;return o.value?y.scrollTop:i.value?-y.scrollLeft:y.scrollLeft}return{isPlaying:c,isIdle:u,toggle:R,play:H,pause:_,resume:b,stop:x,interfere:I,awake:E}}function Lp({raw:e,spec:t,siteMeta:n,onSelect:o}){var Q,v,g;const{vol:i,inferVol:r,chap:s,title:l,slug:a,basePath:c}=e,u=t==null?void 0:t.chapter;let f=-1;const p=u&&u.sel&&!u.url?document.querySelectorAll(u.sel):void 0;async function w(C,Z){if(o){o(C);return}if(C.slug)P(C.slug,Z);else if(C.elIndex!==void 0&&p&&p[C.elIndex]){let ne=null;u!=null&&u.trigger&&(ne=document.querySelector(u.trigger)),ne&&(ne.click(),await new Promise(k=>setTimeout(()=>k(),50))),_i(p[C.elIndex]),ne&&ne.click()}}function P(C,Z){const ne=zp(c,C,(n==null?void 0:n.trailing)??!0);Z?window.open(ne,"_blank","noopener"):location.href=ne}function E(C){const Z=H[C];return Z?ne=>w(Z,ne):void 0}function N(C,Z,ne){if(C){const k=document.querySelector(C);k&&_i(k);return}Z&&P(Z,ne)}const I=i??r,R=u==null?void 0:u.url,x=((Q=l.chapters)==null?void 0:Q.filter(C=>C.slug||!R&&C.elIndex!==void 0))??[],H=x.length>1?x:[],_=(v=e.prev)==null?void 0:v.slug,b=(g=e.next)==null?void 0:g.slug,{prevBtn:z,nextBtn:y}=t??{};let T=_||z&&!H.length?C=>N(z,_,C):void 0,j=b||y&&!H.length?C=>N(y,b,C):void 0;if(H.length){if(R&&(f=H.findIndex(C=>C.slug===e.slug)),f===-1&&(f=H.findIndex(C=>(C.vol??C.inferVol)===I&&C.chap===s)),R&&f===-1&&(f=H.findIndex(C=>C.slug&&a.startsWith(`${C.slug}-`)&&a.length-C.slug.length>3)),f!==-1)T??(T=E(f+1)),j??(j=E(f-1));else if(!_&&!b){const C=H.findIndex(Z=>{const ne=Z.vol??Z.inferVol;return I===void 0||ne===void 0||I===ne?Z.chap<s:ne<I});C!==-1?(T=E(C),j=E(C-1)):j=E(H.length-1)}}return{activeIndex:f,activeLabel:yl({vol:i,chap:s}),prev:T,next:j,chapters:H.map(C=>({label:yl(C),select:Z=>w(C,Z)}))}}function yl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}function zp(e,t,n){const o=!t||t.includes("//")||t.startsWith("/")?t:"/"+[...e.split("/"),...t.split("/")].filter(Boolean).join("/"),[i,r]=(o.includes("//")?o:location.origin+o).split("?");return[i.endsWith("/")===n?i:n?i+"/":i.substring(0,-1),r].filter(Boolean).join("?")}const Ap={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},_l=ge(Ce({inheritAttrs:!1,__name:"App",props:{immediate:{type:Boolean},raw:{},spec:{},siteMeta:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},readerStyle:{},direction:{},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean},offlineMode:{type:Boolean}},emits:["error","ready","pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","finished","getHiddenChapters","hapticFeedback","pressedBack","selectChapter","timeout"],setup(e,{emit:t}){const n=e,o=t;let i=!1,r;const s=Y(!1),l=Y(!1),a=_u({touchDevice:n.touchDevice}),c=Tp(n.page,n.isAutoShow),u=le(()=>n.spaceTop??0),{asyncImgs:f,isWebtoon:p,maybeWebtoon:w}=Ip({raw:le(()=>n.raw),spec:n.spec,page:c,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:u,async onReady(m){gt(m),s.value=!0},onError:()=>{o("error"),V()},onTimeout:()=>o("timeout")}),{direction:P,style:E,isRTL:N,isDouble:I,isVertical:R,isLongStrip:x,gap:H,speed:_,zoom:b,breakFirst:z,autoNextSeconds:y}=sd({titleName:le(()=>{var m;return(m=n.raw)==null?void 0:m.title.name}),isWebtoon:p,maybeWebtoon:w,defaultStyle:n.readerStyle,defaultDirection:n.direction}),T=Y(!1),j=Ep(f,I,z),Q=le(()=>c.value>=f.value.length),v=le(()=>n.raw?Lp({raw:n.raw,spec:n.spec,siteMeta:n.siteMeta,onSelect:n.offlineMode?m=>o("selectChapter",m):void 0}):void 0),g=Y(null),C=Is(),Z=Y(!1),ne=Y(!1),k=Op({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:le(()=>{var m;return(m=g.value)==null?void 0:m.$el}),speed:_,isRTL:N,isVertical:R,isLongStrip:x}),K=le(()=>!n.touchDevice&&k.isIdle.value&&!a.value&&!T.value),ce=le({get(){return b.value},set(m){k.interfere(()=>{b.value=m})}}),fe=Mp({page:c,style:E,direction:P,isLongStrip:x,isVertical:R,isRTL:N,spaceTop:u,isWebtoon:p,scrollEl:le(()=>{var m;return(m=g.value)==null?void 0:m.$el}),interferePlayer:m=>k.interfere(m),onChangedPage:gt,onInitialized(){o("ready"),l.value=!0,r=zt()},onFinished:()=>o("finished")}),be=le(()=>Math.floor(c.value)),_e=()=>k.interfere(()=>ln(100));$u().addListener({onKeyDown:m=>{if(n.tourEnabled)return;const O=x.value&&R.value,J=x.value&&!R.value,ie=!x.value&&R.value,xe=!x.value&&!R.value;switch(m.key){case" ":m.preventDefault(),x.value?(G(!1),k.toggle()):A();break;case"ArrowUp":case"PageUp":O?_e():ie&&be.value!==0&&(m.preventDefault(),$());break;case"ArrowDown":case"PageDown":O?_e():ie&&!Q.value&&(m.preventDefault(),M());break;case"ArrowLeft":J?_e():xe?(m.preventDefault(),h()):R.value&&Xe();break;case"ArrowRight":J?_e():xe?(m.preventDefault(),S()):R.value&&Me();break}},onKeyUp:m=>{switch(m.key){case"b":z.value=!z.value;break;case"f":L();break;case"t":F();break;case"h":G();break}}}),pu(()=>o("hapticFeedback")),Ot("fullscreenchange",()=>{Z.value=!!document.fullscreenElement}),pe(k.isPlaying,m=>{m||A(!1),o("playingChanged",m)}),pe(k.isIdle,m=>{k.isPlaying.value&&A(m)}),pe(a,m=>{!m&&k.isIdle.value?k.awake():m&&n.fullScreen&&A()});function gt(m){if(c.value===m)return;const O=f.value.length;if(m<0||m>=O+1)return;const J=Math.floor(m*100)/100;if(J===c.value)return;const ie=c.value;c.value=J,o("pageChanged",J),m>=O?(A(!1),k.stop()):m<.01&&ie>m?(A(!1),k.awake()):i||(x.value?r!==void 0&&zt()-r>300&&A(!0):Math.abs(ie-m)===1&&A(!0))}function zt(){var O;const m=(O=g.value)==null?void 0:O.$el;return m?R.value?m.scrollTop:N.value?-m.scrollLeft:m.scrollLeft:0}function Ye(){!n.touchDevice&&!x.value&&fe.goToPage(be.value,{smooth:!0})}function mt(){if(k.isPlaying.value){!n.fullScreen||!n.touchDevice?k.stop():k.awake();return}A()}function vt(m){n.offlineMode&&(m.preventDefault(),o("pressedBack"))}function Me(m=!1){var O,J;(J=(O=v.value)==null?void 0:O.next)==null||J.call(O,m)}function Xe(m=!1){var O,J;(J=(O=v.value)==null?void 0:O.prev)==null||J.call(O,m)}function At(m){N.value?Me(d(m)):Xe(d(m))}function On(m){N.value?Xe(d(m)):Me(d(m))}function d(m){return!n.touchDevice&&(m.ctrlKey||m.metaKey)}function h(){N.value?M():$()}function S(){N.value?$():M()}function $(){var J;const m=j.value,O=Q.value?m[m.length-1][0].index:(J=m[B()-1])==null?void 0:J[0].index;O!==void 0?fe.goToPage(O):Xe()}function M(){var m,O;if(Q.value)Me();else{const J=((O=(m=j.value[B()+1])==null?void 0:m[0])==null?void 0:O.index)??f.value.length;fe.goToPage(J)}}function B(){const m=be.value,O=j.value.findIndex(J=>J.some(({index:ie})=>ie===m));return O===-1?j.value.length-1:O}function V(){if(n.offlineMode){o("pressedBack");return}$p(),o("dispose")}async function A(m){if(a.value&&!n.fullScreen)return;const O=typeof m=="boolean"?m:!n.fullScreen;O!==n.fullScreen&&(i=!0,o("fullScreenChanged",O),O&&setTimeout(()=>{n.fullScreen&&a.value&&o("fullScreenChanged",!1)},100))}function F(){n.entryId?oe():W()}function L(){var m,O;document.fullscreenElement?document.exitFullscreen():(O=(m=C.value)==null?void 0:m.querySelector("#reader-layout"))==null||O.requestFullscreen()}function W(){k.stop(),o("addEntry")}function oe(){k.stop(),o("openEntry",n.entryId)}function G(m){ne.value!==m&&(ne.value=!ne.value,ne.value&&k.isPlaying.value&&k.stop())}return(m,O)=>m.immediate||s.value?(D(),he(Js,{key:0,loading:!l.value,immediate:!!m.immediate,"full-screen":!!m.fullScreen,zooming:T.value,idle:K.value,"space-top":u.value,rtl:q(N),onClick:O[15]||(O[15]=Re(()=>{},["stop"]))},Cr({settings:se(()=>{var J;return[ee(Ns,{"reader-style":q(E),"onUpdate:readerStyle":O[6]||(O[6]=ie=>Ee(E)?E.value=ie:null),direction:q(P),"onUpdate:direction":O[7]||(O[7]=ie=>Ee(P)?P.value=ie:null),gap:q(H),"onUpdate:gap":O[8]||(O[8]=ie=>Ee(H)?H.value=ie:null),speed:q(_),"onUpdate:speed":O[9]||(O[9]=ie=>Ee(_)?_.value=ie:null),zoom:ce.value,"onUpdate:zoom":O[10]||(O[10]=ie=>ce.value=ie),"auto-next-seconds":q(y),"onUpdate:autoNextSeconds":O[11]||(O[11]=ie=>Ee(y)?y.value=ie:null),name:(J=m.raw)==null?void 0:J.title.name,webtoon:q(p),disabled:!s.value,onHelp:G},null,8,["reader-style","direction","gap","speed","zoom","auto-next-seconds","name","webtoon","disabled"])]}),"reset-zoom":se(()=>[ee(nn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:se(()=>[T.value||q(b)!==1?(D(),he(Hs,{key:0,zoom:ce.value,onClick:O[14]||(O[14]=Re(()=>ce.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])):ye("",!0)]),_:1})]),progress:se(()=>[X("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Le({width:`${q(c)/(q(f).length-1)*100}%`})},null,4)]),default:se(()=>{var J;return[s.value?(D(),he(Qs,{key:0,ref_key:"body",ref:g,zoom:ce.value,"onUpdate:zoom":O[0]||(O[0]=ie=>ce.value=ie),zooming:T.value,"onUpdate:zooming":O[1]||(O[1]=ie=>T.value=ie),page:q(c),"page-index":be.value,pages:q(j),"total-imgs":q(f).length,direction:q(P),gap:q(H),"is-long-strip":q(x),isRTL:q(N),"is-double":q(I),"is-vertical":q(R),"space-top":u.value,busy:q(a),idle:K.value,"play-controller":q(k),"touch-device":m.touchDevice,"has-next":!!((J=v.value)!=null&&J.next),onReady:q(fe).init,onPrev:$,onNext:M,onClick:mt,onDragEnd:Ye,onWheelPassive:O[2]||(O[2]=()=>q(k).interfere())},Cr({_:2},[s.value&&q(f).length?{name:"end",fn:se(()=>{var ie;return[ee(zs,{"has-next":!!((ie=v.value)!=null&&ie.next),"offline-mode":!!m.offlineMode,seconds:q(y),onNext:Me,onHide:V},null,8,["has-next","offline-mode","seconds"])]}),key:"0"}:void 0]),1032,["zoom","zooming","page","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-double","is-vertical","space-top","busy","idle","play-controller","touch-device","has-next","onReady"])):ye("",!0),l.value&&!Q.value&&!m.tourEnabled?(D(),he(Us,{key:1,direction:q(P)},null,8,["direction"])):ye("",!0),l.value&&!Q.value?(D(),he(Zs,{key:2,playing:!!q(k).isPlaying.value},null,8,["playing"])):ye("",!0),ne.value?(D(),he(Ys,{key:3,"touch-device":m.touchDevice,onHide:G},null,8,["touch-device"])):ye("",!0),m.tourEnabled?(D(),he(el,{key:4,onHide:O[3]||(O[3]=()=>o("tourEnabledChanged",!1))})):ye("",!0)]}),_:2},[m.raw||m.offlineMode?{name:"back",fn:se(()=>[ee(tt,{href:m.offlineMode||!m.raw?"#":m.raw.title.url,title:"Back to manga","enable-haptic-feedback":"",onClick:vt},{default:se(()=>[ee(tl)]),_:1},8,["href"])]),key:"0"}:void 0,m.touchDevice?void 0:{name:"exit",fn:se(()=>[ee(tt,{title:"Hide reader","data-tour":"You have entered reader mode, press here to return to the original page",onClick:V},{default:se(()=>[ee(ul)]),_:1})]),key:"1"},v.value?{name:"chapter-nav",fn:se(()=>{var J;return[ee(Ks,{"touch-device":m.touchDevice,"chapter-spec":(J=m.spec)==null?void 0:J.chapter,data:v.value,onGetHiddenChapters:O[4]||(O[4]=()=>o("getHiddenChapters")),onChaptersDialogOpen:O[5]||(O[5]=()=>A(!0))},null,8,["touch-device","chapter-spec","data"]),v.value.next||v.value.prev?(D(),U("div",Ap,[ee(tt,{title:`${q(N)?"Next":"Prev"} chapter (←)`,disabled:q(N)?!v.value.next:!v.value.prev,class:"!rounded-r-none","enable-haptic-feedback":"",onClick:At},{default:se(()=>[ee(il)]),_:1},8,["title","disabled"]),ee(tt,{title:`${q(N)?"Prev":"Next"} chapter (→)`,disabled:q(N)?!v.value.prev:!v.value.next,class:"!rounded-l-none","enable-haptic-feedback":"",onClick:On},{default:se(()=>[ee(rl)]),_:1},8,["title","disabled"])])):ye("",!0)]}),key:"2"}:void 0,q(j).length?{name:"page-nav",fn:se(()=>[ee(Xs,{"model-value":be.value,disabled:!l.value,pages:q(j),"total-imgs":q(f).length,"onUpdate:modelValue":q(fe).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,!m.offlineMode&&m.raw?{name:"entry",fn:se(()=>[ee(tt,{title:m.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:F},{default:se(()=>[m.entryId?(D(),he(ol,{key:0})):(D(),he(nl,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,m.touchDevice?void 0:{name:"full-screen",fn:se(()=>[ee(tt,{title:`${Z.value?"Exit":"Enter"} fullscreen (F)`,onClick:L},{default:se(()=>[Z.value?(D(),he(cl,{key:0})):(D(),he(al,{key:1}))]),_:1},8,["title"])]),key:"5"},q(x)?{name:"play",fn:se(()=>[ee(tt,{"data-tour":"Press here to play like a video",title:`${q(k).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!l.value,onClick:O[12]||(O[12]=()=>q(k).toggle())},{default:se(()=>[q(k).isPlaying.value?(D(),he(mi,{key:0})):(D(),he(vi,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0,q(I)?{name:"break-first",fn:se(()=>[ee(tt,{title:"Break 1st page (B)","data-tour":"Press here to separate the first page from double-page mode",disabled:!l.value,onClick:O[13]||(O[13]=()=>z.value=!q(z))},{default:se(()=>[q(z)?(D(),he(ll,{key:0})):(D(),he(sl,{key:1}))]),_:1},8,["disabled"])]),key:"7"}:void 0]),1032,["loading","immediate","full-screen","zooming","idle","space-top","rtl"])):ye("",!0)}}),[["styles",[`/*! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Helvetica,sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:300px){.container{max-width:300px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:4px;width:4px}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-full{top:100%}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.m-0{margin:0}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.-ml-20{margin-left:-80px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.ml-1{margin-left:4px}.ml-auto{margin-left:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-0\\.5{height:2px}.h-1{height:4px}.h-1\\.5{height:6px}.h-10{height:40px}.h-12{height:48px}.h-16{height:64px}.h-20{height:80px}.h-24{height:96px}.h-4{height:16px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-9{height:36px}.h-\\[101\\%\\]{height:101%}.h-\\[30rem\\]{height:480px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-full{max-height:100%}.max-h-none{max-height:none}.w-1{width:4px}.w-1\\/3{width:33.333333%}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-28{width:112px}.w-4{width:16px}.w-40{width:160px}.w-\\[4\\.8rem\\]{width:76.8px}.w-full{width:100%}.w-screen{width:100vw}.max-w-full{max-width:100%}.max-w-none{max-width:none}.max-w-xs{max-width:320px}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-right{transform-origin:right}.origin-top{transform-origin:top}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1{--tw-translate-y:-4px}.-translate-y-1\\.5{--tw-translate-y:-6px}.-translate-y-1\\.5,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--tw-translate-y:4px}.translate-y-1\\.5{--tw-translate-y:6px}.translate-y-1\\.5,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y:100%}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-grabbing{cursor:grabbing}.cursor-none{cursor:none}.cursor-pointer{cursor:pointer}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}.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)}.snap-center{scroll-snap-align:center}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.gap-6{gap:24px}.gap-\\[1px\\]{gap:1px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:4px}.rounded-2xl{border-radius:16px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-sm{border-radius:2px}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.rounded-t-sm{border-top-left-radius:2px;border-top-right-radius:2px}.rounded-t-xl{border-top-left-radius:12px;border-top-right-radius:12px}.border{border-width:1px}.border-2{border-width:2px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-opacity-40{--tw-bg-opacity:.4}.bg-opacity-50{--tw-bg-opacity:.5}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-90{--tw-bg-opacity:.9}.bg-none{background-image:none}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0{padding:0}.p-1{padding:4px}.p-2{padding:8px}.p-4{padding:16px}.p-6{padding:24px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-6{padding-left:24px;padding-right:24px}.py-1{padding-bottom:4px;padding-top:4px}.py-2{padding-bottom:8px;padding-top:8px}.pb-12{padding-bottom:48px}.pb-6{padding-bottom:24px}.pl-1{padding-left:4px}.pt-3{padding-top:12px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-90{opacity:.9}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:300px){.\\32xs\\:gap-3{gap:12px}}@media (min-width:640px){.sm\\:w-\\[32rem\\]{width:512px}.sm\\:p-3{padding:12px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-5{padding-bottom:20px}.md\\:text-lg{font-size:18px;line-height:28px}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}.lg\\:pb-3{padding-bottom:12px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
|
|
28
|
-
`]]]),
|
|
29
|
-
`,
|
|
20
|
+
**/const _c="http://www.w3.org/2000/svg",wc="http://www.w3.org/1998/Math/MathML",$t=typeof document<"u"?document:null,ts=$t&&$t.createElement("template"),xc={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 i=t==="svg"?$t.createElementNS(_c,e):t==="mathml"?$t.createElementNS(wc,e):$t.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&i.setAttribute("multiple",o.multiple),i},createText:e=>$t.createTextNode(e),createComment:e=>$t.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>$t.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,i,r){const s=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{ts.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=ts.content;if(o==="svg"||o==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Mt="transition",Cn="animation",In=Symbol("_vtc"),nn=(e,{slots:t})=>es(Oa,Sc(e),t);nn.displayName="Transition";const ns={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};nn.props=Se({},_r,ns);const Vt=(e,t=[])=>{ee(e)?e.forEach(n=>n(...t)):e&&e(...t)},os=e=>e?ee(e)?e.some(t=>t.length>1):e.length>1:!1;function Sc(e){const t={};for(const $ in e)$ in ns||(t[$]=e[$]);if(e.css===!1)return t;const{name:n="v",type:o,duration:i,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=r,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:x=`${n}-leave-to`}=e,C=kc(i),E=C&&C[0],F=C&&C[1],{onBeforeEnter:k,onEnter:H,onEnterCancelled:y,onLeave:W,onLeaveCancelled:_,onBeforeAppear:v=k,onAppear:P=H,onAppearCancelled:b=y}=t,T=($,h,w)=>{Wt($,h?u:l),Wt($,h?c:s),w&&w()},j=($,h)=>{$._isLeaving=!1,Wt($,d),Wt($,x),Wt($,p),h&&h()},G=$=>(h,w)=>{const Y=$?P:H,ie=()=>T(h,$,w);Vt(Y,[h,ie]),is(()=>{Wt(h,$?a:r),Ot(h,$?u:l),os(Y)||rs(h,o,E,ie)})};return Se(t,{onBeforeEnter($){Vt(k,[$]),Ot($,r),Ot($,s)},onBeforeAppear($){Vt(v,[$]),Ot($,a),Ot($,c)},onEnter:G(!1),onAppear:G(!0),onLeave($,h){$._isLeaving=!0;const w=()=>j($,h);Ot($,d),Ec(),Ot($,p),is(()=>{$._isLeaving&&(Wt($,d),Ot($,x),os(W)||rs($,o,F,w))}),Vt(W,[$,w])},onEnterCancelled($){T($,!1),Vt(y,[$])},onAppearCancelled($){T($,!0),Vt(b,[$])},onLeaveCancelled($){j($),Vt(_,[$])}})}function kc(e){if(e==null)return null;if(be(e))return[ni(e.enter),ni(e.leave)];{const t=ni(e);return[t,t]}}function ni(e){return So(e)}function Ot(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[In]||(e[In]=new Set)).add(t)}function Wt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[In];n&&(n.delete(t),n.size||(e[In]=void 0))}function is(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Cc=0;function rs(e,t,n,o){const i=e._endId=++Cc,r=()=>{i===e._endId&&o()};if(n)return setTimeout(r,n);const{type:s,timeout:l,propCount:a}=Ic(e,t);if(!s)return o();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,p),r()},p=x=>{x.target===e&&++u>=a&&d()};setTimeout(()=>{u<a&&d()},l+1),e.addEventListener(c,p)}function Ic(e,t){const n=window.getComputedStyle(e),o=C=>(n[C]||"").split(", "),i=o(`${Mt}Delay`),r=o(`${Mt}Duration`),s=ss(i,r),l=o(`${Cn}Delay`),a=o(`${Cn}Duration`),c=ss(l,a);let u=null,d=0,p=0;t===Mt?s>0&&(u=Mt,d=s,p=r.length):t===Cn?c>0&&(u=Cn,d=c,p=a.length):(d=Math.max(s,c),u=d>0?s>c?Mt:Cn:null,p=u?u===Mt?r.length:a.length:0);const x=u===Mt&&/\b(transform|all)(,|$)/.test(o(`${Mt}Property`).toString());return{type:u,timeout:d,propCount:p,hasTransform:x}}function ss(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>ls(n)+ls(e[o])))}function ls(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ec(){return document.body.offsetHeight}function Tc(e,t,n){const o=e[In];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const oi=Symbol("_vod"),$c={beforeMount(e,{value:t},{transition:n}){e[oi]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):En(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),En(e,!0),o.enter(e)):o.leave(e,()=>{En(e,!1)}):En(e,t))},beforeUnmount(e,{value:t}){En(e,t)}};function En(e,t){e.style.display=t?e[oi]:"none"}const Mc=Symbol("");function Oc(e,t,n){const o=e.style,i=o.display,r=ke(n);if(n&&!r){if(t&&!ke(t))for(const s in t)n[s]==null&&ii(o,s,"");for(const s in n)ii(o,s,n[s])}else if(r){if(t!==n){const s=o[Mc];s&&(n+=";"+s),o.cssText=n}}else t&&e.removeAttribute("style");oi in e&&(o.display=i)}const as=/\s*!important$/;function ii(e,t,n){if(ee(n))n.forEach(o=>ii(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Pc(e,t);as.test(n)?e.setProperty(Ue(o),n.replace(as,""),"important"):e[o]=n}}const cs=["Webkit","Moz","ms"],ri={};function Pc(e,t){const n=ri[t];if(n)return n;let o=De(t);if(o!=="filter"&&o in e)return ri[t]=o;o=Bn(o);for(let i=0;i<cs.length;i++){const r=cs[i]+o;if(r in e)return ri[t]=r}return t}const us="http://www.w3.org/1999/xlink";function Lc(e,t,n,o,i){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(us,t.slice(6,t.length)):e.setAttributeNS(us,t,n);else{const r=Ll(t);n==null||r&&!Pi(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function zc(e,t,n,o,i,r,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,i,r),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=Pi(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function on(e,t,n,o){e.addEventListener(t,n,o)}function Ac(e,t,n,o){e.removeEventListener(t,n,o)}const ds=Symbol("_vei");function Dc(e,t,n,o,i=null){const r=e[ds]||(e[ds]={}),s=r[t];if(o&&s)s.value=o;else{const[l,a]=jc(t);if(o){const c=r[t]=Nc(o,i);on(e,l,c,a)}else s&&(Ac(e,l,s,a),r[t]=void 0)}}const fs=/(?:Once|Passive|Capture)$/;function jc(e){let t;if(fs.test(e)){t={};let o;for(;o=e.match(fs);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ue(e.slice(2)),t]}let si=0;const Bc=Promise.resolve(),Rc=()=>si||(Bc.then(()=>si=0),si=Date.now());function Nc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Je(Fc(o,n.value),t,5,[o])};return n.value=e,n.attached=Rc(),n}function Fc(e,t){if(ee(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>i=>!i._stopped&&o&&o(i))}else return t}const ps=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Hc=(e,t,n,o,i,r,s,l,a)=>{const c=i==="svg";t==="class"?Tc(e,o,c):t==="style"?Oc(e,n,o):zn(t)?bo(t)||Dc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Vc(e,t,o,c))?zc(e,t,o,r,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Lc(e,t,o,c))};function Vc(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&ps(t)&&se(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return ps(t)&&ke(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Wc(e,t){const n=Ce(e);class o extends li{constructor(r){super(n,r,t)}}return o.def=n,o}const Kc=typeof HTMLElement<"u"?HTMLElement:class{};class li extends Kc{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&o?o(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),gt(()=>{this._connected||(bs(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);this._ob=new MutationObserver(o=>{for(const i of o)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(o,i=!1)=>{const{props:r,styles:s}=o;let l;if(r&&!ee(r))for(const a in r){const c=r[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=So(this._props[a])),(l||(l=Object.create(null)))[De(a)]=!0)}this._numberProps=l,i&&this._resolveProps(o),this._applyStyles(s),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=ee(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&o.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of o.map(De))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(r){this._setProp(i,r)}})}_setAttr(t){let n=this.getAttribute(t);const o=De(t);this._numberProps&&this._numberProps[o]&&(n=So(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,i=!0){n!==this._props[t]&&(this._props[t]=n,i&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(Ue(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ue(t),n+""):n||this.removeAttribute(Ue(t))))}_update(){bs(this._createVNode(),this.shadowRoot)}_createVNode(){const t=J(this._def,Se({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(r,s)=>{this.dispatchEvent(new CustomEvent(r,{detail:s}))};n.emit=(r,...s)=>{o(r,s),Ue(r)!==r&&o(Ue(r),s)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof li){n.parent=i._instance,n.provides=i._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}const hs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?n=>Rn(t,n):t};function qc(e){e.target.composing=!0}function gs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ai=Symbol("_assign"),Uc={created(e,{modifiers:{lazy:t,trim:n,number:o}},i){e[ai]=hs(i);const r=o||i.props&&i.props.type==="number";on(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),r&&(l=xo(l)),e[ai](l)}),n&&on(e,"change",()=>{e.value=e.value.trim()}),t||(on(e,"compositionstart",qc),on(e,"compositionend",gs),on(e,"change",gs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:i}},r){if(e[ai]=hs(r),e.composing)return;const s=i||e.type==="number"?xo(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Yc=["ctrl","shift","alt","meta"],Xc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Yc.some(n=>e[`${n}Key`]&&!t.includes(n))},Ne=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(i,...r)=>{for(let s=0;s<t.length;s++){const l=Xc[t[s]];if(l&&l(i,t))return}return e(i,...r)})},Zc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ms=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=i=>{if(!("key"in i))return;const r=Ue(i.key);if(t.some(s=>s===r||Zc[s]===r))return e(i)})},Gc=Se({patchProp:Hc},xc);let vs;function Qc(){return vs||(vs=ec(Gc))}const bs=(...e)=>{Qc().render(...e)};var ys;const ci=typeof window<"u",_s=e=>typeof e=="function",Jc=e=>typeof e=="string",Pt=()=>{};ci&&((ys=window==null?void 0:window.navigator)!=null&&ys.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function go(e){return typeof e=="function"?e():q(e)}function ws(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}function eu(e,t={}){let n,o,i=Pt;const r=l=>{clearTimeout(l),i(),i=Pt};return l=>{const a=go(e),c=go(t.maxWait);return n&&r(n),a<=0||c!==void 0&&c<=0?(o&&(r(o),o=null),Promise.resolve(l())):new Promise((u,d)=>{i=t.rejectOnCancel?d:u,c&&!o&&(o=setTimeout(()=>{n&&r(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&r(o),o=null,u(l())},a)})}}function tu(e,t=!0,n=!0,o=!1){let i=0,r,s=!0,l=Pt,a;const c=()=>{r&&(clearTimeout(r),r=void 0,l(),l=Pt)};return d=>{const p=go(e),x=Date.now()-i,C=()=>a=d();if(c(),p<=0)return i=Date.now(),C();if(x>p&&(n||!s))i=Date.now(),C();else if(t)return new Promise((E,F)=>{l=o?F:E,r=setTimeout(()=>{i=Date.now(),s=!0,E(C()),c()},p-x)});return!n&&!r&&(r=setTimeout(()=>s=!0,p)),s=!1,a}}function nu(e){return e}function ou(e,t){let n,o,i;const r=X(!0),s=()=>{r.value=!0,i()};ge(e,s,{flush:"sync"});const l=_s(t)?t:t.get,a=_s(t)?void 0:t.set,c=rr((u,d)=>(o=u,i=d,{get(){return r.value&&(n=l(),r.value=!1),o(),n},set(p){a==null||a(p)}}));return Object.isExtensible(c)&&(c.trigger=s),c}function ui(e){return zi()?(Dl(e),!0):!1}function Fe(e,t=200,n={}){return ws(eu(t,n),e)}function xs(e,t=200,n=!1,o=!0,i=!1){return ws(tu(t,n,o,i),e)}function Ss(e,t=!0){uo()?Be(e):t?e():gt(e)}function Kt(e){var t;const n=go(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Tn=ci?window:void 0,iu=ci?window.document:void 0;function Lt(...e){let t,n,o,i;if(Jc(e[0])||Array.isArray(e[0])?([n,o,i]=e,t=Tn):[t,n,o,i]=e,!t)return Pt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],s=()=>{r.forEach(u=>u()),r.length=0},l=(u,d,p)=>(u.addEventListener(d,p,i),()=>u.removeEventListener(d,p,i)),a=ge(()=>Kt(t),u=>{s(),u&&r.push(...n.flatMap(d=>o.map(p=>l(u,d,p))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return ui(c),c}function ks(e,t=!1){const n=X(),o=()=>n.value=!!e();return o(),Ss(o,t),n}const Cs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Is="__vueuse_ssr_handlers__";Cs[Is]=Cs[Is]||{};function Es(){const e=uo(),t=ou(()=>null,()=>e.proxy.$el);return Cr(t.trigger),Be(t.trigger),t}function Ts({document:e=iu}={}){if(!e)return X("visible");const t=X(e.visibilityState);return Lt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var $s=Object.getOwnPropertySymbols,ru=Object.prototype.hasOwnProperty,su=Object.prototype.propertyIsEnumerable,lu=(e,t)=>{var n={};for(var o in e)ru.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&$s)for(var o of $s(e))t.indexOf(o)<0&&su.call(e,o)&&(n[o]=e[o]);return n};function au(e,t,n={}){const o=n,{window:i=Tn}=o,r=lu(o,["window"]);let s;const l=ks(()=>i&&"ResizeObserver"in i),a=()=>{s&&(s.disconnect(),s=void 0)},c=ge(()=>Kt(e),d=>{a(),l.value&&i&&d&&(s=new ResizeObserver(t),s.observe(d,r))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return ui(u),{isSupported:l,stop:u}}function Ms(e,t={width:0,height:0},n={}){const{window:o=Tn,box:i="content-box"}=n,r=ae(()=>{var a,c;return(c=(a=Kt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=X(t.width),l=X(t.height);return au(e,([a])=>{const c=i==="border-box"?a.borderBoxSize:i==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&r.value){const u=Kt(e);if(u){const d=o.getComputedStyle(u);s.value=parseFloat(d.width),l.value=parseFloat(d.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((d,{inlineSize:p})=>d+p,0),l.value=u.reduce((d,{blockSize:p})=>d+p,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),ge(()=>Kt(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function di(e,t,n={}){const{root:o,rootMargin:i="0px",threshold:r=.1,window:s=Tn}=n,l=ks(()=>s&&"IntersectionObserver"in s);let a=Pt;const c=l.value?ge(()=>({el:Kt(e),root:Kt(o)}),({el:d,root:p})=>{if(a(),!d)return;const x=new IntersectionObserver(t,{root:p,rootMargin:i,threshold:r});x.observe(d),a=()=>{x.disconnect(),a=Pt}},{immediate:!0,flush:"post"}):Pt,u=()=>{a(),c()};return ui(u),{isSupported:l,stop:u}}var Os;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Os||(Os={}));var cu=Object.defineProperty,Ps=Object.getOwnPropertySymbols,uu=Object.prototype.hasOwnProperty,du=Object.prototype.propertyIsEnumerable,Ls=(e,t,n)=>t in e?cu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fu=(e,t)=>{for(var n in t||(t={}))uu.call(t,n)&&Ls(e,n,t[n]);if(Ps)for(var n of Ps(t))du.call(t,n)&&Ls(e,n,t[n]);return e};fu({linear:nu},{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 fi(e={}){const{window:t=Tn,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:i=!0,includeScrollbar:r=!0}=e,s=X(n),l=X(o),a=()=>{t&&(r?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),Ss(a),Lt("resize",a,{passive:!0}),i&&Lt("orientationchange",a,{passive:!0}),{width:s,height:l}}function pu(e){yn("hapticFeedback",e)}function pi(){return Ct("hapticFeedback")}const hu=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let i=1,r=.65;const s=setInterval(a,20);l();function l(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function a(){const c=+n||50;i<=c?(i++,r-=.65/c,o.style.transform=`scale(${i})`,o.style.opacity=`${r}`):(o.remove(),clearInterval(s))}},rn={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>hu(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},gu={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},mu={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},vu=Ce({__name:"AutoNext",props:{hasNext:{type:Boolean},offlineMode:{type:Boolean},seconds:{}},emits:["next","hide"],setup(e,{emit:t}){const n=e,o=t,i=X(null),r=X(null),s=X(!1),l=X(!1),a=X(n.seconds),c=X(n.seconds<0),u=X(n.seconds),d=pi();Be(()=>{let C;di(r,E=>{l.value=E.some(F=>F.isIntersecting),c.value=n.seconds<0,a.value=n.seconds,u.value=n.seconds,C&&(clearInterval(C),C=void 0),!(!l.value||c.value)&&(C=setInterval(()=>{a.value-=1,a.value<=0&&(clearInterval(C),C=void 0,o("next"))},1e3))}),di(i,E=>{s.value=E.some(F=>F.isIntersecting)}),Nt(()=>C&&clearInterval(C))});function p(){o("next"),d()}function x(){o("hide")}return(C,E)=>(A(),U("div",{ref_key:"root",ref:i,class:"h-full w-full flex justify-center items-center"},[lt(Z("div",gu,[C.hasNext?(A(),U("div",mu,[l.value?(A(),U("div",{key:0,class:"absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50",style:Le(c.value?{}:{animation:`auto-next ${u.value}s linear forwards`})},null,4)):we("",!0),lt((A(),U("button",{ref_key:"nextButton",ref:r,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 totalDuration-200",onClick:Ne(p,["stop"])},[Et(Ye(c.value?"Next":`Next in ${a.value}`),1)])),[[q(rn)]])])):we("",!0),lt((A(),U("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 totalDuration-200",onClick:Ne(x,["stop"])},[Et(Ye(C.offlineMode?"Close":"Hide"),1)])),[[q(rn)]])],512),[[$c,s.value||!C.hasNext]])],512))}}),bu=`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
|
|
21
|
+
`,me=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},zs=me(vu,[["styles",[bu]]]),yu=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"}));function _u({touchDevice:e}){const t=X(!1);let n=0;return yn("busy:touchDevice",e),yn("setBusyState",o=>{n+=o?1:-1;const i=n>0;t.value!=i&&(t.value=i)}),t}function hi(){const e=Ct("busy:touchDevice"),t=Ct("setBusyState");let n=!1;return Nt(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:i=!1}={})=>{i&&e||(n=o,t==null||t(o))}}const wu={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"},nt=Ce({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean},enableHapticFeedback:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=t,i=hi(),r=pi();let s=!1;function l(){s||(s=!0,i(!0,{desktopOnly:!0}))}function a(){s&&(s=!1,i(!1,{desktopOnly:!0}))}function c(u){n.disabled?u.preventDefault():(o("click",u),n.enableHapticFeedback&&r())}return(u,d)=>lt((A(),he(vr(u.href?"a":"button"),xn(u.href?{href:u.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full flex-shrink-0 focus:outline-none",{"cursor-default text-stone-400 hover:text-stone-400":u.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!u.disabled,"bg-black bg-opacity-50":!u.transparent}],onClick:Ne(c,["stop"]),onMouseenter:l,onMouseleave:a}),{default:le(()=>[Z("div",wu,[xe(u.$slots,"default")])]),_:3},16,["class"])),[[q(rn),u.disabled?0:15]])}}),xu=Object.freeze(Object.defineProperty({__proto__:null,default:nt},Symbol.toStringTag,{value:"Module"})),Su={},ku={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Cu=[Z("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 Iu(e,t){return A(),U("svg",ku,Cu)}const As=me(Su,[["render",Iu]]),Eu=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"}));class Tu{constructor(){ve(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 $u(){const e=new Tu;return Nt(()=>e.dispose()),yn("keyController",e),e}function mo(e){const t=Ct("keyController");Be(()=>t.addListener(e)),Nt(()=>t.removeListener(e))}const Mu={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},Ou={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3 select-text"},Pu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},Ds=Ce({__name:"BottomSheet",props:tn({name:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=kn(e,"modelValue");mo({onKeyDown:o});const n=hi();ge(t,i=>n(i));function o(i){t.value&&i.key==="Escape"&&(t.value=!1,i.preventDefault())}return(i,r)=>(A(),U("div",{class:Te(["fixed inset-0 flex flex-col items-center justify-end select-none",{"!pointer-events-none":!t.value}]),onClick:r[3]||(r[3]=()=>t.value=!1)},[J(nn,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:le(()=>[t.value?(A(),U("div",{key:0,class:"inline-flex flex-col h-[30rem] w-full sm:w-[32rem] max-h-[80vh] bg-stone-800 bg-opacity-90 backdrop-blur-md rounded-t-xl max-w-full overflow-hidden duration-200",onClick:r[1]||(r[1]=Ne(()=>{},["stop"])),onWheelPassive:r[2]||(r[2]=Ne(()=>{},["stop"]))},[Z("div",Mu,[J(nt,{transparent:"",onClick:r[0]||(r[0]=()=>t.value=!1)},{default:le(()=>[J(As)]),_:1}),Z("div",Ou,Ye(i.name),1),xe(i.$slots,"actions")]),Z("div",Pu,[xe(i.$slots,"default")])],32)):we("",!0)]),_:3})],2))}}),Lu=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),zu=["min","max","step"],Au={class:"flex-shrink-0"},gi=me(Ce({__name:"InputPercentage",props:tn({min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=kn(e,"modelValue"),n=ae({get(){return t.value},set(o){t.value=+o}});return(o,i)=>(A(),U("div",{class:Te(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":o.disabled}]),style:Le({"--percentage":`${(n.value-o.min)/(o.max-o.min)*100}%`})},[lt(Z("input",{"onUpdate:modelValue":i[0]||(i[0]=r=>n.value=r),type:"range",min:o.min,max:o.max,step:o.step??1,class:"flex-grow"},null,8,zu),[[Uc,n.value]]),Z("p",Au,[xe(o.$slots,"suffix")])],6))}}),[["styles",[`input[type=range]{--tw-bg-opacity:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to right,#d6d3d1 var(--percentage),#78716c var(--percentage));background-color:rgb(120 113 108/var(--tw-bg-opacity));border-radius:2px;border-style:none;cursor:pointer;height:6px;opacity:.9;outline:2px solid transparent;outline-offset:2px}input[type=range]::-webkit-slider-thumb{--tw-border-opacity:1;--tw-bg-opacity:1;-webkit-appearance:none!important;background-color:rgb(214 211 209/var(--tw-bg-opacity));border-color:rgb(214 211 209/var(--tw-border-opacity));border-radius:2px;border-style:solid;border-width:2px;cursor:pointer;height:28px;transition-duration:.2s;width:16px}input[type=range]:hover{opacity:1}
|
|
22
|
+
`]]]),Du=Object.freeze(Object.defineProperty({__proto__:null,default:gi},Symbol.toStringTag,{value:"Module"})),ju=["onClick","onKeyup"],$n=Ce({__name:"InputSelect",props:tn({items:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=kn(e,"modelValue"),o=X(null),i=X({width:"",left:""});Be(()=>{let s=!1;ge(n,l=>{var c;const a=(c=o.value)==null?void 0:c.children[l+1];a&&(i.value={width:a.offsetWidth+"px",left:a.offsetLeft+"px"},a.scrollIntoView({behavior:s?"smooth":"auto",block:"center",inline:"center"}),s=!0)},{immediate:!0})});function r(s){s!==n.value&&(n.value=s)}return(s,l)=>(A(),U("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:{}},[Z("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Le(i.value)},null,4),(A(!0),U(Ie,null,mn(t.items,(a,c)=>lt((A(),U("div",{key:c,tabindex:"0",class:Te(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.value,"text-stone-400":c!=n.value}]),onClick:()=>r(c),onKeyup:[ms(()=>r(c),["enter"]),ms(()=>r(c),["space"])]},[Et(Ye(a),1)],42,ju)),[[q(rn),30]])),128))],512))}}),Bu=Object.freeze(Object.defineProperty({__proto__:null,default:$n},Symbol.toStringTag,{value:"Module"})),Ru={class:"flex items-center mb-8 last:mb-0"},Nu={class:"flex-grow overflow-hidden"},qt=Ce({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(A(),U("div",Ru,[Z("div",{class:Te(["flex-shrink-0 w-[4.8rem]",{"opacity-50":t.disabled}])},Ye(t.label),3),Z("div",Nu,[xe(t.$slots,"default")])]))}}),Fu=Object.freeze(Object.defineProperty({__proto__:null,default:qt},Symbol.toStringTag,{value:"Module"})),Hu={},Vu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Wu=[Z("path",{fill:"currentColor",d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"},null,-1)];function Ku(e,t){return A(),U("svg",Vu,Wu)}const js=me(Hu,[["render",Ku]]),qu=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),Uu={},Yu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Xu=[Z("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),Z("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Zu(e,t){return A(),U("svg",Yu,Xu)}const Bs=me(Uu,[["render",Zu]]),Gu=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"}));function Qu(e){if(e)try{return JSON.parse(e)}catch{return}}function Ju(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var ut=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(ut||{}),dt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(dt||{});const ed=.25,td=5,nd=.25,Mn=.2,On=5,od=.05,id=0,rd=4,Rs=5,sd=640,ld=480;function ad(e){var P,b,T,j,G,$,h;const{titleName:t,isWebtoon:n}=e,o=ae(()=>t.value?Ju(t.value):location.hostname),i=X(cd(`tkr:${o.value}`)),r=w=>{i.value=w;const Y=`tkr:${o.value}`;!w||!Object.keys(w).length?localStorage.removeItem(Y):localStorage.setItem(Y,JSON.stringify(w))},s=w=>{if(!i.value){r(w);return}const Y={...i.value};Object.entries(w).forEach(([ie,z])=>{z===void 0?delete Y[ie]:Y[ie]=z}),r(Y)},l=X(((P=i.value)==null?void 0:P.style)??e.defaultStyle??dt.longStrip),a=X(((b=i.value)==null?void 0:b.direction)??e.defaultDirection??ut.vertical),c=X((T=i.value)==null?void 0:T.gap),u=X(((j=i.value)==null?void 0:j.speed)??1),d=X(((G=i.value)==null?void 0:G.zoom)??1),p=X((($=i.value)==null?void 0:$.breakFirst)??!1),x=X(((h=i.value)==null?void 0:h.autoNextSeconds)??Rs),C=fi(),E=ae(()=>C.width.value<sd||C.height.value<ld),F=ae({get(){const w=n.value?dt.longStrip:l.value;return w===dt.double&&E.value?dt.single:w},set:w=>{l.value=w,s({style:w}),w!==dt.longStrip&&a.value===ut.vertical&&(k.value=ut.rtl)}}),k=ae({get:()=>n.value?ut.vertical:a.value,set:w=>{a.value=w,s({direction:w})}}),H=ae({get:()=>c.value!==void 0?c.value:e.maybeWebtoon.value||F.value!==dt.longStrip?0:1,set(w){c.value=w,s({gap:w})}}),y=ae({get:()=>u.value,set(w){u.value=w,s({speed:w===1?void 0:w})}}),W=ae({get:()=>d.value,set(w){d.value=w,s({zoom:w===1?void 0:w})}}),_=ae({get:()=>p.value,set(w){p.value=w,s({breakFirst:w?!0:void 0})}}),v=ae({get:()=>x.value,set(w){x.value=w,s({autoNextSeconds:w===Rs?void 0:w})}});return{direction:k,style:F,gap:H,speed:y,zoom:W,isLongStrip:ae(()=>F.value===dt.longStrip),isDouble:ae(()=>F.value===dt.double),isRTL:ae(()=>k.value===ut.rtl),isVertical:ae(()=>k.value===ut.vertical),breakFirst:_,autoNextSeconds:v,isDoubleDisabled:E}}function cd(e){const t=localStorage.getItem(e),n=Qu(t),o={};return n?(n.style!==void 0&&Object.values(dt).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(ut).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=id&&n.gap<=rd&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=Mn&&n.speed<=On&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=Mn&&n.zoom<=On&&(o.zoom=n.zoom),n.breakFirst===!0&&(o.breakFirst=!0),n.autoNextSeconds<=5&&n.autoNextSeconds>=-1&&(o.autoNextSeconds=n.autoNextSeconds),Object.keys(o).length?o:void 0):o}const Ns=Ce({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},autoNextSeconds:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean},disableDouble:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:autoNextSeconds","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=e,o=t,i=X(!1),r=ae(()=>["Long strip",n.webtoon?void 0:"Single page",n.webtoon||n.disableDouble?void 0:"Double page"].filter(Boolean)),s=ae(()=>n.name??location.hostname);mo({onKeyUp:c=>{c.key==="s"&&!c.metaKey&&!c.ctrlKey&&(i.value=!i.value)}});function l(c){o("update:zoom",Math.round(c)/100)}function a(){i.value=!1,o("help")}return(c,u)=>(A(),U(Ie,null,[J(nt,{title:"Reader settings (S)",disabled:c.disabled,onClick:u[0]||(u[0]=()=>i.value=!0)},{default:le(()=>[J(Bs)]),_:1},8,["disabled"]),J(Ds,{modelValue:i.value,"onUpdate:modelValue":u[6]||(u[6]=d=>i.value=d),name:s.value},{actions:le(()=>[J(nt,{transparent:"",onClick:a},{default:le(()=>[J(js)]),_:1})]),default:le(()=>[J(qt,{label:"Style"},{default:le(()=>[(A(),he($n,{key:`style-${c.disableDouble}`,"model-value":c.readerStyle,items:r.value,"onUpdate:modelValue":u[1]||(u[1]=d=>o("update:reader-style",d))},null,8,["model-value","items"]))]),_:1}),J(qt,{label:"Direction"},{default:le(()=>[J($n,{"model-value":c.direction,items:c.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":u[2]||(u[2]=d=>o("update:direction",d))},null,8,["model-value","items"])]),_:1}),J(qt,{label:"Gap"},{default:le(()=>[J($n,{"model-value":c.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":u[3]||(u[3]=d=>o("update:gap",d))},null,8,["model-value"])]),_:1}),J(qt,{label:"Auto Next"},{default:le(()=>[J($n,{"model-value":c.autoNextSeconds<0?0:c.autoNextSeconds,items:["None","1s","2s","3s","4s","5s"],"onUpdate:modelValue":u[4]||(u[4]=d=>o("update:autoNextSeconds",d===0?-1:d))},null,8,["model-value"])]),_:1}),J(qt,{label:"Speed"},{default:le(()=>[J(gi,{"model-value":c.speed,min:q(ed),max:q(td),step:q(nd),suffix:"x","onUpdate:modelValue":u[5]||(u[5]=d=>o("update:speed",d))},{suffix:le(()=>[Et(Ye(c.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),J(qt,{label:"Zoom"},{default:le(()=>[J(gi,{"model-value":Math.ceil(c.zoom*100),min:q(Mn)*100,max:q(On)*100,step:q(od)*100,"onUpdate:modelValue":l},{suffix:le(()=>[Et(Ye(Math.ceil(c.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64))}}),ud=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"})),dd={},fd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},pd=[Z("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[Z("circle",{cx:"14",cy:"14",r:"12"}),Z("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function hd(e,t){return A(),U("svg",fd,pd)}const Fs=me(dd,[["render",hd]]),gd=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),md={class:"block w-4 h-4"},vd={class:"w-12"},Hs=Ce({__name:"ButtonResetZoom",props:{zoom:{}},emits:["click"],setup(e,{emit:t}){const n=t;function o(i){n("click",i)}return(i,r)=>(A(),U("button",{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",onClick:Ne(o,["stop"])},[Z("div",md,[J(Fs)]),Z("div",vd,Ye(Math.ceil(i.zoom*100))+"%",1)]))}}),bd=Object.freeze(Object.defineProperty({__proto__:null,default:Hs},Symbol.toStringTag,{value:"Module"}));async function sn(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(i=>{setTimeout(async()=>{const r=await sn(e-1,t,n);i(r)},t)})}const yd={},_d={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wd=[ac('<circle cx="18" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".67" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="12" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".33" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="6" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin="0" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle>',3)];function xd(e,t){return A(),U("svg",_d,wd)}const Vs=me(yd,[["render",xd]]),Sd=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"})),kd={},Cd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Id=[Z("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function Ed(e,t){return A(),U("svg",Cd,Id)}const Ws=me(kd,[["render",Ed]]),Td=Object.freeze(Object.defineProperty({__proto__:null,default:Ws},Symbol.toStringTag,{value:"Module"})),$d=["aria-hidden"],Md=["onClick"],Od={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"},Pd={class:"whitespace-nowrap"},mi=Ce({__name:"ButtonDropdown",props:tn({label:{},title:{},items:{},disabled:{type:Boolean},canLoadItems:{type:Boolean},loadItems:{type:Function},enableHapticFeedback:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:tn(["select"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,i=kn(e,"modelValue"),r=X(null),s=X(!1),l=X(!1),a=X(!1),c=X(!1),u=X(!1),d={mounted:T=>{var j;(j=T.children[i.value])==null||j.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}};mo({onKeyDown:H});const p=hi(),x=pi();async function C(){if(!n.items.length&&(s.value||await E(),!n.items.length)){s.value=!1;return}s.value=!s.value,p(s.value),s.value?(F(),W(r.value)):setTimeout(_,250)}async function E(){l.value||n.items.length||!n.canLoadItems||!n.loadItems||(l.value=!0,await n.loadItems(),l.value=!1)}function F(){const T=r.value;if(T){const j=T.getBoundingClientRect(),G=j.x+j.width/2;a.value=j.y>window.innerHeight/2,c.value=G<window.innerWidth/3,u.value=G>window.innerWidth/3*2}}function k(T,j){C(),T!=i.value&&(i.value=T,o("select",T,j),n.enableHapticFeedback&&x())}function H(T){s.value&&T.key==="Escape"&&(C(),T.preventDefault())}let y=[];function W(T){const j=window.getComputedStyle(T).zIndex,G=T.style.zIndex;(!j||!(+j>0))&&((!T.parentElement||T.parentElement.childElementCount>1)&&(T.style.zIndex="1",y.push({el:T,zIndex:G})),T.parentElement&&W(T.parentElement))}function _(){y.forEach(({el:T,zIndex:j})=>{T.style.zIndex=j??""}),y=[]}let v=!1;function P(){v||(v=!0,p(!0,{desktopOnly:!0}))}function b(){v&&(v=!1,p(!1,{desktopOnly:!0}))}return(T,j)=>(A(),U("div",{ref_key:"root",ref:r,class:"select-none relative inline-flex"},[s.value?(A(),U("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:C})):we("",!0),T.items.length?(A(),he(nn,{key:1,name:"slide-fade","enter-from-class":"scale-y-90 opacity-0 pointer-events-none","leave-to-class":"scale-y-90 opacity-0 pointer-events-none"},{default:le(()=>[s.value?lt((A(),U("ul",{key:0,ref:"list","aria-hidden":!s.value,class:Te(["scrollbar-sm duration-150 delay-50 absolute w-40 max-h-[70vh] list-none bg-stone-800 bg-opacity-80 backdrop-blur-md rounded-lg overflow-auto",{"origin-bottom bottom-full -translate-y-1.5":a.value,"origin-top top-full translate-y-1.5":!a.value,"left-1/2 -ml-20 text-center":!c.value&&!u.value,"right-0 text-right":u.value}]),onWheelPassive:j[0]||(j[0]=Ne(()=>{},["stop"]))},[(A(!0),U(Ie,null,mn(T.items,(G,$)=>lt((A(),U("li",{key:$,tabindex:"-1",class:Te(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":$===i.value}]),onClick:h=>k($,h)},[Z("div",{class:Te(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":$>0}])},[xe(T.$slots,"item",{item:G},()=>[Et(Ye(G),1)])],2)],10,Md)),[[q(rn),30]])),128))],42,$d)),[[d]]):we("",!0)]),_:3})):we("",!0),lt((A(),U("button",xn({type:"button",tabindex:"-1",class:["w-full h-10 max-h-full rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":T.disabled||l.value}]},T.title?{title:T.title}:{},{onClick:Ne(C,["stop"]),onMouseenter:P,onMouseleave:b}),[Z("div",Od,[Z("span",Pd,Ye(T.label),1),T.items.length||T.canLoadItems?(A(),U("span",{key:0,class:Te(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":a.value}]),"aria-hidden":"true"},[l.value?(A(),he(Vs,{key:0})):(A(),he(Ws,{key:1}))],2)):we("",!0)])],16)),[[q(rn),30]])],512))}}),Ld=Object.freeze(Object.defineProperty({__proto__:null,default:mi},Symbol.toStringTag,{value:"Module"})),Ks=Ce({__name:"ChapterNav",props:{data:{},chapterSpec:{},touchDevice:{type:Boolean}},emits:["getHiddenChapters","chaptersDialogOpen"],setup(e,{emit:t}){const n=e,o=t;async function i(){const a=n.chapterSpec;if(!a)return;const{trigger:c,sel:u,label:d}=a;if(c&&(!u||!d)){await r(c);return}o("getHiddenChapters"),await sn(50,50,()=>n.data.chapters.length?!0:void 0)}async function r(a){const c=document.querySelector(a);c&&(c instanceof HTMLDialogElement?c.showModal():c.click(),o("chaptersDialogOpen"))}function s(a,c){var u,d,p;(p=(d=(u=n.data)==null?void 0:u.chapters)==null?void 0:d[a])==null||p.select(l(c))}function l(a){return!n.touchDevice&&(a.ctrlKey||a.metaKey)}return(a,c)=>{var u;return A(),he(mi,{modelValue:a.data.activeIndex,label:a.data.activeLabel,title:"Select chapter",items:a.data.chapters,"can-load-items":!!((u=a.chapterSpec)!=null&&u.trigger),"load-items":i,"enable-haptic-feedback":"",onSelect:s},{item:le(({item:d})=>[Et(Ye(d.label),1)]),_:1},8,["modelValue","label","items","can-load-items"])}}}),zd=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),Ad={},Dd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},jd=[Z("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 Bd(e,t){return A(),U("svg",Dd,jd)}const qs=me(Ad,[["render",Bd]]),Rd=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),Us=Ce({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=X(typeof n!="string"||+n!==t.direction),i=Fe(()=>o.value=!1,1250);ge(()=>t.direction,()=>{r(),o.value=!0,i()}),Be(()=>{r(),i();let s;const l=Ts();ge(l,a=>{a!=="visible"?s=Date.now():Date.now()-s>7e3&&(o.value=!0,i())})});function r(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,l)=>(A(),he(nn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:le(()=>[o.value?(A(),U("div",{key:0,class:Te(["fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none w-28 h-24 p-4 bg-black bg-opacity-40 rounded-2xl duration-500",{"rotate-90":s.direction===q(ut).vertical,"rotate-180":s.direction===q(ut).rtl}])},[J(qs)],2)):we("",!0)]),_:1}))}}),Nd=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"})),Fd=Z("div",{class:"fixed inset-0 bg-black bg-opacity-90"},null,-1),Ys=Ce({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,i=X(null),r=X([]);Be(async()=>{const c=Ms(i),u=Fe(()=>{s({width:c.width.value,height:c.height.value})},50);u(),ge(c.width,u),ge(c.height,u)});function s(c){var p;const u=(p=i.value)==null?void 0:p.parentElement;if(!u)return;const d=Array.from(u.querySelectorAll("#controls [title]"));d.length&&(r.value=l(d,c))}function l(c,u){const d=[],p=[];let x=0,C=0;const E=50,F=25;c.forEach(_=>{var j;const v=(j=_.getAttribute("title"))==null?void 0:j.trim(),P=_.getBoundingClientRect();if(!v||!P.height||!P.width)return;const b=Math.ceil((P.top-10)/E),T=Math.ceil((P.left-10)/E);p.push({isTour:!1,title:v,rect:P,fromX:T,toX:Math.max(T+1,Math.ceil((P.right+10)/E)),fromY:b,toY:Math.max(b+1,Math.ceil((P.bottom+10)/E))})}),p.forEach(_=>{for(let v=_.fromY;v<_.toY;v++){d[v]??(d[v]=[]);for(let P=_.fromX;P<_.toX;P++)d[v][P]=_;_.toY>x+1&&(x=_.toY-1),_.toX>C+1&&(C=_.toX-1)}});let k=C/2;p.forEach(_=>{_.isAlignRight=_.fromX>k});const H=(_,v)=>{d[v]??(d[v]=[]);const P=v>=_.toY;if(_.isTour)for(let b=_.fromX;b<_.toX;b++)delete d[_.fromY][b],_.fromY=v,_.toY=v+(P?1:-1),d[v][b]=_;else{const b=_.isAlignRight?_.fromX-3:_.fromX,T=b+3;_.helpItem={fromX:b,toX:T,fromY:v,toY:v+1,isTour:!0,isAlignRight:_.isAlignRight};for(let j=b;j<T;j++)d[v][j]=_.helpItem}},y=(_,v)=>{if(v>x||v<0)return!1;const P=v>=_.toY,b=d[v];if(!b)return H(_,v),!0;const T=b[_.fromX];if(T&&!T.isTour)return!1;if(T&&T.isTour)return y(T,P?v+1:v-1)?(H(_,v),!0):!1;if(!T){const j=_.isAlignRight?-1:1;return b[_.fromX+j]||b[_.fromX+j*2]?y(_,P?v+1:v-1):(H(_,v),!0)}return!1};p.forEach(_=>{if(!y(_,_.toY)){if(_.isAlignRight){const v=d[_.fromY]??[];if(!v.slice(_.fromX-3,_.fromX).filter(Boolean).length){const b=_.fromX-3,T=_.fromX;_.helpItem={isTour:!0,isAlignRight:!0,fromX:b,toX:T,fromY:_.fromY,toY:_.toY};for(let j=_.fromX-3;j<_.fromX;j++)v[j]=_.helpItem;return}}y(_,_.fromY-1)}});const W=[];return p.forEach(_=>{const{title:v,helpItem:P,rect:b,isAlignRight:T,fromX:j,fromY:G,toY:$}=_;if(!v||!P||!b)return;const h=P.fromY>=$,w=P.toY<=G;W.push({title:a(v),style:{top:h?`${b.bottom+(P.fromY-$)*E+F}px`:w?void 0:`${b.top+8}px`,bottom:w?`${u.height-b.top+(P.toY-G)*E+F}px`:void 0,left:T?void 0:`${b.left}px`,right:T?h?`${u.width-b.right}px`:`${u.width-b.right+b.width+F}px`:void 0},arrowStyle:{width:w||h?"2px":`${Math.abs(P.toX-j)*E+F-5}px`,height:w||h?`${(h?P.fromY-$:G-P.toY)*E+F}px`:"2px",top:h?`${b.bottom}px`:w?void 0:`${b.top+20}px`,bottom:w?`${u.height-b.top}px`:void 0,left:T?void 0:`${b.left+b.width/2}px`,right:T?h?`${u.width-b.right+b.width/2}px`:`${u.width-b.right+b.width}px`:void 0}})}),W}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(A(),U(Ie,null,[Fd,Z("div",{ref_key:"root",ref:i,class:"fixed inset-0 z-20 overscroll-contain select-none",onClick:u[0]||(u[0]=Ne(d=>o("hide"),["stop"]))},[(A(!0),U(Ie,null,mn(r.value,d=>(A(),U(Ie,{key:d.title},[Z("div",{class:"absolute",style:Le(d.style)},Ye(d.title),5),Z("div",{class:"absolute bg-stone-300 rounded-lg",style:Le(d.arrowStyle)},null,4)],64))),128))],512)],64))}}),Hd=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),Xs=Ce({__name:"PageNav",props:tn({disabled:{type:Boolean},pages:{},totalImgs:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=kn(e,"modelValue"),o=ae(()=>t.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),i=ae(()=>{const a=n.value,c=t.pages.findIndex(u=>u.some(({index:d})=>d===a));return c===-1?t.pages.length-1:c}),r=ae(()=>t.pages.length?`${o.value[i.value]}/${t.totalImgs}`:"--");function s(a){const c=t.pages[a][0].index;l(c)}function l(a){n.value=a}return(a,c)=>(A(),he(mi,{"model-value":i.value,label:r.value,title:"Current page",items:o.value,disabled:a.disabled,"onUpdate:modelValue":s},null,8,["model-value","label","items","disabled"]))}}),Vd=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),Wd={},Kd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},qd=[Z("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),Z("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 Ud(e,t){return A(),U("svg",Kd,qd)}const vi=me(Wd,[["render",Ud]]),Yd=Object.freeze(Object.defineProperty({__proto__:null,default:vi},Symbol.toStringTag,{value:"Module"})),Xd={},Zd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Gd=[Z("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 Qd(e,t){return A(),U("svg",Zd,Gd)}const bi=me(Xd,[["render",Qd]]),Jd=Object.freeze(Object.defineProperty({__proto__:null,default:bi},Symbol.toStringTag,{value:"Module"})),Zs=me(Ce({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=X(0);return ge(()=>t.playing,()=>{n.value=Date.now()}),(o,i)=>n.value?(A(),U("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(A(),he(bi,{key:0})):(A(),he(vi,{key:1}))])):we("",!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)}}
|
|
23
|
+
`]]]),ef=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),Gs=Ce({__name:"GesturesContainer",props:{zoom:{},zooming:{type:Boolean},pageIndex:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},emits:["update:zoom","update:zooming","dragEnd","click"],setup(e,{emit:t}){const n=e,o=t,i=X(null),r=X(Math.min(On,Math.max(Mn,n.zoom))),s=X(!1),l=X(!1),a={isZoomIn:!1,isZoomOut:!1,initial:void 0};ge(()=>n.zoom,h=>$(h)),Be(()=>{n.touchDevice?Lt(i,"touchstart",F):(Lt(i,"mousedown",p),Lt(window,"wheel",v))}),mo({onKeyDown:h=>{var w;if(!n.busy&&((w=i.value)==null||w.focus(),!(h.key==="Meta"||h.key==="Control")&&(h.ctrlKey||h.metaKey)))switch(h.key){case"0":$(1);break;case"-":$(r.value-.2),h.preventDefault();break;case"=":case"+":$(r.value+.2),h.preventDefault();break}},onKeyUp:h=>{n.zooming&&!(h.ctrlKey||h.metaKey)&&T()}});function c(h){l.value!==h&&(l.value=h,h?n.playController.pause():(o("dragEnd"),n.playController.resume()))}let u={x:0,y:0},d={x:0,y:0};function p(h){h.button===0&&(u={x:h.clientX,y:h.clientY},d={x:i.value.scrollLeft,y:i.value.scrollTop},window.addEventListener("mousemove",x),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",x),setTimeout(()=>c(!1))},{once:!0}),h.preventDefault(),h.stopPropagation())}function x(h){c(!0);const w=h.clientX-u.x,Y=h.clientY-u.y,ie=i.value;ie.scrollLeft=d.x-w,ie.scrollTop=d.y-Y}let C={distance:0,zoom:r.value,x:0,y:0},E=!1;function F(h){n.busy||(E=h.touches.length===2,E&&(o("update:zooming",!0),c(!0),h.stopPropagation(),h.preventDefault(),C={distance:P(h),zoom:r.value,x:(h.touches[0].clientX+h.touches[1].clientX)/2,y:(h.touches[0].clientY+h.touches[1].clientY)/2}),(E||n.longStrip&&n.playController.isPlaying.value)&&window.addEventListener("touchend",k,{once:!0}))}function k(){if(E=!1,n.zooming){c(!1),T();return}if(!l.value)return;const h=Fe(()=>{c(!1),i.value.removeEventListener("scroll",Y)},200),w=setTimeout(h,200);i.value.addEventListener("scroll",Y);function Y(){clearTimeout(w),h()}}function H(h){if(!(!E&&!(n.longStrip&&n.playController.isPlaying.value))&&(c(!0),n.zooming)){h.stopPropagation(),h.preventDefault();const Y=P(h)/C.distance;G(Math.ceil(Y*C.zoom*100)/100,C)}}const y=Fe(()=>s.value=!1,100);let W=!1;const _=Fe(()=>{W=!1},30);function v(h){if(n.busy)return;let w=n.zooming;if(W||(W=!0,w=h.ctrlKey||h.metaKey,w&&o("update:zooming",!0)),_(),w){h.stopPropagation(),h.preventDefault();const Y=Math.ceil((r.value+h.deltaY*-.01)*100)/100;G(Y,{x:h.clientX,y:h.clientY});return}n.horizontal&&(s.value||(s.value=!0),y(),h.deltaY&&(i.value&&(i.value.scrollLeft+=h.deltaY*(n.rtl?-1:1)),h.stopPropagation()))}function P(h){return Math.hypot(h.touches[0].clientX-h.touches[1].clientX,h.touches[0].clientY-h.touches[1].clientY)}function b(h){!l.value&&!n.zooming&&o("click",h)}function T(){o("update:zooming",!1),a.initial=void 0,a.isZoomIn=!1,a.isZoomOut=!1}function j(){if(a.initial)return;const h=i.value;if(!h)return;const w=h.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;w&&(a.initial={el:w,rect:w.getBoundingClientRect()})}function G(h,w){if(a.isZoomIn=a.isZoomIn||!a.isZoomOut&&h>1,a.isZoomIn&&h<1){$(1,w);return}if(a.isZoomOut=a.isZoomOut||!a.isZoomIn&&h<1,a.isZoomOut&&h>1){$(1,w);return}$(h,w)}async function $(h,w){const Y=i.value,ie=Math.min(On,Math.max(Mn,h));if(!Y||r.value===ie)return;j();const{initial:z}=a;if(!z)return;const D=(w==null?void 0:w.x)??Y.clientWidth/2,pe=(w==null?void 0:w.y)??Y.clientHeight/2;r.value=ie,o("update:zoom",ie),await gt();const{el:de,rect:ye}=z,_e=de.offsetWidth/ye.width,Oe=de.offsetHeight/ye.height;Y.scrollLeft=de.offsetLeft-ye.left*_e+D*(_e-1),Y.scrollTop=de.offsetTop-ye.top*Oe+pe*(Oe-1)}return(h,w)=>(A(),U("div",{ref_key:"root",ref:i,tabindex:"0",class:Te(["w-full h-full overflow-auto scrollbar-none overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!h.longStrip&&(l.value||s.value||h.zooming),"cursor-grabbing":!h.touchDevice&&l.value,"overflow-hidden":h.zooming}]),style:Le({"font-size":`${r.value}px`}),onClick:Ne(b,["stop"]),onTouchmoveCapture:Ne(H,["stop"])},[xe(h.$slots,"default")],38))}}),tf=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),nf=`.loading-indicator{display:inline-block;height:80px;position:relative;width:80px}.loading-indicator:after,.loading-indicator:before{animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite;border:4px solid #b85c38;border-radius:9999px;content:"";display:block;opacity:1;position:absolute}.loading-indicator:after{animation-delay:-.5s}@keyframes lds-ripple{0%{height:0;left:36px;opacity:0;top:36px;width:0}4.9%{height:0;left:36px;opacity:0;top:36px;width:0}5%{height:0;left:36px;opacity:1;top:36px;width:0}to{height:72px;left:0;opacity:0;top:0;width:72px}}
|
|
24
|
+
`,of={},rf={class:"loading-indicator"};function sf(e,t){return A(),U("div",rf)}const yi=me(of,[["render",sf],["styles",[nf]]]),lf=Object.freeze(Object.defineProperty({__proto__:null,default:yi},Symbol.toStringTag,{value:"Module"}));function _i(e,t){return(e==null?void 0:e.querySelector(`[data-index="${t}"],[data-index2="${t}"]`))??void 0}const af=["data-index"],cf={key:0,class:"img img--loading"},uf=["src"],df=["data-index"],Qs=me(Ce({__name:"ReaderBody",props:{page:{},pageIndex:{},direction:{},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isDouble:{type:Boolean},isRTL:{type:Boolean},pages:{},totalImgs:{},gap:{},zoom:{},zooming:{type:Boolean},spaceTop:{},touchDevice:{type:Boolean},playController:{},busy:{type:Boolean},idle:{type:Boolean},hasNext:{type:Boolean}},emits:["ready","update:zoom","update:zooming","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=t,i=Es(),r=X(null),s=fi(),l=X(n.pageIndex),a=ae(()=>{const{width:k,height:H}=s,y=n.isLongStrip?n.isVertical?k.value:H.value:Math.min(k.value,H.value);return Math.min(4,Math.max(1,Math.ceil(y/400-1)))*n.gap}),c=X(n.isLongStrip?{min:n.pageIndex-1,max:n.pageIndex}:x()),u=ae(()=>{const{min:k,max:H}=c.value,y={};for(let W=k;W<=H;W++)y[W]=!0;return y}),d=ae(()=>{const{width:{value:k},height:{value:H}}=s;return n.pages.map(y=>{var $;const W=y.some(h=>{var w;return(w=h.img)==null?void 0:w.isLoading}),_=y.map(h=>h.index),v={isLoading:W,indexes:_,visible:!1};if(W||_[_.length-1]<l.value)return v;const P=y.map(({img:h})=>h).filter(Boolean);if(!P.length||(v.srcs=P.map(({src:h})=>h),P.every(h=>h.hasError)))return v;const T=($=P.find(h=>!h.hasError))==null?void 0:$.size,j=P.reduce((h,w)=>{var Y;return h+(((Y=w.size)==null?void 0:Y.width)??T.width)},0),G=P.reduce((h,w)=>{var Y;return h+(((Y=w.size)==null?void 0:Y.height)??T.height)},0)/P.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&k/j<H/G?(v.width=Math.min(k,j),v.height=G*(v.width/j)):(v.height=Math.min(H,G),v.width=j*(v.height/G)),v})}),p=ae(()=>{const k=n.isVertical?"width":"height";return d.value.map(H=>H[k]).filter(Boolean).sort((H,y)=>y-H)[0]});Be(()=>{const k=_i(i.value,n.pageIndex);k==null||k.scrollIntoView({behavior:"instant",block:"start"});let H,y=!1;Ea(()=>{H!==n.page&&(H=n.page,W(),y||(y=!0,gt(()=>o("ready"))))});async function W(){if(!n.isLongStrip){c.value=x();return}const _=Math.floor(n.page),v=_i(i.value,_);if(!v)return;const P=+C(v).getAttribute("data-index"),b=+E(v).getAttribute("data-index");(P!==c.value.min||b!==c.value.max)&&(c.value={min:P,max:b}),P<l.value&&(l.value=P)}});function x(){const{pageIndex:k}=n,H=n.isDouble?2:1;return{min:k-H,max:k+H}}function C(k){const H=k.previousElementSibling;if(!H)return k;const y=H.getBoundingClientRect();return(n.isVertical?y.y+y.height>-(s.height.value*1.5):n.isRTL?y.x<s.width.value*2.5:y.x+y.width>-(s.width.value*1.5))?C(H):k}function E(k){const H=k.nextElementSibling;if(!H)return k;const y=H.getBoundingClientRect();return(n.isVertical?y.y<s.height.value*3:n.isRTL?y.x+y.width>-(s.width.value*1.5):y.x<s.width.value*2.5)?E(H):k}function F(k){if(!n.isLongStrip){const H=n.isVertical?s.height.value:s.width.value,W=(n.isVertical?k.clientY:n.isRTL?H-k.clientX:k.clientX)/H;if(W<=.2&&n.pageIndex>0){o("prev");return}else if(W>=.8){o("next");return}}o("click")}return(k,H)=>(A(),he(Gs,{zoom:k.zoom,zooming:k.zooming,"page-index":k.pageIndex,class:Te(["rbod",{"rbod--touch":k.touchDevice,"rbod--long-strip":k.isLongStrip,"rbod--paging":!k.isLongStrip,"rbod--vertical":k.isVertical,"rbod--rtl":k.isRTL,"rbod--idle":k.idle,"rbod--first":!k.isLongStrip&&k.pageIndex===0,"rbod--last":!k.isLongStrip&&k.pageIndex===k.totalImgs&&!k.hasNext,"rbod--1page":d.value.length===1}]),"play-controller":k.playController,horizontal:!k.isVertical,rtl:k.isRTL,"touch-device":k.touchDevice,busy:k.busy,"long-strip":k.isLongStrip,style:Le({"--gap":`${a.value}em`,"--space-top":(k.spaceTop||0)+"px","--screen-width-em":q(s).width.value+"em","--screen-height-em":q(s).height.value+"em",...k.isLongStrip?{"--max-size-em":p.value+"em"}:{}}),"onUpdate:zoom":H[0]||(H[0]=y=>o("update:zoom",y)),"onUpdate:zooming":H[1]||(H[1]=y=>o("update:zooming",y)),onDragEnd:H[2]||(H[2]=()=>o("dragEnd")),onClick:F},{default:le(()=>[(A(!0),U(Ie,null,mn(d.value,y=>{var W;return A(),U("div",xn({key:k.direction+"_"+y.indexes[0],"data-index":y.indexes[0]},y.indexes.length>1?{"data-index2":y.indexes[1]}:{}),[!((W=y.srcs)!=null&&W.length)||y.isLoading?(A(),U("div",cf,[u.value[y.indexes[0]]?(A(),he(yi,{key:0})):we("",!0)])):y.srcs.length==1?(A(),he(vr(u.value[y.indexes[0]]?"img":"div"),xn({key:1,class:"img"},u.value[y.indexes[0]]?{src:y.srcs[0]}:{},{style:{width:y.width!==void 0?y.width+"em":"",height:y.height!==void 0?y.height+"em":""}}),null,16,["style"])):(A(),U("div",{key:2,class:Te(["img img--double",{"flex-row-reverse":k.isRTL}]),style:Le({width:y.width!==void 0?y.width+"em":"",height:y.height!==void 0?y.height+"em":""})},[y.indexes.some(_=>u.value[_])?(A(!0),U(Ie,{key:0},mn(y.srcs,_=>(A(),U("div",{key:_},[Z("img",{src:_},null,8,uf)]))),128)):we("",!0)],6))],16,af)}),128)),Z("div",{ref_key:"autoNextEl",ref:r,class:"last","data-index":k.totalImgs},[xe(k.$slots,"end")],8,df)]),_:3},8,["zoom","zooming","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style"]))}}),[["styles",[`.rbod{--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){.rbod{transform:none}}.rbod--rtl{flex-direction:row-reverse}.rbod.rbod--vertical>div{padding:calc(var(--gap)/2) 0}.rbod:not(.rbod--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.rbod:not(.rbod--vertical)>div{padding:0 calc(var(--gap)/2)}.rbod--long-strip.rbod--vertical.rbod--1page>div:first-child{min-height:100vh}.rbod--long-strip.rbod--vertical>div:first-child{margin-top:var(--space-top);padding-top:0}.rbod--long-strip.rbod--vertical>div:last-child{padding-bottom:0}.rbod--long-strip.rbod--vertical>div{width:var(--max-size-em)}.rbod--long-strip.rbod--vertical .img--loading{height:75vh;max-width:100%;width:100vw}.rbod--long-strip.rbod--vertical .last{height:100vh}.rbod--long-strip:not(.rbod--vertical).rbod--1page>div:first-child{min-width:100vw}.rbod--long-strip:not(.rbod--vertical)>div{align-items:center;display:flex;height:var(--max-size-em)}.rbod--long-strip:not(.rbod--vertical) .img--loading{height:100vh;max-height:100%;max-width:100vw;width:680px}.rbod--long-strip:not(.rbod--vertical) .last{width:100vw}.rbod--long-strip>div>img{flex-shrink:0;margin:auto}.rbod--paging:not(.rbod--touch):after,.rbod--paging:not(.rbod--touch):before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.rbod--paging.rbod--first:before,.rbod--paging.rbod--last:after{cursor:default}.rbod--paging.rbod--idle:after,.rbod--paging.rbod--idle:before{cursor:none}.rbod--paging>div{align-items:center;display:grid;justify-content:center;min-height:100vh;min-width:100vw;scroll-snap-align:center;scroll-snap-stop:always}.rbod--paging.rbod--vertical{--tw-scroll-snap-strictness:mandatory;scroll-snap-type:y var(--tw-scroll-snap-strictness)}.rbod--paging.rbod--vertical:after,.rbod--paging.rbod--vertical:before{height:20vw;left:0;right:0}.rbod--paging.rbod--vertical:before{top:0}.rbod--paging.rbod--vertical:after{bottom:0}.rbod--paging.rbod--vertical>div{width:var(--screen-width-em)}.rbod--paging:not(.rbod--vertical){--tw-scroll-snap-strictness:mandatory;scroll-snap-type:x var(--tw-scroll-snap-strictness)}.rbod--paging:not(.rbod--vertical).rbod--rtl:before{right:0}.rbod--paging:not(.rbod--vertical).rbod--rtl:after,.rbod--paging:not(.rbod--vertical):not(.rbod--rtl):before{left:0}.rbod--paging:not(.rbod--vertical):not(.rbod--rtl):after{right:0}.rbod--paging:not(.rbod--vertical):after,.rbod--paging:not(.rbod--vertical):before{bottom:0;top:0;width:20vw}.rbod--paging:not(.rbod--vertical)>div{height:var(--screen-height-em)}.rbod--paging .img--loading{height:100vh;width:100vw}.rbod--paging .img--double{align-items:center;display:flex;gap:var(--gap);justify-content:center}.rbod--paging .img--double div{display:flex;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.rbod--paging .img--double div img{flex-shrink:0;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.rbod>div{flex-shrink:0}.rbod .img,.rbod>div{margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.rbod .img{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));-o-object-fit:contain;object-fit:contain}.rbod .img--loading{align-items:center;background-color:transparent;display:flex;justify-content:center}
|
|
25
|
+
`]]]),ff=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),pf={class:"max-h-none max-w-none h-full w-full m-0 p-0 border-none outline-none"},hf={key:0,class:"fixed inset-0 h-[101%] flex justify-center items-center z-10 bg-black"},gf={class:"flex justify-between items-end"},mf={class:"inline-block children-pointer-events-auto w-1/3"},vf={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},bf={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},yf={class:"inline-block z-20 relative"},_f={key:1,class:"fixed left-0 right-0 bottom-0 p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3 flex justify-center pointer-events-none children-pointer-events-auto"},Js=me(Ce({__name:"ReaderLayout",props:{loading:{type:Boolean},immediate:{type:Boolean},idle:{type:Boolean},fullScreen:{type:Boolean},zooming:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){const t={mounted:n=>n.showModal(),beforeUnmount:n=>n.close()};return(n,o)=>lt((A(),U("dialog",pf,[Z("div",{id:"reader-layout",class:Te({"cursor-none":n.idle,"cursor-default":!n.idle,"bg-black":n.immediate||!n.loading,"opacity-0":!n.immediate&&n.loading,"duration-200 transition-colors":!n.immediate})},[n.loading&&n.immediate?(A(),U("div",hf,[J(yi)])):we("",!0),xe(n.$slots,"default"),Z("div",{id:"controls",class:Te(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear left-0 top-0 w-screen h-screen flex flex-col justify-between p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3",{"opacity-100 z-20":!n.fullScreen,"opacity-0 -z-10":n.fullScreen}])},[Z("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:Le({paddingTop:`${n.spaceTop||0}px`})},[xe(n.$slots,"back"),xe(n.$slots,"exit"),xe(n.$slots,"chapter-nav")],4),Z("div",gf,[Z("div",mf,[xe(n.$slots,"page-nav")]),Z("div",vf,[n.fullScreen&&n.zooming?we("",!0):xe(n.$slots,"reset-zoom",{key:0})]),Z("div",bf,[xe(n.$slots,"entry"),Z("div",yf,[xe(n.$slots,"settings")]),xe(n.$slots,"full-screen"),xe(n.$slots,"play"),xe(n.$slots,"break-first")])]),Z("div",{class:Te(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":n.rtl}])},[xe(n.$slots,"progress")],2)],2),n.fullScreen&&n.zooming?(A(),U("div",_f,[xe(n.$slots,"reset-zoom")])):we("",!0)],2)])),[[t]])}}),[["styles",[`#reader-layout{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity));direction:ltr;font-family:Helvetica,sans-serif;font-size:16px;height:100%;line-height:24px;overflow:hidden;overscroll-behavior:contain;pointer-events:auto;text-align:left;width:100%}
|
|
26
|
+
`]]]),wf=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),el=me(Ce({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=t,o=X(null),i=X(0),r=X([]),s=ae(()=>r.value[i.value]),l=xs(a,500);Be(()=>{const d=Ms(o),p=Fe(()=>c({width:d.width.value,height:d.height.value}),50);p(),ge(d.width,p),ge(d.height,p)});function a(){i.value>=r.value.length-1?n("hide"):i.value++}function c(d){const p=u();r.value=p.map(({rect:x,text:C})=>{const E=x.top<d.height-x.bottom,F=x.left<d.width-x.right;return{text:C,style:{left:`${x.left}px`,top:`${x.top}px`,width:`${x.width}px`,height:`${x.height}px`},textStyle:{left:F?`${x.left-12}px`:void 0,right:F?void 0:`${d.width-x.left}px`,top:E?`${x.bottom+12}px`:`${x.top+20}px`,textAlign:E?void 0:"right",transform:E?void 0:"translateY(-50%)"}}}),i.value>=r.value.length&&(i.value=r.value.length-1)}function u(){var x;const d=(x=o.value)==null?void 0:x.parentElement;if(!d)return[];const p=[];return d.querySelectorAll("[data-tour]").forEach(C=>{var k;const E=(k=C.getAttribute("data-tour"))==null?void 0:k.trim();if(!(E!=null&&E.length))return;const F=C.getBoundingClientRect();p.push({rect:F,text:E})}),p}return(d,p)=>{var x,C;return A(),U(Ie,null,[Z("div",{class:Te(["fixed inset-0 bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),Z("div",{ref_key:"root",ref:o,class:"tour",onClick:p[0]||(p[0]=Ne((...E)=>q(l)&&q(l)(...E),["stop"]))},[s.value?(A(),U("div",{key:i.value,class:"tour__target",style:Le(s.value.style)},null,4)):we("",!0),(A(),U("div",{key:i.value,class:"tour__text",style:Le((x=s.value)==null?void 0:x.textStyle)},Ye(((C=s.value)==null?void 0:C.text)??""),5))],512)],64)}}}),[["styles",[`.tour{height:100vh;left:0;overflow:hidden;position:fixed;top:0;width:100vw;z-index:20}.tour__target{--tw-border-opacity:1;animation:tour-target-anim .5s forwards;border-color:rgb(120 113 108/var(--tw-border-opacity));border-radius:9999px;border-width:2px;box-shadow:0 0 0 99999px #000000e6}.tour__target,.tour__text{position:absolute}.tour__text{animation:tour-text-anim 1s forwards,tour-text-bounce .75s ease-in-out infinite alternate;max-width:320px;padding-left:12px;padding-right:12px;transition-duration:1s}@keyframes tour-target-anim{0%{--tw-border-opacity:0;opacity:0;transform:scale(3)}to{--tw-border-opacity:1;opacity:.9;transform:scale(1)}}@keyframes tour-text-anim{0%{opacity:0}to{opacity:1}}@keyframes tour-text-bounce{0%{margin-top:0}to{margin-top:10px}}
|
|
27
|
+
`]]]),xf=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),Sf={},kf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Cf=[Z("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 If(e,t){return A(),U("svg",kf,Cf)}const tl=me(Sf,[["render",If]]),Ef=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),Tf={},$f={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Mf=[Z("path",{fill:"currentColor",d:"M6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h6v2H7v12.95l5-2.15l5 2.15V11h2v8.475q0 .55-.45.838t-.95.087L12 18l-5.6 2.4ZM7 5h6h-6Zm11 4q-.425 0-.713-.287T17 8V7h-1q-.425 0-.713-.288T15 6q0-.425.288-.713T16 5h1V4q0-.425.288-.713T18 3q.425 0 .713.288T19 4v1h1q.425 0 .713.288T21 6q0 .425-.288.713T20 7h-1v1q0 .425-.288.713T18 9Z"},null,-1)];function Of(e,t){return A(),U("svg",$f,Mf)}const nl=me(Tf,[["render",Of]]),Pf=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),Lf={},zf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Af=[Z("path",{fill:"currentColor",d:"M17.825 8.575q-.2 0-.375-.062t-.325-.213L15.7 6.875q-.3-.3-.3-.712t.3-.688q.275-.3.7-.3t.7.275l.725.725l2.825-2.85q.3-.3.7-.3t.725.3q.275.3.275.725t-.275.7l-3.55 3.55q-.15.15-.325.213t-.375.062ZM6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h7q-.5.75-.75 1.438T13 6q0 1.8 1.137 3.175T17 10.9q.575.075 1 .075t1-.075v8.575q0 .55-.45.838t-.95.087L12 18l-5.6 2.4Z"},null,-1)];function Df(e,t){return A(),U("svg",zf,Af)}const ol=me(Lf,[["render",Df]]),jf=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),Bf={},Rf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Nf=[Z("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Ff(e,t){return A(),U("svg",Rf,Nf)}const il=me(Bf,[["render",Ff]]),Hf=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"})),Vf={},Wf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Kf=[Z("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function qf(e,t){return A(),U("svg",Wf,Kf)}const rl=me(Vf,[["render",qf]]),Uf=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),Yf={},Xf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56"},Zf=[Z("path",{fill:"currentColor",d:"M29.84 49.574h12.398c4.899 0 7.336-2.437 7.336-7.265V13.69c0-4.828-2.437-7.265-7.336-7.265H29.84Zm-16.055 0h12.398V6.426H13.785c-4.875 0-7.36 2.414-7.36 7.265V42.31c0 4.851 2.485 7.265 7.36 7.265"},null,-1)];function Gf(e,t){return A(),U("svg",Xf,Zf)}const sl=me(Yf,[["render",Gf]]),Qf=Object.freeze(Object.defineProperty({__proto__:null,default:sl},Symbol.toStringTag,{value:"Module"})),Jf={},ep={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},tp=[Z("g",{fill:"none"},[Z("path",{d:"M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"}),Z("path",{fill:"currentColor",d:"M8 3v18H5a2 2 0 0 1-1.995-1.85L3 19V5a2 2 0 0 1 1.85-1.995L5 3zm11 0a2 2 0 0 1 1.995 1.85L21 5v14a2 2 0 0 1-1.85 1.995L19 21h-9V3z"})],-1)];function np(e,t){return A(),U("svg",ep,tp)}const ll=me(Jf,[["render",np]]),op=Object.freeze(Object.defineProperty({__proto__:null,default:ll},Symbol.toStringTag,{value:"Module"})),ip={},rp={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},sp=[Z("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function lp(e,t){return A(),U("svg",rp,sp)}const al=me(ip,[["render",lp]]),ap=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"})),cp={},up={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},dp=[Z("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function fp(e,t){return A(),U("svg",up,dp)}const cl=me(cp,[["render",fp]]),pp=Object.freeze(Object.defineProperty({__proto__:null,default:cl},Symbol.toStringTag,{value:"Module"})),hp={},gp={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},mp=[Z("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 vp(e,t){return A(),U("svg",gp,mp)}const ul=me(hp,[["render",vp]]),bp=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"}));function ln(e=0){return new Promise(t=>setTimeout(t,e))}function dl(e){return new Promise(t=>{const n=o=>{if(!o)return t(void 0);const i=URL.createObjectURL(o);t(i)};e.toBlob(n,"image/jpeg",1)})}async function yp(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),i=o.getContext("2d"),r=e.naturalWidth,s=e.naturalHeight;return o.width=r,o.height=s,i==null||i.drawImage(e,0,0,r,s),await dl(o)}function vo(e){const t=e.getAttributeNames(),n=t.indexOf("src");n!==-1&&(t.splice(n,1),t.push("src"));for(const o of t){if(o==="srcset"||o!=="data-url"&&o!=="data-original"&&!o.includes("src"))continue;const i=e.getAttribute(o);if(i)return o==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:i.replace(/(\n|\t)/g," ").trim()}}async function _p(e,t){return(t==null?void 0:t.src)===e&&t.naturalWidth&&t.naturalHeight?{width:t.naturalWidth,height:t.naturalHeight}:await new Promise(n=>{const o=new Image,i=setInterval(()=>{const{naturalWidth:r,naturalHeight:s}=o;s&&r&&(n({width:r,height:s}),clearInterval(i))},20);o.onerror=()=>{n(void 0),clearInterval(i)},o.src=e})}class wp{constructor({isIOS:t,onDownloaded:n,onDownloadError:o}){ve(this,"reactiveResults",cn({}));ve(this,"isIOS");ve(this,"tkLoadId",Date.now());ve(this,"isMounted",!0);ve(this,"onDisposeCallbacks",[]);ve(this,"onDownloaded");ve(this,"onDownloadError");this.isIOS=t,this.onDownloaded=n,this.onDownloadError=o}dispose(){this.isMounted=!1,this.onDisposeCallbacks.forEach(t=>t()),this.onDisposeCallbacks=[],this.onDownloaded=()=>{}}async download(t){var l;if(!this.isMounted)return;const n=t.el;let o=t.computedSrc;if(!n&&!o)return;const i=n instanceof HTMLImageElement,r=n instanceof HTMLCanvasElement;if(n){if(n._tkLoadId===this.tkLoadId)return;if(n._tkLoadId=this.tkLoadId,i){const a=()=>this.onImgElLoaded(t,n,!0),c=()=>this.onImgElLoaded(t,n,!1);n.addEventListener("load",a),n.addEventListener("error",c),this.onDisposeCallbacks.push(()=>{n.removeEventListener("load",a),n.removeEventListener("error",c)})}}if(i&&!o){if(o=vo(n),!o)return;n._tkSrc=o}else if(r&&!o){if(o=await dl(n),!o)return;n._tkSrc=o}if(!o||!this.isMounted)return;const s=i&&o.startsWith("blob:");s&&!n.complete||((l=this.reactiveResults)[o]??(l[o]={src:o,isLoading:!0,hasError:!1}),s&&this.isIOS&&await ln(300),await this.downloadSrc(t))}async onImgElLoaded(t,n,o){var r;if(!this.isMounted)return;const i=vo(n);if(i&&!(!i.startsWith("blob:")&&t.computedSrc===i)){if(n._tkSrc=i,!o){this.reactiveResults[i]={src:i,isLoading:!1,hasError:!0},this.onDownloadError();return}(r=this.reactiveResults)[i]??(r[i]={src:i,isLoading:!0,hasError:!1}),this.downloadSrc(t)}}async downloadSrc(t){const n=t.computedSrc;if(!n)return;const o=t.el instanceof HTMLImageElement?t.el:void 0,i=o?await yp(o,n):n;if(!i||!this.isMounted)return;const r=await _p(i,o);this.isMounted&&(this.reactiveResults[n]={src:i,size:r,isLoading:!1,hasError:!r,invalid:!!r&&(r.width<200||r.height<200)},r?this.onDownloaded(t,r):this.onDownloadError())}}const xp=3;class Sp{constructor({getItems:t,getActiveIndex:n,isCompleted:o,callback:i}){ve(this,"isQueueStarted",!1);ve(this,"debouncedEnqueue");ve(this,"concurrentCount",0);ve(this,"getItems");ve(this,"getActiveIndex");ve(this,"isCompleted");ve(this,"callback");ve(this,"activeIndex",0);ve(this,"completedItems");ve(this,"isMounted",!0);this.getItems=t,this.getActiveIndex=n,this.isCompleted=o,this.callback=i,this.debouncedEnqueue=Fe(this.enqueue.bind(this),50)}dispose(){this.isMounted=!1}run(){this.isQueueStarted?this.debouncedEnqueue():(this.isQueueStarted=!0,this.enqueue())}get canEnqueue(){return this.concurrentCount<xp&&this.isMounted}async enqueue(){if(!this.canEnqueue)return;const t=this.getItems();if(t===this.completedItems)return;this.completedItems=void 0;const n=this.resetActiveIndex(),o=Math.max(0,Math.min(t.length-1,n-1)),i=[];for(let r=o;r<t.length;r++){if(!this.canEnqueue)return;i.push(await this.invokeItemCallback(r,r==t.length-1))}for(let r=o-1;r>=0;r--){if(!this.canEnqueue)return;i.push(await this.invokeItemCallback(r,r==0))}this.getItems()===t&&i.filter(Boolean).length==t.length&&(this.completedItems=t)}async invokeItemCallback(t,n){const o=this.getItems()[t];return o?this.isCompleted(o)?!0:(this.concurrentCount++,this.callback(o).then(()=>{this.concurrentCount=Math.max(0,this.concurrentCount-1),n||this.debouncedEnqueue()}),await ln(),!1):!1}resetActiveIndex(){const t=this.getActiveIndex();return t<this.activeIndex&&(this.concurrentCount=Math.max(0,this.concurrentCount-Math.abs(t-this.activeIndex))),this.activeIndex=t,t}}class Ut{constructor(t,n,o){this.src=t,this.el=n,this.parentEl=o}get computedSrc(){var t;return this.src??((t=this.el)==null?void 0:t._tkSrc)}}class fl{constructor(){ve(this,"elsPool",new Map)}check(t){if(!t||t===document.body)return!0;const n=this.elsPool.get(t);if(n!==void 0)return n;const o=getComputedStyle(t);if(!(o.display!=="none"&&+(o.opacity??"1")>.1))return this.elsPool.set(t,!1),!1;const r=this.check(t.parentElement);return this.elsPool.set(t,r),r}}function wi(e){if(e instanceof HTMLOptionElement){const t=e.parentElement instanceof HTMLOptGroupElement?e.parentElement.parentElement:e.parentElement;if(!t||!(t instanceof HTMLSelectElement))return;const n=e.getAttribute("value")||"";if(t.value===n)return;t.value=n,t.dispatchEvent(new Event("change"));return}return e instanceof HTMLAnchorElement&&e.addEventListener("click",t=>t.preventDefault(),{once:!0}),e.click()}async function kp(e){const{lstrip:t,lstripBtn:n}=e||{};if(!t||!n||!!document.querySelector(t))return!1;const i=await sn(50,30,()=>document.querySelector(n));return i?(wi(i),await ln(),!0):!1}class Cp{constructor({spec:t,onChanged:n}){ve(this,"spec");ve(this,"onChanged");ve(this,"rawImages",[]);ve(this,"isMounted",!0);ve(this,"loadRawImagesTs");ve(this,"disconnectObservers");this.spec=t,this.onChanged=n,this.init()}dispose(){var t;this.isMounted=!1,(t=this.disconnectObservers)==null||t.call(this),this.disconnectObservers=void 0,this.onChanged=()=>{}}init(){var s;let t;const n=Fe(()=>{t&&this.loadRawImages(t)},100),o=new MutationObserver(n),i=(s=this.spec)!=null&&s.imgDivs?void 0:(()=>{let l=window.innerWidth;return new ResizeObserver(Fe(()=>{const a=window.innerWidth;if(a!==l){l=a;return}n()},50))})();this.disconnectObservers=async()=>{o.disconnect(),i==null||i.disconnect()};let r=!1;this.loadContentEl(l=>{t!==l&&(t=l,o.disconnect(),i==null||i.disconnect(),o.observe(t,{childList:!0,subtree:!0}),i==null||i.observe(t),r?n():(r=!0,this.loadRawImages(t)))})}setRawImages(t){let n=!1;const o=t.map((i,r)=>{const s=this.rawImages[r];return s&&s.el===i.el&&s.parentEl===i.parentEl&&s.src===i.src?s:(n=!0,i)});(n||!o.length)&&(this.rawImages=o,this.onChanged(t))}async loadContentEl(t){var l;const n=await kp(this.spec),o=(l=this.spec)==null?void 0:l.content;if(!o){t(document.body);return}let i=await sn(n?100:1,10,()=>{for(const a of o.split(",")){const c=document.querySelector(a);if(c)return c}});if(!i)return;t(i);let r=0;const s=async()=>{if(this.isMounted&&!(i!=null&&i.isConnected)){if(r=0,i=await sn(50,20,()=>{const a=document.querySelector(o);return a!=null&&a.isConnected&&a!==i?a:void 0}),!i)return;t(i)}!this.isMounted||++r>=10||setTimeout(s,200)};setTimeout(s,200)}async loadRawImages(t){var r;if(!this.isMounted||!t.isConnected)return;const n=Date.now();this.loadRawImagesTs=n;const o=(r=this.spec)==null?void 0:r.imgDivs,i=o?await Ip(t,o):pl(t);this.loadRawImagesTs!==n||!t.isConnected||!this.isMounted||this.setRawImages(i)}}async function Ip(e,t){const n=Array.from(e.querySelectorAll(t));if(!n.length)return pl(e);const o=new fl;return n.map(r=>{const s=Array.from(r.querySelectorAll("img,canvas"));for(const l of s)if(o.check(l)){if(l instanceof HTMLCanvasElement){if(hl(l))return new Ut(void 0,l,r)}else if(l instanceof HTMLImageElement&&gl(l)){const a=vo(l);return new Ut(a,l,r)}}return new Ut(void 0,void 0,r)})}function pl(e){const t=[],n={},o=new fl;return Array.from(e.querySelectorAll("img,canvas")).forEach(r=>{if(o.check(r)){if(r instanceof HTMLCanvasElement)hl(r)&&t.push(new Ut(void 0,r));else if(r instanceof HTMLImageElement&&gl(r)){const s=vo(r);if(s){const l=n[s];if(l!==void 0&&l!==-1){t.splice(l,1);return}n[s]=t.length}t.push(new Ut(s,r))}}}),t}function hl(e){return e.isConnected&&ml(e.width,e.height)}function gl(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||ml(t.width,t.height)}function ml(e,t){return e>=130&&t>=130&&(e>=200||t>=200)}const xi="mp-scroll-container";class Si{constructor(){ve(this,"unmountedCallbacks",new Map)}dispose(){for(const t of this.unmountedCallbacks.values())t()}scrollTo({rawImages:t,page:n,skipIfVisible:o,isScrollDown:i,fallbackScrollEl:r}){const s=Math.floor(n),l=t[Math.min(t.length-1,s)];if(!l)return;const a=l.el??l.parentEl??document.querySelector(`img[src^="${l.computedSrc}"]`);if(!a)return;const c=a.getBoundingClientRect();if(o&&c.top<=0&&c.top+c.height>0)return;const u=Si.getScrollable(a,r);if(!u)return;const{el:d,top:p}=u;r!==document.documentElement&&!d.classList.contains(xi)&&(d.classList.add(xi),this.unmountedCallbacks.has(d)||this.unmountedCallbacks.set(d,()=>{d.classList.remove(xi)}));const x=n>=t.length?c.height:i?Math.max(0,c.height-window.innerHeight+100):n%1*c.height,C={top:p+x,behavior:"instant"};d.scrollTo(C),d===document.body&&document.documentElement.scrollTo(C)}static getScrollable(t,n){const o=(i,r)=>{if(!i)return;const{offsetTop:s,offsetParent:l}=i;if(l&&s&&r.set(l,Math.max(r.get(l)??0,s)),!(i===n||i.scrollHeight-i.clientHeight>=10&&window.getComputedStyle(i).overflow!=="visible"))return o(i.parentElement,r);let c=0;return r.forEach((u,d)=>{c+=d===l?u-s:u}),{el:i,top:c}};return o(t,new Map)}}function vl(e){var t,n;for(let o=0;o<e.length;o++){const i=((t=e[o])==null?void 0:t.el)??((n=e[o])==null?void 0:n.parentEl),r=i==null?void 0:i.getBoundingClientRect();if(!r||r.bottom<=0)continue;const s=r.top;return o+(s>=0?0:-s/r.height)}return 0}function Ep(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src)).map(o=>new Ut(void 0,o));return vl(n)}function Tp(e){var k,H,y,W;const t=X((k=e.raw.value)==null?void 0:k.isWebtoon),n=X((H=e.raw.value)==null?void 0:H.isWebtoon);let o=!1;const i=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android"),r=((W=(y=e.raw.value)==null?void 0:y.imgs)==null?void 0:W.filter(Boolean))??[];let s=e.isAutoShow!==!1?e.page.value:r.length?Ep(r):void 0,l=r.map(_=>new Ut(_)),a,c,u=setTimeout(e.onTimeout,2e4);const d=()=>{u&&(clearTimeout(u),u=void 0)},p=new wp({isIOS:i,onDownloaded(_,v){let P=l.indexOf(_);if(P===-1){const b=_.computedSrc;P=l.findIndex(T=>T.computedSrc===b)}if(P!==-1){if(v&&!t.value&&P>Math.min(1,l.length-3)&&P<Math.max(l.length-2,3)){d();const b=v.height/v.width,T=b>2||b<.5,j=b>1.6||b<.6;t.value!==T&&(t.value=T),n.value!==j&&(n.value=j)}E()}},onDownloadError(){c||t.value!==void 0||(c=setTimeout(()=>{c=void 0,t.value===void 0&&e.onError("Failed to load images")},3e3))}}),x=new Sp({getItems:()=>l,getActiveIndex:()=>Math.floor(e.page.value),isCompleted:_=>{const v=_.computedSrc;return!!(v&&p.reactiveResults[v])},callback:_=>p.download(_)}),C=new Si;if(r.length)x.run();else{let _=!1;a=new Cp({spec:e.spec,async onChanged(v){var P;if(l=v,!e.raw.value&&!v.length){e.onError("no_img");return}(P=e.spec)!=null&&P.imgDivs&&!_&&e.isAutoShow!==!1&&e.page.value&&(_=!0,C.scrollTo({rawImages:v,page:e.page.value,skipIfVisible:!0,fallbackScrollEl:i?document.body:document.documentElement}),await ln(1)),s===void 0&&e.isAutoShow===!1&&(s=vl(v)),x.run()}})}Wo(()=>{p.dispose(),x.dispose(),a==null||a.dispose(),c&&clearTimeout(c),C.dispose(),o&&C.scrollTo({rawImages:l,page:e.page.value,fallbackScrollEl:document.documentElement})});function E(){var b,T,j;if(o||t.value===void 0||s===void 0)return;const _=Math.max(0,Math.min(s,l.length)),v=Math.min(Math.floor(_),l.length-1);if(v>=1){if(!((b=l[v])==null?void 0:b.computedSrc)){e.isAutoShow&&C.scrollTo({rawImages:l,page:v,fallbackScrollEl:i?document.body:document.documentElement});return}for(let $=v;$<l.length;$++){const h=(T=l[$])==null?void 0:T.computedSrc;if(!h)return;const w=p.reactiveResults[h];if(!w)return;if(!w.invalid){if(!w.size&&!w.hasError)return;break}}for(let $=v-1;$>=0;$--){const h=(j=l[$])==null?void 0:j.computedSrc;if(!h)break;const w=p.reactiveResults[h];if(!w)return;if(!w.invalid){if(!w.size&&!w.hasError)return;break}}}if(o)return;o=!0,e.onReady(_);let P=!0;ge(()=>Math.floor(e.page.value),(G,$)=>{G===$&&!P||(C.scrollTo({rawImages:l,page:G,isScrollDown:$===void 0||G>$||l.length===1,skipIfVisible:P&&l.length>1,fallbackScrollEl:i?document.body:document.documentElement}),P=!1,$??($=-1),x.run())},{immediate:!0})}return{asyncImgs:ae(()=>{Object.values(p.reactiveResults);const _=[];return l.forEach(v=>{const P=v.computedSrc,b=P?p.reactiveResults[P]:void 0;(P&&!(b!=null&&b.invalid)||v.parentEl)&&_.push(b)}),_}),isWebtoon:ae(()=>t.value??!1),maybeWebtoon:ae(()=>n.value??!1)}}function $p(e,t,n){return ae(()=>t.value?bl(e.value,n.value):e.value.map((o,i)=>[{img:o,index:i}]))}function bl(e,t,n=0){if(e.length===0)return[];const o=e.slice(0,2),i=o.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height),r=i||t?[o[0]]:o;return[r.map((s,l)=>({img:s,index:n+l})),...bl(e.slice(r.length),t&&i,n+r.length)]}function Mp(e,t){const n=sessionStorage.getItem("tk:page:path");n!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),n&&sessionStorage.removeItem("tk:page"));const o=X(t&&e>0?Math.max(0,e):+(sessionStorage.getItem("tk:page")??"0")||e);return ae({get:()=>o.value,set:i=>{o.value=i,sessionStorage.setItem("tk:page",i+"")}})}function Op(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const ki=40;function Pp({page:e,direction:t,style:n,isLongStrip:o,isVertical:i,isRTL:r,spaceTop:s,scrollEl:l,isWebtoon:a,interferePlayer:c,onChangedPage:u,onInitialized:d,onFinished:p}){let x=!1,C=!1,E=!1,F;const k=Fe(T,300),H=xs(()=>{T(),k()},300),y=Fe(v,50);async function W(){P(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function _(){var z;C=!0,d(),j(),(z=l.value)==null||z.addEventListener("scroll",H),setTimeout(()=>{const{width:D,height:pe}=fi();ge(D,()=>{i.value&&y()}),ge(pe,()=>{i.value||y()}),ge(n,v),ge(t,v)},300)}async function v(){if(!C||x)return;x=!0,await gt();const z=e.value;if($()===z){x=!1;return}P(z)}function P(z,{smooth:D,ensureLastImgVisibility:pe=!1}={smooth:!1}){const de=l.value;if(!de)return;x=!0;const ye=async()=>{await gt(),x=!1,C||_()},_e=Math.floor(z),Oe=_i(de,_e);if(!Oe){ye();return}c(async()=>{await b(de,!o.value&&D,async()=>{await ie(de,Oe,{smooth:D,page:z,ensureLastImgVisibility:pe})}),await ye()})}async function b(z,D,pe){D&&z.style.setProperty("scroll-snap-type","none"),await pe(),D&&z.style.removeProperty("scroll-snap-type")}function T(){if(x)return;const z=$();z!==void 0&&z!==e.value&&u(z),j()}function j(){E||!E&&G()&&(E=!0,p())}function G(){const z=l.value;if(!z)return!1;const D=o.value?a.value?3:!i.value&&z.clientWidth>z.clientHeight?2.25:2.5:2;return i.value?z.scrollHeight-z.scrollTop<z.clientHeight*D:z.scrollWidth-(r.value?-z.scrollLeft:z.scrollLeft)<z.clientWidth*D}function $(){const z=h();return z?(+z.getAttribute("data-index")||0)+(o.value?w(z):0):void 0}function h(){var D;if(F??(F=l.value.getRootNode()),!F)return;const z=(D=F.elementsFromPoint)==null?void 0:D.call(F,i.value||!o.value?window.innerWidth/2:r.value?window.innerWidth-ki:ki,i.value&&o.value?s.value||ki:window.innerHeight/2);if(z)for(let pe=0;pe<z.length;pe++){const de=z[pe];if(de.hasAttribute("data-index"))return de;if(de===l.value)break}}function w(z){const D=z.getBoundingClientRect();return i.value?Math.abs(D.top-s.value)/D.height:r.value?Math.max(0,D.right-l.value.clientWidth)/D.width:Math.abs(D.left)/D.width}let Y=!1;async function ie(z,D,pe){if(Y)return;const de=D.getBoundingClientRect();if(!o.value){if(i.value){if(de.top<=0&&de.bottom>=z.clientHeight)return}else if(de.left<=0&&de.right>=z.clientWidth)return}Y=!0;const ye=i.value?z.scrollTop:z.scrollLeft,_e=pe.page,Oe=o.value?_e%1:0,Xt=await sn(30,10,async()=>{await ln();let Ve;if(!(D.offsetHeight<10))return o.value?i.value?Ve=D.offsetTop+Oe*D.offsetHeight-s.value:r.value?Ve=D.offsetLeft-z.clientWidth+D.offsetWidth-Oe*D.offsetWidth:Ve=D.offsetLeft+Oe*D.offsetWidth:i.value?Ve=D.offsetTop+(de.top>0?0:de.height-z.clientHeight):Ve=D.offsetLeft+(de.left>0?0:de.width-z.clientWidth),_e>.5&&Math.abs(Ve)<100?void 0:Ve})??0,zt=pe.ensureLastImgVisibility?i.value?Math.min(Xt,z.scrollHeight-z.clientHeight*2):r.value?Math.max(Xt,-(z.scrollWidth-z.clientWidth*2)):Math.min(Xt,z.scrollWidth-z.clientWidth*2):Xt;if(!pe.smooth){i.value?z.scrollTop=zt:z.scrollLeft=zt,Y=!1;return}const He=zt-ye,vt=30;let bt=0;return new Promise(Ve=>{(function We(){const it=Lp(bt,ye,He,vt);i.value?z.scrollTop=it:z.scrollLeft=it,bt++,bt<=vt?requestAnimationFrame(We):(Ve(),Y=!1)})()})}return{init:W,goToPage:P}}function Lp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function zp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:i,isLongStrip:r,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=X(typeof l=="string"?l==="true":e),c=ae({get:()=>a.value,set:b=>{a.value=b,sessionStorage.setItem("tk:playing",b?"true":"false")}}),u=X(!1);let d,p;const x=Fe(v,100),C=Fe(()=>{u.value=!0},t?2e3:1e3),E=()=>setTimeout(()=>{u.value=!1,C()},30);E(),t||Lt(window,"mousemove",E);const F=Ts();Be(()=>{ge(F,b=>{c.value&&(b==="visible"?v():p==null||p())}),ge(s,()=>k()),ge(r,b=>{b||y()})}),Nt(y);async function k(b){c.value&&(p==null||p()),b&&(await gt(),await b()),c.value&&x()}function H(){c.value?y():W()}function y(){c.value&&(c.value=!1,p==null||p(),E())}function W(){!c.value&&r.value&&(c.value=!0,v(),E())}function _(){p==null||p()}function v(){const b=n.value;if(!c.value||!b)return;const T=o.value?b.scrollHeight-b.clientHeight:b.scrollWidth-b.clientWidth,j=P();if(T<=j){y();return}p=()=>{d=Date.now(),p=void 0};const G=Date.now();d=G;const $=.05*s.value,h=o.value?"scrollTop":"scrollLeft";let w=Date.now(),Y=0;const ie=()=>{if(d!==G)return;const z=Date.now(),D=z-w;w=z;const pe=$*D+Y;pe>=1?(Y=pe%1,b[h]+=(pe-Y)*(i.value?-1:1)):Y=pe,setTimeout(ie,1)};ie()}function P(){const b=n.value;return o.value?b.scrollTop:i.value?-b.scrollLeft:b.scrollLeft}return{isPlaying:c,isIdle:u,toggle:H,play:W,pause:_,resume:v,stop:y,interfere:k,awake:E}}function Ap({raw:e,spec:t,siteMeta:n,onSelect:o}){var j,G,$;const{vol:i,inferVol:r,chap:s,title:l,slug:a,basePath:c}=e,u=t==null?void 0:t.chapter;let d=-1;async function p(h,w){if(o){o(h);return}if(h.slug){x(h.slug,w);return}if(h.elIndex===void 0||!(u!=null&&u.sel))return;let Y=null;document.querySelector(u.sel)||(u!=null&&u.trigger&&(Y=document.querySelector(u.trigger)),Y&&(Y.click(),await new Promise(z=>setTimeout(()=>z(),50))));const ie=u&&u.sel&&!u.url?document.querySelectorAll(u.sel):void 0;ie!=null&&ie[h.elIndex]&&(wi(ie[h.elIndex]),Y&&document.querySelector(u.sel)&&Y.click())}function x(h,w){const Y=Dp(c,h,(n==null?void 0:n.trailing)??!0);w?window.open(Y,"_blank","noopener"):location.href=Y}function C(h){const w=y[h];return w?Y=>p(w,Y):void 0}function E(h,w,Y){if(h){const ie=document.querySelector(h);ie&&wi(ie);return}w&&x(w,Y)}const F=i??r,k=u==null?void 0:u.url,H=((j=l.chapters)==null?void 0:j.filter(h=>h.slug||!k&&h.elIndex!==void 0))??[],y=H.length>1?H:[],W=(G=e.prev)==null?void 0:G.slug,_=($=e.next)==null?void 0:$.slug,{prevBtn:v,nextBtn:P}=t??{};let b=W||v&&!y.length?h=>E(v,W,h):void 0,T=_||P&&!y.length?h=>E(P,_,h):void 0;if(y.length){if(k&&(d=y.findIndex(h=>h.slug===e.slug)),d===-1&&(d=y.findIndex(h=>(h.vol??h.inferVol)===F&&h.chap===s)),k&&d===-1&&(d=y.findIndex(h=>h.slug&&a.startsWith(`${h.slug}-`)&&a.length-h.slug.length>3)),d!==-1)b??(b=C(d+1)),T??(T=C(d-1));else if(!W&&!_){const h=y.findIndex(w=>{const Y=w.vol??w.inferVol;return F===void 0||Y===void 0||F===Y?w.chap<s:Y<F});h!==-1?(b=C(h),T=C(h-1)):T=C(y.length-1)}}return{activeIndex:d,activeLabel:yl({vol:i,chap:s}),prev:b,next:T,chapters:y.map(h=>({label:yl(h),select:w=>p(h,w)}))}}function yl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}function Dp(e,t,n){const o=!t||t.includes("//")||t.startsWith("/")?t:"/"+[...e.split("/"),...t.split("/")].filter(Boolean).join("/"),[i,r]=(o.includes("//")?o:location.origin+o).split("?");return[i.endsWith("/")===n?i:n?i+"/":i.substring(0,-1),r].filter(Boolean).join("?")}const jp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},_l=me(Ce({inheritAttrs:!1,__name:"App",props:{immediate:{type:Boolean},raw:{},spec:{},siteMeta:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},readerStyle:{},direction:{},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean},offlineMode:{type:Boolean}},emits:["error","ready","pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","finished","getHiddenChapters","hapticFeedback","pressedBack","selectChapter","timeout"],setup(e,{emit:t}){const n=e,o=t;let i=!1,r;const s=X(!1),l=X(!1),a=_u({touchDevice:n.touchDevice}),c=Mp(n.page,n.isAutoShow),u=ae(()=>n.immediate||s.value?n.spaceTop??0:0),{asyncImgs:d,isWebtoon:p,maybeWebtoon:x}=Tp({raw:ae(()=>n.raw),spec:n.spec,page:c,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,async onReady(m){zt(m),s.value=!0},onError:()=>{o("error"),B()},onTimeout:()=>o("timeout")}),{direction:C,style:E,isRTL:F,isDouble:k,isVertical:H,isLongStrip:y,gap:W,speed:_,zoom:v,breakFirst:P,autoNextSeconds:b,isDoubleDisabled:T}=ad({titleName:ae(()=>{var m;return(m=n.raw)==null?void 0:m.title.name}),isWebtoon:p,maybeWebtoon:x,defaultStyle:n.readerStyle,defaultDirection:n.direction}),j=X(!1),G=$p(d,k,P),$=ae(()=>c.value>=d.value.length),h=ae(()=>n.raw?Ap({raw:n.raw,spec:n.spec,siteMeta:n.siteMeta,onSelect:n.offlineMode?m=>o("selectChapter",m):void 0}):void 0),w=X(null),Y=Es(),ie=X(!1),z=X(!1),D=zp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:ae(()=>{var m;return(m=w.value)==null?void 0:m.$el}),speed:_,isRTL:F,isVertical:H,isLongStrip:y}),pe=ae(()=>!n.touchDevice&&D.isIdle.value&&!a.value&&!j.value),de=ae({get(){return v.value},set(m){D.interfere(()=>{v.value=m})}}),ye=Pp({page:c,style:E,direction:C,isLongStrip:y,isVertical:H,isRTL:F,spaceTop:u,isWebtoon:p,scrollEl:ae(()=>{var m;return(m=w.value)==null?void 0:m.$el}),interferePlayer:m=>D.interfere(m),onChangedPage:zt,onInitialized(){o("ready"),l.value=!0,r=He()},onFinished:()=>o("finished")}),_e=ae(()=>Math.floor(c.value)),Oe=()=>D.interfere(()=>ln(100));$u().addListener({onKeyDown:m=>{if(n.tourEnabled)return;const L=y.value&&H.value,ne=y.value&&!H.value,re=!y.value&&H.value,Ae=!y.value&&!H.value;switch(m.key){case" ":m.preventDefault(),y.value?(oe(!1),D.toggle()):R();break;case"ArrowUp":case"PageUp":L?Oe():re&&_e.value!==0&&(m.preventDefault(),I());break;case"ArrowDown":case"PageDown":L?Oe():re&&!$.value&&(m.preventDefault(),N());break;case"ArrowLeft":ne?Oe():Ae?(m.preventDefault(),S()):H.value&&it();break;case"ArrowRight":ne?Oe():Ae?(m.preventDefault(),M()):H.value&&We();break;case"Escape":m.preventDefault();break}},onKeyUp:m=>{switch(m.key){case"b":P.value=!P.value;break;case"f":K();break;case"t":O();break;case"h":oe();break}}}),pu(()=>o("hapticFeedback")),Lt("fullscreenchange",()=>{ie.value=!!document.fullscreenElement}),ge(D.isPlaying,m=>{m||R(!1),o("playingChanged",m)}),ge(D.isIdle,m=>{D.isPlaying.value&&R(m)}),ge(a,m=>{!m&&D.isIdle.value?D.awake():m&&n.fullScreen&&R()});function zt(m){if(c.value===m)return;const L=d.value.length;if(m<0||m>=L+1)return;const ne=Math.floor(m*100)/100;if(ne===c.value)return;const re=c.value;c.value=ne,o("pageChanged",ne),m>=L?(R(!1),D.stop()):m<.01&&re>m?(R(!1),D.awake()):i||(y.value?r!==void 0&&He()-r>300&&R(!0):Math.abs(re-m)===1&&R(!0))}function He(){var L;const m=(L=w.value)==null?void 0:L.$el;return m?H.value?m.scrollTop:F.value?-m.scrollLeft:m.scrollLeft:0}function vt(){!n.touchDevice&&!y.value&&ye.goToPage(_e.value,{smooth:!0})}function bt(){if(D.isPlaying.value){!n.fullScreen||!n.touchDevice?D.stop():D.awake();return}R()}function Ve(m){n.offlineMode&&(m.preventDefault(),o("pressedBack"))}function We(m=!1){var L,ne;(ne=(L=h.value)==null?void 0:L.next)==null||ne.call(L,m)}function it(m=!1){var L,ne;(ne=(L=h.value)==null?void 0:L.prev)==null||ne.call(L,m)}function Pn(m){F.value?We(g(m)):it(g(m))}function f(m){F.value?it(g(m)):We(g(m))}function g(m){return!n.touchDevice&&(m.ctrlKey||m.metaKey)}function S(){F.value?N():I()}function M(){F.value?I():N()}function I(){var ne;const m=G.value,L=$.value?m[m.length-1][0].index:(ne=m[V()-1])==null?void 0:ne[0].index;L!==void 0?ye.goToPage(L):it()}function N(){var m,L;if($.value)We();else{const ne=((L=(m=G.value[V()+1])==null?void 0:m[0])==null?void 0:L.index)??d.value.length;ye.goToPage(ne)}}function V(){const m=_e.value,L=G.value.findIndex(ne=>ne.some(({index:re})=>re===m));return L===-1?G.value.length-1:L}function B(){if(n.offlineMode){o("pressedBack");return}Op(),o("dispose")}async function R(m){if(a.value&&!n.fullScreen)return;const L=typeof m=="boolean"?m:!n.fullScreen;L!==n.fullScreen&&(i=!0,o("fullScreenChanged",L),L&&setTimeout(()=>{n.fullScreen&&a.value&&o("fullScreenChanged",!1)},100))}function O(){n.entryId?Q():te()}function K(){var m,L;document.fullscreenElement?document.exitFullscreen():(L=(m=Y.value)==null?void 0:m.querySelector("#reader-layout"))==null||L.requestFullscreen()}function te(){D.stop(),o("addEntry")}function Q(){D.stop(),o("openEntry",n.entryId)}function oe(m){z.value!==m&&(z.value=!z.value,z.value&&D.isPlaying.value&&D.stop())}return(m,L)=>m.immediate||s.value?(A(),he(Js,{key:0,loading:!l.value,immediate:!!m.immediate,"full-screen":!!m.fullScreen,zooming:j.value,idle:pe.value,"space-top":u.value,rtl:q(F),onClick:L[15]||(L[15]=Ne(()=>{},["stop"]))},Ir({settings:le(()=>{var ne;return[J(Ns,{"reader-style":q(E),"onUpdate:readerStyle":L[6]||(L[6]=re=>Ee(E)?E.value=re:null),direction:q(C),"onUpdate:direction":L[7]||(L[7]=re=>Ee(C)?C.value=re:null),gap:q(W),"onUpdate:gap":L[8]||(L[8]=re=>Ee(W)?W.value=re:null),speed:q(_),"onUpdate:speed":L[9]||(L[9]=re=>Ee(_)?_.value=re:null),zoom:de.value,"onUpdate:zoom":L[10]||(L[10]=re=>de.value=re),"auto-next-seconds":q(b),"onUpdate:autoNextSeconds":L[11]||(L[11]=re=>Ee(b)?b.value=re:null),name:(ne=m.raw)==null?void 0:ne.title.name,webtoon:q(p),disabled:!s.value,"disable-double":q(T),onHelp:oe},null,8,["reader-style","direction","gap","speed","zoom","auto-next-seconds","name","webtoon","disabled","disable-double"])]}),"reset-zoom":le(()=>[J(nn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:le(()=>[j.value||q(v)!==1?(A(),he(Hs,{key:0,zoom:de.value,onClick:L[14]||(L[14]=Ne(()=>de.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])):we("",!0)]),_:1})]),progress:le(()=>[Z("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Le({width:`${q(c)/(q(d).length-1)*100}%`})},null,4)]),default:le(()=>{var ne;return[s.value?(A(),he(Qs,{key:0,ref_key:"body",ref:w,zoom:de.value,"onUpdate:zoom":L[0]||(L[0]=re=>de.value=re),zooming:j.value,"onUpdate:zooming":L[1]||(L[1]=re=>j.value=re),page:q(c),"page-index":_e.value,pages:q(G),"total-imgs":q(d).length,direction:q(C),gap:q(W),"is-long-strip":q(y),isRTL:q(F),"is-double":q(k),"is-vertical":q(H),"space-top":u.value,busy:q(a),idle:pe.value,"play-controller":q(D),"touch-device":m.touchDevice,"has-next":!!((ne=h.value)!=null&&ne.next),onReady:q(ye).init,onPrev:I,onNext:N,onClick:bt,onDragEnd:vt,onWheelPassive:L[2]||(L[2]=()=>q(D).interfere())},Ir({_:2},[s.value&&q(d).length?{name:"end",fn:le(()=>{var re;return[J(zs,{"has-next":!!((re=h.value)!=null&&re.next),"offline-mode":!!m.offlineMode,seconds:q(b),onNext:We,onHide:B},null,8,["has-next","offline-mode","seconds"])]}),key:"0"}:void 0]),1032,["zoom","zooming","page","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-double","is-vertical","space-top","busy","idle","play-controller","touch-device","has-next","onReady"])):we("",!0),l.value&&!$.value&&!m.tourEnabled?(A(),he(Us,{key:1,direction:q(C)},null,8,["direction"])):we("",!0),l.value&&!$.value?(A(),he(Zs,{key:2,playing:!!q(D).isPlaying.value},null,8,["playing"])):we("",!0),z.value?(A(),he(Ys,{key:3,"touch-device":m.touchDevice,onHide:oe},null,8,["touch-device"])):we("",!0),m.tourEnabled?(A(),he(el,{key:4,onHide:L[3]||(L[3]=()=>o("tourEnabledChanged",!1))})):we("",!0)]}),_:2},[m.raw||m.offlineMode?{name:"back",fn:le(()=>[J(nt,{href:m.offlineMode||!m.raw?"#":m.raw.title.url,title:"Back to manga","enable-haptic-feedback":"",onClick:Ve},{default:le(()=>[J(tl)]),_:1},8,["href"])]),key:"0"}:void 0,m.touchDevice?void 0:{name:"exit",fn:le(()=>[J(nt,{title:"Hide reader","data-tour":"You have entered reader mode, press here to return to the original page",onClick:B},{default:le(()=>[J(ul)]),_:1})]),key:"1"},h.value?{name:"chapter-nav",fn:le(()=>{var ne;return[J(Ks,{"touch-device":m.touchDevice,"chapter-spec":(ne=m.spec)==null?void 0:ne.chapter,data:h.value,onGetHiddenChapters:L[4]||(L[4]=()=>o("getHiddenChapters")),onChaptersDialogOpen:L[5]||(L[5]=()=>R(!0))},null,8,["touch-device","chapter-spec","data"]),h.value.next||h.value.prev?(A(),U("div",jp,[J(nt,{title:`${q(F)?"Next":"Prev"} chapter (←)`,disabled:q(F)?!h.value.next:!h.value.prev,class:"!rounded-r-none","enable-haptic-feedback":"",onClick:Pn},{default:le(()=>[J(il)]),_:1},8,["title","disabled"]),J(nt,{title:`${q(F)?"Prev":"Next"} chapter (→)`,disabled:q(F)?!h.value.prev:!h.value.next,class:"!rounded-l-none","enable-haptic-feedback":"",onClick:f},{default:le(()=>[J(rl)]),_:1},8,["title","disabled"])])):we("",!0)]}),key:"2"}:void 0,q(G).length?{name:"page-nav",fn:le(()=>[J(Xs,{"model-value":_e.value,disabled:!l.value,pages:q(G),"total-imgs":q(d).length,"onUpdate:modelValue":q(ye).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,!m.offlineMode&&m.raw?{name:"entry",fn:le(()=>[J(nt,{title:m.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:O},{default:le(()=>[m.entryId?(A(),he(ol,{key:0})):(A(),he(nl,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,m.touchDevice?void 0:{name:"full-screen",fn:le(()=>[J(nt,{title:`${ie.value?"Exit":"Enter"} fullscreen (F)`,onClick:K},{default:le(()=>[ie.value?(A(),he(cl,{key:0})):(A(),he(al,{key:1}))]),_:1},8,["title"])]),key:"5"},q(y)?{name:"play",fn:le(()=>[J(nt,{"data-tour":"Press here to play like a video",title:`${q(D).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!l.value,onClick:L[12]||(L[12]=()=>q(D).toggle())},{default:le(()=>[q(D).isPlaying.value?(A(),he(vi,{key:0})):(A(),he(bi,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0,q(k)?{name:"break-first",fn:le(()=>[J(nt,{title:"Break 1st page (B)","data-tour":"Press here to separate the first page from double-page mode",disabled:!l.value,onClick:L[13]||(L[13]=()=>P.value=!q(P))},{default:le(()=>[q(P)?(A(),he(ll,{key:0})):(A(),he(sl,{key:1}))]),_:1},8,["disabled"])]),key:"7"}:void 0]),1032,["loading","immediate","full-screen","zooming","idle","space-top","rtl"])):we("",!0)}}),[["styles",[`/*! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Helvetica,sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:300px){.container{max-width:300px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:4px;width:4px}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-full{top:100%}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.m-0{margin:0}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.-ml-20{margin-left:-80px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.ml-1{margin-left:4px}.ml-auto{margin-left:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-0\\.5{height:2px}.h-1{height:4px}.h-1\\.5{height:6px}.h-10{height:40px}.h-12{height:48px}.h-16{height:64px}.h-20{height:80px}.h-24{height:96px}.h-4{height:16px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-9{height:36px}.h-\\[101\\%\\]{height:101%}.h-\\[30rem\\]{height:480px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-full{max-height:100%}.max-h-none{max-height:none}.w-1{width:4px}.w-1\\/3{width:33.333333%}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-28{width:112px}.w-4{width:16px}.w-40{width:160px}.w-\\[4\\.8rem\\]{width:76.8px}.w-full{width:100%}.w-screen{width:100vw}.max-w-full{max-width:100%}.max-w-none{max-width:none}.max-w-xs{max-width:320px}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-right{transform-origin:right}.origin-top{transform-origin:top}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1{--tw-translate-y:-4px}.-translate-y-1\\.5{--tw-translate-y:-6px}.-translate-y-1\\.5,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--tw-translate-y:4px}.translate-y-1\\.5{--tw-translate-y:6px}.translate-y-1\\.5,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y:100%}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-grabbing{cursor:grabbing}.cursor-none{cursor:none}.cursor-pointer{cursor:pointer}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}.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)}.snap-center{scroll-snap-align:center}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.gap-6{gap:24px}.gap-\\[1px\\]{gap:1px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:4px}.rounded-2xl{border-radius:16px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-sm{border-radius:2px}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.rounded-t-sm{border-top-left-radius:2px;border-top-right-radius:2px}.rounded-t-xl{border-top-left-radius:12px;border-top-right-radius:12px}.border{border-width:1px}.border-2{border-width:2px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-opacity-40{--tw-bg-opacity:.4}.bg-opacity-50{--tw-bg-opacity:.5}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-90{--tw-bg-opacity:.9}.bg-none{background-image:none}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0{padding:0}.p-1{padding:4px}.p-2{padding:8px}.p-4{padding:16px}.p-6{padding:24px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-6{padding-left:24px;padding-right:24px}.py-1{padding-bottom:4px;padding-top:4px}.py-2{padding-bottom:8px;padding-top:8px}.pb-12{padding-bottom:48px}.pb-6{padding-bottom:24px}.pl-1{padding-left:4px}.pt-3{padding-top:12px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-90{opacity:.9}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:300px){.\\32xs\\:gap-3{gap:12px}}@media (min-width:640px){.sm\\:w-\\[32rem\\]{width:512px}.sm\\:p-3{padding:12px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-5{padding-bottom:20px}.md\\:text-lg{font-size:18px;line-height:28px}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}.lg\\:pb-3{padding-bottom:12px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
|
|
28
|
+
`]]]),Bp=Object.freeze(Object.defineProperty({__proto__:null,default:_l},Symbol.toStringTag,{value:"Module"})),Rp=Object.freeze(Object.defineProperty({__proto__:null,default:Ce({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=t,o=X(null),i=X(!1);return Be(async()=>{await gt();let r=!1;di(o,s=>{const l=s.some(a=>a.isIntersecting);l!==i.value&&(i.value=l),l&&!r&&n("visible")})}),(r,s)=>(A(),U("div",{ref_key:"root",ref:o},[xe(r.$slots,"default",{visible:i.value})],512))}})},Symbol.toStringTag,{value:"Module"})),Np={},Fp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Hp=[Z("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 Vp(e,t){return A(),U("svg",Fp,Hp)}const Wp=Object.freeze(Object.defineProperty({__proto__:null,default:me(Np,[["render",Vp]])},Symbol.toStringTag,{value:"Module"})),Kp=`gear-second{height:0!important;opacity:0!important;pointer-events:none!important;width:0!important;z-index:-10!important}html.gear-second,html.gear-second *{scroll-behavior:auto!important;scrollbar-width:none!important}html.gear-second ::-webkit-scrollbar,html.gear-second::-webkit-scrollbar{display:none!important}html.gear-second body{touch-action:pan-x pan-y!important}html.gear-second body .m-content #progress-bar{display:none!important}html.gear-second body>:not(dialog[open]){visibility:hidden!important}.mp-scroll-container{max-height:100vh!important;overflow:hidden!important}html:has(body.mp-scroll-container){overflow:auto!important}
|
|
29
|
+
`,Yt="gear-second",Ci={immediate:void 0,raw:void 0,spec:void 0,page:0,spaceTop:void 0,fullScreen:void 0,touchDevice:void 0,entryId:void 0,autoPlay:void 0,readerStyle:void 0,direction:void 0,isAutoShow:void 0,tourEnabled:void 0,offlineMode:void 0,onError:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onFinished:void 0,onHapticFeedback:void 0,onPressedBack:void 0,onSelectChapter:void 0,onTimeout:void 0},Ze={promise:void 0,data:cn({...Ci})};async function qp(e){return Ze.promise?(Ze.data.raw=e.raw,await Ze.promise):(Ze.promise=new Promise(t=>{let n=!1,o=!1,i,r,s=0;const l=!!e.spaceTop||!!e.isAutoShow&&!!e.page,a=()=>{n||(n=!0,clearInterval(i),i=void 0,r!=null&&r.isConnected&&document.body.removeChild(r),document.documentElement.classList.remove(Yt),Object.assign(Ze.data,Ci),Ze.promise=void 0)},c=Fe(p=>{var x;return!n&&((x=e.onPageChanged)==null?void 0:x.call(e,p))},300);Object.assign(Ze.data,Ci,e,{immediate:l,onReady(){l||(u(),document.documentElement.classList.add(Yt))},onError(){var p,x;a(),o?((p=e.onDispose)==null||p.call(e),(x=e.onError)==null||x.call(e)):d()},onDispose:()=>{var p;a(),(p=e==null?void 0:e.onDispose)==null||p.call(e)},onFullScreenChanged:p=>{var x;Ze.data.fullScreen=p,(x=e.onFullScreenChanged)==null||x.call(e,p)},onPageChanged:p=>{Ze.data.page=p,!(s>=p)&&(s=p,c(p))},onTourEnabledChanged:p=>{Ze.data.tourEnabled=p}}),Up().then(()=>{if(n){d();return}r=document.createElement(Yt),l?(document.documentElement.classList.add(Yt),document.body.appendChild(r),setTimeout(u)):document.body.appendChild(r);let p=0;i=setInterval(()=>{if(++p===30||n){clearInterval(i),i=void 0;return}r.isConnected||(document.documentElement.classList.add(Yt),document.body.appendChild(r))},100)});function u(){o||(o=!0,t({updateArgs(p){Object.assign(Ze.data,p)},dispose:a}))}function d(){o||t(void 0)}}),await Ze.promise)}async function Up(){if(window.customElements.get(Yt))return;const e=document.createElement("style"),t=Kp;e.appendChild(document.createTextNode(t)),document.head.appendChild(e);const n=Wc({styles:[await Yp()],data:()=>({readerData:Ze.data}),render(){return es(_l,this.readerData)}});window.customElements.define(Yt,n)}async function Yp(){const e=Object.assign({"./App.vue":Bp,"./components/AutoNext.vue":yu,"./components/BottomSheet.vue":Lu,"./components/ButtonDropdown.vue":Ld,"./components/ButtonIcon.vue":xu,"./components/ButtonReaderSettings.vue":ud,"./components/ButtonResetZoom.vue":bd,"./components/ChapterNav.vue":zd,"./components/DirectionToast.vue":Nd,"./components/GesturesContainer.vue":tf,"./components/HelpScreen.vue":Hd,"./components/InputPercentage.vue":Du,"./components/InputSelect.vue":Bu,"./components/IntersectionWrapper.vue":Rp,"./components/LoadingIndicator.vue":lf,"./components/PageNav.vue":Vd,"./components/PauseToast.vue":ef,"./components/ReaderBody.vue":ff,"./components/ReaderLayout.vue":wf,"./components/ReaderTour.vue":xf,"./components/TableField.vue":Fu,"./components/icons/IconBack.vue":Ef,"./components/icons/IconBookmarkNew.vue":Pf,"./components/icons/IconBookmarked.vue":jf,"./components/icons/IconChevronLeft.vue":Hf,"./components/icons/IconChevronRight.vue":Uf,"./components/icons/IconClose.vue":Eu,"./components/icons/IconDouble.vue":Qf,"./components/icons/IconDoubleSkip.vue":op,"./components/icons/IconExclamationCircle.vue":Wp,"./components/icons/IconFullscreen.vue":ap,"./components/icons/IconFullscreenExit.vue":pp,"./components/icons/IconHelp.vue":qu,"./components/icons/IconLoading.vue":Sd,"./components/icons/IconNext.vue":Rd,"./components/icons/IconPause.vue":Yd,"./components/icons/IconPlay.vue":Jd,"./components/icons/IconReaderExit.vue":bp,"./components/icons/IconSettings.vue":Gu,"./components/icons/IconTriangle.vue":Td,"./components/icons/IconZoom.vue":gd}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return qp});
|