web source editor: v3.23.032717

This commit is contained in:
github-actions[bot] committed 2023-03-27 09:01:03 +00:00
1 parent 5f830736d6
commit b8057fbeb0
6 files changed
+33 -16

No files matched your search

@@ -0,0 +1,31 @@
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function Or(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}function Ir(e){if(D(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=fe(r)?Oi(r):Ir(r);if(o)for(const s in o)t[s]=o[s]}return t}else{if(fe(e))return e;if(se(e))return e}}const Ti=/;(?![^(]*\))/g,Pi=/:([^]+)/,Ai=/\/\*.*?\*\//gs;function Oi(e){const t={};return e.replace(Ai,"").split(Ti).forEach(n=>{if(n){const r=n.split(Pi);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Qe(e){let t="";if(fe(e))t=e;else if(D(e))for(let n=0;n<e.length;n++){const r=Qe(e[n]);r&&(t+=r+" ")}else if(se(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Ii="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ni=Or(Ii);function ss(e){return!!e||e===""}function Ui(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Fn(e[r],t[r]);return n}function Fn(e,t){if(e===t)return!0;let n=co(e),r=co(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=on(e),r=on(t),n||r)return e===t;if(n=D(e),r=D(t),n||r)return n&&r?Ui(e,t):!1;if(n=se(e),r=se(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,s=Object.keys(t).length;if(o!==s)return!1;for(const i in e){const l=e.hasOwnProperty(i),c=t.hasOwnProperty(i);if(l&&!c||!l&&c||!Fn(e[i],t[i]))return!1}}return String(e)===String(t)}function is(e,t){return e.findIndex(n=>Fn(n,t))}const et=e=>fe(e)?e:e==null?"":D(e)||se(e)&&(e.toString===us||!V(e.toString))?JSON.stringify(e,ls,2):String(e),ls=(e,t)=>t&&t.__v_isRef?ls(e,t.value):Ut(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:jn(t)?{[`Set(${t.size})`]:[...t.values()]}:se(t)&&!D(t)&&!as(t)?String(t):t,ie={},Nt=[],Ke=()=>{},Mi=()=>!1,$i=/^on[^a-z]/,Hn=e=>$i.test(e),Nr=e=>e.startsWith("onUpdate:"),ve=Object.assign,Ur=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Li=Object.prototype.hasOwnProperty,Z=(e,t)=>Li.call(e,t),D=Array.isArray,Ut=e=>zt(e)==="[object Map]",jn=e=>zt(e)==="[object Set]",co=e=>zt(e)==="[object Date]",Bi=e=>zt(e)==="[object RegExp]",V=e=>typeof e=="function",fe=e=>typeof e=="string",on=e=>typeof e=="symbol",se=e=>e!==null&&typeof e=="object",cs=e=>se(e)&&V(e.then)&&V(e.catch),us=Object.prototype.toString,zt=e=>us.call(e),Fi=e=>zt(e).slice(8,-1),as=e=>zt(e)==="[object Object]",Mr=e=>fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,En=Or(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Dn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Hi=/-(\w)/g,Xe=Dn(e=>e.replace(Hi,(t,n)=>n?n.toUpperCase():"")),ji=/\B([A-Z])/g,kt=Dn(e=>e.replace(ji,"-$1").toLowerCase()),Kn=Dn(e=>e.charAt(0).toUpperCase()+e.slice(1)),nr=Dn(e=>e?`on${Kn(e)}`:""),sn=(e,t)=>!Object.is(e,t),Mt=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Pn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},hr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let uo;const Di=()=>uo||(uo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Pe;class fs{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Pe,!t&&Pe&&(this.index=(Pe.scopes||(Pe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Pe;try{return Pe=this,t()}finally{Pe=n}}}on(){Pe=this}off(){Pe=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function ds(e){return new fs(e)}function Ki(e,t=Pe){t&&t.active&&t.effects.push(e)}function hs(){return Pe}function Vi(e){Pe&&Pe.cleanups.push(e)}const $r=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ps=e=>(e.w&ht)>0,gs=e=>(e.n&ht)>0,zi=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ht},Ji=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];ps(o)&&!gs(o)?o.delete(e):t[n++]=o,o.w&=Line truncated
* vue-router v4.1.6
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/const It=typeof window<"u";function au(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const G=Object.assign;function ar(e,t){const n={};for(const r in t){const o=t[r];n[r]=ze(o)?o.map(e):e(o)}return n}const tn=()=>{},ze=Array.isArray,fu=/\/$/,du=e=>e.replace(fu,"");function fr(e,t,n="/"){let r,o={},s="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l<c&&l>=0&&(c=-1),c>-1&&(r=t.slice(0,c),s=t.slice(c+1,l>-1?l:t.length),o=e(s)),l>-1&&(r=r||t.slice(0,l),i=t.slice(l,t.length)),r=mu(r??t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:i}}function hu(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ho(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function pu(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Kt(t.matched[r],n.matched[o])&&ii(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Kt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ii(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!gu(e[n],t[n]))return!1;return!0}function gu(e,t){return ze(e)?jo(e,t):ze(t)?jo(t,e):e===t}function jo(e,t){return ze(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function mu(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let o=n.length-1,s,i;for(s=0;s<r.length;s++)if(i=r[s],i!==".")if(i==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var pn;(function(e){e.pop="pop",e.push="push"})(pn||(pn={}));var nn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(nn||(nn={}));function _u(e){if(!e)if(It){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),du(e)}const yu=/^[^#]+#/;function bu(e,t){return e.replace(yu,"#")+t}function Su(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 Gn=()=>({left:window.pageXOffset,top:window.pageYOffset});function vu(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=Su(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 Do(e,t){return(history.state?history.state.position-t:-1)+e}const kr=new Map;function wu(e,t){kr.set(e,t)}function Cu(e){const t=kr.get(e);return kr.delete(e),t}let xu=()=>location.protocol+"//"+location.host;function li(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let l=o.includes(e.slice(s))?e.slice(s).length:1,c=o.slice(l);return c[0]!=="/"&&(c="/"+c),Ho(c,"")}return Ho(n,e)+r+o}function Eu(e,t,n,r){let o=[],s=[],i=null;const l=({state:h})=>{const m=li(e,location),C=n.value,x=t.value;let U=0;if(h){if(n.value=m,t.value=h,i&&i===C){i=null;return}U=x?h.position-x.position:0}else r(m);o.forEach(P=>{P(n.value,C,{delta:U,type:pn.pop,direction:U?U>0?nn.forward:nn.back:nn.unknown})})};function c(){i=n.value}function a(h){o.push(h);const m=()=>{const C=o.indexOf(h);C>-1&&o.splice(C,1)};return s.push(m),m}function f(){const{history:h}=window;h.state&&h.replaceState(G({},h.state,{scroll:Gn()}),"")}function p(){for(const h of s)h();s=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",f),{pauseListeners:c,listen:a,destroy:p}}function Ko(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Gn():null}}function ku(e){const{history:t,location:n}=window,r={value:li(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(c,a,f){const p=e.indexOf("#"),h=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+c:xu()+e+c;try{t[f?"replaceState":"pushState"](a,"",h),o.value=a}catch(m){console.error(m),n[f?"replace":"assign"](h)}}function i(c,a){const f=G({},t.state,Ko(o.value.back,c,o.value.forward,!0),a,{position:o.value.position});s(c,f,!0),r.value=c}function l(c,a){const f=G({},o.value,t.state,{forward:c,scroll:Gn()});s(f.current,f,!0);const p=G({},Ko(r.value,c,null),{position:f.position+1},a);s(c,p,!1),r.value=c}return{location:r,state:o,push:l,replace:i}}function Ru(e){e=_u(e);const t=ku(e),n=Eu(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=G({location:"",base:e,go:r,createHref:bu.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Tu(e){return e=location.Line truncated
* pinia v2.0.33
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/let _i;const er=e=>_i=e,yi=Symbol();function Pr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var rn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(rn||(rn={}));function ga(){const e=ds(!0),t=e.run(()=>je({}));let n=[],r=[];const o=Ht({install(s){er(o),o._a=s,s.provide(yi,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!pa?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const bi=()=>{};function ns(e,t,n,r=bi){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&hs()&&Vi(o),o}function Ot(e,...t){e.slice().forEach(n=>{n(...t)})}function Ar(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];Pr(o)&&Pr(r)&&e.hasOwnProperty(n)&&!ae(r)&&!ft(r)?e[n]=Ar(o,r):e[n]=r}return e}const ma=Symbol();function _a(e){return!Pr(e)||!e.hasOwnProperty(ma)}const{assign:it}=Object;function ya(e){return!!(ae(e)&&e.effect)}function ba(e,t,n,r){const{state:o,actions:s,getters:i}=t,l=n.state.value[e];let c;function a(){l||(n.state.value[e]=o?o():{});const f=pt(n.state.value[e]);return it(f,s,Object.keys(i||{}).reduce((p,h)=>(p[h]=Ht(be(()=>{er(n);const m=n._s.get(e);return i[h].call(m,m)})),p),{}))}return c=Si(e,a,t,n,r,!0),c}function Si(e,t,n={},r,o,s){let i;const l=it({actions:{}},n),c={deep:!0};let a,f,p=Ht([]),h=Ht([]),m;const C=r.state.value[e];!s&&!C&&(r.state.value[e]={}),je({});let x;function U(H){let A;a=f=!1,typeof H=="function"?(H(r.state.value[e]),A={type:rn.patchFunction,storeId:e,events:m}):(Ar(r.state.value[e],H),A={type:rn.patchObject,payload:H,storeId:e,events:m});const z=x=Symbol();Vr().then(()=>{x===z&&(a=!0)}),f=!0,Ot(p,A,r.state.value[e])}const P=s?function(){const{state:A}=n,z=A?A():{};this.$patch(J=>{it(J,z)})}:bi;function g(){i.stop(),p=[],h=[],r._s.delete(e)}function b(H,A){return function(){er(r);const z=Array.from(arguments),J=[],ne=[];function me(_e){J.push(_e)}function Re(_e){ne.push(_e)}Ot(h,{args:z,name:H,store:L,after:me,onError:Re});let we;try{we=A.apply(this&&this.$id===e?this:L,z)}catch(_e){throw Ot(ne,_e),_e}return we instanceof Promise?we.then(_e=>(Ot(J,_e),_e)).catch(_e=>(Ot(ne,_e),Promise.reject(_e))):(Ot(J,we),we)}}const k={_p:r,$id:e,$onAction:ns.bind(null,h),$patch:U,$reset:P,$subscribe(H,A={}){const z=ns(p,H,A.detached,()=>J()),J=i.run(()=>Bt(()=>r.state.value[e],ne=>{(A.flush==="sync"?f:a)&&H({storeId:e,type:rn.direct,events:m},ne)},it({},c,A)));return z},$dispose:g},L=Oe(k);r._s.set(e,L);const q=r._e.run(()=>(i=ds(),i.run(()=>t())));for(const H in q){const A=q[H];if(ae(A)&&!ya(A)||ft(A))s||(C&&_a(A)&&(ae(A)?A.value=C[H]:Ar(A,C[H])),r.state.value[e][H]=A);else if(typeof A=="function"){const z=b(H,A);q[H]=z,l.actions[H]=A}}return it(L,q),it(Y(L),q),Object.defineProperty(L,"$state",{get:()=>r.state.value[e],set:H=>{U(A=>{it(A,H)})}}),r._p.forEach(H=>{it(L,i.run(()=>H({store:L,app:r._a,pinia:r,options:l})))}),C&&s&&n.hydrate&&n.hydrate(L.$state,C),a=!0,f=!0,L}function Sa(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(l,c){const a=to();return l=l||a&&Ye(yi,null),l&&er(l),l=_i,l._s.has(r)||(s?Si(r,t,o,l):ba(r,o,l)),l._s.get(r)}return i.$id=r,i}const va=ga(),Rt=Sa("source",{state:()=>({url:localStorage.getItem("url")||"",bookSources:[],rssSources:[],currentSource:{},currentTab:localStorage.getItem("tabName")||"editTab",editTabSource:{},deBugMsg:"",searchKey:""}),getters:{sources:e=>/bookSource/.test(location.href)?e.bookSources:e.rssSources},actions:{saveSources(e){/bookSource/.test(location.href)?this.bookSources=e:this.rssSources=e},deleteSources(e){let t=/bookSource/.test(location.href)?this.bookSources:this.rssSources;e.forEach(n=>{let r=t.indexOf(n);r>-1&&t.splice(r,1)})},saveCurrentSource(){let e=this.currentSource,t,n;/bookSource/.test(location.href)?(t=this.bookSources,n="bookSourceUrl"):(t=this.rssSources,n="sourceUrl");let r=t.findIndex(o=>o[n]===e[n]);e=JSON.parse(JSON.stringify(e)),r>-1?t.splice(r,1,e):t.push(e)},changeCurrentSource(e){const t=JSON.stringify(e);this.currentSource=JSON.parse(t)},changeCurrentSourceValue(e){let t=e.value,n={true:!0,false:!1};if(e.type==="Boolean"&&(t=n[t]),e.type==="Number"&&(t=Number(t)),e.key.includes("_")){let r=e.key.split("_")[0],o=e.key.split("_")[1],s={};s[o]=t,this.currentSource[r]=Object.assign(this.currentSource[r]||{},s)}else this.currentSource[e.key]=t;this.currentSource.lastUpdateTime=new Date().getTime(),/bookSource/.test(location.href)&&(this.currentSource.ruleToc=this.currentSource.ruleToc||{})},changeTabName(e){this.currentTab=e,localStorage.setItem("tabName",e)},changeEditTabSource(e){const t=JSON.stringify(e);this.editTabSource=JSON.parse(t)},editHistory(e){let t;if(localStorage.getItem("history"))t=JSON.parse(localStorage.geLine truncated
`},clearDeBugMsg(){this.deBugMsg=""},clearAllSource(){this.bookSources=[],this.rssSources=[]}}});const wa={name:"editTab",setup(){const e=Rt(),t=Oe({source:""}),n=()=>{e.changeEditTabSource(JSON.parse(t.source))};return gn(()=>{let r=e.editTabSource;Object.keys(r).length>0?(r.lastUpdateTime=new Date().getTime(),t.source=JSON.stringify(r,null,4)):t.source=""}),{...pt(t),updateEditSource:n}}};function Ca(e,t,n,r,o,s){return an((le(),pe("textarea",{placeholder:"这里输出序列化的JSON数据,可直接导入'阅读'APP","onUpdate:modelValue":t[0]||(t[0]=i=>e.source=i),onInput:t[1]||(t[1]=(...i)=>r.updateEditSource&&r.updateEditSource(...i))},null,544)),[[Ln,e.source]])}const xa=Ie(wa,[["render",Ca],["__scopeId","data-v-d8aca153"]]);const Ea={name:"editDebug",setup(){const e=Rt(),t=je(""),n=Oe({printDebug:e.deBugMsg,searchKey:""}),r=i=>{e.searchKey=i};gn(()=>{n.printDebug=e.deBugMsg});const o=()=>{document.querySelectorAll(".menu>button")[7].click()},s=be(()=>/bookSource/.test(window.location.href));return{...pt(n),textareaDom:t,changeSearch:r,startSearch:o,isBookSource:s}}};function ka(e,t,n,r,o,s){return le(),pe(xe,null,[r.isBookSource?an((le(),pe("input",{key:0,type:"text",style:{"text-align":"center",border:"1px solid #dddddd","border-radius":"4px"},placeholder:"输入搜索关键字,默认搜「我的」","onUpdate:modelValue":t[0]||(t[0]=i=>e.searchKey=i),onInput:t[1]||(t[1]=i=>r.changeSearch(e.searchKey)),onKeydown:t[2]||(t[2]=tu((...i)=>r.startSearch&&r.startSearch(...i),["enter"])),title:"输入关键词 enter(回车键)快捷搜索"},null,544)),[[Ln,e.searchKey]]):dn("",!0),an(j("textarea",{placeholder:"这里用于输出调试信息","onUpdate:modelValue":t[3]||(t[3]=i=>e.printDebug=i),ref:"textareaDom",id:"debug_text"},null,512),[[Ln,e.printDebug]])],64)}const Ra=Ie(Ea,[["render",ka],["__scopeId","data-v-d61c2689"]]);function oo(e,t){return fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then(n=>n.json())}function Ta(e){return fetch(e).then(t=>t.json())}function tr(e,t=!0){let n=/bookSource/.test(location.href);return`${`http://${localStorage.getItem("url")||location.host}/`}${e}${n?"BookSource":"RssSource"}${t?"s":""}`}function Pa(){return Ta(tr("get"))}function Aa(e){return oo(tr("save"),e)}function rs(e){return oo(tr("save",!1),e)}function Oa(e){return oo(tr("delete"),e)}const Ia={name:"editList",setup(){const e=Rt();let t=Oe({searchKey:"",delArr:[],sources:[]});const n=be(()=>c(t.sources,t.searchKey)),r=be(()=>/bookSource/.test(window.location.href));gn(()=>{t.sources=e.sources});let o=je(null);const s=h=>{o.value=h,e.clearEdit(),e.changeCurrentSource(n.value[h])},i=()=>{e.clearAllSource()},l=h=>{if(!h)return null;const m=new Date(h),C=m.getFullYear();let x=m.getMonth()+1;x=x<10?"0"+x:x;let U=m.getDate();U=U<10?"0"+U:U;let P=m.getHours();P=P<10?"0"+P:P;let g=m.getMinutes();g=g<10?"0"+g:g;let b=m.getSeconds();return b=b<10?"0"+b:b,C+"-"+x+"-"+U+" "+P+":"+g+":"+b},c=(h,m)=>m===""?t.sources:r.value?h.filter(C=>C.bookSourceName.toUpperCase().includes(m.toUpperCase())||(C.bookSourceGroup||"").toUpperCase().includes(m.toUpperCase())||C.bookSourceUrl.toUpperCase().includes(m.toUpperCase())):h.filter(C=>C.sourceName.toUpperCase().includes(m.toUpperCase())||(C.sourceGroup||"").toUpperCase().includes(m.toUpperCase())||C.sourceUrl.toUpperCase().includes(m.toUpperCase())),a=()=>{if(t.delArr.length===0)return!1;const h=[];t.delArr.forEach(m=>{h.push(n.value[m])}),Oa(h).then(m=>{m.isSuccess&&(e.deleteSources(h),t.delArr=[])})},f=()=>{const h=document.createElement("input");h.type="file",h.accept=".json",h.addEventListener("change",m=>{const C=m.target.files[0];var x=new FileReader;x.readAsText(C),x.onload=()=>{const U=JSON.parse(x.result);e.saveSources(U)}}),h.click()},p=()=>{const h=document.createElement("a");let m=e.sources,C=r.value?"BookSource":"RssSource";h.download=`${C}_${Date().replace(/.*?\s(\d+)\s(\d+)\s(\d+:\d+:\d+).*/,"$2$1$3").replace(/:/g,"")}.json`;let x=new Blob([JSON.stringify(m,null,4)],{type:"application/json"});h.href=window.URL.createObjectURL(x),h.click()};return{currentActive:o,isBookSource:r,filtedSources:n,deleteActiveSource:a,handleItemClick:s,...pt(t),formatTime:l,clearAllSources:i,upFile:f,outExport:p}}},Na={style:{display:"flex","flex-flow":"column"}},Ua={class:"tool"},Ma={class:"source_list"},$a=["value"],La={class:"book_index"},Ba=["onClick"],Fa={class:"book_info"},Ha={key:0};function ja(e,t,n,r,o,s){return le(),pe("div",Na,[an(j("input",{class:"search",type:"text",placeholder:"输入筛选关键词(源名称、源URL或源分组)输入自动筛选源","onUpdate:modelValue":t[0]||(t[0]=i=>e.searchKey=i),onFocus:t[1]||(t[1]=i=>e.delArr=[])},null,544),[[Ln,e.searchKey]]),j("div",null,[j("div",Ua,[j("button",{onClick:t[2]||(t[2]=(...i)=>r.upFile&&r.upFile(...i))},"导入书源文件"),j("button",{onClick:t[3]||(t[3]=(...i)=>r.outExport&&r.outExport(...i))},"导出书源文件"),j("button",{onClick:t[4]||(t[4]=(...i)=>r.deleteAc Line truncated
确认开启web服务`,g},a=()=>{t.value=!0,Pa().then(g=>{t.value=!1,g.isSuccess?(e.changeTabName("editList"),e.saveSources(g.data),r.value=`成功拉取${g.data.length}条源`,o.value=!0):(s.value=g.errorMsg,n.value=!0)}).catch(g=>{c(g)})},f=()=>{r.value="正在推送中",o.value=!0,t.value=!0;let g=e.sources;Aa(g).then(b=>{if(b.isSuccess){let k=b.data;if(Array.isArray(k)){let L="";g.length>k.length&&(L=`
推送失败的源将用红色字体标注!`),r.value=`批量推送源到「阅读3.0APP」
共计: ${g.length} 条
成功: ${k.length} 条
失败: ${g.length-k.length} 条${L}`,o.value=!0}else r.value=`批量推送源到「阅读3.0APP」成功!
共计: ${g.length} 条`,o.value=!0}else s.value=`批量推送源失败!
ErrorMsg: ${b.errorMsg}`,n.value=!0;t.value=!1}).catch(b=>{c(b)})},p=()=>{e.changeEditTabSource(e.currentSource),e.changeTabName("editTab")},h=()=>{e.changeCurrentSource(e.editTabSource)},m=()=>{e.editHistoryUndo()},C=()=>{e.clearEdit(),r.value="已清除",o.value=!0},x=()=>{e.clearEdit(),e.clearAllHistory(),r.value="已清除所有历史记录",o.value=!0},U=()=>{let g=/bookSource/.test(location.href),b=e.currentSource;g&&b.bookSourceUrl!==""&&b.bookSourceType!==""&&b.bookSourceName!==""||!g&&b.sourceUrl!==""&&b.sourceName!==""?rs(b).then(k=>{k.isSuccess?(r.value=`源《${g?b.bookSourceName:b.sourceName}》已成功保存到「阅读3.0APP」`,o.value=!0,e.saveCurrentSource()):(s.value=`源《${g?b.bookSourceName:b.sourceName}》保存失败!
ErrorMsg: ${k.errorMsg}`,n.value=!0)}).catch(k=>{c(k)}):(s.value="请检查<必填>项是否全部填写",n.value=!0)},P=()=>{t.value=!0,e.clearDeBugMsg(),e.changeTabName("editDebug");let g=/bookSource/.test(location.href),b=e.currentSource;rs(b).then(k=>{let L="ws://"+(localStorage.getItem("url")||location.host).replace(/\d+$/,z=>parseInt(z)+1)+"/"+(g?"bookSourceDebug":"rssSourceDebug");const q=new WebSocket(L);let H="",A=g?b.bookSourceUrl:b.sourceUrl;g&&(b.ruleSearch.checkKeyWord?H=b.ruleSearch.checkKeyWord:e.searchKey?H=e.searchKey:H="我的"),q.onopen=()=>{q.send(`{"tag":"${A}", "key":"${H}"}`)},q.onmessage=z=>{e.appendDeBugMsg(z.data)},q.onclose=()=>{t.value=!1,r.value="调试已关闭!",o.value=!0,e.appendDeBugMsg("调试已关闭!")}}).catch(k=>{c(k)})};return mn(()=>{document.onkeydown=g=>{(g.ctrlKey||g.metaKey)&&g.key==="Enter"&&P(),(g.ctrlKey||g.metaKey)&&g.key==="s"&&(U(),g.preventDefault()),g.ctrlKey&&g.key==="e"&&(p(),g.preventDefault()),g.ctrlKey&&g.key==="p"&&(f(),g.preventDefault())}}),{debug:P,push:f,pull:a,clearEdit:C,showLoading:t,changeShow:i,warnShow:n,successText:r,changeSuccessShow:l,successShow:o,undo:m,redo:x,conver2Tab:p,conver2Source:h,warnText:s,saveSource:U}}},_n=e=>(Jr("data-v-138678d8"),e=e(),Wr(),e),af={class:"menu"},ff=_n(()=>j("span",null,"Ctrl+P",-1)),df=_n(()=>j("span",null,"Ctrl+E",-1)),hf=_n(()=>j("span",null,"Ctrl+Z",-1)),pf=_n(()=>j("span",null,"Ctrl+Enter",-1)),gf=_n(()=>j("span",null,"Ctrl+S",-1));function mf(e,t,n,r,o,s){const i=xi,l=Ci,c=wi;return le(),pe("div",af,[j("div",null,[r.showLoading?(le(),jt(i,{key:0})):dn("",!0),ge(l,{text:r.warnText,"is-show":r.warnShow,onChangeShow:r.changeShow},null,8,["text","is-show","onChangeShow"]),r.successShow?(le(),jt(c,{key:1,isShow:r.successShow,onChangeShow:r.changeSuccessShow,text:r.successText},null,8,["isShow","onChangeShow","text"])):dn("",!0)]),j("button",{onClick:t[0]||(t[0]=(...a)=>r.push&&r.push(...a)),title:"Ctrl+P"},[St("⇈推送源 "),ff]),j("button",{onClick:t[1]||(t[1]=(...a)=>r.pull&&r.pull(...a))},"⇊拉取源"),j("button",{onClick:t[2]||(t[2]=(...a)=>r.conver2Tab&&r.conver2Tab(...a)),title:"Ctrl+E"},[St(" ⋙生成源"),df]),j("button",{onClick:t[3]||(t[3]=(...a)=>r.conver2Source&&r.conver2Source(...a))},"⋘编辑源"),j("button",{onClick:t[4]||(t[4]=(...a)=>r.clearEdit&&r.clearEdit(...a))},"✗清空表单"),j("button",{onClick:t[5]||(t[5]=(...a)=>r.undo&&r.undo(...a)),title:"Ctrl+Z"},[St("↶撤销操作"),hf]),j("button",{onClick:t[6]||(t[6]=(...a)=>r.redo&&r.redo(...a))},"↷重做操作"),j("button",{onClick:t[7]||(t[7]=(...a)=>r.debug&&r.debug(...a)),title:"Ctrl+Enter"},[St(" ⇏调试源 "),pf]),j("button",{onClick:t[8]||(t[8]=(...a)=>r.saveSource&&r.saveSource(...a)),title:"Ctrl+S"},[St(" ✓保存源"),gf])])}const Ei=Ie(uf,[["render",mf],["__scopeId","data-v-138678d8"]]);let Ue;const _f=`
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important
`,yf=["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 bf(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),o=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:yf.map(i=>`${i}:${t.getPropertyValue(i)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}function Sf(e,t=1,n=null){Ue||(Ue=document.createElement("textarea"),document.body.appendChild(Ue));let{paddingSize:r,borderSize:o,boxSizing:s,contextStyle:i}=bf(e);Ue.setAttribute("style",`${i};${_f}`),Ue.value=e.value||e.placeholder||"";let l=Ue.scrollHeight;const c={};s==="border-box"?l=l+o:s==="content-box"&&(l=l-r),Ue.value="";let a=Ue.scrollHeight-r;if(t!==null){let f=a*t;s==="border-box"&&(f=f+r+o),l=Math.max(f,l),c.minHeight=`${f}px`}if(n!==null){let f=a*n;s==="border-box"&&(f=f+r+o),l=Math.min(f,l)}return c.height=`${l}px`,Ue.parentNode&&Ue.parentNode.removeChild(Ue),Ue=null,c}const vf={props:{title:{type:String,default:""},rows:{type:Number,default:1},hint:{type:String,default:""},id:{type:String,default:""},type:{type:String,default:"String"},content:{type:[String,Number,Boolean],default:""}},emits:["changeContent"],setup(e,{emit:t}){const n=Rt(),r=je(""),o=()=>{t("changeContent",{value:r.value.value,key:r.value.getAttribute("id"),type:r.value.getAttribute("class")}),l()},s=()=>{localStorage.getItem("history")||localStorage.setItem("history",JSON.stringify({new:[],old:[]}));const a=JSON.parse(localStorage.getItem("history")).new;if(a.length){const f=r.value.getAttribute("id");if(!f.includes("_")&&a[a.length-1][f]!==n.currentSource[f])n.editHistory(n.currentSource);else if(f.includes("_")){let p=f.split("_")[0],h=f.split("_")[1];a[a.length-1][p][h]!==n.currentSource[p][h]&&n.editHistory(n.currentSource)}}else n.editHistory(n.currentSource)},i=()=>r.value.style="",l=()=>{r.value.style.height=Sf(r.value).height};return{changeHistory:s,change:o,attr:r,adjustHeight:l,restoreHeight:i}}},wf=e=>(Jr("data-v-d16eba09"),e=e(),Wr(),e),Cf={class:"edit_input"},xf=wf(()=>j("i",null,":",-1)),Ef=["id","placeholder","rows","value"];function kf(e,t,n,r,o,s){return le(),pe("div",Cf,[j("span",null,[St(et(n.title),1),xf]),j("textarea",{id:n.id,class:Qe(n.type),placeholder:n.hint,rows:n.rows,value:n.content,ref:"attr",onInput:t[0]||(t[0]=(...i)=>r.change&&r.change(...i)),onBlur:t[1]||(t[1]=i=>{r.changeHistory(),r.restoreHeight()}),onFocus:t[2]||(t[2]=(...i)=>r.adjustHeight&&r.adjustHeight(...i))},null,42,Ef)])}const ki=Ie(vf,[["render",kf],["__scopeId","data-v-d16eba09"]]);function Rf(){const e=Rt(),t=Oe({currentSource:e.currentSource}),n=o=>{e.changeCurrentSourceValue(o)},r=o=>{try{if(o.includes("_")){let s=o.split("_")[0],i=o.split("_")[1],l=t.currentSource[s];return l?l[i]:null}else return t.currentSource[o]}catch{e.commit("clearEdit")}};return gn(()=>{t.currentSource=e.currentSource}),{...pt(t),upData:n,getContent:r}}const Tf={name:"editInputList",props:{data:{type:Array,required:!0}},components:{editInput:ki},setup(e){const{upData:t,getContent:n}=Rf(),r=Oe({data:e.data});return{...pt(r),upData:t,getContent:n}}},Pf={class:"main"};function Af(e,t,n,r,o,s){const i=ki;return le(),pe("div",Pf,[(le(!0),pe(xe,null,Xr(n.data,(l,c)=>(le(),jt(i,{key:c,id:l.id,type:l.type,hint:l.hint,title:l.title,rows:l.rows,content:r.getContent(l.id),onChangeContent:r.upData},null,8,["id","type","hint","title","rows","content","onChangeContent"]))),128))])}const Ri=Ie(Tf,[["render",Af]]),Of={base:{name:"基础",children:[{title:"源域名",rows:1,id:"bookSourceUrl",type:"String",hint:"<必填>通常填写网站主页,例: https://www.qidian.com"},{title:"源类型",rows:1,id:"bookSourceType",type:"Number",hint:"<必填>0:文本 1:音频 2:图片 3:文件(只提供下载的网站)"},{title:"源名称",rows:1,id:"bookSourceName",type:"String",hint:"<必填>会显示在源列表"},{title:"源分组",rows:1,id:"bookSourceGroup",type:"String",hint:"<选填>描述源的特征信息"},{title:"源注释",rows:1,id:"bookSourceComment",type:"String",hint:"<选填>描述源作者和状态"},{title:"书源变量",rows:1,id:"variableComment",type:"String",hint:"<选填>书源变量说明"},{title:"登录地址",rows:1,id:"loginUrl",type:"String",hint:"<选填>填写网站登录网址,仅在需要登录的源有用"},{title:"登录界面",rows:3,id:"loginUi",type:"String",hint:"<选填>自定义登录界面"},{title:"登录检测",rows:3,id:"loginCheckJs",type:"String",hint:"<选填>登录检测js"},{title:"封面解密",rows:3,id:"coverDecodeJs",type:"String",hint:"<选填>封面解密js"},{title:"并发率",rows:1,id:"concurrentRate",type:"String",hint:"<选填>并发率"},{title:"请求头",rows:3,id:"header",type:"String",hint:"<选 Line truncated
每行一条发现分类(网址域名可省略),例:
名称1::网址(Url)1
名称2::网址(Url)2
...`},{title:"列表规则",rows:1,id:"ruleExplore_bookList",type:"String",hint:"选择书籍节点 (规则结果为List<Element>)"},{title:"书名规则",rows:1,id:"ruleExplore_name",type:"String",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",rows:1,id:"ruleExplore_author",type:"String",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",rows:1,id:"ruleExplore_kind",type:"String",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",rows:1,id:"ruleExplore_wordCount",type:"String",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",rows:1,id:"ruleExplore_lastChapter",type:"String",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",rows:1,id:"ruleExplore_intro",type:"String",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",rows:1,id:"ruleExplore_coverUrl",type:"String",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"详情地址",rows:1,id:"ruleExplore_bookUrl",type:"String",hint:"选择书籍详情页网址 (规则结果为String类型的url)"}]},detail:{name:"详情",children:[{title:"预处理",rows:3,id:"ruleBookInfo_init",type:"String",hint:"用于加速详情信息检索,只支持AllInOne规则"},{title:"书名规则",rows:1,id:"ruleBookInfo_name",type:"String",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",rows:1,id:"ruleBookInfo_author",type:"String",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",rows:1,id:"ruleBookInfo_kind",type:"String",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",rows:1,id:"ruleBookInfo_wordCount",type:"String",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",rows:1,id:"ruleBookInfo_lastChapter",type:"String",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",rows:1,id:"ruleBookInfo_intro",type:"String",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",rows:1,id:"ruleBookInfo_coverUrl",type:"String",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"目录地址",rows:1,id:"ruleBookInfo_tocUrl",type:"String",hint:"选择书籍详情页网址 (规则结果为String类型的url, 与详情页相同时可省略)"},{title:"下载URL",rows:1,id:"ruleBookInfo_downloadUrls",type:"String",hint:"文件类书源下载地址 (规则结果为String类型的url, 多个链接返回数组)"},{title:"修改书籍",rows:1,id:"ruleBookInfo_canReName",type:"String",hint:"允许修改书名作者(规则结果为String类型, 默认不允许)"}]},directory:{name:"目录",children:[{title:"更新前JS",rows:3,id:"ruleToc_preUpdateJs",type:"String",hint:"更新前JS 动态更新书籍目录链接"},{title:"列表规则",rows:3,id:"ruleToc_chapterList",type:"String",hint:"选择目录列表的章节节点 (规则结果为List<Element>)"},{title:"章节名称",rows:1,id:"ruleToc_chapterName",type:"String",hint:"选择章节名称 (规则结果为String)"},{title:"章节地址",rows:1,id:"ruleToc_chapterUrl",type:"String",hint:"选择章节链接 (规则结果为String类型的Url)"},{title:"卷名标识",rows:1,id:"ruleToc_isVolume",type:"String",hint:"章节名称是否是卷名 (规则结果为Bool)"},{title:"收费标识",rows:1,id:"ruleToc_isVip",type:"String",hint:"章节是否为VIP章节 (规则结果为Bool)"},{title:"购买标识",rows:1,id:"ruleToc_isPay",type:"String",hint:"章节是否为已购买 (规则结果为Bool)"},{title:"章节信息",rows:1,id:"ruleToc_updateTime",type:"String",hint:"选择章节信息 (规则结果为String)"},{title:"翻页规则",rows:1,id:"ruleToc_nextTocUrl",type:"String",hint:"选择目录下一页链接 (规则结果为List<String>或String)"}]},content:{name:"正文",children:[{title:"脚本注入",rows:3,id:"ruleContent_webJs",type:"String",hint:"注入javascript,用于模拟鼠标点击等,必须有返回值,一般为String类型"},{title:"正文规则",rows:1,id:"ruleContent_content",type:"String",hint:"选择正文内容 (规则结果为String)"},{title:"翻页规则",rows:1,id:"ruleContent_nextContentUrl",type:"String",hint:"选择下一分页(不是下一章)链接 (规则结果为String类型的Url)"},{title:"资源正则",rows:1,id:"ruleContent_sourceRegex",type:"String",hint:"匹配资源的url特征,用于嗅探"},{title:"替换规则",rows:1,id:"ruleContent_replaceRegex",type:"String",hint:"多页内容合并后替换,用于正文净化"},{title:"图片样式",rows:1,id:"ruleContent_imageStyle",type:"String",hint:"FULL:铺满 不填:默认样式"},{title:"购买操作",rows:1,id:"ruleContent_payAction",type:"String",hint:"填写JavaScript 返回购买链接或者调用购买接口"},{title:"图片解密",rows:1,id:"ruleContent_imageDecode",type:"String",hint:"填写JavaScript 返回解密图片的bytes "}]},review:{name:"段评",children:[{title:"段评URL", Line truncated
名称2::链接2`},{title:"登录地址",rows:1,id:"loginUrl",type:"String",hint:"<选填>填写网站登录网址,仅在需要登录的源有用"},{title:"登录界面",rows:3,id:"loginUi",type:"String",hint:"<选填>自定义登录界面"},{title:"登录检测",rows:3,id:"loginCheckJs",type:"String",hint:"<选填>登录检测js"},{title:"封面解密",rows:3,id:"coverDecodeJs",type:"String",hint:"<选填>封面解密js"},{title:"请求头",rows:3,id:"header",type:"String",hint:"<选填>客户端标识"},{title:"变量说明",rows:1,id:"variableComment",type:"String",hint:"<选填>源变量说明"},{title:"并发率",rows:1,id:"concurrentRate",type:"String",hint:"<选填>并发率"}]},list:{name:"列表",children:[{title:"列表样式",rows:1,id:"articleStyle",type:"Number",hint:"<选填>0,1,2 (默认0)"},{title:"列表规则",rows:1,id:"ruleArticles",type:"String",hint:"规则结果为List<Element>"},{title:"翻页规则",rows:1,id:"ruleNextPage",type:"String",hint:"下一页链接 规则结果为List<String>或String"},{title:"标题规则",rows:1,id:"ruleTitle",type:"String",hint:"文章标题 规则结果为String"},{title:"时间规则",rows:1,id:"rulePubDate",type:"String",hint:"文章发布时间 规则结果为String"},{title:"描述规则",rows:1,id:"ruleDescription",type:"String",hint:"文章简要描述 规则结果为String"},{title:"图片规则",rows:1,id:"ruleImage",type:"String",hint:"文章图片链接 规则结果为String"},{title:"链接规则",rows:1,id:"ruleLink",type:"String",hint:"文章链接 规则结果为String"}]},webView:{name:"WebView",children:[{title:"启用JS",rows:1,id:"enableJs",type:"Number",hint:"启用: true 关闭: false (可选,默认true)"},{title:"加载地址",rows:1,id:"loadWithBaseUrl",type:"Number",hint:"启用: true 关闭: false (可选,默认true)"},{title:"内容规则",rows:1,id:"ruleContent",type:"String",hint:"文章正文"},{title:"样式规则",rows:3,id:"style",type:"String",hint:"文章正文样式 填写css"},{title:"注入规则",rows:3,id:"injectJs",type:"String",hint:"注入网页的JavaScript"},{title:"黑名单",rows:1,id:"contentBlacklist",type:"String",hint:"webView链接加载黑名单,英文逗号隔开"},{title:"白名单",rows:1,id:"contentWhitelist",type:"String",hint:"webView链接加载白名单,英文逗号隔开"}]},other:{name:"其他",children:[{title:"启用",rows:1,id:"enabled",type:"Boolean",hint:"启用: true 关闭: false (可选,默认true)"},{title:"Cookie",rows:1,id:"enabledCookieJar",type:"Boolean",hint:"保存返回头的Cookie 启用: true 关闭: false (可选,默认false)"},{title:"单URL",rows:1,id:"singleUrl",type:"Boolean",hint:"启用: true 关闭: false (可选,默认false)"},{title:"排序编号",rows:1,id:"customOrder",type:"Number",hint:"整数: 0~N (可选,默认0) | 数字越小越靠前"}]}};const Nf={components:{editMenu:Ei,editOut:vi,editInputList:Ri},setup(){const e=Oe({config:{},selectTabKey:"base"});/bookSource/.test(location.href)?(e.config=Of,document.title="书源编辑"):(e.config=If,document.title="订阅源编辑");const t=r=>e.selectTabKey=r,n=be(()=>e.config[e.selectTabKey].children);return mn(()=>{}),{...pt(e),changeSelectTabKey:t,currentTabData:n}}},Uf={class:"left"},Mf=["onClick"];function $f(e,t,n,r,o,s){const i=Ri,l=Ei,c=vi;return le(),pe(xe,null,[j("div",Uf,[j("div",null,[j("ul",null,[(le(!0),pe(xe,null,Xr(Object.entries(e.config),([a,f])=>(le(),pe("li",{onClick:p=>r.changeSelectTabKey(a),key:a,class:Qe(a===e.selectTabKey?"active":"")},et(f.name),11,Mf))),128))])]),ge(i,{data:r.currentTabData},null,8,["data"])]),ge(l),ge(c)],64)}const os=Ie(Nf,[["render",$f],["__scopeId","data-v-e9dfd270"]]),Lf=[{path:"/bookSource",name:"book-home",component:os},{path:"/rssSource",name:"rss-home",component:os}],Bf=da({history:Tu(),routes:Lf});ou(uu).use(va).use(Bf).mount("#app");
@@ -0,0 +1 @@
.editor{display:flex;align-items:stretch;height:100vh}.left{width:calc(50% - 55px);min-width:500px;display:inline-block}.main{width:100%;height:calc(100vh - 64px);overflow-y:auto}textarea{min-height:20px;flex:1;outline:none;border-radius:4px;border:#ccc 1px solid;font-size:14px;font-family:Cascadia,Microsoft YaHei UI,Arial,serif;line-height:20px;padding:10px}textarea[data-v-d8aca153]{font-size:14px}input[data-v-d61c2689]{outline:none;height:25px;font-size:16px}textarea[data-v-d61c2689]{font-size:14px}.search[data-v-cf831c84]{border:1px solid #dddddd;border-radius:4px}input[data-v-cf831c84]{text-align:center;font-size:16px;height:25px;outline:none}.tool[data-v-cf831c84]{display:flex;justify-content:space-around;padding:4px 0}.tool button[data-v-cf831c84]{border-radius:4px;padding:5px;outline:none;border:none;flex:1;margin:0 2px}.tool button[data-v-cf831c84]:hover{background-color:#ddd}input[type=checkbox][data-v-cf831c84]{transform:scale(2);margin:0 15px}.book_item[data-v-cf831c84]{overflow:hidden;display:flex;align-items:center;margin-top:10px;padding:10px;cursor:pointer;background-color:#eee}.book_active[data-v-cf831c84]{background-color:#32cd32}.book_index[data-v-cf831c84]{width:auto;height:30px;text-align:center;line-height:30px;border-radius:8px;padding:0 10px;background-color:#ffb6c1}.book_info[data-v-cf831c84]{display:flex;justify-content:space-between}.source_list[data-v-cf831c84]{height:calc(100vh - 125px);overflow-y:auto}a[data-v-0b73ba44]{display:block;height:25px;transition:margin-left .3s ease}a[data-v-0b73ba44]:hover{color:red;margin-left:10px}code[data-v-0b73ba44]{display:inline-block;font-size:16px;font-family:Cascadia Mono,JetBrains Mono,Microsoft YaHei UI,serif;background-color:#f3f4f4;border-radius:4px}.author[data-v-0b73ba44]{position:fixed;right:20px;bottom:20px}.author a[data-v-0b73ba44]{padding:5px 10px;border-radius:4px}.author a[data-v-0b73ba44]:hover{box-shadow:0 0 3px 3px #ccc;background-color:#ddd}.out{min-width:620px;flex:1;display:flex;flex-flow:column}.out .box{display:flex;flex:1;flex-flow:column}.success[data-v-162bb8f8]{z-index:3;position:fixed;top:100px;left:50%;transform:translate(-50%);background-color:#7fffd4;padding:10px;border-radius:8px;color:#333}p[data-v-162bb8f8]{margin:0}.warm[data-v-cfdb9dd5]{position:fixed;top:100px;left:50%;transform:translate(-50%);color:#eee;background-color:#ff1d5e;padding:20px;border-radius:8px;font-size:18px;z-index:100}button[data-v-cfdb9dd5]{float:right;width:70px;height:35px;outline:none;border:unset;border-radius:8px;font-size:14px;transition:background-color .3s ease}button[data-v-cfdb9dd5]:hover{color:#333;background-color:#7fffd4}.fixed[data-v-ef02950c]{position:fixed;top:100px;left:50%;transform:translate(-50%)}.half-circle-spinner[data-v-ef02950c],.half-circle-spinner *[data-v-ef02950c]{box-sizing:border-box}.half-circle-spinner[data-v-ef02950c]{width:60px;height:60px;border-radius:100%;position:relative}.half-circle-spinner .circle[data-v-ef02950c]{content:"";position:absolute;width:100%;height:100%;border-radius:100%;border:6px solid transparent}.half-circle-spinner .circle.circle-1[data-v-ef02950c]{border-top-color:#ff1d5e;animation:half-circle-spinner-animation-ef02950c 1s infinite}.half-circle-spinner .circle.circle-2[data-v-ef02950c]{border-bottom-color:#ff1d5e;animation:half-circle-spinner-animation-ef02950c 1s infinite alternate}@keyframes half-circle-spinner-animation-ef02950c{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.menu{display:flex;flex-direction:column;justify-content:center}button[data-v-138678d8]{width:100px;height:50px;margin:5px;outline:none;padding:10px;font-size:16px;border-radius:4px;box-sizing:border-box;border:#333333 solid 1px;background-color:transparent;transition:all .3s ease;overflow:hidden}button span[data-v-138678d8]{display:inline-block;transform:translateY(20px);opacity:0;font-size:12px;transition:all .3s ease}button[data-v-138678d8]:hover{color:#fff;background-color:gray}button:hover span[data-v-138678d8]{transform:translateY(0);opacity:1}span[data-v-d16eba09]{display:flex;justify-content:space-around;width:70px;white-space:nowrap}span i[data-v-d16eba09]{font-style:normal}.edit_input[data-v-d16eba09]{display:flex;justify-content:space-between;align-items:center;margin:10px 5px}a{text-decoration:none;color:#333}ul,body{margin:0;padding:0}ul{width:100%;height:40px;display:flex}ul li{display:block;text-align:center;line-height:40px;width:16%;list-style:none;cursor:pointer}ul li:hover{color:red}.active{color:#fff!important;background-color:#80808075;border-bottom:unset!important}ul li[data-v-e9dfd270]{border-bottom:#333333 2px solid}a[data-v-e9dfd270]{font-size:18px;color:#00f}
@@ -1 +0,0 @@
.editor{display:flex;align-items:stretch;height:100vh}.left{width:calc(50% - 55px);min-width:500px;display:inline-block}.main{width:100%;height:calc(100vh - 64px);overflow-y:auto}textarea{min-height:20px;flex:1;outline:none;border-radius:4px;border:1px solid #ccc;font-size:14px;font-family:Cascadia,Microsoft YaHei UI,Arial,serif;line-height:20px;padding:10px 10px 10px}.fixed[data-v-ab8a8a34]{position:fixed;top:100px;left:50%;transform:translateX(-50%)}.half-circle-spinner [data-v-ab8a8a34],.half-circle-spinner[data-v-ab8a8a34]{box-sizing:border-box}.half-circle-spinner[data-v-ab8a8a34]{width:60px;height:60px;border-radius:100%;position:relative}.half-circle-spinner .circle[data-v-ab8a8a34]{content:"";position:absolute;width:100%;height:100%;border-radius:100%;border:6px solid transparent}.half-circle-spinner .circle.circle-1[data-v-ab8a8a34]{border-top-color:#ff1d5e;animation:half-circle-spinner-animation-ab8a8a34 1s infinite}.half-circle-spinner .circle.circle-2[data-v-ab8a8a34]{border-bottom-color:#ff1d5e;animation:half-circle-spinner-animation-ab8a8a34 1s infinite alternate}@keyframes half-circle-spinner-animation-ab8a8a34{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.warm[data-v-de5a7c30]{position:fixed;top:100px;left:50%;transform:translateX(-50%);color:#eee;background-color:#ff1d5e;padding:20px;border-radius:8px;font-size:18px;z-index:100}button[data-v-de5a7c30]{float:right;width:70px;height:35px;outline:none;border:unset;border-radius:8px;font-size:14px;transition:background-color .3s ease}.success[data-v-bef92f74],button[data-v-de5a7c30]:hover{color:#333;background-color:#7fffd4}.success[data-v-bef92f74]{z-index:3;position:fixed;top:100px;left:50%;transform:translateX(-50%);padding:10px;border-radius:8px}p[data-v-bef92f74]{margin:0}.menu{display:flex;flex-direction:column;justify-content:center}button[data-v-c9cf95ee]{width:100px;height:50px;margin:5px;outline:none;padding:10px;font-size:16px;border-radius:4px;box-sizing:border-box;border:1px solid #333;background-color:transparent;transition:all .3s ease;overflow:hidden}button span[data-v-c9cf95ee]{display:inline-block;transform:translateY(20px);opacity:0;font-size:12px;transition:all .3s ease}button[data-v-c9cf95ee]:hover{color:#fff;background-color:gray}button:hover span[data-v-c9cf95ee]{transform:translateY(0);opacity:1}textarea[data-v-554d8227]{font-size:14px}input[data-v-6969c1de]{outline:none;height:25px;font-size:16px}textarea[data-v-6969c1de]{font-size:14px}.search[data-v-79a26999]{border:1px solid #ddd;border-radius:4px}input[data-v-79a26999]{text-align:center;font-size:16px;height:25px;outline:none}.tool[data-v-79a26999]{display:flex;justify-content:space-around;padding:4px 0}.tool button[data-v-79a26999]{border-radius:4px;padding:5px;outline:none;border:none;flex:1;margin:0 2px}.tool button[data-v-79a26999]:hover{background-color:#ddd}input[type=checkbox][data-v-79a26999]{transform:scale(2);margin:0 15px 0}.book_item[data-v-79a26999]{overflow:hidden;display:flex;align-items:center;margin-top:10px;padding:10px;cursor:pointer;background-color:#eee}.book_active[data-v-79a26999]{background-color:#32cd32}.book_index[data-v-79a26999]{width:auto;height:30px;text-align:center;line-height:30px;border-radius:8px;padding:0 10px;background-color:#ffb6c1}.book_info[data-v-79a26999]{display:flex;justify-content:space-between}.source_list[data-v-79a26999]{height:calc(100vh - 125px);overflow-y:auto}a[data-v-7ac1e65e]{display:block;height:25px;transition:margin-left .3s ease}a[data-v-7ac1e65e]:hover{color:red;margin-left:10px}code[data-v-7ac1e65e]{display:inline-block;font-size:16px;font-family:Cascadia Mono,JetBrains Mono,Microsoft YaHei UI,serif;background-color:#f3f4f4;border-radius:4px}.author[data-v-7ac1e65e]{position:fixed;right:20px;bottom:20px}.author a[data-v-7ac1e65e]{padding:5px 10px;border-radius:4px}.author a[data-v-7ac1e65e]:hover{box-shadow:0 0 3px 3px #ccc;background-color:#ddd}.out{min-width:620px}.out,.out .box{flex:1;display:flex;flex-flow:column}span[data-v-915519b0]{display:flex;justify-content:space-around;width:70px;white-space:nowrap}span i[data-v-915519b0]{font-style:normal}.edit_input[data-v-915519b0]{display:flex;justify-content:space-between;align-items:center;margin:10px 5px}a{text-decoration:none;color:#333}body,ul{margin:0;padding:0}ul{width:100%;height:40px;display:flex}ul li{display:block;text-align:center;line-height:40px;width:16%;list-style:none;cursor:pointer}ul li:hover{color:red}.active{color:#fff!important;background-color:hsla(0,0%,50%,.459);border-bottom:unset!important}ul li[data-v-ac6d92b6]{border-bottom:2px solid #333}a[data-v-ac6d92b6]{font-size:18px;color:blue}
+1 -1
View File
@@ -1 +1 @@
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="./favicon.ico"><title>legado_web_source_editor</title><script defer="defer" src="./js/chunk-vendors.f2d92146.js"></script><script defer="defer" src="./js/app.e79f5fd2.js"></script><link href="./css/app.b57b5dad.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but legado_web_source_editor doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
<!doctype html><html lang=""><head><meta charset="UTF-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>legado_web_vue</title><script type="module" crossorigin src="./assets/index-196e7354.js"></script><link rel="stylesheet" href="./assets/index-ed8d6ebc.css"></head><body><div id="app"></div></body></html>
@@ -1 +0,0 @@
(function(){"use strict";var e={9700:function(e,t,r){var n=r(9963),o=r(6252);const i={class:"editor"};function l(e,t,r,n,l,a){const c=(0,o.up)("router-view");return(0,o.wg)(),(0,o.iD)("div",i,[(0,o.Wm)(c)])}var a={setup(){}},c=r(3744);const s=(0,c.Z)(a,[["render",l]]);var u=s,d=r(2201),p=r(3577);const h={class:"left"},g=["onClick"];function S(e,t,r,n,i,l){const a=(0,o.up)("edit-input-list"),c=(0,o.up)("edit-menu"),s=(0,o.up)("edit-out");return(0,o.wg)(),(0,o.iD)(o.HY,null,[(0,o._)("div",h,[(0,o._)("div",null,[(0,o._)("ul",null,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(Object.entries(e.config),(([t,r])=>((0,o.wg)(),(0,o.iD)("li",{onClick:e=>n.changeSelectTabKey(t),key:t,class:(0,p.C_)(t===e.selectTabKey?"active":"")},(0,p.zw)(r.name),11,g)))),128))])]),(0,o.Wm)(a,{data:n.currentTabData},null,8,["data"])]),(0,o.Wm)(c),(0,o.Wm)(s)],64)}var w=r(2262);r(7658);const y=e=>((0,o.dD)("data-v-c9cf95ee"),e=e(),(0,o.Cn)(),e),m={class:"menu"},v=y((()=>(0,o._)("span",null,"Ctrl+P",-1))),b=y((()=>(0,o._)("span",null,"Ctrl+E",-1))),f=y((()=>(0,o._)("span",null,"Ctrl+Z",-1))),_=y((()=>(0,o._)("span",null,"Ctrl+Enter",-1))),k=y((()=>(0,o._)("span",null,"Ctrl+S",-1)));function C(e,t,r,n,i,l){const a=(0,o.up)("edit-loading"),c=(0,o.up)("edit-warn"),s=(0,o.up)("edit-success");return(0,o.wg)(),(0,o.iD)("div",m,[(0,o._)("div",null,[n.showLoading?((0,o.wg)(),(0,o.j4)(a,{key:0})):(0,o.kq)("",!0),(0,o.Wm)(c,{text:n.warnText,"is-show":n.warnShow,onChangeShow:n.changeShow},null,8,["text","is-show","onChangeShow"]),n.successShow?((0,o.wg)(),(0,o.j4)(s,{key:1,isShow:n.successShow,onChangeShow:n.changeSuccessShow,text:n.successText},null,8,["isShow","onChangeShow","text"])):(0,o.kq)("",!0)]),(0,o._)("button",{onClick:t[0]||(t[0]=(...e)=>n.push&&n.push(...e)),title:"Ctrl+P"},[(0,o.Uk)("⇈推送源 "),v]),(0,o._)("button",{onClick:t[1]||(t[1]=(...e)=>n.pull&&n.pull(...e))},"⇊拉取源"),(0,o._)("button",{onClick:t[2]||(t[2]=(...e)=>n.conver2Tab&&n.conver2Tab(...e)),title:"Ctrl+E"},[(0,o.Uk)(" ⋙生成源"),b]),(0,o._)("button",{onClick:t[3]||(t[3]=(...e)=>n.conver2Source&&n.conver2Source(...e))},"⋘编辑源"),(0,o._)("button",{onClick:t[4]||(t[4]=(...e)=>n.clearEdit&&n.clearEdit(...e))},"✗清空表单"),(0,o._)("button",{onClick:t[5]||(t[5]=(...e)=>n.undo&&n.undo(...e)),title:"Ctrl+Z"},[(0,o.Uk)("↶撤销操作"),f]),(0,o._)("button",{onClick:t[6]||(t[6]=(...e)=>n.redo&&n.redo(...e))},"↷重做操作"),(0,o._)("button",{onClick:t[7]||(t[7]=(...e)=>n.debug&&n.debug(...e)),title:"Ctrl+Enter"},[(0,o.Uk)(" ⇏调试源 "),_]),(0,o._)("button",{onClick:t[8]||(t[8]=(...e)=>n.saveSource&&n.saveSource(...e)),title:"Ctrl+S"},[(0,o.Uk)(" ✓保存源"),k])])}function U(e,t){return fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then((e=>e.json()))}function x(e){return fetch(e).then((e=>e.json()))}function T(e,t=!0){let r=/bookSource/.test(location.href),n=`http://${localStorage.getItem("url")||location.host}/`,o=r?"BookSource":"RssSource";return`${n}${e}${o}${t?"s":""}`}function D(){return x(T("get"))}function N(e){return U(T("save"),e)}function I(e){return U(T("save",!1),e)}function B(e){return U(T("delete"),e)}var E=r(3907),L=(0,E.MT)({state:{url:localStorage.getItem("url")||"",bookSources:[],rssSources:[],currentSource:{},currentTab:localStorage.getItem("tabName")||"editTab",editTabSource:{},deBugMsg:"",searchKey:""},getters:{sources(e){return/bookSource/.test(location.href)?e.bookSources:e.rssSources}},mutations:{changeSearchKey(e,t){e.searchKey=t},saveSources(e,t){/bookSource/.test(location.href)?e.bookSources=t:e.rssSources=t},deleteSources(e,t){let r=/bookSource/.test(location.href)?e.bookSources:e.rssSources;t.forEach((e=>{let t=r.indexOf(e);t>-1&&r.splice(t,1)}))},saveCurrentSource(e){let t,r,n=e.currentSource;/bookSource/.test(location.href)?(t=e.bookSources,r="bookSourceUrl"):(t=e.rssSources,r="sourceUrl");let o=t.findIndex((e=>e[r]===n[r]));n=JSON.parse(JSON.stringify(n)),o>-1?t.splice(o,1,n):t.push(n)},changeCurrentSource(e,t){const r=JSON.stringify(t);e.currentSource=JSON.parse(r)},changeCurrentSourceValue(e,t){let r=t.value,n={true:!0,false:!1};if("Boolean"===t.type&&(r=n[r]),"Number"===t.type&&(r=Number(r)),t.key.includes("_")){let n=t.key.split("_")[0],o=t.key.split("_")[1],i={};i[o]=r,e.currentSource[n]=Object.assign(e.currentSource[n]||{},i)}else e.currentSource[t.key]=r;e.currentSource.lastUpdateTime=(new Date).getTime(),/bookSource/.test(location.href)&&(e.currentSource["ruleToc"]=e.currentSource["ruleToc"]||{})},changeTabName(e,t){e.currentTab=t,localStorage.setItem("tabName",t)},changeEditTabSource(e,t){const r=JSON.stringify(t);e.editTabSource=JSON.parse(r)},editHistory(e,t){let r;if(localStorage.getItem("history"))r=JSON.parse(localStorage.getItem("history")),r.new.push(t),r.new.length>50&&r.new.shift(),r.old.length>50&&r.old.shift(),localStorage.setItem("history",JSON.stringify(r));else{const e={new:[t],old:[]};localStorage.setItem("history",JSON.stringify(e))}},editHiLine truncated
@@ -1,13 +0,0 @@
(self["webpackChunklegado_web_source_editor"]=self["webpackChunklegado_web_source_editor"]||[]).push([[998],{2262:function(t,e,n){"use strict";n.d(e,{B:function(){return s},BK:function(){return Ht},Bj:function(){return i},Fl:function(){return Zt},IU:function(){return Tt},Jd:function(){return S},PG:function(){return jt},SU:function(){return Gt},Um:function(){return St},WL:function(){return qt},X$:function(){return R},X3:function(){return At},XI:function(){return Dt},Xl:function(){return It},dq:function(){return Nt},iH:function(){return Ut},j:function(){return E},lk:function(){return O},nZ:function(){return u},qj:function(){return Ct},qq:function(){return w},yT:function(){return Pt}});var r=n(3577);let o;class i{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=o,!t&&o&&(this.index=(o.scopes||(o.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=o;try{return o=this,t()}finally{o=e}}else 0}on(){o=this}off(){o=this.parent}stop(t){if(this._active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.parent=void 0,this._active=!1}}}function s(t){return new i(t)}function c(t,e=o){e&&e.active&&e.effects.push(t)}function u(){return o}const l=t=>{const e=new Set(t);return e.w=0,e.n=0,e},a=t=>(t.w&m)>0,f=t=>(t.n&m)>0,p=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=m},d=t=>{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r<e.length;r++){const o=e[r];a(o)&&!f(o)?o.delete(t):e[n++]=o,o.w&=~m,o.n&=~m}e.length=n}},h=new WeakMap;let v=0,m=1;const g=30;let y;const b=Symbol(""),_=Symbol("");class w{constructor(t,e=null,n){this.fn=t,this.scheduler=e,this.active=!0,this.deps=[],this.parent=void 0,c(this,n)}run(){if(!this.active)return this.fn();let t=y,e=k;while(t){if(t===this)return;t=t.parent}try{return this.parent=y,y=this,k=!0,m=1<<++v,v<=g?p(this):x(this),this.fn()}finally{v<=g&&d(this),m=1<<--v,y=this.parent,k=e,this.parent=void 0,this.deferStop&&this.stop()}}stop(){y===this?this.deferStop=!0:this.active&&(x(this),this.onStop&&this.onStop(),this.active=!1)}}function x(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let k=!0;const C=[];function S(){C.push(k),k=!1}function O(){const t=C.pop();k=void 0===t||t}function E(t,e,n){if(k&&y){let e=h.get(t);e||h.set(t,e=new Map);let r=e.get(n);r||e.set(n,r=l());const o=void 0;j(r,o)}}function j(t,e){let n=!1;v<=g?f(t)||(t.n|=m,n=!a(t)):n=!t.has(y),n&&(t.add(y),y.deps.push(t))}function R(t,e,n,o,i,s){const c=h.get(t);if(!c)return;let u=[];if("clear"===e)u=[...c.values()];else if("length"===n&&(0,r.kJ)(t)){const t=Number(o);c.forEach(((e,n)=>{("length"===n||n>=t)&&u.push(e)}))}else switch(void 0!==n&&u.push(c.get(n)),e){case"add":(0,r.kJ)(t)?(0,r.S0)(n)&&u.push(c.get("length")):(u.push(c.get(b)),(0,r._N)(t)&&u.push(c.get(_)));break;case"delete":(0,r.kJ)(t)||(u.push(c.get(b)),(0,r._N)(t)&&u.push(c.get(_)));break;case"set":(0,r._N)(t)&&u.push(c.get(b));break}if(1===u.length)u[0]&&P(u[0]);else{const t=[];for(const e of u)e&&t.push(...e);P(l(t))}}function P(t,e){const n=(0,r.kJ)(t)?t:[...t];for(const r of n)r.computed&&A(r,e);for(const r of n)r.computed||A(r,e)}function A(t,e){(t!==y||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function T(t,e){var n;return null===(n=h.get(t))||void 0===n?void 0:n.get(e)}const I=(0,r.fY)("__proto__,__v_isRef,__isVue"),F=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(r.yk)),M=J(),L=J(!1,!0),$=J(!0),N=U();function U(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=Tt(this);for(let e=0,o=this.length;e<o;e++)E(n,"get",e+"");const r=n[e](...t);return-1===r||!1===r?n[e](...t.map(Tt)):r}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){S();const n=Tt(this)[e].apply(this,t);return O(),n}})),t}function D(t){const e=Tt(this);return E(e,"has",t),e.hasOwnProperty(t)}function J(t=!1,e=!1){return function(n,o,i){if("__v_isReactive"===o)return!t;if("__v_isReadonly"===o)return t;if("__v_isShallow"===o)return e;if("__v_raw"===o&&i===(t?e?wt:_t:e?bt:yt).get(n))return n;const s=(0,r.kJ)(n);if(!t){if(s&&(0,r.RI)(N,o))return Reflect.get(N,o,i);if("hasOwnProperty"===o)return D}const c=Reflect.get(n,o,i);return((0,r.yk)(o)?F.has(o):I(o))?c:(t||E(n,"get",o),e?c:Nt(c)?s&&(0,r.S0)(o)?c:c.value:(0,r.Kn)(c)?t?Ot(c):Ct(c):c)}}const V=B(),G=B(!0);function B(t=!1){return function(e,n,o,i){let s=e[n];if(Rt(s)&&Nt(s)&&!Nt(o))return!1;if(!t&&(Pt(o)||Rt(o)||(s=Tt(s),o=Tt(o)),!(0,r.kJ)(e)&&Nt(s)&&!Nt(o)))return s.value=o,!0;const c=(0,r.kJ)(e)&&(0,r.S0)(n)?Number(n)<e.length:(0,r.RI)(e,n),u=Reflect.set(e,n,o,i);return eLine truncated
/*!
* vuex v4.1.0
* (c) 2022 Evan You
* @license MIT
*/
var m="store";function g(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function y(t){return null!==t&&"object"===typeof t}function b(t){return t&&"function"===typeof t.then}function _(t,e){return function(){return t(e)}}function w(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function x(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;C(t,n,[],t._modules.root,!0),k(t,n,e)}function k(t,e,n){var i=t._state,s=t._scope;t.getters={},t._makeLocalGettersCache=Object.create(null);var c=t._wrappedGetters,u={},l={},a=(0,o.B)(!0);a.run((function(){g(c,(function(e,n){u[n]=_(e,t),l[n]=(0,r.Fl)((function(){return u[n]()})),Object.defineProperty(t.getters,n,{get:function(){return l[n].value},enumerable:!0})}))})),t._state=(0,o.qj)({data:e}),t._scope=a,t.strict&&P(t),i&&n&&t._withCommit((function(){i.data=null})),s&&s.stop()}function C(t,e,n,r,o){var i=!n.length,s=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[s],t._modulesNamespaceMap[s]=r),!i&&!o){var c=A(e,n.slice(0,-1)),u=n[n.length-1];t._withCommit((function(){c[u]=r.state}))}var l=r.context=S(t,s,n);r.forEachMutation((function(e,n){var r=s+n;E(t,r,e,l)})),r.forEachAction((function(e,n){var r=e.root?n:s+n,o=e.handler||e;j(t,r,o,l)})),r.forEachGetter((function(e,n){var r=s+n;R(t,r,e,l)})),r.forEachChild((function(r,i){C(t,e,n.concat(i),r,o)}))}function S(t,e,n){var r=""===e,o={dispatch:r?t.dispatch:function(n,r,o){var i=T(n,r,o),s=i.payload,c=i.options,u=i.type;return c&&c.root||(u=e+u),t.dispatch(u,s)},commit:r?t.commit:function(n,r,o){var i=T(n,r,o),s=i.payload,c=i.options,u=i.type;c&&c.root||(u=e+u),t.commit(u,s,c)}};return Object.defineProperties(o,{getters:{get:r?function(){return t.getters}:function(){return O(t,e)}},state:{get:function(){return A(t.state,n)}}}),o}function O(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(o){if(o.slice(0,r)===e){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return t.getters[o]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function E(t,e,n,r){var o=t._mutations[e]||(t._mutations[e]=[]);o.push((function(e){n.call(t,r.state,e)}))}function j(t,e,n,r){var o=t._actions[e]||(t._actions[e]=[]);o.push((function(e){var o=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return b(o)||(o=Promise.resolve(o)),t._devtoolHook?o.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):o}))}function R(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function P(t){(0,r.YP)((function(){return t._state.data}),(function(){0}),{deep:!0,flush:"sync"})}function A(t,e){return e.reduce((function(t,e){return t[e]}),t)}function T(t,e,n){return y(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}var I="vuex bindings",F="vuex:mutations",M="vuex:actions",L="vuex",$=0;function N(t,e){v({id:"org.vuejs.vuex",app:t,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[I]},(function(n){n.addTimelineLayer({id:F,label:"Vuex Mutations",color:U}),n.addTimelineLayer({id:M,label:"Vuex Actions",color:U}),n.addInspector({id:L,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===t&&n.inspectorId===L)if(n.filter){var r=[];q(r,e._modules.root,n.filter,""),n.rootNodes=r}else n.rootNodes=[B(e._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===t&&n.inspectorId===L){var r=n.nodeId;O(e,r),n.state=H(W(e._modules,r),"root"===r?e.getters:e._makeLocalGettersCache,r)}})),n.on.editInspectorState((function(n){if(n.app===t&&n.inspectorId===L){var r=n.nodeId,o=n.path;"root"!==r&&(o=r.split("/").filter(Boolean).concat(o)),e._withCommit((function(){n.set(e._state.data,o,n.state.value)}))}})),e.subscribe((function(t,e){var r={};t.payload&&(r.payload=t.payload),r.state=e,n.notifyComponentUpdate(),n.sendInspectorTree(L),n.sendInspectorState(L),n.addTimelineEvent({layerId:F,event:{time:Date.now(),title:t.type,data:r}})})),e.subscribeAction({before:function(t,e){var r={};t.payload&&(r.payload=t.payload),t._id=$++,t._time=Date.now(),r.state=e,n.addTimelineEvent({layerId:M,event:{time:t._time,title:t.type,groupId:t._id,subtitle:"start",data:r}})},after:function(t,e){var r={},o=Date.now()-t._time;r.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},t.payload&&(r.payload=t.payload),r.state=e,n.addTimelineEvent({layerId:M,event:{time:Date.now(),title:t.type,groupId:t._id,subtitle:"end",data:r}})}})}))}var U=8702998,D=6710886,J=16777215,V={label:"namespaced",textColor:J,backgroundColor:D};function G(t){return t&&"root"!=Line truncated
/*!
* vue-router v4.1.6
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/
const i="undefined"!==typeof window;function s(t){return t.__esModule||"Module"===t[Symbol.toStringTag]}const c=Object.assign;function u(t,e){const n={};for(const r in e){const o=e[r];n[r]=a(o)?o.map(t):t(o)}return n}const l=()=>{},a=Array.isArray;const f=/\/$/,p=t=>t.replace(f,"");function d(t,e,n="/"){let r,o={},i="",s="";const c=e.indexOf("#");let u=e.indexOf("?");return c<u&&c>=0&&(u=-1),u>-1&&(r=e.slice(0,u),i=e.slice(u+1,c>-1?c:e.length),o=t(i)),c>-1&&(r=r||e.slice(0,c),s=e.slice(c,e.length)),r=w(null!=r?r:e,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:s}}function h(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function v(t,e){return e&&t.toLowerCase().startsWith(e.toLowerCase())?t.slice(e.length)||"/":t}function m(t,e,n){const r=e.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&g(e.matched[r],n.matched[o])&&y(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function g(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function y(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!b(t[n],e[n]))return!1;return!0}function b(t,e){return a(t)?_(t,e):a(e)?_(e,t):t===e}function _(t,e){return a(e)?t.length===e.length&&t.every(((t,n)=>t===e[n])):1===t.length&&t[0]===e}function w(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/");let o,i,s=n.length-1;for(o=0;o<r.length;o++)if(i=r[o],"."!==i){if(".."!==i)break;s>1&&s--}return n.slice(0,s).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var x,k;(function(t){t["pop"]="pop",t["push"]="push"})(x||(x={})),function(t){t["back"]="back",t["forward"]="forward",t["unknown"]=""}(k||(k={}));function C(t){if(!t)if(i){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return"/"!==t[0]&&"#"!==t[0]&&(t="/"+t),p(t)}const S=/^[^#]+#/;function O(t,e){return t.replace(S,"#")+e}function E(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const j=()=>({left:window.pageXOffset,top:window.pageYOffset});function R(t){let e;if("el"in t){const n=t.el,r="string"===typeof n&&n.startsWith("#");0;const o="string"===typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;e=E(o,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(null!=e.left?e.left:window.pageXOffset,null!=e.top?e.top:window.pageYOffset)}function P(t,e){const n=history.state?history.state.position-e:-1;return n+t}const A=new Map;function T(t,e){A.set(t,e)}function I(t){const e=A.get(t);return A.delete(t),e}let F=()=>location.protocol+"//"+location.host;function M(t,e){const{pathname:n,search:r,hash:o}=e,i=t.indexOf("#");if(i>-1){let e=o.includes(t.slice(i))?t.slice(i).length:1,n=o.slice(e);return"/"!==n[0]&&(n="/"+n),v(n,"")}const s=v(n,t);return s+r+o}function L(t,e,n,r){let o=[],i=[],s=null;const u=({state:i})=>{const c=M(t,location),u=n.value,l=e.value;let a=0;if(i){if(n.value=c,e.value=i,s&&s===u)return void(s=null);a=l?i.position-l.position:0}else r(c);o.forEach((t=>{t(n.value,u,{delta:a,type:x.pop,direction:a?a>0?k.forward:k.back:k.unknown})}))};function l(){s=n.value}function a(t){o.push(t);const e=()=>{const e=o.indexOf(t);e>-1&&o.splice(e,1)};return i.push(e),e}function f(){const{history:t}=window;t.state&&t.replaceState(c({},t.state,{scroll:j()}),"")}function p(){for(const t of i)t();i=[],window.removeEventListener("popstate",u),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",u),window.addEventListener("beforeunload",f),{pauseListeners:l,listen:a,destroy:p}}function $(t,e,n,r=!1,o=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:o?j():null}}function N(t){const{history:e,location:n}=window,r={value:M(t,n)},o={value:e.state};function i(r,i,s){const c=t.indexOf("#"),u=c>-1?(n.host&&document.querySelector("base")?t:t.slice(c))+r:F()+t+r;try{e[s?"replaceState":"pushState"](i,"",u),o.value=i}catch(l){console.error(l),n[s?"replace":"assign"](u)}}function s(t,n){const s=c({},e.state,$(o.value.back,t,o.value.forward,!0),n,{position:o.value.position});i(t,s,!0),r.value=t}function u(t,n){const s=c({},o.value,e.state,{forward:t,scroll:j()});i(s.current,s,!0);const u=c({},$(r.value,t,null),{position:s.position+1},n);i(t,u,!1),r.value=t}return o.value||i(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0),{location:r,state:o,push:u,replace:s}}function U(t){t=C(t);const e=N(t),n=L(t,e.state,e.location,e.replace);function r(t,e=!0){e||n.pauseListeners(),history.go(t)}const o=c({location:"",base:t,go:r,createHref:O.bind(null,t)},e,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>e.state.value}),o}function D(t){return t=location.host?t||locatioLine truncated