1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:interviewchamp-web":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="265e6130-5cb3-4559-8b85-0cc72badf053",e._sentryDebugIdIdentifier="sentry-dbid-265e6130-5cb3-4559-8b85-0cc72badf053")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{3693:(e,t,n)=>{"use strict";n.d(t,{N:()=>d,T:()=>c});var r=n(12115),i=n(60644),a=n(68090);let o=()=>()=>{},s=()=>"new"===(0,a.Pq)(),l=()=>!1;function c(){let e=(0,i.sY)(),t=(0,r.useSyncExternalStore)(o,s,l);return(null==e?void 0:e.user)?!0===e.user.dashboard_v2:(null==e?void 0:e.loading)===!0&&t}let d={card:"rounded-[28px] border-0 bg-white shadow-sm ring-1 ring-gray-200/60 dark:bg-gray-900 dark:ring-gray-800",cardSoft:"rounded-[28px] border-0 bg-gradient-to-br from-indigo-50 to-violet-50 text-gray-900 shadow-none ring-1 ring-indigo-100 dark:from-gray-900 dark:to-gray-900 dark:text-gray-50 dark:ring-gray-800",inset:"rounded-[22px] border-0 bg-gray-50 ring-1 ring-gray-100 dark:bg-gray-800/60 dark:ring-gray-800",pill:"rounded-full",pillPrimary:"rounded-full bg-gradient-brand text-white shadow-brand-sm hover:opacity-95",pillLight:"rounded-full border-0 bg-white text-gray-900 shadow-none ring-1 ring-gray-200 hover:bg-gray-50 dark:bg-gray-900 dark:text-gray-50 dark:ring-gray-700",selected:"bg-indigo-50 text-indigo-700 shadow-none dark:bg-indigo-500/15 dark:text-indigo-200",link:"text-[15px] font-semibold text-indigo-700 hover:underline dark:text-indigo-300",mainButton:"inline-flex h-11 items-center justify-center gap-2 rounded-xl bg-gradient-brand px-5 text-[15px] font-semibold text-white shadow-brand-sm transition-opacity hover:opacity-95",secondaryButton:"inline-flex h-10 items-center justify-center gap-2 rounded-[10px] bg-white px-3.5 text-[15px] font-semibold text-gray-900 ring-1 ring-gray-200 transition-colors hover:bg-gray-50 dark:bg-gray-900 dark:text-gray-50 dark:ring-gray-700",line:"flex flex-wrap items-center gap-3 rounded-2xl bg-white px-4 py-3 text-[15px] text-gray-700 ring-1 ring-gray-200/60 dark:bg-gray-900 dark:text-gray-200 dark:ring-gray-800"}},9600:(e,t,n)=>{"use strict";n.d(t,{ChampSupportChat:()=>I});var r=n(95155),i=n(12115),a=n(20063),o=n(15239),s=n(52619),l=n.n(s),c=n(65229),d=n(35299),u=n(18085),h=n(5937),p=n(60644),m=n(3693),g=n(28954),f=n(4695),b=n(14829),w=n(25016);let v=[{label:"How do I start a live interview?",prompt:"How do I start a live interview session in the desktop app?"},{label:"Billing question",prompt:"I have a billing question about my subscription."},{label:"Found a bug",prompt:"I think I found a bug â "},{label:"Feature idea",prompt:"I have a feature idea for InterviewChamp.AI: "}],x="/support",y=/^https?:\/\/(?:www\.)?interviewchamp\.ai(\/\S*)?$/i,k=/^\/[a-z][\w\-/]*(?:\?[\w=&%\-.]*)?(?:#[\w\-=&]*)?$/i,j=/^([("'â*_`]*)(.*?)([)"'â.,!?;:*_`]*)$/,N=/[*_`]/g;function A(e){let{text:t,onOpen:n}=e;return(0,r.jsx)(r.Fragment,{children:(null!=t?t:"").split(/(\s+)/).map((e,t)=>{var a;let[,o="",s="",c=""]=null!=(a=j.exec(e))?a:[],d=function(e){var t;let n=y.exec(e);if(!n)return k.test(e)?e:null;let r=null!=(t=n[1])?t:"/";return"/"===r||k.test(r)?r:null}(s);return d?(0,r.jsxs)(i.Fragment,{children:[o.replace(N,""),(0,r.jsx)(l(),{href:d,onClick:n,className:"font-semibold text-indigo-700 underline underline-offset-2 hover:text-indigo-900",children:s}),c.replace(N,"")]},t):(0,r.jsx)(i.Fragment,{children:e},t)})})}function I(){var e,t,n;let s=(0,p.sY)(),y=null!=(e=null==s?void 0:s.isSignedIn)&&e,k=null==(t=null==s?void 0:s.loading)||t,j=null!=(n=(0,a.usePathname)())?n:"/",N=(0,m.T)()&&j===x,I=!k&&y&&!N&&(j===x||j.startsWith("".concat(x,"/"))),[C,S]=(0,i.useState)(!1),[E,_]=(0,i.useState)(""),{messages:T,sending:P,error:L,send:q}=(0,b.nd)(C),D=(0,f.v)(),O=(0,i.useRef)(null),M=(0,i.useRef)(null);(0,i.useEffect)(()=>
1{if(!C)return;let e=O.current;e&&(e.scrollTop=e.scrollHeight)},[T,C,P]),(0,i.useEffect)(()=>{if(!C)return;let e=setTimeout(()=>{var e;return null==(e=M.current)?void 0:e.focus()},80);return()=>clearTimeout(e)},[C]);let R=(0,i.useCallback)(async e=>{e.trim()&&!P&&(_(""),await q(e))},[P,q]),F=(0,i.useCallback)(e=>{e.preventDefault(),R(E)},[E,R]),B=(0,i.useCallback)(e=>{(0,g.aC)(e,"supportChatSend")&&(e.preventDefault(),R(E))},[E,R]);return I?(0,r.jsxs)("div",{className:"fixed bottom-20 right-4 z-[120] flex flex-col items-end lg:bottom-4","data-testid":"champ-support-chat",children:[C?(0,r.jsxs)("div",{className:(0,w.cn)("mb-3 flex w-[min(380px,calc(100vw-2rem))] flex-col overflow-hidden rounded-2xl border border-white/20 bg-white/95 shadow-2xl backdrop-blur-xl","animate-in fade-in slide-in-from-bottom-2 duration-150"),style:{height:"min(560px, calc(100vh - 6rem))"},children:[(0,r.jsxs)("header",{className:"flex items-center justify-between gap-2 border-b border-gray-200 bg-gradient-to-r from-indigo-600 to-violet-600 px-4 py-3 text-white",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"relative h-8 w-8 overflow-hidden rounded-full bg-white/20 ring-2 ring-white/30",children:(0,r.jsx)(o.default,{src:"/icon.png",alt:"",fill:!0,sizes:"32px",className:"object-cover",unoptimized:!0})}),(0,r.jsxs)("div",{className:"leading-tight",children:[(0,r.jsx)("div",{className:"text-sm font-semibold",children:"Chat with Champ"}),(0,r.jsx)("div",{className:"text-xs text-white/80",children:"Product questions only \xb7 founder reads every message"})]})]}),(0,r.jsxs)("button",{type:"button","aria-label":"Close chat",onClick:()=>S(!1),className:"inline-flex items-center gap-1 rounded-full bg-white/15 px-2.5 py-1 text-xs font-semibold text-white transition hover:bg-white/25 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/60",children:[(0,r.jsx)(c.A,{className:"h-3.5 w-3.5","aria-hidden":!0}),"Close"]})]}),(0,r.jsxs)("div",{ref:O,className:"flex-1 space-y-3 overflow-y-auto bg-gradient-to-b from-gray-50 to-white px-4 py-4 text-sm text-gray-800",children:[0===T.length?(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)("div",{className:"rounded-2xl rounded-bl-md bg-indigo-50 px-4 py-3 text-gray-800",children:"Hi! I'm Champ â I can help with InterviewChamp.AI questions (billing, the desktop app, live overlay, resume builder, bugs). What's up?"}),(0,r.jsx)("div",{className:"flex flex-wrap gap-2 pt-1",children:v.map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>{var t;_(e.prompt),null==(t=M.current)||t.focus()},className:"rounded-full border border-gray-200 bg-white px-3 py-1 text-xs text-gray-700 transition hover:border-indigo-300 hover:bg-indigo-50 hover:text-indigo-700",children:e.label},e.label))})]}):T.map(e=>(0,r.jsx)("div",{className:(0,w.cn)("flex","user"===e.role?"justify-end":"justify-start"),children:(0,r.jsx)("div",{className:(0,w.cn)("max-w-[85%] whitespace-pre-wrap break-words rounded-2xl px-4 py-2.5 text-sm leading-relaxed shadow-sm","user"===e.role?"rounded-br-md bg-gradient-to-br from-indigo-600 to-violet-600 text-white":"rounded-bl-md bg-white text-gray-800 ring-1 ring-gray-200"),children:"user"===e.role?e.content:(0,r.jsx)(A,{text:e.content,onOpen:()=>S(!1)})})},e.id)),P?(0,r.jsx)("div",{className:"flex justify-start",children:(0,r.jsxs)("div",{className:"flex items-center gap-1 rounded-2xl rounded-bl-md bg-white px-4 py-3 text-gray-500 shadow-sm ring-1 ring-gray-200",children:[(0,r.jsx)("span",{className:"h-1.5 w-1.5 animate-bounce rounded-full bg-gray-400 [animation-delay:-0.3s]"}),(0,r.jsx)("span",{className:"h-1.5 w-1.5 animate-bounce rounded-full bg-gray-400 [animation-delay:-0.15s]"}),(0,r.jsx)("span",{className:"h-1.5 w-1.5 animate-bounce rounded-full bg-gray-400"})]})}):null,L?(0,r.jsx)("div",{className:"rounded-md border border-red-200 bg-red-50 px-3 py-2 text-xs text-red-700",children:L}):null]}),(0,r.jsxs)("form",{onSubmit:F,className:"border-t border-gray-200 bg-white/95 p-3 backdrop-blur",children:[(0,r.jsxs)("p",{className:"mb-2 px-1 text-[13px] text-gray-600",children:["Want a person?"," ",(0,r.jsx)(l(),{href:"/support?tab=contact",onClick:()=>S(!1),className:"font-semibold text-indigo-700 hover:underline",children:"Message the team"})]}),(0,r.jsxs)("div",{className:"flex items-end gap-2",children:[(0,r.jsx)("textarea",{ref:M,value:E,onChange:e=>_(e.target.value),onKeyDown:B,placeholder:"Ask about InterviewChamp.AIâ¦",rows:1,maxLength:4e3,disabled:P,className:"max-h-32 flex-1 resize-none rounded-xl border border-gray-200 bg-white px-3 py-2 text-sm text-gray-900 placeholder:text-gray-400 focus:border-indigo-400 focus:outline-none focus:ring-2 focus:ring-indigo-100 disabled:cursor-not-allowed disabled:bg-gray-50"}),(0,r.jsx)("button",{"data-assistant":"confirm",type:"submit",disabled:P||0===E.trim().length,"aria-label":"Send message",className:"inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-gradient-to-br from-indigo-600 to-violet-600 text-white shadow transition hover:from-indigo-500 hover:to-violet-500 disabled:cursor-not-allowed disabled:opacity-40",children:P?(0,r.jsx)(d.A,{className:"h-4 w-4 animate-spin"}):(0,r.jsx)(u.A,{className:"h-4 w-4"})})]}),(0,r.jsxs)("p",{className:"mt-2 px-1 text-[11px] text-gray-400",children:["Champ answers questions about InterviewChamp.AI only. Press"," ",(0,g.hV)("supportChatSend",D)," to send,"," ",(0,g.hV)("supportChatNewLine",D)," for a new line."]})]})]}):null,(0,r.jsxs)("button",{type:"button",onClick:()=>S(e=>!e),"aria-label":C?"Close support chat":"Open support chat","aria-expanded":C,className:(0,w.cn)("group relative flex items-center gap-2 rounded-full bg-gradient-to-br from-indigo-600 to-violet-600 px-3 py-2 text-sm font-semibold text-white shadow-lg ring-2 ring-white/40 transition","hover:from-indigo-500 hover:to-violet-500 hover:shadow-xl","focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-indigo-300"),children:[(0,r.jsxs)("span",{className:"relative inline-flex h-8 w-8 items-center justify-center overflow-hidden rounded-full bg-white/15",children:[(0,r.jsx)(o.default,{src:"/icon.png",alt:"",fill:!0,sizes:"32px",className:"object-cover",unoptimized:!0}),C?null:(0,r.jsx)("span",{className:"absolute -right-0.5 -top-0.5 inline-flex h-2.5 w-2.5 rounded-full bg-emerald-400 ring-2 ring-white"})]}),(0,r.jsx)("span",{className:"hidden pr-1 sm:inline",children:C?"Hide chat":"Chat with Champ"}),C?(0,r.jsx)(c.A,{className:"h-4 w-4 sm:hidden","aria-hidden":!0}):(0,r.jsx)(h.A,{className:"h-4 w-4 sm:hidden","aria-hidden":!0})]})]}):null}},11080:(e,t,n)=>{"use strict";n.d(t,{DesktopNudgeModal:()=>E,G:()=>S});var r=n(95155),i=n(12115),a=n(52619),o=n.n(a),s=n(20063),l=n(79451),c=n(70532),d=n(57828),u=n(76482),h=n(95740),p=n(39867),m=n(34661),g=n(54679),f=n(60644),b=n(69714),w=n(72954),v=n(3693),x=n(27694),y=n(52301),k=n(28954);
1let j="ic_desktop_nudge_dismissed_until",N="ic_mac_app_coming_soon_seen",A=[/^\/sessions(\/|$)/,/^\/interview(\/|$)/],I=/^\/sessions\/?$/,C="inline-flex h-11 items-center justify-center gap-2 rounded-lg bg-gradient-to-r from-indigo-600 to-violet-600 px-5 text-sm font-semibold text-white shadow-md transition-all hover:shadow-lg hover:brightness-110 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-2";function S(){try{let e=Date.now()+6048e5;window.localStorage.setItem(j,String(e))}catch(e){}}function E(){var e;let t=(0,s.usePathname)(),[n,a]=(0,i.useState)(null),o=(0,v.T)(),l=!!(null==(e=(0,f.sY)())?void 0:e.loading)&&I.test(null!=t?t:"");(0,i.useEffect)(()=>{l||a(function(e,t){if(!(e&&A.some(t=>t.test(e)))||t&&I.test(null!=e?e:"")||(0,b.z)()||"undefined"!=typeof navigator&&(0,x.f$)(navigator.userAgent))return null;let n=(0,w.UX)();return(0,w.TU)(n)?!function(){try{let e=window.localStorage.getItem(j);if(!e)return!1;let t=parseInt(e,10);if(Number.isNaN(t))return!1;return Date.now()<t}catch(e){return!1}}()?{kind:"install",os:n}:null:"macos"===n&&!function(){try{return"1"===window.localStorage.getItem(N)}catch(e){return!1}}()?{kind:"mac-coming-soon"}:null}(t,o))},[t,o,l]);let c=()=>{if((null==n?void 0:n.kind)==="mac-coming-soon")try{window.localStorage.setItem(N,"1")}catch(e){}else S();a(null)};return n?(0,r.jsx)(g.lG,{open:!0,onOpenChange:e=>{e||c()},children:(0,r.jsx)(g.Cf,{className:"max-w-lg p-0 sm:p-0 overflow-hidden",children:"install"===n.kind?(0,r.jsx)(T,{os:n.os,onContinueInBrowser:c,onDownload:c}):(0,r.jsx)(P,{onContinueInBrowser:c})})}):null}function _(e){let{icon:t,title:n,description:i}=e;return(0,r.jsx)("div",{className:"bg-gradient-to-br from-indigo-600 via-indigo-600 to-violet-600 px-6 py-6 text-white sm:px-8 sm:py-7",children:(0,r.jsxs)("div",{className:"flex items-start gap-4",children:[(0,r.jsx)("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-xl bg-white/15 backdrop-blur-sm ring-1 ring-white/20",children:t}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)(g.L3,{className:"text-xl font-bold tracking-tight text-white sm:text-2xl",children:n}),(0,r.jsx)(g.rr,{className:"mt-1 text-sm text-indigo-100",children:i})]})]})})}function T(e){let{os:t,onContinueInBrowser:n,onDownload:i}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_,{icon:(0,r.jsx)(l.A,{className:"h-6 w-6","aria-hidden":!0}),title:"Continue in the Desktop app",description:"The browser works, but this is much better in the native app."}),(0,r.jsxs)("div",{className:"px-6 py-6 sm:px-8",children:[(0,r.jsxs)("ul",{className:"space-y-3 text-sm",children:[(0,r.jsx)(L,{icon:(0,r.jsx)(c.A,{className:"h-4 w-4"}),title:"Full Privacy Mode (Pro+)",detail:"".concat(y.F.included,". The browser can't do this.")}),(0,r.jsx)(L,{icon:(0,r.jsx)(d.A,{className:"h-4 w-4"}),title:"Always on top, draggable anywhere",detail:"Float the AI panel over your interview window. No alt-tabbing."}),(0,r.jsx)(L,{icon:(0,r.jsx)(u.A,{className:"h-4 w-4"}),title:"Global keyboard shortcuts",detail:"".concat(["answerNow","analyzeScreen","toggleHide"].map(e=>(0,k.hV)(e,"macos"===t)).join(", ")," â fire from any focused app, not just the browser tab.")}),(0,r.jsx)(L,{icon:(0,r.jsx)(h.A,{className:"h-4 w-4"}),title:"Lower latency on system audio",detail:"Direct OS-level capture instead of browser tab-share fallback."})]}),(0,r.jsxs)("div",{className:"mt-6 flex flex-col gap-2",children:[(0,r.jsxs)(o(),{href:"/download",target:"_blank",rel:"noreferrer",prefetch:!1,onClick:i,className:C,children:[(0,r.jsx)(p.A,{className:"h-4 w-4","aria-hidden":!0}),"windows"===t?"Download for Windows":"Download for Mac"]}),(0,r.jsx)("button",{type:"button",onClick:n,className:"inline-flex h-9 items-center justify-center rounded-lg px-4 text-xs font-medium text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500",children:"Continue in browser anyway"})]}),(0,r.jsx)("p",{className:"mt-3 text-center text-[11px] text-gray-400",children:"We won't ask again for 7 days."})]})]})}function P(e){let{onContinueInBrowser:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_,{icon:(0,r.jsx)(m.A,{className:"h-6 w-6","aria-hidden":!0}),title:"The Mac app is coming soon",description:"Everything works right here in your browser today. When the Mac app is ready, you can download it then."}),(0,r.jsx)("div",{className:"flex flex-col px-6 py-6 sm:px-8",children:(0,r.jsx)("button",{type:"button",onClick:t,className:C,children:"Continue in browser"})})]})}function L(e){let{icon:t,title:n,detail:i}=e;return(0,r.jsxs)("li",{className:"flex items-start gap-3",children:[(0,r.jsx)("div",{className:"mt-0.5 flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-indigo-50 text-indigo-600",children:t}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("p",{className:"font-semibold text-gray-900",children:n}),(0,r.jsx)("p",{className:"mt-0.5 text-xs leading-relaxed text-gray-600",children:i})]})]})}},11317:(e,t,n)=>{Promise.resolve().then(n.bind(n,19834)),Promise.resolve().then(n.t.bind(n,18909,23)),Promise.resolve().then(n.bind(n,29626)),Promise.resolve().then(n.bind(n,46524)),Promise.resolve().then(n.bind(n,77629)),Promise.resolve().then(n.bind(n,9600)),Promise.resolve().then(n.bind(n,11080)),Promise.resolve().then(n.bind(n,31232)),Promise.resolve().then(n.bind(n,80690)),Promise.resolve().then(n.bind(n,33228)),Promise.resolve().then(n.bind(n,85293)),Promise.resolve().then(n.bind(n,89206)),Promise.resolve().then(n.bind(n,70240)
1),Promise.resolve().then(n.bind(n,60644)),Promise.resolve().then(n.bind(n,11484)),Promise.resolve().then(n.t.bind(n,20369,23))},11484:(e,t,n)=>{"use strict";n.d(t,{ThemeProvider:()=>s});var r=n(95155),i=n(12115);let a=(0,i.createContext)({theme:"light",setTheme:()=>{},toggle:()=>{}}),o="ic_theme";function s(e){let{children:t}=e,[n,s]=(0,i.useState)(()=>"undefined"==typeof document?"light":document.documentElement.classList.contains("dark")?"dark":"light");return(0,i.useEffect)(()=>{try{window.localStorage.removeItem(o),document.documentElement.classList.remove("dark")}catch(e){}"light"!==n&&s("light")},[]),(0,i.useEffect)(()=>{document.documentElement.classList.toggle("dark","dark"===n);try{window.localStorage.setItem(o,n)}catch(e){}},[n]),(0,r.jsx)(a.Provider,{value:{theme:n,setTheme:s,toggle:()=>s(e=>"dark"===e?"light":"dark")},children:t})}},13386:(e,t,n)=>{"use strict";n.d(t,{xf:()=>G,aB:()=>en,WI:()=>eo,sD:()=>er,gc:()=>et,Xd:()=>es,CH:()=>ea,b7:()=>ei});var r=n(12115),i=n(37621),a=n(22121),o=n(96177),s=n(90912);function l(e,t,n){var r;let i=t.ownerDocument.defaultView,a=i&&"PointerEvent"in i?i.PointerEvent:void 0;return a?new a(e,n):new(null!=(r=null==i?void 0:i.MouseEvent)?r:MouseEvent)(e,n)}function c(e){let t=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value");return(null==t?void 0:t.set)?n=>t.set.call(e,n):null}let d=e=>e.toLowerCase().replace(RegExp("[^\\p{L}\\p{N}]+","gu")," ").trim();var u=n(53315),h=n(15130);let p={link:6e3,button:4e3,other:2500},m="[role='dialog'], [role='alertdialog']",g="[data-sonner-toast], [role='status']:not(:empty), [role='alert']:not(:empty)";function f(e,t){return Array.from(e.querySelectorAll(t)).filter(e=>!e.closest(h.e)&&!(0,u.FE)(e)).length}function b(e){var t;if("SELECT"===e.tagName){let t=e.options[e.selectedIndex];return t?t.label||t.text:e.value}return"value"in e&&"string"==typeof e.value?e.value:e.isContentEditable&&null!=(t=e.textContent)?t:""}function w(e){let t={},n=e.getAttribute("aria-checked");if("true"===n||"false"===n)t.checked="true"===n;else if("mixed"===n)t.checked="mixed";else if("INPUT"===e.tagName){var r;let n=(null!=(r=e.getAttribute("type"))?r:"").toLowerCase();("checkbox"===n||"radio"===n)&&(t.checked=e.checked)}let i=e.getAttribute("aria-selected");null!==i&&(t.selected="true"===i);let a=e.getAttribute("aria-expanded");null!==a&&(t.expanded="true"===a);let o=e.getAttribute("aria-pressed");return null!==o&&(t.pressed="true"===o),t}function v(e){let t=0,n=e.defaultView;if(!n||!("MutationObserver"in n))return{changes:()=>0,stop:()=>void 0};let r=new n.MutationObserver(e=>{for(let n of e){let e=1===n.target.nodeType?n.target:n.target.parentElement;null!=e&&e.closest(h.e)||(t+=1)}});return r.observe(e.body,{subtree:!0,childList:!0,attributes:!0,characterData:!0}),{changes:()=>t,stop:()=>r.disconnect()}}function x(e,t){let n=e.getAttribute("href");if(!n)return null;try{return new URL(n,t)}catch(e){return null}}function y(e,t){let n=new URL(t);if(e.pathname!==n.pathname)return!1;for(let[t,r]of e.searchParams)if(n.searchParams.get(t)!==r)return!1;return!e.hash||e.hash===n.hash}let k=(e,t)=>e.replace(/\s+/g," ").trim().toLowerCase()===t.replace(/\s+/g," ").trim().toLowerCase();async function j(e,t,n,r,i,a,o){let s=null!=o?o:"link"===e.kind?p.link:"button"===e.kind||"menuitem"===e.kind?p.button:p.other,l=e=>new Promise(t=>setTimeout(t,e));for(let o=0;o<=s;o+=80){if(function(e,t,n,r,i,a){var o,s,l,c;let d=null!=(s=null==(o=i.defaultView)?void 0:o.location.href)?s:"",u=d!==n.url;switch(e.kind){case"link":{let e=n.target?new URL(n.target):t?x(t,n.url):null;return e?y(e,d):u}case"switch":case"checkbox":{if(!t)return!1;let e=null!=(l=r.on)?l:!0!==n.state.checked;return w(t).checked===e}case"radio":return!!t&&!0===w(t).checked;case"option":return!t||!t.isConnected||!0===w(t).selected||!0===w(t).checked;case"tab":return!!t&&!0===w(t).selected;case"textbox":return!!t&&k(b(t),null!=(c=r.value)?c:"");case"select":return!!t&&void 0!==r.value&&k(b(t),r.value);
1case"combobox":return!!t&&(!0===w(t).expanded||f(i,"[role='listbox']")>0);default:{if(u||f(i,m)!==n.dialogs||f(i,g)>n.toasts||!t||!t.isConnected)return!0;let e=w(t);if(e.expanded!==n.state.expanded||e.pressed!==n.state.pressed)return!0;return a>0}}}(e,t(),n,r,i,a()))return!0;await l(80)}return!1}function N(e){return e.querySelectorAll("[role='dialog'], [role='alertdialog'], [role='listbox'], [role='menu']").length}async function A(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>e.isConnected?e:null,i=arguments.length>4?arguments[4]:void 0,a=e.ownerDocument;if(("switch"===t.kind||"checkbox"===t.kind)&&void 0!==n.on&&t.state.checked===n.on||!0===t.state.pressed&&!1!==n.on)return{ok:!0,opened:!1,already:!0};let o=function(e){var t,n;let r=e.ownerDocument,i=null!=(n=null==(t=r.defaultView)?void 0:t.location.href)?n:"",a=e.getAttribute("href")?x(e,i):null;return{url:i,...a?{target:a.href}:{},state:w(e),value:b(e),dialogs:f(r,m),toasts:f(r,g)}}(e),s=N(a),u=v(a);try{var h,p;if("textbox"===t.kind){if(!n.value)return e.focus(),{ok:a.activeElement===e,opened:!1};!function(e,t){if(e.focus({preventScroll:!0}),e.isContentEditable){e.textContent=t,e.dispatchEvent(new InputEvent("input",{bubbles:!0,data:t,inputType:"insertText"}));return}let n=c(e);n?n(t):e.value=t,e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0}))}(e,n.value)}else if("select"===t.kind&&"SELECT"===e.tagName){if(!n.value||!function(e,t){let n=function(e,t){var n,r,i,a;let o=d(t);if(!o)return null;let s=Array.from(e.options).filter(e=>!e.disabled);return null!=(a=null!=(i=null!=(r=null!=(n=s.find(e=>d(e.label||e.text)===o))?n:s.find(e=>d(e.value)===o))?r:s.find(e=>d(e.label||e.text).includes(o)))?i:s.find(e=>o.includes(d(e.label||e.text))&&d(e.label||e.text)))?a:null}(e,t);if(!n)return!1;e.focus({preventScroll:!0});let r=c(e);return r?r(n.value):e.value=n.value,e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0})),!0}(e,n.value))return{ok:!1,opened:!1}}else!function(e){var t,n;let r=e.getBoundingClientRect(),i={bubbles:!0,cancelable:!0,composed:!0,clientX:r.left+r.width/2,clientY:r.top+r.height/2,button:0,buttons:1,pointerId:1,pointerType:"mouse",isPrimary:!0},a=e.ownerDocument.defaultView,o=null!=(t=null==a?void 0:a.MouseEvent)?t:MouseEvent;e.dispatchEvent(l("pointerover",e,i)),e.dispatchEvent(l("pointerenter",e,{...i,bubbles:!1})),e.dispatchEvent(new o("mouseover",i)),e.dispatchEvent(l("pointerdown",e,i)),e.dispatchEvent(new o("mousedown",i)),e instanceof(null!=(n=null==a?void 0:a.HTMLElement)?n:HTMLElement)&&e.focus({preventScroll:!0}),e.dispatchEvent(l("pointerup",e,{...i,buttons:0})),e.dispatchEvent(new o("mouseup",{...i,buttons:0})),e.click()}(e);let m=await j(t,r,o,n,a,u.changes,i),g=null!=(p=null==(h=a.defaultView)?void 0:h.location.href)?p:"",f=m&&(g!==o.url||N(a)!==s||"link"===t.kind||"combobox"===t.kind);return{ok:m,opened:f}}catch(e){return console.error("[site-assistant] a step failed to run:",e),{ok:!1,opened:!1}}finally{u.stop()}}async function I(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:450,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8e3,r=v(e),i=Date.now(),a=-1,o=Date.now();try{for(;Date.now()-i<n;){await new Promise(e=>setTimeout(e,100));let n=r.changes();if(n!==a)a=n,o=Date.now();else if(Date.now()-o>=t&&"complete"===e.readyState)return}}finally{r.stop()}}let C="ic_assistant_pending_step",S="ic_assistant_shown_step";function E(){try{return window.sessionStorage}catch(e){return null}}function _(){try{return"undefined"==typeof document?"":document.referrer}catch(e){return""}}function T(e,t){try{var n;let r=null!=(n=null==t?void 0:t.getItem(e))?n:null;return null==t||t.removeItem(e),r?JSON.parse(r):null}catch(e){return null}}function P(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E();try{null==t||t.setItem(S,JSON.stringify({...e,at:Date.now()}))}catch(e){}}var L=n(37476);let q="data-assistant-highlight",D=L.ju,O="number"==typeof D.duration?D.duration:.18,M=Array.isArray(D.ease)?"cubic-bezier(".concat(D.ease.join(", "),")"):"ease-
1out",R=null;function F(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12e3;null==R||R();let n=e.ownerDocument,r=n.defaultView,i=function(e){try{var t;return!!(null==e||null==(t=e.matchMedia)?void 0:t.call(e,"(prefers-reduced-motion: reduce)").matches)}catch(e){return!1}}(r);try{e.scrollIntoView({block:"center",inline:"nearest",behavior:i?"auto":"smooth"})}catch(t){e.scrollIntoView()}e.setAttribute("".concat(q,"ed"),"true");let a=n.createElement("div");a.setAttribute("data-assistant-ui",""),a.setAttribute(q,""),a.setAttribute("aria-hidden","true"),Object.assign(a.style,{position:"fixed",top:"0",left:"0",zIndex:"2147483000",pointerEvents:"none",willChange:"transform"});let o=n.createElement("div");Object.assign(o.style,{width:"100%",height:"100%",borderRadius:"12px",boxShadow:"0 0 0 3px rgba(99,102,241,0.95), 0 0 0 8px rgba(99,102,241,0.25)",opacity:i?"1":"0",transform:i?"none":"scale(0.96)",transition:i?"none":"opacity ".concat(O,"s ").concat(M,", transform ").concat(O,"s ").concat(M)}),a.appendChild(o),n.body.appendChild(a);let s=0,l=()=>{let t=e.getBoundingClientRect();a.style.width="".concat(t.width+8,"px"),a.style.height="".concat(t.height+8,"px"),a.style.transform="translate(".concat(t.left-4,"px, ").concat(t.top-4,"px)"),s=(null==r?void 0:r.requestAnimationFrame)?r.requestAnimationFrame(l):0};if(l(),!i){var c;null==r||null==(c=r.requestAnimationFrame)||c.call(r,()=>{o.style.opacity="1",o.style.transform="scale(1)"})}let d=null==r?void 0:r.setTimeout(()=>u(),t),u=()=>{s&&(null==r?void 0:r.cancelAnimationFrame)&&r.cancelAnimationFrame(s),void 0!==d&&(null==r||r.clearTimeout(d)),a.remove(),e.removeAttribute("".concat(q,"ed")),R===u&&(R=null)};return R=u,u}var B=n(78337);let z="page_task",U=new Map,H=new Set,Y=null,V=!1;function W(){for(let e of H)e()}function Z(e){return H.add(e),()=>H.delete(e)}let G="Working on itâ¦";function $(){return window.location.pathname}async function J(e){try{return await (0,i.api)("/api/support/chat/step",{method:"POST",json:e})}catch(e){return console.error("[site-assistant] the step pick failed:",e),null}}async function X(e,t,n,r,i){let a="link"===r.kind?x(n,window.location.href):null,o=null!==a&&a.origin===window.location.origin,s=(0,B.uV)(r,i);o&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E();try{null==t||t.setItem(C,JSON.stringify({...e,at:Date.now()}))}catch(e){}}({chatId:e,target:a.href,what:s});let l=!1;try{let e=await A(n,r,i,()=>n.isConnected?n:t().byKey(r.key));return l=e.ok,e}finally{!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E();!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E();try{null==e||e.removeItem(C)}catch(e){}}(t),e.ok&&P({chatId:e.chatId,line:"Done: ".concat(e.what,"."),on:e.on},t)}({ok:l&&o,chatId:e,what:s,on:window.location.href})}}function K(e,t,n){(0,s.QN)("done"===t.kind?o.te.action:o.te.actionFailed,{page:$(),action:"".concat(z,"_").concat(t.kind)}),e&&(Promise.resolve().then(()=>(0,i.api)("/api/support/chat/".concat(encodeURIComponent(e),"/action-result"),{method:"POST",json:{key:z,ok:"done"===t.kind,line:n}})).catch(()=>void 0),"failed"===t.kind&&(0,a.Cp)(Error("assistant page step did not work"),{scope:"site-assistant",page:$(),control:t.control.key.split("|")[0]}))}function Q(e,t){let n=U.get(e);n&&(n.state={...n.state,...t},W())}async function ee(e,t){let n,r=U.get(e);if(!r)return;try{n=await (0,B.ZZ)(r.request,function(e,t){let n=()=>(0,h.T)({isAdmin:e});return{read:n,page:$,step:J,act:(e,r,i)=>X(t,n,e,r,i),highlight:e=>void F(e),settle:()=>I(document),origin:window.location.origin}}(r.isAdmin,r.chatId),t)}catch(e){console.error("[site-assistant] the task stopped:",e),n={kind:"none",steps:[]}}let i=function(e){let t=e.steps.length?"Done: ".concat(e.steps.map(e=>e.what).join(", then "),"."):"",n=e=>t?"".concat(t," ").concat(e):e;switch(e.kind){case"done":return t;case"partial":return n("I couldn't find the rest on this page.");case"yours":let r;return n((r=e.control.name,"This one is yours to press: ".concat(r,". I've highlighted it.")));case"failed":return n("That didn't work â here's the button.");case"which":return n("Which one?");case"none":return"I couldn't find that on this page."}}(n);Q(e,{status:n.kind,line:i,key:"yours"===n.kind||"failed"===n.kind?n.control.ke
1y:void 0,choices:"which"===n.kind?n.choices:void 0}),"which"!==n.kind&&K(r.chatId,n,i),"done"===n.kind&&P({chatId:r.chatId,line:i,on:window.location.href})}function et(e,t,n,r){U.has(e)||(U.set(e,{state:{id:e,status:"working",line:G,startedAt:Date.now()},chatId:t,request:n,isAdmin:r.isAdmin}),Y=e,W(),ee(e,r))}function en(e,t){let n=U.get(e);n&&"which"===n.state.status&&(Q(e,{status:"working",line:G,choices:void 0}),ee(e,{key:t}))}function er(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,h.T)({isAdmin:t}).byKey(e);return!!n&&(F(n),!0)}function ei(e){return(0,r.useSyncExternalStore)(Z,()=>{var t;return null==(t=U.get(e))?void 0:t.state},()=>void 0)}function ea(){return(0,r.useSyncExternalStore)(Z,()=>{var e;return Y?null==(e=U.get(Y))?void 0:e.state:void 0},()=>void 0)}function eo(e){V!==e&&(V=e,W())}function es(){return(0,r.useSyncExternalStore)(Z,()=>V,()=>!1)}function el(e,t,n,r){var i;return U.set(e,{state:{id:e,status:"done",line:n,startedAt:r},chatId:t,request:"",isAdmin:!1}),Y=e,W(),null==(i=U.get(e))?void 0:i.state}null!=function(e){let t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_(),r=T(C,t);if(!r||"string"!=typeof r.chatId||"string"!=typeof r.target||"string"!=typeof r.what||"number"!=typeof r.at||Date.now()-r.at>3e4)return null;try{let t=new URL(r.target),i=""!==n&&new URL(n).origin===t.origin&&y(t,n);return y(t,e)||i?r:null}catch(e){return null}}(e);if(!t)return;let n="Done: ".concat(t.what,"."),r=el("carried-".concat(t.at),t.chatId,n,t.at);return K(t.chatId,{kind:"done",steps:[]},n),P({chatId:t.chatId,line:n,on:e}),r}(window.location.href)||function(){let e=function(){let e=arguments.length>
10&&void 0!==arguments[0]?arguments[0]:_(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){try{return"undefined"==typeof performance?0:Math.round(performance.timeOrigin)}catch(e){return 0}}(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E(),r=T(S,n);if(!r||"string"!=typeof r.chatId||"string"!=typeof r.line||"string"!=typeof r.on||"number"!=typeof r.at||!e||t<=0||t-r.at>2e3)return null;try{let t=new URL(r.on);return new URL(e).origin===t.origin&&y(t,e)?r:null}catch(e){return null}}(void 0,void 0);e&&el("forwarded-".concat(e.at),e.chatId,e.line,e.at)}()},14829:(e,t,n)=>{"use strict";n.d(t,{nd:()=>o});var r=n(12115),i=n(37621);let a="ic_support_chat_id";function o(e){let[t,n]=(0,r.useState)([]),[o,s]=(0,r.useState)(!1),[l,c]=(0,r.useState)(null),[d,u]=(0,r.useState)(null),h=(0,r.useRef)(null);(0,r.useEffect)(()=>{try{let e=sessionStorage.getItem(a);e&&c(e)}catch(e){}},[]);let p=(0,r.useRef)(!1);(0,r.useEffect)(()=>{e&&!p.current&&(p.current=!0,(0,i.api)("/api/support/chat/warm",{method:"POST"}).catch(()=>void 0))},[e]),(0,r.useEffect)(()=>{if(!e||!l||t.length>0)return;let r=!1;return(async()=>{try{let e=await (0,i.api)("/api/support/chat/".concat(l,"/messages"));r||n(e.messages.map(e=>({id:e.id,role:e.role,content:e.content})))}catch(e){if(e instanceof i.ApiError&&404===e.status){try{sessionStorage.removeItem(a)}catch(e){}c(null)}}})(),()=>{r=!0}},[e,l,t.length]);let m=(0,r.useCallback)(async(e,t)=>{let r=e.trim();if(!r||o)return null;u(null),s(!0);let d="local-".concat(Date.now());n(e=>[...e,{id:d,role:"user",content:r,...t?{sent:t}:{}}]);let p=new AbortController;h.current=p;try{let e=await (0,i.api)("/api/support/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...t,chat_id:l,message:r}),signal:p.signal});if(p.signal.aborted)return null;if(!l){c(e.chat_id);try{sessionStorage.setItem(a,e.chat_id)}catch(e){}}return n(t=>[...t,{id:"".concat(e.chat_id,"-").concat(t.length,"-a"),role:"assistant",content:e.reply,reply:e}]),e}catch(t){if(p.signal.aborted)return null;let e="Couldn't send â please try again.";if(t instanceof i.ApiError){let n=t.body;"string"==typeof(null==n?void 0:n.detail)&&(e=n.detail)}return u(e),n(e=>e.filter(e=>e.id!==d)),null}finally{h.current===p&&(h.current=null),p.signal.aborted||s(!1)}},[l,o]);return{messages:t,sending:o,error:d,send:m,stop:(0,r.useCallback)(()=>{let e=h.current;e&&(h.current=null,e.abort(),s(!1),n(e=>[...e,{id:"stopped-".concat(Date.now()),role:"assistant",content:"Stopped. Ask again whenever you're ready."}]))},[])}}},15130:(e,t,n)=>{"use strict";n.d(t,{e:()=>g,T:()=>function e(){var t,n,i,s,x,y,k;let j=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},N=null!=(t=j.root)?t:document,A=null!=(n=j.origin)?n:window.location.origin,I=null!=(i=j.isRendered)?i:w,C=null!=(s=function(e,t){let n=Array.from(e.querySelectorAll(f)).filter(e=>!b(e,t)&&!e.closest(g));return n.length?n[n.length-1]:null}(N,I))?s:N,S=[],E=[],_=new Map;for(let e of Array.from(C.querySelectorAll(p))){let t=(0,r.kp)(e),n=function(e,t){let n=m[t];return n?"combobox"===n&&"SELECT"===e.tagName?"select":n:null}(e,t);if(!n||e.closest(g)||!0===e.disabled||"true"===e.getAttribute("aria-disabled")||null!==e.closest("fieldset[disabled]")||b(e,I)||function(e){var t,n;if("A"!==e.tagName||!(null!=(t=e.getAttribute("href"))?t:"").startsWith("#"))return!1;try{let t=null==(n=e.ownerDocument.defaultView)?void 0:n.getComputedStyle(e);if(!t)return!1;return/rect\(\s*0(?:px)?,?\s+0(?:px)?,?\s+0(?:px)?,?\s+0(?:px)?\s*\)/.test(t.clip)||"inset(50%)"===t.clipPath}catch(e){return!1}}(e))continue;let i="link"===n&&null!=(x=e.getAttribute("href"))?x:void 0;if(i&&!j.isAdmin&&function(e,t){try{let n=new URL(e,t);return n.origin===new URL(t).origin&&/^\/admin(?:\/|$)/.test(n.pathname)}catch(e){return!1}}(i,A))continue;let{name:s,segments:p}=(0,r.eq)(e),w="".concat(n,"|").concat(s.toLowerCase()),v=null!=(y=_.get(w))?y:0;_.set(w,v+1);let N=e.closest(f)?"dialog":e.closest("nav, [role='navigation'], aside, header")?"nav":"page";S.push({id:"c".concat(S.length),key:"".concat(w,"|").concat(v),kind:n,role:t,name:s,segments:p,area:N,state:function(e,t){let n={},r=e.getAttribute("aria-checked");"true"===r||"false"===r?n.checked="true"===r:"mixed"===r?n.checked="mixed":"INPUT"===e.tagName&&("checkbox"===t||"radio"===t)&&(n.checked=e.checked);let i=e.getAttribute("aria-selected");null!==i&&(n.selected="true"===i);let a=e.getAttribute("aria-expanded");null!==a&&(n.expanded="true"===a);let o=e.getAttribute("aria-pressed");return null!==o&&(n.pressed="true"===o),n}(e,n),...void 0!==i?{href:i}:{},risk:(k={kind:n,name:s,marked:null!==e.closest("[".concat(a,'="').concat(o,'"]')),href:i,download:e.hasAttribute("download")},k.marked?"marked":"link"===k.kind&&k.href?function(e,t,n){let r;if(n)return"file";try{r=new URL(e,t)}catch(e){return"leaves-app"}return"mailto:"===r.protocol||"tel:"===r.protocol||"sms:"===r.protocol?"send":"http:"!==r.protocol&&"https:"!==r.protocol||r.origin!==new URL(t).origin?"leaves-app":"/api"===r.pathname||r.pathname.startsWith("/api/")?"server-route":u.test(r.pathname)?"account":"checkout"===r.searchParams.get("intent")?"money":h.test(r.pathname)?"file":null}(k.href,A,!0===k.download):function(e,t){let n=d[e];if(!n)return null;let r=t.replace(/[ââ]/g,"'").replace(/\s+/g," ").trim();if(!r||c.some(e=>e.test(r)))return null;for(let e of n){var i;if(null==(i=l[e])?void 0:i.some(e=>e.test(r)))return e}return null}("link"===k.kind?"button":k.kind,k.name))}),E.push(e)}!function(e,t){var n,i,a;let o=e=>"".concat(e.kind,"|").concat(e.name),s=e=>"link"===e.kind&&e.href?"href:".concat(e.href):e.id,l=new Map;for(let t of e){let e=null!=(n=l.get(o(t)))?n:new Set;e.add(s(t)),l.set(o(t),e)}e.forEach((e,n)=>{var i,a;if(e.name&&(null!=(a=null==(i=l.get(o(e)))?void 0:i.size)?a:0)>1){let i=function(e,t){var n,i;let a=null!=(i=null==(n=e.parentElement)?void 0:n.closest("li, tr, article, [role='row'], [role='listitem'], [role='article']"))?i:null;if(!a){a=e.parentElement;for(let e=0;a&&e<4&&(0,r.Q6)(a).length<=t.length+2;e+=1)a=a.parentElement}let o=v((a?(0,r.Q6)(a):"").replace(t," "));return o.length>80?"".concat(o.slice(0,79),"â¦"):o}(t[n],e.name);i&&(e.context=i)}});let c=e=>"".concat(o(e),"|").concat(e.context),d=function(e,t){var n;let r=new Map;
1for(let i of e)r.set(t(i),(null!=(n=r.get(t(i)))?n:0)+1);return r}(e.filter(e=>e.context),c),u=new Map;for(let t of e){let e=t.context&&null!=(i=d.get(c(t)))?i:0;if(e<2)continue;let n=(null!=(a=u.get(c(t)))?a:0)+1;u.set(c(t),n),t.context="".concat(t.context," (").concat(n," of ").concat(e,")")}}(S,E);let T=new Map(S.map((e,t)=>[e.id,E[t]]));return{controls:S,element:e=>{var t;return null!=(t=T.get(e))?t:null},byKey:t=>{let n=e(j),r=n.controls.find(e=>e.key===t);return r?n.element(r.id):null}}}});var r=n(53315);let i=JSON.parse('{"wp":"data-assistant","vv":"confirm","TZ":{"c":["money","delete","account","send","session","file"],"L":["money","delete","account","session","toggle_send"]},"LZ":{"money":["\\\\bcheck ?out\\\\b","\\\\bsubscribe\\\\b","\\\\bupgrade\\\\b","\\\\bdowngrade\\\\b","\\\\bbuy\\\\b","\\\\bpurchase\\\\b","\\\\bpay(?: now| and| with| for| \\\\$|$)","\\\\bpayment\\\\b","\\\\bbilling\\\\b","\\\\brefund\\\\b","\\\\brenew\\\\b","\\\\bredeem\\\\b","\\\\bclaim\\\\b","\\\\bunlock\\\\b","\\\\bcancel (?:my |your |the )?(?:plan|subscription|membership|renewal|trial)\\\\b","\\\\b(?:change|switch|manage) (?:my |your |the )?(?:plan|subscription)\\\\b","\\\\bstart (?:my |your |a )?(?:free )?trial\\\\b","\\\\bget (?:pro|premium|lifetime|weekly|monthly)\\\\b"],"delete":["\\\\bdelete\\\\b","\\\\bremove\\\\b","\\\\berase\\\\b","\\\\bdiscard\\\\b","\\\\bwipe\\\\b","\\\\bforget\\\\b","\\\\bdeactivate\\\\b","\\\\breset\\\\b","\\\\bclear (?:all|history|everything|data|my)\\\\b"],"account":["\\\\bsign ?out\\\\b","\\\\blog ?out\\\\b","\\\\brevoke\\\\b","\\\\b(?:un)?ban\\\\b","\\\\bclose (?:my |your )?account\\\\b","\\\\b(?:change|set|update) (?:my |your |a |the )?(?:new )?(?:password|email)\\\\b","\\\\bconnect\\\\b","\\\\bauthori[sz]e\\\\b","\\\\bgrant\\\\b","\\\\baccept\\\\b","\\\\bagree\\\\b"],"send":["\\\\bsend\\\\b","\\\\bsubmit\\\\b","\\\\bapply\\\\b","\\\\bshare\\\\b","\\\\binvite\\\\b","\\\\be-?mail\\\\b","\\\\bpublish\\\\b","\\\\bpost\\\\b(?!-)","\\\\bforward\\\\b","\\\\brefer\\\\b"],"session":["\\\\b(?:start|begin|launch|join)\\\\b.*\\\\b(?:interview|session|practice|call|meeting|mock)\\\\b","\\\\bend (?:the |this |my )?(?:interview|session|call|practice)\\\\b"],"file":["\\\\bdownload\\\\b","\\\\bexport\\\\b","\\\\binstall\\\\b","\\\\bupload\\\\b"],"toggle_send":["\\\\bauto-?(?:send|apply|submit)\\\\b","\\\\bsend(?:ing)? (?:applications?|them|it)\\\\b","\\\\bapply(?:ing)? (?:for me|to jobs?)\\\\b","\\\\bshare\\\\b","\\\\bpublic(?:ly)?\\\\b"]},"tp":["\\\\b(?:apply|reset|clear|remove)(?: all| the| this)? (?:filters?|search|selection|sort)\\\\b","\\\\bremove (?:this )?(?:tag|chip)\\\\b","\\\\buntag\\\\b","\\\\bfull ?screen\\\\b","\\\\bto (?:the )?ai\\\\b","\\\\bshare later\\\\b","^(?:play|watch|replay|pause)\\\\b"]}'),a=i.wp,o=i.vv,s=e=>e.map(e=>RegExp(e,"i")),l=Object.fromEntries(Object.entries(i.LZ).map(e=>{let[t,n]=e;return[t,s(n)]})),c=s(i.tp),d={button:i.TZ.c,menuitem:i.TZ.c,switch:i.TZ.L,checkbox:i.TZ.L},u=/\/(?:log|sign)-?out\b/i,h=/\.(?:exe|msi|dmg|pkg|zip|pdf|docx?|csv)$/i,p=["a[href]","button","input","select","textarea","summary","[contenteditable='true']",...["button","link","switch","checkbox","radio","tab","menuitem","menuitemcheckbox","menuitemradio","option","combobox","textbox","searchbox","spinbutton","slider"].map(e=>"[role='".concat(e,"']"))].join(","),m={link:"link",button:"button",menuitem:"menuitem",menuitemcheckbox:"menuitem",menuitemradio:"menuitem",switch:"switch",checkbox:"checkbox",radio:"radio",tab:"tab",option:"option",textbox:"textbox",searchbox:"textbox",spinbutton:"textbox",combobox:"combobox",listbox:"select",slider:"slider"},g="[data-testid='site-assistant'], [data-assistant-ui]",f="[role='dialog'], [role='alertdialog']";function b(e,t){if(e.closest("[inert]"))return!0;for(let t=e;t;t=t.parentElement)if((0,r.FE)(t))return!0;return!t(e)}function w(e){if("function"==typeof e.checkVisibility)try{return e.checkVisibility({visibilityProperty:!0,checkVisibilityCSS:!0})}catch(e){}return!0}let v=e=>e.replace(/\s+/g," ").trim()},18909:()=>{},19834:(e,t,n)=>{"use strict";n.d(t,{UtmBootstrap:()=>a});var r=n(12115),i=n(21100);function a(){return(0,r.useEffect)(()=>{try{let e=(0,i.ue)();e&&(0,i.Z2)(e)}catch(e){}try{let e=(0,i.rO)();e&&(0,i.Ap)(e)}catch(e){}},[]),null}},29626:(e,t,n)=>{"use strict";n.d(t,{Analytics:()=>h});var r=n(95155),i=n(12115),a=n(68321),o=n(20063),s=n(11951),l=n(28569),c=n(53250),d=n(90912),u=n(61946);function h(){let[e,t]=i.useState(0);i.useEffect(()=>{let e=()=>t(e=>e+1);return window.addEventListener(s.YE,e),()=>window.removeEventListener(s.YE,e)},[]);let n=(0,u.N5)(),h=(0,o.usePathname)(),p=(0,o.useSearchParams)(),m=(0,u.$h)(null!=h?h:""),g=m&&!!n.ga4,f=m&&!!n.fb,b=m&&!!n.tiktok,w=m&&!!n.oai,v=i.useRef(!1);i.useEffect(()=>{if(!g)return;if(!v.current){v.current=!0;return}let e=window.requestAnimationFrame(()=>{let e=null==p?void 0:p.toString(),t="".concat(window.location.origin).concat(h).concat(e?"?".concat(e):"");(0,d.oe)(t)});return()=>window.cancelAnimationFrame(e)},[h,p,g]);let x=function(){let e=window.location.href.split("#")[0],t=(0,l.HY)(e);return t===e?"":"gtag('set', ".concat(JSON.stringify({page_location:t}),");")}();return(0,r.jsxs)(r.Fragment,{children:[g&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.default,{src:"https://www.googletagmanager.com/gtag/js?i
1d=".concat(n.ga4),strategy:"afterInteractive"},"ga4-src-".concat(e)),(0,r.jsx)(a.default,{id:"ga4-init",strategy:"afterInteractive",children:"\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n window.gtag = gtag;\n gtag('js', new Date());\n ".concat(x,"\n gtag('config', '").concat(n.ga4,"', (function () {\n var config = {\n anonymize_ip: true,\n send_page_view: true,\n custom_map: { traffic_source_class: 'traffic_source_class' }\n };\n try {\n if (window.localStorage.getItem('").concat(c.cp,"') === '").concat(c.aX,"') {\n config.").concat(c.IX," = '").concat(c.Oj,"';\n }\n } catch (e) {}\n return config;\n })());\n ")},"ga4-init-".concat(e))]}),f&&(0,r.jsx)(a.default,{id:"fb-pixel",strategy:"afterInteractive",children:"\n !function(f,b,e,v,n,t,s)\n {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window,document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', '".concat(n.fb,"');\n fbq('track', 'PageView');\n ")},"fb-pixel-".concat(e)),b&&(0,r.jsx)(a.default,{id:"tt-pixel",strategy:"afterInteractive",children:'\n !function (w, d, t) {\n w.TiktokAnalyticsObject = t;\n var ttq = w[t] = w[t] || [];\n ttq.methods = ["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"];\n ttq.setAndDefer = function (e, n) {\n e[n] = function () { e.push([n].concat(Array.prototype.slice.call(arguments, 0))); };\n };\n for (var i = 0; i < ttq.methods.length; i++) ttq.setAndDefer(ttq, ttq.methods[i]);\n ttq.instance = function (e) {\n var n = ttq._i[e] || [];\n for (var i = 0; i < ttq.methods.length; i++) ttq.setAndDefer(n, ttq.methods[i]);\n return n;\n };\n ttq.load = function (e, n) {\n var r = "https://analytics.tiktok.com/i18n/pixel/events.js";\n ttq._i = ttq._i || {}; ttq._i[e] = [];\n ttq._i[e]._u = r;\n ttq._t = ttq._t || {}; ttq._t[e] = +new Date();\n ttq._o = ttq._o || {}; ttq._o[e] = n || {};\n var o = document.createElement("script");\n o.type = "text/javascript"; o.async = !0;\n o.src = r + "?sdkid=" + e + "&lib=" + t;\n var a = document.getElementsByTagName("script")[0];\n a.parentNode.insertBefore(o, a);\n };\n ttq.load(\''.concat(n.tiktok,"');\n ttq.page();\n }(window, document, 'ttq');\n ")},"tt-pixel-".concat(e)),w&&(0,r.jsx)(a.default,{id:"oai-pixel",strategy:"afterInteractive",children:'\n !function(w,d,s,u){if(w.oaiq)return;var q=function(){q.q.push(arguments)};q.q=[];w.oaiq=q;\n var j=d.createElement(s);j.async=1;j.src=u;var f=d.getElementsByTagName(s)[0];\n f.parentNode.insertBefore(j,f)}(window,document,"script","https://bzrcdn.openai.com/sdk/oaiq.min.js");\n oaiq("init",{pixelId:"'.concat(n.oai,'"});\n oaiq("measure","page_viewed",{type:"contents"});\n ')},"oai-pixel-".concat(e)),(0,u.M)(null!=h?h:"")&&(0,r.jsx)(a.default,{id:"ic-clarity",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:'\n (function(c,l,a,r,i,t,y){\n c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};\n t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;\n y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);\n })(window, document, "clarity", "script", "'.concat(n.clarity,'");\n ')}})]})}}
1,30523:(e,t,n)=>{"use strict";n.d(t,{As:()=>r.As,sY:()=>r.sY});var r=n(60644)},31232:(e,t,n)=>{"use strict";n.d(t,{InternalTrafficMarker:()=>o});var r=n(12115),i=n(53250),a=n(30523);function o(){let{user:e}=(0,a.As)(),t=!!(null==e?void 0:e.is_admin);return(0,r.useEffect)(()=>{!t||(0,i.BG)()||(0,i.O9)()},[t]),null}},33228:(e,t,n)=>{"use strict";n.d(t,{PageViewBeacon:()=>s});var r=n(20063),i=n(12115),a=n(90912);let o=["/admin","/api","/_next"];function s(){let e=(0,r.usePathname)();return(0,i.useEffect)(()=>{e&&(o.some(t=>e.startsWith(t))||(0,a.el)(e))},[e]),null}},46524:(e,t,n)=>{"use strict";n.d(t,{ApplyGuide:()=>L});var r=n(95155),i=n(12115),a=n(20063),o=n(52619),s=n.n(o),l=n(65229),c=n(59618),d=n(95740),u=n(20562);function h(e){let{onOpen:t}=e;return(0,r.jsxs)("button",{type:"button",onClick:t,className:"mt-3 flex w-full items-center gap-2 rounded-2xl border border-indigo-200 bg-white py-2 pl-3 pr-2 text-left shadow-sm ring-4 ring-indigo-500/5 hover:border-indigo-300 hover:ring-indigo-500/10",children:[(0,r.jsx)(d.A,{"aria-hidden":"true",className:"h-4 w-4 shrink-0 text-indigo-600"}),(0,r.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,r.jsx)("span",{className:"block text-sm font-medium text-gray-900",children:"Ask me anything"}),(0,r.jsx)("span",{className:"block truncate text-xs text-gray-500",children:"I'll show you how, or take you there"})]}),(0,r.jsx)("span",{"aria-hidden":"true",className:"inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-indigo-600 to-violet-600 text-white shadow-md shadow-indigo-500/30",children:(0,r.jsx)(u.A,{className:"h-4 w-4"})})]})}var p=n(67909),m=n(35299),g=n(89559),f=n(13386),b=n(22121),w=n(25016);let v="flex flex-col items-center justify-center gap-3 rounded-3xl border border-indigo-200 bg-white p-6 text-center text-sm text-gray-600 shadow-2xl shadow-indigo-500/20 ring-4 ring-indigo-500/10",x=(0,p.default)(()=>Promise.all([n.e(2454),n.e(4879),n.e(6504),n.e(1988),n.e(3847),n.e(1698),n.e(7049),n.e(7033),n.e(1825),n.e(6066)]).then(n.bind(n,86066)).then(e=>e.AssistantChat),{loadableGenerated:{webpack:()=>[86066]},ssr:!1,loading:()=>(0,r.jsx)("div",{className:"".concat(v," h-40"),role:"status","aria-label":"Opening the chat",children:(0,r.jsx)(m.A,{"aria-hidden":"true",className:"h-5 w-5 animate-spin motion-reduce:animate-none text-indigo-600"})})});class y extends i.Component{static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(e){console.error("[site-assistant] the chat failed:",e),(0,b.Cp)(e,{scope:"site-assistant"})}render(){return this.state.failed?(0,r.jsxs)("div",{className:v,role:"alert",children:[(0,r.jsx)("p",{children:"The chat didn't load â usually a fresh update landing."}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>window.location.reload(),className:"inline-flex items-center gap-1.5 rounded-xl bg-gradient-to-r from-indigo-600 to-violet-600 px-4 py-2 font-medium text-white",children:[(0,r.jsx)(g.A,{"aria-hidden":"true",className:"h-4 w-4"}),"Reload"]}),(0,r.jsxs)("button",{type:"button",onClick:this.props.onClose,className:"inline-flex items-center gap-1.5 rounded-xl border border-gray-300 px-4 py-2 font-medium text-gray-800",children:[(0,r.jsx)(l.A,{"aria-hidden":"true",className:"h-4 w-4"}),"Close"]})]})]}):this.props.children}constructor(...e){super(...e),this.state={failed:!1}}}function k(e){let{minimized:t=!1,...n}=e;return(0,i.useEffect)(()=>((0,f.WI)(!t),()=>(0,f.WI)(!1)),[t]),(0,r.jsxs)("div",{className:(0,w.cn)("fixed bottom-5 left-1/2 z-[110] w-[clamp(20rem,calc(100vw-4rem),44rem)] -translate-x-1/2 lg:left-[calc(50%+var(--app-sidebar-width,14rem)/2)] lg:w-[clamp(20rem,calc(100vw-var(--app-sidebar-width,14rem)-6rem),44rem)]",t&&"hidden"),"data-testid":"site-assistant",children:[(0,r.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute -inset-3 -z-10 rounded-[2rem] bg-gradient-to-br from-indigo-100/80 to-violet-100/80 shadow-2xl shadow-indigo-900/15 ring-1 ring-indigo-200/60 backdrop-blur-md","data-testid":"site-assistant-backdrop"}),(0,r.jsx)(y,{onClose:n.onClose,children:(0,r.jsx)(x,{...n,hidden:t})})]})}var j=n(60644),N=n(53290),A=n(96177),I=n(15688),C=n(48227),S=n(61169);let E=["/home","/launchpad","/sessions","/resumes","/mock-ai","/applications","/
1profile","/account","/jobs","/pricing","/apply-for-me","/support","/admin"],_=["/support"],T=["/jobs","/applications"];function P(e,t){return!!e&&t.some(t=>e===t||e.startsWith("".concat(t,"/")))}function L(){var e;let t=(0,j.sY)(),n=(0,a.usePathname)(),o=!!(null==t||null==(e=t.user)?void 0:e.is_admin),d=P(n,E),u=d&&o&&P(n,T),p=d&&!!(null==t?void 0:t.user)&&(0,A.gy)(o),{state:m,busy:g,answer:f,turnOn:b}=(0,S.k)(u),[v,x]=(0,i.useState)("closed");(0,i.useEffect)(()=>{d||x("closed")},[d]);let y=u?null==m?void 0:m.next:null,L=y&&"on_the_way"!==y.kind?y:null;if(!d||!L&&!p)return null;let q=L?(0,C.v)(L):"Need help?";return("chat"===v||"min"===v)&&p?(0,r.jsxs)("div",{className:"hidden lg:block","data-assistant-ui":!0,children:[(0,r.jsx)(k,{page:null!=n?n:"/",minimized:"min"===v,isAdmin:o,onBack:()=>x("help"),onMinimize:()=>x("min"),onClose:()=>x("closed")}),"min"===v&&(0,r.jsxs)("button",{type:"button",onClick:()=>x("chat"),className:(0,w.cn)("fixed right-4 z-[110] flex items-center gap-2 rounded-full bg-gradient-to-r from-indigo-600 to-violet-600 py-1.5 pl-1.5 pr-4 text-sm font-medium text-white shadow-md",P(n,_)?"bottom-20":"bottom-4"),children:[(0,r.jsx)(c.IcLogo,{size:"sm",variant:"mark"}),"Ask me anything"]})]}):(0,r.jsxs)("div",{"data-assistant-ui":!0,className:(0,w.cn)("pointer-events-none fixed right-4 z-[110] hidden w-80 flex-col items-end gap-2 lg:flex [body:has([aria-modal=true])_&]:hidden",P(n,_)?"bottom-20":"bottom-4"),children:["help"===v&&(0,r.jsxs)("section",{"aria-label":L?"Apply for me â what needs you":"Help with this page",className:"pointer-events-auto w-full rounded-2xl border border-gray-200 bg-white p-4 shadow-lg",children:[(0,r.jsxs)("div",{className:"mb-3 flex items-center justify-between",children:[(0,r.jsxs)("span",{className:"flex items-center gap-2 text-sm font-semibold text-gray-900",children:[(0,r.jsx)(c.IcLogo,{size:"sm",variant:"mark"}),L?"Apply for me":"Help with this page"]}),(0,r.jsx)("button",{type:"button","aria-label":"Close",onClick:()=>x("closed"),className:"rounded-lg p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-700",children:(0,r.jsx)(l.A,{className:"h-4 w-4"})})]}),L&&(0,r.jsx)(C.t,{step:L,busy:g,onAnswer:f,onTurnOn:b}),(0,r.jsx)(I.w,{pageTopic:(0,N.Ou)(n),step:L,ask:p?(0,r.jsx)(h,{onOpen:()=>x("chat")}):void 0}),L&&(0,r.jsx)(s(),{href:"/apply-for-me",className:"mt-3 block text-xs font-medium text-indigo-600 hover:underline",children:"Open Apply for me"})]}),(0,r.jsxs)("button",{type:"button","aria-expanded":"help"===v,"aria-label":q,onClick:()=>x(e=>"help"===e?"closed":"help"),className:"pointer-events-auto flex items-center gap-2 rounded-full bg-gradient-to-r from-indigo-600 to-violet-600 py-1.5 pl-1.5 pr-4 text-sm font-medium text-white shadow-md",children:[(0,r.jsx)(c.IcLogo,{size:"sm",variant:"mark"}),q]})]})}},50252:(e,t,n)=>{"use strict";n.d(t,{_n:()=>a,d:()=>o,gu:()=>r,m8:()=>l,nM:()=>i,vb:()=>s});let r=[{key:"not_working_on_sites",label:"Autofill didn't work on my target sites"},{key:"fields_wrong",label:"Fields were filled incorrectly"},{key:"not_enough_sites",label:"Not enough sites supported"},{key:"too_slow",label:"Autofill was too slow"},{key:"ai_answers_unhelpful",label:"AI answers weren't helpful"},{key:"found_a_job",label:"I found a job / no longer searching"},{key:"didnt_know_how",label:"I didn't know how to get started"},{key:"other",label:"Other"}],i=Object.fromEntries(r.map(e=>[e.key,e.label])),a="https://chromewebstore.google.com/detail/jobs-ai-autofill-%E2%80%93-1-clic/jkkdgaccmehbnfdggjmicejpgekhcnpd",o={detect_miss:"Looked like an application, no form found",summon_no_form:"User clicked the icon, no form found",frame_blocked:"Form is in a frame we cannot reach",map_zero_fields:"Form found, but no field could be mapped"},s="sites";function l(e){let t=[];for(let n of(null!=e?e:"").split(/[,\s]+/)){let e=n.trim().toLowerCase().replace(/:\d+$/,"").replace(/^www\./,"");if(e&&!(e.length>253)&&e.includes(".")&&/^[a-z0-9.-]+$/.test(e)&&(t.includes(e)||t.push(e),10===t.length))break}return t}},52301:(e,t,n)=>{"use strict";n.d(t,{F:()=>a});let r="InterviewChamp doesn't show when you share your screen",i="the interviewer can see InterviewChamp if you share your screen",a={included:"Stays private during the call: ".concat(r," (desktop app)"),notIncluded:i.charAt(0).toUpperCase()+i.slice(1),hidden:r,visible:i,inBar:{included:"Full Privacy Mode",notIncluded:"No Full Privacy Mode"}}},53250:(e,t,n)=>{"use strict";n.d(t,{BG:()=>l,IX:()=>o,O9:()=>c,Oj:()=>s,aX:()=>a,cp:()=>i});var r=n(80129);let i="ic_internal_traffic",a="1",o="traffic_type",s="internal";function l(){try{return window.localStorage.getItem(i)===a}catch(e){return!1}}function c(){try{window.localStorage.setItem(i,a)}catch(e){}(0,r.Dz)("ga4","traffic_type_internal",()=>{"function"==typeof window.gtag&&window.gtag("set",{[o]:s})})}},53290:(e,t,n)=>{"use strict";function r(e){var t,n;let r=null!=(n=null==(t=a.find(t=>t.slug===e))?void 0:t.file)?n:e,i="".concat("https://media.interviewchamp.ai","/howto/").concat(encodeURIComponent(r));return{hd:"".concat(i,"-1080.mp4"),sd:"".concat(i,"-720.mp4"),poster:"".concat(i,"-poster.jpg"),chapters:"".concat(i,".vtt")}}n.d(t,{A4:()=>l,OA:()=>a,Ou:()=>s,YE:()=>u,g1:()=>d,iT:()=>r,pm:()=>c});let i=(e,t,n,r,i)=>({slug:e,...i?{file:i}:{}
1,title:t,topics:"string"==typeof n?[n]:[...n],chapters:[],seconds:r}),a=[{slug:"desktop-setup",file:"desktop-setup-v4",title:"How to install and set up the InterviewChamp desktop app (Windows)",topics:["desktop-app"],chapters:[{title:"Download and sign in",start:0},{title:"One practice run",start:25.212},{title:"Set up an interview",start:91.492}],seconds:163.5},{slug:"desktop-overlay",file:"desktop-overlay-v4",title:"How to use the InterviewChamp desktop app in your interview (full walkthrough)",topics:["desktop-app"],chapters:[{title:"Put it where you read",start:0},{title:"The toolbar",start:29.092},{title:"Answers by themselves",start:49.725},{title:"Focus, your teleprompter",start:65.292},{title:"Change an answer",start:81.242},{title:"Answer only when you ask",start:106.482},{title:"Chat and coding questions",start:131.826},{title:"Your settings",start:157.064},{title:"Full Privacy Mode",start:183.751},{title:"Shortcuts and ending",start:208.483}],seconds:230.3},{slug:"web-live-interview",file:"web-live-interview-v2",title:"How to use InterviewChamp in your browser during a live interview (full walkthrough)",topics:["interview"],chapters:[{title:"Share your call",start:0},{title:"Put things where you read",start:32.292},{title:"The top bar",start:63.498},{title:"Getting answers",start:73.725},{title:"Type to it and steer it",start:108.057},{title:"Your settings",start:123.594},{title:"Coding questions on your screen",start:134.208},{title:"Shortcuts and ending",start:144.32}],seconds:163.5},{slug:"web-setup",file:"web-setup-v2",title:"How to set up an interview session in the InterviewChamp web app",topics:["interview"],chapters:[{title:"Set up your session",start:0},{title:"Review and start",start:66.384}],seconds:100.1},{slug:"phone",file:"phone-v2",title:"How to use InterviewChamp on your phone during an interview",topics:["interview"],chapters:[{title:"Set it up on your phone",start:0},{title:"Save your voice",start:61.429},{title:"Answers on your phone",start:84.649},{title:"Settings and ending",start:116.406}],seconds:148.1},{slug:"after-the-interview",file:"after-the-interview-v2",title:"After the interview: your session report, transcript and history (InterviewChamp)",topics:["interview"],chapters:[{title:"Your sessions",start:0},{title:"Your report",start:21.322},{title:"Transcript and history",start:38.271}],seconds:53.7},{slug:"chrome-extension",file:"chrome-extension-v2",title:"How to autofill job applications with the InterviewChamp Chrome extension",topics:["chrome-helper"],chapters:[{title:"Set it up",start:0},{title:"Fill an application",start:55.217},{title:"Check it and submit",start:97.827},{title:"Cover letter and tailored resume",start:125.585},{title:"Your answers and panel settings",start:140.69}],seconds:185.8},{slug:"resume-builder",file:"resume-builder-v2",title:"How to build your resume with AI in the InterviewChamp Resume Builder",topics:["resume"],chapters:[{title:"From your old resume",start:0},{title:"Edit it",start:24.936},{title:"Designs and samples",start:69.243},{title:"Page settings",start:104.632},{title:"Rewrite anything with AI",start:136.796},{title:"Better bullets",start:206.852},{title:"Tailor to a job",start:238.938},{title:"Download and your library",start:264.624}],seconds:309.2},{slug:"jobs",file:"jobs-v2",title:"How to find jobs that fit your resume with InterviewChamp Jobs AI",topics:["jobs"],chapters:[{title:"Find jobs that fit",start:0},{title:"The job page's AI tools",start:41.763},{title:"Track applications",start:68.923}],seconds:93.2},{slug:"mock-interview",file:"mock-interview-v2",title:"How to practice a job interview with Mock AI (InterviewChamp)",topics:["mock-interview"],chapters:[{title:"Start a mock",start:0},{title:"Answer",start:34.143},{title:"Your scorecard",start:74.15}],seconds:103.5},{slug:"account",file:"account-v2",title:"Your InterviewChamp account: profile, settings, password and deleting it",topics:["account"],chapters:[{title:"Your profile",start:0},{title:"Your account",start:22.669},{title:"Sign out and delete",start:41.997}],seconds:57.2},{slug:"getting-started",file:"getting-started-v2",title:"Getting started with InterviewChamp: sign up, set up, and find your way around",topics:["getting-started"],chapters:[{title:"Sign up",start:0},{title:"Set it up",start:19.44},{title:"Find your way around",start:53.249}],seconds:81.2},i("short-desktop-set-up-an-interview","How to set up an interview session in the InterviewChamp desktop app","desktop-app",67.4,"short-desktop-set-up-an-interview-v3"),i("short-desktop-where-you-read","Move the InterviewChamp toolbar to where you read (desktop app)","desktop-app",30.5,"short-desktop-where-you-read-v4"),i("short-teleprompter","Read your answer like a teleprompter: InterviewChamp highlights as you speak (desktop and web)",["desktop-app","interview"],68.6,"short-teleprompter-v3"),i("short-desktop-privacy-mode","How to turn on Full Privacy Mode in the InterviewChamp desktop app","desktop-app",26.5,"short-desktop-privacy-mode-v4"),i("short-web-share-your-screen","How to share your interview tab with InterviewChamp (web app)","interview",33.7,"short-web-share-your-screen-v2"),i("short-web-where-you-read","Put the call and the answer where you read (InterviewChamp web app)","interview",32.9,"short-web-where-you-read-v2"),i("short-web-auto-answer","Auto-answer or ask when you want: getting answers in the InterviewChamp web app","interview",36.1,"short-web-auto-answer-v2"),i("short-web-coding-questions","Coding questions on your screen: InterviewChamp reads them (web app)","interview",11.8,"short-web-coding-questions-v2"),i("short-extension-fill-an-application","Fill a job application in one click with the InterviewChamp extension","chrome-helper",72.1,"short-extension-fill-an-application-v2"),i("short-extension-set-it-up","How to install and set up the InterviewChamp Chrome extension","chrome-helper",56.6,"short-extension-set-it-up-v2"),i("short-extension-cover-letter","Write a cover letter and a tailored resume for any job application","chrome-helper",16.8,"short-extension-cover-letter-v2"),i("short-resume-from-old-resume","Turn your old resume into an editable one with AI","resume",40.1,"short-resume-from-old-resume-v2"),i("short-resume-rewrite-with-ai","Rewrite your resume with AI: the Resume AI box","resume",71.8,"short-resume-rewrite-with-ai-v2"),i("short-resume-tailor-to-a-job","Tailor your resume to a job description with AI","resume",27.4,"short-resume-tailor-to-a-job-v2"),i("short-phone-
1answers","Get interview answers on your phone with InterviewChamp","interview",56.7,"short-phone-answers-v2"),i("short-jobs-find-jobs-that-fit","Find jobs that fit your resume (InterviewChamp Jobs AI)","jobs",34.4,"short-jobs-find-jobs-that-fit-v2"),i("short-jobs-ai-tools","Explain fit, a tailored resume and a cover letter for any job (InterviewChamp)","jobs",21.1,"short-jobs-ai-tools-v3"),i("short-mock-scorecard","Your Mock AI scorecard: what to work on next (InterviewChamp)","mock-interview",22.4,"short-mock-scorecard-v2"),i("short-sessions-report","Read your interview report: score, what to work on, what went well (InterviewChamp)","interview",18.6,"short-sessions-report-v2")],o=[["/resume-builder","resume"],["/resumes","resume"],["/apply-for-me","apply-for-me"],["/applications","apply-for-me"],["/jobs","jobs"],["/sessions","interview"],["/interview","interview"],["/mock-ai","mock-interview"],["/download","desktop-app"],["/profile","account"],["/account","account"],["/launchpad","getting-started"],["/home","getting-started"]];function s(e){if(!e)return null;let t=o.find(t=>{let[n]=t;return e===n||e.startsWith("".concat(n,"/"))});return t?t[1]:null}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;for(let n of e){if(!n)continue;let e=t.find(e=>e.topics.includes(n));if(e)return e}return null}function c(e){let t=Math.max(0,Math.round(e));return"".concat(Math.floor(t/60),":").concat(String(t%60).padStart(2,"0"))}function d(e){return 0===e.chapters.length}function u(e){let t=r(e.slug);return{id:e.slug,title:e.title,seconds:Math.round(e.seconds),src1080:t.hd,src720:t.sd,poster:t.poster}}},53315:(e,t,n)=>{"use strict";n.d(t,{FE:()=>u,Q6:()=>p,eq:()=>f,kp:()=>g});let r={name:"",segments:[]},i=new Set(["button","link","tab","menuitem","menuitemcheckbox","menuitemradio","option","switch","checkbox","radio","treeitem","cell","heading"]),a=new Set(["INPUT","SELECT","TEXTAREA","BUTTON","METER","OUTPUT","PROGRESS"]),o=new Set(["SCRIPT","STYLE","TEMPLATE","NOSCRIPT"]),s=new Set(["INPUT","SELECT","TEXTAREA"]),l=new Set(["A","ABBR","B","BDI","BDO","CITE","CODE","DATA","DFN","EM","I","KBD","LABEL","MARK","Q","S","SAMP","SMALL","SPAN","STRONG","SUB","SUP","TIME","U","VAR"]),c=e=>e.replace(/\s+/g," ").trim();function d(e){let t=e.map(e=>e.segment).filter(Boolean);return t.length?{name:c(e.map(e=>e.raw).join("")),segments:t}:r}function u(e){if(e.hasAttribute("hidden")||"true"===e.getAttribute("aria-hidden"))return!0;let t=e.style;if(t&&("none"===t.display||"hidden"===t.visibility))return!0;try{var n,r;let t=null==(r=e.ownerDocument)||null==(n=r.defaultView)?void 0:n.getComputedStyle(e);if(t&&("none"===t.display||"hidden"===t.visibility))return!0}catch(e){}return!1}function h(e,t){for(let i of Array.from(e.childNodes)){var n,r;if(3===i.nodeType){let e=null!=(n=i.nodeValue)?n:"";t.push({raw:e,segment:c(e)});continue}if(1!==i.nodeType||o.has(i.tagName)||u(i)||s.has(i.tagName))continue;let e=i.getAttribute("aria-label");if(e&&c(e)){t.push({raw:" ".concat(e," "),segment:c(e)});continue}if("IMG"===i.tagName){let e=c(null!=(r=i.getAttribute("alt"))?r:"");e&&t.push({raw:" ".concat(e," "),segment:e});continue}let a=function(e){try{var t,n;let r=null==(n=e.ownerDocument)||null==(t=n.defaultView)?void 0:t.getComputedStyle(e).display;if(r)return!r.startsWith("inline")&&"contents"!==r}catch(e){}return!l.has(e.tagName)}(i);a&&t.push({raw:" ",segment:""}),h(i,t),a&&t.push({raw:" ",segment:""})}}function p(e){let t=[];return h(e,t),c(t.map(e=>e.raw).join(""))}function m(e){let t=c(null!=e?e:"");return t?{name:t,segments:[t]}:r}function g(e){var t,n;let r=null==(t=e.getAttribute("role"))?void 0:t.trim().split(/\s+/)[0];if(r)return r;switch(e.tagName){case"A":return e.hasAttribute("href")?"link":"";case"BUTTON":case"SUMMARY":return"button";case"SELECT":return e.multiple||e.size>1?"listbox":"combobox";case"TEXTAREA":return"textbox";case"INPUT":{let t=(null!=(n=e.getAttribute("type"))?n:"text").toLowerCase();if("checkbox"===t)return"checkbox";if("radio"===t)return"radio";if("range"===t)return"slider";if(["submit","button","reset","image"].includes(t))return"button";if("hidden"===t||"password"===t||"file"===t)return"";return"textbox"}default:return"true"===e.getAttribute("contenteditable")?"textbox":""}}function f(e){let t=e.getAttribute("aria-labelledby");if(t){let n=function(e,t){let n=e.ownerDocument,r=[];
1for(let e of t.split(/\s+/).filter(Boolean)){let t=n.getElementById(e);if(!t)continue;let i=t.getAttribute("aria-label");if(i&&c(i))r.push({raw:" ".concat(i," "),segment:c(i)});else{let e=[];h(t,e),r.push({raw:" ",segment:""},...e,{raw:" ",segment:""})}}return d(r)}(e,t);if(n.name)return n}let n=m(e.getAttribute("aria-label"));if(n.name)return n;if("INPUT"===e.tagName){var r;let t=(null!=(r=e.getAttribute("type"))?r:"text").toLowerCase();if(["submit","button","reset"].includes(t))return m(e.value||("submit"===t?"Submit":""));if("image"===t)return m(e.getAttribute("alt"))}let o=function(e){let t=[];for(let n of function(e){var t;if(!a.has(e.tagName))return[];let n=[],r=e.labels;r&&n.push(...Array.from(r));let i=e.getAttribute("id");if(!n.length&&i){let t="undefined"!=typeof CSS&&CSS.escape?CSS.escape(i):i;n.push(...Array.from(e.ownerDocument.querySelectorAll('label[for="'.concat(t,'"]'))))}let o=null==(t=e.parentElement)?void 0:t.closest("label");return o&&!n.includes(o)&&n.push(o),n}(e))t.push({raw:" ",segment:""}),h(n,t);return d(t)}(e);if(o.name)return o;if(i.has(g(e))){let t=function(e){let t=[];return h(e,t),d(t)}(e);if(t.name)return t}let s=m(e.getAttribute("title"));return s.name?s:m(e.getAttribute("placeholder"))}},54679:(e,t,n)=>{"use strict";n.d(t,{Cf:()=>h,Es:()=>m,L3:()=>g,c7:()=>p,lG:()=>l,rr:()=>f,zM:()=>c});var r=n(95155),i=n(12115),a=n(93409),o=n(65229),s=n(25016);let l=a.bL,c=a.l9,d=a.ZL;a.bm;let u=i.forwardRef((e,t)=>{let{className:n,...i}=e;return(0,r.jsx)(a.hJ,{ref:t,className:(0,s.cn)("fixed inset-0 z-50 bg-black/55 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...i})});u.displayName=a.hJ.displayName;let h=i.forwardRef((e,t)=>{let{className:n,children:i,...l}=e;return(0,r.jsxs)(d,{children:[(0,r.jsx)(u,{}),(0,r.jsxs)(a.UC,{ref:t,className:(0,s.cn)("fixed left-[50%] top-[50%] z-50 grid w-[calc(100vw-2rem)] max-w-lg max-h-[calc(100dvh-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 overflow-y-auto border bg-background p-4 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:w-full sm:rounded-lg sm:p-6",n),...l,children:[i,(0,r.jsxs)(a.bm,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[(0,r.jsx)(o.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});h.displayName=a.UC.displayName;let p=e=>{let{className:t,...n}=e;return(0,r.jsx)("div",{className:(0,s.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...n})};p.displayName="DialogHeader";let m=e=>{let{className:t,...n}=e;return(0,r.jsx)("div",{className:(0,s.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...n})};m.displayName="DialogFooter";let g=i.forwardRef((e,t)=>{let{className:n,...i}=e;return(0,r.jsx)(a.hE,{ref:t,className:(0,s.cn)("text-lg font-bold leading-none tracking-tight",n),...i})});g.displayName=a.hE.displayName;let f=i.forwardRef((e,t)=>{let{className:n,...i}=e;return(0,r.jsx)(a.VY,{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",n),...i})});f.displayName=a.VY.displayName},59618:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IcLogo:()=>u,IcWordmark:()=>d});var r=n(95155),i=n(52619),a=n.n(i),o=n(15239),s=n(25016);let l={xs:{px:24,cls:"h-6 w-6",rounded:"rounded"},sm:{px:32,cls:"h-8 w-8",rounded:"rounded-md"},md:{px:36,cls:"h-9 w-9",rounded:"rounded-lg"},lg:{px:40,cls:"h-10 w-10",rounded:"rounded-xl"},xl:{px:80,cls:"h-20 w-20",rounded:"rounded-2xl"}},c={xs:"text-xs",sm:"text-base max-[389px]:text-sm",md:"text-base",lg:"text-xl",xl:"text-2xl"};function d(e){let{size:t="md",tone:n="dark",className:i}=e;return(0,r.jsxs)("span",{className:(0,s.cn)("font-bold tracking-tight",c[t],"light"===n?"text-gray-900":"text-zinc-50",i),children:["Interview",(0,r.jsx)("span",{className:"light"===n?"text-indigo-600":"text-indigo-400",children:"Champ.AI"})]})}function u(e){let{size:t="md",variant:n="wordmark",tone:i="dark",href:c,className:u}=e,h=l[t],p=(0,r.jsx)(o.default,{src:"/icon.png",alt:"InterviewChamp",width:h.px,height:h.px,priority:!0,className:(0,s.cn)(h.cls,h.rounded,"shrink-0 object-cover border","light"===i?"border-gray-200":"border-zinc-800")}),m="wordmark"===n&&(0,r.jsx)(d,{size:t,tone:i}),g=(0,r.jsxs)(r.Fragment,{children:[p,m]}),f=(0,s.cn)("inline-flex items-center gap-2.5",u);return c?(0,r.jsx)(a(),{href:c,"aria-label":"InterviewChamp.AI home",className:f,children:g}):(0,r.jsx)("span",{"aria-label":"InterviewChamp.AI",className:f,children:g})}}
1,69714:(e,t,n)=>{"use strict";function r(){return void 0!==window.electronAPI}n.d(t,{z:()=>r})},70240:(e,t,n)=>{"use strict";n.d(t,{Toaster:()=>l});var r=n(95155);n(12115);var i=n(20063),a=n(18720);let o="toaster group",s="group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",l=e=>{let{...t}=e,n="/interview"===(0,i.usePathname)();return(0,r.jsx)(a.l$,{theme:"light",position:"top-right",expand:!0,richColors:!0,closeButton:!0,visibleToasts:4,offset:16,gap:8,duration:4e3,className:n?"".concat(o," ").concat("lg:![--offset-top:68px] lg:![--width:min(356px,calc(25vw-28px))]"):o,toastOptions:{classNames:{toast:n?"".concat(s," ").concat("lg:flex-wrap"):s,content:n?"lg:grow lg:basis-[calc(100%-24px)]":void 0,description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-indigo-500 group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t})}},72954:(e,t,n)=>{"use strict";n.d(t,{TU:()=>a,UX:()=>i,YN:()=>o});var r=n(93320);function i(){if("undefined"==typeof navigator)return"other";let e=navigator.userAgent;return/Windows/.test(e)?"windows":/iPhone|iPad|iPod/.test(e)||/Macintosh/.test(e)&&navigator.maxTouchPoints>1?"other":/Mac OS X|Macintosh/.test(e)?"macos":"other"}function a(e){return"windows"===e||"macos"===e&&r.aC}function o(e){return"macos"===e&&a(e)?"Download for Mac":"Download for Windows"}},77629:(e,t,n)=>{"use strict";n.d(t,{BugContextInstaller:()=>a});var r=n(12115),i=n(77925);function a(){return(0,r.useEffect)(()=>{(0,i.x)()},[]),null}},77925:(e,t,n)=>{"use strict";n.d(t,{I:()=>l,x:()=>s});let r=[],i=!1;function a(e,t){if(e)return e.length>t?"".concat(e.slice(0,t),"⦠[truncated]"):e}function o(e){r.push(e),r.length>50&&r.splice(0,r.length-50)}function s(){i||(i=!0,window.addEventListener("error",e=>{try{var t,n,r,i,s;o({ts:new Date().toISOString(),kind:"error",message:null!=(n=a(e.message,400))?n:"(no message)",source:e.filename||e.lineno?"".concat(null!=(r=e.filename)?r:"?",":").concat(null!=(i=e.lineno)?i:"?",":").concat(null!=(s=e.colno)?s:"?"):void 0,stack:a(null==(t=e.error)?void 0:t.stack,1200),url:window.location.href})}catch(e){}}),window.addEventListener("unhandledrejection",e=>{try{var t;let n=e.reason,r=n instanceof Error?n.message:"string"==typeof n?n:(()=>{try{return JSON.stringify(n)}catch(e){return String(n)}})();o({ts:new Date().toISOString(),kind:"unhandledrejection",message:null!=(t=a(r,400))?t:"(no reason)",stack:n instanceof Error?a(n.stack,1200):void 0,url:window.location.href})}catch(e){}}))}function l(){return{capturedAt:new Date().toISOString(),page:{url:window.location.href,referrer:document.referrer||"",pathname:window.location.pathname},client:{userAgent:navigator.userAgent,platform:navigator.platform,language:navigator.language,viewport:{width:window.innerWidth,height:window.innerHeight,devicePixelRatio:window.devicePixelRatio||1},timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,online:"boolean"!=typeof navigator.onLine||navigator.onLine},errors:[...r]}}},78337:(e,t,n)=>{"use strict";n.d(t,{kj:()=>p,zL:()=>c,ZZ:()=>b,uV:()=>h});let r=new Set("a an the my me i to of in on for and or it this that please open show go take with can you could would will do does is are be at by from up into about want need".split(" "));function i(e){return e.toLowerCase().normalize("NFKD").replace(/[Ì-ͯ]/g,"").replace(RegExp("[^\\p{L}\\p{N}]+","gu")," ").split(" ").filter(e=>e.length>1&&!r.has(e))}function a(e,t){if(!t.length)return{kind:"none"};if(1===t.length)return{kind:"one",id:t[0].id};let n=t.map(e=>new Set(i(e.name))),r=new Set([...n[0]].filter(e=>n.every(t=>t.has(e)))),a=new Set(i(e).filter(e=>!r.has(e))),o=t.map((e,t)=>({id:e.id,s:[...n[t]].filter(e=>a.has(e)).length})),s=Math.max(...o.map(e=>e.s)),l=o.filter(e=>e.s===s);return 0===s||l.length>1?{kind:"which",ids:l.map(e=>e.id)}:{kind:"one",id:l[0].id}}let o=/\b(?:turn(?:ed)?|switch|flip|set|put)?\s*(?:it\s+)?on\b|\benable\b|\bactivate\b|\bstart using\b/i,s=/\b(?:turn(?:ed)?|switch|flip|set|put)?\s*(?:it\s+)?off\b|\bdisable\b|\bdeactivate\b|\bstop using\b/i,l=/\b(?:and then|then|and also|after that|afterwards)\b|,|;|\band\b/i;function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e=>
1e.toLowerCase().replace(/\s+/g," ").trim(),r=t?n(e).replace(n(t)," "):e;return!l.test(r)}let d=e=>e.toLowerCase().replace(RegExp("[^\\p{L}\\p{N}+' ]+","gu")," ").replace(/\s+/g," ").trim(),u=new Set("open show see view display go to take me bring up switch jump head over navigate get find where is please can could you i want would like let lets let's us the my a an this that it now just tab page section panel menu screen on in of for".split(" "));function h(e,t){var n,r;let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e.name;switch(e.kind){case"link":case"combobox":return"opened ".concat(a);case"switch":case"checkbox":{let r=null!=(n=t.on)?n:!0!==e.state.checked;return i?"".concat(a," is already ").concat(r?"on":"off"):"turned ".concat(r?"on":"off"," ").concat(a)}case"tab":return"opened the ".concat(a," tab");case"textbox":return t.value?"typed â".concat(t.value,"â in ").concat(a):"put you in ".concat(a);case"select":return"picked ".concat(null!=(r=t.value)?r:"it"," in ").concat(a);case"radio":case"option":return"picked ".concat(a);default:return i?"".concat(a," is already selected"):"pressed ".concat(a)}}function p(e,t,n,r,i,a){return{request:e,page:t,controls:n.filter(e=>e.name).map(e=>({id:e.id,kind:e.kind,segments:e.segments,area:e.area,...void 0!==e.href?{href:function(e,t){if(void 0!==e)try{let n=new URL(e,t);if("http:"!==n.protocol&&"https:"!==n.protocol)return"".concat(n.protocol);if(n.origin!==new URL(t).origin)return"external:https";return"".concat(n.pathname).concat(n.search)}catch(e){return"external:https"}}(e.href,i)}:{},marked:a(e.id),risk:e.risk})),done:r.map(e=>({kind:e.kind,segments:e.segments}))}}function m(e){return{id:e.id,key:e.key,name:e.name}}function g(e){return{...m(e),name:e.context?"".concat(e.name," â ").concat(e.context):e.name}}let f=e=>t=>{var n;return(null==(n=e.controls.find(e=>e.id===t))?void 0:n.risk)==="marked"};async function b(e,t){var n,r,l;let b=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},w=[...null!=(n=b.steps)?n:[]],v=null!=(r=b.page)?r:t.read(),x=b.reply,y=b.key,k=()=>w.length?{kind:"partial",steps:w}:{kind:"none",steps:w};for(let n=0;n<8;n+=1){let n;if(y){let e=v.controls.find(e=>e.key===y);if(!e)return k();n=[e.id]}else{if(x||(x=await t.step(p(e,t.page(),v.controls,w,t.origin,f(v)))),(null==x?void 0:x.choice)==="done")return w.length?{
1kind:"done",steps:w}:{kind:"none",steps:w};if(!x||"control"!==x.choice||!x.id)return k();n=(null==(l=x.group)?void 0:l.length)?x.group:[x.id]}let r=function(e){let t=new Set;return e.filter(e=>{if("link"!==e.kind||!e.href)return!0;let n=JSON.stringify([e.name,e.href]);return!t.has(n)&&(t.add(n),!0)})}(n.map(e=>v.controls.find(t=>t.id===e)).filter(e=>!!e));if(!r.length)return k();let b=a(e,r.map(e=>({id:e.id,name:e.context?"".concat(e.name," ").concat(e.context):e.name})));if("which"===b.kind)return{kind:"which",steps:w,choices:r.filter(e=>b.ids.includes(e.id)).map(g)};let j=r.find(e=>e.id===("one"===b.kind?b.id:n[0])),N=v.element(j.id);if(!N)return k();if(null!==j.risk||!y&&(null==x?void 0:x.press)===!1)return t.highlight(N),{kind:"yours",steps:w,control:m(j)};let A={};if(("switch"===j.kind||"checkbox"===j.kind||void 0!==j.state.pressed)&&(A.on=function(e){let t=s.test(e),n=o.test(e);return(!t||!!n)&&(!!n&&!t||void 0)}(e)),"textbox"===j.kind||"select"===j.kind){let t=y||null==x?void 0:x.value;t?A.value=t:"select"===j.kind&&(A.value=function(e,t){if("SELECT"!==e.tagName)return;let n=Array.from(e.options).filter(e=>!e.disabled&&(e.label||e.text).trim()).map((e,t)=>({id:String(t),name:e.label||e.text})),r=new Set(i(t)),o=n.filter(e=>i(e.name).some(e=>r.has(e)));if(!o.length)return;let s=a(t,o);return"one"===s.kind?n[Number(s.id)].name:void 0}(N,e))}let I=await t.act(N,j,A);if(!I.ok)return t.highlight(N),{kind:"failed",steps:w,control:m(j)};w.push({kind:j.kind,segments:j.segments,name:j.name,what:h(j,A,!0===I.already)}),y=void 0,x=null;let C=c(e,j.name);if(I.opened){if(await t.settle(),C&&function(e,t){let n=d(t).replace(/'/g," ").replace(/\s+/g," ").trim(),r=d(e).replace(/'/g," ").replace(/\s+/g," ").trim();return n.length>=3&&" ".concat(r," ").includes(" ".concat(n," "))}(e,j.name)&&function(e,t){let n=" ".concat(d(t)," ");return" ".concat(d(e)," ").replace(n," ").trim().split(" ").every(e=>!e||u.has(e))}(e,j.name))return{kind:"done",steps:w}}else if(C)return{kind:"done",steps:w};v=t.read()}return{kind:"partial",steps:w}}},80690:(e,t,n)=>{"use strict";n.d(t,{NewLookReveal:()=>s});var r=n(12115),i=n(60644),a=n(68090),o=n(3693);function s(){let e=(0,i.sY)(),t=(0,o.T)(),n=t||!e||null!=e.user||!e.loading,s=(0,a.Li)(t);return(0,r.useEffect)(()=>{if(n)return(0,a.IB)(s)},[n,s]),null}},85293:(e,t,n)=>{"use strict";n.d(t,{QueryProvider:()=>l});var r=n(95155),i=n(12115);n(67909);var a=n(99776),o=n(31461);function s(){return new o.E({defaultOptions:{queries:{staleTime:6e4,gcTime:3e5,refetchOnWindowFocus:!1,retry:1},mutations:{retry:0}}})}function l(e){let{children:t}=e,[n]=(0,i.useState)(s);return function(){let[e,t]=(0,i.useState)(!1);(0,i.useEffect)(()=>{},[])}(),(0,r.jsxs)(a.Ht,{client:n,children:[t,null]})}},89206:(e,t,n)=>{"use strict";n.d(t,{TaskStatusLine:()=>l});var r=n(95155),i=n(12115),a=n(60644),o=n(13386),s=n(97323);function l(){var e,t;let n=(0,o.CH)(),l=(0,o.Xd)(),c=!!(null==(t=(0,a.sY)())||null==(e=t.user)?void 0:e.is_admin),[d,u]=(0,i.useState)(null),h=void 0!==n&&"working"!==n.status&&"which"!==n.status;return((0,i.useEffect)(()=>{if(!n||!h)return;let e=setTimeout(()=>u(n.id),1e4);return()=>clearTimeout(e)},[n,h]),!n||l||d===n.id)?null:(0,r.jsx)("div",{"data-assistant-ui":!0,"data-testid":"task-status-line",className:"fixed bottom-5 left-1/2 z-[115] hidden w-[min(28rem,calc(100vw-2rem))] -translate-x-1/2 rounded-2xl border border-indigo-200 bg-white px-4 py-3 text-sm text-gray-800 shadow-2xl shadow-indigo-500/20 lg:block",children:(0,r.jsx)(s.Ie,{task:n,isAdmin:c})})}},93320:(e,t,n)=>{"use strict";n.d(t,{Cc:()=>o,VU:()=>l,aC:()=>i,pt:()=>c,sp:()=>r,xh:()=>s});let r="2.0.13",i=!0,a="".concat("https://github.com/InterviewChamp-AI/interviewchamp-desktop-releases","/releases/download"),o="".concat(a,"/v").concat(r,"/InterviewChamp.AI-Setup-").concat(r,".exe"),s="".concat(a,"/v").concat(r,"/InterviewChamp.AI-").concat(r,"-arm64.dmg"),l="".concat(a,"/v").concat(r,"/InterviewChamp.AI-").concat(r,".dmg"),c="".concat("https://interviewchamp.ai","/download")},96177:(e,t,n)=>{"use strict";function r(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return t||e}function i(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t||e}n.d(t,{Q5:()=>u,Zv:()=>a,ax:()=>h,dw:()=>i,gy:()=>r,ow:()=>c,rF:()=>s,te:()=>o});let a=3,o={open:"assistant_open",question:"assistant_question",action:"assistant_action_taken",actionFailed:"assistant_action_failed",refused:"assistant_refused_off_topic"},s="Set it up with me",l=["go_home","go_jobs","go_resumes","go_mock_ai","go_sessions","start_interview","go_apply_for_me","go_settings","go_voice_settings","go_download","go_help","go_contact","go_pricing","open_resume","show_video","open_article","next_question","edit_resume"];function c(e){return"string"==typeof e&&l.includes(e)}let d="ic_assistant_resume_command";function u(e,t){try{sessionStorage.setItem(d,JSON.stringify({buildId:e,command:t,at:Date.now()}))}catch(e){}}function h(e){try{let t=sessionStorage.getItem(d);if(!t)return null;let n=JSON.parse(t);if(n.buildId!==e)return null;return sessionStorage.removeItem(d),"number"==typeof n.at&&Date.now()-n.at<12e4&&"string"==typeof n.command&&n.command.trim()?n.command.trim():null}catch(e){return null}}}
1,97323:(e,t,n)=>{"use strict";n.d(t,{Ie:()=>l,ZG:()=>d,e1:()=>c});var r=n(95155),i=n(35299),a=n(5917),o=n(97947),s=n(13386);function l(e){var t,n;let{task:l,isAdmin:c}=e,d=null!=(t=null==l?void 0:l.status)?t:"working";return(0,r.jsxs)("div",{className:"space-y-2","data-testid":"task-status","data-status":d,children:[(0,r.jsxs)("p",{className:"flex items-start gap-1.5",role:"status",children:["working"===d&&(0,r.jsx)(i.A,{"aria-hidden":"true",className:"mt-0.5 h-3.5 w-3.5 shrink-0 animate-spin text-indigo-600 motion-reduce:animate-none"}),"done"===d&&(0,r.jsx)(a.A,{"aria-hidden":"true",className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-emerald-600"}),(0,r.jsx)("span",{children:null!=(n=null==l?void 0:l.line)?n:s.xf})]}),(null==l?void 0:l.key)&&("yours"===d||"failed"===d)&&(0,r.jsxs)("button",{type:"button",onClick:()=>(0,s.sD)(l.key,c),className:"inline-flex items-center gap-1.5 rounded-xl bg-gradient-to-r from-indigo-600 to-violet-600 px-3 py-1.5 text-xs font-medium text-white shadow-sm",children:[(0,r.jsx)(o.A,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),"Show me"]}),"which"===d&&(null==l?void 0:l.choices)&&(0,r.jsx)("div",{className:"flex flex-wrap gap-1.5",children:l.choices.map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>(0,s.aB)(l.id,e.key),className:"rounded-full border border-indigo-200 bg-indigo-50 px-3 py-1.5 text-xs font-medium text-indigo-800 hover:bg-indigo-100",children:e.name},e.key))})]})}function c(e){let{id:t,isAdmin:n}=e;return(0,r.jsx)(l,{task:(0,s.b7)(t),isAdmin:n})}function d(e){let{id:t,isAdmin:n}=e,i=(0,s.b7)(t);return i?(0,r.jsx)(l,{task:i,isAdmin:n}):null}}},e=>
1{e.O(0,[1741,9769,2619,4909,1356,5612,3148,317,8720,8962,3365,644,912,7476,2947,9793,8441,1845,7358],()=>e(e.s=11317)),_N_E=e.O()}]);
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.