window.burst = window.burst || {}; Object.assign( window.burst, {"tracking":{"isInitialHit":true,"initialized":false,"lastUpdateTimestamp":0,"currentUrl":null,"beacon_url":"http:\/\/rreynoso.com\/sketch\/wp-content\/plugins\/burst-statistics\/endpoint.php","ajaxUrl":"http:\/\/rreynoso.com\/sketch\/wp-admin\/admin-ajax.php"},"options":{"privacy_level":"cookie","cookieless":0,"pageUrl":false,"beacon_enabled":1,"do_not_track":0,"enable_turbo_mode":0,"track_url_change":0,"track_external_links":0,"enable_custom_events":0,"track_gtag_events":0,"track_gtag_custom_parameters":0,"track_downloads":0,"page_weight_sample_rate":0.1,"cookie_retention_days":30,"page_id":0,"consent_api_active":0,"debug":0},"goals":{"completed":[],"scriptUrl":"http:\/\/rreynoso.com\/sketch\/wp-content\/plugins\/burst-statistics\/assets\/js\/build\/burst-goals.js?v=1794532880","active":[]},"cache":{"uid":null,"fingerprint":null,"isUserAgent":null,"isDoNotTrack":null,"useCookies":null}} );function burst_has_opted_out(){return-1!==("; "+document.cookie+";").indexOf("; burst_consent=no;")}function burst_consent_api_decides(){return"function"==typeof wp_has_consent&&!(!window.wp_consent_type&&!window.wp_fallback_consent_type)}function burst_consent_state(){return"function"!=typeof wp_has_consent?window.burst?.options?.consent_api_active?"undecided":burst_has_opted_out()?"no":"yes":window.waitfor_consent_hook&&void 0===window.wp_consent_type?"undecided":burst_consent_api_decides()?wp_has_consent("statistics")?"yes":"no":burst_has_opted_out()?"no":"yes"}function burst_has_tracking_consent(){return"yes"===burst_consent_state()}let burstActiveTimer=(()=>{let e=3e4,r=0,s=!1,n=0,i=Date.now(),a=t=>t-i>=e,o=t=>{s&&(r+=Math.max(0,Math.min(t,i+e)-n),n=t)},t=()=>{o(Date.now()),s=!1},u=()=>{var t=Date.now();o(t),s&&!a(t)||(s=!0,n=t,i=t)},c=()=>{var t=Date.now();a(t)&&"visible"===document.visibilityState?u():(o(t),i=t)};var l=performance.getEntriesByType?.("navigation")[0]?.responseStart;let d=l||null;if(l)for(var b of performance.getEntriesByType("visibility-state"))"visible"===b.name?null===d&&(d=Math.max(b.startTime,l)):null!==d&&(r+=Math.min(e,Math.max(0,Math.round(b.startTime-d))),d=null);return"visible"===document.visibilityState&&(s=!0,n=null===d?i:Math.min(i,Math.round(performance.timeOrigin+d)),i=n),["mousemove","keyup","touchstart"].forEach(t=>document.addEventListener(t,c,{passive:!0})),window.addEventListener("scroll",c,{passive:!0}),window.addEventListener("focus",u),window.addEventListener("blur",t),document.addEventListener("visibilitychange",()=>("visible"===document.visibilityState?u:t)()),{take(){o(Date.now());var t=r;return r=0,t}}})(),burstMaxScroll=0,burstLastScrollTimestamp=Date.now(),burstCurrentZone="0_25",burstDwellTimePerZone={"0_25":0,"25_50":0,"50_75":0,"75_100":0};function burst_update_scroll_metrics(){var t=Date.now(),e=Math.max(0,t-burstLastScrollTimestamp),t=(burstLastScrollTimestamp=t,"visible"===document.visibilityState&&0burstMaxScroll&&(burstMaxScroll=s),burstCurrentZone=s<25?"0_25":s<50?"25_50":s<75?"50_75":"75_100"}let burstScrollTicking=!1;function burst_handle_scroll(){burstScrollTicking||(window.requestAnimationFrame(()=>{burst_update_scroll_metrics(),burstScrollTicking=!1}),burstScrollTicking=!0)}function burst_init_scroll_tracker(){burstLastScrollTimestamp=Date.now(),burst_update_scroll_metrics(),window.addEventListener("scroll",burst_handle_scroll,{passive:!0})}if("loading"===document.readyState?document.addEventListener("DOMContentLoaded",burst_init_scroll_tracker,{once:!0}):burst_init_scroll_tracker(),burst.getScrollData=function(){return burst_update_scroll_metrics(),{max_scroll:burstMaxScroll,dwell_zones:JSON.stringify(burstDwellTimePerZone)}},burst.resetScrollData=function(){for(var t in burstMaxScroll=0,burstLastScrollTimestamp=Date.now(),burstDwellTimePerZone)burstDwellTimePerZone[t]=0},burst.pageWeight={eligible:!1,sampled:!1,bytes:null,url:null,init(){var t=Math.min(1,Math.max(0,Number(burst.options.page_weight_sample_rate)||0));this.eligible=Math.random(){null!==e&&clearTimeout(e),null!==r&&clearTimeout(r),s?.disconnect()},a=()=>{var t;n||(n=!0,i(),this.isWanted()&&null!==(t=this.readBytes())&&(this.bytes=t,this.url=burst.tracking.currentUrl,u?.()))},o=()=>{null!==e&&clearTimeout(e),e=setTimeout(a,t)};if("function"==typeof PerformanceObserver)try{(s=new PerformanceObserver(t=>{0t+(e.transferSize||0),0):null},takeSample(){return this.hasUndelivered()?(this.sampled=!0,{page_weight_bytes:this.bytes}):{}},reset(){this.eligible=!1,this.bytes=null,this.url=null}},burst.pageWeight.init(),burst.goals?.active&&(burst.goals.active=burst.goals.active.map(t=>({...t,ID:parseInt(t.ID,10)}))),burst.goals?.completed&&(burst.goals.completed=burst.goals.completed.map(t=>parseInt(t,10))),burst.goals?.active?.some(t=>!t.page_url||""===t.page_url||t.page_url===burst.options.pageUrl)){let t=document.createElement("script");t.id="burst-goals-js",t.async=!0,t.src=burst.goals.scriptUrl,document.head.appendChild(t)}burst.getGoalsData=function(){return{completed_goals:burst.goals?.completed||[]}},burst.tracking=burst.tracking||{isInitialHit:!0,initialized:!1,lastUpdateTimestamp:0,ajaxUrl:"",currentUrl:null},burst.should_load_ecommerce=burst.should_load_ecommerce||!1,burst.cache=burst.cache||{uid:null,fingerprint:null,isUserAgent:null,isDoNotTrack:null,useCookies:null};let pageIsRendered=new Promise(t=>{document.prerendering?document.addEventListener("prerenderingchange",t,{once:!0}):t()}),burst_get_cookie=(burst.pageIsRendered=pageIsRendered,t=>{var e,r=t+"=";for(e of document.cookie.split(";"))if(0===(e=e.trim()).indexOf(r)){var s=e.substring(r.length);if(s)return Promise.resolve(s)}return Promise.reject(!1)}),burst_set_cookie=(e,r)=>{if(burst_has_tracking_consent()&&r){let t="";var s="https:"===location.protocol?";secure":"",n=new Date,n=(n.setTime(n.getTime()+864e5*burst.options.cookie_retention_days),";expires="+n.toGMTString());t=t&&";domain="+t,document.cookie=""+e+`=${r};SameSite=Strict${s}${n}${t};path=/`}},burst_use_cookies=()=>{var t;return!!burst_has_tracking_consent()&&(null!==burst.cache.useCookies?burst.cache.useCookies:(t=navigator.cookieEnabled&&!burst.options.cookieless&&"private_mode"!==burst.options.privacy_level,burst.cache.useCookies=t))};function burst_enable_cookies(){burst.options.cookieless=!1,burst.cache.useCookies=null,burst_use_cookies()&&burst_uid().then(t=>burst_set_cookie("burst_uid",t))}let burst_uid=()=>burst.cache.uid?Promise.resolve(burst.cache.uid):burst_get_cookie("burst_uid").then(t=>burst.cache.uid=t).catch(()=>{var t=burst_generate_uid();return burst_set_cookie("burst_uid",t),burst.cache.uid=t}),burst_generate_uid=()=>{let e="";for(let t=0;t<32;t++)e+=Math.floor(16*Math.random()).toString(16);return e},burst_fingerprint=()=>null!==burst.cache.fingerprint?Promise.resolve(burst.cache.fingerprint):new ThumbmarkJS.Thumbmark({exclude:["webgl","system.applePayVersion"],permissions_to_check:["geolocation","notifications","camera","microphone","gyroscope","accelerometer","magnetometer","ambient-light-sensor","background-sync","persistent-storage"]}).get().then(t=>{var t=t.thumbmark,e=t+"|"+[screen.availWidth+"x"+screen.availHeight,screen.width+"x"+screen.height,screen.colorDepth,window.devicePixelRatio||1,navigator.hardwareConcurrency||0,navigator.deviceMemory||0,navigator.maxTouchPoints||0,(new Date).getTimezoneOffset(),navigator.cookieEnabled?"1":"0","undefined"!=typeof Storage?"1":"0","undefined"!=typeof indexedDB?"1":"0",navigator.onLine?"1":"0",navigator.languages?navigator.languages.slice(0,3).join(","):navigator.language,navigator.platform,navigator.oscpu||"",navigator.connection&&navigator.connection.effectiveType||"","ontouchstart"in window?"1":"0",void 0!==window.orientation?"1":"0",window.screen.orientation&&window.screen.orientation.type||""].filter(t=>""!==t).join("|");let r=0;for(let t=0;t(console.error(t),null)),burst_get_time_on_page=()=>Promise.resolve(burstActiveTimer.take()),burst_is_user_agent=()=>{var t;return null!==burst.cache.isUserAgent?burst.cache.isUserAgent:(t=/bot|spider|crawl|slurp|mediapartners|applebot|bing|duckduckgo|yandex|baidu|facebook|twitter|googleother|google-inspectiontool/i.test(navigator.userAgent),burst.cache.isUserAgent=t)},burst_is_do_not_track=()=>{var t;return null!==burst.cache.isDoNotTrack?burst.cache.isDoNotTrack:burst.options.do_not_track?(t="1"===navigator.doNotTrack||"yes"===navigator.doNotTrack||"1"===navigator.msDoNotTrack||"1"===window.doNotTrack||!0===navigator.globalPrivacyControl,burst.cache.isDoNotTrack=t):burst.cache.isDoNotTrack=!1},burst_debug_enabled=()=>!(!burst.options.debug&&!window.burst_debug),burst_log_tracking_error=({status:t=0,error:e="",data:r={}})=>{if(burst_debug_enabled()&&burst.tracking.ajaxUrl){try{if(sessionStorage.getItem("burst_error_reported"))return;sessionStorage.setItem("burst_error_reported","1")}catch(t){}fetch(burst.tracking.ajaxUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"burst_tracking_error",status:t,error:e,data:r})})}},burst_beacon_fetch=(t,e)=>{fetch(burst.tracking.beacon_url,{method:"POST",body:t,keepalive:!0,headers:{"Content-Type":"application/json"}}).then(t=>{!t.ok&&burst_debug_enabled()&&burst_log_tracking_error({status:0,error:"sendBeacon failed",data:e})}).catch(t=>{burst_debug_enabled()&&burst_log_tracking_error({status:0,error:t?.message||"sendBeacon failed",data:e})})},burst_beacon_request=t=>{var e=new Blob([t],{type:"application/json"}),r="function"==typeof fetch;(burst_debug_enabled()&&r||("function"!=typeof navigator.sendBeacon||!navigator.sendBeacon(burst.tracking.beacon_url,e))&&r)&&burst_beacon_fetch(e,t)},burst_api_request=t=>{let s=JSON.stringify(t.data||{});return new Promise(r=>{var t;burst.options.beacon_enabled?(burst_beacon_request(s),r({status:200,data:"ok"})):(t=Math.random().toString(36).substring(2,9),wp.apiFetch({path:"/burst/v1/track/?token="+t,keepalive:!0,method:"POST",data:s}).then(t=>{var e=t.status||200;r({status:e,data:t.data||t}),200!==e&&burst_log_tracking_error({status:e,error:"Non-200 status",data:s})}).catch(t=>{r({status:200,data:"ok"}),burst_log_tracking_error({status:0,error:t?.message||"Burst tracking request failed",data:s})}))})};async function burst_update_hit(t=!1,e=!1,r={},s=!1){var n;await pageIsRendered,burst_is_user_agent()||burst_is_do_not_track()||!burst_has_tracking_consent()?burst.events?.clearQueue():burst.tracking.isInitialHit?burst_track_hit(r):!e&&Date.now()-burst.tracking.lastUpdateTimestamp<300||(document.dispatchEvent(new CustomEvent("burst_before_update_hit",{detail:burst})),[e,n]=await Promise.all([burst_get_time_on_page(),"private_mode"===burst.options.privacy_level?Promise.resolve(!!t&&[!1,!1]):t?Promise.all([burst_uid(),burst_fingerprint()]):(burst_use_cookies()?burst_uid:burst_fingerprint)()]),t={fingerprint:t?n[1]:!burst_use_cookies()&&n,uid:t?n[0]:!!burst_use_cookies()&&n,url:location.href,time_on_page:e,...burst.getScrollData?.(),...burst.getGoalsData?.(),should_load_ecommerce:burst.should_load_ecommerce,...s?burst.pageWeight.takeSample():{},...r},(0setTimeout(t,2));document.body||console.warn("Burst: missing page_id attribute, not able to resolve body element.");var n=new URLSearchParams(location.search),s={uid:!!burst_use_cookies()&&s,fingerprint:!burst_use_cookies()&&s,url:location.href,referrer_url:document.referrer,user_agent:navigator.userAgent||"unknown",time_on_page:r,...burst.getScrollData?.(),...burst.getGoalsData?.(),events:burst.events?.takeQueue()??[],page_id:document.body?.dataset?.burst_id??document.body?.dataset?.b_id??0,page_type:document.body?.dataset?.burst_type??document.body?.dataset?.b_type??"",should_load_ecommerce:burst.should_load_ecommerce,search_term:n.get("s")||"",...e};document.dispatchEvent(new CustomEvent("burst_track_hit",{detail:s})),await burst_api_request({method:"POST",data:s}),burst.tracking.lastUpdateTimestamp=Date.now()}else burst_update_hit(!1,!1,e)}function burst_init_events(){burst.tracking.currentUrl=location.href;let e=!1,r=()=>{e=!1},s=()=>{var t;e||burst_update_hit(!(e=!0),t=burst.pageWeight?.hasUndelivered(),t?{url:burst.pageWeight.url}:{},t)};let t=!1,n=()=>{!burst.options.track_url_change||t||(t=!0,Promise.resolve().then(()=>{t=!1,(async()=>{if(burst.tracking.currentUrl!==location.href){var t=burst.tracking.currentUrl,e=location.href;if(burst.tracking.currentUrl=e,burst.pageWeight?.hasUndelivered()){var r=burst.tracking.lastUpdateTimestamp;if(await burst_update_hit(!1,!0,{url:t},!0),burst.tracking.currentUrl!==e)return;burst.tracking.lastUpdateTimestamp=r}burst.pageWeight?.reset(),burst.tracking.isInitialHit=!0,burst_track_hit()}})()}))};if(!burst.options.enable_turbo_mode||"loading"!==document.readyState?burst_track_hit():document.addEventListener("DOMContentLoaded",burst_track_hit,{once:!0}),document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState||"unloaded"===document.visibilityState?s():"visible"===document.visibilityState&&r()}),window.addEventListener("pagehide",s),window.addEventListener("pageshow",r),burst.pageWeight?.measureAfterQuietPeriod){let t=()=>{r(),"hidden"===document.visibilityState&&s()};"complete"===document.readyState?burst.pageWeight.measureAfterQuietPeriod(t):window.addEventListener("load",()=>burst.pageWeight.measureAfterQuietPeriod(t),{once:!0})}document.addEventListener("click",e=>{let r=e.target.closest("a[href]");if(r&&burst.options.track_external_links){var s=(t=>{var e=t?.getAttribute?.("href");if(!e||e.startsWith("#"))return!1;let r;try{r=new URL(t.href,window.location.href)}catch(t){return!1}return!!["http:","https:"].includes(r.protocol)&&r.origin!==window.location.origin&&r.href})(r);if(s){s={external_link_url:s};if(burst.options.beacon_enabled||(i=r,(n=e).defaultPrevented)||0!==n.button||(n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||i.hasAttribute("download")||(n=(i.getAttribute("target")||"").toLowerCase())&&"_self"!==n))burst_update_hit(!1,!0,s);else{var n;e.preventDefault();let t=!1;var i=()=>{t||(t=!0,window.location.assign(r.href))};setTimeout(i,250),burst_update_hit(!1,!0,s).finally(i)}}}},!0),document.addEventListener("burst_fire_hit",()=>burst_track_hit()),document.addEventListener("burst_enable_cookies",()=>{burst_enable_cookies(),burst_update_hit(!0)});let i=history.pushState,a=(history.pushState=function(){i.apply(this,arguments),n()},history.replaceState);history.replaceState=function(){a.apply(this,arguments),n()},window.addEventListener("popstate",n)}let burst_previous_consent=burst_consent_state(),burst_maybe_init=()=>{var t=burst_consent_state(),e="no"===burst_previous_consent;"yes"===(burst_previous_consent=t)&&(!e||!burst.tracking.initialized&&burst_consent_api_decides()||(burst_get_time_on_page(),burst.resetScrollData?.(),burst.goals?.completed&&(burst.goals.completed.length=0),burst.events?.clearQueue(),burst.tracking.isInitialHit=!0),(burst.tracking.initialized?burst_track_hit:(burst.tracking.initialized=!0,burst_init_events))())};document.addEventListener("wp_consent_type_defined",burst_maybe_init),document.addEventListener("burst_consent_changed",burst_maybe_init),document.addEventListener("wp_listen_for_consent_change",()=>{burst.cache.useCookies=null,burst_maybe_init()}),burst.isLoaded=!0,burst.options.enable_custom_events?burst.events?.init():burst.event=()=>{burst.options.debug&&console.warn("Burst: custom events are not enabled, the event was not recorded.")},burst_maybe_init(),window.burst_uid=burst_uid,window.burst_use_cookies=burst_use_cookies,window.burst_fingerprint=burst_fingerprint,window.burst_update_hit=burst_update_hit;