@zoom/videosdk
Version:
Zoom Web Video SDK
1 lines • 803 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).WebVideoSDK={})}(this,(function(e){"use strict";var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},t(e,o)};function o(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}var r=function(){return r=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};function i(e,t){var o,r,i,n,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(n){return function(a){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,r=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){s=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){s.label=n[1];break}if(6===n[0]&&s.label<i[1]){s.label=i[1],i=n;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(n);break}i[2]&&s.ops.pop(),s.trys.pop();continue}n=t.call(e,s)}catch(e){n=[6,e],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}}function n(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],r=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s}function a(e,t){for(var o=0,r=t.length,i=e.length;o<r;o++,i++)e[i]=t[o];return e}function d(e){return this instanceof d?(this.v=e,this):new d(e)}function u(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,o=e[Symbol.asyncIterator];return o?o.call(e):(e=n(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(t){return new Promise((function(r,i){!function(e,t,o,r){Promise.resolve(r).then((function(t){e({value:t,done:o})}),t)}(r,i,(t=e[o](t)).done,t.value)}))}}}function c(e){return"function"==typeof e}function l(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var p=l((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function h(e,t){if(e){var o=e.indexOf(t);0<=o&&e.splice(o,1)}}var m=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,o,r,i;if(!this.closed){this.closed=!0;var d=this._parentage;if(d)if(this._parentage=null,Array.isArray(d))try{for(var u=n(d),l=u.next();!l.done;l=u.next())l.value.remove(this)}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}else d.remove(this);var h=this.initialTeardown;if(c(h))try{h()}catch(e){i=e instanceof p?e.errors:[e]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var g=n(m),v=g.next();!v.done;v=g.next()){var f=v.value;try{S(f)}catch(e){i=null!=i?i:[],e instanceof p?i=a(a([],s(i)),s(e.errors)):i.push(e)}}}catch(e){o={error:e}}finally{try{v&&!v.done&&(r=g.return)&&r.call(g)}finally{if(o)throw o.error}}}if(i)throw new p(i)}},e.prototype.add=function(t){var o;if(t&&t!==this)if(this.closed)S(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(o=this._finalizers)&&void 0!==o?o:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&h(t,e)},e.prototype.remove=function(t){var o=this._finalizers;o&&h(o,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),g=m.EMPTY;function v(e){return e instanceof m||e&&"closed"in e&&c(e.remove)&&c(e.add)&&c(e.unsubscribe)}function S(e){c(e)?e():e.unsubscribe()}var f=void 0;function y(e){!function(e,t){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];setTimeout.apply(void 0,a([e,t],s(o)))}((function(){throw e}))}function E(){}function I(e){e()}var A=function(e){function t(t){var o=e.call(this)||this;return o.isStopped=!1,t?(o.destination=t,v(t)&&t.add(o)):o.destination=R,o}return o(t,e),t.create=function(e,t,o){return new _(e,t,o)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(m),C=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){b(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){b(e)}else b(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){b(e)}},e}(),_=function(e){function t(t,o,r){var i,n=e.call(this)||this;return i=c(t)||!t?{next:null!=t?t:void 0,error:null!=o?o:void 0,complete:null!=r?r:void 0}:t,n.destination=new C(i),n}return o(t,e),t}(A);function b(e){y(e)}var R={closed:!0,next:E,error:function(e){throw e},complete:E},T="function"==typeof Symbol&&Symbol.observable||"@@observable";function O(e){return e}function D(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return w(e)}function w(e){return 0===e.length?O:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var M=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var o=new e;return o.source=this,o.operator=t,o},e.prototype.subscribe=function(e,t,o){var r,i=this,n=(r=e)&&r instanceof A||function(e){return e&&c(e.next)&&c(e.error)&&c(e.complete)}(r)&&v(r)?e:new _(e,t,o);return I((function(){var e=i,t=e.operator,o=e.source;n.add(t?t.call(n,o):o?i._subscribe(n):i._trySubscribe(n))})),n},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var o=this;return new(t=N(t))((function(t,r){var i=new _({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});o.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[T]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return w(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=N(e))((function(e,o){var r;t.subscribe((function(e){return r=e}),(function(e){return o(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function N(e){var t;return null!==(t=null!=e?e:f)&&void 0!==t?t:Promise}function P(e){return function(t){if(function(e){return c(null==e?void 0:e.lift)}(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}function L(e,t,o,r,i){return new V(e,t,o,r,i)}var k,V=function(e){function t(t,o,r,i,n,s){var a=e.call(this,t)||this;return a.onFinalize=n,a.shouldUnsubscribe=s,a._next=o?function(e){try{o(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return o(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var o=this.closed;e.prototype.unsubscribe.call(this),!o&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(A),U=l((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),B=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return o(t,e),t.prototype.lift=function(e){var t=new j(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new U},t.prototype.next=function(e){var t=this;I((function(){var o,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=n(t.currentObservers),s=i.next();!s.done;s=i.next())s.value.next(e)}catch(e){o={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}}}))},t.prototype.error=function(e){var t=this;I((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var o=t.observers;o.length;)o.shift().error(e)}}))},t.prototype.complete=function(){var e=this;I((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,o=this,r=o.hasError,i=o.isStopped,n=o.observers;return r||i?g:(this.currentObservers=null,n.push(e),new m((function(){t.currentObservers=null,h(n,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,o=t.hasError,r=t.thrownError,i=t.isStopped;o?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new M;return e.source=this,e},t.create=function(e,t){return new j(e,t)},t}(M),j=function(e){function t(t,o){var r=e.call(this)||this;return r.destination=t,r.source=o,r}return o(t,e),t.prototype.next=function(e){var t,o;null===(o=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===o||o.call(t,e)},t.prototype.error=function(e){var t,o;null===(o=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===o||o.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,o;return null!==(o=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==o?o:g},t}(B),H=function(e){function t(t){var o=e.call(this)||this;return o._value=t,o}return o(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var o=e.prototype._subscribe.call(this,t);return!o.closed&&t.next(this._value),o},t.prototype.getValue=function(){var e=this,t=e.hasError,o=e.thrownError,r=e._value;if(t)throw o;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(B),x=function(){return Date.now()},F=function(e){function t(t,o){return e.call(this)||this}return o(t,e),t.prototype.schedule=function(e,t){return this},t}(m),$=function(e){function t(t,o){var r=e.call(this,t,o)||this;return r.scheduler=t,r.work=o,r.pending=!1,r}return o(t,e),t.prototype.schedule=function(e,t){var o;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=null!==(o=this.id)&&void 0!==o?o:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,o){return void 0===o&&(o=0),function(e,t){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];return setInterval.apply(void 0,a([e,t],s(o)))}(e.flush.bind(e,this),o)},t.prototype.recycleAsyncId=function(e,t,o){if(void 0===o&&(o=0),null!=o&&this.delay===o&&!1===this.pending)return t;null!=t&&function(e){clearInterval(e)}(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(e,t);if(o)return o;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var o,r=!1;try{this.work(e)}catch(e){r=!0,o=e||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,o=this.scheduler,r=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,h(r,this),null!=t&&(this.id=this.recycleAsyncId(o,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(F),G=1,W={};function K(e){return e in W&&(delete W[e],!0)}var z=function(e){var t=G++;return W[t]=!0,k||(k=Promise.resolve()),k.then((function(){return K(t)&&e()})),t},q=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return z.apply(void 0,a([],s(e)))},J=function(e){return function(e){K(e)}(e)},Q=function(e){function t(t,o){var r=e.call(this,t,o)||this;return r.scheduler=t,r.work=o,r}return o(t,e),t.prototype.requestAsyncId=function(t,o,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,o,r):(t.actions.push(this),t._scheduled||(t._scheduled=q(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,o,r){var i;if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,o,r);var n=t.actions;null!=o&&(null===(i=n[n.length-1])||void 0===i?void 0:i.id)!==o&&(J(o),t._scheduled===o&&(t._scheduled=void 0))},t}($),Y=function(){function e(t,o){void 0===o&&(o=e.now),this.schedulerActionCtor=t,this.now=o}return e.prototype.schedule=function(e,t,o){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(o,t)},e.now=x,e}(),Z=function(e){function t(t,o){void 0===o&&(o=Y.now);var r=e.call(this,t,o)||this;return r.actions=[],r._active=!1,r}return o(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var o;this._active=!0;do{if(o=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,o){for(;e=t.shift();)e.unsubscribe();throw o}}},t}(Y),X=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var o,r=this.actions;e=e||r.shift();do{if(o=e.execute(e.state,e.delay))break}while((e=r[0])&&e.id===t&&r.shift());if(this._active=!1,o){for(;(e=r[0])&&e.id===t&&r.shift();)e.unsubscribe();throw o}},t}(Z))(Q),ee=new Z($),te=ee,oe=function(e){function t(t,o){var r=e.call(this,t,o)||this;return r.scheduler=t,r.work=o,r}return o(t,e),t.prototype.schedule=function(t,o){return void 0===o&&(o=0),o>0?e.prototype.schedule.call(this,t,o):(this.delay=o,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,o){return o>0||this.closed?e.prototype.execute.call(this,t,o):this._execute(t,o)},t.prototype.requestAsyncId=function(t,o,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,o,r):(t.flush(this),0)},t}($),re=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(Z))(oe),ie=new M((function(e){return e.complete()}));function ne(e){return e&&c(e.schedule)}function se(e){return e[e.length-1]}function ae(e){return c(se(e))?e.pop():void 0}function de(e){return ne(se(e))?e.pop():void 0}var ue=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function ce(e){return c(null==e?void 0:e.then)}function le(e){return c(e[T])}function pe(e){return Symbol.asyncIterator&&c(null==e?void 0:e[Symbol.asyncIterator])}function he(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var me="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function ge(e){return c(null==e?void 0:e[me])}function ve(e){return function(e,t,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=o.apply(e,t||[]),n=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(o,r){n.push([e,t,o,r])>1||a(e,t)}))})}function a(e,t){try{!function(e){e.value instanceof d?Promise.resolve(e.value.v).then(u,c):l(n[0][2],e)}(i[e](t))}catch(e){l(n[0][3],e)}}function u(e){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),n.shift(),n.length&&a(n[0][0],n[0][1])}}(this,arguments,(function(){var t,o,r;return i(this,(function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,d(t.read())];case 3:return o=i.sent(),r=o.value,o.done?[4,d(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,d(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 Se(e){return c(null==e?void 0:e.getReader)}function fe(e){if(e instanceof M)return e;if(null!=e){if(le(e))return i=e,new M((function(e){var t=i[T]();if(c(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(ue(e))return r=e,new M((function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()}));if(ce(e))return o=e,new M((function(e){o.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,y)}));if(pe(e))return ye(e);if(ge(e))return t=e,new M((function(e){var o,r;try{for(var i=n(t),s=i.next();!s.done;s=i.next()){var a=s.value;if(e.next(a),e.closed)return}}catch(e){o={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}e.complete()}));if(Se(e))return ye(ve(e))}var t,o,r,i;throw he(e)}function ye(e){return new M((function(t){(function(e,t){var o,r,n,s;return function(e,t,o,r){return new(o||(o=Promise))((function(t,i){function n(e){try{a(r.next(e))}catch(e){i(e)}}function s(e){try{a(r.throw(e))}catch(e){i(e)}}function a(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(e){e(r)}))).then(n,s)}a((r=r.apply(e,[])).next())}))}(this,0,void 0,(function(){var a,d;return i(this,(function(i){switch(i.label){case 0:i.trys.push([0,5,6,11]),o=u(e),i.label=1;case 1:return[4,o.next()];case 2:if((r=i.sent()).done)return[3,4];if(a=r.value,t.next(a),t.closed)return[2];i.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return d=i.sent(),n={error:d},[3,11];case 6:return i.trys.push([6,,9,10]),r&&!r.done&&(s=o.return)?[4,s.call(o)]:[3,8];case 7:i.sent(),i.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(e,t).catch((function(e){return t.error(e)}))}))}function Ee(e,t,o,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var n=t.schedule((function(){o(),i?e.add(this.schedule(null,r)):this.unsubscribe()}),r);if(e.add(n),!i)return n}function Ie(e,t){return void 0===t&&(t=0),P((function(o,r){o.subscribe(L(r,(function(o){return Ee(r,e,(function(){return r.next(o)}),t)}),(function(){return Ee(r,e,(function(){return r.complete()}),t)}),(function(o){return Ee(r,e,(function(){return r.error(o)}),t)})))}))}function Ae(e,t){return void 0===t&&(t=0),P((function(o,r){r.add(e.schedule((function(){return o.subscribe(r)}),t))}))}function Ce(e,t){if(!e)throw new Error("Iterable cannot be null");return new M((function(o){Ee(o,t,(function(){var r=e[Symbol.asyncIterator]();Ee(o,t,(function(){r.next().then((function(e){e.done?o.complete():o.next(e.value)}))}),0,!0)}))}))}function _e(e,t){return t?function(e,t){if(null!=e){if(le(e))return function(e,t){return fe(e).pipe(Ae(t),Ie(t))}(e,t);if(ue(e))return function(e,t){return new M((function(o){var r=0;return t.schedule((function(){r===e.length?o.complete():(o.next(e[r++]),o.closed||this.schedule())}))}))}(e,t);if(ce(e))return function(e,t){return fe(e).pipe(Ae(t),Ie(t))}(e,t);if(pe(e))return Ce(e,t);if(ge(e))return function(e,t){return new M((function(o){var r;return Ee(o,t,(function(){r=e[me](),Ee(o,t,(function(){var e,t,i;try{t=(e=r.next()).value,i=e.done}catch(e){return void o.error(e)}i?o.complete():o.next(t)}),0,!0)})),function(){return c(null==r?void 0:r.return)&&r.return()}}))}(e,t);if(Se(e))return function(e,t){return Ce(ve(e),t)}(e,t)}throw he(e)}(e,t):fe(e)}function be(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return _e(e,de(e))}function Re(e,t){var o=c(e)?e:function(){return e};return new M((function(e){return e.error(o())}))}var Te=l((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}));function Oe(e,t){return new Promise((function(t,o){var r,i=!1;e.subscribe({next:function(e){r=e,i=!0},error:o,complete:function(){i?t(r):o(new Te)}})}))}function De(e,t){return new Promise((function(t,o){var r=new _({next:function(e){t(e),r.unsubscribe()},error:o,complete:function(){o(new Te)}});e.subscribe(r)}))}function we(e){return e instanceof Date&&!isNaN(e)}var Me=l((function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}}));function Ne(e,t){var o=we(e)?{first:e}:"number"==typeof e?{each:e}:e,r=o.first,i=o.each,n=o.with,s=void 0===n?Pe:n,a=o.scheduler,d=void 0===a?ee:a,u=o.meta,c=void 0===u?null:u;if(null==r&&null==i)throw new TypeError("No timeout provided.");return P((function(e,t){var o,n,a=null,u=0,l=function(e){n=Ee(t,d,(function(){try{o.unsubscribe(),fe(s({meta:c,lastValue:a,seen:u})).subscribe(t)}catch(e){t.error(e)}}),e)};o=e.subscribe(L(t,(function(e){null==n||n.unsubscribe(),u++,t.next(a=e),i>0&&l(i)}),void 0,void 0,(function(){(null==n?void 0:n.closed)||null==n||n.unsubscribe(),a=null}))),!u&&l(null!=r?"number"==typeof r?r:+r-d.now():i)}))}function Pe(e){throw new Me(e)}function Le(e,t){return P((function(o,r){var i=0;o.subscribe(L(r,(function(o){r.next(e.call(t,o,i++))})))}))}var ke=Array.isArray;function Ve(e){return Le((function(t){return function(e,t){return ke(t)?e.apply(void 0,a([],s(t))):e(t)}(e,t)}))}var Ue=Array.isArray,Be=Object.getPrototypeOf,je=Object.prototype,He=Object.keys;function xe(e,t,o,r,i,n,s,a){var d=[],u=0,c=0,l=!1,p=function(){!l||d.length||u||t.complete()},h=function(e){return u<r?m(e):d.push(e)},m=function(e){n&&t.next(e),u++;var i=!1;fe(o(e,c++)).subscribe(L(t,(function(e){n?h(e):t.next(e)}),(function(){i=!0}),void 0,(function(){if(i)try{for(u--;d.length&&u<r;)void 0,e=d.shift(),s||m(e);p()}catch(e){t.error(e)}var e})))};return e.subscribe(L(t,h,(function(){l=!0,p()}))),function(){}}function Fe(e,t,o){return void 0===o&&(o=1/0),c(t)?Fe((function(o,r){return Le((function(e,i){return t(o,e,r,i)}))(fe(e(o,r)))}),o):("number"==typeof t&&(o=t),P((function(t,r){return xe(t,r,e,o)})))}function $e(e){return void 0===e&&(e=1/0),Fe(O,e)}function Ge(){return $e(1)}function We(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ge()(_e(e,de(e)))}function Ke(e){return new M((function(t){fe(e()).subscribe(t)}))}function ze(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=ae(e),r=function(e){if(1===e.length){var t=e[0];if(Ue(t))return{args:t,keys:null};if((r=t)&&"object"==typeof r&&Be(r)===je){var o=He(t);return{args:o.map((function(e){return t[e]})),keys:o}}}var r;return{args:e,keys:null}}(e),i=r.args,n=r.keys,s=new M((function(e){var t=i.length;if(t)for(var o=new Array(t),r=t,s=t,a=function(t){var a=!1;fe(i[t]).subscribe(L(e,(function(e){a||(a=!0,s--),o[t]=e}),(function(){return r--}),void 0,(function(){r&&a||(s||e.next(n?function(e,t){return e.reduce((function(e,o,r){return e[o]=t[r],e}),{})}(n,o):o),e.complete())})))},d=0;d<t;d++)a(d);else e.complete()}));return o?s.pipe(Ve(o)):s}var qe=["addListener","removeListener"],Je=["addEventListener","removeEventListener"],Qe=["on","off"];function Ye(e,t,o,r){if(c(o)&&(r=o,o=void 0),r)return Ye(e,t,o).pipe(Ve(r));var i=s(function(e){return c(e.addEventListener)&&c(e.removeEventListener)}(e)?Je.map((function(r){return function(i){return e[r](t,i,o)}})):function(e){return c(e.addListener)&&c(e.removeListener)}(e)?qe.map(Ze(e,t)):function(e){return c(e.on)&&c(e.off)}(e)?Qe.map(Ze(e,t)):[],2),n=i[0],a=i[1];if(!n&&ue(e))return Fe((function(e){return Ye(e,t,o)}))(fe(e));if(!n)throw new TypeError("Invalid event target");return new M((function(e){var t=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return e.next(1<t.length?t:t[0])};return n(t),function(){return a(t)}}))}function Ze(e,t){return function(o){return function(r){return e[o](t,r)}}}function Xe(e,t,o){return o?Xe(e,t).pipe(Ve(o)):new M((function(o){var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.next(1===e.length?e[0]:e)},i=e(r);return c(t)?function(){return t(r,i)}:void 0}))}function et(e,t,o){void 0===e&&(e=0),void 0===o&&(o=te);var r=-1;return null!=t&&(ne(t)?o=t:r=t),new M((function(t){var i=we(e)?+e-o.now():e;i<0&&(i=0);var n=0;return o.schedule((function(){t.closed||(t.next(n++),0<=r?this.schedule(void 0,r):t.complete())}),i)}))}function tt(e,t){return void 0===e&&(e=0),void 0===t&&(t=ee),e<0&&(e=0),et(e,e,t)}function ot(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=de(e),r=function(e){return"number"==typeof se(e)?e.pop():1/0}(e),i=e;return i.length?1===i.length?fe(i[0]):$e(r)(_e(i,o)):ie}var rt=new M(E),it=Array.isArray;function nt(e,t){return function(o,r){return!e.call(t,o,r)}}function st(e,t){return P((function(o,r){var i=0;o.subscribe(L(r,(function(o){return e.call(t,o,i++)&&r.next(o)})))}))}function at(){for(var e,t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===(t=1===(e=t).length&&it(e[0])?e[0]:e).length?fe(t[0]):new M(function(e){return function(t){for(var o=[],r=function(r){o.push(fe(e[r]).subscribe(L(t,(function(e){if(o){for(var i=0;i<o.length;i++)i!==r&&o[i].unsubscribe();o=null}t.next(e)}))))},i=0;o&&!t.closed&&i<e.length;i++)r(i)}}(t))}function dt(e){return P((function(t,o){var r,i=null,n=!1;i=t.subscribe(L(o,void 0,void 0,(function(s){r=fe(e(s,dt(e)(t))),i?(i.unsubscribe(),i=null,r.subscribe(o)):n=!0}))),n&&(i.unsubscribe(),i=null,r.subscribe(o))}))}function ut(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=de(e);return P((function(t,r){Ge()(_e(a([t],s(e)),o)).subscribe(r)}))}function ct(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ut.apply(void 0,a([],s(e)))}function lt(e){return e<=0?function(){return ie}:P((function(t,o){var r=0;t.subscribe(L(o,(function(t){++r<=e&&(o.next(t),e<=r&&o.complete())})))}))}function pt(){return P((function(e,t){e.subscribe(L(t,E))}))}function ht(e){return Le((function(){return e}))}function mt(e,t){return Fe((function(t,o){return fe(e(t,o)).pipe(lt(1),ht(t))}))}function gt(e,t){void 0===t&&(t=ee);var o=et(e,t);return mt((function(){return o}))}function vt(e,t,o){return void 0===o&&(o=1/0),c(t)?Fe((function(){return e}),t,o):Fe((function(){return e}),o)}function St(e,t){return P(function(e,t,o){return function(r,i){var n=o,s=t,a=0;r.subscribe(L(i,(function(t){var o=a++;s=n?e(s,t,o):(n=!0,t),i.next(s)}),undefined))}}(e,t,arguments.length>=2))}function ft(e){return P((function(t,o){var r=!1,i=0;t.subscribe(L(o,(function(t){return(r||(r=!e(t,i++)))&&o.next(t)})))}))}function yt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=de(e);return P((function(t,r){(o?We(e,t,o):We(e,t)).subscribe(r)}))}function Et(e,t){return P((function(o,r){var i=null,n=0,s=!1,a=function(){return s&&!i&&r.complete()};o.subscribe(L(r,(function(o){null==i||i.unsubscribe();var s=0,d=n++;fe(e(o,d)).subscribe(i=L(r,(function(e){return r.next(t?t(o,e,d,s++):e)}),(function(){i=null,a()})))}),(function(){s=!0,a()})))}))}function It(e){return P((function(t,o){fe(e).subscribe(L(o,(function(){return o.complete()}),E)),!o.closed&&t.subscribe(o)}))}function At(e,t){return void 0===t&&(t=!1),P((function(o,r){var i=0;o.subscribe(L(r,(function(o){var n=e(o,i++);(n||t)&&r.next(o),!n&&r.complete()})))}))}function Ct(e,t,o){var r=c(e)||t||o?{next:e,error:t,complete:o}:e;return r?P((function(e,t){var o;null===(o=r.subscribe)||void 0===o||o.call(r);var i=!0;e.subscribe(L(t,(function(e){var o;null===(o=r.next)||void 0===o||o.call(r,e),t.next(e)}),(function(){var e;i=!1,null===(e=r.complete)||void 0===e||e.call(r),t.complete()}),(function(e){var o;i=!1,null===(o=r.error)||void 0===o||o.call(r,e),t.error(e)}),(function(){var e,t;i&&(null===(e=r.unsubscribe)||void 0===e||e.call(r)),null===(t=r.finalize)||void 0===t||t.call(r)})))})):O}function _t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=ae(e);return P((function(t,r){for(var i=e.length,n=new Array(i),d=e.map((function(){return!1})),u=!1,c=function(t){fe(e[t]).subscribe(L(r,(function(e){n[t]=e,u||d[t]||(d[t]=!0,(u=d.every(O))&&(d=null))}),E))},l=0;l<i;l++)c(l);t.subscribe(L(r,(function(e){if(u){var t=a([e],s(n));r.next(o?o.apply(void 0,a([],s(t))):t)}})))}))}function bt(e){return bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bt(e)}function Rt(e,t,o){return(t=function(e){var t=function(e,t){if("object"!=bt(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,t);if("object"!=bt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==bt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Tt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function Ot(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(o),!0).forEach((function(t){Rt(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Tt(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function Dt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var wt="function"==typeof Symbol&&Symbol.observable||"@@observable",Mt=function(){return Math.random().toString(36).substring(7).split("").join(".")},Nt={INIT:"@@redux/INIT"+Mt(),REPLACE:"@@redux/REPLACE"+Mt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Mt()}};function Pt(e,t,o){var r;if("function"==typeof t&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(Dt(0));if("function"==typeof t&&void 0===o&&(o=t,t=void 0),void 0!==o){if("function"!=typeof o)throw new Error(Dt(1));return o(Pt)(e,t)}if("function"!=typeof e)throw new Error(Dt(2));var i=e,n=t,s=[],a=s,d=!1;function u(){a===s&&(a=s.slice())}function c(){if(d)throw new Error(Dt(3));return n}function l(e){if("function"!=typeof e)throw new Error(Dt(4));if(d)throw new Error(Dt(5));var t=!0;return u(),a.push(e),function(){if(t){if(d)throw new Error(Dt(6));t=!1,u();var o=a.indexOf(e);a.splice(o,1),s=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(Dt(7));if(void 0===e.type)throw new Error(Dt(8));if(d)throw new Error(Dt(9));try{d=!0,n=i(n,e)}finally{d=!1}for(var t=s=a,o=0;o<t.length;o++)(0,t[o])();return e}return p({type:Nt.INIT}),(r={dispatch:p,subscribe:l,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Dt(10));i=e,p({type:Nt.REPLACE})}})[wt]=function(){var e,t=l;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Dt(11));function o(){e.next&&e.next(c())}return o(),{unsubscribe:t(o)}}})[wt]=function(){return this},e},r}function Lt(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var kt=function(e){function t(t,o){var r=e.call(this,(function(e){var t=r.__notifier.subscribe(e);return t&&!t.closed&&e.next(r.value),t}))||this;return r.__notifier=new B,r.value=o,t.subscribe((function(e){e!==r.value&&(r.value=e,r.__notifier.next(e))})),r}return o(t,e),t}(M),Vt=function(e,t){return e===t||"function"==typeof t&&e===t.toString()};function Ut(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=e.length;return st(1===o?function(t){return Vt(t.type,e[0])}:function(t){for(var r=0;r<o;r++)if(Vt(t.type,e[r]))return!0;return!1})}var Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function jt(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function Ht(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}("object"===("undefined"==typeof global?"undefined":Bt(global))&&global?global:"undefined"!=typeof window?window:{}).DeepDiff,jt((function e(t,o,r){e.super_.call(this,"E",t),Object.defineProperty(this,"lhs",{value:o,enumerable:!0}),Object.defineProperty(this,"rhs",{value:r,enumerable:!0})}),Ht),jt((function e(t,o){e.super_.call(this,"N",t),Object.defineProperty(this,"rhs",{value:o,enumerable:!0})}),Ht),jt((function e(t,o){e.super_.call(this,"D",t),Object.defineProperty(this,"lhs",{value:o,enumerable:!0})}),Ht),jt((function e(t,o,r){e.super_.call(this,"A",t),Object.defineProperty(this,"index",{value:o,enumerable:!0}),Object.defineProperty(this,"item",{value:r,enumerable:!0})}),Ht);var xt,Ft,$t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Gt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wt=(Ft||(Ft=1,xt=function(e,t,o,r,i,n,s,a){if(!e){var d;if(void 0===t)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[o,r,i,n,s,a],c=0;(d=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw d.framesToPop=1,d}}),xt),Kt=Gt(Wt),zt=function(e){return"function"==typeof e},qt=function(e){return e.toString()},Jt=function(e){return"string"==typeof e},Qt="||",Yt=function(e){return e},Zt=function(e){return null===e};function Xt(e,t,o){void 0===t&&(t=Yt),Kt(zt(t)||Zt(t),"Expected payloadCreator to be a function, undefined or null");var r=Zt(t)||t===Yt?Yt:function(e){for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return e instanceof Error?e:t.apply(void 0,[e].concat(r))},i=zt(o),n=e.toString(),s=function(){var t=r.apply(void 0,arguments),n={type:e};return t instanceof Error&&(n.error=!0),void 0!==t&&(n.payload=t),i&&(n.meta=o.apply(void 0,arguments)),n};return s.toString=function(){return n},s}var eo,to,oo,ro,io,no,so=function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},ao=function(e){return Array.isArray(e)},uo=function(e){return null==e};var co=Gt(function(){if(no)return io;no=1;var e=function(){if(ro)return oo;ro=1;var e=function(){if(to)return eo;to=1,eo=function(n){return e.test(n)?n.toLowerCase():t.test(n)?(function(e){return e.replace(r,(function(e,t){return t?" "+t:""}))}(n)||n).toLowerCase():o.test(n)?function(e){return e.replace(i,(function(e,t,o){return t+" "+o.toLowerCase().split("").join(" ")}))}(n).toLowerCase():n.toLowerCase()};var e=/\s/,t=/(_|-|\.|:)/,o=/([a-z][A-Z]|[A-Z][a-z])/,r=/[\W_]+(.|$)/g,i=/(.)([A-Z]+)/g;return eo}();return oo=function(t){return e(t).replace(/[\W_]+(.|$)/g,(function(e,t){return t?" "+t:""})).trim()}}();return io=function(t){return e(t).replace(/\s(\w)/g,(function(e,t){return t.toUpperCase()}))}}()),lo=function(e){return-1===e.indexOf("/")?co(e):e.split("/").map(co).join("/")},po=function(e,t){return e.reduce((function(e,o){return t(e,o)}),{})},ho=function(e){return"undefined"!=typeof Map&&e instanceof Map};function mo(e){if(ho(e))return Array.from(e.keys());if("undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys)return Reflect.ownKeys(e);var t=Object.getOwnPropertyNames(e);return"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e))),t}function go(e,t){return ho(t)?t.get(e):t[e]}var vo=function(e){return function t(o,r,i,n){var s=void 0===r?{}:r,a=s.namespace,d=void 0===a?"/":a,u=s.prefix;return void 0===i&&(i={}),void 0===n&&(n=""),mo(o).forEach((function(r){var s=function(e){return n||!u||u&&new RegExp("^"+u+d).test(e)?e:""+u+d+e}(function(e){var t;if(!n)return e;var o=e.toString().split(Qt),r=n.split(Qt);return(t=[]).concat.apply(t,r.map((function(e){return o.map((function(t){return""+e+d+t}))}))).join(Qt)}(r)),a=go(r,o);e(a)?t(a,{namespace:d,prefix:u},i,s):i[s]=a})),i}},So=vo(so);function fo(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},r=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),r.forEach((function(t){yo(e,t,o[t])}))}return e}function yo(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Eo(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];var i,n=so((i=o)[i.length-1])?o.pop():{};return Kt(o.every(Jt)&&(Jt(e)||so(e)),"Expected optional object followed by string action types"),Jt(e)?Ao([e].concat(o),n):fo({},function(e,t){return function(e,t){var o=void 0===t?{}:t,r=o.namespace,i=void 0===r?"/":r,n=o.prefix;function s(t,o,r){var i=lo(r.shift());0===r.length?o[i]=e[t]:(o[i]||(o[i]={}),s(t,o[i],r))}var a={};return Object.getOwnPropertyNames(e).forEach((function(e){var t=n?e.replace(""+n+i,""):e;return s(e,a,t.split(i))})),a}(Io(So(e,t)),t)}(e,n),Ao(o,n))}function Io(e,t){var o=void 0===t?{}:t,r=o.prefix,i=o.namespace,n=void 0===i?"/":i;return po(Object.keys(e),(function(t,o){var i,s=e[o];Kt(function(e){if(zt(e)||uo(e))return!0;if(ao(e)){var t=e[0],o=void 0===t?Yt:t,r=e[1];return zt(o)&&zt(r)}return!1}(s),"Expected function, undefined, null, or array with payload and meta functions for "+o);var a=r?""+r+n+o:o,d=ao(s)?Xt.apply(void 0,[a].concat(s)):Xt(a,s);return fo({},t,((i={})[o]=d,i))}))}function Ao(e,t){var o=Io(po(e,(function(e,t){var o;return fo({},e,((o={})[t]=Yt,o))})),t);return po(Object.keys(o),(function(e,t){var r;return fo({},e,((r={})[lo(t)]=o[t],r))}))}var Co=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];var r="function"!=typeof t[t.length-1]&&t.pop(),i=t;if(void 0===r)throw new TypeError("The initial state may not be undefined. If you do not want to set a value for this reducer, you can use null instead of undefined.");return function(e,t){for(var o=arguments.length,n=Array(o>2?o-2:0),s=2;s<o;s++)n[s-2]=arguments[s];var a=void 0===e,d=void 0===t;return a&&d&&r?r:i.reduce((function(e,o){return o.apply(void 0,[e,t].concat(n))}),a&&!d&&r?r:e)}},_o=vo((function(e){return(so(e)||ho(e))&&!function(e){var t=mo(e),o=t.every((function(e){return"next"===e||"throw"===e}));return t.length&&t.length<=2&&o}(e)}));function bo(e,t,o){void 0===o&&(o={}),Kt(so(e)||ho(e),"Expected handlers to be a plain object.");var r=_o(e,o),i=mo(r).map((function(e){return function(e,t,o){void 0===t&&(t=Yt);var r=qt(e).split(Qt);Kt(!(void 0===o),"defaultState for reducer handling "+r.join(", ")+" should be defined"),Kt(zt(t)||so(t),"Expected reducer to be a function or object with next and throw reducers");var i=zt(t)?[t,t]:[t.next,t.throw].map((function(e){return uo(e)?Yt:e})),n=i[0],s=i[1];return function(e,t){void 0===e&&(e=o);var i=t.type;return i&&-1!==r.indexOf(qt(i))?(!0===t.error?s:n)(e,t):e}}(e,go(e,r),t)})),n=Co.apply(void 0,i.concat([t]));return function(e,o){return void 0===e&&(e=t),n(e,o)}}const Ro=Xt("CONNECT_ZOOM_SOCKET"),To=Xt("CONNECT_XMPP_SOCKET"),Oo=Xt("CLOSE_ZOOM_SOCKET"),Do=Xt("CLOSE_XMPP_SOCKET"),wo=Xt("RECEIVE_MESSAGE_FROM_ZOOM_SOCKET"),Mo=Xt("RECEIVE_SHARING_PAYLOAD_FROM_ZOOM_SOCKET"),No=Xt("RECEIVE_MESSAGE_FROM_XMPP_SOCKET"),Po=Xt("CONNECT_MAIN_SESSION_SOCKET"),Lo=Xt("CLOSE_MAIN_SESSION_SOCKET"),ko=Xt("RECEIVE_MESSAGE_FROM_MAIN_SESSION_SOCKET"),{setZoomSocketStatus:Vo,setRwgServersList:Uo,setRwgRetryCount:Bo,setXmppSocketStatus:jo,setMainSessionSocketStatus:Ho,resetSocket:xo}=Eo("SET_ZOOM_SOCKET_STATUS","SET_RWG_SERVERS_LIST","SET_RWG_RETRY_COUNT","SET_XMPP_SOCKET_STATUS","SET_MAIN_SESSION_SOCKET_STATUS","RESET_SOCKET"),Fo=Xt("CONNECT_TO_MEDIA_STREAM"),$o=Xt("RECEIVE_PAYLOAD_FROM_MEDIA_SDK"),{setAudioEncodeStatus:Go,setAudioDecodeStatus:Wo,setVideoEncodeStatus:Ko,setVideoDecodeStatus:zo,setSharingEncodeStatus:qo,setSharingDecodeStatus:Jo,setMediaConstraints:Qo,setMediaEncryptKey:Yo,setIsEnableDecoderInWorklet:Zo,setPatchedMediaSdkStatus:Xo,setMediaAssetsPath:er,setIsMediaAgentInitialized:tr,resetMedia:or}=Eo("SET_AUDIO_ENCODE_STATUS","SET_AUDIO_DECODE_STATUS","SET_VIDEO_ENCODE_STATUS","SET_VIDEO_DECODE_STATUS","SET_SHARING_ENCODE_STATUS","SET_SHARING_DECODE_STATUS","SET_MEDIA_CONSTRAINTS","SET_MEDIA_ENCRYPT_KEY","SET_IS_ENABLE_DECODER_IN_WORKLET","SET_PATCHED_MEDIA_SDK_STATUS","SET_MEDIA_ASSETS_PATH","SET_IS_MEDIA_AGENT_INITIALIZED","RESET_MEDIA");function rr(e,t,...o){return e(be(...o||[]),t,null)}function ir(...e){const t=(...t)=>ot(...e.map((e=>{const o=e(...t);if(!o)throw new TypeError(`combineEpics: one of the provided Epics "${e.name||"<anonymous>"}" does not return a stream. Double check you're not missing a return statement!`);return o.pipe(dt(((e,t)=>(setTimeout((()=>{throw e}),0),t))))})));try{Object.defineProperty(t,"name",{value:`combineEpics(${e.map((e=>e.name||"<anonymous>")).join(", ")})`})}catch(e){}return t}function nr(...e){return ir(...e.flatMap((e=>Object.values(e))))}function sr(e,t){return e.pipe(Ut(`${wo}`),st((e=>e.payload.evt===t)))}function ar(e,t){return e.pipe(Ut(`${ko}`),st((e=>e.payload.evt===t)))}function dr(e,t){return e.pipe(Ut(`${No}`),st((e=>e.payload.evt===t)))}function ur(e,t){return e.pipe(Ut(`${wo}`,`${ko}`),st((e=>e.payload.evt===t)))}function cr(e,t){return e.pipe(Ut(`${$o}`),st((e=>Array.isArray(t)?t.indexOf(e.payload.type)>-1:e.payload.type===t)))}function lr(e,t){return e.pipe(Ut(`${Fo}`),st((()=>{const{media:{assetsPath:e,mediaConstraints:o}}=t.value;return void 0!==e&&void 0!==o})),Et((()=>{const{media:{isMediaAgentInitialized:o}}=t.value;return o?_e([0]):e.pipe(Ut(`${tr}`),st((e=>!!e.payload)),lt(1))})))}function pr(e,t,o){const r=document.createElement("script");r.type="text/javascript",r.readyState?r.onreadystatechange=()=>{"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,t())}:(r.onload=()=>{t()},r.onerror=()=>{o()}),r.src=e,window.crossOriginIsolated&&(r.crossOrigin="anonymous"),"function"==typeof document.body.append?document.getElementsByTagName("head")[0].append(r):document.getElementsByTagName("head")[0].appendChild(r)}function hr(e,t){let o=e;/^https?:\/\//.test(o)||(o=`https://${e}`);try{const e=new URL(o);if(!t)return e.href;if(t.hostname)return e.hostname;if(t.path)return e.pathname}catch(e){return""}return""}function mr(e){if(e){var t;const o=document.getElementById(e);null==o||null===(t=o.parentNode)||void 0===t||t.removeChild(o)}}function gr(e,t){if(!e||"string"==typeof e)return!1;if(e.ownerDocument===window.document)return e instanceof t;{var o;const r=null===(o=e.ownerDocument)||void 0===o?void 0:o.defaultView;let i;return!!r&&("HTMLVideoElement"===t.name?i=r.HTMLVideoElement:"HTMLCanvasElement"===t.name?i=r.HTMLCanvasElement:"HTMLElement"===t.name&&(i=r.HTMLElement),!!i&&e instanceof i||e instanceof t)}}function vr(e){return gr(e,HTMLVideoElement)}function Sr(e){return gr(e,HTMLCanvasElement)}function fr(e,t){return Array.from(document.getElementsByTagName(t)).some((t=>t.contains(e)))}function yr(e,t,o){const r=e.parentElement;if(!r)return null;const i=document.createElement("canvas");i.id=t,null==r||r.appendChild(i);let n=null;function s(){o&&o()}return"undefined"!=typeof ResizeObserver?(n=new ResizeObserver(s),n.observe(e),r&&n.observe(r)):window.addEventListener("resize",s),s(),i._overlayCleanup=function(){n?(n.unobserve(e),r&&n.unobserve(r),n.disconnect(),n=null):window.removeEventListener("resize",s),"function"==typeof i.remove?i.remove():r&&r.removeChild(i)},i}function Er(e){var t,o,r,i,n;const s=e.getBoundingClientRect(),a=e.width,d=e.height,u=getComputedStyle(e),c=parseFloat(u.borderTopWidth)||0,l=parseFloat(u.borderLeftWidth)||0,p=parseFloat(u.borderRightWidth)||0,h=parseFloat(u.borderBottomWidth)||0,m=Math.max(a/(s.width-l-p),d/(s.height-c-h)),g={width:a/m,height:d/m},v=null==e||null===(t=e.parentElement)||void 0===t?void 0:t.getBoundingClientRect(),S=(null!==(o=null==s?void 0:s.top)&&void 0!==o?o:0)-(null!==(r=null==v?void 0:v.top)&&void 0!==r?r:0),f=(null!==(i=null==s?void 0:s.left)&&void 0!==i?i:0)-(null!==(n=null==v?void 0:v.left)&&void 0!==n?n:0);return{size:g,position:{top:`${S+((s.height-c-h-g.height)/2+c)}px`,left:`${f+((s.width-l-p-g.width)/2+l)}px`}}}let Ir="zoom.us";const Ar="4.0.0",Cr=`https://dmogdx0jrul3u.cloudfront.net/${Ar}/lib/av`,_r=`https://source.zoom.us/${Ar}/lib/av`,br=`https://jssdk.zoomus.cn/${Ar}/lib/av`,Rr=()=>Ir,Tr="function"==typeof Buffer,Or="function"==typeof TextDecoder?new TextDecoder:void 0,Dr="function"==typeof TextEncoder?new TextEncoder:void 0,wr=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Mr=(()=>{let e={};return wr.forEach(((t,o)=>e[t]=o)),e})(),Nr=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Pr=String.fromCharCode.bind(String),Lr="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),kr=e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_")),Vr=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),Ur="function"==typeof btoa?e=>btoa(e):Tr?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,o,r,i,n="";const s=e.length%3;for(let s=0;s<e.length;){if((o=e.charCodeAt(s++))>255||(r=e.charCodeAt(s++))>255||(i=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");t=o<<16|r<<8|i,n+=wr[t>>18&63]+wr[t>>12&63]+wr[t>>6&63]+wr[63&t]}return s?n.slice(0,s-3)+"===".substring(s):n},Br=Tr?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let o=0,r=e.length;o<r;o+=4096)t.push(Pr.apply(null,e.subarray(o,o+4096)));return Ur(t.join(""))},jr=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?Pr(192|t>>>6)+Pr(128|63&t):Pr(224|t>>>12&15)+Pr(128|t>>>6&63)+Pr(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return Pr(240|t>>>18&7)+Pr(128|t>>>12&63)+Pr(128|t>>>6&63)+Pr(128|63&t)},Hr=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,xr=Tr?e=>Buffer.from(e,"utf8").toString("base64"):Dr?e=>Br(Dr.encode(e)):e=>Ur((e=>e.replace(Hr,jr))(e)),Fr=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,$r=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return Pr((t>>>10)+55296)+Pr(56320+(1023&t));case 3:return Pr((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Pr((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Gr="function"==typeof atob?e=>atob(Vr(e)):Tr?e=>Buffer.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!Nr.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,o,r,i="";for(let n=0;n<e.length;)t=Mr[e.charAt(n++)]<<18|Mr[e.charAt(n++)]<<12|(o=Mr[e.charAt(n++)])<<6|(r=Mr[e.charAt(n++)]),i+=64===o?Pr(t>>16&255):64===r?Pr(t>>16&255,t>>8&255):Pr(t>>16&255,t>>8&255,255&t);return i},Wr=Tr?e=>Lr(Buffer.from(e,"base64")):e=>Lr(Gr(e).split("").map((e=>e.charCodeAt