UNPKG

webex

Version:

SDK for Cisco Webex

2 lines • 3.93 MB
/*! Webex JS SDK v3.12.0 */ !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__={34:(e,t,r)=>{"use strict";var n=r(96375),i=r(3366),o=r(53824);n(n.P+n.F*r(94944)(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}})},134:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(3328),i=r(87361);function o(e,t,r){return(t=(0,i.A)(t))in e?n(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},251:(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,h=r?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+d],d+=h,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,n),o-=u}return(f?-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,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,p=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?h/c:h*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+f]=255&s,f+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[r+f]=255&a,f+=p,a/=256,u-=8);e[r+f-p]|=128*v}},270:(e,t,r)=>{"use strict";const n=r(53908),i=r(78311);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}},282:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var n=r(23509),i=r(96150),o=r.n(i),a=r(5601),s=r.n(a),c=r(80662),u=r.n(c),l=r(37526),d=r.n(l),h=r(54001),f=r.n(h),p=r(25639),v=s(),g=u(),m=new((0,p.A)(v,g,g));function y(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(3===t.length)return d()(u,null,t);var i=t[0]||{},a=i.cacheFailures,s=i.cacheSuccesses,c=i.keyFactory;return u;function u(e,t,r){var i=t;return r.value=o()(r.value,function(t){for(var r=this,n=i,o=arguments.length,u=new Array(o>1?o-1:0),l=1;l<o;l++)u[l-1]=arguments[l];c&&(n="".concat(n,"_").concat(c.apply(void 0,u)));var h=m.get(this,e,n);return h||(h=d()(t,this,u),!a&&h&&h.catch&&(h=h.catch(function(t){return m.delete(r,e,n),f().reject(t)})),!s&&h&&h.then&&(h=h.then(function(t){return m.delete(r,e,n),t})),m.set(this,e,n,h),h)}),"object"!==(0,n.A)(e)||e.prototype||(e[t]=r.value),r}}},284:(e,t,r)=>{var n=r(16594),i=r(12814)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},406:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(54001),i=r.n(n);function o(e){return function(t){return new(i())(function(r){r(e(t))}).then(function(){return t}).catch(function(){return t})}}},410:(e,t,r)=>{var n=r(2153);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=n(e))throw TypeError(t);return+e}},421:(e,t,r)=>{e.exports=r(75253)},495:(e,t,r)=>{var n=r(3366),i=r(82663);r(37699)("keys",function(){return function(e){return i(n(e))}})},524:(e,t,r)=>{"use strict";r.d(t,{A:()=>L});var n=r(42096),i=r.n(n),o=r(75062),a=r.n(o),s=r(16091),c=r.n(s),u=r(68632),l=r.n(u),d=r(23509),h=r(25182),f=r(44383),p=r.n(f),v=r(56449),g=r.n(v),m=r(84684),y=r.n(m),E=r(36443),b=r.n(E),S=r(54001),A=r.n(S),C=r(69736),I=r.n(C),w=r(54585),T=r.n(w),_=r(55373),R=r.n(_),k=r(63794),N=r(58489);function x(e,t){var r=void 0!==a()&&e[c()]||e["@@iterator"];if(!r){if(l()(e)||(r=function(e,t){if(e){if("string"==typeof e)return O(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?i()(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?O(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 s,u=!0,d=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){d=!0,s=e},f:function(){try{u||null==r.return||r.return()}finally{if(d)throw s}}}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function L(e){return new(A())(function(n){var i=p()(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};y()(e,p()(t,I()(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=R().stringify(t.form),T()(e,"json")):t.formData?e.body=I()(t.formData).reduce(function(e,n){return r(e,n,t.formData[n]),e},new FormData):(e.body=t.body,T()(e,"json")):e.json=t.body}(i,e),function(e,t){t.qs&&(e.uri+="?".concat(R().stringify(t.qs)))}(i,e),e.logger.debug("start http ".concat(e.method?e.method:"request"," to ").concat(e.uri));var o=(0,k.A)(i,function(t,r){t&&e.logger.warn("XHR error for ".concat(e.method||"request"," to ").concat(e.uri," :"),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,d.A)(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,h.A)(b().mark(function e(t,r){var n;return b().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r.body instanceof Blob||r.body instanceof ArrayBuffer)){e.next=3;break}if(r.json=t.json=!1,n=t.headers["content-type"]){e.next=2;break}return e.next=1,(0,N.A)(r.body);case 1:n=e.sent;case 2:t.headers["content-type"]=n;case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function r(e,t,n){if(g()(n)){var i,o=x(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)}}},659:(e,t,r)=>{var n=r(51873),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}},803:(e,t,r)=>{var n=r(67e3),i=r(43892);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},898:(e,t,r)=>{"use strict";var n=r(53651),i=r(84335);function o(){this.H=[],this.M=null}o.prototype.init=function(e){var t,r,i;if(null==this.M)for(this.M=[],t=0;t<32;++t)for(this.M[t]=[],r=0;r<16;++r)for(this.M[t][r]=[],i=0;i<4;++i)this.M[t][r][i]=0;else if(n.arrayEqual(this.H,e))return;for(this.H=e.slice(),n.asInts(e,this.M[1][8]),r=4;r>=1;r>>=1)n.multiplyP(this.M[1][r+r],this.M[1][r]);for(n.multiplyP(this.M[1][1],this.M[0][8]),r=4;r>=1;r>>=1)n.multiplyP(this.M[0][r+r],this.M[0][r]);for(t=0;;){for(r=2;r<16;r+=r)for(i=1;i<r;++i)n.xor(this.M[t][r],this.M[t][i],this.M[t][r+i]);if(32===++t)return;if(t>1)for(r=8;r>0;r>>=1)n.multiplyP8(this.M[t-2][r],this.M[t][r])}},o.prototype.multiplyH=function(e){for(var t=[],r=15;r>=0;--r){var n=this.M[r+r][15&e[r]];t[0]^=n[0],t[1]^=n[1],t[2]^=n[2],t[3]^=n[3],n=this.M[r+r+1][(240&e[r])>>>4],t[0]^=n[0],t[1]^=n[1],t[2]^=n[2],t[3]^=n[3]}i.intToBigEndian(t,e,0)},e.exports={"8k":o}},920:(e,t,r)=>{"use strict";var n=r(69675),i=r(58859),o=r(14803),a=r(80507),s=r(72271)||a||o;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=s()),e.set(t,r)}};return t}},957:(e,t,r)=>{"use strict";var n=r(84335);e.exports={encrypt:function(e,t,r,i,o){var a=new Array(4),s=new Array(4);n.bigEndianToInt(t,r,a),e.encrypt(a,s),n.intToBigEndian(s,i,o)}}},969:(e,t,r)=>{e.exports=r(64952)},993:(e,t,r)=>{var n=Date.prototype,i="Invalid Date",o="toString",a=n[o],s=n.getTime;new Date(NaN)+""!=i&&r(1043)(n,o,function(){var e=s.call(this);return e==e?a.call(this):i})},1005:(e,t,r)=>{"use strict";var n=r(32629),i=r(7645),o=r(95324);function a(e,t){var r=t?["n","e"]:["n","e","d","p","q","dp","dq","qi"];return r=r.map(function(t){return new i.jsbn.BigInteger(e[t].toString("hex"),16)}),(t?i.pki.rsa.setPublicKey:i.pki.rsa.setPrivateKey).apply(i.pki.rsa,r)}e.exports={convertToForge:a,convertToJWK:function(e,t){var r=n(e);return(t?["n","e"]:["n","e","d","p","q","dp","dq","qi"]).forEach(function(e){r[e]=o.base64url.encode(r[e])}),delete r.key_ops,delete r.use,delete r.alg,t&&(delete r.d,delete r.p,delete r.q,delete r.dp,delete r.dq,delete r.qi),r},convertToPem:function(e,t){var r,n=t?"__cachedPublicPem":"__cachedPrivatePem";return e[n]?e[n]:(r=t?i.pki.publicKeyToPem(a(e,t)):i.pki.privateKeyToPem(a(e,t)),Object.defineProperty(e,n,{value:r}),r)}}},1043:(e,t,r)=>{var n=r(91790),i=r(94005),o=r(99701),a=r(11415)("src"),s=r(68189),c="toString",u=(""+s).split(c);r(3750).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)})},1148:(e,t,r)=>{r(57532),e.exports=r(63246).Date.now},1212:(e,t,r)=>{var n=r(91790),i=r(96375),o=r(79354),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)})},1221:(e,t,r)=>{r(81114),r(35279),r(61090),r(5786),r(35993),r(98794),r(78775),e.exports=r(63246).Map},1275:(e,t,r)=>{"use strict";r.d(t,{Cl:()=>n,Ju:()=>o,Tt:()=>i,fX:()=>s,zs:()=>a});var n=function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};function i(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function o(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function s(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}},1307:(e,t,r)=>{var n=r(4772),i=r(95161),o=r(3366),a=r(54117),s=r(93900);e.exports=function(e,t){var r=1==e,c=2==e,u=3==e,l=4==e,d=6==e,h=5==e||d,f=t||s;return function(t,s,p){for(var v,g,m=o(t),y=i(m),E=n(s,p,3),b=a(y.length),S=0,A=r?f(t,b):c?f(t,0):void 0;b>S;S++)if((h||S in y)&&(g=E(v=y[S],S,m),e))if(r)A[S]=g;else if(g)switch(e){case 3:return!0;case 5:return v;case 6:return S;case 2:A.push(v)}else if(l)return!1;return d?-1:u||l?l:A}}},1469:(e,t,r)=>{"use strict";var n=r(24727).f,i=r(73607),o=r(6601),a=r(4772),s=r(65968),c=r(16318),u=r(70471),l=r(14690),d=r(59834),h=r(36875),f=r(40324).fastKey,p=r(77200),v=h?"_s":"size",g=function(e,t){var r,n=f(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=p(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=p(this,t),n=g(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){p(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!!g(p(this,t),e)}}),h&&n(l.prototype,"size",{get:function(){return p(this,t)[v]}}),l},def:function(e,t,r){var n,i,o=g(e,t);return o?o.v=r:(e._l=o={i:i=f(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:g,setStrong:function(e,t,r){u(e,t,function(e,r){this._t=p(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)}}},1556:(e,t)=>{t.f=Object.getOwnPropertySymbols},1590: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,o,a,s){return o=o||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e?n(i(e),function(i){var s=encodeURIComponent(t(i))+a;return r(e[i])?n(e[i],function(e){return s+encodeURIComponent(t(e))}).join(o):s+encodeURIComponent(t(e[i]))}).join(o):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var i=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},1613:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(89488);n.A.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 i=n.A},1733:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},1833:(e,t,r)=>{"use strict";var n=r(96375),i=r(45120)(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(a||!r(43484)(o)),"Array",{indexOf:function(e){return a?o.apply(this,arguments)||0:i(this,e,arguments[1])}})},1882:(e,t,r)=>{var n=r(72552),i=r(23805);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1908:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={feature:{}}},1945:(e,t,r)=>{"use strict";r.d(t,{$:()=>E});var n=r(25182),i=r(78716),o=r(81570),a=r(134),s=r(36443),c=r.n(s),u=r(45249),l=r.n(u),d=r(61715),h=r(18281),f=r(20327),p=r(32907),v=r(42154),g=r(89606),m=r(85691),y=r(89173),E=function(){return(0,o.A)(function e(t){(0,i.A)(this,e),(0,a.A)(this,"webexRequest",void 0),(0,a.A)(this,"webex",void 0),(0,a.A)(this,"metricsManager",void 0),(0,a.A)(this,"pageCache",void 0),this.webex=t,this.webexRequest=f.A.getInstance({webex:t}),this.pageCache=new p.Ay("EntryPoint"),this.metricsManager=v.A.getInstance({webex:t})},[{key:"getEntryPoints",value:(e=(0,n.A)(c().mark(function e(){var t,r,n,i,o,a,s,u,f,v,E,b,S,A,C,I,w,T,_,R,k,N,x,O,L,M,D,P,U,B,F,V,j,G=arguments;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=G.length>0&&void 0!==G[0]?G[0]:{},r=l()(),n=t.page,i=void 0===n?p.Ci.PAGE:n,o=t.pageSize,a=void 0===o?p.Ci.PAGE_SIZE:o,s=t.search,u=t.filter,f=t.attributes,v=t.sortBy,E=t.sortOrder,b=void 0===E?"asc":E,S=this.webex.credentials.getOrgId(),A=!!(s||u||f||v),h.A.info("Fetching entry points - orgId: ".concat(S,", page: ").concat(i,", pageSize: ").concat(a,", isSearchRequest: ").concat(A),{module:"EntryPoint",method:"getEntryPoints"}),!this.pageCache.canUseCache({search:s,filter:u,attributes:f,sortBy:v})){e.next=1;break}if(C=this.pageCache.buildCacheKey(S,i,a),!(I=this.pageCache.getCachedPage(C))){e.next=1;break}return _=l()()-r,h.A.log("Returning page ".concat(i," from cache - cacheHit: true, duration: ").concat(_,"ms, recordCount: ").concat(I.data.length,", pageSize: ").concat(a),{module:"EntryPoint",method:"getEntryPoints"}),e.abrupt("return",{data:I.data,meta:{page:i,pageSize:a,totalPages:null===(w=I.totalMeta)||void 0===w?void 0:w.totalPages,totalRecords:null===(T=I.totalMeta)||void 0===T?void 0:T.totalRecords}});case 1:return this.metricsManager.timeEvent(y.Z.ENTRYPOINT_FETCH_SUCCESS),e.prev=2,L=new URLSearchParams({page:i.toString(),pageSize:a.toString(),sortOrder:b}),s&&L.append("search",s),u&&L.append("filter",u),f&&L.append("attributes",f),v&&L.append("sortBy",v),M=m.Cx.entryPointList(S,L.toString()),h.A.log("Making API request to fetch entry points - resource: ".concat(M,", service: ").concat(g.Io),{module:"EntryPoint",method:"getEntryPoints"}),e.next=3,this.webexRequest.request({service:g.Io,resource:M,method:d.y8.GET});case 3:return D=e.sent,P=l()()-r,U=(null===(R=D.body)||void 0===R||null===(k=R.data)||void 0===k?void 0:k.length)||0,B=null===(N=D.body)||void 0===N||null===(x=N.meta)||void 0===x?void 0:x.totalRecords,h.A.log("Successfully retrieved ".concat(U," entry points"),{module:"EntryPoint",method:"getEntryPoints",data:{statusCode:D.statusCode,duration:P,recordCount:U,totalRecords:B,isSearchRequest:A,page:i,pageSize:a}}),(A||0===i)&&this.metricsManager.trackEvent(y.Z.ENTRYPOINT_FETCH_SUCCESS,{orgId:S,statusCode:D.statusCode,recordCount:U,totalRecords:B,isSearchRequest:A,isFirstPage:0===i},["behavioral"]),this.pageCache.canUseCache({search:s,filter:u,attributes:f,sortBy:v})&&null!==(O=D.body)&&void 0!==O&&O.data&&(F=this.pageCache.buildCacheKey(S,i,a),this.pageCache.cachePage(F,D.body.data,D.body.meta),h.A.log("Cached entry points data for future requests",{module:"EntryPoint",method:"getEntryPoints",data:{cacheKey:F,recordCount:U}})),e.abrupt("return",D.body);case 4:throw e.prev=4,j=e.catch(2),V={orgId:S,error:j instanceof Error?j.message:String(j),isSearchRequest:A,page:i,pageSize:a},h.A.error("Failed to fetch entry points",{module:"EntryPoint",method:"getEntryPoints",data:V,error:j}),this.metricsManager.trackEvent(y.Z.ENTRYPOINT_FETCH_FAILED,V,["behavioral"]),j;case 5:case"end":return e.stop()}},e,this,[[2,4]])})),function(){return e.apply(this,arguments)})}]);var e}()},1977:(e,t,r)=>{var n=r(65606);const i=r(99589);e.exports=i.satisfies(n.version,">=15.7.0")},2074:(e,t,r)=>{"use strict";var n=r(61635);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)}},2085:(e,t,r)=>{"use strict";var n=r(91790),i=r(99701),o=r(2153),a=r(72232),s=r(53824),c=r(94944),u=r(23663).f,l=r(45481).f,d=r(24727).f,h=r(40941).trim,f="Number",p=n[f],v=p,g=p.prototype,m=o(r(73607)(g))==f,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():h(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(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof p&&(m?c(function(){g.valueOf.call(r)}):o(r)!=f)?a(new v(E(t)),r,p):E(t)};for(var b,S=r(36875)?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(","),A=0;S.length>A;A++)i(v,b=S[A])&&!i(p,b)&&d(p,b,l(v,b));p.prototype=g,g.constructor=p,r(1043)(n,f,p)}},2140:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>l,D4:()=>u,lF:()=>c});var n=r(421),i=r(92861),o=r(33573);function a(e){return n.decode(e).toString()}function s(e){var t=e;return(0,o.A)(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)}}},2153:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},2225:(e,t,r)=>{"use strict";var n=r(96375),i=r(75367);n(n.P+n.F*!r(43484)([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},2274:(e,t,r)=>{r(46760),e.exports=r(63246).Reflect.deleteProperty},2282:(e,t,r)=>{"use strict";r(62973),r(49647),e.exports=r(3750).Promise.finally},2385:(e,t,r)=>{var n=r(50276);r(7619);var i=e.exports=n.pem=n.pem||{};function o(e){for(var t=e.name+": ",r=[],n=function(e,t){return" "+t},i=0;i<e.values.length;++i)r.push(e.values[i].replace(/^(\S+\r\n)/,n));t+=r.join(",")+"\r\n";var o=0,a=-1;for(i=0;i<t.length;++i,++o)if(o>65&&-1!==a){var s=t[a];","===s?(++a,t=t.substr(0,a)+"\r\n "+t.substr(a)):t=t.substr(0,a)+"\r\n"+s+t.substr(a+1),o=i-a-1,a=-1,++i}else" "!==t[i]&&"\t"!==t[i]&&","!==t[i]||(a=i);return t}function a(e){return e.replace(/^\s+/,"")}i.encode=function(e,t){t=t||{};var r,i="-----BEGIN "+e.type+"-----\r\n";if(e.procType&&(i+=o(r={name:"Proc-Type",values:[String(e.procType.version),e.procType.type]})),e.contentDomain&&(i+=o(r={name:"Content-Domain",values:[e.contentDomain]})),e.dekInfo&&(r={name:"DEK-Info",values:[e.dekInfo.algorithm]},e.dekInfo.parameters&&r.values.push(e.dekInfo.parameters),i+=o(r)),e.headers)for(var a=0;a<e.headers.length;++a)i+=o(e.headers[a]);return e.procType&&(i+="\r\n"),i+=n.util.encode64(e.body,t.maxline||64)+"\r\n",i+="-----END "+e.type+"-----\r\n"},i.decode=function(e){for(var t,r=[],i=/\s*-----BEGIN ([A-Z0-9- ]+)-----\r?\n?([\x21-\x7e\s]+?(?:\r?\n\r?\n))?([:A-Za-z0-9+\/=\s]+?)-----END \1-----/g,o=/([\x21-\x7e]+):\s*([\x21-\x7e\s^:]+)/,s=/\r?\n/;t=i.exec(e);){var c=t[1];"NEW CERTIFICATE REQUEST"===c&&(c="CERTIFICATE REQUEST");var u={type:c,procType:null,contentDomain:null,dekInfo:null,headers:[],body:n.util.decode64(t[3])};if(r.push(u),t[2]){for(var l=t[2].split(s),d=0;t&&d<l.length;){for(var h=l[d].replace(/\s+$/,""),f=d+1;f<l.length;++f){var p=l[f];if(!/\s/.test(p[0]))break;h+=p,d=f}if(t=h.match(o)){for(var v={name:t[1],values:[]},g=t[2].split(","),m=0;m<g.length;++m)v.values.push(a(g[m]));if(u.procType)if(u.contentDomain||"Content-Domain"!==v.name)if(u.dekInfo||"DEK-Info"!==v.name)u.headers.push(v);else{if(0===v.values.length)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must have at least one subfield.');u.dekInfo={algorithm:g[0],parameters:g[1]||null}}else u.contentDomain=g[0]||"";else{if("Proc-Type"!==v.name)throw new Error('Invalid PEM formatted message. The first encapsulated header must be "Proc-Type".');if(2!==v.values.length)throw new Error('Invalid PEM formatted message. The "Proc-Type" header must have two subfields.');u.procType={version:g[0],type:g[1]}}}++d}if("ENCRYPTED"===u.procType&&!u.dekInfo)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must be present if "Proc-Type" is "ENCRYPTED".')}}if(0===r.length)throw new Error("Invalid PEM formatted message.");return r}},2404:(e,t,r)=>{var n=r(60270);e.exports=function(e,t){return n(e,t)}},2408:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var n=r(63723),i=r(63116),o=r(54001),a=r.n(o),s=r(68632),c=r.n(s),u=r(82731),l=r.n(u),d=r(43347);const h=n.i4.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 f;const p=n.vm.extend((f={namespace:"People",children:{batcher:h},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.YW(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:"0.0.0-next"},(0,i.A)(f,"_getMe",[d.oneFlight],l()(f,"_getMe"),f),f));(0,n.F3)("people",p,{config:{people:{batcherWait:100,batcherMaxCalls:10,batcherMaxWait:1500,showAllTypes:!1}}})},2431:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var n=r(63723),i=r(78716),o=r(81570),a=r(5601),s=r.n(a),c=r(73146),u=r.n(c),l=r(54001),d=r.n(l),h=r(54585),f=r.n(h),p=new(s()),v=new(s());const g={boundedAdapter:new(function(){return(0,o.A)(function e(t){(0,i.A)(this,e),this.Bound=function(){return(0,o.A)(function e(t,r){(0,i.A)(this,e),p.set(this,t),v.set(this,r.logger)},[{key:"_getRawData",value:function(){var e=localStorage.getItem(t);return e?JSON.parse(e):{}}},{key:"_load",value:function(){return this._getRawData()[p.get(this)]||{}}},{key:"_save",value:function(e){var r=this._getRawData();r[p.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();f()(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.m_("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()})}}])}()},[{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"))}}])}())("webex"),unboundedAdapter:n.Gd},m={hydra:"https://api.ciscospark.com/v1",hydraServiceUrl:"https://api.ciscospark.com/v1",credentials:{clientType:"confidential"},device:{validateDomains:!0,ephemeral:!0},storage:{boundedAdapter:g,unboundedAdapter:g}}},2523: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}},2590:(e,t,r)=>{"use strict";r.r(t),r.d(t,{DataChannelTokenType:()=>b,default:()=>C});var n=r(63723),i=r(88435),o=r.n(i),a=r(25182),s=r(78716),c=r(81570),u=r(77193),l=r(48148),d=r(31060),h=r(134),f=r(36443),p=r.n(f),v=r(80662),g=r.n(v),m=r(72503),y="llm-default-session",E=["transcription"],b=function(e){return e.Default="llm-default-session",e.PracticeSession="llm-practice-session",e}({});function S(){try{var e=!Boolean.prototype.valueOf.call(o()(Boolean,[],function(){}))}catch(e){}return(S=function(){return!!e})()}var A={llm:{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",SQDISCOVERY_SERVICE_URL:"https://ds.ciscospark.com/v1/region",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1",CALLING_SDK_VERSION:"3.12.0"}.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",SQDISCOVERY_SERVICE_URL:"https://ds.ciscospark.com/v1/region",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1",CALLING_SDK_VERSION:"3.12.0"}.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",SQDISCOVERY_SERVICE_URL:"https://ds.ciscospark.com/v1/region",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1",CALLING_SDK_VERSION:"3.12.0"}.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",SQDISCOVERY_SERVICE_URL:"https://ds.ciscospark.com/v1/region",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1",CALLING_SDK_VERSION:"3.12.0"}.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",SQDISCOVERY_SERVICE_URL:"https://ds.ciscospark.com/v1/region",WDM_SERVICE_URL:"https://wdm-a.wbx2.com/wdm/api/v1",WHISTLER_API_SERVICE_URL:"https://whistler-prod.allnint.ciscospark.com/api/v1",CALLING_SDK_VERSION:"3.12.0"}.MERCURY_FORCE_CLOSE_DELAY||2e3}},C=function(e){function t(){var e,r,n,i;(0,s.A)(this,t);for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];return r=this,n=t,i=[].concat(d),n=(0,l.A)(n),e=(0,u.A)(r,S()?o()(n,i||[],(0,l.A)(r).constructor):n.apply(r,i)),(0,h.A)(e,"namespace","llm"),(0,h.A)(e,"defaultSessionId",y),(0,h.A)(e,"connections",new(g())),(0,h.A)(e,"datachannelTokens",(0,h.A)((0,h.A)({},b.Default,void 0),b.PracticeSession,void 0)),(0,h.A)(e,"refreshHandler",void 0),(0,h.A)(e,"register",function(){var t=(0,a.A)(p().mark(function t(r,n){var i,o,a=arguments;return p().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=a.length>2&&void 0!==a[2]?a[2]:y,t.next=1,e.isDataChannelTokenEnabled();case 1:return o=t.sent,t.abrupt("return",e.request({method:"POST",url:r,body:{deviceUrl:e.webex.internal.device.url},headers:o&&n?{"Data-Channel-Auth-Token":n}:{}}).then(function(t){var r=e.connections.get(i)||{};r.webSocketUrl=t.body.webSocketUrl,r.binding=t.body.binding,e.connections.set(i,r)}).catch(function(t){throw e.logger.error("Error connecting to websocket for ".concat(i,": ").concat(t)),t}));case 2:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()),(0,h.A)(e,"registerAndConnect",function(r,n,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:y;return e.register(n,i,o).then((0,a.A)(p().mark(function a(){var s,c,u;return p().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(r&&n){a.next=1;break}return a.abrupt("return",void 0);case 1:return(s=e.connections.get(o)||{}).locusUrl=r,s.datachannelUrl=n,s.datachannelToken=i,e.connections.set(o,s),a.next=2,e.isDataChannelTokenEnabled();case 2:return c=a.sent,u=c?t.buildUrlWithAwareSubchannels(s.webSocketUrl,E):s.webSocketUrl,a.abrupt("return",e.connect(u,o));case 3:case"end":return a.stop()}},a)})))}),(0,h.A)(e,"isConnected",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,r=e.getSocket(t);return!!r&&r.connected}),(0,h.A)(e,"getBinding",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,r=e.connections.get(t);return null==r?void 0:r.binding}),(0,h.A)(e,"getLocusUrl",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,r=e.connections.get(t);return null==r?void 0:r.locusUrl}),(0,h.A)(e,"getDatachannelUrl",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,r=e.connections.get(t);return null==r?void 0:r.datachannelUrl}),(0,h.A)(e,"getDatachannelToken",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.Default;return e.datachannelTokens[t]}),(0,h.A)(e,"setDatachannelToken",function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.Default;e.datachannelTokens[r]=t}),(0,h.A)(e,"disconnectLLM",function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y;return e.disconnect(t,r).then(function(){e.connections.delete(r),e.datachannelTokens[r]=void 0})}),(0,h.A)(e,"disconnectAllLLM",function(t){return e.disconnectAll(t).then(function(){e.connections.clear(),e.resetDatachannelTokens()})}),(0,h.A)(e,"getAllConnections",function(){return new(g())(e.connections)}),e}return(0,d.A)(t,e),(0,c.A)(t,[{key:"resetDatachannelTokens",value:function(){this.datachannelTokens=(0,h.A)((0,h.A)({},b.Default,void 0),b.PracticeSession,void 0)}},{key:"setRefreshHandler",value:function(e){this.refreshHandler=e}},{key:"refreshDataChannelToken",value:(r=(0,a.A)(p().mark(function e(){var t,r;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.refreshHandler){e.next=1;break}return this.logger.warn("llm#refreshDataChannelToken --\x3e LLM refreshHandler is not set, skipping token refresh"),e.abrupt("return",null);case 1:return e.prev=1,e.next=2,this.refreshHandler();case 2:return t=e.sent,e.abrupt("return",t);case 3:return e.prev=3,r=e.catch(1),this.logger.warn("llm#refreshDataChannelToken --\x3e DataChannel token refresh failed (likely locus changed or participant left): ".concat((null==r?void 0:r.message)||r)),e.abrupt("return",null);case 4:case"end":return e.stop()}},e,this,[[1,3]])})),function(){return r.apply(this,arguments)})},{key:"isDataChannelTokenEnabled",value:function(){return this.webex.internal.feature.getFeature("developer","data-channel-with-jwt-token")}}]);var r}(m.default);(0,h.A)(C,"buildUrlWithAwareSubchannels",function(e,t){var r=new URL(e);return r.searchParams.set("subscriptionAwareSubchannels",t.join(",")),r.toString()}),n.Mk("llm",C,{config:A})},2725:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(88435),i=r.n(n),o=r(78716),a=r(81570),s=r(77193),c=r(48148),u=r(31060);function l(){try{var e=!Boolean.prototype.valueOf.call(i()(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}var d=function(e){function t(){return(0,o.A)(this,t),e=this,r=t,n=arguments,r=(0,c.A)(r),(0,s.A)(e,l()?i()(r,n||[],(0,c.A)(e).constructor):r.apply(e,n));var e,r,n}return(0,u.A)(t,e),(0,a.A)(t,[{key:"submitOperationalEvent",value:function(e){var t=e.name,r=e.payload,n=this.createTaggedEventObject({type:["operational"],name:t,payload:r});this.submitEvent({kind:"operational-events -> ",name:t,event:n})}}])}(r(39916).A)},2793:(e,t,r)=>{r(18158),e.exports=r(3750).Array.flatMap},2809:(e,t,r)=>{var n=r(99701),i=r(36173),o=r(45120)(!1),a=r(93590)("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}},2873:(e,t,r)=>{"use strict";r(38373);Object.defineProperty},3209:(e,t,r)=>{var n=r(91596),i=r(53320),o=r(36306),a="__lodash_placeholder__",s=128,c=Math.min;e.exports=function(e,t){var r=e[1],u=t[1],l=r|u,d=l<131,h=u==s&&8==r||u==s&&256==r&&e[7].length<=t[8]||384==u&&t[7].length<=t[8]&&8==r;if(!d&&!h)return e;1&u&&(e[2]=t[2],l|=1&r?0:4);var f=t[3];if(f){var p=e[3];e[3]=p?n(p,f,t[4]):f,e[4]=p?o(e[3],a):t[4]}return(f=t[5])&&(p=e[5],e[5]=p?i(p,f,t[6]):f,e[6]=p?o(e[5],a):t[6]),(f=t[7])&&(e[7]=f),u&s&&(e[8]=null==e[8]?t[8]:c(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=l,e}},3214:(e,t,r)=>{var n=r(13068),i=r(61635),o=r(12814)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||null==(r=n(a)[o])?t:i(r)}},3254:(e,t,r)=>{var n=r(50276);r(71696),r(8106),r(7619);var i,o=n.pkcs5=n.pkcs5||{};n.util.isNodejs&&!n.options.usePureJavaScript&&(i=r(50310)),e.exports=n.pbkdf2=o.pbkdf2=function(e,t,r,o,a,s){if("function"==typeof a&&(s=a,a=null),n.util.isNodejs&&!n.options.usePureJavaScript&&i.pbkdf2&&(null===a||"object"!=typeof a)&&(i.pbkdf2Sync.length>4||!a||"sha1"===a))return"string"!=typeof a&&(a="sha1"),e=Buffer.from(e,"binary"),t=Buffer.from(t,"binary"),s?4===i.pbkdf2Sync.length?i.pbkdf2(e,t,r,o,function(e,t){if(e)return s(e);s(null,t.toString("binary"))}):i.pbkdf2(e,t,r,o,a,function(e,t){if(e)return s(e);s(null,t.toString("binary"))}):4===i.pbkdf2Sync.length?i.pbkdf2Sync(e,t,r,o).toString("binary"):i.pbkdf2Sync(e,t,r,o,a).toString("binary");if(null==a&&(a="sha1"),"string"==typeof a){if(!(a in n.md.algorithms))throw new Error("Unknown hash algorithm: "+a);a=n.md[a].create()}var c=a.digestLength;if(o>4294967295*c){var u=new Error("Derived key is too long.");if(s)return s(u);throw u}var l=Math.ceil(o/c),d=o-(l-1)*c,h=n.hmac.create();h.start(a,e);var f,p,v,g="";if(!s){for(var m=1;m<=l;++m){h.start(null,null),h.update(t),h.update(n.util.int32ToBytes(m)),f=v=h.digest().getBytes();for(var y=2;y<=r;++y)h.start(null,null),h.update(v),p=h.digest().getBytes(),f=n.util.xorBytes(f,p,c),v=p;g+=m<l?f:f.substr(0,d)}return g}m=1;function E(){if(m>l)return s(null,g);h.start(null,null),h.update(t),h.update(n.util.int32ToBytes(m)),f=v=h.digest().getBytes(),y=2,b()}function b(){if(y<=r)return h.start(null,null),h.update(v),p=h.digest().getBytes(),f=n.util.xorBytes(f,p,c),v=p,++y,n.util.setImmediate(b);g+=m<l?f:f.substr(0,d),++m,E()}E()}},3309:(e,t,r)=>{"use strict";r.d(t,{U:()=>R});var n,i=r(88435),o=r.n(i),a=r(25182),s=r(78716),c=r(81570),u=r(77193),l=r(48148),d=r(31060),h=r(134),f=r(36443),p=r.n(f),v=r(69736),g=r.n(v),m=r(30390),y=r(64948),E=r(48878),b=r(23318),S=r(7297),A=r(9106),C=r(11807),I=r(60488),w=r(88174);function T(){try{var e=!Boolean.prototype.valueOf.call(o()(Boolean,[],function(){}))}catch(e){}return(T=function(){return!!e})()}var _=function(e){function t(e,r){var n,i,a,c;return(0,s.A)(this,t),i=this,a=t,a=(0,l.A)(a),n=(0,u.A)(i,T()?o()(a,c||[],(0,l.A)(i).constructor):a.apply(i,c)),(0,h.A)(n,"sdkConnector",void 0),(0,h.A)(n,"webex",void 0),(0,h.A)(n,"callCollection",void 0),(0,h.A)(n,"activeMobiusUrl",void 0),(0,h.A)(n,"serviceIndicator",void 0),(0,h.A)(n,"lineDict",void 0),(0,h.A)(n,"createCall",function(e,t,r,i){w.A.info("".concat(m.hH," with ").concat(e,", ").concat(t," and ").concat(r),{file:y.sx,method:y.J8.CREATE_CALL}),w.A.log("Creating call object",{});var o=(0,I.j)(n.activeMobiusUrl,n.webex,e,t,r,function(e){delete n.callCollection[e];var t=g()(n.getActiveCalls()).length;w.A.info("DELETE:: Deleted corelationId: ".concat(o.getCorrelationId()," from CallManager, Number of call records :- ").concat(t),{}),0===t&&(n.emit(E.tI.ALL_CALLS_CLEARED),w.A.log("All calls have been cleared",{file:y.sx,method:y.J8.CREATE_CALL}))},n.serviceIndicator,i);return n.callCollection[o.getCorrelationId()]=o,w.A.log("New call created with correlationId: ".concat(o.getCorrelationId()),{}),w.A.info("ADD:: Added corelationId: ".concat(o.getCorrelationId()," to CallManager , Number of call records now:- ").concat(g()(n.getActiveCalls()).length),{}),o}),(0,h.A)(n,"getCall",function(e){return n.callCollection[e]}),(0,h.A)(n,"getActiveCalls",function(){return n.callCollection}),n.sdkConnector=S.A,n.serviceIndicator=r,n.sdkConnector.getWebex()||S.A.setWebex(e),n.lineDict={},n.webex=n.sdkConnector.getWebex(),n.callCollection={},n.activeMobiusUrl="",n.listenForWsEvents(),n}return(0,d.A)(t,e),(0,c.A)(t,[{key:"updateActiveMobius",value:function(e){this.activeMobiusUrl=e,w.A.log("Successfully updated active Mobius URL to: ".concat(e),{file:y.sx,method:y.J8.UPDATE_ACTIVE_MOBIUS})}},{key:"listenForWsEvents",value:function(){var e=this;this.sdkConnector.registerListener("event:mobius",function(){var t=(0,a.A)(p().mark(function t(r){return p().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e.dequeueWsEvents(r);case 1:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()),w.A.info("Successfully registered listener for Mobius events",{file:y.sx,method:y.J8.REGISTER_SESSIONS_LISTENER})}},{key:"dequeueWsEvents",value:function(e){var t=this;w.A.info("".concat(m.hH," with event ").concat(e),{file:y.sx,method:y.J8.DEQUEUE_WS_EVENTS});var r=e,n=r.data,i=n.callId,o=n.correlationId;switch(r.data.eventType){case C.O8.CALL_SETUP:if(w.A.log("Received call Setup message for call: ".concat(i),{file:y.sx,method:y.J8.DEQUEUE_WS_EVENTS}),r.data.midCallService)return void r.data.midCallService.forEach(function(e){var r=t.getCall(o);r?r.handleMidCallEvent(e):w.A.info("Dropping midcall event of type: ".concat(e.eventType," as it doesn't match with any existing call"),{file:y.sx,method:y.J8.DEQUEUE_WS_EVENTS})});var a,s=g()(this.callCollection).find(function(e){return t.callCollection[e].getCallId()===i});if(s)w.A.info("Found the call Object with a matching callId: ".concat(i," from our records with correlationId: ").concat(s),{file:y.sx,method:y.J8.DEQUEUE_WS_EVENTS}),a=this.getCall(s);else{var c=this.getLineId(r.data.deviceId);a=this.createCall(A.QO.INBOUND,r.data.deviceId,c,{}),w.A.log("New incoming call created with correlationId from Call Setup message: ".concat(a.getCorrelationId()),{file:y.sx,method:y.J8.DEQUEUE_WS_EVENTS}),a.setCallId(i),r.data.broadworksCorrelationInfo&&(w.A.info("Found broadworksCorrelationInfo: ".concat(r.data.broadworksCorrelationInfo),{file:y.sx,method:y.J8.DEQUEUE_WS_EVENTS}),a.setBroadworksCorrelationInfo(r.data.broadworksCorrelationInfo))}r.data.callerId&&(w.A.info("Processing Caller-Id data",{file:y.sx,method:y.J8.DEQUEUE_WS_EVENTS}),a.startCallerIdResolution(r.data.callerId)),this.emit(E.Nm.INCOMING_CALL,a),a.sendCallStateMachineEvt({type:"E_RECV_CALL_SETUP",data:r.data});break;case C.O8.CALL_PROGRESS:w.A.log("Received call progress mobiusEvent for call: ".concat(o),{file:y.sx,method:y.J8.DEQUEUE_WS_EVENTS});var u=this.getCall(o);r.data.callerId&&(w.A.info("Processing Caller-Id data",{file:y.sx,method:y.J8.DEQUEUE_WS_EVENTS}),u.startCallerIdResolution(r.data.callerId)),u.sendCallStateMachineEvt({type:"E_RECV_CALL_PROGRESS",data:r.data});break;case C.O8.CALL_MEDIA:var l;if(w.A.log("Received call media mobiusEvent for call: ".concat(o),{file:y.sx,method:y.J8.DEQUEUE_WS_EVENTS}),o)l=this.getCall(o);else{var d=g()(this.callCollection).find(function(e){return t.callCollection[e].getCallId()===i});if(d)w.A.info("Found the call Object with a matching callId: ".concat(i," from our records with correlationId: ").concat(d),{file:y.sx,method:y.J8.DEQUEUE_WS_EVENTS}),l=this.getCall(d);else{var h=this.getLineId(r.data.deviceId);l=this.createCall(A.QO.INBOUND,r.data.deviceId,h,{}),w.A.log("New incoming call created with correlationId from ROAP Message: ".concat(l.getCorrelationId()),{file:y.sx,method:y.J8.DEQUEUE_WS_EVENTS}),l.setCallId(i)}}if(l){var f,p,v,b,S;w.A.info("SDP from mobius ".concat(null===(f=r.data.message)||void 0===f?void 0:f.sdp),{file:y.sx,method:y.J8.DEQUEUE_WS_EVENTS}),w.A.log("ROAP message from mobius with type: ".concat(null===(p=r.data.message)||void 0===p?void 0:p.messageType,", seq: ").concat(null===(v=r.data.message)||void 0===v?void 0:v.seq," , version: ").concat(null===(b=r.data.message)||void 0===b?void 0:b.version),{file:y.sx,method:y.J8.DEQUEUE_WS_EVENTS});var I=null===(S=r.data.message)||void 0===S?void 0:S.messageType;switch(I){case C.S.OFFER:w.A.log("Received OFFER",{file:y.sx,method:y.J8.DEQUEUE_WS_EVENTS}),l.sendMediaStateMachineEvt({type:"E_RECV_ROAP_OFFER",data:r.data.message});break;case C.S.ANSWER:w.A.log("Received ANSWER",{file:y.sx,method:y.J8.DEQUEUE_WS_EVENTS}),l.sendMediaStateMachineEvt({type:"E_RECV_ROAP_ANSWER",data:r.data.message});break;case C.S.OFFER_REQUEST:w.A.log("Received OFFER_REQUEST",{file:y.sx,method:y.J8.DEQUEUE_WS_EVENTS}),l.sendMediaStateMachineEvt({type:"E_RECV_ROAP_OFFER_REQUEST",data:r.data.message});break;case C.S.OK:w.A.log("Received OK",{file:y.sx,method:y.J8.DEQUEUE_WS_EVENTS});var T={received:!0,message:r.data.message};l.sendMediaStateMachineEvt({type:"E_ROAP_OK",data:T});break;case C.S.ERROR:w.A.log("Received Error...",{file:y.sx,method:y.J8.DEQUEUE_WS_EVENTS});break;default:w.A.log("Unknown Media mobiusEvent: ".concat(I," "),{file:y.sx,method:y.J8.DEQUEUE_WS_EVENTS})}}else w.A.info("CorrelationId: ".concat(o," doesn't exist , discarding.."),{file:y.sx,method:y.J8.DEQUEUE_WS_EVENTS});break;case C.O8.CALL_CONNECTED:w.A.log("Received call connect for call: ".concat(o),{file:y.sx,method:y.J8.DEQUEUE_WS_EVENTS}),this.getCall(o).sendCallStateMachineEvt({type:"E_RECV_CALL_CONNECT",data:r.data});break;case C.O8.CALL_DISCONNECTED:w.A.log("Received call disconnect for call: ".concat(o),{file:y.sx,method:y.J8.DEQUEUE_WS_EVENTS});var _=this.getCall(o);_&&_.sendCallStateMachineEvt({type:"E_RECV_CALL_DISCONNECT"});break;default:w.A.log("Unknown Call Event mobiusEvent: ".concat(r.data.eventType),{file:y.sx,method:y.J8.DEQUEUE_WS_EVENTS})}}},{key:"updateLine",value:function(e,t){this.lineDict[e]=t,w.A.log("Successfully updated line for deviceId: ".concat(e),{file:y.sx,method:y.J8.UPDATE_LINE})}},{key:"getLineId",value:function(e){return this.lineDict[e].lineId}}])}(b.P),R=function(e,t){return n||(n=new _(e,t)),n}},3328:(e,t,r)=>{r(29536);var n=r(63246).Object;e.exports=function(e,t,r){return n.defineProperty(e,t,r)}},3366:(e,t,r)=>{var n=r(93496);e.exports=function(e){return Object(n(e))}},3448:(e,t,r)=>{r(77208),e.exports=r(63246).Object.getPrototypeOf},3527: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+'"')}},3536:(e,t,r)=>{"use strict";var n=r(96375),i=r(1307)(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(66864)(o)},3635:(e,t,r)=>{r(81114),r(35279),r(61090),r(26176),r(82367),r(74256),r(50721),e.exports=r(63246).Set},3642:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(88435),i=r.n(n),o=r(78716),a=r(81570),s=r(77193),c=r(48148),u=r(31060),l=r(69736),d=r.n(l);function h(){try{var e=!Boolean.prototype.valueOf.call(i()(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}var f=function(e){function t(){return(0,o.A)(this,t),e=this,r=t,n=arguments,r=(0,c.A)(r),(0,s.A)(e,h()?i()(r,n||[],(0,c.A)(e).constructor):r.apply(e,n));var e,r,n}return(0,u.A)(t,e),(0,a.A)(t,[{key:"onRequest",value:function(e){var t=this.webex.config.defaultRequestOptions;return t?(d()(t).forEach(function(r){d()(e).includes(r)||(e[r]=t[r])}),e):e}}],[{key:"create",value:function(){return new t({webex:this})}}])}(r(62600).c$)},3650:(e,t,r)=>{var n=r(74335)(Object.keys