23.f951d302.js 5.5 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[23],{437:function(t,e,n){"use strict";n.d(e,"d",(function(){return r})),n.d(e,"a",(function(){return a})),n.d(e,"i",(function(){return u})),n.d(e,"f",(function(){return s})),n.d(e,"g",(function(){return c})),n.d(e,"h",(function(){return l})),n.d(e,"b",(function(){return d})),n.d(e,"e",(function(){return f})),n.d(e,"k",(function(){return p})),n.d(e,"l",(function(){return h})),n.d(e,"c",(function(){return v})),n.d(e,"j",(function(){return m}));n(55),n(116),n(248),n(251),n(113),n(112),n(254),n(31),n(56),n(118),n(114),n(11),n(42),n(160),n(438),n(115),n(119);var r=/#.*$/,i=/\.(md|html)$/,a=/\/$/,u=/^[a-z]+:/i;function o(t){return decodeURI(t).replace(r,"").replace(i,"")}function s(t){return u.test(t)}function c(t){return/^mailto:/.test(t)}function l(t){return/^tel:/.test(t)}function d(t){if(s(t))return t;var e=t.match(r),n=e?e[0]:"",i=o(t);return a.test(i)?t:i+".html"+n}function f(t,e){var n=decodeURIComponent(t.hash),i=function(t){var e=t.match(r);if(e)return e[0]}(e);return(!i||n===i)&&o(t.path)===o(e)}function p(t,e,n){if(s(e))return{type:"external",path:e};n&&(e=function(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var i=e.split("/");n&&i[i.length-1]||i.pop();for(var a=t.replace(/^\//,"").split("/"),u=0;u<a.length;u++){var o=a[u];".."===o?i.pop():"."!==o&&i.push(o)}""!==i[0]&&i.unshift("");return i.join("/")}(e,n));for(var r=o(e),i=0;i<t.length;i++)if(o(t[i].regularPath)===r)return Object.assign({},t[i],{type:"page",path:d(t[i].path)});return console.error('[vuepress] No matching page found for sidebar item "'.concat(e,'"')),{}}function h(t,e,n,r){var i=n.pages,a=n.themeConfig,u=r&&a.locales&&a.locales[r]||a;if("auto"===(t.frontmatter.sidebar||u.sidebar||a.sidebar))return g(t);var o=u.sidebar||a.sidebar;if(o){var s=function(t,e){if(Array.isArray(e))return{base:"/",config:e};for(var n in e)if(0===(r=t,/(\.html|\/)$/.test(r)?r:r+"/").indexOf(encodeURI(n)))return{base:n,config:e[n]};var r;return{}}(e,o),c=s.base,l=s.config;return"auto"===l?g(t):l?l.map((function(t){return function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if("string"==typeof e)return p(n,e,r);if(Array.isArray(e))return Object.assign(p(n,e[0],r),{title:e[1]});var a=e.children||[];return 0===a.length&&e.path?Object.assign(p(n,e.path,r),{title:e.title}):{type:"group",path:e.path,title:e.title,sidebarDepth:e.sidebarDepth,initialOpenGroupIndex:e.initialOpenGroupIndex,children:a.map((function(e){return t(e,n,r,i+1)})),collapsable:!1!==e.collapsable}}(t,i,c)})):[]}return[]}function g(t){var e=v(t.headers||[]);return[{type:"group",collapsable:!1,title:t.title,path:null,children:e.map((function(e){return{type:"auto",title:e.title,basePath:t.path,path:t.path+"#"+e.slug,children:e.children||[]}}))}]}function v(t){var e;return(t=t.map((function(t){return Object.assign({},t)}))).forEach((function(t){2===t.level?e=t:e&&(e.children||(e.children=[])).push(t)})),t.filter((function(t){return 2===t.level}))}function m(t){return Object.assign(t,{type:t.items&&t.items.length?"links":"link"})}},438:function(t,e,n){"use strict";var r=n(6),i=n(249),a=n(7),u=n(9),o=n(117),s=n(16),c=n(29),l=n(57),d=n(253),f=n(250);i("match",(function(t,e,n){return[function(e){var n=c(this),i=u(e)?l(e,t):void 0;return i?r(i,e,n):new RegExp(e)[t](s(n))},function(t){var r=a(this),i=s(t),u=n(e,r,i);if(u.done)return u.value;if(!r.global)return f(r,i);var c=r.unicode;r.lastIndex=0;for(var l,p=[],h=0;null!==(l=f(r,i));){var g=s(l[0]);p[h]=g,""===g&&(r.lastIndex=d(i,o(r.lastIndex),c)),h++}return 0===h?null:p}]}))},447:function(t,e){t.exports=function(t){return null==t}},449:function(t,e,n){},472:function(t,e,n){"use strict";n(449)},481:function(t,e,n){"use strict";n.r(e);n(42),n(160),n(115);var r=n(447),i=n.n(r),a=n(437),u={name:"PageEdit",computed:{lastUpdated:function(){return this.$page.lastUpdated},lastUpdatedText:function(){return"string"==typeof this.$themeLocaleConfig.lastUpdated?this.$themeLocaleConfig.lastUpdated:"string"==typeof this.$site.themeConfig.lastUpdated?this.$site.themeConfig.lastUpdated:"Last Updated"},editLink:function(){var t=i()(this.$page.frontmatter.editLink)?this.$site.themeConfig.editLinks:this.$page.frontmatter.editLink,e=this.$site.themeConfig,n=e.repo,r=e.docsDir,a=void 0===r?"":r,u=e.docsBranch,o=void 0===u?"master":u,s=e.docsRepo,c=void 0===s?n:s;return t&&c&&this.$page.relativePath?this.createEditLink(n,c,a,o,this.$page.relativePath):null},editLinkText:function(){return this.$themeLocaleConfig.editLinkText||this.$site.themeConfig.editLinkText||"Edit this page"}},methods:{createEditLink:function(t,e,n,r,i){if(/bitbucket.org/.test(e))return e.replace(a.a,"")+"/src"+"/".concat(r,"/")+(n?n.replace(a.a,"")+"/":"")+i+"?mode=edit&spa=0&at=".concat(r,"&fileviewer=file-view-default");return/gitlab.com/.test(e)?e.replace(a.a,"")+"/-/edit"+"/".concat(r,"/")+(n?n.replace(a.a,"")+"/":"")+i:(a.i.test(e)?e:"https://github.com/".concat(e)).replace(a.a,"")+"/edit"+"/".concat(r,"/")+(n?n.replace(a.a,"")+"/":"")+i}}},o=(n(472),n(41)),s=Object(o.a)(u,(function(){var t=this,e=t._self._c;return e("footer",{staticClass:"page-edit"},[t.editLink?e("div",{staticClass:"edit-link"},[e("a",{attrs:{href:t.editLink,target:"_blank",rel:"noopener noreferrer"}},[t._v(t._s(t.editLinkText))]),t._v(" "),e("OutboundLink")],1):t._e(),t._v(" "),t.lastUpdated?e("div",{staticClass:"last-updated"},[e("span",{staticClass:"prefix"},[t._v(t._s(t.lastUpdatedText)+":")]),t._v(" "),e("span",{staticClass:"time"},[t._v(t._s(t.lastUpdated))])]):t._e()])}),[],!1,null,null,null);e.default=s.exports}}]);