// source --> https://rotlichtadresse.de/wp-content/plugins/baqend/js/speed-kit-install.js 
(function(){var speedKit={appName:"red-dragon-65",sw:"https://rotlichtadresse.de/speed-kit-sw.js",scope:"https://rotlichtadresse.de/",rumTracking:false,disabled:false,userAgentDetection:false,enabledSites:[{pathname:[/^((?!\/wp-admin\/).)*$/]}],whitelist:[{url:["rotlichtadresse.de","fonts.googleapis.com","fonts.gstatic.com","maxcdn.bootstrapcdn.com"],contentType:["document","image","script","style","font","track"]}],blacklist:[{url:["rotlichtadresse.de/wp-json","rotlichtadresse.de/wp-login","rotlichtadresse.de/login","rotlichtadresse.de/wp-content/plugins/baqend",/\.pdf/,/\.gif[?&]/]},{contentType:["video"]},{pathname :/[?&](_=1\d{12})/},{cookie:["wordpress_logged_in","twostep_auth","comment_","woocommerce_cart","woocommerce_items"],contentType:["document"]}],stripQueryParams:[{params:["utm_","msclkid","gclsrc","fbclid","dclid","cjid","gclid"]}],image:{quality:85,webp:true,pjpeg:true},fetchOriginInterval:1440};!function(e,t,n,r,i,o,a){"use strict";var s="baqend-speedkit",c="".concat(s,"-store"),u="".concat(s,"-user-id"),d="".concat(s,"-session-id"),l="".concat(s,"-session-index"),p="".concat(s,"-session-timestamp"),f="".concat(s,"-config"),g="".concat(s,"-secondary-config"),v="".concat(s,"-sk-opt-out"),h="".concat(s,"-rum-opt-out"),m="".concat(s,"-rum-split-enabled"),y="".concat(s,"-hashing-salt"),S="".concat(s,"-debug-config-hash"),b="".concat(s,"-session-authToken"),w="".concat(s,"-bypass-deactivation-toggle");function k(e,t,n,r){return Promise.resolve(e).then((function(e){return new Promise((function(i,o){var a=e.transaction(t,n),s=Promise.resolve(r(a.objectStore(t)));a.oncomplete=function(){return s.then(i)},a.onabort=a.onerror=function(){return o(a.error)}}))}))}function T(e,t,n){return k(e,t,"readwrite",n)}function C(e,t){if(!t||"/"===t)return e;var n="".concat(t.lastIndexOf("/")===t.length-1?t.substr(0,t.length-1):t),r="".concat(0===e.indexOf("/")?"":"/").concat(e);return"".concat(n).concat(r)}var P=function(){function e(e){this.dbp=null,this.cacheName=C(s,e),this.dbp=this.openDb()}return e.prototype.get=function(e){return(t=this.db(),n=c,r=function(t){return t.get(e)},k(t,n,"readonly",r)).then((function(e){return e.result||null}));var t,n,r},e.prototype.set=function(e,t){return T(this.db(),c,(function(n){return n.put(t,e)&&void 0}))},e.prototype.clear=function(){return Promise.all([(e=this.db(),t=c,T(e,t,(function(e){return e.clear()})).then((function(){})))]).then((function(){}));var e,t},e.prototype.disconnect=function(){var e=this;return null===this.dbp?Promise.resolve():this.dbp.then((function(t){e.dbp=null,t.close()}))},e.prototype.db=function(){return null===this.dbp&&(this.dbp=this.openDb()),this.dbp},e.prototype.openDb=function(){var e=this,t=indexedDB.open(this.cacheName,1);return t.onupgradeneeded=function(e){var n=e.oldVersion,r=t.result;if(n<1){if(!r)return;try{r.createObjectStore(c)}catch(i){}}},this.openRequest(t).then((function(t){return t.onclose=function(){e.dbp=null},t.onerror=function(){e.dbp=null},t.onversionchange=function(n){n.newVersion||(e.dbp=null,t.close())},t}))},e.prototype.openRequest=function(e){return new Promise((function(t,n){e.onsuccess=function(){return t(e.result)},e.onerror=function(){return n(e.error)},e.onblocked=function(){return n(e.error)}}))},e}();!function(){function e(){this.map=new Map}e.prototype.get=function(e){return Promise.resolve(this.map.get(e)||null)},e.prototype.set=function(e,t){return this.map.set(e,t),Promise.resolve()},e.prototype.clear=function(){return this.map.clear(),Promise.resolve()}}();function N(t){"complete"!==e.readyState?window.addEventListener("load",(function(){return t()})):t()}function I(t){"loading"===e.readyState?e.addEventListener("DOMContentLoaded",(function(){return t()})):setTimeout(t,0)}function E(e){return void 0===e&&(e=25),function(e){var t=[];t.length=e;var n=0;for(;n<e;)t[n]=0,n+=1;return t}(e).map((function(){return Math.floor(62*Math.random())})).map((function(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"[e]})).join("")}var O=75e3;function R(e,t,n,r){var i=e.events;for(i.sort((function(e,t){return JSON.stringify(t).length-JSON.stringify(e).length}));r>t&&i.length>0;){var o=i.shift();r=JSON.stringify(e).length;var a=o&&"string"==typeof o.action?"events.".concat(o.action):"events";-1===n.indexOf(a)&&n.push(a)}return r>t&&0===i.length&&(delete e.events,r=JSON.stringify(e).length),r}function D(e,n){var r=function(e,t){void 0===t&&(t=O);var n=JSON.stringify(e),r=n.length;if(r<=t)return[e,n];var i=[],o=[];Object.keys(e).forEach((function(t){var n=JSON.stringify(e[t]);i.push({name:t,size:n.length})})),i.sort((function(e,t){return t.size-e.size}));for(var a=0;r>t&&i[a];)"events"===i[a].name&&Array.isArray(e.events)?(r=R(e,t,o,r),a+=1):(delete e[i[a].name],r-=i[a].size,o.push(i[a].name),a+=1);return e.truncatedKeys=o,[e,JSON.stringify(e)]}(n),i=r[0],o=r[1];try{if(t.sendBeacon&&t.sendBeacon(e,o))return}catch(c){}i.xhrFallback=!0;var a=JSON.stringify(i),s=new XMLHttpRequest;s.open("POST",e,!0),s.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),s.send(a)}function L(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={};return e.forEach((function(e){Object.keys(e).forEach((function(t){return n[t]=e[t]}))})),n}function A(e,t){if("undefined"!=typeof Storage)try{localStorage.setItem(e,t)}catch(n){}}var x,K=[u,f];function U(e){var t=null;if("undefined"!=typeof Storage)try{t=localStorage.getItem(e)}catch(n){}return t}function B(){return!("1"!==U(v)&&!window.deactivateSpeedKit)}function F(t,n){if(!(B()||(A(t,n),SpeedKit.trackingOptionsProvider.getTrackingOptions().noCookies||K.indexOf(t)<0))){var i=r.cookieLifetime||180,o=new Date(Date.now()+24*i*60*60*1e3).toUTCString();try{e.cookie="".concat(t,"=").concat(n,"; expires=").concat(o,"; path=/; SameSite=Lax; Secure")}catch(a){}}}function j(t,n){void 0===n&&(n=!0);var r=U(t),i=function(t){try{var n=new RegExp("".concat(t,"=([^,;]*)")),r=e.cookie.match(n);return r&&r[1]?r[1]:null}catch(i){}return null}(t),o=function(e){if(null===e||"null"===e||""===e||"[object Object]"===e)return!1;if(/^-?\d+(\.\d+)?$/.test(e))return!0;try{var t=decodeURIComponent(e);return JSON.parse(t),!0}catch(r){var n=/^[a-zA-Z0-9\s]+$/.test(e);return n||W(r,x.SNIPPET),n}}(r)?r:i;return o&&r!==i&&n&&F(t,o),o}function M(e){return void 0===e&&(e=!0),j(u,e)||E()}function H(e){return"reason"in e}!function(e){e.SNIPPET="snippet",e.CONFIG="skConfig",e.RUMPLUGIN="rum",e.CUSTOMPLUGIN="customPlugin",e.JSTRACKINGPLUGIN="js",e.DFCONFIG="dfConfig",e.MERGE="merge",e.CHANGEDETECTION="cd",e.DYNAMICFETCHER="df",e.SSR="ssr",e.BLOCKINGNOTRELEASED="blockingScriptNotReleased",e.MAINNOTMERGED="mainNotMerged",e.BODYMERGEABORTED="bodyMergeAborted",e.SERVICEWORKER="sw",e.SLOWCHUNK="slowChunk",e.CONFIGPLUGIN="configPlugin"}(x||(x={}));var G=function(){function e(){this.maxErrors=10,this.errorHandlers={},this.trackedErrors=new Set}return e.prototype.registerContext=function(e,t,n){void 0===n&&(n=!1),this.errorHandlers[e]&&!n||(this.errorHandlers[e]=t)},e.prototype.isContextRegistered=function(e){return Object.prototype.hasOwnProperty.call(this.errorHandlers,e)},e.getInstance=function(){return window.SpeedKit=window.SpeedKit||{},window.SpeedKit.errorService||(window.SpeedKit.errorService=new e),window.SpeedKit.errorService},e.prototype.processError=function(e,t,n,r,i){if(void 0===r&&(r=!1),this.errorHandlers[n]){var o=this.getErrorInfo(e,t,n,i);this.shouldTrackError(o,r)&&this.errorHandlers[n](o)}},e.prototype.getErrorInfo=function(e,t,n,r){var i,o=null!==(i=null==e?void 0:e.timeStamp)&&void 0!==i?i:performance.now(),a={timestamp:Math.round(o),type:t,message:"",stackTrace:"null"};if(this.isErrorLike(e)){var s=H(e)?e.reason.message||JSON.stringify(e.reason):e.message;a.message=s,a.stackTrace=H(e)?e.reason.stack:e.stack||"null"}return"snippet"===n&&(a.message="Install.js: ".concat(a.message)),r&&(a.message=r),a},e.prototype.shouldTrackError=function(e,t){var n=this.generateErrorKey(e),r=this.trackedErrors.has(n),i=this.trackedErrors.size>=this.maxErrors;return!(r||i&&!t)&&(this.trackedErrors.add(n),!0)},e.prototype.generateErrorKey=function(e){var t=e.stackTrace.match(/:(\d+):(\d+)/),n="";if(t){var r=t[1],i=t[2];n="-".concat(r,"-").concat(i)}return"".concat(e.message,"-").concat(e.type).concat(n)},e.prototype.isErrorLike=function(e){return!!e&&"object"==typeof e&&null!==e&&("reason"in e||"message"in e)},e}();function W(e,t){var n=G.getInstance();n.isContextRegistered("snippet")||n.registerContext("snippet",q),n.processError(e,t,"snippet")}function V(e,t,n){J("events",[{action:"".concat(e),label:"".concat(t),value:isNaN(Number(n))?0:Number(n),ts:Math.round(performance.now())}])}function q(e){!function(){if(!window.SpeedKit||!window.SpeedKit.track){var e=SpeedKit.trackingOptionsProvider.shouldSendTracking()&&!SpeedKit.trackingOptionsProvider.getTrackingOptions().performanceOnly;window.SpeedKit=window.SpeedKit||{},window.SpeedKit.navigateId=window.SpeedKit.navigateId||"".concat(E(32)),window.SpeedKit.group=window.SpeedKit.group||"sk",window.SpeedKit.track=V,e&&(window.SpeedKit.userId=window.SpeedKit.userId||M())}}(),J("jsErrors",[e])}function J(e,t){if(SpeedKit.trackingOptionsProvider.shouldSendTracking()){var n={userId:SpeedKit.userId},i={piId:SpeedKit.navigateId,testGroup:SpeedKit.group};i[e]=t;var o=SpeedKit.trackingOptionsProvider.getTrackingOptions().performanceOnly?i:L(i,n),a="https://".concat(r.appDomain||"{}.app.baqend.com".replace("{}",r.appName),"/v1");D("".concat(a,"/rum/pi"),o)}}var z=function(){function e(e){this.dataLayerEventListeners=[],this.dataLayerUpdateListeners=[],this.observedDataLayerEvents=[],this.seenIndices=[],this.dataLayerName=e}return e.prototype.onDataLayer=function(e){var t=this;this.dataLayerEventListeners.length||this.observeDataLayer((function(e,n){var r,i,o=window[t.dataLayerName];if(n&&(r=t.seenIndices).push.apply(r,n),Object.keys(o).filter((function(e){return!isNaN(Number(e))&&-1===t.seenIndices.indexOf(e)})).forEach((function(n){e.push(o[Number(n)]),t.seenIndices.push(n)})),e.length){(i=t.observedDataLayerEvents).push.apply(i,e);for(var a=0,s=t.dataLayerEventListeners;a<s.length;a++){var c=s[a];t.emitEventsToObserver(e,c)}}})),this.dataLayerEventListeners.push(e),this.emitEventsToObserver(this.observedDataLayerEvents,e)},e.prototype.emitEventsToObserver=function(e,t){for(var n=function(e){if(!e)return"continue";setTimeout((function(){return t(e)}))},r=0,i=e;r<i.length;r++){n(i[r])}},e.prototype.observeDataLayer=function(e){var t=this;this.onDataLayerReady((function(n){var r=n.push;n.push=function push(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var o=n.length,a=Array.prototype.slice.call(t),s=r.apply(n,a),c=Object.keys(n).filter((function(e){return!isNaN(Number(e))&&Number(e)>=o})),u=Math.round(performance.now()),d=a.map((function(e){var t;try{if("structuredClone"in window)return(t=window.structuredClone(e)).bqTs=u,t;(t="length"in e?Array.from(e):JSON.parse(JSON.stringify(e))).bqTs=u}catch(n){}return t||e}));return e(d,c),s},t.seenIndices=Object.keys(n).filter((function(e){return!isNaN(Number(e))})),e(n)}))},e.prototype.onDataLayerReady=function(e){this.dataLayerUpdateListeners.length||this.startDataLayerObserver(),this.dataLayerUpdateListeners.push(e);var t=window[this.dataLayerName];t&&e(t)},e.prototype.startDataLayerObserver=function(){var e=this,t=Object.getOwnPropertyDescriptor(window,this.dataLayerName),n=this.dataLayerUpdateListeners,r=window[this.dataLayerName],i=function(e){var t=r!==e;r=e,t&&e&&setTimeout((function(){n.forEach((function(t){return t(e)}))}))};if(!t||t.configurable)try{Object.defineProperty(window,this.dataLayerName,{configurable:!0,enumerable:!0,get:function(){return r},set:function(e){i(e)}})}catch(o){W(o,x.SNIPPET)}else setInterval((function(){i(window[e.dataLayerName])}),500)},e}();function Q(e,t){void 0===t&&(t=x.RUMPLUGIN);try{var n=e();Promise.resolve(n).catch((function(e){W(e,t)}))}catch(r){W(r,t)}}function $(e,t){void 0===t&&(t=x.CUSTOMPLUGIN);return function(){for(var n=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];Q((function(){return e.apply(n,r)}),t)}}var Y,Z=function(){function e(e){this.rumController=e,this.triggerFunctions={domInteractive:this.rumController.onDOMInteractive,load:this.rumController.onLoad,speedKitLoaded:this.rumController.onSpeedKitLoaded,dataLayer:this.rumController.onDataLayer.bind(this.rumController),dataLayerReady:this.rumController.onDataLayerReady.bind(this.rumController),visibilityHidden:this.rumController.onVisibilityHidden,dfDataReady:this.rumController.onDfDataReady,leavePage:this.rumController.onLeavePage.bind(this.rumController),gaReady:this.rumController.onGaReady.bind(this.rumController),gaTracking:this.rumController.onGaTracking.bind(this.rumController),click:this.rumController.onClick,nextTick:this.rumController.onNextTick,bfCacheNavigation:this.rumController.onBFCacheNavigation,navigation:this.rumController.onNavigation,scrollEnd:this.rumController.onScrollEnd.bind(this.rumController),piTimeout:this.rumController.onPiTimeout.bind(this.rumController)}}return e.prototype.initPlugin=function(e){var t=this,n=this.determineErrorType(e);if(e.shouldExecute)try{if(!e.shouldExecute())return}catch(o){W(o,n)}e.type||(e.type="Data");"string"==typeof e.on?e.on=this.triggerFunctions[e.on]||this.getUnknownTriggerFunction(e.on):e.on=e.on||function(e){return e()};var r=this.generateCallbackFunction(e);if("SoftNavigation"===e.type){var i=r;r=function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];(e=t.rumController).triggerSoftNavigation.apply(e,n),i.apply(void 0,n)}}Q((function(){return e.on.call(e,r,t.rumController)}),n)},e.prototype.generateCallbackFunction=function(e){var t=this,n=this.determineErrorType(e);return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(e.track){var o=e.track,a=[t.rumController].concat(r);Q((function(){return o.apply(e,a)}),n)}else Q((function(){if(e.key&&(e.set||e.append||e.setTiming)){var n=t.getControllerFunction(e),i=t.getTrackingFunction(e).apply(e,r);i&&"function"==typeof i.then||null!=i&&n.call(t.rumController,e.key,i)}}),n)}},e.prototype.getControllerFunction=function(e){return e.setTiming?this.rumController.setTiming:e.set?this.rumController.set:this.rumController.append},e.prototype.getTrackingFunction=function(e){return e.setTiming||e.set||e.append},e.prototype.getUnknownTriggerFunction=function(e){var t=this,n=function(r){null!==t.resolvePluginVariable(e)?r():setTimeout((function(){return n(r)}),200)};return n},e.prototype.resolvePluginVariable=function(e){for(var t=e.replace(/\[(\w+)\]/g,".$1"),n=(t=t.replace(/^\./,"")).split("."),r=window,i=0,o=n;i<o.length;i++){var a=o[i];if("object"!=typeof r||null==r)break;r=r[a]}return r||null},e.prototype.determineErrorType=function(e){return Object.getPrototypeOf(e).hasOwnProperty("hasOwnProperty")?x.CUSTOMPLUGIN:x.RUMPLUGIN},e}();function _(e){var t=new URL(e.sw||"/sw.js",location.origin);return t.origin+t.pathname}function X(e,t){var n=t.scriptURL;if(!n)return!1;var r=_(e);if(r===n.split("?")[0])return!0;var i=new URL(n).searchParams.get("othersw");return!!i&&r===i.split("?")[0]}function ee(e){return!!e&&!(e.scriptURL&&!X(r,e))}function te(e){if(r.fetchInUnload&&"serviceWorker"in t){var i=t[n].controller;if(i&&ee(i)){var o="https://".concat(r.appDomain||"{}.app.baqend.com".replace("{}",r.appName),"/v1");D("".concat(o,"/speedkit/signals?").concat("isUnloadPhase","=").concat(e),{}),i.postMessage({type:"page-unload",isUnloadPhase:e})}}}!function(e){e.softNavigation="softNavigation",e.pagehide="pagehide",e.visibilityChange="visibilityChange",e.beforeunload="beforeunload",e.unload="unload",e.timeout="timeout",e.softReplace="softReplace"}(Y||(Y={}));var ne=function(){function t(){this.callbacks=[],this.unloaded=!1,this.communicatedUnloadFlag=!1}return t.prototype.init=function(){var t=this;this.registerUnloadCommunication(),e.addEventListener("visibilitychange",(function(){"hidden"===e.visibilityState&&t.triggerLeavePage(Y.visibilityChange)})),"onpagehide"in window?window.addEventListener("pagehide",(function(){t.triggerLeavePage(Y.pagehide),SpeedKit.rumController.clearAllPiTimeouts(),SpeedKit.rumController.clearPeriodicSendTimer()})):(window.addEventListener("beforeunload",(function(){return t.triggerLeavePage(Y.beforeunload)})),window.addEventListener("unload",(function(){return t.triggerLeavePage(Y.unload)})))},t.prototype.onLeavePage=function(e){this.callbacks.push(e)},t.prototype.executeRemainingCallbacks=function(e){if(!this.unloaded)for(var t=0,n=this.callbacks;t<n.length;t++){(0,n[t])(e)}},t.prototype.registerUnloadCommunication=function(){var t=this;e.addEventListener("visibilitychange",(function(){"hidden"===e.visibilityState?t.communicateUnloadFlag(!0):"visible"===e.visibilityState&&t.unloaded&&(t.unloaded=!1,t.communicateUnloadFlag(!1))}),{capture:!0}),window.addEventListener("beforeunload",(function(){return t.communicateUnloadFlag(!0)}),{capture:!0}),"onpagehide"in window?window.addEventListener("pagehide",(function(){return t.communicateUnloadFlag(!0)}),{capture:!0}):window.addEventListener("unload",(function(){return t.communicateUnloadFlag(!0)}),{capture:!0})},t.prototype.communicateUnloadFlag=function(e){this.communicatedUnloadFlag!==e&&(this.communicatedUnloadFlag=e,te(e))},t.prototype.triggerLeavePage=function(e){var t=SpeedKit,n=t.rumController;n.getCurrentRumImpression().isBlocked()&&n.resetToPrevious(),this.executeRemainingCallbacks(e),nt(t,e),[Y.unload,Y.beforeunload,Y.visibilityChange,Y.pagehide].includes(e)&&(this.unloaded=!0)},t.prototype.isUnloaded=function(){return this.unloaded},t}(),re=function(){function e(){this.gaObserver=[]}return e.prototype.onGaTracking=function(e){if(!this.gaObserver.length){var t=this.gaObserver;this.observeGa((function(e){for(var n=0,r=t;n<r.length;n++){r[n].apply({},e)}}))}this.gaObserver.push(e)},e.prototype.onGaReady=function(e){I(this.waitForGa.bind(this,e))},e.prototype.observeGa=function(e){I(this.initGa.bind(this,e))},e.prototype.initGa=function(e){var t=this;this.waitForGa((function(){window.ga.getAll().forEach((function(n){var r=n.get("sendHitTask");n.set("sendHitTask",(function(n){r.call(t,n),e.call(t,n)}))}))}))},e.prototype.waitForGa=function(e){var t=this,n=window.ga;n?n((function(){return e()})):setTimeout((function(){return t.waitForGa(e)}),500)},e}();function ie(e){return e.className?"object"==typeof e.className?e.className.animVal.toString():e.className:""}function oe(e){return e.getAttribute("formAction")||e.getAttribute("action")||e.getAttribute("href")||e.getAttribute("src")||e.getAttribute("code")||e.getAttribute("codebase")||""}function ae(e){window.addEventListener("click",(function(t){if(t.isTrusted){var n,r=t.target;r&&e({element:n=r,elementClasses:ie(n),elementId:n.getAttribute("for")||n.id||"",elementTarget:n.getAttribute("formTarget")||n.getAttribute("target")||"",elementUrl:oe(n)},t)}}),{passive:!0,capture:!0})}function se(e){window.addEventListener("pageshow",(function(t){t.persisted&&setTimeout(e,0)}))}function ce(e,t,n){void 0===t&&(t=""),void 0===n&&(n=1024);try{var r=e.id||"";if(r=ue(r)<=3?de(r):"","BODY"===e.tagName||r){var i="".concat(r?[e.tagName,r].join("#"):e.tagName," ").concat(t).trim();return i.length<=n?i:t}var o=function(e,t){for(var n="",r=[].slice.apply(e).sort(),i=0;i<r.length;i+=1){var o=r[i];if(ue(o)<=t){var a=de(o);""!==a&&(n+=".".concat(a))}}return n}(e.classList,3);return(o="> ".concat(e.tagName).concat(o," ").concat(t).trim()).length>n?t:e.parentElement?ce(e.parentElement,o,n):o}catch(a){return""}}function ue(e){var t=e.match(/[^A-Za-z0-9_-]/g);return t?t.length:0}function de(e){return"undefined"!=typeof CSS&&"function"==typeof CSS.escape?CSS.escape(e):ue(e)>0?"":e}var le,pe,fe,ge=function(){function e(){this.callbacks=[],this.seenTimings=[]}return e.prototype.init=function(){var e=this;if(this.isResourceTimingSupported()){var t=window.performance.getEntriesByType("resource");t.length&&(this.seenTimings=t,this.executeRegisteredCallbacks(t)),new PerformanceObserver((function(t){var n=t.getEntriesByType("resource").filter((function(e){return!!e.name}));n.length>0&&e.executeRegisteredCallbacks(n),e.seenTimings=e.seenTimings.concat(n)})).observe({entryTypes:["resource"]})}},e.prototype.onResourceTimings=function(e){this.callbacks.push(e),this.seenTimings.length>0&&e(this.seenTimings)},e.prototype.executeRegisteredCallbacks=function(e){for(var t=0,n=this.callbacks;t<n.length;t++){(0,n[t])(e)}},e.prototype.isResourceTimingSupported=function(){return"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.indexOf("resource")>=0},e}();function ve(){return window.performance?performance.timing.navigationStart||Math.trunc(performance.timeOrigin):0}function he(e,t){var n=t?"".concat(e,"-").concat(r.secondaryTestId):e;return t&&n.includes("-unsupported")&&(n="".concat(n.replace(/-unsupported/g,""),"-unsupported")),n||"None"}function me(e){return"regexp:/".concat(e.source,"/").concat(e.flags||"")}function ye(e,t,n){return void 0===n&&(n=1),t instanceof Array?t.some((function(t){return ye(e,t,n)})):t instanceof RegExp?t.test(e):2===n?e.toLowerCase()===t.toLowerCase():String.prototype.startsWith?e.toLowerCase().startsWith(t.toLowerCase()):e.toLowerCase().substring(0,t.length)===t.toLowerCase()}function Se(e,t,n){return void 0===n&&(n=1),!(!t||Array.isArray(t)&&!t.length)&&ye(e,t,n)}function be(e){return"string"==typeof e&&/^(\s*(function\s*\(|(\([\w\s,]*\)|[A-Za-z]+)\s*=>))/.test(e)}function we(e){return function(e){return/^(?:(?:\w+?:)?\/\/)?(.*)$/.exec(e)[1]}(function(e){try{var t=new URL(e);return t.hash&&(t.hash=""),t.toString()}catch(r){var n=e.match(/([^#]+)#/);return n&&n[1]?n[1]:e}}(e))}function ke(e){return new Function("return ".concat(e))()}function Te(t,n,r){if(!function(e){if(!e.contentType)return!0;return-1!==e.contentType.indexOf(pe.Document)||-1!==e.contentType.indexOf(pe.Navigate)}(t))return!1;var i=[{condition:t.pathname,matcher:function(){return function(e,t,n){var r;return ye((null===(r=n.ruleSetConfig)||void 0===r?void 0:r.version)&&n.ruleSetConfig.version>=2?t.pathname:"".concat(t.pathname).concat(t.search),e.pathname)}(t,n,r)}},{condition:t.host,matcher:function(){return function(e,t){return ye(t.host,e.host)}(t,n)}},{condition:t.url,matcher:function(){return function(e,t){return ye(we(t.href),e.url)}(t,n)}},{condition:t.cookie,matcher:function(){return function(t,n){var r=t.cookie,i=be(r);if("function"==typeof t.cookie||i)try{return(i?ke(r):r)(n.toString(),e.cookie)}catch(o){return!1}return e.cookie.split(";").some((function(e){return ye(e.trim(),r)}))}(t,n)}},{condition:t.storage,matcher:function(){return function(e,t,n){var r=e.storage;try{var i=t.watchStorageKeys;if(!i||0===i.length)return!1;var o=be(r),a=function(e){var t={};return[localStorage,sessionStorage].forEach((function(n){for(var r=0;r<n.length;r+=1){var i=n.key(r);null!==i&&Ce(i,e)&&(t[i]=n.getItem(i)||"")}})),t}(i);if("function"==typeof r||o)try{return(o?ke(r):r)(n.toString(),a)}catch(s){return!1}return Object.entries(a).map((function(e){var t=e[0],n=e[1];return"".concat(t,"=").concat(n)})).some((function(e){return ye(e,r)}))}catch(c){return!1}}(t,r,n)}}].filter((function(e){return void 0!==e.condition})).map((function(e){return e.matcher()}));return i.length>0&&i.every((function(e){return e}))}function Ce(e,t){return t.some((function(t){return"string"==typeof t?t===e:t.test(e)}))}function Pe(e){return e?e instanceof Array?e.every((function(e){return"string"==typeof e||e instanceof RegExp}))?[{params:e}]:e:[{params:e}]:[]}function Ne(e,t){var n;if("undefined"==typeof URLSearchParams)return e;for(var r=new URL(e,location.origin),i=function(e,t){for(var n=[],r=0,i=Pe(t.stripQueryParams);r<i.length;r++){var o=i[r];if(!o.rules||o.rules.some((function(n){return Te(n,e,t)})))(!o.enabledSites||o.enabledSites.some((function(n){return Te(n,e,t)})))&&(n=n.concat(o.params))}return n}(r,t),o=0,a=Array.from(r.searchParams.keys());o<a.length;o++){var s=a[o];(Se(s,i,null===(n=t.ruleSetConfig)||void 0===n?void 0:n.version)||"bqpassthrough"===s||"bqpreloadrequest"===s)&&r.searchParams.delete(s)}return r.href}function Ie(e){var r=t[n];if(r&&void 0!==r.ready&&"function"==typeof r.ready.then)return r.ready.then((function(t){var n;if(t.active&&"activated"===t.active.state)return t.active.postMessage(e);null===(n=t.active)||void 0===n||n.addEventListener("statechange",(function(){var n;"activated"===(null===(n=t.active)||void 0===n?void 0:n.state)&&t.active.postMessage(e)}))}))}!function(e){e.BFCACHE="bfcache",e.HARD="hard",e.SOFT="soft"}(le||(le={})),function(e){e.Document="document",e.Navigate="navigate",e.Fetch="fetch",e.Audio="audio",e.Video="video",e.Track="track",e.PDF="pdf",e.Image="image",e.Style="style",e.Script="script",e.Font="font",e.Undefined="undefined"}(pe||(pe={})),function(e){e[e.navigate=0]="navigate",e[e.reload=1]="reload",e[e.back_forward=2]="back_forward",e[e.prerender=3]="prerender",e[e.softNavigation=4]="softNavigation",e[e.softBackForward=5]="softBackForward",e[e.softReplace=6]="softReplace",e[e.reserved=255]="reserved"}(fe||(fe={}));var Ee=function(){function e(e){var t=this;this.navigationCallbacks=[],this.leavePageHandler=e,I((function(){t.triggerNavigation(le.HARD)})),se((function(){t.triggerNavigation(le.BFCACHE)}))}return e.prototype.onNavigation=function(e){this.navigationCallbacks.push(e)},e.prototype.triggerNavigation=function(e){var t=this;setTimeout((function(){for(var n=0,r=t.navigationCallbacks;n<r.length;n++){var i=r[n];try{i(e)}catch(o){W(o,x.RUMPLUGIN)}}}),0)},e.prototype.triggerSoftNavigation=function(e,t){var n=this;try{if(!this.isValidNavigation(e))return!1;var r=null==t?void 0:t.provisional,i=SpeedKit;if(r)return this.leavePageHandler.triggerLeavePage(Y.softReplace),this.initializeSoftNavigationImpression(e,t,!0),r.then((function(){i.rumController.getCurrentRumImpression().unblock(),n.promoteSoftNavigationImpression(e,t)})).catch((function(){i.rumController.resetToPrevious()})),!0;var o=i.rumController;o.getCurrentRumImpression().isBlocked()&&o.resetToPrevious(),this.leavePageHandler.triggerLeavePage(Y.softNavigation),this.initializeSoftNavigationImpression(e,t),this.promoteSoftNavigationImpression(e,t)}catch(a){W(a,x.RUMPLUGIN)}return!0},e.prototype.initializeSoftNavigationImpression=function(e,t,n){void 0===n&&(n=!1);var i=SpeedKit,o=Math.round((null==t?void 0:t.timestamp)||performance.now()),a=ve()+o,s=E(32),c={userId:i.userId},u={navigationStart:a,hardNavigation:i.navigateId,softNavigationOffset:o,testGroup:i.group,piId:s,testId:he(i.splitTestId,!!r.secondaryGroup)},d=i.rumController;d.initRumImpression({baseDimensions:u,userData:c,blocked:n,navigationType:le.SOFT,onCollapse:null==t?void 0:t.onCollapse});try{var l=new URL(e,location.origin);d.set("url",l.href,!1,Re.Once)}catch(p){}},e.prototype.promoteSoftNavigationImpression=function(e,t){var n,r=SpeedKit;null===(n=Ie({type:"increment-soft-pi",data:{url:e}}))||void 0===n||n.catch((function(e){return W(e,x.RUMPLUGIN)})),this.trackMetadata(r.rumController,t),this.exposeMetaData(r.rumController,t),this.triggerNavigation(le.SOFT),nt(r)},e.prototype.exposeMetaData=function(e,t){var n=Math.round((null==t?void 0:t.timestamp)||performance.now());SpeedKit.softNavigate={id:e.getCurrentRumImpression().getPiId(),start:n,softResourcesDuration:null==t?void 0:t.softResourcesDuration,softRenderDuration:null==t?void 0:t.softRenderDuration}},e.prototype.trackMetadata=function(e,t){var n,r=null!==(n=null==t?void 0:t.navigationType)&&void 0!==n?n:fe.softNavigation;e.set("navigationType",r,!1,Re.Once),e.set("softResourcesDuration",null==t?void 0:t.softResourcesDuration),e.set("softRenderDuration",null==t?void 0:t.softRenderDuration)},e.prototype.isValidNavigation=function(e){try{var t=Ne(SpeedKit.rumController.getCurrentRumImpression().getDataByKey("url"),r),n=Ne(e,r),i=new URL(t,location.origin),o=new URL(n,location.origin);return i.hash="",o.hash="",i.href!==o.href}catch(a){}return!1},e}();function Oe(e,t){return!(Array.isArray(e)&&!Array.isArray(t)||!Array.isArray(e)&&Array.isArray(t))&&!(typeof e!=typeof t)&&(Array.isArray(e)?e.length===t.length:"object"==typeof e?function(e,t){var n=0,r=0;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&(n+=1,!Oe(e[i],t[i])))return!1;for(var o in t)r+=1;return n===r}(e,t):e===t)}var Re,De=function(){function i(e,t,n){var r;this.beaconIndex=0,this.piFlagSent=!1,this.sendingScheduled=!1,this.blocked=!1,this.init=this.getInit(n.baseDimensions,n.userData),this.leavePageHandler=e,this.piTimeoutHandler=t,this.navigationType=n.navigationType,this.sentTracking=Object.create(this.init),this.unsentTracking={},this.customTimers={},this.customDimensions=[{name:"customPiDimensions",type:"PiDimension",dimensionData:{}},{name:"customSessionDimensions",type:"SessionDimension",dimensionData:{}}],this.enforcedTopLevelAttributes=[{key:"pageType",defaultValue:"None"}],this.blocked=null!==(r=n.blocked)&&void 0!==r&&r,this.onCollapse=n.onCollapse||function(e){return e}}return i.prototype.append=function(e,t,n){void 0===n&&(n=!0),this.reportTracking(e,t,Re.Append),n&&this.sendCollapsed()},i.prototype.calculateRelative=function(e){if(void 0!==e)return e-this.init.navigationStart},i.prototype.getBeaconIndex=function(){return this.beaconIndex},i.prototype.getPiId=function(){return this.init.piId},i.prototype.reportEvent=function(e,t,n,r){if(!(void 0===t||t<0)&&(this.reportTracking(e,t),void 0!==r&&n)){var i=r-t;if(i<0)return;this.reportTracking(n,i)}},i.prototype.sendCollapsed=function(){var e=this;this.leavePageHandler.isUnloaded()?this.sendCurrentTracking():this.sendingScheduled||(this.sendingScheduled=!0,setTimeout((function(){e.sendingScheduled=!1,e.sendCurrentTracking()}),100))},i.prototype.sendCurrentTracking=function(t){if(this.shouldTrack(t)){var n=this.getEnrichedDelta();if(this.unsentTracking=Object.create(null),n){t&&this.prepareUnloadBeacon(n,t);var i="";if(0===n.beaconIndex&&this.piTimeoutHandler.addTimeout(this.init.piId),!e.prerendering&&!this.piFlagSent){this.piFlagSent=!0;var o=this.navigationType===le.SOFT?"&bqpi=0;sp=1":"&bqpi=1";i="?pi=1".concat(this.shouldAppendPiCount()?o:"")}D("".concat(r.appURL,"/rum/pi").concat(i),n)}}},i.prototype.sendUnvalidated=function(e){if(this.shouldTrack()){var t=this.getEnrichedDelta(e);t&&D("".concat(r.appURL,"/rum/pi"),t)}},i.prototype.set=function(e,t,n,r){var i;void 0===n&&(n=!0),void 0===r&&(r=!1),i="boolean"==typeof r?r?Re.Force:Re.Override:r;var o=this.reportTracking(e,t,i);return n&&this.sendCollapsed(),o},i.prototype.setTiming=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=!1),"number"==typeof t?this.set(e,Math.round(t-this.init.navigationStart),n,r):this.set(e,t,n,r)},i.prototype.trackCustomEvent=function(e,t,n,r,i){void 0===r&&(r=!0),void 0===i&&(i=!0);var o={action:"".concat(e),label:"".concat(t),value:isNaN(Number(n))?0:Number(n)};i&&(o.ts=Math.round(performance.now())),this.reportTracking("events",o,Re.Append),r&&this.sendCollapsed()},i.prototype.trackCustomTimer=function(e,t,n){void 0===n&&(n=!0),this.reportCustomTimer(e,t),n&&this.sendCollapsed()},i.prototype.updateBaseDimension=function(e,t){this.init[e]=t},i.prototype.getInit=function(e,t){return SpeedKit.trackingOptionsProvider.getTrackingOptions().performanceOnly?e:L(e,t)},i.prototype.reportTracking=function(e,t,n){if(void 0===n&&(n=Re.Override),Ge.isEmptyValue(t))return!1;var r=void 0;if("object"==typeof t){var i=JSON.parse(JSON.stringify(t));if(r=Ge.cleanObject(i),Ge.isEmptyValue(r))return!1}var o=r||t,a=this.customDimensions.filter((function(t){return Object.prototype.hasOwnProperty.call(t.dimensionData,e)}))[0];if(a)return this.reportCustomDimension(e,o,a.type);if(Object.prototype.hasOwnProperty.call(this.customTimers,e))return this.reportCustomTimer(e,o);if(n===Re.Append)return this.unsentTracking[e]=this.getConcatenatedUnsent(e,o),!0;if(!Array.isArray(o)&&Oe(o,this.sentTracking[e])&&n!==Re.Force)return!1;var s=this.unsentTracking&&this.unsentTracking.hasOwnProperty&&Object.prototype.hasOwnProperty.call(this.unsentTracking,e);return(!Object.prototype.hasOwnProperty.call(this.sentTracking,e)&&!s||n!==Re.Once&&!this.isTopLevelDimension(e))&&(this.unsentTracking[e]=o,!0)},i.prototype.reportCustomDimension=function(e,t,n){var r="string"==typeof t?t:JSON.stringify(t),i=this.customDimensions.filter((function(e){return e.type===n}))[0];if(!i)return!1;if(i.dimensionData[e]&&"null"!==i.dimensionData[e])return!1;i.dimensionData[e]=r;var o=this.unsentTracking[i.name]||{};return o[e]=r,this.unsentTracking[i.name]=o,!0},i.prototype.reportCustomTimer=function(e,t){if("number"!=typeof t)return!1;if(this.customTimers[e]&&-1!==this.customTimers[e])return!1;this.customTimers[e]=t;var n=this.unsentTracking.customTimers||{};return n[e]=t,this.unsentTracking.customTimers=n,!0},i.prototype.getConcatenatedUnsent=function(e,t){var n=Array.isArray(t)?t:[t],r=void 0!==this.unsentTracking[e]?this.unsentTracking[e]:[];return(Array.isArray(r)?r:[r]).concat(n)},i.prototype.isTopLevelDimension=function(e){return!!this.enforcedTopLevelAttributes.filter((function(t){return t.key===e})).length},i.prototype.getEnrichedDelta=function(e){var t=e||this.unsentTracking;if(0===Object.keys(t).length)return null;var n=Object.create(null);for(var r in this.init)Object.prototype.hasOwnProperty.call(this.init,r)&&(n[r]=this.init[r]);for(var r in n.beaconIndex=this.beaconIndex,n.ts=Math.round(performance.now()),this.applyToSentTracking(t),t)n[r]=t[r];return this.beaconIndex+=1,n},i.prototype.applyToSentTracking=function(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.sentTracking[t]=Array.isArray(e[t])&&Array.isArray(this.sentTracking[t])?this.sentTracking[t].concat(e[t]):e[t])},i.prototype.initEnforcedTopLevelAttributes=function(e){var t=this;this.enforcedTopLevelAttributes.forEach((function(n){!!e.filter((function(e){return e.key===n.key})).length||t.reportTracking(n.key,n.defaultValue)}))},i.prototype.initCustomDimensionData=function(e){var t=this;e.forEach((function(e){e.key&&(t.customDimensions.every((function(t){return t.type!==e.type}))||t.isTopLevelDimension(e.key)||t.reportCustomDimension(e.key,"null",e.type))}))},i.prototype.initCustomTimerData=function(e){var t=this;e.forEach((function(e){e.key&&"CustomTimer"===e.type&&(t.customTimers[e.key]=-1)}))},i.prototype.getCollapsedUnsent=function(){var e;try{e=this.onCollapse(this.unsentTracking)}catch(t){return W(t,x.RUMPLUGIN),null}return e&&("object"!=typeof e||Array.isArray(e))?(W(new Error("onCollapse returned invalid type: ".concat(typeof e)),x.RUMPLUGIN),null):e&&0!==Object.keys(e).length?e:null},i.prototype.getTrackedData=function(){var e=Object.create(null);for(var t in this.init)Object.prototype.hasOwnProperty.call(this.init,t)&&(e[t]=this.init[t]);for(var t in this.sentTracking)Object.prototype.hasOwnProperty.call(this.sentTracking,t)&&(e[t]=this.sentTracking[t]);return e},i.prototype.getDataByKey=function(e){return Object.prototype.hasOwnProperty.call(this.unsentTracking,e)?Array.isArray(this.unsentTracking[e])&&Array.isArray(this.sentTracking[e])?this.sentTracking[e].concat(this.unsentTracking[e]):this.unsentTracking[e]:Object.prototype.hasOwnProperty.call(this.sentTracking,e)?this.sentTracking[e]:Object.prototype.hasOwnProperty.call(this.init,e)?this.init[e]:void 0},i.prototype.unblock=function(){this.blocked=!1},i.prototype.isBlocked=function(){return this.blocked},i.prototype.shouldTrack=function(e){return!this.blocked&&(!(!e&&this.beaconIndex>=90)&&!!SpeedKit.trackingOptionsProvider.shouldSendTracking())},i.prototype.prepareUnloadBeacon=function(e,t){if(e.unloadType=t,this.sentTracking.unloadType=t,e.events)for(var n=0,r=e.events;n<r.length;n++){delete r[n].ts}return e},i.prototype.shouldAppendPiCount=function(){var e="B"!==r.group,i=!SpeedKit.trackingOptionsProvider.getTrackingOptions().pageDisabled;return(!ee(t[n]?t[n].controller:null)||this.navigationType===le.BFCACHE)&&i&&e},i}(),Le=function(){function e(){var e=this;this.callbacks=[],this.scrolling=!1,this.scrollStartTime=0,this.scrollTimer=null,window.addEventListener("scroll",(function(){e.scrolling||(e.scrollStartTime=performance.now()),e.scrolling=!0,e.scrollTimer&&window.clearTimeout(e.scrollTimer),e.scrollTimer=window.setTimeout((function(){e.scrolling=!1,e.executeCallbacks(e.scrollStartTime,performance.now())}),150)}),{passive:!0})}return e.prototype.onScrollEnd=function(e){this.callbacks.push(e)},e.prototype.executeCallbacks=function(e,t){for(var n=0,r=this.callbacks;n<r.length;n++){(0,r[n])(e,t)}},e}(),Ae=function(){function e(e){this.timers={},this.callbacks=[],this.leavePageHandler=e}return e.prototype.addTimeout=function(e){var t=this;this.timers[e]=window.setTimeout((function(){t.handleTimeout(e)}),174e4)},e.prototype.handleTimeout=function(e){for(var t=0,n=this.callbacks;t<n.length;t++){(0,n[t])(e)}e===SpeedKit.rumController.getCurrentRumImpression().getPiId()&&this.leavePageHandler.triggerLeavePage(Y.timeout),delete this.timers[e]},e.prototype.clearAllPiTimeouts=function(){for(var e in this.timers)Object.prototype.hasOwnProperty.call(this.timers,e)&&clearTimeout(this.timers[e]);this.timers={}},e.prototype.onPiTimeout=function(e){this.callbacks.push(e)},e}();!function(e){e.Override="override",e.Append="append",e.Force="force",e.Once="once"}(Re||(Re={}));var xe,Ke,Ue,Be,Fe,je,Me,He,Ge=function(){function t(t,n){var r=this;this.rumImpressions=[],this.periodicSendTimer=null,this.dataLayerHandler=new z(SpeedKit.trackingOptionsProvider.getTrackingOptions().dataLayer),this.leavePageHandler=new ne,this.navigationHandler=new Ee(this.leavePageHandler),this.gATrackingHandler=new re,this.resourceTimingsHandler=new ge,this.scrollEventHandler=new Le,this.piTimeoutHandler=new Ae(this.leavePageHandler),this.onDOMInteractive=function(e){return I($(e))},this.onLoad=function(e){return N($(e))},this.onSpeedKitLoaded=function(t){return n=$(t),void(e.querySelector("html.speed-kit-dynamic-loaded")?setTimeout(n,0):e.addEventListener("speed-kit-loaded",(function(){return n()})));var n},this.onGaReady=function(e){return r.gATrackingHandler.onGaReady($(e))},this.onGaTracking=function(e){return r.gATrackingHandler.onGaTracking($(e))},this.onDataLayer=function(e){return r.dataLayerHandler.onDataLayer($(e))},this.onDataLayerReady=function(e){return r.dataLayerHandler.onDataLayerReady($(e))},this.onDfDataReady=function(t){return n=$(t),void(SpeedKit&&SpeedKit.dynamicBlocks&&SpeedKit.dynamicBlocks.complete&&SpeedKit.dynamicBlocks.dataComplete||!e.querySelector("html.speed-kit-dynamic-loading")?setTimeout(n,0):e.addEventListener("dynamic-fetcher-data-ready",(function(){return n()})));var n},this.onVisibilityHidden=function(t){return n=$(t),void e.addEventListener("visibilitychange",(function(){"hidden"===e.visibilityState&&n()}),!0);var n},this.onLeavePage=function(e){return r.leavePageHandler.onLeavePage($(e))},this.onScrollEnd=function(e){return r.scrollEventHandler.onScrollEnd($(e))},this.onClick=function(e){return ae($(e))},this.onNextTick=function(e){return t=$(e),void setTimeout(t,0);var t},this.getSelector=ce,this.onNavigation=function(e){r.navigationHandler.onNavigation($(e))},this.onBFCacheNavigation=function(e){return se($(e))},this.onPiTimeout=function(e){return r.piTimeoutHandler.onPiTimeout($(e))},this.pluginHandler=new Z(this),this.onResourceTimings=function(e){return r.resourceTimingsHandler.onResourceTimings($(e))},this.triggerSoftNavigation=this.navigationHandler.triggerSoftNavigation.bind(this.navigationHandler),this.clearAllPiTimeouts=this.piTimeoutHandler.clearAllPiTimeouts.bind(this.piTimeoutHandler),this.safely=function(e){return Q(e,x.CUSTOMPLUGIN)};var i=new De(this.leavePageHandler,this.piTimeoutHandler,{baseDimensions:t,userData:n,navigationType:le.HARD});this.currentRumImpression=i,this.rumImpressions.push(i),this.hardNavigation=this.rumImpressions[0]}return t.prototype.initializePlugins=function(){var e=this.getPlugins();this.initDimensions(e),e.forEach(this.pluginHandler.initPlugin,this.pluginHandler),this.leavePageHandler.init(),this.resourceTimingsHandler.init(),this.startPeriodicSend()},t.prototype.initDimensions=function(e){this.initCustomTimerData(e),this.initCustomDimensionData(e),this.initEnforcedTopLevelAttributes(e)},t.prototype.reinitialize=function(e){var t=new De(this.leavePageHandler,this.piTimeoutHandler,e);this.rumImpressions=[],this.rumImpressions.push(t),this.hardNavigation=this.rumImpressions[0],this.previousRumImpression=void 0,this.currentRumImpression=t;var n=this.getPlugins();this.initDimensions(n),this.startPeriodicSend()},t.prototype.initRumImpression=function(e){this.previousRumImpression=this.currentRumImpression;var t=new De(this.leavePageHandler,this.piTimeoutHandler,e);this.rumImpressions.push(t),this.currentRumImpression=t;var n=this.getPlugins();this.initDimensions(n)},t.prototype.getCurrentRumImpression=function(){return this.currentRumImpression},t.prototype.getPreviousRumImpression=function(){return this.previousRumImpression},t.prototype.reportEvent=function(e,t,n,r){this.currentRumImpression.reportEvent(e,t,n,r)},t.prototype.sendCurrentTracking=function(e){if(this.hardNavigation!==this.currentRumImpression)return this.hardNavigation.sendCurrentTracking(e),this.currentRumImpression.sendCurrentTracking(e),void this.resetPeriodicSendTimer();this.currentRumImpression.sendCurrentTracking(e),this.resetPeriodicSendTimer()},t.prototype.updateBaseDimension=function(e,t){this.currentRumImpression.updateBaseDimension(e,t)},t.prototype.trackCustomEvent=function(e,t,n,r,i){void 0===r&&(r=!0),void 0===i&&(i=!0),this.currentRumImpression.trackCustomEvent(e,t,n,r,i)},t.prototype.trackCustomTimer=function(e,t,n){void 0===n&&(n=!0),this.currentRumImpression.trackCustomTimer(e,t,n)},t.prototype.set=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=!1),this.currentRumImpression.set(e,t,n,r)},t.prototype.getImpressionById=function(e){for(var t,n=0,r=this.rumImpressions;n<r.length;n++){var i=r[n];i.getPiId()===e&&(t=i)}return t},t.prototype.setTiming=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=!1),this.currentRumImpression.setTiming(e,t,n,r)},t.prototype.append=function(e,t,n){void 0===n&&(n=!0),this.currentRumImpression.append(e,t,n)},t.prototype.getBeaconIndex=function(){return this.currentRumImpression.getBeaconIndex()},t.prototype.calculateRelative=function(e){return this.currentRumImpression.calculateRelative(e)},t.prototype.getHardNavigation=function(){return this.hardNavigation},t.cleanObject=function(e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))if(t.isEmptyValue(e[n]))delete e[n];else if("object"==typeof e[n]){var r=t.cleanObject(e[n]);if(t.isEmptyValue(r)){delete e[n];continue}e[n]=r}if(Array.isArray(e)&&e.length>0){var i=e.filter((function(e){return void 0!==e}));return i.length>0?i:void 0}return Object.keys(e).length>0?e:void 0},t.isEmptyValue=function(e){return null==e||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length},t.prototype.getPlugins=function(){return window.SpeedKit&&window.SpeedKit.rumPlugins?window.SpeedKit.rumPlugins:[]},t.prototype.initEnforcedTopLevelAttributes=function(e){this.currentRumImpression.initEnforcedTopLevelAttributes(e)},t.prototype.initCustomDimensionData=function(e){this.currentRumImpression.initCustomDimensionData(e)},t.prototype.initCustomTimerData=function(e){this.currentRumImpression.initCustomTimerData(e)},t.prototype.startPeriodicSend=function(){var e=this;SpeedKit.skSupported&&null===this.periodicSendTimer&&(this.periodicSendTimer=window.setInterval((function(){return e.sendCollapsed()}),6e4))},t.prototype.clearPeriodicSendTimer=function(){null!==this.periodicSendTimer&&(window.clearInterval(this.periodicSendTimer),this.periodicSendTimer=null)},t.prototype.resetPeriodicSendTimer=function(){this.clearPeriodicSendTimer(),this.startPeriodicSend()},t.prototype.sendCollapsed=function(){if(this.hardNavigation!==this.currentRumImpression)return this.hardNavigation.sendCollapsed(),void this.currentRumImpression.sendCollapsed();this.currentRumImpression.sendCollapsed()},t.prototype.getTrackedData=function(){return this.currentRumImpression.getTrackedData()},t.prototype.resetToPrevious=function(){var e=this.getPreviousRumImpression();if(e){if(this.currentRumImpression.isBlocked()){var t=this.currentRumImpression.getCollapsedUnsent();t&&e.sendUnvalidated(t),this.currentRumImpression=e,this.rumImpressions.splice(this.rumImpressions.length-1,1),this.previousRumImpression=this.rumImpressions[this.rumImpressions.indexOf(e)-1]}}else this.currentRumImpression.unblock()},t}();function We(e){return parseFloat((1-e).toFixed(2))}function Ve(){var e=t.userAgent;return e.indexOf("Safari")>-1&&-1===e.indexOf("Edge")&&-1===e.indexOf("Chrome")}function qe(){return!Ve()&&"undefined"!=typeof PerformanceNavigationTiming&&!!performance.getEntriesByType}function Je(){var e=performance.navigation;if(!qe())return ze(e.type);var t=performance.getEntriesByType("navigation");return t[0]&&"toJSON"in t[0]?fe[t[0].type]:ze(e.type)}function ze(e){return"number"!=typeof e?fe[e]:e}function Qe(e){var t=function(){var e=window.performance.timing;if(!qe())return e;var t=performance.getEntriesByType("navigation");if(t[0]&&"toJSON"in t[0])return t[0].toJSON();return e}(),n=window.performance.timing,r="entryType"in t,i={};for(var o in t)if("number"==typeof t[o]){var a=0!==t[o],s=n&&("number"!=typeof n[o]||0!==n[o]);a||s?r?i[o]=Math.trunc(t[o]):t[o]>=e&&(i[o]=t[o]-e):i[o]=-1}else i[o]=t[o];var c=n.domLoading-e,u=i.finalResponseHeadersStart,d=i.responseStart;return i.ttfb=r?Math.max(u||0,d):c,i.domLoading=c,i.navigationStart=e,i}function $e(){return"undefined"!=typeof PerformanceNavigationTiming&&performance.getEntriesByType&&"document"!==performance.getEntriesByType("navigation")[0].name?performance.getEntriesByType("navigation")[0].name:location.href}function Ye(e,t){return Ze(e)===Ze(t)}function Ze(e){return null==e?void 0:e.replace("-debug","").replace("-unsupported","")}function _e(){return t.serviceWorker&&t.serviceWorker.controller?t.serviceWorker.controller.scriptURL:null}function Xe(e,t){e.lastNavigate.cdnBackendTime&&t.set("cdnBackendTime",e.lastNavigate.cdnBackendTime,!1),e.lastNavigate.cdnPoP&&t.set("cdnPop","".concat(e.lastNavigate.cdnPoP),!1);var n=function(){var e=null;try{e=new URL(r.sw||"",window.location.origin).searchParams.get("r")}catch(t){}return e}();n&&t.set("configVersion","".concat(n),!1)}function et(e,t){var n,i,o,a=e.softNavigate?_e():e.controllingServiceWorker;a&&t.set("controllingSw",a,!1),e.lastNavigate.disconnectCause!==Fe.None&&e.lastNavigate.disconnectCause!==Fe.DashboardDisabled&&[xe.Error,xe.Disconnected].indexOf(e.lastNavigate.responseCause)>=0&&t.set("disconnectCause",e.lastNavigate.disconnectCause,!1),"number"==typeof e.split&&t.set("split",(n=e.group,i=e.split,o="A"===n&&"number"==typeof r.secondarySplit?"B"===r.secondaryGroup?We(r.secondarySplit):r.secondarySplit:1,i*o),!1),e.softNavigate&&(t.set("hardNavigation",e.navigateId),t.set("softResourcesDuration",e.softNavigate.softResourcesDuration,!1),t.set("softRenderDuration",e.softNavigate.softRenderDuration,!1)),e.lastNavigate.matchingRuleTags&&t.set("matchingRuleTags",e.lastNavigate.matchingRuleTags,!1,Re.Once)}function tt(t,n){var r,i=ve(),o=e.prerendering||!!t.lastNavigate.activationStart&&t.lastNavigate.activationStart>0;n.reportEvent("snippetExecution",t.executionTime-i),n.set("variation",t.lastNavigate.variation,!1),n.set("assetCause",t.lastNavigate.assetCause,!1),n.set("assetSource",t.lastNavigate.assetSource,!1),n.set("swBooted",t.lastNavigate.swBooted,!1),n.set("prerendered",o,!1),n.set("redirectList",null===(r=t.lastNavigate.redirectList)||void 0===r?void 0:r.map((function(e){return e.url})),!1,Re.Once),n.setTiming("originResponseStart",t.lastNavigate.originResponseStart,!1),n.set("assetTTFB",t.lastNavigate.assetTTFB,!1),n.set("assetUrl",t.lastNavigate.assetCacheKey,!1),n.set("originTTFB",t.lastNavigate.originTTFB,!1),n.set("preloadFailureCause",t.lastNavigate.preloadFailureCause,!1),n.set("speedKitVariationDuration",t.lastNavigate.variationDuration,!1),n.set("pageTypeEnabled",t.pageTypeEnabled,!1,Re.Once),function(e,t){e.lastNavigate.applicationState&&t.set("applicationState",e.lastNavigate.applicationState,!1),e.actualSplitTestId&&!Ye(e.actualSplitTestId,e.splitTestId)&&t.set("actualTestId","".concat(e.actualSplitTestId),!1),e.actualGroup&&e.actualGroup!==e.group&&t.set("actualTestGroup","".concat(e.actualGroup),!1),e.lastNavigate.activationStart&&t.set("activationStart",e.lastNavigate.activationStart,!1),e.lastNavigate.noBfCacheReasons&&t.set("noBfCacheReasons",e.lastNavigate.noBfCacheReasons,!1,Re.Once),e.lastNavigate.rcompMetadata&&(t.set("normalizedAcceptEncoding",e.lastNavigate.rcompMetadata.ae),t.set("originEncoding",e.lastNavigate.rcompMetadata.oe),t.set("nodeEncoding",e.lastNavigate.rcompMetadata.ne),t.set("contentEncoding",e.lastNavigate.rcompMetadata.ce),t.set("originLength",e.lastNavigate.rcompMetadata.ol),t.set("nodeLength",e.lastNavigate.rcompMetadata.nl),t.set("contentLength",e.lastNavigate.rcompMetadata.cl))}(t,n),void 0!==window.performance&&function(e,t){var n=Qe(t);e.set("secureConnectDuration",n.secureConnectionStart>=0&&n.connectEnd>=0?n.connectEnd-n.secureConnectionStart:-1,!1,Re.Once),e.reportEvent("unload",n.unloadEventStart,"unloadDuration",n.unloadEventEnd),e.reportEvent("domainLookup",n.domainLookupStart,"domainLookupDuration",n.domainLookupEnd),e.reportEvent("connect",n.connectStart,"connectDuration",n.connectEnd),e.reportEvent("redirect",n.redirectStart,"redirectDuration",n.redirectEnd),e.reportEvent("response",n.responseStart,"responseDuration",n.responseEnd),e.reportEvent("load",n.loadEventStart,"loadDuration",n.loadEventEnd),e.reportEvent("domContentLoaded",n.domContentLoadedEventStart,"domContentLoadedDuration",n.domContentLoadedEventEnd),e.reportEvent("request",n.requestStart),e.reportEvent("fetch",n.fetchStart),e.reportEvent("ttfb",n.ttfb),e.reportEvent("domComplete",n.domComplete),e.reportEvent("domInteractive",n.domInteractive),e.reportEvent("workerStart",n.workerStart)}(n,i),function(e,t){var n=e.lastNavigate?e.lastNavigate.timings:null;n&&(t.setTiming("speedKitFetchEvent",n.eventStart,!1),t.setTiming("speedKitHandle",n.handleStart,!1),t.setTiming("speedKitBlacklistHandler",n.blacklistHandler,!1),t.setTiming("speedKitDisabledPageHandler",n.disabledPageHandler,!1),void 0!==n.handleStart&&void 0!==n.handleEnd&&t.set("speedKitHandleDuration",n.handleEnd-n.handleStart,!1),void 0!==n.cacheStart&&void 0!==n.cacheEnd&&t.reportEvent("speedKitCacheLookup",n.cacheStart-n.handleStart,"speedKitCacheLookupDuration",n.cacheEnd-n.handleStart),void 0!==n.fetchStart&&void 0!==n.fetchEnd&&t.reportEvent("speedKitFetchCall",n.fetchStart-n.handleStart,"speedKitFetchCallDuration",n.fetchEnd-n.handleStart))}(t,n)}function nt(n,i){var o,a,s=n.rumController,c=!!r.secondaryGroup,u=window.devicePixelRatio,d=n.lastNavigate.responseSource===je.BfCache,l=!!n.softNavigate,p=function(e){var t=e?location.href:$e(),n=SpeedKit.trackingOptionsProvider.getTrackingOptions();if(n.stripAllParameter)return t.replace(/\?.*/,"?redacted");if(n.stripParameters){var r=new URL(t);return n.stripParameters.forEach((function(e,t){var n=r.searchParams.get(e)||"",i=n.length?"".concat(e,"=").concat(n):e;r.search=r.search.replace(new RegExp("(\\?|&)".concat(i)),"$1redacted-".concat(t))})),r.href}return t}(l),f=l?null===(a=null===(o=s.getPreviousRumImpression())||void 0===o?void 0:o.getTrackedData())||void 0===a?void 0:a.url:e.referrer;c&&s.updateBaseDimension("testGroup","".concat(r.group,"-").concat(r.secondaryGroup));var g=s.getHardNavigation();d||tt(n,g),function(e,t){t.set("responseSource",e.lastNavigate.responseSource,!1),e.lastNavigate.responseCause!==xe.Unknown&&t.set("responseCause",e.lastNavigate.responseCause,!1)&&t.set("responseSource",e.lastNavigate.responseSource,!1,!0)}(n,d&&!l?s:g),s.set("url",p,!1,Re.Once),s.set("userAgent",t.userAgent,!1,Re.Once),s.set("referrer",f,!1),s.set("firstLoad",!l&&n.lastNavigate.firstLoad,!1),s.set("disabled",n.disabled,!1),s.set("swSupported",n.swSupported,!1),s.set("skSupported",n.skSupported,!1),s.set("screenResolution",n.screenResolution,!1,Re.Once),s.set("documentVisible","visible"===e.visibilityState,!1,Re.Once),s.set("devicePixelRatio",u,!1),s.set("inControlGroup",r.isControlGroup,!1),s.set("inIFrame",window.top!==window,!1),s.set("supportsTouch","ontouchend"in e,!1);var v="supports"in HTMLScriptElement&&HTMLScriptElement.supports("speculationrules");s.set("supportsSpeculationRules",v,!1),et(n,s),void 0!==window.performance&&function(e){var t=Je();void 0!==t&&e.set("navigationType",t,!1,Re.Once)}(s),d||l||Xe(n,s),i?s.sendCurrentTracking(i):s.sendCollapsed()}function rt(){return!!e.querySelector(".speed-kit-dynamic-loading,.speed-kit-dynamic-loaded")}function it(e){var t=SpeedKit.trackingOptionsProvider.getTrackingOptions();return!t.noTracking&&!t.performanceOnly&&(F(u,e),!0)}function ot(e){var t,n=function(){nt(e)};N((function(){setTimeout((function(){n()}))})),function(e,t){"complete"!==e.readyState?window.addEventListener("speed-kit-completed",t,{once:!0}):t()}(e,(function(){n()})),t=function(){n()},"undefined"!=typeof PerformancePaintTiming&&window.performance.getEntriesByType&&performance.getEntriesByType("paint").length>0||"undefined"==typeof PerformanceObserver||"undefined"==typeof PerformancePaintTiming?t():new PerformanceObserver(t).observe({entryTypes:["paint"]}),window.addEventListener("pageshow",(function(e){if(e.persisted){SpeedKit.navigateId=E(32),SpeedKit.lastNavigate.responseCause=rt()?Be.AssetAPI:Be.Origin,SpeedKit.lastNavigate.responseSource=je.BfCache,SpeedKit.executionTime=Date.now();var t=ve();SpeedKit.softNavigate=void 0;var n={userId:SpeedKit.userId},i={navigationStart:t,testGroup:SpeedKit.group,piId:SpeedKit.navigateId,testId:he(SpeedKit.splitTestId,!!r.secondaryGroup)};SpeedKit.lastNavigate.firstLoad=!1,SpeedKit.rumController.clearAllPiTimeouts(),SpeedKit.rumController.reinitialize({baseDimensions:i,userData:n,navigationType:le.BFCACHE}),it(SpeedKit.userId),nt(SpeedKit),te(!1)}else{var o=function(){var e;if(!qe())return[];var t=performance.getEntriesByType("navigation");if(!t||!t[0])return[];var n=null===(e=t[0].notRestoredReasons)||void 0===e?void 0:e.reasons;return n&&n.length?n.filter((function(e){return!!e.reason})).map((function(e){return e.reason})):[]}();o.length&&(SpeedKit.lastNavigate.noBfCacheReasons=o)}}))}function at(t,n,r){var i;void 0===r&&(r={}),"function"==typeof CustomEvent?i=new CustomEvent(t,{detail:r}):(i=e.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,r),n.dispatchEvent(i)}function st(e){e.readyState!==Me.Complete&&(e.readyState===Me.Loading&&(e.readyState=Me.Prepared,at("speed-kit-prepared",window)),setTimeout((function(){e.readyState=Me.Complete,at("speed-kit-completed",window)})))}function ct(e,t,n,r){void 0===r&&(r=1e3);var i=!1;return n&&setTimeout((function(){return i?null:n()}),r),new Promise((function(n,r){var o=new MessageChannel,a=o.port1,s=o.port2;a.onmessage=function(e){i=!0,n(e.data)},a.onmessageerror=function(e){try{r(new Error("Service Worker ping failed with data ".concat(JSON.stringify(e.data))))}catch(o){r(new Error("Service Worker ping failed"))}},e.postMessage(t,[s])}))}function ut(t){var n,r;if(e.prerendering)e.addEventListener("prerenderingchange",(function(){return t()}),{once:!0});else{var i=null===(r=null===(n=null===performance||void 0===performance?void 0:performance.getEntriesByType)||void 0===n?void 0:n.call(performance,"navigation")[0])||void 0===r?void 0:r.activationStart;i&&i>0&&t()}}function dt(e,t){ct(e,{type:"get-navigate-info",clientURL:$e()},(function(){t.lastNavigate.responseSource=rt()?je.AssetAPI:je.Origin,t.lastNavigate.responseCause=xe.NoSwResponse,st(t)})).catch((function(e){return W(e,x.SNIPPET),null})).then((function(n){n&&n.responseSource===je.Prerender&&ut((function(){ct(e,{type:"increment-page-impression"})})),function(e,t){if(!t||"wasCacheHit"in t)return;if("reason"in t)return e.lastNavigate.applicationState=t.applicationState,e.lastNavigate.errorMessage=t.reason,void(t.applicationState===He.FAILED&&(e.lastNavigate.responseCause=xe.SwFailed,W(new TypeError(t.reason),x.SERVICEWORKER)));t.firstLoad=e.lastNavigate.firstLoad;var n=t.responseSource===je.Origin,r=[xe.NoMatchingNavigate,xe.SwBooting,xe.NoNavigate,xe.Unknown].includes(t.responseCause);e.lastNavigate=Object.assign(e.lastNavigate,t),n&&rt()&&(e.lastNavigate.responseSource=r?je.AssetAPI:je.SDN)}(t,n),st(t)}))}function lt(e){return fetch("".concat(r.appURL,"/config/VAPIDPublicKey")).then((function(e){return e.arrayBuffer()})).then((function(e){return{applicationServerKey:e,userVisibleOnly:!0}})).then((function(t){return e.subscribe(t)})).then((function(e){var t={subscription:e,devicetype:"WebPush"};return fetch("".concat(r.appURL,"/db/Device/register"),{method:"POST",credentials:"include",body:JSON.stringify(t),headers:{"Content-Type":"application/json"}})})).then((function(e){return 200===e.status}),(function(){return!1}))}function pt(){return"Notification"in window?Notification.requestPermission().then((function(e){return"denied"===e?"denied":"granted"!==e?"undecided":t[n].ready.then((function(e){var t=e.pushManager;return function(e){return e.getSubscription().then((function(e){return!!e}))}(t).then((function(e){return!!e||lt(t)}))})).then((function(e){return e?"registered":"unregistered"}))})):Promise.resolve("unsupported")}function ft(e){return e?new URL(e,location.origin).pathname:e}function gt(e){var n;null===(n=Ie({type:"update-device",data:e}))||void 0===n||n.catch((function(e){return W(e,x.SNIPPET)}));try{!function(e){if("B"===r.group)return;var n=ft(r.scope),i=t.userAgent,o=new P(n);o.set("/com.baqend.speedkit.device",{device:e,userAgent:i}).catch((function(e){return W(e,x.SNIPPET)})).then((function(){return o.disconnect().catch((function(e){return W(e,x.SNIPPET)}))}))}(e),window.SpeedKit.device=e}catch(i){W(i,x.SNIPPET)}}function vt(e){var r=t[n].controller;r&&(r.postMessage({type:"bypass-deactivation",data:e}),sessionStorage.setItem(w,e.toString()))}function ht(){var e=t[n];e&&e.controller&&e.controller.postMessage({type:"connect"})}function mt(){var e=t[n];e&&e.controller&&e.controller.postMessage({type:"disconnect"})}function yt(){var e=U(y);if(e)return e;var t=function(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t="",n=0;n<32;n+=1)t+=e.charAt(Math.floor(Math.random()*e.length));return t}();return A(y,t),t}function St(e){return e?function(e,t){for(var n="",r=0;r<e.length;r+=1){var i=r%t.length;n+=(e.charCodeAt(r)^t.charCodeAt(i)).toString(32)}return n}(e,yt()):""}function bt(e){var r=t[n].controller;r&&r.postMessage({type:"offline",data:e})}function wt(){var e=t[n].controller;e&&e.postMessage({type:"fetch-bloom-filter",data:!0})}function kt(t){var n;null===(n=Ie({event:t,type:"send-cookies",data:e.cookie}))||void 0===n||n.catch((function(e){return W(e,x.SNIPPET)}))}function Tt(e,r,i){return!!t[n]&&!!t[n].getRegistrations&&function(e,n,r){return"Safari"===e?15!==n||r>=2||t.userAgent.includes("SpeedCurve"):"Chrome"===e?n>=61:"Firefox"!==e||n>122}(e,r,i)}function Ct(){return t.userAgent.indexOf("Edge")>=0}function Pt(e){var n=e.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)\.?(\d+)?/i)||[],r=null;if(/trident/i.test(n[1]))return r=/\brv[ :]+(\d+)\.?(\d+)?/g.exec(e)||[],["IE",parseInt(r[1],10)||0,parseInt(r[2],10)||0];var i=function(e){if(/(iPhone|iPod|iPad).*AppleWebKit(?!.*?Version)/.test(e)){var t=e.match(/(OS |os |OS)(\d+)_?(\d+)?/i)||[];return[/\b(crios)\/(\d+)/i.test(e)?"Safari":"SafariWebView",parseInt(t[2],10)||0,parseInt(t[3],10)||0]}return null}(e)||function(e,t){if("Chrome"===t[1]){var n=null;if(null!=(n=e.match(/\bEdg\/(\d+)\.?(\d+)?/)||e.match(/\bEdge\/(\d+)\.?(\d+)?/)))return["Edge",parseInt(n[1],10),parseInt(n[2],10)||0];if(null!=(n=e.match(/\bOPR\/(\d+)\.?(\d+)?/)))return["Opera",parseInt(n[1],10),parseInt(n[2],10)||0]}return null}(e,n);if(null!==i)return i;var o=n[2]?[n[1],parseInt(n[2],10),parseInt(n[3],10)||0]:[t.appName,parseInt(t.appVersion,10),0];return-1===e.indexOf("Android")&&null!=(r=e.match(/version\/(\d+)\.?(\d+)?/i))&&(o.splice(1,1,parseInt(r[1],10)),o.splice(2,1,parseInt(r[2],10)||0)),o}function Nt(e){var t=Pt(e);if(!t[0]||isNaN(t[1])||isNaN(t[2]))return!0;if("SafariWebView"===t[0])return!0;return!!e.match(/app(?!le)/gi)||["sdk","-ios","webview","wv","overlay"].some((function(t){return e.toLowerCase().indexOf(t)>-1}))}function It(e,n,i,o){void 0===o&&(o=!1);var a=!r.enableForWebViews&&Nt(t.userAgent),s=Tt(e,n,i),c=function(e,n,r){return"Chrome"===e?n>=85:"Edge"===e?n>=121:"Opera"===e?n>=71:"Firefox"===e?n>=93:("Safari"===e||"SafariWebView"===e)&&(t.userAgent.includes("SpeedCurve")||n>16||16===n&&r>=4)}(e,n,i);return s&&c&&!o&&!a&&!Ct()}function Et(e,t){var n;if("function"==typeof URL)n=t?new URL(t):new URL($e());else{if(t)return!1;n=location}var r=!e.enabledSites||e.enabledSites.some((function(t){return Te(t,n,e)})),i=!!e.disabledSites&&e.disabledSites.some((function(t){return Te(t,n,e)})),o=r&&!i,a=!e.whitelist||e.whitelist.some((function(t){return Te(t,n,e)})),s=!!e.blacklist&&e.blacklist.some((function(t){return Te(t,n,e)}));return o&&(a&&!s)}function Ot(e){var t;null===(t=Ie({type:"prewarm-fetch",data:e.filter((function(e){return function(e){try{return new URL(e,window.location.origin),!0}catch(t){return!1}}("string"==typeof e?e:e.url)})).map((function(e){var t="string"!=typeof e;return{url:t?e.url:e,contentType:t&&e.as||pe.Navigate}}))}))||void 0===t||t.catch((function(e){W(e,x.SNIPPET)}))}function Rt(e){if(e){var n=t.serviceWorker.controller;if(n&&ee(n)){var r="reset"===e?null:e;r?sessionStorage.setItem(b,r):sessionStorage.removeItem(b),ct(n,{type:"auth-token",data:r})}}}function Dt(t){if("undefined"!=typeof Storage)try{localStorage.removeItem(t)}catch(n){}try{e.cookie="".concat(t,"=; expires=").concat((new Date).toUTCString(),"; path=/; SameSite=lax; Secure")}catch(r){}}function Lt(e,t){if(t)return!0;var n=e.group,r=e.testId;return!(!r||-1===r.indexOf("-debug"))||"A"!==n}function At(){return"true"===U("baqend-speedkit-debug")}function xt(e,n){var i=function(e,n){var i=n===g,o=function(e,t){var n="undefined"!==e.testId,i="undefined"!==e.group,o=t?r.secondaryTestId:r.splitTestId,a=n&&!Ye(e.testId,o);if(i&&!a)return e.group;var s=t?r.secondaryGroup:r.group,c=t?r.secondarySplit:r.split;return function(e,t){if(void 0===e)return Math.random()<t?"A":"B";return e}(s,c)}(e,i),a=i?r.secondaryTestId:r.splitTestId;a&&(a=function(e){var n=Pt(t.userAgent),i=n[0],o=n[1],a=n[2];return It(i,o,a)&&!r.disabled?e.replace("-unsupported",""):e.indexOf("-unsupported")>-1?e:"".concat(e,"-unsupported")}(function(e){return At()?e.indexOf("-debug")>-1?e:"".concat(e,"-debug"):e.replace("-debug","")}(a)));return{group:o,testId:a}}(e,n),o=n===g;return o?(r.secondaryGroup=i.group,r.secondaryTestId=i.testId):(r.group=i.group,r.splitTestId=i.testId),Lt(i,o?r.secondarySplit<1:r.split<1)?(function(e,t,n){r=n,i=encodeURIComponent(JSON.stringify(e)),o=encodeURIComponent(JSON.stringify(t)),o!==i&&o&&F(r,o);var r,i,o}(e,i,n),!0):(Dt(n),!1)}function Kt(){return r.disabled||!1===r.enabled}function Ut(){var e;if(null===(e=window.SpeedKit.lastNavigate)||void 0===e?void 0:e.serverTiming)return window.SpeedKit.lastNavigate.serverTiming;if(rt()&&"undefined"!=typeof PerformanceNavigationTiming&&window.performance.getEntriesByType&&"undefined"!=typeof PerformanceServerTiming){var t=window.performance.getEntriesByType("navigation");return t.length>0?t[0].serverTiming.slice():void 0}}function Bt(e,i,o,a){var s=window.location.href,c=Pt(t.userAgent),u=c[0],d=c[1],l=c[2],p=function(e,i,o,a,s,c){var u=It(e,i,o,a),d="B"===r.group||"B"===r.secondaryGroup;return u?!d&&Kt()?[je.Origin,xe.Disabled]:!s||!r.sdnSetup&&rt()?!d&&c?[je.Origin,xe.GroupChange]:d?[je.Origin,xe.NonSKGroup]:t[n].controller?[rt()?je.AssetAPI:je.Origin,xe.Unknown]:[je.Origin,xe.NoSwInstalled]:[je.Origin,xe.FirstLoad]:[je.Origin,xe.SkUnsupported]}(u,d,l,e,i,"B"===o.group||"B"===a.group),f=p[0];return{url:s,browser:u,firstLoad:i,browserVersion:d,minorVersion:l,responseCause:p[1],responseSource:f,cdnBackendTime:null,cdnPoP:null,splitTestId:o.testId,group:void 0!==r.split?o.group:r.group,disconnectCause:Fe.None,swBooted:!1,serverTiming:Ut()}}function Ft(e,t,n){return e.put("".concat(t),new Response(null,{status:200,statusText:(r=n,JSON.stringify(r,(function(e,t){return t instanceof RegExp?me(t):t})))}));var r}function jt(t){"loading"===e.readyState?e.addEventListener("DOMContentLoaded",t):setTimeout(t,0)}function Mt(n){n&&jt((function(){var r=e.getElementById("speed-kit-test-config-overlay");r&&r.remove();var i=function(n){var r=e.createElement("div");r.id="speed-kit-test-config-overlay";var i={red:"#ff4c3f",redDimmed:"#bb382e",green:"#00bd60",greenOpacity:"#0cd99529",blue:"#0568fd",disabledFont:"#525f73",fontPrimary:"#282c39",backgroundPrimary:"#fff",backgroundSecondary:"#eef2f7",borderPrimary:"#d8e1ed"};Object.assign(r.style,{position:"fixed",bottom:"16px",left:"16px",zIndex:"2147483647",backgroundColor:i.backgroundPrimary,color:i.fontPrimary,padding:"12px 16px",borderRadius:"10px",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif',fontSize:"13px",boxShadow:"0 10px 30px rgba(40, 44, 57, 0.14)",display:"flex",alignItems:"flex-start",gap:"12px",border:"1px solid ".concat(i.borderPrimary),maxWidth:"calc(100vw - 32px)"});var o=e.createElement("span");Object.assign(o.style,{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:i.green,flexShrink:"0",animation:"sk-pulse 2s ease-in-out infinite",boxShadow:"0 0 0 4px ".concat(i.greenOpacity)}),function(){var t="sk-test-config-overlay-styles";if(e.getElementById(t))return;var n=e.createElement("style");n.id=t,n.textContent="\n    @keyframes sk-pulse {\n      0%, 100% { opacity: 1; }\n      50% { opacity: 0.5; }\n    }\n  ",e.head.appendChild(n)}();var a=e.createElement("div");Object.assign(a.style,{display:"flex",flexDirection:"column",gap:"2px",flex:"1",minWidth:"0"});var s=e.createElement("span");s.textContent="Test Config Active",Object.assign(s.style,{fontWeight:"600",fontSize:"12px",color:i.blue,textTransform:"uppercase",letterSpacing:"0.5px"});var c=e.createElement("span");c.textContent=n,Object.assign(c.style,{fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace',fontSize:"13px",color:i.fontPrimary,wordBreak:"break-all",lineHeight:"1.4"}),a.appendChild(s),a.appendChild(c);var u=e.createElement("div");Object.assign(u.style,{display:"flex",flexDirection:"column",gap:"8px",alignItems:"flex-end",flexShrink:"0"});var d=e.createElement("button");d.textContent="✕",d.title="Close",d.setAttribute("aria-label","Close test config overlay"),Object.assign(d.style,{backgroundColor:"transparent",border:"1px solid ".concat(i.borderPrimary),borderRadius:"8px",color:i.disabledFont,cursor:"pointer",padding:"4px 8px",fontSize:"14px",fontWeight:"600",transition:"all 0.2s ease"}),d.addEventListener("mouseenter",(function(){d.style.backgroundColor=i.backgroundSecondary,d.style.borderColor=i.borderPrimary,d.style.color=i.fontPrimary})),d.addEventListener("mouseleave",(function(){d.style.backgroundColor="transparent",d.style.borderColor=i.borderPrimary,d.style.color=i.disabledFont})),d.addEventListener("click",(function(){Ht()}));var l=e.createElement("button");return l.textContent="Deactivate",l.title="Deactivate test config",l.setAttribute("aria-label","Deactivate test config"),Object.assign(l.style,{backgroundColor:i.red,border:"1px solid ".concat(i.red),borderRadius:"10px",color:"#ffffff",cursor:"pointer",padding:"6px 10px",fontSize:"12px",fontWeight:"600",transition:"all 0.2s ease"}),l.addEventListener("mouseenter",(function(){l.style.backgroundColor=i.redDimmed,l.style.borderColor=i.redDimmed})),l.addEventListener("mouseleave",(function(){l.style.backgroundColor=i.red,l.style.borderColor=i.red})),l.addEventListener("click",(function(){!function(){var e;sessionStorage.removeItem(S),Ht();try{var n=null===(e=null==t?void 0:t.serviceWorker)||void 0===e?void 0:e.controller;null==n||n.postMessage({type:"config-debug",data:{configDebugId:"reset",bypassDeactivation:"false"}})}catch(i){}var r=new URL(window.location.href);r.searchParams.set("debugSpeedKit","reset"),window.location.href=r.toString()}()})),u.appendChild(d),u.appendChild(l),r.appendChild(o),r.appendChild(a),r.appendChild(u),r}(n);e.body.appendChild(i)}))}function Ht(){var t=e.getElementById("speed-kit-test-config-overlay");t&&t.remove()}function Gt(i){var o=function(e){var t=e;if(r.includeServiceWorker){var n=e.indexOf("?")>=0?"&":"?";t+="".concat(n,"othersw=").concat(r.includeServiceWorker)}return t}(r.sw);return t[n].register(o,{scope:r.scope||"/"}).then((function(t){var n;n=!1,e.addEventListener("visibilitychange",(function(){"hidden"===e.visibilityState?n||(n=!0,kt("visibilitychange")):n=!1})),window.addEventListener("pagehide",(function(){n||(n=!0,kt("pagehide"))}));var o=_(r),a=i.controllingServiceWorker;(!a||(null==o?void 0:o.split("?")[0])!==a.split("?")[0])&&function(t){N((function(){window.setTimeout((function(){if(t.active&&"undefined"!=typeof PerformanceResourceTiming){var n,i=(n=Qe(ve()).domContentLoadedEventEnd,window.performance.getEntriesByType?performance.getEntriesByType("resource").filter((function(e){if(n>0&&e.startTime+e.duration>n)return!1;var t;try{t=new URL(e.name)}catch(r){return!1}return(null==t?void 0:t.origin)!==window.location.origin})):[]).map((function(t){var n,r=t.name,i=t.initiatorType;return"link"===i&&(n=function(t){var n=e.querySelector('link[href="'.concat(t,'"]'));switch((null==n?void 0:n.getAttribute("rel"))||(null==n?void 0:n.getAttribute("as"))){case"audio":return pe.Audio;case"document":return pe.Document;case"fetch":return pe.Fetch;case"image":return pe.Image;case"script":return pe.Script;case"stylesheet":case"style":return pe.Style;case"track":return pe.Track;case"video":return pe.Video;default:return}}(r)),{initiatorType:i,contentType:n,url:r}}));ct(t.active,{type:"prewarm-fetch",data:i}).then((function(n){if(n.applicationState===He.FAILED)return function(t){return window.caches?caches.open(C(s,r.scope)).then((function(t){var n=window.devicePixelRatio,i=window.screen.width,o=[[location.origin,e.cookie]];return Promise.all([Ft(t,"/com.baqend.speedkit.screen",{dpr:n,width:i}),Ft(t,"/com.baqend.speedkit.config",r),Ft(t,"/com.baqend.speedkit.cookie",{origins:o})])})).then((function(){return t.postMessage({type:"init-cache"})})):Promise.resolve()}(t.active)}))}}),1e3)}))}(t),function(e){e.navigationPreload&&Wt(e).then((function(){r.navigationPreload?e.navigationPreload.enable():e.navigationPreload.disable()})).catch((function(e){return W(e,x.SNIPPET)}))}(t),Wt(t).then((function(){!function(e){var t=new URLSearchParams(location.search).get("debugSpeedKit"),n=sessionStorage.getItem(S),r="reset"===t,i=t||n,o=sessionStorage.getItem(w)||"false";r||!i?(sessionStorage.removeItem(S),Ht()):(sessionStorage.setItem(S,i),Mt(i)),ct(e,{type:"config-debug",data:{configDebugId:i,bypassDeactivation:o}})}(t.active)}))}))}function Wt(e){var t=e.waiting||e.installing;return t?new Promise((function(e){return t.addEventListener("statechange",(function(){"activated"===t.state&&e(t)}))})):Promise.resolve(e.active)}function Vt(e){return e===xe.SkUnsupported}function qt(e){var t=j(e),n=e===g,i=n?r.secondarySplit:r.split,o="".concat(s,n?"-secondary-ab-test-info":"-ab-test-info");if(t)return Jt(t);var a={group:"undefined",testId:"undefined"},c=j(o);c&&(a=Jt(c),Dt(o),Lt(a,null!=i&&i<1)&&F(e,encodeURIComponent(JSON.stringify(a))));return a}function Jt(e){try{return JSON.parse(decodeURIComponent(e))}catch(t){return{group:"undefined",testId:"undefined"}}}function zt(t){for(var n=0,r=e.cookie.replace(/\s/g,"").split(";").filter((function(e){return 0===e.lastIndexOf(t,0)}));n<r.length;n++){var i=r[n],o=i.indexOf("="),a=o>-1?i.substr(0,o):i;e.cookie="".concat(a,"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; SameSite=Lax; Secure")}}function Qt(e,t){if(e)return function(e,t){if("undefined"!=typeof Storage)try{for(var n in localStorage)n.includes(e)&&!(null==t?void 0:t.includes(n))&&localStorage.removeItem(n)}catch(r){}}(s,[v]),void zt(s);t.noCookies&&zt(s),(t.noTracking||t.performanceOnly)&&[u,d,l,p].forEach((function(e){return Dt(e)}))}function $t(e){e.readyState!==Me.Prepared&&e.readyState!==Me.Complete&&(e.readyState=Me.Prepared,at("speed-kit-prepared",window))}function Yt(e){var t=e.active||e.installing||e.waiting;if(!t)return"";var n=new URL(t.scriptURL);return n.origin+n.pathname}function Zt(e,t,n,r,i){var o;void 0===r&&(r=""),void 0===i&&(i=[]);var a=function(a){if(i.length>=10)return"break";var s="".concat(r,".").concat(a),c=e[a],u=t[a];if(c===u)return"continue";try{var d=null===(o=null==n?void 0:n.find((function(e){return ye(a,e.key)})))||void 0===o?void 0:o.compare;if(d){var l=function(e,t,n,r){var i=r(t,n);if(!i)return null;return{key:e,desc:i,local:Xt(t),remote:Xt(n)}}(s,c,u,d);return l&&i.push(l),"continue"}}catch(f){return W(f,x.CHANGEDETECTION),"break"}var p=function(e,t,n){var r,i,o,a;if(null===t||null===n||"object"!=typeof t||"object"!=typeof n)return{key:e,desc:"diff in value",local:Xt(t),remote:Xt(n)};if(Array.isArray(t)!==Array.isArray(n))return{key:e,desc:"diff in object type",local:_t(t),remote:_t(n)};if(Object.keys(t).length!==Object.keys(n).length)return{key:e,desc:"diff in child count",local:null===(i=null===(r=Object.keys(t))||void 0===r?void 0:r.length)||void 0===i?void 0:i.toString(),remote:null===(a=null===(o=Object.keys(n))||void 0===o?void 0:o.length)||void 0===a?void 0:a.toString()};return null}(s,c,u);if(p)return i.push(p),"continue";Zt(c,u,n,s,i)};for(var s in e){if("break"===a(s))break}return i}function _t(e){return Array.isArray(e)?"array(".concat(e.length,")"):typeof e}function Xt(e){return"string"==typeof e?e:JSON.stringify(e)}!function(e){e.Blacklist="Blacklist",e.Blocked="Blocked",e.ClientError="ClientError",e.Redirect="Redirect",e.CORSRedirect="CORSRedirect",e.CriticalResource="CriticalResource",e.Delayed="Delayed",e.Disabled="Disabled",e.Disconnected="Disconnected",e.DynamicBlock="DynamicBlock",e.DynamicBlockPreload="DynamicBlockPreload",e.DynamicBlockCached="DynamicBlockCached",e.Error="Error",e.Fallback="Fallback",e.Fetchlist="Fetchlist",e.FirstLoad="FirstLoad",e.GroupChange="GroupChange",e.HardReload="HardReload",e.IgnoredAfterPOSTNavigate="IgnoredAfterPOSTNavigate",e.InternalServerError="InternalServerError",e.LoopDetected="LoopDetected",e.NavigationPreload="NavigationPreload",e.NonSKGroup="NonSKGroup",e.SkUnsupported="SkUnsupported",e.NoSwInstalled="NoSwInstalled",e.NoSwResponse="NoSwResponse",e.Offline="Offline",e.Onboarding="Onboarding",e.SafeScript="SafeScript",e.SwFailed="SwFailed",e.TrackingRequest="TrackingRequest",e.Unknown="Unknown",e.Immutable="Immutable",e.NotEnabled="NotEnabled",e.NotWhitelisted="NotWhitelisted",e.UserAgentChanged="UserAgentChanged",e.TooLargeRequest="TooLargeRequest",e.FormatNotSupported="FormatNotSupported",e.OtherSwInstalled="OtherSwInstalled",e.SwBooting="SwBooting",e.NoNavigate="NoNavigate",e.NoMatchingNavigate="NoMatchingNavigate",e.Timeout="Timeout",e.DisabledSites="DisabledSites",e.PartialResponse="PartialResponse",e.PreloadBlacklist="PreloadBlacklist",e.NoHtmlNavigate="NoHtmlNavigate",e.PostNavigate="PostNavigate",e.VariationTimeout="VariationTimeout",e.RacedApiResponse="RacedApiResponse",e.IFrameFetch="IFrameFetch"}(xe||(xe={})),function(e){e.CacheMiss="CacheMiss",e.ExpiredResponse="ExpiredResponse",e.InstantRefresh="InstantRefresh",e.Deployment="Deployment",e.InvalidCacheSketch="InvalidCacheSketch",e.ReloadCacheMode="ReloadCacheMode",e.UrlInCacheSketch="UrlInCacheSketch"}(Ke||(Ke={})),function(e){e.CacheHit="CacheHit",e.RevalidationWhitelist="RevalidationWhitelist"}(Ue||(Ue={})),function(e){e.AssetAPI="AssetAPI",e.Origin="Origin"}(Be||(Be={})),function(e){e.SWException="SWException",e.BloomfilterException="BloomfilterException",e.DashboardDisabled="DashboardDisabled",e.ServerError="ServerError",e.PostMessage="PostMessage",e.CORSRedirect="CORSRedirect",e.Offline="Offline",e.OriginServerError="OriginServerError",e.None="None",e.AssetTimeout="AssetTimeout"}(Fe||(Fe={})),function(e){e.AssetAPI="AssetAPI",e.Shield="Shield",e.Storage="Storage",e.Edge="Edge",e.Collapsed="Collapsed",e.PendingAsset="PendingAsset",e.Stream="Stream",e.MissingCachingHeader="MissingCachingHeader",e.Generated="Generated",e.Origin="Origin",e.SwCache="SwCache",e.SDN="SDN",e.BfCache="BfCache",e.Prerender="Prerender",e.Recompress="Recompress"}(je||(je={})),function(e){e.Loading="loading",e.Complete="complete",e.Prepared="prepared"}(Me||(Me={})),function(e){e.INSTALLING="installing",e.BOOTING="booting",e.RUNNING="running",e.FAILED="failed"}(He||(He={}));var en=function(){function e(e){var n,r=this;this.speedKitConfig=e;var i="object"==typeof e.apiChangeDetection?e.apiChangeDetection:void 0;this.sampleRate=(null==i?void 0:i.sampleRate)||1,this.whitelist=this.getEnabledAPIs(e),this.blacklist=(null==i?void 0:i.blacklist)||[],this.customCompareFunction=null==i?void 0:i.compare,this.keyCompareFunctions=null==i?void 0:i.compareKeys,this.onChange=null==i?void 0:i.onChange,this.timeout=(null==i?void 0:i.timeout)||1e3,this.checkedUrls=new Set,(null===(n=null==t?void 0:t.serviceWorker)||void 0===n?void 0:n.controller)&&this.canDetectChanges()&&this.checkSamplerate()&&(this.observer=new PerformanceObserver((function(e){return r.observeEntries(e)})),this.observer.observe({buffered:!0,type:"resource"}))}return e.prototype.canDetectChanges=function(){return"performance"in window&&"getEntriesByType"in performance&&!!this.speedKitConfig.apiChangeDetection},e.prototype.checkSamplerate=function(){return!(this.sampleRate&&this.sampleRate<1)||Math.random()>this.sampleRate},e.prototype.isWhitelisted=function(e){var t=this;return this.whitelist.some((function(n){return Te(n,e,t.speedKitConfig)}))},e.prototype.isBlacklisted=function(e){var t=this;return"#bqBlacklist"===e.hash||this.blacklist.some((function(n){return Te(n,e,t.speedKitConfig)}))},e.prototype.observeEntries=function(e){var t=this,n=e.getEntries().filter((function(e){try{if(!t.isSkResponse(e))return!1;var n=new URL(e.name);return!t.checkedUrls.has(e.name)&&t.isWhitelisted(n)&&!t.isBlacklisted(n)&&!n.hostname.startsWith("sklookup.")}catch(r){return!1}}));n.length&&(n.forEach((function(e){t.checkedUrls.add(e.name)})),setTimeout((function(){t.detectChanges(n).then((function(e){var n=e.filter((function(e){return e.triggeredBy.length}));n.length&&t.sendChangeReport(n)})).catch((function(){}))}),this.timeout))},e.prototype.detectChanges=function(e){var t=this;return Promise.all(e.map((function(e){return t.fetchVersions(e)}))).then((function(e){var n=[];return e.forEach((function(e){if(null!==e.cached&&e.assetKey)if(null!==e.origin){var r=t.applyCompareFunction(e.cached,e.origin);r.length&&n.push({url:e.assetKey,triggeredBy:r,ts:e.startTime})}else n.push({url:e.assetKey,triggeredBy:[{key:"originError",desc:"Origin API response not found"}]})})),n}))},e.prototype.applyCompareFunction=function(e,t){if(!this.customCompareFunction)try{return Zt(JSON.parse(e),JSON.parse(t),this.keyCompareFunctions)}catch(r){return this.fallbackCompareFunction(e,t)}try{var n=this.customCompareFunction(e,t);return n?Array.isArray(n)?n:"string"==typeof n?[{key:"none",desc:n}]:!0===n?[{key:"none",desc:"difference"}]:[n]:[]}catch(i){return W(i,x.SNIPPET),[]}},e.prototype.fetchVersions=function(e){var t=new URL(e.name);return Promise.all([this.fetchFromSW(t),this.fetchFromOrigin(t)]).then((function(t){var n=t[0],r=t[1];return{cached:n.cached,origin:r,assetKey:n.assetKey,startTime:Math.round(e.startTime)}}))},e.prototype.fallbackCompareFunction=function(e,t){return e===t?[]:[{key:"text",desc:"text mismatch"}]},e.prototype.fetchFromSW=function(e){var t={assetKey:"",cached:null};return fetch(e.href.replace(/https?:\/\//,"$&".concat("sklookup."))).then((function(e){return t.assetKey=e.headers.get("baqend-asset-key")||"",null==e?void 0:e.text()})).then((function(e){return t.cached=e,t})).catch((function(){return t}))},e.prototype.fetchFromOrigin=function(e){return e.hash="#bqBlacklist",fetch(e.href).then((function(e){return null==e?void 0:e.text()})).catch((function(){return null}))},e.prototype.sendChangeReport=function(e){var n;SpeedKit.rumController.set("apiChangeOrigin",window.location.origin,!1,Re.Force),SpeedKit.rumController.append("apiChange",e);try{var r=Array.from(new Set(e.map((function(e){return e.url})).filter(Boolean)));r.length&&(null===(n=null==t?void 0:t.serviceWorker)||void 0===n?void 0:n.controller)&&t.serviceWorker.controller.postMessage({type:"purge-cache",data:r})}catch(i){}this.onChange&&this.onChange(e.map((function(e){return e.url})))},e.prototype.isSkResponse=function(e){return!!e.serverTiming&&e.serverTiming.filter((function(e){return["cache","pop"].indexOf(e.name)>-1})).length>1},e.prototype.getEnabledAPIs=function(e){var t=e.enabledAPIs;if(!t)return[];for(var n=[],r=0,i=t;r<i.length;r++){var o=i[r];if("rules"in o)for(var a=0,s=o.rules;a<s.length;a++){var c=s[a];n.push(c)}else n.push(o)}return n},e}();function tn(e){var t,n=Object.assign({},window.localStorage,window.sessionStorage);Object.keys(n).forEach((function(t){ye(t,e)||delete n[t]})),null===(t=Ie({data:n,type:"send-storage"}))||void 0===t||t.catch((function(e){return W(e,x.SNIPPET)}))}function nn(e,t){try{ye(e,t)&&tn(t)}catch(n){}}function rn(e){!function(e){var t=Storage.prototype.setItem;Object.defineProperty(Storage.prototype,"setItem",{configurable:!0,writable:!0,value:function(n,r){t.call(this,n,r),nn(n,e)}})}(e),function(e){var t=Storage.prototype.removeItem;Object.defineProperty(Storage.prototype,"removeItem",{configurable:!0,writable:!0,value:function(n){t.call(this,n),nn(n,e)}})}(e)}var on=function(){function t(){this.sendingScheduled=!1}return t.prototype.cookieListener=function(){var t=this,n=Object.getOwnPropertyDescriptor(Document.prototype,"cookie");n&&n.configurable&&Object.defineProperty(Document.prototype,"cookie",{configurable:!0,get:function(){return n.get.call(e)},set:function(r){n.set.call(e,r),t.handleCookieSet()}})},t.prototype.handleCookieSet=function(){var e=this;if(!this.lastUpdateTime)return kt(),void(this.lastUpdateTime=Date.now());var t=Date.now()-this.lastUpdateTime;if(t>=500)return kt(),void(this.lastUpdateTime=Date.now());this.sendingScheduled||(this.sendingScheduled=!0,setTimeout((function(){kt(),e.sendingScheduled=!1,e.lastUpdateTime=Date.now()}),500-t))},t}();var an,sn={performanceOnly:!1,stripAllParameter:!1,noCookies:!1,noTracking:!1,pageDisabled:!1,dataLayer:"dataLayer",prerenderSampleRate:.2},cn=function(){function t(e){this.trackingOptions=this.initTrackingOptions(e)}return t.prototype.getTrackingOptions=function(){return this.trackingOptions},t.prototype.shouldSendTracking=function(){return e.prerendering?this.isPrerenderTrackingEnabled():!this.trackingOptions.noTracking},t.prototype.initTrackingOptions=function(e){var t=L({},sn);return r.rumTracking=this.isRumActive(),r.rumTracking?e?(r.rumTracking=!1,L(t,{noTracking:!0})):"boolean"==typeof r.rumTracking?t:L(t,r.rumTracking):L(t,{noTracking:!0})},t.prototype.isRumActive=function(){if(!(!B()&&"1"!==U(h)&&!window.deactivateSpeedKitRUM))return!1;var t=r.rumTracking;if(!t)return!1;if(void 0===r.sampleRate)return function(t){if(e.cookie="".concat(t,"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; SameSite=Lax; Secure"),"undefined"!=typeof Storage)try{localStorage.removeItem(t)}catch(n){}}(m),t;var n,i="boolean"==typeof(n=JSON.parse(U(m)||"{}"))?n:void 0!==n.split?n.split:null;return!!(null===i?this.isRumSplitEnabled():i)&&t},t.prototype.isPrerenderTrackingEnabled=function(){return void 0===this.trackOnPrerender&&(this.trackOnPrerender=Math.random()<this.trackingOptions.prerenderSampleRate),this.trackOnPrerender},t.prototype.isRumSplitEnabled=function(){var e,t=Math.random()<(null!==(e=r.sampleRate)&&void 0!==e?e:1);return r.sampleRate&&A(m,t.toString()),t},t}();function un(e){return!!("string"==typeof e||e instanceof RegExp||Array.isArray(e)&&e.every((function(e){return"string"==typeof e||e instanceof RegExp})))}function dn(e,t){var n;if(t.stripQueryParams)if(un(t.stripQueryParams)&&un(e))!function(e,t){var n,r,i=e.stripQueryParams;if(Array.isArray(i)||Array.isArray(t))return!Array.isArray(i)&&Array.isArray(t)?(e.stripQueryParams=[i],void(n=e.stripQueryParams).push.apply(n,t)):void(!Array.isArray(i)||Array.isArray(t)?(r=e.stripQueryParams).push.apply(r,t):e.stripQueryParams.push(t));e.stripQueryParams=[i,t]}(t,e);else{var r=Pe(e);t.stripQueryParams=Pe(t.stripQueryParams),(n=t.stripQueryParams).push.apply(n,r)}else t.stripQueryParams=e}function ln(e,t){var n,r=new Set(Object.values(an));r.add("tags"),e.every((function(e){return"object"==typeof e&&Object.keys(e).every((function(e){return r.has(e)}))}))&&(t.blacklist?(n=t.blacklist).push.apply(n,e):t.blacklist=e)}function pn(e,t){return e.includes("".concat(t,"-"))?e:"".concat(t,"-").concat(e)}function fn(e,t,n){return t.some((function(t){var r=function(e,t){var n="".concat(t,"-");return e.startsWith(n)?e.slice(n.length):e}(t,n);return new RegExp("^(".concat(n,"-)?").concat(r,"$")).test(e)}))}!function(e){e.ContentType="contentType",e.Cookie="cookie",e.Desktop="desktop",e.Host="host",e.Mobile="mobile",e.Pathname="pathname",e.Tablet="tablet",e.Url="url",e.Hashparam="hashparam",e.Storage="storage"}(an||(an={}));var gn=function(){function e(e){this.addStripQueryParams=dn,this.addBlacklist=ln,this.initializePlugins(e)}return e.prototype.initializePlugins=function(e){var t=this,n=this.getPlugins();try{var r="structuredClone"in window?structuredClone(e):function e(t,n,r){if(null===t||"object"!=typeof t)return t;var i=n||[],o=r||[],a=i.indexOf(t);if(-1!==a)return o[a];if("[object Date]"===Object.prototype.toString.call(t))return new Date(t.getTime());if("[object RegExp]"===Object.prototype.toString.call(t)){var s=t,c=new RegExp(s.source,(s.global?"g":"")+(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.sticky?"y":"")+(s.unicode?"u":"")+(s.dotAll?"s":""));return c.lastIndex=s.lastIndex,c}var u=Array.isArray(t)?[]:{};for(var d in i.push(t),o.push(u),t)Object.prototype.hasOwnProperty.call(t,d)&&(u[d]=e(t[d],i,o));return u}(e),i=[];n.forEach((function(n){Object.keys(n).forEach((function(o){try{var a=n[o];if("function"!=typeof a)return;if("applyToConfig"===o)return void i.push(a);var s=t[o];if("function"==typeof s)s(t.getConfigValues(a,r,n.name,n.options),e)}catch(c){W(c,x.CONFIGPLUGIN)}}))})),i.forEach((function(t){try{t(e)}catch(n){W(n,x.CONFIGPLUGIN)}}))}catch(o){W(o,x.CONFIGPLUGIN)}},e.prototype.getPlugins=function(){return window.SpeedKit&&window.SpeedKit.configPlugins?window.SpeedKit.configPlugins:[]},e.prototype.getConfigValues=function(e,t,n,r){var i=e(t);if(!(!i||Array.isArray(i)&&0===i.length||"object"==typeof i&&0===Object.keys(i).length))return function(e,t){return e.forEach((function(e){"string"==typeof e.tags&&(e.tags=pn(e.tags,t)),Array.isArray(e.tags)&&e.tags.length>0&&(e.tags=e.tags.map((function(e){return pn(e,t)})))})),e}((null==r?void 0:r.exclude)?function(e,t,n){return e.filter((function(e){return"string"==typeof e.tags?!fn(e.tags,t,n):!(Array.isArray(e.tags)&&e.tags.length>0)||!e.tags.some((function(e){return fn(e,t,n)}))}))}(i,r.exclude,n):i,n)},e}();try{!function(){if(function(){var t;try{window.navigator.serviceWorker,e.cookie}catch(r){if("SecurityError"===String("object"==typeof r&&null!==r&&"message"in r&&r.message)||String(r).indexOf("sandboxed")>=0)return!0}var n=null===(t=window.frameElement)||void 0===t?void 0:t.getAttribute("sandbox");return!!n&&"false"!==n}()||(o=window.top!==window,"https:"!==location.protocol||!r.executeInIframe&&o))return;var o;if(window[i])return;window[i]=!0,window.addEventListener("speed-kit-completed",(function(){if(/speedKitStatus/.test(window.location.href)){var e=window.SpeedKit,t=e.group,n=e.lastNavigate,r=n.responseCause,i=n.responseSource;alert("\n     Group: ".concat(t,"\n\n     Cause: ").concat(r,"\n\n     Source: ").concat(i))}})),[d,l,p].forEach((function(e){return Dt(e)}));var a=window.location.href.match(/speed-kit-rum-opt-out=([01])/);a&&A(h,a[1]);var s=B();window.SpeedKit=window.SpeedKit||{},window.SpeedKit.trackingOptionsProvider=new cn(s);var c=function(){if(null!==j(f)||null!==j(u))return!1;if(t.serviceWorker&&(null==r.split||1===r.split)){var e=t.serviceWorker.controller;return!e||!X(r,e)}return!0}(),v=function(){var e={group:"",testId:r.splitTestId||"undefined"};if(window.location.href.indexOf("".concat("disableSpeedKit","=1"))>=0?e.group="B":window.location.href.indexOf("".concat("enableSpeedKit","=1"))>=0&&(e.group="A"),e.group)return F(f,encodeURIComponent(JSON.stringify(e))),e}()||qt(f),m=qt(g),y=function(e,t,n){var i=!1;if(n)return r.group="optOut",i;if(null==r.split){var o="undefined"===e.testId&&"undefined"!==e.group;r.group=o?e.group:"A"}else i=xt(e,f);At()&&(r.secondarySplit=null);if(null!=r.secondarySplit&&"A"===r.group){var a=xt(t,g);i=i||a}return i}(v,m,s),S=function(){var e=window.SpeedKit.userId,t=SpeedKit.trackingOptionsProvider.getTrackingOptions(),n=!t.noTracking&&!t.performanceOnly;return window.SpeedKit.userId||(e=n?M():""),{userInfo:{userId:e},persisted:it(e)}}(),w=S.userInfo,k=S.persisted,T=function(e,t){var n=null===j(u)&&null===j(f)&&null===j(g);if(!n)return!1;if(n&&e)return!0;if(t)return!1;return F(u,"testDenied"),n=null===j(u),Dt(u),n}(y&&k,s),C=t.userAgent.indexOf("Firefox/")>=0;new en(r),function(e,n){r.sw=r.sw||"/sw.js",null!=r.split&&r.group&&(r.sw=(i=r.sw,o="gr",a=r.group,s=i.indexOf("?")>-1?"&":"?","".concat(i).concat(s).concat(o,"=").concat(a)));var i,o,a,s;void 0===r.isControlGroup&&(r.isControlGroup=(c=r.group,u=r.secondaryGroup,"B"===c||"A"===c&&"B"===u));var c,u;var d=!r.enableForWebViews&&Nt(t.userAgent);r.disabled=!1===r.enabled||r.disabled||"B"===r.group||"B"===r.secondaryGroup||d||Ct()||e,r.appURL="https://".concat(r.appDomain||"{}.app.baqend.com".replace("{}",r.appName),"/v1"),r.customVariation&&r.customVariation.forEach((function(e){e.rules&&0!==e.rules.length||(e.rules=[{contentType:[pe.Document]}])}));"object"==typeof r.apiChangeDetection&&(r.apiChangeDetection.onChange=void 0,r.apiChangeDetection.compare=void 0,r.apiChangeDetection.compareKeys=void 0);if("function"==typeof r.precache)try{var l=r.precache;r.precache=l.call(null)}catch(p){r.precache=[],W(p,x.CONFIG)}bn("customDevice"),rt()?r.detectDevice=null:bn("detectDevice");(function e(t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n],o=t[i];"function"==typeof o?t[i]=o.toString():"object"==typeof o&&null!==o&&(t[i]=e(o))}return t})(r),Array.isArray(r.shouldDetectDevice)&&0!==r.shouldDetectDevice.length||(r.shouldDetectDevice=[{contentType:[pe.Document]}]);(n||Ve())&&(r.navigationPreload=!1);void 0===r.fetchInUnload&&(r.fetchInUnload=!0)}(s,C),new gn(r);var P=function(e,i,o,a){var s=function(e,t,n,i){var o=r.group,a=window.SpeedKit.navigateId||"".concat(E(32)),s=ve(),c=t.userId,u=e.browser,d=e.browserVersion,l=e.minorVersion,p="undefined"!==n.testId||i?n.testId:void 0,f="undefined"!==n.group||i?n.group:void 0,g={navigationStart:s,testGroup:o,piId:a,testId:he(r.splitTestId,!!r.secondaryGroup)},v=new Ge(g,{userId:c}),h=v.trackCustomEvent.bind(v),m=v.getTrackedData.bind(v),y={navigateId:a,userId:c,group:o,actualGroup:f,rumController:v,getTrackedData:m,track:h,subscribe:pt,bypassDeactivation:vt,activate:ht,deactivate:mt,split:"number"==typeof r.split?"B"===r.group?We(r.split):r.split:1,updateDevice:gt,getHash:St,simulateOfflineMode:bt,fetchBloomFilter:wt,updateCookies:kt,preload:Ot,stripQueryParameter:Ne,actualSplitTestId:p,setAuthToken:Rt,testSpeedKitRule:Te,disabled:!1,lastNavigate:e,readyState:Me.Loading,splitTestId:r.splitTestId,controllingServiceWorker:_e(),executionTime:Date.now(),swSupported:Tt(u,d,l),skSupported:It(u,d,l),screenResolution:{width:Math.round(window.screen.width*window.devicePixelRatio),height:Math.round(window.screen.height*window.devicePixelRatio)},pageTypeEnabled:Et(r),isPageTypeEnabled:function(e){return Et(r,e)}};return Object.keys(window.SpeedKit).forEach((function(e){("boolean"==typeof window.SpeedKit[e]||"number"==typeof window.SpeedKit[e]||window.SpeedKit[e])&&("lastNavigate"!==e?y[e]=window.SpeedKit[e]:Object.assign(y.lastNavigate,window.SpeedKit.lastNavigate))})),window.SpeedKit=y,v.initializePlugins(),window.SpeedKit}(e,i,o,a);s.disabled="B"!==r.group&&"B"!==r.secondaryGroup&&!!Kt(),t[n]&&t[n].controller||!rt()||(s.lastNavigate.responseSource=je.SDN);return s}(Bt(T,c,v,m),w,v,c),I=SpeedKit.trackingOptionsProvider.getTrackingOptions();Qt(s,I),function(t){var n,r;if(e.prerendering)e.addEventListener("prerenderingchange",(function(){var e,n,r=null===(n=null===(e=null===performance||void 0===performance?void 0:performance.getEntriesByType)||void 0===e?void 0:e.call(performance,"navigation")[0])||void 0===n?void 0:n.activationStart;t.lastNavigate.activationStart=null!=r?Math.round(r):void 0,nt(t)}),{once:!0});else{var i=null===(r=null===(n=null===performance||void 0===performance?void 0:performance.getEntriesByType)||void 0===n?void 0:n.call(performance,"navigation")[0])||void 0===r?void 0:r.activationStart;t.lastNavigate.activationStart=null!=i?Math.round(i):void 0}}(P),I.noTracking||T||hn(P);ut((function(){I.noTracking||T||hn(P)})),Vt(P.lastNavigate.responseCause)||Kt()||(O=t.serviceWorker.register,Object.defineProperty(t.serviceWorker,"register",{configurable:!0,get:function(){return function(e,n){var i=_(r).split("/").pop();return i&&!e.includes(i)?t.serviceWorker.getRegistration():O.call(t.serviceWorker,e,n)}}}));var O;if(Vt(P.lastNavigate.responseCause))return wn(!1),$t(P),void st(P);var R=t[n].controller,D=ee(R);!R||D||function(e,t){return"B"===r.group||"B"===r.secondaryGroup||("B"===e.lastNavigate.group||(!!Kt()||t))}(P,c)||(P.lastNavigate.responseCause=xe.OtherSwInstalled);$t(P),void t.serviceWorker.getRegistrations().then((function(e){var n=_(r),i=new URL(r.scope||"/",location.origin).toString();e.some((function(e){return e.scope===i&&Yt(e)===n}))&&1===Je()&&e.length>0&&!t.serviceWorker.controller&&(SpeedKit.lastNavigate.responseCause=xe.HardReload)})).catch((function(){SpeedKit.lastNavigate.responseCause=xe.SkUnsupported,SpeedKit.skSupported=!1,nt(SpeedKit)})),D?function(i,o,a){a&&!e.referrer&&function(t){ct(t,{type:"get-referrer-info",clientURL:$e()}).then((function(t){!e.referrer&&t.referrer&&Object.defineProperty(e,"referrer",{configurable:!0,get:function(){return t.referrer}})}))}(o);dt(o,i),kt("load"),(new on).cookieListener(),function(e){t[n].addEventListener("message",(function(t){var n=t.data,r=n.type,i=n.payload;"asset-response-timings"===r&&(e.lastNavigate=Object.assign(e.lastNavigate,i),nt(e))}))}(i),r.watchStorageKeys&&"undefined"!=typeof Storage&&(tn(r.watchStorageKeys),rn(r.watchStorageKeys));Ve()&&Je()===fe.reload&&wt();!function(e){ct(e,{type:"auth-token",data:sessionStorage.getItem(b)})}(o)}(P,R,C):st(P);var L=function(){var e=window.location.href.indexOf("".concat("enableSpeedKit","=1"))>=0,t=window.location.href.indexOf("".concat("disableSpeedKit","=1"))>=0,n=e&&!t;n&&(sessionStorage.setItem("enableSpeedKitParam","1"),vt(!0));return n}();if(Kt()&&!L)return void wn();if(!R)return vn();K=!1,N((function(){K||(K=!0,vn())})),jt((function(){setTimeout((function(){K||(K=!0,vn())}),1e3)}));var K}()}catch(kn){W(kn,x.SNIPPET)}function vn(){var e=!1;mn().catch((function(t){return e||W(t,x.SNIPPET),e=!0,Sn().then((function(){return mn()}))})).then((function(){return Gt(SpeedKit)})).catch((function(t){return function(e){return["The operation is insecure","A mutation operation was attempted on a database that did not allow mutations","The user denied permission to use Service Worker"].some((function(t){return e.indexOf(t)>-1}))||"Rejected"===e}(H(t)?t.reason.message||JSON.stringify(t.reason):t.message)?(SpeedKit.lastNavigate.responseCause=xe.SkUnsupported,SpeedKit.skSupported=!1,nt(SpeedKit),yn()):(e||W(t,x.SNIPPET),e=!0,yn())})).catch((function(t){e||W(t,x.SNIPPET),e=!0}))}function hn(e){nt(e),ot(e)}function mn(){var n=ft(r.scope),i=new P(n),o=window.devicePixelRatio,a=window.screen.width,s="ontouchend"in e,c=t.userAgent,u=r.customDevice,d=u?i.set("/com.baqend.speedkit.device",{device:u,userAgent:c}):Promise.resolve();return Promise.all([i.set("/com.baqend.speedkit.config",r),i.set("/com.baqend.speedkit.screen",{dpr:o,width:a,supportsTouch:s}),i.set("/com.baqend.speedkit.cookie",{origins:[[location.origin,e.cookie]]}),d]).then((function(){return i.disconnect()}))}function yn(){var e=new URL(r.scope||"/",location.origin).toString(),i=_(r);return t[n].getRegistrations().then((function(t){return t.forEach((function(t){var n=Yt(t);if(t.scope!==e||n!==i){var o=t.active||t.installing||t.waiting;o&&X(r,o)&&t.unregister()}else t.unregister()}))})).catch((function(){return null})).then((function(){return Sn()}))}function Sn(){return Promise.all([window.caches?caches.keys().then((function(e){var t=e.filter((function(e){return new RegExp("^".concat(C(s,r.scope),".*")).test(e)}));return Promise.all(t.map((function(e){return caches.delete(e)})))})):Promise.resolve(),(e=new P(r.scope),e.clear().then((function(){return e.disconnect()})))]);var e}function bn(t){if(r[t]){if("function"!=typeof r[t])return gt(r[t]);var n=r[t];r[t]=null,jt((function(){try{var r="detectDevice"===t?e:void 0,i=n.call(null,r);Promise.resolve(i).then((function(e){e&&"string"==typeof e&&gt(e)})).catch((function(e){W(e,x.CONFIG)}))}catch(kn){W(kn,x.CONFIG)}}))}}function wn(e){void 0===e&&(e=!0),t[n]&&yn().catch((function(t){e&&W(t,x.SNIPPET)}))}}(document,navigator,"serviceWorker","undefined"!=typeof speedKit?speedKit:config,"SNIPPET_LOADED");})();