mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
2 lines
24 KiB
JavaScript
2 lines
24 KiB
JavaScript
!function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){function t(t){for(var a,o,i=t[0],s=t[1],p=t[2],u=0,l=[];u<i.length;u++)o=i[u],Object.prototype.hasOwnProperty.call(c,o)&&c[o]&&l.push(c[o][0]),c[o]=0;for(a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a]);for(b&&b(t);l.length;)l.shift()();return r.push.apply(r,p||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],a=!0,i=1;i<n.length;i++){var s=n[i];0!==c[s]&&(a=!1)}a&&(r.splice(t--,1),e=o(o.s=n[0]))}return e}var a={},c={0:0},r=[];function o(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=a,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)o.d(n,a,function(t){return e[t]}.bind(null,a));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="";var i=window.webpackJsonp=window.webpackJsonp||[],s=i.push.bind(i);i.push=t,i=i.slice();for(var p=0;p<i.length;p++)t(i[p]);var b=s;return r.push([50,1]),n()}({50:function(e,t,n){"use strict";n.r(t),n.d(t,"document$",(function(){return ct})),n.d(t,"component$",(function(){return mt})),n.d(t,"viewport$",(function(){return it})),n.d(t,"location$",(function(){return rt})),n.d(t,"target$",(function(){return ot})),n.d(t,"screen$",(function(){return pt})),n.d(t,"tablet$",(function(){return st})),n.d(t,"print$",(function(){return bt}));n(47);var a=n(24),c=n(52),r=n(54),o=n(33),i=n(38),s=n(58),p=n(65),b=n(40),u=n(51),l=n(41);function f(e,t=document){return t.querySelector(e)||void 0}function d(e,t=document){const n=f(e,t);if(void 0===n)throw new ReferenceError(`Missing element: expected "${e}" to be present`);return n}function O(e,t=document){return Array.from(t.querySelectorAll(e))}function j(e){return document.createElement(e)}function h(e,t){e.replaceWith(t)}var m=n(53);function g(e){return Object(c.a)(Object(u.a)(e,"focus"),Object(u.a)(e,"blur")).pipe(Object(o.a)(({type:e})=>"focus"===e),Object(m.a)(e===(document.activeElement instanceof HTMLElement?document.activeElement:void 0)))}var v=n(55),w=n(56),$=n(57),x=n(59),y=n(43);const _=new a.a,E=Object(r.a)(()=>Object(v.a)(new ResizeObserver(e=>{for(const t of e)_.next(t)}))).pipe(Object(i.a)(e=>w.a.pipe(Object(m.a)(e)).pipe(Object($.a)(()=>e.disconnect()))),Object(s.a)(1));function k(e){return{width:e.offsetWidth,height:e.offsetHeight}}function A(e){return E.pipe(Object(x.a)(t=>t.observe(e)),Object(i.a)(t=>_.pipe(Object(y.a)(({target:t})=>t===e),Object($.a)(()=>t.unobserve(e)),Object(o.a)(({contentRect:e})=>({width:e.width,height:e.height})))),Object(m.a)(k(e)))}var S=n(42);var T=n(60);function R(){return new URL(location.href)}function M(){return location.hash.substring(1)}function C(e){const t=matchMedia(e);return Object(u.a)(t,"change").pipe(Object(o.a)(e=>e.matches),Object(m.a)(t.matches))}function L(e,t){return e.pipe(Object(i.a)(e=>e?t():w.a))}var P=n(6);function U(e,t={credentials:"same-origin"}){return Object(P.a)(fetch(e,t)).pipe(Object(y.a)(e=>200===e.status))}function z(e,t){return U(e,t).pipe(Object(i.a)(e=>e.json()),Object(s.a)(1))}const H={drawer:d("[data-md-toggle=drawer]"),search:d("[data-md-toggle=search]")};var N=n(46),I=n(61);function Y(){return{x:Math.max(0,pageXOffset),y:Math.max(0,pageYOffset)}}function D({x:e,y:t}){window.scrollTo(e||0,t||0)}function F(){return{width:innerWidth,height:innerHeight}}function q(e,{viewport$:t,header$:n}){const a=t.pipe(Object(I.a)("size")),c=Object(N.a)([a,n]).pipe(Object(o.a)(()=>({x:e.offsetLeft,y:e.offsetTop})));return Object(N.a)([n,t,c]).pipe(Object(o.a)(([{height:e},{offset:t,size:n},{x:a,y:c}])=>({offset:{x:t.x-a,y:t.y-c+e},size:n})))}var J=n(62),W=n(63);const Q=d("#__config"),B=JSON.parse(Q.textContent);function K(){return B}function V(e){return B.features.includes(e)}function X(e,t){return void 0!==t?B.translations[e].replace("#",t.toString()):B.translations[e]}B.base=new URL(B.base,R()).toString().replace(/\/$/,"");var G,Z=n(26),ee=n.n(Z),te=n(64);function ne(e,t){e.setAttribute("data-md-state",t)}function ae(e){e.removeAttribute("data-md-state")}function ce(e,t){e.classList.toggle("md-nav__link--active",t)}function re(e){e.classList.remove("md-nav__link--active")}function oe(e,t){e.appendChild(t)}function ie(e){e.removeAttribute("data-md-state")}function se(e,t){if("string"==typeof t||"number"==typeof t)e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(const n of t)se(e,n)}function pe(e,t,...n){const a=document.createElement(e);if(t)for(const e of Object.keys(t))"boolean"!=typeof t[e]?a.setAttribute(e,t[e]):t[e]&&a.setAttribute(e,"");for(const e of n)se(a,e);return a}function be(e){if(e>999){return((e+1e-6)/1e3).toFixed(+((e-950)%1e3>99))+"k"}return e.toString()}function ue(e,t){const n=t&G.PARENT,a=t&G.TEASER,c=Object.keys(e.terms).filter(t=>!e.terms[t]).map(e=>[pe("del",null,e)," "]).flat().slice(0,-1);return pe("a",{href:e.location,class:"md-search-result__link",tabIndex:-1},pe("article",{class:["md-search-result__article",...n?["md-search-result__article--document"]:[]].join(" "),"data-md-score":e.score.toFixed(2)},n>0&&pe("div",{class:"md-search-result__icon md-icon"}),pe("h1",{class:"md-search-result__title"},e.title),a>0&&e.text.length>0&&pe("p",{class:"md-search-result__teaser"},function(e,t){let n=t;if(e.length>n){for(;" "!==e[n]&&--n>0;);return e.substring(0,n)+"..."}return e}(e.text,320)),a>0&&c.length>0&&pe("p",{class:"md-search-result__terms"},X("search.result.term.missing"),": ",c)))}function le(e,t=1/0){const n=[...e],a=n.findIndex(e=>!e.location.includes("#")),[c]=n.splice(a,1);let r=n.findIndex(e=>e.score<t);-1===r&&(r=n.length);const o=n.slice(0,r),i=n.slice(r),s=[ue(c,G.PARENT|+(!a&&0===r)),...o.map(e=>ue(e,G.TEASER)),...i.length?[pe("details",{class:"md-search-result__more"},pe("summary",{tabIndex:-1},i.length>0&&1===i.length?X("search.result.more.one"):X("search.result.more.other",i.length)),i.map(e=>ue(e,G.TEASER)))]:[]];return pe("li",{class:"md-search-result__item"},s)}!function(e){e[e.TEASER=1]="TEASER",e[e.PARENT=2]="PARENT"}(G||(G={}));let fe=0;function de(e,t){const n=new a.a;if(n.pipe(Object(te.a)(C("(hover)"))).subscribe(([{scroll:t},n])=>{t&&n?function(e,t=0){e.setAttribute("tabindex",t.toString())}(e):function(e){e.removeAttribute("tabindex")}(e)}),ee.a.isSupported()){const t=e.closest("pre");t.id="__code_"+fe++,t.insertBefore((c=t.id,pe("button",{class:"md-clipboard md-icon",title:X("clipboard.copy"),"data-clipboard-target":`#${c} > code`})),e)}var c;return function(e,{viewport$:t}){return t.pipe(Object(I.a)("size"),Object(o.a)(()=>{const t=k(e);return{scroll:function(e){return{width:e.scrollWidth,height:e.scrollHeight}}(e).width>t.width}}),Object(I.a)("scroll"))}(e,t).pipe(Object(x.a)(n),Object($.a)(()=>n.complete()),Object(o.a)(t=>Object.assign({ref:e},t)))}function Oe(e,t){const n=new a.a;return n.subscribe(()=>{e.setAttribute("open",""),e.scrollIntoView()}),function(e,{target$:t,print$:n}){return t.pipe(Object(o.a)(e=>e.closest("details:not([open])")),Object(y.a)(t=>e===t),Object(p.a)(n),Object(l.a)(e))}(e,t).pipe(Object(x.a)(n),Object($.a)(()=>n.complete()),Object(l.a)({ref:e}))}const je=j("table");function he(e){return h(e,je),h(je,pe("div",{class:"md-typeset__scrollwrap"},pe("div",{class:"md-typeset__table"},e))),Object(v.a)({ref:e})}var me=n(77),ge=n(78),ve=n(66);function we(e,t){const n=new a.a;return n.pipe(Object(ve.a)(me.a)).subscribe(({message:t,open:n})=>{!function(e,t){e.firstElementChild.innerHTML=t}(e,t),n?function(e,t){e.setAttribute("data-md-state",t)}(e,"open"):function(e){e.removeAttribute("data-md-state")}(e)}),function(e,{alert$:t}){return t.pipe(Object(i.a)(e=>Object(c.a)(Object(v.a)(!0),Object(v.a)(!1).pipe(Object(ge.a)(2e3))).pipe(Object(o.a)(t=>({message:e,open:t})))))}(0,t).pipe(Object(x.a)(n),Object($.a)(()=>n.complete()),Object(o.a)(t=>Object.assign({ref:e},t)))}var $e=n(67),xe=n(44),ye=n(68);function _e({viewport$:e}){if(!V("header.autohide"))return Object(v.a)(!1);const t=e.pipe(Object(o.a)(({offset:{y:e}})=>e),Object($e.a)(2,1),Object(o.a)(([e,t])=>[e<t,t]),Object(I.a)(0)),n=Object(N.a)([e,t]).pipe(Object(y.a)(([{offset:e},[,t]])=>Math.abs(t-e.y)>100),Object(o.a)(([,[e]])=>e),Object(xe.a)()),a=function(e){const t=H[e];return Object(u.a)(t,"change").pipe(Object(o.a)(()=>t.checked),Object(m.a)(t.checked))}("search");return Object(N.a)([e,a]).pipe(Object(o.a)(([{offset:e},t])=>e.y>400&&!t),Object(xe.a)(),Object(i.a)(e=>e?n:w.a),Object(m.a)(!1))}function Ee(e,t){const n=new a.a;n.pipe(Object(ve.a)(me.a)).subscribe(({active:t})=>{t?function(e,t){e.setAttribute("data-md-state",t)}(e,"active"):function(e){e.removeAttribute("data-md-state")}(e)});const c=f("article h1");return void 0===c?w.a:function(e,{viewport$:t,header$:n}){return q(e,{header$:n,viewport$:t}).pipe(Object(o.a)(({offset:{y:t}})=>{const{height:n}=k(e);return{active:t>=n}}),Object(I.a)("active"))}(c,t).pipe(Object(x.a)(n),Object($.a)(()=>n.complete()),Object(o.a)(t=>Object.assign({ref:e},t)))}var ke=n(71),Ae=n(39),Se=n(4);var Te=n(21),Re=n(69),Me=n(70),Ce=n(72),Le=n(73),Pe=n(79);var Ue;n(45);function ze(e){return e.split(/"([^"]+)"/g).map((e,t)=>1&t?e.replace(/^\b|^(?![^\x00-\x7F]|$)|\s+/g," +"):e).join("").replace(/"|(?:^|\s+)[*+\-:^~]+(?=\s+|$)/g,"").trim()}function He(e){return e.type===Ue.READY}function Ne(e){return e.type===Ue.QUERY}function Ie(e){return e.type===Ue.RESULT}function Ye({config:e,docs:t,index:n}){1===e.lang.length&&"en"===e.lang[0]&&(e.lang=[X("search.config.lang")]),"[\\s\\-]+"===e.separator&&(e.separator=X("search.config.separator"));return{config:e,docs:t,index:n,pipeline:X("search.config.pipeline").split(/\s*,\s*/).filter(Boolean)}}function De(e,t){const n=K(),c=new Worker(e),r=new a.a,i=function(e,{tx$:t}){const n=Object(u.a)(e,"message").pipe(Object(o.a)(({data:e})=>e));return t.pipe(Object(J.a)(()=>n,{leading:!0,trailing:!0}),Object(x.a)(t=>e.postMessage(t)),Object(W.a)(n),Object(S.a)())}(c,{tx$:r}).pipe(Object(o.a)(e=>{if(Ie(e))for(const t of e.data)for(const e of t)e.location=`${n.base}/${e.location}`;return e}),Object(S.a)());return Object(P.a)(t).pipe(Object(o.a)(e=>({type:Ue.SETUP,data:Ye(e)}))).subscribe(r.next.bind(r)),{tx$:r,rx$:i}}!function(e){e[e.SETUP=0]="SETUP",e[e.READY=1]="READY",e[e.QUERY=2]="QUERY",e[e.RESULT=3]="RESULT"}(Ue||(Ue={}));var Fe=n(74),qe=n(75);function Je(e,{tx$:t}){const n=new a.a;return n.pipe(Object(I.a)("value"),Object(o.a)(({value:e})=>({type:Ue.QUERY,data:e}))).subscribe(t.next.bind(t)),n.pipe(Object(I.a)("focus")).subscribe(({focus:t})=>{var n,a;t?(a=t,H[n="search"].checked!==a&&H[n].click(),function(e,t){e.placeholder=t}(e,"")):function(e){e.placeholder=X("search.placeholder")}(e)}),Object(u.a)(e.form,"reset").pipe(Object(Fe.a)(n.pipe(Object(qe.a)(1)))).subscribe(()=>function(e,t=!0){t?e.focus():e.blur()}(e)),function(e){const t=(null===__search||void 0===__search?void 0:__search.transform)||ze,n=g(e),a=Object(c.a)(Object(u.a)(e,"keyup"),Object(u.a)(e,"focus").pipe(Object(ge.a)(1))).pipe(Object(o.a)(()=>t(e.value)),Object(m.a)(t(e.value)),Object(xe.a)());return Object(N.a)([a,n]).pipe(Object(o.a)(([e,t])=>({value:e,focus:t})))}(e).pipe(Object(x.a)(n),Object($.a)(()=>n.complete()),Object(o.a)(t=>Object.assign({ref:e},t)))}function We(e,{rx$:t},{query$:n}){const c=new a.a,r=d(":scope > :first-child",e);c.pipe(Object(te.a)(n)).subscribe(([{data:e},{value:t}])=>{t?function(e,t){switch(t){case 0:e.textContent=X("search.result.none");break;case 1:e.textContent=X("search.result.one");break;default:e.textContent=X("search.result.other",t)}}(r,e.length):function(e){e.textContent=X("search.result.placeholder")}(r)});const i=d(":scope > :last-child",e);c.subscribe(({data:e})=>{!function(e){e.innerHTML=""}(i);const t=[...e.map(([e])=>e.score),0];for(let n=0;n<e.length;n++)oe(i,le(e[n++],t[n]))});return t.pipe(Object(y.a)(Ie),Object(o.a)(({data:e})=>({data:e})),Object(m.a)({data:[]})).pipe(Object(x.a)(c),Object($.a)(()=>c.complete()),Object(o.a)(t=>Object.assign({ref:e},t)))}function Qe(e){const t=K(),n=De(t.search,(a=t.base+"/search/search_index.json",(null===__search||void 0===__search?void 0:__search.index)||z(a)));var a;const{tx$:r,rx$:o}=n;r.pipe(Object(y.a)(Ne),Object(ke.a)(o.pipe(Object(y.a)(He))),Object(Ae.a)(1)).subscribe(r.next.bind(r));const i=Je(d("[data-md-component=search-query]",e),n);return Object(c.a)(i,We(d("[data-md-component=search-result]",e),n,{query$:i}))}var Be=n(25);function Ke(e,t){var{header$:n}=t,c=Object(Be.c)(t,["header$"]);const r=new a.a;return r.pipe(Object(ve.a)(me.a),Object(te.a)(n)).subscribe({next([{height:t},{height:n}]){!function(e,t){const n=e.firstElementChild;n.style.height=t-2*n.offsetTop+"px"}(e,t),function(e,t){e.style.top=t+"px"}(e,n)},complete(){!function(e){e.style.top=""}(e),function(e){e.firstElementChild.style.height=""}(e)}}),function(e,{viewport$:t,main$:n}){const a=e.parentElement.offsetTop-e.parentElement.parentElement.offsetTop;return Object(N.a)([n,t]).pipe(Object(o.a)(([{offset:e,height:t},{offset:{y:n}}])=>({height:t=t+Math.min(a,Math.max(0,n-e))-a,locked:n>=e+a})),Object(xe.a)((e,t)=>e.height===t.height&&e.locked===t.locked))}(e,c).pipe(Object(x.a)(r),Object($.a)(()=>r.complete()),Object(o.a)(t=>Object.assign({ref:e},t)))}var Ve=n(76);function Xe(e){const[t]=e.match(/(git(?:hub|lab))/i)||[];switch(t.toLowerCase()){case"github":const[,t,n]=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);return function(e,t){return z(void 0!==t?`https://api.github.com/repos/${e}/${t}`:"https://api.github.com/users/"+e).pipe(Object(o.a)(e=>{if(void 0!==t){const{stargazers_count:t,forks_count:n}=e;return[be(t)+" Stars",be(n)+" Forks"]}{const{public_repos:t}=e;return[be(t)+" Repositories"]}}),Object(Ve.a)([]))}(t,n);case"gitlab":const[,a,c]=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i);return function(e,t){return z(`https://${e}/api/v4/projects/${encodeURIComponent(t)}`).pipe(Object(o.a)(({star_count:e,forks_count:t})=>[be(e)+" Stars",be(t)+" Forks"]),Object(Ve.a)([]))}(a,c);default:return w.a}}let Ge;function Ze(e){const t=new a.a;return t.subscribe(({facts:t})=>{!function(e,t){e.lastElementChild.appendChild(t)}(e,function(e){return pe("ul",{class:"md-source__facts"},e.map(e=>pe("li",{class:"md-source__fact"},e)))}(t)),function(e,t){e.lastElementChild.setAttribute("data-md-state",t)}(e,"done")}),function(e){const t=function(e){let t=0;for(let n=0,a=e.length;n<a;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}(e.href).toString();return Ge||(Ge=Object(r.a)(()=>{const n=sessionStorage.getItem(t);if(n)return Object(v.a)(JSON.parse(n));{const n=Xe(e.href);return n.subscribe(e=>{try{sessionStorage.setItem(t,JSON.stringify(e))}catch(e){}}),n}}).pipe(Object(Me.a)(()=>w.a),Object(y.a)(e=>e.length>0),Object(o.a)(e=>({facts:e})),Object(s.a)(1)))}(e).pipe(Object(x.a)(t),Object($.a)(()=>t.complete()),Object(o.a)(t=>Object.assign({ref:e},t)))}function et(e,t){const n=new a.a;return n.pipe(Object(ve.a)(me.a)).subscribe({next({hidden:t}){t?function(e,t){e.setAttribute("data-md-state",t)}(e,"hidden"):ie(e)},complete(){ie(e)}}),function(e,{viewport$:t,header$:n}){return q(e,{header$:n,viewport$:t}).pipe(Object(o.a)(({offset:{y:e}})=>({hidden:e>=10})),Object(I.a)("hidden"))}(e,t).pipe(Object(x.a)(n),Object($.a)(()=>n.complete()),Object(o.a)(t=>Object.assign({ref:e},t)))}var tt=n(80);function nt(e,t){const n=new a.a;n.pipe(Object(ve.a)(me.a)).subscribe(({prev:e,next:t})=>{for(const[e]of t)re(e),ae(e);for(const[t,[n]]of e.entries())ce(n,t===e.length-1),ne(n,"blur")});return function(e,{viewport$:t,header$:n}){const a=new Map;for(const t of e){const e=f(`[id="${decodeURIComponent(t.hash.substring(1))}"]`);void 0!==e&&a.set(t,e)}const c=n.pipe(Object(o.a)(e=>24+e.height));return A(document.body).pipe(Object(I.a)("height"),Object(o.a)(()=>{let e=[];return[...a].reduce((t,[n,c])=>{for(;e.length;){if(!(a.get(e[e.length-1]).tagName>=c.tagName))break;e.pop()}let r=c.offsetTop;for(;!r&&c.parentElement;)r=(c=c.parentElement).offsetTop;return t.set([...e=[...e,n]].reverse(),r)},new Map)}),Object(i.a)(e=>Object(N.a)([c,t]).pipe(Object(tt.a)(([e,t],[n,{offset:{y:a}}])=>{for(;t.length;){const[,c]=t[0];if(!(c-n<a))break;e=[...e,t.shift()]}for(;e.length;){const[,c]=e[e.length-1];if(!(c-n>=a))break;t=[e.pop(),...t]}return[e,t]},[[],[...e]]),Object(xe.a)((e,t)=>e[0]===t[0]&&e[1]===t[1])))).pipe(Object(o.a)(([e,t])=>({prev:e.map(([e])=>e),next:t.map(([e])=>e)})),Object(m.a)({prev:[],next:[]}),Object($e.a)(2,1),Object(o.a)(([e,t])=>e.prev.length<t.prev.length?{prev:t.prev.slice(Math.max(0,e.prev.length-1),t.prev.length),next:[]}:{prev:t.prev.slice(-1),next:t.next.slice(0,t.next.length-e.next.length)}))}(O("[href^=\\#]",e),t).pipe(Object(x.a)(n),Object($.a)(()=>n.complete()),Object(o.a)(t=>Object.assign({ref:e},t)))}var at=n(14);document.documentElement.classList.remove("no-js"),document.documentElement.classList.add("js");const ct=function(){const e=new b.a;return Object(u.a)(document,"DOMContentLoaded").pipe(Object(l.a)(document)).subscribe(e),e}(),rt=new T.a(R()),ot=Object(u.a)(window,"hashchange").pipe(Object(o.a)(M),Object(m.a)(M()),Object(y.a)(e=>e.length>0),Object(S.a)()).pipe(Object(i.a)(e=>Object(v.a)(f(`[id="${e}"]`)))),it=Object(N.a)([Object(c.a)(Object(u.a)(window,"scroll",{passive:!0}),Object(u.a)(window,"resize",{passive:!0})).pipe(Object(o.a)(Y),Object(m.a)(Y())),Object(u.a)(window,"resize",{passive:!0}).pipe(Object(o.a)(F),Object(m.a)(F()))]).pipe(Object(o.a)(([e,t])=>({offset:e,size:t})),Object(s.a)(1)),st=C("(min-width: 960px)"),pt=C("(min-width: 1220px)"),bt=Object(c.a)(C("print").pipe(Object(y.a)(Boolean)),Object(u.a)(window,"beforeprint")).pipe(Object(l.a)(void 0)),ut=new a.a;!function({alert$:e}){ee.a.isSupported()&&new Se.a(e=>{new ee.a("[data-clipboard-target], [data-clipboard-text]").on("success",t=>e.next(t))}).subscribe(()=>e.next(X("clipboard.copied")))}({alert$:ut}),V("navigation.instant")&&function({document$:e,location$:t,viewport$:n}){const a=K();if("file:"===location.protocol)return;"scrollRestoration"in history&&(history.scrollRestoration="manual",Object(u.a)(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}));const r=f("link[rel='shortcut icon']");void 0!==r&&(r.href=r.href);const p=function(e,t){const n=new DOMParser;return U(e,t).pipe(Object(i.a)(e=>e.text()),Object(o.a)(e=>n.parseFromString(e,"text/xml")),Object(s.a)(1))}(a.base+"/sitemap.xml").pipe(Object(o.a)(e=>function(e){if(e.length<2)return e;const[t,n]=e.sort((e,t)=>e.length-t.length);let a=0;if(t===n)a=t.length;else for(;t.charCodeAt(a)==t.charCodeAt(a);)a++;const c=K();return e.map(e=>e.replace(t.slice(0,a),c.base+"/"))}(O("loc",e).map(e=>e.textContent))),Object(i.a)(e=>Object(u.a)(document.body,"click").pipe(Object(y.a)(e=>!e.metaKey&&!e.ctrlKey),Object(i.a)(t=>{if(t.target instanceof HTMLElement){const n=t.target.closest("a");if(n&&!n.target&&e.includes(n.href))return t.preventDefault(),Object(v.a)({url:new URL(n.href)})}return w.a}))),Object(S.a)()),b=Object(u.a)(window,"popstate").pipe(Object(y.a)(e=>null!==e.state),Object(o.a)(e=>({url:new URL(location.href),offset:e.state})),Object(S.a)());Object(c.a)(p,b).pipe(Object(xe.a)((e,t)=>e.url.href===t.url.href),Object(o.a)(({url:e})=>e)).subscribe(t);const l=t.pipe(Object(I.a)("pathname"),Object(Re.a)(1),Object(i.a)(e=>U(e.href).pipe(Object(Me.a)(()=>(function(e){location.href=e.href}(e),w.a)))),Object(S.a)());p.pipe(Object(ke.a)(l)).subscribe(({url:e})=>{history.pushState({},"",e.toString())});const m=new DOMParser;l.pipe(Object(i.a)(e=>e.text()),Object(o.a)(e=>m.parseFromString(e,"text/html"))).subscribe(e),Object(c.a)(p,b).pipe(Object(ke.a)(e)).subscribe(({url:e,offset:t})=>{e.hash&&!t?function(e){const t=j("a");t.href=e,t.addEventListener("click",e=>e.stopPropagation()),t.click()}(e.hash):D(t||{y:0})}),e.pipe(Object(Re.a)(1)).subscribe(e=>{for(const t of["title","link[rel='canonical']","meta[name='author']","meta[name='description']","[data-md-component=announce]","[data-md-component=header-title]","[data-md-component=container]","[data-md-component=skip]"]){const n=f(t),a=f(t,e);void 0!==n&&void 0!==a&&h(n,a)}}),e.pipe(Object(Re.a)(1),Object(o.a)(()=>d("[data-md-component=container]")),Object(i.a)(e=>Object(v.a)(...O("script",e))),Object(Ce.a)(e=>{const t=j("script");return e.src?(t.src=e.src,h(e,t),new Se.a(e=>{t.onload=()=>e.complete()})):(t.textContent=e.textContent,h(e,t),Te.a)})).subscribe(),n.pipe(Object(Le.a)(p),Object(Pe.a)(250),Object(I.a)("offset")).subscribe(({offset:e})=>{history.replaceState(e,"")}),Object(c.a)(p,b).pipe(Object($e.a)(2,1),Object(y.a)(([e,t])=>e.url.pathname===t.url.pathname),Object(o.a)(([,e])=>e)).subscribe(({offset:e})=>{D(e||{y:0})})}({document$:ct,location$:rt,viewport$:it}),function({document$:e}){e.subscribe(()=>{for(const e of O("[data-md-state=indeterminate]"))e.setAttribute("data-md-state",""),e.indeterminate=!0,e.checked=!1})}({document$:ct}),function({document$:e}){/(iPad|iPhone|iPod)/.test(navigator.userAgent)&&e.pipe(Object(i.a)(()=>Object(v.a)(...O("[data-md-scrollfix]"))),Object(x.a)(e=>e.removeAttribute("data-md-scrollfix")),Object(at.a)(e=>Object(u.a)(e,"touchstart").pipe(Object(l.a)(e)))).subscribe(e=>{const t=e.scrollTop;0===t?e.scrollTop=1:t+e.offsetHeight===e.scrollHeight&&(e.scrollTop=t-1)})}({document$:ct});const lt=(ft=d("[data-md-component=header]"),dt={viewport$:it},Object(r.a)(()=>{const e=getComputedStyle(ft);return Object(v.a)("sticky"===e.position||"-webkit-sticky"===e.position)}).pipe(Object(ye.a)(A(ft),_e(dt)),Object(o.a)(([e,{height:t},n])=>({height:e?t:0,sticky:e,hidden:n})),Object(xe.a)((e,t)=>e.sticky===t.sticky&&e.height===t.height&&e.hidden===t.hidden),Object(s.a)(1)));var ft,dt;const Ot=ct.pipe(Object(o.a)(()=>d("[data-md-component=main]")),Object(i.a)(e=>function(e,{viewport$:t,header$:n}){const a=n.pipe(Object(o.a)(({height:e})=>e),Object(xe.a)()),c=a.pipe(Object(i.a)(()=>A(e).pipe(Object(o.a)(({height:t})=>({top:e.offsetTop,bottom:e.offsetTop+t})),Object(I.a)("bottom"))));return Object(N.a)([a,c,t]).pipe(Object(o.a)(([e,{top:t,bottom:n},{offset:{y:a},size:{height:c}}])=>({offset:t-e,height:c=Math.max(0,c-Math.max(0,t-a,e)-Math.max(0,c+a-n)),active:t-e<=a})),Object(xe.a)((e,t)=>e.offset===t.offset&&e.height===t.height&&e.active===t.active))}(e,{viewport$:it,header$:lt})),Object(s.a)(1)),jt=Object(c.a)(...O("[data-md-component=dialog]").map(e=>we(e,{alert$:ut})),...O("[data-md-component=header]").map(e=>function(e,{header$:t,main$:n}){const c=new a.a;return c.pipe(Object(I.a)("active"),Object(ye.a)(t),Object(ve.a)(me.a)).subscribe(([{active:t},{hidden:n}])=>{t?function(e,t){e.setAttribute("data-md-state",t)}(e,n?"hidden":"shadow"):function(e){e.removeAttribute("data-md-state")}(e)}),n.subscribe(e=>c.next(e)),t.pipe(Object(o.a)(t=>Object.assign({ref:e},t)))}(e,{viewport$:it,header$:lt,main$:Ot})),...O("[data-md-component=search]").map(e=>Qe(e)),...O("[data-md-component=source]").map(e=>Ze(e)),...O("[data-md-component=tabs]").map(e=>et(e,{viewport$:it,header$:lt}))),ht=Object(r.a)(()=>Object(c.a)(...O("[data-md-component=content]").map(e=>function(e,{target$:t,viewport$:n,print$:a}){return Object(c.a)(...O("pre > code",e).map(e=>de(e,{viewport$:n})),...O("table:not([class])",e).map(e=>he(e)),...O("details",e).map(e=>Oe(e,{target$:t,print$:a})))}(e,{target$:ot,viewport$:it,print$:bt})),...O("[data-md-component=header-title]").map(e=>Ee(e,{viewport$:it,header$:lt})),...O("[data-md-component=sidebar]").map(e=>"navigation"===e.getAttribute("data-md-type")?L(pt,()=>Ke(e,{viewport$:it,header$:lt,main$:Ot})):L(st,()=>Ke(e,{viewport$:it,header$:lt,main$:Ot}))),...O("[data-md-component=toc]").map(e=>nt(e,{viewport$:it,header$:lt})))),mt=ct.pipe(Object(i.a)(()=>ht),Object(p.a)(jt));mt.subscribe()}}));
|
|
//# sourceMappingURL=bundle.4fa4ebaf.min.js.map
|