/* dd: 2023-03-30__09-21-46 */ !function(e){"use strict";self.cdApi={_eventListeners:{},onMessage:function(e){var t=cdApi._eventListeners[e.data.type];if(t)for(var n=0;n>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(1>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var n=arguments[1],o=0;o>>0;if(0==n)return!1;var t=0|t,o=Math.max(0<=t?t:n-Math.abs(t),0);for(;o=this._logLevel&&(r&&r.stack&&(e+=" ;stack: ".concat(r.stack)),this._logBridge.log(e,t))}}]),Logger}();function URLFieldsExtractor_defineProperties(e,t){for(var r=0;r>>16)*a&65535)<<16)&4294967295)<<15|n>>>17))*u+(((n>>>16)*u&65535)<<16)&4294967295)<<13|s>>>19))+((5*(s>>>16)&65535)<<16)&4294967295))+((58964+(r>>>16)&65535)<<16);switch(n=0,o){case 3:n^=(255&e.charCodeAt(c+2))<<16;break;case 2:n^=(255&e.charCodeAt(c+1))<<8;break;case 1:s^=n=(65535&(n=(n=(65535&(n^=255&e.charCodeAt(c)))*a+(((n>>>16)*a&65535)<<16)&4294967295)<<15|n>>>17))*u+(((n>>>16)*u&65535)<<16)&4294967295}return s^=e.length,s=2246822507*(65535&(s^=s>>>16))+((2246822507*(s>>>16)&65535)<<16)&4294967295,s=3266489909*(65535&(s^=s>>>13))+((3266489909*(s>>>16)&65535)<<16)&4294967295,(s^=s>>>16)>>>0}},{key:"generateUUID",value:function generateUUID(){var r=CDUtils.dateNow();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=(r+16*Math.random())%16|0;return r=Math.floor(r/16),("x"===e?t:3&t|8).toString(16)})}},{key:"convertToArrayByMap",value:function convertToArrayByMap(e,t){for(var r=[null],n=0,o=e.length;nr.exp?(this.removeFromLocalStorage(e),null):void 0===t||t?r.val:r:null}catch(e){return null}},saveToLocalStorage:function saveToLocalStorage(e,t,r){var n={val:t};r&&(n.exp=r,n.time=S.dateNow());try{window.localStorage.setItem(e,JSON.stringify(n))}catch(e){return null}return n},removeFromLocalStorage:function removeFromLocalStorage(e){try{window.localStorage.removeItem(e)}catch(e){return null}},setExpirationInLocalStorage:function setExpirationInLocalStorage(e,t){var r=this.getFromLocalStorage(e);return""===r||null===r?y:this.saveToLocalStorage(e,r,t)?_:g},getFromSessionStorage:function getFromSessionStorage(e){try{var t=this.deserialize(window.sessionStorage.getItem(e));return t?t:null}catch(e){return null}},saveToSessionStorage:function saveToSessionStorage(e,t){try{return t?(window.sessionStorage.setItem(e,JSON.stringify(t)),t):window.sessionStorage.removeItem(e)}catch(e){return null}},removeFromSessionStorage:function removeFromSessionStorage(e){try{window.sessionStorage.removeItem(e)}catch(e){return null}},getCookie:function getCookie(e){e=new RegExp("(?:^|; )"+encodeURIComponent(e)+"=([^;]*)").exec(document.cookie);return e?decodeURIComponent(e[1]):""},setCookie:function setCookie(e,t,r,n){var o,i="";r&&((o=new Date).setTime(o.getTime()+r),i="; expires="+o.toUTCString());for(var s=0,a=location.hostname,u=a.split("."),c="",l=!1;s<=u.length-1&&!l;)"localhost"===(a=u.slice(-1-++s).join("."))?c="":""!==a&&(c="; domain=."+a),l=this.setCookieWithAttributes(e,t,i,c,n);return l||(c="",l=this.setCookieWithAttributes(e,t,i,c,n)),l},setCookieWithAttributes:function setCookieWithAttributes(e,t,r,n,o){n=encodeURIComponent(e)+"="+encodeURIComponent(t)+r+n+"; path=/;";return document.cookie=o?n+" ".concat("SameSite=None;"," ").concat("Secure"):n,this.getCookie(e)===t},setExpirationInCookie:function setExpirationInCookie(e,t){var r=this.getCookie(e);return""===r||null===r?y:this.setCookie(e,r,t)?_:g},removeCookie:function removeCookie(e){try{document.cookie=e+"=; Max-Age=0"}catch(e){return null}},validateBcId:function validateBcId(e){return/^([0-9]{13,}-)?[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)?e:null}}),_defineProperty(S,"getNativeWindowFn",P),_defineProperty(S,"JQueryUtils",{isJQueryAvailable:function isJQueryAvailable(){return void 0!==window.jQuery},addEventListener:function addEventListener(e,t,r){jQuery(e).on(t,r)},removeEventListener:function removeEventListener(e,t,r){jQuery(e).off(t,r)}}),function dateNowFixer(){Date.now?P("Date.now",Date.now,function(e){S.dateNow=e}):S.dateNow=function now(){return(new Date).getTime()}}();var k=function(){function URLBuilder(){!function URLBuilder_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,URLBuilder)}return function URLBuilder_createClass(e,t,r){t&&URLBuilder_defineProperties(e.prototype,t),r&&URLBuilder_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1})}(URLBuilder,null,[{key:"build",value:function build(e,t){var r="/client/v3.1/web/wup";if(!e)throw new Error("Invalid server URL. Parameter is empty");return(S.hasProtocol(e)?"":"".concat("https","://")).concat(e).concat(r,"?cid=").concat(t)}},{key:"buildCustomServerUrl",value:function buildCustomServerUrl(e){if(!e)throw new Error("Invalid server URL. Parameter is empty");return S.hasProtocol(e)?e:"".concat("https","://").concat(e)}}]),URLBuilder}();function CDAPIException_typeof(e){return(CDAPIException_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})(e)}function CDAPIException_defineProperties(e,t){for(var r=0;rthis._aroundTouchInterval&&(w.debug("SensorsDataQueue: stopped post touch events, time has passed (".concat(this._aroundTouchInterval," millisec)")),this._isPostTouch=!1),!this._isMotionAroundTouchEnabled||this._isTouchInProgress||this._isPostTouch||this._sensorGateKeeper.isOpen())this._dataQueue.addToQueue(e,t,r,n);else{this._historyBuffer.push({name:e,data:t,addCtxId:r,isImmediateWup:n,timestamp:o});for(var i=0,s=this._historyBuffer.length;ithis._aroundTouchInterval))break;this._historyBuffer.shift()}}}},{key:"onConfigUpdate",value:function onConfigUpdate(){this._aroundTouchInterval=void 0!==this._configurationRepository.get(C.motionPaddingAroundTouchMSec)?this._configurationRepository.get(C.motionPaddingAroundTouchMSec):this._aroundTouchInterval,this._isMotionAroundTouchEnabled=void 0!==this._configurationRepository.get(C.isMotionAroundTouchEnabled)?this._configurationRepository.get(C.isMotionAroundTouchEnabled):this._isMotionAroundTouchEnabled}},{key:"_sendBuffer",value:function _sendBuffer(){var e=this._utils.dateNow();w.debug("sending history sensors buffer ts=".concat(e));for(var t=0,r=this._historyBuffer.length;tthis._maxElemValLength?"":this._utils.maskText(g.toString());var b=this._utils.isUndefinedNull(e.checked)?-1:e.checked?1:0,r=this.getEventTimestamp();this._dataQueue.addToQueue("elements",[this._contextMgr.contextId,t,d||"",c||a||"",l||u||"",e.type||"",n||0,o||0,i||0,s||0,f||"",h||"",p||"",e.alt||"",_||"",g||"",b,r,y||v,m],!1),w.isDebug()&&w.debug("adding element id:"+a+", name:"+u+", type:"+e.type+", width:"+i+", height:"+s+", left:"+n+", top:"+o+", hash: "+t)}},{key:"_verifyNoPrivateData",value:function _verifyNoPrivateData(e){return/\d\d\d/.test(e)?this._utils.clearTextFromNumbers(e):e}},{key:"updateFeatureConfig",value:function updateFeatureConfig(){this._collectPosition="boolean"==typeof this._configurationRepository.get("isElementsPosition")?this._configurationRepository.get("isElementsPosition"):this._collectPosition,this._collectClassName="boolean"==typeof this._configurationRepository.get("isElementsClassName")?this._configurationRepository.get("isElementsClassName"):this._collectClassName,this._collectTitle="boolean"==typeof this._configurationRepository.get("isElementsTitle")?this._configurationRepository.get("isElementsTitle"):this._collectTitle,this._collectHref="boolean"==typeof this._configurationRepository.get("isElementsHref")?this._configurationRepository.get("isElementsHref"):this._collectHref,this._collectCustomElementAttribute="boolean"==typeof this._configurationRepository.get(C.collectCustomElementAttribute)?this._configurationRepository.get(C.collectCustomElementAttribute):this._collectCustomElementAttribute,this._customElementAttribute="string"==typeof this._configurationRepository.get(C.customElementAttribute)?this._configurationRepository.get(C.customElementAttribute):this._customElementAttribute,this._maxElemValLength=this._configurationRepository.get("maxElValLen")?this._configurationRepository.get("maxElValLen"):this._maxElemValLength,this._allowedUnmaskedValuesList=this._configurationRepository.get("allowedUnmaskedValuesList")?this._configurationRepository.get("allowedUnmaskedValuesList"):this._allowedUnmaskedValuesList,this._enableUnmaskedValues=this._configurationRepository.get("enableUnmaskedValues")?this._configurationRepository.get("enableUnmaskedValues"):this._enableUnmaskedValues}}]),ElementsCollector}(),De={rtcframe:"cd__rtcframe",fontDetectionFrame:"cd__fontDetectionFrame",ignorePrefixFrame:"cd__frame__"};function FramesDetector_defineProperties(e,t){for(var r=0;rthis._configurationRepository.get(C.resetSessionApiThreshold)?(this._startNewSession(),this._configurationService.updateLogUrlToWorker(this.sessionId,this._csidCache.get(),this._workerComm),this.lastExternalResetCallTime=this._utils.dateNow()):w.info("Ignoring external reset session call since resetSessionApiThreshold hasn't passed")}},{key:"_startNewSession",value:function _startNewSession(){w.info("Starting a new session. Previous session was ".concat(this.sessionId)),this.sessionId=null,this._csidCache.set(null),this._psidCache.set(null),this._serverStateMgr.onSessionIdChange(),this._onStartedNewSession()}},{key:"_resumeSession",value:function _resumeSession(e){w.info("Resuming an existing session with sid ".concat(e)),this.sessionId=e,this._saveSidToStorage(this.sessionId),this._handleBrandResume(),this._onResumedSession(),this._handleCsid()}},{key:"_getSessionId",value:function _getSessionId(){w.info("Attempting to get sid from storage");var e=this._sidRepository.get();return e&&w.info("Read sid ".concat(e," from storage")),e}},{key:"_saveSidToStorage",value:function _saveSidToStorage(e){w.info("Saving sid ".concat(e," to storage")),this._sidRepository.set(e)}},{key:"_onStartedNewSession",value:function _onStartedNewSession(){var e;this._configurationRepository.get("serverAddress")&&(e={serverAddress:this._configurationRepository.get("serverAddress"),csid:this._csidCache.get(),psid:this._psidCache.get(),muid:this._muidService.muid,context_name:this._contextMgr.contextName},this._workerComm.sendAsync(I,e),this._configurationService.updateLogUrlToWorker(this.sessionId,this._csidCache.get(),this._workerComm))}},{key:"_onResumedSession",value:function _onResumedSession(){var e;this._configurationRepository.get("serverAddress")&&(e=this._serverStateMgr.getServerState(this.sessionId),e={serverAddress:this._configurationRepository.get("serverAddress"),csid:this._csidCache.get(),psid:this._psidCache.get(),cdsnum:this.sessionId,muid:this._muidService.muid,context_name:this._contextMgr.contextName,serverState:e},this._workerComm.sendAsync(x,e),this._configurationService.updateLogUrlToWorker(this.sessionId,this._csidCache.get(),this._workerComm))}},{key:"_handleCsid",value:function _handleCsid(){var e=this;this._domUtils.onDocumentBody(self,function(){w.debug("SessionService:_sessionIdRegeneration, onDocumentBody callback: cdSNum: ".concat(e.sessionId)),e._csidService.get(function(){w.info("Received csid from client. csid: ".concat(e._csidCache.get(),", sid:").concat(e.sessionId)),e._sendCsidToServer()})})}},{key:"_sendCsidToServer",value:function _sendCsidToServer(){this._configurationRepository.get("serverAddress")&&(w.info("Sending csid to worker. csid: ".concat(this._csidCache.get(),", sid:").concat(this.sessionId)),this._workerComm.sendAsync(j,{csid:this._csidCache.get()}),this._configurationService.updateLogUrlToWorker(this.sessionId,this._csidCache.get(),this._workerComm))}},{key:"_handleBrandResume",value:function _handleBrandResume(){this._brandService.update()}},{key:"_onSiteMapperMatch",value:function _onSiteMapperMatch(){this.onResetSession({resetReason:at.configuration})}},{key:"_onNewSessionStartedEvent",value:function _onNewSessionStartedEvent(e){this.sessionId=e,this._saveSidToStorage(this.sessionId),this._configurationService.updateLogUrlToWorker(this.sessionId,this._csidCache.get(),this._workerComm),this._notifyNewSessionStarted(),this._handleCsid(),w.info("A new session ".concat(e," has started"))}},{key:"_notifyNewSessionStarted",value:function _notifyNewSessionStarted(){this._messageBus.publish(pe.NewSessionStartedEvent,this.sessionId)}}]),SessionService}();function MetadataService_defineProperties(e,t){for(var r=0;r","<","~",'"',"±","§"]),this.kanjiNumbers=Y(["〇","零","一","二","三","四","五","六","七","八","九","十","百","千","万"]),this.chineseCapitalNumbers=Y(["零","壹","貳","贰","參","叁","肆","伍","陸","陆","柒","捌","玖","拾","佰","仟","萬"]),this.suzhouNumbers=Y(["〇","〡","〢","〣","〤","〥","〦","〧","〨","〩","〸","〹","〺"]),this.maskedCodeMapping={original:function original(e,t,r){return{code:e,charCode:t,key:r}},numpadKey:function numpadKey(e){return{code:"Numpad",charCode:96,key:e}},letter:function letter(){return{code:"Key",charCode:65,key:"A"}},digit:function digit(){return{code:"Digit",charCode:49,key:"1"}},specialChar:function specialChar(){return{code:"SpecialChar",charCode:42,key:"*"}},other:function other(){return{code:"Other",charCode:66,key:"B"}}}}return function MaskingService_createClass(e,t,r){t&&MaskingService_defineProperties(e.prototype,t),r&&MaskingService_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1})}(MaskingService,[{key:"maskKey",value:function maskKey(e,t){if(Vt[e]){var r=Vt[e];return this.maskedCodeMapping.original(t,r,e)}return this._isANumberOrDigit(e)?t.includes("Numpad")?this.maskedCodeMapping.numpadKey("1"):this.maskedCodeMapping.digit():this._isALetter(e)?this.maskedCodeMapping.letter():!this._configurationRepository.get(C.keyEventsMaskSpecialChars)&&this.specailConfigurationChars.has(e)?this.maskedCodeMapping.original(t,e.charCodeAt(0),e):this.specailChars.has(e)||this.specailConfigurationChars.has(e)?t.includes("Numpad")?this.maskedCodeMapping.numpadKey("*"):this.maskedCodeMapping.specialChar():this.maskedCodeMapping.other()}},{key:"getKeyFromLegacyProperties",value:function getKeyFromLegacyProperties(e){e=e.keyCode||e.which;return 0===e||void 0===e?"":String.fromCharCode(e)}},{key:"_isALetter",value:function _isALetter(e){return/^[a-zA-Z]$/.test(e)||this._isJapaneseOrChineseLetter(e)||this._isHebrewLetter(e)}},{key:"_isANumberOrDigit",value:function _isANumberOrDigit(e){return/[0-9]/.test(e)||this.kanjiNumbers.has(e)||this.chineseCapitalNumbers.has(e)||this.suzhouNumbers.has(e)}},{key:"_isJapaneseOrChineseLetter",value:function _isJapaneseOrChineseLetter(e){return this._isCJKUnifiedIdeographs(e)||this._isCJKUnifiedIdeographsExtenA(e)||this._isCJKUnifiedIdeographsExtenB(e)||this._isSmallKatakanaLetter(e)}},{key:"_isCJKUnifiedIdeographsExtenB",value:function _isCJKUnifiedIdeographsExtenB(e){return/[\u3041-\u309F]/.test(e)}},{key:"_isSmallKatakanaLetter",value:function _isSmallKatakanaLetter(e){return/[\u30A1-\u30FF]/.test(e)}},{key:"_isCJKUnifiedIdeographsExtenA",value:function _isCJKUnifiedIdeographsExtenA(e){return/[\u3400-\u4DB5]/.test(e)}},{key:"_isCJKUnifiedIdeographs",value:function _isCJKUnifiedIdeographs(e){return/[\u4E00-\u9FCC]/.test(e)}},{key:"_isHebrewLetter",value:function _isHebrewLetter(e){return/[\u05D0-\u05EA]/.test(e)}},{key:"maskText",value:function maskText(e){if(S.isUndefinedNull(e))return"";e=e.replace(/[\d]/g,"1").replace(/[\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D\u5341\u767E\u5343\u4E07]/g,"1").replace(/[\u96F6\u58F9\u8CB3\u8D30\u53C3\u53C1\u8086\u4F0D\u9678\u9646\u67D2\u634C\u7396\u62FE\u4F70\u4EDF\u842C\u3021-\u3029\u3038\u3039\u303A]/g,"1").replace(/[a-zA-Z]/g,"a").replace(/[\u05D0-\u05EA]/g,"a").replace(/[\u4E00-\u9FCC\u3400-\u4DB5\u3041-\u309F\u30A1-\u30FF]/g,"a").replace(/[\\_!%^&*#()={}\[\]’|/?><~"±§`'׳]/g,"*");return this._configurationRepository.get(C.keyEventsMaskSpecialChars)?e.replace(/[,.@;:+$ -]/g,"*").replace(/[^a1*]/g,"B"):e.replace(/[^a1*,.@;:+$ -]/g,"B")}},{key:"_maskArrayValues",value:function _maskArrayValues(e){var t=this;if(!Array.isArray(e))return this._configurationRepository.set(C.maskElementsAttributes,[]),w.warn("collectionSetting- Invalid array of attributes to mask"),!1;var r={};return e.forEach(function(e){r[e]=t.maskText(e)}),r}}]),MaskingService}();function LogAggregator_defineProperties(e,t){for(var r=0;r=this._logLevel)&&this._Q.push(e)}},{key:"take",value:function take(){var e=this._Q;return this.reset(),e}},{key:"reset",value:function reset(){this._Q=[],this.setLogLevel(u.INFO)}},{key:"isEmpty",value:function isEmpty(){return 0===this._Q.length}},{key:"filterOutByLogLevel",value:function filterOutByLogLevel(n){this._Q=this._Q.filter(function(e,t,r){return e.level>=n})}}]),LogAggregator}();function LogBridge_defineProperties(e,t){for(var r=0;r=t})}}]),LogDataQ}();function StorageUtilsWrapper_defineProperties(e,t){for(var r=0;rthis._maxElemValLength&&(t.elementValues="");e=(this._isHashedValue?e.target.value||e.target.innerHTML:"")?this._utils.getTruncatedHash(e.target.value,this._hashTruncationLength):"",o=_objectSpread(_objectSpread({},t),{eventType:i,eventSequence:a,timestamp:n,elementHash:s,isTrusted:r,hashedValue:e,relativeTime:o});this._dataQ.addToQueue("element_events",this._utils.convertToArrayByMap(sr,o),!0)}}],[{key:"getDefaultSettings",value:function getDefaultSettings(){return or}},{key:"Builder",get:function get(){return function(){function Builder(e,t,r,n,o){ElementEventCollector_classCallCheck(this,Builder),this.configurationRepository=e,this.utils=t,this.domUtils=r,this.elements=n,this.dataQ=o}return ElementEventCollector_createClass(Builder,[{key:"withMessageBus",value:function withMessageBus(e){return this.messageBus=e,this}},{key:"withMutationEmitter",value:function withMutationEmitter(e){return this.mutationEmitter=e,this}},{key:"withjQueryElementListenerSiteMapper",value:function withjQueryElementListenerSiteMapper(e){return this.jQueryElementListenerSiteMapper=e,this}},{key:"withjQueryElementsHandler",value:function withjQueryElementsHandler(e){return this.JqueryElementsHandler=e,this}},{key:"withInputEvents",value:function withInputEvents(e,t,r){return this.InputEvents=e,this.inputSelectors=t,this.maskingService=r,this}},{key:"withStandardInputEventsEmitter",value:function withStandardInputEventsEmitter(e){return this.StandardInputEventsEmitter=e,this}},{key:"withSyntheticMaskInputEventsHandler",value:function withSyntheticMaskInputEventsHandler(e){return this.SyntheticMaskInputEventsHandler=e,this}},{key:"withSyntheticAutotabInputEventsHandler",value:function withSyntheticAutotabInputEventsHandler(e){return this.SyntheticAutotabInputEventsHandler=e,this}},{key:"withClickEvents",value:function withClickEvents(e,t){return this.ClickEvents=e,this.onClickSelectors=t,this}},{key:"withStandardOnClickEventsEmitter",value:function withStandardOnClickEventsEmitter(e){return this.StandardOnClickEventsEmitter=e,this}},{key:"withSelectElementEvents",value:function withSelectElementEvents(e,t){return this.SelectElementEvents=e,this.onSelectSelectors=t,this}},{key:"withStandardOnChangeEventsEmitter",value:function withStandardOnChangeEventsEmitter(e){return this.StandardOnChangeEventsEmitter=e,this}},{key:"withElementFocusEventsEmitter",value:function withElementFocusEventsEmitter(e){return this.ElementFocusEventsEmitter=e,this}},{key:"withElementBlurEventsEmitter",value:function withElementBlurEventsEmitter(e){return this.ElementBlurEventsEmitter=e,this}},{key:"withFormEvents",value:function withFormEvents(e,t){return this.FormEvents=e,this.onFormSelectors=t,this}},{key:"withStandardOnFormEventsEmitter",value:function withStandardOnFormEventsEmitter(e){return this.StandardOnFormEventsEmitter=e,this}},{key:"build",value:function build(){return new ElementEventCollector(this)}}]),Builder}()}}]),ElementEventCollector}();function ClipboardEventCollector_typeof(e){return(ClipboardEventCollector_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})(e)}function ClipboardEventCollector_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ClipboardEventCollector_defineProperties(e,t){for(var r=0;rs._samplePeriod&&(t=e.absolute||!1,r=s._utils.isUndefinedNull(e.alpha)?0:s._utils.cutDecimalPointDigits(e.alpha,4),n=s._utils.isUndefinedNull(e.beta)?0:s._utils.cutDecimalPointDigits(e.beta,4),o=s._utils.isUndefinedNull(e.gamma)?0:s._utils.cutDecimalPointDigits(e.gamma,4),r===s._lastAlpha&&n===s._lastBeta&&o===s._lastGamma||(w.isDebug()&&w.debug("OrientationEvents:_onOrientationEvent, sending data: timestamp: ".concat(i,"\n alpha,betta,gamma: ").concat(r,",").concat(n,",").concat(o,",prevTime:").concat(s._lastTime)),s._lastTime=i,s._lastAlpha=r,s._lastBeta=n,s._lastGamma=o,e=s._utils.StorageUtils.getAndUpdateEventSequenceNumber(),s._dataQ.addToQueue("orientation_events",[null,e,i,t,r,n,o])))}),s._dataQ=r,s._configurationRepository=e,s._utils=t,s._samplePeriod=s._configurationRepository.get(C.orientationEventsSamplePeriod)||0,s._lastAlpha=0,s._lastBeta=0,s._lastGamma=0,s._lastTime=0,s._messageBus=n,s._deviceOrientationEventEmitter=o,s}return function OrientationEventCollector_createClass(e,t,r){t&&OrientationEventCollector_defineProperties(e.prototype,t),r&&OrientationEventCollector_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1})}(OrientationEventCollector,[{key:"startFeature",value:function startFeature(){window.DeviceOrientationEvent&&(this._deviceOrientationEventEmitter.start(),this._messageBus.subscribe(pe.DeviceOrientationEvent,this._handleDeviceOrientationEvent))}},{key:"stopFeature",value:function stopFeature(){window.DeviceOrientationEvent&&(this._deviceOrientationEventEmitter.stop(),this._messageBus.unsubscribe(pe.DeviceOrientationEvent,this._handleDeviceOrientationEvent))}},{key:"updateFeatureConfig",value:function updateFeatureConfig(){var e=this._configurationRepository.get(C.orientationEventsSamplePeriod);this._samplePeriod=void 0!==e?e:this._samplePeriod}}],[{key:"getDefaultSettings",value:function getDefaultSettings(){return pr}}]),OrientationEventCollector}();function BeforeInstallPromptEventCollector_typeof(e){return(BeforeInstallPromptEventCollector_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})(e)}function BeforeInstallPromptEventCollector_defineProperties(e,t){for(var r=0;rthis._samplePeriod&&(n=e.accelerationIncludingGravity.x,o=e.accelerationIncludingGravity.y,t=e.accelerationIncludingGravity.z,this._utils.isUndefinedNull(n)&&this._utils.isUndefinedNull(o)&&this._utils.isUndefinedNull(t)||(n=this._utils.isUndefinedNull(n)?-1:this._utils.cutDecimalPointDigits(n,4),o=this._utils.isUndefinedNull(o)?-1:this._utils.cutDecimalPointDigits(o,4),t=this._utils.isUndefinedNull(t)?-1:this._utils.cutDecimalPointDigits(t,4),n===this._lastX&&o===this._lastY&&t===this._lastZ||(r=this._storageUtils.getAndUpdateEventSequenceNumber(),this._lastTime=i,this._lastX=n,this._lastY=o,this._lastZ=t,this._dataQueue.addToQueue("accelerometer_events",[null,r,i,n,o,t]),w.isDebug()&&w.debug("AccelerometerEvents:_onAccelerometerEvent, sending data: timestamp:".concat(i," x,y,z:").concat(n,",").concat(o,",").concat(t,", prevTime:").concat(this._lastTime))))),e&&e.rotationRate&&i-this._lastTimeGyro>this._samplePeriodGyro&&(r=e.rotationRate.alpha,n=e.rotationRate.beta,o=e.rotationRate.gamma,this._utils.isUndefinedNull(r)&&this._utils.isUndefinedNull(n)&&this._utils.isUndefinedNull(o)||(t=e.absolute||!1,r=this._utils.isUndefinedNull(r)?0:this._utils.cutDecimalPointDigits(r,4),n=this._utils.isUndefinedNull(n)?0:this._utils.cutDecimalPointDigits(n,4),o=this._utils.isUndefinedNull(o)?0:this._utils.cutDecimalPointDigits(o,4),r===this._lastAlpha&&n===this._lastBeta&&o===this._lastGamma||(this._lastTimeGyro=i,this._lastAlpha=r,this._lastBeta=n,this._lastGamma=o,e=this._utils.StorageUtils.getAndUpdateEventSequenceNumber(),this._dataQueue.addToQueue("gyro_events",[null,e,i,t,r,n,o]),w.isDebug()&&w.debug("GyroEvents:_onGyroEvent, sending data: timestamp:".concat(i," alpha,betta,gamma:").concat(r,",").concat(n,",").concat(o,", prevTime: ").concat(this._lastTimeGyro))))),!0}},{key:"startFeature",value:function startFeature(){window.DeviceMotionEvent&&this._utils.addEventListener(window,"devicemotion",this._onAccelerometerventFunc)}},{key:"stopFeature",value:function stopFeature(){window.DeviceMotionEvent&&this._utils.removeEventListener(window,"devicemotion",this._onAccelerometerventFunc)}},{key:"updateFeatureConfig",value:function updateFeatureConfig(){this._samplePeriod=void 0!==this._configurationRepository.get(C.accelerometerEventsSamplePeriod)?this._configurationRepository.get(C.accelerometerEventsSamplePeriod):this._samplePeriod,this._samplePeriodGyro=void 0!==this._configurationRepository.get(C.gyroEventsSamplePeriod)?this._configurationRepository.get(C.gyroEventsSamplePeriod):this._samplePeriodGyro}}],[{key:"getDefaultSettings",value:function getDefaultSettings(){return Cr}}]),AccelerometerEventCollector}();function PinchZoomEventCollector_typeof(e){return(PinchZoomEventCollector_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})(e)}function PinchZoomEventCollector_defineProperties(e,t){for(var r=0;rthis._eventThreshold&&(e=this._utils.StorageUtils.getAndUpdateEventSequenceNumber(),this._lastTime=t,this._dataQueue.addToQueue("ambient_light_level",this._utils.convertToArrayByMap(on,{eventSequence:e,timestamp:t,illuminance:this._sensor.illuminance})))}},{key:"startFeature",value:function startFeature(){window.AmbientLightSensor?(w.info("AmbientLightSensor exists and collected"),this._sensor=new AmbientLightSensor,this._utils.addEventListener(this._sensor,"reading",this._onReadingSensor.bind(this)),this._utils.addEventListener(this._sensor,"error",LightSensorEvents._onSensorError),this._sensor.start()):w.debug("LightSensor does not exist, not collecting")}},{key:"stopFeature",value:function stopFeature(){this._sensor&&(this._utils.removeEventListener(this._sensor,"reading",this._onReadingSensor.bind(this)),this._utils.removeEventListener(this._sensor,"error",LightSensorEvents._onSensorError),this._sensor=null)}},{key:"updateFeatureConfig",value:function updateFeatureConfig(){this._eventThreshold=this._configurationRepository.get("lightSensorEventThreshold")?this._configurationRepository.get("lightSensorEventThreshold"):this._eventThreshold}}],[{key:"getDefaultSettings",value:function getDefaultSettings(){return rn}},{key:"_onSensorError",value:function _onSensorError(e){w.debug("Error connecting LightSensor ".concat(e.error))}}]),LightSensorEvents}();function MouseEventCollector_typeof(e){return(MouseEventCollector_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})(e)}function MouseEventCollector_defineProperties(e,t){for(var r=0;r=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},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 a,u=!0,c=!1;return{s:function s(){o=o.call(t)},n:function n(){var e=o.next();return u=e.done,e},e:function e(t){c=!0,a=t},f:function f(){try{u||null==o.return||o.return()}finally{if(c)throw a}}}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},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 a,u=!0,c=!1;return{s:function s(){o=o.call(t)},n:function n(){var e=o.next();return u=e.done,e},e:function e(t){c=!0,a=t},f:function f(){try{u||null==o.return||o.return()}finally{if(c)throw a}}}}function LanguagesListBrowserPropsContract_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},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 a,u=!0,c=!1;return{s:function s(){o=o.call(t)},n:function n(){var e=o.next();return u=e.done,e},e:function e(t){c=!0,a=t},f:function f(){try{u||null==o.return||o.return()}finally{if(c)throw a}}}}function MediaDevicesContract_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},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 a,u=!0,c=!1;return{s:function s(){o=o.call(t)},n:function n(){var e=o.next();return u=e.done,e},e:function e(t){c=!0,a=t},f:function f(){try{u||null==o.return||o.return()}finally{if(c)throw a}}}}function ProblematicFontsDetectionContract_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=this._chunkSize)for(var l=i=0;l>>10),56320+(1023&o))):a+=String.fromCharCode(o));return a},r.write=function n(e,t){for(var r=this,i=t||(t|=0),s=e.length,a=0,o=0;o>>6:(a<55296||57343>>12:(a=65536+(a-55296<<10|e.charCodeAt(o++)-56320),r[i++]=240|a>>>18,r[i++]=128|a>>>12&63),r[i++]=128|a>>>6&63),r[i++]=128|63&a);return i-t}},{}],4:[function(e,t,r){function n(e){return new Array(e)}var s=e("./bufferish");(r=t.exports=n(0)).alloc=n,r.concat=s.concat,r.from=function i(e){if(!s.isBuffer(e)&&s.isView(e))e=s.Uint8Array.from(e);else if(s.isArrayBuffer(e))e=new Uint8Array(e);else{if("string"==typeof e)return s.from.call(r,e);if("number"==typeof e)throw new TypeError(\'"value" argument must not be a number\')}return Array.prototype.slice.call(e)}},{"./bufferish":8}],5:[function(e,t,r){function n(e){return new a(e)}var s=e("./bufferish"),a=s.global;(r=t.exports=s.hasBuffer?n(0):[]).alloc=s.hasBuffer&&a.alloc||n,r.concat=s.concat,r.from=function i(e){if(!s.isBuffer(e)&&s.isView(e))e=s.Uint8Array.from(e);else if(s.isArrayBuffer(e))e=new Uint8Array(e);else{if("string"==typeof e)return s.from.call(r,e);if("number"==typeof e)throw new TypeError(\'"value" argument must not be a number\')}return a.from&&1!==a.from.length?a.from(e):new a(e)}},{"./bufferish":8}],6:[function(e,t,s){function n(e,t,r,n){var s=l.isBuffer(this),a=l.isBuffer(e);if(s&&a)return this.copy(e,t,r,n);if(c||s||a||!l.isView(this)||!l.isView(e))return u.copy.call(this,e,t,r,n);n=r||null!=n?i.call(this,r,n):this;return e.set(n,t),n.length}function i(e,t){var r=this.slice||!c&&this.subarray;if(r)return r.call(this,e,t);r=l.alloc.call(this,t-e);return n.call(this,r,0,e,t),r}var u=e("./buffer-lite");s.copy=n,s.slice=i,s.toString=function o(e,t,r){return(!a&&l.isBuffer(this)?this:u).toString.apply(this,arguments)},s.write=function f(e){return function r(){return(this[e]||u[e]).apply(this,arguments)}}("write");var l=e("./bufferish"),e=l.global,a=l.hasBuffer&&"TYPED_ARRAY_SUPPORT"in e,c=a&&!e.TYPED_ARRAY_SUPPORT},{"./buffer-lite":3,"./bufferish":8}],7:[function(e,t,s){function n(e){return new Uint8Array(e)}var a=e("./bufferish");(s=t.exports=a.hasArrayBuffer?n(0):[]).alloc=n,s.concat=a.concat,s.from=function i(e){if(a.isView(e)){var t=e.byteOffset,r=e.byteLength;(e=e.buffer).byteLength!==r&&(e.slice?e=e.slice(t,t+r):(e=new Uint8Array(e)).byteLength!==r&&(e=Array.prototype.slice.call(e,t,t+r)))}else{if("string"==typeof e)return a.from.call(s,e);if("number"==typeof e)throw new TypeError(\'"value" argument must not be a number\')}return new Uint8Array(e)}},{"./bufferish":8}],8:[function(e,t,l){function i(e){return a(this).alloc(e)}function a(e){return g(e)?m:_(e)?y:p(e)?v:h?m:d?y:v}function s(){return!1}function c(t,r){return t="[object "+t+"]",function(e){return null!=e&&{}.toString.call(r?e[r]:e)===t}}var r=l.global=e("./buffer-global"),h=l.hasBuffer=r&&!!r.isBuffer,d=l.hasArrayBuffer="undefined"!=typeof ArrayBuffer,p=l.isArray=e("isarray");l.isArrayBuffer=d?function f(e){return e instanceof ArrayBuffer||b(e)}:s;var g=l.isBuffer=h?r.isBuffer:s,_=l.isView=d?ArrayBuffer.isView||c("ArrayBuffer","buffer"):s;l.alloc=i,l.concat=function o(e,t){t||(t=0,Array.prototype.forEach.call(e,function n(e){t+=e.length}));var r=this!==l&&this||e[0],s=i.call(r,t),a=0;return Array.prototype.forEach.call(e,function o(e){a+=w.copy.call(e,s,a)}),s},l.from=function n(e){return"string"==typeof e?function u(e){var t=3*e.length,r=i.call(this,t),e=w.write.call(r,e);return t!==e&&(r=w.slice.call(r,0,e)),r}.call(this,e):a(this).from(e)};var v=l.Array=e("./bufferish-array"),m=l.Buffer=e("./bufferish-buffer"),y=l.Uint8Array=e("./bufferish-uint8array"),w=l.prototype=e("./bufferish-proto"),b=c("ArrayBuffer")},{"./buffer-global":2,"./bufferish-array":4,"./bufferish-buffer":5,"./bufferish-proto":6,"./bufferish-uint8array":7,isarray:34}],9:[function(e,t,r){function n(e){return this instanceof n?(this.options=e,void this.init()):new n(e)}function a(e){return new n(e)}var s=e("isarray");r.createCodec=a,r.install=function i(e){for(var t in e)n.prototype[t]=function o(t,r){return t&&r?function e(){return t.apply(this,arguments),r.apply(this,arguments)}:t||r}(n.prototype[t],e[t])},r.filter=function u(e){return s(e)?function f(t){function r(e,t){return t(e)}return t=t.slice(),function(e){return t.reduce(r,e)}}(e):e};var o=e("./bufferish");n.prototype.init=function(){var e=this.options;return e&&e.uint8array&&(this.bufferish=o.Uint8Array),this},r.preset=a({preset:!0})},{"./bufferish":8,isarray:34}],10:[function(e,t,r){e("./read-core"),e("./write-core"),r.codec={preset:e("./codec-base").preset}},{"./codec-base":9,"./read-core":22,"./write-core":25}],11:[function(e,t,r){function n(e){if(!(this instanceof n))return new n(e);e&&(this.options=e).codec&&((e=this.codec=e.codec).bufferish&&(this.bufferish=e.bufferish))}r.DecodeBuffer=n;r=e("./read-core").preset;e("./flex-buffer").FlexDecoder.mixin(n.prototype),n.prototype.codec=r,n.prototype.fetch=function(){return this.codec.decode(this)}},{"./flex-buffer":21,"./read-core":22}],12:[function(e,t,r){r.decode=function n(e,t){return(t=new i(t)).write(e),t.read()};var i=e("./decode-buffer").DecodeBuffer},{"./decode-buffer":11}],13:[function(e,t,r){function n(e){return this instanceof n?void i.call(this,e):new n(e)}r.Decoder=n;var r=e("event-lite"),i=e("./decode-buffer").DecodeBuffer;n.prototype=new i,r.mixin(n.prototype),n.prototype.decode=function(e){arguments.length&&this.write(e),this.flush()},n.prototype.push=function(e){this.emit("data",e)},n.prototype.end=function(e){this.decode(e),this.emit("end")}},{"./decode-buffer":11,"event-lite":31}],14:[function(e,t,r){function n(e){if(!(this instanceof n))return new n(e);e&&(this.options=e).codec&&((e=this.codec=e.codec).bufferish&&(this.bufferish=e.bufferish))}r.EncodeBuffer=n;r=e("./write-core").preset;e("./flex-buffer").FlexEncoder.mixin(n.prototype),n.prototype.codec=r,n.prototype.write=function(e){this.codec.encode(this,e)}},{"./flex-buffer":21,"./write-core":25}],15:[function(e,t,r){r.encode=function n(e,t){return(t=new i(t)).write(e),t.read()};var i=e("./encode-buffer").EncodeBuffer},{"./encode-buffer":14}],16:[function(e,t,r){function n(e){return this instanceof n?void i.call(this,e):new n(e)}r.Encoder=n;var r=e("event-lite"),i=e("./encode-buffer").EncodeBuffer;n.prototype=new i,r.mixin(n.prototype),n.prototype.encode=function(e){this.write(e),this.emit("data",this.read())},n.prototype.end=function(e){arguments.length&&this.encode(e),this.flush(),this.emit("end")}},{"./encode-buffer":14,"event-lite":31}],17:[function(e,t,r){r.ExtBuffer=function n(e,t){return this instanceof n?(this.buffer=i.from(e),void(this.type=t)):new n(e,t)};var i=e("./bufferish")},{"./bufferish":8}],18:[function(t,e,r){function i(e){return(s=s||t("./encode").encode)(e)}function o(e){return e.valueOf()}function f(e){(e=RegExp.prototype.toString.call(e).split("/")).shift();var t=[e.pop()];return t.unshift(e.join("/")),t}function u(e){var t,r={};for(t in h)r[t]=e[t];return r}r.setExtPackers=function n(e){e.addExtPacker(14,Error,[u,i]),e.addExtPacker(1,EvalError,[u,i]),e.addExtPacker(2,RangeError,[u,i]),e.addExtPacker(3,ReferenceError,[u,i]),e.addExtPacker(4,SyntaxError,[u,i]),e.addExtPacker(5,TypeError,[u,i]),e.addExtPacker(6,URIError,[u,i]),e.addExtPacker(10,RegExp,[f,i]),e.addExtPacker(11,Boolean,[o,i]),e.addExtPacker(12,String,[o,i]),e.addExtPacker(13,Date,[Number,i]),e.addExtPacker(15,Number,[o,i]),"undefined"!=typeof Uint8Array&&(e.addExtPacker(17,Int8Array,c),e.addExtPacker(18,Uint8Array,c),e.addExtPacker(19,Int16Array,c),e.addExtPacker(20,Uint16Array,c),e.addExtPacker(21,Int32Array,c),e.addExtPacker(22,Uint32Array,c),e.addExtPacker(23,Float32Array,c),"undefined"!=typeof Float64Array&&e.addExtPacker(24,Float64Array,c),"undefined"!=typeof Uint8ClampedArray&&e.addExtPacker(25,Uint8ClampedArray,c),e.addExtPacker(26,ArrayBuffer,c),e.addExtPacker(29,DataView,c)),a.hasBuffer&&e.addExtPacker(27,l,a.from)};var s,a=t("./bufferish"),l=a.global,c=a.Uint8Array.from,h={name:1,message:1,stack:1,columnNumber:1,fileName:1,lineNumber:1}},{"./bufferish":8,"./encode":15}],19:[function(t,e,r){function i(e){return(s=s||t("./decode").decode)(e)}function o(e){return RegExp.apply(null,e)}function f(n){return function(e){var t,r=new n;for(t in h)r[t]=e[t];return r}}function u(t){return function(e){return new t(e)}}function a(e){return new Uint8Array(e).buffer}r.setExtUnpackers=function n(e){e.addExtUnpacker(14,[i,f(Error)]),e.addExtUnpacker(1,[i,f(EvalError)]),e.addExtUnpacker(2,[i,f(RangeError)]),e.addExtUnpacker(3,[i,f(ReferenceError)]),e.addExtUnpacker(4,[i,f(SyntaxError)]),e.addExtUnpacker(5,[i,f(TypeError)]),e.addExtUnpacker(6,[i,f(URIError)]),e.addExtUnpacker(10,[i,o]),e.addExtUnpacker(11,[i,u(Boolean)]),e.addExtUnpacker(12,[i,u(String)]),e.addExtUnpacker(13,[i,u(Date)]),e.addExtUnpacker(15,[i,u(Number)]),"undefined"!=typeof Uint8Array&&(e.addExtUnpacker(17,u(Int8Array)),e.addExtUnpacker(18,u(Uint8Array)),e.addExtUnpacker(19,[a,u(Int16Array)]),e.addExtUnpacker(20,[a,u(Uint16Array)]),e.addExtUnpacker(21,[a,u(Int32Array)]),e.addExtUnpacker(22,[a,u(Uint32Array)]),e.addExtUnpacker(23,[a,u(Float32Array)]),"undefined"!=typeof Float64Array&&e.addExtUnpacker(24,[a,u(Float64Array)]),"undefined"!=typeof Uint8ClampedArray&&e.addExtUnpacker(25,u(Uint8ClampedArray)),e.addExtUnpacker(26,a),e.addExtUnpacker(29,[a,u(DataView)])),l.hasBuffer&&e.addExtUnpacker(27,u(c))};var s,l=t("./bufferish"),c=l.global,h={name:1,message:1,stack:1,columnNumber:1,fileName:1,lineNumber:1}},{"./bufferish":8,"./decode":12}],20:[function(e,t,r){e("./read-core"),e("./write-core"),r.createCodec=e("./codec-base").createCodec},{"./codec-base":9,"./read-core":22,"./write-core":25}],21:[function(d,p,g){function n(){if(!(this instanceof n))return new n}function i(){if(!(this instanceof i))return new i}function u(){throw new Error("method not implemented: write()")}function a(){throw new Error("method not implemented: fetch()")}function s(){return this.buffers&&this.buffers.length?(this.flush(),this.pull()):this.fetch()}function c(e){(this.buffers||(this.buffers=[])).push(e)}function h(){return(this.buffers||(this.buffers=[])).shift()}function l(n){return function r(e){for(var t in n)e[t]=n[t];return e}}g.FlexDecoder=n,g.FlexEncoder=i;var _=d("./bufferish"),v="BUFFER_SHORTAGE";n.mixin=l(function o(){return{bufferish:_,write:function t(e){var r=this.offset?_.prototype.slice.call(this.buffer,this.offset):this.buffer;this.buffer=r?e?this.bufferish.concat([r,e]):r:e,this.offset=0},fetch:a,flush:function r(){for(;this.offsetthis.buffer.length)throw new Error(v);return this.offset=t,r},offset:0}}()),n.mixin(n.prototype),i.mixin=l(function f(){return{bufferish:_,write:u,fetch:function t(){var e=this.start;if(ethis.minBufferSize?(this.flush(),this.push(e)):(t=this.reserve(t),_.prototype.copy.call(e,this.buffer,t))},maxBufferSize:65536,minBufferSize:2048,offset:0,start:0}}()),i.mixin(i.prototype)},{"./bufferish":8}],22:[function(e,t,s){function n(e){var i=c.getReadToken(e);return function r(e){var t=l(e),n=i[t];if(!n)throw new Error("Invalid type: "+(t&&"0x"+t.toString(16)));return n(e)}}function i(){var e=this.options;return this.decode=n(e),e&&e.preset&&u.setExtUnpackers(this),this}var a=e("./ext-buffer").ExtBuffer,u=e("./ext-unpacker"),l=e("./read-format").readUint8,c=e("./read-token"),h=e("./codec-base");h.install({addExtUnpacker:function o(e,t){(this.extUnpackers||(this.extUnpackers=[]))[e]=h.filter(t)},getExtUnpacker:function f(t){return(this.extUnpackers||(this.extUnpackers=[]))[t]||function r(e){return new a(e,t)}},init:i}),s.preset=i.call(h.preset)},{"./codec-base":9,"./ext-buffer":17,"./ext-unpacker":19,"./read-format":23,"./read-token":24}],23:[function(e,t,r){function i(e,t){for(var r={},n=new Array(t),i=new Array(t),s=e.codec.decode,a=0;a>>8,e[r]=t}}function s(n){return function(e,t){var r=e.reserve(5),e=e.buffer;e[r++]=n,e[r++]=t>>>24,e[r++]=t>>>16,e[r++]=t>>>8,e[r]=t}}function c(n,i,s,a){return function(e,t){var r=e.reserve(i+1);e.buffer[r++]=n,s.call(e.buffer,t,r,a)}}function h(e,t){new v(this,t,e)}function l(e,t){new m(this,t,e)}function p(e,t){g.write(this,e,t,!1,23,4)}function d(e,t){g.write(this,e,t,!1,52,8)}var g=e("ieee754"),_=e("int64-buffer"),v=_.Uint64BE,m=_.Int64BE,y=e("./write-uint8").uint8,w=e("./bufferish"),b=w.global,S=w.hasBuffer&&"TYPED_ARRAY_SUPPORT"in b&&!b.TYPED_ARRAY_SUPPORT,k=w.hasBuffer&&b.prototype||{};r.getWriteToken=function n(e){return(e&&e.uint8array?function i(){var e=o();return e[202]=c(202,4,p),e[203]=c(203,8,d),e}:S||w.hasBuffer&&e&&e.safe?function f(){var e=y.slice();return e[196]=c(196,1,b.prototype.writeUInt8),e[197]=c(197,2,b.prototype.writeUInt16BE),e[198]=c(198,4,b.prototype.writeUInt32BE),e[199]=c(199,1,b.prototype.writeUInt8),e[200]=c(200,2,b.prototype.writeUInt16BE),e[201]=c(201,4,b.prototype.writeUInt32BE),e[202]=c(202,4,b.prototype.writeFloatBE),e[203]=c(203,8,b.prototype.writeDoubleBE),e[204]=c(204,1,b.prototype.writeUInt8),e[205]=c(205,2,b.prototype.writeUInt16BE),e[206]=c(206,4,b.prototype.writeUInt32BE),e[207]=c(207,8,h),e[208]=c(208,1,b.prototype.writeInt8),e[209]=c(209,2,b.prototype.writeInt16BE),e[210]=c(210,4,b.prototype.writeInt32BE),e[211]=c(211,8,l),e[217]=c(217,1,b.prototype.writeUInt8),e[218]=c(218,2,b.prototype.writeUInt16BE),e[219]=c(219,4,b.prototype.writeUInt32BE),e[220]=c(220,2,b.prototype.writeUInt16BE),e[221]=c(221,4,b.prototype.writeUInt32BE),e[222]=c(222,2,b.prototype.writeUInt16BE),e[223]=c(223,4,b.prototype.writeUInt32BE),e}:o)()}},{"./bufferish":8,"./write-uint8":28,ieee754:32,"int64-buffer":33}],27:[function(e,t,i){var c=e("isarray"),s=e("int64-buffer"),h=s.Uint64BE,d=s.Int64BE,p=e("./bufferish"),g=e("./bufferish-proto"),_=e("./write-token"),v=e("./write-uint8").uint8,y=e("./ext-buffer").ExtBuffer,S="undefined"!=typeof Uint8Array,C="undefined"!=typeof Map,M=[];M[1]=212,M[2]=213,M[4]=214,M[8]=215,M[16]=216,i.getWriteType=function n(t){function w(e,t){if(null===t)return A(e,t);if(a(t))return u(e,t);if(c(t))return function m(e,t){var r=t.length;f[r<16?144+r:r<=65535?220:221](e,r);for(var n=e.codec.encode,i=0;i=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function v(e,t){if(Buffer.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return X(e).length;default:if(n)return q(e).length;t=(""+t).toLowerCase(),n=!0}}function g(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":return function I(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||n=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=Buffer.from(t,n)),Buffer.isBuffer(t))return 0===t.length?-1:E(e,t,r,n,i);if("number"==typeof t)return t&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(i?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(e,t,r):E(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function E(e,t,r,n,i){function o(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}var s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a/=s=2,u/=2,r/=2}if(i)for(var f=-1,l=r;l>8,n=n%256,i.push(n),i.push(r);return i}(t,e.length-r),e,r,n)}function k(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i>>10&1023|55296),l=56320|1023&l),n.push(l),i+=c}return function _(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);for(var r="",n=0;ne.length)throw new RangeError("Index out of range")}function O(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,s=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function L(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,s=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function M(e,t,r,n){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(e,t,r,n,i){return i||M(e,0,r,4),B.write(e,t,r,n,23,4),r+4}function F(e,t,r,n,i){return i||M(e,0,r,8),B.write(e,t,r,n,52,8),r+8}function j(e){if((e=function z(e){return e.trim?e.trim():e.replace(/^\\s+|\\s+$/g,"")}(e).replace(t,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function q(e,t){t=t||1/0;for(var r,n=e.length,i=null,s=[],a=0;a>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function X(e){return S.toByteArray(j(e))}function G(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}var S=r("base64-js"),B=r("ieee754"),I=r("isarray");n.Buffer=Buffer,n.SlowBuffer=function y(e){return+e!=e&&(e=0),Buffer.alloc(+e)},n.INSPECT_MAX_BYTES=50,Buffer.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function n(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function foo(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),n.kMaxLength=i(),Buffer.poolSize=8192,Buffer._augment=function(e){return e.__proto__=Buffer.prototype,e},Buffer.from=function(e,t,r){return f(null,e,t,r)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})),Buffer.alloc=function(e,t,r){return function a(e,t,r,n){return u(t),!(t<=0)&&void 0!==r?"string"==typeof n?o(e,t).fill(r,n):o(e,t).fill(r):o(e,t)}(null,e,t,r)},Buffer.allocUnsafe=function(e){return s(null,e)},Buffer.allocUnsafeSlow=function(e){return s(null,e)},Buffer.isBuffer=function(e){return!(null==e||!e._isBuffer)},Buffer.compare=function(e,t){if(!Buffer.isBuffer(e)||!Buffer.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,s=Math.min(r,n);it&&(e+=" ... ")),""},Buffer.prototype.compare=function(e,t,r,n,i){if(!Buffer.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(i<=n&&r<=t)return 0;if(i<=n)return-1;if(r<=t)return 1;if(this===e)return 0;for(var s=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),o=Math.min(s,a),u=this.slice(n,i),f=e.slice(t,r),l=0;lthis.length)throw new RangeError("Attempt to write outside buffer bounds");n=n||"utf8";for(var s=!1;;)switch(n){case"hex":return function A(e,t,r,n){r=Number(r)||0;var i=e.length-r;if(n?i<(n=Number(n))&&(n=i):n=i,(i=t.length)%2!=0)throw new TypeError("Invalid hex string");i/2>>8):O(this,e,t,!0),t+2},Buffer.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},Buffer.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},Buffer.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},Buffer.prototype.writeIntLE=function(e,t,r,n){e=+e,t|=0,n||D(this,e,t,r,(n=Math.pow(2,8*r-1))-1,-n);var i=0,s=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+r},Buffer.prototype.writeIntBE=function(e,t,r,n){e=+e,t|=0,n||D(this,e,t,r,(n=Math.pow(2,8*r-1))-1,-n);var i=r-1,s=1,a=0;for(this[t+i]=255&e;0<=--i&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+r},Buffer.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Buffer.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},Buffer.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},Buffer.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},Buffer.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},Buffer.prototype.writeFloatLE=function(e,t,r){return N(this,e,t,!0,r)},Buffer.prototype.writeFloatBE=function(e,t,r){return N(this,e,t,!1,r)},Buffer.prototype.writeDoubleLE=function(e,t,r){return F(this,e,t,!0,r)},Buffer.prototype.writeDoubleBE=function(e,t,r){return F(this,e,t,!1,r)},Buffer.prototype.copy=function(e,t,r,n){if(r=r||0,n||0===n||(n=this.length),t>=e.length&&(t=e.length),t=t||0,0=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,"number"==typeof(e=e||0))for(o=t;o>18&63]+l[e>>12&63]+l[e>>6&63]+l[63&e]}(n));return i.join("")}r.byteLength=function i(e){return 3*e.length/4-n(e)},r.toByteArray=function o(e){for(var t,r=e.length,i=n(e),s=new h(3*r/4-i),a=0>16&255,s[u++]=t>>8&255,s[u++]=255&t;return 2===i?(t=c[e.charCodeAt(f)]<<2|c[e.charCodeAt(f+1)]>>4,s[u++]=255&t):1===i&&(t=c[e.charCodeAt(f)]<<10|c[e.charCodeAt(f+1)]<<4|c[e.charCodeAt(f+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t),s},r.fromByteArray=function a(e){for(var t,r=e.length,n=r%3,i="",s=[],o=0,f=r-n;o>2],i+=l[t<<4&63],i+="=="):2==n&&(t=(e[r-2]<<8)+e[r-1],i+=l[t>>10],i+=l[t>>4&63],i+=l[t<<2&63],i+="="),s.push(i),s.join("")};for(var l=[],c=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,p=s.length;d>1,l=-7,c=r?i-1:0,h=r?-1:1,r=e[t+c];for(c+=h,s=r&(1<<-l)-1,r>>=-l,l+=o;0>=-l,l+=n;0>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:s-1,d=n?1:-1,s=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(n=Math.pow(2,-a))<1&&(a--,n*=2),2<=(t+=1<=a+l?c/n:c*Math.pow(2,1-l))*n&&(a++,n/=2),f<=a+l?(o=0,a=f):1<=a+l?(o=(t*n-1)*Math.pow(2,i),a+=l):(o=t*Math.pow(2,l-1)*Math.pow(2,i),a=0));8<=i;e[r+h]=255&o,h+=d,o/=256,i-=8);for(a=a<>=8,e[t+S]=255&r,r>>=8,e[t+b]=255&r,r>>=8,e[t+n]=255&r}function _(e,t){return 16777216*e[t+n]+(e[t+b]<<16)+(e[t+S]<<8)+e[t+C]}var m=t?0:4,w=t?4:0,n=t?0:3,b=t?1:2,S=t?2:1,C=t?3:0,E=t?l:d,B=t?p:y,r=i.prototype,t="is"+e,M="_"+t;return r.buffer=void 0,r.offset=0,r[M]=!0,r.toNumber=P,r.toString=function R(e){var t=this.buffer,r=this.offset,n=_(t,r+m),i=_(t,r+w),s="";for((r=!g&&2147483648&n)&&(n=~n,i=O-i),e=e||10;;){var a=n%e*O+i,n=Math.floor(n/e),i=Math.floor(a/e),s=(a%e).toString(e)+s;if(!n&&!i)break}return r&&(s="-"+s),s},r.toJSON=P,r.toArray=f,T&&(r.toBuffer=u),W&&(r.toArrayBuffer=a),i[t]=function o(e){return!(!e||!e[M])},D[e]=i}function f(e){var t=this.buffer,r=this.offset;return I=null,!1!==e&&0===r&&8===t.length&&g(t)?t:h(t,r)}function u(e){var t=this.buffer,r=this.offset;if(I=T,!1!==e&&0===r&&8===t.length&&n.isBuffer(t))return t;e=new T(8);return c(e,0,t,r),e}function a(e){var t=this.buffer,r=this.offset,n=t.buffer;if(I=W,!1!==e&&0===r&&n instanceof L&&8===n.byteLength)return n;n=new W(8);return c(n,0,t,r),n.buffer}function s(e,t){var r=e&&e.length;return t|=0,r&&t+8<=r&&"string"!=typeof e[t]}function c(e,t,r,n){t|=0,n|=0;for(var i=0;i<8;i++)e[t++]=255&r[n++]}function h(e,t){return Array.prototype.slice.call(e,t,t+8)}function l(e,t,r){for(var n=t+8;t>>6:(r<65536?t[i++]=224|r>>>12:(t[i++]=240|r>>>18,t[i++]=128|r>>>12&63),t[i++]=128|r>>>6&63),t[i++]=128|63&r);return t},r.buf2binstring=function(e){return d(e,e.length)},r.binstring2buf=function(e){for(var t=new u.Buf8(e.length),r=0,n=t.length;r>10&1023,a[r++]=56320|1023&n)}return d(a,r)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return!(r<0)&&0!==r&&r+f[e[r]]>t?r:t}},{"./common":3}],5:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){for(var i=65535&e|0,s=e>>>16&65535|0,a=0;0!==r;){for(r-=a=2e3>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,n){var i=o,s=n+r;e^=-1;for(var a=n;a>>8^i[255&(e^t[a])];return-1^e}},{}],8:[function(e,t,r){"use strict";var o,c=e("../utils/common"),u=e("./trees"),h=e("./adler32"),d=e("./crc32"),n=e("./messages"),f=0,l=0,p=-2,i=2,g=8,s=286,a=30,_=19,v=2*s+1,m=15,y=3,w=258,b=w+y+1,S=42,k=113;function N(e,t){return e.msg=n[t],t}function O(e){return(e<<1)-(4e.avail_out&&(r=e.avail_out),0!==r&&(c.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function U(e,t){u._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,I(e.strm)}function T(e,t){e.pending_buf[e.pending++]=t}function F(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function L(e,t){var r,n,i=e.max_chain_length,s=e.strstart,a=e.prev_length,o=e.nice_match,u=e.strstart>e.w_size-b?e.strstart-(e.w_size-b):0,f=e.window,l=e.w_mask,c=e.prev,h=e.strstart+w,d=f[s+a-1],p=f[s+a];e.prev_length>=e.good_match&&(i>>=2),o>e.lookahead&&(o=e.lookahead);do{if(f[(r=t)+a]===p&&f[r+a-1]===d&&f[r]===f[s]&&f[++r]===f[s+1]){for(s+=2,r++;f[++s]===f[++r]&&f[++s]===f[++r]&&f[++s]===f[++r]&&f[++s]===f[++r]&&f[++s]===f[++r]&&f[++s]===f[++r]&&f[++s]===f[++r]&&f[++s]===f[++r]&&su&&0!=--i);return a<=e.lookahead?a:e.lookahead}function H(e){var t,r,n,i,s,a,o,u,f,l=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=l+(l-b)){for(c.arraySet(e.window,e.window,l,l,0),e.match_start-=l,e.strstart-=l,e.block_start-=l,t=r=e.hash_size;n=e.head[--t],e.head[t]=l<=n?n-l:0,--r;);for(t=r=l;n=e.prev[--t],e.prev[t]=l<=n?n-l:0,--r;);i+=l}if(0===e.strm.avail_in)break;if(a=e.strm,o=e.window,u=e.strstart+e.lookahead,f=void 0,i<(f=a.avail_in)&&(f=i),r=0===f?0:(a.avail_in-=f,c.arraySet(o,a.input,a.next_in,f,u),1===a.state.wrap?a.adler=h(a.adler,o,f,u):2===a.state.wrap&&(a.adler=d(a.adler,o,f,u)),a.next_in+=f,a.total_in+=f,f),e.lookahead+=r,e.lookahead+e.insert>=y)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<=y&&(e.ins_h=(e.ins_h<=y)if(n=u._tr_tally(e,e.strstart-e.match_start,e.match_length-y),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=y){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=y&&(e.ins_h=(e.ins_h<=y&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-y,n=u._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-y),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(H(e),0===e.lookahead&&t===f)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,U(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-b&&(U(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(U(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(U(e,!1),e.strm.avail_out),1)}),new M(4,4,8,4,j),new M(4,5,16,8,j),new M(4,6,32,32,j),new M(4,4,16,16,K),new M(8,16,32,32,K),new M(8,16,128,128,K),new M(8,32,128,256,K),new M(32,128,258,1024,K),new M(32,258,258,4096,K)],r.deflateInit=function(e,t){return G(e,t,g,15,8,0)},r.deflateInit2=G,r.deflateReset=q,r.deflateResetKeep=Y,r.deflateSetHeader=function(e,t){return!e||!e.state||2!==e.state.wrap?p:(e.state.gzhead=t,l)},r.deflate=function(e,t){var r,n,i,s;if(!e||!e.state||5>8&255),T(r,r.gzhead.time>>16&255),T(r,r.gzhead.time>>24&255),T(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),T(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(T(r,255&r.gzhead.extra.length),T(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=d(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(T(r,0),T(r,0),T(r,0),T(r,0),T(r,0),T(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),T(r,3),r.status=k)):(s=g+(r.w_bits-8<<4)<<8,s|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=k,F(r,s),0!==r.strstart&&(F(r,e.adler>>>16),F(r,65535&e.adler)),e.adler=1)),69===r.status)if(r.gzhead.extra){for(n=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>n&&(e.adler=d(e.adler,r.pending_buf,r.pending-n,n)),I(e),n=r.pending,r.pending!==r.pending_buf_size));)T(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>n&&(e.adler=d(e.adler,r.pending_buf,r.pending-n,n)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){n=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>n&&(e.adler=d(e.adler,r.pending_buf,r.pending-n,n)),I(e),n=r.pending,r.pending===r.pending_buf_size)){i=1;break}}while(T(r,i=r.gzindexn&&(e.adler=d(e.adler,r.pending_buf,r.pending-n,n)),0===i&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){n=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>n&&(e.adler=d(e.adler,r.pending_buf,r.pending-n,n)),I(e),n=r.pending,r.pending===r.pending_buf_size)){i=1;break}}while(T(r,i=r.gzindexn&&(e.adler=d(e.adler,r.pending_buf,r.pending-n,n)),0===i&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&I(e),r.pending+2<=r.pending_buf_size&&(T(r,255&e.adler),T(r,e.adler>>8&255),e.adler=0,r.status=k)):r.status=k),0!==r.pending){if(I(e),0===e.avail_out)return r.last_flush=-1,l}else if(0===e.avail_in&&O(t)<=O(a)&&4!==t)return N(e,-5);if(666===r.status&&0!==e.avail_in)return N(e,-5);if(0!==e.avail_in||0!==r.lookahead||t!==f&&666!==r.status){var a=2===r.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(H(e),0===e.lookahead)){if(t===f)return 1;break}if(e.match_length=0,r=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(U(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(U(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(U(e,!1),0===e.strm.avail_out)?1:2}(r,t):3===r.strategy?function(e,t){for(var r,n,i,s,a=e.window;;){if(e.lookahead<=w){if(H(e),e.lookahead<=w&&t===f)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=y&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=y?(r=u._tr_tally(e,1,e.match_length-y),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(U(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(U(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(U(e,!1),0===e.strm.avail_out)?1:2}(r,t):o[r.level].func(r,t);if(3!==a&&4!==a||(r.status=666),1===a||3===a)return 0===e.avail_out&&(r.last_flush=-1),l;if(2===a&&(1===t?u._tr_align(r):5!==t&&(u._tr_stored_block(r,0,0,!1),3===t&&(D(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),I(e),0===e.avail_out))return r.last_flush=-1,l}return 4!==t?l:r.wrap<=0?1:(2===r.wrap?(T(r,255&e.adler),T(r,e.adler>>8&255),T(r,e.adler>>16&255),T(r,e.adler>>24&255),T(r,255&e.total_in),T(r,e.total_in>>8&255),T(r,e.total_in>>16&255),T(r,e.total_in>>24&255)):(F(r,e.adler>>>16),F(r,65535&e.adler)),I(e),0=r.w_size&&(0===s&&(D(r.head),r.strstart=0,r.block_start=0,r.insert=0),u=new c.Buf8(r.w_size),c.arraySet(u,t,f-r.w_size,r.w_size,0),t=u,f=r.w_size),a=e.avail_in,o=e.next_in,u=e.input,e.avail_in=f,e.next_in=0,e.input=t,H(r);r.lookahead>=y;){for(n=r.strstart,i=r.lookahead-(y-1);r.ins_h=(r.ins_h<>>=n=r>>>24,S-=n,0==(n=r>>>16&255))d[h++]=65535&r;else{if(!(16&n)){if(0==(64&n)){r=k[(65535&r)+(b&(1<>>=n,S-=n),S<15&&(b+=l[f++]<>>=n=r>>>24,S-=n,!(16&(n=r>>>16&255))){if(0==(64&n)){r=C[(65535&r)+(b&(1<>>=n,S-=n,(n=h-p)>3,b&=(1<<(S-=i<<3))-1,e.next_in=f,e.next_out=h,e.avail_in=f>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function r(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new M.Buf16(320),this.work=new M.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function s(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=F,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new M.Buf32(i),t.distcode=t.distdyn=new M.Buf32(a),t.sane=1,t.back=-1,U):O}function o(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,s(e)):O}function l(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=i.wsize?(M.arraySet(i.window,t,r-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):(n<(e=i.wsize-i.wnext)&&(e=n),M.arraySet(i.window,t,r-n,e,i.wnext),(n-=e)?(M.arraySet(i.window,t,r-n,n,0),i.wnext=n,i.whave=i.wsize):(i.wnext+=e,i.wnext===i.wsize&&(i.wnext=0),i.whave>>8&255,r.check=x(r.check,B,2,0),l=f=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&f)<<8)+(f>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&f)){e.msg="unknown compression method",r.mode=30;break}if(l-=4,S=8+(15&(f>>>=4)),0===r.wbits)r.wbits=S;else if(S>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(B[0]=255&f,B[1]=f>>>8&255,r.check=x(r.check,B,2,0)),l=f=0,r.mode=3;case 3:for(;l<32;){if(0===o)break e;o--,f+=n[s++]<>>8&255,B[2]=f>>>16&255,B[3]=f>>>24&255,r.check=x(r.check,B,4,0)),l=f=0,r.mode=4;case 4:for(;l<16;){if(0===o)break e;o--,f+=n[s++]<>8),512&r.flags&&(B[0]=255&f,B[1]=f>>>8&255,r.check=x(r.check,B,2,0)),l=f=0,r.mode=5;case 5:if(1024&r.flags){for(;l<16;){if(0===o)break e;o--,f+=n[s++]<>>8&255,r.check=x(r.check,B,2,0)),l=f=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(o<(d=r.length)&&(d=o),d&&(r.head&&(S=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),M.arraySet(r.head.extra,n,s,d,S)),512&r.flags&&(r.check=x(r.check,n,d,s)),o-=d,s+=d,r.length-=d),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===o)break e;for(d=0;S=n[s+d++],r.head&&S&&r.length<65536&&(r.head.name+=String.fromCharCode(S)),S&&d>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;l<32;){if(0===o)break e;o--,f+=n[s++]<>>=7&l,l-=7&l,r.mode=27;break}for(;l<3;){if(0===o)break e;o--,f+=n[s++]<>>=1)){case 0:r.mode=14;break;case 1:if(function H(e){if(q){var t;for(N=new M.Buf32(512),z=new M.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(A(T,e.lens,0,288,N,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;A(W,e.lens,0,32,z,0,e.work,{bits:5}),q=!1}e.lencode=N,e.lenbits=9,e.distcode=z,e.distbits=5}(r),r.mode=20,6!==t)break;f>>>=2,l-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}f>>>=2,l-=2;break;case 14:for(f>>>=7&l,l-=7&l;l<32;){if(0===o)break e;o--,f+=n[s++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&f,l=f=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(d=r.length){if(o>>=5,l-=5,r.ndist=1+(31&f),f>>>=5,l-=5,r.ncode=4+(15&f),f>>>=4,l-=4,286>>=3,l-=3}for(;r.have<19;)r.lens[P[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,C={bits:r.lenbits},k=A(0,r.lens,0,19,r.lencode,0,r.work,C),r.lenbits=C.bits,k){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,m=65535&R,!((_=R>>>24)<=l);){if(0===o)break e;o--,f+=n[s++]<>>=_,l-=_,r.lens[r.have++]=m;else{if(16===m){for(E=_+2;l>>=_,l-=_,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}S=r.lens[r.have-1],d=3+(3&f),f>>>=2,l-=2}else if(17===m){for(E=_+3;l>>=_)),f>>>=3,l-=3}else{for(E=_+7;l>>=_)),f>>>=7,l-=7}if(r.have+d>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;d--;)r.lens[r.have++]=S}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,C={bits:r.lenbits},k=A(T,r.lens,0,r.nlen,r.lencode,0,r.work,C),r.lenbits=C.bits,k){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,C={bits:r.distbits},k=A(W,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,C),r.distbits=C.bits,k){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=o&&258<=u){e.next_out=a,e.avail_out=u,e.next_in=s,e.avail_in=o,r.hold=f,r.bits=l,I(e,h),a=e.next_out,i=e.output,u=e.avail_out,s=e.next_in,n=e.input,o=e.avail_in,f=r.hold,l=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;v=(R=r.lencode[f&(1<>>16&255,m=65535&R,!((_=R>>>24)<=l);){if(0===o)break e;o--,f+=n[s++]<>y)])>>>16&255,m=65535&R,!(y+(_=R>>>24)<=l);){if(0===o)break e;o--,f+=n[s++]<>>=y,l-=y,r.back+=y}if(f>>>=_,l-=_,r.back+=_,r.length=m,0===v){r.mode=26;break}if(32&v){r.back=-1,r.mode=12;break}if(64&v){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&v,r.mode=22;case 22:if(r.extra){for(E=r.extra;l>>=r.extra,l-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;v=(R=r.distcode[f&(1<>>16&255,m=65535&R,!((_=R>>>24)<=l);){if(0===o)break e;o--,f+=n[s++]<>y)])>>>16&255,m=65535&R,!(y+(_=R>>>24)<=l);){if(0===o)break e;o--,f+=n[s++]<>>=y,l-=y,r.back+=y}if(f>>>=_,l-=_,r.back+=_,64&v){e.msg="invalid distance code",r.mode=30;break}r.offset=m,r.extra=15&v,r.mode=24;case 24:if(r.extra){for(E=r.extra;l>>=r.extra,l-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===u)break e;if(d=h-u,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}p=d>r.wnext?(d-=r.wnext,r.wsize-d):r.wnext-d,d>r.length&&(d=r.length),g=r.window}else g=i,p=a-r.offset,d=r.length;for(ud?(g=I[A+a[y]],P[M+a[y]]):(g=96,0),u=1<>C)+(f-=u)]=p<<24|g<<16|_|0,0!==f;);for(u=1<>=1;if(0!==u?(B&=u-1,B+=u):B=0,y++,0==--D[m]){if(m===b)break;m=t[r+a[y]]}if(S>>7)]}function T(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function F(e,t,r){e.bi_valid>a-r?(e.bi_buf|=t<>a-e.bi_valid,e.bi_valid+=r-a):(e.bi_buf|=t<>>=1,r<<=1,0<--t;);return r>>>1}function j(e,t,r){for(var n,i=new Array(_+1),s=0,a=1;a<=_;a++)i[a]=s=s+r[a-1]<<1;for(n=0;n<=t;n++){var o=e[2*n+1];0!==o&&(e[2*n]=H(i[o]++,o))}}function K(e){for(var t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function M(e){8>1;1<=t;t--)Y(e,i,t);for(n=o;t=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Y(e,i,1),r=e.heap[1],e.heap[--e.heap_max]=t,e.heap[--e.heap_max]=r,i[2*n]=i[2*t]+i[2*r],e.depth[n]=(e.depth[t]>=e.depth[r]?e.depth[t]:e.depth[r])+1,i[2*t+1]=i[2*r+1]=n,e.heap[1]=n++,Y(e,i,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e){for(var t,r,n,i,s,a=g.dyn_tree,o=g.max_code,u=g.stat_desc.static_tree,f=g.stat_desc.has_stree,l=g.stat_desc.extra_bits,c=g.stat_desc.extra_base,h=g.stat_desc.max_length,d=0,p=0;p<=_;p++)e.bl_count[p]=0;for(a[2*e.heap[e.heap_max]+1]=0,t=e.heap_max+1;t<573;t++)h<(p=a[2*a[2*(r=e.heap[t])+1]+1]+1)&&(p=h,d++),a[2*r+1]=p,o>=7;s<30;s++)for(w[s]=n<<7,e=0;e<1<>>=1)if(1&t&&0!==e.dyn_ltree[2*r])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(r=32;r<256;r++)if(0!==e.dyn_ltree[2*r])return 1;return 0}(e)),G(e,e.l_desc),G(e,e.d_desc),a=function(e){var t;for(X(e,e.dyn_ltree,e.l_desc.max_code),X(e,e.dyn_dtree,e.d_desc.max_code),G(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*l[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=i&&(i=s)):i=s=r+5,r+4<=i&&-1!==t?Q(e,t,r,n):4===e.strategy||s===i?(F(e,2+(n?1:0),3),q(e,c,h)):(F(e,4+(n?1:0),3),function(e,t,r,n){var i;for(F(e,t-257,5),F(e,r-1,5),F(e,n-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(p[r]+256+1)]++,e.dyn_dtree[2*U(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){F(e,2,3),L(e,256,c),16===(e=e).bi_valid?(T(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{"../utils/common":3}],15:[function(e,t,r){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],"/":[function(e,t,r){"use strict";var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":1,"./lib/inflate":2,"./lib/utils/common":3,"./lib/zlib/constants":6}]},{},[])("/")},"object"==_typeof(t)?e.exports=n():(r=[],void 0===(n="function"==typeof(n=n)?n.apply(t,r):n)||(e.exports=n))}},n={};function __webpack_require__(e){var t=n[e];if(void 0!==t)return t.exports;t=n[e]={exports:{}};return r[e](t,t.exports,__webpack_require__),t.exports}__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),function(){"use strict";function _defineProperties(e,t){for(var r=0;r=this._logLevel&&(r&&r.stack&&(e+=" ;stack: ".concat(r.stack)),this._logBridge.log(e,t))}}]),Logger}();function WupServerSessionState_defineProperties(e,t){for(var r=0;rthis._queueLoadThershold&&p.warn("Data queue has ".concat(this._dataQueue.length()," items in queue. Might indicate slow\\\\unstable communication issues."))}}},{key:"_flushData",value:function _flushData(){for(;this._dataQueue.hasItems();)this._processNextQueueItem(!0)}},{key:"_prepareMessageForSendRetry",value:function _prepareMessageForSendRetry(){var e=this;this._clearRetryTimeout(),this.retryMessage.updateRetryInterval();var t=this.retryMessage.getNextInterval();this._sendRetryTimeoutId=setTimeout(function(){e._processNextQueueItem(!1,!1)},t)}},{key:"_clearRetryTimeout",value:function _clearRetryTimeout(){this._sendRetryTimeoutId&&clearTimeout(this._sendRetryTimeoutId)}},{key:"_buildFailureLog",value:function _buildFailureLog(e,t,r){var n="";return e&&(n+="Response Text: ".concat(e,".")),t&&(n+="Status: ".concat(t,".")),r&&(n+="Status Text: ".concat(r,".")),n}}]),ServerCommunicator}();function LogMessage_defineProperties(e,t){for(var r=0;r>8-s%1*8)){if(255<(r=n.charCodeAt(s+=.75)))throw new Error("\'btoa\' failed: The string to be encoded contains characters outside of the Latin1 range.");t=t<<8|r}return i};function DataPacker_defineProperties(e,t){for(var r=0;rM)&&(p.warn("messageNumToRetry - ".concat(t," in the following range: \\n ").concat(P," - ").concat(M," setting to default: ").concat(B)),this.messageNumToRetry=B),(this.messageRetryIntervalI)&&(p.warn("messageRetryInterval - ".concat(t," in the following range: \\n [").concat(x," - ").concat(I,"], \\n setting to default: ").concat(D)),this.messageRetryInterval=D),(this.incrementalGrowthBetweenFailuresW)&&(p.warn("incrementalGrowthBetweenFailures - ".concat(t," in the following range: \\n [").concat(T," - ").concat(W,"],\\n setting to default: ").concat(A)),this.incrementalGrowthBetweenFailures=A),(this.maxIntervalBetweenFailuresO)&&(p.warn("maxIntervalBetweenFailures - ".concat(t," in the following range: \\n [").concat(U," - ").concat(O,"]\\n setting to default: ").concat(L)),this.maxIntervalBetweenFailures=L),this.maxIntervalBetweenFailures=this._logLevel)&&this._Q.push(e)}},{key:"take",value:function take(){var e=this._Q;return this.reset(),e}},{key:"reset",value:function reset(){this._Q=[],this.setLogLevel(l.INFO)}},{key:"isEmpty",value:function isEmpty(){return 0===this._Q.length}},{key:"filterOutByLogLevel",value:function filterOutByLogLevel(n){this._Q=this._Q.filter(function(e,t,r){return e.level>=n})}}]),LogAggregator}();function MessageProcessor_defineProperties(e,t){for(var r=0;rthis.getMaxIntervalBetweenFailures()?this.currentInterval=this.getMaxIntervalBetweenFailures():this.currentInterval=e,this._incrementNumberOfSendFailures()}}]),RetryMessage}();function WorkerServerRestoredMuidEventHandler_defineProperties(e,t){for(var r=0;r