@linguix.com/lx-checker-sdk
Version:
Linguix Grammar Checker SDK
2 lines • 129 kB
JavaScript
"use strict";var t,e={};var r=(t||(t=1,function(t){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},e(t,r)};function r(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}function n(t){return"function"==typeof t}"function"==typeof SuppressedError&&SuppressedError;var o=!1,s={set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack,o=t},get useDeprecatedSynchronousErrorHandling(){return o}};function i(t){setTimeout((function(){throw t}),0)}var c={closed:!0,next:function(t){},error:function(t){if(s.useDeprecatedSynchronousErrorHandling)throw t;i(t)},complete:function(){}},a=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}(),u=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),h=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var r,o=this,s=o._parentOrParents,i=o._ctorUnsubscribe,c=o._unsubscribe,h=o._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,s instanceof t)s.remove(this);else if(null!==s)for(var p=0;p<s.length;++p)s[p].remove(this);if(n(c)){i&&(this._unsubscribe=void 0);try{c.call(this)}catch(t){e=t instanceof u?f(t.errors):[t]}}if(a(h)){p=-1;for(var l=h.length;++p<l;){var d=h[p];if(null!==(r=d)&&"object"==typeof r)try{d.unsubscribe()}catch(t){e=e||[],t instanceof u?e=e.concat(f(t.errors)):e.push(t)}}}if(e)throw new u(e)}},t.prototype.add=function(e){var r=e;if(!e)return t.EMPTY;switch(typeof e){case"function":r=new t(e);case"object":if(r===this||r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof t)){var n=r;(r=new t)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var o=r._parentOrParents;if(null===o)r._parentOrParents=this;else if(o instanceof t){if(o===this)return r;r._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return r;o.push(this)}var s=this._subscriptions;return null===s?this._subscriptions=[r]:s.push(r),r},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function f(t){return t.reduce((function(t,e){return t.concat(e instanceof u?e.errors:e)}),[])}var p=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),l=function(t){function e(r,n,o){var s=t.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=c;break;case 1:if(!r){s.destination=c;break}if("object"==typeof r){r instanceof e?(s.syncErrorThrowable=r.syncErrorThrowable,s.destination=r,r.add(s)):(s.syncErrorThrowable=!0,s.destination=new d(s,r));break}default:s.syncErrorThrowable=!0,s.destination=new d(s,r,n,o)}return s}return r(e,t),e.prototype[p]=function(){return this},e.create=function(t,r,n){var o=new e(t,r,n);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(h),d=function(t){function e(e,r,o,s){var i,a=t.call(this)||this;a._parentSubscriber=e;var u=a;return n(r)?i=r:r&&(i=r.next,o=r.error,s=r.complete,r!==c&&(n((u=Object.create(r)).unsubscribe)&&a.add(u.unsubscribe.bind(u)),u.unsubscribe=a.unsubscribe.bind(a))),a._context=u,a._next=i,a._error=o,a._complete=s,a}return r(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;s.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,r=s.useDeprecatedSynchronousErrorHandling;if(this._error)r&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)r?(e.syncErrorValue=t,e.syncErrorThrown=!0):i(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;i(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};s.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),s.useDeprecatedSynchronousErrorHandling)throw t;i(t)}},e.prototype.__tryOrSetError=function(t,e,r){if(!s.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,r)}catch(e){return s.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(i(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(l),y=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function g(t){return t}var m=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,o=function(t,e,r){if(t){if(t instanceof l)return t;if(t[p])return t[p]()}return t||e||r?new l(t,e,r):new l(c)}(t,e,r);if(n?o.add(n.call(o,this.source)):o.add(this.source||s.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),s.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){s.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){var e=t,r=e.closed,n=e.destination,o=e.isStopped;if(r||o)return!1;t=n&&n instanceof l?n:null}return!0}(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=b(e))((function(e,n){var o;o=r.subscribe((function(e){try{t(e)}catch(t){n(t),o&&o.unsubscribe()}}),n,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[y]=function(){return this},t.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return 0===e.length?this:(0===(t=e).length?g:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)})(this)},t.prototype.toPromise=function(t){var e=this;return new(t=b(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function b(t){if(t||(t=Promise),!t)throw new Error("no Promise impl found");return t}var v=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),C=function(t){function e(e,r){var n=t.call(this)||this;return n.subject=e,n.subscriber=r,n.closed=!1,n}return r(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(h),w=function(t){function e(e){var r=t.call(this,e)||this;return r.destination=e,r}return r(e,t),e}(l),k=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r(e,t),e.prototype[p]=function(){return new w(this)},e.prototype.lift=function(t){var e=new W(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new v;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),o=0;o<r;o++)n[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new v;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,n=e.slice(),o=0;o<r;o++)n[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new v;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),n=0;n<e;n++)r[n].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new v;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new v;return this.hasError?(t.error(this.thrownError),h.EMPTY):this.isStopped?(t.complete(),h.EMPTY):(this.observers.push(t),new C(this,t))},e.prototype.asObservable=function(){var t=new m;return t.source=this,t},e.create=function(t,e){return new W(t,e)},e}(m),W=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return r(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):h.EMPTY},e}(k);function S(){return function(t){return t.lift(new _(t))}}var _=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var r=this.connectable;r._refCount++;var n=new x(t,r),o=e.subscribe(n);return n.closed||(n.connection=r.connect()),o},t}(),x=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return r(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var r=this.connection,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},e}(l),E=function(t){function e(e,r){var n=t.call(this)||this;return n.source=e,n.subjectFactory=r,n._refCount=0,n._isComplete=!1,n}return r(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new h).add(this.source.subscribe(new A(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t},e.prototype.refCount=function(){return S()(this)},e}(m),F=function(){var t=E.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),A=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return r(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(w),R=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n.pending=!1,n}return r(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){if(void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r=!1,n=void 0;try{this.work(t)}catch(t){r=!0,n=!!t&&t||new Error(t)}if(r)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,r=e.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,r){return t.call(this)||this}return r(e,t),e.prototype.schedule=function(t,e){return this},e}(h)),O=function(){function t(e,r){void 0===r&&(r=t.now),this.SchedulerAction=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(r,e)},t.now=function(){return Date.now()},t}(),N=new(function(t){function e(r,n){void 0===n&&(n=O.now);var o=t.call(this,r,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():n()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r(e,t),e.prototype.schedule=function(r,n,o){return void 0===n&&(n=0),e.delegate&&e.delegate!==this?e.delegate.schedule(r,n,o):t.prototype.schedule.call(this,r,n,o)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var r;this.active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}}},e}(O))(R);function B(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function P(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var r=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})})),r}var T,I,U={exports:{}};function q(){if(I)return T;I=1;var t=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,e=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];return T=function(r){var n,o,s,i=r,c=r.indexOf("["),a=r.indexOf("]");-1!=c&&-1!=a&&(r=r.substring(0,c)+r.substring(c,a).replace(/:/g,";")+r.substring(a,r.length));for(var u,h,f=t.exec(r||""),p={},l=14;l--;)p[e[l]]=f[l]||"";return-1!=c&&-1!=a&&(p.source=i,p.host=p.host.substring(1,p.host.length-1).replace(/;/g,":"),p.authority=p.authority.replace("[","").replace("]","").replace(/;/g,":"),p.ipv6uri=!0),p.pathNames=(n=p.path,o=/\/{2,9}/g,s=n.replace(o,"/").split("/"),"/"!=n.substr(0,1)&&0!==n.length||s.splice(0,1),"/"==n.substr(n.length-1,1)&&s.splice(s.length-1,1),s),p.queryKey=(u=p.query,h={},u.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(t,e,r){e&&(h[e]=r)})),h),p}}var D,L,M,j,Q,J,H={exports:{}},G={exports:{}};function V(){if(L)return D;L=1;var t=1e3,e=60*t,r=60*e,n=24*r,o=365.25*n;function s(t,e,r){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+r:Math.ceil(t/e)+" "+r+"s"}return D=function(i,c){c=c||{};var a=typeof i;if("string"===a&&i.length>0)return function(s){if(!((s=String(s)).length>100)){var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(s);if(i){var c=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"days":case"day":case"d":return c*n;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*e;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}(i);if("number"===a&&!1===isNaN(i))return c.long?function(o){return s(o,n,"day")||s(o,r,"hour")||s(o,e,"minute")||s(o,t,"second")||o+" ms"}(i):function(o){return o>=n?Math.round(o/n)+"d":o>=r?Math.round(o/r)+"h":o>=e?Math.round(o/e)+"m":o>=t?Math.round(o/t)+"s":o+"ms"}(i);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))},D}function K(){return M||(M=1,function(t,e){function r(t){var r;function o(){if(o.enabled){var t=o,n=+new Date,s=n-(r||n);t.diff=s,t.prev=r,t.curr=n,r=n;for(var i=new Array(arguments.length),c=0;c<i.length;c++)i[c]=arguments[c];i[0]=e.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var a=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(r,n){if("%%"===r)return r;a++;var o=e.formatters[n];if("function"==typeof o){var s=i[a];r=o.call(t,s),i.splice(a,1),a--}return r})),e.formatArgs.call(t,i),(o.log||e.log||console.log.bind(console)).apply(t,i)}}return o.namespace=t,o.enabled=e.enabled(t),o.useColors=e.useColors(),o.color=function(t){var r,n=0;for(r in t)n=(n<<5)-n+t.charCodeAt(r),n|=0;return e.colors[Math.abs(n)%e.colors.length]}(t),o.destroy=n,"function"==typeof e.init&&e.init(o),e.instances.push(o),o}function n(){var t=e.instances.indexOf(this);return-1!==t&&(e.instances.splice(t,1),!0)}(e=t.exports=r.debug=r.default=r).coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){e.enable("")},e.enable=function(t){var r;e.save(t),e.names=[],e.skips=[];var n=("string"==typeof t?t:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(t=n[r].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")));for(r=0;r<e.instances.length;r++){var s=e.instances[r];s.enabled=e.enabled(s.namespace)}},e.enabled=function(t){if("*"===t[t.length-1])return!0;var r,n;for(r=0,n=e.skips.length;r<n;r++)if(e.skips[r].test(t))return!1;for(r=0,n=e.names.length;r<n;r++)if(e.names[r].test(t))return!0;return!1},e.humanize=V(),e.instances=[],e.names=[],e.skips=[],e.formatters={}}(G,G.exports)),G.exports}function z(){return j||(j=1,function(t,e){function r(){var t;try{t=e.storage.debug}catch(t){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t}(e=t.exports=K()).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},e.formatArgs=function(t){var r=this.useColors;if(t[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+t[0]+(r?"%c ":" ")+"+"+e.humanize(this.diff),r){var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var o=0,s=0;t[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(o++,"%c"===t&&(s=o))})),t.splice(s,0,n)}},e.save=function(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}},e.load=r,e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(r())}(H,H.exports)),H.exports}var X,Z,$,Y,tt={},et={exports:{}},rt={exports:{}};function nt(){if(Z)return X;Z=1;var t=1e3,e=60*t,r=60*e,n=24*r,o=365.25*n;function s(t,e,r){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+r:Math.ceil(t/e)+" "+r+"s"}return X=function(i,c){c=c||{};var a=typeof i;if("string"===a&&i.length>0)return function(s){if(!((s=String(s)).length>100)){var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(s);if(i){var c=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"days":case"day":case"d":return c*n;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*e;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}(i);if("number"===a&&!1===isNaN(i))return c.long?function(o){return s(o,n,"day")||s(o,r,"hour")||s(o,e,"minute")||s(o,t,"second")||o+" ms"}(i):function(o){return o>=n?Math.round(o/n)+"d":o>=r?Math.round(o/r)+"h":o>=e?Math.round(o/e)+"m":o>=t?Math.round(o/t)+"s":o+"ms"}(i);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))},X}function ot(){return $||($=1,function(t,e){function r(t){var r;function o(){if(o.enabled){var t=o,n=+new Date,s=n-(r||n);t.diff=s,t.prev=r,t.curr=n,r=n;for(var i=new Array(arguments.length),c=0;c<i.length;c++)i[c]=arguments[c];i[0]=e.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var a=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(r,n){if("%%"===r)return r;a++;var o=e.formatters[n];if("function"==typeof o){var s=i[a];r=o.call(t,s),i.splice(a,1),a--}return r})),e.formatArgs.call(t,i),(o.log||e.log||console.log.bind(console)).apply(t,i)}}return o.namespace=t,o.enabled=e.enabled(t),o.useColors=e.useColors(),o.color=function(t){var r,n=0;for(r in t)n=(n<<5)-n+t.charCodeAt(r),n|=0;return e.colors[Math.abs(n)%e.colors.length]}(t),o.destroy=n,"function"==typeof e.init&&e.init(o),e.instances.push(o),o}function n(){var t=e.instances.indexOf(this);return-1!==t&&(e.instances.splice(t,1),!0)}(e=t.exports=r.debug=r.default=r).coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){e.enable("")},e.enable=function(t){var r;e.save(t),e.names=[],e.skips=[];var n=("string"==typeof t?t:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(t=n[r].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")));for(r=0;r<e.instances.length;r++){var s=e.instances[r];s.enabled=e.enabled(s.namespace)}},e.enabled=function(t){if("*"===t[t.length-1])return!0;var r,n;for(r=0,n=e.skips.length;r<n;r++)if(e.skips[r].test(t))return!1;for(r=0,n=e.names.length;r<n;r++)if(e.names[r].test(t))return!0;return!1},e.humanize=nt(),e.instances=[],e.names=[],e.skips=[],e.formatters={}}(rt,rt.exports)),rt.exports}var st,it={exports:{}};function ct(){return st||(st=1,function(t){function e(t){if(t)return function(t){for(var r in e.prototype)t[r]=e.prototype[r];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<n.length;o++)if((r=n[o])===e||r.fn===e){n.splice(o,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){n=0;for(var o=(r=r.slice(0)).length;n<o;++n)r[n].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}}(it)),it.exports}var at,ut,ht,ft,pt,lt,dt={};function yt(){if(ut)return at;ut=1;var t={}.toString;return at=Array.isArray||function(e){return"[object Array]"==t.call(e)}}function gt(){if(ft)return ht;ft=1,ht=function(n){return t&&Buffer.isBuffer(n)||e&&(n instanceof ArrayBuffer||r(n))};var t="function"==typeof Buffer&&"function"==typeof Buffer.isBuffer,e="function"==typeof ArrayBuffer,r=function(t){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer};return ht}function mt(){if(pt)return dt;pt=1;var t=yt(),e=gt(),r=Object.prototype.toString,n="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===r.call(Blob),o="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===r.call(File);function s(r,n){if(!r)return r;if(e(r)){var o={_placeholder:!0,num:n.length};return n.push(r),o}if(t(r)){for(var i=new Array(r.length),c=0;c<r.length;c++)i[c]=s(r[c],n);return i}if("object"==typeof r&&!(r instanceof Date)){for(var a in i={},r)i[a]=s(r[a],n);return i}return r}function i(e,r){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<r.length)return r[e.num];throw new Error("illegal attachments")}if(t(e))for(var n=0;n<e.length;n++)e[n]=i(e[n],r);else if("object"==typeof e)for(var o in e)e[o]=i(e[o],r);return e}return dt.deconstructPacket=function(t){var e=[],r=t.data,n=t;return n.data=s(r,e),n.attachments=e.length,{packet:n,buffers:e}},dt.reconstructPacket=function(t,e){return t.data=i(t.data,e),t.attachments=void 0,t},dt.removeBlobs=function(r,s){var i=0,c=r;!function r(a,u,h){if(!a)return a;if(n&&a instanceof Blob||o&&a instanceof File){i++;var f=new FileReader;f.onload=function(){h?h[u]=this.result:c=this.result,--i||s(c)},f.readAsArrayBuffer(a)}else if(t(a))for(var p=0;p<a.length;p++)r(a[p],p,a);else if("object"==typeof a&&!e(a))for(var l in a)r(a[l],l,a)}(c),i||s(c)},dt}function bt(){return lt||(lt=1,function(t){var e=(Y||(Y=1,function(t,e){function r(){var t;try{t=e.storage.debug}catch(t){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t}(e=t.exports=ot()).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},e.formatArgs=function(t){var r=this.useColors;if(t[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+t[0]+(r?"%c ":" ")+"+"+e.humanize(this.diff),r){var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var o=0,s=0;t[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(o++,"%c"===t&&(s=o))})),t.splice(s,0,n)}},e.save=function(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}},e.load=r,e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(r())}(et,et.exports)),et.exports)("socket.io-parser"),r=ct(),n=mt(),o=yt(),s=gt();function i(){}t.protocol=4,t.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],t.CONNECT=0,t.DISCONNECT=1,t.EVENT=2,t.ACK=3,t.ERROR=4,t.BINARY_EVENT=5,t.BINARY_ACK=6,t.Encoder=i,t.Decoder=u;var c=t.ERROR+'"encode error"';function a(r){var n=""+r.type;if(t.BINARY_EVENT!==r.type&&t.BINARY_ACK!==r.type||(n+=r.attachments+"-"),r.nsp&&"/"!==r.nsp&&(n+=r.nsp+","),null!=r.id&&(n+=r.id),null!=r.data){var o=function(t){try{return JSON.stringify(t)}catch(t){return!1}}(r.data);if(!1===o)return c;n+=o}return e("encoded %j as %s",r,n),n}function u(){this.reconstructor=null}function h(t){this.reconPack=t,this.buffers=[]}i.prototype.encode=function(r,o){e("encoding packet %j",r),t.BINARY_EVENT===r.type||t.BINARY_ACK===r.type?function(t,e){function r(t){var r=n.deconstructPacket(t),o=a(r.packet),s=r.buffers;s.unshift(o),e(s)}n.removeBlobs(t,r)}(r,o):o([a(r)])},r(u.prototype),u.prototype.add=function(r){var n;if("string"==typeof r){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=function(r){var n,s=0,i={type:Number(r.charAt(0))};if(null==t.types[i.type])return n="unknown packet type "+i.type,{type:t.ERROR,data:"parser error: "+n};if(t.BINARY_EVENT===i.type||t.BINARY_ACK===i.type){for(var c=s+1;"-"!==r.charAt(++s)&&s!=r.length;);var a=r.substring(c,s);if(a!=Number(a)||"-"!==r.charAt(s))throw new Error("Illegal attachments");i.attachments=Number(a)}if("/"===r.charAt(s+1)){for(c=s+1;++s&&","!==(h=r.charAt(s))&&s!==r.length;);i.nsp=r.substring(c,s)}else i.nsp="/";var u=r.charAt(s+1);if(""!==u&&Number(u)==u){for(c=s+1;++s;){var h;if(null==(h=r.charAt(s))||Number(h)!=h){--s;break}if(s===r.length)break}i.id=Number(r.substring(c,s+1))}if(r.charAt(++s)){var f=function(t){try{return JSON.parse(t)}catch(t){return!1}}(r.substr(s));if(!function(t,e){switch(t){case 0:return"object"==typeof e;case 1:return void 0===e;case 4:return"string"==typeof e||"object"==typeof e;case 2:case 5:return o(e)&&("string"==typeof e[0]||"number"==typeof e[0]);case 3:case 6:return o(e)}}(i.type,f))throw new Error("invalid payload");i.data=f}return e("decoded %s as %j",r,i),i}(r),t.BINARY_EVENT===n.type||t.BINARY_ACK===n.type?(this.reconstructor=new h(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n)}else{if(!s(r)&&!r.base64)throw new Error("Unknown type: "+r);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(r))&&(this.reconstructor=null,this.emit("decoded",n))}},u.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},h.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var e=n.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null},h.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}}(tt)),tt}var vt,Ct,wt,kt,Wt,St={exports:{}},_t={},xt={exports:{}};function Et(){return wt?Ct:(wt=1,Ct="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")())}function Ft(){if(Wt)return kt;Wt=1;var t=function(){if(vt)return xt.exports;vt=1;try{xt.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){xt.exports=!1}return xt.exports}(),e=Et();return kt=function(r){var n=r.xdomain,o=r.xscheme,s=r.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!n||t))return new XMLHttpRequest}catch(t){}try{if("undefined"!=typeof XDomainRequest&&!o&&s)return new XDomainRequest}catch(t){}if(!n)try{return new(e[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}}var At,Rt,Ot,Nt,Bt,Pt,Tt,It,Ut,qt,Dt,Lt,Mt={exports:{}},jt={};function Qt(){return Rt?At:(Rt=1,At=Object.keys||function(t){var e=[],r=Object.prototype.hasOwnProperty;for(var n in t)r.call(t,n)&&e.push(n);return e})}function Jt(){if(Pt)return Bt;Pt=1;var t=function(){if(Nt)return Ot;Nt=1;var t={}.toString;return Ot=Array.isArray||function(e){return"[object Array]"==t.call(e)}}(),e=Object.prototype.toString,r="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===e.call(Blob),n="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===e.call(File);return Bt=function e(o){if(!o||"object"!=typeof o)return!1;if(t(o)){for(var s=0,i=o.length;s<i;s++)if(e(o[s]))return!0;return!1}if("function"==typeof Buffer&&Buffer.isBuffer&&Buffer.isBuffer(o)||"function"==typeof ArrayBuffer&&o instanceof ArrayBuffer||r&&o instanceof Blob||n&&o instanceof File)return!0;if(o.toJSON&&"function"==typeof o.toJSON&&1===arguments.length)return e(o.toJSON(),!0);for(var c in o)if(Object.prototype.hasOwnProperty.call(o,c)&&e(o[c]))return!0;return!1},Bt}function Ht(){if(Lt)return Dt;Lt=1;var t,e,r,n=String.fromCharCode;function o(t){for(var e,r,n=[],o=0,s=t.length;o<s;)(e=t.charCodeAt(o++))>=55296&&e<=56319&&o<s?56320==(64512&(r=t.charCodeAt(o++)))?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),o--):n.push(e);return n}function s(t,e){if(t>=55296&&t<=57343){if(e)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function i(t,e){return n(t>>e&63|128)}function c(t,e){if(!(4294967168&t))return n(t);var r="";return 4294965248&t?4294901760&t?4292870144&t||(r=n(t>>18&7|240),r+=i(t,12),r+=i(t,6)):(s(t,e)||(t=65533),r=n(t>>12&15|224),r+=i(t,6)):r=n(t>>6&31|192),r+=n(63&t|128)}function a(){if(r>=e)throw Error("Invalid byte index");var n=255&t[r];if(r++,128==(192&n))return 63&n;throw Error("Invalid continuation byte")}function u(n){var o,i;if(r>e)throw Error("Invalid byte index");if(r==e)return!1;if(o=255&t[r],r++,!(128&o))return o;if(192==(224&o)){if((i=(31&o)<<6|a())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&o)){if((i=(15&o)<<12|a()<<6|a())>=2048)return s(i,n)?i:65533;throw Error("Invalid continuation byte")}if(240==(248&o)&&(i=(7&o)<<18|a()<<12|a()<<6|a())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}return Dt={version:"2.1.2",encode:function(t,e){for(var r=!1!==(e=e||{}).strict,n=o(t),s=n.length,i=-1,a="";++i<s;)a+=c(n[i],r);return a},decode:function(s,i){var c=!1!==(i=i||{}).strict;t=o(s),e=t.length,r=0;for(var a,h=[];!1!==(a=u(c));)h.push(a);return function(t){for(var e,r=t.length,o=-1,s="";++o<r;)(e=t[o])>65535&&(s+=n((e-=65536)>>>10&1023|55296),e=56320|1023&e),s+=n(e);return s}(h)}}}var Gt,Vt,Kt,zt,Xt,Zt,$t={};function Yt(){if(Kt)return Vt;Kt=1;var t=void 0!==t?t:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,e=function(){try{return 2===new Blob(["hi"]).size}catch(t){return!1}}(),r=e&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(t){return!1}}(),n=t&&t.prototype.append&&t.prototype.getBlob;function o(t){return t.map((function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var r=new Uint8Array(t.byteLength);r.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=r.buffer}return e}return t}))}function s(e,r){r=r||{};var n=new t;return o(e).forEach((function(t){n.append(t)})),r.type?n.getBlob(r.type):n.getBlob()}function i(t,e){return new Blob(o(t),e||{})}return"undefined"!=typeof Blob&&(s.prototype=Blob.prototype,i.prototype=Blob.prototype),Vt=e?r?Blob:i:n?s:void 0}function te(){return zt||(zt=1,function(t){var e,r,n=Qt(),o=Jt(),s=It?Tt:(It=1,Tt=function(t,e,r){var n=t.byteLength;if(e=e||0,r=r||n,t.slice)return t.slice(e,r);if(e<0&&(e+=n),r<0&&(r+=n),r>n&&(r=n),e>=n||e>=r||0===n)return new ArrayBuffer(0);for(var o=new Uint8Array(t),s=new Uint8Array(r-e),i=e,c=0;i<r;i++,c++)s[c]=o[i];return s.buffer}),i=function(){if(qt)return Ut;function t(){}return qt=1,Ut=function(e,r,n){var o=!1;return n=n||t,s.count=e,0===e?r():s;function s(t,e){if(s.count<=0)throw new Error("after called too many times");--s.count,t?(o=!0,r(t),r=n):0!==s.count||o||r(null,e)}}}
/*! https://mths.be/utf8js v2.1.2 by @mathias */(),c=Ht();"undefined"!=typeof ArrayBuffer&&(Gt||(Gt=1,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$t.encode=function(t){var e,n=new Uint8Array(t),o=n.length,s="";for(e=0;e<o;e+=3)s+=r[n[e]>>2],s+=r[(3&n[e])<<4|n[e+1]>>4],s+=r[(15&n[e+1])<<2|n[e+2]>>6],s+=r[63&n[e+2]];return o%3==2?s=s.substring(0,s.length-1)+"=":o%3==1&&(s=s.substring(0,s.length-2)+"=="),s},$t.decode=function(t){var e,n,o,s,i,c=.75*t.length,a=t.length,u=0;"="===t[t.length-1]&&(c--,"="===t[t.length-2]&&c--);var h=new ArrayBuffer(c),f=new Uint8Array(h);for(e=0;e<a;e+=4)n=r.indexOf(t[e]),o=r.indexOf(t[e+1]),s=r.indexOf(t[e+2]),i=r.indexOf(t[e+3]),f[u++]=n<<2|o>>4,f[u++]=(15&o)<<4|s>>2,f[u++]=(3&s)<<6|63&i;return h}),e=$t);var a="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),u="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),h=a||u;t.protocol=3;var f=t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},p=n(f),l={type:"error",data:"parser error"},d=Yt();function y(t,e,r){for(var n=new Array(t.length),o=i(t.length,r),s=function(t,r,o){e(r,(function(e,r){n[t]=r,o(e,n)}))},c=0;c<t.length;c++)s(c,t[c],o)}t.encodePacket=function(e,r,n,o){"function"==typeof r&&(o=r,r=!1),"function"==typeof n&&(o=n,n=null);var s=void 0===e.data?void 0:e.data.buffer||e.data;if("undefined"!=typeof ArrayBuffer&&s instanceof ArrayBuffer)return function(e,r,n){if(!r)return t.encodeBase64Packet(e,n);var o=e.data,s=new Uint8Array(o),i=new Uint8Array(1+o.byteLength);i[0]=f[e.type];for(var c=0;c<s.length;c++)i[c+1]=s[c];return n(i.buffer)}(e,r,o);if(void 0!==d&&s instanceof d)return function(e,r,n){if(!r)return t.encodeBase64Packet(e,n);if(h)return function(e,r,n){if(!r)return t.encodeBase64Packet(e,n);var o=new FileReader;return o.onload=function(){t.encodePacket({type:e.type,data:o.result},r,!0,n)},o.readAsArrayBuffer(e.data)}(e,r,n);var o=new Uint8Array(1);o[0]=f[e.type];var s=new d([o.buffer,e.data]);return n(s)}(e,r,o);if(s&&s.base64)return function(e,r){var n="b"+t.packets[e.type]+e.data.data;return r(n)}(e,o);var i=f[e.type];return void 0!==e.data&&(i+=n?c.encode(String(e.data),{strict:!1}):String(e.data)),o(""+i)},t.encodeBase64Packet=function(e,r){var n,o="b"+t.packets[e.type];if(void 0!==d&&e.data instanceof d){var s=new FileReader;return s.onload=function(){var t=s.result.split(",")[1];r(o+t)},s.readAsDataURL(e.data)}try{n=String.fromCharCode.apply(null,new Uint8Array(e.data))}catch(t){for(var i=new Uint8Array(e.data),c=new Array(i.length),a=0;a<i.length;a++)c[a]=i[a];n=String.fromCharCode.apply(null,c)}return o+=btoa(n),r(o)},t.decodePacket=function(e,r,n){if(void 0===e)return l;if("string"==typeof e){if("b"===e.charAt(0))return t.decodeBase64Packet(e.substr(1),r);if(n&&!1===(e=function(t){try{t=c.decode(t,{strict:!1})}catch(t){return!1}return t}(e)))return l;var o=e.charAt(0);return Number(o)==o&&p[o]?e.length>1?{type:p[o],data:e.substring(1)}:{type:p[o]}:l}o=new Uint8Array(e)[0];var i=s(e,1);return d&&"blob"===r&&(i=new d([i])),{type:p[o],data:i}},t.decodeBase64Packet=function(t,r){var n=p[t.charAt(0)];if(!e)return{type:n,data:{base64:!0,data:t.substr(1)}};var o=e.decode(t.substr(1));return"blob"===r&&d&&(o=new d([o])),{type:n,data:o}},t.encodePayload=function(e,r,n){"function"==typeof r&&(n=r,r=null);var s=o(e);return r&&s?d&&!h?t.encodePayloadAsBlob(e,n):t.encodePayloadAsArrayBuffer(e,n):e.length?void y(e,(function(e,n){t.encodePacket(e,!!s&&r,!1,(function(t){n(null,function(t){return t.length+":"+t}(t))}))}),(function(t,e){return n(e.join(""))})):n("0:")},t.decodePayload=function(e,r,n){if("string"!=typeof e)return t.decodePayloadAsBinary(e,r,n);var o;if("function"==typeof r&&(n=r,r=null),""===e)return n(l,0,1);for(var s,i,c="",a=0,u=e.length;a<u;a++){var h=e.charAt(a);if(":"===h){if(""===c||c!=(s=Number(c)))return n(l,0,1);if(c!=(i=e.substr(a+1,s)).length)return n(l,0,1);if(i.length){if(o=t.decodePacket(i,r,!1),l.type===o.type&&l.data===o.data)return n(l,0,1);if(!1===n(o,a+s,u))return}a+=s,c=""}else c+=h}return""!==c?n(l,0,1):void 0},t.encodePayloadAsArrayBuffer=function(e,r){if(!e.length)return r(new ArrayBuffer(0));y(e,(function(e,r){t.encodePacket(e,!0,!0,(function(t){return r(null,t)}))}),(function(t,e){var n=e.reduce((function(t,e){var r;return t+(r="string"==typeof e?e.length:e.byteLength).toString().length+r+2}),0),o=new Uint8Array(n),s=0;return e.forEach((function(t){var e="string"==typeof t,r=t;if(e){for(var n=new Uint8Array(t.length),i=0;i<t.length;i++)n[i]=t.charCodeAt(i);r=n.buffer}o[s++]=e?0:1;var c=r.byteLength.toString();for(i=0;i<c.length;i++)o[s++]=parseInt(c[i]);for(o[s++]=255,n=new Uint8Array(r),i=0;i<n.length;i++)o[s++]=n[i]})),r(o.buffer)}))},t.encodePayloadAsBlob=function(e,r){y(e,(function(e,r){t.encodePacket(e,!0,!0,(function(t){var e=new Uint8Array(1);if(e[0]=1,"string"==typeof t){for(var n=new Uint8Array(t.length),o=0;o<t.length;o++)n[o]=t.charCodeAt(o);t=n.buffer,e[0]=0}var s=(t instanceof ArrayBuffer?t.byteLength:t.size).toString(),i=new Uint8Array(s.length+1);for(o=0;o<s.length;o++)i[o]=parseInt(s[o]);if(i[s.length]=255,d){var c=new d([e.buffer,i.buffer,t]);r(null,c)}}))}),(function(t,e){return r(new d(e))}))},t.decodePayloadAsBinary=function(e,r,n){"function"==typeof r&&(n=r,r=null);for(var o=e,i=[];o.byteLength>0;){for(var c=new Uint8Array(o),a=0===c[0],u="",h=1;255!==c[h];h++){if(u.length>310)return n(l,0,1);u+=c[h]}o=s(o,2+u.length),u=parseInt(u);var f=s(o,0,u);if(a)try{f=String.fromCharCode.apply(null,new Uint8Array(f))}catch(t){var p=new Uint8Array(f);for(f="",h=0;h<p.length;h++)f+=String.fromCharCode(p[h])}i.push(f),o=s(o,u)}var d=i.length;i.forEach((function(e,o){n(t.decodePacket(e,r,!0),o,d)}))}}(jt)),jt}function ee(){if(Zt)return Xt;Zt=1;var t=te(),e=ct();function r(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.withCredentials=t.withCredentials,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.forceNode=t.forceNode,this.isReactNative=t.isReactNative,this.extraHeaders=t.extraHeaders,this.localAddress=t.localAddress}return Xt=r,e(r.prototype),r.prototype.onError=function(t,e){var r=new Error(t);return r.type="TransportError",r.description=e,this.emit("error",r),this},r.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},r.prototype.send=function(t){if("open"!==this.readyState)throw new Error("Transport not open");this.write(t)},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(e){var r=t.decodePacket(e,this.socket.binaryType);this.onPacket(r)},r.prototype.onPacket=function(t){this.emit("packet",t)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")},Xt}var re,ne,oe,se,ie,ce={};function ae(){return re||(re=1,ce.encode=function(t){var e="";for(var r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e},ce.decode=function(t){for(var e={},r=t.split("&"),n=0,o=r.length;n<o;n++){var s=r[n].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}),ce}function ue(){return oe?ne:(oe=1,ne=function(t,e){var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t})}function he(){if(ie)return se;ie=1;var t,e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),r={},n=0,o=0;function s(t){var r="";do{r=e[t%64]+r,t=Math.floor(t/64)}while(t>0);return r}function i(){var e=s(+new Date);return e!==t?(n=0,t=e):e+"."+s(n++)}for(;o<64;o++)r[e[o]]=o;return i.encode=s,i.decode=function(t){var e=0;for(o=0;o<t.length;o++)e=64*e+r[t.charAt(o)];return e},se=i}var fe,pe,le,de,ye,ge,me,be,ve,Ce={exports:{}},we={exports:{}};function ke(){if(pe)return fe;pe=1;var t=1e3,e=60*t,r=60*e,n=24*r,o=365.25*n;function s(t,e,r){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+r:Math.ceil(t/e)+" "+r+"s"}return fe=function(i,c){c=c||{};var a=typeof i;if("string"===a&&i.length>0)return function(s){if(!((s=String(s)).length>100)){var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(s);if(i){var c=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"days":case"day":case"d":return c*n;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*e;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}(i);if("number"===a&&!1===isNaN(i))return c.long?function(o){return s(o,n,"day")||s(o,r,"hour")||s(o,e,"minute")||s(o,t,"second")||o+" ms"}(i):function(o){return o>=n?Math.round(o/n)+"d":o>=r?Math.round(o/r)+"h":o>=e?Math.round(o/e)+"m":o>=t?Math.round(o/t)+"s":o+"ms"}(i);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))}}function We(){return le||(le=1,function(t,e){function r(t){var r;function o(){if(o.enabled){var t=o,n=+new Date,s=n-(r||n);t.diff=s,t.prev=r,t.curr=n,r=n;for(var i=new Array(arguments.length),c=0;c<i.length;c++)i[c]=arguments[c];i[0]=e.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var a=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(r,n){if("%%"===r)return r;a++;var o=e.formatters[n];if("function"==typeof o){var s=i[a];r=o.call(t,s),i.splice(a,1),a--}return r})),e.formatArgs.call(t,i),(o.log||e.log||console.log.bind(console)).apply(t,i)}}return o.namespace=t,o.enabled=e.enabled(t),o.useColors=e.useColors(),o.color=function(t){var r,n=0;for(r in t)n=(n<<5)-n+t.charCodeAt(r),n|=0;return e.colors[Math.abs(n)%e.colors.length]}(t),o.destroy=n,"function"==typeof e.init&&e.init(o),e.instances.push(o),o}function n(){var t=e.instances.indexOf(this);return-1!==t&&(e.instances.splice(t,1),!0)}(e=t.exports=r.debug=r.default=r).coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){e.enable("")},e.enable=function(t){var r;e.save(t),e.names=[],e.skips=[];var n=("string"==typeof t?t:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(t=n[r].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")));for(r=0;r<e.instances.length;r++){var s=e.instances[r];s.enabled=e.enabled(s.namespace)}},e.enabled=function(t){if("*"===t[t.length-1])return!0;var r,n;for(r=0,n=e.skips.length;r<n;r++)if(e.skips[r].test(t))return!1;for(r=0,n=e.names.length;r<n;r++)if(e.names[r].test(t))return!0;return!1},e.humanize=ke(),e.instances=[],e.names=[],e.skips=[],e.formatte