mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
19 lines
50 KiB
JavaScript
19 lines
50 KiB
JavaScript
(()=>{var Uo=Object.create;var Qe=Object.defineProperty;var qo=Object.getOwnPropertyDescriptor;var Vo=Object.getOwnPropertyNames,Gr=Object.getOwnPropertySymbols,No=Object.getPrototypeOf,Jr=Object.prototype.hasOwnProperty,$o=Object.prototype.propertyIsEnumerable;var Yr=(e,r,t)=>r in e?Qe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Ke=(e,r)=>{for(var t in r||(r={}))Jr.call(r,t)&&Yr(e,t,r[t]);if(Gr)for(var t of Gr(r))$o.call(r,t)&&Yr(e,t,r[t]);return e};var Do=e=>Qe(e,"__esModule",{value:!0});var he=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Qo=(e,r,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of Vo(r))!Jr.call(e,o)&&o!=="default"&&Qe(e,o,{get:()=>r[o],enumerable:!(t=qo(r,o))||t.enumerable});return e},Ar=e=>Qo(Do(Qe(e!=null?Uo(No(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var xt=he((Mn,Je)=>{/*! *****************************************************************************
|
|
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 Xr,Zr,et,rt,tt,ot,nt,it,at,Be,Mr,st,lt,ut,Se,pt,ft,ct,mt,dt,ht,vt,bt,Ge;(function(e){var r=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(o){e(t(r,t(o)))}):typeof Je=="object"&&typeof Je.exports=="object"?e(t(r,t(Je.exports))):e(t(r));function t(o,n){return o!==r&&(typeof Object.create=="function"?Object.defineProperty(o,"__esModule",{value:!0}):o.__esModule=!0),function(i,a){return o[i]=n?n(i,a):a}}})(function(e){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])};Xr=function(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(o,n);function i(){this.constructor=o}o.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},Zr=Object.assign||function(o){for(var n,i=1,a=arguments.length;i<a;i++){n=arguments[i];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(o[l]=n[l])}return o},et=function(o,n){var i={};for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&n.indexOf(a)<0&&(i[a]=o[a]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(o);l<a.length;l++)n.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(o,a[l])&&(i[a[l]]=o[a[l]]);return i},rt=function(o,n,i,a){var l=arguments.length,s=l<3?n:a===null?a=Object.getOwnPropertyDescriptor(n,i):a,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,n,i,a);else for(var u=o.length-1;u>=0;u--)(p=o[u])&&(s=(l<3?p(s):l>3?p(n,i,s):p(n,i))||s);return l>3&&s&&Object.defineProperty(n,i,s),s},tt=function(o,n){return function(i,a){n(i,a,o)}},ot=function(o,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,n)},nt=function(o,n,i,a){function l(s){return s instanceof i?s:new i(function(p){p(s)})}return new(i||(i=Promise))(function(s,p){function u(d){try{f(a.next(d))}catch(h){p(h)}}function c(d){try{f(a.throw(d))}catch(h){p(h)}}function f(d){d.done?s(d.value):l(d.value).then(u,c)}f((a=a.apply(o,n||[])).next())})},it=function(o,n){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},a,l,s,p;return p={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function u(f){return function(d){return c([f,d])}}function c(f){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,l&&(s=f[0]&2?l.return:f[0]?l.throw||((s=l.return)&&s.call(l),0):l.next)&&!(s=s.call(l,f[1])).done)return s;switch(l=0,s&&(f=[f[0]&2,s.value]),f[0]){case 0:case 1:s=f;break;case 4:return i.label++,{value:f[1],done:!1};case 5:i.label++,l=f[1],f=[0];continue;case 7:f=i.ops.pop(),i.trys.pop();continue;default:if(s=i.trys,!(s=s.length>0&&s[s.length-1])&&(f[0]===6||f[0]===2)){i=0;continue}if(f[0]===3&&(!s||f[1]>s[0]&&f[1]<s[3])){i.label=f[1];break}if(f[0]===6&&i.label<s[1]){i.label=s[1],s=f;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(f);break}s[2]&&i.ops.pop(),i.trys.pop();continue}f=n.call(o,i)}catch(d){f=[6,d],l=0}finally{a=s=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},at=function(o,n){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(n,i)&&Ge(n,o,i)},Ge=Object.create?function(o,n,i,a){a===void 0&&(a=i),Object.defineProperty(o,a,{enumerable:!0,get:function(){return n[i]}})}:function(o,n,i,a){a===void 0&&(a=i),o[a]=n[i]},Be=function(o){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&o[n],a=0;if(i)return i.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&a>=o.length&&(o=void 0),{value:o&&o[a++],done:!o}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},Mr=function(o,n){var i=typeof Symbol=="function"&&o[Symbol.iterator];if(!i)return o;var a=i.call(o),l,s=[],p;try{for(;(n===void 0||n-- >0)&&!(l=a.next()).done;)s.push(l.value)}catch(u){p={error:u}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(p)throw p.error}}return s},st=function(){for(var o=[],n=0;n<arguments.length;n++)o=o.concat(Mr(arguments[n]));return o},lt=function(){for(var o=0,n=0,i=arguments.length;n<i;n++)o+=arguments[n].length;for(var a=Array(o),l=0,n=0;n<i;n++)for(var s=arguments[n],p=0,u=s.length;p<u;p++,l++)a[l]=s[p];return a},ut=function(o,n){for(var i=0,a=n.length,l=o.length;i<a;i++,l++)o[l]=n[i];return o},Se=function(o){return this instanceof Se?(this.v=o,this):new Se(o)},pt=function(o,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=i.apply(o,n||[]),l,s=[];return l={},p("next"),p("throw"),p("return"),l[Symbol.asyncIterator]=function(){return this},l;function p(m){a[m]&&(l[m]=function(b){return new Promise(function(w,E){s.push([m,b,w,E])>1||u(m,b)})})}function u(m,b){try{c(a[m](b))}catch(w){h(s[0][3],w)}}function c(m){m.value instanceof Se?Promise.resolve(m.value.v).then(f,d):h(s[0][2],m)}function f(m){u("next",m)}function d(m){u("throw",m)}function h(m,b){m(b),s.shift(),s.length&&u(s[0][0],s[0][1])}},ft=function(o){var n,i;return n={},a("next"),a("throw",function(l){throw l}),a("return"),n[Symbol.iterator]=function(){return this},n;function a(l,s){n[l]=o[l]?function(p){return(i=!i)?{value:Se(o[l](p)),done:l==="return"}:s?s(p):p}:s}},ct=function(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=o[Symbol.asyncIterator],i;return n?n.call(o):(o=typeof Be=="function"?Be(o):o[Symbol.iterator](),i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i);function a(s){i[s]=o[s]&&function(p){return new Promise(function(u,c){p=o[s](p),l(u,c,p.done,p.value)})}}function l(s,p,u,c){Promise.resolve(c).then(function(f){s({value:f,done:u})},p)}},mt=function(o,n){return Object.defineProperty?Object.defineProperty(o,"raw",{value:n}):o.raw=n,o};var t=Object.create?function(o,n){Object.defineProperty(o,"default",{enumerable:!0,value:n})}:function(o,n){o.default=n};dt=function(o){if(o&&o.__esModule)return o;var n={};if(o!=null)for(var i in o)i!=="default"&&Object.prototype.hasOwnProperty.call(o,i)&&Ge(n,o,i);return t(n,o),n},ht=function(o){return o&&o.__esModule?o:{default:o}},vt=function(o,n){if(!n.has(o))throw new TypeError("attempted to get private field on non-instance");return n.get(o)},bt=function(o,n,i){if(!n.has(o))throw new TypeError("attempted to set private field on non-instance");return n.set(o,i),i},e("__extends",Xr),e("__assign",Zr),e("__rest",et),e("__decorate",rt),e("__param",tt),e("__metadata",ot),e("__awaiter",nt),e("__generator",it),e("__exportStar",at),e("__createBinding",Ge),e("__values",Be),e("__read",Mr),e("__spread",st),e("__spreadArrays",lt),e("__spreadArray",ut),e("__await",Se),e("__asyncGenerator",pt),e("__asyncDelegator",ft),e("__asyncValues",ct),e("__makeTemplateObject",mt),e("__importStar",dt),e("__importDefault",ht),e("__classPrivateFieldGet",vt),e("__classPrivateFieldSet",bt)})});var Ne=he(B=>{(function(){var e,r,t,o,n,i,a,l,s,p,u,c,f,d,h,m,b,w,E,I;I=150,p=20,E=150,s=.75,B.score=function(v,x,S){var T,y,g,O;return y=S.preparedQuery,T=S.allowErrors,T||n(v,y.core_lw,y.core_up)?(O=v.toLowerCase(),g=r(v,O,y),Math.ceil(g)):0},B.isMatch=n=function(v,x,S){var T,y,g,O,k,H,M;if(g=v.length,O=x.length,!g||O>g)return!1;for(T=-1,y=-1;++y<O;){for(k=x.charCodeAt(y),H=S.charCodeAt(y);++T<g&&(M=v.charCodeAt(T),!(M===k||M===H)););if(T===g)return!1}return!0},B.computeScore=r=function(v,x,S){var T,y,g,O,k,H,M,F,A,q,z,ee,V,ie,le,re,de,ae,Er,we,De,Tr,_r,Or;if(le=S.query,re=S.query_lw,q=v.length,V=le.length,T=u(v,x,le,re),y=T.score,T.count===V)return d(V,q,y,T.pos);if(ie=x.indexOf(re),ie>-1)return h(v,x,le,re,ie,V,q);for(we=new Array(V),k=new Array(V),Or=w(V,q),z=Math.ceil(s*V)+5,ee=z,M=!0,A=-1;++A<V;)we[A]=0,k[A]=0;for(F=-1;++F<q;){if(Tr=x[F],!Tr.charCodeAt(0)in S.charCodes){if(M){for(A=-1;++A<V;)k[A]=0;M=!1}continue}for(ae=0,Er=0,O=0,de=!0,M=!0,A=-1;++A<V;){if(De=we[A],De>ae&&(ae=De),H=0,re[A]===Tr)if(_r=l(F,v,x),H=O>0?O:f(v,x,le,re,F,A,_r),g=Er+c(F,A,_r,y,H),g>ae)ae=g,ee=z;else{if(de&&--ee<=0)return Math.max(ae,we[V-1])*Or;de=!1}Er=De,O=k[A],k[A]=H,we[A]=ae}}return ae=we[V-1],ae*Or},B.isWordStart=l=function(v,x,S){var T,y;return v===0?!0:(T=x[v],y=x[v-1],i(y)||T!==S[v]&&y===S[v-1])},B.isWordEnd=a=function(v,x,S,T){var y,g;return v===T-1?!0:(y=x[v],g=x[v+1],i(g)||y===S[v]&&g!==S[v+1])},i=function(v){return v===" "||v==="."||v==="-"||v==="_"||v==="/"||v==="\\"},b=function(v){var x;return v<p?(x=p-v,100+x*x):Math.max(100+p-v,0)},B.scoreSize=w=function(v,x){return E/(E+Math.abs(x-v))},d=function(v,x,S,T){return 2*v*(I*S+b(T))*w(v,x)},B.scorePattern=m=function(v,x,S,T,y){var g,O;return O=v,g=6,S===v&&(g+=2),T&&(g+=3),y&&(g+=1),v===x&&(T&&(S===x?O+=2:O+=1),y&&(g+=1)),S+O*(O+g)},B.scoreCharacter=c=function(v,x,S,T,y){var g;return g=b(v),S?g+I*((T>y?T:y)+10):g+I*y},B.scoreConsecutives=f=function(v,x,S,T,y,g,O){var k,H,M,F,A,q,z;for(H=v.length,F=S.length,M=H-y,A=F-g,k=M<A?M:A,q=0,z=0,S[g]===v[y]&&q++;++z<k&&T[++g]===x[++y];)S[g]===v[y]&&q++;return z<k&&y--,z===1?1+2*q:m(z,F,q,O,a(y,v,x,H))},B.scoreExactMatch=h=function(v,x,S,T,y,g,O){var k,H,M,F,A;for(A=l(y,v,x),A||(M=x.indexOf(T,y+1),M>-1&&(A=l(M,v,x),A&&(y=M))),H=-1,F=0;++H<g;)S[y+H]===v[H]&&F++;return k=a(y+g-1,v,x,O),d(g,O,m(g,g,F,A,k),y)},e=function(){function v(x,S,T){this.score=x,this.pos=S,this.count=T}return v}(),t=new e(0,.1,0),B.scoreAcronyms=u=function(v,x,S,T){var y,g,O,k,H,M,F,A,q,z,ee;if(H=v.length,M=S.length,!(H>1&&M>1))return t;for(y=0,z=0,ee=0,A=0,O=-1,k=-1;++k<M;){if(F=T[k],i(F))if(O=x.indexOf(F,O+1),O>-1){z++;continue}else break;for(;++O<H;)if(F===x[O]&&l(O,v,x)){S[k]===v[O]&&A++,ee+=O,y++;break}if(O===H)break}return y<2?t:(g=y===M?o(v,x,S,y):!1,q=m(y,M,A,!0,g),new e(q,ee/y,y+z))},o=function(v,x,S,T){var y,g,O,k;if(O=v.length,k=S.length,y=0,O>12*k)return!1;for(g=-1;++g<O;)if(l(g,v,x)&&++y>T)return!1;return!0}}).call(B)});var gr=he($e=>{(function(){var e,r,t,o,n,i,a,l,s,p;p=Ne(),i=p.isMatch,e=p.computeScore,l=p.scoreSize,s=20,t=2.5,$e.score=function(u,c,f){var d,h,m,b;return h=f.preparedQuery,d=f.allowErrors,d||i(u,h.core_lw,h.core_up)?(b=u.toLowerCase(),m=e(u,b,h),m=a(u,b,m,f),Math.ceil(m)):0},a=function(u,c,f,d){var h,m,b,w,E,I,v,x,S,T;if(f===0)return 0;for(S=d.preparedQuery,T=d.useExtensionBonus,x=d.pathSeparator,E=u.length-1;u[E]===x;)E--;if(b=u.lastIndexOf(x,E),v=E-b,I=1,T&&(I+=n(c,S.ext,b,E,2),f*=I),b===-1)return f;for(w=S.depth;b>-1&&w-- >0;)b=u.lastIndexOf(x,b-1);return m=b===-1?f:I*e(u.slice(b+1,E+1),c.slice(b+1,E+1),S),h=.5*s/(s+r(u,E+1,x)),h*m+(1-h)*f*l(0,t*v)},$e.countDir=r=function(u,c,f){var d,h;if(c<1)return 0;for(d=0,h=-1;++h<c&&u[h]===f;);for(;++h<c;)if(u[h]===f)for(d++;++h<c&&u[h]===f;);return d},$e.getExtension=o=function(u){var c;return c=u.lastIndexOf("."),c<0?"":u.substr(c+1)},n=function(u,c,f,d,h){var m,b,w,E;if(!c.length||(E=u.lastIndexOf(".",d),!(E>f)))return 0;for(w=c.length,m=d-E,m<w&&(w=m,m=c.length),E++,b=-1;++b<w&&u[E+b]===c[b];);return b===0&&h>0?.9*n(u,c,f,E-2,h-1):b/m}}).call($e)});var Kr=he((bo,xo)=>{(function(){var e,r,t,o,n,i,a,l;l=gr(),t=l.countDir,n=l.getExtension,xo.exports=e=function(){function s(p,u){var c,f,d;if(d=u!=null?u:{},c=d.optCharRegEx,f=d.pathSeparator,!(p&&p.length))return null;this.query=p,this.query_lw=p.toLowerCase(),this.core=r(p,c),this.core_lw=this.core.toLowerCase(),this.core_up=a(this.core),this.depth=t(p,p.length,f),this.ext=n(this.query_lw),this.charCodes=o(this.query_lw)}return s}(),i=/[ _\-:\/\\]/g,r=function(s,p){return p==null&&(p=i),s.replace(p,"")},a=function(s){var p,u,c,f;for(u="",c=0,f=s.length;c<f;c++)p=s[c],u+=p.toUpperCase()[0];return u},o=function(s){var p,u,c;for(c=s.length,u=-1,p=[];++u<c;)p[s.charCodeAt(u)]=!0;return p}}).call(bo)});var wo=he((yo,go)=>{(function(){var e,r,t,o,n;o=Ne(),r=gr(),e=Kr(),t=function(i){return i.candidate},n=function(i,a){return a.score-i.score},go.exports=function(i,a,l){var s,p,u,c,f,d,h,m,b,w,E,I,v;for(m=[],u=l.key,f=l.maxResults,c=l.maxInners,E=l.usePathScoring,b=c!=null&&c>0?c:i.length+1,s=u!=null,h=E?r:o,I=0,v=i.length;I<v&&(p=i[I],w=s?p[u]:p,!(!!w&&(d=h.score(w,a,l),d>0&&(m.push({candidate:p,score:d}),!--b))));I++);return m.sort(n),i=m.map(t),f!=null&&(i=i.slice(0,f)),i}}).call(yo)});var So=he(wr=>{(function(){var e,r,t,o,n,i,a,l,s,p;p=Ne(),t=p.isMatch,o=p.isWordStart,s=p.scoreConsecutives,l=p.scoreCharacter,a=p.scoreAcronyms,wr.match=n=function(u,c,f){var d,h,m,b,w,E;return d=f.allowErrors,w=f.preparedQuery,b=f.pathSeparator,d||t(u,w.core_lw,w.core_up)?(E=u.toLowerCase(),m=r(u,E,w),m.length===0||u.indexOf(b)>-1&&(h=e(u,E,w,b),m=i(m,h)),m):[]},wr.wrap=function(u,c,f){var d,h,m,b,w,E,I,v,x;if(f.wrap!=null&&(x=f.wrap,E=x.tagClass,v=x.tagOpen,I=x.tagClose),E==null&&(E="highlight"),v==null&&(v='<strong class="'+E+'">'),I==null&&(I="</strong>"),u===c)return v+u+I;if(m=n(u,c,f),m.length===0)return u;for(b="",d=-1,w=0;++d<m.length;){for(h=m[d],h>w&&(b+=u.substring(w,h),w=h);++d<m.length;)if(m[d]===h+1)h++;else{d--;break}h++,h>w&&(b+=v,b+=u.substring(w,h),b+=I,w=h)}return w<=u.length-1&&(b+=u.substring(w)),b},e=function(u,c,f,d){var h,m,b;for(b=u.length-1;u[b]===d;)b--;if(h=u.lastIndexOf(d,b),h===-1)return[];for(m=f.depth;m-- >0;)if(h=u.lastIndexOf(d,h-1),h===-1)return[];return h++,b++,r(u.slice(h,b),c.slice(h,b),f,h)},i=function(u,c){var f,d,h,m,b,w,E;if(b=u.length,w=c.length,w===0)return u.slice();if(b===0)return c.slice();for(h=-1,m=0,d=c[m],E=[];++h<b;){for(f=u[h];d<=f&&++m<w;)d<f&&E.push(d),d=c[m];E.push(f)}for(;m<w;)E.push(c[m++]);return E},r=function(u,c,f,d){var h,m,b,w,E,I,v,x,S,T,y,g,O,k,H,M,F,A,q,z,ee,V,ie,le,re,de;for(d==null&&(d=0),A=f.query,q=f.query_lw,O=u.length,M=A.length,E=a(u,c,A,q).score,V=new Array(M),S=new Array(M),b=0,w=1,m=2,h=3,de=new Array(O*M),F=-1,g=-1;++g<M;)V[g]=0,S[g]=0;for(y=-1;++y<O;)for(z=0,ie=0,x=0,le=c[y],g=-1;++g<M;)T=0,I=0,ee=ie,q[g]===le&&(re=o(y,u,c),T=x>0?x:s(u,c,A,q,y,g,re),I=ee+l(y,g,re,E,T)),ie=V[g],x=S[g],z>ie?H=m:(z=ie,H=w),I>z?(z=I,H=h):T=0,V[g]=z,S[g]=T,de[++F]=z>0?H:b;for(y=O-1,g=M-1,F=y*M+g,v=!0,k=[];v&&y>=0&&g>=0;)switch(de[F]){case w:y--,F-=M;break;case m:g--,F--;break;case h:k.push(y+d),g--,y--,F-=M+1;break;default:v=!1}return k.reverse(),k}}).call(wr)});var Br=he((Eo,To)=>{(function(){var e,r,t,o,n,i,a,l;t=wo(),o=So(),l=Ne(),i=gr(),e=Kr(),a=null,r=(typeof process!="undefined"&&process!==null?process.platform:void 0)==="win32"?"\\":"/",To.exports={filter:function(s,p,u){return u==null&&(u={}),(p!=null?p.length:void 0)&&(s!=null?s.length:void 0)?(u=n(u,p),t(s,p,u)):[]},score:function(s,p,u){return u==null&&(u={}),(s!=null?s.length:void 0)&&(p!=null?p.length:void 0)?(u=n(u,p),u.usePathScoring?i.score(s,p,u):l.score(s,p,u)):0},match:function(s,p,u){var c,f,d;return u==null&&(u={}),s?p?s===p?function(){d=[];for(var h=0,m=s.length;0<=m?h<m:h>m;0<=m?h++:h--)d.push(h);return d}.apply(this):(u=n(u,p),o.match(s,p,u)):[]:[]},wrap:function(s,p,u){return u==null&&(u={}),s?p?(u=n(u,p),o.wrap(s,p,u)):[]:[]},prepareQuery:function(s,p){return p==null&&(p={}),p=n(p,s),p.preparedQuery}},n=function(s,p){return s.allowErrors==null&&(s.allowErrors=!1),s.usePathScoring==null&&(s.usePathScoring=!0),s.useExtensionBonus==null&&(s.useExtensionBonus=!1),s.pathSeparator==null&&(s.pathSeparator=r),s.optCharRegEx==null&&(s.optCharRegEx=null),s.wrap==null&&(s.wrap=null),s.preparedQuery==null&&(s.preparedQuery=a&&a.query===p?a:a=new e(p,s)),s}}).call(Eo)});var yt=Ar(xt()),{__extends:U,__assign:Ln,__rest:In,__decorate:Cn,__param:Pn,__metadata:kn,__awaiter:gt,__generator:Ye,__exportStar:Fn,__createBinding:Rn,__values:J,__read:R,__spread:Hn,__spreadArrays:Wn,__spreadArray:W,__await:Xe,__asyncGenerator:wt,__asyncDelegator:jn,__asyncValues:St,__makeTemplateObject:zn,__importStar:Un,__importDefault:qn,__classPrivateFieldGet:Vn,__classPrivateFieldSet:Nn}=yt.default;function _(e){return typeof e=="function"}function Ze(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 er=Ze(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
`+t.map(function(o,n){return n+1+") "+o.toString()}).join(`
|
|
`):"",this.name="UnsubscriptionError",this.errors=t}});function se(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var $=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._teardowns=null}return e.prototype.unsubscribe=function(){var r,t,o,n,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var l=J(a),s=l.next();!s.done;s=l.next()){var p=s.value;p.remove(this)}}catch(m){r={error:m}}finally{try{s&&!s.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}else a.remove(this);var u=this.initialTeardown;if(_(u))try{u()}catch(m){i=m instanceof er?m.errors:[m]}var c=this._teardowns;if(c){this._teardowns=null;try{for(var f=J(c),d=f.next();!d.done;d=f.next()){var h=d.value;try{Et(h)}catch(m){i=i!=null?i:[],m instanceof er?i=W(W([],R(i)),R(m.errors)):i.push(m)}}}catch(m){o={error:m}}finally{try{d&&!d.done&&(n=f.return)&&n.call(f)}finally{if(o)throw o.error}}}if(i)throw new er(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._teardowns=(t=this._teardowns)!==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)&&se(t,r)},e.prototype.remove=function(r){var t=this._teardowns;t&&se(t,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}();var Lr=$.EMPTY;function rr(e){return e instanceof $||e&&"closed"in e&&_(e.remove)&&_(e.add)&&_(e.unsubscribe)}function Et(e){_(e)?e():e.unsubscribe()}var Y={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ee={setTimeout:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=Ee.delegate;return((t==null?void 0:t.setTimeout)||setTimeout).apply(void 0,W([],R(e)))},clearTimeout:function(e){var r=Ee.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function tr(e){Ee.setTimeout(function(){var r=Y.onUnhandledError;if(r)r(e);else throw e})}function X(){}var Tt=function(){return Ir("C",void 0,void 0)}();function _t(e){return Ir("E",void 0,e)}function Ot(e){return Ir("N",e,void 0)}function Ir(e,r,t){return{kind:e,value:r,error:t}}var ve=null;function Te(e){if(Y.useDeprecatedSynchronousErrorHandling){var r=!ve;if(r&&(ve={errorThrown:!1,error:null}),e(),r){var t=ve,o=t.errorThrown,n=t.error;if(ve=null,o)throw n}}else e()}function At(e){Y.useDeprecatedSynchronousErrorHandling&&ve&&(ve.errorThrown=!0,ve.error=e)}var Pe=function(e){U(r,e);function r(t){var o=e.call(this)||this;return o.isStopped=!1,t?(o.destination=t,rr(t)&&t.add(o)):o.destination=Ko,o}return r.create=function(t,o,n){return new ke(t,o,n)},r.prototype.next=function(t){this.isStopped?Pr(Ot(t),this):this._next(t)},r.prototype.error=function(t){this.isStopped?Pr(_t(t),this):(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped?Pr(Tt,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}($);var ke=function(e){U(r,e);function r(t,o,n){var i=e.call(this)||this,a;if(_(t))a=t;else if(t){a=t.next,o=t.error,n=t.complete;var l;i&&Y.useDeprecatedNextContext?(l=Object.create(t),l.unsubscribe=function(){return i.unsubscribe()}):l=t,a=a==null?void 0:a.bind(l),o=o==null?void 0:o.bind(l),n=n==null?void 0:n.bind(l)}return i.destination={next:a?Cr(a,i):X,error:Cr(o!=null?o:Mt,i),complete:n?Cr(n,i):X},i}return r}(Pe);function Cr(e,r){return function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];try{e.apply(void 0,W([],R(t)))}catch(n){Y.useDeprecatedSynchronousErrorHandling?At(n):tr(n)}}}function Mt(e){throw e}function Pr(e,r){var t=Y.onStoppedNotification;t&&Ee.setTimeout(function(){return t(e,r)})}var Ko={closed:!0,next:X,error:Mt,complete:X};var ue=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Q(e){return e}function Lt(e){return e.length===0?Q:e.length===1?e[0]:function(t){return e.reduce(function(o,n){return n(o)},t)}}var L=function(){function e(r){r&&(this._subscribe=r)}return e.prototype.lift=function(r){var t=new e;return t.source=this,t.operator=r,t},e.prototype.subscribe=function(r,t,o){var n=this,i=Go(r)?r:new ke(r,t,o);return Te(function(){var a=n,l=a.operator,s=a.source;i.add(l?l.call(i,s):s?n._subscribe(i):n._trySubscribe(i))}),i},e.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(t){r.error(t)}},e.prototype.forEach=function(r,t){var o=this;return t=It(t),new t(function(n,i){var a;a=o.subscribe(function(l){try{r(l)}catch(s){i(s),a==null||a.unsubscribe()}},i,n)})},e.prototype._subscribe=function(r){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(r)},e.prototype[ue]=function(){return this},e.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return r.length?Lt(r)(this):this},e.prototype.toPromise=function(r){var t=this;return r=It(r),new r(function(o,n){var i;t.subscribe(function(a){return i=a},function(a){return n(a)},function(){return o(i)})})},e.create=function(r){return new e(r)},e}();function It(e){var r;return(r=e!=null?e:Y.Promise)!==null&&r!==void 0?r:Promise}function Bo(e){return e&&_(e.next)&&_(e.error)&&_(e.complete)}function Go(e){return e&&e instanceof Pe||Bo(e)&&rr(e)}function Jo(e){return _(e==null?void 0:e.lift)}function C(e){return function(r){if(Jo(r))return r.lift(function(t){try{return e(t,this)}catch(o){this.error(o)}});throw new TypeError("Unable to lift unknown Observable type")}}var P=function(e){U(r,e);function r(t,o,n,i,a){var l=e.call(this,t)||this;return l.onFinalize=a,l._next=o?function(s){try{o(s)}catch(p){t.error(p)}}:e.prototype._next,l._error=i?function(s){try{i(s)}catch(p){t.error(p)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=n?function(){try{n()}catch(s){t.error(s)}finally{this.unsubscribe()}}:e.prototype._complete,l}return r.prototype.unsubscribe=function(){var t,o=this.closed;e.prototype.unsubscribe.call(this),!o&&((t=this.onFinalize)===null||t===void 0||t.call(this))},r}(Pe);var _e={schedule:function(e){var r=requestAnimationFrame,t=cancelAnimationFrame,o=_e.delegate;o&&(r=o.requestAnimationFrame,t=o.cancelAnimationFrame);var n=r(function(i){t=void 0,e(i)});return new $(function(){return t==null?void 0:t(n)})},requestAnimationFrame:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=_e.delegate;return((t==null?void 0:t.requestAnimationFrame)||requestAnimationFrame).apply(void 0,W([],R(e)))},cancelAnimationFrame:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=_e.delegate;return((t==null?void 0:t.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,W([],R(e)))},delegate:void 0};var Ct=Ze(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var te=function(e){U(r,e);function r(){var t=e.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.prototype.lift=function(t){var o=new Pt(this,this);return o.operator=t,o},r.prototype._throwIfClosed=function(){if(this.closed)throw new Ct},r.prototype.next=function(t){var o=this;Te(function(){var n,i;if(o._throwIfClosed(),!o.isStopped){var a=o.observers.slice();try{for(var l=J(a),s=l.next();!s.done;s=l.next()){var p=s.value;p.next(t)}}catch(u){n={error:u}}finally{try{s&&!s.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}}})},r.prototype.error=function(t){var o=this;Te(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=t;for(var n=o.observers;n.length;)n.shift().error(t)}})},r.prototype.complete=function(){var t=this;Te(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var o=t.observers;o.length;)o.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},r.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},r.prototype._innerSubscribe=function(t){var o=this,n=o.hasError,i=o.isStopped,a=o.observers;return n||i?Lr:(a.push(t),new $(function(){return se(a,t)}))},r.prototype._checkFinalizedStatuses=function(t){var o=this,n=o.hasError,i=o.thrownError,a=o.isStopped;n?t.error(i):a&&t.complete()},r.prototype.asObservable=function(){var t=new L;return t.source=this,t},r.create=function(t,o){return new Pt(t,o)},r}(L);var Pt=function(e){U(r,e);function r(t,o){var n=e.call(this)||this;return n.destination=t,n.source=o,n}return r.prototype.next=function(t){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.next)===null||n===void 0||n.call(o,t)},r.prototype.error=function(t){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.error)===null||n===void 0||n.call(o,t)},r.prototype.complete=function(){var t,o;(o=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||o===void 0||o.call(t)},r.prototype._subscribe=function(t){var o,n;return(n=(o=this.source)===null||o===void 0?void 0:o.subscribe(t))!==null&&n!==void 0?n:Lr},r}(te);var Fe={now:function(){return(Fe.delegate||Date).now()},delegate:void 0};var kt=function(e){U(r,e);function r(t,o,n){t===void 0&&(t=1/0),o===void 0&&(o=1/0),n===void 0&&(n=Fe);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=o,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=o===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,o),i}return r.prototype.next=function(t){var o=this,n=o.isStopped,i=o._buffer,a=o._infiniteTimeWindow,l=o._timestampProvider,s=o._windowTime;n||(i.push(t),!a&&i.push(l.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},r.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(t),n=this,i=n._infiniteTimeWindow,a=n._buffer,l=a.slice(),s=0;s<l.length&&!t.closed;s+=i?1:2)t.next(l[s]);return this._checkFinalizedStatuses(t),o},r.prototype._trimBuffer=function(){var t=this,o=t._bufferSize,n=t._timestampProvider,i=t._buffer,a=t._infiniteTimeWindow,l=(a?1:2)*o;if(o<1/0&&l<i.length&&i.splice(0,i.length-l),!a){for(var s=n.now(),p=0,u=1;u<i.length&&i[u]<=s;u+=2)p=u;p&&i.splice(0,p+1)}},r}(te);var Ft=function(e){U(r,e);function r(t,o){return e.call(this)||this}return r.prototype.schedule=function(t,o){return o===void 0&&(o=0),this},r}($);var Re={setInterval:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=Re.delegate;return((t==null?void 0:t.setInterval)||setInterval).apply(void 0,W([],R(e)))},clearInterval:function(e){var r=Re.delegate;return((r==null?void 0:r.clearInterval)||clearInterval)(e)},delegate:void 0};var or=function(e){U(r,e);function r(t,o){var n=e.call(this,t,o)||this;return n.scheduler=t,n.work=o,n.pending=!1,n}return r.prototype.schedule=function(t,o){if(o===void 0&&(o=0),this.closed)return this;this.state=t;var n=this.id,i=this.scheduler;return n!=null&&(this.id=this.recycleAsyncId(i,n,o)),this.pending=!0,this.delay=o,this.id=this.id||this.requestAsyncId(i,this.id,o),this},r.prototype.requestAsyncId=function(t,o,n){return n===void 0&&(n=0),Re.setInterval(t.flush.bind(t,this),n)},r.prototype.recycleAsyncId=function(t,o,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return o;Re.clearInterval(o)},r.prototype.execute=function(t,o){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,o);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},r.prototype._execute=function(t,o){var n=!1,i;try{this.work(t)}catch(a){n=!0,i=!!a&&a||new Error(a)}if(n)return this.unsubscribe(),i},r.prototype.unsubscribe=function(){if(!this.closed){var t=this,o=t.id,n=t.scheduler,i=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,se(i,this),o!=null&&(this.id=this.recycleAsyncId(n,o,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},r}(Ft);var kr=function(){function e(r,t){t===void 0&&(t=e.now),this.schedulerActionCtor=r,this.now=t}return e.prototype.schedule=function(r,t,o){return t===void 0&&(t=0),new this.schedulerActionCtor(this,r).schedule(o,t)},e.now=Fe.now,e}();var nr=function(e){U(r,e);function r(t,o){o===void 0&&(o=kr.now);var n=e.call(this,t,o)||this;return n.actions=[],n._active=!1,n._scheduled=void 0,n}return r.prototype.flush=function(t){var o=this.actions;if(this._active){o.push(t);return}var n;this._active=!0;do if(n=t.execute(t.state,t.delay))break;while(t=o.shift());if(this._active=!1,n){for(;t=o.shift();)t.unsubscribe();throw n}},r}(kr);var Fr=new nr(or),Rt=Fr;var Ht=function(e){U(r,e);function r(t,o){var n=e.call(this,t,o)||this;return n.scheduler=t,n.work=o,n}return r.prototype.requestAsyncId=function(t,o,n){return n===void 0&&(n=0),n!==null&&n>0?e.prototype.requestAsyncId.call(this,t,o,n):(t.actions.push(this),t._scheduled||(t._scheduled=_e.requestAnimationFrame(function(){return t.flush(void 0)})))},r.prototype.recycleAsyncId=function(t,o,n){if(n===void 0&&(n=0),n!=null&&n>0||n==null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,o,n);t.actions.length===0&&(_e.cancelAnimationFrame(o),t._scheduled=void 0)},r}(or);var Wt=function(e){U(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.flush=function(t){this._active=!0,this._scheduled=void 0;var o=this.actions,n,i=-1;t=t||o.shift();var a=o.length;do if(n=t.execute(t.state,t.delay))break;while(++i<a&&(t=o.shift()));if(this._active=!1,n){for(;++i<a&&(t=o.shift());)t.unsubscribe();throw n}},r}(nr);var ir=new Wt(Ht);var Oe=new L(function(e){return e.complete()});function Ae(e,r){return new L(function(t){var o=0;return r.schedule(function(){o===e.length?t.complete():(t.next(e[o++]),t.closed||this.schedule())})})}var Me=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function ar(e){return _(e==null?void 0:e.then)}function jt(e,r){return new L(function(t){var o=new $;return o.add(r.schedule(function(){var n=e[ue]();o.add(n.subscribe({next:function(i){o.add(r.schedule(function(){return t.next(i)}))},error:function(i){o.add(r.schedule(function(){return t.error(i)}))},complete:function(){o.add(r.schedule(function(){return t.complete()}))}}))})),o})}function zt(e,r){return new L(function(t){return r.schedule(function(){return e.then(function(o){t.add(r.schedule(function(){t.next(o),t.add(r.schedule(function(){return t.complete()}))}))},function(o){t.add(r.schedule(function(){return t.error(o)}))})})})}function Yo(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var sr=Yo();function Ut(e,r,t,o){o===void 0&&(o=0);var n=r.schedule(function(){try{t.call(this)}catch(i){e.error(i)}},o);return e.add(n),n}function qt(e,r){return new L(function(t){var o;return t.add(r.schedule(function(){o=e[sr](),Ut(t,r,function(){var n=o.next(),i=n.value,a=n.done;a?t.complete():(t.next(i),this.schedule())})})),function(){return _(o==null?void 0:o.return)&&o.return()}})}function lr(e,r){if(!e)throw new Error("Iterable cannot be null");return new L(function(t){var o=new $;return o.add(r.schedule(function(){var n=e[Symbol.asyncIterator]();o.add(r.schedule(function(){var i=this;n.next().then(function(a){a.done?t.complete():(t.next(a.value),i.schedule())})}))})),o})}function ur(e){return _(e[ue])}function pr(e){return _(e==null?void 0:e[sr])}function fr(e){return Symbol.asyncIterator&&_(e==null?void 0:e[Symbol.asyncIterator])}function cr(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function mr(e){return wt(this,arguments,function(){var t,o,n,i;return Ye(this,function(a){switch(a.label){case 0:t=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,Xe(t.read())];case 3:return o=a.sent(),n=o.value,i=o.done,i?[4,Xe(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,Xe(n)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function dr(e){return _(e==null?void 0:e.getReader)}function Vt(e,r){return lr(mr(e),r)}function Nt(e,r){if(e!=null){if(ur(e))return jt(e,r);if(Me(e))return Ae(e,r);if(ar(e))return zt(e,r);if(fr(e))return lr(e,r);if(pr(e))return qt(e,r);if(dr(e))return Vt(e,r)}throw cr(e)}function pe(e,r){return r?Nt(e,r):N(e)}function N(e){if(e instanceof L)return e;if(e!=null){if(ur(e))return Xo(e);if(Me(e))return Rr(e);if(ar(e))return Zo(e);if(fr(e))return $t(e);if(pr(e))return en(e);if(dr(e))return rn(e)}throw cr(e)}function Xo(e){return new L(function(r){var t=e[ue]();if(_(t.subscribe))return t.subscribe(r);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Rr(e){return new L(function(r){for(var t=0;t<e.length&&!r.closed;t++)r.next(e[t]);r.complete()})}function Zo(e){return new L(function(r){e.then(function(t){r.closed||(r.next(t),r.complete())},function(t){return r.error(t)}).then(null,tr)})}function en(e){return new L(function(r){var t,o;try{for(var n=J(e),i=n.next();!i.done;i=n.next()){var a=i.value;if(r.next(a),r.closed)return}}catch(l){t={error:l}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(t)throw t.error}}r.complete()})}function $t(e){return new L(function(r){tn(e,r).catch(function(t){return r.error(t)})})}function rn(e){return $t(mr(e))}function tn(e,r){var t,o,n,i;return gt(this,void 0,void 0,function(){var a,l;return Ye(this,function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]),t=St(e),s.label=1;case 1:return[4,t.next()];case 2:if(o=s.sent(),!!o.done)return[3,4];if(a=o.value,r.next(a),r.closed)return[2];s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=s.sent(),n={error:l},[3,11];case 6:return s.trys.push([6,,9,10]),o&&!o.done&&(i=t.return)?[4,i.call(t)]:[3,8];case 7:s.sent(),s.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return r.complete(),[2]}})})}function fe(e,r){return r?Ae(e,r):Rr(e)}function hr(e){return e&&_(e.schedule)}function Hr(e){return e[e.length-1]}function Le(e){return _(Hr(e))?e.pop():void 0}function oe(e){return hr(Hr(e))?e.pop():void 0}function Dt(e,r){return typeof Hr(e)=="number"?e.pop():r}function be(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=oe(e);return t?Ae(e,t):fe(e)}function Qt(e){return e instanceof Date&&!isNaN(e)}function j(e,r){return C(function(t,o){var n=0;t.subscribe(new P(o,function(i){o.next(e.call(r,i,n++))}))})}var on=Array.isArray;function nn(e,r){return on(r)?e.apply(void 0,W([],R(r))):e(r)}function vr(e){return j(function(r){return nn(e,r)})}function br(e,r){return r===void 0&&(r=0),C(function(t,o){t.subscribe(new P(o,function(n){return o.add(e.schedule(function(){return o.next(n)},r))},function(){return o.add(e.schedule(function(){return o.complete()},r))},function(n){return o.add(e.schedule(function(){return o.error(n)},r))}))})}var an=Array.isArray,sn=Object.getPrototypeOf,ln=Object.prototype,un=Object.keys;function Kt(e){if(e.length===1){var r=e[0];if(an(r))return{args:r,keys:null};if(pn(r)){var t=un(r);return{args:t.map(function(o){return r[o]}),keys:t}}}return{args:e,keys:null}}function pn(e){return e&&typeof e=="object"&&sn(e)===ln}function Bt(e,r){return e.reduce(function(t,o,n){return t[o]=r[n],t},{})}function He(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=oe(e),o=Le(e),n=Kt(e),i=n.args,a=n.keys;if(i.length===0)return pe([],t);var l=new L(fn(i,t,a?function(s){return Bt(a,s)}:Q));return o?l.pipe(vr(o)):l}function fn(e,r,t){return t===void 0&&(t=Q),function(o){Gt(r,function(){for(var n=e.length,i=new Array(n),a=n,l=n,s=function(u){Gt(r,function(){var c=pe(e[u],r),f=!1;c.subscribe(new P(o,function(d){i[u]=d,f||(f=!0,l--),l||o.next(t(i.slice()))},function(){--a||o.complete()}))},o)},p=0;p<n;p++)s(p)},o)}}function Gt(e,r,t){e?t.add(e.schedule(r)):r()}function Jt(e,r,t,o,n,i,a,l){var s=[],p=0,u=0,c=!1,f=function(){c&&!s.length&&!p&&r.complete()},d=function(m){return p<o?h(m):s.push(m)},h=function(m){i&&r.next(m),p++;var b=!1;N(t(m,u++)).subscribe(new P(r,function(w){n==null||n(w),i?d(w):r.next(w)},function(){b=!0},void 0,function(){if(b)try{p--;for(var w=function(){var E=s.shift();a?r.add(a.schedule(function(){return h(E)})):h(E)};s.length&&p<o;)w();f()}catch(E){r.error(E)}}))};return e.subscribe(new P(r,d,function(){c=!0,f()})),function(){l==null||l()}}function xe(e,r,t){return t===void 0&&(t=1/0),_(r)?xe(function(o,n){return j(function(i,a){return r(o,i,n,a)})(N(e(o,n)))},t):(typeof r=="number"&&(t=r),C(function(o,n){return Jt(o,n,e,t)}))}function xr(e){return e===void 0&&(e=1/0),xe(Q,e)}function Yt(){return xr(1)}function We(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Yt()(fe(e,oe(e)))}function Wr(e){return new L(function(r){N(e()).subscribe(r)})}var cn=["addListener","removeListener"],mn=["addEventListener","removeEventListener"],dn=["on","off"];function D(e,r,t,o){if(_(t)&&(o=t,t=void 0),o)return D(e,r,t).pipe(vr(o));var n=R(bn(e)?mn.map(function(l){return function(s){return e[l](r,s,t)}}):hn(e)?cn.map(Xt(e,r)):vn(e)?dn.map(Xt(e,r)):[],2),i=n[0],a=n[1];if(!i&&Me(e))return xe(function(l){return D(l,r,t)})(fe(e));if(!i)throw new TypeError("Invalid event target");return new L(function(l){var s=function(){for(var p=[],u=0;u<arguments.length;u++)p[u]=arguments[u];return l.next(1<p.length?p:p[0])};return i(s),function(){return a(s)}})}function Xt(e,r){return function(t){return function(o){return e[t](r,o)}}}function hn(e){return _(e.addListener)&&_(e.removeListener)}function vn(e){return _(e.on)&&_(e.off)}function bn(e){return _(e.addEventListener)&&_(e.removeEventListener)}function Zt(e,r,t){e===void 0&&(e=0),t===void 0&&(t=Rt);var o=-1;return r!=null&&(hr(r)?t=r:o=r),new L(function(n){var i=Qt(e)?+e-t.now():e;i<0&&(i=0);var a=0;return t.schedule(function(){n.closed||(n.next(a++),0<=o?this.schedule(void 0,o):n.complete())},i)})}function K(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=oe(e),o=Dt(e,1/0),n=e;return n.length?n.length===1?N(n[0]):xr(o)(fe(n,t)):Oe}var jr=new L(X);var xn=Array.isArray;function eo(e){return e.length===1&&xn(e[0])?e[0]:e}function ce(e,r){return C(function(t,o){var n=0;t.subscribe(new P(o,function(i){return e.call(r,i,n++)&&o.next(i)}))})}function ro(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=Le(e),o=eo(e);return o.length?new L(function(n){var i=o.map(function(){return[]}),a=o.map(function(){return!1});n.add(function(){i=a=null});for(var l=function(p){N(o[p]).subscribe(new P(n,function(u){if(i[p].push(u),i.every(function(f){return f.length})){var c=i.map(function(f){return f.shift()});n.next(t?t.apply(void 0,W([],R(c))):c),i.some(function(f,d){return!f.length&&a[d]})&&n.complete()}},function(){a[p]=!0,!i[p].length&&n.complete()}))},s=0;!n.closed&&s<o.length;s++)l(s);return function(){i=a=null}}):Oe}function zr(e,r){return r===void 0&&(r=null),r=r!=null?r:e,C(function(t,o){var n=[],i=0;t.subscribe(new P(o,function(a){var l,s,p,u,c=null;i++%r==0&&n.push([]);try{for(var f=J(n),d=f.next();!d.done;d=f.next()){var h=d.value;h.push(a),e<=h.length&&(c=c!=null?c:[],c.push(h))}}catch(w){l={error:w}}finally{try{d&&!d.done&&(s=f.return)&&s.call(f)}finally{if(l)throw l.error}}if(c)try{for(var m=J(c),b=m.next();!b.done;b=m.next()){var h=b.value;se(n,h),o.next(h)}}catch(w){p={error:w}}finally{try{b&&!b.done&&(u=m.return)&&u.call(m)}finally{if(p)throw p.error}}},function(){var a,l;try{for(var s=J(n),p=s.next();!p.done;p=s.next()){var u=p.value;o.next(u)}}catch(c){a={error:c}}finally{try{p&&!p.done&&(l=s.return)&&l.call(s)}finally{if(a)throw a.error}}o.complete()},void 0,function(){n=null}))})}function je(e){return e<=0?function(){return Oe}:C(function(r,t){var o=0;r.subscribe(new P(t,function(n){++o<=e&&(t.next(n),e<=o&&t.complete())}))})}function to(){return C(function(e,r){e.subscribe(new P(r,X))})}function oo(e){return j(function(){return e})}function Ur(e,r){return r?function(t){return We(r.pipe(je(1),to()),t.pipe(Ur(e)))}:xe(function(t,o){return e(t,o).pipe(je(1),oo(t))})}function qr(e,r){r===void 0&&(r=Fr);var t=Zt(e,r);return Ur(function(){return t})}function ye(e,r){return r===void 0&&(r=Q),e=e!=null?e:yn,C(function(t,o){var n,i=!0;t.subscribe(new P(o,function(a){var l=r(a);(i||!e(n,l))&&(i=!1,n=l,o.next(a))}))})}function yn(e,r){return e===r}function Vr(e,r){return ye(function(t,o){return r?r(t[e],o[e]):t[e]===o[e]})}function ze(e){return C(function(r,t){try{r.subscribe(t)}finally{t.add(e)}})}function no(e){e===void 0&&(e={});var r=e.connector,t=r===void 0?function(){return new te}:r,o=e.resetOnError,n=o===void 0?!0:o,i=e.resetOnComplete,a=i===void 0?!0:i,l=e.resetOnRefCountZero,s=l===void 0?!0:l;return function(p){var u=null,c=null,f=null,d=0,h=!1,m=!1,b=function(){c==null||c.unsubscribe(),c=null},w=function(){b(),u=f=null,h=m=!1},E=function(){var I=u;w(),I==null||I.unsubscribe()};return C(function(I,v){d++,!m&&!h&&b();var x=f=f!=null?f:t();v.add(function(){d--,d===0&&!m&&!h&&(c=Nr(E,s))}),x.subscribe(v),u||(u=new ke({next:function(S){return x.next(S)},error:function(S){m=!0,b(),c=Nr(w,n,S),x.error(S)},complete:function(){h=!0,b(),c=Nr(w,a),x.complete()}}),pe(I).subscribe(u))})(p)}}function Nr(e,r){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];return r===!0?(e(),null):r===!1?null:r.apply(void 0,W([],R(t))).pipe(je(1)).subscribe(function(){return e()})}function Ue(e,r,t){var o,n,i,a=!1;return e&&typeof e=="object"?(i=(o=e.bufferSize)!==null&&o!==void 0?o:1/0,r=(n=e.windowTime)!==null&&n!==void 0?n:1/0,a=!!e.refCount,t=e.scheduler):i=e!=null?e:1/0,no({connector:function(){return new kt(i,r,t)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}function ge(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=oe(e);return C(function(o,n){(t?We(e,o,t):We(e,o)).subscribe(n)})}function Z(e,r){return C(function(t,o){var n=null,i=0,a=!1,l=function(){return a&&!n&&o.complete()};t.subscribe(new P(o,function(s){n==null||n.unsubscribe();var p=0,u=i++;N(e(s,u)).subscribe(n=new P(o,function(c){return o.next(r?r(s,c,u,p++):c)},function(){n=null,l()}))},function(){a=!0,l()}))})}function qe(e,r,t){var o=_(e)||r||t?{next:e,error:r,complete:t}:e;return o?C(function(n,i){n.subscribe(new P(i,function(a){var l;(l=o.next)===null||l===void 0||l.call(o,a),i.next(a)},function(){var a;(a=o.complete)===null||a===void 0||a.call(o),i.complete()},function(a){var l;(l=o.error)===null||l===void 0||l.call(o,a),i.error(a)}))}):Q}function Ie(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=Le(e);return C(function(o,n){for(var i=e.length,a=new Array(i),l=e.map(function(){return!1}),s=!1,p=function(c){N(e[c]).subscribe(new P(n,function(f){a[c]=f,!s&&!l[c]&&(l[c]=!0,(s=l.every(Q))&&(l=null))},X))},u=0;u<i;u++)p(u);o.subscribe(new P(n,function(c){if(s){var f=W([c],R(a));n.next(t?t.apply(void 0,W([],R(f))):f)}}))})}function io(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return C(function(t,o){ro.apply(void 0,W([t],R(e))).subscribe(o)})}function $r(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return io.apply(void 0,W([],R(e)))}function ao(e,r=document){return r.querySelector(e)||void 0}function G(e,r=document){let t=ao(e,r);if(typeof t=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return t}function Dr(){return document.activeElement instanceof HTMLElement?document.activeElement:void 0}function so(e,r=document){return Array.from(r.querySelectorAll(e))}function lo(e){return K(D(e,"focus"),D(e,"blur")).pipe(j(({type:r})=>r==="focus"),ge(e===Dr()))}var gn=new te,Ef=Wr(()=>be(new ResizeObserver(e=>{for(let r of e)gn.next(r)}))).pipe(Z(e=>jr.pipe(ge(e)).pipe(ze(()=>e.disconnect()))),Ue(1));function uo(e){return{width:e.offsetWidth,height:e.offsetHeight}}function po(e){return{width:e.scrollWidth,height:e.scrollHeight}}function fo(e){return{x:e.scrollLeft,y:e.scrollTop}}function wn(e){return K(D(e,"scroll"),D(window,"resize")).pipe(j(()=>fo(e)),ge(fo(e)))}function co(e,r=16){return wn(e).pipe(j(({y:t})=>{let o=uo(e),n=po(e);return t>=n.height-o.height-r}),ye())}var jf={drawer:G("[data-md-toggle=drawer]"),search:G("[data-md-toggle=search]")};function mo(){return new URL(location.href)}function Sn(e,r={credentials:"same-origin"}){return pe(fetch(`${e}`,r)).pipe(ce(t=>t.status===200))}function yr(e,r){return Sn(e,r).pipe(Z(t=>t.json()),Ue(1))}function Ce(e,r=document){return G(`[data-mdx-component=${e}]`,r)}function Qr(e,r=document){return so(`[data-mdx-component=${e}]`,r)}var En=G("#__config"),Ve=JSON.parse(En.textContent);Ve.base=new URL(Ve.base,mo()).toString().replace(/\/$/,"");function ho(){return Ve}function me(e,r){return typeof r!="undefined"?Ve.translations[e].replace("#",r.toString()):Ve.translations[e]}function vo(e){let r=lo(e),t=K(D(e,"keyup"),D(e,"focus").pipe(qr(1))).pipe(j(()=>e.value),ye());return r.pipe(ce(o=>!o),Ie(t)).subscribe(([,o])=>{let n=document.location.pathname;o.length&&ga("send","pageview",`${n}?q=[icon]+${o}`)}),He([t,r]).pipe(j(([o,n])=>({ref:e,value:o,focus:n})))}var Ro=Ar(Br());function _o(e,r){if(typeof r=="string"||typeof r=="number")e.innerHTML+=r.toString();else if(r instanceof Node)e.appendChild(r);else if(Array.isArray(r))for(let t of r)_o(e,t)}function ne(e,r,...t){let o=document.createElement(e);if(r)for(let n of Object.keys(r))typeof r[n]!="boolean"?o.setAttribute(n,r[n]):r[n]&&o.setAttribute(n,"");for(let n of t)_o(o,n);return o}function Oo(e){if(e>999){let r=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(r)}k`}else return e.toString()}function Ao(e,r){switch(r){case 0:e.textContent=me("search.result.none");break;case 1:e.textContent=me("search.result.one");break;default:e.textContent=me("search.result.other",Oo(r))}}function Mo(e){e.textContent=me("search.result.placeholder")}function Lo(e,r){e.appendChild(r)}function Io(e){e.innerHTML=""}var Co=Ar(Br());function Tn(e,r){return(0,Co.wrap)(e.shortcode,r,{wrap:{tagOpen:"<b>",tagClose:"</b>"}})}function Po(e,r){return ne("li",{class:"mdx-iconsearch-result__item"},ne("span",{class:"twemoji"},ne("img",{src:e.url})),ne("button",{class:"md-clipboard--inline",title:me("clipboard.copy"),"data-clipboard-text":`:${e.shortcode}:`},ne("code",null,`:${Tn(e,r)}:`)))}function ko(e){let r=`@${e.name}`;return ne("a",{href:e.url,title:r,class:"mdx-sponsorship__item"},ne("img",{src:e.image}))}function Fo(e){return ne("a",{href:"https://github.com/sponsors/squidfunk",class:"mdx-sponsorship__item mdx-sponsorship__item--private"},"+",e)}function _n(e,{index$:r,query$:t}){return He([t.pipe(Vr("value")),r.pipe(j(({icons:o,emojis:n})=>[...Object.keys(o.data),...Object.keys(n.data)]))]).pipe(j(([{value:o},n])=>(0,Ro.filter)(n,o)),Z(o=>r.pipe(j(({icons:n,emojis:i})=>({data:o.map(a=>{let l=a in n.data?n:i;return{shortcode:a,url:[l.base,l.data[a]].join("")}})})))))}function Ho(e,{index$:r,query$:t}){let o=new te,n=co(e).pipe(ce(Boolean)),i=G(":scope > :first-child",e);o.pipe(br(ir),Ie(t)).subscribe(([{data:l},{value:s}])=>{s?Ao(i,l.length):Mo(i)});let a=G(":scope > :last-child",e);return o.pipe(br(ir),qe(()=>Io(a)),Z(({data:l})=>K(be(...l.slice(0,10)),be(...l.slice(10)).pipe(zr(10),$r(n),Z(([s])=>be(...s))))),Ie(t)).subscribe(([l,{value:s}])=>{Lo(a,Po(l,s))}),_n(e,{query$:t,index$:r}).pipe(qe(o),ze(()=>o.complete()),j(l=>Ke({ref:e},l)))}function Wo(e){let r=ho(),t=yr(`${r.base}/overrides/assets/javascripts/iconsearch_index.json`),o=Ce("iconsearch-query",e),n=Ce("iconsearch-result",e),i=vo(o),a=Ho(n,{index$:t,query$:i});return K(i,a)}var Sr;(function(t){t.PUBLIC="PUBLIC",t.PRIVATE="PRIVATE"})(Sr||(Sr={}));function jo(e){let r=yr("https://gpiqp43wvb.execute-api.us-east-1.amazonaws.com/_/"),t=Ce("sponsorship-count"),o=Ce("sponsorship-total");return r.subscribe(n=>{e.removeAttribute("hidden");let i=G(":scope > :first-child",e);for(let a of n.sponsors)a.type===Sr.PUBLIC&&i.appendChild(ko(a));i.appendChild(Fo(n.sponsors.filter(({type:a})=>a===Sr.PRIVATE).length)),t.innerText=`${n.sponsors.length}`,o.innerText=`$ ${n.total.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}`}),r.pipe(j(n=>Ke({ref:e},n)))}function zo(){let{origin:e}=new URL(location.href);D(document.body,"click").subscribe(r=>{if(r.target instanceof HTMLElement){let t=r.target.closest("a");t&&t.origin!==e&&ga("send","event","outbound","click",t.href)}})}zo();var On=document$.pipe(Z(()=>K(...Qr("iconsearch").map(e=>Wo(e)),...Qr("sponsorship").map(e=>jo(e)))));On.subscribe();})();
|
|
//# sourceMappingURL=bundle.777564f6.min.js.map
|
|
|