1(function(){var MAX_EVENTS_PER_PAGE=25,MAX_TRACK_EVENTS_PER_PAGE=40,MAX_PER_SIGNATURE=2,MAX_PARAM_LENGTH=100,GTAG_WAIT_MS=15e3,sentCount=0,trackCount=0,signatureCounts={},pending=[],gtagReady=!1,gaveUp=!1,IGNORED_MESSAGES=["Script error.","ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications","The play() request was interrupted","AbortError"],VENDOR_SOURCE=/klaviyo|shopmy\.us|automizely|retention\.com|googletagmanager|google-analytics|doubleclick|connect\.facebook|hotjar|attentivemobile|okendo|stay\.ai|gorgias|amazonaws\.com|tiktok|pinterest|snapchat|bing\.com|criteo|justuno|yotpo/i;function truncate(value){return value==null?"":String(value).slice(0,MAX_PARAM_LENGTH)}function cleanPath(){try{return truncate(window.location.pathname)}catch(e){return""}}function context(){var ctx=window.GhiaCtx||{};return{page_path:cleanPath(),page_template:truncate(ctx.template),product_handle:truncate(ctx.handle)}}function isVendor(source){return source?VENDOR_SOURCE.test(String(source)):!1}function isIgnored(message){for(var text=String(message||""),i2=0;i2<IGNORED_MESSAGES.length;i2++)if(text.indexOf(IGNORED_MESSAGES[i2])!==-1)return!0;return!1}function flush(){if(!(!gtagReady||!window.gtag))for(;pending.length;){var item=pending.shift();try{window.gtag("event",item.name,item.params)}catch(e){return}}}function waitForGtag(){var started=Date.now(),timer=setInterval(function(){if(typeof window.gtag=="function"){gtagReady=!0,clearInterval(timer),flush();return}Date.now()-started>GTAG_WAIT_MS&&(gaveUp=!0,pending.length=0,clearInterval(timer))},500)}function dispatch(name,params){var payload=context();for(var key in params)Object.prototype.hasOwnProperty.call(params,key)&&(payload[key]=truncate(params[key]));pending.push({name:name,params:payload}),flush()}function send(name,params){if(!gaveUp&&!(sentCount>=MAX_EVENTS_PER_PAGE)){var signature=name+"|"+(params.error_message||"")+"|"+(params.error_source||"");signatureCounts[signature]=(signatureCounts[signature]||0)+1,!(signatureCounts[signature]>MAX_PER_SIGNATURE)&&(sentCount++,dispatch(name,params))}}function track(name,params){gaveUp||trackCount>=MAX_TRACK_EVENTS_PER_PAGE||(trackCount++,dispatch(name,params||{}))}function reportError(event){if(event){if(event.target&&event.target!==window&&event.target.tagName){var url=event.target.src||event.target.href;if(isVendor(url))return;send("resource_error",{error_message:truncate(event.target.tagName.toLowerCase()+" failed to load"),error_source:truncate(url)});return}isIgnored(event.message)||isVendor(event.filename)||send("js_error",{error_message:truncate(event.message),error_source:truncate(event.filename),error_line:truncate((event.lineno||0)+":"+(event.colno||0)),error_stack:truncate(event.error&&event.error.stack)})}}function reportRejection(event){var reason=event&&event.reason,message=reason&&reason.message?reason.message:String(reason);if(!isIgnored(message)){var stack=reason&&reason.stack?String(reason.stack):"";isVendor(stack)||send("js_error",{error_message:truncate("unhandled rejection: "+message),error_source:truncate(stack.split("\n")[1]||""),error_stack:truncate(stack)})}}window.ghiaReport=function(name,params){send(name,params||{})},window.ghiaTrack=function(name,params){track(name,params)},window.addEventListener("error",reportError,!0),window.addEventListener("unhandledrejection",reportRejection);for(var queued=window.__ghiaErrQ||[],i=0;i<queued.length;i++)queued[i][0]==="error"?reportError(queued[i][1]):reportRejection(queued[i][1]);window.__ghiaErrQ=null;var originalFetch=window.fetch;typeof originalFetch=="function"&&(window.fetch=function(){var args=arguments,input=args[0],url=typeof input=="string"?input:input&&input.url?input.url:"",isCart=url.indexOf("/cart/")!==-1;return isCart?originalFetch.apply(this,args).then(function(response){return response.ok||response.clone().json().then(function(data){send("c
1art_error",{error_message:truncate(data&&(data.description||data.message)),error_source:truncate(url),http_status:response.status,error_stage:"response"})}).catch(function(){send("cart_error",{error_message:"non-ok response",error_source:truncate(url),http_status:response.status,error_stage:"response"})}),response},function(error){throw send("cart_error",{error_message:truncate(error&&error.message?error.message:error),error_source:truncate(url),http_status:0,error_stage:"network"}),error}):originalFetch.apply(this,args)}),waitForGtag()})(); 2//# sourceMappingURL=/cdn/shop/t/243/assets/error-reporting.js.map?v=84387218122521338751786909215
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.