PageSourceSearch

https://crodl.com/_next/static/chunks/3c3ct76o4a1th.js

js crodl.com collected 2026-10-02 01:26:43 UTC 17,284 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,851437,e=>{"use strict";var t=e.i(843476),n=e.i(271645),i=e.i(618566),a=e.i(170319),r=e.i(867097),o=e.i(153213);let s=["/leaderboard","/indicators","/u/","/blog","/markets","/pine-library","/trend-pro","/quantum-pro","/range-fade"];function l({children:e}){let n=(0,i.usePathname)(),{collapsed:c}=(0,o.useSidebar)(),u=s.some(e=>n===e||(e.endsWith("/")?n.startsWith(e):n.startsWith(e+"/"))),d=u?`${c?"ml-0 md:ml-[80px]":"ml-0 md:ml-[244px]"} px-4 pt-6`:"";return(0,t.jsxs)("main",{className:"relative flex flex-col min-h-screen overflow-x-hidden text-foreground bg-background",children:[u&&(0,t.jsx)(r.default,{}),(0,t.jsx)("div",{className:`relative z-10 flex-1 overflow-x-hidden transition-[margin] duration-[240ms] ease-[cubic-bezier(.4,0,.2,1)] ${d}`,children:e}),(0,t.jsx)(a.ToastContainer,{position:"top-right",autoClose:3e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,theme:"dark"})]})}function c({children:e}){return(0,t.jsx)(o.SidebarProvider,{children:(0,t.jsx)(l,{children:e})})}var u=e.i(689554),d=e.i(944670),f=e.i(254178),p=e.i(51209),h=e.i(255670),m=e.i(270889),g=e.i(217255),w=e.i(440116);function y(e,t,n){if("u"<typeof document)return;let i=new Date;i.setDate(i.getDate()+n);let a="https:"===window.location.protocol?"; Secure":"";document.cookie=`${e}=${encodeURIComponent(t)}; path=/; expires=${i.toUTCString()}; SameSite=Lax${a}`}function _(e){if("u"<typeof document)return;let t="https:"===window.location.protocol?"; Secure":"";document.cookie=`${e}=; Max-Age=0; path=/; SameSite=Lax${t}`}function E(e){if("u"<typeof document)return null;let t=document.cookie.split(";").map(e=>e.trim()).find(t=>t.startsWith(`${e}=`));if(!t)return null;try{return decodeURIComponent(t.split("=").slice(1).join("="))||null}catch{return null}}function v(){let e=(0,i.useSearchParams)(),{status:t}=(0,g.useSession)(),{loading:a,preferences:r}=(0,d.useCookieConsent)(),o=(0,w.normalizeReferralCode)(e?.get("ref")),s=e?.get("rl"),l=(0,w.normalizeReferralLinkId)(s),c=e?.get("preview")==="1",u=e?.get("resolve")==="1",f=(0,n.useRef)(0);return(0,n.useEffect)(()=>{let e=++f.current;if(a)return;if(r?.marketing!==!0){_(w.REFERRAL_COOKIE_NAME),_(w.REFERRAL_LINK_COOKIE_NAME);return}if("unauthenticated"!==t||!o||c||(y(w.REFERRAL_COOKIE_NAME,o,w.REFERRAL_ATTRIBUTION_DAYS),l?y(w.REFERRAL_LINK_COOKIE_NAME,l,w.REFERRAL_ATTRIBUTION_DAYS):_(w.REFERRAL_LINK_COOKIE_NAME),!l&&!u))return;let n=new AbortController;return fetch("/api/proxy/referrals/resolve",{method:"POST",credentials:"same-origin",keepalive:!0,signal:n.signal,headers:{"Content-Type":"application/json","x-cw-proxy":"1","x-cw-referral-track-only":"1"},body:JSON.stringify({code:o,...l?{referral_link_id:l}:{}})}).then(async t=>{if(!t.ok)throw Object.assign(Error("Referral resolution failed"),{status:t.status});let i=await t.json(),a=(0,w.normalizeReferralCode)(i.code),r=(0,w.normalizeReferralLinkId)(i.referral_link_id);if(n.signal.aborted||f.current!==e||(0,w.normalizeReferralCode)(E(w.REFERRAL_COOKIE_NAME))!==o)return;let s=(0,w.normalizeReferralLinkId)(E(w.REFERRAL_LINK_COOKIE_NAME));if(!l||s===l){if(a!==o||l&&r!==l)return void _(w.REFERRAL_LINK_COOKIE_NAME);y(w.REFERRAL_COOKIE_NAME,a,w.REFERRAL_ATTRIBUTION_DAYS),r&&y(w.REFERRAL_LINK_COOKIE_NAME,r,w.REFERRAL_ATTRIBUTION_DAYS)}}).catch(t=>{let i=t&&"object"==typeof t?t.status:void 0;n.signal.aborted||f.current!==e||(0,w.normalizeReferralCode)(E(w.REFERRAL_COOKIE_NAME))!==o||void 0===i||400!==i&&404!==i||_(w.REFERRAL_LINK_COOKIE_NAME)}),()=>{f.current===e&&(f.current+=1),n.abort()}},[a,r?.marketing,c,s,o,l,u,t]),null}var k=e.i(257633);e.s(["default",0,function({children:e,nonce:i}){return(0,t.jsx)(k.NonceProvider,{nonce:i,children:(0,t.jsx)(u.ThemeProvider,{attribute:"class",defaultTheme:"dark",enableSystem:!0,disableTransitionOnChange:!0,nonce:i,children:(0,t.jsx)("div",{className:"min-h-screen bg-background text-foreground",children:(0,t.jsxs)(d.CookieConsentProvider,{children:[(0,t.jsx)(n.Suspense,{fallback:null,children:(0,t.jsx)(v,{})}),(0,t.jsx)(f.default,{}),(0,t.jsx)(p.default,{}),(0,t.jsx)(h.default,{}),(0,t.jsx)(c,{children:e}),(0,t.jsx)(m.default,{})]})})})})}],851437)},422988,e=>{"use strict";var t=e.i(271645),n=e.i(618566),i=e.i(491967);let a="crodl:posthog-ready",r="crodl:posthog-opted-in",o=!1,s=!1,l=null,c=!1,u=0,d=new Set;function f(){return c=d.size>0}function p(e){return e&&"/"!==e?e.endsWith("/")?e.slice(0,-1):e:"/"}function h(e,t=""){let[n,i=""]=e.split("?",2),a=p(n),r=t||i;if("/resetting-password"===a||a.startsWith("/resetting-password/")||"/confirm-email"===a)return!0;
1if("/settings"===a){let e=new URLSearchParams(r.startsWith("?")?r.slice(1):r),t=e.get("tab")?.toLowerCase();return!t||"apikeys"===t||"api-keys"===t||"mcp"===t||"general"===t||"security"===t}return!!(a.startsWith("/settings/")||"/withdraw"===a||a.startsWith("/withdraw/")||"/security"===a||a.startsWith("/security/")||"/account/2fa"===a||a.startsWith("/account/2fa/")||/\/(?:api-keys|[^/]+-api-keys)(?:\/|$)/.test(a)||"/trading-terminal"===a||a.startsWith("/trading-terminal/"))}function m(e){let[t]=e.split("?",1),n=p(t);return!h(n)&&"/main"!==n&&!n.startsWith("/main/")}function g(e=(0,i.getLoadedPostHogClient)()){if(e)try{e.stopSessionRecording?.()}catch{}}function w(){let e=(0,i.getLoadedPostHogClient)();if(e){g(e);try{e.opt_out_capturing?.()}catch{}}}function y(e){return{maskAllInputs:!0,maskTextSelector:"[data-ph-mask], .ph-mask",blockSelector:"[data-ph-no-record], .ph-no-record",recordCrossOriginIframes:!1,captureCanvas:{recordCanvas:e,canvasFps:4,canvasQuality:"0.4"}}}function _(e,t){let n=m(t);try{e.set_config?.({disable_session_recording:!n,session_recording:y(n)})}catch{}if(n)try{e.startSessionRecording?.()}catch{}else g(e)}function E(e,t){let n=(0,i.getLoadedPostHogClient)();if(n&&o){if(!c||h(e,t))return void w();let a=(0,i.getLoadedPostHogClient)();if(a){try{a.opt_in_capturing?.()}catch{}try{window.dispatchEvent(new Event(r))}catch{}}_(n,e)}}e.s(["POSTHOG_OPTED_IN_EVENT",0,r,"default",0,function({apiKey:e,apiHost:r,enabled:p}){let v=(0,n.usePathname)(),k=(0,n.useSearchParams)(),x=k?.toString()??"",C=h(v,x),[b,R]=(0,t.useState)(o);return(0,t.useEffect)(()=>{var t;let n,v,k,x,b;if(!p||!e||C){!f()&&o&&w(),R(!1);return}let S=++u;d.add(S),f();let A=()=>{E(window.location.pathname,window.location.search),R(!0)};window.addEventListener(a,A);let L=(t=()=>{!function e(t,n,r){return o||s||!t||!d.has(r)?Promise.resolve():l?l.then(()=>{if(!o&&!s&&d.has(r))return e(t,n,r)}):l=(async()=>{let e=await (0,i.loadPostHogClient)();if(!e||!c||!d.has(r))return;let l=m(window.location.pathname);s=!0;try{e.init(t,{api_host:n,person_profiles:"identified_only",capture_pageview:!1,capture_pageleave:!0,opt_out_capturing_by_default:!0,disable_session_recording:!l,session_recording:y(l),autocapture:{css_selector_allowlist:[],dom_event_allowlist:["click","submit","change"],element_allowlist:["a","button","form","input","select","textarea"]},loaded:e=>{o=!0;let t=h(window.location.pathname,window.location.search);if(!c||t){g(e);try{e.opt_out_capturing?.()}catch{}}else{try{e.opt_in_capturing?.()}catch{}_(e,window.location.pathname)}window.dispatchEvent(new Event(a))}})}catch{s=!1}})().finally(()=>{l=null})}(e,r??"https://us.i.posthog.com",S)},n=window,v=!1,k=null,x=null,b=()=>{v||t()},k=window.setTimeout(()=>{k=null,v||(x="function"==typeof n.requestIdleCallback?n.requestIdleCallback(b,{timeout:3e3}):window.setTimeout(b,1e3))},5e3),()=>{v=!0,null!==k&&window.clearTimeout(k),null!=x&&("function"==typeof n.cancelIdleCallback&&"function"==typeof n.requestIdleCallback?n.cancelIdleCallback(x):window.clearTimeout(x))});return o&&A(),()=>{L(),window.removeEventListener(a,A),d.delete(S),f()||w()}},[e,r,p,C]),(0,t.useEffect)(()=>{p&&b&&v&&(E(v,x),h(v,x)||(0,i.getLoadedPostHogClient)()?.capture?.("$pageview",{$current_url:window.location.href,$pathname:v}))},[p,v,b,x]),null}])},254178,51209,e=>{"use strict";var t=e.i(271645),n=e.i(618566),i=e.i(144674),a=e.i(944670);e.s(["default",0,function(){let{preferences:e}=(0,a.useCookieConsent)(),r=(0,n.usePathname)(),o=!!(e?.analytics&&!(0,i.isSensitiveGoogleAnalyticsRoute)(r));return(0,t.useEffect)(()=>{let e=()=>(window["ga-disable-G-S1ZKYVGK75"]=!o,!!window.gtag&&(window.gtag("consent","update",{analytics_storage:o?"granted":"denied",ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied"}),!0));if(e())return;let t=()=>{e()};window.addEventListener(i.GA_READY_EVENT,t);let n=window.setTimeout(e,100);return()=>{window.removeEventListener(i.GA_READY_EVENT,t),window.clearTimeout(n)}},[o]),null}],254178);var r=e.i(843476),o=e.i(422988);function s(){let{preferences:e}=(0,a.useCookieConsent)();return(0,r.jsx)(o.default,{apiKey:"phc_xVGX3xwCpyqYyfSpJcgDXiers99KCiZBQHpzkHof2XAV",apiHost:"https://us.i.posthog.com",enabled:!!e?.analytics})}e.s(["default",0,function(){return(0,r.jsx)(t.Suspense,{fallback:null,children:(0,r.jsx)(s,{})})}],51209)}
1,255670,270889,e=>{"use strict";var t=e.i(843476),n=e.i(271645),i=e.i(618566),a=e.i(944670),r=e.i(257633),o=e.i(470675);function s(){let{preferences:e}=(0,a.useCookieConsent)(),t=(0,i.usePathname)(),s=(0,i.useSearchParams)(),l=(0,r.useNonce)(),c=(0,n.useSyncExternalStore)(o.subscribeWhopCheckout,o.getWhopCheckoutOpen,o.getWhopCheckoutServerSnapshot),u=s.toString(),d="/settings"===t&&"membership"===s.get("tab"),f=!!(e?.marketing&&e.analytics&&("/"===t||d||c));return(0,n.useEffect)(()=>{if(f&&(0,o.isWhopPixelUrlSafe)(new URL(window.location.href)))return(0,o.startWhopPage)(l)},[f,t,u,l]),null}e.s(["default",0,function(){return(0,t.jsx)(n.Suspense,{fallback:null,children:(0,t.jsx)(s,{})})}],255670);var l=e.i(522016),c=e.i(167881);e.s(["default",0,function(){let{bannerVisible:e,acceptAll:r,acceptEssentialOnly:o,loading:s}=(0,a.useCookieConsent)(),u=(0,i.usePathname)(),[d,f]=(0,n.useState)(null),p=u?.startsWith("/settings")||u?.startsWith("/main"),h=e&&!p;if((0,n.useEffect)(()=>{if(!("u"<typeof document)&&h)return document.body.classList.add("has-cookie-banner"),()=>{document.body.classList.remove("has-cookie-banner")}},[h]),!h)return null;let m=async e=>{try{f(e),"all"===e?await r():await o()}finally{f(null)}};return(0,t.jsx)("div",{className:"pointer-events-none fixed inset-x-0 bottom-4 z-50 flex justify-center px-4 sm:px-6",children:(0,t.jsx)("section",{className:"pointer-events-auto max-w-3xl rounded-lg border border-[var(--line-primary)] bg-surface-3/95 px-5 py-4 text-sm text-foreground shadow-2xl",children:(0,t.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("p",{className:"text-base font-semibold",children:"Cookies & privacy"}),(0,t.jsxs)("p",{className:"text-text-secondary text-sm",children:["We use essential cookies to keep you signed in and optional analytics and marketing cookies, including referral-link measurement, only when you allow them. Review details in our"," ",(0,t.jsx)(l.default,{href:"/privacy",prefetch:!1,className:"text-sky-300 underline-offset-2 hover:underline",children:"privacy policy"})," ","or manage them from"," ",(0,t.jsx)(l.default,{href:"/settings?tab=general",prefetch:!1,className:"text-sky-300 underline-offset-2 hover:underline",children:"Settings"}),"."]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center",children:[(0,t.jsx)(c.Button,{variant:"outline",className:"border-[var(--line-secondary)] bg-surface-2 text-foreground hover:bg-surface-4",disabled:s||null!==d,onClick:()=>m("essential"),children:"essential"===d?"Saving…":"Essential only"}),(0,t.jsx)(c.Button,{className:"bg-emerald-500 text-emerald-950 hover:bg-emerald-400",disabled:s||null!==d,onClick:()=>m("all"),children:"all"===d?"Saving…":"Accept all"})]})]})})})}],270889)},944670,e=>{"use strict";e.i(247167);var t=e.i(843476),n=e.i(271645),i=e.i(217255),a=e.i(170319),r=e.i(613555),o=e.i(440116);let s="cw_cookie_consent",l="2024-08-01",c=(0,n.createContext)(null);function u(e){if("u"<typeof document)return;let t="https:"===window.location.protocol?"; Secure":"";document.cookie=`${e}=; Path=/; Max-Age=0; SameSite=Lax${t}`}async function d(e={}){if(!(e.preserveExplicitHandoff&&(0,o.hasActiveExplicitReferralHandoff)())&&((0,o.clearExplicitReferralHandoff)(),u(o.REFERRAL_COOKIE_NAME),u(o.REFERRAL_LINK_COOKIE_NAME),"u">typeof fetch))try{await fetch("/api/referral-attribution",{method:"DELETE",credentials:"same-origin",keepalive:!0,headers:{"x-cw-proxy":"1"}})}catch{}}e.s(["CookieConsentProvider",0,function({children:e}){let o=function(){let{status:e}=(0,i.useSession)(),t="authenticated"===e,[o,c]=(0,n.useState)(!0),[u,f]=(0,n.useState)(!1),[p,h]=(0,n.useState)(null),m=(0,n.useCallback)(e=>{if("u"<typeof document)return;let t=encodeURIComponent(JSON.stringify(e)),n="https:"===window.location.protocol?"; Secure":"";document.cookie=`${s}=${t}; path=/; max-age=31536000; SameSite=Lax${n}`},[]),g=(0,n.useCallback)(()=>{"u">typeof document&&(document.cookie=`${s}=; path=/; Max-Age=0; SameSite=Lax`)},[]),w=(0,n.useCallback)(()=>
1{if("u"<typeof document)return null;let e=document.cookie.split("; ").find(e=>e.startsWith(`${s}=`));if(!e)return null;try{let t=JSON.parse(decodeURIComponent(e.split("=")[1]??""));if(t&&t.consent_version===l)return{consent_version:t.consent_version,essential_only:!!t.essential_only,analytics:!!t.analytics,marketing:!!t.marketing}}catch{}return null},[]),y=(0,n.useCallback)(async()=>{let e=w();if(!t){e?.marketing!==!0&&d({preserveExplicitHandoff:!0}),h(e),f(!e),c(!1);return}if(e){!0!==e.marketing&&d(),h(e),f(!1),c(!1);return}c(!0);try{var n;let e=(n=(await r.default.get("/privacy/cookies/consent")).data)&&"object"==typeof n&&n.consent_version?{consent_version:n.consent_version,essential_only:!!n.essential_only,analytics:!!n.analytics,marketing:!!n.marketing}:null;e&&e.consent_version===l?(!0!==e.marketing&&d(),h(e),m(e),f(!1)):(d(),h(null),f(!0),g())}catch{d(),h(null),f(!0),g()}finally{c(!1)}},[g,t,m,w]);(0,n.useEffect)(()=>{let e=w();if(e){!0!==e.marketing&&d({preserveExplicitHandoff:!t}),h(e),f(!1),c(!1);return}if(!t){d({preserveExplicitHandoff:!0}),h(null),f(!0),c(!1);return}y()},[t,w,y]);let _=(0,n.useCallback)(async e=>{if(!0!==e.marketing&&await d(),h(e),m(e),f(!1),t){c(!0);try{await r.default.post("/privacy/cookies/consent",e)}catch(e){a.toast.error("Unable to update cookie preferences. Please try again.")}finally{c(!1)}}},[t,m]),E=(0,n.useCallback)(async()=>{await _({consent_version:l,essential_only:!1,analytics:!0,marketing:!0})},[_]),v=(0,n.useCallback)(async()=>{await _({consent_version:l,essential_only:!0,analytics:!1,marketing:!1})},[_]),k=(0,n.useCallback)(async()=>{if(await d(),g(),h(null),f(!0),t){c(!0);try{await r.default.delete("/privacy/cookies/consent")}catch(e){a.toast.error("Unable to withdraw consent. Please try again.")}finally{c(!1)}}},[g,t]);return(0,n.useMemo)(()=>({loading:o,bannerVisible:u,preferences:p,acceptAll:E,acceptEssentialOnly:v,withdrawConsent:k,refreshConsent:y}),[E,v,u,o,p,y,k])}();return(0,t.jsx)(c.Provider,{value:o,children:e})},"useCookieConsent",0,function(){let e=(0,n.useContext)(c);if(!e)throw Error("useCookieConsent must be used within CookieConsentProvider");return e}])},257633,e=>{"use strict";var t=e.i(843476),n=e.i(271645);let i=(0,n.createContext)(void 0);e.s(["NonceProvider",0,function({nonce:e,children:n}){return(0,t.jsx)(i.Provider,{value:e,children:n})},"useNonce",0,function(){return(0,n.useContext)(i)}])},470675,e=>{"use strict";let t="https://t.whop.tw",n="crodl-whop-pixel",i={autoPage:!1,forms:!1,links:!1,iframes:!1,urlIdentity:!1,sc:!1},a=0,r=new Set;function o(e){let t=new Set(["utm_source","utm_medium","utm_campaign","utm_term","utm_content","fbclid","gclid","ttclid","li_fat_id","msclkid","twclid","rdt_cid","sccid","wbraid","gbraid","waid","wacid","wasid"]);return(!e.hash||!!("/"===e.pathname&&["#pricing","#features","#automation"].includes(e.hash)))&&Array.from(e.searchParams).every(([n,i])=>t.has(n)||"/settings"===e.pathname&&"tab"===n&&"membership"===i)}e.s(["getWhopCheckoutOpen",0,()=>a>0,"getWhopCheckoutServerSnapshot",0,()=>!1,"isWhopPixelUrlSafe",0,o,"navigateToWhopCheckout",0,function(e){let t=document.createElement("a");t.href=e,t.hidden=!0,document.body.appendChild(t),t.click(),t.remove()},"registerWhopCheckout",0,function(){return a+=1,r.forEach(e=>e()),()=>{a-=1,r.forEach(e=>e())}},"startWhopPage",0,function(e){let a=window,r=a.whop,s=document.getElementById(n);if(!r){let e={q:[],t:Date.now(),s:[],o:t,c:{...i},track:t=>{e.q.push([Date.now(),t])},setScope:(...t)=>{e.s=t,e.q.push([Date.now(),"setScope",...t])}};r=a.whop=e}let l=!0,c=()=>{if(l&&r?.started&&o(new URL(window.location.href)))try{r.config?.({...i,links:!0}),r.setScope("biz_qaJz8kIGgNvx1G"),r.track("page")}catch{}finally{try{r.setScope()}catch{}}};return r.started?c():(!s&&((s=document.createElement("script")).id=n,s.async=!0,s.src=`${t}/s.js`,e&&(s.nonce=e)),s.addEventListener("load",c),s.isConnected||document.head.appendChild(s)),()=>{l=!1,s?.removeEventListener("load",c);try{r?.config?.({...i}),r?.setScope()}catch{}r&&(r.q.length=0),r?.started||(s?.remove(),a.whop===r&&delete a.whop)}},"subscribeWhopCheckout",0,e=>(r.add(e),()=>{r.delete(e)})])}]);

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.