PageSourceSearch

https://mygon.com/_nuxt/_WU-s79V.js

js mygon.com collected 2026-10-03 22:29:22 UTC 2,047 bytes, 1 lines download raw bytes

1import{_n as e,g as t}from"./CSrvwgYr.js";import{m as n}from"./DMcuv8Lg.js";import{t as r}from"./CeFrgGdT.js";var i=`tracking-consent-status`,a=`mygon:tracking-consent`;function o(e){let t=Array.isArray(e)?e[0]:e;if(typeof t==`string`)return t.trim().toLowerCase()}function s(e){let t=o(e);if(t!==void 0)return t===`authorized`?`allowed`:`denied`}function c(){try{let e=sessionStorage.getItem(a);return e===`allowed`||e===`denied`?e:void 0}catch{return}}function l(e){try{sessionStorage.setItem(a,e)}catch{}}function u(){let a=n(),o=r(i,()=>s(a.query.att)??`allowed`),c=t(()=>o.value===`allowed`),l=t(()=>o.value===`denied`);return{status:e(o),isTrackingAllowed:c,isTrackingDenied:l,setTrackingConsent:e=>{o.value=e}}}var d={capture(){},identify(){},captureException(){}};function f(e){if(!e||typeof e!=`object`)return!1;let t=e;return[`capture`,`identify`,`captureException`,`opt_in_capturing`,`opt_out_capturing`].every(e=>typeof t[e]==`function`)}function p(e){let t=!1,n=e.allowed,r=!1,i=!1,a,o,s=[],c=t=>{i||(i=!0,e.onError?.(t))},l=e=>{try{e()}catch(e){c(e)}},u=()=>{s=[],o&&l(()=>o.opt_out_capturing()),l(e.clearStorage)},d=e=>{!n||r||!o||l(()=>{switch(e.method){case`capture`:o.capture(e.event,e.properties);break;case`identify`:o.identify(e.id);break;case`captureException`:o.captureException(e.error,e.properties)}})},p=()=>{o.opt_in_capturing({captureEventName:!1});let e=s;s=[];for(let t of e)d(t)},m=e=>{r=!0,s=[],o&&l(()=>o.opt_out_capturing()),c(e)},h=()=>a||(!e.enabled||!t||!n||r?Promise.resolve():(a=(async()=>{try{await e.load();let t=e.getClient();if(!f(t))throw Error(`PostHog did not initialize`);o=t,n?p():u()}catch(e){m(e)}})(),a)),g=t=>{!e.enabled||!n||r||(o?d(t):s.push(t))};return{api:{capture:(e,t)=>g({method:`capture`,event:e,properties:t}),identify:e=>g({method:`identify`,id:e}),captureException:(e,t)=>g({method:`captureException`,error:e,properties:t})},ready(){return t=!0,h()},setConsent(e){if(n!==e)if(n=e,!n)u();else if(!r&&o)try{p()}catch(e){m(e)}else h()}}}export{l as a,s as i,d as n,u as o,c as r,p as t};

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.