(()=>{var zn=Object.create;var Qe=Object.defineProperty;var Un=Object.getOwnPropertyDescriptor;var qn=Object.getOwnPropertyNames,Jr=Object.getOwnPropertySymbols,Vn=Object.getPrototypeOf,Gr=Object.prototype.hasOwnProperty,Nn=Object.prototype.propertyIsEnumerable;var Yr=(e,r,n)=>r in e?Qe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Ke=(e,r)=>{for(var n in r||(r={}))Gr.call(r,n)&&Yr(e,n,r[n]);if(Jr)for(var n of Jr(r))Nn.call(r,n)&&Yr(e,n,r[n]);return e};var $n=e=>Qe(e,"__esModule",{value:!0});var ve=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Dn=(e,r,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of qn(r))!Gr.call(e,t)&&t!=="default"&&Qe(e,t,{get:()=>r[t],enumerable:!(n=Un(r,t))||n.enumerable});return e},Ar=e=>Dn($n(Qe(e!=null?zn(Vn(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var bt=ve((Mo,Ye)=>{/*! ***************************************************************************** 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 Br,Xr,Zr,et,rt,tt,nt,ot,it,Je,Mr,at,st,lt,Ee,ut,ct,ft,pt,mt,dt,ht,vt,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(t){e(n(r,n(t)))}):typeof Ye=="object"&&typeof Ye.exports=="object"?e(n(r,n(Ye.exports))):e(n(r));function n(t,o){return t!==r&&(typeof Object.create=="function"?Object.defineProperty(t,"__esModule",{value:!0}):t.__esModule=!0),function(i,s){return t[i]=o?o(i,s):s}}})(function(e){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])};Br=function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");r(t,o);function i(){this.constructor=t}t.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)},Xr=Object.assign||function(t){for(var o,i=1,s=arguments.length;i=0;c--)(u=t[c])&&(a=(l<3?u(a):l>3?u(o,i,a):u(o,i))||a);return l>3&&a&&Object.defineProperty(o,i,a),a},rt=function(t,o){return function(i,s){o(i,s,t)}},tt=function(t,o){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,o)},nt=function(t,o,i,s){function l(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function c(d){try{f(s.next(d))}catch(h){u(h)}}function p(d){try{f(s.throw(d))}catch(h){u(h)}}function f(d){d.done?a(d.value):l(d.value).then(c,p)}f((s=s.apply(t,o||[])).next())})},ot=function(t,o){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},s,l,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(f){return function(d){return p([f,d])}}function p(f){if(s)throw new TypeError("Generator is already executing.");for(;i;)try{if(s=1,l&&(a=f[0]&2?l.return:f[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,f[1])).done)return a;switch(l=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=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(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){i=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]=t.length&&(t=void 0),{value:t&&t[s++],done:!t}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},Mr=function(t,o){var i=typeof Symbol=="function"&&t[Symbol.iterator];if(!i)return t;var s=i.call(t),l,a=[],u;try{for(;(o===void 0||o-- >0)&&!(l=s.next()).done;)a.push(l.value)}catch(c){u={error:c}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(u)throw u.error}}return a},at=function(){for(var t=[],o=0;o1||c(m,b)})})}function c(m,b){try{p(s[m](b))}catch(w){h(a[0][3],w)}}function p(m){m.value instanceof Ee?Promise.resolve(m.value.v).then(f,d):h(a[0][2],m)}function f(m){c("next",m)}function d(m){c("throw",m)}function h(m,b){m(b),a.shift(),a.length&&c(a[0][0],a[0][1])}},ct=function(t){var o,i;return o={},s("next"),s("throw",function(l){throw l}),s("return"),o[Symbol.iterator]=function(){return this},o;function s(l,a){o[l]=t[l]?function(u){return(i=!i)?{value:Ee(t[l](u)),done:l==="return"}:a?a(u):u}:a}},ft=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=t[Symbol.asyncIterator],i;return o?o.call(t):(t=typeof Je=="function"?Je(t):t[Symbol.iterator](),i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i);function s(a){i[a]=t[a]&&function(u){return new Promise(function(c,p){u=t[a](u),l(c,p,u.done,u.value)})}}function l(a,u,c,p){Promise.resolve(p).then(function(f){a({value:f,done:c})},u)}},pt=function(t,o){return Object.defineProperty?Object.defineProperty(t,"raw",{value:o}):t.raw=o,t};var n=Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o};mt=function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var i in t)i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)&&Ge(o,t,i);return n(o,t),o},dt=function(t){return t&&t.__esModule?t:{default:t}},ht=function(t,o){if(!o.has(t))throw new TypeError("attempted to get private field on non-instance");return o.get(t)},vt=function(t,o,i){if(!o.has(t))throw new TypeError("attempted to set private field on non-instance");return o.set(t,i),i},e("__extends",Br),e("__assign",Xr),e("__rest",Zr),e("__decorate",et),e("__param",rt),e("__metadata",tt),e("__awaiter",nt),e("__generator",ot),e("__exportStar",it),e("__createBinding",Ge),e("__values",Je),e("__read",Mr),e("__spread",at),e("__spreadArrays",st),e("__spreadArray",lt),e("__await",Ee),e("__asyncGenerator",ut),e("__asyncDelegator",ct),e("__asyncValues",ft),e("__makeTemplateObject",pt),e("__importStar",mt),e("__importDefault",dt),e("__classPrivateFieldGet",ht),e("__classPrivateFieldSet",vt)})});var Ne=ve(G=>{(function(){var e,r,n,t,o,i,s,l,a,u,c,p,f,d,h,m,b,w,E,I;I=150,u=20,E=150,a=.75,G.score=function(v,x,S){var _,y,g,O;return y=S.preparedQuery,_=S.allowErrors,_||o(v,y.core_lw,y.core_up)?(O=v.toLowerCase(),g=r(v,O,y),Math.ceil(g)):0},G.isMatch=o=function(v,x,S){var _,y,g,O,P,R,M;if(g=v.length,O=x.length,!g||O>g)return!1;for(_=-1,y=-1;++y-1)return h(v,x,fe,ne,se,N,V);for(Se=new Array(N),P=new Array(N),Or=w(N,V),U=Math.ceil(a*N)+5,te=U,M=!0,A=-1;++Ale&&(le=De),R=0,ne[A]===_r)if(Tr=l(H,v,x),R=O>0?O:f(v,x,fe,ne,H,A,Tr),g=Er+p(H,A,Tr,y,R),g>le)le=g,te=U;else{if(he&&--te<=0)return Math.max(le,Se[N-1])*Or;he=!1}Er=De,O=P[A],P[A]=R,Se[A]=le}}return le=Se[N-1],le*Or},G.isWordStart=l=function(v,x,S){var _,y;return v===0?!0:(_=x[v],y=x[v-1],i(y)||_!==S[v]&&y===S[v-1])},G.isWordEnd=s=function(v,x,S,_){var y,g;return v===_-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 vy?_:y)+10):g+I*y},G.scoreConsecutives=f=function(v,x,S,_,y,g,O){var P,R,M,H,A,V,U;for(R=v.length,H=S.length,M=R-y,A=H-g,P=M-1&&(A=l(M,v,x),A&&(y=M))),R=-1,H=0;++R1&&M>1))return n;for(y=0,U=0,te=0,A=0,O=-1,P=-1;++P-1){U++;continue}else break;for(;++O12*P)return!1;for(g=-1;++g_)return!1;return!0}}).call(G)});var wr=ve($e=>{(function(){var e,r,n,t,o,i,s,l,a,u;u=Ne(),i=u.isMatch,e=u.computeScore,l=u.scoreSize,a=20,n=2.5,$e.score=function(c,p,f){var d,h,m,b;return h=f.preparedQuery,d=f.allowErrors,d||i(c,h.core_lw,h.core_up)?(b=c.toLowerCase(),m=e(c,b,h),m=s(c,b,m,f),Math.ceil(m)):0},s=function(c,p,f,d){var h,m,b,w,E,I,v,x,S,_;if(f===0)return 0;for(S=d.preparedQuery,_=d.useExtensionBonus,x=d.pathSeparator,E=c.length-1;c[E]===x;)E--;if(b=c.lastIndexOf(x,E),v=E-b,I=1,_&&(I+=o(p,S.ext,b,E,2),f*=I),b===-1)return f;for(w=S.depth;b>-1&&w-- >0;)b=c.lastIndexOf(x,b-1);return m=b===-1?f:I*e(c.slice(b+1,E+1),p.slice(b+1,E+1),S),h=.5*a/(a+r(c,E+1,x)),h*m+(1-h)*f*l(0,n*v)},$e.countDir=r=function(c,p,f){var d,h;if(p<1)return 0;for(d=0,h=-1;++hf)))return 0;for(w=p.length,m=d-E,m0?.9*o(c,p,f,E-2,h-1):b/m}}).call($e)});var Qr=ve((xn,yn)=>{(function(){var e,r,n,t,o,i,s,l;l=wr(),n=l.countDir,o=l.getExtension,yn.exports=e=function(){function a(u,c){var p,f,d;if(d=c!=null?c:{},p=d.optCharRegEx,f=d.pathSeparator,!(u&&u.length))return null;this.query=u,this.query_lw=u.toLowerCase(),this.core=r(u,p),this.core_lw=this.core.toLowerCase(),this.core_up=s(this.core),this.depth=n(u,u.length,f),this.ext=o(this.query_lw),this.charCodes=t(this.query_lw)}return a}(),i=/[ _\-:\/\\]/g,r=function(a,u){return u==null&&(u=i),a.replace(u,"")},s=function(a){var u,c,p,f;for(c="",p=0,f=a.length;p{(function(){var e,r,n,t,o;t=Ne(),r=wr(),e=Qr(),n=function(i){return i.candidate},o=function(i,s){return s.score-i.score},wn.exports=function(i,s,l){var a,u,c,p,f,d,h,m,b,w,E,I,v;for(m=[],c=l.key,f=l.maxResults,p=l.maxInners,E=l.usePathScoring,b=p!=null&&p>0?p:i.length+1,a=c!=null,h=E?r:t,I=0,v=i.length;I0&&(m.push({candidate:u,score:d}),!--b))));I++);return m.sort(o),i=m.map(n),f!=null&&(i=i.slice(0,f)),i}}).call(gn)});var En=ve(Sr=>{(function(){var e,r,n,t,o,i,s,l,a,u;u=Ne(),n=u.isMatch,t=u.isWordStart,a=u.scoreConsecutives,l=u.scoreCharacter,s=u.scoreAcronyms,Sr.match=o=function(c,p,f){var d,h,m,b,w,E;return d=f.allowErrors,w=f.preparedQuery,b=f.pathSeparator,d||n(c,w.core_lw,w.core_up)?(E=c.toLowerCase(),m=r(c,E,w),m.length===0||c.indexOf(b)>-1&&(h=e(c,E,w,b),m=i(m,h)),m):[]},Sr.wrap=function(c,p,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=''),I==null&&(I=""),c===p)return v+c+I;if(m=o(c,p,f),m.length===0)return c;for(b="",d=-1,w=0;++dw&&(b+=c.substring(w,h),w=h);++dw&&(b+=v,b+=c.substring(w,h),b+=I,w=h)}return w<=c.length-1&&(b+=c.substring(w)),b},e=function(c,p,f,d){var h,m,b;for(b=c.length-1;c[b]===d;)b--;if(h=c.lastIndexOf(d,b),h===-1)return[];for(m=f.depth;m-- >0;)if(h=c.lastIndexOf(d,h-1),h===-1)return[];return h++,b++,r(c.slice(h,b),p.slice(h,b),f,h)},i=function(c,p){var f,d,h,m,b,w,E;if(b=c.length,w=p.length,w===0)return c.slice();if(b===0)return p.slice();for(h=-1,m=0,d=p[m],E=[];++h0?x:a(c,p,A,V,y,g,ne),I=te+l(y,g,ne,E,_)),se=N[g],x=S[g],U>se?R=m:(U=se,R=w),I>U?(U=I,R=h):_=0,N[g]=U,S[g]=_,he[++H]=U>0?R:b;for(y=O-1,g=M-1,H=y*M+g,v=!0,P=[];v&&y>=0&&g>=0;)switch(he[H]){case w:y--,H-=M;break;case m:g--,H--;break;case h:P.push(y+d),g--,y--,H-=M+1;break;default:v=!1}return P.reverse(),P}}).call(Sr)});var Kr=ve((_n,Tn)=>{(function(){var e,r,n,t,o,i,s,l;n=Sn(),t=En(),l=Ne(),i=wr(),e=Qr(),s=null,r=(typeof process!="undefined"&&process!==null?process.platform:void 0)==="win32"?"\\":"/",Tn.exports={filter:function(a,u,c){return c==null&&(c={}),(u!=null?u.length:void 0)&&(a!=null?a.length:void 0)?(c=o(c,u),n(a,u,c)):[]},score:function(a,u,c){return c==null&&(c={}),(a!=null?a.length:void 0)&&(u!=null?u.length:void 0)?(c=o(c,u),c.usePathScoring?i.score(a,u,c):l.score(a,u,c)):0},match:function(a,u,c){var p,f,d;return c==null&&(c={}),a?u?a===u?function(){d=[];for(var h=0,m=a.length;0<=m?hm;0<=m?h++:h--)d.push(h);return d}.apply(this):(c=o(c,u),t.match(a,u,c)):[]:[]},wrap:function(a,u,c){return c==null&&(c={}),a?u?(c=o(c,u),t.wrap(a,u,c)):[]:[]},prepareQuery:function(a,u){return u==null&&(u={}),u=o(u,a),u.preparedQuery}},o=function(a,u){return a.allowErrors==null&&(a.allowErrors=!1),a.usePathScoring==null&&(a.usePathScoring=!0),a.useExtensionBonus==null&&(a.useExtensionBonus=!1),a.pathSeparator==null&&(a.pathSeparator=r),a.optCharRegEx==null&&(a.optCharRegEx=null),a.wrap==null&&(a.wrap=null),a.preparedQuery==null&&(a.preparedQuery=s&&s.query===u?s:s=new e(u,a)),a}}).call(_n)});var xt=Ar(bt()),{__extends:q,__assign:Lo,__rest:Io,__decorate:Co,__param:Fo,__metadata:Po,__awaiter:yt,__generator:Be,__exportStar:Ho,__createBinding:ko,__values:B,__read:k,__spread:Ro,__spreadArrays:Wo,__spreadArray:W,__await:Xe,__asyncGenerator:gt,__asyncDelegator:jo,__asyncValues:wt,__makeTemplateObject:zo,__importStar:Uo,__importDefault:qo,__classPrivateFieldGet:Vo,__classPrivateFieldSet:No}=xt.default;function T(e){return typeof e=="function"}function Ze(e){var r=function(t){Error.call(t),t.stack=new Error().stack},n=e(r);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var er=Ze(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription: `+n.map(function(t,o){return o+1+") "+t.toString()}).join(` `):"",this.name="UnsubscriptionError",this.errors=n}});function ue(e,r){if(e){var n=e.indexOf(r);0<=n&&e.splice(n,1)}}var oe=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._teardowns=null}return e.prototype.unsubscribe=function(){var r,n,t,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var l=B(s),a=l.next();!a.done;a=l.next()){var u=a.value;u.remove(this)}}catch(m){r={error:m}}finally{try{a&&!a.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}else s.remove(this);var c=this.initialTeardown;if(T(c))try{c()}catch(m){i=m instanceof er?m.errors:[m]}var p=this._teardowns;if(p){this._teardowns=null;try{for(var f=B(p),d=f.next();!d.done;d=f.next()){var h=d.value;try{St(h)}catch(m){i=i!=null?i:[],m instanceof er?i=W(W([],k(i)),k(m.errors)):i.push(m)}}}catch(m){t={error:m}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(t)throw t.error}}}if(i)throw new er(i)}},e.prototype.add=function(r){var n;if(r&&r!==this)if(this.closed)St(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._teardowns=(n=this._teardowns)!==null&&n!==void 0?n:[]).push(r)}},e.prototype._hasParent=function(r){var n=this._parentage;return n===r||Array.isArray(n)&&n.includes(r)},e.prototype._addParent=function(r){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(r),n):n?[n,r]:r},e.prototype._removeParent=function(r){var n=this._parentage;n===r?this._parentage=null:Array.isArray(n)&&ue(n,r)},e.prototype.remove=function(r){var n=this._teardowns;n&&ue(n,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}();var Lr=oe.EMPTY;function rr(e){return e instanceof oe||e&&"closed"in e&&T(e.remove)&&T(e.add)&&T(e.unsubscribe)}function St(e){T(e)?e():e.unsubscribe()}var X={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var _e={setTimeout:function(){for(var e=[],r=0;r0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},r.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},r.prototype._innerSubscribe=function(n){var t=this,o=t.hasError,i=t.isStopped,s=t.observers;return o||i?Lr:(s.push(n),new oe(function(){return ue(s,n)}))},r.prototype._checkFinalizedStatuses=function(n){var t=this,o=t.hasError,i=t.thrownError,s=t.isStopped;o?n.error(i):s&&n.complete()},r.prototype.asObservable=function(){var n=new F;return n.source=this,n},r.create=function(n,t){return new Ct(n,t)},r}(F);var Ct=function(e){q(r,e);function r(n,t){var o=e.call(this)||this;return o.destination=n,o.source=t,o}return r.prototype.next=function(n){var t,o;(o=(t=this.destination)===null||t===void 0?void 0:t.next)===null||o===void 0||o.call(t,n)},r.prototype.error=function(n){var t,o;(o=(t=this.destination)===null||t===void 0?void 0:t.error)===null||o===void 0||o.call(t,n)},r.prototype.complete=function(){var n,t;(t=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||t===void 0||t.call(n)},r.prototype._subscribe=function(n){var t,o;return(o=(t=this.source)===null||t===void 0?void 0:t.subscribe(n))!==null&&o!==void 0?o:Lr},r}(ie);var He={now:function(){return(He.delegate||Date).now()},delegate:void 0};var Ft=function(e){q(r,e);function r(n,t,o){n===void 0&&(n=1/0),t===void 0&&(t=1/0),o===void 0&&(o=He);var i=e.call(this)||this;return i._bufferSize=n,i._windowTime=t,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=t===1/0,i._bufferSize=Math.max(1,n),i._windowTime=Math.max(1,t),i}return r.prototype.next=function(n){var t=this,o=t.isStopped,i=t._buffer,s=t._infiniteTimeWindow,l=t._timestampProvider,a=t._windowTime;o||(i.push(n),!s&&i.push(l.now()+a)),this._trimBuffer(),e.prototype.next.call(this,n)},r.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(n),o=this,i=o._infiniteTimeWindow,s=o._buffer,l=s.slice(),a=0;a0?e.prototype.requestAsyncId.call(this,n,t,o):(n.actions.push(this),n._scheduled||(n._scheduled=Ae.requestAnimationFrame(function(){return n.flush(void 0)})))},r.prototype.recycleAsyncId=function(n,t,o){if(o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,n,t,o);n.actions.length===0&&(Ae.cancelAnimationFrame(t),n._scheduled=void 0)},r}(nr);var Rt=function(e){q(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.flush=function(n){this._active=!0,this._scheduled=void 0;var t=this.actions,o,i=-1;n=n||t.shift();var s=t.length;do if(o=n.execute(n.state,n.delay))break;while(++ir==="focus"),we(e===$r()))}var go=new ie,Cf=Rr(()=>xe(new ResizeObserver(e=>{for(let r of e)go.next(r)}))).pipe(ee(e=>Wr.pipe(we(e)).pipe(ze(()=>e.disconnect()))),Ue(1));function un(e){return{width:e.offsetWidth,height:e.offsetHeight}}function cn(e){return{width:e.scrollWidth,height:e.scrollHeight}}function fn(e){return{x:e.scrollLeft,y:e.scrollTop}}function wo(e){return J(Q(e,"scroll"),Q(window,"resize")).pipe(z(()=>fn(e)),we(fn(e)))}function pn(e,r=16){return wo(e).pipe(z(({y:n})=>{let t=un(e),o=cn(e);return n>=o.height-t.height-r}),ge())}var Df={drawer:Y("[data-md-toggle=drawer]"),search:Y("[data-md-toggle=search]")};function mn(){return new URL(location.href)}function dn(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 n of r)dn(e,n)}function re(e,r,...n){let t=document.createElement(e);if(r)for(let o of Object.keys(r))typeof r[o]!="boolean"?t.setAttribute(o,r[o]):r[o]&&t.setAttribute(o,"");for(let o of n)dn(t,o);return t}function hn(e){if(e>999){let r=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(r)}k`}else return e.toString()}function So(e,r={credentials:"same-origin"}){return D(fetch(`${e}`,r)).pipe(me(n=>n.status===200),yr(()=>ce))}function gr(e,r){return So(e,r).pipe(ee(n=>n.json()),Ue(1))}function Ce(e,r=document){return Y(`[data-mdx-component=${e}]`,r)}function Dr(e,r=document){return sn(`[data-mdx-component=${e}]`,r)}var Eo=Y("#__config"),Ve=JSON.parse(Eo.textContent);Ve.base=`${new URL(Ve.base,mn())}`;function vn(){return Ve}function de(e,r){return typeof r!="undefined"?Ve.translations[e].replace("#",r.toString()):Ve.translations[e]}function bn(e){let r=ln(e),n=J(Q(e,"keyup"),Q(e,"focus").pipe(Ur(1))).pipe(z(()=>e.value),ge());return r.pipe(me(t=>!t),Ie(n)).subscribe(([,t])=>{let o=document.location.pathname;t.length&&ga("send","pageview",`${o}?q=[icon]+${t}`)}),Re([n,r]).pipe(z(([t,o])=>({ref:e,value:t,focus:o})))}var Hn=Ar(Kr());function On(e,r){switch(r){case 0:e.textContent=de("search.result.none");break;case 1:e.textContent=de("search.result.one");break;default:e.textContent=de("search.result.other",hn(r))}}function An(e){e.textContent=de("search.result.placeholder")}function Mn(e,r){e.appendChild(r)}function Ln(e){e.innerHTML=""}var In=Ar(Kr());function _o(e,r){return(0,In.wrap)(e.shortcode,r,{wrap:{tagOpen:"",tagClose:""}})}function Cn(e,r){return re("li",{class:"mdx-iconsearch-result__item"},re("span",{class:"twemoji"},re("img",{src:e.url})),re("button",{class:"md-clipboard--inline",title:de("clipboard.copy"),"data-clipboard-text":`:${e.shortcode}:`},re("code",null,`:${_o(e,r)}:`)))}function Fn(e){let r=`@${e.name}`;return re("a",{href:e.url,title:r,class:"mdx-sponsorship__item"},re("img",{src:e.image}))}function Pn(e){return re("a",{href:"https://github.com/sponsors/squidfunk",class:"mdx-sponsorship__item mdx-sponsorship__item--private"},"+",e)}function To(e,{index$:r,query$:n}){return Re([n.pipe(qr("value")),r.pipe(z(({icons:t,emojis:o})=>[...Object.keys(t.data),...Object.keys(o.data)]))]).pipe(z(([{value:t},o])=>(0,Hn.filter)(o,t)),ee(t=>r.pipe(z(({icons:o,emojis:i})=>({data:t.map(s=>{let l=s in o.data?o:i;return{shortcode:s,url:[l.base,l.data[s]].join("")}})})))))}function kn(e,{index$:r,query$:n}){let t=new ie,o=pn(e).pipe(me(Boolean)),i=Y(":scope > :first-child",e);t.pipe(pe(ir),Ie(n)).subscribe(([{data:l},{value:a}])=>{a?On(i,l.length):An(i)});let s=Y(":scope > :last-child",e);return t.pipe(pe(ir),qe(()=>Ln(s)),ee(({data:l})=>J(xe(...l.slice(0,10)),xe(...l.slice(10)).pipe(jr(10),Nr(o),ee(([a])=>xe(...a))))),Ie(n)).subscribe(([l,{value:a}])=>{Mn(s,Cn(l,a))}),To(e,{query$:n,index$:r}).pipe(qe(l=>t.next(l)),ze(()=>t.complete()),z(l=>Ke({ref:e},l)))}function Rn(e){let r=vn(),n=gr(new URL("overrides/assets/javascripts/iconsearch_index.json",r.base)),t=Ce("iconsearch-query",e),o=Ce("iconsearch-result",e),i=bn(t),s=kn(o,{index$:n,query$:i});return J(i,s)}function Wn(e){let r=gr("https://3if8u9o552.execute-api.us-east-1.amazonaws.com/_/"),n=Ce("sponsorship-count"),t=Ce("sponsorship-total");return r.subscribe(o=>{e.removeAttribute("hidden");let i=Y(":scope > :first-child",e);for(let s of o.sponsors)s.type==="public"&&i.appendChild(Fn(s.user));i.appendChild(Pn(o.sponsors.filter(({type:s})=>s==="private").length)),n.innerText=`${o.sponsors.length}`,t.innerText=`$ ${o.total.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")} a month`}),r.pipe(z(o=>Ke({ref:e},o)))}function jn(){let{origin:e}=new URL(location.href);Q(document.body,"click").subscribe(r=>{if(r.target instanceof HTMLElement){let n=r.target.closest("a");n&&n.origin!==e&&ga("send","event","outbound","click",n.href)}})}jn();var Oo=document$.pipe(ee(()=>J(...Dr("iconsearch").map(e=>Rn(e)),...Dr("sponsorship").map(e=>Wn(e)))));Oo.subscribe();})(); //# sourceMappingURL=bundle.2a83b894.min.js.map