2 lines
29 KiB
JavaScript
2 lines
29 KiB
JavaScript
|
|
import{d as e,r as t,a,c as n,o as l,b as r,e as i,w as s,T as o,f as c,u as d,g as u,h as f,i as h,_ as p,j as m,k as g,F as v,l as A,m as w,t as b,n as C,p as y,q as x,s as k,E,v as S,x as V,y as T,z as B,A as D,B as F,C as _,D as L,G as I,H as M,I as R,J as O,K as N,L as P,M as Y,N as j,O as Q,P as z,Q as q,R as U,S as H,U as J,V as X,W as G,X as K}from"./index.47366859.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.ebc06b4b.js";const Z=!0,$=!0,ee=!0,te=!0,ae=!0,ne=!0,le=e("settings",(()=>({fixedHeader:t(ee),showSettings:t(Z),showTagsView:t($),showSidebarLogo:t(te),showThemeSwitch:t(ae),showScreenfull:t(ne)}))),re={class:"app-main"},ie=p(a({__name:"AppMain",setup(e){const t=h(),a=n((()=>t.path));return(e,t)=>{const n=f("router-view");return l(),r("section",re,[i(n,null,{default:s((({Component:e})=>[i(o,{name:"fade-transform",mode:"out-in"},{default:s((()=>[(l(),c(u(e),{key:d(a)}))])),_:2},1024)])),_:1})])}}}),[["__scopeId","data-v-0058dddf"]]);function se(e,t){void 0===t&&(t={});for(var a=function(e){for(var t=[],a=0;a<e.length;){var n=e[a];if("*"!==n&&"+"!==n&&"?"!==n)if("\\"!==n)if("{"!==n)if("}"!==n)if(":"!==n)if("("!==n)t.push({type:"CHAR",index:a,value:e[a++]});else{var l=1,r="";if("?"===e[s=a+1])throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0==--l){s++;break}}else if("("===e[s]&&(l++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at ".concat(s));r+=e[s++]}else r+=e[s++]+e[s++];if(l)throw new TypeError("Unbalanced pattern at ".concat(a));if(!r)throw new TypeError("Missing pattern at ".concat(a));t.push({type:"PATTERN",index:a,value:r}),a=s}else{for(var i="",s=a+1;s<e.length;){var o=e.charCodeAt(s);if(!(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||95===o))break;i+=e[s++]}if(!i)throw new TypeError("Missing parameter name at ".concat(a));t.push({type:"NAME",index:a,value:i}),a=s}else t.push({type:"CLOSE",index:a,value:e[a++]});else t.push({type:"OPEN",index:a,value:e[a++]});else t.push({type:"ESCAPED_CHAR",index:a++,value:e[a++]});else t.push({type:"MODIFIER",index:a,value:e[a++]})}return t.push({type:"END",index:a,value:""}),t}(e),n=t.prefixes,l=void 0===n?"./":n,r="[^".concat(function(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}(t.delimiter||"/#?"),"]+?"),i=[],s=0,o=0,c="",d=function(e){if(o<a.length&&a[o].type===e)return a[o++].value},u=function(e){var t=d(e);if(void 0!==t)return t;var n=a[o],l=n.type,r=n.index;throw new TypeError("Unexpected ".concat(l," at ").concat(r,", expected ").concat(e))},f=function(){for(var e,t="";e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t};o<a.length;){var h=d("CHAR"),p=d("NAME"),m=d("PATTERN");if(p||m){var g=h||"";-1===l.indexOf(g)&&(c+=g,g=""),c&&(i.push(c),c=""),i.push({name:p||s++,prefix:g,suffix:"",pattern:m||r,modifier:d("MODIFIER")||""})}else{var v=h||d("ESCAPED_CHAR");if(v)c+=v;else if(c&&(i.push(c),c=""),d("OPEN")){g=f();var A=d("NAME")||"",w=d("PATTERN")||"",b=f();u("CLOSE"),i.push({name:A||(w?s++:""),pattern:A&&!w?r:w,prefix:g,suffix:b,modifier:d("MODIFIER")||""})}else u("END")}}return i}function oe(e,t){return function(e,t){void 0===t&&(t={});var a=function(e){return e&&e.sensitive?"":"i"}(t),n=t.encode,l=void 0===n?function(e){return e}:n,r=t.validate,i=void 0===r||r,s=e.map((function(e){if("object"==typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),a)}));return function(t){for(var a="",n=0;n<e.length;n++){var r=e[n];if("string"!=typeof r){var o=t?t[r.name]:void 0,c="?"===r.modifier||"*"===r.modifier,d="*"===r.modifier||"+"===r.modifier;if(Array.isArray(o)){if(!d)throw new TypeError('Expected "'.concat(r.name,'" to not repeat, but got an array'));if(0===o.length){if(c)continue;throw new TypeError('Expected "'.concat(r.name,'" to not be empty'))}for(var u=0;u<o.length;u++){var f=l(o[u],r);if(i&&!s[n].test(f))throw new TypeError('Expected all "'.concat(r.name,'" to match "').concat(r.pattern,'", but got "').concat(f,'"'));a+=r.prefix+f+r.suffix}}else if("string"!=typeof o&&"number"!=typeof o){if(!c){var h=d?"an array":"a string";throw new Type
|