webex 2.52.13 → 2.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ /*! Webex JS SDK v2.54.0 */
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Webex=t():e.Webex=t()}(self,(()=>(()=>{var __webpack_modules__={26981:(e,t,r)=>{"use strict";r(11983);var n,i=(n=r(11543))&&n.__esModule?n:{default:n};i.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),i.default._babelPolyfill=!0},11983:(e,t,r)=>{"use strict";r(15033),r(88033),r(72863),r(56141),r(74316),r(117),r(86863),r(30290),r(44007),r(91235),r(58930),r(31794),r(1523),r(35666)},15033:(e,t,r)=>{r(98997),r(57944),r(65388),r(10266),r(57557),r(63386),r(30081),r(54943),r(40192),r(24371),r(17026),r(16736),r(7260),r(4649),r(88325),r(52798),r(86911),r(84394),r(78769),r(729),r(99383),r(19315),r(15072),r(10348),r(71028),r(2610),r(64007),r(87616),r(86762),r(43316),r(93019),r(40293),r(60640),r(96589),r(93210),r(12372),r(30511),r(6781),r(74434),r(14783),r(95521),r(94093),r(86378),r(52380),r(2803),r(63725),r(7977),r(14192),r(2940),r(35731),r(79382),r(38877),r(22539),r(39820),r(28417),r(74333),r(82858),r(22058),r(95472),r(57001),r(57492),r(50447),r(65624),r(51263),r(65193),r(28241),r(96723),r(9394),r(66938),r(11961),r(69659),r(23354),r(99620),r(638),r(32338),r(20641),r(21575),r(75611),r(91033),r(50160),r(65271),r(18221),r(92523),r(65441),r(88375),r(9106),r(9139),r(33352),r(53289),r(35943),r(59483),r(88292),r(86174),r(86975),r(71412),r(30360),r(18394),r(83118),r(78772),r(71308),r(87080),r(58615),r(35244),r(39544),r(45475),r(33770),r(5201),r(61385),r(12813),r(82509),r(98253),r(57391),r(33307),r(63315),r(12920),r(95443),r(69815),r(43771),r(76935),r(17846),r(56403),r(51200),r(30951),r(10029),r(69310),r(66722),r(18372),r(14604),r(84781),r(38416),r(24395),r(49649),r(32475),r(12924),r(16337),r(83286),r(47225),r(68766),e.exports=r(14411)},72863:(e,t,r)=>{r(98125),e.exports=r(14411).Array.flatMap},88033:(e,t,r)=>{r(49348),e.exports=r(14411).Array.includes},58930:(e,t,r)=>{r(1768),e.exports=r(14411).Object.entries},44007:(e,t,r)=>{r(59223),e.exports=r(14411).Object.getOwnPropertyDescriptors},91235:(e,t,r)=>{r(67442),e.exports=r(14411).Object.values},31794:(e,t,r)=>{"use strict";r(12813),r(14936),e.exports=r(14411).Promise.finally},74316:(e,t,r)=>{r(20239),e.exports=r(14411).String.padEnd},56141:(e,t,r)=>{r(28755),e.exports=r(14411).String.padStart},86863:(e,t,r)=>{r(66948),e.exports=r(14411).String.trimRight},117:(e,t,r)=>{r(53412),e.exports=r(14411).String.trimLeft},30290:(e,t,r)=>{r(78284),e.exports=r(38833).f("asyncIterator")},11543:(e,t,r)=>{r(94296),e.exports=r(1275).global},87411:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},23206:(e,t,r)=>{var n=r(700);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},1275:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},30999:(e,t,r)=>{var n=r(87411);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},50697:(e,t,r)=>{e.exports=!r(13834)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},42394:(e,t,r)=>{var n=r(700),i=r(71075).document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},44553:(e,t,r)=>{var n=r(71075),i=r(1275),o=r(30999),a=r(2550),s=r(94324),c="prototype",u=function(e,t,r){var l,d,f,p=e&u.F,h=e&u.G,v=e&u.S,m=e&u.P,g=e&u.B,y=e&u.W,E=h?i:i[t]||(i[t]={}),S=E[c],_=h?n:v?n[t]:(n[t]||{})[c];for(l in h&&(r=t),r)(d=!p&&_&&void 0!==_[l])&&s(E,l)||(f=d?_[l]:r[l],E[l]=h&&"function"!=typeof _[l]?r[l]:g&&d?o(f,n):y&&_[l]==f?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t[c]=e[c],t}(f):m&&"function"==typeof f?o(Function.call,f):f,m&&((E.virtual||(E.virtual={}))[l]=f,e&u.R&&S&&!S[l]&&a(S,l,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},13834:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},71075:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},94324:e=>{var t={}.hasOwnProperty;e.exports=function(e,r){return t.call(e,r)}},2550:(e,t,r)=>{var n=r(249),i=r(43652);e.exports=r(50697)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},43393:(e,t,r)=>{e.exports=!r(50697)&&!r(13834)((function(){return 7!=Object.defineProperty(r(42394)("div"),"a",{get:function(){return 7}}).a}))},700:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},249:(e,t,r)=>{var n=r(23206),i=r(43393),o=r(3377),a=Object.defineProperty;t.f=r(50697)?Object.defineProperty:function(e,t,r){if(n(e),t=o(t,!0),n(r),i)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},43652:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3377:(e,t,r)=>{var n=r(700);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},94296:(e,t,r)=>{var n=r(44553);n(n.G,{global:r(71075)})},23079:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},23373:(e,t,r)=>{var n=r(89426);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=n(e))throw TypeError(t);return+e}},12802:(e,t,r)=>{var n=r(9739)("unscopables"),i=Array.prototype;null==i[n]&&r(98442)(i,n,{}),e.exports=function(e){i[n][e]=!0}},9959:(e,t,r)=>{"use strict";var n=r(7384)(!0);e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},30599:e=>{e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},59719:(e,t,r)=>{var n=r(17481);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},4893:(e,t,r)=>{"use strict";var n=r(54200),i=r(15044),o=r(61838);e.exports=[].copyWithin||function(e,t){var r=n(this),a=o(r.length),s=i(e,a),c=i(t,a),u=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===u?a:i(u,a))-c,a-s),d=1;for(c<s&&s<c+l&&(d=-1,c+=l-1,s+=l-1);l-- >0;)c in r?r[s]=r[c]:delete r[s],s+=d,c+=d;return r}},70852:(e,t,r)=>{"use strict";var n=r(54200),i=r(15044),o=r(61838);e.exports=function(e){for(var t=n(this),r=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,r),c=a>2?arguments[2]:void 0,u=void 0===c?r:i(c,r);u>s;)t[s++]=e;return t}},61545:(e,t,r)=>{var n=r(8500),i=r(61838),o=r(15044);e.exports=function(e){return function(t,r,a){var s,c=n(t),u=i(c.length),l=o(a,u);if(e&&r!=r){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}}},66934:(e,t,r)=>{var n=r(82794),i=r(60975),o=r(54200),a=r(61838),s=r(44087);e.exports=function(e,t){var r=1==e,c=2==e,u=3==e,l=4==e,d=6==e,f=5==e||d,p=t||s;return function(t,s,h){for(var v,m,g=o(t),y=i(g),E=n(s,h,3),S=a(y.length),_=0,b=r?p(t,S):c?p(t,0):void 0;S>_;_++)if((f||_ in y)&&(m=E(v=y[_],_,g),e))if(r)b[_]=m;else if(m)switch(e){case 3:return!0;case 5:return v;case 6:return _;case 2:b.push(v)}else if(l)return!1;return d?-1:u||l?l:b}}},9857:(e,t,r)=>{var n=r(23079),i=r(54200),o=r(60975),a=r(61838);e.exports=function(e,t,r,s,c){n(t);var u=i(e),l=o(u),d=a(u.length),f=c?d-1:0,p=c?-1:1;if(r<2)for(;;){if(f in l){s=l[f],f+=p;break}if(f+=p,c?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;c?f>=0:d>f;f+=p)f in l&&(s=t(s,l[f],f,u));return s}},54849:(e,t,r)=>{var n=r(17481),i=r(40689),o=r(9739)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),n(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},44087:(e,t,r)=>{var n=r(54849);e.exports=function(e,t){return new(n(e))(t)}},46966:(e,t,r)=>{"use strict";var n=r(23079),i=r(17481),o=r(16137),a=[].slice,s={};e.exports=Function.bind||function(e){var t=n(this),r=a.call(arguments,1),c=function(){var n=r.concat(a.call(arguments));return this instanceof c?function(e,t,r){if(!(t in s)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";s[t]=Function("F,a","return new F("+n.join(",")+")")}return s[t](e,r)}(t,n.length,n):o(t,n,e)};return i(t.prototype)&&(c.prototype=t.prototype),c}},12845:(e,t,r)=>{var n=r(89426),i=r(9739)("toStringTag"),o="Arguments"==n(function(){return arguments}());e.exports=function(e){var t,r,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:o?n(t):"Object"==(a=n(t))&&"function"==typeof t.callee?"Arguments":a}},89426:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},95144:(e,t,r)=>{"use strict";var n=r(83530).f,i=r(62545),o=r(24092),a=r(82794),s=r(30599),c=r(62971),u=r(19121),l=r(78611),d=r(75993),f=r(51916),p=r(82153).fastKey,h=r(91603),v=f?"_s":"size",m=function(e,t){var r,n=p(t);if("F"!==n)return e._i[n];for(r=e._f;r;r=r.n)if(r.k==t)return r};e.exports={getConstructor:function(e,t,r,u){var l=e((function(e,n){s(e,l,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[v]=0,null!=n&&c(n,r,e[u],e)}));return o(l.prototype,{clear:function(){for(var e=h(this,t),r=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];e._f=e._l=void 0,e[v]=0},delete:function(e){var r=h(this,t),n=m(r,e);if(n){var i=n.n,o=n.p;delete r._i[n.i],n.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==n&&(r._f=i),r._l==n&&(r._l=o),r[v]--}return!!n},forEach:function(e){h(this,t);for(var r,n=a(e,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(n(r.v,r.k,this);r&&r.r;)r=r.p},has:function(e){return!!m(h(this,t),e)}}),f&&n(l.prototype,"size",{get:function(){return h(this,t)[v]}}),l},def:function(e,t,r){var n,i,o=m(e,t);return o?o.v=r:(e._l=o={i:i=p(t,!0),k:t,v:r,p:n=e._l,n:void 0,r:!1},e._f||(e._f=o),n&&(n.n=o),e[v]++,"F"!==i&&(e._i[i]=o)),e},getEntry:m,setStrong:function(e,t,r){u(e,t,(function(e,r){this._t=h(e,t),this._k=r,this._l=void 0}),(function(){for(var e=this,t=e._k,r=e._l;r&&r.r;)r=r.p;return e._t&&(e._l=r=r?r.n:e._t._f)?l(0,"keys"==t?r.k:"values"==t?r.v:[r.k,r.v]):(e._t=void 0,l(1))}),r?"entries":"values",!r,!0),d(t)}}},33503:(e,t,r)=>{"use strict";var n=r(24092),i=r(82153).getWeak,o=r(59719),a=r(17481),s=r(30599),c=r(62971),u=r(66934),l=r(41063),d=r(91603),f=u(5),p=u(6),h=0,v=function(e){return e._l||(e._l=new m)},m=function(){this.a=[]},g=function(e,t){return f(e.a,(function(e){return e[0]===t}))};m.prototype={get:function(e){var t=g(this,e);if(t)return t[1]},has:function(e){return!!g(this,e)},set:function(e,t){var r=g(this,e);r?r[1]=t:this.a.push([e,t])},delete:function(e){var t=p(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,r,o){var u=e((function(e,n){s(e,u,t,"_i"),e._t=t,e._i=h++,e._l=void 0,null!=n&&c(n,r,e[o],e)}));return n(u.prototype,{delete:function(e){if(!a(e))return!1;var r=i(e);return!0===r?v(d(this,t)).delete(e):r&&l(r,this._i)&&delete r[this._i]},has:function(e){if(!a(e))return!1;var r=i(e);return!0===r?v(d(this,t)).has(e):r&&l(r,this._i)}}),u},def:function(e,t,r){var n=i(o(t),!0);return!0===n?v(e).set(t,r):n[e._i]=r,e},ufstore:v}},58091:(e,t,r)=>{"use strict";var n=r(56341),i=r(35366),o=r(1564),a=r(24092),s=r(82153),c=r(62971),u=r(30599),l=r(17481),d=r(71240),f=r(61461),p=r(21309),h=r(94805);e.exports=function(e,t,r,v,m,g){var y=n[e],E=y,S=m?"set":"add",_=E&&E.prototype,b={},R=function(e){var t=_[e];o(_,e,"delete"==e||"has"==e?function(e){return!(g&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!l(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,r){return t.call(this,0===e?0:e,r),this})};if("function"==typeof E&&(g||_.forEach&&!d((function(){(new E).entries().next()})))){var T=new E,w=T[S](g?{}:-0,1)!=T,I=d((function(){T.has(1)})),x=f((function(e){new E(e)})),A=!g&&d((function(){for(var e=new E,t=5;t--;)e[S](t,t);return!e.has(-0)}));x||((E=t((function(t,r){u(t,E,e);var n=h(new y,t,E);return null!=r&&c(r,m,n[S],n),n}))).prototype=_,_.constructor=E),(I||A)&&(R("delete"),R("has"),m&&R("get")),(A||w)&&R(S),g&&_.clear&&delete _.clear}else E=v.getConstructor(t,e,m,S),a(E.prototype,r),s.NEED=!0;return p(E,e),b[e]=E,i(i.G+i.W+i.F*(E!=y),b),g||v.setStrong(E,e,m),E}},14411:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},51676:(e,t,r)=>{"use strict";var n=r(83530),i=r(21761);e.exports=function(e,t,r){t in e?n.f(e,t,i(0,r)):e[t]=r}},82794:(e,t,r)=>{var n=r(23079);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},41792:(e,t,r)=>{"use strict";var n=r(71240),i=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(e){return e>9?e:"0"+e};e.exports=n((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!n((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),r=e.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+("00000"+Math.abs(t)).slice(n?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(r>99?r:"0"+a(r))+"Z"}:o},27687:(e,t,r)=>{"use strict";var n=r(59719),i=r(9241),o="number";e.exports=function(e){if("string"!==e&&e!==o&&"default"!==e)throw TypeError("Incorrect hint");return i(n(this),e!=o)}},13589:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},51916:(e,t,r)=>{e.exports=!r(71240)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},83383:(e,t,r)=>{var n=r(17481),i=r(56341).document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},97590:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},4535:(e,t,r)=>{var n=r(15825),i=r(32520),o=r(41144);e.exports=function(e){var t=n(e),r=i.f;if(r)for(var a,s=r(e),c=o.f,u=0;s.length>u;)c.call(e,a=s[u++])&&t.push(a);return t}},35366:(e,t,r)=>{var n=r(56341),i=r(14411),o=r(98442),a=r(1564),s=r(82794),c="prototype",u=function(e,t,r){var l,d,f,p,h=e&u.F,v=e&u.G,m=e&u.S,g=e&u.P,y=e&u.B,E=v?n:m?n[t]||(n[t]={}):(n[t]||{})[c],S=v?i:i[t]||(i[t]={}),_=S[c]||(S[c]={});for(l in v&&(r=t),r)f=((d=!h&&E&&void 0!==E[l])?E:r)[l],p=y&&d?s(f,n):g&&"function"==typeof f?s(Function.call,f):f,E&&a(E,l,f,e&u.U),S[l]!=f&&o(S,l,p),g&&_[l]!=f&&(_[l]=f)};n.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},46881:(e,t,r)=>{var n=r(9739)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,!"/./"[e](t)}catch(e){}}return!0}},71240:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},25307:(e,t,r)=>{"use strict";r(58615);var n=r(1564),i=r(98442),o=r(71240),a=r(13589),s=r(9739),c=r(18868),u=s("species"),l=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();e.exports=function(e,t,r){var f=s(e),p=!o((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),h=p?!o((function(){var t=!1,r=/a/;return r.exec=function(){return t=!0,null},"split"===e&&(r.constructor={},r.constructor[u]=function(){return r}),r[f](""),!t})):void 0;if(!p||!h||"replace"===e&&!l||"split"===e&&!d){var v=/./[f],m=r(a,f,""[e],(function(e,t,r,n,i){return t.exec===c?p&&!i?{done:!0,value:v.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}})),g=m[0],y=m[1];n(String.prototype,e,g),i(RegExp.prototype,f,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},6439:(e,t,r)=>{"use strict";var n=r(59719);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},3885:(e,t,r)=>{"use strict";var n=r(40689),i=r(17481),o=r(61838),a=r(82794),s=r(9739)("isConcatSpreadable");e.exports=function e(t,r,c,u,l,d,f,p){for(var h,v,m=l,g=0,y=!!f&&a(f,p,3);g<u;){if(g in c){if(h=y?y(c[g],g,r):c[g],v=!1,i(h)&&(v=void 0!==(v=h[s])?!!v:n(h)),v&&d>0)m=e(t,r,h,o(h.length),m,d-1)-1;else{if(m>=9007199254740991)throw TypeError();t[m]=h}m++}g++}return m}},62971:(e,t,r)=>{var n=r(82794),i=r(55539),o=r(63894),a=r(59719),s=r(61838),c=r(18444),u={},l={},d=e.exports=function(e,t,r,d,f){var p,h,v,m,g=f?function(){return e}:c(e),y=n(r,d,t?2:1),E=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(o(g)){for(p=s(e.length);p>E;E++)if((m=t?y(a(h=e[E])[0],h[1]):y(e[E]))===u||m===l)return m}else for(v=g.call(e);!(h=v.next()).done;)if((m=i(v,y,h.value,t))===u||m===l)return m};d.BREAK=u,d.RETURN=l},65979:(e,t,r)=>{e.exports=r(97355)("native-function-to-string",Function.toString)},56341:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},41063:e=>{var t={}.hasOwnProperty;e.exports=function(e,r){return t.call(e,r)}},98442:(e,t,r)=>{var n=r(83530),i=r(21761);e.exports=r(51916)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},26137:(e,t,r)=>{var n=r(56341).document;e.exports=n&&n.documentElement},44352:(e,t,r)=>{e.exports=!r(51916)&&!r(71240)((function(){return 7!=Object.defineProperty(r(83383)("div"),"a",{get:function(){return 7}}).a}))},94805:(e,t,r)=>{var n=r(17481),i=r(87135).set;e.exports=function(e,t,r){var o,a=t.constructor;return a!==r&&"function"==typeof a&&(o=a.prototype)!==r.prototype&&n(o)&&i&&i(e,o),e}},16137:e=>{e.exports=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},60975:(e,t,r)=>{var n=r(89426);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},63894:(e,t,r)=>{var n=r(4919),i=r(9739)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},40689:(e,t,r)=>{var n=r(89426);e.exports=Array.isArray||function(e){return"Array"==n(e)}},22289:(e,t,r)=>{var n=r(17481),i=Math.floor;e.exports=function(e){return!n(e)&&isFinite(e)&&i(e)===e}},17481:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},89543:(e,t,r)=>{var n=r(17481),i=r(89426),o=r(9739)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},55539:(e,t,r)=>{var n=r(59719);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&n(o.call(e)),t}}},47938:(e,t,r)=>{"use strict";var n=r(62545),i=r(21761),o=r(21309),a={};r(98442)(a,r(9739)("iterator"),(function(){return this})),e.exports=function(e,t,r){e.prototype=n(a,{next:i(1,r)}),o(e,t+" Iterator")}},19121:(e,t,r)=>{"use strict";var n=r(35113),i=r(35366),o=r(1564),a=r(98442),s=r(4919),c=r(47938),u=r(21309),l=r(44408),d=r(9739)("iterator"),f=!([].keys&&"next"in[].keys()),p="keys",h="values",v=function(){return this};e.exports=function(e,t,r,m,g,y,E){c(r,t,m);var S,_,b,R=function(e){if(!f&&e in x)return x[e];switch(e){case p:case h:return function(){return new r(this,e)}}return function(){return new r(this,e)}},T=t+" Iterator",w=g==h,I=!1,x=e.prototype,A=x[d]||x["@@iterator"]||g&&x[g],C=A||R(g),O=g?w?R("entries"):C:void 0,k="Array"==t&&x.entries||A;if(k&&(b=l(k.call(new e)))!==Object.prototype&&b.next&&(u(b,T,!0),n||"function"==typeof b[d]||a(b,d,v)),w&&A&&A.name!==h&&(I=!0,C=function(){return A.call(this)}),n&&!E||!f&&!I&&x[d]||a(x,d,C),s[t]=C,s[T]=v,g)if(S={values:w?C:R(h),keys:y?C:R(p),entries:O},E)for(_ in S)_ in x||o(x,_,S[_]);else i(i.P+i.F*(f||I),t,S);return S}},61461:(e,t,r)=>{var n=r(9739)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},e(o)}catch(e){}return r}},78611:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},4919:e=>{e.exports={}},35113:e=>{e.exports=!1},77117:e=>{var t=Math.expm1;e.exports=!t||t(10)>22025.465794806718||t(10)<22025.465794806718||-2e-17!=t(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:t},59396:(e,t,r)=>{var n=r(84247),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),c=i(2,-126);e.exports=Math.fround||function(e){var t,r,i=Math.abs(e),u=n(e);return i<c?u*(i/c/a+1/o-1/o)*c*a:(r=(t=(1+a/o)*i)-(t-i))>s||r!=r?u*(1/0):u*r}},19007:e=>{e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},84247:e=>{e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},82153:(e,t,r)=>{var n=r(90430)("meta"),i=r(17481),o=r(41063),a=r(83530).f,s=0,c=Object.isExtensible||function(){return!0},u=!r(71240)((function(){return c(Object.preventExtensions({}))})),l=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,n)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[n].i},getWeak:function(e,t){if(!o(e,n)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[n].w},onFreeze:function(e){return u&&d.NEED&&c(e)&&!o(e,n)&&l(e),e}}},37:(e,t,r)=>{var n=r(56341),i=r(7122).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,c="process"==r(89426)(a);e.exports=function(){var e,t,r,u=function(){var n,i;for(c&&(n=a.domain)&&n.exit();e;){i=e.fn,e=e.next;try{i()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()};if(c)r=function(){a.nextTick(u)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);r=function(){l.then(u)}}else r=function(){i.call(n,u)};else{var d=!0,f=document.createTextNode("");new o(u).observe(f,{characterData:!0}),r=function(){f.data=d=!d}}return function(n){var i={fn:n,next:void 0};t&&(t.next=i),e||(e=i,r()),t=i}}},83285:(e,t,r)=>{"use strict";var n=r(23079);function i(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)}e.exports.f=function(e){return new i(e)}},49821:(e,t,r)=>{"use strict";var n=r(51916),i=r(15825),o=r(32520),a=r(41144),s=r(54200),c=r(60975),u=Object.assign;e.exports=!u||r(71240)((function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=u({},e)[r]||Object.keys(u({},t)).join("")!=n}))?function(e,t){for(var r=s(e),u=arguments.length,l=1,d=o.f,f=a.f;u>l;)for(var p,h=c(arguments[l++]),v=d?i(h).concat(d(h)):i(h),m=v.length,g=0;m>g;)p=v[g++],n&&!f.call(h,p)||(r[p]=h[p]);return r}:u},62545:(e,t,r)=>{var n=r(59719),i=r(30413),o=r(97590),a=r(53548)("IE_PROTO"),s=function(){},c="prototype",u=function(){var e,t=r(83383)("iframe"),n=o.length;for(t.style.display="none",r(26137).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;n--;)delete u[c][o[n]];return u()};e.exports=Object.create||function(e,t){var r;return null!==e?(s[c]=n(e),r=new s,s[c]=null,r[a]=e):r=u(),void 0===t?r:i(r,t)}},83530:(e,t,r)=>{var n=r(59719),i=r(44352),o=r(9241),a=Object.defineProperty;t.f=r(51916)?Object.defineProperty:function(e,t,r){if(n(e),t=o(t,!0),n(r),i)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},30413:(e,t,r)=>{var n=r(83530),i=r(59719),o=r(15825);e.exports=r(51916)?Object.defineProperties:function(e,t){i(e);for(var r,a=o(t),s=a.length,c=0;s>c;)n.f(e,r=a[c++],t[r]);return e}},57762:(e,t,r)=>{var n=r(41144),i=r(21761),o=r(8500),a=r(9241),s=r(41063),c=r(44352),u=Object.getOwnPropertyDescriptor;t.f=r(51916)?u:function(e,t){if(e=o(e),t=a(t,!0),c)try{return u(e,t)}catch(e){}if(s(e,t))return i(!n.f.call(e,t),e[t])}},85009:(e,t,r)=>{var n=r(8500),i=r(14230).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(n(e))}},14230:(e,t,r)=>{var n=r(92851),i=r(97590).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},32520:(e,t)=>{t.f=Object.getOwnPropertySymbols},44408:(e,t,r)=>{var n=r(41063),i=r(54200),o=r(53548)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},92851:(e,t,r)=>{var n=r(41063),i=r(8500),o=r(61545)(!1),a=r(53548)("IE_PROTO");e.exports=function(e,t){var r,s=i(e),c=0,u=[];for(r in s)r!=a&&n(s,r)&&u.push(r);for(;t.length>c;)n(s,r=t[c++])&&(~o(u,r)||u.push(r));return u}},15825:(e,t,r)=>{var n=r(92851),i=r(97590);e.exports=Object.keys||function(e){return n(e,i)}},41144:(e,t)=>{t.f={}.propertyIsEnumerable},81025:(e,t,r)=>{var n=r(35366),i=r(14411),o=r(71240);e.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*o((function(){r(1)})),"Object",a)}},15346:(e,t,r)=>{var n=r(51916),i=r(15825),o=r(8500),a=r(41144).f;e.exports=function(e){return function(t){for(var r,s=o(t),c=i(s),u=c.length,l=0,d=[];u>l;)r=c[l++],n&&!a.call(s,r)||d.push(e?[r,s[r]]:s[r]);return d}}},17285:(e,t,r)=>{var n=r(14230),i=r(32520),o=r(59719),a=r(56341).Reflect;e.exports=a&&a.ownKeys||function(e){var t=n.f(o(e)),r=i.f;return r?t.concat(r(e)):t}},13765:(e,t,r)=>{var n=r(56341).parseFloat,i=r(97370).trim;e.exports=1/n(r(18275)+"-0")!=-1/0?function(e){var t=i(String(e),3),r=n(t);return 0===r&&"-"==t.charAt(0)?-0:r}:n},80500:(e,t,r)=>{var n=r(56341).parseInt,i=r(97370).trim,o=r(18275),a=/^[-+]?0[xX]/;e.exports=8!==n(o+"08")||22!==n(o+"0x16")?function(e,t){var r=i(String(e),3);return n(r,t>>>0||(a.test(r)?16:10))}:n},98332:e=>{e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},38614:(e,t,r)=>{var n=r(59719),i=r(17481),o=r(83285);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},21761:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},24092:(e,t,r)=>{var n=r(1564);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},1564:(e,t,r)=>{var n=r(56341),i=r(98442),o=r(41063),a=r(90430)("src"),s=r(65979),c="toString",u=(""+s).split(c);r(14411).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,r,s){var c="function"==typeof r;c&&(o(r,"name")||i(r,"name",t)),e[t]!==r&&(c&&(o(r,a)||i(r,a,e[t]?""+e[t]:u.join(String(t)))),e===n?e[t]=r:s?e[t]?e[t]=r:i(e,t,r):(delete e[t],i(e,t,r)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},29073:(e,t,r)=>{"use strict";var n=r(12845),i=RegExp.prototype.exec;e.exports=function(e,t){var r=e.exec;if("function"==typeof r){var o=r.call(e,t);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},18868:(e,t,r)=>{"use strict";var n,i,o=r(6439),a=RegExp.prototype.exec,s=String.prototype.replace,c=a,u="lastIndex",l=(n=/a/,i=/b*/g,a.call(n,"a"),a.call(i,"a"),0!==n[u]||0!==i[u]),d=void 0!==/()??/.exec("")[1];(l||d)&&(c=function(e){var t,r,n,i,c=this;return d&&(r=new RegExp("^"+c.source+"$(?!\\s)",o.call(c))),l&&(t=c[u]),n=a.call(c,e),l&&n&&(c[u]=c.global?n.index+n[0].length:t),d&&n&&n.length>1&&s.call(n[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)})),n}),e.exports=c},61541:e=>{e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},87135:(e,t,r)=>{var n=r(17481),i=r(59719),o=function(e,t){if(i(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=r(82794)(Function.call,r(57762).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return o(e,r),t?e.__proto__=r:n(e,r),e}}({},!1):void 0),check:o}},75993:(e,t,r)=>{"use strict";var n=r(56341),i=r(83530),o=r(51916),a=r(9739)("species");e.exports=function(e){var t=n[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},21309:(e,t,r)=>{var n=r(83530).f,i=r(41063),o=r(9739)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},53548:(e,t,r)=>{var n=r(97355)("keys"),i=r(90430);e.exports=function(e){return n[e]||(n[e]=i(e))}},97355:(e,t,r)=>{var n=r(14411),i=r(56341),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(35113)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},59789:(e,t,r)=>{var n=r(59719),i=r(23079),o=r(9739)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||null==(r=n(a)[o])?t:i(r)}},85139:(e,t,r)=>{"use strict";var n=r(71240);e.exports=function(e,t){return!!e&&n((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},7384:(e,t,r)=>{var n=r(51549),i=r(13589);e.exports=function(e){return function(t,r){var o,a,s=String(i(t)),c=n(r),u=s.length;return c<0||c>=u?e?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}}},83256:(e,t,r)=>{var n=r(89543),i=r(13589);e.exports=function(e,t,r){if(n(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(e))}},79048:(e,t,r)=>{var n=r(35366),i=r(71240),o=r(13589),a=/"/g,s=function(e,t,r,n){var i=String(o(e)),s="<"+t;return""!==r&&(s+=" "+r+'="'+String(n).replace(a,"&quot;")+'"'),s+">"+i+"</"+t+">"};e.exports=function(e,t){var r={};r[e]=t(s),n(n.P+n.F*i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",r)}},9823:(e,t,r)=>{var n=r(61838),i=r(40005),o=r(13589);e.exports=function(e,t,r,a){var s=String(o(e)),c=s.length,u=void 0===r?" ":String(r),l=n(t);if(l<=c||""==u)return s;var d=l-c,f=i.call(u,Math.ceil(d/u.length));return f.length>d&&(f=f.slice(0,d)),a?f+s:s+f}},40005:(e,t,r)=>{"use strict";var n=r(51549),i=r(13589);e.exports=function(e){var t=String(i(this)),r="",o=n(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(r+=t);return r}},97370:(e,t,r)=>{var n=r(35366),i=r(13589),o=r(71240),a=r(18275),s="["+a+"]",c=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),l=function(e,t,r){var i={},s=o((function(){return!!a[e]()||"​…"!="​…"[e]()})),c=i[e]=s?t(d):a[e];r&&(i[r]=c),n(n.P+n.F*s,"String",i)},d=l.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(u,"")),e};e.exports=l},18275:e=>{e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},7122:(e,t,r)=>{var n,i,o,a=r(82794),s=r(16137),c=r(26137),u=r(83383),l=r(56341),d=l.process,f=l.setImmediate,p=l.clearImmediate,h=l.MessageChannel,v=l.Dispatch,m=0,g={},y="onreadystatechange",E=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},S=function(e){E.call(e.data)};f&&p||(f=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return g[++m]=function(){s("function"==typeof e?e:Function(e),t)},n(m),m},p=function(e){delete g[e]},"process"==r(89426)(d)?n=function(e){d.nextTick(a(E,e,1))}:v&&v.now?n=function(e){v.now(a(E,e,1))}:h?(o=(i=new h).port2,i.port1.onmessage=S,n=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(e){l.postMessage(e+"","*")},l.addEventListener("message",S,!1)):n=y in u("script")?function(e){c.appendChild(u("script"))[y]=function(){c.removeChild(this),E.call(e)}}:function(e){setTimeout(a(E,e,1),0)}),e.exports={set:f,clear:p}},15044:(e,t,r)=>{var n=r(51549),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=n(e))<0?i(e+t,0):o(e,t)}},99707:(e,t,r)=>{var n=r(51549),i=r(61838);e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=i(t);if(t!==r)throw RangeError("Wrong length!");return r}},51549:e=>{var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},8500:(e,t,r)=>{var n=r(60975),i=r(13589);e.exports=function(e){return n(i(e))}},61838:(e,t,r)=>{var n=r(51549),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},54200:(e,t,r)=>{var n=r(13589);e.exports=function(e){return Object(n(e))}},9241:(e,t,r)=>{var n=r(17481);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},58754:(e,t,r)=>{"use strict";if(r(51916)){var n=r(35113),i=r(56341),o=r(71240),a=r(35366),s=r(67728),c=r(29895),u=r(82794),l=r(30599),d=r(21761),f=r(98442),p=r(24092),h=r(51549),v=r(61838),m=r(99707),g=r(15044),y=r(9241),E=r(41063),S=r(12845),_=r(17481),b=r(54200),R=r(63894),T=r(62545),w=r(44408),I=r(14230).f,x=r(18444),A=r(90430),C=r(9739),O=r(66934),k=r(61545),N=r(59789),L=r(71308),P=r(4919),M=r(61461),D=r(75993),U=r(70852),j=r(4893),F=r(83530),B=r(57762),Z=F.f,V=B.f,G=i.RangeError,q=i.TypeError,H=i.Uint8Array,W="ArrayBuffer",z="Shared"+W,$="BYTES_PER_ELEMENT",K="prototype",Y=Array[K],J=c.ArrayBuffer,Q=c.DataView,X=O(0),ee=O(2),te=O(3),re=O(4),ne=O(5),ie=O(6),oe=k(!0),ae=k(!1),se=L.values,ce=L.keys,ue=L.entries,le=Y.lastIndexOf,de=Y.reduce,fe=Y.reduceRight,pe=Y.join,he=Y.sort,ve=Y.slice,me=Y.toString,ge=Y.toLocaleString,ye=C("iterator"),Ee=C("toStringTag"),Se=A("typed_constructor"),_e=A("def_constructor"),be=s.CONSTR,Re=s.TYPED,Te=s.VIEW,we="Wrong length!",Ie=O(1,(function(e,t){return ke(N(e,e[_e]),t)})),xe=o((function(){return 1===new H(new Uint16Array([1]).buffer)[0]})),Ae=!!H&&!!H[K].set&&o((function(){new H(1).set({})})),Ce=function(e,t){var r=h(e);if(r<0||r%t)throw G("Wrong offset!");return r},Oe=function(e){if(_(e)&&Re in e)return e;throw q(e+" is not a typed array!")},ke=function(e,t){if(!_(e)||!(Se in e))throw q("It is not a typed array constructor!");return new e(t)},Ne=function(e,t){return Le(N(e,e[_e]),t)},Le=function(e,t){for(var r=0,n=t.length,i=ke(e,n);n>r;)i[r]=t[r++];return i},Pe=function(e,t,r){Z(e,t,{get:function(){return this._d[r]}})},Me=function(e){var t,r,n,i,o,a,s=b(e),c=arguments.length,l=c>1?arguments[1]:void 0,d=void 0!==l,f=x(s);if(null!=f&&!R(f)){for(a=f.call(s),n=[],t=0;!(o=a.next()).done;t++)n.push(o.value);s=n}for(d&&c>2&&(l=u(l,arguments[2],2)),t=0,r=v(s.length),i=ke(this,r);r>t;t++)i[t]=d?l(s[t],t):s[t];return i},De=function(){for(var e=0,t=arguments.length,r=ke(this,t);t>e;)r[e]=arguments[e++];return r},Ue=!!H&&o((function(){ge.call(new H(1))})),je=function(){return ge.apply(Ue?ve.call(Oe(this)):Oe(this),arguments)},Fe={copyWithin:function(e,t){return j.call(Oe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return re(Oe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return U.apply(Oe(this),arguments)},filter:function(e){return Ne(this,ee(Oe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return ne(Oe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ie(Oe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){X(Oe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ae(Oe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return oe(Oe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return pe.apply(Oe(this),arguments)},lastIndexOf:function(e){return le.apply(Oe(this),arguments)},map:function(e){return Ie(Oe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return de.apply(Oe(this),arguments)},reduceRight:function(e){return fe.apply(Oe(this),arguments)},reverse:function(){for(var e,t=this,r=Oe(t).length,n=Math.floor(r/2),i=0;i<n;)e=t[i],t[i++]=t[--r],t[r]=e;return t},some:function(e){return te(Oe(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return he.call(Oe(this),e)},subarray:function(e,t){var r=Oe(this),n=r.length,i=g(e,n);return new(N(r,r[_e]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,v((void 0===t?n:g(t,n))-i))}},Be=function(e,t){return Ne(this,ve.call(Oe(this),e,t))},Ze=function(e){Oe(this);var t=Ce(arguments[1],1),r=this.length,n=b(e),i=v(n.length),o=0;if(i+t>r)throw G(we);for(;o<i;)this[t+o]=n[o++]},Ve={entries:function(){return ue.call(Oe(this))},keys:function(){return ce.call(Oe(this))},values:function(){return se.call(Oe(this))}},Ge=function(e,t){return _(e)&&e[Re]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},qe=function(e,t){return Ge(e,t=y(t,!0))?d(2,e[t]):V(e,t)},He=function(e,t,r){return!(Ge(e,t=y(t,!0))&&_(r)&&E(r,"value"))||E(r,"get")||E(r,"set")||r.configurable||E(r,"writable")&&!r.writable||E(r,"enumerable")&&!r.enumerable?Z(e,t,r):(e[t]=r.value,e)};be||(B.f=qe,F.f=He),a(a.S+a.F*!be,"Object",{getOwnPropertyDescriptor:qe,defineProperty:He}),o((function(){me.call({})}))&&(me=ge=function(){return pe.call(this)});var We=p({},Fe);p(We,Ve),f(We,ye,Ve.values),p(We,{slice:Be,set:Ze,constructor:function(){},toString:me,toLocaleString:je}),Pe(We,"buffer","b"),Pe(We,"byteOffset","o"),Pe(We,"byteLength","l"),Pe(We,"length","e"),Z(We,Ee,{get:function(){return this[Re]}}),e.exports=function(e,t,r,c){var u=e+((c=!!c)?"Clamped":"")+"Array",d="get"+e,p="set"+e,h=i[u],g=h||{},y=h&&w(h),E=!h||!s.ABV,b={},R=h&&h[K],x=function(e,r){Z(e,r,{get:function(){return function(e,r){var n=e._d;return n.v[d](r*t+n.o,xe)}(this,r)},set:function(e){return function(e,r,n){var i=e._d;c&&(n=(n=Math.round(n))<0?0:n>255?255:255&n),i.v[p](r*t+i.o,n,xe)}(this,r,e)},enumerable:!0})};E?(h=r((function(e,r,n,i){l(e,h,u,"_d");var o,a,s,c,d=0,p=0;if(_(r)){if(!(r instanceof J||(c=S(r))==W||c==z))return Re in r?Le(h,r):Me.call(h,r);o=r,p=Ce(n,t);var g=r.byteLength;if(void 0===i){if(g%t)throw G(we);if((a=g-p)<0)throw G(we)}else if((a=v(i)*t)+p>g)throw G(we);s=a/t}else s=m(r),o=new J(a=s*t);for(f(e,"_d",{b:o,o:p,l:a,e:s,v:new Q(o)});d<s;)x(e,d++)})),R=h[K]=T(We),f(R,"constructor",h)):o((function(){h(1)}))&&o((function(){new h(-1)}))&&M((function(e){new h,new h(null),new h(1.5),new h(e)}),!0)||(h=r((function(e,r,n,i){var o;return l(e,h,u),_(r)?r instanceof J||(o=S(r))==W||o==z?void 0!==i?new g(r,Ce(n,t),i):void 0!==n?new g(r,Ce(n,t)):new g(r):Re in r?Le(h,r):Me.call(h,r):new g(m(r))})),X(y!==Function.prototype?I(g).concat(I(y)):I(g),(function(e){e in h||f(h,e,g[e])})),h[K]=R,n||(R.constructor=h));var A=R[ye],C=!!A&&("values"==A.name||null==A.name),O=Ve.values;f(h,Se,!0),f(R,Re,u),f(R,Te,!0),f(R,_e,h),(c?new h(1)[Ee]==u:Ee in R)||Z(R,Ee,{get:function(){return u}}),b[u]=h,a(a.G+a.W+a.F*(h!=g),b),a(a.S,u,{BYTES_PER_ELEMENT:t}),a(a.S+a.F*o((function(){g.of.call(h,1)})),u,{from:Me,of:De}),$ in R||f(R,$,t),a(a.P,u,Fe),D(u),a(a.P+a.F*Ae,u,{set:Ze}),a(a.P+a.F*!C,u,Ve),n||R.toString==me||(R.toString=me),a(a.P+a.F*o((function(){new h(1).slice()})),u,{slice:Be}),a(a.P+a.F*(o((function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()}))||!o((function(){R.toLocaleString.call([1,2])}))),u,{toLocaleString:je}),P[u]=C?A:O,n||C||f(R,ye,O)}}else e.exports=function(){}},29895:(e,t,r)=>{"use strict";var n=r(56341),i=r(51916),o=r(35113),a=r(67728),s=r(98442),c=r(24092),u=r(71240),l=r(30599),d=r(51549),f=r(61838),p=r(99707),h=r(14230).f,v=r(83530).f,m=r(70852),g=r(21309),y="ArrayBuffer",E="DataView",S="prototype",_="Wrong index!",b=n[y],R=n[E],T=n.Math,w=n.RangeError,I=n.Infinity,x=b,A=T.abs,C=T.pow,O=T.floor,k=T.log,N=T.LN2,L="buffer",P="byteLength",M="byteOffset",D=i?"_b":L,U=i?"_l":P,j=i?"_o":M;function F(e,t,r){var n,i,o,a=new Array(r),s=8*r-t-1,c=(1<<s)-1,u=c>>1,l=23===t?C(2,-24)-C(2,-77):0,d=0,f=e<0||0===e&&1/e<0?1:0;for((e=A(e))!=e||e===I?(i=e!=e?1:0,n=c):(n=O(k(e)/N),e*(o=C(2,-n))<1&&(n--,o*=2),(e+=n+u>=1?l/o:l*C(2,1-u))*o>=2&&(n++,o/=2),n+u>=c?(i=0,n=c):n+u>=1?(i=(e*o-1)*C(2,t),n+=u):(i=e*C(2,u-1)*C(2,t),n=0));t>=8;a[d++]=255&i,i/=256,t-=8);for(n=n<<t|i,s+=t;s>0;a[d++]=255&n,n/=256,s-=8);return a[--d]|=128*f,a}function B(e,t,r){var n,i=8*r-t-1,o=(1<<i)-1,a=o>>1,s=i-7,c=r-1,u=e[c--],l=127&u;for(u>>=7;s>0;l=256*l+e[c],c--,s-=8);for(n=l&(1<<-s)-1,l>>=-s,s+=t;s>0;n=256*n+e[c],c--,s-=8);if(0===l)l=1-a;else{if(l===o)return n?NaN:u?-I:I;n+=C(2,t),l-=a}return(u?-1:1)*n*C(2,l-t)}function Z(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function V(e){return[255&e]}function G(e){return[255&e,e>>8&255]}function q(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function H(e){return F(e,52,8)}function W(e){return F(e,23,4)}function z(e,t,r){v(e[S],t,{get:function(){return this[r]}})}function $(e,t,r,n){var i=p(+r);if(i+t>e[U])throw w(_);var o=e[D]._b,a=i+e[j],s=o.slice(a,a+t);return n?s:s.reverse()}function K(e,t,r,n,i,o){var a=p(+r);if(a+t>e[U])throw w(_);for(var s=e[D]._b,c=a+e[j],u=n(+i),l=0;l<t;l++)s[c+l]=u[o?l:t-l-1]}if(a.ABV){if(!u((function(){b(1)}))||!u((function(){new b(-1)}))||u((function(){return new b,new b(1.5),new b(NaN),b.name!=y}))){for(var Y,J=(b=function(e){return l(this,b),new x(p(e))})[S]=x[S],Q=h(x),X=0;Q.length>X;)(Y=Q[X++])in b||s(b,Y,x[Y]);o||(J.constructor=b)}var ee=new R(new b(2)),te=R[S].setInt8;ee.setInt8(0,2147483648),ee.setInt8(1,2147483649),!ee.getInt8(0)&&ee.getInt8(1)||c(R[S],{setInt8:function(e,t){te.call(this,e,t<<24>>24)},setUint8:function(e,t){te.call(this,e,t<<24>>24)}},!0)}else b=function(e){l(this,b,y);var t=p(e);this._b=m.call(new Array(t),0),this[U]=t},R=function(e,t,r){l(this,R,E),l(e,b,E);var n=e[U],i=d(t);if(i<0||i>n)throw w("Wrong offset!");if(i+(r=void 0===r?n-i:f(r))>n)throw w("Wrong length!");this[D]=e,this[j]=i,this[U]=r},i&&(z(b,P,"_l"),z(R,L,"_b"),z(R,P,"_l"),z(R,M,"_o")),c(R[S],{getInt8:function(e){return $(this,1,e)[0]<<24>>24},getUint8:function(e){return $(this,1,e)[0]},getInt16:function(e){var t=$(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=$(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return Z($(this,4,e,arguments[1]))},getUint32:function(e){return Z($(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return B($(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return B($(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){K(this,1,e,V,t)},setUint8:function(e,t){K(this,1,e,V,t)},setInt16:function(e,t){K(this,2,e,G,t,arguments[2])},setUint16:function(e,t){K(this,2,e,G,t,arguments[2])},setInt32:function(e,t){K(this,4,e,q,t,arguments[2])},setUint32:function(e,t){K(this,4,e,q,t,arguments[2])},setFloat32:function(e,t){K(this,4,e,W,t,arguments[2])},setFloat64:function(e,t){K(this,8,e,H,t,arguments[2])}});g(b,y),g(R,E),s(R[S],a.VIEW,!0),t[y]=b,t[E]=R},67728:(e,t,r)=>{for(var n,i=r(56341),o=r(98442),a=r(90430),s=a("typed_array"),c=a("view"),u=!(!i.ArrayBuffer||!i.DataView),l=u,d=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");d<9;)(n=i[f[d++]])?(o(n.prototype,s,!0),o(n.prototype,c,!0)):l=!1;e.exports={ABV:u,CONSTR:l,TYPED:s,VIEW:c}},90430:e=>{var t=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+r).toString(36))}},83843:(e,t,r)=>{var n=r(56341).navigator;e.exports=n&&n.userAgent||""},91603:(e,t,r)=>{var n=r(17481);e.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},48155:(e,t,r)=>{var n=r(56341),i=r(14411),o=r(35113),a=r(38833),s=r(83530).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},38833:(e,t,r)=>{t.f=r(9739)},9739:(e,t,r)=>{var n=r(97355)("wks"),i=r(90430),o=r(56341).Symbol,a="function"==typeof o;(e.exports=function(e){return n[e]||(n[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=n},18444:(e,t,r)=>{var n=r(12845),i=r(9739)("iterator"),o=r(4919);e.exports=r(14411).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[n(e)]}},71412:(e,t,r)=>{var n=r(35366);n(n.P,"Array",{copyWithin:r(4893)}),r(12802)("copyWithin")},35943:(e,t,r)=>{"use strict";var n=r(35366),i=r(66934)(4);n(n.P+n.F*!r(85139)([].every,!0),"Array",{every:function(e){return i(this,e,arguments[1])}})},30360:(e,t,r)=>{var n=r(35366);n(n.P,"Array",{fill:r(70852)}),r(12802)("fill")},33352:(e,t,r)=>{"use strict";var n=r(35366),i=r(66934)(2);n(n.P+n.F*!r(85139)([].filter,!0),"Array",{filter:function(e){return i(this,e,arguments[1])}})},83118:(e,t,r)=>{"use strict";var n=r(35366),i=r(66934)(6),o="findIndex",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),n(n.P+n.F*a,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(12802)(o)},18394:(e,t,r)=>{"use strict";var n=r(35366),i=r(66934)(5),o="find",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),n(n.P+n.F*a,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(12802)(o)},9106:(e,t,r)=>{"use strict";var n=r(35366),i=r(66934)(0),o=r(85139)([].forEach,!0);n(n.P+n.F*!o,"Array",{forEach:function(e){return i(this,e,arguments[1])}})},65271:(e,t,r)=>{"use strict";var n=r(82794),i=r(35366),o=r(54200),a=r(55539),s=r(63894),c=r(61838),u=r(51676),l=r(18444);i(i.S+i.F*!r(61461)((function(e){Array.from(e)})),"Array",{from:function(e){var t,r,i,d,f=o(e),p="function"==typeof this?this:Array,h=arguments.length,v=h>1?arguments[1]:void 0,m=void 0!==v,g=0,y=l(f);if(m&&(v=n(v,h>2?arguments[2]:void 0,2)),null==y||p==Array&&s(y))for(r=new p(t=c(f.length));t>g;g++)u(r,g,m?v(f[g],g):f[g]);else for(d=y.call(f),r=new p;!(i=d.next()).done;g++)u(r,g,m?a(d,v,[i.value,g],!0):i.value);return r.length=g,r}})},86174:(e,t,r)=>{"use strict";var n=r(35366),i=r(61545)(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(a||!r(85139)(o)),"Array",{indexOf:function(e){return a?o.apply(this,arguments)||0:i(this,e,arguments[1])}})},50160:(e,t,r)=>{var n=r(35366);n(n.S,"Array",{isArray:r(40689)})},71308:(e,t,r)=>{"use strict";var n=r(12802),i=r(78611),o=r(4919),a=r(8500);e.exports=r(19121)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])}),"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},92523:(e,t,r)=>{"use strict";var n=r(35366),i=r(8500),o=[].join;n(n.P+n.F*(r(60975)!=Object||!r(85139)(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},86975:(e,t,r)=>{"use strict";var n=r(35366),i=r(8500),o=r(51549),a=r(61838),s=[].lastIndexOf,c=!!s&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(c||!r(85139)(s)),"Array",{lastIndexOf:function(e){if(c)return s.apply(this,arguments)||0;var t=i(this),r=a(t.length),n=r-1;for(arguments.length>1&&(n=Math.min(n,o(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}})},9139:(e,t,r)=>{"use strict";var n=r(35366),i=r(66934)(1);n(n.P+n.F*!r(85139)([].map,!0),"Array",{map:function(e){return i(this,e,arguments[1])}})},18221:(e,t,r)=>{"use strict";var n=r(35366),i=r(51676);n(n.S+n.F*r(71240)((function(){function e(){}return!(Array.of.call(e)instanceof e)})),"Array",{of:function(){for(var e=0,t=arguments.length,r=new("function"==typeof this?this:Array)(t);t>e;)i(r,e,arguments[e++]);return r.length=t,r}})},88292:(e,t,r)=>{"use strict";var n=r(35366),i=r(9857);n(n.P+n.F*!r(85139)([].reduceRight,!0),"Array",{reduceRight:function(e){return i(this,e,arguments.length,arguments[1],!0)}})},59483:(e,t,r)=>{"use strict";var n=r(35366),i=r(9857);n(n.P+n.F*!r(85139)([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},65441:(e,t,r)=>{"use strict";var n=r(35366),i=r(26137),o=r(89426),a=r(15044),s=r(61838),c=[].slice;n(n.P+n.F*r(71240)((function(){i&&c.call(i)})),"Array",{slice:function(e,t){var r=s(this.length),n=o(this);if(t=void 0===t?r:t,"Array"==n)return c.call(this,e,t);for(var i=a(e,r),u=a(t,r),l=s(u-i),d=new Array(l),f=0;f<l;f++)d[f]="String"==n?this.charAt(i+f):this[i+f];return d}})},53289:(e,t,r)=>{"use strict";var n=r(35366),i=r(66934)(3);n(n.P+n.F*!r(85139)([].some,!0),"Array",{some:function(e){return i(this,e,arguments[1])}})},88375:(e,t,r)=>{"use strict";var n=r(35366),i=r(23079),o=r(54200),a=r(71240),s=[].sort,c=[1,2,3];n(n.P+n.F*(a((function(){c.sort(void 0)}))||!a((function(){c.sort(null)}))||!r(85139)(s)),"Array",{sort:function(e){return void 0===e?s.call(o(this)):s.call(o(this),i(e))}})},78772:(e,t,r)=>{r(75993)("Array")},32338:(e,t,r)=>{var n=r(35366);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},21575:(e,t,r)=>{var n=r(35366),i=r(41792);n(n.P+n.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},20641:(e,t,r)=>{"use strict";var n=r(35366),i=r(54200),o=r(9241);n(n.P+n.F*r(71240)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(e){var t=i(this),r=o(t);return"number"!=typeof r||isFinite(r)?t.toISOString():null}})},91033:(e,t,r)=>{var n=r(9739)("toPrimitive"),i=Date.prototype;n in i||r(98442)(i,n,r(27687))},75611:(e,t,r)=>{var n=Date.prototype,i="Invalid Date",o="toString",a=n[o],s=n.getTime;new Date(NaN)+""!=i&&r(1564)(n,o,(function(){var e=s.call(this);return e==e?a.call(this):i}))},78769:(e,t,r)=>{var n=r(35366);n(n.P,"Function",{bind:r(46966)})},99383:(e,t,r)=>{"use strict";var n=r(17481),i=r(44408),o=r(9739)("hasInstance"),a=Function.prototype;o in a||r(83530).f(a,o,{value:function(e){if("function"!=typeof this||!n(e))return!1;if(!n(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},729:(e,t,r)=>{var n=r(83530).f,i=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in i||r(51916)&&n(i,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},82509:(e,t,r)=>{"use strict";var n=r(95144),i=r(91603),o="Map";e.exports=r(58091)(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=n.getEntry(i(this,o),e);return t&&t.v},set:function(e,t){return n.def(i(this,o),0===e?0:e,t)}},n,!0)},12372:(e,t,r)=>{var n=r(35366),i=r(19007),o=Math.sqrt,a=Math.acosh;n(n.S+n.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},30511:(e,t,r)=>{var n=r(35366),i=Math.asinh;n(n.S+n.F*!(i&&1/i(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},6781:(e,t,r)=>{var n=r(35366),i=Math.atanh;n(n.S+n.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},74434:(e,t,r)=>{var n=r(35366),i=r(84247);n(n.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},14783:(e,t,r)=>{var n=r(35366);n(n.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},95521:(e,t,r)=>{var n=r(35366),i=Math.exp;n(n.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},94093:(e,t,r)=>{var n=r(35366),i=r(77117);n(n.S+n.F*(i!=Math.expm1),"Math",{expm1:i})},86378:(e,t,r)=>{var n=r(35366);n(n.S,"Math",{fround:r(59396)})},52380:(e,t,r)=>{var n=r(35366),i=Math.abs;n(n.S,"Math",{hypot:function(e,t){for(var r,n,o=0,a=0,s=arguments.length,c=0;a<s;)c<(r=i(arguments[a++]))?(o=o*(n=c/r)*n+1,c=r):o+=r>0?(n=r/c)*n:r;return c===1/0?1/0:c*Math.sqrt(o)}})},2803:(e,t,r)=>{var n=r(35366),i=Math.imul;n(n.S+n.F*r(71240)((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(e,t){var r=65535,n=+e,i=+t,o=r&n,a=r&i;return 0|o*a+((r&n>>>16)*a+o*(r&i>>>16)<<16>>>0)}})},63725:(e,t,r)=>{var n=r(35366);n(n.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},7977:(e,t,r)=>{var n=r(35366);n(n.S,"Math",{log1p:r(19007)})},14192:(e,t,r)=>{var n=r(35366);n(n.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},2940:(e,t,r)=>{var n=r(35366);n(n.S,"Math",{sign:r(84247)})},35731:(e,t,r)=>{var n=r(35366),i=r(77117),o=Math.exp;n(n.S+n.F*r(71240)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},79382:(e,t,r)=>{var n=r(35366),i=r(77117),o=Math.exp;n(n.S,"Math",{tanh:function(e){var t=i(e=+e),r=i(-e);return t==1/0?1:r==1/0?-1:(t-r)/(o(e)+o(-e))}})},38877:(e,t,r)=>{var n=r(35366);n(n.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},10348:(e,t,r)=>{"use strict";var n=r(56341),i=r(41063),o=r(89426),a=r(94805),s=r(9241),c=r(71240),u=r(14230).f,l=r(57762).f,d=r(83530).f,f=r(97370).trim,p="Number",h=n[p],v=h,m=h.prototype,g=o(r(62545)(m))==p,y="trim"in String.prototype,E=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var r,n,i,o=(t=y?t.trim():f(t,3)).charCodeAt(0);if(43===o||45===o){if(88===(r=t.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+t}for(var a,c=t.slice(2),u=0,l=c.length;u<l;u++)if((a=c.charCodeAt(u))<48||a>i)return NaN;return parseInt(c,n)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof h&&(g?c((function(){m.valueOf.call(r)})):o(r)!=p)?a(new v(E(t)),r,h):E(t)};for(var S,_=r(51916)?u(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),b=0;_.length>b;b++)i(v,S=_[b])&&!i(h,S)&&d(h,S,l(v,S));h.prototype=m,m.constructor=h,r(1564)(n,p,h)}},64007:(e,t,r)=>{var n=r(35366);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},87616:(e,t,r)=>{var n=r(35366),i=r(56341).isFinite;n(n.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},86762:(e,t,r)=>{var n=r(35366);n(n.S,"Number",{isInteger:r(22289)})},43316:(e,t,r)=>{var n=r(35366);n(n.S,"Number",{isNaN:function(e){return e!=e}})},93019:(e,t,r)=>{var n=r(35366),i=r(22289),o=Math.abs;n(n.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},40293:(e,t,r)=>{var n=r(35366);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},60640:(e,t,r)=>{var n=r(35366);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},96589:(e,t,r)=>{var n=r(35366),i=r(13765);n(n.S+n.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},93210:(e,t,r)=>{var n=r(35366),i=r(80500);n(n.S+n.F*(Number.parseInt!=i),"Number",{parseInt:i})},71028:(e,t,r)=>{"use strict";var n=r(35366),i=r(51549),o=r(23373),a=r(40005),s=1..toFixed,c=Math.floor,u=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",d="0",f=function(e,t){for(var r=-1,n=t;++r<6;)n+=e*u[r],u[r]=n%1e7,n=c(n/1e7)},p=function(e){for(var t=6,r=0;--t>=0;)r+=u[t],u[t]=c(r/e),r=r%e*1e7},h=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==u[e]){var r=String(u[e]);t=""===t?r:t+a.call(d,7-r.length)+r}return t},v=function(e,t,r){return 0===t?r:t%2==1?v(e,t-1,r*e):v(e*e,t/2,r)};n(n.P+n.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(71240)((function(){s.call({})}))),"Number",{toFixed:function(e){var t,r,n,s,c=o(this,l),u=i(e),m="",g=d;if(u<0||u>20)throw RangeError(l);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(m="-",c=-c),c>1e-21)if(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(c*v(2,69,1))-69,r=t<0?c*v(2,-t,1):c/v(2,t,1),r*=4503599627370496,(t=52-t)>0){for(f(0,r),n=u;n>=7;)f(1e7,0),n-=7;for(f(v(10,n,1),0),n=t-1;n>=23;)p(1<<23),n-=23;p(1<<n),f(1,1),p(2),g=h()}else f(0,r),f(1<<-t,0),g=h()+a.call(d,u);return g=u>0?m+((s=g.length)<=u?"0."+a.call(d,u-s)+g:g.slice(0,s-u)+"."+g.slice(s-u)):m+g}})},2610:(e,t,r)=>{"use strict";var n=r(35366),i=r(71240),o=r(23373),a=1..toPrecision;n(n.P+n.F*(i((function(){return"1"!==a.call(1,void 0)}))||!i((function(){a.call({})}))),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},88325:(e,t,r)=>{var n=r(35366);n(n.S+n.F,"Object",{assign:r(49821)})},57944:(e,t,r)=>{var n=r(35366);n(n.S,"Object",{create:r(62545)})},10266:(e,t,r)=>{var n=r(35366);n(n.S+n.F*!r(51916),"Object",{defineProperties:r(30413)})},65388:(e,t,r)=>{var n=r(35366);n(n.S+n.F*!r(51916),"Object",{defineProperty:r(83530).f})},40192:(e,t,r)=>{var n=r(17481),i=r(82153).onFreeze;r(81025)("freeze",(function(e){return function(t){return e&&n(t)?e(i(t)):t}}))},57557:(e,t,r)=>{var n=r(8500),i=r(57762).f;r(81025)("getOwnPropertyDescriptor",(function(){return function(e,t){return i(n(e),t)}}))},54943:(e,t,r)=>{r(81025)("getOwnPropertyNames",(function(){return r(85009).f}))},63386:(e,t,r)=>{var n=r(54200),i=r(44408);r(81025)("getPrototypeOf",(function(){return function(e){return i(n(e))}}))},4649:(e,t,r)=>{var n=r(17481);r(81025)("isExtensible",(function(e){return function(t){return!!n(t)&&(!e||e(t))}}))},16736:(e,t,r)=>{var n=r(17481);r(81025)("isFrozen",(function(e){return function(t){return!n(t)||!!e&&e(t)}}))},7260:(e,t,r)=>{var n=r(17481);r(81025)("isSealed",(function(e){return function(t){return!n(t)||!!e&&e(t)}}))},52798:(e,t,r)=>{var n=r(35366);n(n.S,"Object",{is:r(61541)})},30081:(e,t,r)=>{var n=r(54200),i=r(15825);r(81025)("keys",(function(){return function(e){return i(n(e))}}))},17026:(e,t,r)=>{var n=r(17481),i=r(82153).onFreeze;r(81025)("preventExtensions",(function(e){return function(t){return e&&n(t)?e(i(t)):t}}))},24371:(e,t,r)=>{var n=r(17481),i=r(82153).onFreeze;r(81025)("seal",(function(e){return function(t){return e&&n(t)?e(i(t)):t}}))},86911:(e,t,r)=>{var n=r(35366);n(n.S,"Object",{setPrototypeOf:r(87135).set})},84394:(e,t,r)=>{"use strict";var n=r(12845),i={};i[r(9739)("toStringTag")]="z",i+""!="[object z]"&&r(1564)(Object.prototype,"toString",(function(){return"[object "+n(this)+"]"}),!0)},15072:(e,t,r)=>{var n=r(35366),i=r(13765);n(n.G+n.F*(parseFloat!=i),{parseFloat:i})},19315:(e,t,r)=>{var n=r(35366),i=r(80500);n(n.G+n.F*(parseInt!=i),{parseInt:i})},12813:(e,t,r)=>{"use strict";var n,i,o,a,s=r(35113),c=r(56341),u=r(82794),l=r(12845),d=r(35366),f=r(17481),p=r(23079),h=r(30599),v=r(62971),m=r(59789),g=r(7122).set,y=r(37)(),E=r(83285),S=r(98332),_=r(83843),b=r(38614),R="Promise",T=c.TypeError,w=c.process,I=w&&w.versions,x=I&&I.v8||"",A=c[R],C="process"==l(w),O=function(){},k=i=E.f,N=!!function(){try{var e=A.resolve(1),t=(e.constructor={})[r(9739)("species")]=function(e){e(O,O)};return(C||"function"==typeof PromiseRejectionEvent)&&e.then(O)instanceof t&&0!==x.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(e){}}(),L=function(e){var t;return!(!f(e)||"function"!=typeof(t=e.then))&&t},P=function(e,t){if(!e._n){e._n=!0;var r=e._c;y((function(){for(var n=e._v,i=1==e._s,o=0,a=function(t){var r,o,a,s=i?t.ok:t.fail,c=t.resolve,u=t.reject,l=t.domain;try{s?(i||(2==e._h&&U(e),e._h=1),!0===s?r=n:(l&&l.enter(),r=s(n),l&&(l.exit(),a=!0)),r===t.promise?u(T("Promise-chain cycle")):(o=L(r))?o.call(r,c,u):c(r)):u(n)}catch(e){l&&!a&&l.exit(),u(e)}};r.length>o;)a(r[o++]);e._c=[],e._n=!1,t&&!e._h&&M(e)}))}},M=function(e){g.call(c,(function(){var t,r,n,i=e._v,o=D(e);if(o&&(t=S((function(){C?w.emit("unhandledRejection",i,e):(r=c.onunhandledrejection)?r({promise:e,reason:i}):(n=c.console)&&n.error&&n.error("Unhandled promise rejection",i)})),e._h=C||D(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},D=function(e){return 1!==e._h&&0===(e._a||e._c).length},U=function(e){g.call(c,(function(){var t;C?w.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})}))},j=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),P(t,!0))},F=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw T("Promise can't be resolved itself");(t=L(e))?y((function(){var n={_w:r,_d:!1};try{t.call(e,u(F,n,1),u(j,n,1))}catch(e){j.call(n,e)}})):(r._v=e,r._s=1,P(r,!1))}catch(e){j.call({_w:r,_d:!1},e)}}};N||(A=function(e){h(this,A,R,"_h"),p(e),n.call(this);try{e(u(F,this,1),u(j,this,1))}catch(e){j.call(this,e)}},(n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(24092)(A.prototype,{then:function(e,t){var r=k(m(this,A));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=C?w.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&P(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new n;this.promise=e,this.resolve=u(F,e,1),this.reject=u(j,e,1)},E.f=k=function(e){return e===A||e===a?new o(e):i(e)}),d(d.G+d.W+d.F*!N,{Promise:A}),r(21309)(A,R),r(75993)(R),a=r(14411)[R],d(d.S+d.F*!N,R,{reject:function(e){var t=k(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(s||!N),R,{resolve:function(e){return b(s&&this===a?A:this,e)}}),d(d.S+d.F*!(N&&r(61461)((function(e){A.all(e).catch(O)}))),R,{all:function(e){var t=this,r=k(t),n=r.resolve,i=r.reject,o=S((function(){var r=[],o=0,a=1;v(e,!1,(function(e){var s=o++,c=!1;r.push(void 0),a++,t.resolve(e).then((function(e){c||(c=!0,r[s]=e,--a||n(r))}),i)})),--a||n(r)}));return o.e&&i(o.v),r.promise},race:function(e){var t=this,r=k(t),n=r.reject,i=S((function(){v(e,!1,(function(e){t.resolve(e).then(r.resolve,n)}))}));return i.e&&n(i.v),r.promise}})},69310:(e,t,r)=>{var n=r(35366),i=r(23079),o=r(59719),a=(r(56341).Reflect||{}).apply,s=Function.apply;n(n.S+n.F*!r(71240)((function(){a((function(){}))})),"Reflect",{apply:function(e,t,r){var n=i(e),c=o(r);return a?a(n,t,c):s.call(n,t,c)}})},66722:(e,t,r)=>{var n=r(35366),i=r(62545),o=r(23079),a=r(59719),s=r(17481),c=r(71240),u=r(46966),l=(r(56341).Reflect||{}).construct,d=c((function(){function e(){}return!(l((function(){}),[],e)instanceof e)})),f=!c((function(){l((function(){}))}));n(n.S+n.F*(d||f),"Reflect",{construct:function(e,t){o(e),a(t);var r=arguments.length<3?e:o(arguments[2]);if(f&&!d)return l(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return n.push.apply(n,t),new(u.apply(e,n))}var c=r.prototype,p=i(s(c)?c:Object.prototype),h=Function.apply.call(e,p,t);return s(h)?h:p}})},18372:(e,t,r)=>{var n=r(83530),i=r(35366),o=r(59719),a=r(9241);i(i.S+i.F*r(71240)((function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(e,t,r){o(e),t=a(t,!0),o(r);try{return n.f(e,t,r),!0}catch(e){return!1}}})},14604:(e,t,r)=>{var n=r(35366),i=r(57762).f,o=r(59719);n(n.S,"Reflect",{deleteProperty:function(e,t){var r=i(o(e),t);return!(r&&!r.configurable)&&delete e[t]}})},84781:(e,t,r)=>{"use strict";var n=r(35366),i=r(59719),o=function(e){this._t=i(e),this._i=0;var t,r=this._k=[];for(t in e)r.push(t)};r(47938)(o,"Object",(function(){var e,t=this,r=t._k;do{if(t._i>=r.length)return{value:void 0,done:!0}}while(!((e=r[t._i++])in t._t));return{value:e,done:!1}})),n(n.S,"Reflect",{enumerate:function(e){return new o(e)}})},24395:(e,t,r)=>{var n=r(57762),i=r(35366),o=r(59719);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return n.f(o(e),t)}})},49649:(e,t,r)=>{var n=r(35366),i=r(44408),o=r(59719);n(n.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},38416:(e,t,r)=>{var n=r(57762),i=r(44408),o=r(41063),a=r(35366),s=r(17481),c=r(59719);a(a.S,"Reflect",{get:function e(t,r){var a,u,l=arguments.length<3?t:arguments[2];return c(t)===l?t[r]:(a=n.f(t,r))?o(a,"value")?a.value:void 0!==a.get?a.get.call(l):void 0:s(u=i(t))?e(u,r,l):void 0}})},32475:(e,t,r)=>{var n=r(35366);n(n.S,"Reflect",{has:function(e,t){return t in e}})},12924:(e,t,r)=>{var n=r(35366),i=r(59719),o=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},16337:(e,t,r)=>{var n=r(35366);n(n.S,"Reflect",{ownKeys:r(17285)})},83286:(e,t,r)=>{var n=r(35366),i=r(59719),o=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(e){return!1}}})},68766:(e,t,r)=>{var n=r(35366),i=r(87135);i&&n(n.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})},47225:(e,t,r)=>{var n=r(83530),i=r(57762),o=r(44408),a=r(41063),s=r(35366),c=r(21761),u=r(59719),l=r(17481);s(s.S,"Reflect",{set:function e(t,r,s){var d,f,p=arguments.length<4?t:arguments[3],h=i.f(u(t),r);if(!h){if(l(f=o(t)))return e(f,r,s,p);h=c(0)}if(a(h,"value")){if(!1===h.writable||!l(p))return!1;if(d=i.f(p,r)){if(d.get||d.set||!1===d.writable)return!1;d.value=s,n.f(p,r,d)}else n.f(p,r,c(0,s));return!0}return void 0!==h.set&&(h.set.call(p,s),!0)}})},87080:(e,t,r)=>{var n=r(56341),i=r(94805),o=r(83530).f,a=r(14230).f,s=r(89543),c=r(6439),u=n.RegExp,l=u,d=u.prototype,f=/a/g,p=/a/g,h=new u(f)!==f;if(r(51916)&&(!h||r(71240)((function(){return p[r(9739)("match")]=!1,u(f)!=f||u(p)==p||"/a/i"!=u(f,"i")})))){u=function(e,t){var r=this instanceof u,n=s(e),o=void 0===t;return!r&&n&&e.constructor===u&&o?e:i(h?new l(n&&!o?e.source:e,t):l((n=e instanceof u)?e.source:e,n&&o?c.call(e):t),r?this:d,u)};for(var v=function(e){e in u||o(u,e,{configurable:!0,get:function(){return l[e]},set:function(t){l[e]=t}})},m=a(l),g=0;m.length>g;)v(m[g++]);d.constructor=u,u.prototype=d,r(1564)(n,"RegExp",u)}r(75993)("RegExp")},58615:(e,t,r)=>{"use strict";var n=r(18868);r(35366)({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},39544:(e,t,r)=>{r(51916)&&"g"!=/./g.flags&&r(83530).f(RegExp.prototype,"flags",{configurable:!0,get:r(6439)})},45475:(e,t,r)=>{"use strict";var n=r(59719),i=r(61838),o=r(9959),a=r(29073);r(25307)("match",1,(function(e,t,r,s){return[function(r){var n=e(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,n):new RegExp(r)[t](String(n))},function(e){var t=s(r,e,this);if(t.done)return t.value;var c=n(e),u=String(this);if(!c.global)return a(c,u);var l=c.unicode;c.lastIndex=0;for(var d,f=[],p=0;null!==(d=a(c,u));){var h=String(d[0]);f[p]=h,""===h&&(c.lastIndex=o(u,i(c.lastIndex),l)),p++}return 0===p?null:f}]}))},33770:(e,t,r)=>{"use strict";var n=r(59719),i=r(54200),o=r(61838),a=r(51549),s=r(9959),c=r(29073),u=Math.max,l=Math.min,d=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;r(25307)("replace",2,(function(e,t,r,h){return[function(n,i){var o=e(this),a=null==n?void 0:n[t];return void 0!==a?a.call(n,o,i):r.call(String(o),n,i)},function(e,t){var i=h(r,e,this,t);if(i.done)return i.value;var d=n(e),f=String(this),p="function"==typeof t;p||(t=String(t));var m=d.global;if(m){var g=d.unicode;d.lastIndex=0}for(var y=[];;){var E=c(d,f);if(null===E)break;if(y.push(E),!m)break;""===String(E[0])&&(d.lastIndex=s(f,o(d.lastIndex),g))}for(var S,_="",b=0,R=0;R<y.length;R++){E=y[R];for(var T=String(E[0]),w=u(l(a(E.index),f.length),0),I=[],x=1;x<E.length;x++)I.push(void 0===(S=E[x])?S:String(S));var A=E.groups;if(p){var C=[T].concat(I,w,f);void 0!==A&&C.push(A);var O=String(t.apply(void 0,C))}else O=v(T,f,w,I,A,t);w>=b&&(_+=f.slice(b,w)+O,b=w+T.length)}return _+f.slice(b)}];function v(e,t,n,o,a,s){var c=n+e.length,u=o.length,l=p;return void 0!==a&&(a=i(a),l=f),r.call(s,l,(function(r,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(c);case"<":s=a[i.slice(1,-1)];break;default:var l=+i;if(0===l)return r;if(l>u){var f=d(l/10);return 0===f?r:f<=u?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):r}s=o[l-1]}return void 0===s?"":s}))}}))},5201:(e,t,r)=>{"use strict";var n=r(59719),i=r(61541),o=r(29073);r(25307)("search",1,(function(e,t,r,a){return[function(r){var n=e(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,n):new RegExp(r)[t](String(n))},function(e){var t=a(r,e,this);if(t.done)return t.value;var s=n(e),c=String(this),u=s.lastIndex;i(u,0)||(s.lastIndex=0);var l=o(s,c);return i(s.lastIndex,u)||(s.lastIndex=u),null===l?-1:l.index}]}))},61385:(e,t,r)=>{"use strict";var n=r(89543),i=r(59719),o=r(59789),a=r(9959),s=r(61838),c=r(29073),u=r(18868),l=r(71240),d=Math.min,f=[].push,p="split",h="length",v="lastIndex",m=4294967295,g=!l((function(){RegExp(m,"y")}));r(25307)("split",2,(function(e,t,r,l){var y;return y="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[h]||2!="ab"[p](/(?:ab)*/)[h]||4!="."[p](/(.?)(.?)/)[h]||"."[p](/()()/)[h]>1||""[p](/.?/)[h]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!n(e))return r.call(i,e,t);for(var o,a,s,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=void 0===t?m:t>>>0,g=new RegExp(e.source,l+"g");(o=u.call(g,i))&&!((a=g[v])>d&&(c.push(i.slice(d,o.index)),o[h]>1&&o.index<i[h]&&f.apply(c,o.slice(1)),s=o[0][h],d=a,c[h]>=p));)g[v]===o.index&&g[v]++;return d===i[h]?!s&&g.test("")||c.push(""):c.push(i.slice(d)),c[h]>p?c.slice(0,p):c}:"0"[p](void 0,0)[h]?function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)}:r,[function(r,n){var i=e(this),o=null==r?void 0:r[t];return void 0!==o?o.call(r,i,n):y.call(String(i),r,n)},function(e,t){var n=l(y,e,this,t,y!==r);if(n.done)return n.value;var u=i(e),f=String(this),p=o(u,RegExp),h=u.unicode,v=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(g?"y":"g"),E=new p(g?u:"^(?:"+u.source+")",v),S=void 0===t?m:t>>>0;if(0===S)return[];if(0===f.length)return null===c(E,f)?[f]:[];for(var _=0,b=0,R=[];b<f.length;){E.lastIndex=g?b:0;var T,w=c(E,g?f:f.slice(b));if(null===w||(T=d(s(E.lastIndex+(g?0:b)),f.length))===_)b=a(f,b,h);else{if(R.push(f.slice(_,b)),R.length===S)return R;for(var I=1;I<=w.length-1;I++)if(R.push(w[I]),R.length===S)return R;b=_=T}}return R.push(f.slice(_)),R}]}))},35244:(e,t,r)=>{"use strict";r(39544);var n=r(59719),i=r(6439),o=r(51916),a="toString",s=/./[a],c=function(e){r(1564)(RegExp.prototype,a,e,!0)};r(71240)((function(){return"/a/b"!=s.call({source:"a",flags:"b"})}))?c((function(){var e=n(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)})):s.name!=a&&c((function(){return s.call(this)}))},98253:(e,t,r)=>{"use strict";var n=r(95144),i=r(91603);e.exports=r(58091)("Set",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return n.def(i(this,"Set"),e=0===e?0:e,e)}},n)},50447:(e,t,r)=>{"use strict";r(79048)("anchor",(function(e){return function(t){return e(this,"a","name",t)}}))},65624:(e,t,r)=>{"use strict";r(79048)("big",(function(e){return function(){return e(this,"big","","")}}))},51263:(e,t,r)=>{"use strict";r(79048)("blink",(function(e){return function(){return e(this,"blink","","")}}))},65193:(e,t,r)=>{"use strict";r(79048)("bold",(function(e){return function(){return e(this,"b","","")}}))},82858:(e,t,r)=>{"use strict";var n=r(35366),i=r(7384)(!1);n(n.P,"String",{codePointAt:function(e){return i(this,e)}})},22058:(e,t,r)=>{"use strict";var n=r(35366),i=r(61838),o=r(83256),a="endsWith",s=""[a];n(n.P+n.F*r(46881)(a),"String",{endsWith:function(e){var t=o(this,e,a),r=arguments.length>1?arguments[1]:void 0,n=i(t.length),c=void 0===r?n:Math.min(i(r),n),u=String(e);return s?s.call(t,u,c):t.slice(c-u.length,c)===u}})},28241:(e,t,r)=>{"use strict";r(79048)("fixed",(function(e){return function(){return e(this,"tt","","")}}))},96723:(e,t,r)=>{"use strict";r(79048)("fontcolor",(function(e){return function(t){return e(this,"font","color",t)}}))},9394:(e,t,r)=>{"use strict";r(79048)("fontsize",(function(e){return function(t){return e(this,"font","size",t)}}))},22539:(e,t,r)=>{var n=r(35366),i=r(15044),o=String.fromCharCode,a=String.fromCodePoint;n(n.S+n.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,a=0;n>a;){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");r.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return r.join("")}})},95472:(e,t,r)=>{"use strict";var n=r(35366),i=r(83256),o="includes";n(n.P+n.F*r(46881)(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},66938:(e,t,r)=>{"use strict";r(79048)("italics",(function(e){return function(){return e(this,"i","","")}}))},74333:(e,t,r)=>{"use strict";var n=r(7384)(!0);r(19121)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})}))},11961:(e,t,r)=>{"use strict";r(79048)("link",(function(e){return function(t){return e(this,"a","href",t)}}))},39820:(e,t,r)=>{var n=r(35366),i=r(8500),o=r(61838);n(n.S,"String",{raw:function(e){for(var t=i(e.raw),r=o(t.length),n=arguments.length,a=[],s=0;r>s;)a.push(String(t[s++])),s<n&&a.push(String(arguments[s]));return a.join("")}})},57001:(e,t,r)=>{var n=r(35366);n(n.P,"String",{repeat:r(40005)})},69659:(e,t,r)=>{"use strict";r(79048)("small",(function(e){return function(){return e(this,"small","","")}}))},57492:(e,t,r)=>{"use strict";var n=r(35366),i=r(61838),o=r(83256),a="startsWith",s=""[a];n(n.P+n.F*r(46881)(a),"String",{startsWith:function(e){var t=o(this,e,a),r=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return s?s.call(t,n,r):t.slice(r,r+n.length)===n}})},23354:(e,t,r)=>{"use strict";r(79048)("strike",(function(e){return function(){return e(this,"strike","","")}}))},99620:(e,t,r)=>{"use strict";r(79048)("sub",(function(e){return function(){return e(this,"sub","","")}}))},638:(e,t,r)=>{"use strict";r(79048)("sup",(function(e){return function(){return e(this,"sup","","")}}))},28417:(e,t,r)=>{"use strict";r(97370)("trim",(function(e){return function(){return e(this,3)}}))},98997:(e,t,r)=>{"use strict";var n=r(56341),i=r(41063),o=r(51916),a=r(35366),s=r(1564),c=r(82153).KEY,u=r(71240),l=r(97355),d=r(21309),f=r(90430),p=r(9739),h=r(38833),v=r(48155),m=r(4535),g=r(40689),y=r(59719),E=r(17481),S=r(54200),_=r(8500),b=r(9241),R=r(21761),T=r(62545),w=r(85009),I=r(57762),x=r(32520),A=r(83530),C=r(15825),O=I.f,k=A.f,N=w.f,L=n.Symbol,P=n.JSON,M=P&&P.stringify,D="prototype",U=p("_hidden"),j=p("toPrimitive"),F={}.propertyIsEnumerable,B=l("symbol-registry"),Z=l("symbols"),V=l("op-symbols"),G=Object[D],q="function"==typeof L&&!!x.f,H=n.QObject,W=!H||!H[D]||!H[D].findChild,z=o&&u((function(){return 7!=T(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=O(G,t);n&&delete G[t],k(e,t,r),n&&e!==G&&k(G,t,n)}:k,$=function(e){var t=Z[e]=T(L[D]);return t._k=e,t},K=q&&"symbol"==typeof L.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof L},Y=function(e,t,r){return e===G&&Y(V,t,r),y(e),t=b(t,!0),y(r),i(Z,t)?(r.enumerable?(i(e,U)&&e[U][t]&&(e[U][t]=!1),r=T(r,{enumerable:R(0,!1)})):(i(e,U)||k(e,U,R(1,{})),e[U][t]=!0),z(e,t,r)):k(e,t,r)},J=function(e,t){y(e);for(var r,n=m(t=_(t)),i=0,o=n.length;o>i;)Y(e,r=n[i++],t[r]);return e},Q=function(e){var t=F.call(this,e=b(e,!0));return!(this===G&&i(Z,e)&&!i(V,e))&&(!(t||!i(this,e)||!i(Z,e)||i(this,U)&&this[U][e])||t)},X=function(e,t){if(e=_(e),t=b(t,!0),e!==G||!i(Z,t)||i(V,t)){var r=O(e,t);return!r||!i(Z,t)||i(e,U)&&e[U][t]||(r.enumerable=!0),r}},ee=function(e){for(var t,r=N(_(e)),n=[],o=0;r.length>o;)i(Z,t=r[o++])||t==U||t==c||n.push(t);return n},te=function(e){for(var t,r=e===G,n=N(r?V:_(e)),o=[],a=0;n.length>a;)!i(Z,t=n[a++])||r&&!i(G,t)||o.push(Z[t]);return o};q||(s((L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(r){this===G&&t.call(V,r),i(this,U)&&i(this[U],e)&&(this[U][e]=!1),z(this,e,R(1,r))};return o&&W&&z(G,e,{configurable:!0,set:t}),$(e)})[D],"toString",(function(){return this._k})),I.f=X,A.f=Y,r(14230).f=w.f=ee,r(41144).f=Q,x.f=te,o&&!r(35113)&&s(G,"propertyIsEnumerable",Q,!0),h.f=function(e){return $(p(e))}),a(a.G+a.W+a.F*!q,{Symbol:L});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;re.length>ne;)p(re[ne++]);for(var ie=C(p.store),oe=0;ie.length>oe;)v(ie[oe++]);a(a.S+a.F*!q,"Symbol",{for:function(e){return i(B,e+="")?B[e]:B[e]=L(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in B)if(B[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!q,"Object",{create:function(e,t){return void 0===t?T(e):J(T(e),t)},defineProperty:Y,defineProperties:J,getOwnPropertyDescriptor:X,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ae=u((function(){x.f(1)}));a(a.S+a.F*ae,"Object",{getOwnPropertySymbols:function(e){return x.f(S(e))}}),P&&a(a.S+a.F*(!q||u((function(){var e=L();return"[null]"!=M([e])||"{}"!=M({a:e})||"{}"!=M(Object(e))}))),"JSON",{stringify:function(e){for(var t,r,n=[e],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=t=n[1],(E(t)||void 0!==e)&&!K(e))return g(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!K(t))return t}),n[1]=t,M.apply(P,n)}}),L[D][j]||r(98442)(L[D],j,L[D].valueOf),d(L,"Symbol"),d(Math,"Math",!0),d(n.JSON,"JSON",!0)},63315:(e,t,r)=>{"use strict";var n=r(35366),i=r(67728),o=r(29895),a=r(59719),s=r(15044),c=r(61838),u=r(17481),l=r(56341).ArrayBuffer,d=r(59789),f=o.ArrayBuffer,p=o.DataView,h=i.ABV&&l.isView,v=f.prototype.slice,m=i.VIEW,g="ArrayBuffer";n(n.G+n.W+n.F*(l!==f),{ArrayBuffer:f}),n(n.S+n.F*!i.CONSTR,g,{isView:function(e){return h&&h(e)||u(e)&&m in e}}),n(n.P+n.U+n.F*r(71240)((function(){return!new f(2).slice(1,void 0).byteLength})),g,{slice:function(e,t){if(void 0!==v&&void 0===t)return v.call(a(this),e);for(var r=a(this).byteLength,n=s(e,r),i=s(void 0===t?r:t,r),o=new(d(this,f))(c(i-n)),u=new p(this),l=new p(o),h=0;n<i;)l.setUint8(h++,u.getUint8(n++));return o}}),r(75993)(g)},12920:(e,t,r)=>{var n=r(35366);n(n.G+n.W+n.F*!r(67728).ABV,{DataView:r(29895).DataView})},30951:(e,t,r)=>{r(58754)("Float32",4,(function(e){return function(t,r,n){return e(this,t,r,n)}}))},10029:(e,t,r)=>{r(58754)("Float64",8,(function(e){return function(t,r,n){return e(this,t,r,n)}}))},76935:(e,t,r)=>{r(58754)("Int16",2,(function(e){return function(t,r,n){return e(this,t,r,n)}}))},56403:(e,t,r)=>{r(58754)("Int32",4,(function(e){return function(t,r,n){return e(this,t,r,n)}}))},95443:(e,t,r)=>{r(58754)("Int8",1,(function(e){return function(t,r,n){return e(this,t,r,n)}}))},17846:(e,t,r)=>{r(58754)("Uint16",2,(function(e){return function(t,r,n){return e(this,t,r,n)}}))},51200:(e,t,r)=>{r(58754)("Uint32",4,(function(e){return function(t,r,n){return e(this,t,r,n)}}))},69815:(e,t,r)=>{r(58754)("Uint8",1,(function(e){return function(t,r,n){return e(this,t,r,n)}}))},43771:(e,t,r)=>{r(58754)("Uint8",1,(function(e){return function(t,r,n){return e(this,t,r,n)}}),!0)},57391:(e,t,r)=>{"use strict";var n,i=r(56341),o=r(66934)(0),a=r(1564),s=r(82153),c=r(49821),u=r(33503),l=r(17481),d=r(91603),f=r(91603),p=!i.ActiveXObject&&"ActiveXObject"in i,h="WeakMap",v=s.getWeak,m=Object.isExtensible,g=u.ufstore,y=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},E={get:function(e){if(l(e)){var t=v(e);return!0===t?g(d(this,h)).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(d(this,h),e,t)}},S=e.exports=r(58091)(h,y,E,u,!0,!0);f&&p&&(c((n=u.getConstructor(y,h)).prototype,E),s.NEED=!0,o(["delete","has","get","set"],(function(e){var t=S.prototype,r=t[e];a(t,e,(function(t,i){if(l(t)&&!m(t)){this._f||(this._f=new n);var o=this._f[e](t,i);return"set"==e?this:o}return r.call(this,t,i)}))})))},33307:(e,t,r)=>{"use strict";var n=r(33503),i=r(91603),o="WeakSet";r(58091)(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return n.def(i(this,o),e,!0)}},n,!1,!0)},98125:(e,t,r)=>{"use strict";var n=r(35366),i=r(3885),o=r(54200),a=r(61838),s=r(23079),c=r(44087);n(n.P,"Array",{flatMap:function(e){var t,r,n=o(this);return s(e),t=a(n.length),r=c(n,0),i(r,n,n,t,0,1,e,arguments[1]),r}}),r(12802)("flatMap")},49348:(e,t,r)=>{"use strict";var n=r(35366),i=r(61545)(!0);n(n.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(12802)("includes")},1768:(e,t,r)=>{var n=r(35366),i=r(15346)(!0);n(n.S,"Object",{entries:function(e){return i(e)}})},59223:(e,t,r)=>{var n=r(35366),i=r(17285),o=r(8500),a=r(57762),s=r(51676);n(n.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,r,n=o(e),c=a.f,u=i(n),l={},d=0;u.length>d;)void 0!==(r=c(n,t=u[d++]))&&s(l,t,r);return l}})},67442:(e,t,r)=>{var n=r(35366),i=r(15346)(!1);n(n.S,"Object",{values:function(e){return i(e)}})},14936:(e,t,r)=>{"use strict";var n=r(35366),i=r(14411),o=r(56341),a=r(59789),s=r(38614);n(n.P+n.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),r="function"==typeof e;return this.then(r?function(r){return s(t,e()).then((function(){return r}))}:e,r?function(r){return s(t,e()).then((function(){throw r}))}:e)}})},20239:(e,t,r)=>{"use strict";var n=r(35366),i=r(9823),o=r(83843),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*a,"String",{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},28755:(e,t,r)=>{"use strict";var n=r(35366),i=r(9823),o=r(83843),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*a,"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},53412:(e,t,r)=>{"use strict";r(97370)("trimLeft",(function(e){return function(){return e(this,1)}}),"trimStart")},66948:(e,t,r)=>{"use strict";r(97370)("trimRight",(function(e){return function(){return e(this,2)}}),"trimEnd")},78284:(e,t,r)=>{r(48155)("asyncIterator")},78745:(e,t,r)=>{for(var n=r(71308),i=r(15825),o=r(1564),a=r(56341),s=r(98442),c=r(4919),u=r(9739),l=u("iterator"),d=u("toStringTag"),f=c.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=i(p),v=0;v<h.length;v++){var m,g=h[v],y=p[g],E=a[g],S=E&&E.prototype;if(S&&(S[l]||s(S,l,f),S[d]||s(S,d,g),c[g]=f,y))for(m in n)S[m]||o(S,m,n[m],!0)}},60025:(e,t,r)=>{var n=r(35366),i=r(7122);n(n.G+n.B,{setImmediate:i.set,clearImmediate:i.clear})},51629:(e,t,r)=>{var n=r(56341),i=r(35366),o=r(83843),a=[].slice,s=/MSIE .\./.test(o),c=function(e){return function(t,r){var n=arguments.length>2,i=!!n&&a.call(arguments,2);return e(n?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,r)}};i(i.G+i.B+i.F*s,{setTimeout:c(n.setTimeout),setInterval:c(n.setInterval)})},1523:(e,t,r)=>{r(51629),r(60025),r(78745),e.exports=r(14411)},50176:(e,t,r)=>{r(79169),r(63090),e.exports=r(63093).Array.from},70964:(e,t,r)=>{r(48901),e.exports=r(63093).Array.isArray},76216:(e,t,r)=>{r(78175),e.exports=r(63093).Date.now},23565:(e,t,r)=>{var n=r(63093),i=n.JSON||(n.JSON={stringify:JSON.stringify});e.exports=function(e){return i.stringify.apply(i,arguments)}},94175:(e,t,r)=>{r(56536),r(79169),r(39361),r(99228),r(90401),r(28878),r(33012),e.exports=r(63093).Map},68080:(e,t,r)=>{r(57044),e.exports=r(63093).Number.isNaN},68207:(e,t,r)=>{r(82464),e.exports=r(63093).Object.assign},25380:(e,t,r)=>{r(97660);var n=r(63093).Object;e.exports=function(e,t){return n.create(e,t)}},99848:(e,t,r)=>{r(84521);var n=r(63093).Object;e.exports=function(e,t){return n.defineProperties(e,t)}},82624:(e,t,r)=>{r(15356);var n=r(63093).Object;e.exports=function(e,t,r){return n.defineProperty(e,t,r)}},88058:(e,t,r)=>{r(39827),e.exports=r(63093).Object.entries},36759:(e,t,r)=>{r(8638),e.exports=r(63093).Object.freeze},44221:(e,t,r)=>{r(52812);var n=r(63093).Object;e.exports=function(e,t){return n.getOwnPropertyDescriptor(e,t)}},22991:(e,t,r)=>{r(40342),e.exports=r(63093).Object.getOwnPropertyDescriptors},72818:(e,t,r)=>{r(15898),e.exports=r(63093).Object.getOwnPropertySymbols},87595:(e,t,r)=>{r(92810),e.exports=r(63093).Object.getPrototypeOf},15297:(e,t,r)=>{r(5338),e.exports=r(63093).Object.keys},21900:(e,t,r)=>{r(99269),e.exports=r(63093).Object.setPrototypeOf},42837:(e,t,r)=>{r(73625),e.exports=r(63093).Object.values},97186:(e,t,r)=>{r(55),e.exports=r(63093).parseFloat},16111:(e,t,r)=>{r(68785),e.exports=r(63093).parseInt},89448:(e,t,r)=>{r(56536),r(79169),r(39361),r(63723),r(36556),r(8421),e.exports=r(63093).Promise},58564:(e,t,r)=>{r(41896),e.exports=r(63093).Reflect.apply},98401:(e,t,r)=>{r(90634),e.exports=r(63093).Reflect.construct},53268:(e,t,r)=>{r(51244),e.exports=r(63093).Reflect.defineProperty},76409:(e,t,r)=>{r(16877),e.exports=r(63093).Reflect.deleteProperty},46383:(e,t,r)=>{r(39181),e.exports=r(63093).Reflect.getOwnPropertyDescriptor},42437:(e,t,r)=>{r(69805),e.exports=r(63093).Reflect.get},98828:(e,t,r)=>{r(56536),r(79169),r(39361),r(6348),r(30093),r(42235),r(68572),e.exports=r(63093).Set},71922:(e,t,r)=>{r(15898),r(56536),r(52145),r(74775),e.exports=r(63093).Symbol},72974:(e,t,r)=>{r(79169),r(39361),e.exports=r(33485).f("iterator")},90446:(e,t,r)=>{e.exports=r(33485).f("toPrimitive")},69488:(e,t,r)=>{r(56536),r(39361),r(11610),r(91877),r(20206),e.exports=r(63093).WeakMap},18679:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},86687:e=>{e.exports=function(){}},8003:e=>{e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},49226:(e,t,r)=>{var n=r(44425);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},51705:(e,t,r)=>{var n=r(26510);e.exports=function(e,t){var r=[];return n(e,!1,r.push,r,t),r}},43206:(e,t,r)=>{var n=r(6303),i=r(45321),o=r(10139);e.exports=function(e){return function(t,r,a){var s,c=n(t),u=i(c.length),l=o(a,u);if(e&&r!=r){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}}},18485:(e,t,r)=>{var n=r(31133),i=r(65474),o=r(54922),a=r(45321),s=r(243);e.exports=function(e,t){var r=1==e,c=2==e,u=3==e,l=4==e,d=6==e,f=5==e||d,p=t||s;return function(t,s,h){for(var v,m,g=o(t),y=i(g),E=n(s,h,3),S=a(y.length),_=0,b=r?p(t,S):c?p(t,0):void 0;S>_;_++)if((f||_ in y)&&(m=E(v=y[_],_,g),e))if(r)b[_]=m;else if(m)switch(e){case 3:return!0;case 5:return v;case 6:return _;case 2:b.push(v)}else if(l)return!1;return d?-1:u||l?l:b}}},33723:(e,t,r)=>{var n=r(44425),i=r(35730),o=r(23032)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),n(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},243:(e,t,r)=>{var n=r(33723);e.exports=function(e,t){return new(n(e))(t)}},98659:(e,t,r)=>{"use strict";var n=r(18679),i=r(44425),o=r(44990),a=[].slice,s={};e.exports=Function.bind||function(e){var t=n(this),r=a.call(arguments,1),c=function(){var n=r.concat(a.call(arguments));return this instanceof c?function(e,t,r){if(!(t in s)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";s[t]=Function("F,a","return new F("+n.join(",")+")")}return s[t](e,r)}(t,n.length,n):o(t,n,e)};return i(t.prototype)&&(c.prototype=t.prototype),c}},85158:(e,t,r)=>{var n=r(47489),i=r(23032)("toStringTag"),o="Arguments"==n(function(){return arguments}());e.exports=function(e){var t,r,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:o?n(t):"Object"==(a=n(t))&&"function"==typeof t.callee?"Arguments":a}},47489:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},21706:(e,t,r)=>{"use strict";var n=r(56007).f,i=r(69270),o=r(561),a=r(31133),s=r(8003),c=r(26510),u=r(60354),l=r(85490),d=r(7183),f=r(97305),p=r(57010).fastKey,h=r(10069),v=f?"_s":"size",m=function(e,t){var r,n=p(t);if("F"!==n)return e._i[n];for(r=e._f;r;r=r.n)if(r.k==t)return r};e.exports={getConstructor:function(e,t,r,u){var l=e((function(e,n){s(e,l,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[v]=0,null!=n&&c(n,r,e[u],e)}));return o(l.prototype,{clear:function(){for(var e=h(this,t),r=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];e._f=e._l=void 0,e[v]=0},delete:function(e){var r=h(this,t),n=m(r,e);if(n){var i=n.n,o=n.p;delete r._i[n.i],n.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==n&&(r._f=i),r._l==n&&(r._l=o),r[v]--}return!!n},forEach:function(e){h(this,t);for(var r,n=a(e,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(n(r.v,r.k,this);r&&r.r;)r=r.p},has:function(e){return!!m(h(this,t),e)}}),f&&n(l.prototype,"size",{get:function(){return h(this,t)[v]}}),l},def:function(e,t,r){var n,i,o=m(e,t);return o?o.v=r:(e._l=o={i:i=p(t,!0),k:t,v:r,p:n=e._l,n:void 0,r:!1},e._f||(e._f=o),n&&(n.n=o),e[v]++,"F"!==i&&(e._i[i]=o)),e},getEntry:m,setStrong:function(e,t,r){u(e,t,(function(e,r){this._t=h(e,t),this._k=r,this._l=void 0}),(function(){for(var e=this,t=e._k,r=e._l;r&&r.r;)r=r.p;return e._t&&(e._l=r=r?r.n:e._t._f)?l(0,"keys"==t?r.k:"values"==t?r.v:[r.k,r.v]):(e._t=void 0,l(1))}),r?"entries":"values",!r,!0),d(t)}}},80540:(e,t,r)=>{var n=r(85158),i=r(51705);e.exports=function(e){return function(){if(n(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},77760:(e,t,r)=>{"use strict";var n=r(561),i=r(57010).getWeak,o=r(49226),a=r(44425),s=r(8003),c=r(26510),u=r(18485),l=r(3920),d=r(10069),f=u(5),p=u(6),h=0,v=function(e){return e._l||(e._l=new m)},m=function(){this.a=[]},g=function(e,t){return f(e.a,(function(e){return e[0]===t}))};m.prototype={get:function(e){var t=g(this,e);if(t)return t[1]},has:function(e){return!!g(this,e)},set:function(e,t){var r=g(this,e);r?r[1]=t:this.a.push([e,t])},delete:function(e){var t=p(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,r,o){var u=e((function(e,n){s(e,u,t,"_i"),e._t=t,e._i=h++,e._l=void 0,null!=n&&c(n,r,e[o],e)}));return n(u.prototype,{delete:function(e){if(!a(e))return!1;var r=i(e);return!0===r?v(d(this,t)).delete(e):r&&l(r,this._i)&&delete r[this._i]},has:function(e){if(!a(e))return!1;var r=i(e);return!0===r?v(d(this,t)).has(e):r&&l(r,this._i)}}),u},def:function(e,t,r){var n=i(o(t),!0);return!0===n?v(e).set(t,r):n[e._i]=r,e},ufstore:v}},66924:(e,t,r)=>{"use strict";var n=r(3220),i=r(14518),o=r(57010),a=r(84930),s=r(44379),c=r(561),u=r(26510),l=r(8003),d=r(44425),f=r(8182),p=r(56007).f,h=r(18485)(0),v=r(97305);e.exports=function(e,t,r,m,g,y){var E=n[e],S=E,_=g?"set":"add",b=S&&S.prototype,R={};return v&&"function"==typeof S&&(y||b.forEach&&!a((function(){(new S).entries().next()})))?(S=t((function(t,r){l(t,S,e,"_c"),t._c=new E,null!=r&&u(r,g,t[_],t)})),h("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),(function(e){var t="add"==e||"set"==e;!(e in b)||y&&"clear"==e||s(S.prototype,e,(function(r,n){if(l(this,S,e),!t&&y&&!d(r))return"get"==e&&void 0;var i=this._c[e](0===r?0:r,n);return t?this:i}))})),y||p(S.prototype,"size",{get:function(){return this._c.size}})):(S=m.getConstructor(t,e,g,_),c(S.prototype,r),o.NEED=!0),f(S,e),R[e]=S,i(i.G+i.W+i.F,R),y||m.setStrong(S,e,g),S}},63093:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},10101:(e,t,r)=>{"use strict";var n=r(56007),i=r(35831);e.exports=function(e,t,r){t in e?n.f(e,t,i(0,r)):e[t]=r}},31133:(e,t,r)=>{var n=r(18679);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},59359:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},97305:(e,t,r)=>{e.exports=!r(84930)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},3299:(e,t,r)=>{var n=r(44425),i=r(3220).document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},75834:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},94331:(e,t,r)=>{var n=r(31304),i=r(18382),o=r(55066);e.exports=function(e){var t=n(e),r=i.f;if(r)for(var a,s=r(e),c=o.f,u=0;s.length>u;)c.call(e,a=s[u++])&&t.push(a);return t}},14518:(e,t,r)=>{var n=r(3220),i=r(63093),o=r(31133),a=r(44379),s=r(3920),c="prototype",u=function(e,t,r){var l,d,f,p=e&u.F,h=e&u.G,v=e&u.S,m=e&u.P,g=e&u.B,y=e&u.W,E=h?i:i[t]||(i[t]={}),S=E[c],_=h?n:v?n[t]:(n[t]||{})[c];for(l in h&&(r=t),r)(d=!p&&_&&void 0!==_[l])&&s(E,l)||(f=d?_[l]:r[l],E[l]=h&&"function"!=typeof _[l]?r[l]:g&&d?o(f,n):y&&_[l]==f?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t[c]=e[c],t}(f):m&&"function"==typeof f?o(Function.call,f):f,m&&((E.virtual||(E.virtual={}))[l]=f,e&u.R&&S&&!S[l]&&a(S,l,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},84930:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},26510:(e,t,r)=>{var n=r(31133),i=r(12441),o=r(92566),a=r(49226),s=r(45321),c=r(25816),u={},l={},d=e.exports=function(e,t,r,d,f){var p,h,v,m,g=f?function(){return e}:c(e),y=n(r,d,t?2:1),E=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(o(g)){for(p=s(e.length);p>E;E++)if((m=t?y(a(h=e[E])[0],h[1]):y(e[E]))===u||m===l)return m}else for(v=g.call(e);!(h=v.next()).done;)if((m=i(v,y,h.value,t))===u||m===l)return m};d.BREAK=u,d.RETURN=l},3220:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},3920:e=>{var t={}.hasOwnProperty;e.exports=function(e,r){return t.call(e,r)}},44379:(e,t,r)=>{var n=r(56007),i=r(35831);e.exports=r(97305)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},588:(e,t,r)=>{var n=r(3220).document;e.exports=n&&n.documentElement},17209:(e,t,r)=>{e.exports=!r(97305)&&!r(84930)((function(){return 7!=Object.defineProperty(r(3299)("div"),"a",{get:function(){return 7}}).a}))},44990:e=>{e.exports=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},65474:(e,t,r)=>{var n=r(47489);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},92566:(e,t,r)=>{var n=r(64502),i=r(23032)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},35730:(e,t,r)=>{var n=r(47489);e.exports=Array.isArray||function(e){return"Array"==n(e)}},44425:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},12441:(e,t,r)=>{var n=r(49226);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&n(o.call(e)),t}}},95415:(e,t,r)=>{"use strict";var n=r(69270),i=r(35831),o=r(8182),a={};r(44379)(a,r(23032)("iterator"),(function(){return this})),e.exports=function(e,t,r){e.prototype=n(a,{next:i(1,r)}),o(e,t+" Iterator")}},60354:(e,t,r)=>{"use strict";var n=r(34436),i=r(14518),o=r(29763),a=r(44379),s=r(64502),c=r(95415),u=r(8182),l=r(65194),d=r(23032)("iterator"),f=!([].keys&&"next"in[].keys()),p="keys",h="values",v=function(){return this};e.exports=function(e,t,r,m,g,y,E){c(r,t,m);var S,_,b,R=function(e){if(!f&&e in x)return x[e];switch(e){case p:case h:return function(){return new r(this,e)}}return function(){return new r(this,e)}},T=t+" Iterator",w=g==h,I=!1,x=e.prototype,A=x[d]||x["@@iterator"]||g&&x[g],C=A||R(g),O=g?w?R("entries"):C:void 0,k="Array"==t&&x.entries||A;if(k&&(b=l(k.call(new e)))!==Object.prototype&&b.next&&(u(b,T,!0),n||"function"==typeof b[d]||a(b,d,v)),w&&A&&A.name!==h&&(I=!0,C=function(){return A.call(this)}),n&&!E||!f&&!I&&x[d]||a(x,d,C),s[t]=C,s[T]=v,g)if(S={values:w?C:R(h),keys:y?C:R(p),entries:O},E)for(_ in S)_ in x||o(x,_,S[_]);else i(i.P+i.F*(f||I),t,S);return S}},98661:(e,t,r)=>{var n=r(23032)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},e(o)}catch(e){}return r}},85490:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},64502:e=>{e.exports={}},34436:e=>{e.exports=!0},57010:(e,t,r)=>{var n=r(46918)("meta"),i=r(44425),o=r(3920),a=r(56007).f,s=0,c=Object.isExtensible||function(){return!0},u=!r(84930)((function(){return c(Object.preventExtensions({}))})),l=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,n)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[n].i},getWeak:function(e,t){if(!o(e,n)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[n].w},onFreeze:function(e){return u&&d.NEED&&c(e)&&!o(e,n)&&l(e),e}}},9734:(e,t,r)=>{var n=r(3220),i=r(26998).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,c="process"==r(47489)(a);e.exports=function(){var e,t,r,u=function(){var n,i;for(c&&(n=a.domain)&&n.exit();e;){i=e.fn,e=e.next;try{i()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()};if(c)r=function(){a.nextTick(u)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);r=function(){l.then(u)}}else r=function(){i.call(n,u)};else{var d=!0,f=document.createTextNode("");new o(u).observe(f,{characterData:!0}),r=function(){f.data=d=!d}}return function(n){var i={fn:n,next:void 0};t&&(t.next=i),e||(e=i,r()),t=i}}},36253:(e,t,r)=>{"use strict";var n=r(18679);function i(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)}e.exports.f=function(e){return new i(e)}},47382:(e,t,r)=>{"use strict";var n=r(97305),i=r(31304),o=r(18382),a=r(55066),s=r(54922),c=r(65474),u=Object.assign;e.exports=!u||r(84930)((function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=u({},e)[r]||Object.keys(u({},t)).join("")!=n}))?function(e,t){for(var r=s(e),u=arguments.length,l=1,d=o.f,f=a.f;u>l;)for(var p,h=c(arguments[l++]),v=d?i(h).concat(d(h)):i(h),m=v.length,g=0;m>g;)p=v[g++],n&&!f.call(h,p)||(r[p]=h[p]);return r}:u},69270:(e,t,r)=>{var n=r(49226),i=r(16287),o=r(75834),a=r(72596)("IE_PROTO"),s=function(){},c="prototype",u=function(){var e,t=r(3299)("iframe"),n=o.length;for(t.style.display="none",r(588).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;n--;)delete u[c][o[n]];return u()};e.exports=Object.create||function(e,t){var r;return null!==e?(s[c]=n(e),r=new s,s[c]=null,r[a]=e):r=u(),void 0===t?r:i(r,t)}},56007:(e,t,r)=>{var n=r(49226),i=r(17209),o=r(32548),a=Object.defineProperty;t.f=r(97305)?Object.defineProperty:function(e,t,r){if(n(e),t=o(t,!0),n(r),i)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},16287:(e,t,r)=>{var n=r(56007),i=r(49226),o=r(31304);e.exports=r(97305)?Object.defineProperties:function(e,t){i(e);for(var r,a=o(t),s=a.length,c=0;s>c;)n.f(e,r=a[c++],t[r]);return e}},30826:(e,t,r)=>{var n=r(55066),i=r(35831),o=r(6303),a=r(32548),s=r(3920),c=r(17209),u=Object.getOwnPropertyDescriptor;t.f=r(97305)?u:function(e,t){if(e=o(e),t=a(t,!0),c)try{return u(e,t)}catch(e){}if(s(e,t))return i(!n.f.call(e,t),e[t])}},23208:(e,t,r)=>{var n=r(6303),i=r(95733).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(n(e))}},95733:(e,t,r)=>{var n=r(26567),i=r(75834).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},18382:(e,t)=>{t.f=Object.getOwnPropertySymbols},65194:(e,t,r)=>{var n=r(3920),i=r(54922),o=r(72596)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},26567:(e,t,r)=>{var n=r(3920),i=r(6303),o=r(43206)(!1),a=r(72596)("IE_PROTO");e.exports=function(e,t){var r,s=i(e),c=0,u=[];for(r in s)r!=a&&n(s,r)&&u.push(r);for(;t.length>c;)n(s,r=t[c++])&&(~o(u,r)||u.push(r));return u}},31304:(e,t,r)=>{var n=r(26567),i=r(75834);e.exports=Object.keys||function(e){return n(e,i)}},55066:(e,t)=>{t.f={}.propertyIsEnumerable},70874:(e,t,r)=>{var n=r(14518),i=r(63093),o=r(84930);e.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*o((function(){r(1)})),"Object",a)}},30572:(e,t,r)=>{var n=r(97305),i=r(31304),o=r(6303),a=r(55066).f;e.exports=function(e){return function(t){for(var r,s=o(t),c=i(s),u=c.length,l=0,d=[];u>l;)r=c[l++],n&&!a.call(s,r)||d.push(e?[r,s[r]]:s[r]);return d}}},74737:(e,t,r)=>{var n=r(95733),i=r(18382),o=r(49226),a=r(3220).Reflect;e.exports=a&&a.ownKeys||function(e){var t=n.f(o(e)),r=i.f;return r?t.concat(r(e)):t}},23080:(e,t,r)=>{var n=r(3220).parseFloat,i=r(28685).trim;e.exports=1/n(r(58917)+"-0")!=-1/0?function(e){var t=i(String(e),3),r=n(t);return 0===r&&"-"==t.charAt(0)?-0:r}:n},24049:(e,t,r)=>{var n=r(3220).parseInt,i=r(28685).trim,o=r(58917),a=/^[-+]?0[xX]/;e.exports=8!==n(o+"08")||22!==n(o+"0x16")?function(e,t){var r=i(String(e),3);return n(r,t>>>0||(a.test(r)?16:10))}:n},19934:e=>{e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},77116:(e,t,r)=>{var n=r(49226),i=r(44425),o=r(36253);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},35831:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},561:(e,t,r)=>{var n=r(44379);e.exports=function(e,t,r){for(var i in t)r&&e[i]?e[i]=t[i]:n(e,i,t[i]);return e}},29763:(e,t,r)=>{e.exports=r(44379)},74573:(e,t,r)=>{"use strict";var n=r(14518),i=r(18679),o=r(31133),a=r(26510);e.exports=function(e){n(n.S,e,{from:function(e){var t,r,n,s,c=arguments[1];return i(this),(t=void 0!==c)&&i(c),null==e?new this:(r=[],t?(n=0,s=o(c,arguments[2],2),a(e,!1,(function(e){r.push(s(e,n++))}))):a(e,!1,r.push,r),new this(r))}})}},72758:(e,t,r)=>{"use strict";var n=r(14518);e.exports=function(e){n(n.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},96573:(e,t,r)=>{var n=r(44425),i=r(49226),o=function(e,t){if(i(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=r(31133)(Function.call,r(30826).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return o(e,r),t?e.__proto__=r:n(e,r),e}}({},!1):void 0),check:o}},7183:(e,t,r)=>{"use strict";var n=r(3220),i=r(63093),o=r(56007),a=r(97305),s=r(23032)("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:n[e];a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},8182:(e,t,r)=>{var n=r(56007).f,i=r(3920),o=r(23032)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},72596:(e,t,r)=>{var n=r(5628)("keys"),i=r(46918);e.exports=function(e){return n[e]||(n[e]=i(e))}},5628:(e,t,r)=>{var n=r(63093),i=r(3220),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(34436)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},312:(e,t,r)=>{var n=r(49226),i=r(18679),o=r(23032)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||null==(r=n(a)[o])?t:i(r)}},87268:(e,t,r)=>{var n=r(72579),i=r(59359);e.exports=function(e){return function(t,r){var o,a,s=String(i(t)),c=n(r),u=s.length;return c<0||c>=u?e?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}}},28685:(e,t,r)=>{var n=r(14518),i=r(59359),o=r(84930),a=r(58917),s="["+a+"]",c=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),l=function(e,t,r){var i={},s=o((function(){return!!a[e]()||"​…"!="​…"[e]()})),c=i[e]=s?t(d):a[e];r&&(i[r]=c),n(n.P+n.F*s,"String",i)},d=l.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(u,"")),e};e.exports=l},58917:e=>{e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},26998:(e,t,r)=>{var n,i,o,a=r(31133),s=r(44990),c=r(588),u=r(3299),l=r(3220),d=l.process,f=l.setImmediate,p=l.clearImmediate,h=l.MessageChannel,v=l.Dispatch,m=0,g={},y="onreadystatechange",E=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},S=function(e){E.call(e.data)};f&&p||(f=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return g[++m]=function(){s("function"==typeof e?e:Function(e),t)},n(m),m},p=function(e){delete g[e]},"process"==r(47489)(d)?n=function(e){d.nextTick(a(E,e,1))}:v&&v.now?n=function(e){v.now(a(E,e,1))}:h?(o=(i=new h).port2,i.port1.onmessage=S,n=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(e){l.postMessage(e+"","*")},l.addEventListener("message",S,!1)):n=y in u("script")?function(e){c.appendChild(u("script"))[y]=function(){c.removeChild(this),E.call(e)}}:function(e){setTimeout(a(E,e,1),0)}),e.exports={set:f,clear:p}},10139:(e,t,r)=>{var n=r(72579),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=n(e))<0?i(e+t,0):o(e,t)}},72579:e=>{var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},6303:(e,t,r)=>{var n=r(65474),i=r(59359);e.exports=function(e){return n(i(e))}},45321:(e,t,r)=>{var n=r(72579),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},54922:(e,t,r)=>{var n=r(59359);e.exports=function(e){return Object(n(e))}},32548:(e,t,r)=>{var n=r(44425);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},46918:e=>{var t=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+r).toString(36))}},58411:(e,t,r)=>{var n=r(3220).navigator;e.exports=n&&n.userAgent||""},10069:(e,t,r)=>{var n=r(44425);e.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},10305:(e,t,r)=>{var n=r(3220),i=r(63093),o=r(34436),a=r(33485),s=r(56007).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},33485:(e,t,r)=>{t.f=r(23032)},23032:(e,t,r)=>{var n=r(5628)("wks"),i=r(46918),o=r(3220).Symbol,a="function"==typeof o;(e.exports=function(e){return n[e]||(n[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=n},25816:(e,t,r)=>{var n=r(85158),i=r(23032)("iterator"),o=r(64502);e.exports=r(63093).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[n(e)]}},63090:(e,t,r)=>{"use strict";var n=r(31133),i=r(14518),o=r(54922),a=r(12441),s=r(92566),c=r(45321),u=r(10101),l=r(25816);i(i.S+i.F*!r(98661)((function(e){Array.from(e)})),"Array",{from:function(e){var t,r,i,d,f=o(e),p="function"==typeof this?this:Array,h=arguments.length,v=h>1?arguments[1]:void 0,m=void 0!==v,g=0,y=l(f);if(m&&(v=n(v,h>2?arguments[2]:void 0,2)),null==y||p==Array&&s(y))for(r=new p(t=c(f.length));t>g;g++)u(r,g,m?v(f[g],g):f[g]);else for(d=y.call(f),r=new p;!(i=d.next()).done;g++)u(r,g,m?a(d,v,[i.value,g],!0):i.value);return r.length=g,r}})},48901:(e,t,r)=>{var n=r(14518);n(n.S,"Array",{isArray:r(35730)})},74296:(e,t,r)=>{"use strict";var n=r(86687),i=r(85490),o=r(64502),a=r(6303);e.exports=r(60354)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])}),"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},78175:(e,t,r)=>{var n=r(14518);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},99228:(e,t,r)=>{"use strict";var n=r(21706),i=r(10069),o="Map";e.exports=r(66924)(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=n.getEntry(i(this,o),e);return t&&t.v},set:function(e,t){return n.def(i(this,o),0===e?0:e,t)}},n,!0)},57044:(e,t,r)=>{var n=r(14518);n(n.S,"Number",{isNaN:function(e){return e!=e}})},82464:(e,t,r)=>{var n=r(14518);n(n.S+n.F,"Object",{assign:r(47382)})},97660:(e,t,r)=>{var n=r(14518);n(n.S,"Object",{create:r(69270)})},84521:(e,t,r)=>{var n=r(14518);n(n.S+n.F*!r(97305),"Object",{defineProperties:r(16287)})},15356:(e,t,r)=>{var n=r(14518);n(n.S+n.F*!r(97305),"Object",{defineProperty:r(56007).f})},8638:(e,t,r)=>{var n=r(44425),i=r(57010).onFreeze;r(70874)("freeze",(function(e){return function(t){return e&&n(t)?e(i(t)):t}}))},52812:(e,t,r)=>{var n=r(6303),i=r(30826).f;r(70874)("getOwnPropertyDescriptor",(function(){return function(e,t){return i(n(e),t)}}))},92810:(e,t,r)=>{var n=r(54922),i=r(65194);r(70874)("getPrototypeOf",(function(){return function(e){return i(n(e))}}))},5338:(e,t,r)=>{var n=r(54922),i=r(31304);r(70874)("keys",(function(){return function(e){return i(n(e))}}))},99269:(e,t,r)=>{var n=r(14518);n(n.S,"Object",{setPrototypeOf:r(96573).set})},56536:()=>{},55:(e,t,r)=>{var n=r(14518),i=r(23080);n(n.G+n.F*(parseFloat!=i),{parseFloat:i})},68785:(e,t,r)=>{var n=r(14518),i=r(24049);n(n.G+n.F*(parseInt!=i),{parseInt:i})},63723:(e,t,r)=>{"use strict";var n,i,o,a,s=r(34436),c=r(3220),u=r(31133),l=r(85158),d=r(14518),f=r(44425),p=r(18679),h=r(8003),v=r(26510),m=r(312),g=r(26998).set,y=r(9734)(),E=r(36253),S=r(19934),_=r(58411),b=r(77116),R="Promise",T=c.TypeError,w=c.process,I=w&&w.versions,x=I&&I.v8||"",A=c[R],C="process"==l(w),O=function(){},k=i=E.f,N=!!function(){try{var e=A.resolve(1),t=(e.constructor={})[r(23032)("species")]=function(e){e(O,O)};return(C||"function"==typeof PromiseRejectionEvent)&&e.then(O)instanceof t&&0!==x.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(e){}}(),L=function(e){var t;return!(!f(e)||"function"!=typeof(t=e.then))&&t},P=function(e,t){if(!e._n){e._n=!0;var r=e._c;y((function(){for(var n=e._v,i=1==e._s,o=0,a=function(t){var r,o,a,s=i?t.ok:t.fail,c=t.resolve,u=t.reject,l=t.domain;try{s?(i||(2==e._h&&U(e),e._h=1),!0===s?r=n:(l&&l.enter(),r=s(n),l&&(l.exit(),a=!0)),r===t.promise?u(T("Promise-chain cycle")):(o=L(r))?o.call(r,c,u):c(r)):u(n)}catch(e){l&&!a&&l.exit(),u(e)}};r.length>o;)a(r[o++]);e._c=[],e._n=!1,t&&!e._h&&M(e)}))}},M=function(e){g.call(c,(function(){var t,r,n,i=e._v,o=D(e);if(o&&(t=S((function(){C?w.emit("unhandledRejection",i,e):(r=c.onunhandledrejection)?r({promise:e,reason:i}):(n=c.console)&&n.error&&n.error("Unhandled promise rejection",i)})),e._h=C||D(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},D=function(e){return 1!==e._h&&0===(e._a||e._c).length},U=function(e){g.call(c,(function(){var t;C?w.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})}))},j=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),P(t,!0))},F=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw T("Promise can't be resolved itself");(t=L(e))?y((function(){var n={_w:r,_d:!1};try{t.call(e,u(F,n,1),u(j,n,1))}catch(e){j.call(n,e)}})):(r._v=e,r._s=1,P(r,!1))}catch(e){j.call({_w:r,_d:!1},e)}}};N||(A=function(e){h(this,A,R,"_h"),p(e),n.call(this);try{e(u(F,this,1),u(j,this,1))}catch(e){j.call(this,e)}},(n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(561)(A.prototype,{then:function(e,t){var r=k(m(this,A));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=C?w.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&P(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new n;this.promise=e,this.resolve=u(F,e,1),this.reject=u(j,e,1)},E.f=k=function(e){return e===A||e===a?new o(e):i(e)}),d(d.G+d.W+d.F*!N,{Promise:A}),r(8182)(A,R),r(7183)(R),a=r(63093)[R],d(d.S+d.F*!N,R,{reject:function(e){var t=k(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(s||!N),R,{resolve:function(e){return b(s&&this===a?A:this,e)}}),d(d.S+d.F*!(N&&r(98661)((function(e){A.all(e).catch(O)}))),R,{all:function(e){var t=this,r=k(t),n=r.resolve,i=r.reject,o=S((function(){var r=[],o=0,a=1;v(e,!1,(function(e){var s=o++,c=!1;r.push(void 0),a++,t.resolve(e).then((function(e){c||(c=!0,r[s]=e,--a||n(r))}),i)})),--a||n(r)}));return o.e&&i(o.v),r.promise},race:function(e){var t=this,r=k(t),n=r.reject,i=S((function(){v(e,!1,(function(e){t.resolve(e).then(r.resolve,n)}))}));return i.e&&n(i.v),r.promise}})},41896:(e,t,r)=>{var n=r(14518),i=r(18679),o=r(49226),a=(r(3220).Reflect||{}).apply,s=Function.apply;n(n.S+n.F*!r(84930)((function(){a((function(){}))})),"Reflect",{apply:function(e,t,r){var n=i(e),c=o(r);return a?a(n,t,c):s.call(n,t,c)}})},90634:(e,t,r)=>{var n=r(14518),i=r(69270),o=r(18679),a=r(49226),s=r(44425),c=r(84930),u=r(98659),l=(r(3220).Reflect||{}).construct,d=c((function(){function e(){}return!(l((function(){}),[],e)instanceof e)})),f=!c((function(){l((function(){}))}));n(n.S+n.F*(d||f),"Reflect",{construct:function(e,t){o(e),a(t);var r=arguments.length<3?e:o(arguments[2]);if(f&&!d)return l(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return n.push.apply(n,t),new(u.apply(e,n))}var c=r.prototype,p=i(s(c)?c:Object.prototype),h=Function.apply.call(e,p,t);return s(h)?h:p}})},51244:(e,t,r)=>{var n=r(56007),i=r(14518),o=r(49226),a=r(32548);i(i.S+i.F*r(84930)((function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(e,t,r){o(e),t=a(t,!0),o(r);try{return n.f(e,t,r),!0}catch(e){return!1}}})},16877:(e,t,r)=>{var n=r(14518),i=r(30826).f,o=r(49226);n(n.S,"Reflect",{deleteProperty:function(e,t){var r=i(o(e),t);return!(r&&!r.configurable)&&delete e[t]}})},39181:(e,t,r)=>{var n=r(30826),i=r(14518),o=r(49226);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return n.f(o(e),t)}})},69805:(e,t,r)=>{var n=r(30826),i=r(65194),o=r(3920),a=r(14518),s=r(44425),c=r(49226);a(a.S,"Reflect",{get:function e(t,r){var a,u,l=arguments.length<3?t:arguments[2];return c(t)===l?t[r]:(a=n.f(t,r))?o(a,"value")?a.value:void 0!==a.get?a.get.call(l):void 0:s(u=i(t))?e(u,r,l):void 0}})},6348:(e,t,r)=>{"use strict";var n=r(21706),i=r(10069);e.exports=r(66924)("Set",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return n.def(i(this,"Set"),e=0===e?0:e,e)}},n)},79169:(e,t,r)=>{"use strict";var n=r(87268)(!0);r(60354)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})}))},15898:(e,t,r)=>{"use strict";var n=r(3220),i=r(3920),o=r(97305),a=r(14518),s=r(29763),c=r(57010).KEY,u=r(84930),l=r(5628),d=r(8182),f=r(46918),p=r(23032),h=r(33485),v=r(10305),m=r(94331),g=r(35730),y=r(49226),E=r(44425),S=r(54922),_=r(6303),b=r(32548),R=r(35831),T=r(69270),w=r(23208),I=r(30826),x=r(18382),A=r(56007),C=r(31304),O=I.f,k=A.f,N=w.f,L=n.Symbol,P=n.JSON,M=P&&P.stringify,D="prototype",U=p("_hidden"),j=p("toPrimitive"),F={}.propertyIsEnumerable,B=l("symbol-registry"),Z=l("symbols"),V=l("op-symbols"),G=Object[D],q="function"==typeof L&&!!x.f,H=n.QObject,W=!H||!H[D]||!H[D].findChild,z=o&&u((function(){return 7!=T(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=O(G,t);n&&delete G[t],k(e,t,r),n&&e!==G&&k(G,t,n)}:k,$=function(e){var t=Z[e]=T(L[D]);return t._k=e,t},K=q&&"symbol"==typeof L.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof L},Y=function(e,t,r){return e===G&&Y(V,t,r),y(e),t=b(t,!0),y(r),i(Z,t)?(r.enumerable?(i(e,U)&&e[U][t]&&(e[U][t]=!1),r=T(r,{enumerable:R(0,!1)})):(i(e,U)||k(e,U,R(1,{})),e[U][t]=!0),z(e,t,r)):k(e,t,r)},J=function(e,t){y(e);for(var r,n=m(t=_(t)),i=0,o=n.length;o>i;)Y(e,r=n[i++],t[r]);return e},Q=function(e){var t=F.call(this,e=b(e,!0));return!(this===G&&i(Z,e)&&!i(V,e))&&(!(t||!i(this,e)||!i(Z,e)||i(this,U)&&this[U][e])||t)},X=function(e,t){if(e=_(e),t=b(t,!0),e!==G||!i(Z,t)||i(V,t)){var r=O(e,t);return!r||!i(Z,t)||i(e,U)&&e[U][t]||(r.enumerable=!0),r}},ee=function(e){for(var t,r=N(_(e)),n=[],o=0;r.length>o;)i(Z,t=r[o++])||t==U||t==c||n.push(t);return n},te=function(e){for(var t,r=e===G,n=N(r?V:_(e)),o=[],a=0;n.length>a;)!i(Z,t=n[a++])||r&&!i(G,t)||o.push(Z[t]);return o};q||(s((L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(r){this===G&&t.call(V,r),i(this,U)&&i(this[U],e)&&(this[U][e]=!1),z(this,e,R(1,r))};return o&&W&&z(G,e,{configurable:!0,set:t}),$(e)})[D],"toString",(function(){return this._k})),I.f=X,A.f=Y,r(95733).f=w.f=ee,r(55066).f=Q,x.f=te,o&&!r(34436)&&s(G,"propertyIsEnumerable",Q,!0),h.f=function(e){return $(p(e))}),a(a.G+a.W+a.F*!q,{Symbol:L});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;re.length>ne;)p(re[ne++]);for(var ie=C(p.store),oe=0;ie.length>oe;)v(ie[oe++]);a(a.S+a.F*!q,"Symbol",{for:function(e){return i(B,e+="")?B[e]:B[e]=L(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in B)if(B[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!q,"Object",{create:function(e,t){return void 0===t?T(e):J(T(e),t)},defineProperty:Y,defineProperties:J,getOwnPropertyDescriptor:X,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ae=u((function(){x.f(1)}));a(a.S+a.F*ae,"Object",{getOwnPropertySymbols:function(e){return x.f(S(e))}}),P&&a(a.S+a.F*(!q||u((function(){var e=L();return"[null]"!=M([e])||"{}"!=M({a:e})||"{}"!=M(Object(e))}))),"JSON",{stringify:function(e){for(var t,r,n=[e],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=t=n[1],(E(t)||void 0!==e)&&!K(e))return g(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!K(t))return t}),n[1]=t,M.apply(P,n)}}),L[D][j]||r(44379)(L[D],j,L[D].valueOf),d(L,"Symbol"),d(Math,"Math",!0),d(n.JSON,"JSON",!0)},11610:(e,t,r)=>{"use strict";var n,i=r(3220),o=r(18485)(0),a=r(29763),s=r(57010),c=r(47382),u=r(77760),l=r(44425),d=r(10069),f=r(10069),p=!i.ActiveXObject&&"ActiveXObject"in i,h="WeakMap",v=s.getWeak,m=Object.isExtensible,g=u.ufstore,y=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},E={get:function(e){if(l(e)){var t=v(e);return!0===t?g(d(this,h)).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(d(this,h),e,t)}},S=e.exports=r(66924)(h,y,E,u,!0,!0);f&&p&&(c((n=u.getConstructor(y,h)).prototype,E),s.NEED=!0,o(["delete","has","get","set"],(function(e){var t=S.prototype,r=t[e];a(t,e,(function(t,i){if(l(t)&&!m(t)){this._f||(this._f=new n);var o=this._f[e](t,i);return"set"==e?this:o}return r.call(this,t,i)}))})))},33012:(e,t,r)=>{r(74573)("Map")},28878:(e,t,r)=>{r(72758)("Map")},90401:(e,t,r)=>{var n=r(14518);n(n.P+n.R,"Map",{toJSON:r(80540)("Map")})},39827:(e,t,r)=>{var n=r(14518),i=r(30572)(!0);n(n.S,"Object",{entries:function(e){return i(e)}})},40342:(e,t,r)=>{var n=r(14518),i=r(74737),o=r(6303),a=r(30826),s=r(10101);n(n.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,r,n=o(e),c=a.f,u=i(n),l={},d=0;u.length>d;)void 0!==(r=c(n,t=u[d++]))&&s(l,t,r);return l}})},73625:(e,t,r)=>{var n=r(14518),i=r(30572)(!1);n(n.S,"Object",{values:function(e){return i(e)}})},36556:(e,t,r)=>{"use strict";var n=r(14518),i=r(63093),o=r(3220),a=r(312),s=r(77116);n(n.P+n.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),r="function"==typeof e;return this.then(r?function(r){return s(t,e()).then((function(){return r}))}:e,r?function(r){return s(t,e()).then((function(){throw r}))}:e)}})},8421:(e,t,r)=>{"use strict";var n=r(14518),i=r(36253),o=r(19934);n(n.S,"Promise",{try:function(e){var t=i.f(this),r=o(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},68572:(e,t,r)=>{r(74573)("Set")},42235:(e,t,r)=>{r(72758)("Set")},30093:(e,t,r)=>{var n=r(14518);n(n.P+n.R,"Set",{toJSON:r(80540)("Set")})},52145:(e,t,r)=>{r(10305)("asyncIterator")},74775:(e,t,r)=>{r(10305)("observable")},20206:(e,t,r)=>{r(74573)("WeakMap")},91877:(e,t,r)=>{r(72758)("WeakMap")},39361:(e,t,r)=>{r(74296);for(var n=r(3220),i=r(44379),o=r(64502),a=r(23032)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var u=s[c],l=n[u],d=l&&l.prototype;d&&!d[a]&&i(d,a,u),o[u]=o.Array}},25512:(e,t,r)=>{var n=r(28583);e.exports=function(e){var t,r=this,i=[].slice.call(arguments);t=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return r.apply(this,arguments)},n(t,r);var o=function(){this.constructor=t};return o.prototype=r.prototype,t.prototype=new o,e&&(i.unshift(t.prototype),n.apply(null,i)),t.__super__=r.prototype,t}},90765:(e,t,r)=>{var n=r(49740),i=r(25512),o=r(1469),a=r(38169),s=r(28583),c=[].slice;function u(e,t){if(t||(t={}),t.model&&(this.model=t.model),t.comparator&&(this.comparator=t.comparator),t.parent&&(this.parent=t.parent),!this.mainIndex){var r=this.model&&this.model.prototype&&this.model.prototype.idAttribute;this.mainIndex=r||"id"}this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,s({silent:!0},t))}s(u.prototype,n,{initialize:function(){},isModel:function(e){return this.model&&e instanceof this.model},add:function(e,t){return this.set(e,s({merge:!1,add:!0,remove:!1},t))},parse:function(e,t){return e},serialize:function(){return this.map((function(e){if(e.serialize)return e.serialize();var t={};return s(t,e),delete t.collection,t}))},toJSON:function(){return this.serialize()},set:function(e,t){(t=s({add:!0,remove:!0,merge:!0},t)).parse&&(e=this.parse(e,t));var r,n,i,a,c,u,l,d=!o(e);e=d?e?[e]:[]:e.slice();var f=t.at,p=this.comparator&&null==f&&!1!==t.sort,h="string"==typeof this.comparator?this.comparator:null,v=[],m=[],g={},y=t.add,E=t.merge,S=t.remove,_=!(p||!y||!S)&&[],b=this.model&&this.model.prototype||Object.prototype;for(u=0,l=e.length;u<l;u++){if(i=e[u]||{},this.isModel(i)?r=n=i:b.generateId?r=b.generateId(i):void 0===(r=i[this.mainIndex])&&this._isDerivedIndex(b)&&(r=b._derived[this.mainIndex].fn.call(i)),a=this.get(r))S&&(g[a.cid||a[this.mainIndex]]=!0),E&&(i=i===n?n.attributes:i,t.parse&&(i=a.parse(i,t)),a.set?(a.set(i,t),p&&!c&&a.hasChanged(h)&&(c=!0)):s(a,i)),e[u]=a;else if(y){if(!(n=e[u]=this._prepareModel(i,t)))continue;v.push(n),this._addReference(n,t)}(n=a||n)&&(_&&(n.isNew&&n.isNew()||!n[this.mainIndex]||!g[n.cid||n[this.mainIndex]])&&_.push(n),g[n[this.mainIndex]]=!0)}if(S){for(u=0,l=this.length;u<l;u++)g[(n=this.models[u]).cid||n[this.mainIndex]]||m.push(n);for(m.length&&this.remove(m,t),u=0,l=v.length;u<l;u++)this._index(v[u])}if(v.length||_&&_.length)if(p&&(c=!0),null!=f)for(u=0,l=v.length;u<l;u++)this.models.splice(f+u,0,v[u]);else{var R=_||v;for(u=0,l=R.length;u<l;u++)this.models.push(R[u])}if(c&&this.sort({silent:!0}),!t.silent){for(u=0,l=v.length;u<l;u++)(n=v[u]).trigger?n.trigger("add",n,this,t):this.trigger("add",n,this,t);(c||_&&_.length)&&this.trigger("sort",this,t)}return d?e[0]:e},get:function(e,t){if(null!=e){var r=this.mainIndex,n=this._indexes[t||r];return n&&(n[e]||void 0!==e[r]&&n[e[r]])||this._indexes.cid[e]||this._indexes.cid[e.cid]}},at:function(e){return this.models[e]},remove:function(e,t){var r,n,i,a,s=!o(e);for(t||(t={}),r=0,n=(e=s?[e]:c.call(e)).length;r<n;r++)(i=e[r]=this.get(e[r]))&&(this._deIndex(i),a=this.models.indexOf(i),this.models.splice(a,1),t.silent||(t.index=a,i.trigger?i.trigger("remove",i,this,t):this.trigger("remove",i,this,t)),this._removeReference(i,t));return s?e[0]:e},reset:function(e,t){t||(t={});for(var r=0,n=this.models.length;r<n;r++)this._removeReference(this.models[r],t);return t.previousModels=this.models,this._reset(),e=this.add(e,s({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},sort:function(e){var t=this;if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return e||(e={}),"string"==typeof this.comparator?this.models.sort((function(e,r){return e.get?(e=e.get(t.comparator),r=r.get(t.comparator)):(e=e[t.comparator],r=r[t.comparator]),e>r||void 0===e?1:e<r||void 0===r?-1:0})):1===this.comparator.length?this.models.sort((function(e,r){return(e=t.comparator(e))>(r=t.comparator(r))||void 0===e?1:e<r||void 0===r?-1:0})):this.models.sort(a(this.comparator,this)),e.silent||this.trigger("sort",this,e),this},_reset:function(){var e=c.call(this.indexes||[]),t=0;e.push(this.mainIndex),e.push("cid");var r=e.length;for(this.models=[],this._indexes={};t<r;t++)this._indexes[e[t]]={}},_prepareModel:function(e,t){if(!this.model)return e;if(this.isModel(e))return e.collection||(e.collection=this),e;(t=t?s({},t):{}).collection=this;var r=new this.model(e,t);return r.validationError?(this.trigger("invalid",this,r.validationError,t),!1):r},_deIndex:function(e,t,r){var n;if(void 0===t)for(var i in this._indexes)n=e.hasOwnProperty(i)?e[i]:e.get&&e.get(i),delete this._indexes[i][n];else{if(void 0===this._indexes[t])throw new Error("Given attribute is not an index");delete this._indexes[t][r]}},_index:function(e,t){var r;if(void 0===t)for(var n in this._indexes)null!=(r=e.hasOwnProperty(n)?e[n]:e.get&&e.get(n))&&(this._indexes[n][r]=e);else{if(void 0===this._indexes[t])throw new Error("Given attribute is not an index");(r=e[t]||e.get&&e.get(t))&&(this._indexes[t][r]=e)}},_isDerivedIndex:function(e){return!(!e||"object"!=typeof e._derived)&&Object.keys(e._derived).indexOf(this.mainIndex)>=0},_addReference:function(e,t){this._index(e),e.collection||(e.collection=this),e.on&&e.on("all",this._onModelEvent,this)},_removeReference:function(e,t){this===e.collection&&delete e.collection,this._deIndex(e),e.off&&e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,r,n){var i=e.split(":")[0],o=e.split(":")[1];("add"!==i&&"remove"!==i||r===this)&&("destroy"===i&&this.remove(t,n),t&&"change"===i&&o&&this._indexes[o]&&(this._deIndex(t,o,t.previousAttributes()[o]),this._index(t,o)),this.trigger.apply(this,arguments))}}),Object.defineProperties(u.prototype,{length:{get:function(){return this.models.length}},isCollection:{get:function(){return!0}}});["indexOf","lastIndexOf","every","some","forEach","map","filter","reduce","reduceRight"].forEach((function(e){u.prototype[e]=function(){return this.models[e].apply(this.models,arguments)}})),u.prototype.each=u.prototype.forEach,u.extend=i,e.exports=u},49740:(e,t,r)=>{var n=r(51463),i=r(3674),o=r(41609),a=r(28583),s=r(84486),c=Array.prototype.slice,u=r(25668),l={on:function(e,t,r){return u.eventsApi(this,"on",e,[t,r])&&t?(this._events||(this._events={}),(this._events[e]||(this._events[e]=[])).push({callback:t,context:r,ctx:r||this}),this):this},once:function(e,t,r){if(!u.eventsApi(this,"once",e,[t,r])||!t)return this;var i=this,o=n((function(){i.off(e,o),t.apply(this,arguments)}));return o._callback=t,this.on(e,o,r)},off:function(e,t,r){var n,o,a,s,c,l,d,f;if(!this._events||!u.eventsApi(this,"off",e,[t,r]))return this;if(!e&&!t&&!r)return this._events=void 0,this;for(c=0,l=(s=e?[e]:i(this._events)).length;c<l;c++)if(e=s[c],a=this._events[e]){if(this._events[e]=n=[],t||r)for(d=0,f=a.length;d<f;d++)o=a[d],(t&&t!==o.callback&&t!==o.callback._callback||r&&r!==o.context)&&n.push(o);n.length||delete this._events[e]}return this},trigger:function(e){if(!this._events)return this;var t=c.call(arguments,1);if(!u.eventsApi(this,"trigger",e,t))return this;var r=this._events[e],n=this._events.all;return r&&u.triggerEvents(r,t),n&&u.triggerEvents(n,arguments),this},stopListening:function(e,t,r){var n=this._listeningTo;if(!n)return this;var i=!t&&!r;r||"object"!=typeof t||(r=this),e&&((n={})[e._listenId]=e);var a=this;return s(n,(function(e,n){e.off(t,r,a),(i||o(e._events))&&delete a._listeningTo[n]})),this},createEmitter:function(e){return a(e||{},l)},listenTo:u.createListenMethod("on"),listenToOnce:u.createListenMethod("once"),listenToAndRun:function(e,t,r){return this.listenTo.apply(this,arguments),r||"object"!=typeof t||(r=this),r.apply(this),this}};l.bind=l.on,l.unbind=l.off,l.removeListener=l.off,l.removeAllListeners=l.off,l.emit=l.trigger,e.exports=l},25668:(e,t,r)=>{var n=r(73955),i=/\s+/;t.triggerEvents=function(e,t){var r,n=-1,i=e.length,o=t[0],a=t[1],s=t[2];switch(t.length){case 0:for(;++n<i;)(r=e[n]).callback.call(r.ctx);return;case 1:for(;++n<i;)(r=e[n]).callback.call(r.ctx,o);return;case 2:for(;++n<i;)(r=e[n]).callback.call(r.ctx,o,a);return;case 3:for(;++n<i;)(r=e[n]).callback.call(r.ctx,o,a,s);return;default:for(;++n<i;)(r=e[n]).callback.apply(r.ctx,t);return}},t.eventsApi=function(e,t,r,n){if(!r)return!0;if("object"==typeof r){for(var o in r)e[t].apply(e,[o,r[o]].concat(n));return!1}if(i.test(r)){for(var a=r.split(i),s=0,c=a.length;s<c;s++)e[t].apply(e,[a[s]].concat(n));return!1}return!0},t.createListenMethod=function(e){return function(t,r,i){if(!t)throw new Error("Trying to listenTo event: '"+r+"' but the target object is undefined");if((this._listeningTo||(this._listeningTo={}))[t._listenId||(t._listenId=n("l"))]=t,i||"object"!=typeof r||(i=this),"function"!=typeof t[e])throw new Error("Trying to listenTo event: '"+r+"' on object: "+t.toString()+" but it does not have an 'on' method so is unbindable");return t[e](r,i,this),this}}},65109:(e,t,r)=>{"use strict";var n=r(73955),i=r(28583),o=function(e){return i({},e)},a=r(82723),s=r(7187),c=r(2525),u=r(64721),l=r(47037),d=r(13218),f=r(47960),p=r(23560),h=r(18446),v=r(18721),m=r(58613),g=r(93386),y=r(49740),E=r(78414),S=r(72185),_=/^change:/,b=function(){};function R(e,t){t||(t={}),this.cid||(this.cid=n("state")),this._events={},this._values={},this._eventBubblingHandlerCache={},this._definition=Object.create(this._definition),t.parse&&(e=this.parse(e,t)),this.parent=t.parent,this.collection=t.collection,this._keyTree=new E,this._initCollections(),this._initChildren(),this._cache={},this._previousAttributes={},e&&this.set(e,i({silent:!0,initial:!0},t)),this._changed={},this._derived&&this._initDerived(),!1!==t.init&&this.initialize.apply(this,arguments)}function T(e,t,r,n){var i,o,a=e._definition[t]={};if(l(r))(i=e._ensureValidType(r))&&(a.type=i);else{if(Array.isArray(r)&&(r={type:(o=r)[0],required:o[1],default:o[2]}),(i=e._ensureValidType(r.type))&&(a.type=i),r.required&&(a.required=!0),r.default&&"object"==typeof r.default)throw new TypeError("The default value for "+t+" cannot be an object/array, must be a value or a function which returns a value/object/array");a.default=r.default,a.allowNull=!!r.allowNull&&r.allowNull,r.setOnce&&(a.setOnce=!0),a.required&&void 0===a.default&&!a.setOnce&&(a.default=e._getDefaultForType(i)),a.test=r.test,a.values=r.values}return n&&(a.session=!0),i||(i=l(r)?r:r.type,console.warn("Invalid data type of `"+i+"` for `"+t+"` property. Use one of the default types or define your own")),Object.defineProperty(e,t,{set:function(e){this.set(t,e)},get:function(){if(!this._values)throw Error('You may be trying to `extend` a state object with "'+t+'" which has been defined in `props` on the object being extended');var e=this._values[t],r=this._dataTypes[a.type];if(void 0!==e)return r&&r.get&&(e=r.get(e)),e;var n=m(a,"default");(this._values[t]=n,void 0!==n)&&this._getOnChangeForType(a.type)(n,e,t);return n}}),a}function w(e,t,r){(e._derived[t]={fn:p(r)?r:r.fn,cache:!1!==r.cache,depList:r.deps||[]}).depList.forEach((function(r){e._deps[r]=g(e._deps[r]||[],[t])})),Object.defineProperty(e,t,{get:function(){return this._getDerivedProperty(t)},set:function(){throw new TypeError("`"+t+"` is a derived property, it can't be set directly.")}})}i(R.prototype,y,{extraProperties:"ignore",idAttribute:"id",namespaceAttribute:"namespace",typeAttribute:"modelType",initialize:function(){return this},getId:function(){return this[this.idAttribute]},getNamespace:function(){return this[this.namespaceAttribute]},getType:function(){return this[this.typeAttribute]},isNew:function(){return null==this.getId()},escape:function(e){return s(this.get(e))},isValid:function(e){return this._validate({},i(e||{},{validate:!0}))},parse:function(e,t){return e},serialize:function(e){var t=i({props:!0},e),r=this.getAttributes(t,!0),n=function(e,t){r[t]=this[t].serialize()}.bind(this);return c(this._children,n),c(this._collections,n),r},set:function(e,t,r){var n,i,o,a,s,c,l,f,p,h,v,g,y,E,S,_,b,R=this,T=this.extraProperties;if(d(e)||null===e?(p=e,r=t):(p={})[e]=t,r=r||{},!this._validate(p,r))return!1;g=r.unset,v=r.silent,E=r.initial,n=this._changing,this._changing=!0,i=[],E?this._previousAttributes={}:n||(this._previousAttributes=this.attributes,this._changed={});for(var w=0,I=Object.keys(p),x=I.length;w<x;w++){if(o=typeof(a=p[f=I[w]]),y=this._values[f],!(s=this._definition[f])){if(this._children[f]||this._collections[f]){d(a)||(a={}),this[f].set(a,r);continue}if("ignore"===T)continue;if("reject"===T)throw new TypeError('No "'+f+'" property defined on '+(this.type||"this")+' model and extraProperties not set to "ignore" or "allow"');if("allow"===T)s=this._createPropertyDefinition(f,"any");else if(T)throw new TypeError('Invalid value for extraProperties: "'+T+'"')}if(_=this._getCompareForType(s.type),b=this._getOnChangeForType(s.type),(h=this._dataTypes[s.type])&&h.set&&(a=(c=h.set(a)).val,o=c.type),s.test&&(l=s.test.call(this,a,o)))throw new TypeError("Property '"+f+"' failed validation with error: "+l);if(void 0===a&&s.required)throw new TypeError("Required property '"+f+"' must be of type "+s.type+". Tried to set "+a);if(null===a&&s.required&&!s.allowNull)throw new TypeError("Property '"+f+"' must be of type "+s.type+" (cannot be null). Tried to set "+a);if(s.type&&"any"!==s.type&&s.type!==o&&null!=a)throw new TypeError("Property '"+f+"' must be of type "+s.type+". Tried to set "+a);if(s.values&&!u(s.values,a)){var A=m(s,"default");if(g&&void 0!==A)a=A;else if(!g||g&&void 0!==a)throw new TypeError("Property '"+f+"' must be one of values: "+s.values.join(", ")+". Tried to set "+a)}if(S=E||!_(y,a,f),s.setOnce&&void 0!==y&&S)throw new TypeError("Property '"+f+"' can only be set once.");S?(b(a,y,f),E||(this._changed[f]=a,this._previousAttributes[f]=y,g&&delete this._values[f],v||i.push({prev:y,val:a,key:f})),g||(this._values[f]=a)):delete this._changed[f]}if(i.length&&(this._pending=!0),i.forEach((function(e){R.trigger("change:"+e.key,R,e.val,r)})),n)return this;for(;this._pending;)this._pending=!1,this.trigger("change",this,r);return this._pending=!1,this._changing=!1,this},get:function(e){return this[e]},toggle:function(e){var t=this._definition[e];if("boolean"===t.type)this[e]=!this[e];else{if(!t||!t.values)throw new TypeError("Can only toggle properties that are type `boolean` or have `values` array.");this[e]=S(t.values,this[e])}return this},previousAttributes:function(){return o(this._previousAttributes)},hasChanged:function(e){return null==e?!!Object.keys(this._changed).length:v(this._derived,e)?this._derived[e].depList.some((function(e){return this.hasChanged(e)}),this):v(this._changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&o(this._changed);var t,r,n=!1,i=this._changing?this._previousAttributes:this.attributes;for(var a in e)(r=this._definition[a])&&(this._getCompareForType(r.type)(i[a],t=e[a])||((n||(n={}))[a]=t));return n},toJSON:function(){return this.serialize()},unset:function(e,t){var r=this;(e=Array.isArray(e)?e:[e]).forEach((function(e){var n,o=r._definition[e];if(o)return o.required?(n=m(o,"default"),r.set(e,n,t)):r.set(e,n,i({},t,{unset:!0}))}))},clear:function(e){var t=this;return Object.keys(this.attributes).forEach((function(r){t.unset(r,e)})),this},previous:function(e){return null!=e&&Object.keys(this._previousAttributes).length?this._previousAttributes[e]:null},_getDefaultForType:function(e){var t=this._dataTypes[e];return t&&t.default},_getCompareForType:function(e){var t=this._dataTypes[e];return t&&t.compare?t.compare.bind(this):h},_getOnChangeForType:function(e){var t=this._dataTypes[e];return t&&t.onChange?t.onChange.bind(this):b},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=i({},this.attributes,e);var r=this.validationError=this.validate(e,t)||null;return!r||(this.trigger("invalid",this,r,i(t||{},{validationError:r})),!1)},_createPropertyDefinition:function(e,t,r){return T(this,e,t,r)},_ensureValidType:function(e){return u(["string","number","boolean","array","object","date","state","any"].concat(Object.keys(this._dataTypes)),e)?e:void 0},getAttributes:function(e,t){e=i({session:!1,props:!1,derived:!1},e||{});var r,n,o={};for(var a in this._definition)n=this._definition[a],(e.session&&n.session||e.props&&!n.session)&&(r=t?this._values[a]:this[a],t&&r&&p(r.serialize)&&(r=r.serialize()),void 0===r&&(r=m(n,"default")),void 0!==r&&(o[a]=r));if(e.derived)for(var s in this._derived)o[s]=this[s];return o},_initDerived:function(){var e=this;c(this._derived,(function(t,r){var n=e._derived[r];n.deps=n.depList;var i=function(){var t=n.fn.call(e);e._cache[r]===t&&n.cache||(n.cache&&(e._previousAttributes[r]=e._cache[r]),e._cache[r]=t,e.trigger("change:"+r,e,e._cache[r]))};n.deps.forEach((function(t){e._keyTree.add(t,i)}))})),this.on("all",(function(t){_.test(t)&&e._keyTree.get(t.split(":")[1]).forEach((function(e){e()}))}),this)},_getDerivedProperty:function(e,t){return this._derived[e].cache?(!t&&this._cache.hasOwnProperty(e)||(this._cache[e]=this._derived[e].fn.apply(this)),this._cache[e]):this._derived[e].fn.apply(this)},_initCollections:function(){var e;if(this._collections)for(e in this._collections)this._safeSet(e,new this._collections[e](null,{parent:this}))},_initChildren:function(){var e;if(this._children)for(e in this._children)this._safeSet(e,new this._children[e]({},{parent:this})),this.listenTo(this[e],"all",this._getCachedEventBubblingHandler(e))},_getCachedEventBubblingHandler:function(e){return this._eventBubblingHandlerCache[e]||(this._eventBubblingHandlerCache[e]=function(t,r,n){_.test(t)?this.trigger("change:"+e+"."+t.split(":")[1],r,n):"change"===t&&this.trigger("change",this)}.bind(this)),this._eventBubblingHandlerCache[e]},_verifyRequired:function(){var e=this.attributes;for(var t in this._definition)if(this._definition[t].required&&void 0===e[t])return!1;return!0},_safeSet:function(e,t){if(e in this)throw new Error("Encountered namespace collision while setting instance property `"+e+"`");return this[e]=t,this}}),Object.defineProperties(R.prototype,{attributes:{get:function(){return this.getAttributes({props:!0,session:!0})}},all:{get:function(){return this.getAttributes({session:!0,props:!0,derived:!0})}},isState:{get:function(){return!0},set:function(){}}});var I={string:{default:function(){return""}},date:{set:function(e){var t;if(null==e)t="object";else if(f(e))t="date",e=e.valueOf();else{var r=null,n=new Date(e).valueOf();isNaN(n)&&(n=new Date(parseInt(e,10)).valueOf(),isNaN(n)&&(r=!0)),e=n,t="date",r&&(t=typeof e)}return{val:e,type:t}},get:function(e){return null==e?e:new Date(e)},default:function(){return new Date}},array:{set:function(e){return{val:e,type:Array.isArray(e)?"array":typeof e}},default:function(){return[]}},object:{set:function(e){var t=typeof e;return"object"!==t&&void 0===e&&(e=null,t="object"),{val:e,type:t}},default:function(){return{}}},state:{set:function(e){return e instanceof R||e&&e.isState?{val:e,type:"state"}:{val:e,type:typeof e}},compare:function(e,t){return e===t},onChange:function(e,t,r){t&&this.stopListening(t,"all",this._getCachedEventBubblingHandler(r)),null!=e&&this.listenTo(e,"all",this._getCachedEventBubblingHandler(r))}}};R.extend=function(e){var t,r=this;t=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return r.apply(this,arguments)},i(t,r);var n=function(){this.constructor=t};if(n.prototype=r.prototype,t.prototype=new n,t.prototype._derived=i({},r.prototype._derived),t.prototype._deps=i({},r.prototype._deps),t.prototype._definition=i({},r.prototype._definition),t.prototype._collections=i({},r.prototype._collections),t.prototype._children=i({},r.prototype._children),t.prototype._dataTypes=i({},r.prototype._dataTypes||I),e)for(var o=["dataTypes","props","session","derived","collections","children"],s=0;s<arguments.length;s++){var u=arguments[s];u.dataTypes&&c(u.dataTypes,(function(e,r){t.prototype._dataTypes[r]=e})),u.props&&c(u.props,(function(e,r){T(t.prototype,r,e)})),u.session&&c(u.session,(function(e,r){T(t.prototype,r,e,!0)})),u.derived&&c(u.derived,(function(e,r){w(t.prototype,r,e)})),u.collections&&c(u.collections,(function(e,r){t.prototype._collections[r]=e})),u.children&&c(u.children,(function(e,r){t.prototype._children[r]=e})),i(t.prototype,a(u,o))}return t.__super__=r.prototype,t},e.exports=R},72185:e=>{e.exports=function(e,t){var r=e.length,n=e.indexOf(t)+1;return n>r-1&&(n=0),e[n]}},67431:(e,t,r)=>{"use strict";function n(){var e=setTimeout.apply(void 0,arguments);return e.unref&&e.unref(),e}r.d(t,{L:()=>n})},18408:(e,t,r)=>{"use strict";r.r(t),r.d(t,{BrowserDetection:()=>Be,Defer:()=>g,Exception:()=>Oe,INTERNAL_US_CLUSTER_NAME:()=>K,INTERNAL_US_INTEGRATION_CLUSTER_NAME:()=>Y,SDK_EVENT:()=>W,base64:()=>l,buildHydraMembershipId:()=>Ke,buildHydraMessageId:()=>He,buildHydraOrgId:()=>$e,buildHydraPersonId:()=>We,buildHydraRoomId:()=>ze,cappedDebounce:()=>p,checkRequired:()=>h,constructHydraId:()=>Ge,createEventEnvelope:()=>J,deconstructHydraId:()=>qe,deprecated:()=>ke,deviceType:()=>$,ensureMyIdIsAvailable:()=>Q,getHydraClusterString:()=>Ye,getHydraFiles:()=>Qe,getHydraRoomType:()=>Je,hydraTypes:()=>z,inBrowser:()=>Ne,isBuffer:()=>o,make:()=>I,makeStateDataType:()=>y,oneFlight:()=>D,patterns:()=>U,proxyEvents:()=>B,resolveWith:()=>ee,retry:()=>_e,tap:()=>be,transferEvents:()=>Z,whileInFlight:()=>Re});var n=r(55559),i=r(89509);const o=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)};function a(e){return n.decode(e).toString()}function s(e){var t=e;return o(t)||(t=i.Buffer.from(t)),n.encode(t)}function c(e){return s(e)}function u(e){return a(e)}const l={fromBase64url:a,toBase64Url:s,encode:c,decode:u,validate:function(e){return n.validate(e)}};var d=r(71544),f=r.n(d);function p(e,t,r){if(!e)throw new Error("`fn` must be a function");if(!t)throw new Error("`wait` is required");if(!(r=r||{}).maxWait)throw new Error("`options.maxWait` is required");if(!r.maxCalls)throw new Error("`options.maxCalls` is required");var n,i,o=r,a=o.maxCalls,s=o.maxWait,c=0;return function(){c+=1,clearTimeout(i),i=setTimeout((function(){return u()}),t),n||(n=setTimeout((function(){return u()}),s)),c>=a&&f()(u,this,[])};function u(){clearTimeout(i),i=null,clearTimeout(n),n=null,c=0,f()(e,this,[])}}function h(e,t){e.forEach((function(e){if(!t[e])throw new Error("missing required property ".concat(e," from ").concat(t))}))}var v=r(73473),m=r.n(v);function g(){var e=this;this.promise=new(m())((function(t,r){e.resolve=t,e.reject=r}))}function y(e,t){if(!e||!t)throw new Error("missing parameter for makeStateDataType");return{dataType:{set:function(r){return r instanceof e?(r.parent=this,{val:r,type:t}):{val:r?new e(r,{parent:this}):void 0,type:t}},compare:function(e,t){return e===t},onChange:function(e,t,r){t&&this.stopListening(t,"all",this._getCachedEventBubblingHandler(r)),e&&this.listenTo(e,"all",this._getCachedEventBubblingHandler(r))}},prop:{test:function(e){return!!e&&(e.parent=this,!1)},type:t}}}var E=r(956),S=r(8167),_=r(31314),b=r(83977),R=r.n(b),T=r(89539),w=r.n(T);function I(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.shift(),i=new(R()),o=new(R()),a=t.length>1?I.apply(void 0,t):t[0],s="(".concat([n.name].concat(t.map((function(e){return e.name}))).join(", "),")"),c=function(){function e(){(0,S.Z)(this,e);for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];i.set(this,(0,E.Z)(n,r)),o.set(this,0)}return(0,_.Z)(e,[{key:"size",get:function(){return o.get(this)}},{key:"add",value:function(){return this.set.apply(this,arguments)}},{key:"clear",value:function(){var e=i.get(this).clear();return o.set(this,0),e}},{key:"delete",value:function(e){for(var t=i.get(this),r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];if(!n.length)return t.delete(e);var s=t.get(e);if(!s)return!1;var c=s.delete.apply(s,n);return c&&o.set(this,o.get(this)-1),0===s.size&&t.delete(e),c}},{key:"get",value:function(e){var t=i.get(this);if(!t.get)return t;for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];if(!n.length)return t.get(e);var a=t.get(e);return a?a.get?a.get.apply(a,n):a:void 0}},{key:"has",value:function(){return void 0!==this.get.apply(this,arguments)}},{key:"set",value:function(){for(var e=!1,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this.has.apply(this,r)&&(e=!0);var s=i.get(this),c=r.shift();if(!s.get)return x.apply(void 0,[s,c].concat(r)),this;var u=s.get(c);if(!u){if(!a)return x.apply(void 0,[s,c].concat(r)),this;x(s,c,u=new a)}return x.apply(void 0,[u].concat(r)),e||o.set(this,o.get(this)+1),this}},{key:"inspect",value:function(){return"Container".concat(s," {\n ").concat(w().inspect(i.get(this),{depth:null}),"\n}")}}]),e}();return c}function x(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(e.add)e.add.apply(e,r);else if(e.set)e.set.apply(e,r);else{if(!e.push)throw new TypeError("Could not determine how to insert into the specified container");e.push.apply(e,r)}}var A=r(13682),C=r(90359),O=r.n(C),k=r(18281),N=r.n(k),L=R(),P=N(),M=new(I(L,P,P));function D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(3===t.length)return f()(s,null,t);var n=t[0]||{},i=n.cacheFailures,o=n.cacheSuccesses,a=n.keyFactory;return s;function s(e,t,r){var n=t;return r.value=O()(r.value,(function(t){for(var r=this,s=n,c=arguments.length,u=new Array(c>1?c-1:0),l=1;l<c;l++)u[l-1]=arguments[l];a&&(s="".concat(s,"_").concat(a.apply(void 0,u)));var d=M.get(this,e,s);return d||(d=f()(t,this,u),!i&&d&&d.catch&&(d=d.catch((function(t){return M.delete(r,e,s),m().reject(t)}))),!o&&d&&d.then&&(d=d.then((function(t){return M.delete(r,e,s),t}))),M.set(this,e,s,d),d)})),"object"!==(0,A.Z)(e)||e.prototype||(e[t]=r.value),r}}const U={email:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,containsEmails:/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/g,uuid:/^[a-f\d]{8}(?:-[a-f\d]{4}){3}-[a-f\d]{12}$/,execEmail:/[^\s]+?@[^\s]+?/,execUuid:/[a-f\d]{8}(?:-[a-f\d]{4}){3}-[a-f\d]{12}/};var j=r(1469),F=r.n(j);function B(e,t){return["on","once"].forEach((function(r){t[r]=function(){return e[r].apply(e,arguments),t}})),e}function Z(e,t,r){(e=F()(e)?e:[e]).forEach((function(e){t.on&&t.on(e,(function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return V.apply(void 0,[r,e].concat(n))}))}))}function V(e){var t=e.trigger||e.emit;if(!t)throw new Error("count not determine emit method");for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return f()(t,e,n)}var G=r(66250),q=r(33453),H=r.n(q),W={INTERNAL:{WEBEX_ACTIVITY:"event:conversation.activity",ACTIVITY_FIELD:{ACTOR:"actor",OBJECT:"object",TARGET:"target"},ACTIVITY_VERB:{ACKNOWLEDGE:"acknowledge",CARD_ACTION:"cardAction",CREATE:"create",POST:"post",SHARE:"share",DELETE:"delete",ADD:"add",LEAVE:"leave",ADD_MODERATOR:"assignModerator",REMOVE_MODERATOR:"unassignModerator",LOCK:"lock",UNLOCK:"unlock",HIDE:"hide",UPDATE:"update"},ACTIVITY_TAG:{HIDDEN:"HIDDEN",ONE_ON_ONE:"ONE_ON_ONE",LOCKED:"LOCKED"}},EXTERNAL:{EVENT_TYPE:{CREATED:"created",DELETED:"deleted",UPDATED:"updated",SEEN:"seen"},OWNER:{CREATOR:"creator",ORG:"org"},STATUS:{ACTIVE:"active",DISABLED:"disabled"},SPACE_TYPE:{DIRECT:"direct",GROUP:"group"},RESOURCE:{ATTACHMENT_ACTIONS:"attachmentActions",MEMBERSHIPS:"memberships",MESSAGES:"messages",ROOMS:"rooms"},ATTACHMENTS:{CARD_CONTENT_TYPE:"application/vnd.microsoft.card.adaptive"}}},z={ATTACHMENT_ACTION:"ATTACHMENT_ACTION",CONTENT:"CONTENT",MEMBERSHIP:"MEMBERSHIP",MESSAGE:"MESSAGE",ORGANIZATION:"ORGANIZATION",PEOPLE:"PEOPLE",ROOM:"ROOM",TEAM:"TEAM"},$={PROVISIONAL:"PROVISIONAL",WEB:"WEB"},K="urn:TEAM:us-east-2_a",Y="urn:TEAM:us-east-1_int13";function J(e,t){return Q(e).then((function(){return m().resolve({createdBy:e.internal.me.id,orgId:e.internal.me.orgId,resource:t,ownedBy:W.EXTERNAL.OWNER.CREATOR,status:W.EXTERNAL.STATUS.ACTIVE,created:(new Date).toISOString(),data:{}})})).catch((function(e){m().reject(new Error("Unable to get person info for ".concat(t," event envelope: ").concat(e.message)))}))}function Q(e){return X.apply(this,arguments)}function X(){return(X=(0,G.Z)(H().mark((function e(t){return H().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!("me"in t.internal)){e.next=2;break}return e.abrupt("return",m().resolve());case 2:return e.abrupt("return",t.people.get("me").then((function(e){return t.internal.me=e,m().resolve()})));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ee(e){return function(){return m().resolve(e)}}var te=r(26243),re=r.n(te),ne=r(62680),ie=r.n(ne),oe=r(95366),ae=r.n(oe),se=r(6919),ce=r.n(se),ue=r(93364),le=r.n(ue),de=r(26771),fe=r.n(de),pe=r(77193),he=r(23560),ve=r.n(he),me=r(91747),ge=r.n(me),ye=r(17187),Ee=r(25144);function Se(e,t){var r=re()(e);if(ie()){var n=ie()(e);t&&(n=n.filter((function(t){return ae()(e,t).enumerable}))),r.push.apply(r,n)}return r}function _e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=t[0]||{};return i=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(r),!0).forEach((function(t){(0,pe.Z)(e,t,r[t])})):ce()?le()(e,ce()(r)):Se(Object(r)).forEach((function(t){fe()(e,t,ae()(r,t))}))}return e}({},i),ge()(i,{backoff:!0,delay:1,maxAttempts:3}),n=i.backoff?{initialDelay:i.delay,maxDelay:i.maxDelay}:{initialDelay:1,maxDelay:1},3===t.length?f()(o,null,t):o;function o(e,t,r){return r.value=O()(r.value,(function(e){for(var t=this,r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];var s=new ye.EventEmitter,c=new(m())((function(r,a){var c=Ee.call((function(r){var n=f()(e,t,o);return ve()(n.on)&&(n.on("progress",s.emit.bind(s,"progress")),n.on("upload-progress",s.emit.bind(s,"upload-progress")),n.on("download-progress",s.emit.bind(s,"download-progress"))),n.then((function(e){r(null,e)})).catch((function(e){e||(e=new Error("retryable method failed without providing an error object")),r(e)}))}),(function(e,t){return e?a(e):r(t)}));c.setStrategy(new Ee.ExponentialStrategy(n)),i.maxAttempts&&c.failAfter(i.maxAttempts-1),c.start()}));return c.on=function(e,t){return s.on(e,t),c},c})),"object"!==(0,A.Z)(e)||e.prototype||(e[t]=r.value),r}}function be(e){return function(t){return new(m())((function(r){r(e(t))})).then((function(){return t})).catch((function(){return t}))}}function Re(e){return function(t,r,n){n.value=O()(n.value,(function(t){for(var r=this,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return new(m())((function(n){r[e]=!0,n(f()(t,r,i).then(be((function(){r[e]=!1}))).catch((function(t){return r[e]=!1,m().reject(t)})))}))}))}}var Te=r(63755),we=r.n(Te),Ie=r(69678),xe=r(26305),Ae=r(35002);function Ce(e){var t=function(){if("undefined"==typeof Reflect||!we())return!1;if(we().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(we()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,Ae.Z)(e);if(t){var i=(0,Ae.Z)(this).constructor;r=we()(n,arguments,i)}else r=n.apply(this,arguments);return(0,xe.Z)(this,r)}}var Oe=function(e){(0,Ie.Z)(r,e);var t=Ce(r);function r(){var e,n,i;(0,S.Z)(this,r);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];if((e=t.call.apply(t,[this].concat(a))).parse)n=(i=e).parse.apply(i,a);else if(e.constructor.parse){var c;n=(c=e.constructor).parse.apply(c,a)}return n||(n=e.constructor.defaultMessage),e.name=e.constructor.name,e.message=n,e}return(0,_.Z)(r,null,[{key:"parse",value:function(){return arguments.length<=0?void 0:arguments[0]}}]),r}((0,r(67097).Z)(Error));(0,pe.Z)(Oe,"defaultMessage","An error occurred");r(44894);const ke=function(){return function(){}},Ne=!0;var Le=r(88306),Pe=r.n(Le),Me=r(51206),De=r.n(Me),Ue=r(58908),je=r.n(Ue),Fe={getOSName:function(){return r(24753).platform()},getOSVersion:function(){return r(24753).release()},getBrowserName:function(){return""},getBrowserVersion:function(){return""},isBrowser:function(){return!1}};const Be=Pe()((function(e){var t,r;return e||null!==(t=je().navigator)&&void 0!==t&&t.userAgent?(r=De().getParser(e||je().navigator.userAgent),{getOSName:function(){var e;return null!==(e=null==r?void 0:r.getOSName())&&void 0!==e?e:""},getOSVersion:function(){var e;return null!==(e=null==r?void 0:r.getOSVersion())&&void 0!==e?e:""},getBrowserName:function(){var e;return null!==(e=null==r?void 0:r.getBrowserName())&&void 0!==e?e:""},getBrowserVersion:function(){var e;return null!==(e=null==r?void 0:r.getBrowserVersion())&&void 0!==e?e:""},isBrowser:function(e){return!(null==r||!r.isBrowser(e,!0))}}):Fe}));var Ze="https://api.ciscospark.com/v1",Ve=function(){throw Error("parameter is required")};function Ge(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ve(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ve(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"us";if(!e.toUpperCase)throw Error('"type" must be a string');return e===z.PEOPLE||e===z.ORGANIZATION?c("ciscospark://us/".concat(e.toUpperCase(),"/").concat(t)):c("ciscospark://".concat(r,"/").concat(e.toUpperCase(),"/").concat(t))}function qe(e){var t=u(e).split("/");return{id:t.pop(),type:t.pop(),cluster:t.pop()}}function He(e,t){return Ge(z.MESSAGE,e,t)}function We(e,t){return Ge(z.PEOPLE,e,t)}function ze(e,t){return Ge(z.ROOM,e,t)}function $e(e,t){return Ge(z.ORGANIZATION,e,t)}function Ke(e,t,r){return Ge(z.MEMBERSHIP,"".concat(e,":").concat(t),r)}function Ye(e,t){var r=e.internal.services.getClusterId(t);if(r.startsWith(K)||r.startsWith(Y))return"us";var n=r.split(":");if(n.length<3)throw Error("Unable to determine cluster for convo: ".concat(t));return"".concat(n[0],":").concat(n[1],":").concat(n[2])}function Je(e){return e.includes(W.INTERNAL.ACTIVITY_TAG.ONE_ON_ONE)?W.EXTERNAL.SPACE_TYPE.DIRECT:W.EXTERNAL.SPACE_TYPE.GROUP}function Qe(e,t){var r=[],n=e.object.files;if(n)for(var i=n.items,o=0;o<i.length;o+=1){var a=Ge(z.CONTENT,"".concat(e.id,"/").concat(o),t);r.push("".concat(Ze,"/contents/").concat(a))}return r}},98380:(e,t,r)=>{"use strict";r.d(t,{oo:()=>H,ve:()=>Q,nK:()=>Y,ce:()=>ke});var n=r(47037),i=r.n(n),o=r(91747),a=r.n(o),s=r(40087),c=r.n(s),u=r(28583),l=r.n(u),d=r(39907),f=r.n(d),p=r(79873),h=r.n(p),v=r(67857),m=r.n(v),g=r(63755),y=r.n(g),E=r(8167),S=r(31314),_=r(23710),b=r(69678),R=r(26305),T=r(35002),w=r(93364),I=r.n(w),x=r(73473),A=r.n(x),C=r(13682),O=r(77193),k=r(78718),N=r.n(k),L=r(18433),P=r.n(L),M=r(8450),D=r.n(M),U=r(18408),j=r(18428),F=r.n(j),B=r(79529),Z=r.n(B);function V(e){var t=function(){if("undefined"==typeof Reflect||!y())return!1;if(y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(y()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,T.Z)(e);if(t){var i=(0,T.Z)(this).constructor;r=y()(n,arguments,i)}else r=n.apply(this,arguments);return(0,R.Z)(this,r)}}function G(e){var t=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(e),r=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(e),n=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(r),i=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(r),o=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(r),a=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(r),s=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(r),c=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(r),u=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(r),l=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(r),d=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(r),f=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(r),p=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(r),h=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(r),v=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(r),m=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(r),g=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(r),y=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(r),_=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(r),R=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(r),T=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(e),w=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(T),I=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(T),x=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(T),A=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(T),C=function(e){(0,b.Z)(r,e);var t=V(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r)}(T);F()(e,{0:t,NetworkOrCORSError:t,400:r,BadRequest:r,401:n,Unauthorized:n,402:i,PaymentRequired:i,403:o,Forbidden:o,404:a,NotFound:a,405:s,MethodNotAllowed:s,406:c,NotAcceptable:c,407:u,ProxyAuthenticationRequired:u,408:l,RequestTimeout:l,409:d,Conflict:d,410:f,Gone:f,411:p,LengthRequired:p,412:h,PreconditionFailed:h,413:v,RequestEntityTooLarge:v,414:m,RequestUriTooLong:m,415:g,UnsupportedMediaType:g,416:y,RequestRangeNotSatisfiable:y,417:_,ExpectationFailed:_,429:R,TooManyRequests:R,500:T,InternalServerError:T,501:w,NotImplemented:w,502:I,BadGateway:I,503:x,ServiceUnavailable:x,504:A,GatewayTimeout:A,505:C,HttpVersionNotSupported:C,select:function(t){if(null==t)return e;t=t.statusCode||t;var r=e[t];return r||(t="".concat(t.toString().split("").shift(),"00"),t=Z()(t,10),e[t]||e)}})}function q(e){var t=function(){if("undefined"==typeof Reflect||!y())return!1;if(y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(y()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,T.Z)(e);if(t){var i=(0,T.Z)(this).constructor;r=y()(n,arguments,i)}else r=n.apply(this,arguments);return(0,R.Z)(this,r)}}var H=function(e){(0,b.Z)(r,e);var t=q(r);function r(){return(0,E.Z)(this,r),t.apply(this,arguments)}return(0,S.Z)(r,[{key:"parse",value:function(e){var t,r=e.body;switch((0,C.Z)(r)){case"string":try{r=JSON.parse(r),t=this.parseObject(r)}catch(e){t=r}break;case"object":t=this.parseObject(r)}return t||(t=this.defaultMessage),I()(this,{body:{enumerable:!1,value:r},httpVersion:{enumerable:!1,value:e.httpVersion},headers:{enumerable:!1,value:e.headers||{}},rawHeaders:{enumerable:!1,value:e.rawHeaders||[]},trailers:{enumerable:!1,value:e.trailers||{}},rawTrailers:{enumerable:!1,value:e.rawTrailers||[]},method:{enumerable:!1,value:e.method},url:{enumerable:!1,value:e.url},statusCode:{enumerable:!1,value:e.statusCode},statusMessage:{enumerable:!1,value:e.statusMessage},socket:{enumerable:!1,value:e.socket},_res:{enumerable:!1,value:e}}),t}},{key:"parseObject",value:function(e){var t=P()(N()(e,r.errorKeys));if(0===t.length)return D()(e,null,2);var n=t[0];return"object"===(0,C.Z)(n)?this.parseObject(n):n}}]),r}(U.Exception);(0,O.Z)(H,"errorKeys",["error","errorString","response","errorResponse","message","msg"]),(0,O.Z)(H,"defaultMessage","An error was received while trying to fulfill the request"),G(H),H.makeSubTypes=G;var W=r(27361),z=r.n(W),$=r(26243),K=r.n($),Y=function(){function e(t){var r=this;(0,E.Z)(this,e),t&&K()(t).forEach((function(e){var n=t[e];h()(r,e,{enumerable:!0,value:n})}))}return(0,S.Z)(e,[{key:"logOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=z()(this,"webex.logger",console);({ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}).ENABLE_VERBOSE_NETWORK_LOGGING&&t&&(t.info("/***** Interceptor ****************************************************\\"),t.info("".concat(this.constructor.name," - ").concat(D()(e,null,2))))}},{key:"onRequest",value:function(e){return A().resolve(e)}},{key:"onRequestError",value:function(e,t){return A().reject(t)}},{key:"onResponse",value:function(e,t){return A().resolve(t)}},{key:"onResponseError",value:function(e,t){return A().reject(t)}}],[{key:"create",value:function(){throw new Error("`Interceptor.create()` must be defined")}}]),e}();function J(e){var t=function(){if("undefined"==typeof Reflect||!y())return!1;if(y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(y()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,T.Z)(e);if(t){var i=(0,T.Z)(this).constructor;r=y()(n,arguments,i)}else r=n.apply(this,arguments);return(0,R.Z)(this,r)}}var Q=function(e){(0,b.Z)(r,e);var t=J(r);function r(e,n){var i;(0,E.Z)(this,r),i=t.call(this,e);var o=n&&(n.error||n.ErrorConstructor)||H;return I()((0,_.Z)(i),{ErrorConstructor:{value:o}}),i}return(0,S.Z)(r,[{key:"onResponse",value:function(e,t){if(t.statusCode){if(t.statusCode<400)return A().resolve(t);if(404===t.statusCode&&t.body&&2000002===t.body.errorCode)return A().resolve(t)}return A().reject(new(this.ErrorConstructor.select(t.statusCode))(t))}}],[{key:"create",value:function(e){return new r(this,e)}}]),r}(Y),X=r(17187),ee=r(27921),te=r.n(ee),re=r(85579),ne=r.n(re),ie=r(22013),oe=r.n(ie),ae=r(78149),se=r.n(ae),ce=r(66250),ue=r(1469),le=r.n(ue),de=r(33453),fe=r.n(de),pe=r(80129),he=r.n(pe),ve=r(58908),me=r(27376),ge=r(4947),ye=r(47529);function Ee(e,t,r){var n=e;return me(t)?(r=t,"string"==typeof e&&(n={uri:e})):n=ye(t,{uri:e}),n.callback=r,n}function Se(e,t,r){return _e(t=Ee(e,t,r))}function _e(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,r=function(r,n,i){t||(t=!0,e.callback(r,n,i))};function n(){var e=void 0;if(e=c.response?c.response:c.responseText||function(e){if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML;return null}(c),v)try{e=JSON.parse(e)}catch(e){}return e}function i(e){return clearTimeout(u),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,r(e,m)}function o(){if(!s){var t;clearTimeout(u),t=e.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var i=m,o=null;return 0!==t?(i={body:n(),statusCode:t,method:d,headers:{},url:l,rawRequest:c},c.getAllResponseHeaders&&(i.headers=ge(c.getAllResponseHeaders()))):o=new Error("Internal XMLHttpRequest Error"),r(o,i,i.body)}}var a,s,c=e.xhr||null;c||(c=e.cors||e.useXDR?new Se.XDomainRequest:new Se.XMLHttpRequest);var u,l=e.uri||e.url,d=e.method||"GET",f=e.body||e.data,p=e.headers||{},h=!!e.sync,v=!1,m={body:void 0,headers:{},statusCode:0,method:d,url:l,rawRequest:c};if("json"in e&&!1!==e.json&&(v=!0,p.accept||p.Accept||(p.Accept="application/json"),"GET"!==d&&"HEAD"!==d&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),f=D()(!0===e.json?f:e.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(o,0)},c.onload=o,c.onerror=i,c.onprogress=function(){},c.onabort=function(){s=!0},c.ontimeout=i,c.open(d,l,!h,e.username,e.password),h||(c.withCredentials=!!e.withCredentials),!h&&e.timeout>0&&(u=setTimeout((function(){if(!s){s=!0,c.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",i(e)}}),e.timeout)),c.setRequestHeader)for(a in p)p.hasOwnProperty(a)&&c.setRequestHeader(a,p[a]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(c.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(c),c.send(f||null),c}Se.XMLHttpRequest=ve.XMLHttpRequest||function(){},Se.XDomainRequest="withCredentials"in new Se.XMLHttpRequest?Se.XMLHttpRequest:ve.XDomainRequest,function(e,t){for(var r=0;r<e.length;r+=1)t(e[r])}(["get","put","post","patch","head","delete"],(function(e){Se["delete"===e?"del":e]=function(t,r,n){return(r=Ee(t,r,n)).method=e.toUpperCase(),_e(r)}}));const be=Se;var Re=r(97769);function Te(e){return we.apply(this,arguments)}function we(){return(we=(0,ce.Z)(fe().mark((function e(t){var r;return fe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t instanceof Blob||t instanceof ArrayBuffer||t instanceof Uint8Array){e.next=2;break}throw new Error("`detect` requires a buffer of type Blob, ArrayBuffer, or Uint8Array");case 2:if(!(t instanceof Blob)){e.next=4;break}return e.abrupt("return",t.type);case 4:return e.next=6,(0,Re.fromBuffer)(t);case 6:if(r=e.sent){e.next=9;break}return e.abrupt("return","application/octet-stream");case 9:return e.abrupt("return",r.mime);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ie(e,t){var r=void 0!==ne()&&e[oe()]||e["@@iterator"];if(!r){if(se()(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return xe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return te()(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xe(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ae(e){return new(A())((function(n){var i=N()(e,"method","uri","withCredentials","headers","timeout","responseType");i.response=!0,function(e){e.xhr=new XMLHttpRequest}(i),function(e,t){e.method&&["PATCH","POST","PUT"].includes(e.method.toUpperCase())&&(e.xhr||(e.xhr=new XMLHttpRequest),e.xhr.upload.onprogress=t.upload.emit.bind(t.upload,"progress"))}(i,e),function(e,t){if(t.auth)if(t.auth.bearer)e.headers.authorization="Bearer ".concat(t.auth.bearer);else{var r=t.auth.user||t.auth.username,n=t.auth.pass||t.auth.password,i=btoa("".concat(r,":").concat(n));e.headers.authorization="Basic ".concat(i)}}(i,e),function(e,t){t.jar&&(e.withCredentials=!0)}(i,e),function(e,t){var r={cors:!0,withCredentials:!1,timeout:0};a()(e,N()(t,K()(r)),r)}(i,e),function(e,t){"buffer"===t.responseType&&(e.responseType="arraybuffer")}(i,e),function(e,r){t.apply(this,arguments)}(i,e),function(e,t){"json"in t&&!0!==t.json||!t.body?t.form?(e.headers["Content-Type"]="application/x-www-form-urlencoded",e.body=he().stringify(t.form),m()(e,"json")):t.formData?e.body=K()(t.formData).reduce((function(e,n){return r(e,n,t.formData[n]),e}),new FormData):(e.body=t.body,m()(e,"json")):e.json=t.body}(i,e),function(e,t){t.qs&&(e.uri+="?".concat(he().stringify(t.qs)))}(i,e),e.logger.debug("start http ".concat(e.method?e.method:"request"," to ").concat(e.uri));var o=be(i,(function(t,r){t&&e.logger.warn(t),r?(r.statusCode>=400?e.logger.warn("http ".concat(e.method?e.method:"request"," to ").concat(e.uri," result: ").concat(r.statusCode)):e.logger.debug("http ".concat(e.method?e.method:"request"," to ").concat(e.uri," result: ").concat(r.statusCode)),r.options=e,function(e,t){if(!t.json&&"object"!==(0,C.Z)(e.body))try{e.body=JSON.parse(e.body)}catch(e){}}(r,i),n(r)):n({statusCode:0,options:e,headers:e.headers,method:e.method,url:e.uri,body:t})}));o.onprogress=e.download.emit.bind(e.download,"progress")})).catch((function(t){return e.logger.warn(t),{statusCode:0,options:e,headers:e.headers,method:e.method,url:e.uri,body:t}}));function t(){return(t=(0,ce.Z)(fe().mark((function e(t,r){return fe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r.body instanceof Blob||r.body instanceof ArrayBuffer)){e.next=8;break}if(r.json=t.json=!1,e.t0=t.headers["content-type"],e.t0){e.next=7;break}return e.next=6,Te(r.body);case 6:e.t0=e.sent;case 7:t.headers["content-type"]=e.t0;case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function r(e,t,n){if(le()(n)){var i,o=Ie(n);try{for(o.s();!(i=o.n()).done;){r(e,t,i.value)}}catch(e){o.e(e)}finally{o.f()}}else(n=function(e){if(e instanceof ArrayBuffer){var t=e.type?new Blob([e],{type:e.type}):new Blob([e]);return t.filename=e.filename||e.name||"untitled",t}return e}(n)).name?(n.filename=n.name,e.append(t,n,n.name)):e.append(t,n)}}r(81763),r(7520);var Ce=c()((function(e,t){if(i()(t)){var r=t;(t=arguments[2]||{}).uri=r}return["download","interceptors","logger","upload"].forEach((function(e){var r=f()(t,e);r=l()({},r,{enumerable:!1,writable:!0}),h()(t,e,r)})),a()(t,e),t.json||!1===t.json||m()(t,"json"),t.logger=t.logger||this.logger||console,function(e){return e.url&&(e.uri=e.url,e.url=null),e.headers=e.headers||{},e.download=new X.EventEmitter,e.upload=new X.EventEmitter,t(e.interceptors,"Request").then((function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ae.apply(void 0,[e].concat(r))})).then((function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t.apply(void 0,[e.interceptors.slice().reverse(),"Response"].concat(n))}));function t(t,r,n){var i="on".concat(r),o="on".concat(r,"Error");return t.reduce((function(t,r){return t.then((function(t){return r.logOptions(e),r[i]?r[i](e,t):A().resolve(t)}),(function(t){return r.logOptions(e),r[o]?r[o](e,t):A().reject(t)}))}),A().resolve(n))}}(t)})),Oe={json:!0,interceptors:[Q.create()]},ke=Ce;Ce(Oe)},25026:(e,t,r)=>{"use strict";r.r(t),r.d(t,{DeviceUrlInterceptor:()=>ge,FeatureCollection:()=>Y,FeatureModel:()=>K,FeaturesModel:()=>J,config:()=>Ee,constants:()=>n,default:()=>ae});var n={};r.r(n),r.d(n,{CISCO_DEVICE_URL:()=>N,DEVICE_EVENTS:()=>D,DEVICE_EVENT_REGISTRATION_SUCCESS:()=>M,FEATURE_COLLECTION_DEVELOPER:()=>C,FEATURE_COLLECTION_ENTITLEMENT:()=>O,FEATURE_COLLECTION_NAMES:()=>L,FEATURE_COLLECTION_USER:()=>k,FEATURE_TYPES:()=>P});r(3374);var i=r(21105),o=r(26243),a=r.n(o),s=r(62680),c=r.n(s),u=r(6919),l=r.n(u),d=r(93364),f=r.n(d),p=r(26771),h=r.n(p),v=r(77193),m=r(2313),g=r(73473),y=r.n(g),E=r(71544),S=r.n(E),_=r(66130),b=r.n(_),R=r(95366),T=r.n(R),w=r(18408),I=r(67431);const x="JS_SDK_WDM_REGISTRATION_SUCCESSFUL",A="JS_SDK_WDM_REGISTRATION_FAILED";var C="developer",O="entitlement",k="user",N="cisco-device-url",L=[C,O,k],P={BOOLEAN:"boolean",NUMBER:"number",STRING:"string"},M="registration:success",D=[M],U=r(65109),j=r.n(U),F=r(90765),B=r.n(F),Z=r(13682),V=r(13218),G=r.n(V),q=r(91747),H=r.n(q),W=r(7520),z=r.n(W);function $(e,t){var r=a()(e);if(c()){var n=c()(e);t&&(n=n.filter((function(t){return T()(e,t).enumerable}))),r.push.apply(r,n)}return r}const K=j().extend({idAttribute:"key",props:{key:"string",lastModified:"date",mutable:"boolean",type:"string",val:"string",value:"any"},constructor:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return H()(t,{parse:!0}),S()(j().prototype.constructor,this,[e,t])},parse:function(e){if(!e||"object"!==(0,Z.Z)(e))return{};var t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$(Object(r),!0).forEach((function(t){(0,v.Z)(e,t,r[t])})):l()?f()(e,l()(r)):$(Object(r)).forEach((function(t){h()(e,t,T()(r,t))}))}return e}({},e),r=t.val;return z()(Number(r))?"string"==typeof r&&"true"===r.toLowerCase()?(t.type=P.BOOLEAN,t.value=!0):"string"==typeof r&&"false"===r.toLowerCase()?(t.type=P.BOOLEAN,t.value=!1):(t.type=P.STRING,t.value=r):(t.type=P.NUMBER,t.value=Number(r)),t},serialize:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=S()(j().prototype.serialize,this,t);return n.lastModified&&(n.lastModified=new Date(n.lastModified).toISOString()),n},set:function(e,t,r){var n,i;return G()(e)||null===e?(n=e,i=t):((n={})[e]=t,i=r),n=this.parse(n,i),S()(j().prototype.set,this,[n,i])}});const Y=B().extend({mainIndex:"key",model:K});const J=j().extend({collections:{developer:Y,entitlement:Y,user:Y},clear:function(e){var t=this;return a()(this.attributes).forEach((function(r){t.unset(r,e)})),a()(this._children).forEach((function(e){t[e].clear()})),a()(this._collections).forEach((function(e){t[e].reset()})),this},initialize:function(){var e=this;["change:value","add","remove"].forEach((function(t){L.forEach((function(r){e[r].on(t,(function(t,n){e.trigger("change:".concat(r),e,e[r],n)}))}))}))}});var Q,X,ee,te,re,ne;function ie(e,t){var r=a()(e);if(c()){var n=c()(e);t&&(n=n.filter((function(t){return T()(e,t).enumerable}))),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(r),!0).forEach((function(t){(0,v.Z)(e,t,r[t])})):l()?f()(e,l()(r)):ie(Object(r)).forEach((function(t){h()(e,t,T()(r,t))}))}return e}const ae=i._y.extend((Q=(0,i.A4)("@"),X=(0,i.A4)("@"),ee=(0,i.A4)("@"),te=(0,w.deprecated)("device#markUrlFailedAndGetNew(): Use services#markFailedUrl()"),re=(0,i.tJ)("@",(function(){return!this.config.ephemeral})),ne={namespace:"Device",extraProperties:"allow",idAttribute:"url",children:{features:J},props:{clientMessagingGiphy:"string",customerCompanyName:"string",customerLogoUrl:"string",deviceType:"string",helpUrl:"string",intranetInactivityDuration:"number",intranetInactivityCheckUrl:"string",inNetworkInactivityDuration:"number",ecmEnabledForAllUsers:["boolean",!1,!1],ecmSupportedStorageProviders:["array",!1,function(){return[]}],modificationTime:"string",navigationBarColor:"string",partnerCompanyName:"string",partnerLogoUrl:"string",peopleInsightsEnabled:"boolean",reportingSiteDesc:"string",reportingSiteUrl:"string",searchEncryptionKeyUrl:"string",showSupportText:"boolean",supportProviderCompanyName:"string",supportProviderLogoUrl:"string",url:"string",userId:"string",webFileShareControl:"string",webSocketUrl:"string",whiteboardFileShareControl:"string"},derived:{registered:{deps:["url"],fn:function(){return!!this.url}}},session:{logoutTimer:"any",lastUserActivityDate:"number",isReachabilityChecked:["boolean",!1,!1],isInMeeting:"boolean",isInNetwork:"boolean"},meetingStarted:function(){this.webex.trigger("meeting started")},meetingEnded:function(){this.webex.trigger("meeting ended")},refresh:function(){var e=this;return this.logger.info("device: refreshing"),this.canRegister().then((function(){if(!e.registered)return e.logger.info("device: device not registered, registering"),e.register();var t=oe(oe({},e.serialize()),e.config.body?e.config.body:{});delete t.features,delete t.mediaCluster,delete t.etag,e.config.ephemeral&&(t.ttl=e.config.ephemeralDeviceTTL);var r=oe(oe(oe({},e.config.defaults.headers?e.config.defaults.headers:{}),e.config.headers?e.config.headers:{}),e.etag?{"If-None-Match":e.etag}:{});return e.request({method:"PUT",uri:e.url,body:t,headers:r}).then((function(t){return e.processRegistrationSuccess(t)})).catch((function(t){return 404===t.statusCode?(e.logger.info("device: refresh failed, device is not valid"),e.logger.info("device: attempting to register a new device"),e.clear(),e.register()):y().reject(t)}))}))},register:function(){var e=this;return this.logger.info("device: registering"),this.canRegister().then((function(){if(e.registered)return e.logger.info("device: device already registered, refreshing"),e.refresh();var t=oe(oe({},e.config.defaults.body?e.config.defaults.body:{}),e.config.body?e.config.body:{}),r=oe(oe({},e.config.defaults.headers?e.config.defaults.headers:{}),e.config.headers?e.config.headers:{});return e.config.ephemeral&&(t.ttl=e.config.ephemeralDeviceTTL),e.request({method:"POST",service:"wdm",resource:"devices",body:t,headers:r}).then((function(t){return e.webex.internal.metrics.submitClientMetrics(x),e.processRegistrationSuccess(t)})).catch((function(t){throw e.webex.internal.metrics.submitClientMetrics(A,{fields:{error:t}}),t}))}))},unregister:function(){var e=this;return this.logger.info("device: unregistering"),this.registered?this.request({uri:this.url,method:"DELETE"}).then((function(){return e.clear()})):(this.logger.warn("device: not registered"),y().resolve())},canRegister:function(){this.logger.info("device: validating if registration can occur");var e=this.webex.internal.services;return e.waitForCatalog("postauth",this.config.canRegisterWaitDuration).then((function(){return e.get("wdm")?y().resolve():y().reject(new Error(["device: cannot register,","'wdm' service is not available from the postauth catalog"].join(" ")))}))},checkNetworkReachability:function(){var e=this;if(this.logger.info("device: checking network reachability"),this.isReachabilityChecked)return y().resolve(this.resetLogoutTimer());if(this.isReachabilityChecked=!0,!this.intranetInactivityCheckUrl)return this.isInNetwork=!1,y().resolve(this.resetLogoutTimer());return this.request({headers:{"cisco-no-http-redirect":null,"spark-user-agent":null,trackingid:null},method:"GET",uri:this.intranetInactivityCheckUrl}).then((function(){return e.isInNetwork=!0,y().resolve(e.resetLogoutTimer())})).catch((function(){return e.logger.info("device: did not reach ping endpoint"),e.logger.info("device: triggering off-network timer"),e.isInNetwork=!1,y().resolve(e.resetLogoutTimer())}))},clear:function(){this.logger.info("device: clearing registered device");for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];S()(i._y.prototype.clear,this,t)},getWebSocketUrl:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.logger.info("device: getting the current websocket url");var r=this.webex.internal.services;if(t)return this.waitForRegistration().then((function(){return r.convertUrlToPriorityHostUrl(e.webSocketUrl)})).catch((function(t){return e.logger.warn(t.message),y().reject(new Error("device: failed to get the current websocket url"))}));if(!this.registered)return y().reject(new Error("device: cannot get websocket url, device is not registered"));var n=r.convertUrlToPriorityHostUrl(this.webSocketUrl);return n?y().resolve(n):y().reject(new Error("device: failed to get the current websocket url"))},processRegistrationSuccess:function(e){var t=this;this.logger.info("device: received registration payload");var r=oe({},e.body);delete r.services,delete r.serviceHostMap;var n=(e.headers||{}).etag;if(this.etag&&n&&this.etag===n){var i=r.features;delete r.features,this.features.user.reset(i.user),this.features.entitlement.reset(i.entitlement)}if(this.set(r),this.set({etag:n}),this.config.ephemeral){this.logger.info("device: enqueuing device refresh");var o=1e3*(this.config.ephemeralDeviceTTL/2+60);this.refreshTimer=(0,I.L)((function(){return t.refresh()}),o)}this.trigger(M,this)},resetLogoutTimer:function(){this.logger.info("device: resetting logout timer"),clearTimeout(this.logoutTimer),this.off("change:lastUserActivityDate"),this.unset("logoutTimer"),!this.isInMeeting&&this.config.enableInactivityEnforcement&&this.isReachabilityChecked&&(this.isInNetwork?this.setLogoutTimer(this.inNetworkInactivityDuration):this.setLogoutTimer(this.intranetInactivityDuration))},setLogoutTimer:function(e){var t=this;this.logger.info("device: setting logout timer"),!e||e<=0||(this.on("change:lastUserActivityDate",(function(){t.resetLogoutTimer()})),this.logoutTimer=(0,I.L)((function(){t.webex.logout()}),1e3*e))},waitForRegistration:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.logger.info("device: waiting for registration"),new(y())((function(r,n){e.registered&&r();var i=(0,I.L)((function(){return n(new Error("device: timeout occured while waiting for registration"))}),1e3*t);e.once(M,(function(){clearTimeout(i),r()}))}))},markUrlFailedAndGetNew:function(e){return y().resolve(this.webex.internal.services.markFailedUrl(e))},initialize:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];S()(i._y.prototype.initialize,this,r),L.forEach((function(t){e.features.on("change:".concat(t),(function(t,r,n){e.trigger("change",e,n),e.trigger("change:features",e,e.features,n)}))})),this.on("change:intranetInactivityCheckUrl",(function(){e.checkNetworkReachability()})),this.on("change:intranetInactivityDuration",(function(){e.checkNetworkReachability()})),this.on("change:inNetworkInactivityDuration",(function(){e.checkNetworkReachability()})),this.listenTo(this.webex,"user-activity",(function(){e.lastUserActivityDate=b()()})),this.listenTo(this.webex,"meeting started",(function(){e.isInMeeting=!0,e.resetLogoutTimer()})),this.listenTo(this.webex,"meeting ended",(function(){e.isInMeeting=!1,e.resetLogoutTimer()}))},version:"2.54.0"},(0,m.Z)(ne,"refresh",[w.oneFlight,Q],T()(ne,"refresh"),ne),(0,m.Z)(ne,"register",[w.oneFlight,X],T()(ne,"register"),ne),(0,m.Z)(ne,"unregister",[w.oneFlight,ee],T()(ne,"unregister"),ne),(0,m.Z)(ne,"markUrlFailedAndGetNew",[te],T()(ne,"markUrlFailedAndGetNew"),ne),(0,m.Z)(ne,"initialize",[re],T()(ne,"initialize"),ne),ne));var se=r(63755),ce=r.n(se),ue=r(8167),le=r(31314),de=r(69678),fe=r(26305),pe=r(35002),he=r(36968),ve=r.n(he);function me(e){var t=function(){if("undefined"==typeof Reflect||!ce())return!1;if(ce().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ce()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,pe.Z)(e);if(t){var i=(0,pe.Z)(this).constructor;r=ce()(n,arguments,i)}else r=n.apply(this,arguments);return(0,fe.Z)(this,r)}}var ge=function(e){(0,de.Z)(r,e);var t=me(r);function r(){return(0,ue.Z)(this,r),t.apply(this,arguments)}return(0,le.Z)(r,[{key:"onRequest",value:function(e){var t=e.headers,r=e.service,n=e.uri,i=this.webex.internal,o=i.device,a=i.services;return!o.url||t&&N in t&&t[N]?y().resolve(e):a.waitForService({service:r,url:n}).then((function(t){var r=(a.getServiceFromUrl(t)||{}).name;return r&&!["idbroker","oauth","saml"].includes(r)&&ve()(e,"headers['".concat(N,"']"),o.url),e})).catch((function(t){return t.message.match(/was not found after waiting/)?e:y().reject(t)}))}}],[{key:"create",value:function(){return new r({webex:this})}}]),r}(r(98380).nK),ye=r(34155);const Ee={device:{canRegisterWaitDuration:10,defaults:{body:{name:("string"==typeof ye.title?ye.title.trim():void 0)||w.inBrowser&&"browser"||"javascript",deviceType:w.deviceType.WEB,model:"web-js-sdk",localizedModel:"webex-js-sdk",systemName:"WEBEX_JS_SDK",systemVersion:"1.0.0"}},enableInactivityEnforcement:!1,ephemeral:!1,ephemeralDeviceTTL:1800}};(0,i.t4)("device",ae,{config:Ee,interceptors:{DeviceUrlInterceptor:ge.create},onBeforeLogout:function(){return this.unregister()}})},50819:(e,t,r)=>{"use strict";r(21408);var n=r(21105),i=r(43174),o=r.n(i),a=r(73473),s=r.n(a),c=r(71544),u=r.n(c),l=(r(25026),n._y.extend({namespace:"Feature",getFeature:function(e,t,r){if("developer"!==e&&"user"!==e&&"entitlement"!==e)return s().reject(new Error("Invalid feature keyType provided. Only `developer`, `user`, and `entitlement` feature toggles are permitted."));r=r||{};var n=this.webex.internal.device.features[e].get(t);return n?r.full?s().resolve(n.serialize()):s().resolve(n.value):s().resolve(null)},handleFeatureUpdate:function(e){if(e&&e.data){var t=e.data.featureToggle,r=t.type.toLowerCase();"user"!==r&&"developer"!==r||this.webex.internal.device.features[r].add([t],{merge:!0})}},listen:function(){this.listenTo(this.webex.internal.mercury,"event:featureToggle_update",this.handleFeatureUpdate)},setFeature:function(e,t,r){var n=this;return"developer"!==e&&"user"!==e?s().reject(new Error("Only `developer` and `user` feature toggles can be set.")):this.request({method:"POST",api:"feature",resource:"features/users/".concat(this.webex.internal.device.userId,"/").concat(e),body:{key:t,mutable:!0,val:r}}).then((function(t){return n.webex.internal.device.features[e].add(t.body,{merge:!0})}))},setBundledFeatures:function(e){var t=this;return e.forEach((function(e){e.mutable=e.mutable||"true","USER"!==e.type&&"DEV"!==e.type&&(e.type="USER")})),this.request({method:"POST",api:"feature",resource:"features/users/".concat(this.webex.internal.device.userId,"/toggles"),body:e}).then((function(e){var r=o()(e.body.featureToggles,{type:"USER"});t.webex.internal.device.features.user.add(r[0],{merge:!0}),t.webex.internal.device.features.developer.add(r[1],{merge:!0})}))},initialize:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];u()(n._y.prototype.initialize,this,t),this.listenToAndRun(this.webex,"change:internal.device.features.developer",this.trigger.bind(this,"change:developer")),this.listenToAndRun(this.webex,"change:internal.device.features.entitlement",this.trigger.bind(this,"change:entitlement")),this.listenToAndRun(this.webex,"change:internal.device.features.user",this.trigger.bind(this,"change:user"))}}));const d=l;(0,n.t4)("feature",d,{config:{feature:{}}})},21408:(e,t,r)=>{"use strict";r(25026),r(50819),r(3374);var n=r(21105),i=r(62680),o=r.n(i),a=r(6919),s=r.n(a),c=r(93364),u=r.n(c),l=r(26771),d=r.n(l),f=r(77193),p=r(14917),h=r(2313),v=r(36968),m=r.n(v),g=r(27361),y=r.n(g),E=r(68929),S=r.n(E),_=r(73473),b=r.n(_),R=r(26243),T=r.n(R),w=r(18428),I=r.n(w),x=r(67857),A=r.n(x),C=r(66130),O=r.n(C),k=r(95366),N=r.n(k),L=r(8575),P=r(18408),M=r(25144),D=r(63755),U=r.n(D),j=r(8167),F=r(31314),B=r(23710),Z=r(69678),V=r(26305),G=r(35002),q=r(13218),H=r.n(q),W=r(18721),z=r.n(W),$=r(91747),K=r.n($),Y=r(83977),J=r.n(Y),Q=r(79873),X=r.n(Q),ee=r(79529),te=r.n(ee),re=r(8450),ne=r.n(re),ie=r(17187),oe=r(67431),ae=r(55877),se=r.n(ae);function ce(e){var t=function(){if("undefined"==typeof Reflect||!U())return!1;if(U().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(U()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,G.Z)(e);if(t){var i=(0,G.Z)(this).constructor;r=U()(n,arguments,i)}else r=n.apply(this,arguments);return(0,V.Z)(this,r)}}var ue=function(e){(0,Z.Z)(r,e);var t=ce(r);function r(){return(0,j.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r,[{key:"parse",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u()(this,{code:{value:e.code},reason:{value:e.reason}}),e.reason}}]),r}(P.Exception);(0,f.Z)(ue,"defaultMessage","Failed to connect to socket");var le=function(e){(0,Z.Z)(r,e);var t=ce(r);function r(){return(0,j.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r)}(ue);(0,f.Z)(le,"defaultMessage","UnknownResponse is produced by IE when we receive a 4XXX. You probably want to treat this like a NotFound");var de=function(e){(0,Z.Z)(r,e);var t=ce(r);function r(){return(0,j.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r)}(ue);(0,f.Z)(de,"defaultMessage","BadRequest usually implies an attempt to use service account credentials");var fe=function(e){(0,Z.Z)(r,e);var t=ce(r);function r(){return(0,j.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r)}(ue);(0,f.Z)(fe,"defaultMessage","Please refresh your access token");var pe=function(e){(0,Z.Z)(r,e);var t=ce(r);function r(){return(0,j.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r)}(ue);function he(e){var t=function(){if("undefined"==typeof Reflect||!U())return!1;if(U().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(U()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,G.Z)(e);if(t){var i=(0,G.Z)(this).constructor;r=U()(n,arguments,i)}else r=n.apply(this,arguments);return(0,V.Z)(this,r)}}(0,f.Z)(pe,"defaultMessage","Forbidden usually implies these credentials are not entitled for Webex");var ve=new(J()),me=function(e){(0,Z.Z)(r,e);var t=he(r);function r(){var e;return(0,j.Z)(this,r),(e=t.call(this)).onmessage=e.onmessage.bind((0,B.Z)(e)),e.onclose=e.onclose.bind((0,B.Z)(e)),e}return(0,F.Z)(r,[{key:"binaryType",get:function(){return ve.get(this).binaryType}},{key:"bufferedAmount",get:function(){return ve.get(this).bufferedAmount}},{key:"extensions",get:function(){return ve.get(this).extensions}},{key:"protocol",get:function(){return ve.get(this).protocol}},{key:"readyState",get:function(){return ve.get(this).readyState}},{key:"url",get:function(){return ve.get(this).url}},{key:"close",value:function(e){var t=this;return new(b())((function(r,n){var i=ve.get(t);if(i){if(t.logger.info("socket: closing"),2===i.readyState||3===i.readyState)return t.logger.info("socket: already closed"),void r();if((e=e||{}).code&&1e3!==e.code&&(e.code<3e3||e.code>4999))n(new Error("`options.code` must be 1000 or between 3000 and 4999 (inclusive)"));else{e=K()(e,{code:1e3,reason:"Done"});var o=(0,oe.L)((function(){try{t.logger.info("socket: no close event received, forcing closure"),r(t.onclose({code:1e3,reason:"Done (forced)"}))}catch(e){t.logger.warn("socket: force-close failed",e)}}),t.forceCloseDelay);i.onclose=function(e){t.logger.info("socket: close event fired",e.code,e.reason),clearTimeout(o),t.onclose(e),r(e)},i.close(e.code,e.reason)}}else r()}))}},{key:"open",value:function(e,t){var n=this;return new(b())((function(i,o){if(e)if(ve.get(n))o(new Error("Socket#open() can only be called once per instance"));else{t=t||{},(0,P.checkRequired)(["forceCloseDelay","pingInterval","pongTimeout","token","trackingId","logger"],t),T()(t).forEach((function(e){X()(n,e,{enumerable:!1,value:t[e]})}));var a=r.getWebSocketConstructor();n.logger.info("socket: creating WebSocket");var s=new a(e,[],t);s.binaryType="arraybuffer",s.onmessage=n.onmessage,s.onclose=function(e){switch(e=n._fixCloseCode(e),n.logger.info("socket: closed before open",e.code,e.reason),e.code){case 1005:return o(new le(e));case 4400:return o(new de(e));case 4401:return o(new fe(e));case 4403:return o(new pe(e));default:return o(new ue(e))}},s.onopen=function(){n.logger.info("socket: connected"),n._authorize().then((function(){n.logger.info("socket: authorized"),s.onclose=n.onclose,i()})).catch(o)},s.onerror=function(e){n.logger.warn("socket: error event fired",e)},ve.set(n,s),n.logger.info("socket: waiting for server")}else o(new Error("`url` is required"))}))}},{key:"onclose",value:function(e){this.logger.info("socket: closed",e.code,e.reason),clearTimeout(this.pongTimer),clearTimeout(this.pingTimer),e=this._fixCloseCode(e),this.emit("close",e),this.removeAllListeners()}},{key:"onmessage",value:function(e){try{var t=JSON.parse(e.data),r=te()(t.sequenceNumber,10);this.logger.debug("socket: sequence number: ",r),this.expectedSequenceNumber&&r!==this.expectedSequenceNumber&&(this.logger.debug("socket: sequence number mismatch indicates lost mercury message. expected: ".concat(this.expectedSequenceNumber,", actual: ").concat(r)),this.emit("sequence-mismatch",r,this.expectedSequenceNumber)),this.expectedSequenceNumber=r+1;var n={data:t};this._acknowledge(n),"pong"===t.type?this.emit("pong",n):this.emit("message",n)}catch(e){this.logger.warn("socket: error while receiving WebSocket message",e)}}},{key:"send",value:function(e){var t=this;return new(b())((function(r,n){return 1!==t.readyState?n(new Error("INVALID_STATE_ERROR")):(H()(e)&&(e=ne()(e)),ve.get(t).send(e),r())}))}},{key:"_acknowledge",value:function(e){return e?z()(e,"data.id")?this.send({messageId:e.data.id,type:"ack"}):b().reject(new Error("`event.data.id` is required")):b().reject(new Error("`event` is required"))}},{key:"_authorize",value:function(){var e=this;return new(b())((function(t){e.logger.info("socket: authorizing"),e.send({id:se().v4(),type:"authorization",data:{token:e.token},trackingId:e.trackingId,logLevelToken:e.logLevelToken});e.once("message",(function r(n){n.data.type||"mercury.buffer_state"!==n.data.data.eventType&&"mercury.registration_status"!==n.data.data.eventType||(e.removeListener("message",r),e._ping(),t())}))}))}},{key:"_fixCloseCode",value:function(e){if(1005===e.code&&e.reason)switch(e.reason.toLowerCase()){case"replaced":this.logger.info("socket: fixing CloseEvent code for reason: ",e.reason),e.code=4e3;break;case"authentication failed":case"authentication did not happen within the timeout window of 30000 seconds.":this.logger.info("socket: fixing CloseEvent code for reason: ",e.reason),e.code=1008}return e}},{key:"_ping",value:function(e){var t=this;return e=e||se().v4(),this.pongTimer=(0,oe.L)((function(){try{t.logger.info("socket: pong not receive in expected period, closing socket"),t.close({code:1e3,reason:"Pong not received"}).catch((function(e){t.logger.warn("socket: failed to close socket after missed pong",e)}))}catch(e){t.logger.error("socket: error occurred in onPongNotReceived",e)}}),this.pongTimeout),this.once("pong",(function(){try{clearTimeout(t.pongTimer),t.pingTimer=(0,oe.L)((function(){return t._ping()}),t.pingInterval)}catch(e){t.logger.error("socket: error occurred in scheduleNextPingAndCancelPongTimer",e)}})),this.once("pong",(function(r){try{t.logger.debug("socket: pong",r.data.id),r.data&&r.data.id!==e&&(t.logger.info("socket: received pong for wrong ping id, closing socket"),t.logger.debug("socket: expected",e,"received",r.data.id),t.close({code:1e3,reason:"Pong mismatch"}))}catch(e){t.logger.error("socket: error occurred in confirmPongId",e)}})),this.logger.debug("socket: ping ".concat(e)),this.send({id:e,type:"ping"})}}],[{key:"getWebSocketConstructor",value:function(){throw new Error("Socket.getWebSocketConstructor() must be implemented in an environmentally appropriate way")}}]),r}(ie.EventEmitter);me.getWebSocketConstructor=function(){var e;return"undefined"!=typeof WebSocket?e=WebSocket:"undefined"!=typeof MozWebSocket?e=MozWebSocket:void 0!==r.g?e=r.g.WebSocket||r.g.MozWebSocket:"undefined"!=typeof window?e=window.WebSocket||window.MozWebSocket:"undefined"!=typeof self&&(e=self.WebSocket||self.MozWebSocket),e};const ge=me;var ye,Ee,Se;function _e(e,t){var r=T()(e);if(o()){var n=o()(e);t&&(n=n.filter((function(t){return N()(e,t).enumerable}))),r.push.apply(r,n)}return r}function be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(r),!0).forEach((function(t){(0,f.Z)(e,t,r[t])})):s()?u()(e,s()(r)):_e(Object(r)).forEach((function(t){d()(e,t,N()(r,t))}))}return e}var Re=["idle","done (forced)","pong not received","pong mismatch"];const Te=n._y.extend((ye=(0,P.deprecated)("Mercury#listen(): Use Mercury#connect() instead"),Ee=(0,P.deprecated)("Mercury#stopListening(): Use Mercury#disconnect() instead"),Se={namespace:"Mercury",session:{connected:{default:!1,type:"boolean"},connecting:{default:!1,type:"boolean"},socket:"object",localClusterServiceUrls:"object"},derived:{listening:{deps:["connected"],fn:function(){return this.connected}}},connect:function(e){var t=this;return this.connected?(this.logger.info("mercury: already connected, will not connect again"),b().resolve()):(this.connecting=!0,b().resolve(this.webex.internal.device.registered||this.webex.internal.device.register()).then((function(){return t.logger.info("mercury: connecting"),t._connectWithBackoff(e)})))},disconnect:function(){var e=this;return new(b())((function(t){if(e.backoffCall&&(e.logger.info("mercury: aborting connection"),e.backoffCall.abort()),e.socket)return e.socket.removeAllListeners("message"),e.once("offline",t),void e.socket.close();t()}))},listen:function(){return this.connect()},stopListening:function(){return this.disconnect()},processRegistrationStatusEvent:function(e){this.localClusterServiceUrls=e.localClusterServiceUrls},_applyOverrides:function(e){e&&e.headers&&T()(e.headers).forEach((function(t){m()(e,t,e.headers[t])}))},_prepareUrl:function(e){var t=this;return e||(e=this.webex.internal.device.webSocketUrl),this.webex.internal.feature.getFeature("developer","web-high-availability").then((function(r){return r?t.webex.internal.services.convertUrlToPriorityHostUrl(e):e})).then((function(t){e=t})).then((function(){return t.webex.internal.feature.getFeature("developer","web-shared-mercury")})).then((function(r){return e=L.parse(e,!0),I()(e.query,{outboundWireFormat:"text",bufferStates:!0,aliasHttpStatus:!0}),r&&(I()(e.query,{mercuryRegistrationStatus:!0,isRegistrationRefreshEnabled:!0}),A()(e.query,"bufferStates")),y()(t,"webex.config.device.ephemeral",!1)&&(e.query.multipleConnections=!0),L.format(e)}))},_attemptConnection:function(e,t){var r,n=this,i=new ge;i.on("close",(function(){return n._onclose.apply(n,arguments)})),i.on("message",(function(){return n._onmessage.apply(n,arguments)})),i.on("sequence-mismatch",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n._emit.apply(n,["sequence-mismatch"].concat(t))})),b().all([this._prepareUrl(e),this.webex.credentials.getUserToken()]).then((function(e){var t=(0,p.Z)(e,2),o=t[0],a=t[1];if(!n.backoffCall){var s="mercury: prevent socket open when backoffCall no longer defined";return n.logger.info(s),b().reject(new Error(s))}r=o;var c={forceCloseDelay:n.config.forceCloseDelay,pingInterval:n.config.pingInterval,pongTimeout:n.config.pongTimeout,token:a.toString(),trackingId:"".concat(n.webex.sessionId,"_").concat(O()()),logger:n.logger};return n.webex.config.defaultMercuryOptions&&(n.logger.info("mercury: setting custom options"),c=be(be({},c),n.webex.config.defaultMercuryOptions)),n.socket=i,i.open(o,c)})).then((function(){return n.webex.internal.metrics.submitClientMetrics("web-ha-mercury",{fields:{success:!0},tags:{action:"connected",url:r}}),t(),n.webex.internal.feature.getFeature("developer","web-high-availability").then((function(e){return e?n.webex.internal.device.refresh():b().resolve()}))})).catch((function(e){return 1006!==e.code&&n.backoffCall&&n.backoffCall.getNumRetries()>0&&n._emit("connection_failed",e,{retries:n.backoffCall.getNumRetries()}),n.logger.info("mercury: connection attempt failed",e),e instanceof le?(n.logger.info("mercury: received unknown response code, refreshing device registration"),n.webex.internal.device.refresh().then((function(){return t(e)}))):e instanceof fe?(n.logger.info("mercury: received authorization error, reauthorizing"),n.webex.credentials.refresh({force:!0}).then((function(){return t(e)}))):e instanceof de||e instanceof pe?(n.logger.warn("mercury: received unrecoverable response from mercury"),n.backoffCall.abort(),t(e)):e instanceof ue?n.webex.internal.feature.getFeature("developer","web-high-availability").then((function(t){return t?(n.logger.info("mercury: received a generic connection error, will try to connect to another datacenter"),n.webex.internal.metrics.submitClientMetrics("web-ha-mercury",{fields:{success:!1},tags:{action:"failed",error:e.message,url:r}}),n.webex.internal.services.markFailedUrl(r)):null})).then((function(){return t(e)})):t(e)})).catch((function(e){n.logger.error("mercury: failed to handle connection failure",e),t(e)}))},_connectWithBackoff:function(e){var t=this;return new(b())((function(r,n){var i;(i=M.call((function(r){t.logger.info("mercury: executing connection attempt ".concat(i.getNumRetries())),t._attemptConnection(e,r)}),(function(e){return t.connecting=!1,t.backoffCall=void 0,e?(t.logger.info("mercury: failed to connect after ".concat(i.getNumRetries()," retries; log statement about next retry was inaccurate; ").concat(e)),n(e)):(t.connected=!0,t._emit("online"),r())}))).setStrategy(new M.ExponentialStrategy({initialDelay:t.config.backoffTimeReset,maxDelay:t.config.backoffTimeMax})),t.config.maxRetries&&i.failAfter(t.config.maxRetries),i.on("abort",(function(){t.logger.info("mercury: connection aborted"),n(new Error("Mercury Connection Aborted"))})),i.on("callback",(function(e){if(e){var r=i.getNumRetries(),n=Math.min(i.strategy_.nextBackoffDelay_,t.config.backoffTimeMax);t.logger.info("mercury: failed to connect; attempting retry ".concat(r+1," in ").concat(n," ms"))}else t.logger.info("mercury: connected")})),i.start(),t.backoffCall=i}))},_emit:function(){try{this.trigger.apply(this,arguments)}catch(e){this.logger.error("mercury: error occurred in event handler",e)}},_getEventHandlers:function(e){var t=e.split("."),r=(0,p.Z)(t,2),n=r[0],i=r[1],o=[];if(!this.webex[n]&&!this.webex.internal[n])return o;var a=S()("process_".concat(i,"_event"));return(this.webex[n]||this.webex.internal[n])[a]&&o.push({name:a,namespace:n}),o},_onclose:function(e){try{var t=e.reason&&e.reason.toLowerCase(),r=this.socket.url;switch(this.socket.removeAllListeners(),this.unset("socket"),this.connected=!1,this._emit("offline",e),e.code){case 1003:this.logger.info("mercury: Mercury service rejected last message; will not reconnect: ".concat(e.reason)),this._emit("offline.permanent",e);break;case 4e3:this.logger.info("mercury: socket replaced; will not reconnect"),this._emit("offline.replaced",e);break;case 1001:case 1005:case 1006:case 1011:this.logger.info("mercury: socket disconnected; reconnecting"),this._emit("offline.transient",e),this._reconnect(r);break;case 1e3:Re.includes(t)?(this.logger.info("mercury: socket disconnected; reconnecting"),this._emit("offline.transient",e),this._reconnect(r)):(this.logger.info("mercury: socket disconnected; will not reconnect"),this._emit("offline.permanent",e));break;default:this.logger.info("mercury: socket disconnected unexpectedly; will not reconnect"),this._emit("offline.permanent",e)}}catch(e){this.logger.error("mercury: error occurred in close handler",e)}},_onmessage:function(e){var t=this,r=e.data;({ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}).ENABLE_MERCURY_LOGGING&&this.logger.debug("mercury: message envelope: ",r);var n=r.data;return this._applyOverrides(n),this._getEventHandlers(n.eventType).reduce((function(e,r){return e.then((function(){var e=r.namespace,i=r.name;return new(b())((function(r){return r((t.webex[e]||t.webex.internal[e])[i](n))})).catch((function(e){return t.logger.error("mercury: error occurred in autowired event handler for ".concat(n.eventType),e)}))}))}),b().resolve()).then((function(){t._emit("event",e.data);var i=n.eventType.split("."),o=(0,p.Z)(i,1)[0];o===n.eventType?t._emit("event:".concat(o),r):(t._emit("event:".concat(o),r),t._emit("event:".concat(n.eventType),r))})).catch((function(e){t.logger.error("mercury: error occurred processing socket message",e)}))},_reconnect:function(e){return this.logger.info("mercury: reconnecting"),this.connect(e)},version:"2.54.0"},(0,h.Z)(Se,"connect",[P.oneFlight],N()(Se,"connect"),Se),(0,h.Z)(Se,"disconnect",[P.oneFlight],N()(Se,"disconnect"),Se),(0,h.Z)(Se,"listen",[ye],N()(Se,"listen"),Se),(0,h.Z)(Se,"stopListening",[Ee],N()(Se,"stopListening"),Se),Se)),we={mercury:{pingInterval:{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.MERCURY_PING_INTERVAL||15e3,pongTimeout:{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.MERCURY_PONG_TIMEOUT||14e3,backoffTimeMax:{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.MERCURY_BACKOFF_TIME_MAX||32e3,backoffTimeReset:{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.MERCURY_BACKOFF_TIME_RESET||1e3,forceCloseDelay:{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.MERCURY_FORCE_CLOSE_DELAY||2e3}};(0,n.t4)("mercury",Te,{config:we,onBeforeLogout:function(){return this.disconnect()}})},3374:(e,t,r)=>{"use strict";r.r(t),r.d(t,{config:()=>E,default:()=>W,getOSNameInternal:()=>H});var n=r(21105),i=r(26243),o=r.n(i),a=r(62680),s=r.n(a),c=r(95366),u=r.n(c),l=r(6919),d=r.n(l),f=r(93364),p=r.n(f),h=r(26771),v=r.n(h),m=r(77193),g=r(18408),y="webex-js-sdk";const E={device:{preDiscoveryServices:{metricsServiceUrl:{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.METRICS_SERVICE_URL||"https://metrics-a.wbx2.com/metrics/api/v1",metrics:{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.METRICS_SERVICE_URL||"https://metrics-a.wbx2.com/metrics/api/v1"}},metrics:{appType:g.inBrowser?"browser":"nodejs",batcherWait:500,batcherMaxCalls:50,batcherMaxWait:1500,batcherRetryPlateau:32e3}};var S={WINDOWS:"windows",MAC:"mac",IOS:"ios",ANDROID:"android",CHROME:"chrome",LINUX:"linux",OTHERS:"other"},_={"Chrome OS":S.CHROME,macOS:S.MAC,Windows:S.WINDOWS,iOS:S.IOS,Android:S.ANDROID,Linux:S.LINUX},b=r(14917),R=r(85579),T=r.n(R),w=r(66130),I=r.n(w),x=r(73473),A=r.n(x),C=r(71544),O=r.n(C),k=r(67431),N=T()("metric id");const L=n.mr.extend({namespace:"Metrics",prepareItem:function(e){return e.appType=e.appType||this.config.appType,e.env=e.env||null,e.time=e.time||I()(),e.version=e.version||this.webex.version,A().resolve(e)},prepareRequest:function(e){return A().resolve(e.map((function(e){return e.postTime=e.postTime||I()(),e})))},submitHttpRequest:function(e){return this.webex.request({method:"POST",service:"metrics",resource:"metrics",body:{metrics:e}})},handleHttpSuccess:function(e){var t=this;return A().all(e.options.body.metrics.map((function(e){return t.acceptItem(e)})))},handleHttpError:function(e){var t=this;return e instanceof n.Ff.NetworkOrCORSError?(this.logger.warn("metrics-batcher: received network error submitting metrics, reenqueuing payload"),A().all(e.options.body.metrics.map((function(e){return new(A())((function(r){var n=e[N].nextDelay;n<t.config.batcherRetryPlateau&&(e[N].nextDelay*=2),(0,k.L)((function(){r(t.rerequest(e))}),n)}))})))):O()(n.mr.prototype.handleHttpError,this,[e])},rerequest:function(e){var t=this;return A().all([this.getDeferredForRequest(e),this.prepareItem(e)]).then((function(e){var r=(0,b.Z)(e,2),n=r[0],i=r[1];t.enqueue(i).then((function(){return t.bounce()})).catch((function(e){return n.reject(e)}))}))},fingerprintRequest:function(e){return e[N]=e[N]||{nextDelay:1e3},A().resolve(e[N])},fingerprintResponse:function(e){return A().resolve(e[N])}});const P=L.extend({namespace:"Metrics",prepareItem:function(e){return A().resolve(e)},prepareRequest:function(e){return A().resolve(e)},submitHttpRequest:function(e){return this.webex.request({method:"POST",service:"metrics",resource:"clientmetrics",body:{metrics:e}})}});var M=r(18428),D=r.n(M);const U=L.extend({namespace:"Metrics",getBuildType:function(e){return null!=e&&e.includes("teams.webex.com")||null!=e&&e.includes("localhost")||null!=e&&e.includes("127.0.0.1")?"test":"prod"},prepareItem:function(e){var t,r,n={buildType:this.getBuildType(null===(t=e.event)||void 0===t||null===(r=t.eventData)||void 0===r?void 0:r.webClientDomain),networkType:"unknown"};return e.eventPayload.origin=D()(n,e.eventPayload.origin),A().resolve(e)},prepareRequest:function(e){return e.forEach((function(e){e.eventPayload.originTime=e.eventPayload.originTime||{},e.eventPayload.originTime.sent=(new Date).toISOString()})),A().resolve(e)},submitHttpRequest:function(e){return this.webex.request({method:"POST",service:"metrics",resource:"clientmetrics",body:{metrics:e}})}});function j(e,t){var r=o()(e);if(s()){var n=s()(e);t&&(n=n.filter((function(t){return u()(e,t).enumerable}))),r.push.apply(r,n)}return r}function F(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){(0,m.Z)(e,t,r[t])})):d()?p()(e,d()(r)):j(Object(r)).forEach((function(t){v()(e,t,u()(r,t))}))}return e}var B=(0,g.BrowserDetection)(),Z=B.getOSName,V=B.getOSVersion,G=B.getBrowserName,q=B.getBrowserVersion;function H(){var e;return null!==(e=_[Z()])&&void 0!==e?e:S.OTHERS}const W=n._y.extend({children:{batcher:L,clientMetricsBatcher:P,callDiagnosticEventsBatcher:U},namespace:"Metrics",submit:function(e,t){return this.batcher.request(F({key:e},t))},submitClientMetrics:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(!e)throw Error("Missing behavioral metric name. Please provide one");var n,i,o,a,s,c,u,l={metricName:e};if(l.tags=F(F({},t.tags),{},{browser:G(),os:H(),domain:"undefined"!=typeof window&&window.location.hostname||"non-browser"}),l.fields=F(F({},t.fields),{},{browser_version:q(),os_version:V(),sdk_version:this.webex.version,platform:"Web",spark_user_agent:(n=this.webex,o=null!==(i=null==n?void 0:n.config)&&void 0!==i?i:{},a=o.appName,s=o.appVersion,c=o.appPlatform,u=y,a&&(u+=" ".concat(a,"/").concat(null!=s?s:"0.0")),c&&(u+=" ".concat(c)),u),client_id:this.webex.credentials.config.client_id}),l.type=t.type||this.webex.config.metrics.type,l.context=F(F({},t.context),{},{app:{version:this.webex.version},locale:"en-US",os:{name:H(),version:V()}}),t.eventPayload&&(l.eventPayload=t.eventPayload),l.timestamp=(new Date).valueOf(),r){var d={metrics:[l]};return this.postPreLoginMetric(d,r)}return this.clientMetricsBatcher.request(l)},aliasUser:function(e){return this.request({method:"POST",api:"metrics",resource:"clientmetrics",headers:{"x-prelogin-userid":e},body:{},qs:{alias:!0}})},postPreLoginMetric:function(e,t){var r=this;return this.webex.credentials.getClientToken().then((function(n){return r.request({method:"POST",api:"metrics",resource:"clientmetrics-prelogin",headers:{authorization:n.toString(),"x-prelogin-userid":t},body:e})}))},submitCallDiagnosticEvents:function(e){var t={type:"diagnostic-event",eventPayload:e};return this.callDiagnosticEventsBatcher.request(t)},version:"2.54.0"});(0,n.t4)("metrics",W,{config:E})},40600:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});r(25026);var n=r(21105),i=r(66250),o=r(91747),a=r.n(o),s=r(33453),c=r.n(s),u=r(55877),l=r.n(u);const d=n._y.extend({namespace:"Support",getFeedbackUrl:function(e){return e=e||{},this.request({method:"POST",api:"conversation",resource:"users/deskFeedbackUrl",body:a()(e,{appVersion:this.config.appVersion,appType:this.config.appType,feedbackId:e.feedbackId||l().v4(),languageCode:this.config.languageCode})}).then((function(e){return e.body.url}))},getSupportUrl:function(){return this.webex.request({method:"GET",api:"conversation",resource:"users/deskSupportUrl",qs:{languageCode:this.config.languageCode}}).then((function(e){return e.body.url}))},submitLogs:function(e,t){var r,n,o=this,s=this._constructFileMetadata(e);return!t&&this.webex.logger.sdkBuffer&&this.webex.logger.clientBuffer&&this.webex.logger.buffer&&(t=this.webex.logger.formatLogs()),r=e.locusId&&e.callStart?"".concat(e.locusId,"_").concat(e.callStart,".txt"):"".concat(this.webex.sessionId,".txt"),this.webex.credentials.getUserToken().catch((function(){return o.webex.credentials.getClientToken()})).then(function(){var e=(0,i.Z)(c().mark((function e(i){var u,l,d,f;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u={authorization:i.toString()},l={service:"clientLogs",resource:"logs/urls"},d={service:"clientLogs",resource:"logs/meta"},f=a()(l,{file:t,shouldAttemptReauth:!1,headers:u,phases:{initialize:{body:{file:r}},upload:{$uri:function(e){return e.tempURL}},finalize:a()(d,{$body:function(e){return n=e.userId,{filename:e.logFilename,data:s,userId:o.webex.internal.device.userId||e.userId}}})}}),e.abrupt("return",o.webex.upload(f));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then((function(e){return n&&!e.userId&&(e.userId=n),e}))},_constructFileMetadata:function(e){var t=["locusId","callStart","feedbackId","correlationId","meetingId","surveySessionId"].map((function(t){return e[t]?{key:t,value:e[t]}:null})).filter((function(e){return Boolean(e)}));return this.webex.sessionId&&t.push({key:"trackingId",value:this.webex.sessionId}),this.webex.internal.device.userId&&t.push({key:"userId",value:this.webex.internal.device.userId}),this.webex.internal.device.orgId&&t.push({key:"orgId",value:this.webex.internal.device.orgId}),t},version:"2.54.0"}),f={device:{preDiscoveryServices:{atlasServiceUrl:"https://atlas-a.wbx2.com/admin/api/v1",atlas:"https://atlas-a.wbx2.com/admin/api/v1",clientLogs:{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.CLIENT_LOGS_SERVICE_URL||"https://client-logs-a.wbx2.com/api/v1",clientLogsServiceUrl:{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.CLIENT_LOGS_SERVICE_URL||"https://client-logs-a.wbx2.com/api/v1"}},support:{appType:"",appVersion:"",languageCode:""}};(0,n.t4)("support",d,{config:f})},27912:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n={device:{preDiscoveryServices:{atlasServiceUrl:"https://atlas-a.wbx2.com/admin/api/v1",atlas:"https://atlas-a.wbx2.com/admin/api/v1"}},user:{batcherWait:100,batcherMaxCalls:100,batcherMaxWait:1500,verifyDefaults:{reqId:"WEBCLIENT"}}}},74365:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i.Z});r(25026);var n=r(21105),i=r(14449),o=r(27912);(0,n.t4)("user",i.Z,{config:o.Z})},69439:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n=r(73473),i=r.n(n),o=r(26243),a=r.n(o),s=r(21105),c=s.mr.extend({namespace:"User",prepareItem:function(e){return i().resolve({email:e})},handleHttpSuccess:function(e){var t=this;return i().all(a()(e.body).map((function(r){return e.body[r]&&e.body[r].id?t.handleItemSuccess(r,e.body[r]):t.handleItemFailure(r,e.body[r])})))},handleItemFailure:function(e,t){return this.getDeferredForResponse(e).then((function(e){e.reject(t)}))},handleItemSuccess:function(e,t){return this.getDeferredForResponse(e).then((function(e){e.resolve(t)}))},fingerprintRequest:function(e){return i().resolve(e.email||e)},fingerprintResponse:function(e){return i().resolve(e)}}),u=c.extend({submitHttpRequest:function(e){return this.webex.request({method:"POST",service:"conversation",resource:"/users",body:e})}}),l=c.extend({submitHttpRequest:function(e){return this.webex.request({method:"POST",service:"conversation",resource:"/users",body:e,qs:{shouldCreateUsers:!0}})}});const d=s._y.extend({children:{faker:u,creator:l},request:function(e){return e.create?this.creator.request(e.email):this.faker.request(e.email)},version:"2.54.0"})},80287:(e,t,r)=>{"use strict";r.d(t,{Z:()=>C});var n=r(77193),i=r(8167),o=r(31314),a=r(83977),s=r.n(a),c=r(18281),u=r.n(c),l=r(73473),d=r.n(l),f=r(26243),p=r.n(f),h=r(62680),v=r.n(h),m=r(95366),g=r.n(m),y=r(6919),E=r.n(y),S=r(93364),_=r.n(S),b=r(26771),R=r.n(b),T=r(18408);function w(e,t){var r=p()(e);if(v()){var n=v()(e);t&&(n=n.filter((function(t){return g()(e,t).enumerable}))),r.push.apply(r,n)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):E()?_()(e,E()(r)):w(Object(r)).forEach((function(t){R()(e,t,g()(r,t))}))}return e}var x=new(s()),A=new(s()),C=function(){function e(){(0,i.Z)(this,e),x.set(this,new(u())),A.set(this,new(u()))}return(0,o.Z)(e,[{key:"add",value:function(e){var t=this;if(!e.id)return d().reject(new Error("`user.id` is required"));if(!e.emailAddress)return d().reject(new Error("`user.emailAddress` is required"));if(!T.patterns.uuid.test(e.id))return d().reject(new Error("`user.id` does not appear to be a uuid"));if(!T.patterns.email.test(e.emailAddress))return d().reject(new Error("`user.emailAddress` does not appear to be an email address"));var r=this.getById(e.id).then((function(r){return A.get(t).set(e.id,I(I({},r),e))})).catch((function(){return A.get(t).set(e.id,I({},e))})),n=this.getByEmail(e.emailAddress).then((function(r){return x.get(t).set(e.emailAddress,I(I({},r),e))})).catch((function(){return x.get(t).set(e.emailAddress,I({},e))}));return d().all([r,n])}},{key:"get",value:function(e){return T.patterns.uuid.test(e)?this.getById(e):T.patterns.email.test(e)?this.getByEmail(e):d().reject(new Error("`id` does not appear to be a valid user identifier"))}},{key:"getById",value:function(e){var t=A.get(this).get(e);return t?d().resolve(t):d().reject(new Error("No user found by specified id"))}},{key:"getByEmail",value:function(e){var t=x.get(this).get(e);return t?d().resolve(t):d().reject(new Error("No user found by specified email address"))}}]),e}()},14449:(e,t,r)=>{"use strict";r.d(t,{Z:()=>P});var n,i,o,a,s,c=r(26243),u=r.n(c),l=r(62680),d=r.n(l),f=r(6919),p=r.n(f),h=r(93364),v=r.n(h),m=r(26771),g=r.n(m),y=r(77193),E=r(2313),S=r(1469),_=r.n(S),b=r(73473),R=r.n(b),T=r(71544),w=r.n(T),I=r(95366),x=r.n(I),A=r(18408),C=r(21105),O=r(69439),k=r(80287);function N(e,t){var r=u()(e);if(d()){var n=d()(e);t&&(n=n.filter((function(t){return x()(e,t).enumerable}))),r.push.apply(r,n)}return r}function L(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach((function(t){(0,y.Z)(e,t,r[t])})):p()?v()(e,p()(r)):N(Object(r)).forEach((function(t){g()(e,t,x()(r,t))}))}return e}const P=C._y.extend((n=(0,C.A4)("@"),i=(0,A.oneFlight)({keyFactory:function(e,t){return e+String(t&&t.create)}}),o=(0,C.tJ)("@"),a=(0,A.deprecated)("Use User#verify()"),s={namespace:"User",children:{batcher:O.Z},props:{hasPassword:{default:!1,type:"boolean"}},session:{store:{default:function(){return new k.Z},type:"any"}},activate:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!(t.verificationToken||t.confirmationCode&&t.id))return R().reject(new Error("either options.verificationToken is required or both options.confirmationCode and options.id are required"));t.scope=this.webex.config.credentials.scope;var r=L({},t);return delete r.email,this.request({uri:this.webex.config.credentials.activationUrl,method:"POST",body:r,auth:{user:this.webex.config.credentials.client_id,pass:this.webex.config.credentials.client_secret,sendImmediately:!0}}).then((function(t){return e.webex.credentials.set({supertoken:t.body.tokenData}),t.body}))},asUUID:function(e,t){var r=this;if(!e)return R().reject(new Error("`user` is required"));if(_()(e))return R().all(e.map((function(e){return r.asUUID(e,t)})));var n=this._extractUUID(e);if((!t||!t.force)&&A.patterns.uuid.test(n))return R().resolve(n);var i=this._extractEmailAddress(e);return A.patterns.email.test(i)?this.getUUID(i,t):R().reject(new Error("Provided user object does not appear to identify a user"))},fetchUUID:function(e,t){var r=this;return this.batcher.request({email:e,create:t&&t.create}).then((function(t){return r.recordUUID(L({emailAddress:e},t)).then((function(){return t.id}))}))},generateOTP:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.email||e.id?this.request({uri:this.webex.config.credentials.generateOtpUrl,method:"POST",body:e,auth:{user:this.webex.config.credentials.client_id,pass:this.webex.config.credentials.client_secret}}).then((function(e){return e.body})):R().reject(new Error("One of `options.email` or `options.id` is required"))},get:function(){var e=this;return this.request({service:"conversation",resource:"users"}).then((function(e){return e.body})).then((0,A.tap)((function(t){return e.recordUUID({id:t.id,emailAddress:t.email||t.emailAddress})})))},getUUID:function(e,t){var r=this;return this.store.getByEmail(e).then((function(e){return t&&t.create&&!e.userExists?R().reject(new Error("User for specified email cannot be confirmed to exist")):e.id?e.id:R().reject(new Error("No id recorded for specified user"))})).catch((function(){return r.fetchUUID(e,t)}))},initialize:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return w()(C._y.prototype.initialize,this,t)},recordUUID:function(e){return e?e.id?A.patterns.uuid.test(e.id)?e.emailAddress?A.patterns.email.test(e.emailAddress)?this.store.add(e):R().reject(new Error("`user.emailAddress` must be an email address")):R().reject(new Error("`user.emailAddress` is required")):R().reject(new Error("`user.id` must be a uuid")):R().reject(new Error("`user.id` is required")):R().reject(new Error("`user` is required"))},register:function(){return this.verify.apply(this,arguments)},_setUser:function(e){var t=this;return this.webex.credentials.getUserToken().then((function(r){return t.request({uri:"".concat(t.webex.config.credentials.setPasswordUrl,"/").concat(t.webex.internal.device.userId),method:"PATCH",headers:{authorization:r.toString()},body:e})}))},setPassword:function(e){var t=this;return(e=e||{}).password?this._setUser({schemas:["urn:scim:schemas:core:1.0","urn:scim:schemas:extension:cisco:commonidentity:1.0"],password:e.password}).then((function(e){return t.hasPassword=!0,e.body})):R().reject(new Error("`options.password` is required"))},updateName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.givenName,r=e.familyName,n=e.displayName;return t||r||n?this._setUser({schemas:["urn:scim:schemas:core:1.0","urn:scim:schemas:extension:cisco:commonidentity:1.0"],name:{givenName:t,familyName:r},displayName:n}).then((function(e){return e.body})):R().reject(new Error("One of `givenName` and `familyName` or `displayName` is required"))},update:function(e){return(e=e||{}).displayName?this.request({method:"PATCH",service:"conversation",resource:"users/user",body:e}).then((function(e){return e.body})):R().reject(new Error("`options.displayName` is required"))},validateOTP:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(t.email||t.id)&&t.oneTimePassword?(t.scope=this.webex.config.credentials.scope,this.request({uri:this.webex.config.credentials.validateOtpUrl,method:"POST",body:t,auth:{user:this.webex.config.credentials.client_id,pass:this.webex.config.credentials.client_secret}}).then((function(t){return e.webex.credentials.set({supertoken:t.body.tokenData}),t.body}))):R().reject(new Error("One of `options.email` or `options.id` and `options.oneTimePassword` are required"))},verify:function(e){var t=this,r=(e=L(L({},this.config.verifyDefaults),e)).email;return r?this.webex.internal.services.collectPreauthCatalog({email:r}).then((function(){return t.webex.credentials.getUserToken()})).catch((function(){return t.webex.credentials.getClientToken()})).then((function(r){return t.request({service:"atlas",resource:"users/activations",method:"POST",headers:{authorization:r.toString(),"x-prelogin-userid":e.preloginId},body:e,shouldRefreshAccessToken:!1})})).then((function(e){return(e.body.hasPassword||e.body.sso)&&(t.hasPassword=!0),e.body})):R().reject(new Error("`options.email` is required"))},getUserCI:function(e,t){if(t){var r={email:e,suppressEmail:!0};return this.verify(r).then((function(e){return R().resolve(e.userEntities)}))}return R().resolve({idBrokerUrl:this.webex.config.credentials.idbroker.url,identityUrl:this.webex.config.credentials.identity.url})},_extractUUID:function(e){return e.entryUUID||e.id||e},_extractEmailAddress:function(e){return e.email||e.emailAddress||e.entryEmail||e},version:"2.54.0"},(0,E.Z)(s,"activate",[n],x()(s,"activate"),s),(0,E.Z)(s,"getUUID",[i],x()(s,"getUUID"),s),(0,E.Z)(s,"initialize",[o],x()(s,"initialize"),s),(0,E.Z)(s,"register",[a],x()(s,"register"),s),s))},51689:(e,t,r)=>{"use strict";r.r(t),r.d(t,{config:()=>Ee,default:()=>ye});r(25026);var n=r(21105),i=r(66250),o=r(2313),a=r(82723),s=r.n(a),c=r(41609),u=r.n(c),l=r(50361),d=r.n(l),f=r(33453),p=r.n(f),h=r(8450),v=r.n(h),m=r(71544),g=r.n(m),y=r(18428),E=r.n(y),S=r(73473),_=r.n(S),b=r(67857),R=r.n(b),T=r(79529),w=r.n(T),I=r(95366),x=r.n(I),A=r(17673),C=r(8575),O=r(18408),k=r(55877),N=r.n(k);const L=crypto,P=e=>e instanceof CryptoKey,M=new TextEncoder,D=new TextDecoder;function U(...e){const t=e.reduce(((e,{length:t})=>e+t),0),r=new Uint8Array(t);let n=0;return e.forEach((e=>{r.set(e,n),n+=e.length})),r}const j=e=>(e=>{let t=e;"string"==typeof t&&(t=M.encode(t));const r=[];for(let e=0;e<t.length;e+=32768)r.push(String.fromCharCode.apply(null,t.subarray(e,e+32768)));return btoa(r.join(""))})(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");class F extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(e){var t;super(e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,null===(t=Error.captureStackTrace)||void 0===t||t.call(Error,this,this.constructor)}}class B extends F{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}class Z extends F{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}}class V extends F{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}Symbol.asyncIterator;L.getRandomValues.bind(L);const G=e=>P(e),q=["CryptoKey"];function H(e,t,...r){if(r.length>2){const t=r.pop();e+=`one of type ${r.join(", ")}, or ${t}.`}else 2===r.length?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor&&t.constructor.name&&(e+=` Received an instance of ${t.constructor.name}`),e}const W=(e,...t)=>H("Key must be ",e,...t);function z(e,t,...r){return H(`Key for the ${e} algorithm must be `,t,...r)}const $=(e,t,r)=>{e.startsWith("HS")||"dir"===e||e.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(e)?((e,t)=>{if(!(t instanceof Uint8Array)){if(!G(t))throw new TypeError(z(e,t,...q,"Uint8Array"));if("secret"!==t.type)throw new TypeError(`${q.join(" or ")} instances for symmetric algorithms must be of type "secret"`)}})(e,t):((e,t,r)=>{if(!G(t))throw new TypeError(z(e,t,...q));if("secret"===t.type)throw new TypeError(`${q.join(" or ")} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===r&&"public"===t.type)throw new TypeError(`${q.join(" or ")} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===r&&"public"===t.type)throw new TypeError(`${q.join(" or ")} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&"verify"===r&&"private"===t.type)throw new TypeError(`${q.join(" or ")} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&"encrypt"===r&&"private"===t.type)throw new TypeError(`${q.join(" or ")} instances for asymmetric algorithm encryption must be of type "public"`)})(e,t,r)};const K=function(e,t,r,n,i){if(void 0!==i.crit&&void 0===n.crit)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!n||void 0===n.crit)return new Set;if(!Array.isArray(n.crit)||0===n.crit.length||n.crit.some((e=>"string"!=typeof e||0===e.length)))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let o;o=void 0!==r?new Map([...Object.entries(r),...t.entries()]):t;for(const t of n.crit){if(!o.has(t))throw new B(`Extension Header Parameter "${t}" is not recognized`);if(void 0===i[t])throw new e(`Extension Header Parameter "${t}" is missing`);if(o.get(t)&&void 0===n[t])throw new e(`Extension Header Parameter "${t}" MUST be integrity protected`)}return new Set(n.crit)};Symbol();function Y(){return"undefined"!=typeof WebSocketPair||"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent||"undefined"!=typeof EdgeRuntime&&"vercel"===EdgeRuntime}function J(e,t="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function Q(e,t){return e.name===t}function X(e){return parseInt(e.name.slice(4),10)}function ee(e,t){if(t.length&&!t.some((t=>e.usages.includes(t)))){let e="CryptoKey does not support this operation, its usages must include ";if(t.length>2){const r=t.pop();e+=`one of ${t.join(", ")}, or ${r}.`}else 2===t.length?e+=`one of ${t[0]} or ${t[1]}.`:e+=`${t[0]}.`;throw new TypeError(e)}}function te(e,t,...r){switch(t){case"HS256":case"HS384":case"HS512":{if(!Q(e.algorithm,"HMAC"))throw J("HMAC");const r=parseInt(t.slice(2),10);if(X(e.algorithm.hash)!==r)throw J(`SHA-${r}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!Q(e.algorithm,"RSASSA-PKCS1-v1_5"))throw J("RSASSA-PKCS1-v1_5");const r=parseInt(t.slice(2),10);if(X(e.algorithm.hash)!==r)throw J(`SHA-${r}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!Q(e.algorithm,"RSA-PSS"))throw J("RSA-PSS");const r=parseInt(t.slice(2),10);if(X(e.algorithm.hash)!==r)throw J(`SHA-${r}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==e.algorithm.name&&"Ed448"!==e.algorithm.name){if(Y()){if(Q(e.algorithm,"NODE-ED25519"))break;throw J("Ed25519, Ed448, or NODE-ED25519")}throw J("Ed25519 or Ed448")}break;case"ES256":case"ES384":case"ES512":{if(!Q(e.algorithm,"ECDSA"))throw J("ECDSA");const r=function(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}(t);if(e.algorithm.namedCurve!==r)throw J(r,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}ee(e,r)}const re=86400,ne=/^(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)$/i,ie=e=>{const t=ne.exec(e);if(!t)throw new TypeError("Invalid time period format");const r=parseFloat(t[1]);switch(t[2].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":return Math.round(r);case"minute":case"minutes":case"min":case"mins":case"m":return Math.round(60*r);case"hour":case"hours":case"hr":case"hrs":case"h":return Math.round(3600*r);case"day":case"days":case"d":return Math.round(r*re);case"week":case"weeks":case"w":return Math.round(604800*r);default:return Math.round(31557600*r)}};const oe=async(e,t,r)=>{const n=await function(e,t,r){if(P(t))return te(t,e,r),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw new TypeError(W(t,...q));return L.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[r])}throw new TypeError(W(t,...q,"Uint8Array"))}(e,t,"sign");((e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){const{modulusLength:r}=t.algorithm;if("number"!=typeof r||r<2048)throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}})(e,n);const i=await L.subtle.sign(function(e,t){const r=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"EdDSA":return Y()&&"NODE-ED25519"===t.name?{name:"NODE-ED25519",namedCurve:"NODE-ED25519"}:{name:t.name};default:throw new B(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}(e,n.algorithm),n,r);return new Uint8Array(i)},ae=(...e)=>{const t=e.filter(Boolean);if(0===t.length||1===t.length)return!0;let r;for(const e of t){const t=Object.keys(e);if(r&&0!==r.size)for(const e of t){if(r.has(e))return!1;r.add(e)}else r=new Set(t)}return!0};class se{constructor(e){if(!(e instanceof Uint8Array))throw new TypeError("payload must be an instance of Uint8Array");this._payload=e}setProtectedHeader(e){if(this._protectedHeader)throw new TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw new TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}async sign(e,t){if(!this._protectedHeader&&!this._unprotectedHeader)throw new Z("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!ae(this._protectedHeader,this._unprotectedHeader))throw new Z("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const r={...this._protectedHeader,...this._unprotectedHeader};let n=!0;if(K(Z,new Map([["b64",!0]]),null==t?void 0:t.crit,this._protectedHeader,r).has("b64")&&(n=this._protectedHeader.b64,"boolean"!=typeof n))throw new Z('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:i}=r;if("string"!=typeof i||!i)throw new Z('JWS "alg" (Algorithm) Header Parameter missing or invalid');$(i,e,"sign");let o,a=this._payload;n&&(a=M.encode(j(a))),o=this._protectedHeader?M.encode(j(JSON.stringify(this._protectedHeader))):M.encode("");const s=U(o,M.encode("."),a),c=await oe(i,e,s),u={signature:j(c),payload:""};return n&&(u.payload=D.decode(a)),this._unprotectedHeader&&(u.header=this._unprotectedHeader),this._protectedHeader&&(u.protected=D.decode(o)),u}}class ce{constructor(e){this._flattened=new se(e)}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}async sign(e,t){const r=await this._flattened.sign(e,t);if(void 0===r.payload)throw new TypeError("use the flattened module for creating JWS with b64: false");return`${r.protected}.${r.payload}.${r.signature}`}}const ue=e=>Math.floor(e.getTime()/1e3);class le{constructor(e){if(!function(e){if("object"!=typeof(t=e)||null===t||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t;if(null===Object.getPrototypeOf(e))return!0;let r=e;for(;null!==Object.getPrototypeOf(r);)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}(e))throw new TypeError("JWT Claims Set MUST be an object");this._payload=e}setIssuer(e){return this._payload={...this._payload,iss:e},this}setSubject(e){return this._payload={...this._payload,sub:e},this}setAudience(e){return this._payload={...this._payload,aud:e},this}setJti(e){return this._payload={...this._payload,jti:e},this}setNotBefore(e){return this._payload="number"==typeof e?{...this._payload,nbf:e}:{...this._payload,nbf:ue(new Date)+ie(e)},this}setExpirationTime(e){return this._payload="number"==typeof e?{...this._payload,exp:e}:{...this._payload,exp:ue(new Date)+ie(e)},this}setIssuedAt(e){return this._payload=void 0===e?{...this._payload,iat:ue(new Date)}:{...this._payload,iat:e},this}}class de extends le{setProtectedHeader(e){return this._protectedHeader=e,this}async sign(e,t){var r;const n=new ce(M.encode(JSON.stringify(this._payload)));if(n.setProtectedHeader(this._protectedHeader),Array.isArray(null===(r=this._protectedHeader)||void 0===r?void 0:r.crit)&&this._protectedHeader.crit.includes("b64")&&!1===this._protectedHeader.b64)throw new V("JWTs MUST NOT use unencoded payload");return n.sign(e,t)}}var fe,pe,he,ve=r(34155),me="oauth2-csrf-token",ge=O.base64.encode(v()({}));const ye=n._y.extend((fe=(0,O.whileInFlight)("isAuthorizing"),pe=(0,O.whileInFlight)("isAuthorizing"),he={derived:{isAuthenticating:{deps:["isAuthorizing"],fn:function(){return this.isAuthorizing}}},session:{isAuthorizing:{default:!1,type:"boolean"},ready:{default:!1,type:"boolean"}},namespace:"Credentials",initialize:function(e,t){var r=this,i=g()(n._y.prototype.initialize,this,[e,t]);if(!1===e.parse)return this.ready=!0,i;var o=C.parse(this.webex.getWindow().location.href,!0);this._checkForErrors(o);var a=o.hash;if(!a)return this.ready=!0,i;a.includes("#")&&(a=a.substr(1)),o.hash=A.parse(a),o.hash.state&&(o.hash.state=JSON.parse(O.base64.decode(o.hash.state)));var s=this._parseHash(o);return s?(this._cleanUrl(o),ve.nextTick((function(){r.webex.credentials.set({supertoken:s}),r.ready=!0})),i):i},initiateLogin:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.state=e.state||{},e.state.csrf_token=this._generateSecurityToken(),"confidential"===this.config.clientType?this.initiateAuthorizationCodeGrant(e):this.initiateImplicitGrant(e)},initiateImplicitGrant:function(e){return this.logger.info("authorization: initiating implicit grant flow"),this.webex.getWindow().location=this.webex.credentials.buildLoginUrl(E()({response_type:"token"},e)),_().resolve()},initiateAuthorizationCodeGrant:function(e){return this.logger.info("authorization: initiating authorization code grant flow"),this.webex.getWindow().location=this.webex.credentials.buildLoginUrl(E()({response_type:"code"},e)),_().resolve()},requestAccessTokenFromJwt:function(e){var t=this,r=e.jwt,n=this.webex.internal.services.get("hydra",!0);return n&&"/"!==n.slice(-1)&&(n+="/"),n=n||"https://api.ciscospark.com/v1",this.webex.request({method:"POST",uri:"".concat(n,"jwt/login"),headers:{authorization:r}}).then((function(e){var t=e.body;return{access_token:t.token,token_type:"Bearer",expires_in:t.expiresIn}})).then((function(e){t.webex.credentials.set({supertoken:e})})).then((function(){return t.webex.internal.services.initServiceCatalogs()}))},logout:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.noRedirect||(this.webex.getWindow().location=this.webex.credentials.buildLogoutUrl(e))},createJwt:function(e){return(0,i.Z)(p().mark((function t(){var r,n,i,o,a,s,c;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.issuer,n=e.secretId,i=e.displayName,o=e.expiresIn,a=Buffer.from(n,"base64"),s={sub:"guest-user-".concat(N()()),iss:r,name:i||"Guest User - ".concat(N()())},"HS256",t.prev=4,t.next=7,new de(s).setProtectedHeader({alg:"HS256"}).setExpirationTime(o).sign(a);case 7:return c=t.sent,t.abrupt("return",_().resolve({jwt:c}));case 11:return t.prev=11,t.t0=t.catch(4),t.abrupt("return",_().reject(t.t0));case 14:case"end":return t.stop()}}),t,null,[[4,11]])})))()},_checkForErrors:function(e){var t=e.query;if(t&&t.error)throw new(n.Zf.select(t.error))(t)},_cleanUrl:function(e){e=d()(e),this.webex.getWindow().history&&this.webex.getWindow().history.replaceState&&(["access_token","token_type","expires_in","refresh_token","refresh_token_expires_in"].forEach((function(t){return R()(e.hash,t)})),u()(e.hash.state)?R()(e.hash,"state"):(e.hash.state=O.base64.encode(v()(s()(e.hash.state,"csrf_token"))),e.hash.state===ge&&R()(e.hash,"state")),e.hash=A.stringify(e.hash),this.webex.getWindow().history.replaceState({},null,C.format(e)))},_generateSecurityToken:function(){this.logger.info("authorization: generating csrf token");var e=N().v4();return this.webex.getWindow().sessionStorage.setItem("oauth2-csrf-token",e),e},_parseHash:function(e){var t=d()(e.hash);if(t&&this._verifySecurityToken(t),t.access_token)return t.expires_in&&(t.expires_in=w()(t.expires_in,10)),t.refresh_token_expires_in&&(t.refresh_token_expires_in=w()(t.refresh_token_expires_in,10)),t;this.ready=!0},_verifySecurityToken:function(e){var t=this.webex.getWindow().sessionStorage.getItem(me);if(this.webex.getWindow().sessionStorage.removeItem(me),t){if(!e.state)throw new Error("Expected CSRF token ".concat(t,", but not found in redirect hash"));if(!e.state.csrf_token)throw new Error("Expected CSRF token ".concat(t,", but not found in redirect hash"));var r=e.state.csrf_token;if(r!==t)throw new Error("CSRF token ".concat(r," does not match stored token ").concat(t))}},version:"2.54.0"},(0,o.Z)(he,"initiateImplicitGrant",[fe],x()(he,"initiateImplicitGrant"),he),(0,o.Z)(he,"initiateAuthorizationCodeGrant",[pe],x()(he,"initiateAuthorizationCodeGrant"),he),(0,o.Z)(he,"requestAccessTokenFromJwt",[O.oneFlight],x()(he,"requestAccessTokenFromJwt"),he),he)),Ee={credentials:{clientType:"public"}};(0,n.fo)("authorization",ye,{config:Ee,proxies:["isAuthorizing","isAuthenticating"]})},83061:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>O,levels:()=>b});var n=r(21105),i=r(21882),o=r(14917),a=r(47037),s=r.n(a),c=r(13218),u=r.n(c),l=r(1469),d=r.n(l),f=(r(18721),r(50361)),p=r.n(f),h=r(26243),v=r.n(h),m=r(43562),g=r.n(m),y=r(67857),E=r.n(y),S=r(18408),_={silent:0,group:1,groupEnd:2,error:3,warn:4,log:5,info:6,debug:7,trace:8},b=v()(_).filter((function(e){return"silent"!==e})),R={error:["log"],warn:["error","log"],info:["log"],debug:["info","log"],trace:["debug","info","log"]},T={SDK:"sdk",CLIENT:"client"},w="wx-js-sdk",I=/[Aa]uthorization/;function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.includes(e))return e;if(t.push(e),d()(e))return e.map((function(e){return x(e,t)}));if(!u()(e))return s()(e)&&S.patterns.containsEmails.test(e)?e.replace(S.patterns.containsEmails,"[REDACTED]"):e;for(var r=0,n=g()(e);r<n.length;r++){var i=(0,o.Z)(n[r],2),a=i[0],c=i[1];I.test(a)?E()(e,a):e[a]=x(c,t)}return e}var A=n._y.extend({namespace:"Logger",derived:{level:{cache:!1,fn:function(){return this.getCurrentLevel()}},client_level:{cache:!1,fn:function(){return this.getCurrentClientLevel()}}},session:{buffer:{type:"array",default:function(){return[]}},groupLevel:{type:"number",default:function(){return 0}},sdkBuffer:{type:"array",default:function(){return[]}},clientBuffer:{type:"array",default:function(){return[]}}},filter:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.map((function(e){return e instanceof Error?e:x(e=p()(e))}))},shouldPrint:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T.SDK;return _[e]<=_[t===T.SDK?this.getCurrentLevel():this.getCurrentClientLevel()]},shouldBuffer:function(e){return _[e]<=(this.config.bufferLogLevel?_[this.config.bufferLogLevel]:_.info)},getCurrentLevel:function(){if(this.config.level)return this.config.level;if(b.includes("log"))return"log";var e=this.webex.internal.device&&this.webex.internal.device.features.developer.get("log-level");return e&&b.includes(e)?e:"error"},getCurrentClientLevel:function(){return this.config.clientLevel?this.config.clientLevel:this.getCurrentLevel()},formatLogs:function(){function e(e){return e[1]}var t=[],r=0,n=0;if(this.config.separateLogBuffers)for(;r<this.clientBuffer.length||n<this.sdkBuffer.length;)n<this.sdkBuffer.length&&(r>=this.clientBuffer.length||new Date(e(this.sdkBuffer[n]))<=new Date(e(this.clientBuffer[r])))?(t.push(this.sdkBuffer[n]),n+=1):r<this.clientBuffer.length&&(t.push(this.clientBuffer[r]),r+=1);else t=this.buffer;return t.join("\n")},version:"2.54.0"});function C(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(){var s,c,u=r,l=u===T.SDK?w:this.config.clientName||u;this.config.separateLogBuffers?(c=this.config.clientHistoryLength?this.config.clientHistoryLength:this.config.historyLength,s=u===T.SDK?this.sdkBuffer:this.clientBuffer):(s=this.buffer,c=this.config.historyLength);try{var d=!o&&this.shouldPrint(e,u),f=a||this.shouldBuffer(e);if(!f&&!d)return;var p=[l].concat((0,i.Z)(this.filter.apply(this,arguments))),h=p.map((function(e){return e instanceof n.Ff?e.toString():e}));if(d){var v,m=S.inBrowser?h:p;0,(v=console)[t].apply(v,(0,i.Z)(m))}if(f){var g=new Date;h.unshift(g.toISOString()),h.unshift("| ".repeat(this.groupLevel)),s.push(h),s.length>c&&s.shift(),"group"===e&&(this.groupLevel+=1),"groupEnd"===e&&this.groupLevel>0&&(this.groupLevel-=1)}}catch(t){o||console.warn("failed to execute Logger#".concat(e),t)}}}b.forEach((function(e){var t=R[e],r=e;if(t)for(t=t.slice();!console[r];)r=t.pop();A.prototype["client_".concat(e)]=C(e,r,T.CLIENT),A.prototype[e]=C(e,r,T.SDK)})),A.prototype.client_logToBuffer=C(b.info,b.info,T.CLIENT,!0,!0),A.prototype.logToBuffer=C(b.info,b.info,T.SDK,!0,!0);const O=A;(0,n.fo)("logger",O,{config:{logger:{level:"log",historyLength:1e3}},replace:!0})},84562:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CONSTANTS:()=>c,TriggerProxy:()=>so,default:()=>bh});var n={};r.r(n),r.d(n,{fixNegotiationNeeded:()=>X,shimAddTrackRemoveTrack:()=>J,shimAddTrackRemoveTrackWithNative:()=>Y,shimGetDisplayMedia:()=>q,shimGetSendersWithDtmf:()=>z,shimGetStats:()=>$,shimGetUserMedia:()=>G,shimMediaStream:()=>H,shimOnTrack:()=>W,shimPeerConnection:()=>Q,shimSenderReceiverGetStats:()=>K});var i={};r.r(i),r.d(i,{shimGetDisplayMedia:()=>ne,shimGetUserMedia:()=>re,shimPeerConnection:()=>ie,shimReplaceTrack:()=>oe});var o={};r.r(o),r.d(o,{shimAddTransceiver:()=>he,shimCreateAnswer:()=>ge,shimCreateOffer:()=>me,shimGetDisplayMedia:()=>se,shimGetParameters:()=>ve,shimGetUserMedia:()=>ae,shimOnTrack:()=>ce,shimPeerConnection:()=>ue,shimRTCDataChannel:()=>pe,shimReceiverGetStats:()=>de,shimRemoveStream:()=>fe,shimSenderGetStats:()=>le});var a={};r.r(a),r.d(a,{shimAudioContext:()=>Ie,shimCallbacksAPI:()=>Se,shimConstraints:()=>be,shimCreateOfferLegacy:()=>we,shimGetUserMedia:()=>_e,shimLocalStreamsAPI:()=>ye,shimRTCIceServerUrls:()=>Re,shimRemoteStreamsAPI:()=>Ee,shimTrackEventTransceiver:()=>Te});var s={};r.r(s),r.d(s,{removeExtmapAllowMixed:()=>Le,shimAddIceCandidateNullOrEmpty:()=>Pe,shimConnectionState:()=>Ne,shimMaxMessageSize:()=>Oe,shimRTCIceCandidate:()=>Ce,shimSendThrowTypeError:()=>ke});var c={};r.r(c),r.d(c,{ALERT:()=>rt,ALTERNATE_REDIRECT_TRUE:()=>Gr,ANSWER:()=>nt,API:()=>gn,AUDIO:()=>Xe,AUDIO_INPUT:()=>et,AUDIO_STATUS:()=>tt,AVAILABLE_RESOLUTIONS:()=>ai,BNR_STATUS:()=>vi,CALENDAR:()=>st,CALENDAR_EVENTS:()=>yn,CALENDAR_EVENTS_API:()=>ct,CALL:()=>it,CALL_REMOVED_REASON:()=>wn,CLAIM:()=>lt,CMR_MEETINGS:()=>ut,COMPLETE:()=>pt,CONNECTION_STATE:()=>Mn,CONTENT:()=>ft,CONTROLS:()=>dt,CONVERSATION_SERVICE:()=>Jr,CONVERSATION_URL:()=>at,CORRELATION_ID:()=>ot,DECLINE:()=>gt,DEFAULT_EXCLUDED_STATS:()=>Xr,DEFAULT_GET_STATS_FILTER:()=>En,DEVELOPMENT:()=>mt,DIALER_REGEX:()=>ln,DISPLAY_HINTS:()=>Vn,EMBEDDED_APP_TYPES:()=>mi,END:()=>Ct,ENDED:()=>Et,ERROR:()=>yt,ERROR_DICTIONARY:()=>Cn,EVENTS:()=>xn,EVENT_TRIGGERS:()=>bn,EVENT_TYPES:()=>Rn,FLOOR_ACTION:()=>On,FULL_STATE:()=>kn,GATHERING:()=>vt,HECATE:()=>_t,HOST:()=>bt,HTTPS_PROTOCOL:()=>qr,HTTP_VERBS:()=>Nn,ICE_FAIL_TIMEOUT:()=>an,ICE_GATHERING_STATE:()=>Ln,ICE_STATE:()=>Pn,ICE_TIMEOUT:()=>on,INTENT_TO_JOIN:()=>nn,IPV4_REGEX:()=>dn,JOIN:()=>Rt,LAYOUT_TYPES:()=>en,LEAVE:()=>Tt,LIVE:()=>wt,LOCAL:()=>It,LOCI:()=>xt,LOCUS:()=>Dn,LOCUSEVENT:()=>jn,LOCUSINFO:()=>Un,LOCUS_URL:()=>At,MAX_RANDOM_DELAY_FOR_MEETING_INFO:()=>Ot,MEDIA:()=>Pt,MEDIA_DEVICES:()=>li,MEDIA_PEER_CONNECTION_NAME:()=>Wr,MEDIA_STATE:()=>An,MEDIA_TRACK_CONSTRAINT:()=>Fn,MEET:()=>Nt,MEETINGINFO:()=>kt,MEETINGS:()=>Hr,MEETING_AUDIO_STATE_MACHINE:()=>Wn,MEETING_END_REASON:()=>Zn,MEETING_ERRORS:()=>Bn,MEETING_INFO_FAILURE_REASON:()=>hi,MEETING_REMOVED_REASON:()=>Tn,MEETING_STATE:()=>qn,MEETING_STATE_MACHINE:()=>Hn,MEETING_VIDEO_STATE_MACHINE:()=>zn,MEET_M:()=>Lt,METRICS_JOIN_TIMES_MAX_DURATION:()=>di,MODERATOR_FALSE:()=>rn,MODERATOR_TRUE:()=>tn,MQA_INTEVAL:()=>ui,MQA_STATS:()=>ii,MediaContent:()=>Xn,NETWORK_STATUS:()=>ti,NETWORK_TYPE:()=>ri,OFFER:()=>St,OFFLINE:()=>Mt,ONLINE:()=>Dt,PARTICIPANT:()=>Ut,PARTICIPANT_DELTAS:()=>Vr,PASSWORD_STATUS:()=>pi,PC_BAIL_TIMEOUT:()=>un,PEER_CONNECTION_STATE:()=>$n,PROVISIONAL_TYPE_DIAL_IN:()=>jt,PROVISIONAL_TYPE_DIAL_OUT:()=>Ft,PSTN_STATUS:()=>fi,QUALITY_LEVELS:()=>oi,REACHABILITY:()=>Jn,READY:()=>Zt,RECONNECTION:()=>Kn,RECORDING_STATE:()=>Sn,REMOTE:()=>Bt,REMOTE_VIDEO_CONSTRAINTS:()=>ci,RESOURCE:()=>Yn,RETRY_TIMEOUT:()=>sn,ROAP:()=>Qn,ROAP_SEQ_PRE:()=>cn,SDP:()=>ei,SELF_ROLES:()=>Gn,SENDRECV:()=>Gt,SEND_DTMF_ENDPOINT:()=>Vt,SHARE:()=>Ht,SHARE_PEER_CONNECTION_NAME:()=>zr,SHARE_STATUS:()=>_n,SHARE_STOPPED_REASON:()=>In,SIP_URI:()=>qt,STATS:()=>ni,TYPE:()=>Wt,USE_URI_LOOKUP_FALSE:()=>$r,UUID_REG:()=>mn,VALID_EMAIL_ADDRESS:()=>fn,VALID_PIN:()=>vn,VALID_PMR_ADDRESS:()=>pn,VALID_PMR_LINK:()=>hn,VIDEO:()=>zt,VIDEO_INPUT:()=>$t,VIDEO_RESOLUTIONS:()=>si,VIDEO_STATUS:()=>Kt,WBXAPPAPI_SERVICE:()=>Qr,WEBEX_DOT_COM:()=>Yr,WHITEBOARD:()=>ht,WWW_DOT:()=>Kr,_ACTIVE_:()=>Jt,_ANSWER_:()=>Yt,_CALL_:()=>Qt,_CONFLICT_:()=>er,_CONVERSATION_URL_:()=>tr,_CREATED_:()=>Xt,_ERROR_:()=>rr,_FORCED_:()=>nr,_IDLE_:()=>ir,_ID_:()=>ur,_INACTIVE_:()=>Pr,_INCOMING_:()=>sr,_IN_:()=>cr,_IN_LOBBY_:()=>or,_IN_MEETING_:()=>ar,_JOINED_:()=>dr,_JOIN_:()=>lr,_LEFT_:()=>pr,_LOCUS_ID_:()=>fr,_MEETING_:()=>mr,_MEETING_CENTER_:()=>gr,_MEETING_ID_:()=>yr,_MEETING_LINK_:()=>hr,_MEETING_UUID_:()=>vr,_MOVE_MEDIA_:()=>Zr,_NONE_:()=>Sr,_NOT_IN_MEETING_:()=>Er,_OBSERVE_:()=>br,_OFFER_:()=>_r,_PEOPLE_:()=>Tr,_PERSONAL_ROOM_:()=>Rr,_RECEIVE_ONLY_:()=>xr,_REMOVE_:()=>Ar,_REQUESTED_:()=>wr,_RESOURCE_ROOM_:()=>Ir,_ROOM_:()=>Cr,_SEND_ONLY_:()=>Lr,_SEND_RECEIVE_:()=>Nr,_SIP_BRIDGE_:()=>Or,_SIP_URI_:()=>kr,_SLIDES_:()=>Mr,_S_LINE:()=>Dr,_UNKNOWN_:()=>jr,_USER_:()=>Ur,_WAIT_:()=>Br,_WEBEX_MEETING_:()=>Fr});var u=r(21105),l=r(63755),d=r.n(l),f=r(66250),p=r(8167),h=r(31314),v=r(23710),m=r(69678),g=r(26305),y=r(35002),E=r(77193),S=r(33453),_=r.n(S),b=r(73473),R=r.n(b),T=r(66130),w=r.n(T),I=r(26243),x=r.n(I),A=r(18433),C=r.n(A);r(21408);let O=!0,k=!0;function N(e,t,r){const n=e.match(t);return n&&n.length>=r&&parseInt(n[r],10)}function L(e,t,r){if(!e.RTCPeerConnection)return;const n=e.RTCPeerConnection.prototype,i=n.addEventListener;n.addEventListener=function(e,n){if(e!==t)return i.apply(this,arguments);const o=e=>{const t=r(e);t&&(n.handleEvent?n.handleEvent(t):n(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(n,o),i.apply(this,[e,o])};const o=n.removeEventListener;n.removeEventListener=function(e,r){if(e!==t||!this._eventMap||!this._eventMap[t])return o.apply(this,arguments);if(!this._eventMap[t].has(r))return o.apply(this,arguments);const n=this._eventMap[t].get(r);return this._eventMap[t].delete(r),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,o.apply(this,[e,n])},Object.defineProperty(n,"on"+t,{get(){return this["_on"+t]},set(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0})}function P(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(O=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function M(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(k=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function D(){if("object"==typeof window){if(O)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}}function U(e,t){k&&console.warn(e+" is deprecated, please use "+t+" instead.")}function j(e){return"[object Object]"===Object.prototype.toString.call(e)}function F(e){return j(e)?Object.keys(e).reduce((function(t,r){const n=j(e[r]),i=n?F(e[r]):e[r],o=n&&!Object.keys(i).length;return void 0===i||o?t:Object.assign(t,{[r]:i})}),{}):e}function B(e,t,r){t&&!r.has(t.id)&&(r.set(t.id,t),Object.keys(t).forEach((n=>{n.endsWith("Id")?B(e,e.get(t[n]),r):n.endsWith("Ids")&&t[n].forEach((t=>{B(e,e.get(t),r)}))})))}function Z(e,t,r){const n=r?"outbound-rtp":"inbound-rtp",i=new Map;if(null===t)return i;const o=[];return e.forEach((e=>{"track"===e.type&&e.trackIdentifier===t.id&&o.push(e)})),o.forEach((t=>{e.forEach((r=>{r.type===n&&r.trackId===t.id&&B(e,r,i)}))})),i}const V=D;function G(e,t){const r=e&&e.navigator;if(!r.mediaDevices)return;const n=function(e){if("object"!=typeof e||e.mandatory||e.optional)return e;const t={};return Object.keys(e).forEach((r=>{if("require"===r||"advanced"===r||"mediaSource"===r)return;const n="object"==typeof e[r]?e[r]:{ideal:e[r]};void 0!==n.exact&&"number"==typeof n.exact&&(n.min=n.max=n.exact);const i=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==n.ideal){t.optional=t.optional||[];let e={};"number"==typeof n.ideal?(e[i("min",r)]=n.ideal,t.optional.push(e),e={},e[i("max",r)]=n.ideal,t.optional.push(e)):(e[i("",r)]=n.ideal,t.optional.push(e))}void 0!==n.exact&&"number"!=typeof n.exact?(t.mandatory=t.mandatory||{},t.mandatory[i("",r)]=n.exact):["min","max"].forEach((e=>{void 0!==n[e]&&(t.mandatory=t.mandatory||{},t.mandatory[i(e,r)]=n[e])}))})),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},i=function(e,i){if(t.version>=61)return i(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"==typeof e.audio){const t=function(e,t,r){t in e&&!(r in e)&&(e[r]=e[t],delete e[t])};t((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),t(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=n(e.audio)}if(e&&"object"==typeof e.video){let o=e.video.facingMode;o=o&&("object"==typeof o?o:{ideal:o});const a=t.version<66;if(o&&("user"===o.exact||"environment"===o.exact||"user"===o.ideal||"environment"===o.ideal)&&(!r.mediaDevices.getSupportedConstraints||!r.mediaDevices.getSupportedConstraints().facingMode||a)){let t;if(delete e.video.facingMode,"environment"===o.exact||"environment"===o.ideal?t=["back","rear"]:"user"!==o.exact&&"user"!==o.ideal||(t=["front"]),t)return r.mediaDevices.enumerateDevices().then((r=>{let a=(r=r.filter((e=>"videoinput"===e.kind))).find((e=>t.some((t=>e.label.toLowerCase().includes(t)))));return!a&&r.length&&t.includes("back")&&(a=r[r.length-1]),a&&(e.video.deviceId=o.exact?{exact:a.deviceId}:{ideal:a.deviceId}),e.video=n(e.video),V("chrome: "+JSON.stringify(e)),i(e)}))}e.video=n(e.video)}return V("chrome: "+JSON.stringify(e)),i(e)},o=function(e){return t.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}};if(r.getUserMedia=function(e,t,n){i(e,(e=>{r.webkitGetUserMedia(e,t,(e=>{n&&n(o(e))}))}))}.bind(r),r.mediaDevices.getUserMedia){const e=r.mediaDevices.getUserMedia.bind(r.mediaDevices);r.mediaDevices.getUserMedia=function(t){return i(t,(t=>e(t).then((e=>{if(t.audio&&!e.getAudioTracks().length||t.video&&!e.getVideoTracks().length)throw e.getTracks().forEach((e=>{e.stop()})),new DOMException("","NotFoundError");return e}),(e=>Promise.reject(o(e))))))}}}function q(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&("function"==typeof t?e.navigator.mediaDevices.getDisplayMedia=function(r){return t(r).then((t=>{const n=r.video&&r.video.width,i=r.video&&r.video.height,o=r.video&&r.video.frameRate;return r.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:o||3}},n&&(r.video.mandatory.maxWidth=n),i&&(r.video.mandatory.maxHeight=i),e.navigator.mediaDevices.getUserMedia(r)}))}:console.error("shimGetDisplayMedia: getSourceId argument is not a function"))}function H(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function W(e){if("object"==typeof e&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=t=>{t.stream.addEventListener("addtrack",(r=>{let n;n=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find((e=>e.track&&e.track.id===r.track.id)):{track:r.track};const i=new Event("track");i.track=r.track,i.receiver=n,i.transceiver={receiver:n},i.streams=[t.stream],this.dispatchEvent(i)})),t.stream.getTracks().forEach((r=>{let n;n=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find((e=>e.track&&e.track.id===r.id)):{track:r};const i=new Event("track");i.track=r,i.receiver=n,i.transceiver={receiver:n},i.streams=[t.stream],this.dispatchEvent(i)}))},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else L(e,"track",(e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e)))}function z(e){if("object"==typeof e&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(e,t){return{track:t,get dtmf(){return void 0===this._dtmf&&("audio"===t.kind?this._dtmf=e.createDTMFSender(t):this._dtmf=null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const r=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){let i=r.apply(this,arguments);return i||(i=t(this,e),this._senders.push(i)),i};const n=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){n.apply(this,arguments);const t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._senders=this._senders||[],r.apply(this,[e]),e.getTracks().forEach((e=>{this._senders.push(t(this,e))}))};const n=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._senders=this._senders||[],n.apply(this,[e]),e.getTracks().forEach((e=>{const t=this._senders.find((t=>t.track===e));t&&this._senders.splice(this._senders.indexOf(t),1)}))}}else if("object"==typeof e&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function $(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,r,n]=arguments;if(arguments.length>0&&"function"==typeof e)return t.apply(this,arguments);if(0===t.length&&(0===arguments.length||"function"!=typeof e))return t.apply(this,[]);const i=function(e){const t={};return e.result().forEach((e=>{const r={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach((t=>{r[t]=e.stat(t)})),t[r.id]=r})),t},o=function(e){return new Map(Object.keys(e).map((t=>[t,e[t]])))};if(arguments.length>=2){const n=function(e){r(o(i(e)))};return t.apply(this,[n,e])}return new Promise(((e,r)=>{t.apply(this,[function(t){e(o(i(t)))},r])})).then(r,n)}}function K(e){if(!("object"==typeof e&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e});const r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=r.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){const e=this;return this._pc.getStats().then((t=>Z(t,e.track,!0)))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e}),L(e,"track",(e=>(e.receiver._pc=e.srcElement,e))),e.RTCRtpReceiver.prototype.getStats=function(){const e=this;return this._pc.getStats().then((t=>Z(t,e.track,!1)))}}if(!("getStats"in e.RTCRtpSender.prototype)||!("getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const e=arguments[0];let t,r,n;return this.getSenders().forEach((r=>{r.track===e&&(t?n=!0:t=r)})),this.getReceivers().forEach((t=>(t.track===e&&(r?n=!0:r=t),t.track===e))),n||t&&r?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):t?t.getStats():r?r.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function Y(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map((e=>this._shimmedLocalStreams[e][0]))};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,r){if(!r)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const n=t.apply(this,arguments);return this._shimmedLocalStreams[r.id]?-1===this._shimmedLocalStreams[r.id].indexOf(n)&&this._shimmedLocalStreams[r.id].push(n):this._shimmedLocalStreams[r.id]=[r,n],n};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach((e=>{if(this.getSenders().find((t=>t.track===e)))throw new DOMException("Track already exists.","InvalidAccessError")}));const t=this.getSenders();r.apply(this,arguments);const n=this.getSenders().filter((e=>-1===t.indexOf(e)));this._shimmedLocalStreams[e.id]=[e].concat(n)};const n=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],n.apply(this,arguments)};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach((t=>{const r=this._shimmedLocalStreams[t].indexOf(e);-1!==r&&this._shimmedLocalStreams[t].splice(r,1),1===this._shimmedLocalStreams[t].length&&delete this._shimmedLocalStreams[t]})),i.apply(this,arguments)}}function J(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return Y(e);const r=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const e=r.apply(this);return this._reverseStreams=this._reverseStreams||{},e.map((e=>this._reverseStreams[e.id]))};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach((e=>{if(this.getSenders().find((t=>t.track===e)))throw new DOMException("Track already exists.","InvalidAccessError")})),!this._reverseStreams[t.id]){const r=new e.MediaStream(t.getTracks());this._streams[t.id]=r,this._reverseStreams[r.id]=t,t=r}n.apply(this,[t])};const i=e.RTCPeerConnection.prototype.removeStream;function o(e,t){let r=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((t=>{const n=e._reverseStreams[t],i=e._streams[n.id];r=r.replace(new RegExp(i.id,"g"),n.id)})),new RTCSessionDescription({type:t.type,sdp:r})}e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,r){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const n=[].slice.call(arguments,1);if(1!==n.length||!n[0].getTracks().find((e=>e===t)))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find((e=>e.track===t)))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const i=this._streams[r.id];if(i)i.addTrack(t),Promise.resolve().then((()=>{this.dispatchEvent(new Event("negotiationneeded"))}));else{const n=new e.MediaStream([t]);this._streams[r.id]=n,this._reverseStreams[n.id]=r,this.addStream(n)}return this.getSenders().find((e=>e.track===t))},["createOffer","createAnswer"].forEach((function(t){const r=e.RTCPeerConnection.prototype[t],n={[t](){const e=arguments;return arguments.length&&"function"==typeof arguments[0]?r.apply(this,[t=>{const r=o(this,t);e[0].apply(null,[r])},t=>{e[1]&&e[1].apply(null,t)},arguments[2]]):r.apply(this,arguments).then((e=>o(this,e)))}};e.RTCPeerConnection.prototype[t]=n[t]}));const a=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=function(e,t){let r=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((t=>{const n=e._reverseStreams[t],i=e._streams[n.id];r=r.replace(new RegExp(n.id,"g"),i.id)})),new RTCSessionDescription({type:t.type,sdp:r})}(this,arguments[0]),a.apply(this,arguments)):a.apply(this,arguments)};const s=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const e=s.get.apply(this);return""===e.type?e:o(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(e._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");let t;this._streams=this._streams||{},Object.keys(this._streams).forEach((r=>{this._streams[r].getTracks().find((t=>e.track===t))&&(t=this._streams[r])})),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function Q(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const r=e.RTCPeerConnection.prototype[t],n={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=n[t]}))}function X(e,t){L(e,"negotiationneeded",(e=>{const r=e.target;if(!(t.version<72||r.getConfiguration&&"plan-b"===r.getConfiguration().sdpSemantics)||"stable"===r.signalingState)return e}))}var ee=r(62539),te=r.n(ee);function re(e){const t=e&&e.navigator,r=t.mediaDevices.getUserMedia.bind(t.mediaDevices);t.mediaDevices.getUserMedia=function(e){return r(e).catch((e=>Promise.reject(function(e){return{name:{PermissionDeniedError:"NotAllowedError"}[e.name]||e.name,message:e.message,constraint:e.constraint,toString(){return this.name}}}(e))))}}function ne(e){"getDisplayMedia"in e.navigator&&e.navigator.mediaDevices&&(e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||(e.navigator.mediaDevices.getDisplayMedia=e.navigator.getDisplayMedia.bind(e.navigator)))}function ie(e,t){if(e.RTCIceGatherer&&(e.RTCIceCandidate||(e.RTCIceCandidate=function(e){return e}),e.RTCSessionDescription||(e.RTCSessionDescription=function(e){return e}),t.version<15025)){const t=Object.getOwnPropertyDescriptor(e.MediaStreamTrack.prototype,"enabled");Object.defineProperty(e.MediaStreamTrack.prototype,"enabled",{set(e){t.set.call(this,e);const r=new Event("enabled");r.enabled=e,this.dispatchEvent(r)}})}e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)&&Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=new e.RTCDtmfSender(this):"video"===this.track.kind&&(this._dtmf=null)),this._dtmf}}),e.RTCDtmfSender&&!e.RTCDTMFSender&&(e.RTCDTMFSender=e.RTCDtmfSender);const r=te()(e,t.version);e.RTCPeerConnection=function(e){return e&&e.iceServers&&(e.iceServers=function(e,t){let r=!1;return(e=JSON.parse(JSON.stringify(e))).filter((e=>{if(e&&(e.urls||e.url)){let t=e.urls||e.url;e.url&&!e.urls&&U("RTCIceServer.url","RTCIceServer.urls");const n="string"==typeof t;return n&&(t=[t]),t=t.filter((e=>{if(0===e.indexOf("stun:"))return!1;const t=e.startsWith("turn")&&!e.startsWith("turn:[")&&e.includes("transport=udp");return t&&!r?(r=!0,!0):t&&!r})),delete e.url,e.urls=n?t[0]:t,!!t.length}}))}(e.iceServers,t.version),D("ICE servers after filtering:",e.iceServers)),new r(e)},e.RTCPeerConnection.prototype=r.prototype}function oe(e){e.RTCRtpSender&&!("replaceTrack"in e.RTCRtpSender.prototype)&&(e.RTCRtpSender.prototype.replaceTrack=e.RTCRtpSender.prototype.setTrack)}function ae(e,t){const r=e&&e.navigator,n=e&&e.MediaStreamTrack;if(r.getUserMedia=function(e,t,n){U("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),r.mediaDevices.getUserMedia(e).then(t,n)},!(t.version>55&&"autoGainControl"in r.mediaDevices.getSupportedConstraints())){const e=function(e,t,r){t in e&&!(r in e)&&(e[r]=e[t],delete e[t])},t=r.mediaDevices.getUserMedia.bind(r.mediaDevices);if(r.mediaDevices.getUserMedia=function(r){return"object"==typeof r&&"object"==typeof r.audio&&(r=JSON.parse(JSON.stringify(r)),e(r.audio,"autoGainControl","mozAutoGainControl"),e(r.audio,"noiseSuppression","mozNoiseSuppression")),t(r)},n&&n.prototype.getSettings){const t=n.prototype.getSettings;n.prototype.getSettings=function(){const r=t.apply(this,arguments);return e(r,"mozAutoGainControl","autoGainControl"),e(r,"mozNoiseSuppression","noiseSuppression"),r}}if(n&&n.prototype.applyConstraints){const t=n.prototype.applyConstraints;n.prototype.applyConstraints=function(r){return"audio"===this.kind&&"object"==typeof r&&(r=JSON.parse(JSON.stringify(r)),e(r,"autoGainControl","mozAutoGainControl"),e(r,"noiseSuppression","mozNoiseSuppression")),t.apply(this,[r])}}}}function se(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(r){if(!r||!r.video){const e=new DOMException("getDisplayMedia without video constraints is undefined");return e.name="NotFoundError",e.code=8,Promise.reject(e)}return!0===r.video?r.video={mediaSource:t}:r.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(r)})}function ce(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function ue(e,t){if("object"!=typeof e||!e.RTCPeerConnection&&!e.mozRTCPeerConnection)return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const r=e.RTCPeerConnection.prototype[t],n={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=n[t]}));const r={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},n=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,i,o]=arguments;return n.apply(this,[e||null]).then((e=>{if(t.version<53&&!i)try{e.forEach((e=>{e.type=r[e.type]||e.type}))}catch(t){if("TypeError"!==t.name)throw t;e.forEach(((t,n)=>{e.set(n,Object.assign({},t,{type:r[t.type]||t.type}))}))}return e})).then(i,o)}}function le(e){if("object"!=typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e});const r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=r.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function de(e){if("object"!=typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e}),L(e,"track",(e=>(e.receiver._pc=e.srcElement,e))),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function fe(e){e.RTCPeerConnection&&!("removeStream"in e.RTCPeerConnection.prototype)&&(e.RTCPeerConnection.prototype.removeStream=function(e){U("removeStream","removeTrack"),this.getSenders().forEach((t=>{t.track&&e.getTracks().includes(t.track)&&this.removeTrack(t)}))})}function pe(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function he(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];const e=arguments[1],r=e&&"sendEncodings"in e;r&&e.sendEncodings.forEach((e=>{if("rid"in e){if(!/^[a-z0-9]{0,16}$/i.test(e.rid))throw new TypeError("Invalid RID value provided.")}if("scaleResolutionDownBy"in e&&!(parseFloat(e.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in e&&!(parseFloat(e.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")}));const n=t.apply(this,arguments);if(r){const{sender:t}=n,r=t.getParameters();(!("encodings"in r)||1===r.encodings.length&&0===Object.keys(r.encodings[0]).length)&&(r.encodings=e.sendEncodings,t.sendEncodings=e.sendEncodings,this.setParametersPromises.push(t.setParameters(r).then((()=>{delete t.sendEncodings})).catch((()=>{delete t.sendEncodings}))))}return n})}function ve(e){if("object"!=typeof e||!e.RTCRtpSender)return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const e=t.apply(this,arguments);return"encodings"in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e})}function me(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((()=>t.apply(this,arguments))).finally((()=>{this.setParametersPromises=[]})):t.apply(this,arguments)}}function ge(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((()=>t.apply(this,arguments))).finally((()=>{this.setParametersPromises=[]})):t.apply(this,arguments)}}function ye(e){if("object"==typeof e&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach((r=>t.call(this,r,e))),e.getVideoTracks().forEach((r=>t.call(this,r,e)))},e.RTCPeerConnection.prototype.addTrack=function(e,...r){return r&&r.forEach((e=>{this._localStreams?this._localStreams.includes(e)||this._localStreams.push(e):this._localStreams=[e]})),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){this._localStreams||(this._localStreams=[]);const t=this._localStreams.indexOf(e);if(-1===t)return;this._localStreams.splice(t,1);const r=e.getTracks();this.getSenders().forEach((e=>{r.includes(e.track)&&this.removeTrack(e)}))})}}function Ee(e){if("object"==typeof e&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(e){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=e=>{e.streams.forEach((e=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(e))return;this._remoteStreams.push(e);const t=new Event("addstream");t.stream=e,this.dispatchEvent(t)}))})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach((t=>{if(e._remoteStreams||(e._remoteStreams=[]),e._remoteStreams.indexOf(t)>=0)return;e._remoteStreams.push(t);const r=new Event("addstream");r.stream=t,e.dispatchEvent(r)}))}),t.apply(e,arguments)}}}function Se(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,r=t.createOffer,n=t.createAnswer,i=t.setLocalDescription,o=t.setRemoteDescription,a=t.addIceCandidate;t.createOffer=function(e,t){const n=arguments.length>=2?arguments[2]:arguments[0],i=r.apply(this,[n]);return t?(i.then(e,t),Promise.resolve()):i},t.createAnswer=function(e,t){const r=arguments.length>=2?arguments[2]:arguments[0],i=n.apply(this,[r]);return t?(i.then(e,t),Promise.resolve()):i};let s=function(e,t,r){const n=i.apply(this,[e]);return r?(n.then(t,r),Promise.resolve()):n};t.setLocalDescription=s,s=function(e,t,r){const n=o.apply(this,[e]);return r?(n.then(t,r),Promise.resolve()):n},t.setRemoteDescription=s,s=function(e,t,r){const n=a.apply(this,[e]);return r?(n.then(t,r),Promise.resolve()):n},t.addIceCandidate=s}function _e(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const e=t.mediaDevices,r=e.getUserMedia.bind(e);t.mediaDevices.getUserMedia=e=>r(be(e))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,r,n){t.mediaDevices.getUserMedia(e).then(r,n)}.bind(t))}function be(e){return e&&void 0!==e.video?Object.assign({},e,{video:F(e.video)}):e}function Re(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,r){if(e&&e.iceServers){const t=[];for(let r=0;r<e.iceServers.length;r++){let n=e.iceServers[r];!n.hasOwnProperty("urls")&&n.hasOwnProperty("url")?(U("RTCIceServer.url","RTCIceServer.urls"),n=JSON.parse(JSON.stringify(n)),n.urls=n.url,delete n.url,t.push(n)):t.push(e.iceServers[r])}e.iceServers=t}return new t(e,r)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:()=>t.generateCertificate})}function Te(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function we(e){const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){void 0!==e.offerToReceiveAudio&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);const t=this.getTransceivers().find((e=>"audio"===e.receiver.track.kind));!1===e.offerToReceiveAudio&&t?"sendrecv"===t.direction?t.setDirection?t.setDirection("sendonly"):t.direction="sendonly":"recvonly"===t.direction&&(t.setDirection?t.setDirection("inactive"):t.direction="inactive"):!0!==e.offerToReceiveAudio||t||this.addTransceiver("audio"),void 0!==e.offerToReceiveVideo&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);const r=this.getTransceivers().find((e=>"video"===e.receiver.track.kind));!1===e.offerToReceiveVideo&&r?"sendrecv"===r.direction?r.setDirection?r.setDirection("sendonly"):r.direction="sendonly":"recvonly"===r.direction&&(r.setDirection?r.setDirection("inactive"):r.direction="inactive"):!0!==e.offerToReceiveVideo||r||this.addTransceiver("video")}return t.apply(this,arguments)}}function Ie(e){"object"!=typeof e||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var xe=r(57539),Ae=r.n(xe);function Ce(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;const t=e.RTCIceCandidate;e.RTCIceCandidate=function(e){if("object"==typeof e&&e.candidate&&0===e.candidate.indexOf("a=")&&((e=JSON.parse(JSON.stringify(e))).candidate=e.candidate.substr(2)),e.candidate&&e.candidate.length){const r=new t(e),n=Ae().parseCandidate(e.candidate),i=Object.assign(r,n);return i.toJSON=function(){return{candidate:i.candidate,sdpMid:i.sdpMid,sdpMLineIndex:i.sdpMLineIndex,usernameFragment:i.usernameFragment}},i}return new t(e)},e.RTCIceCandidate.prototype=t.prototype,L(e,"icecandidate",(t=>(t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t)))}function Oe(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return void 0===this._sctp?null:this._sctp}});const r=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===t.browser&&t.version>=76){const{sdpSemantics:e}=this.getConfiguration();"plan-b"===e&&Object.defineProperty(this,"sctp",{get(){return void 0===this._sctp?null:this._sctp},enumerable:!0,configurable:!0})}if(function(e){if(!e||!e.sdp)return!1;const t=Ae().splitSections(e.sdp);return t.shift(),t.some((e=>{const t=Ae().parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP")}))}(arguments[0])){const e=function(e){const t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return-1;const r=parseInt(t[1],10);return r!=r?-1:r}(arguments[0]),r=function(e){let r=65536;return"firefox"===t.browser&&(r=t.version<57?-1===e?16384:2147483637:t.version<60?57===t.version?65535:65536:2147483637),r}(e),n=function(e,r){let n=65536;"firefox"===t.browser&&57===t.version&&(n=65535);const i=Ae().matchPrefix(e.sdp,"a=max-message-size:");return i.length>0?n=parseInt(i[0].substr(19),10):"firefox"===t.browser&&-1!==r&&(n=2147483637),n}(arguments[0],e);let i;i=0===r&&0===n?Number.POSITIVE_INFINITY:0===r||0===n?Math.max(r,n):Math.min(r,n);const o={};Object.defineProperty(o,"maxMessageSize",{get:()=>i}),this._sctp=o}return r.apply(this,arguments)}}function ke(e){if(!e.RTCPeerConnection||!("createDataChannel"in e.RTCPeerConnection.prototype))return;function t(e,t){const r=e.send;e.send=function(){const n=arguments[0],i=n.length||n.size||n.byteLength;if("open"===e.readyState&&t.sctp&&i>t.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return r.apply(e,arguments)}}const r=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const e=r.apply(this,arguments);return t(e,this),e},L(e,"datachannel",(e=>(t(e.channel,e.target),e)))}function Ne(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(e){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=e)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach((e=>{const r=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=e=>{const t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;const r=new Event("connectionstatechange",e);t.dispatchEvent(r)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),r.apply(this,arguments)}}))}function Le(e,t){if(!e.RTCPeerConnection)return;if("chrome"===t.browser&&t.version>=71)return;if("safari"===t.browser&&t.version>=605)return;const r=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(t){if(t&&t.sdp&&-1!==t.sdp.indexOf("\na=extmap-allow-mixed")){const r=t.sdp.split("\n").filter((e=>"a=extmap-allow-mixed"!==e.trim())).join("\n");e.RTCSessionDescription&&t instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:t.type,sdp:r}):t.sdp=r}return r.apply(this,arguments)}}function Pe(e,t){if(!e.RTCPeerConnection||!e.RTCPeerConnection.prototype)return;const r=e.RTCPeerConnection.prototype.addIceCandidate;r&&0!==r.length&&(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?("chrome"===t.browser&&t.version<78||"firefox"===t.browser&&t.version<68||"safari"===t.browser)&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():r.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}!function({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimEdge:!0,shimSafari:!0}){const r=D,c=function(e){const t={browser:null,version:null};if(void 0===e||!e.navigator)return t.browser="Not a browser.",t;const{navigator:r}=e;if(r.mozGetUserMedia)t.browser="firefox",t.version=N(r.userAgent,/Firefox\/(\d+)\./,1);else if(r.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection&&!e.RTCIceGatherer)t.browser="chrome",t.version=N(r.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(r.mediaDevices&&r.userAgent.match(/Edge\/(\d+).(\d+)$/))t.browser="edge",t.version=N(r.userAgent,/Edge\/(\d+).(\d+)$/,2);else{if(!e.RTCPeerConnection||!r.userAgent.match(/AppleWebKit\/(\d+)\./))return t.browser="Not a supported browser.",t;t.browser="safari",t.version=N(r.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype}return t}(e),u={browserDetails:c,commonShim:s,extractVersion:N,disableLog:P,disableWarnings:M};switch(c.browser){case"chrome":if(!n||!Q||!t.shimChrome)return r("Chrome shim is not included in this adapter release."),u;if(null===c.version)return r("Chrome shim can not determine version, not shimming."),u;r("adapter.js shimming chrome."),u.browserShim=n,Pe(e,c),G(e,c),H(e),Q(e,c),W(e),J(e,c),z(e),$(e),K(e),X(e,c),Ce(e),Ne(e),Oe(e,c),ke(e),Le(e,c);break;case"firefox":if(!o||!ue||!t.shimFirefox)return r("Firefox shim is not included in this adapter release."),u;r("adapter.js shimming firefox."),u.browserShim=o,Pe(e,c),ae(e,c),ue(e,c),ce(e),fe(e),le(e),de(e),pe(e),he(e),ve(e),me(e),ge(e),Ce(e),Ne(e),Oe(e,c),ke(e);break;case"edge":if(!i||!ie||!t.shimEdge)return r("MS edge shim is not included in this adapter release."),u;r("adapter.js shimming edge."),u.browserShim=i,re(e),ne(e),ie(e,c),oe(e),Oe(e,c),ke(e);break;case"safari":if(!a||!t.shimSafari)return r("Safari shim is not included in this adapter release."),u;r("adapter.js shimming safari."),u.browserShim=a,Pe(e,c),Re(e),we(e),Se(e),ye(e),Ee(e),Te(e),_e(e),Ie(e),Ce(e),Oe(e,c),ke(e),Le(e,c);break;default:r("Unsupported browser!")}}({window:"undefined"==typeof window?void 0:window});var Me=r(64721),De=r.n(Me),Ue=r(89539),je=r.n(Ue),Fe=r(55877),Be=r.n(Fe),Ze=r(58908),Ve=r.n(Ze),Ge=r(93917),qe=r.n(Ge),He=r(3374),We={set:function(e){We.verboseEvents=e.verboseEvents,We.enable=e.enable}};const ze=We;var $e={logger:{info:function(e){console.error("LoggerProxy->info#NO LOGGER DEFINED")},log:function(e){console.error("LoggerProxy->log#NO LOGGER DEFINED")},error:function(e){console.error("LoggerProxy->error#NO LOGGER DEFINED")},warn:function(e){console.error("LoggerProxy->warn#NO LOGGER DEFINED")},trace:function(e){console.error("LoggerProxy->trace#NO LOGGER DEFINED")},debug:function(e){console.error("LoggerProxy->debug#NO LOGGER DEFINED")}},set:function(e){ze.enable?$e.logger=e:$e.logger={info:function(){},log:function(){},error:function(){},warn:function(){},trace:function(){},debug:function(){}}},get:function(){return $e.logger}};const Ke=$e;var Ye,Je,Qe=r(18408),Xe="audio",et="audioinput",tt="audioStatus",rt="alert",nt="answer",it="call",ot="correlationId",at="conversationUrl",st="calendar",ct="calendarEvents",ut="cmrmeetings",lt="claim",dt="controls",ft="content",pt="complete",ht="whiteboard",vt="gathering",mt="development",gt="decline",yt="error",Et="ended",St="offer",_t="hecate",bt="host",Rt="join",Tt="leave",wt="live",It="local",xt="loci",At="locusUrl",Ct="end",Ot=18e4,kt="meetingInfo",Nt="meet",Lt="m",Pt="media",Mt="offline",Dt="online",Ut="participant",jt="DIAL_IN",Ft="DIAL_OUT",Bt="remote",Zt="ready",Vt="sendDtmf",Gt="sendrecv",qt="sipUri",Ht="share",Wt="type",zt="video",$t="videoinput",Kt="videoStatus",Yt="ANSWER",Jt="ACTIVE",Qt="CALL",Xt="CREATED",er="CONFLICT",tr="CONVERSATION_URL",rr="ERROR",nr="FORCED",ir="IDLE",or="IN_LOBBY",ar="IN_MEETING",sr="INCOMING",cr="IN",ur="id",lr="JOIN",dr="JOINED",fr="LOCUS_ID",pr="LEFT",hr="MEETING_LINK",vr="MEETING_UUID",mr="MEETING",gr="MEETING_CENTER",yr="MEETING_ID",Er="NOT_IN_MEETING",Sr="NONE",_r="OFFER",br="OBSERVE",Rr="PERSONAL_ROOM",Tr=Qe.hydraTypes.PEOPLE,wr="REQUESTED",Ir="RESOURCE_ROOM",xr="RECVONLY",Ar="REMOVE",Cr=Qe.hydraTypes.ROOM,Or="SIP_BRIDGE",kr="SIP_URI",Nr="SENDRECV",Lr="SENDONLY",Pr="INACTIVE",Mr="SLIDES",Dr="s=-",Ur="USER",jr="UNKNOWN",Fr="WEBEX_MEETING",Br="WAIT",Zr="MOVE_MEDIA",Vr={TARGETS:{AUDIO:"audio",VIDEO:"video"},STATES:{DISABLED:"disabled",MUTED:"muted",UNKNOWN:"unknown",UNMUTED:"unmuted"}},Gr="alternateRedirect=true",qr="https://",Hr="Meetings",Wr="MediaPeerConnection",zr="SharePeerConnection",$r="useUriLookup=false",Kr="www.",Yr="webex.com",Jr="identityLookup",Qr="webex-appapi-service",Xr=["timestamp","ssrc","priority"],en=["Single","Equal","ActivePresence","Prominent","OnePlusN"],tn=!0,rn=!1,nn=[2423005,2423006,2423016,2423017,2423018],on=2e3,an=3e3,sn=3e3,cn=-1,un=8e3,ln={SIP_ADDRESS:/^(sips?)?:?(?:([^\s>:@]+)(?::([^\s@>]+))?@)([\w\-.]+)(?::(\d+))?((?:;[^\s=?>;]+(?:=[^\s?;]+)?)*)(?:\?(([^\s&=>]+=[^\s&=>]+)(&[^\s&=>]+=[^\s&=>]+)*))?$/,PHONE_NUMBER:/^(?:(?:\+?1\s*(?:[.-]\s*)?)?(?:\(\s*([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])\s*\)|([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9]))\s*(?:[.-]\s*)?)?([2-9]1[02-9]|[2-9][02-9]1|[2-9][02-9]{2})\s*(?:[.-]\s*)?([0-9]{4})(?:\s*(?:#|x\.?|ext\.?|extension)\s*(\d+))?$/,E164_FORMAT:/^\+[1-9]\d{1,14}$/},dn=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}|.local/g,fn=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,pn=/([a-z0-9][-a-z0-9, '.']{0,62})@([a-z0-9][-a-z0-9, '.']{0,62})\.webex\.com/i,hn=/(https:\/\/)?([a-z0-9][-a-z0-9, '.']{0,62})\.webex\.com\/(meet|join)\/([a-z0-9][-a-z0-9, '.']{0,62})\/?/i,vn=/([0-9]{4,6})/,mn=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,gn={CALLIOPEDISCOVERY:"calliopeDiscovery",LOCUS:"locus"},yn={CREATE:"event:calendar.meeting.create",UPDATE:"event:calendar.meeting.update",CREATE_MINIMAL:"event:calendar.meeting.create.minimal",UPDATE_MINIMAL:"event:calendar.meeting.update.minimal",DELETE:"event:calendar.meeting.delete"},En={types:["track","transport","candidate-pair","outbound-rtp","outboundrtp","inbound-rtp","inboundrtp","remote-inbound-rtp","remote-outbound-rtp","remote-candidate","local-candidate","media-source"]},Sn={RECORDING:"recording",IDLE:"idle",PAUSED:"paused",RESUMED:"resumed"},_n={NO_SHARE:"no_share",REMOTE_SHARE_ACTIVE:"remote_share_active",LOCAL_SHARE_ACTIVE:"local_share_active",WHITEBOARD_SHARE_ACTIVE:"whiteboard_share_active"},bn={MEETINGS_READY:"meetings:ready",MEETINGS_REGISTERED:"meetings:registered",MEETINGS_UNREGISTERED:"meetings:unregistered",MEDIA_READY:"media:ready",MEDIA_STOPPED:"media:stopped",MEDIA_UPDATE:"media:update",MEDIA_CODEC_MISSING:"media:codec:missing",MEDIA_CODEC_LOADED:"media:codec:loaded",MEETING_STARTED_SHARING_LOCAL:"meeting:startedSharingLocal",MEETING_STOPPED_SHARING_LOCAL:"meeting:stoppedSharingLocal",MEETING_STARTED_SHARING_REMOTE:"meeting:startedSharingRemote",MEETING_STOPPED_SHARING_REMOTE:"meeting:stoppedSharingRemote",MEETING_STARTED_SHARING_WHITEBOARD:"meeting:startedSharingWhiteboard",MEETING_STOPPED_SHARING_WHITEBOARD:"meeting:stoppedSharingWhiteboard",MEETING_MEDIA_LOCAL_STARTED:"meeting:media:local:start",MEETING_MEDIA_REMOTE_STARTED:"meeting:media:remote:start",MEETING_STARTED_RECORDING:"meeting:recording:started",MEETING_STOPPED_RECORDING:"meeting:recording:stopped",MEETING_STARTED_RECEIVING_TRANSCRIPTION:"meeting:receiveTranscription:started",MEETING_STOPPED_RECEIVING_TRANSCRIPTION:"meeting:receiveTranscription:stopped",MEETING_PAUSED_RECORDING:"meeting:recording:paused",MEETING_RESUMED_RECORDING:"meeting:recording:resumed",MEETING_ADDED:"meeting:added",MEETING_REMOVED:"meeting:removed",MEETING_RINGING:"meeting:ringing",MEETING_RINGING_STOP:"meeting:ringingStop",MEETING_SELF_LOBBY_WAITING:"meeting:self:lobbyWaiting",MEETING_SELF_GUEST_ADMITTED:"meeting:self:guestAdmitted",MEETING_SELF_MUTED_BY_OTHERS:"meeting:self:mutedByOthers",MEETING_SELF_UNMUTED_BY_OTHERS:"meeting:self:unmutedByOthers",MEETING_SELF_REQUESTED_TO_UNMUTE:"meeting:self:requestedToUnmute",MEETING_SELF_PHONE_AUDIO_UPDATE:"meeting:self:phoneAudioUpdate",MEETING_SELF_CANNOT_VIEW_PARTICIPANT_LIST:"meeting:self:cannotViewParticipantList",MEETING_SELF_IS_SHARING_BLOCKED:"meeting:self:isSharingBlocked",MEETING_CONTROLS_LAYOUT_UPDATE:"meeting:layout:update",MEETING_ENTRY_EXIT_TONE_UPDATE:"meeting:entryExitTone:update",MEMBERS_UPDATE:"members:update",MEMBERS_CONTENT_UPDATE:"members:content:update",MEMBERS_HOST_UPDATE:"members:host:update",MEMBERS_SELF_UPDATE:"members:self:update",MEETING_RECONNECTION_STARTING:"meeting:reconnectionStarting",MEETING_RECONNECTION_SUCCESS:"meeting:reconnectionSuccess",MEETING_RECONNECTION_FAILURE:"meeting:reconnectionFailure",MEETING_UNLOCKED:"meeting:unlocked",MEETING_LOCKED:"meeting:locked",MEETING_INFO_AVAILABLE:"meeting:meetingInfoAvailable",MEETING_LOG_UPLOAD_SUCCESS:"meeting:logUpload:success",MEETING_LOG_UPLOAD_FAILURE:"meeting:logUpload:failure",MEETING_ACTIONS_UPDATE:"meeting:actionsUpdate",MEETING_STATE_CHANGE:"meeting:stateChange",MEETING_MEETING_CONTAINER_UPDATE:"meeting:meetingContainer:update",MEETING_EMBEDDED_APPS_UPDATE:"meeting:embeddedApps:update",MEDIA_QUALITY:"media:quality",MEETINGS_NETWORK_DISCONNECTED:"network:disconnected",MEETINGS_NETWORK_CONNECTED:"network:connected",MEETING_SELF_LEFT:"meeting:self:left",NETWORK_QUALITY:"network:quality",MEDIA_NEGOTIATED:"media:negotiated"},Rn={SELF:"self",OTHER:"other",LOCAL:"local",REMOTE:"remote",REMOTE_AUDIO:"remoteAudio",REMOTE_VIDEO:"remoteVideo",REMOTE_SHARE:"remoteShare",LOCAL_SHARE:"localShare",ERROR:"error"},Tn={SELF_REMOVED:"SELF_REMOVED",FULLSTATE_REMOVED:"FULLSTATE_REMOVED",MEETING_INACTIVE_TERMINATING:"MEETING_INACTIVE_TERMINATING",CLIENT_LEAVE_REQUEST:"CLIENT_LEAVE_REQUEST",USER_ENDED_SHARE_STREAMS:"USER_ENDED_SHARE_STREAMS",NO_MEETINGS_TO_SYNC:"NO_MEETINGS_TO_SYNC",MEETING_CONNECTION_FAILED:"MEETING_CONNECTION_FAILED"},wn={CALL_INACTIVE:"CALL_INACTIVE",PARTNER_LEFT:"PARTNER_LEFT",SELF_LEFT:"SELF_LEFT"},In={SELF_STOPPED:"SELF_STOPPED",MEETING_REJOIN:"MEETING_REJOIN"},xn={ROAP_OK:"ROAP_OK",ROAP_ANSWER:"ROAP_ANSWER",SELF_UNADMITTED_GUEST:"SELF_UNADMITTED_GUEST",SELF_ADMITTED_GUEST:"SELF_ADMITTED_GUEST",MEDIA_INACTIVITY:"MEDIA_INACTIVITY",CONVERSATION_URL_UPDATE:"CONVERSATION_URL_UPDATE",DESTROY_MEETING:"DESTROY_MEETING",REQUEST_UPLOAD_LOGS:"REQUEST_UPLOAD_LOGS",REMOTE_RESPONSE:"REMOTE_RESPONSE",LOCUS_INFO_UPDATE_PARTICIPANTS:"LOCUS_INFO_UPDATE_PARTICIPANTS",LOCUS_INFO_UPDATE_HOST:"LOCUS_INFO_UPDATE_HOST",LOCUS_INFO_UPDATE_MEDIA_SHARES:"LOCUS_INFO_UPDATE_MEDIA_SHARES",LOCUS_INFO_UPDATE_SELF:"LOCUS_INFO_UPDATE_SELF",LOCUS_INFO_UPDATE_URL:"LOCUS_INFO_UPDATE_URL",LOCUS_INFO_CAN_ASSIGN_HOST:"LOCUS_INFO_CAN_ASSIGN_HOST",DISCONNECT_DUE_TO_INACTIVITY:"DISCONNECT_DUE_TO_INACTIVITY"},An={active:"active",inactive:"inactive"},Cn={PARAMETER:{NAME:"ParameterError",MESSAGE:"The parameters passed to the function, or object properties needed in the function were null, missing where required, or otherwise incorrect.",CODE:0},INTENT_TO_JOIN:{NAME:"IntentToJoinError",MESSAGE:"The meeting is locked. This is expected behavior. Call #join again with pin and/or moderator option",CODE:1},JOIN_MEETING:{NAME:"JoinMeetingError",MESSAGE:"There was an issue joining the meeting, meeting could be in a bad state.",CODE:2},RECONNECTION:{NAME:"ReconnectionError",MESSAGE:"There was an error in the reconnection flow, the meeting may not reconnect, disconnect and dial again.",CODE:3},MEDIA:{NAME:"MediaError",MESSAGE:"There was an error with media, the meeting may not have live audio, video or share.",CODE:4},PERMISSION:{NAME:"PermissionError",MESSAGE:"Not allowed to execute the function, some properties on server, or local client state do not allow you to complete this action.",CODE:5},STATS:{NAME:"StatsError",MESSAGE:"An error occurred with getStats, stats may not continue for this data stream.",CODE:6},PASSWORD:{NAME:"PasswordError",MESSAGE:"Password is required, please use verifyPassword()",CODE:7},CAPTCHA:{NAME:"CaptchaError",MESSAGE:"Captcha is required.",CODE:8}},On={GRANTED:"GRANTED",RELEASED:"RELEASED",ACCEPTED:"ACCEPTED"},kn={INITIALIZING:"INITIALIZING",INACTIVE:"INACTIVE",ACTIVE:"ACTIVE",TERMINATING:"TERMINATING",UNKNOWN:"UNKNOWN"},Nn={PUT:"PUT",POST:"POST",GET:"GET",PATCH:"PATCH"},Ln={NEW:"new",GATHERING:"gathering",COMPLETE:"complete"},Pn={CHECKING:"checking",CONNECTED:"connected",CLOSED:"closed",COMPLETED:"completed",FAILED:"failed",DISCONNECTED:"disconnected"},Mn={NEW:"new",CONNECTING:"connecting",CONNECTED:"connected",CLOSED:"closed",FAILED:"failed",DISCONNECTED:"disconnected"},Dn={STATE:{INACTIVE:"INACTIVE",ENDED:"ENDED",INITIALIZING:"INITIALIZING"},SEQUENCE:{UN_DEF:"undef",EMPTY:"empty",DEF:"def",NA:"na",RANGE_START:"rangeStart",RANGE_END:"rangeEnd"},SYNCDEBUG:"sync_debug"},Un={EVENTS:{CONTROLS_MEETING_LAYOUT_UPDATED:"CONTROLS_MEETING_LAYOUT_UPDATED",CONTROLS_RECORDING_UPDATED:"CONTROLS_RECORDING_UPDATED",CONTROLS_MEETING_TRANSCRIBE_UPDATED:"CONTROLS_MEETING_TRANSCRIBE_UPDATED",CONTROLS_MEETING_CONTAINER_UPDATED:"CONTROLS_MEETING_CONTAINER_UPDATED",CONTROLS_ENTRY_EXIT_TONE_UPDATED:"CONTROLS_ENTRY_EXIT_TONE_UPDATED",SELF_UNADMITTED_GUEST:"SELF_UNADMITTED_GUEST",SELF_ADMITTED_GUEST:"SELF_ADMITTED_GUEST",SELF_REMOTE_MUTE_STATUS_UPDATED:"SELF_REMOTE_MUTE_STATUS_UPDATED",LOCAL_UNMUTE_REQUESTED:"LOCAL_UNMUTE_REQUESTED",LOCAL_UNMUTE_REQUIRED:"LOCAL_UNMUTE_REQUIRED",SELF_MODERATOR_CHANGED:"SELF_MODERATOR_CHANGED",MEETING_UPDATE:"MEETING_UPDATE",MEDIA_STATUS_CHANGE:"MEDIA_STATUS_CHANGE",FULL_STATE_TYPE_UPDATE:"FULL_STATE_TYPE_UPDATE",FULL_STATE_MEETING_STATE_CHANGE:"FULL_STATE_MEETING_STATE_CHANGE",MEETING_STATE_CHANGE_TO_ACTIVE:"MEETING_STATE_CHANGE_TO_ACTIVE",MEETING_INFO_UPDATED:"MEETING_INFO_UPDATED",MEETING_LOCKED:"MEETING_LOCKED",MEETING_UNLOCKED:"MEETING_UNLOCKED",SELF_OBSERVING:"SELF_OBSERVING",DISCONNECT_DUE_TO_INACTIVITY:"DISCONNECT_DUE_TO_INACTIVITY",EMBEDDED_APPS_UPDATED:"EMBEDDED_APPS_UPDATED",SELF_CANNOT_VIEW_PARTICIPANT_LIST_CHANGE:"SELF_CANNOT_VIEW_PARTICIPANT_LIST_CHANGE",SELF_IS_SHARING_BLOCKED_CHANGE:"SELF_IS_SHARING_BLOCKED_CHANGE",LINKS_SERVICES:"LINKS_SERVICES"}},jn={LOCUS_MERCURY:"event:locus",CONTROLS_UPDATED:"locus.controls_updated",DIFFERENCE:"locus.difference",FLOOR_GRANTED:"locus.floor_granted",FLOOR_RELEASED:"locus.floor_released",MESSAGE_ROAP:"locus.message.roap",PARTICIPANT_JOIN:"locus.participant_joined",PARTICIPANT_LEFT:"locus.participant_left",PARTICIPANT_DECLINED:"locus.participant_declined",PARTICIPANT_UPDATED:"locus.participant_updated",PARTICIPANT_CONTROLS_UPDATED:"locus.participant_controls_updated",PARTICIPANT_ROLES_UPDATED:"locus.participant_roles_updated",PARTICIPANT_AUDIO_MUTED:"locus.participant_audio_muted",PARTICIPANT_AUDIO_UNMUTED:"locus.participant_audio_unmuted",PARTICIPANT_VIDEO_MUTED:"locus.participant_video_muted",PARTICIPANT_VIDEO_UNMUTED:"locus.participant_video_unmuted",RECORDING_STARTED:"locus.recording_started",RECORDING_START_FAILED:"locus.recording_start_failed",RECORDING_STOPPED:"locus.recording_stopped",SELF_CHANGED:"locus.self_changed"},Fn={CURSOR:{AWLAYS:"always",MOTION:"motion",NEVER:"never"}},Bn={METRICS_NOT_SERVER_OR_CLIENT_EXCEPTION:"METRICS_NOT_SERVER_OR_CLIENT_EXCEPTION",BIDIRECTIONAL_ROSTER_NOT_ALLOWED:"BIDIRECTIONAL_ROSTER_NOT_ALLOWED",INVALID_LOCUS_URL:"INVALID_LOCUS_URL",ARGUMENT_NULL_OR_EMPTY:"ARGUMENT_NULL_OR_EMPTY",INVALID_USER:"INVALID_USER",INVALID_PHONE_NUMBER_OR_COUNTRY_CODE:"INVALID_PHONE_NUMBER_OR_COUNTRY_CODE",EMPTY_PHONE_NUMBER_OR_COUNTRY_CODE:"EMPTY_PHONE_NUMBER_OR_COUNTRY_CODE",PHONE_NUMBER_INVALID_COUNTRY_CODE:"PHONE_NUMBER_INVALID_COUNTRY_CODE",PHONE_NUMBER_NOT_A_NUMBER:"PHONE_NUMBER_NOT_A_NUMBER",PHONE_NUMBER_TOO_SHORT_AFTER_IDD:"PHONE_NUMBER_TOO_SHORT_AFTER_IDD",PHONE_NUMBER_TOO_SHORT_NSN:"PHONE_NUMBER_TOO_SHORT_NSN",PHONE_NUMBER_TOO_LONG:"PHONE_NUMBER_TOO_LONG",INVALID_DIALABLE_KEY:"INVALID_DIALABLE_KEY",INVALID_MEETING_LINK:"INVALID_MEETING_LINK",INVALID_SINCE_OR_SEQUENCE_HASH_IN_REQUEST:"INVALID_SINCE_OR_SEQUENCE_HASH_IN_REQUEST",INVALID_LOCUS_ID:"INVALID_LOCUS_ID",EMPTY_SCHEDULED_MEETING_START_TIME:"EMPTY_SCHEDULED_MEETING_START_TIME",INVALID_SCHEDULED_MEETING_DURATION_MINUTES:"INVALID_SCHEDULED_MEETING_DURATION_MINUTES",INVALID_SCHEDULED_MEETING_REMINDER_DURATION_MINUTES:"INVALID_SCHEDULED_MEETING_REMINDER_DURATION_MINUTES",EMPTY_SCHEDULED_MEETING_ORGANIZER:"EMPTY_SCHEDULED_MEETING_ORGANIZER",INVALID_MEETING_ID_FORMAT:"INVALID_MEETING_ID_FORMAT",INVALID_SIP_URL_FORMAT:"INVALID_SIP_URL_FORMAT",EMPTY_INVITEE_RECORD:"EMPTY_INVITEE_RECORD",EMPTY_INVITEE_ADDRESS:"EMPTY_INVITEE_ADDRESS",DESKPHONE_NOTHING_DIALABLE_FOUND:"DESKPHONE_NOTHING_DIALABLE_FOUND",INVALID_INVITEE_ADDRESS:"INVALID_INVITEE_ADDRESS",INVALID_ATTENDEE_ID:"INVALID_ATTENDEE_ID",INVALID_IN_LOBBY:"INVALID_IN_LOBBY",MISSING_REQUESTING_PARTICIPANT_ID:"MISSING_REQUESTING_PARTICIPANT_ID",INVALID_REQUESTING_PARTICIPANT_ID:"INVALID_REQUESTING_PARTICIPANT_ID",SUPPLEMENTARY_USER_INFO_NOT_FOUND:"SUPPLEMENTARY_USER_INFO_NOT_FOUND",UNAUTHORIZED:"UNAUTHORIZED",REMOVED_PARTICIPANT:"REMOVED_PARTICIPANT",FREE_USER_MAX_PARTICIPANTS_EXCEEDED:"FREE_USER_MAX_PARTICIPANTS_EXCEEDED",PAID_USER_MAX_PARTICIPANTS_EXCEEDED:"PAID_USER_MAX_PARTICIPANTS_EXCEEDED",SERVICE_MAX_PARTICIPANTS_EXCEEDED:"SERVICE_MAX_PARTICIPANTS_EXCEEDED",INACTIVE:"INACTIVE",ONE_ON_ONE_TO_SELF_NOT_ALLOWED:"ONE_ON_ONE_TO_SELF_NOT_ALLOWED",JOIN_RESTRICTED_USER:"JOIN_RESTRICTED_USER",GET_RESTRICTED_USER:"GET_RESTRICTED_USER",JOIN_RESTRICTED_USER_NOT_IN_ROOM:"JOIN_RESTRICTED_USER_NOT_IN_ROOM",CREATE_MEDIA_RESTRICTED_USER:"CREATE_MEDIA_RESTRICTED_USER",DUPLICATE_RESOURCE_CREATION_REQUEST:"DUPLICATE_RESOURCE_CREATION_REQUEST",MEETING_NOT_FOUND:"MEETING_NOT_FOUND",NOT_WEBEX_SITE:"NOT_WEBEX_SITE",INVALID_SCHEDULED_MEETING_ORGANIZER:"INVALID_SCHEDULED_MEETING_ORGANIZER",FREE_USER_MAX_PARTICIPANTS_JOINED_EXCEEDED:"FREE_USER_MAX_PARTICIPANTS_JOINED_EXCEEDED",PAID_USER_MAX_PARTICIPANTS_JOINED_EXCEEDED:"PAID_USER_MAX_PARTICIPANTS_JOINED_EXCEEDED",SERVICE_MAX_PARTICIPANTS_ROSTER_EXCEEDED:"SERVICE_MAX_PARTICIPANTS_ROSTER_EXCEEDED",SERVICE_INITIAL_PARTICIPANTS_ROSTER_EXCEEDED:"SERVICE_INITIAL_PARTICIPANTS_ROSTER_EXCEEDED",RESOURCE_GUEST_FORBIDDEN:"RESOURCE_GUEST_FORBIDDEN",SERVICE_NO_MACHINE_OR_SERVICE_ACCOUNT:"SERVICE_NO_MACHINE_OR_SERVICE_ACCOUNT",MODERATOR_ROLE_REMOVAL_NOT_ALLOWED:"MODERATOR_ROLE_REMOVAL_NOT_ALLOWED",RECORDING_CONTROL_NOT_SUPPORTED:"RECORDING_CONTROL_NOT_SUPPORTED",HOST_PIN_LOCKED:"HOST_PIN_LOCKED",INVALID_HOST_PIN:"INVALID_HOST_PIN",REQUESTING_PARTICIPANT_NOT_MODERATOR:"REQUESTING_PARTICIPANT_NOT_MODERATOR",CONVERSATION_NOT_FOUND:"CONVERSATION_NOT_FOUND",MEETING_LINK_NOT_FOUND:"MEETING_LINK_NOT_FOUND",MEETING_INFO_NOT_FOUND:"MEETING_INFO_NOT_FOUND",SCHEDULED_MEETING_NOT_FOUND:"SCHEDULED_MEETING_NOT_FOUND",RECORDING_NOT_STARTED:"RECORDING_NOT_STARTED",RECORDING_NOT_ENABLED:"RECORDING_NOT_ENABLED",RECORDING_USER_STORAGE_FULL:"RECORDING_USER_STORAGE_FULL",RECORDING_SITE_STORAGE_FULL:"RECORDING_SITE_STORAGE_FULL",NO_SCHEDULED_MEETING:"NO_SCHEDULED_MEETING",MEETING_FULL_UPDATE_NOT_ALLOWED:"MEETING_FULL_UPDATE_NOT_ALLOWED",MODERATOR_ROLE_REMOVAL_NOT_VALID:"MODERATOR_ROLE_REMOVAL_NOT_VALID",MODERATOR_ROLE_ADDITION_NOT_VALID:"MODERATOR_ROLE_ADDITION_NOT_VALID",INVALID_CALL_START_TIME:"INVALID_CALL_START_TIME",MEETING_STARTED_UPDATE_NOT_ALLOWED:"MEETING_STARTED_UPDATE_NOT_ALLOWED",EXCEEDED_MAX_JOINED_PARTICIPANTS:"EXCEEDED_MAX_JOINED_PARTICIPANTS",EXCEEDED_SERVICE_MAX_PARTICIPANTS:"EXCEEDED_SERVICE_MAX_PARTICIPANTS",MEETING_IS_LOCKED:"MEETING_IS_LOCKED",MEETING_IS_TERMINATING:"MEETING_IS_TERMINATING",MEETING_REQUIRE_MODERATOR_PIN_INTENT:"MEETING_REQUIRE_MODERATOR_PIN_INTENT",MEETING_REQUIRE_MODERATOR_PIN:"MEETING_REQUIRE_MODERATOR_PIN",MEETING_REQUIRE_MODERATOR_ROLE:"MEETING_REQUIRE_MODERATOR_ROLE",PMR_ACCOUNT_SUSPENDED:"PMR_ACCOUNT_SUSPENDED",PMR_ACCOUNT_LOCKED:"PMR_ACCOUNT_LOCKED",INVALID_JOIN_TIME:"INVALID_JOIN_TIME",REQUIRES_WEBEX_LOGIN:"REQUIRES_WEBEX_LOGIN",TOO_MANY_REQUESTS:"TOO_MANY_REQUESTS",UNABLE_TO_LOOK_UP_DEVICE_INFORMATION:"UNABLE_TO_LOOK_UP_DEVICE_INFORMATION",UNABLE_TO_LOOK_UP_CONVERSATION:"UNABLE_TO_LOOK_UP_CONVERSATION",UNABLE_TO_LOOK_UP_CI_USER:"UNABLE_TO_LOOK_UP_CI_USER",UNABLE_TO_CREATE_CONFLUENCE:"UNABLE_TO_CREATE_CONFLUENCE",SERVICE_UNAVAILABLE:"SERVICE_UNAVAILABLE",SOCKET_TIMEOUT:"SOCKET_TIMEOUT",NO_HTTP_RESPONSE:"NO_HTTP_RESPONSE"},Zn={INACTIVE:"INACTIVE",MEDIA_RELEASED:"MEDIA_RELEASED"},Vn={ADD_GUEST:"ADD_GUEST",ROSTER_WAITING_TO_JOIN:"ROSTER_WAITING_TO_JOIN",RECORDING_CONTROL_START:"RECORDING_CONTROL_START",RECORDING_CONTROL_PAUSE:"RECORDING_CONTROL_PAUSE",RECORDING_CONTROL_STOP:"RECORDING_CONTROL_STOP",RECORDING_CONTROL_RESUME:"RECORDING_CONTROL_RESUME",LOCK_CONTROL_UNLOCK:"LOCK_CONTROL_UNLOCK",LOCK_CONTROL_LOCK:"LOCK_CONTROL_LOCK",LOCK_STATUS_LOCKED:"LOCK_STATUS_LOCKED",LOCK_STATUS_UNLOCKED:"LOCK_STATUS_UNLOCKED",RAISE_HAND:"RAISE_HAND",LOWER_ALL_HANDS:"LOWER_ALL_HANDS",LOWER_SOMEONE_ELSES_HAND:"LOWER_SOMEONE_ELSES_HAND",LEAVE_TRANSFER_HOST_END_MEETING:"LEAVE_TRANSFER_HOST_END_MEETING",LEAVE_END_MEETING:"LEAVE_END_MEETING",CAPTION_START:"CAPTION_START",CAPTION_STATUS_ACTIVE:"CAPTION_STATUS_ACTIVE",DISPLAY_REAL_TIME_TRANSLATION:"DISPLAY_REAL_TIME_TRANSLATION",ENABLE_CAPTION_PANEL:"ENABLE_CAPTION_PANEL",DISPLAY_NON_ENGLISH_ASR:"DISPLAY_NON_ENGLISH_ASR",TRANSCRIPTION_CONTROL_START:"TRANSCRIPTION_CONTROL_START",TRANSCRIPTION_CONTROL_STOP:"TRANSCRIPTION_CONTROL_STOP",WEBEX_ASSISTANT_STATUS_ACTIVE:"WEBEX_ASSISTANT_STATUS_ACTIVE",WAITING_FOR_OTHERS:"WAITING_FOR_OTHERS",ENABLE_MUTE_ON_ENTRY:"ENABLE_MUTE_ON_ENTRY",DISABLE_MUTE_ON_ENTRY:"DISABLE_MUTE_ON_ENTRY",ENABLE_HARD_MUTE:"ENABLE_HARD_MUTE",DISABLE_HARD_MUTE:"DISABLE_HARD_MUTE"},Gn={COHOST:"COHOST",MODERATOR:"MODERATOR"},qn={STATES:{IDLE:"IDLE",INCOMING:"INCOMING",DIALING:"DIALING",NOTIFIED:"NOTIFIED",DECLINED:"DECLINED",ON_GOING:"ON_GOING",JOINED:"JOINED",TERMINATING:"TERMINATING",LEFT:"LEFT",ENDED:"ENDED",ERROR:"ERROR"}},Hn={TRANSITIONS:{FAIL:"fail",RING:"ring",REMOTE:"remote",JOIN:"join",DECLINE:"decline",LEAVE:"leave",END:"end",RESET:"reset"},STATES:{ERROR:"ERROR",IDLE:"IDLE",ENDED:"ENDED",DECLINED:"DECLINED",RINGING:"RINGING",JOINED:"JOINED",ANSWERED:"ANSWERED"}},Wn={TRANSITIONS:{TOGGLE:"toggle",INIT:"init"},STATES:{MUTE_SELF:"SELF_AUDIO_OFF",UNMUTE_SELF:"SELF_AUDIO_ON"}},zn={TRANSITIONS:{TOGGLE:"toggle",INIT:"init"},STATES:{MUTE_SELF:"SELF_VIDEO_OFF",UNMUTE_SELF:"SELF_VIDEO_ON"}},$n={CLOSED:"closed",FAILED:"failed"},Kn={STATE:{IN_PROGRESS:"IN_PROGRESS",COMPLETE:"COMPLETE",FAILURE:"FAILURE",DEFAULT_TRY_COUNT:0,DEFAULT_STATUS:""}},Yn={CLUSTERS:"clusters",REACHABILITY:"reachability",LOCI:"loci"},Jn={localStorage:"reachability.result"},Qn={ROAP_TRANSITIONS:{STEP:"step"},ROAP_TYPES:{OFFER:"OFFER",ANSWER:"ANSWER",OK:"OK",ERROR:"ERROR",SHUTDOWN:"SHUTDOWN",OFFER_REQUEST:"OFFER_REQUEST",TURN_DISCOVERY_REQUEST:"TURN_DISCOVERY_REQUEST",TURN_DISCOVERY_RESPONSE:"TURN_DISCOVERY_RESPONSE"},ROAP_STATE:{INIT:"INIT",WAIT_RX_OFFER:"WAIT_RX_OFFER",WAIT_RX_ANSWER:"WAIT_RX_ANSWER",WAIT_RX_OK:"WAIT_RX_OK",WAIT_TX_OFFER:"WAIT_TX_OFFER",WAIT_TX_ANSWER:"WAIT_TX_ANSWER",WAIT_TX_OK:"WAIT_TX_OK",IDLE_LOCAL_OFFER:"IDLE_LOCAL_OFFER",IDLE_REMOTE_OFFER:"IDLE_REMOTE_OFFER",GLARE:"GLARE",ERROR:"ERROR"},ROAP_SIGNAL:{RX_OFFER:"RX_OFFER",TX_OFFER:"TX_OFFER",RX_ANSWER:"RX_ANSWER",TX_ANSWER:"TX_ANSWER",RX_OK:"RX_OK",TX_OK:"TX_OK",GLARE_RESOLVED:"GLARE_RESOLVED"},RECEIVE_ROAP_MSG:"RECEIVE_ROAP_MSG",SEND_ROAP_MSG:"SEND_ROAP_MSG",SEND_ROAP_MSG_SUCCESS:"SEND_ROAP_MSG_SUCCESS",RESET_ROAP_STATE:"RESET_ROAP_STATE",RECEIVE_CALL_LEAVE:"RECEIVE_CALL_LEAVE",ROAP_MERCURY:"event:locus.message.roap",ROAP_VERSION:"2",RX_:"RX_",TX_:"TX_"},Xn={main:"main",slides:"slides"},ei={A_CONTENT_SLIDES:"a=content:slides",ROLLBACK:"rollback",HAVE_LOCAL_OFFER:"have-local-offer",HAVE_REMOTE_OFFER:"have-remote-offer",STABLE:"stable",OFFER:"offer",M_LINE:"m=",MAX_FS:"max-fs=",B_LINE:"b=TIAS",PERIODIC_KEYFRAME:"a=periodic-keyframes:20",CARRIAGE_RETURN:"\r\n",BAD_MEDIA_PORTS:[0]},ti={DISCONNECTED:"DISCONNECTED",RECONNECTING:"RECONNECTING",CONNECTED:"CONNECTED"},ri={VPN:"vpn",UNKNOWN:"unknown",WIFI:"wifi",ETHERNET:"ethernet"},ni={AUDIO_CORRELATE:"audio",VIDEO_CORRELATE:"video",SHARE_CORRELATE:"share",SEND_DIRECTION:"send",RECEIVE_DIRECTION:"recv",REMOTE:"remote",LOCAL:"local"},ii={MQA_SIZE:120,CA_TYPE:"MQA",DEFAULT_IP:"0.0.0.0",DEFAULT_SHARE_SENDER_STATS:{common:{common:{direction:"sendrecv",isMain:!1,mariFecEnabled:!1,mariQosEnabled:!1,multistreamEnabled:!1},availableBitrate:0,dtlsBitrate:0,dtlsPackets:0,fecBitrate:0,fecPackets:0,maxBitrate:0,queueDelay:0,remoteJitter:0,remoteLossRate:0,remoteReceiveRate:0,roundTripTime:0,rtcpBitrate:0,rtcpPackets:0,rtpBitrate:0,rtpPackets:0,stunBitrate:0,stunPackets:0,transportType:"UDP"},streams:[{common:{codec:"H264",duplicateSsci:0,requestedBitrate:0,requestedFrames:0,rtpPackets:0,ssci:0,transmittedBitrate:0,transmittedFrameRate:0},h264CodecProfile:"BP",localConfigurationChanges:0,remoteConfigurationChanges:0,requestedFrameSize:0,requestedKeyFrames:0,transmittedFrameSize:0,transmittedHeight:0,transmittedKeyFrames:0,transmittedWidth:0}]},intervalMetadata:{memoryUsage:{cpuBitWidth:0,mainProcessMaximumMemoryBytes:0,osBitWidth:0,processAverageMemoryUsage:0,processMaximumMemoryBytes:0,processMaximumMemoryUsage:0,systemAverageMemoryUsage:0,systemMaximumMemoryUsage:0},peerReflexiveIP:"NULL",processAverageCPU:0,processMaximumCPU:0,systemAverageCPU:0,systemMaximumCPU:0}},oi={LOW:"LOW",MEDIUM:"MEDIUM",HIGH:"HIGH","360p":"360p","480p":"480p","720p":"720p","1080p":"1080p"},ai={"360p":{video:{width:{max:640,ideal:640},height:{max:360,ideal:360}}},"480p":{video:{width:{max:640,ideal:640},height:{max:480,ideal:480}}},"720p":{video:{width:{max:1280,ideal:1280},height:{max:720,ideal:720}}},"1080p":{video:{width:{max:1920,ideal:1920},height:{max:1080,ideal:1080}}}},si=(Ye={},(0,E.Z)(Ye,oi.LOW,ai["480p"]),(0,E.Z)(Ye,oi.MEDIUM,ai["720p"]),(0,E.Z)(Ye,oi.HIGH,ai["1080p"]),(0,E.Z)(Ye,oi["360p"],ai["360p"]),(0,E.Z)(Ye,oi["480p"],ai["480p"]),(0,E.Z)(Ye,oi["720p"],ai["720p"]),(0,E.Z)(Ye,oi["1080p"],ai["1080p"]),Ye),ci={MAX_FS:(Je={},(0,E.Z)(Je,oi.LOW,1620),(0,E.Z)(Je,oi.MEDIUM,3600),(0,E.Z)(Je,oi.HIGH,8192),Je)},ui=6e4,li={MICROPHONE:"microphone",SPEAKER:"speaker",CAMERA:"camera"},di=12e5,fi={JOINED:"JOINED",CONNECTED:"CONNECTED",LEFT:"LEFT",TRANSFERRING:"TRANSFERRING",SUCCESS:"SUCCESS",UNKNOWN:""},pi={NOT_REQUIRED:"NOT_REQUIRED",REQUIRED:"REQUIRED",UNKNOWN:"UNKNOWN",VERIFIED:"VERIFIED"},hi={NONE:"NONE",WRONG_PASSWORD:"WRONG_PASSWORD",WRONG_CAPTCHA:"WRONG_CAPTCHA",OTHER:"OTHER"},vi={SHOULD_ENABLE:"SHOULD_ENABLE",ENABLED:"ENABLED",SHOULD_DISABLE:"SHOULD_DISABLE",NOT_ENABLED:"NOT_ENABLED"},mi={SLIDO:"SLIDO",OTHER:"OTHER"},gi=r(88306),yi=r.n(gi),Ei=r(51206),Si=r.n(Ei),_i={getOSName:function(){return r(24753).platform()},getOSVersion:function(){return r(24753).release()},getBrowserName:function(){return""},getBrowserVersion:function(){return""},isBrowser:function(){return!1}};const bi=yi()((function(e){var t,r;return e||null!==(t=Ve().navigator)&&void 0!==t&&t.userAgent?(r=Si().getParser(e||Ve().navigator.userAgent),{getOSName:function(){var e;return null!==(e=null==r?void 0:r.getOSName())&&void 0!==e?e:""},getOSVersion:function(){var e;return null!==(e=null==r?void 0:r.getOSVersion())&&void 0!==e?e:""},getBrowserName:function(){var e;return null!==(e=null==r?void 0:r.getBrowserName())&&void 0!==e?e:""},getBrowserVersion:function(){var e;return null!==(e=null==r?void 0:r.getBrowserVersion())&&void 0!==e?e:""},isBrowser:function(e){return!(null==r||!r.isBrowser(e,!0))}}):_i}));var Ri="signaling",Ti="expected",wi="CallInitiationFailure",Ii="MediaConnectionFailure",xi="ExpectedFailure",Ai="AccessRights",Ci={MEDIA_QUALITY:"client.mediaquality.event",CALL_INITIATED:"client.call.initiated",MERCURY_CONNECTION_LOST:"client.mercury.connection.lost",MERCURY_CONNECTION_RESTORED:"client.mercury.connection.restored",MOVE_MEDIA:"client.call.move-media",LOCAL_SDP_GENERATED:"client.media-engine.local-sdp-generated",REMOTE_SDP_RECEIVED:"client.media-engine.remote-sdp-received",LOCUS_JOIN_REQUEST:"client.locus.join.request",LOCUS_JOIN_RESPONSE:"client.locus.join.response",ALERT_DISPLAYED:"client.alert.displayed",ICE_START:"client.ice.start",ICE_END:"client.ice.end",ICE_DISCONNECT:"client.ice.disconnect",RECEIVING_MEDIA_START:"client.media.rx.start",RECEIVING_MEDIA_STOP:"client.media.rx.stop",SENDING_MEDIA_START:"client.media.tx.start",SENDING_MEDIA_STOP:"client.media.tx.stop",MEDIA_RENDER_START:"client.media.render.start",MEDIA_RENDER_STOP:"client.media.render.stop",MEDIA_CAPABILITIES:"client.media.capabilities",MEDIA_RECONNECTING:"client.media.reconnecting",MEDIA_RECOVERED:"client.media.recovered",CALL_ABORTED:"client.call.aborted",PIN_PROMPT:"client.pin.prompt",PIN_COLLECTED:"client.pin.collected",LOBBY_ENTERED:"client.lobby.entered",LOBBY_EXITED:"client.lobby.exited",SHARE_INITIATED:"client.share.initiated",SHARE_STOPPED:"client.share.stopped",LOCAL_SHARE_FLOOR_GRANTED:"client.share.floor-granted.local",SHARE_LAYOUT_DISPLAYED:"client.share.layout.displayed",WHITEBOARD_SHARE_INITIATED:"client.whiteboard.share.initiated",WHITEBOARD_SHARE_STOPPED:"client.whiteboard.share.stopped",WHITEBOARD_SHARE_FLOOR_GRANTED:"client.whiteboard.share.floor-granted",MUTED:"client.muted",UNMUTED:"client.unmuted",LEAVE:"client.call.leave",REMOTE_ENDED:"client.call.remote-ended",REMOTE_STARTED:"client.call.remote-started",MEDIA_REQUEST:"client.locus.media.request",MEDIA_RESPONSE:"client.locus.media.response",PSTN_AUDIO_ATTEMPT_START:"client.pstnaudio.attempt.start",PSTN_AUDIO_ATTEMPT_FINISH:"client.pstnaudio.attempt.finish",PSTN_AUDIO_ATTEMPT_SKIP:"client.pstnaudio.attempt.skip"},Oi={name:{MEDIA_ENGINE:"media-engine",ICE_FAILED:"ice.failed",LOCUS_RESPONSE:"locus.response",LOCUS_LEAVE:"locus.leave",OTHER:"other"},notFatalErrorList:[3003,3004,4004,4005,4006,4015],errors:{1e3:["UnknownCallFailure",wi,Ri],1001:["LocusRateLimitedIncoming",wi,Ri],1002:["LocusRateLimitedOutgoing",wi,Ri],1003:["LocusUnavailable",wi,Ri],1004:["LocusConflict",wi,Ri],1005:["Timeout",wi,Ri],1006:["LocusInvalidSequenceHash",wi,Ri],1007:["UpdateMediaFailed",wi,Ri],2001:["FailedToConnectMedia",Ii,Ri],2002:["MediaEngineLost",Ii,Ri],2003:["MediaConnectionLost",Ii,Ri],2004:["IceFailure",Ii,Ri],2005:["MediaEngineHang",Ii,Ri],2006:["IceServerRejected",Ii,Ri],3001:["CallFull",xi,Ti],3002:["RoomTooLarge",xi,Ti],3004:["GuestAlreadyAdded",xi,Ti],3005:["LocusUserNotAuthorised",xi,Ti],3006:["CloudberryUnavailable",xi,Ti],3007:["RoomTooLarge_FreeAccount",xi,Ti],4001:["MeetingInactive",wi,Ti],4002:["MeetingLocked",wi,Ti],4003:["MeetingTerminating",wi,Ti],4004:["Moderator_Pin_Or_Guest_Required",Ai,Ti],4005:["Moderator_Pin_Or_Guest_PIN_Required",Ai,Ti],4006:["Moderator_Required",Ai,Ti],4007:["UserNotMemberOfRoom",Ai,Ti],4008:["NewLocusError",wi,Ti],4009:["NetworkUnavailable",wi,Ti],4010:["MeetingUnavailable",wi,Ti],4011:["MeetingIDInvalid",xi,Ti],4012:["MeetingSiteInvalid",xi,Ti],4013:["LocusInvalidJoinTime",xi,Ti],4014:["LobbyExpired",xi,Ti],4015:["MediaConnectionLostPaired",Ii,Ti],4016:["PhoneNumberNotANumber",xi,Ti],4017:["PhoneNumberTooLong",xi,Ti],4018:["InvalidDialableKey",xi,Ti],4019:["OneOnOneToSelfNotAllowed",xi,Ti],4020:["RemovedParticipant",xi,Ti],4021:["MeetingLinkNotFound",xi,Ti],4022:["PhoneNumberTooShortAfterIdd",xi,Ti],4023:["InvalidInviteeAddress",xi,Ti],4024:["PMRUserAccountLockedOut",xi,Ti],4025:["GuestForbidden",xi,Ti],4026:["PMRAccountSuspended",xi,Ti],4027:["EmptyPhoneNumberOrCountryCode",xi,Ti],4028:["ConversationNotFound",xi,Ti],4029:["StartRecordingFailed",xi,Ti],4030:["RecordingInProgressFailed",xi,Ti],5e3:["SIPCalleeBusy",xi,Ti],5001:["SIPCalleeNotFound",xi,Ti]}},ki="user-interaction",Ni="mercury-event",Li="loci-update",Pi="audio",Mi="video",Di="new",Ui={USER_CREATE_FAILED:1400006,USER_ALREADY_PARTICIPANT:1403001,CONVO_ALREADY_EXISTS:1403010,ALREADY_ANNOUNCEMENT_SPACE:1403014,NOT_ANNOUNCEMENT_SPACE:1403015,USER_NOT_MODERATOR_IN_ANNOUNCEMENT_SPACE:1403016,TEMP_ID_ALREADY_EXISTS:1409001,PARENT_ACTIVITY_ID_NOT_FOUND_OR_INVALID:14000015},ji={media:"media",expected:"expected"},Fi={mediaEngine:"media-engine"},Bi="unknown",Zi="webex-js-sdk",Vi=bi(),Gi=Vi.getOSName,qi=Vi.getOSVersion,Hi=Vi.getBrowserName,Wi=Vi.getBrowserVersion,zi=function(e){return qe()(e,28,96)},$i=function(){function e(){return(0,p.Z)(this,e),(0,E.Z)(this,"_events",void 0),(0,E.Z)(this,"keys",void 0),(0,E.Z)(this,"meetingCollection",void 0),(0,E.Z)(this,"webex",void 0),e.instance||(this._events=[],this.meetingCollection=null,this.keys=C()(Ci),e.instance=this),e.instance}return(0,h.Z)(e,[{key:"initialSetup",value:function(e,t){this.meetingCollection=e,this.webex=t}},{key:"postEvent",value:function(e){var t=e.meetingId,r=e.data,n=void 0===r?{}:r,i=e.event,o=e.meeting;-1===this.keys.indexOf(i)&&Ke.logger.error("Metrics:index#postEvent --\x3e Event ".concat(i," doesn't exist in dictionary")),!o&&t&&(o=this.meetingCollection.get(t),e.meeting=o),o?(!function(e){var t=e.event,r=e.meeting,n=e.data;switch(t){case Ci.CALL_INITIATED:r.setStartCallInitiateJoinReq();break;case Ci.LOCUS_JOIN_REQUEST:r.setEndCallInitiateJoinReq(),r.setStartJoinReqResp();break;case Ci.LOCUS_JOIN_RESPONSE:r.setEndJoinReqResp(),r.setStartSetupDelay(Pi),r.setStartSetupDelay(Mi),r.setStartSendingMediaDelay(Pi),r.setStartSendingMediaDelay(Mi);break;case Ci.RECEIVING_MEDIA_START:r.setEndSetupDelay(n.mediaType);break;case Ci.SENDING_MEDIA_START:r.setEndSendingMediaDelay(n.mediaType);break;case Ci.LOCAL_SDP_GENERATED:r.setStartLocalSDPGenRemoteSDPRecvDelay();break;case Ci.REMOTE_SDP_RECEIVED:r.setEndLocalSDPGenRemoteSDPRecvDelay()}}(e),o.callEvents||(o.callEvents=[]),i===Ci.MEDIA_QUALITY?(n.event=i,o.sendMediaQualityAnalyzerMetrics(n)):(o.callEvents.push(i),n.event=i,o.sendCallAnalyzerMetrics(n))):Ke.logger.info("Metrics:index#postEvent --\x3e Event received for meetingId:".concat(t,", but meeting not found in collection."))}},{key:"initPayload",value:function(e,t,r){var n,i,o={eventId:Be().v4(),version:1,origin:{name:"endpoint",networkType:"unknown",userAgent:this.userAgentToString(),clientInfo:{clientType:r.clientType,clientVersion:"".concat(Zi,"/").concat(this.webex.version),localNetworkPrefix:zi(null===(n=this.webex.meetings.geoHintInfo)||void 0===n?void 0:n.clientAddress),osVersion:qi()||"unknown",subClientType:r.subClientType,os:(0,He.getOSNameInternal)(),browser:Hi(),browserVersion:Wi()}},originTime:{triggered:(new Date).toISOString()},senderCountryCode:null===(i=this.webex.meetings.geoHintInfo)||void 0===i?void 0:i.countryCode,event:{name:e,canProceed:!0,identifiers:t,eventData:{webClientDomain:Ve().location.hostname}}};return r&&(Object.prototype.hasOwnProperty.call(r,"canProceed")&&(o.event.canProceed=r.canProceed),r.errors&&(o.event.errors=r.errors),r.mediaType&&(o.event.mediaType=r.mediaType),r.trigger&&(o.event.trigger=r.trigger),r.pstnAudioType&&(o.event.pstnAudioType=r.pstnAudioType),r.mediaCapabilities&&(o.event.mediaCapabilities=r.mediaCapabilities),r.recoveredBy&&(o.event.recoveredBy=r.recoveredBy),r.joinTimes&&(o.event.joinTimes=r.joinTimes),r.isRoapCallEnabled&&(o.event.isRoapCallEnabled=r.isRoapCallEnabled)),o}},{key:"initMediaPayload",value:function(e,t){var r,n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.audioSetupDelay,a=i.videoSetupDelay,s=i.joinTimes;return{eventId:Be().v4(),version:1,origin:{audioSetupDelay:o,videoSetupDelay:a,name:"endpoint",networkType:i.networkType||Bi,userAgent:this.userAgentToString(),clientInfo:{clientType:i.clientType,clientVersion:"".concat(Zi,"/").concat(this.webex.version),localNetworkPrefix:zi(null===(r=this.webex.meetings.geoHintInfo)||void 0===r?void 0:r.clientAddress),os:(0,He.getOSNameInternal)(),osVersion:qi()||Bi,subClientType:i.subClientType,browser:Hi(),browserVersion:Wi()}},originTime:{triggered:(new Date).toISOString()},senderCountryCode:null===(n=this.webex.meetings.geoHintInfo)||void 0===n?void 0:n.countryCode,event:{name:e,canProceed:!0,identifiers:t,intervals:[i.intervalData],joinTimes:s,eventData:{webClientDomain:Ve().location.hostname},sourceMetadata:{applicationSoftwareType:Zi,applicationSoftwareVersion:this.webex.version,mediaEngineSoftwareType:Hi()||"browser",mediaEngineSoftwareVersion:qi()||Bi,startTime:(new Date).toISOString()}}}}},{key:"parseLocusError",value:function(e,t){var r;if(e&&e.statusCode&&e.statusCode>=500)r=1003;else if(e&&e.body&&e.body.errorCode)switch(Ui[e.body.errorCode]){case Bn.FREE_USER_MAX_PARTICIPANTS_EXCEEDED:r=3007;break;case Bn.PAID_USER_MAX_PARTICIPANTS_EXCEEDED:case Bn.SERVICE_MAX_PARTICIPANTS_EXCEEDED:r=3002;break;case Bn.INACTIVE:r=4001;break;case Bn.EXCEEDED_MAX_JOINED_PARTICIPANTS:case Bn.EXCEEDED_SERVICE_MAX_PARTICIPANTS:r=3001;break;case Bn.MEETING_IS_LOCKED:r=4002;break;case Bn.MEETING_IS_TERMINATING:r=4003;break;case Bn.MEETING_REQUIRE_MODERATOR_PIN_INTENT:r=4004;break;case Bn.MEETING_REQUIRE_MODERATOR_PIN:r=4005;break;case Bn.MEETING_REQUIRE_MODERATOR_ROLE:r=4006;break;case Bn.JOIN_RESTRICTED_USER:case Bn.GET_RESTRICTED_USER:case Bn.CREATE_MEDIA_RESTRICTED_USER:r=3005;break;case Bn.JOIN_RESTRICTED_USER_NOT_IN_ROOM:r=4007;break;case Bn.MEETING_NOT_FOUND:r=4011;break;case Bn.NOT_WEBEX_SITE:r=4012;break;case Bn.INVALID_JOIN_TIME:r=4013;break;case Bn.PHONE_NUMBER_NOT_A_NUMBER:r=4016;break;case Bn.PHONE_NUMBER_TOO_LONG:r=4017;break;case Bn.INVALID_DIALABLE_KEY:r=4018;break;case Bn.ONE_ON_ONE_TO_SELF_NOT_ALLOWED:r=4019;break;case Bn.REMOVED_PARTICIPANT:r=4020;break;case Bn.MEETING_LINK_NOT_FOUND:r=4021;break;case Bn.PHONE_NUMBER_TOO_SHORT_AFTER_IDD:r=4022;break;case Bn.INVALID_INVITEE_ADDRESS:r=4023;break;case Bn.PMR_ACCOUNT_LOCKED:r=4024;break;case Bn.RESOURCE_GUEST_FORBIDDEN:r=4025;break;case Bn.PMR_ACCOUNT_SUSPENDED:r=4026;break;case Bn.EMPTY_PHONE_NUMBER_OR_COUNTRY_CODE:r=4027;break;case Bn.INVALID_SINCE_OR_SEQUENCE_HASH_IN_REQUEST:r=1006;break;case Bn.CONVERSATION_NOT_FOUND:r=4028;break;case Bn.RECORDING_CONTROL_NOT_SUPPORTED:case Bn.RECORDING_NOT_STARTED:case Bn.RECORDING_NOT_ENABLED:r=4029;break;default:r=4008}else r=4008;return this.generateErrorPayload(r,t,Oi.name.LOCUS_RESPONSE,e)}},{key:"generateErrorPayload",value:function(e,t,r,n){if(Oi.errors[e]){var i={shownToUser:t||!1,category:Oi.errors[e][2],errorDescription:Oi.errors[e][0],errorCode:e,fatal:!De()(Oi.notFatalErrorList,e),name:r||Oi.name.OTHER};return n&&n.body&&(i.errorData=n.body),n&&n.statusCode&&(i.httpCode=n.statusCode),i}return null}},{key:"userAgentToString",value:function(){var e,t,r,n,i=je().format("client=%s","".concat(null===(e=this.webex.meetings)||void 0===e||null===(t=e.metrics)||void 0===t?void 0:t.clientName));-1!==["chrome","firefox","msie","msedge","safari"].indexOf(Hi().toLowerCase())&&(n=je().format("browser=%s","".concat(Hi().toLowerCase(),"/").concat(Wi().split(".")[0])));var o=je().format("os=%s","".concat(Gi(),"/").concat(qi().split(".")[0]));return n&&(r="(".concat(n)),o&&(r=r?"".concat(r,"; ").concat(i,"; ").concat(o):"".concat(i,"; (").concat(o)),r?(r+=")",je().format("webex-js-sdk/%s %s","".concat("production","-").concat(this.webex.version),r)):je().format("webex-js-sdk/%s","".concat("production","-").concat(this.webex.version))}},{key:"sendBehavioralMetric",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.webex.internal.metrics.submitClientMetrics(e,{type:this.webex.config.metrics.type,fields:t,tags:r})}}]),e}();(0,E.Z)($i,"instance",void 0);const Ki=new $i;var Yi=r(18428),Ji=r.n(Yi),Qi={set:function(e){Qi.meetings=Ji()({},e)}};const Xi=Qi;var eo=function(){function e(t){(0,p.Z)(this,e),(0,E.Z)(this,"webex",void 0),this.webex=t.webex}var t;return(0,h.Z)(e,[{key:"uploadLogs",value:(t=(0,f.Z)(_().mark((function e(){var t,r,n,i,o,a,s=arguments;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(t=s.length>0&&void 0!==s[0]?s[0]:{}).feedbackId||Be().v4(),n=t.locusId,i=t.correlationId,o=t.meetingId,a=t.callStart,Ke.logger.info("Logs:request#uploadLogs --\x3e uploading user logs for feedbackId: ".concat(r)),e.prev=4,e.next=7,this.webex.internal.support.submitLogs({feedbackId:r,locusId:n,correlationId:i,meetingId:o,callStart:a});case 7:e.next=13;break;case 9:return e.prev=9,e.t0=e.catch(4),Ke.logger.error("Logs:request#uploadLogs --\x3e uploading user logs failed",e.t0),e.abrupt("return",R().reject(e.t0));case 13:return e.abrupt("return",r);case 14:case"end":return e.stop()}}),e,this,[[4,9]])}))),function(){return t.apply(this,arguments)})}]),e}(),to=r(67097);function ro(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var no=function(e){(0,m.Z)(r,e);var t=ro(r);function r(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cn.PARAMETER.MESSAGE,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,p.Z)(this,r),e=t.call(this,n),(0,E.Z)((0,v.Z)(e),"sdkMessage",void 0),(0,E.Z)((0,v.Z)(e),"error",void 0),(0,E.Z)((0,v.Z)(e),"code",void 0),Error.captureStackTrace&&Error.captureStackTrace((0,v.Z)(e),r),e.name=Cn.PARAMETER.NAME,e.sdkMessage=n||Cn.PARAMETER.MESSAGE,e.error=i,e.code=Cn.PARAMETER.CODE,e}return(0,h.Z)(r)}((0,to.Z)(Error)),io={getEventLog:function(e){var t="";try{t=(0,Ue.inspect)(e)}catch(e){Ke.logger.warn("Events:util#getEventLog --\x3e ".concat(e))}return t},getScopeLog:function(e){var t="";if(e){if(e.file&&e.function)return t+="".concat(e.file,":").concat(e.function,"->");e.file&&(t+="".concat(e.file,"->")),e.function&&(t+="".concat(e.function,"->"))}return t}};const oo=io;var ao={trigger:function(e,t,r,n){if(!e||!e.trigger)throw new no("Instance to trigger from must be defined and have a trigger function.");return Ke.logger.debug("".concat(oo.getScopeLog(t),"event#").concat(r).concat(ze.verboseEvents?" -- ".concat(oo.getEventLog(n)):"")),e.trigger(r,n)}};const so=ao;var co=r(8450),uo=r.n(co),lo=r(62680),fo=r.n(lo),po=r(95366),ho=r.n(po),vo=r(6919),mo=r.n(vo),go=r(93364),yo=r.n(go),Eo=r(26771),So=r.n(Eo);const _o={meetings:{deviceType:Qe.deviceType.WEB,mediaSettings:{sendAudio:!0,sendVideo:!0,receiveAudio:!0,receiveVideo:!0,pstn:!1,sendShare:!1,receiveShare:!1},reconnection:{enabled:!1,autoRejoin:!0,detection:!0,iceReconnectionTimeout:1e4,maxRejoinAttempts:3},stats:{enableStatsAnalyzer:!0,autoDowngradeEnabled:!1,interval:1e3,analyzerInterval:5e3,historyMax:120,videoPacketLossRatioThreshold:9,rttThreshold:500,jitterThreshold:500},metrics:{clientName:"WEBEX_JS_SDK",clientType:"WEBEX_SDK",subClientType:"WEB_APP",mqaMetricsInterval:6e4,autoSendMQA:!0},logging:{enable:!0,verboseEvents:!0},resolution:{maxWidth:1280,maxHeight:720,idealWidth:1280,idealHeight:720},screenResolution:{maxWidth:1920,maxHeight:1080,idealWidth:1920,idealHeight:1080},bandwidth:{audio:64e3,video:4e6,startBitrate:2e3},screenFrameRate:10,videoShareFrameRate:30,aspectRatio:1.7695852534562213,autoUploadLogs:!0,enableRtx:!0,receiveTranscription:!1,enableExtmap:!1,experimental:{enableMediaNegotiatedEvent:!1,enableUnifiedMeetings:!1,enableAdhocMeetings:!1,enableTurnDiscovery:!0}}};var bo=r(79529),Ro=r.n(bo),To=r(27921),wo=r.n(To),Io=r(85579),xo=r.n(Io),Ao=r(22013),Co=r.n(Ao),Oo=r(78149),ko=r.n(Oo),No=r(70766),Lo={MEETINGS_REGISTRATION_FAILED:"js_sdk_meetings_registration_failed",MEETINGS_REGISTRATION_SUCCESS:"js_sdk_meetings_registration_success",MERCURY_CONNECTION_FAILURE:"js_sdk_mercury_connection_failure",MERCURY_CONNECTION_RESTORED:"js_sdk_mercury_connection_restored",JOIN_SUCCESS:"js_sdk_join_success",JOIN_FAILURE:"js_sdk_join_failures",ADD_MEDIA_SUCCESS:"js_sdk_add_media_success",ADD_MEDIA_FAILURE:"js_sdk_add_media_failures",CONNECTION_SUCCESS:"js_sdk_connection_success",CONNECTION_FAILURE:"js_sdk_connection_failures",MEETING_LEAVE_FAILURE:"js_sdk_meeting_leave_failure",MEETING_END_ALL_FAILURE:"js_sdk_meeting_end_for_all_failure",MEETING_END_ALL_INITIATED:"js_sdk_meeting_end_for_all_initiated",GET_USER_MEDIA_FAILURE:"js_sdk_get_user_media_failures",GET_DISPLAY_MEDIA_FAILURE:"js_sdk_get_display_media_failures",JOIN_WITH_MEDIA_FAILURE:"js_sdk_join_with_media_failures",DISCONNECT_DUE_TO_INACTIVITY:"js_sdk_disconnect_due_to_inactivity",MEETING_MEDIA_INACTIVE:"js_sdk_meeting_media_inactive",MEETING_RECONNECT_FAILURE:"js_sdk_meeting_reconnect_failures",MEETING_MAX_REJOIN_FAILURE:"js_sdk_meeting_max_rejoin_failure",MEETING_SHARE_FAILURE:"js_sdk_meeting_share_failures",MEETING_START_WHITEBOARD_SHARE_FAILURE:"js_sdk_meeting_start_whiteboard_share_failures",MEETING_STOP_WHITEBOARD_SHARE_FAILURE:"js_sdk_meeting_stop_whiteboard_share_failures",MUTE_AUDIO_FAILURE:"js_sdk_mute_audio_failures",MUTE_VIDEO_FAILURE:"js_sdk_mute_video_failures",SET_MEETING_QUALITY_FAILURE:"js_sdk_set_meeting_quality_failures",STOP_FLOOR_REQUEST_FAILURE:"js_sdk_stop_floor_request_failures",ADD_DIAL_IN_FAILURE:"js_sdk_add_dial_in_failure",ADD_DIAL_OUT_FAILURE:"js_sdk_add_dial_out_failure",UPDATE_MEDIA_FAILURE:"js_sdk_update_media_failures",UNMUTE_AUDIO_FAILURE:"js_sdk_unmute_audio_failures",UNMUTE_VIDEO_FAILURE:"js_sdk_unmute_video_failures",ROAP_ANSWER_FAILURE:"js_sdk_roap_answer_failures",ROAP_GLARE_CONDITION:"js_sdk_roap_glar_condition",PEERCONNECTION_FAILURE:"js_sdk_peerConnection_failures",INVALID_ICE_CANDIDATE:"js_sdk_invalid_ice_candidate",UPLOAD_LOGS_FAILURE:"js_sdk_upload_logs_failure",RECEIVE_TRANSCRIPTION_FAILURE:"js_sdk_receive_transcription_failure",ENABLE_BNR_SUCCESS:"js_sdk_enable_bnr_success",ENABLE_BNR_FAILURE:"js_sdk_enable_bnr_failure",DISABLE_BNR_SUCCESS:"js_sdk_disable_bnr_success",DISABLE_BNR_FAILURE:"js_sdk_disable_bnr_failure",FETCH_MEETING_INFO_V1_SUCCESS:"js_sdk_fetch_meeting_info_v1_success",FETCH_MEETING_INFO_V1_FAILURE:"js_sdk_fetch_meeting_info_v1_failure",ADHOC_MEETING_SUCCESS:"js_sdk_adhoc_meeting_success",ADHOC_MEETING_FAILURE:"js_sdk_adhoc_meeting_failure",VERIFY_PASSWORD_SUCCESS:"js_sdk_verify_password_success",VERIFY_PASSWORD_ERROR:"js_sdk_verify_password_error",VERIFY_CAPTCHA_ERROR:"js_sdk_verify_captcha_error",MOVE_TO_SUCCESS:"js_sdk_move_to_success",MOVE_TO_FAILURE:"js_sdk_move_to_failure",MOVE_FROM_SUCCESS:"js_sdk_move_from_success",MOVE_FROM_FAILURE:"js_sdk_move_from_failure",TURN_DISCOVERY_FAILURE:"js_sdk_turn_discovery_failure"};function Po(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var Mo=function(e){(0,m.Z)(r,e);var t=Po(r);function r(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cn.MEDIA.MESSAGE,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,p.Z)(this,r),e=t.call(this,n),(0,E.Z)((0,v.Z)(e),"code",void 0),(0,E.Z)((0,v.Z)(e),"error",void 0),(0,E.Z)((0,v.Z)(e),"sdkMessage",void 0),e.name=Cn.RECONNECTION.NAME,e.sdkMessage=Cn.MEDIA.MESSAGE,e.error=i,e.stack=i?i.stack:(new Error).stack,e.code=Cn.RECONNECTION.CODE,e}return(0,h.Z)(r)}((0,to.Z)(Error));function Do(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var Uo=function(e){(0,m.Z)(r,e);var t=Do(r);function r(e){var n;(0,p.Z)(this,r);for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return n=t.call.apply(t,[this].concat(o)),(0,E.Z)((0,v.Z)(n),"code",void 0),n.name="WebexMeetingsError",So()((0,v.Z)(n),"code",{value:e,enumerable:!0}),n}return(0,h.Z)(r,[{key:"toString",value:function(){var e=this.message?": ".concat(this.message):"";return"".concat(this.name," ").concat(this.code).concat(e)}}]),r}((0,to.Z)(Error));function jo(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var Fo={};var Bo=function(e){(0,m.Z)(r,e);var t=jo(r);function r(){return(0,p.Z)(this,r),t.call(this,r.CODE,"Meeting has already Ended or not Active")}return(0,h.Z)(r)}(Uo);(0,E.Z)(Bo,"CODE",30101),Fo[Bo.CODE]=Bo;var Zo=function(e){(0,m.Z)(r,e);var t=jo(r);function r(){return(0,p.Z)(this,r),t.call(this,r.CODE,"User currently not in meeting. Please join a meeting before adding media.")}return(0,h.Z)(r)}(Uo);(0,E.Z)(Zo,"CODE",30102),Fo[Zo.CODE]=Zo;var Vo=function(e){(0,m.Z)(r,e);var t=jo(r);function r(){return(0,p.Z)(this,r),t.call(this,r.CODE,"User has not established media yet")}return(0,h.Z)(r)}(Uo);(0,E.Z)(Vo,"CODE",30103),Fo[Vo.CODE]=Vo;var Go=function(e){(0,m.Z)(r,e);var t=jo(r);function r(){return(0,p.Z)(this,r),t.call(this,r.CODE,"user is still in the lobby or not joined")}return(0,h.Z)(r)}(Uo);(0,E.Z)(Go,"CODE",30104),Fo[Go.CODE]=Go;var qo=function(e){(0,m.Z)(r,e);var t=jo(r);function r(e){return(0,p.Z)(this,r),t.call(this,r.CODE,e||"iceConnection: sdp generated is invalid")}return(0,h.Z)(r)}(Uo);(0,E.Z)(qo,"CODE",30201),Fo[qo.CODE]=qo;var Ho=function(e){(0,m.Z)(r,e);var t=jo(r);function r(){return(0,p.Z)(this,r),t.call(this,r.CODE,"iceConnection: gethering ice candidate failed")}return(0,h.Z)(r)}(Uo);(0,E.Z)(Ho,"CODE",30202),Fo[Ho.CODE]=Ho;const Wo="\\d+",zo="\\S+",$o=".+";class Ko{}var Yo,Jo,Qo,Xo,ea,ta;class ra extends Ko{constructor(e,t){super(),this.bandwidthType=e,this.bandwidth=t}static fromSdpLine(e){if(!ra.regex.test(e))return;const t=e.match(ra.regex),r=t[1],n=parseInt(t[2],10);return new ra(r,n)}toSdpLine(){return`b=${this.bandwidthType}:${this.bandwidth}`}}Yo=ra,ra.BW_TYPE_REGEX="CT|AS|TIAS",ra.regex=new RegExp(`^(${Yo.BW_TYPE_REGEX}):(${Wo})`);class na extends Ko{constructor(e){super(),this.mids=e}static fromSdpLine(e){if(!na.regex.test(e))return;const t=e.match(na.regex)[1].split(" ");return new na(t)}toSdpLine(){return`a=group:BUNDLE ${this.mids.join(" ")}`}}na.regex=new RegExp(`^group:BUNDLE (${$o})`);class ia extends Ko{constructor(e,t,r,n,i,o,a,s,c,u){super(),this.foundation=e,this.componentId=t,this.transport=r,this.priority=n,this.connectionAddress=i,this.port=o,this.candidateType=a,this.relAddr=s,this.relPort=c,this.candidateExtensions=u}static fromSdpLine(e){if(!ia.regex.test(e))return;const t=e.match(ia.regex),r=t[1],n=parseInt(t[2],10),i=t[3],o=parseInt(t[4],10),a=t[5],s=parseInt(t[6],10),c=t[7],u=t[8],l=t[9]?parseInt(t[9],10):void 0,d=t[10];return new ia(r,n,i,o,a,s,c,u,l,d)}toSdpLine(){let e="";return e+=`a=candidate:${this.foundation} ${this.componentId} ${this.transport} ${this.priority} ${this.connectionAddress} ${this.port} typ ${this.candidateType}`,this.relAddr&&(e+=` raddr ${this.relAddr}`),this.relPort&&(e+=` rport ${this.relPort}`),this.candidateExtensions&&(e+=` ${this.candidateExtensions}`),e}}Jo=ia,ia.ICE_CHARS="[a-zA-Z0-9+/]+",ia.regex=new RegExp(`^candidate:(${Jo.ICE_CHARS}) (${Wo}) (${zo}) (${Wo}) (${zo}) (${Wo}) typ (${zo})(?: raddr (${zo}))?(?: rport (${Wo}))?(?: (${$o}))?`);class oa extends Ko{constructor(e,t,r){super(),this.netType=e,this.addrType=t,this.ipAddr=r}static fromSdpLine(e){if(!oa.regex.test(e))return;const t=e.match(oa.regex),r=t[1],n=t[2],i=t[3];return new oa(r,n,i)}toSdpLine(){return`c=${this.netType} ${this.addrType} ${this.ipAddr}`}}oa.regex=new RegExp(`^(${zo}) (${zo}) (${zo})`);class aa extends Ko{constructor(e){super(),this.values=e}static fromSdpLine(e){if(!aa.regex.test(e))return;const t=e.match(aa.regex)[1].split(",");return new aa(t)}toSdpLine(){return`a=content:${this.values.join(",")}`}}aa.regex=new RegExp(`^content:(${$o})$`);class sa extends Ko{constructor(e){super(),this.direction=e}static fromSdpLine(e){if(!sa.regex.test(e))return;const t=e.match(sa.regex)[1];return new sa(t)}toSdpLine(){return`a=${this.direction}`}}sa.regex=/^(sendrecv|sendonly|recvonly|inactive)$/;class ca extends Ko{constructor(e,t,r,n){super(),this.id=e,this.uri=t,this.direction=r,this.extensionAttributes=n}static fromSdpLine(e){if(!ca.regex.test(e))return;const t=e.match(ca.regex),r=parseInt(t[1],10),n=t[2],i=t[3],o=t[4];return new ca(r,i,n,o)}toSdpLine(){let e="";return e+=`a=extmap:${this.id}`,this.direction&&(e+=`/${this.direction}`),e+=` ${this.uri}`,this.extensionAttributes&&(e+=` ${this.extensionAttributes}`),e}}Qo=ca,ca.EXTMAP_DIRECTION="sendonly|recvonly|sendrecv|inactive",ca.regex=new RegExp(`^extmap:(${Wo})(?:/(${Qo.EXTMAP_DIRECTION}))? (${zo})(?: (${$o}))?`);class ua extends Ko{constructor(e){super(),this.fingerprint=e}static fromSdpLine(e){if(!ua.regex.test(e))return;const t=e.match(ua.regex)[1];return new ua(t)}toSdpLine(){return`a=fingerprint:${this.fingerprint}`}}ua.regex=new RegExp(`^fingerprint:(${$o})`);class la extends Ko{constructor(e,t){super(),this.payloadType=e,this.params=t}static fromSdpLine(e){if(!la.regex.test(e))return;const t=e.match(la.regex),r=parseInt(t[1],10),n=t[2];return new la(r,n)}toSdpLine(){return`a=fmtp:${this.payloadType} ${this.params}`}}la.regex=new RegExp(`^fmtp:(${Wo}) (${$o})`);class da extends Ko{constructor(e){super(),this.options=e}static fromSdpLine(e){if(!da.regex.test(e))return;const t=e.match(da.regex)[1].split(" ");return new da(t)}toSdpLine(){return`a=ice-options:${this.options.join(" ")}`}}da.regex=new RegExp(`^ice-options:(${$o})$`);class fa extends Ko{constructor(e){super(),this.pwd=e}static fromSdpLine(e){if(!fa.regex.test(e))return;const t=e.match(fa.regex)[1];return new fa(t)}toSdpLine(){return`a=ice-pwd:${this.pwd}`}}fa.regex=new RegExp(`^ice-pwd:(${zo})$`);class pa extends Ko{constructor(e){super(),this.ufrag=e}static fromSdpLine(e){if(!pa.regex.test(e))return;const t=e.match(pa.regex)[1];return new pa(t)}toSdpLine(){return`a=ice-ufrag:${this.ufrag}`}}pa.regex=new RegExp(`^ice-ufrag:(${zo})$`);class ha extends Ko{constructor(e){super(),this.maxMessageSize=e}static fromSdpLine(e){if(!ha.regex.test(e))return;const t=e.match(ha.regex),r=parseInt(t[1],10);return new ha(r)}toSdpLine(){return`a=max-message-size:${this.maxMessageSize}`}}ha.regex=new RegExp(`^max-message-size:(${Wo})`);class va extends Ko{constructor(e,t,r,n){super(),this.type=e,this.port=t,this.protocol=r,this.formats=n}static fromSdpLine(e){if(!va.regex.test(e))return;const t=e.match(va.regex),r=t[1],n=parseInt(t[2],10),i=t[3],o=t[4].split(" ");return new va(r,n,i,o)}toSdpLine(){return`m=${this.type} ${this.port} ${this.protocol} ${this.formats.join(" ")}`}}Xo=va,va.MEDIA_TYPE="audio|video|application",va.regex=new RegExp(`^(${Xo.MEDIA_TYPE}) (${Wo}) (${zo}) (${$o})`);class ma extends Ko{constructor(e){super(),this.mid=e}static fromSdpLine(e){if(!ma.regex.test(e))return;const t=e.match(ma.regex)[1];return new ma(t)}toSdpLine(){return`a=mid:${this.mid}`}}ma.regex=new RegExp(`^mid:(${zo})$`);class ga extends Ko{constructor(e,t,r,n,i,o){super(),this.username=e,this.sessionId=t,this.sessionVersion=r,this.netType=n,this.addrType=i,this.ipAddr=o}static fromSdpLine(e){if(!ga.regex.test(e))return;const t=e.match(ga.regex),r=t[1],n=t[2],i=parseInt(t[3],10),o=t[4],a=t[5],s=t[6];return new ga(r,n,i,o,a,s)}toSdpLine(){return`o=${this.username} ${this.sessionId} ${this.sessionVersion} ${this.netType} ${this.addrType} ${this.ipAddr}`}}ga.regex=new RegExp(`^(${zo}) (${zo}) (${Wo}) (${zo}) (${zo}) (${zo})`);class ya extends Ko{constructor(e,t,r){super(),this.id=e,this.direction=t,this.params=r}static fromSdpLine(e){if(!ya.regex.test(e))return;const t=e.match(ya.regex),r=t[1],n=t[2],i=t[3];return new ya(r,n,i)}toSdpLine(){let e="";return e+=`a=rid:${this.id} ${this.direction}`,this.params&&(e+=` ${this.params}`),e}}ea=ya,ya.RID_ID="[\\w-]+",ya.RID_DIRECTION="\\bsend\\b|\\brecv\\b",ya.regex=new RegExp(`^rid:(${ea.RID_ID}) (${ea.RID_DIRECTION})(?:\\s(${$o}))?`);class Ea extends Ko{static fromSdpLine(e){if(Ea.regex.test(e))return new Ea}toSdpLine(){return"a=rtcp-mux"}}Ea.regex=/^rtcp-mux$/;class Sa extends Ko{constructor(e,t){super(),this.payloadType=e,this.feedback=t}static fromSdpLine(e){if(!Sa.regex.test(e))return;const t=e.match(Sa.regex),r=parseInt(t[1],10),n=t[2];return new Sa(r,n)}toSdpLine(){return`a=rtcp-fb:${this.payloadType} ${this.feedback}`}}Sa.regex=new RegExp(`^rtcp-fb:(${Wo}) (${$o})`);class _a extends Ko{constructor(e,t,r,n){super(),this.payloadType=e,this.encodingName=t,this.clockRate=r,this.encodingParams=n}static fromSdpLine(e){if(!_a.regex.test(e))return;const t=e.match(_a.regex),r=parseInt(t[1],10),n=t[2],i=parseInt(t[3],10),o=t[4];return new _a(r,n,i,o)}toSdpLine(){let e="";return e+=`a=rtpmap:${this.payloadType} ${this.encodingName}/${this.clockRate}`,this.encodingParams&&(e+=`/${this.encodingParams}`),e}}ta=_a,_a.NON_SLASH_TOKEN="[^\\s/]+",_a.regex=new RegExp(`^rtpmap:(${Wo}) (${ta.NON_SLASH_TOKEN})/(${ta.NON_SLASH_TOKEN})(?:/(${ta.NON_SLASH_TOKEN}))?`);class ba extends Ko{constructor(e){super(),this.port=e}static fromSdpLine(e){if(!ba.regex.test(e))return;const t=e.match(ba.regex),r=parseInt(t[1],10);return new ba(r)}toSdpLine(){return`a=sctp-port:${this.port}`}}ba.regex=new RegExp(`^sctp-port:(${Wo})`);class Ra extends Ko{constructor(e){super(),this.info=e}static fromSdpLine(e){if(!Ra.regex.test(e))return;const t=e.match(Ra.regex)[1];return new Ra(t)}toSdpLine(){return`i=${this.info}`}}Ra.regex=new RegExp(`(${$o})`);class Ta extends Ko{constructor(e){super(),this.name=e}static fromSdpLine(e){if(!Ta.regex.test(e))return;const t=e.match(Ta.regex)[1];return new Ta(t)}toSdpLine(){return`s=${this.name}`}}Ta.regex=new RegExp(`^(${$o})`);class wa extends Ko{constructor(e){super(),this.setup=e}static fromSdpLine(e){if(!wa.regex.test(e))return;const t=e.match(wa.regex)[1];return new wa(t)}toSdpLine(){return`a=setup:${this.setup}`}}wa.regex=/^setup:(actpass|active|passive)$/;class Ia{constructor(e,t){this.id=e,this.paused=t}toString(){return this.paused?`~${this.id}`:this.id}}class xa{constructor(){this.layers=[]}addLayer(e){this.layers.push([e])}addLayerWithAlternatives(e){this.layers.push(e)}get length(){return this.layers.length}get(e){return this.layers[e]}static fromString(e){const t=new xa,r=e.split(";");if(1===r.length&&!r[0].trim())throw new Error("simulcast stream list empty");return r.forEach((e=>{if(!e)throw new Error("simulcast layer list empty");const r=e.split(","),n=[];r.forEach((e=>{if(!e||"~"===e)throw new Error("rid empty");const t="~"===e[0],r=t?e.substring(1):e;n.push(new Ia(r,t))})),t.addLayerWithAlternatives(n)})),t}toString(){return this.layers.map((e=>e.map((e=>e.toString())).join(","))).join(";")}}class Aa extends Ko{constructor(e,t){super(),this.sendLayers=e,this.recvLayers=t}static fromSdpLine(e){if(!Aa.regex.test(e))return;const t=e.match(Aa.regex),r=t[3]&&t[4],n=t[1],i=xa.fromString(t[2]);let o,a,s=new xa;if(r){if(n===t[3])return;s=xa.fromString(t[4])}return"send"===n?(o=i,a=s):(o=s,a=i),new Aa(o,a)}toSdpLine(){let e="a=simulcast:";return this.sendLayers.length&&(e+=`send ${this.sendLayers.toString()}`,this.recvLayers.length&&(e+=" ")),this.recvLayers.length&&(e+=`recv ${this.recvLayers.toString()}`),e}}Aa.regex=new RegExp(`^simulcast:(send|recv) (${zo})(?: (send|recv) (${zo}))?`);class Ca extends Ko{constructor(e,t){super(),this.startTime=e,this.stopTime=t}static fromSdpLine(e){if(!Ca.regex.test(e))return;const t=e.match(Ca.regex),r=parseInt(t[1],10),n=parseInt(t[2],10);return new Ca(r,n)}toSdpLine(){return`t=${this.startTime} ${this.stopTime}`}}Ca.regex=new RegExp(`^(${Wo}) (${Wo})`);class Oa extends Ko{constructor(e){super(),this.version=e}static fromSdpLine(e){if(!Oa.regex.test(e))return;const t=e.match(Oa.regex),r=parseInt(t[1],10);return new Oa(r)}toSdpLine(){return`v=${this.version}`}}Oa.regex=new RegExp(`^(${Wo})$`);class ka extends Ko{constructor(e){super(),this.value=e}static fromSdpLine(e){const t=e.match(ka.regex)[1];return new ka(t)}toSdpLine(){return`${this.value}`}}ka.regex=new RegExp(`(${$o})`);class Na{constructor(){this.candidates=[]}addLine(e){return e instanceof pa?(this.ufrag=e,!0):e instanceof fa?(this.pwd=e,!0):e instanceof da?(this.options=e,!0):e instanceof ia&&(this.candidates.push(e),!0)}toLines(){const e=[];return this.ufrag&&e.push(this.ufrag),this.pwd&&e.push(this.pwd),this.options&&e.push(this.options),this.candidates.forEach((t=>e.push(t))),e}}class La{constructor(e,t,r){this.iceInfo=new Na,this.otherLines=[],this.type=e,this.port=t,this.protocol=r}findOtherLine(e){return this.otherLines.find((t=>t instanceof e))}addLine(e){if(e instanceof na)throw new Error("Error: bundle group line not allowed in media description");return e instanceof ra?(this.bandwidth=e,!0):e instanceof ma?(this.mid=e.mid,!0):e instanceof ua?(this.fingerprint=e.fingerprint,!0):e instanceof wa?(this.setup=e.setup,!0):e instanceof oa?(this.connection=e,!0):e instanceof aa?(this.content=e,!0):this.iceInfo.addLine(e)}}class Pa extends La{constructor(e){super(e.type,e.port,e.protocol),this.fmts=[],this.fmts=e.formats}toLines(){const e=[];return e.push(new va(this.type,this.port,this.protocol,this.fmts)),this.connection&&e.push(this.connection),this.bandwidth&&e.push(this.bandwidth),e.push(...this.iceInfo.toLines()),this.fingerprint&&e.push(new ua(this.fingerprint)),this.setup&&e.push(new wa(this.setup)),this.mid&&e.push(new ma(this.mid)),this.content&&e.push(this.content),this.sctpPort&&e.push(new ba(this.sctpPort)),this.maxMessageSize&&e.push(new ha(this.maxMessageSize)),e.push(...this.otherLines),e}addLine(e){if(super.addLine(e))return!0;if(e instanceof va)throw new Error("Error: tried passing a MediaLine to an existing MediaInfo");return e instanceof ba?(this.sctpPort=e.port,!0):e instanceof ha?(this.maxMessageSize=e.maxMessageSize,!0):(this.otherLines.push(e),!0)}}class Ma{constructor(e){this.fmtParams=[],this.feedback=[],this.pt=e}addLine(e){if(e instanceof _a)return this.name=e.encodingName,this.clockRate=e.clockRate,this.encodingParams=e.encodingParams,!0;if(e instanceof la){if(this.fmtParams.push(e.params),-1!==e.params.indexOf("apt")){const t=e.params.split("=")[1];this.primaryCodecPt=parseInt(t,10)}return!0}return e instanceof Sa&&(this.feedback.push(e.feedback),!0)}toLines(){const e=[];return e.push(new _a(this.pt,this.name,this.clockRate,this.encodingParams)),this.feedback.forEach((t=>{e.push(new Sa(this.pt,t))})),this.fmtParams.forEach((t=>{e.push(new la(this.pt,t))})),e}}class Da extends La{constructor(e){super(e.type,e.port,e.protocol),this.pts=[],this.extMaps=[],this.rids=[],this.codecs=new Map,this.rtcpMux=!1,this.pts=e.formats.map((e=>parseInt(e,10))),this.pts.forEach((e=>this.codecs.set(e,new Ma(e))))}toLines(){const e=[];return e.push(new va(this.type,this.port,this.protocol,this.pts.map((e=>`${e}`)))),this.connection&&e.push(this.connection),this.bandwidth&&e.push(this.bandwidth),e.push(...this.iceInfo.toLines()),this.fingerprint&&e.push(new ua(this.fingerprint)),this.setup&&e.push(new wa(this.setup)),this.mid&&e.push(new ma(this.mid)),this.rtcpMux&&e.push(new Ea),this.content&&e.push(this.content),this.extMaps.forEach((t=>e.push(t))),this.rids.forEach((t=>e.push(t))),this.simulcast&&e.push(this.simulcast),this.direction&&e.push(new sa(this.direction)),this.codecs.forEach((t=>e.push(...t.toLines()))),e.push(...this.otherLines),e}addLine(e){if(super.addLine(e))return!0;if(e instanceof va)throw new Error("Error: tried passing a MediaLine to an existing MediaInfo");if(e instanceof sa)return this.direction=e.direction,!0;if(e instanceof ca)return this.extMaps.push(e),!0;if(e instanceof ya)return this.rids.push(e),!0;if(e instanceof Ea)return this.rtcpMux=!0,!0;if(e instanceof Aa)return this.simulcast=e,!0;if(e instanceof _a||e instanceof la||e instanceof Sa){const t=this.codecs.get(e.payloadType);if(!t)throw new Error(`Error: got line for unknown codec: ${e.toSdpLine()}`);return t.addLine(e),!0}return this.otherLines.push(e),!0}getCodecByPt(e){return this.codecs.get(e)}removePt(e){const t=[...this.codecs.values()].filter((t=>t.primaryCodecPt===e)).map((e=>e.pt)),r=[e,...t];r.forEach((e=>{this.codecs.delete(e)})),this.pts=this.pts.filter((e=>-1===r.indexOf(e)))}}class Ua{constructor(){this.groups=[],this.otherLines=[]}addLine(e){return e instanceof Oa?(this.version=e,!0):e instanceof ga?(this.origin=e,!0):e instanceof Ta?(this.sessionName=e,!0):e instanceof Ra?(this.information=e,!0):e instanceof Ca?(this.timing=e,!0):e instanceof oa?(this.connection=e,!0):e instanceof ra?(this.bandwidth=e,!0):e instanceof na?(this.groups.push(e),!0):(this.otherLines.push(e),!0)}toLines(){const e=[];return this.version&&e.push(this.version),this.origin&&e.push(this.origin),this.sessionName&&e.push(this.sessionName),this.information&&e.push(this.information),this.connection&&e.push(this.connection),this.bandwidth&&e.push(this.bandwidth),this.timing&&e.push(this.timing),this.groups&&e.push(...this.groups),e.push(...this.otherLines),e}}class ja{constructor(){this.session=new Ua,this.media=[]}get avMedia(){return this.media.filter((e=>e instanceof Da))}toString(){const e=[];return e.push(...this.session.toLines()),this.media.forEach((t=>e.push(...t.toLines()))),`${e.map((e=>e.toSdpLine())).join("\r\n")}\r\n`}}class Fa{constructor(){this.parsers=new Map}addParser(e,t){const r=this.parsers.get(e)||[];r.push(t),this.parsers.set(e,r)}getParsers(e){return this.parsers.get(e)||[]}}const Ba=new class extends Fa{constructor(){super(),this.addParser("v",Oa.fromSdpLine),this.addParser("o",ga.fromSdpLine),this.addParser("c",oa.fromSdpLine),this.addParser("i",Ra.fromSdpLine),this.addParser("m",va.fromSdpLine),this.addParser("s",Ta.fromSdpLine),this.addParser("t",Ca.fromSdpLine),this.addParser("b",ra.fromSdpLine),this.addParser("a",_a.fromSdpLine),this.addParser("a",Sa.fromSdpLine),this.addParser("a",la.fromSdpLine),this.addParser("a",sa.fromSdpLine),this.addParser("a",ca.fromSdpLine),this.addParser("a",ma.fromSdpLine),this.addParser("a",pa.fromSdpLine),this.addParser("a",fa.fromSdpLine),this.addParser("a",da.fromSdpLine),this.addParser("a",ua.fromSdpLine),this.addParser("a",wa.fromSdpLine),this.addParser("a",ba.fromSdpLine),this.addParser("a",ha.fromSdpLine),this.addParser("a",Ea.fromSdpLine),this.addParser("a",na.fromSdpLine),this.addParser("a",aa.fromSdpLine),this.addParser("a",ya.fromSdpLine),this.addParser("a",ia.fromSdpLine),this.addParser("a",Aa.fromSdpLine)}};function Za(e){return e.length>2}function Va(e,t=Ba){const r=function(e,t){const r=[];return e.split(/(\r\n|\r|\n)/).filter(Za).forEach((e=>{const n=e[0],i=e.slice(2),o=t.getParsers(n);for(const e of o){const t=e(i);if(t)return void r.push(t)}const a=ka.fromSdpLine(e);r.push(a)})),r}(e,t),n=function(e){const t=new ja;let r=t.session;return e.forEach((e=>{if(e instanceof va){let n;if("audio"===e.type||"video"===e.type)n=new Da(e);else{if("application"!==e.type)throw new Error(`Unhandled media type: ${e.type}`);n=new Pa(e)}t.media.push(n),r=n}else r.addLine(e)})),t}(r);return n}var Ga={},qa={10:99,11:396,12:396,13:396,20:396,21:792,22:1620,30:1620,31:3600,32:5120,40:8192,41:8192,42:8704,50:22080,51:36864,52:36864,60:139264,61:139264,62:139264};Ga.convertCLineToIpv4=function(e){var t=e;return t=t.replace(/c=IN IP6 .*/gi,"c=IN IP4 0.0.0.0")},Ga.adjustH264Profile=function(e,t){var r=Va(e);return r.avMedia.forEach((function(e){"video"===e.type&&e.codecs.forEach((function(e){var r;"H264"===(null===(r=e.name)||void 0===r?void 0:r.toUpperCase())&&(e.fmtParams=e.fmtParams.map((function(e){var r=e.match(/(.*)profile-level-id=(\w{4})(\w{2})(.*)/);if(r&&5===r.length){var n=r[1],i=r[2].toLowerCase(),o=Ro()(r[3],16),a=r[4];if(!qa[o])throw new Error("found unsupported h264 profile level id value in the SDP: ".concat(o));if(qa[o]===t)return e;if(qa[o]<t)return"".concat(e,";max-fs=").concat(t,";max-mbps=").concat(30*t);var s=x()(qa).reverse().find((function(e){return qa[e]===t}));if(s){var c=Ro()(s,10).toString(16);return"".concat(n,"profile-level-id=").concat(i).concat(c,";max-mbps=").concat(30*t).concat(a)}throw new Error("unsupported maxFsValue: ".concat(t))}return e})))}))})),r.toString()};const Ha=Ga;function Wa(e,t){var r=void 0!==xo()&&e[Co()]||e["@@iterator"];if(!r){if(ko()(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return za(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return wo()(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return za(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function za(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var $a=bi().isBrowser,Ka={},Ya=function(e,t){var r,n="";return-1!==e[t].search(Xe)?r=Xi.meetings.bandwidth.audio:(r=Xi.meetings.bandwidth.video,n=ei.PERIODIC_KEYFRAME,e.splice(t+2,0,n)),e.splice(t+1,0,"".concat(ei.B_LINE,":").concat(r)),e},Ja=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oi.HIGH,r=ci.MAX_FS[t];if(!r)throw new no('setRemoteVideoConstraints: unable to set max framesize, value for level "'.concat(t,'" is not defined'));return Ha.adjustH264Profile(e,r)},Qa=function(e){var t=e.match(/\nm=video.*/g),r=e.match(/\na=rtpmap:\d+\sH264.*/g);return!t||!!r},Xa=function(e){for(var t=e,r=t.split(ei.CARRIAGE_RETURN),n=0;n<r.length;n+=1)-1!==r[n].search(ei.M_LINE)&&(r=Ya(r,n));return t=r.join(ei.CARRIAGE_RETURN)};Ka.setContentSlides=function(e){return e&&e.sdp&&(e.sdp+="".concat(ei.A_CONTENT_SLIDES).concat(ei.CARRIAGE_RETURN)),e},Ka.iceCandidate=function(e,t){var r=t.remoteQualityLevel;return new(R())((function(t,n){var i=w()(),o=function(){var o=Ro()(Math.abs(w()()-i),4);e.sdp=Xa(e.localDescription.sdp),e.sdp=Ha.convertCLineToIpv4(e.sdp),e.sdp=Ja(e.sdp,r);var a=function(e){var t,r=Wa(No.parse(e).media);try{for(r.s();!(t=r.n()).done;){var n,i=t.value;if(!i.candidates||0===(null===(n=i.candidates)||void 0===n?void 0:n.length))return Ke.logger.error("PeerConnectionManager:index#isSdpInvalid --\x3e iceCandidate: Ice candidate never completed"),"iceCandidate: Ice gathering never completed";if(ei.BAD_MEDIA_PORTS.includes(i.port))return Ke.logger.error("PeerConnectionManager:index#isSdpInvalid --\x3e iceCandidate: Found invalid port number for the ice candidate"),"iceCandidate: Found invalid port number for the ice candidate";if(!i.icePwd||!i.iceUfrag)return Ke.logger.error("PeerConnectionManager:index#isSdpInvalid --\x3e iceCandidate: ice ufrag and password not found"),"iceCandidate: ice ufrag and password not found"}}catch(e){r.e(e)}finally{r.f()}return""}(e.sdp);a&&(Ke.logger.error("PeerConnectionManager:index#iceCandidate --\x3e SDP not valid after waiting."),n(new qo(a))),Ke.logger.log("PeerConnectionManager:index#iceCandidate --\x3e Time to gather ice candidate ".concat(o," miliseconds")),t()};e.iceGatheringState===pt&&o(),e.onIceGatheringStateChange=function(){e.iceGatheringState===pt&&o(),e.iceGatheringState===vt&&Ke.logger.log("PeerConnectionManager:index#onIceGatheringStateChange --\x3e Ice state changed to gathering")},e.onicecandidate=function(e){var t,r,n,i;null===e.candidate?o():Ke.logger.log("PeerConnectionManager:index#onicecandidate --\x3e Candidate ".concat(null===(t=e.candidate)||void 0===t?void 0:t.type," ").concat(null===(r=e.candidate)||void 0===r?void 0:r.protocol," ").concat(null===(n=e.candidate)||void 0===n?void 0:n.address,":").concat(null===(i=e.candidate)||void 0===i?void 0:i.port))},e.onicecandidateerror=function(e){Ke.logger.error("PeerConnectionManager:index#onicecandidateerror --\x3e ignoring ice error:",e)}}))},Ka.replaceTrack=function(e,t){try{var r=e.getSenders();r.length>0&&r.forEach((function(e){e.track&&e.track.kind===t.kind&&e.replaceTrack(t)}))}catch(e){Ke.logger.error("PeerConnectionManager:index#replaceTrack --\x3e Error replacing track, ".concat(e))}},Ka.addStream=function(e,t){try{if(t&&!$a("edge")){if(e.getSenders&&e.getSenders().find((function(e){return null!=e.track})))return void t.getTracks().forEach((function(t){Ka.replaceTrack(e,t)}));t.getTracks().forEach((function(r){e.addTrack(r,t)}))}else $a("edge")&&e.addStream(t)}catch(e){Ke.logger.error("PeerConnectionManager:index#addStream --\x3e Error adding stream, error: ".concat(Oi))}},Ka.setRemoteSessionDetails=function(e,t,r,n){Ke.logger.log("PeerConnectionManager:index#setRemoteSessionDetails --\x3e Setting the remote description type: ".concat(t,"State: ").concat(e.signalingState));var i=r;return i||Ki.postEvent({event:Ci.REMOTE_SDP_RECEIVED,meetingId:n,data:{canProceed:!1,errors:[Ki.generateErrorPayload(2001,!0,Oi.name.MEDIA_ENGINE,"missing remoteSdp")]}}),e.signalingState===ei.HAVE_LOCAL_OFFER||e.signalingState===ei.STABLE&&t===ei.OFFER?(i=function(e){return Xi.meetings.bandwidth.startBitrate&&(e=e.replace(/(\na=fmtp:(\d+).*profile-level-id=.*)/gi,"$1;x-google-start-bitrate=".concat(Xi.meetings.bandwidth.startBitrate))),e}(i),e.enableExtmap||(i=i.replace(/\na=extmap.*/g,"")),i=i.replace(/^a=candidate:.*xTLS.*\r\n/gim,""),e.setRemoteDescription(new(Ve().RTCSessionDescription)({type:t,sdp:i})).then((function(){e.signalingState===ei.STABLE&&Ki.postEvent({event:Ci.REMOTE_SDP_RECEIVED,meetingId:n})})).catch((function(e){Ke.logger.error("Peer-connection-manager:index#setRemoteDescription --\x3e ".concat(e," missing remotesdp"));var t=Lo.PEERCONNECTION_FAILURE,r={correlation_id:n,reason:e.message,stack:e.stack},i={type:e.name};return Ki.sendBehavioralMetric(t,r,i),Ki.postEvent({event:Ci.REMOTE_SDP_RECEIVED,meetingId:n,data:{canProceed:!1,errors:[Ki.generateErrorPayload(2001,!0,e.name.MEDIA_ENGINE,"missing remoteSdp")]}})}))):R().reject(new Mo("PeerConnection in wrong state"))},Ka.createOffer=function(e,t){var r=t.meetingId,n=t.remoteQualityLevel,i=t.enableRtx,o=t.enableExtmap;return Ke.logger.log("PeerConnectionManager:index#createOffer --\x3e creating a new offer"),e.enableExtmap=o,e.createOffer().then((function(t){return i||(t.sdp=t.sdp.replace(/\r\na=rtpmap:\d+ rtx\/\d+/g,""),t.sdp=t.sdp.replace(/\r\na=fmtp:\d+ apt=\d+/g,"")),e.setLocalDescription(t)})).then((function(){return Ka.iceCandidate(e,{remoteQualityLevel:n})})).then((function(){if(!Qa(e.sdp))throw new Mo("openH264 is downloading please Wait. Upload logs if not working on second try");return o||(e.sdp=e.sdp.replace(/\na=extmap.*/g,"")),Ka.setContentSlides(e),Ki.postEvent({event:Ci.LOCAL_SDP_GENERATED,meetingId:r}),e})).catch((function(t){if(Ke.logger.error("Peer-connection-manager:index#createOffer --\x3e ".concat(t)),t instanceof qo)Ki.sendBehavioralMetric(Lo.INVALID_ICE_CANDIDATE,{correlation_id:r,code:t.code,reason:t.message});else{var n=Lo.PEERCONNECTION_FAILURE,i={correlation_id:r,reason:t.message,stack:t.stack},o={type:t.name};Ki.sendBehavioralMetric(n,i,o)}throw Ki.postEvent({event:Ci.LOCAL_SDP_GENERATED,meetingId:r,data:{canProceed:!1,errors:[Ki.generateErrorPayload(2001,!0,t.name.MEDIA_ENGINE)]}}),Ka.close(e),t}))},Ka.rollBackLocalDescription=function(e){return e.setLocalDescription(new RTCSessionDescription({type:ei.ROLLBACK})).then((function(){return e})).catch((function(e){return Ke.logger.error("Peer-connection-manager:index#setLocalDescription --\x3e ".concat(e," ")),R().error(e)}))},Ka.updatePeerConnection=function(e,t){var r=t.meetingId,n=t.remoteQualityLevel;Ke.logger.log("PeerConnectionManager:index#updatePeerConnection --\x3e updating the peerConnection with params: ".concat(e));var i=e.peerConnection,o=e.offerSdp;return Ka.createAnswer({peerConnection:i,offerSdp:o[0]},{meetingId:r,remoteQualityLevel:n}).then((function(e){return Ka.setContentSlides(e),R().resolve([e.sdp])}))},Ka.createAnswer=function(e,t){var r=t.meetingId,n=t.remoteQualityLevel,i=e.peerConnection;return i.signalingState===ei.HAVE_REMOTE_OFFER?R().resolve(i):Ka.setRemoteSessionDetails(i,St,e.offerSdp,r).then((function(){return i.createAnswer(e.sdpConstraints)})).then((function(e){return i.setLocalDescription(e)})).then((function(){return Ka.iceCandidate(i,{remoteQualityLevel:n})})).then((function(){if(i.sdp=Xa(i.localDescription.sdp),i.sdp=Ha.convertCLineToIpv4(i.sdp),i.sdp=Ja(i.sdp,n),!Qa(i.sdp))throw new Mo("openH264 is downloading please Wait. Upload logs if not working on second try");return i})).catch((function(e){if(e instanceof qo)Ki.sendBehavioralMetric(Lo.INVALID_ICE_CANDIDATE,{correlation_id:r});else{var t=Lo.PEERCONNECTION_FAILURE,n={correlation_id:r,reason:e.message,stack:e.stack},i={type:e.name};Ki.sendBehavioralMetric(t,n,i)}Ke.logger.error("PeerConnectionManager:index#setRemoteSessionDetails --\x3e Error creating remote session, error: ".concat(e))}))},Ka.close=function(e){return Ke.logger.log("PeerConnectionManager:index#close --\x3e pc: close() -> attempting to close the peer connection"),e&&e.connectionState===$n.CLOSED?(Ke.logger.log("PeerConnectionManager:index#close --\x3e pc: close() -> connection already closed"),R().resolve()):(Ke.logger.log("PeerConnectionManager:index#close --\x3e pc: close() -> closing the mediaPeerConnection"),R().resolve().then((function(){e&&e.close&&e.close()})))},Ka.setPeerConnectionEvents=function(e){var t=e.mediaProperties.peerConnection,r=function(){e.reconnectionManager.iceState.resolve&&e.reconnectionManager.iceState.resolve(),e.reconnect({networkDisconnect:!0}),Ki.postEvent({event:Ci.ICE_END,meeting:e,data:{canProceed:!1,errors:[Ki.generateErrorPayload(2004,!1,Oi.name.MEDIA_ENGINE)]}}),e.uploadLogs({file:"peer-connection-manager/index",function:"connectionFailed"}),Ki.sendBehavioralMetric(Lo.CONNECTION_FAILURE,{correlation_id:e.correlationId,locus_id:e.locusId})};t.oniceconnectionstatechange=function(){switch(Ke.logger.info("PeerConnectionManager:index#setPeerConnectionEvents --\x3e ICE STATE CHANGE."),t.iceConnectionState){case Pn.CHECKING:Ke.logger.info("PeerConnectionManager:index#setPeerConnectionEvents --\x3e ICE STATE CHECKING."),Ki.postEvent({event:Ci.ICE_START,meeting:e});break;case Pn.COMPLETED:Ke.logger.info("PeerConnectionManager:index#setPeerConnectionEvents --\x3e ICE STATE COMPLETED.");break;case Pn.CONNECTED:Ki.postEvent({event:Ci.ICE_END,meeting:e}),Ki.sendBehavioralMetric(Lo.CONNECTION_SUCCESS,{correlation_id:e.correlationId,locus_id:e.locusId}),e.setNetworkStatus(ti.CONNECTED),e.reconnectionManager.iceReconnected(),Ke.logger.info("PeerConnectionManager:index#setPeerConnectionEvents --\x3e ICE STATE CONNECTED.");break;case Pn.CLOSED:Ke.logger.info("PeerConnectionManager:index#setPeerConnectionEvents --\x3e ICE STATE CLOSED.");break;case Pn.DISCONNECTED:e.setNetworkStatus(ti.DISCONNECTED),e.reconnectionManager.waitForIceReconnect().catch((function(){Ke.logger.info("PeerConnectionManager:index#setPeerConnectionEvents --\x3e ICE STATE DISCONNECTED. Automatic Reconnection Timed Out."),r()})),Ke.logger.info("PeerConnectionManager:index#setPeerConnectionEvents --\x3e ICE STATE DISCONNECTED.");break;case Pn.FAILED:Ke.logger.info("PeerConnectionManager:index#setPeerConnectionEvents --\x3e ICE STATE FAILED."),r()}},t.onconnectionstatechange=function(){switch(Ke.logger.info("PeerConnectionManager:index#setPeerConnectionEvents --\x3e CONNECTION STATE CHANGE."),t.connectionState){case Mn.NEW:Ke.logger.info("PeerConnectionManager:index#setPeerConnectionEvents --\x3e CONNECTION STATE NEW.");break;case Mn.CONNECTING:Ke.logger.info("PeerConnectionManager:index#setPeerConnectionEvents --\x3e CONNECTION STATE CONNECTING.");break;case Mn.CONNECTED:Ke.logger.info("PeerConnectionManager:index#setPeerConnectionEvents --\x3e CONNECTION STATE CONNECTED.");break;case Mn.CLOSED:Ke.logger.info("PeerConnectionManager:index#setPeerConnectionEvents --\x3e CONNECTION STATE CLOSED.");break;case Mn.DISCONNECTED:Ke.logger.info("PeerConnectionManager:index#setPeerConnectionEvents --\x3e CONNECTION STATE DISCONNECTED.");break;case Mn.FAILED:Ke.logger.info("PeerConnectionManager:index#setPeerConnectionEvents --\x3e CONNECTION STATE FAILED."),r()}}};const es=Ka;function ts(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var rs=function(e){(0,m.Z)(r,e);var t=ts(r);function r(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cn.RECONNECTION.MESSAGE,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,p.Z)(this,r),e=t.call(this,n),(0,E.Z)((0,v.Z)(e),"code",void 0),(0,E.Z)((0,v.Z)(e),"error",void 0),(0,E.Z)((0,v.Z)(e),"sdkMessage",void 0),e.name=Cn.RECONNECTION.NAME,e.sdkMessage=Cn.RECONNECTION.MESSAGE,e.error=i,e.stack=i?i.stack:(new Error).stack,e.code=Cn.RECONNECTION.CODE,e}return(0,h.Z)(r)}((0,to.Z)(Error));function ns(e,t){var r=x()(e);if(fo()){var n=fo()(e);t&&(n=n.filter((function(t){return ho()(e,t).enumerable}))),r.push.apply(r,n)}return r}function is(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ns(Object(r),!0).forEach((function(t){(0,E.Z)(e,t,r[t])})):mo()?yo()(e,mo()(r)):ns(Object(r)).forEach((function(t){So()(e,t,ho()(r,t))}))}return e}var os=bi().isBrowser,as={setLocalTrack:function(e,t){return!!t&&(t.enabled=e,!0)},reconnectMedia:function(e,t){var r=t.meetingId,n=t.remoteQualityLevel,i=t.enableRtx,o=t.enableExtmap;return e.connectionState===$n.CLOSED||e.connectionState===$n.FAILED?R().reject(new rs("Reinitiate peerconnection")):es.createOffer(e,{meetingId:r,remoteQualityLevel:n,enableRtx:i,enableExtmap:o})},generateLocalMedias:function(e,t,r){return e?[{localSdp:uo()({audioMuted:t,videoMuted:r}),mediaId:e}]:[]},getLocalMedia:function(e,t){var r=e.sendAudio,n=e.sendVideo,i=e.sendShare,o=e.sharePreferences,a=e.isSharing;return r||n?as.getMedia(r,n,t):i&&!a?as.getDisplayMedia({sendAudio:!1,sendShare:!0,sharePreferences:o},t):R().resolve(void 0)},checkTracks:function(e,t,r){var n=function(e,t){return e&&t?"sendrecv":e&&!t?"sendonly":!e&&t?"recvonly":"inactive"};return t?{track:t,direction:n(!!t,r)}:{track:e,direction:n(!!t,r)}},attachMedia:function(e,t){var r=t.meetingId,n=t.remoteQualityLevel,i=t.enableRtx,o=t.enableExtmap,a=e.mediaDirection,s=e.audioTrack,c=e.videoTrack,u=e.shareTrack,l=e.peerConnection,d=null;return d=as.checkTracks("audio",a.sendAudio&&s,a.receiveAudio),l.audioTransceiver=l.addTransceiver(d.track,{direction:d.direction}),d=as.checkTracks("video",a.sendVideo&&c,a.receiveVideo),l.videoTransceiver=l.addTransceiver(d.track,{direction:d.direction}),d=as.checkTracks("video",a.sendShare&&u,a.receiveShare),l.shareTransceiver=l.addTransceiver(d.track,{direction:d.direction}),l.onnegotiationneeded=function(e){Ke.logger.info("Media:index#attachMedia --\x3e onnegotiationneeded#PeerConnection: ".concat(e))},es.createOffer(l,{meetingId:r,remoteQualityLevel:n,enableRtx:i,enableExtmap:o})},updateMedia:function(e,t){var r=t.meetingId,n=t.remoteQualityLevel,i=t.enableRtx,o=t.enableExtmap,a=e.mediaDirection,s=e.audioTrack,c=e.videoTrack,u=e.shareTrack,l=e.peerConnection;return as.setTrackOnTransceiver(l.audioTransceiver,{type:"audio",track:s,sendTrack:a.sendAudio&&s,receiveTrack:a.receiveAudio}),as.setTrackOnTransceiver(l.videoTransceiver,{type:"video",track:c,sendTrack:a.sendVideo&&c,receiveTrack:a.receiveVideo}),as.setTrackOnTransceiver(l.shareTransceiver,{type:"video",track:u,sendTrack:a.sendShare&&u,receiveTrack:a.receiveShare}),l.onnegotiationneeded=function(e){Ke.logger.info("Media:index#updateMedia --\x3e onnegotiationneeded#PeerConnection: ".concat(e))},es.createOffer(l,{meetingId:r,remoteQualityLevel:n,enableRtx:i,enableExtmap:o})},setTrackOnTransceiver:function(e,t){var r=t.type,n=t.track,i=t.sendTrack,o=t.receiveTrack;try{var a=as.checkTracks(r,i&&n,o);e.direction=a.direction,t.track&&e.sender.replaceTrack(n)}catch(e){throw Ke.logger.error("Media:index#setTrackOnTransceiver --\x3e ".concat(e)),e}},updateTransceiver:function(e,t,r,n){var i=e.meetingId,o=e.remoteQualityLevel,a=e.enableRtx,s=e.enableExtmap;return as.setTrackOnTransceiver(r,n),es.createOffer(t,{meetingId:i,remoteQualityLevel:o,enableRtx:a,enableExtmap:s})},getDisplayMedia:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.screenResolution||{},n=t.screenFrameRate||null,i=e.sharePreferences,o=i&&i.shareConstraints,a=i&&i.highFrameRate,s=_o.meetings,c=s.screenResolution,u=s.resolution,l=s.videoShareFrameRate,d=s.screenFrameRate,f=s.aspectRatio,p={cursor:Fn.CURSOR.AWLAYS,aspectRatio:f};if(p=o?i.shareConstraints:a?is(is({},p),{},{frameRate:l,height:u.idealHeight,width:u.idealWidth},t.resolution):is(is({},p),{},{frameRate:n||d,height:r.idealHeight||c.idealHeight,width:r.idealWidth||c.idealWidth},t.screenResolution),os("firefox")){var h={audio:e.sendAudio,video:e.sendShare};return navigator.mediaDevices.getDisplayMedia({audio:e.sendAudio,video:h}).then((function(t){return e.sendShare&&t.getVideoTracks().length>0&&t.getVideoTracks()[0].applyConstraints(p),t}))}var v={video:!!e.sendShare&&p};return e.sendAudio&&os("safari")&&(v.audio=e.sendAudio),navigator.mediaDevices.getDisplayMedia(v)},getMedia:function(e,t,r){var n={ideal:r.resolution.idealWidth,max:r.resolution.maxWidth},i={ideal:r.resolution.idealHeight,max:r.resolution.maxHeight},o={audio:e,video:!!t&&(os("firefox")&&t.width&&320===t.width.max?{deviceId:t.deviceId?t.deviceId:void 0,width:320,height:180,frameRate:t.frameRate?t.frameRate:void 0,facingMode:t.facingMode?t.facingMode:void 0}:{deviceId:t.deviceId?t.deviceId:void 0,width:t.width?t.width:n,height:t.height?t.height:i,frameRate:t.frameRate?t.frameRate:void 0,facingMode:t.facingMode?t.facingMode:void 0}),fake:!1};return navigator.mediaDevices.getUserMedia(o).catch((function(e){throw Ke.logger.error("".concat("Media:index#getMedia --\x3e navigator.mediaDevices.getUserMedia"," failed - ").concat(e," (").concat(e.constraint,")")),e}))},getSupportedDevice:function(e){var t=e.sendAudio,r=e.sendVideo;return R().resolve().then((function(){return navigator.mediaDevices&&void 0!==navigator.mediaDevices.enumerateDevices?navigator.mediaDevices.enumerateDevices().then((function(e){var n={audio:e.filter((function(e){return e.kind===et})).length>0,video:e.filter((function(e){return e.kind===$t})).length>0};return{sendAudio:n.audio&&t,sendVideo:n.video&&r}})):{sendAudio:!1,sendVideo:!1}}))},getDevices:function(){return navigator&&navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices?navigator.mediaDevices.enumerateDevices():R().reject(new Mo("enumerateDevices not supported."))},toggleStream:function(){},stopTracks:function(e){return e?R().resolve().then((function(){if(e&&e.stop)try{e.stop()}catch(t){Ke.logger.error("Media:index#stopTracks --\x3e Unable to stop the track with state ".concat(e.readyState,", error: ").concat(t))}})):R().resolve()},stopStream:function(e){return Ke.logger.warn("Media:index#stopStream --\x3e [DEPRECATION WARNING]: stopStream has been deprecated after v1.89.3"),e?R().resolve().then((function(){e.getTracks?e.getTracks().forEach((function(e){e.stop()})):e.stop&&e.stop()})):R().resolve()},getUserMedia:function(e,t,r,n){return as.getLocalMedia({sendAudio:!!e.sendAudio&&(t.audio||e.sendAudio),sendVideo:!!e.sendVideo&&(t.video||e.sendVideo)},n).then((function(t){return as.getLocalMedia({sendShare:e.sendShare,isSharing:e.isSharing,sharePreferences:r},n).then((function(e){return[t,e]}))}))}};const ss=as;var cs=r(14917),us=r(41609),ls=r.n(us);function ds(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var fs=function(e){(0,m.Z)(r,e);var t=ds(r);function r(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cn.INTENT_TO_JOIN.MESSAGE,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,p.Z)(this,r),e=t.call(this,n),(0,E.Z)((0,v.Z)(e),"code",void 0),(0,E.Z)((0,v.Z)(e),"error",void 0),(0,E.Z)((0,v.Z)(e),"joinIntentRequired",void 0),(0,E.Z)((0,v.Z)(e),"sdkMessage",void 0),e.name=Cn.INTENT_TO_JOIN.NAME,e.sdkMessage=Cn.INTENT_TO_JOIN.MESSAGE,e.error=i,e.stack=i?i.stack:(new Error).stack,e.joinIntentRequired=!0,e.code=Cn.INTENT_TO_JOIN.CODE,e}return(0,h.Z)(r)}((0,to.Z)(Error));function ps(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var hs=function(e){(0,m.Z)(r,e);var t=ps(r);function r(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Cn.JOIN_MEETING.MESSAGE,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,p.Z)(this,r),e=t.call(this,i),(0,E.Z)((0,v.Z)(e),"code",void 0),(0,E.Z)((0,v.Z)(e),"error",void 0),(0,E.Z)((0,v.Z)(e),"joinOptions",void 0),(0,E.Z)((0,v.Z)(e),"sdkMessage",void 0),e.name=Cn.JOIN_MEETING.NAME,e.sdkMessage=Cn.JOIN_MEETING.MESSAGE,e.error=o,e.stack=o?o.stack:(new Error).stack,e.joinOptions=n,e.code=Cn.JOIN_MEETING.CODE,e}return(0,h.Z)(r)}((0,to.Z)(Error));function vs(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var ms=function(e){(0,m.Z)(r,e);var t=vs(r);function r(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cn.PERMISSION.MESSAGE,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,p.Z)(this,r),e=t.call(this,n),(0,E.Z)((0,v.Z)(e),"code",void 0),(0,E.Z)((0,v.Z)(e),"error",void 0),(0,E.Z)((0,v.Z)(e),"sdkMessage",void 0),e.name=Cn.PERMISSION.NAME,e.sdkMessage=Cn.PERMISSION.MESSAGE,e.error=i,e.stack=i?i.stack:(new Error).stack,e.code=Cn.PERMISSION.CODE,e}return(0,h.Z)(r)}((0,to.Z)(Error));function gs(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var ys=function(e){(0,m.Z)(r,e);var t=gs(r);function r(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cn.PASSWORD.MESSAGE,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,p.Z)(this,r),e=t.call(this,n),(0,E.Z)((0,v.Z)(e),"code",void 0),(0,E.Z)((0,v.Z)(e),"error",void 0),(0,E.Z)((0,v.Z)(e),"sdkMessage",void 0),e.name=Cn.PASSWORD.NAME,e.sdkMessage=Cn.PASSWORD.MESSAGE,e.error=i,e.stack=i?i.stack:(new Error).stack,e.code=Cn.PASSWORD.CODE,e}return(0,h.Z)(r)}((0,to.Z)(Error));function Es(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var Ss=function(e){(0,m.Z)(r,e);var t=Es(r);function r(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cn.CAPTCHA.MESSAGE,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,p.Z)(this,r),e=t.call(this,n),(0,E.Z)((0,v.Z)(e),"code",void 0),(0,E.Z)((0,v.Z)(e),"error",void 0),(0,E.Z)((0,v.Z)(e),"sdkMessage",void 0),e.name=Cn.CAPTCHA.NAME,e.sdkMessage=Cn.CAPTCHA.MESSAGE,e.error=i,e.stack=i?i.stack:(new Error).stack,e.code=Cn.CAPTCHA.CODE,e}return(0,h.Z)(r)}((0,to.Z)(Error));function _s(e,t){var r=x()(e);if(fo()){var n=fo()(e);t&&(n=n.filter((function(t){return ho()(e,t).enumerable}))),r.push.apply(r,n)}return r}function bs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_s(Object(r),!0).forEach((function(t){(0,E.Z)(e,t,r[t])})):mo()?yo()(e,mo()(r)):_s(Object(r)).forEach((function(t){So()(e,t,ho()(r,t))}))}return e}var Rs={parseLocusJoin:function(e){var t={};return t.locus=e.body.locus,t.mediaConnections=e.body.mediaConnections,t.locusUrl=t.locus.url,t.locusId=t.locus.url.split("/").pop(),t.selfId=t.locus.self.id,t.mediaConnections.forEach((function(e){e.mediaId&&(t.mediaId=e.mediaId)})),t},remoteUpdateAudioVideo:function(e,t,r){if(!r)return R().reject(new no("You need a meeting object."));var n=ss.generateLocalMedias(r.mediaId,e,t);return ls()(n)?R().reject(new no("You need a media id on the meeting to change remote audio.")):(Ki.postEvent({event:Ci.MEDIA_REQUEST,meeting:r}),r.meetingRequest.remoteAudioVideoToggle({locusUrl:r.locusUrl,selfId:r.selfId,localMedias:n,deviceUrl:r.deviceUrl,correlationId:r.correlationId}).then((function(e){return Ki.postEvent({event:Ci.MEDIA_RESPONSE,meeting:r}),e.body.locus})))},hasOwner:function(e){return e&&e.owner},isOwnerSelf:function(e,t){return e===t},isPinOrGuest:function(e){var t;return(null==e||null===(t=e.body)||void 0===t?void 0:t.errorCode)&&nn.includes(e.body.errorCode)},joinMeeting:function(e,t){return e?(Ki.postEvent({event:Ci.LOCUS_JOIN_REQUEST,meeting:e}),e.meetingRequest.joinMeeting({inviteeAddress:e.meetingJoinUrl||e.sipUri,meetingNumber:e.meetingNumber,deviceUrl:e.deviceUrl,locusUrl:e.locusUrl,correlationId:e.correlationId,roapMessage:t.roapMessage,permissionToken:e.permissionToken,resourceId:t.resourceId||null,moderator:t.moderator,pin:t.pin,moveToResource:t.moveToResource,preferTranscoding:t.preferTranscoding,asResourceOccupant:t.asResourceOccupant}).then((function(t){return Ki.postEvent({event:Ci.LOCUS_JOIN_RESPONSE,meeting:e,data:{trigger:Li,locus:t.body.locus,mediaConnections:t.body.mediaConnections,trackingId:t.headers.trackingid}}),Rs.parseLocusJoin(t)}))):R().reject(new no("You need a meeting object."))},cleanUp:function(e){return(e.statsAnalyzer?e.statsAnalyzer.stopAnalyzer():R().resolve()).then((function(){return e.closeLocalStream()})).then((function(){return e.closeLocalShare()})).then((function(){return e.closeRemoteTracks()})).then((function(){return e.closePeerConnections()})).then((function(){e.unsetLocalVideoTrack(),e.unsetLocalShareTrack(),e.unsetRemoteTracks(),e.unsetPeerConnections(),e.reconnectionManager.cleanUp()})).then((function(){return e.roap.stop(e.correlationId,e.roapSeq)})).then((function(){return e.stopKeepAlive()}))},disconnectPhoneAudio:function(e,t){if(e.meetingState===kn.INACTIVE)return R().reject(new Bo);var r={locusUrl:e.locusUrl,selfId:e.selfId,correlationId:e.correlationId,phoneUrl:t};return e.meetingRequest.disconnectPhoneAudio(r).then((function(t){var r;null!=t&&null!==(r=t.body)&&void 0!==r&&r.locus&&e.locusInfo.onFullLocus(t.body.locus)})).catch((function(t){return Ke.logger.error("Meeting:util#disconnectPhoneAudio --\x3e An error occured while disconnecting phone audio in meeting ".concat(e.id,", error: ").concat(t)),R().reject(t)}))},leaveMeeting:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.meetingState===kn.INACTIVE)return R().reject(new Bo);if(Rs.isUserInLeftState(e.locusInfo))return R().reject(new Zo);var r=bs(bs({},{locusUrl:e.locusUrl,selfId:e.selfId,correlationId:e.correlationId,resourceId:e.resourceId,deviceUrl:e.deviceUrl}),t);return e.meetingRequest.leaveMeeting(r).then((function(t){return t&&t.body&&t.body.locus&&e.locusInfo.onFullLocus(t.body.locus),R().resolve()})).then((function(){return t.moveMeeting?R().resolve():Rs.cleanUp(e)})).catch((function(t){return Ke.logger.error("Meeting:util#leaveMeeting --\x3e An error occured while trying to leave meeting with an id of ".concat(e.id,", error: ").concat(t)),R().reject(t)}))},declineMeeting:function(e,t){return e.meetingRequest.declineMeeting({locusUrl:e.locusUrl,deviceUrl:e.deviceUrl,reason:t})},isUserInLeftState:function(e){var t,r;return(null===(t=e.parsedLocus)||void 0===t||null===(r=t.self)||void 0===r?void 0:r.state)===pr},isUserInIdleState:function(e){var t,r;return(null===(t=e.parsedLocus)||void 0===t||null===(r=t.self)||void 0===r?void 0:r.state)===ir},isUserInJoinedState:function(e){var t,r;return(null===(t=e.parsedLocus)||void 0===t||null===(r=t.self)||void 0===r?void 0:r.state)===dr},isMediaEstablished:function(e){return e&&(e.audio||e.video||e.share)},joinMeetingOptions:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.resourceId=e.resourceId||t.resourceId,e.requiredCaptcha?R().reject(new Ss):e.passwordStatus===pi.REQUIRED?R().reject(new ys):(t.pin&&Ki.postEvent({event:Ci.PIN_COLLECTED,meeting:e}),Rs.joinMeeting(e,t).then((function(t){return e.setLocus(t),R().resolve(t)})).catch((function(r){return Rs.isPinOrGuest(r)?(Ki.postEvent({event:Ci.PIN_PROMPT,meeting:e}),R().reject(new fs("Error Joining Meeting",r))):(Ke.logger.error("Meeting:util#joinMeetingOptions --\x3e Error joining the call, ",r),R().reject(new hs(t,"Error Joining Meeting",r)))})))},updateTransceiver:function(e,t){var r=e.type,n=e.sendTrack,i=e.receiveTrack,o=e.track,a=e.transceiver,s=e.peerConnection,c=e.previousMediaDirection;return void 0!==n&&n!==c.sendTrack||void 0!==i&&i!==c.receiveTrack?ss.updateTransceiver({meetingId:t.meeting.id,remoteQualityLevel:t.mediaProperties.remoteQualityLevel,enableRtx:t.meeting.config.enableRtx,enableExtmap:t.meeting.config.enableExtmap},s,a,{track:o,type:r,receiveTrack:i,sendTrack:n}).then((function(){return t.meeting.roap.sendRoapMediaRequest({sdp:t.mediaProperties.peerConnection.sdp,roapSeq:t.meeting.roapSeq,meeting:t.meeting})})).catch((function(e){Ke.logger.error("Meeting:util#updateTransceiver --\x3e Error updating the ".concat(r," streams with error: ").concat(e))})):o?(a.sender.replaceTrack(o),R().resolve()):R().reject(new no("update Failed: please pass valid parameter"))},validateOptions:function(e){var t=e.sendVideo,r=e.sendAudio,n=e.sendShare,i=e.localStream,o=e.localShare;return t&&!Rs.getTrack(i).videoTrack?R().reject(new no("please pass valid video streams")):r&&!Rs.getTrack(i).audioTrack?R().reject(new no("please pass valid audio streams")):n&&!Rs.getTrack(o).videoTrack?R().reject(new no("please pass valid share streams")):R().resolve()},getTrack:function(e){var t=null,r=null,n=null,i=null;if(!e)return{audioTrack:null,videoTrack:null};if(e.getAudioTracks&&(n=e.getAudioTracks()),e.getVideoTracks&&(i=e.getVideoTracks()),n&&n.length>0){var o=n;t=(0,cs.Z)(o,1)[0]}if(i&&i.length>0){var a=i;r=(0,cs.Z)(a,1)[0]}return{audioTrack:t,videoTrack:r}},getModeratorFromLocusInfo:function(e){return e&&e.parsedLocus&&e.parsedLocus.info&&e.parsedLocus.info&&e.parsedLocus.info.moderator},getPolicyFromLocusInfo:function(e){return e&&e.parsedLocus&&e.parsedLocus.info&&e.parsedLocus.info&&e.parsedLocus.info.policy},getUserDisplayHintsFromLocusInfo:function(e){var t,r;return(null==e||null===(t=e.parsedLocus)||void 0===t||null===(r=t.info)||void 0===r?void 0:r.userDisplayHints)||[]},canInviteNewParticipants:function(e){return e.includes(Vn.ADD_GUEST)},canAdmitParticipant:function(e){return e.includes(Vn.ROSTER_WAITING_TO_JOIN)},canUserLock:function(e){return e.includes(Vn.LOCK_CONTROL_LOCK)&&e.includes(Vn.LOCK_STATUS_UNLOCKED)},canUserUnlock:function(e){return e.includes(Vn.LOCK_CONTROL_UNLOCK)&&e.includes(Vn.LOCK_STATUS_LOCKED)},canUserRaiseHand:function(e){return e.includes(Vn.RAISE_HAND)},canUserLowerAllHands:function(e){return e.includes(Vn.LOWER_ALL_HANDS)},canUserLowerSomeoneElsesHand:function(e){return e.includes(Vn.LOWER_SOMEONE_ELSES_HAND)},bothLeaveAndEndMeetingAvailable:function(e){return e.includes(Vn.LEAVE_TRANSFER_HOST_END_MEETING)||e.includes(Vn.LEAVE_END_MEETING)},lockMeeting:function(e,t,r){return e&&e.canLock?t.lockMeeting({locusUrl:r,lock:!0}):R().reject(new ms("Lock not allowed, due to joined property."))},unlockMeeting:function(e,t,r){return e&&e.canUnlock?t.lockMeeting({locusUrl:r,lock:!1}):R().reject(new ms("Unlock not allowed, due to joined property."))},handleAudioLogging:function(e){var t="MeetingUtil#handleAudioLogging --\x3e";if(e){var r=e.getSettings(),n=r.deviceId;Ke.logger.log(t,"deviceId = ".concat(n)),Ke.logger.log(t,"settings =",uo()(r))}},handleVideoLogging:function(e){var t="MeetingUtil#handleVideoLogging --\x3e";if(e){var r=e.getSettings(),n=r.deviceId;Ke.logger.log(t,"deviceId = ".concat(n)),Ke.logger.log(t,"settings =",uo()(r))}},handleDeviceLogging:function(){var e="MeetingUtil#handleDeviceLogging --\x3e";(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){Ke.logger.log(e,"deviceId = ".concat(t.deviceId)),Ke.logger.log(e,"settings",uo()(t))}))},endMeetingForAll:function(e){if(e.meetingState===kn.INACTIVE)return R().reject(new Bo);var t={locusUrl:e.locusUrl};return e.meetingRequest.endMeetingForAll(t).then((function(t){return t&&t.body&&t.body.locus&&e.locusInfo.onFullLocus(t.body.locus),R().resolve()})).then((function(){return Rs.cleanUp(e)})).catch((function(t){return Ke.logger.error("Meeting:util#endMeetingForAll An error occured while trying to end meeting for all with an id of ".concat(e.id,", error: ").concat(t)),R().reject(t)}))},canEnableClosedCaption:function(e){return e.includes(Vn.CAPTION_START)},canStartTranscribing:function(e){return e.includes(Vn.TRANSCRIPTION_CONTROL_START)},canStopTranscribing:function(e){return e.includes(Vn.TRANSCRIPTION_CONTROL_STOP)},isClosedCaptionActive:function(e){return e.includes(Vn.CAPTION_STATUS_ACTIVE)},isWebexAssistantActive:function(e){return e.includes(Vn.WEBEX_ASSISTANT_STATUS_ACTIVE)},canViewCaptionPanel:function(e){return e.includes(Vn.ENABLE_CAPTION_PANEL)},isRealTimeTranslationEnabled:function(e){return e.includes(Vn.DISPLAY_REAL_TIME_TRANSLATION)},canSelectSpokenLanguages:function(e){return e.includes(Vn.DISPLAY_NON_ENGLISH_ASR)},waitingForOthersToJoin:function(e){return e.includes(Vn.WAITING_FOR_OTHERS)}};const Ts=Rs;var ws=r(13311),Is=r.n(ws),xs=r(47037),As=r.n(xs),Cs=function(){function e(t){if((0,p.Z)(this,e),(0,E.Z)(this,"namespace","Meetings"),(0,E.Z)(this,"propertyName",void 0),!t||!As()(t))throw new no("Collection expects a string to use as a property name.");this.propertyName=t,this[this.propertyName]={}}return(0,h.Z)(e,[{key:"get",value:function(e){return this[this.propertyName]&&this[this.propertyName][e]?this[this.propertyName][e]:null}},{key:"set",value:function(e,t){return this[this.propertyName][e]=t,this.get(e)}},{key:"delete",value:function(e){delete this[this.propertyName][e]}},{key:"getAll",value:function(){return this[this.propertyName]}},{key:"setAll",value:function(e){return this[this.propertyName]=e,this.getAll()}}]),e}();function Os(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var ks=function(e){(0,m.Z)(r,e);var t=Os(r);function r(){var e;return(0,p.Z)(this,r),e=t.call(this,"meetingInfos"),(0,E.Z)((0,v.Z)(e),"namespace",Hr),e}return(0,h.Z)(r,[{key:"get",value:function(e){return this.meetingInfos[e]?this.meetingInfos[e]:Is()(this.meetingInfos,(function(t){return t.sipUrl===e||t.locusId===e||t.userId===e||t.meetingLink===e}))}}]),r}(Cs),Ns=r(8575),Ls=r(50706),Ps=r.n(Ls),Ms={extractDestination:function(e,t){var r=e;if(t===fr){if(!e||!e.url)throw new no("You cannot create a meeting by locus without a locus.url defined");r=e.url}return r},getParsedUrl:function(e){try{var t=Ns.parse(e);return!!t&&(t.protocol||(t=Ns.parse("".concat(qr).concat(e))),t)}catch(e){return Ke.logger.warn("Meeting-info:util#getParsedUrl --\x3e unable to parse the URL, error: ".concat(e)),null}},isMeetingLink:function(e){var t=Ms.getParsedUrl(e),r=t.hostname&&t.hostname.includes(Yr),n=t.pathname&&(t.pathname.includes("/".concat(Nt))||t.pathname.includes("/".concat(Lt))||t.pathname.includes("/".concat(Rt)));return r&&n},isConversationUrl:function(e,t){var r=t.internal.services.getClusterId(e);return!!r&&r.endsWith(Jr)},convertLinkToSip:function(e){var t,r,n=Ms.getParsedUrl(e);if(!n)return null;if(n.pathname){var i=n.pathname.lastIndexOf("/");t=n.pathname.substring(i+1)}if(!t)return null;if(n.hostname){var o=n.hostname.lastIndexOf(".".concat(Yr));r=n.hostname.substring(0,o).replace(Kr,"")}return r?"".concat(t,"@").concat(r,".").concat(Yr):null},isSipUri:function(e){return ln.SIP_ADDRESS.exec(e)},isPhoneNumber:function(e){return ln.PHONE_NUMBER.test(e)},getHydraId:function(e){var t=(0,Qe.deconstructHydraId)(e),r=t.type,n=t.id,i=t.cluster;return n&&mn.test(n)?r===Cr?{room:!0,destination:n,cluster:i}:r===Tr?{people:!0,destination:n,cluster:i}:{}:{}},getSipUriFromHydraPersonId:function(e,t){return t.people.get(e).then((function(e){if(e.emails&&e.emails.length)return e.emails[0];throw new no("Hydra Id Lookup was an invalid hydra person id.")})).catch((function(e){throw Ke.logger.error("Meeting-info:util#MeetingInfoUtil.getSipUriFromHydraPersonId --\x3e getSipUriFromHydraPersonId ".concat(e," ")),e}))}};Ms.generateOptions=function(){var e=(0,f.Z)(_().mark((function e(t){var r,n,i,o,a,s;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.destination,n=t.type,i=t.webex,!n){e.next=3;break}return e.abrupt("return",{destination:r,type:n});case 3:if(o={},a=Ms.getHydraId(r),!Ms.isMeetingLink(r)){e.next=11;break}Ke.logger.warn("Meeting-info:util#generateOptions --\x3e WARN, use of Meeting Link is deprecated, please use a SIP URI instead"),o.type=hr,o.destination=r,e.next=47;break;case 11:if(!Ms.isSipUri(r)){e.next=16;break}o.type=kr,o.destination=r,e.next=47;break;case 16:if(!Ms.isPhoneNumber(r)){e.next=21;break}o.type=kr,o.destination=r,e.next=47;break;case 21:if(!Ms.isConversationUrl(r,i)){e.next=26;break}o.type=tr,o.destination=r,e.next=47;break;case 26:if(!a.people){e.next=31;break}return o.type=kr,e.abrupt("return",Ms.getSipUriFromHydraPersonId(a.destination,i).then((function(e){return o.destination=e,o.wasHydraPerson=!0,R().resolve(o)})));case 31:if(!a.room){e.next=46;break}return o.type=tr,e.prev=33,e.next=36,i.internal.services.waitForCatalog("postauth");case 36:s=i.internal.services.getServiceUrlFromClusterId({cluster:a.cluster},i),o.destination=a.destination?"".concat(s,"/conversations/").concat(a.destination):s,e.next=44;break;case 40:throw e.prev=40,e.t0=e.catch(33),Ke.logger.error("Meeting-info:util#generateOptions --\x3e ".concat(e.t0)),e.t0;case 44:e.next=47;break;case 46:throw new no("MeetingInfo is fetched with meeting link, sip uri, phone number, hydra room id, hydra people id, or a conversation url.");case 47:return e.abrupt("return",R().resolve(o));case 48:case"end":return e.stop()}}),e,null,[[33,40]])})));return function(t){return e.apply(this,arguments)}}(),Ms.getResourceUrl=function(e,t){var r="/".concat(xt,"/").concat(kt),n=Nn.GET,i=null;switch(e){case kr:case Rr:case yr:r="/".concat(xt,"/").concat(kt,"/").concat(encodeURIComponent(t),"?").concat(Wt,"=").concat(e,"&").concat($r);break;case tr:n=Nn.PUT;break;case fr:i="".concat(t,"/").concat(kt),n=Nn.PUT;break;case hr:r="$/".concat(xt,"/").concat(kt,"/").concat(Ps()(t),"?").concat(Wt,"=").concat(hr,"&").concat($r)}return{uri:i,resource:r,method:n}},Ms.getRequestParams=function(e,t,r,n){var i={method:e.method,api:n,resource:e.resource};return e.method===Nn.GET?i.resource=i.resource.concat("&".concat(Gr)):t!==fr?(i.resource=i.resource.concat("?".concat(Gr)),i.body={value:r,lookupType:t}):t===fr&&(i={method:e.method,uri:e.uri}),i};const Ds=Ms;var Us=function(){function e(t){(0,p.Z)(this,e),(0,E.Z)(this,"webex",void 0),this.webex=t}return(0,h.Z)(e,[{key:"fetchMeetingInfo",value:function(e){if(!e||!e.type||!e.destination)throw new no("MeetingInfo should be fetched with a type and destination specified, see list of valid types and their corresponding values in constants");var t=Ds.getResourceUrl(e.type,e.destination),r=Ds.getRequestParams(t,e.type,e.destination,gn.LOCUS);return this.webex.request(r)}}]),e}(),js=function(){function e(t){(0,p.Z)(this,e),(0,E.Z)(this,"meetingInfoCollection",void 0),(0,E.Z)(this,"meetingInfoRequest",void 0),(0,E.Z)(this,"webex",void 0),this.webex=t,this.meetingInfoRequest=new Us(this.webex),this.meetingInfoCollection=new ks}return(0,h.Z)(e,[{key:"getMeetingInfo",value:function(e){return this.meetingInfoCollection.get(e)}},{key:"setMeetingInfo",value:function(e,t){this.meetingInfoCollection.set(e,t)}},{key:"requestFetchInfo",value:function(e){var t=this;return this.meetingInfoRequest.fetchMeetingInfo(e).then((function(e){return e&&e.body&&t.setMeetingInfo(e.body.sipMeetingUri||e.body.meetingLink,e.body),e})).catch((function(e){return Ke.logger.error("Meeting-info:index#requestFetchInfo --\x3e ".concat(e," fetch meetingInfo")),R().reject(e)}))}},{key:"fetchInfoOptions",value:function(e,t){return Ds.generateOptions({destination:e,type:t,webex:this.webex})}},{key:"fetchMeetingInfo",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return r!==Rr||e||(e=this.webex.internal.device.userId),this.fetchInfoOptions(Ds.extractDestination(e,r),r).then((function(r){return t.requestFetchInfo(r).catch((function(n){return r.type===hr?t.requestFetchInfo(t.fetchInfoOptions(Ds.convertLinkToSip(e),kr)):R().reject(n)}))}))}}]),e}(),Fs={getParsedUrl:function(e){try{var t=Ns.parse(e);return!!t&&(t.protocol||(t=Ns.parse("".concat(qr).concat(e))),t)}catch(e){return Ke.logger.warn("Meeting-info:util#getParsedUrl --\x3e unable to parse the URL, error: ".concat(e)),null}},isMeetingLink:function(e){var t=Fs.getParsedUrl(e),r=t.hostname&&t.hostname.includes(Yr),n=t.pathname&&(t.pathname.includes("/".concat(Nt))||t.pathname.includes("/".concat(Lt))||t.pathname.includes("/".concat(Rt)));return r&&n},isConversationUrl:function(e,t){var r=t.internal.services.getClusterId(e);return!!r&&r.endsWith(Jr)},isSipUri:function(e){return ln.SIP_ADDRESS.exec(e)},isPhoneNumber:function(e){return ln.PHONE_NUMBER.test(e)},getHydraId:function(e){var t=(0,Qe.deconstructHydraId)(e),r=t.type,n=t.id,i=t.cluster;return n&&mn.test(n)?r===Cr?{room:!0,destination:n,cluster:i}:r===Tr?{people:!0,destination:n,cluster:i}:{}:{}},getSipUriFromHydraPersonId:function(e,t){return t.people.get(e).then((function(e){if(e.emails&&e.emails.length)return e.emails[0];throw new no("Hydra Id Lookup was an invalid hydra person id.")})).catch((function(e){throw Ke.logger.error("Meeting-info:util#MeetingInfoUtil.getSipUriFromHydraPersonId --\x3e getSipUriFromHydraPersonId ".concat(e," ")),e}))}};Fs.getDestinationType=function(){var e=(0,f.Z)(_().mark((function e(t){var r,n,i,o,a,s,c,u,l,d,f;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.type,n=t.webex,i=t.destination,r!==Rr){e.next=15;break}if(i){e.next=7;break}i={userId:n.internal.device.userId,orgId:n.internal.device.orgId},e.next=15;break;case 7:return o=fn.test(i)?{email:i}:{id:i},e.next=10,n.people.list(o);case 10:a=e.sent,s=a.items[0],c=s.orgId,u=s.id,u=(0,Qe.deconstructHydraId)(u).id,c=(0,Qe.deconstructHydraId)(c).id,i={userId:u,orgId:c};case 15:if(!r){e.next=17;break}return e.abrupt("return",{destination:i,type:r});case 17:if(l={},d=n&&n.config&&n.config.meetings&&n.config.meetings.disableHydraId?null:Fs.getHydraId(i),!Fs.isMeetingLink(i)){e.next=25;break}Ke.logger.warn("Meeting-info:util#generateOptions --\x3e WARN, use of Meeting Link is deprecated, please use a SIP URI instead"),l.type=hr,l.destination=i,e.next=62;break;case 25:if(!Fs.isSipUri(i)){e.next=30;break}l.type=kr,l.destination=i,e.next=62;break;case 30:if(!Fs.isPhoneNumber(i)){e.next=35;break}l.type=kr,l.destination=i,e.next=62;break;case 35:if(!Fs.isConversationUrl(i,n)){e.next=40;break}l.type=tr,l.destination=i,e.next=62;break;case 40:if(!d||!d.people){e.next=45;break}return l.type=kr,e.abrupt("return",Fs.getSipUriFromHydraPersonId(d&&d.destination,n).then((function(e){return l.destination=e,l.wasHydraPerson=!0,R().resolve(l)})));case 45:if(!d||!d.room){e.next=60;break}return l.type=tr,e.prev=47,e.next=50,n.internal.services.waitForCatalog("postauth");case 50:f=n.internal.services.getServiceUrlFromClusterId({cluster:d.cluster},n),l.destination=d.destination?"".concat(f,"/conversations/").concat(d.destination):f,e.next=58;break;case 54:throw e.prev=54,e.t0=e.catch(47),Ke.logger.error("Meeting-info:util#getDestinationType --\x3e ".concat(e.t0)),e.t0;case 58:e.next=62;break;case 60:throw Ke.logger.warn("Meeting-info:util#getDestinationType --\x3e ('MeetingInfo is fetched with meeting link, sip uri, phone number, hydra room id, hydra people id, or a conversation url."),new no("MeetingInfo is fetched with meeting link, sip uri, phone number, hydra room id, hydra people id, or a conversation url.");case 62:return e.abrupt("return",R().resolve(l));case 63:case"end":return e.stop()}}),e,null,[[47,54]])})));return function(t){return e.apply(this,arguments)}}(),Fs.getRequestBody=function(e){var t,r,n=e.type,i=e.destination,o=e.password,a=e.captchaInfo,s={supportHostKey:!0,supportCountryList:!0};switch(n){case kr:s.sipUrl=i;break;case Rr:s.userId=i.userId,s.orgId=i.orgId;break;case yr:s.meetingKey=i;break;case tr:s.conversationUrl=i;break;case fr:null!==(t=i.info)&&void 0!==t&&t.webExMeetingId?s.meetingKey=i.info.webExMeetingId:null!==(r=i.info)&&void 0!==r&&r.sipUri&&(s.sipUrl=i.info.sipUri);break;case hr:s.meetingUrl=i;break;case vr:s.meetingUUID=i}return o&&(s.password=o),a&&(s.captchaID=a.id,s.captchaVerifyCode=a.code),s},Fs.getWebexSite=function(e){var t,r=null==e||null===(t=e.match(/.+@([^.]+\.[^.]+\.[^.]+)$/))||void 0===t?void 0:t[1];return["meet.webex.com","meetup.webex.com","ciscospark.com"].includes(r)?null:r},Fs.getDirectMeetingInfoURI=function(e){var t,r=e.type,n=e.destination,i=null;switch(r){case kr:i=Fs.getWebexSite(n);break;case fr:i=null===(t=n.info)||void 0===t?void 0:t.webExSite}return i?"https://".concat(i,"/wbxappapi/v1/meetingInfo"):null};const Bs=Fs;function Zs(e,t){var r=x()(e);if(fo()){var n=fo()(e);t&&(n=n.filter((function(t){return ho()(e,t).enumerable}))),r.push.apply(r,n)}return r}function Vs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zs(Object(r),!0).forEach((function(t){(0,E.Z)(e,t,r[t])})):mo()?yo()(e,mo()(r)):Zs(Object(r)).forEach((function(t){So()(e,t,ho()(r,t))}))}return e}function Gs(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var qs=[423005,423006],Hs=function(e){(0,m.Z)(r,e);var t=Gs(r);function r(e,n){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Password required. Call fetchMeetingInfo() with password argument";return(0,p.Z)(this,r),i=t.call(this,"".concat(o,", code=").concat(e)),(0,E.Z)((0,v.Z)(i),"meetingInfo",void 0),(0,E.Z)((0,v.Z)(i),"sdkMessage",void 0),(0,E.Z)((0,v.Z)(i),"wbxAppApiCode",void 0),(0,E.Z)((0,v.Z)(i),"body",void 0),i.name="MeetingInfoV2PasswordError",i.sdkMessage=o,i.stack=(new Error).stack,i.wbxAppApiCode=e,i.meetingInfo=n,i}return(0,h.Z)(r)}((0,to.Z)(Error)),Ws=function(e){(0,m.Z)(r,e);var t=Gs(r);function r(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Failed starting the adhoc meeting, Please contact support team ";return(0,p.Z)(this,r),n=t.call(this,"".concat(i,", code=").concat(e)),(0,E.Z)((0,v.Z)(n),"sdkMessage",void 0),(0,E.Z)((0,v.Z)(n),"wbxAppApiCode",void 0),n.name="MeetingInfoV2AdhocMeetingError",n.sdkMessage=i,n.stack=(new Error).stack,n.wbxAppApiCode=e,n}return(0,h.Z)(r)}((0,to.Z)(Error)),zs=function(e){(0,m.Z)(r,e);var t=Gs(r);function r(e,n){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Captcha required. Call fetchMeetingInfo() with captchaInfo argument";return(0,p.Z)(this,r),i=t.call(this,"".concat(o,", code=").concat(e)),(0,E.Z)((0,v.Z)(i),"captchaInfo",void 0),(0,E.Z)((0,v.Z)(i),"isPasswordRequired",void 0),(0,E.Z)((0,v.Z)(i),"sdkMessage",void 0),(0,E.Z)((0,v.Z)(i),"wbxAppApiCode",void 0),(0,E.Z)((0,v.Z)(i),"body",void 0),i.name="MeetingInfoV2PasswordError",i.sdkMessage=o,i.stack=(new Error).stack,i.wbxAppApiCode=e,i.isPasswordRequired=qs.includes(e),i.captchaInfo=n,i}return(0,h.Z)(r)}((0,to.Z)(Error)),$s=function(){function e(t){(0,p.Z)(this,e),(0,E.Z)(this,"webex",void 0),this.webex=t}var t,r;return(0,h.Z)(e,[{key:"fetchInfoOptions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Bs.getDestinationType({destination:e,type:t,webex:this.webex})}},{key:"createAdhocSpaceMeeting",value:(r=(0,f.Z)(_().mark((function e(t){var r,n=this;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.webex.meetings.preferredWebexSite){e.next=2;break}throw Error("No preferred webex site found");case 2:return r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[];return e&&e.forEach((function(e){t.push({email:e.emailAddress,ciUserUuid:e.entryUUID})})),t},e.abrupt("return",this.webex.request(t).then((function(e){var t,i=e.body,o={title:i.displayName,spaceUrl:i.url,keyUrl:i.encryptionKeyUrl,kroUrl:i.kmsResourceObjectUrl,invitees:r(null===(t=i.participants)||void 0===t?void 0:t.items)},a=n.webex.meetings.preferredWebexSite?"https://".concat(n.webex.meetings.preferredWebexSite,"/wbxappapi/v2/meetings/spaceInstant"):"";return Ki.sendBehavioralMetric(Lo.ADHOC_MEETING_SUCCESS),n.webex.request({method:Nn.POST,uri:a,body:o})})).catch((function(e){var t,r;throw Ki.sendBehavioralMetric(Lo.ADHOC_MEETING_FAILURE,{reason:e.message,stack:e.stack}),new Ws(null===(t=e.body)||void 0===t?void 0:t.code,null===(r=e.body)||void 0===r?void 0:r.message)})));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"fetchMeetingInfo",value:(t=(0,f.Z)(_().mark((function e(t){var r,n,i,o,a,s,c,u=arguments;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=u.length>1&&void 0!==u[1]?u[1]:null,n=u.length>2&&void 0!==u[2]?u[2]:null,i=u.length>3&&void 0!==u[3]?u[3]:null,e.next=5,Bs.getDestinationType({destination:t,type:r,webex:this.webex});case 5:if((o=e.sent).type!==tr||!this.webex.config.meetings.experimental.enableAdhocMeetings||!this.webex.meetings.preferredWebexSite){e.next=8;break}return e.abrupt("return",this.createAdhocSpaceMeeting(o.destination));case 8:return e.next=10,Bs.getRequestBody(Vs(Vs({},o),{},{password:n,captchaInfo:i}));case 10:return a=e.sent,s={method:Nn.POST,body:a},e.next=14,Bs.getDirectMeetingInfoURI(o);case 14:return(c=e.sent)?s.uri=c:(s.service=Qr,s.resource="meetingInfo"),e.abrupt("return",this.webex.request(s).then((function(e){return Ki.sendBehavioralMetric(Lo.FETCH_MEETING_INFO_V1_SUCCESS),e})).catch((function(e){var t,r,n,i;if(403===(null==e?void 0:e.statusCode))throw Ki.sendBehavioralMetric(Lo.VERIFY_PASSWORD_ERROR,{reason:e.message,stack:e.stack}),new Hs(null===(t=e.body)||void 0===t?void 0:t.code,null===(r=e.body)||void 0===r||null===(n=r.data)||void 0===n?void 0:n.meetingInfo);if(423===(null==e?void 0:e.statusCode))throw Ki.sendBehavioralMetric(Lo.VERIFY_CAPTCHA_ERROR,{reason:e.message,stack:e.stack}),new zs(null===(i=e.body)||void 0===i?void 0:i.code,{captchaId:e.body.captchaID,verificationImageURL:e.body.verificationImageURL,verificationAudioURL:e.body.verificationAudioURL,refreshURL:e.body.refreshURL});throw Ki.sendBehavioralMetric(Lo.FETCH_MEETING_INFO_V1_FAILURE,{reason:e.message,stack:e.stack}),e})));case 17:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),Ks=r(13682),Ys=r(78718),Js=r.n(Ys),Qs=r(18446),Xs=r.n(Qs),ec=r(50361),tc=r.n(ec);function rc(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function nc(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){rc(o,n,i,a,s,"next",e)}function s(e){rc(o,n,i,a,s,"throw",e)}a(void 0)}))}}function ic(e){return ic="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},ic(e)}function oc(e){var t=function(e,t){if("object"!==ic(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==ic(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ic(t)?t:String(t)}function ac(e,t,r){return(t=oc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sc(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function cc(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,sc(e,t,"get"))}function uc(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,sc(e,t,"set"),r),r}function lc(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(r){if("default"!==r&&!(r in e)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}))})),Object.freeze(e)}var dc=void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function fc(){throw new Error("setTimeout has not been defined")}function pc(){throw new Error("clearTimeout has not been defined")}var hc=fc,vc=pc;function mc(e){if(hc===setTimeout)return setTimeout(e,0);if((hc===fc||!hc)&&setTimeout)return hc=setTimeout,setTimeout(e,0);try{return hc(e,0)}catch(t){try{return hc.call(null,e,0)}catch(t){return hc.call(this,e,0)}}}"function"==typeof dc.setTimeout&&(hc=setTimeout),"function"==typeof dc.clearTimeout&&(vc=clearTimeout);var gc,yc=[],Ec=!1,Sc=-1;function _c(){Ec&&gc&&(Ec=!1,gc.length?yc=gc.concat(yc):Sc=-1,yc.length&&bc())}function bc(){if(!Ec){var e=mc(_c);Ec=!0;for(var t=yc.length;t;){for(gc=yc,yc=[];++Sc<t;)gc&&gc[Sc].run();Sc=-1,t=yc.length}gc=null,Ec=!1,function(e){if(vc===clearTimeout)return clearTimeout(e);if((vc===pc||!vc)&&clearTimeout)return vc=clearTimeout,clearTimeout(e);try{return vc(e)}catch(t){try{return vc.call(null,e)}catch(t){return vc.call(this,e)}}}(e)}}function Rc(e,t){this.fun=e,this.array=t}Rc.prototype.run=function(){this.fun.apply(null,this.array)};function Tc(){}var wc=Tc,Ic=Tc,xc=Tc,Ac=Tc,Cc=Tc,Oc=Tc,kc=Tc;var Nc=dc.performance||{},Lc=Nc.now||Nc.mozNow||Nc.msNow||Nc.oNow||Nc.webkitNow||function(){return(new Date).getTime()};var Pc=new Date;var Mc={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];yc.push(new Rc(e,t)),1!==yc.length||Ec||mc(bc)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:wc,addListener:Ic,once:xc,off:Ac,removeListener:Cc,removeAllListeners:Oc,emit:kc,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*Lc.call(Nc),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Pc)/1e3}},Dc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},Uc={exports:{}};!function(e){!function(){var t,r="Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45";if(E="object"==typeof Mc&&"object"==typeof Mc.versions&&Mc.versions.node&&!Mc.browser){var n=Mc.versions.node.toString().replace("v","");r="Nodejs/"+n+" (NodeOS) AppleWebKit/"+n+" (KHTML, like Gecko) Nodejs/"+n+" Nodejs/"+n}t=void 0!==Dc?Dc:window,"undefined"==typeof window&&("undefined"==typeof window&&void 0!==Dc&&(Dc.navigator={userAgent:r,getUserMedia:function(){}},t.window=Dc),"undefined"==typeof location&&(t.location={protocol:"file:",href:"",hash:""}),"undefined"==typeof screen&&(t.screen={width:0,height:0}));var i=window.navigator;void 0!==i?(void 0!==i.webkitGetUserMedia&&(i.getUserMedia=i.webkitGetUserMedia),void 0!==i.mozGetUserMedia&&(i.getUserMedia=i.mozGetUserMedia)):i={getUserMedia:function(){},userAgent:r};var o=!!/Android|webOS|iPhone|iPad|iPod|BB10|BlackBerry|IEMobile|Opera Mini|Mobile|mobile/i.test(i.userAgent||""),a=!(-1===i.userAgent.indexOf("Edge")||!i.msSaveOrOpenBlob&&!i.msSaveBlob),s=!!window.opera||i.userAgent.indexOf(" OPR/")>=0,c=i.userAgent.toLowerCase().indexOf("firefox")>-1&&"netscape"in window&&/ rv:/.test(i.userAgent),u=/^((?!chrome|android).)*safari/i.test(i.userAgent),l=!!window.chrome&&!s,d="undefined"!=typeof document&&!!document.documentMode&&!a;function f(e,t){var r=0,n=!1,i=window.setInterval((function(){e()&&(window.clearInterval(i),t(n)),r++>50&&(window.clearInterval(i),t(n=!0))}),10)}var p={Android:function(){return i.userAgent.match(/Android/i)},BlackBerry:function(){return i.userAgent.match(/BlackBerry|BB10/i)},iOS:function(){return i.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return i.userAgent.match(/Opera Mini/i)},Windows:function(){return i.userAgent.match(/IEMobile/i)},any:function(){return p.Android()||p.BlackBerry()||p.iOS()||p.Opera()||p.Windows()},getOsName:function(){var e="Unknown OS";return p.Android()&&(e="Android"),p.BlackBerry()&&(e="BlackBerry"),p.iOS()&&(e="iOS"),p.Opera()&&(e="Opera Mini"),p.Windows()&&(e="Windows"),e}};var h="Unknown OS",v="Unknown OS Version";var m,g,y=function(){for(var e,t=i.appVersion,r=i.userAgent,n="-",o=[{s:"Chrome OS",r:/CrOS/},{s:"Windows 10",r:/(Windows 10.0|Windows NT 10.0)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Windows Vista",r:/Windows NT 6.0/},{s:"Windows Server 2003",r:/Windows NT 5.2/},{s:"Windows XP",r:/(Windows NT 5.1|Windows XP)/},{s:"Windows 2000",r:/(Windows NT 5.0|Windows 2000)/},{s:"Windows ME",r:/(Win 9x 4.90|Windows ME)/},{s:"Windows 98",r:/(Windows 98|Win98)/},{s:"Windows 95",r:/(Windows 95|Win95|Windows_95)/},{s:"Windows NT 4.0",r:/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/},{s:"Windows CE",r:/Windows CE/},{s:"Windows 3.11",r:/Win16/},{s:"Android",r:/Android/},{s:"Open BSD",r:/OpenBSD/},{s:"Sun OS",r:/SunOS/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/},{s:"QNX",r:/QNX/},{s:"UNIX",r:/UNIX/},{s:"BeOS",r:/BeOS/},{s:"OS/2",r:/OS\/2/},{s:"Search Bot",r:/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/}],a=0;e=o[a];a++)if(e.r.test(r)){n=e.s;break}var s="-";switch(/Windows/.test(n)&&(/Windows (.*)/.test(n)&&(s=/Windows (.*)/.exec(n)[1]),n="Windows"),n){case"Mac OS X":/Mac OS X (10[\.\_\d]+)/.test(r)&&(s=/Mac OS X (10[\.\_\d]+)/.exec(r)[1]);break;case"Android":/Android ([\.\_\d]+)/.test(r)&&(s=/Android ([\.\_\d]+)/.exec(r)[1]);break;case"iOS":/OS (\d+)_(\d+)_?(\d+)?/.test(r)&&(s=/OS (\d+)_(\d+)_?(\d+)?/.exec(t))&&s.length>3&&(s=s[1]+"."+s[2]+"."+(0|s[3]))}return{osName:n,osVersion:s}}();y&&y.osName&&"-"!=y.osName?(h=y.osName,v=y.osVersion):p.any()&&"Android"==(h=p.getOsName())&&(v=!!(g=(m=(m||i.userAgent).toLowerCase()).match(/android\s([0-9\.]*)/))&&g[1]);var E="object"==typeof Mc&&"object"==typeof Mc.versions&&Mc.versions.node;"Unknown OS"===h&&E&&(h="Nodejs",v=Mc.versions.node.toString().replace("v",""));var S=!1,_=!1;["captureStream","mozCaptureStream","webkitCaptureStream"].forEach((function(e){"undefined"!=typeof document&&"function"==typeof document.createElement&&(!S&&e in document.createElement("canvas")&&(S=!0),!_&&e in document.createElement("video")&&(_=!0))}));var b=/^(192\.168\.|169\.254\.|10\.|172\.(1[6-9]|2\d|3[01]))/,R=/([0-9]{1,3}(\.[0-9]{1,3}){3})/,T=/[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7}/;var w=[],I=[],x=[],A=[];i.mediaDevices&&i.mediaDevices.enumerateDevices&&(i.enumerateDevices=function(e){var t=i.mediaDevices.enumerateDevices();t&&t.then?i.mediaDevices.enumerateDevices().then(e).catch((function(){e([])})):e([])});var C=!1;("undefined"!=typeof MediaStreamTrack&&"getSources"in MediaStreamTrack||i.mediaDevices&&i.mediaDevices.enumerateDevices)&&(C=!0);var O=!1,k=!1,N=!1,L=!1,P=!1;var M=window.DetectRTC||{};M.browser=function(){i.appVersion;var e,t,r,n=i.userAgent,o=i.appName,f=""+parseFloat(i.appVersion),p=parseInt(i.appVersion,10);if(s){o="Opera";try{p=(f=i.userAgent.split("OPR/")[1].split(" ")[0]).split(".")[0]}catch(e){f="0.0.0.0",p=0}}else d?((t=n.indexOf("rv:"))>0?f=n.substring(t+3):(t=n.indexOf("MSIE"),f=n.substring(t+5)),o="IE"):l?(t=n.indexOf("Chrome"),o="Chrome",f=n.substring(t+7)):u?-1!==n.indexOf("CriOS")?(t=n.indexOf("CriOS"),o="Chrome",f=n.substring(t+6)):-1!==n.indexOf("FxiOS")?(t=n.indexOf("FxiOS"),o="Firefox",f=n.substring(t+6)):(t=n.indexOf("Safari"),o="Safari",f=n.substring(t+7),-1!==(t=n.indexOf("Version"))&&(f=n.substring(t+8)),-1!==i.userAgent.indexOf("Version/")&&(f=i.userAgent.split("Version/")[1].split(" ")[0])):c?(t=n.indexOf("Firefox"),o="Firefox",f=n.substring(t+8)):(e=n.lastIndexOf(" ")+1)<(t=n.lastIndexOf("/"))&&(o=n.substring(e,t),f=n.substring(t+1),o.toLowerCase()===o.toUpperCase()&&(o=i.appName));return a&&(o="Edge",f=i.userAgent.split("Edge/")[1]),-1!==(r=f.search(/[; \)]/))&&(f=f.substring(0,r)),p=parseInt(""+f,10),isNaN(p)&&(f=""+parseFloat(i.appVersion),p=parseInt(i.appVersion,10)),{fullVersion:f,version:p,name:o,isPrivateBrowsing:!1}}(),function(e){var t;try{if(window.webkitRequestFileSystem)window.webkitRequestFileSystem(window.TEMPORARY,1,(function(){t=!1}),(function(e){t=!0}));else if(window.indexedDB&&/Firefox/.test(window.navigator.userAgent)){var r;try{(r=window.indexedDB.open("test")).onerror=function(){return!0}}catch(e){t=!0}void 0===t&&f((function(){return"done"===r.readyState}),(function(e){e||(t=!r.result)}))}else if(function(e){var t=e.toLowerCase();if(0===t.indexOf("msie")&&0===t.indexOf("trident"))return!1;var r=/(?:msie|rv:)\s?([\d\.]+)/.exec(t);return!!(r&&parseInt(r[1],10)>=10)}(window.navigator.userAgent)){t=!1;try{window.indexedDB||(t=!0)}catch(e){t=!0}}else if(window.localStorage&&/Safari/.test(window.navigator.userAgent)){try{window.localStorage.setItem("test",1)}catch(e){t=!0}void 0===t&&(t=!1,window.localStorage.removeItem("test"))}}catch(e){t=!1}f((function(){return void 0!==t}),(function(r){e(t)}))}((function(e){M.browser.isPrivateBrowsing=!!e})),M.browser["is"+M.browser.name]=!0,M.osName=h,M.osVersion=v,"object"==typeof Mc&&"object"==typeof Mc.versions&&Mc.versions["node-webkit"];var D=!1;["RTCPeerConnection","webkitRTCPeerConnection","mozRTCPeerConnection","RTCIceGatherer"].forEach((function(e){D||e in window&&(D=!0)})),M.isWebRTCSupported=D,M.isORTCSupported="undefined"!=typeof RTCIceGatherer;var U=!1;((M.browser.isChrome&&M.browser.version>=35||M.browser.isFirefox&&M.browser.version>=34||M.browser.isEdge&&M.browser.version>=17||"Android"===M.osName&&M.browser.isChrome)&&(U=!0),(i.getDisplayMedia||i.mediaDevices&&i.mediaDevices.getDisplayMedia)&&(U=!0),/^(https:|chrome-extension:)$/g.test(location.protocol||""))||("undefined"!=typeof document&&"string"==typeof document.domain&&document.domain.search&&-1===document.domain.search(/localhost|127.0./g)&&(M.browser.isChrome||M.browser.isEdge||M.browser.isOpera)||M.browser.isFirefox)&&(U=!1);M.isScreenCapturingSupported=U;var j={isSupported:!1,isCreateMediaStreamSourceSupported:!1};["AudioContext","webkitAudioContext","mozAudioContext","msAudioContext"].forEach((function(e){j.isSupported||e in window&&(j.isSupported=!0,window[e]&&"createMediaStreamSource"in window[e].prototype&&(j.isCreateMediaStreamSourceSupported=!0))})),M.isAudioContextSupported=j.isSupported,M.isCreateMediaStreamSourceSupported=j.isCreateMediaStreamSourceSupported;var F=!1;M.browser.isChrome&&M.browser.version>31&&(F=!0),M.isRtpDataChannelsSupported=F;var B=!1;(M.browser.isFirefox&&M.browser.version>28||M.browser.isChrome&&M.browser.version>25||M.browser.isOpera&&M.browser.version>=11)&&(B=!0),M.isSctpDataChannelsSupported=B,M.isMobileDevice=o;var Z=!1;(i.getUserMedia||i.mediaDevices&&i.mediaDevices.getUserMedia)&&(Z=!0),M.browser.isChrome&&M.browser.version>=46&&!/^(https:|chrome-extension:)$/g.test(location.protocol||"")&&"undefined"!=typeof document&&"string"==typeof document.domain&&document.domain.search&&-1===document.domain.search(/localhost|127.0./g)&&(Z="Requires HTTPs"),"Nodejs"===M.osName&&(Z=!1),M.isGetUserMediaSupported=Z;var V,G,q,H="";screen.width&&(H+=(screen.width?screen.width:"")+" x "+(screen.height?screen.height:""));M.displayResolution=H,M.displayAspectRatio=(V=screen.width,G=screen.height,q=function e(t,r){return 0==r?t:e(r,t%r)}(V,G),V/q/(G/q)).toFixed(2),M.isCanvasSupportsStreamCapturing=S,M.isVideoSupportsStreamCapturing=_,"Chrome"==M.browser.name&&M.browser.version>=53&&(M.isCanvasSupportsStreamCapturing||(M.isCanvasSupportsStreamCapturing="Requires chrome flag: enable-experimental-web-platform-features"),M.isVideoSupportsStreamCapturing||(M.isVideoSupportsStreamCapturing="Requires chrome flag: enable-experimental-web-platform-features")),M.DetectLocalIPAddress=function(e,t){if(M.isWebRTCSupported){var r=!0,n=!0;!function(e,t){if("undefined"==typeof document||"function"!=typeof document.getElementById)return;var r={},n=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection;if(!n){var i=document.getElementById("iframe");if(!i)return;var o=i.contentWindow;n=o.RTCPeerConnection||o.mozRTCPeerConnection||o.webkitRTCPeerConnection}if(!n)return;var a=null;"Chrome"===M.browser&&M.browser.version<58&&(a={optional:[{RtpDataChannels:!0}]});var s=new n({iceServers:[{urls:"stun:stun.l.google.com:19302"}]},a);t&&(s.addStream?s.addStream(t):s.addTrack&&t.getTracks()[0]&&s.addTrack(t.getTracks()[0],t));function c(t){if(t){var n=R.exec(t);if(n){var i=n[1],o=t.match(b),a=!0;void 0===r[i]&&e(i,o,a),r[i]=!0}}else e()}if(s.onicecandidate=function(e){e.candidate&&e.candidate.candidate?c(e.candidate.candidate):c()},!t)try{s.createDataChannel("sctp",{})}catch(e){}M.isPromisesSupported?s.createOffer().then((function(e){s.setLocalDescription(e).then(u)})):s.createOffer((function(e){s.setLocalDescription(e,u,(function(){}))}),(function(){}));function u(){s.localDescription.sdp.split("\n").forEach((function(e){e&&0===e.indexOf("a=candidate:")&&c(e)}))}}((function(t){t?t.match(b)?e("Local: "+t,r=!1,n):t.match(T)?e("Public: "+t,r,n=!1):e("Public: "+t,r,n):e()}),t)}},M.isWebSocketsSupported="WebSocket"in window&&2===window.WebSocket.CLOSING,M.isWebSocketsBlocked=!M.isWebSocketsSupported,"Nodejs"===M.osName&&(M.isWebSocketsSupported=!0,M.isWebSocketsBlocked=!1),M.checkWebSocketsSupport=function(e){e=e||function(){};try{var t,r=new WebSocket("wss://echo.websocket.org:443/");r.onopen=function(){M.isWebSocketsBlocked=!1,t=(new Date).getTime(),r.send("ping")},r.onmessage=function(){M.WebsocketLatency=(new Date).getTime()-t+"ms",e(),r.close(),r=null},r.onerror=function(){M.isWebSocketsBlocked=!0,e()}}catch(t){M.isWebSocketsBlocked=!0,e()}},M.load=function(e){!function(e){if(C)if(!i.enumerateDevices&&window.MediaStreamTrack&&window.MediaStreamTrack.getSources&&(i.enumerateDevices=window.MediaStreamTrack.getSources.bind(window.MediaStreamTrack)),!i.enumerateDevices&&i.enumerateDevices&&(i.enumerateDevices=i.enumerateDevices.bind(i)),i.enumerateDevices){w=[],I=[],x=[],A=[],O=!1,k=!1,N=!1,L=!1,P=!1;var t={};i.enumerateDevices((function(r){w=[],I=[],x=[],A=[],r.forEach((function(e){var r={};for(var n in e)try{"function"!=typeof e[n]&&(r[n]=e[n])}catch(e){}t[r.deviceId+r.label+r.kind]||("audio"===r.kind&&(r.kind="audioinput"),"video"===r.kind&&(r.kind="videoinput"),r.deviceId||(r.deviceId=r.id),r.id||(r.id=r.deviceId),r.label?("videoinput"!==r.kind||P||(P=!0),"audioinput"!==r.kind||L||(L=!0)):(r.isCustomLabel=!0,"videoinput"===r.kind?r.label="Camera "+(A.length+1):"audioinput"===r.kind?r.label="Microphone "+(I.length+1):"audiooutput"===r.kind?r.label="Speaker "+(x.length+1):r.label="Please invoke getUserMedia once.",void 0!==M&&M.browser.isChrome&&M.browser.version>=46&&!/^(https:|chrome-extension:)$/g.test(location.protocol||"")&&"undefined"!=typeof document&&"string"==typeof document.domain&&document.domain.search&&-1===document.domain.search(/localhost|127.0./g)&&(r.label="HTTPs is required to get label of this "+r.kind+" device.")),"audioinput"===r.kind&&(O=!0,-1===I.indexOf(r)&&I.push(r)),"audiooutput"===r.kind&&(k=!0,-1===x.indexOf(r)&&x.push(r)),"videoinput"===r.kind&&(N=!0,-1===A.indexOf(r)&&A.push(r)),w.push(r),t[r.deviceId+r.label+r.kind]=r)})),void 0!==M&&(M.MediaDevices=w,M.hasMicrophone=O,M.hasSpeakers=k,M.hasWebcam=N,M.isWebsiteHasWebcamPermissions=P,M.isWebsiteHasMicrophonePermissions=L,M.audioInputDevices=I,M.audioOutputDevices=x,M.videoInputDevices=A),e&&e()}))}else e&&e();else e&&e()}(e=e||function(){})},M.MediaDevices=void 0!==w?w:[],M.hasMicrophone=O,M.hasSpeakers=k,M.hasWebcam=N,M.isWebsiteHasWebcamPermissions=P,M.isWebsiteHasMicrophonePermissions=L,M.audioInputDevices=I,M.audioOutputDevices=x,M.videoInputDevices=A;var W=!1;"undefined"!=typeof document&&"function"==typeof document.createElement&&"setSinkId"in document.createElement("video")&&(W=!0),M.isSetSinkIdSupported=W;var z=!1;M.browser.isFirefox&&"undefined"!=typeof mozRTCPeerConnection?"getSenders"in mozRTCPeerConnection.prototype&&(z=!0):M.browser.isChrome&&"undefined"!=typeof webkitRTCPeerConnection&&"getSenders"in webkitRTCPeerConnection.prototype&&(z=!0),M.isRTPSenderReplaceTracksSupported=z;var $=!1;M.browser.isFirefox&&M.browser.version>38&&($=!0),M.isRemoteStreamProcessingSupported=$;var K=!1;"undefined"!=typeof MediaStreamTrack&&"applyConstraints"in MediaStreamTrack.prototype&&(K=!0),M.isApplyConstraintsSupported=K;var Y=!1;M.browser.isFirefox&&M.browser.version>=43&&(Y=!0),M.isMultiMonitorScreenCapturingSupported=Y,M.isPromisesSupported=!!("Promise"in window),M.version="1.4.1",void 0===M&&(window.DetectRTC={});var J=window.MediaStream;void 0===J&&"undefined"!=typeof webkitMediaStream&&(J=webkitMediaStream),M.MediaStream=void 0!==J&&"function"==typeof J&&Object.keys(J.prototype),"undefined"!=typeof MediaStreamTrack?M.MediaStreamTrack=Object.keys(MediaStreamTrack.prototype):M.MediaStreamTrack=!1;var Q=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection;M.RTCPeerConnection=void 0!==Q&&Object.keys(Q.prototype),window.DetectRTC=M,e.exports=M}()}(Uc);var jc,Fc="MEDIA",Bc="DEVICE",Zc="MEDIA_STREAM_TRACK",Vc={error:1,warn:2,info:3,debug:4},Gc="error",qc=(e,t)=>{Vc[e]<=Vc[Gc]&&console.log(((e,t)=>{var{ID:r,mediaType:n,action:i,description:o,error:a}=t,s=(new Date).toISOString(),c=a?a.stack?"".concat(a.message,": ").concat(a.stack):"".concat(a):"";return"".concat(s," ").concat(e," ").concat(r||""," ").concat(n," ").concat(i," ").concat(o," ").concat(c).replace(/\s+/g," ").trim()})(e,t))},Hc={info:e=>qc("info",e),warn:e=>qc("warn",e),error:e=>qc("error",e),debug:e=>qc("debug",e)},Wc=function(e){Hc[e]=t=>{var{ID:r,mediaType:n,action:i,description:o,error:a}=t;return Gc=e,qc(e,{ID:r,mediaType:n,action:i,description:o,error:a})}};for(var zc of["info","warn","error","debug"])Wc(zc);function $c(){}function Kc(){Kc.init.call(this)}function Yc(e){return void 0===e._maxListeners?Kc.defaultMaxListeners:e._maxListeners}function Jc(e,t,r,n){var i,o,a,s;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]):(o=e._events=new $c,e._eventsCount=0),a){if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),!a.warned&&(i=Yc(e))&&i>0&&a.length>i){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=o[t]=r,++e._eventsCount;return e}function Qc(e,t,r){var n=!1;function i(){e.removeListener(t,i),n||(n=!0,r.apply(e,arguments))}return i.listener=r,i}function Xc(e){var t=this._events;if(t){var r=t[e];if("function"==typeof r)return 1;if(r)return r.length}return 0}function eu(e,t){for(var r=new Array(t);t--;)r[t]=e[t];return r}function tu(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}$c.prototype=Object.create(null),Kc.EventEmitter=Kc,Kc.usingDomains=!1,Kc.prototype.domain=void 0,Kc.prototype._events=void 0,Kc.prototype._maxListeners=void 0,Kc.defaultMaxListeners=10,Kc.init=function(){this.domain=null,Kc.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new $c,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Kc.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},Kc.prototype.getMaxListeners=function(){return Yc(this)},Kc.prototype.emit=function(e){var t,r,n,i,o,a,s,c="error"===e;if(a=this._events)c=c&&null==a.error;else if(!c)return!1;if(s=this.domain,c){if(t=arguments[1],!s){if(t instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(r=a[e]))return!1;var l="function"==typeof r;switch(n=arguments.length){case 1:!function(e,t,r){if(t)e.call(r);else for(var n=e.length,i=eu(e,n),o=0;o<n;++o)i[o].call(r)}(r,l,this);break;case 2:!function(e,t,r,n){if(t)e.call(r,n);else for(var i=e.length,o=eu(e,i),a=0;a<i;++a)o[a].call(r,n)}(r,l,this,arguments[1]);break;case 3:!function(e,t,r,n,i){if(t)e.call(r,n,i);else for(var o=e.length,a=eu(e,o),s=0;s<o;++s)a[s].call(r,n,i)}(r,l,this,arguments[1],arguments[2]);break;case 4:!function(e,t,r,n,i,o){if(t)e.call(r,n,i,o);else for(var a=e.length,s=eu(e,a),c=0;c<a;++c)s[c].call(r,n,i,o)}(r,l,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),o=1;o<n;o++)i[o-1]=arguments[o];!function(e,t,r,n){if(t)e.apply(r,n);else for(var i=e.length,o=eu(e,i),a=0;a<i;++a)o[a].apply(r,n)}(r,l,this,i)}return!0},Kc.prototype.addListener=function(e,t){return Jc(this,e,t,!1)},Kc.prototype.on=Kc.prototype.addListener,Kc.prototype.prependListener=function(e,t){return Jc(this,e,t,!0)},Kc.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,Qc(this,e,t)),this},Kc.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,Qc(this,e,t)),this},Kc.prototype.removeListener=function(e,t){var r,n,i,o,a;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(r=n[e]))return this;if(r===t||r.listener&&r.listener===t)0==--this._eventsCount?this._events=new $c:(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length;o-- >0;)if(r[o]===t||r[o].listener&&r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;if(1===r.length){if(r[0]=void 0,0==--this._eventsCount)return this._events=new $c,this;delete n[e]}else!function(e,t){for(var r=t,n=r+1,i=e.length;n<i;r+=1,n+=1)e[r]=e[n];e.pop()}(r,i);n.removeListener&&this.emit("removeListener",e,a||t)}return this},Kc.prototype.off=function(e,t){return this.removeListener(e,t)},Kc.prototype.removeAllListeners=function(e){var t,r;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=new $c,this._eventsCount=0):r[e]&&(0==--this._eventsCount?this._events=new $c:delete r[e]),this;if(0===arguments.length){for(var n,i=Object.keys(r),o=0;o<i.length;++o)"removeListener"!==(n=i[o])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=new $c,this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},Kc.prototype.listeners=function(e){var t,r=this._events;return r&&(t=r[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(t):[]},Kc.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):Xc.call(e,t)},Kc.prototype.listenerCount=Xc,Kc.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]},function(e){e.AUDIO_INPUT="audioinput",e.AUDIO_OUTPUT="audiooutput",e.VIDEO_INPUT="videoinput"}(jc||(jc={}));var ru,nu,iu=new WeakMap;class ou{constructor(e){ac(this,"ID",void 0),ac(this,"groupID",void 0),ac(this,"label",void 0),ac(this,"kind",void 0),tu(this,iu,{writable:!0,value:void 0}),uc(this,iu,e),this.ID=cc(this,iu).deviceId,this.groupID=cc(this,iu).groupId,this.label=cc(this,iu).label,this.kind=cc(this,iu).kind}}function au(e){Hc.debug({ID:e.id,mediaType:Zc,action:"getTrackSettings()",description:"Called"});var t=e.getSettings();if(t)return Hc.debug({ID:e.id,mediaType:Zc,action:"getTrackSettings()",description:"Returning track settings ".concat(JSON.stringify(t))}),t;var r=new Error("Unable to get track settings");return Hc.info({ID:e.id,mediaType:Zc,action:"getTrackSettings()",description:r.message,error:r}),{}}function su(e,t,r){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}!function(e){e.ENDED="ended",e.LIVE="live"}(ru||(ru={})),function(e){e.AUDIO="audio",e.VIDEO="video"}(nu||(nu={}));var cu=new WeakMap;class uu extends Kc{constructor(e){super(),ac(this,"ID",void 0),ac(this,"kind",void 0),ac(this,"status",void 0),ac(this,"muted",void 0),ac(this,"label",void 0),su(this,cu,{writable:!0,value:void 0}),this.ID=e.id,this.kind=e.kind,this.status=e.readyState,this.muted=e.muted,this.label=e.label,uc(this,cu,e),cc(this,cu).onmute=()=>{var e=cc(this,cu).enabled?"muted":"unmuted";this.emit("track:mute",{action:e})}}stop(){cc(this,cu).stop(),this.status=ru.ENDED}applyConstraints(e){var t=this;return nc((function*(){var r,n,i;Hc.debug({ID:null==e||null===(r=e.deviceId)||void 0===r?void 0:r.toString(),mediaType:Bc,action:"applyConstraints()",description:"Called with ".concat(JSON.stringify(e))}),Hc.info({ID:null==e||null===(n=e.deviceId)||void 0===n?void 0:n.toString(),mediaType:Bc,action:"applyConstraints()",description:"Applying constraints to track objects"});var o,a=navigator.mediaDevices.getSupportedConstraints(),s=[];for(var c of Object.keys(e)){var u;if(!a[c])Hc.debug({ID:null==e||null===(u=e.deviceId)||void 0===u?void 0:u.toString(),mediaType:Bc,action:"applyConstraints()",description:"Not suported constraint tracked ".concat(c)}),s.push(c)}return s.length>0?(console.warn("#TrackObject Unsupported constraints - ".concat(s.join(", "))),Hc.debug({ID:null==e||null===(o=e.deviceId)||void 0===o?void 0:o.toString(),mediaType:Bc,action:"applyConstraints()",description:"Constraints not applied"}),!1):(yield cc(t,cu).applyConstraints(e),Hc.debug({ID:null==e||null===(i=e.deviceId)||void 0===i?void 0:i.toString(),mediaType:Bc,action:"applyConstraints()",description:"Constraints applied successfully"}),!0)}))()}getSettings(){Hc.debug({mediaType:Fc,action:"getSettings()",description:"Called"}),Hc.info({mediaType:Fc,action:"getSettings()",description:"Fetching constraints properties for the current media stream track"});var e=au(cc(this,cu));return Hc.debug({mediaType:Fc,action:"getSettings()",description:"Received settings ".concat(JSON.stringify(e))}),e}getMediaStreamTrack(){Hc.debug({mediaType:Fc,action:"getMediaStreamTrack()",description:"Called"});var e=cc(this,cu);return Hc.debug({mediaType:Fc,action:"getMediaStreamTrack()",description:"Received media stream track ".concat(JSON.stringify(e))}),e}}var lu=new Kc,du=[],fu=function(){var e=nc((function*(){var e;return Hc.debug({mediaType:Bc,action:"getDevices()",description:"Called"}),null!==(e=navigator.mediaDevices)&&void 0!==e&&e.enumerateDevices?(Hc.info({mediaType:Bc,action:"getDevices()",description:"Requesting list of available media input and output devices"}),navigator.mediaDevices.enumerateDevices()):(console.warn("navigator.mediaDevices.enumerateDevices() is not supported."),[])}));return function(){return e.apply(this,arguments)}}(),pu=function(){var e=nc((function*(){Hc.debug({mediaType:Bc,action:"getCameras()",description:"Called"});var e=yield fu();return Hc.info({mediaType:Bc,action:"getCameras()",description:"Filtering camera devices from all available media devices"}),e.filter((e=>{var{kind:t}=e;return t===jc.VIDEO_INPUT})).map((e=>(Hc.debug({ID:e.deviceId,mediaType:Bc,action:"getCameras()",description:"Received camera device ".concat(JSON.stringify(e))}),new ou(e))))}));return function(){return e.apply(this,arguments)}}(),hu=function(){var e=nc((function*(){Hc.debug({mediaType:Bc,action:"getMicrophones()",description:"Called"});var e=yield fu();return Hc.info({mediaType:Bc,action:"getMicrophones()",description:"Filtering microphones devices from all available media devices"}),e.filter((e=>{var{kind:t}=e;return t===jc.AUDIO_INPUT})).map((e=>(Hc.debug({ID:e.deviceId,mediaType:Bc,action:"getMicrophones()",description:"Received microphone device ".concat(JSON.stringify(e))}),new ou(e))))}));return function(){return e.apply(this,arguments)}}(),vu=function(){var e=nc((function*(){Hc.debug({mediaType:Bc,action:"getSpeakers()",description:"Called"});var e=yield fu();return Hc.info({mediaType:Bc,action:"getSpeakers()",description:"Filtering speaker devices from all available media devices"}),e.filter((e=>{var{kind:t}=e;return t===jc.AUDIO_OUTPUT})).map((e=>(Hc.debug({ID:e.deviceId,mediaType:Bc,action:"getSpeakers()",description:"Received speaker device ".concat(JSON.stringify(e))}),new ou(e))))}));return function(){return e.apply(this,arguments)}}();function mu(){return mu=nc((function*(e){if(Hc.debug({ID:null==e?void 0:e.ID,mediaType:Bc,action:"createAudioTrack()",description:"Called ".concat(e?"with ".concat(JSON.stringify(e)):""," ")}),e&&e.kind!==jc.AUDIO_INPUT){var t=new Error("Device ".concat(e.ID," is not of kind AUDIO_INPUT"));throw Hc.error({ID:e.ID,mediaType:"DEVICE",action:"createAudioTrack()",description:t.message,error:t}),t}Hc.info({ID:null==e?void 0:e.ID,mediaType:Bc,action:"createAudioTrack()",description:"Creating audio track"});var r=e?{audio:{deviceId:{exact:e.ID}}}:{audio:!0,video:!1},n=(yield navigator.mediaDevices.getUserMedia(r)).getAudioTracks()[0];if(n)return Hc.debug({ID:null==e?void 0:e.ID,mediaType:Bc,action:"createAudioTrack()",description:"Received audio track ".concat(JSON.stringify(n))}),new uu(n);var i=new Error("Device could not obtain an audio track of kind ".concat(null==e?void 0:e.kind));throw Hc.error({ID:null==e?void 0:e.ID,mediaType:"DEVICE",action:"createAudioTrack()",description:i.message,error:i}),i})),mu.apply(this,arguments)}function gu(){return gu=nc((function*(e){if(Hc.debug({ID:null==e?void 0:e.ID,mediaType:Bc,action:"createVideoTrack()",description:"Called ".concat(e?"with ".concat(JSON.stringify(e)):""," ")}),e&&e.kind!==jc.VIDEO_INPUT){var t=new Error("Device ".concat(e.ID," is not of kind VIDEO_INPUT"));throw Hc.error({ID:e.ID,mediaType:"DEVICE",action:"createVideoTrack()",description:t.message,error:t}),t}Hc.info({ID:null==e?void 0:e.ID,mediaType:Bc,action:"createVideoTrack()",description:"Creating video track"});var r=e?{video:{deviceId:{exact:e.ID}}}:{audio:!1,video:!0},n=(yield navigator.mediaDevices.getUserMedia(r)).getVideoTracks()[0];if(n)return Hc.debug({ID:null==e?void 0:e.ID,mediaType:Bc,action:"createVideoTrack()",description:"Received video track ".concat(JSON.stringify(n))}),new uu(n);var i=new Error("Device could not obtain a video track of kind ".concat(null==e?void 0:e.kind));throw Hc.error({ID:null==e?void 0:e.ID,mediaType:"DEVICE",action:"createVideoTrack()",description:i.message,error:i}),i})),gu.apply(this,arguments)}function yu(){return yu=nc((function*(e){var t,r,n;Hc.debug({ID:null==e||null===(t=e.deviceId)||void 0===t?void 0:t.toString(),mediaType:Bc,action:"createContentTrack()",description:"Called ".concat(e?"with ".concat(JSON.stringify(e)):""," ")}),Hc.info({ID:null==e||null===(r=e.deviceId)||void 0===r?void 0:r.toString(),mediaType:Fc,action:"createContentTrack()",description:"Creating content track"});var i,o,a;try{o=yield navigator.mediaDevices.getDisplayMedia({audio:!1,video:!0}),[i]=o.getVideoTracks()}catch(f){var s;if(f instanceof Error)Hc.error({ID:null==e||null===(s=e.deviceId)||void 0===s?void 0:s.toString(),mediaType:"DEVICE",action:"createContentTrack()",description:f.message,error:f});throw f}if(e){var c,u=function(e){Hc.debug({mediaType:Fc,action:"getUnsupportedConstraints()",description:"Called with ".concat(JSON.stringify(e))}),Hc.info({mediaType:Fc,action:"getUnsupportedConstraints()",description:"Filtering list of media track unsupported constraints"});var t=navigator.mediaDevices.getSupportedConstraints(),r=[];return Object.keys(e).forEach((e=>{Object.prototype.hasOwnProperty.call(t,e)&&t[e]||r.push(e)})),Hc.debug({mediaType:Fc,action:"getUnsupportedConstraints()",description:"Received unsupported constraints ".concat(r)}),r}(e);if(!(u.length<=0)){var l,d=new Error("".concat(u.join(", ")," constraint is not supported by browser"));throw Hc.error({ID:null==e||null===(l=e.deviceId)||void 0===l?void 0:l.toString(),mediaType:"DEVICE",action:"createContentTrack()",description:d.message,error:d}),d}i.applyConstraints(e),Hc.debug({ID:null==e||null===(c=e.deviceId)||void 0===c?void 0:c.toString(),mediaType:Bc,action:"createContentTrack()",description:"Applied media constraints to fetched content track"})}if(i)return Hc.debug({ID:null==e||null===(a=e.deviceId)||void 0===a?void 0:a.toString(),mediaType:Bc,action:"createContentTrack()",description:"Received content track ".concat(JSON.stringify(i))}),new uu(i);var f=new Error("Could not obtain a content track");throw Hc.error({ID:null==e||null===(n=e.deviceId)||void 0===n?void 0:n.toString(),mediaType:"DEVICE",action:"createContentTrack()",description:f.message,error:f}),f})),yu.apply(this,arguments)}function Eu(){return Su.apply(this,arguments)}function Su(){return(Su=nc((function*(){var e;if(Hc.debug({mediaType:Bc,action:"deviceChangePublisher()",description:"Called"}),null!==(e=navigator.mediaDevices)&&void 0!==e&&e.enumerateDevices){Hc.info({mediaType:Bc,action:"deviceChangePublisher()",description:"Calling individual subscription listener obtained by device change event"});var t=yield navigator.mediaDevices.enumerateDevices(),r=[],n=[],i=[],o="changed",a=new Set;t.length!==du.length&&([n,i,o]=t.length<du.length?[t,du,"removed"]:[du,t,"added"],n.forEach((e=>{a.add(e.groupId)})),r=i.filter((e=>!a.has(e.groupId))),du.splice(0,du.length),du.push(...t),lu.emit("device:changed",{action:o,devices:r}))}else console.warn("navigator.mediaDevices.enumerateDevices() is not supported.")}))).apply(this,arguments)}function _u(){return(_u=nc((function*(e,t){if(Hc.debug({mediaType:Fc,action:"on()",description:"Subscribing to an ".concat(e,",").concat(t)}),lu.on(e,t),"device:changed"===e){var r=yield fu();du.push(...r),navigator.mediaDevices.addEventListener("devicechange",Eu)}}))).apply(this,arguments)}var bu,Ru,Tu,wu,Iu,xu,Au="\\d+",Cu="\\S+",Ou=".+";class ku{}class Nu extends ku{constructor(e,t){super(),this.bandwidthType=e,this.bandwidth=t}static fromSdpLine(e){if(Nu.regex.test(e)){var t=e.match(Nu.regex),r=t[1],n=parseInt(t[2],10);return new Nu(r,n)}}toSdpLine(){return"b=".concat(this.bandwidthType,":").concat(this.bandwidth)}}bu=Nu,Nu.BW_TYPE_REGEX="CT|AS|TIAS",Nu.regex=new RegExp("^(".concat(bu.BW_TYPE_REGEX,"):(").concat(Au,")"));class Lu extends ku{constructor(e){super(),this.mids=e}static fromSdpLine(e){if(Lu.regex.test(e)){var t=e.match(Lu.regex)[1].split(" ");return new Lu(t)}}toSdpLine(){return"a=group:BUNDLE ".concat(this.mids.join(" "))}}Lu.regex=new RegExp("^group:BUNDLE (".concat(Ou,")"));class Pu extends ku{constructor(e,t,r,n,i,o,a,s,c,u){super(),this.foundation=e,this.componentId=t,this.transport=r,this.priority=n,this.connectionAddress=i,this.port=o,this.candidateType=a,this.relAddr=s,this.relPort=c,this.candidateExtensions=u}static fromSdpLine(e){if(Pu.regex.test(e)){var t=e.match(Pu.regex),r=t[1],n=parseInt(t[2],10),i=t[3],o=parseInt(t[4],10),a=t[5],s=parseInt(t[6],10),c=t[7],u=t[8],l=t[9]?parseInt(t[9],10):void 0,d=t[10];return new Pu(r,n,i,o,a,s,c,u,l,d)}}toSdpLine(){var e="";return e+="a=candidate:".concat(this.foundation," ").concat(this.componentId," ").concat(this.transport," ").concat(this.priority," ").concat(this.connectionAddress," ").concat(this.port," typ ").concat(this.candidateType),this.relAddr&&(e+=" raddr ".concat(this.relAddr)),this.relPort&&(e+=" rport ".concat(this.relPort)),this.candidateExtensions&&(e+=" ".concat(this.candidateExtensions)),e}}Ru=Pu,Pu.ICE_CHARS="[a-zA-Z0-9+/]+",Pu.regex=new RegExp("^candidate:(".concat(Ru.ICE_CHARS,") (").concat(Au,") (").concat(Cu,") (").concat(Au,") (").concat(Cu,") (").concat(Au,") typ (").concat(Cu,")(?: raddr (").concat(Cu,"))?(?: rport (").concat(Au,"))?(?: (").concat(Ou,"))?"));class Mu extends ku{constructor(e,t,r){super(),this.netType=e,this.addrType=t,this.ipAddr=r}static fromSdpLine(e){if(Mu.regex.test(e)){var t=e.match(Mu.regex),r=t[1],n=t[2],i=t[3];return new Mu(r,n,i)}}toSdpLine(){return"c=".concat(this.netType," ").concat(this.addrType," ").concat(this.ipAddr)}}Mu.regex=new RegExp("^(".concat(Cu,") (").concat(Cu,") (").concat(Cu,")"));class Du extends ku{constructor(e){super(),this.values=e}static fromSdpLine(e){if(Du.regex.test(e)){var t=e.match(Du.regex)[1].split(",");return new Du(t)}}toSdpLine(){return"a=content:".concat(this.values.join(","))}}Du.regex=new RegExp("^content:(".concat(Ou,")$"));class Uu extends ku{constructor(e){super(),this.direction=e}static fromSdpLine(e){if(Uu.regex.test(e)){var t=e.match(Uu.regex)[1];return new Uu(t)}}toSdpLine(){return"a=".concat(this.direction)}}Uu.regex=/^(sendrecv|sendonly|recvonly|inactive)$/;class ju extends ku{constructor(e,t,r,n){super(),this.id=e,this.uri=t,this.direction=r,this.extensionAttributes=n}static fromSdpLine(e){if(ju.regex.test(e)){var t=e.match(ju.regex),r=parseInt(t[1],10),n=t[2],i=t[3],o=t[4];return new ju(r,i,n,o)}}toSdpLine(){var e="";return e+="a=extmap:".concat(this.id),this.direction&&(e+="/".concat(this.direction)),e+=" ".concat(this.uri),this.extensionAttributes&&(e+=" ".concat(this.extensionAttributes)),e}}Tu=ju,ju.EXTMAP_DIRECTION="sendonly|recvonly|sendrecv|inactive",ju.regex=new RegExp("^extmap:(".concat(Au,")(?:/(").concat(Tu.EXTMAP_DIRECTION,"))? (").concat(Cu,")(?: (").concat(Ou,"))?"));class Fu extends ku{constructor(e){super(),this.fingerprint=e}static fromSdpLine(e){if(Fu.regex.test(e)){var t=e.match(Fu.regex)[1];return new Fu(t)}}toSdpLine(){return"a=fingerprint:".concat(this.fingerprint)}}Fu.regex=new RegExp("^fingerprint:(".concat(Ou,")"));class Bu extends ku{constructor(e,t){super(),this.payloadType=e,this.params=t}static fromSdpLine(e){if(Bu.regex.test(e)){var t=e.match(Bu.regex),r=parseInt(t[1],10),n=t[2];return new Bu(r,n)}}toSdpLine(){return"a=fmtp:".concat(this.payloadType," ").concat(this.params)}}Bu.regex=new RegExp("^fmtp:(".concat(Au,") (").concat(Ou,")"));class Zu extends ku{constructor(e){super(),this.options=e}static fromSdpLine(e){if(Zu.regex.test(e)){var t=e.match(Zu.regex)[1].split(" ");return new Zu(t)}}toSdpLine(){return"a=ice-options:".concat(this.options.join(" "))}}Zu.regex=new RegExp("^ice-options:(".concat(Ou,")$"));class Vu extends ku{constructor(e){super(),this.pwd=e}static fromSdpLine(e){if(Vu.regex.test(e)){var t=e.match(Vu.regex)[1];return new Vu(t)}}toSdpLine(){return"a=ice-pwd:".concat(this.pwd)}}Vu.regex=new RegExp("^ice-pwd:(".concat(Cu,")$"));class Gu extends ku{constructor(e){super(),this.ufrag=e}static fromSdpLine(e){if(Gu.regex.test(e)){var t=e.match(Gu.regex)[1];return new Gu(t)}}toSdpLine(){return"a=ice-ufrag:".concat(this.ufrag)}}Gu.regex=new RegExp("^ice-ufrag:(".concat(Cu,")$"));class qu extends ku{constructor(e){super(),this.maxMessageSize=e}static fromSdpLine(e){if(qu.regex.test(e)){var t=e.match(qu.regex),r=parseInt(t[1],10);return new qu(r)}}toSdpLine(){return"a=max-message-size:".concat(this.maxMessageSize)}}qu.regex=new RegExp("^max-message-size:(".concat(Au,")"));class Hu extends ku{constructor(e,t,r,n){super(),this.type=e,this.port=t,this.protocol=r,this.formats=n}static fromSdpLine(e){if(Hu.regex.test(e)){var t=e.match(Hu.regex),r=t[1],n=parseInt(t[2],10),i=t[3],o=t[4].split(" ");return new Hu(r,n,i,o)}}toSdpLine(){return"m=".concat(this.type," ").concat(this.port," ").concat(this.protocol," ").concat(this.formats.join(" "))}}wu=Hu,Hu.MEDIA_TYPE="audio|video|application",Hu.regex=new RegExp("^(".concat(wu.MEDIA_TYPE,") (").concat(Au,") (").concat(Cu,") (").concat(Ou,")"));class Wu extends ku{constructor(e){super(),this.mid=e}static fromSdpLine(e){if(Wu.regex.test(e)){var t=e.match(Wu.regex)[1];return new Wu(t)}}toSdpLine(){return"a=mid:".concat(this.mid)}}Wu.regex=new RegExp("^mid:(".concat(Cu,")$"));class zu extends ku{constructor(e,t,r,n,i,o){super(),this.username=e,this.sessionId=t,this.sessionVersion=r,this.netType=n,this.addrType=i,this.ipAddr=o}static fromSdpLine(e){if(zu.regex.test(e)){var t=e.match(zu.regex),r=t[1],n=t[2],i=parseInt(t[3],10),o=t[4],a=t[5],s=t[6];return new zu(r,n,i,o,a,s)}}toSdpLine(){return"o=".concat(this.username," ").concat(this.sessionId," ").concat(this.sessionVersion," ").concat(this.netType," ").concat(this.addrType," ").concat(this.ipAddr)}}zu.regex=new RegExp("^(".concat(Cu,") (").concat(Cu,") (").concat(Au,") (").concat(Cu,") (").concat(Cu,") (").concat(Cu,")"));class $u extends ku{constructor(e,t,r){super(),this.id=e,this.direction=t,this.params=r}static fromSdpLine(e){if($u.regex.test(e)){var t=e.match($u.regex),r=t[1],n=t[2],i=t[3];return new $u(r,n,i)}}toSdpLine(){var e="";return e+="a=rid:".concat(this.id," ").concat(this.direction),this.params&&(e+=" ".concat(this.params)),e}}Iu=$u,$u.RID_ID="[\\w-]+",$u.RID_DIRECTION="\\bsend\\b|\\brecv\\b",$u.regex=new RegExp("^rid:(".concat(Iu.RID_ID,") (").concat(Iu.RID_DIRECTION,")(?:").concat("\\s","(").concat(Ou,"))?"));class Ku extends ku{static fromSdpLine(e){if(Ku.regex.test(e))return new Ku}toSdpLine(){return"a=rtcp-mux"}}Ku.regex=/^rtcp-mux$/;class Yu extends ku{constructor(e,t){super(),this.payloadType=e,this.feedback=t}static fromSdpLine(e){if(Yu.regex.test(e)){var t=e.match(Yu.regex),r=parseInt(t[1],10),n=t[2];return new Yu(r,n)}}toSdpLine(){return"a=rtcp-fb:".concat(this.payloadType," ").concat(this.feedback)}}Yu.regex=new RegExp("^rtcp-fb:(".concat(Au,") (").concat(Ou,")"));class Ju extends ku{constructor(e,t,r,n){super(),this.payloadType=e,this.encodingName=t,this.clockRate=r,this.encodingParams=n}static fromSdpLine(e){if(Ju.regex.test(e)){var t=e.match(Ju.regex),r=parseInt(t[1],10),n=t[2],i=parseInt(t[3],10),o=t[4];return new Ju(r,n,i,o)}}toSdpLine(){var e="";return e+="a=rtpmap:".concat(this.payloadType," ").concat(this.encodingName,"/").concat(this.clockRate),this.encodingParams&&(e+="/".concat(this.encodingParams)),e}}xu=Ju,Ju.NON_SLASH_TOKEN="[^\\s/]+",Ju.regex=new RegExp("^rtpmap:(".concat(Au,") (").concat(xu.NON_SLASH_TOKEN,")/(").concat(xu.NON_SLASH_TOKEN,")(?:/(").concat(xu.NON_SLASH_TOKEN,"))?"));class Qu extends ku{constructor(e){super(),this.port=e}static fromSdpLine(e){if(Qu.regex.test(e)){var t=e.match(Qu.regex),r=parseInt(t[1],10);return new Qu(r)}}toSdpLine(){return"a=sctp-port:".concat(this.port)}}Qu.regex=new RegExp("^sctp-port:(".concat(Au,")"));class Xu extends ku{constructor(e){super(),this.info=e}static fromSdpLine(e){if(Xu.regex.test(e)){var t=e.match(Xu.regex)[1];return new Xu(t)}}toSdpLine(){return"i=".concat(this.info)}}Xu.regex=new RegExp("(".concat(Ou,")"));class el extends ku{constructor(e){super(),this.name=e}static fromSdpLine(e){if(el.regex.test(e)){var t=e.match(el.regex)[1];return new el(t)}}toSdpLine(){return"s=".concat(this.name)}}el.regex=new RegExp("^(".concat(Ou,")"));class tl extends ku{constructor(e){super(),this.setup=e}static fromSdpLine(e){if(tl.regex.test(e)){var t=e.match(tl.regex)[1];return new tl(t)}}toSdpLine(){return"a=setup:".concat(this.setup)}}tl.regex=/^setup:(actpass|active|passive)$/;class rl{constructor(e,t){this.id=e,this.paused=t}toString(){return this.paused?"~".concat(this.id):this.id}}class nl{constructor(){this.layers=[]}addLayer(e){this.layers.push([e])}addLayerWithAlternatives(e){this.layers.push(e)}get length(){return this.layers.length}get(e){return this.layers[e]}static fromString(e){var t=new nl,r=e.split(";");if(1===r.length&&!r[0].trim())throw new Error("simulcast stream list empty");return r.forEach((e=>{if(!e)throw new Error("simulcast layer list empty");var r=e.split(","),n=[];r.forEach((e=>{if(!e||"~"===e)throw new Error("rid empty");var t="~"===e[0],r=t?e.substring(1):e;n.push(new rl(r,t))})),t.addLayerWithAlternatives(n)})),t}toString(){return this.layers.map((e=>e.map((e=>e.toString())).join(","))).join(";")}}class il extends ku{constructor(e,t){super(),this.sendLayers=e,this.recvLayers=t}static fromSdpLine(e){if(il.regex.test(e)){var t,r,n=e.match(il.regex),i=n[3]&&n[4],o=n[1],a=nl.fromString(n[2]),s=new nl;if(i){if(o===n[3])return;s=nl.fromString(n[4])}return"send"===o?(t=a,r=s):(t=s,r=a),new il(t,r)}}toSdpLine(){var e="a=simulcast:";return this.sendLayers.length&&(e+="send ".concat(this.sendLayers.toString()),this.recvLayers.length&&(e+=" ")),this.recvLayers.length&&(e+="recv ".concat(this.recvLayers.toString())),e}}il.regex=new RegExp("^simulcast:(send|recv) (".concat(Cu,")(?: (send|recv) (").concat(Cu,"))?"));class ol extends ku{constructor(e,t){super(),this.startTime=e,this.stopTime=t}static fromSdpLine(e){if(ol.regex.test(e)){var t=e.match(ol.regex),r=parseInt(t[1],10),n=parseInt(t[2],10);return new ol(r,n)}}toSdpLine(){return"t=".concat(this.startTime," ").concat(this.stopTime)}}ol.regex=new RegExp("^(".concat(Au,") (").concat(Au,")"));class al extends ku{constructor(e){super(),this.version=e}static fromSdpLine(e){if(al.regex.test(e)){var t=e.match(al.regex),r=parseInt(t[1],10);return new al(r)}}toSdpLine(){return"v=".concat(this.version)}}al.regex=new RegExp("^(".concat(Au,")$"));class sl extends ku{constructor(e){super(),this.value=e}static fromSdpLine(e){var t=e.match(sl.regex)[1];return new sl(t)}toSdpLine(){return"".concat(this.value)}}sl.regex=new RegExp("(".concat(Ou,")"));class cl{constructor(){this.parsers=new Map}addParser(e,t){var r=this.parsers.get(e)||[];r.push(t),this.parsers.set(e,r)}getParsers(e){return this.parsers.get(e)||[]}}var ul,ll,dl,fl;new class extends cl{constructor(){super(),this.addParser("v",al.fromSdpLine),this.addParser("o",zu.fromSdpLine),this.addParser("c",Mu.fromSdpLine),this.addParser("i",Xu.fromSdpLine),this.addParser("m",Hu.fromSdpLine),this.addParser("s",el.fromSdpLine),this.addParser("t",ol.fromSdpLine),this.addParser("b",Nu.fromSdpLine),this.addParser("a",Ju.fromSdpLine),this.addParser("a",Yu.fromSdpLine),this.addParser("a",Bu.fromSdpLine),this.addParser("a",Uu.fromSdpLine),this.addParser("a",ju.fromSdpLine),this.addParser("a",Wu.fromSdpLine),this.addParser("a",Gu.fromSdpLine),this.addParser("a",Vu.fromSdpLine),this.addParser("a",Zu.fromSdpLine),this.addParser("a",Fu.fromSdpLine),this.addParser("a",tl.fromSdpLine),this.addParser("a",Qu.fromSdpLine),this.addParser("a",qu.fromSdpLine),this.addParser("a",Ku.fromSdpLine),this.addParser("a",Lu.fromSdpLine),this.addParser("a",Du.fromSdpLine),this.addParser("a",$u.fromSdpLine),this.addParser("a",Pu.fromSdpLine),this.addParser("a",il.fromSdpLine)}};!function(e){e.CONNECTION_STATE_CHANGED="connectionState:changed",e.REMOTE_TRACK_ADDED="remoteTrack:added",e.ROAP_MESSAGE_TO_SEND="roap:messageToSend",e.ROAP_STARTED="roap:started",e.ROAP_FAILURE="roap:failure",e.ROAP_DONE="roap:done",e.DTMF_TONE_CHANGED="dtmfTone:changed"}(ul||(ul={})),function(e){e.NEW="NEW",e.CLOSED="CLOSED",e.CONNECTED="CONNECTED",e.CONNECTING="CONNECTING",e.DISCONNECTED="DISCONNECTED",e.FAILED="FAILED"}(ll||(ll={})),function(e){e.AUDIO="audio",e.VIDEO="video",e.SCREENSHARE_VIDEO="screenShareVideo"}(dl||(dl={})),function(e){e.DOUBLECONFLICT="DOUBLECONFLICT",e.CONFLICT="CONFLICT",e.FAILED="FAILED",e.INVALID_STATE="INVALID_STATE",e.NOMATCH="NOMATCH",e.OUT_OF_ORDER="OUT_OF_ORDER",e.REFUSED="REFUSED",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"}(fl||(fl={}));var pl=!0,hl=!0;function vl(e,t,r){var n=e.match(t);return n&&n.length>=r&&parseInt(n[r],10)}function ml(e,t,r){if(e.RTCPeerConnection){var n=e.RTCPeerConnection.prototype,i=n.addEventListener;n.addEventListener=function(e,n){if(e!==t)return i.apply(this,arguments);var o=e=>{var t=r(e);t&&(n.handleEvent?n.handleEvent(t):n(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(n,o),i.apply(this,[e,o])};var o=n.removeEventListener;n.removeEventListener=function(e,r){if(e!==t||!this._eventMap||!this._eventMap[t])return o.apply(this,arguments);if(!this._eventMap[t].has(r))return o.apply(this,arguments);var n=this._eventMap[t].get(r);return this._eventMap[t].delete(r),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,o.apply(this,[e,n])},Object.defineProperty(n,"on"+t,{get(){return this["_on"+t]},set(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0})}}function gl(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(pl=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function yl(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(hl=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function El(){if("object"==typeof window){if(pl)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}}function Sl(e,t){hl&&console.warn(e+" is deprecated, please use "+t+" instead.")}function _l(e){return"[object Object]"===Object.prototype.toString.call(e)}function bl(e){return _l(e)?Object.keys(e).reduce((function(t,r){var n=_l(e[r]),i=n?bl(e[r]):e[r],o=n&&!Object.keys(i).length;return void 0===i||o?t:Object.assign(t,{[r]:i})}),{}):e}function Rl(e,t,r){t&&!r.has(t.id)&&(r.set(t.id,t),Object.keys(t).forEach((n=>{n.endsWith("Id")?Rl(e,e.get(t[n]),r):n.endsWith("Ids")&&t[n].forEach((t=>{Rl(e,e.get(t),r)}))})))}function Tl(e,t,r){var n=r?"outbound-rtp":"inbound-rtp",i=new Map;if(null===t)return i;var o=[];return e.forEach((e=>{"track"===e.type&&e.trackIdentifier===t.id&&o.push(e)})),o.forEach((t=>{e.forEach((r=>{r.type===n&&r.trackId===t.id&&Rl(e,r,i)}))})),i}var wl=El;function Il(e,t){var r=e&&e.navigator;if(r.mediaDevices){var n=function(e){if("object"!=typeof e||e.mandatory||e.optional)return e;var t={};return Object.keys(e).forEach((r=>{if("require"!==r&&"advanced"!==r&&"mediaSource"!==r){var n="object"==typeof e[r]?e[r]:{ideal:e[r]};void 0!==n.exact&&"number"==typeof n.exact&&(n.min=n.max=n.exact);var i=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==n.ideal){t.optional=t.optional||[];var o={};"number"==typeof n.ideal?(o[i("min",r)]=n.ideal,t.optional.push(o),(o={})[i("max",r)]=n.ideal,t.optional.push(o)):(o[i("",r)]=n.ideal,t.optional.push(o))}void 0!==n.exact&&"number"!=typeof n.exact?(t.mandatory=t.mandatory||{},t.mandatory[i("",r)]=n.exact):["min","max"].forEach((e=>{void 0!==n[e]&&(t.mandatory=t.mandatory||{},t.mandatory[i(e,r)]=n[e])}))}})),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},i=function(e,i){if(t.version>=61)return i(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"==typeof e.audio){var o=function(e,t,r){t in e&&!(r in e)&&(e[r]=e[t],delete e[t])};o((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),o(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=n(e.audio)}if(e&&"object"==typeof e.video){var a=e.video.facingMode;a=a&&("object"==typeof a?a:{ideal:a});var s,c=t.version<66;if(a&&("user"===a.exact||"environment"===a.exact||"user"===a.ideal||"environment"===a.ideal)&&(!r.mediaDevices.getSupportedConstraints||!r.mediaDevices.getSupportedConstraints().facingMode||c))if(delete e.video.facingMode,"environment"===a.exact||"environment"===a.ideal?s=["back","rear"]:"user"!==a.exact&&"user"!==a.ideal||(s=["front"]),s)return r.mediaDevices.enumerateDevices().then((t=>{var r=(t=t.filter((e=>"videoinput"===e.kind))).find((e=>s.some((t=>e.label.toLowerCase().includes(t)))));return!r&&t.length&&s.includes("back")&&(r=t[t.length-1]),r&&(e.video.deviceId=a.exact?{exact:r.deviceId}:{ideal:r.deviceId}),e.video=n(e.video),wl("chrome: "+JSON.stringify(e)),i(e)}));e.video=n(e.video)}return wl("chrome: "+JSON.stringify(e)),i(e)},o=function(e){return t.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}};if(r.getUserMedia=function(e,t,n){i(e,(e=>{r.webkitGetUserMedia(e,t,(e=>{n&&n(o(e))}))}))}.bind(r),r.mediaDevices.getUserMedia){var a=r.mediaDevices.getUserMedia.bind(r.mediaDevices);r.mediaDevices.getUserMedia=function(e){return i(e,(e=>a(e).then((t=>{if(e.audio&&!t.getAudioTracks().length||e.video&&!t.getVideoTracks().length)throw t.getTracks().forEach((e=>{e.stop()})),new DOMException("","NotFoundError");return t}),(e=>Promise.reject(o(e))))))}}}}function xl(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function Al(e){if("object"==typeof e&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});var t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=t=>{t.stream.addEventListener("addtrack",(r=>{var n;n=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find((e=>e.track&&e.track.id===r.track.id)):{track:r.track};var i=new Event("track");i.track=r.track,i.receiver=n,i.transceiver={receiver:n},i.streams=[t.stream],this.dispatchEvent(i)})),t.stream.getTracks().forEach((r=>{var n;n=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find((e=>e.track&&e.track.id===r.id)):{track:r};var i=new Event("track");i.track=r,i.receiver=n,i.transceiver={receiver:n},i.streams=[t.stream],this.dispatchEvent(i)}))},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else ml(e,"track",(e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e)))}function Cl(e){if("object"==typeof e&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){var t=function(e,t){return{track:t,get dtmf(){return void 0===this._dtmf&&("audio"===t.kind?this._dtmf=e.createDTMFSender(t):this._dtmf=null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};var r=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){var i=r.apply(this,arguments);return i||(i=t(this,e),this._senders.push(i)),i};var n=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){n.apply(this,arguments);var t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}var i=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._senders=this._senders||[],i.apply(this,[e]),e.getTracks().forEach((e=>{this._senders.push(t(this,e))}))};var o=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._senders=this._senders||[],o.apply(this,[e]),e.getTracks().forEach((e=>{var t=this._senders.find((t=>t.track===e));t&&this._senders.splice(this._senders.indexOf(t),1)}))}}else if("object"==typeof e&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){var a=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){var e=a.apply(this,[]);return e.forEach((e=>e._pc=this)),e},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function Ol(e){if(e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){var[e,r,n]=arguments;if(arguments.length>0&&"function"==typeof e)return t.apply(this,arguments);if(0===t.length&&(0===arguments.length||"function"!=typeof e))return t.apply(this,[]);var i=function(e){var t={};return e.result().forEach((e=>{var r={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach((t=>{r[t]=e.stat(t)})),t[r.id]=r})),t},o=function(e){return new Map(Object.keys(e).map((t=>[t,e[t]])))};if(arguments.length>=2){return t.apply(this,[function(e){r(o(i(e)))},e])}return new Promise(((e,r)=>{t.apply(this,[function(t){e(o(i(t)))},r])})).then(r,n)}}}function kl(e){if("object"==typeof e&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver){if(!("getStats"in e.RTCRtpSender.prototype)){var t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){var e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e});var r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){var e=r.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){var e=this;return this._pc.getStats().then((t=>Tl(t,e.track,!0)))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){var n=e.RTCPeerConnection.prototype.getReceivers;n&&(e.RTCPeerConnection.prototype.getReceivers=function(){var e=n.apply(this,[]);return e.forEach((e=>e._pc=this)),e}),ml(e,"track",(e=>(e.receiver._pc=e.srcElement,e))),e.RTCRtpReceiver.prototype.getStats=function(){var e=this;return this._pc.getStats().then((t=>Tl(t,e.track,!1)))}}if("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype){var i=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){var t,r,n,o=arguments[0];return this.getSenders().forEach((e=>{e.track===o&&(t?n=!0:t=e)})),this.getReceivers().forEach((e=>(e.track===o&&(r?n=!0:r=e),e.track===o))),n||t&&r?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):t?t.getStats():r?r.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return i.apply(this,arguments)}}}}function Nl(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map((e=>this._shimmedLocalStreams[e][0]))};var t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,r){if(!r)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};var n=t.apply(this,arguments);return this._shimmedLocalStreams[r.id]?-1===this._shimmedLocalStreams[r.id].indexOf(n)&&this._shimmedLocalStreams[r.id].push(n):this._shimmedLocalStreams[r.id]=[r,n],n};var r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach((e=>{if(this.getSenders().find((t=>t.track===e)))throw new DOMException("Track already exists.","InvalidAccessError")}));var t=this.getSenders();r.apply(this,arguments);var n=this.getSenders().filter((e=>-1===t.indexOf(e)));this._shimmedLocalStreams[e.id]=[e].concat(n)};var n=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],n.apply(this,arguments)};var i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach((t=>{var r=this._shimmedLocalStreams[t].indexOf(e);-1!==r&&this._shimmedLocalStreams[t].splice(r,1),1===this._shimmedLocalStreams[t].length&&delete this._shimmedLocalStreams[t]})),i.apply(this,arguments)}}function Ll(e,t){if(e.RTCPeerConnection){if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return Nl(e);var r=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){var e=r.apply(this);return this._reverseStreams=this._reverseStreams||{},e.map((e=>this._reverseStreams[e.id]))};var n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach((e=>{if(this.getSenders().find((t=>t.track===e)))throw new DOMException("Track already exists.","InvalidAccessError")})),!this._reverseStreams[t.id]){var r=new e.MediaStream(t.getTracks());this._streams[t.id]=r,this._reverseStreams[r.id]=t,t=r}n.apply(this,[t])};var i=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,r){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");var n=[].slice.call(arguments,1);if(1!==n.length||!n[0].getTracks().find((e=>e===t)))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find((e=>e.track===t)))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};var i=this._streams[r.id];if(i)i.addTrack(t),Promise.resolve().then((()=>{this.dispatchEvent(new Event("negotiationneeded"))}));else{var o=new e.MediaStream([t]);this._streams[r.id]=o,this._reverseStreams[o.id]=r,this.addStream(o)}return this.getSenders().find((e=>e.track===t))},["createOffer","createAnswer"].forEach((function(t){var r=e.RTCPeerConnection.prototype[t],n={[t](){var e=arguments;return arguments.length&&"function"==typeof arguments[0]?r.apply(this,[t=>{var r=s(this,t);e[0].apply(null,[r])},t=>{e[1]&&e[1].apply(null,t)},arguments[2]]):r.apply(this,arguments).then((e=>s(this,e)))}};e.RTCPeerConnection.prototype[t]=n[t]}));var o=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=function(e,t){var r=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((t=>{var n=e._reverseStreams[t],i=e._streams[n.id];r=r.replace(new RegExp(n.id,"g"),i.id)})),new RTCSessionDescription({type:t.type,sdp:r})}(this,arguments[0]),o.apply(this,arguments)):o.apply(this,arguments)};var a=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){var e=a.get.apply(this);return""===e.type?e:s(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");var t;if(!(e._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{},Object.keys(this._streams).forEach((r=>{this._streams[r].getTracks().find((t=>e.track===t))&&(t=this._streams[r])})),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function s(e,t){var r=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((t=>{var n=e._reverseStreams[t],i=e._streams[n.id];r=r.replace(new RegExp(i.id,"g"),n.id)})),new RTCSessionDescription({type:t.type,sdp:r})}}function Pl(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){var r=e.RTCPeerConnection.prototype[t],n={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=n[t]}))}function Ml(e,t){ml(e,"negotiationneeded",(e=>{var r=e.target;if(!(t.version<72||r.getConfiguration&&"plan-b"===r.getConfiguration().sdpSemantics)||"stable"===r.signalingState)return e}))}var Dl=Object.freeze({__proto__:null,shimMediaStream:xl,shimOnTrack:Al,shimGetSendersWithDtmf:Cl,shimGetStats:Ol,shimSenderReceiverGetStats:kl,shimAddTrackRemoveTrackWithNative:Nl,shimAddTrackRemoveTrack:Ll,shimPeerConnection:Pl,fixNegotiationNeeded:Ml,shimGetUserMedia:Il,shimGetDisplayMedia:function(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&("function"==typeof t?e.navigator.mediaDevices.getDisplayMedia=function(r){return t(r).then((t=>{var n=r.video&&r.video.width,i=r.video&&r.video.height,o=r.video&&r.video.frameRate;return r.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:o||3}},n&&(r.video.mandatory.maxWidth=n),i&&(r.video.mandatory.maxHeight=i),e.navigator.mediaDevices.getUserMedia(r)}))}:console.error("shimGetDisplayMedia: getSourceId argument is not a function"))}});function Ul(e,t){var r=e&&e.navigator,n=e&&e.MediaStreamTrack;if(r.getUserMedia=function(e,t,n){Sl("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),r.mediaDevices.getUserMedia(e).then(t,n)},!(t.version>55&&"autoGainControl"in r.mediaDevices.getSupportedConstraints())){var i=function(e,t,r){t in e&&!(r in e)&&(e[r]=e[t],delete e[t])},o=r.mediaDevices.getUserMedia.bind(r.mediaDevices);if(r.mediaDevices.getUserMedia=function(e){return"object"==typeof e&&"object"==typeof e.audio&&(e=JSON.parse(JSON.stringify(e)),i(e.audio,"autoGainControl","mozAutoGainControl"),i(e.audio,"noiseSuppression","mozNoiseSuppression")),o(e)},n&&n.prototype.getSettings){var a=n.prototype.getSettings;n.prototype.getSettings=function(){var e=a.apply(this,arguments);return i(e,"mozAutoGainControl","autoGainControl"),i(e,"mozNoiseSuppression","noiseSuppression"),e}}if(n&&n.prototype.applyConstraints){var s=n.prototype.applyConstraints;n.prototype.applyConstraints=function(e){return"audio"===this.kind&&"object"==typeof e&&(e=JSON.parse(JSON.stringify(e)),i(e,"autoGainControl","mozAutoGainControl"),i(e,"noiseSuppression","mozNoiseSuppression")),s.apply(this,[e])}}}}function jl(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Fl(e,t){if("object"==typeof e&&(e.RTCPeerConnection||e.mozRTCPeerConnection)){!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){var r=e.RTCPeerConnection.prototype[t],n={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=n[t]}));var r={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},n=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){var[e,i,o]=arguments;return n.apply(this,[e||null]).then((e=>{if(t.version<53&&!i)try{e.forEach((e=>{e.type=r[e.type]||e.type}))}catch(t){if("TypeError"!==t.name)throw t;e.forEach(((t,n)=>{e.set(n,Object.assign({},t,{type:r[t.type]||t.type}))}))}return e})).then(i,o)}}}function Bl(e){if("object"==typeof e&&e.RTCPeerConnection&&e.RTCRtpSender&&(!e.RTCRtpSender||!("getStats"in e.RTCRtpSender.prototype))){var t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){var e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e});var r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){var e=r.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}}function Zl(e){if("object"==typeof e&&e.RTCPeerConnection&&e.RTCRtpSender&&(!e.RTCRtpSender||!("getStats"in e.RTCRtpReceiver.prototype))){var t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){var e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e}),ml(e,"track",(e=>(e.receiver._pc=e.srcElement,e))),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}}function Vl(e){e.RTCPeerConnection&&!("removeStream"in e.RTCPeerConnection.prototype)&&(e.RTCPeerConnection.prototype.removeStream=function(e){Sl("removeStream","removeTrack"),this.getSenders().forEach((t=>{t.track&&e.getTracks().includes(t.track)&&this.removeTrack(t)}))})}function Gl(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function ql(e){if("object"==typeof e&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];var e=arguments[1],r=e&&"sendEncodings"in e;r&&e.sendEncodings.forEach((e=>{if("rid"in e){if(!/^[a-z0-9]{0,16}$/i.test(e.rid))throw new TypeError("Invalid RID value provided.")}if("scaleResolutionDownBy"in e&&!(parseFloat(e.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in e&&!(parseFloat(e.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")}));var n=t.apply(this,arguments);if(r){var{sender:i}=n,o=i.getParameters();(!("encodings"in o)||1===o.encodings.length&&0===Object.keys(o.encodings[0]).length)&&(o.encodings=e.sendEncodings,i.sendEncodings=e.sendEncodings,this.setParametersPromises.push(i.setParameters(o).then((()=>{delete i.sendEncodings})).catch((()=>{delete i.sendEncodings}))))}return n})}}function Hl(e){if("object"==typeof e&&e.RTCRtpSender){var t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){var e=t.apply(this,arguments);return"encodings"in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e})}}function Wl(e){if("object"==typeof e&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((()=>t.apply(this,arguments))).finally((()=>{this.setParametersPromises=[]})):t.apply(this,arguments)}}}function zl(e){if("object"==typeof e&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((()=>t.apply(this,arguments))).finally((()=>{this.setParametersPromises=[]})):t.apply(this,arguments)}}}var $l=Object.freeze({__proto__:null,shimOnTrack:jl,shimPeerConnection:Fl,shimSenderGetStats:Bl,shimReceiverGetStats:Zl,shimRemoveStream:Vl,shimRTCDataChannel:Gl,shimAddTransceiver:ql,shimGetParameters:Hl,shimCreateOffer:Wl,shimCreateAnswer:zl,shimGetUserMedia:Ul,shimGetDisplayMedia:function(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(r){if(!r||!r.video){var n=new DOMException("getDisplayMedia without video constraints is undefined");return n.name="NotFoundError",n.code=8,Promise.reject(n)}return!0===r.video?r.video={mediaSource:t}:r.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(r)})}});function Kl(e){if("object"==typeof e&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){var t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach((r=>t.call(this,r,e))),e.getVideoTracks().forEach((r=>t.call(this,r,e)))},e.RTCPeerConnection.prototype.addTrack=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return n&&n.forEach((e=>{this._localStreams?this._localStreams.includes(e)||this._localStreams.push(e):this._localStreams=[e]})),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){this._localStreams||(this._localStreams=[]);var t=this._localStreams.indexOf(e);if(-1!==t){this._localStreams.splice(t,1);var r=e.getTracks();this.getSenders().forEach((e=>{r.includes(e.track)&&this.removeTrack(e)}))}})}}function Yl(e){if("object"==typeof e&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(e){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=e=>{e.streams.forEach((e=>{if(this._remoteStreams||(this._remoteStreams=[]),!this._remoteStreams.includes(e)){this._remoteStreams.push(e);var t=new Event("addstream");t.stream=e,this.dispatchEvent(t)}}))})}});var t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){var e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach((t=>{if(e._remoteStreams||(e._remoteStreams=[]),!(e._remoteStreams.indexOf(t)>=0)){e._remoteStreams.push(t);var r=new Event("addstream");r.stream=t,e.dispatchEvent(r)}}))}),t.apply(e,arguments)}}}function Jl(e){if("object"==typeof e&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype,r=t.createOffer,n=t.createAnswer,i=t.setLocalDescription,o=t.setRemoteDescription,a=t.addIceCandidate;t.createOffer=function(e,t){var n=arguments.length>=2?arguments[2]:arguments[0],i=r.apply(this,[n]);return t?(i.then(e,t),Promise.resolve()):i},t.createAnswer=function(e,t){var r=arguments.length>=2?arguments[2]:arguments[0],i=n.apply(this,[r]);return t?(i.then(e,t),Promise.resolve()):i};var s=function(e,t,r){var n=i.apply(this,[e]);return r?(n.then(t,r),Promise.resolve()):n};t.setLocalDescription=s,s=function(e,t,r){var n=o.apply(this,[e]);return r?(n.then(t,r),Promise.resolve()):n},t.setRemoteDescription=s,s=function(e,t,r){var n=a.apply(this,[e]);return r?(n.then(t,r),Promise.resolve()):n},t.addIceCandidate=s}}function Ql(e){var t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){var r=t.mediaDevices,n=r.getUserMedia.bind(r);t.mediaDevices.getUserMedia=e=>n(Xl(e))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,r,n){t.mediaDevices.getUserMedia(e).then(r,n)}.bind(t))}function Xl(e){return e&&void 0!==e.video?Object.assign({},e,{video:bl(e.video)}):e}function ed(e){if(e.RTCPeerConnection){var t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,r){if(e&&e.iceServers){for(var n=[],i=0;i<e.iceServers.length;i++){var o=e.iceServers[i];!o.hasOwnProperty("urls")&&o.hasOwnProperty("url")?(Sl("RTCIceServer.url","RTCIceServer.urls"),(o=JSON.parse(JSON.stringify(o))).urls=o.url,delete o.url,n.push(o)):n.push(e.iceServers[i])}e.iceServers=n}return new t(e,r)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:()=>t.generateCertificate})}}function td(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function rd(e){var t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){void 0!==e.offerToReceiveAudio&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);var r=this.getTransceivers().find((e=>"audio"===e.receiver.track.kind));!1===e.offerToReceiveAudio&&r?"sendrecv"===r.direction?r.setDirection?r.setDirection("sendonly"):r.direction="sendonly":"recvonly"===r.direction&&(r.setDirection?r.setDirection("inactive"):r.direction="inactive"):!0!==e.offerToReceiveAudio||r||this.addTransceiver("audio",{direction:"recvonly"}),void 0!==e.offerToReceiveVideo&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);var n=this.getTransceivers().find((e=>"video"===e.receiver.track.kind));!1===e.offerToReceiveVideo&&n?"sendrecv"===n.direction?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":"recvonly"===n.direction&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):!0!==e.offerToReceiveVideo||n||this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function nd(e){"object"!=typeof e||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var id=Object.freeze({__proto__:null,shimLocalStreamsAPI:Kl,shimRemoteStreamsAPI:Yl,shimCallbacksAPI:Jl,shimGetUserMedia:Ql,shimConstraints:Xl,shimRTCIceServerUrls:ed,shimTrackEventTransceiver:td,shimCreateOfferLegacy:rd,shimAudioContext:nd}),od={exports:{}};!function(e){var t={generateIdentifier:function(){return Math.random().toString(36).substr(2,10)}};t.localCName=t.generateIdentifier(),t.splitLines=function(e){return e.trim().split("\n").map((e=>e.trim()))},t.splitSections=function(e){return e.split("\nm=").map(((e,t)=>(t>0?"m="+e:e).trim()+"\r\n"))},t.getDescription=function(e){var r=t.splitSections(e);return r&&r[0]},t.getMediaSections=function(e){var r=t.splitSections(e);return r.shift(),r},t.matchPrefix=function(e,r){return t.splitLines(e).filter((e=>0===e.indexOf(r)))},t.parseCandidate=function(e){for(var t,r={foundation:(t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" "))[0],component:{1:"rtp",2:"rtcp"}[t[1]]||t[1],protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]},n=8;n<t.length;n+=2)switch(t[n]){case"raddr":r.relatedAddress=t[n+1];break;case"rport":r.relatedPort=parseInt(t[n+1],10);break;case"tcptype":r.tcpType=t[n+1];break;case"ufrag":r.ufrag=t[n+1],r.usernameFragment=t[n+1];break;default:void 0===r[t[n]]&&(r[t[n]]=t[n+1])}return r},t.writeCandidate=function(e){var t=[];t.push(e.foundation);var r=e.component;"rtp"===r?t.push(1):"rtcp"===r?t.push(2):t.push(r),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);var n=e.type;return t.push("typ"),t.push(n),"host"!==n&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(t.push("tcptype"),t.push(e.tcpType)),(e.usernameFragment||e.ufrag)&&(t.push("ufrag"),t.push(e.usernameFragment||e.ufrag)),"candidate:"+t.join(" ")},t.parseIceOptions=function(e){return e.substr(14).split(" ")},t.parseRtpMap=function(e){var t=e.substr(9).split(" "),r={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),r.name=t[0],r.clockRate=parseInt(t[1],10),r.channels=3===t.length?parseInt(t[2],10):1,r.numChannels=r.channels,r},t.writeRtpMap=function(e){var t=e.payloadType;void 0!==e.preferredPayloadType&&(t=e.preferredPayloadType);var r=e.channels||e.numChannels||1;return"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(1!==r?"/"+r:"")+"\r\n"},t.parseExtmap=function(e){var t=e.substr(9).split(" ");return{id:parseInt(t[0],10),direction:t[0].indexOf("/")>0?t[0].split("/")[1]:"sendrecv",uri:t[1]}},t.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+"\r\n"},t.parseFmtp=function(e){for(var t,r={},n=e.substr(e.indexOf(" ")+1).split(";"),i=0;i<n.length;i++)r[(t=n[i].trim().split("="))[0].trim()]=t[1];return r},t.writeFmtp=function(e){var t="",r=e.payloadType;if(void 0!==e.preferredPayloadType&&(r=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){var n=[];Object.keys(e.parameters).forEach((t=>{void 0!==e.parameters[t]?n.push(t+"="+e.parameters[t]):n.push(t)})),t+="a=fmtp:"+r+" "+n.join(";")+"\r\n"}return t},t.parseRtcpFb=function(e){var t=e.substr(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},t.writeRtcpFb=function(e){var t="",r=e.payloadType;return void 0!==e.preferredPayloadType&&(r=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach((e=>{t+="a=rtcp-fb:"+r+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"})),t},t.parseSsrcMedia=function(e){var t=e.indexOf(" "),r={ssrc:parseInt(e.substr(7,t-7),10)},n=e.indexOf(":",t);return n>-1?(r.attribute=e.substr(t+1,n-t-1),r.value=e.substr(n+1)):r.attribute=e.substr(t+1),r},t.parseSsrcGroup=function(e){var t=e.substr(13).split(" ");return{semantics:t.shift(),ssrcs:t.map((e=>parseInt(e,10)))}},t.getMid=function(e){var r=t.matchPrefix(e,"a=mid:")[0];if(r)return r.substr(6)},t.parseFingerprint=function(e){var t=e.substr(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1].toUpperCase()}},t.getDtlsParameters=function(e,r){return{role:"auto",fingerprints:t.matchPrefix(e+r,"a=fingerprint:").map(t.parseFingerprint)}},t.writeDtlsParameters=function(e,t){var r="a=setup:"+t+"\r\n";return e.fingerprints.forEach((e=>{r+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"})),r},t.parseCryptoLine=function(e){var t=e.substr(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},t.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"==typeof e.keyParams?t.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},t.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;var t=e.substr(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0}},t.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},t.getCryptoParameters=function(e,r){return t.matchPrefix(e+r,"a=crypto:").map(t.parseCryptoLine)},t.getIceParameters=function(e,r){var n=t.matchPrefix(e+r,"a=ice-ufrag:")[0],i=t.matchPrefix(e+r,"a=ice-pwd:")[0];return n&&i?{usernameFragment:n.substr(12),password:i.substr(10)}:null},t.writeIceParameters=function(e){var t="a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n";return e.iceLite&&(t+="a=ice-lite\r\n"),t},t.parseRtpParameters=function(e){for(var r={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},n=t.splitLines(e)[0].split(" "),i=3;i<n.length;i++){var o=n[i],a=t.matchPrefix(e,"a=rtpmap:"+o+" ")[0];if(a){var s=t.parseRtpMap(a),c=t.matchPrefix(e,"a=fmtp:"+o+" ");switch(s.parameters=c.length?t.parseFmtp(c[0]):{},s.rtcpFeedback=t.matchPrefix(e,"a=rtcp-fb:"+o+" ").map(t.parseRtcpFb),r.codecs.push(s),s.name.toUpperCase()){case"RED":case"ULPFEC":r.fecMechanisms.push(s.name.toUpperCase())}}}return t.matchPrefix(e,"a=extmap:").forEach((e=>{r.headerExtensions.push(t.parseExtmap(e))})),r},t.writeRtpDescription=function(e,r){var n="";n+="m="+e+" ",n+=r.codecs.length>0?"9":"0",n+=" UDP/TLS/RTP/SAVPF ",n+=r.codecs.map((e=>void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType)).join(" ")+"\r\n",n+="c=IN IP4 0.0.0.0\r\n",n+="a=rtcp:9 IN IP4 0.0.0.0\r\n",r.codecs.forEach((e=>{n+=t.writeRtpMap(e),n+=t.writeFmtp(e),n+=t.writeRtcpFb(e)}));var i=0;return r.codecs.forEach((e=>{e.maxptime>i&&(i=e.maxptime)})),i>0&&(n+="a=maxptime:"+i+"\r\n"),r.headerExtensions&&r.headerExtensions.forEach((e=>{n+=t.writeExtmap(e)})),n},t.parseRtpEncodingParameters=function(e){var r,n=[],i=t.parseRtpParameters(e),o=-1!==i.fecMechanisms.indexOf("RED"),a=-1!==i.fecMechanisms.indexOf("ULPFEC"),s=t.matchPrefix(e,"a=ssrc:").map((e=>t.parseSsrcMedia(e))).filter((e=>"cname"===e.attribute)),c=s.length>0&&s[0].ssrc,u=t.matchPrefix(e,"a=ssrc-group:FID").map((e=>e.substr(17).split(" ").map((e=>parseInt(e,10)))));u.length>0&&u[0].length>1&&u[0][0]===c&&(r=u[0][1]),i.codecs.forEach((e=>{if("RTX"===e.name.toUpperCase()&&e.parameters.apt){var t={ssrc:c,codecPayloadType:parseInt(e.parameters.apt,10)};c&&r&&(t.rtx={ssrc:r}),n.push(t),o&&((t=JSON.parse(JSON.stringify(t))).fec={ssrc:c,mechanism:a?"red+ulpfec":"red"},n.push(t))}})),0===n.length&&c&&n.push({ssrc:c});var l=t.matchPrefix(e,"b=");return l.length&&(l=0===l[0].indexOf("b=TIAS:")?parseInt(l[0].substr(7),10):0===l[0].indexOf("b=AS:")?1e3*parseInt(l[0].substr(5),10)*.95-16e3:void 0,n.forEach((e=>{e.maxBitrate=l}))),n},t.parseRtcpParameters=function(e){var r={},n=t.matchPrefix(e,"a=ssrc:").map((e=>t.parseSsrcMedia(e))).filter((e=>"cname"===e.attribute))[0];n&&(r.cname=n.value,r.ssrc=n.ssrc);var i=t.matchPrefix(e,"a=rtcp-rsize");r.reducedSize=i.length>0,r.compound=0===i.length;var o=t.matchPrefix(e,"a=rtcp-mux");return r.mux=o.length>0,r},t.writeRtcpParameters=function(e){var t="";return e.reducedSize&&(t+="a=rtcp-rsize\r\n"),e.mux&&(t+="a=rtcp-mux\r\n"),void 0!==e.ssrc&&e.cname&&(t+="a=ssrc:"+e.ssrc+" cname:"+e.cname+"\r\n"),t},t.parseMsid=function(e){var r,n=t.matchPrefix(e,"a=msid:");if(1===n.length)return{stream:(r=n[0].substr(7).split(" "))[0],track:r[1]};var i=t.matchPrefix(e,"a=ssrc:").map((e=>t.parseSsrcMedia(e))).filter((e=>"msid"===e.attribute));return i.length>0?{stream:(r=i[0].value.split(" "))[0],track:r[1]}:void 0},t.parseSctpDescription=function(e){var r,n=t.parseMLine(e),i=t.matchPrefix(e,"a=max-message-size:");i.length>0&&(r=parseInt(i[0].substr(19),10)),isNaN(r)&&(r=65536);var o=t.matchPrefix(e,"a=sctp-port:");if(o.length>0)return{port:parseInt(o[0].substr(12),10),protocol:n.fmt,maxMessageSize:r};var a=t.matchPrefix(e,"a=sctpmap:");if(a.length>0){var s=a[0].substr(10).split(" ");return{port:parseInt(s[0],10),protocol:s[1],maxMessageSize:r}}},t.writeSctpDescription=function(e,t){var r=[];return r="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&r.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),r.join("")},t.generateSessionId=function(){return Math.random().toString().substr(2,21)},t.writeSessionBoilerplate=function(e,r,n){var i=void 0!==r?r:2;return"v=0\r\no="+(n||"thisisadapterortc")+" "+(e||t.generateSessionId())+" "+i+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},t.getDirection=function(e,r){for(var n=t.splitLines(e),i=0;i<n.length;i++)switch(n[i]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return n[i].substr(2)}return r?t.getDirection(r):"sendrecv"},t.getKind=function(e){return t.splitLines(e)[0].split(" ")[0].substr(2)},t.isRejected=function(e){return"0"===e.split(" ",2)[1]},t.parseMLine=function(e){var r=t.splitLines(e)[0].substr(2).split(" ");return{kind:r[0],port:parseInt(r[1],10),protocol:r[2],fmt:r.slice(3).join(" ")}},t.parseOLine=function(e){var r=t.matchPrefix(e,"o=")[0].substr(2).split(" ");return{username:r[0],sessionId:r[1],sessionVersion:parseInt(r[2],10),netType:r[3],addressType:r[4],address:r[5]}},t.isValidSDP=function(e){if("string"!=typeof e||0===e.length)return!1;for(var r=t.splitLines(e),n=0;n<r.length;n++)if(r[n].length<2||"="!==r[n].charAt(1))return!1;return!0},e.exports=t}(od);var ad=od.exports,sd=lc({__proto__:null,default:ad},[od.exports]);function cd(e){if(!(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)){var t=e.RTCIceCandidate;e.RTCIceCandidate=function(e){if("object"==typeof e&&e.candidate&&0===e.candidate.indexOf("a=")&&((e=JSON.parse(JSON.stringify(e))).candidate=e.candidate.substr(2)),e.candidate&&e.candidate.length){var r=new t(e),n=ad.parseCandidate(e.candidate),i=Object.assign(r,n);return i.toJSON=function(){return{candidate:i.candidate,sdpMid:i.sdpMid,sdpMLineIndex:i.sdpMLineIndex,usernameFragment:i.usernameFragment}},i}return new t(e)},e.RTCIceCandidate.prototype=t.prototype,ml(e,"icecandidate",(t=>(t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t)))}}function ud(e,t){if(e.RTCPeerConnection){"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return void 0===this._sctp?null:this._sctp}});var r=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===t.browser&&t.version>=76){var{sdpSemantics:e}=this.getConfiguration();"plan-b"===e&&Object.defineProperty(this,"sctp",{get(){return void 0===this._sctp?null:this._sctp},enumerable:!0,configurable:!0})}if(function(e){if(!e||!e.sdp)return!1;var t=ad.splitSections(e.sdp);return t.shift(),t.some((e=>{var t=ad.parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP")}))}(arguments[0])){var n,i=function(e){var t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return-1;var r=parseInt(t[1],10);return r!=r?-1:r}(arguments[0]),o=(c=i,u=65536,"firefox"===t.browser&&(u=t.version<57?-1===c?16384:2147483637:t.version<60?57===t.version?65535:65536:2147483637),u),a=function(e,r){var n=65536;"firefox"===t.browser&&57===t.version&&(n=65535);var i=ad.matchPrefix(e.sdp,"a=max-message-size:");return i.length>0?n=parseInt(i[0].substr(19),10):"firefox"===t.browser&&-1!==r&&(n=2147483637),n}(arguments[0],i);n=0===o&&0===a?Number.POSITIVE_INFINITY:0===o||0===a?Math.max(o,a):Math.min(o,a);var s={};Object.defineProperty(s,"maxMessageSize",{get:()=>n}),this._sctp=s}var c,u;return r.apply(this,arguments)}}}function ld(e){if(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype){var t=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){var e=t.apply(this,arguments);return r(e,this),e},ml(e,"datachannel",(e=>(r(e.channel,e.target),e)))}function r(e,t){var r=e.send;e.send=function(){var n=arguments[0],i=n.length||n.size||n.byteLength;if("open"===e.readyState&&t.sctp&&i>t.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return r.apply(e,arguments)}}}function dd(e){if(e.RTCPeerConnection&&!("connectionState"in e.RTCPeerConnection.prototype)){var t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(e){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=e)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach((e=>{var r=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=e=>{var t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;var r=new Event("connectionstatechange",e);t.dispatchEvent(r)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),r.apply(this,arguments)}}))}}function fd(e,t){if(e.RTCPeerConnection&&!("chrome"===t.browser&&t.version>=71||"safari"===t.browser&&t.version>=605)){var r=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(t){if(t&&t.sdp&&-1!==t.sdp.indexOf("\na=extmap-allow-mixed")){var n=t.sdp.split("\n").filter((e=>"a=extmap-allow-mixed"!==e.trim())).join("\n");e.RTCSessionDescription&&t instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:t.type,sdp:n}):t.sdp=n}return r.apply(this,arguments)}}}function pd(e,t){if(e.RTCPeerConnection&&e.RTCPeerConnection.prototype){var r=e.RTCPeerConnection.prototype.addIceCandidate;r&&0!==r.length&&(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?("chrome"===t.browser&&t.version<78||"firefox"===t.browser&&t.version<68||"safari"===t.browser)&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():r.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}}function hd(e,t){if(e.RTCPeerConnection&&e.RTCPeerConnection.prototype){var r=e.RTCPeerConnection.prototype.setLocalDescription;r&&0!==r.length&&(e.RTCPeerConnection.prototype.setLocalDescription=function(){var e=arguments[0]||{};if("object"!=typeof e||e.type&&e.sdp)return r.apply(this,arguments);if(!(e={type:e.type,sdp:e.sdp}).type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":e.type="offer";break;default:e.type="answer"}return e.sdp||"offer"!==e.type&&"answer"!==e.type?r.apply(this,[e]):("offer"===e.type?this.createOffer:this.createAnswer).apply(this).then((e=>r.apply(this,[e])))})}}var vd=Object.freeze({__proto__:null,shimRTCIceCandidate:cd,shimMaxMessageSize:ud,shimSendThrowTypeError:ld,shimConnectionState:dd,removeExtmapAllowMixed:fd,shimAddIceCandidateNullOrEmpty:pd,shimParameterlessSetLocalDescription:hd});!function(){var{window:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shimChrome:!0,shimFirefox:!0,shimSafari:!0},r=El,n=function(e){var t={browser:null,version:null};if(void 0===e||!e.navigator)return t.browser="Not a browser.",t;var{navigator:r}=e;if(r.mozGetUserMedia)t.browser="firefox",t.version=vl(r.userAgent,/Firefox\/(\d+)\./,1);else if(r.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection&&!e.RTCIceGatherer)t.browser="chrome",t.version=vl(r.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else{if(!e.RTCPeerConnection||!r.userAgent.match(/AppleWebKit\/(\d+)\./))return t.browser="Not a supported browser.",t;t.browser="safari",t.version=vl(r.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype}return t}(e),i={browserDetails:n,commonShim:vd,extractVersion:vl,disableLog:gl,disableWarnings:yl,sdp:sd};switch(n.browser){case"chrome":if(!Dl||!Pl||!t.shimChrome)return r("Chrome shim is not included in this adapter release."),i;if(null===n.version)return r("Chrome shim can not determine version, not shimming."),i;r("adapter.js shimming chrome."),i.browserShim=Dl,pd(e,n),hd(e),Il(e,n),xl(e),Pl(e,n),Al(e),Ll(e,n),Cl(e),Ol(e),kl(e),Ml(e,n),cd(e),dd(e),ud(e,n),ld(e),fd(e,n);break;case"firefox":if(!$l||!Fl||!t.shimFirefox)return r("Firefox shim is not included in this adapter release."),i;r("adapter.js shimming firefox."),i.browserShim=$l,pd(e,n),hd(e),Ul(e,n),Fl(e,n),jl(e),Vl(e),Bl(e),Zl(e),Gl(e),ql(e),Hl(e),Wl(e),zl(e),cd(e),dd(e),ud(e,n),ld(e);break;case"safari":if(!id||!t.shimSafari)return r("Safari shim is not included in this adapter release."),i;r("adapter.js shimming safari."),i.browserShim=id,pd(e,n),hd(e),ed(e),rd(e),Jl(e),Kl(e),Yl(e),td(e),Ql(e),nd(e),cd(e),ud(e,n),ld(e),fd(e,n);break;default:r("Unsupported browser!")}}({window:"undefined"==typeof window?void 0:window});var md,gd;!function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"}(md||(md={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(gd||(gd={}));md.Start,md.Stop,md.Raise,md.Send,md.Cancel,md.NullEvent,md.Assign;md.After,md.DoneState;md.Log,md.Init,md.Invoke;md.ErrorExecution;md.ErrorPlatform,md.ErrorCustom,md.Update,md.Choose,md.Pure;var yd,Ed="production"===Mc.env.NODE_ENV;var Sd=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();(yd={})[Sd]=function(){return this},yd[Symbol.observable]=function(){return this};var _d;!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(_d||(_d={}));var bd={isModuleAdded:!1,workletProcessorUrl:"https://models.intelligence.webex.com/bnr/1.1.0/noise-reduction-effect.worklet.js"};function Rd(){return(Rd=nc((function*(){Hc.info({mediaType:Zc,action:"loadProcessor()",description:"Creating and loading BNR module"});var e=new AudioContext;return bd.isModuleAdded=!0,bd.audioContext=e,yield e.audioWorklet.addModule(bd.workletProcessorUrl),bd.workletNode=new AudioWorkletNode(e,"noise-reduction-worklet-processor"),e}))).apply(this,arguments)}function Td(){return Td=nc((function*(e){Hc.debug({ID:e.id,mediaType:Zc,action:"enableBNR()",description:"Called"});try{!function(e){if(navigator.mediaDevices.getSupportedConstraints().sampleRate){var t=au(e),{sampleRate:r}=t;if(r&&![16e3,32e3,48e3].includes(r)){var n=new Error("Sample rate of ".concat(r," is not supported."));throw Hc.error({ID:e.id,mediaType:Zc,action:"isValidTrack()",description:n.message,error:n}),n}return!0}var i=new Error("Not supported");Hc.info({ID:e.id,mediaType:Zc,action:"isValidTrack()",description:i.message,error:i})}(e);var t,r=new MediaStream;r.addTrack(e),Hc.info({ID:e.id,mediaType:Zc,action:"enableBNR()",description:"Checking if BNR module is present already"});var n=bd.destinationTrack;if(n&&e.id===n.id){var i="BNR is enabled on the track already",o=new Error(i);throw Hc.error({ID:e.id,mediaType:Zc,action:"enableBNR()",description:i,error:o}),o}bd.isModuleAdded&&(Hc.debug({ID:e.id,mediaType:Zc,action:"enableBNR()",description:"Disposing existing BNR module"}),(t=bd.workletNode).port.postMessage("DISPOSE")),Hc.info({ID:e.id,mediaType:Zc,action:"enableBNR()",description:"Creating worklet node, connecting source and destination streams"});var a=yield function(){return Rd.apply(this,arguments)}();(t=bd.workletNode).port.postMessage("ENABLE"),bd.sourceNode=a.createMediaStreamSource(r),bd.sourceNode.connect(t),bd.destinationStream=a.createMediaStreamDestination(),t.connect(bd.destinationStream),Hc.info({ID:e.id,mediaType:Zc,action:"enableBNR()",description:"Obtaining noise reduced track and returning"});var s=bd.destinationStream.stream,[c]=s.getAudioTracks();return bd.destinationTrack=c,c}catch(t){throw Hc.error({ID:e.id,mediaType:Zc,action:"enableBNR()",description:"Error in enableBNR",error:t}),t}})),Td.apply(this,arguments)}var wd={createAudioTrack:function(e){return mu.apply(this,arguments)},createVideoTrack:function(e){return gu.apply(this,arguments)},createContentTrack:function(e){return yu.apply(this,arguments)},getCameras:pu,getMicrophones:hu,getSpeakers:vu,on:function(e,t){return _u.apply(this,arguments)},off:(e,t)=>{Hc.debug({mediaType:Fc,action:"off()",description:"Called ".concat(e," with ").concat(t," listener")}),lu.off(e,t)},Effects:{BNR:{enableBNR:function(e){return Td.apply(this,arguments)},disableBNR:function(){Hc.debug({mediaType:Zc,action:"disableBNR()",description:"Called"});try{if(Hc.info({mediaType:Zc,action:"disableBNR()",description:"Checking if BNR is enabled before disabling"}),!bd.isModuleAdded){var e=new Error("Can not disable as BNR is not enabled");throw Hc.error({mediaType:Zc,action:"disableBNR()",description:"Can not disable as BNR is not enabled"}),e}Hc.info({mediaType:Zc,action:"disableBNR()",description:"Using existing AudioWorkletNode for disabling BNR"}),bd.workletNode.port.postMessage("DISPOSE"),Hc.info({mediaType:Zc,action:"disableBNR()",description:"Obtaining raw media stream track and removing bnr context"});var t=bd.sourceNode.mediaStream,[r]=null==t?void 0:t.getAudioTracks();return bd.isModuleAdded=!1,delete bd.workletNode,delete bd.audioContext,delete bd.sourceNode,delete bd.destinationStream,delete bd.destinationTrack,r}catch(e){throw Hc.error({mediaType:Zc,action:"disableBNR()",description:"Error in disableBNR",error:e}),e}}}},isBrowserSupported:function(){var e=!1;return Hc.info({mediaType:Fc,action:"isBrowserSupported()",description:"Checking is current browser supported by webrtc"}),(Uc.exports.browser.isChrome||Uc.exports.browser.isFirefox||Uc.exports.browser.isSafari||Uc.exports.browser.isEdge)&&Uc.exports.isWebRTCSupported&&(e=!0),e}},Id=r(66411);function xd(){return xd="undefined"!=typeof Reflect&&Id?Id.bind():function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,y.Z)(e)););return e}(e,t);if(n){var i=po(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},xd.apply(this,arguments)}var Ad=r(17187);function Cd(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var Od=function(e){(0,m.Z)(r,e);var t=Cd(r);function r(){return(0,p.Z)(this,r),t.apply(this,arguments)}return(0,h.Z)(r,[{key:"emit",value:function(e,t,n){return Ke.logger.debug("".concat(oo.getScopeLog(e),"event#").concat(t).concat(ze.verboseEvents?" -- ".concat(oo.getEventLog(n)):"")),xd((0,y.Z)(r.prototype),"emit",this).call(this,t,n)}}]),r}(r.n(Ad)());const kd={intervals:[{audioReceive:[{common:{common:{direction:"inactive",isMain:!0,mariFecEnabled:!1,mariQosEnabled:!1,multistreamEnabled:!1},dtlsBitrate:0,dtlsPackets:0,fecBitrate:0,fecPackets:0,maxBitrate:0,mediaHopByHopLost:0,rtcpBitrate:0,rtcpPackets:0,rtpBitrate:0,rtpHopByHopLost:0,rtpPackets:0,rtpRecovered:0,rtxBitrate:0,rtxPackets:0,srtcpUnprotectErrors:0,srtpUnprotectErrors:0,stunBitrate:0,stunPackets:0,transportType:"UDP"},streams:[{common:{codec:"opus",concealedFrames:0,csi:[],maxConcealRunLength:0,optimalBitrate:0,optimalFrameRate:0,receivedBitrate:0,receivedFrameRate:0,renderedFrameRate:0,requestedBitrate:0,requestedFrameRate:0,rtpEndToEndLost:0,maxRtpJitter:0,meanRtpJitter:0,rtpPackets:0,ssci:0}}]}],audioTransmit:[{common:{availableBitrate:0,common:{direction:"inactive",isMain:!0,mariFecEnabled:!1,mariQosEnabled:!1,multistreamEnabled:!1},dtlsBitrate:0,dtlsPackets:0,fecBitrate:0,fecPackets:0,maxBitrate:0,queueDelay:0,remoteJitter:0,remoteLossRate:0,remoteReceiveRate:0,roundTripTime:0,rtcpBitrate:0,rtcpPackets:0,rtpBitrate:0,rtpPackets:0,rtxBitrate:0,rtxPackets:0,stunBitrate:0,stunPackets:0,transportType:"UDP"},streams:[{common:{codec:"opus",requestedBitrate:0,requestedFrames:0,rtpPackets:0,ssci:0,transmittedBitrate:0,transmittedFrameRate:0}}]}],intervalMetadata:{peerReflexiveIP:"0.0.0.0",peripherals:[],processAverageCPU:0,processMaximumCPU:0,systemAverageCPU:0,systemMaximumCPU:0},intervalNumber:0,videoReceive:[{common:{common:{direction:"inactive",isMain:!0,mariFecEnabled:!0,mariQosEnabled:!0,multistreamEnabled:!0},dtlsBitrate:0,dtlsPackets:0,fecBitrate:0,fecPackets:0,maxBitrate:0,mediaHopByHopLost:0,rtcpBitrate:0,rtcpPackets:0,rtpBitrate:0,rtpHopByHopLost:0,rtpPackets:0,rtpRecovered:0,rtxBitrate:0,rtxPackets:0,srtcpUnprotectErrors:0,srtpUnprotectErrors:0,stunBitrate:0,stunPackets:0,transportType:"UDP"},streams:[{common:{codec:"H264",concealedFrames:0,csi:[],maxConcealRunLength:0,optimalBitrate:0,optimalFrameRate:0,receivedBitrate:0,receivedFrameRate:0,renderedFrameRate:0,requestedBitrate:0,requestedFrameRate:0,rtpEndToEndLost:0,rtpJitter:0,rtpPackets:0,ssci:0},h264CodecProfile:"BP",isActiveSpeaker:!0,optimalFrameSize:0,receivedFrameSize:0,receivedHeight:0,receivedKeyFrames:0,receivedKeyFramesForRequest:0,receivedKeyFramesSourceChange:0,receivedKeyFramesUnknown:0,receivedWidth:0,requestedFrameSize:0,requestedKeyFrames:0}]},{common:{common:{direction:"inactive",isMain:!1,mariFecEnabled:!0,mariQosEnabled:!0,multistreamEnabled:!0},dtlsBitrate:0,dtlsPackets:0,fecBitrate:0,fecPackets:0,maxBitrate:0,mediaHopByHopLost:0,rtcpBitrate:0,rtcpPackets:0,rtpBitrate:0,rtpHopByHopLost:0,rtpPackets:0,rtpRecovered:0,rtxBitrate:0,rtxPackets:0,srtcpUnprotectErrors:0,srtpUnprotectErrors:0,stunBitrate:0,stunPackets:0,transportType:"UDP"},streams:[{common:{codec:"H264",concealedFrames:0,csi:[],maxConcealRunLength:0,optimalBitrate:0,optimalFrameRate:0,receivedBitrate:0,receivedFrameRate:0,renderedFrameRate:0,requestedBitrate:0,requestedFrameRate:0,rtpEndToEndLost:0,rtpJitter:0,rtpPackets:0,ssci:0},h264CodecProfile:"BP",isActiveSpeaker:!0,optimalFrameSize:0,receivedFrameSize:0,receivedHeight:0,receivedKeyFrames:0,receivedKeyFramesForRequest:0,receivedKeyFramesSourceChange:0,receivedKeyFramesUnknown:0,receivedWidth:0,requestedFrameSize:0,requestedKeyFrames:0}]}],videoTransmit:[{common:{availableBitrate:0,common:{direction:"inactive",isMain:!0,mariFecEnabled:!1,mariQosEnabled:!1,multistreamEnabled:!1},dtlsBitrate:0,dtlsPackets:0,fecBitrate:0,fecPackets:0,maxBitrate:0,queueDelay:0,remoteJitter:0,remoteLossRate:0,remoteReceiveRate:0,roundTripTime:0,rtcpBitrate:0,rtcpPackets:0,rtpBitrate:0,rtpPackets:0,rtxBitrate:0,rtxPackets:0,stunBitrate:0,stunPackets:0,transportType:"UDP"},streams:[{common:{codec:"H264",duplicateSsci:0,requestedBitrate:0,requestedFrames:0,rtpPackets:0,ssci:0,transmittedBitrate:0,transmittedFrameRate:0},h264CodecProfile:"BP",isAvatar:!1,isHardwareEncoded:!1,localConfigurationChanges:2,maxFrameQp:0,maxNoiseLevel:0,minRegionQp:0,remoteConfigurationChanges:0,requestedFrameSize:0,requestedKeyFrames:0,transmittedFrameSize:0,transmittedHeight:0,transmittedKeyFrames:0,transmittedKeyFramesClient:0,transmittedKeyFramesConfigurationChange:0,transmittedKeyFramesFeedback:0,transmittedKeyFramesLocalDrop:0,transmittedKeyFramesOtherLayer:0,transmittedKeyFramesPeriodic:0,transmittedKeyFramesSceneChange:0,transmittedKeyFramesStartup:0,transmittedKeyFramesUnknown:0,transmittedWidth:0}]},{common:{availableBitrate:0,common:{direction:"inactive",isMain:!1,mariFecEnabled:!1,mariQosEnabled:!1,multistreamEnabled:!1},dtlsBitrate:0,dtlsPackets:0,fecBitrate:0,fecPackets:0,maxBitrate:0,queueDelay:0,remoteJitter:0,remoteLossRate:0,remoteReceiveRate:0,roundTripTime:0,rtcpBitrate:0,rtcpPackets:0,rtpBitrate:0,rtpPackets:0,rtxBitrate:0,rtxPackets:0,stunBitrate:0,stunPackets:0,transportType:"UDP"},streams:[{common:{codec:"H264",duplicateSsci:0,requestedBitrate:0,requestedFrames:0,rtpPackets:0,ssci:0,transmittedBitrate:0,transmittedFrameRate:0},h264CodecProfile:"BP",isAvatar:!1,isHardwareEncoded:!1,localConfigurationChanges:2,maxFrameQp:0,maxNoiseLevel:0,minRegionQp:0,remoteConfigurationChanges:0,requestedFrameSize:0,requestedKeyFrames:0,transmittedFrameSize:0,transmittedHeight:0,transmittedKeyFrames:0,transmittedKeyFramesClient:0,transmittedKeyFramesConfigurationChange:0,transmittedKeyFramesFeedback:0,transmittedKeyFramesLocalDrop:0,transmittedKeyFramesOtherLayer:0,transmittedKeyFramesPeriodic:0,transmittedKeyFramesSceneChange:0,transmittedKeyFramesStartup:0,transmittedKeyFramesUnknown:0,transmittedWidth:0}]}]}]};const Nd={encryption:"sha-256",audio:{send:{maxPacketLossRatio:0,availableBandwidth:0,bytesSent:0,meanRemoteJitter:[],meanRoundTripTime:[]},recv:{availableBandwidth:0,bytesReceived:0,meanRtpJitter:[],meanRoundTripTime:[]}},video:{send:{maxPacketLossRatio:0,availableBandwidth:0,meanRemoteJitter:[],meanRoundTripTime:[]},recv:{availableBandwidth:0,totalPacketsLost:0,meanRtpJitter:[],meanRoundTripTime:[]},latency:0,packetsLost:0},share:{send:{maxPacketLossRatio:0,availableBandwidth:0,totalPacketsLost:0,meanRemoteJitter:[],meanRoundTripTime:[]},recv:{availableBandwidth:0,meanRtpJitter:[],meanRoundTripTime:[]},latency:0,packetsLost:0},bandwidth:{systemBandwidth:0,sentPerSecond:0,encodedPerSecond:0,helper:{audioBytesSent:0,videoBytestSent:0},speed:0},results:{},connectionType:{systemNetworkType:"unknown",systemIpAddress:"0.0.0.0",local:{candidateType:[],transport:[],ipAddress:[],networkType:[]},remote:{candidateType:[],transport:[],ipAddress:[],networkType:[]}},resolutions:{audio:{send:{width:0,height:0},recv:{width:0,height:0}},video:{send:{width:0,height:0},recv:{width:0,height:0}},share:{send:{width:0,height:0},recv:{width:0,height:0}}},internal:{audio:{send:{},recv:{}},video:{send:{},recv:{}},share:{send:{},recv:{}},remote:{},candidates:{}}};var Ld=r(6162),Pd=r.n(Ld),Md=r(78659),Dd=r.n(Md),Ud=function(e){var t=e.videoReceiver,r=e.statsResults,n=e.lastMqaDataSent,i=e.isShareStream,o=void 0!==i&&i?ni.SHARE_CORRELATE:ni.VIDEO_CORRELATE,a=ni.RECEIVE_DIRECTION;t.common.common.direction=r[o].direction,t.common.transportType=r.connectionType.remote.transport[0],t.common.rtpPackets=r[o][a].totalPacketsReceived-n[o][a].totalPacketsReceived||0,t.streams[0].common.rtpPackets=t.common.rtpPackets;var s=r[o][a].totalPacketsLost-n[o][a].totalPacketsLost||0;t.common.mediaHopByHopLost=s,t.common.rtpHopByHopLost=s,t.streams[0].common.rtpEndToEndLost=s,t.common.maxRemoteJitter=1e3*Pd()(r[o][a].meanRemoteJitter)||0,t.common.meanRemoteJitter=1e3*Dd()(r[o][a].meanRemoteJitter)||0,t.streams[0].common.rtpJitter=t.common.maxRemoteJitter;var c=r[o][a].totalBytesReceived-n[o][a].totalBytesReceived;t.streams[0].common.receivedBitrate=c?8*c/60:0,t.common.rtpBitrate=t.streams[0].common.receivedBitrate;var u=r.resolutions[o][a].framesReceived-n.resolutions[o][a].framesReceived,l=r.resolutions[o][a].framesDecoded-n.resolutions[o][a].framesDecoded;t.streams[0].common.receivedFrameRate=u?100*u/60:0,t.streams[0].common.renderedFrameRate=l?100*l/60:0,t.streams[0].common.framesDropped=r.resolutions[o][a].framesDropped-n.resolutions[o][a].framesDropped,t.streams[0].receivedHeight=r.resolutions[o][a].height,t.streams[0].receivedWidth=r.resolutions[o][a].width,t.streams[0].receivedFrameSize=r.resolutions[o][a].height*r.resolutions[o][a].height/256,t.streams[0].receivedKeyFrames=r[o][a].keyFramesDecoded-n[o][a].keyFramesDecoded||0,t.streams[0].requestedKeyFrames=r[o][a].totalPliCount-n[o][a].totalPliCount||0},jd=function(e){var t=e.videoSender,r=e.statsResults,n=e.lastMqaDataSent,i=e.isShareStream,o=void 0!==i&&i?ni.SHARE_CORRELATE:ni.VIDEO_CORRELATE,a=ni.SEND_DIRECTION;t.common.common.direction=r[o].direction,t.common.transportType=r.connectionType.local.transport[0],t.common.maxRemoteJitter=1e3*Pd()(r[o][a].meanRemoteJitter)||0,t.common.meanRemoteJitter=1e3*Dd()(r[o][a].meanRemoteJitter)||0,t.common.rtpPackets=r[o][a].totalPacketsSent-n[o][a].totalPacketsSent||0,t.common.availableBitrate=r[o][a].availableOutgoingBitrate||0;var s=r[o][a].totalPacketsLostOnReceiver-n[o][a].totalPacketsLostOnReceiver;t.common.remoteLossRate=s>0?100*s/(t.common.rtpPackets+s):0,t.common.maxRoundTripTime=1e3*Pd()(r[o][a].meanRoundTripTime)||0,t.common.meanRoundTripTime=1e3*Dd()(r[o][a].meanRoundTripTime)||0,t.common.roundTripTime=t.common.maxRoundTripTime,t.streams[0].common.rtpPackets=r[o][a].totalPacketsSent-n[o][a].totalPacketsSent||0;var c=r[o][a].totalBytesSent-n[o][a].totalBytesSent;t.streams[0].common.transmittedBitrate=c?8*c/60:0,t.common.rtpBitrate=t.streams[0].common.transmittedBitrate,t.streams[0].transmittedKeyFrames=r[o][a].totalKeyFramesEncoded-n[o][a].totalKeyFramesEncoded||0,t.streams[0].requestedKeyFrames=r[o][a].totalFirCount-n[o][a].totalFirCount||0;var u=r.resolutions[o][a].framesSent-(n.resolutions[o][a].framesSent||0);t.streams[0].common.transmittedFrameRate=u?100*u/60:0,t.streams[0].transmittedHeight=r.resolutions[o][a].height,t.streams[0].transmittedWidth=r.resolutions[o][a].width,t.streams[0].transmittedFrameSize=r.resolutions[o][a].height*r.resolutions[o][a].width/254};function Fd(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var Bd="MEDIA_QUALITY",Zd="LOCAL_MEDIA_STARTED",Vd="LOCAL_MEDIA_STOPPED",Gd="REMOTE_MEDIA_STARTED",qd="REMOTE_MEDIA_STOPPED",Hd=function(e){(0,m.Z)(r,e);var t=Fd(r);function r(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Nd;return(0,p.Z)(this,r),n=t.call(this),(0,E.Z)((0,v.Z)(n),"config",void 0),(0,E.Z)((0,v.Z)(n),"correlationId",void 0),(0,E.Z)((0,v.Z)(n),"lastEmittedStartStopEvent",void 0),(0,E.Z)((0,v.Z)(n),"lastMqaDataSent",void 0),(0,E.Z)((0,v.Z)(n),"lastStatsResults",void 0),(0,E.Z)((0,v.Z)(n),"localMQEStats",void 0),(0,E.Z)((0,v.Z)(n),"meetingMediaStatus",void 0),(0,E.Z)((0,v.Z)(n),"mqaInterval",void 0),(0,E.Z)((0,v.Z)(n),"mqaSentCount",void 0),(0,E.Z)((0,v.Z)(n),"networkQualityMonitor",void 0),(0,E.Z)((0,v.Z)(n),"peerConnection",void 0),(0,E.Z)((0,v.Z)(n),"statsInterval",void 0),(0,E.Z)((0,v.Z)(n),"statsResults",void 0),(0,E.Z)((0,v.Z)(n),"statsStarted",void 0),(0,E.Z)((0,v.Z)(n),"emitStartStopEvents",(function(e,t,r,i){if("audio"!==e&&"video"!==e&&"share"!==e)throw new Error("Unsupported mediaType: ".concat(e));void 0===t&&(t=0),void 0===r&&(r=0);var o,a=i?n.lastEmittedStartStopEvent[e].local:n.lastEmittedStartStopEvent[e].remote;r-t>0?o=i?Zd:Gd:r===t&&r>0&&(o=i?Vd:qd),o&&a!==o&&(i?n.lastEmittedStartStopEvent[e].local=o:n.lastEmittedStartStopEvent[e].remote=o,n.emit({file:"statsAnalyzer/index",function:"compareLastStatsResult"},o,{type:e}))})),(0,E.Z)((0,v.Z)(n),"parseCandidate",(function(e,t,r,i){if(e&&e.id){var o={},a={},s={},c={};if(e.id){var u=r?ni.SEND_DIRECTION:ni.RECEIVE_DIRECTION,l=i?ni.REMOTE:ni.LOCAL;o[e.id]||(o[e.id]=[]),a[e.id]||(a[e.id]=[]),s[e.id]||(s[e.id]=[]),c[e.id]||(c[e.id]=[]),e.candidateType&&-1===o[e.id].indexOf(e.candidateType)&&o[e.id].push(e.candidateType),e.protocol&&-1===a[e.id].indexOf(e.protocol)&&a[e.id].push(e.protocol.toUpperCase()),e.ip&&-1===s[e.id].indexOf("".concat(e.ip,":").concat(e.portNumber))&&s[e.id].push("".concat(e.ip)),e.networkType&&-1===c[e.id].indexOf(e.networkType)&&c[e.id].push(e.networkType),n.statsResults.internal.candidates[e.id]={candidateType:o[e.id],ipAddress:s[e.id],portNumber:e.port,networkType:c[e.id],priority:e.priority,transport:a[e.id],timestamp:e.time,id:e.id,type:e.type},n.statsResults.connectionType[l].candidateType=o[e.id],n.statsResults.connectionType[l].ipAddress=s[e.id],n.statsResults.connectionType[l].networkType=c[e.id][0]===ri.VPN?ri.UNKNOWN:c[e.id][0],n.statsResults.connectionType[l].transport=a[e.id],n.statsResults[t][u].totalRoundTripTime=e.totalRoundTripTime}}})),n.statsStarted=!1,n.statsResults=o,n.lastStatsResults=null,n.config=e,n.networkQualityMonitor=i,n.correlationId=e.correlationId,n.mqaSentCount=-1,n.lastMqaDataSent={resolutions:{video:{send:{},recv:{}},audio:{send:{},recv:{}},share:{send:{},recv:{}}},video:{send:{},recv:{}},audio:{send:{},recv:{}},share:{send:{},recv:{}}},n.localMQEStats={audio:{RX:{packetsLost:[],jitter:[],latency:[],bitRate:[]},TX:{packetsLost:[],jitter:[],latency:[],bitRate:[]}},video:{RX:{packetsLost:[],jitter:[],latency:[],bitRate:[],frameRate:[],resolutionWidth:[],resolutionHeight:[],requestedKeyFrame:[],receivedKeyFrame:[]},TX:{packetsLost:[],jitter:[],latency:[],bitRate:[],frameRate:[],resolutionWidth:[],resolutionHeight:[],requestedKeyFrame:[],receivedKeyFrame:[]}}},n.lastEmittedStartStopEvent={audio:{local:void 0,remote:void 0},video:{local:void 0,remote:void 0},share:{local:void 0,remote:void 0}},n}return(0,h.Z)(r,[{key:"populateResults",value:function(e){this.localMQEStats.audio.RX.packetsLost.push(e.audioReceive[0].common.mediaHopByHopLost),this.localMQEStats.audio.RX.jitter.push(e.audioReceive[0].streams[0].common.rtpJitter),this.localMQEStats.audio.RX.latency.push(e.audioReceive[0].common.roundTripTime),this.localMQEStats.audio.RX.bitRate.push(e.audioReceive[0].streams[0].common.receivedBitrate),this.localMQEStats.audio.TX.packetsLost.push(e.audioTransmit[0].common.remoteLossRate),this.localMQEStats.audio.TX.jitter.push(e.audioTransmit[0].common.remoteJitter),this.localMQEStats.audio.TX.latency.push(e.audioTransmit[0].common.roundTripTime),this.localMQEStats.audio.TX.bitRate.push(e.audioTransmit[0].streams[0].common.transmittedBitrate),this.localMQEStats.video.RX.packetsLost.push(e.videoReceive[0].common.mediaHopByHopLost),this.localMQEStats.video.RX.jitter.push(e.videoReceive[0].streams[0].common.rtpJitter),this.localMQEStats.video.RX.latency.push(e.videoReceive[0].streams[0].common.roundTripTime),this.localMQEStats.video.RX.bitRate.push(e.videoReceive[0].streams[0].common.receivedBitrate),this.localMQEStats.video.RX.frameRate.push(e.videoReceive[0].streams[0].common.receivedFrameRate),this.localMQEStats.video.RX.resolutionWidth.push(e.videoReceive[0].streams[0].receivedWidth),this.localMQEStats.video.RX.resolutionHeight.push(e.videoReceive[0].streams[0].receivedHeight),this.localMQEStats.video.RX.requestedKeyFrame.push(),this.localMQEStats.video.RX.receivedKeyFrame.push(),this.localMQEStats.video.TX.packetsLost.push(e.videoTransmit[0].common.remoteLossRate),this.localMQEStats.video.TX.jitter.push(e.videoTransmit[0].common.remoteJitter),this.localMQEStats.video.TX.latency.push(e.videoTransmit[0].common.roundTripTime),this.localMQEStats.video.TX.bitRate.push(e.videoTransmit[0].streams[0].common.transmittedBitrate),this.localMQEStats.video.TX.frameRate.push(e.videoTransmit[0].streams[0].common.transmittedFrameRate),this.localMQEStats.video.TX.resolutionWidth.push(e.videoTransmit[0].streams[0].transmittedWidth),this.localMQEStats.video.TX.resolutionHeight.push(e.videoTransmit[0].streams[0].transmittedHeight),this.localMQEStats.video.TX.requestedKeyFrame.push(e.videoTransmit[0].streams[0].requestedKeyFrames),this.localMQEStats.video.TX.receivedKeyFrame.push()}},{key:"resetStatsResults",value:function(){this.statsResults.audio.send.meanRemoteJitter=[],this.statsResults.video.send.meanRemoteJitter=[],this.statsResults.share.send.meanRemoteJitter=[],this.statsResults.audio.recv.meanRtpJitter=[],this.statsResults.video.recv.meanRtpJitter=[],this.statsResults.share.recv.meanRtpJitter=[],this.statsResults.audio.send.meanRoundTripTime=[],this.statsResults.video.send.meanRoundTripTime=[],this.statsResults.share.send.meanRoundTripTime=[]}},{key:"updateMediaStatus",value:function(e){this.meetingMediaStatus=e}},{key:"sendMqaData",value:function(){var e,t,r,n,i,o,a,s,c=kd.intervals[0].audioReceive[0],u=kd.intervals[0].audioTransmit[0],l=kd.intervals[0].videoReceive[0],d=kd.intervals[0].videoTransmit[0],f=kd.intervals[0].videoTransmit[1],p=kd.intervals[0].videoReceive[1];!function(e){var t=e.audioSender,r=e.statsResults,n=e.lastMqaDataSent,i=ni.AUDIO_CORRELATE,o=ni.SEND_DIRECTION;t.common.common.direction=r[i].direction,t.common.transportType=r.connectionType.local.transport[0],t.common.maxRemoteJitter=1e3*Pd()(r[i][o].meanRemoteJitter)||0,t.common.meanRemoteJitter=1e3*Dd()(r[i][o].meanRemoteJitter)||0,t.common.rtpPackets=r[i][o].totalPacketsSent-n[i][o].totalPacketsSent||0,t.streams[0].common.rtpPackets=t.common.rtpPackets,t.common.availableBitrate=r[i][o].availableOutgoingBitrate||0;var a=r[i][o].totalPacketsLostOnReceiver-n[i][o].totalPacketsLostOnReceiver;t.common.remoteLossRate=a>0?100*a/t.common.rtpPackets:0,t.common.maxRoundTripTime=1e3*Pd()(r[i][o].meanRoundTripTime)||0,t.common.meanRoundTripTime=1e3*Dd()(r[i][o].meanRoundTripTime)||0,t.common.roundTripTime=t.common.maxRoundTripTime;var s=r[i][o].totalBytesSent-n[i][o].totalBytesSent;t.streams[0].common.transmittedBitrate=s?8*s/60:0,t.common.rtpBitrate=t.streams[0].common.transmittedBitrate,t.streams[0].transmittedKeyFrames=r[i][o].totalKeyFramesEncoded-n[i][o].totalKeyFramesEncoded||0,t.streams[0].requestedKeyFrames=r[i][o].totalFirCount-n[i][o].totalFirCount||0}({audioSender:u,statsResults:this.statsResults,lastMqaDataSent:this.lastMqaDataSent}),function(e){var t=e.audioReceiver,r=e.statsResults,n=e.lastMqaDataSent,i=ni.AUDIO_CORRELATE,o=ni.RECEIVE_DIRECTION;t.common.common.direction=r[i].direction,t.common.transportType=r.connectionType.remote.transport[0],t.common.rtpPackets=r[i][o].totalPacketsReceived-n[i][o].totalPacketsReceived||0,t.streams[0].common.rtpPackets=t.common.rtpPackets,t.common.mediaHopByHopLost=r[i][o].totalPacketsLost-n[i][o].totalPacketsLost||0,t.common.rtpHopByHopLost=r[i][o].totalPacketsLost-n[i][o].totalPacketsLost||0,t.streams[0].common.maxRtpJitter=1e3*Pd()(r[i][o].meanRtpJitter)||0,t.streams[0].common.meanRtpJitter=1e3*Dd()(r[i][o].meanRtpJitter)||0,t.streams[0].common.rtpJitter=t.streams[0].common.maxRtpJitter;var a=r[i][o].fecPacketsReceived-n[i][o].fecPacketsReceived-(r[i][o].fecPacketsDiscarded-n[i][o].fecPacketsDiscarded);t.streams[0].common.rtpEndToEndLost=r[i][o].totalPacketsLost-n[i][o].totalPacketsLost-a||0,t.streams[0].common.framesDropped=r[i][o].totalSamplesDecoded-n[i][o].totalSamplesDecoded||0,t.streams[0].common.renderedFrameRate=100*t.streams[0].common.framesDropped/60||0,t.streams[0].common.framesReceived=r[i][o].totalSamplesReceived-n[i][o].totalSamplesReceived||0,t.streams[0].common.concealedFrames=r[i][o].concealedSamples-n[i][o].concealedSamples||0,t.streams[0].common.receivedBitrate=8*(r[i][o].totalBytesReceived-n[i][o].totalBytesReceived)/60||0,t.common.rtpBitrate=t.streams[0].common.receivedBitrate}({audioReceiver:c,statsResults:this.statsResults,lastMqaDataSent:this.lastMqaDataSent}),Ud({videoReceiver:l,statsResults:this.statsResults,lastMqaDataSent:this.lastMqaDataSent}),jd({videoSender:d,statsResults:this.statsResults,lastMqaDataSent:this.lastMqaDataSent}),jd({videoSender:f,statsResults:this.statsResults,lastMqaDataSent:this.lastMqaDataSent,isShareStream:!0}),Ud({videoReceiver:p,statsResults:this.statsResults,lastMqaDataSent:this.lastMqaDataSent,isShareStream:!0}),kd.intervals[0].intervalMetadata.peerReflexiveIP=this.statsResults.connectionType.local.ipAddress[0],kd.intervals[0].intervalMetadata.peripherals=[],kd.intervals[0].intervalMetadata.peripherals.push({information:jr,name:li.SPEAKER}),kd.intervals[0].intervalMetadata.peripherals.push({information:(null===(e=this.peerConnection)||void 0===e||null===(t=e.audioTransceiver)||void 0===t||null===(r=t.sender)||void 0===r||null===(n=r.track)||void 0===n?void 0:n.label)||jr,name:li.MICROPHONE}),kd.intervals[0].intervalMetadata.peripherals.push({information:(null===(i=this.peerConnection)||void 0===i||null===(o=i.videoTransceiver)||void 0===o||null===(a=o.sender)||void 0===a||null===(s=a.track)||void 0===s?void 0:s.label)||jr,name:li.CAMERA}),kd.networkType=this.statsResults.connectionType.local.networkType,this.mqaSentCount+=1,kd.intervals[0].intervalNumber=this.mqaSentCount,this.lastMqaDataSent=tc()(this.statsResults),this.populateResults(kd.intervals[0]),this.resetStatsResults(),this.emit({file:"statsAnalyzer",function:"sendMqaData"},Bd,{data:kd.intervals[0],networkType:kd.networkType})}},{key:"updatePeerconnection",value:function(e){this.peerConnection=e}},{key:"startAnalyzer",value:function(e){var t=this;return this.statsStarted?R().resolve():(this.statsStarted=!0,this.peerConnection=e,this.getStatsAndParse().then((function(){t.statsInterval=setInterval((function(){t.getStatsAndParse()}),t.config.analyzerInterval),t.sendMqaData(),t.mqaInterval=setInterval((function(){t.sendMqaData()}),ui)})))}},{key:"stopAnalyzer",value:function(){var e=this,t=this.mqaInterval&&this.statsInterval;return this.statsInterval&&(clearInterval(this.statsInterval),this.statsInterval=void 0),this.mqaInterval&&(clearInterval(this.mqaInterval),this.mqaInterval=void 0),t?this.getStatsAndParse().then((function(){e.sendMqaData(),e.peerConnection=null})):(this.peerConnection=null,R().resolve())}},{key:"parseGetStatsResult",value:function(e,t,r){if(e)switch(e.type){case"outbound-rtp":this.processOutboundRTPResult(e,t);break;case"inbound-rtp":this.processInboundRTPResult(e,t);break;case"track":this.processTrackResult(e,t);break;case"remote-inbound-rtp":case"remote-outbound-rtp":this.compareSentAndReceived(e,t,r);break;case"remotecandidate":case"remote-candidate":this.parseCandidate(e,t,r,!0);break;case"local-candidate":this.parseCandidate(e,t,r,!1);break;case"media-source":this.parseAudioSource(e,t)}}},{key:"filterAndParseGetStatsResults",value:function(e,t,r){var n=this,i=En.types;e.forEach((function(e){i.includes(e.type)&&n.parseGetStatsResult(e,t,r)}))}},{key:"parseAudioSource",value:function(e,t){e&&t===ni.AUDIO_CORRELATE&&(this.statsResults[t].send.audioLevel=e.audioLevel,this.statsResults[t].send.totalAudioEnergy=e.totalAudioEnergy)}},{key:"compareLastStatsResult",value:function(){if(null!==this.lastStatsResults&&this.meetingMediaStatus){var e=ni.AUDIO_CORRELATE,t=null,r=null;this.meetingMediaStatus.expected.sendAudio&&(t=this.statsResults[e].send,r=this.lastStatsResults[e].send,t.totalPacketsSent===r.totalPacketsSent||0===t.totalPacketsSent?Ke.logger.info("StatsAnalyzer:index#compareLastStatsResult --\x3e No ".concat(e," RTP packets sent")):(t.totalAudioEnergy!==r.totalAudioEnergy&&0!==t.totalAudioEnergy||Ke.logger.info("StatsAnalyzer:index#compareLastStatsResult --\x3e No ".concat(e," Energy present")),0===t.audioLevel&&Ke.logger.info("StatsAnalyzer:index#compareLastStatsResult --\x3e ".concat(e," level is 0 for the user"))),this.emitStartStopEvents(e,r.totalPacketsSent,t.totalPacketsSent,!0)),this.meetingMediaStatus.expected.receiveAudio&&(t=this.statsResults[e].recv,r=this.lastStatsResults[e].recv,t.totalPacketsReceived===r.totalPacketsReceived||0===t.totalPacketsReceived?Ke.logger.info("StatsAnalyzer:index#compareLastStatsResult --\x3e No ".concat(e," RTP packets received")):t.totalSamplesReceived!==r.totalSamplesReceived&&0!==t.totalSamplesReceived||Ke.logger.info("StatsAnalyzer:index#compareLastStatsResult --\x3e No ".concat(e," samples received")),this.emitStartStopEvents(e,r.totalPacketsReceived,t.totalPacketsReceived,!1)),e=ni.VIDEO_CORRELATE,this.meetingMediaStatus.expected.sendVideo&&(t=this.statsResults[e].send,r=this.lastStatsResults[e].send,t.totalPacketsSent===r.totalPacketsSent||0===t.totalPacketsSent?Ke.logger.info("StatsAnalyzer:index#compareLastStatsResult --\x3e No ".concat(e," RTP packets sent")):(t.framesEncoded!==r.framesEncoded&&0!==t.framesEncoded||Ke.logger.info("StatsAnalyzer:index#compareLastStatsResult --\x3e No ".concat(e," Frames Encoded")),this.statsResults.resolutions[e].send.framesSent!==this.lastStatsResults.resolutions[e].send.framesSent&&0!==this.statsResults.resolutions[e].send.framesSent||Ke.logger.info("StatsAnalyzer:index#compareLastStatsResult --\x3e No ".concat(e," Frames sent"))),this.emitStartStopEvents(e,r.framesSent,t.framesSent,!0)),this.meetingMediaStatus.expected.receiveVideo&&(t=this.statsResults[e].recv,r=this.lastStatsResults[e].recv,t.totalPacketsReceived===r.totalPacketsReceived||0===t.totalPacketsReceived?Ke.logger.info("StatsAnalyzer:index#compareLastStatsResult --\x3e No ".concat(e," RTP packets received")):(this.statsResults.resolutions[e].recv.framesReceived!==this.lastStatsResults.resolutions[e].recv.framesReceived&&0!==this.statsResults.resolutions[e].recv.framesReceived||Ke.logger.info("StatsAnalyzer:index#compareLastStatsResult --\x3e No ".concat(e," frames received")),this.statsResults[e].recv.framesDecoded!==this.lastStatsResults[e].recv.framesDecoded&&0!==this.statsResults.resolutions[e].send.framesDecoded||Ke.logger.info("StatsAnalyzer:index#compareLastStatsResult --\x3e No ".concat(e," frames decoded")),this.statsResults.resolutions[e].recv.framesDropped-this.lastStatsResults.resolutions[e].recv.framesDropped>10&&Ke.logger.info("StatsAnalyzer:index#compareLastStatsResult --\x3e ".concat(e," frames are getting dropped"))),this.emitStartStopEvents(e,r.framesDecoded,t.framesDecoded,!1)),e=ni.SHARE_CORRELATE,this.meetingMediaStatus.expected.sendShare&&(t=this.statsResults[e].send,r=this.lastStatsResults[e].send,t.totalPacketsSent===r.totalPacketsSent||0===t.totalPacketsSent?Ke.logger.info("StatsAnalyzer:index#compareLastStatsResult --\x3e No ".concat(e," RTP packets sent")):(t.framesEncoded!==r.framesEncoded&&0!==t.framesEncoded||Ke.logger.info("StatsAnalyzer:index#compareLastStatsResult --\x3e No ".concat(e," frames getting encoded")),this.statsResults.resolutions[e].send.framesSent!==this.lastStatsResults.resolutions[e].send.framesSent&&0!==this.statsResults.resolutions[e].send.framesSent||Ke.logger.info("StatsAnalyzer:index#compareLastStatsResult --\x3e No ".concat(e," frames sent"))),t=this.statsResults[e].recv,r=this.lastStatsResults[e].recv,t.totalPacketsReceived===r.totalPacketsReceived||0===t.totalPacketsSent?Ke.logger.info("StatsAnalyzer:index#compareLastStatsResult --\x3e No ".concat(e," RTP packets received")):(this.statsResults.resolutions[e].recv.framesReceived!==this.lastStatsResults.resolutions[e].recv.framesReceived&&0!==this.statsResults.resolutions[e].recv.framesReceived||Ke.logger.info("StatsAnalyzer:index#compareLastStatsResult --\x3e No ".concat(e," frames received")),this.statsResults[e].recv.framesDecoded!==this.lastStatsResults[e].recv.framesDecoded&&0!==this.statsResults.resolutions[e].send.framesDecoded||Ke.logger.info("StatsAnalyzer:index#compareLastStatsResult --\x3e No ".concat(e," frames decoded")),this.statsResults.resolutions[e].recv.framesDropped-this.lastStatsResults.resolutions[e].recv.framesDropped>10&&Ke.logger.info("StatsAnalyzer:index#compareLastStatsResult --\x3e ".concat(e," frames are getting dropped"))))}}},{key:"getStatsAndParse",value:function(){var e=this;return this.peerConnection?this.peerConnection&&this.peerConnection.connectionState===Mn.FAILED?(Ke.logger.trace("StatsAnalyzer:index#getStatsAndParse --\x3e PeerConnection is in failed state"),R().resolve()):(Ke.logger.trace("StatsAnalyzer:index#getStatsAndParse --\x3e Collecting Stats"),R().all([this.peerConnection.videoTransceiver.sender.getStats().then((function(t){e.filterAndParseGetStatsResults(t,ni.VIDEO_CORRELATE,!0)})),this.peerConnection.videoTransceiver.receiver.getStats().then((function(t){e.filterAndParseGetStatsResults(t,ni.VIDEO_CORRELATE,!1)})),this.peerConnection.audioTransceiver.sender.getStats().then((function(t){e.filterAndParseGetStatsResults(t,ni.AUDIO_CORRELATE,!0)})),this.peerConnection.audioTransceiver.receiver.getStats().then((function(t){e.filterAndParseGetStatsResults(t,ni.AUDIO_CORRELATE,!1)})),this.peerConnection.shareTransceiver.sender.getStats().then((function(t){e.filterAndParseGetStatsResults(t,ni.SHARE_CORRELATE,!0)})),this.peerConnection.shareTransceiver.receiver.getStats().then((function(t){e.filterAndParseGetStatsResults(t,ni.SHARE_CORRELATE,!1)}))]).then((function(){e.statsResults[ni.AUDIO_CORRELATE].direction=e.peerConnection.audioTransceiver.currentDirection,e.statsResults[ni.VIDEO_CORRELATE].direction=e.peerConnection.videoTransceiver.currentDirection,e.statsResults[ni.SHARE_CORRELATE].direction=e.peerConnection.shareTransceiver.currentDirection,e.compareLastStatsResult(),e.lastStatsResults=JSON.parse(uo()(e.statsResults)),Ke.logger.trace("StatsAnalyzer:index#getStatsAndParse --\x3e Finished Collecting Stats")}))):R().resolve()}},{key:"processOutboundRTPResult",value:function(e,t){var r=t||ni.AUDIO_CORRELATE,n=ni.SEND_DIRECTION;if(e.bytesSent){var i=0;this.statsResults.internal[r][n].prevBytesSent||(this.statsResults.internal[r][n].prevBytesSent=e.bytesSent),this.statsResults.internal[r][n].framesEncoded||(this.statsResults.internal[r][n].framesEncoded=e.framesEncoded),this.statsResults.internal[r][n].keyFramesEncoded||(this.statsResults.internal[r][n].keyFramesEncoded=e.keyFramesEncoded);var o=e.bytesSent-this.statsResults.internal[r][n].prevBytesSent;this.statsResults.internal[r][n].prevBytesSent=e.bytesSent,i=o/1024,this.statsResults[r][n].availableBandwidth=i.toFixed(1),this.statsResults[r].bytesSent=i,this.statsResults[r][n].framesEncoded=e.framesEncoded-this.statsResults.internal[r][n].framesEncoded,this.statsResults[r][n].keyFramesEncoded=e.keyFramesEncoded-this.statsResults.internal[r][n].keyFramesEncoded,this.statsResults.internal[r].outboundRtpId=e.id,this.statsResults.internal[r][n].packetsSent||(this.statsResults.internal[r][n].packetsSent=e.packetsSent),this.statsResults[r][n].packetsSent=e.packetsSent-this.statsResults.internal[r][n].packetsSent,this.statsResults.internal[r][n].packetsSent=e.packetsSent,this.statsResults[r][n].totalKeyFramesEncoded=e.keyFramesEncoded,this.statsResults[r][n].totalNackCount=e.nackCount,this.statsResults[r][n].totalPliCount=e.pliCount,this.statsResults[r][n].totalPacketsSent=e.packetsSent,this.statsResults[r][n].totalFirCount=e.firCount,this.statsResults[r][n].framesSent=e.framesSent,this.statsResults[r][n].framesEncoded=e.framesEncoded,this.statsResults[r][n].encoderImplementation=e.encoderImplementation,this.statsResults[r][n].qualityLimitationReason=e.qualityLimitationReason,this.statsResults[r][n].qualityLimitationResolutionChanges=e.qualityLimitationResolutionChanges,this.statsResults[r][n].retransmittedPacketsSent=e.retransmittedPacketsSent,this.statsResults[r][n].totalBytesSent=e.bytesSent,this.statsResults[r][n].headerBytesSent=e.headerBytesSent,this.statsResults[r][n].retransmittedBytesSent=e.retransmittedBytesSent}}},{key:"processInboundRTPResult",value:function(e,t){var r=t||ni.AUDIO_CORRELATE,n=ni.RECEIVE_DIRECTION;if(e.bytesReceived){var i=0;this.statsResults.internal[r][n].prevBytesReceived||(this.statsResults.internal[r][n].prevBytesReceived=e.bytesReceived),this.statsResults.internal[r][n].pliCount||(this.statsResults.internal[r][n].pliCount=e.pliCount),this.statsResults.internal[r][n].packetsLost||(this.statsResults.internal[r][n].packetsLost=e.packetsLost),this.statsResults.internal[r][n].totalPacketsReceived||(this.statsResults.internal[r][n].totalPacketsReceived=e.packetsReceived),this.statsResults.internal[r][n].lastPacketReceivedTimestamp||(this.statsResults.internal[r][n].lastPacketReceivedTimestamp=e.lastPacketReceivedTimestamp);var o=e.bytesReceived-this.statsResults.internal[r][n].prevBytesReceived;this.statsResults.internal[r][n].prevBytesReceived=e.bytesReceived,i=o/1024,this.statsResults[r][n].availableBandwidth=i.toFixed(1),this.statsResults[r].bytesReceived=i.toFixed(1),this.statsResults[r][n].pliCount=e.pliCount-this.statsResults.internal[r][n].pliCount,this.statsResults[r][n].currentPacketsLost=e.packetsLost-this.statsResults.internal[r][n].packetsLost,this.statsResults[r][n].currentPacketsLost<0&&(this.statsResults[r][n].currentPacketsLost=0),this.statsResults[r][n].packetsReceived=e.packetsReceived-this.statsResults.internal[r][n].totalPacketsReceived,this.statsResults.internal[r][n].totalPacketsReceived=e.packetsReceived,0===this.statsResults[r][n].packetsReceived&&Ke.logger.info("StatsAnalyzer:index#processInboundRTPResult --\x3e No packets received for ".concat(r," "),this.statsResults[r][n].packetsReceived),this.statsResults[r][n].currentPacketLossRatio=this.statsResults[r][n].currentPacketsLost>0?this.statsResults[r][n].currentPacketsLost/(this.statsResults[r][n].packetsReceived+this.statsResults[r][n].currentPacketsLost):0,this.statsResults[r][n].currentPacketLossRatio>3&&Ke.logger.info("StatsAnalyzer:index#processInboundRTPResult --\x3e Packets getting lost from the receiver ",this.statsResults[r][n].currentPacketLossRatio),e.packetsLost?this.statsResults[r][n].totalPacketsLost=e.packetsLost>0?e.packetsLost:-e.packetsLost:this.statsResults[r][n].totalPacketsLost=0,this.statsResults[r][n].lastPacketReceivedTimestamp=e.lastPacketReceivedTimestamp,this.statsResults[r][n].totalNackCount=e.nackCount,this.statsResults[r][n].totalPliCount=e.pliCount,this.statsResults[r][n].framesDecoded=e.framesDecoded,this.statsResults[r][n].keyFramesDecoded=e.keyFramesDecoded,this.statsResults[r][n].decoderImplementation=e.decoderImplementation,this.statsResults[r][n].totalPacketsReceived=e.packetsReceived,this.statsResults[r][n].fecPacketsDiscarded=e.fecPacketsDiscarded,this.statsResults[r][n].fecPacketsReceived=e.fecPacketsReceived,this.statsResults[r][n].totalBytesReceived=e.bytesReceived,this.statsResults[r][n].headerBytesReceived=e.headerBytesReceived,this.statsResults[r][n].meanRtpJitter.push(e.jitter),this.statsResults[r][n].audioLevel=e.audioLevel,this.statsResults[r][n].totalAudioEnergy=e.totalAudioEnergy,this.statsResults[r][n].totalSamplesReceived=e.totalSamplesReceived||0,this.statsResults[r][n].totalSamplesDecoded=e.totalSamplesDecoded||0,this.statsResults[r][n].concealedSamples=e.concealedSamples||0}}},{key:"processTrackResult",value:function(e,t){if(e&&"track"===e.type&&"track"===e.type){var r=!0===e.remoteSource?ni.RECEIVE_DIRECTION:ni.SEND_DIRECTION;if(e.frameWidth&&e.frameHeight&&(this.statsResults.resolutions[t][r].width=e.frameWidth,this.statsResults.resolutions[t][r].height=e.frameHeight,this.statsResults.resolutions[t][r].framesSent=e.framesSent,this.statsResults.resolutions[t][r].hugeFramesSent=e.hugeFramesSent),r===ni.RECEIVE_DIRECTION&&(this.statsResults.resolutions[t][r].framesReceived=e.framesReceived,this.statsResults.resolutions[t][r].framesDecoded=e.framesDecoded,this.statsResults.resolutions[t][r].framesDropped=e.framesDropped),e.trackIdentifier&&t!==ni.AUDIO_CORRELATE){this.statsResults.resolutions[t][r].trackIdentifier=e.trackIdentifier;var n=e&&e.jitterBufferDelay,i=e&&e.jitterBufferEmittedCount;this.statsResults.resolutions[t][r].avgJitterDelay=i&&+n/+i,this.statsResults.resolutions[t][r].jitterBufferDelay=e.jitterBufferDelay,this.statsResults.resolutions[t][r].jitterBufferEmittedCount=e.jitterBufferEmittedCount}}}},{key:"compareSentAndReceived",value:function(e,t){if(t){var r=t;this.statsResults.internal[r].send.totalPacketsLostOnReceiver||(this.statsResults.internal[r].send.totalPacketsLostOnReceiver=e.packetsLost);var n=e.packetsLost-this.statsResults.internal[r].send.totalPacketsLostOnReceiver;this.statsResults.internal[r].send.totalPacketsLostOnReceiver=e.packetsLost,this.statsResults[r].send.packetsLostOnReceiver=n,this.statsResults[r].send.totalPacketsLostOnReceiver=e.packetsLost,this.statsResults[r].send.meanRemoteJitter.push(e.jitter),this.statsResults[r].send.meanRoundTripTime.push(e.roundTripTime),this.statsResults[r].send.timestamp=e.timestamp,this.statsResults[r].send.ssrc=e.ssrc,this.statsResults[r].send.reportsReceived=e.reportsReceived,this.statsResults[r].send.overAllPacketLossRatio=this.statsResults[r].send.totalPacketsLostOnReceiver>0?this.statsResults[r].send.totalPacketsLostOnReceiver/this.statsResults[r].send.totalPacketsSent:0,this.statsResults[r].send.currentPacketLossRatio=this.statsResults[r].send.packetsLostOnReceiver>0?100*this.statsResults[r].send.packetsLostOnReceiver/(this.statsResults[r].send.packetsSent+this.statsResults[r].send.packetsLostOnReceiver):0,this.statsResults[r].send.maxPacketLossRatio<this.statsResults[r].send.currentPacketLossRatio&&(this.statsResults[r].send.maxPacketLossRatio=this.statsResults[r].send.currentPacketLossRatio),"remote-inbound-rtp"===e.type&&this.networkQualityMonitor.determineUplinkNetworkQuality({mediaType:r,remoteRtpResults:e,statsAnalyzerCurrentStats:this.statsResults})}}}]),r}(Od),Wd=r(27392),zd=r.n(Wd);function $d(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var Kd=function(e){(0,m.Z)(r,e);var t=$d(r);function r(e){var n,i;return(0,p.Z)(this,r),i=t.call(this),(0,E.Z)((0,v.Z)(i),"config",void 0),(0,E.Z)((0,v.Z)(i),"frequencyTypes",void 0),(0,E.Z)((0,v.Z)(i),"indicatorTypes",void 0),(0,E.Z)((0,v.Z)(i),"mediaType",void 0),(0,E.Z)((0,v.Z)(i),"networkQualityScore",void 0),(0,E.Z)((0,v.Z)(i),"networkQualityStatus",void 0),i.config=e,i.indicatorTypes=zd()({PACKETLOSS:"packetLoss",LATENCY:"latency",JITTER:"jitter"}),i.frequencyTypes=zd()({UPLINK:"uplink",DOWNLINK:"downlink"}),i.networkQualityScore=1,i.networkQualityStatus=(0,E.Z)({},i.frequencyTypes.UPLINK,(n={},(0,E.Z)(n,ni.VIDEO_CORRELATE,{}),(0,E.Z)(n,ni.AUDIO_CORRELATE,{}),(0,E.Z)(n,ni.SHARE_CORRELATE,{}),n)),i.mediaType=null,i}return(0,h.Z)(r,[{key:"emitNetworkQuality",value:function(){this.emit({file:"networkQualityMonitor",function:"emitNetworkQuality"},bn.NETWORK_QUALITY,{mediaType:this.mediaType,networkQualityScore:this.networkQualityScore})}},{key:"updateNetworkQualityStatus",value:function(){this.emitNetworkQuality(),this.networkQualityScore=1,this.mediaType=null}},{key:"determineUplinkNetworkQuality",value:function(e){var t=this,r=e.mediaType,n=e.remoteRtpResults,i=e.statsAnalyzerCurrentStats,o=1e3*n.roundTripTime,a=1e3*n.jitter,s=i[r].send.currentPacketLossRatio;this.mediaType=r;var c=this.indicatorTypes,u=c.JITTER,l=c.PACKETLOSS,d=c.LATENCY,f=this.frequencyTypes.UPLINK,p=function(e){return void 0===e?null:e};this.networkQualityStatus[f][r][l]={acceptable:!(s>t.config.videoPacketLossRatioThreshold&&(t.networkQualityScore=0,1)),value:p(s)},this.networkQualityStatus[f][r][d]={acceptable:!(o>t.config.rttThreshold&&(t.networkQualityScore=0,1)),value:p(n.roundTripTime)},this.networkQualityStatus[f][r][u]={acceptable:!(a>t.config.jitterThreshold&&(t.networkQualityScore=0,1)),value:p(n.jitter)},this.updateNetworkQualityStatus()}},{key:"networkQualityStats",get:function(){var e=this.frequencyTypes.UPLINK;return this.networkQualityStatus[e]}}]),r}(Od),Yd=r(7520),Jd=r.n(Yd),Qd=r(62207),Xd=r.n(Qd),ef={},tf=Yt.toLowerCase();ef.shouldHandleMedia=function(e){return!(e.mediaProperties.peerConnection&&e.mediaProperties.peerConnection.signalingState===ei.HAVE_LOCAL_OFFER)},ef.handleError=function(e){return es.rollBackLocalDescription({peerConnection:e}).then((function(){return R().resolve(!0)})).catch((function(e){return Ke.logger.error("Roap:util#handleError --\x3e ".concat(e)),R().reject(e)}))},ef.findError=function(e,t,r){return(r===Qn.RECEIVE_ROAP_MSG||r===Qn.SEND_ROAP_MSG)&&e===rr&&t===er},ef.ensureMeeting=function(e,t){return!!(t!==Qn.RECEIVE_ROAP_MSG&&t!==Qn.SEND_ROAP_MSG&&t!==Qn.SEND_ROAP_MSG_SUCCESS||e)},ef.updatePeerConnection=function(e,t){return es.updatePeerConnection({offerSdp:t.OFFER.sdps,peerConnection:e.mediaProperties.peerConnection},{meetingId:e.id,remoteQualityLevel:e.mediaProperties.remoteQualityLevel}).then((function(r){return e.roap.lastRoapOffer=t.OFFER.sdps,r}))},ef.setRemoteDescription=function(e,t){return Ke.logger.info("Roap:util#setRemoteDescription --\x3e Transmit WAIT_TX_OK, correlationId: ".concat(e.correlationId)),e&&e.mediaProperties.peerConnection?es.setRemoteSessionDetails(e.mediaProperties.peerConnection,tf,t.ANSWER.sdps[0],e.id).then((function(){return Ke.logger.info("Roap:util#setRemoteDescription --\x3e Success for correlationId: ".concat(e.correlationId)),{seq:t.ANSWER.seq,mediaId:e.mediaId,correlationId:e.correlationId}})).catch((function(e){throw Ke.logger.error("Roap:util#setRemoteDescription --\x3e ".concat(e)),e})):(Ke.logger.error("Roap:util#setRemoteDescription --\x3e DANGER no media or screen peer connection, correlationId: ".concat(e.correlationId)),R().reject(new no("Must provide a media or screen peer connection")))};const rf=ef;var nf=r(84907),of=r.n(nf);const af={createState:function(){return new(of().factory({init:Qn.ROAP_STATE.INIT,transitions:[{name:Qn.ROAP_TRANSITIONS.STEP,from:"*",to:function(e,t,r){var n=this.state;return function(e,t){var r=e.msg.messageType;if(t){if(r===_r&&e.remote&&t.shareStatus===wr)return!1;if(!t.mediaProperties.peerConnection&&r===Yt)return!1}return Ke.logger.log("Roap:state#shouldStep --\x3e RoapStateMachine: PeerConnectionState, ",t.mediaProperties.peerConnection.signalingState),Ke.logger.log("Roap:state#shouldStep --\x3e RoapStateMachine: success save proceeding with transition, ",e.msg),!0}(r,t)?function(e,t,r){switch(Ke.logger.log("Roap:state#handleTransition --\x3e current ".concat(e," to ").concat(t)),e){case Qn.ROAP_STATE.INIT:return t===Qn.ROAP_SIGNAL.RX_OFFER?Qn.ROAP_STATE.WAIT_TX_ANSWER:t===Qn.ROAP_SIGNAL.TX_OFFER?Qn.ROAP_STATE.WAIT_RX_ANSWER:e;case Qn.ROAP_STATE.WAIT_RX_OFFER:return e;case Qn.ROAP_STATE.WAIT_RX_ANSWER:return t===Qn.ROAP_SIGNAL.RX_ANSWER?r.mediaId?Qn.ROAP_STATE.WAIT_TX_OK:(Ke.logger.error("Roap:state#handleTransition --\x3e Race Condition no mediaId, continuing."),e):t===Qn.ROAP_SIGNAL.RX_OFFER?Qn.ROAP_STATE.GLARE:e;case Qn.ROAP_STATE.WAIT_TX_OFFER:return e;case Qn.ROAP_STATE.WAIT_TX_ANSWER:return t===Qn.ROAP_SIGNAL.TX_ANSWER?Qn.ROAP_STATE.WAIT_RX_OK:e;case Qn.ROAP_STATE.WAIT_TX_OK:return t===Qn.ROAP_SIGNAL.TX_OK?Qn.ROAP_STATE.INIT:e;case Qn.ROAP_STATE.WAIT_RX_OK:return t===Qn.ROAP_SIGNAL.RX_OK?Qn.ROAP_STATE.INIT:e;case Qn.ROAP_STATE.ERROR:return Qn.ROAP_STATE.INIT;case Qn.ROAP_STATE.GLARE:return Qn.ROAP_STATE.WAIT_RX_ANSWER;default:return e}}(n,e,t):n}}],methods:{onAfterStep:function(e){Ke.logger.log("Roap:state#onAfterStep --\x3e RoapStateMachine->onAfterStep#fired! State changed from '".concat(e.from,"' to '").concat(e.to,"' with transition '").concat(e.transition,"''."))}}}))}};const sf={sessions:{},getSession:function(e){return this.sessions[e]||(this.sessions[e]={activeSequences:0}),this.sessions[e]},deleteSession:function(e){this.getSession(e)&&delete this.sessions[e]},getSessionSequence:function(e,t){var r=this.getSession(e);return r[t]||(r[t]={state:af.createState(),finished:!1},r.activeSequences+=1),r[t]},deleteSessionSequence:function(e,t){var r=this.getSessionSequence(e,t);r&&(r.finished||(session.activeSequences-=1),delete this.sessions[e][t])},isBusy:function(e){var t=this.getSession(e);return!!t&&t.activeSequences>0},onSessionSequenceFinish:function(e,t){var r=this.getSession(e),n=r[t];n&&!n.finished&&(n.finished=!0,r.activeSequences-=1)}};function cf(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var uf=function(e){(0,m.Z)(r,e);var t=cf(r);function r(e,n,i,o,a){var s;return(0,p.Z)(this,r),s=t.call(this,{},n),(0,E.Z)((0,v.Z)(s),"attrs",void 0),(0,E.Z)((0,v.Z)(s),"lastRoapMessage",void 0),(0,E.Z)((0,v.Z)(s),"options",void 0),(0,E.Z)((0,v.Z)(s),"roapAnswer",void 0),(0,E.Z)((0,v.Z)(s),"roapFinished",void 0),(0,E.Z)((0,v.Z)(s),"roapOk",void 0),s.attrs=e,s.options=n,s.roapOk=i,s.roapFinished=a,s.roapAnswer=o,s.lastRoapMessage=null,s}return(0,h.Z)(r,[{key:"perform",value:function(e,t,r){var n=this;switch(e.state.state){case Qn.ROAP_STATE.INIT:this.roapFinished(t.correlationId,r.msg.seq);break;case Qn.ROAP_STATE.WAIT_TX_ANSWER:rf.shouldHandleMedia(t)&&rf.updatePeerConnection(t,e).then((function(r){n.roapAnswer({mediaId:t.mediaId,sdps:r,seq:e.OFFER.seq,correlationId:t.correlationId,audioMuted:t.isAudioMuted(),videoMuted:t.isVideoMuted()})})).catch((function(e){var r=Lo.ROAP_ANSWER_FAILURE,n={correlation_id:t.correlationId,locus_id:t.locusUrl.split("/").pop(),reason:e.message,stack:e.stack},i={type:e.name};Ki.sendBehavioralMetric(r,n,i),Ke.logger.error("Roap:handler#perform --\x3e Error occured during wait receive answer, continuing, ".concat(e))}));break;case Qn.ROAP_STATE.WAIT_TX_OK:rf.shouldHandleMedia(t)||rf.setRemoteDescription(t,e).then((function(e){n.roapOk(e)}));break;case Qn.ROAP_STATE.ERROR:Ke.logger.error("Roap:handler#perform --\x3e Roap State ERROR for session: ".concat(e));break;case Qn.ROAP_STATE.GLARE:e.GLARE_OFFER.tieBreaker=e.GLARE_OFFER.tieBreaker||0,e.OFFER.tieBreaker=e.OFFER.tieBreaker||0,Ke.logger.warn("Roap:handler#perform --\x3e Roap State resolved the GLARE condition."),e.GLARE_OFFER.tieBreaker<e.OFFER.tieBreaker?Ke.logger.log("Roap:handler#perform --\x3e Roap State local offer won after GLARE."):Ke.logger.log("Roap:handler#perform --\x3e Roap State remote offer won after GLARE."),e.state.step(Qn.ROAP_SIGNAL.GLARE_RESOLVED,t,r),this.perform(e,t)}}},{key:"execute",value:function(e,t,r,n,i){t&&t.state&&(!function(e){var t=e.roap,r=e.session,n=e.locusUrl,i=e.correlationId,o=t.msg,a=o.seq,s=o.messageType;if(r.OFFER&&s===_r){r.GLARE_OFFER=t.msg,r.GLARE_OFFER.remote=!!t.remote;var c=Lo.ROAP_GLARE_CONDITION,u={correlation_id:i,locus_id:n.split("/").pop(),sequence:a};Ki.sendBehavioralMetric(c,u),Ke.logger.warn("Roap:handler#handleSessionStep --\x3e Glare condition occurred with new mercury event, sequenceId: ".concat(a))}else Ke.logger.info("Roap:handler#handleSessionStep --\x3e Save OFFER/ANSWER seq:".concat(a," new mercury event ").concat(s,"local state: ").concat(uo()(r.state.state,null,2))),r[s]=t.msg,r[s].remote=!!t.remote}({roap:r,locusUrl:n.locusUrl,correlationId:n.correlationId,session:t}),e=Qn.ROAP_SIGNAL["".concat(i).concat(r.msg.messageType)],t.state.step(e,n,r),this.perform(t,n,r))}},{key:"handleAction",value:function(e,t,r,n){var i,o,a,s,c;switch(t.type){case Qn.RECEIVE_ROAP_MSG:Ke.logger.log("Roap:handler#handleAction --\x3e RECEIVE_ROAP_MSG event captured, reciving a roap message : ".concat(uo()(t))),o=this.lastRoapMessage,a=t,(null==o||null===(s=o.msg)||void 0===s?void 0:s.seq)===a.msg.seq&&(null==o||null===(c=o.msg)||void 0===c?void 0:c.messageType)===a.msg.messageType?Ke.logger.warn("Roap:handler#handleAction --\x3e duplicate roap offer from server: ".concat(t.msg.seq)):(this.lastRoapMessage=t,t.remote=!0,this.execute(i,e,t,r,Qn.RX_));break;case Qn.SEND_ROAP_MSG:Ke.logger.log("Roap:handler#handleAction --\x3e SEND_ROAP_MSG event captured, sending roap message ".concat(uo()(t))),t.local=!0,this.execute(i,e,t,r,Qn.TX_);break;case Qn.SEND_ROAP_MSG_SUCCESS:break;case Qn.RECEIVE_CALL_LEAVE:sf.deleteSession(n),Ke.logger.log("Roap:handler#handleAction --\x3e RECEIVE_CALL_LEAVE event captured, cleaning up the RoapHandler for correlationId: ".concat(n));break;case Qn.RESET_ROAP_STATE:sf.deleteSessionSequence(n,t.msg.seq),Ke.logger.log("Roap:handler#handleAction --\x3e RESET_ROAP_STATE event captured, resetting the RoapHandler state based on sequenceId: ".concat(t.msg.seq));break;default:return!0}return!0}},{key:"submit",value:function(e){var t=e.correlationId,r=e.seq;!r&&e.msg&&(r=e.msg.seq);var n=sf.getSessionSequence(t,r),i=this.webex.meetings.meetingCollection.getByKey("correlationId",t);return!!function(e,t,r){if(e&&e.type){if(e.msg&&e.msg.messageType&&e.msg.errorType&&rf.findError(e.msg.messageType,e.msg.errorType,e.type))return rf.handleError(t.mediaProperties.peerConnection).then((function(t){t&&sf.deleteSessionSequence(r,e.msg.seq)})).catch((function(e){Ke.logger.warn("Roap:handler#checkForAndHandleErrors --\x3e Cannot reset the peer connection with error: ".concat(e))})),!0;if(!rf.ensureMeeting(t,e.type))return!0}return!1}(e,i,t)||this.handleAction(n,e,i,t)}}]),r}(u.XR);function lf(e,t){var r=x()(e);if(fo()){var n=fo()(e);t&&(n=n.filter((function(t){return ho()(e,t).enumerable}))),r.push.apply(r,n)}return r}function df(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var ff=function(e){(0,m.Z)(r,e);var t=df(r);function r(){return(0,p.Z)(this,r),t.apply(this,arguments)}return(0,h.Z)(r,[{key:"attachRechabilityData",value:function(e){var t=window.localStorage.getItem(Jn.localStorage);if(t)try{var r=JSON.parse(t);r&&x()(r).length&&(e.reachability=r)}catch(e){Ke.logger.error("Roap:request#attachReachabilityData --\x3e Error in parsing reachability data: ".concat(e))}return e}},{key:"joinMeetingWithRoap",value:function(e){var t=this;return Ke.logger.info("Roap:request#joinMeetingWithRoap --\x3e Join locus with roap"),Ke.logger.info("Roap:request#joinMeetingWithRoap --\x3e Local SDP: ".concat(e.roapMessage)),R().resolve().then((0,f.Z)(_().mark((function r(){var n,i,o,a;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=t.webex.internal.device.url,o="",a={deviceUrl:i,usingResource:e.resourceId||null,correlationId:e.correlationId,localMedias:[{localSdp:uo()(t.attachRechabilityData({roapMessage:e.roapMessage,audioMuted:!1,videoMuted:!1}))}],clientMediaPreferences:{preferTranscoding:null===(n=e.preferTranscoding)||void 0===n||n}},!e.locusUrl){r.next=7;break}o="".concat(e.locusUrl,"/").concat(Ut),r.next=22;break;case 7:if(!e.sipUrl){r.next=21;break}return r.prev=8,r.next=11,t.webex.internal.services.waitForCatalog("postauth");case 11:o="".concat(t.webex.internal.services.get("locus"),"/").concat(xt,"/").concat(it),a.invitee={address:e.sipTarget},r.next=19;break;case 15:throw r.prev=15,r.t0=r.catch(8),Ke.logger.error("Roap:request#joinMeetingWithRoap --\x3e ".concat(r.t0)),r.t0;case 19:r.next=22;break;case 21:throw new no("Must provide a locusUrl or sipTarget");case 22:return r.abrupt("return",t.webex.request({method:Nn.POST,uri:o,body:a}).then((function(t){var r=t.body.locus;return r.roapSeq=e.roapMessage.seq,r.id=r.url.split("/").pop(),Ke.logger.info("Roap:request#joinMeetingWithRoap --\x3e Joined locus [".concat(r.id,"][").concat(r.fullState.lastActive,"]")),r})).catch((function(e){throw Ke.logger.error("Roap:request#joinMeetingWithRoap --\x3e failed with error: ".concat(e)),e})));case 23:case"end":return r.stop()}}),r,null,[[8,15]])}))))}},{key:"sendRoap",value:function(e){var t,r=e.roapMessage,n=e.locusSelfUrl,i=e.mediaId,o=e.correlationId,a=e.meetingId;i||Ke.logger.info("Roap:request#sendRoap --\x3e Race Condition /call mediaID not present");var s="".concat(n,"/").concat(Pt),c=this.webex.internal.device.url;return Ke.logger.info("Roap:request#sendRoap --\x3e ".concat(s," \n ").concat(r.messageType," \n seq:").concat(r.seq)),Ki.postEvent({event:Ci.MEDIA_REQUEST,meetingId:a}),this.webex.request({uri:s,method:Nn.PUT,body:{device:{url:c,deviceType:this.config.meetings.deviceType},correlationId:o,localMedias:[{localSdp:uo()(this.attachRechabilityData({roapMessage:r,audioMuted:!!e.audioMuted,videoMuted:!!e.videoMuted})),mediaId:e.mediaId}],clientMediaPreferences:{preferTranscoding:null===(t=e.preferTranscoding)||void 0===t||t}}}).then((function(t){Ki.postEvent({event:Ci.MEDIA_RESPONSE,meetingId:a});var r=t.body.mediaConnections&&t.body.mediaConnections.length>0&&t.body.mediaConnections[0];Ke.logger.info("Roap:request#sendRoap --\x3e response:".concat(uo()(r,null,2),"'\n StatusCode:'").concat(t.statusCode));var n=t.body.locus;return n.roapSeq=e.roapMessage.seq,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lf(Object(r),!0).forEach((function(t){(0,E.Z)(e,t,r[t])})):mo()?yo()(e,mo()(r)):lf(Object(r)).forEach((function(t){So()(e,t,ho()(r,t))}))}return e}({locus:n},r&&{mediaConnections:t.body.mediaConnections})})).catch((function(t){throw Ki.postEvent({event:Ci.MEDIA_RESPONSE,meetingId:a,data:{error:Ki.parseLocusError(t,!0)}}),Ke.logger.error("Roap:request#sendRoap --\x3e Error:".concat(uo()(t,null,2))),Ke.logger.error("Roap:request#sendRoapRequest --\x3e errorBody:".concat(uo()(r,null,2)," + '\\n mediaId:'").concat(e.mediaId)),t}))}}]),r}(u.XR),pf=function(){function e(t){(0,p.Z)(this,e),(0,E.Z)(this,"roapRequest",void 0),(0,E.Z)(this,"defer",void 0),(0,E.Z)(this,"turnInfo",void 0),(0,E.Z)(this,"responseTimer",void 0),this.roapRequest=t,this.turnInfo={url:"",username:"",password:""}}return(0,h.Z)(e,[{key:"waitForTurnDiscoveryResponse",value:function(){if(!this.defer)return Ke.logger.warn("Roap:turnDiscovery#waitForTurnDiscoveryResponse --\x3e TURN discovery is not in progress"),R().reject(new Error("waitForTurnDiscoveryResponse() called before sendRoapTurnDiscoveryRequest()"));var e=this.defer;return this.responseTimer=setTimeout((function(){Ke.logger.warn("Roap:turnDiscovery#waitForTurnDiscoveryResponse --\x3e timeout! no response arrived within ".concat(10," seconds")),e.reject(new Error("Timed out waiting for TURN_DISCOVERY_RESPONSE"))}),1e4),Ke.logger.info("Roap:turnDiscovery#waitForTurnDiscoveryResponse --\x3e waiting for TURN_DISCOVERY_RESPONSE..."),e.promise}},{key:"handleTurnDiscoveryResponse",value:function(e){var t=this,r=e.headers;if(this.defer){var n=[{headerName:"x-cisco-turn-url",field:"url"},{headerName:"x-cisco-turn-username",field:"username"},{headerName:"x-cisco-turn-password",field:"password"}],i=0;null==r||r.forEach((function(e){n.forEach((function(r){e.startsWith("".concat(r.headerName,"="))&&(t.turnInfo[r.field]=e.substring(r.headerName.length+1),i+=1)}))})),clearTimeout(this.responseTimer),this.responseTimer=void 0,i!==n.length?(Ke.logger.warn("Roap:turnDiscovery#handleTurnDiscoveryResponse --\x3e missing some headers, received: ".concat(uo()(r))),this.defer.reject(new Error("TURN_DISCOVERY_RESPONSE missing some headers: ".concat(uo()(r))))):(Ke.logger.info("Roap:turnDiscovery#handleTurnDiscoveryResponse --\x3e received a valid response, url=".concat(this.turnInfo.url)),this.defer.resolve())}else Ke.logger.warn("Roap:turnDiscovery#handleTurnDiscoveryResponse --\x3e unexpected TURN discovery response")}},{key:"sendRoapTurnDiscoveryRequest",value:function(e,t){var r,n,i=e.roapSeq+1;if(this.defer)return Ke.logger.warn("Roap:turnDiscovery#sendRoapTurnDiscoveryRequest --\x3e already in progress"),R().resolve();this.defer=new Qe.Defer;var o={messageType:Qn.ROAP_TYPES.TURN_DISCOVERY_REQUEST,version:Qn.ROAP_VERSION,seq:i};return Ke.logger.info("Roap:turnDiscovery#sendRoapTurnDiscoveryRequest --\x3e sending TURN_DISCOVERY_REQUEST"),this.roapRequest.sendRoap({roapMessage:o,correlationId:e.correlationId,locusSelfUrl:e.selfUrl,mediaId:t?"":e.mediaId,audioMuted:null===(r=e.audio)||void 0===r?void 0:r.isLocallyMuted(),videoMuted:null===(n=e.video)||void 0===n?void 0:n.isLocallyMuted(),meetingId:e.id}).then((function(t){var r=t.mediaConnections;e.setRoapSeq(i),r&&e.updateMediaConnections(r)}))}},{key:"sendRoapOK",value:function(e){var t,r;return Ke.logger.info("Roap:turnDiscovery#sendRoapOK --\x3e sending OK"),this.roapRequest.sendRoap({roapMessage:{messageType:Qn.ROAP_TYPES.OK,version:Qn.ROAP_VERSION,seq:e.roapSeq},locusSelfUrl:e.selfUrl,mediaId:e.mediaId,correlationId:e.correlationId,audioMuted:null===(t=e.audio)||void 0===t?void 0:t.isLocallyMuted(),videoMuted:null===(r=e.video)||void 0===r?void 0:r.isLocallyMuted(),meetingId:e.id})}},{key:"doTurnDiscovery",value:function(e,t){var r=this;return e.webex.meetings.reachability.isAnyClusterReachable()?(Ke.logger.info("Roap:turnDiscovery#doTurnDiscovery --\x3e reachability has not failed, skipping TURN discovery"),R().resolve({turnServerInfo:void 0,turnDiscoverySkippedReason:"reachability"})):e.config.experimental.enableTurnDiscovery?this.sendRoapTurnDiscoveryRequest(e,t).then((function(){return r.waitForTurnDiscoveryResponse()})).then((function(){return r.sendRoapOK(e)})).then((function(){return r.defer=void 0,Ke.logger.info("Roap:turnDiscovery#doTurnDiscovery --\x3e TURN discovery completed"),{turnServerInfo:r.turnInfo,turnDiscoverySkippedReason:void 0}})).catch((function(t){return Ke.logger.info("Roap:turnDiscovery#doTurnDiscovery --\x3e TURN discovery failed, continuing without TURN: ".concat(t)),Ki.sendBehavioralMetric(Lo.TURN_DISCOVERY_FAILURE,{correlation_id:e.correlationId,locus_id:e.locusUrl.split("/").pop(),reason:t.message,stack:t.stack}),R().resolve({turnServerInfo:void 0,turnDiscoverySkippedReason:void 0})})):(Ke.logger.info("Roap:turnDiscovery#doTurnDiscovery --\x3e TURN discovery disabled in config, skipping it"),R().resolve({turnServerInfo:void 0,turnDiscoverySkippedReason:"config"}))}}]),e}();function hf(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var vf=function(e){(0,m.Z)(r,e);var t=hf(r);function r(e,n){var i;return(0,p.Z)(this,r),i=t.call(this,{},n),(0,E.Z)((0,v.Z)(i),"attrs",void 0),(0,E.Z)((0,v.Z)(i),"lastRoapOffer",void 0),(0,E.Z)((0,v.Z)(i),"options",void 0),(0,E.Z)((0,v.Z)(i),"roapHandler",void 0),(0,E.Z)((0,v.Z)(i),"roapRequest",void 0),(0,E.Z)((0,v.Z)(i),"turnDiscovery",void 0),(0,E.Z)((0,v.Z)(i),"sendRoapCallRequest",(function(e){var t,r,n=e.meeting,o={messageType:Qn.ROAP_TYPES.OFFER,sdps:[e.sdp],version:Qn.ROAP_VERSION,seq:"number"!=typeof e.roapSeq&&Jd()(Xd()(e.roapSeq))?0:e.roapSeq+1,tieBreaker:4294967294};i.roapHandler.submit({type:Qn.SEND_ROAP_MSG,msg:o,correlationId:n.correlationId});var a={localMedias:[{localSdp:uo()(i.roapRequest.attachRechabilityData({roapMessage:o,audioMuted:null===(t=n.audio)||void 0===t?void 0:t.isLocallyMuted(),videoMuted:null===(r=n.video)||void 0===r?void 0:r.isLocallyMuted()}))}]};return Ts.joinMeetingOptions(n,{roapMessage:a}).then((function(e){return i.roapHandler.submit({type:Qn.SEND_ROAP_MSG_SUCCESS,seq:o.seq,correlationId:n.correlationId}),n.setRoapSeq(o.seq),e}))})),i.attrs=e,i.options=n,i.roapHandler=new uf(i.attrs,i.options,i.sendRoapOK.bind((0,v.Z)(i)),i.sendRoapAnswer.bind((0,v.Z)(i)),i.roapFinished.bind((0,v.Z)(i))),i.roapRequest=new ff({},n),i.lastRoapOffer={},i.turnDiscovery=new pf(i.roapRequest),i}return(0,h.Z)(r,[{key:"roapEvent",value:function(e){var t=e.message,r=e.correlationId;Ke.logger.log("Roap:index#roapEvent --\x3e Received Roap Message [".concat(uo()(t,null,2),"]")),t.messageType===Qn.ROAP_TYPES.TURN_DISCOVERY_RESPONSE?this.turnDiscovery.handleTurnDiscoveryResponse(t):this.roapHandler.submit({type:Qn.RECEIVE_ROAP_MSG,msg:t,correlationId:r})}},{key:"stop",value:function(e,t){return this.roapHandler.submit({type:Qn.RECEIVE_CALL_LEAVE,seq:t,correlationId:e}),R().resolve()}},{key:"sendRoapOK",value:function(e){var t=this;return R().resolve().then((function(){var r,n,i=t.webex.meetings.meetingCollection.getByKey("correlationId",e.correlationId),o={messageType:Qn.ROAP_TYPES.OK,version:Qn.ROAP_VERSION,seq:e.seq};return Ke.logger.log("Roap:index#sendRoapOK --\x3e ROAP OK sending with seq ".concat(e.seq)),t.roapRequest.sendRoap({roapMessage:o,locusSelfUrl:i.selfUrl,mediaId:e.mediaId,correlationId:e.correlationId,audioMuted:null===(r=i.audio)||void 0===r?void 0:r.isLocallyMuted(),videoMuted:null===(n=i.video)||void 0===n?void 0:n.isLocallyMuted(),meetingId:i.id}).then((function(){t.roapHandler.submit({type:Qn.SEND_ROAP_MSG,msg:o,correlationId:e.correlationId}),Ke.logger.log("Roap:index#sendRoapOK --\x3e ROAP OK sent with seq ".concat(e.seq)),i.setRoapSeq(e.seq)}))}))}},{key:"sendRoapAnswer",value:function(e){var t,r,n=this,i=this.webex.meetings.meetingCollection.getByKey("correlationId",e.correlationId),o={messageType:Qn.ROAP_TYPES.ANSWER,sdps:e.sdps,version:Qn.ROAP_VERSION,seq:e.seq};return this.roapHandler.submit({type:Qn.SEND_ROAP_MSG,msg:o,correlationId:e.correlationId}),this.roapRequest.sendRoap({roapMessage:o,locusSelfUrl:i.selfUrl,mediaId:e.mediaId,correlationId:e.correlationId,audioMuted:null===(t=i.audio)||void 0===t?void 0:t.isLocallyMuted(),videoMuted:null===(r=i.video)||void 0===r?void 0:r.isLocallyMuted(),meetingId:i.id}).then((function(){i.setRoapSeq(e.seq),n.roapHandler.submit({type:Qn.SEND_ROAP_MSG_SUCCESS,seq:o.seq,correlationId:i.correlationId})}))}},{key:"sendRoapError",value:function(e,t,r){var n={messageType:Qn.ROAP_TYPES.ERROR,version:Qn.ROAP_VERSION,errorType:r,seq:e.OFFER.seq};return this.roapRequest.sendRoap(n,t)}},{key:"sendRoapMediaRequest",value:function(e){var t,r,n=this,i=e.meeting,o=e.reconnect,a={messageType:Qn.ROAP_TYPES.OFFER,sdps:[e.sdp],version:Qn.ROAP_VERSION,seq:"number"!=typeof e.roapSeq&&Jd()(Xd()(e.roapSeq))?0:e.roapSeq+1,tieBreaker:4294967294};this.roapHandler.submit({type:Qn.SEND_ROAP_MSG,msg:a,correlationId:i.correlationId});var s=o&&!i.config.experimental.enableTurnDiscovery;return this.roapRequest.sendRoap({roapMessage:a,correlationId:i.correlationId,locusSelfUrl:i.selfUrl,mediaId:s?"":i.mediaId,audioMuted:null===(t=i.audio)||void 0===t?void 0:t.isLocallyMuted(),videoMuted:null===(r=i.video)||void 0===r?void 0:r.isLocallyMuted(),meetingId:i.id}).then((function(e){var t=e.locus,r=e.mediaConnections;return n.roapHandler.submit({type:Qn.SEND_ROAP_MSG_SUCCESS,seq:a.seq,correlationId:i.correlationId}),i.setRoapSeq(a.seq),r&&i.updateMediaConnections(r),t}))}},{key:"roapFinished",value:function(e,t){sf.onSessionSequenceFinish(e,t);var r=this.webex.meetings.meetingCollection.getByKey("correlationId",e);r.mediaNegotiatedEvent(),sf.isBusy(e)||r.processNextQueuedMediaUpdate()}},{key:"doTurnDiscovery",value:function(e,t){return this.turnDiscovery.doTurnDiscovery(e,t)}}]),r}(u.XR),mf=bi().isBrowser,gf={createPeerConnection:function(e){var t={iceServers:[]};return e&&t.iceServers.push({urls:e.url,username:e.username||"",credential:e.password||""}),mf("firefox")&&(t.bundlePolicy="max-compat"),new(Ve().RTCPeerConnection)(t)},createMediaStream:function(e){e||Ke.logger.error("Media:util#createMediaStream --\x3e Tracks don't exist");var t=e.filter((function(e){return!!e}));return new MediaStream(t)}};const yf=gf;var Ef=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,p.Z)(this,e),(0,E.Z)(this,"audioTrack",void 0),(0,E.Z)(this,"localQualityLevel",void 0),(0,E.Z)(this,"mediaDirection",void 0),(0,E.Z)(this,"mediaSettings",void 0),(0,E.Z)(this,"peerConnection",void 0),(0,E.Z)(this,"remoteAudioTrack",void 0),(0,E.Z)(this,"remoteQualityLevel",void 0),(0,E.Z)(this,"remoteShare",void 0),(0,E.Z)(this,"remoteVideoTrack",void 0),(0,E.Z)(this,"shareTrack",void 0),(0,E.Z)(this,"videoDeviceId",void 0),(0,E.Z)(this,"videoTrack",void 0),(0,E.Z)(this,"namespace",Hr),this.peerConnection=yf.createPeerConnection(),this.mediaDirection=t.mediaDirection,this.videoTrack=t.videoTrack,this.audioTrack=t.audioTrack,this.shareTrack=t.shareTrack,this.remoteShare=t.remoteShare,this.remoteAudioTrack=t.remoteAudioTrack,this.remoteVideoTrack=t.remoteVideoTrack,this.localQualityLevel=t.localQualityLevel||oi["720p"],this.remoteQualityLevel=t.remoteQualityLevel||oi.HIGH,this.mediaSettings={},this.videoDeviceId=null}var t;return(0,h.Z)(e,[{key:"getVideoDeviceId",value:function(){return this.videoDeviceId||null}},{key:"setMediaDirection",value:function(e){this.mediaDirection=e}},{key:"setMediaSettings",value:function(e,t){this.mediaSettings[e]=t}},{key:"setMediaPeerConnection",value:function(e){this.peerConnection=e}},{key:"setLocalVideoTrack",value:function(e){this.videoTrack=e}},{key:"setLocalAudioTrack",value:function(e){this.audioTrack=e}},{key:"setLocalQualityLevel",value:function(e){this.localQualityLevel=e}},{key:"setLocalShareTrack",value:function(e){this.shareTrack=e}},{key:"setRemoteQualityLevel",value:function(e){this.remoteQualityLevel=e}},{key:"setRemoteShare",value:function(e){this.remoteShare=e}},{key:"setRemoteAudioTrack",value:function(e){this.remoteAudioTrack=e}},{key:"setRemoteVideoTrack",value:function(e){this.remoteVideoTrack=e}},{key:"setVideoDeviceId",value:function(e){this.videoDeviceId=e}},{key:"unsetPeerConnection",value:function(){this.peerConnection=null}},{key:"reInitiatePeerconnection",value:function(e){this.peerConnection=yf.createPeerConnection(e)}},{key:"unsetLocalVideoTrack",value:function(){this.videoTrack=null}},{key:"unsetLocalShareTrack",value:function(){this.shareTrack=null}},{key:"unsetLocalAudioTrack",value:function(){this.audioTrack=null}},{key:"unsetRemoteStream",value:function(){Ke.logger.warn("Media:properties#unsetRemoteStream --\x3e [DEPRECATION WARNING]: unsetRemoteStream has been deprecated after v1.89.3 (use unsetRemoteTracks instead)"),this.unsetRemoteMedia()}},{key:"unsetRemoteMedia",value:function(){this.remoteAudioTrack=null,this.remoteVideoTrack=null}},{key:"unsetRemoteShare",value:function(){this.remoteShare=null}},{key:"unsetLocalVideoTracks",value:function(){this.unsetLocalVideoTrack(),this.unsetLocalShareTrack()}},{key:"unsetRemoteStreams",value:function(){Ke.logger.warn("Media:properties#unsetRemoteStreams --\x3e [DEPRECATION WARNING]: unsetRemoteStreams has been deprecated after v1.89.3 (use unsetRemoteTracks instead)"),this.unsetRemoteStream(),this.unsetRemoteShare()}},{key:"unsetRemoteTracks",value:function(){this.unsetRemoteMedia(),this.unsetRemoteShare()}},{key:"unsetShareStreams",value:function(){this.unsetLocalShareTrack(),this.unsetRemoteShare()}},{key:"unsetMediaStreams",value:function(){Ke.logger.warn("Media:properties#unsetMediaStreams --\x3e [DEPRECATION WARNING]: unsetMediaStreams has been deprecated after v1.89.3 (use unsetMediaTracks instead)"),this.unsetLocalVideoTrack(),this.unsetRemoteStream()}},{key:"unsetMediaTracks",value:function(){this.unsetLocalVideoTrack(),this.unsetRemoteMedia()}},{key:"waitForIceConnectedState",value:function(){var e=this,t=function(){return e.peerConnection.iceConnectionState===Pn.CONNECTED||e.peerConnection.iceConnectionState===Pn.COMPLETED};return t()?R().resolve():new(R())((function(r,n){var i,o=function n(){Ke.logger.log("Media:properties#waitForIceConnectedState --\x3e ice state: ".concat(e.peerConnection.iceConnectionState,", conn state: ").concat(e.peerConnection.connectionState)),t()&&(clearTimeout(i),e.peerConnection.removeEventListener("iceconnectionstatechange",n),r())};i=setTimeout((function(){e.peerConnection.removeEventListener("iceconnectionstatechange",o),n()}),un),e.peerConnection.addEventListener("iceconnectionstatechange",o)}))}},{key:"getCurrentConnectionType",value:(t=(0,f.Z)(_().mark((function e(){var t,r,n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.waitForIceConnectedState();case 2:return t=[],e.prev=3,e.next=6,this.peerConnection.getStats();case 6:e.sent.forEach((function(e){return t.push(e)})),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),Ke.logger.warn("Media:properties#getCurrentConnectionType --\x3e getStats() failed: ".concat(e.t0));case 13:return r=t.filter((function(e){var t;return"candidate-pair"===e.type&&"succeeded"===(null===(t=e.state)||void 0===t?void 0:t.toLowerCase())})),n="unknown",r.some((function(e){var r,i,o=t.find((function(t){return"local-candidate"===t.type&&t.id===e.localCandidateId}));return void 0===o?(Ke.logger.warn('Media:properties#getCurrentConnectionType --\x3e failed to find local candidate "'.concat(e.localCandidateId,'" in getStats() results')),!1):!!(r=o.relayProtocol?"TURN-".concat(o.relayProtocol.toUpperCase()):null===(i=o.protocol)||void 0===i?void 0:i.toUpperCase())&&(n=r,!0)})),e.abrupt("return",n);case 17:case"end":return e.stop()}}),e,this,[[3,10]])}))),function(){return t.apply(this,arguments)})}]),e}(),Sf=r(55777),_f=r.n(Sf),bf={create:function(e){if(!e)throw new no("You must initialize the meeting state machine with a meeting reference.");return new(of())({init:Hn.STATES.IDLE,transitions:[{name:Hn.TRANSITIONS.RING,from:[Hn.STATES.IDLE,Hn.STATES.ERROR,Hn.STATES.JOINED],to:Hn.STATES.RINGING},{name:Hn.TRANSITIONS.JOIN,from:[Hn.STATES.JOINED,Hn.STATES.IDLE,Hn.STATES.RINGING,Hn.STATES.ERROR],to:Hn.STATES.JOINED},{name:Hn.TRANSITIONS.REMOTE,from:[Hn.STATES.JOINED,Hn.STATES.ERROR],to:function(e){return e.remoteAnswered?Hn.STATES.ANSWERED:e.remoteDeclined?Hn.STATES.DECLINED:Hn.STATES.ERROR}},{name:Hn.TRANSITIONS.LEAVE,from:[Hn.STATES.IDLE,Hn.STATES.RINGING,Hn.STATES.JOINED,Hn.STATES.ANSWERED,Hn.STATES.DECLINED,Hn.STATES.ERROR],to:Hn.STATES.ENDED},{name:Hn.TRANSITIONS.END,from:[Hn.STATES.IDLE,Hn.STATES.RINGING,Hn.STATES.JOINED,Hn.STATES.ANSWERED,Hn.STATES.DECLINED,Hn.STATES.ERROR],to:Hn.STATES.ENDED},{name:Hn.TRANSITIONS.DECLINE,from:[Hn.STATES.RINGING,Hn.STATES.ERROR],to:Hn.STATES.ENDED},{name:Hn.TRANSITIONS.FAIL,from:"*",to:Hn.STATES.ERROR},{name:Hn.TRANSITIONS.RESET,from:"*",to:Hn.STATES.IDLE}],data:{meeting:e},methods:{onRemote:function(e,t){this.meeting&&so.trigger(this.meeting,{file:"meeting/state",function:"onRemote"},bn.MEETING_RINGING_STOP,{id:this.meeting.id,type:t})},onRing:function(e,t){this.meeting&&so.trigger(this.meeting,{file:"meeting/state",function:"onRing"},bn.MEETING_RINGING,{type:t,id:this.meeting.id})},onEnterError:function(e,t){Ke.logger.error("Meeting:state#onEnterError --\x3e state->onEnterError#meeting.id: ".concat(this.meeting.id," | Transition '").concat(null==e?void 0:e.transition,"' : ").concat(null==e?void 0:e.from," -> ").concat(null==e?void 0:e.to,", with error ").concat(t,". Last states: ").concat(this.history))},onAfterTransition:function(e){Ke.logger.log("Meeting:state#onAfterTransition --\x3e state->onAfterTransition#meeting.id: ".concat(this.meeting.id," | Transition '").concat(e.transition,"' : ").concat(e.from," -> ").concat(e.to," executed. Last states: ").concat(this.history))}},plugins:[new(_f())({max:25})]})}};const Rf=bf;var Tf=function(){function e(t,r){if((0,p.Z)(this,e),(0,E.Z)(this,"pendingPromiseReject",void 0),(0,E.Z)(this,"pendingPromiseResolve",void 0),(0,E.Z)(this,"state",void 0),(0,E.Z)(this,"type",void 0),t!==Xe&&t!==zt)throw new no("Mute state is designed for handling audio or video only");this.type=t,this.state={client:{localMute:!1},server:{localMute:!1,remoteMute:t===Xe&&r.remoteMuted,unmuteAllowed:t!==Xe||r.unmuteAllowed},syncToServerInProgress:!1},this.pendingPromiseResolve=null,this.pendingPromiseReject=null}return(0,h.Z)(e,[{key:"handleClientRequest",value:function(e,t){var r=this;return Ke.logger.info("Meeting:muteState#handleClientRequest --\x3e ".concat(this.type,": user requesting new mute state: ").concat(t)),t||this.state.server.unmuteAllowed?(this.state.client.localMute=t,this.applyClientStateLocally(e),new(R())((function(t,n){r.pendingPromiseResolve&&r.pendingPromiseResolve(),r.pendingPromiseResolve=t,r.pendingPromiseReject=n,r.applyClientStateToServer(e)}))):R().reject(new ms("User is not allowed to unmute self (hard mute feature is being used)"))}},{key:"applyClientStateLocally",value:function(e){ss.setLocalTrack(!this.state.client.localMute,this.type===Xe?e.mediaProperties.audioTrack:e.mediaProperties.videoTrack)}},{key:"applyClientStateToServer",value:function(e){var t=this;if(this.state.syncToServerInProgress)Ke.logger.info("Meeting:muteState#applyClientStateToServer --\x3e ".concat(this.type,": request to server in progress, we need to wait for it to complete"));else{var r=this.state.client.localMute!==this.state.server.localMute,n=!this.state.client.localMute&&this.state.server.remoteMute;if(Ke.logger.info("Meeting:muteState#applyClientStateToServer --\x3e ".concat(this.type,": localMuteRequiresSync: ").concat(r," (").concat(this.state.client.localMute," ?= ").concat(this.state.server.localMute,")")),Ke.logger.info("Meeting:muteState#applyClientStateToServer --\x3e ".concat(this.type,": remoteMuteRequiresSync: ").concat(n)),!r&&!n)return Ke.logger.info("Meeting:muteState#applyClientStateToServer --\x3e ".concat(this.type,": client state already matching server state, nothing to do")),this.pendingPromiseResolve&&this.pendingPromiseResolve(),this.pendingPromiseResolve=null,void(this.pendingPromiseReject=null);this.state.syncToServerInProgress=!0,(r?this.sendLocalMuteRequestToServer(e):R().resolve()).then((function(){return n?t.sendRemoteMuteRequestToServer(e):R().resolve()})).then((function(){t.state.syncToServerInProgress=!1,Ke.logger.info("Meeting:muteState#applyClientStateToServer --\x3e ".concat(t.type,": sync with server completed")),t.applyClientStateToServer(e)})).catch((function(e){t.state.syncToServerInProgress=!1,t.pendingPromiseReject&&t.pendingPromiseReject(e),t.pendingPromiseResolve=null,t.pendingPromiseReject=null}))}}},{key:"sendLocalMuteRequestToServer",value:function(e){var t,r,n=this,i=this.type===Xe?this.state.client.localMute:null===(t=e.audio)||void 0===t?void 0:t.state.client.localMute,o=this.type===zt?this.state.client.localMute:null===(r=e.video)||void 0===r?void 0:r.state.client.localMute;return Ke.logger.info("Meeting:muteState#sendLocalMuteRequestToServer --\x3e ".concat(this.type,": sending local mute (audio=").concat(i,", video=").concat(o,") to server")),Ts.remoteUpdateAudioVideo(i,o,e).then((function(t){return Ke.logger.info("Meeting:muteState#sendLocalMuteRequestToServer --\x3e ".concat(n.type,": local mute (audio=").concat(i,", video=").concat(o,") applied to server")),n.state.server.localMute=n.type===Xe?i:o,e.locusInfo.onFullLocus(t),t})).catch((function(e){return Ke.logger.warn("Meeting:muteState#sendLocalMuteRequestToServer --\x3e ".concat(n.type,": failed to apply local mute (audio=").concat(i,", video=").concat(o,") to server: ").concat(e)),R().reject(e)}))}},{key:"sendRemoteMuteRequestToServer",value:function(e){var t=this;if(this.type===Xe){var r=this.state.client.localMute;return Ke.logger.info("Meeting:muteState#sendRemoteMuteRequestToServer --\x3e ".concat(this.type,": sending remote mute:").concat(r," to server")),e.members.muteMember(e.members.selfId,r).then((function(){Ke.logger.info("Meeting:muteState#sendRemoteMuteRequestToServer --\x3e ".concat(t.type,": remote mute:").concat(r," applied to server")),t.state.server.remoteMute=r})).catch((function(e){return Ke.logger.warn("Meeting:muteState#sendRemoteMuteRequestToServer --\x3e ".concat(t.type,": failed to apply remote mute ").concat(r," to server: ").concat(e)),R().reject(e)}))}return this.state.server.remoteMute=this.state.client.localMute,R().resolve()}},{key:"handleServerRemoteMuteUpdate",value:function(e,t){Ke.logger.info("Meeting:muteState#handleServerRemoteMuteUpdate --\x3e ".concat(this.type,": updating server remoteMute to (").concat(e,")")),this.state.server.remoteMute=e,this.state.server.unmuteAllowed=t}},{key:"handleServerLocalUnmuteRequired",value:function(e){Ke.logger.info("Meeting:muteState#handleServerLocalUnmuteRequired --\x3e ".concat(this.type,": localAudioUnmuteRequired received -> doing local unmute")),this.state.server.remoteMute=!1,this.state.client.localMute=!1,this.pendingPromiseReject&&(this.pendingPromiseReject(new Error("Server requested local unmute - this overrides any client request in progress")),this.pendingPromiseResolve=null,this.pendingPromiseReject=null),this.applyClientStateLocally(e),this.applyClientStateToServer(e)}},{key:"isMuted",value:function(){return this.state.client.localMute||this.state.server.localMute||this.state.server.remoteMute}},{key:"isLocallyMuted",value:function(){return this.state.client.localMute||this.state.server.localMute}},{key:"isSelf",value:function(){return this.state.client.localMute&&!this.state.server.remoteMute}},{key:"muted",get:function(){return this.isMuted()}},{key:"self",get:function(){return this.isSelf()}}]),e}();const wf=function(e,t,r){return(e!==Xe||r.sendAudio)&&(e!==zt||r.sendVideo)?(Ke.logger.info("Meeting:muteState#createMuteState --\x3e ".concat(e,": creating MuteState for meeting id ").concat(null==t?void 0:t.id)),new Tf(e,t)):null};var If=function(){function e(t){(0,p.Z)(this,e),(0,E.Z)(this,"effectType",void 0),(0,E.Z)(this,"pendingPromiseReject",void 0),(0,E.Z)(this,"pendingPromiseResolve",void 0),(0,E.Z)(this,"state",void 0),this.effectType=t,this.state={bnr:{enabled:vi.NOT_ENABLED},callToWebrtcBNRInProgress:!1},this.pendingPromiseResolve=null,this.pendingPromiseReject=null}var t,r;return(0,h.Z)(e,[{key:"handleClientRequest",value:(r=(0,f.Z)(_().mark((function e(t,r){var n=this;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new(R())((function(e,i){n.pendingPromiseResolve&&n.pendingPromiseResolve(!0),n.pendingPromiseResolve=e,n.pendingPromiseReject=i,t?n.enableBNR(r):n.disableBNR(r)})));case 1:case"end":return e.stop()}}),e)}))),function(e,t){return r.apply(this,arguments)})},{key:"isBnrEnabled",value:function(){return this.state.bnr.enabled===vi.ENABLED}},{key:"resolvePromise",value:function(){this.pendingPromiseResolve&&this.pendingPromiseResolve(!0),this.pendingPromiseResolve=null,this.pendingPromiseReject=null}},{key:"rejectPromise",value:function(e){this.pendingPromiseReject&&this.pendingPromiseReject(e),this.pendingPromiseResolve=null,this.pendingPromiseReject=null}},{key:"enableBNR",value:function(){var e=(0,f.Z)(_().mark((function e(t){var r,n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Ke.logger.info("Meeting:effectState#enableBNR. Enable BNR called"),!this.isBnrEnabled()){e.next=4;break}return Ke.logger.warn("Meeting:index#enableBNR. BNR is already enabled"),e.abrupt("return",this.resolvePromise());case 4:if(!this.state.callToWebrtcBNRInProgress){e.next=7;break}return Ke.logger.warn("Meeting:effectState#enableBNR. Call to WebRTC in progress, we need to wait for it to complete"),e.abrupt("return",this.resolvePromise());case 7:return r=this.state.bnr,e.prev=8,r.enabled=vi.SHOULD_ENABLE,this.state.callToWebrtcBNRInProgress=!0,n=yf.createMediaStream([t.mediaProperties.audioTrack]),Ke.logger.info("Meeting:effectState#enableBNR. MediaStream created from meeting & sent to updateAudio"),e.next=15,t.updateAudio({sendAudio:!0,receiveAudio:t.mediaProperties.mediaDirection.receiveAudio,stream:n});case 15:Ke.logger.info("Meeting:effectState#enableBNR. Updated meeting audio with bnr enabled track"),r.enabled=vi.ENABLED,this.state.callToWebrtcBNRInProgress=!1,Ki.sendBehavioralMetric(Lo.ENABLE_BNR_SUCCESS),e.next=28;break;case 21:return e.prev=21,e.t0=e.catch(8),r.enabled=vi.NOT_ENABLED,this.state.callToWebrtcBNRInProgress=!1,Ke.logger.error("Meeting:index#enableBNR.",e.t0),Ki.sendBehavioralMetric(Lo.ENABLE_BNR_FAILURE,{reason:e.t0.message,stack:e.t0.stack}),e.abrupt("return",this.rejectPromise(e.t0));case 28:return e.abrupt("return",this.resolvePromise());case 29:case"end":return e.stop()}}),e,this,[[8,21]])})));return function(t){return e.apply(this,arguments)}}()},{key:"disableBNR",value:(t=(0,f.Z)(_().mark((function e(t){var r,n,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Ke.logger.info("Meeting:effectState#disableBNR. Disable BNR called"),r=this.state.bnr,e.prev=2,!this.state.callToWebrtcBNRInProgress){e.next=6;break}return Ke.logger.info("Meeting:effectState#disableBNR. Call to WebRTC in progress, we need to wait for it to complete"),e.abrupt("return",this.resolvePromise());case 6:return r.enabled=vi.SHOULD_DISABLE,this.state.callToWebrtcBNRInProgress=!0,n=wd.Effects.BNR.disableBNR(t.mediaProperties.audioTrack),i=yf.createMediaStream([n]),Ke.logger.info("Meeting:effectState#disableBNR. Raw media track obtained from WebRTC & sent to updateAudio"),e.next=13,t.updateAudio({sendAudio:!0,receiveAudio:t.mediaProperties.mediaDirection.receiveAudio,stream:i});case 13:r.enabled=vi.NOT_ENABLED,this.state.callToWebrtcBNRInProgress=!1,Ki.sendBehavioralMetric(Lo.DISABLE_BNR_SUCCESS),e.next=25;break;case 18:return e.prev=18,e.t0=e.catch(2),r.enabled=vi.ENABLED,this.state.callToWebrtcBNRInProgress=!1,Ke.logger.error("Meeting:index#disableBNR. ".concat(e.t0)),Ki.sendBehavioralMetric(Lo.DISABLE_BNR_FAILURE,{reason:e.t0.message,stack:e.t0.stack}),e.abrupt("return",this.rejectPromise(e.t0));case 25:return e.abrupt("return",this.resolvePromise());case 26:case"end":return e.stop()}}),e,this,[[2,18]])}))),function(e){return t.apply(this,arguments)})}]),e}();const xf=function(e){return Ke.logger.info("Meeting:effectState#createEffectsState --\x3e creating effectsState for effect ".concat(e)),new If(e)};function Af(e,t){var r=x()(e);if(fo()){var n=fo()(e);t&&(n=n.filter((function(t){return ho()(e,t).enumerable}))),r.push.apply(r,n)}return r}function Cf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Af(Object(r),!0).forEach((function(t){(0,E.Z)(e,t,r[t])})):mo()?yo()(e,mo()(r)):Af(Object(r)).forEach((function(t){So()(e,t,ho()(r,t))}))}return e}var Of={parse:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n={policy:Of.parsePolicy(e),moderator:Of.parseModerator(e),coHost:Of.parseCoHost(e)},i=r?Cf({},n.policy):{};return t.includes(Gn.COHOST)&&(i=Cf(Cf({},i),n.coHost)),t.includes(Gn.MODERATOR)&&(i=Cf(Cf({},i),n.moderator)),n.userDisplayHints=x()(i),e.sipUri&&(n.sipUri=e.sipUri),e.meetingId&&(n.meetingNumber=e.meetingId),n},parseDisplayHintSection:function(e,t){var r={};return e&&e.displayHints&&e.displayHints[t]&&e.displayHints[t].length>0&&e.displayHints[t].forEach((function(e){r[e]=!0})),r},parsePolicy:function(e){return Of.parseDisplayHintSection(e,"joined")},parseModerator:function(e){return Cf(Cf({},Of.parseDisplayHintSection(e,"moderator")),{},(0,E.Z)({},Vn.LOWER_SOMEONE_ELSES_HAND,!0))},parseCoHost:function(e){return Cf(Cf({},Of.parseDisplayHintSection(e,"coHost")),{},(0,E.Z)({},Vn.LOWER_SOMEONE_ELSES_HAND,!0))},isLocked:function(e){return e.LOCK_STATUS_LOCKED||!1},isUnlocked:function(e){return e.LOCK_STATUS_UNLOCKED||!1},getInfos:function(e,t,r,n){var i=null;e&&(i=e);var o=t&&Of.parse(t,r,n),a={};return o&&(o.isLocked=Of.isLocked(o.policy),o.isUnlocked=Of.isUnlocked(o.policy),(i&&i.isUnlocked&&o.isLocked||!i&&o.isLocked)&&(a.isLocked=o.isLocked),(i&&i.isLocked&&o.isUnlocked||!i&&o.isUnlocked)&&(a.isUnlocked=o.isUnlocked)),{previous:i,current:o,updates:a}}};const kf=Of;var Nf={parse:function(e){return{type:e.type||kn.UNKNOWN,meetingState:e.state,locked:e.locked}},getFullState:function(e,t){var r=e&&Nf.parse(e),n=t&&Nf.parse(t);return{previous:r,current:n,updates:{isMeetingEnded:Nf.isMeetingEnded(r,n),isMeetingTerminating:Nf.isMeetingTerminating(r,n),meetingTypeChangedTo:Nf.isTypeChanged(r,n),meetingStateChangedTo:Nf.meetingStateChange(r,n)}}},isMeetingEnded:function(e,t){return!(t.state!==kn.INACTIVE||!e||e.state!==kn.ACTIVE&&e.state!==kn.INITIALIZING&&e.state!==kn.TERMINATING)},isMeetingTerminating:function(e,t){return!(t.state!==kn.TERMINATING||!e||e.state!==kn.ACTIVE&&e.state!==kn.INITIALIZING)},isTypeChanged:function(e,t){return e&&t.type===e.type?null:t&&t.type},meetingStateChange:function(e,t){return e&&t.meetingState===e.meetingState?null:t&&t.meetingState}};const Lf=Nf;var Pf={};Pf.parse=function(e,t){if(e){var r,n=e.devices.find((function(e){return t===e.url})),i=e.devices.filter((function(e){return"PROVISIONAL"===e.deviceType}));return{remoteMuted:Pf.getRemoteMuted(e),unmuteAllowed:Pf.getUnmuteAllowed(e),localAudioUnmuteRequested:Pf.getLocalAudioUnmuteRequested(e),localAudioUnmuteRequired:Pf.getLocalAudioUnmuteRequired(e),lastModified:Pf.getLastModified(e),modifiedBy:Pf.getModifiedBy(e),guest:e.guest,moderator:e.moderator,mediaStatus:Pf.getStatus(e.status),state:e.state,joinedWith:n,pstnDevices:i,currentMediaStatus:Pf.getMediaStatus(null==n?void 0:n.mediaSessions),creator:e.isCreator,selfId:e.id,selfIdentity:Pf.getSelfIdentity(e),selfUrl:e.url,removed:e.removed,roles:Pf.getRoles(e),isUserUnadmitted:e.state===ir&&(null==n||null===(r=n.intent)||void 0===r?void 0:r.type)===Br,layout:Pf.getLayout(e),canNotViewTheParticipantList:Pf.canNotViewTheParticipantList(e),isSharingBlocked:Pf.isSharingBlocked(e)}}return null},Pf.getLayout=function(e){var t;return ko()(null==e||null===(t=e.controls)||void 0===t?void 0:t.layouts)?e.controls.layouts[0].type:void 0},Pf.getRoles=function(e){var t,r;return((null==e||null===(t=e.controls)||void 0===t||null===(r=t.role)||void 0===r?void 0:r.roles)||[]).reduce((function(e,t){return t.hasRole&&e.push(t.type),e}),[])},Pf.canNotViewTheParticipantList=function(e){return!(null==e||!e.canNotViewTheParticipantList)},Pf.isSharingBlocked=function(e){return!(null==e||!e.isSharingBlocked)},Pf.getSelves=function(e,t,r){var n=e&&Pf.parse(e,r),i=t&&Pf.parse(t,r),o={};return o.isUserUnadmitted=Pf.isUserUnadmitted(i),o.isUserAdmitted=Pf.isUserAdmitted(n,i),o.isMutedByOthersChanged=Pf.mutedByOthersChanged(n,i),o.localAudioUnmuteRequestedByServer=Pf.localAudioUnmuteRequestedByServer(n,i),o.localAudioUnmuteRequiredByServer=Pf.localAudioUnmuteRequiredByServer(n,i),o.moderatorChanged=Pf.moderatorChanged(n,i),o.isMediaInactiveOrReleased=Pf.wasMediaInactiveOrReleased(n,i),o.isUserObserving=Pf.isDeviceObserving(n,i),o.layoutChanged=Pf.layoutChanged(n,i),o.isMediaInactive=Pf.isMediaInactive(n,i),o.audioStateChange=(null==n?void 0:n.currentMediaStatus.audio)!==i.currentMediaStatus.audio,o.videoStateChange=(null==n?void 0:n.currentMediaStatus.video)!==i.currentMediaStatus.video,o.shareStateChange=(null==n?void 0:n.currentMediaStatus.share)!==i.currentMediaStatus.share,o.canNotViewTheParticipantListChanged=(null==n?void 0:n.canNotViewTheParticipantList)!==i.canNotViewTheParticipantList,o.isSharingBlockedChanged=(null==n?void 0:n.isSharingBlocked)!==i.isSharingBlocked,{previous:n,current:i,updates:o}},Pf.isJoined=function(e){return(null==e?void 0:e.state)===dr},Pf.layoutChanged=function(e,t){return(null==t?void 0:t.layout)&&(null==e?void 0:e.layout)!==(null==t?void 0:t.layout)},Pf.isMediaInactive=function(e,t){if(e&&e.joinedWith&&e.joinedWith.mediaSessions&&t&&t.joinedWith&&t.joinedWith.mediaSessions){var r=Pf.getMediaStatus(e.joinedWith.mediaSessions),n=Pf.getMediaStatus(t.joinedWith.mediaSessions);return!(!r.audio||!n.audio||r.audio.state===An.inactive||n.audio.state!==An.inactive||n.audio.direction===An.inactive)||(!(!r.video||!n.video||r.video.state===An.inactive||n.video.state!==An.inactive||n.video.direction===An.inactive)||!(!r.share||!n.share||r.share.state===An.inactive||n.share.state!==An.inactive||n.share.direction===An.inactive))}return!1},Pf.getLastModified=function(e){return e&&e.controls&&e.controls.audio&&e.controls.audio.meta&&e.controls.audio.meta.lastModified?e.controls.audio.meta.lastModified:null},Pf.getModifiedBy=function(e){return e&&e.controls&&e.controls.audio&&e.controls.audio.meta&&e.controls.audio.meta.modifiedBy?e.controls.audio.meta.modifiedBy:null},Pf.getSelfIdentity=function(e){return e||e.person?e.person.id:null},Pf.getRemoteMuted=function(e){return e&&e.controls&&e.controls.audio?e.controls.audio.muted:null},Pf.getLocalAudioUnmuteRequested=function(e){var t,r;return!(null==e||null===(t=e.controls)||void 0===t||null===(r=t.audio)||void 0===r||!r.requestedToUnmute)},Pf.getUnmuteAllowed=function(e){return e&&e.controls&&e.controls.audio?!e.controls.audio.disallowUnmute:null},Pf.getLocalAudioUnmuteRequired=function(e){var t,r;return!(null==e||null===(t=e.controls)||void 0===t||null===(r=t.audio)||void 0===r||!r.localAudioUnmuteRequired)},Pf.getStatus=function(e){return{audio:e.audioStatus,video:e.videoStatus,slides:e.videoSlidesStatus}},Pf.wasMediaInactiveOrReleased=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return e.joinedWith&&e.joinedWith.state===dr&&t.joinedWith&&t.joinedWith.state===pr&&(t.joinedWith.reason===Zn.INACTIVE||t.joinedWith.reason===Zn.MEDIA_RELEASED)},Pf.isLocusUserUnadmitted=function(e){var t,r;return e&&(null===(t=e.joinedWith)||void 0===t||null===(r=t.intent)||void 0===r?void 0:r.type)===Br&&e.state===ir},Pf.isLocusUserAdmitted=function(e){var t,r;return e&&(null===(t=e.joinedWith)||void 0===t||null===(r=t.intent)||void 0===r?void 0:r.type)!==Br&&e.state===dr},Pf.isUserUnadmitted=function(e){if(!e)throw new no("self must be defined to determine if self is unadmitted as guest.");return Pf.isLocusUserUnadmitted(e)},Pf.moderatorChanged=function(e,t){if(!e)return!0;if(!t)throw new no("New self must be defined to determine if self transitioned moderator status.");return e.moderator!==t.moderator},Pf.isDeviceObserving=function(e,t){var r,n,i,o;return e&&(null===(r=e.joinedWith)||void 0===r||null===(n=r.intent)||void 0===n?void 0:n.type)===Zr&&t&&(null===(i=t.joinedWith)||void 0===i||null===(o=i.intent)||void 0===o?void 0:o.type)===br},Pf.isUserAdmitted=function(e,t){if(!e)return!1;if(!t)throw new no("New self must be defined to determine if self transitioned to admitted as guest.");return Pf.isLocusUserUnadmitted(e)&&Pf.isLocusUserAdmitted(t)},Pf.mutedByOthersChanged=function(e,t){if(!t)throw new no("New self must be defined to determine if self was muted by others.");return e&&null!==e.remoteMuted?null!==t.remoteMuted&&(e.remoteMuted!==t.remoteMuted||t.remoteMuted&&e.unmuteAllowed!==t.unmuteAllowed):!!t.remoteMuted},Pf.localAudioUnmuteRequestedByServer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(!t)throw new no("New self must be defined to determine if self received request to unmute.");return t.localAudioUnmuteRequested&&!e.localAudioUnmuteRequested},Pf.localAudioUnmuteRequiredByServer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(!t)throw new no("New self must be defined to determine if localAudioUnmuteRequired changed.");return!t.remoteMuted&&t.localAudioUnmuteRequired&&e.localAudioUnmuteRequired!==t.localAudioUnmuteRequired},Pf.getSipUrl=function(e,t,r){return e&&t===Qt?{sipUri:e.person.sipUrl||e.person.id}:{sipUri:r}},Pf.getMediaStatus=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={audio:{},video:{},share:{}};return t.audio=e.find((function(e){return e.mediaType===Xe&&e.mediaContent===Xn.main})),t.video=e.find((function(e){return e.mediaType===zt&&e.mediaContent===Xn.main})),t.share=e.find((function(e){return e.mediaType===zt&&e.mediaContent===Xn.slides})),t};const Mf=Pf;var Df={parse:function(e){return e?{hostId:Df.getId(e)}:null},getHosts:function(e,t){var r=e&&Df.parse(e),n=t&&Df.parse(t);return{previous:r,current:n,updates:{isNewHost:!r||!n||Df.isDifferentHosts(r.hostId,n.hostId)}}},isDifferentHosts:function(e,t){return e!==t},getId:function(e){return e?e.id:null}};const Uf=Df;function jf(e,t){var r=x()(e);if(fo()){var n=fo()(e);t&&(n=n.filter((function(t){return ho()(e,t).enumerable}))),r.push.apply(r,n)}return r}var Ff={};Ff.parse=function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jf(Object(r),!0).forEach((function(t){(0,E.Z)(e,t,r[t])})):mo()?yo()(e,mo()(r)):jf(Object(r)).forEach((function(t){So()(e,t,ho()(r,t))}))}return e}({},e);return e&&e.record&&(t.record={modifiedBy:Ff.getId(e),paused:!!e.record.paused&&e.record.paused,recording:e.record.recording,lastModified:e.record.meta.lastModified}),e&&e.meetingContainer&&(t.meetingContainer={meetingContainerUrl:e.meetingContainer.meetingContainerUrl}),e&&e.transcribe&&(t.transcribe={transcribing:e.transcribe.transcribing,caption:e.transcribe.caption}),e&&e.entryExitTone&&(t.entryExitTone=e.entryExitTone.enabled?e.entryExitTone.mode:null),t},Ff.getControls=function(e,t){var r,n,i,o,a,s,c,u,l,d,f,p,h,v=Ff.parse(e),m=Ff.parse(t);return{previous:v,current:m,updates:{hasRecordingPausedChanged:(null==m?void 0:m.record)&&!Xs()(null==v||null===(r=v.record)||void 0===r?void 0:r.paused,m.record.paused)&&((null==v||null===(n=v.record)||void 0===n?void 0:n.recording)||(null==m||null===(i=m.record)||void 0===i?void 0:i.recording)),hasRecordingChanged:(null==m?void 0:m.record)&&!Xs()(null==v||null===(o=v.record)||void 0===o?void 0:o.recording,null==m||null===(a=m.record)||void 0===a?void 0:a.recording)&&((null==v||null===(s=v.record)||void 0===s?void 0:s.recording)||(null==m||null===(c=m.record)||void 0===c?void 0:c.recording)),hasMeetingContainerChanged:(null==m?void 0:m.meetingContainer)&&!Xs()(null==v||null===(u=v.meetingContainer)||void 0===u?void 0:u.meetingContainerUrl,null==m||null===(l=m.meetingContainer)||void 0===l?void 0:l.meetingContainerUrl),hasTranscribeChanged:(null==m?void 0:m.transcribe)&&!Xs()(null==v||null===(d=v.transcribe)||void 0===d?void 0:d.transcribing,null==m||null===(f=m.transcribe)||void 0===f?void 0:f.transcribing)&&((null==v||null===(p=v.transcribe)||void 0===p?void 0:p.transcribing)||(null==m||null===(h=m.transcribe)||void 0===h?void 0:h.transcribing)),hasEntryExitToneChanged:!(!t.entryExitTone||Xs()(null==v?void 0:v.entryExitTone,null==m?void 0:m.entryExitTone)||!(null!=v&&v.entryExitTone||null!=m&&m.entryExitTone))}}},Ff.getId=function(e){return e.record.meta?e.record.meta.modifiedBy:null};const Bf=Ff;function Zf(e,t){var r=x()(e);if(fo()){var n=fo()(e);t&&(n=n.filter((function(t){return ho()(e,t).enumerable}))),r.push.apply(r,n)}return r}var Vf={},Gf=/.sli.do\//;Vf.parseApp=function(e){var t,r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zf(Object(r),!0).forEach((function(t){(0,E.Z)(e,t,r[t])})):mo()?yo()(e,mo()(r)):Zf(Object(r)).forEach((function(t){So()(e,t,ho()(r,t))}))}return e}({},e);r.type=mi.OTHER;var n=null===(t=r.instanceInfo)||void 0===t?void 0:t.appInstanceUrl;return n&&n.match(Gf)&&(r.type=mi.SLIDO),r},Vf.areSimilar=function(e,t){if(!e||!t)return e===t;if((null==e?void 0:e.length)!==(null==t?void 0:t.length))return!1;for(var r=0;r<e.length;r+=1)if(e[r].state!==t[r].state)return!1;return!0},Vf.parse=function(e){return e&&e.map(Vf.parseApp)};const qf=Vf;var Hf={parse:function(e){return e?{content:{beneficiaryId:Hf.getContentBeneficiaryId(e),disposition:Hf.getContentDisposition(e)},whiteboard:{beneficiaryId:Hf.getWhiteboardBeneficiaryId(e),disposition:Hf.getWhiteboardDisposition(e),resourceUrl:Hf.getWhiteboardResourceUrl(e)}}:null},getMediaShares:function(e,t){return{previous:e&&Hf.parse(e),current:t&&Hf.parse(t)}},getContentDisposition:function(e){var t=Hf.extractContentFloor(e);return t?t.disposition:null},getWhiteboardDisposition:function(e){var t=Hf.extractWhiteboardFloor(e);return t?t.disposition:null},extractContent:function(e){return e&&e.length&&e.find((function(e){return e.name===ft}))||null},extractWhiteboard:function(e){return e&&e.length&&e.find((function(e){return e.name===ht}))||null},extractFloor:function(e){return e?e.floor:null},extractContentFloor:function(e){var t=Hf.extractContent(e);return Hf.extractFloor(t)},extractWhiteboardFloor:function(e){var t=Hf.extractWhiteboard(e);return Hf.extractFloor(t)},getContentBeneficiaryId:function(e){var t=Hf.extractContentFloor(e);return t&&t.beneficiary?t.beneficiary.id:null},getWhiteboardBeneficiaryId:function(e){var t=Hf.extractWhiteboardFloor(e);return t&&t.beneficiary?t.beneficiary.id:null},getWhiteboardResourceUrl:function(e){var t=Hf.extractWhiteboard(e);return t&&t.resourceUrl?t.resourceUrl:null}};const Wf=Hf;function zf(e,t){return t||(t=e.slice(0)),Wd(go(e,{raw:{value:Wd(t)}}))}var $f,Kf,Yf,Jf,Qf,Xf,ep,tp,rp,np,ip=r(91966),op=r.n(ip),ap=function(){function e(){(0,p.Z)(this,e),(0,E.Z)(this,"queue",void 0),this.queue=[]}return(0,h.Z)(e,[{key:"clear",value:function(){this.queue=[]}},{key:"enqueue",value:function(e){this.queue.push(e)}},{key:"dequeue",value:function(){return 0===this.queue.length?null:this.queue.shift()}},{key:"size",value:function(){return this.queue.length}}]),e}(),sp=function(){function e(){(0,p.Z)(this,e),(0,E.Z)(this,"queue",void 0),(0,E.Z)(this,"workingCopy",void 0),this.queue=new ap,this.status=e.status.IDLE,this.onDeltaAction=null,this.workingCopy=null}return(0,h.Z)(e,[{key:"isValidLocus",value:function(t){var r,n=this,i=!1,o=e.status.IDLE,a=e.isLoci;return a(this.workingCopy)&&a(t)?i=!0:(r=o,n.status=r,Ke.logger.info("Locus-info:parser#processDeltaEvent --\x3e Ignoring non-locus object. workingCopy:",this.workingCopy,"newLoci:",t)),i}},{key:"nextEvent",value:function(){this.status!==e.status.PAUSED?this.queue.size()>0?this.processDeltaEvent():this.status=e.status.IDLE:Ke.logger.info("Locus-info:parser#nextEvent --\x3e Locus parser paused.")}},{key:"onDeltaAction",value:function(e,t){}},{key:"onDeltaEvent",value:function(t){this.queue.enqueue(t),this.status===e.status.IDLE&&this.onDeltaAction&&(this.status=e.status.WORKING,this.processDeltaEvent())}},{key:"pause",value:function(){this.status=e.status.PAUSED,Ke.logger.info("Locus-info:parser#pause --\x3e Locus parser paused.")}},{key:"processDeltaEvent",value:function(){var t=e.loci,r=t.DESYNC,n=t.USE_INCOMING,i=e.extractComparisonState,o=this.queue.dequeue();if(this.isValidLocus(o)){var a=e.compare(this.workingCopy,o),s=i(a);Ke.logger.debug("Locus-info:parser#processDeltaEvent --\x3e Locus Debug: ".concat(a)),s===r?this.pause():s===n&&(this.workingCopy=o),this.onDeltaAction&&(Ke.logger.info("Locus-info:parser#processDeltaEvent --\x3e Locus Delta Action: ".concat(s)),this.onDeltaAction.call(this,s,o)),this.nextEvent()}}},{key:"resume",value:function(){Ke.logger.info("Locus-info:parser#resume --\x3e Locus parser resumed."),this.status=e.status.WORKING,this.nextEvent()}}],[{key:"checkSequenceOverlap",value:function(t,r){var n=null;return t.min>r.max?n="".concat(e.loci.GT,":SO001"):t.max<r.min&&(n="".concat(e.loci.LT,":SO002")),n}},{key:"checkUnequalRanges",value:function(t,r){var n=null,i=0===t.unique.length,o=0===r.unique.length,a=t.end-t.min,s=r.end-r.min;return i&&o&&(n=a>s?"".concat(e.loci.GT,":UR001"):a<s?"".concat(e.loci.LT,":UR002"):"".concat(e.loci.EQ,":UR003")),n}},{key:"checkForUniqueEntries",value:function(t,r){var n=null,i=t.unique.length>0,o=r.unique.length>0;return i&&!o?n="".concat(e.loci.GT,":UE001"):!i&&o&&(n="".concat(e.loci.LT,":UE002")),n}},{key:"checkIfOutOfSync",value:function(t,r){var n=null,i=t.unique[0],o=r.unique[0],a=!t.start&&!t.end,s=!r.start&&!r.end,c=a&&s,u=function(e,t,r){return e.some((function(e){return t<e&&e<r}))},l=u(t.unique,r.min,r.max),d=u(r.unique,t.min,t.max);if(c||l||d){var f="".concat(+c,",").concat(+l,",").concat(+d);n="".concat(e.loci.DESYNC,":OOS001:").concat(f)}else n=i>o?"".concat(e.loci.GT,":OOS002"):"".concat(e.loci.LT,":OOS003");return n}},{key:"compare",value:function(t,r){var n=e.isSequenceEmpty,i=e.extractComparisonState,o=e.packComparisonResult;if(n(t)||n(r))return o(e.loci.USE_INCOMING,"C001");if(r.baseSequence)return o(e.compareDelta(t,r),"C002");var a=e.compareSequence(t.sequence,r.sequence);return o(e.compareToAction(i(a)),a)}},{key:"compareDelta",value:function(t,r){var n=e.loci,i=n.LT,o=n.GT,a=n.EQ,s=n.DESYNC,c=n.USE_INCOMING,u=e.extractComparisonState,l=e.packComparisonResult,d=e.compareSequence(t.sequence,r.sequence),f=u(d);if(f!==i)return l(e.compareToAction(f),d);switch(u(f=e.compareSequence(t.sequence,r.baseSequence))){case o:case a:f=c;break;default:f=s}return l(f,d)}},{key:"compareSequence",value:function(t,r){var n=e.getMetaData(t),i=e.getMetaData(r);n.unique=e.getUniqueSequences(n,i),i.unique=e.getUniqueSequences(i,n);for(var o=0,a=[e.checkSequenceOverlap,e.checkUnequalRanges,e.checkForUniqueEntries,e.checkIfOutOfSync];o<a.length;o++){var s=(0,a[o])(n,i);if(s)return s}return e.loci.ERROR}},{key:"compareToAction",value:function(t){var r=e.loci,n=r.DESYNC,i=r.EQ,o=r.ERROR,a=r.GT,s=r.LT,c=r.USE_CURRENT,u=r.USE_INCOMING,l=o;switch(t){case i:case a:l=c;break;case s:l=u;break;case n:l=n;break;default:Ke.logger.info("Locus-info:parser#compareToAction --\x3e Error: ".concat(t," is not a recognized sequence comparison result."))}return l}},{key:"extractComparisonState",value:function(e){return e.split(":")[0]}},{key:"getMetaData",value:function(e){var t=e.entries,r=t[0],n=t.slice(-1)[0],i=e.rangeStart,o=e.rangeEnd;return{start:i,end:o,first:r,last:n,min:i||r,max:n||o,entries:t}}},{key:"getUniqueSequences",value:function(t,r){var n=op()(t.entries,r.entries),i=r.start,o=r.end;return e.getNumbersOutOfRange(n,i,o)}},{key:"getNumbersOutOfRange",value:function(e,t,r){return e.filter((function(e){return e<t||e>r})).sort((function(e,t){return e-t}))}},{key:"isSequenceEmpty",value:function(e){var t,r=e.sequence,n=!(null!==(t=r.entries)&&void 0!==t&&t.length),i=0===r.rangeStart&&0===r.rangeEnd;return n&&i}},{key:"isLoci",value:function(e){if(!e||!e.sequence)return!1;var t=function(t){return Object.prototype.hasOwnProperty.call(e.sequence,t)};return!(!t("rangeStart")||!t("rangeEnd"))}},{key:"packComparisonResult",value:function(e,t){return"".concat(e,":").concat(t)}},{key:"getDebugMessage",value:function(t,r){var n=function(e){return e.join("").replace(/\s{2,}/g," ")},i={EQ:"".concat(e.loci.LT,": is equal (current == incoming)."),LT:"".concat(e.loci.LT,": choose right side (incoming)."),GT:"".concat(e.loci.GT,": choose left side (current).")},o={SO001:{title:"checkSequenceOverlap-001",description:n($f||($f=zf(["Occurs if earliest working copy sequence is more recent than last incoming sequence."],["Occurs if earliest working copy sequence is more \\\n recent than last incoming sequence."]))),logic:"current.min > incoming.max"},SO002:{title:"checkSequenceOverlap-002",description:n(Kf||(Kf=zf(["Occurs if last working copy sequence is before the earliest incoming sequence."],["Occurs if last working copy sequence is before the \\\n earliest incoming sequence."]))),logic:"current.max < incoming.min"},UR001:{title:"checkUnequalRanges-001",description:n(Yf||(Yf=zf(["Occurs if there are no unique values for both loci, and the current working copy loci has a larger range."],["Occurs if there are no unique values for both loci, \\\n and the current working copy loci has a larger range."]))),logic:"currentTotalRange > incomingTotalRange"},UR002:{title:"checkUnequalRanges-002",description:n(Jf||(Jf=zf(["Occurs if there are no unique values for both loci, and the incoming delta loci has a larger range."],["Occurs if there are no unique values for both loci, \\\n and the incoming delta loci has a larger range."]))),logic:"currentTotalRange < incomingTotalRange"},UR003:{title:"checkUnequalRanges-003",description:n(Qf||(Qf=zf(["Occurs if there are no unique values for both loci, and with ranges either absent or of the same size, the sequences are considered equal."],["Occurs if there are no unique values for both loci, \\\n and with ranges either absent or of the same size, the sequences \\\n are considered equal."]))),logic:"currentTotalRange == incomingTotalRange"},UE001:{title:"checkForUniqueEntries-001",description:n(Xf||(Xf=zf(["Occurs if current loci has unique entries and incoming does not. Entries are considered unique if they do not overlap with other Loci sequences or range values."],["Occurs if current loci has unique entries and \\\n incoming does not. Entries are considered unique if they \\\n do not overlap with other Loci sequences or range values."]))),logic:"currentIsUnique && !incomingIsUnique"},UE002:{title:"checkForUniqueEntries-002",description:n(ep||(ep=zf(["Occurs if current has no unique entries but incoming does. Entries are considered unique if they do not overlap with other Loci sequences or range values."],["Occurs if current has no unique entries but \\\n incoming does. Entries are considered unique if they \\\n do not overlap with other Loci sequences or range values."]))),logic:"!currentIsUnique && incomingIsUnique"},OOS001:{title:"checkIfOutOfSync-001",description:n(tp||(tp=zf(["Occurs if neither sequence has a range, or if the current loci unique entries overlap the total range of the incoming sequence, or if the incoming unique entries overlap the total range of current sequence."],["Occurs if neither sequence has a range, or \\\n if the current loci unique entries overlap the total range of the \\\n incoming sequence, or if the incoming unique entries overlap \\\n the total range of current sequence."]))),logic:"neitherSeqHasRange || currentUniqOverlap || incomingUniqOverlap"},OOS002:{title:"checkIfOutOfSync-002",description:n(rp||(rp=zf(["Occurs if the minimum value from sequences that are unique to the current loci is greater than the minimum value from sequences that are unique to the incoming loci."],["Occurs if the minimum value from sequences that are \\\n unique to the current loci is greater than the minimum value from \\\n sequences that are unique to the incoming loci."]))),logic:"currentUniqueMin > incomingUniqueMin"},OOS003:{title:"checkIfOutOfSync-003",description:n(np||(np=zf(["Occurs if none of the comparison rules applied. It is a catch all."],["Occurs if none of the comparison rules applied. \\\n It is a catch all."]))),logic:"else (catch all)"}}[t];return o.title="Debug: ".concat(o.title),o.resolution=i[r],o}}]),e}();function cp(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}(0,E.Z)(sp,"status",{IDLE:"IDLE",PAUSED:"PAUSED",WORKING:"WORKING"}),(0,E.Z)(sp,"loci",{EQ:"EQUAL",GT:"GREATER_THAN",LT:"LESS_THAN",DESYNC:"DESYNC",USE_INCOMING:"USE_INCOMING",USE_CURRENT:"USE_CURRENT",ERROR:"ERROR"});var up=function(e){(0,m.Z)(r,e);var t=cp(r);function r(e,n,i){var o;return(0,p.Z)(this,r),o=t.call(this),(0,E.Z)((0,v.Z)(o),"compareAndUpdateFlags",void 0),(0,E.Z)((0,v.Z)(o),"emitChange",void 0),(0,E.Z)((0,v.Z)(o),"locusParser",void 0),(0,E.Z)((0,v.Z)(o),"meetingId",void 0),(0,E.Z)((0,v.Z)(o),"parsedLocus",void 0),(0,E.Z)((0,v.Z)(o),"updateMeeting",void 0),(0,E.Z)((0,v.Z)(o),"webex",void 0),(0,E.Z)((0,v.Z)(o),"aclUrl",void 0),(0,E.Z)((0,v.Z)(o),"baseSequence",void 0),(0,E.Z)((0,v.Z)(o),"created",void 0),(0,E.Z)((0,v.Z)(o),"deltaParticipants",void 0),(0,E.Z)((0,v.Z)(o),"identities",void 0),(0,E.Z)((0,v.Z)(o),"membership",void 0),(0,E.Z)((0,v.Z)(o),"participants",void 0),(0,E.Z)((0,v.Z)(o),"participantsUrl",void 0),(0,E.Z)((0,v.Z)(o),"replaces",void 0),(0,E.Z)((0,v.Z)(o),"scheduledMeeting",void 0),(0,E.Z)((0,v.Z)(o),"sequence",void 0),(0,E.Z)((0,v.Z)(o),"controls",void 0),(0,E.Z)((0,v.Z)(o),"conversationUrl",void 0),(0,E.Z)((0,v.Z)(o),"embeddedApps",void 0),(0,E.Z)((0,v.Z)(o),"fullState",void 0),(0,E.Z)((0,v.Z)(o),"host",void 0),(0,E.Z)((0,v.Z)(o),"info",void 0),(0,E.Z)((0,v.Z)(o),"mediaShares",void 0),(0,E.Z)((0,v.Z)(o),"replace",void 0),(0,E.Z)((0,v.Z)(o),"url",void 0),(0,E.Z)((0,v.Z)(o),"services",void 0),o.parsedLocus={states:[]},o.webex=n,o.emitChange=!1,o.compareAndUpdateFlags={},o.meetingId=i,o.updateMeeting=e,o.locusParser=new sp,o}return(0,h.Z)(r,[{key:"applyLocusDeltaData",value:function(e,t,r){var n=this,i=sp.loci,o=i.DESYNC,a=i.USE_CURRENT;switch(e){case i.USE_INCOMING:r.locusInfo.onDeltaLocus(t);break;case a:r.locusDesync=!1,r.needToGetFullLocus=!1;break;case o:r.meetingRequest.getFullLocus({desync:!0,locusUrl:r.locusUrl}).then((function(e){r.locusInfo.onFullLocus(e.body),n.locusParser.resume()}));break;default:Ke.logger.info("Locus-info:index#applyLocusDeltaData --\x3e Unknown locus delta action: ".concat(e))}}},{key:"handleLocusDelta",value:function(e,t){var r=this;this.locusParser.onDeltaAction||(this.locusParser.onDeltaAction=function(e,n){r.applyLocusDeltaData(e,n,t)}),this.locusParser.onDeltaEvent(e)}},{key:"init",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.created=t.created||null,this.scheduledMeeting=t.meeting||null,this.participantsUrl=t.participantsUrl||null,this.replaces=t.replaces||null,this.aclUrl=t.aclUrl||null,this.baseSequence=t.baseSequence||null,this.sequence=t.sequence||null,this.membership=t.membership||null,this.identities=t.identities||null,this.participants=t.participants||null,this.deltaParticipants=[],this.updateParticipants(t.participants),this.updateConversationUrl(t.conversationUrl,t.info),this.updateControls(t.controls),this.updateLocusUrl(t.url),this.updateFullState(t.fullState),this.updateMeetingInfo(t.info),this.updateEmbeddedApps(t.embeddedApps),this.updateSelf(t.self,t.participants),this.updateHostInfo(t.host),this.updateMediaShares(t.mediaShares),this.updateServices(null===(e=t.links)||void 0===e?void 0:e.services)}},{key:"initialSetup",value:function(e){this.onFullLocus(e),this.emitChange=!0}},{key:"parse",value:function(e,t){var r=t.eventType;switch(Ke.logger.info("Locus-info:index#parse --\x3e received locus data: ".concat(r)),r){case jn.PARTICIPANT_JOIN:case jn.PARTICIPANT_LEFT:case jn.CONTROLS_UPDATED:case jn.PARTICIPANT_AUDIO_MUTED:case jn.PARTICIPANT_AUDIO_UNMUTED:case jn.PARTICIPANT_VIDEO_MUTED:case jn.PARTICIPANT_VIDEO_UNMUTED:case jn.SELF_CHANGED:case jn.PARTICIPANT_UPDATED:case jn.PARTICIPANT_CONTROLS_UPDATED:case jn.PARTICIPANT_ROLES_UPDATED:case jn.PARTICIPANT_DECLINED:case jn.FLOOR_GRANTED:case jn.FLOOR_RELEASED:this.onFullLocus(t.locus,r);break;case jn.DIFFERENCE:default:this.handleLocusDelta(t.locus,e)}}},{key:"emitScoped",value:function(e,t,r){return this.emit(e,t,r)}},{key:"onFullLocus",value:function(e,t){e||Ke.logger.error("Locus-info:index#onFullLocus --\x3e object passed as argument was invalid, continuing."),this.updateParticipantDeltas(e.participants),this.scheduledMeeting=e.meeting||null,this.participants=e.participants,this.updateLocusInfo(e),this.updateParticipants(e.participants),this.isMeetingActive(),this.handleOneOnOneEvent(t),this.updateEmbeddedApps(e.embeddedApps),this.locusParser.workingCopy=e}},{key:"handleOneOnOneEvent",value:function(e){this.parsedLocus.fullState.type!==Qt&&this.parsedLocus.fullState.type!==Or||(e===jn.PARTICIPANT_DECLINED&&this.emitScoped({file:"locus-info",function:"handleOneonOneEvent"},xn.REMOTE_RESPONSE,{remoteDeclined:!0,remoteAnswered:!1}),e===jn.PARTICIPANT_JOIN&&this.emitScoped({file:"locus-info",function:"handleOneonOneEvent"},xn.REMOTE_RESPONSE,{remoteDeclined:!1,remoteAnswered:!0}))}},{key:"onDeltaLocus",value:function(e){this.updateLocusInfo(e),this.updateParticipants(e.participants),this.isMeetingActive()}},{key:"updateLocusInfo",value:function(e){var t;this.updateControls(e.controls),this.updateConversationUrl(e.conversationUrl,e.info),this.updateCreated(e.created),this.updateFullState(e.fullState),this.updateHostInfo(e.host),this.updateMeetingInfo(e.info,e.self),this.updateMediaShares(e.mediaShares),this.updateParticipantsUrl(e.participantsUrl),this.updateReplace(e.replace),this.updateSelf(e.self,e.participants),this.updateLocusUrl(e.url),this.updateAclUrl(e.aclUrl),this.updateBasequence(e.baseSequence),this.updateSequence(e.sequence),this.updateMemberShip(e.membership),this.updateIdentifiers(e.identities),this.updateEmbeddedApps(e.embeddedApps),this.updateServices(null===(t=e.links)||void 0===t?void 0:t.services),this.compareAndUpdate()}},{key:"getLocusPartner",value:function(e,t){return e&&0!==e.length?e.find((function(r){return t&&r.identity!==t.identity&&(e.length<=2||r.type===Ur&&!r.removed)}))||this.partner:null}},{key:"isMeetingActive",value:function(){if(this.parsedLocus.fullState.type===Qt||this.parsedLocus.fullState.type===Or){var e=this.getLocusPartner(this.participants,this.self);this.updateMeeting({partner:e}),this.fullState&&this.fullState.state===Dn.STATE.INACTIVE?(Ke.logger.warn("Locus-info:index#isMeetingActive --\x3e Call Ended, locus state is inactive."),Ki.postEvent({event:Ci.REMOTE_ENDED,meetingId:this.meetingId}),this.emitScoped({file:"locus-info",function:"isMeetingActive"},xn.DESTROY_MEETING,{reason:wn.CALL_INACTIVE,shouldLeave:!1})):e.state!==qn.STATES.LEFT||!this.parsedLocus.self||this.parsedLocus.self.state!==qn.STATES.DECLINED&&this.parsedLocus.self.state!==qn.STATES.NOTIFIED&&this.parsedLocus.self.state!==qn.STATES.JOINED?!this.parsedLocus.self||this.parsedLocus.self.state!==qn.STATES.LEFT||e.state!==qn.STATES.LEFT&&e.state!==qn.STATES.DECLINED&&e.state!==qn.STATES.NOTIFIED&&e.state!==qn.STATES.IDLE||(Ki.postEvent({event:Ci.REMOTE_ENDED,meetingId:this.meetingId}),this.emitScoped({file:"locus-info",function:"isMeetingActive"},xn.DESTROY_MEETING,{reason:wn.SELF_LEFT,shouldLeave:!1})):(Ki.postEvent({event:Ci.REMOTE_ENDED,meetingId:this.meetingId}),this.emitScoped({file:"locus-info",function:"isMeetingActive"},xn.DESTROY_MEETING,{reason:wn.PARTNER_LEFT,shouldLeave:this.parsedLocus.self.joinedWith&&this.parsedLocus.self.joinedWith.state!==pr}))}else this.parsedLocus.fullState.type===mr?!this.fullState||this.fullState.state!==Dn.STATE.INACTIVE&&this.fullState.state!==Dn.STATE.TERMINATING?this.fullState&&this.fullState.removed?(Ki.postEvent({event:Ci.REMOTE_ENDED,meetingId:this.meetingId}),this.emitScoped({file:"locus-info",function:"isMeetingActive"},xn.DESTROY_MEETING,{reason:Tn.FULLSTATE_REMOVED,shouldLeave:!1})):this.parsedLocus.self&&this.parsedLocus.self.removed&&this.emitScoped({file:"locus-info",function:"isMeetingActive"},xn.DESTROY_MEETING,{reason:Tn.SELF_REMOVED,shouldLeave:!1}):(Ke.logger.warn("Locus-info:index#isMeetingActive --\x3e Meeting is ending due to inactive or terminating"),Ki.postEvent({event:Ci.REMOTE_ENDED,meetingId:this.meetingId}),this.emitScoped({file:"locus-info",function:"isMeetingActive"},xn.DESTROY_MEETING,{reason:Tn.MEETING_INACTIVE_TERMINATING,shouldLeave:!1})):Ke.logger.warn("Locus-info:index#isMeetingActive --\x3e Meeting Type is unknown.")}},{key:"compareAndUpdate",value:function(){(this.compareAndUpdateFlags.compareSelfAndHost||this.compareAndUpdateFlags.compareHostAndSelf)&&this.compareSelfAndHost()}},{key:"compareSelfAndHost",value:function(){var e;this.parsedLocus.self.selfIdentity===(null===(e=this.parsedLocus.host)||void 0===e?void 0:e.hostId)&&this.parsedLocus.self.moderator?this.emitScoped({file:"locus-info",function:"compareSelfAndHost"},xn.LOCUS_INFO_CAN_ASSIGN_HOST,{canAssignHost:!0}):this.emitScoped({file:"locus-info",function:"compareSelfAndHost"},xn.LOCUS_INFO_CAN_ASSIGN_HOST,{canAssignHost:!1})}},{key:"updateParticipantDeltas",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.deltaParticipants=t.reduce((function(t,r){var n=function(e,t){return t.find((function(t){return t.person.id===e.person.id}))}(r,e.participants||[])||{},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={audioStatus:e.audioStatus!==t.audioStatus,videoSlidesStatus:e.videoSlidesStatus!==t.videoSlidesStatus,videoStatus:e.videoStatus!==t.videoStatus};return x()(r).forEach((function(e){!0!==r[e]&&delete r[e]})),r}(n.status,r.status);return x()(i).length>0&&t.push({person:r.person,delta:i}),t}),[])}},{key:"updateParticipants",value:function(e){var t;this.emitScoped({file:"locus-info",function:"updateParticipants"},xn.LOCUS_INFO_UPDATE_PARTICIPANTS,{participants:e,recordingId:this.parsedLocus.controls&&(null===(t=this.parsedLocus.controls.record)||void 0===t?void 0:t.modifiedBy),selfIdentity:this.parsedLocus.self&&this.parsedLocus.self.selfIdentity,selfId:this.parsedLocus.self&&this.parsedLocus.self.selfId,hostId:this.parsedLocus.host&&this.parsedLocus.host.hostId})}},{key:"updateControls",value:function(e){if(e&&!Xs()(this.controls,e)){this.parsedLocus.controls=Bf.parse(e);var t=Bf.getControls(this.controls,e),r=t.updates,n=r.hasRecordingChanged,i=r.hasRecordingPausedChanged,o=r.hasMeetingContainerChanged,a=r.hasTranscribeChanged,s=r.hasEntryExitToneChanged,c=t.current;if(n||i){var u=null;i?u=c.record.paused?Sn.PAUSED:c.record.recording?Sn.RESUMED:Sn.IDLE:n&&(u=c.record.recording?Sn.RECORDING:Sn.IDLE),this.emitScoped({file:"locus-info",function:"updateControls"},Un.EVENTS.CONTROLS_RECORDING_UPDATED,{state:u,modifiedBy:c.record.modifiedBy,lastModified:c.record.lastModified})}if(o){var l=c.meetingContainer.meetingContainerUrl;this.emitScoped({file:"locus-info",function:"updateControls"},Un.EVENTS.CONTROLS_MEETING_CONTAINER_UPDATED,{meetingContainerUrl:l})}if(a){var d=c.transcribe,f=d.transcribing,p=d.caption;this.emitScoped({file:"locus-info",function:"updateControls"},Un.EVENTS.CONTROLS_MEETING_TRANSCRIBE_UPDATED,{transcribing:f,caption:p})}if(s){var h=c.entryExitTone;this.emitScoped({file:"locus-info",function:"updateControls"},Un.EVENTS.CONTROLS_ENTRY_EXIT_TONE_UPDATED,{entryExitTone:h}),this.updateMeeting({entryExitTone:h})}this.controls=e}}},{key:"updateConversationUrl",value:function(e,t){e&&!Xs()(this.conversationUrl,e)?(this.conversationUrl=e,this.updateMeeting({conversationUrl:e})):t&&t.conversationUrl&&!Xs()(this.conversationUrl,t.conversationUrl)&&(this.conversationUrl=t.conversationUrl,this.updateMeeting({conversationUrl:t.conversationUrl}))}},{key:"updateCreated",value:function(e){e&&!Xs()(this.created,e)&&(this.created=e)}},{key:"updateServices",value:function(e){e&&!Xs()(this.services,e)&&(this.services=e,this.emitScoped({file:"locus-info",function:"updateServices"},Un.EVENTS.LINKS_SERVICES,{services:e}))}},{key:"updateFullState",value:function(e){if(e&&!Xs()(this.fullState,e)){var t=Lf.getFullState(this.fullState,e);this.updateMeeting(t.current),t.updates.meetingStateChangedTo&&this.emitScoped({file:"locus-info",function:"updateFullState"},Un.EVENTS.FULL_STATE_MEETING_STATE_CHANGE,{previousState:t.previous&&t.previous.meetingState,currentState:t.current.meetingState}),t.updates.meetingTypeChangedTo&&this.emitScoped({file:"locus-info",function:"updateFullState"},Un.EVENTS.FULL_STATE_TYPE_UPDATE,{type:t.current.type}),this.parsedLocus.fullState=t.current,this.fullState=e}}},{key:"updateHostInfo",value:function(e){if(e&&!Xs()(this.host,e)){var t=Uf.getHosts(this.host,e);this.updateMeeting(t.current),this.parsedLocus.host=t.current,t.updates.isNewHost&&(this.compareAndUpdateFlags.compareSelfAndHost=!0,this.emitScoped({file:"locus-info",function:"updateHostInfo"},xn.LOCUS_INFO_UPDATE_HOST,{newHost:t.current,oldHost:t.previous})),this.host=e}else this.compareAndUpdateFlags.compareSelfAndHost=!1}},{key:"updateMeetingInfo",value:function(e,t){if(e&&!Xs()(this.info,e)){var r,n=t?Mf.getRoles(t):(null===(r=this.parsedLocus.self)||void 0===r?void 0:r.roles)||[],i=Mf.isJoined(t||this.parsedLocus.self),o=kf.getInfos(this.parsedLocus.info,e,n,i);this.emitScoped({file:"locus-info",function:"updateMeetingInfo"},Un.EVENTS.MEETING_INFO_UPDATED,{info:o.current,self:t}),o.updates.isLocked&&this.emitScoped({file:"locus-info",function:"updateMeetingInfo"},Un.EVENTS.MEETING_LOCKED,e),o.updates.isUnlocked&&this.emitScoped({file:"locus-info",function:"updateMeetingInfo"},Un.EVENTS.MEETING_UNLOCKED,e),this.info=e,this.parsedLocus.info=o.current,this.updateMeeting(o.current)}}},{key:"updateEmbeddedApps",value:function(e){if(!qf.areSimilar(this.embeddedApps,e)){var t=qf.parse(e);this.updateMeeting({embeddedApps:t}),this.emitScoped({file:"locus-info",function:"updateEmbeddedApps"},Un.EVENTS.EMBEDDED_APPS_UPDATED,t),this.embeddedApps=e}}},{key:"updateMediaShares",value:function(e){if(e&&!Xs()(this.mediaShares,e)){var t=Wf.getMediaShares(this.mediaShares,e);this.updateMeeting(t.current),this.emitScoped({file:"locus-info",function:"updateMediaShares"},xn.LOCUS_INFO_UPDATE_MEDIA_SHARES,{current:t.current,previous:t.previous}),this.parsedLocus.mediaShares=t.current,this.mediaShares=e}}},{key:"updateParticipantsUrl",value:function(e){e&&!Xs()(this.participantsUrl,e)&&(this.participantsUrl=e)}},{key:"updateReplace",value:function(e){e&&!Xs()(this.replace,e)&&(this.replace=e)}},{key:"updateSelf",value:function(e,t){if(e&&!Xs()(this.self,e)){var r=Mf.getSelves(this.self,e,this.webex.internal.device.url);this.updateMeeting(r.current),this.parsedLocus.self=r.current,this.parsedLocus.states[this.parsedLocus.states.length-1]!==r.current.state&&this.parsedLocus.states.push(r.current.state);var n,i,o,a=Mf.getSipUrl(this.getLocusPartner(t,e),this.parsedLocus.fullState.type,this.parsedLocus.info.sipUri);if(a.sipUri&&this.updateMeeting(a),r.updates.moderatorChanged?this.compareAndUpdateFlags.compareHostAndSelf=!0:this.compareAndUpdateFlags.compareHostAndSelf=!1,r.updates.layoutChanged&&this.emitScoped({file:"locus-info",function:"updateSelf"},Un.EVENTS.CONTROLS_MEETING_LAYOUT_UPDATED,{layout:r.current.layout}),r.updates.isMediaInactiveOrReleased&&this.emitScoped({file:"locus-info",function:"updateSelf"},Un.EVENTS.DISCONNECT_DUE_TO_INACTIVITY,{reason:e.reason}),r.updates.moderatorChanged&&this.emitScoped({file:"locus-info",function:"updateSelf"},Un.EVENTS.SELF_MODERATOR_CHANGED,e),r.updates.localAudioUnmuteRequiredByServer&&this.emitScoped({file:"locus-info",function:"updateSelf"},Un.EVENTS.LOCAL_UNMUTE_REQUIRED,{muted:r.current.remoteMuted,unmuteAllowed:r.current.unmuteAllowed}),r.updates.isMutedByOthersChanged&&this.emitScoped({file:"locus-info",function:"updateSelf"},Un.EVENTS.SELF_REMOTE_MUTE_STATUS_UPDATED,{muted:r.current.remoteMuted,unmuteAllowed:r.current.unmuteAllowed}),r.updates.localAudioUnmuteRequestedByServer&&this.emitScoped({file:"locus-info",function:"updateSelf"},Un.EVENTS.LOCAL_UNMUTE_REQUESTED,{}),r.updates.isUserUnadmitted&&this.emitScoped({file:"locus-info",function:"updateSelf"},Un.EVENTS.SELF_UNADMITTED_GUEST,e),r.updates.isUserAdmitted&&this.emitScoped({file:"locus-info",function:"updateSelf"},Un.EVENTS.SELF_ADMITTED_GUEST,e),r.updates.isMediaInactive&&this.emitScoped({file:"locus-info",function:"updateSelf"},Un.EVENTS.MEDIA_INACTIVITY,Mf.getMediaStatus(e.mediaSessions)),r.updates.audioStateChange||r.updates.videoStateChange||r.updates.shareStateChange)this.emitScoped({file:"locus-info",function:"updateSelf"},Un.EVENTS.MEDIA_STATUS_CHANGE,{audioStatus:null===(n=r.current.currentMediaStatus)||void 0===n?void 0:n.audio,videoStatus:null===(i=r.current.currentMediaStatus)||void 0===i?void 0:i.video,shareStatus:null===(o=r.current.currentMediaStatus)||void 0===o?void 0:o.share});r.updates.isUserObserving&&this.emitScoped({file:"locus-info",function:"updateSelf"},Un.EVENTS.SELF_OBSERVING),r.updates.canNotViewTheParticipantListChanged&&this.emitScoped({file:"locus-info",function:"updateSelf"},Un.EVENTS.SELF_CANNOT_VIEW_PARTICIPANT_LIST_CHANGE,{canNotViewTheParticipantList:r.current.canNotViewTheParticipantList}),r.updates.isSharingBlockedChanged&&this.emitScoped({file:"locus-info",function:"updateSelf"},Un.EVENTS.SELF_IS_SHARING_BLOCKED_CHANGE,{isSharingBlocked:r.current.isSharingBlocked}),this.emitScoped({file:"locus-info",function:"updateSelf"},xn.LOCUS_INFO_UPDATE_SELF,{oldSelf:r.previous,newSelf:r.current}),this.parsedLocus.self=r.current,this.self=e}else this.compareAndUpdateFlags.compareHostAndSelf=!1}},{key:"updateLocusUrl",value:function(e){e&&this.url!==e&&(this.url=e,this.updateMeeting({locusUrl:e}),this.emitScoped({file:"locus-info",function:"updateLocusUrl"},xn.LOCUS_INFO_UPDATE_URL,e))}},{key:"updateAclUrl",value:function(e){e&&!Xs()(this.aclUrl,e)&&(this.aclUrl=e)}},{key:"updateBasequence",value:function(e){e&&!Xs()(this.baseSequence,e)&&(this.baseSequence=e)}},{key:"updateSequence",value:function(e){e&&!Xs()(this.sequence,e)&&(this.sequence=e)}},{key:"updateMemberShip",value:function(e){e&&!Xs()(this.membership,e)&&(this.membership=e)}},{key:"updateIdentifiers",value:function(e){e&&!Xs()(this.identities,e)&&(this.identities=e)}}]),r}(Od);function lp(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var dp=function(e){(0,m.Z)(r,e);var t=lp(r);function r(){return(0,p.Z)(this,r),t.apply(this,arguments)}return(0,h.Z)(r)}((0,to.Z)(Error));function fp(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var pp=function(e){(0,m.Z)(r,e);var t=fp(r);function r(){return(0,p.Z)(this,r),t.apply(this,arguments)}return(0,h.Z)(r)}((0,to.Z)(Error)),hp=function(e){(0,m.Z)(r,e);var t=fp(r);function r(e){var n,i=e.wasSharing,o=e.error,a=void 0===o?new Error("Meeting needs to be rejoined"):o;return(0,p.Z)(this,r),n=t.call(this,a),(0,E.Z)((0,v.Z)(n),"wasSharing",void 0),n.wasSharing=i,n}return(0,h.Z)(r)}((0,to.Z)(Error)),vp=function(){function e(t){(0,p.Z)(this,e),(0,E.Z)(this,"autoRejoinEnabled",void 0),(0,E.Z)(this,"iceState",void 0),(0,E.Z)(this,"maxRejoinAttempts",void 0),(0,E.Z)(this,"meeting",void 0),(0,E.Z)(this,"rejoinAttempts",void 0),(0,E.Z)(this,"shareStatus",void 0),(0,E.Z)(this,"status",void 0),(0,E.Z)(this,"tryCount",void 0),(0,E.Z)(this,"webex",void 0),this.iceState={disconnected:!1,resolve:function(){},timer:void 0,timeoutDuration:t.config.reconnection.iceReconnectionTimeout},this.status=Kn.STATE.DEFAULT_STATUS,this.tryCount=Kn.STATE.DEFAULT_TRY_COUNT,this.webex=t.webex,this.meeting=t,this.maxRejoinAttempts=t.config.reconnection.maxRejoinAttempts,this.rejoinAttempts=Kn.STATE.DEFAULT_TRY_COUNT,this.autoRejoinEnabled=t.config.reconnection.autoRejoin,this.reset()}var t,r,n,i,o;return(0,h.Z)(e,[{key:"iceReconnected",value:function(){this.iceState.disconnected&&(Ke.logger.log("ReconnectionManager:index#iceReconnected --\x3e ice has reconnected"),this.iceState.resolve(),this.iceState.resolve=function(){},this.iceState.timer&&(clearTimeout(this.iceState.timer),delete this.iceState.timer),this.iceState.disconnected=!1)}},{key:"waitForIceReconnect",value:function(){var e=this;return this.iceState.disconnected?R().resolve():(Ke.logger.log("ReconnectionManager:index#waitForIceReconnect --\x3e waiting for ice reconnect"),this.iceState.disconnected=!0,new(R())((function(t,r){e.iceState.timer=setTimeout((function(){!1===e.iceState.disconnected?t():(e.iceState.disconnected=!1,r(new Error("ice reconnection did not occur in ".concat(e.iceState.timeoutDuration,"ms"))))}),e.iceState.timeoutDuration),e.iceState.resolve=t})))}},{key:"reset",value:function(){this.status=Kn.STATE.DEFAULT_STATUS,this.tryCount=Kn.STATE.DEFAULT_TRY_COUNT,this.rejoinAttempts=Kn.STATE.DEFAULT_TRY_COUNT}},{key:"cleanUp",value:function(){this.reset(),this.meeting=null}},{key:"validate",value:function(){if(this.meeting.config.reconnection.enabled){if(this.status===Kn.STATE.DEFAULT_STATUS||this.status===Kn.STATE.COMPLETE)return!0;throw Ke.logger.info("ReconnectionManager:index#validate --\x3e Reconnection already in progress."),new dp("Reconnection already in progress.")}throw Ke.logger.info("ReconnectionManager:index#validate --\x3e Reconnection is not enabled."),new rs("Reconnection is not enabled.")}},{key:"reconnect",value:(o=(0,f.Z)(_().mark((function e(){var t,r,n,i,o,a=this,s=arguments;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=(t=s.length>0&&void 0!==s[0]?s[0]:{}).networkDisconnect,n=void 0!==r&&r,i=t.networkRetry,o=void 0!==i&&i,Ke.logger.info("ReconnectionManager:index#reconnect --\x3e Reconnection start for meeting ".concat(this.meeting.id,".")),e.prev=2,this.validate(),e.next=10;break;case 6:throw e.prev=6,e.t0=e.catch(2),Ke.logger.info("ReconnectionManager:index#reconnect --\x3e Reconnection unable to begin.",e.t0),e.t0;case 10:return o||(Ke.logger.info("ReconnectionManager:index#reconnect --\x3e Sending reconnect start metric."),Ki.postEvent({event:Ci.MEDIA_RECONNECTING,meeting:this.meeting})),e.abrupt("return",this.executeReconnection({networkDisconnect:n}).then((function(){Ke.logger.info("ReconnectionManager:index#reconnect --\x3e Reconnection successful."),Ke.logger.info("ReconnectionManager:index#reconnect --\x3e Sending reconnect success metric."),Ki.postEvent({event:Ci.MEDIA_RECOVERED,meeting:a.meeting,data:{recoveredBy:Di}})})).catch((function(e){if(e instanceof pp)return Ke.logger.info("ReconnectionManager:index#reconnect --\x3e Reconnection not successful, retrying."),a.status=Kn.STATE.DEFAULT_STATUS,a.reconnect({networkDisconnect:!0,networkRetry:!0});Ke.logger.error("ReconnectionManager:index#reconnect --\x3e Reconnection failed.",e.message),Ke.logger.info("ReconnectionManager:index#reconnect --\x3e Sending reconnect abort metric.");var t={event:Ci.CALL_ABORTED,meeting:a.meeting,data:{errors:[{category:ji.expected,errorCode:2008,fatal:!0,name:Fi.mediaEngine,shownToUser:!1}]}};if(Ki.postEvent(t),e instanceof hp&&a.autoRejoinEnabled)return a.rejoinMeeting(e.wasSharing);throw e})));case 12:case"end":return e.stop()}}),e,this,[[2,6]])}))),function(){return o.apply(this,arguments)})},{key:"executeReconnection",value:(i=(0,f.Z)(_().mark((function e(t){var r,n,i,o;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.networkDisconnect,n=void 0!==r&&r,this.status=Kn.STATE.IN_PROGRESS,Ke.logger.info("ReconnectionManager:index#executeReconnection --\x3e Attempting to reconnect to meeting."),!n){e.next=15;break}return e.prev=4,e.next=7,this.reconnectMercuryWebSocket();case 7:Ke.logger.error("ReconnectionManager:index#executeReconnection --\x3e Websocket reconnected.",this.webex.internal.device.url),e.next=15;break;case 10:throw e.prev=10,e.t0=e.catch(4),Ke.logger.error("ReconnectionManager:index#executeReconnection --\x3e Unable to reconnect to websocket, giving up."),this.status=Kn.STATE.FAILURE,e.t0;case 15:return i=this.meeting.shareStatus===_n.LOCAL_SHARE_ACTIVE,e.prev=16,Ke.logger.info("ReconnectionManager:index#executeReconnection --\x3e Updating meeting data from server."),e.next=20,this.webex.meetings.syncMeetings();case 20:e.next=26;break;case 22:throw e.prev=22,e.t1=e.catch(16),Ke.logger.info("ReconnectionManager:index#executeReconnection --\x3e Unable to sync meetings, reconnecting.",e.t1),new pp(e.t1);case 26:if(this.meeting&&this.webex.meetings.getMeetingByType(ur,this.meeting.id)){e.next=29;break}throw Ke.logger.info("ReconnectionManager:index#executeReconnection --\x3e Meeting got deleted due to inactivity or ended remotely "),new Error("Unable to rejoin a meeting already ended or inactive .");case 29:if(Ke.logger.info("ReconnectionManager:index#executeReconnection --\x3e Current state of meeting is ".concat(this.meeting.state)),this.meeting.state!==pr){e.next=34;break}if(this.meeting.type!==Qt){e.next=33;break}throw new Error("Unable to rejoin a call in LEFT state.");case 33:throw new hp({wasSharing:i});case 34:return e.prev=34,e.next=37,this.reconnectMedia();case 37:return o=e.sent,Ke.logger.log("ReconnectionManager:index#executeReconnection --\x3e Media reestablished"),this.status=Kn.STATE.COMPLETE,e.abrupt("return",o);case 43:throw e.prev=43,e.t2=e.catch(34),Ke.logger.error("ReconnectionManager:index#executeReconnection --\x3e Media reestablishment failed"),this.status=Kn.STATE.FAILURE,e.t2;case 48:case"end":return e.stop()}}),e,this,[[4,10],[16,22],[34,43]])}))),function(e){return i.apply(this,arguments)})},{key:"rejoinMeeting",value:(n=(0,f.Z)(_().mark((function e(){var t,r,n=arguments;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]&&n[0],e.prev=1,Ke.logger.info("ReconnectionManager:index#rejoinMeeting --\x3e attemping meeting rejoin"),r=this.meeting.correlationId,e.next=6,this.meeting.join({rejoin:!0});case 6:Ke.logger.info("ReconnectionManager:index#rejoinMeeting --\x3e meeting rejoined"),sf.deleteSession(r),t&&(ss.stopTracks(this.meeting.mediaProperties.shareTrack),this.meeting.isSharing=!1,this.shareStatus===_n.LOCAL_SHARE_ACTIVE&&(this.meeting.shareStatus=_n.NO_SHARE),this.meeting.mediaProperties.mediaDirection.sendShare=!1,so.trigger(this.meeting,{file:"reconnection-manager/index",function:"rejoinMeeting"},bn.MEETING_STOPPED_SHARING_LOCAL,{reason:In.MEETING_REJOIN})),e.next=23;break;case 11:if(e.prev=11,e.t0=e.catch(1),this.rejoinAttempts+=1,!(this.rejoinAttempts<=this.maxRejoinAttempts)){e.next=19;break}Ke.logger.info("ReconnectionManager:index#rejoinMeeting --\x3e Unable to rejoin meeting, attempt #".concat(this.rejoinAttempts,", retrying."),e.t0),this.rejoinMeeting(),e.next=23;break;case 19:throw Ke.logger.error("ReconnectionManager:index#rejoinMeeting --\x3e Unable to rejoin meeting after max attempts.",e.t0),Ki.sendBehavioralMetric(Lo.MEETING_MAX_REJOIN_FAILURE,{locus_id:this.meeting.locusUrl.split("/").pop(),reason:e.t0.message,stack:e.t0.stack}),this.status=Kn.STATE.FAILURE,e.t0;case 23:return e.prev=23,e.next=26,this.reconnectMedia();case 26:e.next=32;break;case 28:throw e.prev=28,e.t1=e.catch(23),Ke.logger.error("ReconnectionManager:index#rejoinMeeting --\x3e Unable to reestablish media after rejoining.",e.t1),e.t1;case 32:case"end":return e.stop()}}),e,this,[[1,11],[23,28]])}))),function(){return n.apply(this,arguments)})},{key:"reconnectMedia",value:function(){var t=this;return Ke.logger.log("ReconnectionManager:index#reconnectMedia --\x3e Begin reestablishment of media"),e.setupPeerConnection(this.meeting).then((function(){return ss.attachMedia(t.meeting.mediaProperties,{meetingId:t.meeting.id,remoteQualityLevel:t.meeting.mediaProperties.remoteQualityLevel,enableRtx:t.meeting.config.enableRtx,enableExtmap:t.meeting.config.enableExtmap})})).then((function(e){return t.meeting.setRemoteStream(e)})).then((function(){return Ke.logger.log("ReconnectionManager:index#reconnectMedia --\x3e Sending ROAP media request"),t.meeting.roap.sendRoapMediaRequest({sdp:t.meeting.mediaProperties.peerConnection.sdp,roapSeq:t.meeting.roapSeq,meeting:t.meeting,reconnect:!0})}))}},{key:"reconnectMercuryWebSocket",value:(r=(0,f.Z)(_().mark((function e(){return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Ke.logger.info("ReconnectionManager:index#reconnectMercuryWebSocket --\x3e Reconnecting websocket."),!this.webex.internal.mercury.connected){e.next=13;break}return Ke.logger.info("ReconnectionManager:index#reconnectMercuryWebSocket --\x3e Disconnecting existing websocket."),e.prev=3,e.next=6,this.webex.internal.mercury.disconnect();case 6:Ke.logger.info("ReconnectionManager:index#reconnectMercuryWebSocket --\x3e Websocket disconnected successfully."),e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(3),Ke.logger.error("ReconnectionManager:index#reconnectMercuryWebSocket --\x3e Unable to disconnect from websocket, giving up.",e.t0),e.t0;case 13:return e.prev=13,Ke.logger.info("ReconnectionManager:index#reconnectMercuryWebSocket --\x3e Connecting websocket."),e.next=17,this.webex.internal.mercury.connect();case 17:Ke.logger.info("ReconnectionManager:index#reconnectMercuryWebSocket --\x3e Websocket connected successfully."),e.next=24;break;case 20:throw e.prev=20,e.t1=e.catch(13),Ke.logger.error("ReconnectionManager:index#reconnectMercuryWebSocket --\x3e Unable to connect to websocket, giving up.",e.t1),e.t1;case 24:case"end":return e.stop()}}),e,this,[[3,9],[13,20]])}))),function(){return r.apply(this,arguments)})}],[{key:"setupPeerConnection",value:(t=(0,f.Z)(_().mark((function e(t){var r;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Ke.logger.log("ReconnectionManager:index#setupPeerConnection --\x3e Begin resetting peer connection"),es.close(t.mediaProperties.peerConnection),t.mediaProperties.unsetPeerConnection(),e.next=5,t.roap.doTurnDiscovery(t,!0);case 5:r=e.sent,t.mediaProperties.reInitiatePeerconnection(r.turnServerInfo),es.setPeerConnectionEvents(t),t.statsAnalyzer.updatePeerconnection(t.mediaProperties.peerConnection);case 9:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}(),mp=r(23279),gp=r.n(mp);function yp(e,t){var r=x()(e);if(fo()){var n=fo()(e);t&&(n=n.filter((function(t){return ho()(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ep(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var Sp=function(e){(0,m.Z)(n,e);var t,r=Ep(n);function n(e,t){var i;return(0,p.Z)(this,n),i=r.call(this,e,t),(0,E.Z)((0,v.Z)(i),"changeVideoLayoutDebounced",void 0),i.changeVideoLayoutDebounced=gp()(i.changeVideoLayout,2e3,{leading:!0,trailing:!0}),i}return(0,h.Z)(n,[{key:"joinMeeting",value:(t=(0,f.Z)(_().mark((function e(t){var r,n,i,o,a,s,c,u,l,d,f,p,h,v,m,g;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.asResourceOccupant,n=t.inviteeAddress,i=t.meetingNumber,o=t.permissionToken,a=t.deviceUrl,s=t.locusUrl,c=t.resourceId,u=t.correlationId,l=t.ensureConversation,d=t.moderator,f=t.pin,p=t.moveToResource,h=t.roapMessage,v=t.preferTranscoding,Ke.logger.info("Meeting:request#joinMeeting --\x3e Joining a meeting",u),m="",g={asResourceOccupant:r,device:{url:a,deviceType:this.config.meetings.deviceType},usingResource:c||null,moveMediaToResource:c&&p||!1,correlationId:u,respOnlySdp:!0,allowMultiDevice:!0,ensureConversation:l||!1,supportsNativeLobby:1,clientMediaPreferences:{preferTranscoding:null==v||v}},this.webex.meetings.clientRegion&&(g.device.countryCode=this.webex.meetings.clientRegion.countryCode,g.device.regionCode=this.webex.meetings.clientRegion.regionCode),void 0!==d&&(g.moderator=d),o&&(g.permissionToken=o),void 0!==f&&(g.pin=f),!s){e.next=12;break}m="".concat(s,"/").concat(Ut),e.next=24;break;case 12:if(!n&&!i){e.next=24;break}return e.prev=13,e.next=16,this.webex.internal.services.waitForCatalog("postauth");case 16:m="".concat(this.webex.internal.services.get("locus"),"/").concat(xt,"/").concat(it),g.invitee={address:n||"wbxmn:".concat(i)},e.next=24;break;case 20:throw e.prev=20,e.t0=e.catch(13),Ke.logger.error("Meeting:request#joinMeeting Error Joining ".concat(n||i," --\x3e ").concat(e.t0)),e.t0;case 24:return m=m.concat("?".concat(Gr)),c===n&&(g.callPreferences={requestedMedia:[Mr]}),h&&(g.localMedias=h.localMedias),e.abrupt("return",this.request({method:Nn.POST,uri:m,body:g}));case 28:case"end":return e.stop()}}),e,this,[[13,20]])}))),function(e){return t.apply(this,arguments)})},{key:"refreshCaptcha",value:function(e){var t=e.captchaRefreshUrl,r={captchaId:e.captchaId};return this.request({method:Nn.POST,uri:t,body:r}).catch((function(e){throw Ke.logger.error("Meeting:request#refreshCaptcha --\x3e Error: ".concat(e)),e}))}},{key:"dialIn",value:function(e){var t=e.locusUrl,r=e.dialInUrl,n=e.clientUrl,i=e.correlationId;Ke.logger.info("Meeting:request#dialIn --\x3e Provisioning a dial in device",i);var o="".concat(t,"/").concat(Ut),a={device:{deviceType:Qe.deviceType.PROVISIONAL,provisionalType:jt,url:r,clientUrl:n},correlationId:i};return this.request({method:Nn.POST,uri:o,body:a}).catch((function(e){throw Ke.logger.error("Meeting:request#dialIn --\x3e Error provisioning a dial in device, error ".concat(e)),e}))}},{key:"dialOut",value:function(e){var t=e.locusUrl,r=e.dialOutUrl,n=e.phoneNumber,i=e.clientUrl,o=e.correlationId;Ke.logger.info("Meeting:request#dialOut --\x3e Provisioning a dial out device",o);var a="".concat(t,"/").concat(Ut),s={device:{deviceType:Qe.deviceType.PROVISIONAL,provisionalType:Ft,url:r,dialoutAddress:n,clientUrl:i},correlationId:o};return this.request({method:Nn.POST,uri:a,body:s}).catch((function(e){throw Ke.logger.error("Meeting:request#dialOut --\x3e Error provisioning a dial out device, error ".concat(e)),e}))}},{key:"syncMeeting",value:function(e){var t=e.desync,r=e.syncUrl;return t&&(r=r.concat(r.split("?")[1]?"&":"?").concat("".concat(Dn.SYNCDEBUG,"=").concat(t))),this.request({method:Nn.GET,uri:r}).catch((function(e){return Ke.logger.error("Meeting:request#syncMeeting --\x3e Error syncing meeting, error ".concat(e)),e}))}},{key:"getFullLocus",value:function(e){var t=e.locusUrl,r=e.desync;return t?(r&&(t+="?".concat(Dn.SYNCDEBUG,"=").concat(r)),this.request({method:Nn.GET,uri:t}).catch((function(e){return Ke.logger.error("Meeting:request#getFullLocus --\x3e Error getting full locus, error ".concat(e)),e}))):R().reject()}},{key:"disconnectPhoneAudio",value:function(e){var t=e.locusUrl,r=e.phoneUrl,n=e.correlationId,i=e.selfId;Ke.logger.info("Meeting:request#disconnectPhoneAudio --\x3e request phone ".concat(r," to leave"),n);var o="".concat(t,"/").concat(Ut,"/").concat(i,"/").concat(Tt),a={device:{deviceType:Qe.deviceType.PROVISIONAL,url:r},correlationId:n};return this.request({method:Nn.PUT,uri:o,body:a}).catch((function(e){throw Ke.logger.error("Meeting:request#disconnectPhoneAudio --\x3e Error when requesting phone ".concat(r," to leave, error ").concat(e)),e}))}},{key:"leaveMeeting",value:function(e){var t=e.locusUrl,r=e.selfId,n=e.deviceUrl,i=e.resourceId,o=e.correlationId;Ke.logger.info("Meeting:request#leaveMeeting --\x3e Leaving a meeting",o);var a="".concat(t,"/").concat(Ut,"/").concat(r,"/").concat(Tt),s={device:{deviceType:this.config.meetings.deviceType,url:n},usingResource:i||null,correlationId:o};return this.request({method:Nn.PUT,uri:a,body:s})}},{key:"acknowledgeMeeting",value:function(e){var t="".concat(e.locusUrl,"/").concat(Ut,"/").concat(rt),r={device:{deviceType:this.config.meetings.deviceType,url:e.deviceUrl},correlationId:e.correlationId};return this.request({method:Nn.PUT,uri:t,body:r})}},{key:"lockMeeting",value:function(e){var t="".concat(e.locusUrl,"/").concat(dt),r={lock:{locked:e.lock}};return this.request({method:Nn.PATCH,uri:t,body:r})}},{key:"declineMeeting",value:function(e){var t="".concat(e.locusUrl,"/").concat(Ut,"/").concat(gt),r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yp(Object(r),!0).forEach((function(t){(0,E.Z)(e,t,r[t])})):mo()?yo()(e,mo()(r)):yp(Object(r)).forEach((function(t){So()(e,t,ho()(r,t))}))}return e}({device:{deviceType:this.config.meetings.deviceType,url:e.deviceUrl}},e.reason&&{reason:e.reason});return this.request({method:Nn.PUT,uri:t,body:r})}},{key:"remoteAudioVideoToggle",value:function(e){var t,r="".concat(e.locusUrl,"/").concat(Ut,"/").concat(e.selfId,"/").concat(Pt),n={device:{deviceType:this.config.meetings.deviceType,url:e.deviceUrl},usingResource:e.resourceId||null,correlationId:e.correlationId,respOnlySdp:!0,localMedias:e.localMedias,clientMediaPreferences:{preferTranscoding:null===(t=e.preferTranscoding)||void 0===t||t}};return this.request({method:Nn.PUT,uri:r,body:n})}},{key:"changeMeetingFloor",value:function(e){var t={disposition:e.disposition};e.disposition===On.GRANTED&&(t={beneficiary:{url:e.personUrl,devices:[{deviceType:this.config.meetings.deviceType,url:e.deviceUrl}]},disposition:e.disposition,requester:{url:e.personUrl}});var r={floor:t,resourceUrl:e.resourceUrl};return null!=e&&e.resourceToken&&(r.resourceToken=null==e?void 0:e.resourceToken),this.request({uri:e.uri,method:Nn.PUT,body:r})}},{key:"sendDTMF",value:function(e){var t=e.locusUrl,r=e.deviceUrl,n=e.tones;return this.request({method:Nn.POST,uri:"".concat(t,"/").concat(Vt),body:{deviceUrl:r,dtmf:{correlationId:Be().v4(),tones:n}}})}},{key:"changeVideoLayout",value:function(e){var t=e.locusUrl,r=e.deviceUrl,n=e.layoutType,i=e.main,o=e.content;if(i&&(!i.width||!i.height))return R().reject(new Error("Both width and height must be specified. One of them is missing for main: ".concat(uo()(i))));if(o&&(!o.width||!o.height))return R().reject(new Error("Both width and height must be specified. One of them is missing for content: ".concat(uo()(o))));var a=i?{width:i.width,height:i.height}:void 0,s=o?{width:o.width,height:o.height}:void 0,c=a||s?{renderInfo:{main:a,content:s}}:void 0;return this.request({method:Nn.PUT,uri:"".concat(t,"/").concat(dt),body:{layout:{deviceUrl:r,type:n,layoutParams:c}}})}},{key:"endMeetingForAll",value:function(e){var t=e.locusUrl,r="".concat(t,"/").concat(Ct);return this.request({method:Nn.POST,uri:r})}},{key:"keepAlive",value:function(e){var t=e.keepAliveUrl;return this.request({method:Nn.GET,uri:t})}},{key:"sendReaction",value:function(e){var t=e.reactionChannelUrl,r=e.reaction,n=e.participantId,i=t;return this.request({method:Nn.POST,uri:i,body:{sender:{participantId:n},reaction:r}})}}]),n}(u.XR),_p={isUser:function(e){return e&&e.type===Ur},isModerator:function(e){return e&&e.moderator},isGuest:function(e){return e&&e.guest},isDevice:function(e){return e&&e.type===Ir},isModeratorAssignmentProhibited:function(e){return e&&e.moderatorAssignmentNotAllowed},isSame:function(e,t){return e&&(e.id===t||e.person&&e.person.id===t)},isAssociatedSame:function(e,t){return e&&e.associatedUsers&&e.associatedUsers.some((function(e){return e.id===t||e.person&&e.person.id===t}))},isNotAdmitted:function(e,t,r){return e&&e.guest&&(e.devices&&e.devices[0]&&e.devices[0].intent&&e.devices[0].intent.type===Br&&t&&r===or||!r===ar)},isAudioMuted:function(e){if(!e)throw new no("Audio could not be processed, participant is undefined.");var t=_p.isMuted(e.status,tt);if(e.controls&&e.controls.audio){if(e.controls.audio.muted)return!0;if(t)return!0}return!1},isVideoMuted:function(e){if(!e)throw new no("Video could not be processed, participant is undefined.");return _p.isMuted(e.status,Kt)},isHandRaised:function(e){var t,r;if(!e)throw new no("Raise hand could not be processed, participant is undefined.");return(null===(t=e.controls)||void 0===t||null===(r=t.hand)||void 0===r?void 0:r.raised)||!1},isMuted:function(e,t){if(e){if(e[t]===xr)return!0;if(e[t]===Nr)return!1}return null},getRecordingMember:function(e){return e&&e.record&&e.record.recording&&e.record.meta?e.record.meta.modifiedBy:null},isRecording:function(e){if(!e)throw new no("Recording could not be processed, participant is undefined.");return!(!e.controls||!e.controls.localRecord)&&e.controls.localRecord.recording},isRemovable:function(e,t,r,n){return!t&&!e&&(n!==Qt&&!!r)},isMutable:function(e,t,r,n,i){return!!r&&(!n&&(i!==Qt&&!(!e&&!t)))},extractStatus:function(e){return e&&e.devices&&e.devices.length?e.state===dr?ar:e.state===ir?e.devices&&e.devices.length>0&&e.devices.find((function(e){return e.intent&&(e.intent.type===Br||e.intent.type===br)}))?or:Er:(e.state,Er):Er},extractId:function(e){return e?e.id:null},extractName:function(e){return e&&e.person?e.person.name:null}};const bp=_p;var Rp=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,p.Z)(this,e),(0,E.Z)(this,"associatedUser",void 0),(0,E.Z)(this,"id",void 0),(0,E.Z)(this,"isAudioMuted",void 0),(0,E.Z)(this,"isContentSharing",void 0),(0,E.Z)(this,"isDevice",void 0),(0,E.Z)(this,"isGuest",void 0),(0,E.Z)(this,"isHandRaised",void 0),(0,E.Z)(this,"isHost",void 0),(0,E.Z)(this,"isInLobby",void 0),(0,E.Z)(this,"isInMeeting",void 0),(0,E.Z)(this,"isModerator",void 0),(0,E.Z)(this,"isModeratorAssignmentProhibited",void 0),(0,E.Z)(this,"isMutable",void 0),(0,E.Z)(this,"isNotAdmitted",void 0),(0,E.Z)(this,"isRecording",void 0),(0,E.Z)(this,"isRemovable",void 0),(0,E.Z)(this,"isSelf",void 0),(0,E.Z)(this,"isUser",void 0),(0,E.Z)(this,"isVideoMuted",void 0),(0,E.Z)(this,"name",void 0),(0,E.Z)(this,"participant",void 0),(0,E.Z)(this,"status",void 0),(0,E.Z)(this,"type",void 0),(0,E.Z)(this,"namespace",Hr),this.participant=null,this.id=null,this.name=null,this.isAudioMuted=null,this.isVideoMuted=null,this.isHandRaised=null,this.isSelf=null,this.isHost=null,this.isGuest=null,this.isInLobby=null,this.isInMeeting=null,this.isNotAdmitted=null,this.isContentSharing=null,this.status=null,this.isDevice=null,this.isUser=null,this.associatedUser=null,this.isRecording=null,this.isMutable=null,this.isRemovable=null,this.type=null,this.isModerator=null,this.isModeratorAssignmentProhibited=null,this.processParticipant(t),this.processParticipantOptions(t,r),this.processMember()}return(0,h.Z)(e,[{key:"processParticipant",value:function(e){this.participant=e,e&&(this.id=bp.extractId(e),this.name=bp.extractName(e),this.isAudioMuted=bp.isAudioMuted(e),this.isVideoMuted=bp.isVideoMuted(e),this.isHandRaised=bp.isHandRaised(e),this.isGuest=bp.isGuest(e),this.isUser=bp.isUser(e),this.isDevice=bp.isDevice(e),this.isModerator=bp.isModerator(e),this.isModeratorAssignmentProhibited=bp.isModeratorAssignmentProhibited(e),this.processStatus(e),this.isNotAdmitted=bp.isNotAdmitted(e,this.isGuest,this.status))}},{key:"processParticipantOptions",value:function(e,t){e&&t&&(this.processIsSelf(e,t.selfId),this.processIsHost(e,t.hostId),this.processIsContentSharing(e,t.contentSharingId),this.processType(t.type),this.processIsRecording(e,t.recordingId))}},{key:"processMember",value:function(){this.isRemovable=bp.isRemovable(this.isSelf,this.isGuest,this.isInMeeting,this.type),this.isMutable=bp.isMutable(this.isSelf,this.isDevice,this.isInMeeting,this.isAudioMuted,this.type)}},{key:"processStatus",value:function(e){switch(this.status=bp.extractStatus(e),this.status){case or:this.isInLobby=!0,this.isInMeeting=!1;break;case ar:this.isInLobby=!1,this.isInMeeting=!0;break;default:this.isInLobby=!1,this.isInMeeting=!1}}},{key:"setIsContentSharing",value:function(e){this.isContentSharing=e}},{key:"setIsHost",value:function(e){this.isHost=e}},{key:"setIsSelf",value:function(e){this.isSelf=e}},{key:"processIsContentSharing",value:function(e,t){bp.isUser(e)?this.isContentSharing=bp.isSame(e,t):bp.isDevice(e)&&(this.isContentSharing=bp.isAssociatedSame(e,t))}},{key:"processIsRecording",value:function(e,t){this.isRecording=bp.isSame(e,t)}},{key:"processIsSelf",value:function(e,t){bp.isUser(e)?this.isSelf=bp.isSame(e,t):bp.isDevice(e)&&(this.isSelf=bp.isAssociatedSame(e,t),this.associatedUser=t)}},{key:"processIsHost",value:function(e,t){bp.isUser(e)?this.isHost=bp.isSame(e,t):bp.isDevice(e)&&(this.isHost=bp.isAssociatedSame(e,t))}},{key:"processType",value:function(e){this.type=e}}]),e}(),Tp=function(){function e(){(0,p.Z)(this,e),(0,E.Z)(this,"members",void 0),(0,E.Z)(this,"namespace",Hr),this.members={}}return(0,h.Z)(e,[{key:"set",value:function(e,t){this.members[e]=t}},{key:"setAll",value:function(e){this.members=e}},{key:"get",value:function(e){return this.members[e]}},{key:"getAll",value:function(){return this.members}}]),e}(),wp={generateAddMemberOptions:function(e,t,r){return{invitee:e,locusUrl:t,alertIfActive:r}},generateAdmitMemberOptions:function(e,t){return{locusUrl:t,memberIds:e}},getAddMemberBody:function(e){return{invitees:[{address:e.invitee.emailAddress||e.invitee.email||e.invitee.phoneNumber}],alertIfActive:e.alertIfActive}},getAdmitMemberRequestBody:function(e){return{admit:{participantIds:e.memberIds}}},getAdmitMemberRequestParams:function(e){var t=wp.getAdmitMemberRequestBody(e),r="".concat(e.locusUrl,"/").concat(dt);return{method:Nn.PUT,uri:r,body:t}},getAddMemberRequestParams:function(e){var t=wp.getAddMemberBody(e);return{method:Nn.PUT,uri:e.locusUrl,body:t}},isInvalidInvitee:function(e){return!e||!(e.email||e.emailAddress||e.phoneNumber)||(e.phoneNumber?!ln.E164_FORMAT.test(e.phoneNumber):!fn.test(e.email||e.emailAddress))},getRemoveMemberRequestParams:function(e){var t={reason:e.reason},r="".concat(e.locusUrl,"/").concat(Ut,"/").concat(e.memberId,"/").concat(Tt);return{method:Nn.PUT,uri:r,body:t}},generateTransferHostMemberOptions:function(e,t,r){return{moderator:t,locusUrl:r,memberId:e}},generateRemoveMemberOptions:function(e,t){return{reason:nr,memberId:e,locusUrl:t}},generateMuteMemberOptions:function(e,t,r){return{memberId:e,muted:t,locusUrl:r}},generateRaiseHandMemberOptions:function(e,t,r){return{memberId:e,raised:t,locusUrl:r}},generateLowerAllHandsMemberOptions:function(e,t){return{requestingParticipantId:e,locusUrl:t}},getMuteMemberRequestParams:function(e){var t={audio:{muted:e.muted}},r="".concat(e.locusUrl,"/").concat(Ut,"/").concat(e.memberId,"/").concat(dt);return{method:Nn.PATCH,uri:r,body:t}},getRaiseHandMemberRequestParams:function(e){var t={hand:{raised:e.raised}},r="".concat(e.locusUrl,"/").concat(Ut,"/").concat(e.memberId,"/").concat(dt);return{method:Nn.PATCH,uri:r,body:t}},getLowerAllHandsMemberRequestParams:function(e){var t={hand:{raised:!1},requestingParticipantId:e.requestingParticipantId},r="".concat(e.locusUrl,"/").concat(dt);return{method:Nn.PATCH,uri:r,body:t}},getTransferHostToMemberRequestParams:function(e){var t={role:{moderator:e.moderator}},r="".concat(e.locusUrl,"/").concat(Ut,"/").concat(e.memberId,"/").concat(dt);return{method:Nn.PATCH,uri:r,body:t}},genderateSendDTMFOptions:function(e,t,r,n){return{url:e,tones:t,memberId:r,locusUrl:n}},generateSendDTMFRequestParams:function(e){var t=e.url,r=e.tones,n=e.memberId,i=e.locusUrl,o={device:{url:t},memberId:n,dtmf:{correlationId:Be().v4(),tones:r,direction:"transmit"}},a="".concat(i,"/").concat(Ut,"/").concat(n,"/").concat(Vt);return{method:Nn.POST,uri:a,body:o}},cancelPhoneInviteOptions:function(e,t){return{invitee:e,locusUrl:t}},generateCancelInviteRequestParams:function(e){var t={actionType:Ar,invitees:[{address:e.invitee.phoneNumber}]};return{method:Nn.PUT,uri:e.locusUrl,body:t}}};const Ip=wp;function xp(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var Ap=function(e){(0,m.Z)(r,e);var t=xp(r);function r(){var e;(0,p.Z)(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,E.Z)((0,v.Z)(e),"namespace",Hr),e}return(0,h.Z)(r,[{key:"addMembers",value:function(e){if(e&&e.invitee&&e.invitee.emailAddress&&e.invitee.email&&e.invitee.phoneNumber&&e.locusUrl)throw new no("invitee must be passed and the associated locus url for this meeting object must be defined.");var t=Ip.getAddMemberRequestParams(e);return this.request(t)}},{key:"admitMember",value:function(e){if(!e||!e.locusUrl||!e.memberIds)throw new no("memberIds must be an array passed and the associated locus url for this meeting object must be defined.");var t=Ip.getAdmitMemberRequestParams(e);return this.request(t)}},{key:"removeMember",value:function(e){if(!e||!e.locusUrl||!e.memberId)throw new no("memberId must be defined, and the associated locus url for this meeting object must be defined.");var t=Ip.getRemoveMemberRequestParams(e);return this.request(t)}},{key:"muteMember",value:function(e){if(!e||!e.locusUrl||!e.memberId)throw new no("memberId must be defined, and the associated locus url for this meeting object must be defined.");var t=Ip.getMuteMemberRequestParams(e);return this.request(t)}},{key:"raiseOrLowerHandMember",value:function(e){if(!e||!e.locusUrl||!e.memberId)throw new no("memberId must be defined, and the associated locus url for this meeting object must be defined.");var t=Ip.getRaiseHandMemberRequestParams(e);return this.request(t)}},{key:"lowerAllHandsMember",value:function(e){if(!e||!e.locusUrl||!e.requestingParticipantId)throw new no("requestingParticipantId must be defined, and the associated locus url for this meeting object must be defined.");var t=Ip.getLowerAllHandsMemberRequestParams(e);return this.request(t)}},{key:"transferHostToMember",value:function(e){if(!(e&&e.locusUrl&&e.memberId&&e.moderator))throw new no("memberId must be defined, the associated locus url, and the moderator for this meeting object must be defined.");var t=Ip.getTransferHostToMemberRequestParams(e);return this.request(t)}},{key:"sendDialPadKey",value:function(e){if(!e||!e.locusUrl||!e.memberId||!e.url||!e.tones&&0!==e.tones)throw new no("memberId must be defined, the associated locus url, the device url and DTMF tones for this meeting object must be defined.");var t=Ip.generateSendDTMFRequestParams(e);return this.request(t)}},{key:"cancelPhoneInvite",value:function(e){var t;if(!(null!=e&&null!==(t=e.invitee)&&void 0!==t&&t.phoneNumber||null!=e&&e.locusUrl))throw new no("invitee must be passed and the associated locus url for this meeting object must be defined.");var r=Ip.generateCancelInviteRequestParams(e);return this.request(r)}}]),r}(u.XR);function Cp(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var Op,kp=function(e){(0,m.Z)(r,e);var t=Cp(r);function r(e,n){var i;return(0,p.Z)(this,r),i=t.call(this,{},n),(0,E.Z)((0,v.Z)(i),"hostId",void 0),(0,E.Z)((0,v.Z)(i),"locusUrl",void 0),(0,E.Z)((0,v.Z)(i),"mediaShareContentId",void 0),(0,E.Z)((0,v.Z)(i),"mediaShareWhiteboardId",void 0),(0,E.Z)((0,v.Z)(i),"membersCollection",void 0),(0,E.Z)((0,v.Z)(i),"membersRequest",void 0),(0,E.Z)((0,v.Z)(i),"recordingId",void 0),(0,E.Z)((0,v.Z)(i),"selfId",void 0),(0,E.Z)((0,v.Z)(i),"type",void 0),(0,E.Z)((0,v.Z)(i),"namespace",Hr),i.membersRequest=new Ap({},n),i.membersCollection=new Tp,i.locusUrl=e.locusUrl||null,i.hostId=null,i.type=null,i.selfId=null,i.mediaShareContentId=null,i.mediaShareWhiteboardId=null,i.recordingId=null,i}return(0,h.Z)(r,[{key:"locusSelfUpdate",value:function(e){var t=null,r=null;if(e&&(e.newSelf&&(t=e.newSelf.id),e.oldSelf&&(r=e.oldSelf.id)),t){var n=this.membersCollection.get(t);n&&n.setIsSelf(!0)}if(r){var i=this.membersCollection.get(r);i&&i.setIsSelf(!1)}this.selfId=t,so.trigger(this,{file:"members",function:"locusSelfUpdate"},bn.MEMBERS_SELF_UPDATE,{activeSelfId:t,endedSelfId:r})}},{key:"locusHostUpdate",value:function(e){var t=null,r=null;if(e&&(e.newHost&&(t=e.newHost.id),e.oldHost&&(r=e.oldHost.id)),t){var n=this.membersCollection.get(t);n&&n.setIsHost(!0)}if(r){var i=this.membersCollection.get(r);i&&i.setIsHost(!1)}this.hostId=t,so.trigger(this,{file:"members",function:"locusHostUpdate"},bn.MEMBERS_HOST_UPDATE,{activeHostId:t,endedHostId:r})}},{key:"locusParticipantsUpdate",value:function(e){if(e){var t=this.handleLocusInfoUpdatedParticipants(e),r=this.handleMembersUpdate(t);so.trigger(this,{file:"members",function:"locusParticipantsUpdate"},bn.MEMBERS_UPDATE,{delta:t,full:r})}}},{key:"locusMediaSharesUpdate",value:function(e){var t,r,n,i,o=null===(t=e.current)||void 0===t?void 0:t.content,a=null===(r=e.previous)||void 0===r?void 0:r.content,s=null===(n=e.current)||void 0===n?void 0:n.whiteboard,c=null===(i=e.previous)||void 0===i?void 0:i.whiteboard,u=null,l=null;if(null!=o&&o.beneficiaryId&&(o.disposition===On.GRANTED&&(u=o.beneficiaryId,this.mediaShareWhiteboardId=null,this.mediaShareContentId=u),(null==a?void 0:a.disposition)===On.GRANTED&&(o.disposition===On.RELEASED?(l=o.beneficiaryId,this.mediaShareContentId=null):o.disposition===On.GRANTED&&o.beneficiaryId!==a.beneficiaryId&&(l=a.beneficiaryId))),null!=s&&s.beneficiaryId&&(s.disposition===On.GRANTED&&(u=s.beneficiaryId,this.mediaShareContentId=null,this.mediaShareWhiteboardId=u),(null==c?void 0:c.disposition)===On.GRANTED&&(s.disposition===On.RELEASED?(l=s.beneficiaryId,this.mediaShareWhiteboardId=null):s.disposition===On.GRANTED&&s.beneficiaryId!==c.beneficiaryId&&(l=c.beneficiaryId))),u){var d=this.membersCollection.get(u);d&&d.setIsContentSharing(!0)}if(l){var f=this.membersCollection.get(l);f&&f.setIsContentSharing(!1)}so.trigger(this,{file:"members",function:"locusMediaSharesUpdate"},bn.MEMBERS_CONTENT_UPDATE,{activeSharingId:u,endedSharingId:l})}},{key:"locusUrlUpdate",value:function(e){e&&this.setLocusUrl(null,e)}},{key:"locusFullStateTypeUpdate",value:function(e){e&&this.setType(e)}},{key:"handleMembersUpdate",value:function(e){return e&&(e.updated&&this.constructMembers(e.updated),e.added&&this.constructMembers(e.added)),this.membersCollection.getAll()}},{key:"constructMembers",value:function(e){var t=this;e.forEach((function(e){t.membersCollection.set(e.id,e)}))}},{key:"handleLocusInfoUpdatedParticipants",value:function(e){return this.hostId=e.hostId||this.hostId,this.selfId=e.selfId||this.selfId,this.recordingId=e.recordingId,e.participants||Ke.logger.warn("Members:index#handleLocusInfoUpdatedParticipants --\x3e participants payload is missing."),this.update(e.participants)}},{key:"setLocusUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)this.locusUrl=t;else{if(!e||!e.locusUrl&&!e.url)throw new no("Setting locusUrl for the Members module should be done with a locus object or locusUrl");this.locusUrl=e.locusUrl||e.url}}},{key:"setHostId",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)this.hostId=t;else{if(!e)throw new no("Setting hostid for the Members module should be done with a locus object or hostId");this.hostId=e&&e.owner&&e.owner.info?e.owner.info:null}}},{key:"setType",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)this.type=t;else{if(!e)throw new no("Setting type for the Members module should be done with a fullstate object or type string");this.type=e&&e.type||null}}},{key:"setSelfId",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)this.selfId=t;else{if(!e)throw new no("Setting selfid for the Members module should be done with a locus object or selfId");this.selfId=e&&e.self&&e.self.person&&e.self.person.id?e.self.person.id:null}}},{key:"setMediaShareContentId",value:function(e,t){if(t)this.mediaShareContentId=t;else{if(!e)throw new no("Setting hostid for the Members module should be done with a locus object or hostId");var r=e.mediaShares&&e.mediaShares.length&&e.mediaShares.find((function(e){return e.name===ft}));this.mediaShareContentId=r&&r.floor&&r.floor.beneficiary&&r.floor.beneficiary.id||null}}},{key:"setMediaShareWhiteboardId",value:function(e,t){if(t)this.mediaShareWhiteboardId=t;else{if(!e)throw new no("Setting hostid for the Members module should be done with a locus object or hostId");var r=e.mediaShares&&e.mediaShares.length&&e.mediaShares.find((function(e){return e.name===ht}));this.mediaShareWhiteboardId=r&&r.floor&&r.floor.beneficiary&&r.floor.beneficiary.id||null}}},{key:"update",value:function(e){var t=this,r={added:[],updated:[]};return e&&e.forEach((function(e){e.hideInRoster||(t.membersCollection.get(e.id)?r.updated.push(new Rp(e,{recordingId:t.recordingId,selfId:t.selfId,hostId:t.hostId,contentSharingId:t.mediaShareContentId,whiteboardSharingId:t.mediaShareWhiteboardId,type:t.type})):r.added.push(new Rp(e,{recordingId:t.recordingId,selfId:t.selfId,hostId:t.hostId,contentSharingId:t.mediaShareContentId,whiteboardSharingId:t.mediaShareWhiteboardId,type:t.type})))})),r}},{key:"addMember",value:function(e,t){if(!this.locusUrl)return R().reject(new no("The associated locus url for this meeting object must be defined."));if(Ip.isInvalidInvitee(e))return R().reject(new no("The invitee must be defined with either a valid email, emailAddress or phoneNumber property."));var r=Ip.generateAddMemberOptions(e,this.locusUrl,t);return this.membersRequest.addMembers(r)}},{key:"cancelPhoneInvite",value:function(e){if(!this.locusUrl)return R().reject(new no("The associated locus url for this meeting object must be defined."));if(Ip.isInvalidInvitee(e))return R().reject(new no("The invitee must be defined with a valid phoneNumber property."));var t=Ip.cancelPhoneInviteOptions(e,this.locusUrl);return this.membersRequest.cancelPhoneInvite(t)}},{key:"admitMembers",value:function(e){if(ls()(e))return R().reject(new no("No member ids provided to admit."));var t=Ip.generateAdmitMemberOptions(e,this.locusUrl);return this.membersRequest.admitMember(t)}},{key:"removeMember",value:function(e){if(!this.locusUrl)return R().reject(new no("The associated locus url for this meeting object must be defined."));if(!e)return R().reject(new no("The member id must be defined to remove the member."));var t=Ip.generateRemoveMemberOptions(e,this.locusUrl);return this.membersRequest.removeMember(t)}},{key:"muteMember",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!this.locusUrl)return R().reject(new no("The associated locus url for this meetings members object must be defined."));if(!e)return R().reject(new no("The member id must be defined to mute the member."));var r=Ip.generateMuteMemberOptions(e,t,this.locusUrl);return this.membersRequest.muteMember(r)}},{key:"raiseOrLowerHand",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!this.locusUrl)return R().reject(new no("The associated locus url for this meetings members object must be defined."));if(!e)return R().reject(new no("The member id must be defined to raise/lower the hand of the member."));var r=Ip.generateRaiseHandMemberOptions(e,t,this.locusUrl);return this.membersRequest.raiseOrLowerHandMember(r)}},{key:"lowerAllHands",value:function(e){if(!this.locusUrl)return R().reject(new no("The associated locus url for this meetings members object must be defined."));if(!e)return R().reject(new no("The requestingMemberId must be defined to lower all hands in a meeting."));var t=Ip.generateLowerAllHandsMemberOptions(e,this.locusUrl);return this.membersRequest.lowerAllHandsMember(t)}},{key:"transferHostToMember",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!this.locusUrl)return R().reject(new no("The associated locus url for this meetings members object must be defined."));if(!e)return R().reject(new no("The member id must be defined to transfer host to the member."));var r=Ip.generateTransferHostMemberOptions(e,t,this.locusUrl);return this.membersRequest.transferHostToMember(r)}},{key:"sendDialPadKey",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e&&0!==e)return R().reject(new no("DMTF tones must be passed in"));var r=this.membersCollection.get(t);if(!r)return R().reject(new no("there is no member associated with that Id"));var n=this.locusUrl,i=r.participant.devices.find((function(e){return"SIP"===e.deviceType})),o=null==i?void 0:i.url;if(n&&o){var a=Ip.genderateSendDTMFOptions(o,e,t,n);return this.membersRequest.sendDialPadKey(a)}return R().reject(new Error('Members:index#sendDialPadKey --\x3e cannot send DTMF, meeting does not have a connection to the "locus" call control service.'))}}]),r}(u.XR);!function(e){e.Start="Start",e.Stop="Stop",e.Pause="Pause",e.Resume="Resume"}(Op||(Op={}));const Np=Op;const Lp={canUserStart:function(e){return e.includes(Vn.RECORDING_CONTROL_START)},canUserPause:function(e){return e.includes(Vn.RECORDING_CONTROL_PAUSE)},canUserResume:function(e){return e.includes(Vn.RECORDING_CONTROL_RESUME)},canUserStop:function(e){return e.includes(Vn.RECORDING_CONTROL_STOP)},deriveRecordingStates:function(e){var t,r;switch(e){case Np.Start:t=!0,r=!1;break;case Np.Stop:t=!1,r=!1;break;case Np.Resume:t=!0,r=!1;break;case Np.Pause:t=!0,r=!0;break;default:throw new Error("Recording state cannot be derived from invalid action: ".concat(e))}return{recording:t,paused:r}},extractLocusId:function(e){return null==e?void 0:e.split("/").pop()}};const Pp={canSetMuteOnEntry:function(e){return e.includes(Vn.ENABLE_MUTE_ON_ENTRY)},canSetDisallowUnmute:function(e){return e.includes(Vn.ENABLE_HARD_MUTE)},canUnsetMuteOnEntry:function(e){return e.includes(Vn.DISABLE_MUTE_ON_ENTRY)},canUnsetDisallowUnmute:function(e){return e.includes(Vn.DISABLE_HARD_MUTE)}};function Mp(e,t){var r=void 0!==xo()&&e[Co()]||e["@@iterator"];if(!r){if(ko()(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Dp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return wo()(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dp(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function Dp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Up,jp=function(){function e(t,r,n){(0,p.Z)(this,e),(0,E.Z)(this,"webSocketUrl",void 0),(0,E.Z)(this,"sessionID",void 0),(0,E.Z)(this,"members",void 0),(0,E.Z)(this,"memberCSIs",void 0),(0,E.Z)(this,"webSocket",void 0),this.webSocketUrl=t,this.sessionID=r,this.members=n,this.memberCSIs={};this.webSocket=new WebSocket("".concat(this.webSocketUrl).concat("?outboundWireFormat=text&bufferStates=true&aliasHttpStatus=true"))}return(0,h.Z)(e,[{key:"connect",value:function(e){var t=this;this.webSocket.onopen=function(){t.webSocket.send(uo()({id:(0,Fe.v4)(),type:"authorization",data:{token:"Bearer ".concat(e)},trackingId:"webex-js-sdk_".concat(t.sessionID).concat(w().toString())}))}}},{key:"onCloseSocket",value:function(e){e&&(this.webSocket.onclose=function(t){e(t)})}},{key:"onErrorSocket",value:function(e){e&&(this.webSocket.onerror=function(t){e(t)})}},{key:"getSpeaker",value:function(e){var t,r=this,n=Mp(e);try{for(n.s();!(t=n.n()).done;){var i=t.value,o=this.memberCSIs[i];if(o)return o}}catch(e){n.e(e)}finally{n.f()}return C()(this.members.membersCollection.members).find((function(t){var n,i=t.participant.status.csis,o=!1,a=Mp(e);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(i.includes(s)){r.memberCSIs[s]=t,o=!0;break}}}catch(e){a.e(e)}finally{a.f()}return o}))}},{key:"subscribe",value:function(e){var t,r,n,i,o=this;this.webSocket.onmessage=function(a){var s,c,u,l,d,f,p,h,v,m;(t=JSON.parse(a.data),r=(null===(s=t.data)||void 0===s||null===(c=s.voiceaPayload)||void 0===c?void 0:c.csis)||[],n=o.getSpeaker(r),i=(null===(u=t.data)||void 0===u||null===(l=u.voiceaPayload)||void 0===l?void 0:l.data)||"",o.webSocket.send(uo()({messageID:t.id,type:"ack"})),i)&&e({id:null===(d=t.data)||void 0===d||null===(f=d.voiceaPayload)||void 0===f?void 0:f.transcript_id,personID:null===(p=n)||void 0===p?void 0:p.id,transcription:i,timestamp:t.timestamp,type:null===(h=t)||void 0===h||null===(v=h.data)||void 0===v||null===(m=v.voiceaPayload)||void 0===m?void 0:m.type})}}},{key:"closeSocket",value:function(){this.webSocket.close()}}]),e}(),Fp={smile:{type:"smile",codepoints:"1F642",shortcodes:":slightly_smiling_face:"},sad:{type:"sad",codepoints:"1F625",shortcodes:":sad_but_relieved_face:"},wow:{type:"wow",codepoints:"1F62E",shortcodes:":open_mouth:"},haha:{type:"haha",codepoints:"1F603",shortcodes:":smiley:"},celebrate:{type:"celebrate",codepoints:"1F389",shortcodes:":party_popper:"},clap:{type:"clap",codepoints:"1F44F",shortcodes:":clap:"},thumbs_up:{type:"thumb_up",codepoints:"1F44D",shortcodes:":thumbsup:"},thumbs_down:{type:"thumb_down",codepoints:"1F44E",shortcodes:":thumbsdown:"},heart:{type:"heart",codepoints:"2764",shortcodes:":heart:"},fire:{type:"fire",codepoints:"1F525",shortcodes:":fire:"},prayer:{type:"prayer",codepoints:"1F64F",shortcodes:":pray:"},speed_up:{type:"speed_up",codepoints:"1F407",shortcodes:":rabbit:"},slow_down:{type:"slow_down",codepoints:"1F422",shortcodes:":turtle:"}},Bp={normal:{type:"normal_skin_tone",codepoints:"",shortcodes:""},light:{type:"light_skin_tone",codepoints:"1F3FB",shortcodes:":skin-tone-2:"},medium_light:{type:"medium_light_skin_tone",codepoints:"1F3FC",shortcodes:":skin-tone-3:"},medium:{type:"medium_skin_tone",codepoints:"1F3FD",shortcodes:":skin-tone-4:"},medium_dark:{type:"medium_dark_skin_tone",codepoints:"1F3FE",shortcodes:":skin-tone-5:"},dark:{type:"dark_skin_tone",codepoints:"1F3FF",shortcodes:":skin-tone-6:"}},Zp=(0,h.Z)((function e(){var t=this;(0,p.Z)(this,e),(0,E.Z)(this,"namespace",Hr),(0,E.Z)(this,"canInviteNewParticipants",null),(0,E.Z)(this,"canAdmitParticipant",null),(0,E.Z)(this,"canLock",null),(0,E.Z)(this,"canUnlock",null),(0,E.Z)(this,"canAssignHost",null),(0,E.Z)(this,"canStartRecording",null),(0,E.Z)(this,"canPauseRecording",null),(0,E.Z)(this,"canResumeRecording",null),(0,E.Z)(this,"canStopRecording",null),(0,E.Z)(this,"canSetMuteOnEntry",null),(0,E.Z)(this,"canUnsetMuteOnEntry",null),(0,E.Z)(this,"canSetDisallowUnmute",null),(0,E.Z)(this,"canUnsetDisallowUnmute",null),(0,E.Z)(this,"canRaiseHand",null),(0,E.Z)(this,"canLowerAllHands",null),(0,E.Z)(this,"canLowerSomeoneElsesHand",null),(0,E.Z)(this,"bothLeaveAndEndMeetingAvailable",null),(0,E.Z)(this,"canEnableClosedCaption",null),(0,E.Z)(this,"canStartTranscribing",null),(0,E.Z)(this,"canStopTranscribing",null),(0,E.Z)(this,"isClosedCaptionActive",null),(0,E.Z)(this,"isWebexAssistantActive",null),(0,E.Z)(this,"canViewCaptionPanel",null),(0,E.Z)(this,"isRealTimeTranslationEnabled",null),(0,E.Z)(this,"canSelectSpokenLanguages",null),(0,E.Z)(this,"waitingForOthersToJoin",null),(0,E.Z)(this,"get",(function(){return{canInviteNewParticipants:t.canInviteNewParticipants,canAdmitParticipant:t.canAdmitParticipant,canLock:t.canLock,canUnlock:t.canUnlock,canAssignHost:t.canAssignHost,canSetMuteOnEntry:t.canSetMuteOnEntry,canUnsetMuteOnEntry:t.canUnsetMuteOnEntry,canSetDisallowUnmute:t.canSetDisallowUnmute,canUnsetDisallowUnmute:t.canUnsetDisallowUnmute,canStartRecording:t.canStartRecording,canPauseRecording:t.canPauseRecording,canResumeRecording:t.canResumeRecording,canStopRecording:t.canStopRecording,canRaiseHand:t.canRaiseHand,canLowerAllHands:t.canLowerAllHands,canLowerSomeoneElsesHand:t.canLowerSomeoneElsesHand,bothLeaveAndEndMeetingAvailable:t.bothLeaveAndEndMeetingAvailable,canEnableClosedCaption:t.canEnableClosedCaption,canStartTranscribing:t.canStartTranscribing,canStopTranscribing:t.canStopTranscribing,isClosedCaptionActive:t.isClosedCaptionActive,isWebexAssistantActive:t.isWebexAssistantActive,canViewCaptionPanel:t.canViewCaptionPanel,isRealTimeTranslationEnabled:t.isRealTimeTranslationEnabled,canSelectSpokenLanguages:t.canSelectSpokenLanguages,waitingForOthersToJoin:t.waitingForOthersToJoin}})),(0,E.Z)(this,"set",(function(e){var r=t.get(),n=!1;return x()(r).forEach((function(i){var o=e[i];void 0!==o&&o!==r[i]&&(n=!0,t[i]=o)})),n}))})),Vp=function(){function e(t,r){(0,p.Z)(this,e),(0,E.Z)(this,"request",void 0),(0,E.Z)(this,"displayHints",[]),(0,E.Z)(this,"serviceUrl",void 0),(0,E.Z)(this,"sessionId",void 0),(0,E.Z)(this,"locusUrl",void 0),(0,E.Z)(this,"locusId",void 0),this.initialize(t),this.set(r)}return(0,h.Z)(e,[{key:"initialize",value:function(e){this.request=e}},{key:"set",value:function(e){this.extract(e)}},{key:"setLocusUrl",value:function(e){this.locusUrl=e,this.locusId=Lp.extractLocusId(this.locusUrl)}},{key:"setDisplayHints",value:function(e){this.displayHints=e}},{key:"setSessionId",value:function(e){this.sessionId=e}},{key:"setServiceUrl",value:function(e){this.serviceUrl=e}},{key:"getLocusUrl",value:function(){return this.locusUrl}},{key:"getLocusId",value:function(){return this.locusId}},{key:"getSessionId",value:function(){return this.sessionId}},{key:"getServiceUrl",value:function(){return this.serviceUrl}},{key:"getDisplayHints",value:function(){return this.displayHints}},{key:"extract",value:function(e){this.setServiceUrl(null==e?void 0:e.serviceUrl),this.setSessionId(null==e?void 0:e.sessionId),this.setDisplayHints(null==e?void 0:e.displayHints),this.setLocusUrl(null==e?void 0:e.locusUrl)}},{key:"recordingService",value:function(e){return this.request.request({body:{meetingInfo:{locusSessionId:this.sessionId},recording:{action:e.toLowerCase()}},uri:"".concat(this.serviceUrl,"/loci/").concat(this.locusId,"/recording"),method:Nn.PUT})}},{key:"recordingControls",value:function(e){var t=Lp.deriveRecordingStates(e);return Ke.logger.log("RecordingController:index#recordingControls --\x3e ".concat(t)),this.request.request({uri:"".concat(this.locusUrl,"/").concat(dt),body:{record:t},method:Nn.PATCH})}},{key:"recordingFacade",value:function(e){return Ke.logger.log("RecordingController:index#recordingFacade --\x3e recording action [".concat(e,"]")),null!=Lp&&Lp["canUser".concat(e)](this.displayHints)?this.serviceUrl?this.recordingService(e):this.recordingControls(e):R().reject(new ms("".concat(e," recording not allowed, due to moderator property.")))}},{key:"startRecording",value:function(){return this.recordingFacade(Np.Start)}},{key:"stopRecording",value:function(){return this.recordingFacade(Np.Stop)}},{key:"pauseRecording",value:function(){return this.recordingFacade(Np.Pause)}},{key:"resumeRecording",value:function(){return this.recordingFacade(Np.Resume)}}]),e}(),Gp=r(68929),qp=r.n(Gp);!function(e){e.disallowUnmute="DisallowUnmute",e.muteOnEntry="MuteOnEntry"}(Up||(Up={}));const Hp=Up;var Wp=function(){function e(t,r){(0,p.Z)(this,e),(0,E.Z)(this,"request",void 0),(0,E.Z)(this,"displayHints",[]),(0,E.Z)(this,"locusUrl",void 0),this.initialize(t),this.set(r)}return(0,h.Z)(e,[{key:"initialize",value:function(e){this.request=e}},{key:"set",value:function(e){this.extract(e)}},{key:"setLocusUrl",value:function(e){this.locusUrl=e}},{key:"setDisplayHints",value:function(e){this.displayHints=e}},{key:"getLocusUrl",value:function(){return this.locusUrl}},{key:"getDisplayHints",value:function(){return this.displayHints}},{key:"extract",value:function(e){this.setDisplayHints(null==e?void 0:e.displayHints),this.setLocusUrl(null==e?void 0:e.locusUrl)}},{key:"setControls",value:function(e,t){return Ke.logger.log("ControlsOptionsManager:index#setControls --\x3e ".concat(e," [").concat(t,"]")),null!=Pp&&Pp["".concat(t?"canSet":"canUnset").concat(e)](this.displayHints)?this.request.request({uri:"".concat(this.locusUrl,"/").concat(dt),body:(0,E.Z)({},qp()(e),(0,E.Z)({},"enabled",t)),method:Nn.PATCH}):R().reject(new ms("".concat(e," [").concat(t,"] not allowed, due to moderator property.")))}},{key:"setMuteOnEntry",value:function(e){return this.setControls(Hp.muteOnEntry,e)}},{key:"setDisallowUnmute",value:function(e){return this.setControls(Hp.disallowUnmute,e)}}]),e}();function zp(e,t){var r=x()(e);if(fo()){var n=fo()(e);t&&(n=n.filter((function(t){return ho()(e,t).enumerable}))),r.push.apply(r,n)}return r}function $p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zp(Object(r),!0).forEach((function(t){(0,E.Z)(e,t,r[t])})):mo()?yo()(e,mo()(r)):zp(Object(r)).forEach((function(t){So()(e,t,ho()(r,t))}))}return e}function Kp(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var Yp=bi().isBrowser,Jp=function(e,t){var r=t.header,n=void 0===r?"":r,i=t.success,o=void 0===i?"":i,a=t.failure,s=void 0===a?"":a;return Ke.logger.info(n),e.then((function(e){return Ke.logger.info(o),e})).catch((function(e){throw Ke.logger.error(s,e),e}))},Qp="ALL",Xp="AUDIO",eh="VIDEO",th="SHARE",rh=function(e){(0,m.Z)(a,e);var t,r,n,i,o=Kp(a);function a(e,t){var r,n,i,s,c,u,l,d,f;return(0,p.Z)(this,a),f=o.call(this,{},t),(0,E.Z)((0,v.Z)(f),"attrs",void 0),(0,E.Z)((0,v.Z)(f),"audio",void 0),(0,E.Z)((0,v.Z)(f),"conversationUrl",void 0),(0,E.Z)((0,v.Z)(f),"correlationId",void 0),(0,E.Z)((0,v.Z)(f),"destination",void 0),(0,E.Z)((0,v.Z)(f),"destinationType",void 0),(0,E.Z)((0,v.Z)(f),"deviceUrl",void 0),(0,E.Z)((0,v.Z)(f),"effects",void 0),(0,E.Z)((0,v.Z)(f),"hostId",void 0),(0,E.Z)((0,v.Z)(f),"id",void 0),(0,E.Z)((0,v.Z)(f),"locusUrl",void 0),(0,E.Z)((0,v.Z)(f),"mediaConnections",void 0),(0,E.Z)((0,v.Z)(f),"meetingFiniteStateMachine",void 0),(0,E.Z)((0,v.Z)(f),"meetingInfo",void 0),(0,E.Z)((0,v.Z)(f),"meetingRequest",void 0),(0,E.Z)((0,v.Z)(f),"members",void 0),(0,E.Z)((0,v.Z)(f),"options",void 0),(0,E.Z)((0,v.Z)(f),"orgId",void 0),(0,E.Z)((0,v.Z)(f),"owner",void 0),(0,E.Z)((0,v.Z)(f),"partner",void 0),(0,E.Z)((0,v.Z)(f),"policy",void 0),(0,E.Z)((0,v.Z)(f),"reconnectionManager",void 0),(0,E.Z)((0,v.Z)(f),"resource",void 0),(0,E.Z)((0,v.Z)(f),"roap",void 0),(0,E.Z)((0,v.Z)(f),"roapSeq",void 0),(0,E.Z)((0,v.Z)(f),"sipUri",void 0),(0,E.Z)((0,v.Z)(f),"type",void 0),(0,E.Z)((0,v.Z)(f),"userId",void 0),(0,E.Z)((0,v.Z)(f),"video",void 0),(0,E.Z)((0,v.Z)(f),"callEvents",void 0),(0,E.Z)((0,v.Z)(f),"deferJoin",void 0),(0,E.Z)((0,v.Z)(f),"dialInDeviceStatus",void 0),(0,E.Z)((0,v.Z)(f),"dialInUrl",void 0),(0,E.Z)((0,v.Z)(f),"dialOutDeviceStatus",void 0),(0,E.Z)((0,v.Z)(f),"dialOutUrl",void 0),(0,E.Z)((0,v.Z)(f),"fetchMeetingInfoTimeoutId",void 0),(0,E.Z)((0,v.Z)(f),"floorGrantPending",void 0),(0,E.Z)((0,v.Z)(f),"hasJoinedOnce",void 0),(0,E.Z)((0,v.Z)(f),"hasWebsocketConnected",void 0),(0,E.Z)((0,v.Z)(f),"inMeetingActions",void 0),(0,E.Z)((0,v.Z)(f),"isLocalShareLive",void 0),(0,E.Z)((0,v.Z)(f),"isSharing",void 0),(0,E.Z)((0,v.Z)(f),"keepAliveTimerId",void 0),(0,E.Z)((0,v.Z)(f),"lastVideoLayoutInfo",void 0),(0,E.Z)((0,v.Z)(f),"locusInfo",void 0),(0,E.Z)((0,v.Z)(f),"mediaProperties",void 0),(0,E.Z)((0,v.Z)(f),"meetingInfoFailureReason",void 0),(0,E.Z)((0,v.Z)(f),"networkQualityMonitor",void 0),(0,E.Z)((0,v.Z)(f),"networkStatus",void 0),(0,E.Z)((0,v.Z)(f),"passwordStatus",void 0),(0,E.Z)((0,v.Z)(f),"queuedMediaUpdates",void 0),(0,E.Z)((0,v.Z)(f),"recording",void 0),(0,E.Z)((0,v.Z)(f),"recordingController",void 0),(0,E.Z)((0,v.Z)(f),"controlsOptionsManager",void 0),(0,E.Z)((0,v.Z)(f),"requiredCaptcha",void 0),(0,E.Z)((0,v.Z)(f),"shareStatus",void 0),(0,E.Z)((0,v.Z)(f),"statsAnalyzer",void 0),(0,E.Z)((0,v.Z)(f),"transcription",void 0),(0,E.Z)((0,v.Z)(f),"updateMediaConnections",void 0),(0,E.Z)((0,v.Z)(f),"endCallInitiateJoinReq",void 0),(0,E.Z)((0,v.Z)(f),"endJoinReqResp",void 0),(0,E.Z)((0,v.Z)(f),"endLocalSDPGenRemoteSDPRecvDelay",void 0),(0,E.Z)((0,v.Z)(f),"joinedWith",void 0),(0,E.Z)((0,v.Z)(f),"locusId",void 0),(0,E.Z)((0,v.Z)(f),"startCallInitiateJoinReq",void 0),(0,E.Z)((0,v.Z)(f),"startJoinReqResp",void 0),(0,E.Z)((0,v.Z)(f),"startLocalSDPGenRemoteSDPRecvDelay",void 0),(0,E.Z)((0,v.Z)(f),"wirelessShare",void 0),(0,E.Z)((0,v.Z)(f),"guest",void 0),(0,E.Z)((0,v.Z)(f),"meetingJoinUrl",void 0),(0,E.Z)((0,v.Z)(f),"meetingNumber",void 0),(0,E.Z)((0,v.Z)(f),"meetingState",void 0),(0,E.Z)((0,v.Z)(f),"permissionToken",void 0),(0,E.Z)((0,v.Z)(f),"resourceId",void 0),(0,E.Z)((0,v.Z)(f),"resourceUrl",void 0),(0,E.Z)((0,v.Z)(f),"selfId",void 0),(0,E.Z)((0,v.Z)(f),"state",void 0),(0,E.Z)((0,v.Z)(f),"namespace",Hr),(0,E.Z)((0,v.Z)(f),"getMediaStreams",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:si[f.mediaProperties.localQualityLevel],r=arguments.length>2?arguments[2]:void 0;if(e&&(e.sendAudio||e.sendVideo||e.sendShare)){if(e&&e.sendAudio&&e.sendVideo&&e.sendShare&&Yp("safari")&&(Ke.logger.warn("Meeting:index#getMediaStreams --\x3e Setting `sendShare` to FALSE, due to complications with Safari"),e.sendShare=!1,Ke.logger.warn("Meeting:index#getMediaStreams --\x3e Enabling `sendShare` along with `sendAudio` & `sendVideo`, on Safari, causes a failure while setting up a screen share at the same time as the camera+mic stream"),Ke.logger.warn("Meeting:index#getMediaStreams --\x3e Please use `meeting.shareScreen()` to manually start the screen share after successfully joining the meeting")),t&&As()(t)){if(!x()(si).includes(t))throw new no("".concat(t," not supported. Either pass level from pre-defined resolutions or pass complete audioVideo object"));f.mediaProperties.setLocalQualityLevel(t),t={video:si[t].video}}t.video||(t=$p($p({},t),{},{video:$p($p({},t.video),si[f.mediaProperties.localQualityLevel].video)}));var n=(t&&t.video||{deviceId:null}).deviceId,i=f.mediaProperties.getVideoDeviceId();return n?f.mediaProperties.setVideoDeviceId(n):i&&(t=$p($p({},t),{},{video:$p($p({},t.video),{},{deviceId:i})})),ss.getSupportedDevice({sendAudio:e.sendAudio,sendVideo:e.sendVideo}).catch((function(e){return R().reject(new Mo("Given constraints do not match permission set for either camera or microphone",e))})).then((function(n){return ss.getUserMedia($p($p({},e),{},{sendAudio:n.sendAudio,sendVideo:n.sendVideo,isSharing:f.shareStatus===_n.LOCAL_SHARE_ACTIVE}),t,r,f.config).catch((function(e){var t,r=Lo.GET_USER_MEDIA_FAILURE,n={correlation_id:f.correlationId,locus_id:null===(t=f.locusUrl)||void 0===t?void 0:t.split("/").pop(),reason:e.message,stack:e.stack},i={type:e.name};throw Ki.sendBehavioralMetric(r,n,i),new Mo("Unable to retrieve media streams",e)}))}))}return R().reject(new Mo("At least one of the mediaDirection value should be true"))})),(0,E.Z)((0,v.Z)(f),"getSupportedDevices",(function(e){var t=e.sendAudio,r=void 0===t||t,n=e.sendVideo,i=void 0===n||n;return ss.getSupportedDevice({sendAudio:r,sendVideo:i})})),(0,E.Z)((0,v.Z)(f),"getDevices",(function(){return ss.getDevices()})),(0,E.Z)((0,v.Z)(f),"setupStatsAnalyzerEventHandlers",(function(){f.statsAnalyzer.on(Bd,(function(e){var t;e.data.intervalMetadata.peerReflexiveIP=(null===(t=f.webex.meetings.geoHintInfo)||void 0===t?void 0:t.clientAddress)||e.data.intervalMetadata.peerReflexiveIP||ii.DEFAULT_IP,Ki.postEvent({event:Ci.MEDIA_QUALITY,meeting:(0,v.Z)(f),data:{intervalData:e.data,networkType:e.networkType}})})),f.statsAnalyzer.on(Zd,(function(e){so.trigger((0,v.Z)(f),{file:"meeting/index",function:"addMedia"},bn.MEETING_MEDIA_LOCAL_STARTED,e),Ki.postEvent({event:Ci.SENDING_MEDIA_START,meeting:(0,v.Z)(f),data:{mediaType:e.type}})})),f.statsAnalyzer.on(Vd,(function(e){Ki.postEvent({event:Ci.SENDING_MEDIA_STOP,meeting:(0,v.Z)(f),data:{mediaType:e.type}})})),f.statsAnalyzer.on(Gd,(function(e){so.trigger((0,v.Z)(f),{file:"meeting/index",function:"addMedia"},bn.MEETING_MEDIA_REMOTE_STARTED,e),Ki.postEvent({event:Ci.RECEIVING_MEDIA_START,meeting:(0,v.Z)(f),data:{mediaType:e.type}})})),f.statsAnalyzer.on(qd,(function(e){Ki.postEvent({event:Ci.RECEIVING_MEDIA_STOP,meeting:(0,v.Z)(f),data:{mediaType:e.type}})}))})),(0,E.Z)((0,v.Z)(f),"mediaNegotiatedEvent",(function(){f.config.experimental.enableMediaNegotiatedEvent&&(Ke.logger.info("Meeting:mediaNegotiatedEvent --\x3e Media server negotiated"),so.trigger((0,v.Z)(f),{file:"meeting/index",function:"mediaNegotiatedEvent"},bn.MEDIA_NEGOTIATED))})),(0,E.Z)((0,v.Z)(f),"processNextQueuedMediaUpdate",(function(){if(f.canUpdateMedia()&&f.queuedMediaUpdates.length>0){var e=f.queuedMediaUpdates.shift(),t=e.pendingPromiseResolve,r=e.pendingPromiseReject,n=e.mediaUpdateType,i=e.options;switch(Ke.logger.log("Meeting:index#processNextQueuedMediaUpdate --\x3e performing delayed media update type=".concat(n)),n){case Qp:f.updateMedia(i).then(t,r);break;case Xp:f.updateAudio(i).then(t,r);break;case eh:f.updateVideo(i).then(t,r);break;case th:f.updateShare(i).then(t,r);break;default:Ke.logger.error("Peer-connection-manager:index#processNextQueuedMediaUpdate --\x3e unsupported media update type ".concat(n," found in the queue"))}}})),(0,E.Z)((0,v.Z)(f),"clearMeetingData",(function(){f.audio=null,f.video=null,f.isSharing=!1,f.shareStatus===_n.LOCAL_SHARE_ACTIVE&&(f.shareStatus=_n.NO_SHARE),f.queuedMediaUpdates=[],f.transcription&&(f.transcription.closeSocket(),f.triggerStopReceivingTranscriptionEvent(),f.transcription=void 0)})),(0,E.Z)((0,v.Z)(f),"startKeepAlive",(function(){var e,t;if(f.keepAliveTimerId)Ke.logger.warn("Meeting:index#startKeepAlive --\x3e keepAlive not started: keepAliveTimerId already exists");else if(null!==(e=f.joinedWith)&&void 0!==e&&e.keepAliveUrl)if(null!==(t=f.joinedWith)&&void 0!==t&&t.keepAliveSecs)if(f.joinedWith.keepAliveSecs<=1)Ke.logger.warn("Meeting:index#startKeepAlive --\x3e keepAlive not started: keepAliveSecs <= 1");else{var r=f.joinedWith.keepAliveUrl,n=750*(f.joinedWith.keepAliveSecs-1);f.keepAliveTimerId=setInterval((function(){f.meetingRequest.keepAlive({keepAliveUrl:r}).catch((function(e){Ke.logger.warn("Meeting:index#startKeepAlive --\x3e Stopping sending keepAlives to ".concat(r," after error ").concat(e)),f.stopKeepAlive()}))}),n)}else Ke.logger.warn("Meeting:index#startKeepAlive --\x3e keepAlive not started: no keepAliveSecs");else Ke.logger.warn("Meeting:index#startKeepAlive --\x3e keepAlive not started: no keepAliveUrl")})),(0,E.Z)((0,v.Z)(f),"stopKeepAlive",(function(){f.keepAliveTimerId&&(clearInterval(f.keepAliveTimerId),f.keepAliveTimerId=null)})),f.attrs=e,f.options=t,f.id=Be().v4(),f.correlationId=f.id,f.userId=e.userId,f.orgId=e.orgId,f.resource=e.resource,f.deviceUrl=e.deviceUrl,f.roapSeq=cn,f.meetingInfo={},f.members=new kp({locusUrl:e.locus&&e.locus.url},{parent:f.webex}),f.roap=new vf({},{parent:f.webex}),f.reconnectionManager=new vp((0,v.Z)(f)),f.audio=null,f.video=null,f.effects=null,f.meetingFiniteStateMachine=Rf.create((0,v.Z)(f)),f.conversationUrl=null,f.locusUrl=e.locus&&e.locus.url||null,f.sipUri=null,f.destination=e.destination,f.destinationType=e.destinationType,f.partner=null,f.type=null,f.owner=null,f.hostId=null,f.policy=null,f.meetingRequest=new Sp({},t),f.mediaConnections=null,f.fetchMeetingInfoTimeoutId=null,f.updateMediaConnections=function(e){Xs()(f.mediaConnections,e)||(f.mediaConnections=e.slice(-1))},f.mediaProperties=new Ef,f.inMeetingActions=new Zp,f.isSharing=!1,f.shareStatus=_n.NO_SHARE,So()((0,v.Z)(f),"isLocalShareLive",{get:function(){var e,t,r=f.mediaProperties.peerConnection.shareTransceiver,n=null==r?void 0:r.direction;return!((null==r||null===(e=r.sender)||void 0===e||null===(t=e.track)||void 0===t?void 0:t.readyState)!==wt||n!==Gt)},configurable:!0}),f.callEvents=[],f.floorGrantPending=!1,f.dialInDeviceStatus=fi.UNKNOWN,f.dialInUrl="",f.dialOutDeviceStatus=fi.UNKNOWN,f.dialOutUrl="",f.statsAnalyzer=null,f.networkQualityMonitor=null,f.networkStatus=null,f.locusInfo=new up(f.updateMeetingObject.bind((0,v.Z)(f)),f.webex,f.id),f.recording=null,f.deferJoin=void 0,f.hasWebsocketConnected=f.webex.internal.mercury.connected,f.lastVideoLayoutInfo={layoutType:void 0,main:void 0,content:void 0},f.queuedMediaUpdates=[],f.transcription=void 0,f.passwordStatus=pi.UNKNOWN,f.requiredCaptcha=null,f.meetingInfoFailureReason=void 0,f.keepAliveTimerId=null,f.recordingController=new Vp(f.meetingRequest,{serviceUrl:null===(r=f.locusInfo)||void 0===r||null===(n=r.links)||void 0===n||null===(i=n.services)||void 0===i||null===(s=i.record)||void 0===s?void 0:s.url,sessionId:null===(c=f.locusInfo)||void 0===c||null===(u=c.fullState)||void 0===u?void 0:u.sessionId,locusUrl:null===(l=f.locusInfo)||void 0===l?void 0:l.url,displayHints:[]}),f.controlsOptionsManager=new Wp(f.meetingRequest,{locusUrl:null===(d=f.locusInfo)||void 0===d?void 0:d.url,displayHints:[]}),f.setUpLocusInfoListeners(),f.locusInfo.init(e.locus?e.locus:{}),f.hasJoinedOnce=!1,f}return(0,h.Z)(a,[{key:"fetchMeetingInfo",value:(i=(0,f.Z)(_().mark((function e(t){var r,n,i,o,a,s,c,u;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.password,n=void 0===r?null:r,i=t.captchaCode,o=void 0===i?null:i,this.fetchMeetingInfoTimeoutId&&(clearTimeout(this.fetchMeetingInfoTimeoutId),this.fetchMeetingInfoTimeoutId=void 0),!o||this.requiredCaptcha){e.next=4;break}return e.abrupt("return",R().reject(new Error("fetchMeetingInfo() called with captchaCode when captcha was not required")));case 4:if(!n||this.passwordStatus===pi.REQUIRED||this.passwordStatus===pi.UNKNOWN){e.next=6;break}return e.abrupt("return",R().reject(new Error("fetchMeetingInfo() called with password when password was not required")));case 6:return e.prev=6,a=o?{code:o,id:this.requiredCaptcha.captchaId}:null,e.next=10,this.attrs.meetingInfoProvider.fetchMeetingInfo(this.destination,this.destinationType,n,a);case 10:return s=e.sent,this.parseMeetingInfo(s,this.destination),this.meetingInfo=s?s.body:null,this.meetingInfoFailureReason=hi.NONE,this.requiredCaptcha=null,this.passwordStatus===pi.REQUIRED||this.passwordStatus===pi.VERIFIED?this.passwordStatus=pi.VERIFIED:this.passwordStatus=pi.NOT_REQUIRED,so.trigger(this,{file:"meetings",function:"fetchMeetingInfo"},bn.MEETING_INFO_AVAILABLE),e.abrupt("return",R().resolve());case 20:if(e.prev=20,e.t0=e.catch(6),!(e.t0 instanceof Hs)){e.next=33;break}if(Ke.logger.info("Meeting:index#fetchMeetingInfo --\x3e Info Unable to fetch meeting info for ".concat(this.destination," - password required (code=").concat(null===e.t0||void 0===e.t0||null===(c=e.t0.body)||void 0===c?void 0:c.code,").")),e.t0.meetingInfo&&(this.meetingInfo=e.t0.meetingInfo,this.meetingNumber=e.t0.meetingInfo.meetingNumber),this.passwordStatus=pi.REQUIRED,this.meetingInfoFailureReason=hi.WRONG_PASSWORD,!this.requiredCaptcha){e.next=30;break}return e.next=30,this.refreshCaptcha();case 30:throw new ys;case 33:if(!(e.t0 instanceof zs)){e.next=41;break}throw Ke.logger.info("Meeting:index#fetchMeetingInfo --\x3e Info Unable to fetch meeting info for ".concat(this.destination," - captcha required (code=").concat(null===e.t0||void 0===e.t0||null===(u=e.t0.body)||void 0===u?void 0:u.code,").")),this.meetingInfoFailureReason=this.requiredCaptcha?hi.WRONG_CAPTCHA:hi.WRONG_PASSWORD,e.t0.isPasswordRequired&&(this.passwordStatus=pi.REQUIRED),this.requiredCaptcha=e.t0.captchaInfo,new Ss;case 41:throw this.meetingInfoFailureReason=hi.OTHER,e.t0;case 43:case"end":return e.stop()}}),e,this,[[6,20]])}))),function(e){return i.apply(this,arguments)})},{key:"verifyPassword",value:function(e,t){var r=this;return this.fetchMeetingInfo({password:e,captchaCode:t}).then((function(){return Ki.sendBehavioralMetric(Lo.VERIFY_PASSWORD_SUCCESS),{isPasswordValid:!0,requiredCaptcha:null,failureReason:hi.NONE}})).catch((function(e){if(e instanceof ys||e instanceof Ss)return{isPasswordValid:r.passwordStatus===pi.VERIFIED,requiredCaptcha:r.requiredCaptcha,failureReason:r.meetingInfoFailureReason};throw e}))}},{key:"refreshCaptcha",value:function(){var e=this;if(!this.requiredCaptcha)return R().reject(new Error("There is no captcha to refresh"));var t=new URL(this.requiredCaptcha.refreshURL).hostname;return this.meetingRequest.refreshCaptcha({captchaRefreshUrl:"".concat(this.requiredCaptcha.refreshURL,"&siteFullName=").concat(t),captchaId:this.requiredCaptcha.captchaId}).then((function(t){e.requiredCaptcha.captchaId=t.body.captchaID,e.requiredCaptcha.verificationImageURL=t.body.verificationImageURL,e.requiredCaptcha.verificationAudioURL=t.body.verificationAudioURL})).catch((function(t){throw Ke.logger.error("Meeting:index#refreshCaptcha --\x3e Error Unable to refresh captcha for ".concat(e.destination," - ").concat(t)),t}))}},{key:"setUpLocusInfoListeners",value:function(){this.setUpLocusInfoSelfListener(),this.setUpLocusInfoMeetingListener(),this.setUpLocusServicesListener(),this.setUpLocusFullStateListener(),this.setUpLocusUrlListener(),this.setUpLocusHostListener(),this.setUpLocusSelfListener(),this.setUpLocusParticipantsListener(),this.setupLocusControlsListener(),this.setUpLocusMediaSharesListener(),this.setUpLocusEmbeddedAppsListener(),this.setUpLocusInfoMeetingInfoListener(),this.setUpLocusInfoAssignHostListener(),this.setUpLocusInfoMediaInactiveListener()}},{key:"setUpLocusInfoMediaInactiveListener",value:function(){var e=this;this.locusInfo.on(xn.DISCONNECT_DUE_TO_INACTIVITY,(function(t){Ki.sendBehavioralMetric(Lo.DISCONNECT_DUE_TO_INACTIVITY,{correlation_id:e.correlationId,locus_id:e.locusId}),so.trigger(e,{file:"meeting/index",function:"setUpLocusInfoMediaInactiveListener"},xn.REQUEST_UPLOAD_LOGS,e),Ke.logger.error("Meeting:index#setUpLocusInfoMediaInactiveListener --\x3e Meeting disconnected due to inactivity: ".concat(t.reason)),e.config.reconnection.autoRejoin?e.reconnect():so.trigger(e,{file:"meeting/index",function:"setUpLocusInfoMediaInactiveListener"},bn.MEETING_SELF_LEFT,t.reason)}))}},{key:"setUpLocusInfoAssignHostListener",value:function(){var e=this;this.locusInfo.on(xn.LOCUS_INFO_CAN_ASSIGN_HOST,(function(t){e.inMeetingActions.set({canAssignHost:t.canAssignHost})&&so.trigger(e,{file:"meeting/index",function:"setUpLocusInfoAssignHostListener"},bn.MEETING_ACTIONS_UPDATE,e.inMeetingActions.get())}))}},{key:"setUpLocusFullStateListener",value:function(){var e=this;this.locusInfo.on(Un.EVENTS.FULL_STATE_MEETING_STATE_CHANGE,(function(t){so.trigger(e,{file:"meeting/index",function:"setUpLocusFullStateListener"},bn.MEETING_STATE_CHANGE,{payload:t})})),this.locusInfo.on(Un.EVENTS.FULL_STATE_TYPE_UPDATE,(function(t){e.members.locusFullStateTypeUpdate(t)}))}},{key:"getAnalyzerMetricsPrePayload",value:function(e){if(e){var t=e.event,r=e.trackingId,n=e.mediaConnections;if(!t)return Ke.logger.error("Meeting:index#getAnalyzerMetricsPrePayload --\x3e Error [Call Analyzer Event",t||"","]: invalid identifers or event type! ".concat(this.correlationId)),null;var i={correlationId:this.correlationId,userId:this.userId,deviceId:this.deviceUrl,orgId:this.orgId,locusUrl:this.webex.internal.services.get("locus")};if(this.locusUrl&&this.locusInfo.fullState&&(i.locusUrl=this.locusUrl,i.locusId=this.locusUrl&&this.locusUrl.split("/").pop(),i.locusStartTime=this.locusInfo.fullState&&this.locusInfo.fullState.lastActive),n)i.mediaAgentAlias=null==n?void 0:n[0].mediaAgentAlias,i.mediaAgentGroupId=null==n?void 0:n[0].mediaAgentGroupId,i.mediaAgentCluster=null==n?void 0:n[0].mediaAgentCluster;else if(this.mediaConnections){var o,a,s;i.mediaAgentAlias=null===(o=this.mediaConnections)||void 0===o?void 0:o[0].mediaAgentAlias,i.mediaAgentGroupId=null===(a=this.mediaConnections)||void 0===a?void 0:a[0].mediaAgentGroupId,i.mediaAgentCluster=null===(s=this.mediaConnections)||void 0===s?void 0:s[0].mediaAgentCluster}e.trackingId&&(i.trackingId=r);var c=this.getSetupDelayDuration("audio");c&&(e.audioSetupDelay={joinRespRxStart:c});var u=this.getSetupDelayDuration("video");c&&(e.videoSetupDelay={joinRespRxStart:u});var l=this.getSendingMediaDelayDuration("audio");l&&(e.audioSetupDelay=$p($p({},e.audioSetupDelay),{},{joinRespTxStart:l}));var d=this.getSendingMediaDelayDuration("video");d&&(e.videoSetupDelay=$p($p({},e.videoSetupDelay),{},{joinRespTxStart:d}));var f=this.getLocalSDPGenRemoteSDPRecvDelay();f&&(e.joinTimes=$p($p({},e.joinTimes),{},{localSDPGenRemoteSDPRecv:f}));var p=this.getCallInitiateJoinReq();p&&(e.joinTimes=$p($p({},e.joinTimes),{},{callInitiateJoinReq:p}));var h=this.getJoinReqResp();h&&(e.joinTimes=$p($p({},e.joinTimes),{},{joinReqResp:h}));var v=this.getTotalJmt();return v&&(e.joinTimes=$p($p({},e.joinTimes),{},{getTotalJmt:v})),e.type===ii.CA_TYPE?Ki.initMediaPayload(e.event,i,e):Ki.initPayload(e.event,i,e)}return null}},{key:"sendCallAnalyzerMetrics",value:function(e){var t=this.getAnalyzerMetricsPrePayload($p($p({},Js()(this.config.metrics,["clientType","subClientType"])),e));return this.webex.internal.metrics.submitCallDiagnosticEvents(t)}},{key:"sendMediaQualityAnalyzerMetrics",value:function(e){var t=this.getAnalyzerMetricsPrePayload($p($p({type:ii.CA_TYPE},Js()(this.config.metrics,["clientType","subClientType"])),e));return this.webex.internal.metrics.submitCallDiagnosticEvents(t)}},{key:"setNetworkStatus",value:function(e){e===ti.DISCONNECTED?so.trigger(this,{file:"meeting/index",function:"setNetworkStatus"},bn.MEETINGS_NETWORK_DISCONNECTED):e===ti.CONNECTED&&this.networkStatus===ti.DISCONNECTED&&so.trigger(this,{file:"meeting/index",function:"setNetworkStatus"},bn.MEETINGS_NETWORK_CONNECTED),this.networkStatus=e}},{key:"setUpLocusSelfListener",value:function(){var e=this;this.locusInfo.on(xn.LOCUS_INFO_UPDATE_SELF,(function(t){e.members.locusSelfUpdate(t),e.pstnUpdate(t),e.floorGrantPending&&t.newSelf.state===qn.STATES.JOINED&&e.requestScreenShareFloor().then((function(){e.floorGrantPending=!1}))}))}},{key:"pstnUpdate",value:function(e){var t=this;if(this.locusInfo.self){var r,n,i=null===(r=e.newSelf)||void 0===r?void 0:r.pstnDevices.find((function(e){return e.url===t.dialInUrl})),o=null===(n=e.newSelf)||void 0===n?void 0:n.pstnDevices.find((function(e){return e.url===t.dialOutUrl})),a=!1;if(i){var s,c=null!==(s=i.dialingStatus)&&void 0!==s?s:i.state;c!==this.dialInDeviceStatus&&(this.dialInDeviceStatus=c,a=!0)}if(o){var u,l=null!==(u=o.dialingStatus)&&void 0!==u?u:o.state;l!==this.dialOutDeviceStatus&&(this.dialOutDeviceStatus=l,a=!0)}a&&so.trigger(this,{file:"meeting/index",function:"setUpLocusSelfListener"},bn.MEETING_SELF_PHONE_AUDIO_UPDATE,{dialIn:{status:this.dialInDeviceStatus,attendeeId:null==i?void 0:i.attendeeId},dialOut:{status:this.dialOutDeviceStatus,attendeeId:null==o?void 0:o.attendeeId}})}}},{key:"setUpLocusHostListener",value:function(){var e=this;this.locusInfo.on(xn.LOCUS_INFO_UPDATE_HOST,(function(t){e.members.locusHostUpdate(t)}))}},{key:"setUpLocusParticipantsListener",value:function(){var e=this;this.locusInfo.on(xn.LOCUS_INFO_UPDATE_PARTICIPANTS,(function(t){e.members.locusParticipantsUpdate(t)}))}},{key:"setupLocusControlsListener",value:function(){var e=this;this.locusInfo.on(Un.EVENTS.CONTROLS_RECORDING_UPDATED,(function(t){var r,n=t.state,i=t.modifiedBy,o=t.lastModified;switch(n){case Sn.RECORDING:r=bn.MEETING_STARTED_RECORDING;break;case Sn.IDLE:r=bn.MEETING_STOPPED_RECORDING;break;case Sn.PAUSED:r=bn.MEETING_PAUSED_RECORDING;break;case Sn.RESUMED:r=bn.MEETING_RESUMED_RECORDING;break;default:r=null}e.recording={state:n===Sn.RESUMED?Sn.RECORDING:n,modifiedBy:i,lastModified:o},so.trigger(e,{file:"meeting/index",function:"setupLocusControlsListener"},r,e.recording)})),this.locusInfo.on(Un.EVENTS.CONTROLS_MEETING_CONTAINER_UPDATED,(function(t){var r=t.meetingContainerUrl;so.trigger(e,{file:"meeting/index",function:"setupLocusControlsListener"},bn.MEETING_MEETING_CONTAINER_UPDATE,{meetingContainerUrl:r})})),this.locusInfo.on(Un.EVENTS.CONTROLS_MEETING_TRANSCRIBE_UPDATED,(function(t){var r=t.caption,n=t.transcribing;n&&e.transcription&&e.config.receiveTranscription?e.receiveTranscription():!n&&e.transcription&&so.trigger(e,{file:"meeting/index",function:"setupLocusControlsListener"},bn.MEETING_STOPPED_RECEIVING_TRANSCRIPTION,{caption:r,transcribing:n})})),this.locusInfo.on(Un.EVENTS.CONTROLS_ENTRY_EXIT_TONE_UPDATED,(function(t){var r=t.entryExitTone;so.trigger(e,{file:"meeting/index",function:"setupLocusControlsListener"},bn.MEETING_ENTRY_EXIT_TONE_UPDATE,{entryExitTone:r})}))}},{key:"setUpLocusMediaSharesListener",value:function(){var e=this;this.locusInfo.on(xn.LOCUS_INFO_UPDATE_MEDIA_SHARES,(function(t){var r,n,i=t.current,o=i.content,a=i.whiteboard,s=null===(r=t.previous)||void 0===r?void 0:r.content,c=null===(n=t.previous)||void 0===n?void 0:n.whiteboard;if(o.beneficiaryId!==(null==s?void 0:s.beneficiaryId)||o.disposition!==(null==s?void 0:s.disposition)||a.beneficiaryId!==(null==c?void 0:c.beneficiaryId)||a.disposition!==(null==c?void 0:c.disposition)||a.resourceUrl!==(null==c?void 0:c.resourceUrl)){var u=e.shareStatus;if(e.selfId!==o.beneficiaryId&&o.disposition===On.GRANTED)u=_n.REMOTE_SHARE_ACTIVE;else if(e.selfId===o.beneficiaryId&&o.disposition===On.GRANTED){var l;"ended"===(null===(l=e.mediaProperties.shareTrack)||void 0===l?void 0:l.readyState)?e.stopShare({skipSignalingCheck:!0}).catch((function(e){Ke.logger.log("Meeting:index#setUpLocusMediaSharesListener --\x3e Error stopping share: ",e)})):u=_n.LOCAL_SHARE_ACTIVE}else a.disposition===On.GRANTED?u=_n.WHITEBOARD_SHARE_ACTIVE:(s&&o.disposition===On.RELEASED||null===o.disposition)&&(c&&a.disposition===On.RELEASED||null===a.disposition)&&(u=_n.NO_SHARE);if(u!==e.shareStatus){var d=e.shareStatus;switch(e.shareStatus=u,d){case _n.REMOTE_SHARE_ACTIVE:so.trigger(e,{file:"meetings/index",function:"remoteShare"},bn.MEETING_STOPPED_SHARING_REMOTE);break;case _n.LOCAL_SHARE_ACTIVE:so.trigger(e,{file:"meeting/index",function:"stopFloorRequest"},bn.MEETING_STOPPED_SHARING_LOCAL,{reason:In.SELF_STOPPED});break;case _n.WHITEBOARD_SHARE_ACTIVE:so.trigger(e,{file:"meeting/index",function:"stopWhiteboardShare"},bn.MEETING_STOPPED_SHARING_WHITEBOARD);case _n.NO_SHARE:}switch(u){case _n.REMOTE_SHARE_ACTIVE:var f,p=function(){so.trigger(e,{file:"meetings/index",function:"remoteShare"},bn.MEETING_STARTED_SHARING_REMOTE,{memberId:o.beneficiaryId})};null!==(f=e.mediaProperties.mediaDirection)&&void 0!==f&&f.sendShare&&d!==_n.WHITEBOARD_SHARE_ACTIVE?e.updateShare({sendShare:!1,receiveShare:e.mediaProperties.mediaDirection.receiveShare}).finally((function(){p()})):p();break;case _n.LOCAL_SHARE_ACTIVE:so.trigger(e,{file:"meeting/index",function:"share"},bn.MEETING_STARTED_SHARING_LOCAL),Ki.postEvent({event:Ci.LOCAL_SHARE_FLOOR_GRANTED,meeting:e});break;case _n.WHITEBOARD_SHARE_ACTIVE:so.trigger(e,{file:"meeting/index",function:"startWhiteboardShare"},bn.MEETING_STARTED_SHARING_WHITEBOARD,{resourceUrl:a.resourceUrl,memberId:a.beneficiaryId}),Ki.postEvent({event:Ci.WHITEBOARD_SHARE_FLOOR_GRANTED,meeting:e});case _n.NO_SHARE:}e.members.locusMediaSharesUpdate(t)}else u===_n.REMOTE_SHARE_ACTIVE?(so.trigger(e,{file:"meetings/index",function:"remoteShare"},bn.MEETING_STARTED_SHARING_REMOTE,{memberId:o.beneficiaryId}),e.members.locusMediaSharesUpdate(t)):u===_n.WHITEBOARD_SHARE_ACTIVE&&(so.trigger(e,{file:"meeting/index",function:"startWhiteboardShare"},bn.MEETING_STARTED_SHARING_WHITEBOARD,{resourceUrl:a.resourceUrl,memberId:a.beneficiaryId}),Ki.postEvent({event:Ci.WHITEBOARD_SHARE_FLOOR_GRANTED,meeting:e}),e.members.locusMediaSharesUpdate(t))}}))}},{key:"setUpLocusUrlListener",value:function(){var e=this;this.locusInfo.on(xn.LOCUS_INFO_UPDATE_URL,(function(t){var r;e.members.locusUrlUpdate(t),e.locusUrl=t,e.locusId=null===(r=e.locusUrl)||void 0===r?void 0:r.split("/").pop(),e.recordingController.setLocusUrl(e.locusUrl),e.controlsOptionsManager.setLocusUrl(e.locusUrl)}))}},{key:"setUpLocusServicesListener",value:function(){var e=this;this.locusInfo.on(Un.EVENTS.LINKS_SERVICES,(function(t){var r,n,i,o;e.recordingController.setServiceUrl(null==t||null===(r=t.services)||void 0===r||null===(n=r.record)||void 0===n?void 0:n.url),e.recordingController.setSessionId(null===(i=e.locusInfo)||void 0===i||null===(o=i.fullState)||void 0===o?void 0:o.sessionId)}))}},{key:"setUpLocusInfoMeetingInfoListener",value:function(){var e=this;this.locusInfo.on(Un.EVENTS.MEETING_LOCKED,(function(t){t&&so.trigger(e,{file:"meeting/index",function:"setUpLocusInfoMeetingInfoListener"},bn.MEETING_LOCKED,{payload:t})})),this.locusInfo.on(Un.EVENTS.MEETING_UNLOCKED,(function(t){t&&so.trigger(e,{file:"meeting/index",function:"setUpLocusInfoMeetingInfoListener"},bn.MEETING_UNLOCKED,{payload:t})})),this.locusInfo.on(Un.EVENTS.MEETING_INFO_UPDATED,(function(t){if(t&&t.info){var r=e.inMeetingActions.set({canInviteNewParticipants:Ts.canInviteNewParticipants(t.info.userDisplayHints),canAdmitParticipant:Ts.canAdmitParticipant(t.info.userDisplayHints),canLock:Ts.canUserLock(t.info.userDisplayHints),canUnlock:Ts.canUserUnlock(t.info.userDisplayHints),canSetDisallowUnmute:Pp.canSetDisallowUnmute(t.info.userDisplayHints),canUnsetDisallowUnmute:Pp.canUnsetDisallowUnmute(t.info.userDisplayHints),canSetMuteOnEntry:Pp.canSetMuteOnEntry(t.info.userDisplayHints),canUnsetMuteOnEntry:Pp.canUnsetMuteOnEntry(t.info.userDisplayHints),canStartRecording:Lp.canUserStart(t.info.userDisplayHints),canStopRecording:Lp.canUserStop(t.info.userDisplayHints),canPauseRecording:Lp.canUserPause(t.info.userDisplayHints),canResumeRecording:Lp.canUserResume(t.info.userDisplayHints),canRaiseHand:Ts.canUserRaiseHand(t.info.userDisplayHints),canLowerAllHands:Ts.canUserLowerAllHands(t.info.userDisplayHints),canLowerSomeoneElsesHand:Ts.canUserLowerSomeoneElsesHand(t.info.userDisplayHints),bothLeaveAndEndMeetingAvailable:Ts.bothLeaveAndEndMeetingAvailable(t.info.userDisplayHints),canEnableClosedCaption:Ts.canEnableClosedCaption(t.info.userDisplayHints),canStartTranscribing:Ts.canStartTranscribing(t.info.userDisplayHints),canStopTranscribing:Ts.canStopTranscribing(t.info.userDisplayHints),isClosedCaptionActive:Ts.isClosedCaptionActive(t.info.userDisplayHints),isWebexAssistantActive:Ts.isWebexAssistantActive(t.info.userDisplayHints),canViewCaptionPanel:Ts.canViewCaptionPanel(t.info.userDisplayHints),isRealTimeTranslationEnabled:Ts.isRealTimeTranslationEnabled(t.info.userDisplayHints),canSelectSpokenLanguages:Ts.canSelectSpokenLanguages(t.info.userDisplayHints),waitingForOthersToJoin:Ts.waitingForOthersToJoin(t.info.userDisplayHints)});e.recordingController.setDisplayHints(t.info.userDisplayHints),e.controlsOptionsManager.setDisplayHints(t.info.userDisplayHints),r&&so.trigger(e,{file:"meeting/index",function:"setUpLocusInfoMeetingInfoListener"},bn.MEETING_ACTIONS_UPDATE,e.inMeetingActions.get())}}))}},{key:"setUpLocusEmbeddedAppsListener",value:function(){var e=this;this.locusInfo.on(Un.EVENTS.EMBEDDED_APPS_UPDATED,(function(t){t&&so.trigger(e,{file:"meeting/index",function:"setUpLocusEmbeddedAppsListener"},bn.MEETING_EMBEDDED_APPS_UPDATE,t)}))}},{key:"setUpLocusInfoSelfListener",value:function(){var e=this;this.locusInfo.on(Un.EVENTS.LOCAL_UNMUTE_REQUIRED,(function(t){e.audio&&(e.audio.handleServerLocalUnmuteRequired(e),so.trigger(e,{file:"meeting/index",function:"setUpLocusInfoSelfListener"},bn.MEETING_SELF_UNMUTED_BY_OTHERS,{payload:t}))})),this.locusInfo.on(Un.EVENTS.SELF_REMOTE_MUTE_STATUS_UPDATED,(function(t){var r;t&&(e.audio&&e.audio.handleServerRemoteMuteUpdate(t.muted,t.unmuteAllowed),!t.muted&&null!==(r=e.audio)&&void 0!==r&&r.isMuted()||so.trigger(e,{file:"meeting/index",function:"setUpLocusInfoSelfListener"},t.muted?bn.MEETING_SELF_MUTED_BY_OTHERS:bn.MEETING_SELF_UNMUTED_BY_OTHERS,{payload:t}))})),this.locusInfo.on(Un.EVENTS.LOCAL_UNMUTE_REQUESTED,(function(t){so.trigger(e,{file:"meeting/index",function:"setUpLocusInfoSelfListener"},bn.MEETING_SELF_REQUESTED_TO_UNMUTE,{payload:t})})),this.locusInfo.on(Un.EVENTS.SELF_UNADMITTED_GUEST,(function(t){t&&(e.startKeepAlive(),so.trigger(e,{file:"meeting/index",function:"setUpLocusInfoSelfListener"},bn.MEETING_SELF_LOBBY_WAITING,{payload:t}),Ki.postEvent({event:Ci.LOBBY_ENTERED,meeting:e}))})),this.locusInfo.on(Un.EVENTS.SELF_ADMITTED_GUEST,(function(t){e.stopKeepAlive(),t&&(so.trigger(e,{file:"meeting/index",function:"setUpLocusInfoSelfListener"},bn.MEETING_SELF_GUEST_ADMITTED,{payload:t}),Ki.postEvent({event:Ci.LOBBY_EXITED,meeting:e}))})),this.locusInfo.on(Un.EVENTS.MEDIA_INACTIVITY,(function(){Ki.sendBehavioralMetric(Lo.MEETING_MEDIA_INACTIVE,{correlation_id:e.correlationId,locus_id:e.locusId}),e.reconnect()})),this.locusInfo.on(Un.EVENTS.MEDIA_STATUS_CHANGE,(function(t){var r,n,i,o,a,s,c,u;e.statsAnalyzer&&e.statsAnalyzer.updateMediaStatus({actual:t,expected:{sendAudio:(null===(r=e.mediaProperties.mediaDirection)||void 0===r?void 0:r.sendAudio)&&!(null!==(n=e.audio)&&void 0!==n&&n.isMuted()),sendVideo:(null===(i=e.mediaProperties.mediaDirection)||void 0===i?void 0:i.sendVideo)&&!(null!==(o=e.video)&&void 0!==o&&o.isMuted()),sendShare:null===(a=e.mediaProperties.mediaDirection)||void 0===a?void 0:a.sendShare,receiveAudio:null===(s=e.mediaProperties.mediaDirection)||void 0===s?void 0:s.receiveAudio,receiveVideo:null===(c=e.mediaProperties.mediaDirection)||void 0===c?void 0:c.receiveVideo,receiveShare:null===(u=e.mediaProperties.mediaDirection)||void 0===u?void 0:u.receiveShare}})})),this.locusInfo.on(Un.EVENTS.SELF_CANNOT_VIEW_PARTICIPANT_LIST_CHANGE,(function(t){so.trigger(e,{file:"meeting/index",function:"setUpLocusInfoSelfListener"},bn.MEETING_SELF_CANNOT_VIEW_PARTICIPANT_LIST,{payload:t})})),this.locusInfo.on(Un.EVENTS.SELF_IS_SHARING_BLOCKED_CHANGE,(function(t){so.trigger(e,{file:"meeting/index",function:"setUpLocusInfoSelfListener"},bn.MEETING_SELF_IS_SHARING_BLOCKED,{payload:t})}))}},{key:"setUpLocusInfoMeetingListener",value:function(){var e=this;this.locusInfo.on(xn.REMOTE_RESPONSE,(function(t){e.meetingFiniteStateMachine.remote(t),t.remoteDeclined&&e.leave({reason:t.reason}).then((function(){Ke.logger.info("Meeting:index#setUpLocusInfoMeetingListener --\x3e REMOTE_RESPONSE. Attempting to leave meeting.")})).catch((function(t){Ke.logger.error("Meeting:index#setUpLocusInfoMeetingListener --\x3e REMOTE_RESPONSE. Issue with leave for meeting, meeting still in collection: ".concat(e,", error: ").concat(t))}))})),this.locusInfo.on(xn.DESTROY_MEETING,(function(t){e.wirelessShare&&e.mediaProperties.shareTrack&&(e.mediaProperties.shareTrack.onended=null,e.mediaProperties.shareTrack.stop()),t.shouldLeave?e.leave({reason:t.reason}).then((function(){Ke.logger.warn("Meeting:index#setUpLocusInfoMeetingListener --\x3e DESTROY_MEETING. The meeting has been left, but has not been destroyed, you should see a later event for leave.")})).catch((function(t){Ke.logger.error("Meeting:index#setUpLocusInfoMeetingListener --\x3e DESTROY_MEETING. Issue with leave for meeting, meeting still in collection: ".concat(e,", error: ").concat(t))})):(Ke.logger.info("Meeting:index#setUpLocusInfoMeetingListener --\x3e MEETING_REMOVED_REASON",t.reason),Ts.cleanUp(e),so.trigger(e,{file:"meeting/index",function:"setUpLocusInfoMeetingListener"},xn.DESTROY_MEETING,{reason:t.reason,meetingId:e.id}))}))}},{key:"updateMeetingObject",value:function(e){var t=this;e&&x()(e).length&&x()(e).forEach((function(r){t[r]=e[r]}))}},{key:"invite",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.members.addMember(e,t)}},{key:"cancelPhoneInvite",value:function(e){return this.members.cancelPhoneInvite(e)}},{key:"admit",value:function(e){return this.members.admitMembers(e)}},{key:"remove",value:function(e){return this.members.removeMember(e)}},{key:"mute",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.members.muteMember(e,t)}},{key:"transfer",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.members.transferHostToMember(e,t)}},{key:"getMembers",value:function(){return this.members}},{key:"isAudioConnected",value:function(){return!!this.audio}},{key:"isAudioMuted",value:function(){return this.audio&&this.audio.isMuted()}},{key:"isAudioSelf",value:function(){return this.audio&&this.audio.isSelf()}},{key:"isVideoConnected",value:function(){return!!this.video}},{key:"isVideoMuted",value:function(){return this.video&&this.video.isMuted()}},{key:"isVideoSelf",value:function(){return this.video&&this.video.isSelf()}},{key:"parseMeetingInfo",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=null==e?void 0:e.body;if(r&&(t="object"===(0,Ks.Z)(r)?r:void 0),t||n&&!(null!=e&&e.errors&&(null==e?void 0:e.errors.length)>0)){var i,o,a,s,c,u;if(this.conversationUrl=(null===(i=t)||void 0===i?void 0:i.conversationUrl)||(null==n?void 0:n.conversationUrl)||this.conversationUrl,this.locusUrl=(null===(o=t)||void 0===o?void 0:o.url)||(null==n?void 0:n.locusUrl)||this.locusUrl,this.setSipUri(this.config.experimental.enableUnifiedMeetings?(null===(a=t)||void 0===a?void 0:a.info.sipUri)||(null==n?void 0:n.sipUrl):(null===(s=t)||void 0===s?void 0:s.info.sipUri)||(null==n?void 0:n.sipMeetingUri)||this.sipUri),this.config.experimental.enableUnifiedMeetings)this.meetingNumber=(null===(u=t)||void 0===u?void 0:u.info.webExMeetingId)||(null==n?void 0:n.meetingNumber),this.meetingJoinUrl=null==n?void 0:n.meetingJoinUrl;this.owner=(null===(c=t)||void 0===c?void 0:c.info.owner)||(null==n?void 0:n.owner)||(null==n?void 0:n.hostId)||this.owner,this.permissionToken=null==n?void 0:n.permissionToken}}},{key:"parseLocus",value:function(e){e&&(this.locusUrl=e.url,this.setLocus(e),e.participants&&e.self&&(this.partner=Ts.getLocusPartner(e.participants,e.self)),!this.sipUri&&this.partner&&this.type===Qt&&this.setSipUri(this.partner.person.sipUrl||this.partner.person.id))}},{key:"setSipUri",value:function(e){this.sipUri=e}},{key:"setRoapSeq",value:function(e){e>=0&&(this.roapSeq=e)}},{key:"setLocus",value:function(e){var t=e.locus||e;this.mediaConnections=e.mediaConnections,this.locusUrl=e.locusUrl||e.url,this.locusId=e.locusId,this.selfId=e.selfId,this.mediaId=e.mediaId,this.hostId=t.host?t.host.id:this.hostId,this.locusInfo.initialSetup(t)}},{key:"setRemoteStream",value:function(e){var t=this;e&&(e.ontrack=function(e){Ke.logger.log("Meeting:index#setRemoteStream --\x3e ontrack event received for peerConnection: ".concat(e));var r="0",n="1",i="2",o=null,a=e.track,s=null;if(e.transceiver&&e.transceiver.mid)s=e.transceiver.mid;else{var c=e.target,u=c.audioTransceiver,l=c.videoTransceiver,d=c.shareTransceiver;a.id===u.receiver.track.id?s="0":a.id===l.receiver.track.id?s="1":a.id===d.receiver.track.id?s="2":(s=null,Ki.sendBehavioralMetric(Lo.MUTE_AUDIO_FAILURE,{correlation_id:t.correlationId,locus_id:t.locusUrl.split("/").pop()}))}switch(s){case r:o=Rn.REMOTE_AUDIO,t.mediaProperties.setRemoteAudioTrack(a);break;case n:o=Rn.REMOTE_VIDEO,t.mediaProperties.setRemoteVideoTrack(a);break;case i:e.track&&(o=Rn.REMOTE_SHARE,t.mediaProperties.setRemoteShare(a));break;default:Ke.logger.log("Meeting:index#setRemoteStream --\x3e no matching media track id")}t.statsAnalyzer.startAnalyzer(t.mediaProperties.peerConnection),o&&a&&so.trigger(t,{file:"meeting/index",function:"setRemoteStream:pc.ontrack"},bn.MEDIA_READY,{type:o,stream:yf.createMediaStream([a])})})}},{key:"uploadLogs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{file:"meeting/index",function:"uploadLogs"};so.trigger(this,e,xn.REQUEST_UPLOAD_LOGS,this)}},{key:"unsetRemoteStream",value:function(){Ke.logger.warn("Meeting:index#unsetRemoteStream --\x3e [DEPRECATION WARNING]: unsetRemoteStream has been deprecated after v1.89.3"),this.mediaProperties.unsetRemoteMedia()}},{key:"unsetRemoteTracks",value:function(){this.mediaProperties.unsetRemoteTracks()}},{key:"closeRemoteStream",value:function(){Ke.logger.warn("Meeting:index#closeRemoteStream --\x3e [DEPRECATION WARNING]: closeRemoteStream has been deprecated after v1.89.3"),this.closeRemoteTracks()}},{key:"closeRemoteTracks",value:function(){var e=this,t=this.mediaProperties,r=t.remoteAudioTrack,n=t.remoteVideoTrack,i=t.remoteShare,o=function(t,r){return ss.stopTracks(t).then((function(){var n=t&&t.readyState===Et,i=t&&!n;n?function(t){so.trigger(e,{file:"meeting/index",function:"closeRemoteTracks"},bn.MEDIA_STOPPED,{type:t})}(r):i&&Ke.logger.warn("Meeting:index#closeRemoteTracks --\x3e Error: MediaStreamTrack.readyState is ".concat(t.readyState," for ").concat(r))}))};return R().all([o(r,Rn.REMOTE_AUDIO),o(n,Rn.REMOTE_VIDEO),o(i,Rn.REMOTE_SHARE)])}},{key:"sendLocalMediaReadyEvent",value:function(){so.trigger(this,{file:"meeting/index",function:"setLocalTracks"},bn.MEDIA_READY,{type:Rn.LOCAL,stream:yf.createMediaStream([this.mediaProperties.audioTrack,this.mediaProperties.videoTrack])})}},{key:"setLocalAudioTrack",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e){var r=e.getSettings();this.mediaProperties.setMediaSettings("audio",{echoCancellation:r.echoCancellation,noiseSuppression:r.noiseSuppression}),Ke.logger.log("Meeting:index#setLocalAudioTrack --\x3e Audio settings.",uo()(this.mediaProperties.mediaSettings.audio)),this.mediaProperties.setLocalAudioTrack(e),this.audio&&this.audio.applyClientStateLocally(this)}t&&this.sendLocalMediaReadyEvent()}},{key:"setLocalVideoTrack",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e){var r=e.getSettings(),n=r.aspectRatio,i=r.frameRate,o=r.height,a=r.width,s=r.deviceId,c=this.mediaProperties.localQualityLevel;Number(c.slice(0,-1))>o&&(Ke.logger.warn("Meeting:index#setLocalVideoTrack --\x3e Local video quality of ".concat(c," not supported,\n downscaling to highest possible resolution of ").concat(o,"p")),this.mediaProperties.setLocalQualityLevel("".concat(o,"p"))),this.mediaProperties.setLocalVideoTrack(e),this.video&&this.video.applyClientStateLocally(this),this.mediaProperties.setMediaSettings("video",{aspectRatio:n,frameRate:i,height:o,width:a}),s&&this.mediaProperties.setVideoDeviceId(s),Ke.logger.log("Meeting:index#setLocalVideoTrack --\x3e Video settings.",uo()(this.mediaProperties.mediaSettings.video))}t&&this.sendLocalMediaReadyEvent()}},{key:"setLocalTracks",value:function(e){if(e){var t=Ts.getTrack(e),r=t.audioTrack,n=t.videoTrack;this.setLocalAudioTrack(r,!1),this.setLocalVideoTrack(n,!1),this.sendLocalMediaReadyEvent()}}},{key:"setLocalShareTrack",value:function(e){var t=this,r=null;if(e){this.mediaProperties.setLocalShareTrack(Ts.getTrack(e).videoTrack);var n=this.mediaProperties.shareTrack;n&&(r=n.getSettings(),this.mediaProperties.setMediaSettings("screen",{aspectRatio:r.aspectRatio,frameRate:r.frameRate,height:r.height,width:r.width,displaySurface:r.displaySurface,cursor:r.cursor}),Ke.logger.log("Meeting:index#setLocalShareTrack --\x3e Screen settings.",uo()(this.mediaProperties.mediaSettings.screen))),n.onended=function(){return t.handleShareTrackEnded(e)},so.trigger(this,{file:"meeting/index",function:"setLocalShareTrack"},bn.MEDIA_READY,{type:Rn.LOCAL_SHARE,stream:e})}}},{key:"closeLocalStream",value:function(){var e=this,t=this.mediaProperties,r=t.audioTrack,n=t.videoTrack;return ss.stopTracks(r).then((function(){return ss.stopTracks(n)})).then((function(){var t=r&&r.readyState===Et,i=n&&n.readyState===Et;t||i?so.trigger(e,{file:"meeting/index",function:"closeLocalStream"},bn.MEDIA_STOPPED,{type:Rn.LOCAL}):(r||n)&&Ke.logger.warn("Meeting:index#closeLocalStream --\x3e Warning: track might already been ended or unavaliable.")}))}},{key:"closeLocalShare",value:function(){var e=this,t=this.mediaProperties.shareTrack;return ss.stopTracks(t).then((function(){t&&t.readyState===Et?so.trigger(e,{file:"meeting/index",function:"closeLocalShare"},bn.MEDIA_STOPPED,{type:Rn.LOCAL_SHARE}):t&&Ke.logger.warn("Meeting:index#closeLocalShare --\x3e Error: MediaStreamTrack.readyState is ".concat(t.readyState," for localShare"))}))}},{key:"unsetLocalVideoTrack",value:function(){this.mediaProperties.unsetLocalVideoTrack()}},{key:"unsetLocalShareTrack",value:function(){this.mediaProperties.unsetLocalShareTrack()}},{key:"setMercuryListener",value:function(){var e=this;this.webex.internal.mercury.on(Dt,(function(){Ke.logger.info("Meeting:index#setMercuryListener --\x3e Web socket online"),e.hasWebsocketConnected||(Ki.postEvent({event:Ci.MERCURY_CONNECTION_RESTORED,meeting:e}),Ki.sendBehavioralMetric(Lo.MERCURY_CONNECTION_RESTORED,{correlation_id:e.correlationId})),e.hasWebsocketConnected=!0})),this.webex.internal.mercury.on(Mt,(function(){Ke.logger.error("Meeting:index#setMercuryListener --\x3e Web socket offline"),Ki.postEvent({event:Ci.MERCURY_CONNECTION_LOST,meeting:e}),Ki.sendBehavioralMetric(Lo.MERCURY_CONNECTION_FAILURE,{correlation_id:e.correlationId})}))}},{key:"closePeerConnections",value:function(){return es.close(this.mediaProperties.peerConnection)}},{key:"unsetPeerConnections",value:function(){this.mediaProperties.unsetPeerConnection(),this.config.reconnection.detection&&this.webex.internal.mercury.off(Dt)}},{key:"setCorrelationId",value:function(e){this.correlationId=e}},{key:"muteAudio",value:function(){var e=this;if(!Ts.isUserInJoinedState(this.locusInfo))return R().reject(new Zo);if(!this.mediaId)return R().reject(new Vo);if(!this.audio)return R().reject(new no("no audio control associated to the meeting"));var t="Meeting:index#muteAudio --\x3e";return Jp(this.audio.handleClientRequest(this,!0).then((function(){Ts.handleAudioLogging(e.mediaProperties.audioTrack),Ki.postEvent({event:Ci.MUTED,meeting:e,data:{trigger:ki,mediaType:Pi}})})).catch((function(t){throw Ki.sendBehavioralMetric(Lo.MUTE_AUDIO_FAILURE,{correlation_id:e.correlationId,locus_id:e.locusUrl.split("/").pop(),reason:t.message,stack:t.stack}),t})),{header:"".concat(t," muting audio"),success:"".concat(t," muted audio successfully"),failure:"".concat(t," muting audio failed, ")})}},{key:"unmuteAudio",value:function(){var e=this;if(!Ts.isUserInJoinedState(this.locusInfo))return R().reject(new Zo);if(!this.mediaId)return R().reject(new Vo);if(!this.audio)return R().reject(new no("no audio control associated to the meeting"));var t="Meeting:index#unmuteAudio --\x3e";return Jp(this.audio.handleClientRequest(this,!1).then((function(){Ts.handleAudioLogging(e.mediaProperties.audioTrack),Ki.postEvent({event:Ci.UNMUTED,meeting:e,data:{trigger:ki,mediaType:Pi}})})).catch((function(t){throw Ki.sendBehavioralMetric(Lo.UNMUTE_AUDIO_FAILURE,{correlation_id:e.correlationId,locus_id:e.locusUrl.split("/").pop(),reason:t.message,stack:t.stack}),t})),{header:"".concat(t," unmuting audio"),success:"".concat(t," unmuted audio successfully"),failure:"".concat(t," unmuting audio failed, ")})}},{key:"muteVideo",value:function(){var e=this;if(!Ts.isUserInJoinedState(this.locusInfo))return R().reject(new Zo);if(!this.mediaId)return R().reject(new Vo);if(!this.video)return R().reject(new no("no video control associated to the meeting"));var t="Meeting:index#muteVideo --\x3e";return Jp(this.video.handleClientRequest(this,!0).then((function(){Ts.handleVideoLogging(e.mediaProperties.videoTrack),Ki.postEvent({event:Ci.MUTED,meeting:e,data:{trigger:ki,mediaType:Mi}})})).catch((function(t){throw Ki.sendBehavioralMetric(Lo.MUTE_VIDEO_FAILURE,{correlation_id:e.correlationId,locus_id:e.locusUrl.split("/").pop(),reason:t.message,stack:t.stack}),t})),{header:"".concat(t," muting video"),success:"".concat(t," muted video successfully"),failure:"".concat(t," muting video failed, ")})}},{key:"unmuteVideo",value:function(){var e=this;if(!Ts.isUserInJoinedState(this.locusInfo))return R().reject(new Zo);if(!this.mediaId)return R().reject(new Vo);if(!this.video)return R().reject(new no("no audio control associated to the meeting"));var t="Meeting:index#unmuteVideo --\x3e";return Jp(this.video.handleClientRequest(this,!1).then((function(){Ts.handleVideoLogging(e.mediaProperties.videoTrack),Ki.postEvent({event:Ci.UNMUTED,meeting:e,data:{trigger:ki,mediaType:Mi}})})).catch((function(t){throw Ki.sendBehavioralMetric(Lo.UNMUTE_VIDEO_FAILURE,{correlation_id:e.correlationId,locus_id:e.locusUrl.split("/").pop(),reason:t.message,stack:t.stack}),t})),{header:"".concat(t," unmuting video"),success:"".concat(t," unmuted video successfully"),failure:"".concat(t," unmuting video failed, ")})}},{key:"joinWithMedia",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.mediaSettings,n=t.joinOptions,i=t.audioVideoOptions;return this.join(n).then((function(t){return e.getMediaStreams(r,i).then((function(n){var i=(0,cs.Z)(n,2),o=i[0],a=i[1];return e.addMedia({mediaSettings:r,localShare:a,localStream:o}).then((function(e){return{join:t,media:e,local:[o,a]}}))}))})).catch((function(t){return Ke.logger.error("Meeting:index#joinWithMedia --\x3e ",t),Ki.sendBehavioralMetric(Lo.JOIN_WITH_MEDIA_FAILURE,{correlation_id:e.correlationId,locus_id:e.locusUrl.split("/").pop(),reason:t.message,stack:t.stack},{type:t.name}),R().reject(t)}))}},{key:"reconnect",value:function(e){var t=this;if(Ke.logger.log("Meeting:index#reconnect --\x3e attempting to reconnect meeting ".concat(this.id)),!this.reconnectionManager||!this.reconnectionManager.reconnect)return R().reject(new no("Cannot reconnect, ReconnectionManager must first be defined."));if(!Ts.isMediaEstablished(this.currentMediaStatus))return R().reject(new no("Cannot reconnect, Media has not established to reconnect"));try{Ke.logger.info("Meeting:index#reconnect --\x3e Validating reconnect ability."),this.reconnectionManager.validate()}catch(e){return e instanceof dp?Ke.logger.info("Meeting:index#reconnect --\x3e Unable to reconnect, reconnection in progress."):Ke.logger.log("Meeting:index#reconnect --\x3e Unable to reconnect.",e),R().resolve()}return so.trigger(this,{file:"meeting/index",function:"reconnect"},bn.MEETING_RECONNECTION_STARTING),this.reconnectionManager.reconnect(e).then((function(){so.trigger(t,{file:"meeting/index",function:"reconnect"},bn.MEETING_RECONNECTION_SUCCESS),Ke.logger.log("Meeting:index#reconnect --\x3e Meeting reconnect success")})).catch((function(e){return so.trigger(t,{file:"meeting/index",function:"reconnect"},bn.MEETING_RECONNECTION_FAILURE,{error:new rs("Reconnection failure event",e)}),Ke.logger.error("Meeting:index#reconnect --\x3e Meeting reconnect failed",e),Ki.sendBehavioralMetric(Lo.MEETING_RECONNECT_FAILURE,{correlation_id:t.correlationId,locus_id:t.locusUrl.split("/").pop(),reason:e.message,stack:e.stack}),t.uploadLogs({file:"meeting/index",function:"reconnect"}),R().reject(new rs("Reconnection failure event",e))})).finally((function(){t.reconnectionManager.reset()}))}},{key:"isTranscriptionSupported",value:function(){var e;return!(null===(e=this.locusInfo.controls.transcribe)||void 0===e||!e.transcribing)||(Ke.logger.error("Meeting:index#isTranscriptionSupported --\x3e Webex Assistant is not supported"),!1)}},{key:"monitorTranscriptionSocketConnection",value:function(){var e=this;this.transcription.onCloseSocket((function(t){Ke.logger.info("Meeting:index#onCloseSocket --\x3e\n unable to continue receiving transcription;\n low-latency mercury web socket connection is closed now.\n ".concat(t)),e.triggerStopReceivingTranscriptionEvent()})),this.transcription.onErrorSocket((function(t){Ke.logger.error("Meeting:index#onErrorSocket --\x3e\n unable to continue receiving transcription;\n low-latency mercury web socket connection error had occured.\n ".concat(t)),e.triggerStopReceivingTranscriptionEvent(),Ki.sendBehavioralMetric(Lo.RECEIVE_TRANSCRIPTION_FAILURE,{correlation_id:e.correlationId,reason:"unexpected error: transcription LLM web socket connection error had occured.",event:t})}))}},{key:"receiveTranscription",value:(n=(0,f.Z)(_().mark((function e(){var t,r,n,i=this;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Ke.logger.info("Meeting:index#receiveTranscription --\x3e\n Attempting to generate a web socket url."),e.prev=1,t=this.locusInfo.info.datachannelUrl,e.next=5,this.request({method:Nn.POST,uri:t,body:{deviceUrl:this.deviceUrl}});case 5:r=e.sent,n=r.body.webSocketUrl,Ke.logger.info("Meeting:index#receiveTranscription --\x3e\n Generated web socket url succesfully."),this.transcription=new jp(n,this.webex.sessionId,this.members),Ke.logger.info("Meeting:index#receiveTranscription --\x3e\n opened LLM web socket connection successfully."),this.transcription.subscribe((function(e){so.trigger(i,{file:"meeting/index",function:"join"},bn.MEETING_STARTED_RECEIVING_TRANSCRIPTION,e)})),this.monitorTranscriptionSocketConnection(),this.transcription.connect(this.webex.credentials.supertoken.access_token),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(1),Ke.logger.error("Meeting:index#receiveTranscription --\x3e ".concat(e.t0)),Ki.sendBehavioralMetric(Lo.RECEIVE_TRANSCRIPTION_FAILURE,{correlation_id:this.correlationId,reason:e.t0.message,stack:e.t0.stack});case 19:case"end":return e.stop()}}),e,this,[[1,15]])}))),function(){return n.apply(this,arguments)})},{key:"stopReceivingTranscription",value:function(){this.transcription&&this.transcription.closeSocket()}},{key:"triggerStopReceivingTranscriptionEvent",value:function(){Ke.logger.info("\n Meeting:index#stopReceivingTranscription --\x3e\n closed transcription LLM web socket connection successfully."),so.trigger(this,{file:"meeting",function:"triggerStopReceivingTranscriptionEvent"},bn.MEETING_STOPPED_RECEIVING_TRANSCRIPTION)}},{key:"join",value:function(){var e,t,r=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.webex.meetings.registered){var i="Meeting:index#join --\x3e Device not registered",o=new Error(i);return Ke.logger.error(i),R().reject(o)}if(this.deferJoin)return this.deferJoin;if(this.deferJoin=new(R())((function(r,n){e=n,t=r})),this.hasJoinedOnce?(Ke.logger.log("Meeting:index#join --\x3e Generating a new correlation id for meeting ".concat(this.id)),Ke.logger.log("Meeting:index#join --\x3e Previous correlation id ".concat(this.correlationId)),this.setCorrelationId(Be().v4()),Ke.logger.log("Meeting:index#join --\x3e New correlation id ".concat(this.correlationId))):this.hasJoinedOnce=!0,n.rejoin&&this.meetingFiniteStateMachine.reset(),Ki.postEvent({event:Ci.CALL_INITIATED,meeting:this,data:{trigger:ki,isRoapCallEnabled:!0}}),Ke.logger.log("Meeting:index#join --\x3e Joining a meeting"),this.meetingFiniteStateMachine.state===Hn.STATES.ENDED&&this.meetingFiniteStateMachine.reset(),this.meetingFiniteStateMachine.state!==Hn.STATES.RINGING&&this.meetingFiniteStateMachine.ring(lr),n.resourceId&&this.destination&&n.resourceId===this.destination&&(this.wirelessShare=!0),n.meetingQuality){if("string"==typeof n.meetingQuality){if(!oi[n.meetingQuality]){var a="Meeting:index#join --\x3e ".concat(n.meetingQuality," not defined"),s=new Error(a);return Ke.logger.error(a),e(s),this.deferJoin=void 0,R().reject(s)}this.mediaProperties.setLocalQualityLevel(n.meetingQuality),this.mediaProperties.setRemoteQualityLevel(n.meetingQuality)}if("object"===(0,Ks.Z)(n.meetingQuality)){if(!oi[n.meetingQuality.local]&&!oi[n.meetingQuality.remote]){var c="Meeting:index#join --\x3e ".concat(n.meetingQuality.local||n.meetingQuality.remote," not defined");Ke.logger.error(c);var u=new Error(c);return e(u),this.deferJoin=void 0,R().reject(new Error(c))}n.meetingQuality.local&&this.mediaProperties.setLocalQualityLevel(n.meetingQuality.local),n.meetingQuality.remote&&this.mediaProperties.setRemoteQualityLevel(n.meetingQuality.remote)}}return Ts.joinMeetingOptions(this,n).then((function(e){return r.meetingFiniteStateMachine.join(),Ke.logger.log("Meeting:index#join --\x3e Success"),e})).then((function(e){return t(e),r.deferJoin=void 0,Ki.sendBehavioralMetric(Lo.JOIN_SUCCESS,{correlation_id:r.correlationId}),e})).then(function(){var e=(0,f.Z)(_().mark((function e(t){return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Yp){e.next=8;break}if(!r.config.receiveTranscription&&!n.receiveTranscription){e.next=6;break}if(!r.isTranscriptionSupported()){e.next=6;break}return e.next=5,r.receiveTranscription();case 5:Ke.logger.info("Meeting:index#join --\x3e enabled to recieve transcription!");case 6:e.next=9;break;case 8:Ke.logger.error("Meeting:index#join --\x3e Receving transcription is not supported on this platform");case 9:return e.abrupt("return",t);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(t){var n;return r.meetingFiniteStateMachine.fail(t),Ke.logger.error("Meeting:index#join --\x3e Failed",t),Ki.postEvent({event:Ci.LOCUS_JOIN_RESPONSE,meeting:r,meetingId:r.id,data:{errors:[Ki.parseLocusError(t.error,!0)]}}),Ki.sendBehavioralMetric(Lo.JOIN_FAILURE,{correlation_id:r.correlationId,reason:null===(n=t.error)||void 0===n?void 0:n.message,stack:t.stack}),so.trigger(r,{file:"meeting/index",function:"join"},xn.REQUEST_UPLOAD_LOGS,r),e(t),r.deferJoin=void 0,R().reject(t)}))}},{key:"usePhoneAudio",value:function(e){return e?this.dialOutPstn(e):this.dialInPstn()}},{key:"isPhoneProvisioned",value:function(e){return[fi.JOINED,fi.CONNECTED,fi.SUCCESS].includes(e)}},{key:"dialInPstn",value:function(){var e=this;if(this.isPhoneProvisioned(this.dialInDeviceStatus))return R().resolve();var t=this.correlationId,r=this.locusUrl;return this.dialInUrl||(this.dialInUrl="dialin:///".concat(Be().v4())),this.meetingRequest.dialIn({correlationId:t,dialInUrl:this.dialInUrl,locusUrl:r,clientUrl:this.deviceUrl}).then((function(t){e.locusInfo.onFullLocus(t.body.locus)})).catch((function(t){var n;return Ki.sendBehavioralMetric(Lo.ADD_DIAL_IN_FAILURE,{correlation_id:e.correlationId,dial_in_url:e.dialInUrl,locus_id:r.split("/").pop(),client_url:e.deviceUrl,reason:null===(n=t.error)||void 0===n?void 0:n.message,stack:t.stack}),R().reject(t)}))}},{key:"dialOutPstn",value:function(e){var t=this;if(this.isPhoneProvisioned(this.dialOutDeviceStatus))return R().resolve();var r=this.correlationId,n=this.locusUrl;return this.dialOutUrl||(this.dialOutUrl="dialout:///".concat(Be().v4())),this.meetingRequest.dialOut({correlationId:r,dialOutUrl:this.dialOutUrl,phoneNumber:e,locusUrl:n,clientUrl:this.deviceUrl}).then((function(e){t.locusInfo.onFullLocus(e.body.locus)})).catch((function(e){var r;return Ki.sendBehavioralMetric(Lo.ADD_DIAL_OUT_FAILURE,{correlation_id:t.correlationId,dial_out_url:t.dialOutUrl,locus_id:n.split("/").pop(),client_url:t.deviceUrl,reason:null===(r=e.error)||void 0===r?void 0:r.message,stack:e.stack}),R().reject(e)}))}},{key:"disconnectPhoneAudio",value:function(){return R().all([this.isPhoneProvisioned(this.dialInDeviceStatus)?Ts.disconnectPhoneAudio(this,this.dialInUrl):R().resolve(),this.isPhoneProvisioned(this.dialOutDeviceStatus)?Ts.disconnectPhoneAudio(this,this.dialOutUrl):R().resolve()])}},{key:"moveTo",value:function(e){var t=this;if(!e)throw new no("Cannot move call without a resourceId.");return Ki.postEvent({event:Ci.MEDIA_CAPABILITIES,meeting:this,data:{mediaCapabilities:{rx:{audio:!1,share:!0,share_audio:!1,video:!1,whiteboard:!1},tx:{audio:!1,share:!1,share_audio:!1,video:!1,whiteboard:!1}}}}),Ki.postEvent({event:Ci.MOVE_MEDIA,meeting:this}),this.locusInfo.once(Un.EVENTS.SELF_OBSERVING,(0,f.Z)(_().mark((function e(){var r;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!t.isSharing){e.next=4;break}return e.next=4,t.releaseScreenShareFloor();case 4:return r={mediaDirection:{sendVideo:!1,receiveVideo:!1,sendAudio:!1,receiveAudio:!1,sendShare:!1,receiveShare:!0}},t.mediaProperties.setMediaDirection(r.mediaDirection),e.next=8,t.closeLocalStream();case 8:return e.next=10,t.closeLocalShare();case 10:return t.mediaProperties.unsetMediaTracks(),e.next=13,t.reconnectionManager.reconnectMedia(r).then((function(){Ki.sendBehavioralMetric(Lo.MOVE_TO_SUCCESS)}));case 13:e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),Ke.logger.error("Meeting:index#moveTo --\x3e Failed to moveTo resourceId",e.t0),Ki.sendBehavioralMetric(Lo.MOVE_TO_FAILURE,{correlation_id:t.correlationId,locus_id:t.locusUrl.split("/").pop(),reason:e.t0.message,stack:e.t0.stack});case 19:case"end":return e.stop()}}),e,null,[[0,15]])})))),Ke.logger.info("Meeting:index#moveTo --\x3e Initated moved to using resourceId",e),Ts.joinMeetingOptions(this,{resourceId:e,moveToResource:!0}).then((function(){t.meetingFiniteStateMachine.join()})).catch((function(e){return t.meetingFiniteStateMachine.fail(e),Ki.sendBehavioralMetric(Lo.MOVE_TO_FAILURE,{correlation_id:t.correlationId,locus_id:t.locusUrl.split("/").pop(),reason:e.message,stack:e.stack}),Ke.logger.error("Meeting:index#moveTo --\x3e Failed to moveTo resourceId",e),R().reject(e)}))}},{key:"moveFrom",value:function(e){var t=this;if(!e)throw new no("Cannot move call without a resourceId.");var r=this.correlationId;return Ki.postEvent({event:Ci.MOVE_MEDIA,meeting:this}),Ts.joinMeetingOptions(this).then((function(){return Ts.leaveMeeting(t,{resourceId:e,correlationId:r,moveMeeting:!0}).then((function(){t.resourceId="",Ki.sendBehavioralMetric(Lo.MOVE_FROM_SUCCESS)}))})).catch((function(e){return t.meetingFiniteStateMachine.fail(e),Ki.sendBehavioralMetric(Lo.MOVE_FROM_FAILURE,{correlation_id:t.correlationId,locus_id:t.locusUrl.split("/").pop(),reason:e.message,stack:e.stack}),Ke.logger.error("Meeting:index#moveTo --\x3e Failed to moveTo resourceId",e),R().reject(e)}))}},{key:"addMedia",value:function(){var e,t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n="Meeting:index#addMedia --\x3e",i=!1;if(this.meetingState!==kn.ACTIVE)return R().reject(new Bo);if(Ts.isUserInLeftState(this.locusInfo))return R().reject(new Zo);if(this.isUserUnadmitted&&!this.wirelessShare)return R().reject(new Go);var o=r.localStream,a=r.localShare,s=r.mediaSettings;return Ke.logger.info("".concat(n," Adding Media.")),Ki.postEvent({event:Ci.MEDIA_CAPABILITIES,meeting:this,data:{mediaCapabilities:{rx:{audio:!1,share:!1,share_audio:!1,video:!1,whiteboard:!1},tx:{audio:!1,share:!1,share_audio:!1,video:!1,whiteboard:!1}}}}),Ts.validateOptions(r).then((function(){return t.roap.doTurnDiscovery(t,!1)})).then((function(r){e=r.turnDiscoverySkippedReason,i=!e;var n=r.turnServerInfo;return t.mediaProperties.setMediaPeerConnection(yf.createPeerConnection(n)),t.setMercuryListener(),es.setPeerConnectionEvents(t),t.preMedia(o,a,s)})).then((function(){return ss.attachMedia(t.mediaProperties,{meetingId:t.id,remoteQualityLevel:t.mediaProperties.remoteQualityLevel,enableRtx:t.config.enableRtx,enableExtmap:t.config.enableExtmap,setStartLocalSDPGenRemoteSDPRecvDelay:t.setStartLocalSDPGenRemoteSDPRecvDelay.bind(t)})})).then((function(e){return t.getDevices().then((function(t){return Ts.handleDeviceLogging(t),e}))})).then((function(e){t.handleMediaLogging(t.mediaProperties),Ke.logger.info("".concat(n," PeerConnection Received from attachMedia ")),t.setRemoteStream(e),t.config.stats.enableStatsAnalyzer&&(t.networkQualityMonitor=new Kd(t.config.stats),t.statsAnalyzer=new Hd(t.config.stats,t.networkQualityMonitor),t.setupStatsAnalyzerEventHandlers(),t.networkQualityMonitor.on(bn.NETWORK_QUALITY,t.sendNetworkQualityEvent.bind(t)))})).catch((function(e){throw Ke.logger.error("".concat(n," Error adding media , setting up peerconnection, "),e),e})).then((function(){return new(R())((function(e,r){var n=0;t.type===Qt&&e();var i=setInterval((function(){n+=1,t.meetingState===kn.ACTIVE&&(clearInterval(i),e()),4===n&&(clearInterval(i),r(new Error("Meeting is still not active ")))}),1e3)}))})).then((function(){return Jp(t.roap.sendRoapMediaRequest({sdp:t.mediaProperties.peerConnection.sdp,roapSeq:t.roapSeq,meeting:t}),{header:"".concat(n," Send Roap Media Request."),success:"".concat(n," Successfully send roap media request"),failure:"".concat(n," Error joining the call on send roap media request, ")})})).then((function(){return t.mediaProperties.waitForIceConnectedState().catch((function(){throw t="string"==typeof(t="Meeting connection failed")&&t?t:"Unknown error",Fo[e="number"==typeof(e=30202)?e:0]?new Fo[e]:new Uo(e,t);var e,t}))})).then((function(){if(Ke.logger.info("".concat(n," PeerConnection CONNECTED")),s&&s.sendShare&&a){if(t.state===qn.STATES.JOINED)return t.requestScreenShareFloor();t.floorGrantPending=!0}return{}})).then((function(){return t.mediaProperties.getCurrentConnectionType()})).then((function(e){Ki.sendBehavioralMetric(Lo.ADD_MEDIA_SUCCESS,{correlation_id:t.correlationId,locus_id:t.locusUrl.split("/").pop(),connectionType:e})})).catch((function(r){return(t.statsAnalyzer?t.statsAnalyzer.stopAnalyzer():R().resolve()).then((function(){throw t.statsAnalyzer=null,t.mediaProperties.peerConnection&&(t.closePeerConnections(),t.unsetPeerConnections()),Ke.logger.error("".concat(n," Error adding media failed to initiate PC and send request, "),r),Ki.sendBehavioralMetric(Lo.ADD_MEDIA_FAILURE,{correlation_id:t.correlationId,locus_id:t.locusUrl.split("/").pop(),reason:r.message,stack:r.stack,code:r.code,turnDiscoverySkippedReason:e,turnServerUsed:i}),so.trigger(t,{file:"meeting/index",function:"addMedia"},xn.REQUEST_UPLOAD_LOGS,t),r.code===qo.CODE&&t.leave({reason:Tn.MEETING_CONNECTION_FAILED}),r}))}))}},{key:"canUpdateMedia",value:function(){return this.mediaProperties.peerConnection.signalingState===ei.STABLE&&!sf.isBusy(this.correlationId)}},{key:"enqueueMediaUpdate",value:function(e,t){var r=this;return new(R())((function(n,i){var o={pendingPromiseResolve:n,pendingPromiseReject:i,mediaUpdateType:e,options:t};Ke.logger.log("Meeting:index#enqueueMediaUpdate --\x3e enqueuing media update type=".concat(e)),r.queuedMediaUpdates.push(o)}))}},{key:"updateMedia",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r="Meeting:index#updateMedia --\x3e";if(!this.canUpdateMedia())return this.enqueueMediaUpdate(Qp,t);var n=t.localStream,i=t.localShare,o=t.mediaSettings,a=this.mediaProperties.mediaDirection.sendShare;return Ts.validateOptions(t).then((function(){return e.preMedia(n,i,o)})).then((function(){return ss.updateMedia(e.mediaProperties,{meetingId:e.id,remoteQualityLevel:e.mediaProperties.remoteQualityLevel,enableRtx:e.config.enableRtx,enableExtmap:e.config.enableExtmap}).then((function(t){Ke.logger.info("".concat(r," PeerConnection received from updateMedia, ").concat(t)),e.setRemoteStream(t),(o.receiveShare||i)&&es.setContentSlides(t)})).catch((function(t){throw Ke.logger.error("".concat(r," Error updatedMedia, "),t),Ki.sendBehavioralMetric(Lo.UPDATE_MEDIA_FAILURE,{correlation_id:e.correlationId,locus_id:e.locusUrl.split("/").pop(),reason:t.message,stack:t.stack}),t})).then((function(){return Jp(e.roap.sendRoapMediaRequest({sdp:e.mediaProperties.peerConnection.sdp,roapSeq:e.roapSeq,meeting:e}),{header:"".concat(r," sendRoapMediaRequest being sent"),success:"".concat(r," sendRoadMediaRequest successful"),failure:"".concat(r," Error updateMedia on send roap media request, ")})})).then((function(){return e.checkForStopShare(o.sendShare,a)})).then((function(t){return t?e.requestScreenShareFloor():R().resolve()}))}))}},{key:"updateAudio",value:(r=(0,f.Z)(_().mark((function e(t){var r,n,i,o,a,s,c=this;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.canUpdateMedia()){e.next=2;break}return e.abrupt("return",this.enqueueMediaUpdate(Xp,t));case 2:if(r=t.sendAudio,n=t.receiveAudio,i=t.stream,o=this.mediaProperties.peerConnection.audioTransceiver,a=Ts.getTrack(i).audioTrack,"boolean"==typeof r&&"boolean"==typeof n){e.next=7;break}return e.abrupt("return",R().reject(new no("Pass sendAudio and receiveAudio parameter")));case 7:if(!this.effects||!this.effects.state){e.next=15;break}if(s=this.effects.state.bnr.enabled,!r||this.isAudioMuted()||s!==vi.ENABLED&&s!==vi.SHOULD_ENABLE){e.next=15;break}return Ke.logger.info("Meeting:index#updateAudio. Calling WebRTC enable bnr method"),e.next=13,this.internal_enableBNR(a);case 13:a=e.sent,Ke.logger.info("Meeting:index#updateAudio. WebRTC enable bnr request completed");case 15:return e.abrupt("return",Ts.validateOptions({sendAudio:r,localStream:i}).then((function(){var e={};return c.mediaProperties.mediaDirection?e={sendTrack:c.mediaProperties.mediaDirection.sendAudio,receiveTrack:c.mediaProperties.mediaDirection.receiveAudio}:c.mediaProperties.mediaDirection={},Ts.updateTransceiver({type:"audio",sendTrack:t.sendAudio,receiveTrack:t.receiveAudio,track:a,transceiver:o,peerConnection:c.mediaProperties.peerConnection,previousMediaDirection:e},{mediaProperties:c.mediaProperties,meeting:c,id:c.id})})).then((function(){c.setLocalAudioTrack(a),c.mediaProperties.mediaDirection.sendAudio=r,c.mediaProperties.mediaDirection.receiveAudio=n,c.audio=c.audio||wf(Xe,c,c.mediaProperties.mediaDirection)})));case 16:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"updateVideo",value:function(e){var t=this;if(!this.canUpdateMedia())return this.enqueueMediaUpdate(eh,e);var r=e.sendVideo,n=e.receiveVideo,i=e.stream,o=this.mediaProperties.peerConnection.videoTransceiver,a=Ts.getTrack(i).videoTrack;return"boolean"!=typeof r||"boolean"!=typeof n?R().reject(new no("Pass sendVideo and receiveVideo parameter")):Ts.validateOptions({sendVideo:r,localStream:i}).then((function(){return Ts.updateTransceiver({type:"video",sendTrack:e.sendVideo,receiveTrack:e.receiveVideo,track:a,transceiver:o,peerConnection:t.mediaProperties.peerConnection,previousMediaDirection:{sendTrack:t.mediaProperties.mediaDirection.sendVideo,receiveTrack:t.mediaProperties.mediaDirection.receiveVideo}},{mediaProperties:t.mediaProperties,meeting:t,id:t.id})})).then((function(){t.setLocalVideoTrack(a),t.mediaProperties.mediaDirection.sendVideo=r,t.mediaProperties.mediaDirection.receiveVideo=n,t.video=t.video||wf(zt,t,t.mediaProperties.mediaDirection)}))}},{key:"checkForStopShare",value:function(e,t){return e&&!t?R().resolve(!0):!e&&t?this.releaseScreenShareFloor().then((function(){return R().resolve(!1)})):R().resolve()}},{key:"updateShare",value:function(e){var t=this;if(!e.skipSignalingCheck&&!this.canUpdateMedia())return this.enqueueMediaUpdate(th,e);var r=e.sendShare,n=e.receiveShare,i=e.stream,o=this.mediaProperties.peerConnection.shareTransceiver,a=Ts.getTrack(i).videoTrack;if("boolean"!=typeof r||"boolean"!=typeof n)return R().reject(new no("Pass sendShare and receiveShare parameter"));var s=this.mediaProperties.mediaDirection.sendShare;return this.setLocalShareTrack(i),Ts.validateOptions({sendShare:r,localShare:i}).then((function(){return t.checkForStopShare(r,s)})).then((function(e){return Ts.updateTransceiver({type:"video",sendTrack:r,receiveTrack:n,track:a,transceiver:o,peerConnection:t.mediaProperties.peerConnection,previousMediaDirection:{sendTrack:t.mediaProperties.mediaDirection.sendShare,receiveTrack:t.mediaProperties.mediaDirection.receiveShare}},{mediaProperties:t.mediaProperties,meeting:t,id:t.id}).then((function(){return e?t.requestScreenShareFloor():R().resolve()}))})).then((function(){t.mediaProperties.mediaDirection.sendShare=r,t.mediaProperties.mediaDirection.receiveShare=n})).catch((function(e){throw t.unsetLocalShareTrack(),e})).finally((function(){t.mediaProperties.peerConnection.shareTransceiver.direction===Gt&&!t.isLocalShareLive&&setTimeout((function(){return t.handleShareTrackEnded(i)}),1e3)}))}},{key:"preMedia",value:function(e,t,r){this.mediaProperties.setMediaDirection(Ji()(this.config.mediaSettings,r)),this.audio=this.audio||wf(Xe,this,this.mediaProperties.mediaDirection),this.video=this.video||wf(zt,this,this.mediaProperties.mediaDirection),this.setLocalTracks(e),this.setLocalShareTrack(t)}},{key:"acknowledge",value:function(e){var t=this;return e?e===sr?this.meetingRequest.acknowledgeMeeting({locusUrl:this.locusUrl,deviceUrl:this.deviceUrl,correlationId:this.correlationId}).then((function(e){return R().resolve(e)})).then((function(r){return t.meetingFiniteStateMachine.ring(e),Ki.postEvent({event:Ci.ALERT_DISPLAYED,meeting:t}),R().resolve({response:r})})):R().resolve({message:"noop"}):R().reject(new no("Type must be set to acknowledge the meeting."))}},{key:"decline",value:function(e){var t=this;return Ts.declineMeeting(this,e).then((function(e){return t.meetingFiniteStateMachine.decline(),R().resolve(e)})).catch((function(e){return t.meetingFiniteStateMachine.fail(e),R().reject(e)}))}},{key:"leave",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ki.postEvent({event:Ci.LEAVE,meeting:this,data:{trigger:ki,canProceed:!1}});var r=t.reason||Tn.CLIENT_LEAVE_REQUEST;return Ke.logger.log("Meeting:index#leave --\x3e Leaving a meeting"),Ts.leaveMeeting(this,t).then((function(n){return e.meetingFiniteStateMachine.leave(),e.clearMeetingData(),so.trigger(e,{file:"meeting/index",function:"leave"},xn.REQUEST_UPLOAD_LOGS,e),(e.wirelessShare||e.guest)&&so.trigger(e,{file:"meeting/index",function:"leave"},xn.DESTROY_MEETING,{reason:t.reason,meetingId:e.id}),Ke.logger.log("Meeting:index#leave --\x3e LEAVE REASON ",r),n})).catch((function(t){return e.meetingFiniteStateMachine.fail(t),Ke.logger.error("Meeting:index#leave --\x3e Failed to leave ",t),so.trigger(e,{file:"meeting/index",function:"leave"},xn.REQUEST_UPLOAD_LOGS,e),Ki.sendBehavioralMetric(Lo.MEETING_LEAVE_FAILURE,{correlation_id:e.correlationId,locus_id:e.locusUrl.split("/").pop(),reason:t.message,stack:t.stack,code:t.code}),R().reject(t)}))}},{key:"startWhiteboardShare",value:function(e,t){var r=this,n=this.locusInfo.mediaShares.find((function(e){return"whiteboard"===e.name}));if(!e)return R().reject(new no("Cannot share without channelUrl."));if(n){Ki.postEvent({event:Ci.WHITEBOARD_SHARE_INITIATED,meeting:this});var i={disposition:On.GRANTED,personUrl:this.locusInfo.self.url,deviceUrl:this.deviceUrl,uri:n.url,resourceUrl:e};return t&&(i.resourceToken=t),this.meetingRequest.changeMeetingFloor(i).then((function(){return r.isSharing=!1,R().resolve()})).catch((function(t){return Ke.logger.error("Meeting:index#startWhiteboardShare --\x3e Error ",t),Ki.sendBehavioralMetric(Lo.MEETING_START_WHITEBOARD_SHARE_FAILURE,{correlation_id:r.correlationId,locus_id:r.locusUrl.split("/").pop(),reason:t.message,stack:t.stack,board:{channelUrl:e}}),R().reject(t)}))}return R().reject(new no("Cannot share without whiteboard."))}},{key:"stopWhiteboardShare",value:function(e){var t=this,r=this.locusInfo.mediaShares.find((function(e){return"whiteboard"===e.name}));return r?(Ki.postEvent({event:Ci.WHITEBOARD_SHARE_STOPPED,meeting:this}),this.meetingRequest.changeMeetingFloor({disposition:On.RELEASED,personUrl:this.locusInfo.self.url,deviceUrl:this.deviceUrl,uri:r.url}).catch((function(r){return Ke.logger.error("Meeting:index#stopWhiteboardShare --\x3e Error ",r),Ki.sendBehavioralMetric(Lo.STOP_WHITEBOARD_SHARE_FAILURE,{correlation_id:t.correlationId,locus_id:t.locusUrl.split("/").pop(),reason:r.message,stack:r.stack,board:{channelUrl:e}}),R().reject(r)})).finally((function(){}))):R().reject(new no("Cannot stop share without whiteboard."))}},{key:"requestScreenShareFloor",value:function(){var e=this,t=this.locusInfo.mediaShares.find((function(e){return e.name===ft}));return t&&this.shareStatus!==_n.LOCAL_SHARE_ACTIVE?(Ki.postEvent({event:Ci.SHARE_INITIATED,meeting:this}),this.meetingRequest.changeMeetingFloor({disposition:On.GRANTED,personUrl:this.locusInfo.self.url,deviceUrl:this.deviceUrl,uri:t.url,resourceUrl:this.resourceUrl}).then((function(){return e.isSharing=!0,R().resolve()})).catch((function(t){return Ke.logger.error("Meeting:index#share --\x3e Error ",t),Ki.sendBehavioralMetric(Lo.MEETING_SHARE_FAILURE,{correlation_id:e.correlationId,locus_id:e.locusUrl.split("/").pop(),reason:t.message,stack:t.stack}),R().reject(t)}))):R().reject(new no("Cannot share without content."))}},{key:"stopShare",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.updateShare($p({sendShare:!1,receiveShare:this.mediaProperties.mediaDirection.receiveShare},e))}},{key:"releaseScreenShareFloor",value:function(){var e=this,t=this.locusInfo.mediaShares.find((function(e){return e.name===ft}));return t&&this.mediaProperties.mediaDirection.sendShare?(Ki.postEvent({event:Ci.SHARE_STOPPED,meeting:this}),ss.stopTracks(this.mediaProperties.shareTrack),t.floor.beneficiary.id!==this.selfId?(this.isSharing=!1,R().resolve()):this.meetingRequest.changeMeetingFloor({disposition:On.RELEASED,personUrl:this.locusInfo.self.url,deviceUrl:this.deviceUrl,uri:t.url,resourceUrl:this.resourceUrl}).catch((function(t){return Ke.logger.error("Meeting:index#releaseScreenShareFloor --\x3e Error ",t),Ki.sendBehavioralMetric(Lo.STOP_FLOOR_REQUEST_FAILURE,{correlation_id:e.correlationId,locus_id:e.locusUrl.split("/").pop(),reason:t.message,stack:t.stack}),R().reject(t)})).finally((function(){e.isSharing=!1}))):R().reject(new no("Cannot stop share without content"))}},{key:"startRecording",value:function(){return this.recordingController.startRecording()}},{key:"setMuteOnEntry",value:function(e){return this.controlsOptionsManager.setMuteOnEntry(e)}},{key:"setDisallowUnmute",value:function(e){return this.controlsOptionsManager.setDisallowUnmute(e)}},{key:"stopRecording",value:function(){return this.recordingController.stopRecording()}},{key:"pauseRecording",value:function(){return this.recordingController.pauseRecording()}},{key:"resumeRecording",value:function(){return this.recordingController.resumeRecording()}},{key:"lockMeeting",value:function(){return Ts.lockMeeting(this.inMeetingActions,this.meetingRequest,this.locusUrl)}},{key:"unlockMeeting",value:function(){return Ts.unlockMeeting(this.inMeetingActions,this.meetingRequest,this.locusUrl)}},{key:"rejectWithErrorLog",value:function(e){return Ke.logger.error(e),R().reject(new Error(e))}},{key:"sendDTMF",value:function(e){return this.locusInfo&&this.locusInfo.self?this.locusInfo.self.enableDTMF?this.meetingRequest.sendDTMF({locusUrl:this.locusInfo.self.url,deviceUrl:this.deviceUrl,tones:e}):this.rejectWithErrorLog("Meeting:index#sendDTMF --\x3e cannot send DTMF, meeting does not have DTMF enabled"):this.rejectWithErrorLog('Meeting:index#sendDTMF --\x3e cannot send DTMF, meeting does not have a connection to the "locus" call control service. Have you joined?')}},{key:"changeVideoLayout",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.main,i=r.content,o=this.mediaProperties,a=o.mediaDirection,s=o.remoteShare,c=o.remoteVideoTrack,u=tc()(this.lastVideoLayoutInfo);if(!0!==a.receiveVideo||!c)return this.rejectWithErrorLog("Meeting:index#changeVideoLayout --\x3e cannot change video layout, you are not recieving any video/share stream");if(e){if(!en.includes(e))return this.rejectWithErrorLog("Meeting:index#changeVideoLayout --\x3e cannot change video layout, invalid layoutType recieved.");u.layoutType=e}if(n){var l=Math.round(n.width),d=Math.round(n.height);(!this.lastVideoLayoutInfo.main||Math.abs(this.lastVideoLayoutInfo.main.height-d)>2||Math.abs(this.lastVideoLayoutInfo.main.width-l)>2)&&(u.main={width:l,height:d})}if(i){if(!this.mediaProperties.mediaDirection.receiveShare||!s)return this.rejectWithErrorLog("Meeting:index#changeVideoLayout --\x3e unable to send renderInfo for content, you are not receiving remote share");var f=Math.round(i.width),p=Math.round(i.height);(!this.lastVideoLayoutInfo.content||Math.abs(this.lastVideoLayoutInfo.content.height-p)>2||Math.abs(this.lastVideoLayoutInfo.content.width-f)>2)&&(u.content={width:f,height:p})}return Xs()(u,this.lastVideoLayoutInfo)?R().resolve():(this.lastVideoLayoutInfo=tc()(u),this.locusInfo.once(Un.EVENTS.CONTROLS_MEETING_LAYOUT_UPDATED,(function(e){so.trigger(t,{file:"meeting/index",function:"changeVideoLayout"},bn.MEETING_CONTROLS_LAYOUT_UPDATE,{layout:e.layout})})),this.meetingRequest.changeVideoLayoutDebounced({locusUrl:this.locusInfo.self.url,deviceUrl:this.deviceUrl,layoutType:e,main:u.main,content:u.content}).then((function(e){e&&e.body&&e.body.locus&&t.locusInfo.onFullLocus(e.body.locus)})).catch((function(e){return Ke.logger.error("Meeting:index#changeVideoLayout --\x3e Error ",e),R().reject(e)})))}},{key:"setLocalVideoQuality",value:function(e){var t=this;if(Ke.logger.log("Meeting:index#setLocalVideoQuality --\x3e Setting quality to ".concat(e)),!si[e])return this.rejectWithErrorLog("Meeting:index#setLocalVideoQuality --\x3e ".concat(e," not defined"));if(!this.mediaProperties.mediaDirection.sendVideo)return this.rejectWithErrorLog("Meeting:index#setLocalVideoQuality --\x3e unable to change video quality, sendVideo is disabled");if(e===this.mediaProperties.localQualityLevel)return Ke.logger.warn("Meeting:index#setLocalQualityLevel --\x3e Quality already set to ".concat(e)),R().resolve();this.mediaProperties.setLocalQualityLevel(e);var r={sendAudio:this.mediaProperties.mediaDirection.sendAudio,sendVideo:this.mediaProperties.mediaDirection.sendVideo,sendShare:this.mediaProperties.mediaDirection.sendShare};return Yp("chrome")&&this.mediaProperties.videoTrack&&ss.stopTracks(this.mediaProperties.videoTrack),this.getMediaStreams(r,si[e]).then(function(){var e=(0,f.Z)(_().mark((function e(r){var n,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,cs.Z)(r,1),i=n[0],e.next=3,t.updateVideo({sendVideo:!0,receiveVideo:!0,stream:i});case 3:return e.abrupt("return",i);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}},{key:"setRemoteQualityLevel",value:function(e){return Ke.logger.log("Meeting:index#setRemoteQualityLevel --\x3e Setting quality to ".concat(e)),oi[e]?this.mediaProperties.mediaDirection.receiveAudio||this.mediaProperties.mediaDirection.receiveVideo?e===this.mediaProperties.remoteQualityLevel?(Ke.logger.warn("Meeting:index#setRemoteQualityLevel --\x3e Quality already set to ".concat(e)),R().resolve()):(this.mediaProperties.setRemoteQualityLevel(e),this.updateMedia({mediaSettings:this.mediaProperties.mediaDirection})):this.rejectWithErrorLog("Meeting:index#setRemoteQualityLevel --\x3e unable to change remote quality, receiveVideo and receiveAudio is disabled"):this.rejectWithErrorLog("Meeting:index#setRemoteQualityLevel --\x3e ".concat(e," not defined"))}},{key:"setMeetingQuality",value:function(e){var t=this;if(Ke.logger.log("Meeting:index#setMeetingQuality --\x3e Setting quality to ".concat(e)),!oi[e])return this.rejectWithErrorLog("Meeting:index#setMeetingQuality --\x3e ".concat(e," not defined"));var r={local:this.mediaProperties.localQualityLevel,remote:this.mediaProperties.remoteQualityLevel};if(e===this.mediaProperties.localQualityLevel&&e===this.mediaProperties.remoteQualityLevel)return Ke.logger.warn("Meeting:index#setMeetingQuality --\x3e Quality already set to ".concat(e)),R().resolve();var n=this.mediaProperties.mediaDirection,i=n.receiveAudio,o=n.receiveVideo;return(n.sendVideo?this.setLocalVideoQuality(e):R().resolve()).then((function(){return i||o?t.setRemoteQualityLevel(e):R().resolve()})).catch((function(e){return t.mediaProperties.setLocalQualityLevel(r.local),t.mediaProperties.setRemoteQualityLevel(r.remote),Ke.logger.error("Meeting:index#setMeetingQuality --\x3e ".concat(e.message)),Ki.sendBehavioralMetric(Lo.SET_MEETING_QUALITY_FAILURE,{correlation_id:t.correlationId,locus_id:t.locusUrl.split("/").pop(),reason:e.message,stack:e.stack},{type:e.name}),R().reject(e)}))}},{key:"shareScreen",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ke.logger.log("Meeting:index#shareScreen --\x3e Getting local share");var r=$p({sendShare:!0,sendAudio:!1},t);return ss.getDisplayMedia(r,this.config).then((function(t){return e.updateShare({sendShare:!0,receiveShare:e.mediaProperties.mediaDirection.receiveShare,stream:t})})).catch((function(t){var r=Lo.GET_DISPLAY_MEDIA_FAILURE,n={correlation_id:e.correlationId,locus_id:e.locusUrl.split("/").pop(),reason:t.message,stack:t.stack},i={type:t.name};throw Ki.sendBehavioralMetric(r,n,i),new Mo("Unable to retrieve display media stream",t)}))}},{key:"handleShareTrackEnded",value:function(e){this.wirelessShare?this.leave({reason:Tn.USER_ENDED_SHARE_STREAMS}):this.stopShare({skipSignalingCheck:!0}).catch((function(e){Ke.logger.log("Meeting:index#handleShareTrackEnded --\x3e Error stopping share: ",e)})),so.trigger(this,{file:"meeting/index",function:"handleShareTrackEnded"},bn.MEETING_STOPPED_SHARING_LOCAL,{type:Rn.LOCAL_SHARE,stream:e})}},{key:"sendNetworkQualityEvent",value:function(e){so.trigger(this,{file:"meeting/index",function:"addMedia"},bn.NETWORK_QUALITY,{networkQualityScore:e.networkQualityScore,mediaType:e.mediaType})}},{key:"handleMediaLogging",value:function(e){var t=e.audioTrack,r=e.videoTrack;Ts.handleVideoLogging(r),Ts.handleAudioLogging(t)}},{key:"setStartSetupDelay",value:function(e){this["startSetupDelay".concat(e)]=performance.now(),this["endSetupDelay".concat(e)]=void 0}},{key:"setEndSetupDelay",value:function(e){this["endSetupDelay".concat(e)]=performance.now()}},{key:"getSetupDelayDuration",value:function(e){var t=this["startSetupDelay".concat(e)],r=this["endSetupDelay".concat(e)];return t&&r?r-t:void 0}},{key:"setStartSendingMediaDelay",value:function(e){this["startSendingMediaDelay".concat(e)]=performance.now(),this["endSendingMediaDelay".concat(e)]=void 0}},{key:"setEndSendingMediaDelay",value:function(e){this["endSendingMediaDelay".concat(e)]=performance.now()}},{key:"getSendingMediaDelayDuration",value:function(e){var t=this["startSendingMediaDelay".concat(e)],r=this["endSendingMediaDelay".concat(e)];return t&&r?r-t:void 0}},{key:"setStartLocalSDPGenRemoteSDPRecvDelay",value:function(){this.startLocalSDPGenRemoteSDPRecvDelay||(this.startLocalSDPGenRemoteSDPRecvDelay=performance.now(),this.endLocalSDPGenRemoteSDPRecvDelay=void 0)}},{key:"setEndLocalSDPGenRemoteSDPRecvDelay",value:function(){this.endLocalSDPGenRemoteSDPRecvDelay||(this.endLocalSDPGenRemoteSDPRecvDelay=performance.now())}},{key:"getLocalSDPGenRemoteSDPRecvDelay",value:function(){var e=this.startLocalSDPGenRemoteSDPRecvDelay,t=this.endLocalSDPGenRemoteSDPRecvDelay;if(e&&t){var r=t-e;return r>di?void 0:r}}},{key:"setStartCallInitiateJoinReq",value:function(){this.startCallInitiateJoinReq=performance.now(),this.endCallInitiateJoinReq=void 0}},{key:"setEndCallInitiateJoinReq",value:function(){this.endCallInitiateJoinReq=performance.now()}},{key:"getCallInitiateJoinReq",value:function(){var e=this.startCallInitiateJoinReq,t=this.endCallInitiateJoinReq;if(e&&t){var r=t-e;return r>di?void 0:r}}},{key:"setStartJoinReqResp",value:function(){this.startJoinReqResp=performance.now(),this.endJoinReqResp=void 0}},{key:"setEndJoinReqResp",value:function(){this.endJoinReqResp=performance.now()}},{key:"getJoinReqResp",value:function(){var e=this.startJoinReqResp,t=this.endJoinReqResp;if(e&&t){var r=t-e;return r>di?void 0:r}}},{key:"getTotalJmt",value:function(){var e=this.startCallInitiateJoinReq,t=this.endJoinReqResp;return e&&t?t-e:void 0}},{key:"endMeetingForAll",value:function(){var e=this;return Ki.postEvent({event:Ci.LEAVE,meeting:this,data:{trigger:ki,canProceed:!1}}),Ke.logger.log("Meeting:index#endMeetingForAll --\x3e End meeting for All"),Ki.sendBehavioralMetric(Lo.MEETING_END_ALL_INITIATED,{correlation_id:this.correlationId,locus_id:this.locusId}),Ts.endMeetingForAll(this).then((function(t){return e.meetingFiniteStateMachine.end(),e.clearMeetingData(),so.trigger(e,{file:"meeting/index",function:"endMeetingForAll"},xn.REQUEST_UPLOAD_LOGS,e),t})).catch((function(t){return e.meetingFiniteStateMachine.fail(t),Ke.logger.error("Meeting:index#endMeetingForAll --\x3e Failed to end meeting ",t),so.trigger(e,{file:"meeting/index",function:"endMeetingForAll"},xn.REQUEST_UPLOAD_LOGS,e),Ki.sendBehavioralMetric(Lo.MEETING_END_ALL_FAILURE,{correlation_id:e.correlationId,locus_id:e.locusUrl.split("/").pop(),reason:t.message,stack:t.stack,code:t.code}),R().reject(t)}))}},{key:"isBnrEnabled",value:function(){return this.effects&&this.effects.isBnrEnabled()}},{key:"internal_enableBNR",value:(t=(0,f.Z)(_().mark((function e(t){var r;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,Ke.logger.info("Meeting:index#internal_enableBNR. Internal enable BNR called"),e.next=4,wd.Effects.BNR.enableBNR(t);case 4:return r=e.sent,Ke.logger.info("Meeting:index#internal_enableBNR. BNR enabled track obtained from WebRTC & returned as stream"),e.abrupt("return",r);case 9:throw e.prev=9,e.t0=e.catch(0),Ke.logger.error("Meeting:index#internal_enableBNR.",e.t0),e.t0;case 13:case"end":return e.stop()}}),e,null,[[0,9]])}))),function(e){return t.apply(this,arguments)})},{key:"enableBNR",value:function(){if(void 0===this.mediaProperties||void 0===this.mediaProperties.audioTrack)return R().reject(new Error("Meeting doesn't have an audioTrack attached"));if(this.isAudioMuted())return R().reject(new Error("Cannot enable BNR while meeting is muted"));this.effects=this.effects||xf("BNR");var e="Meeting:index#enableBNR --\x3e";return Jp(this.effects.handleClientRequest(!0,this).then((function(e){return Ke.logger.info("Meeting:index#enableBNR. Enable bnr completed"),e})).catch((function(e){throw e})),{header:"".concat(e," enable bnr"),success:"".concat(e," enable bnr success"),failure:"".concat(e," enable bnr failure, ")})}},{key:"disableBNR",value:function(){if(void 0===this.mediaProperties||void 0===this.mediaProperties.audioTrack)return R().reject(new Error("Meeting doesn't have an audioTrack attached"));if(!this.isBnrEnabled())return R().reject(new Error("Can not disable as BNR is not enabled"));this.effects=this.effects||xf("BNR");var e="Meeting:index#disableBNR --\x3e";return Jp(this.effects.handleClientRequest(!1,this).then((function(e){return Ke.logger.info("Meeting:index#disableBNR. Disable bnr completed"),e})).catch((function(e){throw e})),{header:"".concat(e," disable bnr"),success:"".concat(e," disable bnr success"),failure:"".concat(e," disable bnr failure, ")})}},{key:"sendReaction",value:function(e,t){var r,n,i,o=null===(r=this.locusInfo)||void 0===r||null===(n=r.controls)||void 0===n||null===(i=n.reactions)||void 0===i?void 0:i.reactionChannelUrl,a=this.members.selfId,s=Fp[e];if(!s)return R().reject(new Error("".concat(e," is not a valid reaction.")));var c=Bp[t]||Bp.normal,u=$p($p({},s),{},{tone:c});return o?this.meetingRequest.sendReaction({reactionChannelUrl:o,reaction:u,participantId:a}):R().reject(new Error("Error sending reaction, service url not found."))}}]),a}(u.XR),nh={getClaimPmrLink:function(e){var t=pn.test(e);return t?e:(t=e.match(hn))?"".concat(t[4],"@").concat(t[2],".").concat(Yr):null},getClaimPmrPin:function(e){return vn.test(e)?e:null},getClaimedRequestParams:function(e,t,r){return{method:Nn.POST,api:_t,resource:"/".concat(ut,"/").concat(lt),body:{userId:r.userId,passcode:t,preferred:r.preferred,meetingAddress:e}}}};const ih=nh;function oh(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var ah=function(e){(0,m.Z)(r,e);var t=oh(r);function r(){var e;(0,p.Z)(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),(0,E.Z)((0,v.Z)(e),"namespace",Hr),e}return(0,h.Z)(r,[{key:"claimPmr",value:function(e){if(!(e&&e.userId&&e.passcode&&e.meetingAddress&&e.preferred))throw new no("Claiming a PMR should be done with userId, passcode, preferred, and meetingAddress in options.");var t=ih.getClaimPmrPin(e.passcode);if(!t)return R().reject(new no("The host pin provided was of an invalid format"));var r=ih.getClaimPmrLink(e.meetingAddress);if(!r)return R().reject(new no("The PMR link provided was of an invalid format"));var n=ih.getClaimedRequestParams(r,t,e);return this.request(n)}}]),r}(u.XR);function sh(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var ch=function(e){(0,m.Z)(r,e);var t=sh(r);function r(e,n){var i;return(0,p.Z)(this,r),i=t.call(this,{},n),(0,E.Z)((0,v.Z)(i),"link",void 0),(0,E.Z)((0,v.Z)(i),"meetingInfo",void 0),(0,E.Z)((0,v.Z)(i),"name",void 0),(0,E.Z)((0,v.Z)(i),"personalMeetingRoomRequest",void 0),(0,E.Z)((0,v.Z)(i),"pmr",void 0),(0,E.Z)((0,v.Z)(i),"sipUri",void 0),(0,E.Z)((0,v.Z)(i),"userId",void 0),(0,E.Z)((0,v.Z)(i),"meetingLink",void 0),(0,E.Z)((0,v.Z)(i),"number",void 0),(0,E.Z)((0,v.Z)(i),"namespace",Hr),i.pmr=null,i.sipUri=null,i.link=null,i.userId=null,i.name=null,i.meetingInfo=e.meetingInfo,i.personalMeetingRoomRequest=new ah({},n),i}return(0,h.Z)(r,[{key:"claim",value:function(e,t){var r=this,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i={userId:this.webex.internal.device.userId,passcode:t,meetingAddress:e,preferred:n};return this.personalMeetingRoomRequest.claimPmr(i).then((function(e){return e&&e.body?(r.set(e.body),e.body):R().reject(new no("No PMR body provided. PMR values not updated."))}))}},{key:"set",value:function(e){this.pmr=e,this.sipUri=e.sipMeetingUri,this.meetingLink=e.webExMeetingLink||e.meetingLink,this.userId=e.owner,this.name=e.meetingName,this.number=e.meetingNumber}},{key:"get",value:function(){var e=this,t={type:Rr};return this.meetingInfo.fetchMeetingInfo(t).then((function(t){return t&&t.body&&t.body.isPmr?(e.set(t.body),t.body):R().reject(new TypeError("The PMR requested is NOT a PMR. PMR values not set."))}))}}]),r}(u.XR),uh=r(21882),lh=r(44908),dh=r.n(lh);const fh=(0,h.Z)((function e(t){var r=this;(0,p.Z)(this,e),(0,E.Z)(this,"webex",void 0),(0,E.Z)(this,"getClusters",(function(){return r.webex.request({method:Nn.GET,shouldRefreshAccessToken:!1,api:gn.CALLIOPEDISCOVERY,resource:Yn.CLUSTERS}).then((function(e){var t=e.body.clusters;return x()(t).forEach((function(r){var n,i;t[r].isVideoMesh=null===(n=e.body.clusterClasses)||void 0===n||null===(i=n.hybridMedia)||void 0===i?void 0:i.includes(r)})),Ke.logger.log("Reachability:request#getClusters --\x3e get clusters successful:".concat(uo()(t))),t}))})),(0,E.Z)(this,"remoteSDPForClusters",(function(e){return r.webex.request({method:Nn.POST,shouldRefreshAccessToken:!1,api:gn.CALLIOPEDISCOVERY,resource:Yn.REACHABILITY,body:{offers:e}}).then((function(e){return Ke.logger.log("Reachability:request#remoteSDPForClusters --\x3e Remote SDPs got succcessfully"),e.body}))})),this.webex=t}));var ph=function(){function e(t){(0,p.Z)(this,e),(0,E.Z)(this,"webex",void 0),(0,E.Z)(this,"reachabilityRequest",void 0),(0,E.Z)(this,"clusterLatencyResults",void 0),this.webex=t,this.reachabilityRequest=new fh(this.webex),this.clusterLatencyResults={}}var t;return(0,h.Z)(e,[{key:"gatherReachability",value:(t=(0,f.Z)(_().mark((function e(){var t,r,n,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.setup(),null===(t=window)||void 0===t||null===(r=t.localStorage)||void 0===r||!r.removeItem){e.next=5;break}window.localStorage.removeItem(Jn.localStorage),e.next=7;break;case 5:return Ke.logger.error("Reachability:index#gatherReachability --\x3e Error in accessing LocalStorage."),e.abrupt("return",{});case 7:return e.prev=7,e.next=10,this.reachabilityRequest.getClusters();case 10:return n=e.sent,e.next=13,this.performReachabilityCheck(n);case 13:return i=e.sent,window.localStorage.setItem(Jn.localStorage,uo()(i)),Ke.logger.log("Reachability:index#gatherReachability --\x3e Reachability checks completed"),e.abrupt("return",i);case 19:return e.prev=19,e.t0=e.catch(7),Ke.logger.error("Reachability:index#gatherReachability --\x3e Error in calling getClusters(): ".concat(e.t0)),e.abrupt("return",{});case 23:case"end":return e.stop()}}),e,this,[[7,19]])}))),function(){return t.apply(this,arguments)})},{key:"isAnyClusterReachable",value:function(){var e=!1,t=window.localStorage.getItem(Jn.localStorage);if(t)try{var r=JSON.parse(t);e=C()(r).some((function(e){var t,r;return"true"===(null===(t=e.udp)||void 0===t?void 0:t.reachable)||"true"===(null===(r=e.tcp)||void 0===r?void 0:r.reachable)}))}catch(e){Ke.logger.error("Roap:request#attachReachabilityData --\x3e Error in parsing reachability data: ".concat(e))}return e}},{key:"buildPeerConnectionConfig",value:function(e){var t=dh()([].concat((0,uh.Z)(e.udp),(0,uh.Z)(e.tcp))).map((function(e){return{username:"",credential:"",urls:[e]}}));return{iceServers:(0,uh.Z)(t),iceCandidatePoolSize:"0",iceTransportPolicy:"all"}}},{key:"createPeerConnection",value:function(e){var t=e.key,r=e.config;try{var n=new window.RTCPeerConnection(r);return n.key=t,n}catch(e){return Ke.logger.log("Reachability:index#createPeerConnection --\x3e Error creating peerConnection: ".concat(e)),null}}},{key:"getElapsedTime",value:function(e){var t=e.begin;return delete e.begin,w()()-t}},{key:"getLocalSDPForClusters",value:function(e){var t=this,r=(0,uh.Z)(x()(e));return r=r.map(function(){var r=(0,f.Z)(_().mark((function r(n){var i,o,a,s;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=e[n],o=t.buildPeerConnectionConfig(i),a=t.createPeerConnection({key:n,config:o}),r.next=5,a.createOffer({offerToReceiveAudio:!0});case 5:return s=r.sent,a.begin=w()(),a.setLocalDescription(s),r.abrupt("return",t.iceGatheringState(a,i.isVideoMesh?1e3:3e3).catch((function(e){Ke.logger.log("Reachability:index#getLocalSDPForClusters --\x3e Error in getLocalSDP : ".concat(e))})));case 9:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()),R().all(r).then(this.parseIceResultsToReachabilityResults).then((function(e){return t.logUnreachableClusters(),e}))}},{key:"getUnreachablClusters",value:function(){var e=[],t=this.clusterLatencyResults;return x()(t).forEach((function(r){var n=t[r];n.unreachable&&!n.reachable&&e.push(r)})),e}},{key:"handleIceGatheringStateChange",value:function(e){var t=this;e.onicegatheringstatechange=function(){var r=Ln.COMPLETE;if(e.iceConnectionState===r){var n=t.getElapsedTime(e);Ke.logger.log("Reachability:index#onIceGatheringStateChange --\x3e Successfully pinged ".concat(e.key,":"),n),t.setLatencyAndClose(e,n)}}}},{key:"handleOnIceCandidate",value:function(e){var t=this;e.onicecandidate=function(r){if(r.candidate&&"srflx"===String(r.candidate.type).toLowerCase()){var n=t.getElapsedTime(e);Ke.logger.log("Reachability:index#onIceCandidate --\x3e Successfully pinged ".concat(e.key,":"),n),t.setLatencyAndClose(e,n)}}}},{key:"iceGatheringState",value:function(e,t){var r=this;return new(R())((function(n){var i=new window.Proxy(e,{get:function(e,t){var r=e[t];return"function"==typeof r?r.bind(e):r},set:function(t,r,i){return"elapsed"===r?(n({clusterId:e.key,elapsed:i}),!0):window.Reflect.set(t,r,i)}});r.handleIceGatheringStateChange(i),r.handleOnIceCandidate(i),window.setTimeout((function(){var e=Mn.CLOSED;i.connectionState!==e&&r.setLatencyAndClose(i,null)}),t)}))}},{key:"logUnreachableClusters",value:function(){this.getUnreachablClusters().forEach((function(e){Ke.logger.log("Reachability:index#logUnreachableClusters --\x3e No ice candidate for ".concat(e,"."))}))}},{key:"parseIceResultsToReachabilityResults",value:function(e){var t={};return e.forEach((function(e){var r,n=e.clusterId,i=e.elapsed;r=null===i?{reachable:"false"}:{reachable:"true",latencyInMilliseconds:i.toString()},t[n]={udp:r,tcp:r}})),t}},{key:"performReachabilityCheck",value:function(e){var t=this;return e&&x()(e).length?new(R())((function(r){t.getLocalSDPForClusters(e).then((function(e){e&&x()(e).length?r(e):(Ke.logger.log("Reachability:index#performReachabilityCheck --\x3e Local SDP is empty or has missing elements..returning"),r({}))})).catch((function(e){Ke.logger.error("Reachability:index#performReachabilityCheck --\x3e Error in getLocalSDPForClusters: ".concat(e)),r({})}))})):R().resolve({})}},{key:"setLatencyAndClose",value:function(e,t){var r,n="reachable",i="unreachable",o=Mn.CLOSED,a=e.key,s=null===t?i:n,c=(r={},(0,E.Z)(r,n,0),(0,E.Z)(r,i,0),r);e.connectionState!==o?(this.clusterLatencyResults[a]=this.clusterLatencyResults[a]||c,this.clusterLatencyResults[a][s]+=1,e.onicecandidate=null,e.close(),e.elapsed=t):Ke.logger.log("Reachability:index#setLatencyAndClose --\x3e Attempting to set latency of ".concat(t," on closed peerConnection."))}},{key:"setup",value:function(){this.clusterLatencyResults={}}}]),e}();function hh(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var vh=function(e){(0,m.Z)(r,e);var t=hh(r);function r(){return(0,p.Z)(this,r),t.apply(this,arguments)}return(0,h.Z)(r,[{key:"getActiveMeetings",value:function(){var e=this;return this.request({api:gn.LOCUS,resource:Yn.LOCI}).then((function(t){return e.determineRedirections(t.body)})).catch((function(e){Ke.logger.error("Meetings:request#getActiveMeetings --\x3e failed to get locus details, ".concat(e))}))}},{key:"fetchGeoHint",value:function(){return this.webex.internal.services.fetchClientRegionInfo()}},{key:"getMeetingPreferences",value:function(){return this.webex.internal.services.getMeetingPreferences()}},{key:"determineRedirections",value:function(e){var t=this;return e.remoteLocusClusterUrls&&e.remoteLocusClusterUrls.length?R().all(e.remoteLocusClusterUrls.map((function(r){return t.request({method:Nn.GET,url:r,runWhitelistedDomains:!0}).then((function(t){return e.loci=e.loci.concat(t.body.loci),e.locusUrls=e.locusUrls.concat(t.body.locusUrls),R().resolve(e)})).catch((function(e){Ke.logger.error("Meetings:request#determineRedirections --\x3e failed to get locus details from url: ".concat(r,", reason: ").concat(e))}))}))).then((function(){return R().resolve(e)})):R().resolve(e)}}]),r}(u.XR);function mh(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var gh=function(e){(0,m.Z)(r,e);var t=mh(r);function r(){return(0,p.Z)(this,r),t.call(this,"meetings")}return(0,h.Z)(r,[{key:"set",value:function(e){return this.meetings[e.id]=e,this.meetings[e.id]}},{key:"getByKey",value:function(e,t){return e&&t?Is()(this.meetings,(function(r){return r[e]===t})):null}}]),r}(Cs),yh={getMeetingAddedType:function(e){return e===fr?sr:Xt},handleRoapMercury:function(e,t){var r=e.data;if(r.eventType===jn.MESSAGE_ROAP){var n=t.getByKey(ot,r.correlationId);n&&n.roap.roapEvent(r)}},checkForCorrelationId:function(e,t){var r=[];if(t){t&&t.self&&t.self.devices&&(r=t.self.devices);var n=r.find((function(t){return t.url===e}));if(n&&n.correlationId)return n.correlationId}return!1},parseDefaultSiteFromMeetingPreferences:function(e){var t="";if(e&&e.sites){var r=e.sites.find((function(e){return e.default}));r&&(t=r.siteUrl)}return t}};yh.hasH264Codec=(0,f.Z)(_().mark((function e(){var t,r;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=!1,e.prev=1,r=new window.RTCPeerConnection,e.next=5,r.createOffer({offerToReceiveVideo:!0});case 5:e.sent.sdp.match(/^a=rtpmap:\d+\s+H264\/\d+/m)&&(t=!0),r.close(),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(1),Ke.logger.warn("Meetings:util#hasH264Codec --\x3e Error creating peerConnection for H.264 test.");case 13:return e.abrupt("return",t);case 14:case"end":return e.stop()}}),e,null,[[1,10]])}))),yh.checkH264Support=function(){var e=(0,f.Z)(_().mark((function e(t){var r,n,i,o,a,s,c,u=this;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=yh.hasH264Codec,i=(n=t||{}).firstChecked,o=n.disableNotifications,a=5e3,3e5,s=void 0===i,c=i&&w()()-i>=3e5,!o){e.next=9;break}return r(),e.abrupt("return");case 9:return e.next=11,r();case 11:if(!e.sent){e.next=15;break}return so.trigger(this,{file:"meetings/util",function:"checkH264Support"},bn.MEDIA_CODEC_LOADED),Ke.logger.log("Meetings:util#checkH264Support --\x3e H264 codec loaded successfully."),e.abrupt("return");case 15:if(!c){e.next=18;break}return Ke.logger.error("Meetings:util#checkH264Support --\x3e Timed out waiting for H264 codec to load."),e.abrupt("return");case 18:s&&(so.trigger(this,{file:"meetings/util",function:"checkH264Support"},bn.MEDIA_CODEC_MISSING),Ke.logger.log("Meetings:util#checkH264Support --\x3e H264 codec is missing.")),window.setTimeout((function(){var e=i||w()();yh.checkH264Support.call(u,{firstChecked:e})}),a);case 20:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}();const Eh=yh;function Sh(e){var t=function(){if("undefined"==typeof Reflect||!d())return!1;if(d().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(d()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,y.Z)(e);if(t){var i=(0,y.Z)(this).constructor;r=d()(n,arguments,i)}else r=n.apply(this,arguments);return(0,g.Z)(this,r)}}var _h=function(e){(0,m.Z)(n,e);var t,r=Sh(n);function n(){var e;(0,p.Z)(this,n);for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return e=r.call.apply(r,[this].concat(i)),(0,E.Z)((0,v.Z)(e),"loggerRequest",void 0),(0,E.Z)((0,v.Z)(e),"media",void 0),(0,E.Z)((0,v.Z)(e),"meetingCollection",void 0),(0,E.Z)((0,v.Z)(e),"personalMeetingRoom",void 0),(0,E.Z)((0,v.Z)(e),"preferredWebexSite",void 0),(0,E.Z)((0,v.Z)(e),"reachability",void 0),(0,E.Z)((0,v.Z)(e),"registered",void 0),(0,E.Z)((0,v.Z)(e),"request",void 0),(0,E.Z)((0,v.Z)(e),"geoHintInfo",void 0),(0,E.Z)((0,v.Z)(e),"meetingInfo",void 0),(0,E.Z)((0,v.Z)(e),"namespace",Hr),e.request=new vh({},{parent:e.webex}),e.loggerRequest=new eo({webex:e.webex}),e.meetingCollection=new gh,e.personalMeetingRoom=null,e.reachability=null,e.registered=!1,e.preferredWebexSite="",e.media={getUserMedia:ss.getUserMedia,getSupportedDevice:ss.getSupportedDevice},e.onReady(),e}return(0,h.Z)(n,[{key:"handleLocusEvent",value:function(e){var t,r,n,i=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=null;if(!(a=this.meetingCollection.getByKey(At,e.locusUrl)||this.meetingCollection.getByKey(ot,Eh.checkForCorrelationId(this.webex.internal.device.url,e.locus))||this.meetingCollection.getByKey(qt,e.locus.self&&e.locus.self.callbackInfo&&e.locus.self.callbackInfo.callbackAddress)||(null!==(t=e.locus.info)&&void 0!==t&&t.isUnifiedSpaceMeeting?void 0:this.meetingCollection.getByKey(at,e.locus.conversationUrl)))&&(null===(r=e.locus)||void 0===r||null===(n=r.replaces)||void 0===n?void 0:n.length)>0&&(a=this.meetingCollection.getByKey(At,e.locus.replaces[e.locus.replaces.length-1].locusUrl)),a)a.locusInfo.parse(a,e);else{if(e.locus&&e.locus.fullState&&e.locus.fullState.state===Dn.STATE.INACTIVE)return void Ke.logger.warn("Meetings:index#handleLocusEvent --\x3e Locus event received for meeting, after it was ended.");if(e.locus&&e.locus.self&&e.locus.self.state===pr&&!0===e.locus.self.removed)return void Ke.logger.warn("Meetings:index#handleLocusEvent --\x3e Locus event received for meeting, after it was ended.");this.create(e.locus,fr,o).then((function(t){(a=t).locusInfo.initialSetup(e.locus)})).catch((function(e){Ke.logger.error(e)})).finally((function(){i.getMeetingByType(ur,a.id)?(Ki.postEvent({event:Ci.REMOTE_STARTED,meeting:a,data:{trigger:Ni}}),so.trigger(i,{file:"meetings",function:"handleLocusEvent"},bn.MEETING_ADDED,{meeting:a,type:a.type===mr?lr:sr})):Ke.logger.warn("Meetings:index#handleLocusEvent --\x3e Created and destroyed meeting object before sending an event")}))}}},{key:"handleLocusMercury",value:function(e){var t=e.data,r=t.eventType;r&&r!==jn.MESSAGE_ROAP&&this.handleLocusEvent(t,!0)}},{key:"handleMercuryOffline",value:function(){so.trigger(this,{file:"meetings/index",function:"handleMercuryOffline"},bn.MEETINGS_NETWORK_DISCONNECTED)}},{key:"listenForEvents",value:function(){var e=this;this.webex.internal.mercury.on(jn.LOCUS_MERCURY,(function(t){e.handleLocusMercury(t)})),this.webex.internal.mercury.on(Qn.ROAP_MERCURY,(function(t){Eh.handleRoapMercury(t,e.meetingCollection)})),this.webex.internal.mercury.on(Dt,(function(){e.syncMeetings()})),this.webex.internal.mercury.on(Mt,(function(){e.handleMercuryOffline()}))}},{key:"stopListeningForEvents",value:function(){this.webex.internal.mercury.off(jn.LOCUS_MERCURY),this.webex.internal.mercury.off(Qn.ROAP_MERCURY),this.webex.internal.mercury.off(Dt)}},{key:"onReady",value:function(){var e=this;this.webex.once(Zt,(function(){Xi.set(e.config),ze.set(e.config.logging),Ke.set(e.webex.logger),e.meetingInfo=e.config.experimental.enableUnifiedMeetings?new $s(e.webex):new js(e.webex),e.personalMeetingRoom=new ch({meetingInfo:e.meetingInfo},{parent:e.webex}),so.trigger(e,{file:"meetings",function:"onReady"},bn.MEETINGS_READY),Eh.checkH264Support({disableNotifications:!0}),Ki.initialSetup(e.meetingCollection,e.webex)}))}},{key:"_toggleUnifiedMeetings",value:function(e){var t,r;"boolean"==typeof e&&(null===(t=this.config)||void 0===t||null===(r=t.experimental)||void 0===r?void 0:r.enableUnifiedMeetings)!==e&&(this.config.experimental.enableUnifiedMeetings=e,this.meetingInfo=e?new $s(this.webex):new js(this.webex))}},{key:"_toggleTurnDiscovery",value:function(e){"boolean"==typeof e&&(this.config.experimental.enableTurnDiscovery=e)}},{key:"_toggleAdhocMeetings",value:function(e){var t,r;"boolean"==typeof e&&(null===(t=this.config)||void 0===t||null===(r=t.experimental)||void 0===r?void 0:r.enableAdhocMeetings)!==e&&(this.config.experimental.enableAdhocMeetings=e)}},{key:"register",value:function(){var e=this;return this.webex.canAuthorize?this.registered?(Ke.logger.info("Meetings:index#register --\x3e INFO, Meetings plugin already registered"),R().resolve()):R().all([this.fetchUserPreferredWebexSite(),this.getGeoHint(),this.startReachability().catch((function(e){Ke.logger.error("Meetings:index#register --\x3e GDM error, ".concat(e.message))})),this.webex.internal.device.register().then((function(){return Ke.logger.info("Meetings:index#register --\x3e INFO, Device registered ".concat(e.webex.internal.device.url))})).then((function(){return e.webex.internal.mercury.connect()})),Eh.checkH264Support.call(this)]).then((function(){e.listenForEvents(),so.trigger(e,{file:"meetings",function:"register"},bn.MEETINGS_REGISTERED),e.registered=!0,Ki.sendBehavioralMetric(Lo.MEETINGS_REGISTRATION_SUCCESS)})).catch((function(e){return Ke.logger.error("Meetings:index#register --\x3e ERROR, Unable to register, ".concat(e.message)),Ki.sendBehavioralMetric(Lo.MEETINGS_REGISTRATION_FAILED,{reason:e.message,stack:e.stack}),R().reject(e)})):(Ke.logger.error("Meetings:index#register --\x3e ERROR, Unable to register, SDK cannot authorize"),R().reject(new Error("SDK cannot authorize")))}},{key:"unregister",value:function(){var e=this;return this.registered?(this.stopListeningForEvents(),this.webex.internal.mercury.disconnect().then((function(){return e.webex.internal.device.unregister()})).then((function(){so.trigger(e,{file:"meetings",function:"unregister"},bn.MEETINGS_UNREGISTERED),e.registered=!1}))):(Ke.logger.info("Meetings:index#unregister --\x3e INFO, Meetings plugin already unregistered"),R().resolve())}},{key:"uploadLogs",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ke.logger.info("Meetings:index#uploadLogs --\x3e uploading logs"),this.loggerRequest.uploadLogs(t).then((function(r){return Ke.logger.info("Meetings:index#uploadLogs --\x3e Upload logs for meeting completed.",r),so.trigger(e,{file:"meetings",function:"uploadLogs"},bn.MEETING_LOG_UPLOAD_SUCCESS,{meetingId:t.meetingId,details:r}),r})).catch((function(r){Ke.logger.error("Meetings:index#uploadLogs --\x3e Unable to upload logs for meeting",r),so.trigger(e,{file:"meetings",function:"uploadLogs"},bn.MEETING_LOG_UPLOAD_FAILURE,{meetingId:t.meetingId,reason:r}),Ki.sendBehavioralMetric(Lo.UPLOAD_LOGS_FAILURE,{meetingId:t.meetingsId,reason:r.message,stack:r.stack,code:r.code})}))}},{key:"setReachability",value:function(){this.reachability=new ph(this.webex)}},{key:"getReachability",value:function(){return this.reachability}},{key:"startReachability",value:function(){return this.reachability||this.setReachability(),this.getReachability().gatherReachability()}},{key:"getGeoHint",value:function(){var e=this;return this.request.fetchGeoHint().then((function(t){e.geoHintInfo=t}))}},{key:"fetchUserPreferredWebexSite",value:function(){var e=this;return this.request.getMeetingPreferences().then((function(t){t&&(e.preferredWebexSite=Eh.parseDefaultSiteFromMeetingPreferences(t))}))}},{key:"getPersonalMeetingRoom",value:function(){return this.personalMeetingRoom}},{key:"destroy",value:function(e,t){Ts.cleanUp(e),this.meetingCollection.delete(e.id),so.trigger(this,{file:"meetings",function:"destroy"},bn.MEETING_REMOVED,{meetingId:e.id,reason:t})}},{key:"create",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.meetingInfo.fetchInfoOptions(e,r).catch((function(e){Ke.logger.info("Meetings:index#create --\x3e INFO, unable to determine info options: ".concat(e.message))})).then((function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=i.destination||e,a=null;if(r===tr||i.type===tr){var s=t.meetingCollection.getByKey(at,o);if(s)!s.locusInfo.scheduledMeeting&&(a=s)}return a||(a=t.meetingCollection.getByKey(qt,o)),a?R().resolve(a):t.createMeeting(o,r,n).then((function(e){return e&&e.on?(e.on(xn.DESTROY_MEETING,(function(r){var n,i,o,a;t.config.autoUploadLogs?t.uploadLogs({callStart:null===(n=e.locusInfo)||void 0===n||null===(i=n.fullState)||void 0===i?void 0:i.lastActive,correlationId:e.correlationId,feedbackId:e.correlationId,locusId:e.locusId,meetingId:null===(o=e.locusInfo)||void 0===o||null===(a=o.info)||void 0===a?void 0:a.webExMeetingId}).then((function(){return t.destroy(e,r.reason)})):t.destroy(e,r.reason)})),e.on(xn.REQUEST_UPLOAD_LOGS,(function(e){var r,n,i,o;t.config.autoUploadLogs&&t.uploadLogs({callStart:null==e||null===(r=e.locusInfo)||void 0===r||null===(n=r.fullState)||void 0===n?void 0:n.lastActive,correlationId:e.correlationId,feedbackId:e.correlationId,locusId:e.locusId,meetingId:null===(i=e.locusInfo)||void 0===i||null===(o=i.info)||void 0===o?void 0:o.webExMeetingId})}))):Ke.logger.error("Meetings:index#create --\x3e ERROR, meeting does not have on method, will not be destroyed, meeting cleanup impossible for meeting: ".concat(a)),R().resolve(e)}))}))}},{key:"createMeeting",value:(t=(0,f.Z)(_().mark((function e(t){var r,n,i,o,a,s,c,u,l,d,f,p,h=arguments;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=h.length>1&&void 0!==h[1]?h[1]:null,n=h.length>2&&void 0!==h[2]&&h[2],i=new rh({userId:this.webex.internal.device.userId,deviceUrl:this.webex.internal.device.url,orgId:this.webex.internal.device.orgId,roapSeq:0,locus:r===fr?t:null,meetingInfoProvider:this.meetingInfo,destination:t,destinationType:r},{parent:this.webex}),this.meetingCollection.set(i),e.prev=4,a=0,t.meeting&&(s=t.meeting.startTime,c=new Date(s),u=c.getTime(),l=u-w()(),d=Math.max(Math.min(l,Ot),0),a=Math.round(Math.random()*d)),f=!(null===(o=t.fullState)||void 0===o||!o.active),!(this.config.experimental.enableUnifiedMeetings&&!f&&n&&a>0)){e.next=14;break}i.fetchMeetingInfoTimeoutId=setTimeout((function(){return i.fetchMeetingInfo({})}),a),i.parseMeetingInfo(void 0,t),e.next=16;break;case 14:return e.next=16,i.fetchMeetingInfo({});case 16:e.next=22;break;case 18:e.prev=18,e.t0=e.catch(4),e.t0 instanceof Ss||e.t0 instanceof ys||(Ke.logger.info("Meetings:index#createMeeting --\x3e Info Unable to fetch meeting info for ".concat(t,".")),Ke.logger.info("Meetings:index#createMeeting --\x3e Info assuming this destination is a 1:1 or wireless share")),Ke.logger.debug("Meetings:index#createMeeting --\x3e Debug ".concat(e.t0," fetching /meetingInfo for creation."));case 22:return e.prev=22,r!==fr&&(i.sipUri||i.setSipUri(t),p=Eh.getMeetingAddedType(r),so.trigger(this,{file:"meetings",function:"createMeeting"},bn.MEETING_ADDED,{meeting:i,type:p})),e.finish(22);case 25:return e.abrupt("return",i);case 26:case"end":return e.stop()}}),e,this,[[4,18,22,25]])}))),function(e){return t.apply(this,arguments)})},{key:"getMeetingByType",value:function(e,t){return this.meetingCollection.getByKey(e,t)}},{key:"getAllMeetings",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.meetingCollection.getAll(e)}},{key:"syncMeetings",value:function(){var e=this;return this.request.getActiveMeetings().then((function(t){var r=[];null!=t&&t.loci&&t.loci.length>0&&t.loci.forEach((function(t){r.push(t.url),e.handleLocusEvent({locus:t,locusUrl:t.url})}));var n=e.meetingCollection.getAll();if(x()(n).length>0)for(var i=0,o=C()(n);i<o.length;i++){var a=o[i];r.includes(a.locusUrl)||e.destroy(a,Tn.NO_MEETINGS_TO_SYNC)}}))}},{key:"getScheduledMeetings",value:function(){return this.meetingCollection.getAll({scheduled:!0})}},{key:"getLogger",value:function(){return Ke.get()}}]),n}(u._y);(0,u.fo)("meetings",_h,{config:_o});const bh=_h},16023:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(21105),i=r(2313),o=r(73473),a=r.n(o),s=r(78149),c=r.n(s),u=r(95366),l=r.n(u),d=r(18408);const f=n.mr.extend({namespace:"People",handleHttpSuccess:function(e){var t=this,r=e.body.items.map((function(e){return t.handleItemSuccess(e.id,e)}));return e.body.notFoundIds&&r.concat(e.body.notFoundIds.map((function(e){return t.handleItemFailure(e)}))),a().all(r)},handleItemFailure:function(e){return this.getDeferredForResponse(e).then((function(t){t.reject(e)}))},handleItemSuccess:function(e,t){return this.getDeferredForResponse(e).then((function(e){e.resolve(t)}))},fingerprintRequest:function(e){var t=this.webex.people.inferPersonIdFromUuid(e);return a().resolve(t)},fingerprintResponse:function(e){return a().resolve(e)},prepareRequest:function(e){return a().resolve(e.join())},submitHttpRequest:function(e){return this.webex.request({service:"hydra",resource:"people/?id=".concat(e,"&showAllTypes=").concat(this.config.showAllTypes)})}});var p;const h=n._y.extend((p={namespace:"People",children:{batcher:f},get:function(e){if(!e)return a().reject(new Error("A person with an id is required"));if("me"===e)return this._getMe();var t=e.personId||e.id||e;return this.batcher.request(t)},list:function(e){var t=this;if(c()(e)){var r=e;return a().all(r.map((function(e){return t.batcher.request(e)})))}return this.request({service:"hydra",resource:"people",qs:e}).then((function(e){return new n.T3(e,t.webex)}))},inferPersonIdFromUuid:function(e){try{if(d.base64.decode(e).includes("ciscospark://"))return e}catch(e){}return d.base64.encode("ciscospark://us/PEOPLE/".concat(e))},_getMe:function(){return this.webex.request({service:"hydra",resource:"people/me"}).then((function(e){return e.body}))},version:"2.54.0"},(0,i.Z)(p,"_getMe",[d.oneFlight],l()(p,"_getMe"),p),p));(0,n.fo)("people",h,{config:{people:{batcherWait:100,batcherMaxCalls:10,batcherMaxWait:1500,showAllTypes:!1}}})},21105:(e,t,r)=>{"use strict";r.d(t,{mr:()=>Vn,t8:()=>ge,dR:()=>H,T3:()=>Wn,XR:()=>Zn,Ff:()=>xt,_y:()=>ye,ZP:()=>ar,Zf:()=>Ar,tJ:()=>W,t4:()=>cr,fo:()=>sr,A4:()=>Y});var n=r(82723),i=r.n(n),o=r(13218),a=r.n(o),s=r(50361),c=r.n(s),u=r(26243),l=r.n(u),d=r(71544),f=r.n(d),p=r(73473),h=r.n(p),v=r(89539),m=r.n(v),g=r(65109),y=r.n(g),E=r(77193),S=r(13682),_=r(21882),b=r(90359),R=r.n(b),T=r(58613),w=r.n(T),I=r(6557),x=r.n(I),A=r(23279),C=r.n(A),O=r(40087),k=r.n(O),N=r(18281),L=r.n(N),P=r(90487),M=r.n(P),D=r(18408),U=r(63755),j=r.n(U),F=r(31314),B=r(8167),Z=r(69678),V=r(26305),G=r(35002);function q(e){var t=function(){if("undefined"==typeof Reflect||!j())return!1;if(j().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(j()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,G.Z)(e);if(t){var i=(0,G.Z)(this).constructor;r=j()(n,arguments,i)}else r=n.apply(this,arguments);return(0,V.Z)(this,r)}}var H=function(e){(0,Z.Z)(r,e);var t=q(r);function r(){return(0,B.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r)}(function(e){(0,Z.Z)(r,e);var t=q(r);function r(){return(0,B.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r)}(D.Exception));function W(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(3===t.length)return W("@").apply(void 0,t);var n=t[0],i=t[1];return function(e,t,r){if("initialize"!==t)throw new TypeError("@persist can only currently be applied to AmpersandState objects or their derivatives and must be applied to the initialize method");r.value=R()(r.value,(function(e){for(var t=this,r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];var s=f()(e,this,o),c="@"===n?"change":"change:".concat(n);return this.on(c,C()((function(){return!i||f().apply(Reflect,[i,t].concat(o))?"@"===n?t.boundedStorage.put(n,t):t.boundedStorage.put(n,t[n]):h().resolve()}),0)),s})),X(e,t)}}var z=L(),$=M(),K=new((0,D.make)(z,z,$));function Y(e){if(!e)throw new Error("`key` is required");return function(t,r,n){return K.add(t,r,e),n.value=R()(n.value,(function(e){for(var n=this,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];var s=K.get(t,r);return h().all((0,_.Z)(s).map((function(e){return n.boundedStorage.waitFor(e)}))).then((function(){return f()(e,n,o)}))})),"object"!==(0,S.Z)(t)||t.prototype||(t[r]=n.value),X(t,r),n}}var J=new(M());var Q=new(M());function X(e,t){var r=function(e){return e.namespace?e.namespace:e}(e);if(!J.has(r)){if(J.add(r),e.initialize)return void(e.initialize=R()(e.initialize,(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];var o=f()(e,this,r);return f()(n,this,r),o})));e.initialize=n}function n(){var r=this,n=this.getNamespace();this.webex.initialize=R()(this.webex.initialize||x(),(function(i){var o=this;Q.add(n);for(var a=arguments.length,s=new Array(a>1?a-1:0),c=1;c<a;c++)s[c-1]=arguments[c];f()(i,this,s);var u=k()((function(e,t){o.logger.debug("storage:(".concat(n,"): got `").concat(e,"` for first time")),"@"===e?r.parent.set((0,E.Z)({},n.toLowerCase(),t)):w()(r[e],"isState")?r[e].set(t):r.set(e,t),o.logger.debug("storage:(".concat(n,"): set `").concat(e,"` for first time"))})),l=k()((function(e,t){return t instanceof H?(o.logger.debug("storage(".concat(n,"): no data for `").concat(e,"`, continuing")),h().resolve()):(o.logger.error("storage(".concat(n,"): failed to init `").concat(e,"`"),t),h().reject(t))})),d=K.get(e,t),p=[];d.forEach((function(e){p.push(o.boundedStorage.get(n,e).then(u(e)).catch(l(e)))})),h().all(p).then((function(){Q.delete(n),0===Q.size&&(o.loaded=!0)}))}))}}var ee=r(2313),te=r(83977),re=r.n(te),ne=r(95366),ie=r.n(ne),oe=r(18428),ae=r.n(oe),se=r(49740),ce=r.n(se),ue=new(re());function le(e,t){var r,n,i=(r=(0,D.oneFlight)({keyFactory:function(e){return e}}),n=function(){function r(){(0,B.Z)(this,r),t.logger.debug("webex-store: constructing ".concat(e,"Storage")),ue.set(this,new(L()))}return(0,F.Z)(r,[{key:"adapter",get:function(){return t.config.storage["".concat(e,"Adapter")]}},{key:"bindings",get:function(){return ue.get(this)}},{key:"clear",value:function(){var e=[];return this.bindings.forEach((function(t){e.push(t.clear())})),h().all(e)}},{key:"del",value:function(e,r){return t.logger.debug("webex-store: removing ".concat(e,":").concat(r)),this._getBinding(e).then((function(e){return e.del(r)}))}},{key:"get",value:function(e,r){return t.logger.debug("webex-store: retrieving ".concat(e,":").concat(r)),this._getBinding(e).then((function(e){return e.get(r)}))}},{key:"put",value:function(e,r,n){return void 0===n?this.del(e,r):(t.logger.debug("webex-store: setting ".concat(e,":").concat(r)),this._getBinding(e).then((function(e){return e.put(r,n.serialize?n.serialize():n)})).then((function(){return n})))}},{key:"_getBinding",value:function(e){var r=this;return new(h())((function(n){t.logger.debug("storage: getting binding for `".concat(e,"`"));var i=r.bindings.get(e);return i?(t.logger.debug("storage: found binding for `".concat(e,"`")),n(i)):n(r.adapter.bind(e,{logger:t.logger}).then((function(n){return t.logger.debug("storage: made binding for `".concat(e,"`")),r.bindings.set(e,n),n})))}))}}]),r}(),(0,ee.Z)(n.prototype,"_getBinding",[r],ie()(n.prototype,"_getBinding"),n.prototype),n);return ae()(i.prototype,ce()),new i}var de=r(1469),fe=r.n(de),pe=new(re());function he(e){if(!a()(e))return e;var t=e.serialize?e.serialize():e;return l()(t).forEach((function(e){var r=t[e];fe()(r)?0===r.length?t[e]=void 0:t[e]=r.map(he):a()(r)&&l()(r).forEach((function(e){r[e]=he(r[e])}))})),l()(t).reduce((function(e,r){return e&&!t[r]}),!0)?void 0:t}function ve(e,t){var r,n,i=(r=(0,D.oneFlight)({keyFactory:function(e){return"initValue-".concat(e)}}),n=function(){function r(){(0,B.Z)(this,r),pe.set(this,new(L()))}return(0,F.Z)(r,[{key:"clear",value:function(){return t.webex["".concat(e,"Storage")].del(t.getNamespace())}},{key:"del",value:function(){for(var r,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(r=t.webex["".concat(e,"Storage")]).del.apply(r,[t.getNamespace()].concat(i))}},{key:"get",value:function(r){var n=pe.get(this).get(r);return n||(n=new D.Defer,pe.get(this).set(r,n)),t.webex["".concat(e,"Storage")].get(t.getNamespace(),r).then((function(e){return n.resolve(),e}))}},{key:"put",value:function(r,n){return t.webex["".concat(e,"Storage")].put(t.getNamespace(),r,he(n))}},{key:"waitFor",value:function(e){t.logger.debug("plugin-storage(".concat(t.getNamespace(),"): waiting to init key `").concat(e,"`"));var r=pe.get(this).get(e);return r?(t.logger.debug("plugin-storage(".concat(t.getNamespace(),"): already inited `").concat(e,"`")),r.promise):(t.logger.debug("plugin-storage(".concat(t.getNamespace(),"): initing `").concat(e,"`")),this.initValue(e))}},{key:"initValue",value:function(r){var n=new D.Defer;return pe.get(this).set(r,n),t.webex["".concat(e,"Storage")].get(t.getNamespace(),r).then((function(e){t.logger.debug("plugin-storage(".concat(t.getNamespace(),"): got `").concat(r,"` for first time")),"@"===r?t.parent.set(e):w()(t[r],"isState")?t[r].set(e):t.set(r,e),t.logger.debug("plugin-storage(".concat(t.getNamespace(),"): set `").concat(r,"` for first time")),n.resolve(),t.logger.debug("plugin-storage(".concat(t.getNamespace(),"): inited `").concat(r,"`"))})).catch((function(e){return e instanceof H?(t.logger.debug("plugin-storage(".concat(t.getNamespace(),"): no data for `").concat(r,"`, continuing")),n.resolve()):(t.logger.warn("plugin-storage(".concat(t.getNamespace(),"): failed to init `").concat(r,"`"),e),n.reject(e))})),n.promise}}]),r}(),(0,ee.Z)(n.prototype,"initValue",[r],ie()(n.prototype,"initValue"),n.prototype),n);return new i}function me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t=t||{},!e)return h().reject(new Error("`namespace` is required"));if(!t.logger)return h().reject(new Error("`options.logger` is required"));var r=t.logger,n=new(L())([["@",{}]]);return t.data&&l()(t.data).forEach((function(e){n.set(e,t.data[e])})),r.debug("memory-store-adapter: returning binding"),h().resolve({clear:function(){return r.debug("memory-store-adapter: clearing the binding"),h().resolve(n.clear())},del:function(e){return r.debug("memory-store-adapter: deleting `".concat(e,"`")),h().resolve(n.delete(e))},get:function(e){r.debug("memory-store-adapter: reading `".concat(e,"`"));var t=n.get(e);return void 0===t?h().reject(new H):h().resolve(t)},put:function(e,t){return r.debug("memory-store-adapter: writing `".concat(e,"`")),h().resolve(n.set(e,t))}})}const ge={bind:me,preload:function(e){return{bind:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e[t]&&(r.data=e[t]),me(t,r)}}}};const ye=y().extend({derived:{boundedStorage:{deps:[],fn:function(){return ve("bounded",this)}},unboundedStorage:{deps:[],fn:function(){return ve("unbounded",this)}},config:{cache:!1,deps:["webex","webex.config"],fn:function(){if(this.webex&&this.webex.config){var e=this.getNamespace();return e?this.webex.config[e.toLowerCase()]:this.webex.config}return{}}},logger:{deps:["webex","webex.logger"],fn:function(){return this.webex.logger||console}},webex:{deps:["parent"],fn:function(){if(!this.parent&&!this.collection)throw new Error("Cannot determine `this.webex` without `this.parent` or `this.collection`. Please initialize `this` via `children` or `collection` or set `this.parent` manually");for(var e=this;e.parent||e.collection;)e=e.parent||e.collection;return e}}},session:{parent:{type:"any"},ready:{default:!0,type:"boolean"}},clear:function(e){var t=this;return l()(this.attributes).forEach((function(r){"parent"!==r&&t.unset(r,e)})),l()(this._children).forEach((function(e){t[e].clear()})),l()(this._collections).forEach((function(e){t[e].reset()})),this},initialize:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];f()(y().prototype.initialize,this,r),this._dataTypes=c()(this._dataTypes),l()(this._dataTypes).forEach((function(t){e._dataTypes[t].set&&(e._dataTypes[t].set=e._dataTypes[t].set.bind(e))})),this.on("change",(function(t,r){e.parent&&e.parent.trigger("change:".concat(e.getNamespace().toLowerCase()),e.parent,e,r)}))},inspect:function(e){return m().inspect(i()(this.serialize({props:!0,session:!0,derived:!0}),"boundedStorage","unboundedStorage","config","logger","webex","parent"),{depth:e})},request:function(){var e;return(e=this.webex).request.apply(e,arguments)},upload:function(){var e;return(e=this.webex).upload.apply(e,arguments)},when:function(e){for(var t=this,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];if(n&&n.length>0)throw new Error("#when() does not accept a callback, you must attach to its promise");return new(h())((function(r){t.once(e,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r(t)}))}))},_filterSetParameters:function(e,t,r){var n;return a()(e)||null===e?(n=e,r=t):(n={})[e]=t,[n,r=r||{}]}});var Ee=r(62680),Se=r.n(Ee),_e=r(6919),be=r.n(_e),Re=r(93364),Te=r.n(Re),we=r(26771),Ie=r.n(we),xe=r(66250),Ae=r(98601),Ce=r.n(Ae),Oe=r(36968),ke=r.n(Oe),Ne=r(82492),Le=r.n(Ne),Pe=r(10928),Me=r.n(Pe),De=r(47037),Ue=r.n(De),je=r(23560),Fe=r.n(je),Be=r(27361),Ze=r.n(Be),Ve=r(66913),Ge=r.n(Ve),qe=r(33453),He=r.n(qe),We=r(8450),ze=r.n(We),$e=r(67857),Ke=r.n($e),Ye=r(17187),Je=r(98380),Qe=r(55877),Xe=r.n(Qe);function et(e){var t=function(){if("undefined"==typeof Reflect||!j())return!1;if(j().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(j()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,G.Z)(e);if(t){var i=(0,G.Z)(this).constructor;r=j()(n,arguments,i)}else r=n.apply(this,arguments);return(0,V.Z)(this,r)}}var tt=function(e){(0,Z.Z)(r,e);var t=et(r);function r(){return(0,B.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r,[{key:"onRequest",value:function(e){var t=this;return e.headers=e.headers||{},"authorization"in e.headers||"auth"in e?(e.headers.authorization||Ke()(e.headers,"authorization"),h().resolve(e)):this.requiresCredentials(e).then((function(r){return r?t.webex.credentials.getUserToken().then((function(t){return e.headers.authorization=t.toString(),e})):e}))}},{key:"requiresCredentials",value:function(e){var t=this;if(!1===e.addAuthHeader)return h().resolve(!1);if(!this.webex.internal.services)return h().resolve(!1);var r=this.webex.internal.services,n=(r.getServiceFromUrl(e.uri||"")||{}).name,i=e.resource,o=e.uri,a=e.service||e.api;return a&&"u2c"===a||n&&"u2c"===n?i&&i.includes("limited")||o&&o.includes("limited")?h().resolve(!1):h().resolve(!0):r.validateDomains&&r.hasAllowedDomains()&&o&&r.isAllowedDomainUrl(o)?h().resolve(!0):r.waitForService({name:a,url:o}).then((function(e){return!!r.getServiceFromUrl(e)})).catch((function(e){return t.webex.logger.warn("auth-interceptor: failed to validate service exists in catalog",e),!1}))}},{key:"onResponseError",value:function(e,t){var r=this;return this.shouldAttemptReauth(t,e).then((function(n){return n&&(r.webex.logger.info("auth: received 401, attempting to reauthenticate"),t.options.headers&&Ke()(t.options.headers,"authorization"),r.webex.credentials.canRefresh)?r.webex.credentials.refresh().then((function(){return r.replay(e)})):h().reject(t)}))}},{key:"replay",value:function(e){return e.replayCount?e.replayCount+=1:e.replayCount=1,e.replayCount>this.webex.config.maxAuthenticationReplays?(this.webex.logger.error("auth: failed after ".concat(this.webex.config.maxAuthenticationReplays," replay attempts")),h().reject(new Error("Failed after ".concat(this.webex.config.maxAuthenticationReplays," replay attempts")))):(this.webex.logger.info("auth: replaying request ".concat(e.replayCount," time")),this.webex.request(e))}},{key:"shouldAttemptReauth",value:function(e,t){return t&&!1===t.shouldRefreshAccessToken?h().resolve(!1):401===e.statusCode?h().resolve(!0):h().resolve(!1)}}],[{key:"create",value:function(){return new r({webex:this})}}]),r}(Je.nK),rt=r(66130),nt=r.n(rt);function it(e){var t=function(){if("undefined"==typeof Reflect||!j())return!1;if(j().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(j()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,G.Z)(e);if(t){var i=(0,G.Z)(this).constructor;r=j()(n,arguments,i)}else r=n.apply(this,arguments);return(0,V.Z)(this,r)}}var ot=function(e){(0,Z.Z)(r,e);var t=it(r);function r(){return(0,B.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r,[{key:"onRequest",value:function(e){return e.$timings=e.$timings||{},e.$timings.networkStart=nt()(),e}},{key:"onResponse",value:function(e,t){return e.$timings.networkEnd=nt()(),t}},{key:"onResponseError",value:function(e,t){return e.$timings.networkEnd=nt()(),h().reject(t)}}],[{key:"create",value:function(e){return new r(this,e)}}]),r}(Je.nK);function at(e){var t=function(){if("undefined"==typeof Reflect||!j())return!1;if(j().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(j()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,G.Z)(e);if(t){var i=(0,G.Z)(this).constructor;r=j()(n,arguments,i)}else r=n.apply(this,arguments);return(0,V.Z)(this,r)}}var st=function(e){(0,Z.Z)(r,e);var t=at(r);function r(){return(0,B.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r,[{key:"onRequest",value:function(e){return e.noTransform?e:this.webex.transform("outbound",e)}},{key:"onResponse",value:function(e,t){return e.disableTransform?t:this.webex.transform("inbound",t)}},{key:"onResponseError",value:function(e,t){return this.webex.transform("inbound",t).then((function(e){return h().reject(e||t)}))}}],[{key:"create",value:function(){return new r({webex:this})}}]),r}(Je.nK),ct=r(66678),ut=r.n(ct);function lt(e){var t=function(){if("undefined"==typeof Reflect||!j())return!1;if(j().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(j()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,G.Z)(e);if(t){var i=(0,G.Z)(this).constructor;r=j()(n,arguments,i)}else r=n.apply(this,arguments);return(0,V.Z)(this,r)}}var dt="cisco-no-http-redirect",ft="cisco-location",pt=function(e){(0,Z.Z)(r,e);var t=lt(r);function r(){return(0,B.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r,[{key:"onRequest",value:function(e){return e&&e.uri&&"string"==typeof e.uri&&(e.uri.includes("https://idbroker")||e.uri.includes(this.webex.config.credentials.samlUrl)||e.uri.includes(this.webex.config.credentials.tokenUrl)||e.uri.includes(this.webex.config.credentials.authorizeUrl))?e:dt in e.headers?(e.headers[dt]||Ke()(e.headers,dt),e):(e.headers[dt]=!0,e.$redirectCount=e.$redirectCount||0,e)}},{key:"onResponse",value:function(e,t){if(t.headers&&t.headers[ft])return(e=ut()(e)).uri=t.headers[ft],e.$redirectCount+=1,e.$redirectCount>this.webex.config.maxAppLevelRedirects?h().reject(new Error("Maximum redirects exceeded")):this.webex.request(e);if(t.headers&&t.body&&2000002===t.body.errorCode&&t.body.location){if(e=ut()(e),this.webex.logger.warn("redirect: url redirects needed from",e.uri),t.options&&t.options.qs){var r=t.body.location.split("?");e.uri=r[0]}else e.uri=t.body.location;return this.webex.logger.warn("redirect: url redirects needed to",e.uri),e.$redirectCount+=1,e.$redirectCount>this.webex.config.maxLocusRedirects?h().reject(new Error("Maximum redirects exceeded")):this.webex.request(e)}return t}}],[{key:"create",value:function(){return new r({webex:this})}}]),r}(Je.nK);function ht(e){var t=function(){if("undefined"==typeof Reflect||!j())return!1;if(j().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(j()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,G.Z)(e);if(t){var i=(0,G.Z)(this).constructor;r=j()(n,arguments,i)}else r=n.apply(this,arguments);return(0,V.Z)(this,r)}}var vt=function(e){(0,Z.Z)(r,e);var t=ht(r);function r(){return(0,B.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r,[{key:"onRequest",value:function(e){var t=Ze()(this,"webex.logger",console);try{this.webex.trigger("request:start",e)}catch(e){t.warn("event handler for request:start failed ",e)}return h().resolve(e)}},{key:"onRequestError",value:function(e,t){var r=Ze()(this,"webex.logger",console);try{this.webex.trigger("request:end",e,t),this.webex.trigger("request:failure",e,t)}catch(e){r.warn("event handler for request:end failed ",e)}return h().reject(t)}},{key:"onResponse",value:function(e,t){var r=Ze()(this,"webex.logger",console);try{this.webex.trigger("request:success",t.options,t)}catch(e){r.warn("event handler for request:success failed ",e)}return h().resolve(t)}},{key:"onResponseError",value:function(e,t){var r=Ze()(this,"webex.logger",console);try{this.webex.trigger("request:end",e,t),this.webex.trigger("request:failure",e,t)}catch(e){r.warn("event handler for request:failure failed ",e)}return h().reject(t)}}],[{key:"create",value:function(){return new r({webex:this})}}]),r}(Je.nK),mt=r(18721),gt=r.n(mt);function yt(e){var t=function(){if("undefined"==typeof Reflect||!j())return!1;if(j().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(j()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,G.Z)(e);if(t){var i=(0,G.Z)(this).constructor;r=j()(n,arguments,i)}else r=n.apply(this,arguments);return(0,V.Z)(this,r)}}var Et=function(e){(0,Z.Z)(r,e);var t=yt(r);function r(){return(0,B.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r,[{key:"onRequest",value:function(e){var t=Ze()(this,"webex.logger",console);t.info("/**********************************************************************\\ "),t.info("Request:",e.method||"GET",e.uri),t.info("WEBEX_TRACKINGID: ",Ze()(e,"headers.trackingid")),gt()(e,"headers.x-trans-id")&&t.info("X-Trans-ID: ",Ze()(e,"headers.x-trans-id"));var r=new Date;if({ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.ENABLE_VERBOSE_NETWORK_LOGGING){t.info("timestamp (start): ",r.getTime(),r.toISOString());try{e.body&&e.body.length&&!fe()(e.body)&&!Ue()(e.body)?t.info("Request Options:",m().inspect(i()(e,"body"),{depth:null})):t.info("Request Options:",m().inspect(e,{depth:null}))}catch(e){t.warn("Could not stringify request options:",e)}}return h().resolve(e)}},{key:"onRequestError",value:function(e,t){this.onRequest(e);var r=Ze()(this,"webex.logger",console);return r.error("Request Failed: ",t.stack),r.info("\\**********************************************************************/"),h().reject(t)}}],[{key:"create",value:function(){return new r({webex:this})}}]),r}(Je.nK);function St(e){var t=function(){if("undefined"==typeof Reflect||!j())return!1;if(j().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(j()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,G.Z)(e);if(t){var i=(0,G.Z)(this).constructor;r=j()(n,arguments,i)}else r=n.apply(this,arguments);return(0,V.Z)(this,r)}}var _t=function(e){(0,Z.Z)(r,e);var t=St(r);function r(){return(0,B.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r,[{key:"onRequest",value:function(e){return e.$timings=e.$timings||{},e.$timings.requestStart=nt()(),e}},{key:"onRequestError",value:function(e){return e.$timings.requestEnd=e.$timings.requestFail=nt()(),h().reject(e)}},{key:"onResponse",value:function(e,t){return e.$timings.requestEnd=nt()(),h().resolve(t)}},{key:"onResponseError",value:function(e,t){return e.$timings.requestEnd=e.$timings.requestFail=nt()(),h().reject(t)}}],[{key:"create",value:function(e){return new r(this,e)}}]),r}(Je.nK);function bt(e){var t=function(){if("undefined"==typeof Reflect||!j())return!1;if(j().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(j()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,G.Z)(e);if(t){var i=(0,G.Z)(this).constructor;r=j()(n,arguments,i)}else r=n.apply(this,arguments);return(0,V.Z)(this,r)}}var Rt=function(e){(0,Z.Z)(r,e);var t=bt(r);function r(){return(0,B.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r,[{key:"onResponse",value:function(e,t){var r=new Date;this.printResponseHeader(e,t);var n=Ze()(this,"webex.logger",console);if({ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.ENABLE_VERBOSE_NETWORK_LOGGING)if(n.info("timestamp (end): ",r.getTime(),r.toISOString()),"string"==typeof t.body||(0,D.isBuffer)(t.body))n.info("Response: ","Not printed, it`s probably a file");else if("object"===(0,S.Z)(t.body))try{n.info("Response: ",m().inspect(i()(t.body,"features"),{depth:null}))}catch(e){n.info("Response: ","[Not Serializable]",e)}return n.info("\\**********************************************************************/"),t}},{key:"onResponseError",value:function(e,t){var r=new Date;this.printResponseHeader(e,t);var n=Ze()(this,"webex.logger",console);if({ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.ENABLE_VERBOSE_NETWORK_LOGGING){n.info("timestamp (end): ",r.getTime(),r.toISOString());try{n.error("Response: ",m().inspect(t.body,{depth:null}))}catch(e){n.error("Response: ",t.body)}}return n.info("\\**********************************************************************/"),h().reject(t)}},{key:"printResponseHeader",value:function(e,t){var r=Ze()(this,"webex.logger",console);r.info("Status Code:",t.statusCode),r.info("WEBEX_TRACKINGID:",Ze()(e,"headers.trackingid")||Ze()(t,"headers.trackingid")),r.info("Network duration:",e.$timings.networkEnd-e.$timings.networkStart),r.info("Processing duration:",e.$timings.requestEnd-e.$timings.requestStart)}}],[{key:"create",value:function(){return new r({webex:this})}}]),r}(Je.nK),Tt=r(79873),wt=r.n(Tt);function It(e){var t=function(){if("undefined"==typeof Reflect||!j())return!1;if(j().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(j()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,G.Z)(e);if(t){var i=(0,G.Z)(this).constructor;r=j()(n,arguments,i)}else r=n.apply(this,arguments);return(0,V.Z)(this,r)}}var xt=function(e){(0,Z.Z)(r,e);var t=It(r);function r(){return(0,B.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r,[{key:"parse",value:function(e){var t=f()(Je.oo.prototype.parse,this,[e]);return wt()(this,"options",{enumerable:!1,value:e.options}),this.options.url?t+="\n".concat(this.options.method," ").concat(this.options.url):this.options.uri?t+="\n".concat(this.options.method," ").concat(this.options.uri):t+="\n".concat(this.options.method," ").concat(this.options.service.toUpperCase(),"/").concat(this.options.resource),t+="\nWEBEX_TRACKING_ID: ".concat(this.options.headers.trackingid),this.options.headers&&this.options.headers["x-trans-id"]&&(t+="\nX-Trans-Id: ".concat(this.options.headers["x-trans-id"])),this.headers["retry-after"]&&(wt()(this,"retryAfter",{enumerable:!0,value:this.headers["retry-after"],writeable:!1}),t+="\nRETRY-AFTER: ".concat(this.retryAfter)),t+="\n"}}]),r}(Je.oo);Je.oo.makeSubTypes(xt);var At=function(e){(0,Z.Z)(r,e);var t=It(r);function r(){return(0,B.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r)}(Je.oo.BadRequest);Je.oo[429]=At,Je.oo.TooManyRequests=At;var Ct=r(23710);function Ot(e){var t=function(){if("undefined"==typeof Reflect||!j())return!1;if(j().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(j()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,G.Z)(e);if(t){var i=(0,G.Z)(this).constructor;r=j()(n,arguments,i)}else r=n.apply(this,arguments);return(0,V.Z)(this,r)}}var kt=new(re()),Nt=function(e){(0,Z.Z)(r,e);var t=Ot(r);function r(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,B.Z)(this,r);var i=Ze()(n,"webex.config.appName"),o=Ze()(n,"webex.config.appVersion")||"0.0";return e=t.call(this,n),i?kt.set((0,Ct.Z)(e),"".concat(i,"/").concat(o)):kt.set((0,Ct.Z)(e),"@webex/http-core"),e}return(0,F.Z)(r,[{key:"onRequest",value:function(e){return D.inBrowser?e:(e.headers=e.headers||{},"user-agent"in e.headers&&e.headers["spark-user-agent"]||(e.headers["user-agent"]=kt.get(this)),e)}}],[{key:"create",value:function(){return new r({webex:this})}}]),r}(Je.nK);function Lt(e){var t=function(){if("undefined"==typeof Reflect||!j())return!1;if(j().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(j()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,G.Z)(e);if(t){var i=(0,G.Z)(this).constructor;r=j()(n,arguments,i)}else r=n.apply(this,arguments);return(0,V.Z)(this,r)}}var Pt=new(re()),Mt=function(e){(0,Z.Z)(r,e);var t=Lt(r);function r(){return(0,B.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r,[{key:"sequence",get:function(){var e=Pt.get(this)||0;return e+=1,Pt.set(this,e),e}},{key:"onRequest",value:function(e){if(e.headers=e.headers||{},"trackingid"in e.headers)return e.headers.trackingid||Ke()(e.headers,"trackingid"),e;if(this.requiresTrackingId(e)&&(e.headers.trackingid="".concat(this.webex.sessionId,"_").concat(this.sequence)),e.headers.trackingid&&e.replayCount){var t=e.headers.trackingid.split("+");t[1]=e.replayCount,e.headers.trackingid=t.join("+")}return e}},{key:"requiresTrackingId",value:function(e){return!e.headers.trackingid}}],[{key:"create",value:function(){return new r({webex:this})}}]),r}(Je.nK);function Dt(e){var t=function(){if("undefined"==typeof Reflect||!j())return!1;if(j().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(j()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,G.Z)(e);if(t){var i=(0,G.Z)(this).constructor;r=j()(n,arguments,i)}else r=n.apply(this,arguments);return(0,V.Z)(this,r)}}var Ut=new(re()),jt=function(e){(0,Z.Z)(r,e);var t=Dt(r);function r(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,B.Z)(this,r);var i=Ze()(n,"webex.webex",!1)?"webex":"webex-js-sdk",o=Ze()(n,"webex.version","development");return e=t.call(this,n),Ut.set((0,Ct.Z)(e),"".concat(i,"/").concat(o," (").concat(D.inBrowser?"web":"node",")")),e}return(0,F.Z)(r,[{key:"onRequest",value:function(e){var t,r;e.headers=e.headers||{};var n=null!==(t=null===(r=this.webex)||void 0===r?void 0:r.config)&&void 0!==t?t:{},i=n.appName,o=n.appVersion,a=n.appPlatform,s="".concat(Ut.get(this));return i&&(s+=" ".concat(i,"/").concat(null!=o?o:"0.0")),a&&(s+=" ".concat(a)),e.uri&&e.uri.includes("https://idbroker")||e.uri&&(e.uri.includes(this.webex.config.credentials.samlUrl)||e.uri.includes(this.webex.config.credentials.tokenUrl)||e.uri.includes(this.webex.config.credentials.authorizeUrl))?e:"spark-user-agent"in e.headers?(e.headers["spark-user-agent"]||Ke()(e.headers,"spark-user-agent"),e):(e.headers["spark-user-agent"]=s,e)}}],[{key:"create",value:function(){return new r({webex:this})}}]),r}(Je.nK);function Ft(e){var t=function(){if("undefined"==typeof Reflect||!j())return!1;if(j().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(j()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,G.Z)(e);if(t){var i=(0,G.Z)(this).constructor;r=j()(n,arguments,i)}else r=n.apply(this,arguments);return(0,V.Z)(this,r)}}var Bt=new(re()),Zt=/.*(idbroker|identity)(bts)?.ciscospark.com\/([^/]+)/,Vt=function(e){(0,Z.Z)(r,e);var t=Ft(r);function r(){var e;(0,B.Z)(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),Bt.set((0,Ct.Z)(e),new(L())),e}return(0,F.Z)(r,[{key:"onRequest",value:function(e){return this.isRateLimited(e.uri)?h().reject(new Error("API rate limited ".concat(e.uri))):h().resolve(e)}},{key:"onResponseError",value:function(e,t){return 429===t.statusCode&&(e.uri.includes("idbroker")||e.uri.includes("identity"))&&this.setRateLimitExpiry(e.uri,this.extractRetryAfterTime(e)),h().reject(t)}},{key:"extractRetryAfterTime",value:function(e){var t=1e3,r=e.headers["retry-after"]||null;return null===r||r<=0?6e4:r>3600?36e5:r*t}},{key:"setRateLimitExpiry",value:function(e,t){var r=this.getApiName(e);if(!r)return!1;var n=(new Date).getTime()+t;return Bt.get(this).set(r,n)}},{key:"getRateLimitStatus",value:function(e){var t=this.getApiName(e);if(!t)return!1;var r=(new Date).getTime(),n=Bt.get(this);return void 0!==n.get(t)&&r<n.get(t)}},{key:"getApiName",value:function(e){if(!e)return null;var t=e.match(Zt);return t?t[2]:null}},{key:"isRateLimited",value:function(e){return!(!e||!e.includes("idbroker")&&!e.includes("identity"))&&this.getRateLimitStatus(e)}}],[{key:"create",value:function(){return new r({webex:this})}}]),r}(Je.nK);function Gt(e){var t=function(){if("undefined"==typeof Reflect||!j())return!1;if(j().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(j()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,G.Z)(e);if(t){var i=(0,G.Z)(this).constructor;r=j()(n,arguments,i)}else r=n.apply(this,arguments);return(0,V.Z)(this,r)}}var qt=function(e){(0,Z.Z)(r,e);var t=Gt(r);function r(){return(0,B.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r,[{key:"onResponseError",value:function(e,t){if(451===t.statusCode){var r=this.webex.internal.device,n=["Received `HTTP 451 Unavailable For Legal Reasons`, ","discarding credentials and device registration"].join("");r&&this.webex.internal.device.clear(),this.webex.credentials.clear(),this.webex.logger.info(n)}return h().reject(t)}}],[{key:"create",value:function(){return new r({webex:this})}}]),r}(Je.nK);function Ht(e){var t=function(){if("undefined"==typeof Reflect||!j())return!1;if(j().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(j()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,G.Z)(e);if(t){var i=(0,G.Z)(this).constructor;r=j()(n,arguments,i)}else r=n.apply(this,arguments);return(0,V.Z)(this,r)}}var Wt=function(e){(0,Z.Z)(r,e);var t=Ht(r);function r(){return(0,B.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r,[{key:"onRequest",value:function(e){var t=this.webex.config.defaultRequestOptions;return t?(l()(t).forEach((function(r){l()(e).includes(r)||(e[r]=t[r])})),e):e}}],[{key:"create",value:function(){return new r({webex:this})}}]),r}(Je.nK);const zt={maxAppLevelRedirects:10,maxLocusRedirects:5,maxAuthenticationReplays:1,maxReconnectAttempts:1,onBeforeLogout:[],trackingIdPrefix:"webex-js-sdk",trackingIdSuffix:"",AlternateLogger:void 0,credentials:new(y().extend({extraProperties:"allow",props:{idbroker:["object",!1,function(){return{url:"https://idbroker.webex.com"}}],identity:["object",!1,function(){return{url:"https://identity.webex.com"}}],authorizationString:["string",!1,{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.WEBEX_AUTHORIZATION_STRING||{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.AUTHORIZATION_STRING],authorizeUrl:["string",!1,{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.WEBEX_AUTHORIZE_URL||"".concat("https://idbroker.webex.com","/idb/oauth2/v1/authorize")],client_id:["string",!1,{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.WEBEX_CLIENT_ID||{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.COMMON_IDENTITY_CLIENT_ID||{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.CLIENT_ID],client_secret:["string",!1,{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.WEBEX_CLIENT_SECRET||{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.COMMON_IDENTITY_CLIENT_SECRET||{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.CLIENT_SECRET],redirect_uri:["string",!1,{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.WEBEX_REDIRECT_URI||{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.COMMON_IDENTITY_REDIRECT_URI||{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.REDIRECT_URI],scope:["string",!1,{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.WEBEX_SCOPE||{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.WEBEX_SCOPES||{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.COMMON_IDENTITY_SCOPE||{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.SCOPE],cisService:["string",!1,"webex"]},derived:{activationUrl:{deps:["idbroker.url"],fn:function(){return"".concat(this.idbroker.url||"https://idbroker.webex.com","/idb/token/v1/actions/UserActivation/invoke")},cache:!1},generateOtpUrl:{deps:["idbroker.url"],fn:function(){return"".concat(this.idbroker.url||"https://idbroker.webex.com","/idb/token/v1/actions/UserOTP/Generate/invoke")},cache:!1},validateOtpUrl:{deps:["idbroker.url"],fn:function(){return"".concat(this.idbroker.url||"https://idbroker.webex.com","/idb/token/v1/actions/UserOTP/Validate/invoke")},cache:!1},tokenUrl:{deps:["idbroker.url"],fn:function(){return{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.TOKEN_URL||"".concat(this.idbroker.url,"/idb/oauth2/v1/access_token")},cache:!1},revokeUrl:{deps:["idbroker.url"],fn:function(){return{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.REVOKE_URL||"".concat(this.idbroker.url,"/idb/oauth2/v1/revoke")},cache:!1},logoutUrl:{deps:["idbroker.url"],fn:function(){return"".concat(this.idbroker.url,"/idb/oauth2/v1/logout")},cache:!1},setPasswordUrl:{deps:["identity.url"],fn:function(){return"".concat(this.identity.url||"https://identity.webex.com","/identity/scim/v1/Users")},cache:!1}}})),fedramp:{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.ENABLE_FEDRAMP||!1,services:{discovery:{hydra:"https://api.ciscospark.com/v1",u2c:"https://u2c.wbx2.com/u2c/api/v1"},validateDomains:!0,servicesNotNeedValidation:["webex-appapi-service"],allowedDomains:["wbx2.com","ciscospark.com","webex.com","webexapis.com","broadcloudpbx.com","broadcloud.eu","broadcloud.com.au","broadcloudpbx.net"]},device:{preDiscoveryServices:{hydra:"https://api.ciscospark.com/v1",hydraServiceUrl:"https://api.ciscospark.com/v1"},validateDomains:!0},metrics:{type:["behavioral","operational"]},payloadTransformer:{predicates:[],transforms:[]},storage:{boundedAdapter:ge,unboundedAdapter:ge}};var $t=r(93386),Kt=r.n($t);function Yt(e,t,r){(e._derived[t]={fn:Fe()(r)?r:r.fn,cache:!1!==r.cache,depList:r.deps||[]}).depList.forEach((function(r){e._deps[r]=Kt()(e._deps[r]||[],[t])})),wt()(e,t,{get:function(){return this._getDerivedProperty(t)},set:function(){throw new TypeError("`".concat(t,"` is a derived property, it can't be set directly."))}})}const Jt=y().extend({derived:{ready:{deps:[],fn:function(){var e=this;return l()(this._children).reduce((function(t,r){return t&&e[r]&&!1!==e[r].ready}),!0)}}},inspect:function(e){return m().inspect(this.serialize({props:!0,session:!0,derived:!0}),{depth:e})}});var Qt,Xt=r(34155);function er(e,t){var r=l()(e);if(Se()){var n=Se()(e);t&&(n=n.filter((function(t){return ie()(e,t).enumerable}))),r.push.apply(r,n)}return r}function tr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?er(Object(r),!0).forEach((function(t){(0,E.Z)(e,t,r[t])})):be()?Te()(e,be()(r)):er(Object(r)).forEach((function(t){Ie()(e,t,ie()(r,t))}))}return e}var rr={WebexTrackingIdInterceptor:Mt.create,RequestEventInterceptor:vt.create,RateLimitInterceptor:Vt.create,RequestLoggerInterceptor:{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.ENABLE_NETWORK_LOGGING||{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.ENABLE_VERBOSE_NETWORK_LOGGING?Et.create:void 0,ResponseLoggerInterceptor:{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.ENABLE_NETWORK_LOGGING||{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.ENABLE_VERBOSE_NETWORK_LOGGING?Rt.create:void 0,RequestTimingInterceptor:_t.create,ServiceInterceptor:void 0,UserAgentInterceptor:Nt.create,WebexUserAgentInterceptor:jt.create,AuthInterceptor:tt.create,KmsDryErrorInterceptor:void 0,PayloadTransformerInterceptor:st.create,ConversationInterceptor:void 0,RedirectInterceptor:pt.create,HttpStatusInterceptor:function(){return Je.ve.create({error:xt})},NetworkTimingInterceptor:ot.create,EmbargoInterceptor:qt.create,DefaultOptionsInterceptor:Wt.create},nr=["ResponseLoggerInterceptor","RequestTimingInterceptor","RequestEventInterceptor","WebexTrackingIdInterceptor","RateLimitInterceptor"],ir=["HttpStatusInterceptor","NetworkTimingInterceptor","EmbargoInterceptor","RequestLoggerInterceptor","RateLimitInterceptor"],or=y().extend((Qt={version:"2.54.0",children:{internal:Jt},constructor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"string"==typeof e?e={credentials:{supertoken:{access_token:e}}}:(["credentials.authorization","authorization","credentials.supertoken.supertoken","supertoken","access_token","credentials.authorization.supertoken"].forEach((function(t){var r=Ze()(e,t);r&&(Ce()(e,t),ke()(e,"credentials.supertoken",r))})),["credentials","credentials.authorization"].forEach((function(t){var r=Ze()(e,t);"string"==typeof r&&(Ce()(e,t),ke()(e,"credentials.supertoken",r))})),"string"==typeof Ze()(e,"credentials.access_token")&&(ke()(e,"credentials.access_token",this.bearerValidator(Ze()(e,"credentials.access_token").trim())),ke()(e,"credentials.supertoken",e.credentials))),f()(y(),this,[e,t])},derived:{boundedStorage:{deps:[],fn:function(){return le("bounded",this)}},unboundedStorage:{deps:[],fn:function(){return le("unbounded",this)}},ready:{deps:["loaded","internal.ready"],fn:function(){var e=this;return this.loaded&&l()(this._children).reduce((function(t,r){return t&&e[r]&&!1!==e[r].ready}),!0)}}},session:{config:{type:"object"},loaded:{default:!1,type:"boolean"},request:{setOnce:!0,type:"any"},sessionId:{setOnce:!0,type:"string"}},refresh:function(){var e;return(e=this.credentials).refresh.apply(e,arguments)},transform:function(e,t){var r=this,n=this.config.payloadTransformer.predicates.filter((function(t){return!t.direction||t.direction===e})),i={webex:this};return h().all(n.map((function(e){return e.test(i,t).then((function(r){if(r)return e.extract(t).then((function(t){return{name:e.name,target:t}}))}))}))).then((function(t){return t.filter((function(e){return Boolean(e)})).reduce((function(t,n){var i=n.name,o=n.target,a=n.alias;return t.then((function(){return a?r.applyNamedTransform(e,a,o):r.applyNamedTransform(e,i,o)}))}),h().resolve())})).then((function(){return t}))},applyNamedTransform:function(e,t,r){for(var n=this,i=arguments.length,o=new Array(i>3?i-3:0),a=3;a<i;a++)o[a-3]=arguments[a];return Ue()(t)&&(o.unshift(r),r=t,t={webex:this,transform:function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n.applyNamedTransform.apply(n,[e,t].concat(i))}}),t.webex.config.payloadTransformer.transforms.filter((function(t){return t.name===r&&(!t.direction||t.direction===e)})).reduce((function(e,r){return e.then((function(){var e;return r.alias?(e=t).transform.apply(e,[r.alias].concat(o)):h().resolve(r.fn.apply(r,[t].concat(o)))}))}),h().resolve()).then((function(){return Me()(o)}))},getWindow:function(){return window},initialize:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.config=Le()({},zt,t.config),this.trigger("change:config");var r=function t(){e.loaded&&(e.trigger("loaded"),e.stopListening(e,"change:loaded",t))};Xt.nextTick((function(){e.listenToAndRun(e,"change:loaded",r)}));var n=function t(){e.ready&&(e.trigger("ready"),e.stopListening(e,"change:ready",t))};Xt.nextTick((function(){e.listenToAndRun(e,"change:ready",n)})),l()(this.constructor.prototype._children).forEach((function(t){e.listenTo(e[t],"change",(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];n.unshift("change:".concat(t)),e.trigger.apply(e,n)}))}));var i=function(t,r){var n=rr[r];return Fe()(n)?(t.push(f()(n,e,[])),t):t},o=[];o=nr.reduce(i,o),o=l()(rr).filter((function(e){return!(nr.includes(e)||ir.includes(e))})).reduce(i,o),o=ir.reduce(i,o),this.request=(0,Je.ce)({json:!0,interceptors:o});var a="".concat(Ze()(this,"config.trackingIdPrefix","webex-js-sdk"),"_").concat(Ze()(this,"config.trackingIdBase",Xe().v4()));Ze()(this,"config.trackingIdSuffix")&&(a+="_".concat(Ze()(this,"config.trackingIdSuffix"))),this.sessionId=a},setConfig:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.config=Le()({},this.config,e)},bearerValidator:function(e){return e.includes("Bearer")&&e.split(" ").length-1==0?(console.warn("Your access token does not have a space between 'Bearer' and the token, please add a space to it or replace it with this already fixed version:\n\n".concat(e.replace("Bearer","Bearer ").replace(/\s+/g," "))),console.info("Tip: You don't need to add 'Bearer' to the access_token field. The token by itself is fine"),e.replace("Bearer","Bearer ").replace(/\s+/g," ")):e.split(" ").length-1>1?(console.warn("Your access token has ".concat(e.split(" ").length-2," too many spaces, please use this format:\n\n").concat(e.replace(/\s+/g," "))),console.info("Tip: You don't need to add 'Bearer' to the access_token field, the token by itself is fine"),e.replace(/\s+/g," ")):e.replace(/\s+/g," ")},inspect:function(e){return m().inspect(i()(this.serialize({props:!0,session:!0,derived:!0}),"boundedStorage","unboundedStorage","request","config"),{depth:e})},logout:function(e){for(var t=this,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var o=this.credentials.supertoken&&(this.credentials.supertoken.refresh_token||this.credentials.supertoken.access_token);return e=ae()({token:o},e),this.config.onBeforeLogout.reverse().reduce((function(r,i){var o=i.plugin,a=i.fn;return r.then((function(){return h().resolve(f()(a,t[o]||t.internal[o],[e].concat(n))).catch((function(e){t.logger.warn("onBeforeLogout from plugin ".concat(o,": failed"),e)}))}))}),h().resolve()).then((function(){return h().all([t.boundedStorage.clear(),t.unboundedStorage.clear()])})).then((function(){var e;return(e=t.credentials).invalidate.apply(e,n)})).then((function(){var r;return t.authorization&&t.authorization.logout&&(r=t.authorization).logout.apply(r,[e].concat(n))})).then((function(){return t.trigger("client:logout")}))},measure:function(){var e;return this.metrics?(e=this.metrics).sendUnstructured.apply(e,arguments):h().resolve()},upload:function(e){var t=this;return(0,xe.Z)(He().mark((function r(){var n,o;return He().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.file){r.next=2;break}return r.abrupt("return",h().reject(new Error("`options.file` is required")));case 2:return e.phases=e.phases||{},e.phases.initialize=e.phases.initialize||{},e.phases.upload=e.phases.upload||{},e.phases.finalize=e.phases.finalize||{},Ge()(e.phases.initialize,{method:"POST",body:{uploadProtocol:"content-length"}},i()(e,"file","phases")),Ge()(e.phases.upload,{method:"PUT",json:!1,withCredentials:!1,body:e.file,headers:{"x-trans-id":Xe().v4(),authorization:void 0}}),Ge()(e.phases.finalize,{method:"POST"},i()(e,"file","phases")),n=new Ye.EventEmitter,o=t._uploadPhaseInitialize(e).then((function(){var r=t._uploadPhaseUpload(e);return(0,D.transferEvents)("progress",r,n),r})).then((function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t._uploadPhaseFinalize.apply(t,[e].concat(n))})).then((function(e){return tr(tr({},e.body),e.headers)})),(0,D.proxyEvents)(n,o),r.abrupt("return",o);case 13:case"end":return r.stop()}}),r)})))()},_uploadPhaseInitialize:function(e){var t=this;return this.logger.debug("client: initiating upload session"),this.request(e.phases.initialize).then((function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o=1024*(n[0].body.fileUploadSizeLimit||2048)*1024,a=e.file.byteLength;return o&&o<a?t._uploadAbortSession.apply(t,[a].concat(n)):t._uploadApplySession.apply(t,[e].concat(n))})).then((function(e){return t.logger.debug("client: initiated upload session"),e}))},_uploadAbortSession:function(e,t){var r=this;return this.logger.debug("client: deleting uploaded file"),this.request({method:"DELETE",url:t.body.url,headers:t.options.headers}).then((function(){r.logger.debug("client: deleting uploaded file complete");var n={currentFileSizeInBytes:e,fileUploadSizeLimitInMB:t.body.fileUploadSizeLimit||2048,message:"file-upload-size-limit-enabled"};return h().reject(new Error("".concat(ze()(n))))}))},_uploadApplySession:function(e,t){var r=t.body;["upload","finalize"].reduce((function(e,t){return e[t]=l()(e[t]).reduce((function(e,t){return t.startsWith("$")&&(e[t.substr(1)]=e[t](r),Ke()(e,t)),e}),e[t]),e}),e.phases)},_uploadPhaseUpload:function(e){var t=this;this.logger.debug("client: uploading file");var r=this.request(e.phases.upload).then((function(e){return t.logger.debug("client: uploaded file"),e}));return(0,D.proxyEvents)(e.phases.upload.upload,r),r},_uploadPhaseFinalize:function(e){var t=this;return this.logger.debug("client: finalizing upload session"),this.request(e.phases.finalize).then((function(e){return t.logger.debug("client: finalized upload session"),e}))}},(0,ee.Z)(Qt,"_uploadPhaseUpload",[D.retry],ie()(Qt,"_uploadPhaseUpload"),Qt),Qt));or.version="2.54.0",function(e,t,r){e.registerPlugin=function(n,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e.prototype._children[n]||o.replace){if(e.prototype._children[n]=i,o.proxies)throw new Error("Proxies are not currently supported for private plugins");if(o.interceptors&&l()(o.interceptors).forEach((function(e){r[e]=o.interceptors[e]})),o.config&&Le()(t,o.config),gt()(o,"payloadTransformer.predicates")&&(t.payloadTransformer.predicates=t.payloadTransformer.predicates.concat(Ze()(o,"payloadTransformer.predicates"))),gt()(o,"payloadTransformer.transforms")&&(t.payloadTransformer.transforms=t.payloadTransformer.transforms.concat(Ze()(o,"payloadTransformer.transforms"))),o.onBeforeLogout)t.onBeforeLogout=t.onBeforeLogout||[],(fe()(o.onBeforeLogout)?o.onBeforeLogout:[o.onBeforeLogout]).forEach((function(e){return t.onBeforeLogout.push({plugin:n,fn:e})}));if(i.prototype._definition&&i.prototype._definition.ready){var a=e.prototype._derived.ready,s=a.fn,c={deps:a.depList.concat("".concat(n,".ready")),fn:s};!function(e,t,r){var n=e._derived[t]={fn:Fe()(r)?r:r.fn,cache:!1!==r.cache,depList:r.deps||[]};n.depList.forEach((function(r){e._deps[r]=Kt()(e._deps[r]||[],[t])})),wt()(e,t,{get:function(){return this._getDerivedProperty(t)},set:function(){throw new TypeError("`".concat(t,"` is a derived property, it can't be set directly."))}})}(e.prototype,"ready",c)}}}}(Jt,zt,rr),function(e,t,r){e.registerPlugin=function(n,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e.prototype._children[n]||o.replace){if(e.prototype._children[n]=i,o.proxies&&o.proxies.forEach((function(t){Yt(e.prototype,t,{deps:["".concat(n,".").concat(t)],fn:function(){return this[n][t]}})})),o.interceptors&&l()(o.interceptors).forEach((function(e){r[e]=o.interceptors[e]})),o.config&&Le()(t,o.config),gt()(o,"payloadTransformer.predicates")&&(t.payloadTransformer.predicates=t.payloadTransformer.predicates.concat(Ze()(o,"payloadTransformer.predicates"))),gt()(o,"payloadTransformer.transforms")&&(t.payloadTransformer.transforms=t.payloadTransformer.transforms.concat(Ze()(o,"payloadTransformer.transforms"))),o.onBeforeLogout)t.onBeforeLogout=t.onBeforeLogout||[],(fe()(o.onBeforeLogout)?o.onBeforeLogout:[o.onBeforeLogout]).forEach((function(e){return t.onBeforeLogout.push({plugin:n,fn:e})}));if(i.prototype._definition&&i.prototype._definition.ready){var a=e.prototype._derived.ready,s=a.fn,c={deps:a.depList.concat("".concat(n,".ready")),fn:s};Yt(e.prototype,"ready",c)}}}}(or,zt,rr);const ar=or;function sr(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};or.registerPlugin(e,t,r)}function cr(e,t,r){Jt.registerPlugin(e,t,r)}var ur={error:["log"],warn:["error","log"],info:["log"],debug:["info","log"],trace:["debug","info","log"]};function lr(e){var t=ur[e];if(t)for(t=t.slice();!console[e];)e=t.pop();return function(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];(t=console)[e].apply(t,n)}}var dr=ye.extend({namespace:"Logger",error:lr("error"),warn:lr("warn"),log:lr("log"),info:lr("info"),debug:lr("debug"),trace:lr("trace"),version:"2.54.0"});sr("logger",dr);var fr=r(41609),pr=r.n(fr),hr=r(17673),vr=r(8575),mr=r(49704),gr=r.n(mr),yr=r(67431);function Er(e){var t=function(){if("undefined"==typeof Reflect||!j())return!1;if(j().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(j()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,G.Z)(e);if(t){var i=(0,G.Z)(this).constructor;r=j()(n,arguments,i)}else r=n.apply(this,arguments);return(0,V.Z)(this,r)}}var Sr=function(e){(0,Z.Z)(r,e);var t=Er(r);function r(){return(0,B.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r,[{key:"parse",value:function(e){var t=e.body||e;return Te()(this,{error:{enumerable:!0,value:t.error},errorDescription:{enumerable:!0,value:t.error_description},errorUri:{enumerable:!0,value:t.error_uri},res:{enumerable:!1,value:e}}),this.errorDescription}}]),r}(D.Exception),_r=function(e){(0,Z.Z)(r,e);var t=Er(r);function r(){return(0,B.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r)}(Sr),br=function(e){(0,Z.Z)(r,e);var t=Er(r);function r(){return(0,B.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r)}(Sr),Rr=function(e){(0,Z.Z)(r,e);var t=Er(r);function r(){return(0,B.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r)}(Sr),Tr=function(e){(0,Z.Z)(r,e);var t=Er(r);function r(){return(0,B.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r)}(Sr),wr=function(e){(0,Z.Z)(r,e);var t=Er(r);function r(){return(0,B.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r)}(Sr),Ir=function(e){(0,Z.Z)(r,e);var t=Er(r);function r(){return(0,B.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r)}(Sr),xr={OAuthError:Sr,InvalidRequestError:_r,InvalidClientError:br,InvalidGrantError:Rr,UnauthorizedClientError:Tr,UnsupportGrantTypeError:wr,InvalidScopeError:Ir,invalid_request:_r,invalid_client:br,invalid_grant:Rr,unauthorized_client:Tr,unsupported_grant_type:wr,invalid_scope:Ir,select:function(e){return xr[e]||Sr}};const Ar=xr;function Cr(e){return e?e.split(" ").sort().join(" "):""}var Or,kr,Nr=r(14917),Lr=r(78718),Pr=r.n(Lr);function Mr(e,t){var r=l()(e);if(Se()){var n=Se()(e);t&&(n=n.filter((function(t){return ie()(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mr(Object(r),!0).forEach((function(t){(0,E.Z)(e,t,r[t])})):be()?Te()(e,be()(r)):Mr(Object(r)).forEach((function(t){Ie()(e,t,ie()(r,t))}))}return e}function Ur(e){if(400!==e.statusCode)return h().reject(e);var t=Ar.select(e.body.error);return t===Sr&&e instanceof xt?h().reject(e):t?h().reject(new t(e._res||e)):h().reject(e)}var jr=ye.extend((Or=(0,D.oneFlight)({keyFactory:function(e){return e}}),kr={derived:{canAuthorize:{deps:["access_token","isExpired"],fn:function(){return!!this.access_token&&!this.isExpired}},canDownscope:{deps:["canAuthorize"],fn:function(){return this.canAuthorize&&!!this.config.client_id}},canRefresh:{deps:["refresh_token"],fn:function(){return D.inBrowser?!!this.refresh_token&&!!this.config.refreshCallback:!!this.refresh_token&&!!this.config.client_secret}},isExpired:{deps:["expires","_isExpired"],fn:function(){return!!this.expires&&this._isExpired}},_string:{deps:["access_token","token_type"],fn:function(){return this.access_token&&this.token_type?"".concat(this.token_type," ").concat(this.access_token):""}}},namespace:"Credentials",props:{scope:"string",access_token:"string",expires:"number",expires_in:"number",refresh_token:"string",refresh_token_expires:"number",refresh_token_expires_in:"number",token_type:{default:"Bearer",type:"string"}},session:{_isExpired:{default:!1,type:"boolean"},previousToken:{type:"state"}},downscope:function(e){var t=this;return this.logger.info("token: downscoping token to ".concat(e)),this.isExpired?(this.logger.info("token: request received to downscope expired access_token"),h().reject(new Error("cannot downscope expired access token"))):this.canDownscope?(e&&(e=Cr(e)),e===Cr(this.config.scope)?h().reject(new Error("token: scope reduction requires a reduced scope")):this.webex.request({method:"POST",uri:this.config.tokenUrl,addAuthHeader:!1,form:{grant_type:"urn:cisco:oauth:grant-type:scope-reduction",token:this.access_token,scope:e,client_id:this.config.client_id,self_contained_token:!0}}).then((function(r){return t.logger.info("token: downscoped token to ".concat(e)),new jr(ae()(r.body,{scope:e}),{parent:t.parent})}))):(this.config.client_id?this.logger.info("token: request received to downscope invalid access_token"):this.logger.trace("token: cannot downscope without client_id"),h().reject(new Error("cannot downscope access token")))},initialize:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(f()(ye.prototype.initialize,this,[t,r]),"string"==typeof t&&(this.access_token=t),!this.access_token)throw new Error("`access_token` is required");this.expires&&(this.expires<nt()()?this._isExpired=!0:(0,yr.L)((function(){e._isExpired=!0}),this.expires-nt()()))},refresh:function(){var e,t=this;if(!this.canRefresh)throw new Error("Not enough information available to refresh this access token");if(D.inBrowser){if(!this.config.refreshCallback)throw new Error("Cannot refresh access token without refreshCallback");e=h().resolve(this.config.refreshCallback(this.webex,this))}return(e||this.webex.request({method:"POST",uri:this.config.tokenUrl,form:{grant_type:"refresh_token",redirect_uri:this.config.redirect_uri,refresh_token:this.refresh_token},auth:{user:this.config.client_id,pass:this.config.client_secret,sendImmediately:!0},shouldRefreshAccessToken:!1}).then((function(e){return e.body}))).then((function(e){if(!e)throw new Error("token: refreshCallback() did not produce an object");return e.refresh_token||ae()(e,Pr()(t,"refresh_token","refresh_token_expires","refresh_token_expires_in")),t.access_token===e.access_token?(t.logger.error("token: new token matches current token"),h().reject(new Error("new token matches current token"))):(t.previousToken&&(t.previousToken.revoke(),t.unset("previousToken")),e.previousToken=t,e.scope=t.scope,new jr(e,{parent:t.parent}))})).catch(Ur)},revoke:function(){var e=this;return this.isExpired?(this.logger.info("token: already expired, not making making revocation request"),h().resolve()):this.canAuthorize?this.config.client_secret?(this.logger.info("token: revoking access token"),this.webex.request({method:"POST",uri:this.config.revokeUrl,form:{token:this.access_token,token_type_hint:"access_token"},auth:{user:this.config.client_id,pass:this.config.client_secret,sendImmediately:!0},shouldRefreshAccessToken:!1}).then((function(){e.unset(["access_token","expires","expires_in","token_type"]),e.logger.info("token: access token revoked")})).catch(Ur)):(this.logger.info("token: no client secret available, not making revocation request"),h().resolve()):(this.logger.info("token: no longer valid, not making revocation request"),h().resolve())},set:function(){var e=this._filterSetParameters.apply(this,arguments),t=(0,Nr.Z)(e,2),r=t[0],n=t[1];if(!r.token_type&&r.access_token&&r.access_token.includes(" ")){var i=r.access_token.split(" "),o=(0,Nr.Z)(i,2),a=o[0],s=o[1];r=Dr(Dr({},r),{},{access_token:s,token_type:a})}var c=nt()();return!r.expires&&r.expires_in&&(r.expires=c+1e3*r.expires_in),!r.refresh_token_expires&&r.refresh_token_expires_in&&(r.refresh_token_expires=c+1e3*r.refresh_token_expires_in),r.scope&&(r.scope=Cr(r.scope)),f()(ye.prototype.set,this,[r,n])},toString:function(){if(!this._string)throw new Error("cannot stringify Token");return this._string},validate:function(){throw new Error("Token#validate() must not be used in production")},version:"2.54.0"},(0,ee.Z)(kr,"downscope",[Or],ie()(kr,"downscope"),kr),(0,ee.Z)(kr,"refresh",[D.oneFlight],ie()(kr,"refresh"),kr),(0,ee.Z)(kr,"revoke",[D.oneFlight],ie()(kr,"revoke"),kr),kr));const Fr=jr;var Br=r(90765);const Zr=r.n(Br)().extend({mainIndex:"scope",model:Fr,namespace:"Credentials"});var Vr,Gr,qr,Hr,Wr,zr,$r;function Kr(e,t){var r=l()(e);if(Se()){var n=Se()(e);t&&(n=n.filter((function(t){return ie()(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Kr(Object(r),!0).forEach((function(t){(0,E.Z)(e,t,r[t])})):be()?Te()(e,be()(r)):Kr(Object(r)).forEach((function(t){Ie()(e,t,ie()(r,t))}))}return e}sr("credentials",ye.extend((Vr=(0,D.oneFlight)({keyFactory:function(e){return e}}),Gr=Y("@"),qr=W("@"),Hr=Y("@"),Wr=(0,D.whileInFlight)("isRefreshing"),zr=Y("@"),$r={collections:{userTokens:Zr},dataTypes:{token:(0,D.makeStateDataType)(Fr,"token").dataType},derived:{canAuthorize:{deps:["supertoken","supertoken.canAuthorize","canRefresh"],fn:function(){return Boolean(this.supertoken&&this.supertoken.canAuthorize||this.canRefresh)}},canRefresh:{deps:["supertoken","supertoken.canRefresh"],fn:function(){return!!this.config.jwtRefreshCallback||Boolean(this.supertoken&&this.supertoken.canRefresh)}}},props:{supertoken:(0,D.makeStateDataType)(Fr,"token").prop},namespace:"Credentials",session:{isRefreshing:{default:!1,type:"boolean"},ready:{default:!1,type:"boolean"},refreshTimer:{default:void 0,type:"any"}},buildLoginUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{clientType:"public"};if(e.state&&!a()(e.state))throw new Error("if specified, `options.state` must be an object");return e.client_id=this.config.client_id,e.redirect_uri=this.config.redirect_uri,e.scope=this.config.scope,(e=c()(e)).response_type||(e.response_type="public"===e.clientType?"token":"code"),Ke()(e,"clientType"),e.state&&(pr()(e.state)?delete e.state:e.state=D.base64.toBase64Url(ze()(e.state))),"".concat(this.config.authorizeUrl,"?").concat(hr.stringify(e))},getOrgId:function(){this.logger.info("credentials: attempting to retrieve the OrgId from token");try{return this.logger.info("credentials: trying to extract OrgId from JWT"),this.extractOrgIdFromJWT(this.supertoken.access_token)}catch(t){this.logger.info("credentials: could not extract OrgId from JWT"),this.logger.info("credentials: attempting to extract OrgId from user token");try{var e;return this.extractOrgIdFromUserToken(null===(e=this.supertoken)||void 0===e?void 0:e.access_token)}catch(e){throw this.logger.info("credentials: could not extract OrgId from user token"),e}}},extractOrgIdFromJWT:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=gr().decode(e);if(!t)throw new Error("unable to extract the OrgId from the provided JWT");if(!t.realm)throw new Error("the provided JWT does not contain an OrgId");return t.realm},extractOrgIdFromUserToken:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("_");if(3!==e.length)throw new Error("the provided token is not a valid format");return e[2]},buildLogoutUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(this.config.logoutUrl,"?").concat(hr.stringify(Yr({cisService:this.config.service,goto:this.config.redirect_uri},e)))},calcRefreshTimeout:function(e){return Math.floor((Math.floor(4*Math.random())+6)/10*e)},constructor:function(){var e=this;this._dataTypes=c()(this._dataTypes),l()(this._dataTypes).forEach((function(t){e._dataTypes[t].set&&(e._dataTypes[t].set=e._dataTypes[t].set.bind(e))}));for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];f()(ye,this,r)},downscope:function(e){var t=this;return this.supertoken.downscope(e).catch((function(r){return t.logger.trace("credentials: failed to downscope supertoken to ".concat(e),r),t.logger.trace("credentials: falling back to supertoken for ".concat(e)),h().resolve(new Fr(Yr({scope:e},t.supertoken.serialize())),{parent:t})}))},getClientToken:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.logger.info("credentials: requesting client credentials grant"),this.webex.request({method:"POST",uri:t.uri||this.config.tokenUrl,form:{grant_type:"client_credentials",scope:t.scope||"webexsquare:admin",self_contained_token:!0},auth:{user:this.config.client_id,pass:this.config.client_secret,sendImmediately:!0},shouldRefreshAccessToken:!1}).then((function(t){return new Fr(t.body,{parent:e})})).catch((function(e){if(400!==e.statusCode)return h().reject(e);var t=Ar.select(e.body.error);return h().reject(new t(e._res||e))}))},getUserToken:function(e){var t=this;return h().resolve(!this.isRefreshing||new(h())((function(e){t.logger.info("credentials: token refresh inflight; delaying getUserToken until refresh completes"),t.once("change:isRefreshing",(function(){t.logger.info("credentials: token refresh complete; reinvoking getUserToken"),e()}))}))).then((function(){if(!t.canAuthorize)return t.logger.info("credentials: cannot produce an access token from current state"),h().reject(new Error("Current state cannot produce an access token"));if(e||(e=function(e,t){return t?t.split(" ").filter((function(t){return t!==e})).sort().join(" "):""}("spark:kms",t.config.scope)),(e=Cr(e))===Cr(t.config.scope))return h().resolve(t.supertoken);var r=t.userTokens.get(e);return r&&r.access_token?h().resolve(r):t.downscope(e).then((0,D.tap)((function(e){return t.userTokens.add(e)})))}))},initialize:function(e,t){var r=this;e&&("string"==typeof e&&(this.supertoken=e),e.access_token&&(this.supertoken=e),e.authorization&&(e.authorization.supertoken?this.supertoken=e.authorization.supertoken:this.supertoken=e.authorization),this.supertoken&&this.supertoken.expires&&this.scheduleRefresh(this.supertoken.expires)),f()(ye.prototype.initialize,this,[e,t]),this.listenToOnce(this.parent,"change:config",(function(){if(r.config.authorizationString){var e=vr.parse(r.config.authorizationString,!0);r.config.client_id=e.query.client_id,r.config.redirect_uri=e.query.redirect_uri,r.config.scope=e.query.scope,r.config.authorizeUrl=e.href.substr(0,e.href.indexOf("?"))}})),this.webex.once("loaded",(function(){r.ready=!0}))},invalidate:function(){this.logger.info("credentials: invalidating tokens"),this.refreshTimer&&(clearTimeout(this.refreshTimer),this.unset("refreshTimer"));try{this.unset("supertoken")}catch(e){this.logger.warn("credentials: failed to clear supertoken",e)}for(;this.userTokens.models.length;)try{this.userTokens.remove(this.userTokens.models[0])}catch(e){this.logger.warn("credentials: failed to remove user token",e)}return this.logger.info("credentials: finished removing tokens"),h().resolve()},refresh:function(){var e=this;this.logger.info("credentials: refresh requested");var t=this.supertoken,r=ut()(this.userTokens.models);return this.config.jwtRefreshCallback?this.config.jwtRefreshCallback(this.webex).then((function(t){return e.webex.authorization.requestAccessTokenFromJwt({jwt:t})})):(this.webex.internal.services&&this.webex.internal.services.updateCredentialsConfig(),t.refresh().then((function(t){return e.refreshTimer&&(clearTimeout(e.refreshTimer),e.unset("refreshTimer")),e.supertoken=t,h().all(r.map((function(t){return e.downscope(t.scope).then((function(r){return e.logger.info("credentials: revoking token for ".concat(t.scope)),t.revoke().catch((function(t){e.logger.warn("credentials: failed to revoke user token",t)})).then((function(){e.userTokens.remove(t.scope),e.userTokens.add(r)}))}))})))})).then((function(){e.scheduleRefresh(e.supertoken.expires)})).catch((function(t){if(t instanceof Ar.InvalidRequestError){for(e.unset("supertoken");e.userTokens.models.length;)try{e.userTokens.remove(e.userTokens.models[0])}catch(t){e.logger.warn("credentials: failed to remove user token",t)}e.webex.trigger("client:InvalidRequestError")}return h().reject(t)})))},scheduleRefresh:function(e){var t=this,r=e-nt()();if(r>0){var n=this.calcRefreshTimeout(r);this.refreshTimer=(0,yr.L)((function(){return t.refresh()}),n)}else this.refresh()},version:"2.54.0"},(0,ee.Z)($r,"getUserToken",[Vr,Gr],ie()($r,"getUserToken"),$r),(0,ee.Z)($r,"initialize",[qr],ie()($r,"initialize"),$r),(0,ee.Z)($r,"invalidate",[D.oneFlight,Hr],ie()($r,"invalidate"),$r),(0,ee.Z)($r,"refresh",[D.oneFlight,Wr,zr],ie()($r,"refresh"),$r),$r)),{proxies:["canAuthorize","canRefresh"]});var Jr=["discovery","limited","signin","postauth","custom"],Qr="SERVICE_CATALOGS_ENUM_TYPES_STRING",Xr="SERVICE_CATALOGS_ENUM_TYPES_NUMBER",en=r(52153),tn=r.n(en);const rn="JS_SDK_SERVICE_NOT_FOUND";var nn=r(27921),on=r.n(nn),an=r(85579),sn=r.n(an),cn=r(22013),un=r.n(cn),ln=r(78149),dn=r.n(ln);const fn=y().extend({namespace:"ServiceUrl",props:{defaultUrl:["string",!0,void 0],hosts:["array",!1,function(){return[]}],name:["string",!0,void 0]},_generateHostUrl:function(e){var t=vr.parse(this.defaultUrl);return t.host="".concat(e).concat(t.port?":".concat(t.port):""),vr.format(t)},_getHostUrls:function(){var e=this;return this.hosts.map((function(t){return{url:e._generateHostUrl(t.host),priority:t.priority}}))},_getPriorityHostUrl:function(e){if(0===this.hosts.length)return this.defaultUrl;var t=e?this.hosts.filter((function(t){return t.id===e})):this.hosts.filter((function(e){return e.homeCluster})),r=t.filter((function(e){return!e.failed}));return t=0===r.length?t.map((function(e){return e.failed=!1,e})):r,this._generateHostUrl(t.reduce((function(e,t){return e.priority>t.priority||!e.homeCluster?t:e}),{}).host)},failHost:function(e){if(e===this.defaultUrl)return!0;var t=vr.parse(e).hostname,r=this.hosts.find((function(e){return e.host===t}));return r&&(r.failed=!0),void 0!==r},get:function(e,t){return e?this._getPriorityHostUrl(t):this.defaultUrl}});function pn(e,t){var r=l()(e);if(Se()){var n=Se()(e);t&&(n=n.filter((function(t){return ie()(e,t).enumerable}))),r.push.apply(r,n)}return r}function hn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pn(Object(r),!0).forEach((function(t){(0,E.Z)(e,t,r[t])})):be()?Te()(e,be()(r)):pn(Object(r)).forEach((function(t){Ie()(e,t,ie()(r,t))}))}return e}function vn(e,t){var r=void 0!==sn()&&e[un()]||e["@@iterator"];if(!r){if(dn()(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return mn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return on()(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mn(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function mn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var gn=y().extend({namespace:"ServiceCatalog",props:{serviceGroups:["object",!0,function(){return{discovery:[],override:[],preauth:[],postauth:[],signin:[]}}],status:["object",!0,function(){return{discovery:{ready:!1,collecting:!1},override:{ready:!1,collecting:!1},preauth:{ready:!1,collecting:!1},postauth:{ready:!1,collecting:!1},signin:{ready:!1,collecting:!1}}}],isReady:["boolean",!1,!1],allowedDomains:["array",!1,function(){return[]}]},_getUrl:function(e,t){return("string"==typeof t?this.serviceGroups[t]||[]:[].concat((0,_.Z)(this.serviceGroups.override),(0,_.Z)(this.serviceGroups.postauth),(0,_.Z)(this.serviceGroups.signin),(0,_.Z)(this.serviceGroups.preauth),(0,_.Z)(this.serviceGroups.discovery))).find((function(t){return t.name===e}))},_listServiceUrls:function(){return[].concat((0,_.Z)(this.serviceGroups.override),(0,_.Z)(this.serviceGroups.postauth),(0,_.Z)(this.serviceGroups.signin),(0,_.Z)(this.serviceGroups.preauth),(0,_.Z)(this.serviceGroups.discovery))},_loadServiceUrls:function(e,t){var r=this;return t.forEach((function(t){r._getUrl(t.name,e)||r.serviceGroups[e].push(t)})),this},_unloadServiceUrls:function(e,t){var r,n=this;return t.forEach((function(t){(r=n._getUrl(t.name,e))&&n.serviceGroups[e].splice(n.serviceGroups[e].indexOf(r),1)})),this},clean:function(){this.serviceGroups.preauth.length=0,this.serviceGroups.signin.length=0,this.serviceGroups.postauth.length=0,this.status.preauth={ready:!1},this.status.signin={ready:!1},this.status.postauth={ready:!1}},findClusterId:function(e){for(var t,r=vr.parse(e),n=0,i=l()(this.serviceGroups);n<i.length;n++){var o,a=i[n],s=vn(this.serviceGroups[a]);try{for(s.s();!(o=s.n()).done;){var c=o.value;t=vr.parse(c.defaultUrl);var u,d=vn(c.hosts);try{for(d.s();!(u=d.n()).done;){var f=u.value;if(r.hostname===f.host&&f.id)return f.id}}catch(e){d.e(e)}finally{d.f()}if(t.hostname===r.hostname&&c.hosts.length>0){var p,h=vn(c.hosts);try{for(h.s();!(p=h.n()).done;){var v=p.value;if(v.homeCluster)return v.id}}catch(e){h.e(e)}finally{h.f()}return c.hosts[0].id}}}catch(e){s.e(e)}finally{s.f()}}},findServiceFromClusterId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.clusterId,r=e.priorityHost,n=void 0===r||r,i=e.serviceGroup,o=("string"==typeof i?this.serviceGroups[i]||[]:[].concat((0,_.Z)(this.serviceGroups.override),(0,_.Z)(this.serviceGroups.postauth),(0,_.Z)(this.serviceGroups.signin),(0,_.Z)(this.serviceGroups.preauth),(0,_.Z)(this.serviceGroups.discovery))).find((function(e){return e.hosts.find((function(e){return e.id===t}))}));if(o)return{name:o.name,url:o.get(n,t)}},findServiceUrlFromUrl:function(e){var t=vr.parse(e);return[].concat((0,_.Z)(this.serviceGroups.discovery),(0,_.Z)(this.serviceGroups.preauth),(0,_.Z)(this.serviceGroups.signin),(0,_.Z)(this.serviceGroups.postauth),(0,_.Z)(this.serviceGroups.override)).find((function(e){return t.hostname===vr.parse(e.defaultUrl).hostname||!!e.hosts.find((function(e){return e.host===t.hostname}))}))},findAllowedDomain:function(e){var t=vr.parse(e);if(t.host)return this.allowedDomains.find((function(e){return t.host.includes(e)}))},get:function(e,t,r){var n=this._getUrl(e,r);return n?n.get(t):void 0},getAllowedDomains:function(){return(0,_.Z)(this.allowedDomains)},list:function(e,t){var r={},n="string"==typeof t?this.serviceGroups[t]||[]:[].concat((0,_.Z)(this.serviceGroups.discovery),(0,_.Z)(this.serviceGroups.preauth),(0,_.Z)(this.serviceGroups.signin),(0,_.Z)(this.serviceGroups.postauth),(0,_.Z)(this.serviceGroups.override));return n&&n.forEach((function(t){r[t.name]=t.get(e)})),r},markFailedUrl:function(e,t){var r=this,n=this._getUrl(l()(this.list()).find((function(t){return r._getUrl(t).failHost(e)})));if(n)return t?n.get(!1):n.get(!0)},setAllowedDomains:function(e){this.allowedDomains=(0,_.Z)(e)},updateServiceUrls:function(e,t){var r=this,n=this.serviceGroups[e].filter((function(e){return t.every((function(t){return t.name!==e.name}))}));return this._unloadServiceUrls(e,n),t.forEach((function(t){var n=r._getUrl(t.name,e);n?(n.defaultUrl=t.defaultUrl,n.hosts=t.hosts||[]):r._loadServiceUrls(e,[new fn(hn({},t))])})),this.status[e].ready=!0,this.trigger(e),this},waitForCatalog:function(e,t){var r=this;return new(h())((function(n,i){r.status[e].ready&&n();var o=setTimeout((function(){return i(new Error("services: timeout occured while waiting for '".concat(e,"' catalog to populate")))}),t?1e3*t:6e4);r.once(e,(function(){clearTimeout(o),n()}))}))}});const yn=gn;var En=function(){function e(t){(0,B.Z)(this,e),e.validate(t),this.catalog=t.catalog,this.default=t.defaultUri,this.hostGroup=t.hostGroup,this.id=t.id,this.priority=t.priority,this.uri=t.uri,this.failed=!1,this.replaced=!1}return(0,F.Z)(e,[{key:"active",get:function(){return!this.failed&&!this.replaced}},{key:"local",get:function(){return this.default.includes(this.hostGroup)}},{key:"service",get:function(){return this.id.split(":")[3]}},{key:"url",get:function(){var e=vr.parse(this.default);return e.host="".concat(this.uri).concat(e.port?":".concat(e.port):""),vr.format(e)}},{key:"setStatus",value:function(e){var t=e.failed,r=e.replaced;return void 0!==t&&(this.failed=t),void 0!==r&&(this.replaced=r),this}}],[{key:"polyGenerate",value:function(t){var r=t.catalog,n=t.name,i=t.url;return new e({catalog:r,defaultUri:i,hostGroup:vr.parse(i).host,id:n?"poly-head:poly-group:poly-cluster:".concat(n):void 0,priority:1,uri:vr.parse(i).host})}},{key:"validate",value:function(e){var t=e.catalog,r=e.defaultUri,n=e.hostGroup,i=e.id,o=e.priority,a=e.uri,s=function(e){throw new Error("service-host: invalid constructor parameters, ".concat(e))};Jr.includes(t)||s("'catalog' must be a string"),"string"!=typeof r&&s("'defaultUri' must be a string"),"string"!=typeof n&&s("'hostGroup' must be a string"),"string"==typeof i&&4===i.split(":").length||s("'id' must be a string that contains 3 ':' characters"),"number"!=typeof o&&s("'priority' must be a number"),"string"!=typeof a&&s("'uri' must be a string")}}]),e}();function Sn(e,t){var r=l()(e);if(Se()){var n=Se()(e);t&&(n=n.filter((function(t){return ie()(e,t).enumerable}))),r.push.apply(r,n)}return r}function _n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(r),!0).forEach((function(t){(0,E.Z)(e,t,r[t])})):be()?Te()(e,be()(r)):Sn(Object(r)).forEach((function(t){Ie()(e,t,ie()(r,t))}))}return e}var bn=function(){function e(){(0,B.Z)(this,e),this.hosts=[]}return(0,F.Z)(e,[{key:"map",get:function(){return this.find({active:!0,local:!0,priority:!0}).reduce((function(e,t){var r={};return r[t.service]=t.url,_n(_n({},e),r)}),{})}},{key:"clear",value:function(e){var t=this.find(e);return this.hosts=this.hosts.filter((function(e){return!t.includes(e)})),t}},{key:"failed",value:function(e){var t=this.find(e);return t.forEach((function(e){e.setStatus({failed:!0})})),t}},{key:"filterActive",value:function(e){return"boolean"==typeof e?this.hosts.filter((function(t){return t.active===e})):(0,_.Z)(this.hosts)}},{key:"filterCatalog",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=(dn()(t)?t:[t]).map((function(t){return e.mapCatalogName({id:t,type:Qr})||t}));return r.length>0?this.hosts.filter((function(e){return r.includes(e.catalog)})):(0,_.Z)(this.hosts)}},{key:"filterCluster",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=dn()(e)?e:[e];return t.length>0?this.hosts.filter((function(e){return t.includes(e.id)})):(0,_.Z)(this.hosts)}},{key:"filterLocal",value:function(e){return"boolean"==typeof e?this.hosts.filter((function(t){return t.local===e})):(0,_.Z)(this.hosts)}},{key:"filterPriority",value:function(t){return t?this.hosts.reduce((function(t,r){if(!r.active)return t;var n=t.find((function(e){return e.hostGroup===r.hostGroup}));return n?((e.mapCatalogName({id:n.catalog,type:Xr})<e.mapCatalogName({id:r.catalog,type:Xr})||n.priority<r.priority)&&(t.splice(t.indexOf(n,1)),t.push(r)),t):(t.push(r),t)}),[]):(0,_.Z)(this.hosts)}},{key:"filterService",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=dn()(e)?e:[e];return t.length>0?this.hosts.filter((function(e){return t.includes(e.service)})):(0,_.Z)(this.hosts)}},{key:"filterUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=dn()(e)?e:[e];return t.length>0?this.hosts.filter((function(e){return t.includes(e.url)})):(0,_.Z)(this.hosts)}},{key:"find",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.active,n=t.catalog,i=t.cluster,o=t.local,a=t.priority,s=t.service,c=t.url;return this.hosts.filter((function(t){return e.filterActive(r).includes(t)&&e.filterCatalog(n).includes(t)&&e.filterCluster(i).includes(t)&&e.filterLocal(o).includes(t)&&e.filterPriority(a).includes(t)&&e.filterService(s).includes(t)&&e.filterUrl(c).includes(t)}))}},{key:"load",value:function(){var t,r=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter((function(t){return!!e.mapCatalogName({id:t.catalog,type:Qr})}));return(t=this.hosts).push.apply(t,(0,_.Z)(r.map((function(e){return new En(e)})))),this}},{key:"replaced",value:function(e){var t=this.find(e);return t.forEach((function(e){e.setStatus({replaced:!0})})),t}},{key:"reset",value:function(e){var t=this.find(e);return t.forEach((function(e){e.setStatus({failed:!1})})),t}}],[{key:"mapCatalogName",value:function(e){var t=e.id,r=e.type;if("number"==typeof t){if(r===Xr)return void 0!==Jr[t]?t:void 0;if(r===Qr)return Jr[t]}if("string"==typeof t){if(r===Qr)return Jr.includes(t)?t:void 0;if(r===Xr)return Jr.includes(t)?Jr.indexOf(t):void 0}}},{key:"mapRemoteCatalog",value:function(t){var r=t.catalog,n=t.hostCatalog,i=t.serviceLinks,o=e.mapCatalogName({id:r,type:Qr});if(!Jr.includes(o))throw new Error("service-catalogs: '".concat(r,"' is not a valid catalog"));return l()(n).reduce((function(e,t){return e.push.apply(e,(0,_.Z)(n[t].map((function(e){return{catalog:o,defaultUri:i[e.id.split(":")[3]],hostGroup:t,id:e.id,priority:e.priority,uri:e.host}})))),e}),[])}}]),e}(),Rn=function(){function e(){var t=this;(0,B.Z)(this,e),Jr.forEach((function(r){t[r]=e.generateCatalogState()}))}return(0,F.Z)(e,[{key:"setCollecting",value:function(e,t){this[e]&&(this[e].collecting=t)}},{key:"setReady",value:function(e,t){this[e]&&(this[e].ready=t)}}],[{key:"generateCatalogState",value:function(){return{collecting:!1,ready:!1}}}]),e}();const Tn={hydra:"https://api-usgov.webex.com/v1",u2c:"https://u2c.gov.ciscospark.com/u2c/api/v1"};function wn(e,t){var r=l()(e);if(Se()){var n=Se()(e);t&&(n=n.filter((function(t){return ie()(e,t).enumerable}))),r.push.apply(r,n)}return r}function In(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(r),!0).forEach((function(t){(0,E.Z)(e,t,r[t])})):be()?Te()(e,be()(r)):wn(Object(r)).forEach((function(t){Ie()(e,t,ie()(r,t))}))}return e}var xn=/(?:^\/)|(?:\/$)/,An={ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.WEBEX_CONVERSATION_CLUSTER_SERVICE||"identityLookup",Cn={ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.WEBEX_CONVERSATION_DEFAULT_CLUSTER||"".concat("urn:TEAM:us-east-2_a",":").concat(An),On=ye.extend({namespace:"Services",registries:new(re()),states:new(re()),props:{validateDomains:["boolean",!1,!0]},_catalogs:new(re()),_serviceUrls:null,getRegistry:function(){return this.registries.get(this.webex)},getState:function(){return this.states.get(this.webex)},_getCatalog:function(){return this._catalogs.get(this.webex)},get:function(e,t,r){return this._getCatalog().get(e,t,r)},hasService:function(e){return!!this.get(e)},hasAllowedDomains:function(){return this._getCatalog().getAllowedDomains().length>0},list:function(e,t){return this._getCatalog().list(e,t)},markFailedUrl:function(e,t){return this._getCatalog().markFailedUrl(e,t)},_updateServiceUrls:function(e){this._serviceUrls=In(In({},this._serviceUrls),e)},updateServices:function(){var e,t,r=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.from,o=n.query,a=n.token,s=n.forceRefresh,c=this._getCatalog();switch(i){case"limited":t="preauth";break;case"signin":t="signin";break;default:t="postauth"}if(c.status[t].collecting)return this.waitForCatalog(t);if(c.status[t].collecting=!0,"preauth"===t){var u=o&&l()(o)[0];if(!["email","emailhash","userId","orgId","mode"].includes(u))return h().reject(new Error("a query param of email, emailhash, userId, orgId, or mode is required"))}if("preauth"===t||"signin"===t){var d=l()(o)[0];e={},"email"===d&&o.email?e.emailhash=tn()(o.email.toLowerCase()).toString():e[d]=o[d]}return this._fetchNewServiceHostmap({from:i,token:a,query:e,forceRefresh:s}).then((function(e){c.updateServiceUrls(t,e),r.updateCredentialsConfig(),c.status[t].collecting=!1})).catch((function(e){return c.status[t].collecting=!1,h().reject(e)}))},validateUser:function(e){var t=this,r=e.email,n=e.reqId,i=void 0===n?"WEBCLIENT":n,o=e.forceRefresh,a=void 0!==o&&o,s=e.activationOptions,c=void 0===s?{}:s,u=e.preloginUserId;if(this.logger.info("services: validating a user"),!r)return h().reject(new Error("`email` is required"));if(this.webex.credentials.canAuthorize)return this.updateServices({forceRefresh:a}).then((function(){return t.webex.credentials.getUserToken()})).then((function(e){return t.sendUserActivation({email:r,reqId:i,token:e.toString(),activationOptions:c,preloginUserId:u})})).then((function(e){return{activated:!0,exists:!0,details:"user is authorized via a user token",user:e}}));var l,d=this.webex.credentials.config,f=d.client_id,p=d.client_secret;return f&&p?this.collectPreauthCatalog({email:r}).then((function(){var e=t.get("idbroker",!0);return t.webex.credentials.getClientToken({uri:"".concat(e,"idb/oauth2/v1/access_token"),scope:"webexsquare:admin webexsquare:get_conversation Identity:SCIM"})})).then((function(e){return l=e.toString(),t.collectSigninCatalog({email:r,token:l,forceRefresh:a})})).catch((function(e){return{exists:"NotFound"!==e.name,activated:!1,details:"NotFound"!==e.name?"user exists but is not activated":"user does not exist and is not activated"}})).then((function(e){return h().all([e||{activated:!0,exists:!0,details:"user exists and is activated"},t.sendUserActivation({email:r,reqId:i,token:l,activationOptions:c,preloginUserId:u})])})).then((function(e){var t=(0,Nr.Z)(e,2),r=t[0],n=t[1];return In(In({},r),{},{user:n})})).catch((function(e){var t={statusCode:e.statusCode,responseText:e.body&&e.body.message,body:e.body};return h().reject(t)})):h().reject(new Error("client authentication details are not available"))},getMeetingPreferences:function(){var e=this;return this.request({method:"GET",service:"hydra",resource:"meetingPreferences"}).then((function(t){return e.logger.info("services: received user region info"),t.body})).catch((function(t){e.logger.info("services: was not able to fetch user login information",t)}))},fetchClientRegionInfo:function(){var e=this;return this.request({uri:"https://ds.ciscospark.com/v1/region",addAuthHeader:!1,headers:{"spark-user-agent":null},timeout:5e3}).then((function(t){return e.logger.info("services: received user region info"),t.body})).catch((function(t){e.logger.info("services: was not able to get user region info",t)}))},sendUserActivation:function(e){var t,r,n=this,i=e.email,o=e.reqId,a=e.token,s=e.activationOptions,c=e.preloginUserId;return this.logger.info("services: sending user activation request"),this.fetchClientRegionInfo().then((function(e){return e&&(t=e.countryCode,r=e.timezone),n.request({service:"license",resource:"users/activations",method:"POST",headers:{accept:"application/json",authorization:a,"x-prelogin-userid":c},body:In({email:i,reqId:o,countryCode:t,timeZone:r},s),shouldRefreshAccessToken:!1})})).then((function(e){return e.body})).catch((function(e){return h().reject(e)}))},collectPreauthCatalog:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?this.updateServices({from:"limited",query:e,forceRefresh:t}):this.updateServices({from:"limited",query:{mode:"DEFAULT_BY_PROXIMITY"},forceRefresh:t})},collectSigninCatalog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.email,r=e.token,n=e.forceRefresh;return t?r?this.updateServices({from:"signin",query:{email:t},token:r,forceRefresh:n}):h().reject(new Error("`token` is required")):h().reject(new Error("`email` is required"))},updateCredentialsConfig:function(){var e=this.list(!0),t=e.idbroker,r=e.identity;if(t&&r){var n=this.webex.config.credentials,i=n.authorizationString,o=n.authorizeUrl;this.webex.config.credentials.authorizeUrl=i?o:"".concat(t.replace(xn,""),"/idb/oauth2/v1/authorize"),this.webex.setConfig({credentials:{idbroker:{url:t.replace(xn,"")},identity:{url:r.replace(xn,"")}}})}},waitForCatalog:function(e,t){var r=this._getCatalog(),n=this.webex.credentials.supertoken;return"postauth"===e&&n&&n.access_token&&!r.status.postauth.collecting&&!r.status.postauth.ready?r.status.preauth.ready?this.updateServices():this.initServiceCatalogs():r.waitForCatalog(e,t)},waitForService:function(e){var t=this,r=e.name,n=e.timeout,i=void 0===n?5:n,o=e.url,a=this.webex.config.services,s=this._getCatalog();if(a.servicesNotNeedValidation.find((function(e){return e===r})))return h().resolve(this._serviceUrls[r]);var c=this.get(r,!0),u=this.getServiceFromUrl(o);return c||u?h().resolve(c||u.priorityUrl):s.isReady?o?h().resolve(o):(this.webex.internal.metrics.submitClientMetrics(rn,{fields:{service_name:r}}),h().reject(new Error("services: service '".concat(r,"' was not found in any of the catalogs")))):new(h())((function(e,n){h().all(["preauth","signin","postauth"].map((function(n){return a=n,s.waitForCatalog(a,i).then((function(){var n=t.get(r,!0),i=t.getServiceFromUrl(o);(n||i)&&e(n||i.priorityUrl)})).catch((function(){}));var a}))).then((function(){t.webex.internal.metrics.submitClientMetrics(rn,{fields:{service_name:r}}),n(new Error("services: service '".concat(r,"' was not found after waiting")))}))}))},_formatReceivedHostmap:function(e){var t=l()(e.hostCatalog).reduce((function(t,r){var n;if(0===e.hostCatalog[r].length)return t;var i=e.hostCatalog[r][0].id.split(":")[3],o=e.serviceLinks[i],a=t.find((function(e){return e.name===i}));return a||(a={name:i,defaultUrl:o,defaultHost:vr.parse(o).hostname,hosts:[]},t.push(a)),(n=a.hosts).push.apply(n,[{host:r,ttl:-1,priority:10,id:e.hostCatalog[r][0].id,homeCluster:a.defaultHost===r}].concat((0,_.Z)(e.hostCatalog[r].map((function(e){return In(In({},e),{},{homeCluster:a.defaultHost===r})}))))),t}),[]);return l()(e.serviceLinks).forEach((function(r){t.find((function(e){return e.name===r}))||t.push({name:r,defaultUrl:e.serviceLinks[r],defaultHost:vr.parse(e.serviceLinks[r]).hostname,hosts:[]})})),this._updateServiceUrls(e.serviceLinks),t},getClusterId:function(e){return this._getCatalog().findClusterId(e)},getServiceFromClusterId:function(e){return this._getCatalog().findServiceFromClusterId(e)},getServiceUrlFromClusterId:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).cluster,t=void 0===e?"us":e,r="us"===t?Cn:t;r.split(":").length<4&&(r="".concat(t,":").concat(An));var n=(this.getServiceFromClusterId({clusterId:r})||{}).url;if(!n)throw Error("Could not find service for cluster [".concat(t,"]"));return n},getServiceFromUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this._getCatalog().findServiceUrlFromUrl(e);if(t)return{name:t.name,priorityUrl:t.get(!0),defaultUrl:t.get()}},isServiceUrl:function(e){return!!this._getCatalog().findServiceUrlFromUrl(e)},isAllowedDomainUrl:function(e){return!!this._getCatalog().findAllowedDomain(e)},convertUrlToPriorityHostUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.getServiceFromUrl(e);if(!t)throw Error("No service associated with url: [".concat(e,"]"));return e.replace(t.defaultUrl,t.priorityUrl)},_fetchNewServiceHostmap:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.from,n=t.query,i=t.token,o=t.forceRefresh,a=r?"/".concat(r,"/catalog"):"/catalog",s=In(In({},n),{},{format:"hostmap"});o&&(s.timestamp=(new Date).getTime());var c={method:"GET",service:"u2c",resource:a,qs:s};return i&&(c.headers={authorization:i}),this.request(c).then((function(t){var r=t.body;return e._formatReceivedHostmap(r)}))},initConfig:function(){var e=this._getCatalog(),t=this.webex.config,r=t.services,n=t.fedramp;if(r){if(n&&(r.discovery=Tn),r.discovery){var i=l()(r.discovery).map((function(e){return{name:e,defaultUrl:r.discovery[e]}}));e.updateServiceUrls("discovery",i)}if(r.override){var o=l()(r.override).map((function(e){return{name:e,defaultUrl:r.override[e]}}));e.updateServiceUrls("override",o)}r.allowedDomains&&e.setAllowedDomains(r.allowedDomains),this.validateDomains=r.validateDomains}},initServiceCatalogs:function(){var e=this;this.logger.info("services: initializing initial service catalogs");var t=this.webex.credentials;return h().resolve().then((function(){return t.getOrgId()})).then((function(t){return e.collectPreauthCatalog({orgId:t})})).then((function(){return t.canAuthorize?e.updateServices().catch((function(){return e.logger.warn("services: cannot retrieve postauth catalog")})):h().resolve()}))},initialize:function(){var e=this,t=new yn,r=new bn,n=new Rn;this._catalogs.set(this.webex,t),this.registries.set(this.webex,r),this.states.set(this.webex,n),this.listenToOnce(this.webex,"change:config",(function(){e.initConfig()})),this.listenToOnce(this.webex,"ready",(function(){var r=e.webex.credentials.supertoken;if(r&&r.access_token)e.initServiceCatalogs().then((function(){t.isReady=!0})).catch((function(t){return e.logger.error("services: failed to init initial services, ".concat(t.message))}));else{var n=e.webex.config.email;e.collectPreauthCatalog(n?{email:n}:void 0)}}))},version:"2.54.0"});const kn=On;function Nn(e){var t=function(){if("undefined"==typeof Reflect||!j())return!1;if(j().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(j()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,G.Z)(e);if(t){var i=(0,G.Z)(this).constructor;r=j()(n,arguments,i)}else r=n.apply(this,arguments);return(0,V.Z)(this,r)}}var Ln=function(e){(0,Z.Z)(r,e);var t=Nn(r);function r(){return(0,B.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r,[{key:"onResponseError",value:function(e,t){if((t instanceof xt.InternalServerError||t instanceof xt.BadGateway||t instanceof xt.ServiceUnavailable)&&e.uri){var r=this.webex.internal.device.features.developer.get("web-high-availability");if(r&&r.value)return this.webex.internal.metrics.submitClientMetrics("web-ha",{fields:{success:!1},tags:{action:"failed",error:t.message,url:e.uri}}),h().resolve(this.webex.internal.services.markFailedUrl(e.uri)).then((function(){return h().reject(t)}))}return h().reject(t)}}],[{key:"create",value:function(){return new r({webex:this})}}]),r}(Je.nK);function Pn(e){var t=function(){if("undefined"==typeof Reflect||!j())return!1;if(j().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(j()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,G.Z)(e);if(t){var i=(0,G.Z)(this).constructor;r=j()(n,arguments,i)}else r=n.apply(this,arguments);return(0,V.Z)(this,r)}}var Mn=/(?:^\/)|(?:\/$)/,Dn=function(e){(0,Z.Z)(r,e);var t=Pn(r);function r(){return(0,B.Z)(this,r),t.apply(this,arguments)}return(0,F.Z)(r,[{key:"onRequest",value:function(e){var t=this;if(e.uri)return e;this.normalizeOptions(e),this.validateOptions(e);var r=this.webex.internal.services,n=e.service,i=e.resource;return r.waitForService({name:n}).then((function(r){return e.uri=t.generateUri(r,i),e})).catch((function(){return h().reject(new Error("service-interceptor: '".concat(n,"' is not a known service")))}))}},{key:"generateUri",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.replace(Mn,""),n=t.replace(Mn,"");return"".concat(r,"/").concat(n)}},{key:"normalizeOptions",value:function(e){e.api&&(e.service=e.service||e.api,delete e.api)}},{key:"validateOptions",value:function(e){if(!e.resource)throw new Error("a `resource` parameter is required");if(!e.service)throw new Error("a valid 'service' parameter is required")}}],[{key:"create",value:function(){return new r({webex:this})}}]),r}(Je.nK);cr("services",kn,{interceptors:{ServiceInterceptor:Dn.create,ServerErrorInterceptor:Ln.create}});var Un,jn,Fn=r(44894),Bn=new(re()),Zn=(Un=function(){function e(){var t,r,n,i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,B.Z)(this,e),t=this,r="ready",i=this,(n=jn)&&we(t,r,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0});var s=o.webex||a.parent;if(!s)throw new Error("One of `attrs.webex` or `options.parent` must be supplied when initializing a StatelessWebexPlugin");for(;s.parent||s.collection;)s=s.parent||s.collection;Bn.set(this,s)}return(0,F.Z)(e,[{key:"config",get:function(){var e=this.getNamespace?this.getNamespace():this.namespace;return e?(e=e.toLowerCase(),this.webex.config[e]):this.webex.config}},{key:"logger",get:function(){return this.webex.logger}},{key:"webex",get:function(){return Bn.get(this)}},{key:"request",value:function(){var e;return(e=this.webex).request.apply(e,arguments)}},{key:"upload",value:function(){var e;return(e=this.webex).upload.apply(e,arguments)}}]),e}(),jn=(0,ee.Z)(Un.prototype,"ready",[Fn.OT],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Un);ae()(Zn.prototype,ce());const Vn=ye.extend({session:{deferreds:{type:"object",default:function(){return new(L())}},queue:{type:"array",default:function(){return[]}}},derived:{bounce:{fn:function(){var e=this;return(0,D.cappedDebounce)((function(){return e.executeQueue.apply(e,arguments)}),this.config.batcherWait,{maxCalls:this.config.batcherMaxCalls,maxWait:this.config.batcherMaxWait})}}},request:function(e){var t=this,r=new D.Defer;return this.fingerprintRequest(e).then((function(n){t.deferreds.has(n)?r.resolve(t.deferreds.get(n).promise):(t.deferreds.set(n,r),t.prepareItem(e).then((function(e){r.promise=r.promise.then((0,D.tap)((function(){return t.deferreds.delete(n)}))).catch((function(e){return t.deferreds.delete(n),h().reject(e)})),t.enqueue(e).then((function(){return t.bounce()})).catch((function(e){return r.reject(e)}))})).catch((function(e){return r.reject(e)})))})).catch((function(e){return r.reject(e)})),r.promise},enqueue:function(e){return this.queue.push(e),h().resolve()},prepareItem:function(e){return h().resolve(e)},executeQueue:function(){var e=this,t=this.queue.splice(0,this.config.batcherMaxCalls);return new(h())((function(r){r(e.prepareRequest(t).then((function(t){return e.submitHttpRequest(t).then((function(t){return e.handleHttpSuccess(t)}))})).catch((function(r){return r instanceof xt?e.handleHttpError(r):h().all(t.map((function(t){return e.getDeferredForRequest(t).then((function(e){e.reject(r)}))})))})))})).catch((function(t){return e.logger.error(t),h().reject(t)}))},prepareRequest:function(e){return h().resolve(e)},submitHttpRequest:function(e){throw new Error("request() must be implemented")},handleHttpSuccess:function(e){var t=this;return h().all((e.body&&e.body.items||e.body).map((function(e){return t.acceptItem(e)})))},handleHttpError:function(e){var t=this;return e instanceof xt&&gt()(e,"options.body.map")?h().all(e.options.body.map((function(r){return t.getDeferredForRequest(r).then((function(t){t.reject(e)}))}))):(this.logger.error("http error handler called without a WebexHttpError object",e),h().reject(e))},acceptItem:function(e){var t=this;return this.didItemFail(e).then((function(r){return r?t.handleItemFailure(e):t.handleItemSuccess(e)}))},didItemFail:function(e){return h().resolve(!1)},handleItemFailure:function(e){return this.getDeferredForResponse(e).then((function(t){t.reject(e)}))},handleItemSuccess:function(e){return this.getDeferredForResponse(e).then((function(t){t.resolve(e)}))},getDeferredForRequest:function(e){var t=this;return this.fingerprintRequest(e).then((function(e){var r=t.deferreds.get(e);if(!r)throw new Error("Could not find pending request for received response");return r}))},getDeferredForResponse:function(e){var t=this;return this.fingerprintResponse(e).then((function(e){var r=t.deferreds.get(e);if(!r)throw new Error("Could not find pending request for received response");return r}))},fingerprintRequest:function(e){throw new Error("fingerprintRequest() must be implemented")},fingerprintResponse:function(e){throw new Error("fingerprintResponse() must be implemented")},version:"2.54.0"});var Gn=new(re()),qn=new(re()),Hn=new(re()),Wn=function(e){function t(e,r){return(0,B.Z)(this,t),Gn.set(this,e.body.items),qn.set(this,t.parseLinkHeaders(e.headers.link)),Hn.set(this,r),this}return(0,F.Z)(t,[{key:"items",get:function(){return Gn.get(this)}},{key:"length",get:function(){return this.items.length}},{key:"links",get:function(){return qn.get(this)}},{key:"webex",get:function(){return Hn.get(this)}},{key:"next",value:function(){return this.getLink("next")}},{key:"hasNext",value:function(){return this.hasLink("next")}},{key:"previous",value:function(){return this.getLink("previous")}},{key:"hasPrevious",value:function(){return this.hasLink("previous")}},{key:"getLink",value:function(e){var r=this;return this.webex.request({uri:this.links[e]}).then((function(e){return new t(e,r.webex)}))}},{key:"hasLink",value:function(e){return Boolean(this.links[e])}},{key:e,value:function(){var e=this,t=-1;return{next:function(){return(t+=1)<e.length?{value:e.items[t]}:{done:!0}}}}}],[{key:"parseLinkHeaders",value:function(e){return e?(e=dn()(e)?e:[e]).reduce((function(e,t){var r=(t=t.split(";"))[0].replace("<","").replace(">","");return e[t[1].split("=")[1].replace(/"/g,"")]=r,e}),{}):{}}}]),t}(un())},90579:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var n=r(21105),i=r(8167),o=r(31314),a=r(83977),s=r.n(a),c=r(8450),u=r.n(c),l=r(73473),d=r.n(l),f=r(67857),p=r.n(f),h=new(s()),v=new(s());const m={boundedAdapter:new(function(){function e(t){(0,i.Z)(this,e),this.Bound=function(){function e(t,r){(0,i.Z)(this,e),h.set(this,t),v.set(this,r.logger)}return(0,o.Z)(e,[{key:"_getRawData",value:function(){var e=localStorage.getItem(t);return e?JSON.parse(e):{}}},{key:"_load",value:function(){return this._getRawData()[h.get(this)]||{}}},{key:"_save",value:function(e){var r=this._getRawData();r[h.get(this)]=e,localStorage.setItem(t,u()(r))}},{key:"clear",value:function(){return v.get(this).info("local-storage-store-adapter: clearing localStorage"),d().resolve(localStorage.removeItem(t))}},{key:"del",value:function(e){var t=this;return new(d())((function(r){v.get(t).info("local-storage-store-adapter: deleting `".concat(e,"`"));var n=t._load();p()(n,e),t._save(n),r()}))}},{key:"get",value:function(e){var t=this;return new(d())((function(r,i){v.get(t).debug("local-storage-store-adapter: reading `".concat(e,"`"));var o=t._load()[e];return void 0!==o?r(o):i(new n.dR("No value found for ".concat(e)))}))}},{key:"put",value:function(e,t){var r=this;return new(d())((function(n){v.get(r).debug("local-storage-store-adapter: writing `".concat(e,"`"));var i=r._load();i[e]=t,r._save(i),n()}))}}]),e}()}return(0,o.Z)(e,[{key:"bind",value:function(e,t){return t=t||{},e?t.logger?(t.logger.debug("local-storage-store-adapter: returning binding"),d().resolve(new this.Bound(e,t))):d().reject(new Error("`options.logger` is required")):d().reject(new Error("`namespace` is required"))}}]),e}())("webex"),unboundedAdapter:n.t8},g={hydra:"https://api.ciscospark.com/v1",hydraServiceUrl:"https://api.ciscospark.com/v1",credentials:{clientType:"confidential"},device:{validateDomains:!0,ephemeral:!0},storage:{boundedAdapter:m,unboundedAdapter:m}}},82239:(e,t,r)=>{r.g._babelPolyfill||r(26981),r(51689),r(83061),r(18408),r(84562),r(25026),r(3374),r(40600),r(74365),r(16023);var n=r(82492),i=r(21105).ZP,o=r(90579),a=i.extend({webex:!0,version:"2.54.0"});a.init=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.config=n({meetings:{disableHydraId:!0}},o,e.config),new a(e)},e.exports=a},25144:(e,t,r)=>{var n=r(61070),i=r(33217),o=r(98433),a=r(4220);e.exports.Backoff=n,e.exports.FunctionCall=a,e.exports.FibonacciStrategy=o,e.exports.ExponentialStrategy=i,e.exports.fibonacci=function(e){return new n(new o(e))},e.exports.exponential=function(e){return new n(new i(e))},e.exports.call=function(e,t,r){var n=Array.prototype.slice.call(arguments);return e=n[0],t=n.slice(1,n.length-1),r=n[n.length-1],new a(e,t,r)}},61070:(e,t,r)=>{var n=r(17187),i=r(3814);function o(e){n.EventEmitter.call(this),this.backoffStrategy_=e,this.maxNumberOfRetry_=-1,this.backoffNumber_=0,this.backoffDelay_=0,this.timeoutID_=-1,this.handlers={backoff:this.onBackoff_.bind(this)}}r(89539).inherits(o,n.EventEmitter),o.prototype.failAfter=function(e){i.checkArgument(e>0,"Expected a maximum number of retry greater than 0 but got %s.",e),this.maxNumberOfRetry_=e},o.prototype.backoff=function(e){i.checkState(-1===this.timeoutID_,"Backoff in progress."),this.backoffNumber_===this.maxNumberOfRetry_?(this.emit("fail",e),this.reset()):(this.backoffDelay_=this.backoffStrategy_.next(),this.timeoutID_=setTimeout(this.handlers.backoff,this.backoffDelay_),this.emit("backoff",this.backoffNumber_,this.backoffDelay_,e))},o.prototype.onBackoff_=function(){this.timeoutID_=-1,this.emit("ready",this.backoffNumber_,this.backoffDelay_),this.backoffNumber_++},o.prototype.reset=function(){this.backoffNumber_=0,this.backoffStrategy_.reset(),clearTimeout(this.timeoutID_),this.timeoutID_=-1},e.exports=o},4220:(e,t,r)=>{var n=r(17187),i=r(3814),o=r(89539),a=r(61070),s=r(98433);function c(e,t,r){n.EventEmitter.call(this),i.checkIsFunction(e,"Expected fn to be a function."),i.checkIsArray(t,"Expected args to be an array."),i.checkIsFunction(r,"Expected callback to be a function."),this.function_=e,this.arguments_=t,this.callback_=r,this.lastResult_=[],this.numRetries_=0,this.backoff_=null,this.strategy_=null,this.failAfter_=-1,this.retryPredicate_=c.DEFAULT_RETRY_PREDICATE_,this.state_=c.State_.PENDING}o.inherits(c,n.EventEmitter),c.State_={PENDING:0,RUNNING:1,COMPLETED:2,ABORTED:3},c.DEFAULT_RETRY_PREDICATE_=function(e){return!0},c.prototype.isPending=function(){return this.state_==c.State_.PENDING},c.prototype.isRunning=function(){return this.state_==c.State_.RUNNING},c.prototype.isCompleted=function(){return this.state_==c.State_.COMPLETED},c.prototype.isAborted=function(){return this.state_==c.State_.ABORTED},c.prototype.setStrategy=function(e){return i.checkState(this.isPending(),"FunctionCall in progress."),this.strategy_=e,this},c.prototype.retryIf=function(e){return i.checkState(this.isPending(),"FunctionCall in progress."),this.retryPredicate_=e,this},c.prototype.getLastResult=function(){return this.lastResult_.concat()},c.prototype.getNumRetries=function(){return this.numRetries_},c.prototype.failAfter=function(e){return i.checkState(this.isPending(),"FunctionCall in progress."),this.failAfter_=e,this},c.prototype.abort=function(){this.isCompleted()||this.isAborted()||(this.isRunning()&&this.backoff_.reset(),this.state_=c.State_.ABORTED,this.lastResult_=[new Error("Backoff aborted.")],this.emit("abort"),this.doCallback_())},c.prototype.start=function(e){i.checkState(!this.isAborted(),"FunctionCall is aborted."),i.checkState(this.isPending(),"FunctionCall already started.");var t=this.strategy_||new s;this.backoff_=e?e(t):new a(t),this.backoff_.on("ready",this.doCall_.bind(this,!0)),this.backoff_.on("fail",this.doCallback_.bind(this)),this.backoff_.on("backoff",this.handleBackoff_.bind(this)),this.failAfter_>0&&this.backoff_.failAfter(this.failAfter_),this.state_=c.State_.RUNNING,this.doCall_(!1)},c.prototype.doCall_=function(e){e&&this.numRetries_++;var t=["call"].concat(this.arguments_);n.EventEmitter.prototype.emit.apply(this,t);var r=this.handleFunctionCallback_.bind(this);this.function_.apply(null,this.arguments_.concat(r))},c.prototype.doCallback_=function(){this.callback_.apply(null,this.lastResult_)},c.prototype.handleFunctionCallback_=function(){if(!this.isAborted()){var e=Array.prototype.slice.call(arguments);this.lastResult_=e,n.EventEmitter.prototype.emit.apply(this,["callback"].concat(e));var t=e[0];t&&this.retryPredicate_(t)?this.backoff_.backoff(t):(this.state_=c.State_.COMPLETED,this.doCallback_())}},c.prototype.handleBackoff_=function(e,t,r){this.emit("backoff",e,t,r)},e.exports=c},33217:(e,t,r)=>{var n=r(89539),i=r(3814),o=r(99618);function a(e){o.call(this,e),this.backoffDelay_=0,this.nextBackoffDelay_=this.getInitialDelay(),this.factor_=a.DEFAULT_FACTOR,e&&void 0!==e.factor&&(i.checkArgument(e.factor>1,"Exponential factor should be greater than 1 but got %s.",e.factor),this.factor_=e.factor)}n.inherits(a,o),a.DEFAULT_FACTOR=2,a.prototype.next_=function(){return this.backoffDelay_=Math.min(this.nextBackoffDelay_,this.getMaxDelay()),this.nextBackoffDelay_=this.backoffDelay_*this.factor_,this.backoffDelay_},a.prototype.reset_=function(){this.backoffDelay_=0,this.nextBackoffDelay_=this.getInitialDelay()},e.exports=a},98433:(e,t,r)=>{var n=r(89539),i=r(99618);function o(e){i.call(this,e),this.backoffDelay_=0,this.nextBackoffDelay_=this.getInitialDelay()}n.inherits(o,i),o.prototype.next_=function(){var e=Math.min(this.nextBackoffDelay_,this.getMaxDelay());return this.nextBackoffDelay_+=this.backoffDelay_,this.backoffDelay_=e,e},o.prototype.reset_=function(){this.nextBackoffDelay_=this.getInitialDelay(),this.backoffDelay_=0},e.exports=o},99618:(e,t,r)=>{r(17187),r(89539);function n(e){return null!=e}function i(e){if(n((e=e||{}).initialDelay)&&e.initialDelay<1)throw new Error("The initial timeout must be greater than 0.");if(n(e.maxDelay)&&e.maxDelay<1)throw new Error("The maximal timeout must be greater than 0.");if(this.initialDelay_=e.initialDelay||100,this.maxDelay_=e.maxDelay||1e4,this.maxDelay_<=this.initialDelay_)throw new Error("The maximal backoff delay must be greater than the initial backoff delay.");if(n(e.randomisationFactor)&&(e.randomisationFactor<0||e.randomisationFactor>1))throw new Error("The randomisation factor must be between 0 and 1.");this.randomisationFactor_=e.randomisationFactor||0}i.prototype.getMaxDelay=function(){return this.maxDelay_},i.prototype.getInitialDelay=function(){return this.initialDelay_},i.prototype.next=function(){var e=this.next_(),t=1+Math.random()*this.randomisationFactor_;return Math.round(e*t)},i.prototype.next_=function(){throw new Error("BackoffStrategy.next_() unimplemented.")},i.prototype.reset=function(){this.reset_()},i.prototype.reset_=function(){throw new Error("BackoffStrategy.reset_() unimplemented.")},e.exports=i},79742:(e,t)=>{"use strict";t.byteLength=function(e){var t=c(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=c(e),a=o[0],s=o[1],u=new i(function(e,t,r){return 3*(t+r)/4-r}(0,a,s)),l=0,d=s>0?a-4:a;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[l++]=255&t);1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,c=n-i;s<c;s+=a)o.push(u(e,s,s+a>c?c:s+a));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function u(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},51206:function(e){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=r(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(r),a=Math.max(i,o),s=0,c=e.map([t,r],(function(t){var r=a-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(n&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(c[0][a]>c[1][a])return 1;if(c[0][a]===c[1][a]){if(a===s)return 0;a-=1}else if(c[0][a]<c[1][a])return-1}},e.map=function(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)n.push(t(e[r]));return n},e.find=function(e,t){var r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){var i=e[r];if(t(i,r))return i}},e.assign=function(e){for(var t,r,n=e,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(o));var s=function(){var e=o[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){n[t]=e[t]}))};for(t=0,r=o.length;t<r;t+=1)s();return e},e.getBrowserAlias=function(e){return n.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return n.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,r){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(91))&&n.__esModule?n:{default:n},o=r(18);function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=function(){function e(){}var t,r,n;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new i.default(e,t)},e.parse=function(e){return new i.default(e).getResult()},t=e,n=[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}],(r=null)&&a(t.prototype,r),n&&a(t,n),e}();t.default=s,e.exports=t.default},91:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=c(r(92)),i=c(r(93)),o=c(r(94)),a=c(r(95)),s=c(r(17));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=s.default.find(n.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=s.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=s.default.find(a.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return s.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},n=0,i={},o=0;if(Object.keys(e).forEach((function(t){var a=e[t];"string"==typeof a?(i[t]=a,o+=1):"object"==typeof a&&(r[t]=a,n+=1)})),n>0){var a=Object.keys(r),c=s.default.find(a,(function(e){return t.isOS(e)}));if(c){var u=this.satisfies(r[c]);if(void 0!==u)return u}var l=s.default.find(a,(function(e){return t.isPlatform(e)}));if(l){var d=this.satisfies(r[l]);if(void 0!==d)return d}}if(o>0){var f=Object.keys(i),p=s.default.find(f,(function(e){return t.isBrowser(e,!0)}));if(void 0!==p)return this.compareVersion(i[p])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(n);return t&&i&&(n=i.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(s.default.compareVersions(i,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=u,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},r=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=i.default.getMacOSVersionName(t),n={name:o.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=i.default.getAndroidVersionName(t),n={name:o.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:o.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},r=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},r=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},r=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},r=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=a,e.exports=t.default}})},50706:e=>{!function(){"use strict";e.exports=function(e){return(e instanceof Buffer?e:Buffer.from(e.toString(),"binary")).toString("base64")}}()},88500:(e,t,r)=>{"use strict";var n=r(48764).Buffer,i=r(48764).SlowBuffer;function o(e,t){if(!n.isBuffer(e)||!n.isBuffer(t))return!1;if(e.length!==t.length)return!1;for(var r=0,i=0;i<e.length;i++)r|=e[i]^t[i];return 0===r}e.exports=o,o.install=function(){n.prototype.equal=i.prototype.equal=function(e){return o(this,e)}};var a=n.prototype.equal,s=i.prototype.equal;o.restore=function(){n.prototype.equal=a,i.prototype.equal=s}},48764:(e,t,r)=>{"use strict";var n=r(79742),i=r(80645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50;var a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|v(e,t),n=s(r),i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Z(e,Uint8Array)){var t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer))return p(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return p(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);var i=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||V(e.length)?s(0):f(e);if("Buffer"===e.type&&Array.isArray(e.data))return f(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return l(e),s(e<0?0:0|h(e))}function f(e){for(var t=e.length<0?0:0|h(e.length),r=s(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function p(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,c.prototype),n}function h(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function v(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(e).length;default:if(i)return n?-1:j(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,r);case"utf8":case"utf-8":return I(this,t,r);case"ascii":return A(this,t,r);case"latin1":case"binary":return C(this,t,r);case"base64":return w(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),V(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:E(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):E(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function E(e,t,r,n,i){var o,a=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(r+c>s&&(r=s-c),o=r;o>=0;o--){for(var d=!0,f=0;f<c;f++)if(u(e,o+f)!==u(t,f)){d=!1;break}if(d)return o}return-1}function S(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(V(s))return a;e[r+a]=s}return a}function _(e,t,r,n){return B(j(t,e.length-r),e,r,n)}function b(e,t,r,n){return B(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function R(e,t,r,n){return B(F(t),e,r,n)}function T(e,t,r,n){return B(function(e,t){for(var r,n,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function w(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function I(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,c,u=e[i],l=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){case 1:u<128&&(l=u);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,d=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=d}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=x));return r}(n)}t.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return function(e,t,r){return l(e),e<=0?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)}(e,t,r)},c.allocUnsafe=function(e){return d(e)},c.allocUnsafeSlow=function(e){return d(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(Z(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),Z(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=c.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(Z(o,Uint8Array))i+o.length>n.length?c.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else{if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i)}i+=o.length}return n},c.byteLength=v,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},c.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?I(this,0,e):m.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,i){if(Z(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(n,i),l=e.slice(t,r),d=0;d<s;++d)if(u[d]!==l[d]){o=u[d],a=l[d];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return S(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":case"latin1":case"binary":return b(this,e,t,r);case"base64":return R(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function A(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function C(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function O(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=G[e[o]];return i}function k(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function N(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,r,n,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function P(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(e,t,r,n,o){return t=+t,r>>>=0,o||P(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function D(e,t,r,n,o){return t=+t,r>>>=0,o||P(e,0,r,8),i.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,c.prototype),n},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||N(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||N(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||N(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||N(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||N(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||N(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||N(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||L(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||L(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);L(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);L(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return M(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return M(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return D(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return D(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},c.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,n),s=a.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var U=/[^+/0-9A-Za-z-_]/g;function j(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function F(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function B(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Z(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function V(e){return e!=e}var G=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},21924:(e,t,r)=>{"use strict";var n=r(40210),i=r(20663),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},20663:(e,t,r)=>{"use strict";var n=r(58612),i=r(40210),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(a,o),c=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(n,a,arguments);c&&u&&(c(t,"length").configurable&&u(t,"length",{value:1+l(0,e.length-(arguments.length-1))}));return t};var d=function(){return s(n,o,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},44894:(e,t,r)=>{"use strict";r.d(t,{OT:()=>x});var n=Object.defineProperty;function i(e,t,r){var i=r.configurable,o=r.enumerable,a=r.initializer,s=r.value;return{configurable:i,enumerable:o,get:function(){if(this!==e){var r=a?a.call(this):s;return n(this,t,{configurable:i,enumerable:o,writable:!0,value:r}),r}},set:S(t)}}function o(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return g(i,t)}var a,s,c,u,l,d,f="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 p(e,t,r,n){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function h(e,t,r,n,i){var o={};return Object.keys(n).forEach((function(e){o[e]=n[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}function v(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}var m=Object.defineProperty;Object.getOwnPropertyDescriptor,Object.getOwnPropertyNames,Object.getOwnPropertySymbols;function g(e,t){return function(e){if(!e||!e.hasOwnProperty)return!1;for(var t=["value","initializer","get","set"],r=0,n=t.length;r<n;r++)if(e.hasOwnProperty(t[r]))return!0;return!1}(t[t.length-1])?e.apply(void 0,v(t).concat([[]])):function(){return e.apply(void 0,v(Array.prototype.slice.call(arguments)).concat([t]))}}var y=(a=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,"debounceTimeoutIds",s,this),p(this,"throttleTimeoutIds",c,this),p(this,"throttlePreviousTimestamps",u,this),p(this,"throttleTrailingArgs",l,this),p(this,"profileLastRan",d,this)},s=h(a.prototype,"debounceTimeoutIds",[o],{enumerable:!0,initializer:function(){return{}}}),c=h(a.prototype,"throttleTimeoutIds",[o],{enumerable:!0,initializer:function(){return{}}}),u=h(a.prototype,"throttlePreviousTimestamps",[o],{enumerable:!0,initializer:function(){return{}}}),l=h(a.prototype,"throttleTrailingArgs",[o],{enumerable:!0,initializer:function(){return null}}),d=h(a.prototype,"profileLastRan",[o],{enumerable:!0,initializer:function(){return null}}),a),E="function"==typeof Symbol?Symbol("__core_decorators__"):"__core_decorators__";function S(e){return function(t){return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t}),t}}function _(e,t){return e.bind?e.bind(t):function(){return e.apply(t,arguments)}}var b="object"===("undefined"==typeof console?"undefined":f(console))&&console&&"function"==typeof console.warn?_(console.warn,console):function(){};var R="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},T=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var w=/^function ([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?(\([^\)]*\))[\s\S]+$/;!function(){function e(t,r,n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parentKlass=t,this.childKlass=r,this.parentDescriptor=n,this.childDescriptor=i}T(e,[{key:"_getTopic",value:function(e){return void 0===e?null:"value"in e?e.value:"get"in e?e.get:"set"in e?e.set:void 0}},{key:"_extractTopicSignature",value:function(e){return"function"===(void 0===e?"undefined":R(e))?this._extractFunctionSignature(e):this.key}},{key:"_extractFunctionSignature",value:function(e){var t=this;return e.toString().replace(w,(function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.key)+arguments[2]}))}},{key:"key",get:function(){return this.childDescriptor.key}},{key:"parentNotation",get:function(){return this.parentKlass.constructor.name+"#"+this.parentPropertySignature}},{key:"childNotation",get:function(){return this.childKlass.constructor.name+"#"+this.childPropertySignature}},{key:"parentTopic",get:function(){return this._getTopic(this.parentDescriptor)}},{key:"childTopic",get:function(){return this._getTopic(this.childDescriptor)}},{key:"parentPropertySignature",get:function(){return this._extractTopicSignature(this.parentTopic)}},{key:"childPropertySignature",get:function(){return this._extractTopicSignature(this.childTopic)}}]),T(e,[{key:"assert",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";!0!==e&&this.error("{child} does not properly override {parent}"+t)}},{key:"error",value:function(e){var t=this;throw e=e.replace("{parent}",(function(e){return t.parentNotation})).replace("{child}",(function(e){return t.childNotation})),new SyntaxError(e)}}])}();Object.assign;Object.assign,"function"==typeof Symbol&&Symbol.iterator;Object.assign;Object.defineProperty,Object.getPrototypeOf;function I(e,t,r){return r.writable=!1,r}function x(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return g(I,t)}Object.assign;Object.assign;Object.defineProperty;"function"==typeof Symbol&&Symbol.iterator,Object.defineProperty,Object.getPrototypeOf;Object.assign;var A={};console.time&&console.time.bind(console),console.timeEnd&&console.timeEnd.bind(console);Object.assign,Object.getPrototypeOf,Object.getOwnPropertyDescriptor;var C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},k=(console,{profile:console.profile?_(console.profile,console):function(){},profileEnd:console.profileEnd?_(console.profileEnd,console):function(){},warn:b});function N(e,t,r,n){var i=O(n,3),o=i[0],a=void 0===o?null:o,s=i[1],c=void 0!==s&&s,u=i[2],l=void 0===u?k:u;if(!L.__enabled)return L.__warned||(l.warn("console.profile is not supported. All @profile decorators are disabled."),L.__warned=!0),r;var d=r.value;if(null===a&&(a=e.constructor.name+"."+t),"function"!=typeof d)throw new SyntaxError("@profile can only be used on functions, not: "+d);return C({},r,{value:function(){var e,t=Date.now(),r=(!1===(e=this).hasOwnProperty(E)&&m(e,E,{value:new y}),e[E]);(!0===c&&!r.profileLastRan||!1===c||"number"==typeof c&&t-r.profileLastRan>c||"function"==typeof c&&c.apply(this,arguments))&&(l.profile(a),r.profileLastRan=t);try{return d.apply(this,arguments)}finally{l.profileEnd(a)}}})}function L(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return g(N,t)}L.__enabled=!!console.profile,L.__warned=!1;Object.defineProperty,Object.getOwnPropertyDescriptor},16497:(e,t,r)=>{function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(48764).Buffer.isBuffer},78249:function(e,t,r){var n;e.exports=(n=n||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==r.g&&r.g.crypto&&(n=r.g.crypto),!n)try{n=r(42480)}catch(e){}var i=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),a={},s=a.lib={},c=s.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=s.WordArray=c.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var s=0;s<i;s+=4)t[n+s>>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(i());return new u.init(t,e)}}),l=a.enc={},d=l.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new u.init(r,t/2)}},f=l.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new u.init(r,t)}},p=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},h=s.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,l=e.min(4*c,o);if(c){for(var d=0;d<c;d+=a)this._doProcessBlock(i,d);r=i.splice(0,c),n.sigBytes-=l}return new u.init(r,l)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),v=(s.Hasher=h.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new v.HMAC.init(e,r).finalize(t)}}}),a.algo={});return a}(Math),n)},52153:function(e,t,r){var n;e.exports=(n=r(78249),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[],c=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(s[i]=r(e.pow(n,.5))),c[i]=r(e.pow(n,1/3)),i++),n++}();var u=[],l=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],l=r[5],d=r[6],f=r[7],p=0;p<64;p++){if(p<16)u[p]=0|e[t+p];else{var h=u[p-15],v=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,m=u[p-2],g=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[p]=v+u[p-7]+g+u[p-16]}var y=n&i^n&o^i&o,E=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),S=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&d)+c[p]+u[p];f=d,d=l,l=s,s=a+S|0,a=o,o=i,i=n,n=S+(E+y)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+l|0,r[6]=r[6]+d|0,r[7]=r[7]+f|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(l),t.HmacSHA256=o._createHmacHelper(l)}(Math),n.SHA256)},35015:(e,t,r)=>{"use strict";var n=r(89509).Buffer,i=r(6972),o=128,a=48,s=2;function c(e){if(n.isBuffer(e))return e;if("string"==typeof e)return n.from(e,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function u(e,t,r){for(var n=0;t+n<r&&0===e[t+n];)++n;return e[t+n]>=o&&--n,n}e.exports={derToJose:function(e,t){e=c(e);var r=i(t),u=r+1,l=e.length,d=0;if(e[d++]!==a)throw new Error('Could not find expected "seq"');var f=e[d++];if(f===(1|o)&&(f=e[d++]),l-d<f)throw new Error('"seq" specified length of "'+f+'", only "'+(l-d)+'" remaining');if(e[d++]!==s)throw new Error('Could not find expected "int" for "r"');var p=e[d++];if(l-d-2<p)throw new Error('"r" specified length of "'+p+'", only "'+(l-d-2)+'" available');if(u<p)throw new Error('"r" specified length of "'+p+'", max of "'+u+'" is acceptable');var h=d;if(d+=p,e[d++]!==s)throw new Error('Could not find expected "int" for "s"');var v=e[d++];if(l-d!==v)throw new Error('"s" specified length of "'+v+'", expected "'+(l-d)+'"');if(u<v)throw new Error('"s" specified length of "'+v+'", max of "'+u+'" is acceptable');var m=d;if((d+=v)!==l)throw new Error('Expected to consume entire buffer, but "'+(l-d)+'" bytes remain');var g=r-p,y=r-v,E=n.allocUnsafe(g+p+y+v);for(d=0;d<g;++d)E[d]=0;e.copy(E,d,h+Math.max(-g,0),h+p);for(var S=d=r;d<S+y;++d)E[d]=0;return e.copy(E,d,m+Math.max(-y,0),m+v),E=(E=E.toString("base64")).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},joseToDer:function(e,t){e=c(e);var r=i(t),l=e.length;if(l!==2*r)throw new TypeError('"'+t+'" signatures must be "'+2*r+'" bytes, saw "'+l+'"');var d=u(e,0,r),f=u(e,r,e.length),p=r-d,h=r-f,v=2+p+1+1+h,m=v<o,g=n.allocUnsafe((m?2:3)+v),y=0;return g[y++]=a,m?g[y++]=v:(g[y++]=1|o,g[y++]=255&v),g[y++]=s,g[y++]=p,d<0?(g[y++]=0,y+=e.copy(g,y,0,r)):y+=e.copy(g,y,d,r),g[y++]=s,g[y++]=h,f<0?(g[y++]=0,e.copy(g,y,r)):e.copy(g,y,r+f),g}}},6972:e=>{"use strict";function t(e){return(e/8|0)+(e%8==0?0:1)}var r={ES256:t(256),ES384:t(384),ES512:t(521)};e.exports=function(e){var t=r[e];if(t)return t;throw new Error('Unknown algorithm "'+e+'"')}},17187:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&v(e,"error",t,r)}(e,i,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){var i,o,a,u;if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=l.bind(n);return i.listener=r,n.wrapFn=i,i}function f(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):h(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function h(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function v(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var u=c.length,l=h(c,u);for(r=0;r<u;++r)n(l[r],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,i,o,a;if(s(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},40001:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";const Token=__webpack_require__(83416),strtok3=__webpack_require__(35849),{stringToBytes,tarHeaderChecksumMatches,uint32SyncSafeToken}=__webpack_require__(76188),supported=__webpack_require__(49898),minimumBytes=4100;async function fromStream(e){const t=await strtok3.fromStream(e);try{return await fromTokenizer(t)}finally{await t.close()}}async function fromBuffer(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer||Buffer.isBuffer(e)))throw new TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`Buffer\` or \`ArrayBuffer\`, got \`${typeof e}\``);const t=e instanceof Buffer?e:Buffer.from(e);if(!(t&&t.length>1))return;return fromTokenizer(strtok3.fromBuffer(t))}function _check(e,t,r){r={offset:0,...r};for(const[n,i]of t.entries())if(r.mask){if(i!==(r.mask[n]&e[n+r.offset]))return!1}else if(i!==e[n+r.offset])return!1;return!0}async function fromTokenizer(e){try{return _fromTokenizer(e)}catch(e){if(!(e instanceof strtok3.EndOfStreamError))throw e}}async function _fromTokenizer(e){let t=Buffer.alloc(minimumBytes);const r=(e,r)=>_check(t,e,r),n=(e,t)=>r(stringToBytes(e),t);if(e.fileInfo.size||(e.fileInfo.size=Number.MAX_SAFE_INTEGER),await e.peekBuffer(t,{length:12,mayBeLess:!0}),r([66,77]))return{ext:"bmp",mime:"image/bmp"};if(r([11,119]))return{ext:"ac3",mime:"audio/vnd.dolby.dd-raw"};if(r([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(r([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if(r([37,33]))return await e.peekBuffer(t,{length:24,mayBeLess:!0}),n("PS-Adobe-",{offset:2})&&n(" EPSF-",{offset:14})?{ext:"eps",mime:"application/eps"}:{ext:"ps",mime:"application/postscript"};if(r([31,160])||r([31,157]))return{ext:"Z",mime:"application/x-compress"};if(r([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(r([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(r([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(r([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(n("ID3")){await e.ignore(6);const i=await e.readToken(uint32SyncSafeToken);return e.position+i>e.fileInfo.size?{ext:"mp3",mime:"audio/mpeg"}:(await e.ignore(i),fromTokenizer(e))}if(n("MP+"))return{ext:"mpc",mime:"audio/x-musepack"};if((67===t[0]||70===t[0])&&r([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(r([71,73,70]))return{ext:"gif",mime:"image/gif"};if(n("FLIF"))return{ext:"flif",mime:"image/flif"};if(n("8BPS"))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(n("WEBP",{offset:8}))return{ext:"webp",mime:"image/webp"};if(n("MPCK"))return{ext:"mpc",mime:"audio/x-musepack"};if(n("FORM"))return{ext:"aif",mime:"audio/aiff"};if(n("icns",{offset:0}))return{ext:"icns",mime:"image/icns"};if(r([80,75,3,4])){try{for(;e.position+30<e.fileInfo.size;){await e.readBuffer(t,{length:30});const o={compressedSize:t.readUInt32LE(18),uncompressedSize:t.readUInt32LE(22),filenameLength:t.readUInt16LE(26),extraFieldLength:t.readUInt16LE(28)};if(o.filename=await e.readToken(new Token.StringType(o.filenameLength,"utf-8")),await e.ignore(o.extraFieldLength),"META-INF/mozilla.rsa"===o.filename)return{ext:"xpi",mime:"application/x-xpinstall"};if(o.filename.endsWith(".rels")||o.filename.endsWith(".xml")){switch(o.filename.split("/")[0]){case"_rels":default:break;case"word":return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};case"ppt":return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};case"xl":return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}}if(o.filename.startsWith("xl/"))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};if(o.filename.startsWith("3D/")&&o.filename.endsWith(".model"))return{ext:"3mf",mime:"model/3mf"};if("mimetype"===o.filename&&o.compressedSize===o.uncompressedSize){switch(await e.readToken(new Token.StringType(o.compressedSize,"utf-8"))){case"application/epub+zip":return{ext:"epub",mime:"application/epub+zip"};case"application/vnd.oasis.opendocument.text":return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};case"application/vnd.oasis.opendocument.spreadsheet":return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};case"application/vnd.oasis.opendocument.presentation":return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"}}}if(0===o.compressedSize){let a=-1;for(;a<0&&e.position<e.fileInfo.size;)await e.peekBuffer(t,{mayBeLess:!0}),a=t.indexOf("504B0304",0,"hex"),await e.ignore(a>=0?a:t.length)}else await e.ignore(o.compressedSize)}}catch(s){if(!(s instanceof strtok3.EndOfStreamError))throw s}return{ext:"zip",mime:"application/zip"}}if(n("OggS")){await e.ignore(28);const c=Buffer.alloc(8);return await e.readBuffer(c),_check(c,[79,112,117,115,72,101,97,100])?{ext:"opus",mime:"audio/opus"}:_check(c,[128,116,104,101,111,114,97])?{ext:"ogv",mime:"video/ogg"}:_check(c,[1,118,105,100,101,111,0])?{ext:"ogm",mime:"video/ogg"}:_check(c,[127,70,76,65,67])?{ext:"oga",mime:"audio/ogg"}:_check(c,[83,112,101,101,120,32,32])?{ext:"spx",mime:"audio/ogg"}:_check(c,[1,118,111,114,98,105,115])?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"}}if(r([80,75])&&(3===t[2]||5===t[2]||7===t[2])&&(4===t[3]||6===t[3]||8===t[3]))return{ext:"zip",mime:"application/zip"};if(n("ftyp",{offset:4})&&0!=(96&t[8])){const u=t.toString("binary",8,12).replace("\0"," ").trim();switch(u){case"avif":return{ext:"avif",mime:"image/avif"};case"mif1":return{ext:"heic",mime:"image/heif"};case"msf1":return{ext:"heic",mime:"image/heif-sequence"};case"heic":case"heix":return{ext:"heic",mime:"image/heic"};case"hevc":case"hevx":return{ext:"heic",mime:"image/heic-sequence"};case"qt":return{ext:"mov",mime:"video/quicktime"};case"M4V":case"M4VH":case"M4VP":return{ext:"m4v",mime:"video/x-m4v"};case"M4P":return{ext:"m4p",mime:"video/mp4"};case"M4B":return{ext:"m4b",mime:"audio/mp4"};case"M4A":return{ext:"m4a",mime:"audio/x-m4a"};case"F4V":return{ext:"f4v",mime:"video/mp4"};case"F4P":return{ext:"f4p",mime:"video/mp4"};case"F4A":return{ext:"f4a",mime:"audio/mp4"};case"F4B":return{ext:"f4b",mime:"audio/mp4"};case"crx":return{ext:"cr3",mime:"image/x-canon-cr3"};default:return u.startsWith("3g")?u.startsWith("3g2")?{ext:"3g2",mime:"video/3gpp2"}:{ext:"3gp",mime:"video/3gpp"}:{ext:"mp4",mime:"video/mp4"}}}if(n("MThd"))return{ext:"mid",mime:"audio/midi"};if(n("wOFF")&&(r([0,1,0,0],{offset:4})||n("OTTO",{offset:4})))return{ext:"woff",mime:"font/woff"};if(n("wOF2")&&(r([0,1,0,0],{offset:4})||n("OTTO",{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(r([212,195,178,161])||r([161,178,195,212]))return{ext:"pcap",mime:"application/vnd.tcpdump.pcap"};if(n("DSD "))return{ext:"dsf",mime:"audio/x-dsf"};if(n("LZIP"))return{ext:"lz",mime:"application/x-lzip"};if(n("fLaC"))return{ext:"flac",mime:"audio/x-flac"};if(r([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(n("wvpk"))return{ext:"wv",mime:"audio/wavpack"};if(n("%PDF")){await e.ignore(1350);const l=10485760,d=Buffer.alloc(Math.min(l,e.fileInfo.size));return await e.readBuffer(d,{mayBeLess:!0}),d.includes(Buffer.from("AIPrivateData"))?{ext:"ai",mime:"application/postscript"}:{ext:"pdf",mime:"application/pdf"}}if(r([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(r([73,73,42,0]))return n("CR",{offset:8})?{ext:"cr2",mime:"image/x-canon-cr2"}:r([28,0,254,0],{offset:8})||r([31,0,11,0],{offset:8})?{ext:"nef",mime:"image/x-nikon-nef"}:r([8,0,0,0],{offset:4})&&(r([45,0,254,0],{offset:8})||r([39,0,254,0],{offset:8}))?{ext:"dng",mime:"image/x-adobe-dng"}:(t=Buffer.alloc(24),await e.peekBuffer(t),(r([16,251,134,1],{offset:4})||r([8,0,0,0],{offset:4}))&&r([0,254,0,4,0,1,0,0,0,1,0,0,0,3,1],{offset:9})?{ext:"arw",mime:"image/x-sony-arw"}:{ext:"tif",mime:"image/tiff"});if(r([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(n("MAC "))return{ext:"ape",mime:"audio/ape"};if(r([26,69,223,163])){async function f(){const t=await e.peekNumber(Token.UINT8);let r=128,n=0;for(;0==(t&r)&&0!==r;)++n,r>>=1;const i=Buffer.alloc(n+1);return await e.readBuffer(i),i}async function p(){const e=await f(),t=await f();t[0]^=128>>t.length-1;const r=Math.min(6,t.length);return{id:e.readUIntBE(0,e.length),len:t.readUIntBE(t.length-r,r)}}async function h(t,r){for(;r>0;){const t=await p();if(17026===t.id)return e.readToken(new Token.StringType(t.len,"utf-8"));await e.ignore(t.len),--r}}const v=await p();switch(await h(0,v.len)){case"webm":return{ext:"webm",mime:"video/webm"};case"matroska":return{ext:"mkv",mime:"video/x-matroska"};default:return}}if(r([82,73,70,70])){if(r([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(r([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(r([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(n("SQLi"))return{ext:"sqlite",mime:"application/x-sqlite3"};if(r([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(n("Cr24"))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(n("MSCF")||n("ISc("))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(r([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(r([197,208,211,198]))return{ext:"eps",mime:"application/eps"};if(r([40,181,47,253]))return{ext:"zst",mime:"application/zstd"};if(r([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(n("#!AMR"))return{ext:"amr",mime:"audio/amr"};if(n("{\\rtf"))return{ext:"rtf",mime:"application/rtf"};if(r([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(n("IMPM"))return{ext:"it",mime:"audio/x-it"};if(n("-lh0-",{offset:2})||n("-lh1-",{offset:2})||n("-lh2-",{offset:2})||n("-lh3-",{offset:2})||n("-lh4-",{offset:2})||n("-lh5-",{offset:2})||n("-lh6-",{offset:2})||n("-lh7-",{offset:2})||n("-lzs-",{offset:2})||n("-lz4-",{offset:2})||n("-lz5-",{offset:2})||n("-lhd-",{offset:2}))return{ext:"lzh",mime:"application/x-lzh-compressed"};if(r([0,0,1,186])){if(r([33],{offset:4,mask:[241]}))return{ext:"mpg",mime:"video/MP1S"};if(r([68],{offset:4,mask:[196]}))return{ext:"mpg",mime:"video/MP2P"}}if(n("ITSF"))return{ext:"chm",mime:"application/vnd.ms-htmlhelp"};if(r([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(n("<?xml "))return{ext:"xml",mime:"application/xml"};if(r([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(r([82,97,114,33,26,7])&&(0===t[6]||1===t[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(n("solid "))return{ext:"stl",mime:"model/stl"};if(n("BLENDER"))return{ext:"blend",mime:"application/x-blender"};if(n("!<arch>")){await e.ignore(8);return"debian-binary"===await e.readToken(new Token.StringType(13,"ascii"))?{ext:"deb",mime:"application/x-deb"}:{ext:"ar",mime:"application/x-unix-archive"}}if(r([137,80,78,71,13,10,26,10])){async function m(){return{length:await e.readToken(Token.INT32_BE),type:await e.readToken(new Token.StringType(4,"binary"))}}await e.ignore(8);do{const g=await m();if(g.length<0)return;switch(g.type){case"IDAT":return{ext:"png",mime:"image/png"};case"acTL":return{ext:"apng",mime:"image/apng"};default:await e.ignore(g.length+4)}}while(e.position+8<e.fileInfo.size);return{ext:"png",mime:"image/png"}}if(r([65,82,82,79,87,49,0,0]))return{ext:"arrow",mime:"application/x-apache-arrow"};if(r([103,108,84,70,2,0,0,0]))return{ext:"glb",mime:"model/gltf-binary"};if(r([102,114,101,101],{offset:4})||r([109,100,97,116],{offset:4})||r([109,111,111,118],{offset:4})||r([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(r([73,73,82,79,8,0,0,0,24]))return{ext:"orf",mime:"image/x-olympus-orf"};if(n("gimp xcf "))return{ext:"xcf",mime:"image/x-xcf"};if(r([73,73,85,0,24,0,0,0,136,231,116,216]))return{ext:"rw2",mime:"image/x-panasonic-rw2"};if(r([48,38,178,117,142,102,207,17,166,217])){async function y(){const t=Buffer.alloc(16);return await e.readBuffer(t),{id:t,size:Number(await e.readToken(Token.UINT64_LE))}}for(await e.ignore(30);e.position+24<e.fileInfo.size;){const E=await y();let S=E.size-24;if(_check(E.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){const _=Buffer.alloc(16);if(S-=await e.readBuffer(_),_check(_,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"audio/x-ms-asf"};if(_check(_,[192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"video/x-ms-asf"};break}await e.ignore(S)}return{ext:"asf",mime:"application/vnd.ms-asf"}}if(r([171,75,84,88,32,49,49,187,13,10,26,10]))return{ext:"ktx",mime:"image/ktx"};if((r([126,16,4])||r([126,24,4]))&&r([48,77,73,69],{offset:4}))return{ext:"mie",mime:"application/x-mie"};if(r([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2}))return{ext:"shp",mime:"application/x-esri-shape"};if(r([0,0,0,12,106,80,32,32,13,10,135,10])){await e.ignore(20);switch(await e.readToken(new Token.StringType(4,"ascii"))){case"jp2 ":return{ext:"jp2",mime:"image/jp2"};case"jpx ":return{ext:"jpx",mime:"image/jpx"};case"jpm ":return{ext:"jpm",mime:"image/jpm"};case"mjp2":return{ext:"mj2",mime:"image/mj2"};default:return}}if(r([255,10])||r([0,0,0,12,74,88,76,32,13,10,135,10]))return{ext:"jxl",mime:"image/jxl"};if(r([0,0,1,186])||r([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(r([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};if(r([0,0,1,0]))return{ext:"ico",mime:"image/x-icon"};if(r([0,0,2,0]))return{ext:"cur",mime:"image/x-icon"};if(r([208,207,17,224,161,177,26,225]))return{ext:"cfb",mime:"application/x-cfb"};if(await e.peekBuffer(t,{length:Math.min(256,e.fileInfo.size),mayBeLess:!0}),n("BEGIN:")){if(n("VCARD",{offset:6}))return{ext:"vcf",mime:"text/vcard"};if(n("VCALENDAR",{offset:6}))return{ext:"ics",mime:"text/calendar"}}if(n("FUJIFILMCCD-RAW"))return{ext:"raf",mime:"image/x-fujifilm-raf"};if(n("Extended Module:"))return{ext:"xm",mime:"audio/x-xm"};if(n("Creative Voice File"))return{ext:"voc",mime:"audio/x-voc"};if(r([4,0,0,0])&&t.length>=16){const b=t.readUInt32LE(12);if(b>12&&t.length>=b+16)try{const R=t.slice(16,b+16).toString();if(JSON.parse(R).files)return{ext:"asar",mime:"application/x-asar"}}catch(T){}}if(r([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(n("SCRM",{offset:44}))return{ext:"s3m",mime:"audio/x-s3m"};if(r([71],{offset:4})&&(r([71],{offset:192})||r([71],{offset:196})))return{ext:"mts",mime:"video/mp2t"};if(r([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(r([68,73,67,77],{offset:128}))return{ext:"dcm",mime:"application/dicom"};if(r([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70]))return{ext:"lnk",mime:"application/x.ms.shortcut"};if(r([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0]))return{ext:"alias",mime:"application/x.apple.alias"};if(r([76,80],{offset:34})&&(r([0,0,1],{offset:8})||r([1,0,2],{offset:8})||r([2,0,2],{offset:8})))return{ext:"eot",mime:"application/vnd.ms-fontobject"};if(r([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29]))return{ext:"indd",mime:"application/x-indesign"};if(await e.peekBuffer(t,{length:Math.min(512,e.fileInfo.size),mayBeLess:!0}),tarHeaderChecksumMatches(t))return{ext:"tar",mime:"application/x-tar"};if(r([255,254,255,14,83,0,107,0,101,0,116,0,99,0,104,0,85,0,112,0,32,0,77,0,111,0,100,0,101,0,108,0]))return{ext:"skp",mime:"application/vnd.sketchup.skp"};if(n("-----BEGIN PGP MESSAGE-----"))return{ext:"pgp",mime:"application/pgp-encrypted"};if(t.length>=2&&r([255,224],{offset:0,mask:[255,224]})){if(r([16],{offset:1,mask:[22]}))return r([8],{offset:1,mask:[8]}),{ext:"aac",mime:"audio/aac"};if(r([2],{offset:1,mask:[6]}))return{ext:"mp3",mime:"audio/mpeg"};if(r([4],{offset:1,mask:[6]}))return{ext:"mp2",mime:"audio/mpeg"};if(r([6],{offset:1,mask:[6]}))return{ext:"mp1",mime:"audio/mpeg"}}}const stream=readableStream=>new Promise(((resolve,reject)=>{const stream=eval("require")("stream");readableStream.on("error",reject),readableStream.once("readable",(async()=>{const e=new stream.PassThrough;let t;t=stream.pipeline?stream.pipeline(readableStream,e,(()=>{})):readableStream.pipe(e);const r=readableStream.read(minimumBytes)||readableStream.read()||Buffer.alloc(0);try{const t=await fromBuffer(r);e.fileType=t}catch(e){reject(e)}resolve(t)}))})),fileType={fromStream,fromTokenizer,fromBuffer,stream};Object.defineProperty(fileType,"extensions",{get:()=>new Set(supported.extensions)}),Object.defineProperty(fileType,"mimeTypes",{get:()=>new Set(supported.mimeTypes)}),module.exports=fileType},97769:(e,t,r)=>{"use strict";const n=r(26597),i=r(40001);const o={fromFile:async function(e){const t=await n.fromFile(e);try{return await i.fromTokenizer(t)}finally{await t.close()}}};Object.assign(o,i),Object.defineProperty(o,"extensions",{get:()=>i.extensions}),Object.defineProperty(o,"mimeTypes",{get:()=>i.mimeTypes}),e.exports=o},49898:e=>{"use strict";e.exports={extensions:["jpg","png","apng","gif","webp","flif","xcf","cr2","cr3","orf","arw","dng","nef","rw2","raf","tif","bmp","icns","jxr","psd","indd","zip","tar","rar","gz","bz2","7z","dmg","mp4","mid","mkv","webm","mov","avi","mpg","mp2","mp3","m4a","oga","ogg","ogv","opus","flac","wav","spx","amr","pdf","epub","exe","swf","rtf","wasm","woff","woff2","eot","ttf","otf","ico","flv","ps","xz","sqlite","nes","crx","xpi","cab","deb","ar","rpm","Z","lz","cfb","mxf","mts","blend","bpg","docx","pptx","xlsx","3gp","3g2","jp2","jpm","jpx","mj2","aif","qcp","odt","ods","odp","xml","mobi","heic","cur","ktx","ape","wv","dcm","ics","glb","pcap","dsf","lnk","alias","voc","ac3","m4v","m4p","m4b","f4v","f4p","f4b","f4a","mie","asf","ogm","ogx","mpc","arrow","shp","aac","mp1","it","s3m","xm","ai","skp","avif","eps","lzh","pgp","asar","stl","chm","3mf","zst","jxl","vcf"],mimeTypes:["image/jpeg","image/png","image/gif","image/webp","image/flif","image/x-xcf","image/x-canon-cr2","image/x-canon-cr3","image/tiff","image/bmp","image/vnd.ms-photo","image/vnd.adobe.photoshop","application/x-indesign","application/epub+zip","application/x-xpinstall","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/zip","application/x-tar","application/x-rar-compressed","application/gzip","application/x-bzip2","application/x-7z-compressed","application/x-apple-diskimage","application/x-apache-arrow","video/mp4","audio/midi","video/x-matroska","video/webm","video/quicktime","video/vnd.avi","audio/vnd.wave","audio/qcelp","audio/x-ms-asf","video/x-ms-asf","application/vnd.ms-asf","video/mpeg","video/3gpp","audio/mpeg","audio/mp4","audio/opus","video/ogg","audio/ogg","application/ogg","audio/x-flac","audio/ape","audio/wavpack","audio/amr","application/pdf","application/x-msdownload","application/x-shockwave-flash","application/rtf","application/wasm","font/woff","font/woff2","application/vnd.ms-fontobject","font/ttf","font/otf","image/x-icon","video/x-flv","application/postscript","application/eps","application/x-xz","application/x-sqlite3","application/x-nintendo-nes-rom","application/x-google-chrome-extension","application/vnd.ms-cab-compressed","application/x-deb","application/x-unix-archive","application/x-rpm","application/x-compress","application/x-lzip","application/x-cfb","application/x-mie","application/mxf","video/mp2t","application/x-blender","image/bpg","image/jp2","image/jpx","image/jpm","image/mj2","audio/aiff","application/xml","application/x-mobipocket-ebook","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/icns","image/ktx","application/dicom","audio/x-musepack","text/calendar","text/vcard","model/gltf-binary","application/vnd.tcpdump.pcap","audio/x-dsf","application/x.ms.shortcut","application/x.apple.alias","audio/x-voc","audio/vnd.dolby.dd-raw","audio/x-m4a","image/apng","image/x-olympus-orf","image/x-sony-arw","image/x-adobe-dng","image/x-nikon-nef","image/x-panasonic-rw2","image/x-fujifilm-raf","video/x-m4v","video/3gpp2","application/x-esri-shape","audio/aac","audio/x-it","audio/x-s3m","audio/x-xm","video/MP1S","video/MP2P","application/vnd.sketchup.skp","image/avif","application/x-lzh-compressed","application/pgp-encrypted","application/x-asar","model/stl","application/vnd.ms-htmlhelp","model/3mf","image/jxl","application/zstd"]}},76188:(e,t)=>{"use strict";t.stringToBytes=e=>[...e].map((e=>e.charCodeAt(0))),t.tarHeaderChecksumMatches=(e,t=0)=>{const r=parseInt(e.toString("utf8",148,154).replace(/\0.*$/,"").trim(),8);if(isNaN(r))return!1;let n=256;for(let r=t;r<t+148;r++)n+=e[r];for(let r=t+156;r<t+512;r++)n+=e[r];return r===n},t.uint32SyncSafeToken={get:(e,t)=>127&e[t+3]|e[t+2]<<7|e[t+1]<<14|e[t]<<21,len:4}},17648:e=>{"use strict";var t=Array.prototype.slice,r=Object.prototype.toString;e.exports=function(e){var n=this;if("function"!=typeof n||"[object Function]"!==r.call(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var i,o=t.call(arguments,1),a=Math.max(0,n.length-o.length),s=[],c=0;c<a;c++)s.push("$"+c);if(i=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var r=n.apply(this,o.concat(t.call(arguments)));return Object(r)===r?r:this}return n.apply(e,o.concat(t.call(arguments)))})),n.prototype){var u=function(){};u.prototype=n.prototype,i.prototype=new u,u.prototype=null}return i}},58612:(e,t,r)=>{"use strict";var n=r(17648);e.exports=Function.prototype.bind||n},40210:(e,t,r)=>{"use strict";var n,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var u=function(){throw new a},l=c?function(){try{return u}catch(e){try{return c(arguments,"callee").get}catch(e){return u}}}():u,d=r(41405)(),f=Object.getPrototypeOf||function(e){return e.__proto__},p={},h="undefined"==typeof Uint8Array?n:f(Uint8Array),v={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":d?f([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d?f(f([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d?f((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d?f((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?f(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":l,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};try{null.error}catch(e){var m=f(f(e));v["%Error.prototype%"]=m}var g=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(r=f(i.prototype))}return v[t]=r,r},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=r(58612),S=r(17642),_=E.call(Function.call,Array.prototype.concat),b=E.call(Function.apply,Array.prototype.splice),R=E.call(Function.call,String.prototype.replace),T=E.call(Function.call,String.prototype.slice),w=E.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,A=function(e,t){var r,n=e;if(S(y,n)&&(n="%"+(r=y[n])[0]+"%"),S(v,n)){var o=v[n];if(o===p&&(o=g(n)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===w(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=T(e,0,1),r=T(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return R(e,I,(function(e,t,r,i){n[n.length]=r?R(i,x,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=A("%"+n+"%",t),s=o.name,u=o.value,l=!1,d=o.alias;d&&(n=d[0],b(r,_([0,1],d)));for(var f=1,p=!0;f<r.length;f+=1){var h=r[f],m=T(h,0,1),g=T(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&p||(l=!0),S(v,s="%"+(n+="."+h)+"%"))u=v[s];else if(null!=u){if(!(h in u)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&f+1>=r.length){var y=c(u,h);u=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:u[h]}else p=S(u,h),u=u[h];p&&!l&&(v[s]=u)}}return u}},58908:(e,t,r)=>{var n;n="undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},e.exports=n},41405:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(55419);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},55419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},17642:(e,t,r)=>{"use strict";var n=r(58612);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},80645:(e,t)=>{t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,c=(1<<s)-1,u=c>>1,l=-7,d=r?i-1:0,f=r?-1:1,p=e[t+d];for(d+=f,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+d],d+=f,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=u}return(p?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,d=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,h=n?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?f/c:f*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*c-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+p]=255&s,p+=h,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[r+p]=255&a,p+=h,a/=256,u-=8);e[r+p-h]|=128*v}},35717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},93917:e=>{var t=function(e){if(!e.match(/^([0-9]{1,3}\.){3}[0-9]{1,3}$/))return!1;var t=e.split(".");for(let e of t){if(Number(e)>255)return!1}return!0},r=function(e,t=8){if("::"===(e=e.toLowerCase()))return!0;if(!e.match(/^([0-9a-f]{0,4}:?){2,8}$/))return!1;if(":"===e[e.length-1]&&":"!==e[e.length-2])return!1;if(e.split("::").length>2)return!1;if(1===e.split("::").length&&e.split(":").length!==t)return!1;if(2===e.split("::").length){var r=e.split("::")[1];r=r.split(":");for(let e=0;e<r.length-1;e++)if(""===r[e])return!1}return!0},n=function(e){var[n,i]=d(e);return r(n,6)&&t(i)},i=function(e,t,r="0"){for(;e.length<t;)e+=r;return e},o=function(e,t,r="0"){for(;e.length<t;)e=r+e;return e},a=function(e,t){for(var r=[];e.length>0;){var n=e.substring(0,t);r.push(n),e=e.substring(t)}return r},s=function(e){return Number(e).toString(2)},c=function(e){return parseInt(e,2)},u=function(e){return e.split(".").map((e=>o(s(e),8))).join("")},l=function(e){return e.toString(16)},d=function(e){var t=e.lastIndexOf(":"),r=e.substring(0,t),n=e.substring(t+1);return":"===r[r.length-1]&&(r+=":"),[r,n]},f=function(e){var[t,r]=d(e),[n,i]=t.split("::");for(n=n.split(":"),i=void 0!==i?i.split(":"):[];n.length+i.length<6;)n.push("0");var a=n.concat(i);for(let e=0;e<a.length;e++)0===a[e].length&&(a[e]="0");return a.map((e=>parseInt(e,16))).map((e=>o(s(e),16))).join("")+u(r)},p=function(e){return a(e,8).map(c).join(".")},h=function(e){var t=function(e){var t=e.split(":"),r=0,n=null,i=!1,o=0,a=null;for(let e=0;e<t.length;e++)i?"0"===t[e]?o++:(o>r&&(r=o,n=a),i=!1,o=0,a=null):"0"===t[e]&&(i=!0,o=1,a=e);return null!==a&&o>r&&(r=o,n=a),r<2?e:t.slice(0,n).join(":")+"::"+t.slice(n+r).join(":")}(a(e,16).map(c).map(l).join(":"));return t},v=function(e,t){var r=function(e){var[t,r]=e.split("::");for(t=t.split(":"),r=void 0!==r?r.split(":"):[];t.length+r.length<8;)t.push("0");var n=t.concat(r);for(let e=0;e<n.length;e++)0===n[e].length&&(n[e]="0");return n.map((e=>parseInt(e,16))).map((e=>o(s(e),16))).join("")}(e),n=r.substring(0,t),a=i(n,128);return h(a)},m=function(e,t){var r,n,o,a,s,c,u=f(e).substring(0,t),l=i(u,128);return n=(r=l).substring(0,96),o=r.substring(96),a=h(n),s=p(o),":"!==(c=a)[c.length-1]&&(c+=":"),c+s};e.exports=function(e,o=24,a=24){if("string"!=typeof e)return null;var s=function(e){return t(e)?"IPv4":r(e)?"IPv6":n(e)?"IPv6_4":"None"}(e=e.trim().toLowerCase());return"IPv4"===s?function(e,t){var r=u(e).substring(0,t),n=i(r,32);return p(n)}(e,o):"IPv6"===s?v(e,a):"IPv6_4"===s?function(e){return n(e)&&(!f(e).substring(0,96).includes("1")||!f(e).substring(0,80).includes("1")&&!f(e).substring(80,96).includes("0"))}(e)?m(e,o+96):m(e,a):null}},27376:e=>{e.exports=function(e){if(!e)return!1;var r=t.call(e);return"[object Function]"===r||"function"==typeof e&&"[object RegExp]"!==r||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var t=Object.prototype.toString},5826:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},55777:function(e){var t;t=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(e,t,r){"use strict";function n(e){if(0===e.length)return e;var t,r,n=e.split(/[_-]/);if(1===n.length&&n[0][0].toLowerCase()===n[0][0])return e;for(r=n[0].toLowerCase(),t=1;t<n.length;t++)r=r+n[t].charAt(0).toUpperCase()+n[t].substring(1).toLowerCase();return r}n.prepended=function(e,t){return e+(t=n(t))[0].toUpperCase()+t.substring(1)},e.exports=n},function(e,t,r){"use strict";var n=r(0);e.exports=function(e){var t=n((e=e||{}).name||e.past||"history"),r=n(e.future||"future"),i=n.prepended("clear",t),o=n.prepended(t,"back"),a=n.prepended(t,"forward"),s=n.prepended("can",o),c=n.prepended("can",a),u=e.max,l={configure:function(e){e.addTransitionLifecycleNames(o),e.addTransitionLifecycleNames(a)},init:function(e){e[t]=[],e[r]=[]},lifecycle:function(e,n){"onEnterState"===n.event&&(e[t].push(n.to),u&&e[t].length>u&&e[t].shift(),n.transition!==o&&n.transition!==a&&(e[r].length=0))},methods:{},properties:{}};return l.methods[i]=function(){this[t].length=0,this[r].length=0},l.properties[s]={get:function(){return this[t].length>1}},l.properties[c]={get:function(){return this[r].length>0}},l.methods[o]=function(){if(!this[s])throw Error("no history");var e=this[t].pop(),n=this[t].pop();this[r].push(e),this._fsm.transit(o,e,n,[])},l.methods[a]=function(){if(!this[c])throw Error("no history");var e=this.state,t=this[r].pop();this._fsm.transit(a,e,t,[])},l}}])},e.exports=t()},84907:function(e){var t;t=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=5)}([function(e,t,r){"use strict";e.exports=function(e,t){var r,n,i;for(r=1;r<arguments.length;r++)for(i in n=arguments[r])n.hasOwnProperty(i)&&(e[i]=n[i]);return e}},function(e,t,r){"use strict";var n=r(0);e.exports={build:function(e,t){var r,i,o,a=t.plugins;for(r=0,i=a.length;r<i;r++)(o=a[r]).methods&&n(e,o.methods),o.properties&&Object.defineProperties(e,o.properties)},hook:function(e,t,r){var n,i,o,a,s=e.config.plugins,c=[e.context];for(r&&(c=c.concat(r)),n=0,i=s.length;n<i;n++)a=s[n],(o=s[n][t])&&o.apply(a,c)}}},function(e,t,r){"use strict";function n(e){if(0===e.length)return e;var t,r,n=e.split(/[_-]/);if(1===n.length&&n[0][0].toLowerCase()===n[0][0])return e;for(r=n[0].toLowerCase(),t=1;t<n.length;t++)r=r+n[t].charAt(0).toUpperCase()+n[t].substring(1).toLowerCase();return r}n.prepended=function(e,t){return e+(t=n(t))[0].toUpperCase()+t.substring(1)},e.exports=n},function(e,t,r){"use strict";var n=r(0),i=r(2);function o(e,t){e=e||{},this.options=e,this.defaults=t.defaults,this.states=[],this.transitions=[],this.map={},this.lifecycle=this.configureLifecycle(),this.init=this.configureInitTransition(e.init),this.data=this.configureData(e.data),this.methods=this.configureMethods(e.methods),this.map[this.defaults.wildcard]={},this.configureTransitions(e.transitions||[]),this.plugins=this.configurePlugins(e.plugins,t.plugin)}n(o.prototype,{addState:function(e){this.map[e]||(this.states.push(e),this.addStateLifecycleNames(e),this.map[e]={})},addStateLifecycleNames:function(e){this.lifecycle.onEnter[e]=i.prepended("onEnter",e),this.lifecycle.onLeave[e]=i.prepended("onLeave",e),this.lifecycle.on[e]=i.prepended("on",e)},addTransition:function(e){this.transitions.indexOf(e)<0&&(this.transitions.push(e),this.addTransitionLifecycleNames(e))},addTransitionLifecycleNames:function(e){this.lifecycle.onBefore[e]=i.prepended("onBefore",e),this.lifecycle.onAfter[e]=i.prepended("onAfter",e),this.lifecycle.on[e]=i.prepended("on",e)},mapTransition:function(e){var t=e.name,r=e.from,n=e.to;return this.addState(r),"function"!=typeof n&&this.addState(n),this.addTransition(t),this.map[r][t]=e,e},configureLifecycle:function(){return{onBefore:{transition:"onBeforeTransition"},onAfter:{transition:"onAfterTransition"},onEnter:{state:"onEnterState"},onLeave:{state:"onLeaveState"},on:{transition:"onTransition"}}},configureInitTransition:function(e){return"string"==typeof e?this.mapTransition(n({},this.defaults.init,{to:e,active:!0})):"object"==typeof e?this.mapTransition(n({},this.defaults.init,e,{active:!0})):(this.addState(this.defaults.init.from),this.defaults.init)},configureData:function(e){return"function"==typeof e?e:"object"==typeof e?function(){return e}:function(){return{}}},configureMethods:function(e){return e||{}},configurePlugins:function(e,t){var r,n,i;for(r=0,n=(e=e||[]).length;r<n;r++)"function"==typeof(i=e[r])&&(e[r]=i=i()),i.configure&&i.configure(this);return e},configureTransitions:function(e){var t,r,n,i,o,a=this.defaults.wildcard;for(r=0;r<e.length;r++)for(n=e[r],i=Array.isArray(n.from)?n.from:[n.from||a],o=n.to||a,t=0;t<i.length;t++)this.mapTransition({name:n.name,from:i[t],to:o})},transitionFor:function(e,t){var r=this.defaults.wildcard;return this.map[e][t]||this.map[r][t]},transitionsFor:function(e){var t=this.defaults.wildcard;return Object.keys(this.map[e]).concat(Object.keys(this.map[t]))},allStates:function(){return this.states},allTransitions:function(){return this.transitions}}),e.exports=o},function(e,t,r){var n=r(0),i=r(6),o=r(1),a=[null,[]];function s(e,t){this.context=e,this.config=t,this.state=t.init.from,this.observers=[e]}n(s.prototype,{init:function(e){if(n(this.context,this.config.data.apply(this.context,e)),o.hook(this,"init"),this.config.init.active)return this.fire(this.config.init.name,[])},is:function(e){return Array.isArray(e)?e.indexOf(this.state)>=0:this.state===e},isPending:function(){return this.pending},can:function(e){return!this.isPending()&&!!this.seek(e)},cannot:function(e){return!this.can(e)},allStates:function(){return this.config.allStates()},allTransitions:function(){return this.config.allTransitions()},transitions:function(){return this.config.transitionsFor(this.state)},seek:function(e,t){var r=this.config.defaults.wildcard,n=this.config.transitionFor(this.state,e),i=n&&n.to;return"function"==typeof i?i.apply(this.context,t):i===r?this.state:i},fire:function(e,t){return this.transit(e,this.state,this.seek(e,t),t)},transit:function(e,t,r,n){var i=this.config.lifecycle,o=this.config.options.observeUnchangedState||t!==r;return r?this.isPending()?this.context.onPendingTransition(e,t,r):(this.config.addState(r),this.beginTransit(),n.unshift({transition:e,from:t,to:r,fsm:this.context}),this.observeEvents([this.observersForEvent(i.onBefore.transition),this.observersForEvent(i.onBefore[e]),o?this.observersForEvent(i.onLeave.state):a,o?this.observersForEvent(i.onLeave[t]):a,this.observersForEvent(i.on.transition),o?["doTransit",[this]]:a,o?this.observersForEvent(i.onEnter.state):a,o?this.observersForEvent(i.onEnter[r]):a,o?this.observersForEvent(i.on[r]):a,this.observersForEvent(i.onAfter.transition),this.observersForEvent(i.onAfter[e]),this.observersForEvent(i.on[e])],n)):this.context.onInvalidTransition(e,t,r)},beginTransit:function(){this.pending=!0},endTransit:function(e){return this.pending=!1,e},failTransit:function(e){throw this.pending=!1,e},doTransit:function(e){this.state=e.to},observe:function(e){if(2===e.length){var t={};t[e[0]]=e[1],this.observers.push(t)}else this.observers.push(e[0])},observersForEvent:function(e){for(var t,r=0,n=this.observers.length,i=[];r<n;r++)(t=this.observers[r])[e]&&i.push(t);return[e,i,!0]},observeEvents:function(e,t,r,n){if(0===e.length)return this.endTransit(void 0===n||n);var i=e[0][0],a=e[0][1],s=e[0][2];if(t[0].event=i,i&&s&&i!==r&&o.hook(this,"lifecycle",t),0===a.length)return e.shift(),this.observeEvents(e,t,i,n);var c=a.shift(),u=c[i].apply(c,t);return u&&"function"==typeof u.then?u.then(this.observeEvents.bind(this,e,t,i)).catch(this.failTransit.bind(this)):!1===u?this.endTransit(!1):this.observeEvents(e,t,i,u)},onInvalidTransition:function(e,t,r){throw new i("transition is invalid in current state",e,t,r,this.state)},onPendingTransition:function(e,t,r){throw new i("transition is invalid while previous transition is still in progress",e,t,r,this.state)}}),e.exports=s},function(e,t,r){"use strict";var n=r(0),i=r(2),o=r(1),a=r(3),s=r(4),c={is:function(e){return this._fsm.is(e)},can:function(e){return this._fsm.can(e)},cannot:function(e){return this._fsm.cannot(e)},observe:function(){return this._fsm.observe(arguments)},transitions:function(){return this._fsm.transitions()},allTransitions:function(){return this._fsm.allTransitions()},allStates:function(){return this._fsm.allStates()},onInvalidTransition:function(e,t,r){return this._fsm.onInvalidTransition(e,t,r)},onPendingTransition:function(e,t,r){return this._fsm.onPendingTransition(e,t,r)}},u={state:{configurable:!1,enumerable:!0,get:function(){return this._fsm.state},set:function(e){throw Error("use transitions to change state")}}};function l(e){return d(this||{},e)}function d(e,t){return f(e,new a(t,l)),e._fsm(),e}function f(e,t){if("object"!=typeof e||Array.isArray(e))throw Error("StateMachine can only be applied to objects");o.build(e,t),Object.defineProperties(e,u),n(e,c),n(e,t.methods),t.allTransitions().forEach((function(t){e[i(t)]=function(){return this._fsm.fire(t,[].slice.call(arguments))}})),e._fsm=function(){this._fsm=new s(this,t),this._fsm.init(arguments)}}l.version="3.0.1",l.factory=function(){var e,t;"function"==typeof arguments[0]?(e=arguments[0],t=arguments[1]||{}):(e=function(){this._fsm.apply(this,arguments)},t=arguments[0]||{});var r=new a(t,l);return f(e.prototype,r),e.prototype._fsm.config=r,e},l.apply=d,l.defaults={wildcard:"*",init:{name:"init",from:"none"}},e.exports=l},function(e,t,r){"use strict";e.exports=function(e,t,r,n,i){this.message=e,this.transition=t,this.from=r,this.to=n,this.current=i}}])},e.exports=t()},97626:(e,t,r)=>{var n=r(40158);e.exports=function(e,t){t=t||{};var r=n.decode(e,t);if(!r)return null;var i=r.payload;if("string"==typeof i)try{var o=JSON.parse(i);null!==o&&"object"==typeof o&&(i=o)}catch(e){}return!0===t.complete?{header:r.header,payload:i,signature:r.signature}:i}},49704:(e,t,r)=>{e.exports={verify:r(17030),sign:r(22506),JsonWebTokenError:r(58619),NotBeforeError:r(71826),TokenExpiredError:r(2340)},Object.defineProperty(e.exports,"decode",{enumerable:!1,value:r(97626)})},58619:e=>{var t=function(e,t){Error.call(this,e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=e,t&&(this.inner=t)};(t.prototype=Object.create(Error.prototype)).constructor=t,e.exports=t},71826:(e,t,r)=>{var n=r(58619),i=function(e,t){n.call(this,e),this.name="NotBeforeError",this.date=t};(i.prototype=Object.create(n.prototype)).constructor=i,e.exports=i},2340:(e,t,r)=>{var n=r(58619),i=function(e,t){n.call(this,e),this.name="TokenExpiredError",this.expiredAt=t};(i.prototype=Object.create(n.prototype)).constructor=i,e.exports=i},85599:(e,t,r)=>{var n=r(34155);const i=r(81249);e.exports=i.satisfies(n.version,">=15.7.0")},14964:(e,t,r)=>{var n=r(34155),i=r(81249);e.exports=i.satisfies(n.version,"^6.12.0 || >=8.0.0")},91564:(e,t,r)=>{var n=r(34155);const i=r(81249);e.exports=i.satisfies(n.version,">=16.9.0")},68034:(e,t,r)=>{var n=r(57824);e.exports=function(e,t){var r=t||Math.floor(Date.now()/1e3);if("string"==typeof e){var i=n(e);if(void 0===i)return;return Math.floor(r+i/1e3)}return"number"==typeof e?r+e:void 0}},47566:(e,t,r)=>{const n=r(85599),i=r(91564),o={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},a={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};e.exports=function(e,t){if(!e||!t)return;const r=t.asymmetricKeyType;if(!r)return;const s=o[r];if(!s)throw new Error(`Unknown key type "${r}".`);if(!s.includes(e))throw new Error(`"alg" parameter for "${r}" key type must be one of: ${s.join(", ")}.`);if(n)switch(r){case"ec":const r=t.asymmetricKeyDetails.namedCurve,n=a[e];if(r!==n)throw new Error(`"alg" parameter "${e}" requires curve "${n}".`);break;case"rsa-pss":if(i){const r=parseInt(e.slice(-3),10),{hashAlgorithm:n,mgf1HashAlgorithm:i,saltLength:o}=t.asymmetricKeyDetails;if(n!==`sha${r}`||i!==n)throw new Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${e}.`);if(void 0!==o&&o>r>>3)throw new Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${e}.`)}}}},22506:(e,t,r)=>{const n=r(68034),i=r(14964),o=r(47566),a=r(40158),{includes:s,isBoolean:c,isInteger:u,isNumber:l,isPlainObject:d,isString:f,once:p}=r(96486),{KeyObject:h,createSecretKey:v,createPrivateKey:m}=r(66507),g=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];i&&g.splice(3,0,"PS256","PS384","PS512");const y={expiresIn:{isValid:function(e){return u(e)||f(e)&&e},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(e){return u(e)||f(e)&&e},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(e){return f(e)||Array.isArray(e)},message:'"audience" must be a string or array'},algorithm:{isValid:s.bind(null,g),message:'"algorithm" must be a valid string enum value'},header:{isValid:d,message:'"header" must be an object'},encoding:{isValid:f,message:'"encoding" must be a string'},issuer:{isValid:f,message:'"issuer" must be a string'},subject:{isValid:f,message:'"subject" must be a string'},jwtid:{isValid:f,message:'"jwtid" must be a string'},noTimestamp:{isValid:c,message:'"noTimestamp" must be a boolean'},keyid:{isValid:f,message:'"keyid" must be a string'},mutatePayload:{isValid:c,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:c,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:c,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}},E={iat:{isValid:l,message:'"iat" should be a number of seconds'},exp:{isValid:l,message:'"exp" should be a number of seconds'},nbf:{isValid:l,message:'"nbf" should be a number of seconds'}};function S(e,t,r,n){if(!d(r))throw new Error('Expected "'+n+'" to be a plain object.');Object.keys(r).forEach((function(i){const o=e[i];if(o){if(!o.isValid(r[i]))throw new Error(o.message)}else if(!t)throw new Error('"'+i+'" is not allowed in "'+n+'"')}))}const _={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},b=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];e.exports=function(e,t,r,i){"function"==typeof r?(i=r,r={}):r=r||{};const s="object"==typeof e&&!Buffer.isBuffer(e),c=Object.assign({alg:r.algorithm||"HS256",typ:s?"JWT":void 0,kid:r.keyid},r.header);function u(e){if(i)return i(e);throw e}if(!t&&"none"!==r.algorithm)return u(new Error("secretOrPrivateKey must have a value"));if(null!=t&&!(t instanceof h))try{t=m(t)}catch(e){try{t=v("string"==typeof t?Buffer.from(t):t)}catch(e){return u(new Error("secretOrPrivateKey is not valid key material"))}}if(c.alg.startsWith("HS")&&"secret"!==t.type)return u(new Error(`secretOrPrivateKey must be a symmetric key when using ${c.alg}`));if(/^(?:RS|PS|ES)/.test(c.alg)){if("private"!==t.type)return u(new Error(`secretOrPrivateKey must be an asymmetric key when using ${c.alg}`));if(!r.allowInsecureKeySizes&&!c.alg.startsWith("ES")&&void 0!==t.asymmetricKeyDetails&&t.asymmetricKeyDetails.modulusLength<2048)return u(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${c.alg}`))}if(void 0===e)return u(new Error("payload is required"));if(s){try{!function(e){S(E,!0,e,"payload")}(e)}catch(e){return u(e)}r.mutatePayload||(e=Object.assign({},e))}else{const t=b.filter((function(e){return void 0!==r[e]}));if(t.length>0)return u(new Error("invalid "+t.join(",")+" option for "+typeof e+" payload"))}if(void 0!==e.exp&&void 0!==r.expiresIn)return u(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(void 0!==e.nbf&&void 0!==r.notBefore)return u(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{!function(e){S(y,!1,e,"options")}(r)}catch(e){return u(e)}if(!r.allowInvalidAsymmetricKeyTypes)try{o(c.alg,t)}catch(e){return u(e)}const l=e.iat||Math.floor(Date.now()/1e3);if(r.noTimestamp?delete e.iat:s&&(e.iat=l),void 0!==r.notBefore){try{e.nbf=n(r.notBefore,l)}catch(e){return u(e)}if(void 0===e.nbf)return u(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(void 0!==r.expiresIn&&"object"==typeof e){try{e.exp=n(r.expiresIn,l)}catch(e){return u(e)}if(void 0===e.exp)return u(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(_).forEach((function(t){const n=_[t];if(void 0!==r[t]){if(void 0!==e[n])return u(new Error('Bad "options.'+t+'" option. The payload already has an "'+n+'" property.'));e[n]=r[t]}}));const d=r.encoding||"utf8";if("function"!=typeof i){let n=a.sign({header:c,payload:e,secret:t,encoding:d});if(!r.allowInsecureKeySizes&&/^(?:RS|PS)/.test(c.alg)&&n.length<256)throw new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${c.alg}`);return n}i=i&&p(i),a.createSign({header:c,privateKey:t,payload:e,encoding:d}).once("error",i).once("done",(function(e){if(!r.allowInsecureKeySizes&&/^(?:RS|PS)/.test(c.alg)&&e.length<256)return i(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${c.alg}`));i(null,e)}))}},17030:(e,t,r)=>{const n=r(58619),i=r(71826),o=r(2340),a=r(97626),s=r(68034),c=r(47566),u=r(14964),l=r(40158),{KeyObject:d,createSecretKey:f,createPublicKey:p}=r(66507),h=["RS256","RS384","RS512"],v=["ES256","ES384","ES512"],m=["RS256","RS384","RS512"],g=["HS256","HS384","HS512"];u&&(h.splice(h.length,0,"PS256","PS384","PS512"),m.splice(m.length,0,"PS256","PS384","PS512")),e.exports=function(e,t,r,u){let y;if("function"!=typeof r||u||(u=r,r={}),r||(r={}),r=Object.assign({},r),y=u||function(e,t){if(e)throw e;return t},r.clockTimestamp&&"number"!=typeof r.clockTimestamp)return y(new n("clockTimestamp must be a number"));if(void 0!==r.nonce&&("string"!=typeof r.nonce||""===r.nonce.trim()))return y(new n("nonce must be a non-empty string"));if(void 0!==r.allowInvalidAsymmetricKeyTypes&&"boolean"!=typeof r.allowInvalidAsymmetricKeyTypes)return y(new n("allowInvalidAsymmetricKeyTypes must be a boolean"));const E=r.clockTimestamp||Math.floor(Date.now()/1e3);if(!e)return y(new n("jwt must be provided"));if("string"!=typeof e)return y(new n("jwt must be a string"));const S=e.split(".");if(3!==S.length)return y(new n("jwt malformed"));let _;try{_=a(e,{complete:!0})}catch(e){return y(e)}if(!_)return y(new n("invalid token"));const b=_.header;let R;if("function"==typeof t){if(!u)return y(new n("verify must be called asynchronous if secret or public key is provided as a callback"));R=t}else R=function(e,r){return r(null,t)};return R(b,(function(t,a){if(t)return y(new n("error in secret or public key callback: "+t.message));const u=""!==S[2].trim();if(!u&&a)return y(new n("jwt signature is required"));if(u&&!a)return y(new n("secret or public key must be provided"));if(!u&&!r.algorithms)return y(new n('please specify "none" in "algorithms" to verify unsigned tokens'));if(null!=a&&!(a instanceof d))try{a=p(a)}catch(e){try{a=f("string"==typeof a?Buffer.from(a):a)}catch(e){return y(new n("secretOrPublicKey is not valid key material"))}}if(r.algorithms||("secret"===a.type?r.algorithms=g:["rsa","rsa-pss"].includes(a.asymmetricKeyType)?r.algorithms=m:"ec"===a.asymmetricKeyType?r.algorithms=v:r.algorithms=h),-1===r.algorithms.indexOf(_.header.alg))return y(new n("invalid algorithm"));if(b.alg.startsWith("HS")&&"secret"!==a.type)return y(new n(`secretOrPublicKey must be a symmetric key when using ${b.alg}`));if(/^(?:RS|PS|ES)/.test(b.alg)&&"public"!==a.type)return y(new n(`secretOrPublicKey must be an asymmetric key when using ${b.alg}`));if(!r.allowInvalidAsymmetricKeyTypes)try{c(b.alg,a)}catch(e){return y(e)}let R;try{R=l.verify(e,_.header.alg,a)}catch(e){return y(e)}if(!R)return y(new n("invalid signature"));const T=_.payload;if(void 0!==T.nbf&&!r.ignoreNotBefore){if("number"!=typeof T.nbf)return y(new n("invalid nbf value"));if(T.nbf>E+(r.clockTolerance||0))return y(new i("jwt not active",new Date(1e3*T.nbf)))}if(void 0!==T.exp&&!r.ignoreExpiration){if("number"!=typeof T.exp)return y(new n("invalid exp value"));if(E>=T.exp+(r.clockTolerance||0))return y(new o("jwt expired",new Date(1e3*T.exp)))}if(r.audience){const e=Array.isArray(r.audience)?r.audience:[r.audience];if(!(Array.isArray(T.aud)?T.aud:[T.aud]).some((function(t){return e.some((function(e){return e instanceof RegExp?e.test(t):e===t}))})))return y(new n("jwt audience invalid. expected: "+e.join(" or ")))}if(r.issuer){if("string"==typeof r.issuer&&T.iss!==r.issuer||Array.isArray(r.issuer)&&-1===r.issuer.indexOf(T.iss))return y(new n("jwt issuer invalid. expected: "+r.issuer))}if(r.subject&&T.sub!==r.subject)return y(new n("jwt subject invalid. expected: "+r.subject));if(r.jwtid&&T.jti!==r.jwtid)return y(new n("jwt jwtid invalid. expected: "+r.jwtid));if(r.nonce&&T.nonce!==r.nonce)return y(new n("jwt nonce invalid. expected: "+r.nonce));if(r.maxAge){if("number"!=typeof T.iat)return y(new n("iat required when maxAge is specified"));const e=s(r.maxAge,T.iat);if(void 0===e)return y(new n('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(E>=e+(r.clockTolerance||0))return y(new o("maxAge exceeded",new Date(1e3*e)))}if(!0===r.complete){const e=_.signature;return y(null,{header:b,payload:T,signature:e})}return y(null,T)}))}},54178:(e,t,r)=>{var n=r(88500),i=r(89509).Buffer,o=r(86035),a=r(35015),s=r(89539),c="secret must be a string or buffer",u="key must be a string or a buffer",l="key must be a string, a buffer or an object",d="function"==typeof o.createPublicKey;function f(e){if(!i.isBuffer(e)&&"string"!=typeof e){if(!d)throw m(u);if("object"!=typeof e)throw m(u);if("string"!=typeof e.type)throw m(u);if("string"!=typeof e.asymmetricKeyType)throw m(u);if("function"!=typeof e.export)throw m(u)}}function p(e){if(!i.isBuffer(e)&&"string"!=typeof e&&"object"!=typeof e)throw m(l)}function h(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function v(e){var t=4-(e=e.toString()).length%4;if(4!==t)for(var r=0;r<t;++r)e+="=";return e.replace(/\-/g,"+").replace(/_/g,"/")}function m(e){var t=[].slice.call(arguments,1),r=s.format.bind(s,e).apply(null,t);return new TypeError(r)}function g(e){var t;return t=e,i.isBuffer(t)||"string"==typeof t||(e=JSON.stringify(e)),e}function y(e){return function(t,r){!function(e){if(!i.isBuffer(e)){if("string"==typeof e)return e;if(!d)throw m(c);if("object"!=typeof e)throw m(c);if("secret"!==e.type)throw m(c);if("function"!=typeof e.export)throw m(c)}}(r),t=g(t);var n=o.createHmac("sha"+e,r);return h((n.update(t),n.digest("base64")))}}function E(e){return function(t,r,o){var a=y(e)(t,o);return n(i.from(r),i.from(a))}}function S(e){return function(t,r){p(r),t=g(t);var n=o.createSign("RSA-SHA"+e);return h((n.update(t),n.sign(r,"base64")))}}function _(e){return function(t,r,n){f(n),t=g(t),r=v(r);var i=o.createVerify("RSA-SHA"+e);return i.update(t),i.verify(n,r,"base64")}}function b(e){return function(t,r){p(r),t=g(t);var n=o.createSign("RSA-SHA"+e);return h((n.update(t),n.sign({key:r,padding:o.constants.RSA_PKCS1_PSS_PADDING,saltLength:o.constants.RSA_PSS_SALTLEN_DIGEST},"base64")))}}function R(e){return function(t,r,n){f(n),t=g(t),r=v(r);var i=o.createVerify("RSA-SHA"+e);return i.update(t),i.verify({key:n,padding:o.constants.RSA_PKCS1_PSS_PADDING,saltLength:o.constants.RSA_PSS_SALTLEN_DIGEST},r,"base64")}}function T(e){var t=S(e);return function(){var r=t.apply(null,arguments);return r=a.derToJose(r,"ES"+e)}}function w(e){var t=_(e);return function(r,n,i){return n=a.joseToDer(n,"ES"+e).toString("base64"),t(r,n,i)}}function I(){return function(){return""}}function x(){return function(e,t){return""===t}}d&&(u+=" or a KeyObject",c+="or a KeyObject"),e.exports=function(e){var t={hs:y,rs:S,ps:b,es:T,none:I},r={hs:E,rs:_,ps:R,es:w,none:x},n=e.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/i);if(!n)throw m('"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".',e);var i=(n[1]||n[3]).toLowerCase(),o=n[2];return{sign:t[i](o),verify:r[i](o)}}},40158:(e,t,r)=>{var n=r(48952),i=r(43079);t.ALGORITHMS=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"],t.sign=n.sign,t.verify=i.verify,t.decode=i.decode,t.isValid=i.isValid,t.createSign=function(e){return new n(e)},t.createVerify=function(e){return new i(e)}},97006:(e,t,r)=>{var n=r(34155),i=r(89509).Buffer,o=r(42830);function a(e){if(this.buffer=null,this.writable=!0,this.readable=!0,!e)return this.buffer=i.alloc(0),this;if("function"==typeof e.pipe)return this.buffer=i.alloc(0),e.pipe(this),this;if(e.length||"object"==typeof e)return this.buffer=e,this.writable=!1,n.nextTick(function(){this.emit("end",e),this.readable=!1,this.emit("close")}.bind(this)),this;throw new TypeError("Unexpected data type ("+typeof e+")")}r(89539).inherits(a,o),a.prototype.write=function(e){this.buffer=i.concat([this.buffer,i.from(e)]),this.emit("data",e)},a.prototype.end=function(e){e&&this.write(e),this.emit("end",e),this.emit("close"),this.writable=!1,this.readable=!1},e.exports=a},48952:(e,t,r)=>{var n=r(89509).Buffer,i=r(97006),o=r(54178),a=r(42830),s=r(32010),c=r(89539);function u(e,t){return n.from(e,t).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function l(e){var t=e.header,r=e.payload,n=e.secret||e.privateKey,i=e.encoding,a=o(t.alg),l=function(e,t,r){r=r||"utf8";var n=u(s(e),"binary"),i=u(s(t),r);return c.format("%s.%s",n,i)}(t,r,i),d=a.sign(l,n);return c.format("%s.%s",l,d)}function d(e){var t=e.secret||e.privateKey||e.key,r=new i(t);this.readable=!0,this.header=e.header,this.encoding=e.encoding,this.secret=this.privateKey=this.key=r,this.payload=new i(e.payload),this.secret.once("close",function(){!this.payload.writable&&this.readable&&this.sign()}.bind(this)),this.payload.once("close",function(){!this.secret.writable&&this.readable&&this.sign()}.bind(this))}c.inherits(d,a),d.prototype.sign=function(){try{var e=l({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",e),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(e){this.readable=!1,this.emit("error",e),this.emit("close")}},d.sign=l,e.exports=d},32010:(e,t,r)=>{var n=r(48764).Buffer;e.exports=function(e){return"string"==typeof e?e:"number"==typeof e||n.isBuffer(e)?e.toString():JSON.stringify(e)}},43079:(e,t,r)=>{var n=r(89509).Buffer,i=r(97006),o=r(54178),a=r(42830),s=r(32010),c=r(89539),u=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function l(e){if(function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e))return e;try{return JSON.parse(e)}catch(e){return}}function d(e){var t=e.split(".",1)[0];return l(n.from(t,"base64").toString("binary"))}function f(e){return e.split(".")[2]}function p(e){return u.test(e)&&!!d(e)}function h(e,t,r){if(!t){var n=new Error("Missing algorithm parameter for jws.verify");throw n.code="MISSING_ALGORITHM",n}var i=f(e=s(e)),a=function(e){return e.split(".",2).join(".")}(e);return o(t).verify(a,i,r)}function v(e,t){if(t=t||{},!p(e=s(e)))return null;var r=d(e);if(!r)return null;var i=function(e,t){t=t||"utf8";var r=e.split(".")[1];return n.from(r,"base64").toString(t)}(e);return("JWT"===r.typ||t.json)&&(i=JSON.parse(i,t.encoding)),{header:r,payload:i,signature:f(e)}}function m(e){var t=(e=e||{}).secret||e.publicKey||e.key,r=new i(t);this.readable=!0,this.algorithm=e.algorithm,this.encoding=e.encoding,this.secret=this.publicKey=this.key=r,this.signature=new i(e.signature),this.secret.once("close",function(){!this.signature.writable&&this.readable&&this.verify()}.bind(this)),this.signature.once("close",function(){!this.secret.writable&&this.readable&&this.verify()}.bind(this))}c.inherits(m,a),m.prototype.verify=function(){try{var e=h(this.signature.buffer,this.algorithm,this.key.buffer),t=v(this.signature.buffer,this.encoding);return this.emit("done",e,t),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(e){this.readable=!1,this.emit("error",e),this.emit("close")}},m.decode=v,m.isValid=p,m.verify=h,e.exports=m},78414:e=>{var t=Array.prototype.slice;function r(e){if("object"!=typeof(e=e||{}))throw new TypeError("Options must be an object");this.storage={},this.separator=e.separator||"."}r.prototype.add=function(e,t){(this.storage[e]||(this.storage[e]=[])).push(t)},r.prototype.remove=function(e){var t,r;for(t in this.storage)(r=this.storage[t]).some((function(t,n){if(t===e)return r.splice(n,1),!0}))},r.prototype.get=function(e){var t,r=[];for(t in this.storage)e&&e!==t&&0!==t.indexOf(e+this.separator)||(r=r.concat(this.storage[t]));return r},r.prototype.getGrouped=function(e){var r,n={};for(r in this.storage)e&&e!==r&&0!==r.indexOf(e+this.separator)||(n[r]=t.call(this.storage[r]));return n},r.prototype.getAll=function(e){var r,n={};for(r in this.storage)e!==r&&0!==r.indexOf(e+this.separator)||(n[r]=t.call(this.storage[r]));return n},r.prototype.run=function(e,r){var n=t.call(arguments,2);this.get(e).forEach((function(e){e.apply(r||this,n)}))},e.exports=r},18552:(e,t,r)=>{var n=r(10852)(r(55639),"DataView");e.exports=n},1989:(e,t,r)=>{var n=r(51789),i=r(80401),o=r(57667),a=r(21327),s=r(81866);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},96425:(e,t,r)=>{var n=r(3118),i=r(9435),o=4294967295;function a(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=o,this.__views__=[]}a.prototype=n(i.prototype),a.prototype.constructor=a,e.exports=a},38407:(e,t,r)=>{var n=r(27040),i=r(14125),o=r(82117),a=r(67518),s=r(54705);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},7548:(e,t,r)=>{var n=r(3118),i=r(9435);function o(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}o.prototype=n(i.prototype),o.prototype.constructor=o,e.exports=o},57071:(e,t,r)=>{var n=r(10852)(r(55639),"Map");e.exports=n},83369:(e,t,r)=>{var n=r(24785),i=r(11285),o=r(96e3),a=r(49916),s=r(95265);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},53818:(e,t,r)=>{var n=r(10852)(r(55639),"Promise");e.exports=n},58525:(e,t,r)=>{var n=r(10852)(r(55639),"Set");e.exports=n},88668:(e,t,r)=>{var n=r(83369),i=r(90619),o=r(72385);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},46384:(e,t,r)=>{var n=r(38407),i=r(37465),o=r(63779),a=r(67599),s=r(44758),c=r(34309);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,e.exports=u},62705:(e,t,r)=>{var n=r(55639).Symbol;e.exports=n},11149:(e,t,r)=>{var n=r(55639).Uint8Array;e.exports=n},70577:(e,t,r)=>{var n=r(10852)(r(55639),"WeakMap");e.exports=n},96874:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},44174:e=>{e.exports=function(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(n,a,r(a),e)}return n}},77412:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},34963:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}},47443:(e,t,r)=>{var n=r(42118);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},1196:e=>{e.exports=function(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}},14636:(e,t,r)=>{var n=r(22545),i=r(35694),o=r(1469),a=r(44144),s=r(65776),c=r(36719),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),l=!r&&i(e),d=!r&&!l&&a(e),f=!r&&!l&&!d&&c(e),p=r||l||d||f,h=p?n(e.length,String):[],v=h.length;for(var m in e)!t&&!u.call(e,m)||p&&("length"==m||d&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,v))||h.push(m);return h}},29932:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}},62488:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}},62663:e=>{e.exports=function(e,t,r,n){var i=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}},82908:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},44286:e=>{e.exports=function(e){return e.split("")}},49029:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},86556:(e,t,r)=>{var n=r(89465),i=r(77813);e.exports=function(e,t,r){(void 0!==r&&!i(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}},34865:(e,t,r)=>{var n=r(89465),i=r(77813),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];o.call(e,t)&&i(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},18470:(e,t,r)=>{var n=r(77813);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},81119:(e,t,r)=>{var n=r(89881);e.exports=function(e,t,r,i){return n(e,(function(e,n,o){t(i,e,r(e),o)})),i}},44037:(e,t,r)=>{var n=r(98363),i=r(3674);e.exports=function(e,t){return e&&n(t,i(t),e)}},63886:(e,t,r)=>{var n=r(98363),i=r(81704);e.exports=function(e,t){return e&&n(t,i(t),e)}},89465:(e,t,r)=>{var n=r(38777);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},85990:(e,t,r)=>{var n=r(46384),i=r(77412),o=r(34865),a=r(44037),s=r(63886),c=r(64626),u=r(278),l=r(18805),d=r(1911),f=r(58234),p=r(46904),h=r(64160),v=r(43824),m=r(29148),g=r(38517),y=r(1469),E=r(44144),S=r(56688),_=r(13218),b=r(72928),R=r(3674),T=r(81704),w=1,I=2,x=4,A="[object Arguments]",C="[object Function]",O="[object GeneratorFunction]",k="[object Object]",N={};N[A]=N["[object Array]"]=N["[object ArrayBuffer]"]=N["[object DataView]"]=N["[object Boolean]"]=N["[object Date]"]=N["[object Float32Array]"]=N["[object Float64Array]"]=N["[object Int8Array]"]=N["[object Int16Array]"]=N["[object Int32Array]"]=N["[object Map]"]=N["[object Number]"]=N[k]=N["[object RegExp]"]=N["[object Set]"]=N["[object String]"]=N["[object Symbol]"]=N["[object Uint8Array]"]=N["[object Uint8ClampedArray]"]=N["[object Uint16Array]"]=N["[object Uint32Array]"]=!0,N["[object Error]"]=N[C]=N["[object WeakMap]"]=!1,e.exports=function e(t,r,L,P,M,D){var U,j=r&w,F=r&I,B=r&x;if(L&&(U=M?L(t,P,M,D):L(t)),void 0!==U)return U;if(!_(t))return t;var Z=y(t);if(Z){if(U=v(t),!j)return u(t,U)}else{var V=h(t),G=V==C||V==O;if(E(t))return c(t,j);if(V==k||V==A||G&&!M){if(U=F||G?{}:g(t),!j)return F?d(t,s(U,t)):l(t,a(U,t))}else{if(!N[V])return M?t:{};U=m(t,V,j)}}D||(D=new n);var q=D.get(t);if(q)return q;D.set(t,U),b(t)?t.forEach((function(n){U.add(e(n,r,L,n,t,D))})):S(t)&&t.forEach((function(n,i){U.set(i,e(n,r,L,i,t,D))}));var H=Z?void 0:(B?F?p:f:F?T:R)(t);return i(H||t,(function(n,i){H&&(n=t[i=n]),o(U,i,e(n,r,L,i,t,D))})),U}},3118:(e,t,r)=>{var n=r(13218),i=Object.create,o=function(){function e(){}return function(t){if(!n(t))return{};if(i)return i(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=o},20731:(e,t,r)=>{var n=r(88668),i=r(47443),o=r(1196),a=r(29932),s=r(7518),c=r(74757),u=200;e.exports=function(e,t,r,l){var d=-1,f=i,p=!0,h=e.length,v=[],m=t.length;if(!h)return v;r&&(t=a(t,s(r))),l?(f=o,p=!1):t.length>=u&&(f=c,p=!1,t=new n(t));e:for(;++d<h;){var g=e[d],y=null==r?g:r(g);if(g=l||0!==g?g:0,p&&y==y){for(var E=m;E--;)if(t[E]===y)continue e;v.push(g)}else f(t,y,l)||v.push(g)}return v}},89881:(e,t,r)=>{var n=r(47816),i=r(99291)(n);e.exports=i},56029:(e,t,r)=>{var n=r(33448);e.exports=function(e,t,r){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=t(a);if(null!=s&&(void 0===c?s==s&&!n(s):r(s,c)))var c=s,u=a}return u}},41848:e=>{e.exports=function(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},21078:(e,t,r)=>{var n=r(62488),i=r(37285);e.exports=function e(t,r,o,a,s){var c=-1,u=t.length;for(o||(o=i),s||(s=[]);++c<u;){var l=t[c];r>0&&o(l)?r>1?e(l,r-1,o,a,s):n(s,l):a||(s[s.length]=l)}return s}},28483:(e,t,r)=>{var n=r(25063)();e.exports=n},47816:(e,t,r)=>{var n=r(28483),i=r(3674);e.exports=function(e,t){return e&&n(e,t,i)}},97786:(e,t,r)=>{var n=r(71811),i=r(40327);e.exports=function(e,t){for(var r=0,o=(t=n(t,e)).length;null!=e&&r<o;)e=e[i(t[r++])];return r&&r==o?e:void 0}},68866:(e,t,r)=>{var n=r(62488),i=r(1469);e.exports=function(e,t,r){var o=t(e);return i(e)?o:n(o,r(e))}},44239:(e,t,r)=>{var n=r(62705),i=r(89607),o=r(2333),a="[object Null]",s="[object Undefined]",c=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:c&&c in Object(e)?i(e):o(e)}},53325:e=>{e.exports=function(e,t){return e>t}},78565:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,r){return null!=e&&t.call(e,r)}},13:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},42118:(e,t,r)=>{var n=r(41848),i=r(62722),o=r(42351);e.exports=function(e,t,r){return t==t?o(e,t,r):n(e,i,r)}},9454:(e,t,r)=>{var n=r(44239),i=r(37005),o="[object Arguments]";e.exports=function(e){return i(e)&&n(e)==o}},41761:(e,t,r)=>{var n=r(44239),i=r(37005),o="[object Date]";e.exports=function(e){return i(e)&&n(e)==o}},90939:(e,t,r)=>{var n=r(2492),i=r(37005);e.exports=function e(t,r,o,a,s){return t===r||(null==t||null==r||!i(t)&&!i(r)?t!=t&&r!=r:n(t,r,o,a,e,s))}},2492:(e,t,r)=>{var n=r(46384),i=r(67114),o=r(18351),a=r(16096),s=r(64160),c=r(1469),u=r(44144),l=r(36719),d=1,f="[object Arguments]",p="[object Array]",h="[object Object]",v=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,g,y){var E=c(e),S=c(t),_=E?p:s(e),b=S?p:s(t),R=(_=_==f?h:_)==h,T=(b=b==f?h:b)==h,w=_==b;if(w&&u(e)){if(!u(t))return!1;E=!0,R=!1}if(w&&!R)return y||(y=new n),E||l(e)?i(e,t,r,m,g,y):o(e,t,_,r,m,g,y);if(!(r&d)){var I=R&&v.call(e,"__wrapped__"),x=T&&v.call(t,"__wrapped__");if(I||x){var A=I?e.value():e,C=x?t.value():t;return y||(y=new n),g(A,C,r,m,y)}}return!!w&&(y||(y=new n),a(e,t,r,m,g,y))}},25588:(e,t,r)=>{var n=r(64160),i=r(37005),o="[object Map]";e.exports=function(e){return i(e)&&n(e)==o}},2958:(e,t,r)=>{var n=r(46384),i=r(90939),o=1,a=2;e.exports=function(e,t,r,s){var c=r.length,u=c,l=!s;if(null==e)return!u;for(e=Object(e);c--;){var d=r[c];if(l&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++c<u;){var f=(d=r[c])[0],p=e[f],h=d[1];if(l&&d[2]){if(void 0===p&&!(f in e))return!1}else{var v=new n;if(s)var m=s(p,h,f,e,t,v);if(!(void 0===m?i(h,p,o|a,s,v):m))return!1}}return!0}},62722:e=>{e.exports=function(e){return e!=e}},28458:(e,t,r)=>{var n=r(23560),i=r(37724),o=r(13218),a=r(80346),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,f=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(n(e)?f:s).test(a(e))}},29221:(e,t,r)=>{var n=r(64160),i=r(37005),o="[object Set]";e.exports=function(e){return i(e)&&n(e)==o}},38749:(e,t,r)=>{var n=r(44239),i=r(41780),o=r(37005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[n(e)]}},67206:(e,t,r)=>{var n=r(91573),i=r(16432),o=r(6557),a=r(1469),s=r(39601);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):n(e):s(e)}},280:(e,t,r)=>{var n=r(25726),i=r(86916),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},10313:(e,t,r)=>{var n=r(13218),i=r(25726),o=r(33498),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=i(e),r=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&r.push(s);return r}},9435:e=>{e.exports=function(){}},91573:(e,t,r)=>{var n=r(2958),i=r(1499),o=r(42634);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},16432:(e,t,r)=>{var n=r(90939),i=r(27361),o=r(79095),a=r(15403),s=r(89162),c=r(42634),u=r(40327),l=1,d=2;e.exports=function(e,t){return a(e)&&s(t)?c(u(e),t):function(r){var a=i(r,e);return void 0===a&&a===t?o(r,e):n(t,a,l|d)}}},49787:(e,t,r)=>{var n=r(67762),i=NaN;e.exports=function(e,t){var r=null==e?0:e.length;return r?n(e,t)/r:i}},42980:(e,t,r)=>{var n=r(46384),i=r(86556),o=r(28483),a=r(59783),s=r(13218),c=r(81704),u=r(36390);e.exports=function e(t,r,l,d,f){t!==r&&o(r,(function(o,c){if(f||(f=new n),s(o))a(t,r,c,l,e,d,f);else{var p=d?d(u(t,c),o,c+"",t,r,f):void 0;void 0===p&&(p=o),i(t,c,p)}}),c)}},59783:(e,t,r)=>{var n=r(86556),i=r(64626),o=r(77133),a=r(278),s=r(38517),c=r(35694),u=r(1469),l=r(29246),d=r(44144),f=r(23560),p=r(13218),h=r(68630),v=r(36719),m=r(36390),g=r(59881);e.exports=function(e,t,r,y,E,S,_){var b=m(e,r),R=m(t,r),T=_.get(R);if(T)n(e,r,T);else{var w=S?S(b,R,r+"",e,t,_):void 0,I=void 0===w;if(I){var x=u(R),A=!x&&d(R),C=!x&&!A&&v(R);w=R,x||A||C?u(b)?w=b:l(b)?w=a(b):A?(I=!1,w=i(R,!0)):C?(I=!1,w=o(R,!0)):w=[]:h(R)||c(R)?(w=b,c(b)?w=g(b):p(b)&&!f(b)||(w=s(R))):I=!1}I&&(_.set(R,w),E(w,R,y,S,_),_.delete(R)),n(e,r,w)}}},25970:(e,t,r)=>{var n=r(63012),i=r(79095);e.exports=function(e,t){return n(e,t,(function(t,r){return i(e,r)}))}},63012:(e,t,r)=>{var n=r(97786),i=r(10611),o=r(71811);e.exports=function(e,t,r){for(var a=-1,s=t.length,c={};++a<s;){var u=t[a],l=n(e,u);r(l,u)&&i(c,o(u,e),l)}return c}},40371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},79152:(e,t,r)=>{var n=r(97786);e.exports=function(e){return function(t){return n(t,e)}}},18674:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},5976:(e,t,r)=>{var n=r(6557),i=r(45357),o=r(30061);e.exports=function(e,t){return o(i(e,t,n),e+"")}},10611:(e,t,r)=>{var n=r(34865),i=r(71811),o=r(65776),a=r(13218),s=r(40327);e.exports=function(e,t,r,c){if(!a(e))return e;for(var u=-1,l=(t=i(t,e)).length,d=l-1,f=e;null!=f&&++u<l;){var p=s(t[u]),h=r;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(u!=d){var v=f[p];void 0===(h=c?c(v,p,f):void 0)&&(h=a(v)?v:o(t[u+1])?[]:{})}n(f,p,h),f=f[p]}return e}},28045:(e,t,r)=>{var n=r(6557),i=r(89250),o=i?function(e,t){return i.set(e,t),e}:n;e.exports=o},56560:(e,t,r)=>{var n=r(75703),i=r(38777),o=r(6557),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:o;e.exports=a},14259:e=>{e.exports=function(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}},67762:e=>{e.exports=function(e,t){for(var r,n=-1,i=e.length;++n<i;){var o=t(e[n]);void 0!==o&&(r=void 0===r?o:r+o)}return r}},22545:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},80531:(e,t,r)=>{var n=r(62705),i=r(29932),o=r(1469),a=r(33448),s=1/0,c=n?n.prototype:void 0,u=c?c.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return u?u.call(t):"";var r=t+"";return"0"==r&&1/t==-s?"-0":r}},27561:(e,t,r)=>{var n=r(67990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},7518:e=>{e.exports=function(e){return function(t){return e(t)}}},45652:(e,t,r)=>{var n=r(88668),i=r(47443),o=r(1196),a=r(74757),s=r(23593),c=r(21814),u=200;e.exports=function(e,t,r){var l=-1,d=i,f=e.length,p=!0,h=[],v=h;if(r)p=!1,d=o;else if(f>=u){var m=t?null:s(e);if(m)return c(m);p=!1,d=a,v=new n}else v=t?[]:h;e:for(;++l<f;){var g=e[l],y=t?t(g):g;if(g=r||0!==g?g:0,p&&y==y){for(var E=v.length;E--;)if(v[E]===y)continue e;t&&v.push(y),h.push(g)}else d(v,y,r)||(v!==h&&v.push(y),h.push(g))}return h}},57406:(e,t,r)=>{var n=r(71811),i=r(10928),o=r(40292),a=r(40327);e.exports=function(e,t){return t=n(t,e),null==(e=o(e,t))||delete e[a(i(t))]}},47415:(e,t,r)=>{var n=r(29932);e.exports=function(e,t){return n(t,(function(t){return e[t]}))}},74757:e=>{e.exports=function(e,t){return e.has(t)}},54290:(e,t,r)=>{var n=r(6557);e.exports=function(e){return"function"==typeof e?e:n}},71811:(e,t,r)=>{var n=r(1469),i=r(15403),o=r(55514),a=r(79833);e.exports=function(e,t){return n(e)?e:i(e,t)?[e]:o(a(e))}},40180:(e,t,r)=>{var n=r(14259);e.exports=function(e,t,r){var i=e.length;return r=void 0===r?i:r,!t&&r>=i?e:n(e,t,r)}},74318:(e,t,r)=>{var n=r(11149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},64626:(e,t,r)=>{e=r.nmd(e);var n=r(55639),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},57157:(e,t,r)=>{var n=r(74318);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},93147:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},40419:(e,t,r)=>{var n=r(62705),i=n?n.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},77133:(e,t,r)=>{var n=r(74318);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},52157:e=>{var t=Math.max;e.exports=function(e,r,n,i){for(var o=-1,a=e.length,s=n.length,c=-1,u=r.length,l=t(a-s,0),d=Array(u+l),f=!i;++c<u;)d[c]=r[c];for(;++o<s;)(f||o<a)&&(d[n[o]]=e[o]);for(;l--;)d[c++]=e[o++];return d}},14054:e=>{var t=Math.max;e.exports=function(e,r,n,i){for(var o=-1,a=e.length,s=-1,c=n.length,u=-1,l=r.length,d=t(a-c,0),f=Array(d+l),p=!i;++o<d;)f[o]=e[o];for(var h=o;++u<l;)f[h+u]=r[u];for(;++s<c;)(p||o<a)&&(f[h+n[s]]=e[o++]);return f}},278:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},98363:(e,t,r)=>{var n=r(34865),i=r(89465);e.exports=function(e,t,r,o){var a=!r;r||(r={});for(var s=-1,c=t.length;++s<c;){var u=t[s],l=o?o(r[u],e[u],u,r,e):void 0;void 0===l&&(l=e[u]),a?i(r,u,l):n(r,u,l)}return r}},18805:(e,t,r)=>{var n=r(98363),i=r(99551);e.exports=function(e,t){return n(e,i(e),t)}},1911:(e,t,r)=>{var n=r(98363),i=r(51442);e.exports=function(e,t){return n(e,i(e),t)}},14429:(e,t,r)=>{var n=r(55639)["__core-js_shared__"];e.exports=n},97991:e=>{e.exports=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}},55189:(e,t,r)=>{var n=r(44174),i=r(81119),o=r(67206),a=r(1469);e.exports=function(e,t){return function(r,s){var c=a(r)?n:i,u=t?t():{};return c(r,e,o(s,2),u)}}},21463:(e,t,r)=>{var n=r(5976),i=r(16612);e.exports=function(e){return n((function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(r[0],r[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var c=r[n];c&&e(t,c,n,a)}return t}))}},99291:(e,t,r)=>{var n=r(98612);e.exports=function(e,t){return function(r,i){if(null==r)return r;if(!n(r))return e(r,i);for(var o=r.length,a=t?o:-1,s=Object(r);(t?a--:++a<o)&&!1!==i(s[a],a,s););return r}}},25063:e=>{e.exports=function(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var c=a[e?s:++i];if(!1===r(o[c],c,o))break}return t}}},22402:(e,t,r)=>{var n=r(71774),i=r(55639),o=1;e.exports=function(e,t,r){var a=t&o,s=n(e);return function t(){return(this&&this!==i&&this instanceof t?s:e).apply(a?r:this,arguments)}}},98805:(e,t,r)=>{var n=r(40180),i=r(62689),o=r(83140),a=r(79833);e.exports=function(e){return function(t){t=a(t);var r=i(t)?o(t):void 0,s=r?r[0]:t.charAt(0),c=r?n(r,1).join(""):t.slice(1);return s[e]()+c}}},35393:(e,t,r)=>{var n=r(62663),i=r(53816),o=r(58748),a=RegExp("['’]","g");e.exports=function(e){return function(t){return n(o(i(t).replace(a,"")),e,"")}}},71774:(e,t,r)=>{var n=r(3118),i=r(13218);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=n(e.prototype),o=e.apply(r,t);return i(o)?o:r}}},46347:(e,t,r)=>{var n=r(96874),i=r(71774),o=r(86935),a=r(94487),s=r(20893),c=r(46460),u=r(55639);e.exports=function(e,t,r){var l=i(e);return function i(){for(var d=arguments.length,f=Array(d),p=d,h=s(i);p--;)f[p]=arguments[p];var v=d<3&&f[0]!==h&&f[d-1]!==h?[]:c(f,h);return(d-=v.length)<r?a(e,t,o,i.placeholder,void 0,f,v,void 0,void 0,r-d):n(this&&this!==u&&this instanceof i?l:e,this,f)}}},67740:(e,t,r)=>{var n=r(67206),i=r(98612),o=r(3674);e.exports=function(e){return function(t,r,a){var s=Object(t);if(!i(t)){var c=n(r,3);t=o(t),r=function(e){return c(s[e],e,s)}}var u=e(t,r,a);return u>-1?s[c?t[u]:u]:void 0}}},86935:(e,t,r)=>{var n=r(52157),i=r(14054),o=r(97991),a=r(71774),s=r(94487),c=r(20893),u=r(90451),l=r(46460),d=r(55639),f=1,p=2,h=8,v=16,m=128,g=512;e.exports=function e(t,r,y,E,S,_,b,R,T,w){var I=r&m,x=r&f,A=r&p,C=r&(h|v),O=r&g,k=A?void 0:a(t);return function f(){for(var p=arguments.length,h=Array(p),v=p;v--;)h[v]=arguments[v];if(C)var m=c(f),g=o(h,m);if(E&&(h=n(h,E,S,C)),_&&(h=i(h,_,b,C)),p-=g,C&&p<w){var N=l(h,m);return s(t,r,e,f.placeholder,y,h,N,R,T,w-p)}var L=x?y:this,P=A?L[t]:t;return p=h.length,R?h=u(h,R):O&&p>1&&h.reverse(),I&&T<p&&(h.length=T),this&&this!==d&&this instanceof f&&(P=k||a(P)),P.apply(L,h)}}},84375:(e,t,r)=>{var n=r(96874),i=r(71774),o=r(55639),a=1;e.exports=function(e,t,r,s){var c=t&a,u=i(e);return function t(){for(var i=-1,a=arguments.length,l=-1,d=s.length,f=Array(d+a),p=this&&this!==o&&this instanceof t?u:e;++l<d;)f[l]=s[l];for(;a--;)f[l++]=arguments[++i];return n(p,c?r:this,f)}}},94487:(e,t,r)=>{var n=r(86528),i=r(258),o=r(69255),a=1,s=2,c=4,u=8,l=32,d=64;e.exports=function(e,t,r,f,p,h,v,m,g,y){var E=t&u;t|=E?l:d,(t&=~(E?d:l))&c||(t&=~(a|s));var S=[e,t,p,E?h:void 0,E?v:void 0,E?void 0:h,E?void 0:v,m,g,y],_=r.apply(void 0,S);return n(e)&&i(_,S),_.placeholder=f,o(_,e,t)}},23593:(e,t,r)=>{var n=r(58525),i=r(50308),o=r(21814),a=n&&1/o(new n([,-0]))[1]==1/0?function(e){return new n(e)}:i;e.exports=a},97727:(e,t,r)=>{var n=r(28045),i=r(22402),o=r(46347),a=r(86935),s=r(84375),c=r(66833),u=r(63833),l=r(258),d=r(69255),f=r(40554),p="Expected a function",h=1,v=2,m=8,g=16,y=32,E=64,S=Math.max;e.exports=function(e,t,r,_,b,R,T,w){var I=t&v;if(!I&&"function"!=typeof e)throw new TypeError(p);var x=_?_.length:0;if(x||(t&=~(y|E),_=b=void 0),T=void 0===T?T:S(f(T),0),w=void 0===w?w:f(w),x-=b?b.length:0,t&E){var A=_,C=b;_=b=void 0}var O=I?void 0:c(e),k=[e,t,r,_,b,A,C,R,T,w];if(O&&u(k,O),e=k[0],t=k[1],r=k[2],_=k[3],b=k[4],!(w=k[9]=void 0===k[9]?I?0:e.length:S(k[9]-x,0))&&t&(m|g)&&(t&=~(m|g)),t&&t!=h)N=t==m||t==g?o(e,t,w):t!=y&&t!=(h|y)||b.length?a.apply(void 0,k):s(e,t,r,_);else var N=i(e,t,r);return d((O?n:l)(N,k),e,t)}},92052:(e,t,r)=>{var n=r(42980),i=r(13218);e.exports=function e(t,r,o,a,s,c){return i(t)&&i(r)&&(c.set(r,t),n(t,r,void 0,e,c),c.delete(r)),t}},60696:(e,t,r)=>{var n=r(68630);e.exports=function(e){return n(e)?void 0:e}},69389:(e,t,r)=>{var n=r(18674)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=n},38777:(e,t,r)=>{var n=r(10852),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},67114:(e,t,r)=>{var n=r(88668),i=r(82908),o=r(74757),a=1,s=2;e.exports=function(e,t,r,c,u,l){var d=r&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var h=l.get(e),v=l.get(t);if(h&&v)return h==t&&v==e;var m=-1,g=!0,y=r&s?new n:void 0;for(l.set(e,t),l.set(t,e);++m<f;){var E=e[m],S=t[m];if(c)var _=d?c(S,E,m,t,e,l):c(E,S,m,e,t,l);if(void 0!==_){if(_)continue;g=!1;break}if(y){if(!i(t,(function(e,t){if(!o(y,t)&&(E===e||u(E,e,r,c,l)))return y.push(t)}))){g=!1;break}}else if(E!==S&&!u(E,S,r,c,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},18351:(e,t,r)=>{var n=r(62705),i=r(11149),o=r(77813),a=r(67114),s=r(68776),c=r(21814),u=1,l=2,d="[object Boolean]",f="[object Date]",p="[object Error]",h="[object Map]",v="[object Number]",m="[object RegExp]",g="[object Set]",y="[object String]",E="[object Symbol]",S="[object ArrayBuffer]",_="[object DataView]",b=n?n.prototype:void 0,R=b?b.valueOf:void 0;e.exports=function(e,t,r,n,b,T,w){switch(r){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case S:return!(e.byteLength!=t.byteLength||!T(new i(e),new i(t)));case d:case f:case v:return o(+e,+t);case p:return e.name==t.name&&e.message==t.message;case m:case y:return e==t+"";case h:var I=s;case g:var x=n&u;if(I||(I=c),e.size!=t.size&&!x)return!1;var A=w.get(e);if(A)return A==t;n|=l,w.set(e,t);var C=a(I(e),I(t),n,b,T,w);return w.delete(e),C;case E:if(R)return R.call(e)==R.call(t)}return!1}},16096:(e,t,r)=>{var n=r(58234),i=1,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,a,s,c){var u=r&i,l=n(e),d=l.length;if(d!=n(t).length&&!u)return!1;for(var f=d;f--;){var p=l[f];if(!(u?p in t:o.call(t,p)))return!1}var h=c.get(e),v=c.get(t);if(h&&v)return h==t&&v==e;var m=!0;c.set(e,t),c.set(t,e);for(var g=u;++f<d;){var y=e[p=l[f]],E=t[p];if(a)var S=u?a(E,y,p,t,e,c):a(y,E,p,e,t,c);if(!(void 0===S?y===E||s(y,E,r,a,c):S)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var _=e.constructor,b=t.constructor;_==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b||(m=!1)}return c.delete(e),c.delete(t),m}},89464:(e,t,r)=>{var n=r(18674)({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});e.exports=n},99021:(e,t,r)=>{var n=r(85564),i=r(45357),o=r(30061);e.exports=function(e){return o(i(e,void 0,n),e+"")}},31957:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},58234:(e,t,r)=>{var n=r(68866),i=r(99551),o=r(3674);e.exports=function(e){return n(e,o,i)}},46904:(e,t,r)=>{var n=r(68866),i=r(51442),o=r(81704);e.exports=function(e){return n(e,o,i)}},66833:(e,t,r)=>{var n=r(89250),i=r(50308),o=n?function(e){return n.get(e)}:i;e.exports=o},97658:(e,t,r)=>{var n=r(52060),i=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",r=n[t],o=i.call(n,t)?r.length:0;o--;){var a=r[o],s=a.func;if(null==s||s==e)return a.name}return t}},20893:e=>{e.exports=function(e){return e.placeholder}},45050:(e,t,r)=>{var n=r(37019);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},1499:(e,t,r)=>{var n=r(89162),i=r(3674);e.exports=function(e){for(var t=i(e),r=t.length;r--;){var o=t[r],a=e[o];t[r]=[o,a,n(a)]}return t}},10852:(e,t,r)=>{var n=r(28458),i=r(47801);e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},85924:(e,t,r)=>{var n=r(5569)(Object.getPrototypeOf,Object);e.exports=n},89607:(e,t,r)=>{var n=r(62705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[s]=r:delete e[s]),i}},99551:(e,t,r)=>{var n=r(34963),i=r(70479),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},51442:(e,t,r)=>{var n=r(62488),i=r(85924),o=r(99551),a=r(70479),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,o(e)),e=i(e);return t}:a;e.exports=s},64160:(e,t,r)=>{var n=r(18552),i=r(57071),o=r(53818),a=r(58525),s=r(70577),c=r(44239),u=r(80346),l="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",v=u(n),m=u(i),g=u(o),y=u(a),E=u(s),S=c;(n&&S(new n(new ArrayBuffer(1)))!=h||i&&S(new i)!=l||o&&S(o.resolve())!=d||a&&S(new a)!=f||s&&S(new s)!=p)&&(S=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case v:return h;case m:return l;case g:return d;case y:return f;case E:return p}return t}),e.exports=S},47801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},58775:e=>{var t=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;e.exports=function(e){var n=e.match(t);return n?n[1].split(r):[]}},222:(e,t,r)=>{var n=r(71811),i=r(35694),o=r(1469),a=r(65776),s=r(41780),c=r(40327);e.exports=function(e,t,r){for(var u=-1,l=(t=n(t,e)).length,d=!1;++u<l;){var f=c(t[u]);if(!(d=null!=e&&r(e,f)))break;e=e[f]}return d||++u!=l?d:!!(l=null==e?0:e.length)&&s(l)&&a(f,l)&&(o(e)||i(e))}},62689:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},93157:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},51789:(e,t,r)=>{var n=r(94536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},80401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},57667:(e,t,r)=>{var n=r(94536),i="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return r===i?void 0:r}return o.call(t,e)?t[e]:void 0}},21327:(e,t,r)=>{var n=r(94536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},81866:(e,t,r)=>{var n=r(94536),i="__lodash_hash_undefined__";e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?i:t,this}},43824:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},29148:(e,t,r)=>{var n=r(74318),i=r(57157),o=r(93147),a=r(40419),s=r(77133),c="[object Boolean]",u="[object Date]",l="[object Map]",d="[object Number]",f="[object RegExp]",p="[object Set]",h="[object String]",v="[object Symbol]",m="[object ArrayBuffer]",g="[object DataView]",y="[object Float32Array]",E="[object Float64Array]",S="[object Int8Array]",_="[object Int16Array]",b="[object Int32Array]",R="[object Uint8Array]",T="[object Uint8ClampedArray]",w="[object Uint16Array]",I="[object Uint32Array]";e.exports=function(e,t,r){var x=e.constructor;switch(t){case m:return n(e);case c:case u:return new x(+e);case g:return i(e,r);case y:case E:case S:case _:case b:case R:case T:case w:case I:return s(e,r);case l:return new x;case d:case h:return new x(e);case f:return o(e);case p:return new x;case v:return a(e)}}},38517:(e,t,r)=>{var n=r(3118),i=r(85924),o=r(25726);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:n(i(e))}},83112:e=>{var t=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;e.exports=function(e,r){var n=r.length;if(!n)return e;var i=n-1;return r[i]=(n>1?"& ":"")+r[i],r=r.join(n>2?", ":" "),e.replace(t,"{\n/* [wrapped with "+r+"] */\n")}},37285:(e,t,r)=>{var n=r(62705),i=r(35694),o=r(1469),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},65776:e=>{var t=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var i=typeof e;return!!(n=null==n?t:n)&&("number"==i||"symbol"!=i&&r.test(e))&&e>-1&&e%1==0&&e<n}},16612:(e,t,r)=>{var n=r(77813),i=r(98612),o=r(65776),a=r(13218);e.exports=function(e,t,r){if(!a(r))return!1;var s=typeof t;return!!("number"==s?i(r)&&o(t,r.length):"string"==s&&t in r)&&n(r[t],e)}},15403:(e,t,r)=>{var n=r(1469),i=r(33448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},37019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},86528:(e,t,r)=>{var n=r(96425),i=r(66833),o=r(97658),a=r(8111);e.exports=function(e){var t=o(e),r=a[t];if("function"!=typeof r||!(t in n.prototype))return!1;if(e===r)return!0;var s=i(r);return!!s&&e===s[0]}},37724:(e,t,r)=>{var n,i=r(14429),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},25726:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},89162:(e,t,r)=>{var n=r(13218);e.exports=function(e){return e==e&&!n(e)}},27040:e=>{e.exports=function(){this.__data__=[],this.size=0}},14125:(e,t,r)=>{var n=r(18470),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():i.call(t,r,1),--this.size,!0)}},82117:(e,t,r)=>{var n=r(18470);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},67518:(e,t,r)=>{var n=r(18470);e.exports=function(e){return n(this.__data__,e)>-1}},54705:(e,t,r)=>{var n=r(18470);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},24785:(e,t,r)=>{var n=r(1989),i=r(38407),o=r(57071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},11285:(e,t,r)=>{var n=r(45050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},96e3:(e,t,r)=>{var n=r(45050);e.exports=function(e){return n(this,e).get(e)}},49916:(e,t,r)=>{var n=r(45050);e.exports=function(e){return n(this,e).has(e)}},95265:(e,t,r)=>{var n=r(45050);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},68776:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},42634:e=>{e.exports=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}},24523:(e,t,r)=>{var n=r(88306),i=500;e.exports=function(e){var t=n(e,(function(e){return r.size===i&&r.clear(),e})),r=t.cache;return t}},63833:(e,t,r)=>{var n=r(52157),i=r(14054),o=r(46460),a="__lodash_placeholder__",s=1,c=2,u=4,l=8,d=128,f=256,p=Math.min;e.exports=function(e,t){var r=e[1],h=t[1],v=r|h,m=v<(s|c|d),g=h==d&&r==l||h==d&&r==f&&e[7].length<=t[8]||h==(d|f)&&t[7].length<=t[8]&&r==l;if(!m&&!g)return e;h&s&&(e[2]=t[2],v|=r&s?0:u);var y=t[3];if(y){var E=e[3];e[3]=E?n(E,y,t[4]):y,e[4]=E?o(e[3],a):t[4]}return(y=t[5])&&(E=e[5],e[5]=E?i(E,y,t[6]):y,e[6]=E?o(e[5],a):t[6]),(y=t[7])&&(e[7]=y),h&d&&(e[8]=null==e[8]?t[8]:p(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=v,e}},89250:(e,t,r)=>{var n=r(70577),i=n&&new n;e.exports=i},94536:(e,t,r)=>{var n=r(10852)(Object,"create");e.exports=n},86916:(e,t,r)=>{var n=r(5569)(Object.keys,Object);e.exports=n},33498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},31167:(e,t,r)=>{e=r.nmd(e);var n=r(31957),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&n.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},45357:(e,t,r)=>{var n=r(96874),i=Math.max;e.exports=function(e,t,r){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),c=Array(s);++a<s;)c[a]=o[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=o[a];return u[t]=r(c),n(e,this,u)}}},40292:(e,t,r)=>{var n=r(97786),i=r(14259);e.exports=function(e,t){return t.length<2?e:n(e,i(t,0,-1))}},52060:e=>{e.exports={}},90451:(e,t,r)=>{var n=r(278),i=r(65776),o=Math.min;e.exports=function(e,t){for(var r=e.length,a=o(t.length,r),s=n(e);a--;){var c=t[a];e[a]=i(c,r)?s[c]:void 0}return e}},46460:e=>{var t="__lodash_placeholder__";e.exports=function(e,r){for(var n=-1,i=e.length,o=0,a=[];++n<i;){var s=e[n];s!==r&&s!==t||(e[n]=t,a[o++]=n)}return a}},55639:(e,t,r)=>{var n=r(31957),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},36390:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},90619:e=>{var t="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,t),this}},72385:e=>{e.exports=function(e){return this.__data__.has(e)}},258:(e,t,r)=>{var n=r(28045),i=r(21275)(n);e.exports=i},21814:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},30061:(e,t,r)=>{var n=r(56560),i=r(21275)(n);e.exports=i},69255:(e,t,r)=>{var n=r(58775),i=r(83112),o=r(30061),a=r(87241);e.exports=function(e,t,r){var s=t+"";return o(e,i(s,a(n(s),r)))}},21275:e=>{var t=800,r=16,n=Date.now;e.exports=function(e){var i=0,o=0;return function(){var a=n(),s=r-(a-o);if(o=a,s>0){if(++i>=t)return arguments[0]}else i=0;return e.apply(void 0,arguments)}}},37465:(e,t,r)=>{var n=r(38407);e.exports=function(){this.__data__=new n,this.size=0}},63779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},67599:e=>{e.exports=function(e){return this.__data__.get(e)}},44758:e=>{e.exports=function(e){return this.__data__.has(e)}},34309:(e,t,r)=>{var n=r(38407),i=r(57071),o=r(83369),a=200;e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!i||s.length<a-1)return s.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(s)}return r.set(e,t),this.size=r.size,this}},42351:e=>{e.exports=function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}},83140:(e,t,r)=>{var n=r(44286),i=r(62689),o=r(676);e.exports=function(e){return i(e)?o(e):n(e)}},55514:(e,t,r)=>{var n=r(24523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,r,n,i){t.push(n?i.replace(o,"$1"):r||e)})),t}));e.exports=a},40327:(e,t,r)=>{var n=r(33448),i=1/0;e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},80346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},67990:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},676:e=>{var t="\\ud800-\\udfff",r="["+t+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+n+"|"+i+")"+"?",u="[\\ufe0e\\ufe0f]?",l=u+c+("(?:\\u200d(?:"+[o,a,s].join("|")+")"+u+c+")*"),d="(?:"+[o+n+"?",n,a,s,r].join("|")+")",f=RegExp(i+"(?="+i+")|"+d+l,"g");e.exports=function(e){return e.match(f)||[]}},2757:e=>{var t="\\ud800-\\udfff",r="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+o+"]",s="\\d+",c="["+r+"]",u="["+n+"]",l="[^"+t+o+s+r+n+i+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+i+"]",h="(?:"+u+"|"+l+")",v="(?:"+p+"|"+l+")",m="(?:['’](?:d|ll|m|re|s|t|ve))?",g="(?:['’](?:D|LL|M|RE|S|T|VE))?",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",E="[\\ufe0e\\ufe0f]?",S=E+y+("(?:\\u200d(?:"+["[^"+t+"]",d,f].join("|")+")"+E+y+")*"),_="(?:"+[c,d,f].join("|")+")"+S,b=RegExp([p+"?"+u+"+"+m+"(?="+[a,p,"$"].join("|")+")",v+"+"+g+"(?="+[a,p+h,"$"].join("|")+")",p+"?"+h+"+"+m,p+"+"+g,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,_].join("|"),"g");e.exports=function(e){return e.match(b)||[]}},87241:(e,t,r)=>{var n=r(77412),i=r(47443),o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return n(o,(function(r){var n="_."+r[0];t&r[1]&&!i(e,n)&&e.push(n)})),e.sort()}},21913:(e,t,r)=>{var n=r(96425),i=r(7548),o=r(278);e.exports=function(e){if(e instanceof n)return e.clone();var t=new i(e.__wrapped__,e.__chain__);return t.__actions__=o(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},28583:(e,t,r)=>{var n=r(34865),i=r(98363),o=r(21463),a=r(98612),s=r(25726),c=r(3674),u=Object.prototype.hasOwnProperty,l=o((function(e,t){if(s(t)||a(t))i(t,c(t),e);else for(var r in t)u.call(t,r)&&n(e,r,t[r])}));e.exports=l},89567:(e,t,r)=>{var n=r(40554),i="Expected a function";e.exports=function(e,t){var r;if("function"!=typeof t)throw new TypeError(i);return e=n(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}},38169:(e,t,r)=>{var n=r(5976),i=r(97727),o=r(20893),a=r(46460),s=n((function(e,t,r){var n=1;if(r.length){var c=a(r,o(s));n|=32}return i(e,n,t,r,c)}));s.placeholder={},e.exports=s},68929:(e,t,r)=>{var n=r(48403),i=r(35393)((function(e,t,r){return t=t.toLowerCase(),e+(r?n(t):t)}));e.exports=i},48403:(e,t,r)=>{var n=r(79833),i=r(11700);e.exports=function(e){return i(n(e).toLowerCase())}},66678:(e,t,r)=>{var n=r(85990),i=4;e.exports=function(e){return n(e,i)}},50361:(e,t,r)=>{var n=r(85990),i=1,o=4;e.exports=function(e){return n(e,i|o)}},75703:e=>{e.exports=function(e){return function(){return e}}},40087:(e,t,r)=>{var n=r(97727),i=8;function o(e,t,r){var a=n(e,i,void 0,void 0,void 0,void 0,void 0,t=r?void 0:t);return a.placeholder=o.placeholder,a}o.placeholder={},e.exports=o},23279:(e,t,r)=>{var n=r(13218),i=r(7771),o=r(14841),a="Expected a function",s=Math.max,c=Math.min;e.exports=function(e,t,r){var u,l,d,f,p,h,v=0,m=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError(a);function E(t){var r=u,n=l;return u=l=void 0,v=t,f=e.apply(n,r)}function S(e){var r=e-h;return void 0===h||r>=t||r<0||g&&e-v>=d}function _(){var e=i();if(S(e))return b(e);p=setTimeout(_,function(e){var r=t-(e-h);return g?c(r,d-(e-v)):r}(e))}function b(e){return p=void 0,y&&u?E(e):(u=l=void 0,f)}function R(){var e=i(),r=S(e);if(u=arguments,l=this,h=e,r){if(void 0===p)return function(e){return v=e,p=setTimeout(_,t),m?E(e):f}(h);if(g)return clearTimeout(p),p=setTimeout(_,t),E(h)}return void 0===p&&(p=setTimeout(_,t)),f}return t=o(t)||0,n(r)&&(m=!!r.leading,d=(g="maxWait"in r)?s(o(r.maxWait)||0,t):d,y="trailing"in r?!!r.trailing:y),R.cancel=function(){void 0!==p&&clearTimeout(p),v=0,u=h=l=p=void 0},R.flush=function(){return void 0===p?f:b(i())},R}},53816:(e,t,r)=>{var n=r(69389),i=r(79833),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,n).replace(a,"")}},91747:(e,t,r)=>{var n=r(5976),i=r(77813),o=r(16612),a=r(81704),s=Object.prototype,c=s.hasOwnProperty,u=n((function(e,t){e=Object(e);var r=-1,n=t.length,u=n>2?t[2]:void 0;for(u&&o(t[0],t[1],u)&&(n=1);++r<n;)for(var l=t[r],d=a(l),f=-1,p=d.length;++f<p;){var h=d[f],v=e[h];(void 0===v||i(v,s[h])&&!c.call(e,h))&&(e[h]=l[h])}return e}));e.exports=u},66913:(e,t,r)=>{var n=r(96874),i=r(5976),o=r(92052),a=r(30236),s=i((function(e){return e.push(void 0,o),n(a,void 0,e)}));e.exports=s},91966:(e,t,r)=>{var n=r(20731),i=r(21078),o=r(5976),a=r(29246),s=o((function(e,t){return a(e)?n(e,i(t,1,a,!0)):[]}));e.exports=s},77813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},7187:(e,t,r)=>{var n=r(89464),i=r(79833),o=/[&<>"']/g,a=RegExp(o.source);e.exports=function(e){return(e=i(e))&&a.test(e)?e.replace(o,n):e}},13311:(e,t,r)=>{var n=r(67740)(r(30998));e.exports=n},30998:(e,t,r)=>{var n=r(41848),i=r(67206),o=r(40554),a=Math.max;e.exports=function(e,t,r){var s=null==e?0:e.length;if(!s)return-1;var c=null==r?0:o(r);return c<0&&(c=a(s+c,0)),n(e,i(t,3),c)}},85564:(e,t,r)=>{var n=r(21078);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},84486:(e,t,r)=>{var n=r(77412),i=r(89881),o=r(54290),a=r(1469);e.exports=function(e,t){return(a(e)?n:i)(e,o(t))}},2525:(e,t,r)=>{var n=r(47816),i=r(54290);e.exports=function(e,t){return e&&n(e,i(t))}},27361:(e,t,r)=>{var n=r(97786);e.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},18721:(e,t,r)=>{var n=r(78565),i=r(222);e.exports=function(e,t){return null!=e&&i(e,t,n)}},79095:(e,t,r)=>{var n=r(13),i=r(222);e.exports=function(e,t){return null!=e&&i(e,t,n)}},6557:e=>{e.exports=function(e){return e}},64721:(e,t,r)=>{var n=r(42118),i=r(98612),o=r(47037),a=r(40554),s=r(52628),c=Math.max;e.exports=function(e,t,r,u){e=i(e)?e:s(e),r=r&&!u?a(r):0;var l=e.length;return r<0&&(r=c(l+r,0)),o(e)?r<=l&&e.indexOf(t,r)>-1:!!l&&n(e,t,r)>-1}},35694:(e,t,r)=>{var n=r(9454),i=r(37005),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},1469:e=>{var t=Array.isArray;e.exports=t},98612:(e,t,r)=>{var n=r(23560),i=r(41780);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},29246:(e,t,r)=>{var n=r(98612),i=r(37005);e.exports=function(e){return i(e)&&n(e)}},44144:(e,t,r)=>{e=r.nmd(e);var n=r(55639),i=r(95062),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?n.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;e.exports=c},47960:(e,t,r)=>{var n=r(41761),i=r(7518),o=r(31167),a=o&&o.isDate,s=a?i(a):n;e.exports=s},41609:(e,t,r)=>{var n=r(280),i=r(64160),o=r(35694),a=r(1469),s=r(98612),c=r(44144),u=r(25726),l=r(36719),d="[object Map]",f="[object Set]",p=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||l(e)||o(e)))return!e.length;var t=i(e);if(t==d||t==f)return!e.size;if(u(e))return!n(e).length;for(var r in e)if(p.call(e,r))return!1;return!0}},18446:(e,t,r)=>{var n=r(90939);e.exports=function(e,t){return n(e,t)}},23560:(e,t,r)=>{var n=r(44239),i=r(13218),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",c="[object Proxy]";e.exports=function(e){if(!i(e))return!1;var t=n(e);return t==a||t==s||t==o||t==c}},41780:e=>{var t=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=t}},56688:(e,t,r)=>{var n=r(25588),i=r(7518),o=r(31167),a=o&&o.isMap,s=a?i(a):n;e.exports=s},81763:(e,t,r)=>{var n=r(44239),i=r(37005),o="[object Number]";e.exports=function(e){return"number"==typeof e||i(e)&&n(e)==o}},13218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},68630:(e,t,r)=>{var n=r(44239),i=r(85924),o=r(37005),a="[object Object]",s=Function.prototype,c=Object.prototype,u=s.toString,l=c.hasOwnProperty,d=u.call(Object);e.exports=function(e){if(!o(e)||n(e)!=a)return!1;var t=i(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==d}},72928:(e,t,r)=>{var n=r(29221),i=r(7518),o=r(31167),a=o&&o.isSet,s=a?i(a):n;e.exports=s},47037:(e,t,r)=>{var n=r(44239),i=r(1469),o=r(37005),a="[object String]";e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&n(e)==a}},33448:(e,t,r)=>{var n=r(44239),i=r(37005),o="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||i(e)&&n(e)==o}},36719:(e,t,r)=>{var n=r(38749),i=r(7518),o=r(31167),a=o&&o.isTypedArray,s=a?i(a):n;e.exports=s},3674:(e,t,r)=>{var n=r(14636),i=r(280),o=r(98612);e.exports=function(e){return o(e)?n(e):i(e)}},81704:(e,t,r)=>{var n=r(14636),i=r(10313),o=r(98612);e.exports=function(e){return o(e)?n(e,!0):i(e)}},10928:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},96486:function(e,t,r){var n;e=r.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",c=16,u=32,l=64,d=128,f=256,p=1/0,h=9007199254740991,v=NaN,m=4294967295,g=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",u],["partialRight",l],["rearg",f]],y="[object Arguments]",E="[object Array]",S="[object Boolean]",_="[object Date]",b="[object Error]",R="[object Function]",T="[object GeneratorFunction]",w="[object Map]",I="[object Number]",x="[object Object]",A="[object Promise]",C="[object RegExp]",O="[object Set]",k="[object String]",N="[object Symbol]",L="[object WeakMap]",P="[object ArrayBuffer]",M="[object DataView]",D="[object Float32Array]",U="[object Float64Array]",j="[object Int8Array]",F="[object Int16Array]",B="[object Int32Array]",Z="[object Uint8Array]",V="[object Uint8ClampedArray]",G="[object Uint16Array]",q="[object Uint32Array]",H=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,Y=RegExp($.source),J=RegExp(K.source),Q=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,re=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ie.source),ae=/^\s+/,se=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ve=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,Ee=/^0o[0-7]+$/i,Se=/^(?:0|[1-9]\d*)$/,_e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,Re=/['\n\r\u2028\u2029\\]/g,Te="\\ud800-\\udfff",we="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ie="\\u2700-\\u27bf",xe="a-z\\xdf-\\xf6\\xf8-\\xff",Ae="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Oe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ke="['’]",Ne="["+Te+"]",Le="["+Oe+"]",Pe="["+we+"]",Me="\\d+",De="["+Ie+"]",Ue="["+xe+"]",je="[^"+Te+Oe+Me+Ie+xe+Ae+"]",Fe="\\ud83c[\\udffb-\\udfff]",Be="[^"+Te+"]",Ze="(?:\\ud83c[\\udde6-\\uddff]){2}",Ve="[\\ud800-\\udbff][\\udc00-\\udfff]",Ge="["+Ae+"]",qe="\\u200d",He="(?:"+Ue+"|"+je+")",We="(?:"+Ge+"|"+je+")",ze="(?:['’](?:d|ll|m|re|s|t|ve))?",$e="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Pe+"|"+Fe+")"+"?",Ye="["+Ce+"]?",Je=Ye+Ke+("(?:"+qe+"(?:"+[Be,Ze,Ve].join("|")+")"+Ye+Ke+")*"),Qe="(?:"+[De,Ze,Ve].join("|")+")"+Je,Xe="(?:"+[Be+Pe+"?",Pe,Ze,Ve,Ne].join("|")+")",et=RegExp(ke,"g"),tt=RegExp(Pe,"g"),rt=RegExp(Fe+"(?="+Fe+")|"+Xe+Je,"g"),nt=RegExp([Ge+"?"+Ue+"+"+ze+"(?="+[Le,Ge,"$"].join("|")+")",We+"+"+$e+"(?="+[Le,Ge+He,"$"].join("|")+")",Ge+"?"+He+"+"+ze,Ge+"+"+$e,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Me,Qe].join("|"),"g"),it=RegExp("["+qe+Te+we+Ce+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],st=-1,ct={};ct[D]=ct[U]=ct[j]=ct[F]=ct[B]=ct[Z]=ct[V]=ct[G]=ct[q]=!0,ct[y]=ct[E]=ct[P]=ct[S]=ct[M]=ct[_]=ct[b]=ct[R]=ct[w]=ct[I]=ct[x]=ct[C]=ct[O]=ct[k]=ct[L]=!1;var ut={};ut[y]=ut[E]=ut[P]=ut[M]=ut[S]=ut[_]=ut[D]=ut[U]=ut[j]=ut[F]=ut[B]=ut[w]=ut[I]=ut[x]=ut[C]=ut[O]=ut[k]=ut[N]=ut[Z]=ut[V]=ut[G]=ut[q]=!0,ut[b]=ut[R]=ut[L]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ft=parseInt,pt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,ht="object"==typeof self&&self&&self.Object===Object&&self,vt=pt||ht||Function("return this")(),mt=t&&!t.nodeType&&t,gt=mt&&e&&!e.nodeType&&e,yt=gt&&gt.exports===mt,Et=yt&&pt.process,St=function(){try{var e=gt&&gt.require&&gt.require("util").types;return e||Et&&Et.binding&&Et.binding("util")}catch(e){}}(),_t=St&&St.isArrayBuffer,bt=St&&St.isDate,Rt=St&&St.isMap,Tt=St&&St.isRegExp,wt=St&&St.isSet,It=St&&St.isTypedArray;function xt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function At(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(n,a,r(a),e)}return n}function Ct(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Ot(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function kt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function Nt(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}function Lt(e,t){return!!(null==e?0:e.length)&&Gt(e,t,0)>-1}function Pt(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function Mt(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function Dt(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function Ut(e,t,r,n){var i=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}function jt(e,t,r,n){var i=null==e?0:e.length;for(n&&i&&(r=e[--i]);i--;)r=t(r,e[i],i,e);return r}function Ft(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Bt=zt("length");function Zt(e,t,r){var n;return r(e,(function(e,r,i){if(t(e,r,i))return n=r,!1})),n}function Vt(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Gt(e,t,r){return t==t?function(e,t,r){var n=r-1,i=e.length;for(;++n<i;)if(e[n]===t)return n;return-1}(e,t,r):Vt(e,Ht,r)}function qt(e,t,r,n){for(var i=r-1,o=e.length;++i<o;)if(n(e[i],t))return i;return-1}function Ht(e){return e!=e}function Wt(e,t){var r=null==e?0:e.length;return r?Yt(e,t)/r:v}function zt(e){return function(t){return null==t?i:t[e]}}function $t(e){return function(t){return null==e?i:e[t]}}function Kt(e,t,r,n,i){return i(e,(function(e,i,o){r=n?(n=!1,e):t(r,e,i,o)})),r}function Yt(e,t){for(var r,n=-1,o=e.length;++n<o;){var a=t(e[n]);a!==i&&(r=r===i?a:r+a)}return r}function Jt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Qt(e){return e?e.slice(0,vr(e)+1).replace(ae,""):e}function Xt(e){return function(t){return e(t)}}function er(e,t){return Mt(t,(function(t){return e[t]}))}function tr(e,t){return e.has(t)}function rr(e,t){for(var r=-1,n=e.length;++r<n&&Gt(t,e[r],0)>-1;);return r}function nr(e,t){for(var r=e.length;r--&&Gt(t,e[r],0)>-1;);return r}var ir=$t({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),or=$t({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function ar(e){return"\\"+lt[e]}function sr(e){return it.test(e)}function cr(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function ur(e,t){return function(r){return e(t(r))}}function lr(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var a=e[r];a!==t&&a!==s||(e[r]=s,o[i++]=r)}return o}function dr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function fr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}function pr(e){return sr(e)?function(e){var t=rt.lastIndex=0;for(;rt.test(e);)++t;return t}(e):Bt(e)}function hr(e){return sr(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.split("")}(e)}function vr(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var mr=$t({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var gr=function e(t){var r,n=(t=null==t?vt:gr.defaults(vt.Object(),t,gr.pick(vt,at))).Array,se=t.Date,Te=t.Error,we=t.Function,Ie=t.Math,xe=t.Object,Ae=t.RegExp,Ce=t.String,Oe=t.TypeError,ke=n.prototype,Ne=we.prototype,Le=xe.prototype,Pe=t["__core-js_shared__"],Me=Ne.toString,De=Le.hasOwnProperty,Ue=0,je=(r=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Fe=Le.toString,Be=Me.call(xe),Ze=vt._,Ve=Ae("^"+Me.call(De).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ge=yt?t.Buffer:i,qe=t.Symbol,He=t.Uint8Array,We=Ge?Ge.allocUnsafe:i,ze=ur(xe.getPrototypeOf,xe),$e=xe.create,Ke=Le.propertyIsEnumerable,Ye=ke.splice,Je=qe?qe.isConcatSpreadable:i,Qe=qe?qe.iterator:i,Xe=qe?qe.toStringTag:i,rt=function(){try{var e=po(xe,"defineProperty");return e({},"",{}),e}catch(e){}}(),it=t.clearTimeout!==vt.clearTimeout&&t.clearTimeout,lt=se&&se.now!==vt.Date.now&&se.now,pt=t.setTimeout!==vt.setTimeout&&t.setTimeout,ht=Ie.ceil,mt=Ie.floor,gt=xe.getOwnPropertySymbols,Et=Ge?Ge.isBuffer:i,St=t.isFinite,Bt=ke.join,$t=ur(xe.keys,xe),yr=Ie.max,Er=Ie.min,Sr=se.now,_r=t.parseInt,br=Ie.random,Rr=ke.reverse,Tr=po(t,"DataView"),wr=po(t,"Map"),Ir=po(t,"Promise"),xr=po(t,"Set"),Ar=po(t,"WeakMap"),Cr=po(xe,"create"),Or=Ar&&new Ar,kr={},Nr=Fo(Tr),Lr=Fo(wr),Pr=Fo(Ir),Mr=Fo(xr),Dr=Fo(Ar),Ur=qe?qe.prototype:i,jr=Ur?Ur.valueOf:i,Fr=Ur?Ur.toString:i;function Br(e){if(rs(e)&&!Ha(e)&&!(e instanceof qr)){if(e instanceof Gr)return e;if(De.call(e,"__wrapped__"))return Bo(e)}return new Gr(e)}var Zr=function(){function e(){}return function(t){if(!ts(t))return{};if($e)return $e(t);e.prototype=t;var r=new e;return e.prototype=i,r}}();function Vr(){}function Gr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function qr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Hr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Wr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function zr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function $r(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new zr;++t<r;)this.add(e[t])}function Kr(e){var t=this.__data__=new Wr(e);this.size=t.size}function Yr(e,t){var r=Ha(e),n=!r&&qa(e),i=!r&&!n&&Ka(e),o=!r&&!n&&!i&&ls(e),a=r||n||i||o,s=a?Jt(e.length,Ce):[],c=s.length;for(var u in e)!t&&!De.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||So(u,c))||s.push(u);return s}function Jr(e){var t=e.length;return t?e[Kn(0,t-1)]:i}function Qr(e,t){return Do(Oi(e),cn(t,0,e.length))}function Xr(e){return Do(Oi(e))}function en(e,t,r){(r!==i&&!Za(e[t],r)||r===i&&!(t in e))&&an(e,t,r)}function tn(e,t,r){var n=e[t];De.call(e,t)&&Za(n,r)&&(r!==i||t in e)||an(e,t,r)}function rn(e,t){for(var r=e.length;r--;)if(Za(e[r][0],t))return r;return-1}function nn(e,t,r,n){return pn(e,(function(e,i,o){t(n,e,r(e),o)})),n}function on(e,t){return e&&ki(t,Ns(t),e)}function an(e,t,r){"__proto__"==t&&rt?rt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function sn(e,t){for(var r=-1,o=t.length,a=n(o),s=null==e;++r<o;)a[r]=s?i:xs(e,t[r]);return a}function cn(e,t,r){return e==e&&(r!==i&&(e=e<=r?e:r),t!==i&&(e=e>=t?e:t)),e}function un(e,t,r,n,o,a){var s,c=1&t,u=2&t,l=4&t;if(r&&(s=o?r(e,n,o,a):r(e)),s!==i)return s;if(!ts(e))return e;var d=Ha(e);if(d){if(s=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&De.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!c)return Oi(e,s)}else{var f=mo(e),p=f==R||f==T;if(Ka(e))return Ti(e,c);if(f==x||f==y||p&&!o){if(s=u||p?{}:yo(e),!c)return u?function(e,t){return ki(e,vo(e),t)}(e,function(e,t){return e&&ki(t,Ls(t),e)}(s,e)):function(e,t){return ki(e,ho(e),t)}(e,on(s,e))}else{if(!ut[f])return o?e:{};s=function(e,t,r){var n=e.constructor;switch(t){case P:return wi(e);case S:case _:return new n(+e);case M:return function(e,t){var r=t?wi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case D:case U:case j:case F:case B:case Z:case V:case G:case q:return Ii(e,r);case w:return new n;case I:case k:return new n(e);case C:return function(e){var t=new e.constructor(e.source,ve.exec(e));return t.lastIndex=e.lastIndex,t}(e);case O:return new n;case N:return i=e,jr?xe(jr.call(i)):{}}var i}(e,f,c)}}a||(a=new Kr);var h=a.get(e);if(h)return h;a.set(e,s),ss(e)?e.forEach((function(n){s.add(un(n,t,r,n,e,a))})):ns(e)&&e.forEach((function(n,i){s.set(i,un(n,t,r,i,e,a))}));var v=d?i:(l?u?oo:io:u?Ls:Ns)(e);return Ct(v||e,(function(n,i){v&&(n=e[i=n]),tn(s,i,un(n,t,r,i,e,a))})),s}function ln(e,t,r){var n=r.length;if(null==e)return!n;for(e=xe(e);n--;){var o=r[n],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function dn(e,t,r){if("function"!=typeof e)throw new Oe(o);return No((function(){e.apply(i,r)}),t)}function fn(e,t,r,n){var i=-1,o=Lt,a=!0,s=e.length,c=[],u=t.length;if(!s)return c;r&&(t=Mt(t,Xt(r))),n?(o=Pt,a=!1):t.length>=200&&(o=tr,a=!1,t=new $r(t));e:for(;++i<s;){var l=e[i],d=null==r?l:r(l);if(l=n||0!==l?l:0,a&&d==d){for(var f=u;f--;)if(t[f]===d)continue e;c.push(l)}else o(t,d,n)||c.push(l)}return c}Br.templateSettings={escape:Q,evaluate:X,interpolate:ee,variable:"",imports:{_:Br}},Br.prototype=Vr.prototype,Br.prototype.constructor=Br,Gr.prototype=Zr(Vr.prototype),Gr.prototype.constructor=Gr,qr.prototype=Zr(Vr.prototype),qr.prototype.constructor=qr,Hr.prototype.clear=function(){this.__data__=Cr?Cr(null):{},this.size=0},Hr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hr.prototype.get=function(e){var t=this.__data__;if(Cr){var r=t[e];return r===a?i:r}return De.call(t,e)?t[e]:i},Hr.prototype.has=function(e){var t=this.__data__;return Cr?t[e]!==i:De.call(t,e)},Hr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Cr&&t===i?a:t,this},Wr.prototype.clear=function(){this.__data__=[],this.size=0},Wr.prototype.delete=function(e){var t=this.__data__,r=rn(t,e);return!(r<0)&&(r==t.length-1?t.pop():Ye.call(t,r,1),--this.size,!0)},Wr.prototype.get=function(e){var t=this.__data__,r=rn(t,e);return r<0?i:t[r][1]},Wr.prototype.has=function(e){return rn(this.__data__,e)>-1},Wr.prototype.set=function(e,t){var r=this.__data__,n=rn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},zr.prototype.clear=function(){this.size=0,this.__data__={hash:new Hr,map:new(wr||Wr),string:new Hr}},zr.prototype.delete=function(e){var t=lo(this,e).delete(e);return this.size-=t?1:0,t},zr.prototype.get=function(e){return lo(this,e).get(e)},zr.prototype.has=function(e){return lo(this,e).has(e)},zr.prototype.set=function(e,t){var r=lo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},$r.prototype.add=$r.prototype.push=function(e){return this.__data__.set(e,a),this},$r.prototype.has=function(e){return this.__data__.has(e)},Kr.prototype.clear=function(){this.__data__=new Wr,this.size=0},Kr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Kr.prototype.get=function(e){return this.__data__.get(e)},Kr.prototype.has=function(e){return this.__data__.has(e)},Kr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Wr){var n=r.__data__;if(!wr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new zr(n)}return r.set(e,t),this.size=r.size,this};var pn=Pi(_n),hn=Pi(bn,!0);function vn(e,t){var r=!0;return pn(e,(function(e,n,i){return r=!!t(e,n,i)})),r}function mn(e,t,r){for(var n=-1,o=e.length;++n<o;){var a=e[n],s=t(a);if(null!=s&&(c===i?s==s&&!us(s):r(s,c)))var c=s,u=a}return u}function gn(e,t){var r=[];return pn(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function yn(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=Eo),i||(i=[]);++o<a;){var s=e[o];t>0&&r(s)?t>1?yn(s,t-1,r,n,i):Dt(i,s):n||(i[i.length]=s)}return i}var En=Mi(),Sn=Mi(!0);function _n(e,t){return e&&En(e,t,Ns)}function bn(e,t){return e&&Sn(e,t,Ns)}function Rn(e,t){return Nt(t,(function(t){return Qa(e[t])}))}function Tn(e,t){for(var r=0,n=(t=Si(t,e)).length;null!=e&&r<n;)e=e[jo(t[r++])];return r&&r==n?e:i}function wn(e,t,r){var n=t(e);return Ha(e)?n:Dt(n,r(e))}function In(e){return null==e?e===i?"[object Undefined]":"[object Null]":Xe&&Xe in xe(e)?function(e){var t=De.call(e,Xe),r=e[Xe];try{e[Xe]=i;var n=!0}catch(e){}var o=Fe.call(e);n&&(t?e[Xe]=r:delete e[Xe]);return o}(e):function(e){return Fe.call(e)}(e)}function xn(e,t){return e>t}function An(e,t){return null!=e&&De.call(e,t)}function Cn(e,t){return null!=e&&t in xe(e)}function On(e,t,r){for(var o=r?Pt:Lt,a=e[0].length,s=e.length,c=s,u=n(s),l=1/0,d=[];c--;){var f=e[c];c&&t&&(f=Mt(f,Xt(t))),l=Er(f.length,l),u[c]=!r&&(t||a>=120&&f.length>=120)?new $r(c&&f):i}f=e[0];var p=-1,h=u[0];e:for(;++p<a&&d.length<l;){var v=f[p],m=t?t(v):v;if(v=r||0!==v?v:0,!(h?tr(h,m):o(d,m,r))){for(c=s;--c;){var g=u[c];if(!(g?tr(g,m):o(e[c],m,r)))continue e}h&&h.push(m),d.push(v)}}return d}function kn(e,t,r){var n=null==(e=Co(e,t=Si(t,e)))?e:e[jo(Jo(t))];return null==n?i:xt(n,e,r)}function Nn(e){return rs(e)&&In(e)==y}function Ln(e,t,r,n,o){return e===t||(null==e||null==t||!rs(e)&&!rs(t)?e!=e&&t!=t:function(e,t,r,n,o,a){var s=Ha(e),c=Ha(t),u=s?E:mo(e),l=c?E:mo(t),d=(u=u==y?x:u)==x,f=(l=l==y?x:l)==x,p=u==l;if(p&&Ka(e)){if(!Ka(t))return!1;s=!0,d=!1}if(p&&!d)return a||(a=new Kr),s||ls(e)?ro(e,t,r,n,o,a):function(e,t,r,n,i,o,a){switch(r){case M:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case P:return!(e.byteLength!=t.byteLength||!o(new He(e),new He(t)));case S:case _:case I:return Za(+e,+t);case b:return e.name==t.name&&e.message==t.message;case C:case k:return e==t+"";case w:var s=cr;case O:var c=1&n;if(s||(s=dr),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;n|=2,a.set(e,t);var l=ro(s(e),s(t),n,i,o,a);return a.delete(e),l;case N:if(jr)return jr.call(e)==jr.call(t)}return!1}(e,t,u,r,n,o,a);if(!(1&r)){var h=d&&De.call(e,"__wrapped__"),v=f&&De.call(t,"__wrapped__");if(h||v){var m=h?e.value():e,g=v?t.value():t;return a||(a=new Kr),o(m,g,r,n,a)}}if(!p)return!1;return a||(a=new Kr),function(e,t,r,n,o,a){var s=1&r,c=io(e),u=c.length,l=io(t),d=l.length;if(u!=d&&!s)return!1;var f=u;for(;f--;){var p=c[f];if(!(s?p in t:De.call(t,p)))return!1}var h=a.get(e),v=a.get(t);if(h&&v)return h==t&&v==e;var m=!0;a.set(e,t),a.set(t,e);var g=s;for(;++f<u;){var y=e[p=c[f]],E=t[p];if(n)var S=s?n(E,y,p,t,e,a):n(y,E,p,e,t,a);if(!(S===i?y===E||o(y,E,r,n,a):S)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var _=e.constructor,b=t.constructor;_==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,r,n,o,a)}(e,t,r,n,Ln,o))}function Pn(e,t,r,n){var o=r.length,a=o,s=!n;if(null==e)return!a;for(e=xe(e);o--;){var c=r[o];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<a;){var u=(c=r[o])[0],l=e[u],d=c[1];if(s&&c[2]){if(l===i&&!(u in e))return!1}else{var f=new Kr;if(n)var p=n(l,d,u,e,t,f);if(!(p===i?Ln(d,l,3,n,f):p))return!1}}return!0}function Mn(e){return!(!ts(e)||(t=e,je&&je in t))&&(Qa(e)?Ve:ye).test(Fo(e));var t}function Dn(e){return"function"==typeof e?e:null==e?ic:"object"==typeof e?Ha(e)?Vn(e[0],e[1]):Zn(e):pc(e)}function Un(e){if(!wo(e))return $t(e);var t=[];for(var r in xe(e))De.call(e,r)&&"constructor"!=r&&t.push(r);return t}function jn(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var r in xe(e))t.push(r);return t}(e);var t=wo(e),r=[];for(var n in e)("constructor"!=n||!t&&De.call(e,n))&&r.push(n);return r}function Fn(e,t){return e<t}function Bn(e,t){var r=-1,i=za(e)?n(e.length):[];return pn(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function Zn(e){var t=fo(e);return 1==t.length&&t[0][2]?xo(t[0][0],t[0][1]):function(r){return r===e||Pn(r,e,t)}}function Vn(e,t){return bo(e)&&Io(t)?xo(jo(e),t):function(r){var n=xs(r,e);return n===i&&n===t?As(r,e):Ln(t,n,3)}}function Gn(e,t,r,n,o){e!==t&&En(t,(function(a,s){if(o||(o=new Kr),ts(a))!function(e,t,r,n,o,a,s){var c=Oo(e,r),u=Oo(t,r),l=s.get(u);if(l)return void en(e,r,l);var d=a?a(c,u,r+"",e,t,s):i,f=d===i;if(f){var p=Ha(u),h=!p&&Ka(u),v=!p&&!h&&ls(u);d=u,p||h||v?Ha(c)?d=c:$a(c)?d=Oi(c):h?(f=!1,d=Ti(u,!0)):v?(f=!1,d=Ii(u,!0)):d=[]:os(u)||qa(u)?(d=c,qa(c)?d=ys(c):ts(c)&&!Qa(c)||(d=yo(u))):f=!1}f&&(s.set(u,d),o(d,u,n,a,s),s.delete(u));en(e,r,d)}(e,t,s,r,Gn,n,o);else{var c=n?n(Oo(e,s),a,s+"",e,t,o):i;c===i&&(c=a),en(e,s,c)}}),Ls)}function qn(e,t){var r=e.length;if(r)return So(t+=t<0?r:0,r)?e[t]:i}function Hn(e,t,r){t=t.length?Mt(t,(function(e){return Ha(e)?function(t){return Tn(t,1===e.length?e[0]:e)}:e})):[ic];var n=-1;t=Mt(t,Xt(uo()));var i=Bn(e,(function(e,r,i){var o=Mt(t,(function(t){return t(e)}));return{criteria:o,index:++n,value:e}}));return function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(i,(function(e,t){return function(e,t,r){var n=-1,i=e.criteria,o=t.criteria,a=i.length,s=r.length;for(;++n<a;){var c=xi(i[n],o[n]);if(c)return n>=s?c:c*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}))}function Wn(e,t,r){for(var n=-1,i=t.length,o={};++n<i;){var a=t[n],s=Tn(e,a);r(s,a)&&ei(o,Si(a,e),s)}return o}function zn(e,t,r,n){var i=n?qt:Gt,o=-1,a=t.length,s=e;for(e===t&&(t=Oi(t)),r&&(s=Mt(e,Xt(r)));++o<a;)for(var c=0,u=t[o],l=r?r(u):u;(c=i(s,l,c,n))>-1;)s!==e&&Ye.call(s,c,1),Ye.call(e,c,1);return e}function $n(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;So(i)?Ye.call(e,i,1):fi(e,i)}}return e}function Kn(e,t){return e+mt(br()*(t-e+1))}function Yn(e,t){var r="";if(!e||t<1||t>h)return r;do{t%2&&(r+=e),(t=mt(t/2))&&(e+=e)}while(t);return r}function Jn(e,t){return Lo(Ao(e,t,ic),e+"")}function Qn(e){return Jr(Zs(e))}function Xn(e,t){var r=Zs(e);return Do(r,cn(t,0,r.length))}function ei(e,t,r,n){if(!ts(e))return e;for(var o=-1,a=(t=Si(t,e)).length,s=a-1,c=e;null!=c&&++o<a;){var u=jo(t[o]),l=r;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(o!=s){var d=c[u];(l=n?n(d,u,c):i)===i&&(l=ts(d)?d:So(t[o+1])?[]:{})}tn(c,u,l),c=c[u]}return e}var ti=Or?function(e,t){return Or.set(e,t),e}:ic,ri=rt?function(e,t){return rt(e,"toString",{configurable:!0,enumerable:!1,value:tc(t),writable:!0})}:ic;function ni(e){return Do(Zs(e))}function ii(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i<o;)a[i]=e[i+t];return a}function oi(e,t){var r;return pn(e,(function(e,n,i){return!(r=t(e,n,i))})),!!r}function ai(e,t,r){var n=0,i=null==e?n:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;n<i;){var o=n+i>>>1,a=e[o];null!==a&&!us(a)&&(r?a<=t:a<t)?n=o+1:i=o}return i}return si(e,t,ic,r)}function si(e,t,r,n){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=r(t))!=t,c=null===t,u=us(t),l=t===i;o<a;){var d=mt((o+a)/2),f=r(e[d]),p=f!==i,h=null===f,v=f==f,m=us(f);if(s)var g=n||v;else g=l?v&&(n||p):c?v&&p&&(n||!h):u?v&&p&&!h&&(n||!m):!h&&!m&&(n?f<=t:f<t);g?o=d+1:a=d}return Er(a,4294967294)}function ci(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var a=e[r],s=t?t(a):a;if(!r||!Za(s,c)){var c=s;o[i++]=0===a?0:a}}return o}function ui(e){return"number"==typeof e?e:us(e)?v:+e}function li(e){if("string"==typeof e)return e;if(Ha(e))return Mt(e,li)+"";if(us(e))return Fr?Fr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function di(e,t,r){var n=-1,i=Lt,o=e.length,a=!0,s=[],c=s;if(r)a=!1,i=Pt;else if(o>=200){var u=t?null:Yi(e);if(u)return dr(u);a=!1,i=tr,c=new $r}else c=t?[]:s;e:for(;++n<o;){var l=e[n],d=t?t(l):l;if(l=r||0!==l?l:0,a&&d==d){for(var f=c.length;f--;)if(c[f]===d)continue e;t&&c.push(d),s.push(l)}else i(c,d,r)||(c!==s&&c.push(d),s.push(l))}return s}function fi(e,t){return null==(e=Co(e,t=Si(t,e)))||delete e[jo(Jo(t))]}function pi(e,t,r,n){return ei(e,t,r(Tn(e,t)),n)}function hi(e,t,r,n){for(var i=e.length,o=n?i:-1;(n?o--:++o<i)&&t(e[o],o,e););return r?ii(e,n?0:o,n?o+1:i):ii(e,n?o+1:0,n?i:o)}function vi(e,t){var r=e;return r instanceof qr&&(r=r.value()),Ut(t,(function(e,t){return t.func.apply(t.thisArg,Dt([e],t.args))}),r)}function mi(e,t,r){var i=e.length;if(i<2)return i?di(e[0]):[];for(var o=-1,a=n(i);++o<i;)for(var s=e[o],c=-1;++c<i;)c!=o&&(a[o]=fn(a[o]||s,e[c],t,r));return di(yn(a,1),t,r)}function gi(e,t,r){for(var n=-1,o=e.length,a=t.length,s={};++n<o;){var c=n<a?t[n]:i;r(s,e[n],c)}return s}function yi(e){return $a(e)?e:[]}function Ei(e){return"function"==typeof e?e:ic}function Si(e,t){return Ha(e)?e:bo(e,t)?[e]:Uo(Es(e))}var _i=Jn;function bi(e,t,r){var n=e.length;return r=r===i?n:r,!t&&r>=n?e:ii(e,t,r)}var Ri=it||function(e){return vt.clearTimeout(e)};function Ti(e,t){if(t)return e.slice();var r=e.length,n=We?We(r):new e.constructor(r);return e.copy(n),n}function wi(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function Ii(e,t){var r=t?wi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function xi(e,t){if(e!==t){var r=e!==i,n=null===e,o=e==e,a=us(e),s=t!==i,c=null===t,u=t==t,l=us(t);if(!c&&!l&&!a&&e>t||a&&s&&u&&!c&&!l||n&&s&&u||!r&&u||!o)return 1;if(!n&&!a&&!l&&e<t||l&&r&&o&&!n&&!a||c&&r&&o||!s&&o||!u)return-1}return 0}function Ai(e,t,r,i){for(var o=-1,a=e.length,s=r.length,c=-1,u=t.length,l=yr(a-s,0),d=n(u+l),f=!i;++c<u;)d[c]=t[c];for(;++o<s;)(f||o<a)&&(d[r[o]]=e[o]);for(;l--;)d[c++]=e[o++];return d}function Ci(e,t,r,i){for(var o=-1,a=e.length,s=-1,c=r.length,u=-1,l=t.length,d=yr(a-c,0),f=n(d+l),p=!i;++o<d;)f[o]=e[o];for(var h=o;++u<l;)f[h+u]=t[u];for(;++s<c;)(p||o<a)&&(f[h+r[s]]=e[o++]);return f}function Oi(e,t){var r=-1,i=e.length;for(t||(t=n(i));++r<i;)t[r]=e[r];return t}function ki(e,t,r,n){var o=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var c=t[a],u=n?n(r[c],e[c],c,r,e):i;u===i&&(u=e[c]),o?an(r,c,u):tn(r,c,u)}return r}function Ni(e,t){return function(r,n){var i=Ha(r)?At:nn,o=t?t():{};return i(r,e,uo(n,2),o)}}function Li(e){return Jn((function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:i,s=o>2?r[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&_o(r[0],r[1],s)&&(a=o<3?i:a,o=1),t=xe(t);++n<o;){var c=r[n];c&&e(t,c,n,a)}return t}))}function Pi(e,t){return function(r,n){if(null==r)return r;if(!za(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=xe(r);(t?o--:++o<i)&&!1!==n(a[o],o,a););return r}}function Mi(e){return function(t,r,n){for(var i=-1,o=xe(t),a=n(t),s=a.length;s--;){var c=a[e?s:++i];if(!1===r(o[c],c,o))break}return t}}function Di(e){return function(t){var r=sr(t=Es(t))?hr(t):i,n=r?r[0]:t.charAt(0),o=r?bi(r,1).join(""):t.slice(1);return n[e]()+o}}function Ui(e){return function(t){return Ut(Qs(qs(t).replace(et,"")),e,"")}}function ji(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Zr(e.prototype),n=e.apply(r,t);return ts(n)?n:r}}function Fi(e){return function(t,r,n){var o=xe(t);if(!za(t)){var a=uo(r,3);t=Ns(t),r=function(e){return a(o[e],e,o)}}var s=e(t,r,n);return s>-1?o[a?t[s]:s]:i}}function Bi(e){return no((function(t){var r=t.length,n=r,a=Gr.prototype.thru;for(e&&t.reverse();n--;){var s=t[n];if("function"!=typeof s)throw new Oe(o);if(a&&!c&&"wrapper"==so(s))var c=new Gr([],!0)}for(n=c?n:r;++n<r;){var u=so(s=t[n]),l="wrapper"==u?ao(s):i;c=l&&Ro(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?c[so(l[0])].apply(c,l[3]):1==s.length&&Ro(s)?c[u]():c.thru(s)}return function(){var e=arguments,n=e[0];if(c&&1==e.length&&Ha(n))return c.plant(n).value();for(var i=0,o=r?t[i].apply(this,e):n;++i<r;)o=t[i].call(this,o);return o}}))}function Zi(e,t,r,o,a,s,c,u,l,f){var p=t&d,h=1&t,v=2&t,m=24&t,g=512&t,y=v?i:ji(e);return function d(){for(var E=arguments.length,S=n(E),_=E;_--;)S[_]=arguments[_];if(m)var b=co(d),R=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(S,b);if(o&&(S=Ai(S,o,a,m)),s&&(S=Ci(S,s,c,m)),E-=R,m&&E<f){var T=lr(S,b);return $i(e,t,Zi,d.placeholder,r,S,T,u,l,f-E)}var w=h?r:this,I=v?w[e]:e;return E=S.length,u?S=function(e,t){var r=e.length,n=Er(t.length,r),o=Oi(e);for(;n--;){var a=t[n];e[n]=So(a,r)?o[a]:i}return e}(S,u):g&&E>1&&S.reverse(),p&&l<E&&(S.length=l),this&&this!==vt&&this instanceof d&&(I=y||ji(I)),I.apply(w,S)}}function Vi(e,t){return function(r,n){return function(e,t,r,n){return _n(e,(function(e,i,o){t(n,r(e),i,o)})),n}(r,e,t(n),{})}}function Gi(e,t){return function(r,n){var o;if(r===i&&n===i)return t;if(r!==i&&(o=r),n!==i){if(o===i)return n;"string"==typeof r||"string"==typeof n?(r=li(r),n=li(n)):(r=ui(r),n=ui(n)),o=e(r,n)}return o}}function qi(e){return no((function(t){return t=Mt(t,Xt(uo())),Jn((function(r){var n=this;return e(t,(function(e){return xt(e,n,r)}))}))}))}function Hi(e,t){var r=(t=t===i?" ":li(t)).length;if(r<2)return r?Yn(t,e):t;var n=Yn(t,ht(e/pr(t)));return sr(t)?bi(hr(n),0,e).join(""):n.slice(0,e)}function Wi(e){return function(t,r,o){return o&&"number"!=typeof o&&_o(t,r,o)&&(r=o=i),t=hs(t),r===i?(r=t,t=0):r=hs(r),function(e,t,r,i){for(var o=-1,a=yr(ht((t-e)/(r||1)),0),s=n(a);a--;)s[i?a:++o]=e,e+=r;return s}(t,r,o=o===i?t<r?1:-1:hs(o),e)}}function zi(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=gs(t),r=gs(r)),e(t,r)}}function $i(e,t,r,n,o,a,s,c,d,f){var p=8&t;t|=p?u:l,4&(t&=~(p?l:u))||(t&=-4);var h=[e,t,o,p?a:i,p?s:i,p?i:a,p?i:s,c,d,f],v=r.apply(i,h);return Ro(e)&&ko(v,h),v.placeholder=n,Po(v,e,t)}function Ki(e){var t=Ie[e];return function(e,r){if(e=gs(e),(r=null==r?0:Er(vs(r),292))&&St(e)){var n=(Es(e)+"e").split("e");return+((n=(Es(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Yi=xr&&1/dr(new xr([,-0]))[1]==p?function(e){return new xr(e)}:uc;function Ji(e){return function(t){var r=mo(t);return r==w?cr(t):r==O?fr(t):function(e,t){return Mt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qi(e,t,r,a,p,h,v,m){var g=2&t;if(!g&&"function"!=typeof e)throw new Oe(o);var y=a?a.length:0;if(y||(t&=-97,a=p=i),v=v===i?v:yr(vs(v),0),m=m===i?m:vs(m),y-=p?p.length:0,t&l){var E=a,S=p;a=p=i}var _=g?i:ao(e),b=[e,t,r,a,p,E,S,h,v,m];if(_&&function(e,t){var r=e[1],n=t[1],i=r|n,o=i<131,a=n==d&&8==r||n==d&&r==f&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!o&&!a)return e;1&n&&(e[2]=t[2],i|=1&r?0:4);var c=t[3];if(c){var u=e[3];e[3]=u?Ai(u,c,t[4]):c,e[4]=u?lr(e[3],s):t[4]}(c=t[5])&&(u=e[5],e[5]=u?Ci(u,c,t[6]):c,e[6]=u?lr(e[5],s):t[6]);(c=t[7])&&(e[7]=c);n&d&&(e[8]=null==e[8]?t[8]:Er(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(b,_),e=b[0],t=b[1],r=b[2],a=b[3],p=b[4],!(m=b[9]=b[9]===i?g?0:e.length:yr(b[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)R=8==t||t==c?function(e,t,r){var o=ji(e);return function a(){for(var s=arguments.length,c=n(s),u=s,l=co(a);u--;)c[u]=arguments[u];var d=s<3&&c[0]!==l&&c[s-1]!==l?[]:lr(c,l);return(s-=d.length)<r?$i(e,t,Zi,a.placeholder,i,c,d,i,i,r-s):xt(this&&this!==vt&&this instanceof a?o:e,this,c)}}(e,t,m):t!=u&&33!=t||p.length?Zi.apply(i,b):function(e,t,r,i){var o=1&t,a=ji(e);return function t(){for(var s=-1,c=arguments.length,u=-1,l=i.length,d=n(l+c),f=this&&this!==vt&&this instanceof t?a:e;++u<l;)d[u]=i[u];for(;c--;)d[u++]=arguments[++s];return xt(f,o?r:this,d)}}(e,t,r,a);else var R=function(e,t,r){var n=1&t,i=ji(e);return function t(){return(this&&this!==vt&&this instanceof t?i:e).apply(n?r:this,arguments)}}(e,t,r);return Po((_?ti:ko)(R,b),e,t)}function Xi(e,t,r,n){return e===i||Za(e,Le[r])&&!De.call(n,r)?t:e}function eo(e,t,r,n,o,a){return ts(e)&&ts(t)&&(a.set(t,e),Gn(e,t,i,eo,a),a.delete(t)),e}function to(e){return os(e)?i:e}function ro(e,t,r,n,o,a){var s=1&r,c=e.length,u=t.length;if(c!=u&&!(s&&u>c))return!1;var l=a.get(e),d=a.get(t);if(l&&d)return l==t&&d==e;var f=-1,p=!0,h=2&r?new $r:i;for(a.set(e,t),a.set(t,e);++f<c;){var v=e[f],m=t[f];if(n)var g=s?n(m,v,f,t,e,a):n(v,m,f,e,t,a);if(g!==i){if(g)continue;p=!1;break}if(h){if(!Ft(t,(function(e,t){if(!tr(h,t)&&(v===e||o(v,e,r,n,a)))return h.push(t)}))){p=!1;break}}else if(v!==m&&!o(v,m,r,n,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function no(e){return Lo(Ao(e,i,Wo),e+"")}function io(e){return wn(e,Ns,ho)}function oo(e){return wn(e,Ls,vo)}var ao=Or?function(e){return Or.get(e)}:uc;function so(e){for(var t=e.name+"",r=kr[t],n=De.call(kr,t)?r.length:0;n--;){var i=r[n],o=i.func;if(null==o||o==e)return i.name}return t}function co(e){return(De.call(Br,"placeholder")?Br:e).placeholder}function uo(){var e=Br.iteratee||oc;return e=e===oc?Dn:e,arguments.length?e(arguments[0],arguments[1]):e}function lo(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function fo(e){for(var t=Ns(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Io(i)]}return t}function po(e,t){var r=function(e,t){return null==e?i:e[t]}(e,t);return Mn(r)?r:i}var ho=gt?function(e){return null==e?[]:(e=xe(e),Nt(gt(e),(function(t){return Ke.call(e,t)})))}:mc,vo=gt?function(e){for(var t=[];e;)Dt(t,ho(e)),e=ze(e);return t}:mc,mo=In;function go(e,t,r){for(var n=-1,i=(t=Si(t,e)).length,o=!1;++n<i;){var a=jo(t[n]);if(!(o=null!=e&&r(e,a)))break;e=e[a]}return o||++n!=i?o:!!(i=null==e?0:e.length)&&es(i)&&So(a,i)&&(Ha(e)||qa(e))}function yo(e){return"function"!=typeof e.constructor||wo(e)?{}:Zr(ze(e))}function Eo(e){return Ha(e)||qa(e)||!!(Je&&e&&e[Je])}function So(e,t){var r=typeof e;return!!(t=null==t?h:t)&&("number"==r||"symbol"!=r&&Se.test(e))&&e>-1&&e%1==0&&e<t}function _o(e,t,r){if(!ts(r))return!1;var n=typeof t;return!!("number"==n?za(r)&&So(t,r.length):"string"==n&&t in r)&&Za(r[t],e)}function bo(e,t){if(Ha(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!us(e))||(re.test(e)||!te.test(e)||null!=t&&e in xe(t))}function Ro(e){var t=so(e),r=Br[t];if("function"!=typeof r||!(t in qr.prototype))return!1;if(e===r)return!0;var n=ao(r);return!!n&&e===n[0]}(Tr&&mo(new Tr(new ArrayBuffer(1)))!=M||wr&&mo(new wr)!=w||Ir&&mo(Ir.resolve())!=A||xr&&mo(new xr)!=O||Ar&&mo(new Ar)!=L)&&(mo=function(e){var t=In(e),r=t==x?e.constructor:i,n=r?Fo(r):"";if(n)switch(n){case Nr:return M;case Lr:return w;case Pr:return A;case Mr:return O;case Dr:return L}return t});var To=Pe?Qa:gc;function wo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Le)}function Io(e){return e==e&&!ts(e)}function xo(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==i||e in xe(r)))}}function Ao(e,t,r){return t=yr(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=yr(i.length-t,0),s=n(a);++o<a;)s[o]=i[t+o];o=-1;for(var c=n(t+1);++o<t;)c[o]=i[o];return c[t]=r(s),xt(e,this,c)}}function Co(e,t){return t.length<2?e:Tn(e,ii(t,0,-1))}function Oo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ko=Mo(ti),No=pt||function(e,t){return vt.setTimeout(e,t)},Lo=Mo(ri);function Po(e,t,r){var n=t+"";return Lo(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Ct(g,(function(r){var n="_."+r[0];t&r[1]&&!Lt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(le):[]}(n),r)))}function Mo(e){var t=0,r=0;return function(){var n=Sr(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Do(e,t){var r=-1,n=e.length,o=n-1;for(t=t===i?n:t;++r<t;){var a=Kn(r,o),s=e[a];e[a]=e[r],e[r]=s}return e.length=t,e}var Uo=function(e){var t=Ma(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ne,(function(e,r,n,i){t.push(n?i.replace(pe,"$1"):r||e)})),t}));function jo(e){if("string"==typeof e||us(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fo(e){if(null!=e){try{return Me.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Bo(e){if(e instanceof qr)return e.clone();var t=new Gr(e.__wrapped__,e.__chain__);return t.__actions__=Oi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Zo=Jn((function(e,t){return $a(e)?fn(e,yn(t,1,$a,!0)):[]})),Vo=Jn((function(e,t){var r=Jo(t);return $a(r)&&(r=i),$a(e)?fn(e,yn(t,1,$a,!0),uo(r,2)):[]})),Go=Jn((function(e,t){var r=Jo(t);return $a(r)&&(r=i),$a(e)?fn(e,yn(t,1,$a,!0),i,r):[]}));function qo(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:vs(r);return i<0&&(i=yr(n+i,0)),Vt(e,uo(t,3),i)}function Ho(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n-1;return r!==i&&(o=vs(r),o=r<0?yr(n+o,0):Er(o,n-1)),Vt(e,uo(t,3),o,!0)}function Wo(e){return(null==e?0:e.length)?yn(e,1):[]}function zo(e){return e&&e.length?e[0]:i}var $o=Jn((function(e){var t=Mt(e,yi);return t.length&&t[0]===e[0]?On(t):[]})),Ko=Jn((function(e){var t=Jo(e),r=Mt(e,yi);return t===Jo(r)?t=i:r.pop(),r.length&&r[0]===e[0]?On(r,uo(t,2)):[]})),Yo=Jn((function(e){var t=Jo(e),r=Mt(e,yi);return(t="function"==typeof t?t:i)&&r.pop(),r.length&&r[0]===e[0]?On(r,i,t):[]}));function Jo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Qo=Jn(Xo);function Xo(e,t){return e&&e.length&&t&&t.length?zn(e,t):e}var ea=no((function(e,t){var r=null==e?0:e.length,n=sn(e,t);return $n(e,Mt(t,(function(e){return So(e,r)?+e:e})).sort(xi)),n}));function ta(e){return null==e?e:Rr.call(e)}var ra=Jn((function(e){return di(yn(e,1,$a,!0))})),na=Jn((function(e){var t=Jo(e);return $a(t)&&(t=i),di(yn(e,1,$a,!0),uo(t,2))})),ia=Jn((function(e){var t=Jo(e);return t="function"==typeof t?t:i,di(yn(e,1,$a,!0),i,t)}));function oa(e){if(!e||!e.length)return[];var t=0;return e=Nt(e,(function(e){if($a(e))return t=yr(e.length,t),!0})),Jt(t,(function(t){return Mt(e,zt(t))}))}function aa(e,t){if(!e||!e.length)return[];var r=oa(e);return null==t?r:Mt(r,(function(e){return xt(t,i,e)}))}var sa=Jn((function(e,t){return $a(e)?fn(e,t):[]})),ca=Jn((function(e){return mi(Nt(e,$a))})),ua=Jn((function(e){var t=Jo(e);return $a(t)&&(t=i),mi(Nt(e,$a),uo(t,2))})),la=Jn((function(e){var t=Jo(e);return t="function"==typeof t?t:i,mi(Nt(e,$a),i,t)})),da=Jn(oa);var fa=Jn((function(e){var t=e.length,r=t>1?e[t-1]:i;return r="function"==typeof r?(e.pop(),r):i,aa(e,r)}));function pa(e){var t=Br(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var va=no((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,o=function(t){return sn(t,e)};return!(t>1||this.__actions__.length)&&n instanceof qr&&So(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:ha,args:[o],thisArg:i}),new Gr(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)}));var ma=Ni((function(e,t,r){De.call(e,r)?++e[r]:an(e,r,1)}));var ga=Fi(qo),ya=Fi(Ho);function Ea(e,t){return(Ha(e)?Ct:pn)(e,uo(t,3))}function Sa(e,t){return(Ha(e)?Ot:hn)(e,uo(t,3))}var _a=Ni((function(e,t,r){De.call(e,r)?e[r].push(t):an(e,r,[t])}));var ba=Jn((function(e,t,r){var i=-1,o="function"==typeof t,a=za(e)?n(e.length):[];return pn(e,(function(e){a[++i]=o?xt(t,e,r):kn(e,t,r)})),a})),Ra=Ni((function(e,t,r){an(e,r,t)}));function Ta(e,t){return(Ha(e)?Mt:Bn)(e,uo(t,3))}var wa=Ni((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var Ia=Jn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&_o(e,t[0],t[1])?t=[]:r>2&&_o(t[0],t[1],t[2])&&(t=[t[0]]),Hn(e,yn(t,1),[])})),xa=lt||function(){return vt.Date.now()};function Aa(e,t,r){return t=r?i:t,t=e&&null==t?e.length:t,Qi(e,d,i,i,i,i,t)}function Ca(e,t){var r;if("function"!=typeof t)throw new Oe(o);return e=vs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var Oa=Jn((function(e,t,r){var n=1;if(r.length){var i=lr(r,co(Oa));n|=u}return Qi(e,n,t,r,i)})),ka=Jn((function(e,t,r){var n=3;if(r.length){var i=lr(r,co(ka));n|=u}return Qi(t,n,e,r,i)}));function Na(e,t,r){var n,a,s,c,u,l,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new Oe(o);function v(t){var r=n,o=a;return n=a=i,d=t,c=e.apply(o,r)}function m(e){var r=e-l;return l===i||r>=t||r<0||p&&e-d>=s}function g(){var e=xa();if(m(e))return y(e);u=No(g,function(e){var r=t-(e-l);return p?Er(r,s-(e-d)):r}(e))}function y(e){return u=i,h&&n?v(e):(n=a=i,c)}function E(){var e=xa(),r=m(e);if(n=arguments,a=this,l=e,r){if(u===i)return function(e){return d=e,u=No(g,t),f?v(e):c}(l);if(p)return Ri(u),u=No(g,t),v(l)}return u===i&&(u=No(g,t)),c}return t=gs(t)||0,ts(r)&&(f=!!r.leading,s=(p="maxWait"in r)?yr(gs(r.maxWait)||0,t):s,h="trailing"in r?!!r.trailing:h),E.cancel=function(){u!==i&&Ri(u),d=0,n=l=a=u=i},E.flush=function(){return u===i?c:y(xa())},E}var La=Jn((function(e,t){return dn(e,1,t)})),Pa=Jn((function(e,t,r){return dn(e,gs(t)||0,r)}));function Ma(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Oe(o);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Ma.Cache||zr),r}function Da(e){if("function"!=typeof e)throw new Oe(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ma.Cache=zr;var Ua=_i((function(e,t){var r=(t=1==t.length&&Ha(t[0])?Mt(t[0],Xt(uo())):Mt(yn(t,1),Xt(uo()))).length;return Jn((function(n){for(var i=-1,o=Er(n.length,r);++i<o;)n[i]=t[i].call(this,n[i]);return xt(e,this,n)}))})),ja=Jn((function(e,t){var r=lr(t,co(ja));return Qi(e,u,i,t,r)})),Fa=Jn((function(e,t){var r=lr(t,co(Fa));return Qi(e,l,i,t,r)})),Ba=no((function(e,t){return Qi(e,f,i,i,i,t)}));function Za(e,t){return e===t||e!=e&&t!=t}var Va=zi(xn),Ga=zi((function(e,t){return e>=t})),qa=Nn(function(){return arguments}())?Nn:function(e){return rs(e)&&De.call(e,"callee")&&!Ke.call(e,"callee")},Ha=n.isArray,Wa=_t?Xt(_t):function(e){return rs(e)&&In(e)==P};function za(e){return null!=e&&es(e.length)&&!Qa(e)}function $a(e){return rs(e)&&za(e)}var Ka=Et||gc,Ya=bt?Xt(bt):function(e){return rs(e)&&In(e)==_};function Ja(e){if(!rs(e))return!1;var t=In(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!os(e)}function Qa(e){if(!ts(e))return!1;var t=In(e);return t==R||t==T||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xa(e){return"number"==typeof e&&e==vs(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function rs(e){return null!=e&&"object"==typeof e}var ns=Rt?Xt(Rt):function(e){return rs(e)&&mo(e)==w};function is(e){return"number"==typeof e||rs(e)&&In(e)==I}function os(e){if(!rs(e)||In(e)!=x)return!1;var t=ze(e);if(null===t)return!0;var r=De.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Me.call(r)==Be}var as=Tt?Xt(Tt):function(e){return rs(e)&&In(e)==C};var ss=wt?Xt(wt):function(e){return rs(e)&&mo(e)==O};function cs(e){return"string"==typeof e||!Ha(e)&&rs(e)&&In(e)==k}function us(e){return"symbol"==typeof e||rs(e)&&In(e)==N}var ls=It?Xt(It):function(e){return rs(e)&&es(e.length)&&!!ct[In(e)]};var ds=zi(Fn),fs=zi((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(za(e))return cs(e)?hr(e):Oi(e);if(Qe&&e[Qe])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Qe]());var t=mo(e);return(t==w?cr:t==O?dr:Zs)(e)}function hs(e){return e?(e=gs(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vs(e){var t=hs(e),r=t%1;return t==t?r?t-r:t:0}function ms(e){return e?cn(vs(e),0,m):0}function gs(e){if("number"==typeof e)return e;if(us(e))return v;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var r=ge.test(e);return r||Ee.test(e)?ft(e.slice(2),r?2:8):me.test(e)?v:+e}function ys(e){return ki(e,Ls(e))}function Es(e){return null==e?"":li(e)}var Ss=Li((function(e,t){if(wo(t)||za(t))ki(t,Ns(t),e);else for(var r in t)De.call(t,r)&&tn(e,r,t[r])})),_s=Li((function(e,t){ki(t,Ls(t),e)})),bs=Li((function(e,t,r,n){ki(t,Ls(t),e,n)})),Rs=Li((function(e,t,r,n){ki(t,Ns(t),e,n)})),Ts=no(sn);var ws=Jn((function(e,t){e=xe(e);var r=-1,n=t.length,o=n>2?t[2]:i;for(o&&_o(t[0],t[1],o)&&(n=1);++r<n;)for(var a=t[r],s=Ls(a),c=-1,u=s.length;++c<u;){var l=s[c],d=e[l];(d===i||Za(d,Le[l])&&!De.call(e,l))&&(e[l]=a[l])}return e})),Is=Jn((function(e){return e.push(i,eo),xt(Ms,i,e)}));function xs(e,t,r){var n=null==e?i:Tn(e,t);return n===i?r:n}function As(e,t){return null!=e&&go(e,t,Cn)}var Cs=Vi((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=r}),tc(ic)),Os=Vi((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),De.call(e,t)?e[t].push(r):e[t]=[r]}),uo),ks=Jn(kn);function Ns(e){return za(e)?Yr(e):Un(e)}function Ls(e){return za(e)?Yr(e,!0):jn(e)}var Ps=Li((function(e,t,r){Gn(e,t,r)})),Ms=Li((function(e,t,r,n){Gn(e,t,r,n)})),Ds=no((function(e,t){var r={};if(null==e)return r;var n=!1;t=Mt(t,(function(t){return t=Si(t,e),n||(n=t.length>1),t})),ki(e,oo(e),r),n&&(r=un(r,7,to));for(var i=t.length;i--;)fi(r,t[i]);return r}));var Us=no((function(e,t){return null==e?{}:function(e,t){return Wn(e,t,(function(t,r){return As(e,r)}))}(e,t)}));function js(e,t){if(null==e)return{};var r=Mt(oo(e),(function(e){return[e]}));return t=uo(t),Wn(e,r,(function(e,r){return t(e,r[0])}))}var Fs=Ji(Ns),Bs=Ji(Ls);function Zs(e){return null==e?[]:er(e,Ns(e))}var Vs=Ui((function(e,t,r){return t=t.toLowerCase(),e+(r?Gs(t):t)}));function Gs(e){return Js(Es(e).toLowerCase())}function qs(e){return(e=Es(e))&&e.replace(_e,ir).replace(tt,"")}var Hs=Ui((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Ws=Ui((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),zs=Di("toLowerCase");var $s=Ui((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Ks=Ui((function(e,t,r){return e+(r?" ":"")+Js(t)}));var Ys=Ui((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Js=Di("toUpperCase");function Qs(e,t,r){return e=Es(e),(t=r?i:t)===i?function(e){return ot.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Xs=Jn((function(e,t){try{return xt(e,i,t)}catch(e){return Ja(e)?e:new Te(e)}})),ec=no((function(e,t){return Ct(t,(function(t){t=jo(t),an(e,t,Oa(e[t],e))})),e}));function tc(e){return function(){return e}}var rc=Bi(),nc=Bi(!0);function ic(e){return e}function oc(e){return Dn("function"==typeof e?e:un(e,1))}var ac=Jn((function(e,t){return function(r){return kn(r,e,t)}})),sc=Jn((function(e,t){return function(r){return kn(e,r,t)}}));function cc(e,t,r){var n=Ns(t),i=Rn(t,n);null!=r||ts(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=Rn(t,Ns(t)));var o=!(ts(r)&&"chain"in r&&!r.chain),a=Qa(e);return Ct(i,(function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=Oi(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Dt([this.value()],arguments))})})),e}function uc(){}var lc=qi(Mt),dc=qi(kt),fc=qi(Ft);function pc(e){return bo(e)?zt(jo(e)):function(e){return function(t){return Tn(t,e)}}(e)}var hc=Wi(),vc=Wi(!0);function mc(){return[]}function gc(){return!1}var yc=Gi((function(e,t){return e+t}),0),Ec=Ki("ceil"),Sc=Gi((function(e,t){return e/t}),1),_c=Ki("floor");var bc,Rc=Gi((function(e,t){return e*t}),1),Tc=Ki("round"),wc=Gi((function(e,t){return e-t}),0);return Br.after=function(e,t){if("function"!=typeof t)throw new Oe(o);return e=vs(e),function(){if(--e<1)return t.apply(this,arguments)}},Br.ary=Aa,Br.assign=Ss,Br.assignIn=_s,Br.assignInWith=bs,Br.assignWith=Rs,Br.at=Ts,Br.before=Ca,Br.bind=Oa,Br.bindAll=ec,Br.bindKey=ka,Br.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ha(e)?e:[e]},Br.chain=pa,Br.chunk=function(e,t,r){t=(r?_o(e,t,r):t===i)?1:yr(vs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,c=n(ht(o/t));a<o;)c[s++]=ii(e,a,a+=t);return c},Br.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var o=e[t];o&&(i[n++]=o)}return i},Br.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Dt(Ha(r)?Oi(r):[r],yn(t,1))},Br.cond=function(e){var t=null==e?0:e.length,r=uo();return e=t?Mt(e,(function(e){if("function"!=typeof e[1])throw new Oe(o);return[r(e[0]),e[1]]})):[],Jn((function(r){for(var n=-1;++n<t;){var i=e[n];if(xt(i[0],this,r))return xt(i[1],this,r)}}))},Br.conforms=function(e){return function(e){var t=Ns(e);return function(r){return ln(r,e,t)}}(un(e,1))},Br.constant=tc,Br.countBy=ma,Br.create=function(e,t){var r=Zr(e);return null==t?r:on(r,t)},Br.curry=function e(t,r,n){var o=Qi(t,8,i,i,i,i,i,r=n?i:r);return o.placeholder=e.placeholder,o},Br.curryRight=function e(t,r,n){var o=Qi(t,c,i,i,i,i,i,r=n?i:r);return o.placeholder=e.placeholder,o},Br.debounce=Na,Br.defaults=ws,Br.defaultsDeep=Is,Br.defer=La,Br.delay=Pa,Br.difference=Zo,Br.differenceBy=Vo,Br.differenceWith=Go,Br.drop=function(e,t,r){var n=null==e?0:e.length;return n?ii(e,(t=r||t===i?1:vs(t))<0?0:t,n):[]},Br.dropRight=function(e,t,r){var n=null==e?0:e.length;return n?ii(e,0,(t=n-(t=r||t===i?1:vs(t)))<0?0:t):[]},Br.dropRightWhile=function(e,t){return e&&e.length?hi(e,uo(t,3),!0,!0):[]},Br.dropWhile=function(e,t){return e&&e.length?hi(e,uo(t,3),!0):[]},Br.fill=function(e,t,r,n){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&_o(e,t,r)&&(r=0,n=o),function(e,t,r,n){var o=e.length;for((r=vs(r))<0&&(r=-r>o?0:o+r),(n=n===i||n>o?o:vs(n))<0&&(n+=o),n=r>n?0:ms(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},Br.filter=function(e,t){return(Ha(e)?Nt:gn)(e,uo(t,3))},Br.flatMap=function(e,t){return yn(Ta(e,t),1)},Br.flatMapDeep=function(e,t){return yn(Ta(e,t),p)},Br.flatMapDepth=function(e,t,r){return r=r===i?1:vs(r),yn(Ta(e,t),r)},Br.flatten=Wo,Br.flattenDeep=function(e){return(null==e?0:e.length)?yn(e,p):[]},Br.flattenDepth=function(e,t){return(null==e?0:e.length)?yn(e,t=t===i?1:vs(t)):[]},Br.flip=function(e){return Qi(e,512)},Br.flow=rc,Br.flowRight=nc,Br.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n},Br.functions=function(e){return null==e?[]:Rn(e,Ns(e))},Br.functionsIn=function(e){return null==e?[]:Rn(e,Ls(e))},Br.groupBy=_a,Br.initial=function(e){return(null==e?0:e.length)?ii(e,0,-1):[]},Br.intersection=$o,Br.intersectionBy=Ko,Br.intersectionWith=Yo,Br.invert=Cs,Br.invertBy=Os,Br.invokeMap=ba,Br.iteratee=oc,Br.keyBy=Ra,Br.keys=Ns,Br.keysIn=Ls,Br.map=Ta,Br.mapKeys=function(e,t){var r={};return t=uo(t,3),_n(e,(function(e,n,i){an(r,t(e,n,i),e)})),r},Br.mapValues=function(e,t){var r={};return t=uo(t,3),_n(e,(function(e,n,i){an(r,n,t(e,n,i))})),r},Br.matches=function(e){return Zn(un(e,1))},Br.matchesProperty=function(e,t){return Vn(e,un(t,1))},Br.memoize=Ma,Br.merge=Ps,Br.mergeWith=Ms,Br.method=ac,Br.methodOf=sc,Br.mixin=cc,Br.negate=Da,Br.nthArg=function(e){return e=vs(e),Jn((function(t){return qn(t,e)}))},Br.omit=Ds,Br.omitBy=function(e,t){return js(e,Da(uo(t)))},Br.once=function(e){return Ca(2,e)},Br.orderBy=function(e,t,r,n){return null==e?[]:(Ha(t)||(t=null==t?[]:[t]),Ha(r=n?i:r)||(r=null==r?[]:[r]),Hn(e,t,r))},Br.over=lc,Br.overArgs=Ua,Br.overEvery=dc,Br.overSome=fc,Br.partial=ja,Br.partialRight=Fa,Br.partition=wa,Br.pick=Us,Br.pickBy=js,Br.property=pc,Br.propertyOf=function(e){return function(t){return null==e?i:Tn(e,t)}},Br.pull=Qo,Br.pullAll=Xo,Br.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?zn(e,t,uo(r,2)):e},Br.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?zn(e,t,i,r):e},Br.pullAt=ea,Br.range=hc,Br.rangeRight=vc,Br.rearg=Ba,Br.reject=function(e,t){return(Ha(e)?Nt:gn)(e,Da(uo(t,3)))},Br.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,i=[],o=e.length;for(t=uo(t,3);++n<o;){var a=e[n];t(a,n,e)&&(r.push(a),i.push(n))}return $n(e,i),r},Br.rest=function(e,t){if("function"!=typeof e)throw new Oe(o);return Jn(e,t=t===i?t:vs(t))},Br.reverse=ta,Br.sampleSize=function(e,t,r){return t=(r?_o(e,t,r):t===i)?1:vs(t),(Ha(e)?Qr:Xn)(e,t)},Br.set=function(e,t,r){return null==e?e:ei(e,t,r)},Br.setWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:ei(e,t,r,n)},Br.shuffle=function(e){return(Ha(e)?Xr:ni)(e)},Br.slice=function(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&_o(e,t,r)?(t=0,r=n):(t=null==t?0:vs(t),r=r===i?n:vs(r)),ii(e,t,r)):[]},Br.sortBy=Ia,Br.sortedUniq=function(e){return e&&e.length?ci(e):[]},Br.sortedUniqBy=function(e,t){return e&&e.length?ci(e,uo(t,2)):[]},Br.split=function(e,t,r){return r&&"number"!=typeof r&&_o(e,t,r)&&(t=r=i),(r=r===i?m:r>>>0)?(e=Es(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=li(t))&&sr(e)?bi(hr(e),0,r):e.split(t,r):[]},Br.spread=function(e,t){if("function"!=typeof e)throw new Oe(o);return t=null==t?0:yr(vs(t),0),Jn((function(r){var n=r[t],i=bi(r,0,t);return n&&Dt(i,n),xt(e,this,i)}))},Br.tail=function(e){var t=null==e?0:e.length;return t?ii(e,1,t):[]},Br.take=function(e,t,r){return e&&e.length?ii(e,0,(t=r||t===i?1:vs(t))<0?0:t):[]},Br.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?ii(e,(t=n-(t=r||t===i?1:vs(t)))<0?0:t,n):[]},Br.takeRightWhile=function(e,t){return e&&e.length?hi(e,uo(t,3),!1,!0):[]},Br.takeWhile=function(e,t){return e&&e.length?hi(e,uo(t,3)):[]},Br.tap=function(e,t){return t(e),e},Br.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new Oe(o);return ts(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Na(e,t,{leading:n,maxWait:t,trailing:i})},Br.thru=ha,Br.toArray=ps,Br.toPairs=Fs,Br.toPairsIn=Bs,Br.toPath=function(e){return Ha(e)?Mt(e,jo):us(e)?[e]:Oi(Uo(Es(e)))},Br.toPlainObject=ys,Br.transform=function(e,t,r){var n=Ha(e),i=n||Ka(e)||ls(e);if(t=uo(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:ts(e)&&Qa(o)?Zr(ze(e)):{}}return(i?Ct:_n)(e,(function(e,n,i){return t(r,e,n,i)})),r},Br.unary=function(e){return Aa(e,1)},Br.union=ra,Br.unionBy=na,Br.unionWith=ia,Br.uniq=function(e){return e&&e.length?di(e):[]},Br.uniqBy=function(e,t){return e&&e.length?di(e,uo(t,2)):[]},Br.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?di(e,i,t):[]},Br.unset=function(e,t){return null==e||fi(e,t)},Br.unzip=oa,Br.unzipWith=aa,Br.update=function(e,t,r){return null==e?e:pi(e,t,Ei(r))},Br.updateWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:pi(e,t,Ei(r),n)},Br.values=Zs,Br.valuesIn=function(e){return null==e?[]:er(e,Ls(e))},Br.without=sa,Br.words=Qs,Br.wrap=function(e,t){return ja(Ei(t),e)},Br.xor=ca,Br.xorBy=ua,Br.xorWith=la,Br.zip=da,Br.zipObject=function(e,t){return gi(e||[],t||[],tn)},Br.zipObjectDeep=function(e,t){return gi(e||[],t||[],ei)},Br.zipWith=fa,Br.entries=Fs,Br.entriesIn=Bs,Br.extend=_s,Br.extendWith=bs,cc(Br,Br),Br.add=yc,Br.attempt=Xs,Br.camelCase=Vs,Br.capitalize=Gs,Br.ceil=Ec,Br.clamp=function(e,t,r){return r===i&&(r=t,t=i),r!==i&&(r=(r=gs(r))==r?r:0),t!==i&&(t=(t=gs(t))==t?t:0),cn(gs(e),t,r)},Br.clone=function(e){return un(e,4)},Br.cloneDeep=function(e){return un(e,5)},Br.cloneDeepWith=function(e,t){return un(e,5,t="function"==typeof t?t:i)},Br.cloneWith=function(e,t){return un(e,4,t="function"==typeof t?t:i)},Br.conformsTo=function(e,t){return null==t||ln(e,t,Ns(t))},Br.deburr=qs,Br.defaultTo=function(e,t){return null==e||e!=e?t:e},Br.divide=Sc,Br.endsWith=function(e,t,r){e=Es(e),t=li(t);var n=e.length,o=r=r===i?n:cn(vs(r),0,n);return(r-=t.length)>=0&&e.slice(r,o)==t},Br.eq=Za,Br.escape=function(e){return(e=Es(e))&&J.test(e)?e.replace(K,or):e},Br.escapeRegExp=function(e){return(e=Es(e))&&oe.test(e)?e.replace(ie,"\\$&"):e},Br.every=function(e,t,r){var n=Ha(e)?kt:vn;return r&&_o(e,t,r)&&(t=i),n(e,uo(t,3))},Br.find=ga,Br.findIndex=qo,Br.findKey=function(e,t){return Zt(e,uo(t,3),_n)},Br.findLast=ya,Br.findLastIndex=Ho,Br.findLastKey=function(e,t){return Zt(e,uo(t,3),bn)},Br.floor=_c,Br.forEach=Ea,Br.forEachRight=Sa,Br.forIn=function(e,t){return null==e?e:En(e,uo(t,3),Ls)},Br.forInRight=function(e,t){return null==e?e:Sn(e,uo(t,3),Ls)},Br.forOwn=function(e,t){return e&&_n(e,uo(t,3))},Br.forOwnRight=function(e,t){return e&&bn(e,uo(t,3))},Br.get=xs,Br.gt=Va,Br.gte=Ga,Br.has=function(e,t){return null!=e&&go(e,t,An)},Br.hasIn=As,Br.head=zo,Br.identity=ic,Br.includes=function(e,t,r,n){e=za(e)?e:Zs(e),r=r&&!n?vs(r):0;var i=e.length;return r<0&&(r=yr(i+r,0)),cs(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Gt(e,t,r)>-1},Br.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:vs(r);return i<0&&(i=yr(n+i,0)),Gt(e,t,i)},Br.inRange=function(e,t,r){return t=hs(t),r===i?(r=t,t=0):r=hs(r),function(e,t,r){return e>=Er(t,r)&&e<yr(t,r)}(e=gs(e),t,r)},Br.invoke=ks,Br.isArguments=qa,Br.isArray=Ha,Br.isArrayBuffer=Wa,Br.isArrayLike=za,Br.isArrayLikeObject=$a,Br.isBoolean=function(e){return!0===e||!1===e||rs(e)&&In(e)==S},Br.isBuffer=Ka,Br.isDate=Ya,Br.isElement=function(e){return rs(e)&&1===e.nodeType&&!os(e)},Br.isEmpty=function(e){if(null==e)return!0;if(za(e)&&(Ha(e)||"string"==typeof e||"function"==typeof e.splice||Ka(e)||ls(e)||qa(e)))return!e.length;var t=mo(e);if(t==w||t==O)return!e.size;if(wo(e))return!Un(e).length;for(var r in e)if(De.call(e,r))return!1;return!0},Br.isEqual=function(e,t){return Ln(e,t)},Br.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:i)?r(e,t):i;return n===i?Ln(e,t,i,r):!!n},Br.isError=Ja,Br.isFinite=function(e){return"number"==typeof e&&St(e)},Br.isFunction=Qa,Br.isInteger=Xa,Br.isLength=es,Br.isMap=ns,Br.isMatch=function(e,t){return e===t||Pn(e,t,fo(t))},Br.isMatchWith=function(e,t,r){return r="function"==typeof r?r:i,Pn(e,t,fo(t),r)},Br.isNaN=function(e){return is(e)&&e!=+e},Br.isNative=function(e){if(To(e))throw new Te("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Mn(e)},Br.isNil=function(e){return null==e},Br.isNull=function(e){return null===e},Br.isNumber=is,Br.isObject=ts,Br.isObjectLike=rs,Br.isPlainObject=os,Br.isRegExp=as,Br.isSafeInteger=function(e){return Xa(e)&&e>=-9007199254740991&&e<=h},Br.isSet=ss,Br.isString=cs,Br.isSymbol=us,Br.isTypedArray=ls,Br.isUndefined=function(e){return e===i},Br.isWeakMap=function(e){return rs(e)&&mo(e)==L},Br.isWeakSet=function(e){return rs(e)&&"[object WeakSet]"==In(e)},Br.join=function(e,t){return null==e?"":Bt.call(e,t)},Br.kebabCase=Hs,Br.last=Jo,Br.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n;return r!==i&&(o=(o=vs(r))<0?yr(n+o,0):Er(o,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,o):Vt(e,Ht,o,!0)},Br.lowerCase=Ws,Br.lowerFirst=zs,Br.lt=ds,Br.lte=fs,Br.max=function(e){return e&&e.length?mn(e,ic,xn):i},Br.maxBy=function(e,t){return e&&e.length?mn(e,uo(t,2),xn):i},Br.mean=function(e){return Wt(e,ic)},Br.meanBy=function(e,t){return Wt(e,uo(t,2))},Br.min=function(e){return e&&e.length?mn(e,ic,Fn):i},Br.minBy=function(e,t){return e&&e.length?mn(e,uo(t,2),Fn):i},Br.stubArray=mc,Br.stubFalse=gc,Br.stubObject=function(){return{}},Br.stubString=function(){return""},Br.stubTrue=function(){return!0},Br.multiply=Rc,Br.nth=function(e,t){return e&&e.length?qn(e,vs(t)):i},Br.noConflict=function(){return vt._===this&&(vt._=Ze),this},Br.noop=uc,Br.now=xa,Br.pad=function(e,t,r){e=Es(e);var n=(t=vs(t))?pr(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return Hi(mt(i),r)+e+Hi(ht(i),r)},Br.padEnd=function(e,t,r){e=Es(e);var n=(t=vs(t))?pr(e):0;return t&&n<t?e+Hi(t-n,r):e},Br.padStart=function(e,t,r){e=Es(e);var n=(t=vs(t))?pr(e):0;return t&&n<t?Hi(t-n,r)+e:e},Br.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),_r(Es(e).replace(ae,""),t||0)},Br.random=function(e,t,r){if(r&&"boolean"!=typeof r&&_o(e,t,r)&&(t=r=i),r===i&&("boolean"==typeof t?(r=t,t=i):"boolean"==typeof e&&(r=e,e=i)),e===i&&t===i?(e=0,t=1):(e=hs(e),t===i?(t=e,e=0):t=hs(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var o=br();return Er(e+o*(t-e+dt("1e-"+((o+"").length-1))),t)}return Kn(e,t)},Br.reduce=function(e,t,r){var n=Ha(e)?Ut:Kt,i=arguments.length<3;return n(e,uo(t,4),r,i,pn)},Br.reduceRight=function(e,t,r){var n=Ha(e)?jt:Kt,i=arguments.length<3;return n(e,uo(t,4),r,i,hn)},Br.repeat=function(e,t,r){return t=(r?_o(e,t,r):t===i)?1:vs(t),Yn(Es(e),t)},Br.replace=function(){var e=arguments,t=Es(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Br.result=function(e,t,r){var n=-1,o=(t=Si(t,e)).length;for(o||(o=1,e=i);++n<o;){var a=null==e?i:e[jo(t[n])];a===i&&(n=o,a=r),e=Qa(a)?a.call(e):a}return e},Br.round=Tc,Br.runInContext=e,Br.sample=function(e){return(Ha(e)?Jr:Qn)(e)},Br.size=function(e){if(null==e)return 0;if(za(e))return cs(e)?pr(e):e.length;var t=mo(e);return t==w||t==O?e.size:Un(e).length},Br.snakeCase=$s,Br.some=function(e,t,r){var n=Ha(e)?Ft:oi;return r&&_o(e,t,r)&&(t=i),n(e,uo(t,3))},Br.sortedIndex=function(e,t){return ai(e,t)},Br.sortedIndexBy=function(e,t,r){return si(e,t,uo(r,2))},Br.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=ai(e,t);if(n<r&&Za(e[n],t))return n}return-1},Br.sortedLastIndex=function(e,t){return ai(e,t,!0)},Br.sortedLastIndexBy=function(e,t,r){return si(e,t,uo(r,2),!0)},Br.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=ai(e,t,!0)-1;if(Za(e[r],t))return r}return-1},Br.startCase=Ks,Br.startsWith=function(e,t,r){return e=Es(e),r=null==r?0:cn(vs(r),0,e.length),t=li(t),e.slice(r,r+t.length)==t},Br.subtract=wc,Br.sum=function(e){return e&&e.length?Yt(e,ic):0},Br.sumBy=function(e,t){return e&&e.length?Yt(e,uo(t,2)):0},Br.template=function(e,t,r){var n=Br.templateSettings;r&&_o(e,t,r)&&(t=i),e=Es(e),t=bs({},t,n,Xi);var o,a,s=bs({},t.imports,n.imports,Xi),c=Ns(s),u=er(s,c),l=0,d=t.interpolate||be,f="__p += '",p=Ae((t.escape||be).source+"|"+d.source+"|"+(d===ee?he:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(De.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++st+"]")+"\n";e.replace(p,(function(t,r,n,i,s,c){return n||(n=i),f+=e.slice(l,c).replace(Re,ar),r&&(o=!0,f+="' +\n__e("+r+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),n&&(f+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),f+="';\n";var v=De.call(t,"variable")&&t.variable;if(v){if(fe.test(v))throw new Te("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(H,""):f).replace(W,"$1").replace(z,"$1;"),f="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=Xs((function(){return we(c,h+"return "+f).apply(i,u)}));if(m.source=f,Ja(m))throw m;return m},Br.times=function(e,t){if((e=vs(e))<1||e>h)return[];var r=m,n=Er(e,m);t=uo(t),e-=m;for(var i=Jt(n,t);++r<e;)t(r);return i},Br.toFinite=hs,Br.toInteger=vs,Br.toLength=ms,Br.toLower=function(e){return Es(e).toLowerCase()},Br.toNumber=gs,Br.toSafeInteger=function(e){return e?cn(vs(e),-9007199254740991,h):0===e?e:0},Br.toString=Es,Br.toUpper=function(e){return Es(e).toUpperCase()},Br.trim=function(e,t,r){if((e=Es(e))&&(r||t===i))return Qt(e);if(!e||!(t=li(t)))return e;var n=hr(e),o=hr(t);return bi(n,rr(n,o),nr(n,o)+1).join("")},Br.trimEnd=function(e,t,r){if((e=Es(e))&&(r||t===i))return e.slice(0,vr(e)+1);if(!e||!(t=li(t)))return e;var n=hr(e);return bi(n,0,nr(n,hr(t))+1).join("")},Br.trimStart=function(e,t,r){if((e=Es(e))&&(r||t===i))return e.replace(ae,"");if(!e||!(t=li(t)))return e;var n=hr(e);return bi(n,rr(n,hr(t))).join("")},Br.truncate=function(e,t){var r=30,n="...";if(ts(t)){var o="separator"in t?t.separator:o;r="length"in t?vs(t.length):r,n="omission"in t?li(t.omission):n}var a=(e=Es(e)).length;if(sr(e)){var s=hr(e);a=s.length}if(r>=a)return e;var c=r-pr(n);if(c<1)return n;var u=s?bi(s,0,c).join(""):e.slice(0,c);if(o===i)return u+n;if(s&&(c+=u.length-c),as(o)){if(e.slice(c).search(o)){var l,d=u;for(o.global||(o=Ae(o.source,Es(ve.exec(o))+"g")),o.lastIndex=0;l=o.exec(d);)var f=l.index;u=u.slice(0,f===i?c:f)}}else if(e.indexOf(li(o),c)!=c){var p=u.lastIndexOf(o);p>-1&&(u=u.slice(0,p))}return u+n},Br.unescape=function(e){return(e=Es(e))&&Y.test(e)?e.replace($,mr):e},Br.uniqueId=function(e){var t=++Ue;return Es(e)+t},Br.upperCase=Ys,Br.upperFirst=Js,Br.each=Ea,Br.eachRight=Sa,Br.first=zo,cc(Br,(bc={},_n(Br,(function(e,t){De.call(Br.prototype,t)||(bc[t]=e)})),bc),{chain:!1}),Br.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Br[e].placeholder=Br})),Ct(["drop","take"],(function(e,t){qr.prototype[e]=function(r){r=r===i?1:yr(vs(r),0);var n=this.__filtered__&&!t?new qr(this):this.clone();return n.__filtered__?n.__takeCount__=Er(r,n.__takeCount__):n.__views__.push({size:Er(r,m),type:e+(n.__dir__<0?"Right":"")}),n},qr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;qr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:uo(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),Ct(["head","last"],(function(e,t){var r="take"+(t?"Right":"");qr.prototype[e]=function(){return this[r](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");qr.prototype[e]=function(){return this.__filtered__?new qr(this):this[r](1)}})),qr.prototype.compact=function(){return this.filter(ic)},qr.prototype.find=function(e){return this.filter(e).head()},qr.prototype.findLast=function(e){return this.reverse().find(e)},qr.prototype.invokeMap=Jn((function(e,t){return"function"==typeof e?new qr(this):this.map((function(r){return kn(r,e,t)}))})),qr.prototype.reject=function(e){return this.filter(Da(uo(e)))},qr.prototype.slice=function(e,t){e=vs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new qr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==i&&(r=(t=vs(t))<0?r.dropRight(-t):r.take(t-e)),r)},qr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qr.prototype.toArray=function(){return this.take(m)},_n(qr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=Br[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);o&&(Br.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,c=t instanceof qr,u=s[0],l=c||Ha(t),d=function(e){var t=o.apply(Br,Dt([e],s));return n&&f?t[0]:t};l&&r&&"function"==typeof u&&1!=u.length&&(c=l=!1);var f=this.__chain__,p=!!this.__actions__.length,h=a&&!f,v=c&&!p;if(!a&&l){t=v?t:new qr(this);var m=e.apply(t,s);return m.__actions__.push({func:ha,args:[d],thisArg:i}),new Gr(m,f)}return h&&v?e.apply(this,s):(m=this.thru(d),h?n?m.value()[0]:m.value():m)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ke[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Br.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(Ha(i)?i:[],e)}return this[r]((function(r){return t.apply(Ha(r)?r:[],e)}))}})),_n(qr.prototype,(function(e,t){var r=Br[t];if(r){var n=r.name+"";De.call(kr,n)||(kr[n]=[]),kr[n].push({name:t,func:r})}})),kr[Zi(i,2).name]=[{name:"wrapper",func:i}],qr.prototype.clone=function(){var e=new qr(this.__wrapped__);return e.__actions__=Oi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oi(this.__views__),e},qr.prototype.reverse=function(){if(this.__filtered__){var e=new qr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},qr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Ha(e),n=t<0,i=r?e.length:0,o=function(e,t,r){var n=-1,i=r.length;for(;++n<i;){var o=r[n],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Er(t,e+a);break;case"takeRight":e=yr(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,c=s-a,u=n?s:a-1,l=this.__iteratees__,d=l.length,f=0,p=Er(c,this.__takeCount__);if(!r||!n&&i==c&&p==c)return vi(e,this.__actions__);var h=[];e:for(;c--&&f<p;){for(var v=-1,m=e[u+=t];++v<d;){var g=l[v],y=g.iteratee,E=g.type,S=y(m);if(2==E)m=S;else if(!S){if(1==E)continue e;break e}}h[f++]=m}return h},Br.prototype.at=va,Br.prototype.chain=function(){return pa(this)},Br.prototype.commit=function(){return new Gr(this.value(),this.__chain__)},Br.prototype.next=function(){this.__values__===i&&(this.__values__=ps(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Br.prototype.plant=function(e){for(var t,r=this;r instanceof Vr;){var n=Bo(r);n.__index__=0,n.__values__=i,t?o.__wrapped__=n:t=n;var o=n;r=r.__wrapped__}return o.__wrapped__=e,t},Br.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof qr){var t=e;return this.__actions__.length&&(t=new qr(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:i}),new Gr(t,this.__chain__)}return this.thru(ta)},Br.prototype.toJSON=Br.prototype.valueOf=Br.prototype.value=function(){return vi(this.__wrapped__,this.__actions__)},Br.prototype.first=Br.prototype.head,Qe&&(Br.prototype[Qe]=function(){return this}),Br}();vt._=gr,(n=function(){return gr}.call(t,r,t,e))===i||(e.exports=n)}.call(this)},6162:(e,t,r)=>{var n=r(56029),i=r(53325),o=r(6557);e.exports=function(e){return e&&e.length?n(e,o,i):void 0}},78659:(e,t,r)=>{var n=r(49787),i=r(6557);e.exports=function(e){return n(e,i)}},88306:(e,t,r)=>{var n=r(83369),i="Expected a function";function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(i);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},82492:(e,t,r)=>{var n=r(42980),i=r(21463)((function(e,t,r){n(e,t,r)}));e.exports=i},30236:(e,t,r)=>{var n=r(42980),i=r(21463)((function(e,t,r,i){n(e,t,r,i)}));e.exports=i},50308:e=>{e.exports=function(){}},7771:(e,t,r)=>{var n=r(55639);e.exports=function(){return n.Date.now()}},82723:(e,t,r)=>{var n=r(29932),i=r(85990),o=r(57406),a=r(71811),s=r(98363),c=r(60696),u=r(99021),l=r(46904),d=u((function(e,t){var r={};if(null==e)return r;var u=!1;t=n(t,(function(t){return t=a(t,e),u||(u=t.length>1),t})),s(e,l(e),r),u&&(r=i(r,7,c));for(var d=t.length;d--;)o(r,t[d]);return r}));e.exports=d},51463:(e,t,r)=>{var n=r(89567);e.exports=function(e){return n(2,e)}},53131:(e,t,r)=>{var n=r(5976),i=r(97727),o=r(20893),a=r(46460),s=n((function(e,t){var r=a(t,o(s));return i(e,32,void 0,t,r)}));s.placeholder={},e.exports=s},43174:(e,t,r)=>{var n=r(55189)((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));e.exports=n},78718:(e,t,r)=>{var n=r(25970),i=r(99021)((function(e,t){return null==e?{}:n(e,t)}));e.exports=i},39601:(e,t,r)=>{var n=r(40371),i=r(79152),o=r(15403),a=r(40327);e.exports=function(e){return o(e)?n(a(e)):i(e)}},58613:(e,t,r)=>{var n=r(71811),i=r(23560),o=r(40327);e.exports=function(e,t,r){var a=-1,s=(t=n(t,e)).length;for(s||(s=1,e=void 0);++a<s;){var c=null==e?void 0:e[o(t[a])];void 0===c&&(a=s,c=r),e=i(c)?c.call(e):c}return e}},36968:(e,t,r)=>{var n=r(10611);e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},70479:e=>{e.exports=function(){return[]}},95062:e=>{e.exports=function(){return!1}},18601:(e,t,r)=>{var n=r(14841),i=1/0,o=17976931348623157e292;e.exports=function(e){return e?(e=n(e))===i||e===-i?(e<0?-1:1)*o:e==e?e:0:0===e?e:0}},40554:(e,t,r)=>{var n=r(18601);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},14841:(e,t,r)=>{var n=r(27561),i=r(13218),o=r(33448),a=NaN,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=c.test(e);return r||u.test(e)?l(e.slice(2),r?2:8):s.test(e)?a:+e}},59881:(e,t,r)=>{var n=r(98363),i=r(81704);e.exports=function(e){return n(e,i(e))}},79833:(e,t,r)=>{var n=r(80531);e.exports=function(e){return null==e?"":n(e)}},93386:(e,t,r)=>{var n=r(21078),i=r(5976),o=r(45652),a=r(29246),s=i((function(e){return o(n(e,1,a,!0))}));e.exports=s},44908:(e,t,r)=>{var n=r(45652);e.exports=function(e){return e&&e.length?n(e):[]}},73955:(e,t,r)=>{var n=r(79833),i=0;e.exports=function(e){var t=++i;return n(e)+t}},98601:(e,t,r)=>{var n=r(57406);e.exports=function(e,t){return null==e||n(e,t)}},11700:(e,t,r)=>{var n=r(98805)("toUpperCase");e.exports=n},52628:(e,t,r)=>{var n=r(47415),i=r(3674);e.exports=function(e){return null==e?[]:n(e,i(e))}},58748:(e,t,r)=>{var n=r(49029),i=r(93157),o=r(79833),a=r(2757);e.exports=function(e,t,r){return e=o(e),void 0===(t=r?void 0:t)?i(e)?a(e):n(e):e.match(t)||[]}},90359:(e,t,r)=>{var n=r(54290),i=r(53131);e.exports=function(e,t){return i(n(t),e)}},8111:(e,t,r)=>{var n=r(96425),i=r(7548),o=r(9435),a=r(1469),s=r(37005),c=r(21913),u=Object.prototype.hasOwnProperty;function l(e){if(s(e)&&!a(e)&&!(e instanceof n)){if(e instanceof i)return e;if(u.call(e,"__wrapped__"))return c(e)}return new i(e)}l.prototype=o.prototype,l.prototype.constructor=l,e.exports=l},39593:(e,t,r)=>{"use strict";const n=r(34411),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),c=Symbol("maxAge"),u=Symbol("dispose"),l=Symbol("noDisposeOnSet"),d=Symbol("lruList"),f=Symbol("cache"),p=Symbol("updateAgeOnGet"),h=()=>1;const v=(e,t,r)=>{const n=e[f].get(t);if(n){const t=n.value;if(m(e,t)){if(y(e,n),!e[s])return}else r&&(e[p]&&(n.value.now=Date.now()),e[d].unshiftNode(n));return t.value}},m=(e,t)=>{if(!t||!t.maxAge&&!e[c])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[c]&&r>e[c]},g=e=>{if(e[o]>e[i])for(let t=e[d].tail;e[o]>e[i]&&null!==t;){const r=t.prev;y(e,t),t=r}},y=(e,t)=>{if(t){const r=t.value;e[u]&&e[u](r.key,r.value),e[o]-=r.length,e[f].delete(r.key),e[d].removeNode(t)}};class E{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0}}const S=(e,t,r,n)=>{let i=r.value;m(e,i)&&(y(e,r),e[s]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[i]=e.max||1/0;const t=e.length||h;if(this[a]="function"!=typeof t?h:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[c]=e.maxAge||0,this[u]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[p]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||1/0,g(this)}get max(){return this[i]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[c]=e,g(this)}get maxAge(){return this[c]}set lengthCalculator(e){"function"!=typeof e&&(e=h),e!==this[a]&&(this[a]=e,this[o]=0,this[d].forEach((e=>{e.length=this[a](e.value,e.key),this[o]+=e.length}))),g(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let r=this[d].tail;null!==r;){const n=r.prev;S(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[d].head;null!==r;){const n=r.next;S(this,e,r,t),r=n}}keys(){return this[d].toArray().map((e=>e.key))}values(){return this[d].toArray().map((e=>e.value))}reset(){this[u]&&this[d]&&this[d].length&&this[d].forEach((e=>this[u](e.key,e.value))),this[f]=new Map,this[d]=new n,this[o]=0}dump(){return this[d].map((e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[d]}set(e,t,r){if((r=r||this[c])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,s=this[a](t,e);if(this[f].has(e)){if(s>this[i])return y(this,this[f].get(e)),!1;const a=this[f].get(e).value;return this[u]&&(this[l]||this[u](e,a.value)),a.now=n,a.maxAge=r,a.value=t,this[o]+=s-a.length,a.length=s,this.get(e),g(this),!0}const p=new E(e,t,s,n,r);return p.length>this[i]?(this[u]&&this[u](e,t),!1):(this[o]+=p.length,this[d].unshift(p),this[f].set(e,this[d].head),g(this),!0)}has(e){if(!this[f].has(e))return!1;const t=this[f].get(e).value;return!m(this,t)}get(e){return v(this,e,!0)}peek(e){return v(this,e,!1)}pop(){const e=this[d].tail;return e?(y(this,e),e.value):null}del(e){y(this,this[f].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{const e=i-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[f].forEach(((e,t)=>v(this,t,!1)))}}},57824:e=>{var t=1e3,r=60*t,n=60*r,i=24*n,o=7*i,a=365.25*i;function s(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,c){c=c||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*a;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===u&&isFinite(e))return c.long?function(e){var o=Math.abs(e);if(o>=i)return s(e,o,i,"day");if(o>=n)return s(e,o,n,"hour");if(o>=r)return s(e,o,r,"minute");if(o>=t)return s(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=n)return Math.round(e/n)+"h";if(o>=r)return Math.round(e/r)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},70631:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&i&&"function"==typeof i.get?i.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&c&&"function"==typeof c.get?c.get:null,l=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,v=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,y=String.prototype.slice,E=String.prototype.replace,S=String.prototype.toUpperCase,_=String.prototype.toLowerCase,b=RegExp.prototype.test,R=Array.prototype.concat,T=Array.prototype.join,w=Array.prototype.slice,I=Math.floor,x="function"==typeof BigInt?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,O="function"==typeof Symbol&&"object"==typeof Symbol.iterator,k="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===O||"symbol")?Symbol.toStringTag:null,N=Object.prototype.propertyIsEnumerable,L=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function P(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||b.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-I(-e):I(e);if(n!==e){var i=String(n),o=y.call(t,i.length+1);return E.call(i,r,"$&_")+"."+E.call(E.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return E.call(t,r,"$&_")}var M=r(24654),D=M.custom,U=V(D)?D:null;function j(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function F(e){return E.call(String(e),/"/g,"&quot;")}function B(e){return!("[object Array]"!==H(e)||k&&"object"==typeof e&&k in e)}function Z(e){return!("[object RegExp]"!==H(e)||k&&"object"==typeof e&&k in e)}function V(e){if(O)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!C)return!1;try{return C.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,n,i){var s=r||{};if(q(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(q(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!q(s,"customInspect")||s.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var v=s.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return z(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var S=String(t);return v?P(t,S):S}if("bigint"==typeof t){var b=String(t)+"n";return v?P(t,b):b}var I=void 0===s.depth?5:s.depth;if(void 0===n&&(n=0),n>=I&&I>0&&"object"==typeof t)return B(t)?"[Array]":"[Object]";var A=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=T.call(Array(e.indent+1)," ")}return{base:r,prev:T.call(Array(t+1),r)}}(s,n);if(void 0===i)i=[];else if(W(i,t)>=0)return"[Circular]";function D(t,r,o){if(r&&(i=w.call(i)).push(r),o){var a={depth:s.depth};return q(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,n+1,i)}return e(t,s,n+1,i)}if("function"==typeof t&&!Z(t)){var G=function(e){if(e.name)return e.name;var t=g.call(m.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),$=X(t,D);return"[Function"+(G?": "+G:" (anonymous)")+"]"+($.length>0?" { "+T.call($,", ")+" }":"")}if(V(t)){var ee=O?E.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):C.call(t);return"object"!=typeof t||O?ee:K(ee)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var te="<"+_.call(String(t.nodeName)),re=t.attributes||[],ne=0;ne<re.length;ne++)te+=" "+re[ne].name+"="+j(F(re[ne].value),"double",s);return te+=">",t.childNodes&&t.childNodes.length&&(te+="..."),te+="</"+_.call(String(t.nodeName))+">"}if(B(t)){if(0===t.length)return"[]";var ie=X(t,D);return A&&!function(e){for(var t=0;t<e.length;t++)if(W(e[t],"\n")>=0)return!1;return!0}(ie)?"["+Q(ie,A)+"]":"[ "+T.call(ie,", ")+" ]"}if(function(e){return!("[object Error]"!==H(e)||k&&"object"==typeof e&&k in e)}(t)){var oe=X(t,D);return"cause"in Error.prototype||!("cause"in t)||N.call(t,"cause")?0===oe.length?"["+String(t)+"]":"{ ["+String(t)+"] "+T.call(oe,", ")+" }":"{ ["+String(t)+"] "+T.call(R.call("[cause]: "+D(t.cause),oe),", ")+" }"}if("object"==typeof t&&c){if(U&&"function"==typeof t[U]&&M)return M(t,{depth:I-n});if("symbol"!==c&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ae=[];return a&&a.call(t,(function(e,r){ae.push(D(r,t,!0)+" => "+D(e,t))})),J("Map",o.call(t),ae,A)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var se=[];return l&&l.call(t,(function(e){se.push(D(e,t))})),J("Set",u.call(t),se,A)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Y("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Y("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return Y("WeakRef");if(function(e){return!("[object Number]"!==H(e)||k&&"object"==typeof e&&k in e)}(t))return K(D(Number(t)));if(function(e){if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}(t))return K(D(x.call(t)));if(function(e){return!("[object Boolean]"!==H(e)||k&&"object"==typeof e&&k in e)}(t))return K(h.call(t));if(function(e){return!("[object String]"!==H(e)||k&&"object"==typeof e&&k in e)}(t))return K(D(String(t)));if(!function(e){return!("[object Date]"!==H(e)||k&&"object"==typeof e&&k in e)}(t)&&!Z(t)){var ce=X(t,D),ue=L?L(t)===Object.prototype:t instanceof Object||t.constructor===Object,le=t instanceof Object?"":"null prototype",de=!ue&&k&&Object(t)===t&&k in t?y.call(H(t),8,-1):le?"Object":"",fe=(ue||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||le?"["+T.call(R.call([],de||[],le||[]),": ")+"] ":"");return 0===ce.length?fe+"{}":A?fe+"{"+Q(ce,A)+"}":fe+"{ "+T.call(ce,", ")+" }"}return String(t)};var G=Object.prototype.hasOwnProperty||function(e){return e in this};function q(e,t){return G.call(e,t)}function H(e){return v.call(e)}function W(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function z(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return z(y.call(e,0,t.maxStringLength),t)+n}return j(E.call(E.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,$),"single",t)}function $(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+S.call(t.toString(16))}function K(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function J(e,t,r,n){return e+" ("+t+") {"+(n?Q(r,n):T.call(r,", "))+"}"}function Q(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+T.call(e,","+r)+"\n"+t.prev}function X(e,t){var r=B(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=q(e,i)?t(e[i],e):""}var o,a="function"==typeof A?A(e):[];if(O){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var c in e)q(e,c)&&(r&&String(Number(c))===c&&c<e.length||O&&o["$"+c]instanceof Symbol||(b.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof A)for(var u=0;u<a.length;u++)N.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}},24753:(e,t,r)=>{e.exports=r(24753)},4947:e=>{var t=function(e){return e.replace(/^\s+|\s+$/g,"")};e.exports=function(e){if(!e)return{};for(var r,n={},i=t(e).split("\n"),o=0;o<i.length;o++){var a=i[o],s=a.indexOf(":"),c=t(a.slice(0,s)).toLowerCase(),u=t(a.slice(s+1));void 0===n[c]?n[c]=u:(r=n[c],"[object Array]"===Object.prototype.toString.call(r)?n[c].push(u):n[c]=[n[c],u])}return n}},28985:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Deferred=void 0;t.Deferred=class{constructor(){this.resolve=()=>null,this.reject=()=>null,this.promise=new Promise(((e,t)=>{this.reject=t,this.resolve=e}))}}},37279:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EndOfStreamError=t.defaultMessages=void 0,t.defaultMessages="End-Of-Stream";class r extends Error{constructor(){super(t.defaultMessages)}}t.EndOfStreamError=r},56654:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamReader=t.EndOfStreamError=void 0;const n=r(37279),i=r(28985);var o=r(37279);Object.defineProperty(t,"EndOfStreamError",{enumerable:!0,get:function(){return o.EndOfStreamError}});t.StreamReader=class{constructor(e){if(this.s=e,this.deferred=null,this.endOfStream=!1,this.peekQueue=[],!e.read||!e.once)throw new Error("Expected an instance of stream.Readable");this.s.once("end",(()=>this.reject(new n.EndOfStreamError))),this.s.once("error",(e=>this.reject(e))),this.s.once("close",(()=>this.reject(new Error("Stream closed"))))}async peek(e,t,r){const n=await this.read(e,t,r);return this.peekQueue.push(e.subarray(t,t+n)),n}async read(e,t,r){if(0===r)return 0;if(0===this.peekQueue.length&&this.endOfStream)throw new n.EndOfStreamError;let i=r,o=0;for(;this.peekQueue.length>0&&i>0;){const r=this.peekQueue.pop();if(!r)throw new Error("peekData should be defined");const n=Math.min(r.length,i);e.set(r.subarray(0,n),t+o),o+=n,i-=n,n<r.length&&this.peekQueue.push(r.subarray(n))}for(;i>0&&!this.endOfStream;){const r=Math.min(i,1048576),n=await this.readFromStream(e,t+o,r);if(o+=n,n<r)break;i-=n}return o}async readFromStream(e,t,r){const n=this.s.read(r);if(n)return e.set(n,t),n.length;{const n={buffer:e,offset:t,length:r,deferred:new i.Deferred};return this.deferred=n.deferred,this.s.once("readable",(()=>{this.readDeferred(n)})),n.deferred.promise}}readDeferred(e){const t=this.s.read(e.length);t?(e.buffer.set(t,e.offset),e.deferred.resolve(t.length),this.deferred=null):this.s.once("readable",(()=>{this.readDeferred(e)}))}reject(e){this.endOfStream=!0,this.deferred&&(this.deferred.reject(e),this.deferred=null)}}},55167:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamReader=t.EndOfStreamError=void 0;var n=r(37279);Object.defineProperty(t,"EndOfStreamError",{enumerable:!0,get:function(){return n.EndOfStreamError}});var i=r(56654);Object.defineProperty(t,"StreamReader",{enumerable:!0,get:function(){return i.StreamReader}})},3814:(e,t,r)=>{e.exports=r(91361)},91361:(e,t,r)=>{var n=r(89539),i=e.exports=r(73984);function o(e,t,r,i){r=r||"";var o=new e(n.format.apply(this,[r].concat(i)));throw Error.captureStackTrace(o,t),o}function a(e,t,r){o(i.IllegalArgumentError,e,t,r)}function s(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array"}return t}function c(e){return function(t,r){var n=s(t);if(n==e)return t;a(arguments.callee,r||'Expected "'+e+'" but got "'+n+'".',Array.prototype.slice.call(arguments,2))}}e.exports.checkArgument=function(e,t){e||a(arguments.callee,t,Array.prototype.slice.call(arguments,2))},e.exports.checkState=function(e,t){e||function(e,t,r){o(i.IllegalStateError,e,t,r)}(arguments.callee,t,Array.prototype.slice.call(arguments,2))},e.exports.checkIsDef=function(e,t){if(void 0!==e)return e;a(arguments.callee,t||"Expected value to be defined but was undefined.",Array.prototype.slice.call(arguments,2))},e.exports.checkIsDefAndNotNull=function(e,t){if(null!=e)return e;a(arguments.callee,t||'Expected value to be defined and not null but got "'+s(e)+'".',Array.prototype.slice.call(arguments,2))},e.exports.checkIsString=c("string"),e.exports.checkIsArray=c("array"),e.exports.checkIsNumber=c("number"),e.exports.checkIsBoolean=c("boolean"),e.exports.checkIsFunction=c("function"),e.exports.checkIsObject=c("object")},73984:(e,t,r)=>{var n=r(89539);function i(e){Error.call(this,e),this.message=e}function o(e){Error.call(this,e),this.message=e}n.inherits(i,Error),i.prototype.name="IllegalArgumentError",n.inherits(o,Error),o.prototype.name="IllegalStateError",e.exports.IllegalStateError=o,e.exports.IllegalArgumentError=i},88212:(e,t,r)=>{"use strict";var n=r(34155);void 0===n||!n.version||0===n.version.indexOf("v0.")||0===n.version.indexOf("v1.")&&0!==n.version.indexOf("v1.8.")?e.exports={nextTick:function(e,t,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return n.nextTick(e);case 2:return n.nextTick((function(){e.call(null,t)}));case 3:return n.nextTick((function(){e.call(null,t,r)}));case 4:return n.nextTick((function(){e.call(null,t,r,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return n.nextTick((function(){e.apply(null,o)}))}}}:e.exports=n},34155:e=>{var t,r,n=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var s,c=[],u=!1,l=-1;function d(){u&&s&&(u=!1,s.length?c=s.concat(c):l=-1,c.length&&f())}function f(){if(!u){var e=a(d);u=!0;for(var t=c.length;t;){for(s=c,c=[];++l<t;)s&&s[l].run();l=-1,t=c.length}s=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new p(e,t)),1!==c.length||u||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=h,n.addListener=h,n.once=h,n.off=h,n.removeListener=h,n.removeAllListeners=h,n.emit=h,n.prependListener=h,n.prependOnceListener=h,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},55798:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n,RFC3986:i}},80129:(e,t,r)=>{"use strict";var n=r(58261),i=r(55235),o=r(55798);e.exports={formats:o,parse:i,stringify:n}},55235:(e,t,r)=>{"use strict";var n=r(12769),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(o),u=s?o.slice(0,s.index):o,l=[];if(u){if(!r.plainObjects&&i.call(Object.prototype,u)&&!r.allowPrototypes)return;l.push(u)}for(var d=0;r.depth>0&&null!==(s=a.exec(o))&&d<r.depth;){if(d+=1,!r.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+o.slice(s.index)+"]"),function(e,t,r,n){for(var i=n?t:c(t,r),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&r.parseArrays)a=[].concat(i);else{a=r.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(u,10);r.parseArrays||""!==u?!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=i:"__proto__"!==u&&(a[u]=i):a={0:i}}i=a}return i}(l,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var r,u={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=l.split(t.delimiter,d),p=-1,h=t.charset;if(t.charsetSentinel)for(r=0;r<f.length;++r)0===f[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[r]?h="utf-8":"utf8=%26%2310003%3B"===f[r]&&(h="iso-8859-1"),p=r,r=f.length);for(r=0;r<f.length;++r)if(r!==p){var v,m,g=f[r],y=g.indexOf("]="),E=-1===y?g.indexOf("="):y+1;-1===E?(v=t.decoder(g,a.decoder,h,"key"),m=t.strictNullHandling?null:""):(v=t.decoder(g.slice(0,E),a.decoder,h,"key"),m=n.maybeMap(c(g.slice(E+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===h&&(m=s(m)),g.indexOf("[]=")>-1&&(m=o(m)?[m]:m),i.call(u,v)?u[v]=n.combine(u[v],m):u[v]=m}return u}(e,r):e,d=r.plainObjects?Object.create(null):{},f=Object.keys(l),p=0;p<f.length;++p){var h=f[p],v=u(h,l[h],r,"string"==typeof e);d=n.merge(d,v,r)}return!0===r.allowSparse?d:n.compact(d)}},58261:(e,t,r)=>{"use strict";var n=r(37478),i=r(12769),o=r(55798),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=Array.prototype.push,l=function(e,t){u.apply(e,c(t)?t:[t])},d=Date.prototype.toISOString,f=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h={},v=function e(t,r,o,a,s,u,d,f,v,m,g,y,E,S,_,b){for(var R,T=t,w=b,I=0,x=!1;void 0!==(w=w.get(h))&&!x;){var A=w.get(t);if(I+=1,void 0!==A){if(A===I)throw new RangeError("Cyclic object value");x=!0}void 0===w.get(h)&&(I=0)}if("function"==typeof f?T=f(r,T):T instanceof Date?T=g(T):"comma"===o&&c(T)&&(T=i.maybeMap(T,(function(e){return e instanceof Date?g(e):e}))),null===T){if(s)return d&&!S?d(r,p.encoder,_,"key",y):r;T=""}if("string"==typeof(R=T)||"number"==typeof R||"boolean"==typeof R||"symbol"==typeof R||"bigint"==typeof R||i.isBuffer(T))return d?[E(S?r:d(r,p.encoder,_,"key",y))+"="+E(d(T,p.encoder,_,"value",y))]:[E(r)+"="+E(String(T))];var C,O=[];if(void 0===T)return O;if("comma"===o&&c(T))S&&d&&(T=i.maybeMap(T,d)),C=[{value:T.length>0?T.join(",")||null:void 0}];else if(c(f))C=f;else{var k=Object.keys(T);C=v?k.sort(v):k}for(var N=a&&c(T)&&1===T.length?r+"[]":r,L=0;L<C.length;++L){var P=C[L],M="object"==typeof P&&void 0!==P.value?P.value:T[P];if(!u||null!==M){var D=c(T)?"function"==typeof o?o(N,P):N:N+(m?"."+P:"["+P+"]");b.set(t,I);var U=n();U.set(h,b),l(O,e(M,D,o,a,s,u,"comma"===o&&S&&c(T)?null:d,f,v,m,g,y,E,S,_,U))}}return O};e.exports=function(e,t){var r,i=e,u=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=o.formatters[r],i=p.filter;return("function"==typeof e.filter||c(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:i,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof u.filter?i=(0,u.filter)("",i):c(u.filter)&&(r=u.filter);var d,f=[];if("object"!=typeof i||null===i)return"";d=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=s[d];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var m="comma"===h&&t&&t.commaRoundTrip;r||(r=Object.keys(i)),u.sort&&r.sort(u.sort);for(var g=n(),y=0;y<r.length;++y){var E=r[y];u.skipNulls&&null===i[E]||l(f,v(i[E],E,h,m,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,g))}var S=f.join(u.delimiter),_=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),S.length>0?_+S:""}},12769:(e,t,r)=>{"use strict";var n=r(55798),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var u=s[c],l=a[u];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:a,prop:u}),r.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,i,o){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",u=0;u<s.length;++u){var l=s.charCodeAt(u);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===n.RFC1738&&(40===l||41===l)?c+=s.charAt(u):l<128?c+=a[l]:l<2048?c+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?c+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(u+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(u)),c+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return c},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(o(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return o(t)&&!o(r)&&(a=s(t,n)),o(t)&&o(r)?(r.forEach((function(r,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&r&&"object"==typeof r?t[o]=e(a,r,n):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var a=r[o];return i.call(t,o)?t[o]=e(t[o],a,n):t[o]=a,t}),a)}}},62587:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,n,i){r=r||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(r);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var u=0;u<c;++u){var l,d,f,p,h=e[u].replace(a,"%20"),v=h.indexOf(n);v>=0?(l=h.substr(0,v),d=h.substr(v+1)):(l=h,d=""),f=decodeURIComponent(l),p=decodeURIComponent(d),t(o,f)?Array.isArray(o[f])?o[f].push(p):o[f]=[o[f],p]:o[f]=p}return o}},12361:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,r,n,i){return r=r||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(i){var o=encodeURIComponent(t(i))+n;return Array.isArray(e[i])?e[i].map((function(e){return o+encodeURIComponent(t(e))})).join(r):o+encodeURIComponent(t(e[i]))})).join(r):i?encodeURIComponent(t(i))+n+encodeURIComponent(t(e)):""}},17673:(e,t,r)=>{"use strict";t.decode=t.parse=r(62587),t.encode=t.stringify=r(12361)},20074:(e,t,r)=>{e.exports=r(56753)},56753:(e,t,r)=>{"use strict";var n=r(88212),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=d;var o=Object.create(r(16497));o.inherits=r(35717);var a=r(79481),s=r(64229);o.inherits(d,a);for(var c=i(s.prototype),u=0;u<c.length;u++){var l=c[u];d.prototype[l]||(d.prototype[l]=s.prototype[l])}function d(e){if(!(this instanceof d))return new d(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",f)}function f(){this.allowHalfOpen||this._writableState.ended||n.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},82725:(e,t,r)=>{"use strict";e.exports=o;var n=r(74605),i=Object.create(r(16497));function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(35717),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},79481:(e,t,r)=>{"use strict";var n=r(34155),i=r(88212);e.exports=E;var o,a=r(5826);E.ReadableState=y;r(17187).EventEmitter;var s=function(e,t){return e.listeners(t).length},c=r(22503),u=r(33545).Buffer,l=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var d=Object.create(r(16497));d.inherits=r(35717);var f=r(94616),p=void 0;p=f&&f.debuglog?f.debuglog("stream"):function(){};var h,v=r(25057),m=r(61195);d.inherits(E,c);var g=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var n=t instanceof(o=o||r(56753));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=r(94626).s),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function E(e){if(o=o||r(56753),!(this instanceof E))return new E(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function S(e,t,r,n,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,T(e)}(e,a)):(i||(o=function(e,t){var r;n=t,u.isBuffer(n)||n instanceof l||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):I(e,a)):_(e,a,t,!1))):n||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function _(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&T(e)),I(e,t)}Object.defineProperty(E.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=m.destroy,E.prototype._undestroy=m.undestroy,E.prototype._destroy=function(e,t){this.push(null),t(e)},E.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),S(this,e,t,!1,r)},E.prototype.unshift=function(e){return S(this,e,null,!0,!1)},E.prototype.isPaused=function(){return!1===this._readableState.flowing},E.prototype.setEncoding=function(e){return h||(h=r(94626).s),this._readableState.decoder=new h(e),this._readableState.encoding=e,this};var b=8388608;function R(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=b?e=b:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(w,e):w(e))}function w(e){p("emit readable"),e.emit("readable"),O(e)}function I(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(x,e,t))}function x(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function A(e){p("readable nexttick read 0"),e.read(0)}function C(e,t){t.reading||(p("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),O(e),t.flowing&&!t.reading&&e.read(0)}function O(e){var t=e._readableState;for(p("flow",t.flowing);t.flowing&&null!==e.read(););}function k(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;e-=i.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=u.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function N(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(L,t,e))}function L(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function P(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}E.prototype.read=function(e){p("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?N(this):T(this),null;if(0===(e=R(e,t))&&t.ended)return 0===t.length&&N(this),null;var n,i=t.needReadable;return p("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&p("length less than watermark",i=!0),t.ended||t.reading?p("reading or ended",i=!1):i&&(p("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=R(r,t))),null===(n=e>0?k(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&N(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},E.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,p("pipe count=%d opts=%j",o.pipesCount,t);var c=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?l:E;function u(t,n){p("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,p("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",d),e.removeListener("error",m),e.removeListener("unpipe",u),r.removeListener("end",l),r.removeListener("end",E),r.removeListener("data",v),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}function l(){p("onend"),e.end()}o.endEmitted?i.nextTick(c):r.once("end",c),e.on("unpipe",u);var d=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,O(e))}}(r);e.on("drain",d);var f=!1;var h=!1;function v(t){p("ondata"),h=!1,!1!==e.write(t)||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==P(o.pipes,e))&&!f&&(p("false write response, pause",o.awaitDrain),o.awaitDrain++,h=!0),r.pause())}function m(t){p("onerror",t),E(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",y),E()}function y(){p("onfinish"),e.removeListener("close",g),E()}function E(){p("unpipe"),r.unpipe(e)}return r.on("data",v),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",m),e.once("close",g),e.once("finish",y),e.emit("pipe",r),o.flowing||(p("pipe resume"),r.resume()),e},E.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=P(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},E.prototype.on=function(e,t){var r=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&T(this):i.nextTick(A,this))}return r},E.prototype.addListener=E.prototype.on,E.prototype.resume=function(){var e=this._readableState;return e.flowing||(p("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(C,e,t))}(this,e)),this},E.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},E.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(p("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(p("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<g.length;o++)e.on(g[o],this.emit.bind(this,g[o]));return this._read=function(t){p("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),E._fromList=k},74605:(e,t,r)=>{"use strict";e.exports=a;var n=r(56753),i=Object.create(r(16497));function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,r){c(e,t,r)})):c(this,null,null)}function c(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=r(35717),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},64229:(e,t,r)=>{"use strict";var n=r(34155),i=r(88212);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=g;var a,s=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?setImmediate:i.nextTick;g.WritableState=m;var c=Object.create(r(16497));c.inherits=r(35717);var u={deprecate:r(94927)},l=r(22503),d=r(33545).Buffer,f=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var p,h=r(61195);function v(){}function m(e,t){a=a||r(56753),e=e||{};var n=t instanceof a;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var c=e.highWaterMark,u=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=c||0===c?c:n&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===e.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(R,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(o(n),e._writableState.errorEmitted=!0,e.emit("error",n),R(e,t))}(e,r,n,t,o);else{var a=_(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||S(e,r),n?s(E,e,r,a,o):E(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function g(e){if(a=a||r(56753),!(p.call(g,this)||this instanceof a))return new g(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),l.call(this)}function y(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function E(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),R(e,t)}function S(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,c=!0;r;)i[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;i.allBuffers=c,y(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,d=r.callback;if(y(e,t,!1,t.objectMode?1:u.length,u,l,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function b(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),R(e,t)}))}function R(e,t){var r=_(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(b,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}c.inherits(g,l),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===g&&(e&&e._writableState instanceof m)}})):p=function(e){return e instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(e,t,r){var n,o=this._writableState,a=!1,s=!o.objectMode&&(n=e,d.isBuffer(n)||n instanceof f);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=v),o.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),i.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var o=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(n,a),o=!1),o}(this,o,e,r))&&(o.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else y(e,t,!1,s,n,i,o);return c}(this,o,s,e,t,r)),a},g.prototype.cork=function(){this._writableState.corked++},g.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||S(this,e))},g.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},g.prototype._writev=null,g.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,R(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),g.prototype.destroy=h.destroy,g.prototype._undestroy=h.undestroy,g.prototype._destroy=function(e,t){this.end(),t(e)}},25057:(e,t,r)=>{"use strict";var n=r(33545).Buffer,i=r(52361);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);for(var t,r,i,o=n.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,r=o,i=s,t.copy(r,i),s+=a.data.length,a=a.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},61195:(e,t,r)=>{"use strict";var n=r(88212);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):n.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},22503:(e,t,r)=>{e.exports=r(17187).EventEmitter},33545:(e,t,r)=>{var n=r(48764),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},94626:(e,t,r)=>{"use strict";var n=r(33545).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=d,t=3;break;default:return this.write=f,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(i=a(t[n]),i>=0)return i>0&&(e.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(i=a(t[n]),i>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},95799:(e,t,r)=>{e.exports=r(88473).PassThrough},88473:(e,t,r)=>{(t=e.exports=r(79481)).Stream=t,t.Readable=t,t.Writable=r(64229),t.Duplex=r(56753),t.Transform=r(74605),t.PassThrough=r(82725)},14219:(e,t,r)=>{e.exports=r(88473).Transform},84796:(e,t,r)=>{e.exports=r(64229)},35666:e=>{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new O(n||[]);return i(a,"_invoke",{value:I(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var f="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function g(){}function y(){}function E(){}var S={};u(S,a,(function(){return this}));var _=Object.getPrototypeOf,b=_&&_(_(k([])));b&&b!==r&&n.call(b,a)&&(S=b);var R=E.prototype=g.prototype=Object.create(S);function T(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(i,o,a,s){var c=d(e[i],e,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==typeof l&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(l).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function I(e,t,r){var n=f;return function(i,o){if(n===h)throw new Error("Generator is already running");if(n===v){if("throw"===i)throw o;return N()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=d(e,t,r);if("normal"===c.type){if(n=r.done?v:p,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=v,r.method="throw",r.arg=c.arg)}}}function x(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,x(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=d(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function k(e){if(e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}return{next:N}}function N(){return{value:t,done:!0}}return y.prototype=E,i(R,"constructor",{value:E,configurable:!0}),i(E,"constructor",{value:y,configurable:!0}),y.displayName=u(E,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,u(e,c,"GeneratorFunction")),e.prototype=Object.create(R),e},e.awrap=function(e){return{__await:e}},T(w.prototype),u(w.prototype,s,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new w(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},T(R),u(R,c,"Generator"),u(R,a,(function(){return this})),u(R,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=k,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:k(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},62539:(e,t,r)=>{"use strict";var n=r(57539);function i(e,t,r,i,o){var a=n.writeRtpDescription(e.kind,t);if(a+=n.writeIceParameters(e.iceGatherer.getLocalParameters()),a+=n.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===r?"actpass":o||"active"),a+="a=mid:"+e.mid+"\r\n",e.rtpSender&&e.rtpReceiver?a+="a=sendrecv\r\n":e.rtpSender?a+="a=sendonly\r\n":e.rtpReceiver?a+="a=recvonly\r\n":a+="a=inactive\r\n",e.rtpSender){var s=e.rtpSender._initialTrackId||e.rtpSender.track.id;e.rtpSender._initialTrackId=s;var c="msid:"+(i?i.id:"-")+" "+s+"\r\n";a+="a="+c,a+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+c,e.sendEncodingParameters[0].rtx&&(a+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+c,a+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return a+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+n.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(a+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+n.localCName+"\r\n"),a}function o(e,t){var r={codecs:[],headerExtensions:[],fecMechanisms:[]},n=function(e,t){e=parseInt(e,10);for(var r=0;r<t.length;r++)if(t[r].payloadType===e||t[r].preferredPayloadType===e)return t[r]},i=function(e,t,r,i){var o=n(e.parameters.apt,r),a=n(t.parameters.apt,i);return o&&a&&o.name.toLowerCase()===a.name.toLowerCase()};return e.codecs.forEach((function(n){for(var o=0;o<t.codecs.length;o++){var a=t.codecs[o];if(n.name.toLowerCase()===a.name.toLowerCase()&&n.clockRate===a.clockRate){if("rtx"===n.name.toLowerCase()&&n.parameters&&a.parameters.apt&&!i(n,a,e.codecs,t.codecs))continue;(a=JSON.parse(JSON.stringify(a))).numChannels=Math.min(n.numChannels,a.numChannels),r.codecs.push(a),a.rtcpFeedback=a.rtcpFeedback.filter((function(e){for(var t=0;t<n.rtcpFeedback.length;t++)if(n.rtcpFeedback[t].type===e.type&&n.rtcpFeedback[t].parameter===e.parameter)return!0;return!1}));break}}})),e.headerExtensions.forEach((function(e){for(var n=0;n<t.headerExtensions.length;n++){var i=t.headerExtensions[n];if(e.uri===i.uri){r.headerExtensions.push(i);break}}})),r}function a(e,t,r){return-1!=={offer:{setLocalDescription:["stable","have-local-offer"],setRemoteDescription:["stable","have-remote-offer"]},answer:{setLocalDescription:["have-remote-offer","have-local-pranswer"],setRemoteDescription:["have-local-offer","have-remote-pranswer"]}}[t][e].indexOf(r)}function s(e,t){var r=e.getRemoteCandidates().find((function(e){return t.foundation===e.foundation&&t.ip===e.ip&&t.port===e.port&&t.priority===e.priority&&t.protocol===e.protocol&&t.type===e.type}));return r||e.addRemoteCandidate(t),!r}function c(e,t){var r=new Error(t);return r.name=e,r.code={NotSupportedError:9,InvalidStateError:11,InvalidAccessError:15,TypeError:void 0,OperationError:void 0}[e],r}e.exports=function(e,t){function r(t,r){r.addTrack(t),r.dispatchEvent(new e.MediaStreamTrackEvent("addtrack",{track:t}))}function u(t,r,n,i){var o=new Event("track");o.track=r,o.receiver=n,o.transceiver={receiver:n},o.streams=i,e.setTimeout((function(){t._dispatchEvent("track",o)}))}var l=function(r){var i=this,o=document.createDocumentFragment();if(["addEventListener","removeEventListener","dispatchEvent"].forEach((function(e){i[e]=o[e].bind(o)})),this.canTrickleIceCandidates=null,this.needNegotiation=!1,this.localStreams=[],this.remoteStreams=[],this._localDescription=null,this._remoteDescription=null,this.signalingState="stable",this.iceConnectionState="new",this.connectionState="new",this.iceGatheringState="new",r=JSON.parse(JSON.stringify(r||{})),this.usingBundle="max-bundle"===r.bundlePolicy,"negotiate"===r.rtcpMuxPolicy)throw c("NotSupportedError","rtcpMuxPolicy 'negotiate' is not supported");switch(r.rtcpMuxPolicy||(r.rtcpMuxPolicy="require"),r.iceTransportPolicy){case"all":case"relay":break;default:r.iceTransportPolicy="all"}switch(r.bundlePolicy){case"balanced":case"max-compat":case"max-bundle":break;default:r.bundlePolicy="balanced"}if(r.iceServers=function(e,t){var r=!1;return(e=JSON.parse(JSON.stringify(e))).filter((function(e){if(e&&(e.urls||e.url)){var n=e.urls||e.url;e.url&&!e.urls&&console.warn("RTCIceServer.url is deprecated! Use urls instead.");var i="string"==typeof n;return i&&(n=[n]),n=n.filter((function(e){return 0!==e.indexOf("turn:")||-1===e.indexOf("transport=udp")||-1!==e.indexOf("turn:[")||r?0===e.indexOf("stun:")&&t>=14393&&-1===e.indexOf("?transport=udp"):(r=!0,!0)})),delete e.url,e.urls=i?n[0]:n,!!n.length}}))}(r.iceServers||[],t),this._iceGatherers=[],r.iceCandidatePoolSize)for(var a=r.iceCandidatePoolSize;a>0;a--)this._iceGatherers.push(new e.RTCIceGatherer({iceServers:r.iceServers,gatherPolicy:r.iceTransportPolicy}));else r.iceCandidatePoolSize=0;this._config=r,this.transceivers=[],this._sdpSessionId=n.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0,this._isClosed=!1};Object.defineProperty(l.prototype,"localDescription",{configurable:!0,get:function(){return this._localDescription}}),Object.defineProperty(l.prototype,"remoteDescription",{configurable:!0,get:function(){return this._remoteDescription}}),l.prototype.onicecandidate=null,l.prototype.onaddstream=null,l.prototype.ontrack=null,l.prototype.onremovestream=null,l.prototype.onsignalingstatechange=null,l.prototype.oniceconnectionstatechange=null,l.prototype.onconnectionstatechange=null,l.prototype.onicegatheringstatechange=null,l.prototype.onnegotiationneeded=null,l.prototype.ondatachannel=null,l.prototype._dispatchEvent=function(e,t){this._isClosed||(this.dispatchEvent(t),"function"==typeof this["on"+e]&&this["on"+e](t))},l.prototype._emitGatheringStateChange=function(){var e=new Event("icegatheringstatechange");this._dispatchEvent("icegatheringstatechange",e)},l.prototype.getConfiguration=function(){return this._config},l.prototype.getLocalStreams=function(){return this.localStreams},l.prototype.getRemoteStreams=function(){return this.remoteStreams},l.prototype._createTransceiver=function(e,t){var r=this.transceivers.length>0,n={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:e,mid:null,sendEncodingParameters:null,recvEncodingParameters:null,stream:null,associatedRemoteMediaStreams:[],wantReceive:!0};if(this.usingBundle&&r)n.iceTransport=this.transceivers[0].iceTransport,n.dtlsTransport=this.transceivers[0].dtlsTransport;else{var i=this._createIceAndDtlsTransports();n.iceTransport=i.iceTransport,n.dtlsTransport=i.dtlsTransport}return t||this.transceivers.push(n),n},l.prototype.addTrack=function(t,r){if(this._isClosed)throw c("InvalidStateError","Attempted to call addTrack on a closed peerconnection.");var n;if(this.transceivers.find((function(e){return e.track===t})))throw c("InvalidAccessError","Track already exists.");for(var i=0;i<this.transceivers.length;i++)this.transceivers[i].track||this.transceivers[i].kind!==t.kind||(n=this.transceivers[i]);return n||(n=this._createTransceiver(t.kind)),this._maybeFireNegotiationNeeded(),-1===this.localStreams.indexOf(r)&&this.localStreams.push(r),n.track=t,n.stream=r,n.rtpSender=new e.RTCRtpSender(t,n.dtlsTransport),n.rtpSender},l.prototype.addStream=function(e){var r=this;if(t>=15025)e.getTracks().forEach((function(t){r.addTrack(t,e)}));else{var n=e.clone();e.getTracks().forEach((function(e,t){var r=n.getTracks()[t];e.addEventListener("enabled",(function(e){r.enabled=e.enabled}))})),n.getTracks().forEach((function(e){r.addTrack(e,n)}))}},l.prototype.removeTrack=function(t){if(this._isClosed)throw c("InvalidStateError","Attempted to call removeTrack on a closed peerconnection.");if(!(t instanceof e.RTCRtpSender))throw new TypeError("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.");var r=this.transceivers.find((function(e){return e.rtpSender===t}));if(!r)throw c("InvalidAccessError","Sender was not created by this connection.");var n=r.stream;r.rtpSender.stop(),r.rtpSender=null,r.track=null,r.stream=null,-1===this.transceivers.map((function(e){return e.stream})).indexOf(n)&&this.localStreams.indexOf(n)>-1&&this.localStreams.splice(this.localStreams.indexOf(n),1),this._maybeFireNegotiationNeeded()},l.prototype.removeStream=function(e){var t=this;e.getTracks().forEach((function(e){var r=t.getSenders().find((function(t){return t.track===e}));r&&t.removeTrack(r)}))},l.prototype.getSenders=function(){return this.transceivers.filter((function(e){return!!e.rtpSender})).map((function(e){return e.rtpSender}))},l.prototype.getReceivers=function(){return this.transceivers.filter((function(e){return!!e.rtpReceiver})).map((function(e){return e.rtpReceiver}))},l.prototype._createIceGatherer=function(t,r){var n=this;if(r&&t>0)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var i=new e.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(i,"state",{value:"new",writable:!0}),this.transceivers[t].bufferedCandidateEvents=[],this.transceivers[t].bufferCandidates=function(e){var r=!e.candidate||0===Object.keys(e.candidate).length;i.state=r?"completed":"gathering",null!==n.transceivers[t].bufferedCandidateEvents&&n.transceivers[t].bufferedCandidateEvents.push(e)},i.addEventListener("localcandidate",this.transceivers[t].bufferCandidates),i},l.prototype._gather=function(t,r){var i=this,o=this.transceivers[r].iceGatherer;if(!o.onlocalcandidate){var a=this.transceivers[r].bufferedCandidateEvents;this.transceivers[r].bufferedCandidateEvents=null,o.removeEventListener("localcandidate",this.transceivers[r].bufferCandidates),o.onlocalcandidate=function(e){if(!(i.usingBundle&&r>0)){var a=new Event("icecandidate");a.candidate={sdpMid:t,sdpMLineIndex:r};var s=e.candidate,c=!s||0===Object.keys(s).length;if(c)"new"!==o.state&&"gathering"!==o.state||(o.state="completed");else{"new"===o.state&&(o.state="gathering"),s.component=1,s.ufrag=o.getLocalParameters().usernameFragment;var u=n.writeCandidate(s);a.candidate=Object.assign(a.candidate,n.parseCandidate(u)),a.candidate.candidate=u,a.candidate.toJSON=function(){return{candidate:a.candidate.candidate,sdpMid:a.candidate.sdpMid,sdpMLineIndex:a.candidate.sdpMLineIndex,usernameFragment:a.candidate.usernameFragment}}}var l=n.getMediaSections(i._localDescription.sdp);l[a.candidate.sdpMLineIndex]+=c?"a=end-of-candidates\r\n":"a="+a.candidate.candidate+"\r\n",i._localDescription.sdp=n.getDescription(i._localDescription.sdp)+l.join("");var d=i.transceivers.every((function(e){return e.iceGatherer&&"completed"===e.iceGatherer.state}));"gathering"!==i.iceGatheringState&&(i.iceGatheringState="gathering",i._emitGatheringStateChange()),c||i._dispatchEvent("icecandidate",a),d&&(i._dispatchEvent("icecandidate",new Event("icecandidate")),i.iceGatheringState="complete",i._emitGatheringStateChange())}},e.setTimeout((function(){a.forEach((function(e){o.onlocalcandidate(e)}))}),0)}},l.prototype._createIceAndDtlsTransports=function(){var t=this,r=new e.RTCIceTransport(null);r.onicestatechange=function(){t._updateIceConnectionState(),t._updateConnectionState()};var n=new e.RTCDtlsTransport(r);return n.ondtlsstatechange=function(){t._updateConnectionState()},n.onerror=function(){Object.defineProperty(n,"state",{value:"failed",writable:!0}),t._updateConnectionState()},{iceTransport:r,dtlsTransport:n}},l.prototype._disposeIceAndDtlsTransports=function(e){var t=this.transceivers[e].iceGatherer;t&&(delete t.onlocalcandidate,delete this.transceivers[e].iceGatherer);var r=this.transceivers[e].iceTransport;r&&(delete r.onicestatechange,delete this.transceivers[e].iceTransport);var n=this.transceivers[e].dtlsTransport;n&&(delete n.ondtlsstatechange,delete n.onerror,delete this.transceivers[e].dtlsTransport)},l.prototype._transceive=function(e,r,i){var a=o(e.localCapabilities,e.remoteCapabilities);r&&e.rtpSender&&(a.encodings=e.sendEncodingParameters,a.rtcp={cname:n.localCName,compound:e.rtcpParameters.compound},e.recvEncodingParameters.length&&(a.rtcp.ssrc=e.recvEncodingParameters[0].ssrc),e.rtpSender.send(a)),i&&e.rtpReceiver&&a.codecs.length>0&&("video"===e.kind&&e.recvEncodingParameters&&t<15019&&e.recvEncodingParameters.forEach((function(e){delete e.rtx})),e.recvEncodingParameters.length?a.encodings=e.recvEncodingParameters:a.encodings=[{}],a.rtcp={compound:e.rtcpParameters.compound},e.rtcpParameters.cname&&(a.rtcp.cname=e.rtcpParameters.cname),e.sendEncodingParameters.length&&(a.rtcp.ssrc=e.sendEncodingParameters[0].ssrc),e.rtpReceiver.receive(a))},l.prototype.setLocalDescription=function(e){var t,r,i=this;if(-1===["offer","answer"].indexOf(e.type))return Promise.reject(c("TypeError",'Unsupported type "'+e.type+'"'));if(!a("setLocalDescription",e.type,i.signalingState)||i._isClosed)return Promise.reject(c("InvalidStateError","Can not set local "+e.type+" in state "+i.signalingState));if("offer"===e.type)t=n.splitSections(e.sdp),r=t.shift(),t.forEach((function(e,t){var r=n.parseRtpParameters(e);i.transceivers[t].localCapabilities=r})),i.transceivers.forEach((function(e,t){i._gather(e.mid,t)}));else if("answer"===e.type){t=n.splitSections(i._remoteDescription.sdp),r=t.shift();var s=n.matchPrefix(r,"a=ice-lite").length>0;t.forEach((function(e,t){var a=i.transceivers[t],c=a.iceGatherer,u=a.iceTransport,l=a.dtlsTransport,d=a.localCapabilities,f=a.remoteCapabilities;if(!(n.isRejected(e)&&0===n.matchPrefix(e,"a=bundle-only").length)&&!a.rejected){var p=n.getIceParameters(e,r),h=n.getDtlsParameters(e,r);s&&(h.role="server"),i.usingBundle&&0!==t||(i._gather(a.mid,t),"new"===u.state&&u.start(c,p,s?"controlling":"controlled"),"new"===l.state&&l.start(h));var v=o(d,f);i._transceive(a,v.codecs.length>0,!1)}}))}return i._localDescription={type:e.type,sdp:e.sdp},"offer"===e.type?i._updateSignalingState("have-local-offer"):i._updateSignalingState("stable"),Promise.resolve()},l.prototype.setRemoteDescription=function(i){var l=this;if(-1===["offer","answer"].indexOf(i.type))return Promise.reject(c("TypeError",'Unsupported type "'+i.type+'"'));if(!a("setRemoteDescription",i.type,l.signalingState)||l._isClosed)return Promise.reject(c("InvalidStateError","Can not set remote "+i.type+" in state "+l.signalingState));var d={};l.remoteStreams.forEach((function(e){d[e.id]=e}));var f=[],p=n.splitSections(i.sdp),h=p.shift(),v=n.matchPrefix(h,"a=ice-lite").length>0,m=n.matchPrefix(h,"a=group:BUNDLE ").length>0;l.usingBundle=m;var g=n.matchPrefix(h,"a=ice-options:")[0];return l.canTrickleIceCandidates=!!g&&g.substr(14).split(" ").indexOf("trickle")>=0,p.forEach((function(a,c){var u=n.splitLines(a),p=n.getKind(a),g=n.isRejected(a)&&0===n.matchPrefix(a,"a=bundle-only").length,y=u[0].substr(2).split(" ")[2],E=n.getDirection(a,h),S=n.parseMsid(a),_=n.getMid(a)||n.generateIdentifier();if(g||"application"===p&&("DTLS/SCTP"===y||"UDP/DTLS/SCTP"===y))l.transceivers[c]={mid:_,kind:p,protocol:y,rejected:!0};else{var b,R,T,w,I,x,A,C,O;!g&&l.transceivers[c]&&l.transceivers[c].rejected&&(l.transceivers[c]=l._createTransceiver(p,!0));var k,N,L=n.parseRtpParameters(a);g||(k=n.getIceParameters(a,h),(N=n.getDtlsParameters(a,h)).role="client"),A=n.parseRtpEncodingParameters(a);var P=n.parseRtcpParameters(a),M=n.matchPrefix(a,"a=end-of-candidates",h).length>0,D=n.matchPrefix(a,"a=candidate:").map((function(e){return n.parseCandidate(e)})).filter((function(e){return 1===e.component}));if(("offer"===i.type||"answer"===i.type)&&!g&&m&&c>0&&l.transceivers[c]&&(l._disposeIceAndDtlsTransports(c),l.transceivers[c].iceGatherer=l.transceivers[0].iceGatherer,l.transceivers[c].iceTransport=l.transceivers[0].iceTransport,l.transceivers[c].dtlsTransport=l.transceivers[0].dtlsTransport,l.transceivers[c].rtpSender&&l.transceivers[c].rtpSender.setTransport(l.transceivers[0].dtlsTransport),l.transceivers[c].rtpReceiver&&l.transceivers[c].rtpReceiver.setTransport(l.transceivers[0].dtlsTransport)),"offer"!==i.type||g){if("answer"===i.type&&!g){R=(b=l.transceivers[c]).iceGatherer,T=b.iceTransport,w=b.dtlsTransport,I=b.rtpReceiver,x=b.sendEncodingParameters,C=b.localCapabilities,l.transceivers[c].recvEncodingParameters=A,l.transceivers[c].remoteCapabilities=L,l.transceivers[c].rtcpParameters=P,D.length&&"new"===T.state&&(!v&&!M||m&&0!==c?D.forEach((function(e){s(b.iceTransport,e)})):T.setRemoteCandidates(D)),m&&0!==c||("new"===T.state&&T.start(R,k,"controlling"),"new"===w.state&&w.start(N)),!o(b.localCapabilities,b.remoteCapabilities).codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length&&b.sendEncodingParameters[0].rtx&&delete b.sendEncodingParameters[0].rtx,l._transceive(b,"sendrecv"===E||"recvonly"===E,"sendrecv"===E||"sendonly"===E),!I||"sendrecv"!==E&&"sendonly"!==E?delete b.rtpReceiver:(O=I.track,S?(d[S.stream]||(d[S.stream]=new e.MediaStream),r(O,d[S.stream]),f.push([O,I,d[S.stream]])):(d.default||(d.default=new e.MediaStream),r(O,d.default),f.push([O,I,d.default])))}}else{(b=l.transceivers[c]||l._createTransceiver(p)).mid=_,b.iceGatherer||(b.iceGatherer=l._createIceGatherer(c,m)),D.length&&"new"===b.iceTransport.state&&(!M||m&&0!==c?D.forEach((function(e){s(b.iceTransport,e)})):b.iceTransport.setRemoteCandidates(D)),C=e.RTCRtpReceiver.getCapabilities(p),t<15019&&(C.codecs=C.codecs.filter((function(e){return"rtx"!==e.name}))),x=b.sendEncodingParameters||[{ssrc:1001*(2*c+2)}];var U,j=!1;if("sendrecv"===E||"sendonly"===E){if(j=!b.rtpReceiver,I=b.rtpReceiver||new e.RTCRtpReceiver(b.dtlsTransport,p),j)O=I.track,S&&"-"===S.stream||(S?(d[S.stream]||(d[S.stream]=new e.MediaStream,Object.defineProperty(d[S.stream],"id",{get:function(){return S.stream}})),Object.defineProperty(O,"id",{get:function(){return S.track}}),U=d[S.stream]):(d.default||(d.default=new e.MediaStream),U=d.default)),U&&(r(O,U),b.associatedRemoteMediaStreams.push(U)),f.push([O,I,U])}else b.rtpReceiver&&b.rtpReceiver.track&&(b.associatedRemoteMediaStreams.forEach((function(t){var r=t.getTracks().find((function(e){return e.id===b.rtpReceiver.track.id}));r&&function(t,r){r.removeTrack(t),r.dispatchEvent(new e.MediaStreamTrackEvent("removetrack",{track:t}))}(r,t)})),b.associatedRemoteMediaStreams=[]);b.localCapabilities=C,b.remoteCapabilities=L,b.rtpReceiver=I,b.rtcpParameters=P,b.sendEncodingParameters=x,b.recvEncodingParameters=A,l._transceive(l.transceivers[c],!1,j)}}})),void 0===l._dtlsRole&&(l._dtlsRole="offer"===i.type?"active":"passive"),l._remoteDescription={type:i.type,sdp:i.sdp},"offer"===i.type?l._updateSignalingState("have-remote-offer"):l._updateSignalingState("stable"),Object.keys(d).forEach((function(t){var r=d[t];if(r.getTracks().length){if(-1===l.remoteStreams.indexOf(r)){l.remoteStreams.push(r);var n=new Event("addstream");n.stream=r,e.setTimeout((function(){l._dispatchEvent("addstream",n)}))}f.forEach((function(e){var t=e[0],n=e[1];r.id===e[2].id&&u(l,t,n,[r])}))}})),f.forEach((function(e){e[2]||u(l,e[0],e[1],[])})),e.setTimeout((function(){l&&l.transceivers&&l.transceivers.forEach((function(e){e.iceTransport&&"new"===e.iceTransport.state&&e.iceTransport.getRemoteCandidates().length>0&&(console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification"),e.iceTransport.addRemoteCandidate({}))}))}),4e3),Promise.resolve()},l.prototype.close=function(){this.transceivers.forEach((function(e){e.iceTransport&&e.iceTransport.stop(),e.dtlsTransport&&e.dtlsTransport.stop(),e.rtpSender&&e.rtpSender.stop(),e.rtpReceiver&&e.rtpReceiver.stop()})),this._isClosed=!0,this._updateSignalingState("closed")},l.prototype._updateSignalingState=function(e){this.signalingState=e;var t=new Event("signalingstatechange");this._dispatchEvent("signalingstatechange",t)},l.prototype._maybeFireNegotiationNeeded=function(){var t=this;"stable"===this.signalingState&&!0!==this.needNegotiation&&(this.needNegotiation=!0,e.setTimeout((function(){if(t.needNegotiation){t.needNegotiation=!1;var e=new Event("negotiationneeded");t._dispatchEvent("negotiationneeded",e)}}),0))},l.prototype._updateIceConnectionState=function(){var e,t={new:0,closed:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach((function(e){e.iceTransport&&!e.rejected&&t[e.iceTransport.state]++})),e="new",t.failed>0?e="failed":t.checking>0?e="checking":t.disconnected>0?e="disconnected":t.new>0?e="new":t.connected>0?e="connected":t.completed>0&&(e="completed"),e!==this.iceConnectionState){this.iceConnectionState=e;var r=new Event("iceconnectionstatechange");this._dispatchEvent("iceconnectionstatechange",r)}},l.prototype._updateConnectionState=function(){var e,t={new:0,closed:0,connecting:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach((function(e){e.iceTransport&&e.dtlsTransport&&!e.rejected&&(t[e.iceTransport.state]++,t[e.dtlsTransport.state]++)})),t.connected+=t.completed,e="new",t.failed>0?e="failed":t.connecting>0?e="connecting":t.disconnected>0?e="disconnected":t.new>0?e="new":t.connected>0&&(e="connected"),e!==this.connectionState){this.connectionState=e;var r=new Event("connectionstatechange");this._dispatchEvent("connectionstatechange",r)}},l.prototype.createOffer=function(){var r=this;if(r._isClosed)return Promise.reject(c("InvalidStateError","Can not call createOffer after close"));var o=r.transceivers.filter((function(e){return"audio"===e.kind})).length,a=r.transceivers.filter((function(e){return"video"===e.kind})).length,s=arguments[0];if(s){if(s.mandatory||s.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==s.offerToReceiveAudio&&(o=!0===s.offerToReceiveAudio?1:!1===s.offerToReceiveAudio?0:s.offerToReceiveAudio),void 0!==s.offerToReceiveVideo&&(a=!0===s.offerToReceiveVideo?1:!1===s.offerToReceiveVideo?0:s.offerToReceiveVideo)}for(r.transceivers.forEach((function(e){"audio"===e.kind?--o<0&&(e.wantReceive=!1):"video"===e.kind&&--a<0&&(e.wantReceive=!1)}));o>0||a>0;)o>0&&(r._createTransceiver("audio"),o--),a>0&&(r._createTransceiver("video"),a--);var u=n.writeSessionBoilerplate(r._sdpSessionId,r._sdpSessionVersion++);r.transceivers.forEach((function(i,o){var a=i.track,s=i.kind,c=i.mid||n.generateIdentifier();i.mid=c,i.iceGatherer||(i.iceGatherer=r._createIceGatherer(o,r.usingBundle));var u=e.RTCRtpSender.getCapabilities(s);t<15019&&(u.codecs=u.codecs.filter((function(e){return"rtx"!==e.name}))),u.codecs.forEach((function(e){"H264"===e.name&&void 0===e.parameters["level-asymmetry-allowed"]&&(e.parameters["level-asymmetry-allowed"]="1"),i.remoteCapabilities&&i.remoteCapabilities.codecs&&i.remoteCapabilities.codecs.forEach((function(t){e.name.toLowerCase()===t.name.toLowerCase()&&e.clockRate===t.clockRate&&(e.preferredPayloadType=t.payloadType)}))})),u.headerExtensions.forEach((function(e){(i.remoteCapabilities&&i.remoteCapabilities.headerExtensions||[]).forEach((function(t){e.uri===t.uri&&(e.id=t.id)}))}));var l=i.sendEncodingParameters||[{ssrc:1001*(2*o+1)}];a&&t>=15019&&"video"===s&&!l[0].rtx&&(l[0].rtx={ssrc:l[0].ssrc+1}),i.wantReceive&&(i.rtpReceiver=new e.RTCRtpReceiver(i.dtlsTransport,s)),i.localCapabilities=u,i.sendEncodingParameters=l})),"max-compat"!==r._config.bundlePolicy&&(u+="a=group:BUNDLE "+r.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),u+="a=ice-options:trickle\r\n",r.transceivers.forEach((function(e,t){u+=i(e,e.localCapabilities,"offer",e.stream,r._dtlsRole),u+="a=rtcp-rsize\r\n",!e.iceGatherer||"new"===r.iceGatheringState||0!==t&&r.usingBundle||(e.iceGatherer.getLocalCandidates().forEach((function(e){e.component=1,u+="a="+n.writeCandidate(e)+"\r\n"})),"completed"===e.iceGatherer.state&&(u+="a=end-of-candidates\r\n"))}));var l=new e.RTCSessionDescription({type:"offer",sdp:u});return Promise.resolve(l)},l.prototype.createAnswer=function(){var r=this;if(r._isClosed)return Promise.reject(c("InvalidStateError","Can not call createAnswer after close"));if("have-remote-offer"!==r.signalingState&&"have-local-pranswer"!==r.signalingState)return Promise.reject(c("InvalidStateError","Can not call createAnswer in signalingState "+r.signalingState));var a=n.writeSessionBoilerplate(r._sdpSessionId,r._sdpSessionVersion++);r.usingBundle&&(a+="a=group:BUNDLE "+r.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),a+="a=ice-options:trickle\r\n";var s=n.getMediaSections(r._remoteDescription.sdp).length;r.transceivers.forEach((function(e,n){if(!(n+1>s)){if(e.rejected)return"application"===e.kind?"DTLS/SCTP"===e.protocol?a+="m=application 0 DTLS/SCTP 5000\r\n":a+="m=application 0 "+e.protocol+" webrtc-datachannel\r\n":"audio"===e.kind?a+="m=audio 0 UDP/TLS/RTP/SAVPF 0\r\na=rtpmap:0 PCMU/8000\r\n":"video"===e.kind&&(a+="m=video 0 UDP/TLS/RTP/SAVPF 120\r\na=rtpmap:120 VP8/90000\r\n"),void(a+="c=IN IP4 0.0.0.0\r\na=inactive\r\na=mid:"+e.mid+"\r\n");var c;if(e.stream)"audio"===e.kind?c=e.stream.getAudioTracks()[0]:"video"===e.kind&&(c=e.stream.getVideoTracks()[0]),c&&t>=15019&&"video"===e.kind&&!e.sendEncodingParameters[0].rtx&&(e.sendEncodingParameters[0].rtx={ssrc:e.sendEncodingParameters[0].ssrc+1});var u=o(e.localCapabilities,e.remoteCapabilities);!u.codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length&&e.sendEncodingParameters[0].rtx&&delete e.sendEncodingParameters[0].rtx,a+=i(e,u,"answer",e.stream,r._dtlsRole),e.rtcpParameters&&e.rtcpParameters.reducedSize&&(a+="a=rtcp-rsize\r\n")}}));var u=new e.RTCSessionDescription({type:"answer",sdp:a});return Promise.resolve(u)},l.prototype.addIceCandidate=function(e){var t,r=this;return e&&void 0===e.sdpMLineIndex&&!e.sdpMid?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise((function(i,o){if(!r._remoteDescription)return o(c("InvalidStateError","Can not add ICE candidate without a remote description"));if(e&&""!==e.candidate){var a=e.sdpMLineIndex;if(e.sdpMid)for(var u=0;u<r.transceivers.length;u++)if(r.transceivers[u].mid===e.sdpMid){a=u;break}var l=r.transceivers[a];if(!l)return o(c("OperationError","Can not add ICE candidate"));if(l.rejected)return i();var d=Object.keys(e.candidate).length>0?n.parseCandidate(e.candidate):{};if("tcp"===d.protocol&&(0===d.port||9===d.port))return i();if(d.component&&1!==d.component)return i();if((0===a||a>0&&l.iceTransport!==r.transceivers[0].iceTransport)&&!s(l.iceTransport,d))return o(c("OperationError","Can not add ICE candidate"));var f=e.candidate.trim();0===f.indexOf("a=")&&(f=f.substr(2)),(t=n.getMediaSections(r._remoteDescription.sdp))[a]+="a="+(d.type?f:"end-of-candidates")+"\r\n",r._remoteDescription.sdp=n.getDescription(r._remoteDescription.sdp)+t.join("")}else for(var p=0;p<r.transceivers.length&&(r.transceivers[p].rejected||(r.transceivers[p].iceTransport.addRemoteCandidate({}),(t=n.getMediaSections(r._remoteDescription.sdp))[p]+="a=end-of-candidates\r\n",r._remoteDescription.sdp=n.getDescription(r._remoteDescription.sdp)+t.join(""),!r.usingBundle));p++);i()}))},l.prototype.getStats=function(t){if(t&&t instanceof e.MediaStreamTrack){var r=null;if(this.transceivers.forEach((function(e){e.rtpSender&&e.rtpSender.track===t?r=e.rtpSender:e.rtpReceiver&&e.rtpReceiver.track===t&&(r=e.rtpReceiver)})),!r)throw c("InvalidAccessError","Invalid selector.");return r.getStats()}var n=[];return this.transceivers.forEach((function(e){["rtpSender","rtpReceiver","iceGatherer","iceTransport","dtlsTransport"].forEach((function(t){e[t]&&n.push(e[t].getStats())}))})),Promise.all(n).then((function(e){var t=new Map;return e.forEach((function(e){e.forEach((function(e){t.set(e.id,e)}))})),t}))};["RTCRtpSender","RTCRtpReceiver","RTCIceGatherer","RTCIceTransport","RTCDtlsTransport"].forEach((function(t){var r=e[t];if(r&&r.prototype&&r.prototype.getStats){var n=r.prototype.getStats;r.prototype.getStats=function(){return n.apply(this).then((function(e){var t=new Map;return Object.keys(e).forEach((function(r){var n;e[r].type={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[(n=e[r]).type]||n.type,t.set(r,e[r])})),t}))}}}));var d=["createOffer","createAnswer"];return d.forEach((function(e){var t=l.prototype[e];l.prototype[e]=function(){var e=arguments;return"function"==typeof e[0]||"function"==typeof e[1]?t.apply(this,[arguments[2]]).then((function(t){"function"==typeof e[0]&&e[0].apply(null,[t])}),(function(t){"function"==typeof e[1]&&e[1].apply(null,[t])})):t.apply(this,arguments)}})),(d=["setLocalDescription","setRemoteDescription","addIceCandidate"]).forEach((function(e){var t=l.prototype[e];l.prototype[e]=function(){var e=arguments;return"function"==typeof e[1]||"function"==typeof e[2]?t.apply(this,arguments).then((function(){"function"==typeof e[1]&&e[1].apply(null)}),(function(t){"function"==typeof e[2]&&e[2].apply(null,[t])})):t.apply(this,arguments)}})),["getStats"].forEach((function(e){var t=l.prototype[e];l.prototype[e]=function(){var e=arguments;return"function"==typeof e[1]?t.apply(this,arguments).then((function(){"function"==typeof e[1]&&e[1].apply(null)})):t.apply(this,arguments)}})),l}},89509:(e,t,r)=>{var n=r(48764),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},96692:e=>{var t=e.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(e){return e.encoding?"rtpmap:%d %s/%s/%s":e.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(e){return null!=e.address?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(e){return null!=e.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(e){return"extmap:%d"+(e.direction?"/%s":"%v")+(e["encrypt-uri"]?" %s":"%v")+" %s"+(e.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(e){return null!=e.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(e){var t="candidate:%s %d %s %d %s %d typ %s";return t+=null!=e.raddr?" raddr %s rport %d":"%v%v",t+=null!=e.tcptype?" tcptype %s":"%v",null!=e.generation&&(t+=" generation %d"),t+=null!=e["network-id"]?" network-id %d":"%v",t+=null!=e["network-cost"]?" network-cost %d":"%v"}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(e){var t="ssrc:%d";return null!=e.attribute&&(t+=" %s",null!=e.value&&(t+=":%s")),t}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(e){return null!=e.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(e){return e.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(e){return"imageattr:%s %s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(e){return"simulcast:%s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(e){return"ts-refclk:%s"+(null!=e.clksrcExt?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(e){var t="mediaclk:";return t+=null!=e.id?"id=%s %s":"%v%s",t+=null!=e.mediaClockValue?"=%s":"",t+=null!=e.rateNumerator?" rate=%s":"",t+=null!=e.rateDenominator?"/%s":""}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};Object.keys(t).forEach((function(e){t[e].forEach((function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")}))}))},70766:(e,t,r)=>{var n=r(70962),i=r(95776);t.write=i,t.parse=n.parse,t.parseParams=n.parseParams,t.parseFmtpConfig=n.parseFmtpConfig,t.parsePayloads=n.parsePayloads,t.parseRemoteCandidates=n.parseRemoteCandidates,t.parseImageAttributes=n.parseImageAttributes,t.parseSimulcastStreamList=n.parseSimulcastStreamList},70962:(e,t,r)=>{var n=function(e){return String(Number(e))===e?Number(e):e},i=function(e,t,r){var i=e.name&&e.names;e.push&&!t[e.push]?t[e.push]=[]:i&&!t[e.name]&&(t[e.name]={});var o=e.push?{}:i?t[e.name]:t;!function(e,t,r,i){if(i&&!r)t[i]=n(e[1]);else for(var o=0;o<r.length;o+=1)null!=e[o+1]&&(t[r[o]]=n(e[o+1]))}(r.match(e.reg),o,e.names,e.name),e.push&&t[e.push].push(o)},o=r(96692),a=RegExp.prototype.test.bind(/^([a-z])=(.*)/);t.parse=function(e){var t={},r=[],n=t;return e.split(/(\r\n|\r|\n)/).filter(a).forEach((function(e){var t=e[0],a=e.slice(2);"m"===t&&(r.push({rtp:[],fmtp:[]}),n=r[r.length-1]);for(var s=0;s<(o[t]||[]).length;s+=1){var c=o[t][s];if(c.reg.test(a))return i(c,n,a)}})),t.media=r,t};var s=function(e,t){var r=t.split(/=(.+)/,2);return 2===r.length?e[r[0]]=n(r[1]):1===r.length&&t.length>1&&(e[r[0]]=void 0),e};t.parseParams=function(e){return e.split(/;\s?/).reduce(s,{})},t.parseFmtpConfig=t.parseParams,t.parsePayloads=function(e){return e.toString().split(" ").map(Number)},t.parseRemoteCandidates=function(e){for(var t=[],r=e.split(" ").map(n),i=0;i<r.length;i+=3)t.push({component:r[i],ip:r[i+1],port:r[i+2]});return t},t.parseImageAttributes=function(e){return e.split(" ").map((function(e){return e.substring(1,e.length-1).split(",").reduce(s,{})}))},t.parseSimulcastStreamList=function(e){return e.split(";").map((function(e){return e.split(",").map((function(e){var t,r=!1;return"~"!==e[0]?t=n(e):(t=n(e.substring(1,e.length)),r=!0),{scid:t,paused:r}}))}))}},95776:(e,t,r)=>{var n=r(96692),i=/%[sdv%]/g,o=function(e){var t=1,r=arguments,n=r.length;return e.replace(i,(function(e){if(t>=n)return e;var i=r[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(i);case"%d":return Number(i);case"%v":return""}}))},a=function(e,t,r){var n=[e+"="+(t.format instanceof Function?t.format(t.push?r:r[t.name]):t.format)];if(t.names)for(var i=0;i<t.names.length;i+=1){var a=t.names[i];t.name?n.push(r[t.name][a]):n.push(r[t.names[i]])}else n.push(r[t.name]);return o.apply(null,n)},s=["v","o","s","i","u","e","p","c","b","t","r","z","a"],c=["i","c","b","a"];e.exports=function(e,t){t=t||{},null==e.version&&(e.version=0),null==e.name&&(e.name=" "),e.media.forEach((function(e){null==e.payloads&&(e.payloads="")}));var r=t.outerOrder||s,i=t.innerOrder||c,o=[];return r.forEach((function(t){n[t].forEach((function(r){r.name in e&&null!=e[r.name]?o.push(a(t,r,e)):r.push in e&&null!=e[r.push]&&e[r.push].forEach((function(e){o.push(a(t,r,e))}))}))})),e.media.forEach((function(e){o.push(a("m",n.m[0],e)),i.forEach((function(t){n[t].forEach((function(r){r.name in e&&null!=e[r.name]?o.push(a(t,r,e)):r.push in e&&null!=e[r.push]&&e[r.push].forEach((function(e){o.push(a(t,r,e))}))}))}))})),o.join("\r\n")+"\r\n"}},57539:e=>{"use strict";var t={generateIdentifier:function(){return Math.random().toString(36).substr(2,10)}};t.localCName=t.generateIdentifier(),t.splitLines=function(e){return e.trim().split("\n").map((function(e){return e.trim()}))},t.splitSections=function(e){return e.split("\nm=").map((function(e,t){return(t>0?"m="+e:e).trim()+"\r\n"}))},t.getDescription=function(e){var r=t.splitSections(e);return r&&r[0]},t.getMediaSections=function(e){var r=t.splitSections(e);return r.shift(),r},t.matchPrefix=function(e,r){return t.splitLines(e).filter((function(e){return 0===e.indexOf(r)}))},t.parseCandidate=function(e){for(var t,r={foundation:(t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" "))[0],component:parseInt(t[1],10),protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]},n=8;n<t.length;n+=2)switch(t[n]){case"raddr":r.relatedAddress=t[n+1];break;case"rport":r.relatedPort=parseInt(t[n+1],10);break;case"tcptype":r.tcpType=t[n+1];break;case"ufrag":r.ufrag=t[n+1],r.usernameFragment=t[n+1];break;default:r[t[n]]=t[n+1]}return r},t.writeCandidate=function(e){var t=[];t.push(e.foundation),t.push(e.component),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);var r=e.type;return t.push("typ"),t.push(r),"host"!==r&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(t.push("tcptype"),t.push(e.tcpType)),(e.usernameFragment||e.ufrag)&&(t.push("ufrag"),t.push(e.usernameFragment||e.ufrag)),"candidate:"+t.join(" ")},t.parseIceOptions=function(e){return e.substr(14).split(" ")},t.parseRtpMap=function(e){var t=e.substr(9).split(" "),r={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),r.name=t[0],r.clockRate=parseInt(t[1],10),r.channels=3===t.length?parseInt(t[2],10):1,r.numChannels=r.channels,r},t.writeRtpMap=function(e){var t=e.payloadType;void 0!==e.preferredPayloadType&&(t=e.preferredPayloadType);var r=e.channels||e.numChannels||1;return"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(1!==r?"/"+r:"")+"\r\n"},t.parseExtmap=function(e){var t=e.substr(9).split(" ");return{id:parseInt(t[0],10),direction:t[0].indexOf("/")>0?t[0].split("/")[1]:"sendrecv",uri:t[1]}},t.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+"\r\n"},t.parseFmtp=function(e){for(var t,r={},n=e.substr(e.indexOf(" ")+1).split(";"),i=0;i<n.length;i++)r[(t=n[i].trim().split("="))[0].trim()]=t[1];return r},t.writeFmtp=function(e){var t="",r=e.payloadType;if(void 0!==e.preferredPayloadType&&(r=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){var n=[];Object.keys(e.parameters).forEach((function(t){e.parameters[t]?n.push(t+"="+e.parameters[t]):n.push(t)})),t+="a=fmtp:"+r+" "+n.join(";")+"\r\n"}return t},t.parseRtcpFb=function(e){var t=e.substr(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},t.writeRtcpFb=function(e){var t="",r=e.payloadType;return void 0!==e.preferredPayloadType&&(r=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach((function(e){t+="a=rtcp-fb:"+r+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"})),t},t.parseSsrcMedia=function(e){var t=e.indexOf(" "),r={ssrc:parseInt(e.substr(7,t-7),10)},n=e.indexOf(":",t);return n>-1?(r.attribute=e.substr(t+1,n-t-1),r.value=e.substr(n+1)):r.attribute=e.substr(t+1),r},t.parseSsrcGroup=function(e){var t=e.substr(13).split(" ");return{semantics:t.shift(),ssrcs:t.map((function(e){return parseInt(e,10)}))}},t.getMid=function(e){var r=t.matchPrefix(e,"a=mid:")[0];if(r)return r.substr(6)},t.parseFingerprint=function(e){var t=e.substr(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1]}},t.getDtlsParameters=function(e,r){return{role:"auto",fingerprints:t.matchPrefix(e+r,"a=fingerprint:").map(t.parseFingerprint)}},t.writeDtlsParameters=function(e,t){var r="a=setup:"+t+"\r\n";return e.fingerprints.forEach((function(e){r+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"})),r},t.parseCryptoLine=function(e){var t=e.substr(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},t.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"==typeof e.keyParams?t.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},t.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;var t=e.substr(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0}},t.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},t.getCryptoParameters=function(e,r){return t.matchPrefix(e+r,"a=crypto:").map(t.parseCryptoLine)},t.getIceParameters=function(e,r){var n=t.matchPrefix(e+r,"a=ice-ufrag:")[0],i=t.matchPrefix(e+r,"a=ice-pwd:")[0];return n&&i?{usernameFragment:n.substr(12),password:i.substr(10)}:null},t.writeIceParameters=function(e){return"a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n"},t.parseRtpParameters=function(e){for(var r={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},n=t.splitLines(e)[0].split(" "),i=3;i<n.length;i++){var o=n[i],a=t.matchPrefix(e,"a=rtpmap:"+o+" ")[0];if(a){var s=t.parseRtpMap(a),c=t.matchPrefix(e,"a=fmtp:"+o+" ");switch(s.parameters=c.length?t.parseFmtp(c[0]):{},s.rtcpFeedback=t.matchPrefix(e,"a=rtcp-fb:"+o+" ").map(t.parseRtcpFb),r.codecs.push(s),s.name.toUpperCase()){case"RED":case"ULPFEC":r.fecMechanisms.push(s.name.toUpperCase())}}}return t.matchPrefix(e,"a=extmap:").forEach((function(e){r.headerExtensions.push(t.parseExtmap(e))})),r},t.writeRtpDescription=function(e,r){var n="";n+="m="+e+" ",n+=r.codecs.length>0?"9":"0",n+=" UDP/TLS/RTP/SAVPF ",n+=r.codecs.map((function(e){return void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType})).join(" ")+"\r\n",n+="c=IN IP4 0.0.0.0\r\n",n+="a=rtcp:9 IN IP4 0.0.0.0\r\n",r.codecs.forEach((function(e){n+=t.writeRtpMap(e),n+=t.writeFmtp(e),n+=t.writeRtcpFb(e)}));var i=0;return r.codecs.forEach((function(e){e.maxptime>i&&(i=e.maxptime)})),i>0&&(n+="a=maxptime:"+i+"\r\n"),n+="a=rtcp-mux\r\n",r.headerExtensions&&r.headerExtensions.forEach((function(e){n+=t.writeExtmap(e)})),n},t.parseRtpEncodingParameters=function(e){var r,n=[],i=t.parseRtpParameters(e),o=-1!==i.fecMechanisms.indexOf("RED"),a=-1!==i.fecMechanisms.indexOf("ULPFEC"),s=t.matchPrefix(e,"a=ssrc:").map((function(e){return t.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute})),c=s.length>0&&s[0].ssrc,u=t.matchPrefix(e,"a=ssrc-group:FID").map((function(e){return e.substr(17).split(" ").map((function(e){return parseInt(e,10)}))}));u.length>0&&u[0].length>1&&u[0][0]===c&&(r=u[0][1]),i.codecs.forEach((function(e){if("RTX"===e.name.toUpperCase()&&e.parameters.apt){var t={ssrc:c,codecPayloadType:parseInt(e.parameters.apt,10)};c&&r&&(t.rtx={ssrc:r}),n.push(t),o&&((t=JSON.parse(JSON.stringify(t))).fec={ssrc:c,mechanism:a?"red+ulpfec":"red"},n.push(t))}})),0===n.length&&c&&n.push({ssrc:c});var l=t.matchPrefix(e,"b=");return l.length&&(l=0===l[0].indexOf("b=TIAS:")?parseInt(l[0].substr(7),10):0===l[0].indexOf("b=AS:")?1e3*parseInt(l[0].substr(5),10)*.95-16e3:void 0,n.forEach((function(e){e.maxBitrate=l}))),n},t.parseRtcpParameters=function(e){var r={},n=t.matchPrefix(e,"a=ssrc:").map((function(e){return t.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute}))[0];n&&(r.cname=n.value,r.ssrc=n.ssrc);var i=t.matchPrefix(e,"a=rtcp-rsize");r.reducedSize=i.length>0,r.compound=0===i.length;var o=t.matchPrefix(e,"a=rtcp-mux");return r.mux=o.length>0,r},t.parseMsid=function(e){var r,n=t.matchPrefix(e,"a=msid:");if(1===n.length)return{stream:(r=n[0].substr(7).split(" "))[0],track:r[1]};var i=t.matchPrefix(e,"a=ssrc:").map((function(e){return t.parseSsrcMedia(e)})).filter((function(e){return"msid"===e.attribute}));return i.length>0?{stream:(r=i[0].value.split(" "))[0],track:r[1]}:void 0},t.parseSctpDescription=function(e){var r,n=t.parseMLine(e),i=t.matchPrefix(e,"a=max-message-size:");i.length>0&&(r=parseInt(i[0].substr(19),10)),isNaN(r)&&(r=65536);var o=t.matchPrefix(e,"a=sctp-port:");if(o.length>0)return{port:parseInt(o[0].substr(12),10),protocol:n.fmt,maxMessageSize:r};if(t.matchPrefix(e,"a=sctpmap:").length>0){var a=t.matchPrefix(e,"a=sctpmap:")[0].substr(10).split(" ");return{port:parseInt(a[0],10),protocol:a[1],maxMessageSize:r}}},t.writeSctpDescription=function(e,t){var r=[];return r="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&r.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),r.join("")},t.generateSessionId=function(){return Math.random().toString().substr(2,21)},t.writeSessionBoilerplate=function(e,r,n){var i=void 0!==r?r:2;return"v=0\r\no="+(n||"thisisadapterortc")+" "+(e||t.generateSessionId())+" "+i+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},t.writeMediaSection=function(e,r,n,i){var o=t.writeRtpDescription(e.kind,r);if(o+=t.writeIceParameters(e.iceGatherer.getLocalParameters()),o+=t.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===n?"actpass":"active"),o+="a=mid:"+e.mid+"\r\n",e.direction?o+="a="+e.direction+"\r\n":e.rtpSender&&e.rtpReceiver?o+="a=sendrecv\r\n":e.rtpSender?o+="a=sendonly\r\n":e.rtpReceiver?o+="a=recvonly\r\n":o+="a=inactive\r\n",e.rtpSender){var a="msid:"+i.id+" "+e.rtpSender.track.id+"\r\n";o+="a="+a,o+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+a,e.sendEncodingParameters[0].rtx&&(o+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+a,o+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return o+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+t.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(o+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+t.localCName+"\r\n"),o},t.getDirection=function(e,r){for(var n=t.splitLines(e),i=0;i<n.length;i++)switch(n[i]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return n[i].substr(2)}return r?t.getDirection(r):"sendrecv"},t.getKind=function(e){return t.splitLines(e)[0].split(" ")[0].substr(2)},t.isRejected=function(e){return"0"===e.split(" ",2)[1]},t.parseMLine=function(e){var r=t.splitLines(e)[0].substr(2).split(" ");return{kind:r[0],port:parseInt(r[1],10),protocol:r[2],fmt:r.slice(3).join(" ")}},t.parseOLine=function(e){var r=t.matchPrefix(e,"o=")[0].substr(2).split(" ");return{username:r[0],sessionId:r[1],sessionVersion:parseInt(r[2],10),netType:r[3],addressType:r[4],address:r[5]}},t.isValidSDP=function(e){if("string"!=typeof e||0===e.length)return!1;for(var r=t.splitLines(e),n=0;n<r.length;n++)if(r[n].length<2||"="!==r[n].charAt(1))return!1;return!0},e.exports=t},22257:(e,t,r)=>{const n=Symbol("SemVer ANY");class i{static get ANY(){return n}constructor(e,t){if(t=o(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}u("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){const t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new d(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new d(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=c(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=c(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||o&&a||s||u}}e.exports=i;const o=r(12893),{re:a,t:s}=r(55765),c=r(7539),u=r(74225),l=r(26376),d=r(66902)},66902:(e,t,r)=>{class n{constructor(e,t){if(t=o(t),e instanceof n)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new n(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&v(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=i.get(t);if(r)return r;const n=this.options.loose,o=n?u[l.HYPHENRANGELOOSE]:u[l.HYPHENRANGE];e=e.replace(o,x(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(u[l.COMPARATORTRIM],d),s("comparator trim",e);let c=(e=(e=(e=e.replace(u[l.TILDETRIM],f)).replace(u[l.CARETTRIM],p)).split(/\s+/).join(" ")).split(" ").map((e=>g(e,this.options))).join(" ").split(/\s+/).map((e=>I(e,this.options)));n&&(c=c.filter((e=>(s("loose invalid filter",e,this.options),!!e.match(u[l.COMPARATORLOOSE]))))),s("range list",c);const v=new Map,m=c.map((e=>new a(e,this.options)));for(const e of m){if(h(e))return[e];v.set(e.value,e)}v.size>1&&v.has("")&&v.delete("");const y=[...v.values()];return i.set(t,y),y}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>m(r,t)&&e.set.some((e=>m(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(A(this.set[t],e,this.options))return!0;return!1}}e.exports=n;const i=new(r(39593))({max:1e3}),o=r(12893),a=r(22257),s=r(74225),c=r(26376),{re:u,t:l,comparatorTrimReplace:d,tildeTrimReplace:f,caretTrimReplace:p}=r(55765),h=e=>"<0.0.0-0"===e.value,v=e=>""===e.value,m=(e,t)=>{let r=!0;const n=e.slice();let i=n.pop();for(;r&&n.length;)r=n.every((e=>i.intersects(e,t))),i=n.pop();return r},g=(e,t)=>(s("comp",e,t),e=_(e,t),s("caret",e),e=E(e,t),s("tildes",e),e=R(e,t),s("xrange",e),e=w(e,t),s("stars",e),e),y=e=>!e||"x"===e.toLowerCase()||"*"===e,E=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{const r=t.loose?u[l.TILDELOOSE]:u[l.TILDE];return e.replace(r,((t,r,n,i,o)=>{let a;return s("tilde",e,t,r,n,i,o),y(r)?a="":y(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:y(i)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(s("replaceTilde pr",o),a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,s("tilde return",a),a}))},_=(e,t)=>e.trim().split(/\s+/).map((e=>b(e,t))).join(" "),b=(e,t)=>{s("caret",e,t);const r=t.loose?u[l.CARETLOOSE]:u[l.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,i,o,a)=>{let c;return s("caret",e,t,r,i,o,a),y(r)?c="":y(i)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:y(o)?c="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(s("replaceCaret pr",a),c="0"===r?"0"===i?`>=${r}.${i}.${o}-${a} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${a} <${+r+1}.0.0-0`):(s("no pr"),c="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),s("caret return",c),c}))},R=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>T(e,t))).join(" ")),T=(e,t)=>{e=e.trim();const r=t.loose?u[l.XRANGELOOSE]:u[l.XRANGE];return e.replace(r,((r,n,i,o,a,c)=>{s("xRange",e,r,n,i,o,a,c);const u=y(i),l=u||y(o),d=l||y(a),f=d;return"="===n&&f&&(n=""),c=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&f?(l&&(o=0),a=0,">"===n?(n=">=",l?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===n&&(n="<",l?i=+i+1:o=+o+1),"<"===n&&(c="-0"),r=`${n+i}.${o}.${a}${c}`):l?r=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(r=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),s("xRange return",r),r}))},w=(e,t)=>(s("replaceStars",e,t),e.trim().replace(u[l.STAR],"")),I=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),x=e=>(t,r,n,i,o,a,s,c,u,l,d,f,p)=>`${r=y(n)?"":y(i)?`>=${n}.0.0${e?"-0":""}`:y(o)?`>=${n}.${i}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=y(u)?"":y(l)?`<${+u+1}.0.0-0`:y(d)?`<${u}.${+l+1}.0-0`:f?`<=${u}.${l}.${d}-${f}`:e?`<${u}.${l}.${+d+1}-0`:`<=${c}`}`.trim(),A=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(s(e[r].semver),e[r].semver!==a.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},26376:(e,t,r)=>{const n=r(74225),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=r(83295),{re:a,t:s}=r(55765),c=r(12893),{compareIdentifiers:u}=r(86742);class l{constructor(e,t){if(t=c(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],i=e.prerelease[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return u(r,i)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const r=this.build[t],i=e.build[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return u(r,i)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=l},13507:(e,t,r)=>{const n=r(33959);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},7539:(e,t,r)=>{const n=r(58718),i=r(81194),o=r(71312),a=r(25903),s=r(21544),c=r(12056);e.exports=(e,t,r,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,u);case"!=":return i(e,r,u);case">":return o(e,r,u);case">=":return a(e,r,u);case"<":return s(e,r,u);case"<=":return c(e,r,u);default:throw new TypeError(`Invalid operator: ${t}`)}}},99038:(e,t,r)=>{const n=r(26376),i=r(33959),{re:o,t:a}=r(55765);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=o[a.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),o[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[a.COERCERTL].lastIndex=-1}else r=e.match(o[a.COERCE]);return null===r?null:i(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},88880:(e,t,r)=>{const n=r(26376);e.exports=(e,t,r)=>{const i=new n(e,r),o=new n(t,r);return i.compare(o)||i.compareBuild(o)}},27880:(e,t,r)=>{const n=r(46269);e.exports=(e,t)=>n(e,t,!0)},46269:(e,t,r)=>{const n=r(26376);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},62378:(e,t,r)=>{const n=r(33959),i=r(58718);e.exports=(e,t)=>{if(i(e,t))return null;{const r=n(e),i=n(t),o=r.prerelease.length||i.prerelease.length,a=o?"pre":"",s=o?"prerelease":"";for(const e in r)if(("major"===e||"minor"===e||"patch"===e)&&r[e]!==i[e])return a+e;return s}}},58718:(e,t,r)=>{const n=r(46269);e.exports=(e,t,r)=>0===n(e,t,r)},71312:(e,t,r)=>{const n=r(46269);e.exports=(e,t,r)=>n(e,t,r)>0},25903:(e,t,r)=>{const n=r(46269);e.exports=(e,t,r)=>n(e,t,r)>=0},20253:(e,t,r)=>{const n=r(26376);e.exports=(e,t,r,i)=>{"string"==typeof r&&(i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i).version}catch(e){return null}}},21544:(e,t,r)=>{const n=r(46269);e.exports=(e,t,r)=>n(e,t,r)<0},12056:(e,t,r)=>{const n=r(46269);e.exports=(e,t,r)=>n(e,t,r)<=0},38679:(e,t,r)=>{const n=r(26376);e.exports=(e,t)=>new n(e,t).major},87789:(e,t,r)=>{const n=r(26376);e.exports=(e,t)=>new n(e,t).minor},81194:(e,t,r)=>{const n=r(46269);e.exports=(e,t,r)=>0!==n(e,t,r)},33959:(e,t,r)=>{const{MAX_LENGTH:n}=r(83295),{re:i,t:o}=r(55765),a=r(26376),s=r(12893);e.exports=(e,t)=>{if(t=s(t),e instanceof a)return e;if("string"!=typeof e)return null;if(e.length>n)return null;if(!(t.loose?i[o.LOOSE]:i[o.FULL]).test(e))return null;try{return new a(e,t)}catch(e){return null}}},52358:(e,t,r)=>{const n=r(26376);e.exports=(e,t)=>new n(e,t).patch},57559:(e,t,r)=>{const n=r(33959);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},79795:(e,t,r)=>{const n=r(46269);e.exports=(e,t,r)=>n(t,e,r)},63657:(e,t,r)=>{const n=r(88880);e.exports=(e,t)=>e.sort(((e,r)=>n(r,e,t)))},45712:(e,t,r)=>{const n=r(66902);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},21100:(e,t,r)=>{const n=r(88880);e.exports=(e,t)=>e.sort(((e,r)=>n(e,r,t)))},76397:(e,t,r)=>{const n=r(33959);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},81249:(e,t,r)=>{const n=r(55765),i=r(83295),o=r(26376),a=r(86742),s=r(33959),c=r(76397),u=r(13507),l=r(20253),d=r(62378),f=r(38679),p=r(87789),h=r(52358),v=r(57559),m=r(46269),g=r(79795),y=r(27880),E=r(88880),S=r(21100),_=r(63657),b=r(71312),R=r(21544),T=r(58718),w=r(81194),I=r(25903),x=r(12056),A=r(7539),C=r(99038),O=r(22257),k=r(66902),N=r(45712),L=r(51042),P=r(85775),M=r(71657),D=r(95316),U=r(89042),j=r(6826),F=r(97606),B=r(50032),Z=r(82937),V=r(17908),G=r(50799);e.exports={parse:s,valid:c,clean:u,inc:l,diff:d,major:f,minor:p,patch:h,prerelease:v,compare:m,rcompare:g,compareLoose:y,compareBuild:E,sort:S,rsort:_,gt:b,lt:R,eq:T,neq:w,gte:I,lte:x,cmp:A,coerce:C,Comparator:O,Range:k,satisfies:N,toComparators:L,maxSatisfying:P,minSatisfying:M,minVersion:D,validRange:U,outside:j,gtr:F,ltr:B,intersects:Z,simplifyRange:V,subset:G,SemVer:o,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},83295:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},74225:(e,t,r)=>{const n="object"==typeof r(34155)&&{ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.NODE_DEBUG&&/\bsemver\b/i.test({ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=n},86742:e=>{const t=/^[0-9]+$/,r=(e,r)=>{const n=t.test(e),i=t.test(r);return n&&i&&(e=+e,r=+r),e===r?0:n&&!i?-1:i&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},12893:e=>{const t=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:t.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}},55765:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n}=r(83295),i=r(74225),o=(t=e.exports={}).re=[],a=t.src=[],s=t.t={};let c=0;const u=(e,t,r)=>{const n=c++;i(e,n,t),s[e]=n,a[n]=t,o[n]=new RegExp(t,r?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION",`(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${a[s.NUMERICIDENTIFIER]}|${a[s.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${a[s.NUMERICIDENTIFIERLOOSE]}|${a[s.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${a[s.PRERELEASEIDENTIFIER]}(?:\\.${a[s.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${a[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[s.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD",`(?:\\+(${a[s.BUILDIDENTIFIER]}(?:\\.${a[s.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${a[s.MAINVERSION]}${a[s.PRERELEASE]}?${a[s.BUILD]}?`),u("FULL",`^${a[s.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${a[s.MAINVERSIONLOOSE]}${a[s.PRERELEASELOOSE]}?${a[s.BUILD]}?`),u("LOOSE",`^${a[s.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${a[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${a[s.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:${a[s.PRERELEASE]})?${a[s.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:${a[s.PRERELEASELOOSE]})?${a[s.BUILD]}?)?)?`),u("XRANGE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),u("COERCERTL",a[s.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${a[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",u("TILDE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${a[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",u("CARET",`^${a[s.LONECARET]}${a[s.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${a[s.LONECARET]}${a[s.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${a[s.GTLT]}\\s*(${a[s.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]}|${a[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${a[s.XRANGEPLAIN]})\\s+-\\s+(${a[s.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${a[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[s.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},97606:(e,t,r)=>{const n=r(6826);e.exports=(e,t,r)=>n(e,t,">",r)},82937:(e,t,r)=>{const n=r(66902);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t))},50032:(e,t,r)=>{const n=r(6826);e.exports=(e,t,r)=>n(e,t,"<",r)},85775:(e,t,r)=>{const n=r(26376),i=r(66902);e.exports=(e,t,r)=>{let o=null,a=null,s=null;try{s=new i(t,r)}catch(e){return null}return e.forEach((e=>{s.test(e)&&(o&&-1!==a.compare(e)||(o=e,a=new n(o,r)))})),o}},71657:(e,t,r)=>{const n=r(26376),i=r(66902);e.exports=(e,t,r)=>{let o=null,a=null,s=null;try{s=new i(t,r)}catch(e){return null}return e.forEach((e=>{s.test(e)&&(o&&1!==a.compare(e)||(o=e,a=new n(o,r)))})),o}},95316:(e,t,r)=>{const n=r(26376),i=r(66902),o=r(71312);e.exports=(e,t)=>{e=new i(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const i=e.set[t];let a=null;i.forEach((e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":a&&!o(t,a)||(a=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!a||r&&!o(r,a)||(r=a)}return r&&e.test(r)?r:null}},6826:(e,t,r)=>{const n=r(26376),i=r(22257),{ANY:o}=i,a=r(66902),s=r(45712),c=r(71312),u=r(21544),l=r(12056),d=r(25903);e.exports=(e,t,r,f)=>{let p,h,v,m,g;switch(e=new n(e,f),t=new a(t,f),r){case">":p=c,h=l,v=u,m=">",g=">=";break;case"<":p=u,h=d,v=c,m="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,f))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let a=null,s=null;if(n.forEach((e=>{e.semver===o&&(e=new i(">=0.0.0")),a=a||e,s=s||e,p(e.semver,a.semver,f)?a=e:v(e.semver,s.semver,f)&&(s=e)})),a.operator===m||a.operator===g)return!1;if((!s.operator||s.operator===m)&&h(e,s.semver))return!1;if(s.operator===g&&v(e,s.semver))return!1}return!0}},17908:(e,t,r)=>{const n=r(45712),i=r(46269);e.exports=(e,t,r)=>{const o=[];let a=null,s=null;const c=e.sort(((e,t)=>i(e,t,r)));for(const e of c){n(e,t,r)?(s=e,a||(a=e)):(s&&o.push([a,s]),s=null,a=null)}a&&o.push([a,null]);const u=[];for(const[e,t]of o)e===t?u.push(e):t||e!==c[0]?t?e===c[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");const l=u.join(" || "),d="string"==typeof t.raw?t.raw:String(t);return l.length<d.length?l:t}},50799:(e,t,r)=>{const n=r(66902),i=r(22257),{ANY:o}=i,a=r(45712),s=r(46269),c=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=r.includePrerelease?[new i(">=0.0.0-0")]:[new i(">=0.0.0")]}if(1===t.length&&t[0].semver===o){if(r.includePrerelease)return!0;t=[new i(">=0.0.0")]}const n=new Set;let c,d,f,p,h,v,m;for(const t of e)">"===t.operator||">="===t.operator?c=u(c,t,r):"<"===t.operator||"<="===t.operator?d=l(d,t,r):n.add(t.semver);if(n.size>1)return null;if(c&&d){if(f=s(c.semver,d.semver,r),f>0)return null;if(0===f&&(">="!==c.operator||"<="!==d.operator))return null}for(const e of n){if(c&&!a(e,String(c),r))return null;if(d&&!a(e,String(d),r))return null;for(const n of t)if(!a(e,String(n),r))return!1;return!0}let g=!(!d||r.includePrerelease||!d.semver.prerelease.length)&&d.semver,y=!(!c||r.includePrerelease||!c.semver.prerelease.length)&&c.semver;g&&1===g.prerelease.length&&"<"===d.operator&&0===g.prerelease[0]&&(g=!1);for(const e of t){if(m=m||">"===e.operator||">="===e.operator,v=v||"<"===e.operator||"<="===e.operator,c)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if(p=u(c,e,r),p===e&&p!==c)return!1}else if(">="===c.operator&&!a(c.semver,String(e),r))return!1;if(d)if(g&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch&&(g=!1),"<"===e.operator||"<="===e.operator){if(h=l(d,e,r),h===e&&h!==d)return!1}else if("<="===d.operator&&!a(d.semver,String(e),r))return!1;if(!e.operator&&(d||c)&&0!==f)return!1}return!(c&&v&&!d&&0!==f)&&(!(d&&m&&!c&&0!==f)&&(!y&&!g))},u=(e,t,r)=>{if(!e)return t;const n=s(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const n=s(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;e:for(const n of e.set){for(const e of t.set){const t=c(n,e,r);if(i=i||null!==t,t)continue e}if(i)return!1}return!0}},51042:(e,t,r)=>{const n=r(66902);e.exports=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},89042:(e,t,r)=>{const n=r(66902);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},37478:(e,t,r)=>{"use strict";var n=r(40210),i=r(21924),o=r(70631),a=n("%TypeError%"),s=n("%WeakMap%",!0),c=n("%Map%",!0),u=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),f=i("Map.prototype.get",!0),p=i("Map.prototype.set",!0),h=i("Map.prototype.has",!0),v=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new a("Side channel does not contain "+o(e))},get:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(e)return u(e,n)}else if(c){if(t)return f(t,n)}else if(r)return function(e,t){var r=v(e,t);return r&&r.value}(r,n)},has:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(e)return d(e,n)}else if(c){if(t)return h(t,n)}else if(r)return function(e,t){return!!v(e,t)}(r,n);return!1},set:function(n,i){s&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new s),l(e,n,i)):c?(t||(t=new c),p(t,n,i)):(r||(r={key:{},next:null}),function(e,t,r){var n=v(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,i))}};return n}},42830:(e,t,r)=>{e.exports=i;var n=r(17187).EventEmitter;function i(){n.call(this)}r(35717)(i,n),i.Readable=r(88473),i.Writable=r(84796),i.Duplex=r(20074),i.Transform=r(14219),i.PassThrough=r(95799),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",c),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",u),e.on("error",u),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},80842:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractTokenizer=void 0;const n=r(55167);t.AbstractTokenizer=class{constructor(e){this.position=0,this.numBuffer=new Uint8Array(8),this.fileInfo=e||{}}async readToken(e,t=this.position){const r=Buffer.alloc(e.len);if(await this.readBuffer(r,{position:t})<e.len)throw new n.EndOfStreamError;return e.get(r,0)}async peekToken(e,t=this.position){const r=Buffer.alloc(e.len);if(await this.peekBuffer(r,{position:t})<e.len)throw new n.EndOfStreamError;return e.get(r,0)}async readNumber(e){if(await this.readBuffer(this.numBuffer,{length:e.len})<e.len)throw new n.EndOfStreamError;return e.get(this.numBuffer,0)}async peekNumber(e){if(await this.peekBuffer(this.numBuffer,{length:e.len})<e.len)throw new n.EndOfStreamError;return e.get(this.numBuffer,0)}async ignore(e){if(void 0!==this.fileInfo.size){const t=this.fileInfo.size-this.position;if(e>t)return this.position+=t,t}return this.position+=e,e}async close(){}normalizeOptions(e,t){if(t&&void 0!==t.position&&t.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");return t?{mayBeLess:!0===t.mayBeLess,offset:t.offset?t.offset:0,length:t.length?t.length:e.length-(t.offset?t.offset:0),position:t.position?t.position:this.position}:{mayBeLess:!1,offset:0,length:e.length,position:this.position}}}},30778:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BufferTokenizer=void 0;const n=r(55167),i=r(80842);class o extends i.AbstractTokenizer{constructor(e,t){super(t),this.uint8Array=e,this.fileInfo.size=this.fileInfo.size?this.fileInfo.size:e.length}async readBuffer(e,t){if(t&&t.position){if(t.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");this.position=t.position}const r=await this.peekBuffer(e,t);return this.position+=r,r}async peekBuffer(e,t){const r=this.normalizeOptions(e,t),i=Math.min(this.uint8Array.length-r.position,r.length);if(!r.mayBeLess&&i<r.length)throw new n.EndOfStreamError;return e.set(this.uint8Array.subarray(r.position,r.position+i),r.offset),i}async close(){}}t.BufferTokenizer=o},27859:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromFile=t.FileTokenizer=void 0;const n=r(80842),i=r(55167),o=r(77209);class a extends n.AbstractTokenizer{constructor(e,t){super(t),this.fd=e}async readBuffer(e,t){const r=this.normalizeOptions(e,t);this.position=r.position;const n=await o.read(this.fd,e,r.offset,r.length,r.position);if(this.position+=n.bytesRead,n.bytesRead<r.length&&(!t||!t.mayBeLess))throw new i.EndOfStreamError;return n.bytesRead}async peekBuffer(e,t){const r=this.normalizeOptions(e,t),n=await o.read(this.fd,e,r.offset,r.length,r.position);if(!r.mayBeLess&&n.bytesRead<r.length)throw new i.EndOfStreamError;return n.bytesRead}async close(){return o.close(this.fd)}}t.FileTokenizer=a,t.fromFile=async function(e){const t=await o.stat(e);if(!t.isFile)throw new Error(`File not a file: ${e}`);const r=await o.open(e,"r");return new a(r,{path:e,size:t.size})}},77209:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readFile=t.writeFileSync=t.writeFile=t.read=t.open=t.close=t.stat=t.createReadStream=t.pathExists=void 0;const n=r(4059);t.pathExists=n.existsSync,t.createReadStream=n.createReadStream,t.stat=async function(e){return new Promise(((t,r)=>{n.stat(e,((e,n)=>{e?r(e):t(n)}))}))},t.close=async function(e){return new Promise(((t,r)=>{n.close(e,(e=>{e?r(e):t()}))}))},t.open=async function(e,t){return new Promise(((r,i)=>{n.open(e,t,((e,t)=>{e?i(e):r(t)}))}))},t.read=async function(e,t,r,i,o){return new Promise(((a,s)=>{n.read(e,t,r,i,o,((e,t,r)=>{e?s(e):a({bytesRead:t,buffer:r})}))}))},t.writeFile=async function(e,t){return new Promise(((r,i)=>{n.writeFile(e,t,(e=>{e?i(e):r()}))}))},t.writeFileSync=function(e,t){n.writeFileSync(e,t)},t.readFile=async function(e){return new Promise(((t,r)=>{n.readFile(e,((e,n)=>{e?r(e):t(n)}))}))}},20599:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReadStreamTokenizer=void 0;const n=r(80842),i=r(55167);class o extends n.AbstractTokenizer{constructor(e,t){super(t),this.streamReader=new i.StreamReader(e)}async getFileInfo(){return this.fileInfo}async readBuffer(e,t){const r=this.normalizeOptions(e,t),n=r.position-this.position;if(n>0)return await this.ignore(n),this.readBuffer(e,t);if(n<0)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");if(0===r.length)return 0;const o=await this.streamReader.read(e,r.offset,r.length);if(this.position+=o,(!t||!t.mayBeLess)&&o<r.length)throw new i.EndOfStreamError;return o}async peekBuffer(e,t){const r=this.normalizeOptions(e,t);let n=0;if(r.position){const t=r.position-this.position;if(t>0){const i=new Uint8Array(r.length+t);return n=await this.peekBuffer(i,{mayBeLess:r.mayBeLess}),e.set(i.subarray(t),r.offset),n-t}if(t<0)throw new Error("Cannot peek from a negative offset in a stream")}if(r.length>0){try{n=await this.streamReader.peek(e,r.offset,r.length)}catch(e){if(t&&t.mayBeLess&&e instanceof i.EndOfStreamError)return 0;throw e}if(!r.mayBeLess&&n<r.length)throw new i.EndOfStreamError}return n}async ignore(e){const t=Math.min(256e3,e),r=new Uint8Array(t);let n=0;for(;n<e;){const i=e-n,o=await this.readBuffer(r,{length:Math.min(t,i)});if(o<0)return o;n+=o}return n}}t.ReadStreamTokenizer=o},35849:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromBuffer=t.fromStream=t.EndOfStreamError=void 0;const n=r(20599),i=r(30778);var o=r(55167);Object.defineProperty(t,"EndOfStreamError",{enumerable:!0,get:function(){return o.EndOfStreamError}}),t.fromStream=function(e,t){return t=t||{},new n.ReadStreamTokenizer(e,t)},t.fromBuffer=function(e,t){return new i.BufferTokenizer(e,t)}},26597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromStream=t.fromBuffer=t.EndOfStreamError=t.fromFile=void 0;const n=r(77209),i=r(35849);var o=r(27859);Object.defineProperty(t,"fromFile",{enumerable:!0,get:function(){return o.fromFile}});var a=r(35849);Object.defineProperty(t,"EndOfStreamError",{enumerable:!0,get:function(){return a.EndOfStreamError}}),Object.defineProperty(t,"fromBuffer",{enumerable:!0,get:function(){return a.fromBuffer}}),t.fromStream=async function(e,t){if(t=t||{},e.path){const r=await n.stat(e.path);t.path=e.path,t.size=r.size}return i.fromStream(e,t)}},83416:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnsiStringType=t.StringType=t.BufferType=t.Uint8ArrayType=t.IgnoreType=t.Float80_LE=t.Float80_BE=t.Float64_LE=t.Float64_BE=t.Float32_LE=t.Float32_BE=t.Float16_LE=t.Float16_BE=t.INT64_BE=t.UINT64_BE=t.INT64_LE=t.UINT64_LE=t.INT32_LE=t.INT32_BE=t.INT24_BE=t.INT24_LE=t.INT16_LE=t.INT16_BE=t.INT8=t.UINT32_BE=t.UINT32_LE=t.UINT24_BE=t.UINT24_LE=t.UINT16_BE=t.UINT16_LE=t.UINT8=void 0;const n=r(80645);function i(e){return new DataView(e.buffer,e.byteOffset)}t.UINT8={len:1,get:(e,t)=>i(e).getUint8(t),put:(e,t,r)=>(i(e).setUint8(t,r),t+1)},t.UINT16_LE={len:2,get:(e,t)=>i(e).getUint16(t,!0),put:(e,t,r)=>(i(e).setUint16(t,r,!0),t+2)},t.UINT16_BE={len:2,get:(e,t)=>i(e).getUint16(t),put:(e,t,r)=>(i(e).setUint16(t,r),t+2)},t.UINT24_LE={len:3,get(e,t){const r=i(e);return r.getUint8(t)+(r.getUint16(t+1,!0)<<8)},put(e,t,r){const n=i(e);return n.setUint8(t,255&r),n.setUint16(t+1,r>>8,!0),t+3}},t.UINT24_BE={len:3,get(e,t){const r=i(e);return(r.getUint16(t)<<8)+r.getUint8(t+2)},put(e,t,r){const n=i(e);return n.setUint16(t,r>>8),n.setUint8(t+2,255&r),t+3}},t.UINT32_LE={len:4,get:(e,t)=>i(e).getUint32(t,!0),put:(e,t,r)=>(i(e).setUint32(t,r,!0),t+4)},t.UINT32_BE={len:4,get:(e,t)=>i(e).getUint32(t),put:(e,t,r)=>(i(e).setUint32(t,r),t+4)},t.INT8={len:1,get:(e,t)=>i(e).getInt8(t),put:(e,t,r)=>(i(e).setInt8(t,r),t+1)},t.INT16_BE={len:2,get:(e,t)=>i(e).getInt16(t),put:(e,t,r)=>(i(e).setInt16(t,r),t+2)},t.INT16_LE={len:2,get:(e,t)=>i(e).getInt16(t,!0),put:(e,t,r)=>(i(e).setInt16(t,r,!0),t+2)},t.INT24_LE={len:3,get(e,r){const n=t.UINT24_LE.get(e,r);return n>8388607?n-16777216:n},put(e,t,r){const n=i(e);return n.setUint8(t,255&r),n.setUint16(t+1,r>>8,!0),t+3}},t.INT24_BE={len:3,get(e,r){const n=t.UINT24_BE.get(e,r);return n>8388607?n-16777216:n},put(e,t,r){const n=i(e);return n.setUint16(t,r>>8),n.setUint8(t+2,255&r),t+3}},t.INT32_BE={len:4,get:(e,t)=>i(e).getInt32(t),put:(e,t,r)=>(i(e).setInt32(t,r),t+4)},t.INT32_LE={len:4,get:(e,t)=>i(e).getInt32(t,!0),put:(e,t,r)=>(i(e).setInt32(t,r,!0),t+4)},t.UINT64_LE={len:8,get:(e,t)=>i(e).getBigUint64(t,!0),put:(e,t,r)=>(i(e).setBigUint64(t,r,!0),t+8)},t.INT64_LE={len:8,get:(e,t)=>i(e).getBigInt64(t,!0),put:(e,t,r)=>(i(e).setBigInt64(t,r,!0),t+8)},t.UINT64_BE={len:8,get:(e,t)=>i(e).getBigUint64(t),put:(e,t,r)=>(i(e).setBigUint64(t,r),t+8)},t.INT64_BE={len:8,get:(e,t)=>i(e).getBigInt64(t),put:(e,t,r)=>(i(e).setBigInt64(t,r),t+8)},t.Float16_BE={len:2,get(e,t){return n.read(e,t,!1,10,this.len)},put(e,t,r){return n.write(e,r,t,!1,10,this.len),t+this.len}},t.Float16_LE={len:2,get(e,t){return n.read(e,t,!0,10,this.len)},put(e,t,r){return n.write(e,r,t,!0,10,this.len),t+this.len}},t.Float32_BE={len:4,get:(e,t)=>i(e).getFloat32(t),put:(e,t,r)=>(i(e).setFloat32(t,r),t+4)},t.Float32_LE={len:4,get:(e,t)=>i(e).getFloat32(t,!0),put:(e,t,r)=>(i(e).setFloat32(t,r,!0),t+4)},t.Float64_BE={len:8,get:(e,t)=>i(e).getFloat64(t),put:(e,t,r)=>(i(e).setFloat64(t,r),t+8)},t.Float64_LE={len:8,get:(e,t)=>i(e).getFloat64(t,!0),put:(e,t,r)=>(i(e).setFloat64(t,r,!0),t+8)},t.Float80_BE={len:10,get(e,t){return n.read(e,t,!1,63,this.len)},put(e,t,r){return n.write(e,r,t,!1,63,this.len),t+this.len}},t.Float80_LE={len:10,get(e,t){return n.read(e,t,!0,63,this.len)},put(e,t,r){return n.write(e,r,t,!0,63,this.len),t+this.len}};t.IgnoreType=class{constructor(e){this.len=e}get(e,t){}};t.Uint8ArrayType=class{constructor(e){this.len=e}get(e,t){return e.subarray(t,t+this.len)}};t.BufferType=class{constructor(e){this.len=e}get(e,t){return Buffer.from(e.subarray(t,t+this.len))}};t.StringType=class{constructor(e,t){this.len=e,this.encoding=t}get(e,t){return Buffer.from(e).toString(this.encoding,t,t+this.len)}};class o{constructor(e){this.len=e}static decode(e,t,r){let n="";for(let i=t;i<r;++i)n+=o.codePointToString(o.singleByteDecoder(e[i]));return n}static inRange(e,t,r){return t<=e&&e<=r}static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}static singleByteDecoder(e){if(o.inRange(e,0,127))return e;const t=o.windows1252[e-128];if(null===t)throw Error("invaliding encoding");return t}get(e,t=0){return o.decode(e,t,t+this.len)}}t.AnsiStringType=o,o.windows1252=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]},52511:function(e,t,r){var n;e=r.nmd(e),function(i){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r.g&&r.g;o.global!==o&&o.window!==o&&o.self;var a,s=2147483647,c=36,u=1,l=26,d=38,f=700,p=72,h=128,v="-",m=/^xn--/,g=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,E={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=c-u,_=Math.floor,b=String.fromCharCode;function R(e){throw RangeError(E[e])}function T(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function w(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+T((e=e.replace(y,".")).split("."),t).join(".")}function I(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function x(e){return T(e,(function(e){var t="";return e>65535&&(t+=b((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=b(e)})).join("")}function A(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function C(e,t,r){var n=0;for(e=r?_(e/f):e>>1,e+=_(e/t);e>S*l>>1;n+=c)e=_(e/S);return _(n+(S+1)*e/(e+d))}function O(e){var t,r,n,i,o,a,d,f,m,g,y,E=[],S=e.length,b=0,T=h,w=p;for((r=e.lastIndexOf(v))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&R("not-basic"),E.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<S;){for(o=b,a=1,d=c;i>=S&&R("invalid-input"),((f=(y=e.charCodeAt(i++))-48<10?y-22:y-65<26?y-65:y-97<26?y-97:c)>=c||f>_((s-b)/a))&&R("overflow"),b+=f*a,!(f<(m=d<=w?u:d>=w+l?l:d-w));d+=c)a>_(s/(g=c-m))&&R("overflow"),a*=g;w=C(b-o,t=E.length+1,0==o),_(b/t)>s-T&&R("overflow"),T+=_(b/t),b%=t,E.splice(b++,0,T)}return x(E)}function k(e){var t,r,n,i,o,a,d,f,m,g,y,E,S,T,w,x=[];for(E=(e=I(e)).length,t=h,r=0,o=p,a=0;a<E;++a)(y=e[a])<128&&x.push(b(y));for(n=i=x.length,i&&x.push(v);n<E;){for(d=s,a=0;a<E;++a)(y=e[a])>=t&&y<d&&(d=y);for(d-t>_((s-r)/(S=n+1))&&R("overflow"),r+=(d-t)*S,t=d,a=0;a<E;++a)if((y=e[a])<t&&++r>s&&R("overflow"),y==t){for(f=r,m=c;!(f<(g=m<=o?u:m>=o+l?l:m-o));m+=c)w=f-g,T=c-g,x.push(b(A(g+w%T,0))),f=_(w/T);x.push(b(A(f,0))),o=C(r,S,n==i),r=0,++n}++r,++t}return x.join("")}a={version:"1.3.2",ucs2:{decode:I,encode:x},decode:O,encode:k,toASCII:function(e){return w(e,(function(e){return g.test(e)?"xn--"+k(e):e}))},toUnicode:function(e){return w(e,(function(e){return m.test(e)?O(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return a}.call(t,r,t,e))||(e.exports=n)}()},8575:(e,t,r)=>{"use strict";var n=r(52511),i=r(62502);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=E,t.resolve=function(e,t){return E(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?E(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=E(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(u),d=["%","/","?",";","#"].concat(l),f=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=r(17673);function E(e,t,r){if(e&&i.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",u=e.split(s);u[0]=u[0].replace(/\\/g,"/");var E=e=u.join(s);if(E=E.trim(),!r&&1===e.split("#").length){var S=c.exec(E);if(S)return this.path=E,this.href=E,this.pathname=S[1],S[2]?(this.search=S[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var _=a.exec(E);if(_){var b=(_=_[0]).toLowerCase();this.protocol=b,E=E.substr(_.length)}if(r||_||E.match(/^\/\/[^@\/]+@[^@\/]+/)){var R="//"===E.substr(0,2);!R||_&&m[_]||(E=E.substr(2),this.slashes=!0)}if(!m[_]&&(R||_&&!g[_])){for(var T,w,I=-1,x=0;x<f.length;x++){-1!==(A=E.indexOf(f[x]))&&(-1===I||A<I)&&(I=A)}-1!==(w=-1===I?E.lastIndexOf("@"):E.lastIndexOf("@",I))&&(T=E.slice(0,w),E=E.slice(w+1),this.auth=decodeURIComponent(T)),I=-1;for(x=0;x<d.length;x++){var A;-1!==(A=E.indexOf(d[x]))&&(-1===I||A<I)&&(I=A)}-1===I&&(I=E.length),this.host=E.slice(0,I),E=E.slice(I),this.parseHost(),this.hostname=this.hostname||"";var C="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!C)for(var O=this.hostname.split(/\./),k=(x=0,O.length);x<k;x++){var N=O[x];if(N&&!N.match(p)){for(var L="",P=0,M=N.length;P<M;P++)N.charCodeAt(P)>127?L+="x":L+=N[P];if(!L.match(p)){var D=O.slice(0,x),U=O.slice(x+1),j=N.match(h);j&&(D.push(j[1]),U.unshift(j[2])),U.length&&(E="/"+U.join(".")+E),this.hostname=D.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=n.toASCII(this.hostname));var F=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+F,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==E[0]&&(E="/"+E))}if(!v[b])for(x=0,k=l.length;x<k;x++){var Z=l[x];if(-1!==E.indexOf(Z)){var V=encodeURIComponent(Z);V===Z&&(V=escape(Z)),E=E.split(Z).join(V)}}var G=E.indexOf("#");-1!==G&&(this.hash=E.substr(G),E=E.slice(0,G));var q=E.indexOf("?");if(-1!==q?(this.search=E.substr(q),this.query=E.substr(q+1),t&&(this.query=y.parse(this.query)),E=E.slice(0,q)):t&&(this.search="",this.query={}),E&&(this.pathname=E),g[b]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){F=this.pathname||"";var H=this.search||"";this.path=F+H}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=y.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+n},o.prototype.resolve=function(e){return this.resolveObject(E(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(i.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var r=new o,n=Object.keys(this),a=0;a<n.length;a++){var s=n[a];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),u=0;u<c.length;u++){var l=c[u];"protocol"!==l&&(r[l]=e[l])}return g[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!g[e.protocol]){for(var d=Object.keys(e),f=0;f<d.length;f++){var p=d[f];r[p]=e[p]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||m[e.protocol])r.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),r.pathname=h.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var v=r.pathname||"",y=r.search||"";r.path=v+y}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var E=r.pathname&&"/"===r.pathname.charAt(0),S=e.host||e.pathname&&"/"===e.pathname.charAt(0),_=S||E||r.host&&e.pathname,b=_,R=r.pathname&&r.pathname.split("/")||[],T=(h=e.pathname&&e.pathname.split("/")||[],r.protocol&&!g[r.protocol]);if(T&&(r.hostname="",r.port=null,r.host&&(""===R[0]?R[0]=r.host:R.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),_=_&&(""===h[0]||""===R[0])),S)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,R=h;else if(h.length)R||(R=[]),R.pop(),R=R.concat(h),r.search=e.search,r.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(T)r.hostname=r.host=R.shift(),(C=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=C.shift(),r.host=r.hostname=C.shift());return r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!R.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var w=R.slice(-1)[0],I=(r.host||e.host||R.length>1)&&("."===w||".."===w)||""===w,x=0,A=R.length;A>=0;A--)"."===(w=R[A])?R.splice(A,1):".."===w?(R.splice(A,1),x++):x&&(R.splice(A,1),x--);if(!_&&!b)for(;x--;x)R.unshift("..");!_||""===R[0]||R[0]&&"/"===R[0].charAt(0)||R.unshift(""),I&&"/"!==R.join("/").substr(-1)&&R.push("");var C,O=""===R[0]||R[0]&&"/"===R[0].charAt(0);T&&(r.hostname=r.host=O?"":R.length?R.shift():"",(C=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=C.shift(),r.host=r.hostname=C.shift()));return(_=_||r.host&&R.length)&&!O&&R.unshift(""),R.length?r.pathname=R.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},62502:e=>{"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},55559:(e,t,r)=>{e.exports=r(32482)},32482:(e,t)=>{t.version="1.0.0",t.encode=function(e){return e.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},t.decode=function(e){return e=(e+=Array(5-e.length%4).join("=")).replace(/\-/g,"+").replace(/\_/g,"/"),new Buffer(e,"base64")},t.validate=function(e){return/^[A-Za-z0-9\-_]+$/.test(e)}},94927:(e,t,r)=>{function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},91496:e=>{"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},20384:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},89539:(e,t,r)=>{var n=r(34155),i=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(s(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),c=n[r];r<o;c=n[++r])v(c)||!S(c)?a+=" "+c:a+=" "+s(c);return a},t.deprecate=function(e,i){if(y(r.g.process))return function(){return t.deprecate(e,i).apply(this,arguments)};if(!0===n.noDeprecation)return e;var o=!1;return function(){if(!o){if(n.throwDeprecation)throw new Error(i);n.traceDeprecation?console.trace(i):console.error(i),o=!0}return e.apply(this,arguments)}};var o,a={};function s(e,r){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),h(r)?n.showHidden=r:r&&t._extend(n,r),y(n.showHidden)&&(n.showHidden=!1),y(n.depth)&&(n.depth=2),y(n.colors)&&(n.colors=!1),y(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),l(n,e,n.depth)}function c(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function u(e,t){return e}function l(e,r,n){if(e.customInspect&&r&&R(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return g(i)||(i=l(e,i,n)),i}var o=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(g(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(m(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(v(t))return e.stylize("null","null")}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),b(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(r);if(0===a.length){if(R(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(E(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return e.stylize(Date.prototype.toString.call(r),"date");if(b(r))return d(r)}var u,S="",T=!1,w=["{","}"];(p(r)&&(T=!0,w=["[","]"]),R(r))&&(S=" [Function"+(r.name?": "+r.name:"")+"]");return E(r)&&(S=" "+RegExp.prototype.toString.call(r)),_(r)&&(S=" "+Date.prototype.toUTCString.call(r)),b(r)&&(S=" "+d(r)),0!==a.length||T&&0!=r.length?n<0?E(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=T?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)x(t,String(a))?o.push(f(e,t,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(f(e,t,r,n,i,!0))})),o}(e,r,n,s,a):a.map((function(t){return f(e,r,n,s,t,T)})),e.seen.pop(),function(e,t,r){var n=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,S,w)):w[0]+S+w[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,r,n,i,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),x(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=v(r)?l(e,c.value,null):l(e,c.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),y(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function v(e){return null===e}function m(e){return"number"==typeof e}function g(e){return"string"==typeof e}function y(e){return void 0===e}function E(e){return S(e)&&"[object RegExp]"===T(e)}function S(e){return"object"==typeof e&&null!==e}function _(e){return S(e)&&"[object Date]"===T(e)}function b(e){return S(e)&&("[object Error]"===T(e)||e instanceof Error)}function R(e){return"function"==typeof e}function T(e){return Object.prototype.toString.call(e)}function w(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(y(o)&&(o={ATLAS_SERVICE_URL:"https://atlas-a.wbx2.com/admin/api/v1",CONVERSATION_SERVICE:"https://conv-a.wbx2.com/conversation/api/v1",ENCRYPTION_SERVICE_URL:"https://encryption-a.wbx2.com",HYDRA_SERVICE_URL:"https://api.ciscospark.com/v1",IDBROKER_BASE_URL:"https://idbroker.webex.com",IDENTITY_BASE_URL:"https://identity.webex.com",U2C_SERVICE_URL:"https://u2c.wbx2.com/u2c/api/v1",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1"}.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var r=n.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=h,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=y,t.isRegExp=E,t.isObject=S,t.isDate=_,t.isError=b,t.isFunction=R,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(20384);var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(e=new Date,r=[w(e.getHours()),w(e.getMinutes()),w(e.getSeconds())].join(":"),[e.getDate(),I[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(91496),t._extend=function(e,t){if(!t||!S(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}},55877:(e,t,r)=>{var n=r(23570),i=r(71171),o=i;o.v1=n,o.v4=i,e.exports=o},45327:e=>{for(var t=[],r=0;r<256;++r)t[r]=(r+256).toString(16).substr(1);e.exports=function(e,r){var n=r||0,i=t;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}},85217:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var r=new Uint8Array(16);e.exports=function(){return t(r),r}}else{var n=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),n[t]=e>>>((3&t)<<3)&255;return n}}},23570:(e,t,r)=>{var n,i,o=r(85217),a=r(45327),s=0,c=0;e.exports=function(e,t,r){var u=t&&r||0,l=t||[],d=(e=e||{}).node||n,f=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==f){var p=o();null==d&&(d=n=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==f&&(f=i=16383&(p[6]<<8|p[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:c+1,m=h-s+(v-c)/1e4;if(m<0&&void 0===e.clockseq&&(f=f+1&16383),(m<0||h>s)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,c=v,i=f;var g=(1e4*(268435455&(h+=122192928e5))+v)%4294967296;l[u++]=g>>>24&255,l[u++]=g>>>16&255,l[u++]=g>>>8&255,l[u++]=255&g;var y=h/4294967296*1e4&268435455;l[u++]=y>>>8&255,l[u++]=255&y,l[u++]=y>>>24&15|16,l[u++]=y>>>16&255,l[u++]=f>>>8|128,l[u++]=255&f;for(var E=0;E<6;++E)l[u+E]=d[E];return t||a(l)}},71171:(e,t,r)=>{var n=r(85217),i=r(45327);e.exports=function(e,t,r){var o=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||i(a)}},47529:e=>{e.exports=function(){for(var e={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)t.call(n,i)&&(e[i]=n[i])}return e};var t=Object.prototype.hasOwnProperty},49602:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},34411:(e,t,r)=>{"use strict";function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)t.push(arguments[r]);return t}function i(e,t,r){var n=t===e.head?new s(r,null,t,e):new s(r,t,t.next,e);return null===n.next&&(e.tail=n),null===n.prev&&(e.head=n),e.length++,n}function o(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function a(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,r,n){if(!(this instanceof s))return new s(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}e.exports=n,n.Node=s,n.create=n,n.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},n.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},n.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},n.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},n.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},n.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},n.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},n.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev},n.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},n.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},n.prototype.map=function(e,t){t=t||this;for(var r=new n,i=this.head;null!==i;)r.push(e.call(t,i.value,this)),i=i.next;return r},n.prototype.mapReverse=function(e,t){t=t||this;for(var r=new n,i=this.tail;null!==i;)r.push(e.call(t,i.value,this)),i=i.prev;return r},n.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;for(;null!==o&&i<t;i++,o=o.next)r.push(o.value);return r},n.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)r.push(o.value);return r},n.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,o=this.head;null!==o&&n<e;n++)o=o.next;var a=[];for(n=0;o&&n<t;n++)a.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(n=0;n<r.length;n++)o=i(this,o,r[n]);return a},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};try{r(49602)(n)}catch(e){}},42480:()=>{},66507:()=>{},86035:()=>{},24654:()=>{},52361:()=>{},94616:()=>{},4059:()=>{},27921:(e,t,r)=>{e.exports=r(50176)},78149:(e,t,r)=>{e.exports=r(70964)},66130:(e,t,r)=>{e.exports=r(76216)},8450:(e,t,r)=>{e.exports=r(23565)},18281:(e,t,r)=>{e.exports=r(94175)},7520:(e,t,r)=>{e.exports=r(68080)},18428:(e,t,r)=>{e.exports=r(68207)},5940:(e,t,r)=>{e.exports=r(25380)},93364:(e,t,r)=>{e.exports=r(99848)},26771:(e,t,r)=>{e.exports=r(82624)},43562:(e,t,r)=>{e.exports=r(88058)},27392:(e,t,r)=>{e.exports=r(36759)},95366:(e,t,r)=>{e.exports=r(44221)},6919:(e,t,r)=>{e.exports=r(22991)},62680:(e,t,r)=>{e.exports=r(72818)},62962:(e,t,r)=>{e.exports=r(87595)},26243:(e,t,r)=>{e.exports=r(15297)},22863:(e,t,r)=>{e.exports=r(21900)},18433:(e,t,r)=>{e.exports=r(42837)},62207:(e,t,r)=>{e.exports=r(97186)},79529:(e,t,r)=>{e.exports=r(16111)},73473:(e,t,r)=>{e.exports=r(89448)},71544:(e,t,r)=>{e.exports=r(58564)},63755:(e,t,r)=>{e.exports=r(98401)},79873:(e,t,r)=>{e.exports=r(53268)},67857:(e,t,r)=>{e.exports=r(76409)},39907:(e,t,r)=>{e.exports=r(46383)},66411:(e,t,r)=>{e.exports=r(42437)},90487:(e,t,r)=>{e.exports=r(98828)},85579:(e,t,r)=>{e.exports=r(71922)},22013:(e,t,r)=>{e.exports=r(72974)},64233:(e,t,r)=>{e.exports=r(90446)},83977:(e,t,r)=>{e.exports=r(69488)},11996:(e,t,r)=>{var n=r(63207).default,i=r(26771),o=r(85579),a=r(5940),s=r(62962),c=r(22863),u=r(73473);function l(){"use strict";e.exports=l=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},r=Object.prototype,d=r.hasOwnProperty,f=i||function(e,t,r){e[t]=r.value},p="function"==typeof o?o:{},h=p.iterator||"@@iterator",v=p.asyncIterator||"@@asyncIterator",m=p.toStringTag||"@@toStringTag";function g(e,t,r){return i(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{g({},"")}catch(e){g=function(e,t,r){return e[t]=r}}function y(e,t,r,n){var i=t&&t.prototype instanceof _?t:_,o=a(i.prototype),s=new L(n||[]);return f(o,"_invoke",{value:C(e,r,s)}),o}function E(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=y;var S={};function _(){}function b(){}function R(){}var T={};g(T,h,(function(){return this}));var w=s&&s(s(P([])));w&&w!==r&&d.call(w,h)&&(T=w);var I=R.prototype=_.prototype=a(T);function x(e){["next","throw","return"].forEach((function(t){g(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function r(i,o,a,s){var c=E(e[i],e,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==n(l)&&d.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(l).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var i;f(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}})}function C(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return M()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===S)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=E(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===S)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),S;var i=E(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,S;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,S):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,S)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function P(e){if(e){var t=e[h];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(d.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:M}}function M(){return{value:void 0,done:!0}}return b.prototype=R,f(I,"constructor",{value:R,configurable:!0}),f(R,"constructor",{value:b,configurable:!0}),b.displayName=g(R,m,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return c?c(e,R):(e.__proto__=R,g(e,m,"GeneratorFunction")),e.prototype=a(I),e},t.awrap=function(e){return{__await:e}},x(A.prototype),g(A.prototype,v,(function(){return this})),t.AsyncIterator=A,t.async=function(e,r,n,i,o){void 0===o&&(o=u);var a=new A(y(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(I),g(I,m,"Generator"),g(I,h,(function(){return this})),g(I,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(N),!e)for(var t in this)"t"===t.charAt(0)&&d.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return o.type="throw",o.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=d.call(i,"catchLoc"),s=d.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&d.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,S):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),S},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),N(r),S}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;N(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),S}},t}e.exports=l,e.exports.__esModule=!0,e.exports.default=e.exports},63207:(e,t,r)=>{var n=r(85579),i=r(22013);function o(t){return e.exports=o="function"==typeof n&&"symbol"==typeof i?function(e){return typeof e}:function(e){return e&&"function"==typeof n&&e.constructor===n&&e!==n.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,o(t)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},33453:(e,t,r)=>{var n=r(11996)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},2313:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(26243),i=r(26771);function o(e,t,r,o,a){var s={};return n(o).forEach((function(e){s[e]=o[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce((function(r,n){return n(e,t,r)||r}),s),a&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(a):void 0,s.initializer=void 0),void 0===s.initializer&&(i(e,t,s),s=null),s}},80759:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{Z:()=>n})},23710:(e,t,r)=>{"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{Z:()=>n})},66250:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(73473);function i(e,t,r,i,o,a,s){try{var c=e[a](s),u=c.value}catch(e){return void r(e)}c.done?t(u):n.resolve(u).then(i,o)}function o(e){return function(){var t=this,r=arguments;return new n((function(n,o){var a=e.apply(t,r);function s(e){i(a,n,o,s,c,"next",e)}function c(e){i(a,n,o,s,c,"throw",e)}s(void 0)}))}}},8167:(e,t,r)=>{"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,{Z:()=>n})},956:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(63755),i=r(35148);function o(e,t,r){return o=function(){if("undefined"==typeof Reflect||!n)return!1;if(n.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(n(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?n.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&(0,i.Z)(o,r.prototype),o},o.apply(null,arguments)}},31314:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(26771),i=r(44660);function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),n(e,(0,i.Z)(o.key),o)}}function a(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),n(e,"prototype",{writable:!1}),e}},77193:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(26771),i=r(44660);function o(e,t,r){return(t=(0,i.Z)(t))in e?n(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},35002:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(22863),i=r(62962);function o(e){return o=n?i.bind():function(e){return e.__proto__||i(e)},o(e)}},69678:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(5940),i=r(26771),o=r(35148);function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=n(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),i(e,"prototype",{writable:!1}),t&&(0,o.Z)(e,t)}},26305:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(13682),i=r(23710);function o(e,t){if(t&&("object"===(0,n.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},35148:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(22863);function i(e,t){return i=n?n.bind():function(e,t){return e.__proto__=t,e},i(e,t)}},14917:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(78149);var i=r(85579),o=r(22013);var a=r(33422);function s(e,t){return function(e){if(n(e))return e}(e)||function(e,t){var r=null==e?null:void 0!==i&&e[o]||e["@@iterator"];if(null!=r){var n,a,s,c,u=[],l=!0,d=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=s.call(r)).done)&&(u.push(n.value),u.length!==t);l=!0);}catch(e){d=!0,a=e}finally{try{if(!l&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(d)throw a}}return u}}(e,t)||(0,a.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},21882:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(78149),i=r(80759);var o=r(85579),a=r(22013),s=r(27921);var c=r(33422);function u(e){return function(e){if(n(e))return(0,i.Z)(e)}(e)||function(e){if(void 0!==o&&null!=e[a]||null!=e["@@iterator"])return s(e)}(e)||(0,c.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},44660:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(13682),i=r(64233);function o(e){var t=function(e,t){if("object"!==(0,n.Z)(e)||null===e)return e;var r=e[i];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==(0,n.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,n.Z)(t)?t:String(t)}},13682:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(85579),i=r(22013);function o(e){return o="function"==typeof n&&"symbol"==typeof i?function(e){return typeof e}:function(e){return e&&"function"==typeof n&&e.constructor===n&&e!==n.prototype?"symbol":typeof e},o(e)}},33422:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(27921),i=r(80759);function o(e,t){if(e){if("string"==typeof e)return(0,i.Z)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?n(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,i.Z)(e,t):void 0}}},67097:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(18281),i=r(5940),o=r(35002),a=r(35148);var s=r(956);function c(e){var t="function"==typeof n?new n:void 0;return c=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return(0,s.Z)(e,arguments,(0,o.Z)(this).constructor)}return n.prototype=i(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,a.Z)(n,e)},c(e)}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__=__webpack_require__(82239);return __webpack_exports__})()));
3
+ //# sourceMappingURL=meetings.min.js.map