PageSourceSearch

https://www.tradingwizard.ai/_next/static/chunks/66913-49c71ec52ebf2958.js

js tradingwizard.ai collected 2026-10-01 23:52:38 UTC 28,043 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="72c068ec-274b-4ed3-9233-27b2797c8ea6",e._sentryDebugIdIdentifier="sentry-dbid-72c068ec-274b-4ed3-9233-27b2797c8ea6")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[66913],{1424:(e,t,n)=>{n.d(t,{Eh:()=>v,sX:()=>h,vz:()=>b});var l=n(12115);let r={state:"idle"},a={state:"loading"},i={state:"error"},s=new Map,o=new Map,u=0,c=[];function d(e){return(e||"").trim().toUpperCase()}function m(e){let t=o.get(e);if(t)for(let e of Array.from(t))e()}function f(e,t,n){let l=s.get(e);if(s.set(e,{view:t,promise:n,at:Date.now()}),!l&&s.size>300)for(let e of Array.from(s.keys()).slice(0,s.size-200))s.delete(e);m(e)}async function p(e){let t="undefined"!=typeof AbortController?new AbortController:null,n=t?setTimeout(()=>t.abort(),12e3):null;try{var l;let n=await fetch("/api/wiz/asset-profile?symbol=".concat(encodeURIComponent(e)),{signal:null==t?void 0:t.signal});if(!n.ok)return void f(e,i);let r=await n.json();f(e,{state:"ready",profile:null!=(l=null==r?void 0:r.profile)?l:null})}catch(t){f(e,i)}finally{for(n&&clearTimeout(n),u-=1;u<4&&c.length;){let e=c.shift();null==e||e()}}}function h(e){let t,n=d(e);if(!n)return Promise.resolve();let l=s.get(n);l&&"error"===l.view.state&&Date.now()-l.at>6e4&&(s.delete(n),m(n));let r=s.get(n);if(null==r?void 0:r.promise)return r.promise;if(r&&"idle"!==r.view.state)return Promise.resolve();let i=new Promise(e=>{t=()=>{u+=1,p(n).then(e)}});return f(n,a,i),u<4?t():c.push(t),i}function v(e){var t;let n=d(e);return n?((null==(t=s.get(n))?void 0:t.view.state)==="error"&&(s.delete(n),m(n)),h(n)):Promise.resolve()}function b(e,t){let n=d(e),a=!!(n&&(null==t?void 0:t.load));return(0,l.useEffect)(()=>{a&&h(n)},[n,a]),(0,l.useSyncExternalStore)(e=>{let t;return n?((t=o.get(n))||(t=new Set,o.set(n,t)),t.add(e),()=>{null==t||t.delete(e),t&&0===t.size&&o.delete(n)}):()=>{}},()=>{var e,t;return n&&null!=(t=null==(e=s.get(n))?void 0:e.view)?t:r},()=>r)}},9964:(e,t,n)=>{n.d(t,{O:()=>f});var l=n(95155),r=n(12115),a=n(47650),i=n(38541),s=n(26497),o=n(32164),u=n(65229),c=n(34347),d=n(79798),m=n(57118);function f(e){let{open:t,onClose:n,title:f,children:p,elevated:h=!1}=e,v=(0,c.I)(),b=(0,i.m)(),y=(0,r.useRef)(null),[x,g]=(0,r.useState)(null);return((0,r.useEffect)(()=>g(document.getElementById("wiz-root")),[]),(0,d.BR)(t,n),(0,d.rM)(y,t),x)?(0,a.createPortal)((0,l.jsx)(s.N,{children:t&&(0,l.jsxs)(o.P.div,{className:"absolute inset-0 ".concat(h?"z-[100]":"z-[85]"," flex flex-col justify-end"),initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.18*!v},children:[(0,l.jsx)("button",{type:"button","aria-label":"Close",onClick:n,className:"absolute inset-0 bg-black/60"}),(0,l.jsxs)(o.P.div,{ref:y,role:"dialog","aria-modal":"true","aria-label":f||"Details",className:"relative max-h-[82%] overflow-y-auto rounded-t-3xl bg-theme-primary [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",style:{boxShadow:"var(--wiz-shadow-float)",paddingBottom:"max(1rem, env(safe-area-inset-bottom))"},initial:v?{opacity:0}:{y:"100%"},animate:v?{opacity:1}:{y:0},exit:v?{opacity:0}:{y:"100%"},transition:v?{duration:0}:{type:"spring",duration:.5,bounce:.2},drag:!v&&"y",dragListener:!1,dragControls:b,dragConstraints:{top:0},dragElastic:{top:0,bottom:.6},onDragEnd:(e,t)=>{(t.offset.y>110||t.velocity.y>500)&&n()},children:[(0,l.jsxs)("div",{className:"sticky top-0 z-10 cursor-grab touch-none border-b border-theme-subtle bg-theme-primary px-4 pb-2 pt-2.5 active:cursor-grabbing",onPointerDown:e=>{v||b.start(e)},children:[(0,l.jsx)("div",{className:"mx-auto mb-2 h-1 w-9 rounded-full bg-[color:var(--border-strong)]"}),(0,l.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,l.jsx)("span",{className:"text-[10px] font-bold uppercase text-theme-tertiary",children:f}),(0,l.jsxs)("span",{className:"flex shrink-0 items-center gap-2",children:[(0,l.jsx)(m.X,{}),(0,l.jsx)("button",{type:"button",onClick:n,"aria-label":"Close","aria-keyshortcuts":"Escape",className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-white/[0.04] text-theme-tertiary transition-colors hover:bg-white/[0.08] hover:text-theme-primary focus:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--wiz-focus)]",children:(0,l.jsx)(u.A,{className:"h-4 w-4"})})]})]})]}),(0,l.jsx)("div",{className:"px-4 pt-3",children:p})]})]})}),x):null}},24798:(e,t,n)=>{n.d(t,{I0:()=>a,oH:()=>i,vK:()=>r});var l=n(49201);let r={initial:{opacity:0,scale:.97,y:8},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.98,y:6},transition:{duration:.2,ease:l.Ih}},a={initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.16,ease:l.Ih}},i={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.16}}},33125:(e,t,n)=>{n.d(t,{GM:()=>a,Ub:()=>r});var l=n(12115);function r(e){let[t,n]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{if(!window.matchMedia)return;let t=window.matchMedia(e);n(t.matches);let l=e=>n(e.matches);return t.addEventListener?(t.addEventListener("change",l),()=>t.removeEventListener("change",l)):(t.addListener(l),()=>t.removeListener(l))},[e]),t}function a(){return r("(min-width: 1025px)")}},34347:(e,t,n)=>{n.d(t,{I:()=>a,O:()=>r});var l=n(12115);function r(){try{return window.matchMedia("(prefers-reduced-motion: reduce)").matches}catch(e){return!1}}function a(){let[e,t]=(0,l.useState)(r);return(0,l.useEffect)(()=>{var e,n,l;let r=null==(e=(n=window).matchMedia)?void 0:e.call(n,"(prefers-reduced-motion: reduce)");if(!r)return;t(r.matches);let a=e=>t(e.matches);return null==(l=r.addEventListener)||l.call(r,"change",a),()=>{var e;return null==(e=r.removeEventListener)?void 0:e.call(r,"change",a)}},[]),e}},39375:(e,t,n)=>{function l(e){let t;if(!e)return null;let n=String(e).trim();if(!n)return null;try{t=new URL(/^[a-z][a-z0-9+.-]*:/i.test(n)?n:"https://".concat(n))}catch(e){return null}if("https:"!==t.protocol&&"http:"!==t.protocol)return null;let l=t.hostname.replace(/^www\./i,"");return l.includes(".")?l:null}function r(e){let t=l(e);return t?"https://".concat(t):null}function a(e){if(!e)return"empty";let t=[e.name,e.type].filter(Boolean).length,n=[e.sector,e.industry,e.country,e.exchange,e.website,e.description].filter(e=>"string"==typeof e&&e.trim().length>0).length;return 0===t&&0===n?"empty":n>=2?"full":"thin"}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:180;if(!e)return null;let n=String(e).replace(/\s+/g," ").trim();if(!n)return null;if(n.length<=t)return n;let l=-1;for(let e=0;e<Math.min(n.length-2,t);e++){if(!".?!".includes(n[e])||" "!==n[e+1])continue;let t=n[e+2];t&&t===t.toUpperCase()&&/[A-Z]/.test(t)&&(l=e+1)}if(l>=24)return n.slice(0,l).trim();let r=n.slice(0,t),a=r.lastIndexOf(" ");return"".concat((a>=24?r.slice(0,a):r).trim(),"...")}function s(e){if(!e)return null;let t=String(e).trim().toLowerCase();return t?({etf:"ETF",crypto:"Crypto",cryptocurrency:"Crypto",equity:"Stock",stock:"Stock",forex:"Forex",currency:"Forex",index:"Index",future:"Futures",futures:"Futures"})[t]||t.charAt(0).toUpperCase()+t.slice(1):null}n.d(t,{Dd:()=>s,Sz:()=>a,fS:()=>i,tZ:()=>r,yP:()=>l})},56105:(e,t,n)=>{n.d(t,{s:()=>d});var l=n(95155),r=n(12115),a=n(63357),i=n(69602),s=n(1424);let o={firedAt:null,armed:!1};function u(){return{firedAt:null,armed:!1}}let c={default:"after:absolute after:content-[''] after:-inset-[10px]",tall:"after:absolute after:content-[''] after:-inset-x-[10px] after:top-1/2 after:h-11 after:-translate-y-1/2",tight:"after:absolute after:content-[''] after:-inset-[4px]",none:""};function d(e){let{symbol:t,name:n,icon:d,assetType:m,tap:f="pass",pad:p="default",shape:h="round",className:v="",children:b}=e,y=(0,a.x)(),x=(0,r.useRef)(null),g=(0,r.useRef)(null),w=(0,r.useRef)(null),j=(0,r.useRef)(null),C=(0,r.useRef)(o),k=(0,r.useRef)(!1),[N,E]=(0,r.useState)(!1),[S,M]=(0,r.useState)(null),[z,A]=(0,r.useState)(null);(0,r.useEffect)(()=>{var e,t;let n=x.current;if(!n)return;let l=null!=(t=null==(e=n.parentElement)?void 0:e.closest('button, a, [role="button"], [role="option"], [role="link"]'))?t:null;k.current=null!=l,M(null!=l),A(function(){try{return window.matchMedia("(hover: hover) and (pointer: fine)").matches}catch(e){return!1}}())},[y]);let D=e=>{null!=e.current&&(window.clearTimeout(e.current),e.current=null)},I=(0,r.useCallback)(()=>({symbol:t,name:null!=n?n:null,icon:null!=d?d:null,assetType:null!=m?m:null}),[t,n,d,m]),T=(0,r.useCallback)(()=>{y&&((0,s.sX)(t),y.openModal(I()))},[y,t,I]),P=(0,r.useCallback)(()=>{D(g),D(w),j.current=null,E(!1)},[]);if((0,r.useEffect)(()=>()=>{D(g),D(w),C.current=u()},[]),!y)return(0,l.jsx)(l.Fragment,{children:b});let R="own"===f&&!1===S,U=["relative inline-flex items-center transition-transform duration-150 ease-out motion-reduce:transition-none","round"===h?"shrink-0":"min-w-0",R?c[p]:"","round"===h||!0!==z?"select-none":"",N?"scale-[0.94] motion-reduce:scale-100 ring-1 ring-[color:var(--border-strong)] ".concat("round"===h?"rounded-full":"rounded-md"):"",v].filter(
1Boolean).join(" "),W=R?{role:"button",tabIndex:0,"aria-label":"About ".concat((t||"").toUpperCase()),"aria-haspopup":"dialog",onClick:()=>{(0,i.g)("light"),T()},onKeyDown:e=>{("Enter"===e.key||" "===e.key||"Spacebar"===e.key)&&(e.preventDefault(),(0,i.g)("light"),T())}}:null;return(0,l.jsx)("span",{onPointerLeave:()=>{P()},onPointerDown:e=>{if(C.current={firedAt:null,armed:!1},"mouse"===e.pointerType)return;let n=e.pointerType;j.current={x:e.clientX,y:e.clientY,t:Date.now()},D(g),D(w),w.current=window.setTimeout(()=>{E(!0),(0,s.sX)(t)},180),g.current=window.setTimeout(()=>{let e=j.current;if(!e)return;let t=function(e,t,n,l,r){return"mouse"!==e&&r>=500||"own"===(t?"pass":n)?"modal":"pass"}(n,k.current,f,0,Date.now()-e.t);j.current=null,E(!1),"modal"===t&&(C.current={firedAt:Date.now(),armed:!0},(0,i.g)("medium"),T())},500)},onPointerMove:e=>{let t=j.current;t&&Math.hypot(e.clientX-t.x,e.clientY-t.y)>10&&P()},onPointerUp:()=>{var e,t;e=C.current,t=Date.now(),C.current=e.armed?{firedAt:t,armed:!1}:{firedAt:e.firedAt,armed:!1},P()},onPointerCancel:()=>{C.current=u(),P()},onClickCapture:e=>{var t,n,l;t=C.current,n=Date.now(),l=t.firedAt,null!=l&&n-l<500&&(C.current={firedAt:null,armed:!1},e.preventDefault(),e.stopPropagation())},style:{touchAction:"manipulation",WebkitTouchCallout:"none"},...null!=W?W:{},ref:e=>{x.current=e},className:U,children:b})}},57118:(e,t,n)=>{n.d(t,{X:()=>r});var l=n(95155);function r(e){let{label:t="Esc",className:n}=e;return(0,l.jsx)("kbd",{"aria-hidden":!0,className:"wiz-esc-hint select-none items-center rounded-[5px] border border-theme bg-theme-elevated px-1.5 py-[3px] font-sans text-[10px] font-semibold leading-none text-theme-tertiary".concat(n?" ".concat(n):""),children:t})}},66913:(e,t,n)=>{n.d(t,{uh:()=>M,E9:()=>S,QA:()=>E});var l=n(95155),r=n(12115),a=n(67909),i=n(20063),s=n(89208),o=n(72851),u=n(69430),c=n(73538),d=n(84847),m=n(1424),f=n(63357),p=n(56105),h=n(7013),v=n(38142),b=n(39375);let y={card:44,modal:96};function x(e){var t,n,a;let{symbol:i,fallbackName:s,icon:o,assetType:u,density:c,state:d,profile:m,trailing:f,onRetry:p,className:v=""}=e,x="modal"===c,w=(i||"").toUpperCase(),j=function(e,t){let[n,l]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!e)return void l(!1);let t=window.setTimeout(()=>l(!0),200);return()=>window.clearTimeout(t)},[e,200]),n}("loading"===d,200),C=(0,b.Dd)(null!=(t=null==m?void 0:m.type)?t:u),k=null!=(a=null!=(n=null==m?void 0:m.name)?n:s)?a:null,N=k&&k.trim()&&k.trim().toUpperCase()!==w?k.trim():null,E="ready"===d?function(e,t){if(!e)return[];let n=[],l=(e,t)=>{t&&t.trim()&&n.push({label:e,value:t.trim()})};if(l("Sector",e.sector),"modal"===t&&l("Industry",e.industry),l("Exchange",e.exchange),l("Country",e.country),"modal"===t){let t=(0,b.yP)(e.website),l=(0,b.tZ)(e.website);t&&l&&n.push({label:"Website",value:t,href:l})}return n}(m,c):[],S="ready"===d&&(null==m?void 0:m.description)?x?m.description:(0,b.fS)(m.description,150):null,M="ready"!==d||x?null:(0,b.yP)(null==m?void 0:m.website),z="ready"===d&&"empty"===(0,b.Sz)(m),A="error"===d||"loading"===d&&j||z||E.length>0||!!S||!!M;return(0,l.jsxs)("div",{className:"min-w-0 ".concat(v),"aria-busy":"loading"===d,children:[(0,l.jsxs)("div",{className:"flex min-w-0 items-start ".concat(x?"gap-3":"gap-2.5"),children:[(0,l.jsx)(g,{symbol:i,icon:o,assetType:u,size:x?"lg":"sm"}),(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("div",{className:"flex min-w-0 items-center gap-1.5",children:[(0,l.jsx)("span",{className:"shrink-0 font-bold text-theme-primary ".concat(x?"text-[17px] -tracking-[0.01em]":"text-[13px]"),children:w}),C&&(0,l.jsx)("span",{className:"shrink-0 rounded-full bg-theme-elevated px-1.5 py-0.5 text-[10px] font-semibold uppercase text-theme-tertiary",children:C})]}),N&&(0,l.jsx)("p",{className:"mt-0.5 text-theme-secondary ".concat(x?"text-[13px] leading-snug":"text-[12px] leading-snug line-clamp-2"),children:N})]}),f&&(0,l.jsx)("span",{className:"shrink-0 pt-0.5",children:f})]}),A&&(0,l.jsx)("div",{className:"".concat(x?"mt-4":"mt-3"," border-t border-theme-subtle")}),"error"===d?(0,l.jsxs)("div",{className:x?"mt-4":"mt-3",children:[(0,l.jsx)("p",{className:"".concat(x?"text-[13px] text-theme-secondary":"text-[12px] text-theme-tertiary"),children:"Details did not load."}),p&&(0,l.jsx)("button",{type:"button",onClick:p,className:"mt-1.5 text-[11px] font-medium text-theme-secondary underline-offset-2 transition-colors duration-150 hover:text-theme-primary hover:underline focus:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--wiz-focus)] rounded",children:"Try again"})]}):"loading"===d?j?(0,l.jsxs)("div",{className:x?"mt-4":"mt-3",style:{height:y[c]}
1,"aria-hidden":!0,children:[(0,l.jsx)("div",{className:"h-3 w-2/3 rounded tw-skeleton"}),(0,l.jsx)("div",{className:"mt-2 h-3 w-1/2 rounded tw-skeleton"}),x&&(0,l.jsx)("div",{className:"mt-2 h-3 w-5/6 rounded tw-skeleton"})]}):null:z?(0,l.jsxs)("p",{className:"".concat(x?"mt-4 text-[13px]":"mt-3 text-[12px]"," text-theme-secondary"),children:["We do not have a profile for ",w," yet."]}):(0,l.jsxs)(l.Fragment,{children:[E.length>0&&(x?(0,l.jsx)("dl",{className:"mt-4 grid grid-cols-1 gap-x-4 gap-y-3 min-[380px]:grid-cols-2",children:E.map(e=>(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("dt",{className:"text-[10px] font-semibold uppercase text-theme-tertiary",children:e.label}),(0,l.jsx)("dd",{className:"mt-0.5 text-[13px] text-theme-primary",children:e.href?(0,l.jsxs)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer nofollow",className:"inline-flex items-center gap-1 break-all text-[color:var(--wiz-focus)] hover:underline focus:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--wiz-focus)] rounded",children:[e.value,(0,l.jsx)(h.A,{className:"h-3 w-3 shrink-0",strokeWidth:2.5,"aria-hidden":!0})]}):e.value})]},e.label))}):(0,l.jsx)("dl",{className:"mt-3 space-y-1.5",children:E.map(e=>(0,l.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,l.jsx)("dt",{className:"shrink-0 text-[10px] font-semibold uppercase text-theme-tertiary",children:e.label}),(0,l.jsx)("dd",{className:"min-w-0 truncate text-right text-[12px] text-theme-primary",children:e.value})]},e.label))})),S&&(x?(0,l.jsx)("div",{className:"mt-4 max-h-[40vh] overflow-y-auto overscroll-contain",children:(0,l.jsx)("p",{className:"text-[13px] leading-relaxed text-theme-secondary",children:S})}):(0,l.jsx)("p",{className:"mt-3 text-[12px] leading-snug text-theme-secondary line-clamp-3",children:S})),M&&(0,l.jsx)("p",{className:"mt-2 text-[11px] text-theme-tertiary",children:M})]})]})}function g(e){let{symbol:t,icon:n,assetType:r,size:a}=e;return(0,l.jsx)(v.vG,{symbol:t,icon:n,assetType:r,size:a})}function w(e){let{symbol:t,name:n,icon:r,assetType:a,state:i,profile:s,onRetry:o,onOpenAsset:u}=e,c=(t||"").toUpperCase();return(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)(x,{symbol:t,fallbackName:n,icon:r,assetType:a,density:"modal",state:i,profile:s,onRetry:o}),u&&(0,l.jsx)("div",{className:"sticky bottom-0 -mx-4 mt-5 border-t border-theme-subtle bg-theme-primary px-4 pb-1 pt-3",children:(0,l.jsxs)("button",{type:"button",onClick:u,className:"flex min-h-11 w-full items-center justify-center rounded-full px-5 text-[14px] font-bold transition-transform duration-150 active:scale-[0.99] focus:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--wiz-focus)]",style:{background:"var(--wiz-green-btn)",color:"var(--wiz-on-green)"},children:["Open ",c]})})]})}var j=n(81710);function C(e){var t;let{openAsset:n,children:a}=e,[s,o]=(0,r.useState)(null),[u,c]=(0,r.useState)(!1),d=(0,r.useRef)(!1),h=(0,i.usePathname)(),v=(0,r.useCallback)(()=>{d.current=!1,c(!1)},[]),b=(0,r.useMemo)(()=>({openModal:e=>{d.current=!0,o(e),c(!0)},Trigger:p.s}),[]),y=(0,m.vz)(null!=(t=null==s?void 0:s.symbol)?t:null,{load:!0});(0,r.useEffect)(()=>{v()},[h,v]);let x=(0,r.useCallback)(()=>{var e;s&&(v(),n({symbol:s.symbol,name:null!=(e=s.name)?e:void 0,assetType:s.assetType,source:"asset_profile"}))},[s,n,v]);return(0,l.jsxs)(f.r,{value:b,children:[a,(0,l.jsx)(j.WizResponsiveSheet,{open:u,onClose:v,title:"About",children:s&&(0,l.jsx)(w,{symbol:s.symbol,name:s.name,icon:s.icon,assetType:s.assetType,state:"ready"===y.state?"ready":"error"===y.state?"error":"loading",profile:"ready"===y.state?y.profile:null,onRetry:()=>void(0,m.Eh)(s.symbol),onOpenAsset:x})})]})}let k=(0,a.default)(()=>Promise.all([n.e(3608),n.e(19867),n.e(76924),n.e(52619),n.e(75889),n.e(79040),n.e(15185),n.e(1113),n.e(54968),n.e(41402),n.e(99685),n.e(47924),n.e(3402),n.e(18547),n.e(13922),n.e(97384),n.e(58188),n.e(80744),n.e(36878),n.e(53248),n.e(58086),n.e(41104),n.e(62350),n.e(80251),n.e(64467),n.e(24991),n.e(20666),n.e(8092),n.e(72483),n.e(10917),n.e(98072),n.e(50921)]).then(n.bind(n,26560)).then(e=>e.WizAssetDock),{loadableGenerated:{webpack:()=>[26560]},ssr:!1,loading:()=>null}),N=(0,r.createContext)(null);function E(){let e=(0,r.useContext)(N);return e||{open:()=>{},prefetch:()=>{},isLight:!1,activeTarget:null,closeAsset:()=>{},claimAssetHost:()=>()=>{},claimBotHost:()=>()=>{},offerBot:()=>!1,sendAssetAction:()=>{}}}function S(){let{open:e}=E(),t=(0,i.useRouter)(),n=(0,i.usePathname)();return(0,r.useCallback)(l=>{n&&(n.startsWith("/wiz")||n.startsWith("/bots"))?e(l):t.push("/wiz?asset=".concat(encodeURIComponent(l.symbol)))},[e,t,n])}
1function M(e){let{theme:t,onSend:n,watchedSymbols:a,onToggleWatchlist:m,onOpenAsset:f,children:p}=e,h=(0,i.useRouter)(),v=(0,c.t)(),[b,y]=(0,r.useState)(null),x=(0,r.useMemo)(()=>b?!b.levels||b.levelsScope===v&&(0,u.fl)(v)?b:{...b,levels:void 0,levelsScope:null}:null,[b,v]),[g,w]=(0,r.useState)(!1),j=(0,r.useRef)(!1),E=(0,r.useCallback)(e=>{let t=function(e,t){let n=(0,u.fl)(t),l=n&&(void 0===e.levelsScope||e.levelsScope===t);return{...e,levels:l?e.levels:void 0,levelsScope:n?t:null}}(e,v);(0,o.wizMarkInteraction)();let n=e.source||"chart_button";if("trade_row"===n?(0,o.trackWizBetaEvent)(o.WIZ_EVENTS.TRADE_CLICKED,{symbol:e.symbol,source:n}):"alert_row"===n?(0,o.trackWizBetaEvent)(o.WIZ_EVENTS.ALERT_CLICKED,{symbol:e.symbol,source:n}):(0,o.trackWizBetaEvent)(o.WIZ_EVENTS.ASSET_CLICKED,{symbol:e.symbol,source:n}),(0,u.bI)(e.symbol,v),window.dispatchEvent(new CustomEvent("wiz-chart-opened")),f)return void f(t);if(!j.current){j.current=!0;try{window.history.pushState({wizChartOverlay:!0},"")}catch(e){}}w(!0),y(t)},[f,v]),S=(0,r.useCallback)(()=>{if(y(null),j.current){j.current=!1;try{window.history.back()}catch(e){}}},[]);(0,r.useEffect)(()=>{let e=()=>{j.current&&(j.current=!1,y(null))};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[]);let M=(0,r.useCallback)(e=>{e&&((0,d.gw)(e),(0,u.bI)(e,v))},[v]),z=(0,r.useCallback)(e=>{n?(S(),n(e)):(y(null),j.current=!1,(0,s.v)(e,e=>h.push(e)))},[S,n,h]),[A,D]=(0,r.useState)(0),I=(0,r.useCallback)(()=>(D(e=>e+1),()=>D(e=>Math.max(0,e-1))),[]),T=(0,r.useRef)(null),P=(0,r.useCallback)(e=>(T.current=e,()=>{T.current===e&&(T.current=null)}),[]),R=(0,r.useCallback)((e,t)=>{let n=T.current;return!!n&&n(e,t)},[]),U=(0,r.useMemo)(()=>({open:E,prefetch:M,isLight:"light"===t,activeTarget:x,closeAsset:S,claimAssetHost:I,claimBotHost:P,offerBot:R,sendAssetAction:z}),[E,M,t,x,S,I,P,R,z]);return(0,l.jsxs)(N.Provider,{value:U,children:[(0,l.jsx)(C,{openAsset:E,children:p}),g&&0===A&&(0,l.jsx)(k,{target:x,theme:t,onClose:S,onSend:z,watchedSymbols:a,onToggleWatchlist:m})]})}},69430:(e,t,n)=>{n.d(t,{Gz:()=>m,JG:()=>u,_m:()=>f,bI:()=>h,c3:()=>p,fl:()=>c,kC:()=>v});let l=null,r=0,a=new Map,i=new Map,s=new Map;function o(e){var t;for(let n of null!=(t=s.get(e))?t:[])n()}function u(e){var t;let n="guest"===e||/^user:\S+$/.test(null!=e?e:"")?e:null;if((null!=(t=null==l?void 0:l.viewerKey)?t:null)===n)return l;for(let e of i.values())e.controller.abort();for(let e of(i.clear(),a.clear(),r+=1,l=n?Object.freeze({viewerKey:n,generation:r}):null,s.keys()))o(e);return l}function c(e){return null!=e&&e===l}function d(e,t){let n=e.trim().toUpperCase();return n&&c(t)?"".concat(t.generation,":").concat(t.viewerKey,":").concat(n):null}function m(e,t){let n=d(e,t);if(!n)return null;let l=a.get(n);return l?Date.now()-l.ts>6e4?(a.delete(n),null):l.detail:null}function f(e,t,n){var l;let r=d(e,t);if(!r)return()=>{};let a=null!=(l=s.get(r))?l:new Set;return a.add(n),s.set(r,a),()=>{a.delete(n),a.size||s.delete(r)}}function p(e,t,n){let l=d(e,t);if(!l||!c(t))return Promise.resolve(null);let r=i.get(l);if(r&&!(null==n?void 0:n.fresh))return r.promise;null==r||r.controller.abort();let s=new AbortController,u={controller:s,promise:Promise.resolve(null)},m=()=>c(t)&&!s.signal.aborted&&i.get(l)===u;return u.promise=Promise.resolve().then(()=>m()?fetch("/api/wiz/asset/".concat(encodeURIComponent(e.trim().toUpperCase())),{cache:"no-store",credentials:"guest"===t.viewerKey?"omit":"same-origin",signal:s.signal}):null).then(e=>(null==e?void 0:e.ok)?e.json():null).then(e=>{var t;if(!m())return null;let n=null!=(t=null==e?void 0:e.detail)?t:null;return n&&(a.set(l,{detail:n,ts:Date.now()}),o(l)),n}).catch(()=>null).finally(()=>{i.get(l)===u&&i.delete(l)}),i.set(l,u),u.promise}function h(e,t){!d(e,t)||m(e,t)||p(e,t)}async function v(e,t){var n;return null!=(n=m(e,t))?n:p(e,t)}},69602:(e,t,n)=>{let l,r;function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";(!r&&(r=(async()=>{try{var e;let t=(await n.e(54968).then(n.bind(n,32587))).Capacitor;(null==t||null==(e=t.isNativePlatform)?void 0:e.call(t))&&(l=(await Promise.all([n.e(54968),n.e(24995)]).then(n.bind(n,24995))).Haptics)}catch(e){l=void 0}})()),r).then(async()=>{let t=l;if(t){try{var n,r,a;"success"===e?await (null==(n=t.notification)?void 0:n.call(t,{type:"SUCCESS"})):"warning"===e?await (null==(r=t.notification)?void 0:r.call(t,{type:"WARNING"})):await (null==(a=t.impact)?void 0:a.call(t,{style:"heavy"===e?"HEAVY":"medium"===e?"MEDIUM":"LIGHT"}))}catch(e){}return}try{let t=navigator.vibrate;"function"==typeof t&&t.call(navigator,"success"===e?[8,30,8]:"warning"===e?[16,50,16]:"heavy"===e?22:"medium"===e?14:8)}catch(e){}}).catch(()=>{})}n.d(t,{g:()=>a})}
1,73538:(e,t,n)=>{n.d(t,{t:()=>i});var l=n(12115),r=n(96885),a=n(69430);function i(){let{user:e,resolving:t}=(0,r.u)(),n="string"==typeof(null==e?void 0:e.id)?e.id.trim():"",i=t?null:e?n?"user:".concat(n):null:"guest",[s,o]=(0,l.useState)(null);return(0,l.useEffect)(()=>{o((0,a.JG)(i))},[i]),(null==s?void 0:s.viewerKey)===i&&(0,a.fl)(s)?s:null}},81710:(e,t,n)=>{n.r(t),n.d(t,{WizResponsiveSheet:()=>h,default:()=>b});var l=n(95155),r=n(12115),a=n(47650),i=n(26497),s=n(32164),o=n(65229),u=n(34347),c=n(24798),d=n(79798),m=n(33125),f=n(57118),p=n(9964);function h(e){let{open:t,onClose:n,title:r,children:a}=e;return(0,m.Ub)("(min-width: 1280px)")?(0,l.jsx)(v,{open:t,onClose:n,title:r,children:a}):(0,l.jsx)(p.O,{open:t,onClose:n,title:r,children:a})}function v(e){let{open:t,onClose:n,title:m,children:p}=e,h=(0,u.I)(),v=(0,r.useRef)(null),[b,y]=(0,r.useState)(null);return((0,r.useEffect)(()=>y(document.getElementById("wiz-root")),[]),(0,d.BR)(t,n),(0,d.rM)(v,t),b)?(0,a.createPortal)((0,l.jsx)(i.N,{children:t&&(0,l.jsxs)(s.P.div,{className:"absolute inset-0 z-[85] flex items-center justify-center p-6",...c.oH,children:[(0,l.jsx)("button",{type:"button","aria-label":"Close",onClick:n,className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),(0,l.jsxs)(s.P.div,{ref:v,role:"dialog","aria-modal":"true","aria-label":m||"Details",className:"relative z-10 flex max-h-[86vh] w-full max-w-2xl flex-col overflow-hidden rounded-3xl border border-theme bg-theme-primary shadow-2xl",...h?c.I0:c.vK,children:[(0,l.jsxs)("div",{className:"flex shrink-0 items-center justify-between border-b border-theme-subtle px-5 py-3.5",children:[(0,l.jsx)("span",{className:"text-[10px] font-bold uppercase text-theme-tertiary",children:m}),(0,l.jsxs)("span",{className:"flex shrink-0 items-center gap-2",children:[(0,l.jsx)(f.X,{}),(0,l.jsx)("button",{type:"button",onClick:n,"aria-label":"Close","aria-keyshortcuts":"Escape",className:"grid h-9 w-9 place-items-center rounded-full bg-white/[0.04] text-theme-tertiary transition-colors hover:bg-white/[0.08] hover:text-theme-primary focus:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--wiz-focus)]",children:(0,l.jsx)(o.A,{className:"h-4 w-4"})})]})]}),(0,l.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 py-4",children:p})]})]})}),b):null}let b=h},84847:(e,t,n)=>{n.d(t,{AZ:()=>r,gw:()=>o,rb:()=>a});var l=n(87051);function r(e){return(e||"").toUpperCase().replace(/[^A-Z0-9.\-]/g,"").slice(0,12)}function a(e){let t=r(e.symbol),n=["symbol=".concat(encodeURIComponent(t)),"interval=".concat(encodeURIComponent(e.interval))];return e.limit&&e.limit>0&&n.push("limit=".concat(e.limit)),"line"===e.style&&n.push("prepost=1"),!e.limit&&"number"==typeof e.page&&Number.isFinite(e.page)&&e.page>0?(n.push("page=".concat(Math.ceil(e.page))),"number"==typeof e.before&&Number.isFinite(e.before)&&e.before>0&&n.push("before=".concat(Math.floor(e.before)))):!e.limit&&"number"==typeof e.visibleSpanMs&&e.visibleSpanMs>0&&n.push("days=".concat(Math.max(1,Math.ceil(e.visibleSpanMs/864e5)))),"/api/terminal/chart?".concat(n.join("&"))}let i=new Map,s=null;function o(e){Promise.all([n.e(10453),n.e(58426),n.e(8092),n.e(6641),n.e(81472)]).then(n.bind(n,17466)).catch(()=>{});let t=function(e){let t=(0,l.KY)(e);return a({symbol:e,interval:t.interval,style:"candles",visibleSpanMs:t.spanMs})}(e);if(!r(e))return;let o=Date.now(),u=i.get(t);if(null!=u&&o-u<3e4||(null==s?void 0:s.url)===t)return;null==s||s.ctrl.abort();let c=new AbortController;s={url:t,ctrl:c},i.set(t,o),fetch(t,{signal:c.signal,priority:"low"}).then(e=>{e.ok||i.delete(t)}).catch(()=>{i.delete(t)}).finally(()=>{(null==s?void 0:s.ctrl)===c&&(s=null)})}},87051:(e,t,n)=>{n.d(t,{Ah:()=>s,DC:()=>r,G7:()=>l,KY:()=>f,Pv:()=>c,Um:()=>m,wr:()=>u});let l=[{id:"24H",label:"24H",interval:"5m",spanMs:24*36e5},{id:"1W",label:"1W",interval:"1H",spanMs:6048e5},{id:"1M",label:"1M",interval:"4H",spanMs:2592e6},{id:"3M",label:"3M",interval:"1D",spanMs:78624e5},{id:"6M",label:"6M",interval:"1D",spanMs:157248e5},{id:"1Y",label:"1Y",interval:"1D",spanMs:31536e6},{id:"5Y",label:"5Y",interval:"1W",spanMs:15768e7}],r="1M",a={"5m":3e5,"15m":9e5,"1H":36e5,"4H":4*36e5,"1D":24*36e5,"1W":6048e5},i=["5m","15m","1H","4H","1D","1W"];function s(e){return i.filter(t=>{if(t===e.interval)return!0;let n=e.spanMs/a[t];return n>=20&&n<=2500})}let o=["5m","15m","1H","4H"];function u(e,t){return"number"==typeof e&&Number.isFinite(e)&&e>0?e<=6912e5:o.includes(t)}function c(e){var t;return null!=(t=l.find(t=>
1t.id===e))?t:l.find(e=>e.id===r)}let d=new Map;function m(e,t){d.set(e.toUpperCase(),t)}function f(e){var t;return c(null!=(t=d.get(e.toUpperCase()))?t:r)}}}]);

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.