mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-12-15 17:11:22 +01:00
19 lines
50 KiB
JavaScript
19 lines
50 KiB
JavaScript
|
"use strict";(()=>{var go=Object.create;var Ar=Object.defineProperty;var wo=Object.getOwnPropertyDescriptor;var So=Object.getOwnPropertyNames,et=Object.getOwnPropertySymbols,Eo=Object.getPrototypeOf,tt=Object.prototype.hasOwnProperty,Oo=Object.prototype.propertyIsEnumerable;var rt=(e,r,t)=>r in e?Ar(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Je=(e,r)=>{for(var t in r||(r={}))tt.call(r,t)&&rt(e,t,r[t]);if(et)for(var t of et(r))Oo.call(r,t)&&rt(e,t,r[t]);return e};var Me=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var To=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of So(r))!tt.call(e,n)&&n!==t&&Ar(e,n,{get:()=>r[n],enumerable:!(o=wo(r,n))||o.enumerable});return e};var ot=(e,r,t)=>(t=e!=null?go(Eo(e)):{},To(r||!e||!e.__esModule?Ar(t,"default",{value:e,enumerable:!0}):t,e));var De=Me(Z=>{(function(){var e,r,t,o,n,i,u,s,f,a,c,p,l,v,h,m,x,w,E,H;H=150,a=20,E=150,f=.75,Z.score=function(d,b,S){var T,y,g,_;return y=S.preparedQuery,T=S.allowErrors,T||n(d,y.core_lw,y.core_up)?(_=d.toLowerCase(),g=r(d,_,y),Math.ceil(g)):0},Z.isMatch=n=function(d,b,S){var T,y,g,_,W,z,C;if(g=d.length,_=b.length,!g||_>g)return!1;for(T=-1,y=-1;++y<_;){for(W=b.charCodeAt(y),z=S.charCodeAt(y);++T<g&&(C=d.charCodeAt(T),!(C===W||C===z)););if(T===g)return!1}return!0},Z.computeScore=r=function(d,b,S){var T,y,g,_,W,z,C,U,M,N,V,re,Q,ue,de,te,ye,fe,Er,Ae,Ke,Or,Tr,_r;if(de=S.query,te=S.query_lw,N=d.length,Q=de.length,T=c(d,b,de,te),y=T.score,T.count===Q)return v(Q,N,y,T.pos);if(ue=b.indexOf(te),ue>-1)return h(d,b,de,te,ue,Q,N);for(Ae=new Array(Q),W=new Array(Q),_r=w(Q,N),V=Math.ceil(f*Q)+5,re=V,C=!0,M=-1;++M<Q;)Ae[M]=0,W[M]=0;for(U=-1;++U<N;){if(Or=b[U],!Or.charCodeAt(0)in S.charCodes){if(C){for(M=-1;++M<Q;)W[M]=0;C=!1}continue}for(fe=0,Er=0,_=0,ye=!0,C=!0,M=-1;++M<Q;){if(Ke=Ae[M],Ke>fe&&(fe=Ke),z=0,te[M]===Or)if(Tr=s(U,d,b),z=_>0?_:l(d,b,de,te,U,M,Tr),g=Er+p(U,M,Tr,y,z),g>fe)fe=g,re=V;else{if(ye&&--re<=0)return Math.max(fe,Ae[Q-1])*_r;ye=!1}Er=Ke,_=W[M],W[M]=z,Ae[M]=fe}}return fe=Ae[Q-1],fe*_r},Z.isWordStart=s=function(d,b,S){var T,y;return d===0?!0:(T=b[d],y=b[d-1],i(y)||T!==S[d]&&y===S[d-1])},Z.isWordEnd=u=function(d,b,S,T){var y,g;return d===T-1?!0:(y=b[d],g=b[d+1],i(g)||y===S[d]&&g!==S[d+1])},i=function(d){return d===" "||d==="."||d==="-"||d==="_"||d==="/"||d==="\\"},x=function(d){var b;return d<a?(b=a-d,100+b*b):Math.max(100+a-d,0)},Z.scoreSize=w=function(d,b){return E/(E+Math.abs(b-d))},v=function(d,b,S,T){return 2*d*(H*S+x(T))*w(d,b)},Z.scorePattern=m=function(d,b,S,T,y){var g,_;return _=d,g=6,S===d&&(g+=2),T&&(g+=3),y&&(g+=1),d===b&&(T&&(S===b?_+=2:_+=1),y&&(g+=1)),S+_*(_+g)},Z.scoreCharacter=p=function(d,b,S,T,y){var g;return g=x(d),S?g+H*((T>y?T:y)+10):g+H*y},Z.scoreConsecutives=l=function(d,b,S,T,y,g,_){var W,z,C,U,M,N,V;for(z=d.length,U=S.length,C=z-y,M=U-g,W=C<M?C:M,N=0,V=0,S[g]===d[y]&&N++;++V<W&&T[++g]===b[++y];)S[g]===d[y]&&N++;return V<W&&y--,V===1?1+2*N:m(V,U,N,_,u(y,d,b,z))},Z.scoreExactMatch=h=function(d,b,S,T,y,g,_){var W,z,C,U,M;for(M=s(y,d,b),M||(C=b.indexOf(T,y+1),C>-1&&(M=s(C,d,b),M&&(y=C))),z=-1,U=0;++z<g;)S[y+z]===d[z]&&U++;return W=u(y+g-1,d,b,_),v(g,_,m(g,g,U,M,W),y)},e=function(){function d(b,S,T){this.score=b,this.pos=S,this.count=T}return d}(),t=new e(0,.1,0),Z.scoreAcronyms=c=function(d,b,S,T){var y,g,_,W,z,C,U,M,N,V,re;if(z=d.length,C=S.length,!(z>1&&C>1))return t;for(y=0,V=0,re=0,M=0,_=-1,W=-1;++W<C;){if(U=T[W],i(U))if(_=b.indexOf(U,_+1),_>-1){V++;continue}else break;for(;++_<z;)if(U===b[_]&&s(_,d,b)){S[W]===d[_]&&M++,re+=_,y++;break}if(_===z)break}return y<2?t:(g=y===C?o(d,b,S,y):!1,N=m(y,C,M,!0,g),new e(N,re/y,y+V))},o=function(d,b,S,T){var y,g,_,W;if(_=d.length,W=S.length,y=0,_>12*W)return!1;for(g=-1;++g<_;)if(s(g,d,b)&&++y>T)return!1;return!0}}).call(Z)});var wr=Me(Qe=>{(function(){var e,r,t,o,n,i,u,s,f,a;a=De(),i=a.isMatch,e=a.computeScore,s=a.scoreSize,f=20,t=2.5,Qe.score=function(c,p,l){var v,h,m,x;return h=l.preparedQuery,v=l.allowErrors,v||i(c,h.core_lw,h.core_up)?(x=c.toLowerCase(),m=e(c,x,h),m=u(c,x,m,l),Math.ceil(m)):0},u=function(c,p,l,v){var h,m,x,w,E,H,d,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 Mr=function(e,r){return Mr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])},Mr(e,r)};function j(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Mr(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function nt(e,r,t,o){function n(i){return i instanceof t?i:new t(function(u){u(i)})}return new(t||(t=Promise))(function(i,u){function s(c){try{a(o.next(c))}catch(p){u(p)}}function f(c){try{a(o.throw(c))}catch(p){u(p)}}function a(c){c.done?i(c.value):n(c.value).then(s,f)}a((o=o.apply(e,r||[])).next())})}function Ye(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,u;return u={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function s(a){return function(c){return f([a,c])}}function f(a){if(o)throw new TypeError("Generator is already executing.");for(;t;)try{if(o=1,n&&(i=a[0]&2?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=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++,n=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],n=0}finally{o=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}function X(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],o=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function R(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var o=t.call(e),n,i=[],u;try{for(;(r===void 0||r-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(s){u={error:s}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(u)throw u.error}}return i}function k(e,r,t){if(t||arguments.length===2)for(var o=0,n=r.length,i;o<n;o++)(i||!(o in r))&&(i||(i=Array.prototype.slice.call(r,0,o)),i[o]=r[o]);return e.concat(i||Array.prototype.slice.call(r))}function ge(e){return this instanceof ge?(this.v=e,this):new ge(e)}function it(e,r,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=t.apply(e,r||[]),n,i=[];return n={},u("next"),u("throw"),u("return"),n[Symbol.asyncIterator]=function(){return this},n;function u(l){o[l]&&(n[l]=function(v){return new Promise(function(h,m){i.push([l,v,h,m])>1||s(l,v)})})}function s(l,v){try{f(o[l](v))}catch(h){p(i[0][3],h)}}function f(l){l.value instanceof ge?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 at(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 X=="function"?X(e):e[Symbol.iterator](),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(i){t[i]=e[i]&&function(u){return new Promise(function(s,f){u=e[i](u),n(s,f,u.done,u.value)})}}function n(i,u,s,f){Promise.resolve(f).then(function(a){i({value:a,done:s})},u)}}function O(e){return typeof e=="function"}function Xe(e){var r=function(o){Error.call(o),o.stack=new Error().stack},t=e(r);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Ge=Xe(function(e){return function(t){e(this),this.message=t?t.length+` errors
|
||
|
`+t.map(function(o,n){return n+1+") "+o.toString()}).join(`
|
||
|
`):"",this.name="UnsubscriptionError",this.errors=t}});function ce(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var oe=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var r,t,o,n,i;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var s=X(u),f=s.next();!f.done;f=s.next()){var a=f.value;a.remove(this)}}catch(m){r={error:m}}finally{try{f&&!f.done&&(t=s.return)&&t.call(s)}finally{if(r)throw r.error}}else u.remove(this);var c=this.initialTeardown;if(O(c))try{c()}catch(m){i=m instanceof Ge?m.errors:[m]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var l=X(p),v=l.next();!v.done;v=l.next()){var h=v.value;try{ut(h)}catch(m){i=i!=null?i:[],m instanceof Ge?i=k(k([],R(i)),R(m.errors)):i.push(m)}}}catch(m){o={error:m}}finally{try{v&&!v.done&&(n=l.return)&&n.call(l)}finally{if(o)throw o.error}}}if(i)throw new Ge(i)}},e.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)ut(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)&&ce(t,r)},e.prototype.remove=function(r){var t=this._finalizers;t&&ce(t,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}();var Ir=oe.EMPTY;function Be(e){return e instanceof oe||e&&"closed"in e&&O(e.remove)&&O(e.add)&&O(e.unsubscribe)}function ut(e){O(e)?e():e.unsubscribe()}var ee={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ie={setTimeout:function(e,r){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];var n=Ie.delegate;return n!=null&&n.setTimeout?n.setTimeout.apply(n,k([e,r],R(t))):setTimeout.apply(void 0,k([e,r],R(t)))},clearTimeout:function(e){var r=Ie.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ze(e){Ie.setTimeout(function(){var r=ee.onUnhandledError;if(r)r(e);else throw e})}function se(){}var ft=function(){return Lr("C",void 0,void 0)}();function ct(e){return Lr("E",void 0,e)}function st(e){return Lr("N",e,void 0)}function Lr(e,r,t){return{kind:e,value:r,error:t}}var we=null;function Le(e){if(ee.useDeprecatedSynchronousErrorHandling){var r=!we;if(r&&(we={errorThrown:!1,error:null}),e(),r){var t=we,o=t.errorThrown,n=t.error;if(we=null,o)throw n}}else e()}function pt(e){ee.useDeprecatedSynchronousErrorHandling&&we&&(we.errorThrown=!0,we.error=e)}var ze=function(e){j(r,e);function r(t){var o=e.call(this)||this;return o.isStopped=!1,t?(o.destination=t,Be(t)&&t.add(o)):o.destination=Io,o}return r.create=function(t,o,n){return new Se(t,o,n)},r.prototype.next=function(t){this.isStopped?Pr(st(t),this):this._next(t)},r.prototype.error=function(t){this.isStopped?Pr(ct(t),this):(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped?Pr(ft,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}(oe);var _o=Function.prototype.bind;function Cr(e,r){return _o.call(e,r)}var Ao=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(o){er(o)}},e.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(o){er(o)}else er(r)},e.prot
|
||
|
//# sourceMappingURL=custom.058c863c.min.js.map
|
||
|
|