PageSourceSearch

https://1k4.ai/_next/static/chunks/807-0dfedf94c4d604c4.js

js 1k4.ai collected 2026-10-05 13:25:46 UTC 5,903 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[807],{70807:function(t,e,n){n.d(e,{yV:function(){return y},j:function(){return h}});var i=n(87727);function o(){let t=window.Cookiebot;if(!t||!t.consent)return{resolved:!1,statistics:!1,marketing:!1};let{consent:e}=t;if(e.method)return{resolved:!0,statistics:!!e.statistics,marketing:!!e.marketing};let n=t.regulations,i=!!n&&!n.gdprApplies&&!n.ccpaApplies&&!n.lgpdApplies;return t.loaded&&t.settingsLoaded&&i&&!t.hasResponse&&!t.declined?{resolved:!0,statistics:!0,marketing:!1}:{resolved:!1,statistics:!1,marketing:!1}}var r=n(105);let a="/api/analytics/events",l=[],c=0,u=0,s=!1,d=null,f=null;async function p(t){try{let e=await fetch(a,{method:"POST",credentials:"include",keepalive:!0,headers:{"Content-Type":"application/json"},body:JSON.stringify({events:t})}),n=null;if(429===e.status){let t=e.headers.get("Retry-After");if(t){let e=Number.parseInt(t,10);Number.isNaN(e)||(n=1e3*e)}}return{ok:e.ok,status:e.status,retryAfterMs:n}}catch(t){return{ok:!1,status:0,retryAfterMs:null}}}function m(t){return Math.min(6e4,1e3*2**t)}async function g(){if(0===l.length||Date.now()<u)return;let t=o();if(!t.resolved)return;if(!t.statistics&&!t.marketing){l=[],c=0;return}let e=l.slice();l=[];let n=await p(e);if(n.ok){c=0,u=0;return}if(429===n.status){var i;l=e.concat(l),u=Date.now()+(null!==(i=n.retryAfterMs)&&void 0!==i?i:m(0));return}if((c+=1)>=3){c=0,u=0;return}l=e.concat(l),u=Date.now()+m(c)}function h(t,e,n){D();let a=o();if(a.resolved&&!a.statistics&&!a.marketing)return;let c=function(t,e,n,o){var a,l,c,u,s;let d=(0,i.TJ)(),f="undefined"!=typeof document?document.referrer:"",p=window.location.pathname;return{event_id:"undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,t=>{let e=16*Math.random()|0;return("8"===t?3&e|8:e).toString(16)}),event_name:t,event_class:null!==(a=n.event_class)&&void 0!==a?a:"telemetry",visitor_id:(0,r.k2)(),session_id:(0,r.Zd)(),occurred_at:new Date().toISOString(),properties:e,consent_snapshot:o,attribution_snapshot:d.first_touch||d.last_touch?{first_touch:d.first_touch,last_touch:d.last_touch}:null,page_path:null!==(c=null!==(l=n.page_path)&&void 0!==l?l:p)&&void 0!==c?c:null,referrer:null!==(s=null!==(u=n.referrer)&&void 0!==u?u:f)&&void 0!==s?s:null}}(t,null!=e?e:{},null!=n?n:{},a);l.length>=200&&l.shift(),l.push(c)}async function v(){if(d){await d;return}d=g().finally(()=>{d=null}),await d}async function y(t){if(D(),!o().resolved){if(!f){let t,e;f={promise:new Promise((n,i)=>{t=n,e=i}),resolve:t,reject:e}}return f.promise}await v(),await w()}async function w(){let t=await fetch("/api/analytics/identify",{method:"POST",credentials:"include",keepalive:!0,headers:{"Content-Type":"application/json"},body:JSON.stringify({visitor_id:(0,r.k2)()})});if(!t.ok)throw Error("identify failed with status ".concat(t.status))}function _(){"undefined"!=typeof document&&"hidden"===document.visibilityState&&v()}function k(){!function(){if(0===l.length)return;let t=o();if(!t.resolved)return;if(!t.statistics&&!t.marketing){l=[];return}let e=l.slice();l=[];try{var n,i,r;let t=new Blob([JSON.stringify({events:e})],{type:"application/json"});null!==(r=null===(n=(i=navigator).sendBeacon)||void 0===n?void 0:n.call(i,a,t))&&void 0!==r&&r||(l=e.concat(l))}catch(t){l=e.concat(l)}}()}let S=!1;async function b(){if(S||!o().resolved)return;let t=f;S=!0;try{await v(),t&&(await w(),t.resolve())}catch(e){t&&t.reject(e)}finally{f===t&&(f=null),S=!1}}function I(){b()}function D(){s||(s=!0,document.addEventListener("visibilitychange",_),window.addEventListener("pagehide",k),window.addEventListener("CookiebotOnConsentReady",I),window.addEventListener("CookiebotOnDialogInit",I),window.addEventListener("CookiebotOnDialogDisplay",I),setInterval(()=>{(l.length>0||f)&&b()},5e3))}D()},87727:function(t,e,n){n.d(e,{TJ:function(){return u},oV:function(){return c}});let i=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","gclid","gbraid","wbraid","rdt_cid","fbclid","msclkid","ttclid"],o="1k4_attr_first",r="1k4_attr_last";function a(t){let e=localStorage.getItem(t);if(!e)return null;try{return JSON.parse(e)}catch(t){return null}}function l(t,e){localStorage.setItem(t,JSON.stringify(e))}function c(){let t=new URLSearchParams(window.location.search),e={},n=!1;for(let o of i){let i=t.get(o);i&&(e[o]=i,n=!0)}if(!n)return;let a={...e,landing_page:window.location.pathname,referrer:"undefined"!=typeof document&&document.referrer||void 0,captured_at:new Date().toISOString()};null===localStorage.getItem(o)&&l(o,a),l(r,a)}function u(){return{first_touch:a(o),last_touch:a(r)}}},105:function(t,e,n){n.d(e,{Zd:function(){return c},k2:function(){return l}});let i="1k4_vid",o="1k4_vid",r="1k4_sid";function a(){return"undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,t=>{let e=16*Math.random()|0;return("8"===t?3&e|8:e).toString(16)})}function l(){if("undefined"==typeof document)return"";let t=localStorage.getItem(o),e=function(t){if("undefined"==typeof document)return null;let e="".concat(t,"=");for(let t of document.cookie.split(";")){let n=t.trim();if(n.startsWith(e))return n.substring(e.length)}return null}(i),n=t||e;return n||(n=a()),t!==n&&localStorage.setItem(o,n),e!==n&&function(t,e){var n,i,o;if("undefined"==typeof document)return;let r=(null!==(o=null===(n=window.location)||void 0===n?void 0:n.hostname)&&void 0!==o?o:"").endsWith("1key4ai.com")?"; Domain=.1key4ai.com":"",a=(null===(i=window.location)||void 0===i?void 0:i.protocol)==="https:"?"; Secure":"";document.cookie="".concat(t,"=").concat(e,"; Path=/; Max-Age=").concat(63072e3,"; SameSite=Lax").concat(r).concat(a)}(i,n),n}function c(){let t=sessionStorage.getItem(r);return t||(t=a(),sessionStorage.setItem(r,t)),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.