PageSourceSearch

https://tripleten.com/usa-main/usa-landing-users.js

js tripleten.com collected 2026-09-28 08:35:40 UTC 11,000 bytes, 1 lines download raw bytes

1(function(){"use strict";let g=[],S=0;const R=4;let B=e=>{let t=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},lc:0,listen(o){return n.lc=t.push(o),()=>{for(let r=S+R;r<g.length;)g[r]===o?g.splice(r,R):r+=R;let i=t.indexOf(o);~i&&(t.splice(i,1),--n.lc||n.off())}},notify(o,i){let r=!g.length;for(let a of t)g.push(a,n.value,o,i);if(r){for(S=0;S<g.length;S+=R)g[S](g[S+1],g[S+2],g[S+3]);g.length=0}},off(){},set(o){let i=n.value;i!==o&&(n.value=o,n.notify(i))},subscribe(o){let i=n.listen(o);return o(n.value),i},value:e};return n};const re=5,O=6,P=10;let se=(e,t,n,o)=>(e.events=e.events||{},e.events[n+P]||(e.events[n+P]=o(i=>{e.events[n].reduceRight((r,a)=>(a(r),r),{shared:{},...i})})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let i=e.events[n],r=i.indexOf(t);i.splice(r,1),i.length||(delete e.events[n],e.events[n+P](),delete e.events[n+P])}),ae=1e3,ce=(e,t)=>se(e,o=>{let i=t(o);i&&e.events[O].push(i)},re,o=>{let i=e.listen;e.listen=(...a)=>(!e.lc&&!e.active&&(e.active=!0,o()),i(...a));let r=e.off;return e.events[O]=[],e.off=()=>{r(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let a of e.events[O])a();e.events[O]=[]}},ae)},()=>{e.listen=i,e.off=r}}),le=(e={})=>{let t=B(e);return t.setKey=function(n,o){let i=t.value;typeof o>"u"&&n in t.value?(t.value={...t.value},delete t.value[n],t.notify(i,n)):t.value[n]!==o&&(t.value={...t.value,[n]:o},t.notify(i,n))},t},Q=e=>e,L={},_={addEventListener(){},removeEventListener(){}};function ue(){try{return typeof localStorage<"u"}catch{return!1}}ue()&&(L=localStorage),typeof window<"u"&&(_={addEventListener(e,t,n){window.addEventListener("storage",t),window.addEventListener("pageshow",n)},removeEventListener(e,t,n){window.removeEventListener("storage",t),window.removeEventListener("pageshow",n)}});function de(e,t={},n={}){let o=n.encode||Q,i=n.decode||Q,r=le(),a=r.setKey,m=(c,u)=>{typeof u>"u"?(n.listen!==!1&&_.perKey&&_.removeEventListener(e+c,h,w),delete L[e+c]):(n.listen!==!1&&_.perKey&&!(c in r.value)&&_.addEventListener(e+c,h,w),L[e+c]=o(u))};r.setKey=(c,u)=>{m(c,u),a(c,u)};let v=r.set;r.set=function(c){for(let u in c)m(u,c[u]);for(let u in r.value)u in c||m(u,void 0);v(c)};function h(c){c.key?c.key.startsWith(e)&&(c.newValue===null?a(c.key.slice(e.length),void 0):a(c.key.slice(e.length),i(c.newValue))):v({})}function w(){let c={...t};for(let u in L)u.startsWith(e)&&(c[u.slice(e.length)]=i(L[u]));for(let u in c)r.setKey(u,c[u])}return ce(r,()=>{if(w(),n.listen!==!1)return _.addEventListener(e,h,w),()=>{_.removeEventListener(e,h,w);for(let c in r.value)_.removeEventListener(e+c,h,w)}}),r}const fe="0S9V7R9M47",me=()=>{const e=new URLSearchParams(window.location.search.toLowerCase()),t=document.cookie.match(/(?:^|;)\s*_ttp=([^;]*)/),n=t?.length?decodeURIComponent(t[1]):null,o=e.get("ttclid"),i=document.cookie.match(/(?:^|;)\s*ttclid=([^;]*)/),r=i?.length?decodeURIComponent(i[1]):null;return{ttp:n,ttclid:o??r}};function ge(){const e=document.cookie.match(/(?:^|;)\s*_ga=([^;]*)/)||[],t=e?decodeURIComponent(e[1]).match(/\d+\.\d+$/):null;if(t)return t[0]}function pe(){const e=document.cookie.match(/(?:^|;)\s*_ga=([^;]*)/)||[],t=e?decodeURIComponent(e[1]).match(/\d+\.\d+$/):null;if(t)return t[0]}function he(){const e=new RegExp(`_ga_${fe}=GS\\d\\.\\d\\.(.+?)(?:;|$)`),n=document.cookie.match(e)?.[1].split(".");return n&&n.shift()||"N/A"}const ve=()=>window.dataLayer?.push?pe()!==void 0:!1,V=30*24*60*60*1e3,we=2*V,ye=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","utm_keyword","utm_placement","utm_platform","utm_device","utm_matchtype","utm_network","utm_campaignid","utm_adgroupid","utm_adid","utm_targetid"],Se=["gclid","fbclid","msclkid","twclid","sccid","rdt_cid","qclid"],l=de("analytics.",{},{listen:!0,encode:JSON.stringify,decode:JSON.parse}),I=({store:e,key:t,value:n,expirationPeriod:o=we})=>{const i=e.get(),r=Date.now(),a=i[t]?.updatedAt||0;r-a>o&&e.set({...i,[t]:{updatedAt:r,value:n}})},X=()=>{I({store:l,key:"firstEntrance",value:new Date().toISOString()});const e=new URLSearchParams(window.location.search.toLowerCase()),t={};e.forEach((a,m)=>{ye.includes(m)&&(t[m]=a)});const{referrer:n}=document,o=l.get();!o.firstUtm?.value.utm_source&&!o.firstUtm?.value.utm_medium&&window.location.href.startsWith("https://tripleten.com/blog")&&l.setKey("firstUtm",{value:{utm_source:"blog_organic",utm_campaign:"blog_organic",utm_content:window.location.pathname},updatedAt:Date.now()}),Object.keys(t).length>0&&(I({store:l,key:"firstUtm",value:t}),I({store:l,key:"firstLanding",value:window.location.href}),n.startsWith("https://tripleten.com")||I({store:l,key:"firstReferrer",value:n}));const i=["utm_source","utm_campaign","utm_medium"];if(i.every(a=>e.get(a)===l.get().lastUtm?.value[a]))return;const r=()=>{Se.forEach(a=>{const m=e.get(a);m&&l.setKey(a,m)})};if(i.some(a=>!!e.get(a))){l.setKey("lastUtm",{value:t,updatedAt:Date.now()}),n.startsWith("https://tripleten.com")||l.setKey("referrer",n),r();return}n.startsWith("https://tripleten.com")||(l.setKey("lastUtm",{value:t,updatedAt:Date.now()}),l.setKey("referrer",n),r())},_e=()=>{const e=me();e.ttp&&I({store:l,key:"ttp",value:e.ttp}),e.ttclid&&I({store:l,key:"ttclid",value:e.ttclid})},Ee=()=>{const e=l.get().gaSessionId?.value,t=he();e!==t&&I({store:l,key:"gaSessionId",value:t,expirationPeriod:0});const n=ge();n&&l.setKey("gaid",n)},Ie=(e,t,n)=>{const o=localStorage.getItem(e),i=t?localStorage.getItem(t):null;if(!o){console.warn(`Source key "${e}" not found in localStorage.`);return}let r;try{r=JSON.parse(o)}catch(v){if(!t)r=o;else{console.warn(`Failed to parse source value for key "${e}":`,v);return}}const a=i?parseInt(i,10):null;if(a&&isNaN(a)){console.warn(`Invalid timestamp for key "${t}": ${i}`);return}const m=l.get();
1if(t){const v=m[n],h=Date.now();if(!(a?h-a>2*V:!1)&&!v){const c=a||h;l.setKey(n,{value:r,updatedAt:c}),console.info(`Set key "${n}" in analyticsStore with timestamp ${new Date(c)}.`)}}else m[n]||(l.setKey(n,r),console.info(`Set key "${n}" in analyticsStore without timestamp.`))},Y=()=>{if([["last-utm","last-utm-time","lastUtm"],["first-utm","first-utm-time","firstUtm"],["referrer",null,"referrer"],["ttp","last-ttp-time","ttp"],["ttclid","last-ttclid-time","ttclid"],["ga_session_id","ga_session_id_timestamp","gaSessionId"],["first-landing",null,"firstLanding"]].forEach(([t,n,o])=>{Ie(t,n,o)}),!window.location.href.startsWith("https://tripleten.blog")){if(window.location.href.startsWith("https://tripleten.com/blog")){X();return}X(),_e(),setTimeout(function t(){ve()?Ee():setTimeout(t,1e3)},1e3)}},Te="us-lead-form",J=393545,ke=B(null),be=async()=>{try{const t=await(await fetch("/api/landing/users/me/",{headers:{"x-client-id":Te}})).json();return ke.set(t),t}catch(e){return console.error(e),{}}};var D=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Le(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var x,H;function Me(){if(H)return x;H=1;var e="Expected a function",t=NaN,n="[object Symbol]",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,a=/^0o[0-7]+$/i,m=parseInt,v=typeof D=="object"&&D&&D.Object===Object&&D,h=typeof self=="object"&&self&&self.Object===Object&&self,w=v||h||Function("return this")(),c=Object.prototype,u=c.toString,Pe=Math.max,De=Math.min,F=function(){return w.Date.now()};function Ne(s,f,y){var k,M,N,b,p,T,U=0,te=!1,A=!1,q=!0;if(typeof s!="function")throw new TypeError(e);f=ee(f)||0,G(y)&&(te=!!y.leading,A="maxWait"in y,N=A?Pe(ee(y.maxWait)||0,f):N,q="trailing"in y?!!y.trailing:q);function $(d){var E=k,C=M;return k=M=void 0,U=d,b=s.apply(C,E),b}function Fe(d){return U=d,p=setTimeout(W,f),te?$(d):b}function Ge(d){var E=d-T,C=d-U,oe=f-E;return A?De(oe,N-C):oe}function ne(d){var E=d-T,C=d-U;return T===void 0||E>=f||E<0||A&&C>=N}function W(){var d=F();if(ne(d))return ie(d);p=setTimeout(W,Ge(d))}function ie(d){return p=void 0,q&&k?$(d):(k=M=void 0,b)}function qe(){p!==void 0&&clearTimeout(p),U=0,k=T=M=p=void 0}function $e(){return p===void 0?b:ie(F())}function j(){var d=F(),E=ne(d);if(k=arguments,M=this,T=d,E){if(p===void 0)return Fe(T);if(A)return p=setTimeout(W,f),$(T)}return p===void 0&&(p=setTimeout(W,f)),b}return j.cancel=qe,j.flush=$e,j}function G(s){var f=typeof s;return!!s&&(f=="object"||f=="function")}function We(s){return!!s&&typeof s=="object"}function xe(s){return typeof s=="symbol"||We(s)&&u.call(s)==n}function ee(s){if(typeof s=="number")return s;if(xe(s))return t;if(G(s)){var f=typeof s.valueOf=="function"?s.valueOf():s;s=G(f)?f+"":f}if(typeof s!="string")return s===0?s:+s;s=s.replace(o,"");var y=r.test(s);return y||a.test(s)?m(s.slice(2),y?2:8):i.test(s)?t:+s}return x=Ne,x}var Ue=Me();const Ae=Le(Ue)(e=>{Ce()<-100&&e()},17),Ce=(()=>{let e,t,n,o;function i(){e=null,o=0}return i(),()=>(t=window.scrollY,e!==null&&(o=t-e),e=t,clearTimeout(n),n=setTimeout(i,50),o)})();window.PRACTICUM_PARAMS={profession:"",...window.PRACTICUM_PARAMS};let z=!1;const Re={"/se/":"Software Engineering","/software-engineer/":"Software Engineering","/bi/":"BI Analysis","/ds/":"Data Science","/data-science/":"Data Science","/qa/":"QA Engineering","/qa-engineer/":"QA Engineering","/test-dev-usa/se-gsc/":"Test Testing","/cs/":"Cyber Security Analyst","/cybersecurity/":"Cyber Security Analyst","/uxui/":"UX/UI Designer","/uxui-design/":"UX/UI Designer","/data-analytics/":"Data Analytics"},K=1e3;setTimeout(async function e(){const t=window.gsc,n=window.PRACTICUM_PARAMS,o=window.location.pathname;if(!t){setTimeout(e,K);return}if(t("params",{landingProfession:Re[o]||"Software Engineering"}),"ontouchstart"in window&&n.gscMobileWidget!==null){const i=()=>{z||(t("params",{gscMobileWidgetTriggered:"yes"}),t("show",n.gscMobileWidget??J),z=!0,window.dataLayer?.push({event:"gscMobileWidgetTriggered",element_id:n.gscMobileWidget??J}))};window.addEventListener("scroll",()=>{Ae(i)})}},K);const Z=e=>{document.querySelectorAll(".t-btn").forEach(t=>{t.textContent?.trim().toLowerCase()==="log in"&&t.classList.add("login-btn")}),document.querySelectorAll(".login-btn").forEach(t=>{const o=t.tagName.toLowerCase()==="a"?t:t.querySelector("a");if(o)if(e)t.classList.add("logged"),o.setAttribute("href",`/profile/?from=${encodeURIComponent("/success/")}`);else{const i=o.getAttribute("href")||"",r=`/profile/?from=${encodeURIComponent("/success/")}`;o.setAttribute("href",`${i}${i.includes("?")?"&":"?"}retpath=${encodeURIComponent(r)}`)}})},Oe=()=>{const e=new Date;e.setFullYear(e.getFullYear()+1);const t=location.host.split(".").slice(-2).join(".");document.cookie=`auto_login_return_uri=/sso/auth/?retpath=${encodeURIComponent("/home/?from=/thanks/success")}; expires=${e}; path=/; domain=.${t}`};(async()=>
1{if(window.location.href.startsWith("https://tripleten.blog"))return;if(window.location.href.startsWith("https://tripleten.com/blog")){Y();return}Y(),Oe();const e=await be(),{firstName:t}=e;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Z(t)):Z(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.