2022-12-12 12:46:16 +03:00
|
|
|
"use strict";(()=>{var An=Object.create;var Cr=Object.defineProperty;var Mn=Object.getOwnPropertyDescriptor;var In=Object.getOwnPropertyNames,Zr=Object.getOwnPropertySymbols,Cn=Object.getPrototypeOf,rt=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable;var et=(e,r,t)=>r in e?Cr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Ke=(e,r)=>{for(var t in r||(r={}))rt.call(r,t)&&et(e,t,r[t]);if(Zr)for(var t of Zr(r))Ln.call(r,t)&&et(e,t,r[t]);return e};var Oe=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Rn=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of In(r))!rt.call(e,o)&&o!==t&&Cr(e,o,{get:()=>r[o],enumerable:!(n=Mn(r,o))||n.enumerable});return e};var tt=(e,r,t)=>(t=e!=null?An(Cn(e)):{},Rn(r||!e||!e.__esModule?Cr(t,"default",{value:e,enumerable:!0}):t,e));var Ne=Oe(J=>{(function(){var e,r,t,n,o,i,a,f,u,s,c,p,l,v,h,m,b,w,S,R;R=150,s=20,S=150,u=.75,J.score=function(d,x,E){var O,y,g,T;return y=E.preparedQuery,O=E.allowErrors,O||o(d,y.core_lw,y.core_up)?(T=d.toLowerCase(),g=r(d,T,y),Math.ceil(g)):0},J.isMatch=o=function(d,x,E){var O,y,g,T,P,z,C;if(g=d.length,T=x.length,!g||T>g)return!1;for(O=-1,y=-1;++y<T;){for(P=x.charCodeAt(y),z=E.charCodeAt(y);++O<g&&(C=d.charCodeAt(O),!(C===P||C===z)););if(O===g)return!1}return!0},J.computeScore=r=function(d,x,E){var O,y,g,T,P,z,C,H,I,$,V,ne,q,se,me,oe,de,ue,Tr,_e,Qe,Ar,Mr,Ir;if(me=E.query,oe=E.query_lw,$=d.length,q=me.length,O=c(d,x,me,oe),y=O.score,O.count===q)return v(q,$,y,O.pos);if(se=x.indexOf(oe),se>-1)return h(d,x,me,oe,se,q,$);for(_e=new Array(q),P=new Array(q),Ir=w(q,$),V=Math.ceil(u*q)+5,ne=V,C=!0,I=-1;++I<q;)_e[I]=0,P[I]=0;for(H=-1;++H<$;){if(Ar=x[H],!Ar.charCodeAt(0)in E.charCodes){if(C){for(I=-1;++I<q;)P[I]=0;C=!1}continue}for(ue=0,Tr=0,T=0,de=!0,C=!0,I=-1;++I<q;){if(Qe=_e[I],Qe>ue&&(ue=Qe),z=0,oe[I]===Ar)if(Mr=f(H,d,x),z=T>0?T:l(d,x,me,oe,H,I,Mr),g=Tr+p(H,I,Mr,y,z),g>ue)ue=g,ne=V;else{if(de&&--ne<=0)return Math.max(ue,_e[q-1])*Ir;de=!1}Tr=Qe,T=P[I],P[I]=z,_e[I]=ue}}return ue=_e[q-1],ue*Ir},J.isWordStart=f=function(d,x,E){var O,y;return d===0?!0:(O=x[d],y=x[d-1],i(y)||O!==E[d]&&y===E[d-1])},J.isWordEnd=a=function(d,x,E,O){var y,g;return d===O-1?!0:(y=x[d],g=x[d+1],i(g)||y===E[d]&&g!==E[d+1])},i=function(d){return d===" "||d==="."||d==="-"||d==="_"||d==="/"||d==="\\"},b=function(d){var x;return d<s?(x=s-d,100+x*x):Math.max(100+s-d,0)},J.scoreSize=w=function(d,x){return S/(S+Math.abs(x-d))},v=function(d,x,E,O){return 2*d*(R*E+b(O))*w(d,x)},J.scorePattern=m=function(d,x,E,O,y){var g,T;return T=d,g=6,E===d&&(g+=2),O&&(g+=3),y&&(g+=1),d===x&&(O&&(E===x?T+=2:T+=1),y&&(g+=1)),E+T*(T+g)},J.scoreCharacter=p=function(d,x,E,O,y){var g;return g=b(d),E?g+R*((O>y?O:y)+10):g+R*y},J.scoreConsecutives=l=function(d,x,E,O,y,g,T){var P,z,C,H,I,$,V;for(z=d.length,H=E.length,C=z-y,I=H-g,P=C<I?C:I,$=0,V=0,E[g]===d[y]&&$++;++V<P&&O[++g]===x[++y];)E[g]===d[y]&&$++;return V<P&&y--,V===1?1+2*$:m(V,H,$,T,a(y,d,x,z))},J.scoreExactMatch=h=function(d,x,E,O,y,g,T){var P,z,C,H,I;for(I=f(y,d,x),I||(C=x.indexOf(O,y+1),C>-1&&(I=f(C,d,x),I&&(y=C))),z=-1,H=0;++z<g;)E[y+z]===d[z]&&H++;return P=a(y+g-1,d,x,T),v(g,T,m(g,g,H,I,P),y)},e=function(){function d(x,E,O){this.score=x,this.pos=E,this.count=O}return d}(),t=new e(0,.1,0),J.scoreAcronyms=c=function(d,x,E,O){var y,g,T,P,z,C,H,I,$,V,ne;if(z=d.length,C=E.length,!(z>1&&C>1))return t;for(y=0,V=0,ne=0,I=0,T=-1,P=-1;++P<C;){if(H=O[P],i(H))if(T=x.indexOf(H,T+1),T>-1){V++;continue}else break;for(;++T<z;)if(H===x[T]&&f(T,d,x)){E[P]===d[T]&&I++,ne+=T,y++;break}if(T===z)break}return y<2?t:(g=y===C?n(d,x,E,y):!1,$=m(y,C,I,!0,g),new e($,ne/y,y+V))},n=function(d,x,E,O){var y,g,T,P;if(T=d.length,P=E.length,y=0,T>12*P)return!1;for(g=-1;++g<T;)if(f(g,d,x)&&++y>O)return!1;return!0}}).call(J)});var _r=Oe(De=>{(function(){var e,r,t,n,o,i,a,f,u,s;s=Ne(),i=s.isMatch,e=s.computeScore,f=s.scoreSize,u=20,t=2.5,De.score=function(c,p,l){var v,h,m,b;return h=l.preparedQuery,v=l.allowErrors,v||i(c,h.core_lw,h.core_up)?(b=c.toLowerCase(),m=e(c,b,h),m=a(c,b,m,l),Math.ceil(m)):0},a=function(c,p,l,v){var h,m,b,w,S,R,d,x
|
2022-12-12 12:46:16 +03:00
|
|
|
***************************************************************************** */var Lr=function(e,r){return Lr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])},Lr(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");Lr(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,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function f(c){try{s(n.next(c))}catch(p){a(p)}}function u(c){try{s(n.throw(c))}catch(p){a(p)}}function s(c){c.done?i(c.value):o(c.value).then(f,u)}s((n=n.apply(e,r||[])).next())})}function Ge(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function f(s){return function(c){return u([s,c])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,o=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(s[0]===6&&t.label<i[1]){t.label=i[1],i=s;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(s);break}i[2]&&t.ops.pop(),t.trys.pop();continue}s=r.call(e,t)}catch(c){s=[6,c],o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function G(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function W(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),o,i=[],a;try{for(;(r===void 0||r-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(f){a={error:f}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i}function U(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))}function ve(e){return this instanceof ve?(this.v=e,this):new ve(e)}function ot(e,r,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t.apply(e,r||[]),o,i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(l){n[l]&&(o[l]=function(v){return new Promise(function(h,m){i.push([l,v,h,m])>1||f(l,v)})})}function f(l,v){try{u(n[l](v))}catch(h){p(i[0][3],h)}}function u(l){l.value instanceof ve?Promise.resolve(l.value.v).then(s,c):p(i[0][2],l)}function s(l){f("next",l)}function c(l){f("throw",l)}function p(l,v){l(v),i.shift(),i.length&&f(i[0][0],i[0][1])}}function it(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 G=="function"?G(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(a){return new Promise(function(f,u){a=e[i](a),o(f,u,a.done,a.value)})}}function o(i,a,f,u){Promise.resolve(u).then(function(s){i({value:s,done:f})},a)}}function _(e){return typeof e=="function"}function Ye(e){var r=function(n){Error.call(n),n.stack=new Error().stack},t=e(r);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Je=Ye(function(e){return function(t){e(this),this.message=t?t.length+` errors
|
2022-12-18 12:15:08 +03:00
|
|
|
`):"",this.name="UnsubscriptionError",this.errors=t}});function fe(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var ie=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var r,t,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var f=G(a),u=f.next();!u.done;u=f.next()){var s=u.value;s.remove(this)}}catch(m){r={error:m}}finally{try{u&&!u.done&&(t=f.return)&&t.call(f)}finally{if(r)throw r.error}}else a.remove(this);var c=this.initialTeardown;if(_(c))try{c()}catch(m){i=m instanceof Je?m.errors:[m]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var l=G(p),v=l.next();!v.done;v=l.next()){var h=v.value;try{at(h)}catch(m){i=i!=null?i:[],m instanceof Je?i=U(U([],W(i)),W(m.errors)):i.push(m)}}}catch(m){n={error:m}}finally{try{v&&!v.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}}if(i)throw new Je(i)}},e.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)at(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)&&fe(t,r)},e.prototype.remove=function(r){var t=this._finalizers;t&&fe(t,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}();var Rr=ie.EMPTY;function Be(e){return e instanceof ie||e&&"closed"in e&&_(e.remove)&&_(e.add)&&_(e.unsubscribe)}function at(e){_(e)?e():e.unsubscribe()}var te={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Te={setTimeout:function(e,r){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];var o=Te.delegate;return o!=null&&o.setTimeout?o.setTimeout.apply(o,U([e,r],W(t))):setTimeout.apply(void 0,U([e,r],W(t)))},clearTimeout:function(e){var r=Te.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Xe(e){Te.setTimeout(function(){var r=te.onUnhandledError;if(r)r(e);else throw e})}function ce(){}var st=function(){return Pr("C",void 0,void 0)}();function ut(e){return Pr("E",void 0,e)}function ft(e){return Pr("N",e,void 0)}function Pr(e,r,t){return{kind:e,value:r,error:t}}var be=null;function Ae(e){if(te.useDeprecatedSynchronousErrorHandling){var r=!be;if(r&&(be={errorThrown:!1,error:null}),e(),r){var t=be,n=t.errorThrown,o=t.error;if(be=null,n)throw o}}else e()}function ct(e){te.useDeprecatedSynchronousErrorHandling&&be&&(be.errorThrown=!0,be.error=e)}var We=function(e){j(r,e);function r(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,Be(t)&&t.add(n)):n.destination=Hn,n}return r.create=function(t,n,o){return new xe(t,n,o)},r.prototype.next=function(t){this.isStopped?Fr(ft(t),this):this._next(t)},r.prototype.error=function(t){this.isStopped?Fr(ut(t),this):(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped?Fr(st,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}(ie);var Pn=Function.prototype.bind;function kr(e,r){return Pn.call(e,r)}var kn=function(){function e(r){this.partialObserver=r}return e.prototype.next=function(r){var t=this.partialObserver;if(t.next)try{t.next(r)}catch(n){Ze(n)}},e.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(n){Ze(n)}else Ze(r)},e.prot
|