PageSourceSearch

https://www.untappedcities.com/public/member-attribution.min.js?v=AKG4hWena9j3yX3I

js untappedcities.com collected 2026-09-24 08:38:49 UTC 3,025 bytes, 1 lines download raw bytes

1"use strict";(()=>{var m=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var R=Object.prototype.hasOwnProperty;var M=(t,e,i)=>()=>{if(i)throw i[0];try{return t&&(e=t(t=0)),e}catch(r){throw i=[r],r}};var _=(t,e)=>{for(var i in e)m(t,i,{get:e[i],enumerable:!0})},A=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of S(e))!R.call(t,o)&&o!==i&&m(t,o,{get:()=>e[o],enumerable:!(r=y(e,o))||r.enumerable});return t};var D=t=>A(m({},"__esModule",{value:!0}),t);var h={};_(h,{getReferrer:()=>U,parseReferrerData:()=>g});function P(t){let e=t.get("ref"),i=t.get("source"),r=t.get("utm_source"),o=t.get("utm_medium"),u=t.get("utm_term"),s=t.get("utm_campaign"),l=t.get("utm_content");return{source:e||i||r||null,medium:o||null,url:window.document.referrer||null,utmSource:r||null,utmMedium:o||null,utmTerm:u||null,utmCampaign:s||null,utmContent:l||null}}function g(t){let e=new URL(t||window.location.href),i=e.searchParams;return e.hash&&e.hash.includes("#/portal")&&(i=new URL(e.href.replace("/#/portal","")).searchParams),P(i)}function T(t){let{source:e,medium:i,url:r}=t,o=e||i||r||null;if(o)try{let u=new URL(o).hostname,s=window.location.hostname;if(u===s)return null}catch{return o}return o}function U(t){let e=g(t);return T(e)}var d=M(()=>{"use strict"});var b=(d(),D(h)),C=b.parseReferrerData,E=b.getReferrer,p="ghost-history",I=1440*60*1e3,w=15;(async function(){try{let t=window.sessionStorage,e=t.getItem(p),i=new Date().getTime(),r=[];if(e)try{r=JSON.parse(e)}catch(n){console.warn("[Member Attribution] Error while parsing history",n)}let o=r.findIndex(n=>{if(!n.time||typeof n.time!="number")return!1;let a=i-n.time;return!(isNaN(n.time)||a>I)});o>0?r.splice(0,o):o===-1&&(r=[]);let u;try{u=C(window.location.href)}catch(n){console.error("[Member Attribution] Parsing referrer failed",n),u={source:null,medium:null,url:null}}let s={referrerSource:u.source,referrerMedium:u.medium,utmSource:u.utmSource,utmMedium:u.utmMedium,utmCampaign:u.utmCampaign,utmTerm:u.utmTerm,utmContent:u.utmContent},l;try{l=E(window.location.href),!l&&u.url&&(l=u.url)}catch(n){console.error("[Member Attribution] Getting final referrer failed",n),l=u.url}try{let n=new URL(window.location.href),a=n.searchParams;a.get("attribution_id")&&a.get("attribution_type")&&(r.push({time:i,id:a.get("attribution_id"),type:a.get("attribution_type"),...s,referrerUrl:l}),a.delete("attribution_id"),a.delete("attribution_type"),n.search="?"+a.toString(),window.history.replaceState({},"",`${n.pathname}${n.search}${n.hash}`))}catch(n){console.error("[Member Attribution] Parsing attribution from querystring failed",n)}let c=window.location.pathname;if(r.length===0||r[r.length-1].path!==c)r.push({path:c,time:i,...s,referrerUrl:l});else if(r.length>0){let n=r[r.length-1];n.time=i,Object.entries(s).forEach(([a,f])=>{f&&(n[a]=f)}),l&&(n.referrerUrl=l)}r.length>w&&(r=r.slice(-w)),t.setItem(p,JSON.stringify(r))}catch(t){console.error("[Member Attribution] Failed with error",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.