1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-25 05:44:54 +01:00
mkdocs-material/material/overrides/assets/javascripts/custom.e2e97759.min.js

19 lines
49 KiB
JavaScript
Raw Normal View History

2024-04-14 08:30:52 +02:00
"use strict";(()=>{var hn=Object.create;var Tr=Object.defineProperty;var vn=Object.getOwnPropertyDescriptor;var xn=Object.getOwnPropertyNames,Kr=Object.getOwnPropertySymbols,bn=Object.getPrototypeOf,Yr=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable;var Jr=(e,r,t)=>r in e?Tr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Ke=(e,r)=>{for(var t in r||(r={}))Yr.call(r,t)&&Jr(e,t,r[t]);if(Kr)for(var t of Kr(r))yn.call(r,t)&&Jr(e,t,r[t]);return e};var Te=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var gn=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of xn(r))!Yr.call(e,o)&&o!==t&&Tr(e,o,{get:()=>r[o],enumerable:!(n=vn(r,o))||n.enumerable});return e};var Xr=(e,r,t)=>(t=e!=null?hn(bn(e)):{},gn(r||!e||!e.__esModule?Tr(t,"default",{value:e,enumerable:!0}):t,e));var qe=Te(G=>{(function(){var e,r,t,n,o,i,f,s,u,a,c,p,l,v,d,m,x,w,E,R;R=150,a=20,E=150,u=.75,G.score=function(h,b,S){var T,y,g,_;return y=S.preparedQuery,T=S.allowErrors,T||o(h,y.core_lw,y.core_up)?(_=h.toLowerCase(),g=r(h,_,y),Math.ceil(g)):0},G.isMatch=o=function(h,b,S){var T,y,g,_,k,U,C;if(g=h.length,_=b.length,!g||_>g)return!1;for(T=-1,y=-1;++y<_;){for(k=b.charCodeAt(y),U=S.charCodeAt(y);++T<g&&(C=h.charCodeAt(T),!(C===k||C===U)););if(T===g)return!1}return!0},G.computeScore=r=function(h,b,S){var T,y,g,_,k,U,C,F,M,j,V,re,q,ae,de,te,ve,fe,wr,Oe,Qe,Sr,Er,Or;if(de=S.query,te=S.query_lw,j=h.length,q=de.length,T=c(h,b,de,te),y=T.score,T.count===q)return v(q,j,y,T.pos);if(ae=b.indexOf(te),ae>-1)return d(h,b,de,te,ae,q,j);for(Oe=new Array(q),k=new Array(q),Or=w(q,j),V=Math.ceil(u*q)+5,re=V,C=!0,M=-1;++M<q;)Oe[M]=0,k[M]=0;for(F=-1;++F<j;){if(Sr=b[F],!Sr.charCodeAt(0)in S.charCodes){if(C){for(M=-1;++M<q;)k[M]=0;C=!1}continue}for(fe=0,wr=0,_=0,ve=!0,C=!0,M=-1;++M<q;){if(Qe=Oe[M],Qe>fe&&(fe=Qe),U=0,te[M]===Sr)if(Er=s(F,h,b),U=_>0?_:l(h,b,de,te,F,M,Er),g=wr+p(F,M,Er,y,U),g>fe)fe=g,re=V;else{if(ve&&--re<=0)return Math.max(fe,Oe[q-1])*Or;ve=!1}wr=Qe,_=k[M],k[M]=U,Oe[M]=fe}}return fe=Oe[q-1],fe*Or},G.isWordStart=s=function(h,b,S){var T,y;return h===0?!0:(T=b[h],y=b[h-1],i(y)||T!==S[h]&&y===S[h-1])},G.isWordEnd=f=function(h,b,S,T){var y,g;return h===T-1?!0:(y=b[h],g=b[h+1],i(g)||y===S[h]&&g!==S[h+1])},i=function(h){return h===" "||h==="."||h==="-"||h==="_"||h==="/"||h==="\\"},x=function(h){var b;return h<a?(b=a-h,100+b*b):Math.max(100+a-h,0)},G.scoreSize=w=function(h,b){return E/(E+Math.abs(b-h))},v=function(h,b,S,T){return 2*h*(R*S+x(T))*w(h,b)},G.scorePattern=m=function(h,b,S,T,y){var g,_;return _=h,g=6,S===h&&(g+=2),T&&(g+=3),y&&(g+=1),h===b&&(T&&(S===b?_+=2:_+=1),y&&(g+=1)),S+_*(_+g)},G.scoreCharacter=p=function(h,b,S,T,y){var g;return g=x(h),S?g+R*((T>y?T:y)+10):g+R*y},G.scoreConsecutives=l=function(h,b,S,T,y,g,_){var k,U,C,F,M,j,V;for(U=h.length,F=S.length,C=U-y,M=F-g,k=C<M?C:M,j=0,V=0,S[g]===h[y]&&j++;++V<k&&T[++g]===b[++y];)S[g]===h[y]&&j++;return V<k&&y--,V===1?1+2*j:m(V,F,j,_,f(y,h,b,U))},G.scoreExactMatch=d=function(h,b,S,T,y,g,_){var k,U,C,F,M;for(M=s(y,h,b),M||(C=b.indexOf(T,y+1),C>-1&&(M=s(C,h,b),M&&(y=C))),U=-1,F=0;++U<g;)S[y+U]===h[U]&&F++;return k=f(y+g-1,h,b,_),v(g,_,m(g,g,F,M,k),y)},e=function(){function h(b,S,T){this.score=b,this.pos=S,this.count=T}return h}(),t=new e(0,.1,0),G.scoreAcronyms=c=function(h,b,S,T){var y,g,_,k,U,C,F,M,j,V,re;if(U=h.length,C=S.length,!(U>1&&C>1))return t;for(y=0,V=0,re=0,M=0,_=-1,k=-1;++k<C;){if(F=T[k],i(F))if(_=b.indexOf(F,_+1),_>-1){V++;continue}else break;for(;++_<U;)if(F===b[_]&&s(_,h,b)){S[k]===h[_]&&M++,re+=_,y++;break}if(_===U)break}return y<2?t:(g=y===C?n(h,b,S,y):!1,j=m(y,C,M,!0,g),new e(j,re/y,y+V))},n=function(h,b,S,T){var y,g,_,k;if(_=h.length,k=S.length,y=0,_>12*k)return!1;for(g=-1;++g<_;)if(s(g,h,b)&&++y>T)return!1;return!0}}).call(G)});var yr=Te(De=>{(function(){var e,r,t,n,o,i,f,s,u,a;a=qe(),i=a.isMatch,e=a.computeScore,s=a.scoreSize,u=20,t=2.5,De.score=function(c,p,l){var v,d,m,x;return d=l.preparedQuery,v=l.allowErrors,v||i(c,d.core_lw,d.core_up)?(x=c.toLowerCase(),m=e(c,x,d),m=f(c,x,m,l),Math.ceil(m)):0},f=function(c,p,l,v){var d,m,x,w,E,R,h,b
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var _r=function(e,r){return _r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])},_r(e,r)};function $(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");_r(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function Gr(e,r,t,n){function o(i){return i instanceof t?i:new t(function(f){f(i)})}return new(t||(t=Promise))(function(i,f){function s(c){try{a(n.next(c))}catch(p){f(p)}}function u(c){try{a(n.throw(c))}catch(p){f(p)}}function a(c){c.done?i(c.value):o(c.value).then(s,u)}a((n=n.apply(e,r||[])).next())})}function Je(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,f;return f={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function s(a){return function(c){return u([a,c])}}function u(a){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,o&&(i=a[0]&2?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,o=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){t.label=a[1];break}if(a[0]===6&&t.label<i[1]){t.label=i[1],i=a;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(a);break}i[2]&&t.ops.pop(),t.trys.pop();continue}a=r.call(e,t)}catch(c){a=[6,c],o=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}function Y(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function W(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),o,i=[],f;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){f={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(f)throw f.error}}return i}function z(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))}function xe(e){return this instanceof xe?(this.v=e,this):new xe(e)}function Br(e,r,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t.apply(e,r||[]),o,i=[];return o={},f("next"),f("throw"),f("return"),o[Symbol.asyncIterator]=function(){return this},o;function f(l){n[l]&&(o[l]=function(v){return new Promise(function(d,m){i.push([l,v,d,m])>1||s(l,v)})})}function s(l,v){try{u(n[l](v))}catch(d){p(i[0][3],d)}}function u(l){l.value instanceof xe?Promise.resolve(l.value.v).then(a,c):p(i[0][2],l)}function a(l){s("next",l)}function c(l){s("throw",l)}function p(l,v){l(v),i.shift(),i.length&&s(i[0][0],i[0][1])}}function Zr(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e[Symbol.asyncIterator],t;return r?r.call(e):(e=typeof Y=="function"?Y(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(f){return new Promise(function(s,u){f=e[i](f),o(s,u,f.done,f.value)})}}function o(i,f,s,u){Promise.resolve(u).then(function(a){i({value:a,done:s})},f)}}function O(e){return typeof e=="function"}function Ye(e){var r=function(n){Error.call(n),n.stack=new Error().stack},t=e(r);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Xe=Ye(function(e){return function(t){e(this),this.message=t?t.length+` errors
`+t.map(function(n,o){return o+1+") "+n.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=t}});function ue(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var ne=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var r,t,n,o,i;if(!this.closed){this.closed=!0;var f=this._parentage;if(f)if(this._parentage=null,Array.isArray(f))try{for(var s=Y(f),u=s.next();!u.done;u=s.next()){var a=u.value;a.remove(this)}}catch(m){r={error:m}}finally{try{u&&!u.done&&(t=s.return)&&t.call(s)}finally{if(r)throw r.error}}else f.remove(this);var c=this.initialTeardown;if(O(c))try{c()}catch(m){i=m instanceof Xe?m.errors:[m]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var l=Y(p),v=l.next();!v.done;v=l.next()){var d=v.value;try{et(d)}catch(m){i=i!=null?i:[],m instanceof Xe?i=z(z([],W(i)),W(m.errors)):i.push(m)}}}catch(m){n={error:m}}finally{try{v&&!v.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}}if(i)throw new Xe(i)}},e.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)et(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(r)}},e.prototype._hasParent=function(r){var t=this._parentage;return t===r||Array.isArray(t)&&t.includes(r)},e.prototype._addParent=function(r){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(r),t):t?[t,r]:r},e.prototype._removeParent=function(r){var t=this._parentage;t===r?this._parentage=null:Array.isArray(t)&&ue(t,r)},e.prototype.remove=function(r){var t=this._finalizers;t&&ue(t,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}();var Ar=ne.EMPTY;function Ge(e){return e instanceof ne||e&&"closed"in e&&O(e.remove)&&O(e.add)&&O(e.unsubscribe)}function et(e){O(e)?e():e.unsubscribe()}var ee={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var _e={setTimeout:function(e,r){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];var o=_e.delegate;return o!=null&&o.setTimeout?o.setTimeout.apply(o,z([e,r],W(t))):setTimeout.apply(void 0,z([e,r],W(t)))},clearTimeout:function(e){var r=_e.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Be(e){_e.setTimeout(function(){var r=ee.onUnhandledError;if(r)r(e);else throw e})}function ce(){}var rt=function(){return Mr("C",void 0,void 0)}();function tt(e){return Mr("E",void 0,e)}function nt(e){return Mr("N",e,void 0)}function Mr(e,r,t){return{kind:e,value:r,error:t}}var be=null;function Ae(e){if(ee.useDeprecatedSynchronousErrorHandling){var r=!be;if(r&&(be={errorThrown:!1,error:null}),e(),r){var t=be,n=t.errorThrown,o=t.error;if(be=null,n)throw o}}else e()}function ot(e){ee.useDeprecatedSynchronousErrorHandling&&be&&(be.errorThrown=!0,be.error=e)}var Ue=function(e){$(r,e);function r(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,Ge(t)&&t.add(n)):n.destination=On,n}return r.create=function(t,n,o){return new ye(t,n,o)},r.prototype.next=function(t){this.isStopped?Cr(nt(t),this):this._next(t)},r.prototype.error=function(t){this.isStopped?Cr(tt(t),this):(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped?Cr(rt,this):(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(ne);var wn=Function.prototype.bind;function Ir(e,r){return wn.call(e,r)}var Sn=function(){function e(r){this.partialObserver=r}return e.prototype.next=function(r){var t=this.partialObserver;if(t.next)try{t.next(r)}catch(n){Ze(n)}},e.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(n){Ze(n)}else Ze(r)},e.prot
//# sourceMappingURL=custom.e2e97759.min.js.map