UNPKG

@zoom/videosdk

Version:
1 lines 1.84 MB
function e(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var t=0;function i(e){return"__private_"+t+++"_"+e}function r(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)}return i}function n(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?s(Object(i),!0).forEach(function(t){r(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function a(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var o=0;function l(e){return"__private_"+o+++"_"+e}const d=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),c=(()=>{const e={};return d.forEach((t,i)=>e[t]=i),e})(),h=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,u=String.fromCharCode.bind(String),f=e=>{if(e.length<2){const t=e.charCodeAt(0);return t<128?e:t<2048?u(192|t>>>6)+u(128|63&t):u(224|t>>>12&15)+u(128|t>>>6&63)+u(128|63&t)}{const t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return u(240|t>>>18&7)+u(128|t>>>12&63)+u(128|t>>>6&63)+u(128|63&t)}},p=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,g=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,m=e=>{switch(e.length){case 4:const t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return u((t>>>10)+55296)+u(56320+(1023&t));case 3:return u((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return u((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},v=(e,t=!1)=>{const i=(e=>{let t,i,r,s,n="";const a=e.length%3;for(let a=0;a<e.length;){if((i=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(s=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=i<<16|r<<8|s,n+=d[t>>18&63]+d[t>>12&63]+d[t>>6&63]+d[63&t]}return a?n.slice(0,a-3)+"===".substring(a):n})(e.replace(p,f));return t?(e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"))(i):i},S="6.1.0",y=`https://dmogdx0jrul3u.cloudfront.net/${S}/lib/av`,A=`https://source.zoom.us/${S}/lib/av`,E=`https://jssdk.zoomus.cn/${S}/lib/av`;var b=function(e,t){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},b(e,t)};function T(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var C=function(){return C=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var s in t=arguments[i])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},C.apply(this,arguments)};function w(e,t){var i,r,s,n,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return n={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function o(n){return function(o){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,r&&(s=2&n[0]?r.return:n[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[2&n[0],s.value]),n[0]){case 0:case 1:s=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!((s=(s=a.trys).length>0&&s[s.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){a.label=n[1];break}if(6===n[0]&&a.label<s[1]){a.label=s[1],s=n;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(n);break}s[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(e){n=[6,e],r=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,o])}}}function R(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],r=0;if(i)return i.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 I(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var r,s,n=i.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)a.push(r.value)}catch(e){s={error:e}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(s)throw s.error}}return a}function D(e,t){for(var i=0,r=t.length,s=e.length;i<r;i++,s++)e[s]=t[i];return e}function k(e){return this instanceof k?(this.v=e,this):new k(e)}function M(e){return"function"==typeof e}function P(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 O=P(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 L(e,t){if(e){var i=e.indexOf(t);0<=i&&e.splice(i,1)}}var x=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,i,r,s;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var a=R(n),o=a.next();!o.done;o=a.next())o.value.remove(this)}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else n.remove(this);var l=this.initialTeardown;if(M(l))try{l()}catch(e){s=e instanceof O?e.errors:[e]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var c=R(d),h=c.next();!h.done;h=c.next()){var u=h.value;try{V(u)}catch(e){s=null!=s?s:[],e instanceof O?s=D(D([],I(s)),I(e.errors)):s.push(e)}}}catch(e){i={error:e}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(i)throw i.error}}}if(s)throw new O(s)}},e.prototype.add=function(t){var i;if(t&&t!==this)if(this.closed)V(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(i=this._finalizers)&&void 0!==i?i:[]).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)&&L(t,e)},e.prototype.remove=function(t){var i=this._finalizers;i&&L(i,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}();function N(e){return e instanceof x||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function V(e){M(e)?e():e.unsubscribe()}x.EMPTY;var U=void 0;function B(e){!function(e,t){for(var i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];setTimeout.apply(void 0,D([e,t],I(i)))}(function(){throw e})}function F(){}var W=function(e){function t(t){var i=e.call(this)||this;return i.isStopped=!1,t?(i.destination=t,N(t)&&t.add(i)):i.destination=$,i}return T(t,e),t.create=function(e,t,i){return new H(e,t,i)},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}(x),G=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){j(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){j(e)}else j(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){j(e)}},e}(),H=function(e){function t(t,i,r){var s,n=e.call(this)||this;return s=M(t)||!t?{next:null!=t?t:void 0,error:null!=i?i:void 0,complete:null!=r?r:void 0}:t,n.destination=new G(s),n}return T(t,e),t}(W);function j(e){B(e)}var $={closed:!0,next:F,error:function(e){throw e},complete:F},K="function"==typeof Symbol&&Symbol.observable||"@@observable";function z(e){return e}var q=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var i=new e;return i.source=this,i.operator=t,i},e.prototype.subscribe=function(e,t,i){var r,s=this,n=(r=e)&&r instanceof W||function(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}(r)&&N(r)?e:new H(e,t,i);return function(){var e=s,t=e.operator,i=e.source;n.add(t?t.call(n,i):i?s._subscribe(n):s._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 i=this;return new(t=Y(t))(function(t,r){var s=new H({next:function(t){try{e(t)}catch(e){r(e),s.unsubscribe()}},error:r,complete:t});i.subscribe(s)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[K]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return(0===(e=t).length?z:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Y(e))(function(e,i){var r;t.subscribe(function(e){return r=e},function(e){return i(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function Y(e){var t;return null!==(t=null!=e?e:U)&&void 0!==t?t:Promise}function X(e){return function(t){if(function(e){return M(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 Q(e,t,i,r,s){return new J(e,t,i,r,s)}var J=function(e){function t(t,i,r,s,n,a){var o=e.call(this,t)||this;return o.onFinalize=n,o.shouldUnsubscribe=a,o._next=i?function(e){try{i(e)}catch(e){t.error(e)}}:e.prototype._next,o._error=s?function(e){try{s(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,o._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,o}return T(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;e.prototype.unsubscribe.call(this),!i&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(W),Z=function(){return Date.now()},ee=function(e){function t(t,i){return e.call(this)||this}return T(t,e),t.prototype.schedule=function(e,t){return this},t}(x),te=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.scheduler=t,r.work=i,r.pending=!1,r}return T(t,e),t.prototype.schedule=function(e,t){var i;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,s=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(s,r,t)),this.pending=!0,this.delay=t,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(s,this.id,t),this},t.prototype.requestAsyncId=function(e,t,i){return void 0===i&&(i=0),function(e,t){for(var i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];return setInterval.apply(void 0,D([e,t],I(i)))}(e.flush.bind(e,this),i)},t.prototype.recycleAsyncId=function(e,t,i){if(void 0===i&&(i=0),null!=i&&this.delay===i&&!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 i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var i,r=!1;try{this.work(e)}catch(e){r=!0,i=e||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,i=this.scheduler,r=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,L(r,this),null!=t&&(this.id=this.recycleAsyncId(i,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(ee),ie=function(){function e(t,i){void 0===i&&(i=e.now),this.schedulerActionCtor=t,this.now=i}return e.prototype.schedule=function(e,t,i){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(i,t)},e.now=Z,e}(),re=new(function(e){function t(t,i){void 0===i&&(i=ie.now);var r=e.call(this,t,i)||this;return r.actions=[],r._active=!1,r}return T(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var i;this._active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}},t}(ie))(te),se=new q(function(e){return e.complete()}),ne=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function ae(e){return M(null==e?void 0:e.then)}function oe(e){return M(e[K])}function le(e){return Symbol.asyncIterator&&M(null==e?void 0:e[Symbol.asyncIterator])}function de(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 ce="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function he(e){return M(null==e?void 0:e[ce])}function ue(e){return function(e,t,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,s=i.apply(e,t||[]),n=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){s[e]&&(r[e]=function(t){return new Promise(function(i,r){n.push([e,t,i,r])>1||o(e,t)})})}function o(e,t){try{(i=s[e](t)).value instanceof k?Promise.resolve(i.value.v).then(l,d):c(n[0][2],i)}catch(e){c(n[0][3],e)}var i}function l(e){o("next",e)}function d(e){o("throw",e)}function c(e,t){e(t),n.shift(),n.length&&o(n[0][0],n[0][1])}}(this,arguments,function(){var t,i,r;return w(this,function(s){switch(s.label){case 0:t=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,k(t.read())];case 3:return i=s.sent(),r=i.value,i.done?[4,k(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,k(r)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function fe(e){return M(null==e?void 0:e.getReader)}function pe(e){if(e instanceof q)return e;if(null!=e){if(oe(e))return s=e,new q(function(e){var t=s[K]();if(M(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(ne(e))return r=e,new q(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()});if(ae(e))return i=e,new q(function(e){i.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,B)});if(le(e))return ge(e);if(he(e))return t=e,new q(function(e){var i,r;try{for(var s=R(t),n=s.next();!n.done;n=s.next()){var a=n.value;if(e.next(a),e.closed)return}}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}e.complete()});if(fe(e))return ge(ue(e))}var t,i,r,s;throw de(e)}function ge(e){return new q(function(t){(function(e,t){var i,r,s,n;return function(e,t,i,r){return new(i||(i=Promise))(function(t,s){function n(e){try{o(r.next(e))}catch(e){s(e)}}function a(e){try{o(r.throw(e))}catch(e){s(e)}}function o(e){var r;e.done?t(e.value):(r=e.value,r instanceof i?r:new i(function(e){e(r)})).then(n,a)}o((r=r.apply(e,[])).next())})}(this,0,void 0,function(){var a,o;return w(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),i=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e=R(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(t){return new Promise(function(r,s){!function(e,t,i,r){Promise.resolve(r).then(function(t){e({value:t,done:i})},t)}(r,s,(t=e[i](t)).done,t.value)})}}}(e),l.label=1;case 1:return[4,i.next()];case 2:if((r=l.sent()).done)return[3,4];if(a=r.value,t.next(a),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return o=l.sent(),s={error:o},[3,11];case 6:return l.trys.push([6,,9,10]),r&&!r.done&&(n=i.return)?[4,n.call(i)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(s)throw s.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function me(e,t,i,r,s){void 0===r&&(r=0),void 0===s&&(s=!1);var n=t.schedule(function(){i(),s?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(n),!s)return n}function ve(e,t){return void 0===t&&(t=0),X(function(i,r){i.subscribe(Q(r,function(i){return me(r,e,function(){return r.next(i)},t)},function(){return me(r,e,function(){return r.complete()},t)},function(i){return me(r,e,function(){return r.error(i)},t)}))})}function Se(e,t){return void 0===t&&(t=0),X(function(i,r){r.add(e.schedule(function(){return i.subscribe(r)},t))})}function _e(e,t){if(!e)throw new Error("Iterable cannot be null");return new q(function(i){me(i,t,function(){var r=e[Symbol.asyncIterator]();me(i,t,function(){r.next().then(function(e){e.done?i.complete():i.next(e.value)})},0,!0)})})}function ye(e,t){return t?function(e,t){if(null!=e){if(oe(e))return function(e,t){return pe(e).pipe(Se(t),ve(t))}(e,t);if(ne(e))return function(e,t){return new q(function(i){var r=0;return t.schedule(function(){r===e.length?i.complete():(i.next(e[r++]),i.closed||this.schedule())})})}(e,t);if(ae(e))return function(e,t){return pe(e).pipe(Se(t),ve(t))}(e,t);if(le(e))return _e(e,t);if(he(e))return function(e,t){return new q(function(i){var r;return me(i,t,function(){r=e[ce](),me(i,t,function(){var e,t,s;try{t=(e=r.next()).value,s=e.done}catch(e){return void i.error(e)}s?i.complete():i.next(t)},0,!0)}),function(){return M(null==r?void 0:r.return)&&r.return()}})}(e,t);if(fe(e))return function(e,t){return _e(ue(e),t)}(e,t)}throw de(e)}(e,t):pe(e)}var Ae=P(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}),Ee=P(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function be(e){throw new Ee(e)}function Te(e,t){return X(function(i,r){var s=0;i.subscribe(Q(r,function(i){r.next(e.call(t,i,s++))}))})}var Ce=Array.isArray;function we(e,t,i){return void 0===i&&(i=1/0),M(t)?we(function(i,r){return Te(function(e,s){return t(i,e,r,s)})(pe(e(i,r)))},i):("number"==typeof t&&(i=t),X(function(t,r){return function(e,t,i,r){var s=[],n=0,a=0,o=!1,l=function(){!o||s.length||n||t.complete()},d=function(e){n++;var o=!1;pe(i(e,a++)).subscribe(Q(t,function(e){t.next(e)},function(){o=!0},void 0,function(){if(o)try{n--;for(var e=function(){var e=s.shift();d(e)};s.length&&n<r;)e();l()}catch(e){t.error(e)}}))};return e.subscribe(Q(t,function(e){return n<r?d(e):s.push(e)},function(){o=!0,l()})),function(){}}(t,r,e,i)}))}var Re=["addListener","removeListener"],Ie=["addEventListener","removeEventListener"],De=["on","off"];function ke(e,t,i,r){if(M(i)&&(r=i,i=void 0),r)return ke(e,t,i).pipe(function(e){return Te(function(t){return function(e,t){return Ce(t)?e.apply(void 0,D([],I(t))):e(t)}(e,t)})}(r));var s=I(function(e){return M(e.addEventListener)&&M(e.removeEventListener)}(e)?Ie.map(function(r){return function(s){return e[r](t,s,i)}}):function(e){return M(e.addListener)&&M(e.removeListener)}(e)?Re.map(Me(e,t)):function(e){return M(e.on)&&M(e.off)}(e)?De.map(Me(e,t)):[],2),n=s[0],a=s[1];if(!n&&ne(e))return we(function(e){return ke(e,t,i)})(pe(e));if(!n)throw new TypeError("Invalid event target");return new q(function(e){var t=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return e.next(1<t.length?t:t[0])};return n(t),function(){return a(t)}})}function Me(e,t){return function(i){return function(r){return e[i](t,r)}}}function Pe(e){return e<=0?function(){return se}:X(function(t,i){var r=0;t.subscribe(Q(i,function(t){++r<=e&&(i.next(t),e<=r&&i.complete())}))})}function Oe(e){try{return new URL(e)}catch{return null}}class Le{constructor(e,t){this.fallbackState=void 0,this.zoomHostedCDNPairs=void 0,this.zoomHostedCDNPairs=[...new Set(e)].map((e,i,r)=>({primary:e,backup:r.filter(i=>![e,t].includes(i))})),void 0===Promise.withResolvers&&(Promise.withResolvers=()=>{let e,t;return{promise:new Promise((i,r)=>{e=i,t=r}),resolve:e,reject:t}})}loadExternalResource(e){const{promise:t,resolve:i,reject:r}=Promise.withResolvers(),s=()=>{e.parentNode&&e.parentNode.removeChild(e),e.onload=null,e.onerror=null,e.onreadystatechange&&(e.onreadystatechange=null)};e.readyState?e.onreadystatechange=()=>{"loaded"!==e.readyState&&"complete"!==e.readyState||(e.onreadystatechange=null,i(""))}:(e.onload=()=>{i("")},e.onerror=()=>{s(),r()}),window.crossOriginIsolated&&(e.crossOrigin="anonymous");const n=document.getElementsByTagName("head")[0];return"function"==typeof n.append?n.append(e):n.appendChild(e),{promise:t,cleanup:s}}loadScriptInternal(e,t,i,r){const s=document.createElement("script");s.type=r?"module":"text/javascript";const n=this.applyFallbackCDNForAssetUrl(e);s.src=n;const{promise:a,cleanup:o}=this.loadExternalResource(s),l=this.errorCallbackInternal.bind(this);ye(a).pipe(function(e){var t,i=(t=e)instanceof Date&&!isNaN(t)?{first:e}:"number"==typeof e?{each:e}:e,r=i.first,s=i.each,n=i.with,a=void 0===n?be:n,o=i.scheduler,l=void 0===o?re:o,d=i.meta,c=void 0===d?null:d;if(null==r&&null==s)throw new TypeError("No timeout provided.");return X(function(e,t){var i,n,o=null,d=0,h=function(e){n=me(t,l,function(){try{i.unsubscribe(),pe(a({meta:c,lastValue:o,seen:d})).subscribe(t)}catch(e){t.error(e)}},e)};i=e.subscribe(Q(t,function(e){null==n||n.unsubscribe(),d++,t.next(o=e),s>0&&h(s)},void 0,void 0,function(){(null==n?void 0:n.closed)||null==n||n.unsubscribe(),o=null})),!d&&h(null!=r?"number"==typeof r?r:+r-l.now():s)})}(Le.fetchTimeout)).subscribe({next(){t(n)},error(){o(),l(e,n,t,i,r)}})}applyFallbackCDNForAssetUrl(e){var t;const i=null===(t=Oe(e))||void 0===t?void 0:t.hostname;if(this.fallbackState&&i){const{failedDomains:t,domain:r,timestamp:s}=this.fallbackState;if(t.includes(i))if((new Date).getTime()-s<Le.fallbackTtl){if(r)return console.warn(`[AssetLoader] Using backup CDN: ${i} -> ${r}`),e.replace(i,r)}else this.fallbackState=void 0}return e}errorCallbackInternal(e,t,i,r,s){var n,a;const o=null===(n=Oe(e))||void 0===n?void 0:n.hostname,l=null===(a=Oe(t))||void 0===a?void 0:a.hostname,d=this.zoomHostedCDNPairs.find(e=>e.primary===o);if(d){const{backup:t}=d,n=this.fallbackState?[...this.fallbackState.failedDomains,l].filter(Boolean):[l].filter(Boolean),a=t.filter(e=>!n.includes(e));if(a.length>0&&l){var c;const t=a[0];console.warn(`[AssetLoader] CDN failed: ${o}, switching to: ${t}`),this.fallbackState={failedDomains:null!==(c=this.fallbackState)&&void 0!==c&&c.failedDomains?[...this.fallbackState.failedDomains,l]:[l],domain:t,timestamp:(new Date).getTime()},this.loadScriptInternal(e,i,r,s)}else console.warn(`[AssetLoader] All CDNs failed for: ${o}, URL: ${e}`),r()}else r()}loadScript(e,t,i,r){this.loadScriptInternal(e,t,i,r)}loadCSS(e,t,i){const r=document.createElement("link");r.href=e,r.type="text/css",r.rel="stylesheet",r.media="screen,print";const{promise:s,cleanup:n}=this.loadExternalResource(r);ye(s).subscribe({next(){t()},error(){n(),i()}})}}function xe(e,t){let i=e;/^https?:\/\//.test(i)||(i=`https://${e}`);try{const e=new URL(i);if(!t)return e.href;if(t.hostname)return e.hostname;if(t.path)return e.pathname}catch(e){return""}return""}Le.fallbackTtl=18e5,Le.fetchTimeout=3e4;const Ne=[y,E,A].map(e=>xe(e,{hostname:!0})),Ve=xe(E,{hostname:!0});function Ue(e){return v(e,!0)}function Be(e){return(e=>(e=>{if(e=e.replace(/\s+/g,""),!h.test(e))throw new TypeError("malformed base64.");let t;e+="==".slice(2-(3&e.length));let i,r,s="";for(let n=0;n<e.length;)t=c[e.charAt(n++)]<<18|c[e.charAt(n++)]<<12|(i=c[e.charAt(n++)])<<6|(r=c[e.charAt(n++)]),s+=64===i?u(t>>16&255):64===r?u(t>>16&255,t>>8&255):u(t>>16&255,t>>8&255,255&t);return s})(e.replace(/[-_]/g,e=>"-"==e?"+":"/").replace(/[^A-Za-z0-9\+\/]/g,"")).replace(g,m))(e)}new Le(Ne,Ve);const Fe=e=>{try{const t=new URL(e);return!("data:"===t.protocol&&"null"===t.origin)&&t.origin!==location.origin}catch(e){return!0}};var We="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var Ge,He={exports:{}},je=(Ge||(Ge=1,function(e){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},t(e,i)};function i(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}function r(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(i[r[s]]=e[r[s]])}return i}function s(e,t,i,r){return new(i||(i=Promise))(function(t,s){function n(e){try{o(r.next(e))}catch(e){s(e)}}function a(e){try{o(r.throw(e))}catch(e){s(e)}}function o(e){var r;e.done?t(e.value):(r=e.value,r instanceof i?r:new i(function(e){e(r)})).then(n,a)}o((r=r.apply(e,[])).next())})}function n(e,t){var i,r,s,n={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=o(0),a.throw=o(1),a.return=o(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(l){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(n=0)),n;)try{if(i=1,r&&(s=2&o[0]?r.return:o[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,o[1])).done)return s;switch(r=0,s&&(o=[2&o[0],s.value]),o[0]){case 0:case 1:s=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,r=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if(!((s=(s=n.trys).length>0&&s[s.length-1])||6!==o[0]&&2!==o[0])){n=0;continue}if(3===o[0]&&(!s||o[1]>s[0]&&o[1]<s[3])){n.label=o[1];break}if(6===o[0]&&n.label<s[1]){n.label=s[1],s=o;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(o);break}s[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],r=0}finally{i=s=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}function a(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],r=0;if(i)return i.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 o(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var r,s,n=i.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)a.push(r.value)}catch(e){s={error:e}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(s)throw s.error}}return a}function l(e,t,i){if(2===arguments.length)for(var r,s=0,n=t.length;s<n;s++)!r&&s in t||(r||(r=Array.prototype.slice.call(t,0,s)),r[s]=t[s]);return e.concat(r||Array.prototype.slice.call(t))}function d(e){return this instanceof d?(this.v=e,this):new d(e)}function c(e){this.message=e}c.prototype=new Error,c.prototype.name="InvalidCharacterError";var h,u,f="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new c("'atob' failed: The string to be decoded is not correctly encoded.");for(var i,r,s=0,n=0,a="";r=t.charAt(n++);~r&&(i=s%4?64*i+r:r,s++%4)?a+=String.fromCharCode(255&i>>(-2*s&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function p(e){this.message=e}function g(e,t){if("string"!=typeof e)throw new p("Invalid token specified");var i=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(f(e).replace(/(.)/g,function(e,t){var i=t.charCodeAt(0).toString(16).toUpperCase();return i.length<2&&(i="0"+i),"%"+i}))}(t)}catch(e){return f(t)}}(e.split(".")[i]))}catch(e){throw new p("Invalid token specified: "+e.message)}}p.prototype=new Error,p.prototype.name="InvalidTokenError",function(e){e[e.START_MEDIA=0]="START_MEDIA",e[e.ADD_RENDER_VIDEO=1]="ADD_RENDER_VIDEO",e[e.STOP_RENDER_VIDEO=2]="STOP_RENDER_VIDEO",e[e.START_CAPTURE_VIDEO=3]="START_CAPTURE_VIDEO",e[e.STOP_CAPTURE_VIDEO=4]="STOP_CAPTURE_VIDEO",e[e.ADD_RENDER_AUDIO=5]="ADD_RENDER_AUDIO",e[e.STOP_RENDER_AUDIO=6]="STOP_RENDER_AUDIO",e[e.UNMUTE_AUDIO=7]="UNMUTE_AUDIO",e[e.MUTE_AUDIO=8]="MUTE_AUDIO",e[e.CHANGE_FRAME_RATE=9]="CHANGE_FRAME_RATE",e[e.CHANGE_VIDEO_RESOLUTION=10]="CHANGE_VIDEO_RESOLUTION",e[e.CHANGE_AUDIO_SPEAKER=11]="CHANGE_AUDIO_SPEAKER",e[e.CHANGE_VIDEO_CAPTURE_DEVICE=12]="CHANGE_VIDEO_CAPTURE_DEVICE",e[e.CHANGE_CURRENT_ACTIVE_SSRC=13]="CHANGE_CURRENT_ACTIVE_SSRC",e[e.REMOVE_AUDIO_CAPTURE=14]="REMOVE_AUDIO_CAPTURE",e[e.LEAVE_MEETING=15]="LEAVE_MEETING",e[e.MEETING_FAIL_OVER=16]="MEETING_FAIL_OVER",e[e.END_MEDIA=17]="END_MEDIA",e[e.CHANGE_AUDIO_MIC=18]="CHANGE_AUDIO_MIC",e[e.WEBRTC_RESTART=19]="WEBRTC_RESTART",e[e.REMOVE_RENDER_AUDIO=20]="REMOVE_RENDER_AUDIO",e[e.LEAVE_COMPUTER_AUDIO=21]="LEAVE_COMPUTER_AUDIO",e[e.JOIN_COMPUTER_AUDIO=22]="JOIN_COMPUTER_AUDIO",e[e.START_SHARING=23]="START_SHARING",e[e.STOP_SHARING=24]="STOP_SHARING",e[e.SWITCH_CANVAS_FOR_VIDEO_CAPTURE=25]="SWITCH_CANVAS_FOR_VIDEO_CAPTURE",e[e.START_REMOTE_CONTROL=26]="START_REMOTE_CONTROL",e[e.UPDATE_REMOTE_CONTROL_PROPERTIES=27]="UPDATE_REMOTE_CONTROL_PROPERTIES",e[e.CANCEL_REMOTE_CONTROL=28]="CANCEL_REMOTE_CONTROL",e[e.UPDATE_SUBSCRIBE_VIDEO=29]="UPDATE_SUBSCRIBE_VIDEO",e[e.START_DESKTOP_SHARING=30]="START_DESKTOP_SHARING",e[e.STOP_DESKTOP_SHARING=31]="STOP_DESKTOP_SHARING",e[e.PAUSE_DESKTOP_SHARING=32]="PAUSE_DESKTOP_SHARING",e[e.RESUME_DESKTOP_SHARING=33]="RESUME_DESKTOP_SHARING",e[e.CHECK_CHROME_SHARING_EXTENSION=34]="CHECK_CHROME_SHARING_EXTENSION",e[e.SWITCH_CANVAS_FOR_SHARING_CAPTURE=35]="SWITCH_CANVAS_FOR_SHARING_CAPTURE",e[e.CHANGE_CURRENT_SHARING_ACTIVE_SSRC=36]="CHANGE_CURRENT_SHARING_ACTIVE_SSRC",e[e.COMMAND_SOCKET_MESSAGE_NOTIFY=40]="COMMAND_SOCKET_MESSAGE_NOTIFY",e[e.RESEND_REMOTE_CONTROL_POSITION_PDU=41]="RESEND_REMOTE_CONTROL_POSITION_PDU",e[e.AES_GCM_IV_VALUE=42]="AES_GCM_IV_VALUE",e[e.USER_NODE_LIST=43]="USER_NODE_LIST",e[e.UPDATE_SHARING_DECODE_PARAM=44]="UPDATE_SHARING_DECODE_PARAM",e[e.PAUSE_OR_RESUME_AUDIO_DECODE=45]="PAUSE_OR_RESUME_AUDIO_DECODE",e[e.UPDATE_CANVAS_SIZE=46]="UPDATE_CANVAS_SIZE",e[e.CLEAR_CANVAS=47]="CLEAR_CANVAS",e[e.ZOOM_RENDER=48]="ZOOM_RENDER",e[e.SET_OTHER_AUDIO_VOLUME_LEVEL=50]="SET_OTHER_AUDIO_VOLUME_LEVEL",e[e.AUIOD_INTERPRETATION_MUTE=58]="AUIOD_INTERPRETATION_MUTE",e[e.AUDIO_INTERPRETATION_SELECT_LANGUAGE=59]="AUDIO_INTERPRETATION_SELECT_LANGUAGE",e[e.AUDIO_INTERPRETATION_LIST_INFO=60]="AUDIO_INTERPRETATION_LIST_INFO",e[e.AUDIO_INTERPRETATION_ENABLE=61]="AUDIO_INTERPRETATION_ENABLE",e[e.VIDEO_MASK_SETTING=62]="VIDEO_MASK_SETTING",e[e.UPDATE_BG_IMAGE=63]="UPDATE_BG_IMAGE",e[e.UPDATE_MASK_INFO=64]="UPDATE_MASK_INFO",e[e.FINISH_MASK_SETTING=65]="FINISH_MASK_SETTING",e[e.START_VIDEO_STREAM_IN_MASK_SETTING_SUCCESS=66]="START_VIDEO_STREAM_IN_MASK_SETTING_SUCCESS",e[e.VIDEO_ENABLE_DECODE_HW=70]="VIDEO_ENABLE_DECODE_HW",e[e.VIDEO_ENABLE_ENCODE_HW=71]="VIDEO_ENABLE_ENCODE_HW",e[e.JOIN_DESKTOP_AUDIO=72]="JOIN_DESKTOP_AUDIO",e[e.LEAVE_DESKTOP_AUDIO=73]="LEAVE_DESKTOP_AUDIO",e[e.SET_DESKTOP_VOLUME=74]="SET_DESKTOP_VOLUME",e[e.MIRROR_MY_VIDEO=75]="MIRROR_MY_VIDEO",e[e.QOS_SENDER_REPORT=1176]="QOS_SENDER_REPORT",e[e.CHANGE_AUDIO_VOLUME=1177]="CHANGE_AUDIO_VOLUME",e[e.UPDATE_COOK=1178]="UPDATE_COOK",e[e.ENABLE_VIDEO_OBSERVER=99]="ENABLE_VIDEO_OBSERVER",e[e.NOTIFY_SDK_JOIN_RWG_SUCCESS=113]="NOTIFY_SDK_JOIN_RWG_SUCCESS",e[e.SWITCH_WATER_MARK_FLAG=90]="SWITCH_WATER_MARK_FLAG"}(h||(h={})),function(e){e[e.INIT_SUCCESS_VIDEO=1.1]="INIT_SUCCESS_VIDEO",e[e.INIT_SUCCESS_VIDEO_ENCODE=1]="INIT_SUCCESS_VIDEO_ENCODE",e[e.INIT_SUCCESS_VIDEO_DECODE=2]="INIT_SUCCESS_VIDEO_DECODE",e[e.INIT_SUCCESS_AUDIO=1.2]="INIT_SUCCESS_AUDIO",e[e.INIT_SUCCESS_AUDIO_ENCODE=1]="INIT_SUCCESS_AUDIO_ENCODE",e[e.INIT_SUCCESS_AUDIO_DECODE=2]="INIT_SUCCESS_AUDIO_DECODE",e[e.INIT_SUCCESS_SHARING=1.3]="INIT_SUCCESS_SHARING",e[e.INIT_SUCCESS_SHARING_ENCODE=1]="INIT_SUCCESS_SHARING_ENCODE",e[e.INIT_SUCCESS_SHARING_DECODE=2]="INIT_SUCCESS_SHARING_DECODE",e[e.USER_GRANT_AUDIO_CAPTURE=2]="USER_GRANT_AUDIO_CAPTURE",e[e.CURRENT_VIDEO_RESOLUTION=3]="CURRENT_VIDEO_RESOLUTION",e[e.JPEG_DEC_THREAD_OK=4]="JPEG_DEC_THREAD_OK",e[e.JPEG_DATA=5]="JPEG_DATA",e[e.SHARING_PARA=6]="SHARING_PARA",e[e.SHARING_MORE_INFO=6.1]="SHARING_MORE_INFO",e[e.VIDEO_DECODE_MAX_SIZE=7]="VIDEO_DECODE_MAX_SIZE",e[e.CURRENT_CAPTURE_VIDEO_WIDTH_HEIGHT=8]="CURRENT_CAPTURE_VIDEO_WIDTH_HEIGHT",e[e.START_VIDEO_CAPTURE_SUCCESS=9]="START_VIDEO_CAPTURE_SUCCESS",e[e.STOP_VIDEO_CAPTURE_SUCCESS=10]="STOP_VIDEO_CAPTURE_SUCCESS",e[e.START_REMOTE_CONTROL_SUCCESS=11]="START_REMOTE_CONTROL_SUCCESS",e[e.CANCEL_REMOTE_CONTROL_SUCCESS=12]="CANCEL_REMOTE_CONTROL_SUCCESS",e[e.REMOTE_CONTROL_COPIED_TEXT_NOTIFY=13]="REMOTE_CONTROL_COPIED_TEXT_NOTIFY",e[e.MONITOR_LOG=14]="MONITOR_LOG",e[e.SHARING_DECODE_MAX_SIZE=18]="SHARING_DECODE_MAX_SIZE",e[e.SEND_MESSAGE_TO_RWG=20]="SEND_MESSAGE_TO_RWG",e[e.AES_GCM_IV_RESPONSE=21]="AES_GCM_IV_RESPONSE",e[e.SHARING_DESKTOP_STREAM_HAVE_AUDIO=23]="SHARING_DESKTOP_STREAM_HAVE_AUDIO",e[e.JOIN_COMPUTER_AUDIO_COMPLETE=24]="JOIN_COMPUTER_AUDIO_COMPLETE",e[e.JOIN_DESKTOP_AUDIO_COMPLETE=25]="JOIN_DESKTOP_AUDIO_COMPLETE",e[e.LEAVE_COMPUTER_AUDIO_COMPLETE=26]="LEAVE_COMPUTER_AUDIO_COMPLETE",e[e.LEAVE_DESKTOP_AUDIO_COMPLETE=27]="LEAVE_DESKTOP_AUDIO_COMPLETE",e[e.QOS_RECEIVER_CMD=1128]="QOS_RECEIVER_CMD",e[e.VIDEO_REQUEST_IDR=1128.5]="VIDEO_REQUEST_IDR",e[e.FIRST_FRAME=1190]="FIRST_FRAME",e[e.DATACHANNEL_OPEN=1128]="DATACHANNEL_OPEN",e[e.DATACHANNEL_CLOSE=1130]="DATACHANNEL_CLOSE",e[e.DATACHANNEL_RECOVER=1140]="DATACHANNEL_RECOVER",e[e.START_VIDEO_STREAM_IN_MASK_SETTING_SUCCESS=66]="START_VIDEO_STREAM_IN_MASK_SETTING_SUCCESS",e[e.CURRENT_DECODE_VIDEO_QUALITY=66.5]="CURRENT_DECODE_VIDEO_QUALITY",e[e.SHARING_FIRST_DECODE_FRAME_RECEIVED_SSRC=70]="SHARING_FIRST_DECODE_FRAME_RECEIVED_SSRC",e[e.INIT_FAILED=-1]="INIT_FAILED",e[e.INIT_FAILED_VIDEO=-1.1]="INIT_FAILED_VIDEO",e[e.INIT_FAILED_VIDEO_ENCODE=-1]="INIT_FAILED_VIDEO_ENCODE",e[e.INIT_FAILED_VIDEO_DECODE=-2]="INIT_FAILED_VIDEO_DECODE",e[e.INIT_FAILED_AUDIO=-1.2]="INIT_FAILED_AUDIO",e[e.INIT_FAILED_AUDIO_ENCODE=-1]="INIT_FAILED_AUDIO_ENCODE",e[e.INIT_FAILED_AUDIO_DECODE=-2]="INIT_FAILED_AUDIO_DECODE",e[e.INIT_FAILED_SHARING=-1.3]="INIT_FAILED_SHARING",e[e.USER_FORBIDDED_CAPTURE_AUDIO=-2]="USER_FORBIDDED_CAPTURE_AUDIO",e[e.AUDIO_WEBSOCKET_BROKEN=-3]="AUDIO_WEBSOCKET_BROKEN",e[e.VIDEO_WEBSOCKET_BROKEN=-4]="VIDEO_WEBSOCKET_BROKEN",e[e.JPEG_DEC_THREAD_FAILED=-5]="JPEG_DEC_THREAD_FAILED",e[e.AUDIO_ZERO_DATA=-6]="AUDIO_ZERO_DATA",e[e.USER_FORBIDDED_CAPTURE_VIDEO=-8]="USER_FORBIDDED_CAPTURE_VIDEO",e[e.USER_CAMERA_IS_TAKEN_BY_OTHER_PROGRAMS=-9]="USER_CAMERA_IS_TAKEN_BY_OTHER_PROGRAMS",e[e.START_REMOTE_CONTROL_FAILED=-11]="START_REMOTE_CONTROL_FAILED",e[e.AUDIO_SPEAKER_SET_ERROR=-12]="AUDIO_SPEAKER_SET_ERROR",e[e.DATA_CHANNEL_OFFER=20]="DATA_CHANNEL_OFFER",e[e.AUDIO_AUTO_PLAY_FAILED=-24]="AUDIO_AUTO_PLAY_FAILED",e[e.SHARING_DESKTOP_STREAM_HAVE_NO_AUDIO=-27]="SHARING_DESKTOP_STREAM_HAVE_NO_AUDIO",e[e.WEBGL_LOST_IN_MULTI_VIEW=-32]="WEBGL_LOST_IN_MULTI_VIEW",e[e.FAIL_OVER_RESULT_TO_OUTSIDE_SDK=21]="FAIL_OVER_RESULT_TO_OUTSIDE_SDK",e[e.MASK_SETTING_PARA_ERROR=-33]="MASK_SETTING_PARA_ERROR"}(u||(u={}));const m="VIDEO_QOS_DATA";var v,S,y,A,E,b,T={exports:{}},C=(v||(v=1,function(e){!function(t,i){e.exports=i({})}(self,e=>(()=>{var t,i,r={8935:(e,t,i)=>{function r(){return/\bCrOS\b/.test(navigator.userAgent)}function s(){var e,t;if(r())return!1;const i=((null==navigator?void 0:navigator.userAgent)||"").toLowerCase();if(/ipad|android(?!.*mobile)|tablet/i.test(i))return!0;const s=Math.min((null==(e=null==window?void 0:window.screen)?void 0:e.width)||0,(null==(t=null==window?void 0:window.screen)?void 0:t.height)||0),n="ontouchstart"in window||navigator.maxTouchPoints>0;return s>=600&&s<=1280&&n&&"orientation"in window}function n(){return!!(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||/iPad/i.test(navigator.userAgent)||/Macintosh/i.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i))}i.d(t,{Cd:()=>$e,D:()=>je,D$:()=>He,GN:()=>Ve,GQ:()=>xe,GY:()=>d,HR:()=>Ge,Pg:()=>s,Qf:()=>Ye,R_:()=>g,U0:()=>qe,U4:()=>Ce,UP:()=>ke,Xb:()=>n,Y9:()=>Fe,Z_:()=>Be,Zs:()=>r,_J:()=>Oe,bw:()=>c,cX:()=>f,gG:()=>be,gi:()=>Xe,gm:()=>Le,j4:()=>Qe,j9:()=>Ze,lT:()=>De,n_:()=>u,nr:()=>Ne,pb:()=>l,uF:()=>p,uw:()=>h,vb:()=>o,vk:()=>Ue,w_:()=>Ke,zG:()=>a,zQ:()=>Je,zX:()=>We});const a=()=>!!(navigator.maxTouchPoints&&navigator.maxTouchPoints>2)&&(/iPad/.test(navigator.platform)||/MacIntel/.test(navigator.platform)),o=()=>/MSFT Teams Android Room/i.test(navigator.userAgent),l=()=>{const e=null==window?void 0:window.meetingHost;return!!e&&"MSFT"===e.getHostState().vendorId&&!o()},d=()=>/GoogleMeetRoomDeviceWebViewApp/.test(navigator.userAgent),c=()=>/TESLA/.test(navigator.userAgent),h=()=>/(iPhone)/.test(navigator.userAgent),u=()=>/(iPad|iPhone)/g.test(navigator.userAgent),f=()=>navigator.platform.indexOf("Mac")>-1,p=()=>navigator.platform.indexOf("Win")>-1,g=async()=>{var e,t;if(-1!=navigator.userAgent.indexOf("WOW64"))return!0;if(null!=(e=null==navigator?void 0:navigator.userAgentData)&&e.getHighEntropyValues){const e=await(null==(t=null==navigator?void 0:navigator.userAgentData)?void 0:t.getHighEntropyValues(["wow64"]));return!(null==e||!e.wow64)}return!1},m=e=>"string"==typeof e,v=(e,t)=>{if(m(e))return e=A(/^\s\s*/,e),void 0===t?e:e.substring(0,500)},S=e=>m(e)?e.toLowerCase():e,_=(e,t)=>{if("object"==typeof e&&e.length>0){for(var i in e)if(S(e[i])==S(t))return!0;return!1}return!!m(e)&&-1!==S(t).indexOf(S(e))},y=(e,t)=>{for(let i in t)if("object"==typeof t[i]&&t[i].length>0){for(let r=0;r<t[i].length;r++)if(_(t[i][r],e))return"?"===i?void 0:i}else if(_(t[i],e))return"?"===i?void 0:i;return"*"in t?t["*"]:e},A=(e,t)=>m(t)?t.replace(e,""):t,E=e=>m(e)&&A(/[^\d\.]/g,e).split(".")[0]||"",b=e=>m(e)&&A(/[^\d\.]/g,e).split(".")[1]||"",T=e=>/^\d/.test(String(e)),C=(e,t)=>{let i={};if(!e||!t)return{};let r,s,n,a,o,l,d=0;for(;d<t.length&&!o;){const c=t[d],h=t[d+1];for(r=0,s=0;r<c.length&&!o&&c[r];)if(o=c[r++].exec(e),o)for(i.matchRegex=String(c[r-1]),n=0;n<h.length;n++)l=o[++s],a=h[n],"object"==typeof a&&a.length>0?2===a.length?"function"==typeof a[1]?i[a[0]]=a[1](l):i[a[0]]=a[1]:3===a.length?"function"!=typeof a[1]||a[1].exec&&a[1].test?i[a[0]]=l?l.replace(a[1],a[2]):void 0:i[a[0]]=l?a[1](l,a[2]):void 0:4===a.length&&(i[a[0]]=l?a[3](l.replace(a[1],a[2])):void 0):i[a]=l||void 0;d+=2}return i||{}},w=e=>{const t=e.split(".");for(;t.length>1&&0===parseInt(t[t.length-1],10);)t.pop();return t.join(".")},R="version",I="name",D="type",k="inapp",M="model",P="vendor",O="architecture",L="console",x="mobile",N="tablet",V="smarttv",U="wearable",B="xr",F="embedded",W="Amazon",G="Apple",H="ASUS",j="BlackBerry",$="Google",K="Huawei",z="Lenovo",q="Honor",Y="LG",X="Microsoft",Q="Motorola",J="Nvidia",Z="OnePlus",ee="OPPO",te="Samsung",ie="Sharp",re="Sony",se="Xiaomi",ne="Zebra",ae="Chrome",oe="Chromecast",le="Firefox",de="Opera",ce="Facebook",he="Sogou",ue="Mobile Safari",fe=" Browser",pe="Chromium OS",ge="Mac OS",me={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ve=[[/\b(?:crmo|crios)\/([\w\.]+)/i],[R,[I,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[R,[I,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[I,R],[/opios[\/ ]+([\w\.]+)/i],[R,[I,de+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[R,[I,de+" GX"]],[/\bopr\/([\w\.]+)/i],[R,[I,de]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[R,[I,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[R,[I,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[I,R],[/quark(?:pc)?\/([-\w\.]+)/i],[R,[I,"Quark"]],[/\bddg\/([\w\.]+)/i],[R,[I,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[R,[I,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[R,[I,"WeChat"]],[/konqueror\/([\w\.]+)/i],[R,[I,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[R,[I,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[R,[I,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[R,[I,"Smart "+z+fe]],[/(avast|avg)\/([\w\.]+)/i],[[I,/(.+)/,"$1 Secure"+fe],R],[/\bfocus\/([\w\.]+)/i],[R,[I,le+" Focus"]],[/\bopt\/([\w\.]+)/i],[R,[I,de+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[R,[I,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[R,[I,"Dolphin"]],[/coast\/([\w\.]+)/i],[R,[I,de+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[R,[I,"MIUI"+fe]],[/fxios\/([\w\.-]+)/i],[R,[I,""+le]],[/\bqihoobrowser\/?([\w\.]*)/i],[R,[I,"360"]],[/\b(qq)\/([\w\.]+)/i],[[I,/(.+)/,"$1Browser"],R],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[I,/(.+)/,"$1"+fe],R],[/samsungbrowser\/([\w\.]+)/i],[R,[I,te+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[R,[I,he+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[I,he+" Mobile"],R],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[I,R],[/(lbbrowser|rekonq)/i],[I],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[R,I],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[I,ce],R,[D,k]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[I,R,[D,k]],[/\bgsa\/([\w\.]+) .*safari\//i],[R,[I,"GSA"],[D,k]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[R,[I,"TikTok"],[D,k]],[/\[(linkedin)app\]/i],[I,[D,k]],[/(chromium)[\/ ]([-\w\.]+)/i],[I,R],[/headlesschrome(?:\/([\w\.]+)| )/i],[R,[I,ae+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[I,ae+" WebView"],R],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[R,[I,"Android"+fe]],[/chrome\/([\w\.]+) mobile/i],[R,[I,"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[I,R],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[R,[I,ue]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[I,ue]],[/version\/([\w\.\,]+) .*(safari)/i],[R,I],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[I,[R,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[I,R],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[I,""+le],R],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[I,"Netscape"],R],[/(wolvic|librewolf)\/([\w\.]+)/i],[I,R],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[R,[I,le+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[I,[R,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[I,[R,/[^\d\.]+./,""]]],Se=[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[M,[P,te],[D,N]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[M,[P,te],[D,x]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[M,[P,G],[D,x]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[M,[P,G],[D,N]],[/(macintosh);/i],[M,[P,G]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[M,[P,ie],[D,x]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[M,[P,q],[D,N]],[/honor([-\w ]+)[;\)]/i],[M,[P,q],[D,x]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[M,[P,K],[D,N]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[M,[P,K],[D,x]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[M,/_/g," "],[P,se],[D,N]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[M,/_/g," "],[P,se],[D,x]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[M,[P,ee],[D,x]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[M,[P,y,{OnePlus:["304","403","203"],"*":ee}],[D,N]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[M,[P,"Vivo"],[D,x]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[M,[P,"Realme"],[D,x]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[M,[P,Q],[D,x]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[M,[P,Q],[D,N]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[M,[P,Y],[D,N]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[M,[P,Y],[D,x]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[M,[P,z],[D,N]],[/(nokia) (t[12][01])/i],[P,M,[D,N]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?(([-\w\.]*))/i],[[M,/_/g," "],[D,x],[P,"Nokia"]],[/(pixel (c|tablet))\b/i],[M,[P,$],[D,N]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[M,[P,$],[D,x]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[M,[P,re],[D,x]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[M,"Xperia Tablet"],[P,re],[D,N]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[M,[P,Z],[D,x]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[M,[P,W],[D,N]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[M,/(.+)/g,"Fire Phone $1"],[P,W],[D,x]],[/(playbook);[-\w\),; ]+(rim)/i],[M,P,[D,N]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[M,[P,j],[D,x]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[M,[P,H],[D,N]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[M,[P,H],[D,x]],[/(nexus 9)/i],[M,[P,"HTC"],[D,N]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[P,[M,/_/g," "],[D,x]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[M,[P,"TCL"],[D,N]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]