2021-02-26 18:14:18 +03:00
|
|
|
(()=>{var Jt=Object.create,sr=Object.defineProperty,Xt=Object.getPrototypeOf,Gt=Object.prototype.hasOwnProperty,Zt=Object.getOwnPropertyNames,Bt=Object.getOwnPropertyDescriptor;var Mr=Object.assign,en=e=>sr(e,"__esModule",{value:!0});var ve=(e,r)=>()=>(r||(r={exports:{}},e(r.exports,r)),r.exports);var rn=(e,r,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Zt(r))!Gt.call(e,n)&&n!=="default"&&sr(e,n,{get:()=>r[n],enumerable:!(t=Bt(r,n))||t.enumerable});return e},Ir=e=>e&&e.__esModule?e:rn(en(sr(e!=null?Jt(Xt(e)):{},"default",{value:e,enumerable:!0})),e);var Fe=ve(K=>{(function(){var e,r,t,n,o,i,a,l,c,u,s,f,d,v,h,m,b,w,S,R;R=150,u=20,S=150,c=.75,K.score=function(p,g,E){var O,y,x,A;return y=E.preparedQuery,O=E.allowErrors,O||o(p,y.core_lw,y.core_up)?(A=p.toLowerCase(),x=r(p,A,y),Math.ceil(x)):0},K.isMatch=o=function(p,g,E){var O,y,x,A,P,F,M;if(x=p.length,A=g.length,!x||A>x)return!1;for(O=-1,y=-1;++y<A;){for(P=g.charCodeAt(y),F=E.charCodeAt(y);++O<x&&(M=p.charCodeAt(O),!(M===P||M===F)););if(O===x)return!1}return!0},K.computeScore=r=function(p,g,E){var O,y,x,A,P,F,M,H,_,U,k,Z,V,ne,ue,B,fe,oe,or,he,je,ir,ar,ur;if(ue=E.query,B=E.query_lw,U=p.length,V=ue.length,O=s(p,g,ue,B),y=O.score,O.count===V)return v(V,U,y,O.pos);if(ne=g.indexOf(B),ne>-1)return h(p,g,ue,B,ne,V,U);for(he=new Array(V),P=new Array(V),ur=w(V,U),k=Math.ceil(c*V)+5,Z=k,M=!0,_=-1;++_<V;)he[_]=0,P[_]=0;for(H=-1;++H<U;){if(ir=g[H],!ir.charCodeAt(0)in E.charCodes){if(M){for(_=-1;++_<V;)P[_]=0;M=!1}continue}for(oe=0,or=0,A=0,fe=!0,M=!0,_=-1;++_<V;){if(je=he[_],je>oe&&(oe=je),F=0,B[_]===ir)if(ar=l(H,p,g),F=A>0?A:d(p,g,ue,B,H,_,ar),x=or+f(H,_,ar,y,F),x>oe)oe=x,Z=k;else{if(fe&&--Z<=0)return Math.max(oe,he[V-1])*ur;fe=!1}or=je,A=P[_],P[_]=F,he[_]=oe}}return oe=he[V-1],oe*ur},K.isWordStart=l=function(p,g,E){var O,y;return p===0?!0:(O=g[p],y=g[p-1],i(y)||O!==E[p]&&y===E[p-1])},K.isWordEnd=a=function(p,g,E,O){var y,x;return p===O-1?!0:(y=g[p],x=g[p+1],i(x)||y===E[p]&&x!==E[p+1])},i=function(p){return p===" "||p==="."||p==="-"||p==="_"||p==="/"||p==="\\"},b=function(p){var g;return p<u?(g=u-p,100+g*g):Math.max(100+u-p,0)},K.scoreSize=w=function(p,g){return S/(S+Math.abs(g-p))},v=function(p,g,E,O){return 2*p*(R*E+b(O))*w(p,g)},K.scorePattern=m=function(p,g,E,O,y){var x,A;return A=p,x=6,E===p&&(x+=2),O&&(x+=3),y&&(x+=1),p===g&&(O&&(E===g?A+=2:A+=1),y&&(x+=1)),E+A*(A+x)},K.scoreCharacter=f=function(p,g,E,O,y){var x;return x=b(p),E?x+R*((O>y?O:y)+10):x+R*y},K.scoreConsecutives=d=function(p,g,E,O,y,x,A){var P,F,M,H,_,U,k;for(F=p.length,H=E.length,M=F-y,_=H-x,P=M<_?M:_,U=0,k=0,E[x]===p[y]&&U++;++k<P&&O[++x]===g[++y];)E[x]===p[y]&&U++;return k<P&&y--,k===1?1+2*U:m(k,H,U,A,a(y,p,g,F))},K.scoreExactMatch=h=function(p,g,E,O,y,x,A){var P,F,M,H,_;for(_=l(y,p,g),_||(M=g.indexOf(O,y+1),M>-1&&(_=l(M,p,g),_&&(y=M))),F=-1,H=0;++F<x;)E[y+F]===p[F]&&H++;return P=a(y+x-1,p,g,A),v(x,A,m(x,x,H,_,P),y)},e=function(){function p(g,E,O){this.score=g,this.pos=E,this.count=O}return p}(),t=new e(0,.1,0),K.scoreAcronyms=s=function(p,g,E,O){var y,x,A,P,F,M,H,_,U,k,Z;if(F=p.length,M=E.length,!(F>1&&M>1))return t;for(y=0,k=0,Z=0,_=0,A=-1,P=-1;++P<M;){if(H=O[P],i(H))if(A=g.indexOf(H,A+1),A>-1){k++;continue}else break;for(;++A<F;)if(H===g[A]&&l(A,p,g)){E[P]===p[A]&&_++,Z+=A,y++;break}if(A===F)break}return y<2?t:(x=y===M?n(p,g,E,y):!1,U=m(y,M,_,!0,x),new e(U,Z/y,y+k))},n=function(p,g,E,O){var y,x,A,P;if(A=p.length,P=E.length,y=0,A>12*P)return!1;for(x=-1;++x<A;)if(l(x,p,g)&&++y>O)return!1;return!0}}).call(K)});var tr=ve(Re=>{(function(){var e,r,t,n,o,i,a,l,c,u;u=Fe(),i=u.isMatch,e=u.computeScore,l=u.scoreSize,c=20,t=2.5,Re.score=function(s,f,d){var v,h,m,b;return h=d.preparedQuery,v=d.allowErrors,v||i(s,h.core_lw,h.core_up)?(b=s.toLowerCase(),m=e(s,b,h),m=a(s,b,m,d),Math.ceil(m)):0},a=function(s,f,d,v){var h,m,b,w,S,R,p,g,E,O;if(d===0)return 0;for(E=v.preparedQuery,O=v.useExtensionBonus,g=v.pathSeparator,S=s.length-1;s[S]===g;)S--;if(b=s.lastIndexOf(g,S),p=S-b,R=1,O&&(R+=o(f,E.ext,b,S,2),d*=R),b===-1)return d;for(w=E.depth;b>-1&&w-- >0;)b=s.lastIndexOf(g,b-1);return m=b===-1?d:R*e(s.slice(b+1,S
|
|
|
|
`):"",this.name="UnsubscriptionError",this.errors=t}});function ie(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,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(Array.isArray(a))try{for(var l=J(a),c=l.next();!c.done;c=l.next()){var u=c.value;u.remove(this)}}catch(m){r={error:m}}finally{try{c&&!c.done&&(t=l.return)&&t.call(l)}finally{if(r)throw r.error}}else a==null||a.remove(this);var s=this.initialTeardown;if(T(s))try{s()}catch(m){i=m instanceof ze?m.errors:[m]}var f=this._teardowns;if(f){this._teardowns=null;try{for(var d=J(f),v=d.next();!v.done;v=d.next()){var h=v.value;try{Hr(h)}catch(m){i=i!=null?i:[],m instanceof ze?i=W(W([],j(i)),j(m.errors)):i.push(m)}}}catch(m){n={error:m}}finally{try{v&&!v.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}}if(i)throw new ze(i)}},e.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)Hr(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)&&ie(t,r)},e.prototype.remove=function(r){var t=this._teardowns;t&&ie(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 We(e){return e instanceof $||e&&"closed"in e&&T(e.remove)&&T(e.add)&&T(e.unsubscribe)}function Hr(e){T(e)?e():e.unsubscribe()}var X={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var be={setTimeout:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=be.delegate;return((t==null?void 0:t.setTimeout)||setTimeout).apply(void 0,W([],j(e)))},clearTimeout:function(e){var r=be.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ue(e){be.setTimeout(function(){var r=X.onUnhandledError;if(r)r(e);else throw e})}function G(){}var Fr=function(){return fr("C",void 0,void 0)}();function Rr(e){return fr("E",void 0,e)}function jr(e){return fr("N",e,void 0)}function fr(e,r,t){return{kind:e,value:r,error:t}}var Me=function(e){z(r,e);function r(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,We(t)&&t.add(n)):n.destination=tn,n}return r.create=function(t,n,o){return new pr(t,n,o)},r.prototype.next=function(t){this.isStopped?mr(jr(t),this):this._next(t)},r.prototype.error=function(t){this.isStopped?mr(Rr(t),this):(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped?mr(Fr,this):(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},r.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},r}($);var pr=function(e){z(r,e);function r(t,n,o){var i=e.call(this)||this,a;if(T(t))a=t;else if(t){a=t.next,n=t.error,o=t.complete;var l;i&&X.useDeprecatedNextContext?(l=Object.create(t),l.unsubscribe=function(){return i.unsubscribe()}):l=t,a=a==null?void 0:a.bind(l),n=n==null?void 0:n.bind(l),o=o==null?void 0:o.bind(l)}return i.destination={next:a?dr(a,i):G,error:dr(n||kr,i),complete:o?dr(o,i):G},i}return r}(Me);function dr(e,r){return X.useDeprecatedSynchronousErrorHandling?function(t){try{e(t)}catch(n){r.__syncError=n}}:e}function kr(e){if(X.useDeprecatedSynchronousErrorHandling)throw e;Ue(e)}function mr(e,r){var t=X.onStoppedNotification;t&&be.setTimeout(function(){return t(e,r)})}var tn={closed:!0,next:G,error:kr,complete:G};var se
|