(window.webpackJsonp=window.webpackJsonp||[]).push([[3,34],{246:function(t,e,s){},247:function(t,e,s){"use strict";s(246)},248:function(t,e,s){},249:function(t,e,s){"use strict";s.r(e);var n={name:"DropdownTransition",methods:{setHeight(t){t.style.height=t.scrollHeight+"px"},unsetHeight(t){t.style.height=""}}},i=(s(247),s(10)),a=Object(i.a)(n,(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=a.exports},251:function(t,e,s){},254:function(t,e,s){},255:function(t,e,s){"use strict";s(248)},259:function(t,e,s){"use strict";s.r(e);var n=s(245),i=s(249),a=s(92),r=s.n(a),o={name:"DropdownLink",components:{NavLink:n.default,DropdownTransition:i.default},props:{item:{required:!0}},data:()=>({open:!1}),computed:{dropdownAriaLabel(){return this.item.ariaLabel||this.item.text}},watch:{$route(){this.open=!1}},methods:{setOpen(t){this.open=t},isLastItemOfArray:(t,e)=>r()(e)===t,handleDropdown(){0===event.detail&&this.setOpen(!this.open)}}},l=(s(255),s(10)),p=Object(l.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"dropdown-wrapper",class:{open:t.open}},[e("button",{staticClass:"dropdown-title",attrs:{type:"button","aria-label":t.dropdownAriaLabel},on:{click:t.handleDropdown}},[e("span",{staticClass:"title"},[t._v(t._s(t.item.text))]),t._v(" "),e("span",{staticClass:"arrow down"})]),t._v(" "),e("button",{staticClass:"mobile-dropdown-title",attrs:{type:"button","aria-label":t.dropdownAriaLabel},on:{click:function(e){return t.setOpen(!t.open)}}},[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(s,n){return e("li",{key:s.link||n,staticClass:"dropdown-item"},["links"===s.type?e("h4",[t._v("\n "+t._s(s.text)+"\n ")]):t._e(),t._v(" "),"links"===s.type?e("ul",{staticClass:"dropdown-subitem-wrapper"},t._l(s.items,(function(n){return e("li",{key:n.link,staticClass:"dropdown-subitem"},[e("NavLink",{attrs:{item:n},on:{focusout:function(e){t.isLastItemOfArray(n,s.items)&&t.isLastItemOfArray(s,t.item.items)&&t.setOpen(!1)}}})],1)})),0):e("NavLink",{attrs:{item:s},on:{focusout:function(e){t.isLastItemOfArray(s,t.item.items)&&t.setOpen(!1)}}})],1)})),0)])],1)}),[],!1,null,null,null);e.default=p.exports},264:function(t,e,s){"use strict";s(251)},271:function(t,e,s){},272:function(t,e,s){"use strict";s(254)},273:function(t,e,s){"use strict";s.r(e);var n=s(259),i=s(244),a={name:"NavLinks",components:{NavLink:s(245).default,DropdownLink:n.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,s=this.$router.options.routes,n=this.$site.themeConfig.locales||{},i={text:this.$themeLocaleConfig.selectText||"Languages",ariaLabel:this.$themeLocaleConfig.ariaLabel||"Select language",items:Object.keys(t).map(i=>{const a=t[i],r=n[i]&&n[i].label||a.lang;let o;return a.lang===this.$lang?o=e:(o=e.replace(this.$localeConfig.path,i),s.some(t=>t.path===o)||(o=i)),{text:r,link:o}})};return[...this.userNav,i]}return this.userNav},userLinks(){return(this.nav||[]).map(t=>Object.assign(Object(i.j)(t),{items:(t.items||[]).map(i.j)}))},repoLink(){const{repo:t}=this.$site.themeConfig;return t?/^https?:/.test(t)?t:"https://github.com/"+t:null},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 s=0;s"group"===e.type?r(t,e):"page"===e.type&&Object(a.e)(t,e.path));return s||n}return!1}var o={name:"SidebarLinks",components:{SidebarGroup:n.default,SidebarLink:i.default},props:["items","depth","sidebarDepth","initialOpenGroupIndex"],data(){return{openGroupIndex:this.initialOpenGroupIndex||0}},watch:{$route(){this.refreshIndex()}},created(){this.refreshIndex()},methods:{refreshIndex(){const t=function(t,e){for(let s=0;s-1&&(this.openGroupIndex=t)},toggleGroup(t){this.openGroupIndex=t===this.openGroupIndex?-1:t},isActive(t){return Object(a.e)(this.$route,t.regularPath)}}},l=s(10),p=Object(l.a)(o,(function(){var t=this,e=t._self._c;return t.items.length?e("ul",{staticClass:"sidebar-links"},t._l(t.items,(function(s,n){return e("li",{key:n},["group"===s.type?e("SidebarGroup",{attrs:{item:s,open:n===t.openGroupIndex,collapsable:s.collapsable||s.collapsible,depth:t.depth},on:{toggle:function(e){return t.toggleGroup(n)}}}):e("SidebarLink",{attrs:{"sidebar-depth":t.sidebarDepth,item:s}})],1)})),0):t._e()}),[],!1,null,null,null);e.default=p.exports},278:function(t,e,s){"use strict";s.r(e);var n=s(244);function i(t,e,s,n,i,a){const r={props:{to:e,activeClass:"",exactActiveClass:""},class:{active:n,"sidebar-link":!0}};return i>2&&(r.style={"padding-left":i+"rem"}),a&&a.headers&&a.headers.length>0?t("RouterLink",r,[t("span",s)]):t("RouterLink",r,s)}function a(t,e,s,r,o,l=1,p=!1){return!e||l>o?null:t("ul",{class:"sidebar-sub-headers",style:p?"display: none":""},e.map(e=>{const p=Object(n.e)(r,s+"#"+e.slug);return t("li",{class:"sidebar-sub-header"},[i(t,s+"#"+e.slug,e.title,p,e.level-1,e),a(t,e.children,s,r,o,l+1)])}))}var r={functional:!0,props:["item","sidebarDepth"],render(t,{parent:{$page:e,$site:s,$route:r,$themeConfig:o,$themeLocaleConfig:l},props:{item:p,sidebarDepth:u}}){const c=Object(n.e)(r,p.path),h="auto"===p.type?c||p.children.some(t=>Object(n.e)(r,p.basePath+"#"+t.slug)):c,d="external"===p.type?function(t,e,s){return t("a",{attrs:{href:e,target:"_blank",rel:"noopener noreferrer"},class:{"sidebar-link":!0}},[s,t("OutboundLink")])}(t,p.path,p.title||p.path):i(t,p.path,p.title||p.path,h,void 0,p),f=[e.frontmatter.sidebarDepth,u,l.sidebarDepth,o.sidebarDepth,1].find(t=>void 0!==t),b=l.displayAllHeaders||o.displayAllHeaders;if("auto"===p.type)return[d,a(t,p.children,p.basePath,r,f)];if((h||b)&&p.headers&&!n.d.test(p.path)){return[d,a(t,Object(n.c)(p.headers),p.path,r,f,1,!0)]}return d}},o=(s(272),s(10)),l=Object(o.a)(r,void 0,void 0,!1,null,null,null);e.default=l.exports},287:function(t,e,s){"use strict";s(271)},288:function(t,e,s){"use strict";s.r(e);var n=s(244),i={name:"SidebarGroup",components:{DropdownTransition:s(249).default},props:["item","open","collapsable","depth"],beforeCreate(){this.$options.components.SidebarLinks=s(276).default},watch:{open(){this.refreshOpen()}},created(){this.refreshOpen()},computed:{finalOpen(){return this.toggled?this.selfOpen:this.open}},data:()=>({toggled:!1,selfOpen:!1}),methods:{isActive:n.e,refreshOpen(){this.toggled||this.open&&(this.selfOpen=this.open,this.toggled=!0)},toggleGroup(){this.toggled=!0,this.selfOpen=!this.selfOpen,this.$emit("toggle")}}},a=(s(287),s(10)),r=Object(a.a)(i,(function(){var t=this,e=t._self._c;return e("section",{staticClass:"sidebar-group",class:[{collapsable:t.collapsable,"is-sub-group":0!==t.depth},"depth-"+t.depth]},[t.item.path?e("RouterLink",{staticClass:"sidebar-heading clickable",class:{open:t.finalOpen,active:t.isActive(t.$route,t.item.path)},attrs:{to:t.item.path},nativeOn:{click:function(e){return t.toggleGroup.apply(null,arguments)}}},[e("span",[t._v(t._s(t.item.title))]),t._v(" "),t.collapsable?e("span",{staticClass:"arrow",class:t.finalOpen?"down":"right"}):t._e()]):e("p",{staticClass:"sidebar-heading",class:{open:t.finalOpen},on:{click:t.toggleGroup}},[e("span",[t._v(t._s(t.item.title))]),t._v(" "),t.collapsable?e("span",{staticClass:"arrow",class:t.finalOpen?"down":"right"}):t._e()]),t._v(" "),e("DropdownTransition",[t.finalOpen||!t.collapsable?e("SidebarLinks",{staticClass:"sidebar-group-items",attrs:{items:t.item.children,"sidebar-depth":t.item.sidebarDepth,"initial-open-group-index":t.item.initialOpenGroupIndex,depth:t.depth+1}}):t._e()],1)],1)}),[],!1,null,null,null);e.default=r.exports},293:function(t,e,s){},324:function(t,e,s){"use strict";s(293)},340:function(t,e,s){"use strict";s.r(e);var n=s(276),i=s(273),a={name:"Sidebar",components:{SidebarLinks:n.default,NavLinks:i.default},props:["items"]},r=(s(324),s(10)),o=Object(r.a)(a,(function(){var t=this._self._c;return t("aside",{staticClass:"sidebar"},[t("NavLinks"),this._v(" "),this._t("top"),this._v(" "),t("SidebarLinks",{attrs:{depth:0,items:this.items}}),this._v(" "),this._t("bottom")],2)}),[],!1,null,null,null);e.default=o.exports}}]);