var LUX=LUX||{};LUX.customerid="527761496";LUX["samplerate"]=3;!function(){"use strict";function e(e){return Math.floor(e)}var t=Math.max,n=Math.round;function r(e){return t(0,e)}function i(e,t){return e-t}function a(){return Date.now?Date.now():+new Date}var o,s=a(),c=window.performance||{},u=c.timing||{activationStart:0,navigationStart:(null===(o=window.LUX)||void 0===o?void 0:o.ns)||s};function l(){return c.navigation&&void 0!==c.navigation.type?c.navigation.type:""}function f(){var t=d("navigation");if(t.length){var n=t[0],r={navigationStart:0,activationStart:0};for(var i in n)r[i]=n[i];return r}var a=l(),o={navigationStart:0,activationStart:0,startTime:0,type:2==a?"back_forward":1===a?"reload":"navigate"};for(var i in u)"number"==typeof u[i]&&"navigationStart"!==i&&(o[i]=e(u[i]-u.navigationStart));return o}function d(e){if("function"==typeof c.getEntriesByType){var t=c.getEntriesByType(e);if(t&&t.length)return t}return[]}function v(e){if("function"==typeof c.getEntriesByName){var t=c.getEntriesByName(e);if(t&&t.length)return t}return[]}function g(){return!document.visibilityState||"visible"===document.visibilityState}function m(e){!function(e){document.prerendering?document.addEventListener("prerenderingchange",e,!0):e()}((function(){if(g())e();else{var t=function(){g()&&(e(),removeEventListener("visibilitychange",t))};addEventListener("visibilitychange",t,!0)}}))}function p(){return document.prerendering||f().activationStart>0}var h=1,T=2,y=4,E=8,b=16,S=32,w=64,U=128,B=256,N=512,k=1024,I=2048,L=4096;function P(e,t){return e|t}function x(e,t,n){void 0===n&&(n=!1),addEventListener?addEventListener(e,t,n):window.attachEvent&&window.attachEvent("on"+e,t)}function D(e,t,n){void 0===n&&(n=!1),removeEventListener?removeEventListener(e,t,n):window.detachEvent&&window.detachEvent("on"+e,t)}var F,M=1,j=2,C=3,H=4,R=5,O=6,X=7,V=8,W=9,_=10,q=11,A=12,z=13,J=21,$=22,G=23,Y=24,K=25,Q=26,Z=41,ee=42,te=43,ne=51,re=52,ie=53,ae=54,oe=55,se=56,ce=57,ue=71,le=72,fe=80,de=81,ve=82,ge=83,me=84,pe=85,he=86,Te=87,ye=88,Ee=89,be=90,Se=function(){function e(){this.events=[]}return e.prototype.logEvent=function(e,t){void 0===t&&(t=[]),this.events.push([a(),e,t])},e.prototype.getEvents=function(){return this.events},e}(),we="LUX_start",Ue="LUX_end";function Be(){return F}function Ne(){var e;return t(Be()||0,f().activationStart,(null===(e=v(we).pop())||void 0===e?void 0:e.startTime)||0)}function ke(t){return r(e(t-Ne()))}function Ie(){return c.now?e(c.now()):a()-u.navigationStart}function Le(){var t=Ie(),n=v(we).pop();return n?e(t-n.startTime):t}function Pe(e,t,n){for(;e.length<t;)e=n+e;return e}var xe="4.0.26";function De(e){void 0===e&&(e=xe);var t=e.split(".");return parseFloat(t[0]+"."+Pe(t[1],2,"0")+Pe(t[2],2,"0"))}var Fe="sendBeacon"in navigator?navigator.sendBeacon.bind(navigator):function(e,t){var n=new XMLHttpRequest;return n.open("POST",e,!0),n.setRequestHeader("content-type","application/json"),n.send(String(t)),!0};function Me(e){return e>0||Be()||p()}function je(e,t,n){for(var r=e.slice(0,t.maxBeaconUTEntries),i=e.slice(t.maxBeaconUTEntries);(n+"&UT="+r.join(",")).length>t.maxBeaconUrlLength&&r.length>1;)i.unshift(r.pop());return[r,i]}var Ce=function(){function e(e){var t=this;this.isRecording=!0,this.isSent=!1,this.sendRetries=0,this.maxMeasureTimeout=0,this.flags=0,this.onBeforeSendCbs=[],this.startTime=e.startTime||Ne(),this.config=e.config,this.logger=e.logger,this.customerId=e.customerId,this.sessionId=e.sessionId,this.pageId=e.pageId,this.metricData={},this.maxMeasureTimeout=window.setTimeout((function(){t.logger.logEvent(ve),t.stopRecording(),t.send()}),this.config.maxMeasureTime-Le()),x("securitypolicyviolation",(function(e){if("report"!==e.disposition&&e.blockedURI===t.config.beaconUrlV2&&"URL"in self){if(!t.config.beaconUrlFallback){var n=new URL(t.config.beaconUrl).origin,r=new URL(t.config.beaconUrlV2).pathname;t.config.beaconUrlFallback=n+r}t.config.beaconUrlV2=t.config.beaconUrlFallback,t.logger.logEvent(be,[t.config.beaconUrlV2]),t.addFlag(L),t.isSent=!1,t.sendRetries<1&&(t.sendRetries++,t.send())}})),this.logger.logEvent(fe)}return e.prototype.isBeingSampled=function(){return parseInt(String(this.sessionId).slice(-2))<this.config.samplerate},e.prototype.stopRecording=function(){this.isRecording=!1,this.logger.logEvent(he)},e.prototype.setMetricData=function(e,t){this.isRecording?this.metricData[e]=t:this.logger.logEvent(Te,[e])},e.prototype.addFlag=function(e){this.flags=P(this.flags,e)},e.prototype.hasMetricData=function(){return Object.keys(this.metricData).length>0},e.prototype.beaconUrl=function(){return this.config.beaconUrlV2},e.prototype.onBeforeSend=function(e){this.onBeforeSendCbs.push(e)},e.prototype.send=function(){if(this.logger.logEvent(de),this.config.enablePostBeacon){for(var e=0,t=this.onBeforeSendCbs;e<t.length;e++){(0,t[e])()}if(this.isBeingSampled())if(this.hasMetricData()||this.config.allowEmptyPostBeacon)if(this.isSent)this.logger.logEvent(me);else{clearTimeout(this.maxMeasureTimeout);var n=this.beaconUrl(),r=Object.assign({customerId:this.customerId,flags:this.flags,measureDuration:Le(),pageId:this.pageId,scriptVersion:xe,sessionId:this.sessionId,startTime:this.startTime},this.metricData);try{Fe(n,JSON.stringify(r))&&(this.isSent=!0,this.logger.logEvent(ge,[n,r]))}catch(e){}this.isSent||this.logger.logEvent(Ee,[n,r])}else this.logger.logEvent(pe)}else this.logger.logEvent(ye)},e}();function He(e){"complete"===document.readyState?e():x("load",(function(){setTimeout(e,200)}))}var Re="https://lux.speedcurve.com";function Oe(e,t,n){return void 0!==e[t]?e[t]:n}var Xe="lux_uid",Ve={},We={};function _e(){return We}function qe(e){var t=[];for(var n in e){var r=""+e[n];n=n.replace(/,/g,"").replace(/\|/g,""),r=r.replace(/,/g,"").replace(/\|/g,""),t.push(n+"|"+r)}return encodeURIComponent(t.join(","))}function Ae(e){var t;if(e.hasAttribute("data-sctrack")){var n=null===(t=e.getAttribute("data-sctrack"))||void 0===t?void 0:t.trim();if(n)return n}return function(e){if(e.parentNode&&e.parentNode.tagName)return!0;return!1}(e)?Ae(e.parentNode):null}var ze=100;function Je(e,t){void 0===t&&(t="");try{if(t&&(9===e.nodeType||t.length>ze||!e.parentNode))return t;var n=e,r=Ae(n);if(r)return r;if(n.id)return"#"+n.id+(t?">"+t:"");if(n){for(var i=1===n.nodeType?n.nodeName.toLowerCase():n.nodeName.toUpperCase(),a=n.className?"."+n.className.replace(/\s+/g,"."):"";(i+a).length>ze;)a=a.split(".").slice(0,-1).join(".");var o=i+a+(t?">"+t:"");if(n.parentNode){var s=Je(n.parentNode,o);if(s.length<ze)return s}return o}}catch(e){}return t}var $e,Ge=0,Ye=[],Ke=[],Qe=0;function Ze(){return{value:Qe,startTime:Ye[0]?ke(Ye[0].startTime):null,largestEntry:$e?{value:$e.value,startTime:ke($e.startTime)}:null,sources:Ke.length?Ke:null}}var et,tt=[],nt={},rt=0;function it(e){if(e.interactionId||"first-input"===e.entryType&&(v=e,!tt.some((function(e){return v.startTime===e.startTime&&v.duration===e.duration})))){var t=e.duration,n=e.startTime,r=e.interactionId,i=e.name,a=e.processingStart,o=e.processingEnd,s=e.target,c=o-a,u=nt[r],l=s?Je(s):null;if(u){var f=t>u.duration,d=t===u.duration&&c>u.processingTime;(f||d)&&(u.duration=t,u.name=i,u.processingEnd=o,u.processingStart=a,u.processingTime=c,u.selector=l,u.startTime=n,u.target=s)}else rt++,nt[r]={duration:t,interactionId:r,name:i,processingEnd:o,processingStart:a,processingTime:c,selector:l,startTime:n,target:s},tt.push(nt[r]);tt.sort((function(e,t){return t.duration-e.duration})),tt.splice(10).forEach((function(e){delete nt[e.interactionId]}))}var v}function at(){var e=Math.min(tt.length-1,Math.floor(function(){if("interactionCount"in c)return c.interactionCount;return rt}()/50));return tt[e]}var ot=[];function st(e,t,n){if("function"==typeof PerformanceObserver&&PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){e.getEntries().forEach((function(e){return t(e)}))}));return r.observe(Object.assign({type:e,buffered:!0},{options:n})),r}}function ct(e){return ot.filter((function(t){return t.entryType===e}))}function ut(e,t,n,r){var i=[];for(var a in e){var o=e[a];if(Array.isArray(o))for(var s in o){var c=o[s];if("string"==typeof c&&lt(c,t,n)){if(r)return a;i.push(a)}}}if(!r)return i}function lt(e,t,n){var r=function(e){return new RegExp("^"+(t=e,t.replace(/[-/\\^$+?.()|[\]{}]/g,"\\$&")).replace(/\*/g,".*")+"$","i");var t}(e);return"/"===e.charAt(0)?r.test(n):r.test(t+n)}var ft=window.LUX||{},dt=s;ft=function(){var a,o,v=new Se,L=(o=Oe(a=ft,"auto",!0),{allowEmptyPostBeacon:Oe(a,"allowEmptyPostBeacon",!1),auto:o,beaconUrl:Oe(a,"beaconUrl",Re+"/lux/"),beaconUrlFallback:Oe(a,"beaconUrlFallback"),beaconUrlV2:Oe(a,"beaconUrlV2","https://beacon.speedcurve.com/store"),conversions:Oe(a,"conversions"),cookieDomain:Oe(a,"cookieDomain"),customerid:Oe(a,"customerid"),enablePostBeacon:Oe(a,"enablePostBeacon",!0),errorBeaconUrl:Oe(a,"errorBeaconUrl",Re+"/error/"),interactionBeaconDelay:Oe(a,"interactionBeaconDelay",200),jspagelabel:Oe(a,"jspagelabel"),label:Oe(a,"label"),maxBeaconUrlLength:Oe(a,"maxBeaconUrlLength",8190),maxBeaconUTEntries:Oe(a,"maxBeaconUTEntries",20),maxErrors:Oe(a,"maxErrors",5),maxMeasureTime:Oe(a,"maxMeasureTime",6e4),measureUntil:Oe(a,"measureUntil","onload"),minMeasureTime:Oe(a,"minMeasureTime",0),newBeaconOnPageShow:Oe(a,"newBeaconOnPageShow",!1),pagegroups:Oe(a,"pagegroups"),samplerate:Oe(a,"samplerate",100),sendBeaconOnPageHidden:Oe(a,"sendBeaconOnPageHidden",o),serverTiming:Oe(a,"serverTiming"),trackErrors:Oe(a,"trackErrors",!0),trackHiddenPages:Oe(a,"trackHiddenPages",!1)});v.logEvent(M,[xe,JSON.stringify(L)]);var fe=window.document,de=window.addEventListener,ve=window.removeEventListener,ge=window.setTimeout,me=window.clearTimeout,pe=window.encodeURIComponent,he=fe.currentScript||{},Te=0;function ye(e){L.trackErrors&&(Te++,e&&void 0!==e.filename&&void 0!==e.message&&(e.filename.indexOf("/lux.js?")>-1||e.message.indexOf("LUX")>-1||Te<=L.maxErrors&&Vt())&&((new Image).src=L.errorBeaconUrl+"?v="+De()+"&id="+Gt()+"&fn="+pe(e.filename)+"&ln="+e.lineno+"&cn="+e.colno+"&msg="+pe(e.message)+"&l="+pe(Tn())+(Kt()?"&ct="+Kt():"")+"&HN="+pe(fe.location.hostname)+"&PN="+pe(fe.location.pathname)))}de("error",ye);var Ee,be,Fe=0,Ae=[],ze=[],lt={},vt=0,gt=0,mt=0,pt=1,ht=1800,Tt=mn(),yt=pn(Tt),Et=ft.customerid,bt=function(){return new Ce({config:L,logger:v,customerId:Gt(),sessionId:yt,pageId:Tt})},St=bt(),wt=function(e){v.logEvent(ee,[e])},Ut=function(e){!function(e){ot.push(e)}(e),wt(e)};try{st("longtask",Ut),st("element",Ut),st("paint",Ut),st("largest-contentful-paint",(function(n){Ut(n),function(e){(!et||e.startTime>et.startTime)&&(et=e)}(n),St.setMetricData("lcp",function(){if(et){var n=null;if(et.url){var i=d("resource").find((function(e){return e.name===et.url}));if(i){var a=f(),o=a.responseStart||u.responseStart,s=a.activationStart,c=t(0,o-s),l=i.startTime,v=(i.requestStart||l)-s,g=t(v,i.responseEnd-s),m=t(g,l-s);n={resourceLoadDelay:r(e(v-c)),resourceLoadTime:r(e(g-v)),elementRenderDelay:r(e(m-g))}}}var p=ke(et.startTime);if(Me(p))return{value:p,subParts:n,attribution:et.element?{elementSelector:Je(et.element),elementType:et.element.nodeName}:null}}}())})),st("layout-shift",(function(e){!function(e){if(!e.hadRecentInput){var n=Ye[0],r=Ye[Ye.length-1],i=e.sources?e.sources.filter((function(e){return e.node})).map((function(t){return{value:e.value,startTime:ke(e.startTime),elementSelector:Je(t.node),elementType:t.node.nodeName}})):[];Ye.length&&(e.startTime-r.startTime>=1e3||e.startTime-n.startTime>=5e3)?(Ge=e.value,Ye=[e],Ke=i,$e=e):(Ge+=e.value,Ye.push(e),Ke=Ke.concat(i),(!$e||e.value>$e.value)&&($e=e)),Qe=t(Qe,Ge)}}(e),St.setMetricData("cls",Ze()),wt(e)}));var Bt=function(t){it(t);var n=function(){var t,n=at();if(n)return{value:n.duration,startTime:ke(n.startTime),subParts:{inputDelay:r(e(n.processingStart-n.startTime)),processingTime:r(e(n.processingTime)),presentationDelay:r(e(n.startTime+n.duration-n.processingEnd))},attribution:n.selector?{elementSelector:n.selector,elementType:(null===(t=n.target)||void 0===t?void 0:t.nodeName)||"",eventType:n.name}:null}}();n&&St.setMetricData("inp",n)};st("first-input",(function(t){wt(t);var n=t.processingStart-t.startTime;(!Nt||Nt<n)&&(Nt=e(n)),Bt(t)})),st("event",(function(e){Bt(e),wt({interactionId:e.interactionId,name:e.name,entryType:e.entryType,startTime:e.startTime,duration:e.duration,processingStart:e.processingStart,processingEnd:e.processingEnd})}),{durationThreshold:0})}catch(e){v.logEvent(ne,[e])}Vt()?v.logEvent(J,[L.samplerate]):v.logEvent($,[L.samplerate]);var Nt,kt=ft.ns?ft.ns-u.navigationStart:0;c.timing||(v.logEvent(ue),Fe=P(Fe,T),St.addFlag(T)),v.logEvent(Z,[u.navigationStart]);var It,Lt,Pt=["click","mousedown","keydown","touchstart","pointerdown"],xt={passive:!0,capture:!0};function Dt(t){Nt||(Nt=e(t),Pt.forEach((function(e){ve(e,Ft,xt)})))}function Ft(e){var t=!1;try{t=e.cancelable}catch(e){return void v.logEvent(re)}if(t){var n=Ie(),r=e.timeStamp;if(r>152e7&&(n=Number(new Date)),r>n)return;var i=n-r;"pointerdown"===e.type?function(e){function t(){Dt(e),r()}function n(){r()}function r(){ve("pointerup",t,xt),ve("pointercancel",n,xt)}de("pointerup",t,xt),de("pointercancel",n,xt)}(i):Dt(i)}}function Mt(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(v.logEvent(H,n),c.mark)return c.mark.apply(c,n);var i={entryType:"mark",duration:0,name:n[0],detail:(null===(e=n[1])||void 0===e?void 0:e.detail)||null,startTime:(null===(t=n[1])||void 0===t?void 0:t.startTime)||Le()};return Ae.push(i),Fe=P(Fe,y),St.addFlag(y),i}function jt(e){return function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var r=t[n];if(e===r.name)return r}return}(e,Ct())}function Ct(){var e=d("mark");return e.length?e:Ae}function Ht(){var n,r={},i=jt(we),a=Ne();Ct().forEach((function(n){var i=n.name;if(i!==we&&i!==Ue){var o=e(n.startTime-a);o<0||(void 0===r[i]?r[i]={startTime:o}:r[i].startTime=t(o,r[i].startTime))}})),(n=d("measure"),n.length?n:ze).forEach((function(t){if(!(i&&t.startTime<i.startTime)){var n=t.name,o=e(t.startTime-a),s=e(t.duration);(void 0===r[n]||o>r[n].startTime)&&(r[n]={startTime:o,duration:s})}}));var o=[];for(var s in r){var c=r[s],u=c.startTime,l=c.duration,f=[s,u];void 0!==l&&f.push(l),o.push(f.join("|"))}return o}function Rt(){if(!("PerformanceLongTaskTiming"in self))return"";var t="",r={},a={},o=ct("longtask");if(o.length){var s=Ne();o.forEach((function(t){var n=e(t.duration);if(t.startTime<s&&(n-=s-t.startTime),n>0){v.logEvent(te,[t]);var i=t.attribution[0].name;r[i]||(r[i]=0,a[i]=""),r[i]+=n,a[i]+=","+e(t.startTime)+"|"+n}}))}var c=void 0!==r.script?"script":"unknown";void 0===r[c]&&(r[c]=0,a[c]="");var u=function(t){for(var r=0,a=zt(),o=a||0,s=void 0===a,c=[],u=t.split(","),l=0;l<u.length;l++){var f=u[l].split("|");if(2===f.length){var d=parseInt(f[0]),v=parseInt(f[1]);if(c.push(v),r=v>r?v:r,!s&&d>o)if(d-o>5e3)s=!0;else{var g=ke(d+v);Me(g)&&(o=g)}}}var m=c.length,p=function(t){if(0===t.length)return 0;var r=e(t.length/2);return t.sort(i),t.length%2?t[r]:n((t[r-1]+t[r])/2)}(c);return{count:m,median:p,max:r,fci:o}}(a[c]),l=",n|"+u.count+",d|"+u.median+",x|"+u.max+(void 0===u.fci?"":",i|"+u.fci);return t+="s|"+r[c]+l+a[c]}function Ot(){var e=[];for(var t in lt)e.push(t+"|"+pe(lt[t]));return e.join(",")}function Xt(e,t){v.logEvent(O,[e,t]),"string"==typeof e&&function(e,t){var n=typeof t;Ve[e]!==t&&(We[e]=t),"string"!==n&&"number"!==n&&"boolean"!==n||(Ve[e]=t),"undefined"!==n&&null!==t||delete Ve[e]}(e,t),vt&&(Ee&&me(Ee),Ee=ge(cn,100))}function Vt(){if(void 0===yt||void 0===L.samplerate)return!1;var e=(""+yt).substr(-2);return parseInt(e)<L.samplerate}function Wt(e,t){void 0===t&&(t=!0),jt(Ue)&&(e?Mt(we,{startTime:e}):Mt(we),v.logEvent(C),L.auto&&!St.isSent&&St.send(),lt={},gn(),vn(),gt=0,vt=0,mt=0,pt=0,Tt=mn(),yt=pn(Tt),et=void 0,Ge=0,Ye=[],Qe=0,$e=void 0,rt=0,tt=[],nt={},Te=0,Nt=void 0,St=bt(),t&&(Fe=P(Fe=0,h),St.addFlag(h)),tn())}function _t(){var e=Qt();if(!e)return function(){for(var e=fe.getElementsByTagName("script"),t=0,n=0,r=e.length;n<r;n++){var i=e[n];!i.src||i.async||i.defer||t++}return t}();for(var t=fe.getElementsByTagName("script"),n=0,r=0,i=t.length;r<i;r++){var a=t[r];!a.src||a.async||a.defer||0==(4&a.compareDocumentPosition(e))||n++}return n}function qt(e){for(var t=fe.getElementsByTagName(e),n=0,r=0,i=t.length;r<i;r++){var a=t[r];try{n+=a.innerHTML.length}catch(a){return v.logEvent(ie),-1}}return n}function At(){var t="",n=u.navigationStart,a=jt(we),o=jt(Ue);if(a&&o&&!Be()){var s=e(a.startTime);t=(n+=s)+"as0fs0ls"+(w=e(o.startTime)-s)+"le"+w}else if(c.timing){var l=f(),g=function(){if("PerformancePaintTiming"in self){var t=d("paint");if(t.length)for(var n=t.map((function(e){return e.startTime})).sort(i),r=0;r<n.length;r++){var a=ke(n[r]);if(Me(a))return a}}if(c.timing&&u.msFirstPaint)return e(u.msFirstPaint-u.navigationStart);return void v.logEvent(le)}(),m=zt(),p=function(){var e=ct("largest-contentful-paint");if(e.length){var t=e[e.length-1],n=ke(t.startTime);if(Me(n))return v.logEvent(te,[t]),n}return}(),h=function(e,t,n){if("number"==typeof l[e]){var r=l[e];if(Me(r)||!n)return t+ke(r)}return""},T=h("loadEventStart","ls",!0),y=h("loadEventEnd","le",!0);if(Be()&&a&&o){var E=e(o.startTime-a.startTime);T="ls"+E,y="le"+E}var b=f().redirectCount>0||u.redirectEnd>0,S="https:"===fe.location.protocol;t=[n,"as"+r(l.activationStart),b&&!Be()?h("redirectStart","rs"):"",b&&!Be()?h("redirectEnd","re"):"",h("fetchStart","fs"),h("domainLookupStart","ds"),h("domainLookupEnd","de"),h("connectStart","cs"),S?h("secureConnectionStart","sc"):"",h("connectEnd","ce"),h("requestStart","qs"),h("responseStart","bs"),h("responseEnd","be"),h("domInteractive","oi",!0),h("domContentLoadedEventStart","os",!0),h("domContentLoadedEventEnd","oe",!0),h("domComplete","oc",!0),T,y,void 0!==g?"sr"+g:"",void 0!==m?"fc"+m:"",void 0!==p?"lc"+p:""].join("")}else if(o){var w;t=n+"fs0ls"+(w=e(o.startTime))+"le"+w}return t}function zt(){for(var e=d("paint"),t=0;t<e.length;t++){var n=e[t];if("first-contentful-paint"===n.name){var r=ke(n.startTime);if(Me(r))return r}}}function Jt(){if("PerformanceEventTiming"in self)return at()}function $t(t){return["&INP="+t.duration,t.selector?"&INPs="+pe(t.selector):"","&INPt="+e(t.startTime),"&INPi="+r(e(t.processingStart-t.startTime)),"&INPp="+r(e(t.processingTime)),"&INPd="+r(e(t.startTime+t.duration-t.processingEnd))].join("")}function Gt(){return Et||(Et=he.src.match(/id=(\d+)/).pop()),Et?String(Et):""}function Yt(e){var t=0;if(e.parentNode)for(;e=e.parentNode;)t++;return t}function Kt(){var e=navigator.connection,t="";return e&&e.effectiveType&&(t="slow-2g"===(t=e.effectiveType)?"Slow 2G":"2g"===t||"3g"===t||"4g"===t||"5g"===t?t.toUpperCase():t.charAt(0).toUpperCase()+t.slice(1)),t}function Qt(e){var t;if(e||(e=fe.body),e){var n=e.children;if(n)for(var r=0,i=n.length;r<i;r++){var a=n[r];Zt(a)&&(t=a)}}return t?Qt(t):e}function Zt(e){var t=fe.documentElement.clientHeight,n=fe.documentElement.clientWidth,r=function(e){var t=0,n=0;for(;e;)t+=e.offsetLeft,n+=e.offsetTop,e=e.offsetParent;return[t,n]}(e);return r[0]>=0&&r[1]>=0&&r[0]<n&&r[1]<t&&e.offsetWidth>0&&e.offsetHeight>0}function en(e){v.logEvent(A,[e]),e?Mt(Ue,{startTime:e}):Mt(Ue)}function tn(){nn(),be=ge((function(){Fe=P(Fe,S),St.addFlag(S),an()}),L.maxMeasureTime-Le())}function nn(){be&&me(be)}function rn(e){var t=["v="+De(),"id="+Gt(),"sid="+Tt,"uid="+yt,"l="+pe(Tn()),"HN="+pe(fe.location.hostname),"PN="+pe(fe.location.pathname)];Fe&&t.push("fl="+Fe);var n=qe(e);return n&&(t.push("CD="+n),We={}),L.beaconUrl+"?"+t.join("&")}function an(){var r;if(g()||L.trackHiddenPages){if(nn(),Gt()&&Tt&&Vt()&&!vt){v.logEvent(W);var i=jt(we),a=jt(Ue);(!i||a&&a.startTime<i.startTime)&&en();var o="",d=Jt();mt||""===(o=Ot())&&(d=void 0);var m,h,T,y,b=(m=[],ct("element").forEach((function(e){if(e.identifier&&e.startTime){var t=ke(e.startTime);Me(t)&&(v.logEvent(te,[e]),m.push(e.identifier+"|"+t))}})),m.join(",")),S=Rt(),w=function(){if("LayoutShift"in self)return Ze().value.toFixed(6)}(),U=function(){var t="";if(pt&&c.getEntriesByName){var n=c.getEntriesByName(he.src);if(n&&n.length){var r=n[0],i=e(r.domainLookupEnd-r.domainLookupStart),a=e(r.connectEnd-r.connectStart),o=e(r.responseStart-r.requestStart),l=e(r.responseEnd-r.responseStart),f=i+a+o+l,d=dt-s,v=r.encodedBodySize?r.encodedBodySize:0;t="d"+i+"t"+a+"f"+o+"c"+l+"n"+f+"e"+d+"r"+L.samplerate+("number"==typeof v?"x"+v:"")+("number"==typeof kt?"l"+kt:"")+"s"+(s-u.navigationStart)}}return t+"m"+Le()}();if(g()||(Fe=P(Fe,E),St.addFlag(E)),p()&&(Fe=P(Fe,k),St.addFlag(k)),L.serverTiming){var B=f();if(B.serverTiming){var N=(h=L.serverTiming,T=B.serverTiming,y={},T.forEach((function(e){var t=e.name,n=e.description;if(t in h){var r=h[t],i=r[1];if("r"===r[0])y[t]=e.duration*(i||1);else if(n&&i){var a=parseFloat(n);isNaN(a)||(y[t]=a*i)}else y[t]=n||"true"}})),y);for(var I in N)Xt(I,N[I])}}ft.conversions&&ut(ft.conversions,location.hostname,location.pathname).forEach((function(e){ft.addData(e,"true")}));var x,D,F,M=rn(Ve),j=qt("script"),C=qt("style"),H=f().encodedBodySize||0,R=Kt(),O=function(){var e=f();if("deliveryType"in e)return e.deliveryType||"(empty string)"}(),X=(gt?"":"&NT="+At())+"&LJS="+U+"&PS=ns"+function(){for(var e=fe.getElementsByTagName("script"),t=0,n=0,r=e.length;n<r;n++)e[n].src&&t++;return t}()+"bs"+_t()+(j>-1?"is"+j:"")+"ss"+function(){for(var e=fe.getElementsByTagName("link"),t=0,n=0,r=e.length;n<r;n++){var i=e[n];i.href&&"stylesheet"==i.rel&&t++}return t}()+"bc"+function(){for(var e=0,t=fe.getElementsByTagName("link"),n=0,r=t.length;n<r;n++){var i=t[n];i.href&&"stylesheet"===i.rel&&0!==i.href.indexOf("data:")&&(i.onloadcssdefined||"print"===i.media||"style"===i.as||"function"==typeof i.onload&&"all"===i.media||e++)}return e}()+(C>-1?"ic"+C:"")+"ia"+function(){var e=fe.getElementsByTagName("img"),t=[];if(e)for(var n=0,r=e.length;n<r;n++){var i=e[n];Zt(i)&&t.push(i)}return t}().length+"it"+fe.getElementsByTagName("img").length+"dd"+function(){for(var e=fe.getElementsByTagName("*"),t=e.length,r=0;t--;)r+=Yt(e[t]);return n(r/e.length)}()+"nd"+fe.getElementsByTagName("*").length+"vh"+fe.documentElement.clientHeight+"vw"+fe.documentElement.clientWidth+"dh"+(D=(x=fe).body,F=x.documentElement,t(D?D.scrollHeight:0,D?D.offsetHeight:0,F?F.clientHeight:0,F?F.scrollHeight:0,F?F.offsetHeight:0)+"dw")+function(e){var n=e.body,r=e.documentElement;return t(n?n.scrollWidth:0,n?n.offsetWidth:0,r?r.clientWidth:0,r?r.scrollWidth:0,r?r.offsetWidth:0)}(fe)+(H?"ds"+H:"")+(R?"ct"+R+"_":"")+(void 0!==O?"dt"+O+"_":"")+"er"+Te+"nt"+l()+(navigator.deviceMemory?"dm"+n(navigator.deviceMemory):"")+(o?"&IX="+o:"")+(void 0!==Nt?"&FID="+Nt:"")+(S?"&CPU="+S:"")+(b?"&ET="+b:"")+(void 0!==w?"&CLS="+w:"")+(void 0!==d?$t(d):""),V=je(Ht(),L,M+X),_=V[0],q=V[1],A=M+X+(_.length>0?"&UT="+_.join(","):"");for(v.logEvent(G,[A]),un(A),vt=1,gt=1,mt=o?1:0;q.length;){_=(r=je(q,L,M))[0],q=r[1];var J=M+"&UT="+_.join(",");v.logEvent(Y,[J]),un(J)}}}else v.logEvent(z)}function on(){me(It),It=ge(sn,L.interactionBeaconDelay)}function sn(){if(Gt()&&Tt&&Vt()&&!mt&&vt){var e=Ot(),t=Jt();if(e){var n=rn(_e())+"&IX="+e+(void 0!==Nt?"&FID="+Nt:"")+(void 0!==t?$t(t):"");v.logEvent(K,[n]),un(n),mt=1}}}function cn(){if(Gt()&&Tt&&Vt()&&vt&&qe(_e())){var e=rn(_e());v.logEvent(Q,[e]),un(e)}}function un(e){(new Image).src=e}function ln(){void 0===lt.s&&(lt.s=Le())}function fn(e){var t=e.keyCode;if(16!==t&&17!==t&&18!==t&&20!==t&&224!==t){if(void 0===lt.k){if(lt.k=Le(),e&&e.target instanceof Element){var n=Je(e.target);n&&(lt.ki=n)}delete lt.s,on()}gn()}}function dn(e){if(void 0===lt.c){lt.c=Le(),delete lt.s;var t=void 0;try{e&&e.target instanceof Element&&(t=e.target)}catch(e){v.logEvent(ae)}if(t){e.clientX&&(lt.cx=e.clientX,lt.cy=e.clientY);var n=Je(t);n&&(lt.ci=n)}on()}gn()}function vn(){x("scroll",ln),x("keydown",fn),x("mousedown",dn)}function gn(){D("scroll",ln),D("keydown",fn),D("mousedown",dn)}function mn(e){return void 0===e&&(e=!1),e?Number(new Date)+"00000":Number(new Date)+Pe(String(n(1e5*Math.random())),5,"0")}function pn(e){var t=function(e){try{for(var t=fe.cookie.split(";"),n=0;n<t.length;n++){var r=t[n].split("=");if(e===r[0].trim())return unescape(r[1])}}catch(e){v.logEvent(oe)}return}(Xe);if(!t||t.length<11)t=e;else{var n=parseInt(t.substring(0,10));Number(new Date)/1e3-n>86400&&(t=e)}return hn(t),t}function hn(e){return function(e,t,n){try{fe.cookie=e+"="+escape(t)+(n?"; max-age="+n:"")+(L.cookieDomain?"; domain="+L.cookieDomain:"")+"; path=/; SameSite=Lax"}catch(e){v.logEvent(se)}}(Xe,e,ht),e}function Tn(){if(ft.label)return Fe=P(Fe,U),St.addFlag(U),ft.label;if(void 0!==ft.pagegroups&&(t=ut(ft.pagegroups,location.hostname,location.pathname,!0)))return Fe=P(Fe,N),St.addFlag(N),t;if(void 0!==ft.jspagelabel){var e=Function('"use strict"; return '+ft.jspagelabel);try{var t;if(t=e())return Fe=P(Fe,B),St.addFlag(B),t}catch(e){v.logEvent(ce,[ft.jspagelabel,e])}}return Fe=P(Fe,w),St.addFlag(w),fe.title}if(Pt.forEach((function(e){de(e,Ft,xt)})),L.auto){var yn=function(){L.trackHiddenPages?an():m(an)},En=function(){var e=Le(),t=L.minMeasureTime-e;t<=0?(v.logEvent(q,[e,L.minMeasureTime]),"onload"===L.measureUntil&&He(yn)):ge(En,t)};En()}L.newBeaconOnPageShow&&de("pageshow",(function(e){var t;e.persisted&&(t=e.timeStamp,F=t,ge((function(){vt&&(Wt(Be(),!1),en()),Fe=P(Fe,I),St.addFlag(I)}),0))})),L.sendBeaconOnPageHidden&&(Lt=function(){Fe=P(Fe,b),St.addFlag(b),v.logEvent(_),an(),sn(),St.send()},"onpagehide"in self?x("pagehide",Lt,!0):(x("unload",Lt,!0),x("beforeunload",Lt,!0)),x("visibilitychange",(function(){"hidden"===fe.visibilityState&&Lt()}),!0)),vn(),tn();var bn=L;function Sn(e){var t=e[0],n=e.slice(1);"function"==typeof bn[t]&&bn[t].apply(bn,n)}return bn.mark=Mt,bn.measure=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];v.logEvent(R,e);var n,r=e[0],i=e[1],a=e[2];if("object"==typeof i&&(i=(n=e[1]).start,a=n.end),void 0===i&&(i=jt(we)?we:"navigationStart",n?n.end&&n.duration||(e[1].start=i):e[1]=i),c.measure)return c.measure.apply(c,e);var o=f(),s="number"==typeof i?i:0,u="number"==typeof a?a:Le(),l=function(e){throw new DOMException("Failed to execute 'measure' on 'Performance': The mark '"+e+"' does not exist")};if("string"==typeof i){var d=jt(i);d?s=d.startTime:"number"==typeof o[i]?s=o[i]:l(i)}if("string"==typeof a){var g=jt(a);g?u=g.startTime:"number"==typeof o[a]?u=o[a]:l(a)}var m=u-s,p=null;n&&(n.duration&&(m=n.duration),p=n.detail);var h={entryType:"measure",name:r,detail:p,startTime:s,duration:m};return ze.push(h),Fe=P(Fe,y),St.addFlag(y),h},bn.init=Wt,bn.markLoadTime=en,bn.send=function(){v.logEvent(X),St.send(),an()},bn.addData=Xt,bn.getSessionId=function(){return yt},bn.getDebug=function(){return console.log("SpeedCurve RUM debugging documentation: https://support.speedcurve.com/docs/rum-js-api#luxgetdebug"),v.getEvents()},bn.forceSample=function(){v.logEvent(V),hn(mn(!0))},bn.doUpdate=function(){},bn.cmd=Sn,bn.version=xe,ft.ac&&ft.ac.length&&ft.ac.forEach(Sn),void 0!==window.LUX_ae&&window.LUX_ae.forEach(ye),v.logEvent(j),bn}(),window.LUX=ft,dt=a()}();
//# sourceMappingURL=lux.min.js.map
