documentation/assets/js/2.638bc23b.js

1 line
13 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[2,6,7,8,13,16,18,19,28],{239:function(t,e,n){"use strict";n.d(e,"d",(function(){return s})),n.d(e,"a",(function(){return r})),n.d(e,"j",(function(){return a})),n.d(e,"i",(function(){return o})),n.d(e,"f",(function(){return l})),n.d(e,"g",(function(){return u})),n.d(e,"h",(function(){return c})),n.d(e,"b",(function(){return p})),n.d(e,"e",(function(){return h})),n.d(e,"l",(function(){return d})),n.d(e,"m",(function(){return f})),n.d(e,"c",(function(){return m})),n.d(e,"k",(function(){return v}));n(90);const s=/#.*$/,i=/\.(md|html)$/,r=/\/$/,a=/^(https?:|mailto:|tel:)/;function o(t){return decodeURI(t).replace(s,"").replace(i,"")}function l(t){return a.test(t)}function u(t){return/^mailto:/.test(t)}function c(t){return/^tel:/.test(t)}function p(t){if(l(t))return t;const e=t.match(s),n=e?e[0]:"",i=o(t);return r.test(i)?t:i+".html"+n}function h(t,e){const n=t.hash,i=function(t){const e=t.match(s);if(e)return e[0]}(e);if(i&&n!==i)return!1;return o(t.path)===o(e)}function d(t,e,n){n&&(e=function(t,e,n){const s=t.charAt(0);if("/"===s)return t;if("?"===s||"#"===s)return e+t;const i=e.split("/");n&&i[i.length-1]||i.pop();const r=t.replace(/^\//,"").split("/");for(let t=0;t<r.length;t++){const e=r[t];".."===e?i.pop():"."!==e&&i.push(e)}""!==i[0]&&i.unshift("");return i.join("/")}(e,n));const s=o(e);for(let n=0;n<t.length;n++)if(o(t[n].path)===s)return Object.assign({},t[n],{type:"page",path:p(e)});return console.error(`[vuepress] No matching page found for sidebar item "${e}"`),{}}function f(t,e,n,s){const{pages:i,themeConfig:r}=n,a=s&&r.locales&&r.locales[s]||r;if("auto"===(t.frontmatter.sidebar||a.sidebar||r.sidebar))return function(t){const e=m(t.headers||[]);return[{type:"group",collapsable:!1,title:t.title,children:e.map(e=>({type:"auto",title:e.title,basePath:t.path,path:t.path+"#"+e.slug,children:e.children||[]}))}]}(t);const o=a.sidebar||r.sidebar;if(o){const{base:t,config:n}=function(t,e){if(Array.isArray(e))return{base:"/",config:e};for(const s in e)if(0===(n=t.path,/(\.html|\/)$/.test(n)?n:n+"/").indexOf(s))return{base:s,config:e[s]};var n;return{}}(e,o);return n?n.map(e=>function t(e,n,s,i){if("string"==typeof e)return d(n,e,s);if(Array.isArray(e))return Object.assign(d(n,e[0],s),{title:e[1]});{i&&console.error("[vuepress] Nested sidebar groups are not supported. Consider using navbar + categories instead.");const r=e.children||[],a=e.versions||[];return{type:"group",...e,children:r.map(e=>t(e,n,s,!0)),collapsable:!1!==e.collapsable,versions:a.map(i=>({...i,status:i.name===e.currentVersion?"current":i.status,children:i.children.map(r=>t(e.path+i.name+r,n,s,!0))}))}}}(e,i,t)):[]}return[]}function m(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 v(t){return Object.assign(t,{type:t.items&&t.items.length?"links":"link"})}},240:function(t,e,n){},241:function(t,e,n){"use strict";n.r(e);var s=n(239),i={props:{item:{required:!0}},computed:{link(){return Object(s.b)(this.item.link)},exact(){return this.$site.locales?Object.keys(this.$site.locales).some(t=>t===this.link):"/"===this.link}},methods:{isExternal:s.f,isMailto:s.g,isTel:s.h}},r=n(15),a=Object(r.a)(i,(function(){var t=this,e=t._self._c;return t.isExternal(t.link)?e("a",{staticClass:"nav-link external",attrs:{href:t.link,target:t.isMailto(t.link)||t.isTel(t.link)?null:"_blank",rel:t.isMailto(t.link)||t.isTel(t.link)?null:"noopener noreferrer"}},[t._v("\n "+t._s(t.item.text)+"\n "),e("OutboundLink")],1):e("router-link",{staticClass:"nav-link",attrs:{to:t.link,exact:t.exact}},[t._v(t._s(t.item.text)+"\n")])}),[],!1,null,null,null);e.default=a.exports},242:function(t,e,n){"use strict";n(240)},243:function(t,e,n){"use strict";n.r(e);var s={name:"DropdownTransition",methods:{setHeight(t){t.style.height=t.scrollHeight+"px"},unsetHeight(t){t.style.height=""}}},i=(n(242),n(15)),r=Object(i.a)(s,(function(){return(0,this._self._c)("transition",{attrs:{name:"dropdown"},on:{enter:this.setHeight,"after-enter":this.unsetHeight,"before-leave":this.setHeight}},[this._t("default")],2)}),[],!1,null,null,null);e.default=r.exports},244:function(t,e,n){"use strict";n.r(e);var s=n(241),i=n(243),r={components:{NavLink:s.default,DropdownTransition:i.default},data:()=>({open:!1}),props:{item:{required:!0}},methods:{toggle(){this.open=!this.open}}},a=n(15),o=Object(a.a)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"dropdown-wrapper",class:{open:t.open}},[e("a",{staticClass:"dropdown-title",on:{click:t.toggle}},[e("span",{staticClass:"title"},[t._v(t._s(t.item.text))]),t._v(" "),e("span",{staticClass:"arrow",class:t.open?"down":"right"})]),t._v(" "),e("DropdownTransition",[e("ul",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"nav-dropdown"},t._l(t.item.items,(function(n,s){return e("li",{key:n.link||s,staticClass:"dropdown-item"},["links"===n.type?e("h4",[t._v(t._s(n.text))]):t._e(),t._v(" "),"links"===n.type?e("ul",{staticClass:"dropdown-subitem-wrapper"},t._l(n.items,(function(t){return e("li",{key:t.link,staticClass:"dropdown-subitem"},[e("NavLink",{attrs:{item:t}})],1)})),0):e("NavLink",{attrs:{item:n}})],1)})),0)])],1)}),[],!1,null,null,null);e.default=o.exports},245:function(t,e,n){"use strict";n.r(e);var s={name:"VersionSelectItem",props:{version:{type:Object,required:!0}},computed:{classes(){return{deprecated:["text-orange"],current:["text-green-dark"],stable:["text-green-dark"],beta:["text-blue"]}[this.version.status]||["text-grey"]}}},i=n(15),r=Object(i.a)(s,(function(){var t=this._self._c;return t("div",{staticClass:"inline-block"},[this._v("\n "+this._s(this.version.title||this.version.name)+"\n "),t("span",{staticClass:"rounded-full ml-2",class:this.classes},[this._v(this._s(this.version.status))])])}),[],!1,null,null,null);e.default=r.exports},246:function(t,e,n){"use strict";n.r(e);var s=n(244),i=n(239),r={components:{NavLink:n(241).default,DropdownLink:s.default},computed:{userNav(){return this.$themeLocaleConfig.nav||this.$site.themeConfig.nav||[]},nav(){const{locales:t}=this.$site;if(t&&Object.keys(t).length>1){const e=this.$page.path,n=this.$router.options.routes,s=this.$site.themeConfig.locales||{},i={text:this.$themeLocaleConfig.selectText||"Languages",items:Object.keys(t).map(i=>{const r=t[i],a=s[i]&&s[i].label||r.lang;let o;return r.lang===this.$lang?o=e:(o=e.replace(this.$localeConfig.path,i),n.some(t=>t.path===o)||(o=i)),{text:a,link:o}})};return[...this.userNav,i]}return this.userNav},userLinks(){return(this.nav||[]).map(t=>Object.assign(Object(i.k)(t),{items:(t.items||[]).map(i.k)}))},repoLink(){const{repo:t}=this.$site.themeConfig;if(t)return/^https?:/.test(t)?t:"https://github.com/"+t},repoLabel(){if(!this.repoLink)return;if(this.$site.themeConfig.repoLabel)return this.$site.themeConfig.repoLabel;const t=this.repoLink.match(/^https?:\/\/[^/]+/)[0],e=["GitHub","GitLab","Bitbucket"];for(let n=0;n<e.length;n++){const s=e[n];if(new RegExp(s,"i").test(t))return s}return"Source"}}},a=n(15),o=Object(a.a)(r,(function(){var t=this,e=t._self._c;return t.userLinks.length||t.repoLink?e("nav",{staticClass:"nav-links flex-no-shrink"},[t._l(t.userLinks,(function(t){return e("div",{key:t.link,staticClass:"nav-item"},["links"===t.type?e("DropdownLink",{attrs:{item:t}}):e("NavLink",{attrs:{item:t}})],1)})),t._v(" "),t.repoLink?e("div",{staticClass:"nav-item"},[e("a",{staticClass:"nav-link",attrs:{href:t.repoLink,target:"_blank",rel:"noopener noreferrer"}},[t._v("\n "+t._s(t.repoLabel)+"\n "),e("OutboundLink")],1)]):t._e()],2):t._e()}),[],!1,null,null,null);e.default=o.exports},247:function(t,e,n){"use strict";n.r(e);var s=n(239);function i(t,e,n,s){return t("router-link",{props:{to:e,activeClass:"",exactActiveClass:""},class:{active:s,"sidebar-link":!0}},n)}function r(t,e,n,a,o,l=1){return!e||l>o?null:t("ul",{class:"sidebar-sub-headers"},e.map(e=>{const u=Object(s.e)(a,n+"#"+e.slug);return t("li",{class:"sidebar-sub-header"},[i(t,n+"#"+e.slug,e.title,u),r(t,e.children,n,a,o,l+1)])}))}var a={functional:!0,props:["item"],render(t,{parent:{$page:e,$site:n,$route:a},props:{item:o}}){const l=Object(s.e)(a,o.path),u="auto"===o.type?l||o.children.some(t=>Object(s.e)(a,o.basePath+"#"+t.slug)):l,c=i(t,o.path,o.title||o.path,u),p=null!=e.frontmatter.sidebarDepth?e.frontmatter.sidebarDepth:n.themeConfig.sidebarDepth,h=null==p?1:p,d=!!n.themeConfig.displayAllHeaders;if("auto"===o.type)return[c,r(t,o.children,o.basePath,a,h)];if((u||d)&&o.headers&&!s.d.test(o.path)){return[c,r(t,Object(s.c)(o.headers),o.path,a,h)]}return c}},o=n(15),l=Object(o.a)(a,void 0,void 0,!1,null,null,null);e.default=l.exports},251:function(t,e,n){"use strict";n.r(e);var s={name:"VersionSelect",components:{VersionSelectItem:n(245).default},props:{versions:{type:Array,required:!0},tabindex:{type:Number,required:!1,default:0},value:{type:String,required:!1}},data:function(){return{selected:this.versions.find(t=>t.name===this.value)||(this.versions.length>0?this.versions[0]:null),open:!1}},watch:{value(t,e){if(t!==e){let t=this.versions.find(t=>t.name===this.value);t&&(this.selected=t)}}},mounted(){this.$emit("input",this.selected.name)}},i=n(15),r=Object(i.a)(s,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"version-select custom-select",attrs:{tabindex:t.tabindex},on:{blur:function(e){t.open=!1}}},[e("div",{staticClass:"selected",class:{open:t.open},on:{click:function(e){t.open=!t.open}}},[e("VersionSelectItem",{attrs:{version:t.selected}}),t._v(" "),e("span",{staticClass:"arrow"})],1),t._v(" "),e("div",{staticClass:"items",class:{hidden:!t.open}},t._l(t.versions,(function(n){return e("div",{key:n.name,staticClass:"item",on:{click:function(e){t.selected=n,t.open=!1,t.$emit("input",n.name)}}},[e("VersionSelectItem",{attrs:{version:n}})],1)})),0)])}),[],!1,null,null,null);e.default=r.exports},261:function(t,e,n){"use strict";n.r(e);n(90);var s=n(247),i=n(243),r=n(251),a={name:"SidebarGroup",props:["item","first","open","collapsable"],components:{SidebarLink:s.default,DropdownTransition:i.default,VersionSelect:r.default},data:function(){let t=this.item.versions.length>0,e="";if(t&&(e=this.item.currentVersion||this.item.versions[0].name,this.$router.currentRoute.path.startsWith(this.item.path))){const t=this.$router.currentRoute.path.split("/")[2];e=~this.item.versions.map(t=>t.name).indexOf(t)?t:this.item.currentVersion}return{isVersioned:t,versionSelect:e}},watch:{versionSelect(t,e){if(e!==t&&this.$router.currentRoute.path.startsWith(this.item.path)&&this.selectedVersion.children.length>0){let t=this.$router.currentRoute.path;t=t.substr(t.indexOf(e)+e.length),this.$router.push(this.selectedVersion.children.find(e=>e.path.endsWith(t))||this.selectedVersion.children[0])}},$route(t,e){if(this.isVersioned&&t.path.startsWith(this.item.path)){const e=t.path.split("/")[2];~this.item.versions.map(t=>t.name).indexOf(e)&&(this.versionSelect=e)}}},computed:{selectedVersion:function(){return this.item.versions.find(t=>t.name===this.versionSelect)},children:function(){return this.isVersioned?this.selectedVersion.children:this.item.children}}},o=n(15),l=Object(o.a)(a,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sidebar-group",class:{first:t.first,collapsable:t.collapsable}},[e("p",{staticClass:"sidebar-heading",class:{open:t.open},on:{click:function(e){return t.$emit("toggle")}}},[e("span",[t._v(t._s(t.item.title))]),t._v(" "),t.collapsable?e("span",{staticClass:"arrow",class:t.open?"down":"right"}):t._e(),t._v(" "),t.isVersioned?e("VersionSelect",{staticClass:"float-right",attrs:{versions:t.item.versions},model:{value:t.versionSelect,callback:function(e){t.versionSelect=e},expression:"versionSelect"}}):t._e()],1),t._v(" "),e("DropdownTransition",[t.open||!t.collapsable?e("ul",{ref:"items",staticClass:"sidebar-group-items"},t._l(t.children,(function(t){return e("li",[e("SidebarLink",{attrs:{item:t}})],1)})),0):t._e()])],1)}),[],!1,null,null,null);e.default=l.exports},281:function(t,e,n){"use strict";n.r(e);var s=n(261),i=n(247),r=n(246),a=n(239);var o={components:{SidebarGroup:s.default,SidebarLink:i.default,NavLinks:r.default},props:["items"],data:()=>({openGroupIndex:0}),created(){this.refreshIndex()},watch:{$route(){this.refreshIndex()}},methods:{refreshIndex(){const t=function(t,e){for(let n=0;n<e.length;n++){const s=e[n];if("group"===s.type&&s.children.some(e=>Object(a.e)(t,e.path)))return n}return-1}(this.$route,this.items);t>-1&&(this.openGroupIndex=t)},toggleGroup(t){this.openGroupIndex=t===this.openGroupIndex?-1:t},isActive(t){return Object(a.e)(this.$route,t.path)}}},l=n(15),u=Object(l.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"sidebar"},[e("NavLinks",{staticClass:"block md:hidden"}),t._v(" "),t._t("top"),t._v(" "),t.items.length?e("ul",{staticClass:"sidebar-links"},t._l(t.items,(function(n,s){return e("li",{key:n.path},["group"===n.type?e("SidebarGroup",{attrs:{item:n,first:0===s,open:s===t.openGroupIndex,collapsable:n.collapsable},on:{toggle:function(e){return t.toggleGroup(s)}}}):e("SidebarLink",{attrs:{item:n}})],1)})),0):t._e(),t._v(" "),t._t("bottom")],2)}),[],!1,null,null,null);e.default=u.exports}}]);