altair-static 4.1.0 → 4.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/build/dist/100.js +1 -0
  2. package/build/dist/108.js +1 -0
  3. package/build/dist/267.js +1 -0
  4. package/build/dist/379.js +1 -0
  5. package/build/dist/3rdpartylicenses.txt +844 -93
  6. package/build/dist/471.js +1 -0
  7. package/build/dist/527.js +1 -0
  8. package/build/dist/604.js +1 -0
  9. package/build/dist/729.js +1 -0
  10. package/build/dist/747.js +1 -0
  11. package/build/dist/790.js +1 -0
  12. package/build/dist/794.js +1 -0
  13. package/build/dist/873.js +1 -0
  14. package/build/dist/929.js +1 -0
  15. package/build/dist/934.js +1 -0
  16. package/build/dist/assets/i18n/ach-UG.json +157 -153
  17. package/build/dist/assets/i18n/cs-CZ.json +4 -0
  18. package/build/dist/assets/i18n/da-DK.json +4 -0
  19. package/build/dist/assets/i18n/de-DE.json +4 -0
  20. package/build/dist/assets/i18n/default.json +10 -1
  21. package/build/dist/assets/i18n/en-US.json +4 -0
  22. package/build/dist/assets/i18n/es-ES.json +4 -0
  23. package/build/dist/assets/i18n/fi-FI.json +4 -0
  24. package/build/dist/assets/i18n/fr-FR.json +4 -0
  25. package/build/dist/assets/i18n/hu-HU.json +4 -0
  26. package/build/dist/assets/i18n/it-IT.json +4 -0
  27. package/build/dist/assets/i18n/ja-JP.json +4 -0
  28. package/build/dist/assets/i18n/ko-KR.json +4 -0
  29. package/build/dist/assets/i18n/nl-NL.json +4 -0
  30. package/build/dist/assets/i18n/no-NO.json +4 -0
  31. package/build/dist/assets/i18n/pl-PL.json +4 -0
  32. package/build/dist/assets/i18n/pt-BR.json +4 -0
  33. package/build/dist/assets/i18n/pt-PT.json +4 -0
  34. package/build/dist/assets/i18n/ro-RO.json +4 -0
  35. package/build/dist/assets/i18n/ru-RU.json +30 -26
  36. package/build/dist/assets/i18n/sr-SP.json +4 -0
  37. package/build/dist/assets/i18n/sv-SE.json +4 -0
  38. package/build/dist/assets/i18n/tr-TR.json +4 -0
  39. package/build/dist/assets/i18n/uk-UA.json +4 -0
  40. package/build/dist/assets/i18n/vi-VN.json +4 -0
  41. package/build/dist/assets/i18n/zh-CN.json +12 -8
  42. package/build/dist/assets/i18n/zh-TW.json +4 -0
  43. package/build/dist/index.html +3 -3
  44. package/build/dist/main.js +1 -0
  45. package/build/dist/polyfills.js +1 -0
  46. package/build/dist/runtime.js +1 -0
  47. package/build/dist/styles.css +2 -2
  48. package/build/index.d.ts +1 -0
  49. package/build/index.js +4 -1
  50. package/build/index.test.d.ts +1 -0
  51. package/build/index.test.js +17 -6
  52. package/build/utils/get-altair-html.d.ts +1 -0
  53. package/build/utils/get-dist.d.ts +1 -0
  54. package/package.json +4 -4
  55. package/src/index.test.ts +21 -6
  56. package/src/index.ts +6 -3
  57. package/tsconfig.json +1 -0
  58. package/build/dist/108-es2018.js +0 -1
  59. package/build/dist/108-es5.js +0 -1
  60. package/build/dist/283-es2018.js +0 -1
  61. package/build/dist/283-es5.js +0 -1
  62. package/build/dist/379-es2018.js +0 -1
  63. package/build/dist/379-es5.js +0 -1
  64. package/build/dist/471-es2018.js +0 -1
  65. package/build/dist/471-es5.js +0 -1
  66. package/build/dist/527-es2018.js +0 -1
  67. package/build/dist/527-es5.js +0 -1
  68. package/build/dist/604-es2018.js +0 -1
  69. package/build/dist/604-es5.js +0 -1
  70. package/build/dist/672-es2018.js +0 -1
  71. package/build/dist/672-es5.js +0 -1
  72. package/build/dist/709-es2018.js +0 -1
  73. package/build/dist/709-es5.js +0 -1
  74. package/build/dist/729-es2018.js +0 -1
  75. package/build/dist/729-es5.js +0 -1
  76. package/build/dist/747-es2018.js +0 -1
  77. package/build/dist/747-es5.js +0 -1
  78. package/build/dist/790-es2018.js +0 -1
  79. package/build/dist/790-es5.js +0 -1
  80. package/build/dist/794-es2018.js +0 -1
  81. package/build/dist/794-es5.js +0 -1
  82. package/build/dist/866-es2018.js +0 -1
  83. package/build/dist/866-es5.js +0 -1
  84. package/build/dist/873-es2018.js +0 -1
  85. package/build/dist/873-es5.js +0 -1
  86. package/build/dist/934-es2018.js +0 -1
  87. package/build/dist/934-es5.js +0 -1
  88. package/build/dist/main-es2018.js +0 -1
  89. package/build/dist/main-es5.js +0 -1
  90. package/build/dist/polyfills-es2018.js +0 -1
  91. package/build/dist/polyfills-es5.js +0 -1
  92. package/build/dist/runtime-es2018.js +0 -1
  93. package/build/dist/runtime-es5.js +0 -1
  94. package/build/index.js.map +0 -1
  95. package/build/index.test.js.map +0 -1
  96. package/build/utils/get-altair-html.js.map +0 -1
  97. package/build/utils/get-dist.js.map +0 -1
  98. package/scripts/prepare_dist.js +0 -77
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkaltair_app=self.webpackChunkaltair_app||[]).push([[866],{71251:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SubscriptionProvider=void 0,t.SubscriptionProvider=class{constructor(n,t,e){this.subscriptionUrl=n,this.connectionParams=t,this.extraOptions=e}}},50591:function(n,t,e){e.r(t),e.d(t,{ArgumentOutOfRangeError:function(){return it},AsyncSubject:function(){return $},BehaviorSubject:function(){return X},ConnectableObservable:function(){return D},EMPTY:function(){return An},EmptyError:function(){return tt},NEVER:function(){return Ht},NotFoundError:function(){return ot},Notification:function(){return $n},NotificationKind:function(){return Zn},ObjectUnsubscribedError:function(){return G},Observable:function(){return q},ReplaySubject:function(){return Z},Scheduler:function(){return fn},SequenceError:function(){return ut},Subject:function(){return J},Subscriber:function(){return A},Subscription:function(){return v},TimeoutError:function(){return ct},UnsubscriptionError:function(){return d},VirtualAction:function(){return En},VirtualTimeScheduler:function(){return Sn},animationFrame:function(){return xn},animationFrameScheduler:function(){return gn},animationFrames:function(){return Y},asap:function(){return pn},asapScheduler:function(){return dn},async:function(){return yn},asyncScheduler:function(){return vn},bindCallback:function(){return pt},bindNodeCallback:function(){return vt},combineLatest:function(){return xt},concat:function(){return Tt},config:function(){return w},connectable:function(){return Ot},defer:function(){return Pt},empty:function(){return In},firstValueFrom:function(){return rt},forkJoin:function(){return Ct},from:function(){return Dn},fromEvent:function(){return Vt},fromEventPattern:function(){return Rt},generate:function(){return zt},identity:function(){return C},iif:function(){return Dt},interval:function(){return Ut},isObservable:function(){return nt},lastValueFrom:function(){return et},merge:function(){return Yt},never:function(){return Wt},noop:function(){return x},observable:function(){return O},of:function(){return Xn},onErrorResumeNext:function(){return Kt},pairs:function(){return Xt},partition:function(){return $t},pipe:function(){return F},queue:function(){return wn},queueScheduler:function(){return mn},race:function(){return ne},range:function(){return ee},scheduled:function(){return zn},throwError:function(){return Qn},timer:function(){return Mt},using:function(){return re},zip:function(){return ie}});var r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])})(n,t)};function i(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=n}r(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}function o(n,t){var e,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(o){return function(c){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=t.call(n,u)}catch(c){o=[6,c],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}}function u(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,i,o=e.call(n),u=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(c){i={error:c}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return u}function s(n,t){for(var e=0,r=t.length,i=n.length;e<r;e++,i++)n[i]=t[e];return n}function a(n){return this instanceof a?(this.v=n,this):new a(n)}function l(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(n,t||[]),o=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(n){i[n]&&(r[n]=function(t){return new Promise(function(e,r){o.push([n,t,e,r])>1||c(n,t)})})}function c(n,t){try{!function(n){n.value instanceof a?Promise.resolve(n.value.v).then(s,l):f(o[0][2],n)}(i[n](t))}catch(e){f(o[0][3],e)}}function s(n){c("next",n)}function l(n){c("throw",n)}function f(n,t){n(t),o.shift(),o.length&&c(o[0][0],o[0][1])}}function f(n){return"function"==typeof n}function h(n){var t=n(function(n){Error.call(n),n.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var d=h(function(n){return function(t){n(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(n,t){return t+1+") "+n.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function p(n,t){if(n){var e=n.indexOf(t);0<=e&&n.splice(e,1)}}var v=function(){function n(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._teardowns=null}return n.prototype.unsubscribe=function(){var n,t,e,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=u(o),l=a.next();!l.done;l=a.next())l.value.remove(this)}catch(w){n={error:w}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(n)throw n.error}}else o.remove(this);var h=this.initialTeardown;if(f(h))try{h()}catch(w){i=w instanceof d?w.errors:[w]}var p=this._teardowns;if(p){this._teardowns=null;try{for(var v=u(p),y=v.next();!y.done;y=v.next()){var b=y.value;try{m(b)}catch(w){i=null!=i?i:[],w instanceof d?i=s(s([],c(i)),c(w.errors)):i.push(w)}}}catch(w){e={error:w}}finally{try{y&&!y.done&&(r=v.return)&&r.call(v)}finally{if(e)throw e.error}}}if(i)throw new d(i)}},n.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)m(t);else{if(t instanceof n){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}},n.prototype._hasParent=function(n){var t=this._parentage;return t===n||Array.isArray(t)&&t.includes(n)},n.prototype._addParent=function(n){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n},n.prototype._removeParent=function(n){var t=this._parentage;t===n?this._parentage=null:Array.isArray(t)&&p(t,n)},n.prototype.remove=function(t){var e=this._teardowns;e&&p(e,t),t instanceof n&&t._removeParent(this)},n.EMPTY=((t=new n).closed=!0,t),n;var t}(),y=v.EMPTY;function b(n){return n instanceof v||n&&"closed"in n&&f(n.remove)&&f(n.add)&&f(n.unsubscribe)}function m(n){f(n)?n():n.unsubscribe()}var w={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},_={setTimeout:function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=_.delegate;return((null==e?void 0:e.setTimeout)||setTimeout).apply(void 0,s([],c(n)))},clearTimeout:function(n){var t=_.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(n)},delegate:void 0};function g(n){_.setTimeout(function(){var t=w.onUnhandledError;if(!t)throw n;t(n)})}function x(){}var S=E("C",void 0,void 0);function E(n,t,e){return{kind:n,value:t,error:e}}var A=function(n){function t(t){var e=n.call(this)||this;return e.isStopped=!1,t?(e.destination=t,b(t)&&t.add(e)):e.destination=j,e}return i(t,n),t.create=function(n,t,e){return new I(n,t,e)},t.prototype.next=function(n){this.isStopped?P(function(n){return E("N",n,void 0)}(n),this):this._next(n)},t.prototype.error=function(n){this.isStopped?P(function(n){return E("E",void 0,n)}(n),this):(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped?P(S,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(v),I=function(n){function t(t,e,r){var i,o=n.call(this)||this;if(f(t))i=t;else if(t){var u;i=t.next,e=t.error,r=t.complete,o&&w.useDeprecatedNextContext?(u=Object.create(t)).unsubscribe=function(){return o.unsubscribe()}:u=t,i=null==i?void 0:i.bind(u),e=null==e?void 0:e.bind(u),r=null==r?void 0:r.bind(u)}return o.destination={next:i?k(i,o):x,error:k(null!=e?e:T,o),complete:r?k(r,o):x},o}return i(t,n),t}(A);function k(n,t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{n.apply(void 0,s([],c(e)))}catch(i){if(w.useDeprecatedSynchronousErrorHandling){if(!t._syncErrorHack_isSubscribing)throw i;t.__syncError=i}else g(i)}}}function T(n){throw n}function P(n,t){var e=w.onStoppedNotification;e&&_.setTimeout(function(){return e(n,t)})}var j={closed:!0,next:x,error:T,complete:x},O="function"==typeof Symbol&&Symbol.observable||"@@observable";function C(n){return n}function F(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return N(n)}function N(n){return 0===n.length?C:1===n.length?n[0]:function(t){return n.reduce(function(n,t){return t(n)},t)}}var q=function(){function n(n){n&&(this._subscribe=n)}return n.prototype.lift=function(t){var e=new n;return e.source=this,e.operator=t,e},n.prototype.subscribe=function(n,t,e){var r=function(n){return n&&n instanceof A||function(n){return n&&f(n.next)&&f(n.error)&&f(n.complete)}(n)&&b(n)}(n)?n:new I(n,t,e);if(w.useDeprecatedSynchronousErrorHandling)this._deprecatedSyncErrorSubscribe(r);else{var i=this.operator,o=this.source;r.add(i?i.call(r,o):o?this._subscribe(r):this._trySubscribe(r))}return r},n.prototype._deprecatedSyncErrorSubscribe=function(n){var t=n;t._syncErrorHack_isSubscribing=!0;var e=this.operator;if(e)n.add(e.call(n,this.source));else try{n.add(this._subscribe(n))}catch(i){t.__syncError=i}for(var r=t;r;){if("__syncError"in r)try{throw r.__syncError}finally{n.unsubscribe()}r=r.destination}t._syncErrorHack_isSubscribing=!1},n.prototype._trySubscribe=function(n){try{return this._subscribe(n)}catch(t){n.error(t)}},n.prototype.forEach=function(n,t){var e=this;return new(t=V(t))(function(t,r){var i;i=e.subscribe(function(t){try{n(t)}catch(e){r(e),null==i||i.unsubscribe()}},r,t)})},n.prototype._subscribe=function(n){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(n)},n.prototype[O]=function(){return this},n.prototype.pipe=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n.length?N(n)(this):this},n.prototype.toPromise=function(n){var t=this;return new(n=V(n))(function(n,e){var r;t.subscribe(function(n){return r=n},function(n){return e(n)},function(){return n(r)})})},n.create=function(t){return new n(t)},n}();function V(n){var t;return null!==(t=null!=n?n:w.Promise)&&void 0!==t?t:Promise}function L(n){return f(null==n?void 0:n.lift)}function R(n){return function(t){if(L(t))return t.lift(function(t){try{return n(t,this)}catch(e){this.error(e)}});throw new TypeError("Unable to lift unknown Observable type")}}var z=function(n){function t(t,e,r,i,o){var u=n.call(this,t)||this;return u.onFinalize=o,u._next=e?function(n){try{e(n)}catch(r){t.error(r)}}:n.prototype._next,u._error=i?function(n){try{i(n)}catch(e){t.error(e)}finally{this.unsubscribe()}}:n.prototype._error,u._complete=r?function(){try{r()}catch(n){t.error(n)}finally{this.unsubscribe()}}:n.prototype._complete,u}return i(t,n),t.prototype.unsubscribe=function(){var t,e=this.closed;n.prototype.unsubscribe.call(this),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))},t}(A),D=function(n){function t(t,e){var r=n.call(this)||this;return r.source=t,r.subjectFactory=e,r._subject=null,r._refCount=0,r._connection=null,L(t)&&(r.lift=t.lift),r}return i(t,n),t.prototype._subscribe=function(n){return this.getSubject().subscribe(n)},t.prototype.getSubject=function(){var n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var n=this._connection;this._subject=this._connection=null,null==n||n.unsubscribe()},t.prototype.connect=function(){var n=this,t=this._connection;if(!t){t=this._connection=new v;var e=this.getSubject();t.add(this.source.subscribe(new z(e,void 0,function(){n._teardown(),e.complete()},function(t){n._teardown(),e.error(t)},function(){return n._teardown()}))),t.closed&&(this._connection=null,t=v.EMPTY)}return t},t.prototype.refCount=function(){return R(function(n,t){var e=null;n._refCount++;var r=new z(t,void 0,void 0,void 0,function(){if(!n||n._refCount<=0||0<--n._refCount)e=null;else{var r=n._connection,i=e;e=null,r&&(!i||r===i)&&r.unsubscribe(),t.unsubscribe()}});n.subscribe(r),r.closed||(e=n.connect())})(this)},t}(q),M={now:function(){return(M.delegate||performance).now()},delegate:void 0},U={schedule:function(n){var t=requestAnimationFrame,e=cancelAnimationFrame,r=U.delegate;r&&(t=r.requestAnimationFrame,e=r.cancelAnimationFrame);var i=t(function(t){e=void 0,n(t)});return new v(function(){return null==e?void 0:e(i)})},requestAnimationFrame:function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=U.delegate;return((null==e?void 0:e.requestAnimationFrame)||requestAnimationFrame).apply(void 0,s([],c(n)))},cancelAnimationFrame:function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=U.delegate;return((null==e?void 0:e.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,s([],c(n)))},delegate:void 0};function Y(n){return n?H(n):B}function H(n){var t=U.schedule;return new q(function(e){var r=new v,i=n||M,o=i.now(),u=function(c){var s=i.now();e.next({timestamp:n?s:c,elapsed:s-o}),e.closed||r.add(t(u))};return r.add(t(u)),r})}var W,B=H(),G=h(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),J=function(n){function t(){var t=n.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,n),t.prototype.lift=function(n){var t=new K(this,this);return t.operator=n,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new G},t.prototype.next=function(n){var t,e;if(this._throwIfClosed(),!this.isStopped){var r=this.observers.slice();try{for(var i=u(r),o=i.next();!o.done;o=i.next())o.value.next(n)}catch(c){t={error:c}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}}},t.prototype.error=function(n){if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;for(var t=this.observers;t.length;)t.shift().error(n)}},t.prototype.complete=function(){if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;for(var n=this.observers;n.length;)n.shift().complete()}},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var t=this,e=t.observers;return t.hasError||t.isStopped?y:(e.push(n),new v(function(){return p(e,n)}))},t.prototype._checkFinalizedStatuses=function(n){var t=this,e=t.isStopped;t.hasError?n.error(t.thrownError):e&&n.complete()},t.prototype.asObservable=function(){var n=new q;return n.source=this,n},t.create=function(n,t){return new K(n,t)},t}(q),K=function(n){function t(t,e){var r=n.call(this)||this;return r.destination=t,r.source=e,r}return i(t,n),t.prototype.next=function(n){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===e||e.call(t,n)},t.prototype.error=function(n){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===e||e.call(t,n)},t.prototype.complete=function(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)},t.prototype._subscribe=function(n){var t,e;return null!==(e=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==e?e:y},t}(J),X=function(n){function t(t){var e=n.call(this)||this;return e._value=t,e}return i(t,n),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var e=n.prototype._subscribe.call(this,t);return!e.closed&&t.next(this._value),e},t.prototype.getValue=function(){var n=this,t=n._value;if(n.hasError)throw n.thrownError;return this._throwIfClosed(),t},t.prototype.next=function(t){n.prototype.next.call(this,this._value=t)},t}(J),Q={now:function(){return(Q.delegate||Date).now()},delegate:void 0},Z=function(n){function t(t,e,r){void 0===t&&(t=1/0),void 0===e&&(e=1/0),void 0===r&&(r=Q);var i=n.call(this)||this;return i._bufferSize=t,i._windowTime=e,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=e===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,e),i}return i(t,n),t.prototype.next=function(t){var e=this,r=e._buffer,i=e._infiniteTimeWindow,o=e._timestampProvider,u=e._windowTime;e.isStopped||(r.push(t),!i&&r.push(o.now()+u)),this._trimBuffer(),n.prototype.next.call(this,t)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(n),e=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!n.closed;i+=e?1:2)n.next(r[i]);return this._checkFinalizedStatuses(n),t},t.prototype._trimBuffer=function(){var n=this,t=n._bufferSize,e=n._timestampProvider,r=n._buffer,i=n._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var u=e.now(),c=0,s=1;s<r.length&&r[s]<=u;s+=2)c=s;c&&r.splice(0,c+1)}},t}(J),$=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return i(t,n),t.prototype._checkFinalizedStatuses=function(n){var t=this,e=t._hasValue,r=t._value,i=t.isStopped;t.hasError?n.error(t.thrownError):i&&(e&&n.next(r),n.complete())},t.prototype.next=function(n){this.isStopped||(this._value=n,this._hasValue=!0)},t.prototype.complete=function(){var t=this,e=t._hasValue,r=t._value;t._isComplete||(this._isComplete=!0,e&&n.prototype.next.call(this,r),n.prototype.complete.call(this))},t}(J),nn=function(n){function t(t,e){return n.call(this)||this}return i(t,n),t.prototype.schedule=function(n,t){return void 0===t&&(t=0),this},t}(v),tn={setInterval:function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=tn.delegate;return((null==e?void 0:e.setInterval)||setInterval).apply(void 0,s([],c(n)))},clearInterval:function(n){var t=tn.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(n)},delegate:void 0},en=function(n){function t(t,e){var r=n.call(this,t,e)||this;return r.scheduler=t,r.work=e,r.pending=!1,r}return i(t,n),t.prototype.schedule=function(n,t){if(void 0===t&&(t=0),this.closed)return this;this.state=n;var e=this.id,r=this.scheduler;return null!=e&&(this.id=this.recycleAsyncId(r,e,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(n,t,e){return void 0===e&&(e=0),tn.setInterval(n.flush.bind(n,this),e)},t.prototype.recycleAsyncId=function(n,t,e){if(void 0===e&&(e=0),null!=e&&this.delay===e&&!1===this.pending)return t;tn.clearInterval(t)},t.prototype.execute=function(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var e=this._execute(n,t);if(e)return e;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(n,t){var e,r=!1;try{this.work(n)}catch(i){r=!0,e=!!i&&i||new Error(i)}if(r)return this.unsubscribe(),e},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,e=this.scheduler,r=e.actions;this.work=this.state=this.scheduler=null,this.pending=!1,p(r,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,n.prototype.unsubscribe.call(this)}},t}(nn),rn=1,on={};function un(n){return n in on&&(delete on[n],!0)}var cn=function(n){var t=rn++;return on[t]=!0,W||(W=Promise.resolve()),W.then(function(){return un(t)&&n()}),t},sn=function(n){un(n)},an={setImmediate:function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=an.delegate;return((null==e?void 0:e.setImmediate)||cn).apply(void 0,s([],c(n)))},clearImmediate:function(n){var t=an.delegate;return((null==t?void 0:t.clearImmediate)||sn)(n)},delegate:void 0},ln=function(n){function t(t,e){var r=n.call(this,t,e)||this;return r.scheduler=t,r.work=e,r}return i(t,n),t.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),null!==r&&r>0?n.prototype.requestAsyncId.call(this,t,e,r):(t.actions.push(this),t._scheduled||(t._scheduled=an.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,e,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return n.prototype.recycleAsyncId.call(this,t,e,r);0===t.actions.length&&(an.clearImmediate(e),t._scheduled=void 0)},t}(en),fn=function(){function n(t,e){void 0===e&&(e=n.now),this.schedulerActionCtor=t,this.now=e}return n.prototype.schedule=function(n,t,e){return void 0===t&&(t=0),new this.schedulerActionCtor(this,n).schedule(e,t)},n.now=Q.now,n}(),hn=function(n){function t(t,e){void 0===e&&(e=fn.now);var r=n.call(this,t,e)||this;return r.actions=[],r._active=!1,r._scheduled=void 0,r}return i(t,n),t.prototype.flush=function(n){var t=this.actions;if(this._active)t.push(n);else{var e;this._active=!0;do{if(e=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,e){for(;n=t.shift();)n.unsubscribe();throw e}}},t}(fn),dn=new(function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return i(t,n),t.prototype.flush=function(n){this._active=!0,this._scheduled=void 0;var t,e=this.actions,r=-1;n=n||e.shift();var i=e.length;do{if(t=n.execute(n.state,n.delay))break}while(++r<i&&(n=e.shift()));if(this._active=!1,t){for(;++r<i&&(n=e.shift());)n.unsubscribe();throw t}},t}(hn))(ln),pn=dn,vn=new hn(en),yn=vn,bn=function(n){function t(t,e){var r=n.call(this,t,e)||this;return r.scheduler=t,r.work=e,r}return i(t,n),t.prototype.schedule=function(t,e){return void 0===e&&(e=0),e>0?n.prototype.schedule.call(this,t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,e){return e>0||this.closed?n.prototype.execute.call(this,t,e):this._execute(t,e)},t.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?n.prototype.requestAsyncId.call(this,t,e,r):t.flush(this)},t}(en),mn=new(function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return i(t,n),t}(hn))(bn),wn=mn,_n=function(n){function t(t,e){var r=n.call(this,t,e)||this;return r.scheduler=t,r.work=e,r}return i(t,n),t.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),null!==r&&r>0?n.prototype.requestAsyncId.call(this,t,e,r):(t.actions.push(this),t._scheduled||(t._scheduled=U.requestAnimationFrame(function(){return t.flush(void 0)})))},t.prototype.recycleAsyncId=function(t,e,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return n.prototype.recycleAsyncId.call(this,t,e,r);0===t.actions.length&&(U.cancelAnimationFrame(e),t._scheduled=void 0)},t}(en),gn=new(function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return i(t,n),t.prototype.flush=function(n){this._active=!0,this._scheduled=void 0;var t,e=this.actions,r=-1;n=n||e.shift();var i=e.length;do{if(t=n.execute(n.state,n.delay))break}while(++r<i&&(n=e.shift()));if(this._active=!1,t){for(;++r<i&&(n=e.shift());)n.unsubscribe();throw t}},t}(hn))(_n),xn=gn,Sn=function(n){function t(t,e){void 0===t&&(t=En),void 0===e&&(e=1/0);var r=n.call(this,t,function(){return r.frame})||this;return r.maxFrames=e,r.frame=0,r.index=-1,r}return i(t,n),t.prototype.flush=function(){for(var n,t,e=this.actions,r=this.maxFrames;(t=e[0])&&t.delay<=r&&(e.shift(),this.frame=t.delay,!(n=t.execute(t.state,t.delay))););if(n){for(;t=e.shift();)t.unsubscribe();throw n}},t.frameTimeFactor=10,t}(hn),En=function(n){function t(t,e,r){void 0===r&&(r=t.index+=1);var i=n.call(this,t,e)||this;return i.scheduler=t,i.work=e,i.index=r,i.active=!0,i.index=t.index=r,i}return i(t,n),t.prototype.schedule=function(e,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return n.prototype.schedule.call(this,e,r);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(e,r)}return v.EMPTY},t.prototype.requestAsyncId=function(n,e,r){void 0===r&&(r=0),this.delay=n.frame+r;var i=n.actions;return i.push(this),i.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(n,t,e){void 0===e&&(e=0)},t.prototype._execute=function(t,e){if(!0===this.active)return n.prototype._execute.call(this,t,e)},t.sortActions=function(n,t){return n.delay===t.delay?n.index===t.index?0:n.index>t.index?1:-1:n.delay>t.delay?1:-1},t}(en),An=new q(function(n){return n.complete()});function In(n){return n?function(n){return new q(function(t){return n.schedule(function(){return t.complete()})})}(n):An}function kn(n,t){return new q(function(e){var r=0;return t.schedule(function(){r===n.length?e.complete():(e.next(n[r++]),e.closed||this.schedule())})})}var Tn=function(n){return n&&"number"==typeof n.length&&"function"!=typeof n};function Pn(n){return f(null==n?void 0:n.then)}var jn="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function On(n,t){return new q(function(e){var r;return e.add(t.schedule(function(){r=n[jn](),function(n,t,e,r){void 0===r&&(r=0);var i=t.schedule(function(){try{e.call(this)}catch(t){n.error(t)}},r);n.add(i)}(e,t,function(){var n=r.next(),t=n.value;n.done?e.complete():(e.next(t),this.schedule())})})),function(){return f(null==r?void 0:r.return)&&r.return()}})}function Cn(n,t){if(!n)throw new Error("Iterable cannot be null");return new q(function(e){var r=new v;return r.add(t.schedule(function(){var i=n[Symbol.asyncIterator]();r.add(t.schedule(function(){var n=this;i.next().then(function(t){t.done?e.complete():(e.next(t.value),n.schedule())})}))})),r})}function Fn(n){return f(n[O])}function Nn(n){return f(null==n?void 0:n[jn])}function qn(n){return Symbol.asyncIterator&&f(null==n?void 0:n[Symbol.asyncIterator])}function Vn(n){return new TypeError("You provided "+(null!==n&&"object"==typeof n?"an invalid object":"'"+n+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Ln(n){return l(this,arguments,function(){var t,e,r;return o(this,function(i){switch(i.label){case 0:t=n.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,a(t.read())];case 3:return e=i.sent(),r=e.value,e.done?[4,a(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,a(r)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function Rn(n){return f(null==n?void 0:n.getReader)}function zn(n,t){if(null!=n){if(Fn(n))return function(n,t){return new q(function(e){var r=new v;return r.add(t.schedule(function(){var i=n[O]();r.add(i.subscribe({next:function(n){r.add(t.schedule(function(){return e.next(n)}))},error:function(n){r.add(t.schedule(function(){return e.error(n)}))},complete:function(){r.add(t.schedule(function(){return e.complete()}))}}))})),r})}(n,t);if(Tn(n))return kn(n,t);if(Pn(n))return function(n,t){return new q(function(e){return t.schedule(function(){return n.then(function(n){e.add(t.schedule(function(){e.next(n),e.add(t.schedule(function(){return e.complete()}))}))},function(n){e.add(t.schedule(function(){return e.error(n)}))})})})}(n,t);if(qn(n))return Cn(n,t);if(Nn(n))return On(n,t);if(Rn(n))return function(n,t){return Cn(Ln(n),t)}(n,t)}throw Vn(n)}function Dn(n,t){return t?zn(n,t):Mn(n)}function Mn(n){if(n instanceof q)return n;if(null!=n){if(Fn(n))return function(n){return new q(function(t){var e=n[O]();if(f(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(Tn(n))return Un(n);if(Pn(n))return function(n){return new q(function(t){n.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,g)})}(n);if(qn(n))return Yn(n);if(Nn(n))return function(n){return new q(function(t){var e,r;try{for(var i=u(n),o=i.next();!o.done;o=i.next())if(t.next(o.value),t.closed)return}catch(c){e={error:c}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}t.complete()})}(n);if(Rn(n))return function(n){return Yn(Ln(n))}(n)}throw Vn(n)}function Un(n){return new q(function(t){for(var e=0;e<n.length&&!t.closed;e++)t.next(n[e]);t.complete()})}function Yn(n){return new q(function(t){(function(n,t){var e,r,i,c;return function(n,t,e,r){return new(e||(e=Promise))(function(i,o){function u(n){try{s(r.next(n))}catch(t){o(t)}}function c(n){try{s(r.throw(n))}catch(t){o(t)}}function s(n){n.done?i(n.value):function(n){return n instanceof e?n:new e(function(t){t(n)})}(n.value).then(u,c)}s((r=r.apply(n,t||[])).next())})}(this,void 0,void 0,function(){var s;return o(this,function(o){switch(o.label){case 0:o.trys.push([0,5,6,11]),e=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n=u(n),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise(function(r,i){!function(n,t,e,r){Promise.resolve(r).then(function(t){n({value:t,done:e})},t)}(r,i,(t=n[e](t)).done,t.value)})}}}(n),o.label=1;case 1:return[4,e.next()];case 2:if((r=o.sent()).done)return[3,4];if(t.next(r.value),t.closed)return[2];o.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=o.sent(),i={error:s},[3,11];case 6:return o.trys.push([6,,9,10]),r&&!r.done&&(c=e.return)?[4,c.call(e)]:[3,8];case 7:o.sent(),o.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(n,t).catch(function(n){return t.error(n)})})}function Hn(n,t){return t?kn(n,t):Un(n)}function Wn(n){return n&&f(n.schedule)}function Bn(n){return n[n.length-1]}function Gn(n){return f(Bn(n))?n.pop():void 0}function Jn(n){return Wn(Bn(n))?n.pop():void 0}function Kn(n,t){return"number"==typeof Bn(n)?n.pop():t}function Xn(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=Jn(n);return e?kn(n,e):Hn(n)}function Qn(n,t){var e=f(n)?n:function(){return n},r=function(n){return n.error(e())};return new q(t?function(n){return t.schedule(r,0,n)}:r)}var Zn=(()=>{return(n=Zn||(Zn={})).NEXT="N",n.ERROR="E",n.COMPLETE="C",Zn;var n})(),$n=function(){function n(n,t,e){this.kind=n,this.value=t,this.error=e,this.hasValue="N"===n}return n.prototype.observe=function(n){return function(n,t){var e,r,i,o=n.kind,u=n.value,c=n.error;if("string"!=typeof o)throw new TypeError('Invalid notification, missing "kind"');"N"===o?null===(e=t.next)||void 0===e||e.call(t,u):"E"===o?null===(r=t.error)||void 0===r||r.call(t,c):null===(i=t.complete)||void 0===i||i.call(t)}(this,n)},n.prototype.do=function(n,t,e){var r=this,i=r.kind,o=r.error;return"N"===i?null==n?void 0:n(r.value):"E"===i?null==t?void 0:t(o):null==e?void 0:e()},n.prototype.accept=function(n,t,e){var r;return f(null===(r=n)||void 0===r?void 0:r.next)?this.observe(n):this.do(n,t,e)},n.prototype.toObservable=function(){var n=this,t=n.kind,e=n.error,r="N"===t?Xn(n.value):"E"===t?Qn(function(){return e}):"C"===t?An:0;if(!r)throw new TypeError("Unexpected notification kind "+t);return r},n.createNext=function(t){return new n("N",t)},n.createError=function(t){return new n("E",void 0,t)},n.createComplete=function(){return n.completeNotification},n.completeNotification=new n("C"),n}();function nt(n){return!!n&&(n instanceof q||f(n.lift)&&f(n.subscribe))}var tt=h(function(n){return function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}});function et(n,t){var e="object"==typeof t;return new Promise(function(r,i){var o,u=!1;n.subscribe({next:function(n){o=n,u=!0},error:i,complete:function(){u?r(o):e?r(t.defaultValue):i(new tt)}})})}function rt(n,t){var e="object"==typeof t;return new Promise(function(r,i){var o=new I({next:function(n){r(n),o.unsubscribe()},error:i,complete:function(){e?r(t.defaultValue):i(new tt)}});n.subscribe(o)})}var it=h(function(n){return function(){n(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}),ot=h(function(n){return function(t){n(this),this.name="NotFoundError",this.message=t}}),ut=h(function(n){return function(t){n(this),this.name="SequenceError",this.message=t}}),ct=h(function(n){return function(t){void 0===t&&(t=null),n(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function st(n,t){return void 0===t&&(t=0),R(function(e,r){r.add(n.schedule(function(){return e.subscribe(r)},t))})}function at(n,t){return R(function(e,r){var i=0;e.subscribe(new z(r,function(e){r.next(n.call(t,e,i++))}))})}var lt=Array.isArray;function ft(n){return at(function(t){return function(n,t){return lt(t)?n.apply(void 0,s([],c(t))):n(t)}(n,t)})}function ht(n,t){return void 0===t&&(t=0),R(function(e,r){e.subscribe(new z(r,function(e){return r.add(n.schedule(function(){return r.next(e)},t))},function(){return r.add(n.schedule(function(){return r.complete()},t))},function(e){return r.add(n.schedule(function(){return r.error(e)},t))}))})}function dt(n,t,e,r){if(e){if(!Wn(e))return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return dt(n,t,r).apply(this,i).pipe(ft(e))};r=e}return r?function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return dt(n,t).apply(this,e).pipe(st(r),ht(r))}:function(){for(var e=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=new $,u=!0;return new q(function(i){var a=o.subscribe(i);if(u){u=!1;var l=!1,f=!1;t.apply(e,s(s([],c(r)),[function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(n){var r=t.shift();if(null!=r)return void o.error(r)}o.next(1<t.length?t:t[0]),f=!0,l&&o.complete()}])),f&&o.complete(),l=!0}return a})}}function pt(n,t,e){return dt(!1,n,t,e)}function vt(n,t,e){return dt(!0,n,t,e)}var yt=Array.isArray,bt=Object.getPrototypeOf,mt=Object.prototype,wt=Object.keys;function _t(n){if(1===n.length){var t=n[0];if(yt(t))return{args:t,keys:null};if(function(n){return n&&"object"==typeof n&&bt(n)===mt}(t)){var e=wt(t);return{args:e.map(function(n){return t[n]}),keys:e}}}return{args:n,keys:null}}function gt(n,t){return n.reduce(function(n,e,r){return n[e]=t[r],n},{})}function xt(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=Jn(n),r=Gn(n),i=_t(n),o=i.args,u=i.keys;if(0===o.length)return Dn([],e);var c=new q(St(o,e,u?function(n){return gt(u,n)}:C));return r?c.pipe(ft(r)):c}function St(n,t,e){return void 0===e&&(e=C),function(r){Et(t,function(){for(var i=n.length,o=new Array(i),u=i,c=i,s=function(i){Et(t,function(){var s=Dn(n[i],t),a=!1;s.subscribe(new z(r,function(n){o[i]=n,a||(a=!0,c--),c||r.next(e(o.slice()))},function(){--u||r.complete()}))},r)},a=0;a<i;a++)s(a)},r)}}function Et(n,t,e){n?e.add(n.schedule(t)):t()}function At(n,t,e){return void 0===e&&(e=1/0),f(t)?At(function(e,r){return at(function(n,i){return t(e,n,r,i)})(Mn(n(e,r)))},e):("number"==typeof t&&(e=t),R(function(t,r){return function(n,t,e,r,i,o,u,c){var s=[],a=0,l=0,f=!1,h=function(){f&&!s.length&&!a&&t.complete()},d=function(n){return a<r?p(n):s.push(n)},p=function(n){a++;var i=!1;Mn(e(n,l++)).subscribe(new z(t,function(n){t.next(n)},function(){i=!0},void 0,function(){if(i)try{a--;for(;s.length&&a<r;)n=void 0,n=s.shift(),p(n);h()}catch(n){t.error(n)}var n}))};return n.subscribe(new z(t,d,function(){f=!0,h()})),function(){}}(t,r,n,e)}))}function It(n){return void 0===n&&(n=1/0),At(C,n)}function kt(){return It(1)}function Tt(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return kt()(Hn(n,Jn(n)))}function Pt(n){return new q(function(t){Mn(n()).subscribe(t)})}var jt={connector:function(){return new J},resetOnDisconnect:!0};function Ot(n,t){void 0===t&&(t=jt);var e=null,r=t.connector,i=t.resetOnDisconnect,o=void 0===i||i,u=r(),c=new q(function(n){return u.subscribe(n)});return c.connect=function(){return(!e||e.closed)&&(e=Pt(function(){return n}).subscribe(u),o&&e.add(function(){return u=r()})),e},c}function Ct(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=Gn(n),r=_t(n),i=r.args,o=r.keys,u=new q(function(n){var t=i.length;if(t)for(var e=new Array(t),r=t,u=t,c=function(t){var c=!1;Mn(i[t]).subscribe(new z(n,function(n){c||(c=!0,u--),e[t]=n},function(){(!--r||!c)&&(u||n.next(o?gt(o,e):e),n.complete())}))},s=0;s<t;s++)c(s);else n.complete()});return e?u.pipe(ft(e)):u}var Ft=["addListener","removeListener"],Nt=["addEventListener","removeEventListener"],qt=["on","off"];function Vt(n,t,e,r){if(f(e)&&(r=e,e=void 0),r)return Vt(n,t,e).pipe(ft(r));var i=c(function(n){return f(n.addEventListener)&&f(n.removeEventListener)}(n)?Nt.map(function(r){return function(i){return n[r](t,i,e)}}):function(n){return f(n.addListener)&&f(n.removeListener)}(n)?Ft.map(Lt(n,t)):function(n){return f(n.on)&&f(n.off)}(n)?qt.map(Lt(n,t)):[],2),o=i[0],u=i[1];if(!o&&Tn(n))return At(function(n){return Vt(n,t,e)})(Hn(n));if(!o)throw new TypeError("Invalid event target");return new q(function(n){var t=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.next(1<t.length?t:t[0])};return o(t),function(){return u(t)}})}function Lt(n,t){return function(e){return function(r){return n[e](t,r)}}}function Rt(n,t,e){return e?Rt(n,t).pipe(ft(e)):new q(function(e){var r=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return e.next(1===n.length?n[0]:n)},i=n(r);return f(t)?function(){return t(r,i)}:void 0})}function zt(n,t,e,r,i){var u,c,s,a;function l(){var n;return o(this,function(r){switch(r.label){case 0:n=a,r.label=1;case 1:return!t||t(n)?[4,s(n)]:[3,4];case 2:r.sent(),r.label=3;case 3:return n=e(n),[3,1];case 4:return[2]}})}return 1===arguments.length?(a=(u=n).initialState,t=u.condition,e=u.iterate,s=void 0===(c=u.resultSelector)?C:c,i=u.scheduler):(a=n,!r||Wn(r)?(s=C,i=r):s=r),Pt(i?function(){return On(l(),i)}:l)}function Dt(n,t,e){return Pt(function(){return n()?t:e})}function Mt(n,t,e){void 0===n&&(n=0),void 0===e&&(e=yn);var r=-1;return null!=t&&(Wn(t)?e=t:r=t),new q(function(t){var i=function(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;i<0&&(i=0);var o=0;return e.schedule(function(){t.closed||(t.next(o++),0<=r?this.schedule(void 0,r):t.complete())},i)})}function Ut(n,t){return void 0===n&&(n=0),void 0===t&&(t=vn),n<0&&(n=0),Mt(n,n,t)}function Yt(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=Jn(n),r=Kn(n,1/0),i=n;return i.length?1===i.length?Mn(i[0]):It(r)(Hn(i,e)):An}var Ht=new q(x);function Wt(){return Ht}var Bt=Array.isArray;function Gt(n){return 1===n.length&&Bt(n[0])?n[0]:n}function Jt(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=Gt(n);return R(function(n,t){var r=s([n],c(e)),i=function(){if(!t.closed)if(r.length>0){var n=void 0;try{n=Mn(r.shift())}catch(o){return void i()}var e=new z(t,void 0,x,x);t.add(n.subscribe(e)),e.add(i)}else t.complete()};i()})}function Kt(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return Jt(Gt(n))(An)}function Xt(n,t){return Dn(Object.entries(n),t)}function Qt(n,t){return function(e,r){return!n.call(t,e,r)}}function Zt(n,t){return R(function(e,r){var i=0;e.subscribe(new z(r,function(e){return n.call(t,e,i++)&&r.next(e)}))})}function $t(n,t,e){return[Zt(t,e)(Mn(n)),Zt(Qt(t,e))(Mn(n))]}function ne(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===(n=Gt(n)).length?Mn(n[0]):new q(te(n))}function te(n){return function(t){for(var e=[],r=function(r){e.push(Mn(n[r]).subscribe(new z(t,function(n){if(e){for(var i=0;i<e.length;i++)i!==r&&e[i].unsubscribe();e=null}t.next(n)})))},i=0;e&&!t.closed&&i<n.length;i++)r(i)}}function ee(n,t,e){if(null==t&&(t=n,n=0),t<=0)return An;var r=t+n;return new q(e?function(t){var i=n;return e.schedule(function(){i<r?(t.next(i++),this.schedule()):t.complete()})}:function(t){for(var e=n;e<r&&!t.closed;)t.next(e++);t.complete()})}function re(n,t){return new q(function(e){var r=n(),i=t(r);return(i?Mn(i):An).subscribe(e),function(){r&&r.unsubscribe()}})}function ie(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=Gn(n),r=Gt(n);return r.length?new q(function(n){var t=r.map(function(){return[]}),i=r.map(function(){return!1});n.add(function(){t=i=null});for(var o=function(o){Mn(r[o]).subscribe(new z(n,function(r){if(t[o].push(r),t.every(function(n){return n.length})){var u=t.map(function(n){return n.shift()});n.next(e?e.apply(void 0,s([],c(u))):u),t.some(function(n,t){return!n.length&&i[t]})&&n.complete()}},function(){i[o]=!0,!t[o].length&&n.complete()}))},u=0;!n.closed&&u<r.length;u++)o(u);return function(){t=i=null}}):An}}}]);
@@ -1 +0,0 @@
1
- !function(){"use strict";(self.webpackChunkaltair_app=self.webpackChunkaltair_app||[]).push([[866],{71251:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SubscriptionProvider=void 0,t.SubscriptionProvider=function(){return function n(t,r,e){!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.subscriptionUrl=t,this.connectionParams=r,this.extraOptions=e}}()},50591:function(n,t,r){r.r(t),r.d(t,{ArgumentOutOfRangeError:function(){return ot},AsyncSubject:function(){return $},BehaviorSubject:function(){return X},ConnectableObservable:function(){return D},EMPTY:function(){return An},EmptyError:function(){return rt},NEVER:function(){return Wt},NotFoundError:function(){return ut},Notification:function(){return nt},NotificationKind:function(){return $n},ObjectUnsubscribedError:function(){return G},Observable:function(){return q},ReplaySubject:function(){return Z},Scheduler:function(){return ln},SequenceError:function(){return ct},Subject:function(){return J},Subscriber:function(){return A},Subscription:function(){return v},TimeoutError:function(){return st},UnsubscriptionError:function(){return d},VirtualAction:function(){return En},VirtualTimeScheduler:function(){return Sn},animationFrame:function(){return xn},animationFrameScheduler:function(){return gn},animationFrames:function(){return Y},asap:function(){return pn},asapScheduler:function(){return dn},async:function(){return yn},asyncScheduler:function(){return vn},bindCallback:function(){return vt},bindNodeCallback:function(){return yt},combineLatest:function(){return St},concat:function(){return Pt},config:function(){return w},connectable:function(){return Ct},defer:function(){return jt},empty:function(){return In},firstValueFrom:function(){return it},forkJoin:function(){return Ft},from:function(){return Dn},fromEvent:function(){return Lt},fromEventPattern:function(){return zt},generate:function(){return Dt},identity:function(){return C},iif:function(){return Mt},interval:function(){return Yt},isObservable:function(){return tt},lastValueFrom:function(){return et},merge:function(){return Ht},never:function(){return Bt},noop:function(){return x},observable:function(){return O},of:function(){return Xn},onErrorResumeNext:function(){return Xt},pairs:function(){return Qt},partition:function(){return nr},pipe:function(){return F},queue:function(){return wn},queueScheduler:function(){return mn},race:function(){return tr},range:function(){return er},scheduled:function(){return zn},throwError:function(){return Qn},timer:function(){return Ut},using:function(){return ir},zip:function(){return or}});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])})(n,t)};function i(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function o(n,t){var r,e,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(o){return function(c){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,e&&(i=2&o[0]?e.return:o[0]?e.throw||((i=e.return)&&i.call(e),0):e.next)&&!(i=i.call(e,o[1])).done)return i;switch(e=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,e=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=t.call(n,u)}catch(c){o=[6,c],e=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}}function u(n){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&n[t],e=0;if(r)return r.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&e>=n.length&&(n=void 0),{value:n&&n[e++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(n,t){var r="function"==typeof Symbol&&n[Symbol.iterator];if(!r)return n;var e,i,o=r.call(n),u=[];try{for(;(void 0===t||t-- >0)&&!(e=o.next()).done;)u.push(e.value)}catch(c){i={error:c}}finally{try{e&&!e.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return u}function s(n,t){for(var r=0,e=t.length,i=n.length;r<e;r++,i++)n[i]=t[r];return n}function a(n){return this instanceof a?(this.v=n,this):new a(n)}function f(n,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=r.apply(n,t||[]),o=[];return e={},u("next"),u("throw"),u("return"),e[Symbol.asyncIterator]=function(){return this},e;function u(n){i[n]&&(e[n]=function(t){return new Promise(function(r,e){o.push([n,t,r,e])>1||c(n,t)})})}function c(n,t){try{!function(n){n.value instanceof a?Promise.resolve(n.value.v).then(s,f):l(o[0][2],n)}(i[n](t))}catch(r){l(o[0][3],r)}}function s(n){c("next",n)}function f(n){c("throw",n)}function l(n,t){n(t),o.shift(),o.length&&c(o[0][0],o[0][1])}}function l(n){return"function"==typeof n}function h(n){var t=n(function(n){Error.call(n),n.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var d=h(function(n){return function(t){n(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(n,t){return t+1+") "+n.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function p(n,t){if(n){var r=n.indexOf(t);0<=r&&n.splice(r,1)}}var v=function(){function n(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._teardowns=null}return n.prototype.unsubscribe=function(){var n,t,r,e,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=u(o),f=a.next();!f.done;f=a.next())f.value.remove(this)}catch(w){n={error:w}}finally{try{f&&!f.done&&(t=a.return)&&t.call(a)}finally{if(n)throw n.error}}else o.remove(this);var h=this.initialTeardown;if(l(h))try{h()}catch(w){i=w instanceof d?w.errors:[w]}var p=this._teardowns;if(p){this._teardowns=null;try{for(var v=u(p),y=v.next();!y.done;y=v.next()){var b=y.value;try{m(b)}catch(w){i=null!=i?i:[],w instanceof d?i=s(s([],c(i)),c(w.errors)):i.push(w)}}}catch(w){r={error:w}}finally{try{y&&!y.done&&(e=v.return)&&e.call(v)}finally{if(r)throw r.error}}}if(i)throw new d(i)}},n.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)m(t);else{if(t instanceof n){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(r=this._teardowns)&&void 0!==r?r:[]).push(t)}},n.prototype._hasParent=function(n){var t=this._parentage;return t===n||Array.isArray(t)&&t.includes(n)},n.prototype._addParent=function(n){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n},n.prototype._removeParent=function(n){var t=this._parentage;t===n?this._parentage=null:Array.isArray(t)&&p(t,n)},n.prototype.remove=function(t){var r=this._teardowns;r&&p(r,t),t instanceof n&&t._removeParent(this)},n.EMPTY=((t=new n).closed=!0,t),n;var t}(),y=v.EMPTY;function b(n){return n instanceof v||n&&"closed"in n&&l(n.remove)&&l(n.add)&&l(n.unsubscribe)}function m(n){l(n)?n():n.unsubscribe()}var w={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},_={setTimeout:function(n){function t(){return n.apply(this,arguments)}return t.toString=function(){return n.toString()},t}(function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=_.delegate;return((null==r?void 0:r.setTimeout)||setTimeout).apply(void 0,s([],c(n)))}),clearTimeout:function(n){function t(t){return n.apply(this,arguments)}return t.toString=function(){return n.toString()},t}(function(n){var t=_.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(n)}),delegate:void 0};function g(n){_.setTimeout(function(){var t=w.onUnhandledError;if(!t)throw n;t(n)})}function x(){}var S=E("C",void 0,void 0);function E(n,t,r){return{kind:n,value:t,error:r}}var A=function(n){function t(t){var r=n.call(this)||this;return r.isStopped=!1,t?(r.destination=t,b(t)&&t.add(r)):r.destination=j,r}return i(t,n),t.create=function(n,t,r){return new I(n,t,r)},t.prototype.next=function(n){this.isStopped?P(function(n){return E("N",n,void 0)}(n),this):this._next(n)},t.prototype.error=function(n){this.isStopped?P(function(n){return E("E",void 0,n)}(n),this):(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped?P(S,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(v),I=function(n){function t(t,r,e){var i,o=n.call(this)||this;if(l(t))i=t;else if(t){var u;i=t.next,r=t.error,e=t.complete,o&&w.useDeprecatedNextContext?(u=Object.create(t)).unsubscribe=function(){return o.unsubscribe()}:u=t,i=null==i?void 0:i.bind(u),r=null==r?void 0:r.bind(u),e=null==e?void 0:e.bind(u)}return o.destination={next:i?k(i,o):x,error:k(null!=r?r:T,o),complete:e?k(e,o):x},o}return i(t,n),t}(A);function k(n,t){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];try{n.apply(void 0,s([],c(r)))}catch(i){if(w.useDeprecatedSynchronousErrorHandling){if(!t._syncErrorHack_isSubscribing)throw i;t.__syncError=i}else g(i)}}}function T(n){throw n}function P(n,t){var r=w.onStoppedNotification;r&&_.setTimeout(function(){return r(n,t)})}var j={closed:!0,next:x,error:T,complete:x},O="function"==typeof Symbol&&Symbol.observable||"@@observable";function C(n){return n}function F(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return N(n)}function N(n){return 0===n.length?C:1===n.length?n[0]:function(t){return n.reduce(function(n,t){return t(n)},t)}}var q=function(){function n(n){n&&(this._subscribe=n)}return n.prototype.lift=function(t){var r=new n;return r.source=this,r.operator=t,r},n.prototype.subscribe=function(n,t,r){var e=function(n){return n&&n instanceof A||function(n){return n&&l(n.next)&&l(n.error)&&l(n.complete)}(n)&&b(n)}(n)?n:new I(n,t,r);if(w.useDeprecatedSynchronousErrorHandling)this._deprecatedSyncErrorSubscribe(e);else{var i=this.operator,o=this.source;e.add(i?i.call(e,o):o?this._subscribe(e):this._trySubscribe(e))}return e},n.prototype._deprecatedSyncErrorSubscribe=function(n){var t=n;t._syncErrorHack_isSubscribing=!0;var r=this.operator;if(r)n.add(r.call(n,this.source));else try{n.add(this._subscribe(n))}catch(i){t.__syncError=i}for(var e=t;e;){if("__syncError"in e)try{throw e.__syncError}finally{n.unsubscribe()}e=e.destination}t._syncErrorHack_isSubscribing=!1},n.prototype._trySubscribe=function(n){try{return this._subscribe(n)}catch(t){n.error(t)}},n.prototype.forEach=function(n,t){var r=this;return new(t=V(t))(function(t,e){var i;i=r.subscribe(function(t){try{n(t)}catch(r){e(r),null==i||i.unsubscribe()}},e,t)})},n.prototype._subscribe=function(n){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(n)},n.prototype[O]=function(){return this},n.prototype.pipe=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n.length?N(n)(this):this},n.prototype.toPromise=function(n){var t=this;return new(n=V(n))(function(n,r){var e;t.subscribe(function(n){return e=n},function(n){return r(n)},function(){return n(e)})})},n.create=function(t){return new n(t)},n}();function V(n){var t;return null!==(t=null!=n?n:w.Promise)&&void 0!==t?t:Promise}function L(n){return l(null==n?void 0:n.lift)}function R(n){return function(t){if(L(t))return t.lift(function(t){try{return n(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}var z=function(n){function t(t,r,e,i,o){var u=n.call(this,t)||this;return u.onFinalize=o,u._next=r?function(n){try{r(n)}catch(e){t.error(e)}}:n.prototype._next,u._error=i?function(n){try{i(n)}catch(r){t.error(r)}finally{this.unsubscribe()}}:n.prototype._error,u._complete=e?function(){try{e()}catch(n){t.error(n)}finally{this.unsubscribe()}}:n.prototype._complete,u}return i(t,n),t.prototype.unsubscribe=function(){var t,r=this.closed;n.prototype.unsubscribe.call(this),!r&&(null===(t=this.onFinalize)||void 0===t||t.call(this))},t}(A),D=function(n){function t(t,r){var e=n.call(this)||this;return e.source=t,e.subjectFactory=r,e._subject=null,e._refCount=0,e._connection=null,L(t)&&(e.lift=t.lift),e}return i(t,n),t.prototype._subscribe=function(n){return this.getSubject().subscribe(n)},t.prototype.getSubject=function(){var n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var n=this._connection;this._subject=this._connection=null,null==n||n.unsubscribe()},t.prototype.connect=function(){var n=this,t=this._connection;if(!t){t=this._connection=new v;var r=this.getSubject();t.add(this.source.subscribe(new z(r,void 0,function(){n._teardown(),r.complete()},function(t){n._teardown(),r.error(t)},function(){return n._teardown()}))),t.closed&&(this._connection=null,t=v.EMPTY)}return t},t.prototype.refCount=function(){return R(function(n,t){var r=null;n._refCount++;var e=new z(t,void 0,void 0,void 0,function(){if(!n||n._refCount<=0||0<--n._refCount)r=null;else{var e=n._connection,i=r;r=null,e&&(!i||e===i)&&e.unsubscribe(),t.unsubscribe()}});n.subscribe(e),e.closed||(r=n.connect())})(this)},t}(q),M={now:function(){return(M.delegate||performance).now()},delegate:void 0},U={schedule:function(n){var t=requestAnimationFrame,r=cancelAnimationFrame,e=U.delegate;e&&(t=e.requestAnimationFrame,r=e.cancelAnimationFrame);var i=t(function(t){r=void 0,n(t)});return new v(function(){return null==r?void 0:r(i)})},requestAnimationFrame:function(n){function t(){return n.apply(this,arguments)}return t.toString=function(){return n.toString()},t}(function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=U.delegate;return((null==r?void 0:r.requestAnimationFrame)||requestAnimationFrame).apply(void 0,s([],c(n)))}),cancelAnimationFrame:function(n){function t(){return n.apply(this,arguments)}return t.toString=function(){return n.toString()},t}(function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=U.delegate;return((null==r?void 0:r.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,s([],c(n)))}),delegate:void 0};function Y(n){return n?H(n):B}function H(n){var t=U.schedule;return new q(function(r){var e=new v,i=n||M,o=i.now();return e.add(t(function u(c){var s=i.now();r.next({timestamp:n?s:c,elapsed:s-o}),r.closed||e.add(t(u))})),e})}var W,B=H(),G=h(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),J=function(n){function t(){var t=n.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,n),t.prototype.lift=function(n){var t=new K(this,this);return t.operator=n,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new G},t.prototype.next=function(n){var t,r;if(this._throwIfClosed(),!this.isStopped){var e=this.observers.slice();try{for(var i=u(e),o=i.next();!o.done;o=i.next())o.value.next(n)}catch(c){t={error:c}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}},t.prototype.error=function(n){if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;for(var t=this.observers;t.length;)t.shift().error(n)}},t.prototype.complete=function(){if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;for(var n=this.observers;n.length;)n.shift().complete()}},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var t=this,r=t.observers;return t.hasError||t.isStopped?y:(r.push(n),new v(function(){return p(r,n)}))},t.prototype._checkFinalizedStatuses=function(n){var t=this,r=t.isStopped;t.hasError?n.error(t.thrownError):r&&n.complete()},t.prototype.asObservable=function(){var n=new q;return n.source=this,n},t.create=function(n,t){return new K(n,t)},t}(q),K=function(n){function t(t,r){var e=n.call(this)||this;return e.destination=t,e.source=r,e}return i(t,n),t.prototype.next=function(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)},t.prototype.error=function(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,n)},t.prototype.complete=function(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)},t.prototype._subscribe=function(n){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:y},t}(J),X=function(n){function t(t){var r=n.call(this)||this;return r._value=t,r}return i(t,n),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=n.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},t.prototype.getValue=function(){var n=this,t=n._value;if(n.hasError)throw n.thrownError;return this._throwIfClosed(),t},t.prototype.next=function(t){n.prototype.next.call(this,this._value=t)},t}(J),Q={now:function(){return(Q.delegate||Date).now()},delegate:void 0},Z=function(n){function t(t,r,e){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===e&&(e=Q);var i=n.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=e,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return i(t,n),t.prototype.next=function(t){var r=this,e=r._buffer,i=r._infiniteTimeWindow,o=r._timestampProvider,u=r._windowTime;r.isStopped||(e.push(t),!i&&e.push(o.now()+u)),this._trimBuffer(),n.prototype.next.call(this,t)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(n),r=this._infiniteTimeWindow,e=this._buffer.slice(),i=0;i<e.length&&!n.closed;i+=r?1:2)n.next(e[i]);return this._checkFinalizedStatuses(n),t},t.prototype._trimBuffer=function(){var n=this,t=n._bufferSize,r=n._timestampProvider,e=n._buffer,i=n._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<e.length&&e.splice(0,e.length-o),!i){for(var u=r.now(),c=0,s=1;s<e.length&&e[s]<=u;s+=2)c=s;c&&e.splice(0,c+1)}},t}(J),$=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return i(t,n),t.prototype._checkFinalizedStatuses=function(n){var t=this,r=t._hasValue,e=t._value,i=t.isStopped;t.hasError?n.error(t.thrownError):i&&(r&&n.next(e),n.complete())},t.prototype.next=function(n){this.isStopped||(this._value=n,this._hasValue=!0)},t.prototype.complete=function(){var t=this,r=t._hasValue,e=t._value;t._isComplete||(this._isComplete=!0,r&&n.prototype.next.call(this,e),n.prototype.complete.call(this))},t}(J),nn=function(n){function t(t,r){return n.call(this)||this}return i(t,n),t.prototype.schedule=function(n,t){return void 0===t&&(t=0),this},t}(v),tn={setInterval:function(n){function t(){return n.apply(this,arguments)}return t.toString=function(){return n.toString()},t}(function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=tn.delegate;return((null==r?void 0:r.setInterval)||setInterval).apply(void 0,s([],c(n)))}),clearInterval:function(n){function t(t){return n.apply(this,arguments)}return t.toString=function(){return n.toString()},t}(function(n){var t=tn.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(n)}),delegate:void 0},rn=function(n){function t(t,r){var e=n.call(this,t,r)||this;return e.scheduler=t,e.work=r,e.pending=!1,e}return i(t,n),t.prototype.schedule=function(n,t){if(void 0===t&&(t=0),this.closed)return this;this.state=n;var r=this.id,e=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(e,r,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(e,this.id,t),this},t.prototype.requestAsyncId=function(n,t,r){return void 0===r&&(r=0),tn.setInterval(n.flush.bind(n,this),r)},t.prototype.recycleAsyncId=function(n,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;tn.clearInterval(t)},t.prototype.execute=function(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(n,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(n,t){var r,e=!1;try{this.work(n)}catch(i){e=!0,r=!!i&&i||new Error(i)}if(e)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,e=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,p(e,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,n.prototype.unsubscribe.call(this)}},t}(nn),en=1,on={};function un(n){return n in on&&(delete on[n],!0)}var cn=function(n){var t=en++;return on[t]=!0,W||(W=Promise.resolve()),W.then(function(){return un(t)&&n()}),t},sn=function(n){un(n)},an={setImmediate:function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=an.delegate;return((null==r?void 0:r.setImmediate)||cn).apply(void 0,s([],c(n)))},clearImmediate:function(n){var t=an.delegate;return((null==t?void 0:t.clearImmediate)||sn)(n)},delegate:void 0},fn=function(n){function t(t,r){var e=n.call(this,t,r)||this;return e.scheduler=t,e.work=r,e}return i(t,n),t.prototype.requestAsyncId=function(t,r,e){return void 0===e&&(e=0),null!==e&&e>0?n.prototype.requestAsyncId.call(this,t,r,e):(t.actions.push(this),t._scheduled||(t._scheduled=an.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,r,e){if(void 0===e&&(e=0),null!=e&&e>0||null==e&&this.delay>0)return n.prototype.recycleAsyncId.call(this,t,r,e);0===t.actions.length&&(an.clearImmediate(r),t._scheduled=void 0)},t}(rn),ln=function(){function n(t,r){void 0===r&&(r=n.now),this.schedulerActionCtor=t,this.now=r}return n.prototype.schedule=function(n,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,n).schedule(r,t)},n.now=Q.now,n}(),hn=function(n){function t(t,r){void 0===r&&(r=ln.now);var e=n.call(this,t,r)||this;return e.actions=[],e._active=!1,e._scheduled=void 0,e}return i(t,n),t.prototype.flush=function(n){var t=this.actions;if(this._active)t.push(n);else{var r;this._active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,r){for(;n=t.shift();)n.unsubscribe();throw r}}},t}(ln),dn=new(function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return i(t,n),t.prototype.flush=function(n){this._active=!0,this._scheduled=void 0;var t,r=this.actions,e=-1;n=n||r.shift();var i=r.length;do{if(t=n.execute(n.state,n.delay))break}while(++e<i&&(n=r.shift()));if(this._active=!1,t){for(;++e<i&&(n=r.shift());)n.unsubscribe();throw t}},t}(hn))(fn),pn=dn,vn=new hn(rn),yn=vn,bn=function(n){function t(t,r){var e=n.call(this,t,r)||this;return e.scheduler=t,e.work=r,e}return i(t,n),t.prototype.schedule=function(t,r){return void 0===r&&(r=0),r>0?n.prototype.schedule.call(this,t,r):(this.delay=r,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,r){return r>0||this.closed?n.prototype.execute.call(this,t,r):this._execute(t,r)},t.prototype.requestAsyncId=function(t,r,e){return void 0===e&&(e=0),null!=e&&e>0||null==e&&this.delay>0?n.prototype.requestAsyncId.call(this,t,r,e):t.flush(this)},t}(rn),mn=new(function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return i(t,n),t}(hn))(bn),wn=mn,_n=function(n){function t(t,r){var e=n.call(this,t,r)||this;return e.scheduler=t,e.work=r,e}return i(t,n),t.prototype.requestAsyncId=function(t,r,e){return void 0===e&&(e=0),null!==e&&e>0?n.prototype.requestAsyncId.call(this,t,r,e):(t.actions.push(this),t._scheduled||(t._scheduled=U.requestAnimationFrame(function(){return t.flush(void 0)})))},t.prototype.recycleAsyncId=function(t,r,e){if(void 0===e&&(e=0),null!=e&&e>0||null==e&&this.delay>0)return n.prototype.recycleAsyncId.call(this,t,r,e);0===t.actions.length&&(U.cancelAnimationFrame(r),t._scheduled=void 0)},t}(rn),gn=new(function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return i(t,n),t.prototype.flush=function(n){this._active=!0,this._scheduled=void 0;var t,r=this.actions,e=-1;n=n||r.shift();var i=r.length;do{if(t=n.execute(n.state,n.delay))break}while(++e<i&&(n=r.shift()));if(this._active=!1,t){for(;++e<i&&(n=r.shift());)n.unsubscribe();throw t}},t}(hn))(_n),xn=gn,Sn=function(n){function t(t,r){void 0===t&&(t=En),void 0===r&&(r=1/0);var e=n.call(this,t,function(){return e.frame})||this;return e.maxFrames=r,e.frame=0,e.index=-1,e}return i(t,n),t.prototype.flush=function(){for(var n,t,r=this.actions,e=this.maxFrames;(t=r[0])&&t.delay<=e&&(r.shift(),this.frame=t.delay,!(n=t.execute(t.state,t.delay))););if(n){for(;t=r.shift();)t.unsubscribe();throw n}},t.frameTimeFactor=10,t}(hn),En=function(n){function t(t,r,e){void 0===e&&(e=t.index+=1);var i=n.call(this,t,r)||this;return i.scheduler=t,i.work=r,i.index=e,i.active=!0,i.index=t.index=e,i}return i(t,n),t.prototype.schedule=function(r,e){if(void 0===e&&(e=0),Number.isFinite(e)){if(!this.id)return n.prototype.schedule.call(this,r,e);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(r,e)}return v.EMPTY},t.prototype.requestAsyncId=function(n,r,e){void 0===e&&(e=0),this.delay=n.frame+e;var i=n.actions;return i.push(this),i.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(n,t,r){void 0===r&&(r=0)},t.prototype._execute=function(t,r){if(!0===this.active)return n.prototype._execute.call(this,t,r)},t.sortActions=function(n,t){return n.delay===t.delay?n.index===t.index?0:n.index>t.index?1:-1:n.delay>t.delay?1:-1},t}(rn),An=new q(function(n){return n.complete()});function In(n){return n?function(n){return new q(function(t){return n.schedule(function(){return t.complete()})})}(n):An}function kn(n,t){return new q(function(r){var e=0;return t.schedule(function(){e===n.length?r.complete():(r.next(n[e++]),r.closed||this.schedule())})})}var Tn=function(n){return n&&"number"==typeof n.length&&"function"!=typeof n};function Pn(n){return l(null==n?void 0:n.then)}var jn="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function On(n,t){return new q(function(r){var e;return r.add(t.schedule(function(){e=n[jn](),function(n,t,r,e){void 0===e&&(e=0);var i=t.schedule(function(){try{r.call(this)}catch(t){n.error(t)}},e);n.add(i)}(r,t,function(){var n=e.next(),t=n.value;n.done?r.complete():(r.next(t),this.schedule())})})),function(){return l(null==e?void 0:e.return)&&e.return()}})}function Cn(n,t){if(!n)throw new Error("Iterable cannot be null");return new q(function(r){var e=new v;return e.add(t.schedule(function(){var i=n[Symbol.asyncIterator]();e.add(t.schedule(function(){var n=this;i.next().then(function(t){t.done?r.complete():(r.next(t.value),n.schedule())})}))})),e})}function Fn(n){return l(n[O])}function Nn(n){return l(null==n?void 0:n[jn])}function qn(n){return Symbol.asyncIterator&&l(null==n?void 0:n[Symbol.asyncIterator])}function Vn(n){return new TypeError("You provided "+(null!==n&&"object"==typeof n?"an invalid object":"'"+n+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Ln(n){return f(this,arguments,function(){var t,r,e;return o(this,function(i){switch(i.label){case 0:t=n.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,a(t.read())];case 3:return r=i.sent(),e=r.value,r.done?[4,a(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,a(e)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function Rn(n){return l(null==n?void 0:n.getReader)}function zn(n,t){if(null!=n){if(Fn(n))return function(n,t){return new q(function(r){var e=new v;return e.add(t.schedule(function(){var i=n[O]();e.add(i.subscribe({next:function(n){e.add(t.schedule(function(){return r.next(n)}))},error:function(n){e.add(t.schedule(function(){return r.error(n)}))},complete:function(){e.add(t.schedule(function(){return r.complete()}))}}))})),e})}(n,t);if(Tn(n))return kn(n,t);if(Pn(n))return function(n,t){return new q(function(r){return t.schedule(function(){return n.then(function(n){r.add(t.schedule(function(){r.next(n),r.add(t.schedule(function(){return r.complete()}))}))},function(n){r.add(t.schedule(function(){return r.error(n)}))})})})}(n,t);if(qn(n))return Cn(n,t);if(Nn(n))return On(n,t);if(Rn(n))return function(n,t){return Cn(Ln(n),t)}(n,t)}throw Vn(n)}function Dn(n,t){return t?zn(n,t):Mn(n)}function Mn(n){if(n instanceof q)return n;if(null!=n){if(Fn(n))return function(n){return new q(function(t){var r=n[O]();if(l(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(Tn(n))return Un(n);if(Pn(n))return function(n){return new q(function(t){n.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,g)})}(n);if(qn(n))return Yn(n);if(Nn(n))return function(n){return new q(function(t){var r,e;try{for(var i=u(n),o=i.next();!o.done;o=i.next())if(t.next(o.value),t.closed)return}catch(c){r={error:c}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(r)throw r.error}}t.complete()})}(n);if(Rn(n))return function(n){return Yn(Ln(n))}(n)}throw Vn(n)}function Un(n){return new q(function(t){for(var r=0;r<n.length&&!t.closed;r++)t.next(n[r]);t.complete()})}function Yn(n){return new q(function(t){(function(n,t){var r,e,i,c;return function(n,t,r,e){return new(r||(r=Promise))(function(t,i){function o(n){try{c(e.next(n))}catch(t){i(t)}}function u(n){try{c(e.throw(n))}catch(t){i(t)}}function c(n){n.done?t(n.value):function(n){return n instanceof r?n:new r(function(t){t(n)})}(n.value).then(o,u)}c((e=e.apply(n,[])).next())})}(this,0,void 0,function(){var s;return o(this,function(o){switch(o.label){case 0:o.trys.push([0,5,6,11]),r=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=n[Symbol.asyncIterator];return r?r.call(n):(n=u(n),t={},e("next"),e("throw"),e("return"),t[Symbol.asyncIterator]=function(){return this},t);function e(r){t[r]=n[r]&&function(t){return new Promise(function(e,i){!function(n,t,r,e){Promise.resolve(e).then(function(t){n({value:t,done:r})},t)}(e,i,(t=n[r](t)).done,t.value)})}}}(n),o.label=1;case 1:return[4,r.next()];case 2:if((e=o.sent()).done)return[3,4];if(t.next(e.value),t.closed)return[2];o.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=o.sent(),i={error:s},[3,11];case 6:return o.trys.push([6,,9,10]),e&&!e.done&&(c=r.return)?[4,c.call(r)]:[3,8];case 7:o.sent(),o.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(n,t).catch(function(n){return t.error(n)})})}function Hn(n,t){return t?kn(n,t):Un(n)}function Wn(n){return n&&l(n.schedule)}function Bn(n){return n[n.length-1]}function Gn(n){return l(Bn(n))?n.pop():void 0}function Jn(n){return Wn(Bn(n))?n.pop():void 0}function Kn(n,t){return"number"==typeof Bn(n)?n.pop():t}function Xn(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=Jn(n);return r?kn(n,r):Hn(n)}function Qn(n,t){var r=l(n)?n:function(){return n},e=function(n){return n.error(r())};return new q(t?function(n){return t.schedule(e,0,n)}:e)}var Zn,$n=((Zn=$n||($n={})).NEXT="N",Zn.ERROR="E",Zn.COMPLETE="C",$n),nt=function(){function n(n,t,r){this.kind=n,this.value=t,this.error=r,this.hasValue="N"===n}return n.prototype.observe=function(n){return function(n,t){var r,e,i,o=n.kind,u=n.value,c=n.error;if("string"!=typeof o)throw new TypeError('Invalid notification, missing "kind"');"N"===o?null===(r=t.next)||void 0===r||r.call(t,u):"E"===o?null===(e=t.error)||void 0===e||e.call(t,c):null===(i=t.complete)||void 0===i||i.call(t)}(this,n)},n.prototype.do=function(n,t,r){var e=this,i=e.kind,o=e.error;return"N"===i?null==n?void 0:n(e.value):"E"===i?null==t?void 0:t(o):null==r?void 0:r()},n.prototype.accept=function(n,t,r){var e;return l(null===(e=n)||void 0===e?void 0:e.next)?this.observe(n):this.do(n,t,r)},n.prototype.toObservable=function(){var n=this,t=n.kind,r=n.error,e="N"===t?Xn(n.value):"E"===t?Qn(function(){return r}):"C"===t?An:0;if(!e)throw new TypeError("Unexpected notification kind "+t);return e},n.createNext=function(t){return new n("N",t)},n.createError=function(t){return new n("E",void 0,t)},n.createComplete=function(){return n.completeNotification},n.completeNotification=new n("C"),n}();function tt(n){return!!n&&(n instanceof q||l(n.lift)&&l(n.subscribe))}var rt=h(function(n){return function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}});function et(n,t){var r="object"==typeof t;return new Promise(function(e,i){var o,u=!1;n.subscribe({next:function(n){o=n,u=!0},error:i,complete:function(){u?e(o):r?e(t.defaultValue):i(new rt)}})})}function it(n,t){var r="object"==typeof t;return new Promise(function(e,i){var o=new I({next:function(n){e(n),o.unsubscribe()},error:i,complete:function(){r?e(t.defaultValue):i(new rt)}});n.subscribe(o)})}var ot=h(function(n){return function(){n(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}),ut=h(function(n){return function(t){n(this),this.name="NotFoundError",this.message=t}}),ct=h(function(n){return function(t){n(this),this.name="SequenceError",this.message=t}}),st=h(function(n){return function(t){void 0===t&&(t=null),n(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function at(n,t){return void 0===t&&(t=0),R(function(r,e){e.add(n.schedule(function(){return r.subscribe(e)},t))})}function ft(n,t){return R(function(r,e){var i=0;r.subscribe(new z(e,function(r){e.next(n.call(t,r,i++))}))})}var lt=Array.isArray;function ht(n){return ft(function(t){return function(n,t){return lt(t)?n.apply(void 0,s([],c(t))):n(t)}(n,t)})}function dt(n,t){return void 0===t&&(t=0),R(function(r,e){r.subscribe(new z(e,function(r){return e.add(n.schedule(function(){return e.next(r)},t))},function(){return e.add(n.schedule(function(){return e.complete()},t))},function(r){return e.add(n.schedule(function(){return e.error(r)},t))}))})}function pt(n,t,r,e){if(r){if(!Wn(r))return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return pt(n,t,e).apply(this,i).pipe(ht(r))};e=r}return e?function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return pt(n,t).apply(this,r).pipe(at(e),dt(e))}:function(){for(var r=this,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o=new $,u=!0;return new q(function(i){var a=o.subscribe(i);if(u){u=!1;var f=!1,l=!1;t.apply(r,s(s([],c(e)),[function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(n){var e=t.shift();if(null!=e)return void o.error(e)}o.next(1<t.length?t:t[0]),l=!0,f&&o.complete()}])),l&&o.complete(),f=!0}return a})}}function vt(n,t,r){return pt(!1,n,t,r)}function yt(n,t,r){return pt(!0,n,t,r)}var bt=Array.isArray,mt=Object.getPrototypeOf,wt=Object.prototype,_t=Object.keys;function gt(n){if(1===n.length){var t=n[0];if(bt(t))return{args:t,keys:null};if(function(n){return n&&"object"==typeof n&&mt(n)===wt}(t)){var r=_t(t);return{args:r.map(function(n){return t[n]}),keys:r}}}return{args:n,keys:null}}function xt(n,t){return n.reduce(function(n,r,e){return n[r]=t[e],n},{})}function St(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=Jn(n),e=Gn(n),i=gt(n),o=i.args,u=i.keys;if(0===o.length)return Dn([],r);var c=new q(Et(o,r,u?function(n){return xt(u,n)}:C));return e?c.pipe(ht(e)):c}function Et(n,t,r){return void 0===r&&(r=C),function(e){At(t,function(){for(var i=n.length,o=new Array(i),u=i,c=i,s=function(i){At(t,function(){var s=Dn(n[i],t),a=!1;s.subscribe(new z(e,function(n){o[i]=n,a||(a=!0,c--),c||e.next(r(o.slice()))},function(){--u||e.complete()}))},e)},a=0;a<i;a++)s(a)},e)}}function At(n,t,r){n?r.add(n.schedule(t)):t()}function It(n,t,r){return void 0===r&&(r=1/0),l(t)?It(function(r,e){return ft(function(n,i){return t(r,n,e,i)})(Mn(n(r,e)))},r):("number"==typeof t&&(r=t),R(function(t,e){return function(n,t,r,e,i,o,u,c){var s=[],a=0,f=0,l=!1,h=function(){l&&!s.length&&!a&&t.complete()},d=function n(i){a++;var o=!1;Mn(r(i,f++)).subscribe(new z(t,function(n){t.next(n)},function(){o=!0},void 0,function(){if(o)try{for(a--;s.length&&a<e;)void 0,r=s.shift(),n(r);h()}catch(r){t.error(r)}var r}))};return n.subscribe(new z(t,function(n){return a<e?d(n):s.push(n)},function(){l=!0,h()})),function(){}}(t,e,n,r)}))}function kt(n){return void 0===n&&(n=1/0),It(C,n)}function Tt(){return kt(1)}function Pt(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return Tt()(Hn(n,Jn(n)))}function jt(n){return new q(function(t){Mn(n()).subscribe(t)})}var Ot={connector:function(){return new J},resetOnDisconnect:!0};function Ct(n,t){void 0===t&&(t=Ot);var r=null,e=t.connector,i=t.resetOnDisconnect,o=void 0===i||i,u=e(),c=new q(function(n){return u.subscribe(n)});return c.connect=function(){return(!r||r.closed)&&(r=jt(function(){return n}).subscribe(u),o&&r.add(function(){return u=e()})),r},c}function Ft(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=Gn(n),e=gt(n),i=e.args,o=e.keys,u=new q(function(n){var t=i.length;if(t)for(var r=new Array(t),e=t,u=t,c=function(t){var c=!1;Mn(i[t]).subscribe(new z(n,function(n){c||(c=!0,u--),r[t]=n},function(){(!--e||!c)&&(u||n.next(o?xt(o,r):r),n.complete())}))},s=0;s<t;s++)c(s);else n.complete()});return r?u.pipe(ht(r)):u}var Nt=["addListener","removeListener"],qt=["addEventListener","removeEventListener"],Vt=["on","off"];function Lt(n,t,r,e){if(l(r)&&(e=r,r=void 0),e)return Lt(n,t,r).pipe(ht(e));var i=c(function(n){return l(n.addEventListener)&&l(n.removeEventListener)}(n)?qt.map(function(e){return function(i){return n[e](t,i,r)}}):function(n){return l(n.addListener)&&l(n.removeListener)}(n)?Nt.map(Rt(n,t)):function(n){return l(n.on)&&l(n.off)}(n)?Vt.map(Rt(n,t)):[],2),o=i[0],u=i[1];if(!o&&Tn(n))return It(function(n){return Lt(n,t,r)})(Hn(n));if(!o)throw new TypeError("Invalid event target");return new q(function(n){var t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return n.next(1<t.length?t:t[0])};return o(t),function(){return u(t)}})}function Rt(n,t){return function(r){return function(e){return n[r](t,e)}}}function zt(n,t,r){return r?zt(n,t).pipe(ht(r)):new q(function(r){var e=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return r.next(1===n.length?n[0]:n)},i=n(e);return l(t)?function(){return t(e,i)}:void 0})}function Dt(n,t,r,e,i){var u,c,s,a;function f(){var n;return o(this,function(e){switch(e.label){case 0:n=a,e.label=1;case 1:return!t||t(n)?[4,s(n)]:[3,4];case 2:e.sent(),e.label=3;case 3:return n=r(n),[3,1];case 4:return[2]}})}return 1===arguments.length?(a=(u=n).initialState,t=u.condition,r=u.iterate,s=void 0===(c=u.resultSelector)?C:c,i=u.scheduler):(a=n,!e||Wn(e)?(s=C,i=e):s=e),jt(i?function(){return On(f(),i)}:f)}function Mt(n,t,r){return jt(function(){return n()?t:r})}function Ut(n,t,r){void 0===n&&(n=0),void 0===r&&(r=yn);var e=-1;return null!=t&&(Wn(t)?r=t:e=t),new q(function(t){var i=function(n){return n instanceof Date&&!isNaN(n)}(n)?+n-r.now():n;i<0&&(i=0);var o=0;return r.schedule(function(){t.closed||(t.next(o++),0<=e?this.schedule(void 0,e):t.complete())},i)})}function Yt(n,t){return void 0===n&&(n=0),void 0===t&&(t=vn),n<0&&(n=0),Ut(n,n,t)}function Ht(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=Jn(n),e=Kn(n,1/0),i=n;return i.length?1===i.length?Mn(i[0]):kt(e)(Hn(i,r)):An}var Wt=new q(x);function Bt(){return Wt}var Gt=Array.isArray;function Jt(n){return 1===n.length&&Gt(n[0])?n[0]:n}function Kt(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=Jt(n);return R(function(n,t){var e=s([n],c(r));!function n(){if(!t.closed)if(e.length>0){var r=void 0;try{r=Mn(e.shift())}catch(o){return void n()}var i=new z(t,void 0,x,x);t.add(r.subscribe(i)),i.add(n)}else t.complete()}()})}function Xt(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return Kt(Jt(n))(An)}function Qt(n,t){return Dn(Object.entries(n),t)}function Zt(n,t){return function(r,e){return!n.call(t,r,e)}}function $t(n,t){return R(function(r,e){var i=0;r.subscribe(new z(e,function(r){return n.call(t,r,i++)&&e.next(r)}))})}function nr(n,t,r){return[$t(t,r)(Mn(n)),$t(Zt(t,r))(Mn(n))]}function tr(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===(n=Jt(n)).length?Mn(n[0]):new q(rr(n))}function rr(n){return function(t){for(var r=[],e=function(e){r.push(Mn(n[e]).subscribe(new z(t,function(n){if(r){for(var i=0;i<r.length;i++)i!==e&&r[i].unsubscribe();r=null}t.next(n)})))},i=0;r&&!t.closed&&i<n.length;i++)e(i)}}function er(n,t,r){if(null==t&&(t=n,n=0),t<=0)return An;var e=t+n;return new q(r?function(t){var i=n;return r.schedule(function(){i<e?(t.next(i++),this.schedule()):t.complete()})}:function(t){for(var r=n;r<e&&!t.closed;)t.next(r++);t.complete()})}function ir(n,t){return new q(function(r){var e=n(),i=t(e);return(i?Mn(i):An).subscribe(r),function(){e&&e.unsubscribe()}})}function or(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=Gn(n),e=Jt(n);return e.length?new q(function(n){var t=e.map(function(){return[]}),i=e.map(function(){return!1});n.add(function(){t=i=null});for(var o=function(o){Mn(e[o]).subscribe(new z(n,function(e){if(t[o].push(e),t.every(function(n){return n.length})){var u=t.map(function(n){return n.shift()});n.next(r?r.apply(void 0,s([],c(u))):u),t.some(function(n,t){return!n.length&&i[t]})&&n.complete()}},function(){i[o]=!0,!t[o].length&&n.complete()}))},u=0;!n.closed&&u<e.length;u++)o(u);return function(){t=i=null}}):An}}}])}();
@@ -1 +0,0 @@
1
- (self.webpackChunkaltair_app=self.webpackChunkaltair_app||[]).push([[873],{6873:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WebsocketSubscriptionProvider=void 0;const i=n(71251),o=n(27148),r=n(50591);e.WebsocketSubscriptionProvider=class extends i.SubscriptionProvider{createClient(){var t;this.client=new o.SubscriptionClient(this.subscriptionUrl,{reconnect:!0,connectionParams:this.connectionParams,connectionCallback:null==(t=this.extraOptions)?void 0:t.onConnected})}execute(t){if(this.createClient(),!this.client)throw new Error("Could not create subscription client!");return new r.Observable(e=>this.client.request({query:t.query,variables:t.variables,operationName:t.operationName}).subscribe({next:(...t)=>e.next(...t),error:(...t)=>e.error(...t),complete:()=>e.complete()}))}close(){var t,e;null==(t=this.client)||t.unsubscribeAll(),null==(e=this.client)||e.close(),this.client=void 0}}},26214:function(t){function e(t){this.ms=(t=t||{}).min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=e,e.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},e.prototype.reset=function(){this.attempts=0},e.prototype.setMin=function(t){this.ms=t},e.prototype.setMax=function(t){this.max=t},e.prototype.setJitter=function(t){this.jitter=t}},35769:function(t){"use strict";var e=Object.prototype.hasOwnProperty,n="~";function i(){}function o(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function r(t,e,i,r,s){if("function"!=typeof i)throw new TypeError("The listener must be a function");var c=new o(i,r||t,s),a=n?n+e:e;return t._events[a]?t._events[a].fn?t._events[a]=[t._events[a],c]:t._events[a].push(c):(t._events[a]=c,t._eventsCount++),t}function s(t,e){0==--t._eventsCount?t._events=new i:delete t._events[e]}function c(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(n=!1)),c.prototype.eventNames=function(){var t,i,o=[];if(0===this._eventsCount)return o;for(i in t=this._events)e.call(t,i)&&o.push(n?i.slice(1):i);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},c.prototype.listeners=function(t){var e=this._events[n?n+t:t];if(!e)return[];if(e.fn)return[e.fn];for(var i=0,o=e.length,r=new Array(o);i<o;i++)r[i]=e[i].fn;return r},c.prototype.listenerCount=function(t){var e=this._events[n?n+t:t];return e?e.fn?1:e.length:0},c.prototype.emit=function(t,e,i,o,r,s){var c=n?n+t:t;if(!this._events[c])return!1;var a,u,l=this._events[c],h=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),h){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,i),!0;case 4:return l.fn.call(l.context,e,i,o),!0;case 5:return l.fn.call(l.context,e,i,o,r),!0;case 6:return l.fn.call(l.context,e,i,o,r,s),!0}for(u=1,a=new Array(h-1);u<h;u++)a[u-1]=arguments[u];l.fn.apply(l.context,a)}else{var p,f=l.length;for(u=0;u<f;u++)switch(l[u].once&&this.removeListener(t,l[u].fn,void 0,!0),h){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,e);break;case 3:l[u].fn.call(l[u].context,e,i);break;case 4:l[u].fn.call(l[u].context,e,i,o);break;default:if(!a)for(p=1,a=new Array(h-1);p<h;p++)a[p-1]=arguments[p];l[u].fn.apply(l[u].context,a)}}return!0},c.prototype.on=function(t,e,n){return r(this,t,e,n,!1)},c.prototype.once=function(t,e,n){return r(this,t,e,n,!0)},c.prototype.removeListener=function(t,e,i,o){var r=n?n+t:t;if(!this._events[r])return this;if(!e)return s(this,r),this;var c=this._events[r];if(c.fn)c.fn===e&&(!o||c.once)&&(!i||c.context===i)&&s(this,r);else{for(var a=0,u=[],l=c.length;a<l;a++)(c[a].fn!==e||o&&!c[a].once||i&&c[a].context!==i)&&u.push(c[a]);u.length?this._events[r]=1===u.length?u[0]:u:s(this,r)}return this},c.prototype.removeAllListeners=function(t){var e;return t?this._events[e=n?n+t:t]&&s(this,e):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,t.exports=c},27148:function(t,e,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},o=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))(function(o,r){function s(t){try{a(i.next(t))}catch(e){r(e)}}function c(t){try{a(i.throw(t))}catch(e){r(e)}}function a(t){t.done?o(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,c)}a((i=i.apply(t,e||[])).next())})},r=this&&this.__generator||function(t,e){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function c(r){return function(c){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(c){r=[6,c],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,c])}}},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),o=0;for(e=0;e<n;e++)for(var r=arguments[e],s=0,c=r.length;s<c;s++,o++)i[o]=r[s];return i};Object.defineProperty(e,"__esModule",{value:!0}),e.SubscriptionClient=void 0;var c="undefined"!=typeof global?global:"undefined"!=typeof window?window:{},a=c.WebSocket||c.MozWebSocket,u=n(26214),l=n(35769),h=n(94505),p=n(59185),f=n(71352),d=n(69251),v=n(23850),y=n(2745),m=n(17387),b=n(55906),_=function(){function t(t,e,n,i){var o=e||{},r=o.connectionCallback,s=void 0===r?void 0:r,c=o.connectionParams,h=void 0===c?{}:c,p=o.minTimeout,f=void 0===p?m.MIN_WS_TIMEOUT:p,d=o.timeout,v=void 0===d?m.WS_TIMEOUT:d,b=o.reconnect,_=void 0!==b&&b,T=o.reconnectionAttempts,w=void 0===T?1/0:T,I=o.lazy,O=void 0!==I&&I,C=o.inactivityTimeout,g=void 0===C?0:C,E=o.wsOptionArguments,M=void 0===E?[]:E;if(this.wsImpl=n||a,!this.wsImpl)throw new Error("Unable to find native implementation, or alternative implementation for WebSocket!");this.wsProtocols=i||y.GRAPHQL_WS,this.connectionCallback=s,this.url=t,this.operations={},this.nextOperationId=0,this.minWsTimeout=f,this.wsTimeout=v,this.unsentMessagesQueue=[],this.reconnect=_,this.reconnecting=!1,this.reconnectionAttempts=w,this.lazy=!!O,this.inactivityTimeout=g,this.closedByUser=!1,this.backoff=new u({jitter:.5}),this.eventEmitter=new l.EventEmitter,this.middlewares=[],this.client=null,this.maxConnectTimeGenerator=this.createMaxConnectTimeGenerator(),this.connectionParams=this.getConnectionParams(h),this.wsOptionArguments=M,this.lazy||this.connect()}return Object.defineProperty(t.prototype,"status",{get:function(){return null===this.client?this.wsImpl.CLOSED:this.client.readyState},enumerable:!1,configurable:!0}),t.prototype.close=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0),this.clearInactivityTimeout(),null!==this.client&&(this.closedByUser=e,t&&(this.clearCheckConnectionInterval(),this.clearMaxConnectTimeout(),this.clearTryReconnectTimeout(),this.unsubscribeAll(),this.sendMessage(void 0,b.default.GQL_CONNECTION_TERMINATE,null)),this.client.close(),this.client.onopen=null,this.client.onclose=null,this.client.onerror=null,this.client.onmessage=null,this.client=null,this.eventEmitter.emit("disconnected"),t||this.tryReconnect())},t.prototype.request=function(t){var e,n,i=this.getObserver.bind(this),o=this.executeOperation.bind(this),r=this.unsubscribe.bind(this);return this.clearInactivityTimeout(),(e={})[v.default]=function(){return this},e.subscribe=function(e,s,c){var a=i(e,s,c);return n=o(t,function(t,e){null===t&&null===e?a.complete&&a.complete():t?a.error&&a.error(t[0]):a.next&&a.next(e)}),{unsubscribe:function(){n&&(r(n),n=null)}}},e},t.prototype.on=function(t,e,n){var i=this.eventEmitter.on(t,e,n);return function(){i.off(t,e,n)}},t.prototype.onConnected=function(t,e){return this.on("connected",t,e)},t.prototype.onConnecting=function(t,e){return this.on("connecting",t,e)},t.prototype.onDisconnected=function(t,e){return this.on("disconnected",t,e)},t.prototype.onReconnected=function(t,e){return this.on("reconnected",t,e)},t.prototype.onReconnecting=function(t,e){return this.on("reconnecting",t,e)},t.prototype.onError=function(t,e){return this.on("error",t,e)},t.prototype.unsubscribeAll=function(){var t=this;Object.keys(this.operations).forEach(function(e){t.unsubscribe(e)})},t.prototype.applyMiddlewares=function(t){var e=this;return new Promise(function(n,i){var o,r,c;o=s(e.middlewares),r=e,(c=function(e){if(e)i(e);else if(o.length>0){var s=o.shift();s&&s.applyMiddleware.apply(r,[t,c])}else n(t)})()})},t.prototype.use=function(t){var e=this;return t.map(function(t){if("function"!=typeof t.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");e.middlewares.push(t)}),this},t.prototype.getConnectionParams=function(t){return function(){return new Promise(function(e,n){if("function"==typeof t)try{return e(t.call(null))}catch(i){return n(i)}e(t)})}},t.prototype.executeOperation=function(t,e){var n=this;null===this.client&&this.connect();var i=this.generateOperationId();return this.operations[i]={options:t,handler:e},this.applyMiddlewares(t).then(function(t){n.checkOperationOptions(t,e),n.operations[i]&&(n.operations[i]={options:t,handler:e},n.sendMessage(i,b.default.GQL_START,t))}).catch(function(t){n.unsubscribe(i),e(n.formatErrors(t))}),i},t.prototype.getObserver=function(t,e,n){return"function"==typeof t?{next:function(e){return t(e)},error:function(t){return e&&e(t)},complete:function(){return n&&n()}}:t},t.prototype.createMaxConnectTimeGenerator=function(){return new u({min:this.minWsTimeout,max:this.wsTimeout,factor:1.2})},t.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},t.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},t.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},t.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},t.prototype.setInactivityTimeout=function(){var t=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout(function(){0===Object.keys(t.operations).length&&t.close()},this.inactivityTimeout))},t.prototype.checkOperationOptions=function(t,e){var n=t.query,i=t.variables,o=t.operationName;if(!n)throw new Error("Must provide a query.");if(!e)throw new Error("Must provide an handler.");if(!h.default(n)&&!d.getOperationAST(n,o)||o&&!h.default(o)||i&&!p.default(i))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},t.prototype.buildMessage=function(t,e,n){return{id:t,type:e,payload:n&&n.query?i(i({},n),{query:"string"==typeof n.query?n.query:f.print(n.query)}):n}},t.prototype.formatErrors=function(t){return Array.isArray(t)?t:t&&t.errors?this.formatErrors(t.errors):t&&t.message?[t]:[{name:"FormatedError",message:"Unknown error",originalError:t}]},t.prototype.sendMessage=function(t,e,n){this.sendMessageRaw(this.buildMessage(t,e,n))},t.prototype.sendMessageRaw=function(t){switch(this.status){case this.wsImpl.OPEN:var e=JSON.stringify(t);try{JSON.parse(e)}catch(n){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+t))}this.client.send(e);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(t);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(t)))}},t.prototype.generateOperationId=function(){return String(++this.nextOperationId)},t.prototype.tryReconnect=function(){var t=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach(function(e){t.unsentMessagesQueue.push(t.buildMessage(e,b.default.GQL_START,t.operations[e].options))}),this.reconnecting=!0),this.clearTryReconnectTimeout();var e=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout(function(){t.connect()},e)}},t.prototype.flushUnsentMessagesQueue=function(){var t=this;this.unsentMessagesQueue.forEach(function(e){t.sendMessageRaw(e)}),this.unsentMessagesQueue=[]},t.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},t.prototype.checkMaxConnectTimeout=function(){var t=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout(function(){t.status!==t.wsImpl.OPEN&&(t.reconnecting=!0,t.close(!1,!0))},this.maxConnectTimeGenerator.duration())},t.prototype.connect=function(){var t,e=this;this.client=new((t=this.wsImpl).bind.apply(t,s([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return o(e,void 0,void 0,function(){var t,e;return r(this,function(n){switch(n.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return t=n.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_INIT,t),this.flushUnsentMessagesQueue(),[3,4];case 3:return e=n.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_ERROR,e),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}})})},this.client.onclose=function(){e.closedByUser||e.close(!1,!1)},this.client.onerror=function(t){e.eventEmitter.emit("error",t)},this.client.onmessage=function(t){e.processReceivedData(t.data)}},t.prototype.processReceivedData=function(t){var e,n;try{n=(e=JSON.parse(t)).id}catch(c){throw new Error("Message must be JSON-parseable. Got: "+t)}if(-1===[b.default.GQL_DATA,b.default.GQL_COMPLETE,b.default.GQL_ERROR].indexOf(e.type)||this.operations[n])switch(e.type){case b.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(e.payload);break;case b.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",e.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case b.default.GQL_COMPLETE:var o=this.operations[n].handler;delete this.operations[n],o.call(this,null,null);break;case b.default.GQL_ERROR:this.operations[n].handler(this.formatErrors(e.payload),null),delete this.operations[n];break;case b.default.GQL_DATA:var r=e.payload.errors?i(i({},e.payload),{errors:this.formatErrors(e.payload.errors)}):e.payload;this.operations[n].handler(null,r);break;case b.default.GQL_CONNECTION_KEEP_ALIVE:var s=void 0===this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,s&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(n)},t.prototype.unsubscribe=function(t){this.operations[t]&&(delete this.operations[t],this.setInactivityTimeout(),this.sendMessage(t,b.default.GQL_STOP,void 0))},t}();e.SubscriptionClient=_},17387:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WS_TIMEOUT=e.MIN_WS_TIMEOUT=void 0,e.MIN_WS_TIMEOUT=1e3,e.WS_TIMEOUT=3e4},55906:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){throw new Error("Static Class")}return t.GQL_CONNECTION_INIT="connection_init",t.GQL_CONNECTION_ACK="connection_ack",t.GQL_CONNECTION_ERROR="connection_error",t.GQL_CONNECTION_KEEP_ALIVE="ka",t.GQL_CONNECTION_TERMINATE="connection_terminate",t.GQL_START="start",t.GQL_DATA="data",t.GQL_ERROR="error",t.GQL_COMPLETE="complete",t.GQL_STOP="stop",t.SUBSCRIPTION_START="subscription_start",t.SUBSCRIPTION_DATA="subscription_data",t.SUBSCRIPTION_SUCCESS="subscription_success",t.SUBSCRIPTION_FAIL="subscription_fail",t.SUBSCRIPTION_END="subscription_end",t.INIT="init",t.INIT_SUCCESS="init_success",t.INIT_FAIL="init_fail",t.KEEP_ALIVE="keepalive",t}();e.default=n},2745:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GRAPHQL_SUBSCRIPTIONS=e.GRAPHQL_WS=void 0,e.GRAPHQL_WS="graphql-ws",e.GRAPHQL_SUBSCRIPTIONS="graphql-subscriptions"},59185:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return null!==t&&"object"==typeof t}},94505:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return"string"==typeof t}},23850:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return r}}),t=n.hmd(t);var i,o,r=("function"==typeof(o=("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:t).Symbol)?o.observable?i=o.observable:(i=o("observable"),o.observable=i):i="@@observable",i)}}]);
@@ -1 +0,0 @@
1
- !function(){function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function i(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,i=r(t);if(e){var s=r(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return o(this,n)}}function o(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}(self.webpackChunkaltair_app=self.webpackChunkaltair_app||[]).push([[873],{6873:function(o,r,s){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.WebsocketSubscriptionProvider=void 0;var c=s(71251),a=s(27148),u=s(50591);r.WebsocketSubscriptionProvider=function(o){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)}(h,o);var r,s,c,l=i(h);function h(){return t(this,h),l.apply(this,arguments)}return r=h,(s=[{key:"createClient",value:function(){var t;this.client=new a.SubscriptionClient(this.subscriptionUrl,{reconnect:!0,connectionParams:this.connectionParams,connectionCallback:null==(t=this.extraOptions)?void 0:t.onConnected})}},{key:"execute",value:function(t){var e=this;if(this.createClient(),!this.client)throw new Error("Could not create subscription client!");return new u.Observable(function(n){return e.client.request({query:t.query,variables:t.variables,operationName:t.operationName}).subscribe({next:function(){return n.next.apply(n,arguments)},error:function(){return n.error.apply(n,arguments)},complete:function(){return n.complete()}})})}},{key:"close",value:function(){var t,e;null==(t=this.client)||t.unsubscribeAll(),null==(e=this.client)||e.close(),this.client=void 0}}])&&e(r.prototype,s),c&&e(r,c),h}(c.SubscriptionProvider)},26214:function(t){function e(t){this.ms=(t=t||{}).min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=e,e.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},e.prototype.reset=function(){this.attempts=0},e.prototype.setMin=function(t){this.ms=t},e.prototype.setMax=function(t){this.max=t},e.prototype.setJitter=function(t){this.jitter=t}},35769:function(t){"use strict";var e=Object.prototype.hasOwnProperty,n="~";function i(){}function o(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function r(t,e,i,r,s){if("function"!=typeof i)throw new TypeError("The listener must be a function");var c=new o(i,r||t,s),a=n?n+e:e;return t._events[a]?t._events[a].fn?t._events[a]=[t._events[a],c]:t._events[a].push(c):(t._events[a]=c,t._eventsCount++),t}function s(t,e){0==--t._eventsCount?t._events=new i:delete t._events[e]}function c(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(n=!1)),c.prototype.eventNames=function(){var t,i,o=[];if(0===this._eventsCount)return o;for(i in t=this._events)e.call(t,i)&&o.push(n?i.slice(1):i);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},c.prototype.listeners=function(t){var e=this._events[n?n+t:t];if(!e)return[];if(e.fn)return[e.fn];for(var i=0,o=e.length,r=new Array(o);i<o;i++)r[i]=e[i].fn;return r},c.prototype.listenerCount=function(t){var e=this._events[n?n+t:t];return e?e.fn?1:e.length:0},c.prototype.emit=function(t,e,i,o,r,s){var c=n?n+t:t;if(!this._events[c])return!1;var a,u,l=this._events[c],h=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),h){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,i),!0;case 4:return l.fn.call(l.context,e,i,o),!0;case 5:return l.fn.call(l.context,e,i,o,r),!0;case 6:return l.fn.call(l.context,e,i,o,r,s),!0}for(u=1,a=new Array(h-1);u<h;u++)a[u-1]=arguments[u];l.fn.apply(l.context,a)}else{var f,p=l.length;for(u=0;u<p;u++)switch(l[u].once&&this.removeListener(t,l[u].fn,void 0,!0),h){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,e);break;case 3:l[u].fn.call(l[u].context,e,i);break;case 4:l[u].fn.call(l[u].context,e,i,o);break;default:if(!a)for(f=1,a=new Array(h-1);f<h;f++)a[f-1]=arguments[f];l[u].fn.apply(l[u].context,a)}}return!0},c.prototype.on=function(t,e,n){return r(this,t,e,n,!1)},c.prototype.once=function(t,e,n){return r(this,t,e,n,!0)},c.prototype.removeListener=function(t,e,i,o){var r=n?n+t:t;if(!this._events[r])return this;if(!e)return s(this,r),this;var c=this._events[r];if(c.fn)c.fn===e&&(!o||c.once)&&(!i||c.context===i)&&s(this,r);else{for(var a=0,u=[],l=c.length;a<l;a++)(c[a].fn!==e||o&&!c[a].once||i&&c[a].context!==i)&&u.push(c[a]);u.length?this._events[r]=1===u.length?u[0]:u:s(this,r)}return this},c.prototype.removeAllListeners=function(t){var e;return t?this._events[e=n?n+t:t]&&s(this,e):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,t.exports=c},27148:function(t,e,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},o=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))(function(o,r){function s(t){try{a(i.next(t))}catch(e){r(e)}}function c(t){try{a(i.throw(t))}catch(e){r(e)}}function a(t){t.done?o(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,c)}a((i=i.apply(t,e||[])).next())})},r=this&&this.__generator||function(t,e){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function c(r){return function(c){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(c){r=[6,c],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,c])}}},s=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),o=0;for(e=0;e<n;e++)for(var r=arguments[e],s=0,c=r.length;s<c;s++,o++)i[o]=r[s];return i};Object.defineProperty(e,"__esModule",{value:!0}),e.SubscriptionClient=void 0;var c="undefined"!=typeof global?global:"undefined"!=typeof window?window:{},a=c.WebSocket||c.MozWebSocket,u=n(26214),l=n(35769),h=n(94505),f=n(59185),p=n(71352),d=n(69251),y=n(23850),v=n(2745),m=n(17387),b=n(55906),_=function(){function t(t,e,n,i){var o=e||{},r=o.connectionCallback,s=void 0===r?void 0:r,c=o.connectionParams,h=void 0===c?{}:c,f=o.minTimeout,p=void 0===f?m.MIN_WS_TIMEOUT:f,d=o.timeout,y=void 0===d?m.WS_TIMEOUT:d,b=o.reconnect,_=void 0!==b&&b,w=o.reconnectionAttempts,T=void 0===w?1/0:w,O=o.lazy,I=void 0!==O&&O,g=o.inactivityTimeout,C=void 0===g?0:g,E=o.wsOptionArguments,M=void 0===E?[]:E;if(this.wsImpl=n||a,!this.wsImpl)throw new Error("Unable to find native implementation, or alternative implementation for WebSocket!");this.wsProtocols=i||v.GRAPHQL_WS,this.connectionCallback=s,this.url=t,this.operations={},this.nextOperationId=0,this.minWsTimeout=p,this.wsTimeout=y,this.unsentMessagesQueue=[],this.reconnect=_,this.reconnecting=!1,this.reconnectionAttempts=T,this.lazy=!!I,this.inactivityTimeout=C,this.closedByUser=!1,this.backoff=new u({jitter:.5}),this.eventEmitter=new l.EventEmitter,this.middlewares=[],this.client=null,this.maxConnectTimeGenerator=this.createMaxConnectTimeGenerator(),this.connectionParams=this.getConnectionParams(h),this.wsOptionArguments=M,this.lazy||this.connect()}return Object.defineProperty(t.prototype,"status",{get:function(){return null===this.client?this.wsImpl.CLOSED:this.client.readyState},enumerable:!1,configurable:!0}),t.prototype.close=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0),this.clearInactivityTimeout(),null!==this.client&&(this.closedByUser=e,t&&(this.clearCheckConnectionInterval(),this.clearMaxConnectTimeout(),this.clearTryReconnectTimeout(),this.unsubscribeAll(),this.sendMessage(void 0,b.default.GQL_CONNECTION_TERMINATE,null)),this.client.close(),this.client.onopen=null,this.client.onclose=null,this.client.onerror=null,this.client.onmessage=null,this.client=null,this.eventEmitter.emit("disconnected"),t||this.tryReconnect())},t.prototype.request=function(t){var e,n,i=this.getObserver.bind(this),o=this.executeOperation.bind(this),r=this.unsubscribe.bind(this);return this.clearInactivityTimeout(),(e={})[y.default]=function(){return this},e.subscribe=function(e,s,c){var a=i(e,s,c);return n=o(t,function(t,e){null===t&&null===e?a.complete&&a.complete():t?a.error&&a.error(t[0]):a.next&&a.next(e)}),{unsubscribe:function(){n&&(r(n),n=null)}}},e},t.prototype.on=function(t,e,n){var i=this.eventEmitter.on(t,e,n);return function(){i.off(t,e,n)}},t.prototype.onConnected=function(t,e){return this.on("connected",t,e)},t.prototype.onConnecting=function(t,e){return this.on("connecting",t,e)},t.prototype.onDisconnected=function(t,e){return this.on("disconnected",t,e)},t.prototype.onReconnected=function(t,e){return this.on("reconnected",t,e)},t.prototype.onReconnecting=function(t,e){return this.on("reconnecting",t,e)},t.prototype.onError=function(t,e){return this.on("error",t,e)},t.prototype.unsubscribeAll=function(){var t=this;Object.keys(this.operations).forEach(function(e){t.unsubscribe(e)})},t.prototype.applyMiddlewares=function(t){var e=this;return new Promise(function(n,i){var o,r,c;o=s(e.middlewares),r=e,(c=function(e){if(e)i(e);else if(o.length>0){var s=o.shift();s&&s.applyMiddleware.apply(r,[t,c])}else n(t)})()})},t.prototype.use=function(t){var e=this;return t.map(function(t){if("function"!=typeof t.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");e.middlewares.push(t)}),this},t.prototype.getConnectionParams=function(t){return function(){return new Promise(function(e,n){if("function"==typeof t)try{return e(t.call(null))}catch(i){return n(i)}e(t)})}},t.prototype.executeOperation=function(t,e){var n=this;null===this.client&&this.connect();var i=this.generateOperationId();return this.operations[i]={options:t,handler:e},this.applyMiddlewares(t).then(function(t){n.checkOperationOptions(t,e),n.operations[i]&&(n.operations[i]={options:t,handler:e},n.sendMessage(i,b.default.GQL_START,t))}).catch(function(t){n.unsubscribe(i),e(n.formatErrors(t))}),i},t.prototype.getObserver=function(t,e,n){return"function"==typeof t?{next:function(e){return t(e)},error:function(t){return e&&e(t)},complete:function(){return n&&n()}}:t},t.prototype.createMaxConnectTimeGenerator=function(){return new u({min:this.minWsTimeout,max:this.wsTimeout,factor:1.2})},t.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},t.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},t.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},t.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},t.prototype.setInactivityTimeout=function(){var t=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout(function(){0===Object.keys(t.operations).length&&t.close()},this.inactivityTimeout))},t.prototype.checkOperationOptions=function(t,e){var n=t.query,i=t.variables,o=t.operationName;if(!n)throw new Error("Must provide a query.");if(!e)throw new Error("Must provide an handler.");if(!h.default(n)&&!d.getOperationAST(n,o)||o&&!h.default(o)||i&&!f.default(i))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},t.prototype.buildMessage=function(t,e,n){return{id:t,type:e,payload:n&&n.query?i(i({},n),{query:"string"==typeof n.query?n.query:p.print(n.query)}):n}},t.prototype.formatErrors=function(t){return Array.isArray(t)?t:t&&t.errors?this.formatErrors(t.errors):t&&t.message?[t]:[{name:"FormatedError",message:"Unknown error",originalError:t}]},t.prototype.sendMessage=function(t,e,n){this.sendMessageRaw(this.buildMessage(t,e,n))},t.prototype.sendMessageRaw=function(t){switch(this.status){case this.wsImpl.OPEN:var e=JSON.stringify(t);try{JSON.parse(e)}catch(n){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+t))}this.client.send(e);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(t);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(t)))}},t.prototype.generateOperationId=function(){return String(++this.nextOperationId)},t.prototype.tryReconnect=function(){var t=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach(function(e){t.unsentMessagesQueue.push(t.buildMessage(e,b.default.GQL_START,t.operations[e].options))}),this.reconnecting=!0),this.clearTryReconnectTimeout();var e=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout(function(){t.connect()},e)}},t.prototype.flushUnsentMessagesQueue=function(){var t=this;this.unsentMessagesQueue.forEach(function(e){t.sendMessageRaw(e)}),this.unsentMessagesQueue=[]},t.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},t.prototype.checkMaxConnectTimeout=function(){var t=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout(function(){t.status!==t.wsImpl.OPEN&&(t.reconnecting=!0,t.close(!1,!0))},this.maxConnectTimeGenerator.duration())},t.prototype.connect=function(){var t,e=this;this.client=new((t=this.wsImpl).bind.apply(t,s([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return o(e,void 0,void 0,function(){var t,e;return r(this,function(n){switch(n.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return t=n.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_INIT,t),this.flushUnsentMessagesQueue(),[3,4];case 3:return e=n.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_ERROR,e),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}})})},this.client.onclose=function(){e.closedByUser||e.close(!1,!1)},this.client.onerror=function(t){e.eventEmitter.emit("error",t)},this.client.onmessage=function(t){e.processReceivedData(t.data)}},t.prototype.processReceivedData=function(t){var e,n;try{n=(e=JSON.parse(t)).id}catch(c){throw new Error("Message must be JSON-parseable. Got: "+t)}if(-1===[b.default.GQL_DATA,b.default.GQL_COMPLETE,b.default.GQL_ERROR].indexOf(e.type)||this.operations[n])switch(e.type){case b.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(e.payload);break;case b.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",e.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case b.default.GQL_COMPLETE:var o=this.operations[n].handler;delete this.operations[n],o.call(this,null,null);break;case b.default.GQL_ERROR:this.operations[n].handler(this.formatErrors(e.payload),null),delete this.operations[n];break;case b.default.GQL_DATA:var r=e.payload.errors?i(i({},e.payload),{errors:this.formatErrors(e.payload.errors)}):e.payload;this.operations[n].handler(null,r);break;case b.default.GQL_CONNECTION_KEEP_ALIVE:var s=void 0===this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,s&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(n)},t.prototype.unsubscribe=function(t){this.operations[t]&&(delete this.operations[t],this.setInactivityTimeout(),this.sendMessage(t,b.default.GQL_STOP,void 0))},t}();e.SubscriptionClient=_},17387:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WS_TIMEOUT=e.MIN_WS_TIMEOUT=void 0,e.MIN_WS_TIMEOUT=1e3,e.WS_TIMEOUT=3e4},55906:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){throw new Error("Static Class")}return t.GQL_CONNECTION_INIT="connection_init",t.GQL_CONNECTION_ACK="connection_ack",t.GQL_CONNECTION_ERROR="connection_error",t.GQL_CONNECTION_KEEP_ALIVE="ka",t.GQL_CONNECTION_TERMINATE="connection_terminate",t.GQL_START="start",t.GQL_DATA="data",t.GQL_ERROR="error",t.GQL_COMPLETE="complete",t.GQL_STOP="stop",t.SUBSCRIPTION_START="subscription_start",t.SUBSCRIPTION_DATA="subscription_data",t.SUBSCRIPTION_SUCCESS="subscription_success",t.SUBSCRIPTION_FAIL="subscription_fail",t.SUBSCRIPTION_END="subscription_end",t.INIT="init",t.INIT_SUCCESS="init_success",t.INIT_FAIL="init_fail",t.KEEP_ALIVE="keepalive",t}();e.default=n},2745:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GRAPHQL_SUBSCRIPTIONS=e.GRAPHQL_WS=void 0,e.GRAPHQL_WS="graphql-ws",e.GRAPHQL_SUBSCRIPTIONS="graphql-subscriptions"},59185:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return null!==t&&"object"==typeof t}},94505:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return"string"==typeof t}},23850:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return r}}),t=n.hmd(t);var i,o,r=("function"==typeof(o=("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:t).Symbol)?o.observable?i=o.observable:(i=o("observable"),o.observable=i):i="@@observable",i)}}])}();
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkaltair_app=self.webpackChunkaltair_app||[]).push([[934],{17934:function(t,r,e){const o=e(90787),n=e(90349);t.exports={atob:o,btoa:n}},90787:function(t){function r(t){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(t);return r<0?void 0:r}t.exports=function(t){if((t=(t=`${t}`).replace(/[ \t\n\f\r]/g,"")).length%4==0&&(t=t.replace(/==?$/,"")),t.length%4==1||/[^+/0-9A-Za-z]/.test(t))return null;let e="",o=0,n=0;for(let a=0;a<t.length;a++)o<<=6,o|=r(t[a]),n+=6,24===n&&(e+=String.fromCharCode((16711680&o)>>16),e+=String.fromCharCode((65280&o)>>8),e+=String.fromCharCode(255&o),o=n=0);return 12===n?(o>>=4,e+=String.fromCharCode(o)):18===n&&(o>>=2,e+=String.fromCharCode((65280&o)>>8),e+=String.fromCharCode(255&o)),e}},90349:function(t){function r(t){if(t>=0&&t<64)return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[t]}t.exports=function(t){let e;for(t=`${t}`,e=0;e<t.length;e++)if(t.charCodeAt(e)>255)return null;let o="";for(e=0;e<t.length;e+=3){const n=[void 0,void 0,void 0,void 0];n[0]=t.charCodeAt(e)>>2,n[1]=(3&t.charCodeAt(e))<<4,t.length>e+1&&(n[1]|=t.charCodeAt(e+1)>>4,n[2]=(15&t.charCodeAt(e+1))<<2),t.length>e+2&&(n[2]|=t.charCodeAt(e+2)>>6,n[3]=63&t.charCodeAt(e+2));for(let t=0;t<n.length;t++)o+=void 0===n[t]?"=":r(n[t])}return o}}}]);
@@ -1 +0,0 @@
1
- !function(){"use strict";(self.webpackChunkaltair_app=self.webpackChunkaltair_app||[]).push([[934],{17934:function(r,t,n){var o=n(90787),e=n(90349);r.exports={atob:o,btoa:e}},90787:function(r){function t(r){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(r);return t<0?void 0:t}r.exports=function(r){if((r=(r="".concat(r)).replace(/[ \t\n\f\r]/g,"")).length%4==0&&(r=r.replace(/==?$/,"")),r.length%4==1||/[^+/0-9A-Za-z]/.test(r))return null;for(var n="",o=0,e=0,a=0;a<r.length;a++)o<<=6,o|=t(r[a]),24===(e+=6)&&(n+=String.fromCharCode((16711680&o)>>16),n+=String.fromCharCode((65280&o)>>8),n+=String.fromCharCode(255&o),o=e=0);return 12===e?(o>>=4,n+=String.fromCharCode(o)):18===e&&(o>>=2,n+=String.fromCharCode((65280&o)>>8),n+=String.fromCharCode(255&o)),n}},90349:function(r){function t(r){if(r>=0&&r<64)return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[r]}r.exports=function(r){var n;for(r="".concat(r),n=0;n<r.length;n++)if(r.charCodeAt(n)>255)return null;var o="";for(n=0;n<r.length;n+=3){var e=[void 0,void 0,void 0,void 0];e[0]=r.charCodeAt(n)>>2,e[1]=(3&r.charCodeAt(n))<<4,r.length>n+1&&(e[1]|=r.charCodeAt(n+1)>>4,e[2]=(15&r.charCodeAt(n+1))<<2),r.length>n+2&&(e[2]|=r.charCodeAt(n+2)>>6,e[3]=63&r.charCodeAt(n+2));for(var a=0;a<e.length;a++)o+=void 0===e[a]?"=":t(e[a])}return o}}}])}();