PageSourceSearch

https://www.quant-soc.com/_next/static/chunks/5642-0bb8557863c6dd7e.js?dpl=dpl_6p7LDDNYmQPPdtq1Te1P1fe5csVx

js quant-soc.com collected 2026-10-09 22:30:36 UTC 21,154 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]="2db93afa-2c37-4c48-b70f-3ccf9f6e3d87",e._sentryDebugIdIdentifier="sentry-dbid-2db93afa-2c37-4c48-b70f-3ccf9f6e3d87")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5642],{6855:(e,t,n)=>{"use strict";n.d(t,{m:()=>d});var r=n(95155),i=n(12115),a=n(74570),l=n(25016),o=n(20768),s=n(17748);function c(e){let{children:t,className:n}=e;return(0,r.jsxs)("div",{className:(0,l.cn)("relative min-w-0 p-4 sm:p-5",n),children:[(0,r.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 rounded-xl bg-popover/75 dark:bg-transparent",style:{backgroundImage:s.lm}}),(0,r.jsx)("div",{className:"relative min-w-0",children:t})]})}let u=(0,l.cn)("min-w-0","!border-border/60","!shadow-elevation-1");function d(e){let{label:t,sweep:n=!1,className:d,shellClassName:p,surfaceClassName:f,children:m}=e,g=i.useRef(null),v=(0,a.W)(g,{once:!0,amount:.3});return(0,r.jsx)("div",{ref:g,role:t?"group":void 0,"aria-label":t,className:(0,l.cn)("min-w-0",d),children:(0,r.jsx)(o.o,{className:(0,l.cn)(u,p),backgroundColor:"hsl(var(--background))",borderRadius:12,glowColor:"234 89 74",colors:[s.Sf,s.GW,s.Sf],glowRadius:24,edgeSensitivity:30,glowIntensity:.85,fillOpacity:.3,animated:n&&v,children:(0,r.jsx)(c,{className:(0,l.cn)("flex min-w-0 flex-col rounded-[11px] bg-card/40",f),children:m})})})}},13621:(e,t,n)=>{"use strict";n.d(t,{Xt:()=>o,c4:()=>a,i:()=>l,yX:()=>i});let r=new Intl.DateTimeFormat("en-CA",{timeZone:"Europe/London",year:"numeric",month:"2-digit",day:"2-digit"});function i(e){let[t,n,r]=e.split("-").map(Number);return new Date(null!=t?t:1970,(null!=n?n:1)-1,null!=r?r:1)}function a(e){let t=e=>String(e).padStart(2,"0");return"".concat(e.getFullYear(),"-").concat(t(e.getMonth()+1),"-").concat(t(e.getDate()))}function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return i(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=r.formatToParts(e),n=e=>{var n,r;return null!=(r=null==(n=t.find(t=>t.type===e))?void 0:n.value)?r:""};return"".concat(n("year"),"-").concat(n("month"),"-").concat(n("day"))}(e))}function o(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)}},17748:(e,t,n)=>{"use strict";n.d(t,{GW:()=>a,Sf:()=>i,UH:()=>o,X0:()=>u,lm:()=>c,o7:()=>d,oj:()=>l,zT:()=>s});var r=n(73153);let i="var(--brand-wave-1)",a="var(--brand-wave-4)",l={"--iq-accent":i,"--iq-accent-end":a,"--iq-tint":(0,r.uq)(i,5),"--iq-tint-strong":(0,r.uq)(i,11),"--iq-line":(0,r.uq)(i,28)},o="radial-gradient(75% 55% at 100% 0%, ".concat((0,r.uq)(i,9),", transparent 70%)"),s="radial-gradient(circle, ".concat((0,r.uq)(i,15),", transparent 70%)"),c="radial-gradient(115% 90% at 50% 0%, ".concat((0,r.uq)(i,10),", transparent 72%)"),u="linear-gradient(90deg, ".concat(i,", ").concat(a," 45%, transparent)");"linear-gradient(135deg, ".concat((0,r.uq)(i,12),", ").concat((0,r.uq)(a,6)," 45%, transparent 78%)"),(0,r.uq)(i,22),["linear-gradient(105deg, transparent 48%,","".concat((0,r.uq)(a,1)," 49.5%,"),"".concat((0,r.uq)(a,4)," 50%,"),"".concat((0,r.uq)(a,1)," 50.5%,"),"transparent 52%)"].join(" "),"linear-gradient(255deg, ".concat((0,r.uq)(i,7),", ").concat((0,r.uq)(a,3)," 50%, transparent 82%)");let d=[i,"hsl(var(--surface))"]},20768:(e,t,n)=>{"use strict";n.d(t,{o:()=>f});var r=n(95155),i=n(12115),a=n(25016),l=n(66027);n(51192);let o=["80% 55%","69% 34%","8% 6%","41% 38%","86% 85%","82% 18%","51% 4%"],s=["--gradient-one","--gradient-two","--gradient-three","--gradient-four","--gradient-five","--gradient-six","--gradient-seven"],c=[0,1,2,0,1,2,1];function u(e){return 1-Math.pow(1-e,3)}function d(e){return e*e*e}function p(e){let{start:t=0,end:n=100,duration:r=1e3,delay:i=0,ease:a=u,onUpdate:l,onEnd:o}=e,s=performance.now()+i;function c(){let e=Math.min((performance.now()-s)/r,1);l(t+(n-t)*a(e)),e<1?requestAnimationFrame(c):o&&o()}setTimeout(()=>requestAnimationFrame(c),i)}function f(e){let{children:t,className:n="",edgeSensitivity:f=30,glowColor:m="40 80 80",backgroundColor:g="hsl(var(--background))",borderRadius:v=16,glowRadius:x=40,glowIntensity:h=1,coneSpread:b=25,animated:y=!1,replaySweepOnHover:w=!1,holdGlow:k=!1,glowLag:q=1,colors:N=["#c084fc","#f472b6","#38bdf8"],fillOpacity:_=.5,chromeless:j=!1,glowDisabled:A=!1}=e,C=(0,i.useRef)(null),S=(0,i.useRef)(0),M=(0,i.useRef)(!1),D=(0,i.useRef)(!1),P=(0,i.useRef)({angle:0,prox:0,tAngle:0,tProx:0,raf:0,active:!1}),E=(0,l.I)(),F=(0,i.useCallback)(()=>{let e=P.current;if(e.raf)return;let t=()=>{let n=C.current;if(!n||!e.active){e.raf=0;return}let r=(e.tAngle-e.angle+540)%360-180,i=.001>Math.abs(r)&&.001>Math.abs(e.tProx-e.prox);e.angle=i?e.tAngle:e.angle+r*q,e.prox=i?e.tProx:e.prox+(e.tProx-e.prox)*q,n.style.setProperty("--cursor-angle","".concat(e.angle.toFixed(3),"deg")),n.style.setProperty("--edge-proximity","".concat(e.prox.toFixed(3))),e.raf=i?0:requestAnimationFrame(t)};e.raf=requestAnimationFrame(t)},[q]),I=(0,i.useCallback)(()=>{let e=P.current;e.active=!1,e.raf&&(cancelAnimationFrame(e.raf),e.raf=0)},[]),R=(0,i.useCallback)(e=>{let{width:t,height:n}=e.getBoundingClientRect();return[t/2,n/2]},[]),T=(0,i.useCallback)((e,t,n)=>{let[r,i]=R(e),a=t-r,l=n-i,o=1/0,s=1/0;
1return 0!==a&&(o=r/Math.abs(a)),0!==l&&(s=i/Math.abs(l)),Math.min(Math.max(1/Math.min(o,s),0),1)},[R]),L=(0,i.useCallback)((e,t,n)=>{let[r,i]=R(e),a=t-r,l=n-i;if(0===a&&0===l)return 0;let o=180/Math.PI*Math.atan2(l,a)+90;return o<0&&(o+=360),o},[R]),B=(0,i.useCallback)(()=>{var e;let t=C.current;if(!t)return;let n=++S.current;D.current=!0,e=()=>{S.current===n&&(D.current=!1)},t.classList.add("sweep-active"),t.style.setProperty("--cursor-angle","".concat(110,"deg")),p({duration:500,onUpdate:e=>{S.current===n&&t.style.setProperty("--edge-proximity",String(e))}}),p({ease:d,duration:1500,end:50,onUpdate:e=>{S.current===n&&t.style.setProperty("--cursor-angle","".concat(355*e/100+110,"deg"))}}),p({ease:u,delay:1500,duration:2250,start:50,end:100,onUpdate:e=>{S.current===n&&t.style.setProperty("--cursor-angle","".concat(355*e/100+110,"deg"))}}),p({ease:d,delay:2500,duration:1500,start:100,end:0,onUpdate:e=>{S.current===n&&t.style.setProperty("--edge-proximity",String(e))},onEnd:()=>{S.current===n&&(t.classList.remove("sweep-active"),null==e||e())}})},[]),U=(0,i.useCallback)(()=>{S.current+=1,D.current=!1;let e=C.current;e&&(e.classList.remove("sweep-active"),e.style.setProperty("--edge-proximity","0"))},[]),W=(0,i.useCallback)((e,t)=>{if(!w||M.current||D.current)return;let n=C.current;if(!n)return;let r=n.getBoundingClientRect();100*T(n,e-r.left,t-r.top)<f&&(M.current=!0,B())},[w,f,T,B]),X=(0,i.useCallback)(e=>{let t=C.current;if(!t)return;let n=t.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top;if(W(e.clientX,e.clientY),D.current||t.classList.contains("sweep-active"))return;let a=T(t,r,i),l=L(t,r,i),o=k?100:100*a;if(q>=1){t.style.setProperty("--edge-proximity","".concat(o.toFixed(3))),t.style.setProperty("--cursor-angle","".concat(l.toFixed(3),"deg"));return}let s=P.current;s.tAngle=l,s.tProx=o,s.active||(s.active=!0,s.angle=l,s.prox=o),F()},[T,L,W,k,q,F]),O=(0,i.useCallback)(e=>{W(e.clientX,e.clientY)},[W]),Y=(0,i.useCallback)(()=>{M.current=!1,I(),U()},[U,I]);(0,i.useEffect)(()=>{!A&&y&&C.current&&!E&&B()},[y,A,E,B]),(0,i.useEffect)(()=>I,[I]);let z=function(e,t){let{h:n,s:r,l:i}=function(e){let t=e.match(/([\d.]+)\s*([\d.]+)%?\s*([\d.]+)%?/);return t?{h:parseFloat(t[1]),s:parseFloat(t[2]),l:parseFloat(t[3])}:{h:40,s:80,l:80}}(e),a="".concat(n,"deg ").concat(r,"% ").concat(i,"%"),l=[100,60,50,40,30,20,10],o=["","-60","-50","-40","-30","-20","-10"],s={};for(let e=0;e<l.length;e++)s["--glow-color".concat(o[e])]="hsl(".concat(a," / ").concat(Math.min(l[e]*t,100),"%)");return s}(m,h);return(0,r.jsxs)("div",{ref:C,onPointerEnter:A?void 0:O,onPointerMove:A?void 0:X,onPointerLeave:A?void 0:Y,className:(0,a.cn)("border-glow-card",j&&"border-glow-card--chromeless",n),style:{"--card-bg":j?"transparent":g,"--edge-sensitivity":f,...j?{}:{"--border-radius":"".concat(v,"px")},"--glow-padding":"".concat(x,"px"),"--cone-spread":b,"--fill-opacity":_,...z,...function(e){let t={};for(let n=0;n<7;n++){let r=e[Math.min(c[n],e.length-1)];t[s[n]]="radial-gradient(at ".concat(o[n],", ").concat(r," 0px, transparent 50%)")}return t["--gradient-base"]="linear-gradient(".concat(e[0]," 0 100%)"),t}(N)},children:[A?null:(0,r.jsx)("span",{className:"edge-light","aria-hidden":"true"}),(0,r.jsx)("div",{className:"border-glow-inner",children:t})]})}},38452:(e,t,n)=>{"use strict";n.d(t,{H$:()=>o,Yg:()=>a,bo:()=>c,go:()=>s,yg:()=>u});var r=n(15828),i=n(61947);let a=3,l=i.$W;function o(e){var t;return e.block?e.block:{id:e.slug,kind:"mcq",prompt:e.prompt,options:null!=(t=e.options)?t:[]}}function s(e){let t=r.S.interview.difficulties;return e<=1?t.easy:e>=a?t.hard:t.medium}function c(){let e=r.S.interview.fallback;return{question:{slug:"interview-question-of-the-day",topic:e.topic,difficulty:2,xp:l,prompt:e.prompt,options:e.options.map(e=>({id:e.id,label:e.label}))},submission:null,xp_available:l,attempts:0}}function u(e,t){let n="string"==typeof(null==e?void 0:e.option_id)?e.option_id:null,i="b"===n;return{outcome:i?"correct":"incorrect",is_correct:i,explanation:r.S.interview.fallback.explanation,correct_answer:{option_id:"b"},user_answer:null===n?null:{option_id:n},is_complete:!0,attempts_in_run:t,xp_available:l,xp_awarded:0}}},42940:(e,t,n)=>{"use strict";n.d(t,{w:()=>p});var r=n(79397),i=n(39332),a=n(2317),l=n(75159),o=n(6613),s=n(76378),c=n(29633),u=n(60709),d=n(19408);let p={overview:r.A,learn:i.A,games:a.A,interview:l.A,leaderboard:o.A,achievements:s.A,recruitment:c.A,prizes:u.A,partners:d.A}},51192:()=>{},61947:(e,t,n)=>{"use strict";n.d(t,{$W:()=>r,Of:()=>i});let r=15;function i(e){let t=Number.isFinite(e)?Math.max(0,Math.trunc(e)):0;return t<=0?0:Math.max(5,5*Math.floor(t/5/5+.5))}},73086:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(95155),i=n(12115),a=n(25016),l=n(29485),o=n(15828),s=n(14921),c=n(56030),u=n(5917),d=n(65229),p=n(55642);let f=(0,p.r)(u.A,"pulse"),m=(0,p.r)(d.A,"pulse");function g(e){let{label:t,chosen:n,graded:i,markedCorrect:l=!1,markedWrong:o=!1,disabled:s,tabIndex:c,onClick:u,buttonRef:d,className:p}=e,g=null!=s?s:i,v=i&&!l&&!o;return(0,r.jsxs)("button",{ref:d,type:"button",role:"radio","aria-checked":n,tabIndex:c,disabled:g,onClick:u,className:(0,a.cn)("flex w-full min-w-0 items-center justify-between gap-3 rounded-lg border px-3.5 py-3 text-left text-sm","outline-none transition-colors duration-200 focus-visible:ring-2 focus-visible:ring-primary/40","active:scale-[0.995] motion-reduce:transition-none motion-reduce:active:scale-100","disabled:cursor-default disabled:active:scale-100",!i&&!n&&"border-border/60 hover:border-[var(--iq-line)] hover:bg-[var(--iq-tint)]",!i&&n&&"border-[var(--iq-accent)] bg-[var(--iq-tint-strong)]",v&&"border-border/40",l&&"border-success bg-success/10",o&&"border-destructive bg-destructive/10",p),children:[(0,r.jsx)("span",{className:(0,a.cn)("min-w-0 break-words",v?"text-muted-foreground":"text-foreground"),children:t}
1),l?(0,r.jsx)("span",{"aria-hidden":!0,className:"flex shrink-0",children:(0,r.jsx)(f,{play:!0,className:"h-4 w-4 text-success-text",strokeWidth:2.5})}):null,o?(0,r.jsx)("span",{"aria-hidden":!0,className:"flex shrink-0",children:(0,r.jsx)(m,{play:!0,className:"h-4 w-4 text-destructive-text",strokeWidth:2.5})}):null]})}var v=n(72019);function x(e){var t,n;let{block:u,submitAnswer:d,submission:p,readOnly:f=!1,autoFocusOptions:m=!0,className:x}=e,h=o.S.interview,b=(0,l.Y)(),[y,w]=i.useState(()=>{var e,t;return null!=(t=null==p||null==(e=p.user_answer)?void 0:e.option_id)?t:null}),[k,q]=i.useState(!1),N=!!p||f,_=null==p||null==(t=p.correct_answer)?void 0:t.option_id,j="interview-mcq-".concat(u.id),A=i.useRef([]),C=i.useRef(!1),S=m&&!!d&&!N;i.useEffect(()=>{var e;let t=null==p||null==(e=p.user_answer)?void 0:e.option_id;void 0!==t&&w(t)},[null==p||null==(n=p.user_answer)?void 0:n.option_id]);let M=async()=>{if(!y||k||N||!d)return null;q(!0);try{var e;let t=await d({answer:{option_id:y}});return null!=(e=null==t?void 0:t.is_correct)?e:null}finally{q(!1)}};i.useEffect(()=>{var e;if(!S||C.current)return;C.current=!0;let t=Math.max(0,u.options.findIndex(e=>e.id===y));null==(e=A.current[t])||e.focus({preventScroll:!0})},[S]);let D=e=>{var t;let n=u.options.length,r=(e%n+n)%n;w(u.options[r].id),b.play("selection.change"),null==(t=A.current[r])||t.focus({preventScroll:!0})},P=Math.max(0,u.options.findIndex(e=>e.id===y));return(0,r.jsxs)("div",{className:(0,a.cn)("min-w-0",x),children:[(0,r.jsx)("div",{id:j,className:"text-pretty text-[0.9375rem] font-medium leading-relaxed text-foreground sm:text-base lg:text-[1.0625rem]",children:(0,r.jsx)(c.S,{text:u.prompt})}),(0,r.jsx)("div",{role:"radiogroup","aria-labelledby":j,onKeyDown:e=>{if(N)return;let t=u.options.findIndex(e=>e.id===y);switch(e.key){case"ArrowDown":case"ArrowRight":e.preventDefault(),D(t<0?0:t+1);break;case"ArrowUp":case"ArrowLeft":e.preventDefault(),D(t<0?u.options.length-1:t-1);break;case"Home":e.preventDefault(),D(0);break;case"End":e.preventDefault(),D(u.options.length-1);break;case"Enter":y&&(e.preventDefault(),M())}},className:"mt-4 grid gap-2",children:u.options.map((e,t)=>(0,r.jsx)(g,{label:e.label,chosen:y===e.id,graded:N,markedCorrect:N&&_===e.id,markedWrong:N&&y===e.id&&_!==e.id,tabIndex:N?-1:t===P?0:-1,onClick:()=>{w(e.id),b.play("selection.change")},buttonRef:e=>{A.current[t]=e}},e.id))}),p?(0,r.jsx)("div",{role:"status","aria-live":"polite",className:"min-w-0",children:(0,r.jsx)(v.r,{correct:p.is_correct,verdict:p.is_correct?h.correct:h.incorrect,workingLabel:p.explanation?h.workingLabel:void 0,explanation:p.explanation,renderMarkup:(e,t)=>(0,r.jsx)(c.S,{text:e,revealWords:t})})}):null,N?null:(0,r.jsx)("div",{className:"mt-4 flex justify-end",children:(0,r.jsx)(s.V,{onCheck:M,disabled:!y})})]})}},81715:(e,t,n)=>{"use strict";n.d(t,{D7:()=>f,GC:()=>p,c7:()=>i,hB:()=>v,SP:()=>g,oA:()=>E,wV:()=>M,Z9:()=>P,oF:()=>C,Wo:()=>S,oB:()=>T,kR:()=>F,Rd:()=>R,x1:()=>L,ze:()=>D,M4:()=>w,yZ:()=>I});var r=n(72668);let i=["unsolved","attempted","correct"];async function a(){return(0,r.px)("/learn/interview/questions",{onError:"throw"})}async function l(e){return(0,r.px)("/learn/interview/daily?day=".concat(encodeURIComponent(e)),{onError:"throw"})}async function o(e){return(0,r.px)("/learn/interview/daily/submit",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({answer:e}),onError:"throw"})}async function s(e,t){return(0,r.px)("/learn/interview/questions/".concat(encodeURIComponent(e),"/grade"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({answer:t}),onError:"throw"})}var c=n(15828),u=n(61947),d=n(13621);let p=["easy","medium","hard"],f={easy:1,medium:2,hard:3},m=["mcq","numeric","slider","drag_order","code_predict"];class g extends Error{constructor(e){super("No interview question for ".concat(e)),this.day=e,this.name="InterviewDayUnavailableError"}}class v extends Error{constructor(){super("Answering the question of the day requires an account"),this.name="InterviewAuthRequiredError"}}function x(e){return e.toLowerCase().replace(/[^a-z0-9]/g,"")}function h(e){return new Map(e.map(e=>[x(e),e]))}let b=c.S.interviewBank.topics,y=h(Object.keys(b));function w(e){let t=y.get(x(e));
1return t?b[t]:e.split(/[-_\s]+/).filter(Boolean).map((e,t)=>0===t?e.charAt(0).toUpperCase()+e.slice(1):e).join(" ")}let k=h(p),q=h(m),N=h(i),_=["python","javascript","typescript","sql"];function j(e,t){let n="number"==typeof e?e:Number(e);return Number.isFinite(n)?n:t}function A(e){var t,n,r,i;if(!(null==e?void 0:e.slug))return null;let a=function(e,t){var n,r;if(!(null==e?void 0:e.prompt))return null;let i=null!=(n=e.kind?q.get(x(e.kind)):"mcq")?n:"mcq",a={id:"interview-bank-".concat(t),prompt:e.prompt};switch(i){case"numeric":return{...a,kind:"numeric",units:e.units};case"slider":{let t=j(e.min,0),n=j(e.max,t+100),r=Math.max(j(e.step,1),Number.EPSILON);if(n<=t)return null;return{...a,kind:"slider",min:t,max:n,step:r,units:e.units}}case"drag_order":{let t=Array.isArray(e.items)?e.items.map(String).filter(Boolean):[];if(t.length<2)return null;return{...a,kind:"drag_order",items:t}}case"code_predict":{if(!e.code)return null;let t=null!=(r=_.find(t=>t===e.language))?r:"python";return{...a,kind:"code_predict",code:e.code,language:t}}default:{let t=Array.isArray(e.options)?e.options.filter(e=>e&&void 0!==e.id).map(e=>({id:String(e.id),label:String(e.label)})):[];if(0===t.length)return null;return{...a,kind:"mcq",options:t}}}}(e.block,e.slug);if(!a)return null;let l=function(e){if("number"==typeof e)return p[Math.min(2,Math.max(0,e-1))];if("string"==typeof e){let t=k.get(x(e));if(t)return t;let n=Number(e);if(Number.isFinite(n))return p[Math.min(2,Math.max(0,n-1))]}return"medium"}(e.difficulty),o=w(null!=(t=e.topic)?t:"");return{id:e.slug,topic:null!=(n=e.topic)?n:"",difficulty:l,level:f[l],xp:Number.isFinite(e.xp)?Number(e.xp):0,bankXp:Number.isFinite(e.bank_xp)?Number(e.bank_xp):(0,u.Of)(Number.isFinite(e.xp)?Number(e.xp):0),prompt:a.prompt,kind:a.kind,block:a,day:null!=(r=e.day)?r:"",state:function(e){if("string"==typeof e){let t=N.get(x(e));if(t)return t}return"unsolved"}(e.state),searchText:[a.prompt,o,null!=(i=e.topic)?i:"",c.S.interviewBank.difficulties[l],c.S.interviewBank.kinds[a.kind]].join(" ").toLowerCase()}}async function C(){var e;let t=await a(),n=null!=(e=null==t?void 0:t.questions)?e:[],r=Array.isArray(null==t?void 0:t.answered_days)?t.answered_days.filter(e=>"string"==typeof e):[];return{questions:n.map(A).filter(e=>null!==e),personalized:n.some(e=>null!=e.state),answeredDays:r}}async function S(e){var t,n,i,a,o;let s;try{s=await l(e)}catch(t){if(t instanceof r.hD&&t.status>=400&&t.status<500)throw new g(e);throw t}let c=s?A(s.question):null;if(!c)throw new g(e);return{question:c,submission:null!=(n=null==s?void 0:s.submission)?n:null,xpAvailable:null!=(i=null==s?void 0:s.xp_available)?i:c.xp,attempts:null!=(a=null==s?void 0:s.attempts)?a:0,isToday:null!=(o=null==s||null==(t=s.question)?void 0:t.is_today)?o:c.day===D()}}async function M(e){try{let t=await o(e);if(!t)throw Error("The answer could not be graded");return t}catch(e){if(e instanceof r.hD&&401===e.status)throw new v;throw e}}function D(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,d.i)();return(0,d.c4)(e)}function P(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,d.i)(),n=(null!=e?e:[]).map(e=>e.day).filter(Boolean).sort()[0];if(!n)return(0,d.Xt)(t,-119);let r=(0,d.yX)(n);return r>t?t:r}let E={query:"",topic:null,difficulty:null,state:null,kind:null};function F(e){return""!==e.query.trim()||null!==e.topic||null!==e.difficulty||null!==e.state||null!==e.kind}function I(e){let t=new Set;for(let n of e)n.topic&&t.add(n.topic);return[...t].sort((e,t)=>w(e).localeCompare(w(t)))}function R(e){let t=new Set;for(let n of e)t.add(n.kind);return m.filter(e=>t.has(e))}function T(e,t){let n=t.query.trim().toLowerCase().split(/\s+/).filter(Boolean);return e.filter(e=>(!t.topic||e.topic===t.topic)&&(!t.difficulty||e.difficulty===t.difficulty)&&(!t.state||e.state===t.state)&&(!t.kind||e.kind===t.kind)&&n.every(t=>e.searchText.includes(t)))}async function L(e,t){let n=await s(e,t);if(!n)throw Error("The answer could not be graded");return n}},82847:(e,t,n)=>{"use strict";n.d(t,{DifficultyMeter:()=>s});var r=n(95155);n(12115);var i=n(25016),a=n(28264),l=n(15828),o=n(38452);function s(e){let{level:t,label:n,showLabel:s=!0,className:c}=e;return(0,r.jsxs)("span",{className:(0,i.cn)("inline-flex items-center gap-1.5",c),"aria-label":(0,a.G)(l.S.interview.a11y.difficulty,{difficulty:n}
1),children:[(0,r.jsx)("span",{"aria-hidden":!0,className:"flex items-end gap-[2px]",children:Array.from({length:o.Yg},(e,n)=>(0,r.jsx)("span",{className:(0,i.cn)("w-[3px] rounded-[1px] transition-colors",0===n?"h-[5px]":1===n?"h-[8px]":"h-[11px]",n<t?"bg-[var(--iq-accent)]":"bg-foreground/15")},n))}),s?(0,r.jsx)("span",{className:"text-[0.6875rem] font-medium text-muted-foreground",children:n}):null]})}},95916:(e,t,n)=>{"use strict";n.d(t,{l:()=>o});var r=n(95155);n(12115);var i=n(25016),a=n(82847),l=n(17748);function o(e){let{topic:t,level:n,difficulty:o,leading:s,after:c,right:u,rail:d=!0,className:p,rightClassName:f}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:(0,i.cn)("flex min-w-0 flex-wrap items-center gap-x-3 gap-y-2",p),children:[s,(0,r.jsx)("span",{className:"rounded-full border border-[var(--iq-line)] bg-[var(--iq-tint)] px-2 py-0.5 text-[0.6875rem] font-medium text-muted-foreground",children:t}),(0,r.jsx)(a.DifficultyMeter,{level:n,label:o}),c,u?(0,r.jsx)("span",{className:(0,i.cn)("flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1 sm:ml-auto",f),children:u}):null]}),d?(0,r.jsx)("div",{"aria-hidden":!0,className:"mt-3 h-px w-full shrink-0 rounded-full",style:{backgroundImage:l.X0}}):null]})}}}]);

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.