var CS_CONF={"isSMB":false,"projectId":56464,"status":1,"hostnames":["interflora.es"],"crossDomainTracking":0,"crossDomainSingleIframeTracking":0,"consentRequired":1,"allowSubdomains":1,"visitorCookieTimeout":34164000000,"sampleRate":100,"replayRecordingRate":16,"validationRate":10,"lastTrackingDraw":1743599802,"trackerDomain":"c.az.contentsquare.net","recordingDomain":"r.contentsquare.net","useMalkaPipeline":1,"ed":"l.contentsquare.net/log/web","eMerchandisingEnabled":0,"mouseMoveHeatmapEnabled":1,"autoInsightsEnabled":0,"jsErrorsEnabled":1,"customErrorsEnabled":1,"jsCustomErrorsEnabled":0,"apiErrorsEnabled":0,"customHashIdEnabled":0,"recordingEncryptionEnabled":0,"recordingEncryptionPublicKey":null,"recordingEncryptionPublicKeyId":0,"secureCookiesEnabled":0,"triggerSessionReplayEnabled":0,"triggerSessionReplayRegex":null,"dynamicIdRegex":null,"whitelistedAttributes":null,"replayRecordingUnmaskedUrlRegex":"","replayRecordingUnmaskedUrlRegexRules":[],"replayRecordingMaskedUrlRegexRules":[],"replayRecordingMaskedUrlRegex":"","anonymisationMethod":"replayRecordingUnmaskedUrlRegex","tagDeploymentMode":"CONTENTSQUARE","experimental":null,"iframesTracking":0,"textVisibilityEnabled":0,"cookielessTrackingEnabled":0,"malkaUrlEnabled":0,"malkaEtrEnabled":0,"pathComputationRules":{},"asyncSerializerEnabled":1,"pendingInactivityTimeout":5000,"accessibilityEnabled":1,"uxaDomain":"app.contentsquare.com","webviewsTrackingEnabled":0,"useStaticResourceManager":1,"performanceTimingOptions":{"withResource":false,"withNavigation":false},"replayConsentRequiredForSession":0,"eventsApiEnabled":0,"clickedElementTextEnabled":0,"collectHierarchy":1,"collectSubmit":1,"collectTargetText":0,"customErrors":{"consoleMessageLogLevels":[]},"displayAdOptions":null,"taskSchedulerOptions":{"enabled":1},"malkaQuotaServiceDomain":"q-eu1.az.contentsquare.net","malkaRecordingDomain":"k-eu1.az.contentsquare.net","staticResourceManagerDomain":"srm.aa.contentsquare.net","paProxyDomainUri":"api.hp.contentsquare.net","voc":{"siteId":null,"enabled":0},"heapEnvironment":{"env_id":"4256678722","heap_tag_status":"cs_crosswrites_heap"}}; var CS_INTEGRATIONS_CONF = {"ab-tasty":{},"hotjar":{}}; /* integration-ab-tasty 3.6.1 */ !function(e){var t={};function n(a){if(t[a])return t[a].exports;var o=t[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(a,o,function(t){return e[t]}.bind(null,o));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e){e.exports=JSON.parse('{"displayName":"AB Tasty","dvarPrefix":"AB_ABT_","eventPrefix":"ABT_"}')},function(e){e.exports=JSON.parse('{"name":"@contentsquare/integration-ab-tasty-contentsquare","version":"3.6.1","scripts":{"build:snippet":"webpack"}}')},function(e,t,n){"use strict";function a(e,t){try{e()}catch(e){window._uxa=window._uxa||[],window._uxa.push(["logSnippetError",t,e.message]),(window.csqDebuggerEnabled||document.location.href.indexOf("csqDebuggerEnabled=true")>-1)&&(console.log(`%cCSQ INTEGRATION ERROR: [${t}] : ${e.message}`,"color:rgb(228, 25, 45); font-weight: bold"),console.log(e))}}function o(e){window._uxa=window._uxa||[],window._uxa.push(["event",e])}n.r(t);function i(e,t,n){if((n=n||window)&&t&&e){let a=!1,o=n[e];o?t():Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){return o},set:function(e){o=e,a||(a=!0,t())}})}}function r(e,t,n){!!(window.csqDebuggerEnabled||document.location.href.indexOf("csqDebuggerEnabled=true")>-1)&&(n?"warn"===n&&console.log(`%cCSQ INTEGRATION: [${e}] : ${t}`,"color:rgb(255, 86, 2); font-weight: bold"):console.log(`%cCSQ INTEGRATION: [${e}] : ${t}`,"color: #2a9d8f; font-weight: bold"))}var c=n(0);const u=function(e){let t,n,o,i;if(a((function(){const a=e.name;t=e.version;const r=a.replace("@contentsquare/integration-","");n=r+"-"+t;let c="-contentsquare";i=new RegExp(c+"$").test(r),o=r.replace(/-contentsquare([^-contentsquare]*)$/,"$1"),i||(c="-cap",i=new RegExp(c+"$").test(r),o=r.replace(/-cap([^-cap]*)$/,"$1"))}),"Shared-Function-readPackageJSON"),i)return{snippetBuildName:n,parameterName:o,snippetVersion:t}}(n(1)),s=(u.parameterName,u.snippetBuildName),l=u.snippetVersion;a((function(){const e=c.displayName,t=c.dvarPrefix,n=c.eventPrefix;var u,f;function d(e,a){!function(e,t){window._uxa=window._uxa||[],window._uxa.push(["trackDynamicVariable",{key:e,value:t}])}(e=t+e,a);const i=`${c=e.replace(t,""),c&&"string"==typeof c?c.replace(/[\W_]+/g,"-"):""}-${a}`;var c,u,l;o(i),o(n+i),r(s,(u=e,l=a,document.getElementById("csKey")&&document.getElementById("csValue")&&(document.getElementById("csKey").textContent=u,document.getElementById("csValue").textContent=l),`Dynamic variable with ${u} and value ${l} sent`))}u=e,f=l,CS_CONF.integrations=CS_CONF.integrations||[],CS_CONF.integrations.push(u+" - v"+f);const p=[];function g(e){const t=e.campaignId,n=(e.variationId,function(e,t,n){if(window.ABTasty&&ABTasty.results&&ABTasty.results[e]){const t=ABTasty.results[e],a=t.name||null;let o=t.variationName||null,i=null;if("mpt"===n&&ABTasty.accountData&&ABTasty.accountData.tests){const t=ABTasty.accountData.tests[e];if(t){const e=t.parentID;if(0!==e){const t=ABTasty.accountData.tests[e];if(t){const e=t.name;e&&(i={parentName:e})}}}}return o||(o="Variation 1"),{campaignName:a,variationName:o,parentInfo:i}}return""}(t,0,e.type)),a=n.variationName;if(n.campaignName){const e=n.campaignName;-1===p.indexOf(e+"~~~~"+a)&&(p.push(e+"~~~~"+a),d(e,a))}if(n.parentInfo){const e=n.parentInfo.parentName;-1===p.indexOf(e+"~~~~"+a)&&(p.push(e+"~~~~"+a),d(e,a))}}window.addEventListener("abtasty_executedCampaign",(function(e){a((function(){g(e.detail)}),s)})),function(e,t,n){n=n||window;const a=e.split(".");if(1==a.length)i(e,t,n);else{let e=n,o=0;const r=function(){e=o>0?e[a[o-1]]:window,o++,o>=a.length?i(a[o-1],t,e):i(a[o-1],r,e)};r()}}("ABTasty",(function(){setTimeout((function(){a((function(){if(ABTasty.eventState&&ABTasty.eventState.executedCampaign&&"complete"===ABTasty.eventState.executedCampaign.status){const t=ABTasty.eventState.executedCampaign.detail;if(e=t,Array.isArray(e))for(const e of t)g(e)}var e}),s)}),500)}))}),s)}]); /* integration-hotjar 3.2.2 */ !function(e){var n={};function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(i,o,function(n){return e[n]}.bind(null,o));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=2)}([function(e){e.exports=JSON.parse('{"displayName":"Hotjar","dvarPrefix":"FB_HJ_","apvPrefix":"cs_hotjar","replayKey":"hj"}')},function(e){e.exports=JSON.parse('{"name":"@contentsquare/integration-hotjar-contentsquare","version":"3.2.2","scripts":{"build:snippet":"webpack"}}')},function(e,n,t){"use strict";function i(e,n){try{e()}catch(e){window._uxa=window._uxa||[],window._uxa.push(["logSnippetError",n,e.message]),(window.csqDebuggerEnabled||document.location.href.indexOf("csqDebuggerEnabled=true")>-1)&&console.log(`%cCSQ INTEGRATION ERROR: [${n}] : ${e.message}`,"color:rgb(228, 25, 45); font-weight: bold")}}function o(e,n){function t(e){return"object"==typeof e&&null!==e}if(t(window.CS_INTEGRATIONS_CONF)&&t(window.CS_INTEGRATIONS_CONF[e]))return window.CS_INTEGRATIONS_CONF[e][n]}t.r(n);let r,u=1e3,a=10;function s(e,n,t,i,c,d){var l;n&&t&&(r||(r=o(e,"timingSettings"),"object"==typeof(l=r)&&null!==l&&Object.keys(l).length&&(u=r.doOnlyWhenInterval,a=r.doOnlyWhenTimes)),void 0===(c=c)&&(c=u),void 0===(d=d)&&(d=a),--d<0?"function"==typeof i&&i():t()?n():setTimeout((function(){s(e,n,t,i,c,d)}),c))}function c(e,n){!!(window.csqDebuggerEnabled||document.location.href.indexOf("csqDebuggerEnabled=true")>-1)&&console.log(`%cCSQ INTEGRATION: [${e}] : ${n}`,"color: #2a9d8f; font-weight: bold")}var d=t(0);const l=function(e){let n,t,o,r;if(i((function(){const i=e.name;n=e.version;const u=i.replace("@contentsquare/integration-","");t=u+"-"+n;let a="-contentsquare";r=new RegExp(a+"$").test(u),o=u.replace(/-contentsquare([^-contentsquare]*)$/,"$1"),r||(a="-cap",r=new RegExp(a+"$").test(u),o=u.replace(/-cap([^-cap]*)$/,"$1"))}),"Shared-Function-readPackageJSON"),r)return{snippetBuildName:t,parameterName:o,snippetVersion:n}}(t(1)),p=l.parameterName,f=l.snippetBuildName,y=l.snippetVersion;i((function(){const e=d.displayName,n=d.dvarPrefix,t=d.apvPrefix,r=d.replayKey;var u,a;u=e,a=y,CS_CONF.integrations=CS_CONF.integrations||[],CS_CONF.integrations.push(u+" - v"+a);const l=o(p,"settings"),w=(v=l,Array.isArray(v)?l:[]);var v;const g=w.includes("sendArtificialPageviews"),m=w.includes("setReplayLinkToCurrentPV");let _=!1;function S(e,t,i,o){(function(e,n){window._uxa=window._uxa||[],window._uxa.push(["trackDynamicVariable",{key:e,value:n}])})(e=n+e,t),_&&"etr"===i&&function(e){window._uxa=window._uxa||[],window._uxa.push(["trackEventTriggerRecording","@ETS@"+e])}(e),o&&g&&function(e){window._uxa=window._uxa||[],window._uxa.push(["trackPageview",e])}(window.location.pathname+"?"+o),c(f,`Dynamic variable with ${e} and value ${t} sent`)}const h=[];window.addEventListener("hotjar-survey-event",(function(e){i((function(){if(e&&e.detail&&e.detail.event){const n=e.detail,i=n.event,o=n.surveyId;if(i&&o)if("surveyInvitationDisplayed"===i)h.includes(i+"-"+o)||(h.push(i+"-"+o),S("Survey Invitation Displayed","Survey ID : "+o,0,t+"=survey_invitation_displayed"));else if("surveyDisplayed"===i)h.includes(i+"-"+o)||(h.push(i+"-"+o),S("Survey Displayed","Survey ID : "+o,0,t+"=survey_displayed"));else if("surveySubmitted"===i){h.includes(i+"-"+o)||(h.push(i+"-"+o),S("Survey Response Submitted","Survey ID : "+o,"etr",t+"=survey_response_submitted"));const e=n.question;if(e){const t=e.type,i=e.text,r=n.questionIndex,u=n.response;let a=u[0]&&u[0].answer;"multiple-close-ended"!=t&&i&&void 0!==a&&(isNaN(a)||(a=parseInt(a)),S(o+" : "+i,a),S(o+" : Question "+(r+1),a))}const r=n.insightsUrl;r&&(h.includes(r+"-"+o)||(h.push(r+"-"+o),S("Survey Response URL",r)))}else"surveyCompleted"===i&&(h.includes(i+"-"+o)||(h.push(i+"-"+o),S("Survey Completed","Survey ID : "+o,0,t+"=survey_completed")))}}),f)})),s(p,(function(){setTimeout(()=>{i((function(){(function(e,n,t,i){return new Promise((function(o,r){function u(){window._uxa.push(["replay:link:generate",{withTimestamp:t},a])}function a(i){if(i&&i.replayLink&&i.isRecording){let r="https://"+i.replayLink+"&vd="+e;if(!n&&!t){const e=new URLSearchParams(r);e.set("pvid",1);const n=e.toString();r=decodeURIComponent(n)}o(r)}}e||(e="missingFromDynamicSnippet"),t||(t=!1),i?u():(window._uxa=window._uxa||[],window._uxa.push(["onRecordingStateChange",function(e){e&&e.isRecording&&u()}]))}))})(r,m).then((function(e){i((function(){_=!0,e&&"function"==typeof hj&&hj("identify",null,{contentsquare_replay_link:e})}),f)}))}),f)},500)}),(function(){return"function"==typeof window.hj}))}),f)}]);; (()=>{var re={};re.d=(s,r)=>{for(var t in r)re.o(r,t)&&!re.o(s,t)&&Object.defineProperty(s,t,{enumerable:!0,get:r[t]})};re.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}();re.o=(s,r)=>Object.prototype.hasOwnProperty.call(s,r);re.r=s=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var sn={};re.r(sn);re.d(sn,{getRequestParameters:()=>ym});function Ye(s,r){let t;return window.Zone&&typeof window.Zone.__symbol__=="function"&&(t=s[window.Zone.__symbol__(r)]),t||(t=s[r]),t}var pi=typeof window=="undefined";function fh(){return typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof re.g!="undefined"?re.g:typeof process!="undefined"?process:Function("return this")()}var Rt=fh();var Sa="cs-native-frame",Ae={navigatorProperties:[{propertyName:"sendBeacon",binding:navigator}],nodeProperties:["childNodes","parentNode","nextSibling","firstChild"],elementProperties:["shadowRoot"],elementPropertiesValues:["matches","mozMatchesSelector","msMatchesSelector","oMatchesSelector","webkitMatchesSelector"],eventProperties:["target"],imageProperties:["src"],constructors:{Date:"csDate",JSON:"csJSON",Array:"csArray",String:"csString",URL:"csURL",MutationObserver:"csMutationObserver",screen:"csScreen",RegExp:"csRegExp"}};window.csSetTimeout=Ye(window,"setTimeout");window.csQueueMicrotask=Ye(window,"queueMicrotask");window.csClearTimeout=Ye(window,"clearTimeout");window.csSetInterval=Ye(window,"setInterval");window.csClearInterval=Ye(window,"clearInterval");window.csFileReader=Ye(window,"FileReader");(()=>{var s;let r=0;function t(i){return"cs$Symbol_"+i}function e(i){return t(i)+ ++r}e.for=t,window.csSymbol=(s=window.Symbol)!==null&&s!==void 0?s:e})();function gh(){let s=document.createElement("iframe");s.id=Sa,s.setAttribute("hidden",""),s.setAttribute("title","Intentionally blank"),s.setAttribute("sandbox","allow-same-origin");let r=document.createElement("cs-native-frame-holder");if(r.setAttribute("hidden",""),document.body.appendChild(r),!!Element.prototype.attachShadow){let e=r.attachShadow({mode:"closed"});return e.innerHTML=s.outerHTML,e.firstElementChild.contentWindow}return r.innerHTML=s.outerHTML,r.firstElementChild.contentWindow}function mh(s,r){let t,e=s;for(;e&&!(t=Object.getOwnPropertyDescriptor(e,r));)e=Object.getPrototypeOf(e);return t}function yh(s,r,t){let e=mh(s,r);if(!e)return function(){return this[r]};switch(t){case"get":return e.get;case"set":return e.set;case"value":return e.value}}function va(s){var r,t;Object.keys(Ae.constructors).forEach(e=>{window[Ae.constructors[e]]=s[e]instanceof Function&&s[e].prototype==null?s[e].bind(window):s[e]}),vh(s),("Prototype"in window||Sh())&&(window.csMutationObserver=(t=(r=Ye(window,"MutationObserver"))!==null&&r!==void 0?r:window.WebKitMutationObserver)!==null&&t!==void 0?t:window.MutationObserver),ys("csNode",Ae.nodeProperties,s.Node.prototype,"get"),ys("csElement",Ae.elementProperties,s.Element.prototype,"get"),ys("csElement",Ae.elementPropertiesValues,s.Element.prototype,"value",!1),ys("csHTMLImageElement",Ae.imageProperties,s.HTMLImageElement.prototype,"set"),ys("csEvent",Ae.eventProperties,s.Event.prototype,"get"),ys("csNavigator",Ae.navigatorProperties,s.navigator,"value")}function ys(s,r,t,e,i=!0){r.forEach(n=>{let a=typeof n!="string"&&"binding"in n,c=a?n.propertyName:n;(i||c in t)&&(window[`${s+c}`]=yh(t,c,e),a&&(window[`${s+c}`]=window[`${s+c}`].bind(n.binding)))})}function _a(s,r){window.CSProtectnativeFunctionsLogs=window.CSProtectnativeFunctionsLogs||{},window.CSProtectnativeFunctionsLogs[s]=r}function Eh(){try{let s=gh();return s?(window.CSPureWindow=s,va(window.CSPureWindow),!0):!1}catch(s){return _a("Warning",`failed to copy references from pure iframe: ${s.message}`),!1}}if(!Eh())try{va(Rt)}catch(s){_a("Critical",`failed to copy references from window: ${s.message}`)}function Sh(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function vh(s){window.csquerySelector={1:s.Element.prototype.querySelector,9:s.Document.prototype.querySelector,11:s.DocumentFragment.prototype.querySelector},window.csquerySelectorAll={1:s.Element.prototype.querySelectorAll,9:s.Document.prototype.querySelectorAll,11:s.DocumentFragment.prototype.querySelectorAll}}function Fr(s){return wa(csString.prototype.toLowerCase.call(s.localName))}function _h(s){let r=s.getAttribute("id");return r&&wa(r)}function wa(s){return csString.prototype.replace.call(s,/([#;&,.+*~':"!^$[\]()<=>|/%?@`{}\\ ])/g,"\\$1")}function $t(s){return Z(s)&&(typeof s=="number"||s instanceof Number)&&!isNaN(s)}function Ts(s){return s===parseInt(s,10)}function z(s){return Z(s)&&(typeof s=="string"||s instanceof csString)}function Zn(s){return typeof s=="boolean"}function Fe(s){return typeof s=="object"}function Z(s){return typeof s!="undefined"}function Ct(s){return Z(s)&&s!==null}function wh(s,r,t){return Ts(s)&&s>=r&&s<=t}function bh(s){for(let r in s)return!1;return!0}function $e(s){return typeof s=="function"}function Ue(s){return s instanceof Element}function ze(s){return s instanceof Error}function Ah(s){let r=s.length;for(let t=0;t0&&csString.prototype.indexOf.call(s.tagName,":")===-1&&csString.prototype.indexOf.call(s.tagName,'"')===-1&&csString.prototype.indexOf.call(s.tagName,",")===-1&&csArray.prototype.indexOf.call(xh,csString.prototype.toLocaleLowerCase.call(s.tagName))<0}var fi="detached";function Ca(s){let r=s,t=[r];for(;csNodeparentNode.apply(r)!==null;)r=csNodeparentNode.apply(r),csArray.prototype.push.call(t,r);return Wi(r)&&csArray.prototype.push.call(t,fi),{ancestors:t,selectionRoot:r}}function Uh(s){let r=s,t=[r],e=null;for(;csNodeparentNode.apply(r)!==null;)e===null&&Aa(r)&&(e=r),csArray.prototype.push.call(t,csNodeparentNode.apply(r)),r=csNodeparentNode.apply(r);return Wi(r)&&csArray.prototype.push.call(t,fi),{firstAnchorParent:e,ancestors:t,selectionRoot:r}}function Wi(s){return ue.isValidElement(s)}var rs=(()=>{var s,r;return(r=(s=Rt.Element)===null||s===void 0?void 0:s.prototype)!==null&&r!==void 0?r:{}})(),Kt=rs.matches||rs.matchesSelector||rs.mozMatchesSelector||rs.msMatchesSelector||rs.oMatchesSelector||rs.webkitMatchesSelector,to=rs.closest,Ia=9;function jh(s,r){return r?csArray.prototype.some.call(r,t=>Kt.call(s,t)):!1}function Hh(s,r,t){if(s===fi||s.nodeType===Ia)return 0;let e=t.dynamicElementNameRegex,i=!!(e!=null&&e.test(r.localName)),n=Fr(r),a=0,c=r.previousElementSibling;for(;c;)(Fr(c)===n||i&&(e!=null&&e.test(c.localName)))&&!jh(c,t.reliableSelectors)&&(a+=1),c=c.previousElementSibling;return a}function Bh(s,r,t){if(s===fi||s.nodeType===Ia)return 0;let e=0,i=r.previousElementSibling;for(;i;)Kt.call(i,t)&&(e+=1),i=i.previousElementSibling;return e}var Fh=[/\d{4}/,/^ember\d+$/],$h="@",an="data-cs-override-id",zh="data-cs-dynamic-id";function Pa(s,r,t,e){let i=e.dynamicIdRegex||null,n=e.dynamicElementNameRegex,a=Fr(s);if(n&&n.test(s.localName)&&(a=csString.prototype.replace.call(a,n,`$1${$h}`)),Wh(s,t)){let y=cn(s);return{hasUniqueIdentifier:!0,elementSelector:`${a}[${an}="${y}"]`}}let c=tu(s,t,e);if(c.success)return{hasUniqueIdentifier:!0,elementSelector:`${a}#UA[${c.attributeName}="${c.attributeValue}"]`};let l=qh(s,t,e);if(l)return{hasUniqueIdentifier:!0,elementSelector:`${a}#UCS[${l}]`};let d=_h(s);if(Xh(s,d,t,i))return{hasUniqueIdentifier:!0,elementSelector:`${a}#${d}`};let g=Gh(s,e);if(g){let y=Bh(r,s,g);return{hasUniqueIdentifier:!1,elementSelector:`${a}[${g}](${y})`}}let u=Hh(r,s,e);return{hasUniqueIdentifier:!1,elementSelector:`${a}:eq(${u})`}}function qh(s,r,t){if(t.uniqueCssSelectors){for(let e of t.uniqueCssSelectors)if(Kt.call(s,e)&&Zh(e,r))return e}}function Gh(s,r){if(r.reliableSelectors){for(let t of r.reliableSelectors)if(Kt.call(s,t))return t}}function Wh(s,r){let t=cn(s);return t&&csString.prototype.match.call(t,/^[\w-]+$/)&&ln(an,t,r)}function Yh(s){return cn(s)!==null}function cn(s){return s.getAttribute(an)}function Xh(s,r,t,e){return r&&!Yh(s)&&!Kh(s,r,e)&&Qh(r,t)}function Kh(s,r,t){return s.hasAttribute(zh)||Jh(r,t)}function Jh(s,r){let t=!1;return s&&r&&(t=r.test(s)),s&&(csArray.prototype.some.call(Fh,e=>e.test(s))||t)}function Qh(s,r){return s&&ln("id",s,r)}function ln(s,r,t){try{return window.csquerySelectorAll[t.nodeType].call(t,`[${s}="${r}"]`).length===1}catch(e){if(e.name!=="SyntaxError")throw e}return!1}function Zh(s,r){try{return window.csquerySelectorAll[r.nodeType].call(r,s).length===1}catch(t){if(t.name!=="SyntaxError")throw t}return!1}function tu(s,r,t){if(!t.uniqueAttributes)return{success:!1};for(let e of t.uniqueAttributes){let i=s.getAttribute(e);if(i!==null&&ln(e,i,r))return{attributeName:e,attributeValue:i,success:!0}}return{success:!1}}var $r=11;function Yi(s,r,t){let e=csArray.prototype.shift.call(s);if(s.length===0)return eo(e,t);let i=e,n=s[0],{elementSelector:a,hasUniqueIdentifier:c}=Pa(i,n,r,t);if(!t.fullPath&&c){let d=s[s.length-1];return`${eo(d,t)}${a}`}let l=Yi(s,r,t);return`${l?`${l}>`:""}${a}`}function eo(s,r){if(s===fi)return"|detached|";if(s.host){let{ancestors:t,selectionRoot:e}=Ca(s.host);return`${Yi(t,e,r)}|shadow-root|`}return s.nodeType===$r?"|fragment|":""}var Oa=(()=>{class s{constructor(t){this.options=t,this.done=!1,this.path=null}getPath(){if(this.path===null)throw new Error("getPath was called before serializeElement");return this.path}isDone(){return this.done}}return s})(),eu=(()=>{class s extends Oa{constructor(){super(...arguments),this.no=!1,this.oo=!1,this.Za=!1}Fm(t,e){return this.no&&!(e===null&&Wi(t))&&t.nodeType!==$r&&!t.host}$m(t){return!t.localName}serializeElement(t,e,i){var n;if((n=this.path)!==null&&n!==void 0||(this.path=""),this.Fm(t,e))return;let a=!1;e===null&&Wi(t)&&(a=!0,this.done=!0);let c=this.oo&&!this.options.fullPath?"":">",l=!!t.host;if(l&&this.path&&(this.path="|shadow-root|"+c+this.path,this.Za=!0,this.no=!1,this.oo=!1),!l&&e===null&&t.nodeType===$r){this.path="|fragment|"+c+this.path,this.done=!0;return}if(this.$m(t))return;let d=e!=null?e:"detached",{elementSelector:g,hasUniqueIdentifier:u}=Pa(t,d,i,this.options);u&&(this.oo=!0,this.no=!this.options.fullPath);let y=`${a?`|detached|${c}`:""}${this.no&&!u?"":g}`,v=!u&&this.oo&&!this.options.fullPath?"":this.path&&!this.Za?">":"";this.Za=!1,this.path=`${y}${v}${this.path}`}}return s})();function Xt(s,r=kt.SHOW_ALL){let t=r|kt.SHOW_ELEMENT,e=[document.createTreeWalker(s,t,null,!1)],i=so(s);i&&csArray.prototype.push.call(e,document.createTreeWalker(i,t,null,!1));let n=null;return{root:s,nextNode(){if(i){let a=i;return i=null,a}for(;e.length>0;){if(n){let d=n;return n=null,d}let c=e[e.length-1].nextNode();if(!c){csArray.prototype.pop.call(e);continue}let l=so(c);if(r&kt.SHOW_DOCUMENT_FRAGMENT&&l&&(n=l),l&&csArray.prototype.push.call(e,document.createTreeWalker(l,t,null,!1)),(Er[c.nodeType]&r)!==0)return c}return null},visitAll(a){Er[s.nodeType]&r&&a(s);let c=this.nextNode();for(;c;){if((Er[c.nodeType]&r)===0){c=this.nextNode();continue}a(c),c=this.nextNode()}},collectAll(a){let c=[];return this.visitAll(l=>csArray.prototype.push.call(c,a?a(l):l)),c}}}function so(s){return s&&Ra(s)?s.shadowRoot:null}var yr=(()=>{var s;return(s=Rt.Node)!==null&&s!==void 0?s:{}})(),kt=(()=>{var s;return(s=Rt.NodeFilter)!==null&&s!==void 0?s:{}})(),Er={2:kt.SHOW_ATTRIBUTE,4:kt.SHOW_CDATA_SECTION,8:kt.SHOW_COMMENT,11:kt.SHOW_DOCUMENT_FRAGMENT,9:kt.SHOW_DOCUMENT,10:kt.SHOW_DOCUMENT_TYPE,1:kt.SHOW_ELEMENT,[yr.ENTITY_NODE]:kt.SHOW_ENTITY,[yr.ENTITY_REFERENCE_NODE]:kt.SHOW_ENTITY_REFERENCE,[yr.NOTATION_NODE]:kt.SHOW_NOTATION,7:kt.SHOW_PROCESSING_INSTRUCTION,3:kt.SHOW_TEXT},st={debug(...s){},warn(...s){},implementation(...s){},error(...s){},critical(...s){},isPerfLoggingActive(){return!1}};function su(s){st=s}var P=s=>(r,t,e)=>{let i=(t==null?void 0:t.toString())||"",n=s||`${r.constructor&&r.constructor.name}.${i}`;if(e){let a=e.value;e.value=function(...c){return qe(n,a.bind(this))(...c)}}};function qe(s,r){return function(...t){try{let e=r.apply(this,t);return Z(window.Promise)&&e instanceof window.Promise?e.then(i=>i,i=>st.error(ze(i)?i:new Error(i),s)):e}catch(e){try{st.error(ze(e)?e:new Error(e),s)}catch{}}}}var Ms=(()=>{class s{constructor(){this.ao=0}get length(){return this.ao}get isEmpty(){return!this.Ps}pushAll(t){for(let e=0;e=Ma&&csArray.prototype.push.call(Sr,{mName:s,mDuration:+t.toFixed(2)}),csArray.prototype.pop.call(zr),zr.length===0&&(t>Na&&Bi.push(Sr),Sr=[])}function hs(s,r){return function(...t){if(!Xi)return s.apply(this,t);ka(r);let e=s.apply(this,t);return Da(r),e}}var Dt=function(s){return function(r,t,e){let i=e.value;e.value=function(){if(!Xi)return e.value=i,i.apply(this,arguments);ka(s);let n=i.apply(this,arguments);return Da(s),n}}};var cs=(()=>{let s;return function(r){function t(){return!!Element.prototype.attachShadow}r.isSupported=t;function e(n){return n&&Ra(n)?n.shadowRoot:null}r.getShadowRoot=e;function i(n){return Xt(n,NodeFilter.SHOW_DOCUMENT_FRAGMENT).collectAll(a=>a.host)}r.getAllShadowHosts=hs(i,"getAllShadowHosts")}(s||(s={})),s})(),Et=(()=>{let s;return function(r){function t(){let u=[i()];return document.documentElement&&csArray.prototype.push.call(u,document.documentElement.scrollHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight),document.body&&csArray.prototype.push.call(u,document.body.scrollHeight,document.body.offsetHeight),Math.max(...u)}r.documentHeight=t;function e(){return document.documentElement.scrollWidth}r.documentWidth=e;function i(){return window.innerHeight}r.windowHeight=i;function n(){return window.innerWidth}r.windowWidth=n;function a(){let u=window.csScreen.width;return Ts(u)&&u>0?u:window.screen.width}r.screenWidth=a;function c(){let u=window.csScreen.height;return Ts(u)&&u>0?u:window.screen.height}r.screenHeight=c;function l(){return window.pageXOffset}r.windowOffsetX=l;function d(){return window.pageYOffset}r.windowOffsetY=d;function g(){return{dw:`${e()}`,dh:`${t()}`,ww:`${n()}`,wh:`${i()}`,sw:`${a()}`,sh:`${c()}`}}r.getRequestParameters=g}(s||(s={})),s})();function ci(s){var r;let t=(r=s.length)!==null&&r!==void 0?r:0,e=new csArray(t);for(let i=0;icsArray.prototype.push.call(t,e)),t}function J(s,r){if(ou(s)){let t=s.length;for(let e=0;e=0}function xe(s,r){let t=s.length;for(let e=0;ecsArray.prototype.push.call(t,r?[i,e]:e)),t}var vr=(()=>{var s;return(s=Rt.Node)!==null&&s!==void 0?s:Object})(),lt=(()=>{let s;return function(r){let t="isConnected"in vr.prototype?S=>S.isConnected:S=>!S.ownerDocument||!(S.ownerDocument.compareDocumentPosition(S)&S.DOCUMENT_POSITION_DISCONNECTED);function e(S,O){for(let V=S;V;V=csNodenextSibling.apply(V))O(S)}r.forEachChild=e;function i(S){return t(S)}r.isConnected=i;function n(S,O){let V=[];for(let B of l(S,O))csArray.prototype.push.call(V,B);return V}r.getAncestors=n;let a=(S,O)=>{var V;return(V=csNodeparentNode.apply(S))!==null&&V!==void 0?V:O&&ai(S)?S.host:null};function c(S,O,V=!1){let B=S;for(;B;){if(O(B))return B;let tt=a(B,V);if(tt&&tt!==B)B=tt;else break}return null}r.findAncestor=c;function*l(S,O=!1){let V=S;for(;V;){yield V;let B=a(V,O);if(B&&B!==V)V=B;else break}}r.walkUp=l;function d(S,O){if(S===O||O.contains(S))return!0;let V=r.getParentElement(S);return V&&V!==S?d(V,O):!1}r.isDescendantOf=d;function g(S){var O;return S.parentElement?S.parentElement:r.getRootNode(S)?(O=r.getRootNode(S))===null||O===void 0?void 0:O.host:null}r.getParentElement=g;function u(S,O=document){let V=ci(window.csquerySelectorAll[O.nodeType].call(O,S)),B=cs.getAllShadowHosts(O);for(let tt of B){let ht=cs.getShadowRoot(tt);if(!ht)continue;let Pt=ci(window.csquerySelectorAll[ht.nodeType].call(ht,S));csArray.prototype.push.call(V,...Pt)}return V}r.findAllElements=u,r.getRootNode=(()=>{if("getRootNode"in vr.prototype)return(V,B)=>V.getRootNode(B);function S(V){let B=O(V);return ai(B)?S(B.host):B}function O(V){return csNodeparentNode.apply(V)!=null?O(csNodeparentNode.apply(V)):V}return(V,B)=>typeof B=="object"&&!!B.composed?S(V):O(V)})();function y(S){return S==="transparent"||/^(rgba|hsla)\(\d+, \d+%?, \d+%?, 0\)$/.test(S)}function E(S){let O=S.getBoundingClientRect();return O.right+Et.windowOffsetX()<0||O.bottom+Et.windowOffsetY()<0}function v(S){var O,V;if(((O=S.checkVisibility)===null||O===void 0?void 0:O.call(S,{checkOpacity:!0,checkVisibilityCSS:!0}))===!1)return!0;if(!S.offsetParent){if(!S.getBoundingClientRect)return st.warn(`SUP-11432: Element doesn't have getBoundingClientRect. Node: ${S instanceof vr} Ctor: ${(V=S==null?void 0:S.constructor)===null||V===void 0?void 0:V.name}`),!1;let ht=S.getBoundingClientRect();if(ht.width==0&&ht.height==0)return!0}let B=window.getComputedStyle(S);return B?B.display==="none"||B.visibility==="hidden"||B.visibility==="collapse"||B.opacity==="0"||B.filter==="opacity(0)"||B.width==="0px"&&B.height==="0px"||y(B.color):!0}r.isHiddenByCSS=v;function A(S){if(v(S))return!0;let V=g(S);return V!=null&&A(V)}r.areAncestorsHiddenByCSS=A;function k(S){let O=null,V=S;do if(v(V))O=V;else break;while(V=g(V));return O}r.getTopAncestorHiddenByCSS=k;function R(S){let O=b(S);return O!==null&&!S.contains(O)&&!O.contains(S)}function b(S){let O=S.getBoundingClientRect(),V=O.left+.5*O.width,B=O.top+.5*O.height;return w(document,V,B)}r.getTopElement=b;function x(S){if(!S.getBoundingClientRect)return null;let O=S.getBoundingClientRect(),V=O.x+O.width/2,B=O.y+O.height/2;return r.getTopElementFromPoint(document,V,B)}r.getElementOnTop=x;function w(S,O,V){let B=S.elementFromPoint(O,V);if(!B)return null;let tt=cs.getShadowRoot(B);return tt&&tt!=r.getRootNode(document.body)&&tt!==S?w(tt,O,V):B}r.getTopElementFromPoint=w;function D(S){return!E(S)&&!v(S)&&!R(S)}r.isVisibleInDocument=D;function j(S){return v(S)?!1:W(S)}r.isVisibleInViewportInForeground=j;function W(S){let O=b(S);return O===null?!1:S===O?!0:_t(S)?S.textContent!==""&&O.contains(S):S.contains(O)}r.isInViewPort=W;function at(S,O,V){let B=S.getAttributeNS(O,V);return B===""?S.hasAttributeNS(O,V)?B:null:B}r.getAttributeNS=at;function vt(S){return!!(S.hasAttribute("tabIndex")||S.getAttribute("contentEditable")==="true"||Aa(S)&&S.hasAttribute("href")||(on(S)||nn(S)||Zi(S)||Ih(S))&&!S.hasAttribute("disabled")||Ph(S)||Oh(S))}r.isElementFocusable=vt;function _t(S){return S.localName==="span"||S.localName==="a"||S.localName==="b"||S.localName==="i"||S.localName==="button"||S.localName==="input"||S.localName==="label"||S.localName==="cite"||S.localName==="small"||S.localName==="strong"||S.localName==="code"||S.localName==="abbr"||S.localName==="em"||S.localName==="dfn"||S.localName==="time"||S.localName==="output"||S.localName==="object"||S.localName==="sub"}r.isInlineElement=_t}(s||(s={})),s})(),lu=(()=>{class s{constructor(t){this.zm=t}run(t){let e=[...this.zm],i=lt.getAncestors(t,!1),n=i[i.length-1];for(;e.length>0&&i.length>0;){let a=csArray.prototype.shift.call(i),c=i[0]||null;if(this.qm(e,a,c,n),this.Gm(e),e.length===0)break;i.length===0&&a.host&&(i=lt.getAncestors(a.host,!1),n=i[i.length-1])}}qm(t,e,i,n){for(let a of t)a.serializeElement(e,i,n)}Gm(t){for(let e=0;e{class s extends Oa{serializeElement(t){var e;if((e=this.path)!==null&&e!==void 0||(this.path=""),(t==="detached"||t.localName==="body")&&(this.done=!0,this.path.length>0))return;let i=this.Wm(t);if(i+=i.length>0?"|":"",this.path.length+i.length>this.options.hierarchyMaxLength){this.done=!0;return}this.path=i+this.path}Wm(t){if(!t.localName)return"";let e=`@${t.localName};`;return e+=this.Ym(t.id),t.classList&&(e+=this.Xm(csArray.from(t.classList))),t.attributes&&(e+=this.Km(t)),e}Ym(t){return t?`#${t};`:""}Xm(t){return t.length>0?`.${csArray.prototype.join.call(csArray.prototype.sort.call(t),";.")};`:""}Jm(t,e){var i,n;return((n=(i=this.options).isAttributeSensitive)===null||n===void 0?void 0:n.call(i,t,e))||csArray.prototype.indexOf.call(this.options.attributeIgnoreTokens,e)!==-1||Ns(t)&&csString.prototype.indexOf.call(e,"data-")===-1&&e!=="aria-label"||Zi(t)&&e==="value"}Qm(t,e){return this.options.useAnonymization&&!this.options.allWhitelistedAttributes.has(t)||e.length>this.options.attrMaxLength}Zm(t){let e={};for(let i of csArray.from(t.attributes))this.Jm(t,i.name)||(e[i.name]=i.value);return e}Km(t){var e,i;if(!((i=(e=this.options).isNodeSensitive)===null||i===void 0)&&i.call(e,t))return"";let n=Object.entries(this.Zm(t));return csArray.prototype.join.call(csArray.prototype.sort.call(csArray.prototype.map.call(csArray.prototype.filter.call(n,([a])=>a.lengththis.Qm(a,c)?`[${a}]`:`[${a}=${c}]`)),";")+(n.length>0?";":"")}}return s})(),ue=(()=>{let s;return function(r){r.INVALID_ELEMENT="INVALID_ELEMENT";function t(c){return!!c&&"localName"in c&&"getAttribute"in c&&"hasAttribute"in c&&"parentNode"in c}r.isValidElement=t;function e(c,l,d={fullPath:!1,dynamicIdRegex:null}){let g=a(c);if(g===document)return{path:"",hierarchy:""};if(!t(g))return{path:r.INVALID_ELEMENT,hierarchy:r.INVALID_ELEMENT};let u=new eu(d),y=new hu(l);return new lu([u,y]).run(g),{path:u.getPath(),hierarchy:y.getPath()}}r.getElementPathAndHierarchy=e;function i(c,l={fullPath:!1,dynamicIdRegex:null}){let d=a(c);if(d===document)return"";if(!t(d))return r.INVALID_ELEMENT;let{ancestors:g,selectionRoot:u}=Ca(d);return Yi(g,u,l)}r.getElementPath=i;function n(c,l={fullPath:!1,dynamicIdRegex:null}){let d=a(c);if(d===document)return{path:"",firstAnchorParent:null};if(!t(d))return{path:r.INVALID_ELEMENT,firstAnchorParent:null};let{firstAnchorParent:g,ancestors:u,selectionRoot:y}=Uh(d);return{path:Yi(u,y,l),firstAnchorParent:g}}r.getElementPathAndFirstAnchorParent=n;function a(c){return c&&"jquery"in c&&c.length===1?c[0]:c}}(s||(s={})),s})();window.CSPathComputation=window.CSPathComputation||ue;var uu=Number.MAX_SAFE_INTEGER||9007199254740991;function ro(){}function Ge(s,r){return csString.prototype.lastIndexOf.call(s,r,0)===0}function du(s,r){return csString.prototype.indexOf.call(s,r,s.length-r.length)!==-1}var hn=34164e6,Cs={percentage(){return Math.floor(Math.random()*1e4)/100},boolean(s){return this.percentage(){let s;return function(r){r.debug="debug",r.warn="warn",r.implementation="implementation",r.error="error",r.critical="critical"}(s||(s={})),s})(),Va=["t.contentsquare.net","clicktale"],fu=s=>{var r;if(typeof s.filename=="string"&&csArray.prototype.some.call(Va,t=>csString.prototype.indexOf.call(s.filename,t)>-1)&&!(csString.prototype.indexOf.call(s.filename,"blob")>-1&&(s.message==null?void 0:csString.prototype.indexOf.call(s.message,"importScripts"))>-1)){let t=new Error(s.message);t.stack=(r=s.error)===null||r===void 0?void 0:r.stack,H.critical(t)}};window.addEventListener("error",fu);var H=(()=>{class s{constructor(){}static whiteListFilename(t){csArray.prototype.push.call(Va,t)}static setStrategy(t){s.Vi=t}static computeIsActive(t){s.Le=Cs.boolean(t),s.Le?s.tc=Cs.boolean(10):s.tc=!1}static isLoggingActive(){return s.Le}static getStrategy(){return s.Vi}static debug(t,e=""){s.Le&&this.Vi.send(t,e,rt.debug)}static warn(t,e=!0,i=""){var n;s.Le&&e&&this.Vi.send(t,i,rt.warn),(n=window.UXAnalytics.Console)===null||n===void 0||n.warn(t)}static implementation(t,e=""){s.Le&&this.Vi.send(t,e,rt.implementation)}static error(t,e=""){var i;s.Le&&this.Vi.send(t,e,rt.error),(i=window.UXAnalytics.Console)===null||i===void 0||i.error(t)}static critical(t,e=""){this.Vi.send(t,e,rt.critical)}static tryToExecute(t,e){return function(...i){try{let n=e.apply(this,i);return Z(window.Promise)&&n instanceof window.Promise?n.then(a=>a,a=>s.error(ze(a)?a:new Error(a),t)):n}catch(n){try{s.error(ze(n)?n:new Error(n),t)}catch{}}}}static isPerfLoggingActive(){return s.tc}}return s.Le=!1,s.tc=!1,s})();var gu=/^\d+\.\d+(?:\.\d+)?$/,mu=s=>{if(!gu.test(s))return;let[r,t,e]=csArray.prototype.map.call(csString.prototype.split.call(s,"."),Number);return{major:r,minor:t,patch:!e||Number.isNaN(e)?0:e}},yu=(s,r)=>s.major!==r.major?s.major-r.major:s.minor!==r.minor?s.minor-r.minor:s.patch-r.patch,Eu=(s,r)=>yu(s,r)>=0,Su=1,vu="f553e78fb58e051e51fe8074c4c6e73e",qr=(()=>{let s;return function(r){r[r.Disabled=0]="Disabled",r[r.ButtonAndLinkOnly=1]="ButtonAndLinkOnly",r[r.Enabled=2]="Enabled"}(s||(s={})),s})(),_u=(()=>{class s{constructor(t){var e,i,n,a,c,l,d;this.isSMB=(e=t.isSMB)!==null&&e!==void 0?e:!1,this.trackerDomain=t.trackerDomain,this.dynamicConfDomain=t.dynamicConfDomain,this.tagDomain=t.tagDomain,this.loggerDomain=t.ed,this.minLogLevel=t.logLevel,this.projectId=t.projectId,this.smbConfig=t.smbConfig,this.status=t.status,this.hostnames=t.hostnames,this.iframesTracking=!!t.iframesTracking,this.crossDomainTracking=!!t.crossDomainTracking,this.crossDomainSingleIframeTracking=!!t.crossDomainSingleIframeTracking,this.consentRequired=!!t.consentRequired,this.allowSubdomains=!!t.allowSubdomains,this.visitorCookieTimeout=t.visitorCookieTimeout||hn,this.sampleRate=t.sampleRate,this.replayRecordingRate=t.replayRecordingRate,this.validationRate=t.validationRate,this.lastTrackingDraw=t.lastTrackingDraw||1,this.useHttps=!0,this.eMerchandisingEnabled=t.eMerchandisingEnabled,this.mouseMoveHeatmapEnabled=t.mouseMoveHeatmapEnabled,this.jsErrorsEnabled=t.jsErrorsEnabled,this.apiErrors={enabled:(i=t.apiErrorsEnabled)!==null&&i!==void 0?i:0,...t.apiErrors},this.customErrors={enabled:(n=t.customErrorsEnabled)!==null&&n!==void 0?n:0,...t.customErrors},this.jsCustomErrorsEnabled=t.jsCustomErrorsEnabled,this.triggerSessionReplayEnabled=t.triggerSessionReplayEnabled,this.triggerSessionReplayRegex=this.sc(t.triggerSessionReplayRegex),this.dynamicIdRegex=t.dynamicIdRegex?new csRegExp(t.dynamicIdRegex):null,this.whitelistedAttributes=t.whitelistedAttributes||[],this.replayRecordingUnmaskedUrlRegex=this.sc(t.replayRecordingUnmaskedUrlRegex),this.replayRecordingMaskedUrlRegex=this.sc(t.replayRecordingMaskedUrlRegex),this.replayRecordingMaskedUrlRegexRules=t.replayRecordingMaskedUrlRegexRules||null,this.replayRecordingUnmaskedUrlRegexRules=t.replayRecordingUnmaskedUrlRegexRules||null,this.anonymisationMethod=t.anonymisationMethod||null,this.tagDeploymentMode=t.tagDeploymentMode,this.dualCollectionTagDomain=t.dualCollectionTagDomain||null,this.ptcDomain=t.ptcDomain||null,this.ptcGuid=t.ptcGuid||null,this.secureCookiesEnabled=!!t.secureCookiesEnabled,this.ptcSha512=t.ptcSha512||null,this.ptcSnapshotPath=t.ptcSnapshotPath||null,this.emitDebugEvents=!1,this.malkaQuotaServiceDomain=t.malkaQuotaServiceDomain||null,this.staticResourceManagerDomain=t.staticResourceManagerDomain||null,this.malkaRecordingDomain=t.malkaRecordingDomain||null,this.textVisibilityEnabled=t.textVisibilityEnabled,this.experimental=t.experimental||{},this.malkaEtrEnabled=!!t.malkaEtrEnabled,this.malkaUrlEnabled=!!t.malkaUrlEnabled,this.cookielessTrackingEnabled=t.cookielessTrackingEnabled,this.customHashIdEnabled=!!t.customHashIdEnabled,this.encryptionEnabled=!!t.recordingEncryptionEnabled,this.encryptionPublicKey=t.recordingEncryptionPublicKey||null,this.pathComputationRules=t.pathComputationRules||{},t.pathComputationRules&&t.pathComputationRules.dynamicElementNameRegex===""&&(this.pathComputationRules.dynamicElementNameRegex=null),t.pathComputationRules&&t.pathComputationRules.dynamicElementNameRegex&&(this.pathComputationRules.dynamicElementNameRegex=new csRegExp(t.pathComputationRules.dynamicElementNameRegex)),this.asyncSerializerEnabled=!!t.asyncSerializerEnabled,this.encryptionPublicKeyId=t.recordingEncryptionPublicKeyId,this.pendingInactivityTimeout=t.pendingInactivityTimeout||5e3,this.accessibilityEnabled=!!t.accessibilityEnabled,this.useStaticResourceManager=!!t.useStaticResourceManager,t.taskSchedulerOptions&&(this.taskSchedulerOptions={...t.taskSchedulerOptions,enabled:!!t.taskSchedulerOptions.enabled}),this.uxaDomain=t.uxaDomain,this.environment=((a=t.uxaDomain)===null||a===void 0?void 0:a.indexOf("staging"))>-1?"staging":"production",this.performanceTimingOptions=t.performanceTimingOptions,this.replayConsentRequiredForSession=!!t.replayConsentRequiredForSession,this.isWebView=!1,t.displayAdOptions&&t.displayAdOptions.length&&(this.displayAdOptions=t.displayAdOptions),t.voc&&(this.voc={...t.voc,enabled:!!t.voc.enabled}),t.heapEnvironment&&(this.heapEnvironment=t.heapEnvironment),t.implementations&&t.implementations.length&&(this.implementations=t.implementations),this.eventsApiEnabled=!!t.eventsApiEnabled,this.anonymizeDigits=(c=t.anonymizeDigits)!==null&&c!==void 0?c:null,this.isHeapPresent=window.heap!==void 0,this.recordTargetingRules=(l=t.recordTargetingRules)!==null&&l!==void 0?l:[],this.paProxyDomainUri=t.paProxyDomainUri||null,this.emitRecordInfoEvents=t.emitRecordInfoEvents!=!1,this.collectHierarchy=!!t.collectHierarchy,this.collectSubmit=!!t.collectSubmit,this.collectTargetText=(d=t.collectTargetText)!==null&&d!==void 0?d:qr.Disabled}getTrackerUri(){return`${this.hs()}://${this.trackerDomain}`}getSentryFileUri(){return`${this.hs()}://${this.tagDomain}/uxa/smb/errors.js`}getSentryDSNUri(){return`https://${vu}@${this.loggerDomain}/4508608369131520`}getRecordingUri(){return`${this.hs()}://${this.malkaRecordingDomain}`}getLegacyQuotaUri(){return`${this.hs()}://${this.malkaQuotaServiceDomain}`}getLoggerUri(){return`${this.hs()}://${this.loggerDomain}`}getMetricsUri(){return`${this.hs()}://${this.loggerDomain}/metrics`}getStaticResourceManagerUri(){return`${this.hs()}://${this.staticResourceManagerDomain}`}getQuotaUri(){return`${this.hs()}://${this.dynamicConfDomain}/${this.projectId}.json`}isQuotaEnabled(){return this.isSMB&&!!this.dynamicConfDomain}getPaProxyDomainUri(){return`${this.hs()}://${this.paProxyDomainUri}`}hs(){return this.useHttps?"https":"http"}isProjectActive(){return this.status===Su}processOptionOverrides(t){t&&t.forEach&&t.forEach(([e,...i])=>{if(e==="setOption"){let[n,a]=i;this.ty(n,a)}})}ty(t,e){t==="trackerDomain"&&(this.trackerDomain=e),t==="loggerDomain"&&(this.loggerDomain=e),t==="malkaRecordingDomain"&&(this.malkaRecordingDomain=e),t==="malkaQuotaServiceDomain"&&(this.malkaQuotaServiceDomain=e),t==="staticResourceManagerDomain"&&(this.staticResourceManagerDomain=e),t==="minLogLevel"&&(this.minLogLevel=e),t==="useHttps"&&(this.useHttps=!!e),t==="isWebView"&&(this.isWebView=e)}sc(t){return t?this.ey(t):null}getRequestParameters(){return{pid:`${this.projectId}`}}updateDynamicFields(t,e){t==="emitDebugEvents"&&(this.emitDebugEvents=e),t==="minLogLevel"&&(this.minLogLevel=e)}ey(t){try{let e=/^\/(.*)\/([gim]*)$/.exec(t);if(e){let[,i,n]=e;return new csRegExp(`^${i}$`,n)}return new csRegExp(`^${t}$`)}catch{return null}}isHeaderCollectionActive(){var t,e;return this.apiErrors.collectStandardHeaders||!!(!((t=this.apiErrors.validCustomHeaders)===null||t===void 0)&&t.length)||!!(!((e=this.apiErrors.plainCustomHeaders)===null||e===void 0)&&e.length)}isCsSideloadingHeap(){var t;return((t=this.heapEnvironment)===null||t===void 0?void 0:t.heap_tag_status)==="cs_sideloads_heap"&&!this.isHeapPresent}isHeapSideloadsCs(){var t;return((t=this.heapEnvironment)===null||t===void 0?void 0:t.heap_tag_status)==="heap_sideloads_cs"}isHeapSideloadsCsV5(){var t;return((t=this.heapEnvironment)===null||t===void 0?void 0:t.heap_tag_status)==="heap_sideloads_cs"&&this.Hu()}isHeapSideloadsStartDataCollection(){if(this.isHeapSideloadsCs()){if(this.Hu())return!0;let t=mu(this.getHeapVersion()||"");if(t&&t.major===4&&Eu(t,{major:4,minor:23,patch:5}))return!0}return!1}Hu(){var t;return typeof((t=window.heap)===null||t===void 0?void 0:t.getUserId)=="function"}getHeapVersion(){var t,e,i,n,a,c;return typeof((t=window.heap)===null||t===void 0?void 0:t.getConfig)=="function"&&((n=(i=(e=window.heap)===null||e===void 0?void 0:e.getConfig())===null||i===void 0?void 0:i.sdk)===null||n===void 0?void 0:n.version)||((c=(a=window.heap)===null||a===void 0?void 0:a.version)===null||c===void 0?void 0:c.heapJsVersion)||void 0}isCsCrosswritingHeap(){var t;return((t=this.heapEnvironment)===null||t===void 0?void 0:t.heap_tag_status)==="cs_crosswrites_heap"}isCollectTargetTextEnabled(){return this.isSMB||this.collectTargetText!==qr.Disabled}isNetworkDetailsEnabled(){return this.performanceTimingOptions?this.performanceTimingOptions.withResource||this.performanceTimingOptions.withNavigation:!1}hasTargetingRules(){var t;return!!(!((t=this.recordTargetingRules)===null||t===void 0)&&t.length)}}return s})(),wu=(()=>{class s{constructor(t,e){this.co=t,this.Bu=e}init(){this.Fu=this.co!==this.co.top,this.$u=this.Bu.isWebView&&this.co===this.co.top,this.Bu.iframesTracking&&this.Fu||this.$u?this.zu=!1:this.zu=!0}isInIframeContext(){return this.Fu}isTopWindowTracker(){return this.zu}isInWebViewContext(){return this.$u}}return s})(),li=(()=>{let s;return function(r){function t(e){return csArray.prototype.join.call(csArray.prototype.map.call(Object.keys(e),i=>`${encodeURIComponent(i)}=${encodeURIComponent(e[i])}`),"&")}r.toQuery=t}(s||(s={})),s})(),Ua=(()=>{class s{constructor(t,e){this.domainUri=t,this.path=e,this.beforeRequestCallbacks=[],this.afterRequestCallbacks=[]}setRequestParametersProviders(...t){this.requestParametersProviders=t}before(t){csArray.prototype.push.call(this.beforeRequestCallbacks,t)}after(t){csArray.prototype.push.call(this.afterRequestCallbacks,t)}retrieveParameters(){return this.requestParametersProviders?csArray.prototype.reduce.call(csArray.prototype.map.call(this.requestParametersProviders,t=>t.getRequestParameters()),(t,e)=>({...t,...e})):{}}}return s})(),Ps=(()=>{class s extends Ua{constructor(t,e){super(t,e)}send(){csArray.prototype.forEach.call(this.beforeRequestCallbacks,i=>i());let t=this.retrieveParameters();this.ic(t);let e=li.toQuery(t);this.sy(e),csArray.prototype.forEach.call(this.afterRequestCallbacks,i=>i())}sy(t){let e=new window.Image(1,1);e.onload=ro,e.onerror=ro,csHTMLImageElementsrc.call(e,`${this.domainUri}${this.path?`/${this.path}`:""}?${t}`)}ic(t){t.r=csString.prototype.slice.call(`${Math.random()}`,2,8)}}return s})(),bu=(()=>{class s{constructor(t,e){this.Os=t,this.iy=e}init(){this.us=new Ps(this.Os.getLoggerUri()),this.us.setRequestParametersProviders(this,this.iy)}send(t){this.lo=t,this.us.send()}getRequestParameters(){return{a:this.lo.app,l:this.lo.level,m:this.lo.message,s:this.lo.stacktrace}}}return s})();function ct(s,r,t,e){var i=arguments.length,n=i<3?r:e===null?e=Object.getOwnPropertyDescriptor(r,t):e,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,r,t,e);else for(var c=s.length-1;c>=0;c--)(a=s[c])&&(n=(i<3?a(n):i>3?a(r,t,n):a(r,t))||n);return i>3&&n&&Object.defineProperty(r,t,n),n}var Gr=(()=>{class s{static setGlobalService(t){s.globalService=t}constructor(t){this.name=t}_get(){return this._values}_reset(){this._values={}}aggregate(){if(!s.globalService)return;let t=this._get(),e=Object.keys(t);e.length&&(s.globalService.push(csArray.prototype.map.call(e,i=>({name:this.name,parameter:i,value:t[i]}))),this._reset())}}return s.globalService=null,ct([P("Metric.aggregate")],s.prototype,"aggregate",null),s})(),xt=(()=>{class s extends Gr{constructor(t,e=100){super(t),this.ry=e,this.Ce=null,this._values={}}count(t,e=1){this._values[t]=(this._values[t]||0)+e,this._debounce()}_debounce(){Gr.globalService&&(this.Ce&&window.csClearTimeout(this.Ce),this.Ce=window.csSetTimeout(()=>{this.aggregate(),this.Ce=null},this.ry))}}return s})();var nt={counters:{commandsFromIntegrations:new xt("commands-from-integrations"),commandsFromCSTC:new xt("commands-from-cstc"),commandsFromIframe:new xt("commands-from-iframe"),commandApplied:new xt("command-applied"),commandError:new xt("command-error"),commandMisuse:new xt("command-misuse"),CSTCSnippetUsed:new xt("cstc-snippet-used"),redactedPII:new xt("redacted-pii"),pageAnonymisation:new xt("page-anonymisation"),patchedNativeFunctions:new xt("patched-native-functions"),pureWindowState:new xt("pure-window-state"),sensitiveElements:new xt("sensitive-elements"),cspErrors:new xt("csp-errors"),networkRequests:new xt("network-requests")},setService(s){Gr.setGlobalService(s)}},Au=/[a-zA-Z0-9._%+-]+(?:@|%40|%2540)[a-zA-Z0-9.%-_]+((?:\.|%2[eE])[a-zA-Z0-9-]+)+/g,Tu=/[a-zA-Z0-9+_-](?:@|%40|%2540)/,Ru="CS_ANONYMIZED_EMAIL",wr="([-A-Za-z0-9+/=_]|=[^=]|={3,})+",Cu=new csRegExp(`(ey${wr}\\.ey${wr}\\.${wr})`,"g"),Iu="CS_ANONYMIZED_JWT",Pu=/[0-9]{4}/,Ou=/(^|[^a-zA-Z0-9*.,-])([45*][0-9*]{3}([ -]?)[0-9*]{4}\3[0-9*]{4}\3[0-9*]{4})($|[^a-zA-Z0-9*.,-])/g,Nu="CS_ANONYMIZED_PII",Mu="\u2022",ku=/\d/g,Du=/([+(]{0,2}\d[-_ ()/]{0,4}){9,}/,Lu=/(?:\d{1,3}\.){3}\d{1,3}/,xu=/(?:[A-F0-9]{1,4}:){7}[A-F0-9]{1,4}/,Te=(()=>{let s;return function(r){function t(g){return csString.prototype.replace.call(g,Au,Ru)}r.replaceEmail=t;function e(g){return csString.prototype.replace.call(g,Cu,Iu)}r.replaceJWT=e;function i(g,u){return csString.prototype.replace.call(g,Ou,u)}r.replaceCreditCardNumber=i;function n(g){return csString.prototype.replace.call(g,ku,Mu)}r.replaceDigits=n;function a(g){return Lu.test(g)||xu.test(g)}r.mayHaveIPAddress=a;function c(g){return Du.test(g)}r.mayHaveNumberSequence=c;function l(g){return Pu.test(g)}r.mayHaveCreditCardNumber=l;function d(g){return Tu.test(g)}r.mayHaveEmail=d}(s||(s={})),s})(),gi=(()=>{class s{hasPII(t,e){let i=this.checkAndAnonymizePII(t,e);return t!==i}checkAndAnonymizePII(t,e=null){let i=this.ny(this.rc(t));return e===!0?i=this.oy(i):e===!1&&(i=this.ay(i)),i}anonymizePII(t){return this.rc(t)}anonymizeJwt(t){return Te.replaceJWT(t)}anonymizeFields(t,e){return csArray.prototype.forEach.call(e,i=>{t[i]=this.rc(t[i])}),t}rc(t){if(Te.mayHaveEmail(t)){let e=Te.replaceEmail(t);return e!==t&&nt.counters.redactedPII.count("email"),e}return t}oy(t){return Te.replaceDigits(t)}ay(t){return Te.mayHaveNumberSequence(t)?Te.replaceDigits(t):t}ny(t){return Te.mayHaveCreditCardNumber(t)?Te.replaceCreditCardNumber(t,(e,i,n,a,c)=>{if(csString.prototype.indexOf.call(n,"*")===-1){let d=a.length?csArray.prototype.join.call(csString.prototype.split.call(n,a),""):n;if(!this.cy(d))return e;nt.counters.redactedPII.count("cc")}else nt.counters.redactedPII.count("cc-partial");return`${i}${Nu}${c}`}):t}cy(t){let e=parseInt(t[t.length-1]),i=0;for(let n=t.length-2;n>=0;n--){let a=parseInt(t[n]);n%2===0&&(a*=2),i+=Math.floor(a/10)+a%10}return 10-i%10===e}}return s})(),ja="15.105.5";function un(){return{v:ja}}function dn(s){let r=new ArrayBuffer(s.length),t=new Uint8Array(r);for(let e=0,i=s.length;ecsString.prototype.padStart.call(t.toString(16),2,"0")),"")}function oo(s){let r=csString.prototype.indexOf.call(s,";base64,")!==-1,t=csString.prototype.indexOf.call(s,","),e=r?[csString.prototype.substring.call(s,0,t-7),csString.prototype.substring.call(s,t+1)]:[csString.prototype.substring.call(s,0,t),csString.prototype.substring.call(s,t+1)];if(!r&&/^%3Csvg/i.test(e[1]))try{e[1]=decodeURIComponent(e[1])}catch(a){st.warn(`${a}, calling decodeURIComponent on: ${e[1]}`)}let n=r?Ha(e[1]):dn(e[1]);return new Blob([n],{type:csString.prototype.replace.call(e[0],"data:","")})}var Ba=typeof performance!="undefined"&&!!performance.now,ao=Ba?()=>performance.now():csDate.now,Vu=(()=>{var s;return Ba?(s=performance.timing)===null||s===void 0?void 0:s.navigationStart:0})(),N={now(){return Math.round(ao()+Vu)},elapsed(){return ao()}};function co(){return Math.floor(N.now()/1e3)}function Fa(){return typeof window.Promise=="function"}function pn(){var s;return typeof crypto!="undefined"&&$e((s=crypto.subtle)===null||s===void 0?void 0:s.digest)}function lo(){var s,r;return typeof((s=window.navigation)===null||s===void 0?void 0:s.addEventListener)=="function"&&typeof((r=window.navigation)===null||r===void 0?void 0:r.removeEventListener)=="function"}function We(s,r){return csString.prototype.lastIndexOf.call(s,r,0)===0}function mi(s,r){return csString.prototype.indexOf.call(s,r,s.length-r.length)!==-1}async function ho(s,r){return Ki(await window.crypto.subtle.digest(s,r))}var $a=(()=>{class s{constructor(t,e){this.h=t,this.I=e}getRequestParameters(){return{d:`${N.now()}`,p:this.I.anonymizePII(window.location.href),...this.h.getRequestParameters(),...un()}}}return s})(),Uu="uxa",uo=5,ju="No stacktrace",za="snippet-",qa="implementation-snippet-",po=(()=>{let s;return function(r){r.IMPLEMENTATION="implementation",r.DYNAMIC="dynamic"}(s||(s={})),s})(),br={[rt.debug]:0,[rt.warn]:1,[rt.implementation]:1,[rt.error]:2,[rt.critical]:3},Hu=(()=>{class s{constructor(t,e,i){this.ds=e,this.I=new gi,this.qu=br[rt.warn],this.qu=br[t.minLogLevel||rt.warn],this.us=i||new bu(t,new $a(t,this.I)),this.Gu={[rt.debug]:[],[rt.warn]:[],[rt.implementation]:[],[rt.error]:[],[rt.critical]:[]},this.ho={implementation:{},dynamic:{}},this.us.init()}send(t,e="",i=rt.warn){if(!this.ly(i,e))return;csArray.prototype.push.call(this.Gu[i],e||"");let n={message:this.hy(t,e),stacktrace:this.uy(t),app:Uu,level:i};this.us.send(n)}hy(t,e){let i=ze(t)?this.I.anonymizePII(t.message||t.toString()):t;return e&&(i+=` ErrorCode: ${e}`),i}uy(t){return ze(t)?`${t.stack||ju} ${this.uo()}`:this.uo()}uo(){let t=this.ds.getVisitorService(),e=t==null?void 0:t.getVisitor();if(!e)return"No context";let i=this.ds.getSessionService(),n=i&&i.getSession(),a={userId:e.id,sessionNumber:e.visitsCount,pageNumber:n&&n.pageNumber};return csJSON.stringify(a)}ly(t,e){if(br[t]=uo||e&&csArray.prototype.some.call(i,n=>n===e))}Wu(t,e){return t in this.ho[e]?this.ho[e][t]>=uo?!1:(this.ho[e][t]+=1,!0):(this.ho[e][t]=1,!0)}}return s})(),At=!pi&&document.createElement("a"),Bu=/(:443|:80)$/;function He(s){return At?(At.href=s,At.href):""}function Fu(s,r){return new csURL(s,r).href}function Ga(s){let r=gn(s);return r===null?"":decodeURIComponent(r.hostname)}function fn(s,r){return csArray.prototype.some.call(r,t=>mi(s,`.${t}`)||s===t||t==="")}function $u(s){return s[0]==="/"?s:`/${s}`}function fo(s){return csString.prototype.replace.call(s,Bu,"")}function gn(s){return!At||!We(s,"http://")&&!We(s,"https://")?null:(At.href=s,{hash:At.hash,host:fo(At.host),hostname:At.hostname,href:At.href,origin:At.origin?At.origin:fo(`${At.protocol}//${At.host}`),pathname:$u(At.pathname),port:At.port,protocol:At.protocol,search:At.search})}var go="CS_IFRAME_MESSAGE",zu=(()=>{let s;return function(r){r.AfterPageView="afterPageView",r.GetSessionKey="getSessionKey"}(s||(s={})),s})(),te=(()=>{let s;return function(r){r.Parent="parent",r.Child="child"}(s||(s={})),s})(),K=(()=>{let s;return function(r){r.Discovery="discovery",r.Stop="stop",r.RecordingContext="recordingContext",r.SensitiveStatus="sensitiveStatus",r.RecordingEvent="recordingEvent",r.EndOfBufferedMessages="endOfBufferedMessages",r.ChildLogMessage="childLogMessage",r.AnalysisEvent="analysisEvent",r.JavascriptError="javascriptError",r.ApiError="apiError",r.Assets="assets",r.DetailedApiError="detailedApiError",r.EmerchandisingMessage="emerchandisingMessage",r.Commands="commands",r.IntegrationCallback="integrationCallback",r.StaticResource="staticResource",r.TrackingContextResultMessage="trackingContextResultMessage",r.TrackingContextRequestMessage="trackingContextRequestMessage",r.CustomError="customError"}(s||(s={})),s})(),yt=(()=>{let s;return function(r){function t(l,d,g,u){let y={type:l,from:d,pid:g,signature:go};return u!==void 0&&u>=0&&(y.id=u),y}r.buildBaseMessage=t;function e(l,d,g,u){let y=Ga(l.origin);return!!l.data&&!!l.data.type&&l.data.signature===go&&l.data.from===d&&l.data.pid===g&&fn(y,u)}r.isMessageValid=e;function i(l,d,g,u){u?l.postMessage(g,d,u):l.postMessage(g,d)}r.sendPostMessage=i;function n(){return new MessageChannel}r.getNewChannelMessage=n;function a(l,d){l.postMessage(d)}r.sendChannelMessage=a;function c(l){l.close()}r.closeChannelPort=c}(s||(s={})),s})(),qu=(()=>{class s{constructor(t){this.h=t}send(t,e="",i=rt.warn){let n={message:t,errorCode:e,level:i},a=yt.buildBaseMessage(K.ChildLogMessage,te.Child,this.h.projectId);a.content=n,yt.sendPostMessage(window.parent,"*",a)}}return s})(),Gu=(()=>{class s{setContext(t,e){this.T=t,this.w=e}getVisitorService(){return this.T}getSessionService(){return this.w}}return s})();function Wu(s){if(document!=null&&document.prerendering){document.addEventListener("prerenderingchange",s,{once:!0});return}s()}function U(s,r,t,e){var i=arguments.length,n=i<3?r:e===null?e=Object.getOwnPropertyDescriptor(r,t):e,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,r,t,e);else for(var c=s.length-1;c>=0;c--)(a=s[c])&&(n=(i<3?a(n):i>3?a(r,t,n):a(r,t))||n);return i>3&&n&&Object.defineProperty(r,t,n),n}function Yu(){let s=new MutationObserver(r=>{r.forEach(t=>{J(t.removedNodes,e=>{e instanceof HTMLElement&&e.tagName==="CS-NATIVE-FRAME-HOLDER"&&(nt.counters.pureWindowState.count("iframe-deletion"),st.warn(" deleted"),s.disconnect())})})});s.observe(document.body,{childList:!0})}function mo(s){return typeof s!="function"?!1:s.toString().indexOf("[native code]")!==-1}function Xu(){(!mo(MutationObserver)||!mo(MutationObserver.prototype.observe))&&nt.counters.patchedNativeFunctions.count("MutationObserver")}function Ku(){try{window.CSPureWindow&&Yu(),Xu()}catch{}}var pt=(()=>{let s;return function(r){r.CURRENT_DOMAIN="CURRENT_DOMAIN";function t(l){let g=new csRegExp(`(^|;)[ ]*${l}=([^;]*)`).exec(document.cookie);return g?decodeURIComponent(g[2]):null}r.get=t;function e(l,d,g,u,y,E){let v=encodeURIComponent(`${d}`),A=g===r.CURRENT_DOMAIN?void 0:g,k=i(u),R=k?`;expires=${k.toUTCString()}`:"",b=";path=/",x=Ct(A)?`;domain=${A}`:"",w=`${l}=${v}${R}${b}${x}`;return Z(y)&&y!==ke.NotSet&&(w=`${w};SameSite=${y}`),Z(E)&&E===le.Yes&&(w=`${w};Secure`),document.cookie=w,!0}r.set=e;function i(l){return $t(l)?new csDate(N.now()+l):l}r.toExpireDate=i;function n(l,d){t(l)&&e(l,"",d,new csDate(0)),t(l)&&e(l,"",d,new csDate(0),ke.None,le.Yes)}r.remove=n;function a(){return document.cookie.length>0}r.isCookiePresent=a;function c(l,d){let g="_cs_root-domain",u=t(g);if(u!==null&&u!=="1")return u;let y=csString.prototype.split.call(window.location.hostname,"."),E=csArray.prototype.pop.call(y);for(;y.length&&(u===null||u==="1");)E=csArray.prototype.join.call([csArray.prototype.pop.call(y),E],"."),e(g,E,E,void 0,l,d),u=t(g);return n(g,E),E}r.getRootDomain=c}(s||(s={})),s})(),Ju=(()=>{let s;return function(r){function t(){return window.navigator.vendor&&csString.prototype.indexOf.call(window.navigator.vendor,"Apple")>-1&&window.navigator.appVersion&&csString.prototype.indexOf.call(window.navigator.appVersion,"Version/12.")>-1}r.browserIsSafariV12=t}(s||(s={})),s})(),ke=(()=>{let s;return function(r){r.None="None",r.Lax="Lax",r.NotSet="X"}(s||(s={})),s})(),le=(()=>{let s;return function(r){r[r.Yes=1]="Yes",r[r.No=0]="No"}(s||(s={})),s})(),er=(()=>{class s{constructor(t,e,i){this.h=t,this.A=e,this.oi=i,this.nc=!1,this.Yu=ke.NotSet,this.oc=le.No}getSameSiteFlag(){return this.Yu}getSecureFlag(){return this.oc}getDomain(){return this.ac}getRootDomain(){return this.Xu}init(){if(this.h.cookielessTrackingEnabled)return;let t=this.dy(),e=this.py();this.nc=this.fy(t,e),this.nc?(this.Yu=t,this.oc=e):this.h.secureCookiesEnabled&&this.A.getUrlProtocol()==="https:"&&(this.oc=le.Yes),this.Xu=this.gy(),this.ac=this.my(this.Xu)}fy(t,e){return Ju.browserIsSafariV12()?!1:(pt.set(s.COOKIE_TEST_FOR_SAME_SITE,"Test same site",s.CURRENT_DOMAIN,void 0,t,e),pt.get(s.COOKIE_TEST_FOR_SAME_SITE)?(pt.remove(s.COOKIE_TEST_FOR_SAME_SITE,s.CURRENT_DOMAIN),!0):!1)}dy(){return this.A.getUrlProtocol()==="http:"?ke.Lax:this.oi.isSameSiteNoneSecureNeeded()||this.h.crossDomainTracking?ke.None:ke.Lax}py(){return this.A.getUrlProtocol()==="http:"?le.No:this.h.secureCookiesEnabled||this.h.crossDomainTracking||this.oi.isSameSiteNoneSecureNeeded()?le.Yes:le.No}isSameSiteSupported(){return this.nc}set(t,e,i){let n=pt.toExpireDate(i);pt.set(t,e,this.ac,n,this.getSameSiteFlag(),this.getSecureFlag())}get(t){let i=new csRegExp(`(^|;)[ ]*${t}=([^;]*)`).exec(document.cookie);return i?decodeURIComponent(i[2]):null}delete(t,e){let i=e||this.ac;pt.remove(t,i)}gy(){let t=this.oi.isSameSiteNoneSecureNeeded()&&this.isSameSiteSupported(),e=t?ke.None:void 0,i=t?le.Yes:void 0;return pt.getRootDomain(e,i)}my(t){return this.h.allowSubdomains?t:pt.CURRENT_DOMAIN}}return s.CURRENT_DOMAIN="CURRENT_DOMAIN",s.COOKIE_TEST_FOR_SAME_SITE="_cs_same_site",s})(),Es="_cs_t",yo="1",Qu=(()=>{class s{constructor(t,e){this.mt=t,this.h=e,this.po=!1,this.fo=!1}init(){if(!this.h.cookielessTrackingEnabled&&this.mt.isTopWindowTracker()&&"cookie"in document){if(!this.mt.isInIframeContext()&&pt.isCookiePresent()){this.po=!0,this.fo=!1;return}if(pt.set(Es,yo,pt.CURRENT_DOMAIN),pt.get(Es)!==null){this.po=!0,this.fo=!1,pt.remove(Es,pt.CURRENT_DOMAIN);return}pt.set(Es,yo,pt.CURRENT_DOMAIN,void 0,ke.None,le.Yes),pt.get(Es)!==null&&(this.po=!0,this.fo=!0,pt.remove(Es,pt.CURRENT_DOMAIN))}}areCookiesEnabled(){return this.po}isSameSiteNoneSecureNeeded(){return this.fo}}return s})();function Zu(){let s="CSSessionStorageTest";try{return sessionStorage.setItem(s,s),sessionStorage.getItem(s)!==s?!1:(sessionStorage.removeItem(s),!0)}catch{return!1}}var td=(()=>{class s{constructor(t,e){this.h=t,this.oi=e}canTrack(){return this.h.isProjectActive()&&this.yy()&&this.Ku()&&this.Ey()}canTrackInChild(){return this.h.isProjectActive()&&this.Sy()&&(this.Ku()||this.vy())}Ey(){return this.h.cookielessTrackingEnabled?Zu():this.oi.areCookiesEnabled()}Ku(){return fn(window.location.hostname,this.h.hostnames)}yy(){return!this.Ju()&&this._y()}Sy(){return!this.Ju()&&this.wy()}vy(){return window.location.protocol==="about:"&&window.location.hostname===""}Ju(){return"visibilityState"in document&&document.visibilityState==="prerender"}_y(){return this.Qu()&&this.by()}wy(){return this.Qu()}by(){try{return!!window.localStorage}catch{return!1}}Qu(){return"pageXOffset"in window&&"pageYOffset"in window&&"onpagehide"in window&&"JSON"in window&&"parse"in window.csJSON&&"stringify"in window.csJSON&&"addEventListener"in window&&"removeEventListener"in window&&"Node"in window&&"filter"in csArray.prototype&&"forEach"in csArray.prototype&&"querySelectorAll"in document&&"now"in csDate&&"keys"in Object&&"performance"in window&&"Map"in window&&"Set"in window}}return s})(),ed=(()=>{class s{constructor(t,e){this.cc=!1,this.Zu=new Map,this.td=new Map,this.sd=new Map,this.rd="CS_WORKER_SIGNATURE";let i=` const algorithm = ${t.algorithm}; const compressor = (${t.getCompressorSourceCode()})(); (()=>{"use strict";var e;!function(e){e.UNCOMPRESSED="0",e.GZIP="2"}(e||(e={}));let t={debug(...e){},warn(...e){},implementation(...e){},error(...e){},critical(...e){},isPerfLoggingActive:()=>!1};class s{constructor(e){var t;this.queryParams={},this.headers={},this.handleRecoveredRequests=e=>{for(const t of e){const{metadata:e,events:s}=t;this.send(s,e)}},this.endpoint=e.endpoint,this.compressionOpts=e.compressionOpts,this.recoveryStorage=e.recoveryStorage,this.mandatoryParameters=null!==(t=e.mandatoryParameters)&&void 0!==t?t:[],this.worker=!!e.worker,this.recoveryStorage&&this.recoveryStorage.recover(this.handleRecoveredRequests)}setQueryParams(e){Object.keys(e).forEach(t=>{this.queryParams[t]=e[t]})}removeQueryParams(e){e?e.forEach(e=>{delete this.queryParams[e]}):this.queryParams={}}send(s,r){const a=r||{...this.queryParams},o=!("ct"in a),i="string"!=typeof s&&!this.isArrayBuffer(s);"ct"in a||(this.compressionOpts&&o?a.ct=this.compressionOpts.compressionType:a.ct=e.UNCOMPRESSED);const n=i?JSON.stringify(s):s,h=Object.keys(a).map(e=>\`\${encodeURIComponent(e)}=\${encodeURIComponent(a[e])}\`).join("&"),c=\`\${this.endpoint}?\${h}\`;!function(e,t){const s=e.length;for(let r=0;rnull==a[e])?this.compressionOpts&&o&&"string"==typeof n?this.compressionOpts.compressor(n,this.compressionOpts.compressionOutputType,e=>this.doSend(c,a,e)):this.doSend(c,a,n):t.warn(\`[\${this.worker?"WORKER":"MAIN"}] All mandatory parameters are not present on \${c}\`)}onLoad(e){this.onLoadCallback=e}onError(e){this.onErrorCallback=e}onTimeout(e,t){this.onTimeoutCallback=e,this.timeout=t}abort(){this.abortCurrentXhrCall&&this.abortCurrentXhrCall()}setRequestHeader(e,t){this.headers[e]=t}getQueryParams(){return this.queryParams}isArrayBuffer(e){return e&&void 0!==e.byteLength}doSend(e,t,s){const r=new XMLHttpRequest,a=Object.keys(t).map(e=>\`\${encodeURIComponent(e)}=\${encodeURIComponent(t[e])}\`).join("&");r.open("POST",e),r.onload=()=>{if(this.recoveryStorage&&this.recoveryStorage.recover(this.handleRecoveredRequests),this.onLoadCallback){const e={params:t,responseText:r.responseText,status:r.status};this.onLoadCallback(e)}},r.onerror=()=>{this.recoveryStorage&&this.recoveryStorage.save({key:a,metadata:t,events:s}),this.onErrorCallback&&this.onErrorCallback({params:t})},this.timeout&&this.onTimeoutCallback&&(r.timeout=this.timeout,r.ontimeout=()=>{this.onTimeoutCallback()}),this.abortCurrentXhrCall=()=>r.abort(),Object.keys(this.headers).forEach(e=>{r.setRequestHeader(e,this.headers[e])}),r.send(s)}}class r{constructor(e){this.maxStoredBytes=e,this.storageBytesUsed=0}addString(e){this.storageBytesUsed+=2*e.length}addArrayBuffer(e){this.storageBytesUsed+=e.byteLength}isThresholdReached(){return this.storageBytesUsed>this.maxStoredBytes}reset(){this.storageBytesUsed=0}}class a{constructor(e){this.ramStorage={},this.byteSizeCounter=new r(e)}save({key:e,metadata:t,events:s}){this.byteSizeCounter.isThresholdReached()||(this.byteSizeCounter.addString(e),"string"==typeof s?this.byteSizeCounter.addString(s):this.byteSizeCounter.addArrayBuffer(s),this.byteSizeCounter.isThresholdReached()||(this.ramStorage[e]={metadata:t,events:s}))}recover(e){const t=[];this.getStorageKeys().forEach(e=>{const s=this.ramStorage[e];void 0!==s&&(delete s.metadata.datatype,t.push(s),this.removeItem(e))}),0!==t.length&&(e(t),this.byteSizeCounter.reset())}getStorageKeys(){return Object.keys(this.ramStorage)}removeItem(e){delete this.ramStorage[e]}}var o;!function(e){e[e.NOT_STARTED=0]="NOT_STARTED",e[e.OPEN_IN_PROGRESS=1]="OPEN_IN_PROGRESS",e[e.OPEN_FAILED=2]="OPEN_FAILED",e[e.READY=3]="READY"}(o||(o={}));class i{constructor(e,t,s){this.storageName=e,this.onOpenError=s,this.cacheState=o.NOT_STARTED,this.toBeSavedBuffer=[],this.recoveryInProgress=0,this.origin=self.origin,this.context="object"==typeof window?"":"worker-",this.byteSizeCounter=new r(t),this.init()}async init(){await this.openCache(),this.cacheState===o.READY?this.flushToBeSavedBuffer():this.onOpenError(this.toBeSavedBuffer)}flushToBeSavedBuffer(){this.toBeSavedBuffer.forEach(e=>{this.save(e)}),this.toBeSavedBuffer=[]}async save(e){try{if(this.cacheState===o.OPEN_IN_PROGRESS)return void this.toBeSavedBuffer.push(e);if(this.cacheState!==o.READY)return;if(this.byteSizeCounter.isThresholdReached())return;const{key:t,metadata:s,events:r}=e;if(this.byteSizeCounter.addString(t),"string"==typeof r?this.byteSizeCounter.addString(r):this.byteSizeCounter.addArrayBuffer(r),this.byteSizeCounter.isThresholdReached())return;await this.cache.put(\`\${this.origin}/\${t}\`,new Response(r,{headers:s}))}catch{}}async recover(e){(this.cache||(await this.openCache(),this.cacheState===o.READY))&&this.doRecover(e)}async openCache(){try{this.cacheState=o.OPEN_IN_PROGRESS,this.cache=await self.caches.open(\`\${this.context}\${this.storageName}\`),this.cacheState=o.READY}catch{this.cacheState=o.OPEN_FAILED}}async doRecover(e){try{if(this.recoveryInProgress++,this.recoveryInProgress>1)return;const t=await this.cache.keys();if(0===t.length)return;const s=(await this.cache.matchAll()).map(e=>{const t={};e.headers.forEach((e,s)=>{t[s]=e}),delete t["content-type"];const s=t.datatype;return delete t.datatype,"json"===s||"base64"===s?e.text().then(e=>({metadata:t,events:e})):e.arrayBuffer().then(e=>({metadata:t,events:e}))}),r=await Promise.all(s);await Promise.all(t.map(e=>this.cache.delete(e))),e(r),this.byteSizeCounter.reset()}catch{}finally{this.recoveryInProgress--}}}class n{constructor(e){try{this.initializeStorageStrategy(e)}catch(e){this.setRamStorageStrategy()}}initializeStorageStrategy(e){self.caches?this.setCachesStrategy(e):this.setRamStorageStrategy()}save(e){this.storageStrategy.save(e)}recover(e){this.storageStrategy.recover(e)}setCachesStrategy(e){this.storageStrategy=new i(e,n.MAX_SIZE,e=>{this.setRamStorageStrategy(e)})}setRamStorageStrategy(e){this.storageStrategy=new a(n.MAX_SIZE),e&&e.forEach(e=>{this.storageStrategy.save(e)})}}n.MAX_SIZE=16777216,function(){const e="CS_WORKER_SIGNATURE",t=new Map,r=new n("csPersisted");function a(a){var o;if((o=a)&&o.WORKER_SIGNATURE===e)switch(a.type){case"CreatePostRequest":{const{endpoint:o,compressionOutputType:i,useRetry:n,mandatoryParameters:h}=a,c={endpoint:o,mandatoryParameters:h,worker:!0};i&&(c.compressionOpts={compressor,compressionOutputType:i,compressionType:algorithm}),n&&(c.recoveryStorage=r);const d=new s(c);t.set(o,d),d.onLoad(t=>{const s={type:"onLoad",endpoint:o,response:t,WORKER_SIGNATURE:e};self.postMessage(s)}),d.onError(t=>{const s={type:"onError",endpoint:o,response:t,WORKER_SIGNATURE:e};self.postMessage(s)})}break;case"SetQueryParams":{const{endpoint:e,queryParams:s}=a,r=t.get(e);r&&r.setQueryParams(s)}break;case"RemoveQueryParams":{const{endpoint:e,queryParams:s}=a,r=t.get(e);r&&r.removeQueryParams(s)}break;case"Send":{const{endpoint:e,payload:s,queryParams:r}=a,o=t.get(e);o&&o.send(s,r)}break;case"Abort":{const{endpoint:e}=a,s=t.get(e);s&&s.abort()}break;case"SetHeader":{const{endpoint:e,headerName:s,headerValue:r}=a,o=t.get(e);o&&o.setRequestHeader(s,r)}break;case"SetTimeout":{const{endpoint:s,timeout:r}=a,o=t.get(s);o&&o.onTimeout(()=>{const t={type:"onTimeout",endpoint:s,WORKER_SIGNATURE:e};self.postMessage(t)},r)}break;default:throw new Error(JSON.stringify(a))}}self.addEventListener("message",function(e){e.data.getReader?async function(e,t){const s=e.getReader();for(;;){const{done:e,value:r}=await s.read();if(e)break;t(r)}}(e.data,a):a(e.data)})}()})();`;try{this.ps=this.Ay(e||i),this.cc=!0,s.isTransferableStreamSupported()&&(this.nd=new ReadableStream({start:n=>{this.lc=n},cancel:()=>{this.lc=null}}),this.ps.postMessage(this.nd,[this.nd]))}catch(n){n.name==="SecurityError"&&nt.counters.cspErrors.count("network-worker"),this.cc=!1}}postMessage(t){t.WORKER_SIGNATURE=this.rd,this.lc?this.lc.enqueue(t):this.ps.postMessage(t)}Ay(t){let e=window.csURL||window.webkitURL,i=window.Blob,n=window.Worker,a=new i([t],{type:"application/javascript"}),c=e.createObjectURL(a);H.whiteListFilename(c);let l=new n(c);return l.onmessage=d=>{let{type:g,endpoint:u,WORKER_SIGNATURE:y}=d.data;if(y===this.rd){if(g==="onLoad"){let{response:E}=d.data,v=this.Zu.get(u);v&&v(E)}else if(g==="onError"){let{response:E}=d.data,v=this.td.get(u);v&&v(E)}else if(g==="onTimeout"){let E=this.sd.get(u);E&&E()}}},l}registerOnLoadCallback(t,e){this.Zu.set(t,e)}registerOnErrorCallback(t,e){this.td.set(t,e)}registerOnTimeoutCallback(t,e){this.sd.set(t,e)}isSupported(){return this.cc}static isTransferableStreamSupported(){try{let t=new ReadableStream;return structuredClone(t,{transfer:[t]}),!0}catch{return!1}}}return s})(),sd=(()=>{class s{constructor(t){var e;this.qt={},this.Gt=t.endpoint,this.ye=t.networkWorker,this.Ty=t.compressionOutputType,this.Ry=t.useRetry,this.ye.postMessage({type:"CreatePostRequest",endpoint:this.Gt,compressionOutputType:this.Ty,useRetry:this.Ry,mandatoryParameters:(e=t.mandatoryParameters)!==null&&e!==void 0?e:[]})}setQueryParams(t){this.ye.postMessage({type:"SetQueryParams",endpoint:this.Gt,queryParams:t}),csArray.prototype.forEach.call(Object.keys(t),e=>{this.qt[e]=t[e]})}getQueryParams(){return this.qt}removeQueryParams(t){this.ye.postMessage({type:"RemoveQueryParams",endpoint:this.Gt,queryParams:t}),t&&csArray.prototype.forEach.call(t,e=>{delete this.qt[e]})}send(t,e){this.ye.postMessage({type:"Send",endpoint:this.Gt,payload:t,queryParams:e})}abort(){this.ye.postMessage({type:"Abort",endpoint:this.Gt})}onLoad(t){this.ye.registerOnLoadCallback(this.Gt,t)}onError(t){this.ye.registerOnErrorCallback(this.Gt,t)}setRequestHeader(t,e){this.ye.postMessage({type:"SetHeader",endpoint:this.Gt,headerName:t,headerValue:e})}onTimeout(t,e){this.ye.registerOnTimeoutCallback(this.Gt,t),this.ye.postMessage({type:"SetTimeout",endpoint:this.Gt,timeout:e})}}return s})(),sr=(()=>{let s;return function(r){r.UNCOMPRESSED="0",r.GZIP="2"}(s||(s={})),s})(),Wa=(()=>{class s{constructor(t){this.onError=t}}return s})(),id=(()=>{class s{constructor(t){var e;this.qt={},this.hc={},this.od=i=>{for(let n of i){let{metadata:a,events:c}=n;this.send(c,a)}},this.Gt=t.endpoint,this.Or=t.compressionOpts,this.Wt=t.recoveryStorage,this.mandatoryParameters=(e=t.mandatoryParameters)!==null&&e!==void 0?e:[],this.worker=!!t.worker,this.Wt&&this.Wt.recover(this.od)}setQueryParams(t){Object.keys(t).forEach(e=>{this.qt[e]=t[e]})}removeQueryParams(t){t?t.forEach(e=>{delete this.qt[e]}):this.qt={}}send(t,e){let i=e||{...this.qt},n=!("ct"in i),a=typeof t!="string"&&!this.Cy(t);"ct"in i||(!this.Or||!n?i.ct=sr.UNCOMPRESSED:i.ct=this.Or.compressionType);let c=a?JSON.stringify(t):t,l=Object.keys(i).map(g=>`${encodeURIComponent(g)}=${encodeURIComponent(i[g])}`).join("&"),d=`${this.Gt}?${l}`;if(au(this.mandatoryParameters,g=>i[g]==null)){st.warn(`[${this.worker?"WORKER":"MAIN"}] All mandatory parameters are not present on ${d}`);return}this.Or&&n&&typeof c=="string"?this.Or.compressor(c,this.Or.compressionOutputType,g=>this.ad(d,i,g)):this.ad(d,i,c)}onLoad(t){this.Ui=t}onError(t){this.Nr=t}onTimeout(t,e){this.ai=t,this.Mr=e}abort(){this.cd&&this.cd()}setRequestHeader(t,e){this.hc[t]=e}getQueryParams(){return this.qt}Cy(t){return t&&t.byteLength!==void 0}ad(t,e,i){let n=new XMLHttpRequest,a=Object.keys(e).map(c=>`${encodeURIComponent(c)}=${encodeURIComponent(e[c])}`).join("&");n.open("POST",t),n.onload=()=>{if(this.Wt&&this.Wt.recover(this.od),this.Ui){let c={params:e,responseText:n.responseText,status:n.status};this.Ui(c)}},n.onerror=()=>{this.Wt&&this.Wt.save({key:a,metadata:e,events:i}),this.Nr&&this.Nr({params:e})},this.Mr&&this.ai&&(n.timeout=this.Mr,n.ontimeout=()=>{this.ai()}),this.cd=()=>n.abort(),Object.keys(this.hc).forEach(c=>{n.setRequestHeader(c,this.hc[c])}),n.send(i)}}return s})(),Ya=(()=>{class s{constructor(t){this.pc=t,this.ye=new ed(this.pc)}create(t,e,i,n,a=[]){if(this.ye.isSupported()&&e)return new sd({networkWorker:this.ye,endpoint:t,compressionOutputType:i,useRetry:!!n,mandatoryParameters:a});{let c=i?{compressor:this.pc.compress,compressionOutputType:i,compressionType:this.pc.algorithm}:void 0;return new id({endpoint:t,compressionOpts:c,recoveryStorage:n})}}}return s})(),rd=(()=>{class s{constructor(t,e,i,n,a){this.T=t,this.w=e,this.qe=i,this.vt=n,this.h=a}get(){return{exclusion:this.qe.getAppliedTrackingDraw(),visitor:this.T.getVisitor(),session:this.w.getSession(),cvars:this.vt.getCustomVariablesSession()}}apply(t){t&&(t.exclusion?this.exclude():this.include(t))}exclude(){this.qe.exclude(this.h),this.T.removeVisitor(),this.w.removeSession(),this.vt.removeCustomVariablesSession()}include(t){this.qe.removeExclusion(),this.T.setVisitor(t.visitor),t.session?this.w.setSession(t.session):this.w.removeSession(),t.cvars?this.vt.setCustomVariableSession(t.cvars):this.vt.removeCustomVariablesSession()}}return s})(),Zt="_cs_id",Eo=".",nd=/^(([a-z0-9\-])+(\.[0-9]+){6})(\.(None|Lax|X)\.(0|1))?(\.[0-1])?(\.\b(x|[0-9a-fA-F]{12})\b)?$/,So="x",od=(()=>{class s{constructor(t,e,i){this.h=t,this.M=e,this.Yt=i}onCookieToSet(t){this.ci=t}onCookieToRemove(t){this.li=t}get(){let t;return this.h.cookielessTrackingEnabled?t=this.Yt.getItem(Zt):t=this.M.get(Zt),t?s.fromString(t):null}set(t){var e;let i=s.toString(t);if(this.h.cookielessTrackingEnabled)this.Yt.setItem(Zt,i);else{let n=new csDate(t.expires);this.M.set(Zt,i,n),(e=this.ci)===null||e===void 0||e.call(this,Zt,i,n)}}remove(){var t;this.h.cookielessTrackingEnabled?this.Yt.removeItem(Zt):(this.M.delete(Zt),(t=this.li)===null||t===void 0||t.call(this,Zt))}handleSubdomainChange(){if(this.h.cookielessTrackingEnabled)return;let t=this.get();t&&(t.allowSubdomains=this.h.allowSubdomains,this.h.allowSubdomains?this.M.delete(Zt,er.CURRENT_DOMAIN):this.M.delete(Zt,this.M.getRootDomain()),this.set(t))}static fromString(t){let[e,i,n,a,c,l,d,g,u]=csString.prototype.split.call(t,Eo);return{id:e,creationTimestamp:Number(i),visitsCount:Number(n),hitTimestamp:Number(a),lastVisitTimestamp:Number(c),appliedTrackingDraw:Number(l),expires:Number(d),allowSubdomains:g===void 0?void 0:!!Number(g),identityPrint:u===void 0||u===So?null:u}}static toString(t){var e;return csArray.prototype.join.call([t.id,t.creationTimestamp,t.visitsCount,t.hitTimestamp,t.lastVisitTimestamp,t.appliedTrackingDraw,t.expires,t.allowSubdomains?1:0,(e=t.identityPrint)!==null&&e!==void 0?e:So],Eo)}static isValidVisitorString(t){return nd.test(t)}}return s})(),I=(()=>{let s;return function(r){r.QUOTA_REACHED="X",r.RECORDING_RULES_TARGETING="8",r.ANALYTICS_ONLY_RULES_TARGETING="9",r.ANALYTICS_ONLY="0",r.RECORDING_GLOBAL_SAMPLING="5",r.RECORDING_TEMPORARILY="T",r.RECORDING_URL_SAMPLING="6",r.RECORDING_ETR_SAMPLING="7",r.RECORDING_BLOCKED_BY_CONSENT_NOT_EXPRESSED="B",r.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN="W"}(s||(s={})),s})(),Mt=(()=>{let s;return function(r){r.ETR_OFF="0",r.ETR_ON="1"}(s||(s={})),s})(),Be=(()=>{let s;return function(r){r.ETR_LEGACY="0",r.ETR_SESSION="1",r.ETR_PAGE="2"}(s||(s={})),s})(),Nt=(()=>{let s;return function(r){r.ETR_DISABLED="0",r.ETR_PENDING="1",r.ETR_SAVED_PAGE="2",r.ETR_SAVED_SESSION="3",r.ETR_NOT_SAVED_SESSION="9"}(s||(s={})),s})(),Yt="_cs_s",Fi=18e5,vo=/^(\d+\.[01356789TBWX](\.[01UNWG])?(\.[39])?)(\.\d+)?$/,Gs=".",ad=13,Mi=(()=>{let s;return function(r){r[r.NOT_FOUND=0]="NOT_FOUND",r[r.EXPIRED=1]="EXPIRED",r[r.FOUND=2]="FOUND"}(s||(s={})),s})(),Ar=(()=>{class s{constructor(t,e,i){this.h=t,this.M=e,this.Yt=i,this.Xt=null,this.fc=!1}get(t){let e=this.getRawSession(t);return this.isValid(e)?s.fromString(e):null}getRawSession(t){if(t){let g=this.gc();return s.mc(g)}let{sessionString:e,status:i}=this.Iy(),n=s.mc(e);if(i!==Mi.EXPIRED)return n;if(this.h.cookielessTrackingEnabled)return null;let a=this.gc();if(!a)return null;let c=csString.prototype.split.call(a,Gs);if(!s.ld(c))return a;let l=c[c.length-1],d=parseInt(l,10);return isNaN(d)||this.Py(d),n}onCookieToSet(t){this.ci=t}onCookieToRemove(t){this.li=t}set(t,e=Fi){var i;let n=N.now()+e,a=this.toString(t);a+=`${Gs}${n}`,this.Oy(a,n),this.h.cookielessTrackingEnabled?this.Yt.setItem(Yt,a):(this.M.set(Yt,a,e),(i=this.ci)===null||i===void 0||i.call(this,Yt,a,e))}remove(){var t;this.h.cookielessTrackingEnabled?this.Yt.removeItem(Yt):(this.M.delete(Yt),(t=this.li)===null||t===void 0||t.call(this,Yt)),this.Ny()}handleSubdomainChange(){if(this.h.cookielessTrackingEnabled)return;let t=this.get(!0);t&&(this.h.allowSubdomains?this.M.delete(Yt,er.CURRENT_DOMAIN):this.M.delete(Yt,this.M.getRootDomain()),this.set(t))}isValid(t){return t!==null&&s.isValidSessionString(t)}toString(t){return csArray.prototype.join.call([t.pageNumber,t.collectState,t.etrState,t.etrStatus],Gs)}Oy(t,e){this.Xt={sessionString:t,expires:e}}Iy(){return this.Xt?this.Xt&&N.now()<=this.Xt.expires?{sessionString:this.Xt.sessionString,status:Mi.FOUND}:{sessionString:this.Xt.sessionString,status:Mi.EXPIRED}:{sessionString:this.gc(),status:Mi.NOT_FOUND}}Ny(){this.Xt=null}Py(t){this.Xt&&(this.Xt.expires=t,this.fc=!0)}isCacheRefreshed(){return this.fc}resetCacheRefreshed(){this.fc=!1}gc(){if(this.h.cookielessTrackingEnabled){let e=this.Yt.getItem(Yt);return!e||this.ud(e)?null:e}let t=this.M.get(Yt);return!t||this.ud(t)?null:t}ud(t){let e=csString.prototype.split.call(t,Gs);if(!s.ld(e))return!1;let i=parseInt(e[e.length-1],10);return!isNaN(i)&&N.now()>i}static ld(t){return t[t.length-1].length===ad}static mc(t){var e;if(!t)return null;let i=(e=csString.prototype.match.call(t,vo))===null||e===void 0?void 0:e[1];return i!=null?i:null}static fromRawString(t){let e=s.mc(t);return e!==null?s.fromString(e):null}static fromString(t){var e,i;let[n,a,c,l]=csString.prototype.split.call(t,Gs);return{collectState:a,etrState:(e=c)!==null&&e!==void 0?e:Mt.ETR_OFF,etrStatus:(i=l)!==null&&i!==void 0?i:Nt.ETR_NOT_SAVED_SESSION,pageNumber:parseInt(n,10)}}static isValidSessionString(t){return vo.test(t)}}return s})();var ae="_cs_ex",_o=2592e6,cd=/^[0-9]+$/,ld=(()=>{class s{constructor(t,e,i){this.h=t,this.M=e,this.Yt=i}onCookieToSet(t){this.ci=t}onCookieToRemove(t){this.li=t}get(){return this.h.cookielessTrackingEnabled?Number(this.Yt.getItem(ae)):Number(this.M.get(ae))}set(t){var e;this.h.cookielessTrackingEnabled?this.Yt.setItem(ae,t):(this.M.set(ae,t,_o),(e=this.ci)===null||e===void 0||e.call(this,ae,t,_o))}remove(){var t;this.h.cookielessTrackingEnabled?this.Yt.removeItem(ae):(this.M.delete(ae),(t=this.li)===null||t===void 0||t.call(this,ae))}static isValidExclusionString(t){return cd.test(t)}}return s})(),Re="_cs_cvars",hd=(()=>{class s{constructor(t,e,i){this.h=t,this.M=e,this.Yt=i}onCookieToSet(t){this.ci=t}onCookieToRemove(t){this.li=t}get(){return this.h.cookielessTrackingEnabled?this.Yt.getItem(Re):this.M.get(Re)}set(t){var e;this.h.cookielessTrackingEnabled?this.Yt.setItem(Re,t):(this.M.set(Re,t),(e=this.ci)===null||e===void 0||e.call(this,Re,t))}remove(){var t;this.h.cookielessTrackingEnabled?this.Yt.removeItem(Re):(this.M.delete(Re),(t=this.li)===null||t===void 0||t.call(this,Re))}static isValidCustomVarString(t){return typeof t=="string"}}return s})();var ud="spki",wo="RSA-OAEP",dd="SHA-256",bo="AES-CTR",pd="SHA-1",Ao=190,Zs=(()=>{let s;return function(r){var t;let e=!1,i=null,n,a=typeof TextEncoder!="undefined"?new TextEncoder:null,c;r.crypto=(t=Rt.crypto)===null||t===void 0?void 0:t.subtle,r.MAX_DIGEST_INPUT_SIZE=100;function l(){return!e}r.isKeyImported=l;function d(){return i}r.getCryptoKey=d;function g(){var w,D;return((D=(w=Rt.self.crypto)===null||w===void 0?void 0:w.subtle)===null||D===void 0?void 0:D.encrypt)!=null&&Rt.self.CryptoKey!=null}r.isSupported=g;async function u(w){n=r.crypto.importKey(ud,Ha(w),{name:wo,hash:dd},!1,["encrypt"]).catch(()=>(e=!0,null)),i=await n,n=void 0,i||st.warn(`Fail to import public key '${w}'`)}r.importKey=u;async function y(w){if(!g()||e)return null;await n;let D=dn(w);D.byteLength>Ao&&(D=D.slice(0,Ao));try{let j=await r.crypto.encrypt({name:wo},i,D);return no(j)}catch{return null}}r.asymmetricEncrypt=y;async function E(w,D){if(!g()||e)return null;let j={counter:D.initializationVector,name:bo,length:64},W=a.encode(w);try{let at=await r.crypto.encrypt(j,D.cryptoKey,W);return no(at)}catch{return null}}r.symmetricEncrypt=E;async function v(w){let D=await A(w);if(!D)throw new Error("Export secret failed");let j=await y(D);if(!j)throw new Error("Encrypt secret failed");return j}r.encryptSecret=v;async function A(w){var D;if(!g())return null;try{return(D=(await r.crypto.exportKey("jwk",w)).k)!==null&&D!==void 0?D:null}catch{return null}}async function k(){if(!g()||e)return null;try{return{cryptoKey:await r.crypto.generateKey({name:bo,length:128},!0,["encrypt","decrypt"]),initializationVector:Rt.crypto.getRandomValues(new Uint8Array(16))}}catch{return null}}r.generateSymmetricKey=k;function R(w){c=w}r.setDigestSalt=R;async function b(w){w=csString.prototype.toLocaleLowerCase.call(csString.prototype.trim.call(w)),c&&(w=`${w}:${c}`);let D=a.encode(w);try{let j=await r.crypto.digest(pd,D);return Ki(j)}catch{return null}}r.digest=b;function x(){return Rt.crypto.subtle.generateKey({name:"RSA-OAEP",modulusLength:2048,publicExponent:new Uint8Array([1,0,1]),hash:"SHA-256"},!0,["encrypt","decrypt"])}r.generateKeyPair=x}(s||(s={})),s})();function fd(){let s=new Error,r=s.stack?csArray.prototype.filter.call(csString.prototype.split.call(s.stack,` `),e=>e!=="Error"&&csString.prototype.indexOf.call(csString.prototype.toLowerCase.call(e),"promise ")===-1&&csString.prototype.indexOf.call(e,"[native code]")===-1&&csString.prototype.indexOf.call(e,"()")===-1):[];if(r.length===0)return"";let t=md(r);return t===""||(r=yd(r,t),r.length===0)?"":Xa(r[0])}function gd(s){return csString.prototype.indexOf.call(s,"@")!==-1}function md(s){return s.length>0?Xa(s[0]):""}function yd(s,r){return csArray.prototype.filter.call(s,t=>csString.prototype.indexOf.call(t,r)===-1)}function Xa(s){let r="",t;gd(s)?t=new csRegExp("@(.+):(\\d+):(\\d+)$"):t=new csRegExp("\\((.+):(\\d+):(\\d+)\\)");let e=t.exec(s);return e&&(r=e[1]),r}var Ed=s=>s;function Sd(s,r,t,e){let i=csSymbol.for("propertyProxy");Object.defineProperty(s,r,{get(){var n;if(this[i])return this[i];let a=(n=t.get)===null||n===void 0?void 0:n.apply(this);return typeof a!="object"?a:(typeof Proxy=="function"?this[i]=new Proxy(a,{get(c,l){let d=Reflect.get(c,l);return typeof d=="function"?d.bind(c):d},set:(c,l,d)=>{let g=c[l],u=Reflect.set(c,l,d);return e.forEach(y=>y(this,d,g,"subproperty")),u}}):this[i]=a,this[i])},set(){var n;let a=arguments,c=this[r],l=(n=t.set)===null||n===void 0?void 0:n.apply(this,a);delete this[i];try{e.forEach(d=>d(this,a[0],c,"property"))}catch(d){st.error(d)}return l}})}function vd(s,r,t){let e=_d(s,r);if(!e)return null;let i=(n,a,c,l)=>t(n,a,c,l);return{activate:()=>{e.add(i)},deactivate:()=>{e.delete(i)}}}function _d(s,r){let t=csSymbol.for(r);if(s[t])return s[t];let e=new Set,i=Object.getOwnPropertyDescriptor(s,r);return i?i.configurable?(s[t]=e,Sd(s,r,i,e),e):(st.warn(`Cannot intercept non configurable property '${csString(r)}' of object '${s}'`),null):(st.warn(`Cannot intercept property '${csString(r)}' because it does not exist directly on the target object '${s}'`),null)}function wd(s,r){let t=csSymbol.for(r);if(s[t])return s[t];let e=Object.getOwnPropertyDescriptor(s,r);if(!(e!=null&&e.writable)&&!(e!=null&&e.set))return st.warn(`Cannot intercept read only function '${csString(r)}' of object '${s}'`),null;let i=new Set;s[t]=i;let n=s[r];if(typeof n=="function"){let a=function(){let c=arguments,l=[];try{l=csArray.prototype.map.call(ks(i),g=>g(c))}catch(g){st.error(g)}let d=n.apply(this,c);try{for(let g=0;g{let l=e(c),d=i!=null&&i.withCallerName?{callerName:fd()}:{};return g=>t({...g,...d,args:l})};return{activate:()=>{n.add(a)},deactivate:()=>{n.delete(a)}}}function bd(s,r){let t=csSymbol.for(r);if(s[t])return s[t];let e=new Set,i=Object.getOwnPropertyDescriptor(s,r);return i?i.configurable?(s[t]=e,Object.defineProperty(s,r,{set(){var n;let a=arguments,c=this[r],l=(n=i.set)===null||n===void 0?void 0:n.apply(this,a);try{e.forEach(d=>d(this,a[0],c,"property"))}catch(d){st.error(d)}return l}}),e):(st.warn(`Cannot intercept read only property '${csString(r)}' of object '${s}'`),null):e}function Wr(s,r,t){let e=bd(s,r);if(!e)return null;let i=(n,a,c)=>t(n,a,c,"property");return{activate:()=>{e.add(i)},deactivate:()=>{e.delete(i)}}}function Ad(s,r){s.prototype=r.prototype,Object.defineProperty(s,"toString",{value:()=>r.toString()})}var Ds=(()=>{var s;class r{static Ly(e){this.Ns.forEach(i=>{e(i,"initial")})}static kr(e){if(this.P||(this.P=new csMutationObserver(i=>{for(let n of i)n.target.isConnected&&J(n.addedNodes,this.xy),J(n.removedNodes,this.Vy)})),csArray.prototype.push.call(this.Se,e),!this.B){this.B=!0,this.P.observe(document,this.Dr);for(let i of cs.getAllShadowHosts(document)){let n=csElementshadowRoot.apply(i);this.Ns.add(n),this.P.observe(n,this.Dr)}this._c||(this._c=ns({target:Element.prototype,methodName:"attachShadow",hook:i=>i.result.isConnected&&this.gd(i.result)})),this._c.activate()}this.Ly(e)}static Lr(e){var i,n;this.Se=csArray.prototype.filter.call(this.Se,a=>a!==e),this.Se.length===0&&(this.Se=[],this.B=!1,(i=this.P)===null||i===void 0||i.disconnect(),(n=this._c)===null||n===void 0||n.deactivate(),this.Ns.clear())}constructor(e){this.S=e,this.S=qe("DocumentShadowRootObserver:callback",(i,n)=>e(i,n))}get shadowRoots(){return ks(s.Ns)}takeRecords(){var e,i;return(i=(e=s.P)===null||e===void 0?void 0:e.takeRecords())!==null&&i!==void 0?i:[]}observe(){cs.isSupported()&&s.kr(this.S)}disconnect(){cs.isSupported()&&s.Lr(this.S)}}return s=r,r.Se=[],r.Ns=new Set,r.B=!1,r.Dr={childList:!0,subtree:!0},r.gd=t=>{s.Ns.has(t)||(s.P.observe(t,s.Dr),s.Ns.add(t),J(s.Se,e=>e(t,"added")))},r.xy=t=>{Xt(t,NodeFilter.SHOW_DOCUMENT_FRAGMENT).visitAll(s.gd)},r.Vy=t=>{t.isConnected||Xt(t,NodeFilter.SHOW_DOCUMENT_FRAGMENT).visitAll(e=>{s.Ns.has(e)&&(s.Ns.delete(e),J(s.Se,i=>i(e,"removed")))})},ct([P()],r.prototype,"observe",null),ct([P()],r.prototype,"disconnect",null),r})(),Ka=!0;function gt(s,r=Ka){s.boundElement.addEventListener(s.type,s.listener,r)}function dt(s,r=Ka){s.boundElement.removeEventListener(s.type,s.listener,r)}function Vt(s,r=0){let t=Math.pow(10,r);return Math.round(s*t)/t}var To=!1;function Tt(){return(s,r,t)=>{if(t){let e=t.value;t.value=function(i,n){(i==null?void 0:i.isTrusted)===!1&&To||e.call(this,i,n)}}else{let e=s[r];if(typeof e!="function")return;s[r]=function(i,...n){(i==null?void 0:i.isTrusted)===!1&&To||e.call(this,i,n)}}}}function yi(s,r){typeof r=="number"&&(r={wait:r});let t=r.wait,e=r.mode||"leading",i,n=[],a=null,c=0,l,d=()=>{c=N.now(),a=null,l=s.apply(i,n),n=[],i=null},g=function(...u){if(i=this!==null&&this!==void 0?this:window,n=[...u],e==="trailing")return a||(a=window.csSetTimeout(d,t)),l;let y=N.now(),E=t-(y-c);return E<=0||E>t?(c=y,l=s.apply(i,n),a?(window.csClearTimeout(a),a=null):n=[]):a||(a=window.csSetTimeout(d,E)),l};return g.cancel=()=>{a&&(window.csClearTimeout(a),c=0,a=null,n=[])},g.flushPending=()=>{a&&(window.csClearTimeout(a),d())},g}var mn=s=>(r,t,e)=>{e.value=yi(e.value,s)};function Td(s){return s.nodeType===1}function ut(s){let r=csEventtarget.apply(s);return r&&Td(r)&&csElementshadowRoot.apply(r)&&s.composedPath?s.__csOriginalTarget||s.composedPath()[0]:r}function Rd(s){return s.composedPath&&Object.defineProperty(s,"__csOriginalTarget",{value:s.composedPath()[0],writable:!1,enumerable:!1}),s}function Cd(){return(s,r,t)=>{let e=t.value;return e&&(t.value=function(i){if(ut(i)===csEventtarget.apply(i))return e.call(this,i)}),t}}function Id(s){if(!z(s))return null;let t=/iP(ad|hone|od).+Version\/(\d+)\..*Safari/i.exec(s);return t?Number(t[2]):null}var Pd=!!window.chrome,Ro="data-cs-scroll-container";function Od(s){try{if(Ct(csEventtarget.apply(s)))return!0}catch{}return!1}var ws=(()=>{let s;return function(r){function t(i){return!!(Ct(i)&&Od(i)&&Ue(csEventtarget.apply(i))&&csEventtarget.apply(i).getAttribute(Ro)!==null)}r.isEventOnScrollContainer=t;function e(){return window.csquerySelector[document.nodeType].call(document,`[${Ro}]`)}r.getScrollContainer=e}(s||(s={})),s})();function Nd(){let s=csSymbol.for("propStore");return{getStore(r){return r[s]},get(r,t){let e=r[s];return e==null?void 0:e[t]},set(r,t,e){let i=r[s];i||(i={},r[s]=i),i[t]=e}}}var $i=Nd(),G=(()=>{let s;return function(r){function t(l,d,g){var u;l instanceof Node?$i.set(l,d,g):((u=l.props)!==null&&u!==void 0||(l.props={}),l.props[d]=g)}r.setProperty=t;function e(l,d){var g;return l instanceof Node?$i.get(l,d):(g=l.props)===null||g===void 0?void 0:g[d]}r.getProperty=e;function i(l){return l instanceof Node?$i.getStore(l):l.props}r.getProperties=i;function n(l,d){let g=null;return a(l,(u,y,E)=>d(u)&&(g=u)&&!!E()),g}r.findDescendant=n;function a(l,d){c(l,void 0,d)}r.traverse=a;function c(l,d,g){let u=!1;if(g(l,d,()=>u=!0),u)return;let E=l.shadowRoot;E&&c(E,l,g);let v=l.children;if(v!=null&&v.length){for(let A of v)if(A&&(c(A,l,g),u))break}}}(s||(s={})),s})(),Ja=1,ti=csSymbol("nodeIdentifier");function Md(s=!1){s&&(Ja=1),ti=csSymbol("nodeIdentifier")}function kd(s){return G.getProperty(s,ti)}function et(s){let r=G.getProperty(s,ti);return r!=null?r:(G.setProperty(s,ti,Ja++),G.getProperty(s,ti))}var Tr;function ei(s){if(Tr||(Tr=document.createElement("div")),!(!!s&&z(s)))return st.warn(`isValidSelector: invalid selector provided '${s}'`),!1;try{return Kt.call(Tr,s),!0}catch{return st.warn(`isValidSelector: invalid selector provided '${s}'`),!1}}function Yr(s,r){if(to)return to.call(s,r);let t=s;do{if(Kt.call(t,r))return t;t=t==null?void 0:t.parentElement}while(t!==null&&t.nodeType===1);return null}var M=(()=>{let s;return function(r){let t;(function(R){R[R.NotMasked=0]="NotMasked",R[R.Parent=1]="Parent",R[R.Child=2]="Child"})(t=r.MaskedElementState||(r.MaskedElementState={})),r.maskedProp="masked",r.maskedAttributeProp="maskedAttribute";function e(R){return Fe(R)&&"Attributes"in R&&"PIISelectors"in R?R.Attributes instanceof Array&&R.PIISelectors instanceof Array:!1}r.isSelectorUserInput=e;function i(R){if(!Fe(R)||R===null)throw new Error("Command misuse: setPIISelectors");return"Attributes"in R||(R.Attributes=[]),"PIISelectors"in R||(R.PIISelectors=[]),R}r.sanitizeSelectorUserInput=i;function n(R){var b;return(b=G.getProperty(R,r.maskedProp))!==null&&b!==void 0?b:{state:t.NotMasked}}r.getMaskedElementDetails=n;function a(R){var b;return(b=G.getProperty(R,r.maskedAttributeProp))!==null&&b!==void 0?b:{attributes:[]}}r.getMaskedAttributeDetails=a;function c(R){let b=G.getProperty(R,r.maskedProp);return(b==null?void 0:b.state)===t.Parent}r.isMaskedElement=c;function l(R){let b=G.getProperty(R,r.maskedProp);return(b==null?void 0:b.state)===t.Child}r.isMaskedElementChild=l;function d(R,b){let x=G.getProperty(R,r.maskedAttributeProp);return((x==null?void 0:x.attributes)==null?void 0:csArray.prototype.indexOf.call(x==null?void 0:x.attributes,b))>-1}r.isMaskedAttribute=d;function g(R,b){G.setProperty(R,r.maskedProp,b)}r.setMaskedElementProperty=g;function u(R){G.setProperty(R,r.maskedProp,void 0)}r.unsetMaskedElementProperty=u;function y(R,b){G.setProperty(R,r.maskedAttributeProp,b)}r.setMaskedAttributeProperty=y;function E(R,b){let x=csArray.prototype.filter.call(R.PIISelectors,j=>ei(j));b.elementSelector.length>0&&csArray.prototype.push.call(x,...csString.prototype.split.call(b.elementSelector,","));let w=k([...x]),D={elementSelector:csArray.prototype.join.call(w,","),attrSelector:b.attrSelector,attrSelectors:b.attrSelectors};return csArray.prototype.forEach.call(R.Attributes,j=>{j!=null&&j.attrName&&(j!=null&&j.selector)&&ei(j.selector)&&!v(D.attrSelectors,j)&&csArray.prototype.push.call(D.attrSelectors,j)}),D.attrSelector=A(D.attrSelectors),D}r.getComputedSelectorSettings=E;function v(R,b){return csArray.prototype.some.call(R,x=>x.selector===b.selector&&x.attrName===b.attrName)}function A(R){let b="";return csArray.prototype.forEach.call(R,x=>{let w=csString.prototype.split.call(x.selector,",");csArray.prototype.forEach.call(w,D=>{ei(D)&&(b&&(b+=","),b+=D)})}),b}function k(R){if(R.length<=1)return R;let b=[];for(let x of R){let w=csString.prototype.split.call(x,",");for(let D of w)csArray.prototype.indexOf.call(b,D)===-1&&csArray.prototype.push.call(b,D)}return b}}(s||(s={})),s})(),L=(()=>{let s;return function(r){r[r.MUTATION_INSERT=1]="MUTATION_INSERT",r[r.MUTATION_REMOVE=2]="MUTATION_REMOVE",r[r.MUTATION_ATTRIBUTE=3]="MUTATION_ATTRIBUTE",r[r.MUTATION_CHARACTER_DATA=4]="MUTATION_CHARACTER_DATA",r[r.INITIAL_DOM=5]="INITIAL_DOM",r[r.SCROLL=6]="SCROLL",r[r.CLICK=8]="CLICK",r[r.RESIZE=9]="RESIZE",r[r.INPUT_CHECKABLE=10]="INPUT_CHECKABLE",r[r.INPUT_SELECT=11]="INPUT_SELECT",r[r.INPUT_TEXT=12]="INPUT_TEXT",r[r.HASH_CHANGE=13]="HASH_CHANGE",r[r.UNANONYMIZED_CONSENT_GRANTED=14]="UNANONYMIZED_CONSENT_GRANTED",r[r.UNANONYMIZED_CONSENT_WITHDRAWN=15]="UNANONYMIZED_CONSENT_WITHDRAWN",r[r.MOUSE_OVER=16]="MOUSE_OVER",r[r.VISIBILITY_CHANGE=17]="VISIBILITY_CHANGE",r[r.STYLESHEET_RULE_INSERT=18]="STYLESHEET_RULE_INSERT",r[r.STATIC_RESOURCE_URL=19]="STATIC_RESOURCE_URL",r[r.PERFORMANCE_TIMINGS=20]="PERFORMANCE_TIMINGS",r[r.ATTACH_SHADOW=22]="ATTACH_SHADOW",r[r.STYLESHEET_CSS_TEXT_UPDATE=23]="STYLESHEET_CSS_TEXT_UPDATE",r[r.JAVASCRIPT_ERROR=26]="JAVASCRIPT_ERROR",r[r.PAGE_EVENT=27]="PAGE_EVENT",r[r.API_ERROR=28]="API_ERROR",r[r.TEXT_VISIBILITY=29]="TEXT_VISIBILITY",r[r.MUTATION_ENCRYPTED_CHARACTER_DATA=30]="MUTATION_ENCRYPTED_CHARACTER_DATA",r[r.INPUT_ENCRYPTED_TEXT=31]="INPUT_ENCRYPTED_TEXT",r[r.KEY_DOWN=32]="KEY_DOWN",r[r.KEY_UP=33]="KEY_UP",r[r.CLIPBOARD_COMMAND=34]="CLIPBOARD_COMMAND",r[r.STYLESHEET_RULE_DELETE=37]="STYLESHEET_RULE_DELETE",r[r.USER_IDENTIFIER=38]="USER_IDENTIFIER",r[r.TOUCH_START=41]="TOUCH_START",r[r.TOUCH_MOVE=42]="TOUCH_MOVE",r[r.TOUCH_END=43]="TOUCH_END",r[r.GESTURE_RECOGNITION=44]="GESTURE_RECOGNITION",r[r.POINTER_DOWN=47]="POINTER_DOWN",r[r.POINTER_MOVE=48]="POINTER_MOVE",r[r.POINTER_UP=49]="POINTER_UP",r[r.CUSTOM_ERROR=50]="CUSTOM_ERROR",r[r.CUSTOM_ELEMENT_REGISTRATION=54]="CUSTOM_ELEMENT_REGISTRATION",r[r.REGISTER_ADOPTED_STYLE_SHEET=60]="REGISTER_ADOPTED_STYLE_SHEET",r[r.SET_ADOPTED_STYLE_SHEETS=61]="SET_ADOPTED_STYLE_SHEETS",r[r.ADOPTED_STYLESHEET_RULE_INSERT=62]="ADOPTED_STYLESHEET_RULE_INSERT",r[r.ADOPTED_STYLESHEET_RULE_DELETE=63]="ADOPTED_STYLESHEET_RULE_DELETE",r[r.SCREEN_RESIZE=65]="SCREEN_RESIZE",r[r.RESOURCE_HASHES=66]="RESOURCE_HASHES",r[r.PERFORMANCE_NAVIGATION_TIMING=67]="PERFORMANCE_NAVIGATION_TIMING",r[r.PERFORMANCE_RESOURCE_TIMING=68]="PERFORMANCE_RESOURCE_TIMING",r[r.RECORDING_INFO_EVENT=72]="RECORDING_INFO_EVENT",r[r.TEXT_REF=73]="TEXT_REF",r[r.TOUCH_CANCEL=74]="TOUCH_CANCEL",r[r.MUTATION_MOVE=75]="MUTATION_MOVE",r[r.STYLESHEET_RULE_UPDATE=76]="STYLESHEET_RULE_UPDATE",r[r.ADOPTED_STYLESHEET_RULE_UPDATE=77]="ADOPTED_STYLESHEET_RULE_UPDATE",r[r.VIDEO_PLAY=78]="VIDEO_PLAY",r[r.VIDEO_PAUSE=79]="VIDEO_PAUSE",r[r.VIDEO_SEEK=80]="VIDEO_SEEK",r[r.DEBUG=999]="DEBUG"}(s||(s={})),s})();var Ws=(()=>{let s;return function(r){r[r.SWIPE=0]="SWIPE",r[r.PINCH_IN=1]="PINCH_IN",r[r.PINCH_OUT=2]="PINCH_OUT",r[r.LONG_PRESS=3]="LONG_PRESS",r[r.TAP=4]="TAP",r[r.DOUBLE_TAP=5]="DOUBLE_TAP"}(s||(s={})),s})(),bs=(()=>{let s;return function(r){r[r.COPY=0]="COPY",r[r.CUT=1]="CUT",r[r.PASTE=2]="PASTE"}(s||(s={})),s})(),q=(()=>{let s;return function(r){r[r.SPACE=0]="SPACE",r[r.ENTER=1]="ENTER",r[r.BACKSPACE=2]="BACKSPACE",r[r.DELETE=3]="DELETE",r[r.ARROWUP=4]="ARROWUP",r[r.ARROWDOWN=5]="ARROWDOWN",r[r.ARROWLEFT=6]="ARROWLEFT",r[r.ARROWRIGHT=7]="ARROWRIGHT",r[r.CAPSLOCK=8]="CAPSLOCK",r[r.SHIFT=9]="SHIFT",r[r.TAB=10]="TAB",r[r.ALPHANUMERICAL=11]="ALPHANUMERICAL",r[r.ESCAPE=12]="ESCAPE",r[r.END=13]="END",r[r.ALT=14]="ALT",r[r.CTRL=15]="CTRL",r[r.META=16]="META"}(s||(s={})),s})(),Dd=33,Ld=(()=>{class s{constructor(){this.eventType="user",this.wc=[],this.Uy=[{type:"pointerup",listener:e=>this.pointerUpListener(e),boundElement:document},{type:"pointermove",listener:e=>this.pointerMoveListener(e),boundElement:document},{type:"pointerdown",listener:e=>this.pointerDownListener(e),boundElement:document}],this.jy=[{type:"touchstart",listener:e=>this.touchStartListener(e),boundElement:document},{type:"touchmove",listener:e=>this.touchMoveListener(e),boundElement:document},{type:"touchend",listener:e=>this.touchEndCancelListener(e),boundElement:document},{type:"touchcancel",listener:e=>this.touchEndCancelListener(e),boundElement:document}],this.go=[{type:"click",listener:e=>this.clickListener(e),boundElement:document},{type:"keyup",listener:e=>this.keyUpListener(e),boundElement:document},{type:"keydown",listener:e=>this.keyDownListener(e),boundElement:document},{type:"copy",listener:e=>this.copyListener(e),boundElement:document},{type:"cut",listener:e=>this.cutListener(e),boundElement:document},{type:"paste",listener:e=>this.pasteListener(e),boundElement:document},{type:"scroll",listener:e=>this.scrollListener(csEventtarget.apply(e)),boundElement:document},{type:"mouseover",listener:e=>this.mouseOverListener(e),boundElement:document}],this.bc=[{type:"scroll",listener:e=>this.scrollListener(csEventtarget.apply(e))}];let t=Id(window.navigator.userAgent);(t===null||t&&t>=16)&&csArray.prototype.push.call(this.bc,{type:"mouseover",listener:e=>this.mouseOverListener(e)}),this.ie=new Ds((e,i)=>{switch(i){case"initial":case"added":this.hi(e);break;case"removed":this.pi(e);break}})}init(){this.Hy(),this.By(),this.Ac()}onEvent(t){csArray.prototype.push.call(this.wc,t)}Kt(t,e=!1){csArray.prototype.forEach.call(this.wc,i=>i(t,e))}start(){this.Tc(),this.hi(document),this.ie.observe()}stop(){this.pi(document),this.ie.disconnect(),this.wc=[]}By(){this.Fy()&&csArray.prototype.push.call(this.go,...this.Uy)}Hy(){this.$y()&&csArray.prototype.push.call(this.go,...this.jy)}hi(t){Gi(t)?csArray.prototype.forEach.call(this.go,e=>gt(e)):csArray.prototype.forEach.call(this.bc,e=>{let i={type:e.type,listener:e.listener,boundElement:t};gt(i)})}pi(t){Gi(t)?csArray.prototype.forEach.call(this.go,e=>dt(e)):csArray.prototype.forEach.call(this.bc,e=>{let i={type:e.type,listener:e.listener,boundElement:t};dt(i)})}Fy(){return"PointerEvent"in window&&typeof window.PointerEvent=="function"}$y(){return"TouchEvent"in window&&typeof window.TouchEvent=="function"}Tc(){this.zy()}zy(){let t=ws.getScrollContainer()||document,e=et(t),i=this.md(t);if(i.top!==0||i.left!==0){let n={type:L.SCROLL,args:[e,i.left,i.top],date:N.now()};this.Kt(n,!0)}}md(t){return t===document?{top:window.pageYOffset,left:window.pageXOffset}:{top:t.scrollTop,left:t.scrollLeft}}scrollListener(t){if(M.isMaskedElement(t)||M.isMaskedElementChild(t))return;let e=et(t),i=this.md(t),n={type:L.SCROLL,args:[e,i.left,i.top],date:N.now()};this.Kt(n)}mouseOverListener(t){if(M.isMaskedElementChild(t.target))return;let e=et(t.target),i={type:L.MOUSE_OVER,args:[e],date:N.now()};this.Kt(i)}clickListener(t){let e=ut(t);if(M.isMaskedElementChild(e))return;let i=et(e),n={type:L.CLICK,args:[i],date:N.now()};this.Kt(n)}keyUpListener(t){let e=ut(t);if(M.isMaskedElementChild(e))return;let i=et(e),n=this.D[t.key];if(n===void 0)return;let a={type:L.KEY_UP,args:[i,n],date:N.now()};this.Kt(a)}keyDownListener(t){let e=ut(t);if(M.isMaskedElementChild(e))return;let i=et(e),n=this.D[t.key];if(n===void 0)return;let a={type:L.KEY_DOWN,args:[i,n],date:N.now()};this.Kt(a)}copyListener(t){let e=ut(t);if(M.isMaskedElementChild(e))return;let i=et(e),n={type:L.CLIPBOARD_COMMAND,args:[i,bs.COPY],date:N.now()};this.Kt(n)}cutListener(t){let e=ut(t);if(M.isMaskedElementChild(e))return;let i=et(e),n={type:L.CLIPBOARD_COMMAND,args:[i,bs.CUT],date:N.now()};this.Kt(n)}pasteListener(t){let e=ut(t);if(M.isMaskedElementChild(e))return;let i=et(e),n={type:L.CLIPBOARD_COMMAND,args:[i,bs.PASTE],date:N.now()};this.Kt(n)}pointerUpListener(t){let e=ut(t);if(M.isMaskedElementChild(e))return;let i=et(e),n={type:L.POINTER_UP,args:[t.pointerId,t.pointerType,Vt(t.clientX,1),Vt(t.clientY,1),i,t.button],date:N.now()};this.Kt(n)}pointerMoveListener(t){let e={type:L.POINTER_MOVE,args:[t.pointerId,t.pointerType,Vt(t.clientX,1),Vt(t.clientY,1)],date:N.now()};this.Kt(e)}pointerDownListener(t){let e=ut(t);if(M.isMaskedElementChild(e))return;let i=et(e),n={type:L.POINTER_DOWN,args:[t.pointerId,t.pointerType,Vt(t.clientX,1),Vt(t.clientY,1),i,t.button,{pageX:Vt(t.pageX,1),pageY:Vt(t.pageY,1)}],date:N.now()};this.Kt(n)}touchStartListener(t){if(!t.changedTouches)return;let{changedTouches:e}=t;for(let i=0;i{class s{constructor(t){this.qy=t,this.mo=0}addString(t){this.mo+=t.length*xd}addArrayBuffer(t){this.mo+=t.byteLength}isThresholdReached(){return this.mo>this.qy}reset(){this.mo=0}}return s})(),Vd=2*1e3*1024,Ud=200,jd=(()=>{class s{constructor(t=[],e=Vd){this.Nt=t,this.Rc=new yn(e)}addEvent(t){this.Rc.addString(Is(t)),csArray.prototype.push.call(this.Nt,t)}addEventByTimestamp(t){let e=0;for(;e=t.date);e+=1);csArray.prototype.splice.call(this.Nt,e,0,t)}eventsCount(){return this.Nt.length}clearEvents(){this.Rc.reset(),this.Nt=[]}isFull(){return this.eventsCount()>=Ud}isThresholdReached(){return this.Rc.isThresholdReached()}getEvents(){return this.Nt}extractEvents(...t){let e=[],i=[];return csArray.prototype.forEach.call(this.Nt,n=>{csArray.prototype.indexOf.call(t,n.type)!==-1?csArray.prototype.push.call(e,n):csArray.prototype.push.call(i,n)}),this.Nt=i,e}stringifyEvents(){return Is(this.Nt)}uC(t){t.type===L.INITIAL_DOM&&(window.CSDomSerialized=window.CSDomSerialized?window.CSDomSerialized+1:1)}}return U([Dt("RecordingBatch.addEvent")],s.prototype,"addEvent",null),s})(),Hd=(()=>{class s{constructor(){this.yo=1}getCurrentIndex(){return this.yo}increment(){this.yo+=1}reset(){this.yo=1}getRequestParameters(){return{ri:`${this.yo}`}}}return s})(),Qa=(()=>{class s{emit(t,e,i,n=document){let c=`${i!==void 0?`${i}`:`${s.Gy}`}${t}`,l=s.createEvent(c,{detail:e});l!==null&&n.dispatchEvent(l)}static createEvent(t,e={}){if(typeof CustomEvent=="function")return new CustomEvent(t,e);let i=this.Wy();if(i===null)return null;let{bubbles:n=!1,cancelable:a=!1,detail:c}=e;return i.initCustomEvent(t,n,a,c),i}static Wy(){try{return document.createEvent("CustomEvent")}catch{return null}}}return s.Gy="cs.tracking.",s})(),It=(()=>{class s{constructor(){this._isStarted=!1}get isStarted(){return this._isStarted}start(...t){this._isStarted||(this._isStarted=!0,this.onStart(...t))}stop(){this._isStarted&&(this._isStarted=!1,this.onStop())}restart(){this.stop(),this.start()}}return s})(),zi="null",De=null,Za=[],Bd=()=>{var s;return pi||!!(!((s=document.body)===null||s===void 0)&&s.getAttribute("data-cs-tag-extension"))};!pi&&Bd()&&(window._uxa?_uxa.push(["debugEvents",!0]):window._uxa=[["debugEvents",!0]],De=new BroadcastChannel("cs-tag"),document.addEventListener("cs.tracking.recordingEvent",s=>{Xr({type:"UXA_EVENT",event:s.detail})}),De.addEventListener("message",s=>{if(s.data.type==="CONNECT"){if(s.data.sessionId===zi)return;zi=s.data.sessionId,csArray.prototype.forEach.call(Za,r=>r()),De==null||De.postMessage({type:"CONNECTED",sessionId:zi})}}));function Fd(s){pi||(zi!==null&&csSetTimeout(s),csSetTimeout(()=>csArray.prototype.push.call(Za,s)))}function Xr(s){De==null||De.postMessage(s)}var ir=(()=>{class s{constructor(t,e=""){this.name=t,this.format=e}}return s})(),ss=(()=>{class s extends ir{constructor(t){super(t,"Value: {count}"),this.count=0}increase(t=1){this.count+=t}decrease(){this.count>0&&this.count--}clear(){this.count=0}getData(){return{count:this.count}}}return s})();var Co=(()=>{class s extends ir{constructor(t){super(t,"Living intances: {instances}
Added: {added}
Removed: {removed}"),this.added=0,this.removed=0}get value(){return this.added-this.removed}increase(){this.added++}decrease(){this.removed++}getData(){return{added:this.added,removed:this.removed,instances:this.added-this.removed}}}return s})(),Rr=(()=>{class s extends ir{constructor(t){super(t,"Count: {count}
Average: {average}ms
Total: {total}ms"),this.total=0,this.count=0}get average(){return this.count?this.total/this.count:0}measure(t){let e=N.elapsed();t(),this.count++,this.total+=N.elapsed()-e}asyncMeasure(){let t=N.elapsed();return()=>{this.count++,this.total+=N.elapsed()-t}}getData(){return{total:this.total,count:this.count,average:this.average}}}return s})(),ie={general:{category:"General",nbEvents:new ss("Nb of Events"),pendingTasks:new ss("Pending Tasks"),pendingEvents:new ss("Pending Tasks"),nbOfMutationObservers:new Co("Nb of Mutation Observers")},mutations:{category:"Mutations",initialDOM:new Rr("Initial DOM"),pendingMutations:new ss("Nb of Mutations scheduled"),serializedMutations:new Rr("Serialized Mutations"),count:new ss("Mutation Count"),elementMutationObserved:new Co("Nb of Elements Observed by MutationObserver"),unobserveGarbageCollection:new Rr("Unobserve GC")},visibilityObserver:{category:"Visibility Observer",hiddenElements:new ss("Nb of Hidden Elements "),nbElements:new ss("Nb of Elements")}},Io=null;Fd(()=>{let s=i=>Object.keys(i),r=csArray.prototype.map.call(s(ie),i=>ie[i]),t=csArray.prototype.map.call(r,i=>csArray.prototype.filter.call(csArray.prototype.map.call(s(i),n=>i[n]),n=>n instanceof ir));Xr({type:"UXA_PERFORMANCE_COUNTER_SCHEMA",event:csArray.prototype.map.call(r,(i,n)=>({category:i.category,performanceCounters:csArray.prototype.map.call(t[n],a=>({name:a.name,format:a.format}))}))}),!Io&&(Io=csSetInterval(()=>{let i=La(je(t,n=>je(n,a=>a.getData())),n=>n);Xr({type:"UXA_PERFORMANCE_COUNTER",event:i})},1e3))});function de(s,r,t,e){var i=arguments.length,n=i<3?r:e===null?e=Object.getOwnPropertyDescriptor(r,t):e,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,r,t,e);else for(var c=s.length-1;c>=0;c--)(a=s[c])&&(n=(i<3?a(n):i>3?a(r,t,n):a(r,t))||n);return i>3&&n&&Object.defineProperty(r,t,n),n}function Bt(s){return We(s,"data:")}function $d(s){return We(s,"#")}function zd(s){return!!s&&(mi(s,".css")||We(s,"https://fonts.googleapis.com/css"))}var Po=/\bhttps?:\/\/[^\s<>"')\]]*[^\s<>"'),.;:…\])]/gi;function qd(s){Po.lastIndex=0;let r,t=0,e=[];for(;(r=Po.exec(s))!==null;){let i=r.index,n=r.index+r[0].length;if(i>t){let c=csString.prototype.slice.call(s,t,i);csArray.prototype.push.call(e,{content:c,isUrl:!1})}let a=csString.prototype.slice.call(s,i,n);csArray.prototype.push.call(e,{content:a,isUrl:!0}),t=n}if(t{let i=e[3]||e[4],n=e[9]||e[10]||e[11],a=Jd((i||n).trim()),c=i?"@import ":"",l=r(a)||a;return`${c}url(${Kd(l)})`})}function Kd(s){return csString.prototype.indexOf.call(s,'"')===-1?`"${s}"`:csString.prototype.indexOf.call(s,"'")===-1?`'${s}'`:s}function si(s){let r=new Set;return Xd(s,t=>{var e,i;return r.add((i=(e=csString.prototype.match.call(t,/^["|'](.*)?["|']$/))===null||e===void 0?void 0:e[1])!==null&&i!==void 0?i:t),t}),ks(r)}function Jd(s){let r=/(\\)*\\(?:([a-fA-F0-9]{1,6})|(.))[\n\t\x20]?/g;return csString.prototype.replace.call(s,r,(t,e,i,n)=>{if(e==="\\")return csString.prototype.slice.call(t,1);if(n)return n;let a=parseInt(i,16);return 55296<=a&&a<=57343||a===0||a>1114111?"\uFFFD":csString.fromCodePoint(a)})}var No=new Map,Cr=!pi&&document.implementation.createHTMLDocument("");function tc(s){var r,t;return(t=(r=s.sheet)===null||r===void 0?void 0:r.href)!==null&&t!==void 0?t:s.getAttribute("href")}function Qd(s){if(!rn(s))return null;let r=ec(s);if(r===null||r.length===0)return null;let t="";if(Ah(s.textContent))J(r,e=>t+=e.cssText);else{let e=Zd(s);if(e===r.length||e>r.length)return null;let i=new csArray(r.length-e);for(let n=e,a=0;nt+=n.cssText)}return t}function Zd(s){if(!Cr)return 0;let r=No.get(s.textContent);if(r)return r;let t=s.cloneNode(!0);t.textContent=s.textContent,Cr.head.appendChild(t);let e=ec(t);return r=e?e.length:0,No.set(s.textContent,r),Cr.head.removeChild(t),r}function ec(s){try{if(s.disabled)return null;let r=s.sheet;return r?r.cssRules||r.rules:null}catch(r){if(r.name!=="SecurityError"&&r.name!=="InvalidAccessError")throw r;return null}}var Ks=s=>s instanceof HTMLFormElement?"form":s.localName;var us=(()=>{class s{constructor(t){this.csId=et(t),this.props=$i.getStore(t)}}return s})(),sc=(()=>{class s extends us{constructor(t){super(t),this.nodeType=3,this.data=t.data}}return s})(),As=(()=>{class s extends us{constructor(t){var e;super(t),this.attributes=[],this.nodeType=1,this.localName=Ks(t),this.namespaceURI=(e=t.namespaceURI)!==null&&e!==void 0?e:void 0,this.children=[];let i=Qd(t);if(i){this.children=new csArray(csNodechildNodes.apply(t).length);let n=document.createTextNode(i),a=new sc(n);csArray.prototype.push.call(this.children,a)}Ns(t)&&G.setProperty(this,"SVG",!0)}static isElement(t){return t.nodeType===1}static getAttribute(t,e){return xe(t.attributes,i=>i.name===e)}static getAttributeValue(t,e){var i;return(i=this.getAttribute(t,e))===null||i===void 0?void 0:i.value}}return s})(),Sn=(()=>{class s{constructor(t){this.type="asyncEvent",this.Cc=!1,t&&t(e=>this.resolve(e))}resolve(t){if(this.Cc)throw new Error("AsyncEvent already resolve.");t.timestamp==null&&(t={...t,timestamp:this.timestamp}),this.Ms=t,this.Cc=!0,this.S&&this.S(this.Ms)}complete(t){this.Cc&&t(this.Ms),this.S=t}wait(){return new Promise(t=>this.complete(t))}}return s})();function tp(s,r){let t=!1,e=function(){if(!t)return s.apply(r,arguments)};return e.cancel=()=>t=!0,e}var Kr=csQueueMicrotask||csSetTimeout,ki=new Ms,Ys=new Ms,Mo=1;function zt(s,r="high"){let t=Mo;ki.isEmpty&&Ys.isEmpty&&ic(()=>{if(Mo!==t)return;let n=hs(()=>{for(;!Ys.isEmpty;)Ys.pop()();for(;!ki.isEmpty;)ki.pop()();Ys.isEmpty||n()},"groupMicrotask.run");n()});let e=s.name||s.toString(),i=qe(`groupMicrotask:${r}:${e}`,s);r==="high"?Ys.push(i):ki.push(i)}function ic(s,r=10){Kr(r===0?s:()=>ic(s,r-1))}async function rc(s=1){for(let r=0;rzt(t))}function rr(){let s=new Set;return{add(r){s.add(r),s.size===1&&csSetTimeout(()=>{s.clear()})},has(r){return s.has(r)},del(r){s.delete(r)},clear(){s.clear()},values(){return ks(s)},get count(){return s.size}}}function nr(s,r=!1){let t=rr();return{push(e){t.count===0&&(r?zt:csSetTimeout)(()=>{s(t.values()),t.clear()}),t.add(e)}}}var os=csSymbol(),vn=(()=>{class s{constructor(t){var e,i,n,a,c,l,d,g,u,y,E,v;this.S=t,this.Ic=null,this.Pc=null,this.Oc=null,this.Nc=null,this.Yy=nr(A=>this.processUpdateRulesInATick(A)),this.Mc=null,this.kc=null,this.Dc=null,this.S=A=>zt(()=>t(A)),typeof((i=(e=window.CSSStyleSheet)===null||e===void 0?void 0:e.prototype)===null||i===void 0?void 0:i.insertRule)=="function"&&(this.Ic=ns({target:window.CSSStyleSheet.prototype,methodName:"insertRule",hook:({context:A,args:k})=>{this.processInsertRule(A,k)}})),typeof((a=(n=window.CSSStyleSheet)===null||n===void 0?void 0:n.prototype)===null||a===void 0?void 0:a.deleteRule)=="function"&&(this.Pc=ns({target:window.CSSStyleSheet.prototype,methodName:"deleteRule",hook:({context:A,args:k})=>{this.processDeleteRule(A,k)}})),typeof((l=(c=window.CSSGroupingRule)===null||c===void 0?void 0:c.prototype)===null||l===void 0?void 0:l.insertRule)=="function"&&(this.Oc=ns({target:window.CSSGroupingRule.prototype,methodName:"insertRule",hook:({context:A})=>this.processUpdateRule(A)})),typeof((g=(d=window.CSSGroupingRule)===null||d===void 0?void 0:d.prototype)===null||g===void 0?void 0:g.deleteRule)=="function"&&(this.Nc=ns({target:window.CSSGroupingRule.prototype,methodName:"deleteRule",hook:({context:A})=>this.processUpdateRule(A)})),typeof((y=(u=window.CSSStyleDeclaration)===null||u===void 0?void 0:u.prototype)===null||y===void 0?void 0:y.setProperty)=="function"&&(this.Mc=ns({target:window.CSSStyleDeclaration.prototype,methodName:"setProperty",hook:({context:A})=>{let k=A.parentRule;k instanceof CSSStyleRule&&this.processUpdateRule(k)}})),typeof((v=(E=window.CSSStyleDeclaration)===null||E===void 0?void 0:E.prototype)===null||v===void 0?void 0:v.removeProperty)=="function"&&(this.kc=ns({target:window.CSSStyleDeclaration.prototype,methodName:"removeProperty",hook:({context:A})=>{let k=A.parentRule;k instanceof CSSStyleRule&&this.processUpdateRule(k)}})),Object.getOwnPropertyDescriptor(window.CSSStyleRule.prototype,"style")&&(this.Dc=vd(window.CSSStyleRule.prototype,"style",A=>{this.processUpdateRule(A)}))}observe(){var t,e,i,n,a,c,l;(t=this.Ic)===null||t===void 0||t.activate(),(e=this.Pc)===null||e===void 0||e.activate(),(i=this.Oc)===null||i===void 0||i.activate(),(n=this.Nc)===null||n===void 0||n.activate(),(a=this.Mc)===null||a===void 0||a.activate(),(c=this.kc)===null||c===void 0||c.activate(),(l=this.Dc)===null||l===void 0||l.activate()}disconnect(){var t,e,i,n,a,c,l;(t=this.Ic)===null||t===void 0||t.deactivate(),(e=this.Pc)===null||e===void 0||e.deactivate(),(i=this.Oc)===null||i===void 0||i.deactivate(),(n=this.Nc)===null||n===void 0||n.deactivate(),(a=this.Mc)===null||a===void 0||a.deactivate(),(c=this.kc)===null||c===void 0||c.deactivate(),(l=this.Dc)===null||l===void 0||l.deactivate()}processInsertRule(t,[e,i]){if(t[os]==null&&!t.ownerNode)return;let n={type:"cssRuleInserted",sheet:t,rule:e,index:i};this.S(n)}processUpdateRule(t){let e=t;for(;e.parentRule!==null;)e=e.parentRule;e.parentStyleSheet!==null&&this.Yy.push(e)}processUpdateRulesInATick(t){for(let e of t){if(e.parentStyleSheet===null)return;let i=e.parentStyleSheet,n=csArray.prototype.indexOf.call(ci(i.cssRules),e);if(n===-1)return;let a={type:"cssRuleUpdated",sheet:i,rule:e.cssText,index:n};this.S(a)}}processDeleteRule(t,[e]){if(t[os]==null&&!t.ownerNode)return;let i={type:"cssRuleDeleted",sheet:t,index:e};this.S(i)}}return ct([P()],s.prototype,"observe",null),ct([P()],s.prototype,"disconnect",null),ct([P()],s.prototype,"processInsertRule",null),ct([P()],s.prototype,"processUpdateRule",null),ct([P()],s.prototype,"processUpdateRulesInATick",null),ct([P()],s.prototype,"processDeleteRule",null),s})(),ep=(()=>{class s{constructor(t){this.Xy=1,this.Eo=new Set,this.Lc=null,this.xc=null,this.Vc=(e,i)=>{(i==="initial"||i==="added")&&this.setStyleSheets(e,e.adoptedStyleSheets)},this.Ky=e=>{let i=e.sheet;if(this.Eo.has(i)){if(e.type==="cssRuleInserted"){let n={type:"adoptedStyleSheetRuleInserted",sheetId:i[os],rule:e.rule,index:e.index};this.S(n)}else if(e.type==="cssRuleDeleted"){let n={type:"adoptedStyleSheetRuleDeleted",sheetId:i[os],index:e.index};this.S(n)}else if(e.type==="cssRuleUpdated"){let n={type:"adoptedStyleSheetRuleUpdated",sheetId:i[os],rule:e.rule,index:e.index};this.S(n)}}},this.S=e=>zt(async()=>{await rc(2),t(e)}),this.ie=new Ds(this.Vc),"adoptedStyleSheets"in Document.prototype&&(this.Lc=Wr(window.Document.prototype,"adoptedStyleSheets",(e,i)=>{this.setStyleSheets(e,i)})),"ShadowRoot"in window&&"adoptedStyleSheets"in window.ShadowRoot.prototype&&(this.xc=Wr(window.ShadowRoot.prototype,"adoptedStyleSheets",(e,i)=>{this.setStyleSheets(e,i)})),this.yd=new vn(this.Ky)}observe(){var t,e;this.setStyleSheets(document,document.adoptedStyleSheets),this.ie.observe(),(t=this.Lc)===null||t===void 0||t.activate(),(e=this.xc)===null||e===void 0||e.activate(),this.yd.observe()}disconnect(){var t,e;this.Eo.clear(),this.ie.disconnect(),(t=this.Lc)===null||t===void 0||t.deactivate(),(e=this.xc)===null||e===void 0||e.deactivate(),this.yd.disconnect()}setStyleSheets(t,e){if(!e.length)return;this.Jy(e);let i=je(e,a=>a[os]),n={type:"adoptedStyleSheetsSet",target:t,sheetsIds:i};this.S(n)}Jy(t){J(t,e=>{if(this.Eo.has(e))return;let i=this.Xy++;e[os]=i,this.Eo.add(e);let n=this.Qy(e),a={type:"adoptedStyleSheetRegistered",sheetId:i,cssRules:n};this.S(a)})}Qy(t){let e=[];try{e=je(t.cssRules,i=>i.cssText)}catch{}return e}}return ct([P()],s.prototype,"observe",null),ct([P()],s.prototype,"disconnect",null),ct([P()],s.prototype,"setStyleSheets",null),s})(),sp=hs(op,"optimizeMutations"),ip=csSymbol.for("ignoreNextSerialization");function rp(){let s=new Set,r=new Set,t=new Set,e=new Set,i=new Map,n=new Map,a=new Map,c=new Set,l=new Set,d=new Map,g=new Set;return{isMovedNode(u){return s.has(u)},markAsMovedNode(u){g.delete(u),s.add(u)},isDetachedMove(u){return!!lt.findAncestor(u,y=>g.has(y),!0)},isAddedNode(u){let y=lt.findAncestor(u,E=>r.has(E)||l.has(E)||s.has(E),!0);return!!y&&!s.has(y)},isMovedNodeIntoAddedNode(u){return s.has(u)&&!!lt.findAncestor(u,y=>r.has(y)||l.has(y),!0)},markAsAddedNode(u){g.delete(u),l.delete(u),r.add(u)},markAsPendingInsert(u){l.add(u)},isPendingInsert(u){return l.has(u)},isRemovedNode(u){return!!lt.findAncestor(u,y=>t.has(y),!0)},markAsRemovedNode(u){t.add(u)},isUselessNode(u){return e.has(u)},markAsUselessNode(u){e.add(u)},getPlaceholder(u,y){let E=y==="previous"?n:i;return u&&E.has(u)?E.get(u)||null:u},getSiblings(u){let y=u.addedNodes.length,E=this.getPlaceholder(u.previousSibling,"previous"),v=this.getPlaceholder(u.nextSibling,"next");if(y){let A=E,k=v,R=u.previousSibling!==E,b=u.nextSibling!==v;for(let x=0;x{if(d){let{childListType:E,movedNodes:v,...A}=d;csArray.prototype.push.call(t,E==="added"?A:{...A,movedNodes:v}),d=null}},u=E=>E===(d==null?void 0:d.childListType)?d:(g(),{childListType:E,type:"childList",target:s.target,addedNodes:[],removedNodes:[],movedNodes:[],previousSibling:l,nextSibling:c});if(e){for(let E=0;E{if(lt.isConnected(E)){if(!i&&!r.isPendingInsert(E)){if(r.isDetachedMove(E))return!0;r.markAsMovedNode(E),r.isMovedNodeIntoAddedNode(E)&&(E[ip]=!0)}return!1}return r.isUselessNode(E)?!1:(r.markAsRemovedNode(E),!0)});return y.length&&csArray.prototype.push.call(t,{type:"childList",removedNodes:y,addedNodes:[],movedNodes:[],target:s.target,nextSibling:c,previousSibling:l}),t}var ko={childList:!0,subtree:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,attributeOldValue:!0},Xe=(()=>{var s;class r{static setShadowRootFilter(e){csArray.prototype.push.call(s.shadowRootFilters,e)}static Uc(e){if(s.shadowRootFilters.length>0&&ai(e))for(let i=0;i{this.isRefreshing=!1;let i=this.mutationObserver.takeRecords();i.length&&s.mutationCallback(i),this.mutationObserver.disconnect(),this.observedTargets.forEach(n=>{this.mutationObserver.observe(n,ko)})})))}static observe(e,i){csArray.prototype.push.call(this.callbacks,e),i&&csArray.prototype.push.call(this.shadowRootCallbacks,i),this.started?i&&csArray.prototype.forEach.call(cs.getAllShadowHosts(document),n=>i(csElementshadowRoot.apply(n),"initial")):(this.mutationObserver=new csMutationObserver(this.mutationCallback),this.Uc(document),this.shadowRootObserver=new Ds(this.onShadowRoot),this.shadowRootObserver.observe(),this.started=!0,J(this.shadowRootObserver.shadowRoots,n=>{this.Uc(n)}))}static disconnect(e,i){var n,a;this.callbacks=csArray.prototype.filter.call(this.callbacks,c=>c!==e),i&&(this.shadowRootCallbacks=csArray.prototype.filter.call(this.shadowRootCallbacks,c=>c!==i)),this.callbacks.length===0&&(this.callbacks=[],this.shadowRootCallbacks=[],s.shadowRootFilters=[],(n=this.shadowRootObserver)===null||n===void 0||n.disconnect(),(a=this.mutationObserver)===null||a===void 0||a.disconnect(),this.observedTargets.clear(),this.started=!1)}constructor(e,i){this.S=e,this.Ed=i;let n=nr(a=>e(a,this),!0);this.S=qe("DocumentMutationObserver:callback",a=>{J(a,c=>n.push(c))})}get shadowRoots(){var e,i;return(i=(e=s.shadowRootObserver)===null||e===void 0?void 0:e.shadowRoots)!==null&&i!==void 0?i:[]}takeRecords(){var e;let i=(e=s.mutationObserver)===null||e===void 0?void 0:e.takeRecords(),n=s.shadowRootObserver.takeRecords();return i!=null&&i.length&&n.length?cu(i,n):i!=null?i:n}observe(){s.observe(this.S,this.Ed)}disconnect(){s.disconnect(this.S,this.Ed)}}return s=r,r.callbacks=[],r.shadowRootCallbacks=[],r.started=!1,r.observedTargets=new Set,r.shadowRootFilters=[],r.mutationCallback=t=>{ie.mutations.count.increase(t.length),csArray.prototype.forEach.call(s.callbacks,e=>e(t,s.mutationObserver))},r.onShadowRoot=(t,e)=>{J(s.shadowRootCallbacks,i=>i(t,e)),e!=="removed"?s.Uc(t):s.disconnectShadowRoot(t)},r.isRefreshing=!1,ct([P()],r.prototype,"observe",null),ct([P()],r.prototype,"disconnect",null),r})(),dp=(()=>{class s{constructor(t){this.S=t,this.Zy=e=>{e.sheet.ownerNode&&(e.type==="cssRuleInserted"?this.S({type:e.type,target:e.sheet.ownerNode,rule:e.rule,index:e.index}):e.type==="cssRuleDeleted"?this.S({type:e.type,target:e.sheet.ownerNode,index:e.index}):e.type==="cssRuleUpdated"&&this.S({type:e.type,target:e.sheet.ownerNode,rule:e.rule,index:e.index}))},this.S=e=>zt(()=>t(e)),this.Sd=new vn(e=>zt(async()=>{await rc(),this.Zy(e)})),"adoptedStyleSheets"in Document.prototype&&(this.vd=new ep(t))}observe(){var t;this.P=new Xe(e=>this.tE(e),(e,i)=>{i==="added"&&this.eE(e)}),this.P.observe(),this.Sd.observe(),(t=this.vd)===null||t===void 0||t.observe()}disconnect(){var t,e;(t=this.P)===null||t===void 0||t.disconnect(),this.Sd.disconnect(),(e=this.vd)===null||e===void 0||e.disconnect()}tE(t){let e=sp(t);for(let i=0;ic)};this.S(a)}}eE(t){let e={type:"shadowRootAttached",target:t.host,shadowRoot:t};this.S(e)}}return ct([P()],s.prototype,"processAttributeChanged",null),ct([P()],s.prototype,"processCharacterDataChanged",null),ct([P()],s.prototype,"processChildListChanged",null),s})(),pp=(()=>{class s extends us{constructor(t){super(t),this.nodeType=4,this.data=t.data}}return s})(),fp=(()=>{class s extends us{constructor(t){super(t),this.nodeType=8,this.data=t.data}}return s})(),gp=(()=>{class s extends us{constructor(t){super(t),this.nodeType=10,this.name=t.name,this.publicId=t.publicId,this.systemId=t.systemId}}return s})(),mp=(()=>{class s extends us{constructor(t){super(t),this.nodeType=9,this.baseURI=s.getBaseURI(t),this.children=[]}static getBaseURI(t){let e=t.baseURI;if(e==null){let i=t.getElementsByTagName("base");e=i.length!==0?i[0].href:t.URL}return e}}return s})(),yp=(()=>{class s extends us{constructor(t){super(t),this.nodeType=11,this.mode=t.mode,this.children=[]}}return s})(),Ep=(()=>{class s{constructor(t,e,i){var n;typeof t=="string"?(this.name=t,this.value=e,this.namespaceURI=i!=null?i:""):(this.name=t.name,this.value=t.value,this.namespaceURI=(n=t.namespaceURI)!==null&&n!==void 0?n:"")}static create(t){let e=t.attributes,i=new csArray(e.length);for(let n=0;ne(y)),a=new Ms,c=(y,E)=>{y.hasChildNodes()&&a.push({node:y,serializedNode:E});let v=y instanceof Element&&csElementshadowRoot.apply(y);if(v){let A=E.shadowRoot=ri(v);s.async&&s.initialDOM&&G.setProperty(v,ii,!0),c(v,A)}},l,d=!0,g=8,u=qe("work",()=>{var y;if(d)l=ri(t),s.async&&s.initialDOM&&G.setProperty(t,ii,!0),c(t,l),d=!1;else if(a.isEmpty)return;let E=wp(100);for(;!a.isEmpty;){if(s.async&&E.elapsed()>=s.workTime){--g<=0&&csSetTimeout(u);return}let{node:v,serializedNode:A}=a.pop(),k=(y=A.children)!==null&&y!==void 0?y:[];if(tr(v))continue;let R=0;for(let b=csNodefirstChild.apply(v);b;b=csNodenextSibling.apply(b)){if(nc(b))continue;let x=ri(b);s.async&&s.initialDOM&&G.setProperty(b,ii,!0),k[R++]=x,c(b,x)}}s.async?csSetTimeout(()=>n(l)):e(l)});if(!s.async)s.workTime=1/0,u();else for(let y=0;y= 1");let r=0,t=performance.now();return{started:t,elapsed(){return++r%s===0&&(t=performance.now()),t-this.started}}}function bp(s){return tr(s)?[]:Ep.create(s)}var ne=(()=>{class s{constructor(){this.re=[],this.isStarted=!1}produceEvent(t){var e;this.isStarted&&(t.timestamp=(e=t.timestamp)!==null&&e!==void 0?e:N.now(),t.timestamp==null&&(t.timestamp=N.now()),csArray.prototype.forEach.call(this.re,i=>i(t)))}onStop(){}start(){this.isStarted||(this.isStarted=!0,this.onStart())}stop(){this.isStarted&&(this.isStarted=!1,this.onStop(),this.re=[])}stopForInactivity(){this.isStarted&&(this.isStarted=!1,this.onStop())}subscribe(t){return csArray.prototype.push.call(this.re,t),()=>{let e=csArray.prototype.indexOf.call(this.re,t);csArray.prototype.splice.call(this.re,e,1)}}}return s})(),Ap=Sp(),Tp=(()=>{class s extends ne{constructor(){super(...arguments),this.So=!1}onStart(){this.So=!0,this.S=tp(this.sE,this),this.F=new dp(this.S),this.F.observe();let t=ie.mutations.initialDOM.asyncMeasure(),e=()=>{this.So=!1,_p(),t()};this.produceEvent(new Sn(i=>Ap(document,n=>{e(),i({type:"DomEvent",domEvent:"initialDOM",initialDOM:n})})))}onStop(){var t,e;this.So=!1,(t=this.S)===null||t===void 0||t.cancel(),(e=this.F)===null||e===void 0||e.disconnect()}ne(t,e){let i={type:"DomEvent",domEvent:e.type,target:0,targetProps:{}};return"target"in e&&(i.target=et(e.target),i.targetProps=G.getProperties(e.target)),[e,i]}sE(t){if(!this.iE(t))switch(t.type){case"attributeChanged":{let[e,i]=this.ne(t.type,t);i.attribute=e.attribute,i.isSvg=Ns(e.target),i.namespace=e.namespace,i.newValue=e.newValue,i.oldValue=e.oldValue,i.localName=Ks(e.target),i.linkRel=ba(e.target)?e.target.rel:null,i.parentLocalName=e.target.parentElement?Ks(e.target.parentElement):void 0,i.localName==="input"&&(i.inputType=e.target.getAttribute("type")),this.produceEvent(i)}break;case"characterDataChanged":{let[e,i]=this.ne(t.type,t);i.newValue=e.newValue,i.oldValue=e.oldValue,i.targetNodeType=e.target.nodeType,i.parentLocalName=e.target.parentElement?Ks(e.target.parentElement):null,i.parentProps=e.target.parentElement?G.getProperties(e.target.parentElement):void 0,this.produceEvent(i)}break;case"nodesAdded":{let[e,i]=this.ne(t.type,t);i.targetLocalName=ot(e.target)?Ks(e.target):null,i.nextSibling=e.nextSibling?et(e.nextSibling):null,i.previousSibling=e.previousSibling?et(e.previousSibling):null,ie.mutations.serializedMutations.measure(()=>{i.nodes=je(e.nodes,Jr)}),this.produceEvent(i);break}case"nodesMoved":{let[e,i]=this.ne(t.type,t);i.previousSibling=e.previousSibling?et(e.previousSibling):null,i.nextSibling=e.nextSibling?et(e.nextSibling):null,i.nodesIds=je(e.nodes,et),this.produceEvent(i);break}case"nodesRemoved":{let[e,i]=this.ne(t.type,t);i.nodesIds=je(e.nodes,et),this.produceEvent(i);break}case"shadowRootAttached":{let[e,i]=this.ne(t.type,t);i.shadowRoot=ri(e.shadowRoot),this.produceEvent(i);break}case"cssRuleInserted":{let[e,i]=this.ne(t.type,t);i.index=e.index,i.rule=e.rule,this.produceEvent(i);break}case"cssRuleDeleted":{let[e,i]=this.ne(t.type,t);i.index=e.index,this.produceEvent(i);break}case"cssRuleUpdated":{let[e,i]=this.ne(t.type,t);i.rule=e.rule,i.index=e.index,this.produceEvent(i);break}case"adoptedStyleSheetRegistered":{let[e,i]=this.ne(t.type,t);i.sheetId=e.sheetId,i.cssRules=e.cssRules,this.produceEvent(i);break}case"adoptedStyleSheetsSet":{let[e,i]=this.ne(t.type,t);i.sheetsIds=e.sheetsIds,this.produceEvent(i);break}case"adoptedStyleSheetRuleInserted":{let[e,i]=this.ne(t.type,t);i.sheetId=e.sheetId,i.rule=e.rule,i.index=e.index,this.produceEvent(i);break}case"adoptedStyleSheetRuleDeleted":{let[e,i]=this.ne(t.type,t);i.sheetId=e.sheetId,i.index=e.index,this.produceEvent(i);break}case"adoptedStyleSheetRuleUpdated":{let[e,i]=this.ne(t.type,t);i.sheetId=e.sheetId,i.rule=e.rule,i.index=e.index,this.produceEvent(i);break}}}vo(t){return this.So&&!G.getProperty(t,ii)}iE(t){switch(t.type){case"nodesAdded":case"nodesMoved":case"nodesRemoved":case"shadowRootAttached":return this.vo(t.target)||M.isMaskedElement(t.target)||M.isMaskedElementChild(t.target);case"characterDataChanged":{let e=t.target.parentElement;return e!==null&&(this.vo(e)||M.isMaskedElement(e)||M.isMaskedElementChild(e))}case"attributeChanged":return this.vo(t.target)||M.isMaskedElementChild(t.target)||M.isMaskedAttribute(t.target,t.attribute);case"cssRuleInserted":case"cssRuleDeleted":case"cssRuleUpdated":return this.vo(t.target)||M.isMaskedElementChild(t.target);default:return!1}}}return s})(),Ei=(()=>{let s;return function(r){function t(e){return e.type==="DomEvent"}r.isDOMEvent=t}(s||(s={})),s})(),Ls=(()=>{class s{constructor(){this.re=[]}start(){}stop(){this.re.length=0,this.re=[]}pushEvent(t){if(s.pendingEvents++,this.isListening(t)){let e=this.re;csSetTimeout(()=>{let n=qe("Processor:processEvent",a=>this.processEvent(a))(t);n!=null&&csArray.prototype.forEach.call(e,a=>a(n)),s.pendingEvents--})}else csSetTimeout(()=>{csArray.prototype.forEach.call(this.re,e=>e(t))})}subscribe(t){return csArray.prototype.push.call(this.re,t),()=>{this.re=csArray.prototype.filter.call(this.re,e=>e!==t)}}emitEvent(t){zt(()=>csArray.prototype.forEach.call(this.re,e=>e(t)))}}return s.pendingEvents=0,s})(),ft=(()=>{let s;return function(r){r.ELLIPSIS="\u2026";function t(n){return csString.prototype.replace.call(n,/[.*+?^${}()|[\]\\]/g,"\\$&")}function e(n,a,c){if("replaceAll"in csString.prototype)return csString.prototype.replaceAll.call(n,a,c);let l=new csRegExp(t(a),"g");return csString.prototype.replace.call(n,l,c)}r.stringReplaceAll=e;function i(n,a,c=""){return n.length<=a?n:csString.prototype.slice.call(n,0,a-c.length)+c}r.truncate=i}(s||(s={})),s})(),xo=(()=>{class s{static async toStaticResourceEvent(t,e,i){let n=await s.rE(t);if(!n)return null;let a=await s._d(n),c=Bt(t)?void 0:t,l={type:"StaticResourceManagerEvent",timestamp:i,resourceId:e,resource:{hash:a,data:n}};return c&&(l.originalResourceName=c),l}static async toCSSStaticResourceEvent(t,e,i,n){let a=await s.nE(t,n),c=He(t),l=a.get(c);if(!l)return null;let d={type:"StaticResourceManagerEvent",timestamp:i,resourceId:e,resource:{hash:l.hash,data:l.data}};return a.delete(c),a.size&&(d.nestedResources=[],a.forEach(g=>{g&&csArray.prototype.push.call(d.nestedResources,{hash:g.hash,data:g.data})})),d}static async _d(t){let e=await t.arrayBuffer(),i=await crypto.subtle.digest(this.xr,e);return Ki(i)}static async rE(t){let e;if(!Bt(t))e=await(await window.fetch(t)).blob();else{let i=oo(t);if(!i)return null;e=i}return e}static async nE(t,e){let i=new Map,n=He(t),c=[{resourceRawPath:t,resourceAbsolutePath:n}];for(;c.length>0;){let l=csArray.prototype.pop.call(c);if(!e&&l.resourceAbsolutePath!==null&&!Bt(l.resourceAbsolutePath)){i.set(l.resourceAbsolutePath,null);continue}if(i.get(l.resourceAbsolutePath)===void 0)try{if(l.resourceRawPath===null||csString.prototype.indexOf.call(l.resourceRawPath,".css")>0){if(!l.data){let E=await fetch(l.resourceAbsolutePath);l.data=await E.text()}l.nestedResources||(l.nestedResources=si(l.data));let u=!1,y=!1;for(let E of l.nestedResources){let v=Bt(E)?E:l.resourceAbsolutePath?Fu(E,l.resourceAbsolutePath):He(E),A=i.get(v);if(A!==void 0){if(A!==null){let R=s.oE(A,E);l.data=ft.stringReplaceAll(l.data,E,R)}continue}xe(c,R=>R.resourceAbsolutePath===v)!==void 0||(u=!0,y||(csArray.prototype.push.call(c,l),y=!0),csArray.prototype.push.call(c,{resourceRawPath:E,resourceAbsolutePath:v}))}if(!u){let E=await s.aE(l.data);i.set(l.resourceAbsolutePath,{hash:E.hash,data:E.data})}}else{let u;if(!Bt(l.resourceAbsolutePath))u=await(await fetch(l.resourceAbsolutePath)).blob();else{let E=oo(l.resourceAbsolutePath);if(!E){i.set(l.resourceAbsolutePath,null);continue}u=E}let y=await s._d(u);i.set(l.resourceAbsolutePath,{hash:y,data:u})}}catch{i.set(l.resourceAbsolutePath,null)}}return i}static oE(t,e){let i=`cs://resources/${t.hash}`;return Bt(e)||(i+=`?${s.jc}=${e}`),i}static async aE(t){let e=new Blob([t],{type:"text/css"}),i=await e.arrayBuffer(),n=await crypto.subtle.digest(s.xr,i);return{data:e,hash:Ki(n)}}}return s.xr="SHA-256",s.jc="original-resource-name",s})(),Qr=(()=>{class s extends Ls{constructor(){super(),this._o="cssrm://",this.oe=0,this.fs=!1}isListening(t){return!s.isSupported()||!Ei.isDOMEvent(t)?!1:t.domEvent==="initialDOM"||t.domEvent==="nodesAdded"||t.domEvent==="attributeChanged"||t.domEvent==="characterDataChanged"}processEvent(t){switch(t.domEvent){case"initialDOM":case"nodesAdded":this.cE(t);break;case"attributeChanged":this.lE(t);break;case"characterDataChanged":this.hE(t);break}return t}disableOnlineAssets(){this.fs=!1}enableOnlineAssets(){this.fs=!0}isOnlineAssetsActivated(){return this.fs}cE(t){let e=t.domEvent==="initialDOM"?[t.initialDOM]:t.nodes;for(let i of e)G.traverse(i,(n,a)=>{if(n.nodeType===3&&a){this.uE(n,a.localName);return}if(!As.isElement(n))return;let c=xe(n.attributes,l=>l.name==="style");if(c&&(c.value=this.wo(c.value)),this.dE(n)||this.pE(n,a)){let l=xe(n.attributes,g=>g.name==="src");l&&l.value&&(l.value=this.wd(l.value));let d=xe(n.attributes,g=>g.name==="srcset");if(d){d.value=this.bd(d.value);return}}if(this.fE(n)&&this.fs){let l=xe(n.attributes,d=>d.name==="href");if(!l||!l.value)return;this.oe++,this.ji(He(l.value),this.oe,!0),this.gE(n,l,this.oe)}})}gE(t,e,i){csArray.prototype.push.call(t.attributes,{name:"data-cs-original-href",namespaceURI:"",value:e.value}),e.value=this._o+i}uE(t,e){if(!t||e!=="style")return;let i=this.wo(t.data);i!==null&&(t.data=i)}hE(t){if(t.parentLocalName!=="style"||!t.newValue)return;let e=this.wo(t.newValue);e!==null&&(t.newValue=e)}lE(t){if(!t.newValue||t.newValue===t.oldValue)return;let e=t.attribute==="src",i=t.attribute==="srcset";if(t.attribute==="style"){t.newValue=this.wo(t.newValue);return}if(!e&&!i)return;let a=t.localName==="img",c=t.localName==="source"&&t.parentLocalName&&t.parentLocalName==="picture";!a&&!c||(e&&(t.newValue=this.wd(t.newValue)),i&&(t.newValue=this.bd(t.newValue)))}wd(t){return Bt(t)||this.fs?(this.oe++,this.ji(t,this.oe,!1,N.now()),this._o+this.oe):t}bd(t){if(!this.fs)return t;let e=t,i=En(t),n=N.now();for(let a of i)this.oe++,this.ji(He(a),this.oe,!1,n),e=csString.prototype.replace.call(e,a,this._o+this.oe);return e}wo(t){let e=si(t),i=t,n=N.now();for(let a of e){let c=Bt(a);if(!(c||this.fs)||this.mE(a))continue;this.oe++,i=csString.prototype.replace.call(i,a,this._o+this.oe);let l=zd(a);c?this.ji(a,this.oe,!1,n):this.fs&&(l?this.ji(a,this.oe,!0,n):this.ji(He(a),this.oe,!1,n))}return i}ji(t,e,i,n=N.now()){let a=i?xo.toCSSStaticResourceEvent:xo.toStaticResourceEvent,c=new Sn(async l=>{try{let d=await a(t,e,n,this.fs);l(d||{type:"warning",message:`Failed to process static resource: ${t}`})}catch(d){l({type:"warning",message:d})}});this.emitEvent(c)}dE(t){return t.localName==="img"}pE(t,e){return t.localName==="source"&&!!e&&e.localName==="picture"}fE(t){return t.localName==="link"&&csArray.prototype.some.call(t.attributes,e=>e.name==="rel"&&e.value==="stylesheet")}static isSupported(){return Fa()&&pn()&&!!csArray.from}mE(t){return csString.prototype.replace.call(t,/['"]+/g,"").length===0}}return de([Dt("StaticResourceManagerProcessor.processEvent")],s.prototype,"processEvent",null),s})(),Ft=(()=>{let s;return function(r){r.Visible="visible",r.Hidden="hidden",r.Blur="blur",r.PagehideVisible="pagehideVisible",r.PagehideHidden="pagehideHidden",r.ExitPageByNavigate="exitPageByNavigate"}(s||(s={})),s})(),oc=(()=>{class s{constructor(){this.N=!1,this.ks=t=>{try{switch(t.type){case"visibilitychange":return document.visibilityState==="hidden"?this.Jt(Ft.Hidden):this.Jt(Ft.Visible);case"pagehide":return document.visibilityState==="hidden"?this.Jt(Ft.PagehideHidden):this.Jt(Ft.PagehideVisible);case"blur":return this.Jt(Ft.Blur);case"navigate":return this.yE(t)?this.Jt(Ft.ExitPageByNavigate):void 0;default:return}}catch{}}}start(){this.N||(this.N=!0,this.Hc(),this.EE(),this.SE(),lo()&&this.vE())}stop(){this.N&&(this.N=!1,this.Bc(),this._E(),this.wE(),lo()&&this.bE())}onEvent(t){this.Jt=t}vE(){window.navigation.addEventListener("navigate",this.ks)}bE(){window.navigation.removeEventListener("navigate",this.ks)}Hc(){document.addEventListener("visibilitychange",this.ks)}Bc(){document.removeEventListener("visibilitychange",this.ks)}EE(){window.addEventListener("pagehide",this.ks)}_E(){window.removeEventListener("pagehide",this.ks)}SE(){window.addEventListener("blur",this.ks)}wE(){window.removeEventListener("blur",this.ks)}yE(t){return t instanceof NavigateEvent?!t.downloadRequest&&!t.formData:!1}}return s})(),Ot=(()=>{let s;return function(r){r[r.Active=0]="Active",r[r.Paused=1]="Paused",r[r.Stopped=2]="Stopped"}(s||(s={})),s})(),Rp=(()=>{class s{constructor(t,e,i=[]){this.Hi=t,this.Fc=e,this.AE=i,this.bo=null,this._t=Ot.Active,this.Q=[]}reset(){this.bo=null,this.Q=[],this._t=Ot.Active}disconnect(){this._t=Ot.Stopped}TE(){this.Fc(Ot.Paused),this._t=Ot.Paused,csSetTimeout(()=>{this._t===Ot.Paused&&this.$c()},s.STOP_TIMEOUT)}RE(){this.Fc(Ot.Active),this._t=Ot.Active,J(this.Q,this.Hi),this.Q=[]}$c(){this.Q=[],this.Fc(Ot.Stopped),this._t=Ot.Stopped}pushEvent(t,e){if(e.isUserEvent&&(this.bo=t.date,this._t!==Ot.Active)){this.RE(),this.Hi(t);return}if(this.CE(t)){this.Hi(t);return}switch(this._t){case Ot.Active:if(this.IE(t,e)){this.TE(),csArray.prototype.push.call(this.Q,t);return}this.Hi(t);break;case Ot.Paused:csArray.prototype.push.call(this.Q,t);break;case Ot.Stopped:break}}IE(t,e){return!e.isUserEvent&&this.bo!==null&&t.date-this.bo>s.INACTIVITY_TIMEOUT}CE(t){return csArray.prototype.indexOf.call(this.AE,t.type)>-1}}return s.INACTIVITY_TIMEOUT=5e3,s.STOP_TIMEOUT=5e3,s})(),Cp=2e3,Ip=(()=>{class s extends It{constructor(t,e,i,n,a,c,l,d,g,u,y,E,v,A,k=[],R,b,x,w,D){super(),this.h=t,this.j=e,this.PE=i,this.xe=n,this.X=a,this.w=c,this.ae=l,this.ut=d,this.Ie=g,this.tt=u,this.V=y,this.Ct=E,this.yt=v,this.Pe=A,this.Oe=k,this.Ad=R,this.xt=b,this.Vr=x,this.Ge=w,this.We=D,this.Ds=0,this.Ls=new Qa,this.Bi={allowFromQuotaService:!0,allowFromSerialization:!0},this.Td=yi(()=>{this.j.eventsCount()>0&&this.Rd()},Cp),this.gs=j=>this.processBrowserEvent(j),this.Ur=j=>this.It(j),this.Cd=0,this.Ao=0,this.Ve=new oc,this.zc=!1,this.Id=50*1024,this.fi=!1,this.jr=!1,this.gi=[],this.To=new Rp(j=>this.G(j),j=>{switch(j){case Ot.Active:this.OE();break;case Ot.Stopped:this.NE();break}},[L.RESOURCE_HASHES,L.TEXT_VISIBILITY]),this.Pd=j=>{this.Ct.removeBatchInProgress(`${j.params.sn}.${j.params.pn}.${j.params.ri}`)}}init(){this.qc(),this.V.onLoad(this.Pd),this.V.onError(this.Pd)}OE(){csArray.prototype.forEach.call(this.Ad,t=>t.start())}NE(){csArray.prototype.forEach.call(this.Ad,t=>t.stopForInactivity())}qc(){var t,e,i;this.Pe.onEvent(this.gs,this.Ur),(t=this.tt)===null||t===void 0||t.onInputNodeToEncrypt(this.Ur),(e=this.tt)===null||e===void 0||e.onApiErrorToEncrypt(n=>{this.Od(n)}),(i=this.tt)===null||i===void 0||i.onUserIdentifierToEncrypt(this.gs),this.Ve.onEvent(n=>{if(csSetTimeout(()=>this.mi("page-state",n)),n!==Ft.Visible){if(n===Ft.Blur)return this.Nd();if(!this.zc)return this.zc=!0,csSetTimeout(()=>{this.zc=!1}),n===Ft.Hidden?this.Nd():this.ME()}})}isRecording(){return this.w.hasValidSession()&&this.isStarted}Nd(){if(!this.canSendEvents())return;this.Pe.flush(),this.Ct.saveBatchesInProgress(),J(this.Oe,a=>{var c,l;return J((l=(c=a.getPendingEvents)===null||c===void 0?void 0:c.call(a))!==null&&l!==void 0?l:[],d=>this.j.addEvent(d))});let t=this.j.getEvents();if(t.length===0)return;this.mi("pending-events",this.Pe.pendingEvents);let e=this.V.getQueryParams();e.rst=this.getRecordingStartTimestamp(),e.let=this.getRecordingLastEventTimestamp();let i=this.xe.getCurrentIndex();e.ri=i.toString(),this.yt.removeQueryParams(),this.yt.setQueryParams(e),this.Ao=t[t.length-1].date;let n=this.j.stringifyEvents();if(n.length>this.Id){let a=this.Md();if(a.length>0){let c=Is(a);this.yt.send(c)||this.Ct.save({key:`${e.sn}.${e.pn}.${e.ri}.last`,metadata:{...e,datatype:"json"},events:c}),this.xe.increment()}if(this.j.eventsCount()>0){e.ri=this.xe.getCurrentIndex().toString();let c=this.j.stringifyEvents();this.Ct.save({key:`${e.sn}.${e.pn}.${e.ri}.last`,metadata:{...e,datatype:"json"},events:c}),this.xe.increment()}}else this.yt.send(n)||this.Ct.save({key:`${e.sn}.${e.pn}.${e.ri}.last`,metadata:{...e,datatype:"json"},events:n}),this.xe.increment();this.yt.removeQueryParams(),this.j.clearEvents()}ME(){if(!this.canSendEvents())return;this.Pe.flush();let t=this.V.getQueryParams();this.Ct.saveBatchesInProgress(),t.rst=this.getRecordingStartTimestamp(),delete t.ri,t.hlm="true",this.yt.removeQueryParams(),J(this.Oe,n=>{var a,c;return J((c=(a=n.getPendingEvents)===null||a===void 0?void 0:a.call(n))!==null&&c!==void 0?c:[],l=>this.j.addEvent(l))});let e=this.j.getEvents();if(e.length===0){delete t.let,delete t.rst,this.yt.setQueryParams(t),this.yt.send(),this.yt.removeQueryParams();return}this.mi("pending-events",this.Pe.pendingEvents),this.Ao=e[e.length-1].date,t.let=this.getRecordingLastEventTimestamp(),this.yt.setQueryParams(t);let i=this.j.stringifyEvents();if(i.length>this.Id){let n=this.Md();if(n.length>0){let a=Is(n);this.yt.send(a)||this.Ct.save({key:`${t.sn}.${t.pn}.last`,metadata:{...t,datatype:"json"},events:a})}else delete t.let,delete t.rst,delete t.ri,this.yt.removeQueryParams(),this.yt.setQueryParams(t),this.yt.send(),this.yt.removeQueryParams();if(this.j.eventsCount()>0){t.rst=this.getRecordingStartTimestamp(),t.let=this.getRecordingLastEventTimestamp();let a=this.xe.getCurrentIndex();t.ri=a.toString();let c=this.j.stringifyEvents();this.Ct.save({key:`${t.sn}.${t.pn}.${t.ri}.last`,metadata:{...t,datatype:"json"},events:c}),this.xe.increment()}}else this.yt.send(i)||(this.Ct.save({key:`${t.sn}.${t.pn}.${t.ri}.last`,metadata:{...t,datatype:"json"},events:i}),this.xe.increment());this.yt.removeQueryParams(),this.j.clearEvents()}blockSendingEventsFromQuotaService(){this.Bi.allowFromQuotaService=!1}allowSendingEventsFromQuotaService(){this.Bi.allowFromQuotaService=!0}blockSendingEventsFromSerialization(){this.Bi.allowFromSerialization=!1}allowSendingEventsFromSerialization(){this.Bi.allowFromSerialization=!0}canSendEvents(){return this.Bi.allowFromQuotaService&&this.Bi.allowFromSerialization}onIframeJavascriptError(t){var e;if(this.ae&&this.Ge){(e=this.ae)===null||e===void 0||e.anonymize(t);let i=this.Ge.translate({message:t.message,colno:t.colno,lineno:t.lineno,filename:t.filename,timestamp:N.now(),type:"JSError"});i&&this.gs(i)}}onIframeCustomError(t){if(this.We){let e=this.We.translate({...t,timestamp:N.now(),type:"CustomError"});e&&this.gs(e)}}onIframeDetailedApiError(t){this.kd(t)}onIframeRecordingUserEvent(t){for(let e of t)this.It(e)}onIframeRecordingBrowserEvent(t){if(this.isStarted)for(let e of t)this.processBrowserEvent(e)}processBrowserEvent(t){this.X.isCurrentPageviewValid()&&this.To.pushEvent(t,{isUserEvent:!1})}It(t){this.X.refreshSession(),this.X.isSessionValid()&&this.To.pushEvent(t,{isUserEvent:!0})}G(t){ie.general.nbEvents.increase(),this.j.addEvent(t),this.j.isThresholdReached()?this.pushEvents():this.j.isFull()&&this.Td(),this.Dd(t)}Dd(t){this.h.emitDebugEvents&&this.Ls.emit("recordingEvent",{...t,typeName:L[t.type]})}onStart(){var t;this.mi("tag-version","15.105.5"),this.mi("page-state",document.visibilityState),this.To.reset(),this.Ve.start(),this.initStates(),this.Pe.start(),this.ut&&this.Ie&&this.ut.subscribe(s.Mt,e=>this.kd(e),{detailedEvent:!0}),this.h.emitDebugEvents&&this.Ls.emit("replayRecordingStarted"),csArray.prototype.forEach.call(this.gi,e=>this.Ld(e)),this.gi=[],this.fi&&((t=this.xt)===null||t===void 0||t.enableOnlineAssets(),this.fi=!1)}onStop(){var t;this.Ve.stop(),this.ut&&this.ut.unsubscribe(s.Mt),this.Pe.stop(),this.To.disconnect(),(t=this.xt)===null||t===void 0||t.disableOnlineAssets()}clearStates(){this.Pe.flush(),this.Td.cancel(),this.pushEvents(),this.V.removeQueryParams()}initStates(){this.Cd=N.now(),this.xe.reset(),this.Ds=0,this.V.setQueryParams(this.PE.getRequestParameters())}pushEvents(){J(this.Oe,t=>{var e;return(e=t.flushEvents)===null||e===void 0?void 0:e.call(t)}),this.j.eventsCount()>0&&(this.isStarted?this.Rd():this.j.clearEvents())}Rd(){if(!this.canSendEvents())return;let t=this.j.getEvents();this.Ao=t[t.length-1].date;let e=this.xe.getCurrentIndex();this.V.setQueryParams({ri:e.toString(),rst:this.getRecordingStartTimestamp(),let:this.getRecordingLastEventTimestamp()});let i=this.V.getQueryParams();this.Ct.addBatchInProgress(`${i.sn}.${i.pn}.${e}`,this.V.getQueryParams(),t),this.V.send(t),this.xe.increment(),this.j.clearEvents(),this.xd&&this.xd()}addInitialDom(t){this.j.addEventByTimestamp(t),this.Dd(t)}kd(t){if(this.Vr&&(t.plainCustomRequestHeaders||t.plainCustomResponseHeaders||t.requestBodyAttributes||t.responseBodyAttributes||t.customRequestHeaders||t.customResponseHeaders||t.queryParameters||t.requestBody||t.responseBody)){if(this.Vr.truncate(t),this.tt){this.tt.registerApiErrorToEncrypt(t);return}t.customRequestHeaders="",t.customResponseHeaders="",t.requestBodyAttributes="",t.responseBodyAttributes="",t.queryParameters="",t.requestBody="",t.responseBody=""}this.Od(t)}Od(t){if(this.Ds{var e;return(e=t.releaseResources)===null||e===void 0?void 0:e.call(t)})}mi(t,e){if(!this.h.emitRecordInfoEvents)return;let i={date:N.now(),type:L.RECORDING_INFO_EVENT,args:e==null?[t]:[t,e]};this.j.addEvent(i)}Md(){return this.j.extractEvents(L.API_ERROR,L.JAVASCRIPT_ERROR,L.CUSTOM_ERROR,L.TEXT_VISIBILITY,L.POINTER_DOWN)}}return s.Mt="RecordingService",s.VE=255,s.kE=20,s.xE="etrp",s.LE="etrs",s.Vd="1",U([Dt("addInitialDom")],s.prototype,"addInitialDom",null),s})(),Pp=(()=>{class s extends It{constructor(t,e,i){super(),this.Wt=t,this.yt=e,this.V=i,this.Gc=!1,this.Hr={},this.UE=n=>{if(n.length!==0)for(let a of n){let{metadata:c,events:l}=a;this.jE(c.rt)&&this.V.send(l,c)}},window.addEventListener("focus",()=>{this.recover()})}onStart(){this.Hr={}}onStop(){}recover(){this.Wt.recover(this.UE)}addBatchInProgress(t,e,i){this.Hr[t]={metadata:{...e},events:i}}removeBatchInProgress(t){delete this.Hr[t]}blockSendingLastMessage(){this.Gc=!1}allowSendingLastMessage(){this.Gc=!0}sendLastMessageBeacon(){if(this.Gc){let{ri:t,rst:e,let:i,...n}=this.V.getQueryParams();n.hlm="true",this.yt.setQueryParams(n),this.yt.send()}}jE(t){return!!t&&csString.prototype.indexOf.call(t,I.RECORDING_TEMPORARILY)===-1}saveBatchesInProgress(){csArray.prototype.forEach.call(Object.keys(this.Hr),t=>{let{metadata:e,events:i}=this.Hr[t];this.Wt.save({key:`${e.sn}.${e.pn}.${e.ri}`,metadata:{...e,datatype:"json"},events:csJSON.stringify(i)})})}save(t){this.Wt.save(t)}}return U([P("RecordingRecovery")],s.prototype,"recover",null),s})(),hi=(()=>{class s{constructor(...t){this.jd=t}addProvider(t){csArray.prototype.push.call(this.jd,t)}getRequestParameters(){return csArray.prototype.reduce.call(this.jd,(t,e)=>({...e.getRequestParameters(),...t}),{})}}return s})(),Op=(()=>{class s{constructor(t,e){this.Rt=t,this.I=e,this.xs=[{boundElement:window,type:"hashchange",listener:()=>this.hashChangeListener()},{boundElement:document,type:"visibilitychange",listener:()=>this.visibilityChangeListener()}]}onEvent(t){this.O=t}start(){this.hi(),this.triggerInitialEvents()}stop(){this.pi()}hi(){csArray.prototype.forEach.call(this.xs,t=>gt(t))}pi(){csArray.prototype.forEach.call(this.xs,t=>dt(t))}triggerInitialEvents(){this.hashChangeListener()}hashChangeListener(){let t={type:L.HASH_CHANGE,args:[this.I.anonymizePII(this.Rt.href)],date:N.now()};this.O(t)}visibilityChangeListener(){let t={type:L.VISIBILITY_CHANGE,args:[document.visibilityState],date:N.now()};this.O(t)}}return U([P("hashChange")],s.prototype,"hashChangeListener",null),U([P("visibilityChange")],s.prototype,"visibilityChangeListener",null),s})(),Np=(()=>{class s{constructor(){}onScannedAsset(t){this.Ro=t}scanCssString(t){this.Wc(si(t))}scanElement(t,e){M.getMaskedElementDetails(t).state!==M.MaskedElementState.NotMasked||e&&M.isMaskedAttribute(t,e)||(rn(t)?this.HE(t):Ta(t)?this.BE(t,e):(this.FE(t,e),this.$E(t,e),this.zE(t,e)))}BE(t,e){var i;if((!e||e==="href")&&t.href){let a={assetId:((i=t.sheet)===null||i===void 0?void 0:i.href)||t.href,assetBasePath:window.location.href,assetRawPath:tc(t)};this.Ro({type:"stylesheet",asset:a})}}HE(t){var e;let i=new Set;if(t.textContent)for(let a of si(t.textContent))i.add(a);let n;try{n=(e=t.sheet)===null||e===void 0?void 0:e.cssRules}catch(a){a.name==="SecurityError"||a.name==="InvalidAccessError"||H.error(a.message)}if(n)for(let a=0;athis.Yc(e)),e=>({rawUrl:e,absoluteUrl:He(e)})),e=>{let i={assetId:e.absoluteUrl,assetBasePath:window.location.href,assetRawPath:e.rawUrl};this.Ro({type:"asset",asset:i})})}qE(t){return/^https:\/\/\w+:\w+@/.test(t)}}return s})(),Mp=(()=>{class s{constructor(t=Number.POSITIVE_INFINITY){this.Vs=[],this.Q=[],this.WE=t}next(t){this.Q.length===this.WE&&csArray.prototype.shift.call(this.Q),csArray.prototype.push.call(this.Q,t),this.Q.length===1&&csSetTimeout(()=>this.clear());for(let e of this.Vs)e(t)}subscribe(t){if(xe(this.Vs,i=>t===i))return()=>{this.Vs=csArray.prototype.filter.call(this.Vs,i=>i!==t)};csArray.prototype.push.call(this.Vs,t);for(let i of this.Q)t(i);return()=>{this.Vs=csArray.prototype.filter.call(this.Vs,i=>i!==t)}}clear(){this.Q=[]}hasObservers(){return this.Vs.length>0}}return s})(),ac=(()=>{var s;class r{constructor(e){this.S=e}observe(){this.YE=s.Br.subscribe(e=>this.S(e)),s.Co||(s.Co=!0,s.Fr.observe(),Xt(document,NodeFilter.SHOW_ELEMENT).visitAll(i=>{s.ms.add(i),s.Br.next(i)}))}disconnect(){s.Co&&(this.YE(),s.Br.hasObservers()||(s.Co=!1,s.Fr.disconnect(),s.Br.clear(),s.ms.clear()))}}return s=r,r.ms=rr(),r.Br=new Mp,r.XE=hs(t=>{zt(()=>{for(let e of t)e.type==="childList"&&J(e.addedNodes,i=>{Xt(i,NodeFilter.SHOW_ELEMENT).visitAll(a=>{s.ms.has(a)||(s.ms.add(a),s.Br.next(a))})})})},"ElementObserver.findAllElements"),r.Co=!1,r.Fr=new Xe(s.XE),ct([P()],r.prototype,"observe",null),ct([P()],r.prototype,"disconnect",null),r})(),kp=1,Dp=0,cc=(()=>{class s{constructor(t,e=kp,i=Dp){this.KE=t,this.JE=e,this.QE=i,this.Ue=new Ms,this.Le=!1,this.Xc=0,this.Hd=()=>{for(this.Xc=0;this.Ue.length;){if(this.Xc>=this.JE){csSetTimeout(this.Hd,this.QE);return}let n=N.elapsed(),a=this.Ue.pop();if(!a)break;this.runTask(a);let c=N.elapsed()-n;this.Xc+=c}this.Le=!1}}schedule(t,e=!1){if(!this.KE||e){t();return}ie.general.pendingTasks.increase(),this.Ue.push(t),this.ZE()}ZE(){this.Le||(this.Le=!0,csSetTimeout(()=>{this.Hd()}))}runTask(t){ie.general.pendingTasks.decrease(),t()}runPendingTasks(){this.Ue.forEach(t=>{this.runTask(t)}),this.Ue.clear()}clearQueue(){ie.general.pendingTasks.clear(),ie.mutations.pendingMutations.clear(),this.Ue.clear()}isEmpty(){return this.Ue.length===0}}return U([P("TaskScheduler"),Dt("runTask")],s.prototype,"runTask",null),U([Dt("runPendingTasks")],s.prototype,"runPendingTasks",null),s})(),Lp=(()=>{class s{constructor(){this.B=!1,this.Bd=new vn(t=>t.type==="cssRuleInserted"&&this.tS(t)),this.eS=nr(t=>{this.B&&t.length>0&&this.C.schedule(()=>J(t,e=>this.$r.scanElement(e)))}),this.sS=({type:t,asset:e})=>{var i,n,a;t==="stylesheet"&&((i=this.iS)===null||i===void 0||i.call(this,e)),(n=this.rS)===null||n===void 0||n.call(this,e);let c={date:N.now(),type:L.STATIC_RESOURCE_URL,args:[e.assetId]};(a=this.O)===null||a===void 0||a.call(this,c)},this.C=new cc(!0,30,0),this.zr=new ac(t=>this.nS(t)),this.P=new Xe(t=>this.Io(t)),this.$r=new Np,this.$r.onScannedAsset(this.sS)}onEvent(t){this.O=t}onAsset(t){this.rS=t}onStyleSheetFound(t){this.iS=t}start(){this.B||(this.B=!0,this.Bd.observe(),this.zr.observe(),this.P.observe())}stop(){this.B&&(this.Bd.disconnect(),this.zr.disconnect(),this.P.disconnect(),this.B=!1)}tS(t){!t.rule||!this.B||this.$r.scanCssString(t.rule)}nS(t){this.B&&M.getMaskedElementDetails(t).state===M.MaskedElementState.NotMasked&&this.eS.push(t)}Io(t){csSetTimeout(()=>{for(let e of t)switch(e.type){case"attributes":this.$r.scanElement(e.target,e.attributeName);break;case"characterData":this.oS(e.target);break;case"childList":}})}oS(t){Rs(t)&&csNodeparentNode.apply(t)&&rn(csNodeparentNode.apply(t))&&this.$r.scanCssString(t.data)}}return s})(),lc=(()=>{class s{constructor(t){this.Fd=[],this.$d=[],this.qt={},this.Gt=t}setQueryParams(t){csArray.prototype.forEach.call(Object.keys(t),e=>{this.qt[e]=t[e]})}removeQueryParams(t){t?csArray.prototype.forEach.call(t,e=>{delete this.qt[e]}):this.qt={}}onBeaconSuccess(t){csArray.prototype.push.call(this.Fd,t)}onBeaconFailure(t){csArray.prototype.push.call(this.$d,t)}send(t){let e=li.toQuery({...this.qt,ct:sr.UNCOMPRESSED}),i=this.aS(e,t);return i?csArray.prototype.forEach.call(this.Fd,n=>n()):csArray.prototype.forEach.call(this.$d,n=>n(this.qt)),i}aS(t,e){try{if(typeof csNavigatorsendBeacon!="function")return!1;let i=csNavigatorsendBeacon(`${this.Gt}?${t}`,e||"");if(i)return i}catch{}return typeof navigator.sendBeacon!="function"?!1:navigator.sendBeacon(`${this.Gt}?${t}`,e||"")}}return s})(),xp=(()=>{class s{constructor(t){this.Po={},this.ve=new yn(t)}save({key:t,metadata:e,events:i}){this.ve.isThresholdReached()||(this.ve.addString(t),typeof i=="string"?this.ve.addString(i):this.ve.addArrayBuffer(i),!this.ve.isThresholdReached()&&(this.Po[t]={metadata:e,events:i}))}recover(t){let e=[];csArray.prototype.forEach.call(this.cS(),i=>{let n=this.Po[i];n!==void 0&&(delete n.metadata.datatype,csArray.prototype.push.call(e,n),this.lS(i))}),e.length!==0&&(t(e),this.ve.reset())}cS(){return Object.keys(this.Po)}lS(t){delete this.Po[t]}}return s})(),Ce=(()=>{let s;return function(r){r[r.NOT_STARTED=0]="NOT_STARTED",r[r.OPEN_IN_PROGRESS=1]="OPEN_IN_PROGRESS",r[r.OPEN_FAILED=2]="OPEN_FAILED",r[r.READY=3]="READY"}(s||(s={})),s})(),Vp=(()=>{class s{constructor(t,e,i){this.Fi=t,this.hS=i,this.yi=Ce.NOT_STARTED,this.Oo=[],this.Kc=0,this.uS=self.origin,this._e=typeof window=="object"?"":"worker-",this.ve=new yn(e),this.Jc()}async Jc(){await this.zd(),this.yi===Ce.READY?this.dS():this.hS(this.Oo)}dS(){csArray.prototype.forEach.call(this.Oo,t=>{this.save(t)}),this.Oo=[]}async save(t){try{if(this.yi===Ce.OPEN_IN_PROGRESS){csArray.prototype.push.call(this.Oo,t);return}if(this.yi!==Ce.READY||this.ve.isThresholdReached())return;let{key:e,metadata:i,events:n}=t;if(this.ve.addString(e),typeof n=="string"?this.ve.addString(n):this.ve.addArrayBuffer(n),this.ve.isThresholdReached())return;await this.Xt.put(`${this.uS}/${e}`,new Response(n,{headers:i}))}catch{}}async recover(t){!this.Xt&&(await this.zd(),this.yi!==Ce.READY)||this.pS(t)}async zd(){try{this.yi=Ce.OPEN_IN_PROGRESS,this.Xt=await self.caches.open(`${this._e}${this.Fi}`),this.yi=Ce.READY}catch{this.yi=Ce.OPEN_FAILED}}async pS(t){try{if(this.Kc++,this.Kc>1)return;let e=await this.Xt.keys();if(e.length===0)return;let i=await this.Xt.matchAll(),n=csArray.prototype.map.call(i,c=>{let l={};c.headers.forEach((g,u)=>{l[u]=g}),delete l["content-type"];let d=l.datatype;return delete l.datatype,d==="json"||d==="base64"?c.text().then(g=>({metadata:l,events:g})):c.arrayBuffer().then(g=>({metadata:l,events:g}))}),a=await Promise.all(n);await Promise.all(csArray.prototype.map.call(e,c=>this.Xt.delete(c))),t(a),this.ve.reset()}catch{}finally{this.Kc--}}}return s})(),Up=(()=>{class s{constructor(t){try{this.fS(t)}catch{this.Qc()}}fS(t){self.caches?this.gS(t):this.Qc()}save(t){this.Mo.save(t)}recover(t){this.Mo.recover(t)}gS(t){this.Mo=new Vp(t,s.qd,e=>{this.Qc(e)})}Qc(t){this.Mo=new xp(s.qd),t&&csArray.prototype.forEach.call(t,e=>{this.Mo.save(e)})}}return s.qd=1024*1024*16,s})(),Ir=(()=>{let s;return function(r){r.REQUEST_START="requestStart",r.DOM_INTERACTIVE="domInteractive",r.TIME_ORIGIN="timeOrigin"}(s||(s={})),s})();var jp=(()=>{class s extends Ls{isListening(t){return Ei.isDOMEvent(t)&&(t.domEvent==="initialDOM"||t.domEvent==="nodesAdded")}processEvent(t){let e=0,i=t.domEvent==="initialDOM"?[t.initialDOM]:t.nodes;for(let n of i){if(n instanceof As){let c=M.getMaskedAttributeDetails(n);n.attributes=this.Do(n,c)}if(M.getMaskedElementDetails(n).state===M.MaskedElementState.Child){if(t.domEvent==="initialDOM")return null;t.nodes=csArray.prototype.filter.call(t.nodes,c=>c!==n);continue}G.traverse(n,c=>{if(c instanceof As){let l=M.getMaskedAttributeDetails(c);c.attributes=this.Do(c,l);let d=M.getMaskedElementDetails(c);d.state===M.MaskedElementState.Parent&&(this.tl(c,d),e++)}})}return e>0&&nt.counters.sensitiveElements.count("masked-elements",e),t}Do(t,e){return e.attributes.length===0?t.attributes:csArray.prototype.filter.call(t.attributes,i=>csArray.prototype.indexOf.call(e.attributes,i.name)===-1)}tl(t,e){let i=`width: ${e.width}px !important; height: ${e.height}px !important;`;t.children=[],t.shadowRoot=void 0,csArray.prototype.push.call(t.attributes,{name:"style",value:i,namespaceURI:""}),As.getAttribute(t,"data-cs-mask")||csArray.prototype.push.call(t.attributes,{name:"data-cs-mask",value:"",namespaceURI:""})}}return de([Dt("MaskedElementProcessor.processEvent")],s.prototype,"processEvent",null),s})(),he=(()=>{let s;return function(r){r.ANONYMIZED_TEXT_STATUS_PROP="anonymizationStatus",r.WHITELISTED_STATUS="whitelisted";function t(n){return G.getProperty(n,r.ANONYMIZED_TEXT_STATUS_PROP)===r.WHITELISTED_STATUS}r.isWhitelistedElement=t;function e(n){G.setProperty(n,r.ANONYMIZED_TEXT_STATUS_PROP,r.WHITELISTED_STATUS)}r.whitelistElement=e;function i(n){G.setProperty(n,r.ANONYMIZED_TEXT_STATUS_PROP,void 0)}r.removeWhitelistElement=i}(s||(s={})),s})(),Hp=/[\u4E00-\u9FFF]|[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]/g,Bp="\uFF41",Fp=/[^a\s]/g,$p="a";function Pr(s){let r=csString.prototype.replace.call(s,Hp,Bp);return csString.prototype.replace.call(r,Fp,$p)}var zp=["id","class","style","srcset","sizes","rel","type","width","height","media","align","dir","bgcolor","color","border","colspan","rowspan","cols","rows","size","start","slot","data-cs-override-id"],hc=s=>{let r=new Set(zp);return csArray.prototype.forEach.call(s,t=>{r.add(t)}),r},qp=["svg","slot"],Gp=(s,r,t)=>t==="radio"&&s==="input"&&r==="name"||csArray.prototype.indexOf.call(qp,s)>-1,uc={href:new Set(["a"]),src:new Set(["iframe"])},Wp=s=>uc.hasOwnProperty(s),Yp=(s,r,t)=>{var e;return((e=uc[r])===null||e===void 0?void 0:e.has(s))&&!Bt(t)},Xp=(s,r,t)=>(t==="submit"||t==="button")&&s==="input"&&r==="value",Kp=(()=>{class s{constructor(t,e,i,n=null){this.Ye=t,this.bS=e,this.I=i,this.Lo=n,this.AS=hc(this.bS)}sanitize(t,e){return G.traverse(t,(i,n)=>{if(i.anonymized=this.Ye,i.nodeType===3){let{anonymizedValue:a,withAnonymization:c}=this.getAnonymizedValue(i.data,n?n==null?void 0:n.localName:e==null?void 0:e.targetLocalName,n?G.getProperties(n):e==null?void 0:e.targetProps);i.anonymized=c,i.data=a;return}if(As.isElement(i))return this.TS(i);if(i.nodeType===4){i.data=this.Ye?Pr(i.data):this.I.checkAndAnonymizePII(i.data,this.Lo);return}}),t}setAnonymization(t){this.Ye=t}getAnonymizedValue(t,e,i){if(e==="style")return{anonymizedValue:t,withAnonymization:!1};let n=(i==null?void 0:i[he.ANONYMIZED_TEXT_STATUS_PROP])===he.WHITELISTED_STATUS;return this.Ye&&!n?{anonymizedValue:Pr(t),withAnonymization:!0}:{anonymizedValue:this.I.checkAndAnonymizePII(t,this.Lo),withAnonymization:!1}}TS(t){if(G.getProperty(t,"SVG"))return;let e=xe(t.attributes,n=>n.name==="type"),i=e==null?void 0:e.value;t.attributes=csArray.prototype.map.call(t.attributes,n=>(n.anonymized=this.Ye,n.value=this.getAnonymizedAttributeValue(t.localName,n.name,n.value,i),n))}getAnonymizedAttributeValue(t,e,i,n){return this.RS(t,e,n)?i:Wp(e)?Yp(t,e,i)?this.I.anonymizePII(i):i:this.Ye&&Xp(t,e,n)?Pr(i):this.Ye?"":this.I.checkAndAnonymizePII(i,null)}RS(t,e,i){return Gp(t,e,i)||this.AS.has(e)}}return s})();var Jp=()=>(s,r,t)=>{t.value=Zp(t.value)},Qp=csQueueMicrotask||csSetTimeout;function Zp(s){let r=csSymbol("oncePerTickSymbol"),t=null,e={},i=function(){var n;let a=(n=this)!==null&&n!==void 0?n:e;if(t=arguments,a[r])return;a[r]=!0,Qp(()=>{a[r]=!1,s.apply(a,t)})};return i.oncePerTickSymbol=r,i}Jp.isScheduled=(s,r)=>{let t=r.oncePerTickSymbol;return s[t]};var tf=(()=>{let s;return function(r){r.ENCRYPTED_NODE_PROP="toEncrypt";function t(n){return G.getProperty(n,r.ENCRYPTED_NODE_PROP)===!0}r.shouldEncrypt=t;function e(n){G.setProperty(n,r.ENCRYPTED_NODE_PROP,!0)}r.markEncryptedNode=e;function i(n){G.setProperty(n,r.ENCRYPTED_NODE_PROP,void 0)}r.unmarkEncryptedNode=i}(s||(s={})),s})(),Me=(()=>{let s;return function(r){r.EDITABLE_NODE_PROP="editableNode";function t(n){return G.getProperty(n,r.EDITABLE_NODE_PROP)===!0}r.isEditableNode=t;function e(n){G.setProperty(n,r.EDITABLE_NODE_PROP,!0)}r.markEditableNode=e;function i(n){G.setProperty(n,r.EDITABLE_NODE_PROP,void 0)}r.unmarkEditableNode=i}(s||(s={})),s})();var Vo=(()=>{let s;return function(r){function t(e){return e.type==="TextVisibility"}r.isTextVisibilityEvent=t}(s||(s={})),s})(),ef=(()=>{class s extends Ls{constructor(t,e,i,n=null){super(),this.I=i,this.Lo=n,this.jo=new Kp(t,e,i,n)}setAnonymization(t){this.jo.setAnonymization(t)}isListening(t){return Vo.isTextVisibilityEvent(t)||Ei.isDOMEvent(t)&&(t.domEvent==="initialDOM"||t.domEvent==="nodesAdded"||t.domEvent==="attributeChanged"||t.domEvent==="characterDataChanged")}processEvent(t){if(Vo.isTextVisibilityEvent(t))return t.text=this.I.checkAndAnonymizePII(t.text,this.Lo),t;switch(t.domEvent){case"initialDOM":case"nodesAdded":this.ol(t);break;case"attributeChanged":this.MS(t);break;case"characterDataChanged":this.kS(t);break}return t}ol(t){let e=t.domEvent==="initialDOM"?[t.initialDOM]:t.nodes,i;t.domEvent==="nodesAdded"&&(i={targetLocalName:t.targetLocalName,targetProps:t.targetProps});for(let n of e)this.jo.sanitize(n,i)}MS(t){if(!t.isSvg&&t.newValue){if(t.localName===null){t.newValue="";return}t.newValue=this.jo.getAnonymizedAttributeValue(t.localName,t.attribute,t.newValue,t.inputType)}}kS(t){t.newValue=this.jo.getAnonymizedValue(t.newValue,t.parentLocalName,t.parentProps).anonymizedValue}}return de([Dt("AnonymizedTextProcessor.processEvent")],s.prototype,"processEvent",null),s})();var sf=(()=>{class s extends Ls{constructor(t){super(),this.K=t}isListening(t){return Ei.isDOMEvent(t)&&t.domEvent==="initialDOM"}processEvent(t){return t.domEvent==="initialDOM"&&(t.initialDOM.baseURI=this.K.anonymizeUrl(t.initialDOM.baseURI)),t}}return de([Dt("UrlAnonymizationProcessor.processEvent")],s.prototype,"processEvent",null),s})(),Or="textarea",rf=(()=>{class s extends Ls{isListening(t){return Ei.isDOMEvent(t)&&(t.domEvent==="initialDOM"||t.domEvent==="nodesAdded"||t.domEvent==="characterDataChanged")}processEvent(t){switch(t.domEvent){case"initialDOM":this.LS(t);break;case"nodesAdded":this.xS(t);break;case"characterDataChanged":this.VS(t);break}return t}LS(t){G.traverse(t.initialDOM,(e,i)=>{(this.Qd(e,i)||this.Zd(e))&&(e.data=this.al(e.data))})}xS(t){for(let e of t.nodes)G.traverse(e,(i,n)=>{(this.US(i,n,t)||this.Zd(i))&&(i.data=this.al(i.data))})}VS(t){var e;(t.parentLocalName===Or||!((e=t.targetProps)===null||e===void 0)&&e.editableNode)&&(t.newValue=this.al(t.newValue))}al(t){return csString.prototype.replace.call(t,/\S/g,"\u2022")}US(t,e,i){return this.jS(t,i)||this.Qd(t,e)}jS(t,e){return t.nodeType===3&&e.targetLocalName===Or}Qd(t,e){return t.nodeType===3&&Z(e)&&e.localName===Or}Zd(t){return t.nodeType===3&&Me.isEditableNode(t)}}return de([Dt("AnonymizedEditableTextProcessor.processEvent")],s.prototype,"processEvent",null),s})(),nf=(()=>{class s{constructor(t){this.S=t,this.Vt={boundElement:window,type:"resize",listener:()=>this.resizeListener()},this.S=t}observe(){gt(this.Vt),this.Tc()}Tc(){this.resizeListener()}disconnect(){dt(this.Vt)}resizeListener(){let t={width:Et.windowWidth(),height:Et.windowHeight()};this.S(t)}}return ct([P("resize")],s.prototype,"resizeListener",null),s})(),Oe=(()=>{let s;return function(r){r.PORTRAIT="Portrait",r.LANDSCAPE="Landscape"}(s||(s={})),s})(),Di=(()=>{let s;return function(r){r.PORTRAIT_PRIMARY="portrait-primary",r.PORTRAIT_SECONDARY="portrait-secondary",r.LANDSCAPE_PRIMARY="landscape-primary",r.LANDSCAPE_SECONDARY="landscape-secondary"}(s||(s={})),s})(),Li=(()=>{let s;return function(r){r[r.PORTRAIT=0]="PORTRAIT",r[r.PORTRAIT_REVERSE=180]="PORTRAIT_REVERSE",r[r.LANDSCAPE=-90]="LANDSCAPE",r[r.LANDSCAPE_REVERSE=90]="LANDSCAPE_REVERSE"}(s||(s={})),s})(),of=(()=>{let s;return function(r){let t=null;r.isScreenOrientationApiSupported=()=>{var c;return t!=null?t:t=!!(!((c=Rt.screen)===null||c===void 0)&&c.orientation)},r.isDeprecatedScreenOrientationApiSupported=()=>"orientation"in Rt;function e(){return Oe.LANDSCAPE}function i(){var c;switch((c=Rt.screen.orientation)===null||c===void 0?void 0:c.type){case Di.PORTRAIT_PRIMARY:case Di.PORTRAIT_SECONDARY:return Oe.PORTRAIT;case Di.LANDSCAPE_PRIMARY:case Di.LANDSCAPE_SECONDARY:return Oe.LANDSCAPE;default:return Oe.PORTRAIT}}function n(){switch(window.orientation){case Li.PORTRAIT:case Li.PORTRAIT_REVERSE:return Oe.PORTRAIT;case Li.LANDSCAPE:case Li.LANDSCAPE_REVERSE:return Oe.LANDSCAPE;default:return Oe.PORTRAIT}}function a(){return r.isScreenOrientationApiSupported()?i():r.isDeprecatedScreenOrientationApiSupported()?n():e()}r.getCurrentOrientation=a}(s||(s={})),s})(),af=(()=>{class s extends ne{constructor(){super(...arguments),this.cl=null,this.ll=null,this.Hs=new nf(t=>{this.produceEvent({...t,type:"viewportResize"}),this.onScreenPotentiallyChanged()})}onScreenPotentiallyChanged(){let t=of.getCurrentOrientation(),{screenWidth:e,screenHeight:i}=this.HS(t);if(e!==this.cl||i!==this.ll){this.cl=e,this.ll=i;let n={type:"screenResize",width:e,height:i};this.produceEvent(n)}}HS(t){let e,i,n=Et.screenWidth(),a=Et.screenHeight();return t===Oe.PORTRAIT?(e=n,i=a):(e=Math.max(n,a),i=Math.min(n,a)),{screenWidth:e,screenHeight:i}}onStart(){this.Hs.observe()}onStop(){this.cl=null,this.ll=null,this.Hs.disconnect()}}return s})();function cf(s){let r=csEventtarget.apply(s);return r&&ot(r)&&csElementshadowRoot.apply(r)&&s.composedPath?s.__csOriginalTarget||s.composedPath()[0]:r}var Os=(()=>{class s{get selectors(){return this.He===""?null:this.He}constructor(t,e={closest:!1}){this.S=t,this.Et=e,this.He="",this.Xr=rr(),this.Io=hs(i=>{if(this.He==="")return;let n=[];for(let a of La(i,c=>c.addedNodes)){if(!(Lh(a)||this.Et.closest&&Rs(a)))continue;let c=this.Et.closest?this.BS(a,this.He):this.findMatchingElements(a,this.He);io(c,n)}n.length&&this.S(n,"added")},"SelectorObserver.processMutations"),this.FS=(i,n)=>{if(this.He===""||n!=="added")return;let a=this.findMatchingElements(i,this.He);a.length&&this.S(a,"added")},this.F=new Xe(this.Io,this.FS)}observe(t){this.He===""?this.F.observe():this.He+=",",this.He+=t;let e=this.findMatchingElements(document,t);for(let i of this.F.shadowRoots){let n=this.findMatchingElements(i,t);io(n,e)}e.length&&(J(e,i=>{this.Xr.add(i)}),this.S(e,"initial"))}processPendingMutations(){this.Io(this.F.takeRecords())}disconnect(){this.F.disconnect(),this.Xr.clear(),this.He=""}BS(t,e){let i=[];if(Rs(t)){if(t.parentElement){let n=Yr(t.parentElement,e);n&&csArray.prototype.push.call(i,n)}return csArray.prototype.filter.call(i,n=>this.Xr.has(n)===!1)}else{if(Ue(t)){let n=Yr(t,e);if(n)return csArray.prototype.push.call(i,n),csArray.prototype.filter.call(i,a=>this.Xr.has(a)===!1)}return this.findMatchingElements(t,e)}}findMatchingElements(t,e){let i=ci(window.csquerySelectorAll[t.nodeType].call(t,e));return ot(t)&&Kt.call(t,e)&&csArray.prototype.push.call(i,t),csArray.prototype.filter.call(i,n=>this.Xr.has(n)===!1)}}return ct([P()],s.prototype,"observe",null),ct([P()],s.prototype,"disconnect",null),ct([Dt("SelectorObserver.findMatchingElements")],s.prototype,"findMatchingElements",null),s})(),lf=(()=>{class s extends ne{constructor(){super(),this.tp=t=>{let e=cf(t);e&&this.ul(e,t.type)},this.ie=new Ds((t,e)=>{switch(e){case"initial":case"added":this.ep(t);break;case"removed":this.sp(t);break}}),this.U=new Os((t,e)=>{(e==="initial"||e==="added")&&this.$S(t)})}static shouldProcessElement(t){return t.tagName==="VIDEO"&<.isConnected(t)&&!M.isMaskedElement(t)&&!M.isMaskedElementChild(t)}static isPlaying(t){return!t.paused&&!t.ended}onStart(){this.ep(document),this.ie.observe(),this.U.observe("video")}onStop(){this.sp(document),this.ie.disconnect(),this.U.disconnect()}ul(t,...e){if(this.isStarted&&s.shouldProcessElement(t))for(let i of e){let n=et(t),a={type:"VideoEvent",videoEventType:i,nodeId:n};i==="seeked"&&(a.newTimePositionInSec=t.currentTime),Kr(()=>this.produceEvent(a))}}$S(t){for(let e of t)this.ul(e,"seeked"),s.isPlaying(e)&&this.ul(e,"play")}ep(t){for(let e of["play","pause","seeked"])gt({type:e,listener:this.tp,boundElement:t})}sp(t){for(let e of["play","pause","seeked"])dt({type:e,listener:this.tp,boundElement:t})}}return s})();function hf(s){return s.nodeName==="SELECT"}function _n(s){return s.nodeName==="INPUT"}function uf(s){return s.nodeName==="TEXTAREA"||_n(s)&&!dc(s)&&!pc(s)}function dc(s){return _n(s)&&s.type==="number"}function pc(s){return _n(s)&&(s.type==="checkbox"||s.type==="radio")}var df=(()=>{class s extends ne{constructor(t){super(),this.tt=t,this.dl=rr(),this.$i=e=>this.inputHandler(e),this.Ei=[],this.zS(),this.qS(),this.U=new Os(e=>{for(let i of e)this.pl(i)&&zt(()=>{this.gl(i,et(i))},"low")}),this.ie=new Ds((e,i)=>{switch(i){case"initial":case"added":gt({type:"change",listener:this.$i,boundElement:e});break;case"removed":dt({type:"change",boundElement:e,listener:this.$i});break}})}onStart(){gt({type:"keyup",boundElement:document,listener:this.$i}),gt({type:"change",boundElement:document,listener:this.$i}),J(this.Ei,t=>t.activate()),this.U.observe(csArray.prototype.join.call(s.GS,",")),this.ie.observe()}onStop(){dt({type:"keyup",boundElement:document,listener:this.$i}),dt({type:"change",boundElement:document,listener:this.$i}),J(this.Ei,t=>t.deactivate()),this.U.disconnect(),this.ie.disconnect(),this.dl.clear()}gl(t,e){var i,n,a;if(this.dl.has(t))return;if(this.dl.add(t),hf(t)){let d={type:"InputEvent",inputType:"select",target:et(t),selectedIndex:t.selectedIndex,timestamp:N.now()};this.produceEvent(d);return}if(pc(t)){let d={type:"InputEvent",inputType:"checkable",target:et(t),checked:t.checked,timestamp:N.now()};this.produceEvent(d);return}let c=uf(t),l=dc(t);if(c||l){let d=(i=t.value)!==null&&i!==void 0?i:"";if(!((n=this.tt)===null||n===void 0)&&n.shouldEncrypt(t)){(a=this.tt)===null||a===void 0||a.registerInputNodeToEncrypt({targetId:e,targetValue:d,date:N.now()});return}let g=l?"0":"\u2022",u={type:"InputEvent",inputType:"text",target:et(t),value:csString.prototype.replace.call(d,/\S/g,g),timestamp:N.now()};this.produceEvent(u)}}inputHandler(t){if(!this.isStarted)return;let e=ut(t),i=et(e);!i||!this.pl(e)||lt.isConnected(e)&&zt(()=>{this.gl(e,i)},"low")}zS(){this.trackChanges(HTMLInputElement,"checked"),this.trackChanges(HTMLInputElement,"value"),this.trackChanges(HTMLTextAreaElement,"value")}qS(){this.trackChanges(HTMLSelectElement,"selectedIndex"),this.trackChanges(HTMLSelectElement,"value"),this.trackChanges(HTMLOptionElement,"selected",!0)}trackChanges(t,e,i=!1){let n=Wr(t.prototype,e,(a,c,l)=>{if(l!==c&<.isConnected(a)){let d=i?a.parentElement:a;this.WS(d)}});n&&csArray.prototype.push.call(this.Ei,n)}pl(t){return!M.isMaskedElement(t)&&!M.isMaskedElementChild(t)&&(Zi(t)||on(t)||nn(t))}WS(t){if(this.isStarted&<.isConnected(t)){let e=et(t);e&&this.pl(t)&&zt(()=>{this.gl(t,e)},"low")}}}return s.GS=["textarea","input:not([type])",'input[type="text"]','input[type="email"]','input[type="search"]','input[type="tel"]','input[type="url"]','input[type="password"]','input[type="number"]','input[type="checkbox"]','input[type="radio"]',"select"],de([Tt()],s.prototype,"inputHandler",null),de([P()],s.prototype,"trackChanges",null),s})();var pf=(()=>{class s extends ne{constructor(){super(),this.ys=typeof window.customElements=="object"&&typeof window.customElements.whenDefined=="function"&&typeof window.Promise=="function",this.YS=qe("CustomElementRegistrationProducer:onElementsFound",e=>{for(let i of e)M.isMaskedElement(i)||M.isMaskedElementChild(i)||Vh(i)&&this.register(csString.prototype.toLowerCase.call(i.tagName))});let t=nr(this.YS);this.zr=new ac(e=>t.push(e)),this.js=new Set}onStart(){this.ys&&this.zr.observe()}onStop(){this.js.clear(),this.zr.disconnect()}async register(t){this.js.has(t)||(this.js.add(t),await window.customElements.whenDefined(t),this.produceEvent({type:"CustomElementRegistration",tagName:csString.prototype.toLowerCase.call(t)}))}}return de([P()],s.prototype,"register",null),s})(),Uo=(()=>{class s{static isNavigationTimingObserverSupported(){var t,e;return(((t=window.PerformanceObserver)===null||t===void 0?void 0:t.supportedEntryTypes)==null?void 0:csArray.prototype.indexOf.call((e=window.PerformanceObserver)===null||e===void 0?void 0:e.supportedEntryTypes,"navigation"))>=0}static getTimeOrigin(){return window.performance.timeOrigin}static ip(){if(this.isNavigationTimingObserverSupported())return new window.PerformanceObserver(t=>s.XS(t))}static XS(t){let i=t.getEntriesByType("navigation")[0];i&&(this.Si=i,s.zi(i))}static kr(t){this.KS(t),this.Si&&t(this.Si),this.Ne||this.JS()}static KS(t){this.Pt.add(t)}static QS(t){this.Pt.delete(t)}static JS(){if(this.Kr||(this.Kr=this.ip()),!this.Kr){this.Si||(this.Si={requestStart:window.performance.timing.requestStart,domInteractive:window.performance.timing.domInteractive}),this.zi(this.Si);return}this.Kr.observe({type:"navigation",buffered:!0}),this.Ne=!0}static zi(t){this.Pt.forEach(e=>e(t))}static Lr(t){this.QS(t),this.Pt.size===0&&this.Gr()}static Gr(){var t;this.Ne&&((t=this.Kr)===null||t===void 0||t.disconnect(),this.Ne=!1,this.Si=null,this.Kr=this.ip())}constructor(t){this.S=t}observe(){s.kr(this.S)}disconnect(){s.Lr(this.S)}}return s.Ne=!1,s.Pt=new Set,s.Si=null,s})(),ff=(()=>{class s extends ne{constructor(){super(...arguments),this.Ho=null,this.rp=new Uo(t=>{if(this.Ho)return;let e=this.ZS(t);e&&(this.Ho=e,this.produceEvent(e))})}onStart(){if(this.Ho){this.produceEvent(this.Ho);return}this.rp.observe()}onStop(){this.rp.disconnect()}ZS(t){let e=Uo.getTimeOrigin();return{type:"PerformanceTiming",timings:{timeOrigin:e,requestStart:Math.floor(e+t.requestStart),domInteractive:Math.floor(e+t.domInteractive)},timestamp:N.now()}}}return s})(),St=(()=>{let s;return function(r){r[r.TAP=0]="TAP",r[r.LONG_PRESS=1]="LONG_PRESS",r[r.DRAG=2]="DRAG",r[r.FLICK=3]="FLICK",r[r.PINCH_IN=4]="PINCH_IN",r[r.PINCH_OUT=5]="PINCH_OUT"}(s||(s={})),s})(),xi=(()=>{let s;return function(r){r[r.UP=1]="UP",r[r.DOWN=2]="DOWN",r[r.LEFT=3]="LEFT",r[r.RIGHT=4]="RIGHT"}(s||(s={})),s})(),gf=(()=>{class s{compute(t,e){let i=this.Bs(e.x)-this.Bs(t.x),n=this.Bs(e.y)-this.Bs(t.y),a=e.time-t.time;return{duration:a,distance:this.np(i,n),direction:this.sv(i,n),velocity:this.iv(i,n,a)}}computePinchMetrics(t,e){let i=this.Bs(e.x)-this.Bs(t.x),n=this.Bs(e.y)-this.Bs(t.y);return{duration:e.time-t.time,distance:this.np(i,n)}}getScale(t,e){return Math.abs(e/t-1)}Bs(t){return t/window.devicePixelRatio}np(t,e){return Math.round(Math.sqrt(t*t+e*e))}iv(t,e,i){let n=i/1e3,a=t/n,c=e/n;return Math.round(Math.abs(a)+Math.abs(c))}sv(t,e){return Math.abs(t)>Math.abs(e)?t>0?xi.RIGHT:xi.LEFT:e>0?xi.DOWN:xi.UP}}return s})(),fc=typeof performance!="undefined"&&!!performance.now,jo=fc?()=>performance.now():csDate.now,mf=(()=>{var s;return fc?(s=performance.timing)===null||s===void 0?void 0:s.navigationStart:0})(),Vi={now(){return Math.round(jo()+mf)},elapsed(){return jo()}};function Ho(s,r=0){let t=Math.pow(10,r);return Math.round(s*t)/t}var yf=1e3,Ef=100,Sf=.1,Zr=(()=>{class s{constructor(){this.Ut={},this.ml=()=>{},this.Bo=new gf,this.we()}static isGestureDetectionSupported(){return typeof devicePixelRatio!="undefined"}onGesture(t){this.ml=t}isValidTouchEvent(t){return"touches"in t&&"changedTouches"in t}processActionDown(t){if(!this.rv(t))return;this.nv(t)&&this.we();let e={x:t.touches[0].clientX,y:t.touches[0].clientY,time:Vi.now()};if(t.touches.length===1)this.Ut.startPinchTime=e.time,this.Ut.firstTouch=e;else if(t.touches.length===2&&(this.Ut.secondTouch={x:t.touches[1].clientX,y:t.touches[1].clientY,time:Vi.now()},this.Ut.firstTouch&&this.Ut.secondTouch)){let i=this.Bo.computePinchMetrics(this.Ut.firstTouch,this.Ut.secondTouch);this.qi=i.distance}csArray.prototype.push.call(this.Jr,e),this.Fo=ut(t)}processActionMove(){this.yl=!0}processActionUp(t){if(this.ov(t)){if(csArray.prototype.push.call(this.Jr,{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY,time:Vi.now()}),this.av(t)&&this.Ut.startPinchTime){let e={x:t.touches[0].clientX,y:t.touches[0].clientY,time:this.Ut.startPinchTime},i={x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY,time:Vi.now()};this.Ut.firstTouch&&(this.Ut.firstTouch=e,this.Ut.secondTouch=i),this.cv(t)}this.qi||this.lv()&&this.hv(t)}}we(){this.Jr=[],this.Fo=null,this.yl=!1,this.qi=null,this.Qr=!0}hv(t){let e=this.Bo.compute(this.Jr[0],this.Jr[1]);this.Qr=t.isTrusted;let i=this.yl?this.uv(e):this.pv(e);if(this.fv(i.type,t.changedTouches)){let n=t.changedTouches[0];i.pageX=Ho(n.pageX,1),i.pageY=Ho(n.pageY,1)}this.ml(i,t)}cv(t){if(!(this.Ut.firstTouch&&this.Ut.secondTouch))return;let e=this.Bo.computePinchMetrics(this.Ut.firstTouch,this.Ut.secondTouch);this.Qr=t.isTrusted;let i=this.gv(e);i&&this.ml(i,t)}gv(t){return!this.qi||this.Bo.getScale(this.qi,t.distance)t.distance?St.PINCH_IN:St.PINCH_OUT,target:this.Fo,distance:t.distance,isTrusted:this.Qr}}uv(t){return{type:t.velocity0}ov(t){return t.changedTouches.length>0}av(t){return this.yl&&!!this.qi&&t.changedTouches.length===1&&t.touches.length===1}}return s})(),vf="touchstart",_f="touchmove",wf="touchend",bf=(()=>{class s{constructor(t){this.S=t}observe(){s.op&&s.El(this.S)}disconnect(){s.op&&s.Sl(this.S)}static mv(t,e){csArray.prototype.forEach.call(ks(s.Pt),i=>i(t,e))}static El(t){s.Pt.has(t)||(s.Pt.add(t),s.Pt.size===1&&(s.Zr.onGesture(s.mv),csArray.prototype.forEach.call(s.xs,e=>gt(e))))}static Sl(t){s.Pt.delete(t),s.Pt.size===0&&csArray.prototype.forEach.call(s.xs,e=>dt(e))}static vl(t){if(s.Zr.isValidTouchEvent(t))switch(t.type){case"touchstart":s.Zr.processActionDown(t);break;case"touchmove":s.Zr.processActionMove();break;case"touchend":s.Zr.processActionUp(t);break}}}return s.xs=[{boundElement:Rt.document,type:vf,listener:r=>s.vl(r)},{boundElement:Rt.document,type:_f,listener:r=>s.vl(r)},{boundElement:Rt.document,type:wf,listener:r=>s.vl(r)}],s.op=Zr.isGestureDetectionSupported(),s.Pt=new Set,s.Zr=new Zr,s})(),Af=(()=>{class s extends ne{constructor(){super(),this.tn=new bf(this._l.bind(this))}onStart(){this.tn.observe()}onStop(){this.tn.disconnect()}_l(t){let e=this.yv(t);e&&this.produceEvent(e)}yv(t){if(!this.Ev(t))return null;let e=kd(t.target);return e?{type:"Gesture",targetId:e,data:{type:t.type,direction:t.direction,distance:t.distance,velocity:t.velocity,pageX:t.pageX,pageY:t.pageY}}:null}Ev(t){return t.target!==null&&!(ot(t.target)&&M.isMaskedElementChild(t.target))}}return s})(),gc=(()=>{class s{constructor(t){this.S=t,this.Fs=!1,this.Vt={boundElement:Rt,type:"error",listener:e=>this.Sv(e)}}observe(){gt(this.Vt,this.Fs)}disconnect(){dt(this.Vt,this.Fs)}Sv(t){this.S(t)}}return s})(),Tf=(()=>{class s extends ne{constructor(){super(...arguments),this.ap=new gc(t=>this.$o(t))}$o({message:t,filename:e,lineno:i,colno:n}){t=t!=null?t:"[NO ERROR MESSAGE]",e=!e||Bt(e)?"":e,this.produceEvent({type:"JSError",message:t,filename:e,lineno:i,colno:n})}onStart(){this.ap.observe()}onStop(){this.ap.disconnect()}}return s})(),Rf=(()=>{class s extends Ls{constructor(t){super(),this.vv=t,this.wl=1024,this.bl=150}isListening(t){return t.type==="JSError"}processEvent(t){return t.message=ft.truncate(t.message,this.wl,ft.ELLIPSIS),t.filename=ft.truncate(t.filename,this.bl,ft.ELLIPSIS),this.vv(t)}}return s})();var vs=[],tn=!1,mc=hs(If,"executeTasks");function Cf(s){if(csArray.prototype.push.call(vs,s),!tn){for(let r=0;r<3;r++)csSetTimeout(mc);tn=!0}}function If(){let s=csDate.now();for(let r=0;r=35){vs=csArray.prototype.slice.call(vs,r+1),csSetTimeout(mc);return}vs=[],tn=!1}var Ie=(()=>{let s;return function(r){r[r.Started=0]="Started",r[r.Stopped=1]="Stopped",r[r.Processing=2]="Processing",r[r.Completed=3]="Completed"}(s||(s={})),s})(),yc=(()=>{class s{constructor(){this.bt=new Ms,this._t=Ie.Stopped,this.S=null,this.lp=t=>{this._t===Ie.Stopped||!t||(this.S(t),this.hp())}}get queueLength(){return this.bt.length}start(t){if(this.S)throw new Error("callback already set");this._t=Ie.Started,this.S=t}push(t){this.bt.push(t),this.Cl()}stop(){this.S=null,this._t=Ie.Stopped,this.bt.clear()}static pipe(t,e){let i=t,n=new csArray;for(let c of e){let l=new s;l.start(d=>{c.pushEvent(d)}),csArray.prototype.push.call(n,l),J(i,d=>d.subscribe(g=>l.push(g))),i=[c]}let a=new Pf(n);return J(i,c=>c.subscribe(l=>a.push(l))),a}up(){return this._t===Ie.Stopped}Xe(){return this._t===Ie.Processing}hp(){if(!this.up()){if(this.bt.isEmpty){this._t=Ie.Completed;return}this._t=Ie.Processing,Cf(()=>{let t=this.bt.pop();t instanceof Sn?t.complete(this.lp):this.lp(t)})}}Cl(){this.up()||this.Xe()||this.hp()}}return s})(),Pf=(()=>{class s extends yc{constructor(t){super(),this.dp=t}get queueLength(){return csArray.prototype.reduce.call(this.dp,(t,e)=>t+e.queueLength,0)}stop(){super.stop(),J(this.dp,t=>t.stop())}}return s})(),Of=(()=>{class s{constructor(t,e=[]){this.producers=t,this.processors=e,this.B=!1,this.Pt=[]}get pendingEvents(){var t,e;return(e=(t=this.bt)===null||t===void 0?void 0:t.queueLength)!==null&&e!==void 0?e:0}start(){if(this.B)throw new Error("Recording is already started.");let t=this.Pt;this.bt=yc.pipe(this.producers,this.processors),this.bt.start(e=>csArray.prototype.forEach.call(t,i=>i(e))),J(this.producers,e=>e.start()),J(this.processors,e=>e.start()),this.B=!0}stop(){this.bt.stop(),this.Pt.length=0;for(let t of this.producers)t.stop();for(let t of this.processors)t.stop();this.B=!1,this.Pt=[]}subscribe(t){if(this.B)throw new Error("Recording is already started.");return csArray.prototype.push.call(this.Pt,t),()=>this.Pt=csArray.prototype.filter.call(this.Pt,e=>e!==t)}}return s})(),Nf=(()=>{class s extends ne{constructor(t){super(),this.Oe=t}subscribe(t){return super.subscribe(t)}onStart(){J(this.Oe,t=>{t.onEvent(e=>{var i;return this.Hi(e,(i=t.eventType)!==null&&i!==void 0?i:"browser")})}),J(this.Oe,t=>{var e;(e=t.start)===null||e===void 0||e.call(t)})}onStop(){J(this.Oe,t=>{var e;return(e=t.stop)===null||e===void 0?void 0:e.call(t)})}Hi(t,e){this.produceEvent({timestamp:N.now(),type:"Legacy",originalEvent:t,eventType:e})}}return s})();function Mf(s,r,t){let{timestamp:e}=s;switch(s.domEvent){case"initialDOM":{let{initialDOM:i}=s,n={type:L.INITIAL_DOM,date:e,args:[i]};t.emitInitialDomDone(n);break}case"nodesAdded":{csArray.prototype.forEach.call(s.nodes,i=>{r({type:L.MUTATION_INSERT,date:e,args:[s.target,s.nextSibling,i]})});break}case"nodesMoved":{for(let i of s.nodesIds)r({type:L.MUTATION_MOVE,date:e,args:[i,s.nextSibling,s.target]});break}case"nodesRemoved":{csArray.prototype.forEach.call(s.nodesIds,i=>{r({type:L.MUTATION_REMOVE,date:e,args:[i]})});break}case"attributeChanged":{let{target:i,namespace:n,attribute:a,newValue:c}=s;r({type:L.MUTATION_ATTRIBUTE,date:e,args:[i,n,a,c]});break}case"characterDataChanged":{let{target:i,newValue:n}=s;r({type:L.MUTATION_CHARACTER_DATA,date:e,args:[i,n]});break}case"cssRuleInserted":{let{target:i,rule:n,index:a}=s,c=Z(a)?[i,n,a]:[i,n];r({type:L.STYLESHEET_RULE_INSERT,date:e,args:c});break}case"cssRuleDeleted":{let{target:i,index:n}=s;r({type:L.STYLESHEET_RULE_DELETE,date:e,args:[i,n]});break}case"cssRuleUpdated":{let{target:i,rule:n,index:a}=s;r({type:L.STYLESHEET_RULE_UPDATE,date:e,args:[i,n,a]});break}case"shadowRootAttached":{let{target:i,shadowRoot:n}=s;r({type:L.ATTACH_SHADOW,date:e,args:[i,n]});break}case"adoptedStyleSheetRegistered":{let{sheetId:i,cssRules:n}=s;r({type:L.REGISTER_ADOPTED_STYLE_SHEET,date:e,args:[i,{cssRules:n}]});break}case"adoptedStyleSheetsSet":{let{target:i,sheetsIds:n}=s;r({type:L.SET_ADOPTED_STYLE_SHEETS,date:e,args:[i,n]});break}case"adoptedStyleSheetRuleInserted":{let{sheetId:i,rule:n,index:a}=s,c=Z(a)?[i,n,a]:[i,n];r({type:L.ADOPTED_STYLESHEET_RULE_INSERT,date:e,args:c});break}case"adoptedStyleSheetRuleDeleted":{let{sheetId:i,index:n}=s;r({type:L.ADOPTED_STYLESHEET_RULE_DELETE,date:e,args:[i,n]});break}case"adoptedStyleSheetRuleUpdated":{let{sheetId:i,rule:n,index:a}=s,c=[i,n,a];r({type:L.ADOPTED_STYLESHEET_RULE_UPDATE,date:e,args:c});break}default:H.error("translateDOMEvent: DOMEvent not supported");break}}function kf(s){let r=Df(s.data);return{type:L.GESTURE_RECOGNITION,args:[s.targetId,r],date:s.timestamp}}function Df(s){let r={type:Lf(s.type)};for(let t in s){let e=s[t];e!==void 0&&t!=="type"&&(r[t]=e)}return r}function Lf(s){switch(s){case St.DRAG:case St.FLICK:return Ws.SWIPE;case St.LONG_PRESS:return Ws.LONG_PRESS;case St.TAP:return Ws.TAP;case St.PINCH_IN:return Ws.PINCH_IN;case St.PINCH_OUT:return Ws.PINCH_OUT}}function xf(s,r){let t=[],e=!1;return{push(i){if(csArray.prototype.push.call(t,i),t.length===r.batchSize){this.flush();return}r.autoFlushDelay&&r.autoFlushDelay>0&&!e&&(e=!0,csSetTimeout(()=>{e=!1,t.length>0&&this.flush()},r.autoFlushDelay))},flush(){if(!t.length)return;let i=t;t=[],s(i)}}}var Vf=20;function Uf(s){return xf(r=>{let t={visibleInViewPort:r},e={type:L.TEXT_VISIBILITY,date:N.now(),args:[t]};s(e)},{batchSize:Vf,autoFlushDelay:1e3})}function jf(s){return{type:L.PERFORMANCE_TIMINGS,args:[{performanceTiming:Ir.REQUEST_START,timestamp:s.timings.requestStart},{performanceTiming:Ir.DOM_INTERACTIVE,timestamp:s.timings.domInteractive},{performanceTiming:Ir.TIME_ORIGIN,timestamp:s.timings.timeOrigin}],date:s.timestamp}}function Hf(s){switch(s.inputType){case"text":return{type:L.INPUT_TEXT,args:[s.target,s.value],date:s.timestamp};case"select":return{type:L.INPUT_SELECT,args:[s.target,s.selectedIndex],date:s.timestamp};case"checkable":return{type:L.INPUT_CHECKABLE,args:[s.target,s.checked],date:s.timestamp}}}var Bf=500,Nr=0;function Ff(){return{processEvent(s,r){if(s.originalEvent.type===L.PERFORMANCE_RESOURCE_TIMING)return Nr>=Bf?null:(Nr+=1,r({...s.originalEvent,date:s.timestamp}));r(s.originalEvent)},reset(){Nr=0}}}function $f(s){switch(s.videoEventType){case"play":return{type:L.VIDEO_PLAY,args:[s.nodeId],date:s.timestamp};case"pause":return{type:L.VIDEO_PAUSE,args:[s.nodeId],date:s.timestamp};case"seeked":{let r=s;return{type:L.VIDEO_SEEK,args:[r.nodeId,r.newTimePositionInSec],date:s.timestamp}}default:return null}}var zf=(()=>{class s{get pendingEvents(){return this.zo.pendingEvents}constructor(t,e,i,n,a){this.zo=t,this.E=e,this.be=i,this.Ge=n,this.We=a,this.Qt=()=>{},this.qo=()=>{},this.pp=Uf(c=>this.Qt(c))}start(){var t,e;this.fp=Ff(),this.zo.subscribe(i=>{var n,a,c,l,d,g;let u=i,{timestamp:y}=u;switch(u.type){case"Legacy":{let E=u.eventType==="user"?(n=this.qo)!==null&&n!==void 0?n:()=>{}:this.Qt;this.fp.processEvent(u,E)}break;case"CustomElementRegistration":{this.Qt({type:L.CUSTOM_ELEMENT_REGISTRATION,date:y,args:[u.tagName]});break}case"DomEvent":{Mf(u,this.Qt,this.E);break}case"InputEvent":{let E=Hf(u);(a=this.qo)===null||a===void 0||a.call(this,E);break}case"encryptedCharacterDataChanged":{let{target:E,rawData:v,encryptedData:A,encryptionMetadata:k}=u;this.Qt({type:L.MUTATION_ENCRYPTED_CHARACTER_DATA,date:y,args:[E,v,A,k]});break}case"StaticResource":{let{url:E}=u;this.Qt({type:L.STATIC_RESOURCE_URL,date:y,args:[E]});break}case"ResizeMaskedElement":{let{target:E,width:v,height:A}=u;this.Qt({type:L.MUTATION_ATTRIBUTE,date:y,args:[E,"","style",`width:${v}px !important;height:${A}px !important;`]});break}case"Gesture":{let E=kf(i);(c=this.qo)===null||c===void 0||c.call(this,E);break}case"TextVisibility":{this.pp.push(u.text);break}case"StaticResourceManagerEvent":{(l=this.be)===null||l===void 0||l.processEvent(u);break}case"screenResize":{let{width:E,height:v}=u,A={type:L.SCREEN_RESIZE,date:y,args:[E,v]};this.Qt(A);break}case"viewportResize":{let{width:E,height:v}=u,A={type:L.RESIZE,date:y,args:[E,v]};this.Qt(A);break}case"PerformanceTiming":{this.Qt(jf(u));break}case"CustomError":{let E=(d=this.We)===null||d===void 0?void 0:d.translate(u);E&&this.Qt(E);break}case"JSError":{let E=(g=this.Ge)===null||g===void 0?void 0:g.translate(u);E&&this.Qt(E);break}case"VideoEvent":{let E=$f(u);E&&this.Qt(E);break}case"warning":{H.warn(u.message);break}default:H.error(`WebRecorderEventTranslator: Event not supported (${u.type})`);break}}),this.E.emitInitialDomStart(),(t=this.Ge)===null||t===void 0||t.start(),(e=this.We)===null||e===void 0||e.start(),this.zo.start()}stop(){var t,e,i;this.reset(),this.flush(),this.zo.stop(),(t=this.be)===null||t===void 0||t.flushEvents(),(e=this.Ge)===null||e===void 0||e.stop(),(i=this.We)===null||i===void 0||i.stop()}flush(){this.pp.flush()}onEvent(t,e){var i;this.Qt=t,this.qo=e,(i=this.be)===null||i===void 0||i.onEvent(n=>this.Qt(n))}reset(){this.fp.reset()}}return s})(),qf=(()=>{class s{constructor(t=100){this.Av=t,this.Go={},this.rn=null,this.jc="original-resource-name"}onEvent(t){this.Tv=t}processEvent(t){this.Rv(t.resourceId,t.resource.hash,t.originalResourceName),this.Cv(t)}flushEvents(){this.rn&&csClearTimeout(this.rn),this.gp()}onSendStaticResource(t){this.Cv=t}gp(){if(!Object.keys(this.Go).length)return;let t={type:L.RESOURCE_HASHES,date:N.now(),args:[this.Go]};this.rn=null,this.Go={},this.Tv(t)}Rv(t,e,i){let n=e;i&&(n+=`?${this.jc}=${i}`),this.Go[t]=n,!this.rn&&(this.rn=window.csSetTimeout(()=>this.gp(),this.Av))}}return s})(),Gf=(()=>{class s{constructor(t,e,i){this.E=t,this.w=e,this.Iv=i,this.nn=Nt.ETR_DISABLED,this.Wo=Nt.ETR_PENDING,this.Yo=!0}getEtrStatus(t){t===void 0&&(t=this.w.getSession());let e=t==null?void 0:t.etrStatus;return this.Il()&&e===Nt.ETR_SAVED_SESSION?e:this.nn}onEventTriggerRecording(t,e){switch(e){case Be.ETR_PAGE:this.mp(Nt.ETR_SAVED_PAGE);break;case Be.ETR_LEGACY:case Be.ETR_SESSION:this.mp(Nt.ETR_SAVED_SESSION);break}}handleCollectStateChange(t){this.Yo=!1,t?this.an(this.Wo):this.an(Nt.ETR_DISABLED)}handleArtificialPageview(){this.Iv?(this.Yo=!0,this.an(Nt.ETR_DISABLED)):this.Il()&&this.an(Nt.ETR_PENDING)}handleSessionRenewal(){this.Yo=!0,this.an(Nt.ETR_DISABLED)}an(t){this.nn=t,this.Wo=Nt.ETR_PENDING,this.yp(t),this.E.emitRecordingContextChange()}mp(t){this.Yo?Number(t)>Number(this.Wo)&&(this.Wo=t):this.Il()&&Number(t)>Number(this.nn)&&(this.nn=t,this.yp(t),this.E.emitRecordingContextChange())}yp(t){let e=this.w.getSession();e!==null&&e.etrStatus===Nt.ETR_NOT_SAVED_SESSION&&t===Nt.ETR_SAVED_SESSION&&(e.etrStatus=t,this.w.setSession(e))}Il(){return this.nn!==Nt.ETR_DISABLED}}return s})();function ui(s,r){let t,e,i,n,a=null,c=d=>{let g=N.elapsed();if(!d&&a!==null){let y=r-(g-a);if(y>0){e=window.csSetTimeout(c,y);return}}let u=g-i;e=null,a=null,i=null,n=s(u,...t)},l=(...d)=>{if(t=[...d],i){a=N.elapsed();return}return i=N.elapsed(),e=window.csSetTimeout(c,r),n};return l.flushPending=()=>{e&&(window.csClearTimeout(e),c(!0))},l.cancel=()=>{a=null,i=null,e&&(window.csClearTimeout(e),e=null)},l}var Wf=(()=>{let s;return function(r){r[r.NOT_EXIST=2]="NOT_EXIST"}(s||(s={})),s})(),Yf=8*1024*1024,Xf=(()=>{class s extends It{constructor(t,e,i){super(),this.be=t,this.Ep=e,this.Z=i,this.Pl={},this.Sp=new Set,this.Xe=!1}initState(){Fa()&&(this.Me=this.Z.getRequestParameters(),this.Pv=`${this.Ep}/exist?${li.toQuery(this.Me)}`,this.Ov=`${this.Ep}/putTag?${li.toQuery(this.Me)}`,this.vp=ui(async()=>{if(this.Xe){this.vp();return}this.Xe=!0;try{await this.Nv()}finally{this.Xe=!1}},300),this.be.onSendStaticResource(t=>{this._p(t)}))}onStart(){}onStop(){}onIframeStaticResource(t){this._p(t)}_p(t){this.wp(t.resource.hash,t.resource.data),t.nestedResources&&t.nestedResources.length>0&&csArray.prototype.forEach.call(t.nestedResources,e=>{this.wp(e.hash,e.data)})}wp(t,e){this.Sp.has(t)||(this.Sp.add(t),this.Pl[t]=e,this.vp())}async Nv(){let t=this.Pl;this.Pl={};let e=await this.Mv(t);if(!e.length)return;let i=this.kv(e);await Promise.all(csArray.prototype.map.call(i,n=>window.fetch(this.Ov,{method:"POST",body:n})))}async Dv(t){try{let e=Object.keys(t);if(!e.length)return[];let i={projectId:this.Me.pid,filter:Wf.NOT_EXIST,hashes:e,touch:!0};return await(await window.fetch(this.Pv,{method:"POST",body:csJSON.stringify(i)})).json()}catch{return[]}}async Mv(t){let e=[],i=await this.Dv(t);return csArray.prototype.forEach.call(i,n=>{let a=t[n];a?csArray.prototype.push.call(e,{hash:n,data:a}):H.warn("SRM: received unknown hash: "+n)}),e}kv(t){let e=0,i=[new FormData];for(let n of t){let{data:a,hash:c}=n,l=i.length-1;if(e=e+a.size,e{class s{constructor(t){this.Xo=t,this.mn=20,this.vi=0,this.N=!1}translate(t){if(this.vi>=this.mn)return this.Xo.stop(),null;this.vi+=1;let{filename:e,message:i,lineno:n,colno:a,timestamp:c}=t;return{type:L.JAVASCRIPT_ERROR,date:c,args:[{errorType:"jsError",message:i,filename:e,lineno:n,colno:a}]}}start(){this.N||(this.vi=0,this.N=!0)}stop(){this.N=!1}}return s})(),Jf=(()=>{class s{constructor(){this.mn=20,this._i=0,this.N=!1}translate(t){if(this._i>=this.mn)return null;this._i+=1;let{message:e,attributes:i,timestamp:n}=t;return{type:L.CUSTOM_ERROR,date:n,args:[{errorType:"customError",message:e,attributes:i}]}}start(){this.N||(this._i=0,this.N=!0)}stop(){this.N=!1}}return s})(),Qf="csPersisted",Bo="v2/recording",Zf=["isRecording"],tg=["replay:resourceManager:enableForOnlineResource:nextPageviewOnly","cssrm:onlineAssets:activateForNextPageview"],eg=["replay:resourceManager:getStatus","cssrm:getStatus"],sg=(()=>{class s{constructor(t,e,i,n,a,c,l,d,g,u,y,E,v,A,k,R,b,x,w,D,j,W){this.$s=t,this.w=e,this.h=i,this.Me=n,this.f=a,this.I=c,this.X=l,this.jt=d,this.ae=g,this.ut=u,this.Ie=y,this.ft=E,this.E=v,this.zs=A,this.bp=k,this.Zt=R,this.At=b,this.K=x,this.Vr=w,this.nt=D,this.dC=j,this.tt=W}init(){var t,e;let i=[],n=[];csArray.prototype.push.call(n,new jp),this.yn=new ef(this.nt.shouldUseAnonymization(),this.h.whitelistedAttributes,this.I,this.h.anonymizeDigits),this.wi();let a=new Up(Qf);this.Lv(a);let c=new Hd;this.j=new jd;let l=new Lp;csArray.prototype.push.call(i,l),this.h.useStaticResourceManager&&Qr.isSupported()&&(this.xt=new Qr,this.be=new qf,this.Ap=new Xf(this.be,this.h.getStaticResourceManagerUri(),this.Me),this.bp.addListener(this.Ap),csArray.prototype.push.call(n,this.xt));let d=new hi(c,this.Me,{getRequestParameters:()=>({let:this.recordingService.getRecordingLastEventTimestamp()})},{getRequestParameters:()=>({rst:this.recordingService.getRecordingStartTimestamp()})},{getRequestParameters:()=>({rt:csArray.prototype.join.call(this.w.getCollectStates(),",")})}),g=new lc(`${this.h.getRecordingUri()}/${Bo}`);csArray.prototype.push.call(n,this.yn),csArray.prototype.push.call(n,new sf(this.K)),csArray.prototype.push.call(n,new rf),this.bi=new Ld,this.bi.init(),csArray.prototype.push.call(i,this.bi),this.Ct=new Pp(a,g,this.V),csArray.prototype.push.call(i,new Op(window.location,this.I));let u=new Tp,y=new af,E=new lf,v=new df(this.tt),A=new pf,k=[y,this.jt,u,new Nf(csArray.prototype.filter.call(i,w=>w)),A,new ff,new Af,v,E];this.h.jsErrorsEnabled&&(this.Xo=new Tf,this.Uv=new Rf(w=>this.ae.anonymize(w)),this.Ge=new Kf(this.Xo),csArray.prototype.push.call(k,this.Xo),csArray.prototype.push.call(n,this.Uv)),!((e=this.h.customErrors)===null||e===void 0)&&e.enabled&&(this.We=new Jf);let R=new Of(k,n),b=new zf(R,this.E,this.be,this.Ge,this.We),x=[u,y,E,v,A];this.recordingService=new Ip(this.h,this.j,d,c,this.X,this.w,this.ae,this.ut,this.Ie,this.tt,this.V,this.Ct,g,b,i,x,this.xt,this.Vr,this.Ge,this.We),this.zs.addListener(this.recordingService),this.bp.addListener(this.recordingService),this.recordingService.init(),this.f.register(Zf,()=>this.w.isReplayRecorded()&&!this.Zt.isUrlExcludedForSessionReplay()),this.f.register(tg,()=>{this.recordingService.activateOnlineAssetsOnNextPageview(),this.E.emitRecordingContextChange()}),this.f.register(eg,()=>this.recordingService.getStaticResourceManagerStatus()),this.Ai=new Gf(this.E,this.w,this.h.malkaUrlEnabled),this.zs.addListener(this.Ai),this.$s.enableRecordingContext(this.recordingService,this.w,this.Ai),this.Ol()}onAfterNaturalPageView(){var t;this.Zt.isUrlExcludedForSessionReplay()?this.recordingService.resetOnlineAssetsOnPageview():this.recordingService.updateOnlineAssetsOnPageview(),(t=this.Ap)===null||t===void 0||t.initState()}onStartTracking(){this.Ct.recover(),this.wi(),this.w.isReplayRecorded()&&!this.Zt.isUrlExcludedForSessionReplay()&&(this.w.isTemporarilyRecorded()&&this.recordingService.blockSendingEventsFromQuotaService(),this.Nl())}onArtificialPageViewEnd(){this.w.isReplayRecorded()&&!this.Zt.isUrlExcludedForSessionReplay()&&!this.w.isTemporarilyRecorded()&&this.Ct.sendLastMessageBeacon(),this.recordingService.clearStates()}onBeforeArtificialPageView(){this.Ai.handleArtificialPageview()}onAfterArtificialPageView(){this.wi(),this.w.isReplayRecorded()&&!this.Zt.isUrlExcludedForSessionReplay()?(this.w.isTemporarilyRecorded()&&this.recordingService.blockSendingEventsFromQuotaService(),this.recordingService.updateOnlineAssetsOnPageview(),this.jv()):(this.recordingService.resetOnlineAssetsOnPageview(),this.Gi())}onBeforeSessionRenewal(){this.Ai.handleSessionRenewal(),this.recordingService.clearStates(),this.Gi()}onOptout(){this.Gi(),this.recordingService.onOptOut()}onReplayUnanonymizationConsentGranted(){this.wi(),this.recordingService.triggerUnanonymizationConsentGranted(),this.E.emitRecordingContextChange()}onReplayUnanonymizationConsentWithdrawn(){this.wi(),this.recordingService.triggerUnanonymizationConsentWithdrawn(),this.E.emitRecordingContextChange()}onCollectStateChange(t,e){if(t===I.QUOTA_REACHED||t===I.ANALYTICS_ONLY&&e===Mt.ETR_OFF)this.recordingService.clearEvents(),this.Gi();else{this.V.setQueryParams({rt:csArray.prototype.join.call(this.w.getCollectStates(),",")}),this.recordingService.allowSendingEventsFromQuotaService(),this.recordingService.pushEvents();let i=t===I.ANALYTICS_ONLY&&e===Mt.ETR_ON;this.Ai.handleCollectStateChange(i)}}onInitialDomStart(){this.recordingService.blockSendingEventsFromSerialization(),this.Ct.blockSendingLastMessage()}onInitialDomDone(t){this.recordingService.allowSendingEventsFromSerialization(),this.recordingService.addInitialDom(t),this.Ct.allowSendingLastMessage(),this.bi.start(),this.recordingService.pushEvents()}onAfterReplayRecordingConsentGranted(){this.w.isReplayRecorded()&&!this.Zt.isUrlExcludedForSessionReplay()&&(this.w.isTemporarilyRecorded()&&this.recordingService.blockSendingEventsFromQuotaService(),this.Nl(),this.recordingService.triggerRecordingForSessionGranted())}onAfterReplayRecordingConsentWithdrawn(){this.recordingService.isRecording()&&(this.recordingService.triggerRecordingForSessionWithdrawn(),this.recordingService.clearStates(),this.Gi())}Ol(){var t,e,i,n;if(!((e=(t=this.h.experimental.sessionReplay)===null||t===void 0?void 0:t.shadowRoot)===null||e===void 0)&&e.filterByHostSelector){let a=(n=(i=this.h.experimental.sessionReplay)===null||i===void 0?void 0:i.shadowRoot)===null||n===void 0?void 0:n.filterByHostSelector;J(a,c=>{ei(c)&&Xe.setShadowRootFilter(l=>{try{return Kt.call(l.host,c)}catch{return!1}})})}}Nl(){this.recordingService.start(),this.Ct.start(),this.E.emitRecordingContextChange()}Gi(){Md(),this.recordingService.stop(),this.Ct.stop(),this.E.emitRecordingContextChange()}jv(){this.Gi(),this.Nl()}Lv(t){let e="byteArray";this.V=this.At.create(`${this.h.getRecordingUri()}/${Bo}`,!0,e,t,["rt","v","pid","pn","sn","uu"])}wi(){var t;let e=this.nt.shouldUseAnonymization();this.yn.setAnonymization(e),(t=this.xv)===null||t===void 0||t.setAnonymization(e)}}return U([Dt("Recording.onStartTracking")],s.prototype,"onStartTracking",null),U([Dt("onInitialDomDone")],s.prototype,"onInitialDomDone",null),s})(),Ui=(()=>{let s;return function(r){r[r.NOT_NEEDED=1]="NOT_NEEDED",r[r.NOT_EXPRESSED=2]="NOT_EXPRESSED",r[r.WITHDRAWN=3]="WITHDRAWN",r[r.GRANTED=4]="GRANTED"}(s||(s={})),s})(),Ve=(()=>{let s;return function(r){function t(n){return n.replayConsentRequiredForSession}r.isReplayConsentNeeded=t;function e(n){return n.collectState===I.RECORDING_BLOCKED_BY_CONSENT_NOT_EXPRESSED||n.collectState===I.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN}r.isRecordingBlockedByConsent=e;function i(n){return n.collectState===I.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN}r.isRecordingWithDrawn=i}(s||(s={})),s})(),ig=(()=>{class s{constructor(t,e,i,n){this.T=t,this.w=e,this.h=i,this.Ke=n,this.Tp=!1}isNaturalPageViewSent(){return this.Tp}setNaturalPageViewSent(t){this.Tp=t}getTrackingContext(){let t=this.w.getSession();if(!t)return null;let e=this.getSessionKey();if(!e)return null;let i=this.h.projectId,n=this.h.uxaDomain,a=t.pageNumber,c=this.Ke.getPageViewType(),l=this.w.isReplayRecorded(),d=this.Hv(t);return{projectId:i,sessionKey:e,pageNumber:a,pageViewType:c,isRecording:l,uxaDomain:n,recordingConsentState:d,...this.h.smbConfig}}getSessionKey(){let t=this.T.getVisitor();return t?`${t.id}.${t.visitsCount}`:null}Hv(t){return Ve.isReplayConsentNeeded(this.h)?t.collectState===I.RECORDING_BLOCKED_BY_CONSENT_NOT_EXPRESSED?Ui.NOT_EXPRESSED:t.collectState===I.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN?Ui.WITHDRAWN:Ui.GRANTED:Ui.NOT_NEEDED}}return s})(),rg=(()=>{class s{constructor(t){this.St=t,this.te=[]}handleCommand(t){if($e(t)&&(this.En(t),this.St.isNaturalPageViewSent())){let e=this.St.getTrackingContext();e!==null&&this.kt(t,e)}}En(t){csArray.prototype.push.call(this.te,t)}executeRegisteredCallbacks(){let t=this.St.getTrackingContext();t!==null&&csArray.prototype.map.call(this.te,e=>this.kt(e,t))}kt(t,e){csSetTimeout(()=>{t(e)})}}return s})(),ng=(()=>{class s{constructor(t){this.St=t,this.Ti=[]}handleCommand(t){if(this.St.isNaturalPageViewSent())return this.Bv(t);this.Sn(t)}Bv(t){let e=this.St.getSessionKey();return this.Rp(t)&&e!==null&&this.kt(t.callback,e),e}Sn(t){this.Rp(t)&&csArray.prototype.push.call(this.Ti,t.callback)}flushPendingCallbacks(){let t=this.St.getSessionKey();t!==null&&csArray.prototype.forEach.call(this.Ti,e=>{this.kt(e,t)}),this.Ti=[]}Rp(t){return t&&typeof t.callback=="function"}kt(t,e){csSetTimeout(()=>{t(e)})}}return s})(),og=(()=>{class s{constructor(t,e){this.Y=t,this.St=e}onTrackingContextRequestCallback(t){let e=this.St.getTrackingContext();e!==null&&this.Y.sendToChildren(K.TrackingContextResultMessage,{...t,trackingContext:e})}onIframeIntegrationCallback(t){if(!this.St.isNaturalPageViewSent())return;let e=this.St.getTrackingContext();e!==null&&(t.trackingContext=e,this.Y.sendToChildren(K.IntegrationCallback,t))}sendAfterPageViewCallbackToChildren(){let t=this.St.getTrackingContext();if(t===null)return;let e={trackingContext:t,initiator:zu.AfterPageView};this.Y.sendToChildren(K.IntegrationCallback,e)}}return s})();function ag(s,r){let{isRecording:t,pageNumber:e,projectId:i,siteId:n,uxaDomain:a,csLiteDomain:c}=s,l=/^(.+)\.(\d+)$/.exec(s.sessionKey),d;if(t&&l){let[,g,u]=l;n?d=`${c}/sites/${n}/player?uu=${g}&sn=${u}&pn=${e}`:d=`${a}/quick-playback/index.html?pid=${i}&uu=${g}&sn=${u}&pvid=${e}&recordingType=cs`,r.withTimestamp&&(d+=`&t=${N.now()-r.recordingStartTimestamp}`)}return{replayLink:d,isRecording:t}}var cg=(()=>{class s{constructor(t){this.St=t}handleCommand(t,e){Fe(t)&&$e(e)&&this.kt(t,e)}kt(t,e){csSetTimeout(()=>{let i=this.St.getTrackingContext();if(i){let n=ag(i,t);e(n)}})}}return s})(),lg=(()=>{class s{constructor(){this.te=new Set}handleCommand(t,e){return!$e(t)||this.te.has(t)?null:(this.te.add(t),e&&(this._e=e,this.Cp(t,e)),()=>this.te.delete(t))}executeCallbacks(t){this.Fv(t)&&(this._e=t,this.te.forEach(e=>this.Cp(e,t)))}Cp(t,e){csSetTimeout(()=>{try{t(e)}catch{}})}Fv(t){let{isRecording:e,recordingStartTimestamp:i,etrState:n,etrStatus:a,collectState:c}=t;return this._e&&(this._e.isRecording!==e||this._e.recordingStartTimestamp!==i||this._e.etrState!==n||this._e.etrStatus!==a||this._e.collectState!==c)}}return s})(),hg=["afterPageView"],ug=["getSessionKey"],dg=["onRecordingContextChange","onRecordingStateChange"],pg=["replay:link:generate"],fg=(()=>{class s{constructor(t,e,i,n,a,c,l,d){this.T=t,this.w=e,this.f=i,this.ot=n,this.Y=a,this.h=c,this.Ke=l,this.$s=d}init(){this.St=new ig(this.T,this.w,this.h,this.Ke),this.Ml=new rg(this.St),this.Ip=new ng(this.St),this.vn=new lg,this.$v=new cg(this.St),this.kl=new og(this.Y,this.St),this.ot.addListener(this.kl),this.f.register(ug,t=>this.Ip.handleCommand(t)),this.f.register(hg,t=>this.Ml.handleCommand(t)),this.f.register(dg,t=>this.vn.handleCommand(t,this.$s.getRecordingContext())),this.f.register(pg,(t,e)=>{this.Wi&&this.$v.handleCommand({...t,recordingStartTimestamp:this.$s.getRecordingContext().recordingStartTimestamp},e)})}onAfterNaturalPageView(){this.St.setNaturalPageViewSent(!0),this.Ip.flushPendingCallbacks(),this.Ml.executeRegisteredCallbacks(),this.kl.sendAfterPageViewCallbackToChildren()}onAfterArtificialPageView(){this.Ml.executeRegisteredCallbacks(),this.kl.sendAfterPageViewCallbackToChildren()}onCollectStateChange(){this.executeRecordingContextChangeCallbacks()}onRecordingContextChange(){this.executeRecordingContextChangeCallbacks()}executeRecordingContextChangeCallbacks(){this.vn.executeCallbacks(this.$s.getRecordingContext())}setRecordingService(t){this.Wi=t}}return U([mn({wait:0,mode:"trailing"})],s.prototype,"executeRecordingContextChangeCallbacks",null),s})(),gg=512,mg=255,Mr=(()=>{class s{constructor(t,e){this.key=csString.prototype.slice.call(t,0,gg),this.value=z(e)?csString.prototype.slice.call(e,0,mg):e}static isKeyValid(t){return z(t)}static isValueValid(t){return z(t)||Ts(t)}}return s})(),yg=(()=>{class s extends It{constructor(t,e){super(),this.Ht=t,this.I=e,this.Dl=[]}onStart(){csArray.prototype.forEach.call(this.Dl,t=>this.Pp(t.key,t.value)),this.Dl=[]}onStop(){}Pp(t,e){let i=this.I.anonymizePII(t),n=Ts(e)?e:this.I.anonymizePII(e);this.Ht.add(new Mr(i,n))}trackDynamicVariable(t,e){if(Mr.isKeyValid(t)&&Mr.isValueValid(e)){if(!this.isStarted){csArray.prototype.push.call(this.Dl,{key:t,value:e});return}this.Pp(t,e)}else throw new Error(`Command misuse: ${Ec[0]}`)}}return s})(),Eg=(()=>{class s{constructor(t){this.ce=t,this.Ht=[]}add(t){csArray.prototype.push.call(this.Ht,t),this.setBatchReadyCall()}clear(){this.Ht=[]}onBatchReady(t){this.zv=t}getRequestParameters(){let t={};for(let e of this.Ht)t[e.key]=e.value;return{dv:this.ce.compressSync(csJSON.stringify(t),"base64"),ct:this.ce.algorithm}}setBatchReadyCall(){this.zv()}}return U([mn({wait:0,mode:"trailing"}),P("dynamicVariablesBatchReady")],s.prototype,"setBatchReadyCall",null),s})(),Sg="dvar",Ec=["trackDynamicVariable"],vg=(()=>{class s{constructor(t,e,i,n,a,c){this.f=t,this.w=e,this.h=i,this.Me=n,this.ce=a,this.I=c,this.us=new Ps(this.h.getTrackerUri(),Sg),this.Ht=new Eg(this.ce),this.Je=new yg(this.Ht,this.I)}init(){this.us.setRequestParametersProviders(this.Me,this.Ht),this.w.setDynamicVariablesService(this.Je),this.Ht.onBatchReady(()=>this.us.send()),this.us.after(()=>this.Ht.clear()),this.f.register(Ec,({key:t,value:e}={})=>{this.Je.trackDynamicVariable(t,e)})}onStartTracking(){this.Je.start()}}return s})(),Fo=(()=>{class s{constructor(t,e){this.id=t,this.revenue=e}static from(t){let e=new s(t.id,parseFloat(t.revenue));return isNaN(parseFloat(t.tax))||(e.tax=parseFloat(t.tax)),isNaN(parseFloat(t.shipping))||(e.shipping=parseFloat(t.shipping)),z(t.currency)&&t.currency.length<=10&&(e.currency=t.currency),e}hasValidRevenue(){return!isNaN(this.revenue)&&this.revenue>=0}static isValid(t){return Ct(t)&&$t(t.revenue)&&z(t.currency)&&t.currency.length<=10&&(!Ct(t.id)||z(t.id))}}return s})(),Sc=100,_g=100,wg=(()=>{class s{constructor(t,e,i,n){this.id=t,this.name=e,this.price=i,this.quantity=n}static from(t){if(!s.Ll(t))return null;let e=new s(t.id,t.name,parseFloat(t.price),parseInt(t.quantity,10));return Z(t.sku)&&(e.sku=t.sku),Z(t.category)&&(e.category=t.category),Z(t.merchant)&&t.merchant.length>0&&(e.merchant=t.merchant.slice(0,Sc)),e}static Ll(t){return Ct(t)&&z(t.id)&&z(t.name)&&$t(parseFloat(t.price))&&Ts(parseInt(t.quantity,10))&&(!Z(t.sku)||z(t.sku))&&(!Z(t.category)||z(t.category))&&(!Z(t.merchant)||z(t.merchant))}}return s})(),bg=(()=>{class s extends It{constructor(t,e,i){super(),this.I=t,this.Op=e,this.X=i,this.xl=[],this.clear()}onStart(){csArray.prototype.forEach.call(this.xl,t=>{this.le=t.transaction,this._n=t.transactionItems,this.sendTransaction()}),this.xl=[]}onStop(){}addTransaction(t){let e=this.I.anonymizeFields(t,["id"]);this.le=Fo.from(e)}getTransaction(){return this.le}sendTransaction(){if(!this.isStarted){csArray.prototype.push.call(this.xl,{transaction:this.le,transactionItems:[...this._n]}),this.clear();return}if(!(this.Op===null||this.X===null)&&(this.X.refreshSession(),!!this.X.isSessionValid())){if(!this.le.hasValidRevenue()){H.warn("Transaction Service: unable to send transaction with invalid parameters");return}this.Op.send()}}addItem(t){if($e(t))throw new Error(`Command misuse: ${vc[1]}`);let e=this.I.anonymizeFields(t,["id","name","sku","category"]),i=wg.from(e);i!==null&&csArray.prototype.push.call(this._n,i)}getItems(){return this._n}clear(){this.le=Fo.from({revenue:NaN}),this._n=[]}getRequestParameters(){let t={id:this.le.id?`${this.le.id}`:"",revenue:`${this.le.revenue}`};return Z(this.le.tax)&&(t.tax=`${this.le.tax}`),Z(this.le.shipping)&&(t.shipping=`${this.le.shipping}`),Z(this.le.currency)&&(t.cu=`${this.le.currency}`),t.items=window.csJSON.stringify(this._n),t}}return s})(),Ag=(()=>{class s extends It{constructor(t,e){super(),this.qv=t,this.X=e,this.Ae=null,this.Vl=[]}onStart(){csArray.prototype.forEach.call(this.Vl,t=>{this.Ae=t,this.Np()}),this.Vl=[]}onStop(){}addToCart(t){let e={};z(t.sku)&&(e.sku=csString.prototype.slice.call(t.sku,0,_g)),z(t.merchant)&&(e.merchant=csString.prototype.slice.call(t.merchant,0,Sc)),(e.sku||e.merchant)&&(this.Ae=e,this.Np())}getCartItem(){return this.Ae}Np(){if(!this.isStarted&&this.Ae!==null){csArray.prototype.push.call(this.Vl,this.Ae),this.clear();return}this.X.refreshSession(),this.X.isSessionValid()&&this.qv.send()}clear(){this.Ae=null}getRequestParameters(){if(!this.Ae)return{};let t={};return z(this.Ae.sku)&&this.Ae.sku.length>0&&(t.sku=this.Ae.sku),z(this.Ae.merchant)&&this.Ae.merchant.length>0&&(t.me=this.Ae.merchant),t}}return s})(),Tg=["ecommerce:addToCart","ec:cart:add"],Rg=["ecommerce:addTransaction","ec:transaction:create"],vc=["ecommerce:addItem","ec:transaction:items:add"],Cg=["ecommerce:send","ec:transaction:send"],Ig=(()=>{class s{constructor(t,e,i,n,a,c,l){this.h=t,this.Z=e,this.T=i,this.f=n,this.I=a,this.X=c,this.A=l}init(){let t=new Ps(this.h.getTrackerUri(),"transaction"),e=new Ps(this.h.getTrackerUri(),"addtocart");this.Qe=new bg(this.I,t,this.X),this.Ko=new Ag(e,this.X);let i=new hi(this.Z,this.T,this.A,this.Qe);t.setRequestParametersProviders(i),t.after(()=>{this.Qe.clear()});let n=new hi(this.Z,this.T,this.A,this.Ko);e.setRequestParametersProviders(n),e.after(()=>{this.Ko.clear()}),this.f.register(Rg,a=>{this.Qe.addTransaction(a)}),this.f.register(vc,a=>this.Qe.addItem(a)),this.f.register(Cg,()=>this.Qe.sendTransaction()),this.f.register(Tg,a=>{this.Ko.addToCart(a)})}onStartTracking(){this.Qe.start(),this.Ko.start()}}return s})(),Pg=(()=>{class s{constructor(t){this.Jo=t.performance}getRequestParameters(){if(this.Gv())return{};let t=this.Wv();return{str:t.startRender,di:t.domInteractive,dc:t.domComplete,fl:t.fullyLoaded}}Wv(){let t=this.Jo.timing;return{startRender:`${t.domLoading-t.requestStart}`,domInteractive:`${t.domInteractive-t.requestStart}`,domComplete:`${t.domComplete-t.requestStart}`,fullyLoaded:`${t.loadEventEnd-t.requestStart}`}}Gv(){return!(this.Jo&&this.Jo.timing&&this.Jo.timing.loadEventEnd>0)}}return s})(),Ut=(()=>{class s{static build(t,e,i){return csArray.prototype.reduce.call(i,(n,a)=>a.enhanceAnalysisEvent(t,n),e)}}return s})(),$=(()=>{let s;return function(r){r[r.RESIZE=0]="RESIZE",r[r.SCROLL=1]="SCROLL",r[r.MOUSEMOVE=2]="MOUSEMOVE",r[r.MOUSEDOWN=3]="MOUSEDOWN",r[r.MOUSEUP=4]="MOUSEUP",r[r.CLICK=5]="CLICK",r[r.MOUSEOVER=6]="MOUSEOVER",r[r.MOUSEOUT=7]="MOUSEOUT",r[r.CHANGE=10]="CHANGE",r[r.FOCUSIN=11]="FOCUSIN",r[r.FOCUSOUT=12]="FOCUSOUT",r[r.TAP=14]="TAP",r[r.KEYDOWN=15]="KEYDOWN",r[r.KEYUP=16]="KEYUP",r[r.COMMAND=17]="COMMAND",r[r.SUBMIT_COMMAND=18]="SUBMIT_COMMAND",r[r.PERFORMANCE=19]="PERFORMANCE",r[r.DRAG=20]="DRAG",r[r.FLICK=21]="FLICK",r[r.KEYBOARD_NAVIGATION=22]="KEYBOARD_NAVIGATION",r[r.ZOOM=23]="ZOOM",r[r.VIEWPORT_SCALE=24]="VIEWPORT_SCALE",r[r.TEXT_HIGHLIGHT=25]="TEXT_HIGHLIGHT",r[r.DEAD_CLICK=30]="DEAD_CLICK",r[r.DEAD_ZOOM=31]="DEAD_ZOOM",r[r.PAGE_RELOAD=32]="PAGE_RELOAD",r[r.THRASHED_CURSOR=33]="THRASHED_CURSOR",r[r.BLANK_PAGE=34]="BLANK_PAGE",r[r.EXTERNAL_EVENT=35]="EXTERNAL_EVENT",r[r.SUBMIT=36]="SUBMIT"}(s||(s={})),s})(),kr=(()=>{let s;return function(r){r.SUCCESS="success",r.FAILURE="failure",r.ATTEMPT="attempt"}(s||(s={})),s})();function Og(s){return s.tgtHM!==void 0}function _c(s){return s.tgt!==void 0}function Ng(s){return s.tgtLk!==void 0}function Mg(s){return s.x!==void 0&&s.y!==void 0}function kg(s){return s===kr.SUCCESS||s===kr.FAILURE||s===kr.ATTEMPT}var Dg=(()=>{class s{constructor(t,e,i){this.ee=t,this.Dt=e,this.Et=i}processGesture(t,e){switch(t.type){case St.TAP:this.Yv(e);break;case St.FLICK:this.Xv(t,e);break;case St.DRAG:this.Kv(t,e);break;default:break}}Yv(t){let e={type:$.TAP,ts:0,x:0,y:0,tgt:""},i=Ut.build(t,e,this.ee);i.tgt!==ue.INVALID_ELEMENT&&this.O(i)}Kv(t,e){var i,n;let a={type:$.DRAG,ts:0,fd:t.direction,tgt:""};!((i=this.Et)===null||i===void 0)&&i.collectGestureDistance&&(a.distance=t.distance),!((n=this.Et)===null||n===void 0)&&n.collectGestureVelocity&&(a.velocity=t.velocity);let c=Ut.build(e,a,this.ee);c.tgt!==ue.INVALID_ELEMENT&&this.O(c)}Xv(t,e){var i,n;let a={type:$.FLICK,ts:0,fd:t.direction,tgt:""};!((i=this.Et)===null||i===void 0)&&i.collectGestureDistance&&(a.distance=t.distance),!((n=this.Et)===null||n===void 0)&&n.collectGestureVelocity&&(a.velocity=t.velocity);let c=Ut.build(e,a,this.ee);c.tgt!==ue.INVALID_ELEMENT&&this.O(c)}onEvent(t){this.O=t}start(){this.Dt.subscribe(s.Mp,(t,e)=>this.processGesture(t,e))}stop(){this.Dt.unsubscribe(s.Mp)}}return s.Mp="AnalysisGestureTracker",U([Tt()],s.prototype,"processGesture",null),s})(),Lg=(()=>{class s{constructor(t,e,i,n=["submit"]){this.ee=t,this.lt=e,this.Lt=i,this.Jv=n,this.kp="select, select *, input, textarea",this.Qv="select, select *, input, textarea",this.Dp="a, a *, button, button *, select, select *, input, textarea",this.wn="input, select, textarea",this.Zv="form",this.Qo=150,this.t_=400,this.Lp=!1,this.bn=ui((a,c)=>this.scrollListener(a,c),this.Qo),this.xp=ui(a=>this.resizeListener(a),this.Qo),this.e_=yi(a=>this.mouseMoveListener(a),this.t_),this.s_=[{boundElement:window,type:"resize",listener:()=>this.xp()},{boundElement:document,type:"scroll",listener:a=>this.bn(a)},{boundElement:window,type:"mousemove",listener:a=>{this.e_(Rd(a))}},{boundElement:document,type:"mousedown",listener:a=>this.mouseDownListener(a)},{boundElement:document,type:"mouseup",listener:a=>this.mouseUpListener(a)},{boundElement:document,type:"click",listener:a=>this.clickListener(a)}],this.Vp=[{type:"change",listener:this.Lt.on(this.Qv,a=>this.changeListener(a))},{type:"submit",listener:this.Lt.on(this.Zv,a=>this.submitListener(a))}],this.i_=[{boundElement:document,type:"mouseover",listener:this.Lt.on(this.Dp,a=>this.mouseOverListener(a))},{boundElement:document,type:"mouseout",listener:this.Lt.on(this.Dp,a=>this.mouseOutListener(a))},{boundElement:document,type:"focusin",listener:this.Lt.on(this.kp,a=>this.focusInListener(a))},{boundElement:document,type:"focusout",listener:this.Lt.on(this.kp,a=>this.focusOutListener(a))},{boundElement:document,type:"keyup",listener:this.Lt.on(this.wn,a=>this.keyUpListener(a))},{boundElement:document,type:"keydown",listener:this.Lt.on(this.wn,a=>this.keyDownListener(a))},{boundElement:document,type:"copy",listener:this.Lt.on(this.wn,a=>this.copyListener(a))},{boundElement:document,type:"cut",listener:this.Lt.on(this.wn,a=>this.cutListener(a))},{boundElement:document,type:"paste",listener:this.Lt.on(this.wn,a=>this.pasteListener(a))},...csArray.prototype.map.call(this.Vp,a=>({...a,boundElement:document}))],this.D={},this.Vc=(a,c)=>{switch(c){case"initial":case"added":this.hi(a);break;case"removed":this.pi(a);break}},this.ie=new Ds(this.Vc),this.Ac()}hi(t){if(Gi(t)){let e=this.Up();csArray.prototype.forEach.call(e,i=>gt(i))}else{let e=this.jp();csArray.prototype.forEach.call(e,i=>{gt({...i,boundElement:t})})}}pi(t){if(Gi(t)){let e=this.Up();csArray.prototype.forEach.call(e,i=>dt(i))}else{let e=this.jp();csArray.prototype.forEach.call(e,i=>{dt({...i,boundElement:t})})}}onEvent(t){this.O=t}start(){this.ie.observe(),this.hi(document),this.resizeListener()}stop(){this.pi(document),this.ie.disconnect()}flushPendingDebouncedListeners(){this.bn.flushPending(),this.xp.flushPending()}Hp(t){return csArray.prototype.some.call(this.Jv,e=>e===t)}jp(){return this.Lt.isMatchesSelectorSupported()?csArray.prototype.filter.call(this.Vp,t=>!this.Hp(t.type)):(H.warn("Element.matches is not implemented yet"),[])}Up(){let t=[];return csArray.prototype.push.call(t,...this.s_),this.Lt.isMatchesSelectorSupported()?csArray.prototype.push.call(t,...this.i_):H.warn("Element.matches is not implemented yet"),csArray.prototype.filter.call(t,e=>!this.Hp(e.type))}resizeListener(t){let e=ws.getScrollContainer(),i=Ue(e);i&&(this.Lp=!0);let n={type:$.RESIZE,ts:0,x:i?e.clientWidth:Et.windowWidth(),y:i?e.clientHeight:Et.windowHeight()};t!==void 0&&(n.d=t),this.O(n)}scrollListener(t,e){let i=ws.isEventOnScrollContainer(e);!this.Lp&&i&&this.resizeListener();let n={type:$.SCROLL,ts:0,x:i?csEventtarget.apply(e).scrollLeft:Et.windowOffsetX(),y:i?csEventtarget.apply(e).scrollTop:Et.windowOffsetY(),d:t},a=Ut.build(e,n,this.ee);this.O(a)}mouseMoveListener(t){let e={type:$.MOUSEMOVE,ts:0,x:t.pageX,y:t.pageY},i=Ut.build(t,e,this.ee);this.O(i)}mouseDownListener(t){let e={type:$.MOUSEDOWN,ts:0,x:t.pageX,y:t.pageY,tgt:""},i=Ut.build(t,e,this.ee);this.he(i)}mouseUpListener(t){let e={type:$.MOUSEUP,ts:0,x:t.pageX,y:t.pageY,tgt:""},i=Ut.build(t,e,this.ee);this.he(i)}clickListener(t){let e={type:$.CLICK,ts:0,x:t.pageX,y:t.pageY,tgt:""},i=Ut.build(t,e,this.ee);this.he(i)}mouseOverListener(t){let e={type:$.MOUSEOVER,ts:0,x:t.pageX,y:t.pageY,tgt:""},i=Ut.build(t,e,this.ee);this.he(i)}mouseOutListener(t){let e={type:$.MOUSEOUT,ts:0,x:t.pageX,y:t.pageY,tgt:this.lt.getEventTargetPath(t)},i=Ut.build(t,e,this.ee);this.he(i)}focusInListener(t){let e={type:$.FOCUSIN,ts:0,tgt:this.lt.getEventTargetPath(t)},i=Ut.build(t,e,this.ee);this.he(i)}focusOutListener(t){let e={type:$.FOCUSOUT,ts:0,tgt:this.lt.getEventTargetPath(t)},i=Ut.build(t,e,this.ee);this.he(i)}changeListener(t){let e={type:$.CHANGE,ts:0,tgt:""},i=Ut.build(t,e,this.ee);this.he(i)}submitListener(t){let e={type:$.SUBMIT,ts:0,tgt:""},i=Ut.build(t,e,this.ee);this.he(i)}copyListener(t){let e={type:$.COMMAND,ts:0,tgt:this.lt.getEventTargetPath(t),key:bs.COPY};this.he(e)}cutListener(t){let e={type:$.COMMAND,ts:0,tgt:this.lt.getEventTargetPath(t),key:bs.CUT};this.he(e)}pasteListener(t){let e={type:$.COMMAND,ts:0,tgt:this.lt.getEventTargetPath(t),key:bs.PASTE};this.he(e)}keyUpListener(t){let e={type:$.KEYUP,ts:0,tgt:this.lt.getEventTargetPath(t),key:this.Bp(t)};this.he(e)}keyDownListener(t){let e={type:$.KEYDOWN,ts:0,tgt:this.lt.getEventTargetPath(t),key:this.Bp(t)};this.he(e)}Bp(t){let e=this.D[t.key];return e===void 0?q.ALPHANUMERICAL:e}he(t){_c(t)&&t.tgt!==ue.INVALID_ELEMENT&&this.O(t)}Ac(){this.D[" "]=q.SPACE,this.D.Spacebar=q.SPACE,this.D.Enter=q.ENTER,this.D.Backspace=q.BACKSPACE,this.D.Delete=q.DELETE,this.D.ArrowUp=q.ARROWUP,this.D.ArrowDown=q.ARROWDOWN,this.D.ArrowLeft=q.ARROWLEFT,this.D.ArrowRight=q.ARROWRIGHT,this.D.Up=q.ARROWUP,this.D.Down=q.ARROWDOWN,this.D.Left=q.ARROWLEFT,this.D.Right=q.ARROWRIGHT,this.D.CapsLock=q.CAPSLOCK,this.D.Shift=q.SHIFT,this.D.Tab=q.TAB}}return U([P("Event handler type: resize")],s.prototype,"resizeListener",null),U([P("Event handler type: scroll")],s.prototype,"scrollListener",null),U([P("Event handler type: mouseMove"),Tt()],s.prototype,"mouseMoveListener",null),U([P("Event handler type: mouseDown"),Tt()],s.prototype,"mouseDownListener",null),U([P("Event handler type: mouseUp"),Tt()],s.prototype,"mouseUpListener",null),U([P("Event handler type: click"),Tt()],s.prototype,"clickListener",null),U([P("Event handler type: mouseOver"),Tt()],s.prototype,"mouseOverListener",null),U([P("Event handler type: mouseOut"),Tt()],s.prototype,"mouseOutListener",null),U([P("Event handler type: focusIn")],s.prototype,"focusInListener",null),U([P("Event handler type: focusOut")],s.prototype,"focusOutListener",null),U([P("Event handler type: change")],s.prototype,"changeListener",null),U([P("Event handler type: submit"),Tt()],s.prototype,"submitListener",null),U([P("Event handler type: copy")],s.prototype,"copyListener",null),U([P("Event handler type: cut")],s.prototype,"cutListener",null),U([P("Event handler type: paste")],s.prototype,"pasteListener",null),U([P("Event handler type: keyup")],s.prototype,"keyUpListener",null),U([P("Event handler type: keydown")],s.prototype,"keyDownListener",null),s})(),xg=(()=>{class s{constructor(){this.Fp=100,this.An=0,this.Tn=Et.documentHeight(),this.$p={boundElement:document,type:"scroll",listener:t=>this.maxScrollRateListener(t)},this.An=this.Ul(ws.getScrollContainer()).maxScrollRate}onEvent(t){this.O=t}start(){gt(this.$p)}stop(){dt(this.$p)}reset(){let t=ws.getScrollContainer(),{maxScrollRate:e,maxDocumentHeight:i}=this.Ul(t);this.Tn=i,this.An=e,this.O()}Ul(t){let e=0,i=0;if(t===null)i=Et.documentHeight(),e=this.r_(i);else{let n=this.n_(t);i=this.zp(t,n),e=this.o_(t,n)}return{maxScrollRate:e,maxDocumentHeight:i}}maxScrollRateListener(t){let e=null;ws.isEventOnScrollContainer(t)&&(e=csEventtarget.apply(t));let{maxScrollRate:i,maxDocumentHeight:n}=this.Ul(e);(i>this.An||n>this.Tn)&&(this.An=i,n>this.Tn&&(this.Tn=n),this.O())}r_(t){let e=Math.round(this.a_()/t*100);return Math.min(e,this.Fp)}a_(){let t=Et.windowHeight();return Et.windowOffsetY()+t}o_(t,e){let i=t.scrollTop+t.clientHeight+t.getBoundingClientRect().top+e,n=this.zp(t,e),a=Math.round(i/n*100);return Math.min(a,this.Fp)}n_(t){let e=window.getComputedStyle(t).paddingTop||"0px";return parseInt(e,10)}zp(t,e){return t.scrollHeight+t.getBoundingClientRect().top+e}getRequestParameters(){return{sr:`${this.An}`,mdh:`${this.Tn}`}}}return U([P("MaxScrollRate handler")],s.prototype,"maxScrollRateListener",null),s})();var Vg=(()=>{class s{constructor(t,e,i,n,a,c,l,d,g,u,y,E,v,A,k,R,b,x,w,D,j){this.h=t,this.qs=e,this.Dt=i,this.Yi=n,this.jl=a,this.Be=c,this.Ze=l,this.qp=d,this.X=g,this.Wt=u,this.W=y,this.Hl=E,this.Ve=v,this.V=A,this.Zo=k,this.Es=R,this.Ss=b,this.Bl=x,this.Ri=w,this.Ci=D,this.Ii=j,this.Ls=new Qa,this.ta=!1}init(){var t,e,i,n,a,c,l;this.qs.onEvent(d=>this.It(d)),this.Dt.onEvent(d=>this.It(d)),this.Yi.onEvent(()=>{let d=this.Yi.getRequestParameters();this.V.setQueryParams(d),this.Ze.setQueryParams(d)}),this.Hl.onEvent(d=>this.Fe(d)),this.Fl(),(t=this.Zo)===null||t===void 0||t.onEvent(d=>this.It(d)),(e=this.Ri)===null||e===void 0||e.onEvent(d=>this.It(d)),(i=this.Es)===null||i===void 0||i.onEvent(d=>this.It(d)),(n=this.Ss)===null||n===void 0||n.onEvent(d=>this.It(d)),this.c_(),(a=this.Bl)===null||a===void 0||a.onEvent(d=>this.Fe(d)),(c=this.Ci)===null||c===void 0||c.onEvent(d=>this.Fe(d)),(l=this.Ii)===null||l===void 0||l.onEvent(d=>this.Fe(d))}c_(){this.Ze.onBeaconSuccess(()=>{this.Be.clearEvents()}),this.Ze.onBeaconFailure(t=>{this.l_(t)})}initStates(){let t=this.qp.getRequestParameters(),e=this.jl.getRequestParameters(),i=this.Yi.getRequestParameters();this.V.setQueryParams(t),this.V.setQueryParams(e),this.V.setQueryParams(i),this.Ze.setQueryParams(t),this.Ze.setQueryParams(e),this.Ze.setQueryParams(i),this.$l()}clearStates(t){var e,i;this.qs.flushPendingDebouncedListeners(),(e=this.Es)===null||e===void 0||e.flushPendingKeyboardNavigationEvent(),(i=this.Ss)===null||i===void 0||i.flushPendingTextHighlightEvent(),t?(this.zl(),this.sendLastMessageBeacon()):this.sendEvents(),this.Yi.reset(),this.V.removeQueryParams()}start(t){var e,i,n,a,c,l,d;t||(e=this.Bl)===null||e===void 0||e.start(),this.Ve.start(),this.qs.start(),this.Yi.start(),this.Dt.start(),(i=this.Zo)===null||i===void 0||i.start(),(n=this.Ss)===null||n===void 0||n.start(),t||this.Hl.start(),(a=this.Es)===null||a===void 0||a.start(),(c=this.Ri)===null||c===void 0||c.start(),(l=this.Ci)===null||l===void 0||l.start(),(d=this.Ii)===null||d===void 0||d.start()}collectInitialEvents(){var t;(t=this.Zo)===null||t===void 0||t.collectInitialEvents()}onIframeAnalysisBrowserEvent(t){this.Fe(t)}onIframeAnalysisUserEvent(t){this.It(t)}onExternalEvent(t){this.G(t)}Fe(t){this.X.isCurrentPageviewValid()&&this.G(t)}It(t){this.X.refreshSession(),this.X.isSessionValid()&&this.G(t)}G(t){this.Be.addEvent(this.h_(t)),this.Be.isFull()&&this.sendEvents(),this.h.emitDebugEvents&&this.Ls.emit("analysisEvent",{...t,typeName:$[t.type]})}h_(t){return t.ts=this.Pi(),t}zl(){this.Ze.setQueryParams({hlm:"true"}),this.ta=!0}sendLastMessageBeacon(){this.Ze.setQueryParams(this.jl.getRequestParameters()),this.Ze.send(this.Be.stringifyEvents()),this.Ze.removeQueryParams(["hlm"]),this.ta=!1}sendEvents(){this.Be.isEmpty()||(this.V.setQueryParams(this.qp.getRequestParameters()),this.V.setQueryParams(this.jl.getRequestParameters()),this.V.send(this.Be.getEvents()),this.Be.clearEvents())}stop(){var t,e,i,n,a,c,l;this.Ve.stop(),this.qs.stop(),this.Yi.stop(),this.Dt.stop(),this.Hl.stop(),(t=this.Zo)===null||t===void 0||t.stop(),(e=this.Es)===null||e===void 0||e.stop(),(i=this.Ss)===null||i===void 0||i.stop(),(n=this.Ri)===null||n===void 0||n.stop(),this.Be.empty(),(a=this.Bl)===null||a===void 0||a.stop(),(c=this.Ci)===null||c===void 0||c.stop(),(l=this.Ii)===null||l===void 0||l.stop()}$l(){this.es=N.now()}Pi(){return N.now()-this.es}Fl(){this.Ve.onEvent(t=>{var e,i;t!==Ft.Visible&&((e=this.Es)===null||e===void 0||e.flushPendingKeyboardNavigationEvent(),(i=this.Ss)===null||i===void 0||i.flushPendingTextHighlightEvent(),t===Ft.PagehideVisible?this.zl():t===Ft.PagehideHidden?(this.zl(),this.sendLastMessageBeacon()):(!this.Be.isEmpty()||this.ta)&&this.sendLastMessageBeacon())})}l_(t){try{(!this.Be.isEmpty()||this.ta)&&this.Wt.save({requestParameters:t,events:this.Be.getEvents()})}catch{}}pushSubmitCommandEvent(t,e){if(!kg(t)||!Ue(e))throw new Error(`Command misuse: ${Mc}`);let i={status:t,type:$.SUBMIT_COMMAND,ts:0,tgt:this.W.getElementPath(e)};i.tgt!==ue.INVALID_ELEMENT&&this.Fe(i)}}return s})(),Ug=(()=>{class s{constructor(t,e){this.Wt=t,this.V=e,this.Gp=()=>{document.visibilityState==="visible"&&this.Wp()}}start(){this.Wp(),this.Hc()}stop(){this.Bc()}getRecoveryStorage(){return this.Wt}Wp(){let t=this.Wt.recover();if(t!==null){let{requestParameters:e,events:i}=t;this.V.send(i,e)}}Hc(){document.addEventListener("visibilitychange",this.Gp)}Bc(){document.removeEventListener("visibilitychange",this.Gp)}}return s})(),jg=(()=>{class s{constructor(t){this.Fi=t}save(t){localStorage.setItem(this.Fi,csJSON.stringify(t))}clear(){localStorage.removeItem(this.Fi)}recover(){let t=localStorage.getItem(this.Fi);if(t===null)return null;let e=null;try{e=csJSON.parse(t)}catch{H.error(`Invalid item in localStorage. (key:${this.Fi}; value:${t})`)}finally{this.clear()}return e}}return s})(),Hg=(()=>{class s{constructor(t){this.Xi=t,this.Ki=e=>this.processMetric(e),this.N=!1}onEvent(t){this.O=t}start(){this.N||(this.N=!0,this.Xi.onFCP(this.Ki),this.Xi.onCLS(this.Ki),this.Xi.onFID(this.Ki),this.Xi.onLCP(this.Ki),this.Xi.onTTFB(this.Ki),this.Xi.onINP(this.Ki))}stop(){this.N=!1}processMetric(t){if(!this.N)return;let e={type:$.PERFORMANCE,name:t.name,val:t.value,ts:0};this.O(e)}}return U([P("Performance metric handler")],s.prototype,"processMetric",null),s})(),Le,ni,wc,Ji,en,bc=-1,ds=function(s){addEventListener("pageshow",function(r){r.persisted&&(bc=r.timeStamp,s(r))},!0)},wn=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},or=function(){var s=wn();return s&&s.activationStart||0},qt=function(s,r){var t=wn(),e="navigate";return bc>=0?e="back-forward-cache":t&&(document.prerendering||or()>0?e="prerender":document.wasDiscarded?e="restore":t.type&&(e=t.type.replace(/_/g,"-"))),{name:s,value:r===void 0?-1:r,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:e}},xs=function(s,r,t){try{if(PerformanceObserver.supportedEntryTypes.includes(s)){var e=new PerformanceObserver(function(i){Promise.resolve().then(function(){r(i.getEntries())})});return e.observe(Object.assign({type:s,buffered:!0},t||{})),e}}catch{}},Gt=function(s,r,t,e){var i,n;return function(a){r.value>=0&&(a||e)&&((n=r.value-(i||0))||i===void 0)&&(i=r.value,r.delta=n,r.rating=function(c,l){return c>l[1]?"poor":c>l[0]?"needs-improvement":"good"}(r.value,t),s(r))}},bn=function(s){requestAnimationFrame(function(){return requestAnimationFrame(function(){return s()})})},ar=function(s){var r=function(t){t.type!=="pagehide"&&document.visibilityState!=="hidden"||s(t)};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},An=function(s){var r=!1;return function(t){r||(s(t),r=!0)}},_s=-1,$o=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Qi=function(s){document.visibilityState==="hidden"&&_s>-1&&(_s=s.type==="visibilitychange"?s.timeStamp:0,Bg())},zo=function(){addEventListener("visibilitychange",Qi,!0),addEventListener("prerenderingchange",Qi,!0)},Bg=function(){removeEventListener("visibilitychange",Qi,!0),removeEventListener("prerenderingchange",Qi,!0)},Tn=function(){return _s<0&&(_s=$o(),zo(),ds(function(){setTimeout(function(){_s=$o(),zo()},0)})),{get firstHiddenTime(){return _s}}},Si=function(s){document.prerendering?addEventListener("prerenderingchange",function(){return s()},!0):s()},qo=[1800,3e3],Ac=function(s,r){r=r||{},Si(function(){var t,e=Tn(),i=qt("FCP"),n=xs("paint",function(a){a.forEach(function(c){c.name==="first-contentful-paint"&&(n.disconnect(),c.startTimee.value&&(e.value=i,e.entries=n,t())},c=xs("layout-shift",a);c&&(t=Gt(s,e,Go,r.reportAllChanges),ar(function(){a(c.takeRecords()),t(!0)}),ds(function(){i=0,e=qt("CLS",0),t=Gt(s,e,Go,r.reportAllChanges),bn(function(){return t()})}),setTimeout(t,0))}))},Js={passive:!0,capture:!0},$g=new Date,Wo=function(s,r){Le||(Le=r,ni=s,wc=new Date,Rc(removeEventListener),Tc())},Tc=function(){if(ni>=0&&ni1e12?new Date:performance.now())-s.timeStamp;s.type=="pointerdown"?function(t,e){var i=function(){Wo(t,e),a()},n=function(){a()},a=function(){removeEventListener("pointerup",i,Js),removeEventListener("pointercancel",n,Js)};addEventListener("pointerup",i,Js),addEventListener("pointercancel",n,Js)}(r,s):Wo(r,s)}},Rc=function(s){["mousedown","keydown","touchstart","pointerdown"].forEach(function(r){return s(r,zg,Js)})},Yo=[100,300],qg=function(s,r){r=r||{},Si(function(){var t,e=Tn(),i=qt("FID"),n=function(l){l.startTimer.latency){if(t)t.entries.push(s),t.latency=Math.max(t.latency,s.duration);else{var e={id:s.interactionId,latency:s.duration,entries:[s]};Lr[e.id]=e,se.push(e)}se.sort(function(i,n){return n.latency-i.latency}),se.splice(10).forEach(function(i){delete Lr[i.id]})}},Yg=function(s,r){r=r||{},Si(function(){var t;Wg();var e,i=qt("INP"),n=function(c){c.forEach(function(g){g.interactionId&&Jo(g),g.entryType==="first-input"&&!se.some(function(u){return u.entries.some(function(y){return g.duration===y.duration&&g.startTime===y.startTime})})&&Jo(g)});var l,d=(l=Math.min(se.length-1,Math.floor(Ko()/50)),se[l]);d&&d.latency!==i.value&&(i.value=d.latency,i.entries=d.entries,e())},a=xs("event",n,{durationThreshold:(t=r.durationThreshold)!==null&&t!==void 0?t:40});e=Gt(s,i,Xo,r.reportAllChanges),a&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),ar(function(){n(a.takeRecords()),i.value<0&&Ko()>0&&(i.value=0,i.entries=[]),e(!0)}),ds(function(){se=[],Pc=Ic(),i=qt("INP"),e=Gt(s,i,Xo,r.reportAllChanges)}))})},Qo=[2500,4e3],xr={},Xg=function(s,r){r=r||{},Si(function(){var t,e=Tn(),i=qt("LCP"),n=function(l){var d=l[l.length-1];d&&d.startTimeperformance.now())return;t.value=Math.max(n-or(),0),t.entries=[i],e(!0),ds(function(){t=qt("TTFB",0),(e=Gt(s,t,Zo,r.reportAllChanges))(!0)})}})},Qg=(()=>{class s{onFCP(t){Ac(t,{reportAllChanges:!0})}onCLS(t){Fg(t,{reportAllChanges:!0})}onFID(t){qg(t,{reportAllChanges:!0})}onLCP(t){Xg(t,{reportAllChanges:!0})}onTTFB(t){Jg(t,{reportAllChanges:!0})}onINP(t){Yg(t,{reportAllChanges:!0})}}return s})();var Zg=(()=>{class s{constructor(){this.Qo=500,this.u_=500,this.d_=ui((t,e)=>this.onResize(e),this.Qo),this.Vt=null,this.Yp=!0}start(){this.Vt||(this.p_=s.scheduleStart(()=>{this.run()},this.u_))}stop(){var t;this.Vt&&(dt(this.Vt),this.Vt=null),(t=this.p_)===null||t===void 0||t.call(this)}static scheduleStart(t,e){let i=0,n=null,a=()=>{i=window.csSetTimeout(()=>{i=0,t()},e)};return document.visibilityState==="visible"?a():(n={boundElement:document,type:"visibilitychange",listener:()=>{document.visibilityState==="visible"&&(a(),dt(n),n=null)}},gt(n)),()=>{i>0&&(window.csClearTimeout(i),i=0),n!==null&&(dt(n),n=null)}}onEvent(t){this.O=t}run(){var t;window.outerWidth!==0&&(this.f_=this.Xp=s.g_(),this.Kp=window.devicePixelRatio,this.Jp=this.Kp,this.Qp=window.outerWidth,this.Zp=window.innerWidth,this.tf=window.innerHeight,this.ql=((t=window.visualViewport)===null||t===void 0?void 0:t.scale)||1,this.Vt={boundElement:window.visualViewport||window,type:"resize",listener:e=>this.d_(e)},gt(this.Vt),this.collectInitialEvents())}collectInitialEvents(){if(!this.Vt)return;let t={type:$.ZOOM,ts:0,val:s.ef(this.Xp)};if(this.O(t),window.visualViewport){let e={type:$.VIEWPORT_SCALE,ts:0,val:window.visualViewport.scale};this.O(e)}}onResize(t){var e;let i=((e=window.visualViewport)===null||e===void 0?void 0:e.scale)||1;this.m_(i),window.visualViewport&&this.y_(i),this.Qp=window.outerWidth,this.Zp=window.innerWidth,this.tf=window.innerHeight,this.ql=i}m_(t){let e;if(window.devicePixelRatio!==this.Jp?(e=window.devicePixelRatio/this.Kp*this.f_,this.Jp=window.devicePixelRatio,this.Yp=!1):this.Qp===window.outerWidth&&this.tf!==window.innerHeight&&this.Zp!==window.innerWidth&&this.ql===t&&this.Yp&&(e=window.outerWidth/window.innerWidth/t),e!==void 0){this.Xp=e;let i={type:$.ZOOM,ts:0,val:s.ef(e)};this.O(i)}}y_(t){if(t===this.ql)return;let e={type:$.VIEWPORT_SCALE,ts:0,val:t};this.O(e)}static g_(){return s.E_()?window.csScreen.deviceXDPI/window.csScreen.logicalXDPI:window.outerWidth/window.innerWidth}static E_(){return"deviceXDPI"in window.csScreen&&"logicalXDPI"in window.csScreen}static ef(t){return t*100<<0}}return U([P("ZoomTracker.run")],s.prototype,"run",null),U([P("ZoomTracker.onResize")],s.prototype,"onResize",null),U([P("ZoomTracker.scheduleStart")],s,"scheduleStart",null),s})(),tm=(()=>{class s{constructor(){this.vs=0,this.Gl=0,this._s=0,this.Wl=0,this.ws=0}incrementFocusWithKeyboard(){this.vs+=1}incrementFocusWithMouse(){this.Gl+=1}incrementClickWithKeyboard(){this._s+=1}incrementClickWithMouse(){this.Wl+=1}incrementScrollWithKeyboard(){this.ws+=1}buildKeyboardNavigationCounters(){return{focus:{keyboardCounter:this.vs,mouseCounter:this.Gl},click:{keyboardCounter:this._s,mouseCounter:this.Wl},scroll:{keyboardCounter:this.ws}}}reset(){this.vs=0,this.Gl=0,this._s=0,this.Wl=0,this.ws=0}}return s})(),em=5e3,sm=150,im=(()=>{class s{constructor(){this.Rn=yi(()=>this.S_(),em),this.bn=ui((t,e)=>this.scrollListener(),sm),this.vs=!1,this._s=!1,this.ws=!1,this.sf=[{boundElement:document,type:"click",listener:t=>this.clickListener(t)},{boundElement:document,type:"focus",listener:t=>this.focusListener(t)},{boundElement:document,type:"keydown",listener:t=>this.keyDownListener(t)},{boundElement:document,type:"mousedown",listener:()=>this.v_()},{boundElement:document,type:"mouseover",listener:t=>this.mouseOverListener(t)},{boundElement:document,type:"scroll",listener:()=>this.bn()},{boundElement:document,type:"wheel",listener:()=>this.__()}],this.Oi=new tm}start(){csArray.prototype.forEach.call(this.sf,t=>gt(t))}stop(){csArray.prototype.forEach.call(this.sf,t=>dt(t))}onEvent(t){this.O=t}flushPendingKeyboardNavigationEvent(){this.bn.flushPending(),this.Rn.flushPending()}clickListener(t){let e=ut(t);Ue(e)&<.isElementFocusable(e)&&(this._s?(this.Oi.incrementClickWithKeyboard(),this._s=!1):this.Oi.incrementClickWithMouse(),this.Rn())}focusListener(t){let e=ut(t);this.vs&&Ue(e)&<.isElementFocusable(e)&&(this.Oi.incrementFocusWithKeyboard(),this.Rn(),this.vs=!1)}keyDownListener(t){!this.vs&&(t.key==="Tab"||t.key==="ArrowUp"||t.key==="ArrowDown"||t.key==="ArrowRight"||t.key==="ArrowLeft")&&(this.vs=!0),!this._s&&(t.key==="Spacebar"||t.key===" "||t.key==="Enter")&&(this._s=!0),!this.ws&&(t.key==="ArrowDown"||t.key==="ArrowUp"||t.key==="ArrowRight"||t.key==="ArrowLeft"||t.key==="PageUp"||t.key==="PageDown"||t.key==="Spacebar"||t.key===" ")&&(this.ws=!0)}v_(){this.vs=!1,this._s=!1}mouseOverListener(t){let e=ut(t);Ue(e)&<.isElementFocusable(e)&&(this.Oi.incrementFocusWithMouse(),this.Rn())}scrollListener(){this.ws&&(this.Oi.incrementScrollWithKeyboard(),this.Rn(),this.ws=!1)}__(){this.ws=!1}S_(){let t={type:$.KEYBOARD_NAVIGATION,ts:0,val:this.Oi.buildKeyboardNavigationCounters()};this.O(t),this.Oi.reset()}}return U([P("Keyboard navigation Event handler type: click")],s.prototype,"clickListener",null),U([P("Keyboard navigation Event handler type: focus")],s.prototype,"focusListener",null),U([P("Keyboard navigation Event handler type: keydown")],s.prototype,"keyDownListener",null),U([P("Keyboard navigation Event handler type: mouseover")],s.prototype,"mouseOverListener",null),U([P("Event handler type: scroll")],s.prototype,"scrollListener",null),s})(),rm=(()=>{class s{constructor(){this.ss=null,this.rf=[{boundElement:document,type:"selectionchange",listener:()=>this.selectionChangeListener()},{boundElement:document,type:"copy",listener:()=>this.copyListener()}]}onEvent(t){this.O=t}start(){csArray.prototype.forEach.call(this.rf,t=>gt(t))}stop(){csArray.prototype.forEach.call(this.rf,t=>dt(t))}flushPendingTextHighlightEvent(){this.ss&&this.nf(this.ss)}selectionChangeListener(){let t=document.getSelection();if(!t)return;if(!this.ss){t.anchorNode&&Rs(t.anchorNode)&&t.toString().length!==0&&(this.ss={anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,length:t.toString().length});return}let{anchorNode:e,anchorOffset:i}=this.ss;if(e!==t.anchorNode||i!==t.anchorOffset){this.nf(this.ss);return}if(Rs(t.anchorNode)){let n=t.toString().length;n>this.ss.length&&(this.ss.length=n)}}copyListener(){this.ss&&this.of()}nf(t){let e={type:$.TEXT_HIGHLIGHT,ts:0,len:t.length};this.O(e),this.of()}of(){this.ss=null}}return U([P("Text highlight event handler type: selectionChange")],s.prototype,"selectionChangeListener",null),U([P("Text highlight event handler type: copy")],s.prototype,"copyListener",null),s})();var vi=(()=>{class s{isEventTypeSupported(t){return csArray.prototype.indexOf.call(this.supportedEventTypes,t)!==-1}enhanceAnalysisEvent(t,e){return this.isEventTypeSupported(e.type)?this.baseEnhanceAnalysisEvent(t,e):e}}return s})(),nm=(()=>{class s extends vi{constructor(){super(...arguments),this.supportedEventTypes=[$.CHANGE],this.D_=["text","email","number","search","tel","url","password"]}baseEnhanceAnalysisEvent(t,e){let i=ut(t);return Zi(i)&&csArray.prototype.indexOf.call(this.D_,i.type)>=0&&(e.isBlank=i.value===""),e}}return s})();var Oc=(()=>{class s extends vi{constructor(t){super(),this.lt=t,this.supportedEventTypes=[$.MOUSEDOWN,$.MOUSEUP,$.CLICK,$.MOUSEOVER,$.TAP,$.DRAG,$.FLICK,$.SUBMIT,$.CHANGE]}baseEnhanceAnalysisEvent(t,e){return e.tgt||(e.tgt=this.lt.getEventTargetPath(t)),e}}return s})(),ta=65535,om=(()=>{let s;return function(r){function t(e){let i=ut(e);if(!i||!ot(i)||!$e(i.getBoundingClientRect)||!Ct(e.pageX)||!Ct(e.pageY))return{xRel:-1,yRel:-1,valid:!1};let n=i.getBoundingClientRect(),a=e.pageX-n.left-Et.windowOffsetX(),c=e.pageY-n.top-Et.windowOffsetY();i!==document.documentElement&&(a+=i.scrollLeft,c+=i.scrollTop);let l=Math.max(i.scrollWidth,n.width),d=Math.max(i.scrollHeight,n.height),g=Math.round(a/l*ta),u=Math.round(c/d*ta);return{xRel:g,yRel:u,valid:!0}}r.getRelativePosition=t}(s||(s={})),s})(),am=(()=>{class s extends vi{constructor(t,e){super(),this.Os=t,this.lt=e,this.supportedEventTypes=[$.MOUSEMOVE,$.CLICK],this.Zl=""}baseEnhanceAnalysisEvent(t,e){let{valid:i,xRel:n,yRel:a}=om.getRelativePosition(t);if(i){let c=this.lt.getEventTargetPath(t);c!==ue.INVALID_ELEMENT&&(e.xRel=n,e.yRel=a,e.type===$.MOUSEMOVE&&(c!==this.Zl||this.Os.iframesTracking?(this.Zl=c,e.tgtHM=c):e.tgtHM=""))}else e.type===$.MOUSEMOVE&&(this.Zl="");return e}}return s})(),Ne=(()=>{let s;return function(r){r[r.ANONYMIZED=0]="ANONYMIZED",r[r.CAPTURED=1]="CAPTURED",r[r.MASKED=2]="MASKED",r[r.ENCRYPTED=3]="ENCRYPTED"}(s||(s={})),s})(),ea=100,Nc=(()=>{class s extends vi{constructor(t,e,i){super(),this.h=t,this.ue=e,this.I=i,this.supportedEventTypes=[$.TAP,$.CLICK,$.SUBMIT]}L_(t){let e="",i=document.createTreeWalker(t,NodeFilter.SHOW_TEXT),n=i.nextNode();for(;n;){if(e+=n.textContent,on(n.parentElement)||nn(n.parentElement)||this.ue.getElementSensitiveStatus(n.parentElement)!==Ne.CAPTURED)return!0;if(csString.prototype.trim.call(e).length>=ea)break;n=i.nextNode()}return!1}x_(t){let e=Yr(t,"button,a");return e||(this.h.collectTargetText===qr.ButtonAndLinkOnly?null:t)}baseEnhanceAnalysisEvent(t,e){if(Ue(csEventtarget.apply(t))){let i=this.x_(csEventtarget.apply(t));if(i&&z(i.textContent)&&!this.L_(i)&&!this.I.hasPII(i.textContent,this.h.anonymizeDigits)){let n=ft.truncate(csString.prototype.trim.call(i.textContent),ea);n.length>0&&(e.text=n)}}return e}}return s})(),cm=(()=>{class s extends vi{constructor(t,e){super(),this.lt=t,this.ue=e,this.supportedEventTypes=[$.CLICK,$.SUBMIT,$.CHANGE]}baseEnhanceAnalysisEvent(t,e){let i=this.ue.getSensitiveStatus().useAnonymization,{path:n,hierarchy:a}=this.lt.getEventTargetPathAndHierarchy(t,i);return e.tgt=n,e.hrchy=a,e}}return s})();function lm(s,r,t){let e=[];return s.mouseMoveHeatmapEnabled&&csArray.prototype.push.call(e,new am(s,r)),s.isCollectTargetTextEnabled()&&csArray.prototype.push.call(e,new Nc(s,t,new gi)),s.collectHierarchy&&csArray.prototype.push.call(e,new cm(r,t)),csArray.prototype.push.call(e,new nm,new Oc(r)),e}function hm(s,r,t){let e=[];return s.isCollectTargetTextEnabled()&&csArray.prototype.push.call(e,new Nc(s,t,new gi)),csArray.prototype.push.call(e,new Oc(r)),e}var um=50,dm=(()=>{class s{constructor(t=[]){this.Nt=t}stringifyEvents(){return csJSON.stringify(this.Nt)}addEvent(t){csArray.prototype.push.call(this.Nt,t)}eventsCount(){return this.Nt.length}clearEvents(){this.Nt=[]}empty(){this.clearEvents()}isFull(){return this.eventsCount()>=um}isEmpty(){return this.Nt.length===0}getEvents(){return this.Nt}}return s})(),pm="csAnalysisEventsPersisted",sa="v2/events",Mc=["submit"],fm=(()=>{class s{constructor(t,e,i,n,a,c,l,d,g,u,y,E){this.h=t,this.Z=e,this.T=i,this.W=n,this.Lt=a,this.f=c,this.X=l,this.Dt=d,this.ot=g,this.At=u,this.J=y,this.ue=E}init(){let t=new dm,e=this.At.create(`${this.h.getTrackerUri()}/${sa}`,!0,"base64");this.na=this.V_(e),this.ke=this.U_(t,this.na.getRecoveryStorage(),e),this.ke.init(),this.J.addListener(this.ke),this.ot.addListener(this.ke),this.f.register(Mc,(i,n)=>{this.ke.pushSubmitCommandEvent(i,n)})}onStartTracking(t){this.na.start(),this.ke.start(t)}onAfterNaturalPageView(){this.ke.initStates()}onAfterArtificialPageView(){this.ke.initStates(),this.ke.collectInitialEvents()}onArtificialPageViewEnd(){this.ke.clearStates(!0)}onBeforeSessionRenewal(){this.ke.clearStates(),this.ke.stop(),this.na.stop()}onOptout(){this.ke.stop(),this.na.stop()}U_(t,e,i){var n;let a=new Pg(window),c=new xg,l=lm(this.h,this.W,this.ue),d=[];this.h.collectSubmit||csArray.prototype.push.call(d,"submit");let g=new Lg(l,this.W,this.Lt,d),u=hm(this.h,this.W,this.ue),y=new Dg(u,this.Dt),E=new Hg(new Qg),v=new oc,A,k,R;this.h.accessibilityEnabled&&(A=new Zg,k=new im,R=new rm);let b=new lc(`${this.h.getTrackerUri()}/${sa}`),x=new hi(this.Z,this.T),w,D,j,W;return new Vg(this.h,g,y,c,a,t,b,x,this.X,e,this.W,E,v,i,A,k,R,w,D,j,W)}V_(t){return new Ug(new jg(pm),t)}}return s})(),qi=(()=>{let s;return function(r){r.Artificial="a",r.Renewal="r",r.Natural="n"}(s||(s={})),s})(),gm=(()=>{class s extends It{constructor(t,e,i,n,a){super(),this.E=t,this.J=e,this.th=i,this.A=n,this.Ke=a}init(){this.j_()}onStart(t){t?this.H_():this.B_()}onStop(){}triggerArtificialPageView(t,e){this.isStarted?this.mf(t,e):Ct(t)&&this.A.overridePath(t,e),this.isStarted||(this.J.emitTargetingRulesArtificialPageview(this.A.getUrl()),this.A.cleanupOverrideLifespan())}B_(){this.Ke.setPageViewType(qi.Natural),this.E.emitBeforeNaturalPageView(),this.th.send(),this.A.cleanupOverrideLifespan(),this.E.emitAfterNaturalPageView()}H_(){this.Ke.setPageViewType(qi.Renewal),this.E.emitBeforeNaturalPageView(),this.th.send(),this.E.emitAfterNaturalPageView()}mf(t,e){this.Ke.setPageViewType(qi.Artificial),this.E.emitArtificialPageViewEnd(),Ct(t)&&this.A.overridePath(t,e),this.E.emitBeforeArtificialPageView(),this.th.send(),this.A.cleanupOverrideLifespan(),this.E.emitAfterArtificialPageView()}j_(){window.addEventListener("pageshow",t=>{this.isStarted&&t.persisted&&this.mf()})}}return s})(),mm=window.navigator.language||window.navigator.userLanguage||window.navigator.browserLanguage||window.navigator.systemLanguage||"unknown";function ym(){return{la:mm}}var Em=(()=>{class s{constructor(t,e){this.K=t,this.ft=e,this.eh=!1}getRequestParameters(){return{dr:this.ih()}}addUrlMaskingPattern(t){this.ft.addUrlMaskingPattern(t)}enableRemoveQueryString(){this.eh=!0}disableRemoveQueryString(){this.eh=!1}ih(){let t=this.eh?this.K.removeQueryString(this.yf()):this.yf();return this.K.anonymizeUrl(t,{maskingPatterns:this.ft.getUrlMaskingPatterns()})}yf(){let t="";try{t=window.top.document.referrer}catch{if(window.parent)try{t=window.parent.document.referrer}catch{t=""}}return t===""&&(t=document.referrer),typeof t!="string"&&(t=""),t}}return s})(),Sm=99999,vm=(()=>{class s{constructor(t){this.w=t,this.F_=this.$_()&&window.CSCurrentScript}z_(){let t=window.CSCurrentScript;if(!t)return null;let e=window.performance.getEntriesByName(t.src,"resource")[0];return!e||this.q_(e)?null:Math.round(e.responseEnd-e.fetchStart)}q_(t){let e=t.transferSize;return e!==void 0?e===0||e===300||e{class s{constructor(){this.Ef=new Set,this.Sf=[],this.rh=new Set,this.nh=[]}addUrlMaskingPattern(t){if(this.Ef.has(t))return;this.Ef.add(t);let e=ia(t);csArray.prototype.push.call(this.Sf,e)}getUrlMaskingPatterns(){return this.Sf}resetPartialUrlMaskingPatterns(){this.rh.clear(),this.nh=[]}addPartialUrlMaskingPattern(t){if(this.rh.has(t))return;this.rh.add(t);let e=ia(t);csArray.prototype.push.call(this.nh,e)}getPartialUrlMaskingPatterns(){return this.nh}}return s})(),bm=["trackPageview"],ra=["setPath"],na=["setQuery"],oa=["referrer:maskUrl"],Am=["referrer:removeQueryString"],Tm=["referrer:keepQueryString"],Rm=(()=>{class s{constructor(t,e,i,n,a,c,l,d,g,u,y,E,v,A,k){this.h=t,this.f=e,this.E=i,this.Me=n,this.T=a,this.w=c,this.de=l,this.vt=d,this.K=g,this.A=u,this.Zt=y,this.Ke=E,this.J=v,this.is=A,this.tr=k}init(){var t;let e=new Ps(this.h.getTrackerUri(),"pageview");this.er=new gm(this.E,this.J,e,this.A,this.Ke);let i=new Em(this.K,new wm);this.er.init();let n=new hi(this.Me,this.T,Et,i,this.A,this.de,sn,this.vt,this.Ke,new vm(this.w),this.Zt);this.is&&n.addProvider(this.is),this.tr&&n.addProvider(this.tr);let a=this.h.isCsCrosswritingHeap();if(a||this.h.isCsSideloadingHeap()||this.h.isHeapSideloadsCs()){let c=(t=this.h.heapEnvironment)===null||t===void 0?void 0:t.env_id;n.addProvider({getRequestParameters(){let l={cw:a?"1":"2"};return c&&(l.happid=c),l}})}e.setRequestParametersProviders(n),this.f.register(bm,(c,l)=>{if(!z(c)){this.er.triggerArtificialPageView();return}this.oh(l)?this.er.triggerArtificialPageView(c,l):this.er.triggerArtificialPageView(c)}),this.f.register(ra,(c,l)=>{if(!z(c))throw new Error(`Command misuse: ${ra[0]}`);this.oh(l)?this.A.overridePath(c,l):this.A.overridePath(c)}),this.f.register(na,(c,l)=>{if(!z(c))throw new Error(`Command misuse: ${na[0]}`);this.oh(l)?this.A.overrideQuery(c,l):this.A.overrideQuery(c)}),this.f.register(oa,c=>{if(!z(c))throw new Error(`Command misuse: ${oa[0]}`);i.addUrlMaskingPattern(c)}),this.f.register(Am,()=>i.enableRemoveQueryString()),this.f.register(Tm,()=>i.disableRemoveQueryString())}start(t){this.er.start(t)}onBeforeSessionRenewal(){this.er.stop()}oh(t){return Fe(t)&&t!==null}}return s})(),Cm=(()=>{class s{constructor(t){this.lt=t}on(t,e){return i=>{this.lt.hasValidEventTarget(i)&&this.W_(i,t)&&e(i)}}W_(t,e){let i=ut(t);return Kt.call(i,e)}isMatchesSelectorSupported(){return!!Kt}}return s})(),Im=(()=>{class s{constructor(){}onLoad(t){this.Ui=t}onLoadCallbackExecute(){this.Ui()}start(){let t=this.onLoadCallbackExecute.bind(this);this.Y_(t)}Y_(t){document.readyState==="complete"||document.readyState!=="loading"&&!document.documentElement.doScroll?csSetTimeout(t):(document.addEventListener("DOMContentLoaded",e),window.addEventListener("load",e));function e(){document.removeEventListener("DOMContentLoaded",e),window.removeEventListener("load",e),t()}}}return U([P("onLoad")],s.prototype,"onLoadCallbackExecute",null),s})(),Pm=(()=>{class s{constructor(t,e,i){this.h=t,this.T=e,this.w=i,this.es=N.now()}resetStartTime(){this.es=N.now()}getSessionData(){let{projectId:t}=this.h,e=this.T.getVisitor();e==null&&H.warn("Visitor is null. This happens when a snippet tries to get Session Data before the tag was initialized.");let{id:i,visitsCount:n}=e!=null?e:{},a=this.w.getSession();a===null&&H.warn("Session is null. This happens when a snippet tries to get Session Data before the tag was initialized.");let{pageNumber:c}=a!=null?a:{};return{projectId:t,userId:i,sessionNumber:n,pageNumber:c,relativeTimestamp:N.now()-this.es}}}return s})(),Om=["clearSession"],Nm=["extendSession"];var Mm=["getSessionData"],km=["session:start:newVisitor"],Dm=["session:clear:visitor"],Lm=(()=>{class s{constructor(t,e,i,n){this.h=t,this.T=e,this.w=i,this.f=n}init(){this.ah=new Pm(this.h,this.T,this.w),this.f.register(Om,()=>this.w.removeSession()),this.f.register(Nm,()=>this.w.extendSessionPeriodically(),{disableApplyPending:!0}),this.f.register(Mm,()=>this.ah.getSessionData(),{disableApplyPending:!0}),this.f.register(km,()=>this.T.renewVisitor()),this.f.register(Dm,()=>{this.T.resetVisitor()},{disableApplyImmediate:!0})}onBeforeNaturalPageView(){this.T.createOrUpdateVisitor(),this.w.createOrUpdateSession()}onBeforeArtificialPageView(){this.w.abortQuotaServiceRequest(),this.T.createOrUpdateVisitor(),this.w.createOrUpdateSession()}onAfterNaturalPageView(){this.ah.resetStartTime()}onAfterArtificialPageView(){this.ah.resetStartTime()}onOptout(){this.T.removeVisitor(),this.w.removeSession()}onCollectStateChange(t,e){this.w.updateCollectState(t,e)}}return s})(),xm=60*1e3,Vm=30*1e3,Um=(()=>{class s{constructor(t,e){this.w=t,this.T=e,this.ch=!1,this.X_=yi(()=>this.w.refreshSession(),Vm)}onSessionExpired(t){this.K_=t}isSessionValid(){return this.ch?!0:!(!this.w.hasValidSession()||this.w.pollCacheRefreshEvent()&&this.T.isSessionRenewed())}isCurrentPageviewValid(){let t=this.w.hasValidSession();return this.w.pollCacheRefreshEvent(!1)?!this.T.isSessionRenewed():t}refreshSession(){this.isSessionValid()?this.X_():this.J_()&&(this.vf=N.now(),this.renewSession())}renewSession(){this.ch=!0,this.K_(),this.ch=!1}J_(){return!Z(this.vf)||N.now()-this.vf>xm}}return s})();var ls;(function(s){s.ContentSquare="CONTENTSQUARE",s.LoadedByClicktale="LOADED_BY_CLICKTALE",s.LoadClicktalePtc="LOAD_CLICKTALE_PTC",s.DualCollectionReview="DUAL_COLLECTION_REVIEW",s.DualCollection="DUAL_COLLECTION",s.ContentSquareTagClickTaleEndpoints="CONTENTSQUARE_TAG_CLICKTALE_ENDPOINTS"})(ls||(ls={}));function Dc(s){return s.tagDeploymentMode===ls.DualCollectionReview||s.tagDeploymentMode===ls.DualCollection}function jm(s){return Dc(s)||s.tagDeploymentMode===ls.LoadClicktalePtc}var aa=(()=>{let s;return function(r){function t(){return window.ClickTaleIsRecording&&window.ClickTaleIsRecording()}r.isRecording=t;function e(){window.ClickTaleStop&&window.ClickTaleStop()}r.stopRecording=e;function i(c){window.ClickTaleLogicalWithUploadPage&&window.ClickTaleLogicalWithUploadPage(c)}r.triggerLogicalPageView=i;function n(c){window.ClickTaleEvent&&window.ClickTaleEvent(c)}r.sendPageEvent=n;function a(c){window.ClickTaleEventTrigger&&window.ClickTaleEventTrigger(c)}r.sendEventTriggerRecording=a}(s||(s={})),s})();var Hm="@ETP@",ca="@user-identifier@",Bm=(()=>{class s extends It{constructor(t,e,i,n){super(),this.h=t,this.jw=e,this.ce=i,this.J=n,this.hh=[],this.gi=[]}onStart(){csArray.prototype.forEach.call(this.hh,t=>this.Df(t)),this.hh=[],csArray.prototype.forEach.call(this.gi,t=>this.Lf(t)),this.gi=[]}onStop(){}Df(t){this.Hw(t)?Zs.isSupported()&&this.Bw(t):this.Fw(t)}trackPageEvent(t){if(!s.xf(t))throw new Error(`Command misuse: ${Lc[0]}`);this.isStarted?this.Df(t):csArray.prototype.push.call(this.hh,t)}Hw(t){return Ge(t,ca)}async Bw(t){if(!this.h.customHashIdEnabled)return;let e=csString.prototype.slice.call(t,ca.length);if(e.length>Zs.MAX_DIGEST_INPUT_SIZE){H.warn("UserIdentifier event: invalid user identifier");return}let i=await Zs.digest(e);i?(this.ar={eventName:i,isETR:!1,isCustomHashId:!0},this.da()):H.warn("Page event: unable to compute customHashId"),this.h.encryptionEnabled&&this.J.emitUserIdentifierEvent(e)}Fw(t){this.J.emitPageEvent(t),this.ar={eventName:t,isETR:!1,isCustomHashId:!1},this.da(),this.h.tagDeploymentMode===ls.LoadClicktalePtc&&aa.sendPageEvent(t)}Lf(t){this.h.malkaEtrEnabled?this.$w(t):this.zw(t)}trackEventTriggerRecording(t){if(!s.xf(t))throw new Error(`Command misuse: ${xc[0]}`);this.isStarted?this.Lf(t):csArray.prototype.push.call(this.gi,t)}$w(t){Ge(t,Hm)?this.J.emitEventTriggerRecording(t,Be.ETR_PAGE):this.J.emitEventTriggerRecording(t,Be.ETR_SESSION),this.ar={eventName:t,isETR:!0,isCustomHashId:!1},this.da()}zw(t){jm(this.h)&&(this.J.emitEventTriggerRecording(t,Be.ETR_LEGACY),this.ar={eventName:t,isETR:!0,isCustomHashId:!1},this.da(),this.h.tagDeploymentMode===ls.LoadClicktalePtc&&aa.sendEventTriggerRecording(t))}getRequestParameters(){return{value:this.ce.compressSync(this.ar.eventName,"base64"),ct:this.ce.algorithm,isETR:`${this.ar.isETR}`,isCustomHashId:`${this.ar.isCustomHashId}`}}da(){this.jw.send()}static xf(t){return z(t)&&!!csString.prototype.trim.call(t)}}return s})(),Lc=["trackPageEvent"],xc=["trackEventTriggerRecording"],Fm=(()=>{class s{constructor(t,e,i,n,a){this.h=t,this.f=e,this.ce=i,this.Me=n,this.J=a}init(){let t=new Ps(this.h.getTrackerUri(),"pageEvent");this.pa=new Bm(this.h,t,this.ce,this.J),t.setRequestParametersProviders(this.pa,this.Me),this.f.register(Lc,e=>{this.pa.trackPageEvent(e)}),this.f.register(xc,e=>{this.pa.trackEventTriggerRecording(e)})}onStartTracking(){this.pa.start()}}return s})(),Vc=(()=>{class s{constructor(){this.subscriptions={}}subscribe(t,e){this.subscriptions[t]=e,Object.keys(this.subscriptions).length===1&&this.onStartTracking()}unsubscribe(t){delete this.subscriptions[t],Object.keys(this.subscriptions).length===0&&this.onStopTracking()}}return s})(),$m=(()=>{class s extends Vc{constructor(){super(),this.F=new gc(t=>this.errorListener(t))}onStartTracking(){this.F.observe()}onStopTracking(){this.F.disconnect()}errorListener(t){let e=this.qw(t);for(let i in this.subscriptions){let n=this.subscriptions[i];n(e)}}Gw(t){return t=t!=null?t:"[NO ERROR MESSAGE]",ft.truncate(t,s.wl,ft.ELLIPSIS)}Ww(t){return!t||Bt(t)?"":ft.truncate(t,s.bl,ft.ELLIPSIS)}qw(t){return{errorType:"jsError",message:this.Gw(t.message),filename:this.Ww(t.filename),lineno:t.lineno,colno:t.colno}}}return s.wl=1024,s.bl=150,U([P("Event handler type: error")],s.prototype,"errorListener",null),s})(),zm=(()=>{class s{constructor(t){this.f=t}init(){this.Vf(s.Yw,qa),this.Vf(s.Xw,za)}Vf(t,e){this.f.register([t],(i,n)=>{!z(i)||!(z(n)||ze(n))||H.error(n,`${e}${i}`)})}}return s.Xw="logSnippetError",s.Yw="logImplementationSnippetError",s})(),qm=(()=>{class s{constructor(t,e,i,n,a){this.h=t,this.Y=e,this.$s=i,this.ue=n,this.ot=a}init(){this.Y.onChildMessage((t,e,i)=>this.ot.emitIframeEvent(t,e,i)),this.Y.setSentiveStatusCallback(()=>this.ue.getSensitiveStatus()),this.Y.setRecordingContextCallback(()=>this.$s.getRecordingContext())}onStartTracking(){this.h.iframesTracking&&this.Y.start()}onOptout(){this.h.iframesTracking&&this.Y.stop()}onSensitiveStatusChange(){if(this.h.iframesTracking){let t=this.ue.getSensitiveStatus();this.Y.onSensitiveStatusChange(t)}}onRecordingContextChange(){if(this.h.iframesTracking){let t=this.$s.getRecordingContext();this.Y.onRecordingContextChange(t)}}}return s})(),Gm=(()=>{class s extends It{constructor(t){super(),this.h=t,this.uh=0,this.Re=new Map,this.Uf={boundElement:window,type:"message",listener:e=>this.ph(e)}}onChildMessage(t){this.jf=t}setRecordingContextCallback(t){this.Kw=t}setSentiveStatusCallback(t){this.Jw=t}onSensitiveStatusChange(t){let e=yt.buildBaseMessage(K.SensitiveStatus,te.Parent,this.h.projectId);e.content=t;let i=yt.buildBaseMessage(K.SensitiveStatus,te.Parent,this.h.projectId);i.content={...t,started:!1,useAnonymization:!0,capturedElementSelector:""},this.Re.forEach(n=>{if(n.port){let a=this.fa(n)?i:e;this.fh(n,a)}})}onRecordingContextChange(t){let e=yt.buildBaseMessage(K.RecordingContext,te.Parent,this.h.projectId);e.content=t,this.Re.forEach(i=>{!this.fa(i)&&i.port&&this.fh(i,e)})}sendToChildren(t,e){let i=yt.buildBaseMessage(t,te.Parent,this.h.projectId);i.content=e,this.Qw(i)}onStart(){gt(this.Uf,!1),this.Hf()}onStop(){this.Zw(),dt(this.Uf,!1),this.tb()}Hf(){let t=this.eb();this.sb(t),csArray.prototype.forEach.call(t,e=>{if(this.ib(e)===null){let n={iframe:e};this.Re.set(this.uh,n),this.uh+=1}}),this.rb()}eb(){return csArray.prototype.filter.call(lt.findAllElements("iframe"),t=>this.nb(t))}sb(t){this.Re.forEach((e,i)=>{e.iframe&&csArray.prototype.indexOf.call(t,e.iframe)===-1&&this.ob(i,e)})}ob(t,e){e.port&&yt.closeChannelPort(e.port),this.Re.delete(t)}tb(){this.Re.forEach(t=>{t.port&&yt.closeChannelPort(t.port)}),this.Re.clear()}ib(t){let e=null;return this.Re.forEach((i,n)=>{e===null&&i.iframe===t&&(e=n)}),e}nb(t){return t.id!==Sa&&(!t.src||We(t.src,"about:")||fn(Ga(t.src),this.h.hostnames))}Qw(t){this.Re.forEach(e=>{this.fh(e,t)})}fh(t,e){let i=e.type===K.SensitiveStatus||e.type===K.RecordingContext;t.port&&(!i||t.initialStatusSent)&&yt.sendChannelMessage(t.port,e)}rb(){this.Re.forEach((t,e)=>{if(t.iframe.contentWindow){let i=this.ab(e);yt.sendPostMessage(t.iframe.contentWindow,"*",i)}})}Zw(){let t=this.cb();this.Re.forEach(e=>{e.port?yt.sendChannelMessage(e.port,t):e.iframe.contentWindow&&yt.sendPostMessage(e.iframe.contentWindow,"*",t)})}ab(t){return yt.buildBaseMessage(K.Discovery,te.Parent,this.h.projectId,t)}cb(){return yt.buildBaseMessage(K.Stop,te.Parent,this.h.projectId)}lb(t,e){let i=this.Re.get(t);if(i===void 0){H.error(`Parent received channel messaging initialization from unknow child id : ${t} (${this.uh})`);return}i.port=e,i.port.onmessage=n=>{this.gh(n,i)}}hb(t){if(!t.port)return;let e=yt.buildBaseMessage(K.SensitiveStatus,te.Parent,this.h.projectId),i=this.Jw();this.fa(t)&&(i.started=!1,i.capturedElementSelector="",i.useAnonymization=!0),e.content=i,yt.sendChannelMessage(t.port,e)}db(t){if(!t.port)return;let e=yt.buildBaseMessage(K.RecordingContext,te.Parent,this.h.projectId),i=this.Kw();this.fa(t)&&(i.isRecording=!1),e.content=i,yt.sendChannelMessage(t.port,e)}gh(t,e){if(e===void 0){H.error(`Parent received channelMessage from unknown child : ${csJSON.stringify(t.data)}`);return}let i=t.data.type,n=t.data.content;i===K.EndOfBufferedMessages?(this.hb(e),this.db(e),e.initialStatusSent=!0):this.jf(e.iframe,i,n)}ph(t){if(yt.isMessageValid(t,te.Child,this.h.projectId,this.h.hostnames))switch(t.data.type){case K.Discovery:if(t.data.id===void 0){this.Hf();return}if(t.ports&&t.ports.length===1&&this.Re.has(t.data.id)){this.lb(t.data.id,t.ports[0]);return}H.error(`Parent received wrong channelMessage initialization : (${t.origin}) : ${csJSON.stringify(t.data)}`);break;case K.ChildLogMessage:this.jf(null,K.ChildLogMessage,t.data.content);break;default:H.warn(`Parent received unexpected postMessage type from child (${t.origin}) : ${csJSON.stringify(t.data)}`)}}fa(t){return M.isMaskedElement(t.iframe)||M.isMaskedElementChild(t.iframe)}}return s})();var Wm="CS_ANONYMIZED_VALUE",Ym=(()=>{class s{constructor(t,e){this.I=t,this.A=e}anonymize(t){return z(t.message)&&(t.message=this.Eb(t.message),t.message=this.I.anonymizePII(t.message)),z(t.filename)&&(t.filename=this.A.computeOverriddenUrl(t.filename)),t}Eb(t){return csString.prototype.replace.call(t,/(value\s*=\s*".*"|value\s*=\s*'.*')/,`value='${Wm}'`)}}return s})(),Xm=(()=>{class s extends Vc{constructor(t){super(),this.Sb=t,this.xs=[{boundElement:document,type:"touchstart",listener:e=>this.G(e)},{boundElement:document,type:"touchmove",listener:e=>this.G(e)},{boundElement:document,type:"touchend",listener:e=>this.G(e)}],this.Ln=new Zr,this.Ln.onGesture((e,i)=>this._l(e,i))}_l(t,e){for(let i in this.subscriptions){let n=this.subscriptions[i];n(t,e)}}onStartTracking(){this.canDetectGesture()&&csArray.prototype.forEach.call(this.xs,t=>gt(t))}onStopTracking(){this.canDetectGesture()&&csArray.prototype.forEach.call(this.xs,t=>dt(t))}canDetectGesture(){return typeof devicePixelRatio!="undefined"}G(t){this.Sb.tryToExecute("process gesture event",()=>{if(this.Ln.isValidTouchEvent(t))switch(t.type){case"touchstart":this.Ln.processActionDown(t);break;case"touchmove":this.Ln.processActionMove();break;case"touchend":this.Ln.processActionUp(t);break}})()}static isSwipe(t){return t.type===St.FLICK||t.type===St.DRAG}}return s})(),Km=(()=>{class s extends It{constructor(t,e){super(),this.V=t,this.yh=e,this.$f=0}onStart(){H.isPerfLoggingActive()&&(this.Nn=window.csSetInterval(()=>this.zf(),s.vb))}onStop(){H.isPerfLoggingActive()&&(this.zf(),csClearInterval(this.Nn))}zf(){if(Bi.isEmpty||this.$f>=s._b)return;this.$f++;let t={a:s.wb,l:s.bb,...this.yh.getRequestParameters()},e=[];Bi.forEach(i=>{csArray.prototype.forEach.call(i,n=>{csArray.prototype.push.call(e,{...n,...t})})}),this.V.send(e),Bi.clear()}}return s.wb="uxa",s.bb="perf",s.vb=5e3,s._b=5,s})(),Jm=(()=>{class s{constructor(t,e,i){this.h=t,this.yh=e,this.At=i}init(){this.qf=new Km(this.At.create(this.h.getLoggerUri(),!0),this.yh)}onStartTracking(){this.qf.start()}onOptout(){this.qf.stop()}}return s})(),Qm=(()=>{class s{constructor(t){this.ue=t,this.Gf=!1}enableRecordingContext(t,e,i){this.Gf=!0,this.Wi=t,this.w=e,this.Ai=i}getRecordingContext(){var t,e,i,n;if(!this.Gf)return{isRecording:!1,recordingStartTimestamp:0,etrState:Mt.ETR_OFF,etrStatus:Nt.ETR_DISABLED,collectState:I.ANALYTICS_ONLY};let a=this.w.getSession();return{isRecording:this.Wi.isRecording(),useAnonymization:this.ue.getSensitiveStatus().useAnonymization,enableOnlineResources:(t=this.Wi.getStaticResourceManagerStatus())===null||t===void 0?void 0:t.onlineAssets.activated,enableOnlineResourcesOnNextPageview:(e=this.Wi.getStaticResourceManagerStatus())===null||e===void 0?void 0:e.onlineAssets.enabledOnNextPageview,recordingStartTimestamp:parseInt(this.Wi.getRecordingStartTimestamp(),10),etrState:(i=a==null?void 0:a.etrState)!==null&&i!==void 0?i:Mt.ETR_OFF,etrStatus:this.Ai.getEtrStatus(a),collectState:(n=a==null?void 0:a.collectState)!==null&&n!==void 0?n:I.ANALYTICS_ONLY}}}return s})(),di=(()=>{class s{static isRecordingSupported(){return"MutationObserver"in window&&"visibilityState"in document}static isAsyncSerializationSupported(){return"Promise"in window&&"findIndex"in csArray.prototype}}return s})();var Zm=20,ty="Custom Error:",ey="https://cserror.com/texterror.js",sy=(()=>{class s extends It{constructor(t,e,i,n,a,c){super(),this.bs=t,this.vh=e,this.Z=i,this.ae=n,this.zs=a,this.A=c,this.Ea=[],this.vi=0,this.Mi=[]}initStates(){this.es=N.now(),this.vh.removeQueryParams(),this.vh.setQueryParams(this.Z.getRequestParameters()),this.Ea=[],this.vi=0}onStart(){this.bs.subscribe(s.Mt,t=>this.G(t)),this._h()}onStop(){this.bs.unsubscribe(s.Mt)}onIframeJavascriptError(t){this.G(t)}trackCustomError(t){let e={errorType:"jsError",message:`${ty} ${t}`,lineno:1,colno:1,filename:ey};this.Vn(e)}Vn(t){if(this.isStarted){let e=this.G(t);e&&this.zs.emitCustomJavaScriptErrorEvent(e)}else csArray.prototype.push.call(this.Mi,t)}_h(){this.isStarted&&(csArray.prototype.forEach.call(this.Mi,t=>this.Vn(t)),this.Mi=[])}G(t){if(this.isStarted&&this.vi{class s{constructor(t,e,i,n,a,c,l,d,g){this.bs=t,this.ae=e,this.h=i,this.Z=n,this.ot=a,this.f=c,this.zs=l,this.A=d,this.At=g}init(){let t=this.At.create(`${this.h.getTrackerUri()}/${iy}`,!0);this.ki=new sy(this.bs,t,this.Z,this.ae,this.zs,this.A),this.ot.addListener(this.ki),this.at()}at(){this.h.jsCustomErrorsEnabled&&!this.h.customErrors.enabled&&this.f.register(Rn,t=>{this.ki.trackCustomError(t)})}onStartTracking(){this.ki.start()}onAfterNaturalPageView(){this.ki.initStates()}onAfterArtificialPageView(){this.ki.initStates()}onBeforeSessionRenewal(){this.ki.stop()}onOptout(){this.ki.stop()}}return s})(),ny=(()=>{let s;return function(r){function a(d,g,u=!1){let E={message:ft.truncate(d,300,ft.ELLIPSIS),errorType:"customError"};return(u||l(g))&&(c(g),E.attributes=g),E}r.buildCustomErrorEvent=a;function c(d){for(let g in d){let u=d[g];if(typeof u=="string"&&u.length>30&&(u=ft.truncate(u,30,ft.ELLIPSIS),d[g]=u),g.length>30){let y=ft.truncate(g,30,ft.ELLIPSIS);delete d[g],d[y]=u}}}function l(d){let g=Object.keys(d).length;return g>0&&g<=5}}(s||(s={})),s})(),oy=20,ay=(()=>{class s extends It{constructor(t,e,i,n,a){super(),this.bh=t,this.Z=e,this.Xs=i,this.J=n,this.As=a,this.Sa=[],this._i=0,this.Mi=[]}initStates(){var t;this.Sh(),this.es=N.now(),this.Sa=[],this._i=0,(t=this.As)===null||t===void 0||t.onEvent(e=>this.G(e))}trackCustomError(t,e={}){if(!(z(t)&&Fe(e)&&Ct(e)))throw new Error(`Command misuse: ${Rn[0]}`);let i=ny.buildCustomErrorEvent(t,e);this.Vn(i)}onIframeCustomError(t){this.G(t)}onStart(){var t;this._h(),(t=this.As)===null||t===void 0||t.start()}onStop(){var t;(t=this.As)===null||t===void 0||t.stop()}_h(){this.isStarted&&(csArray.prototype.forEach.call(this.Mi,t=>this.Vn(t)),this.Mi=[])}Vn(t){if(this.isStarted){let e=this.G(t);e&&this.J.emitCustomErrorEvent(e)}else csArray.prototype.push.call(this.Mi,t)}G(t){if(this.isStarted&&this._i{class s{constructor(t,e,i,n,a,c,l,d){this.Xs=t,this.h=e,this.Z=i,this.f=n,this.zs=a,this.At=c,this.ot=l,this.As=d}init(){let t=this.At.create(`${this.h.getTrackerUri()}/${cy}`,!0);this.Di=new ay(t,this.Z,this.Xs,this.zs,this.As),this.ot.addListener(this.Di),this.at()}at(){this.f.register(Rn,(t,e)=>{this.Di.trackCustomError(t,e)})}onStartTracking(){this.Di.start()}onAfterNaturalPageView(){this.Di.initStates()}onAfterArtificialPageView(){this.Di.initStates()}onBeforeSessionRenewal(){this.Di.stop()}onOptout(){this.Di.stop()}}return s})(),hy=(()=>{class s{constructor(){this.Ah=qi.Natural}setPageViewType(t){this.Ah=t}getPageViewType(){return this.Ah}getRequestParameters(){return{pvt:this.Ah}}}return s})(),uy=(()=>{class s{constructor(t){this.X=t}onAfterVisitorRenewal(){this.X.renewSession()}}return s})();var dy=(()=>{let s;return function(r){function t(){let i=navigator.userAgent+navigator.language+navigator.platform,n=csString.prototype.slice.call(e(i).toString(16),-4),a=new csDate().getTime(),c="xxxxxxxx-hhhh-axxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,l=>{let d=(a+Math.random()*16)%16|0;return a=Math.floor(a/16),(l==="x"?d:d&7|8).toString(16)});return csString.prototype.replace.call(c,"hhhh",n)}r.generate=t;function e(i){let n=0;for(let a=0;a{class s{constructor(t,e,i,n){this.de=t,this.h=e,this.A=i,this.va=n}init(){this.Bb()}shouldMaskNonTextElements(){return this.h.isSMB&&this.h.anonymisationMethod===ce.replayRecordingMaskedUrlRegexRules&&this.shouldUseAnonymization()}shouldUseAnonymization(){if(this.de.isReplayUnanonymizedAllowedByConsent()){switch(this.h.anonymisationMethod){case null:case ce.replayRecordingMaskedUrlRegex:return!!(this.h.replayRecordingMaskedUrlRegex&&this.h.replayRecordingMaskedUrlRegex.test(this.A.getAnonymizedUrl()));case ce.replayRecordingMaskedUrlRegexRules:return this.va.evaluateUrl(this.A.getAnonymizedUrl())}return!1}else{switch(this.h.anonymisationMethod){case null:case ce.replayRecordingUnmaskedUrlRegex:return!(this.h.replayRecordingUnmaskedUrlRegex&&this.h.replayRecordingUnmaskedUrlRegex.test(this.A.getAnonymizedUrl()));case ce.replayRecordingUnmaskedUrlRegexRules:return!this.va.evaluateUrl(this.A.getAnonymizedUrl())}return!0}}Bb(){this.h.anonymisationMethod===ce.replayRecordingMaskedUrlRegexRules&&this.h.replayRecordingMaskedUrlRegexRules?this.va.setRegexRules(this.h.replayRecordingMaskedUrlRegexRules):this.h.anonymisationMethod===ce.replayRecordingUnmaskedUrlRegexRules&&this.h.replayRecordingUnmaskedUrlRegexRules&&this.va.setRegexRules(this.h.replayRecordingUnmaskedUrlRegexRules)}}return s})(),fy=(()=>{class s{constructor(){this.Qf=[]}setRegexRules(t){this.Qf=csArray.prototype.map.call(t,e=>this.Fb(e))}evaluateUrl(t){return csArray.prototype.some.call(this.Qf,e=>{var i,n;let a=this.$b(t,e);return e!=null&&e.notOperator?!(!((i=e.regex)===null||i===void 0)&&i.test(a)):(n=e.regex)===null||n===void 0?void 0:n.test(a)})}$b(t,e){let i=gn(t);return i?e.ignoreQueryParams&&e.ignoreURIFragments?`${i.origin}${i.pathname}`:e.ignoreQueryParams?`${i.origin}${i.pathname}${i.hash}`:e.ignoreURIFragments?`${i.origin}${i.pathname}${i.search}`:t:t}_a(t){return t.ignoreCaseSensitivity?"i":""}Fb(t){switch(t.operator){case ee.NOT_START:t.notOperator=!0;case ee.START:t.regex=new csRegExp(`^${t.value}`,this._a(t));break;case ee.NOT_END:t.notOperator=!0;case ee.END:t.regex=new csRegExp(`${t.value}$`,this._a(t));break;case ee.NOT_CONTAIN:t.notOperator=!0;case ee.CONTAIN:t.regex=new csRegExp(`${t.value}`,this._a(t));break;case ee.NOT_EXACT:t.notOperator=!0;case ee.EXACT:t.regex=new csRegExp(`^${t.value}$`,this._a(t));break;default:H.warn(`buildRegexWithRule, unknown type: ${t.operator}`)}return t}}return s})();var gy=(()=>{class s extends ne{constructor(t){super(),this.U=null,this.Aa=null,this.P=null,this.Hs=null,this.ng=["value","checked","src","data","alt"],this.Ta={state:M.MaskedElementState.Child},this.IA=e=>{for(let i of e){if(M.isMaskedElement(i.target)||M.isMaskedElementChild(i.target))for(let n=0;ng==="added"&&this.kA(d))),this.P.observe(),csSetTimeout(this.PA)}onStop(){var t,e,i;this.U&&(this.ag(document),this.U.disconnect()),(t=this.Aa)===null||t===void 0||t.disconnect(),(e=this.P)===null||e===void 0||e.disconnect(),(i=this.Hs)===null||i===void 0||i.disconnect()}OA(){return window.ResizeObserver?new ResizeObserver(t=>{csArray.prototype.forEach.call(t,e=>{this.resizeObserverCallback(e)})}):null}NA(){return new Os(t=>{csArray.prototype.forEach.call(t,e=>{this.DA(e)?this.og(e):(this.LA(e),this.xA(e))})})}MA(t){return new Os(e=>{csArray.prototype.forEach.call(e,i=>this.VA(i,t))})}resizeObserverCallback(t){let e=t.target.getBoundingClientRect(),i=M.getMaskedElementDetails(t.target);if(i.state!==M.MaskedElementState.Parent||e.width===i.width&&e.height===i.height)return;let n={state:M.MaskedElementState.Parent,width:e.width,height:e.height};M.setMaskedElementProperty(t.target,n),this.produceEvent({type:"ResizeMaskedElement",target:et(t.target),width:e.width,height:e.height})}xA(t){!this.Hs||!ot(t)||tr(t)||this.Hs.observe(t)}DA(t){let e=csNodeparentNode.apply(t);return e?M.isMaskedElement(e)||M.isMaskedElementChild(e):ai(t)?M.isMaskedElement(t.host)||M.isMaskedElementChild(t.host):!1}kA(t){(M.isMaskedElement(t.host)||M.isMaskedElementChild(t.host))&&M.setMaskedElementProperty(t,this.Ta)}ag(t){Xt(t,NodeFilter.SHOW_ELEMENT).visitAll(i=>{M.unsetMaskedElementProperty(i)})}LA(t){let e=t.getBoundingClientRect(),i={state:M.MaskedElementState.Parent,width:e.width,height:e.height};M.setMaskedElementProperty(t,i),this.UA(t),Xt(t).visitAll(n=>n!=t&&M.setMaskedElementProperty(n,this.Ta))}og(t){M.setMaskedElementProperty(t,this.Ta),Xt(t).visitAll(e=>e!=t&&M.setMaskedElementProperty(e,this.Ta))}UA(t){var e;let i=(e=G.getProperty(t,M.maskedAttributeProp))!==null&&e!==void 0?e:{attributes:[]};for(let n=0;ncsString.prototype.indexOf.call(l.attrName,c)>-1&&Kt.call(t,l.selector))&&csArray.prototype.push.call(n.attributes,c)}n.attributes.length!==0&&M.setMaskedAttributeProperty(t,n)}}return de([P()],s.prototype,"resizeObserverCallback",null),s})(),my=(()=>{class s{constructor(){this.Mh=0,this.N=!1,this.cg="data-cs-capture",this.Ys=t=>{for(let e of t){if(he.isWhitelistedElement(e.target))for(let i=0;iJ(e,i=>this.lg(i))));let t=this.kh?`[${this.cg}], ${this.kh}`:`[${this.cg}]`;this.U.observe(t),this.P||(this.P=new Xe(this.Ys,(e,i)=>i==="added"&&this.HA(e))),this.P.observe()}stop(){this.N&&(this.Mh--,this.Mh===0&&(this.N=!1,this.BA()))}BA(){this.U&&(this.hg(document),this.U.disconnect()),this.P&&this.P.disconnect()}setWhitelistedElementsSelector(t,e=!0){if(ei(t))this.kh=t;else if(e)throw new Error("Command misuse: setCapturedElementsSelector")}getWhitelistedElementsSelector(){return this.kh}lg(t){Xt(t).visitAll(e=>{he.whitelistElement(e)})}HA(t){he.isWhitelistedElement(t.host)&&he.whitelistElement(t)}hg(t){Xt(t,NodeFilter.SHOW_ELEMENT).visitAll(i=>{he.removeWhitelistElement(i)})}}return s})(),yy=(()=>{class s{constructor(){this.U=null,this.P=null,this.N=!1,this.Ys=t=>{for(let e of t)if(Me.isEditableNode(e.target))for(let i=0;iJ(t,e=>{this.ug(e)})),this.U.observe("[contenteditable]"),this.P=new Xe(this.Ys,(t,e)=>e==="added"&&this.FA(t)),this.P.observe())}stop(){var t,e;this.N&&(this.N=!1,(t=this.U)===null||t===void 0||t.disconnect(),this.U=null,(e=this.P)===null||e===void 0||e.disconnect(),this.P=null)}ug(t){Xt(t).visitAll(e=>{Me.markEditableNode(e)})}FA(t){Me.isEditableNode(t.host)&&Me.markEditableNode(t)}}return s})();var Ey=s=>{let r=s*60*1e3;return`${Math.floor(csDate.now()/r)}`},Sy=5e3,Cn=(()=>{class s extends Ua{constructor(t,e,i){super(t,e),this.mr=null,this.zA=(i==null?void 0:i.type)||"json",this.pg=i==null?void 0:i.cacheMinutes,this.Mr=i==null?void 0:i.timeout}onLoad(t){this.Ui=t}onError(t){this.Nr=t}onTimeout(t,e){this.ai=t,this.Mr=e}send(){csArray.prototype.forEach.call(this.beforeRequestCallbacks,n=>n());let t=this.retrieveParameters();this.ic(t);let e=li.toQuery(t),i=`${this.domainUri}${this.path?`/${this.path}`:""}?${e}`;this.ih(i,this.zA)}abort(){this.mr&&(this.mr.abort(),this.mr=null)}isInProgress(){return this.mr!==null}ih(t,e){var i;let n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType=e,n.onerror=()=>{var a;return(a=this.Nr)===null||a===void 0?void 0:a.call(this,n)},n.ontimeout=()=>{var a;return(a=this.ai)===null||a===void 0?void 0:a.call(this,n)},n.onload=()=>{var a,c;n.status>=200&&n.status<400?((a=this.Ui)===null||a===void 0||a.call(this,this.qA(n,e)?n.response:n.responseText),csArray.prototype.forEach.call(this.afterRequestCallbacks,l=>l())):(c=this.Nr)===null||c===void 0||c.call(this,n)},n.onloadend=()=>{this.mr=null},n.timeout=(i=this.Mr)!==null&&i!==void 0?i:Sy,this.mr=n,n.send()}qA(t,e){let i=t.getResponseHeader("Content-Type");return i===null?e==="json":csString.prototype.indexOf.call(csString.prototype.toLowerCase.call(i),"json")>0}ic(t){let e;this.pg?e=`${Ey(this.pg)}`:e=csString.prototype.slice.call(`${Math.random()}`,2,8),t.r=e}}return s})(),vy=Math.pow(2,52),Xs=null;async function Uc(s){if((Xs==null?void 0:Xs.visitorId)===s)return Xs.heapUserId;let r=await _y(s),t=Number(r%BigInt(vy));return Xs={visitorId:s,heapUserId:t},t}async function _y(s){let r=await crypto.subtle.digest("SHA-256",wy(s)),t=new Uint8Array(r.slice(0,8));return t=Ay(t),by(t)}function wy(s){let r=new ArrayBuffer(s.length),t=new Uint8Array(r);for(let e=0;e{class s extends It{constructor(t,e,i,n){super(),this.yr=t,this.xh=e,this.T=i,this.X=n,this.GA=255,this.xr="SHA-256",this.Q=null,this.Vh=null,this.fg=!1,this.Uh=null,this.jh=null,pn()&&(this.fg=!0,this.Uh=new TextEncoder,e.setRequestParametersProviders({getRequestParameters:()=>{var a;return(a=this.jh)!==null&&a!==void 0?a:{}}}),e.after(()=>{this.jh=null}))}onStart(){if(this.Q!==null){let{identity:t,sendHashedIdentity:e}=this.Q;this.Q=null,this.identify(t,e)}}onStop(){}async identify(t,e){if(!this.fg)return;if(!this.yr){st.error("missing heap env id","identify");return}if(!this.isStarted){this.Q={identity:t,sendHashedIdentity:e};return}if(this.WA(t))return;let i=ft.truncate(t,this.GA),n=this.T.getVisitor();if(!n){st.warn("identify: visitor not found",!0,"identify");return}if(await this.YA(i,n.identityPrint)){if(this.T.renewVisitor(),n=this.T.getVisitor(),!n){st.warn("identify: visitor not found",!0,"identify");return}}else this.X.refreshSession();await Promise.all([this.KA(i,e,this.yr,n.id),this.JA(i,n)])}resetIdentity(){this.Q!==null&&(this.Q=null),this.getIdentity()&&this.T.renewVisitor()}getIdentity(){let t=this.T.getVisitor();return!t||!t.identityPrint?null:t.identityPrint}async YA(t,e){return e?await this.gg(t)!==e:!1}async JA(t,e){e.identityPrint=await this.gg(t),this.T.setVisitor(e)}async gg(t){var e;if(((e=this.Vh)===null||e===void 0?void 0:e.identity)===t)return this.Vh.identityPrint;let i=await ho(this.xr,this.Uh.encode(Cy+t)),n=ft.truncate(i,12);return this.Vh={identity:t,identityPrint:n},n}async KA(t,e,i,n){let a=e?await ho(this.xr,this.Uh.encode(t)):t,c=csString(await Uc(n));this.jh={a:i,u:c,st:N.now().toString(),b:"web",i:a,v:"1",s:"1"},this.xh.send()}WA(t){for(let e of Ty)if(t===e)return!0;for(let e of Ry)if(e.test(t))return!0;return!1}}return s})(),la=["identify"],Py=["getIdentity"],Oy=["resetIdentity"],Ny="api/identify_v3",My=(()=>{class s{constructor(t,e,i,n){this.f=t,this.h=e,this.T=i,this.X=n}init(){var t;let e=new Cn(this.h.getPaProxyDomainUri(),Ny);this.Er=new Iy((t=this.h.heapEnvironment)===null||t===void 0?void 0:t.env_id,e,this.T,this.X),this.f.register(la,(i,n)=>{if(!(z(i)||$t(i)))throw new Error(`Command misuse: ${la[0]}`);let a=!1;this.QA(n)&&(a=!!n.hash),this.Er.identify(i.toString(),a)}),this.f.register(Oy,()=>this.Er.resetIdentity()),this.f.register(Py,()=>this.Er.getIdentity())}onStartTracking(){this.Er.start()}onBeforeSessionRenewal(){this.Er.stop()}onOptout(){this.Er.stop()}QA(t){return Ct(t)&&Fe(t)&&"hash"in t}}return s})(),ky=["hidePageTitle"],Dy=["resetHidePageTitle"],Ly="onNextPageviewOnly",xy=(()=>{class s{constructor(t,e){this.is=t,this.f=e}init(){this.f.register(ky,t=>{let e=t===Ly;this.is.setHidePageTitle(e)}),this.f.register(Dy,()=>this.is.resetHidePageTitle())}onAfterNaturalPageView(){this.is.updateStateOnAfterPageview()}onAfterArtificialPageView(){this.is.updateStateOnAfterPageview()}}return s})(),Vy=(()=>{class s{constructor(){this.mg=255,this.ZA="****",this.tT="data-cs-hide-title",this.eT="data-heap-redact-text",this.Ra={value:!1,onNextPageviewOnly:!1}}getRequestParameters(){return{t:this.Ra.value||this.sT()?this.ZA:this.iT(window.document.title)}}setHidePageTitle(t){this.Ra={value:!0,onNextPageviewOnly:t}}resetHidePageTitle(){this.Ra={value:!1,onNextPageviewOnly:!1}}updateStateOnAfterPageview(){this.Ra.onNextPageviewOnly&&this.resetHidePageTitle()}sT(){let t=window.csquerySelector[document.nodeType].call(document,"head > title");return t===null?!1:t.getAttribute(this.tT)!==null||t.getAttribute(this.eT)!==null}iT(t){return t.length>this.mg?csString.prototype.substring.call(t,0,this.mg):t}}return s})(),Uy=(()=>{class s{constructor(t,e,i,n,a){this.nt=t,this.gt=e,this.fe=i,this.Ot=n,this.tt=a}getSensitiveStatus(){var t,e;return{started:this.fe.isStarted,useAnonymization:this.nt.shouldUseAnonymization(),capturedElementSelector:this.Ot.getWhitelistedElementsSelector(),maskedElementSettings:this.gt.getMaskedElementSettings((t=this.nt)===null||t===void 0?void 0:t.shouldMaskNonTextElements()),encryptionSelectors:(e=this.tt)===null||e===void 0?void 0:e.getEncryptionSelectors()}}getElementSensitiveStatus(t){let e=this.fe.isStarted,i=this.nt.shouldUseAnonymization();return e?M.isMaskedElement(t)||M.isMaskedElementChild(t)?Ne.MASKED:tf.shouldEncrypt(t)?Ne.ENCRYPTED:Me.isEditableNode(t)?Ne.ANONYMIZED:i?he.isWhitelistedElement(t)?Ne.CAPTURED:Ne.ANONYMIZED:Ne.CAPTURED:Ne.ANONYMIZED}}return s})(),jy=["setEncryptionSelectors"],jc=["setPIISelectors"],Hy=["setCapturedElementsSelector"],By=(()=>{class s{constructor(t,e,i,n,a,c,l){this.E=t,this.f=e,this.gt=i,this.fe=n,this.Ot=a,this.tt=c,this.Sr=l}init(){var t,e;this.Sr&&this.tt&&((t=this.Sr)===null||t===void 0||t.addSelector((e=this.tt)===null||e===void 0?void 0:e.getEncryptionSelectors())),this.at()}onStartTracking(t){this.fe.start(),this.E.emitSensitiveStatusChange()}onBeforeArtificialPageView(){this.fe.stop(),this.E.emitSensitiveStatusChange()}onAfterArtificialPageView(){this.fe.start(),this.E.emitSensitiveStatusChange()}onBeforeSessionRenewal(){this.fe.stop(),this.E.emitSensitiveStatusChange()}onOptout(){this.fe.stop(),this.E.emitSensitiveStatusChange()}onReplayUnanonymizationConsentGranted(){this.E.emitSensitiveStatusChange()}onReplayUnanonymizationConsentWithdrawn(){this.E.emitSensitiveStatusChange()}at(){this.f.register(jc,t=>{this.gt.setMaskedElementSettingsFromCommand(t),this.E.emitSensitiveStatusChange()}),this.f.register(Hy,t=>{this.Ot.setWhitelistedElementsSelector(t),this.E.emitSensitiveStatusChange()}),this.f.register(jy,t=>{var e,i;(e=this.tt)===null||e===void 0||e.setEncryptionSelectors(t),(i=this.Sr)===null||i===void 0||i.addSelector(t)})}}return s})(),Fy=(()=>{class s extends It{constructor(t,e,i,n,a,c){super(),this.jt=t,this.gt=e,this.Ot=i,this.Sr=n,this.vr=a,this.nt=c}onStart(){var t,e,i;this.Ot.start(),this.jt.setMaskedElementSettings(this.gt.getMaskedElementSettings((t=this.nt)===null||t===void 0?void 0:t.shouldMaskNonTextElements())),this.jt.startIdentifier(),(e=this.Sr)===null||e===void 0||e.start(),(i=this.vr)===null||i===void 0||i.start()}onStop(){var t,e;this.Ot.stop(),this.jt.stopIdentifier(),(t=this.Sr)===null||t===void 0||t.stop(),(e=this.vr)===null||e===void 0||e.stop()}}return s})();var $y=/(\b["']?key["']?\s*[=:]\s*["'](?:first|last|user|profile|primary|primary[ _-]?last)[ _-]?name["']\s*,?\s*["']?value["']?\s*[=:]\s*["'])(.+?)(["']|…$)|(\b["']?(?:first|last|user|profile|primary|primary[ _-]?last)[\s_-]?name["']?\s*[=:]\s*["'])(.+?)(["']|…$)/gi,zy="$1$4CS_ANONYMIZED_NAME$3$6",qy=/(?:\(\d{3}\) \d{3}[- ]\d{4}\b)|(?:\b\d{3}([-\. ])\d{3}\1\d{4}\b)|(?:\b\d{2} \d{2} \d{2} \d{2} \d{2}\b)|(?:\b\d{4} \d{3} \d{3}\b)|(?:\b\d{2}([-\. ])\d{4}\2\d{4}\b)|(?:\b\d{3}([- ])\d{4}\3\d{4}\b)|(?:\+\d{1,3} \d{3} \d{3} \d{4}\b)|(?:\+\d{1,3} \(\d{3}\) \d{3}-\d{4}\b)|(?:\+\d{1,3}([- ])\d{4}\4\d{3}\4\d{3}\b)|(?:\+\d{1,3} \d \d{4} \d{4}\b)|(?:\+\d{1,3} \d \d{3} \d{3} \d{4}\b)|(?:\+\d{1,3} \d \d{2} \d{2} \d{2} \d{2}\b)|(?:\+\d{7,15}\b)|(?:\+\d{1,3} \d{6,12}\b)|(?:\+\d{1,3}([- ])\d{4}\5\d{3}\5\d{3}\b)/g,Gy="CS_ANONYMIZED_PHONE",Wy=(()=>{class s{constructor(t,e){this.I=t,this.K=e}anonymize(t){return this.K?csArray.prototype.join.call(csArray.prototype.map.call(qd(t),({content:e,isUrl:i})=>{var n;return i?(n=this.K)===null||n===void 0?void 0:n.anonymizeUrl(e,{maskNames:!0}):this.Eg(e)}),""):this.Eg(t)}Eg(t){t=this.I.anonymizePII(t);let e=t;t=this.Dn(t),t!==e&&(nt.counters.redactedPII.count("name"),nt.counters.redactedPII.count("name-in-custom-error"));let i=t;return t=this.rT(t),t!==i&&(nt.counters.redactedPII.count("phone"),nt.counters.redactedPII.count("phone-in-custom-error")),t}Dn(t){return csString.prototype.replace.call(t,$y,zy)}rT(t){return csString.prototype.replace.call(t,qy,Gy)}}return s})(),ha=(()=>{let s;return function(r){function t(u,y){for(let E of u)if(i(E,y))return!0;return!1}r.isUrlMatching=t;function e(u,y){if(z(y)){for(let E of u)if(i(E,y))return!0}else if(Zn(y)){for(let E of u)if(i(E,csString(y)))return!0}return!1}r.isMatching=e;function i(u,y){let E=n(u,y);return u.negate?!E:E}function n(u,y){switch(u.rule_type==="date"&&(u.match_operation==="less_than"||u.match_operation==="greater_than")&&(y=(new csDate(y).valueOf()/1e3).toFixed(0)),u.match_operation){case"exact":switch(u.rule_type){case"string":return z(u.pattern)?csString.prototype.toLowerCase.call(y)===csString.prototype.toLowerCase.call(u.pattern):!1;case"boolean":return y===u.pattern||y===csString(u.pattern);case"number":return Ct(y)?Number(y)===Number(u.pattern):!1;default:return y===u.pattern}case"starts_with":return z(u.pattern)?csString.prototype.indexOf.call(y,u.pattern)===0:!1;case"ends_with":return z(u.pattern)?mi(y,u.pattern):!1;case"contains":return z(u.pattern)?csString.prototype.indexOf.call(y,u.pattern)!==-1:!1;case"regex":if(!z(u.pattern))return!1;try{return new csRegExp(u.pattern).test(y)}catch(E){return H.warn(`targeting.matchOperation.regex invalid ${E==null?void 0:E.message}`),!1}case"simple":return z(u.pattern)?g(y)===g(u.pattern):!1;case"greater_than":return Number(y)>Number(u.pattern);case"less_than":return Number(y)=A.getTime()}function d(u){return Ct(u)?z(u)?csString.prototype.trim.call(u)==="":Zn(u)?u===!0:$t(u)?u!==0:!1:!0}function g(u){let y=We(u,"http://")||We(u,"https://")?u:`https://${u}`,E=gn(y);return E!==null?csString.prototype.replace.call(E.host,/^www./,""):u}}(s||(s={})),s})(),Yy=(()=>{class s{constructor(){this.Sg=[],this.vg=[]}setTargetingRules(t){for(let e of t)e.component==="url"?csArray.prototype.push.call(this.Sg,e):e.component==="trigger"&&csArray.prototype.push.call(this.vg,e)}matchUrl(t){return ha.isUrlMatching(this.Sg,t)}matchTrigger(t){return ha.isMatching(this.vg,t)}}return s})(),Xy=(()=>{class s extends It{constructor(t,e,i){super(),this.Ca=t,this.Hh=e,this.A=i}init(){this.Bh=new Yy,this.Ca&&this.Bh.setTargetingRules(this.Ca)}onStart(){}checkInitialUrlTargetingRules(){let t=this.A.getAnonymizedUrl();this.Fh(t,"url")&&this.Hh()}onStop(){}onTargetingRulesArtificialPageview(t){this.isStarted&&this.Fh(t,"url")&&this.Hh()}onExternalEvent(t){this.isStarted&&this.Fh(t.name,"trigger")&&this.Hh()}Fh(t,e){var i,n;return e==="url"&&z(t)&&(!((i=this.Bh)===null||i===void 0)&&i.matchUrl(t))?!0:!!(e==="trigger"&&(!((n=this.Bh)===null||n===void 0)&&n.matchTrigger(t)))}}return s})(),Ky=(()=>{class s{constructor(t,e,i,n,a,c){this.Ca=t,this.nT=e,this.E=i,this.et=n,this.J=a,this.A=c}init(){this.Bn=new Xy(this.Ca,this.nT,this.A),this.J.addListener(this.Bn),this.Bn.init()}start(){this.Bn.start()}stop(){this.Bn.stop()}checkInitialUrlTargetingRules(){this.Bn.checkInitialUrlTargetingRules()}emitTargetingCollectState(){let t=this.et.getInitialCollectState();t===I.ANALYTICS_ONLY?this.E.emitCollectStateChange(I.ANALYTICS_ONLY_RULES_TARGETING,Mt.ETR_OFF):t===I.RECORDING_GLOBAL_SAMPLING&&this.E.emitCollectStateChange(I.RECORDING_RULES_TARGETING,Mt.ETR_OFF)}}return s})(),Jy=(()=>{class s extends It{constructor(t,e,i,n){super(),this.yr=t,this.xh=e,this.T=i,this.X=n,this.Ia=null,this._g=!1,this.Pa=null,pn()&&(this._g=!0,e.setRequestParametersProviders({getRequestParameters:()=>{var a;return(a=this.Pa)!==null&&a!==void 0?a:{}}}),e.after(()=>{this.Pa=null}))}async addUserProperties(t){if(!this._g)return;if(!this.yr){st.error("missing heap env id","UserPropertiesService");return}let e={};for(let i of Object.keys(t)){let n=t[i];if(z(n)||$t(n)){let a=ft.truncate(csString(i),255);e[a]=ft.truncate(csString(n),255)}}Object.keys(e).length>0&&(this.isStarted?await this.wg(e,this.yr):this.Ia=e)}async wg(t,e){let i=this.T.getVisitor();if(!i){st.warn("could not get current visitor",!0,"UserPropertiesService");return}let n=csString(await Uc(i.id));this.Pa={a:e,u:n,st:N.now().toString(),b:"web",v:"1",s:"1",tv:"4.0"};for(let a of Object.keys(t))this.Pa[`_${a}`]=t[a];this.xh.send(),this.X.refreshSession()}onStart(){this.Ia!==null&&(this.wg(this.Ia,this.yr),this.Ia=null)}onStop(){}}return s})(),ua=["addUserProperties"],Qy="api/add_user_properties_v3",Zy=(()=>{class s{constructor(t,e,i,n){this.f=t,this.h=e,this.T=i,this.X=n}init(){let t=new Cn(this.h.getPaProxyDomainUri(),Qy);this.Oa=new Jy(this.h.heapEnvironment.env_id,t,this.T,this.X),this.f.register(ua,e=>{if(!Fe(e)||e===null)throw new Error(`Command misuse: ${ua[0]}`);this.Oa.addUserProperties(e)})}onStartTracking(){this.Oa.start()}onBeforeSessionRenewal(){this.Oa.stop()}onOptout(){this.Oa.stop()}}return s})();var tE=(()=>{let s;return function(r){r.COMPRESSION_DISABLED="compressionDisabled"}(s||(s={})),s})(),eE=(()=>{class s{constructor(){}static init(t){(!this.$h||t!==void 0)&&this.initFlags(t)}static initFlags(t=document.cookie){var e;let i=(e=/_cs_debug=((\w|\.|\:|=)+)/g.exec(t))===null||e===void 0?void 0:e[1];if(this.$h=new Map,i){let n=csString.prototype.split.call(i,".");for(let a=0;a{var a;let c=i.toString(),l=`${(a=e.constructor)===null||a===void 0?void 0:a.name}.${c}`,d=n.value;sE(s.getString("debugLog"),t)&&(n.value=function(...g){return console.log(l,...g),d.bind(this)(...g)})}}}return s})();function sE(s,r){var t;return s==null?!1:s===r||!!(!((t=csString.prototype.match.call(s,new csRegExp("(^|,)("+r+")(,|$)")))===null||t===void 0)&&t.length)}function da(){function i(o){let p=o.length;for(;--p>=0;)o[p]=0}let n=0,a=1,c=2,l=3,d=258,g=29,u=256,y=u+1+g,E=30,v=19,A=2*y+1,k=15,R=16,b=7,x=256,w=16,D=17,j=18,W=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),at=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),vt=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),_t=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),S=512,O=new Array((y+2)*2);i(O);let V=new Array(E*2);i(V);let B=new Array(S);i(B);let tt=new Array(d-l+1);i(tt);let ht=new Array(g);i(ht);let Pt=new Array(E);i(Pt);function pe(o,p,f,m,h){this.static_tree=o,this.extra_bits=p,this.extra_base=f,this.elems=m,this.max_length=h,this.has_stree=o&&o.length}let Ke,cr,ps;function fe(o,p){this.dyn_tree=o,this.max_code=0,this.stat_desc=p}let Vs=o=>o<256?B[o]:B[256+(o>>>7)],oe=(o,p)=>{o.pending_buf[o.pending++]=p&255,o.pending_buf[o.pending++]=p>>>8&255},wt=(o,p,f)=>{o.bi_valid>R-f?(o.bi_buf|=p<>R-o.bi_valid,o.bi_valid+=f-R):(o.bi_buf|=p<{wt(o,f[p*2],f[p*2+1])},Us=(o,p)=>{let f=0;do f|=o&1,o>>>=1,f<<=1;while(--p>0);return f>>>1},lr=o=>{o.bi_valid===16?(oe(o,o.bi_buf),o.bi_buf=0,o.bi_valid=0):o.bi_valid>=8&&(o.pending_buf[o.pending++]=o.bi_buf&255,o.bi_buf>>=8,o.bi_valid-=8)},hr=(o,p)=>{let f=p.dyn_tree,m=p.max_code,h=p.stat_desc.static_tree,T=p.stat_desc.has_stree,_=p.stat_desc.extra_bits,C=p.stat_desc.extra_base,X=p.stat_desc.max_length,F,jt,be,it,es,ms,Ni=0;for(it=0;it<=k;it++)o.bl_count[it]=0;for(f[o.heap[o.heap_max]*2+1]=0,F=o.heap_max+1;FX&&(it=X,Ni++),f[jt*2+1]=it,!(jt>m)&&(o.bl_count[it]++,es=0,jt>=C&&(es=_[jt-C]),ms=f[jt*2],o.opt_len+=ms*(it+es),T&&(o.static_len+=ms*(h[jt*2+1]+es)));if(Ni!==0){do{for(it=X-1;o.bl_count[it]===0;)it--;o.bl_count[it]--,o.bl_count[it+1]+=2,o.bl_count[X]--,Ni-=2}while(Ni>0);for(it=X;it!==0;it--)for(jt=o.bl_count[it];jt!==0;)be=o.heap[--F],!(be>m)&&(f[be*2+1]!==it&&(o.opt_len+=(it-f[be*2+1])*f[be*2],f[be*2+1]=it),jt--)}},js=(o,p,f)=>{let m=new Array(k+1),h=0,T,_;for(T=1;T<=k;T++)m[T]=h=h+f[T-1]<<1;for(_=0;_<=p;_++){let C=o[_*2+1];C!==0&&(o[_*2]=Us(m[C]++,C))}},On=()=>{let o,p,f,m,h,T=new Array(k+1);for(f=0,m=0;m>=7;m{let p;for(p=0;p{o.bi_valid>8?oe(o,o.bi_buf):o.bi_valid>0&&(o.pending_buf[o.pending++]=o.bi_buf),o.bi_buf=0,o.bi_valid=0},Gc=(o,p,f,m)=>{Mn(o),m&&(oe(o,f),oe(o,~f)),o.pending_buf.set(o.window.subarray(p,p+f),o.pending),o.pending+=f},kn=(o,p,f,m)=>{let h=p*2,T=f*2;return o[h]{let m=o.heap[f],h=f<<1;for(;h<=o.heap_len&&(h{let m,h,T=0,_,C;if(o.last_lit!==0)do m=o.pending_buf[o.d_buf+T*2]<<8|o.pending_buf[o.d_buf+T*2+1],h=o.pending_buf[o.l_buf+T],T++,m===0?Lt(o,h,p):(_=tt[h],Lt(o,_+u+1,p),C=W[_],C!==0&&(h-=ht[_],wt(o,h,C)),m--,_=Vs(m),Lt(o,_,f),C=at[_],C!==0&&(m-=Pt[_],wt(o,m,C)));while(T{let f=p.dyn_tree,m=p.stat_desc.static_tree,h=p.stat_desc.has_stree,T=p.stat_desc.elems,_,C,X=-1,F;for(o.heap_len=0,o.heap_max=A,_=0;_>1;_>=1;_--)ur(o,f,_);F=T;do _=o.heap[1],o.heap[1]=o.heap[o.heap_len--],ur(o,f,1),C=o.heap[1],o.heap[--o.heap_max]=_,o.heap[--o.heap_max]=C,f[F*2]=f[_*2]+f[C*2],o.depth[F]=(o.depth[_]>=o.depth[C]?o.depth[_]:o.depth[C])+1,f[_*2+1]=f[C*2+1]=F,o.heap[1]=F++,ur(o,f,1);while(o.heap_len>=2);o.heap[--o.heap_max]=o.heap[1],hr(o,p),js(f,X,o.bl_count)},Ln=(o,p,f)=>{let m,h=-1,T,_=p[0*2+1],C=0,X=7,F=4;for(_===0&&(X=138,F=3),p[(f+1)*2+1]=65535,m=0;m<=f;m++)T=_,_=p[(m+1)*2+1],!(++C{let m,h=-1,T,_=p[0*2+1],C=0,X=7,F=4;for(_===0&&(X=138,F=3),m=0;m<=f;m++)if(T=_,_=p[(m+1)*2+1],!(++C{let p;for(Ln(o,o.dyn_ltree,o.l_desc.max_code),Ln(o,o.dyn_dtree,o.d_desc.max_code),dr(o,o.bl_desc),p=v-1;p>=3&&o.bl_tree[_t[p]*2+1]===0;p--);return o.opt_len+=3*(p+1)+5+5+4,p},Yc=(o,p,f,m)=>{let h;for(wt(o,p-257,5),wt(o,f-1,5),wt(o,m-4,4),h=0;h{let p=4093624447,f;for(f=0;f<=31;f++,p>>>=1)if(p&1&&o.dyn_ltree[f*2]!==0)return 0;if(o.dyn_ltree[9*2]!==0||o.dyn_ltree[10*2]!==0||o.dyn_ltree[13*2]!==0)return 1;for(f=32;f{Vn||(On(),Vn=!0),o.l_desc=new fe(o.dyn_ltree,Ke),o.d_desc=new fe(o.dyn_dtree,cr),o.bl_desc=new fe(o.bl_tree,ps),o.bi_buf=0,o.bi_valid=0,Nn(o)},Un=(o,p,f,m)=>{wt(o,(n<<1)+(m?1:0),3),Gc(o,p,f,!0)},Jc=o=>{wt(o,a<<1,3),Lt(o,x,O),lr(o)},Qc=(o,p,f,m)=>{let h,T,_=0;o.level>0?(o.strm.data_type===2&&(o.strm.data_type=Xc(o)),dr(o,o.l_desc),dr(o,o.d_desc),_=Wc(o),h=o.opt_len+3+7>>>3,T=o.static_len+3+7>>>3,T<=h&&(h=T)):h=T=f+5,f+4<=h&&p!==-1?Un(o,p,f,m):o.strategy===4||T===h?(wt(o,(a<<1)+(m?1:0),3),Dn(o,O,V)):(wt(o,(c<<1)+(m?1:0),3),Yc(o,o.l_desc.max_code+1,o.d_desc.max_code+1,_+1),Dn(o,o.dyn_ltree,o.dyn_dtree)),Nn(o),m&&Mn(o)},Zc=(o,p,f)=>(o.pending_buf[o.d_buf+o.last_lit*2]=p>>>8&255,o.pending_buf[o.d_buf+o.last_lit*2+1]=p&255,o.pending_buf[o.l_buf+o.last_lit]=f&255,o.last_lit++,p===0?o.dyn_ltree[f*2]++:(o.matches++,p--,o.dyn_ltree[(tt[f]+u+1)*2]++,o.dyn_dtree[Vs(p)*2]++),o.last_lit===o.lit_bufsize-1);var tl=Kc,el=Un,sl=Qc,il=Zc,rl=Jc,nl={_tr_init:tl,_tr_stored_block:el,_tr_flush_block:sl,_tr_tally:il,_tr_align:rl},jn=(o,p,f,m)=>{let h=o&65535|0,T=o>>>16&65535|0,_=0;for(;f!==0;){_=f>2e3?2e3:f,f-=_;do h=h+p[m++]|0,T=T+h|0;while(--_);h%=65521,T%=65521}return h|T<<16|0};let ol=()=>{let o,p=[];for(var f=0;f<256;f++){o=f;for(var m=0;m<8;m++)o=o&1?3988292384^o>>>1:o>>>1;p[f]=o}return p},al=new Uint32Array(ol());var ge=(o,p,f,m)=>{let h=al,T=m+f;o^=-1;for(let _=m;_>>8^h[(o^p[_])&255];return o^-1},wi={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Hn={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};let{_tr_init:cl,_tr_stored_block:ll,_tr_flush_block:hl,_tr_tally:me,_tr_align:ul}=nl,{Z_NO_FLUSH:Je,Z_PARTIAL_FLUSH:dl,Z_FULL_FLUSH:pl,Z_FINISH:ye,Z_BLOCK:Bn,Z_OK:Jt,Z_STREAM_END:Fn,Z_STREAM_ERROR:Ht,Z_DATA_ERROR:fl,Z_BUF_ERROR:pr,Z_DEFAULT_COMPRESSION:gl,Z_FILTERED:ml,Z_HUFFMAN_ONLY:bi,Z_RLE:yl,Z_FIXED:El,Z_DEFAULT_STRATEGY:Sl,Z_UNKNOWN:vl,Z_DEFLATED:Ai}=Hn,_l=9,wl=15,bl=8,fr=256+1+29,Al=30,Tl=19,Rl=2*fr+1,Cl=15,Y=3,Ee=258,Wt=Ee+Y+1,Il=32,Ti=42,gr=69,Ri=73,Ci=91,Ii=103,Qe=113,Hs=666,mt=1,Bs=2,Ze=3,fs=4,Pl=3,Se=(o,p)=>(o.msg=wi[p],p),$n=o=>(o<<1)-(o>4?9:0),ve=o=>{let p=o.length;for(;--p>=0;)o[p]=0},_e=(o,p,f)=>(p<{let p=o.state,f=p.pending;f>o.avail_out&&(f=o.avail_out),f!==0&&(o.output.set(p.pending_buf.subarray(p.pending_out,p.pending_out+f),o.next_out),o.next_out+=f,p.pending_out+=f,o.total_out+=f,o.avail_out-=f,p.pending-=f,p.pending===0&&(p.pending_out=0))},bt=(o,p)=>{hl(o,o.block_start>=0?o.block_start:-1,o.strstart-o.block_start,p),o.block_start=o.strstart,we(o.strm)},Q=(o,p)=>{o.pending_buf[o.pending++]=p},Fs=(o,p)=>{o.pending_buf[o.pending++]=p>>>8&255,o.pending_buf[o.pending++]=p&255},Ol=(o,p,f,m)=>{let h=o.avail_in;return h>m&&(h=m),h===0?0:(o.avail_in-=h,p.set(o.input.subarray(o.next_in,o.next_in+h),f),o.state.wrap===1?o.adler=jn(o.adler,p,h,f):o.state.wrap===2&&(o.adler=ge(o.adler,p,h,f)),o.next_in+=h,o.total_in+=h,h)},zn=(o,p)=>{let f=o.max_chain_length,m=o.strstart,h,T,_=o.prev_length,C=o.nice_match,X=o.strstart>o.w_size-Wt?o.strstart-(o.w_size-Wt):0,F=o.window,jt=o.w_mask,be=o.prev,it=o.strstart+Ee,es=F[m+_-1],ms=F[m+_];o.prev_length>=o.good_match&&(f>>=2),C>o.lookahead&&(C=o.lookahead);do if(h=p,!(F[h+_]!==ms||F[h+_-1]!==es||F[h]!==F[m]||F[++h]!==F[m+1])){m+=2,h++;do;while(F[++m]===F[++h]&&F[++m]===F[++h]&&F[++m]===F[++h]&&F[++m]===F[++h]&&F[++m]===F[++h]&&F[++m]===F[++h]&&F[++m]===F[++h]&&F[++m]===F[++h]&&m_){if(o.match_start=p,_=T,T>=C)break;es=F[m+_-1],ms=F[m+_]}}while((p=be[p&jt])>X&&--f!==0);return _<=o.lookahead?_:o.lookahead},ts=o=>{let p=o.w_size,f,m,h,T,_;do{if(T=o.window_size-o.lookahead-o.strstart,o.strstart>=p+(p-Wt)){o.window.set(o.window.subarray(p,p+p),0),o.match_start-=p,o.strstart-=p,o.block_start-=p,m=o.hash_size,f=m;do h=o.head[--f],o.head[f]=h>=p?h-p:0;while(--m);m=p,f=m;do h=o.prev[--f],o.prev[f]=h>=p?h-p:0;while(--m);T+=p}if(o.strm.avail_in===0)break;if(m=Ol(o.strm,o.window,o.strstart+o.lookahead,T),o.lookahead+=m,o.lookahead+o.insert>=Y)for(_=o.strstart-o.insert,o.ins_h=o.window[_],o.ins_h=_e(o,o.ins_h,o.window[_+1]);o.insert&&(o.ins_h=_e(o,o.ins_h,o.window[_+Y-1]),o.prev[_&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=_,_++,o.insert--,!(o.lookahead+o.insert{let f=65535;for(f>o.pending_buf_size-5&&(f=o.pending_buf_size-5);;){if(o.lookahead<=1){if(ts(o),o.lookahead===0&&p===Je)return mt;if(o.lookahead===0)break}o.strstart+=o.lookahead,o.lookahead=0;let m=o.block_start+f;if((o.strstart===0||o.strstart>=m)&&(o.lookahead=o.strstart-m,o.strstart=m,bt(o,!1),o.strm.avail_out===0)||o.strstart-o.block_start>=o.w_size-Wt&&(bt(o,!1),o.strm.avail_out===0))return mt}return o.insert=0,p===ye?(bt(o,!0),o.strm.avail_out===0?Ze:fs):(o.strstart>o.block_start&&(bt(o,!1),o.strm.avail_out===0),mt)},mr=(o,p)=>{let f,m;for(;;){if(o.lookahead=Y&&(o.ins_h=_e(o,o.ins_h,o.window[o.strstart+Y-1]),f=o.prev[o.strstart&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=o.strstart),f!==0&&o.strstart-f<=o.w_size-Wt&&(o.match_length=zn(o,f)),o.match_length>=Y)if(m=me(o,o.strstart-o.match_start,o.match_length-Y),o.lookahead-=o.match_length,o.match_length<=o.max_lazy_match&&o.lookahead>=Y){o.match_length--;do o.strstart++,o.ins_h=_e(o,o.ins_h,o.window[o.strstart+Y-1]),f=o.prev[o.strstart&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=o.strstart;while(--o.match_length!==0);o.strstart++}else o.strstart+=o.match_length,o.match_length=0,o.ins_h=o.window[o.strstart],o.ins_h=_e(o,o.ins_h,o.window[o.strstart+1]);else m=me(o,0,o.window[o.strstart]),o.lookahead--,o.strstart++;if(m&&(bt(o,!1),o.strm.avail_out===0))return mt}return o.insert=o.strstart{let f,m,h;for(;;){if(o.lookahead=Y&&(o.ins_h=_e(o,o.ins_h,o.window[o.strstart+Y-1]),f=o.prev[o.strstart&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=o.strstart),o.prev_length=o.match_length,o.prev_match=o.match_start,o.match_length=Y-1,f!==0&&o.prev_length4096)&&(o.match_length=Y-1)),o.prev_length>=Y&&o.match_length<=o.prev_length){h=o.strstart+o.lookahead-Y,m=me(o,o.strstart-1-o.prev_match,o.prev_length-Y),o.lookahead-=o.prev_length-1,o.prev_length-=2;do++o.strstart<=h&&(o.ins_h=_e(o,o.ins_h,o.window[o.strstart+Y-1]),f=o.prev[o.strstart&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=o.strstart);while(--o.prev_length!==0);if(o.match_available=0,o.match_length=Y-1,o.strstart++,m&&(bt(o,!1),o.strm.avail_out===0))return mt}else if(o.match_available){if(m=me(o,0,o.window[o.strstart-1]),m&&bt(o,!1),o.strstart++,o.lookahead--,o.strm.avail_out===0)return mt}else o.match_available=1,o.strstart++,o.lookahead--}return o.match_available&&(m=me(o,0,o.window[o.strstart-1]),o.match_available=0),o.insert=o.strstart{let f,m,h,T,_=o.window;for(;;){if(o.lookahead<=Ee){if(ts(o),o.lookahead<=Ee&&p===Je)return mt;if(o.lookahead===0)break}if(o.match_length=0,o.lookahead>=Y&&o.strstart>0&&(h=o.strstart-1,m=_[h],m===_[++h]&&m===_[++h]&&m===_[++h])){T=o.strstart+Ee;do;while(m===_[++h]&&m===_[++h]&&m===_[++h]&&m===_[++h]&&m===_[++h]&&m===_[++h]&&m===_[++h]&&m===_[++h]&&ho.lookahead&&(o.match_length=o.lookahead)}if(o.match_length>=Y?(f=me(o,1,o.match_length-Y),o.lookahead-=o.match_length,o.strstart+=o.match_length,o.match_length=0):(f=me(o,0,o.window[o.strstart]),o.lookahead--,o.strstart++),f&&(bt(o,!1),o.strm.avail_out===0))return mt}return o.insert=0,p===ye?(bt(o,!0),o.strm.avail_out===0?Ze:fs):o.last_lit&&(bt(o,!1),o.strm.avail_out===0)?mt:Bs},kl=(o,p)=>{let f;for(;;){if(o.lookahead===0&&(ts(o),o.lookahead===0)){if(p===Je)return mt;break}if(o.match_length=0,f=me(o,0,o.window[o.strstart]),o.lookahead--,o.strstart++,f&&(bt(o,!1),o.strm.avail_out===0))return mt}return o.insert=0,p===ye?(bt(o,!0),o.strm.avail_out===0?Ze:fs):o.last_lit&&(bt(o,!1),o.strm.avail_out===0)?mt:Bs};function Qt(o,p,f,m,h){this.good_length=o,this.max_lazy=p,this.nice_length=f,this.max_chain=m,this.func=h}let $s=[new Qt(0,0,0,0,Nl),new Qt(4,4,8,4,mr),new Qt(4,5,16,8,mr),new Qt(4,6,32,32,mr),new Qt(4,4,16,16,gs),new Qt(8,16,32,32,gs),new Qt(8,16,128,128,gs),new Qt(8,32,128,256,gs),new Qt(32,128,258,1024,gs),new Qt(32,258,258,4096,gs)],Dl=o=>{o.window_size=2*o.w_size,ve(o.head),o.max_lazy_match=$s[o.level].max_lazy,o.good_match=$s[o.level].good_length,o.nice_match=$s[o.level].nice_length,o.max_chain_length=$s[o.level].max_chain,o.strstart=0,o.block_start=0,o.lookahead=0,o.insert=0,o.match_length=o.prev_length=Y-1,o.match_available=0,o.ins_h=0};function Ll(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Ai,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(Rl*2),this.dyn_dtree=new Uint16Array((2*Al+1)*2),this.bl_tree=new Uint16Array((2*Tl+1)*2),ve(this.dyn_ltree),ve(this.dyn_dtree),ve(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(Cl+1),this.heap=new Uint16Array(2*fr+1),ve(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*fr+1),ve(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}let qn=o=>{if(!o||!o.state)return Se(o,Ht);o.total_in=o.total_out=0,o.data_type=vl;let p=o.state;return p.pending=0,p.pending_out=0,p.wrap<0&&(p.wrap=-p.wrap),p.status=p.wrap?Ti:Qe,o.adler=p.wrap===2?0:1,p.last_flush=Je,cl(p),Jt},Gn=o=>{let p=qn(o);return p===Jt&&Dl(o.state),p},xl=(o,p)=>!o||!o.state||o.state.wrap!==2?Ht:(o.state.gzhead=p,Jt),Wn=(o,p,f,m,h,T)=>{if(!o)return Ht;let _=1;if(p===gl&&(p=6),m<0?(_=0,m=-m):m>15&&(_=2,m-=16),h<1||h>_l||f!==Ai||m<8||m>15||p<0||p>9||T<0||T>El)return Se(o,Ht);m===8&&(m=9);let C=new Ll;return o.state=C,C.strm=o,C.wrap=_,C.gzhead=null,C.w_bits=m,C.w_size=1<Wn(o,p,Ai,wl,bl,Sl),Ul=(o,p)=>{let f,m;if(!o||!o.state||p>Bn||p<0)return o?Se(o,Ht):Ht;let h=o.state;if(!o.output||!o.input&&o.avail_in!==0||h.status===Hs&&p!==ye)return Se(o,o.avail_out===0?pr:Ht);h.strm=o;let T=h.last_flush;if(h.last_flush=p,h.status===Ti)if(h.wrap===2)o.adler=0,Q(h,31),Q(h,139),Q(h,8),h.gzhead?(Q(h,(h.gzhead.text?1:0)+(h.gzhead.hcrc?2:0)+(h.gzhead.extra?4:0)+(h.gzhead.name?8:0)+(h.gzhead.comment?16:0)),Q(h,h.gzhead.time&255),Q(h,h.gzhead.time>>8&255),Q(h,h.gzhead.time>>16&255),Q(h,h.gzhead.time>>24&255),Q(h,h.level===9?2:h.strategy>=bi||h.level<2?4:0),Q(h,h.gzhead.os&255),h.gzhead.extra&&h.gzhead.extra.length&&(Q(h,h.gzhead.extra.length&255),Q(h,h.gzhead.extra.length>>8&255)),h.gzhead.hcrc&&(o.adler=ge(o.adler,h.pending_buf,h.pending,0)),h.gzindex=0,h.status=gr):(Q(h,0),Q(h,0),Q(h,0),Q(h,0),Q(h,0),Q(h,h.level===9?2:h.strategy>=bi||h.level<2?4:0),Q(h,Pl),h.status=Qe);else{let _=Ai+(h.w_bits-8<<4)<<8,C=-1;h.strategy>=bi||h.level<2?C=0:h.level<6?C=1:h.level===6?C=2:C=3,_|=C<<6,h.strstart!==0&&(_|=Il),_+=31-_%31,h.status=Qe,Fs(h,_),h.strstart!==0&&(Fs(h,o.adler>>>16),Fs(h,o.adler&65535)),o.adler=1}if(h.status===gr)if(h.gzhead.extra){for(f=h.pending;h.gzindex<(h.gzhead.extra.length&65535)&&!(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>f&&(o.adler=ge(o.adler,h.pending_buf,h.pending-f,f)),we(o),f=h.pending,h.pending===h.pending_buf_size));)Q(h,h.gzhead.extra[h.gzindex]&255),h.gzindex++;h.gzhead.hcrc&&h.pending>f&&(o.adler=ge(o.adler,h.pending_buf,h.pending-f,f)),h.gzindex===h.gzhead.extra.length&&(h.gzindex=0,h.status=Ri)}else h.status=Ri;if(h.status===Ri)if(h.gzhead.name){f=h.pending;do{if(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>f&&(o.adler=ge(o.adler,h.pending_buf,h.pending-f,f)),we(o),f=h.pending,h.pending===h.pending_buf_size)){m=1;break}h.gzindexf&&(o.adler=ge(o.adler,h.pending_buf,h.pending-f,f)),m===0&&(h.gzindex=0,h.status=Ci)}else h.status=Ci;if(h.status===Ci)if(h.gzhead.comment){f=h.pending;do{if(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>f&&(o.adler=ge(o.adler,h.pending_buf,h.pending-f,f)),we(o),f=h.pending,h.pending===h.pending_buf_size)){m=1;break}h.gzindexf&&(o.adler=ge(o.adler,h.pending_buf,h.pending-f,f)),m===0&&(h.status=Ii)}else h.status=Ii;if(h.status===Ii&&(h.gzhead.hcrc?(h.pending+2>h.pending_buf_size&&we(o),h.pending+2<=h.pending_buf_size&&(Q(h,o.adler&255),Q(h,o.adler>>8&255),o.adler=0,h.status=Qe)):h.status=Qe),h.pending!==0){if(we(o),o.avail_out===0)return h.last_flush=-1,Jt}else if(o.avail_in===0&&$n(p)<=$n(T)&&p!==ye)return Se(o,pr);if(h.status===Hs&&o.avail_in!==0)return Se(o,pr);if(o.avail_in!==0||h.lookahead!==0||p!==Je&&h.status!==Hs){let _=h.strategy===bi?kl(h,p):h.strategy===yl?Ml(h,p):$s[h.level].func(h,p);if((_===Ze||_===fs)&&(h.status=Hs),_===mt||_===Ze)return o.avail_out===0&&(h.last_flush=-1),Jt;if(_===Bs&&(p===dl?ul(h):p!==Bn&&(ll(h,0,0,!1),p===pl&&(ve(h.head),h.lookahead===0&&(h.strstart=0,h.block_start=0,h.insert=0))),we(o),o.avail_out===0))return h.last_flush=-1,Jt}return p!==ye?Jt:h.wrap<=0?Fn:(h.wrap===2?(Q(h,o.adler&255),Q(h,o.adler>>8&255),Q(h,o.adler>>16&255),Q(h,o.adler>>24&255),Q(h,o.total_in&255),Q(h,o.total_in>>8&255),Q(h,o.total_in>>16&255),Q(h,o.total_in>>24&255)):(Fs(h,o.adler>>>16),Fs(h,o.adler&65535)),we(o),h.wrap>0&&(h.wrap=-h.wrap),h.pending!==0?Jt:Fn)},jl=o=>{if(!o||!o.state)return Ht;let p=o.state.status;return p!==Ti&&p!==gr&&p!==Ri&&p!==Ci&&p!==Ii&&p!==Qe&&p!==Hs?Se(o,Ht):(o.state=null,p===Qe?Se(o,fl):Jt)},Hl=(o,p)=>{let f=p.length;if(!o||!o.state)return Ht;let m=o.state,h=m.wrap;if(h===2||h===1&&m.status!==Ti||m.lookahead)return Ht;if(h===1&&(o.adler=jn(o.adler,p,f,0)),m.wrap=0,f>=m.w_size){h===0&&(ve(m.head),m.strstart=0,m.block_start=0,m.insert=0);let X=new Uint8Array(m.w_size);X.set(p.subarray(f-m.w_size,f),0),p=X,f=m.w_size}let T=o.avail_in,_=o.next_in,C=o.input;for(o.avail_in=f,o.next_in=0,o.input=p,ts(m);m.lookahead>=Y;){let X=m.strstart,F=m.lookahead-(Y-1);do m.ins_h=_e(m,m.ins_h,m.window[X+Y-1]),m.prev[X&m.w_mask]=m.head[m.ins_h],m.head[m.ins_h]=X,X++;while(--F);m.strstart=X,m.lookahead=Y-1,ts(m)}return m.strstart+=m.lookahead,m.block_start=m.strstart,m.insert=m.lookahead,m.lookahead=0,m.match_length=m.prev_length=Y-1,m.match_available=0,o.next_in=_,o.input=C,o.avail_in=T,m.wrap=h,Jt};var Bl=Vl,Fl=Wn,$l=Gn,zl=qn,ql=xl,Gl=Ul,Wl=jl,Yl=Hl,Xl="pako deflate (from Nodeca project)",zs={deflateInit:Bl,deflateInit2:Fl,deflateReset:$l,deflateResetKeep:zl,deflateSetHeader:ql,deflate:Gl,deflateEnd:Wl,deflateSetDictionary:Yl,deflateInfo:Xl};let Kl=(o,p)=>Object.prototype.hasOwnProperty.call(o,p);var Jl=function(o){let p=Array.prototype.slice.call(arguments,1);for(;p.length;){let f=p.shift();if(f){if(typeof f!="object")throw new TypeError(f+"must be non-object");for(let m in f)Kl(f,m)&&(o[m]=f[m])}}return o},Ql=o=>{let p=0;for(let m=0,h=o.length;m=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;qs[254]=qs[254]=1;var Zl=o=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(o);let p,f,m,h,T,_=o.length,C=0;for(h=0;h<_;h++)f=o.charCodeAt(h),(f&64512)===55296&&h+1<_&&(m=o.charCodeAt(h+1),(m&64512)===56320&&(f=65536+(f-55296<<10)+(m-56320),h++)),C+=f<128?1:f<2048?2:f<65536?3:4;for(p=new Uint8Array(C),T=0,h=0;T>>6,p[T++]=128|f&63):f<65536?(p[T++]=224|f>>>12,p[T++]=128|f>>>6&63,p[T++]=128|f&63):(p[T++]=240|f>>>18,p[T++]=128|f>>>12&63,p[T++]=128|f>>>6&63,p[T++]=128|f&63);return p};let Kn=(o,p=o.length)=>{if(p<65534&&o.subarray&&Xn)return String.fromCharCode.apply(null,o.length===p?o:o.subarray(0,p));let f="";for(let m=0;m{let f=p||o.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(o.subarray(0,p));let m,h,T=new Array(f*2);for(h=0,m=0;m4){T[h++]=65533,m+=C-1;continue}for(_&=C===2?31:C===3?15:7;C>1&&m1){T[h++]=65533;continue}_<65536?T[h++]=_:(_-=65536,T[h++]=55296|_>>10&1023,T[h++]=56320|_&1023)}return Kn(T,h)},eh=(o,p)=>{p=p||o.length,p>o.length&&(p=o.length);let f=p-1;for(;f>=0&&(o[f]&192)===128;)f--;return f<0||f===0?p:f+qs[o[f]]>p?f:p},Jn={string2buf:Zl,buf2string:th,utf8border:eh};function sh(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var ih=sh;let Qn=Object.prototype.toString,{Z_NO_FLUSH:rh,Z_SYNC_FLUSH:nh,Z_FULL_FLUSH:oh,Z_FINISH:ah,Z_OK:Pi,Z_STREAM_END:ch,Z_DEFAULT_COMPRESSION:lh,Z_DEFAULT_STRATEGY:hh,Z_DEFLATED:uh}=Hn;function Oi(o){this.options=Yn.assign({level:lh,method:uh,chunkSize:16384,windowBits:15,memLevel:8,strategy:hh},o||{});let p=this.options;p.raw&&p.windowBits>0?p.windowBits=-p.windowBits:p.gzip&&p.windowBits>0&&p.windowBits<16&&(p.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ih,this.strm.avail_out=0;let f=zs.deflateInit2(this.strm,p.level,p.method,p.windowBits,p.memLevel,p.strategy);if(f!==Pi)throw new Error(wi[f]);if(p.header&&zs.deflateSetHeader(this.strm,p.header),p.dictionary){let m;if(typeof p.dictionary=="string"?m=Jn.string2buf(p.dictionary):Qn.call(p.dictionary)==="[object ArrayBuffer]"?m=new Uint8Array(p.dictionary):m=p.dictionary,f=zs.deflateSetDictionary(this.strm,m),f!==Pi)throw new Error(wi[f]);this._dict_set=!0}}Oi.prototype.push=function(o,p){let f=this.strm,m=this.options.chunkSize,h,T;if(this.ended)return!1;for(p===~~p?T=p:T=p===!0?ah:rh,typeof o=="string"?f.input=Jn.string2buf(o):Qn.call(o)==="[object ArrayBuffer]"?f.input=new Uint8Array(o):f.input=o,f.next_in=0,f.avail_in=f.input.length;;){if(f.avail_out===0&&(f.output=new Uint8Array(m),f.next_out=0,f.avail_out=m),(T===nh||T===oh)&&f.avail_out<=6){this.onData(f.output.subarray(0,f.next_out)),f.avail_out=0;continue}if(h=zs.deflate(f,T),h===ch)return f.next_out>0&&this.onData(f.output.subarray(0,f.next_out)),h=zs.deflateEnd(this.strm),this.onEnd(h),this.ended=!0,h===Pi;if(f.avail_out===0){this.onData(f.output);continue}if(T>0&&f.next_out>0){this.onData(f.output.subarray(0,f.next_out)),f.avail_out=0;continue}if(f.avail_in===0)break}return!0},Oi.prototype.onData=function(o){this.chunks.push(o)},Oi.prototype.onEnd=function(o){o===Pi&&(this.result=Yn.flattenChunks(this.chunks)),this.chunks=[],this.err=o,this.msg=this.strm.msg};function dh(o,p){p=p||{};let f=new Oi(p);if(f.push(o,!0),f.err)throw f.msg||wi[f.err];return f.result}function ph(o,p){return p=p||{},p.gzip=!0,dh(o,p)}return(o,p,f)=>{let m=ph(o);return p==="base64"?m=btoa(Kn(m)):m=m.buffer,f&&f(m),m}}var iE=(()=>{class s extends Wa{constructor(t){super(t),this.algorithm=sr.GZIP,this.bg=da(),this.aT=(i,n,a)=>{let c=this.bg(i,n);a(c)},this.compress=pa(),typeof CompressionStream!="undefined"&&Pd||(this.compress=this.aT,this.getCompressorSourceCode=()=>da.toString())}compressSync(t,e){return this.bg(t,e)}getCompressorSourceCode(){return pa.toString()}}return s})();function pa(){let s=r=>new Promise(t=>{let e=new FileReader;e.onload=i=>t(i.target.result.split(",")[1]),e.readAsDataURL(new Blob([r]))});return(r,t,e)=>{let i=new Response(r).body.pipeThrough(new CompressionStream("gzip")),n=new Response(i).arrayBuffer();if(t==="base64"){n.then(a=>s(a)).then(a=>e(a));return}n.then(a=>e(a))}}var rE=(()=>{class s extends Wa{constructor(){super(...arguments),this.algorithm=sr.UNCOMPRESSED}compress(t,e,i){i(this.compressSync(t,e))}compressSync(t,e){return t}getCompressorSourceCode(){return function(){return(t,e,i)=>i(t)}.toString()}}return s})(),Hc=(()=>{class s{static create(t,e=!0){return this.instance?this.instance:e&&!eE.isCompressionEnabled()?new rE(t):this.instance=new iE(t)}}return s})();var nE=(()=>{class s{constructor(t,e,i,n,a,c,l,d,g,u,y,E,v,A,k,R,b,x,w,D,j,W,at,vt,_t,S,O,V,B){this.Z=t,this.ce=e,this.T=i,this.w=n,this.E=a,this.f=c,this.qh=l,this.h=d,this.Gh=g,this.Js=u,this.$n=y,this.de=E,this.I=v,this.W=A,this.K=k,this.A=R,this.pT=b,this.J=x,this.ot=w,this.vt=D,this.Tg=j,this.Zt=W,this.fT=at,this.C=vt,this.At=_t,this.M=S,this.Bt=O,this.et=V,this.gt=B,this.gT=(tt=!1)=>{let ht=this.w.getSession();ht===null?(this._r=new Ky(this.h.recordTargetingRules,this.Rg,this.E,this.et,this.J,this.A),this._r.init(),this._r.start()):(ht.collectState===I.RECORDING_RULES_TARGETING||ht.collectState===I.ANALYTICS_ONLY_RULES_TARGETING)&&this.Rg(tt)},this.Rg=(tt=!1)=>{this.wr.onLoad(()=>{var ht,Pt;(ht=this._r)===null||ht===void 0||ht.emitTargetingCollectState(),(Pt=this._r)===null||Pt===void 0||Pt.stop(),this.E.emitStartTracking(tt)}),this.Na(tt)},this.Na=(tt=!1)=>{this.Js.isActive()||(this.gt.init(),this.Wh.start(tt),this.wr.start())},this.mT=()=>{this.E.emitBeforeSessionRenewal(),this.br(!0),this.E.emitAfterSessionRenewal()},this.yT=()=>{this.E.emitBeforeSessionRenewal(),this.et.refreshQuota(),this.et.onQuotaReady(tt=>{tt!==I.QUOTA_REACHED&&(this.br(!0),this.E.emitAfterSessionRenewal())})}}start(){var t;if(this.Gh.init(),this.Js.init(),this.Js.isActive())return;let e,i,n,a,c,l,d,g,u,y,E,v,A,k,R,b,x,w,D,j;this.C.schedule(()=>{A=new Um(this.w,this.T),b=new uy(A),v=new Cm(this.W),k=new gy(()=>{}),x=new my,j=new yy;let W=new Fy(k,this.gt,x,D,j,this.Yh());R=new Uy(this.Yh(),this.gt,W,x,w);let at=new By(this.E,this.f,this.gt,W,x,w,D);at.init(),this.E.addListener(at),e=new fm(this.h,this.Z,this.T,this.W,v,this.f,A,new Xm(H),this.ot,this.At,this.J,R),i=new vg(this.f,this.w,this.h,this.Z,this.ce,this.I),E=new Qm(R);let vt=new Gm(this.h);y=new qm(this.h,vt,E,R,this.ot),y.init();let _t=new hy;n=new fg(this.T,this.w,this.f,this.ot,vt,this.h,_t,E),a=new Ig(this.h,this.Z,this.T,this.f,this.I,A,this.A),this.h.isCsCrosswritingHeap()&&(this.is=new Vy,this.Cg=new xy(this.is,this.f),this.E.addListener(this.Cg),this.Cg.init());let S;this.h.isCsCrosswritingHeap()&&(this.Ig=new My(this.f,this.h,this.T,A),this.E.addListener(this.Ig),this.Ig.init(),this.Pg=new Zy(this.f,this.h,this.T,A),this.E.addListener(this.Pg),this.Pg.init()),this.Wh=new Rm(this.h,this.f,this.E,this.Z,this.T,this.w,this.de,this.vt,this.K,this.A,this.Zt,_t,this.J,this.is,S),this.Og=new Lm(this.h,this.T,this.w,this.f),d=new Fm(this.h,this.f,this.ce,this.Z,this.J),g=new zm(this.f),u=new Jm(this.h,new $a(this.h,this.I),this.At),this.wr=new Im}),this.h.customErrors.enabled&&this.C.schedule(()=>{var W,at,vt;let _t;this.Xs=new Wy(this.I,!((vt=(at=this.h)===null||at===void 0?void 0:at.experimental)===null||vt===void 0)&&vt.anonymizeNameInUrls?this.K:void 0);let S=new ly(this.Xs,this.h,this.Z,this.f,this.J,this.At,this.ot,_t);S.init(),this.E.addListener(S)}),this.h.jsErrorsEnabled&&this.C.schedule(()=>{this.bs=new $m,this.ae=new Ym(this.I,this.A);let W=new ry(this.bs,this.ae,this.h,this.Z,this.ot,this.f,this.J,this.A,this.At);W.init(),this.E.addListener(W)}),this.C.schedule(()=>{this.$n.init()}),this.C.schedule(()=>{n.init()}),this.C.schedule(()=>{i.init()}),this.C.schedule(()=>{a.init()}),this.C.schedule(()=>{this.Tg.init()}),this.C.schedule(()=>{this.Wh.init()}),this.C.schedule(()=>{this.Og.init()}),this.C.schedule(()=>{d.init()}),this.C.schedule(()=>{this.pT.init()}),this.C.schedule(()=>{g.init()}),this.C.schedule(()=>{u.init()}),this.C.schedule(()=>{this.fT.init()}),this.C.schedule(()=>{this.E.addListener(this.Og),this.E.addListener(this.qh),this.E.addListener(e),this.E.addListener(this.$n),this.E.addListener(n),this.E.addListener(a),this.E.addListener(this.Tg),this.E.addListener(this.Wh),this.E.addListener(d),this.E.addListener(i),this.E.addListener(y),this.E.addListener(u),this.E.addListener(b)}),di.isRecordingSupported()&&this.C.schedule(()=>{let W=new sg(E,this.w,this.h,this.Z,this.f,this.I,A,k,this.ae,this.ut,this.Ie,this.ft,this.E,this.J,this.ot,this.Zt,this.At,this.K,this.Vr,this.Yh(),this.Xs,w);W.init(),this.E.addListener(W),n.setRecordingService(W.recordingService)}),this.C.schedule(()=>{e.init()}),this.C.schedule(()=>{this.h.isQuotaEnabled()?A.onSessionExpired(()=>{this.yT()}):A.onSessionExpired(()=>{this.mT()}),this.br()})}br(t=!1){var e;if(this.h.hasTargetingRules()){this.gT(t),this.f.start(),this._r&&this._r.checkInitialUrlTargetingRules();return}this.f.start(),this.wr.onLoad(()=>{this.E.emitStartTracking(t)}),(!Dc(this.h)||t)&&this.Na(t)}Yh(){if(this.nt)return this.nt;let t=new fy;return this.nt=new py(this.de,this.h,this.A,t),this.nt.init(),this.nt.shouldUseAnonymization()&&nt.counters.pageAnonymisation.count("anonymized-on-start"),this.nt}}return s})(),oE=(()=>{class s{constructor(t,e,i,n,a,c,l,d){this.h=t,this.T=e,this.qe=i,this.Ng=n,this.ET=a,this.ST=c,this.vT=l,this.Xh=d}compute(t){var e,i;this.h.crossDomainTracking&&!this.h.cookielessTrackingEnabled?this.h.crossDomainSingleIframeTracking?(e=this.vT)===null||e===void 0||e.start(()=>this.Kh(t)):(i=this.ST)===null||i===void 0||i.applyUpToDate(()=>this.Kh(t)):this.Kh(t)}Kh(t){this.ET.handle(),this.Ng.clear(),this._T()?(this.Ng.restoreClearedVisitor(),t(!0)):(this.qe.exclude(this.h),t(!1))}_T(){let t=Cs.boolean(this.h.sampleRate);return this.Xh.isForceIncluded()||!this.qe.isExcluded()&&this.T.doesVisitorExist()||!this.qe.isExcluded()&&t}}return s})(),aE=(()=>{class s{constructor(t,e,i,n){this.h=t,this.it=e,this.E=i,this.w=n,this.wT=10*1e3}createOrUpdateVisitor(){var t;let e=this.getVisitor();e===null&&(e=this.bT(),(t=this.w)===null||t===void 0||t.removeSession()),this.AT(e),this.setVisitor(e)}bT(){return{id:dy.generate(),visitsCount:0,appliedTrackingDraw:this.h.lastTrackingDraw,creationTimestamp:co(),lastVisitTimestamp:0,hitTimestamp:0,expires:N.now()+this.h.visitorCookieTimeout,allowSubdomains:this.h.allowSubdomains,identityPrint:null}}AT(t){let e=co();this.w&&!this.w.doesSessionExist()&&(t.visitsCount+=1,t.lastVisitTimestamp=e),t.hitTimestamp=e,t.appliedTrackingDraw=this.h.lastTrackingDraw,this.Mg=t.visitsCount}getRequestParameters(){let t=this.getVisitor();return t?{uu:t.id,sn:`${t.visitsCount}`,hd:`${t.hitTimestamp}`}:{}}getVisitor(){return this.it.get()}setVisitor(t){this.it.set(t)}doesVisitorExist(){return this.it.get()!==null}resetVisitor(){this.kg(),this.E.emitAfterVisitorCleared()}removeVisitor(){this.it.remove()}hasAllowSubdomainsChanged(){let t=this.getVisitor();return t?t.allowSubdomains!==this.h.allowSubdomains:!1}handleSubdomainChange(){this.it.handleSubdomainChange()}isSessionRenewed(){let t=this.getVisitor();return t===null||this.Mg===void 0?!1:t.visitsCount!==this.Mg}TT(){return!Z(this.Dg)||N.now()-this.Dg>this.wT}renewVisitor(){this.TT()?(this.Dg=N.now(),this.kg(),this.E.emitAfterVisitorRenewal()):H.warn("session:start:newVisitor is trying to renew visitor under time limit")}kg(){this.E.emitBeforeVisitorRenewal(),this.removeVisitor()}}return s})(),In=60*1e3,cE=60*In,lE=4*cE-In,Ss=(()=>{let s;return function(r){r[r.NO=0]="NO",r[r.WITHDRAWN=1]="WITHDRAWN",r[r.GRANTED=2]="GRANTED"}(s||(s={})),s})(),hE=(()=>{class s{constructor(t,e){this.ge=t,this.et=e,this.zn=null,this.Jh=0,this.qn=Ss.NO}setDynamicVariablesService(t){this.RT=t}createOrUpdateSession(){this.Qh(),this.CT=N.now(),this.Jh=0;let t=this.Lg();t===null?(t=this.IT(),this.xg(t),this.Ma(t)):(t=this.et.sanitizeSessionCollectState(t),this.xg(t),t.collectState=this.et.getEligibleCollectState(t)),this.setSession(t)}grantReplayRecording(t){t.collectState=this.et.getInitialCollectState(),t.collectState=this.et.computeInitialCollectStateFromRecordingConsentGranted(t),this.setSession(t)}grantReplayRecordingBeforeSessionStart(){this.qn=Ss.GRANTED}withdrawnReplayRecording(t){t.collectState=this.et.getRecordingConsentWithdrawn(),this.setSession(t)}withdrawnReplayRecordingBeforeSessionStart(){this.qn=Ss.WITHDRAWN}Ma(t){this.qn===Ss.WITHDRAWN?(t.collectState=this.et.getRecordingConsentWithdrawn(),this.setSession(t)):this.qn===Ss.GRANTED?t.collectState=this.et.computeInitialCollectStateFromRecordingConsentGranted(t):t.collectState=this.et.computeInitialCollectState(t),this.qn=Ss.NO}IT(){return{pageNumber:0,collectState:this.et.getInitialCollectState(),etrState:Mt.ETR_OFF,etrStatus:Nt.ETR_NOT_SAVED_SESSION}}xg(t){t.pageNumber+=1}isReplayRecorded(){let t=this.getSession();return!!t&&this.et.isReplayRecorded(t)}isTemporarilyRecorded(){let t=this.getSession();return(t==null?void 0:t.collectState)===I.RECORDING_TEMPORARILY}abortQuotaServiceRequest(){this.et.abortQuotaServiceRequest()}getRequestParameters(){let t={},e=this.getSession();return e!==null&&(t.pn=`${e.pageNumber}`),t}getSession(){return this.ge.get()}Lg(){return this.ge.get(!0)}doesSessionExist(){return this.ge.get()!==null}setSession(t){this.ge.set(t)}refreshSession(){let t=this.Lg();t&&this.setSession(t)}removeSession(){this.ge.remove()}getCollectStates(){let t=this.getSession(),e=[];return t&&(t.collectState!==I.ANALYTICS_ONLY&&csArray.prototype.push.call(e,t.collectState===I.RECORDING_RULES_TARGETING?I.RECORDING_GLOBAL_SAMPLING:t.collectState),t.etrState===Mt.ETR_ON&&csArray.prototype.push.call(e,I.RECORDING_ETR_SAMPLING)),e}updateCollectState(t,e){let i=this.getSession();i!==null&&(i.collectState=t,i.etrState=e,this.setSession(i))}hasValidSession(){let t=this.ge.getRawSession();return this.ge.isValid(t)}handleSubdomainChange(){this.ge.handleSubdomainChange()}pollCacheRefreshEvent(t=!0){let e=this.ge.isCacheRefreshed();return e&&t&&this.ge.resetCacheRefreshed(),e}extendSessionPeriodically(){this.zn||this.Vg()}extendSession(){let t=this.getSession();return t===null?(H.warn("extendSession is trying to extend an expired session"),this.Qh(),!1):(this.ge.set(t,Fi),!0)}Vg(){if(this.PT()){this.Qh();return}this.extendSession()&&(this.OT(),this.NT())}NT(){this.zn=window.csSetTimeout(()=>{this.Vg()},Fi-In)}PT(){return lE-(N.now()+Fi-this.CT)<0}Qh(){this.zn&&(window.csClearTimeout(this.zn),this.zn=null)}OT(){this.Jh+=1,this.RT.trackDynamicVariable("session_expiry_update",this.Jh)}}return s})(),uE=(()=>{class s{constructor(t,e,i){this.h=t,this.T=e,this.qe=i}clear(){this.MT()&&(this.Ug=this.T.getVisitor(),this.T.removeVisitor()),this.kT()&&this.qe.removeExclusion()}MT(){return this.T.doesVisitorExist()&&this.T.getVisitor().appliedTrackingDraw!==this.h.lastTrackingDraw}kT(){return this.qe.getAppliedTrackingDraw()!==this.h.lastTrackingDraw}restoreClearedVisitor(){this.Ug&&this.T.setVisitor(this.Ug)}}return s})(),dE=(()=>{class s{constructor(t,e,i){this.T=t,this.w=e,this.DT=i}handle(){this.T.hasAllowSubdomainsChanged()&&(this.T.handleSubdomainChange(),this.w.handleSubdomainChange(),this.DT.handleSubdomainChange())}}return s})(),Pe="_cs_c",is=(()=>{let s;return function(r){r[r.NOT_REQUIRED=0]="NOT_REQUIRED",r[r.NOT_EXPRESSED=1]="NOT_EXPRESSED",r[r.GRANTED=2]="GRANTED",r[r.WITHDRAWN=3]="WITHDRAWN"}(s||(s={})),s})(),pE=(()=>{class s{constructor(t,e,i){this.h=t,this.M=e,this.Bt=i}get(){let t;return this.h.cookielessTrackingEnabled?t=this.Bt.getItem(Pe):t=this.M.get(Pe),t===null?t:Number(t)}set(t){this.h.cookielessTrackingEnabled?this.Bt.setItem(Pe,csString(t)):this.M.set(Pe,csString(t),hn)}remove(){this.h.cookielessTrackingEnabled?this.Bt.removeItem(Pe):this.M.delete(Pe)}handleSubdomainChange(){this.h.cookielessTrackingEnabled||(this.h.allowSubdomains?this.M.delete(Pe,er.CURRENT_DOMAIN):this.M.delete(Pe,this.M.getRootDomain()))}}return s})(),fE=(()=>{class s{constructor(t,e,i){this.h=t,this.w=e,this.E=i}grantReplayConsent(){if(!Ve.isReplayConsentNeeded(this.h))return;let t=this.w.getSession();if(!t){this.w.grantReplayRecordingBeforeSessionStart();return}Ve.isRecordingBlockedByConsent(t)&&(this.w.grantReplayRecording(t),this.E.emitAfterReplayRecordingConsentGranted())}withdrawReplayConsent(){if(!Ve.isReplayConsentNeeded(this.h))return;let t=this.w.getSession();if(!t){this.w.withdrawnReplayRecordingBeforeSessionStart();return}Ve.isRecordingWithDrawn(t)||(this.w.withdrawnReplayRecording(t),this.E.emitAfterReplayRecordingConsentWithdrawn())}}return s})(),gE=["replay:consent:unanonymized:granted","trackConsentGranted"],mE=["replay:consent:unanonymized:withdrawn","trackConsentWithdrawn"],yE=["replay:consent:startForSession:granted"],EE=["replay:consent:startForSession:withdrawn"],SE=(()=>{class s{constructor(t,e,i,n,a){this.h=t,this.f=e,this.de=i,this.w=n,this.E=a}init(){this.jg=new fE(this.h,this.w,this.E),this.de.setInitialConsent(),this.at()}at(){this.f.register(gE,()=>{this.de.grantReplayAnonymizationConsent()}),this.f.register(mE,()=>{this.de.withdrawReplayAnonymizationConsent()}),this.f.register(yE,()=>{this.jg.grantReplayConsent()}),this.f.register(EE,()=>{this.jg.withdrawReplayConsent()})}onOptout(){this.de.removeAllConsents()}onBeforeVisitorRenewal(){this.de.removeAllConsents()}onAfterVisitorRenewal(){this.de.setInitialConsent()}onAfterVisitorCleared(){this.de.setInitialConsent()}}return s})(),vE=(()=>{class s{constructor(t,e,i){this.h=t,this.it=e,this.E=i}setInitialConsent(){let t=this.it.get();(t===null||this.hasConsentRequiredChanged(t))&&this.setDefaultReplayAnonymization()}hasConsentRequiredChanged(t){let e=this.h.consentRequired;return e&&t===is.NOT_REQUIRED||!e&&t!==is.NOT_REQUIRED}handleSubdomainChange(){this.it.handleSubdomainChange()}setDefaultReplayAnonymization(){let t=this.h.consentRequired?is.NOT_EXPRESSED:is.NOT_REQUIRED;this.it.set(t)}grantReplayAnonymizationConsent(){this.h.consentRequired&&(this.it.set(is.GRANTED),this.E.emitReplayUnanonymizationConsentGranted())}withdrawReplayAnonymizationConsent(){this.h.consentRequired&&(this.it.set(is.WITHDRAWN),this.E.emitReplayUnanonymizationConsentWithdrawn())}removeAllConsents(){this.it.remove()}isReplayUnanonymizedAllowedByConsent(){return!this.h.consentRequired||this.it.get()===is.GRANTED}getRequestParameters(){return{uc:`${this.it.get()}`}}}return s})(),_E=(()=>{class s{constructor(t,e,i,n,a,c,l){this.E=t,this.f=e,this.qh=i,this.Gh=n,this.Js=a,this.LT=c,this.$n=l}start(){this.E.addListener(this.LT),this.E.addListener(this.$n),this.E.addListener(this.qh),this.$n.init(),this.Gh.init(),this.Js.init(),!this.Js.isActive()&&this.f.start()}}return s})(),wE=(()=>{class s{constructor(t,e){this.Rt=t,this.it=e}exclude(t){this.it.set(csString(t.lastTrackingDraw))}removeExclusion(){this.it.remove()}isExcluded(){return this.xT()||this.VT()}xT(){return this.getAppliedTrackingDraw()!==0}getAppliedTrackingDraw(){return this.it.get()}VT(){return csString.prototype.indexOf.call(this.Rt.href,ae)>0}}return s})(),bE=(()=>{class s{constructor(t){this.Je=t}onOptout(){this.Je.removeExclusion()}}return s})(),Vr=(()=>{let s;return function(r){r.SessionReplay="SR",r.None=""}(s||(s={})),s})(),AE=".^",TE=".*",RE=(()=>{class s{constructor(t){this.A=t,this.Zh=new csRegExp(`${AE}`)}setExcludeUrlForSessionReplay(t){try{this.Zh=new csRegExp(t)}catch{H.warn(`excludeURLforReplay - invalid regex '${t}'`),this.Zh=new csRegExp(`${TE}`)}}Hg(){return this.Zh.test(this.A.getAnonymizedUrl())?Vr.SessionReplay:Vr.None}isUrlExcludedForSessionReplay(){return this.Hg()===Vr.SessionReplay}getRequestParameters(){return{ex:this.Hg()}}}return s})(),CE=["excludeURLforReplay"],IE=(()=>{class s{constructor(t,e){this.Je=t,this.f=e}init(){this.f.register(CE,t=>{if(z(t))this.Je.setExcludeUrlForSessionReplay(t);else throw new Error("Command misuse: excludeURLforReplay")})}}return s})(),Ur="_cs_inc",PE=(()=>{class s{constructor(t,e){this.Rt=t,this.M=e}isForceIncluded(){return this.UT()||this.jT()}isForceReplayRecorded(){return this.HT(I.RECORDING_GLOBAL_SAMPLING)}UT(){return this.M.get(Ur)!==null}HT(t){return this.M.get(Ur)===t}jT(){return csString.prototype.indexOf.call(this.Rt.href,Ur)>0}}return s})(),Qs="_cs_optout",OE=(()=>{class s{constructor(t,e,i){this.h=t,this.M=e,this.Bt=i}get(){return this.h.cookielessTrackingEnabled?this.Bt.getItem(Qs):this.M.get(Qs)}set(t){this.h.cookielessTrackingEnabled?this.Bt.setItem(Qs,t):this.M.set(Qs,t,hn)}}return s})(),fa="1",NE=(()=>{class s{constructor(t,e,i){this.E=t,this.Rt=e,this.it=i}init(){!this.isActive()&&this.BT()&&this.activate()}isActive(){return this.it.get()===fa}activate(){this.E.emitOptout(),this.it.set(fa)}BT(){return csString.prototype.indexOf.call(this.Rt.href,Qs)>0}}return s})(),ME=["optout"];var kE=(()=>{class s{constructor(t,e){this.f=t,this.Js=e}init(){this.f.register(ME,()=>{this.Js.activate()})}}return s})();var DE=(()=>{class s{constructor(t,e){this.f=t,this.ot=e}init(){this.ot.addListener(this.f)}onOptout(){this.f.stop()}onBeforeSessionRenewal(){this.f.stop()}}return s})();var LE=(()=>{let s;return function(r){r.UXA="_uxa",r.WVT="cs_wvt"}(s||(s={})),s})(),xE=(()=>{class s extends It{constructor(t){super(),this.tu=t,this.ls={}}register(t,e,i){for(let n of t){let a=(...c)=>{try{let l=e(...c);return nt.counters.commandApplied.count(n),l}catch(l){nt.counters.commandMisuse.count(n),H.warn(`Misused Command: ${n}; Args: ${csJSON.stringify(c)}; Error: ${ze(l)?l.stack:l}`)}};this.ls[n]={callback:a,configuration:i},this.ls}}onStart(){this.$T(),this.zT()}onStop(){for(let t of this.tu)window[t]=[]}applyFromIntegration(t,e,i){this.Bg(t,e,`Commands.apply.from.integration: ${i}`),nt.counters.commandsFromIntegrations.count(t)}applyFromImplementation(t,e,i){this.Bg(t,e,`Commands.apply.from.implementation: ${i}`),nt.counters.commandsFromCSTC.count(t)}onIframeCommands(t){for(let e of t.commands)this.qT(e.name,e.params,t.iframePath),nt.counters.commandsFromIframe.count(e.name)}Bg(t,e,i){if(!this.isStarted){window._uxa.push([t,...e]);return}H.tryToExecute(i,()=>{if(this.ls[t])return this.ls[t].callback(...e)})()}qT(t,e,i){H.tryToExecute(`Commands.apply.from.iframe: ${i}`,()=>{if(this.ls[t])return this.ls[t].callback(...e)})()}$T(){for(let t of this.tu)window[t].forEach(([e,...i])=>this.Fg(e,i,!1))}zT(){for(let t of this.tu)window[t]={push:([e,...i])=>this.Fg(e,i,!0)}}Fg(t,e,i){var n,a;if(this.ls[t]){if(((n=this.ls[t].configuration)===null||n===void 0?void 0:n.disableApplyPending)&&!i||((a=this.ls[t].configuration)===null||a===void 0?void 0:a.disableApplyImmediate)&&i)return;try{return this.ls[t].callback(...e)}catch(l){nt.counters.commandError.count(t),H.error(`Command ${t} failed - params: ${csJSON.stringify(e)}`,l)}}}}return s})();var VE=(()=>{class s{constructor(t,e,i,n){this.h=t,this.T=e,this.w=i,this.Qg=n}getRequestParameters(){var t;let e={...un(),...this.h.getRequestParameters()},i=this.w.getSession();i&&(e.pn=`${i.pageNumber}`);let n=this.T.getVisitor();if(n&&(e.sn=`${n.visitsCount}`,e.uu=`${n.id}`),!((t=this.Qg)===null||t===void 0)&&t.hasSubProjectId()&&(e.subProjectID=`${this.Qg.getSubProjectId()}`),window.heap)try{e.happid=window.heap.appid,window.heap.getSessionId&&(e.hsid=window.heap.getSessionId()),window.heap.getUserId?e.huu=window.heap.getUserId():window.heap.userId&&(e.huu=window.heap.userId),window.heap.getPageviewMetadata&&(e.hpvid=window.heap.getPageviewMetadata().pageviewId)}catch{delete e.happid,delete e.hsid,delete e.huu,delete e.hpvid}return e}}return s})(),UE=(()=>{class s{constructor(t,e){this.f=t,this.Os=e}init(){this.f.register(["debugEvents"],t=>{typeof t=="boolean"&&this.Os.updateDynamicFields("emitDebugEvents",t)})}}return s})();function ga(s,r,t){if(!Z(r)&&!Z(t))return s.href;let e=Z(r)?Bc(r):s.pathname,i=Z(t)?Fc(t):s.search;return`${s.protocol}//${s.host}${e}${i}`}function Bc(s){return Ge(s,"/")?s:`/${s}`}function Fc(s){return Ge(s,"?")||s===""?s:`?${s}`}var jr=(()=>{let s;return function(r){r[r.page=1]="page",r[r.onNextPageviewOnly=2]="onNextPageviewOnly"}(s||(s={})),s})(),jE=(()=>{class s{constructor(t,e){this.Rt=t,this.K=e,this.JT=10}overridePath(t,e){if(t===""){this.Ar=void 0;return}let i=this.Zg(e);i&&(this.iu=i),this.Ar=e?this.tm(t,e):t}overrideQuery(t,e){let i=this.Zg(e);i&&(this.ru=i),this.Wn=e?this.tm(t,e):t}computeOverriddenUrl(t){return this.QT(t)?this.getAnonymizedUrl():t}ZT(t){return(typeof t=="string"||typeof t=="number")&&t in jr}QT(t){let e=this.em(this.Rt.href);return this.em(t)===e}em(t){return du(t,"/")?csString.prototype.slice.call(t,0,-1):t}Zg(t){return Z(t==null?void 0:t.lifespan)&&this.ZT(t==null?void 0:t.lifespan)?t==null?void 0:t.lifespan:null}t0(){return this.iu&&this.iu in jr}e0(){return this.ru&&this.ru in jr}cleanupOverrideLifespan(){this.t0()&&(this.Ar=void 0,this.iu=void 0),this.e0()&&(this.Wn=void 0,this.ru=void 0)}getAnonymizedUrl(){let t=ga(this.Rt,this.Ar,this.Wn);return this.K.anonymizeUrl(t)}getUrl(){return ga(this.Rt,this.Ar,this.Wn)}getAnonymizedPathAndQuery(){let t=Z(this.Ar)?Bc(this.Ar):this.Rt.pathname,e=Z(this.Wn)?Fc(this.Wn):this.Rt.search;return this.K.anonymizeUrl(t+e)}getUrlProtocol(){return this.Rt.protocol}getRequestParameters(){return{url:this.getAnonymizedUrl()}}tm(t,e){return this.s0(e)?this.i0(t):this.r0(e)?this.n0(t):t}r0(t){return!!t.decodeURI}n0(t){return this.sm(t,1,!1)}s0(t){return!!t.decodeURIDeep}i0(t){return this.sm(t,this.JT,!0)}sm(t,e,i){let n=t;for(let a=0;a{class s{constructor(){this.listeners=[]}addListener(t){csArray.prototype.push.call(this.listeners,t)}}return s})(),HE=(()=>{class s extends Pn{emitPageEvent(t){for(let e of this.listeners)e.onPageEvent&&e.onPageEvent(t)}emitEventTriggerRecording(t,e){for(let i of this.listeners)i.onEventTriggerRecording&&i.onEventTriggerRecording(t,e)}emitCustomJavaScriptErrorEvent(t){for(let e of this.listeners)e.onCustomJavaScriptErrorEvent&&e.onCustomJavaScriptErrorEvent(t)}emitCustomErrorEvent(t){for(let e of this.listeners)e.onCustomErrorEvent&&e.onCustomErrorEvent(t)}emitUserIdentifierEvent(t){for(let e of this.listeners)e.onUserIdentifierEvent&&e.onUserIdentifierEvent(t)}emitExternalEvent(t){for(let e of this.listeners)e.onExternalEvent&&e.onExternalEvent({type:$.EXTERNAL_EVENT,name:t,ts:0})}emitTargetingRulesArtificialPageview(t){for(let e of this.listeners)e.onTargetingRulesArtificialPageview&&e.onTargetingRulesArtificialPageview(t)}}return s})(),oi="|iframe|",BE=(()=>{class s extends Pn{constructor(t,e,i,n){super(),this.o0=t,this.a0=e,this.c0=i,this.l0=n}emitIframeEvent(t,e,i){if(this.h0(e)&&t===null){H.error(`iframeEventEmitter received event ${e} with null iframe, content:${csJSON.stringify(i)}`);return}switch(e){case K.ChildLogMessage:this.u0(i);break;case K.AnalysisEvent:{let n=i,a=this.o0.transformEvent(t,n);a.isUserEvent?this.d0(a.event):this.p0(a.event);break}case K.RecordingEvent:{let n=i,a=this.l0.transformEvents(t,n);if(a.events.length===0)return;a.containsUserEvent?this.f0(a.events):this.g0(a.events);break}case K.JavascriptError:this.m0(i);break;case K.ApiError:this.y0(i);break;case K.DetailedApiError:this.E0(i);break;case K.CustomError:this.S0(i);break;case K.EmerchandisingMessage:{let n=this.c0.transformEvent(t,i);this.v0(n);break}case K.Commands:{let n=this.a0.transformEvent(t,i);this._0(n);break}case K.IntegrationCallback:this.w0(i);break;case K.StaticResource:this.b0(i);break;case K.TrackingContextRequestMessage:this.A0(i);break;default:H.error(`Parent received unknown data type from iframe : ${csJSON.stringify(i)}`)}}h0(t){let e=[K.AnalysisEvent,K.RecordingEvent,K.EmerchandisingMessage,K.Commands];return csArray.prototype.indexOf.call(e,t)!==-1}u0(t){let{message:e,errorCode:i,level:n}=t;switch(n){case rt.debug:H.debug(e,i);break;case rt.warn:H.warn(e,!0,i);break;case rt.implementation:H.implementation(e,i);break;case rt.error:H.error(e,i);break;case rt.critical:H.critical(e,i);break}}d0(t){for(let e of this.listeners)e.onIframeAnalysisUserEvent&&e.onIframeAnalysisUserEvent(t)}p0(t){for(let e of this.listeners)e.onIframeAnalysisBrowserEvent&&e.onIframeAnalysisBrowserEvent(t)}f0(t){for(let e of this.listeners)e.onIframeRecordingUserEvent&&e.onIframeRecordingUserEvent(t)}g0(t){for(let e of this.listeners)e.onIframeRecordingBrowserEvent&&e.onIframeRecordingBrowserEvent(t)}m0(t){for(let e of this.listeners)e.onIframeJavascriptError&&e.onIframeJavascriptError(t)}y0(t){for(let e of this.listeners)e.onIframeApiError&&e.onIframeApiError(t)}E0(t){for(let e of this.listeners)e.onIframeDetailedApiError&&e.onIframeDetailedApiError(t)}v0(t){for(let e of this.listeners)e.onIframeEmerchandisingMessage&&e.onIframeEmerchandisingMessage(t)}_0(t){for(let e of this.listeners)e.onIframeCommands&&e.onIframeCommands(t)}w0(t){for(let e of this.listeners)e.onIframeIntegrationCallback&&e.onIframeIntegrationCallback(t)}b0(t){for(let e of this.listeners)e.onIframeStaticResource&&e.onIframeStaticResource(t)}A0(t){for(let e of this.listeners)e.onTrackingContextRequestCallback&&e.onTrackingContextRequestCallback(t)}S0(t){for(let e of this.listeners)e.onIframeCustomError&&e.onIframeCustomError(t)}}return s})(),FE=(()=>{class s{setItem(t,e){window.sessionStorage.setItem(t,e)}getItem(t){return window.sessionStorage.getItem(t)}removeItem(t){window.sessionStorage.removeItem(t)}}return s})(),$E=(()=>{class s{setItem(t,e){window.localStorage.setItem(t,e)}getItem(t){return window.localStorage.getItem(t)}removeItem(t){window.localStorage.removeItem(t)}}return s})(),$c=["setCustomVariable"],zE=(()=>{class s{constructor(t,e){this.f=t,this.vt=e}init(){this.f.register($c,(t,e,i,n)=>{this.vt.set(t,e,i,n)})}onAfterArtificialPageView(){this.vt.deleteNextPageOnlyCustomVariables()}onAfterNaturalPageView(){this.vt.deleteNextPageOnlyCustomVariables()}onOptout(){this.vt.removeCustomVariablesSession()}onBeforeVisitorRenewal(){this.vt.removeCustomVariablesSession(),this.vt.removeCustomVariablesPage()}}return s})(),ma=512,ya=255,Hr={SESSION:["visit",2],PAGE:["page",3],NEXT_PAGE_ONLY:["nextPageOnly",4]},qE=(()=>{class s{constructor(t,e){this.I=t,this.it=e,this.$t={},this.De={}}set(t,e,i,n){let a,c;if(($t(t)||z(t))&&Number(t)>0&&Ct(e)&&Ct(i)&&!$e(e)&&!$e(i)&&this.T0(n)){let l=this.I.anonymizePII(csString(e)),d=this.I.anonymizePII(csString(i));if(a=[csString.prototype.slice.call(l,0,ma),csString.prototype.slice.call(d,0,ya)],c=i!=="",!Z(n)||csArray.prototype.indexOf.call(Hr.SESSION,n)>=0){let g=this.getCustomVariablesSession();c?g[t]=a:delete g[t],this.setCustomVariableSession(g)}(!Z(n)||csArray.prototype.indexOf.call(Hr.PAGE,n)>=0)&&(c?this.$t[t]=a:delete this.$t[t]),Z(n)&&csArray.prototype.indexOf.call(Hr.NEXT_PAGE_ONLY,n)>=0&&(c?this.De[t]=a:delete this.De[t])}else throw new Error(`Command misuse: ${$c[0]}`)}getCustomVariablesSession(){let t=this.it.get();if(!t)return{};let e=window.csJSON.parse(t);return e!==null&&Fe(e)?e:{}}setCustomVariableSession(t){this.it.set(window.csJSON.stringify(t))}removeCustomVariablesSession(){this.it.remove()}removeCustomVariablesPage(){this.$t={}}getRequestParameters(){let t=this.getCustomVariablesSession();for(let i in this.De)this.De.hasOwnProperty(i)&&(this.$t[i]=this.De[i]);for(let i in this.$t)this.$t.hasOwnProperty(i)&&(t[i]=this.$t[i]);if(window.csJSON.stringify(t).length<=2)return{};let e={cvars:this.im(t)};return this.$t&&window.csJSON.stringify(this.$t).length>2&&(e.cvarp=this.im(this.$t)),e}deleteNextPageOnlyCustomVariables(){if(Object.keys(this.De).length>0)for(let t in this.De)this.De[t]===this.$t[t]&&(delete this.$t[t],delete this.De[t])}rm(t){for(let e in t)if(t.hasOwnProperty(e)){let i=parseInt(e,10),n=t[e],a=n[0],c=n[1];(!wh(i,1,20)||a.length>ma||c.length>ya)&&delete t[e]}}im(t){this.rm(t);let e=bh(t)?[]:t;return window.csJSON.stringify(e)}T0(t){return!Z(t)||z(t)||$t(t)}getAllValidCustomVars(){let t=this.getCustomVariablesSession();for(let e in this.De)this.De.hasOwnProperty(e)&&(this.$t[e]=this.De[e]);for(let e in this.$t)this.$t.hasOwnProperty(e)&&(t[e]=this.$t[e]);return this.rm(t),t}}return s})(),GE=/\b((?:profile|user|last|first|primary|primary(?:[/_+-]|%20)?last)(?:[/_+-]|%20)?(?:name)[/=])[^#;?&/]+/gi,WE="$1CS_ANONYMIZED_NAME",YE=(()=>{class s{constructor(t){this.I=t}anonymizeUrl(t,e={}){let i=e.maskingPatterns||[],n=e.partialMaskingPatterns||[],a=this.I.anonymizePII(t);if(a=this.I.anonymizeJwt(a),e.maskNames){let d=a;a=this.Dn(a),a!==d&&(nt.counters.redactedPII.count("name"),nt.counters.redactedPII.count("name-in-url"))}let c=this.R0(a,i);if(c!==a)return nt.counters.redactedPII.count("url"),c;let l=this.C0(a,n);return l!==a&&nt.counters.redactedPII.count("url"),l}removeQueryString(t){let{path:e,queryString:i}=this.nu(t);return i!==""?`${e}?`:e}nu(t){let e=csString.prototype.indexOf.call(t,"?"),i,n="";return e!==-1?(i=csString.prototype.slice.call(t,0,e),n=csString.prototype.slice.call(t,e,t.length)):i=t,{path:i,queryString:n}}R0(t,e){if(e.length===0)return t;let{path:i,queryString:n}=this.nu(t),a=csString.prototype.split.call(i,"/");for(let c of e){let l=this.I0(a,c);if(l!==null)return`${l}${n}`}return t}I0(t,e){if(t.length=e.length){csArray.prototype.push.call(i,a);continue}let c=e[n].key;if(this.nm(c)){let l=e[n].value;csArray.prototype.push.call(i,l);continue}if(a===c){csArray.prototype.push.call(i,a);continue}return null}return csArray.prototype.join.call(i,"/")}C0(t,e){if(e.length===0)return t;let{path:i,queryString:n}=this.nu(t),a=csString.prototype.split.call(i,"/");for(let c of e)a=this.P0(a,c);return`${csArray.prototype.join.call(a,"/")}${n}`}P0(t,e){let i=[],n=0,c=t[0]==="http:"||t[0]==="https:"?2:0;for(let l=0;l=c){let u=e[n].value;csArray.prototype.push.call(i,d.length>0?u:""),n++,n===e.length&&(n=0);continue}if(d===g){csArray.prototype.push.call(i,d),n++,n===e.length&&(n=0);continue}for(let u=0;u{class s{constructor(t,e){this.lt=t,this.h=e}getEventTargetPathAndHierarchy(t,e){let i=ut(t),n={isNodeSensitive(a){return M.isMaskedElement(a)||M.isMaskedElementChild(a)},isAttributeSensitive(a,c){return M.isMaskedAttribute(a,c)},allWhitelistedAttributes:hc(this.h.whitelistedAttributes),attributeIgnoreTokens:XE,useAnonymization:e,attrMaxLength:JE,hierarchyMaxLength:KE};return this.lt.getElementPathAndHierarchy(i,n,{dynamicIdRegex:this.h.dynamicIdRegex,...this.h.pathComputationRules})}getEventTargetPath(t){let e=ut(t);return this.lt.getElementPath(e,{dynamicIdRegex:this.h.dynamicIdRegex,...this.h.pathComputationRules})}getEventTargetPathAndTargetLink(t){let e=ut(t),{path:i,firstAnchorParent:n}=this.lt.getElementPathAndFirstAnchorParent(e,{dynamicIdRegex:this.h.dynamicIdRegex,...this.h.pathComputationRules}),a=this.O0(n)?n.href:"";return{path:i,targetLink:a}}hasValidEventTarget(t){let e=ut(t);return this.lt.isValidElement(e)}getElementPath(t){return this.lt.getElementPath(t,{dynamicIdRegex:this.h.dynamicIdRegex,...this.h.pathComputationRules})}O0(t){var e;return t!==null&&t.hasAttribute("href")&&!Ge((e=t.getAttribute("href"))!==null&&e!==void 0?e:"","#")}}return s})(),ZE=(()=>{class s{constructor(t){this.W=t}transformEvent(t,e){this.N0(t,e.event);let i=this.W.getElementPath(t);return this.M0(i,e.event),e}N0(t,e){if(Mg(e)){let i=t.getBoundingClientRect();e.x=Math.round(i.left+e.x+Et.windowOffsetX()),e.y=Math.round(i.top+e.y+Et.windowOffsetY())}}M0(t,e){_c(e)&&(e.tgt=`${t}${oi}${e.tgt}`),Og(e)&&(e.tgtHM=`${t}${oi}${e.tgtHM}`),Ng(e)&&(e.tgtLk=`${t}${oi}${e.tgtLk}`)}}return s})(),tS=(()=>{class s{constructor(t){this.W=t}transformEvent(t,e){let i=this.W.getElementPath(t);return{iframePath:e.iframePath?`${i}${oi}${e.iframePath}`:i,commands:e.commands}}}return s})(),eS=(()=>{class s{constructor(t){this.W=t}transformEvent(t,e){if(e.products.length===0)return e;let i=this.W.getElementPath(t),n=csArray.prototype.map.call(e.products,a=>({...a,targetPath:`${i}${oi}${a.targetPath}`}));return{...e,products:n}}}return s})(),sS=(()=>{class s{constructor(){this.k0={clientX:2,clientY:3},this.D0={clientX:1,clientY:2},this.L0=[L.POINTER_DOWN,L.POINTER_MOVE,L.POINTER_UP],this.x0=[L.TOUCH_START,L.TOUCH_MOVE,L.TOUCH_END]}transformEvents(t,e){if(!lt.isConnected(t))return e.events=csArray.prototype.filter.call(e.events,c=>c.type!==L.VISIBILITY_CHANGE),e.events.length===0||(H.warn(`IframeRecordingEventsTransformer received event ${K.RecordingEvent} from disconnected iframe, content:${csJSON.stringify(e.events)}`),e.events=[]),e;let i=et(t),n=null;csArray.prototype.some.call(e.events,c=>this.om(c)||this.am(c))&&(n=t.getBoundingClientRect());for(let c of e.events)this.om(c)?this.V0(n,c):this.am(c)&&this.U0(n,c),c.context=c.context&&c.context.length>0?`${i}/${c.context}`:`${i}`;return e}U0(t,e){this.cm(this.D0,t,e)}V0(t,e){this.cm(this.k0,t,e)}cm(t,e,i){i.args&&(i.args[t.clientX]=Math.round(e.left+i.args[t.clientX]),i.args[t.clientY]=Math.round(e.top+i.args[t.clientY]))}om(t){return csArray.prototype.indexOf.call(this.L0,t.type)!==-1}am(t){return csArray.prototype.indexOf.call(this.x0,t.type)!==-1}}return s})(),iS=(()=>{class s{constructor(t){this.ou=t}start(){this.ou.onEvent(t=>this.G(t)),this.ou.start()}stop(){this.ou.stop()}G(t){let e=`Content Security Policy error. Violated directive: ${t.violatedDirective} - Source file: ${t.sourceFile}`;H.warn(e)}}return s})(),rS=(()=>{class s{constructor(){this.Vt={boundElement:document,type:"securitypolicyviolation",listener:t=>this.securityPolicyViolationListener(t)},csArray.prototype.push.call(s.au,"localhost"),csArray.prototype.push.call(s.au,"fake-tracker.content-square.fr")}start(){gt(this.Vt)}stop(){dt(this.Vt)}onEvent(t){this.O=t}j0(t){if(!t)return!1;let e=t.disposition;return z(t.sourceFile)&&csArray.prototype.some.call(s.au,i=>csString.prototype.indexOf.call(t.sourceFile,i)>0)&&e!=="report"}securityPolicyViolationListener(t){this.j0(t)&&this.O({violatedDirective:t.violatedDirective,sourceFile:t.sourceFile})}}return s.au=["contentsquare","cdnssl.clicktale.net"],U([P("Event handler type: securitypolicyviolation")],s.prototype,"securityPolicyViolationListener",null),s})(),nS=(()=>{class s{init(){this.lm=new iS(new rS),this.lm.start()}onOptout(){this.lm.stop()}}return s})();var{toString:MS}=Object.prototype;function zc(s,r){if(typeof s!="function"||r!=null&&typeof r!="function")throw new TypeError("Expected a function");let t=function(...e){let i=r?r.apply(this,e):e[0],{cache:n}=t;if(n.has(i))return n.get(i);let a=s.apply(this,e);return t.cache=n.set(i,a)||n,a};return t.cache=new(zc.Cache||Map),t}zc.Cache=Map;var{hasOwnProperty:kS}=Object.prototype;var qc=(()=>{class s{constructor(t){this.configuration=t}}return s})(),oS=(()=>{class s extends qc{constructor(t,e,i){super(t),this.configuration=t,this.Qn=e,this.E=i,this.oR=I.RECORDING_GLOBAL_SAMPLING}refreshQuota(){this.Zn=void 0,this.Ua()}onQuotaReady(t){this._m=t}init(){this.aR()}sanitizeSessionCollectState(t){return t}canCollect(t){return t!==null&&t.collectState!==I.QUOTA_REACHED}computeInitialCollectState(t){return this.Zn?(this.E.emitCollectStateChange(this.Zn,Mt.ETR_OFF),this.Zn):(H.warn("Quota file error computeInitialCollectState() called before quota answered"),I.QUOTA_REACHED)}getEligibleCollectState(t){return t.collectState===I.QUOTA_REACHED?I.QUOTA_REACHED:!di.isRecordingSupported()&&this.isReplayRecorded(t)?I.ANALYTICS_ONLY:t.collectState===I.RECORDING_RULES_TARGETING?I.RECORDING_RULES_TARGETING:t.collectState===I.ANALYTICS_ONLY_RULES_TARGETING?I.ANALYTICS_ONLY_RULES_TARGETING:t.collectState===I.RECORDING_GLOBAL_SAMPLING?I.RECORDING_GLOBAL_SAMPLING:I.ANALYTICS_ONLY}abortQuotaServiceRequest(){}isReplayRecorded(t){return t.collectState===I.RECORDING_GLOBAL_SAMPLING||t.collectState===I.RECORDING_RULES_TARGETING}getInitialCollectState(){return this.Zn||I.QUOTA_REACHED}setVisitorService(t){}computeInitialCollectStateFromRecordingConsentGranted(t){return I.ANALYTICS_ONLY}to(t){this.Zn=t,this._m&&this._m(t)}aR(){this.Qn.onError(t=>this.quotaServiceErrorHandler(`HTTP:${t.status} - fetching quota file for pid: ${this.configuration.projectId}`)),this.Qn.onTimeout(()=>this.quotaServiceErrorHandler("timeout")),this.Qn.onLoad(t=>this.quotaFileHandler(t))}Ua(){this.Qn.isInProgress()||this.Qn.send()}quotaFileHandler(t){var e;if(!(!((e=t==null?void 0:t.quotas)===null||e===void 0)&&e.length)){this.quotaServiceErrorHandler("Quota types missing from config file");return}this.cR(t)}quotaServiceErrorHandler(t){let e=`Quota error - ${t}`;H.warn(e),this.to(this.oR)}cR(t){let e=!1,i=!1;for(let n of t.quotas)n.quotaType==="ANALYTICS"&&n.value?e=!0:n.quotaType==="RECORDING"&&n.value&&Cs.boolean(Math.round(n.value*100))&&(i=!0);!e&&i?this.quotaServiceErrorHandler(`Quota types impossible: replay without analytics - ${csJSON.stringify(t)}`):e&&i?di.isRecordingSupported()?this.to(I.RECORDING_GLOBAL_SAMPLING):this.to(I.ANALYTICS_ONLY):e&&!i?this.to(I.ANALYTICS_ONLY):this.to(I.QUOTA_REACHED)}getRecordingConsentWithdrawn(){return I.ANALYTICS_ONLY}}return U([P("Quota File: quotaFileHandler")],s.prototype,"quotaFileHandler",null),U([P("Quota File: onerror")],s.prototype,"quotaServiceErrorHandler",null),s})(),aS=3e3,cS=(()=>{class s extends qc{constructor(t,e,i,n,a){super(t),this.configuration=t,this.eo=e,this.E=i,this.Xh=n,this.A=a,this.$e=[]}refreshQuota(){}onQuotaReady(t){}canCollect(t){return!0}init(){this.lR()}sanitizeSessionCollectState(t){return(t.collectState===I.QUOTA_REACHED||t.collectState===I.RECORDING_RULES_TARGETING||t.collectState===I.RECORDING_TEMPORARILY)&&(t.collectState=I.ANALYTICS_ONLY),t}computeInitialCollectState(t){return Ve.isReplayConsentNeeded(this.configuration)?I.RECORDING_BLOCKED_BY_CONSENT_NOT_EXPRESSED:this.Ma(t)}computeInitialCollectStateFromRecordingConsentGranted(t){return this.Ma(t)}Ma(t){return di.isRecordingSupported()?(this.$e=[],Cs.percentage()0?(this.Ua(t),I.RECORDING_TEMPORARILY):I.ANALYTICS_ONLY):I.ANALYTICS_ONLY}getEligibleCollectState(t){return di.isRecordingSupported()?Ve.isRecordingBlockedByConsent(t)?t.collectState===I.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN?I.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN:I.RECORDING_BLOCKED_BY_CONSENT_NOT_EXPRESSED:t.collectState===I.RECORDING_GLOBAL_SAMPLING?I.RECORDING_GLOBAL_SAMPLING:(this.$e=[],this.configuration.malkaUrlEnabled&&(csArray.prototype.push.call(this.$e,I.RECORDING_URL_SAMPLING),this.configuration.malkaEtrEnabled&&csArray.prototype.push.call(this.$e,I.RECORDING_ETR_SAMPLING)),this.$e.length>0?(this.Ua(t),I.RECORDING_TEMPORARILY):(t.etrState===Mt.ETR_ON&&this.E.emitCollectStateChange(I.ANALYTICS_ONLY,Mt.ETR_ON),I.ANALYTICS_ONLY)):I.ANALYTICS_ONLY}Ua(t){var e;let i=(e=this.T)===null||e===void 0?void 0:e.getVisitor();this.eo.send({recordingTypes:csArray.prototype.map.call(this.$e,Number),url:this.A.getAnonymizedUrl(),projectId:this.configuration.projectId,uu:(i==null?void 0:i.id)||"",sn:(i==null?void 0:i.visitsCount)||"",pn:(t==null?void 0:t.pageNumber)||""})}abortQuotaServiceRequest(){this.eo.abort()}isReplayRecorded(t){return Ve.isRecordingBlockedByConsent(t)?!1:t.collectState===I.RECORDING_TEMPORARILY||t.collectState===I.RECORDING_GLOBAL_SAMPLING||t.collectState===I.RECORDING_URL_SAMPLING||t.etrState===Mt.ETR_ON}lR(){this.eo.onError(()=>this.quotaServiceErrorHandler("NetworkError")),this.eo.onTimeout(()=>this.quotaServiceTimeoutHandler(),aS),this.eo.onLoad(t=>this.quotaServiceLoadHandler(t))}quotaServiceErrorHandler(t){this.wm(`error - ${t}`)}quotaServiceTimeoutHandler(){this.wm("timeout")}wm(t){let e=I.ANALYTICS_ONLY;this.bm(this.$e)?(e=I.RECORDING_GLOBAL_SAMPLING,H.warn(`Quota Service: request ${t} - bypassed by GLOBAL_SAMPLING`)):H.warn(`Quota Service: request ${t}`),this.E.emitCollectStateChange(e,Mt.ETR_OFF)}quotaServiceLoadHandler(t){if(t.status!==200){this.quotaServiceErrorHandler(`Status code: ${t.status}`);return}let e;try{e=csJSON.parse(t.responseText)}catch{this.quotaServiceErrorHandler(`Unable to parse the quota service response: ${t.responseText}`);return}let i=e.allowedRecordingTypes==null?void 0:csArray.prototype.map.call(e.allowedRecordingTypes,csString);if(!i){this.quotaServiceErrorHandler("recording types missing from quota service response");return}let n=Mt.ETR_OFF,a=I.ANALYTICS_ONLY;this.bm(i)?a=I.RECORDING_GLOBAL_SAMPLING:this.hR(i)&&(a=I.RECORDING_URL_SAMPLING),this.uR(i)&&(n=Mt.ETR_ON),this.E.emitCollectStateChange(a,n)}bm(t){return csArray.prototype.some.call(t,e=>e===I.RECORDING_GLOBAL_SAMPLING)}hR(t){return csArray.prototype.some.call(t,e=>e===I.RECORDING_URL_SAMPLING)}uR(t){return csArray.prototype.some.call(t,e=>e===I.RECORDING_ETR_SAMPLING)}setVisitorService(t){this.T=t}getInitialCollectState(){return I.ANALYTICS_ONLY}getRecordingConsentWithdrawn(){return I.RECORDING_BLOCKED_BY_CONSENT_WITHDRAWN}}return U([P("Quota Service: onerror")],s.prototype,"quotaServiceErrorHandler",null),U([P("Quota Service: ontimeout")],s.prototype,"quotaServiceTimeoutHandler",null),U([P("Quota Service: onload")],s.prototype,"quotaServiceLoadHandler",null),s})();function lS(){let s="[data-cs-mask]",r="#c1_card_info_id",t=".ctHidden",e=["[data-heap-redact-text]","[heap-ignore]","[data-heap-ignore]","[data-heap-redact-attributes]"],i=["[data-hj-suppress]",".data-hj-suppress","[data-hj-masked]"];return[s,r,t,...e,...i]}function hS(){return[{selector:".ctHidden,input:not([type=button]):not([type=submit])",attrName:"value"}]}var uS=(()=>{class s{constructor(){this.dR={PIISelectors:["picture","img","video","audio"],Attributes:[]},this.Ts={elementSelector:"",attrSelector:"",attrSelectors:[]};let t={PIISelectors:lS(),Attributes:hS()};this.Ts=M.getComputedSelectorSettings(t,this.Ts)}init(){this.pR()}setMaskedElementSettingsFromCommand(t){if(t=M.sanitizeSelectorUserInput(t),!M.isSelectorUserInput(t))throw new Error(`Command misuse: ${jc[0]}`);this.Su(t)}setMaskedElementSettingsFromParent(t){let e={PIISelectors:csString.prototype.split.call(t.elementSelector,","),Attributes:t.attrSelectors};this.Su(e)}getMaskedElementSettings(t){return t?this.Am(this.dR):this.Ts}pR(){var t,e,i,n,a,c;let l={PIISelectors:[],Attributes:[]};((i=(e=(t=window==null?void 0:window.ClickTaleSettings)===null||t===void 0?void 0:t.DOM)===null||e===void 0?void 0:e.PII)===null||i===void 0?void 0:i.Text)instanceof Array&&l.PIISelectors.push(...window.ClickTaleSettings.DOM.PII.Text),((c=(a=(n=window==null?void 0:window.ClickTaleSettings)===null||n===void 0?void 0:n.DOM)===null||a===void 0?void 0:a.PII)===null||c===void 0?void 0:c.Attributes)instanceof Array&&window.ClickTaleSettings.DOM.PII.Attributes.forEach(d=>{z(d.attr)&&z(d.rule)&&l.Attributes.push({selector:d.rule,attrName:d.attr})}),this.Su(l)}Su(t){this.Ts=this.Am(t)}Am(t){return M.getComputedSelectorSettings(t,this.Ts)}}return s})();var dS=(()=>{class s{constructor(t,e,i,n,a){this.h=t,this.oi=e,this.ds=i,this.C=n,this.E=a,this.fR=()=>{var c;let l=pt.get(Yt);l!==null&&Ar.isValidSessionString(l)?this.et.canCollect(Ar.fromRawString(l))?this.init():!((c=this.h.voc)===null||c===void 0)&&c.enabled:(this.et.onQuotaReady(d=>{var g;d!==I.QUOTA_REACHED?this.init():!((g=this.h.voc)===null||g===void 0)&&g.enabled}),this.et.refreshQuota())}}initWithQuota(){var t,e;if(((t=this.h.smbConfig)===null||t===void 0?void 0:t.record)===!1){!((e=this.h.voc)===null||e===void 0)&&e.enabled;return}let i=new Cn(this.h.getQuotaUri(),"",{type:"json",cacheMinutes:15});this.et=new oS(this.h,i,this.E),this.et.init(),this.fR()}init(){Zs.isSupported()&&Zs.setDigestSalt(this.h.projectId.toString());let t,e,i,n,a,c,l,d,g,u,y,E,v,A,k,R,b,x,w,D,j,W,at,vt,_t,S,O,V,B,tt,ht,Pt,pe,Ke,cr;this.C.schedule(()=>{t=new gi,e=new YE(t),n=new jE(window.location,e),i=new er(this.h,n,this.oi),i.init()}),this.C.schedule(()=>{a=new FE,c=new $E,b=new PE(window.location,i),new nS().init(),x=Hc.create(H.warn),R=new Ya(x);let fe=R.create(`${this.h.getLegacyQuotaUri()}/quota`,!0);this.et===void 0&&(this.et=new cS(this.h,fe,this.E,b,n),this.et.init())}),this.C.schedule(()=>{l=new Ar(this.h,i,a),g=new hE(l,this.et)}),this.C.schedule(()=>{u=new od(this.h,i,a),y=new aE(this.h,u,this.E,g),this.ds.setContext(y,g),this.et.setVisitorService(y)}),this.C.schedule(()=>{Ke=new vE(this.h,new pE(this.h,i,c),this.E),E=new dE(y,g,Ke),v=new ld(this.h,i,a),A=new wE(window.location,v),k=new bE(A),j=new uE(this.h,y,A),Pt=new QE(ue,this.h),O=new ZE(Pt),V=new tS(Pt),B=new eS(Pt),tt=new sS,ht=new BE(O,V,B,tt),S=new xE([LE.UXA]),W=new DE(S,ht),at=new RE(n),vt=new IE(at,S);let ps=new hd(this.h,i,a);pe=new qE(t,ps),_t=new zE(S,pe);let fe=new rd(y,g,A,pe,this.h)}),this.C.schedule(()=>{new oE(this.h,y,A,j,E,w,d,b).compute(fe=>{this.C.schedule(()=>{W.init();let Vs=new HE,oe=new SE(this.h,S,Ke,g,this.E),wt=new OE(this.h,i,c),Lt=new NE(this.E,window.location,wt),Us=new kE(S,Lt),lr=new UE(S,this.h),hr=new VE(this.h,y,g,D);if(fe){this.E.emitInitTracking();let js=new uS;new nE(hr,x,y,g,this.E,S,W,this.h,Us,Lt,oe,Ke,t,Pt,e,n,lr,Vs,ht,pe,_t,at,vt,this.C,R,i,c,this.et,js).start()}else new _E(this.E,S,W,Us,Lt,k,oe).start()})})})}}return s})(),as=(()=>{let s;return function(r){let t="{domain}/tag/tag.bundle.js?v={version}",e,i={loadBundle(b){let x=b.source,w=b.data;if(c(w)){let D=()=>{let j=n(t,w);y(j,()=>x.postMessage("csBundleLoaded",b.origin))};e=w.token,R(i.loadBundle),l(b.origin)&&D()}}};function n(b,x){return csString.prototype.replace.call(csString.prototype.replace.call(csString.prototype.replace.call(b,"{version}",x.version),"{token}",x.token),"{domain}",x.domain)}function a(){return e}r.getToken=a;function c(b){return b&&b.type==="csBundleInjection"&&l(b.domain)&&g(b.version)&&d(b.token)}r.isAuthorizedIncomingMessage=c,r.hjDomainRegex=/^https?:\/\/[a-zA-Z0-9\.\-]+\.hotjar\.com$/;function l(b){return/^https?:\/\/[a-zA-Z0-9\.\-]+\.(content-square\.fr|contentsquare\.com|csq\.io)$/.test(b)||r.hjDomainRegex.test(b)}r.isAuthorizedDomain=l;function d(b){return/^[a-zA-Z0-9]+$/.test(b)}r.isAuthorizedToken=d;function g(b){return/^[a-zA-Z0-9\.]+$/.test(b)}r.isAuthorizedTagVersion=g;function u(){let b=window.opener||window.parent;return window!==b&&window.addEventListener}r.isActivable=u;function y(b,x){let w=document.createElement("script");w.type="text/javascript",w.async=!0,w.src=b,w.onload=x,w.charset="utf-8",document.head.appendChild(w)}r.addScript=y;function E(b){let x=document.createElement("link");x.rel="stylesheet",x.href=b,document.head.appendChild(x)}r.addStyle=E;function v(b){return`${b}?cb=${new csDate().getTime()}`}r.addCacheBusting=v;function A(){k(i.loadBundle)}r.waitForBundleInjection=A;function k(b){window.addEventListener("message",b,!1)}r.listen=k;function R(b){window.removeEventListener("message",b,!1)}r.removeListener=R}(s||(s={})),s})(),Ea="_hp_ved",pS=18e5,_i="https://heapanalytics.com",fS=`${_i}/js/ved.js`,gS=`${_i}/css/ved.css`,mS=`${_i}/js/ved.css`,yS=(()=>{let s;return function(r){r.StatusUpdate="status"}(s||(s={})),s})(),ES=(()=>{let s;return function(r){r.ReceivedInitMessage="received_init_message"}(s||(s={})),s})();var Br=(()=>{let s;return function(r){let t=!1;function e(){let g=[gS,mS];csArray.prototype.forEach.call(g,u=>{as.addStyle(u)})}function i(g){let u=new csRegExp("(^|;)[ ]*"+g+"=([^;]*)"),y=u.exec(document.cookie);return y?decodeURIComponent(y[2]):null}function n(g,u,y){let E=encodeURIComponent(g)+"="+encodeURIComponent(u),v=new csDate;v.setTime(v.getTime()+y);let A=E+"; expires="+v.toUTCString()+"; path=/";document.cookie=A}function a(){n(Ea,"on",pS)}function c(){return i(Ea)==="on"}r.isVLCookieEnabled=c;function l(g){window.heapV=Object.assign({},window.heap,{source:g==null?void 0:g.source,uri:_i,loadArgs:g==null?void 0:g.data.args,identify:()=>{},track:()=>{}})}r.initializeHeapV=l;function d(g){var u;if(g){let y={type:yS.StatusUpdate,value:ES.ReceivedInitMessage},E={targetOrigin:g==null?void 0:g.origin};(u=g==null?void 0:g.source)===null||u===void 0||u.postMessage(y,E)}t||(t=!0,a(),l(g),window.heapV&&(as.addScript(fS),e()))}r.init=d}(s||(s={})),s})(),SS=(()=>{let s;return function(r){let t=window.opener||window.parent,e="tag",i="https://app.contentsquare.com",n=[/^https:\/\/app\.contentsquare\.com$/,/^https:\/\/dev-app\.contentsquare\.com$/,/^https:\/\/staging-app\.contentsquare\.com$/,/^https:\/\/.*\.test\.contentsquare\.com$/,/^https:\/\/app\.[a-z0-9-]+\.csiab\.[a-z0-9-]+\.csq\.io$/,as.hjDomainRegex],a,c,l={initHeapVisualLabeler(w){var D;w.origin===_i&&((D=w.data)===null||D===void 0?void 0:D.message)==="init"&&w.source&&(Br.init(w),R(l.initHeapVisualLabeler))},ping(w){typeof w.data=="string"&&w.data==="ping"&&u(w.origin)&&(c=w.origin,a=as.hjDomainRegex.test(w.origin)?i:w.origin,R(l.ping),k(l.insertMessageScript),y(as.addCacheBusting("utils.js")))},insertMessageScript:b(w=>{typeof w.data=="string"&&w.data!=="ping"&&(R(l.insertMessageScript),y(w.data))})};function d(){return as.getToken()}r.getToken=d;function g(){return window!==t&&window.addEventListener}r.isActivable=g;function u(w){return csArray.prototype.some.call(n,D=>D.test(w))}r.isAuthorizedDomain=u;function y(w,D){let j=document.createElement("script");j.type="text/javascript",j.async=!0;let W=a==null?void 0:csString.prototype.replace.call(a,/^https?:/,"");j.src=`${W}/${e}/${w}`,j.onload=D,j.charset="utf-8",document.getElementsByTagName("head")[0].appendChild(j),E(w)}function E(w){csString.prototype.includes.call(w,"&mode=")&&sessionStorage.setItem("_hjRetakerMode",csString.prototype.split.call(w,"&mode=")[1])}function v(){k(l.ping),as.waitForBundleInjection()}r.waitForConnection=v;function A(){k(l.initHeapVisualLabeler),Br.isVLCookieEnabled()&&Br.init()}r.waitForHeapVisualLabeler=A;function k(w){window.addEventListener("message",w,!1)}r.listen=k;function R(w){window.removeEventListener("message",w,!1)}r.removeListener=R;function b(w){return function(D){D.origin===c&&w(D)}}r.secureListener=b;function x(w){c&&t.postMessage(w,c)}r.post=x}(s||(s={})),s})();var Hi=window.CSFrameCommunication||SS;var vS=(()=>{class s extends Pn{constructor(t){super(),this.C=t}emitBeforeNaturalPageView(){for(let t of this.listeners)t.onBeforeNaturalPageView&&t.onBeforeNaturalPageView()}emitAfterNaturalPageView(){for(let t of this.listeners)t.onAfterNaturalPageView&&t.onAfterNaturalPageView()}emitInitTracking(){for(let t of this.listeners)t.onInitTracking&&t.onInitTracking()}emitStartTracking(t){for(let e of this.listeners)e.onStartTracking&&this.C.schedule(()=>e.onStartTracking(t))}emitArtificialPageViewEnd(){for(let t of this.listeners)if(t.onArtificialPageViewEnd)try{t.onArtificialPageViewEnd()}catch(e){H.error(e)}}emitBeforeArtificialPageView(){for(let t of this.listeners)t.onBeforeArtificialPageView&&t.onBeforeArtificialPageView()}emitAfterArtificialPageView(){for(let t of this.listeners)t.onAfterArtificialPageView&&t.onAfterArtificialPageView()}emitBeforeSessionRenewal(){for(let t of this.listeners)t.onBeforeSessionRenewal&&t.onBeforeSessionRenewal()}emitAfterSessionRenewal(){for(let t of this.listeners)t.onAfterSessionRenewal&&t.onAfterSessionRenewal()}emitOptout(){for(let t of this.listeners)t.onOptout&&t.onOptout()}emitReplayUnanonymizationConsentGranted(){for(let t of this.listeners)t.onReplayUnanonymizationConsentGranted&&t.onReplayUnanonymizationConsentGranted()}emitReplayUnanonymizationConsentWithdrawn(){for(let t of this.listeners)t.onReplayUnanonymizationConsentWithdrawn&&t.onReplayUnanonymizationConsentWithdrawn()}emitAfterReplayRecordingConsentGranted(){for(let t of this.listeners)t.onAfterReplayRecordingConsentGranted&&t.onAfterReplayRecordingConsentGranted()}emitAfterReplayRecordingConsentWithdrawn(){for(let t of this.listeners)t.onAfterReplayRecordingConsentWithdrawn&&t.onAfterReplayRecordingConsentWithdrawn()}emitCollectStateChange(t,e){for(let i of this.listeners)i.onCollectStateChange&&i.onCollectStateChange(t,e)}emitInitialDomStart(){for(let t of this.listeners)t.onInitialDomStart&&t.onInitialDomStart()}emitInitialDomDone(t){for(let e of this.listeners)e.onInitialDomDone&&e.onInitialDomDone(t)}emitRecordingContextChange(){for(let t of this.listeners)t.onRecordingContextChange&&t.onRecordingContextChange()}emitSensitiveStatusChange(){var t;for(let e of this.listeners)(t=e.onSensitiveStatusChange)===null||t===void 0||t.call(e)}emitBeforeVisitorRenewal(){for(let t of this.listeners)t.onBeforeVisitorRenewal&&t.onBeforeVisitorRenewal()}emitAfterVisitorCleared(){for(let t of this.listeners)t.onAfterVisitorCleared&&t.onAfterVisitorCleared()}emitAfterVisitorRenewal(){for(let t of this.listeners)t.onAfterVisitorRenewal&&t.onAfterVisitorRenewal()}}return U([Dt("emitStartTracking")],s.prototype,"emitStartTracking",null),s})();var _S=(()=>{let s;return function(r){function t(){return typeof window.CSJavascriptBridge=="object"&&typeof window.CSJavascriptBridge.optIn=="function"&&typeof window.CSJavascriptBridge.optOut=="function"&&typeof window.CSJavascriptBridge.sendEvent=="function"&&typeof window.CSJavascriptBridge.sendDynamicVar=="function"&&typeof window.CSJavascriptBridge.sendTransaction=="function"}r.isCSJavascriptBridgeDefined=t;function e(){if(typeof window.CSJavascriptBridge.getVersion=="function")try{let v=window.CSJavascriptBridge.getVersion();if($t(v))return v}catch{H.warn("an error occurred when calling getVersion")}return null}r.getBridgeVersion=e;function i(){typeof window.CSJavascriptBridge.onWebviewTrackingReady=="function"&&window.CSJavascriptBridge.onWebviewTrackingReady()}r.notifyIsReadyForTracking=i;function n(v){window.CSJavascriptBridge.sendEvent(csJSON.stringify(v))}r.sendAnalysisEvent=n;function a(v){if(window.CSJavascriptBridge.sendSREvent)for(let A of v.events)window.CSJavascriptBridge.sendSREvent(csJSON.stringify(A))}r.sendSREvent=a;function c(v){window.CSJavascriptBridge&&window.CSJavascriptBridge.sendLog&&window.CSJavascriptBridge.sendLog(csJSON.stringify(v))}r.sendLog=c;function l(){window.CSJavascriptBridge.optIn()}r.sendOptIn=l;function d(){window.CSJavascriptBridge.optOut()}r.sendOptOut=d;function g(v,A){window.CSJavascriptBridge.sendDynamicVar(v,A)}r.sendDynamicVariable=g;function u(v,A,k){window.CSJavascriptBridge.sendTransaction(v,A,k)}r.sendTransaction=u;function y(v,A){if(window.CSJavascriptBridge.sendAssets){let k=csJSON.stringify(v);window.CSJavascriptBridge.sendAssets(k,A||null)}else window.CSJavascriptBridge.sendSRAssets&&window.CSJavascriptBridge.sendSRAssets(csArray.prototype.map.call(v,k=>k.assetId))}r.sendAssets=y;function E(v){window.CSJavascriptBridge&&window.CSJavascriptBridge.sendNativeSREvent&&window.CSJavascriptBridge.sendNativeSREvent(csJSON.stringify(v))}r.sendNativeSREvent=E}(s||(s={})),s})();var wS=(()=>{class s{constructor(t,e,i){this.h=t,this.mt=e,this.ds=i}start(){var t,e,i,n,a;if(window.UXAnalytics)return;window.UXAnalytics={};let c=new cc(!!(!((t=this.h.taskSchedulerOptions)===null||t===void 0)&&t.enabled),(e=this.h.taskSchedulerOptions)===null||e===void 0?void 0:e.maxProcessingTime,(i=this.h.taskSchedulerOptions)===null||i===void 0?void 0:i.waitDuration),l=new Qu(this.mt,this.h);l.init();let d=new td(this.h,l);if(this.mt.isTopWindowTracker()&&d.canTrack()){if(!((n=window.CSProtectnativeFunctionsLogs)===null||n===void 0)&&n.Warning&&H.warn(`protectNativeFunctions failed: ${window.CSProtectnativeFunctionsLogs.Warning}`),!((a=window.CSProtectnativeFunctionsLogs)===null||a===void 0)&&a.Critical){H.error(`protectNativeFunctions failed: ${window.CSProtectnativeFunctionsLogs.Critical}`);return}Ku();let u=new vS(c),y=new dS(this.h,l,this.ds,c,u);this.h.isQuotaEnabled()?y.initWithQuota():y.init()}let g=csString.prototype.indexOf.call(window.location.href,"csDebug=1")>-1;window.UXAnalytics={Sensitive:{isNodeSensitive(u){return M.isMaskedElement(u)||M.isMaskedElementChild(u)},isAttributeSensitive(u,y){return M.isMaskedAttribute(u,y)},getSensitiveAttributes(u){return xa(u.attributes,y=>M.isMaskedAttribute(u,y.name))}},Console:{warn(u){g&&console.warn("cs.tracking.warning",u)},error(u){g&&console.error("cs.tracking.error",u)}},Version:ja},window.CSFrameCommunication||(window.CSFrameCommunication=Hi,Hi.isActivable()&&Hi.waitForConnection(),this.h.isCsCrosswritingHeap()&&Hi.waitForHeapVisualLabeler())}}return U([Dt("main.start"),P("main.start")],s.prototype,"start",null),s})(),bS=(()=>{class s{constructor(){}send(t,e,i=rt.warn){let n={message:t,errorCode:e,level:i};_S.sendLog(n)}}return s})();var AS=(()=>{class s{constructor(t,e,i){this.V=t,this.I=e,this.lC=i,this.bt=[],this.Ce=null,this.hC=un().v}Bm(){this.bt.length!==0&&(this.V.send({m:csArray.prototype.map.call(this.bt,t=>({n:t.name,p:t.parameter,v:t.value})),p:this.I.anonymizePII(window.location.pathname),pid:this.lC,v:this.hC}),this.bt=[])}push(t){if(csArray.prototype.push.call(this.bt,...t),this.Ce&&(csClearTimeout(this.Ce),this.Ce=null),this.bt.length>=s.MAX_QUEUE_SIZE){this.Bm();return}this.Ce=window.csSetTimeout(()=>{this.Bm(),this.Ce=null},s.DEBOUNCE_INTERVAL)}}return s.DEBOUNCE_INTERVAL=5e3,s.MAX_QUEUE_SIZE=100,s})();function TS(s,r){let t=s.validationRate/10,e=Cs.boolean(t);if((s.environment==="staging"||!1||e)&&!r.isInWebViewContext())try{let a=Hc.create(H.warn,r.isTopWindowTracker()),l=new Ya(a).create(s.getMetricsUri(),!0),d=new gi,g=new AS(l,d,s.projectId);nt.setService(g)}catch(a){H.warn(`Error initializing metrics: ${a.message}`)}}function RS(){var s,r;let t=new _u(window.CS_CONF);window._uxa=window._uxa||[],t.processOptionOverrides(window._uxa);let e=new wu(window,t);e.init();let i=new Gu;if(su(H),H.computeIsActive(t.validationRate),e.isTopWindowTracker()){let c=new Hu(t,i);H.setStrategy(c)}else if(e.isInIframeContext()){let a=new qu(t);H.setStrategy(a)}else if(e.isInWebViewContext()){let a=new bS;H.setStrategy(a)}!((r=t==null?void 0:t.experimental)===null||r===void 0)&&r.disableMutationObserverProtection&&window.csMutationObserver&&(window.csMutationObserver=Ye(window,"MutationObserver")),ru(),TS(t,e),new wS(t,e,i).start()}window.CSCurrentScript=document.currentScript;csSetTimeout(()=>{try{Wu(RS)}catch{}});})();