@zoom/cobrowsesdk 2.13.1 → 2.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/esm/agent.js +1 -1
- package/esm/customer.js +1 -1
- package/esm/sdk-channel.js +1 -1
- package/esm/sdk-client-agent.js +1 -1
- package/esm/sdk-client.js +1 -1
- package/esm/sdk-controller.js +1 -1
- package/esm/sdk-core.js +1 -1
- package/esm/sdk-portal-agent.js +1 -1
- package/esm/sdk-portal-customer.js +1 -1
- package/package.json +1 -1
- package/umd/agent.js +1 -1
- package/umd/customer.js +1 -1
package/esm/sdk-client-agent.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e='function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,t){var r=_superPropBase(e,n);if(r){var o=Object.getOwnPropertyDescriptor(r,n);return o.get?o.get.call(arguments.length<3?e:t):o.value}},_get.apply(null,arguments)}function _superPropBase(e,n){for(;!{}.hasOwnProperty.call(e,n)&&null!==(e=_getPrototypeOf(e)););return e}function _wrapNativeSuper(e){var n="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(t,e)},_wrapNativeSuper(e)}function _construct(e,n,t){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,n);var o=new(e.bind.apply(e,r));return t&&_setPrototypeOf(o,t.prototype),o}function _isNativeFunction(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(n){return"function"==typeof e}}function _createForOfIteratorHelper(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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 i,a=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(s)throw i}}}}function _defineProperty(e,n,t){return(n=_toPropertyKey(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function _inherits(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&_setPrototypeOf(e,n)}function _setPrototypeOf(e,n){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},_setPrototypeOf(e,n)}function _createSuper(e){var n=_isNativeReflectConstruct();return function(){var t,r=_getPrototypeOf(e);if(n){var o=_getPrototypeOf(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return _possibleConstructorReturn(this,t)}}function _possibleConstructorReturn(e,n){if(n&&("object"==_typeof(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _typeof(e){return _typeof="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},_typeof(e)}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */_regeneratorRuntime=function(){return n};var e,n={},t=Object.prototype,r=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,n,t,r){return Object.defineProperty(e,n,{value:t,enumerable:!r,configurable:!r,writable:!r})}try{u({},"")}catch(e){u=function(e,n,t){return e[n]=t}}function c(n,t,r,o){var i=t&&t.prototype instanceof l?t:l,a=Object.create(i.prototype);return u(a,"_invoke",function(n,t,r){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var u=O(s,r);if(u){if(u===E)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var c=_(n,t,r);if("normal"===c.type){if(o=r.done?4:2,c.arg===E)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=4,r.method="throw",r.arg=c.arg)}}}(n,r,new N(o||[])),!0),a}function _(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}n.wrap=c;var E={};function l(){}function d(){}function f(){}var S={};u(S,i,(function(){return this}));var I=Object.getPrototypeOf,R=I&&I(I(A([])));R&&R!==t&&r.call(R,i)&&(S=R);var g=f.prototype=l.prototype=Object.create(S);function T(e){["next","throw","return"].forEach((function(n){u(e,n,(function(e){return this._invoke(n,e)}))}))}function p(e,n){function t(o,i,a,s){var u=_(e[o],e,i);if("throw"!==u.type){var c=u.arg,E=c.value;return E&&"object"==_typeof(E)&&r.call(E,"__await")?n.resolve(E.__await).then((function(e){t("next",e,a,s)}),(function(e){t("throw",e,a,s)})):n.resolve(E).then((function(e){c.value=e,a(c)}),(function(e){return t("throw",e,a,s)}))}s(u.arg)}var o;u(this,"_invoke",(function(e,r){function i(){return new n((function(n,o){t(e,r,n,o)}))}return o=o?o.then(i,i):i()}),!0)}function O(n,t){var r=t.method,o=n.i[r];if(o===e)return t.delegate=null,"throw"===r&&n.i.return&&(t.method="return",t.arg=e,O(n,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a \'"+r+"\' method")),E;var i=_(o,n.i,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,E;var a=i.arg;return a?a.done?(t[n.r]=a.value,t.next=n.n,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,E):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,E)}function C(e){this.tryEntries.push(e)}function h(n){var t=n[4]||{};t.type="normal",t.arg=e,n[4]=t}function N(e){this.tryEntries=[[-1]],e.forEach(C,this),this.reset(!0)}function A(n){if(null!=n){var t=n[i];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,a=function t(){for(;++o<n.length;)if(r.call(n,o))return t.value=n[o],t.done=!1,t;return t.value=e,t.done=!0,t};return a.next=a}}throw new TypeError(_typeof(n)+" is not iterable")}return d.prototype=f,u(g,"constructor",f),u(f,"constructor",d),d.displayName=u(f,s,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===d||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},n.awrap=function(e){return{__await:e}},T(p.prototype),u(p.prototype,a,(function(){return this})),n.AsyncIterator=p,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new p(c(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},T(g),u(g,s,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var n=Object(e),t=[];for(var r in n)t.unshift(r);return function e(){for(;t.length;)if((r=t.pop())in n)return e.value=r,e.done=!1,e;return e.done=!0,e}},n.values=A,N.prototype={constructor:N,reset:function(n){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(h),!n)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var t=this;function r(e){a.type="throw",a.arg=n,t.next=e}for(var o=t.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,u=i[1],c=i[2];if(-1===i[0])return r("end"),!1;if(!u&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<u)return this.method="next",this.arg=e,r(u),!0;if(s<c)return r(c),!1}}},abrupt:function(e,n){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=n&&n<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=n,o?(this.method="next",this.next=o[2],E):this.complete(i)},complete:function(e,n){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&&n&&(this.next=n),E},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t[2]===e)return this.complete(t[4],t[3]),h(t),E}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t[0]===e){var r=t[4];if("throw"===r.type){var o=r.arg;h(t)}return o}}throw Error("illegal catch attempt")},delegateYield:function(n,t,r){return this.delegate={i:A(n),r:t,n:r},"next"===this.method&&(this.arg=e),E}},n}function _slicedToArray(e,n){return _arrayWithHoles(e)||_iterableToArrayLimit(e,n)||_unsupportedIterableToArray(e,n)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,n){if(e){if("string"==typeof e)return _arrayLikeToArray(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,n):void 0}}function _arrayLikeToArray(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function _iterableToArrayLimit(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;u=!1}else for(;!(u=(r=i.call(t)).done)&&(s.push(r.value),s.length!==n);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _defineProperties(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_toPropertyKey(r.key),r)}}function _createClass(e,n,t){return n&&_defineProperties(e.prototype,n),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var n=_toPrimitive(e,"string");return"symbol"==_typeof(n)?n:n+""}function _toPrimitive(e,n){if("object"!=_typeof(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function _classCallCheck(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}var ZoomCobrowseAgentSDK=function(e,n,t){"use strict";function r(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}function o(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}u((r=r.apply(e,n||[])).next())}))}var i,a;!function(e){e[e.info=0]="info",e[e.debug=1]="debug",e[e.log=2]="log",e[e.warn=3]="warn",e[e.error=4]="error"}(i||(i={})),function(e){e.afterInit="afterInit",e.beforeLog="beforeLog",e.afterLog="afterLog",e.beforeReport="beforeReport",e.afterReport="afterReport"}(a||(a={}));var s=_createClass((function e(){_classCallCheck(this,e)})),u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(e){if(e.__esModule)return e;var n=e.default;if("function"==typeof n){var t=function e(){if(this instanceof e){var t=[null];return t.push.apply(t,arguments),new(Function.bind.apply(n,t))}return n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}var _={},E={get exports(){return _},set exports(e){_=e}};var l,d={},f={get exports(){return d},set exports(e){d=e}},S=c(Object.freeze({__proto__:null,default:{}}));function I(){return l||(l=1,f.exports=(e=e||function(e,n){var t;if("undefined"!=typeof window&&window.crypto&&(t=window.crypto),"undefined"!=typeof self&&self.crypto&&(t=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t&&"undefined"!=typeof window&&window.msCrypto&&(t=window.msCrypto),!t&&void 0!==u&&u.crypto&&(t=u.crypto),!t)try{t=S}catch(e){}var r=function(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof t.randomBytes)try{return t.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(n){var t;return e.prototype=n,t=new e,e.prototype=null,t}}(),i={},a=i.lib={},s=a.Base={extend:function(e){var n=o(this);return e&&n.mixIn(e),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=a.WordArray=s.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=t!=n?t:4*e.length},toString:function(e){return(e||E).stringify(this)},concat:function(e){var n=this.words,t=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var a=t[i>>>2]>>>24-i%4*8&255;n[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var s=0;s<o;s+=4)n[r+s>>>2]=t[s>>>2];return this.sigBytes+=o,this},clamp:function(){var n=this.words,t=this.sigBytes;n[t>>>2]&=4294967295<<32-t%4*8,n.length=e.ceil(t/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var n=[],t=0;t<e;t+=4)n.push(r());return new c.init(n,e)}}),_=i.enc={},E=_.Hex={stringify:function(e){for(var n=e.words,t=e.sigBytes,r=[],o=0;o<t;o++){var i=n[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var n=e.length,t=[],r=0;r<n;r+=2)t[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(t,n/2)}},l=_.Latin1={stringify:function(e){for(var n=e.words,t=e.sigBytes,r=[],o=0;o<t;o++){var i=n[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var n=e.length,t=[],r=0;r<n;r++)t[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(t,n)}},d=_.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},f=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(n){var t,r=this._data,o=r.words,i=r.sigBytes,a=this.blockSize,s=i/(4*a),u=(s=n?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,_=e.min(4*u,i);if(u){for(var E=0;E<u;E+=a)this._doProcessBlock(o,E);t=o.splice(0,u),r.sigBytes-=_}return new c.init(t,_)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=f.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.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(n,t){return new e.init(t).finalize(n)}},_createHmacHelper:function(e){return function(n,t){return new I.HMAC.init(e,t).finalize(n)}}});var I=i.algo={};return i}(Math),e)),d;var e}E.exports=I().enc.Utf8;var R,g={},T={get exports(){return g},set exports(e){g=e}};function p(){return R||(R=1,function(e,n){var t;e.exports=(t=I(),function(){var e=t,n=e.lib.WordArray;function r(e,t,r){for(var o=[],i=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;o[i>>>2]|=s<<24-i%4*8,i++}return n.create(o,i)}e.enc.Base64={stringify:function(e){var n=e.words,t=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i<t;i+=3)for(var a=(n[i>>>2]>>>24-i%4*8&255)<<16|(n[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|n[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s<t;s++)o.push(r.charAt(a>>>6*(3-s)&63));var u=r.charAt(64);if(u)for(;o.length%4;)o.push(u);return o.join("")},parse:function(e){var n=e.length,t=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<t.length;i++)o[t.charCodeAt(i)]=i}var a=t.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(n=s)}return r(e,n,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),t.enc.Base64)}(T)),g}p();var O=function(e){try{return JSON.stringify(e)}catch(e){return"json stringify failed"}};var C,h,N,A=(C=(new Date).getTime(),h=performance&&performance.now&&1e3*performance.now()||0,"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=16*Math.random();return C>0?(n=(C+n)%16|0,C=Math.floor(C/16)):(n=(h+n)%16|0,h=Math.floor(h/16)),("x"===e?n:3&n|8).toString(16)}))),D=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t},v=function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t="".concat(e);t.length<n;)t="0".concat(t);return t},m=function(e){var n=new Date(e),t=n.getUTCFullYear(),r=v(n.getUTCMonth()+1),o=v(n.getUTCDate()),i=v(n.getUTCHours()),a=v(n.getUTCMinutes()),s=v(n.getUTCSeconds()),u=v(n.getUTCMilliseconds(),3);return"".concat(t,"-").concat(r,"-").concat(o," ").concat(i,":").concat(a,":").concat(s,".").concat(u)},y={version:"000001",flag:"0"},P=function(e){return e.reduce((function(e,n){var t,r,o,a,s,u,c,_=(r=(t=n).message,o=t.logLevel,a=t.tags,s=t.timestamp,t.id,u=D(t,["message","logLevel","tags","timestamp","id"]),c=Object.assign({time:m(s),logLevel:i[o],message:r,tags:a,laplaceSessionId:A},u),O(c)),E=function(e){for(var n=e.length,t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);r>127&&r<=2047?n++:r>2047&&r<=65535&&(n+=2),r>=56320&&r<=57343&&t--}return n}(_),l=e[e.length-1];return l.currentSize+E>30720?e.push({messages:[_],ids:[n.id],currentSize:E}):(l.messages.push(_),l.ids.push(n.id),l.currentSize+=E),e}),[{messages:[],ids:[],currentSize:0}]).filter((function(e){return e.currentSize>0})).map((function(e){return{messages:e.messages.join("\\n"),ids:e.ids,meta:y}}))};function b(e){return new Promise((function(n,t){e.oncomplete=e.onsuccess=function(){return n(e.result)},e.onabort=e.onerror=function(){return t(e.error)}}))}function L(e,n){var t=indexedDB.open(e);t.onupgradeneeded=function(){return t.result.createObjectStore(n)};var r=b(t);return function(e,t){return r.then((function(r){return t(r.transaction(n,e).objectStore(n))}))}}function w(){return N||(N=L("keyval-store","keyval")),N}function M(e,n){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:w())("readwrite",(function(t){return t.put(n,e),b(t.transaction)}))}function F(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:w())("readwrite",(function(n){return e.forEach((function(e){return n.delete(e)})),b(n.transaction)}))}function U(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:w())("readwrite",(function(e){return e.clear(),b(e.transaction)}))}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w();return e("readonly",(function(n){if(n.getAll&&n.getAllKeys)return Promise.all([b(n.getAllKeys()),b(n.getAll())]).then((function(e){var n=_slicedToArray(e,2),t=n[0],r=n[1];return t.map((function(e,n){return[e,r[n]]}))}));var t=[];return e("readonly",(function(e){return function(e,n){return e.openCursor().onsuccess=function(){this.result&&(n(this.result),this.result.continue())},b(e.transaction)}(e,(function(e){return t.push([e.key,e.value])})).then((function(){return t}))}))}))}var B=function(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}u((r=r.apply(e,n||[])).next())}))},x=new(function(){function e(){_classCallCheck(this,e),this.queue=[],this.processing=!1}return _createClass(e,[{key:"enqueue",value:function(e){var n=this;return new Promise((function(t,r){n.queue.push((function(){return B(n,void 0,void 0,_regeneratorRuntime().mark((function n(){var o;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,e();case 3:o=n.sent,t(o),n.next=10;break;case 7:n.prev=7,n.t0=n.catch(0),r(n.t0);case 10:case"end":return n.stop()}}),n,null,[[0,7]])})))})),n.processing||n.processNext()}))}},{key:"processNext",value:function(){return B(this,void 0,void 0,_regeneratorRuntime().mark((function e(){var n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this.queue.length){e.next=3;break}return this.processing=!1,e.abrupt("return");case 3:return this.processing=!0,n=this.queue.shift(),e.prev=5,e.next=8,n();case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),console.error("Task error:",e.t0);case 13:this.processNext();case 14:case"end":return e.stop()}}),e,this,[[5,10]])})))}}]),e}()),V=function(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}u((r=r.apply(e,n||[])).next())}))},W=_createClass((function e(n){var t=this;_classCallCheck(this,e),this.set=function(e,n){try{return!t.disableDB&&x.enqueue((function(){return V(t,void 0,void 0,_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",M(e,n,this.store));case 1:case"end":return t.stop()}}),t,this)})))}))}catch(e){t.disableDB=!0}},this.makeNextId=function(){return t.nextId+=1,t.nextId},this.addLog=function(e){t.addToMemory(e);var n=e.id;return Number.isNaN(n),t.set("".concat(n),e)},this.addToMemory=function(e,n){t.memoryStoreData=n?[].concat(e):t.memoryStoreData.concat(e)},this.syncFromIDB=function(){return V(t,void 0,void 0,_regeneratorRuntime().mark((function e(){var n,t,r,o,i,a=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x.enqueue((function(){return V(a,void 0,void 0,_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",k(this.store));case 1:case"end":return e.stop()}}),e,this)})))}));case 2:if(t=e.sent,r=t.filter((function(e){var n=_slicedToArray(e,2),t=n[0],r=n[1];return!(null==r?void 0:r.id)&&0!==(null==r?void 0:r.id)||!Number.isInteger(Number(t))})),o=r.map((function(e){return e[0]})),i=t.filter((function(e){var n=_slicedToArray(e,1)[0];return!o.includes(n)})).sort((function(e,n){var t,r;return(null===(t=e[1])||void 0===t?void 0:t.id)-(null===(r=n[1])||void 0===r?void 0:r.id)})).map((function(e){return _slicedToArray(e,2)[1]})),this.addToMemory(i,!0),!(o.length>0)){e.next=10;break}return e.next=10,this.deleteLogs(o);case 10:return this.nextId=0===this.memoryStoreData.length?0:null===(n=this.memoryStoreData[this.memoryStoreData.length-1])||void 0===n?void 0:n.id,e.abrupt("return",this.memoryStoreData);case 12:case"end":return e.stop()}}),e,this)})))},this.getStore=function(){return t.memoryStoreData},this.filterStore=function(e){var n=[e].flatMap((function(e){return e}));return e?t.memoryStoreData.filter((function(e){return n.some((function(n){return"string"==typeof n?e.tags.some((function(e){return n===e})):"function"==typeof n&&n(e)}))})):t.memoryStoreData},this.deleteLogs=function(e){return V(t,void 0,void 0,_regeneratorRuntime().mark((function n(){var t=this;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.deleteMemoryLogs(e),n.abrupt("return",x.enqueue((function(){return V(t,void 0,void 0,_regeneratorRuntime().mark((function n(){return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",F(e.map((function(e){return"".concat(e)})),this.store));case 1:case"end":return n.stop()}}),n,this)})))})));case 2:case"end":return n.stop()}}),n,this)})))},this.deleteLogsAfterReport=function(e){return V(t,void 0,void 0,_regeneratorRuntime().mark((function n(){return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.deleteMemoryLogs(e),n.abrupt("return",F(e.map((function(e){return"".concat(e)})),this.store));case 2:case"end":return n.stop()}}),n,this)})))},this.deleteMemoryLogs=function(e){t.memoryStoreData=t.memoryStoreData.filter((function(n){var t;return!(null===(t=e.includes)||void 0===t?void 0:t.call(e,n.id))}))},this.reset=function(){t.memoryStoreData=[],x.enqueue((function(){return V(t,void 0,void 0,_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",U(this.store));case 1:case"end":return e.stop()}}),e,this)})))}))},this.nextId=0,this.memoryStoreData=[],this.disableDB=!1,x.enqueue((function(){return V(t,void 0,void 0,_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",L(n,n+"-store"));case 1:case"end":return e.stop()}}),e)})))})).then((function(e){t.store=e}))}));function G(e,n,t){var r=e.plugins;return Array.isArray(r)?r.map((function(e){return e[n]})).reduce((function(n,t){var r=null==t?void 0:t(e,n);return null!=r?r:n}),t):t}var H=function(e){return new Promise((function(n){var t=new XMLHttpRequest;t.open(e.type||"GET",e.url,!0),t.withCredentials=e.withCredentials,t.onerror=function(t){n({error:t,report:e.reportItem})},t.onreadystatechange=function(){if(4===t.readyState){var r=t.status;n(r>=200&&r<300?{report:e.reportItem}:{error:"Request failed, status: ".concat(r,", responseText: ").concat(t.responseText),report:e.reportItem})}},Object.entries(e.headers).forEach((function(e){var n=_slicedToArray(e,2),r=n[0],o=n[1];o&&r&&t.setRequestHeader(r,o)})),t.send(e.data)}))},J="Expected a function",Y=NaN,j="[object Symbol]",K=/^\\s+|\\s+$/g,z=/^[-+]0x[0-9a-f]+$/i,Z=/^0b[01]+$/i,X=/^0o[0-7]+$/i,q=parseInt,Q="object"==_typeof(u)&&u&&u.Object===Object&&u,$="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,ee=Q||$||Function("return this")(),ne=Object.prototype.toString,te=Math.max,re=Math.min,oe=function(){return ee.Date.now()};function ie(e,n,t){var r,o,i,a,s,u,c=0,_=!1,E=!1,l=!0;if("function"!=typeof e)throw new TypeError(J);function d(n){var t=r,i=o;return r=o=void 0,c=n,a=e.apply(i,t)}function f(e){var t=e-u;return void 0===u||t>=n||t<0||E&&e-c>=i}function S(){var e=oe();if(f(e))return I(e);s=setTimeout(S,function(e){var t=n-(e-u);return E?re(t,i-(e-c)):t}(e))}function I(e){return s=void 0,l&&r?d(e):(r=o=void 0,a)}function R(){var e=oe(),t=f(e);if(r=arguments,o=this,u=e,t){if(void 0===s)return function(e){return c=e,s=setTimeout(S,n),_?d(e):a}(u);if(E)return s=setTimeout(S,n),d(u)}return void 0===s&&(s=setTimeout(S,n)),a}return n=ue(n)||0,ae(t)&&(_=!!t.leading,i=(E="maxWait"in t)?te(ue(t.maxWait)||0,n):i,l="trailing"in t?!!t.trailing:l),R.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=u=o=s=void 0},R.flush=function(){return void 0===s?a:I(oe())},R}function ae(e){var n=_typeof(e);return!!e&&("object"==n||"function"==n)}function se(e){return"symbol"==_typeof(e)||function(e){return!!e&&"object"==_typeof(e)}(e)&&ne.call(e)==j}function ue(e){if("number"==typeof e)return e;if(se(e))return Y;if(ae(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=ae(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(K,"");var t=Z.test(e);return t||X.test(e)?q(e.slice(2),t?2:8):z.test(e)?Y:+e}var ce=function(e,n,t){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(J);return ae(t)&&(r="leading"in t?!!t.leading:r,o="trailing"in t?!!t.trailing:o),ie(e,n,{leading:r,maxWait:n,trailing:o})},_e=function(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}u((r=r.apply(e,n||[])).next())}))},Ee={databaseName:"laplace-default-db"},le=function(e,n,t,r){var o=Date.now();return Object.assign({message:e,logLevel:t,tags:n,timestamp:o},r)},de=_createClass((function e(n){var t=this;_classCallCheck(this,e),this.cacheFilter=[],this.log=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.log,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return _e(t,void 0,void 0,_regeneratorRuntime().mark((function t(){var i,s,u;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=[n,this.publicTags].flatMap((function(e){return e})),s=le(e,i,r,Object.assign(Object.assign({},this.publicAttributes),o)),(u=G(this,a.beforeLog,s)).id=this.idbManager.makeNextId(),this.idbManager.addLog(u),G(this,a.afterLog,u);case 6:case"end":return t.stop()}}),t,this)})))},this.deleteLog=function(e,n){if(!Array.isArray(n)||(t.idbManager.deleteLogs(n),e)){var r=t.idbManager.filterStore(e).map((function(e){return e.id}));t.idbManager.deleteLogs(r)}},this.deleteAll=function(){t.idbManager.reset()},this.getLogs=function(e){return t.idbManager.filterStore(e)},this.setReportUrl=function(e){t.reportUrl=e},this.throttleReport=ce((function(e){t.reportByHttps(e),t.cacheFilter=[]}),5e3,{leading:!0,trailing:!0}),this.reportByFilter=function(e){t.cacheFilter=t.cacheFilter.concat(e),t.throttleReport(t.cacheFilter)},this.reportByHttps=function(e){return _e(t,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,r=this;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=function(){return _e(r,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,r,o;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if((t=this.idbManager.filterStore(e))&&0!==t.length){n.next=3;break}return n.abrupt("return");case 3:return r=G(this,a.beforeReport,t),o=P(r),n.abrupt("return",this.commonReport(o));case 6:case"end":return n.stop()}}),n,this)})))},x.enqueue(t);case 2:case"end":return n.stop()}}),n)})))},this.directReport=function(e,n){var r,o,a,s,u=null!==(r=n.sampleRate)&&void 0!==r?r:1;if(!(Math.random()>u))return s=n.useRawData?e:Object.assign({message:e,time:m(Date.now()),tags:[].concat(_toConsumableArray(null!==(o=null==n?void 0:n.tags)&&void 0!==o?o:[]),_toConsumableArray(t.publicTags)),logLevel:null!==(a=null==n?void 0:n.logLevel)&&void 0!==a?a:i.log,laplaceSessionId:A},t.publicAttributes),t.commonReport([{messages:s,meta:y}],!1)},this.commonReport=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t.reportUrl)return Promise.all(e.map((function(e){return{url:t.reportUrl,type:"POST",withCredentials:!1,headers:{},data:O({messages:e.messages,meta:e.meta}),reportItem:e}})).map(H)).then((function(e){var r=e.filter((function(e){return!e.error})).flatMap((function(e){return e.report.ids}));if(G(t,a.afterReport,{removeIds:r}),n)return t.idbManager.deleteLogsAfterReport(r)}))};var r=n.databaseName,o=n.reportUrl,s=void 0===o?"":o,u=n.plugins,c=void 0===u?[]:u,_=n.idbManager,E=n.publicTags,l=void 0===E?[]:E,d=n.publicAttributes,f=void 0===d?{}:d;this.databaseName=r,this.reportUrl=s,this.plugins=c,this.idbManager=_,this.publicTags=l,this.publicAttributes=f,G(this,a.afterInit)}));de.init=function(e){return _e(void 0,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,r;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.databaseName,r=new W(void 0===t?"laplace-default-db":t),n.next=4,r.syncFromIDB();case 4:return n.abrupt("return",new de(Object.assign(Object.assign(Object.assign({},Ee),e),{idbManager:r})));case 5:case"end":return n.stop()}}),n)})))};var fe,Se,Ie={enable:!0,gatewayEndPoint:"",logLevel:{debug:!1,log:!0,info:!1,print:!1,warn:!0,error:!0},logLevelAutoReport:{debug:!0,log:!0,info:!0,warn:!0,error:!0}},Re=(null===globalThis||void 0===globalThis?void 0:globalThis.ZMCoBrowsingConfig)||{},ge={enable:Re.enableZCBClientLog,gatewayEndPoint:Re.gatewayEndPoint},Te=function(){var e,n=null!==(e=ge.gatewayEndPoint)&&void 0!==e?e:Ie.gatewayEndPoint;return n||""}(),pe=Ie,Oe=(fe="",Se=void 0,{setDynamicReportUrl:function(e){fe=e},getDynamicReportUrl:function(){return fe},getCurrentReportUrl:function(){return fe||Te},setDynamicLaplaceEnabled:function(e){Se=e},getDynamicLaplaceEnabled:function(){return Se}}),Ce=function(){return void 0!==Oe.getDynamicLaplaceEnabled()?Oe.getDynamicLaplaceEnabled():!!(null!==(e=ge.enable)&&void 0!==e?e:null==Ie?void 0:Ie.enable);var e},he=function(e){_inherits(t,e);var n=_createSuper(t);function t(e){var r;return _classCallCheck(this,t),(r=n.call(this)).config={debug:!1},r.debugLog=function(e){r.config.debug&&console.log("[AutoCleanLogPlugin]: ".concat(e))},r.afterInit=function(e){var n=r.config.expireBefore;if(n){var t=e.idbManager.getStore(),o=("function"==typeof n?t.filter(n):t.filter((function(e){return e.timestamp<n}))).map((function(e){return e.id}));e.deleteLog(void 0,o),r.debugLog("afterInit, clean log id: ".concat(o))}else r.debugLog("early return on beforeInit because expireBefore is falsy")},e&&(r.config=e),r}return _createClass(t)}(s),Ne=["RESOURCE_ERROR","JS_ERROR","UNHANDLED_PROMISE_REJECTION"],Ae=function(e){_inherits(t,e);var n=_createSuper(t);function t(e){var r;return _classCallCheck(this,t),(r=n.call(this)).config={debug:!1,publicTags:[]},r.errorCount=0,r.hashErrors={},r.addPublicTags=function(e){var n;return null===(n=r.config.publicTags)||void 0===n?void 0:n.concat(e).filter((function(e){return e}))},r.debugLog=function(e){r.config.debug&&console.log("[AutoLogErrorPlugin]:",e)},r.ignore=function(e){var n,t,o,i,a;return void 0!==(null===(n=r.config)||void 0===n?void 0:n.maxErrorCount)&&r.errorCount>=(null===(t=r.config)||void 0===t?void 0:t.maxErrorCount)||!!(null===(o=r.config)||void 0===o?void 0:o.ignoredErrorMsgKeywords)&&(e&&(null===(a=null===(i=r.config)||void 0===i?void 0:i.ignoredErrorMsgKeywords)||void 0===a?void 0:a.some((function(n){return null==e?void 0:e.includes(n)}))))},r.report=ce((function(e){}),600,{trailing:!0,leading:!1}),r.afterInit=function(e){if(self.addEventListener){var n=function(n,t,o,a){r.debugLog(o),r.errorCount+=1;try{return(s=n,u=(new TextEncoder).encode(s),crypto.subtle.digest("SHA-1",u).then((function(e){return Array.from(new Uint8Array(e)).map((function(e){return e.toString(16).padStart(2,"0")})).join("")}))).then((function(o){return r.hashErrors[o]?"dismissed":(r.hashErrors[o]=!0,e.log(n,r.addPublicTags([].concat(t)),null!=a?a:i.error,{extraProperties:{messageHash:o}}).then((function(){return e.reportByFilter(Ne)})))})).catch(console.error)}catch(e){return console.error(e),Promise.resolve(e)}var s,u};try{self.addEventListener("error",(function(e){var t,o,i,a,s,u,c;if(!r.ignore(null==e?void 0:e.message)){if("function"==typeof r.config.onError){var _=r.config.onError(e),E=_.message,l=_.tags,d=_.logLevel;return n(E,["JS_ERROR"].concat(_toConsumableArray(l)),e,d)}if((null==e?void 0:e.target)&&((null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.src)||(null===(o=null==e?void 0:e.target)||void 0===o?void 0:o.href))){var f="Load Resource Error in ".concat(null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.tagName," element: ").concat((null===(a=null==e?void 0:e.target)||void 0===a?void 0:a.src)||(null===(s=null==e?void 0:e.target)||void 0===s?void 0:s.href));return n(f,"RESOURCE_ERROR",e)}var S="Javascript Runtime Error in ".concat(null==e?void 0:e.filename," (").concat(null==e?void 0:e.lineno,":").concat(null==e?void 0:e.colno,"): ").concat(null==e?void 0:e.message,"\\nStack: ").concat(null!==(c=null===(u=null==e?void 0:e.error)||void 0===u?void 0:u.stack)&&void 0!==c?c:null==e?void 0:e.stack);return n(S,"JS_ERROR",e)}})),self.addEventListener("unhandledrejection",(function(e){var t;if(!r.ignore(null===(t=null==e?void 0:e.reason)||void 0===t?void 0:t.message)){if("function"==typeof r.config.onError){var o=r.config.onError(e),i=o.message,a=o.tags,s=o.logLevel;return n(i,["UNHANDLED_PROMISE_REJECTION"].concat(_toConsumableArray(a)),e,s)}var u,c=null==e?void 0:e.reason;return u="string"==typeof c?"Promise Error: ".concat(c):c instanceof Error?"Promise Error: ".concat(c.message," ").concat(c.name," ").concat(c.stack):"object"===_typeof(c)?"Promise Error with reason: ".concat(O(c)):"Promise Error with unrecognized reason: ".concat(c),n(u,"UNHANDLED_PROMISE_REJECTION",e)}}))}catch(e){console.error(e)}r.debugLog("afterInit, add listener")}},e&&(r.config=e),r.config.publicTags=[].concat(null==e?void 0:e.publicTags),r}return _createClass(t)}(s),De="__lodash_hash_undefined__",ve=9007199254740991,me="[object Arguments]",ye="[object Function]",Pe="[object GeneratorFunction]",be="[object Symbol]",Le=/^\\[object .+?Constructor\\]$/,we=/^(?:0|[1-9]\\d*)$/,Me="object"==_typeof(u)&&u&&u.Object===Object&&u,Fe="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,Ue=Me||Fe||Function("return this")();function ke(e,n){return!!(e?e.length:0)&&function(e,n,t){if(n!=n)return function(e,n,t,r){var o=e.length,i=t+(r?1:-1);for(;r?i--:++i<o;)if(n(e[i],i,e))return i;return-1}(e,We,t);var r=t-1,o=e.length;for(;++r<o;)if(e[r]===n)return r;return-1}(e,n,0)>-1}function Be(e,n,t){for(var r=-1,o=e?e.length:0;++r<o;)if(t(n,e[r]))return!0;return!1}function xe(e,n){for(var t=-1,r=e?e.length:0,o=Array(r);++t<r;)o[t]=n(e[t],t,e);return o}function Ve(e,n){for(var t=-1,r=n.length,o=e.length;++t<r;)e[o+t]=n[t];return e}function We(e){return e!=e}function Ge(e,n){return e.has(n)}function He(e,n){return function(t){return e(n(t))}}var Je,Ye=Array.prototype,je=Function.prototype,Ke=Object.prototype,ze=Ue["__core-js_shared__"],Ze=(Je=/[^.]+$/.exec(ze&&ze.keys&&ze.keys.IE_PROTO||""))?"Symbol(src)_1."+Je:"",Xe=je.toString,qe=Ke.hasOwnProperty,Qe=Ke.toString,$e=RegExp("^"+Xe.call(qe).replace(/[\\\\^$.*+?()[\\]{}|]/g,"\\\\$&").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$"),en=Ue.Symbol,nn=He(Object.getPrototypeOf,Object),tn=Ke.propertyIsEnumerable,rn=Ye.splice,on=en?en.isConcatSpreadable:void 0,an=Object.getOwnPropertySymbols,sn=Math.max,un=On(Ue,"Map"),cn=On(Object,"create");function _n(e){var n=-1,t=e?e.length:0;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function En(e){var n=-1,t=e?e.length:0;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function ln(e){var n=-1,t=e?e.length:0;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function dn(e){var n=-1,t=e?e.length:0;for(this.__data__=new ln;++n<t;)this.add(e[n])}function fn(e,n){var t=mn(e)||vn(e)?function(e,n){for(var t=-1,r=Array(e);++t<e;)r[t]=n(t);return r}(e.length,String):[],r=t.length,o=!!r;for(var i in e)!n&&!qe.call(e,i)||o&&("length"==i||An(i,r))||t.push(i);return t}function Sn(e,n){for(var t,r,o=e.length;o--;)if((t=e[o][0])===(r=n)||t!=t&&r!=r)return o;return-1}function In(e,n,t,r,o){var i=-1,a=e.length;for(t||(t=Nn),o||(o=[]);++i<a;){var s=e[i];n>0&&t(s)?n>1?In(s,n-1,t,r,o):Ve(o,s):r||(o[o.length]=s)}return o}function Rn(e){if(!bn(e)||(n=e,Ze&&Ze in n))return!1;var n,t=Pn(e)||function(e){var n=!1;if(null!=e&&"function"!=typeof e.toString)try{n=!!(e+"")}catch(e){}return n}(e)?$e:Le;return t.test(function(e){if(null!=e){try{return Xe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function gn(e){if(!bn(e))return function(e){var n=[];if(null!=e)for(var t in Object(e))n.push(t);return n}(e);var n,t,r,o=(t=(n=e)&&n.constructor,r="function"==typeof t&&t.prototype||Ke,n===r),i=[];for(var a in e)("constructor"!=a||!o&&qe.call(e,a))&&i.push(a);return i}function Tn(e){return function(e,n,t){var r=n(e);return mn(e)?r:Ve(r,t(e))}(e,wn,hn)}function pn(e,n){var t,r,o=e.__data__;return("string"==(r=_typeof(t=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?o["string"==typeof n?"string":"hash"]:o.map}function On(e,n){var t=function(e,n){return null==e?void 0:e[n]}(e,n);return Rn(t)?t:void 0}_n.prototype.clear=function(){this.__data__=cn?cn(null):{}},_n.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},_n.prototype.get=function(e){var n=this.__data__;if(cn){var t=n[e];return t===De?void 0:t}return qe.call(n,e)?n[e]:void 0},_n.prototype.has=function(e){var n=this.__data__;return cn?void 0!==n[e]:qe.call(n,e)},_n.prototype.set=function(e,n){return this.__data__[e]=cn&&void 0===n?De:n,this},En.prototype.clear=function(){this.__data__=[]},En.prototype.delete=function(e){var n=this.__data__,t=Sn(n,e);return!(t<0)&&(t==n.length-1?n.pop():rn.call(n,t,1),!0)},En.prototype.get=function(e){var n=this.__data__,t=Sn(n,e);return t<0?void 0:n[t][1]},En.prototype.has=function(e){return Sn(this.__data__,e)>-1},En.prototype.set=function(e,n){var t=this.__data__,r=Sn(t,e);return r<0?t.push([e,n]):t[r][1]=n,this},ln.prototype.clear=function(){this.__data__={hash:new _n,map:new(un||En),string:new _n}},ln.prototype.delete=function(e){return pn(this,e).delete(e)},ln.prototype.get=function(e){return pn(this,e).get(e)},ln.prototype.has=function(e){return pn(this,e).has(e)},ln.prototype.set=function(e,n){return pn(this,e).set(e,n),this},dn.prototype.add=dn.prototype.push=function(e){return this.__data__.set(e,De),this},dn.prototype.has=function(e){return this.__data__.has(e)};var Cn=an?He(an,Object):kn,hn=an?function(e){for(var n=[];e;)Ve(n,Cn(e)),e=nn(e);return n}:kn;function Nn(e){return mn(e)||vn(e)||!!(on&&e&&e[on])}function An(e,n){return!!(n=null==n?ve:n)&&("number"==typeof e||we.test(e))&&e>-1&&e%1==0&&e<n}function Dn(e){if("string"==typeof e||function(e){return"symbol"==_typeof(e)||Ln(e)&&Qe.call(e)==be}(e))return e;var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n}function vn(e){return function(e){return Ln(e)&&yn(e)}(e)&&qe.call(e,"callee")&&(!tn.call(e,"callee")||Qe.call(e)==me)}var mn=Array.isArray;function yn(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=ve}(e.length)&&!Pn(e)}function Pn(e){var n=bn(e)?Qe.call(e):"";return n==ye||n==Pe}function bn(e){var n=_typeof(e);return!!e&&("object"==n||"function"==n)}function Ln(e){return!!e&&"object"==_typeof(e)}function wn(e){return yn(e)?fn(e,!0):gn(e)}var Mn,Fn,Un=(Mn=function(e,n){return null==e?{}:(n=xe(In(n,1),Dn),function(e,n){return function(e,n,t){for(var r=-1,o=n.length,i={};++r<o;){var a=n[r],s=e[a];t(s,a)&&(i[a]=s)}return i}(e=Object(e),n,(function(n,t){return t in e}))}(e,function(e,n,t,r){var o,i=-1,a=ke,s=!0,u=e.length,c=[],_=n.length;if(!u)return c;t&&(n=xe(n,(o=t,function(e){return o(e)}))),r?(a=Be,s=!1):n.length>=200&&(a=Ge,s=!1,n=new dn(n));e:for(;++i<u;){var E=e[i],l=t?t(E):E;if(E=r||0!==E?E:0,s&&l==l){for(var d=_;d--;)if(n[d]===l)continue e;c.push(E)}else a(n,l,r)||c.push(E)}return c}(Tn(e),n)))},Fn=sn(void 0===Fn?Mn.length-1:Fn,0),function(){for(var e=arguments,n=-1,t=sn(e.length-Fn,0),r=Array(t);++n<t;)r[n]=e[Fn+n];n=-1;for(var o=Array(Fn+1);++n<Fn;)o[n]=e[n];return o[Fn]=r,function(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}(Mn,this,o)});function kn(){return[]}var Bn=Un,xn=function(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}u((r=r.apply(e,n||[])).next())}))},Vn=["STATIC_RESOURCE_TIMING"],Wn=function(e,n){if(!n)return!0;for(var t=0;t<n.length;t++)if(e.includes(n[t]))return!0;return!1};var Gn=function(e){_inherits(t,e);var n=_createSuper(t);function t(e){var r;return _classCallCheck(this,t),(r=n.call(this)).config={debug:!1,publicTags:[],excludeResourceTimingKeys:[],userRegion:"",enable:!1},r.entryList=[],r.debugLog=function(e){r.config.debug&&console.log("[AutoLogStaticResourcePlugin]:",e)},r.addPublicTags=function(e){var n;return null===(n=r.config.publicTags)||void 0===n?void 0:n.concat(e).filter((function(e){return e}))},r.pickEntryProperties=function(e){var n,t=e.domainLookupEnd,o=e.domainLookupStart,i=e.redirectStart,a=e.redirectEnd,s=e.connectStart,u=e.connectEnd,c=e.secureConnectionStart,_=e.responseEnd,E=e.responseStart,l=e.requestStart,d=0!==o,f=d?Math.round(t-o):-1,S=d?Math.round(E-l):-1,I=d?Math.round(a-i):-1,R=d?Math.round(u-s):-1;c&&d&&(R=Math.round(u-c));var g,T,p=d?Math.round(_-E):-1,O=navigator.connection?navigator.connection.effectiveType:"Unknown",C=Bn(e,r.config.excludeResourceTimingKeys.concat("toJSON","Symbol(Symbol.toStringTag)","serverTiming")),h=(g=null!==(n=C.name)&&void 0!==n?n:"",(T=(g=g.replace(/\\/+$/,"")).match(/[^/]+$/))?T[0]:null);return Object.assign(Object.assign({},C),{name:h,url:C.name,dns:f,ttfb:S,redirect:I,connect:R,download:p,network:O,duration:Math.round(e.duration),userRegion:r.config.userRegion})},r.afterInit=function(e){var n=r.addPublicTags(["STATIC_RESOURCE_TIMING"]),t=Boolean(r.config.enable);new PerformanceObserver((function(o){o.getEntries().forEach((function(o){return xn(_assertThisInitialized(r),void 0,void 0,_regeneratorRuntime().mark((function r(){var a,s;return _regeneratorRuntime().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=o.name,!Wn(a,this.config.includeResourceList)){r.next=11;break}if(s=this.pickEntryProperties(o),!t){r.next=9;break}return r.next=6,e.log(s,n,i.info);case 6:t&&e.reportByFilter(Vn),r.next=11;break;case 9:return r.next=11,e.log(s,n,i.info);case 11:case"end":return r.stop()}}),r,this)})))}))})).observe({type:"resource",buffered:!0})},e&&(r.config=Object.assign({},r.config,e)),r}return _createClass(t)}(s),Hn=function(){function e(){_classCallCheck(this,e),globalThis.ZCB_CoBrowseConfigController=this,this.requestNpmModeAgentConfig()}return _createClass(e,[{key:"getCoBrowsingConfig",value:function(e){var n;return e?globalThis.ZMCoBrowsingConfig?globalThis.ZMCoBrowsingConfig[e]:null===(n=this.coBrowsingConfig)||void 0===n?void 0:n[e]:globalThis.ZMCoBrowsingConfig||this.coBrowsingConfig}},{key:"setCoBrowsingConfig",value:function(e){this.coBrowsingConfig=Object.assign(Object.assign({},this.coBrowsingConfig),e)}},{key:"requestNpmModeAgentConfig",value:function(){var e,n,t;if(null===(e=globalThis.ZCB_NPM_SDK_AGENT_MAIN)||void 0===e?void 0:e.isInnerFrame(document)){var r=null;try{r=globalThis.parent.ZCB_CoBrowseConfigController.coBrowsingConfig}catch(e){}globalThis.ZCB_CoBrowseConfigController.setCoBrowsingConfig(Object.assign({isViewer:null===(n=globalThis.ZCB_NPM_SDK_AGENT_SESSION_CONTEXT)||void 0===n?void 0:n.isViewer,appKey:null===(t=globalThis.ZCB_NPM_SDK_AGENT_SESSION_CONTEXT)||void 0===t?void 0:t.appKey},r))}}}],[{key:"create",value:function(){return globalThis.ZCB_CoBrowseConfigController||new e}}]),e}().create(),Jn=function(e,n){return"".concat(e).concat(n)};!function e(n,t){var r={},o=function(){var o=n[i];"string"==typeof o?r[i]=Jn(t,o):"function"==typeof o?r[i]=function(){return Jn(t,o.apply(void 0,arguments))}:"object"===_typeof(o)&&(o instanceof RegExp||(r[i]=e(o,t)))};for(var i in n)o();return r}({log:{report:"/report-log"},blob:{uploadBlob:"/upload-blob",getBlobUrl:function(e){return"/cps-blob-".concat(e)},getBlobUrlReg:/cps-blob-([^?#\\/]+)/}},"/co-browsing");var Yn,jn,Kn,zn={get createSession(){return"/sdkapi/zcb/sessions"},get getSessionStatus(){return"/sdkapi/zcb/sessions"},get refreshZCBToken(){return"/sdkapi/zcb/refresh-tokens"},get joinSession(){return"/sdkapi/zcb/cobrowse-codes/{pinCode}/session"},get reportSessionStatusLog(){return"/sdkapi/zcb/cbs/{appKey}/session-status"}};!function(e){e.LOCAL="local",e.PROD="prod"}(Yn||(Yn={})),function(e){e.LEADER="1",e.FOLLOWER="2",e.RECORDER="11"}(jn||(jn={})),function(e){e.IMG="IMG",e.SOURCE="SOURCE",e.LINK="LINK",e.A="A",e.AUDIO="AUDIO",e.IFRAME="IFRAME",e.FORM="FORM",e.SCRIPT="SCRIPT",e.STYLE="STYLE"}(Kn||(Kn={}));var Zn,Xn;!function(e){e.LEADER="HR",e.FOLLOWER="VR"}(Zn||(Zn={})),new RegExp("(.+)(HTTPS?)/(.+)/".concat("CPS-SEP-FLAG","/(").concat(Zn.FOLLOWER,"|").concat(Zn.LEADER,")")),function(e){e[e.TYPE_UNKNOWN=-1]="TYPE_UNKNOWN",e[e.TYPE_TOP=1]="TYPE_TOP",e[e.TYPE_FRAME=2]="TYPE_FRAME",e[e.TYPE_AUX=3]="TYPE_AUX",e[e.TYPE_SCRIPT=4]="TYPE_SCRIPT",e[e.TYPE_MODULE=5]="TYPE_MODULE",e[e.TYPE_LINK=6]="TYPE_LINK",e[e.TYPE_XHR=7]="TYPE_XHR",e[e.TYPE_RESOURCE=8]="TYPE_RESOURCE",e[e.TYPE_WORKER=9]="TYPE_WORKER",e[e.TYPE_WORKER_SCOPE=10]="TYPE_WORKER_SCOPE",e[e.TYPE_REDIRECT=11]="TYPE_REDIRECT",e[e.TYPE_PAWS=12]="TYPE_PAWS",e[e.TYPE_CONTINUATION=13]="TYPE_CONTINUATION"}(Xn||(Xn={}));var qn,Qn,$n,et,nt,tt,rt,ot,it,at,st=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),ut=(qn={},st.forEach((function(e,n){return qn[e]=n})),qn),ct=/^(?:[A-Za-z\\d+\\/]{4})*?(?:[A-Za-z\\d+\\/]{2}(?:==)?|[A-Za-z\\d+\\/]{3}=?)?$/,_t=String.fromCharCode.bind(String),Et=function(e){if(e.length<2){var n=e.charCodeAt(0);return n<128?e:n<2048?_t(192|n>>>6)+_t(128|63&n):_t(224|n>>>12&15)+_t(128|n>>>6&63)+_t(128|63&n)}var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return _t(240|t>>>18&7)+_t(128|t>>>12&63)+_t(128|t>>>6&63)+_t(128|63&t)},lt=/[\\uD800-\\uDBFF][\\uDC00-\\uDFFFF]|[^\\x00-\\x7F]/g,dt=/[\\xC0-\\xDF][\\x80-\\xBF]|[\\xE0-\\xEF][\\x80-\\xBF]{2}|[\\xF0-\\xF7][\\x80-\\xBF]{3}/g,ft=function(e){switch(e.length){case 4:var n=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return _t(55296+(n>>>10))+_t(56320+(1023&n));case 3:return _t((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return _t((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},St=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=function(e){for(var n,t,r,o,i="",a=e.length%3,s=0;s<e.length;){if((t=e.charCodeAt(s++))>255||(r=e.charCodeAt(s++))>255||(o=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");i+=st[(n=t<<16|r<<8|o)>>18&63]+st[n>>12&63]+st[n>>6&63]+st[63&n]}return a?i.slice(0,a-3)+"===".substring(a):i}(e.replace(lt,Et));return n?t.replace(/=/g,"").replace(/[+\\/]/g,(function(e){return"+"==e?"-":"_"})):t},It=function(e){return n=function(e){if(e=e.replace(/\\s+/g,""),!ct.test(e))throw new TypeError("malformed base64.");var n;e+="==".slice(2-(3&e.length));for(var t,r,o="",i=0;i<e.length;)n=ut[e.charAt(i++)]<<18|ut[e.charAt(i++)]<<12|(t=ut[e.charAt(i++)])<<6|(r=ut[e.charAt(i++)]),o+=64===t?_t(n>>16&255):64===r?_t(n>>16&255,n>>8&255):_t(n>>16&255,n>>8&255,255&n);return o}(function(e){return e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\\+\\/]/g,"")}(e)),n.replace(dt,ft);var n};function Rt(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{return St(e,n)}catch(e){}return e}function gt(e){try{return It(e)}catch(e){}return e}!function(e){e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.RemoteControl=7]="RemoteControl"}(Qn||(Qn={})),function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet"}($n||($n={})),function(e){e[e.FullSnapshot=-1]="FullSnapshot",e[e.Annotation=16]="Annotation"}(et||(et={})),function(e){e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel"}(nt||(nt={})),function(e){e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2"}(tt||(tt={})),function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(rt||(rt={})),function(e){e.CBS="CBS",e.CBS_SUB="CBS_SUB",e.IFRAME_ANOTATION="IFRAME_ANOTATION",e.REMOTE_ASSIST_FLYING_CURSOR="REMOTE_ASSIST_FLYING_CURSOR"}(ot||(ot={})),function(e){e.TRANSFERRING="transferring_in",e.SUCCESS="transfer_in_success",e.FAIL="transfer_in_failed",e.CANCEL="transfer_in_cancelled",e.TRANSFER_OUT_SUCCESS="transfer_out_success"}(it||(it={})),function(e){e.RegisterUser="register-user",e.UnregisterUser="unregister-user",e.Position="position",e.RegisterCustomerCursorDOM="register-customer-dom",e.RegisterOtherAgentCursorDOM="register-other-agent-dom",e.UpdateCursorPositionLocal="update-cursor-position-local"}(at||(at={}));var Tt,pt={},Ot={},Ct={get exports(){return Ot},set exports(e){Ot=e}};function ht(){return Tt||(Tt=1,function(e,n){var t;e.exports=(t=I(),function(e){var n=t,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,s=[];!function(){for(var n=0;n<64;n++)s[n]=4294967296*e.abs(e.sin(n+1))|0}();var u=a.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,n){for(var t=0;t<16;t++){var r=n+t,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=e[n+0],u=e[n+1],d=e[n+2],f=e[n+3],S=e[n+4],I=e[n+5],R=e[n+6],g=e[n+7],T=e[n+8],p=e[n+9],O=e[n+10],C=e[n+11],h=e[n+12],N=e[n+13],A=e[n+14],D=e[n+15],v=i[0],m=i[1],y=i[2],P=i[3];v=c(v,m,y,P,a,7,s[0]),P=c(P,v,m,y,u,12,s[1]),y=c(y,P,v,m,d,17,s[2]),m=c(m,y,P,v,f,22,s[3]),v=c(v,m,y,P,S,7,s[4]),P=c(P,v,m,y,I,12,s[5]),y=c(y,P,v,m,R,17,s[6]),m=c(m,y,P,v,g,22,s[7]),v=c(v,m,y,P,T,7,s[8]),P=c(P,v,m,y,p,12,s[9]),y=c(y,P,v,m,O,17,s[10]),m=c(m,y,P,v,C,22,s[11]),v=c(v,m,y,P,h,7,s[12]),P=c(P,v,m,y,N,12,s[13]),y=c(y,P,v,m,A,17,s[14]),v=_(v,m=c(m,y,P,v,D,22,s[15]),y,P,u,5,s[16]),P=_(P,v,m,y,R,9,s[17]),y=_(y,P,v,m,C,14,s[18]),m=_(m,y,P,v,a,20,s[19]),v=_(v,m,y,P,I,5,s[20]),P=_(P,v,m,y,O,9,s[21]),y=_(y,P,v,m,D,14,s[22]),m=_(m,y,P,v,S,20,s[23]),v=_(v,m,y,P,p,5,s[24]),P=_(P,v,m,y,A,9,s[25]),y=_(y,P,v,m,f,14,s[26]),m=_(m,y,P,v,T,20,s[27]),v=_(v,m,y,P,N,5,s[28]),P=_(P,v,m,y,d,9,s[29]),y=_(y,P,v,m,g,14,s[30]),v=E(v,m=_(m,y,P,v,h,20,s[31]),y,P,I,4,s[32]),P=E(P,v,m,y,T,11,s[33]),y=E(y,P,v,m,C,16,s[34]),m=E(m,y,P,v,A,23,s[35]),v=E(v,m,y,P,u,4,s[36]),P=E(P,v,m,y,S,11,s[37]),y=E(y,P,v,m,g,16,s[38]),m=E(m,y,P,v,O,23,s[39]),v=E(v,m,y,P,N,4,s[40]),P=E(P,v,m,y,a,11,s[41]),y=E(y,P,v,m,f,16,s[42]),m=E(m,y,P,v,R,23,s[43]),v=E(v,m,y,P,p,4,s[44]),P=E(P,v,m,y,h,11,s[45]),y=E(y,P,v,m,D,16,s[46]),v=l(v,m=E(m,y,P,v,d,23,s[47]),y,P,a,6,s[48]),P=l(P,v,m,y,g,10,s[49]),y=l(y,P,v,m,A,15,s[50]),m=l(m,y,P,v,I,21,s[51]),v=l(v,m,y,P,h,6,s[52]),P=l(P,v,m,y,f,10,s[53]),y=l(y,P,v,m,O,15,s[54]),m=l(m,y,P,v,u,21,s[55]),v=l(v,m,y,P,T,6,s[56]),P=l(P,v,m,y,D,10,s[57]),y=l(y,P,v,m,R,15,s[58]),m=l(m,y,P,v,N,21,s[59]),v=l(v,m,y,P,S,6,s[60]),P=l(P,v,m,y,C,10,s[61]),y=l(y,P,v,m,d,15,s[62]),m=l(m,y,P,v,p,21,s[63]),i[0]=i[0]+v|0,i[1]=i[1]+m|0,i[2]=i[2]+y|0,i[3]=i[3]+P|0},_doFinalize:function(){var n=this._data,t=n.words,r=8*this._nDataBytes,o=8*n.sigBytes;t[o>>>5]|=128<<24-o%32;var i=e.floor(r/4294967296),a=r;t[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n.sigBytes=4*(t.length+1),this._process();for(var s=this._hash,u=s.words,c=0;c<4;c++){var _=u[c];u[c]=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,n,t,r,o,i,a){var s=e+(n&t|~n&r)+o+a;return(s<<i|s>>>32-i)+n}function _(e,n,t,r,o,i,a){var s=e+(n&r|t&~r)+o+a;return(s<<i|s>>>32-i)+n}function E(e,n,t,r,o,i,a){var s=e+(n^t^r)+o+a;return(s<<i|s>>>32-i)+n}function l(e,n,t,r,o,i,a){var s=e+(t^(n|~r))+o+a;return(s<<i|s>>>32-i)+n}n.MD5=i._createHelper(u),n.HmacMD5=i._createHmacHelper(u)}(Math),t.MD5)}(Ct)),Ot}var Nt,At={},Dt={get exports(){return At},set exports(e){At=e}},vt={},mt={get exports(){return vt},set exports(e){vt=e}};function yt(){return Nt||(Nt=1,function(e,n){var t,r,o,i,a,s,u,c;e.exports=(c=I(),r=(t=c).lib,o=r.WordArray,i=r.Hasher,a=t.algo,s=[],u=a.SHA1=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,n){for(var t=this._hash.words,r=t[0],o=t[1],i=t[2],a=t[3],u=t[4],c=0;c<80;c++){if(c<16)s[c]=0|e[n+c];else{var _=s[c-3]^s[c-8]^s[c-14]^s[c-16];s[c]=_<<1|_>>>31}var E=(r<<5|r>>>27)+u+s[c];E+=c<20?1518500249+(o&i|~o&a):c<40?1859775393+(o^i^a):c<60?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,u=a,a=i,i=o<<30|o>>>2,o=r,r=E}t[0]=t[0]+r|0,t[1]=t[1]+o|0,t[2]=t[2]+i|0,t[3]=t[3]+a|0,t[4]=t[4]+u|0},_doFinalize:function(){var e=this._data,n=e.words,t=8*this._nDataBytes,r=8*e.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=Math.floor(t/4294967296),n[15+(r+64>>>9<<4)]=t,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=i._createHelper(u),t.HmacSHA1=i._createHmacHelper(u),c.SHA1)}(mt)),vt}var Pt,bt,Lt={},wt={get exports(){return Lt},set exports(e){Lt=e}};function Mt(){return bt||(bt=1,function(e,n){var t,r,o,i,a,s,u,c;e.exports=(c=I(),yt(),Pt||(Pt=1,function(e,n){var t,r,o;e.exports=(r=(t=I()).lib.Base,o=t.enc.Utf8,void(t.algo.HMAC=r.extend({init:function(e,n){e=this._hasher=new e.init,"string"==typeof n&&(n=o.parse(n));var t=e.blockSize,r=4*t;n.sigBytes>r&&(n=e.finalize(n)),n.clamp();for(var i=this._oKey=n.clone(),a=this._iKey=n.clone(),s=i.words,u=a.words,c=0;c<t;c++)s[c]^=1549556828,u[c]^=909522486;i.sigBytes=a.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var n=this._hasher,t=n.finalize(e);return n.reset(),n.finalize(this._oKey.clone().concat(t))}})))}(wt)),r=(t=c).lib,o=r.Base,i=r.WordArray,a=t.algo,s=a.MD5,u=a.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:s,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,n){for(var t,r=this.cfg,o=r.hasher.create(),a=i.create(),s=a.words,u=r.keySize,c=r.iterations;s.length<u;){t&&o.update(t),t=o.update(e).finalize(n),o.reset();for(var _=1;_<c;_++)t=o.finalize(t),o.reset();a.concat(t)}return a.sigBytes=4*u,a}}),t.EvpKDF=function(e,n,t){return u.create(t).compute(e,n)},c.EvpKDF)}(Dt)),At}var Ft,Ut,kt={},Bt={get exports(){return kt},set exports(e){kt=e}};!function(e,n){var t;e.exports=(t=I(),p(),ht(),Mt(),Ft||(Ft=1,function(e,n){var t;e.exports=(t=I(),Mt(),void(t.lib.Cipher||function(e){var n=t,r=n.lib,o=r.Base,i=r.WordArray,a=r.BufferedBlockAlgorithm,s=n.enc;s.Utf8;var u=s.Base64,c=n.algo.EvpKDF,_=r.Cipher=a.extend({cfg:o.extend(),createEncryptor:function(e,n){return this.create(this._ENC_XFORM_MODE,e,n)},createDecryptor:function(e,n){return this.create(this._DEC_XFORM_MODE,e,n)},init:function(e,n,t){this.cfg=this.cfg.extend(t),this._xformMode=e,this._key=n,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?T:R}return function(n){return{encrypt:function(t,r,o){return e(r).encrypt(n,t,r,o)},decrypt:function(t,r,o){return e(r).decrypt(n,t,r,o)}}}}()});r.StreamCipher=_.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var E=n.mode={},l=r.BlockCipherMode=o.extend({createEncryptor:function(e,n){return this.Encryptor.create(e,n)},createDecryptor:function(e,n){return this.Decryptor.create(e,n)},init:function(e,n){this._cipher=e,this._iv=n}}),d=E.CBC=function(){var n=l.extend();function t(n,t,r){var o,i=this._iv;i?(o=i,this._iv=e):o=this._prevBlock;for(var a=0;a<r;a++)n[t+a]^=o[a]}return n.Encryptor=n.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize;t.call(this,e,n,o),r.encryptBlock(e,n),this._prevBlock=e.slice(n,n+o)}}),n.Decryptor=n.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize,i=e.slice(n,n+o);r.decryptBlock(e,n),t.call(this,e,n,o),this._prevBlock=i}}),n}(),f=(n.pad={}).Pkcs7={pad:function(e,n){for(var t=4*n,r=t-e.sigBytes%t,o=r<<24|r<<16|r<<8|r,a=[],s=0;s<r;s+=4)a.push(o);var u=i.create(a,r);e.concat(u)},unpad:function(e){var n=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=n}};r.BlockCipher=_.extend({cfg:_.cfg.extend({mode:d,padding:f}),reset:function(){var e;_.reset.call(this);var n=this.cfg,t=n.iv,r=n.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,t&&t.words):(this._mode=e.call(r,this,t&&t.words),this._mode.__creator=e)},_doProcessBlock:function(e,n){this._mode.processBlock(e,n)},_doFinalize:function(){var e,n=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(n.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),n.unpad(e)),e},blockSize:4});var S=r.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),I=(n.format={}).OpenSSL={stringify:function(e){var n=e.ciphertext,t=e.salt;return(t?i.create([1398893684,1701076831]).concat(t).concat(n):n).toString(u)},parse:function(e){var n,t=u.parse(e),r=t.words;return 1398893684==r[0]&&1701076831==r[1]&&(n=i.create(r.slice(2,4)),r.splice(0,4),t.sigBytes-=16),S.create({ciphertext:t,salt:n})}},R=r.SerializableCipher=o.extend({cfg:o.extend({format:I}),encrypt:function(e,n,t,r){r=this.cfg.extend(r);var o=e.createEncryptor(t,r),i=o.finalize(n),a=o.cfg;return S.create({ciphertext:i,key:t,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,n,t,r){return r=this.cfg.extend(r),n=this._parse(n,r.format),e.createDecryptor(t,r).finalize(n.ciphertext)},_parse:function(e,n){return"string"==typeof e?n.parse(e,this):e}}),g=(n.kdf={}).OpenSSL={execute:function(e,n,t,r,o){if(r||(r=i.random(8)),o)a=c.create({keySize:n+t,hasher:o}).compute(e,r);else var a=c.create({keySize:n+t}).compute(e,r);var s=i.create(a.words.slice(n),4*t);return a.sigBytes=4*n,S.create({key:a,iv:s,salt:r})}},T=r.PasswordBasedCipher=R.extend({cfg:R.cfg.extend({kdf:g}),encrypt:function(e,n,t,r){var o=(r=this.cfg.extend(r)).kdf.execute(t,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=o.iv;var i=R.encrypt.call(this,e,n,o.key,r);return i.mixIn(o),i},decrypt:function(e,n,t,r){r=this.cfg.extend(r),n=this._parse(n,r.format);var o=r.kdf.execute(t,e.keySize,e.ivSize,n.salt,r.hasher);return r.iv=o.iv,R.decrypt.call(this,e,n,o.key,r)}})}()))}(Bt)),function(){var e=t,n=e.lib.BlockCipher,r=e.algo,o=[],i=[],a=[],s=[],u=[],c=[],_=[],E=[],l=[],d=[];!function(){for(var e=[],n=0;n<256;n++)e[n]=n<128?n<<1:n<<1^283;var t=0,r=0;for(n=0;n<256;n++){var f=r^r<<1^r<<2^r<<3^r<<4;f=f>>>8^255&f^99,o[t]=f,i[f]=t;var S=e[t],I=e[S],R=e[I],g=257*e[f]^16843008*f;a[t]=g<<24|g>>>8,s[t]=g<<16|g>>>16,u[t]=g<<8|g>>>24,c[t]=g,g=16843009*R^65537*I^257*S^16843008*t,_[f]=g<<24|g>>>8,E[f]=g<<16|g>>>16,l[f]=g<<8|g>>>24,d[f]=g,t?(t=S^e[e[e[R^S]]],r^=e[e[r]]):t=r=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],S=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,n=e.words,t=e.sigBytes/4,r=4*((this._nRounds=t+6)+1),i=this._keySchedule=[],a=0;a<r;a++)a<t?i[a]=n[a]:(c=i[a-1],a%t?t>6&&a%t==4&&(c=o[c>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c]):(c=o[(c=c<<8|c>>>24)>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c],c^=f[a/t|0]<<24),i[a]=i[a-t]^c);for(var s=this._invKeySchedule=[],u=0;u<r;u++){if(a=r-u,u%4)var c=i[a];else c=i[a-4];s[u]=u<4||a<=4?c:_[o[c>>>24]]^E[o[c>>>16&255]]^l[o[c>>>8&255]]^d[o[255&c]]}}},encryptBlock:function(e,n){this._doCryptBlock(e,n,this._keySchedule,a,s,u,c,o)},decryptBlock:function(e,n){var t=e[n+1];e[n+1]=e[n+3],e[n+3]=t,this._doCryptBlock(e,n,this._invKeySchedule,_,E,l,d,i),t=e[n+1],e[n+1]=e[n+3],e[n+3]=t},_doCryptBlock:function(e,n,t,r,o,i,a,s){for(var u=this._nRounds,c=e[n]^t[0],_=e[n+1]^t[1],E=e[n+2]^t[2],l=e[n+3]^t[3],d=4,f=1;f<u;f++){var S=r[c>>>24]^o[_>>>16&255]^i[E>>>8&255]^a[255&l]^t[d++],I=r[_>>>24]^o[E>>>16&255]^i[l>>>8&255]^a[255&c]^t[d++],R=r[E>>>24]^o[l>>>16&255]^i[c>>>8&255]^a[255&_]^t[d++],g=r[l>>>24]^o[c>>>16&255]^i[_>>>8&255]^a[255&E]^t[d++];c=S,_=I,E=R,l=g}S=(s[c>>>24]<<24|s[_>>>16&255]<<16|s[E>>>8&255]<<8|s[255&l])^t[d++],I=(s[_>>>24]<<24|s[E>>>16&255]<<16|s[l>>>8&255]<<8|s[255&c])^t[d++],R=(s[E>>>24]<<24|s[l>>>16&255]<<16|s[c>>>8&255]<<8|s[255&_])^t[d++],g=(s[l>>>24]<<24|s[c>>>16&255]<<16|s[_>>>8&255]<<8|s[255&E])^t[d++],e[n]=S,e[n+1]=I,e[n+2]=R,e[n+3]=g},keySize:8});e.AES=n._createHelper(S)}(),t.AES)}({get exports(){return pt},set exports(e){pt=e}});var xt=new Uint8Array(16);function Vt(){if(!Ut&&!(Ut="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ut(xt)}for(var Wt=[],Gt=0;Gt<256;++Gt)Wt.push((Gt+256).toString(16).slice(1));var Ht,Jt,Yt,jt={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Kt(e,n,t){if(jt.randomUUID&&!n&&!e)return jt.randomUUID();var r=(e=e||{}).random||(e.rng||Vt)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,n){t=t||0;for(var o=0;o<16;++o)n[t+o]=r[o];return n}return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Wt[e[n+0]]+Wt[e[n+1]]+Wt[e[n+2]]+Wt[e[n+3]]+"-"+Wt[e[n+4]]+Wt[e[n+5]]+"-"+Wt[e[n+6]]+Wt[e[n+7]]+"-"+Wt[e[n+8]]+Wt[e[n+9]]+"-"+Wt[e[n+10]]+Wt[e[n+11]]+Wt[e[n+12]]+Wt[e[n+13]]+Wt[e[n+14]]+Wt[e[n+15]]}(r)}!function(e){e[e.PENDING=0]="PENDING",e[e.READY=1]="READY",e[e.CLOSE=2]="CLOSE"}(Ht||(Ht={})),function(e){e[e.NPM=0]="NPM",e[e.CDN=1]="CDN"}(Jt||(Jt={})),function(e){e[e.RECORD_NOT_ENABLED=2e4]="RECORD_NOT_ENABLED",e[e.START_RECORD_UNAVAILABLE=20001]="START_RECORD_UNAVAILABLE",e[e.START_RECORD_INVALID_BODY=20002]="START_RECORD_INVALID_BODY",e[e.EXIST_RECORD_CONFLICT=20003]="EXIST_RECORD_CONFLICT",e[e.RECORD_OVERHEAD_CAPACITY=20004]="RECORD_OVERHEAD_CAPACITY",e[e.LEADER_NOT_JOINED=20005]="LEADER_NOT_JOINED",e[e.LEADER_DENIED=20006]="LEADER_DENIED",e[e.RECORD_ABORTED=20007]="RECORD_ABORTED",e[e.END_RECORD_UNAVAILABLE=21e3]="END_RECORD_UNAVAILABLE",e[e.END_RECORD_INVALID_BODY=21001]="END_RECORD_INVALID_BODY",e[e.RECORD_ALREADY_PAUSED=22e3]="RECORD_ALREADY_PAUSED",e[e.RECORD_ALREADY_RESUMED=23e3]="RECORD_ALREADY_RESUMED",e[e.NO_ACTIVE_RECORD=24e3]="NO_ACTIVE_RECORD",e[e.RECORD_IN_START_PROGRESS=24001]="RECORD_IN_START_PROGRESS",e[e.RECORD_IN_STOP_PROGRESS=24002]="RECORD_IN_STOP_PROGRESS",e[e.CHS_JWT_MISSING=25100]="CHS_JWT_MISSING",e[e.CHS_JWT_DECODE_FAILED=25101]="CHS_JWT_DECODE_FAILED",e[e.CHS_JWT_INVALID_PAYLOAD=25102]="CHS_JWT_INVALID_PAYLOAD",e[e.CHS_JWT_ISS_AUD_MISSING=25103]="CHS_JWT_ISS_AUD_MISSING",e[e.CHS_JWT_ISS_AUD_DENIED=25104]="CHS_JWT_ISS_AUD_DENIED",e[e.CHS_JWT_VERIFY_FAILED=25105]="CHS_JWT_VERIFY_FAILED",e[e.SESSION_ID_NOT_MATCH=25200]="SESSION_ID_NOT_MATCH",e[e.AID_IN_JWT_MISSING=25201]="AID_IN_JWT_MISSING",e[e.UID_IN_JWT_MISSING=25202]="UID_IN_JWT_MISSING",e[e.RECORD_ID_MISSING=25203]="RECORD_ID_MISSING",e[e.RECORD_TASK_NOT_EXIST=25204]="RECORD_TASK_NOT_EXIST",e[e.PAGE_CONTEXT_BOOTSTRAP_FAILED=26100]="PAGE_CONTEXT_BOOTSTRAP_FAILED",e[e.PAGE_CONTROLLER_INIT_FAILED=26101]="PAGE_CONTROLLER_INIT_FAILED",e[e.PAGE_LOAD_HTML_FAILED=26102]="PAGE_LOAD_HTML_FAILED",e[e.PAGE_INJECT_INIT_FAILED=26103]="PAGE_INJECT_INIT_FAILED",e[e.PAGE_INJECT_CONTEXT_FAILED=26104]="PAGE_INJECT_CONTEXT_FAILED",e[e.PAGE_START_FAILED=26105]="PAGE_START_FAILED",e[e.PAGE_STOP_FAILED=26106]="PAGE_STOP_FAILED",e[e.RECORDER_INIT_FAILED=26200]="RECORDER_INIT_FAILED",e[e.RECORDER_CDP_SESSION_START_FAILED=26201]="RECORDER_CDP_SESSION_START_FAILED",e[e.RECORDER_CDP_SESSION_STOP_FAILED=26202]="RECORDER_CDP_SESSION_STOP_FAILED",e[e.RECORDER_CDP_SESSION_ALREADY_DESTROYED=26203]="RECORDER_CDP_SESSION_ALREADY_DESTROYED",e[e.DISK_USAGE_FULL=26204]="DISK_USAGE_FULL",e[e.CONNECT_CHS_FAILED=26301]="CONNECT_CHS_FAILED",e[e.CONNECT_CHS_FAILOVER=26302]="CONNECT_CHS_FAILOVER",e[e.CONNECT_CHS_DESTROYED=26303]="CONNECT_CHS_DESTROYED",e[e.CONNECT_CHS_DISCONNECTED=26304]="CONNECT_CHS_DISCONNECTED",e[e.CONNECT_CHS_TIMEOUT=26305]="CONNECT_CHS_TIMEOUT",e[e.UDS_INIT_FAILED=26400]="UDS_INIT_FAILED",e[e.UDS_SUB_PROCESS_INIT_FAILED=26401]="UDS_SUB_PROCESS_INIT_FAILED",e[e.UDS_SUB_PROCESS_INIT_TIMEOUT=26402]="UDS_SUB_PROCESS_INIT_TIMEOUT",e[e.UDS_CLINET_INIT_FAILED=26403]="UDS_CLINET_INIT_FAILED",e[e.UDS_SERVER_INIT_FAILED=26404]="UDS_SERVER_INIT_FAILED",e[e.UDS_SERVER_LISTEN_FAILED=26405]="UDS_SERVER_LISTEN_FAILED",e[e.FILE_INIT_FAILED=26500]="FILE_INIT_FAILED",e[e.FILE_META_INIT_FAILED=26501]="FILE_META_INIT_FAILED",e[e.FILE_META_CLIP_INIT_FAILED=26502]="FILE_META_CLIP_INIT_FAILED",e[e.FILE_META_OPEN_FAILED=26503]="FILE_META_OPEN_FAILED",e[e.FILE_META_LOCK_FAILED=26504]="FILE_META_LOCK_FAILED",e[e.FILE_META_RELEASE_FAILED=26505]="FILE_META_RELEASE_FAILED",e[e.FILE_META_WRITE_FAILED=26506]="FILE_META_WRITE_FAILED",e[e.ZCB_WEB_NOT_AVAILABLE=26600]="ZCB_WEB_NOT_AVAILABLE",e[e.ZCB_CRS_NOT_AVAILABLE=26601]="ZCB_CRS_NOT_AVAILABLE",e[e.REDIS_GET_CLIP_SIZE_FAILED=26700]="REDIS_GET_CLIP_SIZE_FAILED",e[e.REDIS_SET_CLIP_SIZE_FAILED=26701]="REDIS_SET_CLIP_SIZE_FAILED",e[e.REDIS_GET_START_TIME_FAILED=26702]="REDIS_GET_START_TIME_FAILED",e[e.REDIS_SET_START_TIME_FAILED=26703]="REDIS_SET_START_TIME_FAILED",e[e.ASSETS_FETCH_FAILED=26800]="ASSETS_FETCH_FAILED",e[e.ASSETS_WRITE_FAILED=26801]="ASSETS_WRITE_FAILED"}(Yt||(Yt={})),Yt.RECORD_OVERHEAD_CAPACITY,Yt.RECORD_OVERHEAD_CAPACITY;var zt,Zt={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Zt,Yt.START_RECORD_UNAVAILABLE,"start record api not available"),Yt.START_RECORD_INVALID_BODY,"start record response body invalid"),Yt.END_RECORD_UNAVAILABLE,"end record api not available"),Yt.END_RECORD_INVALID_BODY,"end record response body invalid"),Yt.EXIST_RECORD_CONFLICT,"already has an existed recording"),Yt.NO_ACTIVE_RECORD,"no existed recording"),Yt.RECORD_IN_START_PROGRESS,"recording is in start progress"),Yt.RECORD_IN_STOP_PROGRESS,"recording is in stop progress"),Yt.RECORD_ALREADY_PAUSED,"recording already paused"),Yt.RECORD_ALREADY_RESUMED,"recording already resumed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Zt,Yt.RECORD_NOT_ENABLED,"recording not enabled"),Yt.RECORD_OVERHEAD_CAPACITY,"recording capacity is overhead"),Yt.LEADER_NOT_JOINED,"leader not joined room"),Yt.LEADER_DENIED,"leader denied recording"),Yt.RECORD_ABORTED,"recording aborted"),Yt.CHS_JWT_MISSING,"CHS JWT is empty"),Yt.CHS_JWT_DECODE_FAILED,"CHS JWT decode error"),Yt.CHS_JWT_INVALID_PAYLOAD,"CHS JWT payload invalid"),Yt.CHS_JWT_ISS_AUD_MISSING,"CHS JWT iss or aud empty"),Yt.CHS_JWT_ISS_AUD_DENIED,"invalid iss and aud"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Zt,Yt.CHS_JWT_VERIFY_FAILED,"token verify failed"),Yt.SESSION_ID_NOT_MATCH,"sessionId in header is not match in jwt payload"),Yt.AID_IN_JWT_MISSING,"aid in token is required"),Yt.UID_IN_JWT_MISSING,"uid in token is required"),Yt.RECORD_ID_MISSING,"recordId is empty"),Yt.RECORD_TASK_NOT_EXIST,"record task not exist"),Yt.PAGE_CONTEXT_BOOTSTRAP_FAILED,"bootstrap playwright failed"),Yt.PAGE_CONTROLLER_INIT_FAILED,"PageController init failed"),Yt.PAGE_LOAD_HTML_FAILED,"page load html failed"),Yt.PAGE_INJECT_INIT_FAILED,"PageInjector init failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Zt,Yt.PAGE_INJECT_CONTEXT_FAILED,"injectPageContext failed"),Yt.PAGE_START_FAILED,"page start record failed"),Yt.PAGE_STOP_FAILED,"page start stop failed"),Yt.RECORDER_INIT_FAILED,"PageRecorder init failed"),Yt.RECORDER_CDP_SESSION_START_FAILED,"record start cdp session failed"),Yt.RECORDER_CDP_SESSION_STOP_FAILED,"record stop cdp session failed"),Yt.RECORDER_CDP_SESSION_ALREADY_DESTROYED,"PageRecorder has already been destroyed"),Yt.DISK_USAGE_FULL,"Server disk is full"),Yt.CONNECT_CHS_FAILED,"CHS is not available"),Yt.CONNECT_CHS_FAILOVER,"CHS connection is failover now"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Zt,Yt.CONNECT_CHS_DESTROYED,"CHS connection is destroyed by client"),Yt.CONNECT_CHS_DISCONNECTED,"CHS connection is disconnected"),Yt.CONNECT_CHS_TIMEOUT,"wait for CHS connection timeout"),Yt.UDS_INIT_FAILED,"UDSManager init failed"),Yt.UDS_SUB_PROCESS_INIT_FAILED,"uds sub process init failed"),Yt.UDS_SUB_PROCESS_INIT_TIMEOUT,"uds sub process init timeout"),Yt.UDS_CLINET_INIT_FAILED,"UDSClient init failed"),Yt.UDS_SERVER_INIT_FAILED,"UDSServer init failed"),Yt.UDS_SERVER_LISTEN_FAILED,"UDSServer listen failed"),Yt.FILE_INIT_FAILED,"FileManager init failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Zt,Yt.FILE_META_INIT_FAILED,"MetaDataManager init failed"),Yt.FILE_META_CLIP_INIT_FAILED,"SubClipManager init failed"),Yt.FILE_META_OPEN_FAILED,"open metadata failed"),Yt.FILE_META_LOCK_FAILED,"metadata lock failed"),Yt.FILE_META_RELEASE_FAILED,"metadata release failed"),Yt.FILE_META_WRITE_FAILED,"metadata write failed"),Yt.ZCB_WEB_NOT_AVAILABLE,"web is not available"),Yt.ZCB_CRS_NOT_AVAILABLE,"crs is not available"),Yt.REDIS_GET_CLIP_SIZE_FAILED,"get clip size failed"),Yt.REDIS_SET_CLIP_SIZE_FAILED,"set clip size failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(Zt,Yt.REDIS_GET_START_TIME_FAILED,"get record start time failed"),Yt.REDIS_SET_START_TIME_FAILED,"set record start time failed"),Yt.ASSETS_FETCH_FAILED,"fetch assets from cdn failed"),Yt.ASSETS_WRITE_FAILED,"write assets to local disk failed"),function(e){e[e.INIT=0]="INIT",e[e.RUNNING=1]="RUNNING",e[e.PAUSE=2]="PAUSE",e[e.FINISH=3]="FINISH"}(zt||(zt={}));var Xt,qt;!function(e){e[e.WS_CONN_KEEPALIVE=0]="WS_CONN_KEEPALIVE",e[e.WS_CONN_VECTOR_DATA=1]="WS_CONN_VECTOR_DATA",e[e.WS_DOC_JSON_JOIN_RES=8194]="WS_DOC_JSON_JOIN_RES"}(Xt||(Xt={})),function(e){e.CONNECTED="CONNECTED",e.DISCONNECTED="DISCONNECTED",e.END_ROOM="END_ROOM",e.LEAVE_ROOM="LEAVE_ROOM",e.INTERACTION_BINARY="INTERACTION_BINARY",e.INTERACTION="INTERACTION",e.FULL_SNAPSHOT_REQUEST="FULL_SNAPSHOT_REQUEST",e.GET_BINARY="GET_BINARY",e.USER_BE_HOLD_STATUS_CHANGE="USER_BE_HOLD_STATUS_CHANGE",e.USER_ROSTER="USER_ROSTER",e.ROOM_ROSTER="ROOM_ROSTER",e.REMOTE_CONTROL_STATUS="REMOTE_CONTROL_STATUS",e.REMOTE_CONTROL_REQUEST="REMOTE_CONTROL_REQUEST",e.REMOTE_CONTROL_RESPONSE="REMOTE_CONTROL_RESPONSE",e.REMOTE_CONTROL_GIVE_UP="REMOTE_CONTROL_GIVE_UP",e.REMOTE_CONTROL_TAKE_BACK="REMOTE_CONTROL_TAKE_BACK",e.REMOTE_CONTROL_REJECT="REMOTE_CONTROL_REJECT",e.REMOTE_CONTROL_CANCEL="REMOTE_CONTROL_CANCEL",e.START_RECORD="START_RECORD",e.STOP_RECORD="STOP_RECORD",e.PAUSE_RECORD="PAUSE_RECORD",e.RESUME_RECORD="RESUME_RECORD",e.START_RECORD_RESPONSE="START_RECORD_RESPONSE",e.STOP_RECORD_RESPONSE="STOP_RECORD_RESPONSE",e.PAUSE_RECORD_RESPONSE="PAUSE_RECORD_RESPONSE",e.RESUME_RECORD_RESPONSE="RESUME_RECORD_RESPONSE",e.RECORD_APPROVE_REQUEST="RECORD_APPROVE_REQUEST",e.RECORD_APPROVE_RESPONSE="RECORD_APPROVE_RESPONSE",e.ANNOTATION="ANNOTATION",e.FLYING_CURSOR="FLYING_CURSOR",e.LEADER_PAGE_VISIBILITY="LEADER_PAGE_VISIBILITY",e.RTT="RTT",e.NTP="NTP"}(qt||(qt={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},qt.ANNOTATION,!0),qt.INTERACTION,!0),qt.INTERACTION_BINARY,!0),qt.FLYING_CURSOR,!0),_defineProperty(_defineProperty({},qt.RTT,!0),qt.NTP,!0),_defineProperty(_defineProperty({},qt.INTERACTION,!0),qt.INTERACTION_BINARY,!0);var Qt={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Qt,qt.INTERACTION,!0),qt.INTERACTION_BINARY,!0),qt.FULL_SNAPSHOT_REQUEST,!0),qt.REMOTE_CONTROL_STATUS,!0),qt.REMOTE_CONTROL_REQUEST,!0),qt.REMOTE_CONTROL_RESPONSE,!0),qt.REMOTE_CONTROL_GIVE_UP,!0),qt.REMOTE_CONTROL_TAKE_BACK,!0),qt.REMOTE_CONTROL_REJECT,!0),qt.REMOTE_CONTROL_CANCEL,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Qt,qt.START_RECORD,!0),qt.RESUME_RECORD,!0),qt.PAUSE_RECORD,!0),qt.STOP_RECORD,!0),qt.ANNOTATION,!0),qt.FLYING_CURSOR,!0),qt.NTP,!0);var $t,er,nr={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(nr,qt.INTERACTION,!0),qt.INTERACTION_BINARY,!0),qt.FULL_SNAPSHOT_REQUEST,!0),qt.USER_ROSTER,!0),qt.ROOM_ROSTER,!0),qt.REMOTE_CONTROL_STATUS,!0),qt.REMOTE_CONTROL_REQUEST,!0),qt.REMOTE_CONTROL_RESPONSE,!0),qt.REMOTE_CONTROL_GIVE_UP,!0),qt.REMOTE_CONTROL_TAKE_BACK,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(nr,qt.REMOTE_CONTROL_REJECT,!0),qt.REMOTE_CONTROL_CANCEL,!0),qt.START_RECORD,!0),qt.RESUME_RECORD,!0),qt.PAUSE_RECORD,!0),qt.STOP_RECORD,!0),qt.START_RECORD_RESPONSE,!0),qt.STOP_RECORD_RESPONSE,!0),qt.PAUSE_RECORD_RESPONSE,!0),qt.RESUME_RECORD_RESPONSE,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(nr,qt.RECORD_APPROVE_REQUEST,!0),qt.RECORD_APPROVE_RESPONSE,!0),qt.ANNOTATION,!0),qt.FLYING_CURSOR,!0),_defineProperty(_defineProperty(_defineProperty({},qt.RECORD_APPROVE_RESPONSE,!0),qt.LEAVE_ROOM,!0),qt.FLYING_CURSOR,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},at.RegisterCustomerCursorDOM,!0),at.UnregisterUser,!0),at.RegisterOtherAgentCursorDOM,!0),at.UpdateCursorPositionLocal,!0),function(e){e[e.IN_PROGRESS=4e4]="IN_PROGRESS",e[e.OPPOSITE_REJECT=40001]="OPPOSITE_REJECT",e[e.LEADER_NOT_FOUND=40002]="LEADER_NOT_FOUND"}($t||($t={})),_defineProperty(_defineProperty(_defineProperty({},$t.IN_PROGRESS,"remote control is in progress"),$t.OPPOSITE_REJECT,"the opposite side refuses to be controlled"),$t.LEADER_NOT_FOUND,"leader not exist or has left"),function(e){e[e.LEAVE_ROOM=4e4]="LEAVE_ROOM",e[e.DISCONNECTED=40001]="DISCONNECTED",e[e.WEB_REPORT_REGION_FAILED=40100]="WEB_REPORT_REGION_FAILED",e[e.WEB_REPORT_REGION_NOT_MATCH=40101]="WEB_REPORT_REGION_NOT_MATCH",e[e.WEB_REPORT_USER_JOIN_FAILED=40102]="WEB_REPORT_USER_JOIN_FAILED",e[e.WEB_REPORT_USER_JOIN_EMPTY=40103]="WEB_REPORT_USER_JOIN_EMPTY",e[e.WEB_REPORT_USER_JOIN_EMPTY_USER=40104]="WEB_REPORT_USER_JOIN_EMPTY_USER",e[e.AUTH_CONFLICT=40200]="AUTH_CONFLICT",e[e.AUTH_VERIFY_FAILED=40201]="AUTH_VERIFY_FAILED",e[e.AUTH_DB_QUERY_ERROR=40202]="AUTH_DB_QUERY_ERROR",e[e.AUTH_USER_ID_VERIFY_FAILED=40203]="AUTH_USER_ID_VERIFY_FAILED",e[e.AUTH_USER_ID_NO_EXIST=40204]="AUTH_USER_ID_NO_EXIST",e[e.ROOM_NOT_EXIST=40210]="ROOM_NOT_EXIST",e[e.ROOM_ADD_USER_FAILED=40211]="ROOM_ADD_USER_FAILED",e[e.LEADER_CONFLICT=40212]="LEADER_CONFLICT",e[e.FOLLOWER_CONFLICT=40213]="FOLLOWER_CONFLICT",e[e.SESSION_ALREADY_ENDED=40214]="SESSION_ALREADY_ENDED",e[e.ROOM_DEPRECATED=40216]="ROOM_DEPRECATED",e[e.REACHED_LEADER_LIMIT=40217]="REACHED_LEADER_LIMIT",e[e.REACHED_FOLLOWER_LIMIT=40218]="REACHED_FOLLOWER_LIMIT",e[e.SAME_LEADER_JOINED=40219]="SAME_LEADER_JOINED",e[e.ROOM_ID_MISSING=40300]="ROOM_ID_MISSING",e[e.AUTH_PAYLOAD_MISSING=40301]="AUTH_PAYLOAD_MISSING",e[e.START_URL_INVALID=40302]="START_URL_INVALID",e[e.SERVER_RESTARTED=40400]="SERVER_RESTARTED",e[e.WSSGW_REMOVE_NODE=40401]="WSSGW_REMOVE_NODE",e[e.META_DATA_INVALID=40402]="META_DATA_INVALID",e[e.WSSGW_INSTANCE_NOT_FOUND=40403]="WSSGW_INSTANCE_NOT_FOUND",e[e.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE=40501]="MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE",e[e.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION=40502]="MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION",e[e.END_ROOM=41e3]="END_ROOM",e[e.DESTROY_DEACTIVE_ROOM=41001]="DESTROY_DEACTIVE_ROOM",e[e.DESTROY_SLEEP_ROOM=41002]="DESTROY_SLEEP_ROOM",e[e.DESTROY_NO_VALID_OPERATION_ROOM=41003]="DESTROY_NO_VALID_OPERATION_ROOM",e[e.NO_OTHER_ACTIVE_USER=42e3]="NO_OTHER_ACTIVE_USER",e[e.RECORD_ALREADY_ENDED=42001]="RECORD_ALREADY_ENDED",e[e.RECORD_START_FAILED=42002]="RECORD_START_FAILED"}(er||(er={})),er.LEAVE_ROOM,er.WEB_REPORT_USER_JOIN_FAILED,er.AUTH_CONFLICT,er.AUTH_VERIFY_FAILED,er.LEADER_CONFLICT,er.FOLLOWER_CONFLICT,er.SESSION_ALREADY_ENDED,er.ROOM_ID_MISSING,er.AUTH_PAYLOAD_MISSING,er.START_URL_INVALID,er.END_ROOM,er.DESTROY_DEACTIVE_ROOM,er.DESTROY_SLEEP_ROOM,er.DESTROY_NO_VALID_OPERATION_ROOM,er.NO_OTHER_ACTIVE_USER,er.RECORD_ALREADY_ENDED,er.REACHED_LEADER_LIMIT,er.REACHED_FOLLOWER_LIMIT,er.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE,er.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION,er.SESSION_ALREADY_ENDED,er.END_ROOM,er.DESTROY_DEACTIVE_ROOM;var tr,rr,or={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(or,er.LEAVE_ROOM,"normal leave"),er.DISCONNECTED,"user disconnected"),er.WEB_REPORT_REGION_FAILED,"call web report zone region api failed"),er.WEB_REPORT_REGION_NOT_MATCH,"report zone region mismatch with session hosting region"),er.WEB_REPORT_USER_JOIN_EMPTY,"call web user join api return empty response"),er.WEB_REPORT_USER_JOIN_FAILED,"call web user join api failed"),er.WEB_REPORT_USER_JOIN_EMPTY_USER,"call web user join api return empty user info"),er.AUTH_CONFLICT,"auth is already consumed once"),er.AUTH_VERIFY_FAILED,"auth payload is denyed"),er.AUTH_DB_QUERY_ERROR,"get auth from redis failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(or,er.AUTH_USER_ID_VERIFY_FAILED,"sub channel user_id verify failed"),er.AUTH_USER_ID_NO_EXIST,"main channel user_id not exist"),er.ROOM_NOT_EXIST,"room not exist or create failed"),er.ROOM_ADD_USER_FAILED,"room add new user failed"),er.LEADER_CONFLICT,"leader already exist"),er.FOLLOWER_CONFLICT,"follower already exist"),er.ROOM_DEPRECATED,"room is deprecated"),er.SAME_LEADER_JOINED,"leader with the same user_id joined the room"),er.SESSION_ALREADY_ENDED,"room is already ended"),er.ROOM_ID_MISSING,"room id is required"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(or,er.AUTH_PAYLOAD_MISSING,"auth payload is required"),er.START_URL_INVALID,"startUrl is invalid"),er.SERVER_RESTARTED,"server restarted"),er.WSSGW_REMOVE_NODE,"wssgw node instance removed"),er.META_DATA_INVALID,"message meta data invalid"),er.WSSGW_INSTANCE_NOT_FOUND,"wssgw instance not found"),er.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE,"message size limit exceeded by minute"),er.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION,"message size limit exceeded by session"),er.END_ROOM,"The user actively clicked \'end\'."),er.DESTROY_DEACTIVE_ROOM,"The session ended automatically because there was only 1 user present for 3 minutes."),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(or,er.DESTROY_SLEEP_ROOM,"The session ended automatically due to no user activity in the session for 5 minutes."),er.DESTROY_NO_VALID_OPERATION_ROOM,"The session ended automatically due to no valid operation messages"),er.NO_OTHER_ACTIVE_USER,"no other active user in this meeting except record virtual user"),er.RECORD_ALREADY_ENDED,"record already ended"),er.RECORD_START_FAILED,"record start failed"),er.REACHED_LEADER_LIMIT,"the number of leaders has reached the limit"),er.REACHED_FOLLOWER_LIMIT,"the number of followers has reached the limit"),function(e){e[e.RECORD_LEGAL_CONSENT=0]="RECORD_LEGAL_CONSENT"}(tr||(tr={})),function(e){e[e.ACTIVE=0]="ACTIVE",e[e.PASSIVE=1]="PASSIVE",e[e.REJECT=2]="REJECT"}(rr||(rr={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},$n.MouseMove,!0),$n.MouseInteraction,!0),$n.Scroll,!0),$n.ViewportResize,!0),$n.Input,!0),$n.TouchMove,!0),$n.MediaInteraction,!0),$n.Drag,!0),$n.Selection,!0);var ir=function(){return!!window.ZCB_NPM_SDK_AGENT_MAIN||window.ZCB_NPM_SDK_CUSTOMER_MAIN},ar=function(){return window.ZCB_NPM_SDK_AGENT_SESSION_CONTEXT},sr=function(){return Hn.getCoBrowsingConfig("sdkVersion")},ur=function(){return!!Hn.getCoBrowsingConfig("originalSdkVersion")},cr=function(){return Hn.getCoBrowsingConfig("originalSdkVersion")},_r=function(e,n,t){var r,o={};try{var i=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(gt(i).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")),s=JSON.parse(a);return n.forEach((function(e){o[e]=s[e]})),o}catch(e){return null===(r=null==t?void 0:t.error)||void 0===r||r.call(t,"getValueFromJwt failed"),o}},Er=function(e){var n="string"==typeof e?e:e.toString();return!["/session-status"].some((function(e){return n.includes(e)}))},lr=["table index is out of bounds","ResizeObserver loop completed with undelivered notifications"],dr=(new Date).getTime()-6048e5,fr=[],Sr=[],Ir={log:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.log,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return o(void 0,void 0,void 0,_regeneratorRuntime().mark((function o(){return _regeneratorRuntime().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:fr.push({message:e,tag:n,logLevel:t,extraProperties:Object.assign({timestamp:Date.now()},r)});case 1:case"end":return o.stop()}}),o)})))},reportByFilter:function(e){},directReport:function(e,n){Sr.push({payload:e,options:n})},getLogs:function(e){},setReportUrl:function(e){Oe.setDynamicReportUrl(e)}},Rr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ce()&&!ir())return Promise.resolve();var n,t,r,o,i,a=(r=e.zmTrackingId,o=void 0===r?"":r,i=[new he({debug:!1,cleanAfterReport:!0,expireBefore:dr}),new Ae({enable:!0,debug:!1,ignoredErrorMsgKeywords:lr,maxErrorCount:223,publicTags:[o,"ZCB-CLIENT","ERROR",null!==(n=null===location||void 0===location?void 0:location.host)&&void 0!==n?n:""]}),new Gn({enable:!1,debug:!1,publicTags:[o,"STATIC_RESOURCE",null!==(t=null===location||void 0===location?void 0:location.host)&&void 0!==t?t:"","ZCB-CLIENT"],includeResourceList:["zcb-core.css","zcb-core.js"],excludeResourceTimingKeys:[],userRegion:""})],{databaseName:"laplace-zcb-client-database",maxSize:49283072,reportUrl:Oe.getCurrentReportUrl(),plugins:i});return de.init(a).then((function(e){var n,t,r,o;e&&(n=Ir,r=(null==(t=e)?void 0:t.getLogs("ZCB-CLIENT"))||[],o=new Set(r.map((function(e){return null==e?void 0:e.id}))),((null==n?void 0:n.getLogs("ZCB-CLIENT"))||[]).forEach((function(e){if(e&&!o.has(null==e?void 0:e.id)){var n=e||{},t=n.message,r=n.tags,i=n.logLevel,a=n.host,s=n.timestamp;fr.push({message:t,tag:r,logLevel:i,extraProperties:{host:a,timestamp:s}})}})),Ir=e,Ce()&&(fr.length&&Promise.allSettled(fr.map((function(e){var n=e.message,t=e.tag,r=e.logLevel,o=e.extraProperties;return Ir.log(n,t,r,o)}))).then((function(){fr.length=0,Ir.reportByFilter(["ZCB-CLIENT"])})),Sr.length&&Promise.allSettled(Sr.map((function(e){var n=e.payload,t=e.options;return Ir.directReport(n,t)}))).then((function(){Sr.length=0}))))})).catch((function(e){console.error("initLaplace ERROR:",e)}))};function gr(e,n){var t=(65535&e)+(65535&n);return(e>>16)+(n>>16)+(t>>16)<<16|65535&t}function Tr(e,n,t,r,o,i){return gr((a=gr(gr(n,e),gr(r,i)))<<(s=o)|a>>>32-s,t);var a,s}function pr(e,n,t,r,o,i,a){return Tr(n&t|~n&r,e,n,o,i,a)}function Or(e,n,t,r,o,i,a){return Tr(n&r|t&~r,e,n,o,i,a)}function Cr(e,n,t,r,o,i,a){return Tr(n^t^r,e,n,o,i,a)}function hr(e,n,t,r,o,i,a){return Tr(t^(n|~r),e,n,o,i,a)}function Nr(e,n){var t,r,o,i,a;e[n>>5]|=128<<n%32,e[14+(n+64>>>9<<4)]=n;var s=1732584193,u=-271733879,c=-1732584194,_=271733878;for(t=0;t<e.length;t+=16)r=s,o=u,i=c,a=_,s=pr(s,u,c,_,e[t],7,-680876936),_=pr(_,s,u,c,e[t+1],12,-389564586),c=pr(c,_,s,u,e[t+2],17,606105819),u=pr(u,c,_,s,e[t+3],22,-1044525330),s=pr(s,u,c,_,e[t+4],7,-176418897),_=pr(_,s,u,c,e[t+5],12,1200080426),c=pr(c,_,s,u,e[t+6],17,-1473231341),u=pr(u,c,_,s,e[t+7],22,-45705983),s=pr(s,u,c,_,e[t+8],7,1770035416),_=pr(_,s,u,c,e[t+9],12,-1958414417),c=pr(c,_,s,u,e[t+10],17,-42063),u=pr(u,c,_,s,e[t+11],22,-1990404162),s=pr(s,u,c,_,e[t+12],7,1804603682),_=pr(_,s,u,c,e[t+13],12,-40341101),c=pr(c,_,s,u,e[t+14],17,-1502002290),s=Or(s,u=pr(u,c,_,s,e[t+15],22,1236535329),c,_,e[t+1],5,-165796510),_=Or(_,s,u,c,e[t+6],9,-1069501632),c=Or(c,_,s,u,e[t+11],14,643717713),u=Or(u,c,_,s,e[t],20,-373897302),s=Or(s,u,c,_,e[t+5],5,-701558691),_=Or(_,s,u,c,e[t+10],9,38016083),c=Or(c,_,s,u,e[t+15],14,-660478335),u=Or(u,c,_,s,e[t+4],20,-405537848),s=Or(s,u,c,_,e[t+9],5,568446438),_=Or(_,s,u,c,e[t+14],9,-1019803690),c=Or(c,_,s,u,e[t+3],14,-187363961),u=Or(u,c,_,s,e[t+8],20,1163531501),s=Or(s,u,c,_,e[t+13],5,-1444681467),_=Or(_,s,u,c,e[t+2],9,-51403784),c=Or(c,_,s,u,e[t+7],14,1735328473),s=Cr(s,u=Or(u,c,_,s,e[t+12],20,-1926607734),c,_,e[t+5],4,-378558),_=Cr(_,s,u,c,e[t+8],11,-2022574463),c=Cr(c,_,s,u,e[t+11],16,1839030562),u=Cr(u,c,_,s,e[t+14],23,-35309556),s=Cr(s,u,c,_,e[t+1],4,-1530992060),_=Cr(_,s,u,c,e[t+4],11,1272893353),c=Cr(c,_,s,u,e[t+7],16,-155497632),u=Cr(u,c,_,s,e[t+10],23,-1094730640),s=Cr(s,u,c,_,e[t+13],4,681279174),_=Cr(_,s,u,c,e[t],11,-358537222),c=Cr(c,_,s,u,e[t+3],16,-722521979),u=Cr(u,c,_,s,e[t+6],23,76029189),s=Cr(s,u,c,_,e[t+9],4,-640364487),_=Cr(_,s,u,c,e[t+12],11,-421815835),c=Cr(c,_,s,u,e[t+15],16,530742520),s=hr(s,u=Cr(u,c,_,s,e[t+2],23,-995338651),c,_,e[t],6,-198630844),_=hr(_,s,u,c,e[t+7],10,1126891415),c=hr(c,_,s,u,e[t+14],15,-1416354905),u=hr(u,c,_,s,e[t+5],21,-57434055),s=hr(s,u,c,_,e[t+12],6,1700485571),_=hr(_,s,u,c,e[t+3],10,-1894986606),c=hr(c,_,s,u,e[t+10],15,-1051523),u=hr(u,c,_,s,e[t+1],21,-2054922799),s=hr(s,u,c,_,e[t+8],6,1873313359),_=hr(_,s,u,c,e[t+15],10,-30611744),c=hr(c,_,s,u,e[t+6],15,-1560198380),u=hr(u,c,_,s,e[t+13],21,1309151649),s=hr(s,u,c,_,e[t+4],6,-145523070),_=hr(_,s,u,c,e[t+11],10,-1120210379),c=hr(c,_,s,u,e[t+2],15,718787259),u=hr(u,c,_,s,e[t+9],21,-343485551),s=gr(s,r),u=gr(u,o),c=gr(c,i),_=gr(_,a);return[s,u,c,_]}function Ar(e){var n,t="",r=32*e.length;for(n=0;n<r;n+=8)t+=String.fromCharCode(e[n>>5]>>>n%32&255);return t}function Dr(e){var n,t=[];for(t[(e.length>>2)-1]=void 0,n=0;n<t.length;n+=1)t[n]=0;var r=8*e.length;for(n=0;n<r;n+=8)t[n>>5]|=(255&e.charCodeAt(n/8))<<n%32;return t}function vr(e){var n,t,r="0123456789abcdef",o="";for(t=0;t<e.length;t+=1)n=e.charCodeAt(t),o+=r.charAt(n>>>4&15)+r.charAt(15&n);return o}function mr(e){return unescape(encodeURIComponent(e))}function yr(e){return function(e){return Ar(Nr(Dr(e),8*e.length))}(mr(e))}function Pr(e,n){return function(e,n){var t,r,o=Dr(e),i=[],a=[];for(i[15]=a[15]=void 0,o.length>16&&(o=Nr(o,8*e.length)),t=0;t<16;t+=1)i[t]=909522486^o[t],a[t]=1549556828^o[t];return r=Nr(i.concat(Dr(n)),512+8*n.length),Ar(Nr(a.concat(r),640))}(mr(e),mr(n))}function br(e,n,t){return n?t?Pr(n,e):function(e,n){return vr(Pr(e,n))}(n,e):t?yr(e):vr(yr(e))}var Lr=function(e){return Boolean(null==e?void 0:e.log)},wr=function(e,n){return[e,n].flatMap((function(e){return e})).map((function(e){return"function"==typeof e?e():e})).filter((function(e){return Boolean(e)}))},Mr=function(){function e(){_classCallCheck(this,e),this.ZCB_ZmTrackingIds={}}return _createClass(e,[{key:"setZmTrackingIds",value:function(e){var n=e.zmWebTrackingId,t=e.zmChsTrackingId,r=e.zmTrackingId;this.ZCB_ZmTrackingIds={zmWebTrackingId:n,zmChsTrackingId:t,zmTrackingId:r}}},{key:"genZmTrackingId",value:function(){var e=Kt(),n="zcb_client_".concat(e,"_0"),t="".concat(e,"_0");return this.ZCB_ZmTrackingIds={zmWebTrackingId:n,zmChsTrackingId:t,zmTrackingId:e},{zmWebTrackingId:n,zmChsTrackingId:t,zmTrackingId:e}}},{key:"getZmTrackingId",value:function(){var e,n=null===(e=this.ZCB_ZmTrackingIds)||void 0===e?void 0:e.zmTrackingId;return n||(console.warn("getZmTrackingId failed, generate new zmTrackingId: ".concat(n)),n=this.genZmTrackingId().zmTrackingId),n}},{key:"clearZmTrackingId",value:function(){this.ZCB_ZmTrackingIds={}}},{key:"genFailOverZmChsTrackingId",value:function(){var e,n=null===(e=this.ZCB_ZmTrackingIds)||void 0===e?void 0:e.zmChsTrackingId;n||(n=this.genZmTrackingId().zmChsTrackingId);var t=n.match(/(\\d+)(?!.*\\d+)/);if(t){var r=parseInt(t[0])+1,o=n.substring(0,t.index)+r;return this.ZCB_ZmTrackingIds&&(this.ZCB_ZmTrackingIds.zmChsTrackingId=o),o}return this.genZmTrackingId().zmChsTrackingId}},{key:"getZmTrackingIdForWeb",value:function(){var e,n=null===(e=this.ZCB_ZmTrackingIds)||void 0===e?void 0:e.zmWebTrackingId;n||(n=this.genZmTrackingId().zmWebTrackingId);var t=n.match(/(\\d+)(?!.*\\d+)/);if(t){var r=parseInt(t[0])+1,o=n.substring(0,t.index)+r;return this.ZCB_ZmTrackingIds&&(this.ZCB_ZmTrackingIds.zmWebTrackingId=o),o}return this.genZmTrackingId().zmWebTrackingId}},{key:"getZmTrackingIdForChs",value:function(){var e,n=null===(e=this.ZCB_ZmTrackingIds)||void 0===e?void 0:e.zmChsTrackingId;return n||(n=this.genZmTrackingId().zmChsTrackingId),n}}]),e}(),Fr=globalThis.ZCB_TrackingIdController||new Mr;globalThis.ZCB_TrackingIdController=Fr;function Ur(e){if("object"===("undefined"==typeof window?"undefined":_typeof(window))){var n=encodeURI(e);return btoa(n)}return Buffer.from(e).toString("base64")}var kr,Br,xr,Vr,Wr,Gr,Hr=function(e){return Ur(e)},Jr=function(){function e(n){var t=n.requestOrigin,r=n.parentFrameId;_classCallCheck(this,e),this.parentFrameId=r;var o=Hr(t);r&&(o=r+"--"+o),this.frameId=o}return _createClass(e,[{key:"equal",value:function(e){var n=e.requestOrigin,t=e.parentFrameId;return t===this.parentFrameId&&this.frameId===t+"--"+Hr(n)}},{key:"isParentFrame",value:function(e){return this.frameId===e}},{key:"isSubFrame",value:function(e){return this.parentFrameId===e}}]),e}(),Yr=function(){function e(n){_classCallCheck(this,e),this.frames=new Map,this.tabId=n}return _createClass(e,[{key:"getFrame",value:function(e){var n=e.requestOrigin,t=e.parentFrameId,r=null;return this.frames.forEach((function(e){e.equal({requestOrigin:n,parentFrameId:t})&&(r=e)})),r}},{key:"checkAddFrame",value:function(e){var n=this,t=e.requestOrigin,r=e.parentFrameId,o=this.getFrame({requestOrigin:t,parentFrameId:r});if(o)return o;if(this.tabId===r)return this.addFrame({requestOrigin:t,parentFrameId:r});var i=null;return this.frames.forEach((function(e){i||e.isParentFrame(r)&&(i=n.addFrame({requestOrigin:t,parentFrameId:r}))})),i}},{key:"getSubFrames",value:function(e){var n=[];return this.frames.forEach((function(t){t.isSubFrame(e)&&n.push(t)})),n}},{key:"addFrame",value:function(e){var n=e.requestOrigin,t=e.parentFrameId,r=new Jr({requestOrigin:n,parentFrameId:t});return this.frames.set(r.frameId,r),r}}]),e}(),jr=function(){function e(){_classCallCheck(this,e),this.tabs=new Map}return _createClass(e,[{key:"makeRequest",value:function(e){var n=e.requestOrigin,t=e.parentFrameId,r="";return t?(this.tabs.forEach((function(e){if(!r){var o=e.checkAddFrame({requestOrigin:n,parentFrameId:t});o&&(r=o.frameId)}})),r):this.tabs.size?(this.tabs.forEach((function(e,n){r||(r=n)})),r):(r=Hr(n),this.tabs.set(r,new Yr(r)),r)}},{key:"makeViewerRequest",value:function(e){var n=e.parentFrameId,t="";return this.tabs.forEach((function(e){var r;if(n){if(t)return;var o=e.getSubFrames(n);t=(null===(r=o[0])||void 0===r?void 0:r.frameId)||""}else t=e.tabId})),t}}]),e}(),Kr=new(function(){function e(){_classCallCheck(this,e),this.rooms=new Map}return _createClass(e,[{key:"makeRequest",value:function(e){var n=e.roomId,t=e.requestOrigin,r=e.parentFrameId,o=e.isViewer;this.rooms.get(n)||this.rooms.set(n,new jr);var i=this.rooms.get(n);return i?o?i.makeViewerRequest({parentFrameId:r}):i.makeRequest({requestOrigin:t,parentFrameId:r}):""}}]),e}());"undefined"!=typeof global&&(global.cpsRoomManager=Kr),function(e){e.UNKNOW="unknow",e.BROWSER="browser",e.BROWSER_WORKER="worker",e.NODE="node",e.NODE_WORKER="node_worker"}(kr||(kr={})),Br="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,xr="undefined"!=typeof window,Vr="function"==typeof importScripts,Wr=Br&&!Vr,Gr=!Br&&!xr,Vr?kr.BROWSER_WORKER:xr?kr.BROWSER:Gr?kr.NODE:Wr?kr.NODE_WORKER:kr.UNKNOW;var zr=_createClass((function e(){var n=this;_classCallCheck(this,e),this.promise=new Promise((function(e,t){n.reject=t,n.resolve=e})),this.promise.then((function(e){return n.resolved=!0,e})).catch((function(){n.resolved=!1})).finally((function(){n.finished=!0,n.finishedTimestamp=Date.now()}))}));var Zr=function(){function e(n){_classCallCheck(this,e),this.cache=new Map,this.limit=n}return _createClass(e,[{key:"get",value:function(e){if(this.cache.has(e)){var n=this.cache.get(e);return this.cache.delete(e),this.cache.set(e,n),n}}},{key:"set",value:function(e,n){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.limit){var t=this.cache.keys().next().value;this.cache.delete(t)}this.cache.set(e,n)}},{key:"has",value:function(e){return this.cache.has(e)}},{key:"delete",value:function(e){return this.cache.delete(e)}},{key:"clear",value:function(){this.cache.clear()}},{key:"keys",value:function(){return Array.from(this.cache.keys())}},{key:"values",value:function(){return Array.from(this.cache.values())}}]),e}(),Xr="function",qr="object",Qr="string",$r="model",eo="name",no="type",to="vendor",ro="version",oo="architecture",io="hardwareConcurrency",ao="console",so="mobile",uo="tablet",co="smarttv",_o="wearable",Eo="Amazon",lo="Apple",fo="ASUS",So="BlackBerry",Io="Browser",Ro="Chrome",go="Firefox",To="Google",po="Huawei",Oo="LG",Co="Microsoft",ho="Motorola",No="Opera",Ao="Samsung",Do="Sharp",vo="Sony",mo="Xiaomi",yo="Zebra",Po="Facebook",bo={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Lo=function(e){return e.toLowerCase()},wo=function(e,n){return _typeof(e)===Qr&&-1!==Lo(n).indexOf(Lo(e))},Mo=function(e,n){return _typeof(e)===Qr?(e=e.replace(/^\\s\\s*/,""),"undefined"===_typeof(n)?e:e.substring(0,350)):""},Fo=function(e,n){for(var t in n)if(_typeof(n[t])===qr&&n[t].length>0){for(var r=0;r<n[t].length;r++)if(wo(n[t][r],e))return"?"===t?void 0:t}else if(wo(n[t],e))return"?"===t?void 0:t;return e},Uo={browser:[[/(ZoomApps)\\/([\\w\\.]+)/i],[eo,ro],[/\\b(?:crmo|crios)\\/([\\w\\.]+)/i],[ro,[eo,"Chrome"]],[/edg(?:e|ios|a)?\\/([\\w\\.]+)/i],[ro,[eo,"Edge"]],[/(opera mini)\\/([-\\w\\.]+)/i,/(opera [mobiletab]{3,6})\\b.+version\\/([-\\w\\.]+)/i,/(opera)(?:.+version\\/|[\\/ ]+)([\\w\\.]+)/i],[eo,ro],[/opios[\\/ ]+([\\w\\.]+)/i],[ro,[eo,No+" Mini"]],[/\\bopr\\/([\\w\\.]+)/i],[ro,[eo,No]],[/(kindle)\\/([\\w\\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\\/ ]?([\\w\\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\\/ ]?([\\w\\.]*)/i,/(ba?idubrowser)[\\/ ]?([\\w\\.]+)/i,/(?:ms|\\()(ie) ([\\w\\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\\/([-\\w\\.]+)/i,/(weibo)__([\\d\\.]+)/i],[eo,ro],[/(?:\\buc? ?browser|(?:juc.+)ucweb)[\\/ ]?([\\w\\.]+)/i],[ro,[eo,"UC"+Io]],[/microm.+\\bqbcore\\/([\\w\\.]+)/i,/\\bqbcore\\/([\\w\\.]+).+microm/i],[ro,[eo,"WeChat(Win) Desktop"]],[/micromessenger\\/([\\w\\.]+)/i],[ro,[eo,"WeChat"]],[/konqueror\\/([\\w\\.]+)/i],[ro,[eo,"Konqueror"]],[/trident.+rv[: ]([\\w\\.]{1,9})\\b.+like gecko/i],[ro,[eo,"IE"]],[/yabrowser\\/([\\w\\.]+)/i],[ro,[eo,"Yandex"]],[/(avast|avg)\\/([\\w\\.]+)/i],[[eo,/(.+)/,"$1 Secure "+Io],ro],[/\\bfocus\\/([\\w\\.]+)/i],[ro,[eo,go+" Focus"]],[/\\bopt\\/([\\w\\.]+)/i],[ro,[eo,No+" Touch"]],[/coc_coc\\w+\\/([\\w\\.]+)/i],[ro,[eo,"Coc Coc"]],[/dolfin\\/([\\w\\.]+)/i],[ro,[eo,"Dolphin"]],[/coast\\/([\\w\\.]+)/i],[ro,[eo,No+" Coast"]],[/miuibrowser\\/([\\w\\.]+)/i],[ro,[eo,"MIUI "+Io]],[/fxios\\/([-\\w\\.]+)/i],[ro,[eo,go]],[/\\bqihu|(qi?ho?o?|360)browser/i],[[eo,"360 "+Io]],[/(oculus|samsung|sailfish|huawei)browser\\/([\\w\\.]+)/i],[[eo,/(.+)/,"$1 "+Io],ro],[/(comodo_dragon)\\/([\\w\\.]+)/i],[[eo,/_/g," "],ro],[/(electron)\\/([\\w\\.]+) safari/i,/(tesla)(?: qtcarbrowser|\\/(20\\d\\d\\.[-\\w\\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\\/ ]?([\\w\\.]+)/i],[eo,ro],[/(metasr)[\\/ ]?([\\w\\.]+)/i,/(lbbrowser)/i,/\\[(linkedin)app\\]/i],[eo],[/((?:fban\\/fbios|fb_iab\\/fb4a)(?!.+fbav)|;fbav\\/([\\w\\.]+);)/i],[[eo,Po],ro],[/safari (line)\\/([\\w\\.]+)/i,/\\b(line)\\/([\\w\\.]+)\\/iab/i,/(chromium|instagram)[\\/ ]([-\\w\\.]+)/i],[eo,ro],[/\\bgsa\\/([\\w\\.]+) .*safari\\//i],[ro,[eo,"GSA"]],[/headlesschrome(?:\\/([\\w\\.]+)| )/i],[ro,[eo,Ro+" Headless"]],[/ wv\\).+(chrome)\\/([\\w\\.]+)/i],[[eo,Ro+" WebView"],ro],[/droid.+ version\\/([\\w\\.]+)\\b.+(?:mobile safari|safari)/i],[ro,[eo,"Android "+Io]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\/v?([\\w\\.]+)/i],[eo,ro],[/version\\/([\\w\\.\\,]+) .*mobile\\/\\w+ (safari)/i],[ro,[eo,"Mobile Safari"]],[/version\\/([\\w(\\.|\\,)]+) .*(mobile ?safari|safari)/i],[ro,eo],[/webkit.+?(mobile ?safari|safari)(\\/[\\w\\.]+)/i],[eo,[ro,Fo,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\\/([\\w\\.]+)/i],[eo,ro],[/(navigator|netscape\\d?)\\/([-\\w\\.]+)/i],[[eo,"Netscape"],ro],[/mobile vr; rv:([\\w\\.]+)\\).+firefox/i],[ro,[eo,go+" Reality"]],[/ekiohf.+(flow)\\/([\\w\\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\/ ]?([\\w\\.\\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\/([-\\w\\.]+)$/i,/(firefox)\\/([\\w\\.]+)/i,/(mozilla)\\/([\\w\\.]+) .+rv\\:.+gecko\\/\\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\. ]?browser)[-\\/ ]?v?([\\w\\.]+)/i,/(links) \\(([\\w\\.]+)/i],[eo,ro],[/(cobalt)\\/([\\w\\.]+)/i],[eo,[ro,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\)]/i],[[oo,"amd64"]],[/(ia32(?=;))/i],[[oo,Lo]],[/((?:i[346]|x)86)[;\\)]/i],[[oo,"ia32"]],[/\\b(aarch64|arm(v?8e?l?|_?64))\\b/i],[[oo,"arm64"]],[/\\b(arm(?:v[67])?ht?n?[fl]p?)\\b/i],[[oo,"armhf"]],[/windows (ce|mobile); ppc;/i],[[oo,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\\))/i],[[oo,/ower/,"",Lo]],[/(sun4\\w)[;\\)]/i],[[oo,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\\))|\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\b|pa-risc)/i],[[oo,Lo]]],device:[[/\\b(sch-i[89]0\\d|shw-m380s|sm-[ptx]\\w{2,4}|gt-[pn]\\d{2,4}|sgh-t8[56]9|nexus 10)/i],[$r,[to,Ao],[no,uo]],[/\\b((?:s[cgp]h|gt|sm)-\\w+|galaxy nexus)/i,/samsung[- ]([-\\w]+)/i,/sec-(sgh\\w+)/i],[$r,[to,Ao],[no,so]],[/((ipod|iphone)\\d+,\\d+)/i],[$r,[to,lo],[no,so]],[/(ipad\\d+,\\d+)/i],[$r,[to,lo],[no,uo]],[/\\((ip(?:hone|od)[\\w ]*);/i],[$r,[to,lo],[no,so]],[/\\((ipad);[-\\w\\),; ]+apple/i,/applecoremedia\\/[\\w\\.]+ \\((ipad)/i,/\\b(ipad)\\d\\d?,\\d\\d?[;\\]].+ios/i],[$r,[to,lo],[no,uo]],[/(macintosh);/i],[$r,[to,lo]],[/\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\d{2})\\b(?!.+d\\/s)/i],[$r,[to,po],[no,uo]],[/(?:huawei|honor)([-\\w ]+)[;\\)]/i,/\\b(nexus 6p|\\w{2,4}e?-[atu]?[ln][\\dx][012359c][adn]?)\\b(?!.+d\\/s)/i],[$r,[to,po],[no,so]],[/\\b(poco[\\w ]+)(?: bui|\\))/i,/\\b; (\\w+) build\\/hm\\1/i,/\\b(hm[-_ ]?note?[_ ]?(?:\\d\\w)?) bui/i,/\\b(redmi[\\-_ ]?(?:note|k)?[\\w_ ]+)(?: bui|\\))/i,/\\b(mi[-_ ]?(?:a\\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\\d?\\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\\))/i],[[$r,/_/g," "],[to,mo],[no,so]],[/\\b(mi[-_ ]?(?:pad)(?:[\\w_ ]+))(?: bui|\\))/i],[[$r,/_/g," "],[to,mo],[no,uo]],[/; (\\w+) bui.+ oppo/i,/\\b(cph[12]\\d{3}|p(?:af|c[al]|d\\w|e[ar])[mt]\\d0|x9007|a101op)\\b/i],[$r,[to,"OPPO"],[no,so]],[/vivo (\\w+)(?: bui|\\))/i,/\\b(v[12]\\d{3}\\w?[at])(?: bui|;)/i],[$r,[to,"Vivo"],[no,so]],[/\\b(rmx[12]\\d{3})(?: bui|;|\\))/i],[$r,[to,"Realme"],[no,so]],[/\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\b[\\w ]+build\\//i,/\\bmot(?:orola)?[- ](\\w*)/i,/((?:moto[\\w\\(\\) ]+|xt\\d{3,4}|nexus 6)(?= bui|\\)))/i],[$r,[to,ho],[no,so]],[/\\b(mz60\\d|xoom[2 ]{0,2}) build\\//i],[$r,[to,ho],[no,uo]],[/((?=lg)?[vl]k\\-?\\d{3}) bui| 3\\.[-\\w; ]{10}lg?-([06cv9]{3,4})/i],[$r,[to,Oo],[no,uo]],[/(lm(?:-?f100[nv]?|-[\\w\\.]+)(?= bui|\\))|nexus [45])/i,/\\blg[-e;\\/ ]+((?!browser|netcast|android tv)\\w+)/i,/\\blg-?([\\d\\w]+) bui/i],[$r,[to,Oo],[no,so]],[/(ideatab[-\\w ]+)/i,/lenovo ?(s[56]000[-\\w]+|tab(?:[\\w ]+)|yt[-\\d\\w]{6}|tb[-\\d\\w]{6})/i],[$r,[to,"Lenovo"],[no,uo]],[/(?:maemo|nokia).*(n900|lumia \\d+)/i,/nokia[-_ ]?([-\\w\\.]*)/i],[[$r,/_/g," "],[to,"Nokia"],[no,so]],[/(pixel c)\\b/i],[$r,[to,To],[no,uo]],[/droid.+; (pixel[\\daxl ]{0,6})(?: bui|\\))/i],[$r,[to,To],[no,so]],[/droid.+ (a?\\d[0-2]{2}so|[c-g]\\d{4}|so[-gl]\\w+|xq-a\\w[4-7][12])(?= bui|\\).+chrome\\/(?![1-6]{0,1}\\d\\.))/i],[$r,[to,vo],[no,so]],[/sony tablet [ps]/i,/\\b(?:sony)?sgp\\w+(?: bui|\\))/i],[[$r,"Xperia Tablet"],[to,vo],[no,uo]],[/ (kb2005|in20[12]5|be20[12][59])\\b/i,/(?:one)?(?:plus)? (a\\d0\\d\\d)(?: b|\\))/i],[$r,[to,"OnePlus"],[no,so]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\\))/i,/(kf[a-z]+)( bui|\\)).+silk\\//i],[$r,[to,Eo],[no,uo]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\\)).+silk\\//i],[[$r,/(.+)/g,"Fire Phone $1"],[to,Eo],[no,so]],[/(playbook);[-\\w\\),; ]+(rim)/i],[$r,to,[no,uo]],[/\\b((?:bb[a-f]|st[hv])100-\\d)/i,/\\(bb10; (\\w+)/i],[$r,[to,So],[no,so]],[/(?:\\b|asus_)(transfo[prime ]{4,10} \\w+|eeepc|slider \\w+|nexus 7|padfone|p00[cj])/i],[$r,[to,fo],[no,uo]],[/ (z[bes]6[027][012][km][ls]|zenfone \\d\\w?)\\b/i],[$r,[to,fo],[no,so]],[/(nexus 9)/i],[$r,[to,"HTC"],[no,uo]],[/(htc)[-;_ ]{1,2}([\\w ]+(?=\\)| bui)|\\w+)/i,/(zte)[- ]([\\w ]+?)(?: bui|\\/|\\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\\w]*)/i],[to,[$r,/_/g," "],[no,so]],[/droid.+; ([ab][1-7]-?[0178a]\\d\\d?)/i],[$r,[to,"Acer"],[no,uo]],[/droid.+; (m[1-5] note) bui/i,/\\bmz-([-\\w]{2,})/i],[$r,[to,"Meizu"],[no,so]],[/\\b(sh-?[altvz]?\\d\\d[a-ekm]?)/i],[$r,[to,Do],[no,so]],[/(blackberry|benq|palm(?=\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\\w]*)/i,/(hp) ([\\w ]+\\w)/i,/(asus)-?(\\w+)/i,/(microsoft); (lumia[\\w ]+)/i,/(lenovo)[-_ ]?([-\\w]+)/i,/(jolla)/i,/(oppo) ?([\\w ]+) bui/i],[to,$r,[no,so]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\\/([\\w\\.]+)/i,/(nook)[\\w ]+build\\/(\\w+)/i,/(dell) (strea[kpr\\d ]*[\\dko])/i,/(le[- ]+pan)[- ]+(\\w{1,9}) bui/i,/(trinity)[- ]*(t\\d{3}) bui/i,/(gigaset)[- ]+(q\\w{1,9}) bui/i,/(vodafone) ([\\w ]+)(?:\\)| bui)/i],[to,$r,[no,uo]],[/(surface duo)/i],[$r,[to,Co],[no,uo]],[/droid [\\d\\.]+; (fp\\du?)(?: b|\\))/i],[$r,[to,"Fairphone"],[no,so]],[/(u304aa)/i],[$r,[to,"AT&T"],[no,so]],[/\\bsie-(\\w*)/i],[$r,[to,"Siemens"],[no,so]],[/\\b(rct\\w+) b/i],[$r,[to,"RCA"],[no,uo]],[/\\b(venue[\\d ]{2,7}) b/i],[$r,[to,"Dell"],[no,uo]],[/\\b(q(?:mv|ta)\\w+) b/i],[$r,[to,"Verizon"],[no,uo]],[/\\b(?:barnes[& ]+noble |bn[rt])([\\w\\+ ]*) b/i],[$r,[to,"Barnes & Noble"],[no,uo]],[/\\b(tm\\d{3}\\w+) b/i],[$r,[to,"NuVision"],[no,uo]],[/\\b(k88) b/i],[$r,[to,"ZTE"],[no,uo]],[/\\b(nx\\d{3}j) b/i],[$r,[to,"ZTE"],[no,so]],[/\\b(gen\\d{3}) b.+49h/i],[$r,[to,"Swiss"],[no,so]],[/\\b(zur\\d{3}) b/i],[$r,[to,"Swiss"],[no,uo]],[/\\b((zeki)?tb.*\\b) b/i],[$r,[to,"Zeki"],[no,uo]],[/\\b([yr]\\d{2}) b/i,/\\b(dragon[- ]+touch |dt)(\\w{5}) b/i],[[to,"Dragon Touch"],$r,[no,uo]],[/\\b(ns-?\\w{0,9}) b/i],[$r,[to,"Insignia"],[no,uo]],[/\\b((nxa|next)-?\\w{0,9}) b/i],[$r,[to,"NextBook"],[no,uo]],[/\\b(xtreme\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[to,"Voice"],$r,[no,so]],[/\\b(lvtel\\-)?(v1[12]) b/i],[[to,"LvTel"],$r,[no,so]],[/\\b(ph-1) /i],[$r,[to,"Essential"],[no,so]],[/\\b(v(100md|700na|7011|917g).*\\b) b/i],[$r,[to,"Envizen"],[no,uo]],[/\\b(trio[-\\w\\. ]+) b/i],[$r,[to,"MachSpeed"],[no,uo]],[/\\btu_(1491) b/i],[$r,[to,"Rotor"],[no,uo]],[/(shield[\\w ]+) b/i],[$r,[to,"Nvidia"],[no,uo]],[/(sprint) (\\w+)/i],[to,$r,[no,so]],[/(kin\\.[onetw]{3})/i],[[$r,/\\./g," "],[to,Co],[no,so]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\)/i],[$r,[to,yo],[no,uo]],[/droid.+; (ec30|ps20|tc[2-8]\\d[kx])\\)/i],[$r,[to,yo],[no,so]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[to,$r,[no,ao]],[/droid.+; (shield) bui/i],[$r,[to,"Nvidia"],[no,ao]],[/(playstation [345portablevi]+)/i],[$r,[to,vo],[no,ao]],[/\\b(xbox(?: one)?(?!; xbox))[\\); ]/i],[$r,[to,Co],[no,ao]],[/smart-tv.+(samsung)/i],[to,[no,co]],[/hbbtv.+maple;(\\d+)/i],[[$r,/^/,"SmartTV"],[to,Ao],[no,co]],[/(nux; netcast.+smarttv|lg (netcast\\.tv-201\\d|android tv))/i],[[to,Oo],[no,co]],[/(apple) ?tv/i],[to,[$r,lo+" TV"],[no,co]],[/crkey/i],[[$r,Ro+"cast"],[to,To],[no,co]],[/droid.+aft(\\w)( bui|\\))/i],[$r,[to,Eo],[no,co]],[/\\(dtv[\\);].+(aquos)/i,/(aquos-tv[\\w ]+)\\)/i],[$r,[to,Do],[no,co]],[/(bravia[\\w ]+)( bui|\\))/i],[$r,[to,vo],[no,co]],[/(mitv-\\w{5}) bui/i],[$r,[to,mo],[no,co]],[/\\b(roku)[\\dx]*[\\)\\/]((?:dvp-)?[\\d\\.]*)/i,/hbbtv\\/\\d+\\.\\d+\\.\\d+ +\\([\\w ]*; *(\\w[^;]*);([^;]*)/i],[[to,Mo],[$r,Mo],[no,co]],[/\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\b/i],[[no,co]],[/((pebble))app/i],[to,$r,[no,_o]],[/droid.+; (glass) \\d/i],[$r,[to,To],[no,_o]],[/droid.+; (wt63?0{2,3})\\)/i],[$r,[to,yo],[no,_o]],[/(quest( 2)?)/i],[$r,[to,Po],[no,_o]],[/(tesla)(?: qtcarbrowser|\\/[-\\w\\.]+)/i],[to,[no,"embedded"]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+? mobile safari/i],[$r,[no,so]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+?(?! mobile) safari/i],[$r,[no,uo]],[/\\b((tablet|tab)[;\\/]|focus\\/\\d(?!.+mobile))/i],[[no,uo]],[/(phone|mobile(?:[;\\/]| [ \\w\\/\\.]*safari)|pda(?=.+windows ce))/i],[[no,so]],[/(android[-\\w\\. ]{0,9});.+buil/i],[$r,[to,"Generic"]]],engine:[[/windows.+ edge\\/([\\w\\.]+)/i],[ro,[eo,"EdgeHTML"]],[/webkit\\/537\\.36.+chrome\\/(?!27)([\\w\\.]+)/i],[ro,[eo,"Blink"]],[/(presto)\\/([\\w\\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\/([\\w\\.]+)/i,/ekioh(flow)\\/([\\w\\.]+)/i,/(khtml|tasman|links)[\\/ ]\\(?([\\w\\.]+)/i,/(icab)[\\/ ]([23]\\.[\\d\\.]+)/i],[eo,ro],[/rv\\:([\\w\\.]{1,9})\\b.+(gecko)/i],[ro,eo]],os:[[/microsoft (windows) (vista|xp)/i],[eo,ro],[/(windows) nt 6\\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\\/ ]?([\\d\\.\\w ]*)/i,/(windows)[\\/ ]?([ntce\\d\\. ]+\\w)(?!.+xbox)/i],[eo,[ro,Fo,bo]],[/(win(?=3|9|n)|win 9x )([nt\\d\\.]+)/i],[[eo,"Windows"],[ro,Fo,bo]],[/ip[honead]{2,4}\\b(?:.*os ([\\w]+) like mac|; opera)/i,/cfnetwork\\/.+darwin/i],[[ro,/_/g,"."],[eo,"iOS"]],[/(mac os x) ?([\\w\\. ]*)/i,/(macintosh|mac_powerpc\\b)(?!.+haiku)/i],[[eo,"Mac OS"],[ro,/_/g,"."]],[/droid ([\\w\\.]+)\\b.+(android[- ]x86|harmonyos)/i],[ro,eo],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\/ ]?([\\w\\.]*)/i,/(blackberry)\\w*\\/([\\w\\.]*)/i,/(tizen|kaios)[\\/ ]([\\w\\.]+)/i,/\\((series40);/i],[eo,ro],[/\\(bb(10);/i],[ro,[eo,So]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\\/ ]?([\\w\\.]*)/i],[ro,[eo,"Symbian"]],[/mozilla\\/[\\d\\.]+ \\((?:mobile|tablet|tv|mobile; [\\w ]+); rv:.+ gecko\\/([\\w\\.]+)/i],[ro,[eo,go+" OS"]],[/web0s;.+rt(tv)/i,/\\b(?:hp)?wos(?:browser)?\\/([\\w\\.]+)/i],[ro,[eo,"webOS"]],[/crkey\\/([\\d\\.]+)/i],[ro,[eo,Ro+"cast"]],[/(cros) [\\w]+ ([\\w\\.]+\\w)/i],[[eo,"Chromium OS"],ro],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\\);]+)/i,/\\b(joli|palm)\\b ?(?:os)?\\/?([\\w\\.]*)/i,/(mint)[\\/\\(\\) ]?(\\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\\/ ]?(?!chrom|package)([-\\w\\.]*)/i,/(hurd|linux) ?([\\w\\.]*)/i,/(gnu) ?([\\w\\.]*)/i,/\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\/ ]?(?!amd|[ix346]{1,2}86)([\\w\\.]*)/i,/(haiku) (\\w+)/i],[eo,ro],[/(sunos) ?([\\w\\.\\d]*)/i],[[eo,"Solaris"],ro],[/((?:open)?solaris)[-\\/ ]?([\\w\\.]*)/i,/(aix) ((\\d)(?=\\.|\\)| )[\\w\\.])*/i,/\\b(beos|os\\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\\w\\.]*)/i],[eo,ro]]},ko=function(){function e(n){_classCallCheck(this,e),this.ua=(null===navigator||void 0===navigator?void 0:navigator.userAgent)||"",this.navigator=navigator||{},n&&(this.ua=n),this.regexes=Uo}return _createClass(e,[{key:"rgxMapper",value:function(e,n){for(var t={},r=0,o=0,i=0,a=0,s=void 0,u=void 0,c=void 0;r<n.length&&!u;){var _=n[r],E=n[r+1];for(o=i=0;o<_.length&&!u;)if(u=_[o++].exec(e))for(a=0;a<E.length;a++)c=u[++i],_typeof(s=E[a])===qr&&s.length>0?2===s.length?_typeof(s[1])==Xr?t[s[0]]=s[1](c):t[s[0]]=s[1]:3===s.length?_typeof(s[1])!==Xr||s[1].exec&&s[1].test?t[s[0]]=c?c.replace(s[1],s[2]):void 0:t[s[0]]=c?s[1](c,s[2]):void 0:4===s.length&&(t[s[0]]=c?s[3](c.replace(s[1],s[2])):void 0):t[s]=c||void 0;r+=2}return t}},{key:"getBrowser",value:function(){var e={};e[eo]=void 0,e[ro]=void 0;var n,t=this.rgxMapper(this.ua,this.regexes.browser);return e.major=_typeof(n=t.version)===Qr?n.replace(/[^\\d\\.]/g,"").split(".")[0]:void 0,Object.assign(e,t),e}},{key:"getCPU",value:function(){var e={};e[oo]=void 0,e[io]=this.navigator[io];var n=this.rgxMapper(this.ua,this.regexes.cpu);return Object.assign(e,n),e}},{key:"getDevice",value:function(){var e={};e[to]=void 0,e[$r]=void 0,e[no]=void 0;var n=this.rgxMapper(this.ua,this.regexes.device);return Object.assign(e,n),e}},{key:"getEngine",value:function(){var e={};e[eo]=void 0,e[ro]=void 0;var n=this.rgxMapper(this.ua,this.regexes.engine);return Object.assign(e,n),e}},{key:"getOS",value:function(){var e={};e[eo]=void 0,e[ro]=void 0;var n=this.rgxMapper(this.ua,this.regexes.os);return Object.assign(e,n),e}},{key:"getUA",value:function(){return this.ua}},{key:"setUA",value:function(e){var n=_typeof(e)===Qr&&e.length>350?Mo(e,350):e;this.ua=n}},{key:"getResult",value:function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}}}]),e}(),Bo=new(function(){function e(){_classCallCheck(this,e),globalThis.ZCB_ZmCobrowseInfo={session:{userId:"",sessionId:"",participantType:"",agentSdkTrackingId:"",region:"",sdkSourceType:void 0},isCobrowseLocked:!1}}return _createClass(e,[{key:"getSession",value:function(){var e;return null===(e=globalThis.ZCB_ZmCobrowseInfo)||void 0===e?void 0:e.session}},{key:"getCobrowse",value:function(){return globalThis.ZCB_ZmCobrowseInfo}},{key:"setSessionId",value:function(e){globalThis.ZCB_ZmCobrowseInfo.session.sessionId=e}},{key:"setAgentSdkTrackingId",value:function(e){globalThis.ZCB_ZmCobrowseInfo.session.agentSdkTrackingId=e}},{key:"setUserId",value:function(e){globalThis.ZCB_ZmCobrowseInfo.session.userId=e}},{key:"setParticipantType",value:function(e){globalThis.ZCB_ZmCobrowseInfo.session.participantType=e}},{key:"setIsCobrowseLocked",value:function(e){globalThis.ZCB_ZmCobrowseInfo.isCobrowseLocked=e}},{key:"setSession",value:function(e){Object.assign(globalThis.ZCB_ZmCobrowseInfo.session,e)}},{key:"setRegion",value:function(e){globalThis.ZCB_ZmCobrowseInfo.session.region=e}},{key:"clearRegion",value:function(){globalThis.ZCB_ZmCobrowseInfo.session.region=""}},{key:"setSdkSourceType",value:function(e){window.ZCB_ZmCobrowseInfo.session.sdkSourceType=e}},{key:"clearSession",value:function(){globalThis.ZCB_ZmCobrowseInfo.session={userId:"",sessionId:"",participantType:"",agentSdkTrackingId:"",region:"",sdkSourceType:void 0},globalThis.ZCB_ZmCobrowseInfo.isCobrowseLocked=!1}}]),e}()),xo={log:new Zr(30),info:new Zr(30),debug:new Zr(30),warn:new Zr(30),error:new Zr(30)},Vo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];try{return(null==e?void 0:e.some((function(e){return"NO-TRACKING"===e})))?"0000":Fr.getZmTrackingId()}catch(e){return console.error("error: ".concat(e)),Fr.getZmTrackingId()}},Wo=function(e,n,t){return["%c ".concat(e," %c ").concat(n," %c"),"background:".concat(t,";border:1px solid ").concat(t,"; padding: 1px; border-radius: 2px 0 0 2px; color: #fff;"),"border:1px solid ".concat(t,"; padding: 1px; border-radius: 0 2px 2px 0; color: ").concat(t,";"),"background:transparent"]},Go=function(){return o(void 0,void 0,void 0,_regeneratorRuntime().mark((function e(){var n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o(void 0,void 0,void 0,_regeneratorRuntime().mark((function e(){var n,t,r,o,i,a,s,u,c,_;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=(new ko).getResult(),navigator){e.next=3;break}return e.abrupt("return",{});case 3:if(c=Object.assign({appCodeName:navigator.appCodeName,appName:navigator.appName,appVersion:navigator.appVersion,language:navigator.language,connection:{downlink:null===(n=navigator.connection)||void 0===n?void 0:n.downlink,downlinkMax:null===(t=navigator.connection)||void 0===t?void 0:t.downlinkMax,effectiveType:null===(r=navigator.connection)||void 0===r?void 0:r.effectiveType,rtt:null===(o=navigator.connection)||void 0===o?void 0:o.rtt,saveData:null===(i=navigator.connection)||void 0===i?void 0:i.saveData,type:null===(a=navigator.connection)||void 0===a?void 0:a.type},href:location.host},u),!(null===(s=navigator.userAgentData)||void 0===s?void 0:s.getHighEntropyValues)){e.next=18;break}return e.prev=5,e.next=8,navigator.userAgentData.getHighEntropyValues(["architecture","bitness","fullVersionList","platformVersion","wow64","model","formFactor"]);case 8:_=e.sent,c.os&&(c.os.version=_.platformVersion),c.cpu&&(c.cpu.architecture=_.architecture,c.cpu.bitness=_.bitness),c.mobile=_.mobile,c.userAgentData=JSON.stringify(_),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(5),console.log("get userAgentData error",e.t0);case 18:return e.abrupt("return",c);case 19:case"end":return e.stop()}}),e,null,[[5,15]])})));case 2:n=e.sent,jo(["navigator"]).logWithReport(JSON.stringify(n));case 4:case"end":return e.stop()}}),e)})))},Ho=function(e,n){var t=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null,o=0;return function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];var u=Date.now();o||!1!==t.leading||(o=u);var c=n-(u-o),_=this;c<=0||c>n?(r&&(clearTimeout(r),r=null),o=u,e.apply(_,a)):r||!1===t.trailing||(r=setTimeout((function(){o=!1===t.leading?0:Date.now(),r=null,e.apply(_,a)}),c))}}(e,n,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),r=null,o=null,i=null;return function(){for(var e=arguments.length,a=new Array(e),s=0;s<e;s++)a[s]=arguments[s];r=a,o=this,i||(i=setTimeout((function(){r&&(t.apply(o,r),r=null,i=null)}),n)),t.apply(this,a)}}((function(){Ce()&&Ir.reportByFilter(["ZCB-CLIENT"])}),1e4);function Jo(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.log,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4?arguments[4]:void 0;return o(this,void 0,void 0,_regeneratorRuntime().mark((function o(){var i,s,u,c,_,E,l,d,f,S;return _regeneratorRuntime().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return i=(null==a?void 0:a.sessionInfo)||Bo.getSession(),s=i.userId,u=i.sessionId,c=i.participantType,_=i.region,E=i.agentSdkTrackingId,l=i.sdkSourceType,d=(null==a?void 0:a.appKey)||Hn.getCoBrowsingConfig("appKey"),f={uuid:s,appKey:"{E}".concat(d,"{/E}"),sessionId:u,participantType:c,region:_,sdkSourceType:l},E&&(f.agentSdkTrackingId=E),o.next=7,Ir.log(e,n,t,Object.assign({host:a?a.host||"":(null===location||void 0===location?void 0:location.host)||"",zmDeviceId:a?a.zmDeviceId||"":window.ZCB_ZmDeviceId,sdkVersion:a?a.sdkVersion||"":sr(),info:f},r));case 7:return S=o.sent,Ho(),o.abrupt("return",S);case 10:case"end":return o.stop()}}),o)})))}var Yo,jo=function(e,n){var t=_toConsumableArray(wr(["ZCB-CLIENT"],e||[]));return{log:function(e,r){return function(e,n,t,r){var o,a;if(null!==(a=null===(o=null==pe?void 0:pe.logLevel)||void 0===o?void 0:o.log)&&void 0!==a&&a&&Lr(Ir)){var s=(null==r?void 0:r.trackingId)||Vo(t),u=wr([s],n||[]),c=wr(u,t||[]),_=br("".concat(s).concat(e));if(!xo.log.has(_))return xo.log.set(_,!0),Jo(e,c,i.log,{},r)}}(e,t,r,n)},logWithReport:function(e,r){return function(e,n,t,r){var o,a;if(null!==(a=null===(o=null==pe?void 0:pe.logLevel)||void 0===o?void 0:o.log)&&void 0!==a&&a&&Lr(Ir)&&Ce()){var s=(null==r?void 0:r.trackingId)||Vo(t),u=wr([s],n||[]),c=wr(u,t||[]),_=br("".concat(s).concat(e));if(!xo.log.has(_)){xo.log.set(_,!0);var E=(null==r?void 0:r.sessionInfo)||Bo.getSession(),l=E.userId,d=E.sessionId,f=E.participantType,S=E.region,I=E.agentSdkTrackingId,R=E.sdkSourceType,g=(null==r?void 0:r.appKey)||Hn.getCoBrowsingConfig("appKey"),T={uuid:l,appKey:"{E}".concat(g,"{/E}"),sessionId:d,participantType:f,region:S,sdkSourceType:R};return I&&(T.agentSdkTrackingId=I),Ir.directReport({message:e,host:r?r.host||"":(null===location||void 0===location?void 0:location.host)||"",zmDeviceId:r?r.zmDeviceId||"":window.ZCB_ZmDeviceId,sdkVersion:r?r.sdkVersion||"":sr(),info:T},{tags:c,logLevel:i.log})}}}(e,t,r,n)},info:function(e,r){return function(e,n,t,r){var o,a;if(null!==(a=null===(o=null==pe?void 0:pe.logLevel)||void 0===o?void 0:o.info)&&void 0!==a&&a&&Lr(Ir)){var s=(null==r?void 0:r.trackingId)||Vo(t),u=wr([s],n||[]),c=wr(u,t||[]),_=br("".concat(s).concat(e));if(!xo.info.has(_))return xo.info.set(_,!0),Jo(e,c,i.info,{},r)}}(e,t,r,n)},debug:function(e,r){return function(e,n,t,r){var o,a;if(null!==(a=null===(o=null==pe?void 0:pe.logLevel)||void 0===o?void 0:o.debug)&&void 0!==a&&a&&Lr(Ir)){var s=(null==r?void 0:r.trackingId)||Vo(t),u=wr([s],n||[]),c=wr(u,t||[]),_=br("".concat(s).concat(e));if(!xo.debug.has(_))return xo.debug.set(_,!0),Jo(e,c,i.debug,{},r)}}(e,t,r,n)},error:function(e,r){return function(e,n,t,r){var o,a;if((o=console).error.apply(o,_toConsumableArray(Wo("laplace-error",e,"#F56C6C"))),(null===(a=null==pe?void 0:pe.logLevel)||void 0===a?void 0:a.error)&&Lr(Ir)){var s=(null==r?void 0:r.trackingId)||Vo(t),u=wr([s],n||[]),c=wr(u,t||[]),_=br("".concat(s).concat(e));if(!xo.error.has(_))return xo.error.set(_,!0),Jo(e,c,i.error,{},r)}}(e,t,r,n)},warn:function(e,r){return function(e,n,t,r){var o,a,s;if((o=console).warn.apply(o,_toConsumableArray(Wo("laplace-warn",e,"#E6A23C"))),null!==(s=null===(a=null==pe?void 0:pe.logLevel)||void 0===a?void 0:a.warn)&&void 0!==s&&s&&Lr(Ir)){var u=(null==r?void 0:r.trackingId)||Vo(t),c=wr([u],n||[]),_=wr(c,t||[]),E=br("".concat(u).concat(e));if(!xo.warn.has(E))return xo.warn.set(E,!0),Jo(e,_,i.warn,{},r)}}(e,t,r,n)},print:function(e){return function(e){var n,t;null!==(t=null===(n=null==pe?void 0:pe.logLevel)||void 0===n?void 0:n.print)&&void 0!==t&&t&&console.log(e)}(e)},performance:function(e,r){return function(e,n,t,r){var o,a;if(null!==(a=null===(o=null==pe?void 0:pe.logLevel)||void 0===o?void 0:o.log)&&void 0!==a&&a&&Lr(Ir)){var s=(null==r?void 0:r.trackingId)||Vo(t),u=wr([s],n||[]);return Jo(e,wr(u,t||[]),i.log,{},r)}}(e,t,r,n)},performanceRange:function(e,r,o){return function(e,n,t,r,o){var a,s;if(null!==(s=null===(a=null==pe?void 0:pe.logLevel)||void 0===a?void 0:a.log)&&void 0!==s&&s&&Lr(Ir)){var u=(null==o?void 0:o.trackingId)||Vo(r),c=wr([u],t||[]);return Jo(e,wr(c,r||[]),i.log,n,o)}}(e,r,t,o,n)},log_2:function(e,r){return function(e,n,t,r){var o,a;if(null!==(a=null===(o=null==pe?void 0:pe.logLevel)||void 0===o?void 0:o.log)&&void 0!==a&&a&&Lr(Ir)){var s=JSON.stringify(e),u=(null==r?void 0:r.trackingId)||Vo(t),c=wr([u],n||[]);return Jo(s,wr(c,t||[]),i.log,{},r)}}(e,t,r,n)},reportNavigator:function(){Go()},setReportUrl:function(e){!function(e){if(Oe.setDynamicReportUrl(e),Ir&&"function"==typeof Ir.setReportUrl){var n=Ir.reportUrl;Ir.setReportUrl(e),Ce()&&e!==n&&Ir.reportByFilter(["ZCB-CLIENT"])}}(e)},setLaplaceEnabled:function(e){var n;n=e,Oe.setDynamicLaplaceEnabled(n)}}};jo(["performance-log"]),function(e){e[e.ClientInit=1]="ClientInit",e[e.ClientInitFinished=2]="ClientInitFinished",e[e.CreateSessionStart=3]="CreateSessionStart",e[e.CreateSessionEnd=4]="CreateSessionEnd",e[e.PinCodeRequest=5]="PinCodeRequest",e[e.PinCodeUpdated=6]="PinCodeUpdated",e[e.PingEndpointListDone=7]="PingEndpointListDone",e[e.initWS=8]="initWS",e[e.WSConnected2Channel=9]="WSConnected2Channel",e[e.WSConnectedSuccess=10]="WSConnectedSuccess",e[e.SessionStart=11]="SessionStart",e[e.SessionStarted=12]="SessionStarted",e[e.SessionStartFinish=13]="SessionStartFinish",e[e.StartChannel=14]="StartChannel",e[e.UserRoster=15]="UserRoster",e[e.LeaderJoined=16]="LeaderJoined",e[e.FollowerJoined=17]="FollowerJoined",e[e.CallSessionInit=18]="CallSessionInit",e[e.AfterJoined=19]="AfterJoined",e[e.SessionDestroy=20]="SessionDestroy",e[e.AgentReconnectingInAgentSide=21]="AgentReconnectingInAgentSide",e[e.CustomerDisconnectedInAgentSide=22]="CustomerDisconnectedInAgentSide",e[e.CustomerTimeoutInAgentSide=23]="CustomerTimeoutInAgentSide",e[e.AgentReconnectingSuccessInAgentSide=24]="AgentReconnectingSuccessInAgentSide",e[e.CustomerReconnectingSuccessInAgentSide=25]="CustomerReconnectingSuccessInAgentSide",e[e.AgentJoinedInAgentSide=26]="AgentJoinedInAgentSide",e[e.CustomerJoinedInAgentSide=27]="CustomerJoinedInAgentSide",e[e.StartReplayInAgentSide=28]="StartReplayInAgentSide",e[e.CustomerReconnectingInCustomerSide=29]="CustomerReconnectingInCustomerSide",e[e.AgentDisconnectedInCustomerSide=30]="AgentDisconnectedInCustomerSide",e[e.AgentTimeoutInCustomerSide=31]="AgentTimeoutInCustomerSide",e[e.CustomerReconnectingSuccessInCustomerSide=32]="CustomerReconnectingSuccessInCustomerSide",e[e.AgentReconnectingSuccessInCustomerSide=33]="AgentReconnectingSuccessInCustomerSide"}(Yo||(Yo={}));var Ko,zo={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(zo,Yo.ClientInit,"ClientInit"),Yo.ClientInitFinished,"ClientInitFinished"),Yo.CreateSessionStart,"CreateSessionStart"),Yo.CreateSessionEnd,"CreateSessionEnd"),Yo.PinCodeRequest,"PinCodeRequest"),Yo.PinCodeUpdated,"PinCodeUpdated"),Yo.PingEndpointListDone,"PingEndpointListDone"),Yo.initWS,"initWS"),Yo.WSConnected2Channel,"WSConnected2Channel"),Yo.WSConnectedSuccess,"WSConnectedSuccess"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(zo,Yo.SessionStart,"SessionStart"),Yo.SessionStarted,"SessionStarted"),Yo.SessionStartFinish,"SessionStartFinish"),Yo.StartChannel,"StartChannel"),Yo.UserRoster,"UserRoster"),Yo.LeaderJoined,"LeaderJoined"),Yo.FollowerJoined,"FollowerJoined"),Yo.CallSessionInit,"CallSessionInit"),Yo.AfterJoined,"AfterJoined"),Yo.SessionDestroy,"SessionDestroy"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(zo,Yo.AgentReconnectingInAgentSide,"AgentReconnectingInAgentSide"),Yo.CustomerDisconnectedInAgentSide,"CustomerDisconnectedInAgentSide"),Yo.CustomerTimeoutInAgentSide,"CustomerTimeoutInAgentSide"),Yo.AgentReconnectingSuccessInAgentSide,"AgentReconnectingSuccessInAgentSide"),Yo.CustomerReconnectingSuccessInAgentSide,"CustomerReconnectingSuccessInAgentSide"),Yo.AgentJoinedInAgentSide,"AgentJoinedInAgentSide"),Yo.CustomerJoinedInAgentSide,"CustomerJoinedInAgentSide"),Yo.StartReplayInAgentSide,"StartReplayInAgentSide"),Yo.CustomerReconnectingInCustomerSide,"CustomerReconnectingInCustomerSide"),Yo.AgentDisconnectedInCustomerSide,"AgentDisconnectedInCustomerSide"),_defineProperty(_defineProperty(_defineProperty(zo,Yo.AgentTimeoutInCustomerSide,"AgentTimeoutInCustomerSide"),Yo.CustomerReconnectingSuccessInCustomerSide,"CustomerReconnectingSuccessInCustomerSide"),Yo.AgentReconnectingSuccessInCustomerSide,"AgentReconnectingSuccessInCustomerSide"),function(e){e[e.IMAGE=0]="IMAGE",e[e.FONT=1]="FONT"}(Ko||(Ko={})),jo(["cbs-connection"]);var Zo,Xo,qo,Qo,$o,ei,ni,ti,ri,oi,ii,ai=[$n.Input,et.Annotation,et.FullSnapshot],si=function(){function e(n){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.8;_classCallCheck(this,e),this.logger=n,this.sample=r,this.cpuState="",this.localMachineTimeDelta=new Map,this.sessionInfo={sessionId:void 0,sessionRegion:void 0,startUrl:void 0},this.incrementalSourceCountMap=new Map,this.eventCacheListMap=new Map,this.handlePostMessage=function(e){var n=e.data.eventType,r=e.data.data;switch(n){case"SESSION_INFO":t.setSessionInfo(r);break;case"NTP":case qt.NTP:void 0!==r.delta&&t.setLocalMathineTimeDelta(r);break;case qt.END_ROOM:case qt.LEAVE_ROOM:t.destroy()}},this.setLocalMathineTimeDelta=function(e){var n=e.sessionId||e.cId||"";n&&(t.localMachineTimeDelta.set(n,e.delta),e.sessionId&&t.batch(e.sessionId),e.cId&&t.batch(e.cId))},this.setSessionInfo=function(e){t.sessionInfo=e;try{var n=new URL(e.startUrl||"");t.sessionInfo.startUrl=n.origin}catch(e){console.log(e)}},this.log=function(e){var n,r,o=t.sessionInfo.sessionId||"",i=e.cId,a=e.event_source,s=i||o;if((a===et.FullSnapshot||i)&&ai.includes(a)){if(i&&(t.incrementalSourceCountMap.has(i)||(t.incrementalSourceCountMap.set(i,new Map),t.incrementalSourceCountMap.get(i).set(a,0)),!e.source_count)){var u=t.incrementalSourceCountMap.get(i).get(a);if(t.incrementalSourceCountMap.get(i).set(a,u+1),0!==u&&Math.random()>t.sample)return;e.source_count=t.incrementalSourceCountMap.get(i).get(a)}e.cpu_state=t.cpuState;var c=t.localMachineTimeDelta.has(o)?t.localMachineTimeDelta.get(o):t.localMachineTimeDelta.get(i);if(void 0===c)return t.eventCacheListMap.has(s)||t.eventCacheListMap.set(s,[]),void t.eventCacheListMap.get(s).push(e);var _=e.detime-(e.ptime-c),E=Object.assign(Object.assign({},e),{rtt:_,session_id:t.sessionInfo.sessionId,session_region:t.sessionInfo.sessionRegion,start_url:t.sessionInfo.startUrl,sdk_version:Hn.getCoBrowsingConfig("sdkVersion")});null===(r=null===(n=t.logger)||void 0===n?void 0:n.log_2)||void 0===r||r.call(n,E)}},this.observePressure(),this.addEventListener()}return _createClass(e,[{key:"addEventListener",value:function(){window.addEventListener("message",this.handlePostMessage)}},{key:"observePressure",value:function(){var e,n=this;try{if("PressureObserver"in window&&window.location.origin===(null===(e=window.top)||void 0===e?void 0:e.location.origin))new window.PressureObserver((function(e){n.cpuState=e[e.length-1].state})).observe("cpu",{sampleInterval:1e3}).catch((function(){console.log("")}));else this.cpuState=""}catch(e){}}},{key:"batchLog",value:function(e){var n=this;(this.eventCacheListMap.get(e)||[]).forEach((function(e){n.log(e)}))}},{key:"batch",value:function(e){if(e)this.batchLog(e);else{var n,t=_createForOfIteratorHelper(this.eventCacheListMap);try{for(t.s();!(n=t.n()).done;){var r=_slicedToArray(n.value,1)[0];this.batchLog(r)}}catch(e){t.e(e)}finally{t.f()}}}},{key:"delete",value:function(e){this.localMachineTimeDelta.delete(e),this.incrementalSourceCountMap.delete(e),this.eventCacheListMap.delete(e)}},{key:"destroy",value:function(){this.localMachineTimeDelta.clear(),this.incrementalSourceCountMap.clear(),this.eventCacheListMap.clear(),this.sessionInfo={sessionId:void 0,sessionRegion:void 0,startUrl:void 0}}}]),e}();function ui(){}function ci(){ci.init.call(this)}function _i(e){return void 0===e._maxListeners?ci.defaultMaxListeners:e._maxListeners}function Ei(e,n,t,r){var o,i,a,s;if("function"!=typeof t)throw new TypeError(\'"listener" argument must be a function\');if((i=e._events)?(i.newListener&&(e.emit("newListener",n,t.listener?t.listener:t),i=e._events),a=i[n]):(i=e._events=new ui,e._eventsCount=0),a){if("function"==typeof a?a=i[n]=r?[t,a]:[a,t]:r?a.unshift(t):a.push(t),!a.warned&&(o=_i(e))&&o>0&&a.length>o){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+n+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=n,u.count=a.length,s=u,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=i[n]=t,++e._eventsCount;return e}function li(e,n,t){var r=!1;function o(){e.removeListener(n,o),r||(r=!0,t.apply(e,arguments))}return o.listener=t,o}function di(e){var n=this._events;if(n){var t=n[e];if("function"==typeof t)return 1;if(t)return t.length}return 0}function fi(e,n){for(var t=new Array(n);n--;)t[n]=e[n];return t}function Si(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e})).join("")}function Ii(e){return encodeURIComponent(e).replace(/[!\'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function Ri(e,n,t){return n="+"===e||"#"===e?Si(n):Ii(n),t?Ii(t)+"="+n:n}function gi(e){return null!=e}function Ti(e){return";"===e||"&"===e||"?"===e}function pi(e){var n=["+","#",".","/",";","?","&"];return{expand:function(t){return e.replace(/\\{([^\\{\\}]+)\\}|([^\\{\\}]+)/g,(function(e,r,o){if(r){var i=null,a=[];if(-1!==n.indexOf(r.charAt(0))&&(i=r.charAt(0),r=r.substr(1)),r.split(/,/g).forEach((function(e){var n=/([^:\\*]*)(?::(\\d+)|(\\*))?/.exec(e);a.push.apply(a,function(e,n,t,r){var o=e[t],i=[];if(gi(o)&&""!==o)if("string"==typeof o||"number"==typeof o||"boolean"==typeof o)o=o.toString(),r&&"*"!==r&&(o=o.substring(0,parseInt(r,10))),i.push(Ri(n,o,Ti(n)?t:null));else if("*"===r)Array.isArray(o)?o.filter(gi).forEach((function(e){i.push(Ri(n,e,Ti(n)?t:null))})):Object.keys(o).forEach((function(e){gi(o[e])&&i.push(Ri(n,o[e],e))}));else{var a=[];Array.isArray(o)?o.filter(gi).forEach((function(e){a.push(Ri(n,e))})):Object.keys(o).forEach((function(e){gi(o[e])&&(a.push(Ii(e)),a.push(Ri(n,o[e].toString())))})),Ti(n)?i.push(Ii(t)+"="+a.join(",")):0!==a.length&&i.push(a.join(","))}else";"===n?gi(o)&&i.push(Ii(t)):""!==o||"&"!==n&&"?"!==n?""===o&&i.push(""):i.push(Ii(t)+"=");return i}(t,i,n[1],n[2]||n[3]))})),i&&"+"!==i){var s=",";return"?"===i?s="&":"#"!==i&&(s=i),(0!==a.length?i:"")+a.join(s)}return a.join(",")}return Si(o)}))}}}new si(jo(["cbs-interaction-latency"])),ui.prototype=Object.create(null),ci.EventEmitter=ci,ci.usingDomains=!1,ci.prototype.domain=void 0,ci.prototype._events=void 0,ci.prototype._maxListeners=void 0,ci.defaultMaxListeners=10,ci.init=function(){this.domain=null,ci.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new ui,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ci.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},ci.prototype.getMaxListeners=function(){return _i(this)},ci.prototype.emit=function(e){var n,t,r,o,i,a,s,u="error"===e;if(a=this._events)u=u&&null==a.error;else if(!u)return!1;if(s=this.domain,u){if(n=arguments[1],!s){if(n instanceof Error)throw n;var c=new Error(\'Uncaught, unspecified "error" event. (\'+n+")");throw c.context=n,c}return n||(n=new Error(\'Uncaught, unspecified "error" event\')),n.domainEmitter=this,n.domain=s,n.domainThrown=!1,s.emit("error",n),!1}if(!(t=a[e]))return!1;var _="function"==typeof t;switch(r=arguments.length){case 1:!function(e,n,t){if(n)e.call(t);else for(var r=e.length,o=fi(e,r),i=0;i<r;++i)o[i].call(t)}(t,_,this);break;case 2:!function(e,n,t,r){if(n)e.call(t,r);else for(var o=e.length,i=fi(e,o),a=0;a<o;++a)i[a].call(t,r)}(t,_,this,arguments[1]);break;case 3:!function(e,n,t,r,o){if(n)e.call(t,r,o);else for(var i=e.length,a=fi(e,i),s=0;s<i;++s)a[s].call(t,r,o)}(t,_,this,arguments[1],arguments[2]);break;case 4:!function(e,n,t,r,o,i){if(n)e.call(t,r,o,i);else for(var a=e.length,s=fi(e,a),u=0;u<a;++u)s[u].call(t,r,o,i)}(t,_,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];!function(e,n,t,r){if(n)e.apply(t,r);else for(var o=e.length,i=fi(e,o),a=0;a<o;++a)i[a].apply(t,r)}(t,_,this,o)}return!0},ci.prototype.addListener=function(e,n){return Ei(this,e,n,!1)},ci.prototype.on=ci.prototype.addListener,ci.prototype.prependListener=function(e,n){return Ei(this,e,n,!0)},ci.prototype.once=function(e,n){if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');return this.on(e,li(this,e,n)),this},ci.prototype.prependOnceListener=function(e,n){if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');return this.prependListener(e,li(this,e,n)),this},ci.prototype.removeListener=function(e,n){var t,r,o,i,a;if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');if(!(r=this._events))return this;if(!(t=r[e]))return this;if(t===n||t.listener&&t.listener===n)0==--this._eventsCount?this._events=new ui:(delete r[e],r.removeListener&&this.emit("removeListener",e,t.listener||n));else if("function"!=typeof t){for(o=-1,i=t.length;i-- >0;)if(t[i]===n||t[i].listener&&t[i].listener===n){a=t[i].listener,o=i;break}if(o<0)return this;if(1===t.length){if(t[0]=void 0,0==--this._eventsCount)return this._events=new ui,this;delete r[e]}else!function(e,n){for(var t=n,r=t+1,o=e.length;r<o;t+=1,r+=1)e[t]=e[r];e.pop()}(t,o);r.removeListener&&this.emit("removeListener",e,a||n)}return this},ci.prototype.off=function(e,n){return this.removeListener(e,n)},ci.prototype.removeAllListeners=function(e){var n,t;if(!(t=this._events))return this;if(!t.removeListener)return 0===arguments.length?(this._events=new ui,this._eventsCount=0):t[e]&&(0==--this._eventsCount?this._events=new ui:delete t[e]),this;if(0===arguments.length){for(var r,o=Object.keys(t),i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new ui,this._eventsCount=0,this}if("function"==typeof(n=t[e]))this.removeListener(e,n);else if(n)do{this.removeListener(e,n[n.length-1])}while(n[0]);return this},ci.prototype.listeners=function(e){var n,t,r=this._events;return t=r&&(n=r[e])?"function"==typeof n?[n.listener||n]:function(e){for(var n=new Array(e.length),t=0;t<n.length;++t)n[t]=e[t].listener||e[t];return n}(n):[],t},ci.listenerCount=function(e,n){return"function"==typeof e.listenerCount?e.listenerCount(n):di.call(e,n)},ci.prototype.listenerCount=di,ci.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]},function(e){e.USER_ROSTER="msg_user_roster",e.ROOM_ROSTER="msg_room_roster",e.DYNAMIC_FEATURE_CHANGE="msg_dynamic_feature_change",e.SESSION_CLOSED="msg_session_closed",e.SESSION_STARTED="msg_session_started",e.SESSION_PERSISTED="msg_session_persisted",e.ERROR="msg_error",e.SESSION_CONNECTING="msg_session_connecting",e.SESSION_RECONNECTING="msg_session_reconnecting",e.RECORD_APPROVE_REQUEST="msg_record_approve_request",e.START_RECORD_RESPONSE="msg_record_started_response",e.STOP_RECORD_RESPONSE="msg_record_stopped_response",e.PAUSE_RECORD_RESPONSE="msg_record_paused_response",e.RESUME_RECORD_RESPONSE="msg_record_resumed_response",e.SOCKET_OPEN="msg_socket_open",e.RECORD_APPROVE_RESPONSE="msg_record_approve_response",e.USER_BE_HOLD_STATUS_CHANGE="msg_user_be_hold_status_change",e.REMOTE_CONTROL_REQUEST="msg_remote_control_request",e.REMOTE_CONTROL_RESPONSE="msg_remote_control_response",e.REMOTE_CONTROL_GIVE_UP="msg_remote_control_give_up",e.REMOTE_CONTROL_TAKE_BACK="msg_remote_control_take_back",e.REMOTE_CONTROL_REJECT="msg_remote_control_reject",e.REMOTE_CONTROL_CANCEL="msg_remote_control_cancel",e.LEADER_PAGE_VISIBILITY="msg_leader_page_visibility"}(Zo||(Zo={})),function(e){e.SESSION_STARTED="session_started",e.SESSION_INITED="session_inited",e.SESSION_PAUSED="session_paused",e.SESSION_RESUMED="session_resumed",e.SESSION_ENDED="session_ended",e.SESSION_LEFT="session_left",e.SESSION_CANCELING="session_canceling",e.SESSION_CONNECTING="session_connecting",e.SESSION_RECONNECTING="session_reconnecting",e.SESSION_PERSISTING="session_persisting",e.PARTICIPANT_CHANGED="participant_changed",e.AGENT_JOINED="agent_joined",e.AGENT_LEFT="agent_left",e.AGENT_DISCONNECTED="agent_disconnected",e.CUSTOMER_JOINED="customer_joined",e.CUSTOMER_LEFT="customer_left",e.CUSTOMER_DISCONNECTED="customer_disconnected",e.SESSION_ERROR="session_error",e.REMOTE_CONTROL_STATUS="remote_control_status",e.REMOTE_CONTROL_REQUEST="remote_control_request",e.REMOTE_CONTROL_RESPONSE="remote_control_response",e.REMOTE_CONTROL_GIVE_UP="remote_control_give_up",e.REMOTE_CONTROL_TAKE_BACK="remote_control_take_back",e.REMOTE_CONTROL_REJECT="remote_control_reject",e.REMOTE_CONTROL_CANCEL="remote_control_cancel",e.REMOTE_ASSIST_REQUESTED="remote_assist_requested",e.REMOTE_ASSIST_CANCELLED="remote_assist_cancelled",e.REMOTE_ASSIST_ACCEPTED="remote_assist_accepted",e.REMOTE_ASSIST_REJECTED="remote_assist_rejected",e.REMOTE_ASSIST_STARTED="remote_assist_started",e.REMOTE_ASSIST_STOPPED="remote_assist_stopped",e.PINCODE_UPDATED="pincode_updated",e.RECORD_STARTED="record_started",e.RECORD_STOPPED="record_stopped",e.RECORD_PAUSED="record_paused",e.RECORD_RESUMED="record_resumed",e.ORIGIN_UPDATED="origin_updated",e.START_REPLAY="start_replay",e.CURRENT_USER_TRANSFER="current_user_transfer",e.CUSTOMER_FOCUS_LOST="customer_focus_lost",e.CUSTOMER_TRANSFERRED="customer_transferred",e.DYNAMIC_FEATURE_CHANGE="dynamic_feature_change"}(Xo||(Xo={})),function(e){e.COM_DESK="com-desk",e.COM_VIEWER="com-viewer",e.COM_BYOP_DESK="com_byop_desk"}(qo||(qo={})),function(e){e[e.Normal=0]="Normal",e[e.AgentReconnectFailed=1]="AgentReconnectFailed",e[e.CustomerReconnectFailed=2]="CustomerReconnectFailed",e[e.CustomerEnded=3]="CustomerEnded"}(Qo||(Qo={})),function(e){e[e.Voice=1]="Voice",e[e.Chat=2]="Chat",e[e.VideoInbound=3]="VideoInbound",e[e.VideoOutbound=4]="VideoOutbound"}($o||($o={})),function(e){e.tabFollowingWaitTransferringCustomer="tabFollowingWaitTransferringCustomer",e.tabFollowingTransferringFailedCustomer="tabFollowingTransferringFailedCustomer",e.tabFollowingTransferringFailedAgent="tabFollowingTransferringFailedAgent"}(ei||(ei={})),function(e){e.NOT_CREATED="session_not_created",e.RECOVERABLE="session_recoverable",e.STARTED="session_started",e.CONNECT_FAILED="connect_failed",e.CONNECTING="session_connecting",e.CANCELING="session_canceling",e.RECONNECTING="session_reconnecting",e.CAN_PERSIST="session_can_persist",e.PERSISTING="session_persisting"}(ni||(ni={})),function(e){e.UNKNOWN="unknown"}(ti||(ti={})),function(e){e.UNKNOWN="unknown",e.NO_ROOT_DOM="no_root_dom"}(ri||(ri={})),function(e){e.START="START",e.JOIN="JOIN",e.AUTO="AUTO",e.PERSIST="PERSIST"}(oi||(oi={})),function(e){e.RECONNECTING="reconnecting",e.PERSISTING="persisting"}(ii||(ii={}));var Oi,Ci,hi,Ni,Ai,Di,vi,mi,yi,Pi,bi,Li,wi,Mi;!function(e){e.zcc="zcc",e.common="common"}(Oi||(Oi={})),function(e){e[e.NoAction=0]="NoAction",e[e.Accept=1]="Accept",e[e.Decline=2]="Decline",e[e.Leave=3]="Leave"}(Ci||(Ci={})),function(e){e[e.END_ROOM=41e3]="END_ROOM",e[e.DESTROY_DEACTIVE_ROOM=41001]="DESTROY_DEACTIVE_ROOM",e[e.DESTROY_SLEEP_ROOM=41002]="DESTROY_SLEEP_ROOM",e[e.DESTROY_NO_VALID_OPERATION_ROOM=41003]="DESTROY_NO_VALID_OPERATION_ROOM",e[e.END_DEACTIVE_ROOM=10001]="END_DEACTIVE_ROOM"}(hi||(hi={})),function(e){e.END_SESSION="end_session",e.DEACTIVE_SESSION="deactive_session",e.CANCEL_SESSION="cancel_session"}(Ni||(Ni={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},hi.END_ROOM,Ni.END_SESSION),hi.DESTROY_DEACTIVE_ROOM,Ni.DEACTIVE_SESSION),hi.DESTROY_SLEEP_ROOM,Ni.DEACTIVE_SESSION),hi.END_DEACTIVE_ROOM,Ni.DEACTIVE_SESSION),hi.DESTROY_NO_VALID_OPERATION_ROOM,Ni.DEACTIVE_SESSION),function(e){e[e.LEAVE_ROOM=4e4]="LEAVE_ROOM",e[e.DISCONNECTED=40001]="DISCONNECTED"}(Ai||(Ai={})),function(e){e.LEAVE_SESSION="leave_session",e.DISCONNECT_SESSION="disconnect_session"}(Di||(Di={})),_defineProperty(_defineProperty({},Ai.LEAVE_ROOM,Di.LEAVE_SESSION),Ai.DISCONNECTED,Di.DISCONNECT_SESSION),function(e){e.CUSTOMER_END_COBROWSE="Customer has left the Cobrowse session.",e.AGENT_END_COBROWSE="Agent has left the Cobrowse session.",e.END_COBROWSE_CC="THE_COBROWSE_SESSION_HAS_BEEN_ENDED",e.CUSTOMER_TRANSFERRED="The session has been transferred to this page."}(vi||(vi={})),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.CC_UI_SESSION_END=1]="CC_UI_SESSION_END"}(mi||(mi={})),function(e){e.RECONNECTING_SESSION="Reconnecting Cobrowse session. Please wait....",e.CONNECTING_SESSION="Joining Cobrowse session...",e.UNABLE_JOIN_SESSION_TITLE="Unable to join the Cobrowse session",e.FAILED_RECONNECT_SESSION_TITLE="Failed to reconnect to the Cobrowse session",e.FAILED_RECONNECT_SESSION_CONTENT="The Cobrowse session has ended automatically due to failed reconnection. Please check your network connection and restart the session.",e.ENDED_RECONNECT_SESSION_TITLE="Cobrowse session has ended",e.RECONNECTING_SESSION_CC="RECONNECTING_COBROWSE",e.CONNECTING_SESSION_CC="JOINING_COBROWSE_SESSION",e.UNABLE_JOIN_SESSION_TITLE_CC="UNABLE_JOIN_SESSION_TITLE",e.FAILED_RECONNECT_SESSION_TITLE_CC="FAILED_RECONNECT_SESSION_TITLE",e.FAILED_RECONNECT_SESSION_CONTENT_CC="FAILED_RECONNECT_SESSION_CONTENT",e.ENDED_RECONNECT_SESSION_TITLE_CC="ENDED_RECONNECT_SESSION_TITLE",e.TRANSFER_FAILED_ERROR_TITLE="Failed to transfer to new tab"}(yi||(yi={})),function(e){e.TRANSFER_FAILED_ERROR_TIPS="Failed to transfer to new tab,Please return to the previous tab and have a try again."}(Pi||(Pi={})),function(e){e.RECONNECTING_SESSION="Reconnecting Cobrowse session...",e.CONNECTING_SESSION="Connecting to Cobrowse session...",e.GIVE_CONSUMER_CODE="Give the pairing code to your consumer to join:",e.COBROWSE_PIN_CODE="Cobrowse code",e.COBROWSE_PIN_CODE_TIPS="Please inform the following pin code to your support agent, your agent and you will browse this page together.",e.COBROWSE_PIN_CODE_TIPS_MOBILE="Please give this code to your agent.",e.GIVE_CONSUMER_CODE_CC="GIVE_CONSUMER_CODE",e.COBROWSE_PIN_CODE_ERROR_TITLE="Unable to generate pin code",e.COBROWSE_PIN_CODE_ERROR_TIPS="Unable to generate pin code. Please try again later."}(bi||(bi={})),function(e){e.WAIT_CONSUMER="WAIT_CONSUMER"}(Li||(Li={})),function(e){e.SESSION_TIMER="SESSION_TIMER",e.AUTO_END_SESSION="AUTO_END_SESSION",e.RECONNECTING_SESSION_CC="RECONNECTING_COBROWSE",e.CONNECTING_SESSION_CC="CONNECTING_TO_COBROWSE_SESSION",e.CAN_NOT_RECEIVE_INVITE_SESSION_CC="CAN_NOT_RECEIVE_INVITE_SESSION",e.JOIN_WITH_PAIRING_CODE="JOIN_WITH_PAIRING_CODE",e.BACK_TO_VIDEO_CALL="BACK_TO_VIDEO_CALL"}(wi||(wi={})),function(e){e.Cookies="cookie",e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.All="all"}(Mi||(Mi={}));var Fi,Ui,ki="/sdkapi/zcb/frame-templates/desk",Bi="/sdkapi/zcb/frame-templates/viewer";!function(e){e.CustomerFloatingToolbar="customerFloatingToolbar",e.CustomerFloatingToolbarIcon="customerFloatingToolbarIcon",e.CustomerFloatingToolbarText="customerFloatingToolbarText",e.CustomerFloatingToolbarButton="customerFloatingToolbarButton",e.CustomerFloatingToolbarButtonPrefixIcon="customerFloatingToolbarButtonPrefixIcon",e.CustomerScreenBorder="customerScreenBorder",e.CustomerAnnotationToolbarMouseButton="customerAnnotationToolbarMouseButton",e.CustomerAnnotationToolbarVanishingPenButton="customerAnnotationToolbarVanishingPenButton",e.CustomerAnnotationToolbarPenButton="customerAnnotationToolbarPenButton",e.CustomerAnnotationToolbarVanishingRectangleButton="customerAnnotationToolbarVanishingRectangleButton",e.CustomerAnnotationToolbarRectangleButton="customerAnnotationToolbarRectangleButton",e.CustomerAnnotationToolbarEraserButton="customerAnnotationToolbarEraserButton",e.CustomerAnnotationToolbarColorButton="customerAnnotationToolbarColorButton",e.CustomerAnnotationToolbarClearButton="customerAnnotationToolbarClearButton",e.CustomerAnnotationToolbarCloseButton="customerAnnotationToolbarCloseButton",e.CustomerAnnotationToolbarOpenButton="customerAnnotationToolbarOpenButton",e.CustomerJoinSessionDialogOverall="customerJoinSessionDialogOverall",e.CustomerJoinSessionDialogTitle="customerJoinSessionDialogTitle",e.CustomerJoinSessionDialogTitleContent="customerJoinSessionDialogTitleContent",e.CustomerJoinSessionDialogTitleIcon="customerJoinSessionDialogTitleIcon",e.CustomerJoinSessionDialogTopRightCloseButton="customerJoinSessionDialogTopRightCloseButton",e.CustomerJoinSessionDialogLoadingPinCodeIcon="customerJoinSessionDialogLoadingPinCodeIcon",e.CustomerJoinSessionDialogPinCodeTipText="customerJoinSessionDialogPinCodeTipText",e.CustomerJoinSessionDialogPinCodeContent="customerJoinSessionDialogPinCodeContent",e.CustomerJoinSessionDialogFooterContainer="customerJoinSessionDialogFooterContainer",e.CustomerJoinSessionDialogCancelButton="customerJoinSessionDialogCancelButton",e.CustomerEndSessionDialogOverall="customerEndSessionDialogOverall",e.CustomerEndSessionDialogTitleContainer="customerEndSessionDialogTitleContainer",e.CustomerEndSessionDialogContentContainer="customerEndSessionDialogContentContainer",e.CustomerEndSessionDialogFooterContainer="customerEndSessionDialogFooterContainer",e.CustomerEndSessionDialogTitleContent="customerEndSessionDialogTitleContent",e.CustomerEndSessionDialogTitleIcon="customerEndSessionDialogTitleIcon",e.CustomerEndSessionDialogTextContent="customerEndSessionDialogTextContent",e.CustomerEndSessionDialogTopRightCloseButton="customerEndSessionDialogTopRightCloseButton",e.CustomerEndSessionDialogCancelButton="customerEndSessionDialogCancelButton",e.CustomerEndSessionDialogEndSessionButton="customerEndSessionDialogEndSessionButton",e.CustomerReconnectDialogOverall="customerReconnectDialogOverall",e.CustomerReconnectDialogContentContainer="customerReconnectDialogContentContainer",e.CustomerReconnectDialogFooterContainer="customerReconnectDialogFooterContainer",e.CustomerReconnectDialogLoadingIcon="customerReconnectDialogLoadingIcon",e.CustomerReconnectDialogTextContent="customerReconnectDialogTextContent",e.CustomerReconnectDialogCloseButton="customerReconnectDialogCloseButton",e.CustomerReconnectDialogCloseButtonPrefixIcon="customerReconnectDialogCloseButtonPrefixIcon",e.CustomerConnectDialogOverall="customerConnectDialogOverall",e.CustomerConnectDialogContentContainer="customerConnectDialogContentContainer",e.CustomerConnectDialogFooterContainer="customerConnectDialogFooterContainer",e.CustomerConnectDialogLoadingIcon="customerConnectDialogLoadingIcon",e.CustomerConnectDialogTextContent="customerConnectDialogTextContent",e.CustomerConnectDialogCloseButton="customerConnectDialogCloseButton",e.CustomerConnectDialogCloseButtonPrefixIcon="customerConnectDialogCloseButtonPrefixIcon",e.CustomerJoinFailedDialogOverall="customerJoinFailedDialogOverall",e.CustomerJoinFailedDialogTitleContainer="customerJoinFailedDialogTitleContainer",e.CustomerJoinFailedDialogContentContainer="customerJoinFailedDialogContentContainer",e.CustomerJoinFailedDialogFooterContainer="customerJoinFailedDialogFooterContainer",e.CustomerJoinFailedDialogTitleContent="customerJoinFailedDialogTitleContent",e.CustomerJoinFailedDialogTitleIcon="customerJoinFailedDialogTitleIcon",e.CustomerJoinFailedDialogTextContent="customerJoinFailedDialogTextContent",e.CustomerJoinFailedDialogTextSecondaryContent="customerJoinFailedDialogTextSecondaryContent",e.CustomerJoinFailedDialogOkButton="customerJoinFailedDialogOkButton",e.CustomerTransferFailedTitleContent="CustomerTransferFailedTitleContent",e.CustomerTransferFailedTextSecondaryContent="CustomerTransferFailedTextSecondaryContent",e.CustomerTransferFailedOkButton="CustomerTransferFailedOkButton",e.CustomerReconnectFailedDialogOverall="customerReconnectFailedDialogOverall",e.CustomerReconnectFailedDialogTitleContainer="customerReconnectFailedDialogTitleContainer",e.CustomerReconnectFailedDialogContentContainer="customerReconnectFailedDialogContentContainer",e.CustomerReconnectFailedDialogFooterContainer="customerReconnectFailedDialogFooterContainer",e.CustomerReconnectFailedDialogTitleContent="customerReconnectFailedDialogTitleContent",e.CustomerReconnectFailedDialogTitleIcon="customerReconnectFailedDialogTitleIcon",e.CustomerReconnectFailedDialogTextContent="customerReconnectFailedDialogTextContent",e.CustomerReconnectFailedDialogTextSecondaryContent="customerReconnectFailedDialogTextSecondaryContent",e.CustomerReconnectFailedDialogOkButton="customerReconnectFailedDialogOkButton",e.CustomerReconnectTimeoutDialogOverall="customerReconnectTimeoutDialogOverall",e.CustomerReconnectTimeoutDialogTitleContainer="customerReconnectTimeoutDialogTitleContainer",e.CustomerReconnectTimeoutDialogContentContainer="customerReconnectTimeoutDialogContentContainer",e.CustomerReconnectTimeoutDialogFooterContainer="customerReconnectTimeoutDialogFooterContainer",e.CustomerReconnectTimeoutDialogTitleContent="customerReconnectTimeoutDialogTitleContent",e.CustomerReconnectTimeoutDialogTitleIcon="customerReconnectTimeoutDialogTitleIcon",e.CustomerReconnectTimeoutDialogTextContent="customerReconnectTimeoutDialogTextContent",e.CustomerReconnectTimeoutDialogTextSecondaryContent="customerReconnectTimeoutDialogTextSecondaryContent",e.CustomerReconnectTimeoutDialogOkButton="customerReconnectTimeoutDialogOkButton",e.CustomerReconnectTimeoutDialogTopRightCloseButton="customerReconnectTimeoutDialogTopRightCloseButton",e.CustomerDisconnectDialogOverall="customerDisconnectDialogOverall",e.CustomerDisconnectDialogContentContainer="customerDisconnectDialogContentContainer",e.CustomerDisconnectDialogFooterContainer="customerDisconnectDialogFooterContainer",e.CustomerDisconnectDialogLoadingIcon="customerDisconnectDialogLoadingIcon",e.CustomerDisconnectDialogFirstLineTextContent="customerDisconnectDialogFirstLineTextContent",e.CustomerDisconnectDialogSecondLineTextContent="customerDisconnectDialogSecondLineTextContent",e.CustomerDisconnectDialogPinCode="customerDisconnectDialogPinCode",e.CustomerDisconnectDialogEndButton="customerDisconnectDialogCloseButton",e.CustomerDisconnectDialogEndButtonPrefixIcon="customerDisconnectDialogCloseButtonPrefixIcon",e.CustomerToastSuccessPrefixIcon="customerToastSuccessPrefixIcon",e.CustomerToastSuccessWrapper="customerToastSuccessWrapper",e.CustomerToastErrorPrefixIcon="customerToastErrorPrefixIcon",e.CustomerToastErrorWrapper="customerToastErrorWrapper",e.CustomerToastWarningPrefixIcon="customerToastWarningPrefixIcon",e.CustomerToastWarningWrapper="customerToastWarningWrapper",e.CustomerToastDefaultPrefixIcon="customerToastDefaultPrefixIcon",e.CustomerToastDefaultWrapper="customerToastDefaultWrapper",e.CustomerToastInfoPrefixIcon="customerToastInfoPrefixIcon",e.CustomerToastInfoWrapper="customerToastInfoWrapper",e.AgentToolbarVerticalWrapper="agentToolbarVerticalWrapper",e.AgentToolbarHorizontalWrapper="agentToolbarHorizontalWrapper",e.AgentToolbarAllowRotation="agentToolbarAllowRotation",e.AgentToolbarDefaultVertical="agentToolbarDefaultVertical",e.AgentToolbarVerticalNormalBtnsWrapper="agentToolbarVerticalNormalBtnsWrapper",e.AgentToolbarHorizontalNormalBtnsWrapper="agentToolbarHorizontalNormalBtnsWrapper",e.AgentToolbarButtonCommon="agentToolbarButtonCommon",e.AgentToolbarButtonActiveCommon="agentToolbarButtonActiveCommon",e.AgentToolbarTooltipCommon="agentToolbarTooltipCommon",e.AgentToolbarVerticalDivider="agentToolbarVerticalDivider",e.AgentToolbarHorizontalDivider="agentToolbarHorizontalDivider",e.AgentToolbarZoomInButton="agentToolbarZoomInButton",e.AgentToolbarZoomInIcon="agentToolbarZoomInIcon",e.AgentToolbarZoomOutButton="agentToolbarZoomOutButton",e.AgentToolbarZoomOutIcon="agentToolbarZoomOutIcon",e.AgentToolbarZoomMenuButton="agentToolbarZoomMenuButton",e.AgentToolbarZoomMenuIcon="agentToolbarZoomMenuIcon",e.AgentToolbarFullScreenButton="agentToolbarFullScreenButton",e.AgentToolbarFullScreenIcon="agentToolbarFullScreenIcon",e.AgentToolbarExitFullScreenButton="agentToolbarExitFullScreenButton",e.AgentToolbarExitFullScreenIcon="agentToolbarExitFullScreenIcon",e.AgentToolbarVanishingPenButton="agentToolbarVanishingPenButton",e.AgentToolbarVanishingPenIcon="agentToolbarVanishingPenIcon",e.AgentToolbarPenButton="agentToolbarPenButton",e.AgentToolbarPenIcon="agentToolbarPenIcon",e.AgentToolbarEndSessionButton="agentToolbarEndSessionButton",e.AgentToolbarEndSessionIcon="agentToolbarEndSessionIcon",e.AgentToolbarRemoteAssistIcon="agentToolbarRemoteAssistIcon",e.AgentVanishingPenSubMenuVerticalWrapper="agentVanishingPenSubMenuVerticalWrapper",e.AgentVanishingPenSubMenuHorizontalWrapper="agentVanishingPenSubMenuHorizontalWrapper",e.AgentVanishingPenSubMenuButtonCommon="agentVanishingPenSubMenuButtonCommon",e.AgentVanishingPenMenuButtonActiveCommon="agentVanishingPenSubMenuButtonActiveCommon",e.AgentVanishingPenSubMenuMouseButton="agentVanishingPenSubMenuMouseButton",e.AgentVanishingPenSubMenuMouseIcon="agentVanishingPenSubMenuMouseIcon",e.AgentVanishingPenSubMenuVanishingPenButton="agentVanishingPenSubMenuVanishingPenButton",e.AgentVanishingPenSubMenuVanishingPenIcon="agentVanishingPenSubMenuVanishingPenIcon",e.AgentVanishingPenSubMenuVanishingRectangleButton="agentVanishingPenSubMenuVanishingRectangleButton",e.AgentVanishingPenSubMenuVanishingRectangleIcon="agentVanishingPenSubMenuVanishingRectangleIcon",e.AgentVanishingPenSubMenuVanishingColorButton="agentVanishingPenSubMenuVanishingColorButton",e.AgentVanishingPenSubMenuVanishingColorIcon="agentVanishingPenSubMenuVanishingColorIcon",e.AgentPenAnnotationSubMenuVerticalWrapper="agentPenAnnotationSubMenuVerticalWrapper",e.AgentPenAnnotationSubMenuHorizontalWrapper="agentPenAnnotationSubMenuHorizontalWrapper",e.AgentPenAnnotationSubMenuButtonCommon="agentPenAnnotationSubMenuButtonCommon",e.AgentPenAnnotationSubMenuButtonActiveCommon="agentPenAnnotationSubMenuButtonActiveCommon",e.AgentPenAnnotationSubMenuMouseButton="agentPenAnnotationSubMenuMouseButton",e.AgentPenAnnotationSubMenuMouseIcon="agentPenAnnotationSubMenuMouseIcon",e.AgentPenAnnotationSubMenuPenButton="agentPenAnnotationSubMenuPenButton",e.AgentPenAnnotationSubMenuPenIcon="agentPenAnnotationSubMenuPenIcon",e.AgentPenAnnotationSubMenuRectangleButton="agentPenAnnotationSubMenuRectangleButton",e.AgentPenAnnotationSubMenuRectangleIcon="agentPenAnnotationSubMenuRectangleIcon",e.AgentPenAnnotationSubMenuEraserButton="agentPenAnnotationSubMenuEraserButton",e.AgentPenAnnotationSubMenuEraserIcon="agentPenAnnotationSubMenuEraserIcon",e.AgentPenAnnotationSubMenuColorButton="agentPenAnnotationSubMenuColorButton",e.AgentPenAnnotationSubMenuColorIcon="agentPenAnnotationSubMenuColorIcon",e.AgentPenAnnotationSubMenuUndoButton="agentPenAnnotationSubMenuUndoButton",e.AgentPenAnnotationSubMenuUndoIcon="agentPenAnnotationSubMenuUndoIcon",e.AgentPenAnnotationSubMenuRedoButton="agentPenAnnotationSubMenuRedoButton",e.AgentPenAnnotationSubMenuRedoIcon="agentPenAnnotationSubMenuRedoIcon",e.AgentPenAnnotationSubMenuClearButton="agentPenAnnotationSubMenuClearButton",e.AgentPenAnnotationSubMenuClearIcon="agentPenAnnotationSubMenuClearIcon",e.AgentPenSubMenuVerticalWrapper="agentPenSubMenuVerticalWrapper",e.AgentPenSubMenuHorizontalWrapper="agentPenSubMenuHorizontalWrapper",e.AgentPenSubMenuButtonCommon="agentPenSubMenuButtonCommon",e.AgentPenSubMenuButtonActiveCommon="agentPenSubMenuButtonActiveCommon",e.AgentPenSubMenuDrawText="agentPenSubMenuDrawText",e.AgentPenSubMenuLineWidthText="agentPenSubMenuLineWidthText",e.AgentColorSubMenuVerticalWrapper="agentColorSubMenuVerticalWrapper",e.AgentColorSubMenuHorizontalWrapper="agentColorSubMenuHorizontalWrapper",e.AgentColorSubMenuButtonCommon="agentColorSubMenuButtonCommon",e.AgentColorSubMenuActiveButtonCommon="agentColorSubMenuActiveButtonCommon",e.AgentZoomInOutMenuVerticalWrapper="agentZoomInOutMenuVerticalWrapper",e.AgentZoomInOutMenuHorizontalWrapper="agentZoomInOutMenuHorizontalWrapper",e.AgentZoomInOutMenuRoot="agentZoomInOutMenuRoot",e.AgentZoomInOutMenuItem="agentZoomInOutMenuItem",e.AgentZoomInOutMenuItemFitToWindow="agentZoomInOutMenuItemFitToWindow",e.AgentZoomInOutMenuItemActualSize="agentZoomInOutMenuItemActualSize",e.AgentSingleAgentEndSessionDialogOverall="agentSingleAgentEndSessionDialogOverall",e.AgentSingleAgentEndSessionDialogTitleContainer="agentSingleAgentEndSessionDialogTitleContainer",e.AgentSingleAgentEndSessionDialogContentContainer="agentSingleAgentEndSessionDialogContentContainer",e.AgentSingleAgentEndSessionDialogFooterContainer="agentSingleAgentEndSessionDialogFooterContainer",e.AgentSingleAgentEndSessionDialogTitleIcon="agentSingleAgentEndSessionDialogTitleIcon",e.AgentSingleAgentEndSessionDialogTitleContent="agentSingleAgentEndSessionDialogTitleContent",e.AgentSingleAgentEndSessionDialogTextContent="agentSingleAgentEndSessionDialogTextContent",e.AgentSingleAgentEndSessionDialogTopRightCloseButton="agentSingleAgentEndSessionDialogTopRightCloseButton",e.AgentSingleAgentEndSessionDialogCancelButton="agentSingleAgentEndSessionDialogCancelButton",e.AgentSingleAgentEndSessionDialogEndSessionButton="agentSingleAgentEndSessionDialogEndSessionButton",e.AgentMultiAgentsEndSessionDialogOverall="agentMultiAgentsEndSessionDialogOverall",e.AgentMultiAgentsEndSessionDialogTitleContainer="agentMultiAgentsEndSessionDialogTitleContainer",e.AgentMultiAgentsEndSessionDialogContentContainer="agentMultiAgentsEndSessionDialogContentContainer",e.AgentMultiAgentsEndSessionDialogFooterContainer="agentMultiAgentsEndSessionDialogFooterContainer",e.AgentMultiAgentsEndSessionDialogTitleIcon="agentMultiAgentsEndSessionDialogTitleIcon",e.AgentMultiAgentsEndSessionDialogTitleContent="agentMultiAgentsEndSessionDialogTitleContent",e.AgentMultiAgentsEndSessionDialogTextContent="agentMultiAgentsEndSessionDialogTextContent",e.AgentMultiAgentsEndSessionDialogTopRightCloseButton="agentMultiAgentsEndSessionDialogTopRightCloseButton",e.AgentMultiAgentsEndSessionDialogCancelButton="agentMultiAgentsEndSessionDialogCancelButton",e.AgentMultiAgentsEndSessionDialogLeaveSessionButton="agentMultiAgentsEndSessionDialogLeaveSessionButton",e.AgentMultiAgentsEndSessionDialogEndSessionButton="agentMultiAgentsEndSessionDialogEndSessionButton",e.AgentJoinFailedDialogOverall="agentJoinFailedDialogOverall",e.AgentJoinFailedDialogTitleContainer="agentJoinFailedDialogTitleContainer",e.AgentJoinFailedDialogContentContainer="agentJoinFailedDialogContentContainer",e.AgentJoinFailedDialogFooterContainer="agentJoinFailedDialogFooterContainer",e.AgentJoinFailedDialogTitleIcon="agentJoinFailedDialogTitleIcon",e.AgentJoinFailedDialogTitleContent="agentJoinFailedDialogTitleContent",e.AgentJoinFailedDialogTextContent="agentJoinFailedDialogTextContent",e.AgentJoinFailedDialogTopRightCloseButton="agentJoinFailedDialogTopRightCloseButton",e.AgentJoinFailedDialogOkButton="agentJoinFailedDialogOkButton",e.AgentFloatingPinToolbarWrapper="agentFloatingPinToolbarWrapper",e.AgentFloatingPinToolbarPrefixIcon="agentFloatingPinToolbarPrefixIcon",e.AgentFloatingPinToolbarContentText="agentFloatingPinToolbarContentText",e.AgentFloatingPinToolbarCopyIcon="agentFloatingPinToolbarCopyIcon",e.AgentToastSuccessPrefixIcon="agentToastSuccessPrefixIcon",e.AgentToastSuccessWrapper="agentToastSuccessWrapper",e.AgentToastErrorPrefixIcon="agentToastErrorPrefixIcon",e.AgentToastErrorWrapper="agentToastErrorWrapper",e.AgentToastWarningPrefixIcon="agentToastWarningPrefixIcon",e.AgentToastWarningWrapper="agentToastWarningWrapper",e.AgentToastDefaultPrefixIcon="agentToastDefaultPrefixIcon",e.AgentToastDefaultWrapper="agentToastDefaultWrapper",e.AgentToastInfoPrefixIcon="agentToastInfoPrefixIcon",e.AgentToastInfoWrapper="agentToastInfoWrapper"}(Fi||(Fi={})),function(e){e.SESSION_PRE_INIT="session_pre_init",e.SESSION_JOINED="session_joined",e.SESSION_LEFT="session_left",e.SESSION_ENDED="session_ended",e.SESSION_ERROR="session_error",e.REMOTE_ASSIST_ACCEPTED="remote_assist_accepted",e.REMOTE_ASSIST_REJECTED="remote_assist_rejected",e.REMOTE_ASSIST_STARTED="remote_assist_started",e.REMOTE_ASSIST_STOPPED="remote_assist_stopped"}(Ui||(Ui={}));var xi,Vi=[Ui.SESSION_PRE_INIT,Ui.SESSION_JOINED,Ui.SESSION_LEFT,Ui.SESSION_ENDED,Ui.SESSION_ERROR,Ui.REMOTE_ASSIST_ACCEPTED,Ui.REMOTE_ASSIST_REJECTED,Ui.REMOTE_ASSIST_STARTED,Ui.REMOTE_ASSIST_STOPPED];!function(e){e.SEND_SESSION_OPTIONS="send_session_options",e.START_REMOTE_ASSIST="start_remote_assist",e.STOP_REMOTE_ASSIST="stop_remote_assist"}(xi||(xi={})),xi.SEND_SESSION_OPTIONS,xi.START_REMOTE_ASSIST,xi.STOP_REMOTE_ASSIST;var Wi;Object.assign(Object.assign({},{createLinearGradient:!0,createRadialGradient:!0,createConicGradient:!0}),{createPattern:!0}),function(e){e[e.REFRESH_PIN_CODE_FAILED=10002]="REFRESH_PIN_CODE_FAILED",e[e.CONNECT_TIMEOUT_FAILED=10012]="CONNECT_TIMEOUT_FAILED",e[e.OTHER_SIDE_RECONNECT_TIMEOUT_FAILED=10013]="OTHER_SIDE_RECONNECT_TIMEOUT_FAILED",e[e.USER_EXIT_BEFORE_SESSION=10022]="USER_EXIT_BEFORE_SESSION"}(Wi||(Wi={}));var Gi,Hi={PIN_UPDATE_FAILED:"Pincode update failed"},Ji={CONNECT_TIMEOUT_FAILED:"Session connect timeout."};_defineProperty(_defineProperty({},Wi.CONNECT_TIMEOUT_FAILED,Ji.CONNECT_TIMEOUT_FAILED),Wi.REFRESH_PIN_CODE_FAILED,Hi.PIN_UPDATE_FAILED),function(e){e[e.CANCEL_END_ROOM=1]="CANCEL_END_ROOM",e[e.CANCEL_LEAVE_ROOM=2]="CANCEL_LEAVE_ROOM"}(Gi||(Gi={}));var Yi="Canceled and ended session.",ji="Canceled and left session.";_defineProperty(_defineProperty({},Gi.CANCEL_END_ROOM,Yi),Gi.CANCEL_LEAVE_ROOM,ji);var Ki,zi={INVALID_URL:"The website link is invalid.",ACCOUNT_NO_CREDITS:"Free trial account has no available credits."},Zi={CONNECTING:"A connection is already in progress.",PERSISTING:" A transfer session is still recovering."},Xi={NOT_FOUND:"Session does not exist or has ended."},qi={LIMIT:"A session is already active."},Qi={PIN_NOT_FOUND:"Pincode is not found."},$i={PIN_EXPIRED:"Pincode has expired."},ea={PIN_INVALID_LENGTH:"Pincode exceeds the maximum length",PIN_INVALID_CHARACTERS:"Pincode contains invalid characters."},na={PIN_REQUIRED:"Pincode is required."},ta={PIN_CONFLICT:"Pincode has already been used."},ra={INTERNAL_ERROR:"Session join failed due to an internal error.",SDK_INVALID:"SDK version is invalid.",SESSION_NOT_FOUND:"Session does not exist or has ended.",INVALID_URL:"The website link is invalid.",RECONNECT_FAILED:"Failed to make a connection after multiple attempts.",FAIL_OVER_FAILED:"Failed to reconnect after fail over with multiple attempts."},oa={CUSTOMER_LIMIT:"Maximum number of customers in a session reached."},ia={AGENT_LIMIT:"Maximum number of agents in a session reached."},aa={DUPLICATE_AGENT:"The agent is already in the session."},sa={NETWORK_REQUEST_FAILED:"Network request to backend failed after multiple attempts."},ua={CANCELING:"Operation failed, the session is being canceled."},ca={JWT_INVALID:"JWT token is invalid.",JWT_NO_PERMISSIONS:"JWT token has no permissions.",JWT_EXPIRED:"JWT token has expired.",JWT_ACCESS_ERROR:"JWT token access error.",INTERNAL_ERROR:"Internal token error."},_a={SERVICE_ERROR:"Service error occurred.",API_RATE_LIMIT:"API request rate limit, try again later.",SESSION_ERROR:"Session error occurred.",SESSION_ERROR_WITH_RETRY:"Session error occurred, try again later."};!function(e){e[e.WEB_REPORT_REGION_FAILED=40100]="WEB_REPORT_REGION_FAILED",e[e.WEB_REPORT_REGION_NOT_MATCH=40101]="WEB_REPORT_REGION_NOT_MATCH",e[e.WEB_REPORT_USER_JOIN_FAILED=40102]="WEB_REPORT_USER_JOIN_FAILED",e[e.WEB_REPORT_USER_JOIN_EMPTY=40103]="WEB_REPORT_USER_JOIN_EMPTY",e[e.WEB_REPORT_USER_JOIN_EMPTY_USER=40104]="WEB_REPORT_USER_JOIN_EMPTY_USER",e[e.AUTH_CONFLICT=40200]="AUTH_CONFLICT",e[e.AUTH_VERIFY_FAILED=40201]="AUTH_VERIFY_FAILED",e[e.AUTH_DB_QUERY_ERROR=40202]="AUTH_DB_QUERY_ERROR",e[e.ROOM_NOT_EXIST=40210]="ROOM_NOT_EXIST",e[e.ROOM_ADD_USER_FAILED=40211]="ROOM_ADD_USER_FAILED",e[e.SESSION_ALREADY_ENDED=40214]="SESSION_ALREADY_ENDED",e[e.ROOM_DEPRECATED=40216]="ROOM_DEPRECATED",e[e.ROOM_ID_MISSING=40300]="ROOM_ID_MISSING",e[e.AUTH_PAYLOAD_MISSING=40301]="AUTH_PAYLOAD_MISSING",e[e.START_URL_INVALID=40302]="START_URL_INVALID",e[e.META_DATA_INVALID=40402]="META_DATA_INVALID",e[e.WSSGW_INSTANCE_NOT_FOUND=40403]="WSSGW_INSTANCE_NOT_FOUND",e[e.LEADER_CONFLICT=40212]="LEADER_CONFLICT",e[e.REACHED_LEADER_LIMIT=40217]="REACHED_LEADER_LIMIT",e[e.FOLLOWER_CONFLICT=40215]="FOLLOWER_CONFLICT",e[e.REACHED_FOLLOWER_LIMIT=40218]="REACHED_FOLLOWER_LIMIT",e[e.USER_CONFLICT=40213]="USER_CONFLICT",e[e.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE=40501]="MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE",e[e.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION=40502]="MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION",e[e.LEAVE_ROOM=4e4]="LEAVE_ROOM",e[e.DISCONNECTED=40001]="DISCONNECTED",e[e.END_ROOM=41e3]="END_ROOM",e[e.DESTROY_DEACTIVE_ROOM=41001]="DESTROY_DEACTIVE_ROOM",e[e.DESTROY_SLEEP_ROOM=41002]="DESTROY_SLEEP_ROOM",e[e.DESTROY_NO_VALID_OPERATION_ROOM=41003]="DESTROY_NO_VALID_OPERATION_ROOM",e[e.SAME_LEADER_JOINED=40219]="SAME_LEADER_JOINED"}(Ki||(Ki={}));var Ea,la={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(la,Ki.WEB_REPORT_REGION_FAILED,ra.INTERNAL_ERROR),Ki.WEB_REPORT_REGION_NOT_MATCH,ra.INTERNAL_ERROR),Ki.WEB_REPORT_USER_JOIN_FAILED,ra.INTERNAL_ERROR),Ki.WEB_REPORT_USER_JOIN_EMPTY,ra.INTERNAL_ERROR),Ki.WEB_REPORT_USER_JOIN_EMPTY_USER,ra.INTERNAL_ERROR),Ki.AUTH_CONFLICT,ra.INTERNAL_ERROR),Ki.AUTH_VERIFY_FAILED,ra.INTERNAL_ERROR),Ki.AUTH_DB_QUERY_ERROR,ra.INTERNAL_ERROR),Ki.ROOM_NOT_EXIST,ra.INTERNAL_ERROR),Ki.ROOM_ADD_USER_FAILED,ra.INTERNAL_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(la,Ki.SESSION_ALREADY_ENDED,ra.SESSION_NOT_FOUND),Ki.ROOM_DEPRECATED,ra.INTERNAL_ERROR),Ki.ROOM_ID_MISSING,ra.INTERNAL_ERROR),Ki.AUTH_PAYLOAD_MISSING,ra.INTERNAL_ERROR),Ki.START_URL_INVALID,ra.INTERNAL_ERROR),Ki.META_DATA_INVALID,ra.INTERNAL_ERROR),Ki.WSSGW_INSTANCE_NOT_FOUND,ra.INTERNAL_ERROR),Ki.LEADER_CONFLICT,oa.CUSTOMER_LIMIT),Ki.REACHED_LEADER_LIMIT,oa.CUSTOMER_LIMIT),Ki.FOLLOWER_CONFLICT,ia.AGENT_LIMIT),_defineProperty(_defineProperty(_defineProperty(_defineProperty(la,Ki.REACHED_FOLLOWER_LIMIT,ia.AGENT_LIMIT),Ki.USER_CONFLICT,aa.DUPLICATE_AGENT),Ki.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE,_a.SESSION_ERROR_WITH_RETRY),Ki.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION,_a.SESSION_ERROR),function(e){e[e.ALL_PING_FAILED=10001]="ALL_PING_FAILED",e[e.EMPTY_PING_LIST=10003]="EMPTY_PING_LIST",e[e.SOCKET_RECONNECT_FAILED=10020]="SOCKET_RECONNECT_FAILED",e[e.SOCKET_FAIL_OVER_FAILED=10021]="SOCKET_FAIL_OVER_FAILED",e[e.DUPLICATE_LAUNCH_SESSION=10024]="DUPLICATE_LAUNCH_SESSION",e[e.FRAME_LEVEL_NOT_READY=10025]="FRAME_LEVEL_NOT_READY",e[e.SESSION_CONNECTING=10010]="SESSION_CONNECTING",e[e.SESSION_PERSISTING=10014]="SESSION_PERSISTING",e[e.DUPLICATE_SESSION=10023]="DUPLICATE_SESSION",e[e.SESSION_CANCELING=10027]="SESSION_CANCELING",e[e.UNKNOWN_SERVICE_EXCEPTION=19999]="UNKNOWN_SERVICE_EXCEPTION"}(Ea||(Ea={}));var da,fa=(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(n={},Ea.ALL_PING_FAILED,ra.INTERNAL_ERROR),Ea.EMPTY_PING_LIST,ra.INTERNAL_ERROR),Ea.SOCKET_RECONNECT_FAILED,ra.RECONNECT_FAILED),Ea.SOCKET_FAIL_OVER_FAILED,ra.FAIL_OVER_FAILED),Ea.FRAME_LEVEL_NOT_READY,ra.INTERNAL_ERROR),Ea.SESSION_CONNECTING,Zi.CONNECTING),Ea.SESSION_PERSISTING,Zi.PERSISTING),Ea.DUPLICATE_SESSION,qi.LIMIT),Ea.DUPLICATE_LAUNCH_SESSION,qi.LIMIT),Ea.SESSION_CANCELING,ua.CANCELING),_defineProperty(n,Ea.UNKNOWN_SERVICE_EXCEPTION,_a.SERVICE_ERROR));!function(e){e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden"}(da||(da={}));var Sa,Ia=_defineProperty(_defineProperty({},da.Unauthorized,ca.JWT_INVALID),da.Forbidden,ca.JWT_INVALID);!function(e){e[e.INVALID_URL=30105]="INVALID_URL",e[e.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_DISABLE=30600]="SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_DISABLE",e[e.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_NO_CREDIT=30601]="SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_NO_CREDIT",e[e.SESSION_NOT_FOUND=30300]="SESSION_NOT_FOUND",e[e.PIN_CODE_NOT_FOUND=30308]="PIN_CODE_NOT_FOUND",e[e.PIN_CODE_EXPIRED=30309]="PIN_CODE_EXPIRED",e[e.PIN_CODE_EXCEEDED_MAX_LENGTH=30307]="PIN_CODE_EXCEEDED_MAX_LENGTH",e[e.PIN_INVALID_CHARACTERS=30311]="PIN_INVALID_CHARACTERS",e[e.PIN_CODE_IS_REQUIRED=30315]="PIN_CODE_IS_REQUIRED",e[e.PIN_CODE_HAS_BEEN_USED=30316]="PIN_CODE_HAS_BEEN_USED",e[e.INVALID_SDK_VERSION=30106]="INVALID_SDK_VERSION",e[e.ERROR_SDK_VERSION=30107]="ERROR_SDK_VERSION",e[e.INACTIVE_SDK_VERSION=30109]="INACTIVE_SDK_VERSION",e[e.SDK_VERSION_NOT_FOUND=30110]="SDK_VERSION_NOT_FOUND",e[e.NETWORK_ERROR=10016]="NETWORK_ERROR",e[e.INVALID_TOKEN=124]="INVALID_TOKEN",e[e.NO_PERMISSION=125]="NO_PERMISSION",e[e.INVALID_EXPIRED=129]="INVALID_EXPIRED",e[e.TOKEN_ACCESS_ERROR=30304]="TOKEN_ACCESS_ERROR",e[e.UNKNOWN=-1]="UNKNOWN",e[e.LOCKED=126]="LOCKED",e[e.PIN_PUSH_FAILED=128]="PIN_PUSH_FAILED",e[e.INVALID_BUSINESS_TYPE=30102]="INVALID_BUSINESS_TYPE",e[e.INVALID_RECORDING_ID=30103]="INVALID_RECORDING_ID",e[e.MISSING_FIELD=30104]="MISSING_FIELD",e[e.SEARCH_ERROR=30200]="SEARCH_ERROR",e[e.INVALID_BUSINESS_TYPE2=30201]="INVALID_BUSINESS_TYPE2",e[e.FILE_SERVER_ERROR=30203]="FILE_SERVER_ERROR",e[e.FILE_SERVICE_ERROR=30204]="FILE_SERVICE_ERROR",e[e.FILE_SERVICE_ERROR2=30205]="FILE_SERVICE_ERROR2",e[e.INVALID_START_TIME=30301]="INVALID_START_TIME",e[e.INVALID_ACTION=30302]="INVALID_ACTION",e[e.INVALID_REGION=30303]="INVALID_REGION",e[e.EXCEEDED_FAILED=30305]="EXCEEDED_FAILED",e[e.INVALID_END_TIME=30306]="INVALID_END_TIME",e[e.PIN_CODE_NOT_READY=30310]="PIN_CODE_NOT_READY",e[e.INVALID_TOTAL_MINUTES=30312]="INVALID_TOTAL_MINUTES",e[e.DUPLICATE_REQUEST=30313]="DUPLICATE_REQUEST",e[e.INVALID_TEMPLATE_TYPE=30314]="INVALID_TEMPLATE_TYPE",e[e.SERVER_ERROR1=30400]="SERVER_ERROR1",e[e.SERVER_ERROR2=30401]="SERVER_ERROR2",e[e.SERVER_ERROR3=30402]="SERVER_ERROR3",e[e.SERVER_ERROR4=30403]="SERVER_ERROR4",e[e.INVALID_SDK_CDN_URL=30108]="INVALID_SDK_CDN_URL"}(Sa||(Sa={}));var Ra,ga,Ta,pa=_defineProperty(_defineProperty(_defineProperty(_defineProperty({},Sa.INVALID_TOKEN,ca.JWT_INVALID),Sa.NO_PERMISSION,ca.JWT_NO_PERMISSIONS),Sa.INVALID_EXPIRED,ca.JWT_EXPIRED),Sa.TOKEN_ACCESS_ERROR,ca.JWT_ACCESS_ERROR),Oa=(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(t={},Sa.INVALID_URL,zi.INVALID_URL),Sa.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_DISABLE,zi.ACCOUNT_NO_CREDITS),Sa.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_NO_CREDIT,zi.ACCOUNT_NO_CREDITS),Sa.SESSION_NOT_FOUND,Xi.NOT_FOUND),Sa.PIN_CODE_NOT_FOUND,Qi.PIN_NOT_FOUND),Sa.PIN_CODE_EXPIRED,$i.PIN_EXPIRED),Sa.PIN_CODE_EXCEEDED_MAX_LENGTH,ea.PIN_INVALID_LENGTH),Sa.PIN_INVALID_CHARACTERS,ea.PIN_INVALID_CHARACTERS),Sa.PIN_CODE_IS_REQUIRED,na.PIN_REQUIRED),Sa.PIN_CODE_HAS_BEEN_USED,ta.PIN_CONFLICT),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(t,Sa.INVALID_SDK_VERSION,ra.SDK_INVALID),Sa.ERROR_SDK_VERSION,ra.SDK_INVALID),Sa.INACTIVE_SDK_VERSION,ra.SDK_INVALID),Sa.SDK_VERSION_NOT_FOUND,ra.SDK_INVALID),Sa.NETWORK_ERROR,sa.NETWORK_REQUEST_FAILED),Sa.INVALID_TOKEN,ca.INTERNAL_ERROR),Sa.NO_PERMISSION,ca.INTERNAL_ERROR),Sa.INVALID_EXPIRED,ca.INTERNAL_ERROR),Sa.TOKEN_ACCESS_ERROR,ca.INTERNAL_ERROR),Sa.UNKNOWN,_a.SERVICE_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(t,Sa.LOCKED,_a.SERVICE_ERROR),Sa.PIN_PUSH_FAILED,_a.SERVICE_ERROR),Sa.INVALID_BUSINESS_TYPE,_a.SERVICE_ERROR),Sa.INVALID_RECORDING_ID,_a.SERVICE_ERROR),Sa.MISSING_FIELD,_a.SERVICE_ERROR),Sa.SEARCH_ERROR,_a.SERVICE_ERROR),Sa.INVALID_BUSINESS_TYPE2,_a.SERVICE_ERROR),Sa.FILE_SERVER_ERROR,_a.SERVICE_ERROR),Sa.FILE_SERVICE_ERROR,_a.SERVICE_ERROR),Sa.FILE_SERVICE_ERROR2,_a.SERVICE_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(t,Sa.INVALID_START_TIME,_a.SERVICE_ERROR),Sa.INVALID_ACTION,_a.SERVICE_ERROR),Sa.INVALID_REGION,_a.SERVICE_ERROR),Sa.EXCEEDED_FAILED,_a.API_RATE_LIMIT),Sa.INVALID_END_TIME,_a.SERVICE_ERROR),Sa.PIN_CODE_NOT_READY,_a.SERVICE_ERROR),Sa.INVALID_TOTAL_MINUTES,_a.SERVICE_ERROR),Sa.DUPLICATE_REQUEST,_a.SERVICE_ERROR),Sa.INVALID_TEMPLATE_TYPE,_a.SERVICE_ERROR),Sa.SERVER_ERROR1,_a.SERVICE_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(t,Sa.SERVER_ERROR2,_a.SERVICE_ERROR),Sa.SERVER_ERROR3,_a.SERVICE_ERROR),Sa.SERVER_ERROR4,_a.SERVICE_ERROR),Sa.INVALID_SDK_CDN_URL,_a.SERVICE_ERROR));!function(e){e[e.RECORD_START_FAILED=29e3]="RECORD_START_FAILED",e[e.RECORD_STOP_FAILED=29001]="RECORD_STOP_FAILED",e[e.RECORD_PAUSE_FAILED=29002]="RECORD_PAUSE_FAILED",e[e.RECORD_RESUME_FAILED=29003]="RECORD_RESUME_FAILED"}(Ra||(Ra={})),function(e){e[e.SESSION_START_FAILED=1001]="SESSION_START_FAILED",e[e.SESSION_CONNECTING_IN_PROGRESS=1002]="SESSION_CONNECTING_IN_PROGRESS",e[e.SESSION_NOT_FOUND=1003]="SESSION_NOT_FOUND",e[e.SESSION_COUNT_LIMIT=1004]="SESSION_COUNT_LIMIT",e[e.SESSION_REFRESH_PIN_FAILED=1005]="SESSION_REFRESH_PIN_FAILED",e[e.SESSION_JOIN_PIN_NOT_FOUND=1006]="SESSION_JOIN_PIN_NOT_FOUND",e[e.SESSION_PIN_CODE_EXPIRED=1007]="SESSION_PIN_CODE_EXPIRED",e[e.SESSION_PIN_INVALID_FORMAT=1008]="SESSION_PIN_INVALID_FORMAT",e[e.SESSION_START_PIN_REQUIRED=1009]="SESSION_START_PIN_REQUIRED",e[e.SESSION_START_PIN_CONFLICT=1010]="SESSION_START_PIN_CONFLICT",e[e.SESSION_JOIN_FAILED=1011]="SESSION_JOIN_FAILED",e[e.SESSION_CUSTOMER_COUNT_LIMIT=1012]="SESSION_CUSTOMER_COUNT_LIMIT",e[e.SESSION_AGENT_COUNT_LIMIT=1013]="SESSION_AGENT_COUNT_LIMIT",e[e.SESSION_CUSTOMIZE_OVERRIDE_ERROR=1014]="SESSION_CUSTOMIZE_OVERRIDE_ERROR",e[e.SESSION_DUPLICATE_USER=1015]="SESSION_DUPLICATE_USER",e[e.NETWORK_ERROR=1016]="NETWORK_ERROR",e[e.SESSION_CANCELING_IN_PROGRESS=1017]="SESSION_CANCELING_IN_PROGRESS",e[e.TRANSFER_TO_NEW_TAB_FAILED=1018]="TRANSFER_TO_NEW_TAB_FAILED",e[e.TOKEN_INVALID=2001]="TOKEN_INVALID",e[e.RECORD_ERROR_UNKNOWN=3001]="RECORD_ERROR_UNKNOWN",e[e.RECORD_START_FAILED=3002]="RECORD_START_FAILED",e[e.RECORD_END_FAILED=3003]="RECORD_END_FAILED",e[e.RECORD_PAUSE_FAILED=3004]="RECORD_PAUSE_FAILED",e[e.RECORD_RESUME_FAILED=3005]="RECORD_RESUME_FAILED",e[e.UNDEFINED=9999]="UNDEFINED"}(ga||(ga={})),function(e){e.Enter="Enter",e.Space=" ",e.Escape="Escape",e.Tab="Tab",e.ArrowUp="ArrowUp",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Delete="Delete",e.Backspace="Backspace",e.Spacebar="Spacebar"}(Ta||(Ta={}));var Ca=function(){return"undefined"==typeof window||"undefined"==typeof document};function ha(){var e=navigator.userAgent;return/iPhone|iPad|iPod/.test(e)}function Na(){return ha()||navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/Windows Phone/i)}function Aa(){return!Ca()&&("MacIntel"===(window.navigator.platform||"")&&((window.navigator.maxTouchPoints||0)>1&&"ontouchstart"in window))}function Da(){return Aa()||function(){if(Ca())return!1;var e=window.navigator,n=e.userAgent,t=e.platform;if(/Android/.test(n)||!/Linux/.test(t))return!1;var r="ontouchstart"in window&&("orientation"in window||"screen"in window&&window.screen&&"orientation"in window.screen)&&window.navigator.maxTouchPoints>0,o="standalone"in window.navigator||"share"in window.navigator||"vibrate"in window.navigator;return r&&o}()}var va,ma,ya,Pa=(va=null,ma=null,ya=null,{get isIOS(){return null===va&&(va=ha()),va},get isIOSDevice(){return null===ma&&(ma=ha()||Aa()),ma},get isMobileDeviceOrDesktopUA(){return null===ya&&(ya=!(!Na()&&!Da())),ya}}),ba=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calculateWidth",value:function(){var e,n,t=window.visualViewport;if(!Ba(t))return wa();if(t.scale>1){var r=t.width*t.scale;return Math.min(r,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.width)&&void 0!==n?n:r)}return t.width}},{key:"calculateHeight",value:function(){var e,n,t=window.visualViewport;if(!Ba(t))return Ma();if(t.scale>1){var r=t.height*t.scale;return Math.min(r,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.height)&&void 0!==n?n:r)}return t.height}}]),e}(),La=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calculateWidth",value:function(){var e,n,t=window.visualViewport;if(!Ba(t))return wa();if(t.scale>1){var r=Math.max(t.width*t.scale,window.innerWidth);return Math.min(r,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.width)&&void 0!==n?n:r)}return Math.max(t.width,window.innerWidth)}},{key:"calculateHeight",value:function(){var e,n,t=window.visualViewport;if(!Ba(t))return Ma();if(t.scale>1){var r=Math.max(t.height*t.scale,window.innerHeight);return Math.min(r,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.height)&&void 0!==n?n:r)}return Math.max(t.height,window.innerHeight)}}]),e}();function wa(){return"undefined"==typeof document?0:document.documentElement&&document.documentElement.clientWidth||window.innerWidth||document.body&&document.body.clientWidth}function Ma(){return"undefined"==typeof document?0:document.documentElement&&document.documentElement.clientHeight||window.innerHeight||document.body&&document.body.clientHeight}var Fa=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calculateWidth",value:function(){return wa()}},{key:"calculateHeight",value:function(){return Ma()}}]),e}(),Ua=function(){var e,n=!1;function t(){e=Pa.isMobileDeviceOrDesktopUA&&Ba(window.visualViewport)?Pa.isIOSDevice?new ba:new La:new Fa,n=!0}return{getWidth:function(){return n||t(),e.calculateWidth()},getHeight:function(){return n||t(),e.calculateHeight()}}}();var ka=new WeakMap;function Ba(e){if(!e||"object"!==_typeof(e))return!1;if(e.constructor&&"VisualViewport"===e.constructor.name){var n=ka.get(e);if(void 0!==n)return n}var t=function(e){return"object"===_typeof(e)&&null!==e&&"scale"in e&&"width"in e&&"height"in e&&"offsetTop"in e&&"number"==typeof e.scale&&"number"==typeof e.width&&"number"==typeof e.height&&"number"==typeof e.offsetTop}(e);return t&&ka.set(e,t),t}Ua.getWidth(),Ua.getHeight();function xa(e,n,t){var r;null===(r=null==n?void 0:n.postMessage)||void 0===r||r.call(n,e,t)}var Va,Wa=function(e){_inherits(t,_wrapNativeSuper(Error));var n=_createSuper(t);function t(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return _classCallCheck(this,t),(r=n.call(this,e)).msg=e,r.code=o,r.statusCode=i,r}return _createClass(t)}();function Ga(e,n){var t=this,i=n||{},a=i.retry,s=i.handleJsonResponse,u=r(i,["retry","handleJsonResponse"]),c=s||function(e){return o(t,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,r,o;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e.ok){n.next=4;break}return n.abrupt("return",e);case 4:return n.prev=4,n.next=7,e.json();case 7:o=n.sent,t=o.message,r=o.code,n.next=16;break;case 12:n.prev=12,n.t0=n.catch(4),t=e.statusText,r=e.status;case 16:throw new Wa(t,r,e.status);case 17:case"end":return n.stop()}}),n,null,[[4,12]])})))},_=Object.assign({limit:3},a),E=_.limit,l=_.delay;return new Promise((function(n,t){var r=function(r){var a,s;return o(this,void 0,void 0,_regeneratorRuntime().mark((function o(){var _,l,d;return _regeneratorRuntime().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,fetch(e,u);case 3:return _=o.sent,o.next=6,c(_);case 6:return l=o.sent,n(l),o.abrupt("return");case 11:if(o.prev=11,o.t0=o.catch(0),d=o.t0&&null!==(s=null!==(a=o.t0.statusCode)&&void 0!==a?a:o.t0.status)&&void 0!==s?s:1/0,!(r>=E||d<500&&0!==d)){o.next=17;break}return!o.t0||o.t0 instanceof TypeError&&/Load failed|fetch/i.test(o.t0.message)?t(new Wa(Oa[Sa.NETWORK_ERROR],Sa.NETWORK_ERROR)):t(o.t0),o.abrupt("return");case 17:i(r);case 18:case"end":return o.stop()}}),o,null,[[0,11]])})))};function i(e){void 0!==l?window.setTimeout((function(){r(++e)}),l):r(++e)}r(0)}))}!function(e){e[e.NOT_DEFINED=-1]="NOT_DEFINED"}(Va||(Va={}));var Ha=function(e){_inherits(t,_wrapNativeSuper(Error));var n=_createSuper(t);function t(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Va.NOT_DEFINED,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return _classCallCheck(this,t),(r=n.call(this,e)).msg=e,r.code=o,r.statusCode=i,r}return _createClass(t)}(),Ja=function(e){_inherits(t,_wrapNativeSuper(Error));var n=_createSuper(t);function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ri.UNKNOWN;return _classCallCheck(this,t),(e=n.call(this,r)).msg=r,e}return _createClass(t)}(),Ya=jo(["CoBrowsing AgentSDK","COMMON"]);function ja(e,n){return new Promise((function(t,o){null==n||n(e);var i=e.success,a=r(e,["success"]);i?t(a):o(e.error)}))}var Ka=function(e){return o(void 0,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,r;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e.ok){n.next=7;break}return n.next=3,e.json();case 3:return t=n.sent,n.abrupt("return",t);case 7:return n.next=9,e.json();case 9:throw r=n.sent,new Ha(r.message,r.code,e.status);case 11:case"end":return n.stop()}}),n)})))},za=function(e,n){return o(void 0,void 0,void 0,_regeneratorRuntime().mark((function t(){var o,i,a,s,u,c,_,E;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=(o=n||{}).headers,a=void 0===i?{}:i,s=o.authToken,u=r(o,["headers","authToken"]),c=Fr.getZmTrackingIdForWeb(),Er(e)?Ya.log("zmTrackingIdForWeb:".concat(c,", url ").concat(e)):Ya.log("zmTrackingIdForWeb:".concat(c)),(_=new URL(e.toString())).searchParams.set("t",Date.now().toString()),t.next=7,Ga(_,Object.assign({headers:Object.assign({"Content-Type":"application/json",Authorization:"Bearer ".concat(s),"x-zm-trackingid":c},a),method:"GET",handleJsonResponse:Ka},u));case 7:return E=t.sent,t.abrupt("return",E);case 9:case"end":return t.stop()}}),t)})))};function Za(){var e;return"https://"+(ir()?null===(e=ar())||void 0===e?void 0:e.domain:window.ZMCoBrowsingConfig.domain)}function Xa(e,n){var t=e;if(!0!==Hn.getCoBrowsingConfig("isLoadFromSDKEntry")&&(ur()&&(t="".concat(e,"/").concat(cr())),window.location.pathname===t)){var r=new URLSearchParams(window.location.search);Object.entries(n).forEach((function(e){var n=_slicedToArray(e,2),t=n[0],o=n[1];r.set(t,o)}));var o="".concat(window.location.pathname,"?").concat(r.toString());history.replaceState({},"",o)}}var qa,Qa=function(e){return ir()&&sessionStorage.getItem(Rt(e))||""};!function(e){e.SESSION_JOINED="session_joined",e.SESSION_LEFT="session_left",e.SESSION_ENDED="session_ended",e.SESSION_ERROR="session_error"}(qa||(qa={}));var $a,es=new Map([[ga.SESSION_START_FAILED,[Sa.INVALID_URL,Sa.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_DISABLE,Sa.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_NO_CREDIT]],[ga.SESSION_CONNECTING_IN_PROGRESS,[Ea.SESSION_CONNECTING,Ea.SESSION_PERSISTING]],[ga.SESSION_NOT_FOUND,[Sa.SESSION_NOT_FOUND]],[ga.SESSION_COUNT_LIMIT,[Ea.DUPLICATE_SESSION,Ea.DUPLICATE_LAUNCH_SESSION]],[ga.SESSION_REFRESH_PIN_FAILED,[Wi.REFRESH_PIN_CODE_FAILED]],[ga.SESSION_JOIN_PIN_NOT_FOUND,[Sa.PIN_CODE_NOT_FOUND]],[ga.SESSION_PIN_CODE_EXPIRED,[Sa.PIN_CODE_EXPIRED]],[ga.SESSION_PIN_INVALID_FORMAT,[Sa.PIN_CODE_EXCEEDED_MAX_LENGTH,Sa.PIN_INVALID_CHARACTERS]],[ga.SESSION_START_PIN_REQUIRED,[Sa.PIN_CODE_IS_REQUIRED]],[ga.SESSION_START_PIN_CONFLICT,[Sa.PIN_CODE_HAS_BEEN_USED]],[ga.SESSION_JOIN_FAILED,[Ea.FRAME_LEVEL_NOT_READY,Ea.EMPTY_PING_LIST,Ea.ALL_PING_FAILED,Ea.SOCKET_RECONNECT_FAILED,Ea.SOCKET_FAIL_OVER_FAILED,Sa.INVALID_SDK_VERSION,Sa.ERROR_SDK_VERSION,Sa.INACTIVE_SDK_VERSION,Sa.SDK_VERSION_NOT_FOUND,Ki.WEB_REPORT_REGION_FAILED,Ki.WEB_REPORT_REGION_NOT_MATCH,Ki.WEB_REPORT_USER_JOIN_FAILED,Ki.WEB_REPORT_USER_JOIN_EMPTY,Ki.WEB_REPORT_USER_JOIN_EMPTY_USER,Ki.AUTH_CONFLICT,Ki.AUTH_VERIFY_FAILED,Ki.AUTH_DB_QUERY_ERROR,Ki.ROOM_NOT_EXIST,Ki.ROOM_ADD_USER_FAILED,Ki.SESSION_ALREADY_ENDED,Ki.ROOM_DEPRECATED,Ki.ROOM_ID_MISSING,Ki.AUTH_PAYLOAD_MISSING,Ki.START_URL_INVALID,Ki.META_DATA_INVALID,Ki.WSSGW_INSTANCE_NOT_FOUND]],[ga.SESSION_CUSTOMER_COUNT_LIMIT,[Ki.LEADER_CONFLICT,Ki.REACHED_LEADER_LIMIT]],[ga.SESSION_AGENT_COUNT_LIMIT,[Ki.FOLLOWER_CONFLICT,Ki.REACHED_FOLLOWER_LIMIT]],[ga.SESSION_CUSTOMIZE_OVERRIDE_ERROR,[]],[ga.SESSION_DUPLICATE_USER,[Ki.USER_CONFLICT]],[ga.NETWORK_ERROR,[Sa.NETWORK_ERROR]],[ga.SESSION_CANCELING_IN_PROGRESS,[Ea.SESSION_CANCELING]],[ga.TRANSFER_TO_NEW_TAB_FAILED,[]],[ga.TOKEN_INVALID,[Sa.INVALID_TOKEN,Sa.NO_PERMISSION,Sa.INVALID_EXPIRED,Sa.TOKEN_ACCESS_ERROR]],[ga.UNDEFINED,[Ea.UNKNOWN_SERVICE_EXCEPTION,Sa.UNKNOWN,Sa.LOCKED,Sa.PIN_PUSH_FAILED,Sa.INVALID_BUSINESS_TYPE,Sa.INVALID_RECORDING_ID,Sa.MISSING_FIELD,Sa.SEARCH_ERROR,Sa.INVALID_BUSINESS_TYPE2,Sa.FILE_SERVER_ERROR,Sa.FILE_SERVICE_ERROR,Sa.FILE_SERVICE_ERROR2,Sa.INVALID_START_TIME,Sa.INVALID_ACTION,Sa.INVALID_REGION,Sa.EXCEEDED_FAILED,Sa.INVALID_END_TIME,Sa.PIN_CODE_NOT_READY,Sa.INVALID_TOTAL_MINUTES,Sa.DUPLICATE_REQUEST,Sa.INVALID_TEMPLATE_TYPE,Sa.SERVER_ERROR1,Sa.SERVER_ERROR2,Sa.SERVER_ERROR3,Sa.SERVER_ERROR4,Sa.INVALID_SDK_CDN_URL,Ki.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE,Ki.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION,24e3,24002,25100,25101,25102,25103,25104,25105,25200,25201,25202,26600,26601,26702,26703]],[3001,[26700]],[3002,[2e4,20001,20002,20003,20004,20005,20006,20007,24001,26100,26101,26102,26103,26104,26105,26106,26200,26201,26203,26204,26301,26302,26303,26304,26305,26400,26401,26402,26403,26404,26405,26500,26501,26502,26503,26504,26506,26701,26800,26801,29e3]],[3003,[21e3,21001,25203,25204,26202,26505,29001]],[3004,[22e3,29002]],[3005,[23e3,29003]]]),ns=[29e3,29001,29002,29003],ts=new Map,rs=_createForOfIteratorHelper(es);try{var os=function(){var e=_slicedToArray($a.value,2),n=e[0];e[1].forEach((function(e){ts.set(e,n)}))};for(rs.s();!($a=rs.n()).done;)os()}catch(e){rs.e(e)}finally{rs.f()}var is="".concat("zcb-el-","aria-notify-area");var as=function(e,n){var t=null;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];t&&clearTimeout(t),t=setTimeout((function(){e.apply(r,i)}),n)}}((function(e){!function(){if(!document.getElementById(is)){var e=document.createElement("div");e.id=is,e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","assertive"),e.setAttribute("aria-relevant","text"),e.style.position="fixed",e.style.left="-10000px",e.style.top="-10000px",e.style.width="1px",e.style.height="1px",e.style.overflow="hidden",e.style.clip="rect(0, 0, 0, 0)",e.style.whiteSpace="nowrap",e.style.border="0",e.style.margin="-1px",e.style.padding="0",e.style.zIndex="-1",e.style.pointerEvents="none",e.style.userSelect="none",document.body.appendChild(e)}}();var n=document.getElementById(is);n&&(n.innerText="",requestAnimationFrame((function(){n.innerText=e,setTimeout((function(){n.innerText=""}),3e4)})))}),50);function ss(e,n){switch(e){case Ui.SESSION_JOINED:as("Agent has joined the session.");break;case Ui.SESSION_LEFT:as("Agent has left the session.");break;case Ui.SESSION_ENDED:as("Session has ended.");break;case Ui.SESSION_ERROR:as((null==n?void 0:n.errorMsg)||"Session error occurred")}}var us=jo(["CoBrowsing AgentSDK","COMMON"]),cs="/sdkapi/zcb/frame-templates/viewer",_s=new(function(){function e(){_classCallCheck(this,e),this.sessionMap=new Map}return _createClass(e,[{key:"isNpmMode",get:function(){return!!window.ZCB_NPM_SDK_AGENT_MAIN}},{key:"deleteSession",value:function(e){this.sessionMap.delete(e)}},{key:"clearDeactivedSessions",value:function(){var e=this;this.sessionMap.forEach((function(n,t){t._destroyed&&(e.deleteSession(t),t._destroy())}))}},{key:"createSession",value:function(n){if(this.isNpmMode){this.clearDeactivedSessions();var t=new Es(n);return this.sessionMap.set(t,!0),t}return e.session||(e.session=new Es(n)),e.session}}]),e}()),Es=function(e){_inherits(t,e);var n=_createSuper(t);function t(e){var r;_classCallCheck(this,t),(r=n.call(this)).options=e,r.manager=_s,r.autoJoinSessionDetailsPromise=null,r.sessionEventInfo=null,r._destroyed=!1;var o=(e||{}).zoomAppRoot;if(r.isNpmMode){var i=new Ja(ri.NO_ROOT_DOM);if(!o||"string"!=typeof o&&!(o instanceof HTMLElement))throw i;var a="string"==typeof o?document.querySelector(o):o;if(!(null==a?void 0:a.isConnected))throw i;r.frameRoot=a}return r.messageListener=r.messageCallback.bind(_assertThisInitialized(r)),window.addEventListener("message",r.messageListener),r}return _createClass(t,[{key:"isNpmMode",get:function(){return!!window.ZCB_NPM_SDK_AGENT_MAIN}},{key:"getPayloadFromJwtToken",value:function(e){var n;if("string"!=typeof e)return null;var t=(null===(n=e.split("."))||void 0===n?void 0:n[1])||"",r=null;try{r=JSON.parse(gt(t))}catch(e){}return r}},{key:"init",value:function(){var e;return o(this,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,r;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!this.isNpmMode){n.next=6;break}if(t=Qa(Bi)||Qa(ki),r=t?null===(e=this.getPayloadFromJwtToken(t))||void 0===e?void 0:e.session_id:"",!t||!r){n.next=6;break}return n.next=6,this.getSessionStatus({sessionId:r,authToken:t});case 6:case"end":return n.stop()}}),n,this)})))}},{key:"getSessionStatus",value:function(e){return o(this,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,r,o,i=this;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.sessionId,r=e.authToken,o=new URL(zn.getSessionStatus,Za()),us.log("Call CommonAgentSession.getSessionStatus: check auto join"),n.abrupt("return",za("".concat(o,"/").concat(t),{authToken:r}).then((function(e){var n;i.storeTokenForRefresh(null===(n=e.current_user)||void 0===n?void 0:n.auth_token),i.autoJoinSessionDetailsPromise=new zr,i.autoJoinSessionDetailsPromise.resolve(e)})).catch((function(){i.delTokenForRefresh()})));case 4:case"end":return n.stop()}}),n)})))}},{key:"delTokenForRefresh",value:function(){var e;this.isNpmMode&&(e=[ki,Bi],ir()&&e.forEach((function(e){sessionStorage.removeItem(Rt(e))})))}},{key:"storeTokenForRefresh",value:function(e){var n,t;this.isNpmMode&&e&&(n=Bi,t={access_token:e},ir()?sessionStorage.setItem(Rt(n),(null==t?void 0:t.access_token)||""):Xa(n,t))}},{key:"createAgentViewerEndpoint",value:function(e,n){return o(this,void 0,void 0,_regeneratorRuntime().mark((function t(){var r,o,i=this;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=_r(e.sdkToken||"",["user_id","role_type"],us),Bo.setSession({userId:r.user_id,participantType:r.role_type}),us.log("Call createAgentViewerEndpoint, pinCode:".concat(null==e?void 0:e.pinCode,", ").concat((new Date).valueOf())),t.next=5,this.authByPinCode(e).then((function(e){return us.log("Call createAgentViewerEndpoint success, sessionId:".concat(i.sessionId)),{success:!0,agentViewerUrl:i.getAgentViewerUrl(e.current_user.auth_token)}}),(function(e){return us.log("Call createAgentViewerEndpoint failed, error: ".concat(JSON.stringify(e),", ").concat((new Date).valueOf())),{success:!1,error:i.handleFetchError(e)}}));case 5:return o=t.sent,t.abrupt("return",ja(o,n));case 7:case"end":return t.stop()}}),t,this)})))}},{key:"authByPinCode",value:function(e){return o(this,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,r,o,i,a,s=this;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.pinCode,r=e.sdkToken,o=pi(zn.joinSession),i=o.expand({pinCode:t||""}),this.delTokenForRefresh(),a=new URL(i,Za()),n.abrupt("return",za(a,{authToken:r}).then((function(e){var n,t,r;return s.sessionId=e.session_id||"",s.pinCode=e.cobrowse_code||"",s.storeTokenForRefresh(null===(n=e.current_user)||void 0===n?void 0:n.auth_token),Bo.setSession({sessionId:e.session_id,userId:null===(t=e.current_user)||void 0===t?void 0:t.user_id,participantType:null===(r=e.current_user)||void 0===r?void 0:r.role_type}),e})));case 6:case"end":return n.stop()}}),n,this)})))}},{key:"handleFetchError",value:function(e){var n,t,r=pa[e.code]||Oa[e.code],o=void 0!==(null==e?void 0:e.code)?new Ha(r,e.code,e.statusCode):(null==e?void 0:e.statusCode)===da.Unauthorized||(null==e?void 0:e.statusCode)===da.Forbidden?new Ha(Ia[e.statusCode],e.statusCode,e.statusCode):new Ha(fa[Ea.UNKNOWN_SERVICE_EXCEPTION],Ea.UNKNOWN_SERVICE_EXCEPTION,Ea.UNKNOWN_SERVICE_EXCEPTION),i={errorMsg:o.message,code:(t=o.code,(t?ns.includes(t)?t:ts.get(t)||void 0:ga.UNDEFINED)||ga.UNDEFINED),version:ir()?null===(n=ar())||void 0===n?void 0:n.sdkVersion:window.ZMCoBrowsingConfig.sdkVersion};return us.log("session error trigger, internalCode:".concat(o.code,", externalCode:").concat(i.code,", reason:").concat(i.errorMsg,", ").concat((new Date).valueOf())),this.emit(qa.SESSION_ERROR,i),ss(Ui.SESSION_ERROR,i),i}},{key:"getAgentViewerUrl",value:function(e){return ur()?"".concat(Za()).concat(cs,"/").concat(cr(),"?access_token=").concat(e):"".concat(Za()).concat(cs,"?access_token=").concat(e)}},{key:"join",value:function(e){return o(this,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,r=this;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return us.log("Call CommonAgentSession.join"),t=!e,n.abrupt("return",(t&&this.autoJoinSessionDetailsPromise?this.autoJoinSessionDetailsPromise.promise:this.authByPinCode(e)).then((function(e){var n;us.log("Call CommonAgentSession.join success, sessionId:".concat(r.sessionId));var t=(e||{}).sdk_config||{},o=t.gateway_endpoint,i=t.enable_zcb_client_log;void 0!==i&&us.setLaplaceEnabled(i),o&&!r.isNpmMode&&us.setReportUrl(o);var a=document.createElement("iframe");return r.frameRoot.appendChild(a),null===(n=window.ZCB_NPM_SDK_AGENT_MAIN)||void 0===n||n.initAgentPortal(a,e),r.iframe=a,{success:!0}}),(function(e){return us.log("Call CommonAgentSession.join failed, error: ".concat(JSON.stringify(e))),{success:!1,error:r.handleFetchError(e)}})));case 3:case"end":return n.stop()}}),n,this)})))}},{key:"getSessionInfo",value:function(){var e,n={sessionId:this.sessionId,pinCode:this.pinCode};return(null===(e=this.autoJoinSessionDetailsPromise)||void 0===e?void 0:e.resolved)&&(n.sessionStatus=ni.RECOVERABLE),n}},{key:"startRemoteAssist",value:function(){us.log("Call CommonAgentSession.startRemoteAssist, sessionId:".concat(this.sessionId)),this.sessionEventInfo&&xa({event:xi.START_REMOTE_ASSIST},this.sessionEventInfo.source,this.sessionEventInfo.origin)}},{key:"stopRemoteAssist",value:function(){us.log("Call CommonAgentSession.stopRemoteAssist, sessionId:".concat(this.sessionId)),this.sessionEventInfo&&xa({event:xi.STOP_REMOTE_ASSIST},this.sessionEventInfo.source,this.sessionEventInfo.origin)}},{key:"markAsDestroy",value:function(){this._destroyed=!0}},{key:"_destroy",value:function(){window.removeEventListener("message",this.messageListener),this.manager.deleteSession(this),this.iframe.parentNode&&this.iframe.parentNode.removeChild(this.iframe)}},{key:"isMessageBelongToSession",value:function(e){var n;return this.isNpmMode?e.source===(null===(n=this.iframe)||void 0===n?void 0:n.contentWindow):e.origin===Za()}},{key:"messageCallback",value:function(e){if(this.isMessageBelongToSession(e)){var n=e.data;if(n&&"object"===_typeof(n)&&n.event&&Vi.includes(n.event)){if(us.log("agent trigger message event: ".concat(n.event)),n.event===Ui.SESSION_PRE_INIT){var t=r(this.options,["zoomAppRoot","zoomHostName","appKey"]),o=Fr.getZmTrackingId();return this.sessionEventInfo={source:e.source,origin:e.origin},void xa({event:xi.SEND_SESSION_OPTIONS,data:{options:t,info:{zmTrackingId:o}}},e.source,e.origin)}this.emit(n.event,n.data),ss(n.event,n.data),(n.event===Ui.SESSION_ENDED||n.event===Ui.SESSION_LEFT||n.event===Ui.SESSION_ERROR&&(i=n.code,![ga.SESSION_COUNT_LIMIT,ga.SESSION_REFRESH_PIN_FAILED].includes(i)))&&(this.sessionEventInfo=null,this.markAsDestroy())}}var i}},{key:"on",value:function(e,n){return _get(_getPrototypeOf(t.prototype),"on",this).call(this,e,n)}},{key:"emit",value:function(e,n){return _get(_getPrototypeOf(t.prototype),"emit",this).call(this,e,n)}}]),t}(ci),ls=jo(["CoBrowsing AgentSDK","COMMON"]),ds=function(e,n){return o(void 0,void 0,void 0,_regeneratorRuntime().mark((function t(){var r,o,i;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Fr.getZmTrackingId(),Rr({zmTrackingId:r}),ls.log("session init, zmTrackingId:".concat(r)),console.log("zmTrackingId",r),o={success:!0,sdkInfo:{version:null==sr?void 0:sr()}},t.prev=5,i=_s.createSession(e),t.next=9,i.init();case 9:o.session=i,t.next=16;break;case 12:t.prev=12,t.t0=t.catch(5),o.success=!1,o.error=t.t0 instanceof Ja?t.t0.msg:ri.UNKNOWN;case 16:return t.abrupt("return",new Promise((function(e,t){null==n||n(o),o.success?e(o):t(o.error)})));case 17:case"end":return t.stop()}}),t,null,[[5,12]])})))};return(null===window||void 0===window?void 0:window.ZoomCobrowseAgentSDKInitArgs)&&(ds.apply(void 0,_toConsumableArray(window.ZoomCobrowseAgentSDKInitArgs)),delete window.ZoomCobrowseAgentSDKInitArgs),e.init=ds,Object.defineProperty(e,"__esModule",{value:!0}),e}({});\n//# sourceMappingURL=https://d1cdksi819e9z7.cloudfront.net/zcb/mkqx9c51/zcb-client-agent.js.map\n';export{e as default};
|
|
1
|
+
var e='function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,t){var o=_superPropBase(e,n);if(o){var r=Object.getOwnPropertyDescriptor(o,n);return r.get?r.get.call(arguments.length<3?e:t):r.value}},_get.apply(null,arguments)}function _superPropBase(e,n){for(;!{}.hasOwnProperty.call(e,n)&&null!==(e=_getPrototypeOf(e)););return e}function _wrapNativeSuper(e){var n="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(t,e)},_wrapNativeSuper(e)}function _construct(e,n,t){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,n);var r=new(e.bind.apply(e,o));return t&&_setPrototypeOf(r,t.prototype),r}function _isNativeFunction(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(n){return"function"==typeof e}}function _createForOfIteratorHelper(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}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 i,a=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(s)throw i}}}}function _defineProperty(e,n,t){return(n=_toPropertyKey(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function _inherits(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&_setPrototypeOf(e,n)}function _setPrototypeOf(e,n){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},_setPrototypeOf(e,n)}function _createSuper(e){var n=_isNativeReflectConstruct();return function(){var t,o=_getPrototypeOf(e);if(n){var r=_getPrototypeOf(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return _possibleConstructorReturn(this,t)}}function _possibleConstructorReturn(e,n){if(n&&("object"==_typeof(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _typeof(e){return _typeof="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},_typeof(e)}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */_regeneratorRuntime=function(){return n};var e,n={},t=Object.prototype,o=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function u(e,n,t,o){return Object.defineProperty(e,n,{value:t,enumerable:!o,configurable:!o,writable:!o})}try{u({},"")}catch(e){u=function(e,n,t){return e[n]=t}}function c(n,t,o,r){var i=t&&t.prototype instanceof E?t:E,a=Object.create(i.prototype);return u(a,"_invoke",function(n,t,o){var r=1;return function(i,a){if(3===r)throw Error("Generator is already running");if(4===r){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var u=O(s,o);if(u){if(u===l)continue;return u}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(1===r)throw r=4,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=3;var c=_(n,t,o);if("normal"===c.type){if(r=o.done?4:2,c.arg===l)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(r=4,o.method="throw",o.arg=c.arg)}}}(n,o,new N(r||[])),!0),a}function _(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}n.wrap=c;var l={};function E(){}function d(){}function f(){}var S={};u(S,i,(function(){return this}));var R=Object.getPrototypeOf,I=R&&R(R(A([])));I&&I!==t&&o.call(I,i)&&(S=I);var g=f.prototype=E.prototype=Object.create(S);function T(e){["next","throw","return"].forEach((function(n){u(e,n,(function(e){return this._invoke(n,e)}))}))}function p(e,n){function t(r,i,a,s){var u=_(e[r],e,i);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==_typeof(l)&&o.call(l,"__await")?n.resolve(l.__await).then((function(e){t("next",e,a,s)}),(function(e){t("throw",e,a,s)})):n.resolve(l).then((function(e){c.value=e,a(c)}),(function(e){return t("throw",e,a,s)}))}s(u.arg)}var r;u(this,"_invoke",(function(e,o){function i(){return new n((function(n,r){t(e,o,n,r)}))}return r=r?r.then(i,i):i()}),!0)}function O(n,t){var o=t.method,r=n.i[o];if(r===e)return t.delegate=null,"throw"===o&&n.i.return&&(t.method="return",t.arg=e,O(n,t),"throw"===t.method)||"return"!==o&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a \'"+o+"\' method")),l;var i=_(r,n.i,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,l;var a=i.arg;return a?a.done?(t[n.r]=a.value,t.next=n.n,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,l):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function C(e){this.tryEntries.push(e)}function h(n){var t=n[4]||{};t.type="normal",t.arg=e,n[4]=t}function N(e){this.tryEntries=[[-1]],e.forEach(C,this),this.reset(!0)}function A(n){if(null!=n){var t=n[i];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var r=-1,a=function t(){for(;++r<n.length;)if(o.call(n,r))return t.value=n[r],t.done=!1,t;return t.value=e,t.done=!0,t};return a.next=a}}throw new TypeError(_typeof(n)+" is not iterable")}return d.prototype=f,u(g,"constructor",f),u(f,"constructor",d),d.displayName=u(f,s,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===d||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},n.awrap=function(e){return{__await:e}},T(p.prototype),u(p.prototype,a,(function(){return this})),n.AsyncIterator=p,n.async=function(e,t,o,r,i){void 0===i&&(i=Promise);var a=new p(c(e,t,o,r),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},T(g),u(g,s,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var n=Object(e),t=[];for(var o in n)t.unshift(o);return function e(){for(;t.length;)if((o=t.pop())in n)return e.value=o,e.done=!1,e;return e.done=!0,e}},n.values=A,N.prototype={constructor:N,reset:function(n){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(h),!n)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var t=this;function o(e){a.type="throw",a.arg=n,t.next=e}for(var r=t.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i[4],s=this.prev,u=i[1],c=i[2];if(-1===i[0])return o("end"),!1;if(!u&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<u)return this.method="next",this.arg=e,o(u),!0;if(s<c)return o(c),!1}}},abrupt:function(e,n){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o[0]>-1&&o[0]<=this.prev&&this.prev<o[2]){var r=o;break}}r&&("break"===e||"continue"===e)&&r[0]<=n&&n<=r[2]&&(r=null);var i=r?r[4]:{};return i.type=e,i.arg=n,r?(this.method="next",this.next=r[2],l):this.complete(i)},complete:function(e,n){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&&n&&(this.next=n),l},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t[2]===e)return this.complete(t[4],t[3]),h(t),l}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t[0]===e){var o=t[4];if("throw"===o.type){var r=o.arg;h(t)}return r}}throw Error("illegal catch attempt")},delegateYield:function(n,t,o){return this.delegate={i:A(n),r:t,n:o},"next"===this.method&&(this.arg=e),l}},n}function _slicedToArray(e,n){return _arrayWithHoles(e)||_iterableToArrayLimit(e,n)||_unsupportedIterableToArray(e,n)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,n){if(e){if("string"==typeof e)return _arrayLikeToArray(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,n):void 0}}function _arrayLikeToArray(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}function _iterableToArrayLimit(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,r,i,a,s=[],u=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;u=!1}else for(;!(u=(o=i.call(t)).done)&&(s.push(o.value),s.length!==n);u=!0);}catch(e){c=!0,r=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _defineProperties(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,n,t){return n&&_defineProperties(e.prototype,n),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var n=_toPrimitive(e,"string");return"symbol"==_typeof(n)?n:n+""}function _toPrimitive(e,n){if("object"!=_typeof(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,n||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function _classCallCheck(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}var ZoomCobrowseAgentSDK=function(e,n,t){"use strict";function o(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t}function r(e,n,t,o){return new(t||(t=Promise))((function(r,i){function a(e){try{u(o.next(e))}catch(e){i(e)}}function s(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}u((o=o.apply(e,n||[])).next())}))}var i,a;!function(e){e[e.info=0]="info",e[e.debug=1]="debug",e[e.log=2]="log",e[e.warn=3]="warn",e[e.error=4]="error"}(i||(i={})),function(e){e.afterInit="afterInit",e.beforeLog="beforeLog",e.afterLog="afterLog",e.beforeReport="beforeReport",e.afterReport="afterReport"}(a||(a={}));var s=_createClass((function e(){_classCallCheck(this,e)})),u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(e){if(e.__esModule)return e;var n=e.default;if("function"==typeof n){var t=function e(){if(this instanceof e){var t=[null];return t.push.apply(t,arguments),new(Function.bind.apply(n,t))}return n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach((function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})})),t}var _={},l={get exports(){return _},set exports(e){_=e}};var E,d={},f={get exports(){return d},set exports(e){d=e}},S=c(Object.freeze({__proto__:null,default:{}}));function R(){return E||(E=1,f.exports=(e=e||function(e,n){var t;if("undefined"!=typeof window&&window.crypto&&(t=window.crypto),"undefined"!=typeof self&&self.crypto&&(t=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t&&"undefined"!=typeof window&&window.msCrypto&&(t=window.msCrypto),!t&&void 0!==u&&u.crypto&&(t=u.crypto),!t)try{t=S}catch(e){}var o=function(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},r=Object.create||function(){function e(){}return function(n){var t;return e.prototype=n,t=new e,e.prototype=null,t}}(),i={},a=i.lib={},s=a.Base={extend:function(e){var n=r(this);return e&&n.mixIn(e),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=a.WordArray=s.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=t!=n?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var n=this.words,t=e.words,o=this.sigBytes,r=e.sigBytes;if(this.clamp(),o%4)for(var i=0;i<r;i++){var a=t[i>>>2]>>>24-i%4*8&255;n[o+i>>>2]|=a<<24-(o+i)%4*8}else for(var s=0;s<r;s+=4)n[o+s>>>2]=t[s>>>2];return this.sigBytes+=r,this},clamp:function(){var n=this.words,t=this.sigBytes;n[t>>>2]&=4294967295<<32-t%4*8,n.length=e.ceil(t/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var n=[],t=0;t<e;t+=4)n.push(o());return new c.init(n,e)}}),_=i.enc={},l=_.Hex={stringify:function(e){for(var n=e.words,t=e.sigBytes,o=[],r=0;r<t;r++){var i=n[r>>>2]>>>24-r%4*8&255;o.push((i>>>4).toString(16)),o.push((15&i).toString(16))}return o.join("")},parse:function(e){for(var n=e.length,t=[],o=0;o<n;o+=2)t[o>>>3]|=parseInt(e.substr(o,2),16)<<24-o%8*4;return new c.init(t,n/2)}},E=_.Latin1={stringify:function(e){for(var n=e.words,t=e.sigBytes,o=[],r=0;r<t;r++){var i=n[r>>>2]>>>24-r%4*8&255;o.push(String.fromCharCode(i))}return o.join("")},parse:function(e){for(var n=e.length,t=[],o=0;o<n;o++)t[o>>>2]|=(255&e.charCodeAt(o))<<24-o%4*8;return new c.init(t,n)}},d=_.Utf8={stringify:function(e){try{return decodeURIComponent(escape(E.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return E.parse(unescape(encodeURIComponent(e)))}},f=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(n){var t,o=this._data,r=o.words,i=o.sigBytes,a=this.blockSize,s=i/(4*a),u=(s=n?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,_=e.min(4*u,i);if(u){for(var l=0;l<u;l+=a)this._doProcessBlock(r,l);t=r.splice(0,u),o.sigBytes-=_}return new c.init(t,_)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=f.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.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(n,t){return new e.init(t).finalize(n)}},_createHmacHelper:function(e){return function(n,t){return new R.HMAC.init(e,t).finalize(n)}}});var R=i.algo={};return i}(Math),e)),d;var e}l.exports=R().enc.Utf8;var I,g={},T={get exports(){return g},set exports(e){g=e}};function p(){return I||(I=1,function(e,n){var t;e.exports=(t=R(),function(){var e=t,n=e.lib.WordArray;function o(e,t,o){for(var r=[],i=0,a=0;a<t;a++)if(a%4){var s=o[e.charCodeAt(a-1)]<<a%4*2|o[e.charCodeAt(a)]>>>6-a%4*2;r[i>>>2]|=s<<24-i%4*8,i++}return n.create(r,i)}e.enc.Base64={stringify:function(e){var n=e.words,t=e.sigBytes,o=this._map;e.clamp();for(var r=[],i=0;i<t;i+=3)for(var a=(n[i>>>2]>>>24-i%4*8&255)<<16|(n[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|n[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s<t;s++)r.push(o.charAt(a>>>6*(3-s)&63));var u=o.charAt(64);if(u)for(;r.length%4;)r.push(u);return r.join("")},parse:function(e){var n=e.length,t=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i<t.length;i++)r[t.charCodeAt(i)]=i}var a=t.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(n=s)}return o(e,n,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),t.enc.Base64)}(T)),g}p();var O=function(e){try{return JSON.stringify(e)}catch(e){return"json stringify failed"}};var C,h,N,A=(C=(new Date).getTime(),h=performance&&performance.now&&1e3*performance.now()||0,"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=16*Math.random();return C>0?(n=(C+n)%16|0,C=Math.floor(C/16)):(n=(h+n)%16|0,h=Math.floor(h/16)),("x"===e?n:3&n|8).toString(16)}))),D=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t},v=function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t="".concat(e);t.length<n;)t="0".concat(t);return t},m=function(e){var n=new Date(e),t=n.getUTCFullYear(),o=v(n.getUTCMonth()+1),r=v(n.getUTCDate()),i=v(n.getUTCHours()),a=v(n.getUTCMinutes()),s=v(n.getUTCSeconds()),u=v(n.getUTCMilliseconds(),3);return"".concat(t,"-").concat(o,"-").concat(r," ").concat(i,":").concat(a,":").concat(s,".").concat(u)},y={version:"000001",flag:"0"},b=function(e){return e.reduce((function(e,n){var t,o,r,a,s,u,c,_=(o=(t=n).message,r=t.logLevel,a=t.tags,s=t.timestamp,t.id,u=D(t,["message","logLevel","tags","timestamp","id"]),c=Object.assign({time:m(s),logLevel:i[r],message:o,tags:a,laplaceSessionId:A},u),O(c)),l=function(e){for(var n=e.length,t=e.length-1;t>=0;t--){var o=e.charCodeAt(t);o>127&&o<=2047?n++:o>2047&&o<=65535&&(n+=2),o>=56320&&o<=57343&&t--}return n}(_),E=e[e.length-1];return E.currentSize+l>30720?e.push({messages:[_],ids:[n.id],currentSize:l}):(E.messages.push(_),E.ids.push(n.id),E.currentSize+=l),e}),[{messages:[],ids:[],currentSize:0}]).filter((function(e){return e.currentSize>0})).map((function(e){return{messages:e.messages.join("\\n"),ids:e.ids,meta:y}}))};function P(e){return new Promise((function(n,t){e.oncomplete=e.onsuccess=function(){return n(e.result)},e.onabort=e.onerror=function(){return t(e.error)}}))}function L(e,n){var t=indexedDB.open(e);t.onupgradeneeded=function(){return t.result.createObjectStore(n)};var o=P(t);return function(e,t){return o.then((function(o){return t(o.transaction(n,e).objectStore(n))}))}}function w(){return N||(N=L("keyval-store","keyval")),N}function M(e,n){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:w())("readwrite",(function(t){return t.put(n,e),P(t.transaction)}))}function F(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:w())("readwrite",(function(n){return e.forEach((function(e){return n.delete(e)})),P(n.transaction)}))}function U(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:w())("readwrite",(function(e){return e.clear(),P(e.transaction)}))}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w();return e("readonly",(function(n){if(n.getAll&&n.getAllKeys)return Promise.all([P(n.getAllKeys()),P(n.getAll())]).then((function(e){var n=_slicedToArray(e,2),t=n[0],o=n[1];return t.map((function(e,n){return[e,o[n]]}))}));var t=[];return e("readonly",(function(e){return function(e,n){return e.openCursor().onsuccess=function(){this.result&&(n(this.result),this.result.continue())},P(e.transaction)}(e,(function(e){return t.push([e.key,e.value])})).then((function(){return t}))}))}))}var B=function(e,n,t,o){return new(t||(t=Promise))((function(r,i){function a(e){try{u(o.next(e))}catch(e){i(e)}}function s(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}u((o=o.apply(e,n||[])).next())}))},x=new(function(){function e(){_classCallCheck(this,e),this.queue=[],this.processing=!1}return _createClass(e,[{key:"enqueue",value:function(e){var n=this;return new Promise((function(t,o){n.queue.push((function(){return B(n,void 0,void 0,_regeneratorRuntime().mark((function n(){var r;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,e();case 3:r=n.sent,t(r),n.next=10;break;case 7:n.prev=7,n.t0=n.catch(0),o(n.t0);case 10:case"end":return n.stop()}}),n,null,[[0,7]])})))})),n.processing||n.processNext()}))}},{key:"processNext",value:function(){return B(this,void 0,void 0,_regeneratorRuntime().mark((function e(){var n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this.queue.length){e.next=3;break}return this.processing=!1,e.abrupt("return");case 3:return this.processing=!0,n=this.queue.shift(),e.prev=5,e.next=8,n();case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),console.error("Task error:",e.t0);case 13:this.processNext();case 14:case"end":return e.stop()}}),e,this,[[5,10]])})))}}]),e}()),V=function(e,n,t,o){return new(t||(t=Promise))((function(r,i){function a(e){try{u(o.next(e))}catch(e){i(e)}}function s(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}u((o=o.apply(e,n||[])).next())}))},W=_createClass((function e(n){var t=this;_classCallCheck(this,e),this.set=function(e,n){try{return!t.disableDB&&x.enqueue((function(){return V(t,void 0,void 0,_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",M(e,n,this.store));case 1:case"end":return t.stop()}}),t,this)})))}))}catch(e){t.disableDB=!0}},this.makeNextId=function(){return t.nextId+=1,t.nextId},this.addLog=function(e){t.addToMemory(e);var n=e.id;return Number.isNaN(n),t.set("".concat(n),e)},this.addToMemory=function(e,n){t.memoryStoreData=n?[].concat(e):t.memoryStoreData.concat(e)},this.syncFromIDB=function(){return V(t,void 0,void 0,_regeneratorRuntime().mark((function e(){var n,t,o,r,i,a=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x.enqueue((function(){return V(a,void 0,void 0,_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",k(this.store));case 1:case"end":return e.stop()}}),e,this)})))}));case 2:if(t=e.sent,o=t.filter((function(e){var n=_slicedToArray(e,2),t=n[0],o=n[1];return!(null==o?void 0:o.id)&&0!==(null==o?void 0:o.id)||!Number.isInteger(Number(t))})),r=o.map((function(e){return e[0]})),i=t.filter((function(e){var n=_slicedToArray(e,1)[0];return!r.includes(n)})).sort((function(e,n){var t,o;return(null===(t=e[1])||void 0===t?void 0:t.id)-(null===(o=n[1])||void 0===o?void 0:o.id)})).map((function(e){return _slicedToArray(e,2)[1]})),this.addToMemory(i,!0),!(r.length>0)){e.next=10;break}return e.next=10,this.deleteLogs(r);case 10:return this.nextId=0===this.memoryStoreData.length?0:null===(n=this.memoryStoreData[this.memoryStoreData.length-1])||void 0===n?void 0:n.id,e.abrupt("return",this.memoryStoreData);case 12:case"end":return e.stop()}}),e,this)})))},this.getStore=function(){return t.memoryStoreData},this.filterStore=function(e){var n=[e].flatMap((function(e){return e}));return e?t.memoryStoreData.filter((function(e){return n.some((function(n){return"string"==typeof n?e.tags.some((function(e){return n===e})):"function"==typeof n&&n(e)}))})):t.memoryStoreData},this.deleteLogs=function(e){return V(t,void 0,void 0,_regeneratorRuntime().mark((function n(){var t=this;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.deleteMemoryLogs(e),n.abrupt("return",x.enqueue((function(){return V(t,void 0,void 0,_regeneratorRuntime().mark((function n(){return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",F(e.map((function(e){return"".concat(e)})),this.store));case 1:case"end":return n.stop()}}),n,this)})))})));case 2:case"end":return n.stop()}}),n,this)})))},this.deleteLogsAfterReport=function(e){return V(t,void 0,void 0,_regeneratorRuntime().mark((function n(){return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.deleteMemoryLogs(e),n.abrupt("return",F(e.map((function(e){return"".concat(e)})),this.store));case 2:case"end":return n.stop()}}),n,this)})))},this.deleteMemoryLogs=function(e){t.memoryStoreData=t.memoryStoreData.filter((function(n){var t;return!(null===(t=e.includes)||void 0===t?void 0:t.call(e,n.id))}))},this.reset=function(){t.memoryStoreData=[],x.enqueue((function(){return V(t,void 0,void 0,_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",U(this.store));case 1:case"end":return e.stop()}}),e,this)})))}))},this.nextId=0,this.memoryStoreData=[],this.disableDB=!1,x.enqueue((function(){return V(t,void 0,void 0,_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",L(n,n+"-store"));case 1:case"end":return e.stop()}}),e)})))})).then((function(e){t.store=e}))}));function G(e,n,t){var o=e.plugins;return Array.isArray(o)?o.map((function(e){return e[n]})).reduce((function(n,t){var o=null==t?void 0:t(e,n);return null!=o?o:n}),t):t}var H=function(e){return new Promise((function(n){var t=new XMLHttpRequest;t.open(e.type||"GET",e.url,!0),t.withCredentials=e.withCredentials,t.onerror=function(t){n({error:t,report:e.reportItem})},t.onreadystatechange=function(){if(4===t.readyState){var o=t.status;n(o>=200&&o<300?{report:e.reportItem}:{error:"Request failed, status: ".concat(o,", responseText: ").concat(t.responseText),report:e.reportItem})}},Object.entries(e.headers).forEach((function(e){var n=_slicedToArray(e,2),o=n[0],r=n[1];r&&o&&t.setRequestHeader(o,r)})),t.send(e.data)}))},J="Expected a function",Y=NaN,j="[object Symbol]",z=/^\\s+|\\s+$/g,K=/^[-+]0x[0-9a-f]+$/i,Z=/^0b[01]+$/i,X=/^0o[0-7]+$/i,q=parseInt,Q="object"==_typeof(u)&&u&&u.Object===Object&&u,$="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,ee=Q||$||Function("return this")(),ne=Object.prototype.toString,te=Math.max,oe=Math.min,re=function(){return ee.Date.now()};function ie(e,n,t){var o,r,i,a,s,u,c=0,_=!1,l=!1,E=!0;if("function"!=typeof e)throw new TypeError(J);function d(n){var t=o,i=r;return o=r=void 0,c=n,a=e.apply(i,t)}function f(e){var t=e-u;return void 0===u||t>=n||t<0||l&&e-c>=i}function S(){var e=re();if(f(e))return R(e);s=setTimeout(S,function(e){var t=n-(e-u);return l?oe(t,i-(e-c)):t}(e))}function R(e){return s=void 0,E&&o?d(e):(o=r=void 0,a)}function I(){var e=re(),t=f(e);if(o=arguments,r=this,u=e,t){if(void 0===s)return function(e){return c=e,s=setTimeout(S,n),_?d(e):a}(u);if(l)return s=setTimeout(S,n),d(u)}return void 0===s&&(s=setTimeout(S,n)),a}return n=ue(n)||0,ae(t)&&(_=!!t.leading,i=(l="maxWait"in t)?te(ue(t.maxWait)||0,n):i,E="trailing"in t?!!t.trailing:E),I.cancel=function(){void 0!==s&&clearTimeout(s),c=0,o=u=r=s=void 0},I.flush=function(){return void 0===s?a:R(re())},I}function ae(e){var n=_typeof(e);return!!e&&("object"==n||"function"==n)}function se(e){return"symbol"==_typeof(e)||function(e){return!!e&&"object"==_typeof(e)}(e)&&ne.call(e)==j}function ue(e){if("number"==typeof e)return e;if(se(e))return Y;if(ae(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=ae(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(z,"");var t=Z.test(e);return t||X.test(e)?q(e.slice(2),t?2:8):K.test(e)?Y:+e}var ce=function(e,n,t){var o=!0,r=!0;if("function"!=typeof e)throw new TypeError(J);return ae(t)&&(o="leading"in t?!!t.leading:o,r="trailing"in t?!!t.trailing:r),ie(e,n,{leading:o,maxWait:n,trailing:r})},_e=function(e,n,t,o){return new(t||(t=Promise))((function(r,i){function a(e){try{u(o.next(e))}catch(e){i(e)}}function s(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}u((o=o.apply(e,n||[])).next())}))},le={databaseName:"laplace-default-db"},Ee=function(e,n,t,o){var r=Date.now();return Object.assign({message:e,logLevel:t,tags:n,timestamp:r},o)},de=_createClass((function e(n){var t=this;_classCallCheck(this,e),this.cacheFilter=[],this.log=function(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.log,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return _e(t,void 0,void 0,_regeneratorRuntime().mark((function t(){var i,s,u;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=[n,this.publicTags].flatMap((function(e){return e})),s=Ee(e,i,o,Object.assign(Object.assign({},this.publicAttributes),r)),(u=G(this,a.beforeLog,s)).id=this.idbManager.makeNextId(),this.idbManager.addLog(u),G(this,a.afterLog,u);case 6:case"end":return t.stop()}}),t,this)})))},this.deleteLog=function(e,n){if(!Array.isArray(n)||(t.idbManager.deleteLogs(n),e)){var o=t.idbManager.filterStore(e).map((function(e){return e.id}));t.idbManager.deleteLogs(o)}},this.deleteAll=function(){t.idbManager.reset()},this.getLogs=function(e){return t.idbManager.filterStore(e)},this.setReportUrl=function(e){t.reportUrl=e},this.throttleReport=ce((function(e){t.reportByHttps(e),t.cacheFilter=[]}),5e3,{leading:!0,trailing:!0}),this.reportByFilter=function(e){t.cacheFilter=t.cacheFilter.concat(e),t.throttleReport(t.cacheFilter)},this.reportByHttps=function(e){return _e(t,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,o=this;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=function(){return _e(o,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,o,r;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if((t=this.idbManager.filterStore(e))&&0!==t.length){n.next=3;break}return n.abrupt("return");case 3:return o=G(this,a.beforeReport,t),r=b(o),n.abrupt("return",this.commonReport(r));case 6:case"end":return n.stop()}}),n,this)})))},x.enqueue(t);case 2:case"end":return n.stop()}}),n)})))},this.directReport=function(e,n){var o,r,a,s,u=null!==(o=n.sampleRate)&&void 0!==o?o:1;if(!(Math.random()>u))return s=n.useRawData?e:Object.assign({message:e,time:m(Date.now()),tags:[].concat(_toConsumableArray(null!==(r=null==n?void 0:n.tags)&&void 0!==r?r:[]),_toConsumableArray(t.publicTags)),logLevel:null!==(a=null==n?void 0:n.logLevel)&&void 0!==a?a:i.log,laplaceSessionId:A},t.publicAttributes),t.commonReport([{messages:s,meta:y}],!1)},this.commonReport=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t.reportUrl)return Promise.all(e.map((function(e){return{url:t.reportUrl,type:"POST",withCredentials:!1,headers:{},data:O({messages:e.messages,meta:e.meta}),reportItem:e}})).map(H)).then((function(e){var o=e.filter((function(e){return!e.error})).flatMap((function(e){return e.report.ids}));if(G(t,a.afterReport,{removeIds:o}),n)return t.idbManager.deleteLogsAfterReport(o)}))};var o=n.databaseName,r=n.reportUrl,s=void 0===r?"":r,u=n.plugins,c=void 0===u?[]:u,_=n.idbManager,l=n.publicTags,E=void 0===l?[]:l,d=n.publicAttributes,f=void 0===d?{}:d;this.databaseName=o,this.reportUrl=s,this.plugins=c,this.idbManager=_,this.publicTags=E,this.publicAttributes=f,G(this,a.afterInit)}));de.init=function(e){return _e(void 0,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,o;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.databaseName,o=new W(void 0===t?"laplace-default-db":t),n.next=4,o.syncFromIDB();case 4:return n.abrupt("return",new de(Object.assign(Object.assign(Object.assign({},le),e),{idbManager:o})));case 5:case"end":return n.stop()}}),n)})))};var fe,Se,Re={enable:!0,gatewayEndPoint:"",logLevel:{debug:!1,log:!0,info:!1,print:!1,warn:!0,error:!0},logLevelAutoReport:{debug:!0,log:!0,info:!0,warn:!0,error:!0}},Ie=(null===globalThis||void 0===globalThis?void 0:globalThis.ZMCoBrowsingConfig)||{},ge={enable:Ie.enableZCBClientLog,gatewayEndPoint:Ie.gatewayEndPoint},Te=function(){var e,n=null!==(e=ge.gatewayEndPoint)&&void 0!==e?e:Re.gatewayEndPoint;return n||""}(),pe=Re,Oe=(fe="",Se=void 0,{setDynamicReportUrl:function(e){fe=e},getDynamicReportUrl:function(){return fe},getCurrentReportUrl:function(){return fe||Te},setDynamicLaplaceEnabled:function(e){Se=e},getDynamicLaplaceEnabled:function(){return Se}}),Ce=function(){return void 0!==Oe.getDynamicLaplaceEnabled()?Oe.getDynamicLaplaceEnabled():!!(null!==(e=ge.enable)&&void 0!==e?e:null==Re?void 0:Re.enable);var e},he=function(e){_inherits(t,e);var n=_createSuper(t);function t(e){var o;return _classCallCheck(this,t),(o=n.call(this)).config={debug:!1},o.debugLog=function(e){o.config.debug&&console.log("[AutoCleanLogPlugin]: ".concat(e))},o.afterInit=function(e){var n=o.config.expireBefore;if(n){var t=e.idbManager.getStore(),r=("function"==typeof n?t.filter(n):t.filter((function(e){return e.timestamp<n}))).map((function(e){return e.id}));e.deleteLog(void 0,r),o.debugLog("afterInit, clean log id: ".concat(r))}else o.debugLog("early return on beforeInit because expireBefore is falsy")},e&&(o.config=e),o}return _createClass(t)}(s),Ne=["RESOURCE_ERROR","JS_ERROR","UNHANDLED_PROMISE_REJECTION"],Ae=function(e){_inherits(t,e);var n=_createSuper(t);function t(e){var o;return _classCallCheck(this,t),(o=n.call(this)).config={debug:!1,publicTags:[]},o.errorCount=0,o.hashErrors={},o.addPublicTags=function(e){var n;return null===(n=o.config.publicTags)||void 0===n?void 0:n.concat(e).filter((function(e){return e}))},o.debugLog=function(e){o.config.debug&&console.log("[AutoLogErrorPlugin]:",e)},o.ignore=function(e){var n,t,r,i,a;return void 0!==(null===(n=o.config)||void 0===n?void 0:n.maxErrorCount)&&o.errorCount>=(null===(t=o.config)||void 0===t?void 0:t.maxErrorCount)||!!(null===(r=o.config)||void 0===r?void 0:r.ignoredErrorMsgKeywords)&&(e&&(null===(a=null===(i=o.config)||void 0===i?void 0:i.ignoredErrorMsgKeywords)||void 0===a?void 0:a.some((function(n){return null==e?void 0:e.includes(n)}))))},o.report=ce((function(e){}),600,{trailing:!0,leading:!1}),o.afterInit=function(e){if(self.addEventListener){var n=function(n,t,r,a){o.debugLog(r),o.errorCount+=1;try{return(s=n,u=(new TextEncoder).encode(s),crypto.subtle.digest("SHA-1",u).then((function(e){return Array.from(new Uint8Array(e)).map((function(e){return e.toString(16).padStart(2,"0")})).join("")}))).then((function(r){return o.hashErrors[r]?"dismissed":(o.hashErrors[r]=!0,e.log(n,o.addPublicTags([].concat(t)),null!=a?a:i.error,{extraProperties:{messageHash:r}}).then((function(){return e.reportByFilter(Ne)})))})).catch(console.error)}catch(e){return console.error(e),Promise.resolve(e)}var s,u};try{self.addEventListener("error",(function(e){var t,r,i,a,s,u,c;if(!o.ignore(null==e?void 0:e.message)){if("function"==typeof o.config.onError){var _=o.config.onError(e),l=_.message,E=_.tags,d=_.logLevel;return n(l,["JS_ERROR"].concat(_toConsumableArray(E)),e,d)}if((null==e?void 0:e.target)&&((null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.src)||(null===(r=null==e?void 0:e.target)||void 0===r?void 0:r.href))){var f="Load Resource Error in ".concat(null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.tagName," element: ").concat((null===(a=null==e?void 0:e.target)||void 0===a?void 0:a.src)||(null===(s=null==e?void 0:e.target)||void 0===s?void 0:s.href));return n(f,"RESOURCE_ERROR",e)}var S="Javascript Runtime Error in ".concat(null==e?void 0:e.filename," (").concat(null==e?void 0:e.lineno,":").concat(null==e?void 0:e.colno,"): ").concat(null==e?void 0:e.message,"\\nStack: ").concat(null!==(c=null===(u=null==e?void 0:e.error)||void 0===u?void 0:u.stack)&&void 0!==c?c:null==e?void 0:e.stack);return n(S,"JS_ERROR",e)}})),self.addEventListener("unhandledrejection",(function(e){var t;if(!o.ignore(null===(t=null==e?void 0:e.reason)||void 0===t?void 0:t.message)){if("function"==typeof o.config.onError){var r=o.config.onError(e),i=r.message,a=r.tags,s=r.logLevel;return n(i,["UNHANDLED_PROMISE_REJECTION"].concat(_toConsumableArray(a)),e,s)}var u,c=null==e?void 0:e.reason;return u="string"==typeof c?"Promise Error: ".concat(c):c instanceof Error?"Promise Error: ".concat(c.message," ").concat(c.name," ").concat(c.stack):"object"===_typeof(c)?"Promise Error with reason: ".concat(O(c)):"Promise Error with unrecognized reason: ".concat(c),n(u,"UNHANDLED_PROMISE_REJECTION",e)}}))}catch(e){console.error(e)}o.debugLog("afterInit, add listener")}},e&&(o.config=e),o.config.publicTags=[].concat(null==e?void 0:e.publicTags),o}return _createClass(t)}(s),De="__lodash_hash_undefined__",ve=9007199254740991,me="[object Arguments]",ye="[object Function]",be="[object GeneratorFunction]",Pe="[object Symbol]",Le=/^\\[object .+?Constructor\\]$/,we=/^(?:0|[1-9]\\d*)$/,Me="object"==_typeof(u)&&u&&u.Object===Object&&u,Fe="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,Ue=Me||Fe||Function("return this")();function ke(e,n){return!!(e?e.length:0)&&function(e,n,t){if(n!=n)return function(e,n,t,o){var r=e.length,i=t+(o?1:-1);for(;o?i--:++i<r;)if(n(e[i],i,e))return i;return-1}(e,We,t);var o=t-1,r=e.length;for(;++o<r;)if(e[o]===n)return o;return-1}(e,n,0)>-1}function Be(e,n,t){for(var o=-1,r=e?e.length:0;++o<r;)if(t(n,e[o]))return!0;return!1}function xe(e,n){for(var t=-1,o=e?e.length:0,r=Array(o);++t<o;)r[t]=n(e[t],t,e);return r}function Ve(e,n){for(var t=-1,o=n.length,r=e.length;++t<o;)e[r+t]=n[t];return e}function We(e){return e!=e}function Ge(e,n){return e.has(n)}function He(e,n){return function(t){return e(n(t))}}var Je,Ye=Array.prototype,je=Function.prototype,ze=Object.prototype,Ke=Ue["__core-js_shared__"],Ze=(Je=/[^.]+$/.exec(Ke&&Ke.keys&&Ke.keys.IE_PROTO||""))?"Symbol(src)_1."+Je:"",Xe=je.toString,qe=ze.hasOwnProperty,Qe=ze.toString,$e=RegExp("^"+Xe.call(qe).replace(/[\\\\^$.*+?()[\\]{}|]/g,"\\\\$&").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$"),en=Ue.Symbol,nn=He(Object.getPrototypeOf,Object),tn=ze.propertyIsEnumerable,on=Ye.splice,rn=en?en.isConcatSpreadable:void 0,an=Object.getOwnPropertySymbols,sn=Math.max,un=On(Ue,"Map"),cn=On(Object,"create");function _n(e){var n=-1,t=e?e.length:0;for(this.clear();++n<t;){var o=e[n];this.set(o[0],o[1])}}function ln(e){var n=-1,t=e?e.length:0;for(this.clear();++n<t;){var o=e[n];this.set(o[0],o[1])}}function En(e){var n=-1,t=e?e.length:0;for(this.clear();++n<t;){var o=e[n];this.set(o[0],o[1])}}function dn(e){var n=-1,t=e?e.length:0;for(this.__data__=new En;++n<t;)this.add(e[n])}function fn(e,n){var t=mn(e)||vn(e)?function(e,n){for(var t=-1,o=Array(e);++t<e;)o[t]=n(t);return o}(e.length,String):[],o=t.length,r=!!o;for(var i in e)!n&&!qe.call(e,i)||r&&("length"==i||An(i,o))||t.push(i);return t}function Sn(e,n){for(var t,o,r=e.length;r--;)if((t=e[r][0])===(o=n)||t!=t&&o!=o)return r;return-1}function Rn(e,n,t,o,r){var i=-1,a=e.length;for(t||(t=Nn),r||(r=[]);++i<a;){var s=e[i];n>0&&t(s)?n>1?Rn(s,n-1,t,o,r):Ve(r,s):o||(r[r.length]=s)}return r}function In(e){if(!Pn(e)||(n=e,Ze&&Ze in n))return!1;var n,t=bn(e)||function(e){var n=!1;if(null!=e&&"function"!=typeof e.toString)try{n=!!(e+"")}catch(e){}return n}(e)?$e:Le;return t.test(function(e){if(null!=e){try{return Xe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function gn(e){if(!Pn(e))return function(e){var n=[];if(null!=e)for(var t in Object(e))n.push(t);return n}(e);var n,t,o,r=(t=(n=e)&&n.constructor,o="function"==typeof t&&t.prototype||ze,n===o),i=[];for(var a in e)("constructor"!=a||!r&&qe.call(e,a))&&i.push(a);return i}function Tn(e){return function(e,n,t){var o=n(e);return mn(e)?o:Ve(o,t(e))}(e,wn,hn)}function pn(e,n){var t,o,r=e.__data__;return("string"==(o=_typeof(t=n))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==t:null===t)?r["string"==typeof n?"string":"hash"]:r.map}function On(e,n){var t=function(e,n){return null==e?void 0:e[n]}(e,n);return In(t)?t:void 0}_n.prototype.clear=function(){this.__data__=cn?cn(null):{}},_n.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},_n.prototype.get=function(e){var n=this.__data__;if(cn){var t=n[e];return t===De?void 0:t}return qe.call(n,e)?n[e]:void 0},_n.prototype.has=function(e){var n=this.__data__;return cn?void 0!==n[e]:qe.call(n,e)},_n.prototype.set=function(e,n){return this.__data__[e]=cn&&void 0===n?De:n,this},ln.prototype.clear=function(){this.__data__=[]},ln.prototype.delete=function(e){var n=this.__data__,t=Sn(n,e);return!(t<0)&&(t==n.length-1?n.pop():on.call(n,t,1),!0)},ln.prototype.get=function(e){var n=this.__data__,t=Sn(n,e);return t<0?void 0:n[t][1]},ln.prototype.has=function(e){return Sn(this.__data__,e)>-1},ln.prototype.set=function(e,n){var t=this.__data__,o=Sn(t,e);return o<0?t.push([e,n]):t[o][1]=n,this},En.prototype.clear=function(){this.__data__={hash:new _n,map:new(un||ln),string:new _n}},En.prototype.delete=function(e){return pn(this,e).delete(e)},En.prototype.get=function(e){return pn(this,e).get(e)},En.prototype.has=function(e){return pn(this,e).has(e)},En.prototype.set=function(e,n){return pn(this,e).set(e,n),this},dn.prototype.add=dn.prototype.push=function(e){return this.__data__.set(e,De),this},dn.prototype.has=function(e){return this.__data__.has(e)};var Cn=an?He(an,Object):kn,hn=an?function(e){for(var n=[];e;)Ve(n,Cn(e)),e=nn(e);return n}:kn;function Nn(e){return mn(e)||vn(e)||!!(rn&&e&&e[rn])}function An(e,n){return!!(n=null==n?ve:n)&&("number"==typeof e||we.test(e))&&e>-1&&e%1==0&&e<n}function Dn(e){if("string"==typeof e||function(e){return"symbol"==_typeof(e)||Ln(e)&&Qe.call(e)==Pe}(e))return e;var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n}function vn(e){return function(e){return Ln(e)&&yn(e)}(e)&&qe.call(e,"callee")&&(!tn.call(e,"callee")||Qe.call(e)==me)}var mn=Array.isArray;function yn(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=ve}(e.length)&&!bn(e)}function bn(e){var n=Pn(e)?Qe.call(e):"";return n==ye||n==be}function Pn(e){var n=_typeof(e);return!!e&&("object"==n||"function"==n)}function Ln(e){return!!e&&"object"==_typeof(e)}function wn(e){return yn(e)?fn(e,!0):gn(e)}var Mn,Fn,Un=(Mn=function(e,n){return null==e?{}:(n=xe(Rn(n,1),Dn),function(e,n){return function(e,n,t){for(var o=-1,r=n.length,i={};++o<r;){var a=n[o],s=e[a];t(s,a)&&(i[a]=s)}return i}(e=Object(e),n,(function(n,t){return t in e}))}(e,function(e,n,t,o){var r,i=-1,a=ke,s=!0,u=e.length,c=[],_=n.length;if(!u)return c;t&&(n=xe(n,(r=t,function(e){return r(e)}))),o?(a=Be,s=!1):n.length>=200&&(a=Ge,s=!1,n=new dn(n));e:for(;++i<u;){var l=e[i],E=t?t(l):l;if(l=o||0!==l?l:0,s&&E==E){for(var d=_;d--;)if(n[d]===E)continue e;c.push(l)}else a(n,E,o)||c.push(l)}return c}(Tn(e),n)))},Fn=sn(void 0===Fn?Mn.length-1:Fn,0),function(){for(var e=arguments,n=-1,t=sn(e.length-Fn,0),o=Array(t);++n<t;)o[n]=e[Fn+n];n=-1;for(var r=Array(Fn+1);++n<Fn;)r[n]=e[n];return r[Fn]=o,function(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}(Mn,this,r)});function kn(){return[]}var Bn=Un,xn=function(e,n,t,o){return new(t||(t=Promise))((function(r,i){function a(e){try{u(o.next(e))}catch(e){i(e)}}function s(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}u((o=o.apply(e,n||[])).next())}))},Vn=["STATIC_RESOURCE_TIMING"],Wn=function(e,n){if(!n)return!0;for(var t=0;t<n.length;t++)if(e.includes(n[t]))return!0;return!1};var Gn=function(e){_inherits(t,e);var n=_createSuper(t);function t(e){var o;return _classCallCheck(this,t),(o=n.call(this)).config={debug:!1,publicTags:[],excludeResourceTimingKeys:[],userRegion:"",enable:!1},o.entryList=[],o.debugLog=function(e){o.config.debug&&console.log("[AutoLogStaticResourcePlugin]:",e)},o.addPublicTags=function(e){var n;return null===(n=o.config.publicTags)||void 0===n?void 0:n.concat(e).filter((function(e){return e}))},o.pickEntryProperties=function(e){var n,t=e.domainLookupEnd,r=e.domainLookupStart,i=e.redirectStart,a=e.redirectEnd,s=e.connectStart,u=e.connectEnd,c=e.secureConnectionStart,_=e.responseEnd,l=e.responseStart,E=e.requestStart,d=0!==r,f=d?Math.round(t-r):-1,S=d?Math.round(l-E):-1,R=d?Math.round(a-i):-1,I=d?Math.round(u-s):-1;c&&d&&(I=Math.round(u-c));var g,T,p=d?Math.round(_-l):-1,O=navigator.connection?navigator.connection.effectiveType:"Unknown",C=Bn(e,o.config.excludeResourceTimingKeys.concat("toJSON","Symbol(Symbol.toStringTag)","serverTiming")),h=(g=null!==(n=C.name)&&void 0!==n?n:"",(T=(g=g.replace(/\\/+$/,"")).match(/[^/]+$/))?T[0]:null);return Object.assign(Object.assign({},C),{name:h,url:C.name,dns:f,ttfb:S,redirect:R,connect:I,download:p,network:O,duration:Math.round(e.duration),userRegion:o.config.userRegion})},o.afterInit=function(e){var n=o.addPublicTags(["STATIC_RESOURCE_TIMING"]),t=Boolean(o.config.enable);new PerformanceObserver((function(r){r.getEntries().forEach((function(r){return xn(_assertThisInitialized(o),void 0,void 0,_regeneratorRuntime().mark((function o(){var a,s;return _regeneratorRuntime().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(a=r.name,!Wn(a,this.config.includeResourceList)){o.next=11;break}if(s=this.pickEntryProperties(r),!t){o.next=9;break}return o.next=6,e.log(s,n,i.info);case 6:t&&e.reportByFilter(Vn),o.next=11;break;case 9:return o.next=11,e.log(s,n,i.info);case 11:case"end":return o.stop()}}),o,this)})))}))})).observe({type:"resource",buffered:!0})},e&&(o.config=Object.assign({},o.config,e)),o}return _createClass(t)}(s),Hn=function(){function e(){_classCallCheck(this,e),globalThis.ZCB_CoBrowseConfigController=this,this.requestNpmModeAgentConfig()}return _createClass(e,[{key:"getCoBrowsingConfig",value:function(e){var n;return e?globalThis.ZMCoBrowsingConfig?globalThis.ZMCoBrowsingConfig[e]:null===(n=this.coBrowsingConfig)||void 0===n?void 0:n[e]:globalThis.ZMCoBrowsingConfig||this.coBrowsingConfig}},{key:"setCoBrowsingConfig",value:function(e){this.coBrowsingConfig=Object.assign(Object.assign({},this.coBrowsingConfig),e),globalThis.ZMCoBrowsingConfig=Object.assign(Object.assign({},globalThis.ZMCoBrowsingConfig),this.coBrowsingConfig)}},{key:"requestNpmModeAgentConfig",value:function(){var e,n,t;if(null===(e=globalThis.ZCB_NPM_SDK_AGENT_MAIN)||void 0===e?void 0:e.isInnerFrame(document)){var o=null;try{o=globalThis.parent.ZCB_CoBrowseConfigController.coBrowsingConfig}catch(e){}globalThis.ZCB_CoBrowseConfigController.setCoBrowsingConfig(Object.assign({isViewer:null===(n=globalThis.ZCB_NPM_SDK_AGENT_SESSION_CONTEXT)||void 0===n?void 0:n.isViewer,appKey:null===(t=globalThis.ZCB_NPM_SDK_AGENT_SESSION_CONTEXT)||void 0===t?void 0:t.appKey},o))}}}],[{key:"create",value:function(){return globalThis.ZCB_CoBrowseConfigController||new e}}]),e}().create(),Jn=function(e,n){return"".concat(e).concat(n)};!function e(n,t){var o={},r=function(){var r=n[i];"string"==typeof r?o[i]=Jn(t,r):"function"==typeof r?o[i]=function(){return Jn(t,r.apply(void 0,arguments))}:"object"===_typeof(r)&&(r instanceof RegExp||(o[i]=e(r,t)))};for(var i in n)r();return o}({log:{report:"/report-log"},blob:{uploadBlob:"/upload-blob",getBlobUrl:function(e){return"/cps-blob-".concat(e)},getBlobUrlReg:/cps-blob-([^?#\\/]+)/}},"/co-browsing");var Yn,jn,zn,Kn={get createSession(){return"/sdkapi/zcb/sessions"},get getSessionStatus(){return"/sdkapi/zcb/sessions"},get refreshZCBToken(){return"/sdkapi/zcb/refresh-tokens"},get joinSession(){return"/sdkapi/zcb/cobrowse-codes/{pinCode}/session"},get reportSessionStatusLog(){return"/sdkapi/zcb/cbs/{appKey}/session-status"}};!function(e){e.LOCAL="local",e.PROD="prod"}(Yn||(Yn={})),function(e){e.LEADER="1",e.FOLLOWER="2",e.RECORDER="11"}(jn||(jn={})),function(e){e.IMG="IMG",e.SOURCE="SOURCE",e.LINK="LINK",e.A="A",e.AUDIO="AUDIO",e.IFRAME="IFRAME",e.FORM="FORM",e.SCRIPT="SCRIPT",e.STYLE="STYLE"}(zn||(zn={}));var Zn,Xn;!function(e){e.LEADER="HR",e.FOLLOWER="VR"}(Zn||(Zn={})),new RegExp("(.+)(HTTPS?)/(.+)/".concat("CPS-SEP-FLAG","/(").concat(Zn.FOLLOWER,"|").concat(Zn.LEADER,")")),function(e){e[e.TYPE_UNKNOWN=-1]="TYPE_UNKNOWN",e[e.TYPE_TOP=1]="TYPE_TOP",e[e.TYPE_FRAME=2]="TYPE_FRAME",e[e.TYPE_AUX=3]="TYPE_AUX",e[e.TYPE_SCRIPT=4]="TYPE_SCRIPT",e[e.TYPE_MODULE=5]="TYPE_MODULE",e[e.TYPE_LINK=6]="TYPE_LINK",e[e.TYPE_XHR=7]="TYPE_XHR",e[e.TYPE_RESOURCE=8]="TYPE_RESOURCE",e[e.TYPE_WORKER=9]="TYPE_WORKER",e[e.TYPE_WORKER_SCOPE=10]="TYPE_WORKER_SCOPE",e[e.TYPE_REDIRECT=11]="TYPE_REDIRECT",e[e.TYPE_PAWS=12]="TYPE_PAWS",e[e.TYPE_CONTINUATION=13]="TYPE_CONTINUATION"}(Xn||(Xn={}));var qn,Qn,$n,et,nt,tt,ot,rt,it,at,st=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),ut=(qn={},st.forEach((function(e,n){return qn[e]=n})),qn),ct=/^(?:[A-Za-z\\d+\\/]{4})*?(?:[A-Za-z\\d+\\/]{2}(?:==)?|[A-Za-z\\d+\\/]{3}=?)?$/,_t=String.fromCharCode.bind(String),lt=function(e){if(e.length<2){var n=e.charCodeAt(0);return n<128?e:n<2048?_t(192|n>>>6)+_t(128|63&n):_t(224|n>>>12&15)+_t(128|n>>>6&63)+_t(128|63&n)}var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return _t(240|t>>>18&7)+_t(128|t>>>12&63)+_t(128|t>>>6&63)+_t(128|63&t)},Et=/[\\uD800-\\uDBFF][\\uDC00-\\uDFFFF]|[^\\x00-\\x7F]/g,dt=/[\\xC0-\\xDF][\\x80-\\xBF]|[\\xE0-\\xEF][\\x80-\\xBF]{2}|[\\xF0-\\xF7][\\x80-\\xBF]{3}/g,ft=function(e){switch(e.length){case 4:var n=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return _t(55296+(n>>>10))+_t(56320+(1023&n));case 3:return _t((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return _t((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},St=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=function(e){for(var n,t,o,r,i="",a=e.length%3,s=0;s<e.length;){if((t=e.charCodeAt(s++))>255||(o=e.charCodeAt(s++))>255||(r=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");i+=st[(n=t<<16|o<<8|r)>>18&63]+st[n>>12&63]+st[n>>6&63]+st[63&n]}return a?i.slice(0,a-3)+"===".substring(a):i}(e.replace(Et,lt));return n?t.replace(/=/g,"").replace(/[+\\/]/g,(function(e){return"+"==e?"-":"_"})):t},Rt=function(e){return n=function(e){if(e=e.replace(/\\s+/g,""),!ct.test(e))throw new TypeError("malformed base64.");var n;e+="==".slice(2-(3&e.length));for(var t,o,r="",i=0;i<e.length;)n=ut[e.charAt(i++)]<<18|ut[e.charAt(i++)]<<12|(t=ut[e.charAt(i++)])<<6|(o=ut[e.charAt(i++)]),r+=64===t?_t(n>>16&255):64===o?_t(n>>16&255,n>>8&255):_t(n>>16&255,n>>8&255,255&n);return r}(function(e){return e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\\+\\/]/g,"")}(e)),n.replace(dt,ft);var n};function It(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{return St(e,n)}catch(e){}return e}function gt(e){try{return Rt(e)}catch(e){}return e}!function(e){e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.RemoteControl=7]="RemoteControl"}(Qn||(Qn={})),function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet"}($n||($n={})),function(e){e[e.FullSnapshot=-1]="FullSnapshot",e[e.Annotation=16]="Annotation"}(et||(et={})),function(e){e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel"}(nt||(nt={})),function(e){e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2"}(tt||(tt={})),function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(ot||(ot={})),function(e){e.CBS="CBS",e.CBS_SUB="CBS_SUB",e.IFRAME_ANOTATION="IFRAME_ANOTATION",e.REMOTE_ASSIST_FLYING_CURSOR="REMOTE_ASSIST_FLYING_CURSOR"}(rt||(rt={})),function(e){e.TRANSFERRING="transferring_in",e.SUCCESS="transfer_in_success",e.FAIL="transfer_in_failed",e.CANCEL="transfer_in_cancelled",e.TRANSFER_OUT_SUCCESS="transfer_out_success"}(it||(it={})),function(e){e.RegisterUser="register-user",e.UnregisterUser="unregister-user",e.Position="position",e.RegisterCustomerCursorDOM="register-customer-dom",e.RegisterOtherAgentCursorDOM="register-other-agent-dom",e.UpdateCursorPositionLocal="update-cursor-position-local"}(at||(at={}));var Tt,pt={},Ot={},Ct={get exports(){return Ot},set exports(e){Ot=e}};function ht(){return Tt||(Tt=1,function(e,n){var t;e.exports=(t=R(),function(e){var n=t,o=n.lib,r=o.WordArray,i=o.Hasher,a=n.algo,s=[];!function(){for(var n=0;n<64;n++)s[n]=4294967296*e.abs(e.sin(n+1))|0}();var u=a.MD5=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,n){for(var t=0;t<16;t++){var o=n+t,r=e[o];e[o]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var i=this._hash.words,a=e[n+0],u=e[n+1],d=e[n+2],f=e[n+3],S=e[n+4],R=e[n+5],I=e[n+6],g=e[n+7],T=e[n+8],p=e[n+9],O=e[n+10],C=e[n+11],h=e[n+12],N=e[n+13],A=e[n+14],D=e[n+15],v=i[0],m=i[1],y=i[2],b=i[3];v=c(v,m,y,b,a,7,s[0]),b=c(b,v,m,y,u,12,s[1]),y=c(y,b,v,m,d,17,s[2]),m=c(m,y,b,v,f,22,s[3]),v=c(v,m,y,b,S,7,s[4]),b=c(b,v,m,y,R,12,s[5]),y=c(y,b,v,m,I,17,s[6]),m=c(m,y,b,v,g,22,s[7]),v=c(v,m,y,b,T,7,s[8]),b=c(b,v,m,y,p,12,s[9]),y=c(y,b,v,m,O,17,s[10]),m=c(m,y,b,v,C,22,s[11]),v=c(v,m,y,b,h,7,s[12]),b=c(b,v,m,y,N,12,s[13]),y=c(y,b,v,m,A,17,s[14]),v=_(v,m=c(m,y,b,v,D,22,s[15]),y,b,u,5,s[16]),b=_(b,v,m,y,I,9,s[17]),y=_(y,b,v,m,C,14,s[18]),m=_(m,y,b,v,a,20,s[19]),v=_(v,m,y,b,R,5,s[20]),b=_(b,v,m,y,O,9,s[21]),y=_(y,b,v,m,D,14,s[22]),m=_(m,y,b,v,S,20,s[23]),v=_(v,m,y,b,p,5,s[24]),b=_(b,v,m,y,A,9,s[25]),y=_(y,b,v,m,f,14,s[26]),m=_(m,y,b,v,T,20,s[27]),v=_(v,m,y,b,N,5,s[28]),b=_(b,v,m,y,d,9,s[29]),y=_(y,b,v,m,g,14,s[30]),v=l(v,m=_(m,y,b,v,h,20,s[31]),y,b,R,4,s[32]),b=l(b,v,m,y,T,11,s[33]),y=l(y,b,v,m,C,16,s[34]),m=l(m,y,b,v,A,23,s[35]),v=l(v,m,y,b,u,4,s[36]),b=l(b,v,m,y,S,11,s[37]),y=l(y,b,v,m,g,16,s[38]),m=l(m,y,b,v,O,23,s[39]),v=l(v,m,y,b,N,4,s[40]),b=l(b,v,m,y,a,11,s[41]),y=l(y,b,v,m,f,16,s[42]),m=l(m,y,b,v,I,23,s[43]),v=l(v,m,y,b,p,4,s[44]),b=l(b,v,m,y,h,11,s[45]),y=l(y,b,v,m,D,16,s[46]),v=E(v,m=l(m,y,b,v,d,23,s[47]),y,b,a,6,s[48]),b=E(b,v,m,y,g,10,s[49]),y=E(y,b,v,m,A,15,s[50]),m=E(m,y,b,v,R,21,s[51]),v=E(v,m,y,b,h,6,s[52]),b=E(b,v,m,y,f,10,s[53]),y=E(y,b,v,m,O,15,s[54]),m=E(m,y,b,v,u,21,s[55]),v=E(v,m,y,b,T,6,s[56]),b=E(b,v,m,y,D,10,s[57]),y=E(y,b,v,m,I,15,s[58]),m=E(m,y,b,v,N,21,s[59]),v=E(v,m,y,b,S,6,s[60]),b=E(b,v,m,y,C,10,s[61]),y=E(y,b,v,m,d,15,s[62]),m=E(m,y,b,v,p,21,s[63]),i[0]=i[0]+v|0,i[1]=i[1]+m|0,i[2]=i[2]+y|0,i[3]=i[3]+b|0},_doFinalize:function(){var n=this._data,t=n.words,o=8*this._nDataBytes,r=8*n.sigBytes;t[r>>>5]|=128<<24-r%32;var i=e.floor(o/4294967296),a=o;t[15+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t[14+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n.sigBytes=4*(t.length+1),this._process();for(var s=this._hash,u=s.words,c=0;c<4;c++){var _=u[c];u[c]=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,n,t,o,r,i,a){var s=e+(n&t|~n&o)+r+a;return(s<<i|s>>>32-i)+n}function _(e,n,t,o,r,i,a){var s=e+(n&o|t&~o)+r+a;return(s<<i|s>>>32-i)+n}function l(e,n,t,o,r,i,a){var s=e+(n^t^o)+r+a;return(s<<i|s>>>32-i)+n}function E(e,n,t,o,r,i,a){var s=e+(t^(n|~o))+r+a;return(s<<i|s>>>32-i)+n}n.MD5=i._createHelper(u),n.HmacMD5=i._createHmacHelper(u)}(Math),t.MD5)}(Ct)),Ot}var Nt,At={},Dt={get exports(){return At},set exports(e){At=e}},vt={},mt={get exports(){return vt},set exports(e){vt=e}};function yt(){return Nt||(Nt=1,function(e,n){var t,o,r,i,a,s,u,c;e.exports=(c=R(),o=(t=c).lib,r=o.WordArray,i=o.Hasher,a=t.algo,s=[],u=a.SHA1=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,n){for(var t=this._hash.words,o=t[0],r=t[1],i=t[2],a=t[3],u=t[4],c=0;c<80;c++){if(c<16)s[c]=0|e[n+c];else{var _=s[c-3]^s[c-8]^s[c-14]^s[c-16];s[c]=_<<1|_>>>31}var l=(o<<5|o>>>27)+u+s[c];l+=c<20?1518500249+(r&i|~r&a):c<40?1859775393+(r^i^a):c<60?(r&i|r&a|i&a)-1894007588:(r^i^a)-899497514,u=a,a=i,i=r<<30|r>>>2,r=o,o=l}t[0]=t[0]+o|0,t[1]=t[1]+r|0,t[2]=t[2]+i|0,t[3]=t[3]+a|0,t[4]=t[4]+u|0},_doFinalize:function(){var e=this._data,n=e.words,t=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=Math.floor(t/4294967296),n[15+(o+64>>>9<<4)]=t,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=i._createHelper(u),t.HmacSHA1=i._createHmacHelper(u),c.SHA1)}(mt)),vt}var bt,Pt,Lt={},wt={get exports(){return Lt},set exports(e){Lt=e}};function Mt(){return Pt||(Pt=1,function(e,n){var t,o,r,i,a,s,u,c;e.exports=(c=R(),yt(),bt||(bt=1,function(e,n){var t,o,r;e.exports=(o=(t=R()).lib.Base,r=t.enc.Utf8,void(t.algo.HMAC=o.extend({init:function(e,n){e=this._hasher=new e.init,"string"==typeof n&&(n=r.parse(n));var t=e.blockSize,o=4*t;n.sigBytes>o&&(n=e.finalize(n)),n.clamp();for(var i=this._oKey=n.clone(),a=this._iKey=n.clone(),s=i.words,u=a.words,c=0;c<t;c++)s[c]^=1549556828,u[c]^=909522486;i.sigBytes=a.sigBytes=o,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var n=this._hasher,t=n.finalize(e);return n.reset(),n.finalize(this._oKey.clone().concat(t))}})))}(wt)),o=(t=c).lib,r=o.Base,i=o.WordArray,a=t.algo,s=a.MD5,u=a.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:s,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,n){for(var t,o=this.cfg,r=o.hasher.create(),a=i.create(),s=a.words,u=o.keySize,c=o.iterations;s.length<u;){t&&r.update(t),t=r.update(e).finalize(n),r.reset();for(var _=1;_<c;_++)t=r.finalize(t),r.reset();a.concat(t)}return a.sigBytes=4*u,a}}),t.EvpKDF=function(e,n,t){return u.create(t).compute(e,n)},c.EvpKDF)}(Dt)),At}var Ft,Ut,kt={},Bt={get exports(){return kt},set exports(e){kt=e}};!function(e,n){var t;e.exports=(t=R(),p(),ht(),Mt(),Ft||(Ft=1,function(e,n){var t;e.exports=(t=R(),Mt(),void(t.lib.Cipher||function(e){var n=t,o=n.lib,r=o.Base,i=o.WordArray,a=o.BufferedBlockAlgorithm,s=n.enc;s.Utf8;var u=s.Base64,c=n.algo.EvpKDF,_=o.Cipher=a.extend({cfg:r.extend(),createEncryptor:function(e,n){return this.create(this._ENC_XFORM_MODE,e,n)},createDecryptor:function(e,n){return this.create(this._DEC_XFORM_MODE,e,n)},init:function(e,n,t){this.cfg=this.cfg.extend(t),this._xformMode=e,this._key=n,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?T:I}return function(n){return{encrypt:function(t,o,r){return e(o).encrypt(n,t,o,r)},decrypt:function(t,o,r){return e(o).decrypt(n,t,o,r)}}}}()});o.StreamCipher=_.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var l=n.mode={},E=o.BlockCipherMode=r.extend({createEncryptor:function(e,n){return this.Encryptor.create(e,n)},createDecryptor:function(e,n){return this.Decryptor.create(e,n)},init:function(e,n){this._cipher=e,this._iv=n}}),d=l.CBC=function(){var n=E.extend();function t(n,t,o){var r,i=this._iv;i?(r=i,this._iv=e):r=this._prevBlock;for(var a=0;a<o;a++)n[t+a]^=r[a]}return n.Encryptor=n.extend({processBlock:function(e,n){var o=this._cipher,r=o.blockSize;t.call(this,e,n,r),o.encryptBlock(e,n),this._prevBlock=e.slice(n,n+r)}}),n.Decryptor=n.extend({processBlock:function(e,n){var o=this._cipher,r=o.blockSize,i=e.slice(n,n+r);o.decryptBlock(e,n),t.call(this,e,n,r),this._prevBlock=i}}),n}(),f=(n.pad={}).Pkcs7={pad:function(e,n){for(var t=4*n,o=t-e.sigBytes%t,r=o<<24|o<<16|o<<8|o,a=[],s=0;s<o;s+=4)a.push(r);var u=i.create(a,o);e.concat(u)},unpad:function(e){var n=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=n}};o.BlockCipher=_.extend({cfg:_.cfg.extend({mode:d,padding:f}),reset:function(){var e;_.reset.call(this);var n=this.cfg,t=n.iv,o=n.mode;this._xformMode==this._ENC_XFORM_MODE?e=o.createEncryptor:(e=o.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,t&&t.words):(this._mode=e.call(o,this,t&&t.words),this._mode.__creator=e)},_doProcessBlock:function(e,n){this._mode.processBlock(e,n)},_doFinalize:function(){var e,n=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(n.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),n.unpad(e)),e},blockSize:4});var S=o.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),R=(n.format={}).OpenSSL={stringify:function(e){var n=e.ciphertext,t=e.salt;return(t?i.create([1398893684,1701076831]).concat(t).concat(n):n).toString(u)},parse:function(e){var n,t=u.parse(e),o=t.words;return 1398893684==o[0]&&1701076831==o[1]&&(n=i.create(o.slice(2,4)),o.splice(0,4),t.sigBytes-=16),S.create({ciphertext:t,salt:n})}},I=o.SerializableCipher=r.extend({cfg:r.extend({format:R}),encrypt:function(e,n,t,o){o=this.cfg.extend(o);var r=e.createEncryptor(t,o),i=r.finalize(n),a=r.cfg;return S.create({ciphertext:i,key:t,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:o.format})},decrypt:function(e,n,t,o){return o=this.cfg.extend(o),n=this._parse(n,o.format),e.createDecryptor(t,o).finalize(n.ciphertext)},_parse:function(e,n){return"string"==typeof e?n.parse(e,this):e}}),g=(n.kdf={}).OpenSSL={execute:function(e,n,t,o,r){if(o||(o=i.random(8)),r)a=c.create({keySize:n+t,hasher:r}).compute(e,o);else var a=c.create({keySize:n+t}).compute(e,o);var s=i.create(a.words.slice(n),4*t);return a.sigBytes=4*n,S.create({key:a,iv:s,salt:o})}},T=o.PasswordBasedCipher=I.extend({cfg:I.cfg.extend({kdf:g}),encrypt:function(e,n,t,o){var r=(o=this.cfg.extend(o)).kdf.execute(t,e.keySize,e.ivSize,o.salt,o.hasher);o.iv=r.iv;var i=I.encrypt.call(this,e,n,r.key,o);return i.mixIn(r),i},decrypt:function(e,n,t,o){o=this.cfg.extend(o),n=this._parse(n,o.format);var r=o.kdf.execute(t,e.keySize,e.ivSize,n.salt,o.hasher);return o.iv=r.iv,I.decrypt.call(this,e,n,r.key,o)}})}()))}(Bt)),function(){var e=t,n=e.lib.BlockCipher,o=e.algo,r=[],i=[],a=[],s=[],u=[],c=[],_=[],l=[],E=[],d=[];!function(){for(var e=[],n=0;n<256;n++)e[n]=n<128?n<<1:n<<1^283;var t=0,o=0;for(n=0;n<256;n++){var f=o^o<<1^o<<2^o<<3^o<<4;f=f>>>8^255&f^99,r[t]=f,i[f]=t;var S=e[t],R=e[S],I=e[R],g=257*e[f]^16843008*f;a[t]=g<<24|g>>>8,s[t]=g<<16|g>>>16,u[t]=g<<8|g>>>24,c[t]=g,g=16843009*I^65537*R^257*S^16843008*t,_[f]=g<<24|g>>>8,l[f]=g<<16|g>>>16,E[f]=g<<8|g>>>24,d[f]=g,t?(t=S^e[e[e[I^S]]],o^=e[e[o]]):t=o=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],S=o.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,n=e.words,t=e.sigBytes/4,o=4*((this._nRounds=t+6)+1),i=this._keySchedule=[],a=0;a<o;a++)a<t?i[a]=n[a]:(c=i[a-1],a%t?t>6&&a%t==4&&(c=r[c>>>24]<<24|r[c>>>16&255]<<16|r[c>>>8&255]<<8|r[255&c]):(c=r[(c=c<<8|c>>>24)>>>24]<<24|r[c>>>16&255]<<16|r[c>>>8&255]<<8|r[255&c],c^=f[a/t|0]<<24),i[a]=i[a-t]^c);for(var s=this._invKeySchedule=[],u=0;u<o;u++){if(a=o-u,u%4)var c=i[a];else c=i[a-4];s[u]=u<4||a<=4?c:_[r[c>>>24]]^l[r[c>>>16&255]]^E[r[c>>>8&255]]^d[r[255&c]]}}},encryptBlock:function(e,n){this._doCryptBlock(e,n,this._keySchedule,a,s,u,c,r)},decryptBlock:function(e,n){var t=e[n+1];e[n+1]=e[n+3],e[n+3]=t,this._doCryptBlock(e,n,this._invKeySchedule,_,l,E,d,i),t=e[n+1],e[n+1]=e[n+3],e[n+3]=t},_doCryptBlock:function(e,n,t,o,r,i,a,s){for(var u=this._nRounds,c=e[n]^t[0],_=e[n+1]^t[1],l=e[n+2]^t[2],E=e[n+3]^t[3],d=4,f=1;f<u;f++){var S=o[c>>>24]^r[_>>>16&255]^i[l>>>8&255]^a[255&E]^t[d++],R=o[_>>>24]^r[l>>>16&255]^i[E>>>8&255]^a[255&c]^t[d++],I=o[l>>>24]^r[E>>>16&255]^i[c>>>8&255]^a[255&_]^t[d++],g=o[E>>>24]^r[c>>>16&255]^i[_>>>8&255]^a[255&l]^t[d++];c=S,_=R,l=I,E=g}S=(s[c>>>24]<<24|s[_>>>16&255]<<16|s[l>>>8&255]<<8|s[255&E])^t[d++],R=(s[_>>>24]<<24|s[l>>>16&255]<<16|s[E>>>8&255]<<8|s[255&c])^t[d++],I=(s[l>>>24]<<24|s[E>>>16&255]<<16|s[c>>>8&255]<<8|s[255&_])^t[d++],g=(s[E>>>24]<<24|s[c>>>16&255]<<16|s[_>>>8&255]<<8|s[255&l])^t[d++],e[n]=S,e[n+1]=R,e[n+2]=I,e[n+3]=g},keySize:8});e.AES=n._createHelper(S)}(),t.AES)}({get exports(){return pt},set exports(e){pt=e}});var xt=new Uint8Array(16);function Vt(){if(!Ut&&!(Ut="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ut(xt)}for(var Wt=[],Gt=0;Gt<256;++Gt)Wt.push((Gt+256).toString(16).slice(1));var Ht,Jt,Yt,jt={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function zt(e,n,t){if(jt.randomUUID&&!n&&!e)return jt.randomUUID();var o=(e=e||{}).random||(e.rng||Vt)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,n){t=t||0;for(var r=0;r<16;++r)n[t+r]=o[r];return n}return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Wt[e[n+0]]+Wt[e[n+1]]+Wt[e[n+2]]+Wt[e[n+3]]+"-"+Wt[e[n+4]]+Wt[e[n+5]]+"-"+Wt[e[n+6]]+Wt[e[n+7]]+"-"+Wt[e[n+8]]+Wt[e[n+9]]+"-"+Wt[e[n+10]]+Wt[e[n+11]]+Wt[e[n+12]]+Wt[e[n+13]]+Wt[e[n+14]]+Wt[e[n+15]]}(o)}!function(e){e[e.PENDING=0]="PENDING",e[e.READY=1]="READY",e[e.CLOSE=2]="CLOSE"}(Ht||(Ht={})),function(e){e[e.NPM=0]="NPM",e[e.CDN=1]="CDN"}(Jt||(Jt={})),function(e){e[e.RECORD_NOT_ENABLED=2e4]="RECORD_NOT_ENABLED",e[e.START_RECORD_UNAVAILABLE=20001]="START_RECORD_UNAVAILABLE",e[e.START_RECORD_INVALID_BODY=20002]="START_RECORD_INVALID_BODY",e[e.EXIST_RECORD_CONFLICT=20003]="EXIST_RECORD_CONFLICT",e[e.RECORD_OVERHEAD_CAPACITY=20004]="RECORD_OVERHEAD_CAPACITY",e[e.LEADER_NOT_JOINED=20005]="LEADER_NOT_JOINED",e[e.LEADER_DENIED=20006]="LEADER_DENIED",e[e.RECORD_ABORTED=20007]="RECORD_ABORTED",e[e.END_RECORD_UNAVAILABLE=21e3]="END_RECORD_UNAVAILABLE",e[e.END_RECORD_INVALID_BODY=21001]="END_RECORD_INVALID_BODY",e[e.RECORD_ALREADY_PAUSED=22e3]="RECORD_ALREADY_PAUSED",e[e.RECORD_ALREADY_RESUMED=23e3]="RECORD_ALREADY_RESUMED",e[e.NO_ACTIVE_RECORD=24e3]="NO_ACTIVE_RECORD",e[e.RECORD_IN_START_PROGRESS=24001]="RECORD_IN_START_PROGRESS",e[e.RECORD_IN_STOP_PROGRESS=24002]="RECORD_IN_STOP_PROGRESS",e[e.CHS_JWT_MISSING=25100]="CHS_JWT_MISSING",e[e.CHS_JWT_DECODE_FAILED=25101]="CHS_JWT_DECODE_FAILED",e[e.CHS_JWT_INVALID_PAYLOAD=25102]="CHS_JWT_INVALID_PAYLOAD",e[e.CHS_JWT_ISS_AUD_MISSING=25103]="CHS_JWT_ISS_AUD_MISSING",e[e.CHS_JWT_ISS_AUD_DENIED=25104]="CHS_JWT_ISS_AUD_DENIED",e[e.CHS_JWT_VERIFY_FAILED=25105]="CHS_JWT_VERIFY_FAILED",e[e.SESSION_ID_NOT_MATCH=25200]="SESSION_ID_NOT_MATCH",e[e.AID_IN_JWT_MISSING=25201]="AID_IN_JWT_MISSING",e[e.UID_IN_JWT_MISSING=25202]="UID_IN_JWT_MISSING",e[e.RECORD_ID_MISSING=25203]="RECORD_ID_MISSING",e[e.RECORD_TASK_NOT_EXIST=25204]="RECORD_TASK_NOT_EXIST",e[e.PAGE_CONTEXT_BOOTSTRAP_FAILED=26100]="PAGE_CONTEXT_BOOTSTRAP_FAILED",e[e.PAGE_CONTROLLER_INIT_FAILED=26101]="PAGE_CONTROLLER_INIT_FAILED",e[e.PAGE_LOAD_HTML_FAILED=26102]="PAGE_LOAD_HTML_FAILED",e[e.PAGE_INJECT_INIT_FAILED=26103]="PAGE_INJECT_INIT_FAILED",e[e.PAGE_INJECT_CONTEXT_FAILED=26104]="PAGE_INJECT_CONTEXT_FAILED",e[e.PAGE_START_FAILED=26105]="PAGE_START_FAILED",e[e.PAGE_STOP_FAILED=26106]="PAGE_STOP_FAILED",e[e.RECORDER_INIT_FAILED=26200]="RECORDER_INIT_FAILED",e[e.RECORDER_CDP_SESSION_START_FAILED=26201]="RECORDER_CDP_SESSION_START_FAILED",e[e.RECORDER_CDP_SESSION_STOP_FAILED=26202]="RECORDER_CDP_SESSION_STOP_FAILED",e[e.RECORDER_CDP_SESSION_ALREADY_DESTROYED=26203]="RECORDER_CDP_SESSION_ALREADY_DESTROYED",e[e.DISK_USAGE_FULL=26204]="DISK_USAGE_FULL",e[e.CONNECT_CHS_FAILED=26301]="CONNECT_CHS_FAILED",e[e.CONNECT_CHS_FAILOVER=26302]="CONNECT_CHS_FAILOVER",e[e.CONNECT_CHS_DESTROYED=26303]="CONNECT_CHS_DESTROYED",e[e.CONNECT_CHS_DISCONNECTED=26304]="CONNECT_CHS_DISCONNECTED",e[e.CONNECT_CHS_TIMEOUT=26305]="CONNECT_CHS_TIMEOUT",e[e.UDS_INIT_FAILED=26400]="UDS_INIT_FAILED",e[e.UDS_SUB_PROCESS_INIT_FAILED=26401]="UDS_SUB_PROCESS_INIT_FAILED",e[e.UDS_SUB_PROCESS_INIT_TIMEOUT=26402]="UDS_SUB_PROCESS_INIT_TIMEOUT",e[e.UDS_CLINET_INIT_FAILED=26403]="UDS_CLINET_INIT_FAILED",e[e.UDS_SERVER_INIT_FAILED=26404]="UDS_SERVER_INIT_FAILED",e[e.UDS_SERVER_LISTEN_FAILED=26405]="UDS_SERVER_LISTEN_FAILED",e[e.FILE_INIT_FAILED=26500]="FILE_INIT_FAILED",e[e.FILE_META_INIT_FAILED=26501]="FILE_META_INIT_FAILED",e[e.FILE_META_CLIP_INIT_FAILED=26502]="FILE_META_CLIP_INIT_FAILED",e[e.FILE_META_OPEN_FAILED=26503]="FILE_META_OPEN_FAILED",e[e.FILE_META_LOCK_FAILED=26504]="FILE_META_LOCK_FAILED",e[e.FILE_META_RELEASE_FAILED=26505]="FILE_META_RELEASE_FAILED",e[e.FILE_META_WRITE_FAILED=26506]="FILE_META_WRITE_FAILED",e[e.ZCB_WEB_NOT_AVAILABLE=26600]="ZCB_WEB_NOT_AVAILABLE",e[e.ZCB_CRS_NOT_AVAILABLE=26601]="ZCB_CRS_NOT_AVAILABLE",e[e.REDIS_GET_CLIP_SIZE_FAILED=26700]="REDIS_GET_CLIP_SIZE_FAILED",e[e.REDIS_SET_CLIP_SIZE_FAILED=26701]="REDIS_SET_CLIP_SIZE_FAILED",e[e.REDIS_GET_START_TIME_FAILED=26702]="REDIS_GET_START_TIME_FAILED",e[e.REDIS_SET_START_TIME_FAILED=26703]="REDIS_SET_START_TIME_FAILED",e[e.ASSETS_FETCH_FAILED=26800]="ASSETS_FETCH_FAILED",e[e.ASSETS_WRITE_FAILED=26801]="ASSETS_WRITE_FAILED"}(Yt||(Yt={})),Yt.RECORD_OVERHEAD_CAPACITY,Yt.RECORD_OVERHEAD_CAPACITY;var Kt,Zt={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Zt,Yt.START_RECORD_UNAVAILABLE,"start record api not available"),Yt.START_RECORD_INVALID_BODY,"start record response body invalid"),Yt.END_RECORD_UNAVAILABLE,"end record api not available"),Yt.END_RECORD_INVALID_BODY,"end record response body invalid"),Yt.EXIST_RECORD_CONFLICT,"already has an existed recording"),Yt.NO_ACTIVE_RECORD,"no existed recording"),Yt.RECORD_IN_START_PROGRESS,"recording is in start progress"),Yt.RECORD_IN_STOP_PROGRESS,"recording is in stop progress"),Yt.RECORD_ALREADY_PAUSED,"recording already paused"),Yt.RECORD_ALREADY_RESUMED,"recording already resumed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Zt,Yt.RECORD_NOT_ENABLED,"recording not enabled"),Yt.RECORD_OVERHEAD_CAPACITY,"recording capacity is overhead"),Yt.LEADER_NOT_JOINED,"leader not joined room"),Yt.LEADER_DENIED,"leader denied recording"),Yt.RECORD_ABORTED,"recording aborted"),Yt.CHS_JWT_MISSING,"CHS JWT is empty"),Yt.CHS_JWT_DECODE_FAILED,"CHS JWT decode error"),Yt.CHS_JWT_INVALID_PAYLOAD,"CHS JWT payload invalid"),Yt.CHS_JWT_ISS_AUD_MISSING,"CHS JWT iss or aud empty"),Yt.CHS_JWT_ISS_AUD_DENIED,"invalid iss and aud"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Zt,Yt.CHS_JWT_VERIFY_FAILED,"token verify failed"),Yt.SESSION_ID_NOT_MATCH,"sessionId in header is not match in jwt payload"),Yt.AID_IN_JWT_MISSING,"aid in token is required"),Yt.UID_IN_JWT_MISSING,"uid in token is required"),Yt.RECORD_ID_MISSING,"recordId is empty"),Yt.RECORD_TASK_NOT_EXIST,"record task not exist"),Yt.PAGE_CONTEXT_BOOTSTRAP_FAILED,"bootstrap playwright failed"),Yt.PAGE_CONTROLLER_INIT_FAILED,"PageController init failed"),Yt.PAGE_LOAD_HTML_FAILED,"page load html failed"),Yt.PAGE_INJECT_INIT_FAILED,"PageInjector init failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Zt,Yt.PAGE_INJECT_CONTEXT_FAILED,"injectPageContext failed"),Yt.PAGE_START_FAILED,"page start record failed"),Yt.PAGE_STOP_FAILED,"page start stop failed"),Yt.RECORDER_INIT_FAILED,"PageRecorder init failed"),Yt.RECORDER_CDP_SESSION_START_FAILED,"record start cdp session failed"),Yt.RECORDER_CDP_SESSION_STOP_FAILED,"record stop cdp session failed"),Yt.RECORDER_CDP_SESSION_ALREADY_DESTROYED,"PageRecorder has already been destroyed"),Yt.DISK_USAGE_FULL,"Server disk is full"),Yt.CONNECT_CHS_FAILED,"CHS is not available"),Yt.CONNECT_CHS_FAILOVER,"CHS connection is failover now"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Zt,Yt.CONNECT_CHS_DESTROYED,"CHS connection is destroyed by client"),Yt.CONNECT_CHS_DISCONNECTED,"CHS connection is disconnected"),Yt.CONNECT_CHS_TIMEOUT,"wait for CHS connection timeout"),Yt.UDS_INIT_FAILED,"UDSManager init failed"),Yt.UDS_SUB_PROCESS_INIT_FAILED,"uds sub process init failed"),Yt.UDS_SUB_PROCESS_INIT_TIMEOUT,"uds sub process init timeout"),Yt.UDS_CLINET_INIT_FAILED,"UDSClient init failed"),Yt.UDS_SERVER_INIT_FAILED,"UDSServer init failed"),Yt.UDS_SERVER_LISTEN_FAILED,"UDSServer listen failed"),Yt.FILE_INIT_FAILED,"FileManager init failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Zt,Yt.FILE_META_INIT_FAILED,"MetaDataManager init failed"),Yt.FILE_META_CLIP_INIT_FAILED,"SubClipManager init failed"),Yt.FILE_META_OPEN_FAILED,"open metadata failed"),Yt.FILE_META_LOCK_FAILED,"metadata lock failed"),Yt.FILE_META_RELEASE_FAILED,"metadata release failed"),Yt.FILE_META_WRITE_FAILED,"metadata write failed"),Yt.ZCB_WEB_NOT_AVAILABLE,"web is not available"),Yt.ZCB_CRS_NOT_AVAILABLE,"crs is not available"),Yt.REDIS_GET_CLIP_SIZE_FAILED,"get clip size failed"),Yt.REDIS_SET_CLIP_SIZE_FAILED,"set clip size failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(Zt,Yt.REDIS_GET_START_TIME_FAILED,"get record start time failed"),Yt.REDIS_SET_START_TIME_FAILED,"set record start time failed"),Yt.ASSETS_FETCH_FAILED,"fetch assets from cdn failed"),Yt.ASSETS_WRITE_FAILED,"write assets to local disk failed"),function(e){e[e.INIT=0]="INIT",e[e.RUNNING=1]="RUNNING",e[e.PAUSE=2]="PAUSE",e[e.FINISH=3]="FINISH"}(Kt||(Kt={}));var Xt,qt;!function(e){e[e.WS_CONN_KEEPALIVE=0]="WS_CONN_KEEPALIVE",e[e.WS_CONN_VECTOR_DATA=1]="WS_CONN_VECTOR_DATA",e[e.WS_DOC_JSON_JOIN_RES=8194]="WS_DOC_JSON_JOIN_RES"}(Xt||(Xt={})),function(e){e.CONNECTED="CONNECTED",e.DISCONNECTED="DISCONNECTED",e.END_ROOM="END_ROOM",e.LEAVE_ROOM="LEAVE_ROOM",e.INTERACTION_BINARY="INTERACTION_BINARY",e.INTERACTION="INTERACTION",e.FULL_SNAPSHOT_REQUEST="FULL_SNAPSHOT_REQUEST",e.GET_BINARY="GET_BINARY",e.USER_BE_HOLD_STATUS_CHANGE="USER_BE_HOLD_STATUS_CHANGE",e.USER_ROSTER="USER_ROSTER",e.ROOM_ROSTER="ROOM_ROSTER",e.REMOTE_CONTROL_STATUS="REMOTE_CONTROL_STATUS",e.REMOTE_CONTROL_REQUEST="REMOTE_CONTROL_REQUEST",e.REMOTE_CONTROL_RESPONSE="REMOTE_CONTROL_RESPONSE",e.REMOTE_CONTROL_GIVE_UP="REMOTE_CONTROL_GIVE_UP",e.REMOTE_CONTROL_TAKE_BACK="REMOTE_CONTROL_TAKE_BACK",e.REMOTE_CONTROL_REJECT="REMOTE_CONTROL_REJECT",e.REMOTE_CONTROL_CANCEL="REMOTE_CONTROL_CANCEL",e.START_RECORD="START_RECORD",e.STOP_RECORD="STOP_RECORD",e.PAUSE_RECORD="PAUSE_RECORD",e.RESUME_RECORD="RESUME_RECORD",e.START_RECORD_RESPONSE="START_RECORD_RESPONSE",e.STOP_RECORD_RESPONSE="STOP_RECORD_RESPONSE",e.PAUSE_RECORD_RESPONSE="PAUSE_RECORD_RESPONSE",e.RESUME_RECORD_RESPONSE="RESUME_RECORD_RESPONSE",e.RECORD_APPROVE_REQUEST="RECORD_APPROVE_REQUEST",e.RECORD_APPROVE_RESPONSE="RECORD_APPROVE_RESPONSE",e.ANNOTATION="ANNOTATION",e.FLYING_CURSOR="FLYING_CURSOR",e.LEADER_PAGE_VISIBILITY="LEADER_PAGE_VISIBILITY",e.RTT="RTT",e.NTP="NTP"}(qt||(qt={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},qt.ANNOTATION,!0),qt.INTERACTION,!0),qt.INTERACTION_BINARY,!0),qt.FLYING_CURSOR,!0),_defineProperty(_defineProperty({},qt.RTT,!0),qt.NTP,!0),_defineProperty(_defineProperty({},qt.INTERACTION,!0),qt.INTERACTION_BINARY,!0);var Qt={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Qt,qt.INTERACTION,!0),qt.INTERACTION_BINARY,!0),qt.FULL_SNAPSHOT_REQUEST,!0),qt.REMOTE_CONTROL_STATUS,!0),qt.REMOTE_CONTROL_REQUEST,!0),qt.REMOTE_CONTROL_RESPONSE,!0),qt.REMOTE_CONTROL_GIVE_UP,!0),qt.REMOTE_CONTROL_TAKE_BACK,!0),qt.REMOTE_CONTROL_REJECT,!0),qt.REMOTE_CONTROL_CANCEL,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Qt,qt.START_RECORD,!0),qt.RESUME_RECORD,!0),qt.PAUSE_RECORD,!0),qt.STOP_RECORD,!0),qt.ANNOTATION,!0),qt.FLYING_CURSOR,!0),qt.NTP,!0);var $t,eo,no={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(no,qt.INTERACTION,!0),qt.INTERACTION_BINARY,!0),qt.FULL_SNAPSHOT_REQUEST,!0),qt.USER_ROSTER,!0),qt.ROOM_ROSTER,!0),qt.REMOTE_CONTROL_STATUS,!0),qt.REMOTE_CONTROL_REQUEST,!0),qt.REMOTE_CONTROL_RESPONSE,!0),qt.REMOTE_CONTROL_GIVE_UP,!0),qt.REMOTE_CONTROL_TAKE_BACK,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(no,qt.REMOTE_CONTROL_REJECT,!0),qt.REMOTE_CONTROL_CANCEL,!0),qt.START_RECORD,!0),qt.RESUME_RECORD,!0),qt.PAUSE_RECORD,!0),qt.STOP_RECORD,!0),qt.START_RECORD_RESPONSE,!0),qt.STOP_RECORD_RESPONSE,!0),qt.PAUSE_RECORD_RESPONSE,!0),qt.RESUME_RECORD_RESPONSE,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty(no,qt.RECORD_APPROVE_REQUEST,!0),qt.RECORD_APPROVE_RESPONSE,!0),qt.ANNOTATION,!0),qt.FLYING_CURSOR,!0),_defineProperty(_defineProperty(_defineProperty({},qt.RECORD_APPROVE_RESPONSE,!0),qt.LEAVE_ROOM,!0),qt.FLYING_CURSOR,!0),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},at.RegisterCustomerCursorDOM,!0),at.UnregisterUser,!0),at.RegisterOtherAgentCursorDOM,!0),at.UpdateCursorPositionLocal,!0),function(e){e[e.IN_PROGRESS=4e4]="IN_PROGRESS",e[e.OPPOSITE_REJECT=40001]="OPPOSITE_REJECT",e[e.LEADER_NOT_FOUND=40002]="LEADER_NOT_FOUND"}($t||($t={})),_defineProperty(_defineProperty(_defineProperty({},$t.IN_PROGRESS,"remote control is in progress"),$t.OPPOSITE_REJECT,"the opposite side refuses to be controlled"),$t.LEADER_NOT_FOUND,"leader not exist or has left"),function(e){e[e.LEAVE_ROOM=4e4]="LEAVE_ROOM",e[e.DISCONNECTED=40001]="DISCONNECTED",e[e.WEB_REPORT_REGION_FAILED=40100]="WEB_REPORT_REGION_FAILED",e[e.WEB_REPORT_REGION_NOT_MATCH=40101]="WEB_REPORT_REGION_NOT_MATCH",e[e.WEB_REPORT_USER_JOIN_FAILED=40102]="WEB_REPORT_USER_JOIN_FAILED",e[e.WEB_REPORT_USER_JOIN_EMPTY=40103]="WEB_REPORT_USER_JOIN_EMPTY",e[e.WEB_REPORT_USER_JOIN_EMPTY_USER=40104]="WEB_REPORT_USER_JOIN_EMPTY_USER",e[e.AUTH_CONFLICT=40200]="AUTH_CONFLICT",e[e.AUTH_VERIFY_FAILED=40201]="AUTH_VERIFY_FAILED",e[e.AUTH_DB_QUERY_ERROR=40202]="AUTH_DB_QUERY_ERROR",e[e.AUTH_USER_ID_VERIFY_FAILED=40203]="AUTH_USER_ID_VERIFY_FAILED",e[e.AUTH_USER_ID_NO_EXIST=40204]="AUTH_USER_ID_NO_EXIST",e[e.ROOM_NOT_EXIST=40210]="ROOM_NOT_EXIST",e[e.ROOM_ADD_USER_FAILED=40211]="ROOM_ADD_USER_FAILED",e[e.LEADER_CONFLICT=40212]="LEADER_CONFLICT",e[e.FOLLOWER_CONFLICT=40213]="FOLLOWER_CONFLICT",e[e.SESSION_ALREADY_ENDED=40214]="SESSION_ALREADY_ENDED",e[e.ROOM_DEPRECATED=40216]="ROOM_DEPRECATED",e[e.REACHED_LEADER_LIMIT=40217]="REACHED_LEADER_LIMIT",e[e.REACHED_FOLLOWER_LIMIT=40218]="REACHED_FOLLOWER_LIMIT",e[e.SAME_LEADER_JOINED=40219]="SAME_LEADER_JOINED",e[e.ROOM_ID_MISSING=40300]="ROOM_ID_MISSING",e[e.AUTH_PAYLOAD_MISSING=40301]="AUTH_PAYLOAD_MISSING",e[e.START_URL_INVALID=40302]="START_URL_INVALID",e[e.SERVER_RESTARTED=40400]="SERVER_RESTARTED",e[e.WSSGW_REMOVE_NODE=40401]="WSSGW_REMOVE_NODE",e[e.META_DATA_INVALID=40402]="META_DATA_INVALID",e[e.WSSGW_INSTANCE_NOT_FOUND=40403]="WSSGW_INSTANCE_NOT_FOUND",e[e.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE=40501]="MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE",e[e.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION=40502]="MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION",e[e.END_ROOM=41e3]="END_ROOM",e[e.DESTROY_DEACTIVE_ROOM=41001]="DESTROY_DEACTIVE_ROOM",e[e.DESTROY_SLEEP_ROOM=41002]="DESTROY_SLEEP_ROOM",e[e.DESTROY_NO_VALID_OPERATION_ROOM=41003]="DESTROY_NO_VALID_OPERATION_ROOM",e[e.NO_OTHER_ACTIVE_USER=42e3]="NO_OTHER_ACTIVE_USER",e[e.RECORD_ALREADY_ENDED=42001]="RECORD_ALREADY_ENDED",e[e.RECORD_START_FAILED=42002]="RECORD_START_FAILED"}(eo||(eo={})),eo.LEAVE_ROOM,eo.WEB_REPORT_USER_JOIN_FAILED,eo.AUTH_CONFLICT,eo.AUTH_VERIFY_FAILED,eo.LEADER_CONFLICT,eo.FOLLOWER_CONFLICT,eo.SESSION_ALREADY_ENDED,eo.ROOM_ID_MISSING,eo.AUTH_PAYLOAD_MISSING,eo.START_URL_INVALID,eo.END_ROOM,eo.DESTROY_DEACTIVE_ROOM,eo.DESTROY_SLEEP_ROOM,eo.DESTROY_NO_VALID_OPERATION_ROOM,eo.NO_OTHER_ACTIVE_USER,eo.RECORD_ALREADY_ENDED,eo.REACHED_LEADER_LIMIT,eo.REACHED_FOLLOWER_LIMIT,eo.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE,eo.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION,eo.SESSION_ALREADY_ENDED,eo.END_ROOM,eo.DESTROY_DEACTIVE_ROOM;var to,oo,ro={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ro,eo.LEAVE_ROOM,"normal leave"),eo.DISCONNECTED,"user disconnected"),eo.WEB_REPORT_REGION_FAILED,"call web report zone region api failed"),eo.WEB_REPORT_REGION_NOT_MATCH,"report zone region mismatch with session hosting region"),eo.WEB_REPORT_USER_JOIN_EMPTY,"call web user join api return empty response"),eo.WEB_REPORT_USER_JOIN_FAILED,"call web user join api failed"),eo.WEB_REPORT_USER_JOIN_EMPTY_USER,"call web user join api return empty user info"),eo.AUTH_CONFLICT,"auth is already consumed once"),eo.AUTH_VERIFY_FAILED,"auth payload is denyed"),eo.AUTH_DB_QUERY_ERROR,"get auth from redis failed"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ro,eo.AUTH_USER_ID_VERIFY_FAILED,"sub channel user_id verify failed"),eo.AUTH_USER_ID_NO_EXIST,"main channel user_id not exist"),eo.ROOM_NOT_EXIST,"room not exist or create failed"),eo.ROOM_ADD_USER_FAILED,"room add new user failed"),eo.LEADER_CONFLICT,"leader already exist"),eo.FOLLOWER_CONFLICT,"follower already exist"),eo.ROOM_DEPRECATED,"room is deprecated"),eo.SAME_LEADER_JOINED,"leader with the same user_id joined the room"),eo.SESSION_ALREADY_ENDED,"room is already ended"),eo.ROOM_ID_MISSING,"room id is required"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ro,eo.AUTH_PAYLOAD_MISSING,"auth payload is required"),eo.START_URL_INVALID,"startUrl is invalid"),eo.SERVER_RESTARTED,"server restarted"),eo.WSSGW_REMOVE_NODE,"wssgw node instance removed"),eo.META_DATA_INVALID,"message meta data invalid"),eo.WSSGW_INSTANCE_NOT_FOUND,"wssgw instance not found"),eo.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE,"message size limit exceeded by minute"),eo.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION,"message size limit exceeded by session"),eo.END_ROOM,"The user actively clicked \'end\'."),eo.DESTROY_DEACTIVE_ROOM,"The session ended automatically because there was only 1 user present for 3 minutes."),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ro,eo.DESTROY_SLEEP_ROOM,"The session ended automatically due to no user activity in the session for 5 minutes."),eo.DESTROY_NO_VALID_OPERATION_ROOM,"The session ended automatically due to no valid operation messages"),eo.NO_OTHER_ACTIVE_USER,"no other active user in this meeting except record virtual user"),eo.RECORD_ALREADY_ENDED,"record already ended"),eo.RECORD_START_FAILED,"record start failed"),eo.REACHED_LEADER_LIMIT,"the number of leaders has reached the limit"),eo.REACHED_FOLLOWER_LIMIT,"the number of followers has reached the limit"),function(e){e[e.RECORD_LEGAL_CONSENT=0]="RECORD_LEGAL_CONSENT"}(to||(to={})),function(e){e[e.ACTIVE=0]="ACTIVE",e[e.PASSIVE=1]="PASSIVE",e[e.REJECT=2]="REJECT"}(oo||(oo={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},$n.MouseMove,!0),$n.MouseInteraction,!0),$n.Scroll,!0),$n.ViewportResize,!0),$n.Input,!0),$n.TouchMove,!0),$n.MediaInteraction,!0),$n.Drag,!0),$n.Selection,!0);var io=function(){return!!window.ZCB_NPM_SDK_AGENT_MAIN||window.ZCB_NPM_SDK_CUSTOMER_MAIN},ao=function(){return window.ZCB_NPM_SDK_AGENT_SESSION_CONTEXT},so=function(){return Hn.getCoBrowsingConfig("sdkVersion")},uo=function(){return!!Hn.getCoBrowsingConfig("originalSdkVersion")},co=function(){return Hn.getCoBrowsingConfig("originalSdkVersion")},_o=function(e,n,t){var o,r={};try{var i=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(gt(i).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")),s=JSON.parse(a);return n.forEach((function(e){r[e]=s[e]})),r}catch(e){return null===(o=null==t?void 0:t.error)||void 0===o||o.call(t,"getValueFromJwt failed"),r}},lo=function(e){var n="string"==typeof e?e:e.toString();return!["/session-status"].some((function(e){return n.includes(e)}))},Eo=["table index is out of bounds","ResizeObserver loop completed with undelivered notifications"],fo=(new Date).getTime()-6048e5,So=[],Ro=[],Io={log:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.log,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return r(void 0,void 0,void 0,_regeneratorRuntime().mark((function r(){return _regeneratorRuntime().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:So.push({message:e,tag:n,logLevel:t,extraProperties:Object.assign({timestamp:Date.now()},o)});case 1:case"end":return r.stop()}}),r)})))},reportByFilter:function(e){},directReport:function(e,n){Ro.push({payload:e,options:n})},getLogs:function(e){},setReportUrl:function(e){Oe.setDynamicReportUrl(e)}},go=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ce()&&!io())return Promise.resolve();var n,t,o,r,i,a=(o=e.zmTrackingId,r=void 0===o?"":o,i=[new he({debug:!1,cleanAfterReport:!0,expireBefore:fo}),new Ae({enable:!0,debug:!1,ignoredErrorMsgKeywords:Eo,maxErrorCount:223,publicTags:[r,"ZCB-CLIENT","ERROR",null!==(n=null===location||void 0===location?void 0:location.host)&&void 0!==n?n:""]}),new Gn({enable:!1,debug:!1,publicTags:[r,"STATIC_RESOURCE",null!==(t=null===location||void 0===location?void 0:location.host)&&void 0!==t?t:"","ZCB-CLIENT"],includeResourceList:["zcb-core.css","zcb-core.js"],excludeResourceTimingKeys:[],userRegion:""})],{databaseName:"laplace-zcb-client-database",maxSize:49283072,reportUrl:Oe.getCurrentReportUrl(),plugins:i});return de.init(a).then((function(e){var n,t,o,r;e&&(n=Io,o=(null==(t=e)?void 0:t.getLogs("ZCB-CLIENT"))||[],r=new Set(o.map((function(e){return null==e?void 0:e.id}))),((null==n?void 0:n.getLogs("ZCB-CLIENT"))||[]).forEach((function(e){if(e&&!r.has(null==e?void 0:e.id)){var n=e||{},t=n.message,o=n.tags,i=n.logLevel,a=n.host,s=n.timestamp;So.push({message:t,tag:o,logLevel:i,extraProperties:{host:a,timestamp:s}})}})),Io=e,Ce()&&(So.length&&Promise.allSettled(So.map((function(e){var n=e.message,t=e.tag,o=e.logLevel,r=e.extraProperties;return Io.log(n,t,o,r)}))).then((function(){So.length=0,Io.reportByFilter(["ZCB-CLIENT"])})),Ro.length&&Promise.allSettled(Ro.map((function(e){var n=e.payload,t=e.options;return Io.directReport(n,t)}))).then((function(){Ro.length=0}))))})).catch((function(e){console.error("initLaplace ERROR:",e)}))};function To(e,n){var t=(65535&e)+(65535&n);return(e>>16)+(n>>16)+(t>>16)<<16|65535&t}function po(e,n,t,o,r,i){return To((a=To(To(n,e),To(o,i)))<<(s=r)|a>>>32-s,t);var a,s}function Oo(e,n,t,o,r,i,a){return po(n&t|~n&o,e,n,r,i,a)}function Co(e,n,t,o,r,i,a){return po(n&o|t&~o,e,n,r,i,a)}function ho(e,n,t,o,r,i,a){return po(n^t^o,e,n,r,i,a)}function No(e,n,t,o,r,i,a){return po(t^(n|~o),e,n,r,i,a)}function Ao(e,n){var t,o,r,i,a;e[n>>5]|=128<<n%32,e[14+(n+64>>>9<<4)]=n;var s=1732584193,u=-271733879,c=-1732584194,_=271733878;for(t=0;t<e.length;t+=16)o=s,r=u,i=c,a=_,s=Oo(s,u,c,_,e[t],7,-680876936),_=Oo(_,s,u,c,e[t+1],12,-389564586),c=Oo(c,_,s,u,e[t+2],17,606105819),u=Oo(u,c,_,s,e[t+3],22,-1044525330),s=Oo(s,u,c,_,e[t+4],7,-176418897),_=Oo(_,s,u,c,e[t+5],12,1200080426),c=Oo(c,_,s,u,e[t+6],17,-1473231341),u=Oo(u,c,_,s,e[t+7],22,-45705983),s=Oo(s,u,c,_,e[t+8],7,1770035416),_=Oo(_,s,u,c,e[t+9],12,-1958414417),c=Oo(c,_,s,u,e[t+10],17,-42063),u=Oo(u,c,_,s,e[t+11],22,-1990404162),s=Oo(s,u,c,_,e[t+12],7,1804603682),_=Oo(_,s,u,c,e[t+13],12,-40341101),c=Oo(c,_,s,u,e[t+14],17,-1502002290),s=Co(s,u=Oo(u,c,_,s,e[t+15],22,1236535329),c,_,e[t+1],5,-165796510),_=Co(_,s,u,c,e[t+6],9,-1069501632),c=Co(c,_,s,u,e[t+11],14,643717713),u=Co(u,c,_,s,e[t],20,-373897302),s=Co(s,u,c,_,e[t+5],5,-701558691),_=Co(_,s,u,c,e[t+10],9,38016083),c=Co(c,_,s,u,e[t+15],14,-660478335),u=Co(u,c,_,s,e[t+4],20,-405537848),s=Co(s,u,c,_,e[t+9],5,568446438),_=Co(_,s,u,c,e[t+14],9,-1019803690),c=Co(c,_,s,u,e[t+3],14,-187363961),u=Co(u,c,_,s,e[t+8],20,1163531501),s=Co(s,u,c,_,e[t+13],5,-1444681467),_=Co(_,s,u,c,e[t+2],9,-51403784),c=Co(c,_,s,u,e[t+7],14,1735328473),s=ho(s,u=Co(u,c,_,s,e[t+12],20,-1926607734),c,_,e[t+5],4,-378558),_=ho(_,s,u,c,e[t+8],11,-2022574463),c=ho(c,_,s,u,e[t+11],16,1839030562),u=ho(u,c,_,s,e[t+14],23,-35309556),s=ho(s,u,c,_,e[t+1],4,-1530992060),_=ho(_,s,u,c,e[t+4],11,1272893353),c=ho(c,_,s,u,e[t+7],16,-155497632),u=ho(u,c,_,s,e[t+10],23,-1094730640),s=ho(s,u,c,_,e[t+13],4,681279174),_=ho(_,s,u,c,e[t],11,-358537222),c=ho(c,_,s,u,e[t+3],16,-722521979),u=ho(u,c,_,s,e[t+6],23,76029189),s=ho(s,u,c,_,e[t+9],4,-640364487),_=ho(_,s,u,c,e[t+12],11,-421815835),c=ho(c,_,s,u,e[t+15],16,530742520),s=No(s,u=ho(u,c,_,s,e[t+2],23,-995338651),c,_,e[t],6,-198630844),_=No(_,s,u,c,e[t+7],10,1126891415),c=No(c,_,s,u,e[t+14],15,-1416354905),u=No(u,c,_,s,e[t+5],21,-57434055),s=No(s,u,c,_,e[t+12],6,1700485571),_=No(_,s,u,c,e[t+3],10,-1894986606),c=No(c,_,s,u,e[t+10],15,-1051523),u=No(u,c,_,s,e[t+1],21,-2054922799),s=No(s,u,c,_,e[t+8],6,1873313359),_=No(_,s,u,c,e[t+15],10,-30611744),c=No(c,_,s,u,e[t+6],15,-1560198380),u=No(u,c,_,s,e[t+13],21,1309151649),s=No(s,u,c,_,e[t+4],6,-145523070),_=No(_,s,u,c,e[t+11],10,-1120210379),c=No(c,_,s,u,e[t+2],15,718787259),u=No(u,c,_,s,e[t+9],21,-343485551),s=To(s,o),u=To(u,r),c=To(c,i),_=To(_,a);return[s,u,c,_]}function Do(e){var n,t="",o=32*e.length;for(n=0;n<o;n+=8)t+=String.fromCharCode(e[n>>5]>>>n%32&255);return t}function vo(e){var n,t=[];for(t[(e.length>>2)-1]=void 0,n=0;n<t.length;n+=1)t[n]=0;var o=8*e.length;for(n=0;n<o;n+=8)t[n>>5]|=(255&e.charCodeAt(n/8))<<n%32;return t}function mo(e){var n,t,o="0123456789abcdef",r="";for(t=0;t<e.length;t+=1)n=e.charCodeAt(t),r+=o.charAt(n>>>4&15)+o.charAt(15&n);return r}function yo(e){return unescape(encodeURIComponent(e))}function bo(e){return function(e){return Do(Ao(vo(e),8*e.length))}(yo(e))}function Po(e,n){return function(e,n){var t,o,r=vo(e),i=[],a=[];for(i[15]=a[15]=void 0,r.length>16&&(r=Ao(r,8*e.length)),t=0;t<16;t+=1)i[t]=909522486^r[t],a[t]=1549556828^r[t];return o=Ao(i.concat(vo(n)),512+8*n.length),Do(Ao(a.concat(o),640))}(yo(e),yo(n))}function Lo(e,n,t){return n?t?Po(n,e):function(e,n){return mo(Po(e,n))}(n,e):t?bo(e):mo(bo(e))}var wo=function(e){return Boolean(null==e?void 0:e.log)},Mo=function(e,n){return[e,n].flatMap((function(e){return e})).map((function(e){return"function"==typeof e?e():e})).filter((function(e){return Boolean(e)}))},Fo=function(){function e(){_classCallCheck(this,e),this.ZCB_ZmTrackingIds={}}return _createClass(e,[{key:"setZmTrackingIds",value:function(e){var n=e.zmWebTrackingId,t=e.zmChsTrackingId,o=e.zmTrackingId;this.ZCB_ZmTrackingIds={zmWebTrackingId:n,zmChsTrackingId:t,zmTrackingId:o}}},{key:"genZmTrackingId",value:function(){var e=zt(),n="zcb_client_".concat(e,"_0"),t="".concat(e,"_0");return this.ZCB_ZmTrackingIds={zmWebTrackingId:n,zmChsTrackingId:t,zmTrackingId:e},{zmWebTrackingId:n,zmChsTrackingId:t,zmTrackingId:e}}},{key:"getZmTrackingId",value:function(){var e,n=null===(e=this.ZCB_ZmTrackingIds)||void 0===e?void 0:e.zmTrackingId;return n||(console.warn("getZmTrackingId failed, generate new zmTrackingId: ".concat(n)),n=this.genZmTrackingId().zmTrackingId),n}},{key:"clearZmTrackingId",value:function(){this.ZCB_ZmTrackingIds={}}},{key:"genFailOverZmChsTrackingId",value:function(){var e,n=null===(e=this.ZCB_ZmTrackingIds)||void 0===e?void 0:e.zmChsTrackingId;n||(n=this.genZmTrackingId().zmChsTrackingId);var t=n.match(/(\\d+)(?!.*\\d+)/);if(t){var o=parseInt(t[0])+1,r=n.substring(0,t.index)+o;return this.ZCB_ZmTrackingIds&&(this.ZCB_ZmTrackingIds.zmChsTrackingId=r),r}return this.genZmTrackingId().zmChsTrackingId}},{key:"getZmTrackingIdForWeb",value:function(){var e,n=null===(e=this.ZCB_ZmTrackingIds)||void 0===e?void 0:e.zmWebTrackingId;n||(n=this.genZmTrackingId().zmWebTrackingId);var t=n.match(/(\\d+)(?!.*\\d+)/);if(t){var o=parseInt(t[0])+1,r=n.substring(0,t.index)+o;return this.ZCB_ZmTrackingIds&&(this.ZCB_ZmTrackingIds.zmWebTrackingId=r),r}return this.genZmTrackingId().zmWebTrackingId}},{key:"getZmTrackingIdForChs",value:function(){var e,n=null===(e=this.ZCB_ZmTrackingIds)||void 0===e?void 0:e.zmChsTrackingId;return n||(n=this.genZmTrackingId().zmChsTrackingId),n}}]),e}(),Uo=globalThis.ZCB_TrackingIdController||new Fo;globalThis.ZCB_TrackingIdController=Uo;function ko(e){if("object"===("undefined"==typeof window?"undefined":_typeof(window))){var n=encodeURI(e);return btoa(n)}return Buffer.from(e).toString("base64")}var Bo,xo,Vo,Wo,Go,Ho,Jo=function(e){return ko(e)},Yo=function(){function e(n){var t=n.requestOrigin,o=n.parentFrameId;_classCallCheck(this,e),this.parentFrameId=o;var r=Jo(t);o&&(r=o+"--"+r),this.frameId=r}return _createClass(e,[{key:"equal",value:function(e){var n=e.requestOrigin,t=e.parentFrameId;return t===this.parentFrameId&&this.frameId===t+"--"+Jo(n)}},{key:"isParentFrame",value:function(e){return this.frameId===e}},{key:"isSubFrame",value:function(e){return this.parentFrameId===e}}]),e}(),jo=function(){function e(n){_classCallCheck(this,e),this.frames=new Map,this.tabId=n}return _createClass(e,[{key:"getFrame",value:function(e){var n=e.requestOrigin,t=e.parentFrameId,o=null;return this.frames.forEach((function(e){e.equal({requestOrigin:n,parentFrameId:t})&&(o=e)})),o}},{key:"checkAddFrame",value:function(e){var n=this,t=e.requestOrigin,o=e.parentFrameId,r=this.getFrame({requestOrigin:t,parentFrameId:o});if(r)return r;if(this.tabId===o)return this.addFrame({requestOrigin:t,parentFrameId:o});var i=null;return this.frames.forEach((function(e){i||e.isParentFrame(o)&&(i=n.addFrame({requestOrigin:t,parentFrameId:o}))})),i}},{key:"getSubFrames",value:function(e){var n=[];return this.frames.forEach((function(t){t.isSubFrame(e)&&n.push(t)})),n}},{key:"addFrame",value:function(e){var n=e.requestOrigin,t=e.parentFrameId,o=new Yo({requestOrigin:n,parentFrameId:t});return this.frames.set(o.frameId,o),o}}]),e}(),zo=function(){function e(){_classCallCheck(this,e),this.tabs=new Map}return _createClass(e,[{key:"makeRequest",value:function(e){var n=e.requestOrigin,t=e.parentFrameId,o="";return t?(this.tabs.forEach((function(e){if(!o){var r=e.checkAddFrame({requestOrigin:n,parentFrameId:t});r&&(o=r.frameId)}})),o):this.tabs.size?(this.tabs.forEach((function(e,n){o||(o=n)})),o):(o=Jo(n),this.tabs.set(o,new jo(o)),o)}},{key:"makeViewerRequest",value:function(e){var n=e.parentFrameId,t="";return this.tabs.forEach((function(e){var o;if(n){if(t)return;var r=e.getSubFrames(n);t=(null===(o=r[0])||void 0===o?void 0:o.frameId)||""}else t=e.tabId})),t}}]),e}(),Ko=new(function(){function e(){_classCallCheck(this,e),this.rooms=new Map}return _createClass(e,[{key:"makeRequest",value:function(e){var n=e.roomId,t=e.requestOrigin,o=e.parentFrameId,r=e.isViewer;this.rooms.get(n)||this.rooms.set(n,new zo);var i=this.rooms.get(n);return i?r?i.makeViewerRequest({parentFrameId:o}):i.makeRequest({requestOrigin:t,parentFrameId:o}):""}}]),e}());"undefined"!=typeof global&&(global.cpsRoomManager=Ko),function(e){e.UNKNOW="unknow",e.BROWSER="browser",e.BROWSER_WORKER="worker",e.NODE="node",e.NODE_WORKER="node_worker"}(Bo||(Bo={})),xo="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,Vo="undefined"!=typeof window,Wo="function"==typeof importScripts,Go=xo&&!Wo,Ho=!xo&&!Vo,Wo?Bo.BROWSER_WORKER:Vo?Bo.BROWSER:Ho?Bo.NODE:Go?Bo.NODE_WORKER:Bo.UNKNOW;var Zo=_createClass((function e(){var n=this;_classCallCheck(this,e),this.promise=new Promise((function(e,t){n.reject=t,n.resolve=e})),this.promise.then((function(e){return n.resolved=!0,e})).catch((function(){n.resolved=!1})).finally((function(){n.finished=!0,n.finishedTimestamp=Date.now()}))}));var Xo=function(){function e(n){_classCallCheck(this,e),this.cache=new Map,this.limit=n}return _createClass(e,[{key:"get",value:function(e){if(this.cache.has(e)){var n=this.cache.get(e);return this.cache.delete(e),this.cache.set(e,n),n}}},{key:"set",value:function(e,n){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.limit){var t=this.cache.keys().next().value;this.cache.delete(t)}this.cache.set(e,n)}},{key:"has",value:function(e){return this.cache.has(e)}},{key:"delete",value:function(e){return this.cache.delete(e)}},{key:"clear",value:function(){this.cache.clear()}},{key:"keys",value:function(){return Array.from(this.cache.keys())}},{key:"values",value:function(){return Array.from(this.cache.values())}}]),e}(),qo="function",Qo="object",$o="string",er="model",nr="name",tr="type",or="vendor",rr="version",ir="architecture",ar="hardwareConcurrency",sr="console",ur="mobile",cr="tablet",_r="smarttv",lr="wearable",Er="Amazon",dr="Apple",fr="ASUS",Sr="BlackBerry",Rr="Browser",Ir="Chrome",gr="Firefox",Tr="Google",pr="Huawei",Or="LG",Cr="Microsoft",hr="Motorola",Nr="Opera",Ar="Samsung",Dr="Sharp",vr="Sony",mr="Xiaomi",yr="Zebra",br="Facebook",Pr={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Lr=function(e){return e.toLowerCase()},wr=function(e,n){return _typeof(e)===$o&&-1!==Lr(n).indexOf(Lr(e))},Mr=function(e,n){return _typeof(e)===$o?(e=e.replace(/^\\s\\s*/,""),"undefined"===_typeof(n)?e:e.substring(0,350)):""},Fr=function(e,n){for(var t in n)if(_typeof(n[t])===Qo&&n[t].length>0){for(var o=0;o<n[t].length;o++)if(wr(n[t][o],e))return"?"===t?void 0:t}else if(wr(n[t],e))return"?"===t?void 0:t;return e},Ur={browser:[[/(ZoomApps)\\/([\\w\\.]+)/i],[nr,rr],[/\\b(?:crmo|crios)\\/([\\w\\.]+)/i],[rr,[nr,"Chrome"]],[/edg(?:e|ios|a)?\\/([\\w\\.]+)/i],[rr,[nr,"Edge"]],[/(opera mini)\\/([-\\w\\.]+)/i,/(opera [mobiletab]{3,6})\\b.+version\\/([-\\w\\.]+)/i,/(opera)(?:.+version\\/|[\\/ ]+)([\\w\\.]+)/i],[nr,rr],[/opios[\\/ ]+([\\w\\.]+)/i],[rr,[nr,Nr+" Mini"]],[/\\bopr\\/([\\w\\.]+)/i],[rr,[nr,Nr]],[/(kindle)\\/([\\w\\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\\/ ]?([\\w\\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\\/ ]?([\\w\\.]*)/i,/(ba?idubrowser)[\\/ ]?([\\w\\.]+)/i,/(?:ms|\\()(ie) ([\\w\\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\\/([-\\w\\.]+)/i,/(weibo)__([\\d\\.]+)/i],[nr,rr],[/(?:\\buc? ?browser|(?:juc.+)ucweb)[\\/ ]?([\\w\\.]+)/i],[rr,[nr,"UC"+Rr]],[/microm.+\\bqbcore\\/([\\w\\.]+)/i,/\\bqbcore\\/([\\w\\.]+).+microm/i],[rr,[nr,"WeChat(Win) Desktop"]],[/micromessenger\\/([\\w\\.]+)/i],[rr,[nr,"WeChat"]],[/konqueror\\/([\\w\\.]+)/i],[rr,[nr,"Konqueror"]],[/trident.+rv[: ]([\\w\\.]{1,9})\\b.+like gecko/i],[rr,[nr,"IE"]],[/yabrowser\\/([\\w\\.]+)/i],[rr,[nr,"Yandex"]],[/(avast|avg)\\/([\\w\\.]+)/i],[[nr,/(.+)/,"$1 Secure "+Rr],rr],[/\\bfocus\\/([\\w\\.]+)/i],[rr,[nr,gr+" Focus"]],[/\\bopt\\/([\\w\\.]+)/i],[rr,[nr,Nr+" Touch"]],[/coc_coc\\w+\\/([\\w\\.]+)/i],[rr,[nr,"Coc Coc"]],[/dolfin\\/([\\w\\.]+)/i],[rr,[nr,"Dolphin"]],[/coast\\/([\\w\\.]+)/i],[rr,[nr,Nr+" Coast"]],[/miuibrowser\\/([\\w\\.]+)/i],[rr,[nr,"MIUI "+Rr]],[/fxios\\/([-\\w\\.]+)/i],[rr,[nr,gr]],[/\\bqihu|(qi?ho?o?|360)browser/i],[[nr,"360 "+Rr]],[/(oculus|samsung|sailfish|huawei)browser\\/([\\w\\.]+)/i],[[nr,/(.+)/,"$1 "+Rr],rr],[/(comodo_dragon)\\/([\\w\\.]+)/i],[[nr,/_/g," "],rr],[/(electron)\\/([\\w\\.]+) safari/i,/(tesla)(?: qtcarbrowser|\\/(20\\d\\d\\.[-\\w\\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\\/ ]?([\\w\\.]+)/i],[nr,rr],[/(metasr)[\\/ ]?([\\w\\.]+)/i,/(lbbrowser)/i,/\\[(linkedin)app\\]/i],[nr],[/((?:fban\\/fbios|fb_iab\\/fb4a)(?!.+fbav)|;fbav\\/([\\w\\.]+);)/i],[[nr,br],rr],[/safari (line)\\/([\\w\\.]+)/i,/\\b(line)\\/([\\w\\.]+)\\/iab/i,/(chromium|instagram)[\\/ ]([-\\w\\.]+)/i],[nr,rr],[/\\bgsa\\/([\\w\\.]+) .*safari\\//i],[rr,[nr,"GSA"]],[/headlesschrome(?:\\/([\\w\\.]+)| )/i],[rr,[nr,Ir+" Headless"]],[/ wv\\).+(chrome)\\/([\\w\\.]+)/i],[[nr,Ir+" WebView"],rr],[/droid.+ version\\/([\\w\\.]+)\\b.+(?:mobile safari|safari)/i],[rr,[nr,"Android "+Rr]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\/v?([\\w\\.]+)/i],[nr,rr],[/version\\/([\\w\\.\\,]+) .*mobile\\/\\w+ (safari)/i],[rr,[nr,"Mobile Safari"]],[/version\\/([\\w(\\.|\\,)]+) .*(mobile ?safari|safari)/i],[rr,nr],[/webkit.+?(mobile ?safari|safari)(\\/[\\w\\.]+)/i],[nr,[rr,Fr,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\\/([\\w\\.]+)/i],[nr,rr],[/(navigator|netscape\\d?)\\/([-\\w\\.]+)/i],[[nr,"Netscape"],rr],[/mobile vr; rv:([\\w\\.]+)\\).+firefox/i],[rr,[nr,gr+" Reality"]],[/ekiohf.+(flow)\\/([\\w\\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\/ ]?([\\w\\.\\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\/([-\\w\\.]+)$/i,/(firefox)\\/([\\w\\.]+)/i,/(mozilla)\\/([\\w\\.]+) .+rv\\:.+gecko\\/\\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\. ]?browser)[-\\/ ]?v?([\\w\\.]+)/i,/(links) \\(([\\w\\.]+)/i],[nr,rr],[/(cobalt)\\/([\\w\\.]+)/i],[nr,[rr,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\)]/i],[[ir,"amd64"]],[/(ia32(?=;))/i],[[ir,Lr]],[/((?:i[346]|x)86)[;\\)]/i],[[ir,"ia32"]],[/\\b(aarch64|arm(v?8e?l?|_?64))\\b/i],[[ir,"arm64"]],[/\\b(arm(?:v[67])?ht?n?[fl]p?)\\b/i],[[ir,"armhf"]],[/windows (ce|mobile); ppc;/i],[[ir,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\\))/i],[[ir,/ower/,"",Lr]],[/(sun4\\w)[;\\)]/i],[[ir,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\\))|\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\b|pa-risc)/i],[[ir,Lr]]],device:[[/\\b(sch-i[89]0\\d|shw-m380s|sm-[ptx]\\w{2,4}|gt-[pn]\\d{2,4}|sgh-t8[56]9|nexus 10)/i],[er,[or,Ar],[tr,cr]],[/\\b((?:s[cgp]h|gt|sm)-\\w+|galaxy nexus)/i,/samsung[- ]([-\\w]+)/i,/sec-(sgh\\w+)/i],[er,[or,Ar],[tr,ur]],[/((ipod|iphone)\\d+,\\d+)/i],[er,[or,dr],[tr,ur]],[/(ipad\\d+,\\d+)/i],[er,[or,dr],[tr,cr]],[/\\((ip(?:hone|od)[\\w ]*);/i],[er,[or,dr],[tr,ur]],[/\\((ipad);[-\\w\\),; ]+apple/i,/applecoremedia\\/[\\w\\.]+ \\((ipad)/i,/\\b(ipad)\\d\\d?,\\d\\d?[;\\]].+ios/i],[er,[or,dr],[tr,cr]],[/(macintosh);/i],[er,[or,dr]],[/\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\d{2})\\b(?!.+d\\/s)/i],[er,[or,pr],[tr,cr]],[/(?:huawei|honor)([-\\w ]+)[;\\)]/i,/\\b(nexus 6p|\\w{2,4}e?-[atu]?[ln][\\dx][012359c][adn]?)\\b(?!.+d\\/s)/i],[er,[or,pr],[tr,ur]],[/\\b(poco[\\w ]+)(?: bui|\\))/i,/\\b; (\\w+) build\\/hm\\1/i,/\\b(hm[-_ ]?note?[_ ]?(?:\\d\\w)?) bui/i,/\\b(redmi[\\-_ ]?(?:note|k)?[\\w_ ]+)(?: bui|\\))/i,/\\b(mi[-_ ]?(?:a\\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\\d?\\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\\))/i],[[er,/_/g," "],[or,mr],[tr,ur]],[/\\b(mi[-_ ]?(?:pad)(?:[\\w_ ]+))(?: bui|\\))/i],[[er,/_/g," "],[or,mr],[tr,cr]],[/; (\\w+) bui.+ oppo/i,/\\b(cph[12]\\d{3}|p(?:af|c[al]|d\\w|e[ar])[mt]\\d0|x9007|a101op)\\b/i],[er,[or,"OPPO"],[tr,ur]],[/vivo (\\w+)(?: bui|\\))/i,/\\b(v[12]\\d{3}\\w?[at])(?: bui|;)/i],[er,[or,"Vivo"],[tr,ur]],[/\\b(rmx[12]\\d{3})(?: bui|;|\\))/i],[er,[or,"Realme"],[tr,ur]],[/\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\b[\\w ]+build\\//i,/\\bmot(?:orola)?[- ](\\w*)/i,/((?:moto[\\w\\(\\) ]+|xt\\d{3,4}|nexus 6)(?= bui|\\)))/i],[er,[or,hr],[tr,ur]],[/\\b(mz60\\d|xoom[2 ]{0,2}) build\\//i],[er,[or,hr],[tr,cr]],[/((?=lg)?[vl]k\\-?\\d{3}) bui| 3\\.[-\\w; ]{10}lg?-([06cv9]{3,4})/i],[er,[or,Or],[tr,cr]],[/(lm(?:-?f100[nv]?|-[\\w\\.]+)(?= bui|\\))|nexus [45])/i,/\\blg[-e;\\/ ]+((?!browser|netcast|android tv)\\w+)/i,/\\blg-?([\\d\\w]+) bui/i],[er,[or,Or],[tr,ur]],[/(ideatab[-\\w ]+)/i,/lenovo ?(s[56]000[-\\w]+|tab(?:[\\w ]+)|yt[-\\d\\w]{6}|tb[-\\d\\w]{6})/i],[er,[or,"Lenovo"],[tr,cr]],[/(?:maemo|nokia).*(n900|lumia \\d+)/i,/nokia[-_ ]?([-\\w\\.]*)/i],[[er,/_/g," "],[or,"Nokia"],[tr,ur]],[/(pixel c)\\b/i],[er,[or,Tr],[tr,cr]],[/droid.+; (pixel[\\daxl ]{0,6})(?: bui|\\))/i],[er,[or,Tr],[tr,ur]],[/droid.+ (a?\\d[0-2]{2}so|[c-g]\\d{4}|so[-gl]\\w+|xq-a\\w[4-7][12])(?= bui|\\).+chrome\\/(?![1-6]{0,1}\\d\\.))/i],[er,[or,vr],[tr,ur]],[/sony tablet [ps]/i,/\\b(?:sony)?sgp\\w+(?: bui|\\))/i],[[er,"Xperia Tablet"],[or,vr],[tr,cr]],[/ (kb2005|in20[12]5|be20[12][59])\\b/i,/(?:one)?(?:plus)? (a\\d0\\d\\d)(?: b|\\))/i],[er,[or,"OnePlus"],[tr,ur]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\\))/i,/(kf[a-z]+)( bui|\\)).+silk\\//i],[er,[or,Er],[tr,cr]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\\)).+silk\\//i],[[er,/(.+)/g,"Fire Phone $1"],[or,Er],[tr,ur]],[/(playbook);[-\\w\\),; ]+(rim)/i],[er,or,[tr,cr]],[/\\b((?:bb[a-f]|st[hv])100-\\d)/i,/\\(bb10; (\\w+)/i],[er,[or,Sr],[tr,ur]],[/(?:\\b|asus_)(transfo[prime ]{4,10} \\w+|eeepc|slider \\w+|nexus 7|padfone|p00[cj])/i],[er,[or,fr],[tr,cr]],[/ (z[bes]6[027][012][km][ls]|zenfone \\d\\w?)\\b/i],[er,[or,fr],[tr,ur]],[/(nexus 9)/i],[er,[or,"HTC"],[tr,cr]],[/(htc)[-;_ ]{1,2}([\\w ]+(?=\\)| bui)|\\w+)/i,/(zte)[- ]([\\w ]+?)(?: bui|\\/|\\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\\w]*)/i],[or,[er,/_/g," "],[tr,ur]],[/droid.+; ([ab][1-7]-?[0178a]\\d\\d?)/i],[er,[or,"Acer"],[tr,cr]],[/droid.+; (m[1-5] note) bui/i,/\\bmz-([-\\w]{2,})/i],[er,[or,"Meizu"],[tr,ur]],[/\\b(sh-?[altvz]?\\d\\d[a-ekm]?)/i],[er,[or,Dr],[tr,ur]],[/(blackberry|benq|palm(?=\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\\w]*)/i,/(hp) ([\\w ]+\\w)/i,/(asus)-?(\\w+)/i,/(microsoft); (lumia[\\w ]+)/i,/(lenovo)[-_ ]?([-\\w]+)/i,/(jolla)/i,/(oppo) ?([\\w ]+) bui/i],[or,er,[tr,ur]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\\/([\\w\\.]+)/i,/(nook)[\\w ]+build\\/(\\w+)/i,/(dell) (strea[kpr\\d ]*[\\dko])/i,/(le[- ]+pan)[- ]+(\\w{1,9}) bui/i,/(trinity)[- ]*(t\\d{3}) bui/i,/(gigaset)[- ]+(q\\w{1,9}) bui/i,/(vodafone) ([\\w ]+)(?:\\)| bui)/i],[or,er,[tr,cr]],[/(surface duo)/i],[er,[or,Cr],[tr,cr]],[/droid [\\d\\.]+; (fp\\du?)(?: b|\\))/i],[er,[or,"Fairphone"],[tr,ur]],[/(u304aa)/i],[er,[or,"AT&T"],[tr,ur]],[/\\bsie-(\\w*)/i],[er,[or,"Siemens"],[tr,ur]],[/\\b(rct\\w+) b/i],[er,[or,"RCA"],[tr,cr]],[/\\b(venue[\\d ]{2,7}) b/i],[er,[or,"Dell"],[tr,cr]],[/\\b(q(?:mv|ta)\\w+) b/i],[er,[or,"Verizon"],[tr,cr]],[/\\b(?:barnes[& ]+noble |bn[rt])([\\w\\+ ]*) b/i],[er,[or,"Barnes & Noble"],[tr,cr]],[/\\b(tm\\d{3}\\w+) b/i],[er,[or,"NuVision"],[tr,cr]],[/\\b(k88) b/i],[er,[or,"ZTE"],[tr,cr]],[/\\b(nx\\d{3}j) b/i],[er,[or,"ZTE"],[tr,ur]],[/\\b(gen\\d{3}) b.+49h/i],[er,[or,"Swiss"],[tr,ur]],[/\\b(zur\\d{3}) b/i],[er,[or,"Swiss"],[tr,cr]],[/\\b((zeki)?tb.*\\b) b/i],[er,[or,"Zeki"],[tr,cr]],[/\\b([yr]\\d{2}) b/i,/\\b(dragon[- ]+touch |dt)(\\w{5}) b/i],[[or,"Dragon Touch"],er,[tr,cr]],[/\\b(ns-?\\w{0,9}) b/i],[er,[or,"Insignia"],[tr,cr]],[/\\b((nxa|next)-?\\w{0,9}) b/i],[er,[or,"NextBook"],[tr,cr]],[/\\b(xtreme\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[or,"Voice"],er,[tr,ur]],[/\\b(lvtel\\-)?(v1[12]) b/i],[[or,"LvTel"],er,[tr,ur]],[/\\b(ph-1) /i],[er,[or,"Essential"],[tr,ur]],[/\\b(v(100md|700na|7011|917g).*\\b) b/i],[er,[or,"Envizen"],[tr,cr]],[/\\b(trio[-\\w\\. ]+) b/i],[er,[or,"MachSpeed"],[tr,cr]],[/\\btu_(1491) b/i],[er,[or,"Rotor"],[tr,cr]],[/(shield[\\w ]+) b/i],[er,[or,"Nvidia"],[tr,cr]],[/(sprint) (\\w+)/i],[or,er,[tr,ur]],[/(kin\\.[onetw]{3})/i],[[er,/\\./g," "],[or,Cr],[tr,ur]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\)/i],[er,[or,yr],[tr,cr]],[/droid.+; (ec30|ps20|tc[2-8]\\d[kx])\\)/i],[er,[or,yr],[tr,ur]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[or,er,[tr,sr]],[/droid.+; (shield) bui/i],[er,[or,"Nvidia"],[tr,sr]],[/(playstation [345portablevi]+)/i],[er,[or,vr],[tr,sr]],[/\\b(xbox(?: one)?(?!; xbox))[\\); ]/i],[er,[or,Cr],[tr,sr]],[/smart-tv.+(samsung)/i],[or,[tr,_r]],[/hbbtv.+maple;(\\d+)/i],[[er,/^/,"SmartTV"],[or,Ar],[tr,_r]],[/(nux; netcast.+smarttv|lg (netcast\\.tv-201\\d|android tv))/i],[[or,Or],[tr,_r]],[/(apple) ?tv/i],[or,[er,dr+" TV"],[tr,_r]],[/crkey/i],[[er,Ir+"cast"],[or,Tr],[tr,_r]],[/droid.+aft(\\w)( bui|\\))/i],[er,[or,Er],[tr,_r]],[/\\(dtv[\\);].+(aquos)/i,/(aquos-tv[\\w ]+)\\)/i],[er,[or,Dr],[tr,_r]],[/(bravia[\\w ]+)( bui|\\))/i],[er,[or,vr],[tr,_r]],[/(mitv-\\w{5}) bui/i],[er,[or,mr],[tr,_r]],[/\\b(roku)[\\dx]*[\\)\\/]((?:dvp-)?[\\d\\.]*)/i,/hbbtv\\/\\d+\\.\\d+\\.\\d+ +\\([\\w ]*; *(\\w[^;]*);([^;]*)/i],[[or,Mr],[er,Mr],[tr,_r]],[/\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\b/i],[[tr,_r]],[/((pebble))app/i],[or,er,[tr,lr]],[/droid.+; (glass) \\d/i],[er,[or,Tr],[tr,lr]],[/droid.+; (wt63?0{2,3})\\)/i],[er,[or,yr],[tr,lr]],[/(quest( 2)?)/i],[er,[or,br],[tr,lr]],[/(tesla)(?: qtcarbrowser|\\/[-\\w\\.]+)/i],[or,[tr,"embedded"]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+? mobile safari/i],[er,[tr,ur]],[/droid .+?; ([^;]+?)(?: bui|\\) applew).+?(?! mobile) safari/i],[er,[tr,cr]],[/\\b((tablet|tab)[;\\/]|focus\\/\\d(?!.+mobile))/i],[[tr,cr]],[/(phone|mobile(?:[;\\/]| [ \\w\\/\\.]*safari)|pda(?=.+windows ce))/i],[[tr,ur]],[/(android[-\\w\\. ]{0,9});.+buil/i],[er,[or,"Generic"]]],engine:[[/windows.+ edge\\/([\\w\\.]+)/i],[rr,[nr,"EdgeHTML"]],[/webkit\\/537\\.36.+chrome\\/(?!27)([\\w\\.]+)/i],[rr,[nr,"Blink"]],[/(presto)\\/([\\w\\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\/([\\w\\.]+)/i,/ekioh(flow)\\/([\\w\\.]+)/i,/(khtml|tasman|links)[\\/ ]\\(?([\\w\\.]+)/i,/(icab)[\\/ ]([23]\\.[\\d\\.]+)/i],[nr,rr],[/rv\\:([\\w\\.]{1,9})\\b.+(gecko)/i],[rr,nr]],os:[[/microsoft (windows) (vista|xp)/i],[nr,rr],[/(windows) nt 6\\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\\/ ]?([\\d\\.\\w ]*)/i,/(windows)[\\/ ]?([ntce\\d\\. ]+\\w)(?!.+xbox)/i],[nr,[rr,Fr,Pr]],[/(win(?=3|9|n)|win 9x )([nt\\d\\.]+)/i],[[nr,"Windows"],[rr,Fr,Pr]],[/ip[honead]{2,4}\\b(?:.*os ([\\w]+) like mac|; opera)/i,/cfnetwork\\/.+darwin/i],[[rr,/_/g,"."],[nr,"iOS"]],[/(mac os x) ?([\\w\\. ]*)/i,/(macintosh|mac_powerpc\\b)(?!.+haiku)/i],[[nr,"Mac OS"],[rr,/_/g,"."]],[/droid ([\\w\\.]+)\\b.+(android[- ]x86|harmonyos)/i],[rr,nr],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\/ ]?([\\w\\.]*)/i,/(blackberry)\\w*\\/([\\w\\.]*)/i,/(tizen|kaios)[\\/ ]([\\w\\.]+)/i,/\\((series40);/i],[nr,rr],[/\\(bb(10);/i],[rr,[nr,Sr]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\\/ ]?([\\w\\.]*)/i],[rr,[nr,"Symbian"]],[/mozilla\\/[\\d\\.]+ \\((?:mobile|tablet|tv|mobile; [\\w ]+); rv:.+ gecko\\/([\\w\\.]+)/i],[rr,[nr,gr+" OS"]],[/web0s;.+rt(tv)/i,/\\b(?:hp)?wos(?:browser)?\\/([\\w\\.]+)/i],[rr,[nr,"webOS"]],[/crkey\\/([\\d\\.]+)/i],[rr,[nr,Ir+"cast"]],[/(cros) [\\w]+ ([\\w\\.]+\\w)/i],[[nr,"Chromium OS"],rr],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\\);]+)/i,/\\b(joli|palm)\\b ?(?:os)?\\/?([\\w\\.]*)/i,/(mint)[\\/\\(\\) ]?(\\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\\/ ]?(?!chrom|package)([-\\w\\.]*)/i,/(hurd|linux) ?([\\w\\.]*)/i,/(gnu) ?([\\w\\.]*)/i,/\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\/ ]?(?!amd|[ix346]{1,2}86)([\\w\\.]*)/i,/(haiku) (\\w+)/i],[nr,rr],[/(sunos) ?([\\w\\.\\d]*)/i],[[nr,"Solaris"],rr],[/((?:open)?solaris)[-\\/ ]?([\\w\\.]*)/i,/(aix) ((\\d)(?=\\.|\\)| )[\\w\\.])*/i,/\\b(beos|os\\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\\w\\.]*)/i],[nr,rr]]},kr=function(){function e(n){_classCallCheck(this,e),this.ua=(null===navigator||void 0===navigator?void 0:navigator.userAgent)||"",this.navigator=navigator||{},n&&(this.ua=n),this.regexes=Ur}return _createClass(e,[{key:"rgxMapper",value:function(e,n){for(var t={},o=0,r=0,i=0,a=0,s=void 0,u=void 0,c=void 0;o<n.length&&!u;){var _=n[o],l=n[o+1];for(r=i=0;r<_.length&&!u;)if(u=_[r++].exec(e))for(a=0;a<l.length;a++)c=u[++i],_typeof(s=l[a])===Qo&&s.length>0?2===s.length?_typeof(s[1])==qo?t[s[0]]=s[1](c):t[s[0]]=s[1]:3===s.length?_typeof(s[1])!==qo||s[1].exec&&s[1].test?t[s[0]]=c?c.replace(s[1],s[2]):void 0:t[s[0]]=c?s[1](c,s[2]):void 0:4===s.length&&(t[s[0]]=c?s[3](c.replace(s[1],s[2])):void 0):t[s]=c||void 0;o+=2}return t}},{key:"getBrowser",value:function(){var e={};e[nr]=void 0,e[rr]=void 0;var n,t=this.rgxMapper(this.ua,this.regexes.browser);return e.major=_typeof(n=t.version)===$o?n.replace(/[^\\d\\.]/g,"").split(".")[0]:void 0,Object.assign(e,t),e}},{key:"getCPU",value:function(){var e={};e[ir]=void 0,e[ar]=this.navigator[ar];var n=this.rgxMapper(this.ua,this.regexes.cpu);return Object.assign(e,n),e}},{key:"getDevice",value:function(){var e={};e[or]=void 0,e[er]=void 0,e[tr]=void 0;var n=this.rgxMapper(this.ua,this.regexes.device);return Object.assign(e,n),e}},{key:"getEngine",value:function(){var e={};e[nr]=void 0,e[rr]=void 0;var n=this.rgxMapper(this.ua,this.regexes.engine);return Object.assign(e,n),e}},{key:"getOS",value:function(){var e={};e[nr]=void 0,e[rr]=void 0;var n=this.rgxMapper(this.ua,this.regexes.os);return Object.assign(e,n),e}},{key:"getUA",value:function(){return this.ua}},{key:"setUA",value:function(e){var n=_typeof(e)===$o&&e.length>350?Mr(e,350):e;this.ua=n}},{key:"getResult",value:function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}}}]),e}(),Br=new(function(){function e(){_classCallCheck(this,e),globalThis.ZCB_ZmCobrowseInfo={session:{userId:"",sessionId:"",participantType:"",agentSdkTrackingId:"",region:"",sdkSourceType:void 0},isCobrowseLocked:!1}}return _createClass(e,[{key:"getSession",value:function(){var e;return null===(e=globalThis.ZCB_ZmCobrowseInfo)||void 0===e?void 0:e.session}},{key:"getCobrowse",value:function(){return globalThis.ZCB_ZmCobrowseInfo}},{key:"setSessionId",value:function(e){globalThis.ZCB_ZmCobrowseInfo.session.sessionId=e}},{key:"setAgentSdkTrackingId",value:function(e){globalThis.ZCB_ZmCobrowseInfo.session.agentSdkTrackingId=e}},{key:"setUserId",value:function(e){globalThis.ZCB_ZmCobrowseInfo.session.userId=e}},{key:"setParticipantType",value:function(e){globalThis.ZCB_ZmCobrowseInfo.session.participantType=e}},{key:"setIsCobrowseLocked",value:function(e){globalThis.ZCB_ZmCobrowseInfo.isCobrowseLocked=e}},{key:"setSession",value:function(e){Object.assign(globalThis.ZCB_ZmCobrowseInfo.session,e)}},{key:"setRegion",value:function(e){globalThis.ZCB_ZmCobrowseInfo.session.region=e}},{key:"clearRegion",value:function(){globalThis.ZCB_ZmCobrowseInfo.session.region=""}},{key:"setSdkSourceType",value:function(e){window.ZCB_ZmCobrowseInfo.session.sdkSourceType=e}},{key:"clearSession",value:function(){globalThis.ZCB_ZmCobrowseInfo.session={userId:"",sessionId:"",participantType:"",agentSdkTrackingId:"",region:"",sdkSourceType:void 0},globalThis.ZCB_ZmCobrowseInfo.isCobrowseLocked=!1}}]),e}()),xr={log:new Xo(30),info:new Xo(30),debug:new Xo(30),warn:new Xo(30),error:new Xo(30)},Vr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];try{return(null==e?void 0:e.some((function(e){return"NO-TRACKING"===e})))?"0000":Uo.getZmTrackingId()}catch(e){return console.error("error: ".concat(e)),Uo.getZmTrackingId()}},Wr=function(e,n,t){return["%c ".concat(e," %c ").concat(n," %c"),"background:".concat(t,";border:1px solid ").concat(t,"; padding: 1px; border-radius: 2px 0 0 2px; color: #fff;"),"border:1px solid ".concat(t,"; padding: 1px; border-radius: 0 2px 2px 0; color: ").concat(t,";"),"background:transparent"]},Gr=function(){return r(void 0,void 0,void 0,_regeneratorRuntime().mark((function e(){var n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(void 0,void 0,void 0,_regeneratorRuntime().mark((function e(){var n,t,o,r,i,a,s,u,c,_;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=(new kr).getResult(),navigator){e.next=3;break}return e.abrupt("return",{});case 3:if(c=Object.assign({appCodeName:navigator.appCodeName,appName:navigator.appName,appVersion:navigator.appVersion,language:navigator.language,connection:{downlink:null===(n=navigator.connection)||void 0===n?void 0:n.downlink,downlinkMax:null===(t=navigator.connection)||void 0===t?void 0:t.downlinkMax,effectiveType:null===(o=navigator.connection)||void 0===o?void 0:o.effectiveType,rtt:null===(r=navigator.connection)||void 0===r?void 0:r.rtt,saveData:null===(i=navigator.connection)||void 0===i?void 0:i.saveData,type:null===(a=navigator.connection)||void 0===a?void 0:a.type},href:location.host},u),!(null===(s=navigator.userAgentData)||void 0===s?void 0:s.getHighEntropyValues)){e.next=18;break}return e.prev=5,e.next=8,navigator.userAgentData.getHighEntropyValues(["architecture","bitness","fullVersionList","platformVersion","wow64","model","formFactor"]);case 8:_=e.sent,c.os&&(c.os.version=_.platformVersion),c.cpu&&(c.cpu.architecture=_.architecture,c.cpu.bitness=_.bitness),c.mobile=_.mobile,c.userAgentData=JSON.stringify(_),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(5),console.log("get userAgentData error",e.t0);case 18:return e.abrupt("return",c);case 19:case"end":return e.stop()}}),e,null,[[5,15]])})));case 2:n=e.sent,jr(["navigator"]).logWithReport(JSON.stringify(n));case 4:case"end":return e.stop()}}),e)})))},Hr=function(e,n){var t=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=null,r=0;return function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];var u=Date.now();r||!1!==t.leading||(r=u);var c=n-(u-r),_=this;c<=0||c>n?(o&&(clearTimeout(o),o=null),r=u,e.apply(_,a)):o||!1===t.trailing||(o=setTimeout((function(){r=!1===t.leading?0:Date.now(),o=null,e.apply(_,a)}),c))}}(e,n,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),o=null,r=null,i=null;return function(){for(var e=arguments.length,a=new Array(e),s=0;s<e;s++)a[s]=arguments[s];o=a,r=this,i||(i=setTimeout((function(){o&&(t.apply(r,o),o=null,i=null)}),n)),t.apply(this,a)}}((function(){Ce()&&Io.reportByFilter(["ZCB-CLIENT"])}),1e4);function Jr(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.log,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4?arguments[4]:void 0;return r(this,void 0,void 0,_regeneratorRuntime().mark((function r(){var i,s,u,c,_,l,E,d,f,S;return _regeneratorRuntime().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=(null==a?void 0:a.sessionInfo)||Br.getSession(),s=i.userId,u=i.sessionId,c=i.participantType,_=i.region,l=i.agentSdkTrackingId,E=i.sdkSourceType,d=(null==a?void 0:a.appKey)||Hn.getCoBrowsingConfig("appKey"),f={uuid:s,appKey:"{E}".concat(d,"{/E}"),sessionId:u,participantType:c,region:_,sdkSourceType:E},l&&(f.agentSdkTrackingId=l),r.next=7,Io.log(e,n,t,Object.assign({host:a?a.host||"":(null===location||void 0===location?void 0:location.host)||"",zmDeviceId:a?a.zmDeviceId||"":window.ZCB_ZmDeviceId,sdkVersion:a?a.sdkVersion||"":so(),info:f},o));case 7:return S=r.sent,Hr(),r.abrupt("return",S);case 10:case"end":return r.stop()}}),r)})))}var Yr,jr=function(e,n){var t=_toConsumableArray(Mo(["ZCB-CLIENT"],e||[]));return{log:function(e,o){return function(e,n,t,o){var r,a;if(null!==(a=null===(r=null==pe?void 0:pe.logLevel)||void 0===r?void 0:r.log)&&void 0!==a&&a&&wo(Io)){var s=(null==o?void 0:o.trackingId)||Vr(t),u=Mo([s],n||[]),c=Mo(u,t||[]),_=Lo("".concat(s).concat(e));if(!xr.log.has(_))return xr.log.set(_,!0),Jr(e,c,i.log,{},o)}}(e,t,o,n)},logWithReport:function(e,o){return function(e,n,t,o){var r,a;if(null!==(a=null===(r=null==pe?void 0:pe.logLevel)||void 0===r?void 0:r.log)&&void 0!==a&&a&&wo(Io)&&Ce()){var s=(null==o?void 0:o.trackingId)||Vr(t),u=Mo([s],n||[]),c=Mo(u,t||[]),_=Lo("".concat(s).concat(e));if(!xr.log.has(_)){xr.log.set(_,!0);var l=(null==o?void 0:o.sessionInfo)||Br.getSession(),E=l.userId,d=l.sessionId,f=l.participantType,S=l.region,R=l.agentSdkTrackingId,I=l.sdkSourceType,g=(null==o?void 0:o.appKey)||Hn.getCoBrowsingConfig("appKey"),T={uuid:E,appKey:"{E}".concat(g,"{/E}"),sessionId:d,participantType:f,region:S,sdkSourceType:I};return R&&(T.agentSdkTrackingId=R),Io.directReport({message:e,host:o?o.host||"":(null===location||void 0===location?void 0:location.host)||"",zmDeviceId:o?o.zmDeviceId||"":window.ZCB_ZmDeviceId,sdkVersion:o?o.sdkVersion||"":so(),info:T},{tags:c,logLevel:i.log})}}}(e,t,o,n)},info:function(e,o){return function(e,n,t,o){var r,a;if(null!==(a=null===(r=null==pe?void 0:pe.logLevel)||void 0===r?void 0:r.info)&&void 0!==a&&a&&wo(Io)){var s=(null==o?void 0:o.trackingId)||Vr(t),u=Mo([s],n||[]),c=Mo(u,t||[]),_=Lo("".concat(s).concat(e));if(!xr.info.has(_))return xr.info.set(_,!0),Jr(e,c,i.info,{},o)}}(e,t,o,n)},debug:function(e,o){return function(e,n,t,o){var r,a;if(null!==(a=null===(r=null==pe?void 0:pe.logLevel)||void 0===r?void 0:r.debug)&&void 0!==a&&a&&wo(Io)){var s=(null==o?void 0:o.trackingId)||Vr(t),u=Mo([s],n||[]),c=Mo(u,t||[]),_=Lo("".concat(s).concat(e));if(!xr.debug.has(_))return xr.debug.set(_,!0),Jr(e,c,i.debug,{},o)}}(e,t,o,n)},error:function(e,o){return function(e,n,t,o){var r,a;if((r=console).error.apply(r,_toConsumableArray(Wr("laplace-error",e,"#F56C6C"))),(null===(a=null==pe?void 0:pe.logLevel)||void 0===a?void 0:a.error)&&wo(Io)){var s=(null==o?void 0:o.trackingId)||Vr(t),u=Mo([s],n||[]),c=Mo(u,t||[]),_=Lo("".concat(s).concat(e));if(!xr.error.has(_))return xr.error.set(_,!0),Jr(e,c,i.error,{},o)}}(e,t,o,n)},warn:function(e,o){return function(e,n,t,o){var r,a,s;if((r=console).warn.apply(r,_toConsumableArray(Wr("laplace-warn",e,"#E6A23C"))),null!==(s=null===(a=null==pe?void 0:pe.logLevel)||void 0===a?void 0:a.warn)&&void 0!==s&&s&&wo(Io)){var u=(null==o?void 0:o.trackingId)||Vr(t),c=Mo([u],n||[]),_=Mo(c,t||[]),l=Lo("".concat(u).concat(e));if(!xr.warn.has(l))return xr.warn.set(l,!0),Jr(e,_,i.warn,{},o)}}(e,t,o,n)},print:function(e){return function(e){var n,t;null!==(t=null===(n=null==pe?void 0:pe.logLevel)||void 0===n?void 0:n.print)&&void 0!==t&&t&&console.log(e)}(e)},performance:function(e,o){return function(e,n,t,o){var r,a;if(null!==(a=null===(r=null==pe?void 0:pe.logLevel)||void 0===r?void 0:r.log)&&void 0!==a&&a&&wo(Io)){var s=(null==o?void 0:o.trackingId)||Vr(t),u=Mo([s],n||[]);return Jr(e,Mo(u,t||[]),i.log,{},o)}}(e,t,o,n)},performanceRange:function(e,o,r){return function(e,n,t,o,r){var a,s;if(null!==(s=null===(a=null==pe?void 0:pe.logLevel)||void 0===a?void 0:a.log)&&void 0!==s&&s&&wo(Io)){var u=(null==r?void 0:r.trackingId)||Vr(o),c=Mo([u],t||[]);return Jr(e,Mo(c,o||[]),i.log,n,r)}}(e,o,t,r,n)},log_2:function(e,o){return function(e,n,t,o){var r,a;if(null!==(a=null===(r=null==pe?void 0:pe.logLevel)||void 0===r?void 0:r.log)&&void 0!==a&&a&&wo(Io)){var s=JSON.stringify(e),u=(null==o?void 0:o.trackingId)||Vr(t),c=Mo([u],n||[]);return Jr(s,Mo(c,t||[]),i.log,{},o)}}(e,t,o,n)},reportNavigator:function(){Gr()},setReportUrl:function(e){!function(e){if(Oe.setDynamicReportUrl(e),Io&&"function"==typeof Io.setReportUrl){var n=Io.reportUrl;Io.setReportUrl(e),Ce()&&e!==n&&Io.reportByFilter(["ZCB-CLIENT"])}}(e)},setLaplaceEnabled:function(e){var n;n=e,Oe.setDynamicLaplaceEnabled(n)}}};jr(["performance-log"]),function(e){e[e.ClientInit=1]="ClientInit",e[e.ClientInitFinished=2]="ClientInitFinished",e[e.CreateSessionStart=3]="CreateSessionStart",e[e.CreateSessionEnd=4]="CreateSessionEnd",e[e.PinCodeRequest=5]="PinCodeRequest",e[e.PinCodeUpdated=6]="PinCodeUpdated",e[e.PingEndpointListDone=7]="PingEndpointListDone",e[e.initWS=8]="initWS",e[e.WSConnected2Channel=9]="WSConnected2Channel",e[e.WSConnectedSuccess=10]="WSConnectedSuccess",e[e.SessionStart=11]="SessionStart",e[e.SessionStarted=12]="SessionStarted",e[e.SessionStartFinish=13]="SessionStartFinish",e[e.StartChannel=14]="StartChannel",e[e.UserRoster=15]="UserRoster",e[e.LeaderJoined=16]="LeaderJoined",e[e.FollowerJoined=17]="FollowerJoined",e[e.CallSessionInit=18]="CallSessionInit",e[e.AfterJoined=19]="AfterJoined",e[e.SessionDestroy=20]="SessionDestroy",e[e.AgentReconnectingInAgentSide=21]="AgentReconnectingInAgentSide",e[e.CustomerDisconnectedInAgentSide=22]="CustomerDisconnectedInAgentSide",e[e.CustomerTimeoutInAgentSide=23]="CustomerTimeoutInAgentSide",e[e.AgentReconnectingSuccessInAgentSide=24]="AgentReconnectingSuccessInAgentSide",e[e.CustomerReconnectingSuccessInAgentSide=25]="CustomerReconnectingSuccessInAgentSide",e[e.AgentJoinedInAgentSide=26]="AgentJoinedInAgentSide",e[e.CustomerJoinedInAgentSide=27]="CustomerJoinedInAgentSide",e[e.StartReplayInAgentSide=28]="StartReplayInAgentSide",e[e.CustomerReconnectingInCustomerSide=29]="CustomerReconnectingInCustomerSide",e[e.AgentDisconnectedInCustomerSide=30]="AgentDisconnectedInCustomerSide",e[e.AgentTimeoutInCustomerSide=31]="AgentTimeoutInCustomerSide",e[e.CustomerReconnectingSuccessInCustomerSide=32]="CustomerReconnectingSuccessInCustomerSide",e[e.AgentReconnectingSuccessInCustomerSide=33]="AgentReconnectingSuccessInCustomerSide"}(Yr||(Yr={}));var zr,Kr={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Kr,Yr.ClientInit,"ClientInit"),Yr.ClientInitFinished,"ClientInitFinished"),Yr.CreateSessionStart,"CreateSessionStart"),Yr.CreateSessionEnd,"CreateSessionEnd"),Yr.PinCodeRequest,"PinCodeRequest"),Yr.PinCodeUpdated,"PinCodeUpdated"),Yr.PingEndpointListDone,"PingEndpointListDone"),Yr.initWS,"initWS"),Yr.WSConnected2Channel,"WSConnected2Channel"),Yr.WSConnectedSuccess,"WSConnectedSuccess"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Kr,Yr.SessionStart,"SessionStart"),Yr.SessionStarted,"SessionStarted"),Yr.SessionStartFinish,"SessionStartFinish"),Yr.StartChannel,"StartChannel"),Yr.UserRoster,"UserRoster"),Yr.LeaderJoined,"LeaderJoined"),Yr.FollowerJoined,"FollowerJoined"),Yr.CallSessionInit,"CallSessionInit"),Yr.AfterJoined,"AfterJoined"),Yr.SessionDestroy,"SessionDestroy"),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Kr,Yr.AgentReconnectingInAgentSide,"AgentReconnectingInAgentSide"),Yr.CustomerDisconnectedInAgentSide,"CustomerDisconnectedInAgentSide"),Yr.CustomerTimeoutInAgentSide,"CustomerTimeoutInAgentSide"),Yr.AgentReconnectingSuccessInAgentSide,"AgentReconnectingSuccessInAgentSide"),Yr.CustomerReconnectingSuccessInAgentSide,"CustomerReconnectingSuccessInAgentSide"),Yr.AgentJoinedInAgentSide,"AgentJoinedInAgentSide"),Yr.CustomerJoinedInAgentSide,"CustomerJoinedInAgentSide"),Yr.StartReplayInAgentSide,"StartReplayInAgentSide"),Yr.CustomerReconnectingInCustomerSide,"CustomerReconnectingInCustomerSide"),Yr.AgentDisconnectedInCustomerSide,"AgentDisconnectedInCustomerSide"),_defineProperty(_defineProperty(_defineProperty(Kr,Yr.AgentTimeoutInCustomerSide,"AgentTimeoutInCustomerSide"),Yr.CustomerReconnectingSuccessInCustomerSide,"CustomerReconnectingSuccessInCustomerSide"),Yr.AgentReconnectingSuccessInCustomerSide,"AgentReconnectingSuccessInCustomerSide"),function(e){e[e.IMAGE=0]="IMAGE",e[e.FONT=1]="FONT"}(zr||(zr={})),jr(["cbs-connection"]);var Zr,Xr,qr,Qr,$r,ei,ni,ti,oi,ri,ii,ai=[$n.Input,et.Annotation,et.FullSnapshot],si=function(){function e(n){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.8;_classCallCheck(this,e),this.logger=n,this.sample=o,this.cpuState="",this.localMachineTimeDelta=new Map,this.sessionInfo={sessionId:void 0,sessionRegion:void 0,startUrl:void 0},this.incrementalSourceCountMap=new Map,this.eventCacheListMap=new Map,this.handlePostMessage=function(e){var n=e.data.eventType,o=e.data.data;switch(n){case"SESSION_INFO":t.setSessionInfo(o);break;case"NTP":case qt.NTP:void 0!==o.delta&&t.setLocalMathineTimeDelta(o);break;case qt.END_ROOM:case qt.LEAVE_ROOM:t.destroy()}},this.setLocalMathineTimeDelta=function(e){var n=e.sessionId||e.cId||"";n&&(t.localMachineTimeDelta.set(n,e.delta),e.sessionId&&t.batch(e.sessionId),e.cId&&t.batch(e.cId))},this.setSessionInfo=function(e){t.sessionInfo=e;try{var n=new URL(e.startUrl||"");t.sessionInfo.startUrl=n.origin}catch(e){console.log(e)}},this.log=function(e){var n,o,r=t.sessionInfo.sessionId||"",i=e.cId,a=e.event_source,s=i||r;if((a===et.FullSnapshot||i)&&ai.includes(a)){if(i&&(t.incrementalSourceCountMap.has(i)||(t.incrementalSourceCountMap.set(i,new Map),t.incrementalSourceCountMap.get(i).set(a,0)),!e.source_count)){var u=t.incrementalSourceCountMap.get(i).get(a);if(t.incrementalSourceCountMap.get(i).set(a,u+1),0!==u&&Math.random()>t.sample)return;e.source_count=t.incrementalSourceCountMap.get(i).get(a)}e.cpu_state=t.cpuState;var c=t.localMachineTimeDelta.has(r)?t.localMachineTimeDelta.get(r):t.localMachineTimeDelta.get(i);if(void 0===c)return t.eventCacheListMap.has(s)||t.eventCacheListMap.set(s,[]),void t.eventCacheListMap.get(s).push(e);var _=e.detime-(e.ptime-c),l=Object.assign(Object.assign({},e),{rtt:_,session_id:t.sessionInfo.sessionId,session_region:t.sessionInfo.sessionRegion,start_url:t.sessionInfo.startUrl,sdk_version:Hn.getCoBrowsingConfig("sdkVersion")});null===(o=null===(n=t.logger)||void 0===n?void 0:n.log_2)||void 0===o||o.call(n,l)}},this.observePressure(),this.addEventListener()}return _createClass(e,[{key:"addEventListener",value:function(){window.addEventListener("message",this.handlePostMessage)}},{key:"observePressure",value:function(){var e,n=this;try{if("PressureObserver"in window&&window.location.origin===(null===(e=window.top)||void 0===e?void 0:e.location.origin))new window.PressureObserver((function(e){n.cpuState=e[e.length-1].state})).observe("cpu",{sampleInterval:1e3}).catch((function(){console.log("")}));else this.cpuState=""}catch(e){}}},{key:"batchLog",value:function(e){var n=this;(this.eventCacheListMap.get(e)||[]).forEach((function(e){n.log(e)}))}},{key:"batch",value:function(e){if(e)this.batchLog(e);else{var n,t=_createForOfIteratorHelper(this.eventCacheListMap);try{for(t.s();!(n=t.n()).done;){var o=_slicedToArray(n.value,1)[0];this.batchLog(o)}}catch(e){t.e(e)}finally{t.f()}}}},{key:"delete",value:function(e){this.localMachineTimeDelta.delete(e),this.incrementalSourceCountMap.delete(e),this.eventCacheListMap.delete(e)}},{key:"destroy",value:function(){this.localMachineTimeDelta.clear(),this.incrementalSourceCountMap.clear(),this.eventCacheListMap.clear(),this.sessionInfo={sessionId:void 0,sessionRegion:void 0,startUrl:void 0}}}]),e}();function ui(){}function ci(){ci.init.call(this)}function _i(e){return void 0===e._maxListeners?ci.defaultMaxListeners:e._maxListeners}function li(e,n,t,o){var r,i,a,s;if("function"!=typeof t)throw new TypeError(\'"listener" argument must be a function\');if((i=e._events)?(i.newListener&&(e.emit("newListener",n,t.listener?t.listener:t),i=e._events),a=i[n]):(i=e._events=new ui,e._eventsCount=0),a){if("function"==typeof a?a=i[n]=o?[t,a]:[a,t]:o?a.unshift(t):a.push(t),!a.warned&&(r=_i(e))&&r>0&&a.length>r){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+n+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=n,u.count=a.length,s=u,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=i[n]=t,++e._eventsCount;return e}function Ei(e,n,t){var o=!1;function r(){e.removeListener(n,r),o||(o=!0,t.apply(e,arguments))}return r.listener=t,r}function di(e){var n=this._events;if(n){var t=n[e];if("function"==typeof t)return 1;if(t)return t.length}return 0}function fi(e,n){for(var t=new Array(n);n--;)t[n]=e[n];return t}function Si(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e})).join("")}function Ri(e){return encodeURIComponent(e).replace(/[!\'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function Ii(e,n,t){return n="+"===e||"#"===e?Si(n):Ri(n),t?Ri(t)+"="+n:n}function gi(e){return null!=e}function Ti(e){return";"===e||"&"===e||"?"===e}function pi(e){var n=["+","#",".","/",";","?","&"];return{expand:function(t){return e.replace(/\\{([^\\{\\}]+)\\}|([^\\{\\}]+)/g,(function(e,o,r){if(o){var i=null,a=[];if(-1!==n.indexOf(o.charAt(0))&&(i=o.charAt(0),o=o.substr(1)),o.split(/,/g).forEach((function(e){var n=/([^:\\*]*)(?::(\\d+)|(\\*))?/.exec(e);a.push.apply(a,function(e,n,t,o){var r=e[t],i=[];if(gi(r)&&""!==r)if("string"==typeof r||"number"==typeof r||"boolean"==typeof r)r=r.toString(),o&&"*"!==o&&(r=r.substring(0,parseInt(o,10))),i.push(Ii(n,r,Ti(n)?t:null));else if("*"===o)Array.isArray(r)?r.filter(gi).forEach((function(e){i.push(Ii(n,e,Ti(n)?t:null))})):Object.keys(r).forEach((function(e){gi(r[e])&&i.push(Ii(n,r[e],e))}));else{var a=[];Array.isArray(r)?r.filter(gi).forEach((function(e){a.push(Ii(n,e))})):Object.keys(r).forEach((function(e){gi(r[e])&&(a.push(Ri(e)),a.push(Ii(n,r[e].toString())))})),Ti(n)?i.push(Ri(t)+"="+a.join(",")):0!==a.length&&i.push(a.join(","))}else";"===n?gi(r)&&i.push(Ri(t)):""!==r||"&"!==n&&"?"!==n?""===r&&i.push(""):i.push(Ri(t)+"=");return i}(t,i,n[1],n[2]||n[3]))})),i&&"+"!==i){var s=",";return"?"===i?s="&":"#"!==i&&(s=i),(0!==a.length?i:"")+a.join(s)}return a.join(",")}return Si(r)}))}}}new si(jr(["cbs-interaction-latency"])),ui.prototype=Object.create(null),ci.EventEmitter=ci,ci.usingDomains=!1,ci.prototype.domain=void 0,ci.prototype._events=void 0,ci.prototype._maxListeners=void 0,ci.defaultMaxListeners=10,ci.init=function(){this.domain=null,ci.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new ui,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ci.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},ci.prototype.getMaxListeners=function(){return _i(this)},ci.prototype.emit=function(e){var n,t,o,r,i,a,s,u="error"===e;if(a=this._events)u=u&&null==a.error;else if(!u)return!1;if(s=this.domain,u){if(n=arguments[1],!s){if(n instanceof Error)throw n;var c=new Error(\'Uncaught, unspecified "error" event. (\'+n+")");throw c.context=n,c}return n||(n=new Error(\'Uncaught, unspecified "error" event\')),n.domainEmitter=this,n.domain=s,n.domainThrown=!1,s.emit("error",n),!1}if(!(t=a[e]))return!1;var _="function"==typeof t;switch(o=arguments.length){case 1:!function(e,n,t){if(n)e.call(t);else for(var o=e.length,r=fi(e,o),i=0;i<o;++i)r[i].call(t)}(t,_,this);break;case 2:!function(e,n,t,o){if(n)e.call(t,o);else for(var r=e.length,i=fi(e,r),a=0;a<r;++a)i[a].call(t,o)}(t,_,this,arguments[1]);break;case 3:!function(e,n,t,o,r){if(n)e.call(t,o,r);else for(var i=e.length,a=fi(e,i),s=0;s<i;++s)a[s].call(t,o,r)}(t,_,this,arguments[1],arguments[2]);break;case 4:!function(e,n,t,o,r,i){if(n)e.call(t,o,r,i);else for(var a=e.length,s=fi(e,a),u=0;u<a;++u)s[u].call(t,o,r,i)}(t,_,this,arguments[1],arguments[2],arguments[3]);break;default:for(r=new Array(o-1),i=1;i<o;i++)r[i-1]=arguments[i];!function(e,n,t,o){if(n)e.apply(t,o);else for(var r=e.length,i=fi(e,r),a=0;a<r;++a)i[a].apply(t,o)}(t,_,this,r)}return!0},ci.prototype.addListener=function(e,n){return li(this,e,n,!1)},ci.prototype.on=ci.prototype.addListener,ci.prototype.prependListener=function(e,n){return li(this,e,n,!0)},ci.prototype.once=function(e,n){if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');return this.on(e,Ei(this,e,n)),this},ci.prototype.prependOnceListener=function(e,n){if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');return this.prependListener(e,Ei(this,e,n)),this},ci.prototype.removeListener=function(e,n){var t,o,r,i,a;if("function"!=typeof n)throw new TypeError(\'"listener" argument must be a function\');if(!(o=this._events))return this;if(!(t=o[e]))return this;if(t===n||t.listener&&t.listener===n)0==--this._eventsCount?this._events=new ui:(delete o[e],o.removeListener&&this.emit("removeListener",e,t.listener||n));else if("function"!=typeof t){for(r=-1,i=t.length;i-- >0;)if(t[i]===n||t[i].listener&&t[i].listener===n){a=t[i].listener,r=i;break}if(r<0)return this;if(1===t.length){if(t[0]=void 0,0==--this._eventsCount)return this._events=new ui,this;delete o[e]}else!function(e,n){for(var t=n,o=t+1,r=e.length;o<r;t+=1,o+=1)e[t]=e[o];e.pop()}(t,r);o.removeListener&&this.emit("removeListener",e,a||n)}return this},ci.prototype.off=function(e,n){return this.removeListener(e,n)},ci.prototype.removeAllListeners=function(e){var n,t;if(!(t=this._events))return this;if(!t.removeListener)return 0===arguments.length?(this._events=new ui,this._eventsCount=0):t[e]&&(0==--this._eventsCount?this._events=new ui:delete t[e]),this;if(0===arguments.length){for(var o,r=Object.keys(t),i=0;i<r.length;++i)"removeListener"!==(o=r[i])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=new ui,this._eventsCount=0,this}if("function"==typeof(n=t[e]))this.removeListener(e,n);else if(n)do{this.removeListener(e,n[n.length-1])}while(n[0]);return this},ci.prototype.listeners=function(e){var n,t,o=this._events;return t=o&&(n=o[e])?"function"==typeof n?[n.listener||n]:function(e){for(var n=new Array(e.length),t=0;t<n.length;++t)n[t]=e[t].listener||e[t];return n}(n):[],t},ci.listenerCount=function(e,n){return"function"==typeof e.listenerCount?e.listenerCount(n):di.call(e,n)},ci.prototype.listenerCount=di,ci.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]},function(e){e.USER_ROSTER="msg_user_roster",e.ROOM_ROSTER="msg_room_roster",e.DYNAMIC_FEATURE_CHANGE="msg_dynamic_feature_change",e.SESSION_CLOSED="msg_session_closed",e.SESSION_STARTED="msg_session_started",e.SESSION_PERSISTED="msg_session_persisted",e.ERROR="msg_error",e.SESSION_CONNECTING="msg_session_connecting",e.SESSION_RECONNECTING="msg_session_reconnecting",e.RECORD_APPROVE_REQUEST="msg_record_approve_request",e.START_RECORD_RESPONSE="msg_record_started_response",e.STOP_RECORD_RESPONSE="msg_record_stopped_response",e.PAUSE_RECORD_RESPONSE="msg_record_paused_response",e.RESUME_RECORD_RESPONSE="msg_record_resumed_response",e.SOCKET_OPEN="msg_socket_open",e.RECORD_APPROVE_RESPONSE="msg_record_approve_response",e.USER_BE_HOLD_STATUS_CHANGE="msg_user_be_hold_status_change",e.REMOTE_CONTROL_REQUEST="msg_remote_control_request",e.REMOTE_CONTROL_RESPONSE="msg_remote_control_response",e.REMOTE_CONTROL_GIVE_UP="msg_remote_control_give_up",e.REMOTE_CONTROL_TAKE_BACK="msg_remote_control_take_back",e.REMOTE_CONTROL_REJECT="msg_remote_control_reject",e.REMOTE_CONTROL_CANCEL="msg_remote_control_cancel",e.LEADER_PAGE_VISIBILITY="msg_leader_page_visibility"}(Zr||(Zr={})),function(e){e.SESSION_STARTED="session_started",e.SESSION_INITED="session_inited",e.SESSION_PAUSED="session_paused",e.SESSION_RESUMED="session_resumed",e.SESSION_ENDED="session_ended",e.SESSION_LEFT="session_left",e.SESSION_CANCELING="session_canceling",e.SESSION_CONNECTING="session_connecting",e.SESSION_RECONNECTING="session_reconnecting",e.SESSION_PERSISTING="session_persisting",e.PARTICIPANT_CHANGED="participant_changed",e.AGENT_JOINED="agent_joined",e.AGENT_LEFT="agent_left",e.AGENT_DISCONNECTED="agent_disconnected",e.CUSTOMER_JOINED="customer_joined",e.CUSTOMER_LEFT="customer_left",e.CUSTOMER_DISCONNECTED="customer_disconnected",e.SESSION_ERROR="session_error",e.REMOTE_CONTROL_STATUS="remote_control_status",e.REMOTE_CONTROL_REQUEST="remote_control_request",e.REMOTE_CONTROL_RESPONSE="remote_control_response",e.REMOTE_CONTROL_GIVE_UP="remote_control_give_up",e.REMOTE_CONTROL_TAKE_BACK="remote_control_take_back",e.REMOTE_CONTROL_REJECT="remote_control_reject",e.REMOTE_CONTROL_CANCEL="remote_control_cancel",e.REMOTE_ASSIST_REQUESTED="remote_assist_requested",e.REMOTE_ASSIST_CANCELLED="remote_assist_cancelled",e.REMOTE_ASSIST_ACCEPTED="remote_assist_accepted",e.REMOTE_ASSIST_REJECTED="remote_assist_rejected",e.REMOTE_ASSIST_STARTED="remote_assist_started",e.REMOTE_ASSIST_STOPPED="remote_assist_stopped",e.PINCODE_UPDATED="pincode_updated",e.RECORD_STARTED="record_started",e.RECORD_STOPPED="record_stopped",e.RECORD_PAUSED="record_paused",e.RECORD_RESUMED="record_resumed",e.ORIGIN_UPDATED="origin_updated",e.START_REPLAY="start_replay",e.CURRENT_USER_TRANSFER="current_user_transfer",e.CUSTOMER_FOCUS_LOST="customer_focus_lost",e.CUSTOMER_TRANSFERRED="customer_transferred",e.DYNAMIC_FEATURE_CHANGE="dynamic_feature_change"}(Xr||(Xr={})),function(e){e.COM_DESK="com-desk",e.COM_VIEWER="com-viewer",e.COM_BYOP_DESK="com_byop_desk"}(qr||(qr={})),function(e){e[e.Normal=0]="Normal",e[e.AgentReconnectFailed=1]="AgentReconnectFailed",e[e.CustomerReconnectFailed=2]="CustomerReconnectFailed",e[e.CustomerEnded=3]="CustomerEnded"}(Qr||(Qr={})),function(e){e[e.Voice=1]="Voice",e[e.Chat=2]="Chat",e[e.VideoInbound=3]="VideoInbound",e[e.VideoOutbound=4]="VideoOutbound"}($r||($r={})),function(e){e.tabFollowingWaitTransferringCustomer="tabFollowingWaitTransferringCustomer",e.tabFollowingTransferringFailedCustomer="tabFollowingTransferringFailedCustomer",e.tabFollowingTransferringFailedAgent="tabFollowingTransferringFailedAgent"}(ei||(ei={})),function(e){e.NOT_CREATED="session_not_created",e.RECOVERABLE="session_recoverable",e.STARTED="session_started",e.CONNECT_FAILED="connect_failed",e.CONNECTING="session_connecting",e.CANCELING="session_canceling",e.RECONNECTING="session_reconnecting",e.CAN_PERSIST="session_can_persist",e.PERSISTING="session_persisting"}(ni||(ni={})),function(e){e.UNKNOWN="unknown"}(ti||(ti={})),function(e){e.UNKNOWN="unknown",e.NO_ROOT_DOM="no_root_dom"}(oi||(oi={})),function(e){e.START="START",e.JOIN="JOIN",e.AUTO="AUTO",e.PERSIST="PERSIST"}(ri||(ri={})),function(e){e.RECONNECTING="reconnecting",e.PERSISTING="persisting"}(ii||(ii={}));var Oi,Ci,hi,Ni,Ai,Di,vi,mi,yi,bi,Pi,Li,wi,Mi;!function(e){e.zcc="zcc",e.common="common"}(Oi||(Oi={})),function(e){e[e.NoAction=0]="NoAction",e[e.Accept=1]="Accept",e[e.Decline=2]="Decline",e[e.Leave=3]="Leave"}(Ci||(Ci={})),function(e){e[e.END_ROOM=41e3]="END_ROOM",e[e.DESTROY_DEACTIVE_ROOM=41001]="DESTROY_DEACTIVE_ROOM",e[e.DESTROY_SLEEP_ROOM=41002]="DESTROY_SLEEP_ROOM",e[e.DESTROY_NO_VALID_OPERATION_ROOM=41003]="DESTROY_NO_VALID_OPERATION_ROOM",e[e.END_DEACTIVE_ROOM=10001]="END_DEACTIVE_ROOM"}(hi||(hi={})),function(e){e.END_SESSION="end_session",e.DEACTIVE_SESSION="deactive_session",e.CANCEL_SESSION="cancel_session"}(Ni||(Ni={})),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},hi.END_ROOM,Ni.END_SESSION),hi.DESTROY_DEACTIVE_ROOM,Ni.DEACTIVE_SESSION),hi.DESTROY_SLEEP_ROOM,Ni.DEACTIVE_SESSION),hi.END_DEACTIVE_ROOM,Ni.DEACTIVE_SESSION),hi.DESTROY_NO_VALID_OPERATION_ROOM,Ni.DEACTIVE_SESSION),function(e){e[e.LEAVE_ROOM=4e4]="LEAVE_ROOM",e[e.DISCONNECTED=40001]="DISCONNECTED"}(Ai||(Ai={})),function(e){e.LEAVE_SESSION="leave_session",e.DISCONNECT_SESSION="disconnect_session"}(Di||(Di={})),_defineProperty(_defineProperty({},Ai.LEAVE_ROOM,Di.LEAVE_SESSION),Ai.DISCONNECTED,Di.DISCONNECT_SESSION),function(e){e.CUSTOMER_END_COBROWSE="Customer has left the Cobrowse session.",e.AGENT_END_COBROWSE="Agent has left the Cobrowse session.",e.END_COBROWSE_CC="THE_COBROWSE_SESSION_HAS_BEEN_ENDED",e.CUSTOMER_TRANSFERRED="The session has been transferred to this page."}(vi||(vi={})),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.CC_UI_SESSION_END=1]="CC_UI_SESSION_END"}(mi||(mi={})),function(e){e.RECONNECTING_SESSION="Reconnecting Cobrowse session. Please wait....",e.CONNECTING_SESSION="Joining Cobrowse session...",e.UNABLE_JOIN_SESSION_TITLE="Unable to join the Cobrowse session",e.FAILED_RECONNECT_SESSION_TITLE="Failed to reconnect to the Cobrowse session",e.FAILED_RECONNECT_SESSION_CONTENT="The Cobrowse session has ended automatically due to failed reconnection. Please check your network connection and restart the session.",e.ENDED_RECONNECT_SESSION_TITLE="Cobrowse session has ended",e.RECONNECTING_SESSION_CC="RECONNECTING_COBROWSE",e.CONNECTING_SESSION_CC="JOINING_COBROWSE_SESSION",e.UNABLE_JOIN_SESSION_TITLE_CC="UNABLE_JOIN_SESSION_TITLE",e.FAILED_RECONNECT_SESSION_TITLE_CC="FAILED_RECONNECT_SESSION_TITLE",e.FAILED_RECONNECT_SESSION_CONTENT_CC="FAILED_RECONNECT_SESSION_CONTENT",e.ENDED_RECONNECT_SESSION_TITLE_CC="ENDED_RECONNECT_SESSION_TITLE",e.TRANSFER_FAILED_ERROR_TITLE="Failed to transfer to new tab"}(yi||(yi={})),function(e){e.TRANSFER_FAILED_ERROR_TIPS="Failed to transfer to new tab,Please return to the previous tab and have a try again."}(bi||(bi={})),function(e){e.RECONNECTING_SESSION="Reconnecting Cobrowse session...",e.CONNECTING_SESSION="Connecting to Cobrowse session...",e.GIVE_CONSUMER_CODE="Give the pairing code to your consumer to join:",e.COBROWSE_PIN_CODE="Cobrowse code",e.COBROWSE_PIN_CODE_TIPS="Please inform the following pin code to your support agent, your agent and you will browse this page together.",e.COBROWSE_PIN_CODE_TIPS_MOBILE="Please give this code to your agent.",e.GIVE_CONSUMER_CODE_CC="GIVE_CONSUMER_CODE",e.COBROWSE_PIN_CODE_ERROR_TITLE="Unable to generate pin code",e.COBROWSE_PIN_CODE_ERROR_TIPS="Unable to generate pin code. Please try again later."}(Pi||(Pi={})),function(e){e.WAIT_CONSUMER="WAIT_CONSUMER"}(Li||(Li={})),function(e){e.SESSION_TIMER="SESSION_TIMER",e.AUTO_END_SESSION="AUTO_END_SESSION",e.RECONNECTING_SESSION_CC="RECONNECTING_COBROWSE",e.CONNECTING_SESSION_CC="CONNECTING_TO_COBROWSE_SESSION",e.CAN_NOT_RECEIVE_INVITE_SESSION_CC="CAN_NOT_RECEIVE_INVITE_SESSION",e.JOIN_WITH_PAIRING_CODE="JOIN_WITH_PAIRING_CODE",e.BACK_TO_VIDEO_CALL="BACK_TO_VIDEO_CALL"}(wi||(wi={})),function(e){e.Cookies="cookie",e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.All="all"}(Mi||(Mi={}));var Fi,Ui,ki="/sdkapi/zcb/frame-templates/desk",Bi="/sdkapi/zcb/frame-templates/viewer";!function(e){e.CustomerFloatingToolbar="customerFloatingToolbar",e.CustomerFloatingToolbarIcon="customerFloatingToolbarIcon",e.CustomerFloatingToolbarText="customerFloatingToolbarText",e.CustomerFloatingToolbarButton="customerFloatingToolbarButton",e.CustomerFloatingToolbarButtonPrefixIcon="customerFloatingToolbarButtonPrefixIcon",e.CustomerScreenBorder="customerScreenBorder",e.CustomerAnnotationToolbarMouseButton="customerAnnotationToolbarMouseButton",e.CustomerAnnotationToolbarVanishingPenButton="customerAnnotationToolbarVanishingPenButton",e.CustomerAnnotationToolbarPenButton="customerAnnotationToolbarPenButton",e.CustomerAnnotationToolbarVanishingRectangleButton="customerAnnotationToolbarVanishingRectangleButton",e.CustomerAnnotationToolbarRectangleButton="customerAnnotationToolbarRectangleButton",e.CustomerAnnotationToolbarEraserButton="customerAnnotationToolbarEraserButton",e.CustomerAnnotationToolbarColorButton="customerAnnotationToolbarColorButton",e.CustomerAnnotationToolbarClearButton="customerAnnotationToolbarClearButton",e.CustomerAnnotationToolbarCloseButton="customerAnnotationToolbarCloseButton",e.CustomerAnnotationToolbarOpenButton="customerAnnotationToolbarOpenButton",e.CustomerJoinSessionDialogOverall="customerJoinSessionDialogOverall",e.CustomerJoinSessionDialogTitle="customerJoinSessionDialogTitle",e.CustomerJoinSessionDialogTitleContent="customerJoinSessionDialogTitleContent",e.CustomerJoinSessionDialogTitleIcon="customerJoinSessionDialogTitleIcon",e.CustomerJoinSessionDialogTopRightCloseButton="customerJoinSessionDialogTopRightCloseButton",e.CustomerJoinSessionDialogLoadingPinCodeIcon="customerJoinSessionDialogLoadingPinCodeIcon",e.CustomerJoinSessionDialogPinCodeTipText="customerJoinSessionDialogPinCodeTipText",e.CustomerJoinSessionDialogPinCodeContent="customerJoinSessionDialogPinCodeContent",e.CustomerJoinSessionDialogFooterContainer="customerJoinSessionDialogFooterContainer",e.CustomerJoinSessionDialogCancelButton="customerJoinSessionDialogCancelButton",e.CustomerEndSessionDialogOverall="customerEndSessionDialogOverall",e.CustomerEndSessionDialogTitleContainer="customerEndSessionDialogTitleContainer",e.CustomerEndSessionDialogContentContainer="customerEndSessionDialogContentContainer",e.CustomerEndSessionDialogFooterContainer="customerEndSessionDialogFooterContainer",e.CustomerEndSessionDialogTitleContent="customerEndSessionDialogTitleContent",e.CustomerEndSessionDialogTitleIcon="customerEndSessionDialogTitleIcon",e.CustomerEndSessionDialogTextContent="customerEndSessionDialogTextContent",e.CustomerEndSessionDialogTopRightCloseButton="customerEndSessionDialogTopRightCloseButton",e.CustomerEndSessionDialogCancelButton="customerEndSessionDialogCancelButton",e.CustomerEndSessionDialogEndSessionButton="customerEndSessionDialogEndSessionButton",e.CustomerReconnectDialogOverall="customerReconnectDialogOverall",e.CustomerReconnectDialogContentContainer="customerReconnectDialogContentContainer",e.CustomerReconnectDialogFooterContainer="customerReconnectDialogFooterContainer",e.CustomerReconnectDialogLoadingIcon="customerReconnectDialogLoadingIcon",e.CustomerReconnectDialogTextContent="customerReconnectDialogTextContent",e.CustomerReconnectDialogCloseButton="customerReconnectDialogCloseButton",e.CustomerReconnectDialogCloseButtonPrefixIcon="customerReconnectDialogCloseButtonPrefixIcon",e.CustomerConnectDialogOverall="customerConnectDialogOverall",e.CustomerConnectDialogContentContainer="customerConnectDialogContentContainer",e.CustomerConnectDialogFooterContainer="customerConnectDialogFooterContainer",e.CustomerConnectDialogLoadingIcon="customerConnectDialogLoadingIcon",e.CustomerConnectDialogTextContent="customerConnectDialogTextContent",e.CustomerConnectDialogCloseButton="customerConnectDialogCloseButton",e.CustomerConnectDialogCloseButtonPrefixIcon="customerConnectDialogCloseButtonPrefixIcon",e.CustomerJoinFailedDialogOverall="customerJoinFailedDialogOverall",e.CustomerJoinFailedDialogTitleContainer="customerJoinFailedDialogTitleContainer",e.CustomerJoinFailedDialogContentContainer="customerJoinFailedDialogContentContainer",e.CustomerJoinFailedDialogFooterContainer="customerJoinFailedDialogFooterContainer",e.CustomerJoinFailedDialogTitleContent="customerJoinFailedDialogTitleContent",e.CustomerJoinFailedDialogTitleIcon="customerJoinFailedDialogTitleIcon",e.CustomerJoinFailedDialogTextContent="customerJoinFailedDialogTextContent",e.CustomerJoinFailedDialogTextSecondaryContent="customerJoinFailedDialogTextSecondaryContent",e.CustomerJoinFailedDialogOkButton="customerJoinFailedDialogOkButton",e.CustomerTransferFailedTitleContent="CustomerTransferFailedTitleContent",e.CustomerTransferFailedTextSecondaryContent="CustomerTransferFailedTextSecondaryContent",e.CustomerTransferFailedOkButton="CustomerTransferFailedOkButton",e.CustomerReconnectFailedDialogOverall="customerReconnectFailedDialogOverall",e.CustomerReconnectFailedDialogTitleContainer="customerReconnectFailedDialogTitleContainer",e.CustomerReconnectFailedDialogContentContainer="customerReconnectFailedDialogContentContainer",e.CustomerReconnectFailedDialogFooterContainer="customerReconnectFailedDialogFooterContainer",e.CustomerReconnectFailedDialogTitleContent="customerReconnectFailedDialogTitleContent",e.CustomerReconnectFailedDialogTitleIcon="customerReconnectFailedDialogTitleIcon",e.CustomerReconnectFailedDialogTextContent="customerReconnectFailedDialogTextContent",e.CustomerReconnectFailedDialogTextSecondaryContent="customerReconnectFailedDialogTextSecondaryContent",e.CustomerReconnectFailedDialogOkButton="customerReconnectFailedDialogOkButton",e.CustomerReconnectTimeoutDialogOverall="customerReconnectTimeoutDialogOverall",e.CustomerReconnectTimeoutDialogTitleContainer="customerReconnectTimeoutDialogTitleContainer",e.CustomerReconnectTimeoutDialogContentContainer="customerReconnectTimeoutDialogContentContainer",e.CustomerReconnectTimeoutDialogFooterContainer="customerReconnectTimeoutDialogFooterContainer",e.CustomerReconnectTimeoutDialogTitleContent="customerReconnectTimeoutDialogTitleContent",e.CustomerReconnectTimeoutDialogTitleIcon="customerReconnectTimeoutDialogTitleIcon",e.CustomerReconnectTimeoutDialogTextContent="customerReconnectTimeoutDialogTextContent",e.CustomerReconnectTimeoutDialogTextSecondaryContent="customerReconnectTimeoutDialogTextSecondaryContent",e.CustomerReconnectTimeoutDialogOkButton="customerReconnectTimeoutDialogOkButton",e.CustomerReconnectTimeoutDialogTopRightCloseButton="customerReconnectTimeoutDialogTopRightCloseButton",e.CustomerDisconnectDialogOverall="customerDisconnectDialogOverall",e.CustomerDisconnectDialogContentContainer="customerDisconnectDialogContentContainer",e.CustomerDisconnectDialogFooterContainer="customerDisconnectDialogFooterContainer",e.CustomerDisconnectDialogLoadingIcon="customerDisconnectDialogLoadingIcon",e.CustomerDisconnectDialogFirstLineTextContent="customerDisconnectDialogFirstLineTextContent",e.CustomerDisconnectDialogSecondLineTextContent="customerDisconnectDialogSecondLineTextContent",e.CustomerDisconnectDialogPinCode="customerDisconnectDialogPinCode",e.CustomerDisconnectDialogEndButton="customerDisconnectDialogCloseButton",e.CustomerDisconnectDialogEndButtonPrefixIcon="customerDisconnectDialogCloseButtonPrefixIcon",e.CustomerToastSuccessPrefixIcon="customerToastSuccessPrefixIcon",e.CustomerToastSuccessWrapper="customerToastSuccessWrapper",e.CustomerToastErrorPrefixIcon="customerToastErrorPrefixIcon",e.CustomerToastErrorWrapper="customerToastErrorWrapper",e.CustomerToastWarningPrefixIcon="customerToastWarningPrefixIcon",e.CustomerToastWarningWrapper="customerToastWarningWrapper",e.CustomerToastDefaultPrefixIcon="customerToastDefaultPrefixIcon",e.CustomerToastDefaultWrapper="customerToastDefaultWrapper",e.CustomerToastInfoPrefixIcon="customerToastInfoPrefixIcon",e.CustomerToastInfoWrapper="customerToastInfoWrapper",e.AgentToolbarVerticalWrapper="agentToolbarVerticalWrapper",e.AgentToolbarHorizontalWrapper="agentToolbarHorizontalWrapper",e.AgentToolbarAllowRotation="agentToolbarAllowRotation",e.AgentToolbarDefaultVertical="agentToolbarDefaultVertical",e.AgentToolbarVerticalNormalBtnsWrapper="agentToolbarVerticalNormalBtnsWrapper",e.AgentToolbarHorizontalNormalBtnsWrapper="agentToolbarHorizontalNormalBtnsWrapper",e.AgentToolbarButtonCommon="agentToolbarButtonCommon",e.AgentToolbarButtonActiveCommon="agentToolbarButtonActiveCommon",e.AgentToolbarTooltipCommon="agentToolbarTooltipCommon",e.AgentToolbarVerticalDivider="agentToolbarVerticalDivider",e.AgentToolbarHorizontalDivider="agentToolbarHorizontalDivider",e.AgentToolbarZoomInButton="agentToolbarZoomInButton",e.AgentToolbarZoomInIcon="agentToolbarZoomInIcon",e.AgentToolbarZoomOutButton="agentToolbarZoomOutButton",e.AgentToolbarZoomOutIcon="agentToolbarZoomOutIcon",e.AgentToolbarZoomMenuButton="agentToolbarZoomMenuButton",e.AgentToolbarZoomMenuIcon="agentToolbarZoomMenuIcon",e.AgentToolbarFullScreenButton="agentToolbarFullScreenButton",e.AgentToolbarFullScreenIcon="agentToolbarFullScreenIcon",e.AgentToolbarExitFullScreenButton="agentToolbarExitFullScreenButton",e.AgentToolbarExitFullScreenIcon="agentToolbarExitFullScreenIcon",e.AgentToolbarVanishingPenButton="agentToolbarVanishingPenButton",e.AgentToolbarVanishingPenIcon="agentToolbarVanishingPenIcon",e.AgentToolbarPenButton="agentToolbarPenButton",e.AgentToolbarPenIcon="agentToolbarPenIcon",e.AgentToolbarEndSessionButton="agentToolbarEndSessionButton",e.AgentToolbarEndSessionIcon="agentToolbarEndSessionIcon",e.AgentToolbarRemoteAssistIcon="agentToolbarRemoteAssistIcon",e.AgentVanishingPenSubMenuVerticalWrapper="agentVanishingPenSubMenuVerticalWrapper",e.AgentVanishingPenSubMenuHorizontalWrapper="agentVanishingPenSubMenuHorizontalWrapper",e.AgentVanishingPenSubMenuButtonCommon="agentVanishingPenSubMenuButtonCommon",e.AgentVanishingPenMenuButtonActiveCommon="agentVanishingPenSubMenuButtonActiveCommon",e.AgentVanishingPenSubMenuMouseButton="agentVanishingPenSubMenuMouseButton",e.AgentVanishingPenSubMenuMouseIcon="agentVanishingPenSubMenuMouseIcon",e.AgentVanishingPenSubMenuVanishingPenButton="agentVanishingPenSubMenuVanishingPenButton",e.AgentVanishingPenSubMenuVanishingPenIcon="agentVanishingPenSubMenuVanishingPenIcon",e.AgentVanishingPenSubMenuVanishingRectangleButton="agentVanishingPenSubMenuVanishingRectangleButton",e.AgentVanishingPenSubMenuVanishingRectangleIcon="agentVanishingPenSubMenuVanishingRectangleIcon",e.AgentVanishingPenSubMenuVanishingColorButton="agentVanishingPenSubMenuVanishingColorButton",e.AgentVanishingPenSubMenuVanishingColorIcon="agentVanishingPenSubMenuVanishingColorIcon",e.AgentPenAnnotationSubMenuVerticalWrapper="agentPenAnnotationSubMenuVerticalWrapper",e.AgentPenAnnotationSubMenuHorizontalWrapper="agentPenAnnotationSubMenuHorizontalWrapper",e.AgentPenAnnotationSubMenuButtonCommon="agentPenAnnotationSubMenuButtonCommon",e.AgentPenAnnotationSubMenuButtonActiveCommon="agentPenAnnotationSubMenuButtonActiveCommon",e.AgentPenAnnotationSubMenuMouseButton="agentPenAnnotationSubMenuMouseButton",e.AgentPenAnnotationSubMenuMouseIcon="agentPenAnnotationSubMenuMouseIcon",e.AgentPenAnnotationSubMenuPenButton="agentPenAnnotationSubMenuPenButton",e.AgentPenAnnotationSubMenuPenIcon="agentPenAnnotationSubMenuPenIcon",e.AgentPenAnnotationSubMenuRectangleButton="agentPenAnnotationSubMenuRectangleButton",e.AgentPenAnnotationSubMenuRectangleIcon="agentPenAnnotationSubMenuRectangleIcon",e.AgentPenAnnotationSubMenuEraserButton="agentPenAnnotationSubMenuEraserButton",e.AgentPenAnnotationSubMenuEraserIcon="agentPenAnnotationSubMenuEraserIcon",e.AgentPenAnnotationSubMenuColorButton="agentPenAnnotationSubMenuColorButton",e.AgentPenAnnotationSubMenuColorIcon="agentPenAnnotationSubMenuColorIcon",e.AgentPenAnnotationSubMenuUndoButton="agentPenAnnotationSubMenuUndoButton",e.AgentPenAnnotationSubMenuUndoIcon="agentPenAnnotationSubMenuUndoIcon",e.AgentPenAnnotationSubMenuRedoButton="agentPenAnnotationSubMenuRedoButton",e.AgentPenAnnotationSubMenuRedoIcon="agentPenAnnotationSubMenuRedoIcon",e.AgentPenAnnotationSubMenuClearButton="agentPenAnnotationSubMenuClearButton",e.AgentPenAnnotationSubMenuClearIcon="agentPenAnnotationSubMenuClearIcon",e.AgentPenSubMenuVerticalWrapper="agentPenSubMenuVerticalWrapper",e.AgentPenSubMenuHorizontalWrapper="agentPenSubMenuHorizontalWrapper",e.AgentPenSubMenuButtonCommon="agentPenSubMenuButtonCommon",e.AgentPenSubMenuButtonActiveCommon="agentPenSubMenuButtonActiveCommon",e.AgentPenSubMenuDrawText="agentPenSubMenuDrawText",e.AgentPenSubMenuLineWidthText="agentPenSubMenuLineWidthText",e.AgentColorSubMenuVerticalWrapper="agentColorSubMenuVerticalWrapper",e.AgentColorSubMenuHorizontalWrapper="agentColorSubMenuHorizontalWrapper",e.AgentColorSubMenuButtonCommon="agentColorSubMenuButtonCommon",e.AgentColorSubMenuActiveButtonCommon="agentColorSubMenuActiveButtonCommon",e.AgentZoomInOutMenuVerticalWrapper="agentZoomInOutMenuVerticalWrapper",e.AgentZoomInOutMenuHorizontalWrapper="agentZoomInOutMenuHorizontalWrapper",e.AgentZoomInOutMenuRoot="agentZoomInOutMenuRoot",e.AgentZoomInOutMenuItem="agentZoomInOutMenuItem",e.AgentZoomInOutMenuItemFitToWindow="agentZoomInOutMenuItemFitToWindow",e.AgentZoomInOutMenuItemActualSize="agentZoomInOutMenuItemActualSize",e.AgentSingleAgentEndSessionDialogOverall="agentSingleAgentEndSessionDialogOverall",e.AgentSingleAgentEndSessionDialogTitleContainer="agentSingleAgentEndSessionDialogTitleContainer",e.AgentSingleAgentEndSessionDialogContentContainer="agentSingleAgentEndSessionDialogContentContainer",e.AgentSingleAgentEndSessionDialogFooterContainer="agentSingleAgentEndSessionDialogFooterContainer",e.AgentSingleAgentEndSessionDialogTitleIcon="agentSingleAgentEndSessionDialogTitleIcon",e.AgentSingleAgentEndSessionDialogTitleContent="agentSingleAgentEndSessionDialogTitleContent",e.AgentSingleAgentEndSessionDialogTextContent="agentSingleAgentEndSessionDialogTextContent",e.AgentSingleAgentEndSessionDialogTopRightCloseButton="agentSingleAgentEndSessionDialogTopRightCloseButton",e.AgentSingleAgentEndSessionDialogCancelButton="agentSingleAgentEndSessionDialogCancelButton",e.AgentSingleAgentEndSessionDialogEndSessionButton="agentSingleAgentEndSessionDialogEndSessionButton",e.AgentMultiAgentsEndSessionDialogOverall="agentMultiAgentsEndSessionDialogOverall",e.AgentMultiAgentsEndSessionDialogTitleContainer="agentMultiAgentsEndSessionDialogTitleContainer",e.AgentMultiAgentsEndSessionDialogContentContainer="agentMultiAgentsEndSessionDialogContentContainer",e.AgentMultiAgentsEndSessionDialogFooterContainer="agentMultiAgentsEndSessionDialogFooterContainer",e.AgentMultiAgentsEndSessionDialogTitleIcon="agentMultiAgentsEndSessionDialogTitleIcon",e.AgentMultiAgentsEndSessionDialogTitleContent="agentMultiAgentsEndSessionDialogTitleContent",e.AgentMultiAgentsEndSessionDialogTextContent="agentMultiAgentsEndSessionDialogTextContent",e.AgentMultiAgentsEndSessionDialogTopRightCloseButton="agentMultiAgentsEndSessionDialogTopRightCloseButton",e.AgentMultiAgentsEndSessionDialogCancelButton="agentMultiAgentsEndSessionDialogCancelButton",e.AgentMultiAgentsEndSessionDialogLeaveSessionButton="agentMultiAgentsEndSessionDialogLeaveSessionButton",e.AgentMultiAgentsEndSessionDialogEndSessionButton="agentMultiAgentsEndSessionDialogEndSessionButton",e.AgentJoinFailedDialogOverall="agentJoinFailedDialogOverall",e.AgentJoinFailedDialogTitleContainer="agentJoinFailedDialogTitleContainer",e.AgentJoinFailedDialogContentContainer="agentJoinFailedDialogContentContainer",e.AgentJoinFailedDialogFooterContainer="agentJoinFailedDialogFooterContainer",e.AgentJoinFailedDialogTitleIcon="agentJoinFailedDialogTitleIcon",e.AgentJoinFailedDialogTitleContent="agentJoinFailedDialogTitleContent",e.AgentJoinFailedDialogTextContent="agentJoinFailedDialogTextContent",e.AgentJoinFailedDialogTopRightCloseButton="agentJoinFailedDialogTopRightCloseButton",e.AgentJoinFailedDialogOkButton="agentJoinFailedDialogOkButton",e.AgentFloatingPinToolbarWrapper="agentFloatingPinToolbarWrapper",e.AgentFloatingPinToolbarPrefixIcon="agentFloatingPinToolbarPrefixIcon",e.AgentFloatingPinToolbarContentText="agentFloatingPinToolbarContentText",e.AgentFloatingPinToolbarCopyIcon="agentFloatingPinToolbarCopyIcon",e.AgentToastSuccessPrefixIcon="agentToastSuccessPrefixIcon",e.AgentToastSuccessWrapper="agentToastSuccessWrapper",e.AgentToastErrorPrefixIcon="agentToastErrorPrefixIcon",e.AgentToastErrorWrapper="agentToastErrorWrapper",e.AgentToastWarningPrefixIcon="agentToastWarningPrefixIcon",e.AgentToastWarningWrapper="agentToastWarningWrapper",e.AgentToastDefaultPrefixIcon="agentToastDefaultPrefixIcon",e.AgentToastDefaultWrapper="agentToastDefaultWrapper",e.AgentToastInfoPrefixIcon="agentToastInfoPrefixIcon",e.AgentToastInfoWrapper="agentToastInfoWrapper"}(Fi||(Fi={})),function(e){e.SESSION_PRE_INIT="session_pre_init",e.SESSION_JOINED="session_joined",e.SESSION_LEFT="session_left",e.SESSION_ENDED="session_ended",e.SESSION_ERROR="session_error",e.REMOTE_ASSIST_ACCEPTED="remote_assist_accepted",e.REMOTE_ASSIST_REJECTED="remote_assist_rejected",e.REMOTE_ASSIST_STARTED="remote_assist_started",e.REMOTE_ASSIST_STOPPED="remote_assist_stopped"}(Ui||(Ui={}));var xi,Vi=[Ui.SESSION_PRE_INIT,Ui.SESSION_JOINED,Ui.SESSION_LEFT,Ui.SESSION_ENDED,Ui.SESSION_ERROR,Ui.REMOTE_ASSIST_ACCEPTED,Ui.REMOTE_ASSIST_REJECTED,Ui.REMOTE_ASSIST_STARTED,Ui.REMOTE_ASSIST_STOPPED];!function(e){e.SEND_SESSION_OPTIONS="send_session_options",e.START_REMOTE_ASSIST="start_remote_assist",e.STOP_REMOTE_ASSIST="stop_remote_assist"}(xi||(xi={})),xi.SEND_SESSION_OPTIONS,xi.START_REMOTE_ASSIST,xi.STOP_REMOTE_ASSIST;var Wi;Object.assign(Object.assign({},{createLinearGradient:!0,createRadialGradient:!0,createConicGradient:!0}),{createPattern:!0}),function(e){e[e.REFRESH_PIN_CODE_FAILED=10002]="REFRESH_PIN_CODE_FAILED",e[e.CONNECT_TIMEOUT_FAILED=10012]="CONNECT_TIMEOUT_FAILED",e[e.OTHER_SIDE_RECONNECT_TIMEOUT_FAILED=10013]="OTHER_SIDE_RECONNECT_TIMEOUT_FAILED",e[e.USER_EXIT_BEFORE_SESSION=10022]="USER_EXIT_BEFORE_SESSION"}(Wi||(Wi={}));var Gi,Hi={PIN_UPDATE_FAILED:"Pincode update failed"},Ji={CONNECT_TIMEOUT_FAILED:"Session connect timeout."};_defineProperty(_defineProperty({},Wi.CONNECT_TIMEOUT_FAILED,Ji.CONNECT_TIMEOUT_FAILED),Wi.REFRESH_PIN_CODE_FAILED,Hi.PIN_UPDATE_FAILED),function(e){e[e.CANCEL_END_ROOM=1]="CANCEL_END_ROOM",e[e.CANCEL_LEAVE_ROOM=2]="CANCEL_LEAVE_ROOM"}(Gi||(Gi={}));var Yi="Canceled and ended session.",ji="Canceled and left session.";_defineProperty(_defineProperty({},Gi.CANCEL_END_ROOM,Yi),Gi.CANCEL_LEAVE_ROOM,ji);var zi,Ki={INVALID_URL:"The website link is invalid.",ACCOUNT_NO_CREDITS:"Free trial account has no available credits."},Zi={CONNECTING:"A connection is already in progress.",PERSISTING:" A transfer session is still recovering."},Xi={NOT_FOUND:"Session does not exist or has ended."},qi={LIMIT:"A session is already active."},Qi={PIN_NOT_FOUND:"Pincode is not found."},$i={PIN_EXPIRED:"Pincode has expired."},ea={PIN_INVALID_LENGTH:"Pincode exceeds the maximum length",PIN_INVALID_CHARACTERS:"Pincode contains invalid characters."},na={PIN_REQUIRED:"Pincode is required."},ta={PIN_CONFLICT:"Pincode has already been used."},oa={INTERNAL_ERROR:"Session join failed due to an internal error.",SDK_INVALID:"SDK version is invalid.",SESSION_NOT_FOUND:"Session does not exist or has ended.",INVALID_URL:"The website link is invalid.",RECONNECT_FAILED:"Failed to make a connection after multiple attempts.",FAIL_OVER_FAILED:"Failed to reconnect after fail over with multiple attempts."},ra={CUSTOMER_LIMIT:"Maximum number of customers in a session reached."},ia={AGENT_LIMIT:"Maximum number of agents in a session reached."},aa={DUPLICATE_AGENT:"The agent is already in the session."},sa={NETWORK_REQUEST_FAILED:"Network request to backend failed after multiple attempts."},ua={CANCELING:"Operation failed, the session is being canceled."},ca={JWT_INVALID:"JWT token is invalid.",JWT_NO_PERMISSIONS:"JWT token has no permissions.",JWT_EXPIRED:"JWT token has expired.",JWT_ACCESS_ERROR:"JWT token access error.",INTERNAL_ERROR:"Internal token error."},_a={SERVICE_ERROR:"Service error occurred.",API_RATE_LIMIT:"API request rate limit, try again later.",SESSION_ERROR:"Session error occurred.",SESSION_ERROR_WITH_RETRY:"Session error occurred, try again later."};!function(e){e[e.WEB_REPORT_REGION_FAILED=40100]="WEB_REPORT_REGION_FAILED",e[e.WEB_REPORT_REGION_NOT_MATCH=40101]="WEB_REPORT_REGION_NOT_MATCH",e[e.WEB_REPORT_USER_JOIN_FAILED=40102]="WEB_REPORT_USER_JOIN_FAILED",e[e.WEB_REPORT_USER_JOIN_EMPTY=40103]="WEB_REPORT_USER_JOIN_EMPTY",e[e.WEB_REPORT_USER_JOIN_EMPTY_USER=40104]="WEB_REPORT_USER_JOIN_EMPTY_USER",e[e.AUTH_CONFLICT=40200]="AUTH_CONFLICT",e[e.AUTH_VERIFY_FAILED=40201]="AUTH_VERIFY_FAILED",e[e.AUTH_DB_QUERY_ERROR=40202]="AUTH_DB_QUERY_ERROR",e[e.ROOM_NOT_EXIST=40210]="ROOM_NOT_EXIST",e[e.ROOM_ADD_USER_FAILED=40211]="ROOM_ADD_USER_FAILED",e[e.SESSION_ALREADY_ENDED=40214]="SESSION_ALREADY_ENDED",e[e.ROOM_DEPRECATED=40216]="ROOM_DEPRECATED",e[e.ROOM_ID_MISSING=40300]="ROOM_ID_MISSING",e[e.AUTH_PAYLOAD_MISSING=40301]="AUTH_PAYLOAD_MISSING",e[e.START_URL_INVALID=40302]="START_URL_INVALID",e[e.META_DATA_INVALID=40402]="META_DATA_INVALID",e[e.WSSGW_INSTANCE_NOT_FOUND=40403]="WSSGW_INSTANCE_NOT_FOUND",e[e.LEADER_CONFLICT=40212]="LEADER_CONFLICT",e[e.REACHED_LEADER_LIMIT=40217]="REACHED_LEADER_LIMIT",e[e.FOLLOWER_CONFLICT=40215]="FOLLOWER_CONFLICT",e[e.REACHED_FOLLOWER_LIMIT=40218]="REACHED_FOLLOWER_LIMIT",e[e.USER_CONFLICT=40213]="USER_CONFLICT",e[e.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE=40501]="MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE",e[e.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION=40502]="MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION",e[e.LEAVE_ROOM=4e4]="LEAVE_ROOM",e[e.DISCONNECTED=40001]="DISCONNECTED",e[e.END_ROOM=41e3]="END_ROOM",e[e.DESTROY_DEACTIVE_ROOM=41001]="DESTROY_DEACTIVE_ROOM",e[e.DESTROY_SLEEP_ROOM=41002]="DESTROY_SLEEP_ROOM",e[e.DESTROY_NO_VALID_OPERATION_ROOM=41003]="DESTROY_NO_VALID_OPERATION_ROOM",e[e.SAME_LEADER_JOINED=40219]="SAME_LEADER_JOINED"}(zi||(zi={}));var la,Ea={};_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Ea,zi.WEB_REPORT_REGION_FAILED,oa.INTERNAL_ERROR),zi.WEB_REPORT_REGION_NOT_MATCH,oa.INTERNAL_ERROR),zi.WEB_REPORT_USER_JOIN_FAILED,oa.INTERNAL_ERROR),zi.WEB_REPORT_USER_JOIN_EMPTY,oa.INTERNAL_ERROR),zi.WEB_REPORT_USER_JOIN_EMPTY_USER,oa.INTERNAL_ERROR),zi.AUTH_CONFLICT,oa.INTERNAL_ERROR),zi.AUTH_VERIFY_FAILED,oa.INTERNAL_ERROR),zi.AUTH_DB_QUERY_ERROR,oa.INTERNAL_ERROR),zi.ROOM_NOT_EXIST,oa.INTERNAL_ERROR),zi.ROOM_ADD_USER_FAILED,oa.INTERNAL_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(Ea,zi.SESSION_ALREADY_ENDED,oa.SESSION_NOT_FOUND),zi.ROOM_DEPRECATED,oa.INTERNAL_ERROR),zi.ROOM_ID_MISSING,oa.INTERNAL_ERROR),zi.AUTH_PAYLOAD_MISSING,oa.INTERNAL_ERROR),zi.START_URL_INVALID,oa.INTERNAL_ERROR),zi.META_DATA_INVALID,oa.INTERNAL_ERROR),zi.WSSGW_INSTANCE_NOT_FOUND,oa.INTERNAL_ERROR),zi.LEADER_CONFLICT,ra.CUSTOMER_LIMIT),zi.REACHED_LEADER_LIMIT,ra.CUSTOMER_LIMIT),zi.FOLLOWER_CONFLICT,ia.AGENT_LIMIT),_defineProperty(_defineProperty(_defineProperty(_defineProperty(Ea,zi.REACHED_FOLLOWER_LIMIT,ia.AGENT_LIMIT),zi.USER_CONFLICT,aa.DUPLICATE_AGENT),zi.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE,_a.SESSION_ERROR_WITH_RETRY),zi.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION,_a.SESSION_ERROR),function(e){e[e.ALL_PING_FAILED=10001]="ALL_PING_FAILED",e[e.EMPTY_PING_LIST=10003]="EMPTY_PING_LIST",e[e.SOCKET_RECONNECT_FAILED=10020]="SOCKET_RECONNECT_FAILED",e[e.SOCKET_FAIL_OVER_FAILED=10021]="SOCKET_FAIL_OVER_FAILED",e[e.DUPLICATE_LAUNCH_SESSION=10024]="DUPLICATE_LAUNCH_SESSION",e[e.FRAME_LEVEL_NOT_READY=10025]="FRAME_LEVEL_NOT_READY",e[e.SESSION_CONNECTING=10010]="SESSION_CONNECTING",e[e.SESSION_PERSISTING=10014]="SESSION_PERSISTING",e[e.DUPLICATE_SESSION=10023]="DUPLICATE_SESSION",e[e.SESSION_CANCELING=10027]="SESSION_CANCELING",e[e.UNKNOWN_SERVICE_EXCEPTION=19999]="UNKNOWN_SERVICE_EXCEPTION"}(la||(la={}));var da,fa=(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(n={},la.ALL_PING_FAILED,oa.INTERNAL_ERROR),la.EMPTY_PING_LIST,oa.INTERNAL_ERROR),la.SOCKET_RECONNECT_FAILED,oa.RECONNECT_FAILED),la.SOCKET_FAIL_OVER_FAILED,oa.FAIL_OVER_FAILED),la.FRAME_LEVEL_NOT_READY,oa.INTERNAL_ERROR),la.SESSION_CONNECTING,Zi.CONNECTING),la.SESSION_PERSISTING,Zi.PERSISTING),la.DUPLICATE_SESSION,qi.LIMIT),la.DUPLICATE_LAUNCH_SESSION,qi.LIMIT),la.SESSION_CANCELING,ua.CANCELING),_defineProperty(n,la.UNKNOWN_SERVICE_EXCEPTION,_a.SERVICE_ERROR));!function(e){e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden"}(da||(da={}));var Sa,Ra=_defineProperty(_defineProperty({},da.Unauthorized,ca.JWT_INVALID),da.Forbidden,ca.JWT_INVALID);!function(e){e[e.INVALID_URL=30105]="INVALID_URL",e[e.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_DISABLE=30600]="SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_DISABLE",e[e.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_NO_CREDIT=30601]="SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_NO_CREDIT",e[e.SESSION_NOT_FOUND=30300]="SESSION_NOT_FOUND",e[e.PIN_CODE_NOT_FOUND=30308]="PIN_CODE_NOT_FOUND",e[e.PIN_CODE_EXPIRED=30309]="PIN_CODE_EXPIRED",e[e.PIN_CODE_EXCEEDED_MAX_LENGTH=30307]="PIN_CODE_EXCEEDED_MAX_LENGTH",e[e.PIN_INVALID_CHARACTERS=30311]="PIN_INVALID_CHARACTERS",e[e.PIN_CODE_IS_REQUIRED=30315]="PIN_CODE_IS_REQUIRED",e[e.PIN_CODE_HAS_BEEN_USED=30316]="PIN_CODE_HAS_BEEN_USED",e[e.INVALID_SDK_VERSION=30106]="INVALID_SDK_VERSION",e[e.ERROR_SDK_VERSION=30107]="ERROR_SDK_VERSION",e[e.INACTIVE_SDK_VERSION=30109]="INACTIVE_SDK_VERSION",e[e.SDK_VERSION_NOT_FOUND=30110]="SDK_VERSION_NOT_FOUND",e[e.NETWORK_ERROR=10016]="NETWORK_ERROR",e[e.INVALID_TOKEN=124]="INVALID_TOKEN",e[e.NO_PERMISSION=125]="NO_PERMISSION",e[e.INVALID_EXPIRED=129]="INVALID_EXPIRED",e[e.TOKEN_ACCESS_ERROR=30304]="TOKEN_ACCESS_ERROR",e[e.UNKNOWN=-1]="UNKNOWN",e[e.LOCKED=126]="LOCKED",e[e.PIN_PUSH_FAILED=128]="PIN_PUSH_FAILED",e[e.INVALID_BUSINESS_TYPE=30102]="INVALID_BUSINESS_TYPE",e[e.INVALID_RECORDING_ID=30103]="INVALID_RECORDING_ID",e[e.MISSING_FIELD=30104]="MISSING_FIELD",e[e.SEARCH_ERROR=30200]="SEARCH_ERROR",e[e.INVALID_BUSINESS_TYPE2=30201]="INVALID_BUSINESS_TYPE2",e[e.FILE_SERVER_ERROR=30203]="FILE_SERVER_ERROR",e[e.FILE_SERVICE_ERROR=30204]="FILE_SERVICE_ERROR",e[e.FILE_SERVICE_ERROR2=30205]="FILE_SERVICE_ERROR2",e[e.INVALID_START_TIME=30301]="INVALID_START_TIME",e[e.INVALID_ACTION=30302]="INVALID_ACTION",e[e.INVALID_REGION=30303]="INVALID_REGION",e[e.EXCEEDED_FAILED=30305]="EXCEEDED_FAILED",e[e.INVALID_END_TIME=30306]="INVALID_END_TIME",e[e.PIN_CODE_NOT_READY=30310]="PIN_CODE_NOT_READY",e[e.INVALID_TOTAL_MINUTES=30312]="INVALID_TOTAL_MINUTES",e[e.DUPLICATE_REQUEST=30313]="DUPLICATE_REQUEST",e[e.INVALID_TEMPLATE_TYPE=30314]="INVALID_TEMPLATE_TYPE",e[e.SERVER_ERROR1=30400]="SERVER_ERROR1",e[e.SERVER_ERROR2=30401]="SERVER_ERROR2",e[e.SERVER_ERROR3=30402]="SERVER_ERROR3",e[e.SERVER_ERROR4=30403]="SERVER_ERROR4",e[e.INVALID_SDK_CDN_URL=30108]="INVALID_SDK_CDN_URL"}(Sa||(Sa={}));var Ia,ga,Ta,pa=_defineProperty(_defineProperty(_defineProperty(_defineProperty({},Sa.INVALID_TOKEN,ca.JWT_INVALID),Sa.NO_PERMISSION,ca.JWT_NO_PERMISSIONS),Sa.INVALID_EXPIRED,ca.JWT_EXPIRED),Sa.TOKEN_ACCESS_ERROR,ca.JWT_ACCESS_ERROR),Oa=(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(t={},Sa.INVALID_URL,Ki.INVALID_URL),Sa.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_DISABLE,Ki.ACCOUNT_NO_CREDITS),Sa.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_NO_CREDIT,Ki.ACCOUNT_NO_CREDITS),Sa.SESSION_NOT_FOUND,Xi.NOT_FOUND),Sa.PIN_CODE_NOT_FOUND,Qi.PIN_NOT_FOUND),Sa.PIN_CODE_EXPIRED,$i.PIN_EXPIRED),Sa.PIN_CODE_EXCEEDED_MAX_LENGTH,ea.PIN_INVALID_LENGTH),Sa.PIN_INVALID_CHARACTERS,ea.PIN_INVALID_CHARACTERS),Sa.PIN_CODE_IS_REQUIRED,na.PIN_REQUIRED),Sa.PIN_CODE_HAS_BEEN_USED,ta.PIN_CONFLICT),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(t,Sa.INVALID_SDK_VERSION,oa.SDK_INVALID),Sa.ERROR_SDK_VERSION,oa.SDK_INVALID),Sa.INACTIVE_SDK_VERSION,oa.SDK_INVALID),Sa.SDK_VERSION_NOT_FOUND,oa.SDK_INVALID),Sa.NETWORK_ERROR,sa.NETWORK_REQUEST_FAILED),Sa.INVALID_TOKEN,ca.INTERNAL_ERROR),Sa.NO_PERMISSION,ca.INTERNAL_ERROR),Sa.INVALID_EXPIRED,ca.INTERNAL_ERROR),Sa.TOKEN_ACCESS_ERROR,ca.INTERNAL_ERROR),Sa.UNKNOWN,_a.SERVICE_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(t,Sa.LOCKED,_a.SERVICE_ERROR),Sa.PIN_PUSH_FAILED,_a.SERVICE_ERROR),Sa.INVALID_BUSINESS_TYPE,_a.SERVICE_ERROR),Sa.INVALID_RECORDING_ID,_a.SERVICE_ERROR),Sa.MISSING_FIELD,_a.SERVICE_ERROR),Sa.SEARCH_ERROR,_a.SERVICE_ERROR),Sa.INVALID_BUSINESS_TYPE2,_a.SERVICE_ERROR),Sa.FILE_SERVER_ERROR,_a.SERVICE_ERROR),Sa.FILE_SERVICE_ERROR,_a.SERVICE_ERROR),Sa.FILE_SERVICE_ERROR2,_a.SERVICE_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(t,Sa.INVALID_START_TIME,_a.SERVICE_ERROR),Sa.INVALID_ACTION,_a.SERVICE_ERROR),Sa.INVALID_REGION,_a.SERVICE_ERROR),Sa.EXCEEDED_FAILED,_a.API_RATE_LIMIT),Sa.INVALID_END_TIME,_a.SERVICE_ERROR),Sa.PIN_CODE_NOT_READY,_a.SERVICE_ERROR),Sa.INVALID_TOTAL_MINUTES,_a.SERVICE_ERROR),Sa.DUPLICATE_REQUEST,_a.SERVICE_ERROR),Sa.INVALID_TEMPLATE_TYPE,_a.SERVICE_ERROR),Sa.SERVER_ERROR1,_a.SERVICE_ERROR),_defineProperty(_defineProperty(_defineProperty(_defineProperty(t,Sa.SERVER_ERROR2,_a.SERVICE_ERROR),Sa.SERVER_ERROR3,_a.SERVICE_ERROR),Sa.SERVER_ERROR4,_a.SERVICE_ERROR),Sa.INVALID_SDK_CDN_URL,_a.SERVICE_ERROR));!function(e){e[e.RECORD_START_FAILED=29e3]="RECORD_START_FAILED",e[e.RECORD_STOP_FAILED=29001]="RECORD_STOP_FAILED",e[e.RECORD_PAUSE_FAILED=29002]="RECORD_PAUSE_FAILED",e[e.RECORD_RESUME_FAILED=29003]="RECORD_RESUME_FAILED"}(Ia||(Ia={})),function(e){e[e.SESSION_START_FAILED=1001]="SESSION_START_FAILED",e[e.SESSION_CONNECTING_IN_PROGRESS=1002]="SESSION_CONNECTING_IN_PROGRESS",e[e.SESSION_NOT_FOUND=1003]="SESSION_NOT_FOUND",e[e.SESSION_COUNT_LIMIT=1004]="SESSION_COUNT_LIMIT",e[e.SESSION_REFRESH_PIN_FAILED=1005]="SESSION_REFRESH_PIN_FAILED",e[e.SESSION_JOIN_PIN_NOT_FOUND=1006]="SESSION_JOIN_PIN_NOT_FOUND",e[e.SESSION_PIN_CODE_EXPIRED=1007]="SESSION_PIN_CODE_EXPIRED",e[e.SESSION_PIN_INVALID_FORMAT=1008]="SESSION_PIN_INVALID_FORMAT",e[e.SESSION_START_PIN_REQUIRED=1009]="SESSION_START_PIN_REQUIRED",e[e.SESSION_START_PIN_CONFLICT=1010]="SESSION_START_PIN_CONFLICT",e[e.SESSION_JOIN_FAILED=1011]="SESSION_JOIN_FAILED",e[e.SESSION_CUSTOMER_COUNT_LIMIT=1012]="SESSION_CUSTOMER_COUNT_LIMIT",e[e.SESSION_AGENT_COUNT_LIMIT=1013]="SESSION_AGENT_COUNT_LIMIT",e[e.SESSION_CUSTOMIZE_OVERRIDE_ERROR=1014]="SESSION_CUSTOMIZE_OVERRIDE_ERROR",e[e.SESSION_DUPLICATE_USER=1015]="SESSION_DUPLICATE_USER",e[e.NETWORK_ERROR=1016]="NETWORK_ERROR",e[e.SESSION_CANCELING_IN_PROGRESS=1017]="SESSION_CANCELING_IN_PROGRESS",e[e.TRANSFER_TO_NEW_TAB_FAILED=1018]="TRANSFER_TO_NEW_TAB_FAILED",e[e.TOKEN_INVALID=2001]="TOKEN_INVALID",e[e.RECORD_ERROR_UNKNOWN=3001]="RECORD_ERROR_UNKNOWN",e[e.RECORD_START_FAILED=3002]="RECORD_START_FAILED",e[e.RECORD_END_FAILED=3003]="RECORD_END_FAILED",e[e.RECORD_PAUSE_FAILED=3004]="RECORD_PAUSE_FAILED",e[e.RECORD_RESUME_FAILED=3005]="RECORD_RESUME_FAILED",e[e.UNDEFINED=9999]="UNDEFINED"}(ga||(ga={})),function(e){e.Enter="Enter",e.Space=" ",e.Escape="Escape",e.Tab="Tab",e.ArrowUp="ArrowUp",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Delete="Delete",e.Backspace="Backspace",e.Spacebar="Spacebar"}(Ta||(Ta={}));var Ca=function(){return"undefined"==typeof window||"undefined"==typeof document};function ha(){var e=navigator.userAgent;return/iPhone|iPad|iPod/.test(e)}function Na(){return ha()||navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/Windows Phone/i)}function Aa(){return!Ca()&&("MacIntel"===(window.navigator.platform||"")&&((window.navigator.maxTouchPoints||0)>1&&"ontouchstart"in window))}function Da(){return Aa()||function(){if(Ca())return!1;var e=window.navigator,n=e.userAgent,t=e.platform;if(/Android/.test(n)||!/Linux/.test(t))return!1;var o="ontouchstart"in window&&("orientation"in window||"screen"in window&&window.screen&&"orientation"in window.screen)&&window.navigator.maxTouchPoints>0,r="standalone"in window.navigator||"share"in window.navigator||"vibrate"in window.navigator;return o&&r}()}var va,ma,ya,ba=(va=null,ma=null,ya=null,{get isIOS(){return null===va&&(va=ha()),va},get isIOSDevice(){return null===ma&&(ma=ha()||Aa()),ma},get isMobileDeviceOrDesktopUA(){return null===ya&&(ya=!(!Na()&&!Da())),ya}}),Pa=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calculateWidth",value:function(){var e,n,t=window.visualViewport;if(!Ba(t))return wa();if(t.scale>1){var o=t.width*t.scale;return Math.min(o,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.width)&&void 0!==n?n:o)}return t.width}},{key:"calculateHeight",value:function(){var e,n,t=window.visualViewport;if(!Ba(t))return Ma();if(t.scale>1){var o=t.height*t.scale;return Math.min(o,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.height)&&void 0!==n?n:o)}return t.height}}]),e}(),La=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calculateWidth",value:function(){var e,n,t=window.visualViewport;if(!Ba(t))return wa();if(t.scale>1){var o=Math.max(t.width*t.scale,window.innerWidth);return Math.min(o,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.width)&&void 0!==n?n:o)}return Math.max(t.width,window.innerWidth)}},{key:"calculateHeight",value:function(){var e,n,t=window.visualViewport;if(!Ba(t))return Ma();if(t.scale>1){var o=Math.max(t.height*t.scale,window.innerHeight);return Math.min(o,null!==(n=null===(e=window.screen)||void 0===e?void 0:e.height)&&void 0!==n?n:o)}return Math.max(t.height,window.innerHeight)}}]),e}();function wa(){return"undefined"==typeof document?0:document.documentElement&&document.documentElement.clientWidth||window.innerWidth||document.body&&document.body.clientWidth}function Ma(){return"undefined"==typeof document?0:document.documentElement&&document.documentElement.clientHeight||window.innerHeight||document.body&&document.body.clientHeight}var Fa=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calculateWidth",value:function(){return wa()}},{key:"calculateHeight",value:function(){return Ma()}}]),e}(),Ua=function(){var e,n=!1;function t(){e=ba.isMobileDeviceOrDesktopUA&&Ba(window.visualViewport)?ba.isIOSDevice?new Pa:new La:new Fa,n=!0}return{getWidth:function(){return n||t(),e.calculateWidth()},getHeight:function(){return n||t(),e.calculateHeight()}}}();var ka=new WeakMap;function Ba(e){if(!e||"object"!==_typeof(e))return!1;if(e.constructor&&"VisualViewport"===e.constructor.name){var n=ka.get(e);if(void 0!==n)return n}var t=function(e){return"object"===_typeof(e)&&null!==e&&"scale"in e&&"width"in e&&"height"in e&&"offsetTop"in e&&"number"==typeof e.scale&&"number"==typeof e.width&&"number"==typeof e.height&&"number"==typeof e.offsetTop}(e);return t&&ka.set(e,t),t}Ua.getWidth(),Ua.getHeight();function xa(e,n,t){var o;null===(o=null==n?void 0:n.postMessage)||void 0===o||o.call(n,e,t)}var Va=jr(["CoBrowsing Session","Fetch Retry"]),Wa=function(){function e(){_classCallCheck(this,e),this.taskMap=new Map,this.frozen=!1,window.ZCB_RetryManager=this}return _createClass(e,[{key:"schedule",value:function(e){var n=e.fn,t=e.onTimeout,o=e.delay,r=e.remainingTime;if(this.frozen||r<=0)t(this.frozen?"frozen":"time out");else{var i={fn:n,onTimeout:t,deadline:Date.now()+r,delay:o};this.taskMap.set(i,i),this.runTask(i)}}},{key:"runTask",value:function(e){var n=this,t=e.timer,o=e.fn,r=e.delay,i=e.deadline,a=e.onTimeout;if(void 0===t&&this.taskMap.has(e)){var s=window.setTimeout((function(){n.taskMap.has(e)&&(Date.now()<i&&!n.frozen?o():a(n.frozen?"frozen":"time out"),n.taskMap.delete(e))}),r);e.timer=s}}},{key:"removeTasks",value:function(e){var n,t=_createForOfIteratorHelper(this.taskMap.values());try{for(t.s();!(n=t.n()).done;){var o=n.value,r=o.timer,i=o.onTimeout;void 0!==r&&window.clearTimeout(r),i(e)}}catch(e){t.e(e)}finally{t.f()}this.taskMap.clear()}},{key:"freeze",value:function(){this.frozen=!0,this.removeTasks("frozen")}},{key:"unfreeze",value:function(){this.frozen=!1}}],[{key:"create",value:function(){return window.ZCB_RetryManager||new e}}]),e}().create(),Ga={baseDelay:2e3,backoffFactor:2,maxDelay:16e3,maxRetries:4,maxRetryDuration:6e4};function Ha(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:16e3;return Math.min(o,n*Math.pow(t,e))}var Ja,Ya=function(e){_inherits(t,_wrapNativeSuper(Error));var n=_createSuper(t);function t(e){var o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return _classCallCheck(this,t),(o=n.call(this,e)).msg=e,o.code=r,o.statusCode=i,o}return _createClass(t)}();function ja(e,n){var t=this,i=n||{},a=i.retry,s=i.handleJsonResponse,u=i.isGetSessionStatus,c=void 0!==u&&u,_=o(i,["retry","handleJsonResponse","isGetSessionStatus"]),l=_.headers&&!!_.headers.Authorization,E=s||function(e){return r(t,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,o,r;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e.ok){n.next=4;break}return n.abrupt("return",e);case 4:return n.prev=4,n.next=7,e.json();case 7:r=n.sent,t=r.message,o=r.code,n.next=16;break;case 12:n.prev=12,n.t0=n.catch(4),t=e.statusText,o=e.status;case 16:throw new Ya(t,o,e.status);case 17:case"end":return n.stop()}}),n,null,[[4,12]])})))},d=Hn.getCoBrowsingConfig("retryConfig"),f=d&&function(e){for(var n=e.baseDelay,t=e.backoffFactor,o=e.maxDelay,r=e.maxRetries,i=e.maxRetryDuration,a=0,s=1;s<=r;s++)a+=Ha(s,n,t,o);return a<i}(d)?d:Ga,S=Object.assign({limit:c?f.maxRetries:3,delay:c?function(e){return Ha(e,f.baseDelay,f.backoffFactor,f.maxDelay)}:void 0},a),R=S.limit,I=S.delay,g=f.maxRetryDuration,T=Date.now(),p=Date.now(),O="string"==typeof e?e:e instanceof URL?e.pathname:e.url;return new Promise((function(n,t){var o=function(o){var a,s,u,c;return r(this,void 0,void 0,_regeneratorRuntime().mark((function r(){var d,f,S,I;return _regeneratorRuntime().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,fetch(e,_);case 3:return d=r.sent,r.next=6,E(d);case 6:return f=r.sent,n(f),l&&Va.log("fetch success, url: ".concat(O,", attempt: ").concat(o,", fetch start time: ").concat(T,", current time: ").concat(Date.now(),", visible: ").concat(document.visibilityState)),r.abrupt("return");case 12:if(r.prev=12,r.t0=r.catch(0),S=r.t0&&null!==(s=null!==(a=r.t0.statusCode)&&void 0!==a?a:r.t0.status)&&void 0!==s?s:1/0,I=!r.t0||r.t0 instanceof TypeError&&/Load failed|fetch/i.test(r.t0.message)?new Ya(Oa[Sa.NETWORK_ERROR],Sa.NETWORK_ERROR):r.t0,l&&Va.log("fetch failed, url: ".concat(O,", attempt: ").concat(o,", fetch start time: ").concat(T,", current time: ").concat(Date.now(),", rejectReason: ").concat(I instanceof Ya?Oa[Sa.NETWORK_ERROR]:null!==(c=null!==(u=null==I?void 0:I.msg)&&void 0!==u?u:null==I?void 0:I.message)&&void 0!==c?c:I,", visible: ").concat(document.visibilityState)),!(o>=R||S<500&&0!==S)){r.next=20;break}return t(I),r.abrupt("return");case 20:p=0===o?Date.now():p,i(o,(function(e){var n,r;t(I),l&&Va.log("fetch failed, url: ".concat(O,", attempt: ").concat(o,", fetch start time: ").concat(T,", current time: ").concat(Date.now(),", reason: ").concat(e,", rejectReason: ").concat(I instanceof Ya?Oa[Sa.NETWORK_ERROR]:null!==(r=null!==(n=null==I?void 0:I.msg)&&void 0!==n?n:null==I?void 0:I.message)&&void 0!==r?r:I,", visible: ").concat(document.visibilityState))}));case 22:case"end":return r.stop()}}),r,null,[[0,12]])})))};function i(e,n){if(++e,void 0!==I){var t="function"==typeof I?I(e):I;Wa.schedule({fn:function(){o(e)},delay:t,onTimeout:n,remainingTime:g-(Date.now()-p)})}else o(e)}o(0)}))}!function(e){e[e.NOT_DEFINED=-1]="NOT_DEFINED"}(Ja||(Ja={}));var za=function(e){_inherits(t,_wrapNativeSuper(Error));var n=_createSuper(t);function t(e){var o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ja.NOT_DEFINED,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return _classCallCheck(this,t),(o=n.call(this,e)).msg=e,o.code=r,o.statusCode=i,o}return _createClass(t)}(),Ka=function(e){_inherits(t,_wrapNativeSuper(Error));var n=_createSuper(t);function t(){var e,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oi.UNKNOWN;return _classCallCheck(this,t),(e=n.call(this,o)).msg=o,e}return _createClass(t)}(),Za=jr(["CoBrowsing AgentSDK","COMMON"]);function Xa(e,n){return new Promise((function(t,r){null==n||n(e);var i=e.success,a=o(e,["success"]);i?t(a):r(e.error)}))}var qa=function(e){return r(void 0,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,o;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e.ok){n.next=7;break}return n.next=3,e.json();case 3:return t=n.sent,n.abrupt("return",t);case 7:return n.next=9,e.json();case 9:throw o=n.sent,new za(o.message,o.code,e.status);case 11:case"end":return n.stop()}}),n)})))},Qa=function(e,n){return r(void 0,void 0,void 0,_regeneratorRuntime().mark((function t(){var r,i,a,s,u,c,_,l;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=(r=n||{}).headers,a=void 0===i?{}:i,s=r.authToken,u=o(r,["headers","authToken"]),c=Uo.getZmTrackingIdForWeb(),lo(e)?Za.log("zmTrackingIdForWeb:".concat(c,", url ").concat(e)):Za.log("zmTrackingIdForWeb:".concat(c)),(_=new URL(e.toString())).searchParams.set("t",Date.now().toString()),t.next=7,ja(_,Object.assign({headers:Object.assign({"Content-Type":"application/json",Authorization:"Bearer ".concat(s),"x-zm-trackingid":c},a),method:"GET",handleJsonResponse:qa},u));case 7:return l=t.sent,t.abrupt("return",l);case 9:case"end":return t.stop()}}),t)})))};function $a(){var e;return"https://"+(io()?null===(e=ao())||void 0===e?void 0:e.domain:window.ZMCoBrowsingConfig.domain)}function es(e,n){var t=e;if(!0!==Hn.getCoBrowsingConfig("isLoadFromSDKEntry")&&(uo()&&(t="".concat(e,"/").concat(co())),window.location.pathname===t)){var o=new URLSearchParams(window.location.search);Object.entries(n).forEach((function(e){var n=_slicedToArray(e,2),t=n[0],r=n[1];o.set(t,r)}));var r="".concat(window.location.pathname,"?").concat(o.toString());history.replaceState({},"",r)}}var ns,ts=function(e){return io()&&sessionStorage.getItem(It(e))||""};!function(e){e.SESSION_JOINED="session_joined",e.SESSION_LEFT="session_left",e.SESSION_ENDED="session_ended",e.SESSION_ERROR="session_error"}(ns||(ns={}));var os,rs=new Map([[ga.SESSION_START_FAILED,[Sa.INVALID_URL,Sa.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_DISABLE,Sa.SDK_UNIVERSAL_CREDIT_FREE_TRIAL_PLAN_NO_CREDIT]],[ga.SESSION_CONNECTING_IN_PROGRESS,[la.SESSION_CONNECTING,la.SESSION_PERSISTING]],[ga.SESSION_NOT_FOUND,[Sa.SESSION_NOT_FOUND]],[ga.SESSION_COUNT_LIMIT,[la.DUPLICATE_SESSION,la.DUPLICATE_LAUNCH_SESSION]],[ga.SESSION_REFRESH_PIN_FAILED,[Wi.REFRESH_PIN_CODE_FAILED]],[ga.SESSION_JOIN_PIN_NOT_FOUND,[Sa.PIN_CODE_NOT_FOUND]],[ga.SESSION_PIN_CODE_EXPIRED,[Sa.PIN_CODE_EXPIRED]],[ga.SESSION_PIN_INVALID_FORMAT,[Sa.PIN_CODE_EXCEEDED_MAX_LENGTH,Sa.PIN_INVALID_CHARACTERS]],[ga.SESSION_START_PIN_REQUIRED,[Sa.PIN_CODE_IS_REQUIRED]],[ga.SESSION_START_PIN_CONFLICT,[Sa.PIN_CODE_HAS_BEEN_USED]],[ga.SESSION_JOIN_FAILED,[la.FRAME_LEVEL_NOT_READY,la.EMPTY_PING_LIST,la.ALL_PING_FAILED,la.SOCKET_RECONNECT_FAILED,la.SOCKET_FAIL_OVER_FAILED,Sa.INVALID_SDK_VERSION,Sa.ERROR_SDK_VERSION,Sa.INACTIVE_SDK_VERSION,Sa.SDK_VERSION_NOT_FOUND,zi.WEB_REPORT_REGION_FAILED,zi.WEB_REPORT_REGION_NOT_MATCH,zi.WEB_REPORT_USER_JOIN_FAILED,zi.WEB_REPORT_USER_JOIN_EMPTY,zi.WEB_REPORT_USER_JOIN_EMPTY_USER,zi.AUTH_CONFLICT,zi.AUTH_VERIFY_FAILED,zi.AUTH_DB_QUERY_ERROR,zi.ROOM_NOT_EXIST,zi.ROOM_ADD_USER_FAILED,zi.SESSION_ALREADY_ENDED,zi.ROOM_DEPRECATED,zi.ROOM_ID_MISSING,zi.AUTH_PAYLOAD_MISSING,zi.START_URL_INVALID,zi.META_DATA_INVALID,zi.WSSGW_INSTANCE_NOT_FOUND]],[ga.SESSION_CUSTOMER_COUNT_LIMIT,[zi.LEADER_CONFLICT,zi.REACHED_LEADER_LIMIT]],[ga.SESSION_AGENT_COUNT_LIMIT,[zi.FOLLOWER_CONFLICT,zi.REACHED_FOLLOWER_LIMIT]],[ga.SESSION_CUSTOMIZE_OVERRIDE_ERROR,[]],[ga.SESSION_DUPLICATE_USER,[zi.USER_CONFLICT]],[ga.NETWORK_ERROR,[Sa.NETWORK_ERROR]],[ga.SESSION_CANCELING_IN_PROGRESS,[la.SESSION_CANCELING]],[ga.TRANSFER_TO_NEW_TAB_FAILED,[]],[ga.TOKEN_INVALID,[Sa.INVALID_TOKEN,Sa.NO_PERMISSION,Sa.INVALID_EXPIRED,Sa.TOKEN_ACCESS_ERROR]],[ga.UNDEFINED,[la.UNKNOWN_SERVICE_EXCEPTION,Sa.UNKNOWN,Sa.LOCKED,Sa.PIN_PUSH_FAILED,Sa.INVALID_BUSINESS_TYPE,Sa.INVALID_RECORDING_ID,Sa.MISSING_FIELD,Sa.SEARCH_ERROR,Sa.INVALID_BUSINESS_TYPE2,Sa.FILE_SERVER_ERROR,Sa.FILE_SERVICE_ERROR,Sa.FILE_SERVICE_ERROR2,Sa.INVALID_START_TIME,Sa.INVALID_ACTION,Sa.INVALID_REGION,Sa.EXCEEDED_FAILED,Sa.INVALID_END_TIME,Sa.PIN_CODE_NOT_READY,Sa.INVALID_TOTAL_MINUTES,Sa.DUPLICATE_REQUEST,Sa.INVALID_TEMPLATE_TYPE,Sa.SERVER_ERROR1,Sa.SERVER_ERROR2,Sa.SERVER_ERROR3,Sa.SERVER_ERROR4,Sa.INVALID_SDK_CDN_URL,zi.MSG_SIZE_LIMIT_EXCEEDED_BY_MINUTE,zi.MSG_SIZE_LIMIT_EXCEEDED_BY_SESSION,24e3,24002,25100,25101,25102,25103,25104,25105,25200,25201,25202,26600,26601,26702,26703]],[3001,[26700]],[3002,[2e4,20001,20002,20003,20004,20005,20006,20007,24001,26100,26101,26102,26103,26104,26105,26106,26200,26201,26203,26204,26301,26302,26303,26304,26305,26400,26401,26402,26403,26404,26405,26500,26501,26502,26503,26504,26506,26701,26800,26801,29e3]],[3003,[21e3,21001,25203,25204,26202,26505,29001]],[3004,[22e3,29002]],[3005,[23e3,29003]]]),is=[29e3,29001,29002,29003],as=new Map,ss=_createForOfIteratorHelper(rs);try{var us=function(){var e=_slicedToArray(os.value,2),n=e[0];e[1].forEach((function(e){as.set(e,n)}))};for(ss.s();!(os=ss.n()).done;)us()}catch(e){ss.e(e)}finally{ss.f()}var cs="".concat("zcb-el-","aria-notify-area");var _s=function(e,n){var t=null;return function(){for(var o=this,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];t&&clearTimeout(t),t=setTimeout((function(){e.apply(o,i)}),n)}}((function(e){!function(){if(!document.getElementById(cs)){var e=document.createElement("div");e.id=cs,e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","assertive"),e.setAttribute("aria-relevant","text"),e.style.position="fixed",e.style.left="-10000px",e.style.top="-10000px",e.style.width="1px",e.style.height="1px",e.style.overflow="hidden",e.style.clip="rect(0, 0, 0, 0)",e.style.whiteSpace="nowrap",e.style.border="0",e.style.margin="-1px",e.style.padding="0",e.style.zIndex="-1",e.style.pointerEvents="none",e.style.userSelect="none",document.body.appendChild(e)}}();var n=document.getElementById(cs);n&&(n.innerText="",requestAnimationFrame((function(){n.innerText=e,setTimeout((function(){n.innerText=""}),3e4)})))}),50);function ls(e,n){switch(e){case Ui.SESSION_JOINED:_s("Agent has joined the session.");break;case Ui.SESSION_LEFT:_s("Agent has left the session.");break;case Ui.SESSION_ENDED:_s("Session has ended.");break;case Ui.SESSION_ERROR:_s((null==n?void 0:n.errorMsg)||"Session error occurred")}}var Es=jr(["CoBrowsing AgentSDK","COMMON"]),ds="/sdkapi/zcb/frame-templates/viewer",fs=new(function(){function e(){_classCallCheck(this,e),this.sessionMap=new Map}return _createClass(e,[{key:"isNpmMode",get:function(){return!!window.ZCB_NPM_SDK_AGENT_MAIN}},{key:"deleteSession",value:function(e){this.sessionMap.delete(e)}},{key:"clearDeactivedSessions",value:function(){var e=this;this.sessionMap.forEach((function(n,t){t._destroyed&&(e.deleteSession(t),t._destroy())}))}},{key:"createSession",value:function(n){if(this.isNpmMode){this.clearDeactivedSessions();var t=new Ss(n);return this.sessionMap.set(t,!0),t}return e.session||(e.session=new Ss(n)),e.session}}]),e}()),Ss=function(e){_inherits(t,e);var n=_createSuper(t);function t(e){var o;_classCallCheck(this,t),(o=n.call(this)).options=e,o.manager=fs,o.autoJoinSessionDetailsPromise=null,o.sessionEventInfo=null,o._destroyed=!1;var r=(e||{}).zoomAppRoot;if(o.isNpmMode){var i=new Ka(oi.NO_ROOT_DOM);if(!r||"string"!=typeof r&&!(r instanceof HTMLElement))throw i;var a="string"==typeof r?document.querySelector(r):r;if(!(null==a?void 0:a.isConnected))throw i;o.frameRoot=a}return o.messageListener=o.messageCallback.bind(_assertThisInitialized(o)),window.addEventListener("message",o.messageListener),o}return _createClass(t,[{key:"isNpmMode",get:function(){return!!window.ZCB_NPM_SDK_AGENT_MAIN}},{key:"getPayloadFromJwtToken",value:function(e){var n;if("string"!=typeof e)return null;var t=(null===(n=e.split("."))||void 0===n?void 0:n[1])||"",o=null;try{o=JSON.parse(gt(t))}catch(e){}return o}},{key:"init",value:function(){var e;return r(this,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,o;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!this.isNpmMode){n.next=6;break}if(t=ts(Bi)||ts(ki),o=t?null===(e=this.getPayloadFromJwtToken(t))||void 0===e?void 0:e.session_id:"",!t||!o){n.next=6;break}return n.next=6,this.getSessionStatus({sessionId:o,authToken:t});case 6:case"end":return n.stop()}}),n,this)})))}},{key:"getSessionStatus",value:function(e){return r(this,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,o,r,i=this;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.sessionId,o=e.authToken,r=new URL(Kn.getSessionStatus,$a()),Es.log("Call CommonAgentSession.getSessionStatus: check auto join"),n.abrupt("return",Qa("".concat(r,"/").concat(t),{authToken:o}).then((function(e){var n;i.storeTokenForRefresh(null===(n=e.current_user)||void 0===n?void 0:n.auth_token),i.autoJoinSessionDetailsPromise=new Zo,i.autoJoinSessionDetailsPromise.resolve(e)})).catch((function(){i.delTokenForRefresh()})));case 4:case"end":return n.stop()}}),n)})))}},{key:"delTokenForRefresh",value:function(){var e;this.isNpmMode&&(e=[ki,Bi],io()&&e.forEach((function(e){sessionStorage.removeItem(It(e))})))}},{key:"storeTokenForRefresh",value:function(e){var n,t;this.isNpmMode&&e&&(n=Bi,t={access_token:e},io()?sessionStorage.setItem(It(n),(null==t?void 0:t.access_token)||""):es(n,t))}},{key:"createAgentViewerEndpoint",value:function(e,n){return r(this,void 0,void 0,_regeneratorRuntime().mark((function t(){var o,r,i=this;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=_o(e.sdkToken||"",["user_id","role_type"],Es),Br.setSession({userId:o.user_id,participantType:o.role_type}),Es.log("Call createAgentViewerEndpoint, pinCode:".concat(null==e?void 0:e.pinCode,", ").concat((new Date).valueOf())),t.next=5,this.authByPinCode(e).then((function(e){return Es.log("Call createAgentViewerEndpoint success, sessionId:".concat(i.sessionId)),{success:!0,agentViewerUrl:i.getAgentViewerUrl(e.current_user.auth_token)}}),(function(e){return Es.log("Call createAgentViewerEndpoint failed, error: ".concat(JSON.stringify(e),", ").concat((new Date).valueOf())),{success:!1,error:i.handleFetchError(e)}}));case 5:return r=t.sent,t.abrupt("return",Xa(r,n));case 7:case"end":return t.stop()}}),t,this)})))}},{key:"authByPinCode",value:function(e){return r(this,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,o,r,i,a,s=this;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.pinCode,o=e.sdkToken,r=pi(Kn.joinSession),i=r.expand({pinCode:t||""}),this.delTokenForRefresh(),a=new URL(i,$a()),n.abrupt("return",Qa(a,{authToken:o}).then((function(e){var n,t,o;return s.sessionId=e.session_id||"",s.pinCode=e.cobrowse_code||"",s.storeTokenForRefresh(null===(n=e.current_user)||void 0===n?void 0:n.auth_token),Br.setSession({sessionId:e.session_id,userId:null===(t=e.current_user)||void 0===t?void 0:t.user_id,participantType:null===(o=e.current_user)||void 0===o?void 0:o.role_type}),e})));case 6:case"end":return n.stop()}}),n,this)})))}},{key:"handleFetchError",value:function(e){var n,t,o=pa[e.code]||Oa[e.code],r=void 0!==(null==e?void 0:e.code)?new za(o,e.code,e.statusCode):(null==e?void 0:e.statusCode)===da.Unauthorized||(null==e?void 0:e.statusCode)===da.Forbidden?new za(Ra[e.statusCode],e.statusCode,e.statusCode):new za(fa[la.UNKNOWN_SERVICE_EXCEPTION],la.UNKNOWN_SERVICE_EXCEPTION,la.UNKNOWN_SERVICE_EXCEPTION),i={errorMsg:r.message,code:(t=r.code,(t?is.includes(t)?t:as.get(t)||void 0:ga.UNDEFINED)||ga.UNDEFINED),version:io()?null===(n=ao())||void 0===n?void 0:n.sdkVersion:window.ZMCoBrowsingConfig.sdkVersion};return Es.log("session error trigger, internalCode:".concat(r.code,", externalCode:").concat(i.code,", reason:").concat(i.errorMsg,", ").concat((new Date).valueOf())),this.emit(ns.SESSION_ERROR,i),ls(Ui.SESSION_ERROR,i),i}},{key:"getAgentViewerUrl",value:function(e){return uo()?"".concat($a()).concat(ds,"/").concat(co(),"?access_token=").concat(e):"".concat($a()).concat(ds,"?access_token=").concat(e)}},{key:"join",value:function(e){return r(this,void 0,void 0,_regeneratorRuntime().mark((function n(){var t,o=this;return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return Es.log("Call CommonAgentSession.join"),t=!e,n.abrupt("return",(t&&this.autoJoinSessionDetailsPromise?this.autoJoinSessionDetailsPromise.promise:this.authByPinCode(e)).then((function(e){var n;Es.log("Call CommonAgentSession.join success, sessionId:".concat(o.sessionId));var t=(e||{}).sdk_config||{},r=t.gateway_endpoint,i=t.enable_zcb_client_log;void 0!==i&&Es.setLaplaceEnabled(i),r&&!o.isNpmMode&&Es.setReportUrl(r);var a=document.createElement("iframe");return o.frameRoot.appendChild(a),null===(n=window.ZCB_NPM_SDK_AGENT_MAIN)||void 0===n||n.initAgentPortal(a,e),o.iframe=a,{success:!0}}),(function(e){return Es.log("Call CommonAgentSession.join failed, error: ".concat(JSON.stringify(e))),{success:!1,error:o.handleFetchError(e)}})));case 3:case"end":return n.stop()}}),n,this)})))}},{key:"getSessionInfo",value:function(){var e,n={sessionId:this.sessionId,pinCode:this.pinCode};return(null===(e=this.autoJoinSessionDetailsPromise)||void 0===e?void 0:e.resolved)&&(n.sessionStatus=ni.RECOVERABLE),n}},{key:"startRemoteAssist",value:function(){Es.log("Call CommonAgentSession.startRemoteAssist, sessionId:".concat(this.sessionId)),this.sessionEventInfo&&xa({event:xi.START_REMOTE_ASSIST},this.sessionEventInfo.source,this.sessionEventInfo.origin)}},{key:"stopRemoteAssist",value:function(){Es.log("Call CommonAgentSession.stopRemoteAssist, sessionId:".concat(this.sessionId)),this.sessionEventInfo&&xa({event:xi.STOP_REMOTE_ASSIST},this.sessionEventInfo.source,this.sessionEventInfo.origin)}},{key:"markAsDestroy",value:function(){this._destroyed=!0}},{key:"_destroy",value:function(){window.removeEventListener("message",this.messageListener),this.manager.deleteSession(this),this.iframe.parentNode&&this.iframe.parentNode.removeChild(this.iframe)}},{key:"isMessageBelongToSession",value:function(e){var n;return this.isNpmMode?e.source===(null===(n=this.iframe)||void 0===n?void 0:n.contentWindow):e.origin===$a()}},{key:"messageCallback",value:function(e){if(this.isMessageBelongToSession(e)){var n=e.data;if(n&&"object"===_typeof(n)&&n.event&&Vi.includes(n.event)){if(Es.log("agent trigger message event: ".concat(n.event)),n.event===Ui.SESSION_PRE_INIT){var t=o(this.options,["zoomAppRoot","zoomHostName","appKey"]),r=Uo.getZmTrackingId();return this.sessionEventInfo={source:e.source,origin:e.origin},void xa({event:xi.SEND_SESSION_OPTIONS,data:{options:t,info:{zmTrackingId:r}}},e.source,e.origin)}this.emit(n.event,n.data),ls(n.event,n.data),(n.event===Ui.SESSION_ENDED||n.event===Ui.SESSION_LEFT||n.event===Ui.SESSION_ERROR&&(i=n.code,![ga.SESSION_COUNT_LIMIT,ga.SESSION_REFRESH_PIN_FAILED].includes(i)))&&(this.sessionEventInfo=null,this.markAsDestroy())}}var i}},{key:"on",value:function(e,n){return _get(_getPrototypeOf(t.prototype),"on",this).call(this,e,n)}},{key:"emit",value:function(e,n){return _get(_getPrototypeOf(t.prototype),"emit",this).call(this,e,n)}}]),t}(ci),Rs=jr(["CoBrowsing AgentSDK","COMMON"]),Is=function(e,n){return r(void 0,void 0,void 0,_regeneratorRuntime().mark((function t(){var o,r,i;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=Uo.getZmTrackingId(),go({zmTrackingId:o}),Rs.log("session init, zmTrackingId:".concat(o)),console.log("zmTrackingId",o),r={success:!0,sdkInfo:{version:null==so?void 0:so()}},t.prev=5,i=fs.createSession(e),t.next=9,i.init();case 9:r.session=i,t.next=16;break;case 12:t.prev=12,t.t0=t.catch(5),r.success=!1,r.error=t.t0 instanceof Ka?t.t0.msg:oi.UNKNOWN;case 16:return t.abrupt("return",new Promise((function(e,t){null==n||n(r),r.success?e(r):t(r.error)})));case 17:case"end":return t.stop()}}),t,null,[[5,12]])})))};return(null===window||void 0===window?void 0:window.ZoomCobrowseAgentSDKInitArgs)&&(Is.apply(void 0,_toConsumableArray(window.ZoomCobrowseAgentSDKInitArgs)),delete window.ZoomCobrowseAgentSDKInitArgs),e.init=Is,Object.defineProperty(e,"__esModule",{value:!0}),e}({});\n//# sourceMappingURL=https://d1cdksi819e9z7.cloudfront.net/zcb/mkzbzyib/zcb-client-agent.js.map\n';export{e as default};
|