mkdocs-material/material/overrides/assets/javascripts/bundle.75e3dcac.min.js

2 lines
8.3 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){function t(t){for(var r,o,a=t[0],u=t[1],s=t[2],b=0,p=[];b<a.length;b++)o=a[b],Object.prototype.hasOwnProperty.call(c,o)&&c[o]&&p.push(c[o][0]),c[o]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(f&&f(t);p.length;)p.shift()();return i.push.apply(i,s||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],r=!0,a=1;a<n.length;a++){var u=n[a];0!==c[u]&&(r=!1)}r&&(i.splice(t--,1),e=o(o.s=n[0]))}return e}var r={},c={4:0},i=[];function o(t){if(r[t])return r[t].exports;var n=r[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=r,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 r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));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 a=window.webpackJsonp=window.webpackJsonp||[],u=a.push.bind(a);a.push=t,a=a.slice();for(var s=0;s<a.length;s++)t(a[s]);var f=u;return i.push([61,0]),n()}({0:function(e,t,n){"use strict";n.d(t,"r",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return u})),n.d(t,"g",(function(){return s})),n.d(t,"b",(function(){return f})),n.d(t,"i",(function(){return b})),n.d(t,"m",(function(){return O})),n.d(t,"s",(function(){return j})),n.d(t,"f",(function(){return L})),n.d(t,"d",(function(){return E})),n.d(t,"t",(function(){return P})),n.d(t,"h",(function(){return A})),n.d(t,"n",(function(){return H})),n.d(t,"u",(function(){return $})),n.d(t,"o",(function(){return q})),n.d(t,"v",(function(){return R})),n.d(t,"w",(function(){return W})),n.d(t,"x",(function(){return J})),n.d(t,"a",(function(){return D})),n.d(t,"j",(function(){return N})),n.d(t,"k",(function(){return B})),n.d(t,"l",(function(){return U})),n.d(t,"p",(function(){return Y})),n.d(t,"y",(function(){return Z})),n.d(t,"z",(function(){return ee})),n.d(t,"q",(function(){return Q})),n.d(t,"A",(function(){return re}));var r=n(46),c=n(62),i=n(47);function o(){const e=new r.a;return Object(c.a)(document,"DOMContentLoaded").pipe(Object(i.a)(document)).subscribe(e),e}function a(e,t=document){return t.querySelector(e)||void 0}function u(e,t=document){const n=a(e,t);if(void 0===n)throw new ReferenceError(`Missing element: expected "${e}" to be present`);return n}function s(e,t=document){return Array.from(t.querySelectorAll(e))}function f(e){return document.createElement(e)}function b(e,t){e.replaceWith(t)}var p=n(63),d=n(36),l=n(64);function O(e,t=!0){t?e.focus():e.blur()}function j(e){return Object(p.a)(Object(c.a)(e,"focus"),Object(c.a)(e,"blur")).pipe(Object(d.a)(({type:e})=>"focus"===e),Object(l.a)(e===(document.activeElement instanceof HTMLElement?document.activeElement:void 0)))}var h=n(25),g=n(65),v=n(66),m=n(67),w=n(43),y=n(68),x=n(69),M=n(70),k=n(49);const _=new h.a,S=Object(g.a)(()=>Object(v.a)(new ResizeObserver(e=>{for(const t of e)_.next(t)}))).pipe(Object(w.a)(e=>m.a.pipe(Object(l.a)(e)).pipe(Object(y.a)(()=>e.disconnect()))),Object(x.a)(1));function L(e){return{width:e.offsetWidth,height:e.offsetHeight}}function E(e){return{width:e.scrollWidth,height:e.scrollHeight}}function P(e){return S.pipe(Object(M.a)(t=>t.observe(e)),Object(w.a)(t=>_.pipe(Object(k.a)(({target:t})=>t===e),Object(y.a)(()=>t.unobserve(e)),Object(d.a)(({contentRect:e})=>({width:e.width,height:e.height})))),Object(l.a)(L(e)))}var T=n(48);var z=n(71);function A(){return new URL(location.href)}function H(e){location.href=e.href}function $(){return new z.a(A())}function C(){return location.hash.substring(1)}function q(e){const t=f("a");t.href=e,t.addEventListener("click",e=>e.stopPropagation()),t.click()}function R(){return Object(c.a)(window,"hashchange").pipe(Object(d.a)(C),Object(l.a)(C()),Object(k.a)(e=>e.length>0),Object(T.a)()).pipe(Object(w.a)(e=>Object(v.a)(a(`[id="${e}"]`))))}function W(e){const t=matchMedia(e);return Object(c.a)(t,"change").pipe(Object(d.a)(e=>e.matches),Object(l.a)(t.matches))}function J(){return Object(p.a)(W("print").pipe(Object(k.a)(Boolean)),Object(c.a)(window,"beforeprint")).pipe(Object(i.a)(void 0))}function D(e,t){return e.pipe(Object(w.a)(e=>e?t():m.a))}var F=n(8);function N(e,t={credentials:"same-origin"}){return Object(F.a)(fetch(e,t)).pipe(Object(k.a)(e=>200===e.status))}function B(e,t){return N(e,t).pipe(Object(w.a)(e=>e.json()),Object(x.a)(1))}function U(e,t){const n=new DOMParser;return N(e,t).pipe(Object(w.a)(e=>e.text()),Object(d.a)(e=>n.parseFromString(e,"text/xml")),Object(x.a)(1))}const X={drawer:u("[data-md-toggle=drawer]"),search:u("[data-md-toggle=search]")};function Y(e,t){X[e].checked!==t&&X[e].click()}var G=n(52),I=n(72);function K(){return{x:Math.max(0,pageXOffset),y:Math.max(0,pageYOffset)}}function Q({x:e,y:t}){window.scrollTo(e||0,t||0)}function V(){return{width:innerWidth,height:innerHeight}}function Z(){return Object(G.a)([Object(p.a)(Object(c.a)(window,"scroll",{passive:!0}),Object(c.a)(window,"resize",{passive:!0})).pipe(Object(d.a)(K),Object(l.a)(K())),Object(c.a)(window,"resize",{passive:!0}).pipe(Object(d.a)(V),Object(l.a)(V()))]).pipe(Object(d.a)(([e,t])=>({offset:e,size:t})),Object(x.a)(1))}function ee(e,{viewport$:t,header$:n}){const r=t.pipe(Object(I.a)("size")),c=Object(G.a)([r,n]).pipe(Object(d.a)(()=>({x:e.offsetLeft,y:e.offsetTop})));return Object(G.a)([n,t,c]).pipe(Object(d.a)(([{height:e},{offset:t,size:n},{x:r,y:c}])=>({offset:{x:t.x-r,y:t.y-c+e},size:n})))}var te=n(73),ne=n(74);function re(e,{tx$:t}){const n=Object(c.a)(e,"message").pipe(Object(d.a)(({data:e})=>e));return t.pipe(Object(te.a)(()=>n,{leading:!0,trailing:!0}),Object(M.a)(t=>e.postMessage(t)),Object(ne.a)(n),Object(T.a)())}},6:function(e,t,n){"use strict";function r(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)r(e,n)}function c(e,t,...n){const c=document.createElement(e);if(t)for(const e of Object.keys(t))"boolean"!=typeof t[e]?c.setAttribute(e,t[e]):t[e]&&c.setAttribute(e,"");for(const e of n)r(c,e);return c}function i(e,t){let n=t;if(e.length>n){for(;" "!==e[n]&&--n>0;);return e.substring(0,n)+"..."}return e}function o(e){if(e>999){return((e+1e-6)/1e3).toFixed(+((e-950)%1e3>99))+"k"}return e.toString()}function a(e){let t=0;for(let n=0,r=e.length;n<r;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a}))},61:function(e,t,n){"use strict";n.r(t);var r=n(38),c=n(8),i=n(62),o=n(0),a=n(43),u=n(36),s=n(6);function f(e,t){return t.length?Object(s.a)("div",{class:""},Object(s.a)("span",null,Object(s.c)(e.length)," results"),Object(s.a)("ul",{class:"tx-icon-search__list"},e.slice(0,10).map(e=>Object(s.a)("li",{class:"tx-icon-search__item"},Object(s.a)("span",{class:"twemoji"},Object(s.a)("img",{src:"https://raw.githubusercontent.com/squidfunk/mkdocs-material/master/material/.icons/"+e,style:"width: 18px; height: 18px"}))," ",Object(s.a)("button",{class:"md-clipboard--inline","data-clipboard-text":":"+e.replace(/\.svg$/,"").replace(/\//g,"-")+":"},Object(s.a)("code",null,function(e,t){return`:${Object(r.wrap)(e.replace(/\.svg$/,"").replace(/\//g,"-"),t,{wrap:{tagOpen:"<b>",tagClose:"</b>"}})}:`}(e,t))))))):Object(s.a)("div",{class:""})}const b=Object(o.e)("#__config"),p=JSON.parse(b.textContent),d=Object(c.a)(fetch(p.base+"/overrides/assets/javascripts/icons.json").then(e=>e.json())),l=Object(o.c)("#icon-search");l&&d.pipe(Object(a.a)(e=>Object(i.a)(l,"keyup").pipe(Object(u.a)(()=>Object(r.filter)(e,l.value))))).subscribe(e=>{const t=Object(o.e)(".tx-icon-result");t.innerHTML="",t.appendChild(f(e,l.value))}),Object(i.a)(document.body,"click").subscribe(e=>{if(e.target instanceof HTMLElement){e.target.closest("a[href^=http]")instanceof HTMLLinkElement&&ga("send","event","outbound","click",b.href)}})}}));
//# sourceMappingURL=bundle.75e3dcac.min.js.map