Bump web v3.23.092411

This commit is contained in:
gedoor authored and github-actions[bot] committed 2023-09-24 03:37:32 +00:00
1 parent cc7018e13c
commit 2a6b0acd3a
8 files changed
+16 -16

No files matched your search

@@ -1 +1 @@
import{a2 as We,n as r,z as w,T as Se,a5 as Le,o as p,d as f,g as e,t as O,F as te,P as ce,u as o,a6 as G,a7 as Fe,a8 as Je,v as V,e as T,w as J,a9 as Te,A as he,aa as qe,f as Z,M as ge,ab as Ge,x as Ze,ac as Ke,p as we,i as _e,s as ze,ad as Ye,V as je,K as Xe,a4 as $e,O as Me,k as z,c as et}from"./vendor-260e64da.js";import{i as tt,g as Pe,u as ot}from"./loading-6856b75b.js";import{_ as le,u as Ee,A as pe}from"./index-6758c83f.js";const nt=(a,s,d,u)=>(a/=u/2,a<1?d/2*a*a+s:(a--,-d/2*(a*(a-2)-1)+s)),st=()=>{let a,s,d,u,n,x,m,_,h,C,i,I,A;function b(){let v=a.scrollTop||a.scrollY||a.pageYOffset;return v=typeof v>"u"?0:v,v}function l(v){const B=v.getBoundingClientRect().top,Y=a.getBoundingClientRect?a.getBoundingClientRect().top:0;return B-Y+d}function k(v){a.scrollTo?a.scrollTo(0,v):a.scrollTop=v}function L(v){C||(C=v),i=v-C,I=x(i,d,_,h),k(I),i<h?requestAnimationFrame(L):M()}function M(){k(d+_),s&&m&&(s.setAttribute("tabindex","-1"),s.focus()),typeof A=="function"&&A(),C=!1}function oe(v,B={}){switch(h=B.duration||1e3,n=B.offset||0,A=B.callback,x=B.easing||nt,m=B.a11y||!1,typeof B.container){case"object":a=B.container;break;case"string":a=document.querySelector(B.container);break;default:a=window}switch(d=b(),typeof v){case"number":s=void 0,m=!1,u=d+v;break;case"object":s=v,u=l(s);break;case"string":s=document.querySelector(v),u=l(s);break}switch(_=u-d+n,typeof B.duration){case"number":h=B.duration;break;case"function":h=B.duration(_);break}requestAnimationFrame(L)}return oe},$=st();const at=["data-chapterpos"],it=["src"],ct=["innerHTML"],lt={__name:"ChapterContent",props:{chapterIndex:{type:Number,required:!0},contents:{type:Array,required:!0},title:{type:String,required:!0},spacing:{type:Object,required:!0},fontFamily:{type:String,required:!0},fontSize:{type:String,required:!0}},emits:["readedLengthChange"],setup(a,{expose:s,emit:d}){const u=a;We(A=>({"65b266c2":u.spacing.letter,"75882ce0":u.spacing.line,"89939d5c":u.spacing.paragraph}));const n=A=>{const b=/<img[^>]*src="([^"]*(?:"[^>]+\})?)"[^>]*>/,l=A.match(b)[1];return tt(l)?Pe(l):l},x=A=>{A.target.src=Pe(A.target.src)},m=A=>{const b=/<img[^>]*src="[^"]*(?:"[^>]+\})?"[^>]*>/g,l=" ";return A.replaceAll(b,l).length},_=r(()=>{let A=-1;return Array.from(u.contents,b=>(A+=m(b)+1,A))}),h=w(),C=w();s({scrollToReadedLength:A=>{if(A===0)return;let b=_.value.findIndex(l=>l>=A);b!==-1&&Fe(()=>{$(C.value[b],{duration:0})})}});let I=null;return Se(()=>{I=new IntersectionObserver(A=>{for(let{target:b,isIntersecting:l}of A)l&&d("readedLengthChange",u.chapterIndex,parseInt(b.dataset.chapterpos))},{rootMargin:`0px 0px -${window.innerHeight-24}px 0px`}),I.observe(h.value),C.value.forEach(A=>{I.observe(A)})}),Le(()=>{I==null||I.disconnect(),I=null}),(A,b)=>(p(),f(te,null,[e("div",{class:"title","data-chapterpos":"0",ref_key:"titleRef",ref:h},O(a.title),513),(p(!0),f(te,null,ce(a.contents,(l,k)=>(p(),f("div",{key:k,ref_for:!0,ref_key:"paragraphRef",ref:C,"data-chapterpos":o(_)[k]},[/^\s*<img[^>]*src[^>]+>$/.test(l)?(p(),f("img",{key:0,class:"full",src:n(l),onErrorOnce:x,loading:"lazy"},null,40,it)):(p(),f("p",{key:1,style:G({fontFamily:a.fontFamily,fontSize:a.fontSize}),innerHTML:l},null,12,ct))],8,at))),128))],64))}},rt=le(lt,[["__scopeId","data-v-b16ecb88"]]);const At="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAADFBMVEXr5djn4dTp49bt59rT6LKxAAACnElEQVQozw3NUUwScRzA8d8R6MF8YMIx8uk47hDSJbj14IPzOGc7jPLvwTGg5uAYDbe2tt56cLtznvEnS6yDqCcEaWi91DvrbLJZz7b1aFtz1aO+2OZWvn+/+4CHeB6BMYaqBLfjPNRY6RFT2JJYby+uAk4WUTrtlmJ4hgPYb2q1XGDQjaK8pgJHvqNaAX+KyuIkDXpgQinb46nOulnn4b5laUHTxLfseeArAoNOeJlOIjdoal0n1FA7tKFv5roK+YaHOqP3P0XyKHPHY+MhTRe5uCZnKhtJKw2eSrSoBDPLtpZuNcFNJcFyiCMxOaaHIfXz1e8HQbWLySrBQ4x0x1qlhnHlnz2HQEC6TNb0gTHXa7IKhcaHqkE015hk9whA0YeWiLIXf7Fa2CZo3DjqjB4tTuF8jIcbfcEx5z/w4sXpQhXW+ju0cqh7icTFmRMaG+v6CIvTjcSpHcH8JEsF3EPh3fRthYdVLLgI2fWXm85/pGFE4l046s70L+yKCcirGFR+jbpy3kMmiCGHrSezVONsn1RBixncyk2PcVWk7DlgxHo8iZwDyq5uAUD854dZhdIFYzKoQig2haUKi1lVufz2RZUZPZ41n/hrOQB6h0Hhg8I367FNoEHgeM/KY7szSeQwD8q2WE3HM35ZLl0K1MJiOtHIkBclRQUwZnyOWcNsRQQgVLj1PSqkjF9DsoOSaSg3iinKzvfmgsNFFfpP/2T3GLGvL4fHEfwIX1sVvXcPqLztehWGcfn9nI2U9nTfCgJPe/jFPLZwgVEzimBgAm0VIyK2tt1cE/AzQdLK+SxLSQ4aDCZnnId94OG2S1XwvnTbNk/ZnhyRCQT+sZM6z9g6LXL1BOBe+zJySiFkHAINCtnQokbCJ/apCv0foqPiZVfhpywAAAAASUVORK5CYII=",dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAACVBMVEX28ef48+n69esoK7jYAAAB4UlEQVQozw2OsW4bQQxEhwLXkDrysGdEqRRgVShfQQq8wOr2jD0jSpXCLvwXbtKfADlFqgSwC/9ljqweZgYzQFnb/QGepYhA9jzmTc1WaSEtQpbFgjWATI00ZZtIckXx8q2Oe5yEByBy+RHOTcM+VVTadULsvxvRC/q8WTwgcWGD+Mnaqa0oy2gw2pKFzK+PzEsus5hP9AHojKslVynLlioVTBEN8cjDNnZoR1uMGTiZAAN47HxMtEkGUE9b8HWzkqNX5Lpk0yVziAJOs46rK1pG/xNuXLjz95fSDoJE5IqG23MAYPtWoeWPvfVtIV/Ng9oH3W0gGMPIOqd4MK4QZ55dV61gOb8Zxp7I9qayaGxp6Q91cmC0ZRdBwEQVHWzSAanlZwVWc9yljeTCeaHjBVvlPSLeyeBUT2rPdJegQI103jVS3uYkyIx1il6mslMDedZuOkwzolsagvPuQAfp7cYg7k9V1NOxfq64PNSvMdwONV4VYEmqlbpZy5OAakRKkjPnL4CBv5/OZRgoWHBmNbxB0LgB1I4vXFj93UoF2/0TPEsWwV9EhbIiTPqYoTHYoMn3enTDjmrFeDTIzaL1bUC/PBIMuF+vSLine truncated
import{a2 as We,n as r,z as w,T as Se,a5 as Le,o as p,d as f,g as e,t as O,F as te,P as ce,u as o,a6 as G,a7 as Fe,a8 as Je,v as V,e as T,w as J,a9 as Te,A as he,aa as qe,f as Z,M as ge,ab as Ge,x as Ze,ac as Ke,p as we,i as _e,s as ze,ad as Ye,V as je,K as Xe,a4 as $e,O as Me,k as z,c as et}from"./vendor-f0c50eaf.js";import{i as tt,g as Pe,u as ot}from"./loading-50b675c1.js";import{_ as le,u as Ee,A as pe}from"./index-a4be7e77.js";const nt=(a,s,d,u)=>(a/=u/2,a<1?d/2*a*a+s:(a--,-d/2*(a*(a-2)-1)+s)),st=()=>{let a,s,d,u,n,x,m,_,h,C,i,I,A;function b(){let v=a.scrollTop||a.scrollY||a.pageYOffset;return v=typeof v>"u"?0:v,v}function l(v){const B=v.getBoundingClientRect().top,Y=a.getBoundingClientRect?a.getBoundingClientRect().top:0;return B-Y+d}function k(v){a.scrollTo?a.scrollTo(0,v):a.scrollTop=v}function L(v){C||(C=v),i=v-C,I=x(i,d,_,h),k(I),i<h?requestAnimationFrame(L):M()}function M(){k(d+_),s&&m&&(s.setAttribute("tabindex","-1"),s.focus()),typeof A=="function"&&A(),C=!1}function oe(v,B={}){switch(h=B.duration||1e3,n=B.offset||0,A=B.callback,x=B.easing||nt,m=B.a11y||!1,typeof B.container){case"object":a=B.container;break;case"string":a=document.querySelector(B.container);break;default:a=window}switch(d=b(),typeof v){case"number":s=void 0,m=!1,u=d+v;break;case"object":s=v,u=l(s);break;case"string":s=document.querySelector(v),u=l(s);break}switch(_=u-d+n,typeof B.duration){case"number":h=B.duration;break;case"function":h=B.duration(_);break}requestAnimationFrame(L)}return oe},$=st();const at=["data-chapterpos"],it=["src"],ct=["innerHTML"],lt={__name:"ChapterContent",props:{chapterIndex:{type:Number,required:!0},contents:{type:Array,required:!0},title:{type:String,required:!0},spacing:{type:Object,required:!0},fontFamily:{type:String,required:!0},fontSize:{type:String,required:!0}},emits:["readedLengthChange"],setup(a,{expose:s,emit:d}){const u=a;We(A=>({"65b266c2":u.spacing.letter,"75882ce0":u.spacing.line,"89939d5c":u.spacing.paragraph}));const n=A=>{const b=/<img[^>]*src="([^"]*(?:"[^>]+\})?)"[^>]*>/,l=A.match(b)[1];return tt(l)?Pe(l):l},x=A=>{A.target.src=Pe(A.target.src)},m=A=>{const b=/<img[^>]*src="[^"]*(?:"[^>]+\})?"[^>]*>/g,l=" ";return A.replaceAll(b,l).length},_=r(()=>{let A=-1;return Array.from(u.contents,b=>(A+=m(b)+1,A))}),h=w(),C=w();s({scrollToReadedLength:A=>{if(A===0)return;let b=_.value.findIndex(l=>l>=A);b!==-1&&Fe(()=>{$(C.value[b],{duration:0})})}});let I=null;return Se(()=>{I=new IntersectionObserver(A=>{for(let{target:b,isIntersecting:l}of A)l&&d("readedLengthChange",u.chapterIndex,parseInt(b.dataset.chapterpos))},{rootMargin:`0px 0px -${window.innerHeight-24}px 0px`}),I.observe(h.value),C.value.forEach(A=>{I.observe(A)})}),Le(()=>{I==null||I.disconnect(),I=null}),(A,b)=>(p(),f(te,null,[e("div",{class:"title","data-chapterpos":"0",ref_key:"titleRef",ref:h},O(a.title),513),(p(!0),f(te,null,ce(a.contents,(l,k)=>(p(),f("div",{key:k,ref_for:!0,ref_key:"paragraphRef",ref:C,"data-chapterpos":o(_)[k]},[/^\s*<img[^>]*src[^>]+>$/.test(l)?(p(),f("img",{key:0,class:"full",src:n(l),onErrorOnce:x,loading:"lazy"},null,40,it)):(p(),f("p",{key:1,style:G({fontFamily:a.fontFamily,fontSize:a.fontSize}),innerHTML:l},null,12,ct))],8,at))),128))],64))}},rt=le(lt,[["__scopeId","data-v-b16ecb88"]]);const At="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAADFBMVEXr5djn4dTp49bt59rT6LKxAAACnElEQVQozw3NUUwScRzA8d8R6MF8YMIx8uk47hDSJbj14IPzOGc7jPLvwTGg5uAYDbe2tt56cLtznvEnS6yDqCcEaWi91DvrbLJZz7b1aFtz1aO+2OZWvn+/+4CHeB6BMYaqBLfjPNRY6RFT2JJYby+uAk4WUTrtlmJ4hgPYb2q1XGDQjaK8pgJHvqNaAX+KyuIkDXpgQinb46nOulnn4b5laUHTxLfseeArAoNOeJlOIjdoal0n1FA7tKFv5roK+YaHOqP3P0XyKHPHY+MhTRe5uCZnKhtJKw2eSrSoBDPLtpZuNcFNJcFyiCMxOaaHIfXz1e8HQbWLySrBQ4x0x1qlhnHlnz2HQEC6TNb0gTHXa7IKhcaHqkE015hk9whA0YeWiLIXf7Fa2CZo3DjqjB4tTuF8jIcbfcEx5z/w4sXpQhXW+ju0cqh7icTFmRMaG+v6CIvTjcSpHcH8JEsF3EPh3fRthYdVLLgI2fWXm85/pGFE4l046s70L+yKCcirGFR+jbpy3kMmiCGHrSezVONsn1RBixncyk2PcVWk7DlgxHo8iZwDyq5uAUD854dZhdIFYzKoQig2haUKi1lVufz2RZUZPZ41n/hrOQB6h0Hhg8I367FNoEHgeM/KY7szSeQwD8q2WE3HM35ZLl0K1MJiOtHIkBclRQUwZnyOWcNsRQQgVLj1PSqkjF9DsoOSaSg3iinKzvfmgsNFFfpP/2T3GLGvL4fHEfwIX1sVvXcPqLztehWGcfn9nI2U9nTfCgJPe/jFPLZwgVEzimBgAm0VIyK2tt1cE/AzQdLK+SxLSQ4aDCZnnId94OG2S1XwvnTbNk/ZnhyRCQT+sZM6z9g6LXL1BOBe+zJySiFkHAINCtnQokbCJ/apCv0foqPiZVfhpywAAAAASUVORK5CYII=",dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAACVBMVEX28ef48+n69esoK7jYAAAB4UlEQVQozw2OsW4bQQxEhwLXkDrysGdEqRRgVShfQQq8wOr2jD0jSpXCLvwXbtKfADlFqgSwC/9ljqweZgYzQFnb/QGepYhA9jzmTc1WaSEtQpbFgjWATI00ZZtIckXx8q2Oe5yEByBy+RHOTcM+VVTadULsvxvRC/q8WTwgcWGD+Mnaqa0oy2gw2pKFzK+PzEsus5hP9AHojKslVynLlioVTBEN8cjDNnZoR1uMGTiZAAN47HxMtEkGUE9b8HWzkqNX5Lpk0yVziAJOs46rK1pG/xNuXLjz95fSDoJE5IqG23MAYPtWoeWPvfVtIV/Ng9oH3W0gGMPIOqd4MK4QZ55dV61gOb8Zxp7I9qayaGxp6Q91cmC0ZRdBwEQVHWzSAanlZwVWc9yljeTCeaHjBVvlPSLeyeBUT2rPdJegQI103jVS3uYkyIx1il6mslMDedZuOkwzolsagvPuQAfp7cYg7k9V1NOxfq64PNSvMdwONV4VYEmqlbpZy5OAakRKkjPnL4CBv5/OZRgoWHBmNbxB0LgB1I4vXFj93UoF2/0TPEsWwV9EhbIiTPqYoTHYoMn3enTDjmrFeDTIzaL1bUC/PBIMuF+vSLine truncated
@@ -1 +1 @@
import{a2 as $,n as T,o as i,d as l,g as e,F as b,P as J,t as d,c as G,w as V,f as P,M as B,u as s,a3 as D,p as W,i as O,s as X,z as f,O as j,a4 as ee,T as te,k as y,e as S,A as se,L as ae,v as z,I as oe,B as ne}from"./vendor-260e64da.js";import{d as ce,u as re}from"./loading-6856b75b.js";import{_ as Z,u as ie,A as M}from"./index-6758c83f.js";const H=o=>(W("data-v-79a0da0d"),o=o(),O(),o),le={class:"books-wrapper"},de={class:"wrapper"},ue=["onClick"],he={class:"cover-img"},pe=["src"],_e={class:"info"},ve={class:"name"},ge={class:"sub"},me={class:"author"},fe={key:0,class:"tags"},we={key:1,class:"update-info"},Ae=H(()=>e("div",{class:"dot"},"•",-1)),Ie={class:"size"},ke=H(()=>e("div",{class:"dot"},"•",-1)),Be={class:"date"},ye={key:0,class:"intro"},Se={key:1,class:"dur-chapter"},xe={class:"last-chapter"},Ce={__name:"BookItems",props:["books","isSearch"],emits:["bookClick"],setup(o,{emit:n}){const x=o;$(u=>({d0aaf530:s(w)}));const C=u=>n("bookClick",u),R=u=>/^data:/.test(u)?u:location.origin+"/cover?path="+encodeURIComponent(u),w=T(()=>x.isSearch?"space-between":"flex-start");return(u,E)=>{const c=D;return i(),l("div",le,[e("div",de,[(i(!0),l(b,null,J(o.books,r=>{var A;return i(),l("div",{class:"book",key:r.bookUrl,onClick:m=>C(r)},[e("div",he,[(i(),l("img",{class:"cover",src:R(r.coverUrl),key:r.coverUrl,alt:"",loading:"lazy"},null,8,pe))]),e("div",_e,[e("div",ve,d(r.name),1),e("div",ge,[e("div",me,d(r.author),1),o.isSearch?(i(),l("div",fe,[(i(!0),l(b,null,J((A=r.kind)==null?void 0:A.split(",").slice(0,2),m=>(i(),G(c,{key:m},{default:V(()=>[P(d(m),1)]),_:2},1024))),128))])):B("",!0),o.isSearch?B("",!0):(i(),l("div",we,[Ae,e("div",Ie,"共"+d(r.totalChapterNum)+"章",1),ke,e("div",Be,d(s(ce)(r.lastCheckTime)),1)]))]),o.isSearch?(i(),l("div",ye,d(r.intro),1)):B("",!0),o.isSearch?B("",!0):(i(),l("div",Se," 已读:"+d(r.durChapterTitle),1)),e("div",xe,"最新:"+d(r.latestChapterTitle),1)])],8,ue)}),128))])])}}},Re=Z(Ce,[["__scopeId","data-v-79a0da0d"]]);const Ee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAECUlEQVRYR7WXTYhcRRDHq3pY9yKrYBQ8KBsjgvHgwRhiQBTjYZm4Xe8NusawhwS/o9GLoKhgBGPAgJd1NdGIXwtZTbRf9Rqzl6gHTVyDeIkIgnEOghAM6oKHzTJd0sO8Zaa338zb7NjwmJn++Ndv+lVVVyOsoM3Ozl69sLBAiHiDc26NUuoKv9w5d14p9aeI/DI4OMgjIyN/lJXFMhOttQ8BgBaR0TLzEXEGAKzW+lCv+V0BmLmGiLtF5M5eQrFxRPxaRCaI6LOi9YUAzPwGADxxMYYjayaJ6MkoZKyTmU8AwF19Mp7LfElEW0LNZTvAzIcBYFufjedy00T0QLt2B4AxZo9S6qX/yXhT1jn3cpqme3IbSwDM/DgAvNlu3Dm3Uyl1HAA2IOJ2EdleEu5Io9H4EBHPVCqVLSISRsMuInrLazUBpqamhoaGhr4TkRsDgLVpmtbzPmPMLQBwOwD4vvzxw8P5IyJztVrtVL4my7L1iPhTx7Yj/jw/P79pfHx8vgmQZdkLiPhK+O8GBgauqVarv5f819FpxpjLlVJ/hYMi8mKSJHubAMz8KwBcF1EYI6IjqwRIlFImonGWiNZhlmVVRDxWYGTVAMx8HwB8EtMXka1orT0gIo9GJrxNRLH+FW8IMx8EgEeW5QDEgx5gTkQ2Bk7yr9b60hVb6rKAmc8BwJWBne+x4P3XiWhtPwGstV9FzpSzHuBvALgsMHaaiDp2ZbUwWZZNIuKuQOcfD7AAAJeEcaq1Xr9ao+3rmdknnscCzQse4LdWEukYazQaa2q12vl+QTDztwCwOdCr+zA8iYi3RQwREdl+ADDz9QDwIwB0OLaInPJRcEhEHoyEyAmt9d39ALDW2lg1hYjv+lfgC4WJgkTxcJIkPcuqbpC+qgKATwvm7PYAGwDgdBeRZ4notYvZCWPMDqXUe13W3to8C6y10yJyv//u6zj/2R6ziPiRiBwt6xPMrBExFZEdRcYR8WOt9bb8MNoKAJ+3Jvtwed05d4dSKtz+c4h4VGsdrRWttZMici8AXFVix+4homNLBUmWZQcQMc/9x4mommXZ84i4t11MKbV5dHR06bxvH5uZmbnZOfdN6O0RmMNE1CxulgCstdeKyBcAcFPrVTyltZ4wxiSVSuXplkhda72zh9P1rClFZFOSJHMdAP5Hq3rxR6eH+IGIvIOuqFlr94nIc10WdRzxy6riAMJnr2nn3JlcME3TppMWNWvtfhF5pmB8WX0RvZgEEEtaYUUbM2KtfUdE/FUubNHipvBmZIxZp5TaDwBprlQGIHLqzSHiPq01x4B7Xk6Z2d8TfDwPlwFozfd1f90598Hi4uKrY2NjFwrzQVkP81nNi/byAWOMv8gOp2n6fhnt/wDqJrRWLmhIrwAAAABJRU5ErkJggg==";const L=o=>(W("data-v-6702555c"),o=o(),O(),o),ze={class:"navigation-wrapper"},Me=L(()=>e("div",{class:"navigation-title-wrapper"},[e("div",{class:"navigation-title"},"阅读"),e("div",{class:"navigation-sub-title"},"清风不识字,何故乱翻书")],-1)),Te={class:"search-wrapper"},Ve={class:"bottom-wrapper"},Pe={class:"recent-wrapper"},Le=L(()=>e("div",{class:"recent-title"},"最近阅读",-1)),Ne={class:"reading-recent"},be={class:"setting-wrapper"},Je=L(()=>e("div",{class:"setting-title"},"基本设定",-1)),De={class:"setting-item"},We={class:"bottom-icons"},Oe={href:"https://github.com/gedoor/legado_web_bookshelf",target:"_blank"},Ze={class:"bottom-icon"},He=["src"],Fe={__name:"BookShelf",setup(o){const n=ie(),{connectStatus:x,connectType:C,newConnect:R,shelf:w}=X(n),u=T(()=>n.config.theme),E=T(()=>u.value==6),c=f({name:"尚无阅读记录",author:"",url:"",chapterIndex:0,chapterPos:0}),r=f(null),{showLoading:A,closeLoading:m,loadingWrapper:F}=re(r,"正在获取书籍信息"),g=f([]),h=f(""),I=f(!1);j(()=>{if(!(I.value&&h.value!="")){if(I.value=!1,g.value=[],h.value==""){g.value=w.value;return}g.value=w.value.filter(t=>t.name.includes(h.value)||t.author.includes(h.value))}});const K=()=>{h.value!=""&&(g.value=[],n.clearSearchBooks(),A(),I.value=!0,M.search(h.value,t=>{try{n.setSearchBooks(JSON.parse(t)),n.searchBooks.forEach(a=>g.value.push(a))}catch(a){throw y.error("后端数据错误"),a}},()=>{m(),g.value.length==0&&y.info("搜索结果为空")}))},Y=()=>{},U=ee(),Q=async t=>{const{boLine truncated
import{a2 as $,n as T,o as i,d as l,g as e,F as b,P as J,t as d,c as G,w as V,f as P,M as B,u as s,a3 as D,p as W,i as O,s as X,z as f,O as j,a4 as ee,T as te,k as y,e as S,A as se,L as ae,v as z,I as oe,B as ne}from"./vendor-f0c50eaf.js";import{d as ce,u as re}from"./loading-50b675c1.js";import{_ as Z,u as ie,A as M}from"./index-a4be7e77.js";const H=o=>(W("data-v-79a0da0d"),o=o(),O(),o),le={class:"books-wrapper"},de={class:"wrapper"},ue=["onClick"],he={class:"cover-img"},pe=["src"],_e={class:"info"},ve={class:"name"},ge={class:"sub"},me={class:"author"},fe={key:0,class:"tags"},we={key:1,class:"update-info"},Ae=H(()=>e("div",{class:"dot"},"•",-1)),Ie={class:"size"},ke=H(()=>e("div",{class:"dot"},"•",-1)),Be={class:"date"},ye={key:0,class:"intro"},Se={key:1,class:"dur-chapter"},xe={class:"last-chapter"},Ce={__name:"BookItems",props:["books","isSearch"],emits:["bookClick"],setup(o,{emit:n}){const x=o;$(u=>({d0aaf530:s(w)}));const C=u=>n("bookClick",u),R=u=>/^data:/.test(u)?u:location.origin+"/cover?path="+encodeURIComponent(u),w=T(()=>x.isSearch?"space-between":"flex-start");return(u,E)=>{const c=D;return i(),l("div",le,[e("div",de,[(i(!0),l(b,null,J(o.books,r=>{var A;return i(),l("div",{class:"book",key:r.bookUrl,onClick:m=>C(r)},[e("div",he,[(i(),l("img",{class:"cover",src:R(r.coverUrl),key:r.coverUrl,alt:"",loading:"lazy"},null,8,pe))]),e("div",_e,[e("div",ve,d(r.name),1),e("div",ge,[e("div",me,d(r.author),1),o.isSearch?(i(),l("div",fe,[(i(!0),l(b,null,J((A=r.kind)==null?void 0:A.split(",").slice(0,2),m=>(i(),G(c,{key:m},{default:V(()=>[P(d(m),1)]),_:2},1024))),128))])):B("",!0),o.isSearch?B("",!0):(i(),l("div",we,[Ae,e("div",Ie,"共"+d(r.totalChapterNum)+"章",1),ke,e("div",Be,d(s(ce)(r.lastCheckTime)),1)]))]),o.isSearch?(i(),l("div",ye,d(r.intro),1)):B("",!0),o.isSearch?B("",!0):(i(),l("div",Se," 已读:"+d(r.durChapterTitle),1)),e("div",xe,"最新:"+d(r.latestChapterTitle),1)])],8,ue)}),128))])])}}},Re=Z(Ce,[["__scopeId","data-v-79a0da0d"]]);const Ee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAECUlEQVRYR7WXTYhcRRDHq3pY9yKrYBQ8KBsjgvHgwRhiQBTjYZm4Xe8NusawhwS/o9GLoKhgBGPAgJd1NdGIXwtZTbRf9Rqzl6gHTVyDeIkIgnEOghAM6oKHzTJd0sO8Zaa338zb7NjwmJn++Ndv+lVVVyOsoM3Ozl69sLBAiHiDc26NUuoKv9w5d14p9aeI/DI4OMgjIyN/lJXFMhOttQ8BgBaR0TLzEXEGAKzW+lCv+V0BmLmGiLtF5M5eQrFxRPxaRCaI6LOi9YUAzPwGADxxMYYjayaJ6MkoZKyTmU8AwF19Mp7LfElEW0LNZTvAzIcBYFufjedy00T0QLt2B4AxZo9S6qX/yXhT1jn3cpqme3IbSwDM/DgAvNlu3Dm3Uyl1HAA2IOJ2EdleEu5Io9H4EBHPVCqVLSISRsMuInrLazUBpqamhoaGhr4TkRsDgLVpmtbzPmPMLQBwOwD4vvzxw8P5IyJztVrtVL4my7L1iPhTx7Yj/jw/P79pfHx8vgmQZdkLiPhK+O8GBgauqVarv5f819FpxpjLlVJ/hYMi8mKSJHubAMz8KwBcF1EYI6IjqwRIlFImonGWiNZhlmVVRDxWYGTVAMx8HwB8EtMXka1orT0gIo9GJrxNRLH+FW8IMx8EgEeW5QDEgx5gTkQ2Bk7yr9b60hVb6rKAmc8BwJWBne+x4P3XiWhtPwGstV9FzpSzHuBvALgsMHaaiDp2ZbUwWZZNIuKuQOcfD7AAAJeEcaq1Xr9ao+3rmdknnscCzQse4LdWEukYazQaa2q12vl+QTDztwCwOdCr+zA8iYi3RQwREdl+ADDz9QDwIwB0OLaInPJRcEhEHoyEyAmt9d39ALDW2lg1hYjv+lfgC4WJgkTxcJIkPcuqbpC+qgKATwvm7PYAGwDgdBeRZ4notYvZCWPMDqXUe13W3to8C6y10yJyv//u6zj/2R6ziPiRiBwt6xPMrBExFZEdRcYR8WOt9bb8MNoKAJ+3Jvtwed05d4dSKtz+c4h4VGsdrRWttZMici8AXFVix+4homNLBUmWZQcQMc/9x4mommXZ84i4t11MKbV5dHR06bxvH5uZmbnZOfdN6O0RmMNE1CxulgCstdeKyBcAcFPrVTyltZ4wxiSVSuXplkhda72zh9P1rClFZFOSJHMdAP5Hq3rxR6eH+IGIvIOuqFlr94nIc10WdRzxy6riAMJnr2nn3JlcME3TppMWNWvtfhF5pmB8WX0RvZgEEEtaYUUbM2KtfUdE/FUubNHipvBmZIxZp5TaDwBprlQGIHLqzSHiPq01x4B7Xk6Z2d8TfDwPlwFozfd1f90598Hi4uKrY2NjFwrzQVkP81nNi/byAWOMv8gOp2n6fhnt/wDqJrRWLmhIrwAAAABJRU5ErkJggg==";const L=o=>(W("data-v-6702555c"),o=o(),O(),o),ze={class:"navigation-wrapper"},Me=L(()=>e("div",{class:"navigation-title-wrapper"},[e("div",{class:"navigation-title"},"阅读"),e("div",{class:"navigation-sub-title"},"清风不识字,何故乱翻书")],-1)),Te={class:"search-wrapper"},Ve={class:"bottom-wrapper"},Pe={class:"recent-wrapper"},Le=L(()=>e("div",{class:"recent-title"},"最近阅读",-1)),Ne={class:"reading-recent"},be={class:"setting-wrapper"},Je=L(()=>e("div",{class:"setting-title"},"基本设定",-1)),De={class:"setting-item"},We={class:"bottom-icons"},Oe={href:"https://github.com/gedoor/legado_web_bookshelf",target:"_blank"},Ze={class:"bottom-icon"},He=["src"],Fe={__name:"BookShelf",setup(o){const n=ie(),{connectStatus:x,connectType:C,newConnect:R,shelf:w}=X(n),u=T(()=>n.config.theme),E=T(()=>u.value==6),c=f({name:"尚无阅读记录",author:"",url:"",chapterIndex:0,chapterPos:0}),r=f(null),{showLoading:A,closeLoading:m,loadingWrapper:F}=re(r,"正在获取书籍信息"),g=f([]),h=f(""),I=f(!1);j(()=>{if(!(I.value&&h.value!="")){if(I.value=!1,g.value=[],h.value==""){g.value=w.value;return}g.value=w.value.filter(t=>t.name.includes(h.value)||t.author.includes(h.value))}});const K=()=>{h.value!=""&&(g.value=[],n.clearSearchBooks(),A(),I.value=!0,M.search(h.value,t=>{try{n.setSearchBooks(JSON.parse(t)),n.searchBooks.forEach(a=>g.value.push(a))}catch(a){throw y.error("后端数据错误"),a}},()=>{m(),g.value.length==0&&y.info("搜索结果为空")}))},Y=()=>{},U=ee(),Q=async t=>{const{boLine truncated
@@ -0,0 +1 @@
import{A as f,u as i}from"./index-a4be7e77.js";import"./vendor-f0c50eaf.js";f.getReadConfig().then(e=>{var t=e.data.data;if(t){const a=i();let o=JSON.parse(t),s=a.config;o=Object.assign(s,o),a.setConfig(o)}});
@@ -1 +0,0 @@
import{A as f,u as i}from"./index-6758c83f.js";import"./vendor-260e64da.js";f.getReadConfig().then(e=>{var t=e.data.data;if(t){const a=i();let o=JSON.parse(t),s=a.config;o=Object.assign(s,o),a.setConfig(o)}});
@@ -1,4 +1,4 @@
import{r as Ue,o as a,c as w,a as se,b as ie,d as E,e as g,w as p,f as b,u as i,l as z,g as _,F as R,E as Ve,h as he,p as Ne,i as Te,j as Ie,k as B,m as ge,s as Y,n as G,t as X,q as _e,v as me,x as le,y as $e,z as P,A as K,B as Se,C as Le,D as Oe,G as ce,V as Re,H as Pe,I as Z,J as De,K as ye,L as Je,M as $,N as Ae,O as je,P as A,Q as fe,R as be,S as H,T as Ke,U as Me,W as He,X as Fe,Y as qe,Z as ze,_ as We,$ as Ge,a0 as Qe,a1 as Xe}from"./vendor-260e64da.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const n of r)if(n.type==="childList")for(const l of n.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function o(r){const n={};return r.integrity&&(n.integrity=r.integrity),r.referrerPolicy&&(n.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?n.credentials="include":r.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function s(r){if(r.ep)return;r.ep=!0;const n=o(r);fetch(r.href,n)}})();const Ye="modulepreload",Ze=function(e,t){return new URL(e,t).href},ue={},ne=function(t,o,s){if(!o||o.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(o.map(n=>{if(n=Ze(n,s),n in ue)return;ue[n]=!0;const l=n.endsWith(".css"),k=l?'[rel="stylesheet"]':"";if(!!s)for(let C=r.length-1;C>=0;C--){const v=r[C];if(v.href===n&&(!l||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${k}`))return;const S=document.createElement("link");if(S.rel=l?"stylesheet":Ye,l||(S.as="script",S.crossOrigin=""),S.href=n,document.head.appendChild(S),l)return new Promise((C,v)=>{S.addEventListener("load",C),S.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>t()).catch(n=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=n,window.dispatchEvent(l),!l.defaultPrevented)throw n})},D=(e,t)=>{const o=e.__vccOpts||e;for(const[s,r]of t)o[s]=r;return o},et={};function tt(e,t){const o=Ue("router-view");return a(),w(o)}const ot=D(et,[["render",tt]]),ke=[{path:"/",name:"shelf",component:()=>ne(()=>import("./BookShelf-f6baeae9.js"),["./BookShelf-f6baeae9.js","./vendor-260e64da.js","./vendor-31f92e7c.css","./loading-6856b75b.js","./loading-c009631e.css","./BookShelf-6af38855.css"],import.meta.url)},{path:"/chapter",name:"chapter",component:()=>ne(()=>import("./BookChapter-f8cd870c.js"),["./BookChapter-f8cd870c.js","./vendor-260e64da.js","./vendor-31f92e7c.css","./loading-6856b75b.js","./loading-c009631e.css","./BookChapter-1fe439a7.css"],import.meta.url)}];se({history:ie(),routes:ke});const L=e=>(Ne("data-v-aee57c78"),e=e(),Te(),e),nt=L(()=>_("br",null,null,-1)),rt=L(()=>_("br",null,null,-1)),st=L(()=>_("br",null,null,-1)),it=L(()=>_("br",null,null,-1)),lt=L(()=>_("br",null,null,-1)),at={style:{"margin-top":"20px"}},ct=L(()=>_("code",null,"^$()[]{}.?+*|",-1)),ut=L(()=>_("br",null,null,-1)),dt=L(()=>_("code",null,"(?s)",-1)),pt=L(()=>_("br",null,null,-1)),ht=L(()=>_("code",null,"(?m)",-1)),gt=L(()=>_("br",null,null,-1)),_t=L(()=>_("code",null,"(?i)",-1)),mt=L(()=>_("br",null,null,-1)),St={__name:"SourceHelp",setup(e){return(t,o)=>{const s=Ve,r=he;return a(),E(R,null,[g(s,{icon:i(z),href:"https://alanskycn.gitee.io/teachme/",target:"_blank"},{default:p(()=>[b("书源制作教程")]),_:1},8,["icon"]),nt,g(s,{icon:i(z),href:"https://zhuanlan.zhihu.com/p/29436838",target:"_blank"},{default:p(()=>[b("xpath基础教程")]),_:1},8,["icon"]),rt,g(s,{icon:i(z),href:"https://zhuanlan.zhihu.com/p/32187820",target:"_blank"},{default:p(()=>[b("xpath高级教程")]),_:1},8,["icon"]),st,g(s,{icon:i(z),href:"https://www.w3cschool.cn/regex_rmjc",target:"_blank"},{default:p(()=>[b("正则表达式教程")]),_:1},8,["icon"]),it,g(s,{icon:i(z),href:"https://regexr-cn.com/",target:"_blank"},{default:p(()=>[b("正则表达式在线验证工具")]),_:1},8,["icon"]),lt,_("div",at,[_("span",null,[g(r,null,{default:p(()=>[ct,b(" 这些是Java正则特殊符号,匹配需转义")]),_:1})]),ut,_("span",null,[g(r,null,{default:p(()=>[dt,b(" 前缀表示跨行解析")]),_:1})]),pt,_("span",null,[g(r,null,{default:p(()=>[ht,b(" 前缀表示逐行匹配")]),_:1})]),gt,_("span",null,[g(r,null,{default:p(()=>[_t,b(" 前缀表示忽略大小写")]),_:1})]),mt])],64)}}},yt=D(St,[["__scopeId","data-v-aee57c78"]]),ft=1e3,U=Ie.create({baseURL:location.origin,timeout:120*ft}),{hostname:ve,port:we}=new URL(location.origin),bt=/source/i.test(location.href),kt=e=>{throw bt&&B({message:"后端错误,检查网络或者阅读app",type:"error"}),e};U.interceptors.response.use(e=>e,kt);const vt=()=>U.get("/getReadConfig"),wt=e=>U.post("/saveReadConfig",e),Ct=e=>U.post("/saveBookProgress",e),xt=e=>{e&&navigator.sendBeacon(`${location.origin}/saveBookProgress`,JSON.stringify(e))},Bt=()=>U.get("/getBookshelf"),Et=e=>U.get("Line truncated
import{r as Ue,o as a,c as w,a as se,b as ie,d as E,e as g,w as p,f as b,u as i,l as z,g as _,F as R,E as Ve,h as he,p as Ne,i as Te,j as Ie,k as B,m as ge,s as Y,n as G,t as X,q as _e,v as me,x as le,y as $e,z as P,A as K,B as Se,C as Le,D as Oe,G as ce,V as Re,H as Pe,I as Z,J as De,K as ye,L as Je,M as $,N as Ae,O as je,P as A,Q as fe,R as be,S as H,T as Ke,U as Me,W as He,X as Fe,Y as qe,Z as ze,_ as We,$ as Ge,a0 as Qe,a1 as Xe}from"./vendor-f0c50eaf.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const n of r)if(n.type==="childList")for(const l of n.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function o(r){const n={};return r.integrity&&(n.integrity=r.integrity),r.referrerPolicy&&(n.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?n.credentials="include":r.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function s(r){if(r.ep)return;r.ep=!0;const n=o(r);fetch(r.href,n)}})();const Ye="modulepreload",Ze=function(e,t){return new URL(e,t).href},ue={},ne=function(t,o,s){if(!o||o.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(o.map(n=>{if(n=Ze(n,s),n in ue)return;ue[n]=!0;const l=n.endsWith(".css"),k=l?'[rel="stylesheet"]':"";if(!!s)for(let C=r.length-1;C>=0;C--){const v=r[C];if(v.href===n&&(!l||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${k}`))return;const S=document.createElement("link");if(S.rel=l?"stylesheet":Ye,l||(S.as="script",S.crossOrigin=""),S.href=n,document.head.appendChild(S),l)return new Promise((C,v)=>{S.addEventListener("load",C),S.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>t()).catch(n=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=n,window.dispatchEvent(l),!l.defaultPrevented)throw n})},D=(e,t)=>{const o=e.__vccOpts||e;for(const[s,r]of t)o[s]=r;return o},et={};function tt(e,t){const o=Ue("router-view");return a(),w(o)}const ot=D(et,[["render",tt]]),ke=[{path:"/",name:"shelf",component:()=>ne(()=>import("./BookShelf-a36ec3d2.js"),["./BookShelf-a36ec3d2.js","./vendor-f0c50eaf.js","./vendor-31f92e7c.css","./loading-50b675c1.js","./loading-c009631e.css","./BookShelf-6af38855.css"],import.meta.url)},{path:"/chapter",name:"chapter",component:()=>ne(()=>import("./BookChapter-7320110d.js"),["./BookChapter-7320110d.js","./vendor-f0c50eaf.js","./vendor-31f92e7c.css","./loading-50b675c1.js","./loading-c009631e.css","./BookChapter-1fe439a7.css"],import.meta.url)}];se({history:ie(),routes:ke});const L=e=>(Ne("data-v-aee57c78"),e=e(),Te(),e),nt=L(()=>_("br",null,null,-1)),rt=L(()=>_("br",null,null,-1)),st=L(()=>_("br",null,null,-1)),it=L(()=>_("br",null,null,-1)),lt=L(()=>_("br",null,null,-1)),at={style:{"margin-top":"20px"}},ct=L(()=>_("code",null,"^$()[]{}.?+*|",-1)),ut=L(()=>_("br",null,null,-1)),dt=L(()=>_("code",null,"(?s)",-1)),pt=L(()=>_("br",null,null,-1)),ht=L(()=>_("code",null,"(?m)",-1)),gt=L(()=>_("br",null,null,-1)),_t=L(()=>_("code",null,"(?i)",-1)),mt=L(()=>_("br",null,null,-1)),St={__name:"SourceHelp",setup(e){return(t,o)=>{const s=Ve,r=he;return a(),E(R,null,[g(s,{icon:i(z),href:"https://alanskycn.gitee.io/teachme/",target:"_blank"},{default:p(()=>[b("书源制作教程")]),_:1},8,["icon"]),nt,g(s,{icon:i(z),href:"https://zhuanlan.zhihu.com/p/29436838",target:"_blank"},{default:p(()=>[b("xpath基础教程")]),_:1},8,["icon"]),rt,g(s,{icon:i(z),href:"https://zhuanlan.zhihu.com/p/32187820",target:"_blank"},{default:p(()=>[b("xpath高级教程")]),_:1},8,["icon"]),st,g(s,{icon:i(z),href:"https://www.w3cschool.cn/regex_rmjc",target:"_blank"},{default:p(()=>[b("正则表达式教程")]),_:1},8,["icon"]),it,g(s,{icon:i(z),href:"https://regexr-cn.com/",target:"_blank"},{default:p(()=>[b("正则表达式在线验证工具")]),_:1},8,["icon"]),lt,_("div",at,[_("span",null,[g(r,null,{default:p(()=>[ct,b(" 这些是Java正则特殊符号,匹配需转义")]),_:1})]),ut,_("span",null,[g(r,null,{default:p(()=>[dt,b(" 前缀表示跨行解析")]),_:1})]),pt,_("span",null,[g(r,null,{default:p(()=>[ht,b(" 前缀表示逐行匹配")]),_:1})]),gt,_("span",null,[g(r,null,{default:p(()=>[_t,b(" 前缀表示忽略大小写")]),_:1})]),mt])],64)}}},yt=D(St,[["__scopeId","data-v-aee57c78"]]),ft=1e3,U=Ie.create({baseURL:location.origin,timeout:120*ft}),{hostname:ve,port:we}=new URL(location.origin),bt=/source/i.test(location.href),kt=e=>{throw bt&&B({message:"后端错误,检查网络或者阅读app",type:"error"}),e};U.interceptors.response.use(e=>e,kt);const vt=()=>U.get("/getReadConfig"),wt=e=>U.post("/saveReadConfig",e),Ct=e=>U.post("/saveBookProgress",e),xt=e=>{e&&navigator.sendBeacon(`${location.origin}/saveBookProgress`,JSON.stringify(e))},Bt=()=>U.get("/getBookshelf"),Et=e=>U.get("Line truncated
`},n=async()=>{o.value="",await j.saveSource(t.currentSource),j.debug(t.currentSourceUrl,s.value||t.searchKey,r,t.debugFinish)},l=G(()=>/bookSource/.test(window.location.href));return(k,m)=>{const S=Z;return a(),E(R,null,[i(l)?(a(),w(S,{key:0,id:"debug-key",modelValue:i(s),"onUpdate:modelValue":m[0]||(m[0]=C=>K(s)?s.value=C:null),placeholder:"搜索书名、作者","prefix-icon":i(Se),style:{"padding-bottom":"4px"},onKeydown:Je(n,["enter"])},null,8,["modelValue","prefix-icon","onKeydown"])):$("",!0),g(S,{id:"debug-text",modelValue:i(o),"onUpdate:modelValue":m[1]||(m[1]=C=>K(o)?o.value=C:null),type:"textarea",readonly:"",rows:"29",placeholder:"这里用于输出调试信息"},null,8,["modelValue"])],64)}}},zt=D(qt,[["__scopeId","data-v-f7a4e94b"]]),yo=ge("book",{state:()=>({connectStatus:"正在连接后端服务器……",connectType:"",newConnect:!0,searchBooks:[],shelf:[],catalog:[],readingBook:{index:0,chapterPos:0},popCataVisible:!1,contentLoading:!0,showContent:!1,config:{theme:0,font:0,fontSize:18,readWidth:800,infiniteLoading:!1,customFontName:"",jumpDuration:1e3,spacing:{paragraph:1,line:.8,letter:0}},miniInterface:!1,readSettingsVisible:!1}),getters:{bookProgress:e=>{var l;if(e.catalog.length==0)return;const{index:t,chapterPos:o,bookName:s,bookAuthor:r}=e.readingBook;let n=(l=e.catalog[t])==null?void 0:l.title;if(n)return{name:s,author:r,durChapterIndex:t,durChapterPos:o,durChapterTime:new Date().getTime(),durChapterTitle:n}}},actions:{setConnectStatus(e){this.connectStatus=e},setConnectType(e){this.connectType=e},setNewConnect(e){this.newConnect=e},addBooks(e){this.shelf=e},setCatalog(e){this.catalog=e},setPopCataVisible(e){this.popCataVisible=e},setContentLoading(e){this.contentLoading=e},setReadingBook(e){this.readingBook=e},setConfig(e){Object.assign(this.config,e)},setReadSettingsVisible(e){this.readSettingsVisible=e},setShowContent(e){this.showContent=e},setMiniInterface(e){this.miniInterface=e},async setSearchBooks(e){e.forEach(t=>{this.shelf.find(s=>s.bookUrl==t.bookUrl)===void 0&&this.searchBooks.push(t)})},clearSearchBooks(){this.searchBooks=[]},async saveBookProgress(){return this.bookProgress?j.saveBookProgress(this.bookProgress):Promise.resolve()}}}),Wt=Ae();const Gt={__name:"SourceJson",setup(e){const t=M(),o=P(""),s=async r=>{try{t.changeEditTabSource(JSON.parse(r))}catch{B({message:"粘贴的源格式错误",type:"error"})}};return je(async()=>{let r=t.editTabSource;Object.keys(r).length>0?o.value=JSON.stringify(r,null,4):o.value=""}),(r,n)=>{const l=Z;return a(),w(l,{id:"source-json",modelValue:i(o),"onUpdate:modelValue":n[0]||(n[0]=k=>K(o)?o.value=k:null),type:"textarea",placeholder:"这里输出序列化的JSON数据,可直接导入'阅读'APP",rows:"30",onChange:s,style:{"margin-bottom":"4px"}},null,8,["modelValue"])}}},Qt=D(Gt,[["__scopeId","data-v-7e91a802"]]);const Xt={__name:"SourceTabTools",setup(e){const t=M(),{currentTab:o}=Y(t),s=P([["editTab","编辑源"],["editDebug","调试源"],["editList","源列表"],["editHelp","帮助信息"]]);return(r,n)=>{const l=Qt,k=zt,m=Ft,S=yt,C=fe,v=be;return a(),w(v,{modelValue:i(o),"onUpdate:modelValue":n[0]||(n[0]=x=>K(o)?o.value=x:null)},{default:p(()=>[(a(!0),E(R,null,A(i(s),(x,c)=>(a(),w(C,{key:x[0],name:x[0],label:x[1]},{default:p(()=>[c==0?(a(),w(l,{key:0})):$("",!0),c==1?(a(),w(k,{key:1})):$("",!0),c==2?(a(),w(m,{key:2})):$("",!0),c==3?(a(),w(S,{key:3})):$("",!0)]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])}}},Yt=D(Xt,[["__scopeId","data-v-dcce2457"]]);const Zt={class:"menu flex-column-center"},eo={class:"hotkeys-header flex-space-between"},to=["id"],oo={key:0},no={class:"hotkeys-settings flex-column-center"},ro={class:"title"},so={class:"hotkeys-item__content"},io={key:0},lo={key:0},ao={__name:"ToolBar",setup(e){const t=M(),o=()=>{const d=B({message:"加载中……",showClose:!0,duration:0});j.getSources().then(({data:h})=>{h.isSuccess?(t.changeTabName("editList"),t.saveSources(h.data),B({message:`成功拉取${h.data.length}条源`,type:"success"})):B({message:h.errorMsg??"后端错误",type:"error"})}).finally(()=>d.close())},s=()=>{let d=t.sources;if(t.changeTabName("editList"),d.length===0)return B({message:"空空如也",type:"info"});B({message:"正在推送中",type:"info"}),j.saveSources(d).then(({data:h})=>{if(h.isSuccess){let u=h.data;if(Array.isArray(u)){let J="";d.length>u.length&&(J=`
推送失败的源将用红色字体标注!`,t.setPushReturnSources(u)),B({message:`批量推送源到「阅读3.0APP」
共计: ${d.length} 条
@@ -6,4 +6,4 @@ import{r as Ue,o as a,c as w,a as se,b as ie,d as E,e as g,w as p,f as b,u as i,
失败: ${d.length-u.length} 条${J}`,type:"success"})}}else B({message:`批量推送源失败!
ErrorMsg: ${h.errorMsg}`,type:"error"})})},r=()=>{t.changeTabName("editTab"),t.changeEditTabSource(t.currentSource)},n=()=>{t.changeCurrentSource(t.editTabSource)},l=()=>{t.editHistoryUndo()},k=()=>{t.clearEdit(),B({message:"已清除",type:"success"})},m=()=>{t.clearEdit(),t.clearAllHistory(),B({message:"已清除所有历史记录",type:"success"})},S=()=>{let d=/bookSource/.test(location.href),h=t.currentSource;Pt(h)?j.saveSource(h).then(({data:u})=>{u.isSuccess?(B({message:`源《${d?h.bookSourceName:h.sourceName}》已成功保存到「阅读3.0APP」`,type:"success"}),t.saveCurrentSource()):B({message:`源《${d?h.bookSourceName:h.sourceName}》保存失败!
ErrorMsg: ${u.errorMsg}`,type:"error"})}):B({message:"请检查<必填>项是否全部填写",type:"error"})},C=()=>{t.startDebug()},v=P(Array.of({name:"⇈推送源",hotKeys:[],action:s},{name:"⇊拉取源",hotKeys:[],action:o},{name:"⋙生成源",hotKeys:[],action:r},{name:"⋘编辑源",hotKeys:[],action:n},{name:"✗清空表单",hotKeys:[],action:k},{name:"↶撤销操作",hotKeys:[],action:l},{name:"↷重做操作",hotKeys:[],action:m},{name:"⇏调试源",hotKeys:[],action:C},{name:"✓保存源",hotKeys:[],action:S})),x=P(!0),c=P(!1),y=P(-1),V=()=>{c.value||(x.value=!1),c.value=!1};ye(x,d=>{if(!d){H.unbind("*"),q(),T();return}q(),H.unbind(),H("*",h=>{h.preventDefault();let u=H.getPressedKeyString();u.length==1&&u[0]=="esc"||c.value&&y.value>-1&&(v.value[y.value].hotKeys=u)})},{immediate:!0});const f=d=>{c.value=!0,B({message:"按ESC键或者点击空白处结束录入",type:"info"}),v.value[d].hotKeys=[],y.value=d},N=()=>{const d=[];v.value.forEach(({hotKeys:h})=>{d.push(h)}),O(d),x.value=!1},T=()=>{H.filter=()=>!0,v.value.forEach(({hotKeys:d,action:h})=>{d.length!=0&&H(d.join("+"),u=>{u.preventDefault(),h.call(null)})})},O=d=>{localStorage.setItem("legado_web_hotkeys",JSON.stringify(d))};function q(){try{const d=JSON.parse(localStorage.getItem("legado_web_hotkeys"));return!Array.isArray(d)||d.length==0?!1:(v.value.forEach((h,u)=>h.hotKeys=d[u]),!0)}catch{B({message:"快捷键配置错误",type:"error"}),localStorage.removeItem("legado_web_hotkeys")}return!1}return Ke(()=>{q()&&(x.value=!1)}),(d,h)=>{const u=le,J=he,Be=He;return a(),E(R,null,[_("div",Zt,[(a(!0),E(R,null,A(i(v),I=>(a(),w(u,{size:"large",key:I.name,onClick:I.action},{default:p(()=>[b(X(I.name),1)]),_:2},1032,["onClick"]))),128)),g(u,{size:"large",onClick:h[0]||(h[0]=()=>x.value=!0)},{default:p(()=>[b("快捷键")]),_:1})]),g(Be,{modelValue:i(x),"onUpdate:modelValue":h[1]||(h[1]=I=>K(x)?x.value=I:null),"show-close":!1,"before-close":V},{header:p(({titleClass:I,titleId:te})=>[_("div",eo,[_("div",{id:te,class:me(I)},[b(" 快捷键设置 "),i(c)?(a(),E("span",oo,[g(J,null,{default:p(()=>[b(" / 录入中 ")]),_:1})])):$("",!0)],10,to),g(u,{disabled:i(c),onClick:N,icon:i(Me)},{default:p(()=>[b("保存")]),_:1},8,["disabled","icon"])])]),default:p(()=>[_("div",no,[(a(!0),E(R,null,A(i(v),(I,te)=>(a(),E("div",{key:I.name,class:"hotkeys-item flex-space-between"},[_("span",ro,[g(J,null,{default:p(()=>[b(X(I.name),1)]),_:2},1024)]),_("div",so,[(a(!0),E(R,null,A(I.hotKeys,(oe,Ee)=>(a(),E("div",{key:oe},[_("kbd",null,X(oe),1),Ee+1<I.hotKeys.length?(a(),E("span",io,[g(J,null,{default:p(()=>[b("+")]),_:1})])):$("",!0)]))),128)),I.hotKeys.length==0?(a(),E("span",lo,"未设置")):$("",!0)]),g(u,{disabled:i(c),text:"",icon:i(_e),onClick:oe=>f(te)},{default:p(()=>[b("编辑")]),_:2},1032,["disabled","icon","onClick"])]))),128))])]),_:1},8,["modelValue"])],64)}}},co=D(ao,[["__scopeId","data-v-9fd45dad"]]);const uo={__name:"SourceTabForm",props:["config"],setup(e){const t=M(),{currentSource:o}=Y(t);return(s,r)=>{const n=Z,l=Fe,k=qe,m=ze,S=We,C=Ge,v=Qe,x=fe,c=be;return a(),w(c,{id:"source-edit"},{default:p(()=>[(a(!0),E(R,null,A(Object.values(e.config),({name:y,children:V})=>(a(),w(x,{label:y,key:y},{default:p(()=>[g(v,{"label-position":"right","label-width":"5em"},{default:p(()=>[(a(!0),E(R,null,A(V,({type:f,title:N,namespace:T,id:O,array:q,hint:d,required:h})=>(a(),w(C,{label:N,key:N,required:h},{default:p(()=>[f=="String"&&typeof T>"u"?(a(),w(n,{key:0,type:"textarea",modelValue:i(o)[O],"onUpdate:modelValue":u=>i(o)[O]=u,placeholder:d,autosize:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):$("",!0),f=="String"&&typeof T<"u"?(a(),w(n,{key:1,type:"textarea",modelValue:i(o)[T][O],"onUpdate:modelValue":u=>i(o)[T][O]=u,placeholder:d,autosize:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):$("",!0),f=="Boolean"?(a(),w(l,{key:2,modelValue:i(o)[O],"onUpdate:modelValue":u=>i(o)[O]=u},null,8,["modelValue","onUpdate:modelValue"])):$("",!0),f=="Number"?(a(),w(k,{key:3,modelValue:i(o)[O],"onUpdate:modelValue":u=>i(o)[O]=u,min:0},null,8,["modelValue","onUpdate:modelValue"])):$("",!0),f=="Array"?(a(),w(S,{key:4,modelValue:i(o)[O],"onUpdate:modelValue":u=>i(o)[O]=u},{default:p(()=>[(a(!0),E(R,null,A(q,(u,J)=>(a(),w(m,{value:J,key:u,label:u},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):$("",!0)]),_:2},1032,["label","required"]))),128))]),_:2},1024)]),_:2},1032,["label"]))),128))]),_:1})}}},po=D(uo,[["__scopeId","data-v-2cfb5302"]]),ho={base:{name:"基础",children:[{title:"源类型",id:"bookSourceType",type:"Array",array:["文本","音频","图片","文件"],required:!0},{title:"源域名",id:"bookSourceUrl",type:"String",hint:"通常填写网站主页,例: https://www.qidian.com",required:!0},{title:"源名称",id:"bookSourceName",type:"String",hint:"会显示在源列表",required:!0},{title:"源分组",id:"bookSourceGroup",type:"String",hint:"描述源的特征信息"},{title:"源注释",id:" Line truncated
名称2::链接2`},{title:"登录地址",id:"loginUrl",type:"String",hint:"填写网站登录网址,仅在需要登录的源有用"},{title:"登录界面",id:"loginUi",type:"String",hint:"自定义登录界面"},{title:"登录检测",id:"loginCheckJs",type:"String",hint:"登录检测js"},{title:"封面解密",id:"coverDecodeJs",type:"String",hint:"封面解密js"},{title:"请求头",id:"header",type:"String",hint:"客户端标识"},{title:"变量说明",id:"variableComment",type:"String",hint:"源变量说明"},{title:"并发率",id:"concurrentRate",type:"String",hint:"并发率"}]},list:{name:"列表",children:[{title:"列表规则",id:"ruleArticles",type:"String",hint:"规则结果为List<Element>"},{title:"翻页规则",id:"ruleNextPage",type:"String",hint:"下一页链接 规则结果为List<String>或String"},{title:"标题规则",id:"ruleTitle",type:"String",hint:"文章标题 规则结果为String"},{title:"时间规则",id:"rulePubDate",type:"String",hint:"文章发布时间 规则结果为String"},{title:"描述规则",id:"ruleDescription",type:"String",hint:"文章简要描述 规则结果为String"},{title:"图片规则",id:"ruleImage",type:"String",hint:"文章图片链接 规则结果为String"},{title:"链接规则",id:"ruleLink",type:"String",hint:"文章链接 规则结果为String"}]},webView:{name:"WebView",children:[{title:"内容规则",id:"ruleContent",type:"String",hint:"文章正文"},{title:"样式规则",id:"style",type:"String",hint:"文章正文样式 填写css"},{title:"注入规则",id:"injectJs",type:"String",hint:"注入网页的JavaScript"},{title:"黑名单",id:"contentBlacklist",type:"String",hint:"webView链接加载黑名单,英文逗号隔开"},{title:"白名单",id:"contentWhitelist",type:"String",hint:"webView链接加载白名单,英文逗号隔开"},{title:"链接拦截",id:"shouldOverrideUrlLoading",type:"String",hint:"填写js,变量url为当前资源链接,返回true拦截"}]},other:{name:"其他",children:[{title:"列表样式",id:"articleStyle",type:"Array",array:["默认","大图","双列"]},{title:"加载地址",id:"loadWithBaseUrl",type:"Boolean"},{title:"启用JS",id:"enableJs",type:"Boolean"},{title:"启用",id:"enabled",type:"Boolean"},{title:"Cookie",id:"enabledCookieJar",type:"Boolean"},{title:"单URL",id:"singleUrl",type:"Boolean"},{title:"排序编号",id:"customOrder",type:"Number"}]}};const _o={class:"editor"},mo={__name:"SourceEditor",setup(e){let t;return/bookSource/i.test(location.href)?(t=ho,document.title="书源管理"):(t=go,document.title="订阅源管理"),(o,s)=>{const r=po,n=co,l=Yt;return a(),E("div",_o,[g(r,{class:"left",config:i(t)},null,8,["config"]),g(n),g(l,{class:"right"})])}}},pe=D(mo,[["__scopeId","data-v-5fe2b79d"]]),Ce=[{path:"/bookSource",name:"book-home",component:pe},{path:"/rssSource",name:"rss-home",component:pe}];se({history:ie(),routes:Ce});const xe=se({history:ie(),routes:ke.concat(Ce)});xe.afterEach(e=>{e.name=="shelf"&&(document.title="书架")});Xe(ot).use(Wt).use(xe).mount("#app");ne(()=>import("./config-ccc7fe24.js"),["./config-ccc7fe24.js","./vendor-260e64da.js","./vendor-31f92e7c.css","./config-811f2a0b.css"],import.meta.url);export{j as A,D as _,yo as u};
名称2::链接2`},{title:"登录地址",id:"loginUrl",type:"String",hint:"填写网站登录网址,仅在需要登录的源有用"},{title:"登录界面",id:"loginUi",type:"String",hint:"自定义登录界面"},{title:"登录检测",id:"loginCheckJs",type:"String",hint:"登录检测js"},{title:"封面解密",id:"coverDecodeJs",type:"String",hint:"封面解密js"},{title:"请求头",id:"header",type:"String",hint:"客户端标识"},{title:"变量说明",id:"variableComment",type:"String",hint:"源变量说明"},{title:"并发率",id:"concurrentRate",type:"String",hint:"并发率"}]},list:{name:"列表",children:[{title:"列表规则",id:"ruleArticles",type:"String",hint:"规则结果为List<Element>"},{title:"翻页规则",id:"ruleNextPage",type:"String",hint:"下一页链接 规则结果为List<String>或String"},{title:"标题规则",id:"ruleTitle",type:"String",hint:"文章标题 规则结果为String"},{title:"时间规则",id:"rulePubDate",type:"String",hint:"文章发布时间 规则结果为String"},{title:"描述规则",id:"ruleDescription",type:"String",hint:"文章简要描述 规则结果为String"},{title:"图片规则",id:"ruleImage",type:"String",hint:"文章图片链接 规则结果为String"},{title:"链接规则",id:"ruleLink",type:"String",hint:"文章链接 规则结果为String"}]},webView:{name:"WebView",children:[{title:"内容规则",id:"ruleContent",type:"String",hint:"文章正文"},{title:"样式规则",id:"style",type:"String",hint:"文章正文样式 填写css"},{title:"注入规则",id:"injectJs",type:"String",hint:"注入网页的JavaScript"},{title:"黑名单",id:"contentBlacklist",type:"String",hint:"webView链接加载黑名单,英文逗号隔开"},{title:"白名单",id:"contentWhitelist",type:"String",hint:"webView链接加载白名单,英文逗号隔开"},{title:"链接拦截",id:"shouldOverrideUrlLoading",type:"String",hint:"填写js,变量url为当前资源链接,返回true拦截"}]},other:{name:"其他",children:[{title:"列表样式",id:"articleStyle",type:"Array",array:["默认","大图","双列"]},{title:"加载地址",id:"loadWithBaseUrl",type:"Boolean"},{title:"启用JS",id:"enableJs",type:"Boolean"},{title:"启用",id:"enabled",type:"Boolean"},{title:"Cookie",id:"enabledCookieJar",type:"Boolean"},{title:"单URL",id:"singleUrl",type:"Boolean"},{title:"排序编号",id:"customOrder",type:"Number"}]}};const _o={class:"editor"},mo={__name:"SourceEditor",setup(e){let t;return/bookSource/i.test(location.href)?(t=ho,document.title="书源管理"):(t=go,document.title="订阅源管理"),(o,s)=>{const r=po,n=co,l=Yt;return a(),E("div",_o,[g(r,{class:"left",config:i(t)},null,8,["config"]),g(n),g(l,{class:"right"})])}}},pe=D(mo,[["__scopeId","data-v-5fe2b79d"]]),Ce=[{path:"/bookSource",name:"book-home",component:pe},{path:"/rssSource",name:"rss-home",component:pe}];se({history:ie(),routes:Ce});const xe=se({history:ie(),routes:ke.concat(Ce)});xe.afterEach(e=>{e.name=="shelf"&&(document.title="书架")});Xe(ot).use(Wt).use(xe).mount("#app");ne(()=>import("./config-23ee7901.js"),["./config-23ee7901.js","./vendor-f0c50eaf.js","./vendor-31f92e7c.css","./config-811f2a0b.css"],import.meta.url);export{j as A,D as _,yo as u};
@@ -1 +1 @@
import{u as L}from"./index-6758c83f.js";import{z as p,K as w,a5 as D,ae as v,u as Y}from"./vendor-260e64da.js";const y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function z(t,i,e,a){let o=t<12?"AM":"PM";return a&&(o=o.split("").reduce((n,l)=>n+=`${l}.`,"")),e?o.toLowerCase():o}function $(t,i,e={}){var a;const o=t.getFullYear(),n=t.getMonth(),l=t.getDate(),s=t.getHours(),r=t.getMinutes(),g=t.getSeconds(),M=t.getMilliseconds(),S=t.getDay(),c=(a=e.customMeridiem)!=null?a:z,d={YY:()=>String(o).slice(-2),YYYY:()=>o,M:()=>n+1,MM:()=>`${n+1}`.padStart(2,"0"),MMM:()=>t.toLocaleDateString(e.locales,{month:"short"}),MMMM:()=>t.toLocaleDateString(e.locales,{month:"long"}),D:()=>String(l),DD:()=>`${l}`.padStart(2,"0"),H:()=>String(s),HH:()=>`${s}`.padStart(2,"0"),h:()=>`${s%12||12}`.padStart(1,"0"),hh:()=>`${s%12||12}`.padStart(2,"0"),m:()=>String(r),mm:()=>`${r}`.padStart(2,"0"),s:()=>String(g),ss:()=>`${g}`.padStart(2,"0"),SSS:()=>`${M}`.padStart(3,"0"),d:()=>S,dd:()=>t.toLocaleDateString(e.locales,{weekday:"narrow"}),ddd:()=>t.toLocaleDateString(e.locales,{weekday:"short"}),dddd:()=>t.toLocaleDateString(e.locales,{weekday:"long"}),A:()=>c(s,r),AA:()=>c(s,r,!1,!0),a:()=>c(s,r,!0),aa:()=>c(s,r,!0,!0)};return i.replace(y,(u,m)=>{var f,h;return(h=m??((f=d[u])==null?void 0:f.call(d)))!=null?h:u})}const A=t=>/,\s*\{/.test(t)||!(t.startsWith("http")||t.startsWith("data:")||t.startsWith("blob:"));function W(t){return location.origin+"/image?path="+encodeURIComponent(t)+"&url="+encodeURIComponent(sessionStorage.getItem("bookUrl"))+"&width="+L().config.readWidth}const U=t=>{let i=new Date().getTime(),e=Math.floor((i-t)/1e3),a="";return e<=30?a="刚刚":e<60?a=e+"秒前":e<3600?a=Math.floor(e/60)+"分钟前":e<86400?a=Math.floor(e/3600)+"小时前":e<2592e3?a=Math.floor(e/86400)+"天前":a=$(new Date(t),"YYYY-MM-DD"),a},b='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path fill="currentColor" d="M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"/></svg>';const x=(t,i,e=b)=>{const a=p(!1);let o=null;const n=()=>a.value=!1,l=()=>a.value=!0;w(a,r=>{if(!r)return o==null?void 0:o.close();o=v.service({target:Y(t),spinner:e,text:i,lock:!0,background:"rgba(0, 0, 0, 0)"})});const s=r=>{if(!(r instanceof Promise))throw TypeError("loadingWrapper argument must be Promise");return l(),r.finally(n)};return D(()=>{n()}),{isLoading:a,showLoading:l,closeLoading:n,loadingWrapper:s}};export{U as d,W as g,A as i,x as u};
import{u as L}from"./index-a4be7e77.js";import{z as p,K as w,a5 as D,ae as v,u as Y}from"./vendor-f0c50eaf.js";const y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function z(t,i,e,a){let o=t<12?"AM":"PM";return a&&(o=o.split("").reduce((n,l)=>n+=`${l}.`,"")),e?o.toLowerCase():o}function $(t,i,e={}){var a;const o=t.getFullYear(),n=t.getMonth(),l=t.getDate(),s=t.getHours(),r=t.getMinutes(),g=t.getSeconds(),M=t.getMilliseconds(),S=t.getDay(),c=(a=e.customMeridiem)!=null?a:z,d={YY:()=>String(o).slice(-2),YYYY:()=>o,M:()=>n+1,MM:()=>`${n+1}`.padStart(2,"0"),MMM:()=>t.toLocaleDateString(e.locales,{month:"short"}),MMMM:()=>t.toLocaleDateString(e.locales,{month:"long"}),D:()=>String(l),DD:()=>`${l}`.padStart(2,"0"),H:()=>String(s),HH:()=>`${s}`.padStart(2,"0"),h:()=>`${s%12||12}`.padStart(1,"0"),hh:()=>`${s%12||12}`.padStart(2,"0"),m:()=>String(r),mm:()=>`${r}`.padStart(2,"0"),s:()=>String(g),ss:()=>`${g}`.padStart(2,"0"),SSS:()=>`${M}`.padStart(3,"0"),d:()=>S,dd:()=>t.toLocaleDateString(e.locales,{weekday:"narrow"}),ddd:()=>t.toLocaleDateString(e.locales,{weekday:"short"}),dddd:()=>t.toLocaleDateString(e.locales,{weekday:"long"}),A:()=>c(s,r),AA:()=>c(s,r,!1,!0),a:()=>c(s,r,!0),aa:()=>c(s,r,!0,!0)};return i.replace(y,(u,m)=>{var f,h;return(h=m??((f=d[u])==null?void 0:f.call(d)))!=null?h:u})}const A=t=>/,\s*\{/.test(t)||!(t.startsWith("http")||t.startsWith("data:")||t.startsWith("blob:"));function W(t){return location.origin+"/image?path="+encodeURIComponent(t)+"&url="+encodeURIComponent(sessionStorage.getItem("bookUrl"))+"&width="+L().config.readWidth}const U=t=>{let i=new Date().getTime(),e=Math.floor((i-t)/1e3),a="";return e<=30?a="刚刚":e<60?a=e+"秒前":e<3600?a=Math.floor(e/60)+"分钟前":e<86400?a=Math.floor(e/3600)+"小时前":e<2592e3?a=Math.floor(e/86400)+"天前":a=$(new Date(t),"YYYY-MM-DD"),a},b='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path fill="currentColor" d="M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"/></svg>';const x=(t,i,e=b)=>{const a=p(!1);let o=null;const n=()=>a.value=!1,l=()=>a.value=!0;w(a,r=>{if(!r)return o==null?void 0:o.close();o=v.service({target:Y(t),spinner:e,text:i,lock:!0,background:"rgba(0, 0, 0, 0)"})});const s=r=>{if(!(r instanceof Promise))throw TypeError("loadingWrapper argument must be Promise");return l(),r.finally(n)};return D(()=>{n()}),{isLoading:a,showLoading:l,closeLoading:n,loadingWrapper:s}};export{U as d,W as g,A as i,x as u};
@@ -2,7 +2,7 @@ function ru(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.leng
* vue-router v4.2.5
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/const oo=typeof window<"u";function Ry(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ue=Object.assign;function za(e,t){const n={};for(const r in t){const o=t[r];n[r]=hn(o)?o.map(e):e(o)}return n}const Qo=()=>{},hn=Array.isArray,ky=/\/$/,Ny=e=>e.replace(ky,"");function Da(e,t,n="/"){let r,o={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(r=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),o=e(s)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=By(r??t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:i}}function Ly(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ef(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function My(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&vo(t.matched[r],n.matched[o])&&Th(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function vo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Th(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Fy(e[n],t[n]))return!1;return!0}function Fy(e,t){return hn(e)?tf(e,t):hn(t)?tf(t,e):e===t}function tf(e,t){return hn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function By(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,i,a;for(i=0;i<r.length;i++)if(a=r[i],a!==".")if(a==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var gs;(function(e){e.pop="pop",e.push="push"})(gs||(gs={}));var Zo;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Zo||(Zo={}));function zy(e){if(!e)if(oo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ny(e)}const Dy=/^[^#]+#/;function jy(e,t){return e.replace(Dy,"#")+t}function Hy(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const na=()=>({left:window.pageXOffset,top:window.pageYOffset});function Vy(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Hy(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function nf(e,t){return(history.state?history.state.position-t:-1)+e}const Ol=new Map;function Ky(e,t){Ol.set(e,t)}function qy(e){const t=Ol.get(e);return Ol.delete(e),t}let Uy=()=>location.protocol+"//"+location.host;function xh(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),ef(l,"")}return ef(n,e)+r+o}function Wy(e,t,n,r){let o=[],s=[],i=null;const a=({state:p})=>{const v=xh(e,location),m=n.value,d=t.value;let y=0;if(p){if(n.value=v,t.value=p,i&&i===m){i=null;return}y=d?p.position-d.position:0}else r(v);o.forEach(g=>{g(n.value,m,{delta:y,type:gs.pop,direction:y?y>0?Zo.forward:Zo.back:Zo.unknown})})};function l(){i=n.value}function u(p){o.push(p);const v=()=>{const m=o.indexOf(p);m>-1&&o.splice(m,1)};return s.push(v),v}function c(){const{history:p}=window;p.state&&p.replaceState(Ue({},p.state,{scroll:na()}),"")}function f(){for(const p of s)p();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function rf(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?na():null}}function Gy(e){const{history:t,location:n}=window,r={value:xh(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,u,c){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Uy()+e+l;try{t[c?"replaceState":"pushState"](u,"",p),o.value=u}catch(v){console.error(v),n[c?"replace":"assign"](p)}}function i(l,u){const c=Ue({},t.state,rf(o.value.back,l,o.value.forward,!0),u,{position:o.value.position});s(l,c,!0),r.value=l}function a(l,u){const c=Ue({},o.value,t.state,{forward:l,scroll:na()});s(c.current,c,!0);const f=Ue({},rf(r.value,l,null),{position:c.position+1},u);s(l,f,!1),r.value=l}return{location:r,state:o,push:a,replace:i}}function Yy(e){e=zy(e);const t=Gy(e),n=Wy(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=Ue({location:"",base:e,go:r,createHref:jy.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerLine truncated
*/const oo=typeof window<"u";function Ry(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ue=Object.assign;function za(e,t){const n={};for(const r in t){const o=t[r];n[r]=hn(o)?o.map(e):e(o)}return n}const Qo=()=>{},hn=Array.isArray,ky=/\/$/,Ny=e=>e.replace(ky,"");function Da(e,t,n="/"){let r,o={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(r=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),o=e(s)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=By(r??t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:i}}function Ly(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ef(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function My(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&vo(t.matched[r],n.matched[o])&&Th(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function vo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Th(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Fy(e[n],t[n]))return!1;return!0}function Fy(e,t){return hn(e)?tf(e,t):hn(t)?tf(t,e):e===t}function tf(e,t){return hn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function By(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,i,a;for(i=0;i<r.length;i++)if(a=r[i],a!==".")if(a==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var gs;(function(e){e.pop="pop",e.push="push"})(gs||(gs={}));var Zo;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Zo||(Zo={}));function zy(e){if(!e)if(oo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ny(e)}const Dy=/^[^#]+#/;function jy(e,t){return e.replace(Dy,"#")+t}function Hy(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const na=()=>({left:window.pageXOffset,top:window.pageYOffset});function Vy(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Hy(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function nf(e,t){return(history.state?history.state.position-t:-1)+e}const Ol=new Map;function Ky(e,t){Ol.set(e,t)}function qy(e){const t=Ol.get(e);return Ol.delete(e),t}let Uy=()=>location.protocol+"//"+location.host;function xh(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),ef(l,"")}return ef(n,e)+r+o}function Wy(e,t,n,r){let o=[],s=[],i=null;const a=({state:p})=>{const v=xh(e,location),m=n.value,d=t.value;let y=0;if(p){if(n.value=v,t.value=p,i&&i===m){i=null;return}y=d?p.position-d.position:0}else r(v);o.forEach(g=>{g(n.value,m,{delta:y,type:gs.pop,direction:y?y>0?Zo.forward:Zo.back:Zo.unknown})})};function l(){i=n.value}function u(p){o.push(p);const v=()=>{const m=o.indexOf(p);m>-1&&o.splice(m,1)};return s.push(v),v}function c(){const{history:p}=window;p.state&&p.replaceState(Ue({},p.state,{scroll:na()}),"")}function f(){for(const p of s)p();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function rf(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?na():null}}function Gy(e){const{history:t,location:n}=window,r={value:xh(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,u,c){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Uy()+e+l;try{t[c?"replaceState":"pushState"](u,"",p),o.value=u}catch(v){console.error(v),n[c?"replace":"assign"](p)}}function i(l,u){const c=Ue({},t.state,rf(o.value.back,l,o.value.forward,!0),u,{position:o.value.position});s(l,c,!0),r.value=l}function a(l,u){const c=Ue({},o.value,t.state,{forward:l,scroll:na()});s(c.current,c,!0);const f=Ue({},rf(r.value,l,null),{position:c.position+1},u);s(l,f,!1),r.value=l}return{location:r,state:o,push:a,replace:i}}function Yy(e){e=zy(e);const t=Gy(e),n=Wy(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=Ue({location:"",base:e,go:r,createHref:jy.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerLine truncated
(?:
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
@@ -13,19 +13,19 @@ function ru(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.leng
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),s=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),a=new RegExp("^"+o+"$"),l=function(O){return O&&O.exact?s:new RegExp("(?:"+t(O)+n+t(O)+")|(?:"+t(O)+o+t(O)+")","g")};l.v4=function(E){return E&&E.exact?i:new RegExp(""+t(E)+n+t(E),"g")},l.v6=function(E){return E&&E.exact?a:new RegExp(""+t(E)+o+t(E),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,p=l.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",d="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",g='(?:[/?#][^\\s"]*)?',w="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+p+"|"+v+m+d+")"+y+g;return ti=new RegExp("(?:^"+w+"$)","i"),ti},Ad={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Wo={integer:function(t){return Wo.number(t)&&parseInt(t,10)===t},float:function(t){return Wo.number(t)&&!Wo.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Wo.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Ad.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Ex())},hex:function(t){return typeof t=="string"&&!!t.match(Ad.hex)}},Cx=function(t,n,r,o,s){if(t.required&&n===void 0){Uv(t,n,r,o,s);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;i.indexOf(a)>-1?Wo[a](n)||o.push(Ht(s.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&o.push(Ht(s.messages.types[a],t.fullField,t.type))},Ox=function(t,n,r,o,s){var i=typeof t.len=="number",a=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,p=typeof n=="number",v=typeof n=="string",m=Array.isArray(n);if(p?f="number":v?f="string":m&&(f="array"),!f)return!1;m&&(c=n.length),v&&(c=n.replace(u,"_").length),i?c!==t.len&&o.push(Ht(s.messages[f].len,t.fullField,t.len)):a&&!l&&c<t.min?o.push(Ht(s.messages[f].min,t.fullField,t.min)):l&&!a&&c>t.max?o.push(Ht(s.messages[f].max,t.fullField,t.max)):a&&l&&(c<t.min||c>t.max)&&o.push(Ht(s.messages[f].range,t.fullField,t.min,t.max))},eo="enum",Tx=function(t,n,r,o,s){t[eo]=Array.isArray(t[eo])?t[eo]:[],t[eo].indexOf(n)===-1&&o.push(Ht(s.messages[eo],t.fullField,t[eo].join(", ")))},xx=function(t,n,r,o,s){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Ht(s.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(Ht(s.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Be={required:Uv,whitespace:Sx,type:Cx,range:Ox,enum:Tx,pattern:xx},Ax=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(gt(n,"string")&&!t.required)return r();Be.required(t,n,o,i,s,"string"),gt(n,"string")||(Be.type(t,n,o,i,s),Be.range(t,n,o,i,s),Be.pattern(t,n,o,i,s),t.whitespace===!0&&Be.whitespace(t,n,o,i,s))}r(i)},Px=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(gt(n)&&!t.required)return r();Be.required(t,n,o,i,s),n!==void 0&&Be.type(t,n,o,i,s)}r(i)},$x=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),gt(n)&&!t.required)return r();Be.required(t,n,o,i,s),n!==void 0&&(Be.type(t,n,o,i,s),Be.range(t,n,o,i,s))}r(i)},Ix=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(gt(n)&&!t.required)return r();Be.required(t,n,o,i,s),n!==void 0&&Be.type(t,n,o,i,s)}r(i)},Rx=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(gt(n)&&!t.required)return r();Be.required(t,n,o,i,s),gt(n)||Be.type(t,n,o,i,s)}r(i)},kx=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(gt(n)&&!t.required)return r();Be.required(t,n,o,i,s),n!==void 0&&(Be.type(t,n,o,i,s),Be.range(t,n,o,i,s))}r(i)},Nx=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(gt(n)&&!t.required)return r();Be.required(t,n,o,i,s),n!==void 0&&(Be.type(t,n,o,i,s),Be.range(t,n,o,i,s))}r(i)},Lx=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(n==null&&!t.required)return r();Be.required(t,n,o,i,s,"array"),n!=null&&(Be.type(t,n,o,i,s),Be.range(t,n,o,i,s))}r(i)},Mx=function(t,n,r,o,s){var Line truncated
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),s=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),a=new RegExp("^"+o+"$"),l=function(O){return O&&O.exact?s:new RegExp("(?:"+t(O)+n+t(O)+")|(?:"+t(O)+o+t(O)+")","g")};l.v4=function(E){return E&&E.exact?i:new RegExp(""+t(E)+n+t(E),"g")},l.v6=function(E){return E&&E.exact?a:new RegExp(""+t(E)+o+t(E),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,p=l.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",d="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",g='(?:[/?#][^\\s"]*)?',w="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+p+"|"+v+m+d+")"+y+g;return ti=new RegExp("(?:^"+w+"$)","i"),ti},Ad={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Wo={integer:function(t){return Wo.number(t)&&parseInt(t,10)===t},float:function(t){return Wo.number(t)&&!Wo.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Wo.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Ad.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Cx())},hex:function(t){return typeof t=="string"&&!!t.match(Ad.hex)}},Ox=function(t,n,r,o,s){if(t.required&&n===void 0){Uv(t,n,r,o,s);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;i.indexOf(a)>-1?Wo[a](n)||o.push(Ht(s.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&o.push(Ht(s.messages.types[a],t.fullField,t.type))},Tx=function(t,n,r,o,s){var i=typeof t.len=="number",a=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,p=typeof n=="number",v=typeof n=="string",m=Array.isArray(n);if(p?f="number":v?f="string":m&&(f="array"),!f)return!1;m&&(c=n.length),v&&(c=n.replace(u,"_").length),i?c!==t.len&&o.push(Ht(s.messages[f].len,t.fullField,t.len)):a&&!l&&c<t.min?o.push(Ht(s.messages[f].min,t.fullField,t.min)):l&&!a&&c>t.max?o.push(Ht(s.messages[f].max,t.fullField,t.max)):a&&l&&(c<t.min||c>t.max)&&o.push(Ht(s.messages[f].range,t.fullField,t.min,t.max))},eo="enum",xx=function(t,n,r,o,s){t[eo]=Array.isArray(t[eo])?t[eo]:[],t[eo].indexOf(n)===-1&&o.push(Ht(s.messages[eo],t.fullField,t[eo].join(", ")))},Ax=function(t,n,r,o,s){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Ht(s.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(Ht(s.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Be={required:Uv,whitespace:Ex,type:Ox,range:Tx,enum:xx,pattern:Ax},Px=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(gt(n,"string")&&!t.required)return r();Be.required(t,n,o,i,s,"string"),gt(n,"string")||(Be.type(t,n,o,i,s),Be.range(t,n,o,i,s),Be.pattern(t,n,o,i,s),t.whitespace===!0&&Be.whitespace(t,n,o,i,s))}r(i)},$x=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(gt(n)&&!t.required)return r();Be.required(t,n,o,i,s),n!==void 0&&Be.type(t,n,o,i,s)}r(i)},Ix=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),gt(n)&&!t.required)return r();Be.required(t,n,o,i,s),n!==void 0&&(Be.type(t,n,o,i,s),Be.range(t,n,o,i,s))}r(i)},Rx=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(gt(n)&&!t.required)return r();Be.required(t,n,o,i,s),n!==void 0&&Be.type(t,n,o,i,s)}r(i)},kx=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(gt(n)&&!t.required)return r();Be.required(t,n,o,i,s),gt(n)||Be.type(t,n,o,i,s)}r(i)},Nx=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(gt(n)&&!t.required)return r();Be.required(t,n,o,i,s),n!==void 0&&(Be.type(t,n,o,i,s),Be.range(t,n,o,i,s))}r(i)},Lx=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(gt(n)&&!t.required)return r();Be.required(t,n,o,i,s),n!==void 0&&(Be.type(t,n,o,i,s),Be.range(t,n,o,i,s))}r(i)},Mx=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(n==null&&!t.required)return r();Be.required(t,n,o,i,s,"array"),n!=null&&(Be.type(t,n,o,i,s),Be.range(t,n,o,i,s))}r(i)},Fx=function(t,n,r,o,s){var Line truncated
height:0 !important;
visibility:hidden !important;
${a1()?"":"overflow:hidden !important;"}
${l1()?"":"overflow:hidden !important;"}
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
`,Jx=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Xx(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Jx.map(i=>`${i}:${t.getPropertyValue(i)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}function $d(e,t=1,n){var r;tn||(tn=document.createElement("textarea"),document.body.appendChild(tn));const{paddingSize:o,borderSize:s,boxSizing:i,contextStyle:a}=Xx(e);tn.setAttribute("style",`${a};${Yx}`),tn.value=e.value||e.placeholder||"";let l=tn.scrollHeight;const u={};i==="border-box"?l=l+s:i==="content-box"&&(l=l-o),tn.value="";const c=tn.scrollHeight-o;if(He(t)){let f=c*t;i==="border-box"&&(f=f+o+s),l=Math.max(f,l),u.minHeight=`${f}px`}if(He(n)){let f=c*n;i==="border-box"&&(f=f+o+s),l=Math.min(f,l)}return u.height=`${l}px`,(r=tn.parentNode)==null||r.removeChild(tn),tn=void 0,u}const Qx=Fe({id:{type:String,default:void 0},size:zs,disabled:Boolean,modelValue:{type:Ce([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Ce([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Lt},prefixIcon:{type:Lt},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Ce([Object,Array,String]),default:()=>ha({})},autofocus:{type:Boolean,default:!1}}),Zx={[Je]:e=>xe(e),input:e=>xe(e),change:e=>xe(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},e3=["role"],t3=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],n3=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],r3=ie({name:"ElInput",inheritAttrs:!1}),o3=ie({...r3,props:Qx,emits:Zx,setup(e,{expose:t,emit:n}){const r=e,o=y0(),s=Wr(),i=C(()=>{const z={};return r.containerRole==="combobox"&&(z["aria-haspopup"]=o["aria-haspopup"],z["aria-owns"]=o["aria-owns"],z["aria-expanded"]=o["aria-expanded"]),z}),a=C(()=>[r.type==="textarea"?y.b():d.b(),d.m(v.value),d.is("disabled",m.value),d.is("exceed",ze.value),{[d.b("group")]:s.prepend||s.append,[d.bm("group","append")]:s.append,[d.bm("group","prepend")]:s.prepend,[d.m("prefix")]:s.prefix||r.prefixIcon,[d.m("suffix")]:s.suffix||r.suffixIcon||r.clearable||r.showPassword,[d.bm("suffix","password-clear")]:Ne.value&&Oe.value},o.class]),l=C(()=>[d.e("wrapper"),d.is("focus",F.value)]),u=CT({excludeKeys:C(()=>Object.keys(i.value))}),{form:c,formItem:f}=Er(),{inputId:p}=ya(r,{formItemContext:f}),v=mn(),m=No(),d=Re("input"),y=Re("textarea"),g=On(),w=On(),E=H(!1),O=H(!1),I=H(!1),R=H(),T=On(r.inputStyle),_=C(()=>g.value||w.value),{wrapperRef:k,isFocused:F,handleFocus:j,handleBlur:M}=J4(_,{afterBlur(){var z;r.validateEvent&&((z=f==null?void 0:f.validate)==null||z.call(f,"blur").catch(re=>void 0))}}),x=C(()=>{var z;return(z=c==null?void 0:c.statusIcon)!=null?z:!1}),$=C(()=>(f==null?void 0:f.validateState)||""),V=C(()=>$.value&&bv[$.value]),W=C(()=>I.value?lT:wO),B=C(()=>[o.style,r.inputStyle]),se=C(()=>[r.inputStyle,T.value,{resize:r.resize}]),we=C(()=>jn(r.modelValue)?"":String(r.modelValue)),Ne=C(()=>r.clearable&&!m.value&&!r.readonly&&!!we.value&&(F.value||E.value)),Oe=C(()=>r.showPassword&&!m.value&&!r.readonly&&!!we.value&&(!!we.value||F.value)),Ae=C(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!m.value&&!r.readonly&&!r.showPassword),Ke=C(()=>we.value.length),ze=C(()=>!!Ae.value&&Ke.value>Number(u.value.maxlength)),Ge=C(()=>!!s.suffix||!!r.suffixIcon||Ne.value||r.showPassword||Ae.value||!!$.value&&x.value),[$e,A]=U4(g);wr(w,z=>{if(te(),!Ae.value||r.resize!=="both")return;const re=z[0],{width:_e}=re.contentRect;R.value={right:`calc(100% - ${_e+15+6}px)`}});const q=()=>{const{type:z,autosize:re}=r;if(!(!st||z!=="textarea"||!w.value))if(re){const _e=ke(re)?re.minRows:void 0,Ie=ke(re)?re.maxRows:void 0,qe=$d(w.value,_e,Ie);T.value={overflowY:"hidden",...qe},Le(()= Line truncated
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&EI[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},op=Symbol("internals");function Ko(e){return e&&String(e).trim().toLowerCase()}function _i(e){return e===!1||e==null?e:U.isArray(e)?e.map(_i):String(e)}function OI(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const TI=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function nl(e,t,n,r,o){if(U.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!U.isString(t)){if(U.isString(r))return t.indexOf(r)!==-1;if(U.isRegExp(r))return r.test(t)}}function xI(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function AI(e,t){const n=U.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}class Ta{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,l,u){const c=Ko(l);if(!c)throw new Error("header name must be a non-empty string");const f=U.findKey(o,c);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||l]=_i(a))}const i=(a,l)=>U.forEach(a,(u,c)=>s(u,c,l));return U.isPlainObject(t)||t instanceof this.constructor?i(t,n):U.isString(t)&&(t=t.trim())&&!TI(t)?i(CI(t),n):t!=null&&s(n,t,r),this}get(t,n){if(t=Ko(t),t){const r=U.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return OI(o);if(U.isFunction(n))return n.call(this,o,r);if(U.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ko(t),t){const r=U.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||nl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=Ko(i),i){const a=U.findKey(r,i);a&&(!n||nl(r,r[a],a,n))&&(delete r[a],o=!0)}}return U.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||nl(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return U.forEach(this,(o,s)=>{const i=U.findKey(r,s);if(i){n[i]=_i(o),delete n[s];return}const a=t?xI(s):String(s).trim();a!==s&&delete n[s],n[a]=_i(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return U.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&U.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[op]=this[op]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=Ko(i);r[a]||(AI(o,i),r[a]=!0)}return U.isArray(t)?t.forEach(s):s(t),this}}Ta.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);U.reduceDescriptors(Ta.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});U.freezeMethods(Ta);const Hn=Ta;function rl(e,t){const n=this||cc,r=t||n,o=Hn.from(r.headers);let s=r.data;return U.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function zm(e){return!!(e&&e.__CANCEL__)}function Hs(e,t,n){je.call(this,e??"canceled",je.ERR_CANCELED,t,n),this.name="CanceledError"}U.inherits(Hs,je,{__CANCEL__:!0});function PI(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new je("Request failed with status code "+n.status,[je.ERR_BAD_REQUEST,je.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const $I=ln.isStandardBrowserEnv?function(){return{write:function(n,r,o,s,i,a){const l=[];l.push(n+"="+encodeURIComponent(r)),U.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),U.isString(s)&&l.push("path="+s),U.isString(i)&&l.push("domain="+i),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function II(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function RI(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Dm(e,t){return e&&!II(t)?RI(e,t):t}const kI=ln.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const a=U.isString(i)?o(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function NI(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function LI(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[s];i||(i=u),n[o]=l,r[o]=u;let f=s,p=0;for(;f!==o;)p+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),u-i<t)return;const v=c&&u-c;return v?Math.round(p*1e3/v):void 0}}function sp(e,t){let n=0;const r=LI(50,250);return o=>{const s=o.loaded,i=o.lengthComputable?o.total:void 0,a=s-n,l=r(a),u=s<=i;n=s;const c={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:l||void 0,estimated:l&&i&&u?(i-s)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const MI=typeof XMLHttpRequest<"u",FI=MI&&function(e){return new Promise(function(n,r){let o=e.data;const s=Hn.from(e.headers).normalize(),i=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}U.isFormData(o)&&(ln.isStandardBrowserEnv||ln.isStandardBrowserWebWorkerEnv?s.setContentType(!1):s.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(v+":"+m))}const c=Dm(e.baseURL,e.url);u.open(e.method.toUpperCase(),Mm(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const v=Hn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),d={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:v,config:e,request:u};PI(function(g){n(g),l()},function(g){r(g),l()},d),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new je("Request aborted",je.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new je("Network Error",je.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const d=e.transitional||Fm;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new je(m,d.clarifyTimeoutError?je.ETIMEDOUT:je.ECONNABORTED,e,u)),u=null},ln.isStandardBrowserEnv){const v=(e.withCredentials||kI(c))&&e.xsrfCookieName&&$I.read(e.xsrfCookieName);v&&s.set(e.xsrfHeaderName,v)}o===void 0&&s.setContentType(null),"setRequest Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var no={FRONT:"FRONT",BEHIND:"BEHIND"},Pr={INIT:"INIT",FIXED:"FIXED",DYNAMIC:"DYNAMIC"},fp=2,XI=function(){function e(t,n){VI(this,e),this.init(t,n)}return KI(e,[{key:"init",value:function(n,r){this.param=n,this.callUpdate=r,this.sizes=new Map,this.firstRangeTotalSize=0,this.firstRangeAverageSize=0,this.lastCalcIndex=0,this.fixedSizeValue=0,this.calcType=Pr.INIT,this.offset=0,this.direction="",this.range=Object.create(null),n&&this.checkRange(0,n.keeps-1)}},{key:"destroy",value:function(){this.init(null,null)}},{key:"getRange",value:function(){var n=Object.create(null);return n.start=this.range.start,n.end=this.range.end,n.padFront=this.range.padFront,n.padBehind=this.range.padBehind,n}},{key:"isBehind",value:function(){return this.direction===no.BEHIND}},{key:"isFront",value:function(){return this.direction===no.FRONT}},{key:"getOffset",value:function(n){return(n<1?0:this.getIndexOffset(n))+this.param.slotHeaderSize}},{key:"updateParam",value:function(n,r){var o=this;this.param&&n in this.param&&(n==="uniqueIds"&&this.sizes.forEach(function(s,i){r.includes(i)||o.sizes.delete(i)}),this.param[n]=r)}},{key:"saveSize",value:function(n,r){this.sizes.set(n,r),this.calcType===Pr.INIT?(this.fixedSizeValue=r,this.calcType=Pr.FIXED):this.calcType===Pr.FIXED&&this.fixedSizeValue!==r&&(this.calcType=Pr.DYNAMIC,delete this.fixedSizeValue),this.calcType!==Pr.FIXED&&typeof this.firstRangeTotalSize<"u"&&(this.sizes.size<Math.min(this.param.keeps,this.param.uniqueIds.length)?(this.firstRangeTotalSize=UI(this.sizes.values()).reduce(function(o,s){return o+s},0),this.firstRangeAverageSize=Math.round(this.firstRangeTotalSize/this.sizes.size)):delete this.firstRangeTotalSize)}},{key:"handleDataSourcesChange",value:function(){var n=this.range.start;this.isFront()?n=n-fp:this.isBehind()&&(n=n+fp),n=Math.max(n,0),this.updateRange(this.range.start,this.getEndByStart(n))}},{key:"handleSlotSizeChange",value:function(){this.handleDataSourcesChange()}},{key:"handleScroll",value:function(n){this.direction=n<this.offset?no.FRONT:no.BEHIND,this.offset=n,this.param&&(this.direction===no.FRONT?this.handleFront():this.direction===no.BEHIND&&this.handleBehind())}},{key:"handleFront",value:function(){var n=this.getScrollOvers();if(!(n>this.range.start)){var r=Math.max(n-this.param.buffer,0);this.checkRange(r,this.getEndByStart(r))}}},{key:"handleBehind",value:function(){var n=this.getScrollOvers();n<this.range.start+this.param.buffer||this.checkRange(n,this.getEndByStart(n))}},{key:"getScrollOvers",value:function(){var n=this.offset-this.param.slotHeaderSize;if(n<=0)return 0;if(this.isFixedType())return Math.floor(n/this.fixedSizeValue);for(var r=0,o=0,s=0,i=this.param.uniqueIds.length;r<=i;){if(o=r+Math.floor((i-r)/2),s=this.getIndexOffset(o),s===n)return o;s<n?r=o+1:s>n&&(i=o-1)}return r>0?--r:0}},{key:"getIndexOffset",value:function(n){if(!n)return 0;for(var r=0,o=0,s=0;s<n;s++)o=this.sizes.get(this.param.uniqueIds[s]),r=r+(typeof o=="number"?o:this.getEstimateSize());return this.lastCalcIndex=Math.max(this.lastCalcIndex,n-1),this.lastCalcIndex=Math.min(this.lastCalcIndex,this.getLastIndex()),r}},{key:"isFixedType",value:function(){return this.calcType===Pr.FIXED}},{key:"getLastIndex",value:function(){return this.param.uniqueIds.length-1}},{key:"checkRange",value:function(n,r){var o=this.param.keeps,s=this.param.uniqueIds.length;s<=o?(n=0,r=this.getLastIndex()):r-n<o-1&&(n=r-o+1),this.range.start!==n&&this.updateRange(n,r)}},{key:"updateRange",value:function(n,r){this.range.start=n,this.range.end=r,this.range.padFront=this.getPadFront(),this.range.padBehind=this.getPadBehind(),this.callUpdate(this.getRange())}},{key:"getEndByStart",value:function(n){var r=n+this.param.keeps-1,o=Math.min(r,this.getLastIndex());return o}},{key:"getPadFront",value:function(){return this.isFixedType()?this.fixedSizeValue*this.range.start:this.getIndexOffset(this.range.start)}},{key:"getPadBehind",value:function(){var n=this.range.end,r=this.getLastIndex();return this.isFixedType()?(r-n)*this.fixedSizeValue:this.lastCalcIndex===r?this.getIndexOffset(r)-this.getIndexOffset(n):(r-n)*this.getEstimateSize()}},{key:"getEstimateSize",value:function(){return this.isFixedType()?this.fixedSizeValue:this.firstRangeAverageSize||this.param.estimateSize}}]),e}(),QI={dataKey:{type:[String,Function],required:!0},dataSources:{type:Array,required:!0,default:function(){return[]}},dataComponent:{type:[Object,Function],required:!0},keeps:{type:Number,default:30},extraProps:{type:Object},estimateSize:{type:Number,default:50},direction:{type:String,default:"vertical"},start:{type:Number,default:0},offset:{type:Number,default:0},topThreshold:{type:Number,default:0},bottomThreshold:{type:Number,default:0},pageMode:{type:Boolean,default:!1},rootTag:{type:String,default:"div"},wrapTag:{type:String,default:"div"},wrapClass:{type:String,default:"wrap"},wrapStyle:{type:Object},itemTag:{type:String,default: Line truncated
`,Xx=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Qx(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Xx.map(i=>`${i}:${t.getPropertyValue(i)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}function $d(e,t=1,n){var r;tn||(tn=document.createElement("textarea"),document.body.appendChild(tn));const{paddingSize:o,borderSize:s,boxSizing:i,contextStyle:a}=Qx(e);tn.setAttribute("style",`${a};${Jx}`),tn.value=e.value||e.placeholder||"";let l=tn.scrollHeight;const u={};i==="border-box"?l=l+s:i==="content-box"&&(l=l-o),tn.value="";const c=tn.scrollHeight-o;if(He(t)){let f=c*t;i==="border-box"&&(f=f+o+s),l=Math.max(f,l),u.minHeight=`${f}px`}if(He(n)){let f=c*n;i==="border-box"&&(f=f+o+s),l=Math.min(f,l)}return u.height=`${l}px`,(r=tn.parentNode)==null||r.removeChild(tn),tn=void 0,u}const Zx=Fe({id:{type:String,default:void 0},size:zs,disabled:Boolean,modelValue:{type:Ce([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Ce([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Lt},prefixIcon:{type:Lt},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Ce([Object,Array,String]),default:()=>ha({})},autofocus:{type:Boolean,default:!1}}),e3={[Je]:e=>xe(e),input:e=>xe(e),change:e=>xe(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},t3=["role"],n3=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],r3=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],o3=ie({name:"ElInput",inheritAttrs:!1}),s3=ie({...o3,props:Zx,emits:e3,setup(e,{expose:t,emit:n}){const r=e,o=y0(),s=Wr(),i=C(()=>{const z={};return r.containerRole==="combobox"&&(z["aria-haspopup"]=o["aria-haspopup"],z["aria-owns"]=o["aria-owns"],z["aria-expanded"]=o["aria-expanded"]),z}),a=C(()=>[r.type==="textarea"?y.b():d.b(),d.m(v.value),d.is("disabled",m.value),d.is("exceed",ze.value),{[d.b("group")]:s.prepend||s.append,[d.bm("group","append")]:s.append,[d.bm("group","prepend")]:s.prepend,[d.m("prefix")]:s.prefix||r.prefixIcon,[d.m("suffix")]:s.suffix||r.suffixIcon||r.clearable||r.showPassword,[d.bm("suffix","password-clear")]:Ne.value&&Oe.value},o.class]),l=C(()=>[d.e("wrapper"),d.is("focus",F.value)]),u=OT({excludeKeys:C(()=>Object.keys(i.value))}),{form:c,formItem:f}=Er(),{inputId:p}=ya(r,{formItemContext:f}),v=mn(),m=No(),d=Re("input"),y=Re("textarea"),g=On(),w=On(),E=H(!1),O=H(!1),I=H(!1),R=H(),T=On(r.inputStyle),_=C(()=>g.value||w.value),{wrapperRef:k,isFocused:F,handleFocus:j,handleBlur:M}=X4(_,{afterBlur(){var z;r.validateEvent&&((z=f==null?void 0:f.validate)==null||z.call(f,"blur").catch(re=>void 0))}}),x=C(()=>{var z;return(z=c==null?void 0:c.statusIcon)!=null?z:!1}),$=C(()=>(f==null?void 0:f.validateState)||""),V=C(()=>$.value&&bv[$.value]),W=C(()=>I.value?uT:_O),B=C(()=>[o.style,r.inputStyle]),se=C(()=>[r.inputStyle,T.value,{resize:r.resize}]),we=C(()=>jn(r.modelValue)?"":String(r.modelValue)),Ne=C(()=>r.clearable&&!m.value&&!r.readonly&&!!we.value&&(F.value||E.value)),Oe=C(()=>r.showPassword&&!m.value&&!r.readonly&&!!we.value&&(!!we.value||F.value)),Ae=C(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!m.value&&!r.readonly&&!r.showPassword),Ke=C(()=>we.value.length),ze=C(()=>!!Ae.value&&Ke.value>Number(u.value.maxlength)),Ge=C(()=>!!s.suffix||!!r.suffixIcon||Ne.value||r.showPassword||Ae.value||!!$.value&&x.value),[$e,A]=W4(g);wr(w,z=>{if(te(),!Ae.value||r.resize!=="both")return;const re=z[0],{width:_e}=re.contentRect;R.value={right:`calc(100% - ${_e+15+6}px)`}});const q=()=>{const{type:z,autosize:re}=r;if(!(!st||z!=="textarea"||!w.value))if(re){const _e=ke(re)?re.minRows:void 0,Ie=ke(re)?re.maxRows:void 0,qe=$d(w.value,_e,Ie);T.value={overflowY:"hidden",...qe},Le(()= Line truncated
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&CI[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},op=Symbol("internals");function Ko(e){return e&&String(e).trim().toLowerCase()}function _i(e){return e===!1||e==null?e:U.isArray(e)?e.map(_i):String(e)}function TI(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const xI=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function nl(e,t,n,r,o){if(U.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!U.isString(t)){if(U.isString(r))return t.indexOf(r)!==-1;if(U.isRegExp(r))return r.test(t)}}function AI(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function PI(e,t){const n=U.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}class Ta{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,l,u){const c=Ko(l);if(!c)throw new Error("header name must be a non-empty string");const f=U.findKey(o,c);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||l]=_i(a))}const i=(a,l)=>U.forEach(a,(u,c)=>s(u,c,l));return U.isPlainObject(t)||t instanceof this.constructor?i(t,n):U.isString(t)&&(t=t.trim())&&!xI(t)?i(OI(t),n):t!=null&&s(n,t,r),this}get(t,n){if(t=Ko(t),t){const r=U.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return TI(o);if(U.isFunction(n))return n.call(this,o,r);if(U.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ko(t),t){const r=U.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||nl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=Ko(i),i){const a=U.findKey(r,i);a&&(!n||nl(r,r[a],a,n))&&(delete r[a],o=!0)}}return U.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||nl(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return U.forEach(this,(o,s)=>{const i=U.findKey(r,s);if(i){n[i]=_i(o),delete n[s];return}const a=t?AI(s):String(s).trim();a!==s&&delete n[s],n[a]=_i(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return U.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&U.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[op]=this[op]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=Ko(i);r[a]||(PI(o,i),r[a]=!0)}return U.isArray(t)?t.forEach(s):s(t),this}}Ta.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);U.reduceDescriptors(Ta.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});U.freezeMethods(Ta);const Hn=Ta;function rl(e,t){const n=this||cc,r=t||n,o=Hn.from(r.headers);let s=r.data;return U.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function zm(e){return!!(e&&e.__CANCEL__)}function Hs(e,t,n){je.call(this,e??"canceled",je.ERR_CANCELED,t,n),this.name="CanceledError"}U.inherits(Hs,je,{__CANCEL__:!0});function $I(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new je("Request failed with status code "+n.status,[je.ERR_BAD_REQUEST,je.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const II=ln.isStandardBrowserEnv?function(){return{write:function(n,r,o,s,i,a){const l=[];l.push(n+"="+encodeURIComponent(r)),U.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),U.isString(s)&&l.push("path="+s),U.isString(i)&&l.push("domain="+i),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function RI(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function kI(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Dm(e,t){return e&&!RI(t)?kI(e,t):t}const NI=ln.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const a=U.isString(i)?o(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function LI(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function MI(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[s];i||(i=u),n[o]=l,r[o]=u;let f=s,p=0;for(;f!==o;)p+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),u-i<t)return;const v=c&&u-c;return v?Math.round(p*1e3/v):void 0}}function sp(e,t){let n=0;const r=MI(50,250);return o=>{const s=o.loaded,i=o.lengthComputable?o.total:void 0,a=s-n,l=r(a),u=s<=i;n=s;const c={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:l||void 0,estimated:l&&i&&u?(i-s)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const FI=typeof XMLHttpRequest<"u",BI=FI&&function(e){return new Promise(function(n,r){let o=e.data;const s=Hn.from(e.headers).normalize(),i=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}U.isFormData(o)&&(ln.isStandardBrowserEnv||ln.isStandardBrowserWebWorkerEnv?s.setContentType(!1):s.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(v+":"+m))}const c=Dm(e.baseURL,e.url);u.open(e.method.toUpperCase(),Mm(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const v=Hn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),d={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:v,config:e,request:u};$I(function(g){n(g),l()},function(g){r(g),l()},d),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new je("Request aborted",je.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new je("Network Error",je.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const d=e.transitional||Fm;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new je(m,d.clarifyTimeoutError?je.ETIMEDOUT:je.ECONNABORTED,e,u)),u=null},ln.isStandardBrowserEnv){const v=(e.withCredentials||NI(c))&&e.xsrfCookieName&&II.read(e.xsrfCookieName);v&&s.set(e.xsrfHeaderName,v)}o===void 0&&s.setContentType(null),"setRequest Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var no={FRONT:"FRONT",BEHIND:"BEHIND"},Pr={INIT:"INIT",FIXED:"FIXED",DYNAMIC:"DYNAMIC"},fp=2,QI=function(){function e(t,n){KI(this,e),this.init(t,n)}return qI(e,[{key:"init",value:function(n,r){this.param=n,this.callUpdate=r,this.sizes=new Map,this.firstRangeTotalSize=0,this.firstRangeAverageSize=0,this.lastCalcIndex=0,this.fixedSizeValue=0,this.calcType=Pr.INIT,this.offset=0,this.direction="",this.range=Object.create(null),n&&this.checkRange(0,n.keeps-1)}},{key:"destroy",value:function(){this.init(null,null)}},{key:"getRange",value:function(){var n=Object.create(null);return n.start=this.range.start,n.end=this.range.end,n.padFront=this.range.padFront,n.padBehind=this.range.padBehind,n}},{key:"isBehind",value:function(){return this.direction===no.BEHIND}},{key:"isFront",value:function(){return this.direction===no.FRONT}},{key:"getOffset",value:function(n){return(n<1?0:this.getIndexOffset(n))+this.param.slotHeaderSize}},{key:"updateParam",value:function(n,r){var o=this;this.param&&n in this.param&&(n==="uniqueIds"&&this.sizes.forEach(function(s,i){r.includes(i)||o.sizes.delete(i)}),this.param[n]=r)}},{key:"saveSize",value:function(n,r){this.sizes.set(n,r),this.calcType===Pr.INIT?(this.fixedSizeValue=r,this.calcType=Pr.FIXED):this.calcType===Pr.FIXED&&this.fixedSizeValue!==r&&(this.calcType=Pr.DYNAMIC,delete this.fixedSizeValue),this.calcType!==Pr.FIXED&&typeof this.firstRangeTotalSize<"u"&&(this.sizes.size<Math.min(this.param.keeps,this.param.uniqueIds.length)?(this.firstRangeTotalSize=WI(this.sizes.values()).reduce(function(o,s){return o+s},0),this.firstRangeAverageSize=Math.round(this.firstRangeTotalSize/this.sizes.size)):delete this.firstRangeTotalSize)}},{key:"handleDataSourcesChange",value:function(){var n=this.range.start;this.isFront()?n=n-fp:this.isBehind()&&(n=n+fp),n=Math.max(n,0),this.updateRange(this.range.start,this.getEndByStart(n))}},{key:"handleSlotSizeChange",value:function(){this.handleDataSourcesChange()}},{key:"handleScroll",value:function(n){this.direction=n<this.offset?no.FRONT:no.BEHIND,this.offset=n,this.param&&(this.direction===no.FRONT?this.handleFront():this.direction===no.BEHIND&&this.handleBehind())}},{key:"handleFront",value:function(){var n=this.getScrollOvers();if(!(n>this.range.start)){var r=Math.max(n-this.param.buffer,0);this.checkRange(r,this.getEndByStart(r))}}},{key:"handleBehind",value:function(){var n=this.getScrollOvers();n<this.range.start+this.param.buffer||this.checkRange(n,this.getEndByStart(n))}},{key:"getScrollOvers",value:function(){var n=this.offset-this.param.slotHeaderSize;if(n<=0)return 0;if(this.isFixedType())return Math.floor(n/this.fixedSizeValue);for(var r=0,o=0,s=0,i=this.param.uniqueIds.length;r<=i;){if(o=r+Math.floor((i-r)/2),s=this.getIndexOffset(o),s===n)return o;s<n?r=o+1:s>n&&(i=o-1)}return r>0?--r:0}},{key:"getIndexOffset",value:function(n){if(!n)return 0;for(var r=0,o=0,s=0;s<n;s++)o=this.sizes.get(this.param.uniqueIds[s]),r=r+(typeof o=="number"?o:this.getEstimateSize());return this.lastCalcIndex=Math.max(this.lastCalcIndex,n-1),this.lastCalcIndex=Math.min(this.lastCalcIndex,this.getLastIndex()),r}},{key:"isFixedType",value:function(){return this.calcType===Pr.FIXED}},{key:"getLastIndex",value:function(){return this.param.uniqueIds.length-1}},{key:"checkRange",value:function(n,r){var o=this.param.keeps,s=this.param.uniqueIds.length;s<=o?(n=0,r=this.getLastIndex()):r-n<o-1&&(n=r-o+1),this.range.start!==n&&this.updateRange(n,r)}},{key:"updateRange",value:function(n,r){this.range.start=n,this.range.end=r,this.range.padFront=this.getPadFront(),this.range.padBehind=this.getPadBehind(),this.callUpdate(this.getRange())}},{key:"getEndByStart",value:function(n){var r=n+this.param.keeps-1,o=Math.min(r,this.getLastIndex());return o}},{key:"getPadFront",value:function(){return this.isFixedType()?this.fixedSizeValue*this.range.start:this.getIndexOffset(this.range.start)}},{key:"getPadBehind",value:function(){var n=this.range.end,r=this.getLastIndex();return this.isFixedType()?(r-n)*this.fixedSizeValue:this.lastCalcIndex===r?this.getIndexOffset(r)-this.getIndexOffset(n):(r-n)*this.getEstimateSize()}},{key:"getEstimateSize",value:function(){return this.isFixedType()?this.fixedSizeValue:this.firstRangeAverageSize||this.param.estimateSize}}]),e}(),ZI={dataKey:{type:[String,Function],required:!0},dataSources:{type:Array,required:!0,default:function(){return[]}},dataComponent:{type:[Object,Function],required:!0},keeps:{type:Number,default:30},extraProps:{type:Object},estimateSize:{type:Number,default:50},direction:{type:String,default:"vertical"},start:{type:Number,default:0},offset:{type:Number,default:0},topThreshold:{type:Number,default:0},bottomThreshold:{type:Number,default:0},pageMode:{type:Boolean,default:!1},rootTag:{type:String,default:"div"},wrapTag:{type:String,default:"div"},wrapClass:{type:String,default:"wrap"},wrapStyle:{type:Object},itemTag:{type:String,default: Line truncated
* pinia v2.1.6
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/let qm;const xa=e=>qm=e,Um=Symbol();function eu(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var is;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(is||(is={}));function eR(){const e=Ep(!0),t=e.run(()=>H({}));let n=[],r=[];const o=Wi({install(s){xa(o),o._a=s,s.provide(Um,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!n6?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Wm=()=>{};function pp(e,t,n,r=Wm){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&au()&&lu(o),o}function ro(e,...t){e.slice().forEach(n=>{n(...t)})}const r6=e=>e();function tu(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];eu(o)&&eu(r)&&e.hasOwnProperty(n)&&!Ve(r)&&!Dn(r)?e[n]=tu(o,r):e[n]=r}return e}const o6=Symbol();function s6(e){return!eu(e)||!e.hasOwnProperty(o6)}const{assign:ar}=Object;function i6(e){return!!(Ve(e)&&e.effect)}function a6(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=o?o():{});const c=br(n.state.value[e]);return ar(c,s,Object.keys(i||{}).reduce((f,p)=>(f[p]=Wi(C(()=>{xa(n);const v=n._s.get(e);return i[p].call(v,v)})),f),{}))}return l=Gm(e,u,t,n,r,!0),l}function Gm(e,t,n={},r,o,s){let i;const a=ar({actions:{}},n),l={deep:!0};let u,c,f=[],p=[],v;const m=r.state.value[e];!s&&!m&&(r.state.value[e]={}),H({});let d;function y(_){let k;u=c=!1,typeof _=="function"?(_(r.state.value[e]),k={type:is.patchFunction,storeId:e,events:v}):(tu(r.state.value[e],_),k={type:is.patchObject,payload:_,storeId:e,events:v});const F=d=Symbol();Le().then(()=>{d===F&&(u=!0)}),c=!0,ro(f,k,r.state.value[e])}const g=s?function(){const{state:k}=n,F=k?k():{};this.$patch(j=>{ar(j,F)})}:Wm;function w(){i.stop(),f=[],p=[],r._s.delete(e)}function E(_,k){return function(){xa(r);const F=Array.from(arguments),j=[],M=[];function x(W){j.push(W)}function $(W){M.push(W)}ro(p,{args:F,name:_,store:I,after:x,onError:$});let V;try{V=k.apply(this&&this.$id===e?this:I,F)}catch(W){throw ro(M,W),W}return V instanceof Promise?V.then(W=>(ro(j,W),W)).catch(W=>(ro(M,W),Promise.reject(W))):(ro(j,V),V)}}const O={_p:r,$id:e,$onAction:pp.bind(null,p),$patch:y,$reset:g,$subscribe(_,k={}){const F=pp(f,_,k.detached,()=>j()),j=i.run(()=>ue(()=>r.state.value[e],M=>{(k.flush==="sync"?c:u)&&_({storeId:e,type:is.direct,events:v},M)},ar({},l,k)));return F},$dispose:w},I=xt(O);r._s.set(e,I);const R=r._a&&r._a.runWithContext||r6,T=r._e.run(()=>(i=Ep(),R(()=>i.run(t))));for(const _ in T){const k=T[_];if(Ve(k)&&!i6(k)||Dn(k))s||(m&&s6(k)&&(Ve(k)?k.value=m[_]:tu(k,m[_])),r.state.value[e][_]=k);else if(typeof k=="function"){const F=E(_,k);T[_]=F,a.actions[_]=k}}return ar(I,T),ar(Pe(I),T),Object.defineProperty(I,"$state",{get:()=>r.state.value[e],set:_=>{y(k=>{ar(k,_)})}}),r._p.forEach(_=>{ar(I,i.run(()=>_({store:I,app:r._a,pinia:r,options:a})))}),m&&s&&n.hydrate&&n.hydrate(I.$state,m),u=!0,c=!0,I}function tR(e,t,n){let r,o;const s=typeof t=="function";typeof e=="string"?(r=e,o=s?n:t):(o=e,r=e.id);function i(a,l){const u=T0();return a=a||(u?Ee(Um,null):null),a&&xa(a),a=qm,a._s.has(r)||(s?Gm(r,t,o,a):a6(r,o,a)),a._s.get(r)}return i.$id=r,i}function nR(e){{e=Pe(e);const t={};for(const n in e){const r=e[n];(Ve(r)||Dn(r))&&(t[n]=Ut(e,n))}return t}}var sl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function il(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function Ym(e,t){for(var n=t.slice(0,t.length-1),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function Jm(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var t=e.split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function l6(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,o=!0,s=0;s<n.length;s++)r.indexOf(n[s])===-1&&(o=!1);return o}var $s={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":sl?173:189,"=":sl?61:187,";":sl?59:186,"'":222,"[":219,"]":221,"\\":220},$n={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},nu={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},wt={16:!1,18:!1,17:!1,91:!1},at={};for(var ui=1;ui<20;ui++)$s["f".concat(ui)]=111+ui;var Qe=[],hLine truncated
*/let qm;const xa=e=>qm=e,Um=Symbol();function eu(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var is;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(is||(is={}));function eR(){const e=Ep(!0),t=e.run(()=>H({}));let n=[],r=[];const o=Wi({install(s){xa(o),o._a=s,s.provide(Um,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!Nb?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Wm=()=>{};function pp(e,t,n,r=Wm){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&au()&&lu(o),o}function ro(e,...t){e.slice().forEach(n=>{n(...t)})}const r6=e=>e();function tu(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];eu(o)&&eu(r)&&e.hasOwnProperty(n)&&!Ve(r)&&!Dn(r)?e[n]=tu(o,r):e[n]=r}return e}const o6=Symbol();function s6(e){return!eu(e)||!e.hasOwnProperty(o6)}const{assign:ar}=Object;function i6(e){return!!(Ve(e)&&e.effect)}function a6(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=o?o():{});const c=br(n.state.value[e]);return ar(c,s,Object.keys(i||{}).reduce((f,p)=>(f[p]=Wi(C(()=>{xa(n);const v=n._s.get(e);return i[p].call(v,v)})),f),{}))}return l=Gm(e,u,t,n,r,!0),l}function Gm(e,t,n={},r,o,s){let i;const a=ar({actions:{}},n),l={deep:!0};let u,c,f=[],p=[],v;const m=r.state.value[e];!s&&!m&&(r.state.value[e]={}),H({});let d;function y(_){let k;u=c=!1,typeof _=="function"?(_(r.state.value[e]),k={type:is.patchFunction,storeId:e,events:v}):(tu(r.state.value[e],_),k={type:is.patchObject,payload:_,storeId:e,events:v});const F=d=Symbol();Le().then(()=>{d===F&&(u=!0)}),c=!0,ro(f,k,r.state.value[e])}const g=s?function(){const{state:k}=n,F=k?k():{};this.$patch(j=>{ar(j,F)})}:Wm;function w(){i.stop(),f=[],p=[],r._s.delete(e)}function E(_,k){return function(){xa(r);const F=Array.from(arguments),j=[],M=[];function x(W){j.push(W)}function $(W){M.push(W)}ro(p,{args:F,name:_,store:I,after:x,onError:$});let V;try{V=k.apply(this&&this.$id===e?this:I,F)}catch(W){throw ro(M,W),W}return V instanceof Promise?V.then(W=>(ro(j,W),W)).catch(W=>(ro(M,W),Promise.reject(W))):(ro(j,V),V)}}const O={_p:r,$id:e,$onAction:pp.bind(null,p),$patch:y,$reset:g,$subscribe(_,k={}){const F=pp(f,_,k.detached,()=>j()),j=i.run(()=>ue(()=>r.state.value[e],M=>{(k.flush==="sync"?c:u)&&_({storeId:e,type:is.direct,events:v},M)},ar({},l,k)));return F},$dispose:w},I=xt(O);r._s.set(e,I);const R=r._a&&r._a.runWithContext||r6,T=r._e.run(()=>(i=Ep(),R(()=>i.run(t))));for(const _ in T){const k=T[_];if(Ve(k)&&!i6(k)||Dn(k))s||(m&&s6(k)&&(Ve(k)?k.value=m[_]:tu(k,m[_])),r.state.value[e][_]=k);else if(typeof k=="function"){const F=E(_,k);T[_]=F,a.actions[_]=k}}return ar(I,T),ar(Pe(I),T),Object.defineProperty(I,"$state",{get:()=>r.state.value[e],set:_=>{y(k=>{ar(k,_)})}}),r._p.forEach(_=>{ar(I,i.run(()=>_({store:I,app:r._a,pinia:r,options:a})))}),m&&s&&n.hydrate&&n.hydrate(I.$state,m),u=!0,c=!0,I}function tR(e,t,n){let r,o;const s=typeof t=="function";typeof e=="string"?(r=e,o=s?n:t):(o=e,r=e.id);function i(a,l){const u=T0();return a=a||(u?Ee(Um,null):null),a&&xa(a),a=qm,a._s.has(r)||(s?Gm(r,t,o,a):a6(r,o,a)),a._s.get(r)}return i.$id=r,i}function nR(e){{e=Pe(e);const t={};for(const n in e){const r=e[n];(Ve(r)||Dn(r))&&(t[n]=Ut(e,n))}return t}}var sl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function il(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function Ym(e,t){for(var n=t.slice(0,t.length-1),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function Jm(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var t=e.split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function l6(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,o=!0,s=0;s<n.length;s++)r.indexOf(n[s])===-1&&(o=!1);return o}var $s={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":sl?173:189,"=":sl?61:187,";":sl?59:186,"'":222,"[":219,"]":221,"\\":220},$n={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},nu={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},wt={16:!1,18:!1,17:!1,91:!1},at={};for(var ui=1;ui<20;ui++)$s["f".concat(ui)]=111+ui;var Qe=[],hLine truncated
+2 -2
View File
@@ -4,8 +4,8 @@
<meta charset="UTF-8" />
<link rel="icon" href="./favicon.ico" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<script type="module" crossorigin src="./assets/index-6758c83f.js"></script>
<link rel="modulepreload" crossorigin href="./assets/vendor-260e64da.js">
<script type="module" crossorigin src="./assets/index-a4be7e77.js"></script>
<link rel="modulepreload" crossorigin href="./assets/vendor-f0c50eaf.js">
<link rel="stylesheet" href="./assets/vendor-31f92e7c.css">
<link rel="stylesheet" href="./assets/index-a2df5179.css">
</head>