Files
zhamao-framework/assets/js/8.899a0731.js

1 line
9.1 KiB
JavaScript
Raw Normal View History

2024-09-19 08:29:13 +00:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[8,13,16,19],{664:function(t,e,n){"use strict";n.d(e,"d",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"f",(function(){return s})),n.d(e,"b",(function(){return c})),n.d(e,"e",(function(){return p})),n.d(e,"h",(function(){return h})),n.d(e,"i",(function(){return u})),n.d(e,"c",(function(){return f})),n.d(e,"g",(function(){return d}));n(391);const r=/#.*$/,a=/\.(md|html)$/,i=/\/$/,s=/^[a-z]+:/i;function o(t){return decodeURI(t).replace(r,"").replace(a,"")}function l(t){return s.test(t)}function c(t){if(l(t))return t;const e=t.match(r),n=e?e[0]:"",a=o(t);return i.test(a)?t:a+".html"+n}function p(t,e){const n=t.hash,a=function(t){const e=t.match(r);if(e)return e[0]}(e);if(a&&n!==a)return!1;return o(t.path)===o(e)}function h(t,e,n){if(l(e))return{type:"external",path:e};n&&(e=function(t,e,n){const r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;const a=e.split("/");n&&a[a.length-1]||a.pop();const i=t.replace(/^\//,"").split("/");for(let t=0;t<i.length;t++){const e=i[t];".."===e?a.pop():"."!==e&&a.push(e)}""!==a[0]&&a.unshift("");return a.join("/")}(e,n));const r=o(e);for(let e=0;e<t.length;e++)if(o(t[e].regularPath)===r)return Object.assign({},t[e],{type:"page",path:c(t[e].path)});return console.error(`[vuepress] No matching page found for sidebar item "${e}"`),{}}function u(t,e,n,r){const{pages:a,themeConfig:i}=n,s=r&&i.locales&&i.locales[r]||i;if("auto"===(t.frontmatter.sidebar||s.sidebar||i.sidebar))return function(t){const e=f(t.headers||[]);return[{type:"group",collapsable:!1,title:t.title,path:null,children:e.map(e=>({type:"auto",title:e.title,basePath:t.path,path:t.path+"#"+e.slug,children:e.children||[]}))}]}(t);const o=s.sidebar||i.sidebar;if(o){const{base:t,config:n}=function(t,e){if(Array.isArray(e))return{base:"/",config:e};for(const r in e)if(0===(n=t,/(\.html|\/)$/.test(n)?n:n+"/").indexOf(encodeURI(r)))return{base:r,config:e[r]};var n;return{}}(e,o);return n?n.map(e=>function t(e,n,r,a=1){if("string"==typeof e)return h(n,e,r);if(Array.isArray(e))return Object.assign(h(n,e[0],r),{title:e[1]});{a>3&&console.error("[vuepress] detected a too deep nested sidebar group.");const i=e.children||[];return 0===i.length&&e.path?Object.assign(h(n,e.path,r),{title:e.title}):{type:"group",path:e.path,title:e.title,sidebarDepth:e.sidebarDepth,children:i.map(e=>t(e,n,r,a+1)),collapsable:!1!==e.collapsable}}}(e,a,t)):[]}return[]}function f(t){let e;return(t=t.map(t=>Object.assign({},t))).forEach(t=>{2===t.level?e=t:e&&(e.children||(e.children=[])).push(t)}),t.filter(t=>2===t.level)}function d(t){return Object.assign(t,{type:t.items&&t.items.length?"links":"link"})}},670:function(t,e,n){},671:function(t,e,n){},672:function(t,e,n){},684:function(t,e,n){"use strict";n(670)},685:function(t,e,n){var r=n(53),a=n(35),i=n(42);t.exports=function(t){return"string"==typeof t||!a(t)&&i(t)&&"[object String]"==r(t)}},686:function(t,e,n){"use strict";n(671)},687:function(t,e,n){"use strict";n(672)},688:function(t,e,n){},692:function(t,e,n){"use strict";n.r(e);var r=n(47),a=n.n(r),i=n(664),s={name:"PageEdit",computed:{lastUpdated(){return this.$page.lastUpdated},lastUpdatedText(){return"string"==typeof this.$themeLocaleConfig.lastUpdated?this.$themeLocaleConfig.lastUpdated:"string"==typeof this.$site.themeConfig.lastUpdated?this.$site.themeConfig.lastUpdated:"Last Updated"},editLink(){const t=a()(this.$page.frontmatter.editLink)?this.$site.themeConfig.editLinks:this.$page.frontmatter.editLink,{repo:e,docsDir:n="",docsBranch:r="master",docsRepo:i=e}=this.$site.themeConfig;return t&&i&&this.$page.relativePath?this.createEditLink(e,i,n,r,this.$page.relativePath):null},editLinkText(){return this.$themeLocaleConfig.editLinkText||this.$site.themeConfig.editLinkText||"Edit this page"}},methods:{createEditLink(t,e,n,r,a){if(/bitbucket.org/.test(t)){return(i.f.test(e)?e:t).replace(i.a,"")+"/src"+`/${r}/`+(n?n.replace(i.a,"")+"/":"")+a+`?mode=edit&spa=0&at=${r}&fileviewer=file-view-default`}return(i.f.test(e)?e:"https://github.com/"+e).replace(i.a,"")+"/edit"+`/${r}/`