!function(){"use strict";class t{t;o=0;i=[];u(t){if(t.hadRecentInput)return;const e=this.i[0],n=this.i.at(-1);this.o&&e&&n&&t.startTime-n.startTime<1e3&&t.startTime-e.startTime<5e3?(this.o+=t.value,this.i.push(t)):(this.o=t.value,this.i=[t]),this.t?.(t)}}const e=()=>{const t=performance.getEntriesByType("navigation")[0];if(t&&t.responseStart>0&&t.responseStart{if("loading"===document.readyState)return"loading";{const n=e();if(n){if(t{const e=t.nodeName;return 1===t.nodeType?e.toLowerCase():e.toUpperCase().replace(/^#/,"")},r=t=>{let e="";try{for(;9!==t?.nodeType;){const n=t,r=n.id?"#"+n.id:[i(n),...Array.from(n.classList).sort()].join(".");if(e.length+r.length>99)return e||r;if(e=e?r+">"+e:r,n.id)break;t=n.parentNode}}catch{}return e},o=new WeakMap;function s(t,e){return o.get(t)||o.set(t,new e),o.get(t)}let a=-1;const c=()=>a,u=t=>{addEventListener("pageshow",e=>{e.persisted&&(a=e.timeStamp,t(e))},!0)},h=(t,e,n,i)=>{let r,o;return s=>{e.value>=0&&(s||i)&&(o=e.value-(r??0),(o||void 0===r)&&(r=e.value,e.delta=o,e.rating=((t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good")(e.value,n),t(e)))}},l=t=>{requestAnimationFrame(()=>requestAnimationFrame(()=>t()))},d=()=>{const t=e();return t?.activationStart??0},f=(t,n=-1)=>{const i=e();let r="navigate";return c()>=0?r="back-forward-cache":i&&(document.prerendering||d()>0?r="prerender":document.wasDiscarded?r="restore":i.type&&(r=i.type.replace(/_/g,"-"))),{name:t,value:n,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},p=(t,e,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const i=new PerformanceObserver(t=>{Promise.resolve().then(()=>{e(t.getEntries())})});return i.observe({type:t,buffered:!0,...n}),i}}catch{}},g=t=>{let e=!1;return()=>{e||(t(),e=!0)}};let m=-1;const v=new Set,y=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,w=t=>{if("hidden"===document.visibilityState){if("visibilitychange"===t.type)for(const t of v)t();isFinite(m)||(m="visibilitychange"===t.type?t.timeStamp:0,removeEventListener("prerenderingchange",w,!0))}},C=()=>{if(m<0){const t=d(),e=document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(e=>"hidden"===e.name&&e.startTime>t)[0]?.startTime;m=e??y(),addEventListener("visibilitychange",w,!0),addEventListener("prerenderingchange",w,!0),u(()=>{setTimeout(()=>{m=y()})})}return{get firstHiddenTime(){return m},onHidden(t){v.add(t)}}},L=t=>{document.prerendering?addEventListener("prerenderingchange",()=>t(),!0):t()},b=[1800,3e3],M=(t,e={})=>{L(()=>{const n=C();let i,r=f("FCP");const o=p("paint",t=>{for(const e of t)"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime{r=f("FCP"),i=h(t,r,b,e.reportAllChanges),l(()=>{r.value=performance.now()-n.timeStamp,i(!0)})}))})},B=[.1,.25],x=t=>t.find(t=>1===t.node?.nodeType)||t[0];let z=0,D=1/0,S=0;const T=t=>{for(const e of t)e.interactionId&&(D=Math.min(D,e.interactionId),S=Math.max(S,e.interactionId),z=S?(S-D)/7+1:0)};let _;const A=()=>_?z:performance.interactionCount??0;let P=0;class H{l=[];h=new Map;m;p;v(){P=A(),this.l.length=0,this.h.clear()}M(){const t=Math.min(this.l.length-1,Math.floor((A()-P)/50));return this.l[t]}u(t){if(this.m?.(t),!t.interactionId&&"first-input"!==t.entryType)return;const e=this.l.at(-1);let n=this.h.get(t.interactionId);if(n||this.l.length<10||t.duration>e.T){if(n?t.duration>n.T?(n.entries=[t],n.T=t.duration):t.duration===n.T&&t.startTime===n.entries[0].startTime&&n.entries.push(t):(n={id:t.interactionId,entries:[t],T:t.duration},this.h.set(n.id,n),this.l.push(n)),this.l.sort((t,e)=>e.T-t.T),this.l.length>10){const t=this.l.splice(10);for(const e of t)this.h.delete(e.id)}this.p?.(n)}}}const j=t=>{const e=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?t():(t=g(t),addEventListener("visibilitychange",t,{once:!0,capture:!0}),e(()=>{t(),removeEventListener("visibilitychange",t,{capture:!0})}))},I=[200,500];class k{m;u(t){this.m?.(t)}}const q=[2500,4e3],E=[800,1800],N=t=>{document.prerendering?L(()=>N(t)):"complete"!==document.readyState?addEventListener("load",()=>N(t),!0):setTimeout(t)},U="",V="1",O="0",Z="p",K="a",G="m",R="t",Y="m",J="a",X="p",W="s";function F(t){try{return decodeURIComponent(t)}catch(t){return""}}function $(t,e=!1){const n=function(){try{return document.cookie}catch{return!1}}()?document.cookie.split("; "):[];for(let e=0;e"_cmp"===t.name);let i=null==n?void 0:n.description;if(!i)return;try{i=decodeURIComponent(i)}catch{}return i}catch{return}}();if(void 0!==t)return function(t){if("%"==t.slice(0,1))try{t=decodeURIComponent(t)}catch{}const e=t.slice(0,1);if("{"==e)return function(t){var e;let n;try{n=JSON.parse(t)}catch{return}if("2.1"!==n.v)return;if(null===(e=n.con)||void 0===e||!e.CMP)return;return n}(t);if("3"==e)return function(t){const e=t.slice(1).split("_"),[n,i,r,o,s]=e;let a,c;try{a=e[5]?JSON.parse(e.slice(5).join("_")):void 0}catch{}if(s){const t=s.replace(/\*/g,"/").replace(/-/g,"+"),e=Array.from(atob(t)).map(t=>t.charCodeAt(0).toString(16).padStart(2,"0")).join("");c=[8,13,18,23].reduce((t,e)=>t.slice(0,e)+"-"+t.slice(e),e)}function u(t){const e=n.split(".")[0];return e.includes(t.toLowerCase())?O:e.includes(t.toUpperCase())?V:U}function h(t){return n.includes(t.replace("t","s").toUpperCase())}return{v:"3",con:{CMP:{[J]:u(J),[X]:u(X),[Y]:u(Y),[W]:u(W)}},region:i||"",cus:a,purposes:{[K]:h(K),[Z]:h(Z),[G]:h(G),[R]:h(R)},sale_of_data_region:"t"==o,display_banner:"t"==r,consent_id:c}}(t);return}(t)}function tt(){return function(t){const e=Q();if(!e||!e.purposes)return!0;const n=e.purposes[t];return"boolean"!=typeof n||n}(K)}function et(){return tt()}function nt(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var it=0;function rt(t){return"__private_"+it+++"_"+t}function ot(t){return Object.entries(t).map(([t,e])=>({key:t,value:{stringValue:String(e)}}))}function st(t){if(Array.isArray(t))return{arrayValue:{values:t.map(t=>st(t))}};switch(typeof t){case"boolean":return{boolValue:Boolean(t)};case"number":return{doubleValue:Number(t)};default:return{stringValue:String(t)}}}const at=function(t,e,n){const i=[0];for(let r=0;r{switch(e.attributes={...nt(this,ut)[ut],...e.attributes},e.type){case"histogram":!function(t,e){var n;const{name:i,value:r,unit:o,timeUnixNano:s,attributes:a}=e,c=null!==(n=e.bounds)&&void 0!==n?n:at,u=new Array(c.length+1).fill(0);t[i]||={name:i,unit:o||"1",histogram:{aggregationTemporality:1,dataPoints:[]}};for(let t=0;t0?l:0,bucketCounts:i>0?[1]:[]};t[n].exponentialHistogram.dataPoints.push({attributes:ot(null!=s?s:{}),startTimeUnixNano:o,timeUnixNano:o,count:1,sum:c,scale:u,zeroCount:d,positive:p,negative:f,min:c,max:c,zeroThreshold:0})}(t,e);break;case"counter":!function(t,e){const{name:n,value:i,unit:r,timeUnixNano:o,attributes:s}=e;t[n]||={name:n,unit:r||"1",sum:{aggregationTemporality:1,isMonotonic:!0,dataPoints:[]}},t[n].sum.dataPoints.push({startTimeUnixNano:o,timeUnixNano:o,asDouble:i,attributes:ot(null!=s?s:{})})}(t,e);break;case"gauge":!function(t,e){const{name:n,value:i,unit:r,timeUnixNano:o,attributes:s}=e;t[n]||={name:n,unit:r||"1",gauge:{dataPoints:[]}},t[n].gauge.dataPoints.push({startTimeUnixNano:o,timeUnixNano:o,asDouble:i,attributes:ot(null!=s?s:{})})}(t,e)}});const e=Object.values(t);0!==e.length&&(nt(this,ht)[ht]=[],await nt(this,ct)[ct].exportMetrics(e))}async exportLogs(){const t=nt(this,lt)[lt].map(t=>{const e={timeUnixNano:t.timeUnixNano,observedTimeUnixNano:t.timeUnixNano,attributes:(n={...nt(this,ut)[ut],...t.attributes},Object.entries(n).map(([t,e])=>({key:t,value:st(e)})))};var n;return t.body&&(e.body={stringValue:t.body}),e});0!==t.length&&(nt(this,lt)[lt]=[],await nt(this,ct)[ct].exportLogs(t))}}var ft=rt("url"),pt=rt("serviceName"),gt=rt("logger"),mt=rt("fetchFn");class vt{constructor(t,e,n){Object.defineProperty(this,ft,{writable:!0,value:void 0}),Object.defineProperty(this,pt,{writable:!0,value:void 0}),Object.defineProperty(this,gt,{writable:!0,value:void 0}),Object.defineProperty(this,mt,{writable:!0,value:void 0}),nt(this,ft)[ft]=t.replace(/\/v1\/(logs|metrics|traces)\/?$/,""),nt(this,pt)[pt]=e,nt(this,gt)[gt]=null==n?void 0:n.logger,nt(this,mt)[mt]=null==n?void 0:n.fetchFn}async exportMetrics(t){await this.exportBatches("/v1/metrics",[...t],t=>({resourceMetrics:[{resource:{attributes:[{key:"service.name",value:{stringValue:nt(this,pt)[pt]}}]},scopeMetrics:[{scope:{name:"open-telemetry-mini-client",version:"1.1.0",attributes:[]},metrics:t}]}]}))}async exportLogs(t){await this.exportBatches("/v1/logs",[...t],t=>({resourceLogs:[{resource:{attributes:[{key:"service.name",value:{stringValue:nt(this,pt)[pt]}}]},scopeLogs:[{scope:{name:"open-telemetry-mini-client",version:"1.1.0",attributes:[]},logRecords:t}]}]}))}async exportTo(t,e){var n;const i=JSON.stringify(t),r=(new TextEncoder).encode(i).length;if(r>65536)throw new wt(`Payload size ${r} exceeds 65536 bytes`);const o=await this.exporterFetch()(`${nt(this,ft)[ft]}${e}`,{method:"POST",keepalive:!0,headers:{"Content-Type":"application/json"},body:i});if(null===(n=nt(this,gt)[gt])||void 0===n||n.log({status:o.status}),!o.ok){if(400===o.status){const t=await o.text();throw new yt(`Invalid OpenTelemetry Data: ${t}`)}if(429===o.status||503===o.status){const e=await o.text(),n=o.headers.get("Retry-After"),i=n?{seconds:Number(n)}:void 0;throw new yt("Server did not accept data",{errorData:e,retryAfter:i,body:t})}throw new yt(`Server responded with ${o.status}`)}}exporterFetch(){return nt(this,mt)[mt]||fetch}async exportBatches(t,e,n){let i=e.length;for(;e.length>0;)try{const r=e.slice(0,i);await this.exportTo(n(r),t),e.splice(0,i)}catch(t){if(!(t instanceof wt&&i>1))throw t;i=Math.ceil(i/2)}}}class yt extends Error{constructor(t,e){super(t),this.metadata=void 0,this.name="OpenTelemetryClientError",this.metadata=e}}class wt extends Error{constructor(...t){super(...t),this.name="PayloadTooLargeError"}}var Ct={name:"@shopify/human-signals",version:"1.4.2",description:"Human signal detection for bot vs human traffic analysis",type:"module",main:"dist/index.js",types:"dist/index.d.ts",source:"src/index.ts",files:["dist"],scripts:{build:"npx tsc",bundle:"pnpm build && rollup -c",test:"vitest run","test:watch":"vitest",lint:"eslint ./src",format:"prettier ./src --write","format:check":"prettier --check ./src"},author:"Shopify Inc.",license:"MIT",devDependencies:{"@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^16.0.1","@rollup/plugin-replace":"^6.0.2","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^12.1.4","@shopify/eslint-plugin":"^50.0.0","@shopify/prettier-config":"^1.1.4","@types/node":"^24.1.0",eslint:"^9.31.0","javascript-obfuscator":"^4.1.1",jsdom:"^26.1.0",prettier:"^3.6.2",rollup:"^4.45.1","rollup-plugin-obfuscator":"^1.1.0",typescript:"^5.8.3",vitest:"^3.2.4"},dependencies:{"@shopify/opentelemetry-mini-client-private":"^1.6.0"},prettier:"@shopify/prettier-config"};!function(t){var e=122,n=124,i=120,r=128,o=132;function s(t,e){return Bt(e- -140,t)}for(var a=t();;)try{if(564488===-parseInt(s(130,126))/1+parseInt(s(e,114))/2+parseInt(s(129,128))/3+parseInt(s(125,n))/4*(parseInt(s(114,i))/5)+parseInt(s(130,e))/6+parseInt(s(r,130))/7+-parseInt(s(o,125))/8)break;a.push(a.shift())}catch(t){a.push(a.shift())}}(xt);var Lt,bt=(Lt=!0,function(t,e){var n=Lt?function(){if(e){var n=e[(i=-326,r=-320,Bt(r- -575,i))](t,arguments);return e=null,n}var i,r}:function(){};return Lt=!1,n}),Mt=bt(this,function(){var t=679,e=676,n=683,i=677,r=420;function o(t,e){return Bt(e-r,t)}return Mt[o(678,t)]()[o(683,677)](o(e,n))[o(682,t)]()[o(676,676)](Mt)[o(670,677)](o(i,683))});function Bt(t,e){var n=xt();return Bt=function(e,i){var r=n[e-=254];if(void 0===Bt.mdmqLc){var o=function(t){for(var e,n,i="",r="",s=i+o,a=0,c=0;n=t.charAt(c++);~n&&(e=a%4?64*e+n:n,a++%4)?i+=s.charCodeAt(c+10)-10!=0?String.fromCharCode(255&e>>(-2*a&6)):a:0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);for(var u=0,h=i.length;u=this.sampleRate))try{await this.otelClient.exportLogs()}catch(t){this.stdout&&console.log(`[SHS] Otel export logs failure: ${t}`)}}}!function(t){const e=148,n=140,i=246,r=18,o=111,s=53,a=232,c=104;function u(t,e){return Vt(t- -743,e)}const h=t();for(;;)try{if(256286===parseInt(u(-130,-268))/1+-parseInt(u(-e,-15))/2+parseInt(u(-80,3))/3*(-parseInt(u(9,-11))/4)+-parseInt(u(-31,-n))/5*(-parseInt(u(-106,-i))/6)+-parseInt(u(r,-o))/7+-parseInt(u(-87,s))/8*(-parseInt(u(10,-95))/9)+parseInt(u(-231,-164))/10*(parseInt(u(-a,-c))/11))break;h.push(h.shift())}catch(t){h.push(h.shift())}}(Ut);const Dt=function(){const t=24;let e=!0;return function(n,i){const r=e?function(){if(i){const o=i[(e=t,r=-57,Vt(r- -604,e))](n,arguments);return i=null,o}var e,r}:function(){};return e=!1,r}}(),St=Dt(this,function(){const t=423,e=599,n=401,i=301,r=542,o=599,s=708,a=519;function c(t,e){return Vt(t- -161,e)}return St[c(t,489)]()[c(e,581)](c(519,n))[c(t,i)]()[c(527,r)](St)[c(o,s)](c(a,411))});function Tt(t,e){return Vt(e- -441,t)}St();const _t=Tt(291,214),At=Tt(221,153),Pt=Tt(-24,69),Ht=Tt(153,237);class jt{[Tt(-45,67)];[Tt(35,110)];[Tt(307,322)];constructor(t,e,n){const i=935,r=1047,o=951,s=1280,a=1259;function c(t,e){return Tt(t,e-937)}this[c(1103,1004)]=t,this[c(i,r)]={path:"/",sameSite:c(o,1072),...e},this[c(s,a)]=n}async[Tt(257,168)](){const t=383,e=237,n=282,i=236,r=this[o(-420,-340)][o(-29,-133)];function o(t,e){return Tt(t,e- -450)}if(this[o(-339,-383)][o(-268,-134)])try{const s=await this[o(-318,-t)][o(-265,-134)][o(-e,-n)]({name:r});return s?s[o(-i,-370)]:null}catch(t){return this[o(-469,-363)](o(-256,-283)+t),this[o(-35,-156)]()}return this[o(-98,-156)]()}async[Tt(151,115)](t){const e=606,n=600,i=405,r=446,o=278,s=394,a=482,c=400,u=309,h=514,l=445,d=518,f=409,p=495,g=474,m=277,v=429,y=379,w=377,C=424,L=441,b=82,M=393;function B(t,e){return Tt(e,t-290)}if(this[B(357,443)][B(e,n)])try{await this[B(357,368)][B(606,695)][B(i,482)]({name:this[B(400,r)][B(607,570)],value:t,path:this[B(400,o)][B(s,a)],maxAge:this[B(400,262)][B(452,515)],sameSite:this[B(c,u)][B(h,l)]?.[B(d,f)]()})[B(p,g)](e=>{function n(t,e){return B(e- -M,t)}this[n(-b,-16)](n(194,133)+e),this[n(-62,48)](t)}),this[B(377,m)](B(v,y))}catch(e){this[B(w,364)](B(381,C)+e),this[B(L,423)](t)}else this[B(441,433)](t)}[Tt(329,294)](){const t=481,e=425,n=625,i=516,r=561,o=549,s=458,a=590,c=820;function u(t,e){return Tt(e,t-391)}const h=this[u(501,615)][u(708,728)],l=new RegExp(u(t,e)+h+u(n,i))[u(r,o)](this[u(s,529)][u(a,508)][u(688,c)]);return l?l[2]:null}[Tt(160,151)](t){function e(t,e){return Tt(e,t- -340)}this[e(-273,-316)][e(-141,-230)][e(-43,-157)]=this[e(-230,-363)][e(-23,68)]+"="+t+e(-154,-118)+this[e(-230,-227)][e(-236,-104)]+e(-185,-99)+this[e(-230,-261)][e(-178,-90)]+e(-239,-231)+this[e(-230,-100)][e(-116,22)],this[e(-253,-207)](e(-193,-308))}[Tt(28,87)](t){const e=879,n=772;function i(t,e){return Tt(t,e-555)}this[i(935,877)][i(864,e)](i(n,846)+t)}}const It={document:document,navigator:typeof navigator!==Tt(74,165)?{get webdriver(){return navigator[(t=508,e=544,Tt(t,e-383))];var t,e},get userAgent(){return navigator[(t=476,e=350,Tt(t,e-29))];var t,e},get languages(){return navigator[(t=-70,e=-128,Tt(e,t- -179))];var t,e},get plugins(){return navigator[(t=1496,e=1465,Tt(t,e-1397))];var t,e},sendBeacon:navigator[Tt(190,327)]?.[Tt(344,325)](navigator)}:{webdriver:void 0,userAgent:"",languages:[],plugins:[],sendBeacon:void 0},window:window,screen:screen,cookieStore:typeof window!==Tt(43,165)&&Tt(317,316)in window?window[Tt(453,316)]:void 0,performance:typeof performance!==Tt(179,165)?performance:void 0};function kt(t){if(t[e(-478,-383)]<2)return{speed:0,jitter:0};function e(t,e){return Tt(t,e- -514)}const n=t[e(-129,-230)]((t,e)=>t+e.s,0)/t[e(-385,-383)],i=t[e(-222,-230)]((t,e)=>t+(e.s-n)**2,0)/(t[e(-488,-383)]-1),r=Math[e(-244,-289)](i);return{speed:n,jitter:r}}function qt(t,e,n,i,r,o,s,a,c,u,h,l,d){const f=54,p=96,g=30,m=71,v=141,y=104,w=318,C=71,L=158,b=224,M=72,B=346,x=228,z=225,D=170,S=122,T=216,_=100,A=825,P=709,H=1028,j=876,I=Math[ct(50,-10)](1e3,t),k=Math[ct(f,-10)](1e3,n),q=Math[ct(-147,-10)](1e3,o),E=Math[ct(p,-10)](1e3,a),N=Math[ct(108,-10)](1e3,s),U=Math[ct(g,-10)](1e3,c),V=[];if(e[ct(-5,m)]>=3)for(let t=1;t5e-4){i=!0;break}r=o.s}else r=o.s;return i}(V),Z=function(t){if(t[i(-364,-426)]<3)return 0;let e=0,n=0;for(let r=1;r2*Math.PI-Math.PI/12)&&e++,n++}function i(t,e){return Tt(t,e- -557)}return n>0?e/n:0}(e),{speed:K,jitter:G}=kt(V);let R=0,Y=0;if(i[ct(120,71)]>1){const t=new Set(i[ct(v,y)](t=>Math[ct(129,1)](t.x/20)+","+Math[ct(-39,1)](t.y/20)))[ct(-12,32)];R=t>1?1:0,Y=i[ct(w,224)]((t,e)=>t+e[ct(-55,76)],0)/i[ct(127,C)]}const J=r[ct(L,224)]((t,e)=>{const n=812;function i(t,e){return ct(e,t-n)}return null===e[i(A,P)]||t[i(H,954)](e[i(825,j)]),t},[]),{rhythmConsistency:X,jitter:W}=function(t){const e=216,n=63,i=276,r=157,o=86;if(t[u(63,2)]<2)return{rhythmConsistency:0,jitter:0};const s=t[u(e,249)]((t,e)=>t+e,0)/t[u(n,-47)],a=t[u(216,i)]((t,e)=>(t??0)+((e??0)-s)**2,0)/t[u(63,55)],c=Math[u(r,286)](a);function u(t,e){return Tt(e,t- -68)}return{rhythmConsistency:0===c?1:Math[u(220,o)](0,1-c/s),jitter:c/s}}(J),F=J[ct(-51,C)]>0?J[ct(243,b)]((t,e)=>t+e,0)/J[ct(-24,71)]:0,$=[];if(u[ct(-65,C)]>=3)for(let t=1;tu[t-1].p?ct(z,D):"up";$[ct(S,T)]({s:i,dir:r,t:u[t].t})}const{speed:Q,jitter:tt}=kt($),et=function(t){const e=1151,n=1260,i=1151,r=1020,o=1034,s=903;if(t[c(1108,1034)]<2)return 0;let a=0;for(let r=1;r=500&&t[r].t-n>=500&&(e++,n=t[r].t);return e}($)),{speed:it,jitter:rt}=kt(h),ot=function(t){const e=1503,n=1572,i=1712,r=1441;function o(t,e){return Tt(e,t-r)}if(t[o(1572,1711)]<2)return 0;let s=0;for(let n=1;n=500&&e++;function n(t,e){return Tt(t,e- -369)}return e}(h)),at=Math[ct(70,1)]((d-l)/1e3);function ct(t,e){return Tt(t,e- -60)}return{ma:I,ca:k,ka:q,sa:E,ta:U,kba:N,t:Math[ct(-36,-10)](3600,at),nm:O?1:0,ms:Nt(Z),mj:Nt(G),msp:Nt(K),vc:R,cp:Nt(Y),rc:Nt(X),kj:Nt(W),ki:Nt(F),ss:Nt(Q),sj:Nt(tt),ssm:Nt(et),sp:nt,ts:Nt(it),tj:Nt(rt),tp:st,tsm:Nt(ot)}}function Et(t,e){const n=968,i=929,r=803;let o=0;return(...s)=>{const a=239,c=typeof performance!==u(845,n)?performance[u(929,923)]():Date[u(i,r)]();function u(t,e){return Vt(t-a,e)}c-o>=e&&(o=c,t(...s))}}function Nt(t){return Math[(e=1e3,n=867,Tt(n,e-756))](100*t)/100;var e,n}function Ut(){const t=["C2LNBMLMAwnHBNrFCgfNzv90Aw1L","Bw9UAxrVCKjLAgf2Aw9Y","BMf0DxjHBf9TB3vZzv9Hy3rPDML0Eq","BMf0DxjHBf9JBgLJA19Wyxr0zxjUCW","yMfZzvvssq","y2XPy2S","CMvKDwnL","Dg91y2HFywn0AxzPDhK","zMLSBfjLy3q","w1niu10G","Bwf4","DxbKyxrLu2vZC2LVBKrHDge","BMf2AwDHDg9Y","w0nVB2TPzuPHCL0G","qMvHy29UihnLBMqGzgvIB3vUy2vKicH0B28GC29VBIbZAw5JzsbSyxn0ihnLBMqP","Ag9ZDa","z2v0tgvNywn5","C2v0vgLTzw91Da","CMvTB3zLrxzLBNrmAxn0zw5LCG","y29VA2LL","tg9HzgvKihnLC3nPB24GC2LNBMfSCYbPBIbqCM9JzxnZzwrtAwDUywXZigzVCM1HDa","BxvSDgLWBgvFCgfNzxnFDMLZAxrLza","u2vZC2LVBIbZAwDUywXZihnHDMvK","u2vUzgLUzYbIzwfJB24GzhvLihrVihnPz25HBcbJAgfUz2vZ","zxHWB3j0v2L0AezLDgnO","zgvIDwC","ue9tva","Aw5PDa","zw52AxjVBM1LBNq","y2XPzw50wa","BgfZDfn1y2nLC3nMDwXtzw5KvgLTzq","Aw5JBhvKzq","CgvYAw9KAwm","nZq4suLdCgz5","mte3wKr5BLn4","BgfZDfvWzgf0zvrPBwu","C2nYB2XSqwn0AxzPDhK","tM8GC2LNBMfSignOyw5NzxmGzgv0zwn0zwqGyw5Kig1HEcbZAwXLBMnLihrPBwuGBM90ihjLywnOzwqSigjLywnVBIbUB3qGC2vUDa","y29VA2LLu3rVCMu","y29VA2LLtMfTzq","zMLSBfrLEhq","C2vHCMnO","mtKYnJKZovbAuNfttq","DxnLCKfNzw50","xZb4mtDJnty1","CMvK","Bg9N","yMLUza","C3rHCNrZv2L0Aa","C2vUzejLywnVBG","u2HVCgLMEsbtDg9YzwzYB250","qxqGBgvHC3qGB25LihnPz25HBcbJB2XSzwn0Aw9Uig1LDgHVzcbTDxn0igjLigvUywjSzwqGkgnVB2TPzsbVCIbIzwfJB24P","ywjZ","BwLU","q29UDhjVBa","Bw91C2vTB3zL","Ahr0Chm6lY8","y29VA2LLsMfY","CMvMzxjYzxi","icbnB3vZzsbHy3rPDML0EtOG","Aw5UzxjxAwr0Aa","zhvYyxrPB24","yMX1zq","zM9YrwfJAa","zMXVB3i","icbqywDLignVDw50oIa","y2HHBMDL","C2nYB2XSrxzLBNrZ","y2XPzw50sgvPz2H0","Bw91C2vqB3nPDgLVBNm","yNjVD3nLCKfqsq","CgX1z2LUCW","l2fWAs9JB2XSzwn0","odq3ndGYow5Yu01MDG","mtbvv2zVrKG","Dg9W","Aw50","zw52AxjVBM1LBNrdAgvJA2vK","A2v5yM9HCMrcDxjZDefJDgL2Axr5","zgv2AwnLugL4zwXsyxrPBW","Bg9HzfnLC3nPB25eyxrH","uMf3igjLAgf2Aw9YywWGzgf0ytO","u2vUzgLUzYbWzxjPB2rPyYbIzwfJB24Glsa","DMfSDwu","CMvXDwvZDeLKBgvdywXSyMfJAW","DxbKyxrLq29VA2LL","AhjLzG","BgfZDfbYB2nLC3nuAw1L","CMvHzhLtDgf0zq","BgfZDfnPz25HBhm","Bg9NtwvZC2fNzq","z2v0q29UDgv4Da","DgLTzvn0yw1W","kf58icK","q29VA2LLu3rVCMuGC2v0igzHAwXLzcWGzMfSBgLUzYbIywnRoIa","C2L6zq","y2fUDMfZx2zPBMDLCNbYAw50x25VCM1HBa","rMfPBgvKihrVihnHDMuGC2vZC2LVBIbZAwDUywXZoIa","mtzWEcbbCMLHBa","qMvHy29UigvYCM9YoIa","z2v0vgLTzxPVBMvpzMzZzxq","CgfNzunVDw50","A2v5yM9HCMrcDxjZDhm","zg9JDw1LBNrfBgvTzw50","oYbtyw1Lu2L0zt0","A2v5CW","lcbMywXSAw5NigjHy2SGDg8GzMv0y2G","Cgf0Aa","DxbKyxrLsw50zxj2ywW","yxbWBhK","Bwf4u2LSzw5Jzu1Z","C3rHCNruAw1L","BgfUz3vHz2vZ","B3b0Aw9UCW","Dg91y2Hby3rPDML0Eq","Bw91C2vby3rPDML0Eq","C2vUzejLywnVBIbYzxr1CM5LzcbMywXZzsWGzMfSBgLUzYbIywnRihrVigzLDgnO","y2XPzw50wq","C2v0","D2LKDgG","Bg9NC1nHBxbSzvjHDgu","y2XPzw50v2LKDgG","iokgKIa","yMvHy29Urw5KCg9PBNq","yM90x3vZzxjFywDLBNq","Ag9ZDg5HBwu","twv0yq","DgvZDa","icaOsw5PDgLHBcbZAwDUywWGC2v0kq","C2nYB2XSwq","D2vIzhjPDMvYx2rLDgvJDgvK","icblzxLIB2fYzcbHy3rPDML0EtOG","sw5PDgLHBgL6Aw5NigH1BwfUigrLDgvJDgLVBG","z2v0qwjZB2X1DgvvCMW","BgvUz3rO","y2HLy2TwAwv3Cg9YDfjHDgLV","A2vLCf9HBgL2zq","re9nq29UDgvUDeXVywrLza","u3rYAwn0","ChjL","u2LNBMfSignOyw5NzxmGzgv0zwn0zwq6","Bg9JyxrPB24","q29VA2LLihnLDcb1C2LUzYbdB29RAwvtDg9YzsbbueK","yxbWBgLJyxrPB24VANnVBG","qwX0","z2v0rgLZDgfUy2u","Dg9tDhjPBMC","icbuAw1Lig9UihbHz2u6ia","y2fUDMfZ","Dg9eyxrHvvjm","q29VA2LLihnLDcb1C2LUzYbSzwDHy3KGBwv0Ag9K","zxzLBNriyw5KBgvYCW","qMvHy29UihnLBNqGC3vJy2vZC2z1BgX5ihzPysbMzxrJAa","CMv0CNLuAw1LB3v0swq","C2v0tgvNywn5","C2vZC2LVBKrHDge","CgvYzI1RAxqTAhvTyw4TC2LNBMfSCW","mti4ote2uLjMs0Hp","oYbTyxGTywDLpq","C3rHDgu","B3jPz2LU","C2vZC2LVBL9KDxjHDgLVBL9YzwfZB25HyMXL","qMvHy29UigzHAwXLzdOG","ChjLCgfYzvbHEwXVywreyxrH","D2vIzhjPDMvY","y29VA2LLrxHWAxj5","C2vZC2LVBLn0B3jHz2u","BwfW","Dw5KzwzPBMvK","y2XPy2Tby3rPDML0Eq","q29VA2LLu3rVCMuGz2v0igzHAwXLzcWGzMfSBgLUzYbIywnRoIa","z2v0","Dg91y2HZDgfYDa","zxHLyW","Bw92zq","odu4odvZsunTuKO","icboyxr1CMfSig1VDMvTzw50oIa","C3rHDhvZ","A2v5yM9HCMrFywn0AxzPDhK","tw9IAwXL","Aw5JBhvKzxm","y2HLy2TfBNzPCM9UBwvUDa","B250B3vJAhn0yxj0","yMvHy29UuMv0CNLmAw1PDa","DgHLBG","icbdBgLJAYbHy3rPDML0EtOG","xZb4nty4yJnI","qMvHy29UihnLBNqGC3vJy2vZC2z1BgX5ihzPysbZzw5KqMvHy29Uiefqsq","zMX1C2HpDgvStg9NCW","oYbWyxrOpq","rMfPBgvKihrVigXVywqGC2vZC2LVBIbZAwDUywXZoIa","z2v0sxrLBq","C2vZ","C2vZC2LVBLn0yxj0","u2vZC2LVBIbKyxrHigXVywrLzdOG","BgvMDa","A2v5rxzLBNrZ","z2v0qM91BMrPBMDdBgLLBNrszwn0","y2fUy2vSswrSzunHBgXIywnR","otmXnJG2t1DVr05v","y2fSy3vSyxrLq2XPy2TqCMvJAxnPB24","Bg9HzfnLC3nPB25tAwDUywXZ","zg9JDw1LBNq","C2HPzNq","icbty3jVBgWGywn0AxzPDhK6ia","CMvXDwvZDeLKBgvdywXSyMfJA0LK","icbwyxjPzwqGy2XPy2TZoIa","DxbKyxrLsw50zxj2ywXjza","y2f0y2G","yxrHBJi","yNjVD3nLCL9LBNzPCM9UBwvUDf9UB3jTywW","C3rHCNq","CYbZAw5JzsbSyxn0ihn1y2nLC3nMDwWGC2vUza","y3jLyxrLtgLUzwfYr3jHzgLLBNq","Dg91y2HfDMvUDhm","Dg91y2HLCW","Aw5UzxjizwLNAhq","Ahr0Chm6lY9VDgXWlwH0DhaTChjVzhvJDgLVBI5ZAg9WAwz5C3zJlMnVBq","mta1ndrdv0Xtrg4","ChjVDg9JB2W","Dg91y2HLBMq","C3rYAw5NAwz5","q29VA2LLigXVywrPBMCGC2TPChbLzcaTignVB2TPzxmGzgLZywjSzwq","zw5HyMXLqMvHy29U","yMvHy29Uu3rHDgu","nJK0mMDkwfjdDa","ywrKrxzLBNrmAxn0zw5LCG","C2fTzvnPDgu","C3fYDa","BgfZDfrVDwnOrxzLBNq","ywrKq29SB3jtDg9W","Dg9mB3DLCKnHC2u","CgfYC2u","zg93BG","zgvZDhjVEq","y2HLy2TbBMrtzw5Ku2LNBMfSCW","Ahr0CdOVlW","psHBxJTDkYK","DMvYC2LVBG","q29VA2LLu3rVCMuGC2v0ihbYB21PC2uGCMvQzwn0zwq6ia","x3nOC19ZDgf0zq","zMLSBfn0EwXL","kcGOlISPkYKRksSK","A2v5qwn0AxzPDhK","ihbHz2vZ","vxbKyxrPBMCGy29VA2LLihDPDgGGCgf5Bg9HzdOG","Bg9HzgLUzW","CM91BMq","i2zMzG","qMvHy29UihjLDhj5igXPBwL0ihjLywnOzwq","y29UC3rYDwn0B3i","zgLY","BM93","C2nYB2XS","tM8GC2vZC2LVBIbKyxrHigzVDw5KoIa","CNvUq2fUDMfZvgvZDa","y3jLyxrLrwXLBwvUDa","AgvPz2H0","D2LUzg93","y2XPy2TqB3nPDgLVBNm","y2HLy2TcCM93C2vYq29UC2LZDgvUy3K","C2nOzwr1BgvczwfJB25szxrYEq","CMv0CNLdB3vUDa","tg9HzgvKihnLC3nPB24GC2LNBMfSCYbMCM9TifnPz25HBhnqyxLSB2fKigzVCM1HDa","C2f2zvnLC3nPB25tAwDUywXZ","qMvHy29UihjLDhj5ihnJAgvKDwXLzcbPBIa","DgfYz2v0","Dg91y2HTB3zL","zw5HyMXLq29VA2LL","C2v0sxrLBq","C2nYB2XSx2fJDgL2Axr5","y2XLyxjuAw1LB3v0","C2HVCeLK","C2vUzejLywnVBIbLCNjVCJOG","nvLky1DVuG","zM9UDa","A2v5zg93BG","A2v5","u2HPzNq","ChvZAa","icbtzxnZAw9Uigr1CMf0Aw9UoIa"];return(Ut=function(){return t})()}function Vt(t,e){const n=Ut();return Vt=function(e,i){let r=n[e-=491];if(void 0===Vt.lQXjZC){var o=function(t){let e="",n="",i=e+o;for(let n,r,o=0,s=0;r=t.charAt(s++);~r&&(n=o%4?64*n+r:r,o++%4)?e+=i.charCodeAt(s+10)-10!=0?String.fromCharCode(255&n>>(-2*o&6)):o:0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(let t=0,i=e.length;t{const a=62,c=758;await this[h(150,71)](),await this[h(251,t)](),await this[h(155,34)](!0),this[h(e,n)][h(i,r)][h(o,389)](()=>{var t,e;this[(t=c,e=654,h(e-302,t))]()},100);const u=()=>{const t=680,e=593,n=818,i=781,r=682,o=607,s=667,c=759,l=728,d=491,f=645,p=584,g=654,m=707,v=Date[C(15,-111)](),y=v-(this[C(-221,-204)][C(a,-47)]||v),w=Math[C(-86,-72)](0,this[C(-263,-177)][C(-190,-255)]-y);function C(t,e){return h(e- -433,t)}const L=()=>{const a=1152,h=1030,v=445,y=886;function w(t,e){return C(t,e-y)}this[w(t,e)][w(n,i)][w(r,o)]?this[w(s,r)][w(c,l)]=this[w(579,e)][w(770,781)][w(d,o)](()=>{function t(t,e){return w(t,e-v)}this[t(994,1053)]()[t(1125,a)](()=>this[t(1192,1293)][t(1282,1156)]())[t(h,1152)](()=>{u()})},{timeout:2e3}):this[w(f,608)]()[w(p,707)](()=>this[w(878,848)][w(650,711)]())[w(g,m)](()=>{u()})};w>0?this[C(-291,-293)][C(-141,-105)][C(-168,-65)](L,w):L()};function h(t,e){return s(e,t- -954)}u()})()}[Tt(168,231)](){const t=878,e=899,n=926,i=789,r=1011,o=943,s=835,a=926,c=924,u=977,h=1032,l=917,d=792,f=789,p=921,g=1018,m=710,v=774,y=878,w=726,C=774,L=677,b=1018,M=780,B=870,x=736,z=831,D=1047,S=1018,T=995,_=978,A=870,P=901,H=815,j=839,I=933,k=1018,q=996,E=878,N=880,U=972,V=901,O=946,Z=764,K=851,G=821,R=967,Y=870,J=986,X=870,W=849,F=939,$=789,Q=973,tt=878,et=1019,nt=891,it=796,rt=789,ot=769,st=788,at=999,ct=795,ut=875,ht=878,lt=878,dt=988,ft=866,pt=789,gt=1105,mt=1014,vt=872,yt=939,wt=1035;function Ct(t,e){return Tt(t,e-722)}this[Ct(885,t)][Ct(e,n)]&&this[Ct(804,i)][Ct(r,977)][Ct(o,990)](this[Ct(823,878)][Ct(s,a)]),this[Ct(975,t)][Ct(896,c)]&&this[Ct(861,789)][Ct(1001,u)][Ct(800,917)]&&this[Ct(789,i)][Ct(1003,977)][Ct(h,l)](this[Ct(756,878)][Ct(789,c)]),this[Ct(810,878)][Ct(d,870)]&&(this[Ct(914,f)][Ct(1022,p)][Ct(1124,g)](Ct(m,v),this[Ct(999,y)][Ct(966,870)][Ct(w,C)]),this[Ct(L,789)][Ct(1055,p)][Ct(1010,b)](Ct(988,1005),this[Ct(M,878)][Ct(896,B)][Ct(892,1005)]),this[Ct(x,i)][Ct(z,p)][Ct(D,S)](Ct(907,T),this[Ct(1013,y)][Ct(_,A)][Ct(P,T)]),this[Ct(H,789)][Ct(j,p)][Ct(I,k)](Ct(q,972),this[Ct(779,E)][Ct(N,B)][Ct(903,U)]),Ct(899,V)in window&&this[Ct(O,878)][Ct(Z,870)][Ct(K,891)]&&this[Ct(G,878)][Ct(R,Y)][Ct(1082,J)]&&this[Ct(801,t)][Ct(959,X)][Ct(W,F)]&&(this[Ct(878,$)][Ct(1061,921)][Ct(Q,1018)](Ct(p,891),this[Ct(942,tt)][Ct(Z,870)][Ct(et,nt)]),this[Ct(it,rt)][Ct(971,921)][Ct(1150,1018)](Ct(905,986),this[Ct(ot,878)][Ct(st,870)][Ct(at,986)]),this[Ct(ct,f)][Ct(1029,921)][Ct(1097,1018)](Ct(ut,F),this[Ct(827,ht)][Ct(927,870)][Ct(945,F)]))),this[Ct(793,lt)][Ct(1011,943)]?.[Ct(dt,872)]&&this[Ct(ft,pt)][Ct(gt,u)][Ct(960,990)](this[Ct(793,878)][Ct(mt,o)][Ct(1002,vt)]),this[Ct(yt,878)][Ct(wt,o)]=void 0}async[Tt(151,77)](){const t=44,e=10,n=192,i=57,r=214,o=90,s=53,a=8,c=90,u=26,h=52,l=0,d=142;if(!this[g(56,84)][g(83,166)])return void this[g(59,-12)](g(144,120));const f=await this[g(t,-45)][g(e,69)](),p=function(t){const e=1362;if(!t)return null;try{const r=JSON[(n=1391,i=e,Tt(i,n-1162))](atob(decodeURIComponent(t)));return r.v&&r.ts?r:null}catch(t){return null}var n,i}(f);function g(t,e){return Tt(t,e- -99)}p?(this[g(76,i)][g(93,r)]=p.ts,p[g(119,o)]&&(this[g(-49,i)][g(43,s)]={pageCount:p[g(a,c)].p||1,sessionStart:p[g(105,90)].s||Date[g(u,150)](),duration:p[g(97,90)].d||0},this[g(100,-12)](g(86,92)+this[g(h,57)][g(l,53)][g(-46,-1)]+g(122,d)))):this[g(117,-12)](g(n,152)+f)}[Tt(108,178)](){const t=107,e=17,n=75,i=69,r=80,o=125,s=123,a={wd:this[c(-150,-116)][c(224,t)][c(-141,-22)]?1:0,ua:/bot|crawler|spider|scraper/i[c(-2,-59)](this[c(-129,-116)][c(113,t)][c(e,138)])?0:1,cv:this[c(n,i)]()?1:0,br:this[c(r,74)]()?1:0};function c(t,e){return Tt(t,e- -183)}return this[c(35,-27)][c(o,s)]=a,this[c(109,-27)][c(-43,-109)]=!0,a}[Tt(190,252)](){const t=345,e=346,n=477,i=301,r=503,o=394,s=437,a=532,c=464,u=526,h=488,l=448,d=505,f=337,p=680,g=516,m=529,v=625,y=550,w=693,C=596,L=737,b=409;function M(t,e){return Tt(t,e-278)}try{const B=this[M(416,t)][M(e,n)][M(413,531)](M(i,423));B[M(r,o)]=200,B[M(s,a)]=50;const x=B[M(c,366)]("2d");if(null===x)return!1;const z=x[M(u,h)](0,0,200,0);z[M(l,d)](0,M(572,601)),z[M(378,505)](1,M(254,f)),x[M(409,516)]=z,x[M(p,564)](0,0,200,50),x[M(620,g)]=M(m,523),x[M(v,y)]=M(300,373),x[M(w,C)](M(L,606),33,30);const D=B[M(550,424)]();return Boolean(D&&D[M(473,b)]>50)}catch(t){return!1}}[Tt(224,257)](){const t=1118,e=1132,n=937,i=1065,r=895,o=918,s=959,a=902,c=877,u=1074,h=895,l=896,d=774,f=1066,p=787,g=1183,m=1149,v=915,y=1083,w=991,C=904,L=925,b=828;let M=0;this[B(895,795)][B(t,e)][B(n,i)]&&this[B(r,976)][B(1118,1101)][B(937,o)][B(s,a)]>0&&M++,(this[B(895,c)][B(t,u)][B(896,908)]&&this[B(h,1006)][B(1118,984)][B(l,d)][B(959,f)]>0||this[B(895,p)][B(t,g)][B(m,1011)][B(1005,1059)](B(1004,1116)))&&M++,this[B(960,v)]()&&M++,typeof this[B(h,1012)][B(y,w)][B(C,1006)]!==B(993,937)&&M++;try{const t=(new Date)[B(925,L)]();t>-840&&t<840&&M++}catch(t){}function B(t,e){return Tt(e,t-b)}return M>=3}[Tt(3,132)](){const t=this[n(-520,-481)][n(-394,-293)][n(-464,-491)]||this[n(-567,-481)][n(-381,-349)][n(-437,-448)][n(-563,-430)],e=this[n(-420,-481)][n(-369,-293)][n(-226,-335)]||this[n(-415,-481)][n(-415,-349)][n(-381,-448)][n(-601,-483)];function n(t,e){return Tt(t,e- -548)}if(!t||!e)return!1;if(t<=2||e<=2)return!1;const i=t/e;return i>=.2&&i<=5}[Tt(245,279)](){const t=137,e=4,n=8,i=11,r=1,o=707,s=802,a=28,c=42,u=91,h=14,l=46,d=53,f=22,p=35,g=10,m=80,v=348,y=300,w=348,C=253,L=371,b=323,M=436,B=433,x=392,z=424,D=418,S=288,T=404,_=544,A=306,P=1451,H=1385,j=1382,I=1452,k=1360,q=1307,E=1427,N=1360,U=1575,V=1452,O=775,Z=785,K=893,G=894,R=986,Y=670,J=760,X=719,W=796,F=775,$=683,Q=775,tt=812,et=868,nt=679,it=812,rt=696,ot=750,st=828,at=819,ct=833,ut=678,ht=845,lt=775,dt=718,ft=661,pt=662,gt=694,mt=634,vt=637,yt=774,wt=178,Ct=95,Lt=195,bt=128,Mt=70,Bt=96,xt=195,zt=97,Dt=215,St=235,_t=120,At=73,Pt=0,Ht=1257,jt=1213,It=1297,kt=1167,qt=1199,Nt=1232,Ut=1214,Ot=1257,Zt=1127,Kt=1167,Gt=1301,Rt=1349,Yt=1257,Jt=1329,Xt=1408,Wt=1190,Ft=1146,$t=660,Qt=Et(t=>{function e(t,e){return Vt(t-$t,e)}this[e(Ht,1239)][e(jt,It)]++,this[e(Ht,1226)][e(kt,qt)][e(Nt,Ut)]>=10&&this[e(Ot,Zt)][e(Kt,1130)][e(Gt,Rt)](),this[e(Yt,1317)][e(kt,1231)][e(1377,Jt)]({x:t[e(Xt,1438)],y:t[e(1215,1261)],t:t[e(Wt,Ft)]})},100),te=t=>{function e(t,e){return Vt(e-392,t)}this[e(1070,989)][e(970,999)]++,requestAnimationFrame(()=>setTimeout(()=>{function n(t,n){return e(n,t- -894)}this[n(Ct,174)][n(Lt,bt)][n(Mt,-62)]>=5&&this[n(95,146)][n(195,Bt)][n(139,59)](),this[n(Ct,-44)][n(xt,zt)][n(Dt,St)]({x:t[n(246,_t)],y:t[n(53,At)],t:t[n(28,-70)],pre:this[n(136,Pt)](t)})},0))},ee=t=>{function e(t,e){return Vt(t-wt,e)}this[e(O,Z)][e(859,977)]++;const n=t[e(K,1001)];if([e(G,R),e(Y,543),e(J,X),e(742,835)][e(W,923)](n))return;const i=this[e(F,$)][e(812,673)][this[e(Q,tt)][e(tt,et)][e(750,826)]-1],r=t[e(708,nt)],o=i?r-i.t:null;this[e(O,859)][e(it,rt)][e(ot,st)]>=10&&this[e(O,876)][e(812,779)][e(at,723)](),this[e(F,ct)][e(812,ut)][e(895,ht)]({_0x19e331:n,t:r,int:o}),null!==o&&o<100?(this[e(lt,844)][e(dt,ft)][e(895,1030)](o),this[e(Q,pt)][e(dt,616)][e(750,660)]>=5&&(this[e(lt,692)][e(gt,767)]++,this[e(775,mt)][e(718,vt)]=[])):this[e(775,yt)][e(718,675)]=[]},ne=Et(t=>{this[n(1577,1452)][n(1697,1610)]++;const e=t[n(P,H)];function n(t,e){return Vt(e-855,t)}const i=window[n(j,1422)];this[n(1576,I)][n(1437,k)][n(q,E)]>=10&&this[n(1492,I)][n(1219,N)][n(1572,1496)](),this[n(U,V)][n(1321,1360)][n(1557,1572)]({p:i,t:e})},200),ie=t=>{function e(t,e){return Vt(t- -249,e)}this[e(v,435)][e(303,y)]++,this[e(w,C)][e(403,L)][e(b,M)]>=10&&this[e(348,B)][e(403,370)][e(x,347)](),this[e(348,z)][e(D,S)]={x:t[e(T,447)][0][e(499,_)],y:t[e(404,299)][0][e(A,261)],t:t[e(281,315)],typ:e(400,270),s:0,d:0}},re=Et(t=>{function e(t,e){return Vt(t- -695,e)}const n={x:t[e(-42,-28)][0][e(53,c)],y:t[e(-42,u)][0][e(-140,-200)]};if(this[e(-98,-40)][e(-28,18)]){const i=this[e(-112,a)](this[e(-98,-9)][e(-28,-147)],n);this[e(-98,16)][e(-43,h)][e(-123,-126)]>=10&&this[e(-98,33)][e(-43,94)][e(-54,-33)]();const r={x:t[e(-42,l)][0][e(d,-31)],y:t[e(-42,98)][0][e(-140,-72)],t:t[e(-165,-273)],typ:e(-83,-43),d:i,s:i/(t[e(-165,-103)]-this[e(-98,8)][e(-28,43)].t)};this[e(-98,-1)][e(-43,-83)][e(f,p)](r),this[e(-98,31)][e(-28,-15)]=r}else{const n={x:t[e(-42,g)][0][e(53,-47)],y:t[e(-42,m)][0][e(-140,-153)],t:t[e(-165,-222)],typ:e(-83,-43),s:0,d:0};this[e(-98,-132)][e(-28,-161)]=n}},200),oe=t=>{const e=110;function n(t,n){return Vt(n-e,t)}this[n(711,o)][n(s,777)]=null};function se(t,e){return Tt(t,e- -269)}this[se(-147,-202)][se(-157,-70)][se(18,-46)](se(-296,-217),Qt,{passive:!0}),this[se(-206,-202)][se(40,-70)][se(-5,-46)](se(-44,14),te,{passive:!0}),this[se(-66,-202)][se(-190,-70)][se(-1,-46)](se(t,e),ee,{passive:!0}),this[se(-177,-202)][se(-9,-70)][se(81,-46)](se(n,-19),ne,{passive:!0}),se(-222,-90)in window&&(this[se(-108,-202)][se(-156,-70)][se(-25,-46)](se(-129,-100),ie,{passive:!0}),this[se(-231,-202)][se(-101,-70)][se(-151,-46)](se(-93,-5),re,{passive:!0}),this[se(-67,-202)][se(-115,-70)][se(i,-46)](se(-69,-52),oe,{passive:!0})),this[se(r,-113)][se(4,-121)]={mousemove:Qt,click:te,keydown:ee,scroll:ne,touchstart:ie,touchmove:re,touchend:oe}}async[Tt(22,82)](t=!1){const e=1149,n=1047,i=1186,r=1269,o=1212,s=1083,a=980,c=1039,u=1122,h=1245,l=1215,d=966;function f(t,e){return Tt(e,t-d)}if(this[f(1255,1240)](t),this[f(e,n)][f(i,1140)]&&await this[f(1198,r)](),!this[f(1149,o)][f(1231,1176)])return;const p=this[f(1126,s)]();p&&(await this[f(1020,a)][f(1081,c)](p),this[f(u,1009)][f(1279,h)]=Date[f(l,1308)]())}[Tt(403,289)](t=!1){function e(t,e){return Tt(t,e- -460)}const n=Date[e(-335,-211)]();let i=Math[e(-325,-399)]((n-this[e(-246,-304)][e(-353,-352)])/1e3);null!==this[e(-365,-304)][e(-42,-147)]&&(i=Math[e(-437,-399)]((n-this[e(-429,-304)][e(-56,-147)])/1e3)),this[e(-392,-304)][e(-301,-308)]?(this[e(-421,-304)][e(-367,-308)][e(-439,-362)]+=t?1:0,this[e(-435,-304)][e(-294,-308)][e(-303,-402)]+=i):this[e(-204,-304)][e(-273,-308)]={pageCount:1,sessionStart:this[e(-309,-304)][e(-228,-352)],duration:0}}[Tt(203,160)](){const t=915,e=997,n=949,i=953,r=949,o=1007,s=1086,a=1147,c=1055,u=997,h=950,l=1007,d=997,f=1097,p=1130,g=983,m=1081,v=985,y=997,w=880,C=916,L=1005,b=903,M=952,B=905,x=990,z=997,D=1100,S=1052,T=1111,_=1090,A=997,P=1072,H=939,j=907,I=993,k=1109,q=885,E=1061,N=899,U=1182,V=959,O=1059,Z=841;if(!this[R(997,1035)][R(t,985)]&&0===this[R(e,n)][R(i,r)]&&0===this[R(997,992)][R(o,s)])return null;const K=this[R(e,940)][R(a,1084)]??{wd:0,ua:1,cv:0,br:0},G=qt(this[R(e,953)][R(953,c)],this[R(u,1133)][R(907,h)],this[R(997,1083)][R(l,1105)],this[R(d,1104)][R(f,1084)],this[R(997,p)][R(1034,1092)],this[R(997,g)][R(m,v)],this[R(y,w)][R(C,L)],this[R(997,1045)][R(1155,1044)],this[R(e,b)][R(M,960)],this[R(d,896)][R(B,x)],this[R(z,D)][R(S,T)],this[R(997,1080)][R(n,1081)],Date[R(_,1004)]());function R(t,e){return Tt(e,t-Z)}const Y={p:this[R(A,1120)][R(993,P)]?.[R(H,1001)]??1,s:this[R(y,j)][R(I,996)]?.[R(1031,902)]??this[R(997,k)][R(n,957)],d:this[R(y,q)][R(993,E)]?.[R(N,1020)]??0},J=function(t,e,n,i,r){function o(t,e){return Bt(e- -549,t)}return{v:t,ts:e,env:{wd:n.wd,ua:n.ua,cv:n.cv,br:n.br},bhv:{ma:i.ma,ca:i.ca,ka:i.ka,sa:i.sa,kba:i[o(-285,-288)],ta:i.ta,t:i.t,nm:i.nm,ms:i.ms,mj:i.mj,msp:i[o(-291,-282)],vc:i.vc,cp:i.cp,rc:i.rc,kj:i.kj,ki:i.ki,ss:i.ss,sj:i.sj,ssm:i[o(-288,-291)],sp:i.sp,ts:i.ts,tj:i.tj,tp:i.tp,tsm:i[o(-279,-280)]},ses:{p:r.p,s:r.s,d:r.d}}}(2,Date[R(_,U)](),K,G,Y);return this[R(928,874)](R(1083,V)+JSON[R(1059,992)](J)),encodeURIComponent(btoa(JSON[R(O,945)](J)))}[Tt(-29,87)](t,e=!1){const n=185;function i(t,e){return Tt(e,t- -102)}this[i(220,296)][i(222,215)](i(n,187)+t,e)}[Tt(75,198)](){const t=577,e=765,n=857,i=673,r=771,o=808,s=809,a=551,c=597,u=648,h=685,l=834;try{if(this[f(t,682)][f(e,n)][f(i,r)]){const t=this[f(577,509)][f(e,662)][f(673,o)][f(698,752)](Ht);if(t){const e=JSON[f(739,s)](t);let n;return f(637,a)in e?(n=e,this[f(c,720)](f(o,808),!0)):(n={webdriver_detected:(d=e).wd,bot_user_agent:d.ua,canvas_fingerprint_normal:d.cf,browser_environment_normal:d.be,natural_mouse_activity:d.nm,natural_click_patterns:d.nc,keyboard_activity:d.ka,scroll_activity:d.sa,touch_activity:d.ta,significant_page_time:d.pt,multiple_pages_visited:d.mp,session_duration_reasonable:d.sd},this[f(597,u)](f(770,h),!0)),n}}}catch(t){this[f(597,692)](f(697,l)+t,!0)}var d;function f(t,e){return Tt(e,t-510)}return null}[Tt(202,261)](t){const e=70,n=253,i=347,r=239,o=496,s=294,a=272,c=397,u=284,h=349,l=126,d=431,f=448,p=164,g=345;function m(t,e){return Tt(e,t-131)}try{this[m(198,e)][m(386,n)][m(294,i)]&&(this[m(198,r)][m(386,o)][m(s,a)][m(c,u)](Ht,JSON[m(h,296)](Ot(t))),this[m(218,l)](m(d,f),!0))}catch(t){this[m(218,p)](m(225,g)+t,!0)}}[Tt(221,197)](t){const e=805,n=727,i=865,r=905,o=896,s=975,a=753,c=725,u=836,h=611,l=t[d(874,790)];function d(t,e){return Tt(e,t-h)}if(!(l&&l instanceof Element&&l[d(805,781)]))return 0;const f=l[d(e,688)]();if(!f[d(n,840)]||!f[d(i,r)])return 0;const p=f[d(803,o)]+f[d(n,756)]/2,g=f[d(683,684)]+f[d(865,s)]/2,m=this[d(a,678)]({x:t[d(918,897)],y:t[d(c,773)]},{x:p,y:g}),v=Math[d(u,824)](f[d(727,777)]**2+f[d(i,851)]**2)/2;return v>0?Math[d(899,804)](0,1-m/v):0}[Tt(204,142)](t,e){return Math[(n=-196,i=-119,Tt(n,i- -344))]((e.x-t.x)**2+(e.y-t.y)**2);var n,i}[Tt(37,130)](t){const e=124,n=30,i=49,r=147,o=215,s=232,a=242,c=185;if(t[u(95,218)](u(79,125))||t[u(e,218)](u(-48,-55)))return t;function u(t,e){return Tt(t,e- -108)}return""+(this[u(-79,-41)][u(43,147)][u(163,n)][u(165,i)]||this[u(-27,-41)][u(195,r)][u(164,n)][u(o,108)]+"//"+this[u(16,-41)][u(s,147)][u(29,30)][u(a,c)])+t}async[Tt(350,327)](t,e){const n=1375,i=1412,r=1274,o=1413,s=1447,a=1410,c=1322,u=1248,h=1178,l=1312,d=1311,f=1259,p=1341,g=1489,m=1494,v=1268,y=1482,w=1262,C=1430,L=1334,b=1344,M=1413,B=1407,x=1510,z=1376,D=1211,S=1305,T=1599,_=1462,A=1243,P=1295,H=1551,j=1496,I=1332,k=1354,q=1366,E=1348,N=1386,U=1413,V=1548,O=1242,Z=1285,K=1413,G=1370,R=1500,Y=1581,J=1441,X=1172,W=1279,F=1341,$=1238,Q=1288,tt=1450,et=1192;if(!this[rt(1333,n)][rt(1367,i)]||!this[rt(1287,1348)][rt(r,o)])return;const nt=function(t,e,n){return{v:t,s:{wd:e.wd,ua:e.ua,cf:e.cf,be:e.be,nm:e.nm,nc:e.nc,ka:e.ka,sa:e.sa,ta:e.ta,pt:e.pt,mp:e.mp,sd:e.sd},r:n}}(1,Ot(t),e),it=JSON[rt(s,a)](nt);function rt(t,e){return Tt(t,e-et)}const ot=this[rt(1445,c)](this[rt(u,1375)][rt(h,l)]);if(this[rt(d,f)][rt(p,1482)][rt(g,1519)]&&!this[rt(1498,n)][rt(1552,m)])try{const t=new Blob([it],{type:rt(1448,1332)});if(this[rt(v,1259)][rt(1530,y)][rt(1421,1519)](ot,t))return this[rt(w,1348)][rt(1498,1413)][rt(C,1451)]=0,this[rt(L,1348)][rt(b,M)][rt(B,1500)]=Date[rt(x,1441)](),void this[rt(1357,1279)](rt(1245,z),!0);this[rt(1200,1279)](rt(D,S),!0)}catch(t){this[rt(1253,1279)](rt(T,_)+t+rt(A,P),!0)}try{const t=await fetch(ot,{method:rt(H,j),headers:{"Content-Type":rt(1413,I)},body:it,credentials:rt(C,1501),keepalive:!0});if(!t.ok)throw new Error(rt(k,1351)+t[rt(1472,q)]);this[rt(1339,E)][rt(N,U)][rt(V,1451)]=0,this[rt(O,1348)][rt(Z,K)][rt(G,R)]=Date[rt(Y,J)](),this[rt(X,W)](rt(1229,F),!0)}catch(n){this[rt($,1279)](rt(1166,Q)+n,!0),this[rt(1577,tt)](t,e)}}[Tt(319,258)](t,e){const n=1229,i=1164,r=1181,o=1267,s=1095,a=1162,c=1058,u=1264,h=1363,l=1396,d=1164,f=1352,p=1169,g=1197,m=1075,v=1230,y=1248,w=1229,C=1270,L=1008,b=1071,M=1087,B=1114,x=1258;if(!this[D(1131,1164)][D(1141,n)]||this[D(1063,i)][D(1242,1229)][D(r,o)]>=this[D(1128,1191)][D(1256,1188)])return void this[D(1163,s)](D(1315,1254),!0);const z=Math[D(a,c)](1e3*2**this[D(u,1164)][D(1153,n)][D(1270,1267)],3e4);function D(t,e){return Tt(t,e-L)}this[D(1045,1164)][D(h,1229)][D(l,1267)]++,this[D(1189,d)][D(f,1229)][D(p,1158)]=this[D(g,m)][D(v,1263)][D(y,1303)](()=>{function n(t,e){return D(t,e- -77)}this[n(b,M)][n(1160,1152)]&&this[n(1130,B)][n(1069,1151)]&&this[n(1359,x)](t,e)},z),this[D(w,s)](D(1132,C)+z+"ms",!0)}async[Tt(230,232)](){const t=659,e=730,n=697,i=589,r=685,o=414,s=531,a=732,c=815,u=569,h=578,l=551,d=632,f=709,p=646,g=687,m=734,v=787,y=628,w=576,C=662,L=697,b=691,M=566,B=725,x=784,z=592,D=583,S=654,T=625,_=498,A=906,P=555,H=465,j=720,I=778,k=779,q=685,E=709,N=697,U=719,V=449,O=696,Z=591,K=536,G=493,R=563,Y=702,J=565,X=606,W=581,F=563,$=657,Q=677,tt=549,et=563,nt=535,it=649,rt=679,ot=577,st=628,at=684,ct=563,ut=507,ht=622,lt=525,dt=574,ft=669,pt=620,gt=632,mt=628,vt=713,yt=422,wt=841,Ct=686,Lt=567,bt=586,Mt=598,Bt=745,xt=787,zt=539,Dt=803,St=656,_t=538,At=380,Pt=128,Ht=187,jt=216,It=476;if(!this[Ot(t,663)][Ot(696,e)]||!this[Ot(632,538)][Ot(n,785)])return;const kt=qt(this[Ot(632,553)][Ot(588,i)],this[Ot(632,r)][Ot(542,o)],this[Ot(632,s)][Ot(642,773)],this[Ot(632,512)][Ot(a,c)],this[Ot(632,611)][Ot(669,u)],this[Ot(632,h)][Ot(716,734)],this[Ot(632,534)][Ot(l,437)],this[Ot(632,706)][Ot(790,864)],this[Ot(632,685)][Ot(587,718)],this[Ot(d,f)][Ot(540,667)],this[Ot(d,p)][Ot(g,671)],this[Ot(d,548)][Ot(584,466)],Date[Ot(725,679)]()),Et=function(t,e,n,i){const r=615,o=565,s=620,a=744,c=613,u=752,h=433,l=445,d=497,f=438,p=493,g={webdriver_detected:1===t?.wd||!1,bot_user_agent:0===t?.ua||!1,browser_environment_normal:1===t?.br||!1,canvas_fingerprint_normal:1===t?.cv||!1,natural_mouse_activity:!1,natural_click_patterns:!1,keyboard_activity:!1,scroll_activity:!1,touch_activity:!1,significant_page_time:!1,multiple_pages_visited:!1,session_duration_reasonable:!1};function m(t,e){return Tt(e,t-335)}if(e.ma>5&&1===e.nm&&(g[m(r,o)]=!0),e.ca>0&&1===e.vc&&(g[m(616,550)]=!0),e.ka>5&&(g[m(510,390)]=!0),e.sa>0&&(g[m(602,686)]=!0),e.ta>0&&(g[m(s,a)]=!0),e.t>30&&(g[m(c,u)]=!0),n&&(n[m(h,l)]>1&&(g[m(634,d)]=!0),n[m(393,f)]>60&&(g[m(p,358)]=!0)),i){const t=Object[m(437,572)](g);for(const e of t)g[e]=g[e]||i[e]}return g}(this[Ot(632,m)][Ot(782,v)],kt,this[Ot(632,760)][Ot(y,w)],this[Ot(d,548)][Ot(697,714)][Ot(562,656)]),Nt=function(t,e){const n=1311;if(!e)return!0;const i=Object[(r=1413,o=1400,Tt(o,r-n))](t);var r,o;for(const n of i)if(t[n]!==e[n])return!0;return!1}(Et,this[Ot(632,C)][Ot(L,b)][Ot(562,M)]),Ut=Date[Ot(B,654)]()-this[Ot(632,718)][Ot(697,625)][Ot(x,842)],Vt=Ut>=this[Ot(t,z)][Ot(D,S)];function Ot(t,e){return Tt(e,t-It)}if(Nt||Vt){if(Date[Ot(725,727)]()-this[Ot(d,686)][Ot(n,T)][Ot(560,_)]<100)return void this[Ot(563,587)](Ot(768,A),!0);if(Vt&&!Nt&&this[Ot(563,539)](Ot(P,H)+Math[Ot(j,I)](Ut/1e3)+Ot(685,592),!0),Nt){if(this[Ot(659,568)][Ot(k,811)]){if(this[Ot(563,q)](Ot(613,692)),this[Ot(632,E)][Ot(N,U)][Ot(562,V)]){Object[Ot(578,646)](Et)[Ot(K,G)](t=>{function e(t,e){return Ot(e- -376,t)}const n=this[e(At,256)][e(259,321)][e(Pt,186)][t],i=Et[t];n!==i&&this[e(54,Ht)](" "+t+": "+n+e(jt,219)+i)})}else this[Ot(563,O)](Ot(601,Z));this[Ot(R,Y)](Ot(554,J)),this[Ot(563,676)](Ot(532,X)+kt.ma),this[Ot(R,W)](Ot(658,547)+kt.ca),this[Ot(F,$)](Ot(604,514)+kt.ka),this[Ot(563,666)](Ot(Q,554)+kt.sa),this[Ot(563,493)](Ot(620,tt)+kt.t+"s"),this[Ot(et,nt)](Ot(it,516)+kt.nm),this[Ot(563,441)](Ot(rt,ot)+kt.vc),this[Ot(632,770)][Ot(st,at)]&&(this[Ot(ct,425)](Ot(538,ut)+this[Ot(632,ht)][Ot(628,lt)][Ot(dt,ft)]),this[Ot(563,pt)](Ot(753,678)+this[Ot(gt,546)][Ot(mt,vt)][Ot(534,yt)]+"s"))}this[Ot(563,607)](Ot(777,wt),!0)}this[Ot(gt,e)][Ot(697,Ct)][Ot(562,574)]=(Zt=Et,{...Zt}),this[Ot(632,Lt)][Ot(697,bt)][Ot(560,Mt)]=Date[Ot(B,Bt)](),this[Ot(737,xt)](Et);const t=Nt?Ot(zt,497):Ot(786,719);await this[Ot(Dt,689)](Et,t)}else this[Ot(t,St)][Ot(k,861)]&&this[Ot(et,_t)](Ot(791,835),!0);var Zt}}const Kt=t=>{const e=1483,n=1442,i=1581,r=/_shopify_s=([^;]*)/[o(1454,1580)](t[o(e,n)][o(i,1630)]);function o(t,e){return Tt(e,t-1284)}return r?r[1]:void 0},Gt=(t,e)=>{const n=1256,i=1043,r=1102,o=1242,s=1180,a=1083,c=1123,u=1200,h=1013,l=1028,d=1144,f=1e3,p=1029,g=945,m=Kt(t);function v(t,e){return Tt(t,e-g)}const y=/_shopify_y=([^;]*)/[v(n,1115)](t[v(i,1144)][v(r,o)]),w=y?y[1]:void 0;return{libVersion:Ct[v(1126,s)],shopId:e||"",hostname:t[v(1261,1200)]?.[v(1027,a)]?.[v(c,1067)]||"",url:t[v(1287,u)]?.[v(h,a)]?.[v(1156,l)]||"",referrer:t[v(1095,d)]?.[v(879,f)]||"",baseURI:t[v(p,1144)]?.[v(1181,1227)]||"",sessionToken:m||"",uniqueToken:w||""}},Rt=(t,e=It,n=new vt(_t,At))=>{const i=1585,r=1502,o=1350,s=1329,a=1318,c=1356,u=1476,h=1542,l=new dt({exporter:n,attributes:Gt(e,t?.[g(i,r)])}),d=Kt(e),f=d?function(t){let e=0;for(let n=0,i=t.length;nm[g(1557,1538)]()):m[g(1486,1538)](),m};var Yt="2.0.16";const Jt=Object.freeze({shop_domain:`${window.location.origin}/.well-known/shopify/monorail/v1/produce`,global:"https://monorail-edge.shopifysvc.com/v1/produce",canada:"https://monorail-edge-ca.shopifycloud.com/v1/produce",staging:"https://monorail-edge-staging.shopifycloud.com/v1/produce"}),Xt=new RegExp(`^${window.location.origin}/((?:(?:[a-z]{2,3}|zh-hans|zh-hant)(?:-[a-zA-Z0-9]+)/)?cart/(add|change|update|clear))`),Wt=new RegExp("cart-performance:|add:|change:|clear:|note_update:");var Ft;function $t({monorailRegion:t,schema:e,rawData:n}){const i=Date.now(),r={schema_id:e,payload:e===Ft.OnUnload?Qt(n):te(n),metadata:{event_created_at_ms:i,event_sent_at_ms:i}},o=Jt[t||""],s=JSON.stringify(r);if(!o)return void console.debug("📡 Monorail: ",JSON.stringify(r,null,2));try{const t=new window.Blob([s],{type:"text/plain"});if("function"==typeof window.navigator.sendBeacon&&"function"==typeof window.Blob&&!function(){const{userAgent:t}=window.navigator;return-1!==t.lastIndexOf("iPhone; CPU iPhone OS 12_")||-1!==t.lastIndexOf("iPad; CPU OS 12_")}()&&window.navigator.sendBeacon(o,t))return}catch(t){}const a=new XMLHttpRequest;a.open("POST",o),a.setRequestHeader("Content-type","text/plain"),a.send(s)}function Qt(t){const e=ee(t,["domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","firstPaint","visuallyReady","initiatorType","redirectCount","cartAjaxResourceTimings","cartPerformanceMetrics"]);return{perf_kit_init:t.perfKitInit,perf_kit_version:t.perfKitVersion,url:t.url,page_type:t.pageType,shop_id:t.shopId,application:t.application,storefront_id:t.storefrontId,theme_instance_id:t.themeInstanceId,theme_name:t.themeName,theme_version:t.themeVersion,session_token:t.sessionToken,unique_token:t.uniqueToken,micro_session_id:t.microSessionId,micro_session_count:t.microSessionCount,cumulative_layout_shift:t.cumulativeLayoutShift,cumulative_layout_shift_target:t.cumulativeLayoutShiftTarget,first_contentful_paint:t.firstContentfulPaint,largest_contentful_paint:t.largestContentfulPaint,largest_contentful_paint_target:t.largestContentfulPaintTarget,time_to_first_byte:t.timeToFirstByte,seo_bot:t.seoBot,humanness_score:t.humannessScore,ja3_fingerprint:t.ja3Fingerprint,navigation_start:t.navigationStart,navigation_type:t.navigationType,navigation_bad:t.navigationBad,encoded_body_size:t.encodedBodySize,decoded_body_size:t.decodedBodySize,transfer_size:t.transferSize,first_interim_response_start:t.firstInterimResponseStart,final_response_headers_start:t.finalResponseHeadersStart,response_start:t.responseStart,response_end:t.responseEnd,worker_start:t.workerStart,connect_start:t.connectStart,connect_end:t.connectEnd,domain_lookup_start:t.domainLookupStart,domain_lookup_end:t.domainLookupEnd,fetch_start:t.fetchStart,redirect_start:t.redirectStart,redirect_end:t.redirectEnd,request_start:t.requestStart,secure_connection_start:t.secureConnectionStart,next_hop_protocol:t.nextHopProtocol,server_timing:t.serverTiming,paint_timing_hidden:t.paintTimingHidden,referrer:t.referrer,render_region:t.renderRegion,resource_timing:t.resourceTiming,other_metrics:JSON.stringify(e)}}function te(t){const e=ee(t,["longAnimationFrame"]);return{url:t.url,page_type:t.pageType,shop_id:t.shopId,application:t.application,storefront_id:t.storefrontId,theme_instance_id:t.themeInstanceId,session_token:t.sessionToken,unique_token:t.uniqueToken,micro_session_id:t.microSessionId,micro_session_count:t.microSessionCount,interaction_to_next_paint:t.interactionToNextPaint,interaction_to_next_paint_target:t.interactionToNextPaintTarget,seo_bot:t.seoBot,humanness_score:t.humannessScore,ja3_fingerprint:t.ja3Fingerprint,referrer:t.referrer,worker_start:t.workerStart,next_hop_protocol:t.nextHopProtocol,navigation_bad:t.navigationBad,other_interaction_metrics:JSON.stringify(e)}}function ee(t,e){return e.reduce((e,n)=>{var i;return t[n]&&(e[(i=n,i.replace(/[A-Z]/g,t=>`_${t.toLowerCase()}`))]=t[n]||null),e},{})}!function(t){t.OnInteraction="perf_kit_on_interaction/3.1",t.OnUnload="perf_kit_on_unload/3.3"}(Ft||(Ft={}));const ne="xxxx-4xxx-xxxx-xxxxxxxxxxxx";function ie(){let t="";try{const e=window.crypto,n=new Uint16Array(31);e.getRandomValues(n);let i=0;t=ne.replace(/[x]/g,t=>{const e=n[i]%16;return i++,("x"===t?e:3&e|8).toString(16)}).toUpperCase()}catch(e){t=ne.replace(/[x]/g,t=>{const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}).toUpperCase()}return`${function(){let t=0,e=0;t=(new Date).getTime()>>>0;try{e=performance.now()>>>0}catch(t){e=0}return Math.abs(t+e).toString(16).toLowerCase().padStart(8,"0")}()}-${t}`}let re=!0,oe=!1,se=null,ae=null,ce=!1;class ue{info;config;performanceMetrics;constructor(t){const e=/_shopify_s=([^;]*)/.exec(document.cookie),n=e?e[1]:void 0,i=/_shopify_y=([^;]*)/.exec(document.cookie),r=i?i[1]:void 0;this.config=t,this.info={perfKitInit:Date.now(),perfKitVersion:Yt,url:window.location.href,referrer:document.referrer||void 0,microSessionId:ie(),microSessionCount:0,sessionToken:n,uniqueToken:r},performance.setResourceTimingBufferSize(1e3),this.performanceMetrics=function(t){const e=performance.getEntriesByType("navigation");if(0===e.length)return{};const n=e[0];let i=!1;return(n.requestStart&&n.startTime&&n.requestStartt+864e5)&&(i=!0),{encodedBodySize:n.encodedBodySize,decodedBodySize:n.decodedBodySize,navigationStart:Math.round(n.startTime),navigationType:n.type,navigationBad:i,firstInterimResponseStart:Math.round(n.firstInterimResponseStart),finalResponseHeadersStart:Math.round(n.finalResponseHeadersStart),responseStart:Math.round(n.responseStart),responseEnd:Math.round(n.responseEnd),workerStart:Math.round(n.workerStart),connectStart:Math.round(n.connectStart),connectEnd:Math.round(n.connectEnd),domainLookupStart:Math.round(n.domainLookupStart),domainLookupEnd:Math.round(n.domainLookupEnd),fetchStart:Math.round(n.fetchStart),redirectStart:Math.round(n.redirectStart),redirectEnd:Math.round(n.redirectEnd),requestStart:Math.round(n.requestStart),secureConnectionStart:Math.round(n.secureConnectionStart),nextHopProtocol:n.nextHopProtocol,serverTiming:JSON.stringify(n.serverTiming),domInteractive:Math.round(n.domInteractive),domComplete:Math.round(n.domComplete),domContentLoadedEventStart:Math.round(n.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(n.domContentLoadedEventEnd),redirectCount:n.redirectCount,initiatorType:n.initiatorType,transferSize:n.transferSize}}(this.info.perfKitInit)}}const he=new Set;function le(){if(null!==se){if(de()&&he.size>0){let t={};for(const e of he)t={...t,...e};he.clear(),se.info.microSessionCount+=1;const e=function(t){if(!(100*Math.random()>(t||10)))return performance.getEntriesByType("resource").map(t=>{const e=Object.entries(t.toJSON()).map(([t,e])=>"number"==typeof e?[t,Math.round(e)]:[t,e]);return JSON.stringify(Object.fromEntries(e))})}(se.config.resourceTimingSamplingRate),n=performance.getEntriesByType("resource").filter(t=>Xt.test(t.name)),i=performance.getEntriesByType("measure").filter(t=>Wt.test(t.name)).map(t=>{const e=t.toJSON();return e.name.startsWith("cart-performance:")||(e.name=`cart-performance:${e.name}`),e});$t({monorailRegion:se.config.monorailRegion,schema:Ft.OnUnload,rawData:{...se.info,...se.config.storefrontData,...se.performanceMetrics,...t,resourceTiming:e,cartAjaxResourceTimings:n,cartPerformanceMetrics:i,paintTimingHidden:ce}})}}else console.debug("⛔️ Shopify/perf-kit is not initialized")}function de(){return null!==ae?ae:et()}((e,i={})=>{const o=s(i=Object.assign({},i),t),a=new WeakMap;o.t=t=>{if(t?.sources?.length){const e=x(t.sources),n=e?.node;if(n){const t=i.generateTarget?.(n)??r(n);a.set(e,t)}}},((e,n={})=>{const i=C();M(g(()=>{let r,o=f("CLS",0);const a=s(n,t),c=t=>{for(const e of t)a.u(e);a.o>o.value&&(o.value=a.o,o.entries=a.i,r())},d=p("layout-shift",c);d&&(r=h(e,o,B,n.reportAllChanges),i.onHidden(()=>{c(d.takeRecords()),r(!0)}),u(()=>{a.o=0,o=f("CLS",0),r=h(e,o,B,n.reportAllChanges),l(()=>r())}),setTimeout(r))}))})(t=>{const i=(t=>{let e={};if(t.entries.length){const i=t.entries.reduce((t,e)=>t.value>e.value?t:e);if(i?.sources?.length){const t=x(i.sources);t&&(e={largestShiftTarget:a.get(t),largestShiftTime:i.startTime,largestShiftValue:i.value,largestShiftSource:t,largestShiftEntry:i,loadState:n(i.startTime)})}}return Object.assign(t,{attribution:e})})(t);e(i)},i)})(function(t){const{attribution:e,value:n}=t;he.add({cumulativeLayoutShift:n,cumulativeLayoutShiftTarget:e.largestShiftTarget})}),((t,n={})=>{const i=s(n=Object.assign({},n),k),o=new WeakMap;i.m=t=>{const e=t.element;if(e){const i=n.generateTarget?.(e)??r(e);o.set(t,i)}},((t,e={})=>{L(()=>{const n=C();let i,r=f("LCP");const o=s(e,k),a=t=>{e.reportAllChanges||(t=t.slice(-1));for(const e of t)o.u(e),e.startTime{a(c.takeRecords()),c.disconnect(),i(!0)}),o=t=>{t.isTrusted&&(j(n),removeEventListener(t.type,o,{capture:!0}))};for(const t of["keydown","click","visibilitychange"])addEventListener(t,o,{capture:!0});u(n=>{r=f("LCP"),i=h(t,r,q,e.reportAllChanges),l(()=>{r.value=performance.now()-n.timeStamp,i(!0)})})}})})(n=>{const i=(t=>{let n={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:t.value};if(t.entries.length){const i=e();if(i){const e=i.activationStart||0,r=t.entries.at(-1),s=r.url&&performance.getEntriesByType("resource").filter(t=>t.name===r.url)[0],a=Math.max(0,i.responseStart-e),c=Math.max(a,s?(s.requestStart||s.startTime)-e:0),u=Math.min(t.value,Math.max(c,s?s.responseEnd-e:0));n={target:o.get(r),timeToFirstByte:a,resourceLoadDelay:c-a,resourceLoadDuration:u-c,elementRenderDelay:t.value-u,navigationEntry:i,lcpEntry:r},r.url&&(n.url=r.url),s&&(n.lcpResourceEntry=s)}}return Object.assign(t,{attribution:n})})(n);t(i)},n)})(function(t){const{attribution:e,value:n}=t;he.add({largestContentfulPaint:Math.round(n),largestContentfulPaintTarget:e.target})}),((t,i={})=>{M(i=>{const r=(t=>{let i={timeToFirstByte:0,firstByteToFCP:t.value,loadState:n(c())};if(t.entries.length){const r=e(),o=t.entries.at(-1);if(r){const e=r.activationStart||0,s=Math.max(0,r.responseStart-e);i={timeToFirstByte:s,firstByteToFCP:t.value-s,loadState:n(t.entries[0].startTime),navigationEntry:r,fcpEntry:o}}}return Object.assign(t,{attribution:i})})(i);t(r)},i)})(function(t){const{value:e}=t;he.add({firstContentfulPaint:Math.round(e)})}),((t,e={})=>{const i=s(e=Object.assign({},e),H);let o=[],a=[],c=0;const l=new WeakMap,d=new WeakMap;let g=!1;const m=()=>{g||(j(v),g=!0)},v=()=>{const t=i.l.map(t=>l.get(t.entries[0])),e=a.length-50;a=a.filter((n,i)=>i>=e||t.includes(n));const n=new Set;for(const t of a){const e=y(t.startTime,t.processingEnd);for(const t of e)n.add(t)}const r=o.length-1-50;o=o.filter((t,e)=>t.startTime>c&&e>r||n.has(t)),g=!1};i.m=t=>{const e=t.startTime+t.duration;let n;c=Math.max(c,t.processingEnd);for(let i=a.length-1;i>=0;i--){const r=a[i];if(Math.abs(e-r.renderTime)<=8){n=r,n.startTime=Math.min(t.startTime,n.startTime),n.processingStart=Math.min(t.processingStart,n.processingStart),n.processingEnd=Math.max(t.processingEnd,n.processingEnd),n.entries.push(t);break}}n||(n={startTime:t.startTime,processingStart:t.processingStart,processingEnd:t.processingEnd,renderTime:e,entries:[t]},a.push(n)),(t.interactionId||"first-input"===t.entryType)&&l.set(t,n),m()},i.p=t=>{if(!d.get(t)){const n=t.entries[0].target;if(n){const i=e.generateTarget?.(n)??r(n);d.set(t,i)}}};const y=(t,e)=>{const n=[];for(const i of o)if(!(i.startTime+i.duratione)break;n.push(i)}return n},w=t=>{const e=t.entries[0],r=l.get(e),o=e.processingStart,s=Math.max(e.startTime+e.duration,o),a=Math.min(r.processingEnd,s),c=r.entries.sort((t,e)=>t.processingStart-e.processingStart),u=y(e.startTime,a),h=i.h.get(e.interactionId),f={interactionTarget:d.get(h),interactionType:e.name.startsWith("key")?"keyboard":"pointer",interactionTime:e.startTime,nextPaintTime:s,processedEventEntries:c,longAnimationFrameEntries:u,inputDelay:o-e.startTime,processingDuration:a-o,presentationDelay:s-a,loadState:n(e.startTime),longestScript:void 0,totalScriptDuration:void 0,totalStyleAndLayoutDuration:void 0,totalPaintDuration:void 0,totalUnattributedDuration:void 0};return(t=>{if(!t.longAnimationFrameEntries?.length)return;const e=t.interactionTime,n=t.inputDelay,i=t.processingDuration;let r,o,s=0,a=0,c=0,u=0;for(const c of t.longAnimationFrameEntries){a=a+c.startTime+c.duration-c.styleAndLayoutStart;for(const t of c.scripts){const c=t.startTime+t.duration;if(cu&&(o=t.startTime=e+n+i?"presentation-delay":"processing-duration",r=t,u=h)}}const h=t.longAnimationFrameEntries.at(-1),l=h?h.startTime+h.duration:0;l>=e+n+i&&(c=t.nextPaintTime-l),r&&o&&(t.longestScript={entry:r,subpart:o,intersectingDuration:u}),t.totalScriptDuration=s,t.totalStyleAndLayoutDuration=a,t.totalPaintDuration=c,t.totalUnattributedDuration=t.nextPaintTime-e-s-a-c})(f),Object.assign(t,{attribution:f})};p("long-animation-frame",t=>{o=o.concat(t),m()}),((t,e={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const n=C();L(()=>{"interactionCount"in performance||_||(_=p("event",T,{type:"event",buffered:!0,durationThreshold:0}));let i,r=f("INP");const o=s(e,H),a=t=>{j(()=>{for(const e of t)o.u(e);const e=o.M();e&&e.T!==r.value&&(r.value=e.T,r.entries=e.entries,i())})},c=p("event",a,{durationThreshold:e.durationThreshold??40});i=h(t,r,I,e.reportAllChanges),c&&(c.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{a(c.takeRecords()),i(!0)}),u(()=>{o.v(),r=f("INP"),i=h(t,r,I,e.reportAllChanges)}))})})(e=>{const n=w(e);t(n)},e)})(function(t){const{attribution:e,value:n}=t;if(null===se)return void console.debug("⛔️ Shopify/perf-kit is not initialized");if(!de())return;se.info.microSessionCount+=1;const{inputDelay:i,processingDuration:r,presentationDelay:o,longestScript:s,interactionTarget:a}=e,c=s?.entry?{slowest_script:s.entry.sourceURL,slowest_script_duration:Math.round(s.entry.duration)}:{};$t({monorailRegion:se.config.monorailRegion,schema:Ft.OnInteraction,rawData:{...se.info,...se.config.storefrontData,...se.performanceMetrics,interactionToNextPaint:Math.round(n),interactionToNextPaintTarget:a,longAnimationFrame:{input_delay:Math.round(i),processing_duration:Math.round(r),presentation_delay:Math.round(o),...c}}})},{reportAllChanges:!0}),((t,n={})=>{((t,n={})=>{let i=f("TTFB"),r=h(t,i,E,n.reportAllChanges);N(()=>{const o=e();o&&(i.value=Math.max(o.responseStart-d(),0),i.entries=[o],r(!0),u(()=>{i=f("TTFB",0),r=h(t,i,E,n.reportAllChanges),r(!0)}))})})(e=>{const n=(t=>{let e={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(t.entries.length){const n=t.entries[0],i=n.activationStart||0,r=Math.max((n.workerStart||n.fetchStart)-i,0),o=Math.max(n.domainLookupStart-i,0),s=Math.max(n.connectStart-i,0),a=Math.max(n.connectEnd-i,0);e={waitingDuration:r,cacheDuration:o-r,dnsDuration:s-o,connectionDuration:a-s,requestDuration:t.value-a,navigationEntry:n}}return Object.assign(t,{attribution:e})})(e);t(n)},n)})(function(t){const{value:e}=t;he.add({timeToFirstByte:Math.round(e)})}),addEventListener("DOMContentLoaded",()=>{ce="hidden"===document.visibilityState}),addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&le()}),function(){const{dataset:t}=document.currentScript;try{e=function(t){if(!t.application)throw new Error("Application is missing");if(!["storefront-renderer","hydrogen","shop-web"].includes(t.application.toLowerCase()))throw new Error("Invalid application type");if("shop-web"!==t.application.toLowerCase()){if(!t.shopId)throw new Error("shopId is missing");if(!t.themeInstanceId&&!t.storefrontId)throw new Error("Either `themeInstanceId` or `storefrontId` must be defined");for(const e of["shopId","themeInstanceId","storefrontId"])if(t[e]&&isNaN(Number(t[e])))throw new Error(`Invalid ${e}`)}if(t.humannessScore&&isNaN(Number(t.humannessScore)))throw new Error("Invalid humannessScore");if(t.monorailRegion&&!["shop_domain","global","staging","canada"].includes(t.monorailRegion.toLowerCase()))throw new Error("Invalid monorail region");if(t.resourceTimingSamplingRate&&(isNaN(Number(t.resourceTimingSamplingRate))||Number(t.resourceTimingSamplingRate)<10||Number(t.resourceTimingSamplingRate)>100))throw new Error("Invalid resource timing sampling rate");return{storefrontData:{application:t.application.toLowerCase(),shopId:Number(t.shopId)||0,renderRegion:t.renderRegion,pageType:t.pageType,seoBot:"true"===t.seoBot,humannessScore:Number(t.humannessScore)||void 0,ja3Fingerprint:t.ja3Fingerprint,themeInstanceId:Number(t.themeInstanceId)||void 0,storefrontId:Number(t.storefrontId)||void 0,themeName:t.themeName||void 0,themeVersion:t.themeVersion||void 0},monorailRegion:t.monorailRegion,resourceTimingSamplingRate:Number(t.resourceTimingSamplingRate)||void 0,spaMode:"true"===t.spaMode,shs:"true"===t.shs,shsBeacon:"true"===t.shsBeacon,shsBeaconEndpoint:t.shsBeaconEndpoint||void 0,shsCookie:"true"===t.shsCookie,shsExportWithFetch:"true"===t.shsExportWithFetch,shsLogsSampleRate:Number(t.shsLogsSampleRate)||1}}(t),se=new ue(e),e.spaMode&&(window.PerfKit={navigate:()=>{re?re=!1:oe||(le(),se=new ue(e),oe=!0)},setPageType:t=>{e.storefrontData.pageType=t},setConsent:t=>{ae=t}}),e.shs&&Rt({debug:!1,shopId:e.storefrontData.shopId,enableBeacon:e.shsBeacon||!1,enableCookie:e.shsCookie||!0,exportWithFetch:e.shsExportWithFetch||!0,logsSampleRate:e.shsLogsSampleRate,...e.shsBeaconEndpoint&&{beaconEndpoint:e.shsBeaconEndpoint}})}catch(t){console.error("🚫 Error initializing PerfKit:",t.message)}var e}()}();

search