PageSourceSearch

https://propfirm.compare/_next/static/chunks/81189.e378b13b85ddccc3.js

js propfirm.compare collected 2026-10-07 04:05:13 UTC 3,196 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[81189],{81189:(e,t,n)=>{n.r(t),n.d(t,{TrackmatePageViewTracker:()=>l,default:()=>c});var i=n(20063),r=n(12115),o=n(99477),a=n(73387);function l(){let e=(0,i.usePathname)(),t=(0,i.useSearchParams)(),n=(0,r.useRef)(null);return(0,r.useEffect)(()=>{var i,r;let l="".concat(e,"?").concat(null!=(i=null==t?void 0:t.toString())?i:"");n.current!==l&&(n.current=l,(0,o.Ic)({eventType:"page_view",eventName:"page_view",properties:{path:e,query:null!=(r=null==t?void 0:t.toString())?r:"",content_group:(0,a.jW)(null!=e?e:"/")}}))},[e,t]),null}let c=l},99477:(e,t,n)=>{n.d(t,{Ic:()=>m}),n(95704);let i="pfc_tm_sid",r="pfc_tm_sid_last_seen",o="pfc_tm_dropped",a="/api/trackmate/events",l=[],c=!1;function u(){return"undefined"!=typeof document}function d(){try{if("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID()}catch(e){}return"".concat(Date.now().toString(16),"-").concat(Math.random().toString(16).slice(2))}function s(e){try{return window.localStorage.getItem(e)}catch(e){return null}}function f(e,t){try{window.localStorage.setItem(e,t)}catch(e){}}async function p(e){let t=0;for(;t<=3;){try{let t=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:e,keepalive:!0,credentials:"same-origin"});if(t.ok||t.status>=200&&t.status<300)return!0;if(t.status>=400&&t.status<500)break}catch(e){}if(t>=3)break;let n=1e3*Math.pow(2,t);await new Promise(e=>setTimeout(e,n)),t++}return!1}function m(e){var t,n,o;if(!u()||!(u()&&("boolean"==typeof window.__tmEnabled?window.__tmEnabled:(window.__tmEnabled=!1,!1))))return;u()&&!window.__tmEmitterInit&&(window.__tmEmitterInit=!0,setInterval(()=>{l.length>0&&h("interval")},5e3),document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&l.length>0&&h("unload")}),window.addEventListener("pagehide",()=>{l.length>0&&h("unload")}));let a=function(){let e=Date.now(),t=s(r),n=t?parseInt(t,10):0,o=s(i);return o&&n&&!(e-n>18e5)||f(i,o=d()),f(r,String(e)),o}(),c={...e,properties:e.properties?{...e.properties}:void 0,clientEventId:d(),sessionId:a,timestamp:new Date().toISOString(),pageUrl:null!=(t=e.pageUrl)?t:"undefined"!=typeof location?location.href:void 0,pageTitle:null!=(n=e.pageTitle)?n:"undefined"!=typeof document?document.title:void 0,referrer:null!=(o=e.referrer)?o:"undefined"!=typeof document&&document.referrer||void 0};l.push(c),l.length>=20&&h("batch_full")}function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"manual";if(!u()||0===l.length)return;let t=l.splice(0,20),n=JSON.stringify({events:t,reason:e});return"unload"===e?void function(e){if(!u())return;let t=!1;try{if("undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon){let n=new Blob([e],{type:"application/json"});t=navigator.sendBeacon(a,n)}}catch(e){t=!1}if(!t)try{fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:e,keepalive:!0,credentials:"same-origin"})}catch(e){}}(n):c?void l.unshift(...t):void(c=!0,(async()=>{try{await p(n)||function(e){var t;if(e<=0)return;let n=parseInt(null!=(t=s(o))?t:"0",10)||0;f(o,String(n+e))}(t.length)}finally{c=!1}})())}}}]);

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.