interview-widget 3.0.6 → 3.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,18 +1,18 @@
1
- (function(ja,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],b):(ja=typeof globalThis<"u"?globalThis:ja||self,b(ja.InterviewWidget={},ja.jsxRuntime,ja.React,ja.ReactDOM))})(this,function(ja,b,j,Av){"use strict";var CM=Object.defineProperty;var DM=(ja,b,j)=>b in ja?CM(ja,b,{enumerable:!0,configurable:!0,writable:!0,value:j}):ja[b]=j;var tu=(ja,b,j)=>DM(ja,typeof b!="symbol"?b+"":b,j);var _v=typeof document<"u"?document.currentScript:null;const xv={},Lo={api:{baseUrl:"/api",retryConfig:{attempts:3,backoff:"exponential",baseDelay:1e3}},ui:{baseColor:"#3B82F6",borderRadius:"8px"},interview:{allow_answer_editing:!0,timers:{thinkingDuration:30,answeringDuration:120,editingDuration:30},stt:{provider:"groq",model:"whisper-large-v3-turbo",language:"en"},tts:{provider:"piper"},proctoring:{enabled:!0,gazeAnalysisEnabled:!0}}},Mv="iw-storage";function TE(){if(!(typeof{url:typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:_v&&_v.tagName.toUpperCase()==="SCRIPT"&&_v.src||new URL("widget.umd.js",document.baseURI).href}<"u"&&(xv!=null&&xv.VITE_IW_SECRET)))return typeof process<"u"&&process.env.NEXT_PUBLIC_IW_SECRET?process.env.NEXT_PUBLIC_IW_SECRET:typeof window<"u"&&window.__IW_SECRET__?window.__IW_SECRET__:"proctoring-data-seed"}const U6=TE(),hy=30,AE={SCREENSHOT:"screenshot"},Cv="AES-GCM",Dv=12;async function B6(i){const f=new TextEncoder().encode(i),h=await crypto.subtle.digest("SHA-256",f);return crypto.subtle.importKey("raw",h,Cv,!1,["encrypt","decrypt"])}function _E(){return crypto.getRandomValues(new Uint8Array(Dv))}async function xE(i,c="default-seed"){try{const f=typeof i=="string"?i:JSON.stringify(i),y=new TextEncoder().encode(f),w=await B6(c),E=_E(),A=await crypto.subtle.encrypt({name:Cv,iv:E},w,y),M=new Uint8Array(E.length+A.byteLength);return M.set(new Uint8Array(E),0),M.set(new Uint8Array(A),E.length),btoa(String.fromCharCode(...Array.from(M)))}catch(f){throw console.error("Encryption failed:",f),new Error("Failed to encrypt data")}}async function ME(i,c="default-seed"){try{const f=atob(i),h=new Uint8Array(f.length);for(let G=0;G<f.length;G++)h[G]=f.charCodeAt(G);const y=h.slice(0,Dv),w=h.slice(Dv),E=await B6(c),A=await crypto.subtle.decrypt({name:Cv,iv:y},E,w);return new TextDecoder().decode(A)}catch(f){throw console.error("Decryption failed:",f),new Error("Failed to decrypt data")}}async function CE(i,c="default-seed"){return xE(i,c)}async function DE(i,c="default-seed"){const f=await ME(i,c);try{return JSON.parse(f)}catch{return f}}const k2=j.createContext(null),OE=async()=>{try{const i=sessionStorage.getItem(Mv);if(i){const f=(await DE(i,U6)).state;return{logViolations:(f==null?void 0:f.logViolations)||[],totalViolations:(f==null?void 0:f.totalViolations)||0,gazeViolationCounters:(f==null?void 0:f.gazeViolationCounters)||{lookingAwayCount:0,noFaceDetectedCount:0,multipleFacesCount:0,totalGazeViolations:0},referenceSet:(f==null?void 0:f.referenceSet)??!1,referenceRef:(f==null?void 0:f.referenceRef)??{x:.5,y:.5,noseX:.5,noseY:.5}}}}catch(i){console.error("Failed to load proctoring data from session storage:",i)}return{logViolations:[],totalViolations:0,gazeViolationCounters:{lookingAwayCount:0,noFaceDetectedCount:0,multipleFacesCount:0,totalGazeViolations:0},referenceSet:!1,referenceRef:{x:.5,y:.5,noseX:.5,noseY:.5}}},X2=async i=>{try{const c=await CE({state:i,version:0},U6);sessionStorage.setItem(Mv,c)}catch(c){console.error("Failed to save proctoring data to session storage:",c)}},zE=({children:i})=>{const c=j.useRef({logViolations:[],totalViolations:0,gazeViolationCounters:{lookingAwayCount:0,noFaceDetectedCount:0,multipleFacesCount:0,totalGazeViolations:0},referenceSet:!1,referenceRef:{x:.5,y:.5,noseX:.5,noseY:.5}}),f=j.useRef(new Set);j.useEffect(()=>{OE().then(q=>{c.current=q,h()})},[]);const h=j.useCallback(()=>{f.current.forEach(q=>q())},[]),y=j.useCallback(q=>(f.current.add(q),()=>{f.current.delete(q)}),[]),w=j.useCallback(()=>c.current,[]),E=j.useCallback(q=>{c.current={...c.current,logViolations:[...c.current.logViolations,q],totalViolations:c.current.totalViolations+1},X2(c.current),h()},[h]),A=j.useCallback(q=>{const k={...c.current.gazeViolationCounters};q==="looking_away"&&(k.lookingAwayCount+=1),q==="no_face_detected"&&(k.noFaceDetectedCount+=1),q==="multiple_faces"&&(k.multipleFacesCount+=1),k.totalGazeViolations=k.lookingAwayCount+k.noFaceDetectedCount+k.multipleFacesCount,c.current={...c.current,gazeViolationCounters:k},X2(c.current),h()},[h]),M=j.useCallback(()=>{c.current={...c.current,logViolations:[],totalViolations:0},X2(c.current),h()},[h]),G=j.useCallback(()=>{c.current={...c.current,gazeViolationCounters:{lookingAwayCount:0,noFaceDetectedCount:0,multipleFacesCount:0,totalGazeViolations:0}},X2(c.current),h()},[h]),U=j.useCallback((q,k)=>{c.current={...c.current,referenceSet:q,referenceRef:k},X2(c.current),h()},[h]),N=j.useMemo(()=>({getState:w,addViolation:E,clearViolations:M,subscribe:y,incrementGazeViolation:A,clearGazeViolationCounters:G,setReferenceData:U}),[w,E,M,y,A,G,U]);return b.jsx(k2.Provider,{value:N,children:i})},H6=()=>{const i=j.useContext(k2);if(!i)throw new Error("useProctoringStore must be used within a ProctoringProvider");const c=j.useSyncExternalStore(i.subscribe,i.getState,i.getState);return{logViolations:c.logViolations,totalViolations:c.totalViolations,addViolation:i.addViolation,clearViolations:i.clearViolations,gazeViolationCounters:c.gazeViolationCounters,referenceSet:c.referenceSet,referenceRef:c.referenceRef,incrementGazeViolation:i.incrementGazeViolation,clearGazeViolationCounters:i.clearGazeViolationCounters,setReferenceData:i.setReferenceData}},NE=()=>{const i=j.useContext(k2);if(!i)throw new Error("useViolations must be used within a ProctoringProvider");return j.useSyncExternalStore(i.subscribe,()=>i.getState().logViolations,()=>i.getState().logViolations)},UE=()=>{const i=j.useContext(k2);if(!i)throw new Error("useTotalViolations must be used within a ProctoringProvider");return j.useSyncExternalStore(i.subscribe,()=>i.getState().totalViolations,()=>i.getState().totalViolations)},BE=()=>{const i=j.useContext(k2);if(!i)throw new Error("useProctoringActions must be used within a ProctoringProvider");return{addViolation:i.addViolation,clearViolations:i.clearViolations}},L6=j.createContext(null);function Ov({config:i={},children:c}){var h,y,w,E;const f={api:{...Lo.api,...i.api,retryConfig:{...Lo.api.retryConfig,...(h=i.api)==null?void 0:h.retryConfig}},ui:{...Lo.ui,...i.ui},interview:{...Lo.interview,...i.interview,timers:{...Lo.interview.timers,...(y=i.interview)==null?void 0:y.timers},stt:{...Lo.interview.stt,...(w=i.interview)==null?void 0:w.stt},tts:{...Lo.interview.tts,...(E=i.interview)==null?void 0:E.tts}}};return b.jsx(L6.Provider,{value:f,children:b.jsx(zE,{children:c})})}function my(){const i=j.useContext(L6);if(!i)throw new Error("useInterviewConfig must be used within an InterviewWidgetProvider. Wrap your component tree with <InterviewWidgetProvider config={...}>");return i}function G6(){return my().api||Lo.api}function Q2(){return my().ui||Lo.ui}function zv(){return my().interview||Lo.interview}function HE(i){const c=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(i);return c?{r:parseInt(c[1],16),g:parseInt(c[2],16),b:parseInt(c[3],16)}:null}function LE(i,c,f){return"#"+[i,c,f].map(h=>{const y=Math.round(h).toString(16);return y.length===1?"0"+y:y}).join("")}function GE(i,c){const f=HE(i);if(!f)return i;const h=f.r+(255-f.r)*c,y=f.g+(255-f.g)*c,w=f.b+(255-f.b)*c;return LE(h,y,w)}function RE(i){return new Promise(c=>setTimeout(c,i))}function jE(i){return`linear-gradient(to left, ${GE(i,.4)}, ${i})`}const qE=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15);function VE(i){try{const c=i.split(".");if(c.length!==3||!c[1])throw new Error("Invalid JWT token");const h=c[1].replace(/-/g,"+").replace(/_/g,"/"),y=h.padEnd(h.length+(4-h.length%4)%4,"="),w=atob(y);return JSON.parse(w)}catch(c){return console.error("Error decoding JWT:",c),null}}const R6=i=>{var c;return!i||typeof i!="string"?"":(c=i.charAt(0))==null?void 0:c.toUpperCase()},Nv=i=>{const c=Math.max(0,Math.floor(i)),f=Math.floor(c/60).toString().padStart(2,"0"),h=(c%60).toString().padStart(2,"0");return`${f}:${h}`},Z2=i=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...i,children:[b.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}),b.jsx("path",{d:"M12 9v4"}),b.jsx("path",{d:"M12 17h.01"})]}),YE=i=>b.jsxs("svg",{width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"prefix__lucide prefix__lucide-bolt-icon prefix__lucide-bolt",...i,children:[b.jsx("path",{d:"M21 16V8a2 2 0 00-1-1.73l-7-4a2 2 0 00-2 0l-7 4A2 2 0 003 8v8a2 2 0 001 1.73l7 4a2 2 0 002 0l7-4A2 2 0 0021 16z"}),b.jsx("circle",{cx:12,cy:12,r:4})]}),kE=i=>b.jsxs("svg",{width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"prefix__lucide prefix__lucide-camera-off-icon prefix__lucide-camera-off",...i,children:[b.jsx("path",{d:"M14.564 14.558a3 3 0 11-4.122-4.121M2 2l20 20"}),b.jsx("path",{d:"M20 20H4a2 2 0 01-2-2V9a2 2 0 012-2h1.997a2 2 0 00.819-.175M9.695 4.024A2 2 0 0110.004 4h3.993a2 2 0 011.76 1.05l.486.9A2 2 0 0018.003 7H20a2 2 0 012 2v7.344"})]}),gy=i=>b.jsx("svg",{width:"10",height:"9",viewBox:"0 0 10 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:b.jsx("path",{d:"M0.75 5.5C0.75 5.5 2.35 6.4125 3.15 7.75C3.15 7.75 5.55 2.5 8.75 0.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),j6=i=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...i,children:[b.jsx("path",{d:"M12 2a10 10 0 0 1 7.38 16.75"}),b.jsx("path",{d:"M12 6v6l4 2"}),b.jsx("path",{d:"M2.5 8.875a10 10 0 0 0-.5 3"}),b.jsx("path",{d:"M2.83 16a10 10 0 0 0 2.43 3.4"}),b.jsx("path",{d:"M4.636 5.235a10 10 0 0 1 .891-.857"}),b.jsx("path",{d:"M8.644 21.42a10 10 0 0 0 7.631-.38"})]}),XE=i=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...i,children:[b.jsx("path",{d:"M12 6v6l4 2"}),b.jsx("circle",{cx:"12",cy:"12",r:"10"})]}),q6=i=>b.jsx("svg",{className:"iw-w-5 iw-h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",...i,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),V6=i=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...i,children:[b.jsx("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"}),b.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),QE=i=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...i,children:[b.jsx("circle",{cx:"12",cy:"12",r:"3"}),b.jsx("path",{d:"M3 7V5a2 2 0 0 1 2-2h2"}),b.jsx("path",{d:"M17 3h2a2 2 0 0 1 2 2v2"}),b.jsx("path",{d:"M21 17v2a2 2 0 0 1-2 2h-2"}),b.jsx("path",{d:"M7 21H5a2 2 0 0 1-2-2v-2"})]}),ZE=i=>b.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[b.jsx("path",{d:"M2.66797 2H13.3346",stroke:"#5C6686",strokeLinecap:"round",strokeLinejoin:"round"}),b.jsx("path",{d:"M3.66797 2V3.35359C3.66797 4.18151 4.05252 4.96247 4.70874 5.46726L8.0013 8L11.2938 5.46726C11.9501 4.96247 12.3346 4.18151 12.3346 3.35359V2",stroke:"#5C6686",strokeLinecap:"round",strokeLinejoin:"round"}),b.jsx("path",{d:"M3.66797 14V12.6464C3.66797 11.8185 4.05252 11.0375 4.70874 10.5327L8.0013 8L11.2938 10.5327C11.9501 11.0375 12.3346 11.8185 12.3346 12.6464V14",stroke:"#5C6686",strokeLinecap:"round",strokeLinejoin:"round"}),b.jsx("path",{d:"M2.66797 14H13.3346",stroke:"#5C6686",strokeLinecap:"round",strokeLinejoin:"round"})]}),Uv=i=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...i,children:[b.jsx("circle",{cx:"12",cy:"12",r:"3"}),b.jsx("path",{d:"M3 7V5a2 2 0 0 1 2-2h2"}),b.jsx("path",{d:"M17 3h2a2 2 0 0 1 2 2v2"}),b.jsx("path",{d:"M21 17v2a2 2 0 0 1-2 2h-2"}),b.jsx("path",{d:"M7 21H5a2 2 0 0 1-2-2v-2"})]}),Y6=({className:i,...c})=>b.jsx("div",{children:b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`iw-animate-spin ${i}`,...c,children:[b.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),b.jsx("path",{d:"M12 6l0 -3"}),b.jsx("path",{d:"M16.25 7.75l2.15 -2.15"}),b.jsx("path",{d:"M18 12l3 0"}),b.jsx("path",{d:"M16.25 16.25l2.15 2.15"}),b.jsx("path",{d:"M12 18l0 3"}),b.jsx("path",{d:"M7.75 16.25l-2.15 2.15"}),b.jsx("path",{d:"M6 12l-3 0"}),b.jsx("path",{d:"M7.75 7.75l-2.15 -2.15"})]})}),JE=i=>b.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[b.jsx("path",{d:"M17 7V11C17 13.7614 14.7614 16 12 16C9.23858 16 7 13.7614 7 11V7C7 4.23858 9.23858 2 12 2C14.7614 2 17 4.23858 17 7Z",stroke:"currentColor",strokeWidth:"1.5"}),b.jsx("path",{d:"M20 11C20 15.4183 16.4183 19 12 19M12 19C7.58172 19 4 15.4183 4 11M12 19V22M12 22H15M12 22H9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),KE=i=>b.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[b.jsx("path",{d:"M2 2L22 22",stroke:"#062260",strokeWidth:"1.5",strokeLinecap:"round"}),b.jsx("path",{d:"M4 11C4 15.4183 7.58172 19 12 19M12 19C13.9545 19 15.7454 18.2991 17.1348 17.1348M12 19V22M12 22H15M12 22H9M20 11C20 12.6514 19.4996 14.1859 18.6422 15.4603",stroke:"#062260",strokeWidth:"1.5",strokeLinecap:"round"}),b.jsx("path",{d:"M7 6.98V11C7 13.7614 9.23858 16 12 16C13.1354 16 14.1647 15.6096 15.004 14.972M16.4387 13.244C16.7973 12.5545 17 11.8309 17 11V6.98C17 4.21858 14.7614 2 12 2C10.1312 2 8.53009 2.96527 7.672 4.484",stroke:"#062260",strokeWidth:"1.5",strokeLinecap:"round"})]}),FE=i=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...i,children:[b.jsx("rect",{width:"20",height:"14",x:"2",y:"3",rx:"2"}),b.jsx("line",{x1:"8",x2:"16",y1:"21",y2:"21"}),b.jsx("line",{x1:"12",x2:"12",y1:"17",y2:"21"})]}),$E=i=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...i,children:[b.jsx("circle",{cx:"12",cy:"12",r:"3"}),b.jsx("path",{d:"M3 7V5a2 2 0 0 1 2-2h2"}),b.jsx("path",{d:"M17 3h2a2 2 0 0 1 2 2v2"}),b.jsx("path",{d:"M21 17v2a2 2 0 0 1-2 2h-2"}),b.jsx("path",{d:"M7 21H5a2 2 0 0 1-2-2v-2"})]}),IE=i=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...i,children:[b.jsx("path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}),b.jsx("path",{d:"m9 12 2 2 4-4"})]}),WE=i=>b.jsxs("svg",{width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"prefix__lucide prefix__lucide-target-icon prefix__lucide-target",...i,children:[b.jsx("circle",{cx:12,cy:12,r:10}),b.jsx("circle",{cx:12,cy:12,r:6}),b.jsx("circle",{cx:12,cy:12,r:2})]}),PE=i=>b.jsxs("svg",{width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"prefix__lucide prefix__lucide-users-icon prefix__lucide-users",...i,children:[b.jsx("path",{d:"M16 21v-2a4 4 0 00-4-4H6a4 4 0 00-4 4v2M16 3.128a4 4 0 010 7.744M22 21v-2a4 4 0 00-3-3.87"}),b.jsx("circle",{cx:9,cy:7,r:4})]}),eT=i=>b.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[b.jsx("path",{d:"M11 8H13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),b.jsx("path",{d:"M2 11C2 7.70017 2 6.05025 3.02513 5.02513C4.05025 4 5.70017 4 9 4H10C13.2998 4 14.9497 4 15.9749 5.02513C17 6.05025 17 7.70017 17 11V13C17 16.2998 17 17.9497 15.9749 18.9749C14.9497 20 13.2998 20 10 20H9C5.70017 20 4.05025 20 3.02513 18.9749C2 17.9497 2 16.2998 2 13V11Z",stroke:"currentColor",strokeWidth:"1.5"}),b.jsx("path",{d:"M17 8.90585L17.1259 8.80196C19.2417 7.05623 20.2996 6.18336 21.1498 6.60482C22 7.02628 22 8.42355 22 11.2181V12.7819C22 15.5765 22 16.9737 21.1498 17.3952C20.2996 17.8166 19.2417 16.9438 17.1259 15.198L17 15.0941",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),tT=i=>b.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[b.jsx("path",{d:"M2.00195 2L21.9773 22",stroke:"#062260",strokeWidth:"1.5",strokeLinecap:"round"}),b.jsx("path",{d:"M16.8517 16.8668C16.7225 17.8052 16.4666 18.4659 15.9596 18.9735C14.9357 19.9987 13.2878 19.9987 9.99206 19.9987H8.99329C5.69755 19.9987 4.04967 19.9987 3.02581 18.9735C2.00195 17.9484 2.00195 16.2985 2.00195 12.9987V10.9987C2.00195 7.69885 2.00195 6.04893 3.02581 5.0238C3.36833 4.68086 3.78068 4.45265 4.3012 4.30078",stroke:"#062260",strokeWidth:"1.5",strokeLinecap:"round"}),b.jsx("path",{d:"M8.23633 4.00052C8.47821 4 8.73001 4 8.99223 4H9.99099C13.2868 4 14.9347 4 15.9585 5.02513C16.9823 6.05025 16.9823 7.70017 16.9823 11V12.7574M16.9823 9.23142L19.3019 7.52913C20.773 6.54073 21.449 7.17196 21.6675 7.64847C22.1192 8.92813 21.9769 11.3936 21.9769 14.5417C21.8704 16.555 21.5953 16.7719 21.3138 16.9939L21.3108 16.9962",stroke:"#062260",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),J2={FACE_DETECTED:"face_detected",NO_FACE:"no_face_detected",MULTIPLE_FACES:"multiple_faces",LOOKING_AWAY:"looking_away",CAMERA_ERROR:"camera_error"},k6={[J2.FACE_DETECTED]:{icon:V6,iconColor:"iw-text-green-600",iconBg:"iw-bg-green-50",iconBorder:"iw-border-green-100",title:"All Good",subtitle:"Everything looks normal",description:"Your gaze is properly focused on the screen. Continue with your interview.",buttonText:"Continue"},[J2.NO_FACE]:{icon:kE,iconColor:"iw-text-orange-600",iconBg:"iw-bg-orange-50",iconBorder:"iw-border-orange-100",title:"Face Not Detected",subtitle:"We can't see you in the camera",description:"Please ensure you're positioned properly in front of the camera and that your face is clearly visible.",buttonText:"I Understood"},[J2.MULTIPLE_FACES]:{icon:PE,iconColor:"iw-text-red-600",iconBg:"iw-bg-red-50",iconBorder:"iw-border-red-100",title:"Multiple People Detected",subtitle:"More than one person is visible",description:"For interview integrity, please ensure you are alone in the room and only your face is visible to the camera.",buttonText:"I Understood"},[J2.LOOKING_AWAY]:{icon:WE,iconColor:"iw-text-amber-600",iconBg:"iw-bg-amber-50",iconBorder:"iw-border-amber-200/75",title:"Stay Focused",subtitle:"We noticed you looked away from the screen",description:"To ensure interview integrity, please keep your attention on the screen throughout the session.",buttonText:"I Understood"},[J2.CAMERA_ERROR]:{icon:Z2,iconColor:"iw-text-red-600",iconBg:"iw-bg-red-50",iconBorder:"iw-border-red-100",title:"Camera Issue",subtitle:"There's a problem with your camera",description:"Please check your camera connection and permissions, then refresh the page to continue.",buttonText:"I Understood"}};function nT(i){var c;if(!navigator.onLine)return{type:"network",message:"No internet connection",retryable:!0,userMessage:"Please check your internet connection and try again."};if(i.name==="AbortError"||(c=i.message)!=null&&c.includes("timeout"))return{type:"timeout",message:"Request timed out",retryable:!0,userMessage:"The request is taking longer than expected. Please try again."};if(i.status){const{status:f}=i;if(f===401||f===403)return{type:"auth",status:f,message:"Authentication failed",retryable:!1,userMessage:"Your session has expired. Please refresh the page."};if(f===429)return{type:"rate-limit",status:f,message:"Too many requests",retryable:!0,userMessage:"Please wait a moment before trying again."};if(f>=500)return{type:"server",status:f,message:`Server error: ${f}`,retryable:!0,userMessage:"Our servers are experiencing issues. Please try again in a few moments."};if(f>=400)return{type:"client",status:f,message:`Client error: ${f}`,retryable:!1,userMessage:"There was an issue with your request. Please check your input."}}return{type:"unknown",message:i.message||"Unknown error occurred",retryable:!0,userMessage:"Something unexpected happened. Please try again.",originalError:i}}async function Is(i,c={},f={attempts:3,backoff:"exponential",baseDelay:1e3,maxDelay:1e4,jitter:!0}){let h;for(let y=1;y<=f.attempts;y++)try{const w=new AbortController,E=setTimeout(()=>w.abort(),6e4),A=await fetch(i,{...c,signal:w.signal});if(clearTimeout(E),A.status>=400&&A.status<500&&A.status!==429)return A;if(!A.ok)throw new Error(`HTTP ${A.status}: ${A.statusText}`);return A}catch(w){h=w;const E=nT(w);if(!E.retryable||y===f.attempts)throw E;const A=aT(y,f);console.warn(`API request failed (attempt ${y}/${f.attempts}), retrying in ${A}ms:`,E.message),await new Promise(M=>setTimeout(M,A))}throw h}function aT(i,c){let f;return c.backoff==="exponential"?f=c.baseDelay*Math.pow(2,i-1):f=c.baseDelay,f=Math.min(f,c.maxDelay),c.jitter&&(f=f*(.5+Math.random()*.5)),Math.round(f)}const Ws={v2:"/v2"},Ps={GENERATE_QUESTION:i=>`${Ws.v2}/interviews/${i}/next-question`,SCREENSHOT_UPLOAD:i=>`${Ws.v2}/interviews/${i}/assets/upload-url`,CONFIRM_UPLOAD:i=>`${Ws.v2}/interviews/assets/${i}/confirm`,TRANSCRIBE_ANSWER:i=>`${Ws.v2}/interviews/${i}/transcribe-answer`,SUBMIT_ANSWER:i=>`${Ws.v2}/interviews/${i}/submit-answer`,EXIT:i=>`${Ws.v2}/interviews/${i}/exit`,CONFIG:i=>`${Ws.v2}/interviews/${i}/config`,TRANSCRIPTION:i=>`${Ws.v2}/interviews/${i}/transcript`};class X6{constructor(c={}){tu(this,"config");this.config=c}updateConfig(c){this.config={...this.config,...c}}getHeaders(){var f;const c={"Content-Type":"application/json"};return(f=this.config)!=null&&f.authToken&&(c.Authorization=`Bearer ${this.config.authToken}`),c}getBaseUrl(){var c;return((c=this.config)==null?void 0:c.baseUrl)||"/api"}async generateQuestion({interviewId:c,isInterviewDone:f=!1}){const h=await Is(`${this.getBaseUrl()}${Ps.GENERATE_QUESTION(c)}`,{method:"POST",headers:this.getHeaders(),body:JSON.stringify({interview_id:c,is_interview_done:f})});if(!h.ok)throw new Error(`Failed to get questions: ${h.status}`);return await h.json()}async submitAnswer({interviewId:c,qnaId:f,answer:h}){const y=await Is(`${this.getBaseUrl()}${Ps.SUBMIT_ANSWER(c)}`,{method:"POST",headers:this.getHeaders(),body:JSON.stringify({qna_id:f,answer_text:h})});if(!y.ok)throw new Error(`Failed to submit answer: ${y.status}`);return await y.json()}async exitInterview(c){const f=await Is(`${this.getBaseUrl()}${Ps.EXIT(c)}`,{method:"POST",headers:this.getHeaders()});if(!f.ok)throw new Error(`Failed to exit interview: ${f.status}`)}async getInterviewConfig(c){const f=await Is(`${this.getBaseUrl()}${Ps.CONFIG(c)}`,{method:"GET",headers:this.getHeaders()});if(!f.ok)throw new Error(`Failed to get interview config: ${f.status}`);return await f.json()}async requestScreenshotUploadUrl(c,f=`screenshot-${Date.now()}.jpeg`){const h=await Is(`${this.getBaseUrl()}${Ps.SCREENSHOT_UPLOAD(c)}`,{method:"POST",headers:this.getHeaders(),body:JSON.stringify({filename:f,mime_type:"image/jpeg",asset_type:AE.SCREENSHOT})});if(!h.ok)throw new Error(`Failed to request screenshot upload URL: ${h.status}`);return await h.json()}async uploadScreenshot(c,f){const h=await fetch(c,{method:"PUT",body:f,headers:{"Content-Type":"image/jpeg"}});if(!h.ok)throw new Error(`Failed to upload screenshot: ${h.status}`)}async confirmScreenshotUpload(c){const f=await Is(`${this.getBaseUrl()}${Ps.CONFIRM_UPLOAD(c)}`,{method:"POST",headers:this.getHeaders()});if(!f.ok)throw new Error(`Failed to confirm screenshot upload: ${f.status}`)}async getInterviewTranscription(c){const f=await Is(`${this.getBaseUrl()}${Ps.TRANSCRIPTION(c)}`,{method:"GET",headers:{...this.getHeaders(),"x-auth-token":"interview-engine-api-key"}});if(!f.ok)throw new Error(`Failed to get interview transcription: ${f.status}`);return await f.json()}}const lT=new X6,iT=({gazeAnalysisEnabled:i,isModelLoaded:c,stats:f,statusMessage:h,loadingProgress:y})=>b.jsx("div",{className:"iw-w-full",children:b.jsxs("div",{className:"iw-border-strock iw-rounded-md iw-border iw-bg-gray-50 iw-p-4",children:[b.jsxs("h3",{className:"iw-m-0 iw-mb-2.5",children:["Status: ",h]}),y>0&&y<100&&b.jsxs("div",{className:"iw-mb-2.5",children:[b.jsx("div",{className:"iw-h-2 iw-w-full iw-rounded iw-bg-gray-300",children:b.jsx("div",{className:"iw-h-full iw-rounded iw-bg-blue-600 iw-transition-all iw-duration-300 iw-ease-out",style:{width:`${y}%`}})}),b.jsxs("small",{className:"iw-text-gray-600",children:["Loading model... ",y.toFixed(1),"%"]})]}),b.jsxs("div",{className:"iw-grid iw-grid-cols-2 iw-gap-2.5 iw-text-sm",children:[b.jsxs("div",{children:[b.jsx("strong",{children:"FPS:"})," ",b.jsx("span",{className:f.fps<15?"iw-text-red-600":f.fps<25?"iw-text-orange-500":"iw-text-green-600",children:f.fps})]}),b.jsxs("div",{children:[b.jsx("strong",{children:"Model:"})," ",c?"✓ Loaded":"✗ Loading"]}),i&&b.jsxs(b.Fragment,{children:[b.jsxs("div",{children:[b.jsx("strong",{children:"Engagement:"})," ",f.engagement.toFixed(1),"%"]}),b.jsxs("div",{children:[b.jsx("strong",{children:"Looking:"})," ",b.jsx("span",{className:f.isLookingAway?"iw-text-red-600":"iw-text-green-600",children:f.isLookingAway?"Away":"At Screen"})]})]})]}),f.referenceFaceNotDetected&&b.jsxs("div",{className:"iw-text-gray-dark iw-mt-2.5 iw-w-full iw-rounded-md iw-bg-[#ffeb3b] iw-p-2.5 iw-text-sm",children:[b.jsx("strong",{children:"Reference Face Not Detected"}),b.jsx("br",{}),"The previously set reference face is no longer in view."]}),f.multipleFacesDetected&&b.jsxs("div",{className:"iw-mt-2.5 iw-rounded iw-bg-red-50 iw-p-2.5 iw-text-sm iw-text-red-700",children:[b.jsx("strong",{children:"Multiple Faces Detected"}),b.jsx("br",{}),"Please ensure only one person is in the frame."]}),!i&&b.jsxs("div",{className:"iw-mt-2.5 iw-rounded iw-bg-blue-50 iw-p-2.5 iw-text-sm iw-text-blue-700",children:[b.jsx("strong",{children:"Gaze Analysis Disabled"}),b.jsx("br",{}),"Enable to track engagement and attention levels."]})]})}),uT=({showControls:i,isBubbleOpen:c,setIsBubbleOpen:f,setReference:h,clearCache:y,isModelLoaded:w,gazeAnalysisEnabled:E,referenceSet:A,showLandmarks:M,setShowLandmarks:G,showEngagementBar:U,setShowEngagementBar:N,handleToggleGazeAnalysis:q,stats:k,statusMessage:ne,loadingProgress:oe})=>i?b.jsxs(b.Fragment,{children:[b.jsx("button",{onClick:()=>f(!c),className:"iw-absolute iw-right-4 iw-bottom-4 iw-z-10 iw-flex iw-h-10 iw-w-10 iw-items-center iw-justify-center iw-rounded-full iw-text-white",children:b.jsx(YE,{className:"iw-size-4.5"})}),c&&b.jsxs("div",{className:"iw-absolute iw-right-4 iw-bottom-16 iw-z-10 iw-max-h-96 iw-w-80 iw-overflow-y-auto iw-rounded-md iw-bg-gray-50 iw-p-4 iw-shadow-lg",children:[b.jsx("h4",{className:"m-0 mb-2.5",children:"Controls"}),b.jsx("button",{onClick:h,disabled:!w||!E,className:`iw-mb-2.5 iw-block iw-w-full iw-rounded border-none iw-px-4 iw-py-2 iw-text-sm iw-text-white ${!w||!E?"iw-cursor-not-allowed iw-bg-gray-400":"iw-cursor-pointer iw-bg-blue-600 hover:iw-bg-blue-700"}`,children:A?"Reference Set ✓":"Set Reference"}),b.jsx("button",{onClick:y,className:"iw-mb-4 iw-block iw-w-full iw-cursor-pointer iw-rounded iw-border-none iw-bg-red-600 iw-px-4 iw-py-2 iw-text-sm iw-text-white hover:iw-bg-red-700",children:"Clear Model Cache"}),b.jsxs("div",{className:"iw-flex iw-flex-col iw-gap-2.5",children:[b.jsxs("label",{className:"iw-flex iw-cursor-pointer iw-items-center iw-gap-2",children:[b.jsx("input",{type:"checkbox",checked:E,onChange:ue=>q(ue.target.checked)}),b.jsx("strong",{children:"Enable Gaze Analysis"})]}),b.jsxs("label",{className:`iw-flex iw-cursor-pointer iw-items-center iw-gap-2 ${E?"iw-opacity-100":"iw-opacity-60"}`,children:[b.jsx("input",{type:"checkbox",checked:M,onChange:ue=>G(ue.target.checked),disabled:!E}),"Show Landmarks"]}),b.jsxs("label",{className:`iw-flex iw-cursor-pointer iw-items-center iw-gap-2 ${E?"iw-opacity-100":"iw-opacity-60"}`,children:[b.jsx("input",{type:"checkbox",checked:U,onChange:ue=>N(ue.target.checked),disabled:!E}),"Show Engagement Bar"]})]}),A&&b.jsx(iT,{gazeAnalysisEnabled:E,isModelLoaded:w,loadingProgress:oe,stats:k,statusMessage:ne})]})]}):null;var Qh=typeof self<"u"?self:{};function K2(i,c){e:{for(var f=["CLOSURE_FLAGS"],h=Qh,y=0;y<f.length;y++)if((h=h[f[y]])==null){f=null;break e}f=h}return(i=f&&f[i])!=null?i:c}function Xf(){throw Error("Invalid UTF8")}function Q6(i,c){return c=String.fromCharCode.apply(null,c),i==null?c:i+c}let py,Bv;const oT=typeof TextDecoder<"u";let cT;const sT=typeof TextEncoder<"u";function Z6(i){if(sT)i=(cT||(cT=new TextEncoder)).encode(i);else{let f=0;const h=new Uint8Array(3*i.length);for(let y=0;y<i.length;y++){var c=i.charCodeAt(y);if(c<128)h[f++]=c;else{if(c<2048)h[f++]=c>>6|192;else{if(c>=55296&&c<=57343){if(c<=56319&&y<i.length){const w=i.charCodeAt(++y);if(w>=56320&&w<=57343){c=1024*(c-55296)+w-56320+65536,h[f++]=c>>18|240,h[f++]=c>>12&63|128,h[f++]=c>>6&63|128,h[f++]=63&c|128;continue}y--}c=65533}h[f++]=c>>12|224,h[f++]=c>>6&63|128}h[f++]=63&c|128}}i=f===h.length?h:h.subarray(0,f)}return i}function J6(i){Qh.setTimeout(()=>{throw i},0)}var Hv,rT=K2(610401301,!1),K6=K2(748402147,!0),Lv=K2(824648567,!0),Gv=K2(824656860,K2(1,!0));function F6(){var i=Qh.navigator;return i&&(i=i.userAgent)?i:""}const $6=Qh.navigator;function yy(i){return yy[" "](i),i}Hv=$6&&$6.userAgentData||null,yy[" "]=function(){};const I6={};let F2=null;function fT(i){const c=i.length;let f=3*c/4;f%3?f=Math.floor(f):"=.".indexOf(i[c-1])!=-1&&(f="=.".indexOf(i[c-2])!=-1?f-2:f-1);const h=new Uint8Array(f);let y=0;return function(w,E){function A(G){for(;M<w.length;){const U=w.charAt(M++),N=F2[U];if(N!=null)return N;if(!/^[\s\xa0]*$/.test(U))throw Error("Unknown base64 encoding at char: "+U)}return G}W6();let M=0;for(;;){const G=A(-1),U=A(0),N=A(64),q=A(64);if(q===64&&G===-1)break;E(G<<2|U>>4),N!=64&&(E(U<<4&240|N>>2),q!=64&&E(N<<6&192|q))}}(i,function(w){h[y++]=w}),y!==f?h.subarray(0,y):h}function W6(){if(!F2){F2={};var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),c=["+/=","+/","-_=","-_.","-_"];for(let f=0;f<5;f++){const h=i.concat(c[f].split(""));I6[f]=h;for(let y=0;y<h.length;y++){const w=h[y];F2[w]===void 0&&(F2[w]=y)}}}}var dT=typeof Uint8Array<"u",P6=!(!(rT&&Hv&&Hv.brands.length>0)&&(F6().indexOf("Trident")!=-1||F6().indexOf("MSIE")!=-1))&&typeof btoa=="function";const e5=/[-_.]/g,hT={"-":"+",_:"/",".":"="};function mT(i){return hT[i]||""}function t5(i){if(!P6)return fT(i);i=e5.test(i)?i.replace(e5,mT):i,i=atob(i);const c=new Uint8Array(i.length);for(let f=0;f<i.length;f++)c[f]=i.charCodeAt(f);return c}function Rv(i){return dT&&i!=null&&i instanceof Uint8Array}var Zh={};function Qf(){return gT||(gT=new Go(null,Zh))}function jv(i){n5(Zh);var c=i.g;return(c=c==null||Rv(c)?c:typeof c=="string"?t5(c):null)==null?c:i.g=c}var Go=class{h(){return new Uint8Array(jv(this)||0)}constructor(i,c){if(n5(c),this.g=i,i!=null&&i.length===0)throw Error("ByteString should be constructed with non-empty values")}};let gT,pT;function n5(i){if(i!==Zh)throw Error("illegal external caller")}function a5(i,c){i.__closure__error__context__984382||(i.__closure__error__context__984382={}),i.__closure__error__context__984382.severity=c}function qv(i){return a5(i=Error(i),"warning"),i}function Jh(i,c){if(i!=null){var f=pT??(pT={}),h=f[i]||0;h>=c||(f[i]=h+1,a5(i=Error(),"incident"),J6(i))}}function Kh(){return typeof BigInt=="function"}var Fh=typeof Symbol=="function"&&typeof Symbol()=="symbol";function Ro(i,c,f=!1){return typeof Symbol=="function"&&typeof Symbol()=="symbol"?f&&Symbol.for&&i?Symbol.for(i):i!=null?Symbol(i):Symbol():c}var yT=Ro("jas",void 0,!0),l5=Ro(void 0,"0di"),$2=Ro(void 0,"1oa"),fi=Ro(void 0,Symbol()),vT=Ro(void 0,"0ub"),wT=Ro(void 0,"0ubs"),Vv=Ro(void 0,"0ubsb"),bT=Ro(void 0,"0actk"),$h=Ro("m_m","Pa",!0),i5=Ro();const u5={Ga:{value:0,configurable:!0,writable:!0,enumerable:!1}},o5=Object.defineProperties,Se=Fh?yT:"Ga";var Zf;const c5=[];function I2(i,c){Fh||Se in i||o5(i,u5),i[Se]|=c}function pa(i,c){Fh||Se in i||o5(i,u5),i[Se]=c}function W2(i){return I2(i,34),i}function P2(i){return I2(i,8192),i}pa(c5,7),Zf=Object.freeze(c5);var Ih={};function di(i,c){return c===void 0?i.h!==Jf&&!!(2&(0|i.v[Se])):!!(2&c)&&i.h!==Jf}const Jf={};function Yv(i,c){if(i!=null){if(typeof i=="string")i=i?new Go(i,Zh):Qf();else if(i.constructor!==Go)if(Rv(i))i=i.length?new Go(new Uint8Array(i),Zh):Qf();else{if(!c)throw Error();i=void 0}}return i}class s5{constructor(c,f,h){this.g=c,this.h=f,this.l=h}next(){const c=this.g.next();return c.done||(c.value=this.h.call(this.l,c.value)),c}[Symbol.iterator](){return this}}var ST=Object.freeze({});function r5(i,c,f){const h=128&c?0:-1,y=i.length;var w;(w=!!y)&&(w=(w=i[y-1])!=null&&typeof w=="object"&&w.constructor===Object);const E=y+(w?-1:0);for(c=128&c?1:0;c<E;c++)f(c-h,i[c]);if(w){i=i[y-1];for(const A in i)!isNaN(A)&&f(+A,i[A])}}var f5={};function Wh(i){return 128&i?f5:void 0}function vy(i){return i.Na=!0,i}var ET=vy(i=>typeof i=="number"),d5=vy(i=>typeof i=="string"),TT=vy(i=>typeof i=="boolean"),wy=typeof Qh.BigInt=="function"&&typeof Qh.BigInt(0)=="bigint";function hi(i){var c=i;if(d5(c)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(c))throw Error(String(c))}else if(ET(c)&&!Number.isSafeInteger(c))throw Error(String(c));return wy?BigInt(i):i=TT(i)?i?"1":"0":d5(i)?i.trim()||"0":String(i)}var kv=vy(i=>wy?i>=_T&&i<=MT:i[0]==="-"?h5(i,AT):h5(i,xT));const AT=Number.MIN_SAFE_INTEGER.toString(),_T=wy?BigInt(Number.MIN_SAFE_INTEGER):void 0,xT=Number.MAX_SAFE_INTEGER.toString(),MT=wy?BigInt(Number.MAX_SAFE_INTEGER):void 0;function h5(i,c){if(i.length>c.length)return!1;if(i.length<c.length||i===c)return!0;for(let f=0;f<i.length;f++){const h=i[f],y=c[f];if(h>y)return!1;if(h<y)return!0}}const CT=typeof Uint8Array.prototype.slice=="function";let DT,En=0,$n=0;function m5(i){const c=i>>>0;En=c,$n=(i-c)/4294967296>>>0}function Ph(i){if(i<0){m5(-i);const[c,f]=Kv(En,$n);En=c>>>0,$n=f>>>0}else m5(i)}function Xv(i){const c=DT||(DT=new DataView(new ArrayBuffer(8)));c.setFloat32(0,+i,!0),$n=0,En=c.getUint32(0,!0)}function Qv(i,c){const f=4294967296*c+(i>>>0);return Number.isSafeInteger(f)?f:em(i,c)}function OT(i,c){return hi(Kh()?BigInt.asUintN(64,(BigInt(c>>>0)<<BigInt(32))+BigInt(i>>>0)):em(i,c))}function Zv(i,c){const f=2147483648&c;return f&&(c=~c>>>0,(i=1+~i>>>0)==0&&(c=c+1>>>0)),typeof(i=Qv(i,c))=="number"?f?-i:i:f?"-"+i:i}function g5(i,c){return Kh()?hi(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(c))<<BigInt(32))+BigInt.asUintN(32,BigInt(i)))):hi(Jv(i,c))}function em(i,c){if(i>>>=0,(c>>>=0)<=2097151)var f=""+(4294967296*c+i);else Kh()?f=""+(BigInt(c)<<BigInt(32)|BigInt(i)):(i=(16777215&i)+6777216*(f=16777215&(i>>>24|c<<8))+6710656*(c=c>>16&65535),f+=8147497*c,c*=2,i>=1e7&&(f+=i/1e7>>>0,i%=1e7),f>=1e7&&(c+=f/1e7>>>0,f%=1e7),f=c+p5(f)+p5(i));return f}function p5(i){return i=String(i),"0000000".slice(i.length)+i}function Jv(i,c){if(2147483648&c)if(Kh())i=""+(BigInt(0|c)<<BigInt(32)|BigInt(i>>>0));else{const[f,h]=Kv(i,c);i="-"+em(f,h)}else i=em(i,c);return i}function by(i){if(i.length<16)Ph(Number(i));else if(Kh())i=BigInt(i),En=Number(i&BigInt(4294967295))>>>0,$n=Number(i>>BigInt(32)&BigInt(4294967295));else{const c=+(i[0]==="-");$n=En=0;const f=i.length;for(let h=c,y=(f-c)%6+c;y<=f;h=y,y+=6){const w=Number(i.slice(h,y));$n*=1e6,En=1e6*En+w,En>=4294967296&&($n+=Math.trunc(En/4294967296),$n>>>=0,En>>>=0)}if(c){const[h,y]=Kv(En,$n);En=h,$n=y}}}function Kv(i,c){return c=~c,i?i=1+~i:c+=1,[i,c]}function to(i){return Array.prototype.slice.call(i)}const tm=typeof BigInt=="function"?BigInt.asIntN:void 0,zT=typeof BigInt=="function"?BigInt.asUintN:void 0,Kf=Number.isSafeInteger,Sy=Number.isFinite,e0=Math.trunc,NT=hi(0);function nm(i){if(i!=null&&typeof i!="number")throw Error(`Value of float/double field must be a number, found ${typeof i}: ${i}`);return i}function jo(i){return i==null||typeof i=="number"?i:i==="NaN"||i==="Infinity"||i==="-Infinity"?Number(i):void 0}function am(i){if(i!=null&&typeof i!="boolean"){var c=typeof i;throw Error(`Expected boolean but got ${c!="object"?c:i?Array.isArray(i)?"array":c:"null"}: ${i}`)}return i}function y5(i){return i==null||typeof i=="boolean"?i:typeof i=="number"?!!i:void 0}const UT=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function lm(i){switch(typeof i){case"bigint":return!0;case"number":return Sy(i);case"string":return UT.test(i);default:return!1}}function t0(i){if(i==null)return i;if(typeof i=="string"&&i)i=+i;else if(typeof i!="number")return;return Sy(i)?0|i:void 0}function v5(i){if(i==null)return i;if(typeof i=="string"&&i)i=+i;else if(typeof i!="number")return;return Sy(i)?i>>>0:void 0}function w5(i){const c=i.length;return(i[0]==="-"?c<20||c===20&&i<="-9223372036854775808":c<19||c===19&&i<="9223372036854775807")?i:(by(i),Jv(En,$n))}function Fv(i){return i=e0(i),Kf(i)||(Ph(i),i=Zv(En,$n)),i}function b5(i){var c=e0(Number(i));return Kf(c)?String(c):((c=i.indexOf("."))!==-1&&(i=i.substring(0,c)),w5(i))}function S5(i){var c=e0(Number(i));return Kf(c)?hi(c):((c=i.indexOf("."))!==-1&&(i=i.substring(0,c)),Kh()?hi(tm(64,BigInt(i))):hi(w5(i)))}function E5(i){return Kf(i)?i=hi(Fv(i)):(i=e0(i),Kf(i)?i=String(i):(Ph(i),i=Jv(En,$n)),i=hi(i)),i}function BT(i){return i==null?i:typeof i=="bigint"?(kv(i)?i=Number(i):(i=tm(64,i),i=kv(i)?Number(i):String(i)),i):lm(i)?typeof i=="number"?Fv(i):b5(i):void 0}function Ey(i){const c=typeof i;return i==null?i:c==="bigint"?hi(tm(64,i)):lm(i)?c==="string"?S5(i):E5(i):void 0}function T5(i){if(typeof i!="string")throw Error();return i}function im(i){if(i!=null&&typeof i!="string")throw Error();return i}function qa(i){return i==null||typeof i=="string"?i:void 0}function $v(i,c,f,h){return i!=null&&i[$h]===Ih?i:Array.isArray(i)?((h=(f=0|i[Se])|32&h|2&h)!==f&&pa(i,h),new c(i)):(f?2&h?((i=c[l5])||(W2((i=new c).v),i=c[l5]=i),c=i):c=new c:c=void 0,c)}function HT(i,c,f){if(c)e:{if(!lm(c=i))throw qv("int64");switch(typeof c){case"string":c=S5(c);break e;case"bigint":c=hi(tm(64,c));break e;default:c=E5(c)}}else c=Ey(i);return(i=c)==null?f?NT:void 0:i}const LT={};let GT=function(){try{return yy(new class extends Map{constructor(){super()}}),!1}catch{return!0}}();class Iv{constructor(){this.g=new Map}get(c){return this.g.get(c)}set(c,f){return this.g.set(c,f),this.size=this.g.size,this}delete(c){return c=this.g.delete(c),this.size=this.g.size,c}clear(){this.g.clear(),this.size=this.g.size}has(c){return this.g.has(c)}entries(){return this.g.entries()}keys(){return this.g.keys()}values(){return this.g.values()}forEach(c,f){return this.g.forEach(c,f)}[Symbol.iterator](){return this.entries()}}const RT=GT?(Object.setPrototypeOf(Iv.prototype,Map.prototype),Object.defineProperties(Iv.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Iv):class extends Map{constructor(){super()}};function A5(i){return i}function Wv(i){if(2&i.J)throw Error("Cannot mutate an immutable Map")}var Hc=class extends RT{constructor(i,c,f=A5,h=A5){super(),this.J=0|i[Se],this.K=c,this.S=f,this.fa=this.K?jT:h;for(let y=0;y<i.length;y++){const w=i[y],E=f(w[0],!1,!0);let A=w[1];c?A===void 0&&(A=null):A=h(w[1],!1,!0,void 0,void 0,this.J),super.set(E,A)}}V(i){return P2(Array.from(super.entries(),i))}clear(){Wv(this),super.clear()}delete(i){return Wv(this),super.delete(this.S(i,!0,!1))}entries(){if(this.K){var i=super.keys();i=new s5(i,qT,this)}else i=super.entries();return i}values(){if(this.K){var i=super.keys();i=new s5(i,Hc.prototype.get,this)}else i=super.values();return i}forEach(i,c){this.K?super.forEach((f,h,y)=>{i.call(c,y.get(h),h,y)}):super.forEach(i,c)}set(i,c){return Wv(this),(i=this.S(i,!0,!1))==null?this:c==null?(super.delete(i),this):super.set(i,this.fa(c,!0,!0,this.K,!1,this.J))}Ma(i){const c=this.S(i[0],!1,!0);i=i[1],i=this.K?i===void 0?null:i:this.fa(i,!1,!0,void 0,!1,this.J),super.set(c,i)}has(i){return super.has(this.S(i,!1,!1))}get(i){i=this.S(i,!1,!1);const c=super.get(i);if(c!==void 0){var f=this.K;return f?((f=this.fa(c,!1,!0,f,this.ra,this.J))!==c&&super.set(i,f),f):c}}[Symbol.iterator](){return this.entries()}};function jT(i,c,f,h,y,w){return i=$v(i,h,f,w),y&&(i=tw(i)),i}function qT(i){return[i,this.get(i)]}let VT;function _5(){return VT||(VT=new Hc(W2([]),void 0,void 0,void 0,LT))}function Ty(i){return fi?i[fi]:void 0}function Ay(i,c){for(const f in i)!isNaN(f)&&c(i,+f,i[f])}Hc.prototype.toJSON=void 0;var Pv=class{};const YT={Ka:!0};function kT(i,c){c<100||Jh(wT,1)}function _y(i,c,f,h){const y=h!==void 0;h=!!h;var w,E=fi;!y&&Fh&&E&&(w=i[E])&&Ay(w,kT),E=[];var A=i.length;let M;w=4294967295;let G=!1;const U=!!(64&c),N=U?128&c?0:-1:void 0;1&c||(M=A&&i[A-1],M!=null&&typeof M=="object"&&M.constructor===Object?w=--A:M=void 0,!U||128&c||y||(G=!0,w=w-N+N)),c=void 0;for(var q=0;q<A;q++){let k=i[q];if(k!=null&&(k=f(k,h))!=null)if(U&&q>=w){const ne=q-N;(c??(c={}))[ne]=k}else E[q]=k}if(M)for(let k in M){if((A=M[k])==null||(A=f(A,h))==null)continue;let ne;q=+k,U&&!Number.isNaN(q)&&(ne=q+N)<w?E[ne]=A:(c??(c={}))[k]=A}return c&&(G?E.push(c):E[w]=c),y&&fi&&(i=Ty(i))&&i instanceof Pv&&(E[fi]=function(k){const ne=new Pv;return Ay(k,(oe,ue,P)=>{ne[ue]=to(P)}),ne.da=k.da,ne}(i)),E}function XT(i){return i[0]=um(i[0]),i[1]=um(i[1]),i}function um(i){switch(typeof i){case"number":return Number.isFinite(i)?i:""+i;case"bigint":return kv(i)?Number(i):""+i;case"boolean":return i?1:0;case"object":if(Array.isArray(i)){var c=0|i[Se];return i.length===0&&1&c?void 0:_y(i,c,um)}if(i!=null&&i[$h]===Ih)return x5(i);if(i instanceof Go){if((c=i.g)==null)i="";else if(typeof c=="string")i=c;else{if(P6){for(var f="",h=0,y=c.length-10240;h<y;)f+=String.fromCharCode.apply(null,c.subarray(h,h+=10240));f+=String.fromCharCode.apply(null,h?c.subarray(h):c),c=btoa(f)}else{f===void 0&&(f=0),W6(),f=I6[f],h=Array(Math.floor(c.length/3)),y=f[64]||"";let G=0,U=0;for(;G<c.length-2;G+=3){var w=c[G],E=c[G+1],A=c[G+2],M=f[w>>2];w=f[(3&w)<<4|E>>4],E=f[(15&E)<<2|A>>6],A=f[63&A],h[U++]=M+w+E+A}switch(M=0,A=y,c.length-G){case 2:A=f[(15&(M=c[G+1]))<<2]||y;case 1:c=c[G],h[U]=f[c>>2]+f[(3&c)<<4|M>>4]+A+y}c=h.join("")}i=i.g=c}return i}return i instanceof Hc?i=i.size!==0?i.V(XT):void 0:void 0}return i}function x5(i){return _y(i=i.v,0|i[Se],um)}let QT,ZT;function Ff(i,c){return M5(i,c[0],c[1])}function M5(i,c,f,h=0){if(i==null){var y=32;f?(i=[f],y|=128):i=[],c&&(y=-16760833&y|(1023&c)<<14)}else{if(!Array.isArray(i))throw Error("narr");if(y=0|i[Se],K6&&1&y)throw Error("rfarr");if(2048&y&&!(2&y)&&function(){if(K6)throw Error("carr");Jh(bT,5)}(),256&y)throw Error("farr");if(64&y)return(y|h)!==y&&pa(i,y|h),i;if(f&&(y|=128,f!==i[0]))throw Error("mid");e:{y|=64;var w=(f=i).length;if(w){var E=w-1;const M=f[E];if(M!=null&&typeof M=="object"&&M.constructor===Object){if((E-=c=128&y?0:-1)>=1024)throw Error("pvtlmt");for(var A in M)(w=+A)<E&&(f[w+c]=M[A],delete M[A]);y=-16760833&y|(1023&E)<<14;break e}}if(c){if((A=Math.max(c,w-(128&y?0:-1)))>1024)throw Error("spvt");y=-16760833&y|(1023&A)<<14}}}return pa(i,64|y|h),i}function JT(i,c){if(typeof i!="object")return i;if(Array.isArray(i)){var f=0|i[Se];return i.length===0&&1&f?void 0:C5(i,f,c)}if(i!=null&&i[$h]===Ih)return D5(i);if(i instanceof Hc){if(2&(c=i.J))return i;if(!i.size)return;if(f=W2(i.V()),i.K)for(i=0;i<f.length;i++){const h=f[i];let y=h[1];y=y==null||typeof y!="object"?void 0:y!=null&&y[$h]===Ih?D5(y):Array.isArray(y)?C5(y,0|y[Se],!!(32&c)):void 0,h[1]=y}return f}return i instanceof Go?i:void 0}function C5(i,c,f){return 2&c||(!f||4096&c||16&c?i=n0(i,c,!1,f&&!(16&c)):(I2(i,34),4&c&&Object.freeze(i))),i}function ew(i,c,f){return i=new i.constructor(c),f&&(i.h=Jf),i.m=Jf,i}function D5(i){const c=i.v,f=0|c[Se];return di(i,f)?i:nw(i,c,f)?ew(i,c):n0(c,f)}function n0(i,c,f,h){return h??(h=!!(34&c)),i=_y(i,c,JT,h),h=32,f&&(h|=2),pa(i,c=16769217&c|h),i}function tw(i){const c=i.v,f=0|c[Se];return di(i,f)?nw(i,c,f)?ew(i,c,!0):new i.constructor(n0(c,f,!1)):i}function a0(i){if(i.h!==Jf)return!1;var c=i.v;return I2(c=n0(c,0|c[Se]),2048),i.v=c,i.h=void 0,i.m=void 0,!0}function l0(i){if(!a0(i)&&di(i,0|i.v[Se]))throw Error()}function $f(i,c){c===void 0&&(c=0|i[Se]),32&c&&!(4096&c)&&pa(i,4096|c)}function nw(i,c,f){return!!(2&f)||!(!(32&f)||4096&f)&&(pa(c,2|f),i.h=Jf,!0)}const KT=hi(0),er={};function mn(i,c,f,h,y){if((c=Lc(i.v,c,f,y))!==null||h&&i.m!==Jf)return c}function Lc(i,c,f,h){if(c===-1)return null;const y=c+(f?0:-1),w=i.length-1;let E,A;if(!(w<1+(f?0:-1))){if(y>=w)if(E=i[w],E!=null&&typeof E=="object"&&E.constructor===Object)f=E[c],A=!0;else{if(y!==w)return;f=E}else f=i[y];if(h&&f!=null){if((h=h(f))==null)return h;if(!Object.is(h,f))return A?E[c]=h:i[y]=h,h}return f}}function Yt(i,c,f,h){l0(i),ya(i=i.v,0|i[Se],c,f,h)}function ya(i,c,f,h,y){const w=f+(y?0:-1);var E=i.length-1;if(E>=1+(y?0:-1)&&w>=E){const A=i[E];if(A!=null&&typeof A=="object"&&A.constructor===Object)return A[f]=h,c}return w<=E?(i[w]=h,c):(h!==void 0&&(f>=(E=(c??(c=0|i[Se]))>>14&1023||536870912)?h!=null&&(i[E+(y?0:-1)]={[f]:h}):i[w]=h),c)}function If(){return ST===void 0?2:4}function Wf(i,c,f,h,y){let w=i.v,E=0|w[Se];h=di(i,E)?1:h,y=!!y||h===3,h===2&&a0(i)&&(w=i.v,E=0|w[Se]);let A=(i=aw(w,c))===Zf?7:0|i[Se],M=lw(A,E);var G=!(4&M);if(G){4&M&&(i=to(i),A=0,M=ed(M,E),E=ya(w,E,c,i));let U=0,N=0;for(;U<i.length;U++){const q=f(i[U]);q!=null&&(i[N++]=q)}N<U&&(i.length=N),f=-513&(4|M),M=f&=-1025,M&=-4097}return M!==A&&(pa(i,M),2&M&&Object.freeze(i)),O5(i,M,w,E,c,h,G,y)}function O5(i,c,f,h,y,w,E,A){let M=c;return w===1||w===4&&(2&c||!(16&c)&&32&h)?Pf(c)||((c|=!i.length||E&&!(4096&c)||32&h&&!(4096&c||16&c)?2:256)!==M&&pa(i,c),Object.freeze(i)):(w===2&&Pf(c)&&(i=to(i),M=0,c=ed(c,h),h=ya(f,h,y,i)),Pf(c)||(A||(c|=16),c!==M&&pa(i,c))),2&c||!(4096&c||16&c)||$f(f,h),i}function aw(i,c,f){return i=Lc(i,c,f),Array.isArray(i)?i:Zf}function lw(i,c){return 2&c&&(i|=2),1|i}function Pf(i){return!!(2&i)&&!!(4&i)||!!(256&i)}function z5(i){return Yv(i,!0)}function N5(i){i=to(i);for(let c=0;c<i.length;c++){const f=i[c]=to(i[c]);Array.isArray(f[1])&&(f[1]=W2(f[1]))}return P2(i)}function tr(i,c,f,h){l0(i),ya(i=i.v,0|i[Se],c,(h==="0"?Number(f)===0:f===h)?void 0:f)}function i0(i,c,f){if(2&c)throw Error();const h=Wh(c);let y=aw(i,f,h),w=y===Zf?7:0|y[Se],E=lw(w,c);return(2&E||Pf(E)||16&E)&&(E===w||Pf(E)||pa(y,E),y=to(y),w=0,E=ed(E,c),ya(i,c,f,y,h)),E&=-13,E!==w&&pa(y,E),y}function iw(i,c){var f=RS;return ow(uw(i=i.v),i,void 0,f)===c?c:-1}function uw(i){if(Fh)return i[$2]??(i[$2]=new Map);if($2 in i)return i[$2];const c=new Map;return Object.defineProperty(i,$2,{value:c}),c}function U5(i,c,f,h,y){const w=uw(i),E=ow(w,i,c,f,y);return E!==h&&(E&&(c=ya(i,c,E,void 0,y)),w.set(f,h)),c}function ow(i,c,f,h,y){let w=i.get(h);if(w!=null)return w;w=0;for(let E=0;E<h.length;E++){const A=h[E];Lc(c,A,y)!=null&&(w!==0&&(f=ya(c,f,w,void 0,y)),w=A)}return i.set(h,w),w}function cw(i,c,f){let h=0|i[Se];const y=Wh(h),w=Lc(i,f,y);let E;if(w!=null&&w[$h]===Ih){if(!di(w))return a0(w),w.v;E=w.v}else Array.isArray(w)&&(E=w);if(E){const A=0|E[Se];2&A&&(E=n0(E,A))}return E=Ff(E,c),E!==w&&ya(i,h,f,E,y),E}function B5(i,c,f,h,y){let w=!1;if((h=Lc(i,h,y,E=>{const A=$v(E,f,!1,c);return w=A!==E&&A!=null,A}))!=null)return w&&!di(h)&&$f(i,c),h}function xt(i,c,f,h){let y=i.v,w=0|y[Se];if((c=B5(y,w,c,f,h))==null)return c;if(w=0|y[Se],!di(i,w)){const E=tw(c);E!==c&&(a0(i)&&(y=i.v,w=0|y[Se]),w=ya(y,w,f,c=E,h),$f(y,w))}return c}function H5(i,c,f,h,y,w,E,A){var M=di(i,f);w=M?1:w,E=!!E||w===3,M=A&&!M,(w===2||M)&&a0(i)&&(f=0|(c=i.v)[Se]);var G=(i=aw(c,y))===Zf?7:0|i[Se],U=lw(G,f);if(A=!(4&U)){var N=i,q=f;const k=!!(2&U);k&&(q|=2);let ne=!k,oe=!0,ue=0,P=0;for(;ue<N.length;ue++){const ye=$v(N[ue],h,!1,q);if(ye instanceof h){if(!k){const be=di(ye);ne&&(ne=!be),oe&&(oe=be)}N[P++]=ye}}P<ue&&(N.length=P),U|=4,U=oe?-4097&U:4096|U,U=ne?8|U:-9&U}if(U!==G&&(pa(i,U),2&U&&Object.freeze(i)),M&&!(8&U||!i.length&&(w===1||w===4&&(2&U||!(16&U)&&32&f)))){for(Pf(U)&&(i=to(i),U=ed(U,f),f=ya(c,f,y,i)),h=i,M=U,G=0;G<h.length;G++)(N=h[G])!==(U=tw(N))&&(h[G]=U);M|=8,pa(i,U=M=h.length?4096|M:-4097&M)}return O5(i,U,c,f,y,w,A,E)}function Gc(i,c,f){const h=i.v;return H5(i,h,0|h[Se],c,f,If(),!1,!0)}function L5(i){return i==null&&(i=void 0),i}function Ue(i,c,f,h,y){return Yt(i,f,h=L5(h),y),h&&!di(h)&&$f(i.v),i}function om(i,c,f,h){e:{var y=h=L5(h);l0(i);const w=i.v;let E=0|w[Se];if(y==null){const A=uw(w);if(ow(A,w,E,f)!==c)break e;A.set(f,0)}else E=U5(w,E,f,c);ya(w,E,c,y)}h&&!di(h)&&$f(i.v)}function ed(i,c){return-273&(2&c?2|i:-3&i)}function sw(i,c,f,h){var y=h;l0(i),i=H5(i,h=i.v,0|h[Se],f,c,2,!0),y=y??new f,i.push(y),c=f=i===Zf?7:0|i[Se],(y=di(y))?(f&=-9,i.length===1&&(f&=-4097)):f|=4096,f!==c&&pa(i,f),y||$f(h)}function nu(i,c,f){return t0(mn(i,c,void 0,f))}function G5(i){return(Gv?mn(i,2,void 0,void 0,Ey):Ey(mn(i,2)))??KT}function qn(i,c){return mn(i,c,void 0,void 0,jo)??0}function Rc(i,c,f){if(f!=null){if(typeof f!="number"||!Sy(f))throw qv("int32");f|=0}Yt(i,c,f)}function Oe(i,c,f){Yt(i,c,nm(f))}function mi(i,c,f){tr(i,c,im(f),"")}function xy(i,c,f){{l0(i);const E=i.v;let A=0|E[Se];if(f==null)ya(E,A,c);else{var h=i=f===Zf?7:0|f[Se],y=Pf(i),w=y||Object.isFrozen(f);for(y||(i=0),w||(f=to(f),h=0,i=ed(i,A),w=!1),i|=5,i|=(4&i?512&i?512:1024&i?1024:0:void 0)??(Gv?1024:0),y=0;y<f.length;y++){const M=f[y],G=T5(M);Object.is(M,G)||(w&&(f=to(f),h=0,i=ed(i,A),w=!1),f[y]=G)}i!==h&&(w&&(f=to(f),i=ed(i,A)),pa(f,i)),ya(E,A,c,f)}}}function My(i,c,f){l0(i),Wf(i,c,qa,2,!0).push(T5(f))}var u0=class{constructor(i,c,f){if(this.buffer=i,f&&!c)throw Error();this.g=c}};function rw(i,c){if(typeof i=="string")return new u0(t5(i),c);if(Array.isArray(i))return new u0(new Uint8Array(i),c);if(i.constructor===Uint8Array)return new u0(i,!1);if(i.constructor===ArrayBuffer)return i=new Uint8Array(i),new u0(i,!1);if(i.constructor===Go)return c=jv(i)||new Uint8Array(0),new u0(c,!0,i);if(i instanceof Uint8Array)return i=i.constructor===Uint8Array?i:new Uint8Array(i.buffer,i.byteOffset,i.byteLength),new u0(i,!1);throw Error()}function o0(i,c){let f,h=0,y=0,w=0;const E=i.h;let A=i.g;do f=E[A++],h|=(127&f)<<w,w+=7;while(w<32&&128&f);if(w>32)for(y|=(127&f)>>4,w=3;w<32&&128&f;w+=7)f=E[A++],y|=(127&f)<<w;if(td(i,A),!(128&f))return c(h>>>0,y>>>0);throw Error()}function fw(i){let c=0,f=i.g;const h=f+10,y=i.h;for(;f<h;){const w=y[f++];if(c|=w,(128&w)==0)return td(i,f),!!(127&c)}throw Error()}function nr(i){const c=i.h;let f=i.g,h=c[f++],y=127&h;if(128&h&&(h=c[f++],y|=(127&h)<<7,128&h&&(h=c[f++],y|=(127&h)<<14,128&h&&(h=c[f++],y|=(127&h)<<21,128&h&&(h=c[f++],y|=h<<28,128&h&&128&c[f++]&&128&c[f++]&&128&c[f++]&&128&c[f++]&&128&c[f++])))))throw Error();return td(i,f),y}function jc(i){return nr(i)>>>0}function Cy(i){var c=i.h;const f=i.g;var h=c[f],y=c[f+1];const w=c[f+2];return c=c[f+3],td(i,i.g+4),i=2*((y=(h<<0|y<<8|w<<16|c<<24)>>>0)>>31)+1,h=y>>>23&255,y&=8388607,h==255?y?NaN:i*(1/0):h==0?1401298464324817e-60*i*y:i*Math.pow(2,h-150)*(y+8388608)}function FT(i){return nr(i)}function td(i,c){if(i.g=c,c>i.l)throw Error()}function R5(i,c){if(c<0)throw Error();const f=i.g;if((c=f+c)>i.l)throw Error();return i.g=c,f}function j5(i,c){if(c==0)return Qf();var f=R5(i,c);return i.Y&&i.j?f=i.h.subarray(f,f+c):(i=i.h,f=f===(c=f+c)?new Uint8Array(0):CT?i.slice(f,c):new Uint8Array(i.subarray(f,c))),f.length==0?Qf():new Go(f,Zh)}var q5=[];function V5(i,c,f,h){if(zy.length){const y=zy.pop();return y.o(h),y.g.init(i,c,f,h),y}return new $T(i,c,f,h)}function Y5(i){i.g.clear(),i.l=-1,i.h=-1,zy.length<100&&zy.push(i)}function k5(i){var c=i.g;if(c.g==c.l)return!1;i.m=i.g.g;var f=jc(i.g);if(c=f>>>3,!((f&=7)>=0&&f<=5)||c<1)throw Error();return i.l=c,i.h=f,!0}function Dy(i){switch(i.h){case 0:i.h!=0?Dy(i):fw(i.g);break;case 1:td(i=i.g,i.g+8);break;case 2:if(i.h!=2)Dy(i);else{var c=jc(i.g);td(i=i.g,i.g+c)}break;case 5:td(i=i.g,i.g+4);break;case 3:for(c=i.l;;){if(!k5(i))throw Error();if(i.h==4){if(i.l!=c)throw Error();break}Dy(i)}break;default:throw Error()}}function cm(i,c,f){const h=i.g.l;var y=jc(i.g);let w=(y=i.g.g+y)-h;if(w<=0&&(i.g.l=y,f(c,i,void 0,void 0,void 0),w=y-i.g.g),w)throw Error();return i.g.g=y,i.g.l=h,c}function dw(i){var c=jc(i.g),f=R5(i=i.g,c);if(i=i.h,oT){var h,y=i;(h=Bv)||(h=Bv=new TextDecoder("utf-8",{fatal:!0})),c=f+c,y=f===0&&c===y.length?y:y.subarray(f,c);try{var w=h.decode(y)}catch(A){if(py===void 0){try{h.decode(new Uint8Array([128]))}catch{}try{h.decode(new Uint8Array([97])),py=!0}catch{py=!1}}throw!py&&(Bv=void 0),A}}else{c=(w=f)+c,f=[];let A,M=null;for(;w<c;){var E=i[w++];E<128?f.push(E):E<224?w>=c?Xf():(A=i[w++],E<194||(192&A)!=128?(w--,Xf()):f.push((31&E)<<6|63&A)):E<240?w>=c-1?Xf():(A=i[w++],(192&A)!=128||E===224&&A<160||E===237&&A>=160||(192&(h=i[w++]))!=128?(w--,Xf()):f.push((15&E)<<12|(63&A)<<6|63&h)):E<=244?w>=c-2?Xf():(A=i[w++],(192&A)!=128||A-144+(E<<28)>>30||(192&(h=i[w++]))!=128||(192&(y=i[w++]))!=128?(w--,Xf()):(E=(7&E)<<18|(63&A)<<12|(63&h)<<6|63&y,E-=65536,f.push(55296+(E>>10&1023),56320+(1023&E)))):Xf(),f.length>=8192&&(M=Q6(M,f),f.length=0)}w=Q6(M,f)}return w}function X5(i){const c=jc(i.g);return j5(i.g,c)}function Oy(i,c,f){var h=jc(i.g);for(h=i.g.g+h;i.g.g<h;)f.push(c(i.g))}var $T=class{constructor(i,c,f,h){if(q5.length){const y=q5.pop();y.init(i,c,f,h),i=y}else i=new class{constructor(y,w,E,A){this.h=null,this.j=!1,this.g=this.l=this.m=0,this.init(y,w,E,A)}init(y,w,E,{Y:A=!1,ea:M=!1}={}){this.Y=A,this.ea=M,y&&(y=rw(y,this.ea),this.h=y.buffer,this.j=y.g,this.m=w||0,this.l=E!==void 0?this.m+E:this.h.length,this.g=this.m)}clear(){this.h=null,this.j=!1,this.g=this.l=this.m=0,this.Y=!1}}(i,c,f,h);this.g=i,this.m=this.g.g,this.h=this.l=-1,this.o(h)}o({ha:i=!1}={}){this.ha=i}},zy=[];function Q5(i){return i?/^\d+$/.test(i)?(by(i),new hw(En,$n)):null:IT||(IT=new hw(0,0))}var hw=class{constructor(i,c){this.h=i>>>0,this.g=c>>>0}};let IT;function Z5(i){return i?/^-?\d+$/.test(i)?(by(i),new mw(En,$n)):null:WT||(WT=new mw(0,0))}var mw=class{constructor(i,c){this.h=i>>>0,this.g=c>>>0}};let WT;function c0(i,c,f){for(;f>0||c>127;)i.g.push(127&c|128),c=(c>>>7|f<<25)>>>0,f>>>=7;i.g.push(c)}function s0(i,c){for(;c>127;)i.g.push(127&c|128),c>>>=7;i.g.push(c)}function Ny(i,c){if(c>=0)s0(i,c);else{for(let f=0;f<9;f++)i.g.push(127&c|128),c>>=7;i.g.push(1)}}function gw(i){var c=En;i.g.push(c>>>0&255),i.g.push(c>>>8&255),i.g.push(c>>>16&255),i.g.push(c>>>24&255)}function r0(i,c){c.length!==0&&(i.l.push(c),i.h+=c.length)}function au(i,c,f){s0(i.g,8*c+f)}function pw(i,c){return au(i,c,2),c=i.g.end(),r0(i,c),c.push(i.h),c}function yw(i,c){var f=c.pop();for(f=i.h+i.g.length()-f;f>127;)c.push(127&f|128),f>>>=7,i.h++;c.push(f),i.h++}function Uy(i,c,f){au(i,c,2),s0(i.g,f.length),r0(i,i.g.end()),r0(i,f)}function By(i,c,f,h){f!=null&&(c=pw(i,c),h(f,i),yw(i,c))}function qo(){const i=class{constructor(){throw Error()}};return Object.setPrototypeOf(i,i.prototype),i}var vw=qo(),J5=qo(),ww=qo(),bw=qo(),K5=qo(),F5=qo(),PT=qo(),Hy=qo(),$5=qo(),I5=qo();function Vo(i,c,f){var h=i.v;fi&&fi in h&&(h=h[fi])&&delete h[c.g],c.h?c.j(i,c.h,c.g,f,c.l):c.j(i,c.g,f,c.l)}var Ee=class{constructor(i,c){this.v=M5(i,c,void 0,2048)}toJSON(){return x5(this)}j(){var y;var i=HA,c=this.v,f=i.g,h=fi;if(Fh&&h&&((y=c[h])==null?void 0:y[f])!=null&&Jh(vT,3),c=i.g,i5&&fi&&i5===void 0&&(h=(f=this.v)[fi])&&(h=h.da))try{h(f,c,YT)}catch(w){J6(w)}return i.h?i.m(this,i.h,i.g,i.l):i.m(this,i.g,i.defaultValue,i.l)}clone(){const i=this.v,c=0|i[Se];return nw(this,i,c)?ew(this,i,!0):new this.constructor(n0(i,c,!1))}};Ee.prototype[$h]=Ih,Ee.prototype.toString=function(){return this.v.toString()};var f0=class{constructor(i,c,f){this.g=i,this.h=c,i=vw,this.l=!!i&&f===i||!1}};function Ly(i,c){return new f0(i,c,vw)}function W5(i,c,f,h,y){By(i,f,lS(c,h),y)}const eA=Ly(function(i,c,f,h,y){return i.h===2&&(cm(i,cw(c,h,f),y),!0)},W5),tA=Ly(function(i,c,f,h,y){return i.h===2&&(cm(i,cw(c,h,f),y),!0)},W5);var Gy=Symbol(),Ry=Symbol(),Sw=Symbol(),P5=Symbol(),eS=Symbol();let tS,nS;function nd(i,c,f,h){var y=h[i];if(y)return y;(y={}).qa=h,y.T=function(N){switch(typeof N){case"boolean":return QT||(QT=[0,void 0,!0]);case"number":return N>0?void 0:N===0?ZT||(ZT=[0,void 0]):[-N,void 0];case"string":return[0,N];case"object":return N}}(h[0]);var w=h[1];let E=1;w&&w.constructor===Object&&(y.ba=w,typeof(w=h[++E])=="function"&&(y.ma=!0,tS??(tS=w),nS??(nS=h[E+1]),w=h[E+=2]));const A={};for(;w&&Array.isArray(w)&&w.length&&typeof w[0]=="number"&&w[0]>0;){for(var M=0;M<w.length;M++)A[w[M]]=w;w=h[++E]}for(M=1;w!==void 0;){let N;typeof w=="number"&&(M+=w,w=h[++E]);var G=void 0;if(w instanceof f0?N=w:(N=eA,E--),N==null?void 0:N.l){w=h[++E],G=h;var U=E;typeof w=="function"&&(w=w(),G[U]=w),G=w}for(U=M+1,typeof(w=h[++E])=="number"&&w<0&&(U-=w,w=h[++E]);M<U;M++){const q=A[M];G?f(y,M,N,G,q):c(y,M,N,q)}}return h[i]=y}function aS(i){return Array.isArray(i)?i[0]instanceof f0?i:[tA,i]:[i,void 0]}function lS(i,c){return i instanceof Ee?i.v:Array.isArray(i)?Ff(i,c):void 0}function Ew(i,c,f,h){const y=f.g;i[c]=h?(w,E,A)=>y(w,E,A,h):y}function Tw(i,c,f,h,y){const w=f.g;let E,A;i[c]=(M,G,U)=>w(M,G,U,A||(A=nd(Ry,Ew,Tw,h).T),E||(E=Aw(h)),y)}function Aw(i){let c=i[Sw];if(c!=null)return c;const f=nd(Ry,Ew,Tw,i);return c=f.ma?(h,y)=>tS(h,y,f):(h,y)=>{for(;k5(y)&&y.h!=4;){var w=y.l,E=f[w];if(E==null){var A=f.ba;A&&(A=A[w])&&(A=aA(A))!=null&&(E=f[w]=A)}if(E==null||!E(y,h,w)){if(E=(A=y).m,Dy(A),A.ha)var M=void 0;else M=A.g.g-E,A.g.g=E,M=j5(A.g,M);E=void 0,A=h,M&&((E=A[fi]??(A[fi]=new Pv))[w]??(E[w]=[])).push(M)}}return(h=Ty(h))&&(h.da=f.qa[eS]),!0},i[Sw]=c,i[eS]=nA.bind(i),c}function nA(i,c,f,h){var y=this[Ry];const w=this[Sw],E=Ff(void 0,y.T),A=Ty(i);if(A){var M=!1,G=y.ba;if(G){if(y=(U,N,q)=>{if(q.length!==0)if(G[N])for(const k of q){U=V5(k);try{M=!0,w(E,U)}finally{Y5(U)}}else h==null||h(i,N,q)},c==null)Ay(A,y);else if(A!=null){const U=A[c];U&&y(A,c,U)}if(M){let U=0|i[Se];if(2&U&&2048&U&&!(f!=null&&f.Ka))throw Error();const N=Wh(U),q=(k,ne)=>{if(Lc(i,k,N)!=null){if((f==null?void 0:f.Qa)===1)return;throw Error()}ne!=null&&(U=ya(i,U,k,ne,N)),delete A[k]};c==null?r5(E,0|E[Se],(k,ne)=>{q(k,ne)}):q(c,Lc(E,c,N))}}}}function aA(i){const c=(i=aS(i))[0].g;if(i=i[1]){const f=Aw(i),h=nd(Ry,Ew,Tw,i).T;return(y,w,E)=>c(y,w,E,h,f)}return c}function jy(i,c,f){i[c]=f.h}function qy(i,c,f,h){let y,w;const E=f.h;i[c]=(A,M,G)=>E(A,M,G,w||(w=nd(Gy,jy,qy,h).T),y||(y=iS(h)))}function iS(i){let c=i[P5];if(!c){const f=nd(Gy,jy,qy,i);c=(h,y)=>uS(h,y,f),i[P5]=c}return c}function uS(i,c,f){r5(i,0|i[Se],(h,y)=>{if(y!=null){var w=function(E,A){var M=E[A];if(M)return M;if((M=E.ba)&&(M=M[A])){var G=(M=aS(M))[0].h;if(M=M[1]){const U=iS(M),N=nd(Gy,jy,qy,M).T;M=E.ma?nS(N,U):(q,k,ne)=>G(q,k,ne,N,U)}else M=G;return E[A]=M}}(f,h);w?w(c,y,h):h<500||Jh(Vv,3)}}),(i=Ty(i))&&Ay(i,(h,y,w)=>{for(r0(c,c.g.end()),h=0;h<w.length;h++)r0(c,jv(w[h])||new Uint8Array(0))})}const lA=hi(0);function d0(i,c){if(Array.isArray(c)){var f=0|c[Se];if(4&f)return c;for(var h=0,y=0;h<c.length;h++){const w=i(c[h]);w!=null&&(c[y++]=w)}return y<h&&(c.length=y),(i=-1537&(5|f))!==f&&pa(c,i),2&i&&Object.freeze(c),c}}function yl(i,c,f){return new f0(i,c,f)}function h0(i,c,f){return new f0(i,c,f)}function Ma(i,c,f){ya(i,0|i[Se],c,f,Wh(0|i[Se]))}var iA=Ly(function(i,c,f,h,y){if(i.h!==2)return!1;if(i=to(i=cm(i,Ff([void 0,void 0],h),y)),y=Wh(h=0|c[Se]),2&h)throw Error();let w=Lc(c,f,y);if(w instanceof Hc)2&w.J?(w=w.V(),w.push(i),ya(c,h,f,w,y)):w.Ma(i);else if(Array.isArray(w)){var E=0|w[Se];8192&E||pa(w,E|=8192),2&E&&(w=N5(w),ya(c,h,f,w,y)),w.push(i)}else ya(c,h,f,P2([i]),y);return!0},function(i,c,f,h,y){if(c instanceof Hc)c.forEach((w,E)=>{By(i,f,Ff([E,w],h),y)});else if(Array.isArray(c)){for(let w=0;w<c.length;w++){const E=c[w];Array.isArray(E)&&By(i,f,Ff(E,h),y)}P2(c)}});function oS(i,c,f){(c=jo(c))!=null&&(au(i,f,5),i=i.g,Xv(c),gw(i))}function cS(i,c,f){if(c=function(h){if(h==null)return h;const y=typeof h;if(y==="bigint")return String(tm(64,h));if(lm(h)){if(y==="string")return b5(h);if(y==="number")return Fv(h)}}(c),c!=null&&(typeof c=="string"&&Z5(c),c!=null))switch(au(i,f,0),typeof c){case"number":i=i.g,Ph(c),c0(i,En,$n);break;case"bigint":f=BigInt.asUintN(64,c),f=new mw(Number(f&BigInt(4294967295)),Number(f>>BigInt(32))),c0(i.g,f.h,f.g);break;default:f=Z5(c),c0(i.g,f.h,f.g)}}function sS(i,c,f){(c=t0(c))!=null&&c!=null&&(au(i,f,0),Ny(i.g,c))}function rS(i,c,f){(c=y5(c))!=null&&(au(i,f,0),i.g.g.push(c?1:0))}function fS(i,c,f){(c=qa(c))!=null&&Uy(i,f,Z6(c))}function dS(i,c,f,h,y){By(i,f,lS(c,h),y)}function hS(i,c,f){(c=c==null||typeof c=="string"||c instanceof Go?c:void 0)!=null&&Uy(i,f,rw(c,!0).buffer)}function mS(i,c,f){return(i.h===5||i.h===2)&&(c=i0(c,0|c[Se],f),i.h==2?Oy(i,Cy,c):c.push(Cy(i.g)),!0)}var In=yl(function(i,c,f){return i.h===5&&(Ma(c,f,Cy(i.g)),!0)},oS,Hy),uA=h0(mS,function(i,c,f){if((c=d0(jo,c))!=null)for(let E=0;E<c.length;E++){var h=i,y=f,w=c[E];w!=null&&(au(h,y,5),h=h.g,Xv(w),gw(h))}},Hy),_w=h0(mS,function(i,c,f){if((c=d0(jo,c))!=null&&c.length){au(i,f,2),s0(i.g,4*c.length);for(let h=0;h<c.length;h++)f=i.g,Xv(c[h]),gw(f)}},Hy),oA=yl(function(i,c,f){return i.h===5&&(Ma(c,f,(i=Cy(i.g))===0?void 0:i),!0)},oS,Hy),ar=yl(function(i,c,f){return Lv?(i.h!==0?i=!1:(Ma(c,f,o0(i.g,g5)),i=!0),i):i.h===0&&(Ma(c,f,o0(i.g,Zv)),!0)},cS,F5),xw=yl(function(i,c,f){return Lv?(i.h!==0?c=!1:(Ma(c,f,(i=o0(i.g,g5))===lA?void 0:i),c=!0),c):i.h===0&&(Ma(c,f,(i=o0(i.g,Zv))===0?void 0:i),!0)},cS,F5),cA=yl(function(i,c,f){return Lv?(i.h!==0?i=!1:(Ma(c,f,o0(i.g,OT)),i=!0),i):i.h===0&&(Ma(c,f,o0(i.g,Qv)),!0)},function(i,c,f){if(c=function(h){if(h==null)return h;var y=typeof h;if(y==="bigint")return String(zT(64,h));if(lm(h)){if(y==="string")return y=e0(Number(h)),Kf(y)&&y>=0?h=String(y):((y=h.indexOf("."))!==-1&&(h=h.substring(0,y)),(y=h[0]!=="-"&&((y=h.length)<20||y===20&&h<="18446744073709551615"))||(by(h),h=em(En,$n))),h;if(y==="number")return(h=e0(h))>=0&&Kf(h)||(Ph(h),h=Qv(En,$n)),h}}(c),c!=null&&(typeof c=="string"&&Q5(c),c!=null))switch(au(i,f,0),typeof c){case"number":i=i.g,Ph(c),c0(i,En,$n);break;case"bigint":f=BigInt.asUintN(64,c),f=new hw(Number(f&BigInt(4294967295)),Number(f>>BigInt(32))),c0(i.g,f.h,f.g);break;default:f=Q5(c),c0(i.g,f.h,f.g)}},PT),Ca=yl(function(i,c,f){return i.h===0&&(Ma(c,f,nr(i.g)),!0)},sS,bw),sm=h0(function(i,c,f){return(i.h===0||i.h===2)&&(c=i0(c,0|c[Se],f),i.h==2?Oy(i,nr,c):c.push(nr(i.g)),!0)},function(i,c,f){if((c=d0(t0,c))!=null&&c.length){f=pw(i,f);for(let h=0;h<c.length;h++)Ny(i.g,c[h]);yw(i,f)}},bw),m0=yl(function(i,c,f){return i.h===0&&(Ma(c,f,(i=nr(i.g))===0?void 0:i),!0)},sS,bw),Vn=yl(function(i,c,f){return i.h===0&&(Ma(c,f,fw(i.g)),!0)},rS,J5),ad=yl(function(i,c,f){return i.h===0&&(Ma(c,f,(i=fw(i.g))===!1?void 0:i),!0)},rS,J5),ul=h0(function(i,c,f){return i.h===2&&(i=dw(i),i0(c,0|c[Se],f).push(i),!0)},function(i,c,f){if((c=d0(qa,c))!=null)for(let E=0;E<c.length;E++){var h=i,y=f,w=c[E];w!=null&&Uy(h,y,Z6(w))}},ww),lr=yl(function(i,c,f){return i.h===2&&(Ma(c,f,(i=dw(i))===""?void 0:i),!0)},fS,ww),Pt=yl(function(i,c,f){return i.h===2&&(Ma(c,f,dw(i)),!0)},fS,ww),Da=function(i,c,f=vw){return new f0(i,c,f)}(function(i,c,f,h,y){return i.h===2&&(h=Ff(void 0,h),i0(c,0|c[Se],f).push(h),cm(i,h,y),!0)},function(i,c,f,h,y){if(Array.isArray(c)){for(let w=0;w<c.length;w++)dS(i,c[w],f,h,y);1&(i=0|c[Se])||pa(c,1|i)}}),Yn=Ly(function(i,c,f,h,y,w){if(i.h!==2)return!1;let E=0|c[Se];return U5(c,E,w,f,Wh(E)),cm(i,c=cw(c,h,f),y),!0},dS),gS=yl(function(i,c,f){return i.h===2&&(Ma(c,f,X5(i)),!0)},hS,$5),sA=h0(function(i,c,f){return(i.h===0||i.h===2)&&(c=i0(c,0|c[Se],f),i.h==2?Oy(i,jc,c):c.push(jc(i.g)),!0)},function(i,c,f){if((c=d0(v5,c))!=null)for(let E=0;E<c.length;E++){var h=i,y=f,w=c[E];w!=null&&(au(h,y,0),s0(h.g,w))}},K5),rA=yl(function(i,c,f){return i.h===0&&(Ma(c,f,(i=jc(i.g))===0?void 0:i),!0)},function(i,c,f){(c=v5(c))!=null&&c!=null&&(au(i,f,0),s0(i.g,c))},K5),gi=yl(function(i,c,f){return i.h===0&&(Ma(c,f,nr(i.g)),!0)},function(i,c,f){(c=t0(c))!=null&&(c=parseInt(c,10),au(i,f,0),Ny(i.g,c))},I5);class fA{constructor(c,f){var h=pi;this.g=c,this.h=f,this.m=xt,this.j=Ue,this.defaultValue=void 0,this.l=h.Oa!=null?f5:void 0}register(){yy(this)}}function Yo(i,c){return new fA(i,c)}function ir(i,c){return(f,h)=>{{const w={ea:!0};h&&Object.assign(w,h),f=V5(f,void 0,void 0,w);try{const E=new i,A=E.v;Aw(c)(A,f);var y=E}finally{Y5(f)}}return y}}function Vy(i){return function(){const c=new class{constructor(){this.l=[],this.h=0,this.g=new class{constructor(){this.g=[]}length(){return this.g.length}end(){const E=this.g;return this.g=[],E}}}};uS(this.v,c,nd(Gy,jy,qy,i)),r0(c,c.g.end());const f=new Uint8Array(c.h),h=c.l,y=h.length;let w=0;for(let E=0;E<y;E++){const A=h[E];f.set(A,w),w+=A.length}return c.l=[f],f}}var pS=class extends Ee{constructor(i){super(i)}},yS=[0,lr,yl(function(i,c,f){return i.h===2&&(Ma(c,f,(i=X5(i))===Qf()?void 0:i),!0)},function(i,c,f){if(c!=null){if(c instanceof Ee){const h=c.Ra;return void(h?(c=h(c),c!=null&&Uy(i,f,rw(c,!0).buffer)):Jh(Vv,3))}if(Array.isArray(c))return void Jh(Vv,3)}hS(i,c,f)},$5)];let Mw,vS=globalThis.trustedTypes;function wS(i){var c;return Mw===void 0&&(Mw=function(){let f=null;if(!vS)return f;try{const h=y=>y;f=vS.createPolicy("goog#html",{createHTML:h,createScript:h,createScriptURL:h})}catch{}return f}()),i=(c=Mw)?c.createScriptURL(i):i,new class{constructor(f){this.g=f}toString(){return this.g+""}}(i)}function dA(i,...c){if(c.length===0)return wS(i[0]);let f=i[0];for(let h=0;h<c.length;h++)f+=encodeURIComponent(c[h])+i[h+1];return wS(f)}var bS=[0,Ca,gi,Vn,-1,sm,gi,-1,Vn],hA=class extends Ee{constructor(i){super(i)}},SS=[0,Vn,Pt,Vn,gi,-1,h0(function(i,c,f){return(i.h===0||i.h===2)&&(c=i0(c,0|c[Se],f),i.h==2?Oy(i,FT,c):c.push(nr(i.g)),!0)},function(i,c,f){if((c=d0(t0,c))!=null&&c.length){f=pw(i,f);for(let h=0;h<c.length;h++)Ny(i.g,c[h]);yw(i,f)}},I5),Pt,-1,[0,Vn,-1],gi,Vn,-1],ES=[0,3,Vn,-1,2,[0,Ca],[0,gi,Vn],[0,Pt,-1],[0]],TS=[0,Pt,-2],AS=class extends Ee{constructor(i){super(i)}},_S=[0],xS=[0,Ca,Vn,1,Vn,-4],pi=class extends Ee{constructor(i){super(i,2)}},va={};va[336783863]=[0,Pt,Vn,-1,Ca,[0,[1,2,3,4,5,6,7,8,9],Yn,_S,Yn,SS,Yn,TS,Yn,xS,Yn,bS,Yn,[0,Pt,-2],Yn,[0,Pt,gi],Yn,ES,Yn,[0,gi,-1,Vn]],[0,Pt],Vn,[0,[1,3],[2,4],Yn,[0,sm],-1,Yn,[0,ul],-1,Da,[0,Pt,-1]],Pt];var MS=[0,xw,-1,ad,-3,xw,sm,lr,m0,xw,-1,ad,m0,ad,-2,lr];function gn(i,c){My(i,3,c)}function yt(i,c){My(i,4,c)}var kl=class extends Ee{constructor(i){super(i,500)}o(i){return Ue(this,0,7,i)}},rm=[-1,{}],CS=[0,Pt,1,rm],DS=[0,Pt,ul,rm];function lu(i,c){sw(i,1,kl,c)}function Tn(i,c){My(i,10,c)}function Nt(i,c){My(i,15,c)}var yi=class extends Ee{constructor(i){super(i,500)}o(i){return Ue(this,0,1001,i)}},OS=[-500,Da,[-500,lr,-1,ul,-3,[-2,va,Vn],Da,yS,m0,-1,CS,DS,Da,[0,lr,ad],lr,MS,m0,ul,987,ul],4,Da,[-500,Pt,-1,[-1,{}],998,Pt],Da,[-500,Pt,ul,-1,[-2,{},Vn],997,ul,-1],m0,Da,[-500,Pt,ul,rm,998,ul],ul,m0,CS,DS,Da,[0,lr,-1,rm],ul,-2,MS,lr,-1,ad,[0,ad,rA],978,rm,Da,yS];yi.prototype.g=Vy(OS);var mA=ir(yi,OS),gA=class extends Ee{constructor(i){super(i)}},zS=class extends Ee{constructor(i){super(i)}g(){return Gc(this,gA,1)}},NS=[0,Da,[0,Ca,In,Pt,-1]],Yy=ir(zS,NS),pA=class extends Ee{constructor(i){super(i)}},yA=class extends Ee{constructor(i){super(i)}},Cw=class extends Ee{constructor(i){super(i)}l(){return xt(this,pA,2)}g(){return Gc(this,yA,5)}},US=ir(class extends Ee{constructor(i){super(i)}},[0,ul,sm,_w,[0,gi,[0,Ca,-3],[0,In,-3],[0,Ca,-1,[0,Da,[0,Ca,-2]]],Da,[0,In,-1,Pt,In]],Pt,-1,ar,Da,[0,Ca,In],ul,ar]),BS=class extends Ee{constructor(i){super(i)}},g0=ir(class extends Ee{constructor(i){super(i)}},[0,Da,[0,In,-4]]),HS=class extends Ee{constructor(i){super(i)}},fm=ir(class extends Ee{constructor(i){super(i)}},[0,Da,[0,In,-4]]),vA=class extends Ee{constructor(i){super(i)}},wA=[0,Ca,-1,_w,gi],LS=class extends Ee{constructor(i){super(i)}};LS.prototype.g=Vy([0,In,-4,ar]);var bA=class extends Ee{constructor(i){super(i)}},SA=ir(class extends Ee{constructor(i){super(i)}},[0,Da,[0,1,Ca,Pt,NS],ar]),GS=class extends Ee{constructor(i){super(i)}},EA=class extends Ee{constructor(i){super(i)}na(){const i=mn(this,1,void 0,void 0,z5);return i??Qf()}},TA=class extends Ee{constructor(i){super(i)}},RS=[1,2],AA=ir(class extends Ee{constructor(i){super(i)}},[0,Da,[0,RS,Yn,[0,_w],Yn,[0,gS],Ca,Pt],ar]),Dw=class extends Ee{constructor(i){super(i)}},jS=[0,Pt,Ca,In,ul,-1],qS=class extends Ee{constructor(i){super(i)}},_A=[0,Vn,-1],VS=class extends Ee{constructor(i){super(i)}},ky=[1,2,3,4,5,6],Xy=class extends Ee{constructor(i){super(i)}g(){return mn(this,1,void 0,void 0,z5)!=null}l(){return qa(mn(this,2))!=null}},Un=class extends Ee{constructor(i){super(i)}g(){return y5(mn(this,2))??!1}},YS=[0,gS,Pt,[0,Ca,ar,-1],[0,cA,ar]],Wn=[0,YS,Vn,[0,ky,Yn,xS,Yn,SS,Yn,bS,Yn,_S,Yn,TS,Yn,ES],gi],Qy=class extends Ee{constructor(i){super(i)}},Ow=[0,Wn,In,-1,Ca],xA=Yo(502141897,Qy);va[502141897]=Ow;var MA=ir(class extends Ee{constructor(i){super(i)}},[0,[0,gi,-1,uA,sA],wA]),kS=class extends Ee{constructor(i){super(i)}},XS=class extends Ee{constructor(i){super(i)}},zw=[0,Wn,In,[0,Wn],Vn],CA=Yo(508968150,XS);va[508968150]=[0,Wn,Ow,zw,In,[0,[0,YS]]],va[508968149]=zw;var p0=class extends Ee{constructor(i){super(i)}l(){return xt(this,Dw,2)}g(){Yt(this,2)}},QS=[0,Wn,jS];va[478825465]=QS;var DA=class extends Ee{constructor(i){super(i)}},ZS=class extends Ee{constructor(i){super(i)}},Nw=class extends Ee{constructor(i){super(i)}},Uw=class extends Ee{constructor(i){super(i)}},JS=class extends Ee{constructor(i){super(i)}},KS=[0,Wn,[0,Wn],QS,-1],FS=[0,Wn,In,Ca],Bw=[0,Wn,In],$S=[0,Wn,FS,Bw,In],OA=Yo(479097054,JS);va[479097054]=[0,Wn,$S,KS],va[463370452]=KS,va[464864288]=FS;var zA=Yo(462713202,Uw);va[462713202]=$S,va[474472470]=Bw;var NA=class extends Ee{constructor(i){super(i)}},IS=class extends Ee{constructor(i){super(i)}},WS=class extends Ee{constructor(i){super(i)}},PS=class extends Ee{constructor(i){super(i)}},Hw=[0,Wn,In,-1,Ca],Lw=[0,Wn,In,Vn];PS.prototype.g=Vy([0,Wn,Bw,[0,Wn],Ow,zw,Hw,Lw]);var e8=class extends Ee{constructor(i){super(i)}},UA=Yo(456383383,e8);va[456383383]=[0,Wn,jS];var t8=class extends Ee{constructor(i){super(i)}},BA=Yo(476348187,t8);va[476348187]=[0,Wn,_A];var n8=class extends Ee{constructor(i){super(i)}},a8=class extends Ee{constructor(i){super(i)}},l8=[0,gi,-1],HA=Yo(458105876,class extends Ee{constructor(i){super(i)}g(){let i;var c=this.v;const f=0|c[Se];return i=di(this,f),c=function(h,y,w,E){var A=a8;!E&&a0(h)&&(w=0|(y=h.v)[Se]);var M=Lc(y,2);if(h=!1,M==null){if(E)return _5();M=[]}else if(M.constructor===Hc){if(!(2&M.J)||E)return M;M=M.V()}else Array.isArray(M)?h=!!(2&(0|M[Se])):M=[];if(E){if(!M.length)return _5();h||(h=!0,W2(M))}else h&&(h=!1,P2(M),M=N5(M));return!h&&32&w&&I2(M,32),w=ya(y,w,2,E=new Hc(M,A,HT,void 0)),h||$f(y,w),E}(this,c,f,i),!i&&a8&&(c.ra=!0),c}});va[458105876]=[0,l8,iA,[!0,ar,[0,Pt,-1,ul]],[0,sm,Vn,gi]];var Gw=class extends Ee{constructor(i){super(i)}},i8=Yo(458105758,Gw);va[458105758]=[0,Wn,Pt,l8];var Rw=class extends Ee{constructor(i){super(i)}},u8=[0,oA,-1,ad],LA=class extends Ee{constructor(i){super(i)}},o8=class extends Ee{constructor(i){super(i)}},jw=[1,2];o8.prototype.g=Vy([0,jw,Yn,u8,Yn,[0,Da,u8]]);var c8=class extends Ee{constructor(i){super(i)}},GA=Yo(443442058,c8);va[443442058]=[0,Wn,Pt,Ca,In,ul,-1,Vn,In],va[514774813]=Hw;var s8=class extends Ee{constructor(i){super(i)}},RA=Yo(516587230,s8);function qw(i,c){return c=c?c.clone():new Dw,i.displayNamesLocale!==void 0?Yt(c,1,im(i.displayNamesLocale)):i.displayNamesLocale===void 0&&Yt(c,1),i.maxResults!==void 0?Rc(c,2,i.maxResults):"maxResults"in i&&Yt(c,2),i.scoreThreshold!==void 0?Oe(c,3,i.scoreThreshold):"scoreThreshold"in i&&Yt(c,3),i.categoryAllowlist!==void 0?xy(c,4,i.categoryAllowlist):"categoryAllowlist"in i&&Yt(c,4),i.categoryDenylist!==void 0?xy(c,5,i.categoryDenylist):"categoryDenylist"in i&&Yt(c,5),c}function r8(i){const c=Number(i);return Number.isSafeInteger(c)?c:String(i)}function Vw(i,c=-1,f=""){return{categories:i.map(h=>({index:nu(h,1)??0??-1,score:qn(h,2)??0,categoryName:qa(mn(h,3))??""??"",displayName:qa(mn(h,4))??""??""})),headIndex:c,headName:f}}function jA(i){const c={classifications:Gc(i,bA,1).map(f=>{var h;return Vw(((h=xt(f,zS,4))==null?void 0:h.g())??[],nu(f,2)??0,qa(mn(f,3))??"")})};return function(f){return BT(Gv?mn(f,2,void 0,void 0,Ey):mn(f,2))}(i)!=null&&(c.timestampMs=r8(G5(i))),c}function f8(i){var E,A;var c=Wf(i,3,jo,If()),f=Wf(i,2,t0,If()),h=Wf(i,1,qa,If()),y=Wf(i,9,qa,If());const w={categories:[],keypoints:[]};for(let M=0;M<c.length;M++)w.categories.push({score:c[M],index:f[M]??-1,categoryName:h[M]??"",displayName:y[M]??""});if((c=(E=xt(i,Cw,4))==null?void 0:E.l())&&(w.boundingBox={originX:nu(c,1,er)??0,originY:nu(c,2,er)??0,width:nu(c,3,er)??0,height:nu(c,4,er)??0,angle:0}),(A=xt(i,Cw,4))==null?void 0:A.g().length)for(const M of xt(i,Cw,4).g())w.keypoints.push({x:mn(M,1,void 0,er,jo)??0,y:mn(M,2,void 0,er,jo)??0,score:mn(M,4,void 0,er,jo)??0,label:qa(mn(M,3,void 0,er))??""});return w}function Zy(i){const c=[];for(const f of Gc(i,HS,1))c.push({x:qn(f,1)??0,y:qn(f,2)??0,z:qn(f,3)??0,visibility:qn(f,4)??0});return c}function dm(i){const c=[];for(const f of Gc(i,BS,1))c.push({x:qn(f,1)??0,y:qn(f,2)??0,z:qn(f,3)??0,visibility:qn(f,4)??0});return c}function d8(i){return Array.from(i,c=>c>127?c-256:c)}function h8(i,c){if(i.length!==c.length)throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${i.length} vs. ${c.length}).`);let f=0,h=0,y=0;for(let w=0;w<i.length;w++)f+=i[w]*c[w],h+=i[w]*i[w],y+=c[w]*c[w];if(h<=0||y<=0)throw Error("Cannot compute cosine similarity on embedding with 0 norm.");return f/Math.sqrt(h*y)}let Jy;va[516587230]=[0,Wn,Hw,Lw,In],va[518928384]=Lw;const qA=new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]);async function m8(){if(Jy===void 0)try{await WebAssembly.instantiate(qA),Jy=!0}catch{Jy=!1}return Jy}async function hm(i,c=dA``){const f=await m8()?"wasm_internal":"wasm_nosimd_internal";return{wasmLoaderPath:`${c}/${i}_${f}.js`,wasmBinaryPath:`${c}/${i}_${f}.wasm`}}var ld=class{};function g8(){var i=navigator;return typeof OffscreenCanvas<"u"&&(!function(c=navigator){return(c=c.userAgent).includes("Safari")&&!c.includes("Chrome")}(i)||!!((i=i.userAgent.match(/Version\/([\d]+).*Safari/))&&i.length>=1&&Number(i[1])>=17))}async function p8(i){if(typeof importScripts!="function"){const c=document.createElement("script");return c.src=i.toString(),c.crossOrigin="anonymous",new Promise((f,h)=>{c.addEventListener("load",()=>{f()},!1),c.addEventListener("error",y=>{h(y)},!1),document.body.appendChild(c)})}try{importScripts(i.toString())}catch(c){if(!(c instanceof TypeError))throw c;await self.import(i.toString())}}function y8(i){return i.videoWidth!==void 0?[i.videoWidth,i.videoHeight]:i.naturalWidth!==void 0?[i.naturalWidth,i.naturalHeight]:i.displayWidth!==void 0?[i.displayWidth,i.displayHeight]:[i.width,i.height]}function _e(i,c,f){i.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"),f(c=i.i.stringToNewUTF8(c)),i.i._free(c)}function v8(i,c,f){if(!i.i.canvas)throw Error("No OpenGL canvas configured.");if(f?i.i._bindTextureToStream(f):i.i._bindTextureToCanvas(),!(f=i.i.canvas.getContext("webgl2")||i.i.canvas.getContext("webgl")))throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");i.i.gpuOriginForWebTexturesIsBottomLeft&&f.pixelStorei(f.UNPACK_FLIP_Y_WEBGL,!0),f.texImage2D(f.TEXTURE_2D,0,f.RGBA,f.RGBA,f.UNSIGNED_BYTE,c),i.i.gpuOriginForWebTexturesIsBottomLeft&&f.pixelStorei(f.UNPACK_FLIP_Y_WEBGL,!1);const[h,y]=y8(c);return!i.l||h===i.i.canvas.width&&y===i.i.canvas.height||(i.i.canvas.width=h,i.i.canvas.height=y),[h,y]}function w8(i,c,f){i.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");const h=new Uint32Array(c.length);for(let y=0;y<c.length;y++)h[y]=i.i.stringToNewUTF8(c[y]);c=i.i._malloc(4*h.length),i.i.HEAPU32.set(h,c>>2),f(c);for(const y of h)i.i._free(y);i.i._free(c)}function ko(i,c,f){i.i.simpleListeners=i.i.simpleListeners||{},i.i.simpleListeners[c]=f}function ur(i,c,f){let h=[];i.i.simpleListeners=i.i.simpleListeners||{},i.i.simpleListeners[c]=(y,w,E)=>{w?(f(h,E),h=[]):h.push(y)}}ld.forVisionTasks=function(i){return hm("vision",i)},ld.forTextTasks=function(i){return hm("text",i)},ld.forGenAiExperimentalTasks=function(i){return hm("genai_experimental",i)},ld.forGenAiTasks=function(i){return hm("genai",i)},ld.forAudioTasks=function(i){return hm("audio",i)},ld.isSimdSupported=function(){return m8()};async function VA(i,c,f,h){return i=await(async(y,w,E,A,M)=>{if(w&&await p8(w),!self.ModuleFactory||E&&(await p8(E),!self.ModuleFactory))throw Error("ModuleFactory not set.");return self.Module&&M&&((w=self.Module).locateFile=M.locateFile,M.mainScriptUrlOrBlob&&(w.mainScriptUrlOrBlob=M.mainScriptUrlOrBlob)),M=await self.ModuleFactory(self.Module||M),self.ModuleFactory=self.Module=void 0,new y(M,A)})(i,f.wasmLoaderPath,f.assetLoaderPath,c,{locateFile:y=>y.endsWith(".wasm")?f.wasmBinaryPath.toString():f.assetBinaryPath&&y.endsWith(".data")?f.assetBinaryPath.toString():y}),await i.o(h),i}function Yw(i,c){const f=xt(i.baseOptions,Xy,1)||new Xy;typeof c=="string"?(Yt(f,2,im(c)),Yt(f,1)):c instanceof Uint8Array&&(Yt(f,1,Yv(c,!1)),Yt(f,2)),Ue(i.baseOptions,0,1,f)}function b8(i){try{const c=i.H.length;if(c===1)throw Error(i.H[0].message);if(c>1)throw Error("Encountered multiple errors: "+i.H.map(f=>f.message).join(", "))}finally{i.H=[]}}function ge(i,c){i.C=Math.max(i.C,c)}function Ky(i,c){i.B=new kl,mi(i.B,2,"PassThroughCalculator"),gn(i.B,"free_memory"),yt(i.B,"free_memory_unused_out"),Tn(c,"free_memory"),lu(c,i.B)}function y0(i,c){gn(i.B,c),yt(i.B,c+"_unused_out")}function Fy(i){i.g.addBoolToStream(!0,"free_memory",i.C)}var kw=class{constructor(i){this.g=i,this.H=[],this.C=0,this.g.setAutoRenderToScreen(!1)}l(i,c=!0){var f,h,y,w,E,A;if(c){const M=i.baseOptions||{};if((f=i.baseOptions)!=null&&f.modelAssetBuffer&&((h=i.baseOptions)!=null&&h.modelAssetPath))throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!((y=xt(this.baseOptions,Xy,1))!=null&&y.g()||(w=xt(this.baseOptions,Xy,1))!=null&&w.l()||(E=i.baseOptions)!=null&&E.modelAssetBuffer||(A=i.baseOptions)!=null&&A.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");if(function(G,U){let N=xt(G.baseOptions,VS,3);if(!N){var q=N=new VS,k=new AS;om(q,4,ky,k)}"delegate"in U&&(U.delegate==="GPU"?(U=N,q=new hA,om(U,2,ky,q)):(U=N,q=new AS,om(U,4,ky,q))),Ue(G.baseOptions,0,3,N)}(this,M),M.modelAssetPath)return fetch(M.modelAssetPath.toString()).then(G=>{if(G.ok)return G.arrayBuffer();throw Error(`Failed to fetch model: ${M.modelAssetPath} (${G.status})`)}).then(G=>{try{this.g.i.FS_unlink("/model.dat")}catch{}this.g.i.FS_createDataFile("/","model.dat",new Uint8Array(G),!0,!1,!1),Yw(this,"/model.dat"),this.m(),this.L()});if(M.modelAssetBuffer instanceof Uint8Array)Yw(this,M.modelAssetBuffer);else if(M.modelAssetBuffer)return async function(G){const U=[];for(var N=0;;){const{done:q,value:k}=await G.read();if(q)break;U.push(k),N+=k.length}if(U.length===0)return new Uint8Array(0);if(U.length===1)return U[0];G=new Uint8Array(N),N=0;for(const q of U)G.set(q,N),N+=q.length;return G}(M.modelAssetBuffer).then(G=>{Yw(this,G),this.m(),this.L()})}return this.m(),this.L(),Promise.resolve()}L(){}ca(){let i;if(this.g.ca(c=>{i=mA(c)}),!i)throw Error("Failed to retrieve CalculatorGraphConfig");return i}setGraph(i,c){this.g.attachErrorListener((f,h)=>{this.H.push(Error(h))}),this.g.Ja(),this.g.setGraph(i,c),this.B=void 0,b8(this)}finishProcessing(){this.g.finishProcessing(),b8(this)}close(){this.B=void 0,this.g.closeGraph()}};function or(i,c){if(!i)throw Error(`Unable to obtain required WebGL resource: ${c}`);return i}kw.prototype.close=kw.prototype.close;class YA{constructor(c,f,h,y){this.g=c,this.h=f,this.m=h,this.l=y}bind(){this.g.bindVertexArray(this.h)}close(){this.g.deleteVertexArray(this.h),this.g.deleteBuffer(this.m),this.g.deleteBuffer(this.l)}}function S8(i,c,f){const h=i.g;if(f=or(h.createShader(f),"Failed to create WebGL shader"),h.shaderSource(f,c),h.compileShader(f),!h.getShaderParameter(f,h.COMPILE_STATUS))throw Error(`Could not compile WebGL shader: ${h.getShaderInfoLog(f)}`);return h.attachShader(i.h,f),f}function E8(i,c){const f=i.g,h=or(f.createVertexArray(),"Failed to create vertex array");f.bindVertexArray(h);const y=or(f.createBuffer(),"Failed to create buffer");f.bindBuffer(f.ARRAY_BUFFER,y),f.enableVertexAttribArray(i.O),f.vertexAttribPointer(i.O,2,f.FLOAT,!1,0,0),f.bufferData(f.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),f.STATIC_DRAW);const w=or(f.createBuffer(),"Failed to create buffer");return f.bindBuffer(f.ARRAY_BUFFER,w),f.enableVertexAttribArray(i.L),f.vertexAttribPointer(i.L,2,f.FLOAT,!1,0,0),f.bufferData(f.ARRAY_BUFFER,new Float32Array(c?[0,1,0,0,1,0,1,1]:[0,0,0,1,1,1,1,0]),f.STATIC_DRAW),f.bindBuffer(f.ARRAY_BUFFER,null),f.bindVertexArray(null),new YA(f,h,y,w)}function Xw(i,c){if(i.g){if(c!==i.g)throw Error("Cannot change GL context once initialized")}else i.g=c}function kA(i,c,f,h){return Xw(i,c),i.h||(i.m(),i.D()),f?(i.u||(i.u=E8(i,!0)),f=i.u):(i.A||(i.A=E8(i,!1)),f=i.A),c.useProgram(i.h),f.bind(),i.l(),i=h(),f.g.bindVertexArray(null),i}function T8(i,c,f){return Xw(i,c),i=or(c.createTexture(),"Failed to create texture"),c.bindTexture(c.TEXTURE_2D,i),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,f??c.LINEAR),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,f??c.LINEAR),c.bindTexture(c.TEXTURE_2D,null),i}function A8(i,c,f){Xw(i,c),i.B||(i.B=or(c.createFramebuffer(),"Failed to create framebuffe.")),c.bindFramebuffer(c.FRAMEBUFFER,i.B),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,f,0)}function XA(i){var c;(c=i.g)==null||c.bindFramebuffer(i.g.FRAMEBUFFER,null)}var _8=class{H(){return`
1
+ (function(he,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],o):(he=typeof globalThis<"u"?globalThis:he||self,o(he.InterviewWidget={},he.jsxRuntime,he.React,he.ReactDOM))})(this,function(he,o,u,pl){"use strict";var tu=Object.defineProperty;var ru=(he,o,u)=>o in he?tu(he,o,{enumerable:!0,configurable:!0,writable:!0,value:u}):he[o]=u;var Me=(he,o,u)=>ru(he,typeof o!="symbol"?o+"":o,u);var tn=typeof document<"u"?document.currentScript:null;const rn={},Ke={api:{baseUrl:"/api",retryConfig:{attempts:3,backoff:"exponential",baseDelay:1e3}},ui:{baseColor:"#3B82F6",borderRadius:"8px"},interview:{allow_answer_editing:!0,timers:{thinkingDuration:30,answeringDuration:120,editingDuration:30},stt:{provider:"groq",model:"whisper-large-v3-turbo",language:"en"},tts:{provider:"piper"},proctoring:{enabled:!0,gazeAnalysisEnabled:!0}}},nn="iw-storage";function ml(){if(!(typeof{url:typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:tn&&tn.tagName.toUpperCase()==="SCRIPT"&&tn.src||new URL("widget.umd.js",document.baseURI).href}<"u"&&(rn!=null&&rn.VITE_IW_SECRET)))return typeof process<"u"&&process.env.NEXT_PUBLIC_IW_SECRET?process.env.NEXT_PUBLIC_IW_SECRET:typeof window<"u"&&window.__IW_SECRET__?window.__IW_SECRET__:"proctoring-data-seed"}const Gs=ml(),oi=30,yl={SCREENSHOT:"screenshot"},sn="AES-GCM",on=12;async function Vs(e){const r=new TextEncoder().encode(e),i=await crypto.subtle.digest("SHA-256",r);return crypto.subtle.importKey("raw",i,sn,!1,["encrypt","decrypt"])}function bl(){return crypto.getRandomValues(new Uint8Array(on))}async function vl(e,t="default-seed"){try{const r=typeof e=="string"?e:JSON.stringify(e),n=new TextEncoder().encode(r),s=await Vs(t),a=bl(),c=await crypto.subtle.encrypt({name:sn,iv:a},s,n),l=new Uint8Array(a.length+c.byteLength);return l.set(new Uint8Array(a),0),l.set(new Uint8Array(c),a.length),btoa(String.fromCharCode(...Array.from(l)))}catch(r){throw console.error("Encryption failed:",r),new Error("Failed to encrypt data")}}async function xl(e,t="default-seed"){try{const r=atob(e),i=new Uint8Array(r.length);for(let h=0;h<r.length;h++)i[h]=r.charCodeAt(h);const n=i.slice(0,on),s=i.slice(on),a=await Vs(t),c=await crypto.subtle.decrypt({name:sn,iv:n},a,s);return new TextDecoder().decode(c)}catch(r){throw console.error("Decryption failed:",r),new Error("Failed to decrypt data")}}async function El(e,t="default-seed"){return vl(e,t)}async function kl(e,t="default-seed"){const r=await xl(e,t);try{return JSON.parse(r)}catch{return r}}const Ir=u.createContext(null),_l=async()=>{try{const e=sessionStorage.getItem(nn);if(e){const r=(await kl(e,Gs)).state;return{logViolations:(r==null?void 0:r.logViolations)||[],totalViolations:(r==null?void 0:r.totalViolations)||0,gazeViolationCounters:(r==null?void 0:r.gazeViolationCounters)||{lookingAwayCount:0,noFaceDetectedCount:0,multipleFacesCount:0,totalGazeViolations:0},referenceSet:(r==null?void 0:r.referenceSet)??!1,referenceRef:(r==null?void 0:r.referenceRef)??{x:.5,y:.5,noseX:.5,noseY:.5}}}}catch(e){console.error("Failed to load proctoring data from session storage:",e)}return{logViolations:[],totalViolations:0,gazeViolationCounters:{lookingAwayCount:0,noFaceDetectedCount:0,multipleFacesCount:0,totalGazeViolations:0},referenceSet:!1,referenceRef:{x:.5,y:.5,noseX:.5,noseY:.5}}},Fr=async e=>{try{const t=await El({state:e,version:0},Gs);sessionStorage.setItem(nn,t)}catch(t){console.error("Failed to save proctoring data to session storage:",t)}},Nl=({children:e})=>{const t=u.useRef({logViolations:[],totalViolations:0,gazeViolationCounters:{lookingAwayCount:0,noFaceDetectedCount:0,multipleFacesCount:0,totalGazeViolations:0},referenceSet:!1,referenceRef:{x:.5,y:.5,noseX:.5,noseY:.5}}),r=u.useRef(new Set);u.useEffect(()=>{_l().then(w=>{t.current=w,i()})},[]);const i=u.useCallback(()=>{r.current.forEach(w=>w())},[]),n=u.useCallback(w=>(r.current.add(w),()=>{r.current.delete(w)}),[]),s=u.useCallback(()=>t.current,[]),a=u.useCallback(w=>{t.current={...t.current,logViolations:[...t.current.logViolations,w],totalViolations:t.current.totalViolations+1},Fr(t.current),i()},[i]),c=u.useCallback(w=>{const g={...t.current.gazeViolationCounters};w==="looking_away"&&(g.lookingAwayCount+=1),w==="no_face_detected"&&(g.noFaceDetectedCount+=1),w==="multiple_faces"&&(g.multipleFacesCount+=1),g.totalGazeViolations=g.lookingAwayCount+g.noFaceDetectedCount+g.multipleFacesCount,t.current={...t.current,gazeViolationCounters:g},Fr(t.current),i()},[i]),l=u.useCallback(()=>{t.current={...t.current,logViolations:[],totalViolations:0},Fr(t.current),i()},[i]),h=u.useCallback(()=>{t.current={...t.current,gazeViolationCounters:{lookingAwayCount:0,noFaceDetectedCount:0,multipleFacesCount:0,totalGazeViolations:0}},Fr(t.current),i()},[i]),d=u.useCallback((w,g)=>{t.current={...t.current,referenceSet:w,referenceRef:g},Fr(t.current),i()},[i]),f=u.useMemo(()=>({getState:s,addViolation:a,clearViolations:l,subscribe:n,incrementGazeViolation:c,clearGazeViolationCounters:h,setReferenceData:d}),[s,a,l,n,c,h,d]);return o.jsx(Ir.Provider,{value:f,children:e})},js=()=>{const e=u.useContext(Ir);if(!e)throw new Error("useProctoringStore must be used within a ProctoringProvider");const t=u.useSyncExternalStore(e.subscribe,e.getState,e.getState);return{logViolations:t.logViolations,totalViolations:t.totalViolations,addViolation:e.addViolation,clearViolations:e.clearViolations,gazeViolationCounters:t.gazeViolationCounters,referenceSet:t.referenceSet,referenceRef:t.referenceRef,incrementGazeViolation:e.incrementGazeViolation,clearGazeViolationCounters:e.clearGazeViolationCounters,setReferenceData:e.setReferenceData}},Tl=()=>{const e=u.useContext(Ir);if(!e)throw new Error("useViolations must be used within a ProctoringProvider");return u.useSyncExternalStore(e.subscribe,()=>e.getState().logViolations,()=>e.getState().logViolations)},Sl=()=>{const e=u.useContext(Ir);if(!e)throw new Error("useTotalViolations must be used within a ProctoringProvider");return u.useSyncExternalStore(e.subscribe,()=>e.getState().totalViolations,()=>e.getState().totalViolations)},Al=()=>{const e=u.useContext(Ir);if(!e)throw new Error("useProctoringActions must be used within a ProctoringProvider");return{addViolation:e.addViolation,clearViolations:e.clearViolations}},Ws=u.createContext(null);function $s({config:e={},children:t}){var i,n,s,a;const r={api:{...Ke.api,...e.api,retryConfig:{...Ke.api.retryConfig,...(i=e.api)==null?void 0:i.retryConfig}},ui:{...Ke.ui,...e.ui},interview:{...Ke.interview,...e.interview,timers:{...Ke.interview.timers,...(n=e.interview)==null?void 0:n.timers},stt:{...Ke.interview.stt,...(s=e.interview)==null?void 0:s.stt},tts:{...Ke.interview.tts,...(a=e.interview)==null?void 0:a.tts}}};return o.jsx(Ws.Provider,{value:r,children:o.jsx(Nl,{children:t})})}function ai(){const e=u.useContext(Ws);if(!e)throw new Error("useInterviewConfig must be used within an InterviewWidgetProvider. Wrap your component tree with <InterviewWidgetProvider config={...}>");return e}function zs(){return ai().api||Ke.api}function ci(){return ai().ui||Ke.ui}function an(){return ai().interview||Ke.interview}function Cl(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function Il(e,t,r){return"#"+[e,t,r].map(i=>{const n=Math.round(i).toString(16);return n.length===1?"0"+n:n}).join("")}function Fl(e,t){const r=Cl(e);if(!r)return e;const i=r.r+(255-r.r)*t,n=r.g+(255-r.g)*t,s=r.b+(255-r.b)*t;return Il(i,n,s)}function Ll(e){return new Promise(t=>setTimeout(t,e))}function Ml(e){return`linear-gradient(to left, ${Fl(e,.4)}, ${e})`}const Pl=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15);function Dl(e){try{const t=e.split(".");if(t.length!==3||!t[1])throw new Error("Invalid JWT token");const i=t[1].replace(/-/g,"+").replace(/_/g,"/"),n=i.padEnd(i.length+(4-i.length%4)%4,"="),s=atob(n);return JSON.parse(s)}catch(t){return console.error("Error decoding JWT:",t),null}}const Ol=e=>{var t;return!e||typeof e!="string"?"":(t=e.charAt(0))==null?void 0:t.toUpperCase()},cn=e=>{const t=Math.max(0,Math.floor(e)),r=Math.floor(t/60).toString().padStart(2,"0"),i=(t%60).toString().padStart(2,"0");return`${r}:${i}`},ln=({brandLogo:e,brandName:t,className:r="",showFallbackStyles:i=!0})=>{const{baseColor:n}=ci();return e?o.jsx("div",{className:r,children:e}):o.jsx("div",{className:i?`iw-h-7 iw-w-7 iw-rounded-md iw-flex iw-items-center iw-justify-center iw-text-white iw-font-semibold ${r}`:r,style:i?{backgroundColor:n}:{},children:Ol(t)})},Lr=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[o.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}),o.jsx("path",{d:"M12 9v4"}),o.jsx("path",{d:"M12 17h.01"})]}),Bl=e=>o.jsxs("svg",{width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"prefix__lucide prefix__lucide-bolt-icon prefix__lucide-bolt",...e,children:[o.jsx("path",{d:"M21 16V8a2 2 0 00-1-1.73l-7-4a2 2 0 00-2 0l-7 4A2 2 0 003 8v8a2 2 0 001 1.73l7 4a2 2 0 002 0l7-4A2 2 0 0021 16z"}),o.jsx("circle",{cx:12,cy:12,r:4})]}),Ul=e=>o.jsxs("svg",{width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"prefix__lucide prefix__lucide-camera-off-icon prefix__lucide-camera-off",...e,children:[o.jsx("path",{d:"M14.564 14.558a3 3 0 11-4.122-4.121M2 2l20 20"}),o.jsx("path",{d:"M20 20H4a2 2 0 01-2-2V9a2 2 0 012-2h1.997a2 2 0 00.819-.175M9.695 4.024A2 2 0 0110.004 4h3.993a2 2 0 011.76 1.05l.486.9A2 2 0 0018.003 7H20a2 2 0 012 2v7.344"})]}),li=e=>o.jsx("svg",{width:"10",height:"9",viewBox:"0 0 10 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:o.jsx("path",{d:"M0.75 5.5C0.75 5.5 2.35 6.4125 3.15 7.75C3.15 7.75 5.55 2.5 8.75 0.75",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Hs=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[o.jsx("path",{d:"M12 2a10 10 0 0 1 7.38 16.75"}),o.jsx("path",{d:"M12 6v6l4 2"}),o.jsx("path",{d:"M2.5 8.875a10 10 0 0 0-.5 3"}),o.jsx("path",{d:"M2.83 16a10 10 0 0 0 2.43 3.4"}),o.jsx("path",{d:"M4.636 5.235a10 10 0 0 1 .891-.857"}),o.jsx("path",{d:"M8.644 21.42a10 10 0 0 0 7.631-.38"})]}),Gl=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[o.jsx("path",{d:"M12 6v6l4 2"}),o.jsx("circle",{cx:"12",cy:"12",r:"10"})]}),qs=e=>o.jsx("svg",{className:"iw-w-5 iw-h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",...e,children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),Ks=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[o.jsx("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"}),o.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),Vl=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[o.jsx("circle",{cx:"12",cy:"12",r:"3"}),o.jsx("path",{d:"M3 7V5a2 2 0 0 1 2-2h2"}),o.jsx("path",{d:"M17 3h2a2 2 0 0 1 2 2v2"}),o.jsx("path",{d:"M21 17v2a2 2 0 0 1-2 2h-2"}),o.jsx("path",{d:"M7 21H5a2 2 0 0 1-2-2v-2"})]}),jl=e=>o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsx("path",{d:"M2.66797 2H13.3346",stroke:"#5C6686",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M3.66797 2V3.35359C3.66797 4.18151 4.05252 4.96247 4.70874 5.46726L8.0013 8L11.2938 5.46726C11.9501 4.96247 12.3346 4.18151 12.3346 3.35359V2",stroke:"#5C6686",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M3.66797 14V12.6464C3.66797 11.8185 4.05252 11.0375 4.70874 10.5327L8.0013 8L11.2938 10.5327C11.9501 11.0375 12.3346 11.8185 12.3346 12.6464V14",stroke:"#5C6686",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M2.66797 14H13.3346",stroke:"#5C6686",strokeLinecap:"round",strokeLinejoin:"round"})]}),dn=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[o.jsx("circle",{cx:"12",cy:"12",r:"3"}),o.jsx("path",{d:"M3 7V5a2 2 0 0 1 2-2h2"}),o.jsx("path",{d:"M17 3h2a2 2 0 0 1 2 2v2"}),o.jsx("path",{d:"M21 17v2a2 2 0 0 1-2 2h-2"}),o.jsx("path",{d:"M7 21H5a2 2 0 0 1-2-2v-2"})]}),Ys=({className:e,...t})=>o.jsx("div",{children:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`iw-animate-spin ${e}`,...t,children:[o.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.jsx("path",{d:"M12 6l0 -3"}),o.jsx("path",{d:"M16.25 7.75l2.15 -2.15"}),o.jsx("path",{d:"M18 12l3 0"}),o.jsx("path",{d:"M16.25 16.25l2.15 2.15"}),o.jsx("path",{d:"M12 18l0 3"}),o.jsx("path",{d:"M7.75 16.25l-2.15 2.15"}),o.jsx("path",{d:"M6 12l-3 0"}),o.jsx("path",{d:"M7.75 7.75l-2.15 -2.15"})]})}),Wl=e=>o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsx("path",{d:"M17 7V11C17 13.7614 14.7614 16 12 16C9.23858 16 7 13.7614 7 11V7C7 4.23858 9.23858 2 12 2C14.7614 2 17 4.23858 17 7Z",stroke:"currentColor",strokeWidth:"1.5"}),o.jsx("path",{d:"M20 11C20 15.4183 16.4183 19 12 19M12 19C7.58172 19 4 15.4183 4 11M12 19V22M12 22H15M12 22H9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),$l=e=>o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsx("path",{d:"M2 2L22 22",stroke:"#062260",strokeWidth:"1.5",strokeLinecap:"round"}),o.jsx("path",{d:"M4 11C4 15.4183 7.58172 19 12 19M12 19C13.9545 19 15.7454 18.2991 17.1348 17.1348M12 19V22M12 22H15M12 22H9M20 11C20 12.6514 19.4996 14.1859 18.6422 15.4603",stroke:"#062260",strokeWidth:"1.5",strokeLinecap:"round"}),o.jsx("path",{d:"M7 6.98V11C7 13.7614 9.23858 16 12 16C13.1354 16 14.1647 15.6096 15.004 14.972M16.4387 13.244C16.7973 12.5545 17 11.8309 17 11V6.98C17 4.21858 14.7614 2 12 2C10.1312 2 8.53009 2.96527 7.672 4.484",stroke:"#062260",strokeWidth:"1.5",strokeLinecap:"round"})]}),zl=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[o.jsx("rect",{width:"20",height:"14",x:"2",y:"3",rx:"2"}),o.jsx("line",{x1:"8",x2:"16",y1:"21",y2:"21"}),o.jsx("line",{x1:"12",x2:"12",y1:"17",y2:"21"})]}),Hl=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[o.jsx("circle",{cx:"12",cy:"12",r:"3"}),o.jsx("path",{d:"M3 7V5a2 2 0 0 1 2-2h2"}),o.jsx("path",{d:"M17 3h2a2 2 0 0 1 2 2v2"}),o.jsx("path",{d:"M21 17v2a2 2 0 0 1-2 2h-2"}),o.jsx("path",{d:"M7 21H5a2 2 0 0 1-2-2v-2"})]}),ql=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[o.jsx("path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}),o.jsx("path",{d:"m9 12 2 2 4-4"})]}),Kl=e=>o.jsxs("svg",{width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"prefix__lucide prefix__lucide-target-icon prefix__lucide-target",...e,children:[o.jsx("circle",{cx:12,cy:12,r:10}),o.jsx("circle",{cx:12,cy:12,r:6}),o.jsx("circle",{cx:12,cy:12,r:2})]}),Yl=e=>o.jsxs("svg",{width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"prefix__lucide prefix__lucide-users-icon prefix__lucide-users",...e,children:[o.jsx("path",{d:"M16 21v-2a4 4 0 00-4-4H6a4 4 0 00-4 4v2M16 3.128a4 4 0 010 7.744M22 21v-2a4 4 0 00-3-3.87"}),o.jsx("circle",{cx:9,cy:7,r:4})]}),Xl=e=>o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsx("path",{d:"M11 8H13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),o.jsx("path",{d:"M2 11C2 7.70017 2 6.05025 3.02513 5.02513C4.05025 4 5.70017 4 9 4H10C13.2998 4 14.9497 4 15.9749 5.02513C17 6.05025 17 7.70017 17 11V13C17 16.2998 17 17.9497 15.9749 18.9749C14.9497 20 13.2998 20 10 20H9C5.70017 20 4.05025 20 3.02513 18.9749C2 17.9497 2 16.2998 2 13V11Z",stroke:"currentColor",strokeWidth:"1.5"}),o.jsx("path",{d:"M17 8.90585L17.1259 8.80196C19.2417 7.05623 20.2996 6.18336 21.1498 6.60482C22 7.02628 22 8.42355 22 11.2181V12.7819C22 15.5765 22 16.9737 21.1498 17.3952C20.2996 17.8166 19.2417 16.9438 17.1259 15.198L17 15.0941",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),Ql=e=>o.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[o.jsx("path",{d:"M2.00195 2L21.9773 22",stroke:"#062260",strokeWidth:"1.5",strokeLinecap:"round"}),o.jsx("path",{d:"M16.8517 16.8668C16.7225 17.8052 16.4666 18.4659 15.9596 18.9735C14.9357 19.9987 13.2878 19.9987 9.99206 19.9987H8.99329C5.69755 19.9987 4.04967 19.9987 3.02581 18.9735C2.00195 17.9484 2.00195 16.2985 2.00195 12.9987V10.9987C2.00195 7.69885 2.00195 6.04893 3.02581 5.0238C3.36833 4.68086 3.78068 4.45265 4.3012 4.30078",stroke:"#062260",strokeWidth:"1.5",strokeLinecap:"round"}),o.jsx("path",{d:"M8.23633 4.00052C8.47821 4 8.73001 4 8.99223 4H9.99099C13.2868 4 14.9347 4 15.9585 5.02513C16.9823 6.05025 16.9823 7.70017 16.9823 11V12.7574M16.9823 9.23142L19.3019 7.52913C20.773 6.54073 21.449 7.17196 21.6675 7.64847C22.1192 8.92813 21.9769 11.3936 21.9769 14.5417C21.8704 16.555 21.5953 16.7719 21.3138 16.9939L21.3108 16.9962",stroke:"#062260",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Mr={FACE_DETECTED:"face_detected",NO_FACE:"no_face_detected",MULTIPLE_FACES:"multiple_faces",LOOKING_AWAY:"looking_away",CAMERA_ERROR:"camera_error"},Xs={[Mr.FACE_DETECTED]:{icon:Ks,iconColor:"iw-text-green-600",iconBg:"iw-bg-green-50",iconBorder:"iw-border-green-100",title:"All Good",subtitle:"Everything looks normal",description:"Your gaze is properly focused on the screen. Continue with your interview.",buttonText:"Continue"},[Mr.NO_FACE]:{icon:Ul,iconColor:"iw-text-orange-600",iconBg:"iw-bg-orange-50",iconBorder:"iw-border-orange-100",title:"Face Not Detected",subtitle:"We can't see you in the camera",description:"Please ensure you're positioned properly in front of the camera and that your face is clearly visible.",buttonText:"I Understood"},[Mr.MULTIPLE_FACES]:{icon:Yl,iconColor:"iw-text-red-600",iconBg:"iw-bg-red-50",iconBorder:"iw-border-red-100",title:"Multiple People Detected",subtitle:"More than one person is visible",description:"For interview integrity, please ensure you are alone in the room and only your face is visible to the camera.",buttonText:"I Understood"},[Mr.LOOKING_AWAY]:{icon:Kl,iconColor:"iw-text-amber-600",iconBg:"iw-bg-amber-50",iconBorder:"iw-border-amber-200/75",title:"Stay Focused",subtitle:"We noticed you looked away from the screen",description:"To ensure interview integrity, please keep your attention on the screen throughout the session.",buttonText:"I Understood"},[Mr.CAMERA_ERROR]:{icon:Lr,iconColor:"iw-text-red-600",iconBg:"iw-bg-red-50",iconBorder:"iw-border-red-100",title:"Camera Issue",subtitle:"There's a problem with your camera",description:"Please check your camera connection and permissions, then refresh the page to continue.",buttonText:"I Understood"}};function Jl(e){var t;if(!navigator.onLine)return{type:"network",message:"No internet connection",retryable:!0,userMessage:"Please check your internet connection and try again."};if(e.name==="AbortError"||(t=e.message)!=null&&t.includes("timeout"))return{type:"timeout",message:"Request timed out",retryable:!0,userMessage:"The request is taking longer than expected. Please try again."};if(e.status){const{status:r}=e;if(r===401||r===403)return{type:"auth",status:r,message:"Authentication failed",retryable:!1,userMessage:"Your session has expired. Please refresh the page."};if(r===429)return{type:"rate-limit",status:r,message:"Too many requests",retryable:!0,userMessage:"Please wait a moment before trying again."};if(r>=500)return{type:"server",status:r,message:`Server error: ${r}`,retryable:!0,userMessage:"Our servers are experiencing issues. Please try again in a few moments."};if(r>=400)return{type:"client",status:r,message:`Client error: ${r}`,retryable:!1,userMessage:"There was an issue with your request. Please check your input."}}return{type:"unknown",message:e.message||"Unknown error occurred",retryable:!0,userMessage:"Something unexpected happened. Please try again.",originalError:e}}async function gt(e,t={},r={attempts:3,backoff:"exponential",baseDelay:1e3,maxDelay:1e4,jitter:!0}){let i;for(let n=1;n<=r.attempts;n++)try{const s=new AbortController,a=setTimeout(()=>s.abort(),6e4),c=await fetch(e,{...t,signal:s.signal});if(clearTimeout(a),c.status>=400&&c.status<500&&c.status!==429)return c;if(!c.ok)throw new Error(`HTTP ${c.status}: ${c.statusText}`);return c}catch(s){i=s;const a=Jl(s);if(!a.retryable||n===r.attempts)throw a;const c=Zl(n,r);console.warn(`API request failed (attempt ${n}/${r.attempts}), retrying in ${c}ms:`,a.message),await new Promise(l=>setTimeout(l,c))}throw i}function Zl(e,t){let r;return t.backoff==="exponential"?r=t.baseDelay*Math.pow(2,e-1):r=t.baseDelay,r=Math.min(r,t.maxDelay),t.jitter&&(r=r*(.5+Math.random()*.5)),Math.round(r)}const pt={v2:"/v2"},mt={GENERATE_QUESTION:e=>`${pt.v2}/interviews/${e}/next-question`,SCREENSHOT_UPLOAD:e=>`${pt.v2}/interviews/${e}/assets/upload-url`,CONFIRM_UPLOAD:e=>`${pt.v2}/interviews/assets/${e}/confirm`,TRANSCRIBE_ANSWER:e=>`${pt.v2}/interviews/${e}/transcribe-answer`,SUBMIT_ANSWER:e=>`${pt.v2}/interviews/${e}/submit-answer`,EXIT:e=>`${pt.v2}/interviews/${e}/exit`,CONFIG:e=>`${pt.v2}/interviews/${e}/config`,TRANSCRIPTION:e=>`${pt.v2}/interviews/${e}/transcript`};class Qs{constructor(t={}){Me(this,"config");this.config=t}updateConfig(t){this.config={...this.config,...t}}getHeaders(){var r;const t={"Content-Type":"application/json"};return(r=this.config)!=null&&r.authToken&&(t.Authorization=`Bearer ${this.config.authToken}`),t}getBaseUrl(){var t;return((t=this.config)==null?void 0:t.baseUrl)||"/api"}async generateQuestion({interviewId:t,isInterviewDone:r=!1}){const i=await gt(`${this.getBaseUrl()}${mt.GENERATE_QUESTION(t)}`,{method:"POST",headers:this.getHeaders(),body:JSON.stringify({interview_id:t,is_interview_done:r})});if(!i.ok)throw new Error(`Failed to get questions: ${i.status}`);return await i.json()}async submitAnswer({interviewId:t,qnaId:r,answer:i}){const n=await gt(`${this.getBaseUrl()}${mt.SUBMIT_ANSWER(t)}`,{method:"POST",headers:this.getHeaders(),body:JSON.stringify({qna_id:r,answer_text:i})});if(!n.ok)throw new Error(`Failed to submit answer: ${n.status}`);return await n.json()}async exitInterview(t){const r=await gt(`${this.getBaseUrl()}${mt.EXIT(t)}`,{method:"POST",headers:this.getHeaders()});if(!r.ok)throw new Error(`Failed to exit interview: ${r.status}`)}async getInterviewConfig(t){const r=await gt(`${this.getBaseUrl()}${mt.CONFIG(t)}`,{method:"GET",headers:this.getHeaders()});if(!r.ok)throw new Error(`Failed to get interview config: ${r.status}`);return await r.json()}async requestScreenshotUploadUrl(t,r=`screenshot-${Date.now()}.jpeg`){const i=await gt(`${this.getBaseUrl()}${mt.SCREENSHOT_UPLOAD(t)}`,{method:"POST",headers:this.getHeaders(),body:JSON.stringify({filename:r,mime_type:"image/jpeg",asset_type:yl.SCREENSHOT})});if(!i.ok)throw new Error(`Failed to request screenshot upload URL: ${i.status}`);return await i.json()}async uploadScreenshot(t,r){const i=await fetch(t,{method:"PUT",body:r,headers:{"Content-Type":"image/jpeg"}});if(!i.ok)throw new Error(`Failed to upload screenshot: ${i.status}`)}async confirmScreenshotUpload(t){const r=await gt(`${this.getBaseUrl()}${mt.CONFIRM_UPLOAD(t)}`,{method:"POST",headers:this.getHeaders()});if(!r.ok)throw new Error(`Failed to confirm screenshot upload: ${r.status}`)}async getInterviewTranscription(t){const r=await gt(`${this.getBaseUrl()}${mt.TRANSCRIPTION(t)}`,{method:"GET",headers:{...this.getHeaders(),"x-auth-token":"interview-engine-api-key"}});if(!r.ok)throw new Error(`Failed to get interview transcription: ${r.status}`);return await r.json()}}const Rl=new Qs,ed=({gazeAnalysisEnabled:e,isModelLoaded:t,stats:r,statusMessage:i,loadingProgress:n})=>o.jsx("div",{className:"iw-w-full",children:o.jsxs("div",{className:"iw-border-strock iw-rounded-md iw-border iw-bg-gray-50 iw-p-4",children:[o.jsxs("h3",{className:"iw-m-0 iw-mb-2.5",children:["Status: ",i]}),n>0&&n<100&&o.jsxs("div",{className:"iw-mb-2.5",children:[o.jsx("div",{className:"iw-h-2 iw-w-full iw-rounded iw-bg-gray-300",children:o.jsx("div",{className:"iw-h-full iw-rounded iw-bg-blue-600 iw-transition-all iw-duration-300 iw-ease-out",style:{width:`${n}%`}})}),o.jsxs("small",{className:"iw-text-gray-600",children:["Loading model... ",n.toFixed(1),"%"]})]}),o.jsxs("div",{className:"iw-grid iw-grid-cols-2 iw-gap-2.5 iw-text-sm",children:[o.jsxs("div",{children:[o.jsx("strong",{children:"FPS:"})," ",o.jsx("span",{className:r.fps<15?"iw-text-red-600":r.fps<25?"iw-text-orange-500":"iw-text-green-600",children:r.fps})]}),o.jsxs("div",{children:[o.jsx("strong",{children:"Model:"})," ",t?"✓ Loaded":"✗ Loading"]}),e&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{children:[o.jsx("strong",{children:"Engagement:"})," ",r.engagement.toFixed(1),"%"]}),o.jsxs("div",{children:[o.jsx("strong",{children:"Looking:"})," ",o.jsx("span",{className:r.isLookingAway?"iw-text-red-600":"iw-text-green-600",children:r.isLookingAway?"Away":"At Screen"})]})]})]}),r.referenceFaceNotDetected&&o.jsxs("div",{className:"iw-text-gray-dark iw-mt-2.5 iw-w-full iw-rounded-md iw-bg-[#ffeb3b] iw-p-2.5 iw-text-sm",children:[o.jsx("strong",{children:"Reference Face Not Detected"}),o.jsx("br",{}),"The previously set reference face is no longer in view."]}),r.multipleFacesDetected&&o.jsxs("div",{className:"iw-mt-2.5 iw-rounded iw-bg-red-50 iw-p-2.5 iw-text-sm iw-text-red-700",children:[o.jsx("strong",{children:"Multiple Faces Detected"}),o.jsx("br",{}),"Please ensure only one person is in the frame."]}),!e&&o.jsxs("div",{className:"iw-mt-2.5 iw-rounded iw-bg-blue-50 iw-p-2.5 iw-text-sm iw-text-blue-700",children:[o.jsx("strong",{children:"Gaze Analysis Disabled"}),o.jsx("br",{}),"Enable to track engagement and attention levels."]})]})}),td=({showControls:e,isBubbleOpen:t,setIsBubbleOpen:r,setReference:i,clearCache:n,isModelLoaded:s,gazeAnalysisEnabled:a,referenceSet:c,showLandmarks:l,setShowLandmarks:h,showEngagementBar:d,setShowEngagementBar:f,handleToggleGazeAnalysis:w,stats:g,statusMessage:p,loadingProgress:y})=>e?o.jsxs(o.Fragment,{children:[o.jsx("button",{onClick:()=>r(!t),className:"iw-absolute iw-right-4 iw-bottom-4 iw-z-10 iw-flex iw-h-10 iw-w-10 iw-items-center iw-justify-center iw-rounded-full iw-text-white",children:o.jsx(Bl,{className:"iw-size-4.5"})}),t&&o.jsxs("div",{className:"iw-absolute iw-right-4 iw-bottom-16 iw-z-10 iw-max-h-96 iw-w-80 iw-overflow-y-auto iw-rounded-md iw-bg-gray-50 iw-p-4 iw-shadow-lg",children:[o.jsx("h4",{className:"m-0 mb-2.5",children:"Controls"}),o.jsx("button",{onClick:i,disabled:!s||!a,className:`iw-mb-2.5 iw-block iw-w-full iw-rounded border-none iw-px-4 iw-py-2 iw-text-sm iw-text-white ${!s||!a?"iw-cursor-not-allowed iw-bg-gray-400":"iw-cursor-pointer iw-bg-blue-600 hover:iw-bg-blue-700"}`,children:c?"Reference Set ✓":"Set Reference"}),o.jsx("button",{onClick:n,className:"iw-mb-4 iw-block iw-w-full iw-cursor-pointer iw-rounded iw-border-none iw-bg-red-600 iw-px-4 iw-py-2 iw-text-sm iw-text-white hover:iw-bg-red-700",children:"Clear Model Cache"}),o.jsxs("div",{className:"iw-flex iw-flex-col iw-gap-2.5",children:[o.jsxs("label",{className:"iw-flex iw-cursor-pointer iw-items-center iw-gap-2",children:[o.jsx("input",{type:"checkbox",checked:a,onChange:b=>w(b.target.checked)}),o.jsx("strong",{children:"Enable Gaze Analysis"})]}),o.jsxs("label",{className:`iw-flex iw-cursor-pointer iw-items-center iw-gap-2 ${a?"iw-opacity-100":"iw-opacity-60"}`,children:[o.jsx("input",{type:"checkbox",checked:l,onChange:b=>h(b.target.checked),disabled:!a}),"Show Landmarks"]}),o.jsxs("label",{className:`iw-flex iw-cursor-pointer iw-items-center iw-gap-2 ${a?"iw-opacity-100":"iw-opacity-60"}`,children:[o.jsx("input",{type:"checkbox",checked:d,onChange:b=>f(b.target.checked),disabled:!a}),"Show Engagement Bar"]})]}),c&&o.jsx(ed,{gazeAnalysisEnabled:a,isModelLoaded:s,loadingProgress:y,stats:g,statusMessage:p})]})]}):null;var Jt=typeof self<"u"?self:{};function Pr(e,t){e:{for(var r=["CLOSURE_FLAGS"],i=Jt,n=0;n<r.length;n++)if((i=i[r[n]])==null){r=null;break e}r=i}return(e=r&&r[e])!=null?e:t}function Lt(){throw Error("Invalid UTF8")}function Js(e,t){return t=String.fromCharCode.apply(null,t),e==null?t:e+t}let di,un;const rd=typeof TextDecoder<"u";let id;const nd=typeof TextEncoder<"u";function Zs(e){if(nd)e=(id||(id=new TextEncoder)).encode(e);else{let r=0;const i=new Uint8Array(3*e.length);for(let n=0;n<e.length;n++){var t=e.charCodeAt(n);if(t<128)i[r++]=t;else{if(t<2048)i[r++]=t>>6|192;else{if(t>=55296&&t<=57343){if(t<=56319&&n<e.length){const s=e.charCodeAt(++n);if(s>=56320&&s<=57343){t=1024*(t-55296)+s-56320+65536,i[r++]=t>>18|240,i[r++]=t>>12&63|128,i[r++]=t>>6&63|128,i[r++]=63&t|128;continue}n--}t=65533}i[r++]=t>>12|224,i[r++]=t>>6&63|128}i[r++]=63&t|128}}e=r===i.length?i:i.subarray(0,r)}return e}function Rs(e){Jt.setTimeout(()=>{throw e},0)}var hn,sd=Pr(610401301,!1),eo=Pr(748402147,!0),fn=Pr(824648567,!0),wn=Pr(824656860,Pr(1,!0));function to(){var e=Jt.navigator;return e&&(e=e.userAgent)?e:""}const ro=Jt.navigator;function ui(e){return ui[" "](e),e}hn=ro&&ro.userAgentData||null,ui[" "]=function(){};const io={};let Dr=null;function od(e){const t=e.length;let r=3*t/4;r%3?r=Math.floor(r):"=.".indexOf(e[t-1])!=-1&&(r="=.".indexOf(e[t-2])!=-1?r-2:r-1);const i=new Uint8Array(r);let n=0;return function(s,a){function c(h){for(;l<s.length;){const d=s.charAt(l++),f=Dr[d];if(f!=null)return f;if(!/^[\s\xa0]*$/.test(d))throw Error("Unknown base64 encoding at char: "+d)}return h}no();let l=0;for(;;){const h=c(-1),d=c(0),f=c(64),w=c(64);if(w===64&&h===-1)break;a(h<<2|d>>4),f!=64&&(a(d<<4&240|f>>2),w!=64&&a(f<<6&192|w))}}(e,function(s){i[n++]=s}),n!==r?i.subarray(0,n):i}function no(){if(!Dr){Dr={};var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"];for(let r=0;r<5;r++){const i=e.concat(t[r].split(""));io[r]=i;for(let n=0;n<i.length;n++){const s=i[n];Dr[s]===void 0&&(Dr[s]=n)}}}}var ad=typeof Uint8Array<"u",so=!(!(sd&&hn&&hn.brands.length>0)&&(to().indexOf("Trident")!=-1||to().indexOf("MSIE")!=-1))&&typeof btoa=="function";const oo=/[-_.]/g,cd={"-":"+",_:"/",".":"="};function ld(e){return cd[e]||""}function ao(e){if(!so)return od(e);e=oo.test(e)?e.replace(oo,ld):e,e=atob(e);const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}function gn(e){return ad&&e!=null&&e instanceof Uint8Array}var Zt={};function Mt(){return dd||(dd=new Ye(null,Zt))}function pn(e){co(Zt);var t=e.g;return(t=t==null||gn(t)?t:typeof t=="string"?ao(t):null)==null?t:e.g=t}var Ye=class{h(){return new Uint8Array(pn(this)||0)}constructor(e,t){if(co(t),this.g=e,e!=null&&e.length===0)throw Error("ByteString should be constructed with non-empty values")}};let dd,ud;function co(e){if(e!==Zt)throw Error("illegal external caller")}function lo(e,t){e.__closure__error__context__984382||(e.__closure__error__context__984382={}),e.__closure__error__context__984382.severity=t}function mn(e){return lo(e=Error(e),"warning"),e}function Rt(e,t){if(e!=null){var r=ud??(ud={}),i=r[e]||0;i>=t||(r[e]=i+1,lo(e=Error(),"incident"),Rs(e))}}function er(){return typeof BigInt=="function"}var tr=typeof Symbol=="function"&&typeof Symbol()=="symbol";function Xe(e,t,r=!1){return typeof Symbol=="function"&&typeof Symbol()=="symbol"?r&&Symbol.for&&e?Symbol.for(e):e!=null?Symbol(e):Symbol():t}var hd=Xe("jas",void 0,!0),uo=Xe(void 0,"0di"),Or=Xe(void 0,"1oa"),xe=Xe(void 0,Symbol()),fd=Xe(void 0,"0ub"),wd=Xe(void 0,"0ubs"),yn=Xe(void 0,"0ubsb"),gd=Xe(void 0,"0actk"),rr=Xe("m_m","Pa",!0),ho=Xe();const fo={Ga:{value:0,configurable:!0,writable:!0,enumerable:!1}},wo=Object.defineProperties,x=tr?hd:"Ga";var Pt;const go=[];function Br(e,t){tr||x in e||wo(e,fo),e[x]|=t}function se(e,t){tr||x in e||wo(e,fo),e[x]=t}function Ur(e){return Br(e,34),e}function Gr(e){return Br(e,8192),e}se(go,7),Pt=Object.freeze(go);var ir={};function Ee(e,t){return t===void 0?e.h!==Dt&&!!(2&(0|e.v[x])):!!(2&t)&&e.h!==Dt}const Dt={};function bn(e,t){if(e!=null){if(typeof e=="string")e=e?new Ye(e,Zt):Mt();else if(e.constructor!==Ye)if(gn(e))e=e.length?new Ye(new Uint8Array(e),Zt):Mt();else{if(!t)throw Error();e=void 0}}return e}class po{constructor(t,r,i){this.g=t,this.h=r,this.l=i}next(){const t=this.g.next();return t.done||(t.value=this.h.call(this.l,t.value)),t}[Symbol.iterator](){return this}}var pd=Object.freeze({});function mo(e,t,r){const i=128&t?0:-1,n=e.length;var s;(s=!!n)&&(s=(s=e[n-1])!=null&&typeof s=="object"&&s.constructor===Object);const a=n+(s?-1:0);for(t=128&t?1:0;t<a;t++)r(t-i,e[t]);if(s){e=e[n-1];for(const c in e)!isNaN(c)&&r(+c,e[c])}}var yo={};function nr(e){return 128&e?yo:void 0}function hi(e){return e.Na=!0,e}var md=hi(e=>typeof e=="number"),bo=hi(e=>typeof e=="string"),yd=hi(e=>typeof e=="boolean"),fi=typeof Jt.BigInt=="function"&&typeof Jt.BigInt(0)=="bigint";function ke(e){var t=e;if(bo(t)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(t))throw Error(String(t))}else if(md(t)&&!Number.isSafeInteger(t))throw Error(String(t));return fi?BigInt(e):e=yd(e)?e?"1":"0":bo(e)?e.trim()||"0":String(e)}var vn=hi(e=>fi?e>=vd&&e<=Ed:e[0]==="-"?vo(e,bd):vo(e,xd));const bd=Number.MIN_SAFE_INTEGER.toString(),vd=fi?BigInt(Number.MIN_SAFE_INTEGER):void 0,xd=Number.MAX_SAFE_INTEGER.toString(),Ed=fi?BigInt(Number.MAX_SAFE_INTEGER):void 0;function vo(e,t){if(e.length>t.length)return!1;if(e.length<t.length||e===t)return!0;for(let r=0;r<e.length;r++){const i=e[r],n=t[r];if(i>n)return!1;if(i<n)return!0}}const kd=typeof Uint8Array.prototype.slice=="function";let _d,H=0,te=0;function xo(e){const t=e>>>0;H=t,te=(e-t)/4294967296>>>0}function sr(e){if(e<0){xo(-e);const[t,r]=Nn(H,te);H=t>>>0,te=r>>>0}else xo(e)}function xn(e){const t=_d||(_d=new DataView(new ArrayBuffer(8)));t.setFloat32(0,+e,!0),te=0,H=t.getUint32(0,!0)}function En(e,t){const r=4294967296*t+(e>>>0);return Number.isSafeInteger(r)?r:Vr(e,t)}function Nd(e,t){return ke(er()?BigInt.asUintN(64,(BigInt(t>>>0)<<BigInt(32))+BigInt(e>>>0)):Vr(e,t))}function kn(e,t){const r=2147483648&t;return r&&(t=~t>>>0,(e=1+~e>>>0)==0&&(t=t+1>>>0)),typeof(e=En(e,t))=="number"?r?-e:e:r?"-"+e:e}function Eo(e,t){return er()?ke(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(t))<<BigInt(32))+BigInt.asUintN(32,BigInt(e)))):ke(_n(e,t))}function Vr(e,t){if(e>>>=0,(t>>>=0)<=2097151)var r=""+(4294967296*t+e);else er()?r=""+(BigInt(t)<<BigInt(32)|BigInt(e)):(e=(16777215&e)+6777216*(r=16777215&(e>>>24|t<<8))+6710656*(t=t>>16&65535),r+=8147497*t,t*=2,e>=1e7&&(r+=e/1e7>>>0,e%=1e7),r>=1e7&&(t+=r/1e7>>>0,r%=1e7),r=t+ko(r)+ko(e));return r}function ko(e){return e=String(e),"0000000".slice(e.length)+e}function _n(e,t){if(2147483648&t)if(er())e=""+(BigInt(0|t)<<BigInt(32)|BigInt(e>>>0));else{const[r,i]=Nn(e,t);e="-"+Vr(r,i)}else e=Vr(e,t);return e}function wi(e){if(e.length<16)sr(Number(e));else if(er())e=BigInt(e),H=Number(e&BigInt(4294967295))>>>0,te=Number(e>>BigInt(32)&BigInt(4294967295));else{const t=+(e[0]==="-");te=H=0;const r=e.length;for(let i=t,n=(r-t)%6+t;n<=r;i=n,n+=6){const s=Number(e.slice(i,n));te*=1e6,H=1e6*H+s,H>=4294967296&&(te+=Math.trunc(H/4294967296),te>>>=0,H>>>=0)}if(t){const[i,n]=Nn(H,te);H=i,te=n}}}function Nn(e,t){return t=~t,e?e=1+~e:t+=1,[e,t]}function We(e){return Array.prototype.slice.call(e)}const jr=typeof BigInt=="function"?BigInt.asIntN:void 0,Td=typeof BigInt=="function"?BigInt.asUintN:void 0,Ot=Number.isSafeInteger,gi=Number.isFinite,or=Math.trunc,Sd=ke(0);function Wr(e){if(e!=null&&typeof e!="number")throw Error(`Value of float/double field must be a number, found ${typeof e}: ${e}`);return e}function Qe(e){return e==null||typeof e=="number"?e:e==="NaN"||e==="Infinity"||e==="-Infinity"?Number(e):void 0}function $r(e){if(e!=null&&typeof e!="boolean"){var t=typeof e;throw Error(`Expected boolean but got ${t!="object"?t:e?Array.isArray(e)?"array":t:"null"}: ${e}`)}return e}function _o(e){return e==null||typeof e=="boolean"?e:typeof e=="number"?!!e:void 0}const Ad=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function zr(e){switch(typeof e){case"bigint":return!0;case"number":return gi(e);case"string":return Ad.test(e);default:return!1}}function ar(e){if(e==null)return e;if(typeof e=="string"&&e)e=+e;else if(typeof e!="number")return;return gi(e)?0|e:void 0}function No(e){if(e==null)return e;if(typeof e=="string"&&e)e=+e;else if(typeof e!="number")return;return gi(e)?e>>>0:void 0}function To(e){const t=e.length;return(e[0]==="-"?t<20||t===20&&e<="-9223372036854775808":t<19||t===19&&e<="9223372036854775807")?e:(wi(e),_n(H,te))}function Tn(e){return e=or(e),Ot(e)||(sr(e),e=kn(H,te)),e}function So(e){var t=or(Number(e));return Ot(t)?String(t):((t=e.indexOf("."))!==-1&&(e=e.substring(0,t)),To(e))}function Ao(e){var t=or(Number(e));return Ot(t)?ke(t):((t=e.indexOf("."))!==-1&&(e=e.substring(0,t)),er()?ke(jr(64,BigInt(e))):ke(To(e)))}function Co(e){return Ot(e)?e=ke(Tn(e)):(e=or(e),Ot(e)?e=String(e):(sr(e),e=_n(H,te)),e=ke(e)),e}function Cd(e){return e==null?e:typeof e=="bigint"?(vn(e)?e=Number(e):(e=jr(64,e),e=vn(e)?Number(e):String(e)),e):zr(e)?typeof e=="number"?Tn(e):So(e):void 0}function pi(e){const t=typeof e;return e==null?e:t==="bigint"?ke(jr(64,e)):zr(e)?t==="string"?Ao(e):Co(e):void 0}function Io(e){if(typeof e!="string")throw Error();return e}function Hr(e){if(e!=null&&typeof e!="string")throw Error();return e}function fe(e){return e==null||typeof e=="string"?e:void 0}function Sn(e,t,r,i){return e!=null&&e[rr]===ir?e:Array.isArray(e)?((i=(r=0|e[x])|32&i|2&i)!==r&&se(e,i),new t(e)):(r?2&i?((e=t[uo])||(Ur((e=new t).v),e=t[uo]=e),t=e):t=new t:t=void 0,t)}function Id(e,t,r){if(t)e:{if(!zr(t=e))throw mn("int64");switch(typeof t){case"string":t=Ao(t);break e;case"bigint":t=ke(jr(64,t));break e;default:t=Co(t)}}else t=pi(e);return(e=t)==null?r?Sd:void 0:e}const Fd={};let Ld=function(){try{return ui(new class extends Map{constructor(){super()}}),!1}catch{return!0}}();class An{constructor(){this.g=new Map}get(t){return this.g.get(t)}set(t,r){return this.g.set(t,r),this.size=this.g.size,this}delete(t){return t=this.g.delete(t),this.size=this.g.size,t}clear(){this.g.clear(),this.size=this.g.size}has(t){return this.g.has(t)}entries(){return this.g.entries()}keys(){return this.g.keys()}values(){return this.g.values()}forEach(t,r){return this.g.forEach(t,r)}[Symbol.iterator](){return this.entries()}}const Md=Ld?(Object.setPrototypeOf(An.prototype,Map.prototype),Object.defineProperties(An.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),An):class extends Map{constructor(){super()}};function Fo(e){return e}function Cn(e){if(2&e.J)throw Error("Cannot mutate an immutable Map")}var at=class extends Md{constructor(e,t,r=Fo,i=Fo){super(),this.J=0|e[x],this.K=t,this.S=r,this.fa=this.K?Pd:i;for(let n=0;n<e.length;n++){const s=e[n],a=r(s[0],!1,!0);let c=s[1];t?c===void 0&&(c=null):c=i(s[1],!1,!0,void 0,void 0,this.J),super.set(a,c)}}V(e){return Gr(Array.from(super.entries(),e))}clear(){Cn(this),super.clear()}delete(e){return Cn(this),super.delete(this.S(e,!0,!1))}entries(){if(this.K){var e=super.keys();e=new po(e,Dd,this)}else e=super.entries();return e}values(){if(this.K){var e=super.keys();e=new po(e,at.prototype.get,this)}else e=super.values();return e}forEach(e,t){this.K?super.forEach((r,i,n)=>{e.call(t,n.get(i),i,n)}):super.forEach(e,t)}set(e,t){return Cn(this),(e=this.S(e,!0,!1))==null?this:t==null?(super.delete(e),this):super.set(e,this.fa(t,!0,!0,this.K,!1,this.J))}Ma(e){const t=this.S(e[0],!1,!0);e=e[1],e=this.K?e===void 0?null:e:this.fa(e,!1,!0,void 0,!1,this.J),super.set(t,e)}has(e){return super.has(this.S(e,!1,!1))}get(e){e=this.S(e,!1,!1);const t=super.get(e);if(t!==void 0){var r=this.K;return r?((r=this.fa(t,!1,!0,r,this.ra,this.J))!==t&&super.set(e,r),r):t}}[Symbol.iterator](){return this.entries()}};function Pd(e,t,r,i,n,s){return e=Sn(e,i,r,s),n&&(e=Ln(e)),e}function Dd(e){return[e,this.get(e)]}let Od;function Lo(){return Od||(Od=new at(Ur([]),void 0,void 0,void 0,Fd))}function mi(e){return xe?e[xe]:void 0}function yi(e,t){for(const r in e)!isNaN(r)&&t(e,+r,e[r])}at.prototype.toJSON=void 0;var In=class{};const Bd={Ka:!0};function Ud(e,t){t<100||Rt(wd,1)}function bi(e,t,r,i){const n=i!==void 0;i=!!i;var s,a=xe;!n&&tr&&a&&(s=e[a])&&yi(s,Ud),a=[];var c=e.length;let l;s=4294967295;let h=!1;const d=!!(64&t),f=d?128&t?0:-1:void 0;1&t||(l=c&&e[c-1],l!=null&&typeof l=="object"&&l.constructor===Object?s=--c:l=void 0,!d||128&t||n||(h=!0,s=s-f+f)),t=void 0;for(var w=0;w<c;w++){let g=e[w];if(g!=null&&(g=r(g,i))!=null)if(d&&w>=s){const p=w-f;(t??(t={}))[p]=g}else a[w]=g}if(l)for(let g in l){if((c=l[g])==null||(c=r(c,i))==null)continue;let p;w=+g,d&&!Number.isNaN(w)&&(p=w+f)<s?a[p]=c:(t??(t={}))[g]=c}return t&&(h?a.push(t):a[s]=t),n&&xe&&(e=mi(e))&&e instanceof In&&(a[xe]=function(g){const p=new In;return yi(g,(y,b,m)=>{p[b]=We(m)}),p.da=g.da,p}(e)),a}function Gd(e){return e[0]=qr(e[0]),e[1]=qr(e[1]),e}function qr(e){switch(typeof e){case"number":return Number.isFinite(e)?e:""+e;case"bigint":return vn(e)?Number(e):""+e;case"boolean":return e?1:0;case"object":if(Array.isArray(e)){var t=0|e[x];return e.length===0&&1&t?void 0:bi(e,t,qr)}if(e!=null&&e[rr]===ir)return Mo(e);if(e instanceof Ye){if((t=e.g)==null)e="";else if(typeof t=="string")e=t;else{if(so){for(var r="",i=0,n=t.length-10240;i<n;)r+=String.fromCharCode.apply(null,t.subarray(i,i+=10240));r+=String.fromCharCode.apply(null,i?t.subarray(i):t),t=btoa(r)}else{r===void 0&&(r=0),no(),r=io[r],i=Array(Math.floor(t.length/3)),n=r[64]||"";let h=0,d=0;for(;h<t.length-2;h+=3){var s=t[h],a=t[h+1],c=t[h+2],l=r[s>>2];s=r[(3&s)<<4|a>>4],a=r[(15&a)<<2|c>>6],c=r[63&c],i[d++]=l+s+a+c}switch(l=0,c=n,t.length-h){case 2:c=r[(15&(l=t[h+1]))<<2]||n;case 1:t=t[h],i[d]=r[t>>2]+r[(3&t)<<4|l>>4]+c+n}t=i.join("")}e=e.g=t}return e}return e instanceof at?e=e.size!==0?e.V(Gd):void 0:void 0}return e}function Mo(e){return bi(e=e.v,0|e[x],qr)}let Vd,jd;function Bt(e,t){return Po(e,t[0],t[1])}function Po(e,t,r,i=0){if(e==null){var n=32;r?(e=[r],n|=128):e=[],t&&(n=-16760833&n|(1023&t)<<14)}else{if(!Array.isArray(e))throw Error("narr");if(n=0|e[x],eo&&1&n)throw Error("rfarr");if(2048&n&&!(2&n)&&function(){if(eo)throw Error("carr");Rt(gd,5)}(),256&n)throw Error("farr");if(64&n)return(n|i)!==n&&se(e,n|i),e;if(r&&(n|=128,r!==e[0]))throw Error("mid");e:{n|=64;var s=(r=e).length;if(s){var a=s-1;const l=r[a];if(l!=null&&typeof l=="object"&&l.constructor===Object){if((a-=t=128&n?0:-1)>=1024)throw Error("pvtlmt");for(var c in l)(s=+c)<a&&(r[s+t]=l[c],delete l[c]);n=-16760833&n|(1023&a)<<14;break e}}if(t){if((c=Math.max(t,s-(128&n?0:-1)))>1024)throw Error("spvt");n=-16760833&n|(1023&c)<<14}}}return se(e,64|n|i),e}function Wd(e,t){if(typeof e!="object")return e;if(Array.isArray(e)){var r=0|e[x];return e.length===0&&1&r?void 0:Do(e,r,t)}if(e!=null&&e[rr]===ir)return Oo(e);if(e instanceof at){if(2&(t=e.J))return e;if(!e.size)return;if(r=Ur(e.V()),e.K)for(e=0;e<r.length;e++){const i=r[e];let n=i[1];n=n==null||typeof n!="object"?void 0:n!=null&&n[rr]===ir?Oo(n):Array.isArray(n)?Do(n,0|n[x],!!(32&t)):void 0,i[1]=n}return r}return e instanceof Ye?e:void 0}function Do(e,t,r){return 2&t||(!r||4096&t||16&t?e=cr(e,t,!1,r&&!(16&t)):(Br(e,34),4&t&&Object.freeze(e))),e}function Fn(e,t,r){return e=new e.constructor(t),r&&(e.h=Dt),e.m=Dt,e}function Oo(e){const t=e.v,r=0|t[x];return Ee(e,r)?e:Mn(e,t,r)?Fn(e,t):cr(t,r)}function cr(e,t,r,i){return i??(i=!!(34&t)),e=bi(e,t,Wd,i),i=32,r&&(i|=2),se(e,t=16769217&t|i),e}function Ln(e){const t=e.v,r=0|t[x];return Ee(e,r)?Mn(e,t,r)?Fn(e,t,!0):new e.constructor(cr(t,r,!1)):e}function lr(e){if(e.h!==Dt)return!1;var t=e.v;return Br(t=cr(t,0|t[x]),2048),e.v=t,e.h=void 0,e.m=void 0,!0}function dr(e){if(!lr(e)&&Ee(e,0|e.v[x]))throw Error()}function Ut(e,t){t===void 0&&(t=0|e[x]),32&t&&!(4096&t)&&se(e,4096|t)}function Mn(e,t,r){return!!(2&r)||!(!(32&r)||4096&r)&&(se(t,2|r),e.h=Dt,!0)}const $d=ke(0),yt={};function W(e,t,r,i,n){if((t=ct(e.v,t,r,n))!==null||i&&e.m!==Dt)return t}function ct(e,t,r,i){if(t===-1)return null;const n=t+(r?0:-1),s=e.length-1;let a,c;if(!(s<1+(r?0:-1))){if(n>=s)if(a=e[s],a!=null&&typeof a=="object"&&a.constructor===Object)r=a[t],c=!0;else{if(n!==s)return;r=a}else r=e[n];if(i&&r!=null){if((i=i(r))==null)return i;if(!Object.is(i,r))return c?a[t]=i:e[n]=i,i}return r}}function B(e,t,r,i){dr(e),oe(e=e.v,0|e[x],t,r,i)}function oe(e,t,r,i,n){const s=r+(n?0:-1);var a=e.length-1;if(a>=1+(n?0:-1)&&s>=a){const c=e[a];if(c!=null&&typeof c=="object"&&c.constructor===Object)return c[r]=i,t}return s<=a?(e[s]=i,t):(i!==void 0&&(r>=(a=(t??(t=0|e[x]))>>14&1023||536870912)?i!=null&&(e[a+(n?0:-1)]={[r]:i}):e[s]=i),t)}function Gt(){return pd===void 0?2:4}function Vt(e,t,r,i,n){let s=e.v,a=0|s[x];i=Ee(e,a)?1:i,n=!!n||i===3,i===2&&lr(e)&&(s=e.v,a=0|s[x]);let c=(e=Pn(s,t))===Pt?7:0|e[x],l=Dn(c,a);var h=!(4&l);if(h){4&l&&(e=We(e),c=0,l=Wt(l,a),a=oe(s,a,t,e));let d=0,f=0;for(;d<e.length;d++){const w=r(e[d]);w!=null&&(e[f++]=w)}f<d&&(e.length=f),r=-513&(4|l),l=r&=-1025,l&=-4097}return l!==c&&(se(e,l),2&l&&Object.freeze(e)),Bo(e,l,s,a,t,i,h,n)}function Bo(e,t,r,i,n,s,a,c){let l=t;return s===1||s===4&&(2&t||!(16&t)&&32&i)?jt(t)||((t|=!e.length||a&&!(4096&t)||32&i&&!(4096&t||16&t)?2:256)!==l&&se(e,t),Object.freeze(e)):(s===2&&jt(t)&&(e=We(e),l=0,t=Wt(t,i),i=oe(r,i,n,e)),jt(t)||(c||(t|=16),t!==l&&se(e,t))),2&t||!(4096&t||16&t)||Ut(r,i),e}function Pn(e,t,r){return e=ct(e,t,r),Array.isArray(e)?e:Pt}function Dn(e,t){return 2&t&&(e|=2),1|e}function jt(e){return!!(2&e)&&!!(4&e)||!!(256&e)}function Uo(e){return bn(e,!0)}function Go(e){e=We(e);for(let t=0;t<e.length;t++){const r=e[t]=We(e[t]);Array.isArray(r[1])&&(r[1]=Ur(r[1]))}return Gr(e)}function bt(e,t,r,i){dr(e),oe(e=e.v,0|e[x],t,(i==="0"?Number(r)===0:r===i)?void 0:r)}function ur(e,t,r){if(2&t)throw Error();const i=nr(t);let n=Pn(e,r,i),s=n===Pt?7:0|n[x],a=Dn(s,t);return(2&a||jt(a)||16&a)&&(a===s||jt(a)||se(n,a),n=We(n),s=0,a=Wt(a,t),oe(e,t,r,n,i)),a&=-13,a!==s&&se(n,a),n}function On(e,t){var r=Ha;return Un(Bn(e=e.v),e,void 0,r)===t?t:-1}function Bn(e){if(tr)return e[Or]??(e[Or]=new Map);if(Or in e)return e[Or];const t=new Map;return Object.defineProperty(e,Or,{value:t}),t}function Vo(e,t,r,i,n){const s=Bn(e),a=Un(s,e,t,r,n);return a!==i&&(a&&(t=oe(e,t,a,void 0,n)),s.set(r,i)),t}function Un(e,t,r,i,n){let s=e.get(i);if(s!=null)return s;s=0;for(let a=0;a<i.length;a++){const c=i[a];ct(t,c,n)!=null&&(s!==0&&(r=oe(t,r,s,void 0,n)),s=c)}return e.set(i,s),s}function Gn(e,t,r){let i=0|e[x];const n=nr(i),s=ct(e,r,n);let a;if(s!=null&&s[rr]===ir){if(!Ee(s))return lr(s),s.v;a=s.v}else Array.isArray(s)&&(a=s);if(a){const c=0|a[x];2&c&&(a=cr(a,c))}return a=Bt(a,t),a!==s&&oe(e,i,r,a,n),a}function jo(e,t,r,i,n){let s=!1;if((i=ct(e,i,n,a=>{const c=Sn(a,r,!1,t);return s=c!==a&&c!=null,c}))!=null)return s&&!Ee(i)&&Ut(e,t),i}function D(e,t,r,i){let n=e.v,s=0|n[x];if((t=jo(n,s,t,r,i))==null)return t;if(s=0|n[x],!Ee(e,s)){const a=Ln(t);a!==t&&(lr(e)&&(n=e.v,s=0|n[x]),s=oe(n,s,r,t=a,i),Ut(n,s))}return t}function Wo(e,t,r,i,n,s,a,c){var l=Ee(e,r);s=l?1:s,a=!!a||s===3,l=c&&!l,(s===2||l)&&lr(e)&&(r=0|(t=e.v)[x]);var h=(e=Pn(t,n))===Pt?7:0|e[x],d=Dn(h,r);if(c=!(4&d)){var f=e,w=r;const g=!!(2&d);g&&(w|=2);let p=!g,y=!0,b=0,m=0;for(;b<f.length;b++){const S=Sn(f[b],i,!1,w);if(S instanceof i){if(!g){const I=Ee(S);p&&(p=!I),y&&(y=I)}f[m++]=S}}m<b&&(f.length=m),d|=4,d=y?-4097&d:4096|d,d=p?8|d:-9&d}if(d!==h&&(se(e,d),2&d&&Object.freeze(e)),l&&!(8&d||!e.length&&(s===1||s===4&&(2&d||!(16&d)&&32&r)))){for(jt(d)&&(e=We(e),d=Wt(d,r),r=oe(t,r,n,e)),i=e,l=d,h=0;h<i.length;h++)(f=i[h])!==(d=Ln(f))&&(i[h]=d);l|=8,se(e,d=l=i.length?4096|l:-4097&l)}return Bo(e,d,t,r,n,s,c,a)}function lt(e,t,r){const i=e.v;return Wo(e,i,0|i[x],t,r,Gt(),!1,!0)}function $o(e){return e==null&&(e=void 0),e}function N(e,t,r,i,n){return B(e,r,i=$o(i),n),i&&!Ee(i)&&Ut(e.v),e}function Kr(e,t,r,i){e:{var n=i=$o(i);dr(e);const s=e.v;let a=0|s[x];if(n==null){const c=Bn(s);if(Un(c,s,a,r)!==t)break e;c.set(r,0)}else a=Vo(s,a,r,t);oe(s,a,t,n)}i&&!Ee(i)&&Ut(e.v)}function Wt(e,t){return-273&(2&t?2|e:-3&e)}function Vn(e,t,r,i){var n=i;dr(e),e=Wo(e,i=e.v,0|i[x],r,t,2,!0),n=n??new r,e.push(n),t=r=e===Pt?7:0|e[x],(n=Ee(n))?(r&=-9,e.length===1&&(r&=-4097)):r|=4096,r!==t&&se(e,r),n||Ut(i)}function Pe(e,t,r){return ar(W(e,t,void 0,r))}function zo(e){return(wn?W(e,2,void 0,void 0,pi):pi(W(e,2)))??$d}function J(e,t){return W(e,t,void 0,void 0,Qe)??0}function dt(e,t,r){if(r!=null){if(typeof r!="number"||!gi(r))throw mn("int32");r|=0}B(e,t,r)}function _(e,t,r){B(e,t,Wr(r))}function _e(e,t,r){bt(e,t,Hr(r),"")}function vi(e,t,r){{dr(e);const a=e.v;let c=0|a[x];if(r==null)oe(a,c,t);else{var i=e=r===Pt?7:0|r[x],n=jt(e),s=n||Object.isFrozen(r);for(n||(e=0),s||(r=We(r),i=0,e=Wt(e,c),s=!1),e|=5,e|=(4&e?512&e?512:1024&e?1024:0:void 0)??(wn?1024:0),n=0;n<r.length;n++){const l=r[n],h=Io(l);Object.is(l,h)||(s&&(r=We(r),i=0,e=Wt(e,c),s=!1),r[n]=h)}e!==i&&(s&&(r=We(r),e=Wt(e,c)),se(r,e)),oe(a,c,t,r)}}}function xi(e,t,r){dr(e),Vt(e,t,fe,2,!0).push(Io(r))}var hr=class{constructor(e,t,r){if(this.buffer=e,r&&!t)throw Error();this.g=t}};function jn(e,t){if(typeof e=="string")return new hr(ao(e),t);if(Array.isArray(e))return new hr(new Uint8Array(e),t);if(e.constructor===Uint8Array)return new hr(e,!1);if(e.constructor===ArrayBuffer)return e=new Uint8Array(e),new hr(e,!1);if(e.constructor===Ye)return t=pn(e)||new Uint8Array(0),new hr(t,!0,e);if(e instanceof Uint8Array)return e=e.constructor===Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new hr(e,!1);throw Error()}function fr(e,t){let r,i=0,n=0,s=0;const a=e.h;let c=e.g;do r=a[c++],i|=(127&r)<<s,s+=7;while(s<32&&128&r);if(s>32)for(n|=(127&r)>>4,s=3;s<32&&128&r;s+=7)r=a[c++],n|=(127&r)<<s;if($t(e,c),!(128&r))return t(i>>>0,n>>>0);throw Error()}function Wn(e){let t=0,r=e.g;const i=r+10,n=e.h;for(;r<i;){const s=n[r++];if(t|=s,(128&s)==0)return $t(e,r),!!(127&t)}throw Error()}function vt(e){const t=e.h;let r=e.g,i=t[r++],n=127&i;if(128&i&&(i=t[r++],n|=(127&i)<<7,128&i&&(i=t[r++],n|=(127&i)<<14,128&i&&(i=t[r++],n|=(127&i)<<21,128&i&&(i=t[r++],n|=i<<28,128&i&&128&t[r++]&&128&t[r++]&&128&t[r++]&&128&t[r++]&&128&t[r++])))))throw Error();return $t(e,r),n}function ut(e){return vt(e)>>>0}function Ei(e){var t=e.h;const r=e.g;var i=t[r],n=t[r+1];const s=t[r+2];return t=t[r+3],$t(e,e.g+4),e=2*((n=(i<<0|n<<8|s<<16|t<<24)>>>0)>>31)+1,i=n>>>23&255,n&=8388607,i==255?n?NaN:e*(1/0):i==0?1401298464324817e-60*e*n:e*Math.pow(2,i-150)*(n+8388608)}function zd(e){return vt(e)}function $t(e,t){if(e.g=t,t>e.l)throw Error()}function Ho(e,t){if(t<0)throw Error();const r=e.g;if((t=r+t)>e.l)throw Error();return e.g=t,r}function qo(e,t){if(t==0)return Mt();var r=Ho(e,t);return e.Y&&e.j?r=e.h.subarray(r,r+t):(e=e.h,r=r===(t=r+t)?new Uint8Array(0):kd?e.slice(r,t):new Uint8Array(e.subarray(r,t))),r.length==0?Mt():new Ye(r,Zt)}var Ko=[];function Yo(e,t,r,i){if(Ni.length){const n=Ni.pop();return n.o(i),n.g.init(e,t,r,i),n}return new Hd(e,t,r,i)}function Xo(e){e.g.clear(),e.l=-1,e.h=-1,Ni.length<100&&Ni.push(e)}function Qo(e){var t=e.g;if(t.g==t.l)return!1;e.m=e.g.g;var r=ut(e.g);if(t=r>>>3,!((r&=7)>=0&&r<=5)||t<1)throw Error();return e.l=t,e.h=r,!0}function ki(e){switch(e.h){case 0:e.h!=0?ki(e):Wn(e.g);break;case 1:$t(e=e.g,e.g+8);break;case 2:if(e.h!=2)ki(e);else{var t=ut(e.g);$t(e=e.g,e.g+t)}break;case 5:$t(e=e.g,e.g+4);break;case 3:for(t=e.l;;){if(!Qo(e))throw Error();if(e.h==4){if(e.l!=t)throw Error();break}ki(e)}break;default:throw Error()}}function Yr(e,t,r){const i=e.g.l;var n=ut(e.g);let s=(n=e.g.g+n)-i;if(s<=0&&(e.g.l=n,r(t,e,void 0,void 0,void 0),s=n-e.g.g),s)throw Error();return e.g.g=n,e.g.l=i,t}function $n(e){var t=ut(e.g),r=Ho(e=e.g,t);if(e=e.h,rd){var i,n=e;(i=un)||(i=un=new TextDecoder("utf-8",{fatal:!0})),t=r+t,n=r===0&&t===n.length?n:n.subarray(r,t);try{var s=i.decode(n)}catch(c){if(di===void 0){try{i.decode(new Uint8Array([128]))}catch{}try{i.decode(new Uint8Array([97])),di=!0}catch{di=!1}}throw!di&&(un=void 0),c}}else{t=(s=r)+t,r=[];let c,l=null;for(;s<t;){var a=e[s++];a<128?r.push(a):a<224?s>=t?Lt():(c=e[s++],a<194||(192&c)!=128?(s--,Lt()):r.push((31&a)<<6|63&c)):a<240?s>=t-1?Lt():(c=e[s++],(192&c)!=128||a===224&&c<160||a===237&&c>=160||(192&(i=e[s++]))!=128?(s--,Lt()):r.push((15&a)<<12|(63&c)<<6|63&i)):a<=244?s>=t-2?Lt():(c=e[s++],(192&c)!=128||c-144+(a<<28)>>30||(192&(i=e[s++]))!=128||(192&(n=e[s++]))!=128?(s--,Lt()):(a=(7&a)<<18|(63&c)<<12|(63&i)<<6|63&n,a-=65536,r.push(55296+(a>>10&1023),56320+(1023&a)))):Lt(),r.length>=8192&&(l=Js(l,r),r.length=0)}s=Js(l,r)}return s}function Jo(e){const t=ut(e.g);return qo(e.g,t)}function _i(e,t,r){var i=ut(e.g);for(i=e.g.g+i;e.g.g<i;)r.push(t(e.g))}var Hd=class{constructor(e,t,r,i){if(Ko.length){const n=Ko.pop();n.init(e,t,r,i),e=n}else e=new class{constructor(n,s,a,c){this.h=null,this.j=!1,this.g=this.l=this.m=0,this.init(n,s,a,c)}init(n,s,a,{Y:c=!1,ea:l=!1}={}){this.Y=c,this.ea=l,n&&(n=jn(n,this.ea),this.h=n.buffer,this.j=n.g,this.m=s||0,this.l=a!==void 0?this.m+a:this.h.length,this.g=this.m)}clear(){this.h=null,this.j=!1,this.g=this.l=this.m=0,this.Y=!1}}(e,t,r,i);this.g=e,this.m=this.g.g,this.h=this.l=-1,this.o(i)}o({ha:e=!1}={}){this.ha=e}},Ni=[];function Zo(e){return e?/^\d+$/.test(e)?(wi(e),new zn(H,te)):null:qd||(qd=new zn(0,0))}var zn=class{constructor(e,t){this.h=e>>>0,this.g=t>>>0}};let qd;function Ro(e){return e?/^-?\d+$/.test(e)?(wi(e),new Hn(H,te)):null:Kd||(Kd=new Hn(0,0))}var Hn=class{constructor(e,t){this.h=e>>>0,this.g=t>>>0}};let Kd;function wr(e,t,r){for(;r>0||t>127;)e.g.push(127&t|128),t=(t>>>7|r<<25)>>>0,r>>>=7;e.g.push(t)}function gr(e,t){for(;t>127;)e.g.push(127&t|128),t>>>=7;e.g.push(t)}function Ti(e,t){if(t>=0)gr(e,t);else{for(let r=0;r<9;r++)e.g.push(127&t|128),t>>=7;e.g.push(1)}}function qn(e){var t=H;e.g.push(t>>>0&255),e.g.push(t>>>8&255),e.g.push(t>>>16&255),e.g.push(t>>>24&255)}function pr(e,t){t.length!==0&&(e.l.push(t),e.h+=t.length)}function De(e,t,r){gr(e.g,8*t+r)}function Kn(e,t){return De(e,t,2),t=e.g.end(),pr(e,t),t.push(e.h),t}function Yn(e,t){var r=t.pop();for(r=e.h+e.g.length()-r;r>127;)t.push(127&r|128),r>>>=7,e.h++;t.push(r),e.h++}function Si(e,t,r){De(e,t,2),gr(e.g,r.length),pr(e,e.g.end()),pr(e,r)}function Ai(e,t,r,i){r!=null&&(t=Kn(e,t),i(r,e),Yn(e,t))}function Je(){const e=class{constructor(){throw Error()}};return Object.setPrototypeOf(e,e.prototype),e}var Xn=Je(),ea=Je(),Qn=Je(),Jn=Je(),ta=Je(),ra=Je(),Yd=Je(),Ci=Je(),ia=Je(),na=Je();function Ze(e,t,r){var i=e.v;xe&&xe in i&&(i=i[xe])&&delete i[t.g],t.h?t.j(e,t.h,t.g,r,t.l):t.j(e,t.g,r,t.l)}var E=class{constructor(e,t){this.v=Po(e,t,void 0,2048)}toJSON(){return Mo(this)}j(){var n;var e=I2,t=this.v,r=e.g,i=xe;if(tr&&i&&((n=t[i])==null?void 0:n[r])!=null&&Rt(fd,3),t=e.g,ho&&xe&&ho===void 0&&(i=(r=this.v)[xe])&&(i=i.da))try{i(r,t,Bd)}catch(s){Rs(s)}return e.h?e.m(this,e.h,e.g,e.l):e.m(this,e.g,e.defaultValue,e.l)}clone(){const e=this.v,t=0|e[x];return Mn(this,e,t)?Fn(this,e,!0):new this.constructor(cr(e,t,!1))}};E.prototype[rr]=ir,E.prototype.toString=function(){return this.v.toString()};var mr=class{constructor(e,t,r){this.g=e,this.h=t,e=Xn,this.l=!!e&&r===e||!1}};function Ii(e,t){return new mr(e,t,Xn)}function sa(e,t,r,i,n){Ai(e,r,ua(t,i),n)}const Xd=Ii(function(e,t,r,i,n){return e.h===2&&(Yr(e,Gn(t,i,r),n),!0)},sa),Qd=Ii(function(e,t,r,i,n){return e.h===2&&(Yr(e,Gn(t,i,r),n),!0)},sa);var Fi=Symbol(),Li=Symbol(),Zn=Symbol(),oa=Symbol(),aa=Symbol();let ca,la;function zt(e,t,r,i){var n=i[e];if(n)return n;(n={}).qa=i,n.T=function(f){switch(typeof f){case"boolean":return Vd||(Vd=[0,void 0,!0]);case"number":return f>0?void 0:f===0?jd||(jd=[0,void 0]):[-f,void 0];case"string":return[0,f];case"object":return f}}(i[0]);var s=i[1];let a=1;s&&s.constructor===Object&&(n.ba=s,typeof(s=i[++a])=="function"&&(n.ma=!0,ca??(ca=s),la??(la=i[a+1]),s=i[a+=2]));const c={};for(;s&&Array.isArray(s)&&s.length&&typeof s[0]=="number"&&s[0]>0;){for(var l=0;l<s.length;l++)c[s[l]]=s;s=i[++a]}for(l=1;s!==void 0;){let f;typeof s=="number"&&(l+=s,s=i[++a]);var h=void 0;if(s instanceof mr?f=s:(f=Xd,a--),f==null?void 0:f.l){s=i[++a],h=i;var d=a;typeof s=="function"&&(s=s(),h[d]=s),h=s}for(d=l+1,typeof(s=i[++a])=="number"&&s<0&&(d-=s,s=i[++a]);l<d;l++){const w=c[l];h?r(n,l,f,h,w):t(n,l,f,w)}}return i[e]=n}function da(e){return Array.isArray(e)?e[0]instanceof mr?e:[Qd,e]:[e,void 0]}function ua(e,t){return e instanceof E?e.v:Array.isArray(e)?Bt(e,t):void 0}function Rn(e,t,r,i){const n=r.g;e[t]=i?(s,a,c)=>n(s,a,c,i):n}function es(e,t,r,i,n){const s=r.g;let a,c;e[t]=(l,h,d)=>s(l,h,d,c||(c=zt(Li,Rn,es,i).T),a||(a=ts(i)),n)}function ts(e){let t=e[Zn];if(t!=null)return t;const r=zt(Li,Rn,es,e);return t=r.ma?(i,n)=>ca(i,n,r):(i,n)=>{for(;Qo(n)&&n.h!=4;){var s=n.l,a=r[s];if(a==null){var c=r.ba;c&&(c=c[s])&&(c=Zd(c))!=null&&(a=r[s]=c)}if(a==null||!a(n,i,s)){if(a=(c=n).m,ki(c),c.ha)var l=void 0;else l=c.g.g-a,c.g.g=a,l=qo(c.g,l);a=void 0,c=i,l&&((a=c[xe]??(c[xe]=new In))[s]??(a[s]=[])).push(l)}}return(i=mi(i))&&(i.da=r.qa[aa]),!0},e[Zn]=t,e[aa]=Jd.bind(e),t}function Jd(e,t,r,i){var n=this[Li];const s=this[Zn],a=Bt(void 0,n.T),c=mi(e);if(c){var l=!1,h=n.ba;if(h){if(n=(d,f,w)=>{if(w.length!==0)if(h[f])for(const g of w){d=Yo(g);try{l=!0,s(a,d)}finally{Xo(d)}}else i==null||i(e,f,w)},t==null)yi(c,n);else if(c!=null){const d=c[t];d&&n(c,t,d)}if(l){let d=0|e[x];if(2&d&&2048&d&&!(r!=null&&r.Ka))throw Error();const f=nr(d),w=(g,p)=>{if(ct(e,g,f)!=null){if((r==null?void 0:r.Qa)===1)return;throw Error()}p!=null&&(d=oe(e,d,g,p,f)),delete c[g]};t==null?mo(a,0|a[x],(g,p)=>{w(g,p)}):w(t,ct(a,t,f))}}}}function Zd(e){const t=(e=da(e))[0].g;if(e=e[1]){const r=ts(e),i=zt(Li,Rn,es,e).T;return(n,s,a)=>t(n,s,a,i,r)}return t}function Mi(e,t,r){e[t]=r.h}function Pi(e,t,r,i){let n,s;const a=r.h;e[t]=(c,l,h)=>a(c,l,h,s||(s=zt(Fi,Mi,Pi,i).T),n||(n=ha(i)))}function ha(e){let t=e[oa];if(!t){const r=zt(Fi,Mi,Pi,e);t=(i,n)=>fa(i,n,r),e[oa]=t}return t}function fa(e,t,r){mo(e,0|e[x],(i,n)=>{if(n!=null){var s=function(a,c){var l=a[c];if(l)return l;if((l=a.ba)&&(l=l[c])){var h=(l=da(l))[0].h;if(l=l[1]){const d=ha(l),f=zt(Fi,Mi,Pi,l).T;l=a.ma?la(f,d):(w,g,p)=>h(w,g,p,f,d)}else l=h;return a[c]=l}}(r,i);s?s(t,n,i):i<500||Rt(yn,3)}}),(e=mi(e))&&yi(e,(i,n,s)=>{for(pr(t,t.g.end()),i=0;i<s.length;i++)pr(t,pn(s[i])||new Uint8Array(0))})}const Rd=ke(0);function yr(e,t){if(Array.isArray(t)){var r=0|t[x];if(4&r)return t;for(var i=0,n=0;i<t.length;i++){const s=e(t[i]);s!=null&&(t[n++]=s)}return n<i&&(t.length=n),(e=-1537&(5|r))!==r&&se(t,e),2&e&&Object.freeze(t),t}}function ge(e,t,r){return new mr(e,t,r)}function br(e,t,r){return new mr(e,t,r)}function ce(e,t,r){oe(e,0|e[x],t,r,nr(0|e[x]))}var e2=Ii(function(e,t,r,i,n){if(e.h!==2)return!1;if(e=We(e=Yr(e,Bt([void 0,void 0],i),n)),n=nr(i=0|t[x]),2&i)throw Error();let s=ct(t,r,n);if(s instanceof at)2&s.J?(s=s.V(),s.push(e),oe(t,i,r,s,n)):s.Ma(e);else if(Array.isArray(s)){var a=0|s[x];8192&a||se(s,a|=8192),2&a&&(s=Go(s),oe(t,i,r,s,n)),s.push(e)}else oe(t,i,r,Gr([e]),n);return!0},function(e,t,r,i,n){if(t instanceof at)t.forEach((s,a)=>{Ai(e,r,Bt([a,s],i),n)});else if(Array.isArray(t)){for(let s=0;s<t.length;s++){const a=t[s];Array.isArray(a)&&Ai(e,r,Bt(a,i),n)}Gr(t)}});function wa(e,t,r){(t=Qe(t))!=null&&(De(e,r,5),e=e.g,xn(t),qn(e))}function ga(e,t,r){if(t=function(i){if(i==null)return i;const n=typeof i;if(n==="bigint")return String(jr(64,i));if(zr(i)){if(n==="string")return So(i);if(n==="number")return Tn(i)}}(t),t!=null&&(typeof t=="string"&&Ro(t),t!=null))switch(De(e,r,0),typeof t){case"number":e=e.g,sr(t),wr(e,H,te);break;case"bigint":r=BigInt.asUintN(64,t),r=new Hn(Number(r&BigInt(4294967295)),Number(r>>BigInt(32))),wr(e.g,r.h,r.g);break;default:r=Ro(t),wr(e.g,r.h,r.g)}}function pa(e,t,r){(t=ar(t))!=null&&t!=null&&(De(e,r,0),Ti(e.g,t))}function ma(e,t,r){(t=_o(t))!=null&&(De(e,r,0),e.g.g.push(t?1:0))}function ya(e,t,r){(t=fe(t))!=null&&Si(e,r,Zs(t))}function ba(e,t,r,i,n){Ai(e,r,ua(t,i),n)}function va(e,t,r){(t=t==null||typeof t=="string"||t instanceof Ye?t:void 0)!=null&&Si(e,r,jn(t,!0).buffer)}function xa(e,t,r){return(e.h===5||e.h===2)&&(t=ur(t,0|t[x],r),e.h==2?_i(e,Ei,t):t.push(Ei(e.g)),!0)}var re=ge(function(e,t,r){return e.h===5&&(ce(t,r,Ei(e.g)),!0)},wa,Ci),t2=br(xa,function(e,t,r){if((t=yr(Qe,t))!=null)for(let a=0;a<t.length;a++){var i=e,n=r,s=t[a];s!=null&&(De(i,n,5),i=i.g,xn(s),qn(i))}},Ci),rs=br(xa,function(e,t,r){if((t=yr(Qe,t))!=null&&t.length){De(e,r,2),gr(e.g,4*t.length);for(let i=0;i<t.length;i++)r=e.g,xn(t[i]),qn(r)}},Ci),r2=ge(function(e,t,r){return e.h===5&&(ce(t,r,(e=Ei(e.g))===0?void 0:e),!0)},wa,Ci),xt=ge(function(e,t,r){return fn?(e.h!==0?e=!1:(ce(t,r,fr(e.g,Eo)),e=!0),e):e.h===0&&(ce(t,r,fr(e.g,kn)),!0)},ga,ra),is=ge(function(e,t,r){return fn?(e.h!==0?t=!1:(ce(t,r,(e=fr(e.g,Eo))===Rd?void 0:e),t=!0),t):e.h===0&&(ce(t,r,(e=fr(e.g,kn))===0?void 0:e),!0)},ga,ra),i2=ge(function(e,t,r){return fn?(e.h!==0?e=!1:(ce(t,r,fr(e.g,Nd)),e=!0),e):e.h===0&&(ce(t,r,fr(e.g,En)),!0)},function(e,t,r){if(t=function(i){if(i==null)return i;var n=typeof i;if(n==="bigint")return String(Td(64,i));if(zr(i)){if(n==="string")return n=or(Number(i)),Ot(n)&&n>=0?i=String(n):((n=i.indexOf("."))!==-1&&(i=i.substring(0,n)),(n=i[0]!=="-"&&((n=i.length)<20||n===20&&i<="18446744073709551615"))||(wi(i),i=Vr(H,te))),i;if(n==="number")return(i=or(i))>=0&&Ot(i)||(sr(i),i=En(H,te)),i}}(t),t!=null&&(typeof t=="string"&&Zo(t),t!=null))switch(De(e,r,0),typeof t){case"number":e=e.g,sr(t),wr(e,H,te);break;case"bigint":r=BigInt.asUintN(64,t),r=new zn(Number(r&BigInt(4294967295)),Number(r>>BigInt(32))),wr(e.g,r.h,r.g);break;default:r=Zo(t),wr(e.g,r.h,r.g)}},Yd),le=ge(function(e,t,r){return e.h===0&&(ce(t,r,vt(e.g)),!0)},pa,Jn),Xr=br(function(e,t,r){return(e.h===0||e.h===2)&&(t=ur(t,0|t[x],r),e.h==2?_i(e,vt,t):t.push(vt(e.g)),!0)},function(e,t,r){if((t=yr(ar,t))!=null&&t.length){r=Kn(e,r);for(let i=0;i<t.length;i++)Ti(e.g,t[i]);Yn(e,r)}},Jn),vr=ge(function(e,t,r){return e.h===0&&(ce(t,r,(e=vt(e.g))===0?void 0:e),!0)},pa,Jn),Z=ge(function(e,t,r){return e.h===0&&(ce(t,r,Wn(e.g)),!0)},ma,ea),Ht=ge(function(e,t,r){return e.h===0&&(ce(t,r,(e=Wn(e.g))===!1?void 0:e),!0)},ma,ea),we=br(function(e,t,r){return e.h===2&&(e=$n(e),ur(t,0|t[x],r).push(e),!0)},function(e,t,r){if((t=yr(fe,t))!=null)for(let a=0;a<t.length;a++){var i=e,n=r,s=t[a];s!=null&&Si(i,n,Zs(s))}},Qn),Et=ge(function(e,t,r){return e.h===2&&(ce(t,r,(e=$n(e))===""?void 0:e),!0)},ya,Qn),G=ge(function(e,t,r){return e.h===2&&(ce(t,r,$n(e)),!0)},ya,Qn),de=function(e,t,r=Xn){return new mr(e,t,r)}(function(e,t,r,i,n){return e.h===2&&(i=Bt(void 0,i),ur(t,0|t[x],r).push(i),Yr(e,i,n),!0)},function(e,t,r,i,n){if(Array.isArray(t)){for(let s=0;s<t.length;s++)ba(e,t[s],r,i,n);1&(e=0|t[x])||se(t,1|e)}}),R=Ii(function(e,t,r,i,n,s){if(e.h!==2)return!1;let a=0|t[x];return Vo(t,a,s,r,nr(a)),Yr(e,t=Gn(t,i,r),n),!0},ba),Ea=ge(function(e,t,r){return e.h===2&&(ce(t,r,Jo(e)),!0)},va,ia),n2=br(function(e,t,r){return(e.h===0||e.h===2)&&(t=ur(t,0|t[x],r),e.h==2?_i(e,ut,t):t.push(ut(e.g)),!0)},function(e,t,r){if((t=yr(No,t))!=null)for(let a=0;a<t.length;a++){var i=e,n=r,s=t[a];s!=null&&(De(i,n,0),gr(i.g,s))}},ta),s2=ge(function(e,t,r){return e.h===0&&(ce(t,r,(e=ut(e.g))===0?void 0:e),!0)},function(e,t,r){(t=No(t))!=null&&t!=null&&(De(e,r,0),gr(e.g,t))},ta),Ne=ge(function(e,t,r){return e.h===0&&(ce(t,r,vt(e.g)),!0)},function(e,t,r){(t=ar(t))!=null&&(t=parseInt(t,10),De(e,r,0),Ti(e.g,t))},na);class o2{constructor(t,r){var i=Te;this.g=t,this.h=r,this.m=D,this.j=N,this.defaultValue=void 0,this.l=i.Oa!=null?yo:void 0}register(){ui(this)}}function Re(e,t){return new o2(e,t)}function kt(e,t){return(r,i)=>{{const s={ea:!0};i&&Object.assign(s,i),r=Yo(r,void 0,void 0,s);try{const a=new e,c=a.v;ts(t)(c,r);var n=a}finally{Xo(r)}}return n}}function Di(e){return function(){const t=new class{constructor(){this.l=[],this.h=0,this.g=new class{constructor(){this.g=[]}length(){return this.g.length}end(){const a=this.g;return this.g=[],a}}}};fa(this.v,t,zt(Fi,Mi,Pi,e)),pr(t,t.g.end());const r=new Uint8Array(t.h),i=t.l,n=i.length;let s=0;for(let a=0;a<n;a++){const c=i[a];r.set(c,s),s+=c.length}return t.l=[r],r}}var ka=class extends E{constructor(e){super(e)}},_a=[0,Et,ge(function(e,t,r){return e.h===2&&(ce(t,r,(e=Jo(e))===Mt()?void 0:e),!0)},function(e,t,r){if(t!=null){if(t instanceof E){const i=t.Ra;return void(i?(t=i(t),t!=null&&Si(e,r,jn(t,!0).buffer)):Rt(yn,3))}if(Array.isArray(t))return void Rt(yn,3)}va(e,t,r)},ia)];let ns,Na=globalThis.trustedTypes;function Ta(e){var t;return ns===void 0&&(ns=function(){let r=null;if(!Na)return r;try{const i=n=>n;r=Na.createPolicy("goog#html",{createHTML:i,createScript:i,createScriptURL:i})}catch{}return r}()),e=(t=ns)?t.createScriptURL(e):e,new class{constructor(r){this.g=r}toString(){return this.g+""}}(e)}function a2(e,...t){if(t.length===0)return Ta(e[0]);let r=e[0];for(let i=0;i<t.length;i++)r+=encodeURIComponent(t[i])+e[i+1];return Ta(r)}var Sa=[0,le,Ne,Z,-1,Xr,Ne,-1,Z],c2=class extends E{constructor(e){super(e)}},Aa=[0,Z,G,Z,Ne,-1,br(function(e,t,r){return(e.h===0||e.h===2)&&(t=ur(t,0|t[x],r),e.h==2?_i(e,zd,t):t.push(vt(e.g)),!0)},function(e,t,r){if((t=yr(ar,t))!=null&&t.length){r=Kn(e,r);for(let i=0;i<t.length;i++)Ti(e.g,t[i]);Yn(e,r)}},na),G,-1,[0,Z,-1],Ne,Z,-1],Ca=[0,3,Z,-1,2,[0,le],[0,Ne,Z],[0,G,-1],[0]],Ia=[0,G,-2],Fa=class extends E{constructor(e){super(e)}},La=[0],Ma=[0,le,Z,1,Z,-4],Te=class extends E{constructor(e){super(e,2)}},ae={};ae[336783863]=[0,G,Z,-1,le,[0,[1,2,3,4,5,6,7,8,9],R,La,R,Aa,R,Ia,R,Ma,R,Sa,R,[0,G,-2],R,[0,G,Ne],R,Ca,R,[0,Ne,-1,Z]],[0,G],Z,[0,[1,3],[2,4],R,[0,Xr],-1,R,[0,we],-1,de,[0,G,-1]],G];var Pa=[0,is,-1,Ht,-3,is,Xr,Et,vr,is,-1,Ht,vr,Ht,-2,Et];function $(e,t){xi(e,3,t)}function F(e,t){xi(e,4,t)}var ye=class extends E{constructor(e){super(e,500)}o(e){return N(this,0,7,e)}},Qr=[-1,{}],Da=[0,G,1,Qr],Oa=[0,G,we,Qr];function Oe(e,t){Vn(e,1,ye,t)}function q(e,t){xi(e,10,t)}function O(e,t){xi(e,15,t)}var Se=class extends E{constructor(e){super(e,500)}o(e){return N(this,0,1001,e)}},Ba=[-500,de,[-500,Et,-1,we,-3,[-2,ae,Z],de,_a,vr,-1,Da,Oa,de,[0,Et,Ht],Et,Pa,vr,we,987,we],4,de,[-500,G,-1,[-1,{}],998,G],de,[-500,G,we,-1,[-2,{},Z],997,we,-1],vr,de,[-500,G,we,Qr,998,we],we,vr,Da,Oa,de,[0,Et,-1,Qr],we,-2,Pa,Et,-1,Ht,[0,Ht,s2],978,Qr,de,_a];Se.prototype.g=Di(Ba);var l2=kt(Se,Ba),d2=class extends E{constructor(e){super(e)}},Ua=class extends E{constructor(e){super(e)}g(){return lt(this,d2,1)}},Ga=[0,de,[0,le,re,G,-1]],Oi=kt(Ua,Ga),u2=class extends E{constructor(e){super(e)}},h2=class extends E{constructor(e){super(e)}},ss=class extends E{constructor(e){super(e)}l(){return D(this,u2,2)}g(){return lt(this,h2,5)}},Va=kt(class extends E{constructor(e){super(e)}},[0,we,Xr,rs,[0,Ne,[0,le,-3],[0,re,-3],[0,le,-1,[0,de,[0,le,-2]]],de,[0,re,-1,G,re]],G,-1,xt,de,[0,le,re],we,xt]),ja=class extends E{constructor(e){super(e)}},xr=kt(class extends E{constructor(e){super(e)}},[0,de,[0,re,-4]]),Wa=class extends E{constructor(e){super(e)}},Jr=kt(class extends E{constructor(e){super(e)}},[0,de,[0,re,-4]]),f2=class extends E{constructor(e){super(e)}},w2=[0,le,-1,rs,Ne],$a=class extends E{constructor(e){super(e)}};$a.prototype.g=Di([0,re,-4,xt]);var g2=class extends E{constructor(e){super(e)}},p2=kt(class extends E{constructor(e){super(e)}},[0,de,[0,1,le,G,Ga],xt]),za=class extends E{constructor(e){super(e)}},m2=class extends E{constructor(e){super(e)}na(){const e=W(this,1,void 0,void 0,Uo);return e??Mt()}},y2=class extends E{constructor(e){super(e)}},Ha=[1,2],b2=kt(class extends E{constructor(e){super(e)}},[0,de,[0,Ha,R,[0,rs],R,[0,Ea],le,G],xt]),os=class extends E{constructor(e){super(e)}},qa=[0,G,le,re,we,-1],Ka=class extends E{constructor(e){super(e)}},v2=[0,Z,-1],Ya=class extends E{constructor(e){super(e)}},Bi=[1,2,3,4,5,6],Ui=class extends E{constructor(e){super(e)}g(){return W(this,1,void 0,void 0,Uo)!=null}l(){return fe(W(this,2))!=null}},Y=class extends E{constructor(e){super(e)}g(){return _o(W(this,2))??!1}},Xa=[0,Ea,G,[0,le,xt,-1],[0,i2,xt]],ie=[0,Xa,Z,[0,Bi,R,Ma,R,Aa,R,Sa,R,La,R,Ia,R,Ca],Ne],Gi=class extends E{constructor(e){super(e)}},as=[0,ie,re,-1,le],x2=Re(502141897,Gi);ae[502141897]=as;var E2=kt(class extends E{constructor(e){super(e)}},[0,[0,Ne,-1,t2,n2],w2]),Qa=class extends E{constructor(e){super(e)}},Ja=class extends E{constructor(e){super(e)}},cs=[0,ie,re,[0,ie],Z],k2=Re(508968150,Ja);ae[508968150]=[0,ie,as,cs,re,[0,[0,Xa]]],ae[508968149]=cs;var Er=class extends E{constructor(e){super(e)}l(){return D(this,os,2)}g(){B(this,2)}},Za=[0,ie,qa];ae[478825465]=Za;var _2=class extends E{constructor(e){super(e)}},Ra=class extends E{constructor(e){super(e)}},ls=class extends E{constructor(e){super(e)}},ds=class extends E{constructor(e){super(e)}},ec=class extends E{constructor(e){super(e)}},tc=[0,ie,[0,ie],Za,-1],rc=[0,ie,re,le],us=[0,ie,re],ic=[0,ie,rc,us,re],N2=Re(479097054,ec);ae[479097054]=[0,ie,ic,tc],ae[463370452]=tc,ae[464864288]=rc;var T2=Re(462713202,ds);ae[462713202]=ic,ae[474472470]=us;var S2=class extends E{constructor(e){super(e)}},nc=class extends E{constructor(e){super(e)}},sc=class extends E{constructor(e){super(e)}},oc=class extends E{constructor(e){super(e)}},hs=[0,ie,re,-1,le],fs=[0,ie,re,Z];oc.prototype.g=Di([0,ie,us,[0,ie],as,cs,hs,fs]);var ac=class extends E{constructor(e){super(e)}},A2=Re(456383383,ac);ae[456383383]=[0,ie,qa];var cc=class extends E{constructor(e){super(e)}},C2=Re(476348187,cc);ae[476348187]=[0,ie,v2];var lc=class extends E{constructor(e){super(e)}},dc=class extends E{constructor(e){super(e)}},uc=[0,Ne,-1],I2=Re(458105876,class extends E{constructor(e){super(e)}g(){let e;var t=this.v;const r=0|t[x];return e=Ee(this,r),t=function(i,n,s,a){var c=dc;!a&&lr(i)&&(s=0|(n=i.v)[x]);var l=ct(n,2);if(i=!1,l==null){if(a)return Lo();l=[]}else if(l.constructor===at){if(!(2&l.J)||a)return l;l=l.V()}else Array.isArray(l)?i=!!(2&(0|l[x])):l=[];if(a){if(!l.length)return Lo();i||(i=!0,Ur(l))}else i&&(i=!1,Gr(l),l=Go(l));return!i&&32&s&&Br(l,32),s=oe(n,s,2,a=new at(l,c,Id,void 0)),i||Ut(n,s),a}(this,t,r,e),!e&&dc&&(t.ra=!0),t}});ae[458105876]=[0,uc,e2,[!0,xt,[0,G,-1,we]],[0,Xr,Z,Ne]];var ws=class extends E{constructor(e){super(e)}},hc=Re(458105758,ws);ae[458105758]=[0,ie,G,uc];var gs=class extends E{constructor(e){super(e)}},fc=[0,r2,-1,Ht],F2=class extends E{constructor(e){super(e)}},wc=class extends E{constructor(e){super(e)}},ps=[1,2];wc.prototype.g=Di([0,ps,R,fc,R,[0,de,fc]]);var gc=class extends E{constructor(e){super(e)}},L2=Re(443442058,gc);ae[443442058]=[0,ie,G,le,re,we,-1,Z,re],ae[514774813]=hs;var pc=class extends E{constructor(e){super(e)}},M2=Re(516587230,pc);function ms(e,t){return t=t?t.clone():new os,e.displayNamesLocale!==void 0?B(t,1,Hr(e.displayNamesLocale)):e.displayNamesLocale===void 0&&B(t,1),e.maxResults!==void 0?dt(t,2,e.maxResults):"maxResults"in e&&B(t,2),e.scoreThreshold!==void 0?_(t,3,e.scoreThreshold):"scoreThreshold"in e&&B(t,3),e.categoryAllowlist!==void 0?vi(t,4,e.categoryAllowlist):"categoryAllowlist"in e&&B(t,4),e.categoryDenylist!==void 0?vi(t,5,e.categoryDenylist):"categoryDenylist"in e&&B(t,5),t}function mc(e){const t=Number(e);return Number.isSafeInteger(t)?t:String(e)}function ys(e,t=-1,r=""){return{categories:e.map(i=>({index:Pe(i,1)??0??-1,score:J(i,2)??0,categoryName:fe(W(i,3))??""??"",displayName:fe(W(i,4))??""??""})),headIndex:t,headName:r}}function P2(e){const t={classifications:lt(e,g2,1).map(r=>{var i;return ys(((i=D(r,Ua,4))==null?void 0:i.g())??[],Pe(r,2)??0,fe(W(r,3))??"")})};return function(r){return Cd(wn?W(r,2,void 0,void 0,pi):W(r,2))}(e)!=null&&(t.timestampMs=mc(zo(e))),t}function yc(e){var a,c;var t=Vt(e,3,Qe,Gt()),r=Vt(e,2,ar,Gt()),i=Vt(e,1,fe,Gt()),n=Vt(e,9,fe,Gt());const s={categories:[],keypoints:[]};for(let l=0;l<t.length;l++)s.categories.push({score:t[l],index:r[l]??-1,categoryName:i[l]??"",displayName:n[l]??""});if((t=(a=D(e,ss,4))==null?void 0:a.l())&&(s.boundingBox={originX:Pe(t,1,yt)??0,originY:Pe(t,2,yt)??0,width:Pe(t,3,yt)??0,height:Pe(t,4,yt)??0,angle:0}),(c=D(e,ss,4))==null?void 0:c.g().length)for(const l of D(e,ss,4).g())s.keypoints.push({x:W(l,1,void 0,yt,Qe)??0,y:W(l,2,void 0,yt,Qe)??0,score:W(l,4,void 0,yt,Qe)??0,label:fe(W(l,3,void 0,yt))??""});return s}function Vi(e){const t=[];for(const r of lt(e,Wa,1))t.push({x:J(r,1)??0,y:J(r,2)??0,z:J(r,3)??0,visibility:J(r,4)??0});return t}function Zr(e){const t=[];for(const r of lt(e,ja,1))t.push({x:J(r,1)??0,y:J(r,2)??0,z:J(r,3)??0,visibility:J(r,4)??0});return t}function bc(e){return Array.from(e,t=>t>127?t-256:t)}function vc(e,t){if(e.length!==t.length)throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${e.length} vs. ${t.length}).`);let r=0,i=0,n=0;for(let s=0;s<e.length;s++)r+=e[s]*t[s],i+=e[s]*e[s],n+=t[s]*t[s];if(i<=0||n<=0)throw Error("Cannot compute cosine similarity on embedding with 0 norm.");return r/Math.sqrt(i*n)}let ji;ae[516587230]=[0,ie,hs,fs,re],ae[518928384]=fs;const D2=new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]);async function xc(){if(ji===void 0)try{await WebAssembly.instantiate(D2),ji=!0}catch{ji=!1}return ji}async function Rr(e,t=a2``){const r=await xc()?"wasm_internal":"wasm_nosimd_internal";return{wasmLoaderPath:`${t}/${e}_${r}.js`,wasmBinaryPath:`${t}/${e}_${r}.wasm`}}var qt=class{};function Ec(){var e=navigator;return typeof OffscreenCanvas<"u"&&(!function(t=navigator){return(t=t.userAgent).includes("Safari")&&!t.includes("Chrome")}(e)||!!((e=e.userAgent.match(/Version\/([\d]+).*Safari/))&&e.length>=1&&Number(e[1])>=17))}async function kc(e){if(typeof importScripts!="function"){const t=document.createElement("script");return t.src=e.toString(),t.crossOrigin="anonymous",new Promise((r,i)=>{t.addEventListener("load",()=>{r()},!1),t.addEventListener("error",n=>{i(n)},!1),document.body.appendChild(t)})}try{importScripts(e.toString())}catch(t){if(!(t instanceof TypeError))throw t;await self.import(e.toString())}}function _c(e){return e.videoWidth!==void 0?[e.videoWidth,e.videoHeight]:e.naturalWidth!==void 0?[e.naturalWidth,e.naturalHeight]:e.displayWidth!==void 0?[e.displayWidth,e.displayHeight]:[e.width,e.height]}function k(e,t,r){e.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"),r(t=e.i.stringToNewUTF8(t)),e.i._free(t)}function Nc(e,t,r){if(!e.i.canvas)throw Error("No OpenGL canvas configured.");if(r?e.i._bindTextureToStream(r):e.i._bindTextureToCanvas(),!(r=e.i.canvas.getContext("webgl2")||e.i.canvas.getContext("webgl")))throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");e.i.gpuOriginForWebTexturesIsBottomLeft&&r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!0),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,t),e.i.gpuOriginForWebTexturesIsBottomLeft&&r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1);const[i,n]=_c(t);return!e.l||i===e.i.canvas.width&&n===e.i.canvas.height||(e.i.canvas.width=i,e.i.canvas.height=n),[i,n]}function Tc(e,t,r){e.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");const i=new Uint32Array(t.length);for(let n=0;n<t.length;n++)i[n]=e.i.stringToNewUTF8(t[n]);t=e.i._malloc(4*i.length),e.i.HEAPU32.set(i,t>>2),r(t);for(const n of i)e.i._free(n);e.i._free(t)}function et(e,t,r){e.i.simpleListeners=e.i.simpleListeners||{},e.i.simpleListeners[t]=r}function _t(e,t,r){let i=[];e.i.simpleListeners=e.i.simpleListeners||{},e.i.simpleListeners[t]=(n,s,a)=>{s?(r(i,a),i=[]):i.push(n)}}qt.forVisionTasks=function(e){return Rr("vision",e)},qt.forTextTasks=function(e){return Rr("text",e)},qt.forGenAiExperimentalTasks=function(e){return Rr("genai_experimental",e)},qt.forGenAiTasks=function(e){return Rr("genai",e)},qt.forAudioTasks=function(e){return Rr("audio",e)},qt.isSimdSupported=function(){return xc()};async function O2(e,t,r,i){return e=await(async(n,s,a,c,l)=>{if(s&&await kc(s),!self.ModuleFactory||a&&(await kc(a),!self.ModuleFactory))throw Error("ModuleFactory not set.");return self.Module&&l&&((s=self.Module).locateFile=l.locateFile,l.mainScriptUrlOrBlob&&(s.mainScriptUrlOrBlob=l.mainScriptUrlOrBlob)),l=await self.ModuleFactory(self.Module||l),self.ModuleFactory=self.Module=void 0,new n(l,c)})(e,r.wasmLoaderPath,r.assetLoaderPath,t,{locateFile:n=>n.endsWith(".wasm")?r.wasmBinaryPath.toString():r.assetBinaryPath&&n.endsWith(".data")?r.assetBinaryPath.toString():n}),await e.o(i),e}function bs(e,t){const r=D(e.baseOptions,Ui,1)||new Ui;typeof t=="string"?(B(r,2,Hr(t)),B(r,1)):t instanceof Uint8Array&&(B(r,1,bn(t,!1)),B(r,2)),N(e.baseOptions,0,1,r)}function Sc(e){try{const t=e.H.length;if(t===1)throw Error(e.H[0].message);if(t>1)throw Error("Encountered multiple errors: "+e.H.map(r=>r.message).join(", "))}finally{e.H=[]}}function v(e,t){e.C=Math.max(e.C,t)}function Wi(e,t){e.B=new ye,_e(e.B,2,"PassThroughCalculator"),$(e.B,"free_memory"),F(e.B,"free_memory_unused_out"),q(t,"free_memory"),Oe(t,e.B)}function kr(e,t){$(e.B,t),F(e.B,t+"_unused_out")}function $i(e){e.g.addBoolToStream(!0,"free_memory",e.C)}var vs=class{constructor(e){this.g=e,this.H=[],this.C=0,this.g.setAutoRenderToScreen(!1)}l(e,t=!0){var r,i,n,s,a,c;if(t){const l=e.baseOptions||{};if((r=e.baseOptions)!=null&&r.modelAssetBuffer&&((i=e.baseOptions)!=null&&i.modelAssetPath))throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!((n=D(this.baseOptions,Ui,1))!=null&&n.g()||(s=D(this.baseOptions,Ui,1))!=null&&s.l()||(a=e.baseOptions)!=null&&a.modelAssetBuffer||(c=e.baseOptions)!=null&&c.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");if(function(h,d){let f=D(h.baseOptions,Ya,3);if(!f){var w=f=new Ya,g=new Fa;Kr(w,4,Bi,g)}"delegate"in d&&(d.delegate==="GPU"?(d=f,w=new c2,Kr(d,2,Bi,w)):(d=f,w=new Fa,Kr(d,4,Bi,w))),N(h.baseOptions,0,3,f)}(this,l),l.modelAssetPath)return fetch(l.modelAssetPath.toString()).then(h=>{if(h.ok)return h.arrayBuffer();throw Error(`Failed to fetch model: ${l.modelAssetPath} (${h.status})`)}).then(h=>{try{this.g.i.FS_unlink("/model.dat")}catch{}this.g.i.FS_createDataFile("/","model.dat",new Uint8Array(h),!0,!1,!1),bs(this,"/model.dat"),this.m(),this.L()});if(l.modelAssetBuffer instanceof Uint8Array)bs(this,l.modelAssetBuffer);else if(l.modelAssetBuffer)return async function(h){const d=[];for(var f=0;;){const{done:w,value:g}=await h.read();if(w)break;d.push(g),f+=g.length}if(d.length===0)return new Uint8Array(0);if(d.length===1)return d[0];h=new Uint8Array(f),f=0;for(const w of d)h.set(w,f),f+=w.length;return h}(l.modelAssetBuffer).then(h=>{bs(this,h),this.m(),this.L()})}return this.m(),this.L(),Promise.resolve()}L(){}ca(){let e;if(this.g.ca(t=>{e=l2(t)}),!e)throw Error("Failed to retrieve CalculatorGraphConfig");return e}setGraph(e,t){this.g.attachErrorListener((r,i)=>{this.H.push(Error(i))}),this.g.Ja(),this.g.setGraph(e,t),this.B=void 0,Sc(this)}finishProcessing(){this.g.finishProcessing(),Sc(this)}close(){this.B=void 0,this.g.closeGraph()}};function Nt(e,t){if(!e)throw Error(`Unable to obtain required WebGL resource: ${t}`);return e}vs.prototype.close=vs.prototype.close;class B2{constructor(t,r,i,n){this.g=t,this.h=r,this.m=i,this.l=n}bind(){this.g.bindVertexArray(this.h)}close(){this.g.deleteVertexArray(this.h),this.g.deleteBuffer(this.m),this.g.deleteBuffer(this.l)}}function Ac(e,t,r){const i=e.g;if(r=Nt(i.createShader(r),"Failed to create WebGL shader"),i.shaderSource(r,t),i.compileShader(r),!i.getShaderParameter(r,i.COMPILE_STATUS))throw Error(`Could not compile WebGL shader: ${i.getShaderInfoLog(r)}`);return i.attachShader(e.h,r),r}function Cc(e,t){const r=e.g,i=Nt(r.createVertexArray(),"Failed to create vertex array");r.bindVertexArray(i);const n=Nt(r.createBuffer(),"Failed to create buffer");r.bindBuffer(r.ARRAY_BUFFER,n),r.enableVertexAttribArray(e.O),r.vertexAttribPointer(e.O,2,r.FLOAT,!1,0,0),r.bufferData(r.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),r.STATIC_DRAW);const s=Nt(r.createBuffer(),"Failed to create buffer");return r.bindBuffer(r.ARRAY_BUFFER,s),r.enableVertexAttribArray(e.L),r.vertexAttribPointer(e.L,2,r.FLOAT,!1,0,0),r.bufferData(r.ARRAY_BUFFER,new Float32Array(t?[0,1,0,0,1,0,1,1]:[0,0,0,1,1,1,1,0]),r.STATIC_DRAW),r.bindBuffer(r.ARRAY_BUFFER,null),r.bindVertexArray(null),new B2(r,i,n,s)}function xs(e,t){if(e.g){if(t!==e.g)throw Error("Cannot change GL context once initialized")}else e.g=t}function U2(e,t,r,i){return xs(e,t),e.h||(e.m(),e.D()),r?(e.u||(e.u=Cc(e,!0)),r=e.u):(e.A||(e.A=Cc(e,!1)),r=e.A),t.useProgram(e.h),r.bind(),e.l(),e=i(),r.g.bindVertexArray(null),e}function Ic(e,t,r){return xs(e,t),e=Nt(t.createTexture(),"Failed to create texture"),t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,r??t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,r??t.LINEAR),t.bindTexture(t.TEXTURE_2D,null),e}function Fc(e,t,r){xs(e,t),e.B||(e.B=Nt(t.createFramebuffer(),"Failed to create framebuffe.")),t.bindFramebuffer(t.FRAMEBUFFER,e.B),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,r,0)}function G2(e){var t;(t=e.g)==null||t.bindFramebuffer(e.g.FRAMEBUFFER,null)}var Lc=class{H(){return`
2
2
  precision mediump float;
3
3
  varying vec2 vTex;
4
4
  uniform sampler2D inputTexture;
5
5
  void main() {
6
6
  gl_FragColor = texture2D(inputTexture, vTex);
7
7
  }
8
- `}m(){const i=this.g;if(this.h=or(i.createProgram(),"Failed to create WebGL program"),this.X=S8(this,`
8
+ `}m(){const e=this.g;if(this.h=Nt(e.createProgram(),"Failed to create WebGL program"),this.X=Ac(this,`
9
9
  attribute vec2 aVertex;
10
10
  attribute vec2 aTex;
11
11
  varying vec2 vTex;
12
12
  void main(void) {
13
13
  gl_Position = vec4(aVertex, 0.0, 1.0);
14
14
  vTex = aTex;
15
- }`,i.VERTEX_SHADER),this.W=S8(this,this.H(),i.FRAGMENT_SHADER),i.linkProgram(this.h),!i.getProgramParameter(this.h,i.LINK_STATUS))throw Error(`Error during program linking: ${i.getProgramInfoLog(this.h)}`);this.O=i.getAttribLocation(this.h,"aVertex"),this.L=i.getAttribLocation(this.h,"aTex")}D(){}l(){}close(){if(this.h){const i=this.g;i.deleteProgram(this.h),i.deleteShader(this.X),i.deleteShader(this.W)}this.B&&this.g.deleteFramebuffer(this.B),this.A&&this.A.close(),this.u&&this.u.close()}};function qc(i,c){switch(c){case 0:return i.g.find(f=>f instanceof Uint8Array);case 1:return i.g.find(f=>f instanceof Float32Array);case 2:return i.g.find(f=>typeof WebGLTexture<"u"&&f instanceof WebGLTexture);default:throw Error(`Type is not supported: ${c}`)}}function Qw(i){var c=qc(i,1);if(!c){if(c=qc(i,0))c=new Float32Array(c).map(h=>h/255);else{c=new Float32Array(i.width*i.height);const h=v0(i);var f=Zw(i);if(A8(f,h,x8(i)),"iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"document"in self&&"ontouchend"in self.document){f=new Float32Array(i.width*i.height*4),h.readPixels(0,0,i.width,i.height,h.RGBA,h.FLOAT,f);for(let y=0,w=0;y<c.length;++y,w+=4)c[y]=f[w]}else h.readPixels(0,0,i.width,i.height,h.RED,h.FLOAT,c)}i.g.push(c)}return c}function x8(i){let c=qc(i,2);if(!c){const f=v0(i);c=C8(i);const h=Qw(i),y=M8(i);f.texImage2D(f.TEXTURE_2D,0,y,i.width,i.height,0,f.RED,f.FLOAT,h),Jw(i)}return c}function v0(i){if(!i.canvas)throw Error("Conversion to different image formats require that a canvas is passed when initializing the image.");return i.h||(i.h=or(i.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),i.h}function M8(i){if(i=v0(i),!$y)if(i.getExtension("EXT_color_buffer_float")&&i.getExtension("OES_texture_float_linear")&&i.getExtension("EXT_float_blend"))$y=i.R32F;else{if(!i.getExtension("EXT_color_buffer_half_float"))throw Error("GPU does not fully support 4-channel float32 or float16 formats");$y=i.R16F}return $y}function Zw(i){return i.l||(i.l=new _8),i.l}function C8(i){const c=v0(i);c.viewport(0,0,i.width,i.height),c.activeTexture(c.TEXTURE0);let f=qc(i,2);return f||(f=T8(Zw(i),c,i.m?c.LINEAR:c.NEAREST),i.g.push(f),i.j=!0),c.bindTexture(c.TEXTURE_2D,f),f}function Jw(i){i.h.bindTexture(i.h.TEXTURE_2D,null)}var $y,Oa=class{constructor(i,c,f,h,y,w,E){this.g=i,this.m=c,this.j=f,this.canvas=h,this.l=y,this.width=w,this.height=E,this.j&&--D8===0&&console.error("You seem to be creating MPMask instances without invoking .close(). This leaks resources.")}Fa(){return!!qc(this,0)}ka(){return!!qc(this,1)}R(){return!!qc(this,2)}ja(){return(c=qc(i=this,0))||(c=Qw(i),c=new Uint8Array(c.map(f=>Math.round(255*f))),i.g.push(c)),c;var i,c}ia(){return Qw(this)}N(){return x8(this)}clone(){const i=[];for(const c of this.g){let f;if(c instanceof Uint8Array)f=new Uint8Array(c);else if(c instanceof Float32Array)f=new Float32Array(c);else{if(!(c instanceof WebGLTexture))throw Error(`Type is not supported: ${c}`);{const h=v0(this),y=Zw(this);h.activeTexture(h.TEXTURE1),f=T8(y,h,this.m?h.LINEAR:h.NEAREST),h.bindTexture(h.TEXTURE_2D,f);const w=M8(this);h.texImage2D(h.TEXTURE_2D,0,w,this.width,this.height,0,h.RED,h.FLOAT,null),h.bindTexture(h.TEXTURE_2D,null),A8(y,h,f),kA(y,h,!1,()=>{C8(this),h.clearColor(0,0,0,0),h.clear(h.COLOR_BUFFER_BIT),h.drawArrays(h.TRIANGLE_FAN,0,4),Jw(this)}),XA(y),Jw(this)}}i.push(f)}return new Oa(i,this.m,this.R(),this.canvas,this.l,this.width,this.height)}close(){this.j&&v0(this).deleteTexture(qc(this,2)),D8=-1}};Oa.prototype.close=Oa.prototype.close,Oa.prototype.clone=Oa.prototype.clone,Oa.prototype.getAsWebGLTexture=Oa.prototype.N,Oa.prototype.getAsFloat32Array=Oa.prototype.ia,Oa.prototype.getAsUint8Array=Oa.prototype.ja,Oa.prototype.hasWebGLTexture=Oa.prototype.R,Oa.prototype.hasFloat32Array=Oa.prototype.ka,Oa.prototype.hasUint8Array=Oa.prototype.Fa;var D8=250;function no(...i){return i.map(([c,f])=>({start:c,end:f}))}const QA=function(i){return class extends i{Ja(){this.i._registerModelResourcesGraphService()}}}((O8=class{constructor(i,c){this.l=!0,this.i=i,this.g=null,this.h=0,this.m=typeof this.i._addIntToInputStream=="function",c!==void 0?this.i.canvas=c:g8()?this.i.canvas=new OffscreenCanvas(1,1):(console.warn("OffscreenCanvas not supported and GraphRunner constructor glCanvas parameter is undefined. Creating backup canvas."),this.i.canvas=document.createElement("canvas"))}async initializeGraph(i){const c=await(await fetch(i)).arrayBuffer();i=!(i.endsWith(".pbtxt")||i.endsWith(".textproto")),this.setGraph(new Uint8Array(c),i)}setGraphFromString(i){this.setGraph(new TextEncoder().encode(i),!1)}setGraph(i,c){const f=i.length,h=this.i._malloc(f);this.i.HEAPU8.set(i,h),c?this.i._changeBinaryGraph(f,h):this.i._changeTextGraph(f,h),this.i._free(h)}configureAudio(i,c,f,h,y){this.i._configureAudio||console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),_e(this,h||"input_audio",w=>{_e(this,y=y||"audio_header",E=>{this.i._configureAudio(w,E,i,c??0,f)})})}setAutoResizeCanvas(i){this.l=i}setAutoRenderToScreen(i){this.i._setAutoRenderToScreen(i)}setGpuBufferVerticalFlip(i){this.i.gpuOriginForWebTexturesIsBottomLeft=i}ca(i){ko(this,"__graph_config__",c=>{i(c)}),_e(this,"__graph_config__",c=>{this.i._getGraphConfig(c,void 0)}),delete this.i.simpleListeners.__graph_config__}attachErrorListener(i){this.i.errorListener=i}attachEmptyPacketListener(i,c){this.i.emptyPacketListeners=this.i.emptyPacketListeners||{},this.i.emptyPacketListeners[i]=c}addAudioToStream(i,c,f){this.addAudioToStreamWithShape(i,0,0,c,f)}addAudioToStreamWithShape(i,c,f,h,y){const w=4*i.length;this.h!==w&&(this.g&&this.i._free(this.g),this.g=this.i._malloc(w),this.h=w),this.i.HEAPF32.set(i,this.g/4),_e(this,h,E=>{this.i._addAudioToInputStream(this.g,c,f,E,y)})}addGpuBufferToStream(i,c,f){_e(this,c,h=>{const[y,w]=v8(this,i,h);this.i._addBoundTextureToStream(h,y,w,f)})}addBoolToStream(i,c,f){_e(this,c,h=>{this.i._addBoolToInputStream(i,h,f)})}addDoubleToStream(i,c,f){_e(this,c,h=>{this.i._addDoubleToInputStream(i,h,f)})}addFloatToStream(i,c,f){_e(this,c,h=>{this.i._addFloatToInputStream(i,h,f)})}addIntToStream(i,c,f){_e(this,c,h=>{this.i._addIntToInputStream(i,h,f)})}addUintToStream(i,c,f){_e(this,c,h=>{this.i._addUintToInputStream(i,h,f)})}addStringToStream(i,c,f){_e(this,c,h=>{_e(this,i,y=>{this.i._addStringToInputStream(y,h,f)})})}addStringRecordToStream(i,c,f){_e(this,c,h=>{w8(this,Object.keys(i),y=>{w8(this,Object.values(i),w=>{this.i._addFlatHashMapToInputStream(y,w,Object.keys(i).length,h,f)})})})}addProtoToStream(i,c,f,h){_e(this,f,y=>{_e(this,c,w=>{const E=this.i._malloc(i.length);this.i.HEAPU8.set(i,E),this.i._addProtoToInputStream(E,i.length,w,y,h),this.i._free(E)})})}addEmptyPacketToStream(i,c){_e(this,i,f=>{this.i._addEmptyPacketToInputStream(f,c)})}addBoolVectorToStream(i,c,f){_e(this,c,h=>{const y=this.i._allocateBoolVector(i.length);if(!y)throw Error("Unable to allocate new bool vector on heap.");for(const w of i)this.i._addBoolVectorEntry(y,w);this.i._addBoolVectorToInputStream(y,h,f)})}addDoubleVectorToStream(i,c,f){_e(this,c,h=>{const y=this.i._allocateDoubleVector(i.length);if(!y)throw Error("Unable to allocate new double vector on heap.");for(const w of i)this.i._addDoubleVectorEntry(y,w);this.i._addDoubleVectorToInputStream(y,h,f)})}addFloatVectorToStream(i,c,f){_e(this,c,h=>{const y=this.i._allocateFloatVector(i.length);if(!y)throw Error("Unable to allocate new float vector on heap.");for(const w of i)this.i._addFloatVectorEntry(y,w);this.i._addFloatVectorToInputStream(y,h,f)})}addIntVectorToStream(i,c,f){_e(this,c,h=>{const y=this.i._allocateIntVector(i.length);if(!y)throw Error("Unable to allocate new int vector on heap.");for(const w of i)this.i._addIntVectorEntry(y,w);this.i._addIntVectorToInputStream(y,h,f)})}addUintVectorToStream(i,c,f){_e(this,c,h=>{const y=this.i._allocateUintVector(i.length);if(!y)throw Error("Unable to allocate new unsigned int vector on heap.");for(const w of i)this.i._addUintVectorEntry(y,w);this.i._addUintVectorToInputStream(y,h,f)})}addStringVectorToStream(i,c,f){_e(this,c,h=>{const y=this.i._allocateStringVector(i.length);if(!y)throw Error("Unable to allocate new string vector on heap.");for(const w of i)_e(this,w,E=>{this.i._addStringVectorEntry(y,E)});this.i._addStringVectorToInputStream(y,h,f)})}addBoolToInputSidePacket(i,c){_e(this,c,f=>{this.i._addBoolToInputSidePacket(i,f)})}addDoubleToInputSidePacket(i,c){_e(this,c,f=>{this.i._addDoubleToInputSidePacket(i,f)})}addFloatToInputSidePacket(i,c){_e(this,c,f=>{this.i._addFloatToInputSidePacket(i,f)})}addIntToInputSidePacket(i,c){_e(this,c,f=>{this.i._addIntToInputSidePacket(i,f)})}addUintToInputSidePacket(i,c){_e(this,c,f=>{this.i._addUintToInputSidePacket(i,f)})}addStringToInputSidePacket(i,c){_e(this,c,f=>{_e(this,i,h=>{this.i._addStringToInputSidePacket(h,f)})})}addProtoToInputSidePacket(i,c,f){_e(this,f,h=>{_e(this,c,y=>{const w=this.i._malloc(i.length);this.i.HEAPU8.set(i,w),this.i._addProtoToInputSidePacket(w,i.length,y,h),this.i._free(w)})})}addBoolVectorToInputSidePacket(i,c){_e(this,c,f=>{const h=this.i._allocateBoolVector(i.length);if(!h)throw Error("Unable to allocate new bool vector on heap.");for(const y of i)this.i._addBoolVectorEntry(h,y);this.i._addBoolVectorToInputSidePacket(h,f)})}addDoubleVectorToInputSidePacket(i,c){_e(this,c,f=>{const h=this.i._allocateDoubleVector(i.length);if(!h)throw Error("Unable to allocate new double vector on heap.");for(const y of i)this.i._addDoubleVectorEntry(h,y);this.i._addDoubleVectorToInputSidePacket(h,f)})}addFloatVectorToInputSidePacket(i,c){_e(this,c,f=>{const h=this.i._allocateFloatVector(i.length);if(!h)throw Error("Unable to allocate new float vector on heap.");for(const y of i)this.i._addFloatVectorEntry(h,y);this.i._addFloatVectorToInputSidePacket(h,f)})}addIntVectorToInputSidePacket(i,c){_e(this,c,f=>{const h=this.i._allocateIntVector(i.length);if(!h)throw Error("Unable to allocate new int vector on heap.");for(const y of i)this.i._addIntVectorEntry(h,y);this.i._addIntVectorToInputSidePacket(h,f)})}addUintVectorToInputSidePacket(i,c){_e(this,c,f=>{const h=this.i._allocateUintVector(i.length);if(!h)throw Error("Unable to allocate new unsigned int vector on heap.");for(const y of i)this.i._addUintVectorEntry(h,y);this.i._addUintVectorToInputSidePacket(h,f)})}addStringVectorToInputSidePacket(i,c){_e(this,c,f=>{const h=this.i._allocateStringVector(i.length);if(!h)throw Error("Unable to allocate new string vector on heap.");for(const y of i)_e(this,y,w=>{this.i._addStringVectorEntry(h,w)});this.i._addStringVectorToInputSidePacket(h,f)})}attachBoolListener(i,c){ko(this,i,c),_e(this,i,f=>{this.i._attachBoolListener(f)})}attachBoolVectorListener(i,c){ur(this,i,c),_e(this,i,f=>{this.i._attachBoolVectorListener(f)})}attachIntListener(i,c){ko(this,i,c),_e(this,i,f=>{this.i._attachIntListener(f)})}attachIntVectorListener(i,c){ur(this,i,c),_e(this,i,f=>{this.i._attachIntVectorListener(f)})}attachUintListener(i,c){ko(this,i,c),_e(this,i,f=>{this.i._attachUintListener(f)})}attachUintVectorListener(i,c){ur(this,i,c),_e(this,i,f=>{this.i._attachUintVectorListener(f)})}attachDoubleListener(i,c){ko(this,i,c),_e(this,i,f=>{this.i._attachDoubleListener(f)})}attachDoubleVectorListener(i,c){ur(this,i,c),_e(this,i,f=>{this.i._attachDoubleVectorListener(f)})}attachFloatListener(i,c){ko(this,i,c),_e(this,i,f=>{this.i._attachFloatListener(f)})}attachFloatVectorListener(i,c){ur(this,i,c),_e(this,i,f=>{this.i._attachFloatVectorListener(f)})}attachStringListener(i,c){ko(this,i,c),_e(this,i,f=>{this.i._attachStringListener(f)})}attachStringVectorListener(i,c){ur(this,i,c),_e(this,i,f=>{this.i._attachStringVectorListener(f)})}attachProtoListener(i,c,f){ko(this,i,c),_e(this,i,h=>{this.i._attachProtoListener(h,f||!1)})}attachProtoVectorListener(i,c,f){ur(this,i,c),_e(this,i,h=>{this.i._attachProtoVectorListener(h,f||!1)})}attachAudioListener(i,c,f){this.i._attachAudioListener||console.warn('Attempting to use attachAudioListener without support for output audio. Is build dep ":gl_graph_runner_audio_out" missing?'),ko(this,i,(h,y)=>{h=new Float32Array(h.buffer,h.byteOffset,h.length/4),c(h,y)}),_e(this,i,h=>{this.i._attachAudioListener(h,f||!1)})}finishProcessing(){this.i._waitUntilIdle()}closeGraph(){this.i._closeGraph(),this.i.simpleListeners=void 0,this.i.emptyPacketListeners=void 0}},class extends O8{get ga(){return this.i}pa(i,c,f){_e(this,c,h=>{const[y,w]=v8(this,i,h);this.ga._addBoundTextureAsImageToStream(h,y,w,f)})}Z(i,c){ko(this,i,c),_e(this,i,f=>{this.ga._attachImageListener(f)})}aa(i,c){ur(this,i,c),_e(this,i,f=>{this.ga._attachImageVectorListener(f)})}}));var O8,ao=class extends QA{};async function bt(i,c,f){return async function(h,y,w,E){return VA(h,y,w,E)}(i,f.canvas??(g8()?void 0:document.createElement("canvas")),c,f)}function z8(i,c,f,h){if(i.U){const w=new LS;if(f!=null&&f.regionOfInterest){if(!i.oa)throw Error("This task doesn't support region-of-interest.");var y=f.regionOfInterest;if(y.left>=y.right||y.top>=y.bottom)throw Error("Expected RectF with left < right and top < bottom.");if(y.left<0||y.top<0||y.right>1||y.bottom>1)throw Error("Expected RectF values to be in [0,1].");Oe(w,1,(y.left+y.right)/2),Oe(w,2,(y.top+y.bottom)/2),Oe(w,4,y.right-y.left),Oe(w,3,y.bottom-y.top)}else Oe(w,1,.5),Oe(w,2,.5),Oe(w,4,1),Oe(w,3,1);if(f!=null&&f.rotationDegrees){if((f==null?void 0:f.rotationDegrees)%90!=0)throw Error("Expected rotation to be a multiple of 90°.");if(Oe(w,5,-Math.PI*f.rotationDegrees/180),(f==null?void 0:f.rotationDegrees)%180!=0){const[E,A]=y8(c);f=qn(w,3)*A/E,y=qn(w,4)*E/A,Oe(w,4,f),Oe(w,3,y)}}i.g.addProtoToStream(w.g(),"mediapipe.NormalizedRect",i.U,h)}i.g.pa(c,i.X,h??performance.now()),i.finishProcessing()}function lo(i,c,f){var h;if((h=i.baseOptions)!=null&&h.g())throw Error("Task is not initialized with image mode. 'runningMode' must be set to 'IMAGE'.");z8(i,c,f,i.C+1)}function Xo(i,c,f,h){var y;if(!((y=i.baseOptions)!=null&&y.g()))throw Error("Task is not initialized with video mode. 'runningMode' must be set to 'VIDEO'.");z8(i,c,f,h)}function w0(i,c,f,h){var y=c.data;const w=c.width,E=w*(c=c.height);if((y instanceof Uint8Array||y instanceof Float32Array)&&y.length!==E)throw Error("Unsupported channel count: "+y.length/E);return i=new Oa([y],f,!1,i.g.i.canvas,i.P,w,c),h?i.clone():i}var vi=class extends kw{constructor(i,c,f,h){super(i),this.g=i,this.X=c,this.U=f,this.oa=h,this.P=new _8}l(i,c=!0){if("runningMode"in i&&Yt(this.baseOptions,2,am(!!i.runningMode&&i.runningMode!=="IMAGE")),i.canvas!==void 0&&this.g.i.canvas!==i.canvas)throw Error("You must create a new task to reset the canvas.");return super.l(i,c)}close(){this.P.close(),super.close()}};vi.prototype.close=vi.prototype.close;var iu=class extends vi{constructor(i,c){super(new ao(i,c),"image_in","norm_rect_in",!1),this.j={detections:[]},Ue(i=this.h=new Qy,0,1,c=new Un),Oe(this.h,2,.5),Oe(this.h,3,.3)}get baseOptions(){return xt(this.h,Un,1)}set baseOptions(i){Ue(this.h,0,1,i)}o(i){return"minDetectionConfidence"in i&&Oe(this.h,2,i.minDetectionConfidence??.5),"minSuppressionThreshold"in i&&Oe(this.h,3,i.minSuppressionThreshold??.3),this.l(i)}F(i,c){return this.j={detections:[]},lo(this,i,c),this.j}G(i,c,f){return this.j={detections:[]},Xo(this,i,f,c),this.j}m(){var i=new yi;Tn(i,"image_in"),Tn(i,"norm_rect_in"),Nt(i,"detections");const c=new pi;Vo(c,xA,this.h);const f=new kl;mi(f,2,"mediapipe.tasks.vision.face_detector.FaceDetectorGraph"),gn(f,"IMAGE:image_in"),gn(f,"NORM_RECT:norm_rect_in"),yt(f,"DETECTIONS:detections"),f.o(c),lu(i,f),this.g.attachProtoVectorListener("detections",(h,y)=>{for(const w of h)h=US(w),this.j.detections.push(f8(h));ge(this,y)}),this.g.attachEmptyPacketListener("detections",h=>{ge(this,h)}),i=i.g(),this.setGraph(new Uint8Array(i),!0)}};iu.prototype.detectForVideo=iu.prototype.G,iu.prototype.detect=iu.prototype.F,iu.prototype.setOptions=iu.prototype.o,iu.createFromModelPath=async function(i,c){return bt(iu,i,{baseOptions:{modelAssetPath:c}})},iu.createFromModelBuffer=function(i,c){return bt(iu,i,{baseOptions:{modelAssetBuffer:c}})},iu.createFromOptions=function(i,c){return bt(iu,i,c)};var Kw=no([61,146],[146,91],[91,181],[181,84],[84,17],[17,314],[314,405],[405,321],[321,375],[375,291],[61,185],[185,40],[40,39],[39,37],[37,0],[0,267],[267,269],[269,270],[270,409],[409,291],[78,95],[95,88],[88,178],[178,87],[87,14],[14,317],[317,402],[402,318],[318,324],[324,308],[78,191],[191,80],[80,81],[81,82],[82,13],[13,312],[312,311],[311,310],[310,415],[415,308]),Fw=no([263,249],[249,390],[390,373],[373,374],[374,380],[380,381],[381,382],[382,362],[263,466],[466,388],[388,387],[387,386],[386,385],[385,384],[384,398],[398,362]),$w=no([276,283],[283,282],[282,295],[295,285],[300,293],[293,334],[334,296],[296,336]),N8=no([474,475],[475,476],[476,477],[477,474]),Iw=no([33,7],[7,163],[163,144],[144,145],[145,153],[153,154],[154,155],[155,133],[33,246],[246,161],[161,160],[160,159],[159,158],[158,157],[157,173],[173,133]),Ww=no([46,53],[53,52],[52,65],[65,55],[70,63],[63,105],[105,66],[66,107]),U8=no([469,470],[470,471],[471,472],[472,469]),Pw=no([10,338],[338,297],[297,332],[332,284],[284,251],[251,389],[389,356],[356,454],[454,323],[323,361],[361,288],[288,397],[397,365],[365,379],[379,378],[378,400],[400,377],[377,152],[152,148],[148,176],[176,149],[149,150],[150,136],[136,172],[172,58],[58,132],[132,93],[93,234],[234,127],[127,162],[162,21],[21,54],[54,103],[103,67],[67,109],[109,10]),B8=[...Kw,...Fw,...$w,...Iw,...Ww,...Pw],H8=no([127,34],[34,139],[139,127],[11,0],[0,37],[37,11],[232,231],[231,120],[120,232],[72,37],[37,39],[39,72],[128,121],[121,47],[47,128],[232,121],[121,128],[128,232],[104,69],[69,67],[67,104],[175,171],[171,148],[148,175],[118,50],[50,101],[101,118],[73,39],[39,40],[40,73],[9,151],[151,108],[108,9],[48,115],[115,131],[131,48],[194,204],[204,211],[211,194],[74,40],[40,185],[185,74],[80,42],[42,183],[183,80],[40,92],[92,186],[186,40],[230,229],[229,118],[118,230],[202,212],[212,214],[214,202],[83,18],[18,17],[17,83],[76,61],[61,146],[146,76],[160,29],[29,30],[30,160],[56,157],[157,173],[173,56],[106,204],[204,194],[194,106],[135,214],[214,192],[192,135],[203,165],[165,98],[98,203],[21,71],[71,68],[68,21],[51,45],[45,4],[4,51],[144,24],[24,23],[23,144],[77,146],[146,91],[91,77],[205,50],[50,187],[187,205],[201,200],[200,18],[18,201],[91,106],[106,182],[182,91],[90,91],[91,181],[181,90],[85,84],[84,17],[17,85],[206,203],[203,36],[36,206],[148,171],[171,140],[140,148],[92,40],[40,39],[39,92],[193,189],[189,244],[244,193],[159,158],[158,28],[28,159],[247,246],[246,161],[161,247],[236,3],[3,196],[196,236],[54,68],[68,104],[104,54],[193,168],[168,8],[8,193],[117,228],[228,31],[31,117],[189,193],[193,55],[55,189],[98,97],[97,99],[99,98],[126,47],[47,100],[100,126],[166,79],[79,218],[218,166],[155,154],[154,26],[26,155],[209,49],[49,131],[131,209],[135,136],[136,150],[150,135],[47,126],[126,217],[217,47],[223,52],[52,53],[53,223],[45,51],[51,134],[134,45],[211,170],[170,140],[140,211],[67,69],[69,108],[108,67],[43,106],[106,91],[91,43],[230,119],[119,120],[120,230],[226,130],[130,247],[247,226],[63,53],[53,52],[52,63],[238,20],[20,242],[242,238],[46,70],[70,156],[156,46],[78,62],[62,96],[96,78],[46,53],[53,63],[63,46],[143,34],[34,227],[227,143],[123,117],[117,111],[111,123],[44,125],[125,19],[19,44],[236,134],[134,51],[51,236],[216,206],[206,205],[205,216],[154,153],[153,22],[22,154],[39,37],[37,167],[167,39],[200,201],[201,208],[208,200],[36,142],[142,100],[100,36],[57,212],[212,202],[202,57],[20,60],[60,99],[99,20],[28,158],[158,157],[157,28],[35,226],[226,113],[113,35],[160,159],[159,27],[27,160],[204,202],[202,210],[210,204],[113,225],[225,46],[46,113],[43,202],[202,204],[204,43],[62,76],[76,77],[77,62],[137,123],[123,116],[116,137],[41,38],[38,72],[72,41],[203,129],[129,142],[142,203],[64,98],[98,240],[240,64],[49,102],[102,64],[64,49],[41,73],[73,74],[74,41],[212,216],[216,207],[207,212],[42,74],[74,184],[184,42],[169,170],[170,211],[211,169],[170,149],[149,176],[176,170],[105,66],[66,69],[69,105],[122,6],[6,168],[168,122],[123,147],[147,187],[187,123],[96,77],[77,90],[90,96],[65,55],[55,107],[107,65],[89,90],[90,180],[180,89],[101,100],[100,120],[120,101],[63,105],[105,104],[104,63],[93,137],[137,227],[227,93],[15,86],[86,85],[85,15],[129,102],[102,49],[49,129],[14,87],[87,86],[86,14],[55,8],[8,9],[9,55],[100,47],[47,121],[121,100],[145,23],[23,22],[22,145],[88,89],[89,179],[179,88],[6,122],[122,196],[196,6],[88,95],[95,96],[96,88],[138,172],[172,136],[136,138],[215,58],[58,172],[172,215],[115,48],[48,219],[219,115],[42,80],[80,81],[81,42],[195,3],[3,51],[51,195],[43,146],[146,61],[61,43],[171,175],[175,199],[199,171],[81,82],[82,38],[38,81],[53,46],[46,225],[225,53],[144,163],[163,110],[110,144],[52,65],[65,66],[66,52],[229,228],[228,117],[117,229],[34,127],[127,234],[234,34],[107,108],[108,69],[69,107],[109,108],[108,151],[151,109],[48,64],[64,235],[235,48],[62,78],[78,191],[191,62],[129,209],[209,126],[126,129],[111,35],[35,143],[143,111],[117,123],[123,50],[50,117],[222,65],[65,52],[52,222],[19,125],[125,141],[141,19],[221,55],[55,65],[65,221],[3,195],[195,197],[197,3],[25,7],[7,33],[33,25],[220,237],[237,44],[44,220],[70,71],[71,139],[139,70],[122,193],[193,245],[245,122],[247,130],[130,33],[33,247],[71,21],[21,162],[162,71],[170,169],[169,150],[150,170],[188,174],[174,196],[196,188],[216,186],[186,92],[92,216],[2,97],[97,167],[167,2],[141,125],[125,241],[241,141],[164,167],[167,37],[37,164],[72,38],[38,12],[12,72],[38,82],[82,13],[13,38],[63,68],[68,71],[71,63],[226,35],[35,111],[111,226],[101,50],[50,205],[205,101],[206,92],[92,165],[165,206],[209,198],[198,217],[217,209],[165,167],[167,97],[97,165],[220,115],[115,218],[218,220],[133,112],[112,243],[243,133],[239,238],[238,241],[241,239],[214,135],[135,169],[169,214],[190,173],[173,133],[133,190],[171,208],[208,32],[32,171],[125,44],[44,237],[237,125],[86,87],[87,178],[178,86],[85,86],[86,179],[179,85],[84,85],[85,180],[180,84],[83,84],[84,181],[181,83],[201,83],[83,182],[182,201],[137,93],[93,132],[132,137],[76,62],[62,183],[183,76],[61,76],[76,184],[184,61],[57,61],[61,185],[185,57],[212,57],[57,186],[186,212],[214,207],[207,187],[187,214],[34,143],[143,156],[156,34],[79,239],[239,237],[237,79],[123,137],[137,177],[177,123],[44,1],[1,4],[4,44],[201,194],[194,32],[32,201],[64,102],[102,129],[129,64],[213,215],[215,138],[138,213],[59,166],[166,219],[219,59],[242,99],[99,97],[97,242],[2,94],[94,141],[141,2],[75,59],[59,235],[235,75],[24,110],[110,228],[228,24],[25,130],[130,226],[226,25],[23,24],[24,229],[229,23],[22,23],[23,230],[230,22],[26,22],[22,231],[231,26],[112,26],[26,232],[232,112],[189,190],[190,243],[243,189],[221,56],[56,190],[190,221],[28,56],[56,221],[221,28],[27,28],[28,222],[222,27],[29,27],[27,223],[223,29],[30,29],[29,224],[224,30],[247,30],[30,225],[225,247],[238,79],[79,20],[20,238],[166,59],[59,75],[75,166],[60,75],[75,240],[240,60],[147,177],[177,215],[215,147],[20,79],[79,166],[166,20],[187,147],[147,213],[213,187],[112,233],[233,244],[244,112],[233,128],[128,245],[245,233],[128,114],[114,188],[188,128],[114,217],[217,174],[174,114],[131,115],[115,220],[220,131],[217,198],[198,236],[236,217],[198,131],[131,134],[134,198],[177,132],[132,58],[58,177],[143,35],[35,124],[124,143],[110,163],[163,7],[7,110],[228,110],[110,25],[25,228],[356,389],[389,368],[368,356],[11,302],[302,267],[267,11],[452,350],[350,349],[349,452],[302,303],[303,269],[269,302],[357,343],[343,277],[277,357],[452,453],[453,357],[357,452],[333,332],[332,297],[297,333],[175,152],[152,377],[377,175],[347,348],[348,330],[330,347],[303,304],[304,270],[270,303],[9,336],[336,337],[337,9],[278,279],[279,360],[360,278],[418,262],[262,431],[431,418],[304,408],[408,409],[409,304],[310,415],[415,407],[407,310],[270,409],[409,410],[410,270],[450,348],[348,347],[347,450],[422,430],[430,434],[434,422],[313,314],[314,17],[17,313],[306,307],[307,375],[375,306],[387,388],[388,260],[260,387],[286,414],[414,398],[398,286],[335,406],[406,418],[418,335],[364,367],[367,416],[416,364],[423,358],[358,327],[327,423],[251,284],[284,298],[298,251],[281,5],[5,4],[4,281],[373,374],[374,253],[253,373],[307,320],[320,321],[321,307],[425,427],[427,411],[411,425],[421,313],[313,18],[18,421],[321,405],[405,406],[406,321],[320,404],[404,405],[405,320],[315,16],[16,17],[17,315],[426,425],[425,266],[266,426],[377,400],[400,369],[369,377],[322,391],[391,269],[269,322],[417,465],[465,464],[464,417],[386,257],[257,258],[258,386],[466,260],[260,388],[388,466],[456,399],[399,419],[419,456],[284,332],[332,333],[333,284],[417,285],[285,8],[8,417],[346,340],[340,261],[261,346],[413,441],[441,285],[285,413],[327,460],[460,328],[328,327],[355,371],[371,329],[329,355],[392,439],[439,438],[438,392],[382,341],[341,256],[256,382],[429,420],[420,360],[360,429],[364,394],[394,379],[379,364],[277,343],[343,437],[437,277],[443,444],[444,283],[283,443],[275,440],[440,363],[363,275],[431,262],[262,369],[369,431],[297,338],[338,337],[337,297],[273,375],[375,321],[321,273],[450,451],[451,349],[349,450],[446,342],[342,467],[467,446],[293,334],[334,282],[282,293],[458,461],[461,462],[462,458],[276,353],[353,383],[383,276],[308,324],[324,325],[325,308],[276,300],[300,293],[293,276],[372,345],[345,447],[447,372],[352,345],[345,340],[340,352],[274,1],[1,19],[19,274],[456,248],[248,281],[281,456],[436,427],[427,425],[425,436],[381,256],[256,252],[252,381],[269,391],[391,393],[393,269],[200,199],[199,428],[428,200],[266,330],[330,329],[329,266],[287,273],[273,422],[422,287],[250,462],[462,328],[328,250],[258,286],[286,384],[384,258],[265,353],[353,342],[342,265],[387,259],[259,257],[257,387],[424,431],[431,430],[430,424],[342,353],[353,276],[276,342],[273,335],[335,424],[424,273],[292,325],[325,307],[307,292],[366,447],[447,345],[345,366],[271,303],[303,302],[302,271],[423,266],[266,371],[371,423],[294,455],[455,460],[460,294],[279,278],[278,294],[294,279],[271,272],[272,304],[304,271],[432,434],[434,427],[427,432],[272,407],[407,408],[408,272],[394,430],[430,431],[431,394],[395,369],[369,400],[400,395],[334,333],[333,299],[299,334],[351,417],[417,168],[168,351],[352,280],[280,411],[411,352],[325,319],[319,320],[320,325],[295,296],[296,336],[336,295],[319,403],[403,404],[404,319],[330,348],[348,349],[349,330],[293,298],[298,333],[333,293],[323,454],[454,447],[447,323],[15,16],[16,315],[315,15],[358,429],[429,279],[279,358],[14,15],[15,316],[316,14],[285,336],[336,9],[9,285],[329,349],[349,350],[350,329],[374,380],[380,252],[252,374],[318,402],[402,403],[403,318],[6,197],[197,419],[419,6],[318,319],[319,325],[325,318],[367,364],[364,365],[365,367],[435,367],[367,397],[397,435],[344,438],[438,439],[439,344],[272,271],[271,311],[311,272],[195,5],[5,281],[281,195],[273,287],[287,291],[291,273],[396,428],[428,199],[199,396],[311,271],[271,268],[268,311],[283,444],[444,445],[445,283],[373,254],[254,339],[339,373],[282,334],[334,296],[296,282],[449,347],[347,346],[346,449],[264,447],[447,454],[454,264],[336,296],[296,299],[299,336],[338,10],[10,151],[151,338],[278,439],[439,455],[455,278],[292,407],[407,415],[415,292],[358,371],[371,355],[355,358],[340,345],[345,372],[372,340],[346,347],[347,280],[280,346],[442,443],[443,282],[282,442],[19,94],[94,370],[370,19],[441,442],[442,295],[295,441],[248,419],[419,197],[197,248],[263,255],[255,359],[359,263],[440,275],[275,274],[274,440],[300,383],[383,368],[368,300],[351,412],[412,465],[465,351],[263,467],[467,466],[466,263],[301,368],[368,389],[389,301],[395,378],[378,379],[379,395],[412,351],[351,419],[419,412],[436,426],[426,322],[322,436],[2,164],[164,393],[393,2],[370,462],[462,461],[461,370],[164,0],[0,267],[267,164],[302,11],[11,12],[12,302],[268,12],[12,13],[13,268],[293,300],[300,301],[301,293],[446,261],[261,340],[340,446],[330,266],[266,425],[425,330],[426,423],[423,391],[391,426],[429,355],[355,437],[437,429],[391,327],[327,326],[326,391],[440,457],[457,438],[438,440],[341,382],[382,362],[362,341],[459,457],[457,461],[461,459],[434,430],[430,394],[394,434],[414,463],[463,362],[362,414],[396,369],[369,262],[262,396],[354,461],[461,457],[457,354],[316,403],[403,402],[402,316],[315,404],[404,403],[403,315],[314,405],[405,404],[404,314],[313,406],[406,405],[405,313],[421,418],[418,406],[406,421],[366,401],[401,361],[361,366],[306,408],[408,407],[407,306],[291,409],[409,408],[408,291],[287,410],[410,409],[409,287],[432,436],[436,410],[410,432],[434,416],[416,411],[411,434],[264,368],[368,383],[383,264],[309,438],[438,457],[457,309],[352,376],[376,401],[401,352],[274,275],[275,4],[4,274],[421,428],[428,262],[262,421],[294,327],[327,358],[358,294],[433,416],[416,367],[367,433],[289,455],[455,439],[439,289],[462,370],[370,326],[326,462],[2,326],[326,370],[370,2],[305,460],[460,455],[455,305],[254,449],[449,448],[448,254],[255,261],[261,446],[446,255],[253,450],[450,449],[449,253],[252,451],[451,450],[450,252],[256,452],[452,451],[451,256],[341,453],[453,452],[452,341],[413,464],[464,463],[463,413],[441,413],[413,414],[414,441],[258,442],[442,441],[441,258],[257,443],[443,442],[442,257],[259,444],[444,443],[443,259],[260,445],[445,444],[444,260],[467,342],[342,445],[445,467],[459,458],[458,250],[250,459],[289,392],[392,290],[290,289],[290,328],[328,460],[460,290],[376,433],[433,435],[435,376],[250,290],[290,392],[392,250],[411,416],[416,433],[433,411],[341,463],[463,464],[464,341],[453,464],[464,465],[465,453],[357,465],[465,412],[412,357],[343,412],[412,399],[399,343],[360,363],[363,440],[440,360],[437,399],[399,456],[456,437],[420,456],[456,363],[363,420],[401,435],[435,288],[288,401],[372,383],[383,353],[353,372],[339,255],[255,249],[249,339],[448,261],[261,255],[255,448],[133,243],[243,190],[190,133],[133,155],[155,112],[112,133],[33,246],[246,247],[247,33],[33,130],[130,25],[25,33],[398,384],[384,286],[286,398],[362,398],[398,414],[414,362],[362,463],[463,341],[341,362],[263,359],[359,467],[467,263],[263,249],[249,255],[255,263],[466,467],[467,260],[260,466],[75,60],[60,166],[166,75],[238,239],[239,79],[79,238],[162,127],[127,139],[139,162],[72,11],[11,37],[37,72],[121,232],[232,120],[120,121],[73,72],[72,39],[39,73],[114,128],[128,47],[47,114],[233,232],[232,128],[128,233],[103,104],[104,67],[67,103],[152,175],[175,148],[148,152],[119,118],[118,101],[101,119],[74,73],[73,40],[40,74],[107,9],[9,108],[108,107],[49,48],[48,131],[131,49],[32,194],[194,211],[211,32],[184,74],[74,185],[185,184],[191,80],[80,183],[183,191],[185,40],[40,186],[186,185],[119,230],[230,118],[118,119],[210,202],[202,214],[214,210],[84,83],[83,17],[17,84],[77,76],[76,146],[146,77],[161,160],[160,30],[30,161],[190,56],[56,173],[173,190],[182,106],[106,194],[194,182],[138,135],[135,192],[192,138],[129,203],[203,98],[98,129],[54,21],[21,68],[68,54],[5,51],[51,4],[4,5],[145,144],[144,23],[23,145],[90,77],[77,91],[91,90],[207,205],[205,187],[187,207],[83,201],[201,18],[18,83],[181,91],[91,182],[182,181],[180,90],[90,181],[181,180],[16,85],[85,17],[17,16],[205,206],[206,36],[36,205],[176,148],[148,140],[140,176],[165,92],[92,39],[39,165],[245,193],[193,244],[244,245],[27,159],[159,28],[28,27],[30,247],[247,161],[161,30],[174,236],[236,196],[196,174],[103,54],[54,104],[104,103],[55,193],[193,8],[8,55],[111,117],[117,31],[31,111],[221,189],[189,55],[55,221],[240,98],[98,99],[99,240],[142,126],[126,100],[100,142],[219,166],[166,218],[218,219],[112,155],[155,26],[26,112],[198,209],[209,131],[131,198],[169,135],[135,150],[150,169],[114,47],[47,217],[217,114],[224,223],[223,53],[53,224],[220,45],[45,134],[134,220],[32,211],[211,140],[140,32],[109,67],[67,108],[108,109],[146,43],[43,91],[91,146],[231,230],[230,120],[120,231],[113,226],[226,247],[247,113],[105,63],[63,52],[52,105],[241,238],[238,242],[242,241],[124,46],[46,156],[156,124],[95,78],[78,96],[96,95],[70,46],[46,63],[63,70],[116,143],[143,227],[227,116],[116,123],[123,111],[111,116],[1,44],[44,19],[19,1],[3,236],[236,51],[51,3],[207,216],[216,205],[205,207],[26,154],[154,22],[22,26],[165,39],[39,167],[167,165],[199,200],[200,208],[208,199],[101,36],[36,100],[100,101],[43,57],[57,202],[202,43],[242,20],[20,99],[99,242],[56,28],[28,157],[157,56],[124,35],[35,113],[113,124],[29,160],[160,27],[27,29],[211,204],[204,210],[210,211],[124,113],[113,46],[46,124],[106,43],[43,204],[204,106],[96,62],[62,77],[77,96],[227,137],[137,116],[116,227],[73,41],[41,72],[72,73],[36,203],[203,142],[142,36],[235,64],[64,240],[240,235],[48,49],[49,64],[64,48],[42,41],[41,74],[74,42],[214,212],[212,207],[207,214],[183,42],[42,184],[184,183],[210,169],[169,211],[211,210],[140,170],[170,176],[176,140],[104,105],[105,69],[69,104],[193,122],[122,168],[168,193],[50,123],[123,187],[187,50],[89,96],[96,90],[90,89],[66,65],[65,107],[107,66],[179,89],[89,180],[180,179],[119,101],[101,120],[120,119],[68,63],[63,104],[104,68],[234,93],[93,227],[227,234],[16,15],[15,85],[85,16],[209,129],[129,49],[49,209],[15,14],[14,86],[86,15],[107,55],[55,9],[9,107],[120,100],[100,121],[121,120],[153,145],[145,22],[22,153],[178,88],[88,179],[179,178],[197,6],[6,196],[196,197],[89,88],[88,96],[96,89],[135,138],[138,136],[136,135],[138,215],[215,172],[172,138],[218,115],[115,219],[219,218],[41,42],[42,81],[81,41],[5,195],[195,51],[51,5],[57,43],[43,61],[61,57],[208,171],[171,199],[199,208],[41,81],[81,38],[38,41],[224,53],[53,225],[225,224],[24,144],[144,110],[110,24],[105,52],[52,66],[66,105],[118,229],[229,117],[117,118],[227,34],[34,234],[234,227],[66,107],[107,69],[69,66],[10,109],[109,151],[151,10],[219,48],[48,235],[235,219],[183,62],[62,191],[191,183],[142,129],[129,126],[126,142],[116,111],[111,143],[143,116],[118,117],[117,50],[50,118],[223,222],[222,52],[52,223],[94,19],[19,141],[141,94],[222,221],[221,65],[65,222],[196,3],[3,197],[197,196],[45,220],[220,44],[44,45],[156,70],[70,139],[139,156],[188,122],[122,245],[245,188],[139,71],[71,162],[162,139],[149,170],[170,150],[150,149],[122,188],[188,196],[196,122],[206,216],[216,92],[92,206],[164,2],[2,167],[167,164],[242,141],[141,241],[241,242],[0,164],[164,37],[37,0],[11,72],[72,12],[12,11],[12,38],[38,13],[13,12],[70,63],[63,71],[71,70],[31,226],[226,111],[111,31],[36,101],[101,205],[205,36],[203,206],[206,165],[165,203],[126,209],[209,217],[217,126],[98,165],[165,97],[97,98],[237,220],[220,218],[218,237],[237,239],[239,241],[241,237],[210,214],[214,169],[169,210],[140,171],[171,32],[32,140],[241,125],[125,237],[237,241],[179,86],[86,178],[178,179],[180,85],[85,179],[179,180],[181,84],[84,180],[180,181],[182,83],[83,181],[181,182],[194,201],[201,182],[182,194],[177,137],[137,132],[132,177],[184,76],[76,183],[183,184],[185,61],[61,184],[184,185],[186,57],[57,185],[185,186],[216,212],[212,186],[186,216],[192,214],[214,187],[187,192],[139,34],[34,156],[156,139],[218,79],[79,237],[237,218],[147,123],[123,177],[177,147],[45,44],[44,4],[4,45],[208,201],[201,32],[32,208],[98,64],[64,129],[129,98],[192,213],[213,138],[138,192],[235,59],[59,219],[219,235],[141,242],[242,97],[97,141],[97,2],[2,141],[141,97],[240,75],[75,235],[235,240],[229,24],[24,228],[228,229],[31,25],[25,226],[226,31],[230,23],[23,229],[229,230],[231,22],[22,230],[230,231],[232,26],[26,231],[231,232],[233,112],[112,232],[232,233],[244,189],[189,243],[243,244],[189,221],[221,190],[190,189],[222,28],[28,221],[221,222],[223,27],[27,222],[222,223],[224,29],[29,223],[223,224],[225,30],[30,224],[224,225],[113,247],[247,225],[225,113],[99,60],[60,240],[240,99],[213,147],[147,215],[215,213],[60,20],[20,166],[166,60],[192,187],[187,213],[213,192],[243,112],[112,244],[244,243],[244,233],[233,245],[245,244],[245,128],[128,188],[188,245],[188,114],[114,174],[174,188],[134,131],[131,220],[220,134],[174,217],[217,236],[236,174],[236,198],[198,134],[134,236],[215,177],[177,58],[58,215],[156,143],[143,124],[124,156],[25,110],[110,7],[7,25],[31,228],[228,25],[25,31],[264,356],[356,368],[368,264],[0,11],[11,267],[267,0],[451,452],[452,349],[349,451],[267,302],[302,269],[269,267],[350,357],[357,277],[277,350],[350,452],[452,357],[357,350],[299,333],[333,297],[297,299],[396,175],[175,377],[377,396],[280,347],[347,330],[330,280],[269,303],[303,270],[270,269],[151,9],[9,337],[337,151],[344,278],[278,360],[360,344],[424,418],[418,431],[431,424],[270,304],[304,409],[409,270],[272,310],[310,407],[407,272],[322,270],[270,410],[410,322],[449,450],[450,347],[347,449],[432,422],[422,434],[434,432],[18,313],[313,17],[17,18],[291,306],[306,375],[375,291],[259,387],[387,260],[260,259],[424,335],[335,418],[418,424],[434,364],[364,416],[416,434],[391,423],[423,327],[327,391],[301,251],[251,298],[298,301],[275,281],[281,4],[4,275],[254,373],[373,253],[253,254],[375,307],[307,321],[321,375],[280,425],[425,411],[411,280],[200,421],[421,18],[18,200],[335,321],[321,406],[406,335],[321,320],[320,405],[405,321],[314,315],[315,17],[17,314],[423,426],[426,266],[266,423],[396,377],[377,369],[369,396],[270,322],[322,269],[269,270],[413,417],[417,464],[464,413],[385,386],[386,258],[258,385],[248,456],[456,419],[419,248],[298,284],[284,333],[333,298],[168,417],[417,8],[8,168],[448,346],[346,261],[261,448],[417,413],[413,285],[285,417],[326,327],[327,328],[328,326],[277,355],[355,329],[329,277],[309,392],[392,438],[438,309],[381,382],[382,256],[256,381],[279,429],[429,360],[360,279],[365,364],[364,379],[379,365],[355,277],[277,437],[437,355],[282,443],[443,283],[283,282],[281,275],[275,363],[363,281],[395,431],[431,369],[369,395],[299,297],[297,337],[337,299],[335,273],[273,321],[321,335],[348,450],[450,349],[349,348],[359,446],[446,467],[467,359],[283,293],[293,282],[282,283],[250,458],[458,462],[462,250],[300,276],[276,383],[383,300],[292,308],[308,325],[325,292],[283,276],[276,293],[293,283],[264,372],[372,447],[447,264],[346,352],[352,340],[340,346],[354,274],[274,19],[19,354],[363,456],[456,281],[281,363],[426,436],[436,425],[425,426],[380,381],[381,252],[252,380],[267,269],[269,393],[393,267],[421,200],[200,428],[428,421],[371,266],[266,329],[329,371],[432,287],[287,422],[422,432],[290,250],[250,328],[328,290],[385,258],[258,384],[384,385],[446,265],[265,342],[342,446],[386,387],[387,257],[257,386],[422,424],[424,430],[430,422],[445,342],[342,276],[276,445],[422,273],[273,424],[424,422],[306,292],[292,307],[307,306],[352,366],[366,345],[345,352],[268,271],[271,302],[302,268],[358,423],[423,371],[371,358],[327,294],[294,460],[460,327],[331,279],[279,294],[294,331],[303,271],[271,304],[304,303],[436,432],[432,427],[427,436],[304,272],[272,408],[408,304],[395,394],[394,431],[431,395],[378,395],[395,400],[400,378],[296,334],[334,299],[299,296],[6,351],[351,168],[168,6],[376,352],[352,411],[411,376],[307,325],[325,320],[320,307],[285,295],[295,336],[336,285],[320,319],[319,404],[404,320],[329,330],[330,349],[349,329],[334,293],[293,333],[333,334],[366,323],[323,447],[447,366],[316,15],[15,315],[315,316],[331,358],[358,279],[279,331],[317,14],[14,316],[316,317],[8,285],[285,9],[9,8],[277,329],[329,350],[350,277],[253,374],[374,252],[252,253],[319,318],[318,403],[403,319],[351,6],[6,419],[419,351],[324,318],[318,325],[325,324],[397,367],[367,365],[365,397],[288,435],[435,397],[397,288],[278,344],[344,439],[439,278],[310,272],[272,311],[311,310],[248,195],[195,281],[281,248],[375,273],[273,291],[291,375],[175,396],[396,199],[199,175],[312,311],[311,268],[268,312],[276,283],[283,445],[445,276],[390,373],[373,339],[339,390],[295,282],[282,296],[296,295],[448,449],[449,346],[346,448],[356,264],[264,454],[454,356],[337,336],[336,299],[299,337],[337,338],[338,151],[151,337],[294,278],[278,455],[455,294],[308,292],[292,415],[415,308],[429,358],[358,355],[355,429],[265,340],[340,372],[372,265],[352,346],[346,280],[280,352],[295,442],[442,282],[282,295],[354,19],[19,370],[370,354],[285,441],[441,295],[295,285],[195,248],[248,197],[197,195],[457,440],[440,274],[274,457],[301,300],[300,368],[368,301],[417,351],[351,465],[465,417],[251,301],[301,389],[389,251],[394,395],[395,379],[379,394],[399,412],[412,419],[419,399],[410,436],[436,322],[322,410],[326,2],[2,393],[393,326],[354,370],[370,461],[461,354],[393,164],[164,267],[267,393],[268,302],[302,12],[12,268],[312,268],[268,13],[13,312],[298,293],[293,301],[301,298],[265,446],[446,340],[340,265],[280,330],[330,425],[425,280],[322,426],[426,391],[391,322],[420,429],[429,437],[437,420],[393,391],[391,326],[326,393],[344,440],[440,438],[438,344],[458,459],[459,461],[461,458],[364,434],[434,394],[394,364],[428,396],[396,262],[262,428],[274,354],[354,457],[457,274],[317,316],[316,402],[402,317],[316,315],[315,403],[403,316],[315,314],[314,404],[404,315],[314,313],[313,405],[405,314],[313,421],[421,406],[406,313],[323,366],[366,361],[361,323],[292,306],[306,407],[407,292],[306,291],[291,408],[408,306],[291,287],[287,409],[409,291],[287,432],[432,410],[410,287],[427,434],[434,411],[411,427],[372,264],[264,383],[383,372],[459,309],[309,457],[457,459],[366,352],[352,401],[401,366],[1,274],[274,4],[4,1],[418,421],[421,262],[262,418],[331,294],[294,358],[358,331],[435,433],[433,367],[367,435],[392,289],[289,439],[439,392],[328,462],[462,326],[326,328],[94,2],[2,370],[370,94],[289,305],[305,455],[455,289],[339,254],[254,448],[448,339],[359,255],[255,446],[446,359],[254,253],[253,449],[449,254],[253,252],[252,450],[450,253],[252,256],[256,451],[451,252],[256,341],[341,452],[452,256],[414,413],[413,463],[463,414],[286,441],[441,414],[414,286],[286,258],[258,441],[441,286],[258,257],[257,442],[442,258],[257,259],[259,443],[443,257],[259,260],[260,444],[444,259],[260,467],[467,445],[445,260],[309,459],[459,250],[250,309],[305,289],[289,290],[290,305],[305,290],[290,460],[460,305],[401,376],[376,435],[435,401],[309,250],[250,392],[392,309],[376,411],[411,433],[433,376],[453,341],[341,464],[464,453],[357,453],[453,465],[465,357],[343,357],[357,412],[412,343],[437,343],[343,399],[399,437],[344,360],[360,440],[440,344],[420,437],[437,456],[456,420],[360,420],[420,363],[363,360],[361,401],[401,288],[288,361],[265,372],[372,353],[353,265],[390,339],[339,249],[249,390],[339,448],[448,255],[255,339]);function L8(i){i.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]}}var An=class extends vi{constructor(i,c){super(new ao(i,c),"image_in","norm_rect",!1),this.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]},this.outputFacialTransformationMatrixes=this.outputFaceBlendshapes=!1,Ue(i=this.h=new XS,0,1,c=new Un),this.A=new kS,Ue(this.h,0,3,this.A),this.u=new Qy,Ue(this.h,0,2,this.u),Rc(this.u,4,1),Oe(this.u,2,.5),Oe(this.A,2,.5),Oe(this.h,4,.5)}get baseOptions(){return xt(this.h,Un,1)}set baseOptions(i){Ue(this.h,0,1,i)}o(i){return"numFaces"in i&&Rc(this.u,4,i.numFaces??1),"minFaceDetectionConfidence"in i&&Oe(this.u,2,i.minFaceDetectionConfidence??.5),"minTrackingConfidence"in i&&Oe(this.h,4,i.minTrackingConfidence??.5),"minFacePresenceConfidence"in i&&Oe(this.A,2,i.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in i&&(this.outputFaceBlendshapes=!!i.outputFaceBlendshapes),"outputFacialTransformationMatrixes"in i&&(this.outputFacialTransformationMatrixes=!!i.outputFacialTransformationMatrixes),this.l(i)}F(i,c){return L8(this),lo(this,i,c),this.j}G(i,c,f){return L8(this),Xo(this,i,f,c),this.j}m(){var i=new yi;Tn(i,"image_in"),Tn(i,"norm_rect"),Nt(i,"face_landmarks");const c=new pi;Vo(c,CA,this.h);const f=new kl;mi(f,2,"mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"),gn(f,"IMAGE:image_in"),gn(f,"NORM_RECT:norm_rect"),yt(f,"NORM_LANDMARKS:face_landmarks"),f.o(c),lu(i,f),this.g.attachProtoVectorListener("face_landmarks",(h,y)=>{for(const w of h)h=fm(w),this.j.faceLandmarks.push(Zy(h));ge(this,y)}),this.g.attachEmptyPacketListener("face_landmarks",h=>{ge(this,h)}),this.outputFaceBlendshapes&&(Nt(i,"blendshapes"),yt(f,"BLENDSHAPES:blendshapes"),this.g.attachProtoVectorListener("blendshapes",(h,y)=>{if(this.outputFaceBlendshapes)for(const w of h)h=Yy(w),this.j.faceBlendshapes.push(Vw(h.g()??[]));ge(this,y)}),this.g.attachEmptyPacketListener("blendshapes",h=>{ge(this,h)})),this.outputFacialTransformationMatrixes&&(Nt(i,"face_geometry"),yt(f,"FACE_GEOMETRY:face_geometry"),this.g.attachProtoVectorListener("face_geometry",(h,y)=>{if(this.outputFacialTransformationMatrixes)for(const w of h)(h=xt(h=MA(w),vA,2))&&this.j.facialTransformationMatrixes.push({rows:nu(h,1)??0??0,columns:nu(h,2)??0??0,data:Wf(h,3,jo,If()).slice()??[]});ge(this,y)}),this.g.attachEmptyPacketListener("face_geometry",h=>{ge(this,h)})),i=i.g(),this.setGraph(new Uint8Array(i),!0)}};An.prototype.detectForVideo=An.prototype.G,An.prototype.detect=An.prototype.F,An.prototype.setOptions=An.prototype.o,An.createFromModelPath=function(i,c){return bt(An,i,{baseOptions:{modelAssetPath:c}})},An.createFromModelBuffer=function(i,c){return bt(An,i,{baseOptions:{modelAssetBuffer:c}})},An.createFromOptions=function(i,c){return bt(An,i,c)},An.FACE_LANDMARKS_LIPS=Kw,An.FACE_LANDMARKS_LEFT_EYE=Fw,An.FACE_LANDMARKS_LEFT_EYEBROW=$w,An.FACE_LANDMARKS_LEFT_IRIS=N8,An.FACE_LANDMARKS_RIGHT_EYE=Iw,An.FACE_LANDMARKS_RIGHT_EYEBROW=Ww,An.FACE_LANDMARKS_RIGHT_IRIS=U8,An.FACE_LANDMARKS_FACE_OVAL=Pw,An.FACE_LANDMARKS_CONTOURS=B8,An.FACE_LANDMARKS_TESSELATION=H8;var eb=no([0,1],[1,2],[2,3],[3,4],[0,5],[5,6],[6,7],[7,8],[5,9],[9,10],[10,11],[11,12],[9,13],[13,14],[14,15],[15,16],[13,17],[0,17],[17,18],[18,19],[19,20]);function G8(i){i.gestures=[],i.landmarks=[],i.worldLandmarks=[],i.handedness=[]}function R8(i){return i.gestures.length===0?{gestures:[],landmarks:[],worldLandmarks:[],handedness:[],handednesses:[]}:{gestures:i.gestures,landmarks:i.landmarks,worldLandmarks:i.worldLandmarks,handedness:i.handedness,handednesses:i.handedness}}function j8(i,c=!0){const f=[];for(const y of i){var h=Yy(y);i=[];for(const w of h.g())h=c&&nu(w,1)!=null?nu(w,1)??0:-1,i.push({score:qn(w,2)??0,index:h,categoryName:qa(mn(w,3))??""??"",displayName:qa(mn(w,4))??""??""});f.push(i)}return f}var wi=class extends vi{constructor(i,c){super(new ao(i,c),"image_in","norm_rect",!1),this.gestures=[],this.landmarks=[],this.worldLandmarks=[],this.handedness=[],Ue(i=this.j=new JS,0,1,c=new Un),this.u=new Uw,Ue(this.j,0,2,this.u),this.D=new Nw,Ue(this.u,0,3,this.D),this.A=new ZS,Ue(this.u,0,2,this.A),this.h=new DA,Ue(this.j,0,3,this.h),Oe(this.A,2,.5),Oe(this.u,4,.5),Oe(this.D,2,.5)}get baseOptions(){return xt(this.j,Un,1)}set baseOptions(i){Ue(this.j,0,1,i)}o(i){var y,w,E,A;if(Rc(this.A,3,i.numHands??1),"minHandDetectionConfidence"in i&&Oe(this.A,2,i.minHandDetectionConfidence??.5),"minTrackingConfidence"in i&&Oe(this.u,4,i.minTrackingConfidence??.5),"minHandPresenceConfidence"in i&&Oe(this.D,2,i.minHandPresenceConfidence??.5),i.cannedGesturesClassifierOptions){var c=new p0,f=c,h=qw(i.cannedGesturesClassifierOptions,(y=xt(this.h,p0,3))==null?void 0:y.l());Ue(f,0,2,h),Ue(this.h,0,3,c)}else i.cannedGesturesClassifierOptions===void 0&&((w=xt(this.h,p0,3))==null||w.g());return i.customGesturesClassifierOptions?(Ue(f=c=new p0,0,2,h=qw(i.customGesturesClassifierOptions,(E=xt(this.h,p0,4))==null?void 0:E.l())),Ue(this.h,0,4,c)):i.customGesturesClassifierOptions===void 0&&((A=xt(this.h,p0,4))==null||A.g()),this.l(i)}Ha(i,c){return G8(this),lo(this,i,c),R8(this)}Ia(i,c,f){return G8(this),Xo(this,i,f,c),R8(this)}m(){var i=new yi;Tn(i,"image_in"),Tn(i,"norm_rect"),Nt(i,"hand_gestures"),Nt(i,"hand_landmarks"),Nt(i,"world_hand_landmarks"),Nt(i,"handedness");const c=new pi;Vo(c,OA,this.j);const f=new kl;mi(f,2,"mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"),gn(f,"IMAGE:image_in"),gn(f,"NORM_RECT:norm_rect"),yt(f,"HAND_GESTURES:hand_gestures"),yt(f,"LANDMARKS:hand_landmarks"),yt(f,"WORLD_LANDMARKS:world_hand_landmarks"),yt(f,"HANDEDNESS:handedness"),f.o(c),lu(i,f),this.g.attachProtoVectorListener("hand_landmarks",(h,y)=>{for(const w of h){h=fm(w);const E=[];for(const A of Gc(h,HS,1))E.push({x:qn(A,1)??0,y:qn(A,2)??0,z:qn(A,3)??0,visibility:qn(A,4)??0});this.landmarks.push(E)}ge(this,y)}),this.g.attachEmptyPacketListener("hand_landmarks",h=>{ge(this,h)}),this.g.attachProtoVectorListener("world_hand_landmarks",(h,y)=>{for(const w of h){h=g0(w);const E=[];for(const A of Gc(h,BS,1))E.push({x:qn(A,1)??0,y:qn(A,2)??0,z:qn(A,3)??0,visibility:qn(A,4)??0});this.worldLandmarks.push(E)}ge(this,y)}),this.g.attachEmptyPacketListener("world_hand_landmarks",h=>{ge(this,h)}),this.g.attachProtoVectorListener("hand_gestures",(h,y)=>{this.gestures.push(...j8(h,!1)),ge(this,y)}),this.g.attachEmptyPacketListener("hand_gestures",h=>{ge(this,h)}),this.g.attachProtoVectorListener("handedness",(h,y)=>{this.handedness.push(...j8(h)),ge(this,y)}),this.g.attachEmptyPacketListener("handedness",h=>{ge(this,h)}),i=i.g(),this.setGraph(new Uint8Array(i),!0)}};function q8(i){return{landmarks:i.landmarks,worldLandmarks:i.worldLandmarks,handednesses:i.handedness,handedness:i.handedness}}wi.prototype.recognizeForVideo=wi.prototype.Ia,wi.prototype.recognize=wi.prototype.Ha,wi.prototype.setOptions=wi.prototype.o,wi.createFromModelPath=function(i,c){return bt(wi,i,{baseOptions:{modelAssetPath:c}})},wi.createFromModelBuffer=function(i,c){return bt(wi,i,{baseOptions:{modelAssetBuffer:c}})},wi.createFromOptions=function(i,c){return bt(wi,i,c)},wi.HAND_CONNECTIONS=eb;var bi=class extends vi{constructor(i,c){super(new ao(i,c),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.handedness=[],Ue(i=this.h=new Uw,0,1,c=new Un),this.u=new Nw,Ue(this.h,0,3,this.u),this.j=new ZS,Ue(this.h,0,2,this.j),Rc(this.j,3,1),Oe(this.j,2,.5),Oe(this.u,2,.5),Oe(this.h,4,.5)}get baseOptions(){return xt(this.h,Un,1)}set baseOptions(i){Ue(this.h,0,1,i)}o(i){return"numHands"in i&&Rc(this.j,3,i.numHands??1),"minHandDetectionConfidence"in i&&Oe(this.j,2,i.minHandDetectionConfidence??.5),"minTrackingConfidence"in i&&Oe(this.h,4,i.minTrackingConfidence??.5),"minHandPresenceConfidence"in i&&Oe(this.u,2,i.minHandPresenceConfidence??.5),this.l(i)}F(i,c){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],lo(this,i,c),q8(this)}G(i,c,f){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],Xo(this,i,f,c),q8(this)}m(){var i=new yi;Tn(i,"image_in"),Tn(i,"norm_rect"),Nt(i,"hand_landmarks"),Nt(i,"world_hand_landmarks"),Nt(i,"handedness");const c=new pi;Vo(c,zA,this.h);const f=new kl;mi(f,2,"mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"),gn(f,"IMAGE:image_in"),gn(f,"NORM_RECT:norm_rect"),yt(f,"LANDMARKS:hand_landmarks"),yt(f,"WORLD_LANDMARKS:world_hand_landmarks"),yt(f,"HANDEDNESS:handedness"),f.o(c),lu(i,f),this.g.attachProtoVectorListener("hand_landmarks",(h,y)=>{for(const w of h)h=fm(w),this.landmarks.push(Zy(h));ge(this,y)}),this.g.attachEmptyPacketListener("hand_landmarks",h=>{ge(this,h)}),this.g.attachProtoVectorListener("world_hand_landmarks",(h,y)=>{for(const w of h)h=g0(w),this.worldLandmarks.push(dm(h));ge(this,y)}),this.g.attachEmptyPacketListener("world_hand_landmarks",h=>{ge(this,h)}),this.g.attachProtoVectorListener("handedness",(h,y)=>{var w=this.handedness,E=w.push;const A=[];for(const M of h){h=Yy(M);const G=[];for(const U of h.g())G.push({score:qn(U,2)??0,index:nu(U,1)??0??-1,categoryName:qa(mn(U,3))??""??"",displayName:qa(mn(U,4))??""??""});A.push(G)}E.call(w,...A),ge(this,y)}),this.g.attachEmptyPacketListener("handedness",h=>{ge(this,h)}),i=i.g(),this.setGraph(new Uint8Array(i),!0)}};bi.prototype.detectForVideo=bi.prototype.G,bi.prototype.detect=bi.prototype.F,bi.prototype.setOptions=bi.prototype.o,bi.createFromModelPath=function(i,c){return bt(bi,i,{baseOptions:{modelAssetPath:c}})},bi.createFromModelBuffer=function(i,c){return bt(bi,i,{baseOptions:{modelAssetBuffer:c}})},bi.createFromOptions=function(i,c){return bt(bi,i,c)},bi.HAND_CONNECTIONS=eb;var V8=no([0,1],[1,2],[2,3],[3,7],[0,4],[4,5],[5,6],[6,8],[9,10],[11,12],[11,13],[13,15],[15,17],[15,19],[15,21],[17,19],[12,14],[14,16],[16,18],[16,20],[16,22],[18,20],[11,23],[12,24],[23,24],[23,25],[24,26],[25,27],[26,28],[27,29],[28,30],[29,31],[30,32],[27,31],[28,32]);function Y8(i){i.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]}}function k8(i){try{if(!i.D)return i.h;i.D(i.h)}finally{Fy(i)}}function Iy(i,c){i=fm(i),c.push(Zy(i))}var pn=class extends vi{constructor(i,c){super(new ao(i,c),"input_frames_image",null,!1),this.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]},this.outputPoseSegmentationMasks=this.outputFaceBlendshapes=!1,Ue(i=this.j=new PS,0,1,c=new Un),this.I=new Nw,Ue(this.j,0,2,this.I),this.W=new NA,Ue(this.j,0,3,this.W),this.u=new Qy,Ue(this.j,0,4,this.u),this.O=new kS,Ue(this.j,0,5,this.O),this.A=new IS,Ue(this.j,0,6,this.A),this.M=new WS,Ue(this.j,0,7,this.M),Oe(this.u,2,.5),Oe(this.u,3,.3),Oe(this.O,2,.5),Oe(this.A,2,.5),Oe(this.A,3,.3),Oe(this.M,2,.5),Oe(this.I,2,.5)}get baseOptions(){return xt(this.j,Un,1)}set baseOptions(i){Ue(this.j,0,1,i)}o(i){return"minFaceDetectionConfidence"in i&&Oe(this.u,2,i.minFaceDetectionConfidence??.5),"minFaceSuppressionThreshold"in i&&Oe(this.u,3,i.minFaceSuppressionThreshold??.3),"minFacePresenceConfidence"in i&&Oe(this.O,2,i.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in i&&(this.outputFaceBlendshapes=!!i.outputFaceBlendshapes),"minPoseDetectionConfidence"in i&&Oe(this.A,2,i.minPoseDetectionConfidence??.5),"minPoseSuppressionThreshold"in i&&Oe(this.A,3,i.minPoseSuppressionThreshold??.3),"minPosePresenceConfidence"in i&&Oe(this.M,2,i.minPosePresenceConfidence??.5),"outputPoseSegmentationMasks"in i&&(this.outputPoseSegmentationMasks=!!i.outputPoseSegmentationMasks),"minHandLandmarksConfidence"in i&&Oe(this.I,2,i.minHandLandmarksConfidence??.5),this.l(i)}F(i,c,f){const h=typeof c!="function"?c:{};return this.D=typeof c=="function"?c:f,Y8(this),lo(this,i,h),k8(this)}G(i,c,f,h){const y=typeof f!="function"?f:{};return this.D=typeof f=="function"?f:h,Y8(this),Xo(this,i,y,c),k8(this)}m(){var i=new yi;Tn(i,"input_frames_image"),Nt(i,"pose_landmarks"),Nt(i,"pose_world_landmarks"),Nt(i,"face_landmarks"),Nt(i,"left_hand_landmarks"),Nt(i,"left_hand_world_landmarks"),Nt(i,"right_hand_landmarks"),Nt(i,"right_hand_world_landmarks");const c=new pi,f=new pS;mi(f,1,"type.googleapis.com/mediapipe.tasks.vision.holistic_landmarker.proto.HolisticLandmarkerGraphOptions"),function(y,w){if(w!=null)if(Array.isArray(w))Yt(y,2,_y(w,0,um));else{if(!(typeof w=="string"||w instanceof Go||Rv(w)))throw Error("invalid value in Any.value field: "+w+" expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");tr(y,2,Yv(w,!1),Qf())}}(f,this.j.g());const h=new kl;mi(h,2,"mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"),sw(h,8,pS,f),gn(h,"IMAGE:input_frames_image"),yt(h,"POSE_LANDMARKS:pose_landmarks"),yt(h,"POSE_WORLD_LANDMARKS:pose_world_landmarks"),yt(h,"FACE_LANDMARKS:face_landmarks"),yt(h,"LEFT_HAND_LANDMARKS:left_hand_landmarks"),yt(h,"LEFT_HAND_WORLD_LANDMARKS:left_hand_world_landmarks"),yt(h,"RIGHT_HAND_LANDMARKS:right_hand_landmarks"),yt(h,"RIGHT_HAND_WORLD_LANDMARKS:right_hand_world_landmarks"),h.o(c),lu(i,h),Ky(this,i),this.g.attachProtoListener("pose_landmarks",(y,w)=>{Iy(y,this.h.poseLandmarks),ge(this,w)}),this.g.attachEmptyPacketListener("pose_landmarks",y=>{ge(this,y)}),this.g.attachProtoListener("pose_world_landmarks",(y,w)=>{var E=this.h.poseWorldLandmarks;y=g0(y),E.push(dm(y)),ge(this,w)}),this.g.attachEmptyPacketListener("pose_world_landmarks",y=>{ge(this,y)}),this.outputPoseSegmentationMasks&&(yt(h,"POSE_SEGMENTATION_MASK:pose_segmentation_mask"),y0(this,"pose_segmentation_mask"),this.g.Z("pose_segmentation_mask",(y,w)=>{this.h.poseSegmentationMasks=[w0(this,y,!0,!this.D)],ge(this,w)}),this.g.attachEmptyPacketListener("pose_segmentation_mask",y=>{this.h.poseSegmentationMasks=[],ge(this,y)})),this.g.attachProtoListener("face_landmarks",(y,w)=>{Iy(y,this.h.faceLandmarks),ge(this,w)}),this.g.attachEmptyPacketListener("face_landmarks",y=>{ge(this,y)}),this.outputFaceBlendshapes&&(Nt(i,"extra_blendshapes"),yt(h,"FACE_BLENDSHAPES:extra_blendshapes"),this.g.attachProtoListener("extra_blendshapes",(y,w)=>{var E=this.h.faceBlendshapes;this.outputFaceBlendshapes&&(y=Yy(y),E.push(Vw(y.g()??[]))),ge(this,w)}),this.g.attachEmptyPacketListener("extra_blendshapes",y=>{ge(this,y)})),this.g.attachProtoListener("left_hand_landmarks",(y,w)=>{Iy(y,this.h.leftHandLandmarks),ge(this,w)}),this.g.attachEmptyPacketListener("left_hand_landmarks",y=>{ge(this,y)}),this.g.attachProtoListener("left_hand_world_landmarks",(y,w)=>{var E=this.h.leftHandWorldLandmarks;y=g0(y),E.push(dm(y)),ge(this,w)}),this.g.attachEmptyPacketListener("left_hand_world_landmarks",y=>{ge(this,y)}),this.g.attachProtoListener("right_hand_landmarks",(y,w)=>{Iy(y,this.h.rightHandLandmarks),ge(this,w)}),this.g.attachEmptyPacketListener("right_hand_landmarks",y=>{ge(this,y)}),this.g.attachProtoListener("right_hand_world_landmarks",(y,w)=>{var E=this.h.rightHandWorldLandmarks;y=g0(y),E.push(dm(y)),ge(this,w)}),this.g.attachEmptyPacketListener("right_hand_world_landmarks",y=>{ge(this,y)}),i=i.g(),this.setGraph(new Uint8Array(i),!0)}};pn.prototype.detectForVideo=pn.prototype.G,pn.prototype.detect=pn.prototype.F,pn.prototype.setOptions=pn.prototype.o,pn.createFromModelPath=function(i,c){return bt(pn,i,{baseOptions:{modelAssetPath:c}})},pn.createFromModelBuffer=function(i,c){return bt(pn,i,{baseOptions:{modelAssetBuffer:c}})},pn.createFromOptions=function(i,c){return bt(pn,i,c)},pn.HAND_CONNECTIONS=eb,pn.POSE_CONNECTIONS=V8,pn.FACE_LANDMARKS_LIPS=Kw,pn.FACE_LANDMARKS_LEFT_EYE=Fw,pn.FACE_LANDMARKS_LEFT_EYEBROW=$w,pn.FACE_LANDMARKS_LEFT_IRIS=N8,pn.FACE_LANDMARKS_RIGHT_EYE=Iw,pn.FACE_LANDMARKS_RIGHT_EYEBROW=Ww,pn.FACE_LANDMARKS_RIGHT_IRIS=U8,pn.FACE_LANDMARKS_FACE_OVAL=Pw,pn.FACE_LANDMARKS_CONTOURS=B8,pn.FACE_LANDMARKS_TESSELATION=H8;var uu=class extends vi{constructor(i,c){super(new ao(i,c),"input_image","norm_rect",!0),this.j={classifications:[]},Ue(i=this.h=new e8,0,1,c=new Un)}get baseOptions(){return xt(this.h,Un,1)}set baseOptions(i){Ue(this.h,0,1,i)}o(i){return Ue(this.h,0,2,qw(i,xt(this.h,Dw,2))),this.l(i)}sa(i,c){return this.j={classifications:[]},lo(this,i,c),this.j}ta(i,c,f){return this.j={classifications:[]},Xo(this,i,f,c),this.j}m(){var i=new yi;Tn(i,"input_image"),Tn(i,"norm_rect"),Nt(i,"classifications");const c=new pi;Vo(c,UA,this.h);const f=new kl;mi(f,2,"mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"),gn(f,"IMAGE:input_image"),gn(f,"NORM_RECT:norm_rect"),yt(f,"CLASSIFICATIONS:classifications"),f.o(c),lu(i,f),this.g.attachProtoListener("classifications",(h,y)=>{this.j=jA(SA(h)),ge(this,y)}),this.g.attachEmptyPacketListener("classifications",h=>{ge(this,h)}),i=i.g(),this.setGraph(new Uint8Array(i),!0)}};uu.prototype.classifyForVideo=uu.prototype.ta,uu.prototype.classify=uu.prototype.sa,uu.prototype.setOptions=uu.prototype.o,uu.createFromModelPath=function(i,c){return bt(uu,i,{baseOptions:{modelAssetPath:c}})},uu.createFromModelBuffer=function(i,c){return bt(uu,i,{baseOptions:{modelAssetBuffer:c}})},uu.createFromOptions=function(i,c){return bt(uu,i,c)};var Si=class extends vi{constructor(i,c){super(new ao(i,c),"image_in","norm_rect",!0),this.h=new t8,this.embeddings={embeddings:[]},Ue(i=this.h,0,1,c=new Un)}get baseOptions(){return xt(this.h,Un,1)}set baseOptions(i){Ue(this.h,0,1,i)}o(i){var c=this.h,f=xt(this.h,qS,2);return f=f?f.clone():new qS,i.l2Normalize!==void 0?Yt(f,1,am(i.l2Normalize)):"l2Normalize"in i&&Yt(f,1),i.quantize!==void 0?Yt(f,2,am(i.quantize)):"quantize"in i&&Yt(f,2),Ue(c,0,2,f),this.l(i)}za(i,c){return lo(this,i,c),this.embeddings}Aa(i,c,f){return Xo(this,i,f,c),this.embeddings}m(){var i=new yi;Tn(i,"image_in"),Tn(i,"norm_rect"),Nt(i,"embeddings_out");const c=new pi;Vo(c,BA,this.h);const f=new kl;mi(f,2,"mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"),gn(f,"IMAGE:image_in"),gn(f,"NORM_RECT:norm_rect"),yt(f,"EMBEDDINGS:embeddings_out"),f.o(c),lu(i,f),this.g.attachProtoListener("embeddings_out",(h,y)=>{h=AA(h),this.embeddings=function(w){return{embeddings:Gc(w,TA,1).map(E=>{var G,U;const A={headIndex:nu(E,3)??0??-1,headName:qa(mn(E,4))??""??""};var M=E.v;return B5(M,0|M[Se],GS,iw(E,1))!==void 0?(E=Wf(E=xt(E,GS,iw(E,1),void 0),1,jo,If()),A.floatEmbedding=E.slice()):(M=new Uint8Array(0),A.quantizedEmbedding=((U=(G=xt(E,EA,iw(E,2),void 0))==null?void 0:G.na())==null?void 0:U.h())??M),A}),timestampMs:r8(G5(w))}}(h),ge(this,y)}),this.g.attachEmptyPacketListener("embeddings_out",h=>{ge(this,h)}),i=i.g(),this.setGraph(new Uint8Array(i),!0)}};Si.cosineSimilarity=function(i,c){if(i.floatEmbedding&&c.floatEmbedding)i=h8(i.floatEmbedding,c.floatEmbedding);else{if(!i.quantizedEmbedding||!c.quantizedEmbedding)throw Error("Cannot compute cosine similarity between quantized and float embeddings.");i=h8(d8(i.quantizedEmbedding),d8(c.quantizedEmbedding))}return i},Si.prototype.embedForVideo=Si.prototype.Aa,Si.prototype.embed=Si.prototype.za,Si.prototype.setOptions=Si.prototype.o,Si.createFromModelPath=function(i,c){return bt(Si,i,{baseOptions:{modelAssetPath:c}})},Si.createFromModelBuffer=function(i,c){return bt(Si,i,{baseOptions:{modelAssetBuffer:c}})},Si.createFromOptions=function(i,c){return bt(Si,i,c)};var tb=class{constructor(i,c,f){this.confidenceMasks=i,this.categoryMask=c,this.qualityScores=f}close(){var i,c;(i=this.confidenceMasks)==null||i.forEach(f=>{f.close()}),(c=this.categoryMask)==null||c.close()}};function ZA(i){var f,h;const c=function(y){return Gc(y,kl,1)}(i.ca()).filter(y=>(qa(mn(y,1))??"").includes("mediapipe.tasks.TensorsToSegmentationCalculator"));if(i.u=[],c.length>1)throw Error("The graph has more than one mediapipe.tasks.TensorsToSegmentationCalculator.");c.length===1&&(((h=(f=xt(c[0],pi,7))==null?void 0:f.j())==null?void 0:h.g())??new Map).forEach((y,w)=>{i.u[Number(w)]=qa(mn(y,1))??""})}function X8(i){i.categoryMask=void 0,i.confidenceMasks=void 0,i.qualityScores=void 0}function Q8(i){try{const c=new tb(i.confidenceMasks,i.categoryMask,i.qualityScores);if(!i.j)return c;i.j(c)}finally{Fy(i)}}tb.prototype.close=tb.prototype.close;var Xl=class extends vi{constructor(i,c){super(new ao(i,c),"image_in","norm_rect",!1),this.u=[],this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new Gw,this.A=new n8,Ue(this.h,0,3,this.A),Ue(i=this.h,0,1,c=new Un)}get baseOptions(){return xt(this.h,Un,1)}set baseOptions(i){Ue(this.h,0,1,i)}o(i){return i.displayNamesLocale!==void 0?Yt(this.h,2,im(i.displayNamesLocale)):"displayNamesLocale"in i&&Yt(this.h,2),"outputCategoryMask"in i&&(this.outputCategoryMask=i.outputCategoryMask??!1),"outputConfidenceMasks"in i&&(this.outputConfidenceMasks=i.outputConfidenceMasks??!0),super.l(i)}L(){ZA(this)}segment(i,c,f){const h=typeof c!="function"?c:{};return this.j=typeof c=="function"?c:f,X8(this),lo(this,i,h),Q8(this)}La(i,c,f,h){const y=typeof f!="function"?f:{};return this.j=typeof f=="function"?f:h,X8(this),Xo(this,i,y,c),Q8(this)}Da(){return this.u}m(){var i=new yi;Tn(i,"image_in"),Tn(i,"norm_rect");const c=new pi;Vo(c,i8,this.h);const f=new kl;mi(f,2,"mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"),gn(f,"IMAGE:image_in"),gn(f,"NORM_RECT:norm_rect"),f.o(c),lu(i,f),Ky(this,i),this.outputConfidenceMasks&&(Nt(i,"confidence_masks"),yt(f,"CONFIDENCE_MASKS:confidence_masks"),y0(this,"confidence_masks"),this.g.aa("confidence_masks",(h,y)=>{this.confidenceMasks=h.map(w=>w0(this,w,!0,!this.j)),ge(this,y)}),this.g.attachEmptyPacketListener("confidence_masks",h=>{this.confidenceMasks=[],ge(this,h)})),this.outputCategoryMask&&(Nt(i,"category_mask"),yt(f,"CATEGORY_MASK:category_mask"),y0(this,"category_mask"),this.g.Z("category_mask",(h,y)=>{this.categoryMask=w0(this,h,!1,!this.j),ge(this,y)}),this.g.attachEmptyPacketListener("category_mask",h=>{this.categoryMask=void 0,ge(this,h)})),Nt(i,"quality_scores"),yt(f,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",(h,y)=>{this.qualityScores=h,ge(this,y)}),this.g.attachEmptyPacketListener("quality_scores",h=>{this.categoryMask=void 0,ge(this,h)}),i=i.g(),this.setGraph(new Uint8Array(i),!0)}};Xl.prototype.getLabels=Xl.prototype.Da,Xl.prototype.segmentForVideo=Xl.prototype.La,Xl.prototype.segment=Xl.prototype.segment,Xl.prototype.setOptions=Xl.prototype.o,Xl.createFromModelPath=function(i,c){return bt(Xl,i,{baseOptions:{modelAssetPath:c}})},Xl.createFromModelBuffer=function(i,c){return bt(Xl,i,{baseOptions:{modelAssetBuffer:c}})},Xl.createFromOptions=function(i,c){return bt(Xl,i,c)};var nb=class{constructor(i,c,f){this.confidenceMasks=i,this.categoryMask=c,this.qualityScores=f}close(){var i,c;(i=this.confidenceMasks)==null||i.forEach(f=>{f.close()}),(c=this.categoryMask)==null||c.close()}};nb.prototype.close=nb.prototype.close;var Qo=class extends vi{constructor(i,c){super(new ao(i,c),"image_in","norm_rect_in",!1),this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new Gw,this.u=new n8,Ue(this.h,0,3,this.u),Ue(i=this.h,0,1,c=new Un)}get baseOptions(){return xt(this.h,Un,1)}set baseOptions(i){Ue(this.h,0,1,i)}o(i){return"outputCategoryMask"in i&&(this.outputCategoryMask=i.outputCategoryMask??!1),"outputConfidenceMasks"in i&&(this.outputConfidenceMasks=i.outputConfidenceMasks??!0),super.l(i)}segment(i,c,f,h){const y=typeof f!="function"?f:{};if(this.j=typeof f=="function"?f:h,this.qualityScores=this.categoryMask=this.confidenceMasks=void 0,f=this.C+1,h=new o8,c.keypoint&&c.scribble)throw Error("Cannot provide both keypoint and scribble.");if(c.keypoint){var w=new Rw;tr(w,3,am(!0),!1),tr(w,1,nm(c.keypoint.x),0),tr(w,2,nm(c.keypoint.y),0),om(h,1,jw,w)}else{if(!c.scribble)throw Error("Must provide either a keypoint or a scribble.");{const A=new LA;for(w of c.scribble)tr(c=new Rw,3,am(!0),!1),tr(c,1,nm(w.x),0),tr(c,2,nm(w.y),0),sw(A,1,Rw,c);om(h,2,jw,A)}}this.g.addProtoToStream(h.g(),"mediapipe.tasks.vision.interactive_segmenter.proto.RegionOfInterest","roi_in",f),lo(this,i,y);e:{try{const A=new nb(this.confidenceMasks,this.categoryMask,this.qualityScores);if(!this.j){var E=A;break e}this.j(A)}finally{Fy(this)}E=void 0}return E}m(){var i=new yi;Tn(i,"image_in"),Tn(i,"roi_in"),Tn(i,"norm_rect_in");const c=new pi;Vo(c,i8,this.h);const f=new kl;mi(f,2,"mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraphV2"),gn(f,"IMAGE:image_in"),gn(f,"ROI:roi_in"),gn(f,"NORM_RECT:norm_rect_in"),f.o(c),lu(i,f),Ky(this,i),this.outputConfidenceMasks&&(Nt(i,"confidence_masks"),yt(f,"CONFIDENCE_MASKS:confidence_masks"),y0(this,"confidence_masks"),this.g.aa("confidence_masks",(h,y)=>{this.confidenceMasks=h.map(w=>w0(this,w,!0,!this.j)),ge(this,y)}),this.g.attachEmptyPacketListener("confidence_masks",h=>{this.confidenceMasks=[],ge(this,h)})),this.outputCategoryMask&&(Nt(i,"category_mask"),yt(f,"CATEGORY_MASK:category_mask"),y0(this,"category_mask"),this.g.Z("category_mask",(h,y)=>{this.categoryMask=w0(this,h,!1,!this.j),ge(this,y)}),this.g.attachEmptyPacketListener("category_mask",h=>{this.categoryMask=void 0,ge(this,h)})),Nt(i,"quality_scores"),yt(f,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",(h,y)=>{this.qualityScores=h,ge(this,y)}),this.g.attachEmptyPacketListener("quality_scores",h=>{this.categoryMask=void 0,ge(this,h)}),i=i.g(),this.setGraph(new Uint8Array(i),!0)}};Qo.prototype.segment=Qo.prototype.segment,Qo.prototype.setOptions=Qo.prototype.o,Qo.createFromModelPath=function(i,c){return bt(Qo,i,{baseOptions:{modelAssetPath:c}})},Qo.createFromModelBuffer=function(i,c){return bt(Qo,i,{baseOptions:{modelAssetBuffer:c}})},Qo.createFromOptions=function(i,c){return bt(Qo,i,c)};var ou=class extends vi{constructor(i,c){super(new ao(i,c),"input_frame_gpu","norm_rect",!1),this.j={detections:[]},Ue(i=this.h=new c8,0,1,c=new Un)}get baseOptions(){return xt(this.h,Un,1)}set baseOptions(i){Ue(this.h,0,1,i)}o(i){return i.displayNamesLocale!==void 0?Yt(this.h,2,im(i.displayNamesLocale)):"displayNamesLocale"in i&&Yt(this.h,2),i.maxResults!==void 0?Rc(this.h,3,i.maxResults):"maxResults"in i&&Yt(this.h,3),i.scoreThreshold!==void 0?Oe(this.h,4,i.scoreThreshold):"scoreThreshold"in i&&Yt(this.h,4),i.categoryAllowlist!==void 0?xy(this.h,5,i.categoryAllowlist):"categoryAllowlist"in i&&Yt(this.h,5),i.categoryDenylist!==void 0?xy(this.h,6,i.categoryDenylist):"categoryDenylist"in i&&Yt(this.h,6),this.l(i)}F(i,c){return this.j={detections:[]},lo(this,i,c),this.j}G(i,c,f){return this.j={detections:[]},Xo(this,i,f,c),this.j}m(){var i=new yi;Tn(i,"input_frame_gpu"),Tn(i,"norm_rect"),Nt(i,"detections");const c=new pi;Vo(c,GA,this.h);const f=new kl;mi(f,2,"mediapipe.tasks.vision.ObjectDetectorGraph"),gn(f,"IMAGE:input_frame_gpu"),gn(f,"NORM_RECT:norm_rect"),yt(f,"DETECTIONS:detections"),f.o(c),lu(i,f),this.g.attachProtoVectorListener("detections",(h,y)=>{for(const w of h)h=US(w),this.j.detections.push(f8(h));ge(this,y)}),this.g.attachEmptyPacketListener("detections",h=>{ge(this,h)}),i=i.g(),this.setGraph(new Uint8Array(i),!0)}};ou.prototype.detectForVideo=ou.prototype.G,ou.prototype.detect=ou.prototype.F,ou.prototype.setOptions=ou.prototype.o,ou.createFromModelPath=async function(i,c){return bt(ou,i,{baseOptions:{modelAssetPath:c}})},ou.createFromModelBuffer=function(i,c){return bt(ou,i,{baseOptions:{modelAssetBuffer:c}})},ou.createFromOptions=function(i,c){return bt(ou,i,c)};var ab=class{constructor(i,c,f){this.landmarks=i,this.worldLandmarks=c,this.segmentationMasks=f}close(){var i;(i=this.segmentationMasks)==null||i.forEach(c=>{c.close()})}};function Z8(i){i.landmarks=[],i.worldLandmarks=[],i.segmentationMasks=void 0}function J8(i){try{const c=new ab(i.landmarks,i.worldLandmarks,i.segmentationMasks);if(!i.u)return c;i.u(c)}finally{Fy(i)}}ab.prototype.close=ab.prototype.close;var Ei=class extends vi{constructor(i,c){super(new ao(i,c),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.outputSegmentationMasks=!1,Ue(i=this.h=new s8,0,1,c=new Un),this.A=new WS,Ue(this.h,0,3,this.A),this.j=new IS,Ue(this.h,0,2,this.j),Rc(this.j,4,1),Oe(this.j,2,.5),Oe(this.A,2,.5),Oe(this.h,4,.5)}get baseOptions(){return xt(this.h,Un,1)}set baseOptions(i){Ue(this.h,0,1,i)}o(i){return"numPoses"in i&&Rc(this.j,4,i.numPoses??1),"minPoseDetectionConfidence"in i&&Oe(this.j,2,i.minPoseDetectionConfidence??.5),"minTrackingConfidence"in i&&Oe(this.h,4,i.minTrackingConfidence??.5),"minPosePresenceConfidence"in i&&Oe(this.A,2,i.minPosePresenceConfidence??.5),"outputSegmentationMasks"in i&&(this.outputSegmentationMasks=i.outputSegmentationMasks??!1),this.l(i)}F(i,c,f){const h=typeof c!="function"?c:{};return this.u=typeof c=="function"?c:f,Z8(this),lo(this,i,h),J8(this)}G(i,c,f,h){const y=typeof f!="function"?f:{};return this.u=typeof f=="function"?f:h,Z8(this),Xo(this,i,y,c),J8(this)}m(){var i=new yi;Tn(i,"image_in"),Tn(i,"norm_rect"),Nt(i,"normalized_landmarks"),Nt(i,"world_landmarks"),Nt(i,"segmentation_masks");const c=new pi;Vo(c,RA,this.h);const f=new kl;mi(f,2,"mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"),gn(f,"IMAGE:image_in"),gn(f,"NORM_RECT:norm_rect"),yt(f,"NORM_LANDMARKS:normalized_landmarks"),yt(f,"WORLD_LANDMARKS:world_landmarks"),f.o(c),lu(i,f),Ky(this,i),this.g.attachProtoVectorListener("normalized_landmarks",(h,y)=>{this.landmarks=[];for(const w of h)h=fm(w),this.landmarks.push(Zy(h));ge(this,y)}),this.g.attachEmptyPacketListener("normalized_landmarks",h=>{this.landmarks=[],ge(this,h)}),this.g.attachProtoVectorListener("world_landmarks",(h,y)=>{this.worldLandmarks=[];for(const w of h)h=g0(w),this.worldLandmarks.push(dm(h));ge(this,y)}),this.g.attachEmptyPacketListener("world_landmarks",h=>{this.worldLandmarks=[],ge(this,h)}),this.outputSegmentationMasks&&(yt(f,"SEGMENTATION_MASK:segmentation_masks"),y0(this,"segmentation_masks"),this.g.aa("segmentation_masks",(h,y)=>{this.segmentationMasks=h.map(w=>w0(this,w,!0,!this.u)),ge(this,y)}),this.g.attachEmptyPacketListener("segmentation_masks",h=>{this.segmentationMasks=[],ge(this,h)})),i=i.g(),this.setGraph(new Uint8Array(i),!0)}};Ei.prototype.detectForVideo=Ei.prototype.G,Ei.prototype.detect=Ei.prototype.F,Ei.prototype.setOptions=Ei.prototype.o,Ei.createFromModelPath=function(i,c){return bt(Ei,i,{baseOptions:{modelAssetPath:c}})},Ei.createFromModelBuffer=function(i,c){return bt(Ei,i,{baseOptions:{modelAssetBuffer:c}})},Ei.createFromOptions=function(i,c){return bt(Ei,i,c)},Ei.POSE_CONNECTIONS=V8;const Wy="https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/latest/face_landmarker.task",JA="https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@latest/wasm",KA=()=>{const i=j.useRef(null),[c,f]=j.useState(!1),[h,y]=j.useState("Initializing..."),[w,E]=j.useState(0),[A,M]=j.useState(!1);j.useEffect(()=>{"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").then(q=>{console.log("ServiceWorker registered:",q)}).catch(q=>{console.log("ServiceWorker registration failed:",q)})},[]);const G=async()=>"caches"in window?await(await caches.open("mediapipe-models-v1")).match(Wy)!==void 0:!1,U=async()=>{try{const q=await fetch(Wy),k=q.headers.get("content-length"),ne=k?parseInt(k,10):0;if(!q.body)throw new Error("No response body");const oe=q.body.getReader();let ue=0;const P=[];for(;;){const{done:ye,value:be}=await oe.read();if(ye)break;if(P.push(be),ue+=be.length,ne){const Te=Math.round(ue/ne*100);E(Te),y(`Downloading model... ${Te}%`)}}return"caches"in window&&await(await caches.open("mediapipe-models-v1")).put(Wy,new Response(new Blob(P),{headers:{"Content-Type":"application/octet-stream"}})),!0}catch(q){return console.error("Failed to preload model:",q),!1}};return j.useEffect(()=>{(async()=>{try{y("Checking cached models..."),await G()?y("Using cached model..."):(y("Model not cached. Downloading..."),await U()),y("Loading MediaPipe WASM...");const ne=await ld.forVisionTasks(JA);y("Creating face landmarker...");const oe=await An.createFromOptions(ne,{baseOptions:{modelAssetPath:Wy,delegate:"GPU"},runningMode:"VIDEO",outputFaceBlendshapes:!0,numFaces:2});i.current=oe,f(!0),y("Model loaded successfully ✅")}catch(k){console.error("Model init error:",k),y(`Error: ${k==null?void 0:k.message}`),(k==null?void 0:k.name)==="NotAllowedError"&&M(!0)}})()},[]),{faceLandmarkerRef:i,isModelLoaded:c,statusMessage:h,setStatusMessage:y,loadingProgress:w,permissionDenied:A,clearCache:async()=>{"caches"in window&&(await caches.delete("mediapipe-models-v1"),y("Cache cleared. Please refresh to re-download models."))}}},FA=()=>{const[i,c]=j.useState(0),f=j.useRef({lastTime:0,frames:0,fps:0}),h=j.useCallback(()=>{const y=performance.now(),w=f.current;if(w.frames++,y-w.lastTime>=1e3){const E=Math.round(w.frames*1e3/(y-w.lastTime));c(E),w.frames=0,w.lastTime=y}},[]);return{fps:i,updateFPS:h}},$A=()=>{const i=j.useRef({value:100,isLookingAway:!1}),c=j.useCallback((w,E,A,M)=>{if(!w||!A||!E)return;const G=w.getContext("2d");if(!G)return;const{width:U,height:N}=w;if(G.clearRect(0,0,U,N),G.drawImage(E,0,0,U,N),M){G.fillStyle="#00FF00";for(const q of A)G.fillRect(q.x*U-.5,q.y*N-.5,1,1)}},[]),f=j.useCallback(w=>{const E=i.current.value/100,A=100,M=20,G=20,U=40;w.fillStyle="rgba(0, 0, 0, 0.3)",w.fillRect(G,U,M,A),w.fillStyle=`rgba(${Math.floor(255*(1-E))}, ${Math.floor(255*E)}, 0, 0.8)`;const N=A*E;w.fillRect(G,U+A-N,M,N),w.fillStyle="#FFFFFF",w.fillRect(G,U+A*(1-E),M,2)},[]),h=j.useCallback((w,E,A,M,G,U,N)=>{if(c(w,E,A,M),G&&U&&N){const q=w.getContext("2d");q&&f(q)}},[c,f]),y=j.useCallback((w,E)=>{const A=w.getContext("2d");A&&(A.clearRect(0,0,w.width,w.height),A.drawImage(E,0,0,w.width,w.height))},[]);return{drawLandmarks:c,drawEngagementBar:f,drawWithEngagementBar:h,clearCanvas:y,engagementRef:i}},IA=50,WA=()=>{const[i,c]=j.useState(100),[f,h]=j.useState(!1),y=j.useRef(0),w=j.useCallback((E,A,M)=>{if(!M||E.length<468)return;const G=E[33],U=E[263],N=E[1];if(!G||!U||!N)return;const q=(G.x+U.x)*.5,k=(G.y+U.y)*.5,ne=q-A.x,oe=k-A.y,ue=Math.sqrt(ne*ne+oe*oe),P=Math.abs(N.y-A.noseY)*100,ye=Math.abs(N.x-A.noseX)*100,be=Math.max(0,100-(ue*200+P+ye)),Te=be<IA,nt=performance.now();return nt-y.current>100&&(c(be),h(Te),y.current=nt),{engagement:be,isLookingAway:Te}},[]);return{engagement:i,isLookingAway:f,analyzeGaze:w,setEngagement:c,setIsLookingAway:h}},PA=.05,e_=()=>{const[i,c]=j.useState(!1),[f,h]=j.useState(!1),y=j.useCallback((A,M)=>Math.sqrt(Math.pow(A.x-M.x,2)+Math.pow(A.y-M.y,2)),[]),w=j.useCallback((A,M)=>{if(!A||!M)return 0;const G=[1,33,263,61,291,10,152];let U=0,N=0;const q=M[33],k=M[263],ne=A[33],oe=A[263];if(!q||!k||!ne||!oe)return 0;const ue=y(q,k),P=y(ne,oe);if(ue===0||P===0)return 0;for(const be of G){const Te=M[be],nt=A[be];if(Te&&nt){const Be=q.x+(nt.x-ne.x)*ue/P,Qe=q.y+(nt.y-ne.y)*ue/P;U+=y(Te,{x:Be,y:Qe}),N++}}return N===0?0:U/N},[y]),E=j.useCallback((A,M,G,U)=>{if(!A.faceLandmarks||A.faceLandmarks.length===0)return M?(U("Reference face not detected."),h(!0),c(!1)):h(!1),null;if(M&&G){let N=null,q=0;for(const k of A.faceLandmarks)w(k,G)<PA&&(N=k,q++);return q===1?(c(!1),h(!1),U("Reference face tracked."),N):q>1?(c(!0),h(!1),U("Multiple matching faces detected. Tracking suspended."),null):(c(!1),h(!0),U("Reference face not detected."),null)}else{A.faceLandmarks.length>1?(c(!0),U("Multiple faces detected. Set reference for single face tracking.")):(c(!1),U("No reference set. Detecting first face."));const N=A.faceLandmarks[0];return!N||N.length<468?null:N}},[w]);return{multipleFacesDetected:i,referenceFaceNotDetected:f,analyzeFace:E,setMultipleFacesDetected:c,setReferenceFaceNotDetected:h}},t_=1e3,n_=(i,c)=>{const[f,h]=j.useState(!1),[y,w]=j.useState("face_detected"),{incrementGazeViolation:E}=H6(),{multipleFacesDetected:A,referenceFaceNotDetected:M,isLookingAway:G}=i;j.useEffect(()=>{let q;return(G||A||M)&&c?q=setTimeout(()=>{h(!0),G?(w("looking_away"),E("looking_away")):A?(w("multiple_faces"),E("multiple_faces")):M&&(w("no_face_detected"),E("no_face_detected"))},t_):(h(!1),w("face_detected")),()=>{clearTimeout(q)}},[G,A,M,c,E]);const U=j.useCallback(()=>A?"multiple_faces":M?"no_face_detected":G?"looking_away":"face_detected",[A,M,G]),N=j.useCallback(()=>{h(!1),w("face_detected")},[]);return{showGazeWarningModal:f,faceDetectionState:y,getWarningType:U,closeWarningModal:N,setShowGazeWarningModal:h,setFaceDetectionState:w}};class Bn extends Error{constructor(c,f,h=!1){super(c),this.code=f,this.recoverable=h,this.name="STTError"}}class a_{constructor(c={}){tu(this,"config");tu(this,"mediaRecorder",null);tu(this,"audioChunks",[]);tu(this,"recordingStream",null);tu(this,"autoStopTimeoutId",null);this.config={baseUrl:"http://localhost:8000",provider:"groq",model:"whisper-large-v3-turbo",language:"en",includeTimestamps:!1,temperature:0,...c}}updateConfig(c){this.config={...this.config,...c}}isRecordingSupported(){return!!(navigator.mediaDevices&&typeof navigator.mediaDevices.getUserMedia=="function"&&window.MediaRecorder)}async startRecording(c,f){var h;if(!this.isRecordingSupported())throw new Bn("Audio recording is not supported in this browser","RECORDING_NOT_SUPPORTED",!1);if(this.isRecording())throw new Bn("Recording is already in progress","ALREADY_RECORDING",!0);try{this.recordingStream=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,sampleRate:44100}}),this.audioChunks=[];const y=this.getSupportedMimeType();this.mediaRecorder=new MediaRecorder(this.recordingStream,{mimeType:y}),this.mediaRecorder.ondataavailable=w=>{var E;w.data.size>0&&(this.audioChunks.push(w.data),(E=f==null?void 0:f.onDataAvailable)==null||E.call(f,w.data))},this.mediaRecorder.onstop=()=>{var w;(w=f==null?void 0:f.onStop)==null||w.call(f)},this.mediaRecorder.onerror=w=>{var A;const E=new Bn(`Recording failed: ${w.error}`,"RECORDING_ERROR",!0);(A=f==null?void 0:f.onError)==null||A.call(f,E),this.cleanup()},this.mediaRecorder.start(100),(h=f==null?void 0:f.onStart)==null||h.call(f),c&&c>0&&(this.autoStopTimeoutId=setTimeout(()=>{this.isRecording()&&this.stopRecording()},c*1e3))}catch(y){if(this.cleanup(),y instanceof Error){if(y.name==="NotAllowedError"||y.name==="PermissionDeniedError")throw new Bn("Microphone permission was denied","PERMISSION_DENIED",!1);if(y.name==="NotFoundError")throw new Bn("No microphone found","NO_MICROPHONE",!1)}throw new Bn(`Failed to start recording: ${y instanceof Error?y.message:String(y)}`,"START_RECORDING_FAILED",!0)}}async stopRecording(){if(this.autoStopTimeoutId&&(clearTimeout(this.autoStopTimeoutId),this.autoStopTimeoutId=null),!this.mediaRecorder||!this.isRecording())throw new Bn("No active recording to stop","NO_ACTIVE_RECORDING",!1);return new Promise((c,f)=>{if(!this.mediaRecorder){f(new Bn("MediaRecorder is null","MEDIARECORDER_NULL",!1));return}const h=this.mediaRecorder,y=()=>{try{const w=h.mimeType||"audio/webm",E=new Blob(this.audioChunks,{type:w});this.cleanup(),c(E)}catch(w){f(new Bn(`Failed to create audio blob: ${w instanceof Error?w.message:String(w)}`,"BLOB_CREATION_FAILED",!1))}};h.addEventListener("stop",y,{once:!0}),h.stop()})}async transcribe(c){const{audioBlob:f}=c;if(!f||f.size===0)throw new Bn("Audio blob is empty or invalid","INVALID_AUDIO",!1);try{const h=new FormData,y=new File([f],"recording.wav",{type:f.type||"audio/wav"});if(h.append("file",y),h.append("qna_id",this.config.qnaId||""),!this.config.interviewId)throw new Bn("Interview ID is missing from configuration","MISSING_INTERVIEW_ID",!1);const w=await Is(`${this.config.baseUrl}${Ps.TRANSCRIBE_ANSWER(this.config.interviewId)}`,{method:"POST",headers:{accept:"application/json","X-STT-Provider":this.config.provider||"groq",...this.config.authToken&&{Authorization:`Bearer ${this.config.authToken}`}},body:h},{attempts:1,backoff:"exponential",baseDelay:1e3,maxDelay:3e3,jitter:!0});if(!w.ok){const A=await w.text();let M=`STT request failed: ${w.status} ${w.statusText}`;try{const G=JSON.parse(A);M=G.message||G.error||M}catch{M=A||M}throw new Bn(M,`HTTP_${w.status}`,w.status>=500)}return{transcript:(await w.json()).data.transcribed_text??""}}catch(h){throw h instanceof Bn?h:new Bn(`Transcription failed: ${h instanceof Error?h.message:String(h)}`,"TRANSCRIPTION_FAILED",!0)}}cancelRecording(){this.autoStopTimeoutId&&(clearTimeout(this.autoStopTimeoutId),this.autoStopTimeoutId=null),this.mediaRecorder&&this.isRecording()&&this.mediaRecorder.stop(),this.cleanup()}isRecording(){return this.mediaRecorder!==null&&this.mediaRecorder.state==="recording"}getSupportedMimeType(){const c=["audio/webm","audio/webm;codecs=opus","audio/ogg;codecs=opus","audio/mp4","audio/wav"];for(const f of c)if(MediaRecorder.isTypeSupported(f))return f;return"audio/webm"}getRecordingStream(){return this.recordingStream}cleanup(){this.recordingStream&&(this.recordingStream.getTracks().forEach(c=>c.stop()),this.recordingStream=null),this.mediaRecorder=null,this.audioChunks=[],this.autoStopTimeoutId&&(clearTimeout(this.autoStopTimeoutId),this.autoStopTimeoutId=null)}}const b0=new a_,l_=(i,c,f,h)=>{const y=j.useRef(null);return j.useEffect(()=>{if(!c)return;const w=async()=>{try{const M=await navigator.mediaDevices.getUserMedia({video:{width:{ideal:640},height:{ideal:480},facingMode:"user"}});i.current&&(i.current.srcObject=M,i.current.onloadeddata=()=>{f()})}catch(M){console.error("Camera access error:",M),h("Camera access failed")}},E=y.current,A=i.current;return w(),()=>{E&&cancelAnimationFrame(E),A!=null&&A.srcObject&&A.srcObject.getTracks().forEach(G=>G.stop())}},[c,f]),j.useEffect(()=>{const w=b0.getRecordingStream();if(w&&i.current){i.current.srcObject=w;const E=w.getVideoTracks(),A=w.getAudioTracks(),M=()=>{console.log("Media track ended - permission may have been revoked")};[...E,...A].forEach(G=>{G.addEventListener("ended",M)})}},[]),{animationFrameRef:y}},i_=(i,c,f,h,y,w,E,A,M,G,U,N,q,k,ne)=>{const oe=j.useRef(null),ue=j.useCallback(()=>{var Te;const P=i.current,ye=c.current,be=f.current;if(!P||P.readyState<2||!be||!ye){oe.current=requestAnimationFrame(ue);return}h();try{const nt=performance.now(),Be=be.detectForVideo(P,nt);if(((Te=Be.faceLandmarks)==null?void 0:Te.length)>0){ne(!1);const Qe=y(Be,M,G.current,k);Qe?(w(ye,P,Qe,U,N,q,M),M&&q&&A(Qe,G.current,q)):E(ye,P)}else E(ye,P),M?(ne(!0),k("Reference face not detected.")):ne(!1)}catch(nt){console.error("Face detection error:",nt)}oe.current=requestAnimationFrame(ue)},[i,c,f,h,y,w,E,A,M,G,U,N,q,k,ne]);return{renderLoop:ue,animationFrameRef:oe}},u_=(i,c,f,h)=>{const{referenceSet:y,referenceRef:w,setReferenceData:E}=H6(),A=j.useRef(w),M=j.useCallback(()=>{A.current=w},[w]),G=j.useCallback(()=>{var q;const U=i.current,N=c.current;if(console.log({faceLandmarker:U,video:N}),!(!U||!N))try{const k=performance.now(),ne=U.detectForVideo(N,k);if((q=ne.faceLandmarks)!=null&&q[0]){const oe=ne.faceLandmarks[0],ue=oe[33],P=oe[263],ye=oe[1];ue&&P&&ye&&(A.current={x:(ue.x+P.x)*.5,y:(ue.y+P.y)*.5,noseX:ye.x,noseY:ye.y},E(!0,A.current),f("Reference set. Gaze tracking active."),console.log("Reference set. Gaze tracking active.",A.current),h&&h())}}catch(k){console.error("Set reference error:",k),f("Failed to set reference")}},[i,c,f,E,h]);return{referenceSet:y,referenceRef:A,setReference:G,syncReference:M}},lb=({isOpen:i,onClose:c,children:f,title:h,showCloseButton:y=!0,closeOnOverlayClick:w=!0,closeOnEscape:E=!0,className:A=""})=>{if(j.useEffect(()=>{if(!i||!E)return;const U=N=>{N.key==="Escape"&&c()};return document.addEventListener("keydown",U),()=>document.removeEventListener("keydown",U)},[i,E,c]),j.useEffect(()=>(i?(document.body.style.overflow="hidden",document.body.classList.add("interview-widget-container")):(document.body.style.overflow="unset",document.body.classList.remove("interview-widget-container")),()=>{document.body.style.overflow="unset",document.body.classList.remove("interview-widget-container")}),[i]),!i)return null;const M=U=>{w&&U.target===U.currentTarget&&c()},G=b.jsxs("div",{className:"iw-fixed iw-inset-0 iw-z-50 iw-flex iw-items-center iw-justify-center",children:[b.jsx("div",{className:"iw-fixed iw-inset-0 iw-bg-black iw-bg-opacity-50 iw-transition-opacity",onClick:M}),b.jsxs("div",{className:`iw-relative iw-bg-white iw-rounded-lg iw-shadow-xl iw-max-w-md iw-w-full iw-mx-4 iw-max-h-[90vh] iw-overflow-hidden ${A}`,role:"dialog","aria-modal":"true","aria-labelledby":h?"dialog-title":void 0,children:[(h||y)&&b.jsxs("div",{className:"iw-flex iw-items-center iw-justify-between iw-p-4 iw-border-b iw-border-gray-200",children:[h&&b.jsx("h2",{id:"dialog-title",className:"iw-text-lg iw-font-semibold iw-text-gray-900",children:h}),y&&b.jsx("button",{onClick:c,className:"iw-p-1 iw-text-gray-400 iw-hover:text-gray-600 iw-transition-colors iw-rounded iw-hover:bg-gray-100","aria-label":"Close dialog",children:b.jsx("svg",{className:"iw-w-5 iw-h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),b.jsx("div",{className:"iw-p-4 iw-overflow-y-auto",children:f})]})]});return Av.createPortal(G,document.body)},K8=({children:i,variant:c="primary",size:f="md",fullWidth:h=!1,isLoading:y=!1,disabled:w,className:E="",...A})=>{const M="iw-inline-flex iw-items-center iw-justify-center iw-rounded-md iw-font-medium iw-transition-colors iw-focus:outline-none iw-focus:ring-2 iw-focus:ring-primary-500 iw-focus:ring-offset-2",G={primary:"iw-bg-primary-600 iw-text-white iw-hover:bg-primary-700 iw-border iw-border-transparent",secondary:"iw-bg-primary-100 iw-text-primary-700 iw-hover:bg-primary-200 iw-border iw-border-transparent",outline:"iw-bg-transparent iw-text-primary-700 iw-border iw-border-primary-500 iw-hover:bg-primary-50",text:"iw-bg-transparent iw-text-primary-600 iw-hover:bg-primary-50 iw-border iw-border-transparent",gradient:"iw-text-white iw-border iw-border-transparent iw-bg-gradient-to-r iw-from-purple-500 iw-to-indigo-500 hover:iw-from-purple-600 hover:iw-to-indigo-600"},U={sm:"iw-px-3 iw-py-1.5 iw-text-sm",md:"iw-px-4 iw-py-2.5 iw-text-sm",lg:"iw-px-5 iw-py-3 iw-text-base"},N="iw-disabled:opacity-50 iw-disabled:cursor-not-allowed iw-disabled:pointer-events-none",q=h?"iw-w-full":"";return b.jsxs("button",{className:`${M} ${G[c]} ${U[f]} ${q} ${N} ${E}`,disabled:w||y,...A,children:[y&&b.jsx(Y6,{height:16,width:16,style:{marginRight:"3px"}}),i]})},mm=i=>{const{baseColor:c,borderRadius:f}=Q2(),{loading:h,children:y,...w}=i;return b.jsx(K8,{style:{background:jE(c),borderRadius:f},...w,children:h?b.jsx(Y6,{}):y})};function o_({isOpen:i,onClose:c,warningType:f}){const h=k6[f],y=h.icon,w=()=>{c()};return f==="face_detected"?null:b.jsx(lb,{isOpen:i,onClose:c,children:i&&b.jsx("div",{className:"iw-bg-white iw-border-white iw-border iw-p-0 iw-shadow-lg sm:iw-max-w-md",children:b.jsxs("div",{children:[b.jsx("div",{className:"iw-sr-only",children:h.description}),b.jsxs("div",{className:"iw-px-8 iw-py-8 iw-text-center",children:[b.jsx("div",{className:`iw-mx-auto iw-mb-6 iw-flex iw-h-16 iw-w-16 iw-items-center iw-justify-center iw-rounded-full ${h.iconBg} border ${h.iconBorder}`,children:b.jsx(y,{className:`iw-h-7 iw-w-7 ${h.iconColor}`})}),b.jsx("h1",{className:"iw-text-foreground iw-mb-3 iw-text-2xl iw-font-bold iw-tracking-tight",children:h.title}),b.jsx("h2",{className:"iw-text-gray-500 iw-mb-6 iw-text-base iw-font-medium",children:h.subtitle}),b.jsx("p",{className:"iw-text-neutral-400 iw-mx-auto iw-mb-8 iw-max-w-sm iw-text-sm iw-leading-relaxed",children:h.description}),b.jsx(mm,{onClick:w,className:"iw-w-full iw-bg-gray-800 iw-text-white hover:iw-bg-gray-800",children:h.buttonText})]})]})})})}const F8=j.forwardRef(({className:i="",interviewId:c="",interview_duration:f,showProctoringUI:h=!0,onSetReference:y,isAnswering:w,onProctoringStatusChange:E,showStatusOverlay:A=!1},M)=>{var rr;const{authToken:G}=G6(),U=G?VE(G):null,{borderRadius:N}=Q2(),q=N??18,{proctoring:k}=zv(),ne=!!(k!=null&&k.gazeAnalysisEnabled),[oe,ue]=j.useState(!1),[P,ye]=j.useState((k==null?void 0:k.showLandmarks)??!1),[be,Te]=j.useState(h&&((k==null?void 0:k.showEngagementBar)??!0)),[nt,Be]=j.useState(ne),[Qe,xe]=j.useState(!1),me=j.useRef(null),ce=j.useRef(null),Ut=j.useRef(null),ke=j.useRef(null),He=j.useCallback(async wa=>{const Ko=me.current,sn=Ut.current;if(!Ko||!sn)return;const _n=sn.getContext("2d");_n&&(sn.width=Ko.videoWidth,sn.height=Ko.videoHeight,_n.save(),_n.scale(-1,1),_n.drawImage(Ko,-sn.width,0,sn.width,sn.height),_n.restore(),await new Promise(ol=>sn.toBlob(ol,"image/jpeg")))},[lT,c]);j.useEffect(()=>{let wa;return w&&(xe(!0),wa=setTimeout(()=>xe(!1),1e3)),()=>{wa&&clearTimeout(wa)}},[w]);const{faceLandmarkerRef:Ft,isModelLoaded:$t,statusMessage:V,setStatusMessage:ee,loadingProgress:ie,permissionDenied:ve,clearCache:Ce}=KA(),{fps:Et,updateFPS:st}=FA(),{drawWithEngagementBar:Xe,clearCanvas:Ze,engagementRef:Bt}=$A(),{engagement:en,isLookingAway:Pn,analyzeGaze:Vt,setEngagement:ea,setIsLookingAway:cu}=WA(),{multipleFacesDetected:fe,referenceFaceNotDetected:Ti,analyzeFace:io,setMultipleFacesDetected:Va,setReferenceFaceNotDetected:Ya}=e_(),{referenceSet:dt,referenceRef:Zo,setReference:Re,syncReference:kt}=u_(Ft,me,ee,y),ht={multipleFacesDetected:fe,referenceFaceNotDetected:Ti,isLookingAway:Pn},{showGazeWarningModal:Jo,getWarningType:Ql,closeWarningModal:Vc,setShowGazeWarningModal:Hn,setFaceDetectionState:S0}=n_(ht,ne&&!A);j.useEffect(()=>{if(E){const wa=Ql()||"face_detected";E(wa)}},[fe,Ti,Pn,Ql,E]);const{renderLoop:cr}=i_(me,ce,Ft,st,io,Xe,Ze,Vt,dt,Zo,P,be,ne,ee,Ya);l_(me,$t,cr,ee),j.useEffect(()=>{kt()},[kt]),j.useEffect(()=>{Bt&&Bt.current&&(Bt.current.value=en,Bt.current.isLookingAway=Pn)},[en,Pn,Bt]);const sr=j.useCallback(wa=>{Be(wa),wa||(ea(100),cu(!1))},[ea,cu]),su=j.useCallback(()=>{cu(!1),Va(!1),Ya(!1),S0("face_detected"),Hn(!1),Vc()},[cu,Va,Ya,S0,Hn,Vc]),ym={engagement:en,fps:Et,isLookingAway:Pn,multipleFacesDetected:fe,referenceFaceNotDetected:Ti};return j.useEffect(()=>{const wa=[];return(async()=>{try{const sn=await navigator.mediaDevices.getUserMedia({video:!0,audio:!1});ke.current=sn,me.current&&(me.current.srcObject=sn);const ol=(f??hy)*60*1e3/3,ba=[0,1,2].map((ru,Zl)=>({label:`capture-${Zl+1}`,start:Zl*ol,end:(Zl+1)*ol})),E0=(ru,Zl)=>ru===Zl?ru:Math.random()*(Zl-ru)+ru;ba.forEach(({label:ru,start:Zl,end:Ai},vl)=>{let Jl;vl===0?Jl=3e3:Jl=E0(Zl,Ai),wa.push(setTimeout(()=>{He(ru)},Jl))})}catch(sn){console.error("Error accessing camera:",sn)}})(),()=>{ke.current&&ke.current.getTracks().forEach(sn=>sn.stop()),wa.forEach(clearTimeout)}},[He]),j.useImperativeHandle(M,()=>({setReference:()=>{Re()},stopCamera:()=>{ke.current&&(ke.current.getTracks().forEach(wa=>wa.stop()),ke.current=null)}}),[Re]),b.jsxs("div",{className:`iw-relative iw-h-full iw-w-full ${i}`,children:[ve?b.jsxs("div",{className:"iw-rounded-md iw-border iw-border-red-600 iw-p-5 iw-text-red-600",children:[b.jsx("h2",{children:"Camera Permission Denied"}),b.jsx("p",{children:"Please allow camera access to use this application."})]}):b.jsx("div",{className:"iw-flex iw-w-full iw-h-full iw-justify-start iw-items-start",children:b.jsxs("div",{className:`iw-relative iw-max-w-full iw-max-h-full iw-aspect-video iw-rounded-2xl iw-overflow-hidden iw-bg-black ${Qe?"iw-animate-answer-start":""} ${w?"iw-border-4 iw-border-[#6296FB]":""}`,style:{width:"100%",height:"auto",minHeight:"0"},children:[b.jsx("video",{ref:me,autoPlay:!0,playsInline:!0,muted:!0,className:"iw-absolute iw-inset-0 iw-w-full iw-h-full iw-object-cover",style:{transform:"scaleX(-1)"}}),ne&&b.jsx("canvas",{ref:ce,width:320,height:240,className:"iw-absolute iw-inset-0 iw-w-full iw-h-full iw-object-cover",style:{transform:"scaleX(-1)",borderRadius:q}}),b.jsx("canvas",{ref:Ut,style:{display:"none"}}),h&&b.jsxs("div",{className:"iw-absolute iw-top-4 iw-right-4 iw-inline-flex iw-items-center iw-gap-2 iw-rounded-lg iw-border iw-border-white/10 iw-bg-[#FFEBE6] iw-px-2 iw-py-1 iw-backdrop-blur-md",children:[b.jsx("div",{className:"iw-size-2 iw-animate-pulse iw-rounded-full iw-bg-red-500"}),b.jsx("span",{className:"iw-font-medium iw-text-xs iw-text-[#E94315]",children:"RECORDING"})]}),h&&((rr=U==null?void 0:U.data)==null?void 0:rr.user_name)&&b.jsx("div",{className:"iw-absolute iw-z-50 iw-bottom-4 iw-right-4 iw-inline-flex iw-items-center iw-gap-2 iw-rounded-lg iw-border iw-border-white/10 iw-bg-[#F1F5FE] iw-px-3 iw-py-1 iw-backdrop-blur-md",children:b.jsx("span",{className:"iw-font-medium iw-text-xs iw-text-[#062260]",children:U.data.user_name})}),h&&b.jsx("div",{className:"iw-absolute iw-bottom-4 iw-right-4",children:b.jsx(uT,{showControls:(k==null?void 0:k.showControls)??!1,isBubbleOpen:oe,setIsBubbleOpen:ue,setReference:Re,clearCache:Ce,isModelLoaded:$t,gazeAnalysisEnabled:nt&&ne,referenceSet:dt,showLandmarks:P,setShowLandmarks:ye,showEngagementBar:be,setShowEngagementBar:Te,handleToggleGazeAnalysis:sr,stats:ym,statusMessage:V,loadingProgress:ie})}),A&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"iw-absolute iw-inset-0 iw-pointer-events-none iw-z-10 ",style:{background:"radial-gradient(ellipse 20% 40% at 50% 45%, transparent 99.5%, rgba(0,0,0,0.35) 100%)"}}),b.jsx("div",{className:"iw-absolute iw-bottom-2 iw-inset-x-0 iw-flex iw-justify-center iw-pointer-events-none iw-z-20",children:b.jsx(c_,{status:Ql()??"face_detected"})})]})]})}),ne&&Jo&&!A&&b.jsx(o_,{isOpen:Jo,onClose:su,warningType:Ql()})]})}),c_=({status:i})=>{const c=k6[i];if(!c)return null;const f=i!=="face_detected";return b.jsxs("div",{className:"iw-flex iw-flex-col iw-items-center iw-gap-2",children:[b.jsxs("div",{className:"iw-flex iw-items-center iw-gap-2 iw-px-3 iw-py-1 iw-rounded-full iw-backdrop-blur-md iw-shadow-sm transition-colors duration-300 iw-text-white",children:[b.jsx("div",{className:`iw-flex iw-h-4 iw-w-4 iw-items-center iw-size-2.5 iw-justify-center iw-rounded-full iw-text-white ${f?"iw-bg-[#E94315]":"iw-bg-[#22C55E]"}`,children:f?b.jsx(q6,{}):b.jsx(gy,{})}),b.jsx("span",{className:"iw-text-sm iw-font-medium",children:i==="face_detected"?"Face detected clearly":c.title})]}),f&&b.jsx("span",{className:"iw-text-white iw-text-center iw-text-sm iw-drop-shadow-sm iw-max-w-[400px] iw-px-3 ",children:"Sit upright & look directly into the camera"})]})},$8=({micEnabled:i=!1,videoEnabled:c=!1,buttonText:f,onButtonClick:h,isAgreed:y,onAgreedToggle:w,showCheckbox:E=!0,showMediaIcons:A=!0,disabled:M=!1})=>{const G=M||!y||A&&(!i||!c);return b.jsxs("div",{className:"iw-flex iw-flex-col iw-gap-6 iw-w-full",children:[E&&b.jsxs("div",{className:"iw-flex iw-items-start iw-gap-3 iw-bg-[#F1F5FE] iw-rounded-xl iw-p-4 iw-border iw-border-[#E7EAF1]",children:[b.jsx("div",{className:`iw-mt-0.5 iw-h-5 iw-w-5 iw-min-w-[20px] iw-rounded iw-border iw-flex iw-items-center iw-justify-center iw-cursor-pointer iw-transition-colors ${y?"iw-bg-[#062260] iw-border-[#062260]":"iw-bg-white iw-border-[#B3B9CB]"}`,onClick:U=>{U.stopPropagation(),w(!y)},children:y&&b.jsx(gy,{className:"iw-size-3 iw-text-white"})}),b.jsx("label",{onClick:()=>w(!y),className:"iw-text-sm iw-text-[#062260] iw-font-medium iw-cursor-pointer iw-select-none",children:"By continuing, you acknowledge and consent to the use of your face data exclusively for interview monitoring"})]}),b.jsxs("div",{className:"iw-flex iw-items-center iw-justify-center iw-gap-4",children:[A&&b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"iw-relative",children:[b.jsx("div",{className:`iw-flex iw-h-12 iw-w-16 iw-items-center iw-justify-center iw-rounded-xl iw-border iw-transition-all ${i?"iw-border-[#E7EAF1] iw-bg-white iw-text-[#062260]":"iw-border-rose-200 iw-bg-rose-50 iw-text-rose-600"}`,children:i?b.jsx(JE,{className:"iw-h-6 iw-w-6"}):b.jsx(KE,{className:"iw-h-6 iw-w-6"})}),i&&b.jsx("div",{className:"iw-absolute -iw-right-1 -iw-top-1 iw-flex iw-h-4 iw-w-4 iw-items-center iw-justify-center iw-rounded-full iw-bg-[#22C55E] iw-text-white",children:b.jsx(gy,{className:"iw-h-2.5 iw-w-2.5"})})]}),b.jsxs("div",{className:"iw-relative",children:[b.jsx("div",{className:`iw-flex iw-h-12 iw-w-16 iw-items-center iw-justify-center iw-rounded-xl iw-border iw-transition-all ${c?"iw-border-[#E7EAF1] iw-bg-white iw-text-[#062260]":"iw-border-rose-200 iw-bg-rose-50 iw-text-rose-600"}`,children:c?b.jsx(eT,{className:"iw-h-6 iw-w-6"}):b.jsx(tT,{className:"iw-h-6 iw-w-6"})}),c&&b.jsx("div",{className:"iw-absolute -iw-right-1 -iw-top-1 iw-flex iw-h-4 iw-w-4 iw-items-center iw-justify-center iw-rounded-full iw-bg-[#22C55E] iw-text-white",children:b.jsx(gy,{className:"iw-h-2.5 iw-w-2.5"})})]})]}),b.jsx(K8,{onClick:h,disabled:G,className:`iw-h-12 iw-flex-1 iw-max-w-[220px] !iw-bg-[#F1F5FE] !iw-text-[#062260] !iw-font-bold iw-border-none iw-rounded-lg ${G?"iw-opacity-50":"hover:iw-opacity-75"}`,children:f})]})]})},s_=({steps:i,currentStepIndex:c})=>b.jsx("div",{className:"iw-flex iw-items-center iw-justify-center iw-gap-4 iw-w-full iw-py-6",children:i.map((f,h)=>{const y=h<c,w=h===c;return b.jsxs(j.Fragment,{children:[b.jsxs("div",{className:"iw-flex iw-items-center iw-gap-3",children:[b.jsx("div",{className:`iw-flex iw-size-9 iw-text-[#062260] iw-items-center iw-justify-center iw-rounded-full iw-font-semibold iw-border ${w||y?"iw-border-[#0EB00E] iw-bg-[#E9FFE6]":"iw-border-[#BDE0FD] iw-bg-[#E6F3FF]"}`,children:y?b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:b.jsx("polyline",{points:"20 6 9 17 4 12"})}):h+1}),b.jsx("span",{className:`iw-text-sm iw-font-medium ${w||y?"iw-text-[#062260]":"iw-text-[#5C6686]"}`,children:f.label})]}),h<i.length-1&&b.jsx("div",{className:"iw-flex-1 iw-max-w-[120px] iw-border-t iw-border-dotted iw-border-[#B3B9CB]"})]},h)})}),r_=["Don't refresh or reload the page during your assessment","Don't switch tabs or open other applications while session is ongoing","Don't leave your position during the session","Don't disable or interfere with video/audio monitoring"],f_=({isOpen:i,onStart:c,gazeEnabled:f=!1,videoFeedRef:h,interviewId:y="",interview_duration:w=hy})=>{const E=j.useRef(null),A=j.useRef(null),[M,G]=j.useState(!1),[U,N]=j.useState(!1),[q,k]=j.useState(0),[ne,oe]=j.useState(!1),ue=j.useRef(null),P=j.useRef(null),ye=me=>{ue.current=me,h&&(typeof h=="function"?h(me):h.current=me)},be=()=>{A.current&&(A.current.getTracks().forEach(me=>me.stop()),A.current=null)},Te=async()=>{try{const me=await navigator.mediaDevices.getUserMedia({video:{width:{ideal:1280},height:{ideal:720}},audio:!0});A.current=me,E.current&&(E.current.srcObject=me),G(!0)}catch(me){console.error("Media permission error:",me);let ce="Unable to access camera or microphone.";(me==null?void 0:me.name)==="NotAllowedError"?ce="Permissions denied. Please allow access to camera and microphone.":(me==null?void 0:me.name)==="NotFoundError"?ce="No camera/microphone found. Please connect a device and retry.":me!=null&&me.message&&(ce=me.message),G(!1),console.log(ce)}finally{}};if(j.useEffect(()=>{if(!i){be();return}return Te(),()=>be()},[i]),j.useEffect(()=>()=>{P.current&&(clearInterval(P.current),P.current=null)},[]),!i)return null;const[nt,Be]=j.useState("face_detected"),Qe=async()=>{N(!0);const me=()=>{var ce;return(ce=ue.current)==null?void 0:ce.setReference()};me(),P.current&&clearInterval(P.current),P.current=setInterval(me,500)},xe=[{label:f?"Calibrate your camera":"Camera & Mic permission"},{label:"Basic guidelines"}];return b.jsx("div",{className:"iw-fixed iw-inset-0 iw-z-50 iw-flex iw-items-center iw-justify-center iw-bg-gray-900/40 iw-backdrop-blur-sm iw-p-4 iw-overflow-auto",children:b.jsxs("div",{className:"iw-w-full iw-max-w-[700px] iw-bg-white iw-rounded-xl iw-shadow-2xl iw-overflow-auto",children:[b.jsxs("div",{className:"iw-px-5 iw-pt-5",children:[b.jsx("h2",{className:"iw-text-[#062260] iw-text-2xl iw-font-medium iw-tracking-tight",children:"Final checks before you go live"}),b.jsx("div",{className:"iw-mt-4 iw-bg-[#F1F5FE] iw-rounded-xl iw-p-3 iw-border iw-border-[#E7EAF1]",children:b.jsx("p",{className:"iw-text-[#5C6686] iw-text-sm iw-leading-relaxed",children:"To ensure the integrity of the interview process, this platform uses your device’s camera to monitor your face and gaze direction. We do not store any outside this session"})}),b.jsx("div",{className:"iw-mt-6 iw-border-b iw-border-dashed iw-border-[#B3B9CB] iw-w-full"}),b.jsx(s_,{steps:xe,currentStepIndex:q})]}),b.jsx("div",{className:"iw-px-5 iw-pb-5 iw-flex iw-flex-col iw-items-center",children:q===0?b.jsxs("div",{className:"iw-w-full iw-flex iw-flex-col iw-items-center iw-gap-6",children:[b.jsx("div",{className:"iw-w-full iw-max-w-[600px] iw-aspect-video iw-bg-slate-100 iw-rounded-2xl iw-overflow-hidden iw-relative iw-border iw-border-slate-200",children:f?b.jsx(F8,{ref:ye,interviewId:y,interview_duration:w,showProctoringUI:!1,showStatusOverlay:!0,onProctoringStatusChange:Be,onSetReference:()=>{P.current&&(clearInterval(P.current),P.current=null),N(!1),k(1)}}):b.jsx("video",{ref:E,autoPlay:!0,playsInline:!0,muted:!0,className:"iw-w-full iw-h-full iw-object-cover",style:{transform:"scaleX(-1)"}})}),b.jsx($8,{micEnabled:M,videoEnabled:M,buttonText:f?U?"Calibrating...":"Start calibrate":"Next",onButtonClick:()=>{f?Qe():k(1)},disabled:!ne||f&&nt!=="face_detected"||!f&&!M,isAgreed:ne,onAgreedToggle:oe})]}):b.jsxs("div",{className:"iw-w-full iw-flex iw-flex-col iw-gap-6",children:[b.jsx("div",{className:"iw-w-full iw-bg-[#F8FAFF] iw-rounded-2xl iw-p-8 iw-flex iw-flex-col iw-gap-5",children:r_.map((me,ce)=>b.jsxs("div",{className:"iw-flex iw-items-center iw-gap-4",children:[b.jsx("div",{className:"iw-flex iw-h-7 iw-w-7 iw-min-w-[28px] iw-items-center iw-justify-center iw-rounded-full iw-bg-[#DBEAFE] iw-text-[#062260] iw-text-xs iw-font-bold",children:ce+1}),b.jsx("span",{className:"iw-text-[#5C6686] iw-font-medium",children:me})]},ce))}),b.jsx($8,{buttonText:"Start interview",onButtonClick:()=>{c(),be()},isAgreed:ne,onAgreedToggle:oe,showMediaIcons:!1})]})})]})})};var St=(i=>(i.IDLE="idle",i.FETCHING_QUESTION="fetching_question",i.READING_QUESTION="reading_question",i.THINKING="thinking",i.ANSWERING="answering",i.TRANSCRIBING="transcribing",i.EDITING="editing",i.SUBMITTING="submitting",i.COMPLETED="completed",i))(St||{});const I8={thinkingDuration:0,answeringDuration:120,editingDuration:30},W8={idle:{next:"fetching_question"},fetching_question:{next:"reading_question"},reading_question:{next:"answering"},thinking:{next:"answering",duration:0},answering:{next:"transcribing",duration:120},transcribing:{next:"editing"},editing:{next:"submitting",duration:30},submitting:{next:"completed"},completed:{next:"completed"}};class d_{constructor(c={},f={}){tu(this,"config");tu(this,"state");tu(this,"phaseIntervalId",null);tu(this,"globalIntervalId",null);tu(this,"callbacks");this.config={...I8,...c},this.callbacks=f,this.state={phase:"idle",currentPhaseTimeRemaining:0,totalTimeElapsed:0,currentQuestionNumber:0}}updateConfig(c){this.config={...this.config,...c}}getState(){return{...this.state}}startQuestion(){this.state.currentQuestionNumber===0&&this.startGlobalTimer(),this.state.currentQuestionNumber=this.state.currentQuestionNumber+1,this.state.phase="fetching_question",this.notifyChange()}nextPhase(){const c=this.state.phase;let f=W8[c];if(!f)return;if(f.next==="editing"&&this.config.editingDuration===0){const y=W8.editing;y&&(f=y)}this.stopPhaseTimer(),this.state.phase=f.next;const h=this.getDurationForPhase(f.next);h>0?(this.state.currentPhaseTimeRemaining=h,this.startPhaseTimer()):this.state.currentPhaseTimeRemaining=0,this.notifyChange()}completeInterview(){var c,f;this.stopGlobalTimer(),this.stopPhaseTimer(),this.state.phase="completed",(f=(c=this.callbacks).onInterviewEnd)==null||f.call(c),this.notifyChange()}destroy(){this.stopPhaseTimer(),this.stopGlobalTimer()}getDurationForPhase(c){switch(c){case"thinking":return this.config.thinkingDuration;case"answering":return this.config.answeringDuration;case"editing":return this.config.editingDuration;default:return 0}}startGlobalTimer(){this.globalIntervalId=setInterval(()=>{var c,f;this.state.totalTimeElapsed++,(f=(c=this.callbacks).onTick)==null||f.call(c,this.getState())},1e3)}stopGlobalTimer(){this.globalIntervalId&&(clearInterval(this.globalIntervalId),this.globalIntervalId=null)}startPhaseTimer(){this.phaseIntervalId=setInterval(()=>{this.state.currentPhaseTimeRemaining--,this.state.currentPhaseTimeRemaining<=0&&this.nextPhase()},1e3)}stopPhaseTimer(){this.phaseIntervalId&&(clearInterval(this.phaseIntervalId),this.phaseIntervalId=null)}notifyChange(){var c,f;(f=(c=this.callbacks).onPhaseChange)==null||f.call(c,this.state.phase,this.getState())}}function h_(i={}){const{config:c={},callbacks:f={}}=i,h=j.useRef(null);h.current||(h.current=new d_(c,{}));const y=h.current,[w,E]=j.useState(y.getState()),A=j.useCallback(()=>{E(y.getState())},[y]);j.useEffect(()=>{const N={onPhaseChange:(q,k)=>{var ne;A(),(ne=f.onPhaseChange)==null||ne.call(f,q,k)},onTick:q=>{var k;A(),(k=f.onTick)==null||k.call(f,q)},onInterviewEnd:()=>{var q;A(),(q=f.onInterviewEnd)==null||q.call(f)}};y.callbacks=N},[y,f,A]),j.useEffect(()=>{y.updateConfig(c)},[y,c]),j.useEffect(()=>()=>{y.destroy()},[y]);const M=j.useCallback(()=>{y.startQuestion(),A()},[y,A]),G=j.useCallback(()=>{y.nextPhase(),A()},[y,A]),U=j.useCallback(()=>{y.completeInterview(),A()},[y,A]);return{state:w,startQuestion:M,nextPhase:G,completeInterview:U,timerService:y}}function m_(i,c={}){const[f,h]=j.useState({data:null,loading:!1,error:null}),y=j.useCallback(async(...w)=>{var E,A,M,G;h(U=>({...U,loading:!0,error:null}));try{const U=await i(...w);h(N=>({...N,data:U,loading:!1,error:null})),(E=c.onSuccess)==null||E.call(c,U),(A=c.onSettled)==null||A.call(c,U,null)}catch(U){const N=U.type?U:{type:"unknown",message:U.message||"Unknown error",retryable:!0,userMessage:"Something went wrong. Please try again.",originalError:U};h(q=>({...q,loading:!1,error:N})),(M=c.onError)==null||M.call(c,N),(G=c.onSettled)==null||G.call(c,null,N)}},[i,c]);return{...f,execute:y}}const g_=i=>{const[c,f]=j.useState(null),[h,y]=j.useState(!1),w=document,E=()=>!!(w.fullscreenEnabled||w.webkitFullscreenEnabled||w.mozFullScreenEnabled||w.msFullscreenEnabled),A=()=>w.fullscreenElement||w.webkitFullscreenElement||w.mozFullScreenElement||w.msFullscreenElement,M=async k=>{var ne;try{if(!E())throw new Error("Fullscreen is not supported in this environment");k.requestFullscreen?await k.requestFullscreen():k.webkitRequestFullscreen?await k.webkitRequestFullscreen():k.mozRequestFullScreen?await k.mozRequestFullScreen():k.msRequestFullscreen&&await k.msRequestFullscreen()}catch(oe){const ue={name:"FullscreenError",message:oe instanceof Error?oe.message:"Failed to enter fullscreen"};f(ue),(ne=i==null?void 0:i.onError)==null||ne.call(i,ue)}},G=async()=>{var k;try{w.exitFullscreen?await w.exitFullscreen():w.webkitExitFullscreen?await w.webkitExitFullscreen():w.mozCancelFullScreen?await w.mozCancelFullScreen():w.msExitFullscreen&&await w.msExitFullscreen()}catch(ne){const oe={name:"FullscreenError",message:ne instanceof Error?ne.message:"Failed to exit fullscreen"};f(oe),(k=i==null?void 0:i.onError)==null||k.call(i,oe)}},U=j.useCallback(()=>{var ne;const k=!!A();y(k),(ne=i==null?void 0:i.onFullScreenChange)==null||ne.call(i,k)},[i]);j.useEffect(()=>{const k=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"];return k.forEach(ne=>{document.addEventListener(ne,U)}),()=>{k.forEach(ne=>{document.removeEventListener(ne,U)})}},[U]);const N=async k=>{f(null);const ne=k??document.documentElement;await M(ne)};return{isFullScreen:h,toggleFullScreen:async k=>{h?await G():await N(k)},enterFullScreen:N,exitFullScreen:G,error:c}};function P8(){const i=my();return j.useMemo(()=>{const f=i.api||{};return new X6(f)},[i.api])}const p_=i=>{j.useEffect(()=>{const c=h=>{(h.ctrlKey||h.metaKey)&&["c","v","a","t","n","w","r","s","p"].includes(h.key.toLowerCase())&&(h.preventDefault(),i({type:"blocked_shortcut",severity:"low",details:{action:"shortcut_pressed",reason:`Attempted to use a blocked keyboard shortcut: Ctrl + ${h.key}`}})),h.key.startsWith("F")&&h.key.length<=3&&(h.preventDefault(),i({type:"blocked_function_key",severity:"low",details:{action:"function_key_pressed",reason:`Attempted to use a blocked function key: ${h.key}`}})),h.altKey&&h.key==="Tab"&&(h.preventDefault(),i({type:"alt_tab_attempt",severity:"medium",details:{action:"alt_tab",reason:"Attempted to use the Alt + Tab shortcut"}}))},f=h=>{h.preventDefault(),i({type:"right_click_attempt",severity:"low",details:{action:"right_click",reason:"Attempted to use the right click"}})};return document.addEventListener("keydown",c),document.addEventListener("contextmenu",f),()=>{document.removeEventListener("keydown",c),document.removeEventListener("contextmenu",f)}},[i])},y_=(i={})=>{const[c,f]=j.useState(!1),[h,y]=j.useState(!1),[w,E]=j.useState(null),[A,M]=j.useState(null),[G,U]=j.useState(null);i.config&&b0.updateConfig(i.config);const N=j.useCallback(async oe=>{var ue;try{M(null),E(null),U(null),await b0.startRecording(oe,{onStart:()=>{var P;f(!0),(P=i.onStart)==null||P.call(i)},onStop:()=>{var P;f(!1),(P=i.onStop)==null||P.call(i)},onError:P=>{var be;const ye=P instanceof Bn?P:new Bn(P.message,"RECORDING_ERROR",!0);M(ye),f(!1),(be=i.onError)==null||be.call(i,ye)}})}catch(P){const ye=P instanceof Bn?P:new Bn(P instanceof Error?P.message:String(P),"START_FAILED",!1);throw M(ye),f(!1),(ue=i.onError)==null||ue.call(i,ye),ye}},[]),q=j.useCallback(async()=>{var oe,ue;try{const P=await b0.stopRecording();return U(P),f(!1),(oe=i.onStop)==null||oe.call(i),P}catch(P){const ye=P instanceof Bn?P:new Bn(P instanceof Error?P.message:String(P),"STOP_FAILED",!1);throw M(ye),f(!1),(ue=i.onError)==null||ue.call(i,ye),ye}},[]),k=j.useCallback(async(oe,ue={})=>{var P,ye;try{M(null),y(!0);const be={audioBlob:oe,...ue},Te=await b0.transcribe(be);return E(Te.transcript),y(!1),(P=i.onTranscriptionComplete)==null||P.call(i,Te),Te}catch(be){const Te=be instanceof Bn?be:new Bn(be instanceof Error?be.message:String(be),"TRANSCRIPTION_FAILED",!0);throw M(Te),y(!1),(ye=i.onError)==null||ye.call(i,Te),Te}},[]),ne=j.useCallback(()=>{b0.cancelRecording(),f(!1),U(null)},[]);return{startRecording:N,stopRecording:q,transcribe:k,cancelRecording:ne,isRecording:c,isTranscribing:h,transcript:w,error:A,audioBlob:G}},v_=i=>{const c=j.useRef(null),f=j.useRef(!1);j.useEffect(()=>{const h=()=>{document.hidden&&(f.current=!0,c.current&&(clearTimeout(c.current),c.current=null),i({type:"tab_switch",severity:"high",details:{action:"tab_hidden",reason:"Attempted to switch tabs or applications"}}),setTimeout(()=>{f.current=!1},100))},y=()=>{f.current||(c.current=setTimeout(()=>{f.current||i({type:"focus_loss",severity:"medium",details:{action:"window_blur",reason:"Focus lost from the interview window"}}),c.current=null},50))};return document.addEventListener("visibilitychange",h),window.addEventListener("blur",y),()=>{document.removeEventListener("visibilitychange",h),window.removeEventListener("blur",y),c.current&&clearTimeout(c.current)}},[i])},w_=()=>{j.useEffect(()=>{const i=document.createElement("style");return i.textContent=`
15
+ }`,e.VERTEX_SHADER),this.W=Ac(this,this.H(),e.FRAGMENT_SHADER),e.linkProgram(this.h),!e.getProgramParameter(this.h,e.LINK_STATUS))throw Error(`Error during program linking: ${e.getProgramInfoLog(this.h)}`);this.O=e.getAttribLocation(this.h,"aVertex"),this.L=e.getAttribLocation(this.h,"aTex")}D(){}l(){}close(){if(this.h){const e=this.g;e.deleteProgram(this.h),e.deleteShader(this.X),e.deleteShader(this.W)}this.B&&this.g.deleteFramebuffer(this.B),this.A&&this.A.close(),this.u&&this.u.close()}};function ht(e,t){switch(t){case 0:return e.g.find(r=>r instanceof Uint8Array);case 1:return e.g.find(r=>r instanceof Float32Array);case 2:return e.g.find(r=>typeof WebGLTexture<"u"&&r instanceof WebGLTexture);default:throw Error(`Type is not supported: ${t}`)}}function Es(e){var t=ht(e,1);if(!t){if(t=ht(e,0))t=new Float32Array(t).map(i=>i/255);else{t=new Float32Array(e.width*e.height);const i=_r(e);var r=ks(e);if(Fc(r,i,Mc(e)),"iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"document"in self&&"ontouchend"in self.document){r=new Float32Array(e.width*e.height*4),i.readPixels(0,0,e.width,e.height,i.RGBA,i.FLOAT,r);for(let n=0,s=0;n<t.length;++n,s+=4)t[n]=r[s]}else i.readPixels(0,0,e.width,e.height,i.RED,i.FLOAT,t)}e.g.push(t)}return t}function Mc(e){let t=ht(e,2);if(!t){const r=_r(e);t=Dc(e);const i=Es(e),n=Pc(e);r.texImage2D(r.TEXTURE_2D,0,n,e.width,e.height,0,r.RED,r.FLOAT,i),_s(e)}return t}function _r(e){if(!e.canvas)throw Error("Conversion to different image formats require that a canvas is passed when initializing the image.");return e.h||(e.h=Nt(e.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),e.h}function Pc(e){if(e=_r(e),!zi)if(e.getExtension("EXT_color_buffer_float")&&e.getExtension("OES_texture_float_linear")&&e.getExtension("EXT_float_blend"))zi=e.R32F;else{if(!e.getExtension("EXT_color_buffer_half_float"))throw Error("GPU does not fully support 4-channel float32 or float16 formats");zi=e.R16F}return zi}function ks(e){return e.l||(e.l=new Lc),e.l}function Dc(e){const t=_r(e);t.viewport(0,0,e.width,e.height),t.activeTexture(t.TEXTURE0);let r=ht(e,2);return r||(r=Ic(ks(e),t,e.m?t.LINEAR:t.NEAREST),e.g.push(r),e.j=!0),t.bindTexture(t.TEXTURE_2D,r),r}function _s(e){e.h.bindTexture(e.h.TEXTURE_2D,null)}var zi,ue=class{constructor(e,t,r,i,n,s,a){this.g=e,this.m=t,this.j=r,this.canvas=i,this.l=n,this.width=s,this.height=a,this.j&&--Oc===0&&console.error("You seem to be creating MPMask instances without invoking .close(). This leaks resources.")}Fa(){return!!ht(this,0)}ka(){return!!ht(this,1)}R(){return!!ht(this,2)}ja(){return(t=ht(e=this,0))||(t=Es(e),t=new Uint8Array(t.map(r=>Math.round(255*r))),e.g.push(t)),t;var e,t}ia(){return Es(this)}N(){return Mc(this)}clone(){const e=[];for(const t of this.g){let r;if(t instanceof Uint8Array)r=new Uint8Array(t);else if(t instanceof Float32Array)r=new Float32Array(t);else{if(!(t instanceof WebGLTexture))throw Error(`Type is not supported: ${t}`);{const i=_r(this),n=ks(this);i.activeTexture(i.TEXTURE1),r=Ic(n,i,this.m?i.LINEAR:i.NEAREST),i.bindTexture(i.TEXTURE_2D,r);const s=Pc(this);i.texImage2D(i.TEXTURE_2D,0,s,this.width,this.height,0,i.RED,i.FLOAT,null),i.bindTexture(i.TEXTURE_2D,null),Fc(n,i,r),U2(n,i,!1,()=>{Dc(this),i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT),i.drawArrays(i.TRIANGLE_FAN,0,4),_s(this)}),G2(n),_s(this)}}e.push(r)}return new ue(e,this.m,this.R(),this.canvas,this.l,this.width,this.height)}close(){this.j&&_r(this).deleteTexture(ht(this,2)),Oc=-1}};ue.prototype.close=ue.prototype.close,ue.prototype.clone=ue.prototype.clone,ue.prototype.getAsWebGLTexture=ue.prototype.N,ue.prototype.getAsFloat32Array=ue.prototype.ia,ue.prototype.getAsUint8Array=ue.prototype.ja,ue.prototype.hasWebGLTexture=ue.prototype.R,ue.prototype.hasFloat32Array=ue.prototype.ka,ue.prototype.hasUint8Array=ue.prototype.Fa;var Oc=250;function $e(...e){return e.map(([t,r])=>({start:t,end:r}))}const V2=function(e){return class extends e{Ja(){this.i._registerModelResourcesGraphService()}}}((Bc=class{constructor(e,t){this.l=!0,this.i=e,this.g=null,this.h=0,this.m=typeof this.i._addIntToInputStream=="function",t!==void 0?this.i.canvas=t:Ec()?this.i.canvas=new OffscreenCanvas(1,1):(console.warn("OffscreenCanvas not supported and GraphRunner constructor glCanvas parameter is undefined. Creating backup canvas."),this.i.canvas=document.createElement("canvas"))}async initializeGraph(e){const t=await(await fetch(e)).arrayBuffer();e=!(e.endsWith(".pbtxt")||e.endsWith(".textproto")),this.setGraph(new Uint8Array(t),e)}setGraphFromString(e){this.setGraph(new TextEncoder().encode(e),!1)}setGraph(e,t){const r=e.length,i=this.i._malloc(r);this.i.HEAPU8.set(e,i),t?this.i._changeBinaryGraph(r,i):this.i._changeTextGraph(r,i),this.i._free(i)}configureAudio(e,t,r,i,n){this.i._configureAudio||console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),k(this,i||"input_audio",s=>{k(this,n=n||"audio_header",a=>{this.i._configureAudio(s,a,e,t??0,r)})})}setAutoResizeCanvas(e){this.l=e}setAutoRenderToScreen(e){this.i._setAutoRenderToScreen(e)}setGpuBufferVerticalFlip(e){this.i.gpuOriginForWebTexturesIsBottomLeft=e}ca(e){et(this,"__graph_config__",t=>{e(t)}),k(this,"__graph_config__",t=>{this.i._getGraphConfig(t,void 0)}),delete this.i.simpleListeners.__graph_config__}attachErrorListener(e){this.i.errorListener=e}attachEmptyPacketListener(e,t){this.i.emptyPacketListeners=this.i.emptyPacketListeners||{},this.i.emptyPacketListeners[e]=t}addAudioToStream(e,t,r){this.addAudioToStreamWithShape(e,0,0,t,r)}addAudioToStreamWithShape(e,t,r,i,n){const s=4*e.length;this.h!==s&&(this.g&&this.i._free(this.g),this.g=this.i._malloc(s),this.h=s),this.i.HEAPF32.set(e,this.g/4),k(this,i,a=>{this.i._addAudioToInputStream(this.g,t,r,a,n)})}addGpuBufferToStream(e,t,r){k(this,t,i=>{const[n,s]=Nc(this,e,i);this.i._addBoundTextureToStream(i,n,s,r)})}addBoolToStream(e,t,r){k(this,t,i=>{this.i._addBoolToInputStream(e,i,r)})}addDoubleToStream(e,t,r){k(this,t,i=>{this.i._addDoubleToInputStream(e,i,r)})}addFloatToStream(e,t,r){k(this,t,i=>{this.i._addFloatToInputStream(e,i,r)})}addIntToStream(e,t,r){k(this,t,i=>{this.i._addIntToInputStream(e,i,r)})}addUintToStream(e,t,r){k(this,t,i=>{this.i._addUintToInputStream(e,i,r)})}addStringToStream(e,t,r){k(this,t,i=>{k(this,e,n=>{this.i._addStringToInputStream(n,i,r)})})}addStringRecordToStream(e,t,r){k(this,t,i=>{Tc(this,Object.keys(e),n=>{Tc(this,Object.values(e),s=>{this.i._addFlatHashMapToInputStream(n,s,Object.keys(e).length,i,r)})})})}addProtoToStream(e,t,r,i){k(this,r,n=>{k(this,t,s=>{const a=this.i._malloc(e.length);this.i.HEAPU8.set(e,a),this.i._addProtoToInputStream(a,e.length,s,n,i),this.i._free(a)})})}addEmptyPacketToStream(e,t){k(this,e,r=>{this.i._addEmptyPacketToInputStream(r,t)})}addBoolVectorToStream(e,t,r){k(this,t,i=>{const n=this.i._allocateBoolVector(e.length);if(!n)throw Error("Unable to allocate new bool vector on heap.");for(const s of e)this.i._addBoolVectorEntry(n,s);this.i._addBoolVectorToInputStream(n,i,r)})}addDoubleVectorToStream(e,t,r){k(this,t,i=>{const n=this.i._allocateDoubleVector(e.length);if(!n)throw Error("Unable to allocate new double vector on heap.");for(const s of e)this.i._addDoubleVectorEntry(n,s);this.i._addDoubleVectorToInputStream(n,i,r)})}addFloatVectorToStream(e,t,r){k(this,t,i=>{const n=this.i._allocateFloatVector(e.length);if(!n)throw Error("Unable to allocate new float vector on heap.");for(const s of e)this.i._addFloatVectorEntry(n,s);this.i._addFloatVectorToInputStream(n,i,r)})}addIntVectorToStream(e,t,r){k(this,t,i=>{const n=this.i._allocateIntVector(e.length);if(!n)throw Error("Unable to allocate new int vector on heap.");for(const s of e)this.i._addIntVectorEntry(n,s);this.i._addIntVectorToInputStream(n,i,r)})}addUintVectorToStream(e,t,r){k(this,t,i=>{const n=this.i._allocateUintVector(e.length);if(!n)throw Error("Unable to allocate new unsigned int vector on heap.");for(const s of e)this.i._addUintVectorEntry(n,s);this.i._addUintVectorToInputStream(n,i,r)})}addStringVectorToStream(e,t,r){k(this,t,i=>{const n=this.i._allocateStringVector(e.length);if(!n)throw Error("Unable to allocate new string vector on heap.");for(const s of e)k(this,s,a=>{this.i._addStringVectorEntry(n,a)});this.i._addStringVectorToInputStream(n,i,r)})}addBoolToInputSidePacket(e,t){k(this,t,r=>{this.i._addBoolToInputSidePacket(e,r)})}addDoubleToInputSidePacket(e,t){k(this,t,r=>{this.i._addDoubleToInputSidePacket(e,r)})}addFloatToInputSidePacket(e,t){k(this,t,r=>{this.i._addFloatToInputSidePacket(e,r)})}addIntToInputSidePacket(e,t){k(this,t,r=>{this.i._addIntToInputSidePacket(e,r)})}addUintToInputSidePacket(e,t){k(this,t,r=>{this.i._addUintToInputSidePacket(e,r)})}addStringToInputSidePacket(e,t){k(this,t,r=>{k(this,e,i=>{this.i._addStringToInputSidePacket(i,r)})})}addProtoToInputSidePacket(e,t,r){k(this,r,i=>{k(this,t,n=>{const s=this.i._malloc(e.length);this.i.HEAPU8.set(e,s),this.i._addProtoToInputSidePacket(s,e.length,n,i),this.i._free(s)})})}addBoolVectorToInputSidePacket(e,t){k(this,t,r=>{const i=this.i._allocateBoolVector(e.length);if(!i)throw Error("Unable to allocate new bool vector on heap.");for(const n of e)this.i._addBoolVectorEntry(i,n);this.i._addBoolVectorToInputSidePacket(i,r)})}addDoubleVectorToInputSidePacket(e,t){k(this,t,r=>{const i=this.i._allocateDoubleVector(e.length);if(!i)throw Error("Unable to allocate new double vector on heap.");for(const n of e)this.i._addDoubleVectorEntry(i,n);this.i._addDoubleVectorToInputSidePacket(i,r)})}addFloatVectorToInputSidePacket(e,t){k(this,t,r=>{const i=this.i._allocateFloatVector(e.length);if(!i)throw Error("Unable to allocate new float vector on heap.");for(const n of e)this.i._addFloatVectorEntry(i,n);this.i._addFloatVectorToInputSidePacket(i,r)})}addIntVectorToInputSidePacket(e,t){k(this,t,r=>{const i=this.i._allocateIntVector(e.length);if(!i)throw Error("Unable to allocate new int vector on heap.");for(const n of e)this.i._addIntVectorEntry(i,n);this.i._addIntVectorToInputSidePacket(i,r)})}addUintVectorToInputSidePacket(e,t){k(this,t,r=>{const i=this.i._allocateUintVector(e.length);if(!i)throw Error("Unable to allocate new unsigned int vector on heap.");for(const n of e)this.i._addUintVectorEntry(i,n);this.i._addUintVectorToInputSidePacket(i,r)})}addStringVectorToInputSidePacket(e,t){k(this,t,r=>{const i=this.i._allocateStringVector(e.length);if(!i)throw Error("Unable to allocate new string vector on heap.");for(const n of e)k(this,n,s=>{this.i._addStringVectorEntry(i,s)});this.i._addStringVectorToInputSidePacket(i,r)})}attachBoolListener(e,t){et(this,e,t),k(this,e,r=>{this.i._attachBoolListener(r)})}attachBoolVectorListener(e,t){_t(this,e,t),k(this,e,r=>{this.i._attachBoolVectorListener(r)})}attachIntListener(e,t){et(this,e,t),k(this,e,r=>{this.i._attachIntListener(r)})}attachIntVectorListener(e,t){_t(this,e,t),k(this,e,r=>{this.i._attachIntVectorListener(r)})}attachUintListener(e,t){et(this,e,t),k(this,e,r=>{this.i._attachUintListener(r)})}attachUintVectorListener(e,t){_t(this,e,t),k(this,e,r=>{this.i._attachUintVectorListener(r)})}attachDoubleListener(e,t){et(this,e,t),k(this,e,r=>{this.i._attachDoubleListener(r)})}attachDoubleVectorListener(e,t){_t(this,e,t),k(this,e,r=>{this.i._attachDoubleVectorListener(r)})}attachFloatListener(e,t){et(this,e,t),k(this,e,r=>{this.i._attachFloatListener(r)})}attachFloatVectorListener(e,t){_t(this,e,t),k(this,e,r=>{this.i._attachFloatVectorListener(r)})}attachStringListener(e,t){et(this,e,t),k(this,e,r=>{this.i._attachStringListener(r)})}attachStringVectorListener(e,t){_t(this,e,t),k(this,e,r=>{this.i._attachStringVectorListener(r)})}attachProtoListener(e,t,r){et(this,e,t),k(this,e,i=>{this.i._attachProtoListener(i,r||!1)})}attachProtoVectorListener(e,t,r){_t(this,e,t),k(this,e,i=>{this.i._attachProtoVectorListener(i,r||!1)})}attachAudioListener(e,t,r){this.i._attachAudioListener||console.warn('Attempting to use attachAudioListener without support for output audio. Is build dep ":gl_graph_runner_audio_out" missing?'),et(this,e,(i,n)=>{i=new Float32Array(i.buffer,i.byteOffset,i.length/4),t(i,n)}),k(this,e,i=>{this.i._attachAudioListener(i,r||!1)})}finishProcessing(){this.i._waitUntilIdle()}closeGraph(){this.i._closeGraph(),this.i.simpleListeners=void 0,this.i.emptyPacketListeners=void 0}},class extends Bc{get ga(){return this.i}pa(e,t,r){k(this,t,i=>{const[n,s]=Nc(this,e,i);this.ga._addBoundTextureAsImageToStream(i,n,s,r)})}Z(e,t){et(this,e,t),k(this,e,r=>{this.ga._attachImageListener(r)})}aa(e,t){_t(this,e,t),k(this,e,r=>{this.ga._attachImageVectorListener(r)})}}));var Bc,ze=class extends V2{};async function M(e,t,r){return async function(i,n,s,a){return O2(i,n,s,a)}(e,r.canvas??(Ec()?void 0:document.createElement("canvas")),t,r)}function Uc(e,t,r,i){if(e.U){const s=new $a;if(r!=null&&r.regionOfInterest){if(!e.oa)throw Error("This task doesn't support region-of-interest.");var n=r.regionOfInterest;if(n.left>=n.right||n.top>=n.bottom)throw Error("Expected RectF with left < right and top < bottom.");if(n.left<0||n.top<0||n.right>1||n.bottom>1)throw Error("Expected RectF values to be in [0,1].");_(s,1,(n.left+n.right)/2),_(s,2,(n.top+n.bottom)/2),_(s,4,n.right-n.left),_(s,3,n.bottom-n.top)}else _(s,1,.5),_(s,2,.5),_(s,4,1),_(s,3,1);if(r!=null&&r.rotationDegrees){if((r==null?void 0:r.rotationDegrees)%90!=0)throw Error("Expected rotation to be a multiple of 90°.");if(_(s,5,-Math.PI*r.rotationDegrees/180),(r==null?void 0:r.rotationDegrees)%180!=0){const[a,c]=_c(t);r=J(s,3)*c/a,n=J(s,4)*a/c,_(s,4,r),_(s,3,n)}}e.g.addProtoToStream(s.g(),"mediapipe.NormalizedRect",e.U,i)}e.g.pa(t,e.X,i??performance.now()),e.finishProcessing()}function He(e,t,r){var i;if((i=e.baseOptions)!=null&&i.g())throw Error("Task is not initialized with image mode. 'runningMode' must be set to 'IMAGE'.");Uc(e,t,r,e.C+1)}function tt(e,t,r,i){var n;if(!((n=e.baseOptions)!=null&&n.g()))throw Error("Task is not initialized with video mode. 'runningMode' must be set to 'VIDEO'.");Uc(e,t,r,i)}function Nr(e,t,r,i){var n=t.data;const s=t.width,a=s*(t=t.height);if((n instanceof Uint8Array||n instanceof Float32Array)&&n.length!==a)throw Error("Unsupported channel count: "+n.length/a);return e=new ue([n],r,!1,e.g.i.canvas,e.P,s,t),i?e.clone():e}var Ae=class extends vs{constructor(e,t,r,i){super(e),this.g=e,this.X=t,this.U=r,this.oa=i,this.P=new Lc}l(e,t=!0){if("runningMode"in e&&B(this.baseOptions,2,$r(!!e.runningMode&&e.runningMode!=="IMAGE")),e.canvas!==void 0&&this.g.i.canvas!==e.canvas)throw Error("You must create a new task to reset the canvas.");return super.l(e,t)}close(){this.P.close(),super.close()}};Ae.prototype.close=Ae.prototype.close;var Be=class extends Ae{constructor(e,t){super(new ze(e,t),"image_in","norm_rect_in",!1),this.j={detections:[]},N(e=this.h=new Gi,0,1,t=new Y),_(this.h,2,.5),_(this.h,3,.3)}get baseOptions(){return D(this.h,Y,1)}set baseOptions(e){N(this.h,0,1,e)}o(e){return"minDetectionConfidence"in e&&_(this.h,2,e.minDetectionConfidence??.5),"minSuppressionThreshold"in e&&_(this.h,3,e.minSuppressionThreshold??.3),this.l(e)}F(e,t){return this.j={detections:[]},He(this,e,t),this.j}G(e,t,r){return this.j={detections:[]},tt(this,e,r,t),this.j}m(){var e=new Se;q(e,"image_in"),q(e,"norm_rect_in"),O(e,"detections");const t=new Te;Ze(t,x2,this.h);const r=new ye;_e(r,2,"mediapipe.tasks.vision.face_detector.FaceDetectorGraph"),$(r,"IMAGE:image_in"),$(r,"NORM_RECT:norm_rect_in"),F(r,"DETECTIONS:detections"),r.o(t),Oe(e,r),this.g.attachProtoVectorListener("detections",(i,n)=>{for(const s of i)i=Va(s),this.j.detections.push(yc(i));v(this,n)}),this.g.attachEmptyPacketListener("detections",i=>{v(this,i)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Be.prototype.detectForVideo=Be.prototype.G,Be.prototype.detect=Be.prototype.F,Be.prototype.setOptions=Be.prototype.o,Be.createFromModelPath=async function(e,t){return M(Be,e,{baseOptions:{modelAssetPath:t}})},Be.createFromModelBuffer=function(e,t){return M(Be,e,{baseOptions:{modelAssetBuffer:t}})},Be.createFromOptions=function(e,t){return M(Be,e,t)};var Ns=$e([61,146],[146,91],[91,181],[181,84],[84,17],[17,314],[314,405],[405,321],[321,375],[375,291],[61,185],[185,40],[40,39],[39,37],[37,0],[0,267],[267,269],[269,270],[270,409],[409,291],[78,95],[95,88],[88,178],[178,87],[87,14],[14,317],[317,402],[402,318],[318,324],[324,308],[78,191],[191,80],[80,81],[81,82],[82,13],[13,312],[312,311],[311,310],[310,415],[415,308]),Ts=$e([263,249],[249,390],[390,373],[373,374],[374,380],[380,381],[381,382],[382,362],[263,466],[466,388],[388,387],[387,386],[386,385],[385,384],[384,398],[398,362]),Ss=$e([276,283],[283,282],[282,295],[295,285],[300,293],[293,334],[334,296],[296,336]),Gc=$e([474,475],[475,476],[476,477],[477,474]),As=$e([33,7],[7,163],[163,144],[144,145],[145,153],[153,154],[154,155],[155,133],[33,246],[246,161],[161,160],[160,159],[159,158],[158,157],[157,173],[173,133]),Cs=$e([46,53],[53,52],[52,65],[65,55],[70,63],[63,105],[105,66],[66,107]),Vc=$e([469,470],[470,471],[471,472],[472,469]),Is=$e([10,338],[338,297],[297,332],[332,284],[284,251],[251,389],[389,356],[356,454],[454,323],[323,361],[361,288],[288,397],[397,365],[365,379],[379,378],[378,400],[400,377],[377,152],[152,148],[148,176],[176,149],[149,150],[150,136],[136,172],[172,58],[58,132],[132,93],[93,234],[234,127],[127,162],[162,21],[21,54],[54,103],[103,67],[67,109],[109,10]),jc=[...Ns,...Ts,...Ss,...As,...Cs,...Is],Wc=$e([127,34],[34,139],[139,127],[11,0],[0,37],[37,11],[232,231],[231,120],[120,232],[72,37],[37,39],[39,72],[128,121],[121,47],[47,128],[232,121],[121,128],[128,232],[104,69],[69,67],[67,104],[175,171],[171,148],[148,175],[118,50],[50,101],[101,118],[73,39],[39,40],[40,73],[9,151],[151,108],[108,9],[48,115],[115,131],[131,48],[194,204],[204,211],[211,194],[74,40],[40,185],[185,74],[80,42],[42,183],[183,80],[40,92],[92,186],[186,40],[230,229],[229,118],[118,230],[202,212],[212,214],[214,202],[83,18],[18,17],[17,83],[76,61],[61,146],[146,76],[160,29],[29,30],[30,160],[56,157],[157,173],[173,56],[106,204],[204,194],[194,106],[135,214],[214,192],[192,135],[203,165],[165,98],[98,203],[21,71],[71,68],[68,21],[51,45],[45,4],[4,51],[144,24],[24,23],[23,144],[77,146],[146,91],[91,77],[205,50],[50,187],[187,205],[201,200],[200,18],[18,201],[91,106],[106,182],[182,91],[90,91],[91,181],[181,90],[85,84],[84,17],[17,85],[206,203],[203,36],[36,206],[148,171],[171,140],[140,148],[92,40],[40,39],[39,92],[193,189],[189,244],[244,193],[159,158],[158,28],[28,159],[247,246],[246,161],[161,247],[236,3],[3,196],[196,236],[54,68],[68,104],[104,54],[193,168],[168,8],[8,193],[117,228],[228,31],[31,117],[189,193],[193,55],[55,189],[98,97],[97,99],[99,98],[126,47],[47,100],[100,126],[166,79],[79,218],[218,166],[155,154],[154,26],[26,155],[209,49],[49,131],[131,209],[135,136],[136,150],[150,135],[47,126],[126,217],[217,47],[223,52],[52,53],[53,223],[45,51],[51,134],[134,45],[211,170],[170,140],[140,211],[67,69],[69,108],[108,67],[43,106],[106,91],[91,43],[230,119],[119,120],[120,230],[226,130],[130,247],[247,226],[63,53],[53,52],[52,63],[238,20],[20,242],[242,238],[46,70],[70,156],[156,46],[78,62],[62,96],[96,78],[46,53],[53,63],[63,46],[143,34],[34,227],[227,143],[123,117],[117,111],[111,123],[44,125],[125,19],[19,44],[236,134],[134,51],[51,236],[216,206],[206,205],[205,216],[154,153],[153,22],[22,154],[39,37],[37,167],[167,39],[200,201],[201,208],[208,200],[36,142],[142,100],[100,36],[57,212],[212,202],[202,57],[20,60],[60,99],[99,20],[28,158],[158,157],[157,28],[35,226],[226,113],[113,35],[160,159],[159,27],[27,160],[204,202],[202,210],[210,204],[113,225],[225,46],[46,113],[43,202],[202,204],[204,43],[62,76],[76,77],[77,62],[137,123],[123,116],[116,137],[41,38],[38,72],[72,41],[203,129],[129,142],[142,203],[64,98],[98,240],[240,64],[49,102],[102,64],[64,49],[41,73],[73,74],[74,41],[212,216],[216,207],[207,212],[42,74],[74,184],[184,42],[169,170],[170,211],[211,169],[170,149],[149,176],[176,170],[105,66],[66,69],[69,105],[122,6],[6,168],[168,122],[123,147],[147,187],[187,123],[96,77],[77,90],[90,96],[65,55],[55,107],[107,65],[89,90],[90,180],[180,89],[101,100],[100,120],[120,101],[63,105],[105,104],[104,63],[93,137],[137,227],[227,93],[15,86],[86,85],[85,15],[129,102],[102,49],[49,129],[14,87],[87,86],[86,14],[55,8],[8,9],[9,55],[100,47],[47,121],[121,100],[145,23],[23,22],[22,145],[88,89],[89,179],[179,88],[6,122],[122,196],[196,6],[88,95],[95,96],[96,88],[138,172],[172,136],[136,138],[215,58],[58,172],[172,215],[115,48],[48,219],[219,115],[42,80],[80,81],[81,42],[195,3],[3,51],[51,195],[43,146],[146,61],[61,43],[171,175],[175,199],[199,171],[81,82],[82,38],[38,81],[53,46],[46,225],[225,53],[144,163],[163,110],[110,144],[52,65],[65,66],[66,52],[229,228],[228,117],[117,229],[34,127],[127,234],[234,34],[107,108],[108,69],[69,107],[109,108],[108,151],[151,109],[48,64],[64,235],[235,48],[62,78],[78,191],[191,62],[129,209],[209,126],[126,129],[111,35],[35,143],[143,111],[117,123],[123,50],[50,117],[222,65],[65,52],[52,222],[19,125],[125,141],[141,19],[221,55],[55,65],[65,221],[3,195],[195,197],[197,3],[25,7],[7,33],[33,25],[220,237],[237,44],[44,220],[70,71],[71,139],[139,70],[122,193],[193,245],[245,122],[247,130],[130,33],[33,247],[71,21],[21,162],[162,71],[170,169],[169,150],[150,170],[188,174],[174,196],[196,188],[216,186],[186,92],[92,216],[2,97],[97,167],[167,2],[141,125],[125,241],[241,141],[164,167],[167,37],[37,164],[72,38],[38,12],[12,72],[38,82],[82,13],[13,38],[63,68],[68,71],[71,63],[226,35],[35,111],[111,226],[101,50],[50,205],[205,101],[206,92],[92,165],[165,206],[209,198],[198,217],[217,209],[165,167],[167,97],[97,165],[220,115],[115,218],[218,220],[133,112],[112,243],[243,133],[239,238],[238,241],[241,239],[214,135],[135,169],[169,214],[190,173],[173,133],[133,190],[171,208],[208,32],[32,171],[125,44],[44,237],[237,125],[86,87],[87,178],[178,86],[85,86],[86,179],[179,85],[84,85],[85,180],[180,84],[83,84],[84,181],[181,83],[201,83],[83,182],[182,201],[137,93],[93,132],[132,137],[76,62],[62,183],[183,76],[61,76],[76,184],[184,61],[57,61],[61,185],[185,57],[212,57],[57,186],[186,212],[214,207],[207,187],[187,214],[34,143],[143,156],[156,34],[79,239],[239,237],[237,79],[123,137],[137,177],[177,123],[44,1],[1,4],[4,44],[201,194],[194,32],[32,201],[64,102],[102,129],[129,64],[213,215],[215,138],[138,213],[59,166],[166,219],[219,59],[242,99],[99,97],[97,242],[2,94],[94,141],[141,2],[75,59],[59,235],[235,75],[24,110],[110,228],[228,24],[25,130],[130,226],[226,25],[23,24],[24,229],[229,23],[22,23],[23,230],[230,22],[26,22],[22,231],[231,26],[112,26],[26,232],[232,112],[189,190],[190,243],[243,189],[221,56],[56,190],[190,221],[28,56],[56,221],[221,28],[27,28],[28,222],[222,27],[29,27],[27,223],[223,29],[30,29],[29,224],[224,30],[247,30],[30,225],[225,247],[238,79],[79,20],[20,238],[166,59],[59,75],[75,166],[60,75],[75,240],[240,60],[147,177],[177,215],[215,147],[20,79],[79,166],[166,20],[187,147],[147,213],[213,187],[112,233],[233,244],[244,112],[233,128],[128,245],[245,233],[128,114],[114,188],[188,128],[114,217],[217,174],[174,114],[131,115],[115,220],[220,131],[217,198],[198,236],[236,217],[198,131],[131,134],[134,198],[177,132],[132,58],[58,177],[143,35],[35,124],[124,143],[110,163],[163,7],[7,110],[228,110],[110,25],[25,228],[356,389],[389,368],[368,356],[11,302],[302,267],[267,11],[452,350],[350,349],[349,452],[302,303],[303,269],[269,302],[357,343],[343,277],[277,357],[452,453],[453,357],[357,452],[333,332],[332,297],[297,333],[175,152],[152,377],[377,175],[347,348],[348,330],[330,347],[303,304],[304,270],[270,303],[9,336],[336,337],[337,9],[278,279],[279,360],[360,278],[418,262],[262,431],[431,418],[304,408],[408,409],[409,304],[310,415],[415,407],[407,310],[270,409],[409,410],[410,270],[450,348],[348,347],[347,450],[422,430],[430,434],[434,422],[313,314],[314,17],[17,313],[306,307],[307,375],[375,306],[387,388],[388,260],[260,387],[286,414],[414,398],[398,286],[335,406],[406,418],[418,335],[364,367],[367,416],[416,364],[423,358],[358,327],[327,423],[251,284],[284,298],[298,251],[281,5],[5,4],[4,281],[373,374],[374,253],[253,373],[307,320],[320,321],[321,307],[425,427],[427,411],[411,425],[421,313],[313,18],[18,421],[321,405],[405,406],[406,321],[320,404],[404,405],[405,320],[315,16],[16,17],[17,315],[426,425],[425,266],[266,426],[377,400],[400,369],[369,377],[322,391],[391,269],[269,322],[417,465],[465,464],[464,417],[386,257],[257,258],[258,386],[466,260],[260,388],[388,466],[456,399],[399,419],[419,456],[284,332],[332,333],[333,284],[417,285],[285,8],[8,417],[346,340],[340,261],[261,346],[413,441],[441,285],[285,413],[327,460],[460,328],[328,327],[355,371],[371,329],[329,355],[392,439],[439,438],[438,392],[382,341],[341,256],[256,382],[429,420],[420,360],[360,429],[364,394],[394,379],[379,364],[277,343],[343,437],[437,277],[443,444],[444,283],[283,443],[275,440],[440,363],[363,275],[431,262],[262,369],[369,431],[297,338],[338,337],[337,297],[273,375],[375,321],[321,273],[450,451],[451,349],[349,450],[446,342],[342,467],[467,446],[293,334],[334,282],[282,293],[458,461],[461,462],[462,458],[276,353],[353,383],[383,276],[308,324],[324,325],[325,308],[276,300],[300,293],[293,276],[372,345],[345,447],[447,372],[352,345],[345,340],[340,352],[274,1],[1,19],[19,274],[456,248],[248,281],[281,456],[436,427],[427,425],[425,436],[381,256],[256,252],[252,381],[269,391],[391,393],[393,269],[200,199],[199,428],[428,200],[266,330],[330,329],[329,266],[287,273],[273,422],[422,287],[250,462],[462,328],[328,250],[258,286],[286,384],[384,258],[265,353],[353,342],[342,265],[387,259],[259,257],[257,387],[424,431],[431,430],[430,424],[342,353],[353,276],[276,342],[273,335],[335,424],[424,273],[292,325],[325,307],[307,292],[366,447],[447,345],[345,366],[271,303],[303,302],[302,271],[423,266],[266,371],[371,423],[294,455],[455,460],[460,294],[279,278],[278,294],[294,279],[271,272],[272,304],[304,271],[432,434],[434,427],[427,432],[272,407],[407,408],[408,272],[394,430],[430,431],[431,394],[395,369],[369,400],[400,395],[334,333],[333,299],[299,334],[351,417],[417,168],[168,351],[352,280],[280,411],[411,352],[325,319],[319,320],[320,325],[295,296],[296,336],[336,295],[319,403],[403,404],[404,319],[330,348],[348,349],[349,330],[293,298],[298,333],[333,293],[323,454],[454,447],[447,323],[15,16],[16,315],[315,15],[358,429],[429,279],[279,358],[14,15],[15,316],[316,14],[285,336],[336,9],[9,285],[329,349],[349,350],[350,329],[374,380],[380,252],[252,374],[318,402],[402,403],[403,318],[6,197],[197,419],[419,6],[318,319],[319,325],[325,318],[367,364],[364,365],[365,367],[435,367],[367,397],[397,435],[344,438],[438,439],[439,344],[272,271],[271,311],[311,272],[195,5],[5,281],[281,195],[273,287],[287,291],[291,273],[396,428],[428,199],[199,396],[311,271],[271,268],[268,311],[283,444],[444,445],[445,283],[373,254],[254,339],[339,373],[282,334],[334,296],[296,282],[449,347],[347,346],[346,449],[264,447],[447,454],[454,264],[336,296],[296,299],[299,336],[338,10],[10,151],[151,338],[278,439],[439,455],[455,278],[292,407],[407,415],[415,292],[358,371],[371,355],[355,358],[340,345],[345,372],[372,340],[346,347],[347,280],[280,346],[442,443],[443,282],[282,442],[19,94],[94,370],[370,19],[441,442],[442,295],[295,441],[248,419],[419,197],[197,248],[263,255],[255,359],[359,263],[440,275],[275,274],[274,440],[300,383],[383,368],[368,300],[351,412],[412,465],[465,351],[263,467],[467,466],[466,263],[301,368],[368,389],[389,301],[395,378],[378,379],[379,395],[412,351],[351,419],[419,412],[436,426],[426,322],[322,436],[2,164],[164,393],[393,2],[370,462],[462,461],[461,370],[164,0],[0,267],[267,164],[302,11],[11,12],[12,302],[268,12],[12,13],[13,268],[293,300],[300,301],[301,293],[446,261],[261,340],[340,446],[330,266],[266,425],[425,330],[426,423],[423,391],[391,426],[429,355],[355,437],[437,429],[391,327],[327,326],[326,391],[440,457],[457,438],[438,440],[341,382],[382,362],[362,341],[459,457],[457,461],[461,459],[434,430],[430,394],[394,434],[414,463],[463,362],[362,414],[396,369],[369,262],[262,396],[354,461],[461,457],[457,354],[316,403],[403,402],[402,316],[315,404],[404,403],[403,315],[314,405],[405,404],[404,314],[313,406],[406,405],[405,313],[421,418],[418,406],[406,421],[366,401],[401,361],[361,366],[306,408],[408,407],[407,306],[291,409],[409,408],[408,291],[287,410],[410,409],[409,287],[432,436],[436,410],[410,432],[434,416],[416,411],[411,434],[264,368],[368,383],[383,264],[309,438],[438,457],[457,309],[352,376],[376,401],[401,352],[274,275],[275,4],[4,274],[421,428],[428,262],[262,421],[294,327],[327,358],[358,294],[433,416],[416,367],[367,433],[289,455],[455,439],[439,289],[462,370],[370,326],[326,462],[2,326],[326,370],[370,2],[305,460],[460,455],[455,305],[254,449],[449,448],[448,254],[255,261],[261,446],[446,255],[253,450],[450,449],[449,253],[252,451],[451,450],[450,252],[256,452],[452,451],[451,256],[341,453],[453,452],[452,341],[413,464],[464,463],[463,413],[441,413],[413,414],[414,441],[258,442],[442,441],[441,258],[257,443],[443,442],[442,257],[259,444],[444,443],[443,259],[260,445],[445,444],[444,260],[467,342],[342,445],[445,467],[459,458],[458,250],[250,459],[289,392],[392,290],[290,289],[290,328],[328,460],[460,290],[376,433],[433,435],[435,376],[250,290],[290,392],[392,250],[411,416],[416,433],[433,411],[341,463],[463,464],[464,341],[453,464],[464,465],[465,453],[357,465],[465,412],[412,357],[343,412],[412,399],[399,343],[360,363],[363,440],[440,360],[437,399],[399,456],[456,437],[420,456],[456,363],[363,420],[401,435],[435,288],[288,401],[372,383],[383,353],[353,372],[339,255],[255,249],[249,339],[448,261],[261,255],[255,448],[133,243],[243,190],[190,133],[133,155],[155,112],[112,133],[33,246],[246,247],[247,33],[33,130],[130,25],[25,33],[398,384],[384,286],[286,398],[362,398],[398,414],[414,362],[362,463],[463,341],[341,362],[263,359],[359,467],[467,263],[263,249],[249,255],[255,263],[466,467],[467,260],[260,466],[75,60],[60,166],[166,75],[238,239],[239,79],[79,238],[162,127],[127,139],[139,162],[72,11],[11,37],[37,72],[121,232],[232,120],[120,121],[73,72],[72,39],[39,73],[114,128],[128,47],[47,114],[233,232],[232,128],[128,233],[103,104],[104,67],[67,103],[152,175],[175,148],[148,152],[119,118],[118,101],[101,119],[74,73],[73,40],[40,74],[107,9],[9,108],[108,107],[49,48],[48,131],[131,49],[32,194],[194,211],[211,32],[184,74],[74,185],[185,184],[191,80],[80,183],[183,191],[185,40],[40,186],[186,185],[119,230],[230,118],[118,119],[210,202],[202,214],[214,210],[84,83],[83,17],[17,84],[77,76],[76,146],[146,77],[161,160],[160,30],[30,161],[190,56],[56,173],[173,190],[182,106],[106,194],[194,182],[138,135],[135,192],[192,138],[129,203],[203,98],[98,129],[54,21],[21,68],[68,54],[5,51],[51,4],[4,5],[145,144],[144,23],[23,145],[90,77],[77,91],[91,90],[207,205],[205,187],[187,207],[83,201],[201,18],[18,83],[181,91],[91,182],[182,181],[180,90],[90,181],[181,180],[16,85],[85,17],[17,16],[205,206],[206,36],[36,205],[176,148],[148,140],[140,176],[165,92],[92,39],[39,165],[245,193],[193,244],[244,245],[27,159],[159,28],[28,27],[30,247],[247,161],[161,30],[174,236],[236,196],[196,174],[103,54],[54,104],[104,103],[55,193],[193,8],[8,55],[111,117],[117,31],[31,111],[221,189],[189,55],[55,221],[240,98],[98,99],[99,240],[142,126],[126,100],[100,142],[219,166],[166,218],[218,219],[112,155],[155,26],[26,112],[198,209],[209,131],[131,198],[169,135],[135,150],[150,169],[114,47],[47,217],[217,114],[224,223],[223,53],[53,224],[220,45],[45,134],[134,220],[32,211],[211,140],[140,32],[109,67],[67,108],[108,109],[146,43],[43,91],[91,146],[231,230],[230,120],[120,231],[113,226],[226,247],[247,113],[105,63],[63,52],[52,105],[241,238],[238,242],[242,241],[124,46],[46,156],[156,124],[95,78],[78,96],[96,95],[70,46],[46,63],[63,70],[116,143],[143,227],[227,116],[116,123],[123,111],[111,116],[1,44],[44,19],[19,1],[3,236],[236,51],[51,3],[207,216],[216,205],[205,207],[26,154],[154,22],[22,26],[165,39],[39,167],[167,165],[199,200],[200,208],[208,199],[101,36],[36,100],[100,101],[43,57],[57,202],[202,43],[242,20],[20,99],[99,242],[56,28],[28,157],[157,56],[124,35],[35,113],[113,124],[29,160],[160,27],[27,29],[211,204],[204,210],[210,211],[124,113],[113,46],[46,124],[106,43],[43,204],[204,106],[96,62],[62,77],[77,96],[227,137],[137,116],[116,227],[73,41],[41,72],[72,73],[36,203],[203,142],[142,36],[235,64],[64,240],[240,235],[48,49],[49,64],[64,48],[42,41],[41,74],[74,42],[214,212],[212,207],[207,214],[183,42],[42,184],[184,183],[210,169],[169,211],[211,210],[140,170],[170,176],[176,140],[104,105],[105,69],[69,104],[193,122],[122,168],[168,193],[50,123],[123,187],[187,50],[89,96],[96,90],[90,89],[66,65],[65,107],[107,66],[179,89],[89,180],[180,179],[119,101],[101,120],[120,119],[68,63],[63,104],[104,68],[234,93],[93,227],[227,234],[16,15],[15,85],[85,16],[209,129],[129,49],[49,209],[15,14],[14,86],[86,15],[107,55],[55,9],[9,107],[120,100],[100,121],[121,120],[153,145],[145,22],[22,153],[178,88],[88,179],[179,178],[197,6],[6,196],[196,197],[89,88],[88,96],[96,89],[135,138],[138,136],[136,135],[138,215],[215,172],[172,138],[218,115],[115,219],[219,218],[41,42],[42,81],[81,41],[5,195],[195,51],[51,5],[57,43],[43,61],[61,57],[208,171],[171,199],[199,208],[41,81],[81,38],[38,41],[224,53],[53,225],[225,224],[24,144],[144,110],[110,24],[105,52],[52,66],[66,105],[118,229],[229,117],[117,118],[227,34],[34,234],[234,227],[66,107],[107,69],[69,66],[10,109],[109,151],[151,10],[219,48],[48,235],[235,219],[183,62],[62,191],[191,183],[142,129],[129,126],[126,142],[116,111],[111,143],[143,116],[118,117],[117,50],[50,118],[223,222],[222,52],[52,223],[94,19],[19,141],[141,94],[222,221],[221,65],[65,222],[196,3],[3,197],[197,196],[45,220],[220,44],[44,45],[156,70],[70,139],[139,156],[188,122],[122,245],[245,188],[139,71],[71,162],[162,139],[149,170],[170,150],[150,149],[122,188],[188,196],[196,122],[206,216],[216,92],[92,206],[164,2],[2,167],[167,164],[242,141],[141,241],[241,242],[0,164],[164,37],[37,0],[11,72],[72,12],[12,11],[12,38],[38,13],[13,12],[70,63],[63,71],[71,70],[31,226],[226,111],[111,31],[36,101],[101,205],[205,36],[203,206],[206,165],[165,203],[126,209],[209,217],[217,126],[98,165],[165,97],[97,98],[237,220],[220,218],[218,237],[237,239],[239,241],[241,237],[210,214],[214,169],[169,210],[140,171],[171,32],[32,140],[241,125],[125,237],[237,241],[179,86],[86,178],[178,179],[180,85],[85,179],[179,180],[181,84],[84,180],[180,181],[182,83],[83,181],[181,182],[194,201],[201,182],[182,194],[177,137],[137,132],[132,177],[184,76],[76,183],[183,184],[185,61],[61,184],[184,185],[186,57],[57,185],[185,186],[216,212],[212,186],[186,216],[192,214],[214,187],[187,192],[139,34],[34,156],[156,139],[218,79],[79,237],[237,218],[147,123],[123,177],[177,147],[45,44],[44,4],[4,45],[208,201],[201,32],[32,208],[98,64],[64,129],[129,98],[192,213],[213,138],[138,192],[235,59],[59,219],[219,235],[141,242],[242,97],[97,141],[97,2],[2,141],[141,97],[240,75],[75,235],[235,240],[229,24],[24,228],[228,229],[31,25],[25,226],[226,31],[230,23],[23,229],[229,230],[231,22],[22,230],[230,231],[232,26],[26,231],[231,232],[233,112],[112,232],[232,233],[244,189],[189,243],[243,244],[189,221],[221,190],[190,189],[222,28],[28,221],[221,222],[223,27],[27,222],[222,223],[224,29],[29,223],[223,224],[225,30],[30,224],[224,225],[113,247],[247,225],[225,113],[99,60],[60,240],[240,99],[213,147],[147,215],[215,213],[60,20],[20,166],[166,60],[192,187],[187,213],[213,192],[243,112],[112,244],[244,243],[244,233],[233,245],[245,244],[245,128],[128,188],[188,245],[188,114],[114,174],[174,188],[134,131],[131,220],[220,134],[174,217],[217,236],[236,174],[236,198],[198,134],[134,236],[215,177],[177,58],[58,215],[156,143],[143,124],[124,156],[25,110],[110,7],[7,25],[31,228],[228,25],[25,31],[264,356],[356,368],[368,264],[0,11],[11,267],[267,0],[451,452],[452,349],[349,451],[267,302],[302,269],[269,267],[350,357],[357,277],[277,350],[350,452],[452,357],[357,350],[299,333],[333,297],[297,299],[396,175],[175,377],[377,396],[280,347],[347,330],[330,280],[269,303],[303,270],[270,269],[151,9],[9,337],[337,151],[344,278],[278,360],[360,344],[424,418],[418,431],[431,424],[270,304],[304,409],[409,270],[272,310],[310,407],[407,272],[322,270],[270,410],[410,322],[449,450],[450,347],[347,449],[432,422],[422,434],[434,432],[18,313],[313,17],[17,18],[291,306],[306,375],[375,291],[259,387],[387,260],[260,259],[424,335],[335,418],[418,424],[434,364],[364,416],[416,434],[391,423],[423,327],[327,391],[301,251],[251,298],[298,301],[275,281],[281,4],[4,275],[254,373],[373,253],[253,254],[375,307],[307,321],[321,375],[280,425],[425,411],[411,280],[200,421],[421,18],[18,200],[335,321],[321,406],[406,335],[321,320],[320,405],[405,321],[314,315],[315,17],[17,314],[423,426],[426,266],[266,423],[396,377],[377,369],[369,396],[270,322],[322,269],[269,270],[413,417],[417,464],[464,413],[385,386],[386,258],[258,385],[248,456],[456,419],[419,248],[298,284],[284,333],[333,298],[168,417],[417,8],[8,168],[448,346],[346,261],[261,448],[417,413],[413,285],[285,417],[326,327],[327,328],[328,326],[277,355],[355,329],[329,277],[309,392],[392,438],[438,309],[381,382],[382,256],[256,381],[279,429],[429,360],[360,279],[365,364],[364,379],[379,365],[355,277],[277,437],[437,355],[282,443],[443,283],[283,282],[281,275],[275,363],[363,281],[395,431],[431,369],[369,395],[299,297],[297,337],[337,299],[335,273],[273,321],[321,335],[348,450],[450,349],[349,348],[359,446],[446,467],[467,359],[283,293],[293,282],[282,283],[250,458],[458,462],[462,250],[300,276],[276,383],[383,300],[292,308],[308,325],[325,292],[283,276],[276,293],[293,283],[264,372],[372,447],[447,264],[346,352],[352,340],[340,346],[354,274],[274,19],[19,354],[363,456],[456,281],[281,363],[426,436],[436,425],[425,426],[380,381],[381,252],[252,380],[267,269],[269,393],[393,267],[421,200],[200,428],[428,421],[371,266],[266,329],[329,371],[432,287],[287,422],[422,432],[290,250],[250,328],[328,290],[385,258],[258,384],[384,385],[446,265],[265,342],[342,446],[386,387],[387,257],[257,386],[422,424],[424,430],[430,422],[445,342],[342,276],[276,445],[422,273],[273,424],[424,422],[306,292],[292,307],[307,306],[352,366],[366,345],[345,352],[268,271],[271,302],[302,268],[358,423],[423,371],[371,358],[327,294],[294,460],[460,327],[331,279],[279,294],[294,331],[303,271],[271,304],[304,303],[436,432],[432,427],[427,436],[304,272],[272,408],[408,304],[395,394],[394,431],[431,395],[378,395],[395,400],[400,378],[296,334],[334,299],[299,296],[6,351],[351,168],[168,6],[376,352],[352,411],[411,376],[307,325],[325,320],[320,307],[285,295],[295,336],[336,285],[320,319],[319,404],[404,320],[329,330],[330,349],[349,329],[334,293],[293,333],[333,334],[366,323],[323,447],[447,366],[316,15],[15,315],[315,316],[331,358],[358,279],[279,331],[317,14],[14,316],[316,317],[8,285],[285,9],[9,8],[277,329],[329,350],[350,277],[253,374],[374,252],[252,253],[319,318],[318,403],[403,319],[351,6],[6,419],[419,351],[324,318],[318,325],[325,324],[397,367],[367,365],[365,397],[288,435],[435,397],[397,288],[278,344],[344,439],[439,278],[310,272],[272,311],[311,310],[248,195],[195,281],[281,248],[375,273],[273,291],[291,375],[175,396],[396,199],[199,175],[312,311],[311,268],[268,312],[276,283],[283,445],[445,276],[390,373],[373,339],[339,390],[295,282],[282,296],[296,295],[448,449],[449,346],[346,448],[356,264],[264,454],[454,356],[337,336],[336,299],[299,337],[337,338],[338,151],[151,337],[294,278],[278,455],[455,294],[308,292],[292,415],[415,308],[429,358],[358,355],[355,429],[265,340],[340,372],[372,265],[352,346],[346,280],[280,352],[295,442],[442,282],[282,295],[354,19],[19,370],[370,354],[285,441],[441,295],[295,285],[195,248],[248,197],[197,195],[457,440],[440,274],[274,457],[301,300],[300,368],[368,301],[417,351],[351,465],[465,417],[251,301],[301,389],[389,251],[394,395],[395,379],[379,394],[399,412],[412,419],[419,399],[410,436],[436,322],[322,410],[326,2],[2,393],[393,326],[354,370],[370,461],[461,354],[393,164],[164,267],[267,393],[268,302],[302,12],[12,268],[312,268],[268,13],[13,312],[298,293],[293,301],[301,298],[265,446],[446,340],[340,265],[280,330],[330,425],[425,280],[322,426],[426,391],[391,322],[420,429],[429,437],[437,420],[393,391],[391,326],[326,393],[344,440],[440,438],[438,344],[458,459],[459,461],[461,458],[364,434],[434,394],[394,364],[428,396],[396,262],[262,428],[274,354],[354,457],[457,274],[317,316],[316,402],[402,317],[316,315],[315,403],[403,316],[315,314],[314,404],[404,315],[314,313],[313,405],[405,314],[313,421],[421,406],[406,313],[323,366],[366,361],[361,323],[292,306],[306,407],[407,292],[306,291],[291,408],[408,306],[291,287],[287,409],[409,291],[287,432],[432,410],[410,287],[427,434],[434,411],[411,427],[372,264],[264,383],[383,372],[459,309],[309,457],[457,459],[366,352],[352,401],[401,366],[1,274],[274,4],[4,1],[418,421],[421,262],[262,418],[331,294],[294,358],[358,331],[435,433],[433,367],[367,435],[392,289],[289,439],[439,392],[328,462],[462,326],[326,328],[94,2],[2,370],[370,94],[289,305],[305,455],[455,289],[339,254],[254,448],[448,339],[359,255],[255,446],[446,359],[254,253],[253,449],[449,254],[253,252],[252,450],[450,253],[252,256],[256,451],[451,252],[256,341],[341,452],[452,256],[414,413],[413,463],[463,414],[286,441],[441,414],[414,286],[286,258],[258,441],[441,286],[258,257],[257,442],[442,258],[257,259],[259,443],[443,257],[259,260],[260,444],[444,259],[260,467],[467,445],[445,260],[309,459],[459,250],[250,309],[305,289],[289,290],[290,305],[305,290],[290,460],[460,305],[401,376],[376,435],[435,401],[309,250],[250,392],[392,309],[376,411],[411,433],[433,376],[453,341],[341,464],[464,453],[357,453],[453,465],[465,357],[343,357],[357,412],[412,343],[437,343],[343,399],[399,437],[344,360],[360,440],[440,344],[420,437],[437,456],[456,420],[360,420],[420,363],[363,360],[361,401],[401,288],[288,361],[265,372],[372,353],[353,265],[390,339],[339,249],[249,390],[339,448],[448,255],[255,339]);function $c(e){e.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]}}var K=class extends Ae{constructor(e,t){super(new ze(e,t),"image_in","norm_rect",!1),this.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]},this.outputFacialTransformationMatrixes=this.outputFaceBlendshapes=!1,N(e=this.h=new Ja,0,1,t=new Y),this.A=new Qa,N(this.h,0,3,this.A),this.u=new Gi,N(this.h,0,2,this.u),dt(this.u,4,1),_(this.u,2,.5),_(this.A,2,.5),_(this.h,4,.5)}get baseOptions(){return D(this.h,Y,1)}set baseOptions(e){N(this.h,0,1,e)}o(e){return"numFaces"in e&&dt(this.u,4,e.numFaces??1),"minFaceDetectionConfidence"in e&&_(this.u,2,e.minFaceDetectionConfidence??.5),"minTrackingConfidence"in e&&_(this.h,4,e.minTrackingConfidence??.5),"minFacePresenceConfidence"in e&&_(this.A,2,e.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in e&&(this.outputFaceBlendshapes=!!e.outputFaceBlendshapes),"outputFacialTransformationMatrixes"in e&&(this.outputFacialTransformationMatrixes=!!e.outputFacialTransformationMatrixes),this.l(e)}F(e,t){return $c(this),He(this,e,t),this.j}G(e,t,r){return $c(this),tt(this,e,r,t),this.j}m(){var e=new Se;q(e,"image_in"),q(e,"norm_rect"),O(e,"face_landmarks");const t=new Te;Ze(t,k2,this.h);const r=new ye;_e(r,2,"mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"),$(r,"IMAGE:image_in"),$(r,"NORM_RECT:norm_rect"),F(r,"NORM_LANDMARKS:face_landmarks"),r.o(t),Oe(e,r),this.g.attachProtoVectorListener("face_landmarks",(i,n)=>{for(const s of i)i=Jr(s),this.j.faceLandmarks.push(Vi(i));v(this,n)}),this.g.attachEmptyPacketListener("face_landmarks",i=>{v(this,i)}),this.outputFaceBlendshapes&&(O(e,"blendshapes"),F(r,"BLENDSHAPES:blendshapes"),this.g.attachProtoVectorListener("blendshapes",(i,n)=>{if(this.outputFaceBlendshapes)for(const s of i)i=Oi(s),this.j.faceBlendshapes.push(ys(i.g()??[]));v(this,n)}),this.g.attachEmptyPacketListener("blendshapes",i=>{v(this,i)})),this.outputFacialTransformationMatrixes&&(O(e,"face_geometry"),F(r,"FACE_GEOMETRY:face_geometry"),this.g.attachProtoVectorListener("face_geometry",(i,n)=>{if(this.outputFacialTransformationMatrixes)for(const s of i)(i=D(i=E2(s),f2,2))&&this.j.facialTransformationMatrixes.push({rows:Pe(i,1)??0??0,columns:Pe(i,2)??0??0,data:Vt(i,3,Qe,Gt()).slice()??[]});v(this,n)}),this.g.attachEmptyPacketListener("face_geometry",i=>{v(this,i)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};K.prototype.detectForVideo=K.prototype.G,K.prototype.detect=K.prototype.F,K.prototype.setOptions=K.prototype.o,K.createFromModelPath=function(e,t){return M(K,e,{baseOptions:{modelAssetPath:t}})},K.createFromModelBuffer=function(e,t){return M(K,e,{baseOptions:{modelAssetBuffer:t}})},K.createFromOptions=function(e,t){return M(K,e,t)},K.FACE_LANDMARKS_LIPS=Ns,K.FACE_LANDMARKS_LEFT_EYE=Ts,K.FACE_LANDMARKS_LEFT_EYEBROW=Ss,K.FACE_LANDMARKS_LEFT_IRIS=Gc,K.FACE_LANDMARKS_RIGHT_EYE=As,K.FACE_LANDMARKS_RIGHT_EYEBROW=Cs,K.FACE_LANDMARKS_RIGHT_IRIS=Vc,K.FACE_LANDMARKS_FACE_OVAL=Is,K.FACE_LANDMARKS_CONTOURS=jc,K.FACE_LANDMARKS_TESSELATION=Wc;var Fs=$e([0,1],[1,2],[2,3],[3,4],[0,5],[5,6],[6,7],[7,8],[5,9],[9,10],[10,11],[11,12],[9,13],[13,14],[14,15],[15,16],[13,17],[0,17],[17,18],[18,19],[19,20]);function zc(e){e.gestures=[],e.landmarks=[],e.worldLandmarks=[],e.handedness=[]}function Hc(e){return e.gestures.length===0?{gestures:[],landmarks:[],worldLandmarks:[],handedness:[],handednesses:[]}:{gestures:e.gestures,landmarks:e.landmarks,worldLandmarks:e.worldLandmarks,handedness:e.handedness,handednesses:e.handedness}}function qc(e,t=!0){const r=[];for(const n of e){var i=Oi(n);e=[];for(const s of i.g())i=t&&Pe(s,1)!=null?Pe(s,1)??0:-1,e.push({score:J(s,2)??0,index:i,categoryName:fe(W(s,3))??""??"",displayName:fe(W(s,4))??""??""});r.push(e)}return r}var Ce=class extends Ae{constructor(e,t){super(new ze(e,t),"image_in","norm_rect",!1),this.gestures=[],this.landmarks=[],this.worldLandmarks=[],this.handedness=[],N(e=this.j=new ec,0,1,t=new Y),this.u=new ds,N(this.j,0,2,this.u),this.D=new ls,N(this.u,0,3,this.D),this.A=new Ra,N(this.u,0,2,this.A),this.h=new _2,N(this.j,0,3,this.h),_(this.A,2,.5),_(this.u,4,.5),_(this.D,2,.5)}get baseOptions(){return D(this.j,Y,1)}set baseOptions(e){N(this.j,0,1,e)}o(e){var n,s,a,c;if(dt(this.A,3,e.numHands??1),"minHandDetectionConfidence"in e&&_(this.A,2,e.minHandDetectionConfidence??.5),"minTrackingConfidence"in e&&_(this.u,4,e.minTrackingConfidence??.5),"minHandPresenceConfidence"in e&&_(this.D,2,e.minHandPresenceConfidence??.5),e.cannedGesturesClassifierOptions){var t=new Er,r=t,i=ms(e.cannedGesturesClassifierOptions,(n=D(this.h,Er,3))==null?void 0:n.l());N(r,0,2,i),N(this.h,0,3,t)}else e.cannedGesturesClassifierOptions===void 0&&((s=D(this.h,Er,3))==null||s.g());return e.customGesturesClassifierOptions?(N(r=t=new Er,0,2,i=ms(e.customGesturesClassifierOptions,(a=D(this.h,Er,4))==null?void 0:a.l())),N(this.h,0,4,t)):e.customGesturesClassifierOptions===void 0&&((c=D(this.h,Er,4))==null||c.g()),this.l(e)}Ha(e,t){return zc(this),He(this,e,t),Hc(this)}Ia(e,t,r){return zc(this),tt(this,e,r,t),Hc(this)}m(){var e=new Se;q(e,"image_in"),q(e,"norm_rect"),O(e,"hand_gestures"),O(e,"hand_landmarks"),O(e,"world_hand_landmarks"),O(e,"handedness");const t=new Te;Ze(t,N2,this.j);const r=new ye;_e(r,2,"mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"),$(r,"IMAGE:image_in"),$(r,"NORM_RECT:norm_rect"),F(r,"HAND_GESTURES:hand_gestures"),F(r,"LANDMARKS:hand_landmarks"),F(r,"WORLD_LANDMARKS:world_hand_landmarks"),F(r,"HANDEDNESS:handedness"),r.o(t),Oe(e,r),this.g.attachProtoVectorListener("hand_landmarks",(i,n)=>{for(const s of i){i=Jr(s);const a=[];for(const c of lt(i,Wa,1))a.push({x:J(c,1)??0,y:J(c,2)??0,z:J(c,3)??0,visibility:J(c,4)??0});this.landmarks.push(a)}v(this,n)}),this.g.attachEmptyPacketListener("hand_landmarks",i=>{v(this,i)}),this.g.attachProtoVectorListener("world_hand_landmarks",(i,n)=>{for(const s of i){i=xr(s);const a=[];for(const c of lt(i,ja,1))a.push({x:J(c,1)??0,y:J(c,2)??0,z:J(c,3)??0,visibility:J(c,4)??0});this.worldLandmarks.push(a)}v(this,n)}),this.g.attachEmptyPacketListener("world_hand_landmarks",i=>{v(this,i)}),this.g.attachProtoVectorListener("hand_gestures",(i,n)=>{this.gestures.push(...qc(i,!1)),v(this,n)}),this.g.attachEmptyPacketListener("hand_gestures",i=>{v(this,i)}),this.g.attachProtoVectorListener("handedness",(i,n)=>{this.handedness.push(...qc(i)),v(this,n)}),this.g.attachEmptyPacketListener("handedness",i=>{v(this,i)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};function Kc(e){return{landmarks:e.landmarks,worldLandmarks:e.worldLandmarks,handednesses:e.handedness,handedness:e.handedness}}Ce.prototype.recognizeForVideo=Ce.prototype.Ia,Ce.prototype.recognize=Ce.prototype.Ha,Ce.prototype.setOptions=Ce.prototype.o,Ce.createFromModelPath=function(e,t){return M(Ce,e,{baseOptions:{modelAssetPath:t}})},Ce.createFromModelBuffer=function(e,t){return M(Ce,e,{baseOptions:{modelAssetBuffer:t}})},Ce.createFromOptions=function(e,t){return M(Ce,e,t)},Ce.HAND_CONNECTIONS=Fs;var Ie=class extends Ae{constructor(e,t){super(new ze(e,t),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.handedness=[],N(e=this.h=new ds,0,1,t=new Y),this.u=new ls,N(this.h,0,3,this.u),this.j=new Ra,N(this.h,0,2,this.j),dt(this.j,3,1),_(this.j,2,.5),_(this.u,2,.5),_(this.h,4,.5)}get baseOptions(){return D(this.h,Y,1)}set baseOptions(e){N(this.h,0,1,e)}o(e){return"numHands"in e&&dt(this.j,3,e.numHands??1),"minHandDetectionConfidence"in e&&_(this.j,2,e.minHandDetectionConfidence??.5),"minTrackingConfidence"in e&&_(this.h,4,e.minTrackingConfidence??.5),"minHandPresenceConfidence"in e&&_(this.u,2,e.minHandPresenceConfidence??.5),this.l(e)}F(e,t){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],He(this,e,t),Kc(this)}G(e,t,r){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],tt(this,e,r,t),Kc(this)}m(){var e=new Se;q(e,"image_in"),q(e,"norm_rect"),O(e,"hand_landmarks"),O(e,"world_hand_landmarks"),O(e,"handedness");const t=new Te;Ze(t,T2,this.h);const r=new ye;_e(r,2,"mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"),$(r,"IMAGE:image_in"),$(r,"NORM_RECT:norm_rect"),F(r,"LANDMARKS:hand_landmarks"),F(r,"WORLD_LANDMARKS:world_hand_landmarks"),F(r,"HANDEDNESS:handedness"),r.o(t),Oe(e,r),this.g.attachProtoVectorListener("hand_landmarks",(i,n)=>{for(const s of i)i=Jr(s),this.landmarks.push(Vi(i));v(this,n)}),this.g.attachEmptyPacketListener("hand_landmarks",i=>{v(this,i)}),this.g.attachProtoVectorListener("world_hand_landmarks",(i,n)=>{for(const s of i)i=xr(s),this.worldLandmarks.push(Zr(i));v(this,n)}),this.g.attachEmptyPacketListener("world_hand_landmarks",i=>{v(this,i)}),this.g.attachProtoVectorListener("handedness",(i,n)=>{var s=this.handedness,a=s.push;const c=[];for(const l of i){i=Oi(l);const h=[];for(const d of i.g())h.push({score:J(d,2)??0,index:Pe(d,1)??0??-1,categoryName:fe(W(d,3))??""??"",displayName:fe(W(d,4))??""??""});c.push(h)}a.call(s,...c),v(this,n)}),this.g.attachEmptyPacketListener("handedness",i=>{v(this,i)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Ie.prototype.detectForVideo=Ie.prototype.G,Ie.prototype.detect=Ie.prototype.F,Ie.prototype.setOptions=Ie.prototype.o,Ie.createFromModelPath=function(e,t){return M(Ie,e,{baseOptions:{modelAssetPath:t}})},Ie.createFromModelBuffer=function(e,t){return M(Ie,e,{baseOptions:{modelAssetBuffer:t}})},Ie.createFromOptions=function(e,t){return M(Ie,e,t)},Ie.HAND_CONNECTIONS=Fs;var Yc=$e([0,1],[1,2],[2,3],[3,7],[0,4],[4,5],[5,6],[6,8],[9,10],[11,12],[11,13],[13,15],[15,17],[15,19],[15,21],[17,19],[12,14],[14,16],[16,18],[16,20],[16,22],[18,20],[11,23],[12,24],[23,24],[23,25],[24,26],[25,27],[26,28],[27,29],[28,30],[29,31],[30,32],[27,31],[28,32]);function Xc(e){e.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]}}function Qc(e){try{if(!e.D)return e.h;e.D(e.h)}finally{$i(e)}}function Hi(e,t){e=Jr(e),t.push(Vi(e))}var z=class extends Ae{constructor(e,t){super(new ze(e,t),"input_frames_image",null,!1),this.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]},this.outputPoseSegmentationMasks=this.outputFaceBlendshapes=!1,N(e=this.j=new oc,0,1,t=new Y),this.I=new ls,N(this.j,0,2,this.I),this.W=new S2,N(this.j,0,3,this.W),this.u=new Gi,N(this.j,0,4,this.u),this.O=new Qa,N(this.j,0,5,this.O),this.A=new nc,N(this.j,0,6,this.A),this.M=new sc,N(this.j,0,7,this.M),_(this.u,2,.5),_(this.u,3,.3),_(this.O,2,.5),_(this.A,2,.5),_(this.A,3,.3),_(this.M,2,.5),_(this.I,2,.5)}get baseOptions(){return D(this.j,Y,1)}set baseOptions(e){N(this.j,0,1,e)}o(e){return"minFaceDetectionConfidence"in e&&_(this.u,2,e.minFaceDetectionConfidence??.5),"minFaceSuppressionThreshold"in e&&_(this.u,3,e.minFaceSuppressionThreshold??.3),"minFacePresenceConfidence"in e&&_(this.O,2,e.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in e&&(this.outputFaceBlendshapes=!!e.outputFaceBlendshapes),"minPoseDetectionConfidence"in e&&_(this.A,2,e.minPoseDetectionConfidence??.5),"minPoseSuppressionThreshold"in e&&_(this.A,3,e.minPoseSuppressionThreshold??.3),"minPosePresenceConfidence"in e&&_(this.M,2,e.minPosePresenceConfidence??.5),"outputPoseSegmentationMasks"in e&&(this.outputPoseSegmentationMasks=!!e.outputPoseSegmentationMasks),"minHandLandmarksConfidence"in e&&_(this.I,2,e.minHandLandmarksConfidence??.5),this.l(e)}F(e,t,r){const i=typeof t!="function"?t:{};return this.D=typeof t=="function"?t:r,Xc(this),He(this,e,i),Qc(this)}G(e,t,r,i){const n=typeof r!="function"?r:{};return this.D=typeof r=="function"?r:i,Xc(this),tt(this,e,n,t),Qc(this)}m(){var e=new Se;q(e,"input_frames_image"),O(e,"pose_landmarks"),O(e,"pose_world_landmarks"),O(e,"face_landmarks"),O(e,"left_hand_landmarks"),O(e,"left_hand_world_landmarks"),O(e,"right_hand_landmarks"),O(e,"right_hand_world_landmarks");const t=new Te,r=new ka;_e(r,1,"type.googleapis.com/mediapipe.tasks.vision.holistic_landmarker.proto.HolisticLandmarkerGraphOptions"),function(n,s){if(s!=null)if(Array.isArray(s))B(n,2,bi(s,0,qr));else{if(!(typeof s=="string"||s instanceof Ye||gn(s)))throw Error("invalid value in Any.value field: "+s+" expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");bt(n,2,bn(s,!1),Mt())}}(r,this.j.g());const i=new ye;_e(i,2,"mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"),Vn(i,8,ka,r),$(i,"IMAGE:input_frames_image"),F(i,"POSE_LANDMARKS:pose_landmarks"),F(i,"POSE_WORLD_LANDMARKS:pose_world_landmarks"),F(i,"FACE_LANDMARKS:face_landmarks"),F(i,"LEFT_HAND_LANDMARKS:left_hand_landmarks"),F(i,"LEFT_HAND_WORLD_LANDMARKS:left_hand_world_landmarks"),F(i,"RIGHT_HAND_LANDMARKS:right_hand_landmarks"),F(i,"RIGHT_HAND_WORLD_LANDMARKS:right_hand_world_landmarks"),i.o(t),Oe(e,i),Wi(this,e),this.g.attachProtoListener("pose_landmarks",(n,s)=>{Hi(n,this.h.poseLandmarks),v(this,s)}),this.g.attachEmptyPacketListener("pose_landmarks",n=>{v(this,n)}),this.g.attachProtoListener("pose_world_landmarks",(n,s)=>{var a=this.h.poseWorldLandmarks;n=xr(n),a.push(Zr(n)),v(this,s)}),this.g.attachEmptyPacketListener("pose_world_landmarks",n=>{v(this,n)}),this.outputPoseSegmentationMasks&&(F(i,"POSE_SEGMENTATION_MASK:pose_segmentation_mask"),kr(this,"pose_segmentation_mask"),this.g.Z("pose_segmentation_mask",(n,s)=>{this.h.poseSegmentationMasks=[Nr(this,n,!0,!this.D)],v(this,s)}),this.g.attachEmptyPacketListener("pose_segmentation_mask",n=>{this.h.poseSegmentationMasks=[],v(this,n)})),this.g.attachProtoListener("face_landmarks",(n,s)=>{Hi(n,this.h.faceLandmarks),v(this,s)}),this.g.attachEmptyPacketListener("face_landmarks",n=>{v(this,n)}),this.outputFaceBlendshapes&&(O(e,"extra_blendshapes"),F(i,"FACE_BLENDSHAPES:extra_blendshapes"),this.g.attachProtoListener("extra_blendshapes",(n,s)=>{var a=this.h.faceBlendshapes;this.outputFaceBlendshapes&&(n=Oi(n),a.push(ys(n.g()??[]))),v(this,s)}),this.g.attachEmptyPacketListener("extra_blendshapes",n=>{v(this,n)})),this.g.attachProtoListener("left_hand_landmarks",(n,s)=>{Hi(n,this.h.leftHandLandmarks),v(this,s)}),this.g.attachEmptyPacketListener("left_hand_landmarks",n=>{v(this,n)}),this.g.attachProtoListener("left_hand_world_landmarks",(n,s)=>{var a=this.h.leftHandWorldLandmarks;n=xr(n),a.push(Zr(n)),v(this,s)}),this.g.attachEmptyPacketListener("left_hand_world_landmarks",n=>{v(this,n)}),this.g.attachProtoListener("right_hand_landmarks",(n,s)=>{Hi(n,this.h.rightHandLandmarks),v(this,s)}),this.g.attachEmptyPacketListener("right_hand_landmarks",n=>{v(this,n)}),this.g.attachProtoListener("right_hand_world_landmarks",(n,s)=>{var a=this.h.rightHandWorldLandmarks;n=xr(n),a.push(Zr(n)),v(this,s)}),this.g.attachEmptyPacketListener("right_hand_world_landmarks",n=>{v(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};z.prototype.detectForVideo=z.prototype.G,z.prototype.detect=z.prototype.F,z.prototype.setOptions=z.prototype.o,z.createFromModelPath=function(e,t){return M(z,e,{baseOptions:{modelAssetPath:t}})},z.createFromModelBuffer=function(e,t){return M(z,e,{baseOptions:{modelAssetBuffer:t}})},z.createFromOptions=function(e,t){return M(z,e,t)},z.HAND_CONNECTIONS=Fs,z.POSE_CONNECTIONS=Yc,z.FACE_LANDMARKS_LIPS=Ns,z.FACE_LANDMARKS_LEFT_EYE=Ts,z.FACE_LANDMARKS_LEFT_EYEBROW=Ss,z.FACE_LANDMARKS_LEFT_IRIS=Gc,z.FACE_LANDMARKS_RIGHT_EYE=As,z.FACE_LANDMARKS_RIGHT_EYEBROW=Cs,z.FACE_LANDMARKS_RIGHT_IRIS=Vc,z.FACE_LANDMARKS_FACE_OVAL=Is,z.FACE_LANDMARKS_CONTOURS=jc,z.FACE_LANDMARKS_TESSELATION=Wc;var Ue=class extends Ae{constructor(e,t){super(new ze(e,t),"input_image","norm_rect",!0),this.j={classifications:[]},N(e=this.h=new ac,0,1,t=new Y)}get baseOptions(){return D(this.h,Y,1)}set baseOptions(e){N(this.h,0,1,e)}o(e){return N(this.h,0,2,ms(e,D(this.h,os,2))),this.l(e)}sa(e,t){return this.j={classifications:[]},He(this,e,t),this.j}ta(e,t,r){return this.j={classifications:[]},tt(this,e,r,t),this.j}m(){var e=new Se;q(e,"input_image"),q(e,"norm_rect"),O(e,"classifications");const t=new Te;Ze(t,A2,this.h);const r=new ye;_e(r,2,"mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"),$(r,"IMAGE:input_image"),$(r,"NORM_RECT:norm_rect"),F(r,"CLASSIFICATIONS:classifications"),r.o(t),Oe(e,r),this.g.attachProtoListener("classifications",(i,n)=>{this.j=P2(p2(i)),v(this,n)}),this.g.attachEmptyPacketListener("classifications",i=>{v(this,i)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Ue.prototype.classifyForVideo=Ue.prototype.ta,Ue.prototype.classify=Ue.prototype.sa,Ue.prototype.setOptions=Ue.prototype.o,Ue.createFromModelPath=function(e,t){return M(Ue,e,{baseOptions:{modelAssetPath:t}})},Ue.createFromModelBuffer=function(e,t){return M(Ue,e,{baseOptions:{modelAssetBuffer:t}})},Ue.createFromOptions=function(e,t){return M(Ue,e,t)};var Fe=class extends Ae{constructor(e,t){super(new ze(e,t),"image_in","norm_rect",!0),this.h=new cc,this.embeddings={embeddings:[]},N(e=this.h,0,1,t=new Y)}get baseOptions(){return D(this.h,Y,1)}set baseOptions(e){N(this.h,0,1,e)}o(e){var t=this.h,r=D(this.h,Ka,2);return r=r?r.clone():new Ka,e.l2Normalize!==void 0?B(r,1,$r(e.l2Normalize)):"l2Normalize"in e&&B(r,1),e.quantize!==void 0?B(r,2,$r(e.quantize)):"quantize"in e&&B(r,2),N(t,0,2,r),this.l(e)}za(e,t){return He(this,e,t),this.embeddings}Aa(e,t,r){return tt(this,e,r,t),this.embeddings}m(){var e=new Se;q(e,"image_in"),q(e,"norm_rect"),O(e,"embeddings_out");const t=new Te;Ze(t,C2,this.h);const r=new ye;_e(r,2,"mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"),$(r,"IMAGE:image_in"),$(r,"NORM_RECT:norm_rect"),F(r,"EMBEDDINGS:embeddings_out"),r.o(t),Oe(e,r),this.g.attachProtoListener("embeddings_out",(i,n)=>{i=b2(i),this.embeddings=function(s){return{embeddings:lt(s,y2,1).map(a=>{var h,d;const c={headIndex:Pe(a,3)??0??-1,headName:fe(W(a,4))??""??""};var l=a.v;return jo(l,0|l[x],za,On(a,1))!==void 0?(a=Vt(a=D(a,za,On(a,1),void 0),1,Qe,Gt()),c.floatEmbedding=a.slice()):(l=new Uint8Array(0),c.quantizedEmbedding=((d=(h=D(a,m2,On(a,2),void 0))==null?void 0:h.na())==null?void 0:d.h())??l),c}),timestampMs:mc(zo(s))}}(i),v(this,n)}),this.g.attachEmptyPacketListener("embeddings_out",i=>{v(this,i)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Fe.cosineSimilarity=function(e,t){if(e.floatEmbedding&&t.floatEmbedding)e=vc(e.floatEmbedding,t.floatEmbedding);else{if(!e.quantizedEmbedding||!t.quantizedEmbedding)throw Error("Cannot compute cosine similarity between quantized and float embeddings.");e=vc(bc(e.quantizedEmbedding),bc(t.quantizedEmbedding))}return e},Fe.prototype.embedForVideo=Fe.prototype.Aa,Fe.prototype.embed=Fe.prototype.za,Fe.prototype.setOptions=Fe.prototype.o,Fe.createFromModelPath=function(e,t){return M(Fe,e,{baseOptions:{modelAssetPath:t}})},Fe.createFromModelBuffer=function(e,t){return M(Fe,e,{baseOptions:{modelAssetBuffer:t}})},Fe.createFromOptions=function(e,t){return M(Fe,e,t)};var Ls=class{constructor(e,t,r){this.confidenceMasks=e,this.categoryMask=t,this.qualityScores=r}close(){var e,t;(e=this.confidenceMasks)==null||e.forEach(r=>{r.close()}),(t=this.categoryMask)==null||t.close()}};function j2(e){var r,i;const t=function(n){return lt(n,ye,1)}(e.ca()).filter(n=>(fe(W(n,1))??"").includes("mediapipe.tasks.TensorsToSegmentationCalculator"));if(e.u=[],t.length>1)throw Error("The graph has more than one mediapipe.tasks.TensorsToSegmentationCalculator.");t.length===1&&(((i=(r=D(t[0],Te,7))==null?void 0:r.j())==null?void 0:i.g())??new Map).forEach((n,s)=>{e.u[Number(s)]=fe(W(n,1))??""})}function Jc(e){e.categoryMask=void 0,e.confidenceMasks=void 0,e.qualityScores=void 0}function Zc(e){try{const t=new Ls(e.confidenceMasks,e.categoryMask,e.qualityScores);if(!e.j)return t;e.j(t)}finally{$i(e)}}Ls.prototype.close=Ls.prototype.close;var be=class extends Ae{constructor(e,t){super(new ze(e,t),"image_in","norm_rect",!1),this.u=[],this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new ws,this.A=new lc,N(this.h,0,3,this.A),N(e=this.h,0,1,t=new Y)}get baseOptions(){return D(this.h,Y,1)}set baseOptions(e){N(this.h,0,1,e)}o(e){return e.displayNamesLocale!==void 0?B(this.h,2,Hr(e.displayNamesLocale)):"displayNamesLocale"in e&&B(this.h,2),"outputCategoryMask"in e&&(this.outputCategoryMask=e.outputCategoryMask??!1),"outputConfidenceMasks"in e&&(this.outputConfidenceMasks=e.outputConfidenceMasks??!0),super.l(e)}L(){j2(this)}segment(e,t,r){const i=typeof t!="function"?t:{};return this.j=typeof t=="function"?t:r,Jc(this),He(this,e,i),Zc(this)}La(e,t,r,i){const n=typeof r!="function"?r:{};return this.j=typeof r=="function"?r:i,Jc(this),tt(this,e,n,t),Zc(this)}Da(){return this.u}m(){var e=new Se;q(e,"image_in"),q(e,"norm_rect");const t=new Te;Ze(t,hc,this.h);const r=new ye;_e(r,2,"mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"),$(r,"IMAGE:image_in"),$(r,"NORM_RECT:norm_rect"),r.o(t),Oe(e,r),Wi(this,e),this.outputConfidenceMasks&&(O(e,"confidence_masks"),F(r,"CONFIDENCE_MASKS:confidence_masks"),kr(this,"confidence_masks"),this.g.aa("confidence_masks",(i,n)=>{this.confidenceMasks=i.map(s=>Nr(this,s,!0,!this.j)),v(this,n)}),this.g.attachEmptyPacketListener("confidence_masks",i=>{this.confidenceMasks=[],v(this,i)})),this.outputCategoryMask&&(O(e,"category_mask"),F(r,"CATEGORY_MASK:category_mask"),kr(this,"category_mask"),this.g.Z("category_mask",(i,n)=>{this.categoryMask=Nr(this,i,!1,!this.j),v(this,n)}),this.g.attachEmptyPacketListener("category_mask",i=>{this.categoryMask=void 0,v(this,i)})),O(e,"quality_scores"),F(r,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",(i,n)=>{this.qualityScores=i,v(this,n)}),this.g.attachEmptyPacketListener("quality_scores",i=>{this.categoryMask=void 0,v(this,i)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};be.prototype.getLabels=be.prototype.Da,be.prototype.segmentForVideo=be.prototype.La,be.prototype.segment=be.prototype.segment,be.prototype.setOptions=be.prototype.o,be.createFromModelPath=function(e,t){return M(be,e,{baseOptions:{modelAssetPath:t}})},be.createFromModelBuffer=function(e,t){return M(be,e,{baseOptions:{modelAssetBuffer:t}})},be.createFromOptions=function(e,t){return M(be,e,t)};var Ms=class{constructor(e,t,r){this.confidenceMasks=e,this.categoryMask=t,this.qualityScores=r}close(){var e,t;(e=this.confidenceMasks)==null||e.forEach(r=>{r.close()}),(t=this.categoryMask)==null||t.close()}};Ms.prototype.close=Ms.prototype.close;var rt=class extends Ae{constructor(e,t){super(new ze(e,t),"image_in","norm_rect_in",!1),this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new ws,this.u=new lc,N(this.h,0,3,this.u),N(e=this.h,0,1,t=new Y)}get baseOptions(){return D(this.h,Y,1)}set baseOptions(e){N(this.h,0,1,e)}o(e){return"outputCategoryMask"in e&&(this.outputCategoryMask=e.outputCategoryMask??!1),"outputConfidenceMasks"in e&&(this.outputConfidenceMasks=e.outputConfidenceMasks??!0),super.l(e)}segment(e,t,r,i){const n=typeof r!="function"?r:{};if(this.j=typeof r=="function"?r:i,this.qualityScores=this.categoryMask=this.confidenceMasks=void 0,r=this.C+1,i=new wc,t.keypoint&&t.scribble)throw Error("Cannot provide both keypoint and scribble.");if(t.keypoint){var s=new gs;bt(s,3,$r(!0),!1),bt(s,1,Wr(t.keypoint.x),0),bt(s,2,Wr(t.keypoint.y),0),Kr(i,1,ps,s)}else{if(!t.scribble)throw Error("Must provide either a keypoint or a scribble.");{const c=new F2;for(s of t.scribble)bt(t=new gs,3,$r(!0),!1),bt(t,1,Wr(s.x),0),bt(t,2,Wr(s.y),0),Vn(c,1,gs,t);Kr(i,2,ps,c)}}this.g.addProtoToStream(i.g(),"mediapipe.tasks.vision.interactive_segmenter.proto.RegionOfInterest","roi_in",r),He(this,e,n);e:{try{const c=new Ms(this.confidenceMasks,this.categoryMask,this.qualityScores);if(!this.j){var a=c;break e}this.j(c)}finally{$i(this)}a=void 0}return a}m(){var e=new Se;q(e,"image_in"),q(e,"roi_in"),q(e,"norm_rect_in");const t=new Te;Ze(t,hc,this.h);const r=new ye;_e(r,2,"mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraphV2"),$(r,"IMAGE:image_in"),$(r,"ROI:roi_in"),$(r,"NORM_RECT:norm_rect_in"),r.o(t),Oe(e,r),Wi(this,e),this.outputConfidenceMasks&&(O(e,"confidence_masks"),F(r,"CONFIDENCE_MASKS:confidence_masks"),kr(this,"confidence_masks"),this.g.aa("confidence_masks",(i,n)=>{this.confidenceMasks=i.map(s=>Nr(this,s,!0,!this.j)),v(this,n)}),this.g.attachEmptyPacketListener("confidence_masks",i=>{this.confidenceMasks=[],v(this,i)})),this.outputCategoryMask&&(O(e,"category_mask"),F(r,"CATEGORY_MASK:category_mask"),kr(this,"category_mask"),this.g.Z("category_mask",(i,n)=>{this.categoryMask=Nr(this,i,!1,!this.j),v(this,n)}),this.g.attachEmptyPacketListener("category_mask",i=>{this.categoryMask=void 0,v(this,i)})),O(e,"quality_scores"),F(r,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",(i,n)=>{this.qualityScores=i,v(this,n)}),this.g.attachEmptyPacketListener("quality_scores",i=>{this.categoryMask=void 0,v(this,i)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};rt.prototype.segment=rt.prototype.segment,rt.prototype.setOptions=rt.prototype.o,rt.createFromModelPath=function(e,t){return M(rt,e,{baseOptions:{modelAssetPath:t}})},rt.createFromModelBuffer=function(e,t){return M(rt,e,{baseOptions:{modelAssetBuffer:t}})},rt.createFromOptions=function(e,t){return M(rt,e,t)};var Ge=class extends Ae{constructor(e,t){super(new ze(e,t),"input_frame_gpu","norm_rect",!1),this.j={detections:[]},N(e=this.h=new gc,0,1,t=new Y)}get baseOptions(){return D(this.h,Y,1)}set baseOptions(e){N(this.h,0,1,e)}o(e){return e.displayNamesLocale!==void 0?B(this.h,2,Hr(e.displayNamesLocale)):"displayNamesLocale"in e&&B(this.h,2),e.maxResults!==void 0?dt(this.h,3,e.maxResults):"maxResults"in e&&B(this.h,3),e.scoreThreshold!==void 0?_(this.h,4,e.scoreThreshold):"scoreThreshold"in e&&B(this.h,4),e.categoryAllowlist!==void 0?vi(this.h,5,e.categoryAllowlist):"categoryAllowlist"in e&&B(this.h,5),e.categoryDenylist!==void 0?vi(this.h,6,e.categoryDenylist):"categoryDenylist"in e&&B(this.h,6),this.l(e)}F(e,t){return this.j={detections:[]},He(this,e,t),this.j}G(e,t,r){return this.j={detections:[]},tt(this,e,r,t),this.j}m(){var e=new Se;q(e,"input_frame_gpu"),q(e,"norm_rect"),O(e,"detections");const t=new Te;Ze(t,L2,this.h);const r=new ye;_e(r,2,"mediapipe.tasks.vision.ObjectDetectorGraph"),$(r,"IMAGE:input_frame_gpu"),$(r,"NORM_RECT:norm_rect"),F(r,"DETECTIONS:detections"),r.o(t),Oe(e,r),this.g.attachProtoVectorListener("detections",(i,n)=>{for(const s of i)i=Va(s),this.j.detections.push(yc(i));v(this,n)}),this.g.attachEmptyPacketListener("detections",i=>{v(this,i)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Ge.prototype.detectForVideo=Ge.prototype.G,Ge.prototype.detect=Ge.prototype.F,Ge.prototype.setOptions=Ge.prototype.o,Ge.createFromModelPath=async function(e,t){return M(Ge,e,{baseOptions:{modelAssetPath:t}})},Ge.createFromModelBuffer=function(e,t){return M(Ge,e,{baseOptions:{modelAssetBuffer:t}})},Ge.createFromOptions=function(e,t){return M(Ge,e,t)};var Ps=class{constructor(e,t,r){this.landmarks=e,this.worldLandmarks=t,this.segmentationMasks=r}close(){var e;(e=this.segmentationMasks)==null||e.forEach(t=>{t.close()})}};function Rc(e){e.landmarks=[],e.worldLandmarks=[],e.segmentationMasks=void 0}function el(e){try{const t=new Ps(e.landmarks,e.worldLandmarks,e.segmentationMasks);if(!e.u)return t;e.u(t)}finally{$i(e)}}Ps.prototype.close=Ps.prototype.close;var Le=class extends Ae{constructor(e,t){super(new ze(e,t),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.outputSegmentationMasks=!1,N(e=this.h=new pc,0,1,t=new Y),this.A=new sc,N(this.h,0,3,this.A),this.j=new nc,N(this.h,0,2,this.j),dt(this.j,4,1),_(this.j,2,.5),_(this.A,2,.5),_(this.h,4,.5)}get baseOptions(){return D(this.h,Y,1)}set baseOptions(e){N(this.h,0,1,e)}o(e){return"numPoses"in e&&dt(this.j,4,e.numPoses??1),"minPoseDetectionConfidence"in e&&_(this.j,2,e.minPoseDetectionConfidence??.5),"minTrackingConfidence"in e&&_(this.h,4,e.minTrackingConfidence??.5),"minPosePresenceConfidence"in e&&_(this.A,2,e.minPosePresenceConfidence??.5),"outputSegmentationMasks"in e&&(this.outputSegmentationMasks=e.outputSegmentationMasks??!1),this.l(e)}F(e,t,r){const i=typeof t!="function"?t:{};return this.u=typeof t=="function"?t:r,Rc(this),He(this,e,i),el(this)}G(e,t,r,i){const n=typeof r!="function"?r:{};return this.u=typeof r=="function"?r:i,Rc(this),tt(this,e,n,t),el(this)}m(){var e=new Se;q(e,"image_in"),q(e,"norm_rect"),O(e,"normalized_landmarks"),O(e,"world_landmarks"),O(e,"segmentation_masks");const t=new Te;Ze(t,M2,this.h);const r=new ye;_e(r,2,"mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"),$(r,"IMAGE:image_in"),$(r,"NORM_RECT:norm_rect"),F(r,"NORM_LANDMARKS:normalized_landmarks"),F(r,"WORLD_LANDMARKS:world_landmarks"),r.o(t),Oe(e,r),Wi(this,e),this.g.attachProtoVectorListener("normalized_landmarks",(i,n)=>{this.landmarks=[];for(const s of i)i=Jr(s),this.landmarks.push(Vi(i));v(this,n)}),this.g.attachEmptyPacketListener("normalized_landmarks",i=>{this.landmarks=[],v(this,i)}),this.g.attachProtoVectorListener("world_landmarks",(i,n)=>{this.worldLandmarks=[];for(const s of i)i=xr(s),this.worldLandmarks.push(Zr(i));v(this,n)}),this.g.attachEmptyPacketListener("world_landmarks",i=>{this.worldLandmarks=[],v(this,i)}),this.outputSegmentationMasks&&(F(r,"SEGMENTATION_MASK:segmentation_masks"),kr(this,"segmentation_masks"),this.g.aa("segmentation_masks",(i,n)=>{this.segmentationMasks=i.map(s=>Nr(this,s,!0,!this.u)),v(this,n)}),this.g.attachEmptyPacketListener("segmentation_masks",i=>{this.segmentationMasks=[],v(this,i)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Le.prototype.detectForVideo=Le.prototype.G,Le.prototype.detect=Le.prototype.F,Le.prototype.setOptions=Le.prototype.o,Le.createFromModelPath=function(e,t){return M(Le,e,{baseOptions:{modelAssetPath:t}})},Le.createFromModelBuffer=function(e,t){return M(Le,e,{baseOptions:{modelAssetBuffer:t}})},Le.createFromOptions=function(e,t){return M(Le,e,t)},Le.POSE_CONNECTIONS=Yc;const qi="https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/latest/face_landmarker.task",W2="https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@latest/wasm",$2=()=>{const e=u.useRef(null),[t,r]=u.useState(!1),[i,n]=u.useState("Initializing..."),[s,a]=u.useState(0),[c,l]=u.useState(!1);u.useEffect(()=>{"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").then(w=>{console.log("ServiceWorker registered:",w)}).catch(w=>{console.log("ServiceWorker registration failed:",w)})},[]);const h=async()=>"caches"in window?await(await caches.open("mediapipe-models-v1")).match(qi)!==void 0:!1,d=async()=>{try{const w=await fetch(qi),g=w.headers.get("content-length"),p=g?parseInt(g,10):0;if(!w.body)throw new Error("No response body");const y=w.body.getReader();let b=0;const m=[];for(;;){const{done:S,value:I}=await y.read();if(S)break;if(m.push(I),b+=I.length,p){const C=Math.round(b/p*100);a(C),n(`Downloading model... ${C}%`)}}return"caches"in window&&await(await caches.open("mediapipe-models-v1")).put(qi,new Response(new Blob(m),{headers:{"Content-Type":"application/octet-stream"}})),!0}catch(w){return console.error("Failed to preload model:",w),!1}};return u.useEffect(()=>{(async()=>{try{n("Checking cached models..."),await h()?n("Using cached model..."):(n("Model not cached. Downloading..."),await d()),n("Loading MediaPipe WASM...");const p=await qt.forVisionTasks(W2);n("Creating face landmarker...");const y=await K.createFromOptions(p,{baseOptions:{modelAssetPath:qi,delegate:"GPU"},runningMode:"VIDEO",outputFaceBlendshapes:!0,numFaces:2});e.current=y,r(!0),n("Model loaded successfully ✅")}catch(g){console.error("Model init error:",g),n(`Error: ${g==null?void 0:g.message}`),(g==null?void 0:g.name)==="NotAllowedError"&&l(!0)}})()},[]),{faceLandmarkerRef:e,isModelLoaded:t,statusMessage:i,setStatusMessage:n,loadingProgress:s,permissionDenied:c,clearCache:async()=>{"caches"in window&&(await caches.delete("mediapipe-models-v1"),n("Cache cleared. Please refresh to re-download models."))}}},z2=()=>{const[e,t]=u.useState(0),r=u.useRef({lastTime:0,frames:0,fps:0}),i=u.useCallback(()=>{const n=performance.now(),s=r.current;if(s.frames++,n-s.lastTime>=1e3){const a=Math.round(s.frames*1e3/(n-s.lastTime));t(a),s.frames=0,s.lastTime=n}},[]);return{fps:e,updateFPS:i}},H2=()=>{const e=u.useRef({value:100,isLookingAway:!1}),t=u.useCallback((s,a,c,l)=>{if(!s||!c||!a)return;const h=s.getContext("2d");if(!h)return;const{width:d,height:f}=s;if(h.clearRect(0,0,d,f),h.drawImage(a,0,0,d,f),l){h.fillStyle="#00FF00";for(const w of c)h.fillRect(w.x*d-.5,w.y*f-.5,1,1)}},[]),r=u.useCallback(s=>{const a=e.current.value/100,c=100,l=20,h=20,d=40;s.fillStyle="rgba(0, 0, 0, 0.3)",s.fillRect(h,d,l,c),s.fillStyle=`rgba(${Math.floor(255*(1-a))}, ${Math.floor(255*a)}, 0, 0.8)`;const f=c*a;s.fillRect(h,d+c-f,l,f),s.fillStyle="#FFFFFF",s.fillRect(h,d+c*(1-a),l,2)},[]),i=u.useCallback((s,a,c,l,h,d,f)=>{if(t(s,a,c,l),h&&d&&f){const w=s.getContext("2d");w&&r(w)}},[t,r]),n=u.useCallback((s,a)=>{const c=s.getContext("2d");c&&(c.clearRect(0,0,s.width,s.height),c.drawImage(a,0,0,s.width,s.height))},[]);return{drawLandmarks:t,drawEngagementBar:r,drawWithEngagementBar:i,clearCanvas:n,engagementRef:e}},q2=50,K2=()=>{const[e,t]=u.useState(100),[r,i]=u.useState(!1),n=u.useRef(0),s=u.useCallback((a,c,l)=>{if(!l||a.length<468)return;const h=a[33],d=a[263],f=a[1];if(!h||!d||!f)return;const w=(h.x+d.x)*.5,g=(h.y+d.y)*.5,p=w-c.x,y=g-c.y,b=Math.sqrt(p*p+y*y),m=Math.abs(f.y-c.noseY)*100,S=Math.abs(f.x-c.noseX)*100,I=Math.max(0,100-(b*200+m+S)),C=I<q2,U=performance.now();return U-n.current>100&&(t(I),i(C),n.current=U),{engagement:I,isLookingAway:C}},[]);return{engagement:e,isLookingAway:r,analyzeGaze:s,setEngagement:t,setIsLookingAway:i}},Y2=.05,X2=()=>{const[e,t]=u.useState(!1),[r,i]=u.useState(!1),n=u.useCallback((c,l)=>Math.sqrt(Math.pow(c.x-l.x,2)+Math.pow(c.y-l.y,2)),[]),s=u.useCallback((c,l)=>{if(!c||!l)return 0;const h=[1,33,263,61,291,10,152];let d=0,f=0;const w=l[33],g=l[263],p=c[33],y=c[263];if(!w||!g||!p||!y)return 0;const b=n(w,g),m=n(p,y);if(b===0||m===0)return 0;for(const I of h){const C=l[I],U=c[I];if(C&&U){const L=w.x+(U.x-p.x)*b/m,V=w.y+(U.y-p.y)*b/m;d+=n(C,{x:L,y:V}),f++}}return f===0?0:d/f},[n]),a=u.useCallback((c,l,h,d)=>{if(!c.faceLandmarks||c.faceLandmarks.length===0)return l?(d("Reference face not detected."),i(!0),t(!1)):i(!1),null;if(l&&h){let f=null,w=0;for(const g of c.faceLandmarks)s(g,h)<Y2&&(f=g,w++);return w===1?(t(!1),i(!1),d("Reference face tracked."),f):w>1?(t(!0),i(!1),d("Multiple matching faces detected. Tracking suspended."),null):(t(!1),i(!0),d("Reference face not detected."),null)}else{c.faceLandmarks.length>1?(t(!0),d("Multiple faces detected. Set reference for single face tracking.")):(t(!1),d("No reference set. Detecting first face."));const f=c.faceLandmarks[0];return!f||f.length<468?null:f}},[s]);return{multipleFacesDetected:e,referenceFaceNotDetected:r,analyzeFace:a,setMultipleFacesDetected:t,setReferenceFaceNotDetected:i}},Q2=1e3,J2=(e,t)=>{const[r,i]=u.useState(!1),[n,s]=u.useState("face_detected"),{incrementGazeViolation:a}=js(),{multipleFacesDetected:c,referenceFaceNotDetected:l,isLookingAway:h}=e;u.useEffect(()=>{let w;return(h||c||l)&&t?w=setTimeout(()=>{i(!0),h?(s("looking_away"),a("looking_away")):c?(s("multiple_faces"),a("multiple_faces")):l&&(s("no_face_detected"),a("no_face_detected"))},Q2):(i(!1),s("face_detected")),()=>{clearTimeout(w)}},[h,c,l,t,a]);const d=u.useCallback(()=>c?"multiple_faces":l?"no_face_detected":h?"looking_away":"face_detected",[c,l,h]),f=u.useCallback(()=>{i(!1),s("face_detected")},[]);return{showGazeWarningModal:r,faceDetectionState:n,getWarningType:d,closeWarningModal:f,setShowGazeWarningModal:i,setFaceDetectionState:s}};class X extends Error{constructor(t,r,i=!1){super(t),this.code=r,this.recoverable=i,this.name="STTError"}}class Z2{constructor(t={}){Me(this,"config");Me(this,"mediaRecorder",null);Me(this,"audioChunks",[]);Me(this,"recordingStream",null);Me(this,"autoStopTimeoutId",null);this.config={baseUrl:"http://localhost:8000",provider:"groq",model:"whisper-large-v3-turbo",language:"en",includeTimestamps:!1,temperature:0,...t}}updateConfig(t){this.config={...this.config,...t}}isRecordingSupported(){return!!(navigator.mediaDevices&&typeof navigator.mediaDevices.getUserMedia=="function"&&window.MediaRecorder)}async startRecording(t,r){var i;if(!this.isRecordingSupported())throw new X("Audio recording is not supported in this browser","RECORDING_NOT_SUPPORTED",!1);if(this.isRecording())throw new X("Recording is already in progress","ALREADY_RECORDING",!0);try{this.recordingStream=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,sampleRate:44100}}),this.audioChunks=[];const n=this.getSupportedMimeType();this.mediaRecorder=new MediaRecorder(this.recordingStream,{mimeType:n}),this.mediaRecorder.ondataavailable=s=>{var a;s.data.size>0&&(this.audioChunks.push(s.data),(a=r==null?void 0:r.onDataAvailable)==null||a.call(r,s.data))},this.mediaRecorder.onstop=()=>{var s;(s=r==null?void 0:r.onStop)==null||s.call(r)},this.mediaRecorder.onerror=s=>{var c;const a=new X(`Recording failed: ${s.error}`,"RECORDING_ERROR",!0);(c=r==null?void 0:r.onError)==null||c.call(r,a),this.cleanup()},this.mediaRecorder.start(100),(i=r==null?void 0:r.onStart)==null||i.call(r),t&&t>0&&(this.autoStopTimeoutId=setTimeout(()=>{this.isRecording()&&this.stopRecording()},t*1e3))}catch(n){if(this.cleanup(),n instanceof Error){if(n.name==="NotAllowedError"||n.name==="PermissionDeniedError")throw new X("Microphone permission was denied","PERMISSION_DENIED",!1);if(n.name==="NotFoundError")throw new X("No microphone found","NO_MICROPHONE",!1)}throw new X(`Failed to start recording: ${n instanceof Error?n.message:String(n)}`,"START_RECORDING_FAILED",!0)}}async stopRecording(){if(this.autoStopTimeoutId&&(clearTimeout(this.autoStopTimeoutId),this.autoStopTimeoutId=null),!this.mediaRecorder||!this.isRecording())throw new X("No active recording to stop","NO_ACTIVE_RECORDING",!1);return new Promise((t,r)=>{if(!this.mediaRecorder){r(new X("MediaRecorder is null","MEDIARECORDER_NULL",!1));return}const i=this.mediaRecorder,n=()=>{try{const s=i.mimeType||"audio/webm",a=new Blob(this.audioChunks,{type:s});this.cleanup(),t(a)}catch(s){r(new X(`Failed to create audio blob: ${s instanceof Error?s.message:String(s)}`,"BLOB_CREATION_FAILED",!1))}};i.addEventListener("stop",n,{once:!0}),i.stop()})}async transcribe(t){const{audioBlob:r}=t;if(!r||r.size===0)throw new X("Audio blob is empty or invalid","INVALID_AUDIO",!1);try{const i=new FormData,n=new File([r],"recording.wav",{type:r.type||"audio/wav"});if(i.append("file",n),i.append("qna_id",this.config.qnaId||""),!this.config.interviewId)throw new X("Interview ID is missing from configuration","MISSING_INTERVIEW_ID",!1);const s=await gt(`${this.config.baseUrl}${mt.TRANSCRIBE_ANSWER(this.config.interviewId)}`,{method:"POST",headers:{accept:"application/json","X-STT-Provider":this.config.provider||"groq",...this.config.authToken&&{Authorization:`Bearer ${this.config.authToken}`}},body:i},{attempts:1,backoff:"exponential",baseDelay:1e3,maxDelay:3e3,jitter:!0});if(!s.ok){const c=await s.text();let l=`STT request failed: ${s.status} ${s.statusText}`;try{const h=JSON.parse(c);l=h.message||h.error||l}catch{l=c||l}throw new X(l,`HTTP_${s.status}`,s.status>=500)}return{transcript:(await s.json()).data.transcribed_text??""}}catch(i){throw i instanceof X?i:new X(`Transcription failed: ${i instanceof Error?i.message:String(i)}`,"TRANSCRIPTION_FAILED",!0)}}cancelRecording(){this.autoStopTimeoutId&&(clearTimeout(this.autoStopTimeoutId),this.autoStopTimeoutId=null),this.mediaRecorder&&this.isRecording()&&this.mediaRecorder.stop(),this.cleanup()}isRecording(){return this.mediaRecorder!==null&&this.mediaRecorder.state==="recording"}getSupportedMimeType(){const t=["audio/webm","audio/webm;codecs=opus","audio/ogg;codecs=opus","audio/mp4","audio/wav"];for(const r of t)if(MediaRecorder.isTypeSupported(r))return r;return"audio/webm"}getRecordingStream(){return this.recordingStream}cleanup(){this.recordingStream&&(this.recordingStream.getTracks().forEach(t=>t.stop()),this.recordingStream=null),this.mediaRecorder=null,this.audioChunks=[],this.autoStopTimeoutId&&(clearTimeout(this.autoStopTimeoutId),this.autoStopTimeoutId=null)}}const Tr=new Z2,R2=(e,t,r,i)=>{const n=u.useRef(null);return u.useEffect(()=>{if(!t)return;const s=async()=>{try{const l=await navigator.mediaDevices.getUserMedia({video:{width:{ideal:640},height:{ideal:480},facingMode:"user"}});e.current&&(e.current.srcObject=l,e.current.onloadeddata=()=>{r()})}catch(l){console.error("Camera access error:",l),i("Camera access failed")}},a=n.current,c=e.current;return s(),()=>{a&&cancelAnimationFrame(a),c!=null&&c.srcObject&&c.srcObject.getTracks().forEach(h=>h.stop())}},[t,r]),u.useEffect(()=>{const s=Tr.getRecordingStream();if(s&&e.current){e.current.srcObject=s;const a=s.getVideoTracks(),c=s.getAudioTracks(),l=()=>{console.log("Media track ended - permission may have been revoked")};[...a,...c].forEach(h=>{h.addEventListener("ended",l)})}},[]),{animationFrameRef:n}},e1=(e,t,r,i,n,s,a,c,l,h,d,f,w,g,p)=>{const y=u.useRef(null),b=u.useCallback(()=>{var C;const m=e.current,S=t.current,I=r.current;if(!m||m.readyState<2||!I||!S){y.current=requestAnimationFrame(b);return}i();try{const U=performance.now(),L=I.detectForVideo(m,U);if(((C=L.faceLandmarks)==null?void 0:C.length)>0){p(!1);const V=n(L,l,h.current,g);V?(s(S,m,V,d,f,w,l),l&&w&&c(V,h.current,w)):a(S,m)}else a(S,m),l?(p(!0),g("Reference face not detected.")):p(!1)}catch(U){console.error("Face detection error:",U)}y.current=requestAnimationFrame(b)},[e,t,r,i,n,s,a,c,l,h,d,f,w,g,p]);return{renderLoop:b,animationFrameRef:y}},t1=(e,t,r,i)=>{const{referenceSet:n,referenceRef:s,setReferenceData:a}=js(),c=u.useRef(s),l=u.useCallback(()=>{c.current=s},[s]),h=u.useCallback(()=>{var w;const d=e.current,f=t.current;if(console.log({faceLandmarker:d,video:f}),!(!d||!f))try{const g=performance.now(),p=d.detectForVideo(f,g);if((w=p.faceLandmarks)!=null&&w[0]){const y=p.faceLandmarks[0],b=y[33],m=y[263],S=y[1];b&&m&&S&&(c.current={x:(b.x+m.x)*.5,y:(b.y+m.y)*.5,noseX:S.x,noseY:S.y},a(!0,c.current),r("Reference set. Gaze tracking active."),console.log("Reference set. Gaze tracking active.",c.current),i&&i())}}catch(g){console.error("Set reference error:",g),r("Failed to set reference")}},[e,t,r,a,i]);return{referenceSet:n,referenceRef:c,setReference:h,syncReference:l}},Ds=({isOpen:e,onClose:t,children:r,title:i,showCloseButton:n=!0,closeOnOverlayClick:s=!0,closeOnEscape:a=!0,className:c=""})=>{if(u.useEffect(()=>{if(!e||!a)return;const d=f=>{f.key==="Escape"&&t()};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[e,a,t]),u.useEffect(()=>(e?(document.body.style.overflow="hidden",document.body.classList.add("interview-widget-container")):(document.body.style.overflow="unset",document.body.classList.remove("interview-widget-container")),()=>{document.body.style.overflow="unset",document.body.classList.remove("interview-widget-container")}),[e]),!e)return null;const l=d=>{s&&d.target===d.currentTarget&&t()},h=o.jsxs("div",{className:"iw-fixed iw-inset-0 iw-z-50 iw-flex iw-items-center iw-justify-center",children:[o.jsx("div",{className:"iw-fixed iw-inset-0 iw-bg-black iw-bg-opacity-50 iw-transition-opacity",onClick:l}),o.jsxs("div",{className:`iw-relative iw-bg-white iw-rounded-lg iw-shadow-xl iw-max-w-md iw-w-full iw-mx-4 iw-max-h-[90vh] iw-overflow-hidden ${c}`,role:"dialog","aria-modal":"true","aria-labelledby":i?"dialog-title":void 0,children:[(i||n)&&o.jsxs("div",{className:"iw-flex iw-items-center iw-justify-between iw-p-4 iw-border-b iw-border-gray-200",children:[i&&o.jsx("h2",{id:"dialog-title",className:"iw-text-lg iw-font-semibold iw-text-gray-900",children:i}),n&&o.jsx("button",{onClick:t,className:"iw-p-1 iw-text-gray-400 iw-hover:text-gray-600 iw-transition-colors iw-rounded iw-hover:bg-gray-100","aria-label":"Close dialog",children:o.jsx("svg",{className:"iw-w-5 iw-h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),o.jsx("div",{className:"iw-p-4 iw-overflow-y-auto",children:r})]})]});return pl.createPortal(h,document.body)},Ki=({children:e,variant:t="primary",size:r="md",fullWidth:i=!1,isLoading:n=!1,disabled:s,className:a="",...c})=>{const l="iw-inline-flex iw-items-center iw-justify-center iw-rounded-md iw-font-medium iw-transition-colors iw-focus:outline-none iw-focus:ring-2 iw-focus:ring-primary-500 iw-focus:ring-offset-2",h={primary:"iw-bg-primary-600 iw-text-white iw-hover:bg-primary-700 iw-border iw-border-transparent",secondary:"iw-bg-primary-100 iw-text-primary-700 iw-hover:bg-primary-200 iw-border iw-border-transparent",outline:"iw-bg-transparent iw-text-primary-700 iw-border iw-border-primary-500 iw-hover:bg-primary-50",text:"iw-bg-transparent iw-text-primary-600 iw-hover:bg-primary-50 iw-border iw-border-transparent",gradient:"iw-text-white iw-border iw-border-transparent iw-bg-gradient-to-r iw-from-purple-500 iw-to-indigo-500 hover:iw-from-purple-600 hover:iw-to-indigo-600"},d={sm:"iw-px-3 iw-py-1.5 iw-text-sm",md:"iw-px-4 iw-py-2.5 iw-text-sm",lg:"iw-px-5 iw-py-3 iw-text-base"},f="iw-disabled:opacity-50 iw-disabled:cursor-not-allowed iw-disabled:pointer-events-none",w=i?"iw-w-full":"";return o.jsxs("button",{className:`${l} ${h[t]} ${d[r]} ${w} ${f} ${a}`,disabled:s||n,...c,children:[n&&o.jsx(Ys,{height:16,width:16,style:{marginRight:"3px"}}),e]})},ei=e=>{const{baseColor:t,borderRadius:r}=ci(),{loading:i,children:n,...s}=e;return o.jsx(Ki,{style:{background:Ml(t),borderRadius:r},...s,children:i?o.jsx(Ys,{}):n})};function r1({isOpen:e,onClose:t,warningType:r}){const i=Xs[r],n=i.icon,s=()=>{t()};return r==="face_detected"?null:o.jsx(Ds,{isOpen:e,onClose:t,children:e&&o.jsx("div",{className:"iw-bg-white iw-border-white iw-border iw-p-0 iw-shadow-lg sm:iw-max-w-md",children:o.jsxs("div",{children:[o.jsx("div",{className:"iw-sr-only",children:i.description}),o.jsxs("div",{className:"iw-px-8 iw-py-8 iw-text-center",children:[o.jsx("div",{className:`iw-mx-auto iw-mb-6 iw-flex iw-h-16 iw-w-16 iw-items-center iw-justify-center iw-rounded-full ${i.iconBg} border ${i.iconBorder}`,children:o.jsx(n,{className:`iw-h-7 iw-w-7 ${i.iconColor}`})}),o.jsx("h1",{className:"iw-text-foreground iw-mb-3 iw-text-2xl iw-font-bold iw-tracking-tight",children:i.title}),o.jsx("h2",{className:"iw-text-gray-500 iw-mb-6 iw-text-base iw-font-medium",children:i.subtitle}),o.jsx("p",{className:"iw-text-neutral-400 iw-mx-auto iw-mb-8 iw-max-w-sm iw-text-sm iw-leading-relaxed",children:i.description}),o.jsx(ei,{onClick:s,className:"iw-w-full iw-bg-gray-800 iw-text-white hover:iw-bg-gray-800",children:i.buttonText})]})]})})})}const tl=u.forwardRef(({className:e="",interviewId:t="",interview_duration:r,showProctoringUI:i=!0,onSetReference:n,isAnswering:s,onProctoringStatusChange:a,showStatusOverlay:c=!1},l)=>{var gl;const{authToken:h}=zs(),d=h?Dl(h):null,{borderRadius:f}=ci(),w=f??18,{proctoring:g}=an(),p=!!(g!=null&&g.gazeAnalysisEnabled),[y,b]=u.useState(!1),[m,S]=u.useState((g==null?void 0:g.showLandmarks)??!1),[I,C]=u.useState(i&&((g==null?void 0:g.showEngagementBar)??!0)),[U,L]=u.useState(p),[V,ne]=u.useState(!1),T=u.useRef(null),j=u.useRef(null),ft=u.useRef(null),qe=u.useRef(null),Ve=u.useCallback(async ve=>{const si=T.current,me=ft.current;if(!si||!me)return;const Cr=me.getContext("2d");Cr&&(me.width=si.videoWidth,me.height=si.videoHeight,Cr.save(),Cr.scale(-1,1),Cr.drawImage(si,-me.width,0,me.width,me.height),Cr.restore(),await new Promise(en=>me.toBlob(en,"image/jpeg")))},[Rl,t]);u.useEffect(()=>{let ve;return s&&(ne(!0),ve=setTimeout(()=>ne(!1),1e3)),()=>{ve&&clearTimeout(ve)}},[s]);const{faceLandmarkerRef:it,isModelLoaded:nt,statusMessage:Kt,setStatusMessage:Tt,loadingProgress:St,permissionDenied:wt,clearCache:At}=$2(),{fps:st,updateFPS:Sr}=z2(),{drawWithEngagementBar:Ct,clearCanvas:ti,engagementRef:ot}=H2(),{engagement:pe,isLookingAway:je,analyzeGaze:ee,setEngagement:It,setIsLookingAway:Ar}=K2(),{multipleFacesDetected:ri,referenceFaceNotDetected:ii,analyzeFace:Bs,setMultipleFacesDetected:Qi,setReferenceFaceNotDetected:Yt}=X2(),{referenceSet:ni,referenceRef:Ji,setReference:A,syncReference:Q}=t1(it,T,Tt,n),Xt={multipleFacesDetected:ri,referenceFaceNotDetected:ii,isLookingAway:je},{showGazeWarningModal:Zi,getWarningType:Ri,closeWarningModal:hl,setShowGazeWarningModal:fl,setFaceDetectionState:wl}=J2(Xt,p&&!c);u.useEffect(()=>{if(a){const ve=Ri()||"face_detected";a(ve)}},[ri,ii,je,Ri,a]);const{renderLoop:K1}=e1(T,j,it,Sr,Bs,Ct,ti,ee,ni,Ji,m,I,p,Tt,Yt);R2(T,nt,K1,Tt),u.useEffect(()=>{Q()},[Q]),u.useEffect(()=>{ot&&ot.current&&(ot.current.value=pe,ot.current.isLookingAway=je)},[pe,je,ot]);const Y1=u.useCallback(ve=>{L(ve),ve||(It(100),Ar(!1))},[It,Ar]),X1=u.useCallback(()=>{Ar(!1),Qi(!1),Yt(!1),wl("face_detected"),fl(!1),hl()},[Ar,Qi,Yt,wl,fl,hl]),Q1={engagement:pe,fps:st,isLookingAway:je,multipleFacesDetected:ri,referenceFaceNotDetected:ii};return u.useEffect(()=>{const ve=[];return(async()=>{try{const me=await navigator.mediaDevices.getUserMedia({video:!0,audio:!1});qe.current=me,T.current&&(T.current.srcObject=me);const en=(r??oi)*60*1e3/3,J1=[0,1,2].map((Qt,Ft)=>({label:`capture-${Ft+1}`,start:Ft*en,end:(Ft+1)*en})),Z1=(Qt,Ft)=>Qt===Ft?Qt:Math.random()*(Ft-Qt)+Qt;J1.forEach(({label:Qt,start:Ft,end:R1},eu)=>{let Us;eu===0?Us=3e3:Us=Z1(Ft,R1),ve.push(setTimeout(()=>{Ve(Qt)},Us))})}catch(me){console.error("Error accessing camera:",me)}})(),()=>{qe.current&&qe.current.getTracks().forEach(me=>me.stop()),ve.forEach(clearTimeout)}},[Ve]),u.useImperativeHandle(l,()=>({setReference:()=>{A()},stopCamera:()=>{qe.current&&(qe.current.getTracks().forEach(ve=>ve.stop()),qe.current=null)}}),[A]),o.jsxs("div",{className:`iw-relative iw-h-full iw-w-full ${e}`,children:[wt?o.jsxs("div",{className:"iw-rounded-md iw-border iw-border-red-600 iw-p-5 iw-text-red-600",children:[o.jsx("h2",{children:"Camera Permission Denied"}),o.jsx("p",{children:"Please allow camera access to use this application."})]}):o.jsx("div",{className:"iw-flex iw-w-full iw-h-full iw-justify-start iw-items-start",children:o.jsxs("div",{className:`iw-relative iw-max-w-full iw-max-h-full iw-aspect-video iw-rounded-2xl iw-overflow-hidden iw-bg-black ${V?"iw-animate-answer-start":""} ${s?"iw-border-4 iw-border-[#6296FB]":""}`,style:{width:"100%",height:"auto",minHeight:"0"},children:[o.jsx("video",{ref:T,autoPlay:!0,playsInline:!0,muted:!0,className:"iw-absolute iw-inset-0 iw-w-full iw-h-full iw-object-cover",style:{transform:"scaleX(-1)"}}),p&&o.jsx("canvas",{ref:j,width:320,height:240,className:"iw-absolute iw-inset-0 iw-w-full iw-h-full iw-object-cover",style:{transform:"scaleX(-1)",borderRadius:w}}),o.jsx("canvas",{ref:ft,style:{display:"none"}}),i&&o.jsxs("div",{className:"iw-absolute iw-top-4 iw-right-4 iw-inline-flex iw-items-center iw-gap-2 iw-rounded-lg iw-border iw-border-white/10 iw-bg-[#FFEBE6] iw-px-2 iw-py-1 iw-backdrop-blur-md",children:[o.jsx("div",{className:"iw-size-2 iw-animate-pulse iw-rounded-full iw-bg-red-500"}),o.jsx("span",{className:"iw-font-medium iw-text-xs iw-text-[#E94315]",children:"RECORDING"})]}),i&&((gl=d==null?void 0:d.data)==null?void 0:gl.user_name)&&o.jsx("div",{className:"iw-absolute iw-z-50 iw-bottom-4 iw-right-4 iw-inline-flex iw-items-center iw-gap-2 iw-rounded-lg iw-border iw-border-white/10 iw-bg-[#F1F5FE] iw-px-3 iw-py-1 iw-backdrop-blur-md",children:o.jsx("span",{className:"iw-font-medium iw-text-xs iw-text-[#062260]",children:d.data.user_name})}),i&&o.jsx("div",{className:"iw-absolute iw-bottom-4 iw-right-4",children:o.jsx(td,{showControls:(g==null?void 0:g.showControls)??!1,isBubbleOpen:y,setIsBubbleOpen:b,setReference:A,clearCache:At,isModelLoaded:nt,gazeAnalysisEnabled:U&&p,referenceSet:ni,showLandmarks:m,setShowLandmarks:S,showEngagementBar:I,setShowEngagementBar:C,handleToggleGazeAnalysis:Y1,stats:Q1,statusMessage:Kt,loadingProgress:St})}),c&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"iw-absolute iw-inset-0 iw-pointer-events-none iw-z-10 ",style:{background:"radial-gradient(ellipse 20% 40% at 50% 45%, transparent 99.5%, rgba(0,0,0,0.35) 100%)"}}),o.jsx("div",{className:"iw-absolute iw-bottom-2 iw-inset-x-0 iw-flex iw-justify-center iw-pointer-events-none iw-z-20",children:o.jsx(i1,{status:Ri()??"face_detected"})})]})]})}),p&&Zi&&!c&&o.jsx(r1,{isOpen:Zi,onClose:X1,warningType:Ri()})]})}),i1=({status:e})=>{const t=Xs[e];if(!t)return null;const r=e!=="face_detected";return o.jsxs("div",{className:"iw-flex iw-flex-col iw-items-center iw-gap-2",children:[o.jsxs("div",{className:"iw-flex iw-items-center iw-gap-2 iw-px-3 iw-py-1 iw-rounded-full iw-backdrop-blur-md iw-shadow-sm transition-colors duration-300 iw-text-white",children:[o.jsx("div",{className:`iw-flex iw-h-4 iw-w-4 iw-items-center iw-size-2.5 iw-justify-center iw-rounded-full iw-text-white ${r?"iw-bg-[#E94315]":"iw-bg-[#22C55E]"}`,children:r?o.jsx(qs,{}):o.jsx(li,{})}),o.jsx("span",{className:"iw-text-sm iw-font-medium",children:e==="face_detected"?"Face detected clearly":t.title})]}),r&&o.jsx("span",{className:"iw-text-white iw-text-center iw-text-sm iw-drop-shadow-sm iw-max-w-[400px] iw-px-3 ",children:"Sit upright & look directly into the camera"})]})},rl=({micEnabled:e=!1,videoEnabled:t=!1,buttonText:r,onButtonClick:i,isAgreed:n,onAgreedToggle:s,showCheckbox:a=!0,showMediaIcons:c=!0,disabled:l=!1})=>{const h=l||!n||c&&(!e||!t);return o.jsxs("div",{className:"iw-flex iw-flex-col iw-gap-6 iw-w-full",children:[a&&o.jsxs("div",{className:"iw-flex iw-items-start iw-gap-3 iw-bg-[#F1F5FE] iw-rounded-xl iw-p-4 iw-border iw-border-[#E7EAF1]",children:[o.jsx("div",{className:`iw-mt-0.5 iw-h-5 iw-w-5 iw-min-w-[20px] iw-rounded iw-border iw-flex iw-items-center iw-justify-center iw-cursor-pointer iw-transition-colors ${n?"iw-bg-[#062260] iw-border-[#062260]":"iw-bg-white iw-border-[#B3B9CB]"}`,onClick:d=>{d.stopPropagation(),s(!n)},children:n&&o.jsx(li,{className:"iw-size-3 iw-text-white"})}),o.jsx("label",{onClick:()=>s(!n),className:"iw-text-sm iw-text-[#062260] iw-font-medium iw-cursor-pointer iw-select-none",children:"By continuing, you acknowledge and consent to the use of your face data exclusively for interview monitoring"})]}),o.jsxs("div",{className:"iw-flex iw-items-center iw-justify-center iw-gap-4",children:[c&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"iw-relative",children:[o.jsx("div",{className:`iw-flex iw-h-12 iw-w-16 iw-items-center iw-justify-center iw-rounded-xl iw-border iw-transition-all ${e?"iw-border-[#E7EAF1] iw-bg-white iw-text-[#062260]":"iw-border-rose-200 iw-bg-rose-50 iw-text-rose-600"}`,children:e?o.jsx(Wl,{className:"iw-h-6 iw-w-6"}):o.jsx($l,{className:"iw-h-6 iw-w-6"})}),e&&o.jsx("div",{className:"iw-absolute -iw-right-1 -iw-top-1 iw-flex iw-h-4 iw-w-4 iw-items-center iw-justify-center iw-rounded-full iw-bg-[#22C55E] iw-text-white",children:o.jsx(li,{className:"iw-h-2.5 iw-w-2.5"})})]}),o.jsxs("div",{className:"iw-relative",children:[o.jsx("div",{className:`iw-flex iw-h-12 iw-w-16 iw-items-center iw-justify-center iw-rounded-xl iw-border iw-transition-all ${t?"iw-border-[#E7EAF1] iw-bg-white iw-text-[#062260]":"iw-border-rose-200 iw-bg-rose-50 iw-text-rose-600"}`,children:t?o.jsx(Xl,{className:"iw-h-6 iw-w-6"}):o.jsx(Ql,{className:"iw-h-6 iw-w-6"})}),t&&o.jsx("div",{className:"iw-absolute -iw-right-1 -iw-top-1 iw-flex iw-h-4 iw-w-4 iw-items-center iw-justify-center iw-rounded-full iw-bg-[#22C55E] iw-text-white",children:o.jsx(li,{className:"iw-h-2.5 iw-w-2.5"})})]})]}),o.jsx(Ki,{onClick:i,disabled:h,className:`iw-h-12 iw-flex-1 iw-max-w-[220px] !iw-bg-[#F1F5FE] !iw-text-[#062260] !iw-font-bold iw-border-none iw-rounded-lg ${h?"iw-opacity-50":"hover:iw-opacity-75"}`,children:r})]})]})},n1=({steps:e,currentStepIndex:t})=>o.jsx("div",{className:"iw-flex iw-items-center iw-justify-center iw-gap-4 iw-w-full iw-py-6",children:e.map((r,i)=>{const n=i<t,s=i===t;return o.jsxs(u.Fragment,{children:[o.jsxs("div",{className:"iw-flex iw-items-center iw-gap-3",children:[o.jsx("div",{className:`iw-flex iw-size-9 iw-text-[#062260] iw-items-center iw-justify-center iw-rounded-full iw-font-semibold iw-border ${s||n?"iw-border-[#0EB00E] iw-bg-[#E9FFE6]":"iw-border-[#BDE0FD] iw-bg-[#E6F3FF]"}`,children:n?o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("polyline",{points:"20 6 9 17 4 12"})}):i+1}),o.jsx("span",{className:`iw-text-sm iw-font-medium ${s||n?"iw-text-[#062260]":"iw-text-[#5C6686]"}`,children:r.label})]}),i<e.length-1&&o.jsx("div",{className:"iw-flex-1 iw-max-w-[120px] iw-border-t iw-border-dotted iw-border-[#B3B9CB]"})]},i)})}),s1=["Don't refresh or reload the page during your assessment","Don't switch tabs or open other applications while session is ongoing","Don't leave your position during the session","Don't disable or interfere with video/audio monitoring"],o1=({isOpen:e,onStart:t,gazeEnabled:r=!1,videoFeedRef:i,interviewId:n="",interview_duration:s=oi})=>{const a=u.useRef(null),c=u.useRef(null),[l,h]=u.useState(!1),[d,f]=u.useState(!1),[w,g]=u.useState(0),[p,y]=u.useState(!1),b=u.useRef(null),m=u.useRef(null),S=T=>{b.current=T,i&&(typeof i=="function"?i(T):i.current=T)},I=()=>{c.current&&(c.current.getTracks().forEach(T=>T.stop()),c.current=null)},C=async()=>{try{const T=await navigator.mediaDevices.getUserMedia({video:{width:{ideal:1280},height:{ideal:720}},audio:!0});c.current=T,a.current&&(a.current.srcObject=T),h(!0)}catch(T){console.error("Media permission error:",T);let j="Unable to access camera or microphone.";(T==null?void 0:T.name)==="NotAllowedError"?j="Permissions denied. Please allow access to camera and microphone.":(T==null?void 0:T.name)==="NotFoundError"?j="No camera/microphone found. Please connect a device and retry.":T!=null&&T.message&&(j=T.message),h(!1),console.log(j)}finally{}};if(u.useEffect(()=>{if(!e){I();return}return C(),()=>I()},[e]),u.useEffect(()=>()=>{m.current&&(clearInterval(m.current),m.current=null)},[]),!e)return null;const[U,L]=u.useState("face_detected"),V=async()=>{f(!0);const T=()=>{var j;return(j=b.current)==null?void 0:j.setReference()};T(),m.current&&clearInterval(m.current),m.current=setInterval(T,500)},ne=[{label:r?"Calibrate your camera":"Camera & Mic permission"},{label:"Basic guidelines"}];return o.jsx("div",{className:"iw-fixed iw-inset-0 iw-z-50 iw-flex iw-items-center iw-justify-center iw-bg-gray-900/40 iw-backdrop-blur-sm iw-p-4 iw-overflow-auto",children:o.jsxs("div",{className:"iw-w-full iw-max-w-[700px] iw-bg-white iw-rounded-xl iw-shadow-2xl iw-overflow-auto",children:[o.jsxs("div",{className:"iw-px-5 iw-pt-5",children:[o.jsx("h2",{className:"iw-text-[#062260] iw-text-2xl iw-font-medium iw-tracking-tight",children:"Final checks before you go live"}),o.jsx("div",{className:"iw-mt-4 iw-bg-[#F1F5FE] iw-rounded-xl iw-p-3 iw-border iw-border-[#E7EAF1]",children:o.jsx("p",{className:"iw-text-[#5C6686] iw-text-sm iw-leading-relaxed",children:"To ensure the integrity of the interview process, this platform uses your device’s camera to monitor your face and gaze direction. We do not store any outside this session"})}),o.jsx("div",{className:"iw-mt-6 iw-border-b iw-border-dashed iw-border-[#B3B9CB] iw-w-full"}),o.jsx(n1,{steps:ne,currentStepIndex:w})]}),o.jsx("div",{className:"iw-px-5 iw-pb-5 iw-flex iw-flex-col iw-items-center",children:w===0?o.jsxs("div",{className:"iw-w-full iw-flex iw-flex-col iw-items-center iw-gap-6",children:[o.jsx("div",{className:"iw-w-full iw-max-w-[600px] iw-aspect-video iw-bg-slate-100 iw-rounded-2xl iw-overflow-hidden iw-relative iw-border iw-border-slate-200",children:r?o.jsx(tl,{ref:S,interviewId:n,interview_duration:s,showProctoringUI:!1,showStatusOverlay:!0,onProctoringStatusChange:L,onSetReference:()=>{m.current&&(clearInterval(m.current),m.current=null),f(!1),g(1)}}):o.jsx("video",{ref:a,autoPlay:!0,playsInline:!0,muted:!0,className:"iw-w-full iw-h-full iw-object-cover",style:{transform:"scaleX(-1)"}})}),o.jsx(rl,{micEnabled:l,videoEnabled:l,buttonText:r?d?"Calibrating...":"Start calibrate":"Next",onButtonClick:()=>{r?V():g(1)},disabled:!p||r&&U!=="face_detected"||!r&&!l,isAgreed:p,onAgreedToggle:y})]}):o.jsxs("div",{className:"iw-w-full iw-flex iw-flex-col iw-gap-6",children:[o.jsx("div",{className:"iw-w-full iw-bg-[#F8FAFF] iw-rounded-2xl iw-p-8 iw-flex iw-flex-col iw-gap-5",children:s1.map((T,j)=>o.jsxs("div",{className:"iw-flex iw-items-center iw-gap-4",children:[o.jsx("div",{className:"iw-flex iw-h-7 iw-w-7 iw-min-w-[28px] iw-items-center iw-justify-center iw-rounded-full iw-bg-[#DBEAFE] iw-text-[#062260] iw-text-xs iw-font-bold",children:j+1}),o.jsx("span",{className:"iw-text-[#5C6686] iw-font-medium",children:T})]},j))}),o.jsx(rl,{buttonText:"Start interview",onButtonClick:()=>{t(),I()},isAgreed:p,onAgreedToggle:y,showMediaIcons:!1})]})})]})})};var P=(e=>(e.IDLE="idle",e.FETCHING_QUESTION="fetching_question",e.READING_QUESTION="reading_question",e.THINKING="thinking",e.ANSWERING="answering",e.TRANSCRIBING="transcribing",e.EDITING="editing",e.SUBMITTING="submitting",e.COMPLETED="completed",e))(P||{});const il={thinkingDuration:0,answeringDuration:120,editingDuration:30},nl={idle:{next:"fetching_question"},fetching_question:{next:"reading_question"},reading_question:{next:"answering"},thinking:{next:"answering",duration:0},answering:{next:"transcribing",duration:120},transcribing:{next:"editing"},editing:{next:"submitting",duration:30},submitting:{next:"completed"},completed:{next:"completed"}};class a1{constructor(t={},r={}){Me(this,"config");Me(this,"state");Me(this,"phaseIntervalId",null);Me(this,"globalIntervalId",null);Me(this,"callbacks");this.config={...il,...t},this.callbacks=r,this.state={phase:"idle",currentPhaseTimeRemaining:0,totalTimeElapsed:0,currentQuestionNumber:0}}updateConfig(t){this.config={...this.config,...t}}getState(){return{...this.state}}startQuestion(){this.state.currentQuestionNumber===0&&this.startGlobalTimer(),this.state.currentQuestionNumber=this.state.currentQuestionNumber+1,this.state.phase="fetching_question",this.notifyChange()}nextPhase(){const t=this.state.phase;let r=nl[t];if(!r)return;if(r.next==="editing"&&this.config.editingDuration===0){const n=nl.editing;n&&(r=n)}this.stopPhaseTimer(),this.state.phase=r.next;const i=this.getDurationForPhase(r.next);i>0?(this.state.currentPhaseTimeRemaining=i,this.startPhaseTimer()):this.state.currentPhaseTimeRemaining=0,this.notifyChange()}completeInterview(){var t,r;this.stopGlobalTimer(),this.stopPhaseTimer(),this.state.phase="completed",(r=(t=this.callbacks).onInterviewEnd)==null||r.call(t),this.notifyChange()}destroy(){this.stopPhaseTimer(),this.stopGlobalTimer()}getDurationForPhase(t){switch(t){case"thinking":return this.config.thinkingDuration;case"answering":return this.config.answeringDuration;case"editing":return this.config.editingDuration;default:return 0}}startGlobalTimer(){this.globalIntervalId=setInterval(()=>{var t,r;this.state.totalTimeElapsed++,(r=(t=this.callbacks).onTick)==null||r.call(t,this.getState())},1e3)}stopGlobalTimer(){this.globalIntervalId&&(clearInterval(this.globalIntervalId),this.globalIntervalId=null)}startPhaseTimer(){this.phaseIntervalId=setInterval(()=>{this.state.currentPhaseTimeRemaining--,this.state.currentPhaseTimeRemaining<=0&&this.nextPhase()},1e3)}stopPhaseTimer(){this.phaseIntervalId&&(clearInterval(this.phaseIntervalId),this.phaseIntervalId=null)}notifyChange(){var t,r;(r=(t=this.callbacks).onPhaseChange)==null||r.call(t,this.state.phase,this.getState())}}function c1(e={}){const{config:t={},callbacks:r={}}=e,i=u.useRef(null);i.current||(i.current=new a1(t,{}));const n=i.current,[s,a]=u.useState(n.getState()),c=u.useCallback(()=>{a(n.getState())},[n]);u.useEffect(()=>{const f={onPhaseChange:(w,g)=>{var p;c(),(p=r.onPhaseChange)==null||p.call(r,w,g)},onTick:w=>{var g;c(),(g=r.onTick)==null||g.call(r,w)},onInterviewEnd:()=>{var w;c(),(w=r.onInterviewEnd)==null||w.call(r)}};n.callbacks=f},[n,r,c]),u.useEffect(()=>{n.updateConfig(t)},[n,t]),u.useEffect(()=>()=>{n.destroy()},[n]);const l=u.useCallback(()=>{n.startQuestion(),c()},[n,c]),h=u.useCallback(()=>{n.nextPhase(),c()},[n,c]),d=u.useCallback(()=>{n.completeInterview(),c()},[n,c]);return{state:s,startQuestion:l,nextPhase:h,completeInterview:d,timerService:n}}function l1(e,t={}){const[r,i]=u.useState({data:null,loading:!1,error:null}),n=u.useCallback(async(...s)=>{var a,c,l,h;i(d=>({...d,loading:!0,error:null}));try{const d=await e(...s);i(f=>({...f,data:d,loading:!1,error:null})),(a=t.onSuccess)==null||a.call(t,d),(c=t.onSettled)==null||c.call(t,d,null)}catch(d){const f=d.type?d:{type:"unknown",message:d.message||"Unknown error",retryable:!0,userMessage:"Something went wrong. Please try again.",originalError:d};i(w=>({...w,loading:!1,error:f})),(l=t.onError)==null||l.call(t,f),(h=t.onSettled)==null||h.call(t,null,f)}},[e,t]);return{...r,execute:n}}const d1=e=>{const[t,r]=u.useState(null),[i,n]=u.useState(!1),s=document,a=()=>!!(s.fullscreenEnabled||s.webkitFullscreenEnabled||s.mozFullScreenEnabled||s.msFullscreenEnabled),c=()=>s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement,l=async g=>{var p;try{if(!a())throw new Error("Fullscreen is not supported in this environment");g.requestFullscreen?await g.requestFullscreen():g.webkitRequestFullscreen?await g.webkitRequestFullscreen():g.mozRequestFullScreen?await g.mozRequestFullScreen():g.msRequestFullscreen&&await g.msRequestFullscreen()}catch(y){const b={name:"FullscreenError",message:y instanceof Error?y.message:"Failed to enter fullscreen"};r(b),(p=e==null?void 0:e.onError)==null||p.call(e,b)}},h=async()=>{var g;try{s.exitFullscreen?await s.exitFullscreen():s.webkitExitFullscreen?await s.webkitExitFullscreen():s.mozCancelFullScreen?await s.mozCancelFullScreen():s.msExitFullscreen&&await s.msExitFullscreen()}catch(p){const y={name:"FullscreenError",message:p instanceof Error?p.message:"Failed to exit fullscreen"};r(y),(g=e==null?void 0:e.onError)==null||g.call(e,y)}},d=u.useCallback(()=>{var p;const g=!!c();n(g),(p=e==null?void 0:e.onFullScreenChange)==null||p.call(e,g)},[e]);u.useEffect(()=>{const g=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"];return g.forEach(p=>{document.addEventListener(p,d)}),()=>{g.forEach(p=>{document.removeEventListener(p,d)})}},[d]);const f=async g=>{r(null);const p=g??document.documentElement;await l(p)};return{isFullScreen:i,toggleFullScreen:async g=>{i?await h():await f(g)},enterFullScreen:f,exitFullScreen:h,error:t}};function sl(){const e=ai();return u.useMemo(()=>{const r=e.api||{};return new Qs(r)},[e.api])}const u1=e=>{u.useEffect(()=>{const t=i=>{(i.ctrlKey||i.metaKey)&&["c","v","a","t","n","w","r","s","p"].includes(i.key.toLowerCase())&&(i.preventDefault(),e({type:"blocked_shortcut",severity:"low",details:{action:"shortcut_pressed",reason:`Attempted to use a blocked keyboard shortcut: Ctrl + ${i.key}`}})),i.key.startsWith("F")&&i.key.length<=3&&(i.preventDefault(),e({type:"blocked_function_key",severity:"low",details:{action:"function_key_pressed",reason:`Attempted to use a blocked function key: ${i.key}`}})),i.altKey&&i.key==="Tab"&&(i.preventDefault(),e({type:"alt_tab_attempt",severity:"medium",details:{action:"alt_tab",reason:"Attempted to use the Alt + Tab shortcut"}}))},r=i=>{i.preventDefault(),e({type:"right_click_attempt",severity:"low",details:{action:"right_click",reason:"Attempted to use the right click"}})};return document.addEventListener("keydown",t),document.addEventListener("contextmenu",r),()=>{document.removeEventListener("keydown",t),document.removeEventListener("contextmenu",r)}},[e])},h1=(e={})=>{const[t,r]=u.useState(!1),[i,n]=u.useState(!1),[s,a]=u.useState(null),[c,l]=u.useState(null),[h,d]=u.useState(null);e.config&&Tr.updateConfig(e.config);const f=u.useCallback(async y=>{var b;try{l(null),a(null),d(null),await Tr.startRecording(y,{onStart:()=>{var m;r(!0),(m=e.onStart)==null||m.call(e)},onStop:()=>{var m;r(!1),(m=e.onStop)==null||m.call(e)},onError:m=>{var I;const S=m instanceof X?m:new X(m.message,"RECORDING_ERROR",!0);l(S),r(!1),(I=e.onError)==null||I.call(e,S)}})}catch(m){const S=m instanceof X?m:new X(m instanceof Error?m.message:String(m),"START_FAILED",!1);throw l(S),r(!1),(b=e.onError)==null||b.call(e,S),S}},[]),w=u.useCallback(async()=>{var y,b;try{const m=await Tr.stopRecording();return d(m),r(!1),(y=e.onStop)==null||y.call(e),m}catch(m){const S=m instanceof X?m:new X(m instanceof Error?m.message:String(m),"STOP_FAILED",!1);throw l(S),r(!1),(b=e.onError)==null||b.call(e,S),S}},[]),g=u.useCallback(async(y,b={})=>{var m,S;try{l(null),n(!0);const I={audioBlob:y,...b},C=await Tr.transcribe(I);return a(C.transcript),n(!1),(m=e.onTranscriptionComplete)==null||m.call(e,C),C}catch(I){const C=I instanceof X?I:new X(I instanceof Error?I.message:String(I),"TRANSCRIPTION_FAILED",!0);throw l(C),n(!1),(S=e.onError)==null||S.call(e,C),C}},[]),p=u.useCallback(()=>{Tr.cancelRecording(),r(!1),d(null)},[]);return{startRecording:f,stopRecording:w,transcribe:g,cancelRecording:p,isRecording:t,isTranscribing:i,transcript:s,error:c,audioBlob:h}},f1=e=>{const t=u.useRef(null),r=u.useRef(!1);u.useEffect(()=>{const i=()=>{document.hidden&&(r.current=!0,t.current&&(clearTimeout(t.current),t.current=null),e({type:"tab_switch",severity:"high",details:{action:"tab_hidden",reason:"Attempted to switch tabs or applications"}}),setTimeout(()=>{r.current=!1},100))},n=()=>{r.current||(t.current=setTimeout(()=>{r.current||e({type:"focus_loss",severity:"medium",details:{action:"window_blur",reason:"Focus lost from the interview window"}}),t.current=null},50))};return document.addEventListener("visibilitychange",i),window.addEventListener("blur",n),()=>{document.removeEventListener("visibilitychange",i),window.removeEventListener("blur",n),t.current&&clearTimeout(t.current)}},[e])},w1=()=>{u.useEffect(()=>{const e=document.createElement("style");return e.textContent=`
16
16
  * {
17
17
  -webkit-user-select: none !important;
18
18
  -moz-user-select: none !important;
@@ -25,7 +25,7 @@
25
25
  -ms-user-select: text !important;
26
26
  user-select: text !important;
27
27
  }
28
- `,document.head.appendChild(i),()=>{document.head.removeChild(i)}},[])};class b_{constructor(){tu(this,"currentAudio",null)}async play(c,f){var h,y;try{if(this.stop(),(h=f==null?void 0:f.onStart)==null||h.call(f),!c)throw new Error("No audio data provided");const w=window.atob(c),E=new Uint8Array(w==null?void 0:w.length);for(let G=0;G<(w==null?void 0:w.length);G++)E[G]=w==null?void 0:w.charCodeAt(G);const A=new Blob([E],{type:"audio/wav"}),M=URL.createObjectURL(A);return this.currentAudio=new Audio(M),new Promise((G,U)=>{if(!this.currentAudio){U(new Error("Audio element not created"));return}const N=this.currentAudio;N.onended=()=>{var q;URL.revokeObjectURL(M),this.currentAudio=null,(q=f==null?void 0:f.onEnd)==null||q.call(f),G()},N.onerror=q=>{var ne;URL.revokeObjectURL(M),this.currentAudio=null;const k=new Error(`Audio playback failed: ${q}`);(ne=f==null?void 0:f.onError)==null||ne.call(f,k),U(k)},N.play().catch(q=>{var ne;URL.revokeObjectURL(M),this.currentAudio=null;const k=new Error(`Failed to play audio: ${q.message}`);(ne=f==null?void 0:f.onError)==null||ne.call(f,k),U(k)})})}catch(w){const E=w instanceof Error?w:new Error(`TTS Error: ${String(w)}`);throw(y=f==null?void 0:f.onError)==null||y.call(f,E),E}}stop(){this.currentAudio&&(this.currentAudio.pause(),this.currentAudio.currentTime=0,this.currentAudio=null)}isPlaying(){return this.currentAudio!==null&&!this.currentAudio.paused}}const e7=new b_,S_=(i={})=>{const[c,f]=j.useState(!1),[h,y]=j.useState(!1),[w,E]=j.useState(null),A=j.useCallback(async G=>{var U;try{E(null),y(!0),await e7.play(G,{onStart:()=>{var N;y(!1),f(!0),(N=i.onStart)==null||N.call(i)},onEnd:()=>{var N;f(!1),(N=i.onEnd)==null||N.call(i)},onError:N=>{var q;f(!1),y(!1),E(N),(q=i.onError)==null||q.call(i,N)}})}catch(N){const q=N instanceof Error?N:new Error(String(N));throw E(q),f(!1),y(!1),(U=i.onError)==null||U.call(i,q),q}},[i]),M=j.useCallback(()=>{e7.stop(),f(!1),y(!1)},[]);return{speak:A,stop:M,isPlaying:c,isLoading:h,error:w}},E_=({onViolation:i,onEnd:c,maxViolations:f=5})=>{const{addViolation:h}=BE(),y=NE(),w=UE(),E=j.useRef(w);j.useEffect(()=>{E.current=w},[w]);const A=j.useCallback(G=>{c&&c(G,E.current)},[c]);return{logViolation:j.useCallback(({type:G,severity:U,details:N})=>{const q={id:qE(),type:G,severity:U,details:N,timestamp:Date.now()};h(q);const k=E.current+1;i&&i(q,k),k>=f&&A("excessive_violations")},[h,i,f,A]),onInterviewEnd:A,violationCount:w,logList:y}},T_=()=>{j.useEffect(()=>{function i(){console.clear(),console.log(`
28
+ `,document.head.appendChild(e),()=>{document.head.removeChild(e)}},[])};class g1{constructor(){Me(this,"currentAudio",null)}async play(t,r){var i,n;try{if(this.stop(),(i=r==null?void 0:r.onStart)==null||i.call(r),!t)throw new Error("No audio data provided");const s=window.atob(t),a=new Uint8Array(s==null?void 0:s.length);for(let h=0;h<(s==null?void 0:s.length);h++)a[h]=s==null?void 0:s.charCodeAt(h);const c=new Blob([a],{type:"audio/wav"}),l=URL.createObjectURL(c);return this.currentAudio=new Audio(l),new Promise((h,d)=>{if(!this.currentAudio){d(new Error("Audio element not created"));return}const f=this.currentAudio;f.onended=()=>{var w;URL.revokeObjectURL(l),this.currentAudio=null,(w=r==null?void 0:r.onEnd)==null||w.call(r),h()},f.onerror=w=>{var p;URL.revokeObjectURL(l),this.currentAudio=null;const g=new Error(`Audio playback failed: ${w}`);(p=r==null?void 0:r.onError)==null||p.call(r,g),d(g)},f.play().catch(w=>{var p;URL.revokeObjectURL(l),this.currentAudio=null;const g=new Error(`Failed to play audio: ${w.message}`);(p=r==null?void 0:r.onError)==null||p.call(r,g),d(g)})})}catch(s){const a=s instanceof Error?s:new Error(`TTS Error: ${String(s)}`);throw(n=r==null?void 0:r.onError)==null||n.call(r,a),a}}stop(){this.currentAudio&&(this.currentAudio.pause(),this.currentAudio.currentTime=0,this.currentAudio=null)}isPlaying(){return this.currentAudio!==null&&!this.currentAudio.paused}}const ol=new g1,p1=(e={})=>{const[t,r]=u.useState(!1),[i,n]=u.useState(!1),[s,a]=u.useState(null),c=u.useCallback(async h=>{var d;try{a(null),n(!0),await ol.play(h,{onStart:()=>{var f;n(!1),r(!0),(f=e.onStart)==null||f.call(e)},onEnd:()=>{var f;r(!1),(f=e.onEnd)==null||f.call(e)},onError:f=>{var w;r(!1),n(!1),a(f),(w=e.onError)==null||w.call(e,f)}})}catch(f){const w=f instanceof Error?f:new Error(String(f));throw a(w),r(!1),n(!1),(d=e.onError)==null||d.call(e,w),w}},[e]),l=u.useCallback(()=>{ol.stop(),r(!1),n(!1)},[]);return{speak:c,stop:l,isPlaying:t,isLoading:i,error:s}},m1=({onViolation:e,onEnd:t,maxViolations:r=5})=>{const{addViolation:i}=Al(),n=Tl(),s=Sl(),a=u.useRef(s);u.useEffect(()=>{a.current=s},[s]);const c=u.useCallback(h=>{t&&t(h,a.current)},[t]);return{logViolation:u.useCallback(({type:h,severity:d,details:f})=>{const w={id:Pl(),type:h,severity:d,details:f,timestamp:Date.now()};i(w);const g=a.current+1;e&&e(w,g),g>=r&&c("excessive_violations")},[i,e,r,c]),onInterviewEnd:c,violationCount:s,logList:n}},y1=()=>{u.useEffect(()=>{function e(){console.clear(),console.log(`
29
29
  %c
30
30
  ╔═══════════════════════════════════════════════════════════════════════╗
31
31
  ║ ║
@@ -71,260 +71,7 @@
71
71
  │ │
72
72
  │ 💡 IMMEDIATE ACTION REQUIRED: │
73
73
  │ Close developer tools to continue interview │
74
- └─────────────────────────────────────────────────────────────┘`,"color: #ffd93d; font-size: 14px; font-family: monospace; background: rgba(255, 217, 61, 0.1); padding: 10px;")}const c={open:!1,orientation:null},f=160,h=setInterval(()=>{window.outerHeight-window.innerHeight>f||window.outerWidth-window.innerWidth>f?c.open||(c.open=!0,c.orientation=window.outerWidth-window.innerWidth>f?"vertical":"horizontal",i()):c.open&&(c.open=!1,console.log("%c🌟 Developer tools closed. Interview continues smoothly! ✨","color: #4ecdc4; font-weight: bold; text-shadow: 0 0 10px #4ecdc4;"))},500),y=E=>{if(E.keyCode===123||E.ctrlKey&&E.shiftKey&&(E.keyCode===73||E.keyCode===74)||E.ctrlKey&&E.keyCode===85)return E.preventDefault(),console.log("%c🎭 Nice try! Keyboard shortcuts are disabled during interviews ✨","color: #ffd93d; font-weight: bold; text-shadow: 0 0 10px #ffd93d;"),!1},w=E=>(E.preventDefault(),console.log("%c🌈 Right-click menu disabled for interview integrity! 🎪","color: #ff9ff3; font-weight: bold; text-shadow: 0 0 10px #ff9ff3;"),!1);return document.addEventListener("keydown",y),document.addEventListener("contextmenu",w),()=>{clearInterval(h),document.removeEventListener("keydown",y),document.removeEventListener("contextmenu",w),delete window.showStats,delete window.interviewTips}},[])};var ib={exports:{}},gm={},Py={exports:{}},ub={};/**
75
- * @license React
76
- * scheduler.production.js
77
- *
78
- * Copyright (c) Meta Platforms, Inc. and affiliates.
79
- *
80
- * This source code is licensed under the MIT license found in the
81
- * LICENSE file in the root directory of this source tree.
82
- */var t7;function A_(){return t7||(t7=1,function(i){function c(V,ee){var ie=V.length;V.push(ee);e:for(;0<ie;){var ve=ie-1>>>1,Ce=V[ve];if(0<y(Ce,ee))V[ve]=ee,V[ie]=Ce,ie=ve;else break e}}function f(V){return V.length===0?null:V[0]}function h(V){if(V.length===0)return null;var ee=V[0],ie=V.pop();if(ie!==ee){V[0]=ie;e:for(var ve=0,Ce=V.length,Et=Ce>>>1;ve<Et;){var st=2*(ve+1)-1,Xe=V[st],Ze=st+1,Bt=V[Ze];if(0>y(Xe,ie))Ze<Ce&&0>y(Bt,Xe)?(V[ve]=Bt,V[Ze]=ie,ve=Ze):(V[ve]=Xe,V[st]=ie,ve=st);else if(Ze<Ce&&0>y(Bt,ie))V[ve]=Bt,V[Ze]=ie,ve=Ze;else break e}}return ee}function y(V,ee){var ie=V.sortIndex-ee.sortIndex;return ie!==0?ie:V.id-ee.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var w=performance;i.unstable_now=function(){return w.now()}}else{var E=Date,A=E.now();i.unstable_now=function(){return E.now()-A}}var M=[],G=[],U=1,N=null,q=3,k=!1,ne=!1,oe=!1,ue=!1,P=typeof setTimeout=="function"?setTimeout:null,ye=typeof clearTimeout=="function"?clearTimeout:null,be=typeof setImmediate<"u"?setImmediate:null;function Te(V){for(var ee=f(G);ee!==null;){if(ee.callback===null)h(G);else if(ee.startTime<=V)h(G),ee.sortIndex=ee.expirationTime,c(M,ee);else break;ee=f(G)}}function nt(V){if(oe=!1,Te(V),!ne)if(f(M)!==null)ne=!0,Be||(Be=!0,ke());else{var ee=f(G);ee!==null&&$t(nt,ee.startTime-V)}}var Be=!1,Qe=-1,xe=5,me=-1;function ce(){return ue?!0:!(i.unstable_now()-me<xe)}function Ut(){if(ue=!1,Be){var V=i.unstable_now();me=V;var ee=!0;try{e:{ne=!1,oe&&(oe=!1,ye(Qe),Qe=-1),k=!0;var ie=q;try{t:{for(Te(V),N=f(M);N!==null&&!(N.expirationTime>V&&ce());){var ve=N.callback;if(typeof ve=="function"){N.callback=null,q=N.priorityLevel;var Ce=ve(N.expirationTime<=V);if(V=i.unstable_now(),typeof Ce=="function"){N.callback=Ce,Te(V),ee=!0;break t}N===f(M)&&h(M),Te(V)}else h(M);N=f(M)}if(N!==null)ee=!0;else{var Et=f(G);Et!==null&&$t(nt,Et.startTime-V),ee=!1}}break e}finally{N=null,q=ie,k=!1}ee=void 0}}finally{ee?ke():Be=!1}}}var ke;if(typeof be=="function")ke=function(){be(Ut)};else if(typeof MessageChannel<"u"){var He=new MessageChannel,Ft=He.port2;He.port1.onmessage=Ut,ke=function(){Ft.postMessage(null)}}else ke=function(){P(Ut,0)};function $t(V,ee){Qe=P(function(){V(i.unstable_now())},ee)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(V){V.callback=null},i.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xe=0<V?Math.floor(1e3/V):5},i.unstable_getCurrentPriorityLevel=function(){return q},i.unstable_next=function(V){switch(q){case 1:case 2:case 3:var ee=3;break;default:ee=q}var ie=q;q=ee;try{return V()}finally{q=ie}},i.unstable_requestPaint=function(){ue=!0},i.unstable_runWithPriority=function(V,ee){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var ie=q;q=V;try{return ee()}finally{q=ie}},i.unstable_scheduleCallback=function(V,ee,ie){var ve=i.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?ve+ie:ve):ie=ve,V){case 1:var Ce=-1;break;case 2:Ce=250;break;case 5:Ce=1073741823;break;case 4:Ce=1e4;break;default:Ce=5e3}return Ce=ie+Ce,V={id:U++,callback:ee,priorityLevel:V,startTime:ie,expirationTime:Ce,sortIndex:-1},ie>ve?(V.sortIndex=ie,c(G,V),f(M)===null&&V===f(G)&&(oe?(ye(Qe),Qe=-1):oe=!0,$t(nt,ie-ve))):(V.sortIndex=Ce,c(M,V),ne||k||(ne=!0,Be||(Be=!0,ke()))),V},i.unstable_shouldYield=ce,i.unstable_wrapCallback=function(V){var ee=q;return function(){var ie=q;q=ee;try{return V.apply(this,arguments)}finally{q=ie}}}}(ub)),ub}var ob={};/**
83
- * @license React
84
- * scheduler.development.js
85
- *
86
- * Copyright (c) Meta Platforms, Inc. and affiliates.
87
- *
88
- * This source code is licensed under the MIT license found in the
89
- * LICENSE file in the root directory of this source tree.
90
- */var n7;function __(){return n7||(n7=1,function(i){process.env.NODE_ENV!=="production"&&function(){function c(){if(nt=!1,me){var V=i.unstable_now();ke=V;var ee=!0;try{e:{be=!1,Te&&(Te=!1,Qe(ce),ce=-1),ye=!0;var ie=P;try{t:{for(E(V),ue=h(k);ue!==null&&!(ue.expirationTime>V&&M());){var ve=ue.callback;if(typeof ve=="function"){ue.callback=null,P=ue.priorityLevel;var Ce=ve(ue.expirationTime<=V);if(V=i.unstable_now(),typeof Ce=="function"){ue.callback=Ce,E(V),ee=!0;break t}ue===h(k)&&y(k),E(V)}else y(k);ue=h(k)}if(ue!==null)ee=!0;else{var Et=h(ne);Et!==null&&G(A,Et.startTime-V),ee=!1}}break e}finally{ue=null,P=ie,ye=!1}ee=void 0}}finally{ee?He():me=!1}}}function f(V,ee){var ie=V.length;V.push(ee);e:for(;0<ie;){var ve=ie-1>>>1,Ce=V[ve];if(0<w(Ce,ee))V[ve]=ee,V[ie]=Ce,ie=ve;else break e}}function h(V){return V.length===0?null:V[0]}function y(V){if(V.length===0)return null;var ee=V[0],ie=V.pop();if(ie!==ee){V[0]=ie;e:for(var ve=0,Ce=V.length,Et=Ce>>>1;ve<Et;){var st=2*(ve+1)-1,Xe=V[st],Ze=st+1,Bt=V[Ze];if(0>w(Xe,ie))Ze<Ce&&0>w(Bt,Xe)?(V[ve]=Bt,V[Ze]=ie,ve=Ze):(V[ve]=Xe,V[st]=ie,ve=st);else if(Ze<Ce&&0>w(Bt,ie))V[ve]=Bt,V[Ze]=ie,ve=Ze;else break e}}return ee}function w(V,ee){var ie=V.sortIndex-ee.sortIndex;return ie!==0?ie:V.id-ee.id}function E(V){for(var ee=h(ne);ee!==null;){if(ee.callback===null)y(ne);else if(ee.startTime<=V)y(ne),ee.sortIndex=ee.expirationTime,f(k,ee);else break;ee=h(ne)}}function A(V){if(Te=!1,E(V),!be)if(h(k)!==null)be=!0,me||(me=!0,He());else{var ee=h(ne);ee!==null&&G(A,ee.startTime-V)}}function M(){return nt?!0:!(i.unstable_now()-ke<Ut)}function G(V,ee){ce=Be(function(){V(i.unstable_now())},ee)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var U=performance;i.unstable_now=function(){return U.now()}}else{var N=Date,q=N.now();i.unstable_now=function(){return N.now()-q}}var k=[],ne=[],oe=1,ue=null,P=3,ye=!1,be=!1,Te=!1,nt=!1,Be=typeof setTimeout=="function"?setTimeout:null,Qe=typeof clearTimeout=="function"?clearTimeout:null,xe=typeof setImmediate<"u"?setImmediate:null,me=!1,ce=-1,Ut=5,ke=-1;if(typeof xe=="function")var He=function(){xe(c)};else if(typeof MessageChannel<"u"){var Ft=new MessageChannel,$t=Ft.port2;Ft.port1.onmessage=c,He=function(){$t.postMessage(null)}}else He=function(){Be(c,0)};i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(V){V.callback=null},i.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ut=0<V?Math.floor(1e3/V):5},i.unstable_getCurrentPriorityLevel=function(){return P},i.unstable_next=function(V){switch(P){case 1:case 2:case 3:var ee=3;break;default:ee=P}var ie=P;P=ee;try{return V()}finally{P=ie}},i.unstable_requestPaint=function(){nt=!0},i.unstable_runWithPriority=function(V,ee){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var ie=P;P=V;try{return ee()}finally{P=ie}},i.unstable_scheduleCallback=function(V,ee,ie){var ve=i.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?ve+ie:ve):ie=ve,V){case 1:var Ce=-1;break;case 2:Ce=250;break;case 5:Ce=1073741823;break;case 4:Ce=1e4;break;default:Ce=5e3}return Ce=ie+Ce,V={id:oe++,callback:ee,priorityLevel:V,startTime:ie,expirationTime:Ce,sortIndex:-1},ie>ve?(V.sortIndex=ie,f(ne,V),h(k)===null&&V===h(ne)&&(Te?(Qe(ce),ce=-1):Te=!0,G(A,ie-ve))):(V.sortIndex=Ce,f(k,V),be||ye||(be=!0,me||(me=!0,He()))),V},i.unstable_shouldYield=M,i.unstable_wrapCallback=function(V){var ee=P;return function(){var ie=P;P=ee;try{return V.apply(this,arguments)}finally{P=ie}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(ob)),ob}var a7;function l7(){return a7||(a7=1,process.env.NODE_ENV==="production"?Py.exports=A_():Py.exports=__()),Py.exports}/**
91
- * @license React
92
- * react-dom-client.production.js
93
- *
94
- * Copyright (c) Meta Platforms, Inc. and affiliates.
95
- *
96
- * This source code is licensed under the MIT license found in the
97
- * LICENSE file in the root directory of this source tree.
98
- */var i7;function x_(){if(i7)return gm;i7=1;var i=l7(),c=j,f=Av;function h(n){var l="https://react.dev/errors/"+n;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)l+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+n+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function y(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function w(n){var l=n,u=n;if(n.alternate)for(;l.return;)l=l.return;else{n=l;do l=n,l.flags&4098&&(u=l.return),n=l.return;while(n)}return l.tag===3?u:null}function E(n){if(n.tag===13){var l=n.memoizedState;if(l===null&&(n=n.alternate,n!==null&&(l=n.memoizedState)),l!==null)return l.dehydrated}return null}function A(n){if(n.tag===31){var l=n.memoizedState;if(l===null&&(n=n.alternate,n!==null&&(l=n.memoizedState)),l!==null)return l.dehydrated}return null}function M(n){if(w(n)!==n)throw Error(h(188))}function G(n){var l=n.alternate;if(!l){if(l=w(n),l===null)throw Error(h(188));return l!==n?null:n}for(var u=n,s=l;;){var m=u.return;if(m===null)break;var g=m.alternate;if(g===null){if(s=m.return,s!==null){u=s;continue}break}if(m.child===g.child){for(g=m.child;g;){if(g===u)return M(m),n;if(g===s)return M(m),l;g=g.sibling}throw Error(h(188))}if(u.return!==s.return)u=m,s=g;else{for(var S=!1,x=m.child;x;){if(x===u){S=!0,u=m,s=g;break}if(x===s){S=!0,s=m,u=g;break}x=x.sibling}if(!S){for(x=g.child;x;){if(x===u){S=!0,u=g,s=m;break}if(x===s){S=!0,s=g,u=m;break}x=x.sibling}if(!S)throw Error(h(189))}}if(u.alternate!==s)throw Error(h(190))}if(u.tag!==3)throw Error(h(188));return u.stateNode.current===u?n:l}function U(n){var l=n.tag;if(l===5||l===26||l===27||l===6)return n;for(n=n.child;n!==null;){if(l=U(n),l!==null)return l;n=n.sibling}return null}var N=Object.assign,q=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),ne=Symbol.for("react.portal"),oe=Symbol.for("react.fragment"),ue=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),ye=Symbol.for("react.consumer"),be=Symbol.for("react.context"),Te=Symbol.for("react.forward_ref"),nt=Symbol.for("react.suspense"),Be=Symbol.for("react.suspense_list"),Qe=Symbol.for("react.memo"),xe=Symbol.for("react.lazy"),me=Symbol.for("react.activity"),ce=Symbol.for("react.memo_cache_sentinel"),Ut=Symbol.iterator;function ke(n){return n===null||typeof n!="object"?null:(n=Ut&&n[Ut]||n["@@iterator"],typeof n=="function"?n:null)}var He=Symbol.for("react.client.reference");function Ft(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===He?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case oe:return"Fragment";case P:return"Profiler";case ue:return"StrictMode";case nt:return"Suspense";case Be:return"SuspenseList";case me:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case ne:return"Portal";case be:return n.displayName||"Context";case ye:return(n._context.displayName||"Context")+".Consumer";case Te:var l=n.render;return n=n.displayName,n||(n=l.displayName||l.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case Qe:return l=n.displayName||null,l!==null?l:Ft(n.type)||"Memo";case xe:l=n._payload,n=n._init;try{return Ft(n(l))}catch{}}return null}var $t=Array.isArray,V=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},ve=[],Ce=-1;function Et(n){return{current:n}}function st(n){0>Ce||(n.current=ve[Ce],ve[Ce]=null,Ce--)}function Xe(n,l){Ce++,ve[Ce]=n.current,n.current=l}var Ze=Et(null),Bt=Et(null),en=Et(null),Pn=Et(null);function Vt(n,l){switch(Xe(en,l),Xe(Bt,n),Xe(Ze,null),l.nodeType){case 9:case 11:n=(n=l.documentElement)&&(n=n.namespaceURI)?g4(n):0;break;default:if(n=l.tagName,l=l.namespaceURI)l=g4(l),n=cp(l,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}st(Ze),Xe(Ze,n)}function ea(){st(Ze),st(Bt),st(en)}function cu(n){n.memoizedState!==null&&Xe(Pn,n);var l=Ze.current,u=cp(l,n.type);l!==u&&(Xe(Bt,n),Xe(Ze,u))}function fe(n){Bt.current===n&&(st(Ze),st(Bt)),Pn.current===n&&(st(Pn),vh._currentValue=ie)}var Ti,io;function Va(n){if(Ti===void 0)try{throw Error()}catch(u){var l=u.stack.trim().match(/\n( *(at )?)/);Ti=l&&l[1]||"",io=-1<u.stack.indexOf(`
99
- at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
100
- `+Ti+n+io}var Ya=!1;function dt(n,l){if(!n||Ya)return"";Ya=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(l){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch($){var Z=$}Reflect.construct(n,[],ae)}else{try{ae.call()}catch($){Z=$}n.call(ae.prototype)}}else{try{throw Error()}catch($){Z=$}(ae=n())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch($){if($&&Z&&typeof $.stack=="string")return[$.stack,Z.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=s.DetermineComponentFrameRoot(),S=g[0],x=g[1];if(S&&x){var z=S.split(`
101
- `),Q=x.split(`
102
- `);for(m=s=0;s<z.length&&!z[s].includes("DetermineComponentFrameRoot");)s++;for(;m<Q.length&&!Q[m].includes("DetermineComponentFrameRoot");)m++;if(s===z.length||m===Q.length)for(s=z.length-1,m=Q.length-1;1<=s&&0<=m&&z[s]!==Q[m];)m--;for(;1<=s&&0<=m;s--,m--)if(z[s]!==Q[m]){if(s!==1||m!==1)do if(s--,m--,0>m||z[s]!==Q[m]){var I=`
103
- `+z[s].replace(" at new "," at ");return n.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",n.displayName)),I}while(1<=s&&0<=m);break}}}finally{Ya=!1,Error.prepareStackTrace=u}return(u=n?n.displayName||n.name:"")?Va(u):""}function Zo(n,l){switch(n.tag){case 26:case 27:case 5:return Va(n.type);case 16:return Va("Lazy");case 13:return n.child!==l&&l!==null?Va("Suspense Fallback"):Va("Suspense");case 19:return Va("SuspenseList");case 0:case 15:return dt(n.type,!1);case 11:return dt(n.type.render,!1);case 1:return dt(n.type,!0);case 31:return Va("Activity");default:return""}}function Re(n){try{var l="",u=null;do l+=Zo(n,u),u=n,n=n.return;while(n);return l}catch(s){return`
104
- Error generating stack: `+s.message+`
105
- `+s.stack}}var kt=Object.prototype.hasOwnProperty,ht=i.unstable_scheduleCallback,Jo=i.unstable_cancelCallback,Ql=i.unstable_shouldYield,Vc=i.unstable_requestPaint,Hn=i.unstable_now,S0=i.unstable_getCurrentPriorityLevel,cr=i.unstable_ImmediatePriority,sr=i.unstable_UserBlockingPriority,su=i.unstable_NormalPriority,ym=i.unstable_LowPriority,rr=i.unstable_IdlePriority,wa=i.log,Ko=i.unstable_setDisableYieldValue,sn=null,_n=null;function ol(n){if(typeof wa=="function"&&Ko(n),_n&&typeof _n.setStrictMode=="function")try{_n.setStrictMode(sn,n)}catch{}}var ba=Math.clz32?Math.clz32:Zl,E0=Math.log,ru=Math.LN2;function Zl(n){return n>>>=0,n===0?32:31-(E0(n)/ru|0)|0}var Ai=256,vl=262144,Jl=4194304;function Kl(n){var l=n&42;if(l!==0)return l;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function xn(n,l,u){var s=n.pendingLanes;if(s===0)return 0;var m=0,g=n.suspendedLanes,S=n.pingedLanes;n=n.warmLanes;var x=s&134217727;return x!==0?(s=x&~g,s!==0?m=Kl(s):(S&=x,S!==0?m=Kl(S):u||(u=x&~n,u!==0&&(m=Kl(u))))):(x=s&~g,x!==0?m=Kl(x):S!==0?m=Kl(S):u||(u=s&~n,u!==0&&(m=Kl(u)))),m===0?0:l!==0&&l!==m&&!(l&g)&&(g=m&-m,u=l&-l,g>=u||g===32&&(u&4194048)!==0)?l:m}function _i(n,l){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&l)===0}function fr(n,l){switch(n){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Yc(){var n=Jl;return Jl<<=1,!(Jl&62914560)&&(Jl=4194304),n}function id(n){for(var l=[],u=0;31>u;u++)l.push(n);return l}function dr(n,l){n.pendingLanes|=l,l!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function T0(n,l,u,s,m,g){var S=n.pendingLanes;n.pendingLanes=u,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=u,n.entangledLanes&=u,n.errorRecoveryDisabledLanes&=u,n.shellSuspendCounter=0;var x=n.entanglements,z=n.expirationTimes,Q=n.hiddenUpdates;for(u=S&~u;0<u;){var I=31-ba(u),ae=1<<I;x[I]=0,z[I]=-1;var Z=Q[I];if(Z!==null)for(Q[I]=null,I=0;I<Z.length;I++){var $=Z[I];$!==null&&($.lane&=-536870913)}u&=~ae}s!==0&&ud(n,s,0),g!==0&&m===0&&n.tag!==0&&(n.suspendedLanes|=g&~(S&~l))}function ud(n,l,u){n.pendingLanes|=l,n.suspendedLanes&=~l;var s=31-ba(l);n.entangledLanes|=l,n.entanglements[s]=n.entanglements[s]|1073741824|u&261930}function fu(n,l){var u=n.entangledLanes|=l;for(n=n.entanglements;u;){var s=31-ba(u),m=1<<s;m&l|n[s]&l&&(n[s]|=l),u&=~m}}function wl(n,l){var u=l&-l;return u=u&42?1:A0(u),u&(n.suspendedLanes|l)?0:u}function A0(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function vm(n){return n&=-n,2<n?8<n?n&134217727?32:268435456:8:2}function _0(){var n=ee.p;return n!==0?n:(n=window.event,n===void 0?32:wh(n.type))}function wm(n,l){var u=ee.p;try{return ee.p=n,l()}finally{ee.p=u}}var xi=Math.random().toString(36).slice(2),Ht="__reactFiber$"+xi,ka="__reactProps$"+xi,Fo="__reactContainer$"+xi,x0="__reactEvents$"+xi,bm="__reactListeners$"+xi,a3="__reactHandles$"+xi,Sm="__reactResources$"+xi,du="__reactMarker$"+xi;function M0(n){delete n[Ht],delete n[ka],delete n[x0],delete n[bm],delete n[a3]}function kc(n){var l=n[Ht];if(l)return l;for(var u=n.parentNode;u;){if(l=u[Fo]||u[Ht]){if(u=l.alternate,l.child!==null||u!==null&&u.child!==null)for(n=Ji(n);n!==null;){if(u=n[Ht])return u;n=Ji(n)}return l}n=u,u=n.parentNode}return null}function Xc(n){if(n=n[Ht]||n[Fo]){var l=n.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return n}return null}function hr(n){var l=n.tag;if(l===5||l===26||l===27||l===6)return n.stateNode;throw Error(h(33))}function Qc(n){var l=n[Sm];return l||(l=n[Sm]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Mt(n){n[du]=!0}var Zc=new Set,$o={};function Io(n,l){hu(n,l),hu(n+"Capture",l)}function hu(n,l){for($o[n]=l,n=0;n<l.length;n++)Zc.add(l[n])}var C0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),D0={},mr={};function gr(n){return kt.call(mr,n)?!0:kt.call(D0,n)?!1:C0.test(n)?mr[n]=!0:(D0[n]=!0,!1)}function pr(n,l,u){if(gr(l))if(u===null)n.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":n.removeAttribute(l);return;case"boolean":var s=l.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){n.removeAttribute(l);return}}n.setAttribute(l,""+u)}}function O0(n,l,u){if(u===null)n.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(l);return}n.setAttribute(l,""+u)}}function uo(n,l,u,s){if(s===null)n.removeAttribute(u);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(u);return}n.setAttributeNS(l,u,""+s)}}function bl(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function z0(n){var l=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Em(n,l,u){var s=Object.getOwnPropertyDescriptor(n.constructor.prototype,l);if(!n.hasOwnProperty(l)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var m=s.get,g=s.set;return Object.defineProperty(n,l,{configurable:!0,get:function(){return m.call(this)},set:function(S){u=""+S,g.call(this,S)}}),Object.defineProperty(n,l,{enumerable:s.enumerable}),{getValue:function(){return u},setValue:function(S){u=""+S},stopTracking:function(){n._valueTracker=null,delete n[l]}}}}function N0(n){if(!n._valueTracker){var l=z0(n)?"checked":"value";n._valueTracker=Em(n,l,""+n[l])}}function Tm(n){if(!n)return!1;var l=n._valueTracker;if(!l)return!0;var u=l.getValue(),s="";return n&&(s=z0(n)?n.checked?"true":"false":n.value),n=s,n!==u?(l.setValue(n),!0):!1}function od(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var cb=/[\n"\\]/g;function Sl(n){return n.replace(cb,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function cd(n,l,u,s,m,g,S,x){n.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?n.type=S:n.removeAttribute("type"),l!=null?S==="number"?(l===0&&n.value===""||n.value!=l)&&(n.value=""+bl(l)):n.value!==""+bl(l)&&(n.value=""+bl(l)):S!=="submit"&&S!=="reset"||n.removeAttribute("value"),l!=null?Jc(n,S,bl(l)):u!=null?Jc(n,S,bl(u)):s!=null&&n.removeAttribute("value"),m==null&&g!=null&&(n.defaultChecked=!!g),m!=null&&(n.checked=m&&typeof m!="function"&&typeof m!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?n.name=""+bl(x):n.removeAttribute("name")}function sd(n,l,u,s,m,g,S,x){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(n.type=g),l!=null||u!=null){if(!(g!=="submit"&&g!=="reset"||l!=null)){N0(n);return}u=u!=null?""+bl(u):"",l=l!=null?""+bl(l):u,x||l===n.value||(n.value=l),n.defaultValue=l}s=s??m,s=typeof s!="function"&&typeof s!="symbol"&&!!s,n.checked=x?n.checked:!!s,n.defaultChecked=!!s,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(n.name=S),N0(n)}function Jc(n,l,u){l==="number"&&od(n.ownerDocument)===n||n.defaultValue===""+u||(n.defaultValue=""+u)}function yr(n,l,u,s){if(n=n.options,l){l={};for(var m=0;m<u.length;m++)l["$"+u[m]]=!0;for(u=0;u<n.length;u++)m=l.hasOwnProperty("$"+n[u].value),n[u].selected!==m&&(n[u].selected=m),m&&s&&(n[u].defaultSelected=!0)}else{for(u=""+bl(u),l=null,m=0;m<n.length;m++){if(n[m].value===u){n[m].selected=!0,s&&(n[m].defaultSelected=!0);return}l!==null||n[m].disabled||(l=n[m])}l!==null&&(l.selected=!0)}}function Am(n,l,u){if(l!=null&&(l=""+bl(l),l!==n.value&&(n.value=l),u==null)){n.defaultValue!==l&&(n.defaultValue=l);return}n.defaultValue=u!=null?""+bl(u):""}function _m(n,l,u,s){if(l==null){if(s!=null){if(u!=null)throw Error(h(92));if($t(s)){if(1<s.length)throw Error(h(93));s=s[0]}u=s}u==null&&(u=""),l=u}u=bl(l),n.defaultValue=u,s=n.textContent,s===u&&s!==""&&s!==null&&(n.value=s),N0(n)}function mu(n,l){if(l){var u=n.firstChild;if(u&&u===n.lastChild&&u.nodeType===3){u.nodeValue=l;return}}n.textContent=l}var l3=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function i3(n,l,u){var s=l.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?s?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="":s?n.setProperty(l,u):typeof u!="number"||u===0||l3.has(l)?l==="float"?n.cssFloat=u:n[l]=(""+u).trim():n[l]=u+"px"}function u3(n,l,u){if(l!=null&&typeof l!="object")throw Error(h(62));if(n=n.style,u!=null){for(var s in u)!u.hasOwnProperty(s)||l!=null&&l.hasOwnProperty(s)||(s.indexOf("--")===0?n.setProperty(s,""):s==="float"?n.cssFloat="":n[s]="");for(var m in l)s=l[m],l.hasOwnProperty(m)&&u[m]!==s&&i3(n,m,s)}else for(var g in l)l.hasOwnProperty(g)&&i3(n,g,l[g])}function xm(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sb=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),rd=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Fl(n){return rd.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Mi(){}var U0=null;function B0(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var gu=null,Kc=null;function fd(n){var l=Xc(n);if(l&&(n=l.stateNode)){var u=n[ka]||null;e:switch(n=l.stateNode,l.type){case"input":if(cd(n,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),l=u.name,u.type==="radio"&&l!=null){for(u=n;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+Sl(""+l)+'"][type="radio"]'),l=0;l<u.length;l++){var s=u[l];if(s!==n&&s.form===n.form){var m=s[ka]||null;if(!m)throw Error(h(90));cd(s,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(l=0;l<u.length;l++)s=u[l],s.form===n.form&&Tm(s)}break e;case"textarea":Am(n,u.value,u.defaultValue);break e;case"select":l=u.value,l!=null&&yr(n,!!u.multiple,l,!1)}}}var vr=!1;function Mm(n,l,u){if(vr)return n(l,u);vr=!0;try{var s=n(l);return s}finally{if(vr=!1,(gu!==null||Kc!==null)&&(ef(),gu&&(l=gu,n=Kc,Kc=gu=null,fd(l),n)))for(l=0;l<n.length;l++)fd(n[l])}}function ta(n,l){var u=n.stateNode;if(u===null)return null;var s=u[ka]||null;if(s===null)return null;u=s[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(n=n.type,s=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!s;break e;default:n=!1}if(n)return null;if(u&&typeof u!="function")throw Error(h(231,l,typeof u));return u}var oo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dd=!1;if(oo)try{var wr={};Object.defineProperty(wr,"passive",{get:function(){dd=!0}}),window.addEventListener("test",wr,wr),window.removeEventListener("test",wr,wr)}catch{dd=!1}var co=null,Cm=null,H0=null;function Dm(){if(H0)return H0;var n,l=Cm,u=l.length,s,m="value"in co?co.value:co.textContent,g=m.length;for(n=0;n<u&&l[n]===m[n];n++);var S=u-n;for(s=1;s<=S&&l[u-s]===m[g-s];s++);return H0=m.slice(n,1<s?1-s:void 0)}function L0(n){var l=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&l===13&&(n=13)):n=l,n===10&&(n=13),32<=n||n===13?n:0}function hd(){return!0}function o3(){return!1}function Sa(n){function l(u,s,m,g,S){this._reactName=u,this._targetInst=m,this.type=s,this.nativeEvent=g,this.target=S,this.currentTarget=null;for(var x in n)n.hasOwnProperty(x)&&(u=n[x],this[x]=u?u(g):g[x]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?hd:o3,this.isPropagationStopped=o3,this}return N(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=hd)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=hd)},persist:function(){},isPersistent:hd}),l}var Wo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},md=Sa(Wo),br=N({},Wo,{view:0,detail:0}),rb=Sa(br),Om,zm,gd,G0=N({},br,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$l,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==gd&&(gd&&n.type==="mousemove"?(Om=n.screenX-gd.screenX,zm=n.screenY-gd.screenY):zm=Om=0,gd=n),Om)},movementY:function(n){return"movementY"in n?n.movementY:zm}}),Sr=Sa(G0),c3=N({},G0,{dataTransfer:0}),s3=Sa(c3),r3=N({},br,{relatedTarget:0}),R0=Sa(r3),Nm=N({},Wo,{animationName:0,elapsedTime:0,pseudoElement:0}),f3=Sa(Nm),Fc=N({},Wo,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),$c=Sa(Fc),Ci=N({},Wo,{data:0}),d3=Sa(Ci),Um={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pu={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},h3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Di(n){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(n):(n=h3[n])?!!l[n]:!1}function $l(){return Di}var j0=N({},br,{key:function(n){if(n.key){var l=Um[n.key]||n.key;if(l!=="Unidentified")return l}return n.type==="keypress"?(n=L0(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?pu[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$l,charCode:function(n){return n.type==="keypress"?L0(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?L0(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),q0=Sa(j0),Bm=N({},G0,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Oi=Sa(Bm),fb=N({},br,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$l}),m3=Sa(fb),g3=N({},Wo,{propertyName:0,elapsedTime:0,pseudoElement:0}),db=Sa(g3),Hm=N({},G0,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),hb=Sa(Hm),p3=N({},Wo,{newState:0,oldState:0}),Lm=Sa(p3),V0=[9,13,27,32],Er=oo&&"CompositionEvent"in window,Ic=null;oo&&"documentMode"in document&&(Ic=document.documentMode);var za=oo&&"TextEvent"in window&&!Ic,Gm=oo&&(!Er||Ic&&8<Ic&&11>=Ic),pd=" ",Po=!1;function Y0(n,l){switch(n){case"keyup":return V0.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rm(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Wc=!1;function y3(n,l){switch(n){case"compositionend":return Rm(l);case"keypress":return l.which!==32?null:(Po=!0,pd);case"textInput":return n=l.data,n===pd&&Po?null:n;default:return null}}function mb(n,l){if(Wc)return n==="compositionend"||!Er&&Y0(n,l)?(n=Dm(),H0=Cm=co=null,Wc=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return Gm&&l.locale!=="ko"?null:l.data;default:return null}}var jm={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function yu(n){var l=n&&n.nodeName&&n.nodeName.toLowerCase();return l==="input"?!!jm[n.type]:l==="textarea"}function qm(n,l,u,s){gu?Kc?Kc.push(s):Kc=[s]:gu=s,l=dh(l,"onChange"),0<l.length&&(u=new md("onChange","change",null,u,s),n.push({event:u,listeners:l}))}var Pc=null,ec=null;function es(n){d4(n,0)}function Tr(n){var l=hr(n);if(Tm(l))return n}function Vm(n,l){if(n==="change")return l}var k0=!1;if(oo){var Xa;if(oo){var zi="oninput"in document;if(!zi){var Ym=document.createElement("div");Ym.setAttribute("oninput","return;"),zi=typeof Ym.oninput=="function"}Xa=zi}else Xa=!1;k0=Xa&&(!document.documentMode||9<document.documentMode)}function X0(){Pc&&(Pc.detachEvent("onpropertychange",Q0),ec=Pc=null)}function Q0(n){if(n.propertyName==="value"&&Tr(ec)){var l=[];qm(l,ec,n,B0(n)),Mm(es,l)}}function v3(n,l,u){n==="focusin"?(X0(),Pc=l,ec=u,Pc.attachEvent("onpropertychange",Q0)):n==="focusout"&&X0()}function w3(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Tr(ec)}function tc(n,l){if(n==="click")return Tr(l)}function ts(n,l){if(n==="input"||n==="change")return Tr(l)}function b3(n,l){return n===l&&(n!==0||1/n===1/l)||n!==n&&l!==l}var Na=typeof Object.is=="function"?Object.is:b3;function Il(n,l){if(Na(n,l))return!0;if(typeof n!="object"||n===null||typeof l!="object"||l===null)return!1;var u=Object.keys(n),s=Object.keys(l);if(u.length!==s.length)return!1;for(s=0;s<u.length;s++){var m=u[s];if(!kt.call(l,m)||!Na(n[m],l[m]))return!1}return!0}function km(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Xm(n,l){var u=km(n);n=0;for(var s;u;){if(u.nodeType===3){if(s=n+u.textContent.length,n<=l&&s>=l)return{node:u,offset:l-n};n=s}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=km(u)}}function ns(n,l){return n&&l?n===l?!0:n&&n.nodeType===3?!1:l&&l.nodeType===3?ns(n,l.parentNode):"contains"in n?n.contains(l):n.compareDocumentPosition?!!(n.compareDocumentPosition(l)&16):!1:!1}function nc(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var l=od(n.document);l instanceof n.HTMLIFrameElement;){try{var u=typeof l.contentWindow.location.href=="string"}catch{u=!1}if(u)n=l.contentWindow;else break;l=od(n.document)}return l}function yd(n){var l=n&&n.nodeName&&n.nodeName.toLowerCase();return l&&(l==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||l==="textarea"||n.contentEditable==="true")}var vd=oo&&"documentMode"in document&&11>=document.documentMode,ac=null,Ar=null,Wl=null,Ni=!1;function Z0(n,l,u){var s=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Ni||ac==null||ac!==od(s)||(s=ac,"selectionStart"in s&&yd(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Wl&&Il(Wl,s)||(Wl=s,s=dh(Ar,"onSelect"),0<s.length&&(l=new md("onSelect","select",null,l,u),n.push({event:l,listeners:s}),l.target=ac)))}function so(n,l){var u={};return u[n.toLowerCase()]=l.toLowerCase(),u["Webkit"+n]="webkit"+l,u["Moz"+n]="moz"+l,u}var Ui={animationend:so("Animation","AnimationEnd"),animationiteration:so("Animation","AnimationIteration"),animationstart:so("Animation","AnimationStart"),transitionrun:so("Transition","TransitionRun"),transitionstart:so("Transition","TransitionStart"),transitioncancel:so("Transition","TransitionCancel"),transitionend:so("Transition","TransitionEnd")},_r={},lc={};oo&&(lc=document.createElement("div").style,"AnimationEvent"in window||(delete Ui.animationend.animation,delete Ui.animationiteration.animation,delete Ui.animationstart.animation),"TransitionEvent"in window||delete Ui.transitionend.transition);function Tt(n){if(_r[n])return _r[n];if(!Ui[n])return n;var l=Ui[n],u;for(u in l)if(l.hasOwnProperty(u)&&u in lc)return _r[n]=l[u];return n}var wd=Tt("animationend"),Qm=Tt("animationiteration"),J0=Tt("animationstart"),as=Tt("transitionrun"),bd=Tt("transitionstart"),vu=Tt("transitioncancel"),S3=Tt("transitionend"),wu=new Map,xr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");xr.push("scrollEnd");function Qa(n,l){wu.set(n,l),Io(l,[n])}var ls=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},tn=[],na=0,Pl=0;function El(){for(var n=na,l=Pl=na=0;l<n;){var u=tn[l];tn[l++]=null;var s=tn[l];tn[l++]=null;var m=tn[l];tn[l++]=null;var g=tn[l];if(tn[l++]=null,s!==null&&m!==null){var S=s.pending;S===null?m.next=m:(m.next=S.next,S.next=m),s.pending=m}g!==0&&K0(u,m,g)}}function Tl(n,l,u,s){tn[na++]=n,tn[na++]=l,tn[na++]=u,tn[na++]=s,Pl|=s,n.lanes|=s,n=n.alternate,n!==null&&(n.lanes|=s)}function ei(n,l,u,s){return Tl(n,l,u,s),Sd(n)}function ro(n,l){return Tl(n,null,null,l),Sd(n)}function K0(n,l,u){n.lanes|=u;var s=n.alternate;s!==null&&(s.lanes|=u);for(var m=!1,g=n.return;g!==null;)g.childLanes|=u,s=g.alternate,s!==null&&(s.childLanes|=u),g.tag===22&&(n=g.stateNode,n===null||n._visibility&1||(m=!0)),n=g,g=g.return;return n.tag===3?(g=n.stateNode,m&&l!==null&&(m=31-ba(u),n=g.hiddenUpdates,s=n[m],s===null?n[m]=[l]:s.push(l),l.lane=u|536870912),g):null}function Sd(n){if(50<Pr)throw Pr=0,ah=null,Error(h(185));for(var l=n.return;l!==null;)n=l,l=n.return;return n.tag===3?n.stateNode:null}var Za={};function E3(n,l,u,s){this.tag=n,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yn(n,l,u,s){return new E3(n,l,u,s)}function is(n){return n=n.prototype,!(!n||!n.isReactComponent)}function fo(n,l){var u=n.alternate;return u===null?(u=yn(n.tag,l,n.key,n.mode),u.elementType=n.elementType,u.type=n.type,u.stateNode=n.stateNode,u.alternate=n,n.alternate=u):(u.pendingProps=l,u.type=n.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=n.flags&65011712,u.childLanes=n.childLanes,u.lanes=n.lanes,u.child=n.child,u.memoizedProps=n.memoizedProps,u.memoizedState=n.memoizedState,u.updateQueue=n.updateQueue,l=n.dependencies,u.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},u.sibling=n.sibling,u.index=n.index,u.ref=n.ref,u.refCleanup=n.refCleanup,u}function Zm(n,l){n.flags&=65011714;var u=n.alternate;return u===null?(n.childLanes=0,n.lanes=l,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=u.childLanes,n.lanes=u.lanes,n.child=u.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=u.memoizedProps,n.memoizedState=u.memoizedState,n.updateQueue=u.updateQueue,n.type=u.type,l=u.dependencies,n.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),n}function F0(n,l,u,s,m,g){var S=0;if(s=n,typeof n=="function")is(n)&&(S=1);else if(typeof n=="string")S=gp(n,u,Ze.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case me:return n=yn(31,u,l,m),n.elementType=me,n.lanes=g,n;case oe:return ho(u.children,m,g,l);case ue:S=8,m|=24;break;case P:return n=yn(12,u,l,m|2),n.elementType=P,n.lanes=g,n;case nt:return n=yn(13,u,l,m),n.elementType=nt,n.lanes=g,n;case Be:return n=yn(19,u,l,m),n.elementType=Be,n.lanes=g,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case be:S=10;break e;case ye:S=9;break e;case Te:S=11;break e;case Qe:S=14;break e;case xe:S=16,s=null;break e}S=29,u=Error(h(130,n===null?"null":typeof n,"")),s=null}return l=yn(S,u,l,m),l.elementType=n,l.type=s,l.lanes=g,l}function ho(n,l,u,s){return n=yn(7,n,s,l),n.lanes=u,n}function Mr(n,l,u){return n=yn(6,n,null,l),n.lanes=u,n}function Jm(n){var l=yn(18,null,null,0);return l.stateNode=n,l}function $0(n,l,u){return l=yn(4,n.children!==null?n.children:[],n.key,l),l.lanes=u,l.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},l}var Km=new WeakMap;function Al(n,l){if(typeof n=="object"&&n!==null){var u=Km.get(n);return u!==void 0?u:(l={value:n,source:l,stack:Re(l)},Km.set(n,l),l)}return{value:n,source:l,stack:Re(l)}}var _l=[],us=0,Ed=null,Mn=0,cl=[],Ja=0,Bi=null,sl=1,Hi="";function ti(n,l){_l[us++]=Mn,_l[us++]=Ed,Ed=n,Mn=l}function Fm(n,l,u){cl[Ja++]=sl,cl[Ja++]=Hi,cl[Ja++]=Bi,Bi=n;var s=sl;n=Hi;var m=32-ba(s)-1;s&=~(1<<m),u+=1;var g=32-ba(l)+m;if(30<g){var S=m-m%5;g=(s&(1<<S)-1).toString(32),s>>=S,m-=S,sl=1<<32-ba(l)+m|u<<m|s,Hi=g+n}else sl=1<<g|u<<m|s,Hi=n}function Cr(n){n.return!==null&&(ti(n,1),Fm(n,1,0))}function I0(n){for(;n===Ed;)Ed=_l[--us],_l[us]=null,Mn=_l[--us],_l[us]=null;for(;n===Bi;)Bi=cl[--Ja],cl[Ja]=null,Hi=cl[--Ja],cl[Ja]=null,sl=cl[--Ja],cl[Ja]=null}function Td(n,l){cl[Ja++]=sl,cl[Ja++]=Hi,cl[Ja++]=Bi,sl=l.id,Hi=l.overflow,Bi=n}var aa=null,Xt=null,ut=!1,bu=null,kn=!1,Su=Error(h(519));function ni(n){var l=Error(h(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Or(Al(l,n)),Su}function Ad(n){var l=n.stateNode,u=n.type,s=n.memoizedProps;switch(l[Ht]=n,l[ka]=s,u){case"dialog":it("cancel",l),it("close",l);break;case"iframe":case"object":case"embed":it("load",l);break;case"video":case"audio":for(u=0;u<uf.length;u++)it(uf[u],l);break;case"source":it("error",l);break;case"img":case"image":case"link":it("error",l),it("load",l);break;case"details":it("toggle",l);break;case"input":it("invalid",l),sd(l,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":it("invalid",l);break;case"textarea":it("invalid",l),_m(l,s.value,s.defaultValue,s.children)}u=s.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||l.textContent===""+u||s.suppressHydrationWarning===!0||lp(l.textContent,u)?(s.popover!=null&&(it("beforetoggle",l),it("toggle",l)),s.onScroll!=null&&it("scroll",l),s.onScrollEnd!=null&&it("scrollend",l),s.onClick!=null&&(l.onclick=Mi),l=!0):l=!1,l||ni(n,!0)}function Dr(n){for(aa=n.return;aa;)switch(aa.tag){case 5:case 31:case 13:kn=!1;return;case 27:case 3:kn=!0;return;default:aa=aa.return}}function Eu(n){if(n!==aa)return!1;if(!ut)return Dr(n),ut=!0,!1;var l=n.tag,u;if((u=l!==3&&l!==27)&&((u=l===5)&&(u=n.type,u=!(u!=="form"&&u!=="button")||cf(n.type,n.memoizedProps)),u=!u),u&&Xt&&ni(n),Dr(n),l===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(h(317));Xt=e2(n)}else if(l===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(h(317));Xt=e2(n)}else l===27?(l=Xt,Zi(n.type)?(n=gh,gh=null,Xt=n):Xt=l):Xt=aa?al(n.stateNode.nextSibling):null;return!0}function ic(){Xt=aa=null,ut=!1}function $m(){var n=bu;return n!==null&&(dn===null?dn=n:dn.push.apply(dn,n),bu=null),n}function Or(n){bu===null?bu=[n]:bu.push(n)}var W0=Et(null),mo=null,Li=null;function Ka(n,l,u){Xe(W0,l._currentValue),l._currentValue=u}function Gi(n){n._currentValue=W0.current,st(W0)}function P0(n,l,u){for(;n!==null;){var s=n.alternate;if((n.childLanes&l)!==l?(n.childLanes|=l,s!==null&&(s.childLanes|=l)):s!==null&&(s.childLanes&l)!==l&&(s.childLanes|=l),n===u)break;n=n.return}}function Tu(n,l,u,s){var m=n.child;for(m!==null&&(m.return=n);m!==null;){var g=m.dependencies;if(g!==null){var S=m.child;g=g.firstContext;e:for(;g!==null;){var x=g;g=m;for(var z=0;z<l.length;z++)if(x.context===l[z]){g.lanes|=u,x=g.alternate,x!==null&&(x.lanes|=u),P0(g.return,u,n),s||(S=null);break e}g=x.next}}else if(m.tag===18){if(S=m.return,S===null)throw Error(h(341));S.lanes|=u,g=S.alternate,g!==null&&(g.lanes|=u),P0(S,u,n),S=null}else S=m.child;if(S!==null)S.return=m;else for(S=m;S!==null;){if(S===n){S=null;break}if(m=S.sibling,m!==null){m.return=S.return,S=m;break}S=S.return}m=S}}function la(n,l,u,s){n=null;for(var m=l,g=!1;m!==null;){if(!g){if(m.flags&524288)g=!0;else if(m.flags&262144)break}if(m.tag===10){var S=m.alternate;if(S===null)throw Error(h(387));if(S=S.memoizedProps,S!==null){var x=m.type;Na(m.pendingProps.value,S.value)||(n!==null?n.push(x):n=[x])}}else if(m===Pn.current){if(S=m.alternate,S===null)throw Error(h(387));S.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(n!==null?n.push(vh):n=[vh])}m=m.return}n!==null&&Tu(l,n,u,s),l.flags|=262144}function os(n){for(n=n.firstContext;n!==null;){if(!Na(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function qe(n){mo=n,Li=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function le(n){return _d(mo,n)}function go(n,l){return mo===null&&qe(n),_d(n,l)}function _d(n,l){var u=l._currentValue;if(l={context:l,memoizedValue:u,next:null},Li===null){if(n===null)throw Error(h(308));Li=l,n.dependencies={lanes:0,firstContext:l},n.flags|=524288}else Li=Li.next=l;return u}var vn=typeof AbortController<"u"?AbortController:function(){var n=[],l=this.signal={aborted:!1,addEventListener:function(u,s){n.push(s)}};this.abort=function(){l.aborted=!0,n.forEach(function(u){return u()})}},Im=i.unstable_scheduleCallback,Wm=i.unstable_NormalPriority,Cn={$$typeof:be,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xd(){return{controller:new vn,data:new Map,refCount:0}}function Md(n){n.refCount--,n.refCount===0&&Im(Wm,function(){n.controller.abort()})}var cs=null,Cd=0,uc=0,Ln=null;function Ct(n,l){if(cs===null){var u=cs=[];Cd=0,uc=Z1(),Ln={status:"pending",value:void 0,then:function(s){u.push(s)}}}return Cd++,l.then(Dd,Dd),l}function Dd(){if(--Cd===0&&cs!==null){Ln!==null&&(Ln.status="fulfilled");var n=cs;cs=null,uc=0,Ln=null;for(var l=0;l<n.length;l++)(0,n[l])()}}function Od(n,l){var u=[],s={status:"pending",value:null,reason:null,then:function(m){u.push(m)}};return n.then(function(){s.status="fulfilled",s.value=l;for(var m=0;m<u.length;m++)(0,u[m])(l)},function(m){for(s.status="rejected",s.reason=m,m=0;m<u.length;m++)(0,u[m])(void 0)}),s}var po=V.S;V.S=function(n,l){Qg=Hn(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&Ct(n,l),po!==null&&po(n,l)};var xl=Et(null);function Ml(){var n=xl.current;return n!==null?n:Gt.pooledCache}function zr(n,l){l===null?Xe(xl,xl.current):Xe(xl,l.pool)}function ss(){var n=Ml();return n===null?null:{parent:Cn._currentValue,pool:n}}var oc=Error(h(460)),rs=Error(h(474)),Nr=Error(h(542)),fs={then:function(){}};function Pm(n){return n=n.status,n==="fulfilled"||n==="rejected"}function eg(n,l,u){switch(u=n[u],u===void 0?n.push(l):u!==l&&(l.then(Mi,Mi),l=u),l.status){case"fulfilled":return l.value;case"rejected":throw n=l.reason,e1(n),n;default:if(typeof l.status=="string")l.then(Mi,Mi);else{if(n=Gt,n!==null&&100<n.shellSuspendCounter)throw Error(h(482));n=l,n.status="pending",n.then(function(s){if(l.status==="pending"){var m=l;m.status="fulfilled",m.value=s}},function(s){if(l.status==="pending"){var m=l;m.status="rejected",m.reason=s}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw n=l.reason,e1(n),n}throw sc=l,oc}}function cc(n){try{var l=n._init;return l(n._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(sc=u,oc):u}}var sc=null;function tg(){if(sc===null)throw Error(h(459));var n=sc;return sc=null,n}function e1(n){if(n===oc||n===Nr)throw Error(h(483))}var rc=null,ds=0;function zd(n){var l=ds;return ds+=1,rc===null&&(rc=[]),eg(rc,n,l)}function Ur(n,l){l=l.props.ref,n.ref=l!==void 0?l:null}function Nd(n,l){throw l.$$typeof===q?Error(h(525)):(n=Object.prototype.toString.call(l),Error(h(31,n==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":n)))}function T3(n){function l(Y,L){if(n){var X=Y.deletions;X===null?(Y.deletions=[L],Y.flags|=16):X.push(L)}}function u(Y,L){if(!n)return null;for(;L!==null;)l(Y,L),L=L.sibling;return null}function s(Y){for(var L=new Map;Y!==null;)Y.key!==null?L.set(Y.key,Y):L.set(Y.index,Y),Y=Y.sibling;return L}function m(Y,L){return Y=fo(Y,L),Y.index=0,Y.sibling=null,Y}function g(Y,L,X){return Y.index=X,n?(X=Y.alternate,X!==null?(X=X.index,X<L?(Y.flags|=67108866,L):X):(Y.flags|=67108866,L)):(Y.flags|=1048576,L)}function S(Y){return n&&Y.alternate===null&&(Y.flags|=67108866),Y}function x(Y,L,X,te){return L===null||L.tag!==6?(L=Mr(X,Y.mode,te),L.return=Y,L):(L=m(L,X),L.return=Y,L)}function z(Y,L,X,te){var Ae=X.type;return Ae===oe?I(Y,L,X.props.children,te,X.key):L!==null&&(L.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===xe&&cc(Ae)===L.type)?(L=m(L,X.props),Ur(L,X),L.return=Y,L):(L=F0(X.type,X.key,X.props,null,Y.mode,te),Ur(L,X),L.return=Y,L)}function Q(Y,L,X,te){return L===null||L.tag!==4||L.stateNode.containerInfo!==X.containerInfo||L.stateNode.implementation!==X.implementation?(L=$0(X,Y.mode,te),L.return=Y,L):(L=m(L,X.children||[]),L.return=Y,L)}function I(Y,L,X,te,Ae){return L===null||L.tag!==7?(L=ho(X,Y.mode,te,Ae),L.return=Y,L):(L=m(L,X),L.return=Y,L)}function ae(Y,L,X){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Mr(""+L,Y.mode,X),L.return=Y,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case k:return X=F0(L.type,L.key,L.props,null,Y.mode,X),Ur(X,L),X.return=Y,X;case ne:return L=$0(L,Y.mode,X),L.return=Y,L;case xe:return L=cc(L),ae(Y,L,X)}if($t(L)||ke(L))return L=ho(L,Y.mode,X,null),L.return=Y,L;if(typeof L.then=="function")return ae(Y,zd(L),X);if(L.$$typeof===be)return ae(Y,go(Y,L),X);Nd(Y,L)}return null}function Z(Y,L,X,te){var Ae=L!==null?L.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return Ae!==null?null:x(Y,L,""+X,te);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case k:return X.key===Ae?z(Y,L,X,te):null;case ne:return X.key===Ae?Q(Y,L,X,te):null;case xe:return X=cc(X),Z(Y,L,X,te)}if($t(X)||ke(X))return Ae!==null?null:I(Y,L,X,te,null);if(typeof X.then=="function")return Z(Y,L,zd(X),te);if(X.$$typeof===be)return Z(Y,L,go(Y,X),te);Nd(Y,X)}return null}function $(Y,L,X,te,Ae){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return Y=Y.get(X)||null,x(L,Y,""+te,Ae);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case k:return Y=Y.get(te.key===null?X:te.key)||null,z(L,Y,te,Ae);case ne:return Y=Y.get(te.key===null?X:te.key)||null,Q(L,Y,te,Ae);case xe:return te=cc(te),$(Y,L,X,te,Ae)}if($t(te)||ke(te))return Y=Y.get(X)||null,I(L,Y,te,Ae,null);if(typeof te.then=="function")return $(Y,L,X,zd(te),Ae);if(te.$$typeof===be)return $(Y,L,X,go(L,te),Ae);Nd(L,te)}return null}function he(Y,L,X,te){for(var Ae=null,gt=null,pe=L,Je=L=0,$e=null;pe!==null&&Je<X.length;Je++){pe.index>Je?($e=pe,pe=null):$e=pe.sibling;var wt=Z(Y,pe,X[Je],te);if(wt===null){pe===null&&(pe=$e);break}n&&pe&&wt.alternate===null&&l(Y,pe),L=g(wt,L,Je),gt===null?Ae=wt:gt.sibling=wt,gt=wt,pe=$e}if(Je===X.length)return u(Y,pe),ut&&ti(Y,Je),Ae;if(pe===null){for(;Je<X.length;Je++)pe=ae(Y,X[Je],te),pe!==null&&(L=g(pe,L,Je),gt===null?Ae=pe:gt.sibling=pe,gt=pe);return ut&&ti(Y,Je),Ae}for(pe=s(pe);Je<X.length;Je++)$e=$(pe,Y,Je,X[Je],te),$e!==null&&(n&&$e.alternate!==null&&pe.delete($e.key===null?Je:$e.key),L=g($e,L,Je),gt===null?Ae=$e:gt.sibling=$e,gt=$e);return n&&pe.forEach(function(Fi){return l(Y,Fi)}),ut&&ti(Y,Je),Ae}function ze(Y,L,X,te){if(X==null)throw Error(h(151));for(var Ae=null,gt=null,pe=L,Je=L=0,$e=null,wt=X.next();pe!==null&&!wt.done;Je++,wt=X.next()){pe.index>Je?($e=pe,pe=null):$e=pe.sibling;var Fi=Z(Y,pe,wt.value,te);if(Fi===null){pe===null&&(pe=$e);break}n&&pe&&Fi.alternate===null&&l(Y,pe),L=g(Fi,L,Je),gt===null?Ae=Fi:gt.sibling=Fi,gt=Fi,pe=$e}if(wt.done)return u(Y,pe),ut&&ti(Y,Je),Ae;if(pe===null){for(;!wt.done;Je++,wt=X.next())wt=ae(Y,wt.value,te),wt!==null&&(L=g(wt,L,Je),gt===null?Ae=wt:gt.sibling=wt,gt=wt);return ut&&ti(Y,Je),Ae}for(pe=s(pe);!wt.done;Je++,wt=X.next())wt=$(pe,Y,Je,wt.value,te),wt!==null&&(n&&wt.alternate!==null&&pe.delete(wt.key===null?Je:wt.key),L=g(wt,L,Je),gt===null?Ae=wt:gt.sibling=wt,gt=wt);return n&&pe.forEach(function(M4){return l(Y,M4)}),ut&&ti(Y,Je),Ae}function jt(Y,L,X,te){if(typeof X=="object"&&X!==null&&X.type===oe&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case k:e:{for(var Ae=X.key;L!==null;){if(L.key===Ae){if(Ae=X.type,Ae===oe){if(L.tag===7){u(Y,L.sibling),te=m(L,X.props.children),te.return=Y,Y=te;break e}}else if(L.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===xe&&cc(Ae)===L.type){u(Y,L.sibling),te=m(L,X.props),Ur(te,X),te.return=Y,Y=te;break e}u(Y,L);break}else l(Y,L);L=L.sibling}X.type===oe?(te=ho(X.props.children,Y.mode,te,X.key),te.return=Y,Y=te):(te=F0(X.type,X.key,X.props,null,Y.mode,te),Ur(te,X),te.return=Y,Y=te)}return S(Y);case ne:e:{for(Ae=X.key;L!==null;){if(L.key===Ae)if(L.tag===4&&L.stateNode.containerInfo===X.containerInfo&&L.stateNode.implementation===X.implementation){u(Y,L.sibling),te=m(L,X.children||[]),te.return=Y,Y=te;break e}else{u(Y,L);break}else l(Y,L);L=L.sibling}te=$0(X,Y.mode,te),te.return=Y,Y=te}return S(Y);case xe:return X=cc(X),jt(Y,L,X,te)}if($t(X))return he(Y,L,X,te);if(ke(X)){if(Ae=ke(X),typeof Ae!="function")throw Error(h(150));return X=Ae.call(X),ze(Y,L,X,te)}if(typeof X.then=="function")return jt(Y,L,zd(X),te);if(X.$$typeof===be)return jt(Y,L,go(Y,X),te);Nd(Y,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,L!==null&&L.tag===6?(u(Y,L.sibling),te=m(L,X),te.return=Y,Y=te):(u(Y,L),te=Mr(X,Y.mode,te),te.return=Y,Y=te),S(Y)):u(Y,L)}return function(Y,L,X,te){try{ds=0;var Ae=jt(Y,L,X,te);return rc=null,Ae}catch(pe){if(pe===oc||pe===Nr)throw pe;var gt=yn(29,pe,null,Y.mode);return gt.lanes=te,gt.return=Y,gt}finally{}}}var fc=T3(!0),ng=T3(!1),yo=!1;function Ud(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function t1(n,l){n=n.updateQueue,l.updateQueue===n&&(l.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function vo(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Cl(n,l,u){var s=n.updateQueue;if(s===null)return null;if(s=s.shared,vt&2){var m=s.pending;return m===null?l.next=l:(l.next=m.next,m.next=l),s.pending=l,l=Sd(n),K0(n,null,u),l}return Tl(n,s,l,u),Sd(n)}function dc(n,l,u){if(l=l.updateQueue,l!==null&&(l=l.shared,(u&4194048)!==0)){var s=l.lanes;s&=n.pendingLanes,u|=s,l.lanes=u,fu(n,u)}}function n1(n,l){var u=n.updateQueue,s=n.alternate;if(s!==null&&(s=s.updateQueue,u===s)){var m=null,g=null;if(u=u.firstBaseUpdate,u!==null){do{var S={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};g===null?m=g=S:g=g.next=S,u=u.next}while(u!==null);g===null?m=g=l:g=g.next=l}else m=g=l;u={baseState:s.baseState,firstBaseUpdate:m,lastBaseUpdate:g,shared:s.shared,callbacks:s.callbacks},n.updateQueue=u;return}n=u.lastBaseUpdate,n===null?u.firstBaseUpdate=l:n.next=l,u.lastBaseUpdate=l}var ag=!1;function hc(){if(ag){var n=Ln;if(n!==null)throw n}}function Au(n,l,u,s){ag=!1;var m=n.updateQueue;yo=!1;var g=m.firstBaseUpdate,S=m.lastBaseUpdate,x=m.shared.pending;if(x!==null){m.shared.pending=null;var z=x,Q=z.next;z.next=null,S===null?g=Q:S.next=Q,S=z;var I=n.alternate;I!==null&&(I=I.updateQueue,x=I.lastBaseUpdate,x!==S&&(x===null?I.firstBaseUpdate=Q:x.next=Q,I.lastBaseUpdate=z))}if(g!==null){var ae=m.baseState;S=0,I=Q=z=null,x=g;do{var Z=x.lane&-536870913,$=Z!==x.lane;if($?(at&Z)===Z:(s&Z)===Z){Z!==0&&Z===uc&&(ag=!0),I!==null&&(I=I.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var he=n,ze=x;Z=l;var jt=u;switch(ze.tag){case 1:if(he=ze.payload,typeof he=="function"){ae=he.call(jt,ae,Z);break e}ae=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=ze.payload,Z=typeof he=="function"?he.call(jt,ae,Z):he,Z==null)break e;ae=N({},ae,Z);break e;case 2:yo=!0}}Z=x.callback,Z!==null&&(n.flags|=64,$&&(n.flags|=8192),$=m.callbacks,$===null?m.callbacks=[Z]:$.push(Z))}else $={lane:Z,tag:x.tag,payload:x.payload,callback:x.callback,next:null},I===null?(Q=I=$,z=ae):I=I.next=$,S|=Z;if(x=x.next,x===null){if(x=m.shared.pending,x===null)break;$=x,x=$.next,$.next=null,m.lastBaseUpdate=$,m.shared.pending=null}}while(!0);I===null&&(z=ae),m.baseState=z,m.firstBaseUpdate=Q,m.lastBaseUpdate=I,g===null&&(m.shared.lanes=0),Xi|=S,n.lanes=S,n.memoizedState=ae}}function a1(n,l){if(typeof n!="function")throw Error(h(191,n));n.call(l)}function mc(n,l){var u=n.callbacks;if(u!==null)for(n.callbacks=null,n=0;n<u.length;n++)a1(u[n],l)}var Xn=Et(null),hs=Et(0);function A3(n,l){n=ki,Xe(hs,n),Xe(Xn,l),ki=n|l.baseLanes}function Bd(){Xe(hs,ki),Xe(Xn,Xn.current)}function Br(){ki=hs.current,st(Xn),st(hs)}var Fa=Et(null),Dl=null;function _u(n){var l=n.alternate;Xe(nn,nn.current&1),Xe(Fa,n),Dl===null&&(l===null||Xn.current!==null||l.memoizedState!==null)&&(Dl=n)}function Hr(n){Xe(nn,nn.current),Xe(Fa,n),Dl===null&&(Dl=n)}function l1(n){n.tag===22?(Xe(nn,nn.current),Xe(Fa,n),Dl===null&&(Dl=n)):Ri()}function Ri(){Xe(nn,nn.current),Xe(Fa,Fa.current)}function $a(n){st(Fa),Dl===n&&(Dl=null),st(nn)}var nn=Et(0);function Lr(n){for(var l=n;l!==null;){if(l.tag===13){var u=l.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||ui(u)||xc(u)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if(l.flags&128)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)break;for(;l.sibling===null;){if(l.return===null||l.return===n)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var xu=0,Ke=null,Dt=null,Dn=null,ms=!1,gs=!1,wo=!1,Hd=0,Gr=0,gc=null,_3=0;function rn(){throw Error(h(321))}function bo(n,l){if(l===null)return!1;for(var u=0;u<l.length&&u<n.length;u++)if(!Na(n[u],l[u]))return!1;return!0}function Ld(n,l,u,s,m,g){return xu=g,Ke=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,V.H=n===null||n.memoizedState===null?U3:S1,wo=!1,g=u(s,m),wo=!1,gs&&(g=x3(l,u,s,m)),i1(n),g}function i1(n){V.H=Qd;var l=Dt!==null&&Dt.next!==null;if(xu=0,Dn=Dt=Ke=null,ms=!1,Gr=0,gc=null,l)throw Error(h(300));n===null||On||(n=n.dependencies,n!==null&&os(n)&&(On=!0))}function x3(n,l,u,s){Ke=n;var m=0;do{if(gs&&(gc=null),Gr=0,gs=!1,25<=m)throw Error(h(301));if(m+=1,Dn=Dt=null,n.updateQueue!=null){var g=n.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}V.H=B3,g=l(u,s)}while(gs);return g}function gb(){var n=V.H,l=n.useState()[0];return l=typeof l.then=="function"?ys(l):l,n=n.useState()[0],(Dt!==null?Dt.memoizedState:null)!==n&&(Ke.flags|=1024),l}function u1(){var n=Hd!==0;return Hd=0,n}function ps(n,l,u){l.updateQueue=n.updateQueue,l.flags&=-2053,n.lanes&=~u}function Gd(n){if(ms){for(n=n.memoizedState;n!==null;){var l=n.queue;l!==null&&(l.pending=null),n=n.next}ms=!1}xu=0,Dn=Dt=Ke=null,gs=!1,Gr=Hd=0,gc=null}function ia(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dn===null?Ke.memoizedState=Dn=n:Dn=Dn.next=n,Dn}function wn(){if(Dt===null){var n=Ke.alternate;n=n!==null?n.memoizedState:null}else n=Dt.next;var l=Dn===null?Ke.memoizedState:Dn.next;if(l!==null)Dn=l,Dt=n;else{if(n===null)throw Ke.alternate===null?Error(h(467)):Error(h(310));Dt=n,n={memoizedState:Dt.memoizedState,baseState:Dt.baseState,baseQueue:Dt.baseQueue,queue:Dt.queue,next:null},Dn===null?Ke.memoizedState=Dn=n:Dn=Dn.next=n}return Dn}function Rd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ys(n){var l=Gr;return Gr+=1,gc===null&&(gc=[]),n=eg(gc,n,l),l=Ke,(Dn===null?l.memoizedState:Dn.next)===null&&(l=l.alternate,V.H=l===null||l.memoizedState===null?U3:S1),n}function Rr(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return ys(n);if(n.$$typeof===be)return le(n)}throw Error(h(438,String(n)))}function o1(n){var l=null,u=Ke.updateQueue;if(u!==null&&(l=u.memoCache),l==null){var s=Ke.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(l={data:s.data.map(function(m){return m.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),u===null&&(u=Rd(),Ke.updateQueue=u),u.memoCache=l,u=l.data[l.index],u===void 0)for(u=l.data[l.index]=Array(n),s=0;s<n;s++)u[s]=ce;return l.index++,u}function Mu(n,l){return typeof l=="function"?l(n):l}function Cu(n){var l=wn();return c1(l,Dt,n)}function c1(n,l,u){var s=n.queue;if(s===null)throw Error(h(311));s.lastRenderedReducer=u;var m=n.baseQueue,g=s.pending;if(g!==null){if(m!==null){var S=m.next;m.next=g.next,g.next=S}l.baseQueue=m=g,s.pending=null}if(g=n.baseState,m===null)n.memoizedState=g;else{l=m.next;var x=S=null,z=null,Q=l,I=!1;do{var ae=Q.lane&-536870913;if(ae!==Q.lane?(at&ae)===ae:(xu&ae)===ae){var Z=Q.revertLane;if(Z===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),ae===uc&&(I=!0);else if((xu&Z)===Z){Q=Q.next,Z===uc&&(I=!0);continue}else ae={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},z===null?(x=z=ae,S=g):z=z.next=ae,Ke.lanes|=Z,Xi|=Z;ae=Q.action,wo&&u(g,ae),g=Q.hasEagerState?Q.eagerState:u(g,ae)}else Z={lane:ae,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},z===null?(x=z=Z,S=g):z=z.next=Z,Ke.lanes|=ae,Xi|=ae;Q=Q.next}while(Q!==null&&Q!==l);if(z===null?S=g:z.next=x,!Na(g,n.memoizedState)&&(On=!0,I&&(u=Ln,u!==null)))throw u;n.memoizedState=g,n.baseState=S,n.baseQueue=z,s.lastRenderedState=g}return m===null&&(s.lanes=0),[n.memoizedState,s.dispatch]}function s1(n){var l=wn(),u=l.queue;if(u===null)throw Error(h(311));u.lastRenderedReducer=n;var s=u.dispatch,m=u.pending,g=l.memoizedState;if(m!==null){u.pending=null;var S=m=m.next;do g=n(g,S.action),S=S.next;while(S!==m);Na(g,l.memoizedState)||(On=!0),l.memoizedState=g,l.baseQueue===null&&(l.baseState=g),u.lastRenderedState=g}return[g,s]}function lg(n,l,u){var s=Ke,m=wn(),g=ut;if(g){if(u===void 0)throw Error(h(407));u=u()}else u=l();var S=!Na((Dt||m).memoizedState,u);if(S&&(m.memoizedState=u,On=!0),m=m.queue,m1(r1.bind(null,s,m,n),[n]),m.getSnapshot!==l||S||Dn!==null&&Dn.memoizedState.tag&1){if(s.flags|=2048,ws(9,{destroy:void 0},ig.bind(null,s,m,u,l),null),Gt===null)throw Error(h(349));g||xu&127||jd(s,l,u)}return u}function jd(n,l,u){n.flags|=16384,n={getSnapshot:l,value:u},l=Ke.updateQueue,l===null?(l=Rd(),Ke.updateQueue=l,l.stores=[n]):(u=l.stores,u===null?l.stores=[n]:u.push(n))}function ig(n,l,u,s){l.value=u,l.getSnapshot=s,f1(l)&&d1(n)}function r1(n,l,u){return u(function(){f1(l)&&d1(n)})}function f1(n){var l=n.getSnapshot;n=n.value;try{var u=l();return!Na(n,u)}catch{return!0}}function d1(n){var l=ro(n,2);l!==null&&nl(l,n,2)}function ug(n){var l=ia();if(typeof n=="function"){var u=n;if(n=u(),wo){ol(!0);try{u()}finally{ol(!1)}}}return l.memoizedState=l.baseState=n,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mu,lastRenderedState:n},l}function ua(n,l,u,s){return n.baseState=u,c1(n,Dt,typeof s=="function"?s:Mu)}function M3(n,l,u,s,m){if(Xd(n))throw Error(h(485));if(n=l.action,n!==null){var g={payload:m,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){g.listeners.push(S)}};V.T!==null?u(!0):g.isTransition=!1,s(g),u=l.pending,u===null?(g.next=l.pending=g,og(l,g)):(g.next=u.next,l.pending=u.next=g)}}function og(n,l){var u=l.action,s=l.payload,m=n.state;if(l.isTransition){var g=V.T,S={};V.T=S;try{var x=u(m,s),z=V.S;z!==null&&z(S,x),cg(n,l,x)}catch(Q){vs(n,l,Q)}finally{g!==null&&S.types!==null&&(g.types=S.types),V.T=g}}else try{g=u(m,s),cg(n,l,g)}catch(Q){vs(n,l,Q)}}function cg(n,l,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(s){sg(n,l,s)},function(s){return vs(n,l,s)}):sg(n,l,u)}function sg(n,l,u){l.status="fulfilled",l.value=u,rg(l),n.state=u,l=n.pending,l!==null&&(u=l.next,u===l?n.pending=null:(u=u.next,l.next=u,og(n,u)))}function vs(n,l,u){var s=n.pending;if(n.pending=null,s!==null){s=s.next;do l.status="rejected",l.reason=u,rg(l),l=l.next;while(l!==s)}n.action=null}function rg(n){n=n.listeners;for(var l=0;l<n.length;l++)(0,n[l])()}function qd(n,l){return l}function fg(n,l){if(ut){var u=Gt.formState;if(u!==null){e:{var s=Ke;if(ut){if(Xt){t:{for(var m=Xt,g=kn;m.nodeType!==8;){if(!g){m=null;break t}if(m=al(m.nextSibling),m===null){m=null;break t}}g=m.data,m=g==="F!"||g==="F"?m:null}if(m){Xt=al(m.nextSibling),s=m.data==="F!";break e}}ni(s)}s=!1}s&&(l=u[0])}}return u=ia(),u.memoizedState=u.baseState=l,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qd,lastRenderedState:l},u.queue=s,u=w1.bind(null,Ke,s),s.dispatch=u,s=ug(!1),g=pc.bind(null,Ke,!1,s.queue),s=ia(),m={state:l,dispatch:null,action:n,pending:null},s.queue=m,u=M3.bind(null,Ke,m,g,u),m.dispatch=u,s.memoizedState=n,[l,u,!1]}function C3(n){var l=wn();return Vd(l,Dt,n)}function Vd(n,l,u){if(l=c1(n,l,qd)[0],n=Cu(Mu)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var s=ys(l)}catch(S){throw S===oc?Nr:S}else s=l;l=wn();var m=l.queue,g=m.dispatch;return u!==l.memoizedState&&(Ke.flags|=2048,ws(9,{destroy:void 0},dg.bind(null,m,u),null)),[s,g,n]}function dg(n,l){n.action=l}function hg(n){var l=wn(),u=Dt;if(u!==null)return Vd(l,u,n);wn(),l=l.memoizedState,u=wn();var s=u.queue.dispatch;return u.memoizedState=n,[l,s,!1]}function ws(n,l,u,s){return n={tag:n,create:u,deps:s,inst:l,next:null},l=Ke.updateQueue,l===null&&(l=Rd(),Ke.updateQueue=l),u=l.lastEffect,u===null?l.lastEffect=n.next=n:(s=u.next,u.next=n,n.next=s,l.lastEffect=n),n}function mg(){return wn().memoizedState}function jr(n,l,u,s){var m=ia();Ke.flags|=n,m.memoizedState=ws(1|l,{destroy:void 0},u,s===void 0?null:s)}function qr(n,l,u,s){var m=wn();s=s===void 0?null:s;var g=m.memoizedState.inst;Dt!==null&&s!==null&&bo(s,Dt.memoizedState.deps)?m.memoizedState=ws(l,g,u,s):(Ke.flags|=n,m.memoizedState=ws(1|l,g,u,s))}function h1(n,l){jr(8390656,8,n,l)}function m1(n,l){qr(2048,8,n,l)}function gg(n){Ke.flags|=4;var l=Ke.updateQueue;if(l===null)l=Rd(),Ke.updateQueue=l,l.events=[n];else{var u=l.events;u===null?l.events=[n]:u.push(n)}}function Yd(n){var l=wn().memoizedState;return gg({ref:l,nextImpl:n}),function(){if(vt&2)throw Error(h(440));return l.impl.apply(void 0,arguments)}}function g1(n,l){return qr(4,2,n,l)}function pg(n,l){return qr(4,4,n,l)}function p1(n,l){if(typeof l=="function"){n=n();var u=l(n);return function(){typeof u=="function"?u():l(null)}}if(l!=null)return n=n(),l.current=n,function(){l.current=null}}function yg(n,l,u){u=u!=null?u.concat([n]):null,qr(4,4,p1.bind(null,l,n),u)}function ji(){}function y1(n,l){var u=wn();l=l===void 0?null:l;var s=u.memoizedState;return l!==null&&bo(l,s[1])?s[0]:(u.memoizedState=[n,l],n)}function D3(n,l){var u=wn();l=l===void 0?null:l;var s=u.memoizedState;if(l!==null&&bo(l,s[1]))return s[0];if(s=n(),wo){ol(!0);try{n()}finally{ol(!1)}}return u.memoizedState=[s,l],s}function kd(n,l,u){return u===void 0||xu&1073741824&&!(at&261930)?n.memoizedState=l:(n.memoizedState=u,n=X3(),Ke.lanes|=n,Xi|=n,u)}function Du(n,l,u,s){return Na(u,l)?u:Xn.current!==null?(n=kd(n,u,s),Na(n,l)||(On=!0),n):!(xu&42)||xu&1073741824&&!(at&261930)?(On=!0,n.memoizedState=u):(n=X3(),Ke.lanes|=n,Xi|=n,l)}function v1(n,l,u,s,m){var g=ee.p;ee.p=g!==0&&8>g?g:8;var S=V.T,x={};V.T=x,pc(n,!1,l,u);try{var z=m(),Q=V.S;if(Q!==null&&Q(x,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var I=Od(z,s);So(n,l,I,hl(n))}else So(n,l,s,hl(n))}catch(ae){So(n,l,{then:function(){},status:"rejected",reason:ae},hl())}finally{ee.p=g,S!==null&&x.types!==null&&(S.types=x.types),V.T=S}}function O3(){}function Vr(n,l,u,s){if(n.tag!==5)throw Error(h(476));var m=Yr(n).queue;v1(n,m,l,ie,u===null?O3:function(){return Lt(n),u(s)})}function Yr(n){var l=n.memoizedState;if(l!==null)return l;l={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mu,lastRenderedState:ie},next:null};var u={};return l.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mu,lastRenderedState:u},next:null},n.memoizedState=l,n=n.alternate,n!==null&&(n.memoizedState=l),l}function Lt(n){var l=Yr(n);l.next===null&&(l=n.alternate.memoizedState),So(n,l.next.queue,{},hl())}function vg(){return le(vh)}function z3(){return wn().memoizedState}function wg(){return wn().memoizedState}function Ou(n){for(var l=n.return;l!==null;){switch(l.tag){case 24:case 3:var u=hl();n=vo(u);var s=Cl(l,n,u);s!==null&&(nl(s,l,u),dc(s,l,u)),l={cache:xd()},n.payload=l;return}l=l.return}}function N3(n,l,u){var s=hl();u={lane:s,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Xd(n)?b1(l,u):(u=ei(n,l,u,s),u!==null&&(nl(u,n,s),bg(u,l,s)))}function w1(n,l,u){var s=hl();So(n,l,u,s)}function So(n,l,u,s){var m={lane:s,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Xd(n))b1(l,m);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=l.lastRenderedReducer,g!==null))try{var S=l.lastRenderedState,x=g(S,u);if(m.hasEagerState=!0,m.eagerState=x,Na(x,S))return Tl(n,l,m,0),Gt===null&&El(),!1}catch{}finally{}if(u=ei(n,l,m,s),u!==null)return nl(u,n,s),bg(u,l,s),!0}return!1}function pc(n,l,u,s){if(s={lane:2,revertLane:Z1(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Xd(n)){if(l)throw Error(h(479))}else l=ei(n,u,s,2),l!==null&&nl(l,n,2)}function Xd(n){var l=n.alternate;return n===Ke||l!==null&&l===Ke}function b1(n,l){gs=ms=!0;var u=n.pending;u===null?l.next=l:(l.next=u.next,u.next=l),n.pending=l}function bg(n,l,u){if(u&4194048){var s=l.lanes;s&=n.pendingLanes,u|=s,l.lanes=u,fu(n,u)}}var Qd={readContext:le,use:Rr,useCallback:rn,useContext:rn,useEffect:rn,useImperativeHandle:rn,useLayoutEffect:rn,useInsertionEffect:rn,useMemo:rn,useReducer:rn,useRef:rn,useState:rn,useDebugValue:rn,useDeferredValue:rn,useTransition:rn,useSyncExternalStore:rn,useId:rn,useHostTransitionStatus:rn,useFormState:rn,useActionState:rn,useOptimistic:rn,useMemoCache:rn,useCacheRefresh:rn};Qd.useEffectEvent=rn;var U3={readContext:le,use:Rr,useCallback:function(n,l){return ia().memoizedState=[n,l===void 0?null:l],n},useContext:le,useEffect:h1,useImperativeHandle:function(n,l,u){u=u!=null?u.concat([n]):null,jr(4194308,4,p1.bind(null,l,n),u)},useLayoutEffect:function(n,l){return jr(4194308,4,n,l)},useInsertionEffect:function(n,l){jr(4,2,n,l)},useMemo:function(n,l){var u=ia();l=l===void 0?null:l;var s=n();if(wo){ol(!0);try{n()}finally{ol(!1)}}return u.memoizedState=[s,l],s},useReducer:function(n,l,u){var s=ia();if(u!==void 0){var m=u(l);if(wo){ol(!0);try{u(l)}finally{ol(!1)}}}else m=l;return s.memoizedState=s.baseState=m,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:m},s.queue=n,n=n.dispatch=N3.bind(null,Ke,n),[s.memoizedState,n]},useRef:function(n){var l=ia();return n={current:n},l.memoizedState=n},useState:function(n){n=ug(n);var l=n.queue,u=w1.bind(null,Ke,l);return l.dispatch=u,[n.memoizedState,u]},useDebugValue:ji,useDeferredValue:function(n,l){var u=ia();return kd(u,n,l)},useTransition:function(){var n=ug(!1);return n=v1.bind(null,Ke,n.queue,!0,!1),ia().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,l,u){var s=Ke,m=ia();if(ut){if(u===void 0)throw Error(h(407));u=u()}else{if(u=l(),Gt===null)throw Error(h(349));at&127||jd(s,l,u)}m.memoizedState=u;var g={value:u,getSnapshot:l};return m.queue=g,h1(r1.bind(null,s,g,n),[n]),s.flags|=2048,ws(9,{destroy:void 0},ig.bind(null,s,g,u,l),null),u},useId:function(){var n=ia(),l=Gt.identifierPrefix;if(ut){var u=Hi,s=sl;u=(s&~(1<<32-ba(s)-1)).toString(32)+u,l="_"+l+"R_"+u,u=Hd++,0<u&&(l+="H"+u.toString(32)),l+="_"}else u=_3++,l="_"+l+"r_"+u.toString(32)+"_";return n.memoizedState=l},useHostTransitionStatus:vg,useFormState:fg,useActionState:fg,useOptimistic:function(n){var l=ia();l.memoizedState=l.baseState=n;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=u,l=pc.bind(null,Ke,!0,u),u.dispatch=l,[n,l]},useMemoCache:o1,useCacheRefresh:function(){return ia().memoizedState=Ou.bind(null,Ke)},useEffectEvent:function(n){var l=ia(),u={impl:n};return l.memoizedState=u,function(){if(vt&2)throw Error(h(440));return u.impl.apply(void 0,arguments)}}},S1={readContext:le,use:Rr,useCallback:y1,useContext:le,useEffect:m1,useImperativeHandle:yg,useInsertionEffect:g1,useLayoutEffect:pg,useMemo:D3,useReducer:Cu,useRef:mg,useState:function(){return Cu(Mu)},useDebugValue:ji,useDeferredValue:function(n,l){var u=wn();return Du(u,Dt.memoizedState,n,l)},useTransition:function(){var n=Cu(Mu)[0],l=wn().memoizedState;return[typeof n=="boolean"?n:ys(n),l]},useSyncExternalStore:lg,useId:z3,useHostTransitionStatus:vg,useFormState:C3,useActionState:C3,useOptimistic:function(n,l){var u=wn();return ua(u,Dt,n,l)},useMemoCache:o1,useCacheRefresh:wg};S1.useEffectEvent=Yd;var B3={readContext:le,use:Rr,useCallback:y1,useContext:le,useEffect:m1,useImperativeHandle:yg,useInsertionEffect:g1,useLayoutEffect:pg,useMemo:D3,useReducer:s1,useRef:mg,useState:function(){return s1(Mu)},useDebugValue:ji,useDeferredValue:function(n,l){var u=wn();return Dt===null?kd(u,n,l):Du(u,Dt.memoizedState,n,l)},useTransition:function(){var n=s1(Mu)[0],l=wn().memoizedState;return[typeof n=="boolean"?n:ys(n),l]},useSyncExternalStore:lg,useId:z3,useHostTransitionStatus:vg,useFormState:hg,useActionState:hg,useOptimistic:function(n,l){var u=wn();return Dt!==null?ua(u,Dt,n,l):(u.baseState=n,[n,u.queue.dispatch])},useMemoCache:o1,useCacheRefresh:wg};B3.useEffectEvent=Yd;function bs(n,l,u,s){l=n.memoizedState,u=u(s,l),u=u==null?l:N({},l,u),n.memoizedState=u,n.lanes===0&&(n.updateQueue.baseState=u)}var ai={enqueueSetState:function(n,l,u){n=n._reactInternals;var s=hl(),m=vo(s);m.payload=l,u!=null&&(m.callback=u),l=Cl(n,m,s),l!==null&&(nl(l,n,s),dc(l,n,s))},enqueueReplaceState:function(n,l,u){n=n._reactInternals;var s=hl(),m=vo(s);m.tag=1,m.payload=l,u!=null&&(m.callback=u),l=Cl(n,m,s),l!==null&&(nl(l,n,s),dc(l,n,s))},enqueueForceUpdate:function(n,l){n=n._reactInternals;var u=hl(),s=vo(u);s.tag=2,l!=null&&(s.callback=l),l=Cl(n,s,u),l!==null&&(nl(l,n,u),dc(l,n,u))}};function Sg(n,l,u,s,m,g,S){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(s,g,S):l.prototype&&l.prototype.isPureReactComponent?!Il(u,s)||!Il(m,g):!0}function H3(n,l,u,s){n=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(u,s),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(u,s),l.state!==n&&ai.enqueueReplaceState(l,l.state,null)}function yc(n,l){var u=l;if("ref"in l){u={};for(var s in l)s!=="ref"&&(u[s]=l[s])}if(n=n.defaultProps){u===l&&(u=N({},u));for(var m in n)u[m]===void 0&&(u[m]=n[m])}return u}function E1(n){ls(n)}function Eg(n){console.error(n)}function T1(n){ls(n)}function kr(n,l){try{var u=n.onUncaughtError;u(l.value,{componentStack:l.stack})}catch(s){setTimeout(function(){throw s})}}function Zd(n,l,u){try{var s=n.onCaughtError;s(u.value,{componentStack:u.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function Tg(n,l,u){return u=vo(u),u.tag=3,u.payload={element:null},u.callback=function(){kr(n,l)},u}function Ag(n){return n=vo(n),n.tag=3,n}function _g(n,l,u,s){var m=u.type.getDerivedStateFromError;if(typeof m=="function"){var g=s.value;n.payload=function(){return m(g)},n.callback=function(){Zd(l,u,s)}}var S=u.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(n.callback=function(){Zd(l,u,s),typeof m!="function"&&(an===null?an=new Set([this]):an.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})})}function pb(n,l,u,s,m){if(u.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(l=u.alternate,l!==null&&la(l,u,m,!0),u=Fa.current,u!==null){switch(u.tag){case 31:case 13:return Dl===null?Y1():u.alternate===null&&Zt===0&&(Zt=3),u.flags&=-257,u.flags|=65536,u.lanes=m,s===fs?u.flags|=16384:(l=u.updateQueue,l===null?u.updateQueue=new Set([s]):l.add(s),uh(n,s,m)),!1;case 22:return u.flags|=65536,s===fs?u.flags|=16384:(l=u.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([s])},u.updateQueue=l):(u=l.retryQueue,u===null?l.retryQueue=new Set([s]):u.add(s)),uh(n,s,m)),!1}throw Error(h(435,u.tag))}return uh(n,s,m),Y1(),!1}if(ut)return l=Fa.current,l!==null?(!(l.flags&65536)&&(l.flags|=256),l.flags|=65536,l.lanes=m,s!==Su&&(n=Error(h(422),{cause:s}),Or(Al(n,u)))):(s!==Su&&(l=Error(h(423),{cause:s}),Or(Al(l,u))),n=n.current.alternate,n.flags|=65536,m&=-m,n.lanes|=m,s=Al(s,u),m=Tg(n.stateNode,s,m),n1(n,m),Zt!==4&&(Zt=2)),!1;var g=Error(h(520),{cause:s});if(g=Al(g,u),nh===null?nh=[g]:nh.push(g),Zt!==4&&(Zt=2),l===null)return!0;s=Al(s,u),u=l;do{switch(u.tag){case 3:return u.flags|=65536,n=m&-m,u.lanes|=n,n=Tg(u.stateNode,s,n),n1(u,n),!1;case 1:if(l=u.type,g=u.stateNode,(u.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(an===null||!an.has(g))))return u.flags|=65536,m&=-m,u.lanes|=m,m=Ag(m),_g(m,n,u,s),n1(u,m),!1}u=u.return}while(u!==null);return!1}var A1=Error(h(461)),On=!1;function It(n,l,u,s){l.child=n===null?ng(l,null,u,s):fc(l,n.child,u,s)}function xg(n,l,u,s,m){u=u.render;var g=l.ref;if("ref"in s){var S={};for(var x in s)x!=="ref"&&(S[x]=s[x])}else S=s;return qe(l),s=Ld(n,l,u,S,g,m),x=u1(),n!==null&&!On?(ps(n,l,m),Nl(n,l,m)):(ut&&x&&Cr(l),l.flags|=1,It(n,l,s,m),l.child)}function Mg(n,l,u,s,m){if(n===null){var g=u.type;return typeof g=="function"&&!is(g)&&g.defaultProps===void 0&&u.compare===null?(l.tag=15,l.type=g,Cg(n,l,g,s,m)):(n=F0(u.type,null,s,l,l.mode,m),n.ref=l.ref,n.return=l,l.child=n)}if(g=n.child,!M1(n,m)){var S=g.memoizedProps;if(u=u.compare,u=u!==null?u:Il,u(S,s)&&n.ref===l.ref)return Nl(n,l,m)}return l.flags|=1,n=fo(g,s),n.ref=l.ref,n.return=l,l.child=n}function Cg(n,l,u,s,m){if(n!==null){var g=n.memoizedProps;if(Il(g,s)&&n.ref===l.ref)if(On=!1,l.pendingProps=s=g,M1(n,m))n.flags&131072&&(On=!0);else return l.lanes=n.lanes,Nl(n,l,m)}return _1(n,l,u,s,m)}function L3(n,l,u,s){var m=s.children,g=n!==null?n.memoizedState:null;if(n===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if(l.flags&128){if(g=g!==null?g.baseLanes|u:u,n!==null){for(s=l.child=n.child,m=0;s!==null;)m=m|s.lanes|s.childLanes,s=s.sibling;s=m&~g}else s=0,l.child=null;return Ia(n,l,g,u,s)}if(u&536870912)l.memoizedState={baseLanes:0,cachePool:null},n!==null&&zr(l,g!==null?g.cachePool:null),g!==null?A3(l,g):Bd(),l1(l);else return s=l.lanes=536870912,Ia(n,l,g!==null?g.baseLanes|u:u,u,s)}else g!==null?(zr(l,g.cachePool),A3(l,g),Ri(),l.memoizedState=null):(n!==null&&zr(l,null),Bd(),Ri());return It(n,l,m,u),l.child}function vc(n,l){return n!==null&&n.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function Ia(n,l,u,s,m){var g=Ml();return g=g===null?null:{parent:Cn._currentValue,pool:g},l.memoizedState={baseLanes:u,cachePool:g},n!==null&&zr(l,null),Bd(),l1(l),n!==null&&la(n,l,s,!0),l.childLanes=m,null}function Jd(n,l){return l=$d({mode:l.mode,children:l.children},n.mode),l.ref=n.ref,n.child=l,l.return=n,l}function Wa(n,l,u){return fc(l,n.child,null,u),n=Jd(l,l.pendingProps),n.flags|=2,$a(l),l.memoizedState=null,n}function G3(n,l,u){var s=l.pendingProps,m=(l.flags&128)!==0;if(l.flags&=-129,n===null){if(ut){if(s.mode==="hidden")return n=Jd(l,s),l.lanes=536870912,vc(null,n);if(Hr(l),(n=Xt)?(n=v4(n,kn),n=n!==null&&n.data==="&"?n:null,n!==null&&(l.memoizedState={dehydrated:n,treeContext:Bi!==null?{id:sl,overflow:Hi}:null,retryLane:536870912,hydrationErrors:null},u=Jm(n),u.return=l,l.child=u,aa=l,Xt=null)):n=null,n===null)throw ni(l);return l.lanes=536870912,null}return Jd(l,s)}var g=n.memoizedState;if(g!==null){var S=g.dehydrated;if(Hr(l),m)if(l.flags&256)l.flags&=-257,l=Wa(n,l,u);else if(l.memoizedState!==null)l.child=n.child,l.flags|=128,l=null;else throw Error(h(558));else if(On||la(n,l,u,!1),m=(u&n.childLanes)!==0,On||m){if(s=Gt,s!==null&&(S=wl(s,u),S!==0&&S!==g.retryLane))throw g.retryLane=S,ro(n,S),nl(s,n,S),A1;Y1(),l=Wa(n,l,u)}else n=g.treeContext,Xt=al(S.nextSibling),aa=l,ut=!0,bu=null,kn=!1,n!==null&&Td(l,n),l=Jd(l,s),l.flags|=4096;return l}return n=fo(n.child,{mode:s.mode,children:s.children}),n.ref=l.ref,l.child=n,n.return=l,n}function Ol(n,l){var u=l.ref;if(u===null)n!==null&&n.ref!==null&&(l.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(h(284));(n===null||n.ref!==u)&&(l.flags|=4194816)}}function _1(n,l,u,s,m){return qe(l),u=Ld(n,l,u,s,void 0,m),s=u1(),n!==null&&!On?(ps(n,l,m),Nl(n,l,m)):(ut&&s&&Cr(l),l.flags|=1,It(n,l,u,m),l.child)}function wc(n,l,u,s,m,g){return qe(l),l.updateQueue=null,u=x3(l,s,u,m),i1(n),s=u1(),n!==null&&!On?(ps(n,l,g),Nl(n,l,g)):(ut&&s&&Cr(l),l.flags|=1,It(n,l,u,g),l.child)}function Dg(n,l,u,s,m){if(qe(l),l.stateNode===null){var g=Za,S=u.contextType;typeof S=="object"&&S!==null&&(g=le(S)),g=new u(s,g),l.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=ai,l.stateNode=g,g._reactInternals=l,g=l.stateNode,g.props=s,g.state=l.memoizedState,g.refs={},Ud(l),S=u.contextType,g.context=typeof S=="object"&&S!==null?le(S):Za,g.state=l.memoizedState,S=u.getDerivedStateFromProps,typeof S=="function"&&(bs(l,u,S,s),g.state=l.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(S=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),S!==g.state&&ai.enqueueReplaceState(g,g.state,null),Au(l,s,g,m),hc(),g.state=l.memoizedState),typeof g.componentDidMount=="function"&&(l.flags|=4194308),s=!0}else if(n===null){g=l.stateNode;var x=l.memoizedProps,z=yc(u,x);g.props=z;var Q=g.context,I=u.contextType;S=Za,typeof I=="object"&&I!==null&&(S=le(I));var ae=u.getDerivedStateFromProps;I=typeof ae=="function"||typeof g.getSnapshotBeforeUpdate=="function",x=l.pendingProps!==x,I||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(x||Q!==S)&&H3(l,g,s,S),yo=!1;var Z=l.memoizedState;g.state=Z,Au(l,s,g,m),hc(),Q=l.memoizedState,x||Z!==Q||yo?(typeof ae=="function"&&(bs(l,u,ae,s),Q=l.memoizedState),(z=yo||Sg(l,u,z,s,Z,Q,S))?(I||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(l.flags|=4194308)):(typeof g.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=s,l.memoizedState=Q),g.props=s,g.state=Q,g.context=S,s=z):(typeof g.componentDidMount=="function"&&(l.flags|=4194308),s=!1)}else{g=l.stateNode,t1(n,l),S=l.memoizedProps,I=yc(u,S),g.props=I,ae=l.pendingProps,Z=g.context,Q=u.contextType,z=Za,typeof Q=="object"&&Q!==null&&(z=le(Q)),x=u.getDerivedStateFromProps,(Q=typeof x=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(S!==ae||Z!==z)&&H3(l,g,s,z),yo=!1,Z=l.memoizedState,g.state=Z,Au(l,s,g,m),hc();var $=l.memoizedState;S!==ae||Z!==$||yo||n!==null&&n.dependencies!==null&&os(n.dependencies)?(typeof x=="function"&&(bs(l,u,x,s),$=l.memoizedState),(I=yo||Sg(l,u,I,s,Z,$,z)||n!==null&&n.dependencies!==null&&os(n.dependencies))?(Q||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(s,$,z),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(s,$,z)),typeof g.componentDidUpdate=="function"&&(l.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof g.componentDidUpdate!="function"||S===n.memoizedProps&&Z===n.memoizedState||(l.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||S===n.memoizedProps&&Z===n.memoizedState||(l.flags|=1024),l.memoizedProps=s,l.memoizedState=$),g.props=s,g.state=$,g.context=z,s=I):(typeof g.componentDidUpdate!="function"||S===n.memoizedProps&&Z===n.memoizedState||(l.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||S===n.memoizedProps&&Z===n.memoizedState||(l.flags|=1024),s=!1)}return g=s,Ol(n,l),s=(l.flags&128)!==0,g||s?(g=l.stateNode,u=s&&typeof u.getDerivedStateFromError!="function"?null:g.render(),l.flags|=1,n!==null&&s?(l.child=fc(l,n.child,null,m),l.child=fc(l,null,u,m)):It(n,l,u,m),l.memoizedState=g.state,n=l.child):n=Nl(n,l,m),n}function qi(n,l,u,s){return ic(),l.flags|=256,It(n,l,u,s),l.child}var Kd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Fd(n){return{baseLanes:n,cachePool:ss()}}function zl(n,l,u){return n=n!==null?n.childLanes&~u:0,l&&(n|=tl),n}function Og(n,l,u){var s=l.pendingProps,m=!1,g=(l.flags&128)!==0,S;if((S=g)||(S=n!==null&&n.memoizedState===null?!1:(nn.current&2)!==0),S&&(m=!0,l.flags&=-129),S=(l.flags&32)!==0,l.flags&=-33,n===null){if(ut){if(m?_u(l):Ri(),(n=Xt)?(n=v4(n,kn),n=n!==null&&n.data!=="&"?n:null,n!==null&&(l.memoizedState={dehydrated:n,treeContext:Bi!==null?{id:sl,overflow:Hi}:null,retryLane:536870912,hydrationErrors:null},u=Jm(n),u.return=l,l.child=u,aa=l,Xt=null)):n=null,n===null)throw ni(l);return xc(n)?l.lanes=32:l.lanes=536870912,null}var x=s.children;return s=s.fallback,m?(Ri(),m=l.mode,x=$d({mode:"hidden",children:x},m),s=ho(s,m,u,null),x.return=l,s.return=l,x.sibling=s,l.child=x,s=l.child,s.memoizedState=Fd(u),s.childLanes=zl(n,S,u),l.memoizedState=Kd,vc(null,s)):(_u(l),bc(l,x))}var z=n.memoizedState;if(z!==null&&(x=z.dehydrated,x!==null)){if(g)l.flags&256?(_u(l),l.flags&=-257,l=Ss(n,l,u)):l.memoizedState!==null?(Ri(),l.child=n.child,l.flags|=128,l=null):(Ri(),x=s.fallback,m=l.mode,s=$d({mode:"visible",children:s.children},m),x=ho(x,m,u,null),x.flags|=2,s.return=l,x.return=l,s.sibling=x,l.child=s,fc(l,n.child,null,u),s=l.child,s.memoizedState=Fd(u),s.childLanes=zl(n,S,u),l.memoizedState=Kd,l=vc(null,s));else if(_u(l),xc(x)){if(S=x.nextSibling&&x.nextSibling.dataset,S)var Q=S.dgst;S=Q,s=Error(h(419)),s.stack="",s.digest=S,Or({value:s,source:null,stack:null}),l=Ss(n,l,u)}else if(On||la(n,l,u,!1),S=(u&n.childLanes)!==0,On||S){if(S=Gt,S!==null&&(s=wl(S,u),s!==0&&s!==z.retryLane))throw z.retryLane=s,ro(n,s),nl(S,n,s),A1;ui(x)||Y1(),l=Ss(n,l,u)}else ui(x)?(l.flags|=192,l.child=n.child,l=null):(n=z.treeContext,Xt=al(x.nextSibling),aa=l,ut=!0,bu=null,kn=!1,n!==null&&Td(l,n),l=bc(l,s.children),l.flags|=4096);return l}return m?(Ri(),x=s.fallback,m=l.mode,z=n.child,Q=z.sibling,s=fo(z,{mode:"hidden",children:s.children}),s.subtreeFlags=z.subtreeFlags&65011712,Q!==null?x=fo(Q,x):(x=ho(x,m,u,null),x.flags|=2),x.return=l,s.return=l,s.sibling=x,l.child=s,vc(null,s),s=l.child,x=n.child.memoizedState,x===null?x=Fd(u):(m=x.cachePool,m!==null?(z=Cn._currentValue,m=m.parent!==z?{parent:z,pool:z}:m):m=ss(),x={baseLanes:x.baseLanes|u,cachePool:m}),s.memoizedState=x,s.childLanes=zl(n,S,u),l.memoizedState=Kd,vc(n.child,s)):(_u(l),u=n.child,n=u.sibling,u=fo(u,{mode:"visible",children:s.children}),u.return=l,u.sibling=null,n!==null&&(S=l.deletions,S===null?(l.deletions=[n],l.flags|=16):S.push(n)),l.child=u,l.memoizedState=null,u)}function bc(n,l){return l=$d({mode:"visible",children:l},n.mode),l.return=n,n.child=l}function $d(n,l){return n=yn(22,n,null,l),n.lanes=0,n}function Ss(n,l,u){return fc(l,n.child,null,u),n=bc(l,l.pendingProps.children),n.flags|=2,l.memoizedState=null,n}function Es(n,l,u){n.lanes|=l;var s=n.alternate;s!==null&&(s.lanes|=l),P0(n.return,l,u)}function x1(n,l,u,s,m,g){var S=n.memoizedState;S===null?n.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:s,tail:u,tailMode:m,treeForkCount:g}:(S.isBackwards=l,S.rendering=null,S.renderingStartTime=0,S.last=s,S.tail=u,S.tailMode=m,S.treeForkCount=g)}function zg(n,l,u){var s=l.pendingProps,m=s.revealOrder,g=s.tail;s=s.children;var S=nn.current,x=(S&2)!==0;if(x?(S=S&1|2,l.flags|=128):S&=1,Xe(nn,S),It(n,l,s,u),s=ut?Mn:0,!x&&n!==null&&n.flags&128)e:for(n=l.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Es(n,u,l);else if(n.tag===19)Es(n,u,l);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===l)break e;for(;n.sibling===null;){if(n.return===null||n.return===l)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(m){case"forwards":for(u=l.child,m=null;u!==null;)n=u.alternate,n!==null&&Lr(n)===null&&(m=u),u=u.sibling;u=m,u===null?(m=l.child,l.child=null):(m=u.sibling,u.sibling=null),x1(l,!1,m,u,g,s);break;case"backwards":case"unstable_legacy-backwards":for(u=null,m=l.child,l.child=null;m!==null;){if(n=m.alternate,n!==null&&Lr(n)===null){l.child=m;break}n=m.sibling,m.sibling=u,u=m,m=n}x1(l,!0,u,null,g,s);break;case"together":x1(l,!1,null,null,void 0,s);break;default:l.memoizedState=null}return l.child}function Nl(n,l,u){if(n!==null&&(l.dependencies=n.dependencies),Xi|=l.lanes,!(u&l.childLanes))if(n!==null){if(la(n,l,u,!1),(u&l.childLanes)===0)return null}else return null;if(n!==null&&l.child!==n.child)throw Error(h(153));if(l.child!==null){for(n=l.child,u=fo(n,n.pendingProps),l.child=u,u.return=l;n.sibling!==null;)n=n.sibling,u=u.sibling=fo(n,n.pendingProps),u.return=l;u.sibling=null}return l.child}function M1(n,l){return n.lanes&l?!0:(n=n.dependencies,!!(n!==null&&os(n)))}function C1(n,l,u){switch(l.tag){case 3:Vt(l,l.stateNode.containerInfo),Ka(l,Cn,n.memoizedState.cache),ic();break;case 27:case 5:cu(l);break;case 4:Vt(l,l.stateNode.containerInfo);break;case 10:Ka(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,Hr(l),null;break;case 13:var s=l.memoizedState;if(s!==null)return s.dehydrated!==null?(_u(l),l.flags|=128,null):u&l.child.childLanes?Og(n,l,u):(_u(l),n=Nl(n,l,u),n!==null?n.sibling:null);_u(l);break;case 19:var m=(n.flags&128)!==0;if(s=(u&l.childLanes)!==0,s||(la(n,l,u,!1),s=(u&l.childLanes)!==0),m){if(s)return zg(n,l,u);l.flags|=128}if(m=l.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),Xe(nn,nn.current),s)break;return null;case 22:return l.lanes=0,L3(n,l,u,l.pendingProps);case 24:Ka(l,Cn,n.memoizedState.cache)}return Nl(n,l,u)}function Ng(n,l,u){if(n!==null)if(n.memoizedProps!==l.pendingProps)On=!0;else{if(!M1(n,u)&&!(l.flags&128))return On=!1,C1(n,l,u);On=!!(n.flags&131072)}else On=!1,ut&&l.flags&1048576&&Fm(l,Mn,l.index);switch(l.lanes=0,l.tag){case 16:e:{var s=l.pendingProps;if(n=cc(l.elementType),l.type=n,typeof n=="function")is(n)?(s=yc(n,s),l.tag=1,l=Dg(null,l,n,s,u)):(l.tag=0,l=_1(null,l,n,s,u));else{if(n!=null){var m=n.$$typeof;if(m===Te){l.tag=11,l=xg(null,l,n,s,u);break e}else if(m===Qe){l.tag=14,l=Mg(null,l,n,s,u);break e}}throw l=Ft(n)||n,Error(h(306,l,""))}}return l;case 0:return _1(n,l,l.type,l.pendingProps,u);case 1:return s=l.type,m=yc(s,l.pendingProps),Dg(n,l,s,m,u);case 3:e:{if(Vt(l,l.stateNode.containerInfo),n===null)throw Error(h(387));s=l.pendingProps;var g=l.memoizedState;m=g.element,t1(n,l),Au(l,s,null,u);var S=l.memoizedState;if(s=S.cache,Ka(l,Cn,s),s!==g.cache&&Tu(l,[Cn],u,!0),hc(),s=S.element,g.isDehydrated)if(g={element:s,isDehydrated:!1,cache:S.cache},l.updateQueue.baseState=g,l.memoizedState=g,l.flags&256){l=qi(n,l,s,u);break e}else if(s!==m){m=Al(Error(h(424)),l),Or(m),l=qi(n,l,s,u);break e}else{switch(n=l.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Xt=al(n.firstChild),aa=l,ut=!0,bu=null,kn=!0,u=ng(l,null,s,u),l.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(ic(),s===m){l=Nl(n,l,u);break e}It(n,l,s,u)}l=l.child}return l;case 26:return Ol(n,l),n===null?(u=df(l.type,null,l.pendingProps,null))?l.memoizedState=u:ut||(u=l.type,n=l.pendingProps,s=_c(en.current).createElement(u),s[Ht]=l,s[ka]=n,Ea(s,u,n),Mt(s),l.stateNode=s):l.memoizedState=df(l.type,n.memoizedProps,l.pendingProps,n.memoizedState),null;case 27:return cu(l),n===null&&ut&&(s=l.stateNode=rf(l.type,l.pendingProps,en.current),aa=l,kn=!0,m=Xt,Zi(l.type)?(gh=m,Xt=al(s.firstChild)):Xt=m),It(n,l,l.pendingProps.children,u),Ol(n,l),n===null&&(l.flags|=4194304),l.child;case 5:return n===null&&ut&&((m=s=Xt)&&(s=wb(s,l.type,l.pendingProps,kn),s!==null?(l.stateNode=s,aa=l,Xt=al(s.firstChild),kn=!1,m=!0):m=!1),m||ni(l)),cu(l),m=l.type,g=l.pendingProps,S=n!==null?n.memoizedProps:null,s=g.children,cf(m,g)?s=null:S!==null&&cf(m,S)&&(l.flags|=32),l.memoizedState!==null&&(m=Ld(n,l,gb,null,null,u),vh._currentValue=m),Ol(n,l),It(n,l,s,u),l.child;case 6:return n===null&&ut&&((n=u=Xt)&&(u=We(u,l.pendingProps,kn),u!==null?(l.stateNode=u,aa=l,Xt=null,n=!0):n=!1),n||ni(l)),null;case 13:return Og(n,l,u);case 4:return Vt(l,l.stateNode.containerInfo),s=l.pendingProps,n===null?l.child=fc(l,null,s,u):It(n,l,s,u),l.child;case 11:return xg(n,l,l.type,l.pendingProps,u);case 7:return It(n,l,l.pendingProps,u),l.child;case 8:return It(n,l,l.pendingProps.children,u),l.child;case 12:return It(n,l,l.pendingProps.children,u),l.child;case 10:return s=l.pendingProps,Ka(l,l.type,s.value),It(n,l,s.children,u),l.child;case 9:return m=l.type._context,s=l.pendingProps.children,qe(l),m=le(m),s=s(m),l.flags|=1,It(n,l,s,u),l.child;case 14:return Mg(n,l,l.type,l.pendingProps,u);case 15:return Cg(n,l,l.type,l.pendingProps,u);case 19:return zg(n,l,u);case 31:return G3(n,l,u);case 22:return L3(n,l,u,l.pendingProps);case 24:return qe(l),s=le(Cn),n===null?(m=Ml(),m===null&&(m=Gt,g=xd(),m.pooledCache=g,g.refCount++,g!==null&&(m.pooledCacheLanes|=u),m=g),l.memoizedState={parent:s,cache:m},Ud(l),Ka(l,Cn,m)):(n.lanes&u&&(t1(n,l),Au(l,null,null,u),hc()),m=n.memoizedState,g=l.memoizedState,m.parent!==s?(m={parent:s,cache:s},l.memoizedState=m,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=m),Ka(l,Cn,s)):(s=g.cache,Ka(l,Cn,s),s!==m.cache&&Tu(l,[Cn],u,!0))),It(n,l,l.pendingProps.children,u),l.child;case 29:throw l.pendingProps}throw Error(h(156,l.tag))}function zu(n){n.flags|=4}function Ug(n,l,u,s,m){if((l=(n.mode&32)!==0)&&(l=!1),l){if(n.flags|=16777216,(m&335544128)===m)if(n.stateNode.complete)n.flags|=8192;else if(J3())n.flags|=8192;else throw sc=fs,rs}else n.flags&=-16777217}function Bg(n,l){if(l.type!=="stylesheet"||l.state.loading&4)n.flags&=-16777217;else if(n.flags|=16777216,!gl(l))if(J3())n.flags|=8192;else throw sc=fs,rs}function Ua(n,l){l!==null&&(n.flags|=4),n.flags&16384&&(l=n.tag!==22?Yc():536870912,n.lanes|=l,fn|=l)}function Xr(n,l){if(!ut)switch(n.tailMode){case"hidden":l=n.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?n.tail=null:u.sibling=null;break;case"collapsed":u=n.tail;for(var s=null;u!==null;)u.alternate!==null&&(s=u),u=u.sibling;s===null?l||n.tail===null?n.tail=null:n.tail.sibling=null:s.sibling=null}}function je(n){var l=n.alternate!==null&&n.alternate.child===n.child,u=0,s=0;if(l)for(var m=n.child;m!==null;)u|=m.lanes|m.childLanes,s|=m.subtreeFlags&65011712,s|=m.flags&65011712,m.return=n,m=m.sibling;else for(m=n.child;m!==null;)u|=m.lanes|m.childLanes,s|=m.subtreeFlags,s|=m.flags,m.return=n,m=m.sibling;return n.subtreeFlags|=s,n.childLanes=u,l}function R3(n,l,u){var s=l.pendingProps;switch(I0(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return je(l),null;case 1:return je(l),null;case 3:return u=l.stateNode,s=null,n!==null&&(s=n.memoizedState.cache),l.memoizedState.cache!==s&&(l.flags|=2048),Gi(Cn),ea(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(n===null||n.child===null)&&(Eu(l)?zu(l):n===null||n.memoizedState.isDehydrated&&!(l.flags&256)||(l.flags|=1024,$m())),je(l),null;case 26:var m=l.type,g=l.memoizedState;return n===null?(zu(l),g!==null?(je(l),Bg(l,g)):(je(l),Ug(l,m,null,s,u))):g?g!==n.memoizedState?(zu(l),je(l),Bg(l,g)):(je(l),l.flags&=-16777217):(n=n.memoizedProps,n!==s&&zu(l),je(l),Ug(l,m,n,s,u)),null;case 27:if(fe(l),u=en.current,m=l.type,n!==null&&l.stateNode!=null)n.memoizedProps!==s&&zu(l);else{if(!s){if(l.stateNode===null)throw Error(h(166));return je(l),null}n=Ze.current,Eu(l)?Ad(l):(n=rf(m,s,u),l.stateNode=n,zu(l))}return je(l),null;case 5:if(fe(l),m=l.type,n!==null&&l.stateNode!=null)n.memoizedProps!==s&&zu(l);else{if(!s){if(l.stateNode===null)throw Error(h(166));return je(l),null}if(g=Ze.current,Eu(l))Ad(l);else{var S=_c(en.current);switch(g){case 1:g=S.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:g=S.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":g=S.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":g=S.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":g=S.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof s.is=="string"?S.createElement("select",{is:s.is}):S.createElement("select"),s.multiple?g.multiple=!0:s.size&&(g.size=s.size);break;default:g=typeof s.is=="string"?S.createElement(m,{is:s.is}):S.createElement(m)}}g[Ht]=l,g[ka]=s;e:for(S=l.child;S!==null;){if(S.tag===5||S.tag===6)g.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===l)break e;for(;S.sibling===null;){if(S.return===null||S.return===l)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}l.stateNode=g;e:switch(Ea(g,m,s),m){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&zu(l)}}return je(l),Ug(l,l.type,n===null?null:n.memoizedProps,l.pendingProps,u),null;case 6:if(n&&l.stateNode!=null)n.memoizedProps!==s&&zu(l);else{if(typeof s!="string"&&l.stateNode===null)throw Error(h(166));if(n=en.current,Eu(l)){if(n=l.stateNode,u=l.memoizedProps,s=null,m=aa,m!==null)switch(m.tag){case 27:case 5:s=m.memoizedProps}n[Ht]=l,n=!!(n.nodeValue===u||s!==null&&s.suppressHydrationWarning===!0||lp(n.nodeValue,u)),n||ni(l,!0)}else n=_c(n).createTextNode(s),n[Ht]=l,l.stateNode=n}return je(l),null;case 31:if(u=l.memoizedState,n===null||n.memoizedState!==null){if(s=Eu(l),u!==null){if(n===null){if(!s)throw Error(h(318));if(n=l.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(h(557));n[Ht]=l}else ic(),!(l.flags&128)&&(l.memoizedState=null),l.flags|=4;je(l),n=!1}else u=$m(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=u),n=!0;if(!n)return l.flags&256?($a(l),l):($a(l),null);if(l.flags&128)throw Error(h(558))}return je(l),null;case 13:if(s=l.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(m=Eu(l),s!==null&&s.dehydrated!==null){if(n===null){if(!m)throw Error(h(318));if(m=l.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(h(317));m[Ht]=l}else ic(),!(l.flags&128)&&(l.memoizedState=null),l.flags|=4;je(l),m=!1}else m=$m(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=m),m=!0;if(!m)return l.flags&256?($a(l),l):($a(l),null)}return $a(l),l.flags&128?(l.lanes=u,l):(u=s!==null,n=n!==null&&n.memoizedState!==null,u&&(s=l.child,m=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(m=s.alternate.memoizedState.cachePool.pool),g=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(g=s.memoizedState.cachePool.pool),g!==m&&(s.flags|=2048)),u!==n&&u&&(l.child.flags|=8192),Ua(l,l.updateQueue),je(l),null);case 4:return ea(),n===null&&of(l.stateNode.containerInfo),je(l),null;case 10:return Gi(l.type),je(l),null;case 19:if(st(nn),s=l.memoizedState,s===null)return je(l),null;if(m=(l.flags&128)!==0,g=s.rendering,g===null)if(m)Xr(s,!1);else{if(Zt!==0||n!==null&&n.flags&128)for(n=l.child;n!==null;){if(g=Lr(n),g!==null){for(l.flags|=128,Xr(s,!1),n=g.updateQueue,l.updateQueue=n,Ua(l,n),l.subtreeFlags=0,n=u,u=l.child;u!==null;)Zm(u,n),u=u.sibling;return Xe(nn,nn.current&1|2),ut&&ti(l,s.treeForkCount),l.child}n=n.sibling}s.tail!==null&&Hn()>At&&(l.flags|=128,m=!0,Xr(s,!1),l.lanes=4194304)}else{if(!m)if(n=Lr(g),n!==null){if(l.flags|=128,m=!0,n=n.updateQueue,l.updateQueue=n,Ua(l,n),Xr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!g.alternate&&!ut)return je(l),null}else 2*Hn()-s.renderingStartTime>At&&u!==536870912&&(l.flags|=128,m=!0,Xr(s,!1),l.lanes=4194304);s.isBackwards?(g.sibling=l.child,l.child=g):(n=s.last,n!==null?n.sibling=g:l.child=g,s.last=g)}return s.tail!==null?(n=s.tail,s.rendering=n,s.tail=n.sibling,s.renderingStartTime=Hn(),n.sibling=null,u=nn.current,Xe(nn,m?u&1|2:u&1),ut&&ti(l,s.treeForkCount),n):(je(l),null);case 22:case 23:return $a(l),Br(),s=l.memoizedState!==null,n!==null?n.memoizedState!==null!==s&&(l.flags|=8192):s&&(l.flags|=8192),s?u&536870912&&!(l.flags&128)&&(je(l),l.subtreeFlags&6&&(l.flags|=8192)):je(l),u=l.updateQueue,u!==null&&Ua(l,u.retryQueue),u=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==u&&(l.flags|=2048),n!==null&&st(xl),null;case 24:return u=null,n!==null&&(u=n.memoizedState.cache),l.memoizedState.cache!==u&&(l.flags|=2048),Gi(Cn),je(l),null;case 25:return null;case 30:return null}throw Error(h(156,l.tag))}function j3(n,l){switch(I0(l),l.tag){case 1:return n=l.flags,n&65536?(l.flags=n&-65537|128,l):null;case 3:return Gi(Cn),ea(),n=l.flags,n&65536&&!(n&128)?(l.flags=n&-65537|128,l):null;case 26:case 27:case 5:return fe(l),null;case 31:if(l.memoizedState!==null){if($a(l),l.alternate===null)throw Error(h(340));ic()}return n=l.flags,n&65536?(l.flags=n&-65537|128,l):null;case 13:if($a(l),n=l.memoizedState,n!==null&&n.dehydrated!==null){if(l.alternate===null)throw Error(h(340));ic()}return n=l.flags,n&65536?(l.flags=n&-65537|128,l):null;case 19:return st(nn),null;case 4:return ea(),null;case 10:return Gi(l.type),null;case 22:case 23:return $a(l),Br(),n!==null&&st(xl),n=l.flags,n&65536?(l.flags=n&-65537|128,l):null;case 24:return Gi(Cn),null;case 25:return null;default:return null}}function q3(n,l){switch(I0(l),l.tag){case 3:Gi(Cn),ea();break;case 26:case 27:case 5:fe(l);break;case 4:ea();break;case 31:l.memoizedState!==null&&$a(l);break;case 13:$a(l);break;case 19:st(nn);break;case 10:Gi(l.type);break;case 22:case 23:$a(l),Br(),n!==null&&st(xl);break;case 24:Gi(Cn)}}function li(n,l){try{var u=l.updateQueue,s=u!==null?u.lastEffect:null;if(s!==null){var m=s.next;u=m;do{if((u.tag&n)===n){s=void 0;var g=u.create,S=u.inst;s=g(),S.destroy=s}u=u.next}while(u!==m)}}catch(x){zt(l,l.return,x)}}function Ul(n,l,u){try{var s=l.updateQueue,m=s!==null?s.lastEffect:null;if(m!==null){var g=m.next;s=g;do{if((s.tag&n)===n){var S=s.inst,x=S.destroy;if(x!==void 0){S.destroy=void 0,m=l;var z=u,Q=x;try{Q()}catch(I){zt(m,z,I)}}}s=s.next}while(s!==g)}}catch(I){zt(l,l.return,I)}}function D1(n){var l=n.updateQueue;if(l!==null){var u=n.stateNode;try{mc(l,u)}catch(s){zt(n,n.return,s)}}}function Sc(n,l,u){u.props=yc(n.type,n.memoizedProps),u.state=n.memoizedState;try{u.componentWillUnmount()}catch(s){zt(n,l,s)}}function Nu(n,l){try{var u=n.ref;if(u!==null){switch(n.tag){case 26:case 27:case 5:var s=n.stateNode;break;case 30:s=n.stateNode;break;default:s=n.stateNode}typeof u=="function"?n.refCleanup=u(s):u.current=s}}catch(m){zt(n,l,m)}}function Vi(n,l){var u=n.ref,s=n.refCleanup;if(u!==null)if(typeof s=="function")try{s()}catch(m){zt(n,l,m)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(m){zt(n,l,m)}else u.current=null}function Hg(n){var l=n.type,u=n.memoizedProps,s=n.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":u.autoFocus&&s.focus();break e;case"img":u.src?s.src=u.src:u.srcSet&&(s.srcset=u.srcSet)}}catch(m){zt(n,n.return,m)}}function O1(n,l,u){try{var s=n.stateNode;up(s,n.type,u,l),s[ka]=l}catch(m){zt(n,n.return,m)}}function Lg(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Zi(n.type)||n.tag===4}function Qr(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Lg(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Zi(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Zr(n,l,u){var s=n.tag;if(s===5||s===6)n=n.stateNode,l?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(n,l):(l=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,l.appendChild(n),u=u._reactRootContainer,u!=null||l.onclick!==null||(l.onclick=Mi));else if(s!==4&&(s===27&&Zi(n.type)&&(u=n.stateNode,l=null),n=n.child,n!==null))for(Zr(n,l,u),n=n.sibling;n!==null;)Zr(n,l,u),n=n.sibling}function Jr(n,l,u){var s=n.tag;if(s===5||s===6)n=n.stateNode,l?u.insertBefore(n,l):u.appendChild(n);else if(s!==4&&(s===27&&Zi(n.type)&&(u=n.stateNode),n=n.child,n!==null))for(Jr(n,l,u),n=n.sibling;n!==null;)Jr(n,l,u),n=n.sibling}function Gg(n){var l=n.stateNode,u=n.memoizedProps;try{for(var s=n.type,m=l.attributes;m.length;)l.removeAttributeNode(m[0]);Ea(l,s,u),l[Ht]=n,l[ka]=u}catch(g){zt(n,n.return,g)}}var Eo=!1,Gn=!1,z1=!1,Rg=typeof WeakSet=="function"?WeakSet:Set,oa=null;function Kr(n,l){if(n=n.containerInfo,I1=Zn,n=nc(n),yd(n)){if("selectionStart"in n)var u={start:n.selectionStart,end:n.selectionEnd};else e:{u=(u=n.ownerDocument)&&u.defaultView||window;var s=u.getSelection&&u.getSelection();if(s&&s.rangeCount!==0){u=s.anchorNode;var m=s.anchorOffset,g=s.focusNode;s=s.focusOffset;try{u.nodeType,g.nodeType}catch{u=null;break e}var S=0,x=-1,z=-1,Q=0,I=0,ae=n,Z=null;t:for(;;){for(var $;ae!==u||m!==0&&ae.nodeType!==3||(x=S+m),ae!==g||s!==0&&ae.nodeType!==3||(z=S+s),ae.nodeType===3&&(S+=ae.nodeValue.length),($=ae.firstChild)!==null;)Z=ae,ae=$;for(;;){if(ae===n)break t;if(Z===u&&++Q===m&&(x=S),Z===g&&++I===s&&(z=S),($=ae.nextSibling)!==null)break;ae=Z,Z=ae.parentNode}ae=$}u=x===-1||z===-1?null:{start:x,end:z}}else u=null}u=u||{start:0,end:0}}else u=null;for(W1={focusedElem:n,selectionRange:u},Zn=!1,oa=l;oa!==null;)if(l=oa,n=l.child,(l.subtreeFlags&1028)!==0&&n!==null)n.return=l,oa=n;else for(;oa!==null;){switch(l=oa,g=l.alternate,n=l.flags,l.tag){case 0:if(n&4&&(n=l.updateQueue,n=n!==null?n.events:null,n!==null))for(u=0;u<n.length;u++)m=n[u],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if(n&1024&&g!==null){n=void 0,u=l,m=g.memoizedProps,g=g.memoizedState,s=u.stateNode;try{var he=yc(u.type,m);n=s.getSnapshotBeforeUpdate(he,g),s.__reactInternalSnapshotBeforeUpdate=n}catch(ze){zt(u,u.return,ze)}}break;case 3:if(n&1024){if(n=l.stateNode.containerInfo,u=n.nodeType,u===9)mh(n);else if(u===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":mh(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(n&1024)throw Error(h(163))}if(n=l.sibling,n!==null){n.return=l.return,oa=n;break}oa=l.return}}function Id(n,l,u){var s=u.flags;switch(u.tag){case 0:case 11:case 15:To(n,u),s&4&&li(5,u);break;case 1:if(To(n,u),s&4)if(n=u.stateNode,l===null)try{n.componentDidMount()}catch(S){zt(u,u.return,S)}else{var m=yc(u.type,l.memoizedProps);l=l.memoizedState;try{n.componentDidUpdate(m,l,n.__reactInternalSnapshotBeforeUpdate)}catch(S){zt(u,u.return,S)}}s&64&&D1(u),s&512&&Nu(u,u.return);break;case 3:if(To(n,u),s&64&&(n=u.updateQueue,n!==null)){if(l=null,u.child!==null)switch(u.child.tag){case 27:case 5:l=u.child.stateNode;break;case 1:l=u.child.stateNode}try{mc(n,l)}catch(S){zt(u,u.return,S)}}break;case 27:l===null&&s&4&&Gg(u);case 26:case 5:To(n,u),l===null&&s&4&&Hg(u),s&512&&Nu(u,u.return);break;case 12:To(n,u);break;case 31:To(n,u),s&4&&V3(n,u);break;case 13:To(n,u),s&4&&Vg(n,u),s&64&&(n=u.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(u=Bl.bind(null,u),sf(n,u))));break;case 22:if(s=u.memoizedState!==null||Eo,!s){l=l!==null&&l.memoizedState!==null||Gn,m=Eo;var g=Gn;Eo=s,(Gn=l)&&!g?Yi(n,u,(u.subtreeFlags&8772)!==0):To(n,u),Eo=m,Gn=g}break;case 30:break;default:To(n,u)}}function jg(n){var l=n.alternate;l!==null&&(n.alternate=null,jg(l)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(l=n.stateNode,l!==null&&M0(l)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var Qt=null,Pa=!1;function Uu(n,l,u){for(u=u.child;u!==null;)qg(n,l,u),u=u.sibling}function qg(n,l,u){if(_n&&typeof _n.onCommitFiberUnmount=="function")try{_n.onCommitFiberUnmount(sn,u)}catch{}switch(u.tag){case 26:Gn||Vi(u,l),Uu(n,l,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Gn||Vi(u,l);var s=Qt,m=Pa;Zi(u.type)&&(Qt=u.stateNode,Pa=!1),Uu(n,l,u),Os(u.stateNode),Qt=s,Pa=m;break;case 5:Gn||Vi(u,l);case 6:if(s=Qt,m=Pa,Qt=null,Uu(n,l,u),Qt=s,Pa=m,Qt!==null)if(Pa)try{(Qt.nodeType===9?Qt.body:Qt.nodeName==="HTML"?Qt.ownerDocument.body:Qt).removeChild(u.stateNode)}catch(g){zt(u,l,g)}else try{Qt.removeChild(u.stateNode)}catch(g){zt(u,l,g)}break;case 18:Qt!==null&&(Pa?(n=Qt,rp(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,u.stateNode),bf(n)):rp(Qt,u.stateNode));break;case 4:s=Qt,m=Pa,Qt=u.stateNode.containerInfo,Pa=!0,Uu(n,l,u),Qt=s,Pa=m;break;case 0:case 11:case 14:case 15:Ul(2,u,l),Gn||Ul(4,u,l),Uu(n,l,u);break;case 1:Gn||(Vi(u,l),s=u.stateNode,typeof s.componentWillUnmount=="function"&&Sc(u,l,s)),Uu(n,l,u);break;case 21:Uu(n,l,u);break;case 22:Gn=(s=Gn)||u.memoizedState!==null,Uu(n,l,u),Gn=s;break;default:Uu(n,l,u)}}function V3(n,l){if(l.memoizedState===null&&(n=l.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{bf(n)}catch(u){zt(l,l.return,u)}}}function Vg(n,l){if(l.memoizedState===null&&(n=l.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{bf(n)}catch(u){zt(l,l.return,u)}}function Wd(n){switch(n.tag){case 31:case 13:case 19:var l=n.stateNode;return l===null&&(l=n.stateNode=new Rg),l;case 22:return n=n.stateNode,l=n._retryCache,l===null&&(l=n._retryCache=new Rg),l;default:throw Error(h(435,n.tag))}}function Pd(n,l){var u=Wd(n);l.forEach(function(s){if(!u.has(s)){u.add(s);var m=c4.bind(null,n,s);s.then(m,m)}})}function el(n,l){var u=l.deletions;if(u!==null)for(var s=0;s<u.length;s++){var m=u[s],g=n,S=l,x=S;e:for(;x!==null;){switch(x.tag){case 27:if(Zi(x.type)){Qt=x.stateNode,Pa=!1;break e}break;case 5:Qt=x.stateNode,Pa=!1;break e;case 3:case 4:Qt=x.stateNode.containerInfo,Pa=!0;break e}x=x.return}if(Qt===null)throw Error(h(160));qg(g,S,m),Qt=null,Pa=!1,g=m.alternate,g!==null&&(g.return=null),m.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)N1(l,n),l=l.sibling}var Fe=null;function N1(n,l){var u=n.alternate,s=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:el(l,n),rl(n),s&4&&(Ul(3,n,n.return),li(3,n),Ul(5,n,n.return));break;case 1:el(l,n),rl(n),s&512&&(Gn||u===null||Vi(u,u.return)),s&64&&Eo&&(n=n.updateQueue,n!==null&&(s=n.callbacks,s!==null&&(u=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=u===null?s:u.concat(s))));break;case 26:var m=Fe;if(el(l,n),rl(n),s&512&&(Gn||u===null||Vi(u,u.return)),s&4){var g=u!==null?u.memoizedState:null;if(s=n.memoizedState,u===null)if(s===null)if(n.stateNode===null){e:{s=n.type,u=n.memoizedProps,m=m.ownerDocument||m;t:switch(s){case"title":g=m.getElementsByTagName("title")[0],(!g||g[du]||g[Ht]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=m.createElement(s),m.head.insertBefore(g,m.querySelector("head > title"))),Ea(g,s,u),g[Ht]=n,Mt(g),s=g;break e;case"link":var S=mp("link","href",m).get(s+(u.href||""));if(S){for(var x=0;x<S.length;x++)if(g=S[x],g.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&g.getAttribute("rel")===(u.rel==null?null:u.rel)&&g.getAttribute("title")===(u.title==null?null:u.title)&&g.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){S.splice(x,1);break t}}g=m.createElement(s),Ea(g,s,u),m.head.appendChild(g);break;case"meta":if(S=mp("meta","content",m).get(s+(u.content||""))){for(x=0;x<S.length;x++)if(g=S[x],g.getAttribute("content")===(u.content==null?null:""+u.content)&&g.getAttribute("name")===(u.name==null?null:u.name)&&g.getAttribute("property")===(u.property==null?null:u.property)&&g.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&g.getAttribute("charset")===(u.charSet==null?null:u.charSet)){S.splice(x,1);break t}}g=m.createElement(s),Ea(g,s,u),m.head.appendChild(g);break;default:throw Error(h(468,s))}g[Ht]=n,Mt(g),s=g}n.stateNode=s}else a2(m,n.type,n.stateNode);else n.stateNode=hp(m,s,n.memoizedProps);else g!==s?(g===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):g.count--,s===null?a2(m,n.type,n.stateNode):hp(m,s,n.memoizedProps)):s===null&&n.stateNode!==null&&O1(n,n.memoizedProps,u.memoizedProps)}break;case 27:el(l,n),rl(n),s&512&&(Gn||u===null||Vi(u,u.return)),u!==null&&s&4&&O1(n,n.memoizedProps,u.memoizedProps);break;case 5:if(el(l,n),rl(n),s&512&&(Gn||u===null||Vi(u,u.return)),n.flags&32){m=n.stateNode;try{mu(m,"")}catch(he){zt(n,n.return,he)}}s&4&&n.stateNode!=null&&(m=n.memoizedProps,O1(n,m,u!==null?u.memoizedProps:m)),s&1024&&(z1=!0);break;case 6:if(el(l,n),rl(n),s&4){if(n.stateNode===null)throw Error(h(162));s=n.memoizedProps,u=n.stateNode;try{u.nodeValue=s}catch(he){zt(n,n.return,he)}}break;case 3:if(gf=null,m=Fe,Fe=Ba(l.containerInfo),el(l,n),Fe=m,rl(n),s&4&&u!==null&&u.memoizedState.isDehydrated)try{bf(l.containerInfo)}catch(he){zt(n,n.return,he)}z1&&(z1=!1,Yg(n));break;case 4:s=Fe,Fe=Ba(n.stateNode.containerInfo),el(l,n),rl(n),Fe=s;break;case 12:el(l,n),rl(n);break;case 31:el(l,n),rl(n),s&4&&(s=n.updateQueue,s!==null&&(n.updateQueue=null,Pd(n,s)));break;case 13:el(l,n),rl(n),n.child.flags&8192&&n.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(Qi=Hn()),s&4&&(s=n.updateQueue,s!==null&&(n.updateQueue=null,Pd(n,s)));break;case 22:m=n.memoizedState!==null;var z=u!==null&&u.memoizedState!==null,Q=Eo,I=Gn;if(Eo=Q||m,Gn=I||z,el(l,n),Gn=I,Eo=Q,rl(n),s&8192)e:for(l=n.stateNode,l._visibility=m?l._visibility&-2:l._visibility|1,m&&(u===null||z||Eo||Gn||Ts(n)),u=null,l=n;;){if(l.tag===5||l.tag===26){if(u===null){z=u=l;try{if(g=z.stateNode,m)S=g.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{x=z.stateNode;var ae=z.memoizedProps.style,Z=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;x.style.display=Z==null||typeof Z=="boolean"?"":(""+Z).trim()}}catch(he){zt(z,z.return,he)}}}else if(l.tag===6){if(u===null){z=l;try{z.stateNode.nodeValue=m?"":z.memoizedProps}catch(he){zt(z,z.return,he)}}}else if(l.tag===18){if(u===null){z=l;try{var $=z.stateNode;m?zn($,!0):zn(z.stateNode,!1)}catch(he){zt(z,z.return,he)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===n)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)break e;for(;l.sibling===null;){if(l.return===null||l.return===n)break e;u===l&&(u=null),l=l.return}u===l&&(u=null),l.sibling.return=l.return,l=l.sibling}s&4&&(s=n.updateQueue,s!==null&&(u=s.retryQueue,u!==null&&(s.retryQueue=null,Pd(n,u))));break;case 19:el(l,n),rl(n),s&4&&(s=n.updateQueue,s!==null&&(n.updateQueue=null,Pd(n,s)));break;case 30:break;case 21:break;default:el(l,n),rl(n)}}function rl(n){var l=n.flags;if(l&2){try{for(var u,s=n.return;s!==null;){if(Lg(s)){u=s;break}s=s.return}if(u==null)throw Error(h(160));switch(u.tag){case 27:var m=u.stateNode,g=Qr(n);Jr(n,g,m);break;case 5:var S=u.stateNode;u.flags&32&&(mu(S,""),u.flags&=-33);var x=Qr(n);Jr(n,x,S);break;case 3:case 4:var z=u.stateNode.containerInfo,Q=Qr(n);Zr(n,Q,z);break;default:throw Error(h(161))}}catch(I){zt(n,n.return,I)}n.flags&=-3}l&4096&&(n.flags&=-4097)}function Yg(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var l=n;Yg(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),n=n.sibling}}function To(n,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)Id(n,l.alternate,l),l=l.sibling}function Ts(n){for(n=n.child;n!==null;){var l=n;switch(l.tag){case 0:case 11:case 14:case 15:Ul(4,l,l.return),Ts(l);break;case 1:Vi(l,l.return);var u=l.stateNode;typeof u.componentWillUnmount=="function"&&Sc(l,l.return,u),Ts(l);break;case 27:Os(l.stateNode);case 26:case 5:Vi(l,l.return),Ts(l);break;case 22:l.memoizedState===null&&Ts(l);break;case 30:Ts(l);break;default:Ts(l)}n=n.sibling}}function Yi(n,l,u){for(u=u&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var s=l.alternate,m=n,g=l,S=g.flags;switch(g.tag){case 0:case 11:case 15:Yi(m,g,u),li(4,g);break;case 1:if(Yi(m,g,u),s=g,m=s.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(Q){zt(s,s.return,Q)}if(s=g,m=s.updateQueue,m!==null){var x=s.stateNode;try{var z=m.shared.hiddenCallbacks;if(z!==null)for(m.shared.hiddenCallbacks=null,m=0;m<z.length;m++)a1(z[m],x)}catch(Q){zt(s,s.return,Q)}}u&&S&64&&D1(g),Nu(g,g.return);break;case 27:Gg(g);case 26:case 5:Yi(m,g,u),u&&s===null&&S&4&&Hg(g),Nu(g,g.return);break;case 12:Yi(m,g,u);break;case 31:Yi(m,g,u),u&&S&4&&V3(m,g);break;case 13:Yi(m,g,u),u&&S&4&&Vg(m,g);break;case 22:g.memoizedState===null&&Yi(m,g,u),Nu(g,g.return);break;case 30:break;default:Yi(m,g,u)}l=l.sibling}}function U1(n,l){var u=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),n=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(n=l.memoizedState.cachePool.pool),n!==u&&(n!=null&&n.refCount++,u!=null&&Md(u))}function B1(n,l){n=null,l.alternate!==null&&(n=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==n&&(l.refCount++,n!=null&&Md(n))}function ii(n,l,u,s){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)Fr(n,l,u,s),l=l.sibling}function Fr(n,l,u,s){var m=l.flags;switch(l.tag){case 0:case 11:case 15:ii(n,l,u,s),m&2048&&li(9,l);break;case 1:ii(n,l,u,s);break;case 3:ii(n,l,u,s),m&2048&&(n=null,l.alternate!==null&&(n=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==n&&(l.refCount++,n!=null&&Md(n)));break;case 12:if(m&2048){ii(n,l,u,s),n=l.stateNode;try{var g=l.memoizedProps,S=g.id,x=g.onPostCommit;typeof x=="function"&&x(S,l.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(z){zt(l,l.return,z)}}else ii(n,l,u,s);break;case 31:ii(n,l,u,s);break;case 13:ii(n,l,u,s);break;case 23:break;case 22:g=l.stateNode,S=l.alternate,l.memoizedState!==null?g._visibility&2?ii(n,l,u,s):eh(n,l):g._visibility&2?ii(n,l,u,s):(g._visibility|=2,$r(n,l,u,s,(l.subtreeFlags&10256)!==0||!1)),m&2048&&U1(S,l);break;case 24:ii(n,l,u,s),m&2048&&B1(l.alternate,l);break;default:ii(n,l,u,s)}}function $r(n,l,u,s,m){for(m=m&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var g=n,S=l,x=u,z=s,Q=S.flags;switch(S.tag){case 0:case 11:case 15:$r(g,S,x,z,m),li(8,S);break;case 23:break;case 22:var I=S.stateNode;S.memoizedState!==null?I._visibility&2?$r(g,S,x,z,m):eh(g,S):(I._visibility|=2,$r(g,S,x,z,m)),m&&Q&2048&&U1(S.alternate,S);break;case 24:$r(g,S,x,z,m),m&&Q&2048&&B1(S.alternate,S);break;default:$r(g,S,x,z,m)}l=l.sibling}}function eh(n,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var u=n,s=l,m=s.flags;switch(s.tag){case 22:eh(u,s),m&2048&&U1(s.alternate,s);break;case 24:eh(u,s),m&2048&&B1(s.alternate,s);break;default:eh(u,s)}l=l.sibling}}var fl=8192;function Bu(n,l,u){if(n.subtreeFlags&fl)for(n=n.child;n!==null;)Y3(n,l,u),n=n.sibling}function Y3(n,l,u){switch(n.tag){case 26:Bu(n,l,u),n.flags&fl&&n.memoizedState!==null&&ju(u,Fe,n.memoizedState,n.memoizedProps);break;case 5:Bu(n,l,u);break;case 3:case 4:var s=Fe;Fe=Ba(n.stateNode.containerInfo),Bu(n,l,u),Fe=s;break;case 22:n.memoizedState===null&&(s=n.alternate,s!==null&&s.memoizedState!==null?(s=fl,fl=16777216,Bu(n,l,u),fl=s):Bu(n,l,u));break;default:Bu(n,l,u)}}function H1(n){var l=n.alternate;if(l!==null&&(n=l.child,n!==null)){l.child=null;do l=n.sibling,n.sibling=null,n=l;while(n!==null)}}function Ir(n){var l=n.deletions;if(n.flags&16){if(l!==null)for(var u=0;u<l.length;u++){var s=l[u];oa=s,L1(s,n)}H1(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)kg(n),n=n.sibling}function kg(n){switch(n.tag){case 0:case 11:case 15:Ir(n),n.flags&2048&&Ul(9,n,n.return);break;case 3:Ir(n);break;case 12:Ir(n);break;case 22:var l=n.stateNode;n.memoizedState!==null&&l._visibility&2&&(n.return===null||n.return.tag!==13)?(l._visibility&=-3,th(n)):Ir(n);break;default:Ir(n)}}function th(n){var l=n.deletions;if(n.flags&16){if(l!==null)for(var u=0;u<l.length;u++){var s=l[u];oa=s,L1(s,n)}H1(n)}for(n=n.child;n!==null;){switch(l=n,l.tag){case 0:case 11:case 15:Ul(8,l,l.return),th(l);break;case 22:u=l.stateNode,u._visibility&2&&(u._visibility&=-3,th(l));break;default:th(l)}n=n.sibling}}function L1(n,l){for(;oa!==null;){var u=oa;switch(u.tag){case 0:case 11:case 15:Ul(8,u,l);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var s=u.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Md(u.memoizedState.cache)}if(s=u.child,s!==null)s.return=u,oa=s;else e:for(u=n;oa!==null;){s=oa;var m=s.sibling,g=s.return;if(jg(s),s===u){oa=null;break e}if(m!==null){m.return=g,oa=m;break e}oa=g}}}var k3={getCacheForType:function(n){var l=le(Cn),u=l.data.get(n);return u===void 0&&(u=n(),l.data.set(n,u)),u},cacheSignal:function(){return le(Cn).controller.signal}},Xg=typeof WeakMap=="function"?WeakMap:Map,vt=0,Gt=null,ot=null,at=0,Ot=0,Le=null,Hu=!1,Ec=!1,G1=!1,ki=0,Zt=0,Xi=0,As=0,R1=0,tl=0,fn=0,nh=null,dn=null,j1=!1,Qi=0,Qg=0,At=1/0,Wr=null,an=null,Qn=0,Ao=null,Tc=null,Lu=0,dl=0,q1=null,V1=null,Pr=0,ah=null;function hl(){return vt&2&&at!==0?at&-at:V.T!==null?Z1():_0()}function X3(){if(tl===0)if(!(at&536870912)||ut){var n=vl;vl<<=1,!(vl&3932160)&&(vl=262144),tl=n}else tl=536870912;return n=Fa.current,n!==null&&(n.flags|=32),tl}function nl(n,l,u){(n===Gt&&(Ot===2||Ot===9)||n.cancelPendingCommit!==null)&&(Gu(n,0),_o(n,at,tl,!1)),dr(n,u),(!(vt&2)||n!==Gt)&&(n===Gt&&(!(vt&2)&&(As|=u),Zt===4&&_o(n,at,tl,!1)),Ru(n))}function Q3(n,l,u){if(vt&6)throw Error(h(327));var s=!u&&(l&127)===0&&(l&n.expiredLanes)===0||_i(n,l),m=s?$3(n,l):k1(n,l,!0),g=s;do{if(m===0){Ec&&!s&&_o(n,l,0,!1);break}else{if(u=n.current.alternate,g&&!Z3(u)){m=k1(n,l,!1),g=!1;continue}if(m===2){if(g=l,n.errorRecoveryDisabledLanes&g)var S=0;else S=n.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){l=S;e:{var x=n;m=nh;var z=x.current.memoizedState.isDehydrated;if(z&&(Gu(x,S).flags|=256),S=k1(x,S,!1),S!==2){if(G1&&!z){x.errorRecoveryDisabledLanes|=g,As|=g,m=4;break e}g=dn,dn=m,g!==null&&(dn===null?dn=g:dn.push.apply(dn,g))}m=S}if(g=!1,m!==2)continue}}if(m===1){Gu(n,0),_o(n,l,0,!0);break}e:{switch(s=n,g=m,g){case 0:case 1:throw Error(h(345));case 4:if((l&4194048)!==l)break;case 6:_o(s,l,tl,!Hu);break e;case 2:dn=null;break;case 3:case 5:break;default:throw Error(h(329))}if((l&62914560)===l&&(m=Qi+300-Hn(),10<m)){if(_o(s,l,tl,!Hu),xn(s,0,!0)!==0)break e;Lu=l,s.timeoutHandle=hh(lh.bind(null,s,u,dn,Wr,j1,l,tl,As,fn,Hu,g,"Throttled",-0,0),m);break e}lh(s,u,dn,Wr,j1,l,tl,As,fn,Hu,g,null,-0,0)}}break}while(!0);Ru(n)}function lh(n,l,u,s,m,g,S,x,z,Q,I,ae,Z,$){if(n.timeoutHandle=-1,ae=l.subtreeFlags,ae&8192||(ae&16785408)===16785408){ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Mi},Y3(l,g,ae);var he=(g&62914560)===g?Qi-Hn():(g&4194048)===g?Qg-Hn():0;if(he=pp(ae,he),he!==null){Lu=g,n.cancelPendingCommit=he(e4.bind(null,n,l,g,u,s,m,S,x,z,I,ae,null,Z,$)),_o(n,g,S,!Q);return}}e4(n,l,g,u,s,m,S,x,z)}function Z3(n){for(var l=n;;){var u=l.tag;if((u===0||u===11||u===15)&&l.flags&16384&&(u=l.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var s=0;s<u.length;s++){var m=u[s],g=m.getSnapshot;m=m.value;try{if(!Na(g(),m))return!1}catch{return!1}}if(u=l.child,l.subtreeFlags&16384&&u!==null)u.return=l,l=u;else{if(l===n)break;for(;l.sibling===null;){if(l.return===null||l.return===n)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function _o(n,l,u,s){l&=~R1,l&=~As,n.suspendedLanes|=l,n.pingedLanes&=~l,s&&(n.warmLanes|=l),s=n.expirationTimes;for(var m=l;0<m;){var g=31-ba(m),S=1<<g;s[g]=-1,m&=~S}u!==0&&ud(n,u,l)}function ef(){return vt&6?!0:(Mo(0),!1)}function Zg(){if(ot!==null){if(Ot===0)var n=ot.return;else n=ot,Li=mo=null,Gd(n),rc=null,ds=0,n=ot;for(;n!==null;)q3(n.alternate,n),n=n.return;ot=null}}function Gu(n,l){var u=n.timeoutHandle;u!==-1&&(n.timeoutHandle=-1,p4(u)),u=n.cancelPendingCommit,u!==null&&(n.cancelPendingCommit=null,u()),Lu=0,Zg(),Gt=n,ot=u=fo(n.current,null),at=l,Ot=0,Le=null,Hu=!1,Ec=_i(n,l),G1=!1,fn=tl=R1=As=Xi=Zt=0,dn=nh=null,j1=!1,l&8&&(l|=l&32);var s=n.entangledLanes;if(s!==0)for(n=n.entanglements,s&=l;0<s;){var m=31-ba(s),g=1<<m;l|=n[m],s&=~g}return ki=l,El(),u}function tf(n,l){Ke=null,V.H=Qd,l===oc||l===Nr?(l=tg(),Ot=3):l===rs?(l=tg(),Ot=4):Ot=l===A1?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,Le=l,ot===null&&(Zt=1,kr(n,Al(l,n.current)))}function J3(){var n=Fa.current;return n===null?!0:(at&4194048)===at?Dl===null:(at&62914560)===at||at&536870912?n===Dl:!1}function K3(){var n=V.H;return V.H=Qd,n===null?Qd:n}function F3(){var n=V.A;return V.A=k3,n}function Y1(){Zt=4,Hu||(at&4194048)!==at&&Fa.current!==null||(Ec=!0),!(Xi&134217727)&&!(As&134217727)||Gt===null||_o(Gt,at,tl,!1)}function k1(n,l,u){var s=vt;vt|=2;var m=K3(),g=F3();(Gt!==n||at!==l)&&(Wr=null,Gu(n,l)),l=!1;var S=Zt;e:do try{if(Ot!==0&&ot!==null){var x=ot,z=Le;switch(Ot){case 8:Zg(),S=6;break e;case 3:case 2:case 9:case 6:Fa.current===null&&(l=!0);var Q=Ot;if(Ot=0,Le=null,_s(n,x,z,Q),u&&Ec){S=0;break e}break;default:Q=Ot,Ot=0,Le=null,_s(n,x,z,Q)}}yb(),S=Zt;break}catch(I){tf(n,I)}while(!0);return l&&n.shellSuspendCounter++,Li=mo=null,vt=s,V.H=m,V.A=g,ot===null&&(Gt=null,at=0,El()),S}function yb(){for(;ot!==null;)I3(ot)}function $3(n,l){var u=vt;vt|=2;var s=K3(),m=F3();Gt!==n||at!==l?(Wr=null,At=Hn()+500,Gu(n,l)):Ec=_i(n,l);e:do try{if(Ot!==0&&ot!==null){l=ot;var g=Le;t:switch(Ot){case 1:Ot=0,Le=null,_s(n,l,g,1);break;case 2:case 9:if(Pm(g)){Ot=0,Le=null,W3(l);break}l=function(){Ot!==2&&Ot!==9||Gt!==n||(Ot=7),Ru(n)},g.then(l,l);break e;case 3:Ot=7;break e;case 4:Ot=5;break e;case 7:Pm(g)?(Ot=0,Le=null,W3(l)):(Ot=0,Le=null,_s(n,l,g,7));break;case 5:var S=null;switch(ot.tag){case 26:S=ot.memoizedState;case 5:case 27:var x=ot;if(S?gl(S):x.stateNode.complete){Ot=0,Le=null;var z=x.sibling;if(z!==null)ot=z;else{var Q=x.return;Q!==null?(ot=Q,ih(Q)):ot=null}break t}}Ot=0,Le=null,_s(n,l,g,5);break;case 6:Ot=0,Le=null,_s(n,l,g,6);break;case 8:Zg(),Zt=6;break e;default:throw Error(h(462))}}Ac();break}catch(I){tf(n,I)}while(!0);return Li=mo=null,V.H=s,V.A=m,vt=u,ot!==null?0:(Gt=null,at=0,El(),Zt)}function Ac(){for(;ot!==null&&!Ql();)I3(ot)}function I3(n){var l=Ng(n.alternate,n,ki);n.memoizedProps=n.pendingProps,l===null?ih(n):ot=l}function W3(n){var l=n,u=l.alternate;switch(l.tag){case 15:case 0:l=wc(u,l,l.pendingProps,l.type,void 0,at);break;case 11:l=wc(u,l,l.pendingProps,l.type.render,l.ref,at);break;case 5:Gd(l);default:q3(u,l),l=ot=Zm(l,ki),l=Ng(u,l,ki)}n.memoizedProps=n.pendingProps,l===null?ih(n):ot=l}function _s(n,l,u,s){Li=mo=null,Gd(l),rc=null,ds=0;var m=l.return;try{if(pb(n,m,l,u,at)){Zt=1,kr(n,Al(u,n.current)),ot=null;return}}catch(g){if(m!==null)throw ot=m,g;Zt=1,kr(n,Al(u,n.current)),ot=null;return}l.flags&32768?(ut||s===1?n=!0:Ec||at&536870912?n=!1:(Hu=n=!0,(s===2||s===9||s===3||s===6)&&(s=Fa.current,s!==null&&s.tag===13&&(s.flags|=16384))),P3(l,n)):ih(l)}function ih(n){var l=n;do{if(l.flags&32768){P3(l,Hu);return}n=l.return;var u=R3(l.alternate,l,ki);if(u!==null){ot=u;return}if(l=l.sibling,l!==null){ot=l;return}ot=l=n}while(l!==null);Zt===0&&(Zt=5)}function P3(n,l){do{var u=j3(n.alternate,n);if(u!==null){u.flags&=32767,ot=u;return}if(u=n.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!l&&(n=n.sibling,n!==null)){ot=n;return}ot=n=u}while(n!==null);Zt=6,ot=null}function e4(n,l,u,s,m,g,S,x,z){n.cancelPendingCommit=null;do nf();while(Qn!==0);if(vt&6)throw Error(h(327));if(l!==null){if(l===n.current)throw Error(h(177));if(g=l.lanes|l.childLanes,g|=Pl,T0(n,u,g,S,x,z),n===Gt&&(ot=Gt=null,at=0),Tc=l,Ao=n,Lu=u,dl=g,q1=m,V1=s,l.subtreeFlags&10256||l.flags&10256?(n.callbackNode=null,n.callbackPriority=0,s4(su,function(){return i4(),null})):(n.callbackNode=null,n.callbackPriority=0),s=(l.flags&13878)!==0,l.subtreeFlags&13878||s){s=V.T,V.T=null,m=ee.p,ee.p=2,S=vt,vt|=4;try{Kr(n,l,u)}finally{vt=S,ee.p=m,V.T=s}}Qn=1,t4(),n4(),a4()}}function t4(){if(Qn===1){Qn=0;var n=Ao,l=Tc,u=(l.flags&13878)!==0;if(l.subtreeFlags&13878||u){u=V.T,V.T=null;var s=ee.p;ee.p=2;var m=vt;vt|=4;try{N1(l,n);var g=W1,S=nc(n.containerInfo),x=g.focusedElem,z=g.selectionRange;if(S!==x&&x&&x.ownerDocument&&ns(x.ownerDocument.documentElement,x)){if(z!==null&&yd(x)){var Q=z.start,I=z.end;if(I===void 0&&(I=Q),"selectionStart"in x)x.selectionStart=Q,x.selectionEnd=Math.min(I,x.value.length);else{var ae=x.ownerDocument||document,Z=ae&&ae.defaultView||window;if(Z.getSelection){var $=Z.getSelection(),he=x.textContent.length,ze=Math.min(z.start,he),jt=z.end===void 0?ze:Math.min(z.end,he);!$.extend&&ze>jt&&(S=jt,jt=ze,ze=S);var Y=Xm(x,ze),L=Xm(x,jt);if(Y&&L&&($.rangeCount!==1||$.anchorNode!==Y.node||$.anchorOffset!==Y.offset||$.focusNode!==L.node||$.focusOffset!==L.offset)){var X=ae.createRange();X.setStart(Y.node,Y.offset),$.removeAllRanges(),ze>jt?($.addRange(X),$.extend(L.node,L.offset)):(X.setEnd(L.node,L.offset),$.addRange(X))}}}}for(ae=[],$=x;$=$.parentNode;)$.nodeType===1&&ae.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<ae.length;x++){var te=ae[x];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}Zn=!!I1,W1=I1=null}finally{vt=m,ee.p=s,V.T=u}}n.current=l,Qn=2}}function n4(){if(Qn===2){Qn=0;var n=Ao,l=Tc,u=(l.flags&8772)!==0;if(l.subtreeFlags&8772||u){u=V.T,V.T=null;var s=ee.p;ee.p=2;var m=vt;vt|=4;try{Id(n,l.alternate,l)}finally{vt=m,ee.p=s,V.T=u}}Qn=3}}function a4(){if(Qn===4||Qn===3){Qn=0,Vc();var n=Ao,l=Tc,u=Lu,s=V1;l.subtreeFlags&10256||l.flags&10256?Qn=5:(Qn=0,Tc=Ao=null,l4(n,n.pendingLanes));var m=n.pendingLanes;if(m===0&&(an=null),vm(u),l=l.stateNode,_n&&typeof _n.onCommitFiberRoot=="function")try{_n.onCommitFiberRoot(sn,l,void 0,(l.current.flags&128)===128)}catch{}if(s!==null){l=V.T,m=ee.p,ee.p=2,V.T=null;try{for(var g=n.onRecoverableError,S=0;S<s.length;S++){var x=s[S];g(x.value,{componentStack:x.stack})}}finally{V.T=l,ee.p=m}}Lu&3&&nf(),Ru(n),m=n.pendingLanes,u&261930&&m&42?n===ah?Pr++:(Pr=0,ah=n):Pr=0,Mo(0)}}function l4(n,l){(n.pooledCacheLanes&=l)===0&&(l=n.pooledCache,l!=null&&(n.pooledCache=null,Md(l)))}function nf(){return t4(),n4(),a4(),i4()}function i4(){if(Qn!==5)return!1;var n=Ao,l=dl;dl=0;var u=vm(Lu),s=V.T,m=ee.p;try{ee.p=32>u?32:u,V.T=null,u=q1,q1=null;var g=Ao,S=Lu;if(Qn=0,Tc=Ao=null,Lu=0,vt&6)throw Error(h(331));var x=vt;if(vt|=4,kg(g.current),Fr(g,g.current,S,u),vt=x,Mo(0,!1),_n&&typeof _n.onPostCommitFiberRoot=="function")try{_n.onPostCommitFiberRoot(sn,g)}catch{}return!0}finally{ee.p=m,V.T=s,l4(n,l)}}function u4(n,l,u){l=Al(u,l),l=Tg(n.stateNode,l,2),n=Cl(n,l,2),n!==null&&(dr(n,2),Ru(n))}function zt(n,l,u){if(n.tag===3)u4(n,n,u);else for(;l!==null;){if(l.tag===3){u4(l,n,u);break}else if(l.tag===1){var s=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(an===null||!an.has(s))){n=Al(u,n),u=Ag(2),s=Cl(l,u,2),s!==null&&(_g(u,s,l,n),dr(s,2),Ru(s));break}}l=l.return}}function uh(n,l,u){var s=n.pingCache;if(s===null){s=n.pingCache=new Xg;var m=new Set;s.set(l,m)}else m=s.get(l),m===void 0&&(m=new Set,s.set(l,m));m.has(u)||(G1=!0,m.add(u),n=Jg.bind(null,n,l,u),l.then(n,n))}function Jg(n,l,u){var s=n.pingCache;s!==null&&s.delete(l),n.pingedLanes|=n.suspendedLanes&u,n.warmLanes&=~u,Gt===n&&(at&u)===u&&(Zt===4||Zt===3&&(at&62914560)===at&&300>Hn()-Qi?!(vt&2)&&Gu(n,0):R1|=u,fn===at&&(fn=0)),Ru(n)}function o4(n,l){l===0&&(l=Yc()),n=ro(n,l),n!==null&&(dr(n,l),Ru(n))}function Bl(n){var l=n.memoizedState,u=0;l!==null&&(u=l.retryLane),o4(n,u)}function c4(n,l){var u=0;switch(n.tag){case 31:case 13:var s=n.stateNode,m=n.memoizedState;m!==null&&(u=m.retryLane);break;case 19:s=n.stateNode;break;case 22:s=n.stateNode._retryCache;break;default:throw Error(h(314))}s!==null&&s.delete(l),o4(n,u)}function s4(n,l){return ht(n,l)}var af=null,xs=null,Kg=!1,X1=!1,Fg=!1,xo=0;function Ru(n){n!==xs&&n.next===null&&(xs===null?af=xs=n:xs=xs.next=n),X1=!0,Kg||(Kg=!0,ch())}function Mo(n,l){if(!Fg&&X1){Fg=!0;do for(var u=!1,s=af;s!==null;){if(n!==0){var m=s.pendingLanes;if(m===0)var g=0;else{var S=s.suspendedLanes,x=s.pingedLanes;g=(1<<31-ba(42|n)+1)-1,g&=m&~(S&~x),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(u=!0,Ms(s,g))}else g=at,g=xn(s,s===Gt?g:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),!(g&3)||_i(s,g)||(u=!0,Ms(s,g));s=s.next}while(u);Fg=!1}}function Q1(){$g()}function $g(){X1=Kg=!1;var n=0;xo!==0&&vb()&&(n=xo);for(var l=Hn(),u=null,s=af;s!==null;){var m=s.next,g=Ig(s,l);g===0?(s.next=null,u===null?af=m:u.next=m,m===null&&(xs=u)):(u=s,(n!==0||g&3)&&(X1=!0)),s=m}Qn!==0&&Qn!==5||Mo(n),xo!==0&&(xo=0)}function Ig(n,l){for(var u=n.suspendedLanes,s=n.pingedLanes,m=n.expirationTimes,g=n.pendingLanes&-62914561;0<g;){var S=31-ba(g),x=1<<S,z=m[S];z===-1?(!(x&u)||x&s)&&(m[S]=fr(x,l)):z<=l&&(n.expiredLanes|=x),g&=~x}if(l=Gt,u=at,u=xn(n,n===l?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),s=n.callbackNode,u===0||n===l&&(Ot===2||Ot===9)||n.cancelPendingCommit!==null)return s!==null&&s!==null&&Jo(s),n.callbackNode=null,n.callbackPriority=0;if(!(u&3)||_i(n,u)){if(l=u&-u,l===n.callbackPriority)return l;switch(s!==null&&Jo(s),vm(u)){case 2:case 8:u=sr;break;case 32:u=su;break;case 268435456:u=rr;break;default:u=su}return s=oh.bind(null,n),u=ht(u,s),n.callbackPriority=l,n.callbackNode=u,l}return s!==null&&s!==null&&Jo(s),n.callbackPriority=2,n.callbackNode=null,2}function oh(n,l){if(Qn!==0&&Qn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var u=n.callbackNode;if(nf()&&n.callbackNode!==u)return null;var s=at;return s=xn(n,n===Gt?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),s===0?null:(Q3(n,s,l),Ig(n,Hn()),n.callbackNode!=null&&n.callbackNode===u?oh.bind(null,n):null)}function Ms(n,l){if(nf())return null;Q3(n,l,!0)}function ch(){y4(function(){vt&6?ht(cr,Q1):$g()})}function Z1(){if(xo===0){var n=uc;n===0&&(n=Ai,Ai<<=1,!(Ai&261888)&&(Ai=256)),xo=n}return xo}function r4(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Fl(""+n)}function Cs(n,l){var u=l.ownerDocument.createElement("input");return u.name=l.name,u.value=l.value,n.id&&u.setAttribute("form",n.id),l.parentNode.insertBefore(u,l),n=new FormData(n),u.parentNode.removeChild(u),n}function sh(n,l,u,s,m){if(l==="submit"&&u&&u.stateNode===m){var g=r4((m[ka]||null).action),S=s.submitter;S&&(l=(l=S[ka]||null)?r4(l.formAction):S.getAttribute("formAction"),l!==null&&(g=l,S=null));var x=new md("action","action",null,s,m);n.push({event:x,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(xo!==0){var z=S?Cs(m,S):new FormData(m);Vr(u,{pending:!0,data:z,method:m.method,action:g},null,z)}}else typeof g=="function"&&(x.preventDefault(),z=S?Cs(m,S):new FormData(m),Vr(u,{pending:!0,data:z,method:m.method,action:g},g,z))},currentTarget:m}]})}}for(var J1=0;J1<xr.length;J1++){var lf=xr[J1],Wg=lf.toLowerCase(),Pg=lf[0].toUpperCase()+lf.slice(1);Qa(Wg,"on"+Pg)}Qa(wd,"onAnimationEnd"),Qa(Qm,"onAnimationIteration"),Qa(J0,"onAnimationStart"),Qa("dblclick","onDoubleClick"),Qa("focusin","onFocus"),Qa("focusout","onBlur"),Qa(as,"onTransitionRun"),Qa(bd,"onTransitionStart"),Qa(vu,"onTransitionCancel"),Qa(S3,"onTransitionEnd"),hu("onMouseEnter",["mouseout","mouseover"]),hu("onMouseLeave",["mouseout","mouseover"]),hu("onPointerEnter",["pointerout","pointerover"]),hu("onPointerLeave",["pointerout","pointerover"]),Io("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Io("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Io("onBeforeInput",["compositionend","keypress","textInput","paste"]),Io("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Io("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Io("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var uf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),f4=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(uf));function d4(n,l){l=(l&4)!==0;for(var u=0;u<n.length;u++){var s=n[u],m=s.event;s=s.listeners;e:{var g=void 0;if(l)for(var S=s.length-1;0<=S;S--){var x=s[S],z=x.instance,Q=x.currentTarget;if(x=x.listener,z!==g&&m.isPropagationStopped())break e;g=x,m.currentTarget=Q;try{g(m)}catch(I){ls(I)}m.currentTarget=null,g=z}else for(S=0;S<s.length;S++){if(x=s[S],z=x.instance,Q=x.currentTarget,x=x.listener,z!==g&&m.isPropagationStopped())break e;g=x,m.currentTarget=Q;try{g(m)}catch(I){ls(I)}m.currentTarget=null,g=z}}}}function it(n,l){var u=l[x0];u===void 0&&(u=l[x0]=new Set);var s=n+"__bubble";u.has(s)||(rh(l,n,2,!1),u.add(s))}function ep(n,l,u){var s=0;l&&(s|=4),rh(u,n,s,l)}var K1="_reactListening"+Math.random().toString(36).slice(2);function of(n){if(!n[K1]){n[K1]=!0,Zc.forEach(function(u){u!=="selectionchange"&&(f4.has(u)||ep(u,!1,n),ep(u,!0,n))});var l=n.nodeType===9?n:n.ownerDocument;l===null||l[K1]||(l[K1]=!0,ep("selectionchange",!1,l))}}function rh(n,l,u,s){switch(wh(l)){case 2:var m=qu;break;case 8:m=Vu;break;default:m=Ta}u=m.bind(null,l,u,n),m=void 0,!dd||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(m=!0),s?m!==void 0?n.addEventListener(l,u,{capture:!0,passive:m}):n.addEventListener(l,u,!0):m!==void 0?n.addEventListener(l,u,{passive:m}):n.addEventListener(l,u,!1)}function tp(n,l,u,s,m){var g=s;if(!(l&1)&&!(l&2)&&s!==null)e:for(;;){if(s===null)return;var S=s.tag;if(S===3||S===4){var x=s.stateNode.containerInfo;if(x===m)break;if(S===4)for(S=s.return;S!==null;){var z=S.tag;if((z===3||z===4)&&S.stateNode.containerInfo===m)return;S=S.return}for(;x!==null;){if(S=kc(x),S===null)return;if(z=S.tag,z===5||z===6||z===26||z===27){s=g=S;continue e}x=x.parentNode}}s=s.return}Mm(function(){var Q=g,I=B0(u),ae=[];e:{var Z=wu.get(n);if(Z!==void 0){var $=md,he=n;switch(n){case"keypress":if(L0(u)===0)break e;case"keydown":case"keyup":$=q0;break;case"focusin":he="focus",$=R0;break;case"focusout":he="blur",$=R0;break;case"beforeblur":case"afterblur":$=R0;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$=Sr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=s3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=m3;break;case wd:case Qm:case J0:$=f3;break;case S3:$=db;break;case"scroll":case"scrollend":$=rb;break;case"wheel":$=hb;break;case"copy":case"cut":case"paste":$=$c;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=Oi;break;case"toggle":case"beforetoggle":$=Lm}var ze=(l&4)!==0,jt=!ze&&(n==="scroll"||n==="scrollend"),Y=ze?Z!==null?Z+"Capture":null:Z;ze=[];for(var L=Q,X;L!==null;){var te=L;if(X=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||X===null||Y===null||(te=ta(L,Y),te!=null&&ze.push(fh(L,te,X))),jt)break;L=L.return}0<ze.length&&(Z=new $(Z,he,null,u,I),ae.push({event:Z,listeners:ze}))}}if(!(l&7)){e:{if(Z=n==="mouseover"||n==="pointerover",$=n==="mouseout"||n==="pointerout",Z&&u!==U0&&(he=u.relatedTarget||u.fromElement)&&(kc(he)||he[Fo]))break e;if(($||Z)&&(Z=I.window===I?I:(Z=I.ownerDocument)?Z.defaultView||Z.parentWindow:window,$?(he=u.relatedTarget||u.toElement,$=Q,he=he?kc(he):null,he!==null&&(jt=w(he),ze=he.tag,he!==jt||ze!==5&&ze!==27&&ze!==6)&&(he=null)):($=null,he=Q),$!==he)){if(ze=Sr,te="onMouseLeave",Y="onMouseEnter",L="mouse",(n==="pointerout"||n==="pointerover")&&(ze=Oi,te="onPointerLeave",Y="onPointerEnter",L="pointer"),jt=$==null?Z:hr($),X=he==null?Z:hr(he),Z=new ze(te,L+"leave",$,u,I),Z.target=jt,Z.relatedTarget=X,te=null,kc(I)===Q&&(ze=new ze(Y,L+"enter",he,u,I),ze.target=X,ze.relatedTarget=jt,te=ze),jt=te,$&&he)t:{for(ze=h4,Y=$,L=he,X=0,te=Y;te;te=ze(te))X++;te=0;for(var Ae=L;Ae;Ae=ze(Ae))te++;for(;0<X-te;)Y=ze(Y),X--;for(;0<te-X;)L=ze(L),te--;for(;X--;){if(Y===L||L!==null&&Y===L.alternate){ze=Y;break t}Y=ze(Y),L=ze(L)}ze=null}else ze=null;$!==null&&F1(ae,Z,$,ze,!1),he!==null&&jt!==null&&F1(ae,jt,he,ze,!0)}}e:{if(Z=Q?hr(Q):window,$=Z.nodeName&&Z.nodeName.toLowerCase(),$==="select"||$==="input"&&Z.type==="file")var gt=Vm;else if(yu(Z))if(k0)gt=ts;else{gt=w3;var pe=v3}else $=Z.nodeName,!$||$.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?Q&&xm(Q.elementType)&&(gt=Vm):gt=tc;if(gt&&(gt=gt(n,Q))){qm(ae,gt,u,I);break e}pe&&pe(n,Z,Q),n==="focusout"&&Q&&Z.type==="number"&&Q.memoizedProps.value!=null&&Jc(Z,"number",Z.value)}switch(pe=Q?hr(Q):window,n){case"focusin":(yu(pe)||pe.contentEditable==="true")&&(ac=pe,Ar=Q,Wl=null);break;case"focusout":Wl=Ar=ac=null;break;case"mousedown":Ni=!0;break;case"contextmenu":case"mouseup":case"dragend":Ni=!1,Z0(ae,u,I);break;case"selectionchange":if(vd)break;case"keydown":case"keyup":Z0(ae,u,I)}var Je;if(Er)e:{switch(n){case"compositionstart":var $e="onCompositionStart";break e;case"compositionend":$e="onCompositionEnd";break e;case"compositionupdate":$e="onCompositionUpdate";break e}$e=void 0}else Wc?Y0(n,u)&&($e="onCompositionEnd"):n==="keydown"&&u.keyCode===229&&($e="onCompositionStart");$e&&(Gm&&u.locale!=="ko"&&(Wc||$e!=="onCompositionStart"?$e==="onCompositionEnd"&&Wc&&(Je=Dm()):(co=I,Cm="value"in co?co.value:co.textContent,Wc=!0)),pe=dh(Q,$e),0<pe.length&&($e=new d3($e,n,null,u,I),ae.push({event:$e,listeners:pe}),Je?$e.data=Je:(Je=Rm(u),Je!==null&&($e.data=Je)))),(Je=za?y3(n,u):mb(n,u))&&($e=dh(Q,"onBeforeInput"),0<$e.length&&(pe=new d3("onBeforeInput","beforeinput",null,u,I),ae.push({event:pe,listeners:$e}),pe.data=Je)),sh(ae,n,Q,u,I)}d4(ae,l)})}function fh(n,l,u){return{instance:n,listener:l,currentTarget:u}}function dh(n,l){for(var u=l+"Capture",s=[];n!==null;){var m=n,g=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||g===null||(m=ta(n,u),m!=null&&s.unshift(fh(n,m,g)),m=ta(n,l),m!=null&&s.push(fh(n,m,g))),n.tag===3)return s;n=n.return}return[]}function h4(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function F1(n,l,u,s,m){for(var g=l._reactName,S=[];u!==null&&u!==s;){var x=u,z=x.alternate,Q=x.stateNode;if(x=x.tag,z!==null&&z===s)break;x!==5&&x!==26&&x!==27||Q===null||(z=Q,m?(Q=ta(u,g),Q!=null&&S.unshift(fh(u,Q,z))):m||(Q=ta(u,g),Q!=null&&S.push(fh(u,Q,z)))),u=u.return}S.length!==0&&n.push({event:l,listeners:S})}var m4=/\r\n?/g,np=/\u0000|\uFFFD/g;function ap(n){return(typeof n=="string"?n:""+n).replace(m4,`
106
- `).replace(np,"")}function lp(n,l){return l=ap(l),ap(n)===l}function Rt(n,l,u,s,m,g){switch(u){case"children":typeof s=="string"?l==="body"||l==="textarea"&&s===""||mu(n,s):(typeof s=="number"||typeof s=="bigint")&&l!=="body"&&mu(n,""+s);break;case"className":O0(n,"class",s);break;case"tabIndex":O0(n,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":O0(n,u,s);break;case"style":u3(n,s,g);break;case"data":if(l!=="object"){O0(n,"data",s);break}case"src":case"href":if(s===""&&(l!=="a"||u!=="href")){n.removeAttribute(u);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){n.removeAttribute(u);break}s=Fl(""+s),n.setAttribute(u,s);break;case"action":case"formAction":if(typeof s=="function"){n.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof g=="function"&&(u==="formAction"?(l!=="input"&&Rt(n,l,"name",m.name,m,null),Rt(n,l,"formEncType",m.formEncType,m,null),Rt(n,l,"formMethod",m.formMethod,m,null),Rt(n,l,"formTarget",m.formTarget,m,null)):(Rt(n,l,"encType",m.encType,m,null),Rt(n,l,"method",m.method,m,null),Rt(n,l,"target",m.target,m,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){n.removeAttribute(u);break}s=Fl(""+s),n.setAttribute(u,s);break;case"onClick":s!=null&&(n.onclick=Mi);break;case"onScroll":s!=null&&it("scroll",n);break;case"onScrollEnd":s!=null&&it("scrollend",n);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(h(61));if(u=s.__html,u!=null){if(m.children!=null)throw Error(h(60));n.innerHTML=u}}break;case"multiple":n.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":n.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){n.removeAttribute("xlink:href");break}u=Fl(""+s),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?n.setAttribute(u,""+s):n.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?n.setAttribute(u,""):n.removeAttribute(u);break;case"capture":case"download":s===!0?n.setAttribute(u,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?n.setAttribute(u,s):n.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?n.setAttribute(u,s):n.removeAttribute(u);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?n.removeAttribute(u):n.setAttribute(u,s);break;case"popover":it("beforetoggle",n),it("toggle",n),pr(n,"popover",s);break;case"xlinkActuate":uo(n,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":uo(n,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":uo(n,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":uo(n,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":uo(n,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":uo(n,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":uo(n,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":uo(n,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":uo(n,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":pr(n,"is",s);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=sb.get(u)||u,pr(n,u,s))}}function ip(n,l,u,s,m,g){switch(u){case"style":u3(n,s,g);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(h(61));if(u=s.__html,u!=null){if(m.children!=null)throw Error(h(60));n.innerHTML=u}}break;case"children":typeof s=="string"?mu(n,s):(typeof s=="number"||typeof s=="bigint")&&mu(n,""+s);break;case"onScroll":s!=null&&it("scroll",n);break;case"onScrollEnd":s!=null&&it("scrollend",n);break;case"onClick":s!=null&&(n.onclick=Mi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!$o.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(m=u.endsWith("Capture"),l=u.slice(2,m?u.length-7:void 0),g=n[ka]||null,g=g!=null?g[u]:null,typeof g=="function"&&n.removeEventListener(l,g,m),typeof s=="function")){typeof g!="function"&&g!==null&&(u in n?n[u]=null:n.hasAttribute(u)&&n.removeAttribute(u)),n.addEventListener(l,s,m);break e}u in n?n[u]=s:s===!0?n.setAttribute(u,""):pr(n,u,s)}}}function Ea(n,l,u){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":it("error",n),it("load",n);var s=!1,m=!1,g;for(g in u)if(u.hasOwnProperty(g)){var S=u[g];if(S!=null)switch(g){case"src":s=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(h(137,l));default:Rt(n,l,g,S,u,null)}}m&&Rt(n,l,"srcSet",u.srcSet,u,null),s&&Rt(n,l,"src",u.src,u,null);return;case"input":it("invalid",n);var x=g=S=m=null,z=null,Q=null;for(s in u)if(u.hasOwnProperty(s)){var I=u[s];if(I!=null)switch(s){case"name":m=I;break;case"type":S=I;break;case"checked":z=I;break;case"defaultChecked":Q=I;break;case"value":g=I;break;case"defaultValue":x=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(h(137,l));break;default:Rt(n,l,s,I,u,null)}}sd(n,g,x,z,Q,S,m,!1);return;case"select":it("invalid",n),s=S=g=null;for(m in u)if(u.hasOwnProperty(m)&&(x=u[m],x!=null))switch(m){case"value":g=x;break;case"defaultValue":S=x;break;case"multiple":s=x;default:Rt(n,l,m,x,u,null)}l=g,u=S,n.multiple=!!s,l!=null?yr(n,!!s,l,!1):u!=null&&yr(n,!!s,u,!0);return;case"textarea":it("invalid",n),g=m=s=null;for(S in u)if(u.hasOwnProperty(S)&&(x=u[S],x!=null))switch(S){case"value":s=x;break;case"defaultValue":m=x;break;case"children":g=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(h(91));break;default:Rt(n,l,S,x,u,null)}_m(n,s,m,g);return;case"option":for(z in u)if(u.hasOwnProperty(z)&&(s=u[z],s!=null))switch(z){case"selected":n.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Rt(n,l,z,s,u,null)}return;case"dialog":it("beforetoggle",n),it("toggle",n),it("cancel",n),it("close",n);break;case"iframe":case"object":it("load",n);break;case"video":case"audio":for(s=0;s<uf.length;s++)it(uf[s],n);break;case"image":it("error",n),it("load",n);break;case"details":it("toggle",n);break;case"embed":case"source":case"link":it("error",n),it("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Q in u)if(u.hasOwnProperty(Q)&&(s=u[Q],s!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(h(137,l));default:Rt(n,l,Q,s,u,null)}return;default:if(xm(l)){for(I in u)u.hasOwnProperty(I)&&(s=u[I],s!==void 0&&ip(n,l,I,s,u,void 0));return}}for(x in u)u.hasOwnProperty(x)&&(s=u[x],s!=null&&Rt(n,l,x,s,u,null))}function up(n,l,u,s){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,g=null,S=null,x=null,z=null,Q=null,I=null;for($ in u){var ae=u[$];if(u.hasOwnProperty($)&&ae!=null)switch($){case"checked":break;case"value":break;case"defaultValue":z=ae;default:s.hasOwnProperty($)||Rt(n,l,$,null,s,ae)}}for(var Z in s){var $=s[Z];if(ae=u[Z],s.hasOwnProperty(Z)&&($!=null||ae!=null))switch(Z){case"type":g=$;break;case"name":m=$;break;case"checked":Q=$;break;case"defaultChecked":I=$;break;case"value":S=$;break;case"defaultValue":x=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(h(137,l));break;default:$!==ae&&Rt(n,l,Z,$,s,ae)}}cd(n,S,x,z,Q,I,g,m);return;case"select":$=S=x=Z=null;for(g in u)if(z=u[g],u.hasOwnProperty(g)&&z!=null)switch(g){case"value":break;case"multiple":$=z;default:s.hasOwnProperty(g)||Rt(n,l,g,null,s,z)}for(m in s)if(g=s[m],z=u[m],s.hasOwnProperty(m)&&(g!=null||z!=null))switch(m){case"value":Z=g;break;case"defaultValue":x=g;break;case"multiple":S=g;default:g!==z&&Rt(n,l,m,g,s,z)}l=x,u=S,s=$,Z!=null?yr(n,!!u,Z,!1):!!s!=!!u&&(l!=null?yr(n,!!u,l,!0):yr(n,!!u,u?[]:"",!1));return;case"textarea":$=Z=null;for(x in u)if(m=u[x],u.hasOwnProperty(x)&&m!=null&&!s.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Rt(n,l,x,null,s,m)}for(S in s)if(m=s[S],g=u[S],s.hasOwnProperty(S)&&(m!=null||g!=null))switch(S){case"value":Z=m;break;case"defaultValue":$=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(h(91));break;default:m!==g&&Rt(n,l,S,m,s,g)}Am(n,Z,$);return;case"option":for(var he in u)if(Z=u[he],u.hasOwnProperty(he)&&Z!=null&&!s.hasOwnProperty(he))switch(he){case"selected":n.selected=!1;break;default:Rt(n,l,he,null,s,Z)}for(z in s)if(Z=s[z],$=u[z],s.hasOwnProperty(z)&&Z!==$&&(Z!=null||$!=null))switch(z){case"selected":n.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:Rt(n,l,z,Z,s,$)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ze in u)Z=u[ze],u.hasOwnProperty(ze)&&Z!=null&&!s.hasOwnProperty(ze)&&Rt(n,l,ze,null,s,Z);for(Q in s)if(Z=s[Q],$=u[Q],s.hasOwnProperty(Q)&&Z!==$&&(Z!=null||$!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(h(137,l));break;default:Rt(n,l,Q,Z,s,$)}return;default:if(xm(l)){for(var jt in u)Z=u[jt],u.hasOwnProperty(jt)&&Z!==void 0&&!s.hasOwnProperty(jt)&&ip(n,l,jt,void 0,s,Z);for(I in s)Z=s[I],$=u[I],!s.hasOwnProperty(I)||Z===$||Z===void 0&&$===void 0||ip(n,l,I,Z,s,$);return}}for(var Y in u)Z=u[Y],u.hasOwnProperty(Y)&&Z!=null&&!s.hasOwnProperty(Y)&&Rt(n,l,Y,null,s,Z);for(ae in s)Z=s[ae],$=u[ae],!s.hasOwnProperty(ae)||Z===$||Z==null&&$==null||Rt(n,l,ae,Z,s,$)}function $1(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function op(){if(typeof performance.getEntriesByType=="function"){for(var n=0,l=0,u=performance.getEntriesByType("resource"),s=0;s<u.length;s++){var m=u[s],g=m.transferSize,S=m.initiatorType,x=m.duration;if(g&&x&&$1(S)){for(S=0,x=m.responseEnd,s+=1;s<u.length;s++){var z=u[s],Q=z.startTime;if(Q>x)break;var I=z.transferSize,ae=z.initiatorType;I&&$1(ae)&&(z=z.responseEnd,S+=I*(z<x?1:(x-Q)/(z-Q)))}if(--s,l+=8*(g+S)/(m.duration/1e3),n++,10<n)break}}if(0<n)return l/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var I1=null,W1=null;function _c(n){return n.nodeType===9?n:n.ownerDocument}function g4(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function cp(n,l){if(n===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&l==="foreignObject"?0:n}function cf(n,l){return n==="textarea"||n==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var P1=null;function vb(){var n=window.event;return n&&n.type==="popstate"?n===P1?!1:(P1=n,!0):(P1=null,!1)}var hh=typeof setTimeout=="function"?setTimeout:void 0,p4=typeof clearTimeout=="function"?clearTimeout:void 0,Ds=typeof Promise=="function"?Promise:void 0,y4=typeof queueMicrotask=="function"?queueMicrotask:typeof Ds<"u"?function(n){return Ds.resolve(null).then(n).catch(sp)}:hh;function sp(n){setTimeout(function(){throw n})}function Zi(n){return n==="head"}function rp(n,l){var u=l,s=0;do{var m=u.nextSibling;if(n.removeChild(u),m&&m.nodeType===8)if(u=m.data,u==="/$"||u==="/&"){if(s===0){n.removeChild(m),bf(l);return}s--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")s++;else if(u==="html")Os(n.ownerDocument.documentElement);else if(u==="head"){u=n.ownerDocument.head,Os(u);for(var g=u.firstChild;g;){var S=g.nextSibling,x=g.nodeName;g[du]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&g.rel.toLowerCase()==="stylesheet"||u.removeChild(g),g=S}}else u==="body"&&Os(n.ownerDocument.body);u=m}while(u);bf(l)}function zn(n,l){var u=n;n=0;do{var s=u.nextSibling;if(u.nodeType===1?l?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(l?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),s&&s.nodeType===8)if(u=s.data,u==="/$"){if(n===0)break;n--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||n++;u=s}while(u)}function mh(n){var l=n.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var u=l;switch(l=l.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":mh(u),M0(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}n.removeChild(u)}}function wb(n,l,u,s){for(;n.nodeType===1;){var m=u;if(n.nodeName.toLowerCase()!==l.toLowerCase()){if(!s&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(s){if(!n[du])switch(l){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(g=n.getAttribute("rel"),g==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(g!==m.rel||n.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||n.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||n.getAttribute("title")!==(m.title==null?null:m.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(g=n.getAttribute("src"),(g!==(m.src==null?null:m.src)||n.getAttribute("type")!==(m.type==null?null:m.type)||n.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&g&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(l==="input"&&n.type==="hidden"){var g=m.name==null?null:""+m.name;if(m.type==="hidden"&&n.getAttribute("name")===g)return n}else return n;if(n=al(n.nextSibling),n===null)break}return null}function We(n,l,u){if(l==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!u||(n=al(n.nextSibling),n===null))return null;return n}function v4(n,l){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!l||(n=al(n.nextSibling),n===null))return null;return n}function ui(n){return n.data==="$?"||n.data==="$~"}function xc(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function sf(n,l){var u=n.ownerDocument;if(n.data==="$~")n._reactRetry=l;else if(n.data!=="$?"||u.readyState!=="loading")l();else{var s=function(){l(),u.removeEventListener("DOMContentLoaded",s)};u.addEventListener("DOMContentLoaded",s),n._reactRetry=s}}function al(n){for(;n!=null;n=n.nextSibling){var l=n.nodeType;if(l===1||l===3)break;if(l===8){if(l=n.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return n}var gh=null;function e2(n){n=n.nextSibling;for(var l=0;n;){if(n.nodeType===8){var u=n.data;if(u==="/$"||u==="/&"){if(l===0)return al(n.nextSibling);l--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||l++}n=n.nextSibling}return null}function Ji(n){n=n.previousSibling;for(var l=0;n;){if(n.nodeType===8){var u=n.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(l===0)return n;l--}else u!=="/$"&&u!=="/&"||l++}n=n.previousSibling}return null}function rf(n,l,u){switch(l=_c(u),n){case"html":if(n=l.documentElement,!n)throw Error(h(452));return n;case"head":if(n=l.head,!n)throw Error(h(453));return n;case"body":if(n=l.body,!n)throw Error(h(454));return n;default:throw Error(h(451))}}function Os(n){for(var l=n.attributes;l.length;)n.removeAttributeNode(l[0]);M0(n)}var ml=new Map,ph=new Set;function Ba(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Ki=ee.d;ee.d={f:bb,r:w4,D:F,C:_t,L:Sb,m:fp,X:Co,S:dp,M:Mc};function bb(){var n=Ki.f(),l=ef();return n||l}function w4(n){var l=Xc(n);l!==null&&l.tag===5&&l.type==="form"?Lt(l):Ki.r(n)}var ff=typeof document>"u"?null:document;function Rn(n,l,u){var s=ff;if(s&&typeof l=="string"&&l){var m=Sl(l);m='link[rel="'+n+'"][href="'+m+'"]',typeof u=="string"&&(m+='[crossorigin="'+u+'"]'),ph.has(m)||(ph.add(m),n={rel:n,crossOrigin:u,href:l},s.querySelector(m)===null&&(l=s.createElement("link"),Ea(l,"link",n),Mt(l),s.head.appendChild(l)))}}function F(n){Ki.D(n),Rn("dns-prefetch",n,null)}function _t(n,l){Ki.C(n,l),Rn("preconnect",n,l)}function Sb(n,l,u){Ki.L(n,l,u);var s=ff;if(s&&n&&l){var m='link[rel="preload"][as="'+Sl(l)+'"]';l==="image"&&u&&u.imageSrcSet?(m+='[imagesrcset="'+Sl(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(m+='[imagesizes="'+Sl(u.imageSizes)+'"]')):m+='[href="'+Sl(n)+'"]';var g=m;switch(l){case"style":g=Hl(n);break;case"script":g=zs(n)}ml.has(g)||(n=N({rel:"preload",href:l==="image"&&u&&u.imageSrcSet?void 0:n,as:l},u),ml.set(g,n),s.querySelector(m)!==null||l==="style"&&s.querySelector(Cc(g))||l==="script"&&s.querySelector(mf(g))||(l=s.createElement("link"),Ea(l,"link",n),Mt(l),s.head.appendChild(l)))}}function fp(n,l){Ki.m(n,l);var u=ff;if(u&&n){var s=l&&typeof l.as=="string"?l.as:"script",m='link[rel="modulepreload"][as="'+Sl(s)+'"][href="'+Sl(n)+'"]',g=m;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=zs(n)}if(!ml.has(g)&&(n=N({rel:"modulepreload",href:n},l),ml.set(g,n),u.querySelector(m)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(mf(g)))return}s=u.createElement("link"),Ea(s,"link",n),Mt(s),u.head.appendChild(s)}}}function dp(n,l,u){Ki.S(n,l,u);var s=ff;if(s&&n){var m=Qc(s).hoistableStyles,g=Hl(n);l=l||"default";var S=m.get(g);if(!S){var x={loading:0,preload:null};if(S=s.querySelector(Cc(g)))x.loading=5;else{n=N({rel:"stylesheet",href:n,"data-precedence":l},u),(u=ml.get(g))&&t2(n,u);var z=S=s.createElement("link");Mt(z),Ea(z,"link",n),z._p=new Promise(function(Q,I){z.onload=Q,z.onerror=I}),z.addEventListener("load",function(){x.loading|=1}),z.addEventListener("error",function(){x.loading|=2}),x.loading|=4,yh(S,l,s)}S={type:"stylesheet",instance:S,count:1,state:x},m.set(g,S)}}}function Co(n,l){Ki.X(n,l);var u=ff;if(u&&n){var s=Qc(u).hoistableScripts,m=zs(n),g=s.get(m);g||(g=u.querySelector(mf(m)),g||(n=N({src:n,async:!0},l),(l=ml.get(m))&&n2(n,l),g=u.createElement("script"),Mt(g),Ea(g,"link",n),u.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},s.set(m,g))}}function Mc(n,l){Ki.M(n,l);var u=ff;if(u&&n){var s=Qc(u).hoistableScripts,m=zs(n),g=s.get(m);g||(g=u.querySelector(mf(m)),g||(n=N({src:n,async:!0,type:"module"},l),(l=ml.get(m))&&n2(n,l),g=u.createElement("script"),Mt(g),Ea(g,"link",n),u.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},s.set(m,g))}}function df(n,l,u,s){var m=(m=en.current)?Ba(m):null;if(!m)throw Error(h(446));switch(n){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(l=Hl(u.href),u=Qc(m).hoistableStyles,s=u.get(l),s||(s={type:"style",instance:null,count:0,state:null},u.set(l,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){n=Hl(u.href);var g=Qc(m).hoistableStyles,S=g.get(n);if(S||(m=m.ownerDocument||m,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(n,S),(g=m.querySelector(Cc(n)))&&!g._p&&(S.instance=g,S.state.loading=5),ml.has(n)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},ml.set(n,u),g||b4(m,n,u,S.state))),l&&s===null)throw Error(h(528,""));return S}if(l&&s!==null)throw Error(h(529,""));return null;case"script":return l=u.async,u=u.src,typeof u=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=zs(u),u=Qc(m).hoistableScripts,s=u.get(l),s||(s={type:"script",instance:null,count:0,state:null},u.set(l,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(h(444,n))}}function Hl(n){return'href="'+Sl(n)+'"'}function Cc(n){return'link[rel="stylesheet"]['+n+"]"}function hf(n){return N({},n,{"data-precedence":n.precedence,precedence:null})}function b4(n,l,u,s){n.querySelector('link[rel="preload"][as="style"]['+l+"]")?s.loading=1:(l=n.createElement("link"),s.preload=l,l.addEventListener("load",function(){return s.loading|=1}),l.addEventListener("error",function(){return s.loading|=2}),Ea(l,"link",u),Mt(l),n.head.appendChild(l))}function zs(n){return'[src="'+Sl(n)+'"]'}function mf(n){return"script[async]"+n}function hp(n,l,u){if(l.count++,l.instance===null)switch(l.type){case"style":var s=n.querySelector('style[data-href~="'+Sl(u.href)+'"]');if(s)return l.instance=s,Mt(s),s;var m=N({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return s=(n.ownerDocument||n).createElement("style"),Mt(s),Ea(s,"style",m),yh(s,u.precedence,n),l.instance=s;case"stylesheet":m=Hl(u.href);var g=n.querySelector(Cc(m));if(g)return l.state.loading|=4,l.instance=g,Mt(g),g;s=hf(u),(m=ml.get(m))&&t2(s,m),g=(n.ownerDocument||n).createElement("link"),Mt(g);var S=g;return S._p=new Promise(function(x,z){S.onload=x,S.onerror=z}),Ea(g,"link",s),l.state.loading|=4,yh(g,u.precedence,n),l.instance=g;case"script":return g=zs(u.src),(m=n.querySelector(mf(g)))?(l.instance=m,Mt(m),m):(s=u,(m=ml.get(g))&&(s=N({},u),n2(s,m)),n=n.ownerDocument||n,m=n.createElement("script"),Mt(m),Ea(m,"link",s),n.head.appendChild(m),l.instance=m);case"void":return null;default:throw Error(h(443,l.type))}else l.type==="stylesheet"&&!(l.state.loading&4)&&(s=l.instance,l.state.loading|=4,yh(s,u.precedence,n));return l.instance}function yh(n,l,u){for(var s=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=s.length?s[s.length-1]:null,g=m,S=0;S<s.length;S++){var x=s[S];if(x.dataset.precedence===l)g=x;else if(g!==m)break}g?g.parentNode.insertBefore(n,g.nextSibling):(l=u.nodeType===9?u.head:u,l.insertBefore(n,l.firstChild))}function t2(n,l){n.crossOrigin==null&&(n.crossOrigin=l.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=l.referrerPolicy),n.title==null&&(n.title=l.title)}function n2(n,l){n.crossOrigin==null&&(n.crossOrigin=l.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=l.referrerPolicy),n.integrity==null&&(n.integrity=l.integrity)}var gf=null;function mp(n,l,u){if(gf===null){var s=new Map,m=gf=new Map;m.set(u,s)}else m=gf,s=m.get(u),s||(s=new Map,m.set(u,s));if(s.has(n))return s;for(s.set(n,null),u=u.getElementsByTagName(n),m=0;m<u.length;m++){var g=u[m];if(!(g[du]||g[Ht]||n==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var S=g.getAttribute(l)||"";S=n+S;var x=s.get(S);x?x.push(g):s.set(S,[g])}}return s}function a2(n,l,u){n=n.ownerDocument||n,n.head.insertBefore(u,l==="title"?n.querySelector("head > title"):null)}function gp(n,l,u){if(u===1||l.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return n=l.disabled,typeof l.precedence=="string"&&n==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function gl(n){return!(n.type==="stylesheet"&&!(n.state.loading&3))}function ju(n,l,u,s){if(u.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&!(u.state.loading&4)){if(u.instance===null){var m=Hl(s.href),g=l.querySelector(Cc(m));if(g){l=g._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(n.count++,n=l2.bind(n),l.then(n,n)),u.state.loading|=4,u.instance=g,Mt(g);return}g=l.ownerDocument||l,s=hf(s),(m=ml.get(m))&&t2(s,m),g=g.createElement("link"),Mt(g);var S=g;S._p=new Promise(function(x,z){S.onload=x,S.onerror=z}),Ea(g,"link",s),u.instance=g}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(u,l),(l=u.state.preload)&&!(u.state.loading&3)&&(n.count++,u=l2.bind(n),l.addEventListener("load",u),l.addEventListener("error",u))}}var Ll=0;function pp(n,l){return n.stylesheets&&n.count===0&&u2(n,n.stylesheets),0<n.count||0<n.imgCount?function(u){var s=setTimeout(function(){if(n.stylesheets&&u2(n,n.stylesheets),n.unsuspend){var g=n.unsuspend;n.unsuspend=null,g()}},6e4+l);0<n.imgBytes&&Ll===0&&(Ll=62500*op());var m=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&u2(n,n.stylesheets),n.unsuspend)){var g=n.unsuspend;n.unsuspend=null,g()}},(n.imgBytes>Ll?50:800)+l);return n.unsuspend=u,function(){n.unsuspend=null,clearTimeout(s),clearTimeout(m)}}:null}function l2(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)u2(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var i2=null;function u2(n,l){n.stylesheets=null,n.unsuspend!==null&&(n.count++,i2=new Map,l.forEach(ca,n),i2=null,l2.call(n))}function ca(n,l){if(!(l.state.loading&4)){var u=i2.get(n);if(u)var s=u.get(null);else{u=new Map,i2.set(n,u);for(var m=n.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<m.length;g++){var S=m[g];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(u.set(S.dataset.precedence,S),s=S)}s&&u.set(null,s)}m=l.instance,S=m.getAttribute("data-precedence"),g=u.get(S)||s,g===s&&u.set(null,m),u.set(S,m),this.count++,s=l2.bind(this),m.addEventListener("load",s),m.addEventListener("error",s),g?g.parentNode.insertBefore(m,g.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(m,n.firstChild)),l.state.loading|=4}}var vh={$$typeof:be,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function yp(n,l,u,s,m,g,S,x,z){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=id(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=id(0),this.hiddenUpdates=id(null),this.identifierPrefix=s,this.onUncaughtError=m,this.onCaughtError=g,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.incompleteTransitions=new Map}function o2(n,l,u,s,m,g,S,x,z,Q,I,ae){return n=new yp(n,l,u,S,z,Q,I,ae,x),l=1,g===!0&&(l|=24),g=yn(3,null,null,l),n.current=g,g.stateNode=n,l=xd(),l.refCount++,n.pooledCache=l,l.refCount++,g.memoizedState={element:s,isDehydrated:u,cache:l},Ud(g),n}function Ns(n){return n?(n=Za,n):Za}function S4(n,l,u,s,m,g){m=Ns(m),s.context===null?s.context=m:s.pendingContext=m,s=vo(l),s.payload={element:u},g=g===void 0?null:g,g!==null&&(s.callback=g),u=Cl(n,s,l),u!==null&&(nl(u,n,l),dc(u,n,l))}function c2(n,l){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var u=n.retryLane;n.retryLane=u!==0&&u<l?u:l}}function vp(n,l){c2(n,l),(n=n.alternate)&&c2(n,l)}function E4(n){if(n.tag===13||n.tag===31){var l=ro(n,67108864);l!==null&&nl(l,n,67108864),vp(n,67108864)}}function Us(n){if(n.tag===13||n.tag===31){var l=hl();l=A0(l);var u=ro(n,l);u!==null&&nl(u,n,l),vp(n,l)}}var Zn=!0;function qu(n,l,u,s){var m=V.T;V.T=null;var g=ee.p;try{ee.p=2,Ta(n,l,u,s)}finally{ee.p=g,V.T=m}}function Vu(n,l,u,s){var m=V.T;V.T=null;var g=ee.p;try{ee.p=8,Ta(n,l,u,s)}finally{ee.p=g,V.T=m}}function Ta(n,l,u,s){if(Zn){var m=wp(s);if(m===null)tp(n,l,s,s2,u),Do(n,s);else if(Eb(m,n,l,u,s))s.stopPropagation();else if(Do(n,s),l&4&&-1<ll.indexOf(n)){for(;m!==null;){var g=Xc(m);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var S=Kl(g.pendingLanes);if(S!==0){var x=g;for(x.pendingLanes|=2,x.entangledLanes|=2;S;){var z=1<<31-ba(S);x.entanglements[1]|=z,S&=~z}Ru(g),!(vt&6)&&(At=Hn()+500,Mo(0))}}break;case 31:case 13:x=ro(g,2),x!==null&&nl(x,g,2),ef(),vp(g,2)}if(g=wp(s),g===null&&tp(n,l,s,s2,u),g===m)break;m=g}m!==null&&s.stopPropagation()}else tp(n,l,s,null,u)}}function wp(n){return n=B0(n),pf(n)}var s2=null;function pf(n){if(s2=null,n=kc(n),n!==null){var l=w(n);if(l===null)n=null;else{var u=l.tag;if(u===13){if(n=E(l),n!==null)return n;n=null}else if(u===31){if(n=A(l),n!==null)return n;n=null}else if(u===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;n=null}else l!==n&&(n=null)}}return s2=n,null}function wh(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(S0()){case cr:return 2;case sr:return 8;case su:case ym:return 32;case rr:return 268435456;default:return 32}default:return 32}}var yf=!1,Jn=null,Aa=null,Ha=null,Dc=new Map,oi=new Map,ln=[],ll="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Do(n,l){switch(n){case"focusin":case"focusout":Jn=null;break;case"dragenter":case"dragleave":Aa=null;break;case"mouseover":case"mouseout":Ha=null;break;case"pointerover":case"pointerout":Dc.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":oi.delete(l.pointerId)}}function Bs(n,l,u,s,m,g){return n===null||n.nativeEvent!==g?(n={blockedOn:l,domEventName:u,eventSystemFlags:s,nativeEvent:g,targetContainers:[m]},l!==null&&(l=Xc(l),l!==null&&E4(l)),n):(n.eventSystemFlags|=s,l=n.targetContainers,m!==null&&l.indexOf(m)===-1&&l.push(m),n)}function Eb(n,l,u,s,m){switch(l){case"focusin":return Jn=Bs(Jn,n,l,u,s,m),!0;case"dragenter":return Aa=Bs(Aa,n,l,u,s,m),!0;case"mouseover":return Ha=Bs(Ha,n,l,u,s,m),!0;case"pointerover":var g=m.pointerId;return Dc.set(g,Bs(Dc.get(g)||null,n,l,u,s,m)),!0;case"gotpointercapture":return g=m.pointerId,oi.set(g,Bs(oi.get(g)||null,n,l,u,s,m)),!0}return!1}function T4(n){var l=kc(n.target);if(l!==null){var u=w(l);if(u!==null){if(l=u.tag,l===13){if(l=E(u),l!==null){n.blockedOn=l,wm(n.priority,function(){Us(u)});return}}else if(l===31){if(l=A(u),l!==null){n.blockedOn=l,wm(n.priority,function(){Us(u)});return}}else if(l===3&&u.stateNode.current.memoizedState.isDehydrated){n.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}n.blockedOn=null}function bh(n){if(n.blockedOn!==null)return!1;for(var l=n.targetContainers;0<l.length;){var u=wp(n.nativeEvent);if(u===null){u=n.nativeEvent;var s=new u.constructor(u.type,u);U0=s,u.target.dispatchEvent(s),U0=null}else return l=Xc(u),l!==null&&E4(l),n.blockedOn=u,!1;l.shift()}return!0}function vf(n,l,u){bh(n)&&u.delete(l)}function A4(){yf=!1,Jn!==null&&bh(Jn)&&(Jn=null),Aa!==null&&bh(Aa)&&(Aa=null),Ha!==null&&bh(Ha)&&(Ha=null),Dc.forEach(vf),oi.forEach(vf)}function Yu(n,l){n.blockedOn===l&&(n.blockedOn=null,yf||(yf=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,A4)))}var wf=null;function _4(n){wf!==n&&(wf=n,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){wf===n&&(wf=null);for(var l=0;l<n.length;l+=3){var u=n[l],s=n[l+1],m=n[l+2];if(typeof s!="function"){if(pf(s||u)===null)continue;break}var g=Xc(u);g!==null&&(n.splice(l,3),l-=3,Vr(g,{pending:!0,data:m,method:u.method,action:s},s,m))}}))}function bf(n){function l(z){return Yu(z,n)}Jn!==null&&Yu(Jn,n),Aa!==null&&Yu(Aa,n),Ha!==null&&Yu(Ha,n),Dc.forEach(l),oi.forEach(l);for(var u=0;u<ln.length;u++){var s=ln[u];s.blockedOn===n&&(s.blockedOn=null)}for(;0<ln.length&&(u=ln[0],u.blockedOn===null);)T4(u),u.blockedOn===null&&ln.shift();if(u=(n.ownerDocument||n).$$reactFormReplay,u!=null)for(s=0;s<u.length;s+=3){var m=u[s],g=u[s+1],S=m[ka]||null;if(typeof g=="function")S||_4(u);else if(S){var x=null;if(g&&g.hasAttribute("formAction")){if(m=g,S=g[ka]||null)x=S.formAction;else if(pf(m)!==null)continue}else x=S.action;typeof x=="function"?u[s+1]=x:(u.splice(s,3),s-=3),_4(u)}}}function bp(){function n(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(S){return m=S})},focusReset:"manual",scroll:"manual"})}function l(){m!==null&&(m(),m=null),s||setTimeout(u,20)}function u(){if(!s&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,m=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(u,100),function(){s=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),m!==null&&(m(),m=null)}}}function r2(n){this._internalRoot=n}f2.prototype.render=r2.prototype.render=function(n){var l=this._internalRoot;if(l===null)throw Error(h(409));var u=l.current,s=hl();S4(u,s,n,l,null,null)},f2.prototype.unmount=r2.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var l=n.containerInfo;S4(n.current,2,null,n,null,null),ef(),l[Fo]=null}};function f2(n){this._internalRoot=n}f2.prototype.unstable_scheduleHydration=function(n){if(n){var l=_0();n={blockedOn:null,target:n,priority:l};for(var u=0;u<ln.length&&l!==0&&l<ln[u].priority;u++);ln.splice(u,0,n),u===0&&T4(n)}};var Sp=c.version;if(Sp!=="19.2.0")throw Error(h(527,Sp,"19.2.0"));ee.findDOMNode=function(n){var l=n._reactInternals;if(l===void 0)throw typeof n.render=="function"?Error(h(188)):(n=Object.keys(n).join(","),Error(h(268,n)));return n=G(l),n=n!==null?U(n):null,n=n===null?null:n.stateNode,n};var x4={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Sh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sh.isDisabled&&Sh.supportsFiber)try{sn=Sh.inject(x4),_n=Sh}catch{}}return gm.createRoot=function(n,l){if(!y(n))throw Error(h(299));var u=!1,s="",m=E1,g=Eg,S=T1;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(s=l.identifierPrefix),l.onUncaughtError!==void 0&&(m=l.onUncaughtError),l.onCaughtError!==void 0&&(g=l.onCaughtError),l.onRecoverableError!==void 0&&(S=l.onRecoverableError)),l=o2(n,1,!1,null,null,u,s,null,m,g,S,bp),n[Fo]=l.current,of(n),new r2(l)},gm.hydrateRoot=function(n,l,u){if(!y(n))throw Error(h(299));var s=!1,m="",g=E1,S=Eg,x=T1,z=null;return u!=null&&(u.unstable_strictMode===!0&&(s=!0),u.identifierPrefix!==void 0&&(m=u.identifierPrefix),u.onUncaughtError!==void 0&&(g=u.onUncaughtError),u.onCaughtError!==void 0&&(S=u.onCaughtError),u.onRecoverableError!==void 0&&(x=u.onRecoverableError),u.formState!==void 0&&(z=u.formState)),l=o2(n,1,!0,l,u??null,s,m,z,g,S,x,bp),l.context=Ns(null),u=l.current,s=hl(),s=A0(s),m=vo(s),m.callback=null,Cl(u,m,s),u=s,l.current.lanes=u,dr(l,u),Ru(l),n[Fo]=l.current,of(n),new f2(l)},gm.version="19.2.0",gm}var pm={};/**
107
- * @license React
108
- * react-dom-client.development.js
109
- *
110
- * Copyright (c) Meta Platforms, Inc. and affiliates.
111
- *
112
- * This source code is licensed under the MIT license found in the
113
- * LICENSE file in the root directory of this source tree.
114
- */var u7;function M_(){return u7||(u7=1,process.env.NODE_ENV!=="production"&&function(){function i(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function c(e,t,a,o){if(a>=t.length)return o;var r=t[a],d=Rn(e)?e.slice():We({},e);return d[r]=c(e[r],t,a+1,o),d}function f(e,t,a){if(t.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var o=0;o<a.length-1;o++)if(t[o]!==a[o]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return h(e,t,a,0)}}function h(e,t,a,o){var r=t[o],d=Rn(e)?e.slice():We({},e);return o+1===t.length?(d[a[o]]=d[r],Rn(d)?d.splice(r,1):delete d[r]):d[r]=h(e[r],t,a,o+1),d}function y(e,t,a){var o=t[a],r=Rn(e)?e.slice():We({},e);return a+1===t.length?(Rn(r)?r.splice(o,1):delete r[o],r):(r[o]=y(e[o],t,a+1),r)}function w(){return!1}function E(){return null}function A(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function M(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function G(){}function U(){}function N(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function q(e,t,a,o){return new mb(e,t,a,o)}function k(e,t){e.context===Af&&(F1(e.current,2,t,e,null,null),Ul())}function ne(e,t){if(Qu!==null){var a=t.staleFamilies;t=t.updatedFamilies,Wd(),y3(e.current,t,a),Ul()}}function oe(e){Qu=e}function ue(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function P(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function ye(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function be(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Te(e){if(P(e)!==e)throw Error("Unable to find node on an unmounted component.")}function nt(e){var t=e.alternate;if(!t){if(t=P(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var a=e,o=t;;){var r=a.return;if(r===null)break;var d=r.alternate;if(d===null){if(o=r.return,o!==null){a=o;continue}break}if(r.child===d.child){for(d=r.child;d;){if(d===a)return Te(r),e;if(d===o)return Te(r),t;d=d.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==o.return)a=r,o=d;else{for(var p=!1,v=r.child;v;){if(v===a){p=!0,a=r,o=d;break}if(v===o){p=!0,o=r,a=d;break}v=v.sibling}if(!p){for(v=d.child;v;){if(v===a){p=!0,a=d,o=r;break}if(v===o){p=!0,o=d,a=r;break}v=v.sibling}if(!p)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==o)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==3)throw Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function Be(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Be(e),t!==null)return t;e=e.sibling}return null}function Qe(e){return e===null||typeof e!="object"?null:(e=w4&&e[w4]||e["@@iterator"],typeof e=="function"?e:null)}function xe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ff?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case sf:return"Fragment";case gh:return"Profiler";case al:return"StrictMode";case Os:return"Suspense";case ml:return"SuspenseList";case Ki:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case xc:return"Portal";case Ji:return e.displayName||"Context";case e2:return(e._context.displayName||"Context")+".Consumer";case rf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ph:return t=e.displayName||null,t!==null?t:xe(e.type)||"Memo";case Ba:t=e._payload,e=e._init;try{return xe(e(t))}catch{}}return null}function me(e){return typeof e.tag=="number"?ce(e):typeof e.name=="string"?e.name:null}function ce(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xe(t);case 8:return t===al?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var a=t.length-1;0<=a;a--)if(typeof t[a].name=="string")return t[a].name}if(e.return!==null)return ce(e.return)}return null}function Ut(e){return{current:e}}function ke(e,t){0>Co?console.error("Unexpected pop."):(t!==dp[Co]&&console.error("Unexpected Fiber popped."),e.current=fp[Co],fp[Co]=null,dp[Co]=null,Co--)}function He(e,t,a){Co++,fp[Co]=e.current,dp[Co]=a,e.current=t}function Ft(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function $t(e,t){He(Hl,t,e),He(df,e,e),He(Mc,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?Z3(t):Ks;break;default:if(a=t.tagName,t=t.namespaceURI)t=Z3(t),t=_o(t,a);else switch(a){case"svg":t=V2;break;case"math":t=yv;break;default:t=Ks}}a=a.toLowerCase(),a=Tm(null,a),a={context:t,ancestorInfo:a},ke(Mc,e),He(Mc,a,e)}function V(e){ke(Mc,e),ke(df,e),ke(Hl,e)}function ee(){return Ft(Mc.current)}function ie(e){e.memoizedState!==null&&He(Cc,e,e);var t=Ft(Mc.current),a=e.type,o=_o(t.context,a);a=Tm(t.ancestorInfo,a),o={context:o,ancestorInfo:a},t!==o&&(He(df,e,e),He(Mc,o,e))}function ve(e){df.current===e&&(ke(Mc,e),ke(df,e)),Cc.current===e&&(ke(Cc,e),ry._currentValue=Xh)}function Ce(){}function Et(){if(hf===0){b4=console.log,zs=console.info,mf=console.warn,hp=console.error,yh=console.group,t2=console.groupCollapsed,n2=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ce,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}hf++}function st(){if(hf--,hf===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:We({},e,{value:b4}),info:We({},e,{value:zs}),warn:We({},e,{value:mf}),error:We({},e,{value:hp}),group:We({},e,{value:yh}),groupCollapsed:We({},e,{value:t2}),groupEnd:We({},e,{value:n2})})}0>hf&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Xe(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
115
- `)&&(e=e.slice(29)),t=e.indexOf(`
116
- `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
117
- `,t)),t!==-1)e=e.slice(0,t);else return"";return e}function Ze(e){if(gf===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);gf=t&&t[1]||"",mp=-1<a.stack.indexOf(`
118
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
119
- `+gf+e+mp}function Bt(e,t){if(!e||a2)return"";var a=gp.get(e);if(a!==void 0)return a;a2=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var o=null;o=F.H,F.H=null,Et();try{var r={DetermineComponentFrameRoot:function(){try{if(t){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(se){var J=se}Reflect.construct(e,[],D)}else{try{D.call()}catch(se){J=se}e.call(D.prototype)}}else{try{throw Error()}catch(se){J=se}(D=e())&&typeof D.catch=="function"&&D.catch(function(){})}}catch(se){if(se&&J&&typeof se.stack=="string")return[se.stack,J.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=r.DetermineComponentFrameRoot(),v=p[0],T=p[1];if(v&&T){var _=v.split(`
120
- `),H=T.split(`
121
- `);for(p=d=0;d<_.length&&!_[d].includes("DetermineComponentFrameRoot");)d++;for(;p<H.length&&!H[p].includes("DetermineComponentFrameRoot");)p++;if(d===_.length||p===H.length)for(d=_.length-1,p=H.length-1;1<=d&&0<=p&&_[d]!==H[p];)p--;for(;1<=d&&0<=p;d--,p--)if(_[d]!==H[p]){if(d!==1||p!==1)do if(d--,p--,0>p||_[d]!==H[p]){var R=`
122
- `+_[d].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),typeof e=="function"&&gp.set(e,R),R}while(1<=d&&0<=p);break}}}finally{a2=!1,F.H=o,st(),Error.prepareStackTrace=a}return _=(_=e?e.displayName||e.name:"")?Ze(_):"",typeof e=="function"&&gp.set(e,_),_}function en(e,t){switch(e.tag){case 26:case 27:case 5:return Ze(e.type);case 16:return Ze("Lazy");case 13:return e.child!==t&&t!==null?Ze("Suspense Fallback"):Ze("Suspense");case 19:return Ze("SuspenseList");case 0:case 15:return Bt(e.type,!1);case 11:return Bt(e.type.render,!1);case 1:return Bt(e.type,!0);case 31:return Ze("Activity");default:return""}}function Pn(e){try{var t="",a=null;do{t+=en(e,a);var o=e._debugInfo;if(o)for(var r=o.length-1;0<=r;r--){var d=o[r];if(typeof d.name=="string"){var p=t;e:{var v=d.name,T=d.env,_=d.debugLocation;if(_!=null){var H=Xe(_),R=H.lastIndexOf(`
123
- `),D=R===-1?H:H.slice(R+1);if(D.indexOf(v)!==-1){var J=`
124
- `+D;break e}}J=Ze(v+(T?" ["+T+"]":""))}t=p+J}}a=e,e=e.return}while(e);return t}catch(se){return`
125
- Error generating stack: `+se.message+`
126
- `+se.stack}}function Vt(e){return(e=e?e.displayName||e.name:"")?Ze(e):""}function ea(){if(gl===null)return null;var e=gl._debugOwner;return e!=null?me(e):null}function cu(){if(gl===null)return"";var e=gl;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=Ze(e.type);break;case 13:t+=Ze("Suspense");break;case 19:t+=Ze("SuspenseList");break;case 31:t+=Ze("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=Vt(e.type));break;case 11:e._debugOwner||t!==""||(t+=Vt(e.type.render))}for(;e;)if(typeof e.tag=="number"){var a=e;e=a._debugOwner;var o=a._debugStack;if(e&&o){var r=Xe(o);r!==""&&(t+=`
127
- `+r)}}else if(e.debugStack!=null){var d=e.debugStack;(e=e.owner)&&d&&(t+=`
128
- `+Xe(d))}else break;var p=t}catch(v){p=`
129
- Error generating stack: `+v.message+`
130
- `+v.stack}return p}function fe(e,t,a,o,r,d,p){var v=gl;Ti(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,o,r,d,p)):t(a,o,r,d,p)}finally{Ti(v)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Ti(e){F.getCurrentStack=e===null?null:cu,ju=!1,gl=e}function io(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Va(e){try{return Ya(e),!1}catch{return!0}}function Ya(e){return""+e}function dt(e,t){if(Va(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,io(e)),Ya(e)}function Zo(e,t){if(Va(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,io(e)),Ya(e)}function Re(e){if(Va(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",io(e)),Ya(e)}function kt(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Us=t.inject(e),Zn=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return!!t.checkDCE}function ht(e){if(typeof vp=="function"&&E4(e),Zn&&typeof Zn.setStrictMode=="function")try{Zn.setStrictMode(Us,e)}catch(t){qu||(qu=!0,console.error("React instrumentation encountered an error: %o",t))}}function Jo(e){return e>>>=0,e===0?32:31-(wp(e)/s2|0)|0}function Ql(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function Vc(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var r=0,d=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var v=o&134217727;return v!==0?(o=v&~d,o!==0?r=Ql(o):(p&=v,p!==0?r=Ql(p):a||(a=v&~e,a!==0&&(r=Ql(a))))):(v=o&~d,v!==0?r=Ql(v):p!==0?r=Ql(p):a||(a=o&~e,a!==0&&(r=Ql(a)))),r===0?0:t!==0&&t!==r&&!(t&d)&&(d=r&-r,a=t&-t,d>=a||d===32&&(a&4194048)!==0)?t:r}function Hn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function S0(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function cr(){var e=yf;return yf<<=1,!(yf&62914560)&&(yf=4194304),e}function sr(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function su(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ym(e,t,a,o,r,d){var p=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var v=e.entanglements,T=e.expirationTimes,_=e.hiddenUpdates;for(a=p&~a;0<a;){var H=31-Ta(a),R=1<<H;v[H]=0,T[H]=-1;var D=_[H];if(D!==null)for(_[H]=null,H=0;H<D.length;H++){var J=D[H];J!==null&&(J.lane&=-536870913)}a&=~R}o!==0&&rr(e,o,0),d!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=d&~(p&~t))}function rr(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Ta(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function wa(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-Ta(a),r=1<<o;r&t|e[o]&t&&(e[o]|=t),a&=~r}}function Ko(e,t){var a=t&-t;return a=a&42?1:sn(a),a&(e.suspendedLanes|t)?0:a}function sn(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function _n(e,t,a){if(Vu)for(e=e.pendingUpdatersLaneMap;0<a;){var o=31-Ta(a),r=1<<o;e[o].add(t),a&=~r}}function ol(e,t){if(Vu)for(var a=e.pendingUpdatersLaneMap,o=e.memoizedUpdaters;0<t;){var r=31-Ta(t);e=1<<r,r=a[r],0<r.size&&(r.forEach(function(d){var p=d.alternate;p!==null&&o.has(p)||o.add(d)}),r.clear()),t&=~e}}function ba(e){return e&=-e,Jn<e?Aa<e?e&134217727?Ha:Dc:Aa:Jn}function E0(){var e=_t.p;return e!==0?e:(e=window.event,e===void 0?Ha:I1(e.type))}function ru(e,t){var a=_t.p;try{return _t.p=e,t()}finally{_t.p=a}}function Zl(e){delete e[ln],delete e[ll],delete e[Bs],delete e[Eb],delete e[T4]}function Ai(e){var t=e[ln];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Do]||a[ln]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=xs(e);e!==null;){if(a=e[ln])return a;e=xs(e)}return t}e=a,a=e.parentNode}return null}function vl(e){if(e=e[ln]||e[Do]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Jl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Kl(e){var t=e[bh];return t||(t=e[bh]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function xn(e){e[vf]=!0}function _i(e,t){fr(e,t),fr(e+"Capture",t)}function fr(e,t){Yu[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Yu[e]=t;var a=e.toLowerCase();for(wf[a]=e,e==="onDoubleClick"&&(wf.ondblclick=e),e=0;e<t.length;e++)A4.add(t[e])}function Yc(e,t){_4[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function id(e){return Ll.call(r2,e)?!0:Ll.call(bp,e)?!1:bf.test(e)?r2[e]=!0:(bp[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function dr(e,t,a){if(id(t)){if(!e.hasAttribute(t)){switch(typeof a){case"symbol":case"object":return a;case"function":return a;case"boolean":if(a===!1)return a}return a===void 0?void 0:null}return e=e.getAttribute(t),e===""&&a===!0?!0:(dt(a,t),e===""+a?a:e)}}function T0(e,t,a){if(id(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}dt(a,t),e.setAttribute(t,""+a)}}function ud(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}dt(a,t),e.setAttribute(t,""+a)}}function fu(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}dt(o,a),e.setAttributeNS(t,a,""+o)}}function wl(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Re(e),e;default:return""}}function A0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vm(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var r=o.get,d=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(p){Re(p),a=""+p,d.call(this,p)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(p){Re(p),a=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _0(e){if(!e._valueTracker){var t=A0(e)?"checked":"value";e._valueTracker=vm(e,t,""+e[t])}}function wm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=A0(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function xi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ht(e){return e.replace(f2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ka(e,t){t.checked===void 0||t.defaultChecked===void 0||x4||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",ea()||"A component",t.type),x4=!0),t.value===void 0||t.defaultValue===void 0||Sp||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",ea()||"A component",t.type),Sp=!0)}function Fo(e,t,a,o,r,d,p,v){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?(dt(p,"type"),e.type=p):e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+wl(t)):e.value!==""+wl(t)&&(e.value=""+wl(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?bm(e,p,wl(t)):a!=null?bm(e,p,wl(a)):o!=null&&e.removeAttribute("value"),r==null&&d!=null&&(e.defaultChecked=!!d),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?(dt(v,"name"),e.name=""+wl(v)):e.removeAttribute("name")}function x0(e,t,a,o,r,d,p,v){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(dt(d,"type"),e.type=d),t!=null||a!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){_0(e);return}a=a!=null?""+wl(a):"",t=t!=null?""+wl(t):a,v||t===e.value||(e.value=t),e.defaultValue=t}o=o??r,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=v?e.checked:!!o,e.defaultChecked=!!o,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(dt(p,"name"),e.name=p),_0(e)}function bm(e,t,a){t==="number"&&xi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function a3(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?mh.Children.forEach(t.children,function(a){a==null||typeof a=="string"||typeof a=="number"||typeof a=="bigint"||n||(n=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||l||(l=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||Sh||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Sh=!0)}function Sm(){var e=ea();return e?`
131
-
132
- Check the render method of \``+e+"`.":""}function du(e,t,a,o){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&o&&(e[a].defaultSelected=!0)}else{for(a=""+wl(a),t=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,o&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function M0(e,t){for(e=0;e<s.length;e++){var a=s[e];if(t[a]!=null){var o=Rn(t[a]);t.multiple&&!o?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,Sm()):!t.multiple&&o&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,Sm())}}t.value===void 0||t.defaultValue===void 0||u||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),u=!0)}function kc(e,t){t.value===void 0||t.defaultValue===void 0||m||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",ea()||"A component"),m=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Xc(e,t,a){if(t!=null&&(t=""+wl(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+wl(a):""}function hr(e,t,a,o){if(t==null){if(o!=null){if(a!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Rn(o)){if(1<o.length)throw Error("<textarea> can only have at most one child.");o=o[0]}a=o}a==null&&(a=""),t=a}a=wl(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),_0(e)}function Qc(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Qc(e.children[0],t):e}function Mt(e){return" "+" ".repeat(e)}function Zc(e){return"+ "+" ".repeat(e)}function $o(e){return"- "+" ".repeat(e)}function Io(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function hu(e,t){return g.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function C0(e,t,a){var o=120-2*a;if(t===null)return Zc(a)+hu(e,o)+`
133
- `;if(typeof t=="string"){for(var r=0;r<t.length&&r<e.length&&t.charCodeAt(r)===e.charCodeAt(r);r++);return r>o-8&&10<r&&(e="..."+e.slice(r-8),t="..."+t.slice(r-8)),Zc(a)+hu(e,o)+`
134
- `+$o(a)+hu(t,o)+`
135
- `}return Mt(a)+hu(e,o)+`
136
- `}function D0(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,a){return a})}function mr(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(Rn(e))return"[...]";if(e.$$typeof===ui)return(t=xe(e.type))?"<"+t+">":"<...>";var a=D0(e);if(a==="Object"){a="",t-=2;for(var o in e)if(e.hasOwnProperty(o)){var r=JSON.stringify(o);if(r!=='"'+o+'"'&&(o=r),t-=o.length-2,r=mr(e[o],15>t?t:15),t-=r.length,0>t){a+=a===""?"...":", ...";break}a+=(a===""?"":",")+o+":"+r}return"{"+a+"}"}return a;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function gr(e,t){return typeof e!="string"||g.test(e)?"{"+mr(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function pr(e,t,a){var o=120-a.length-e.length,r=[],d;for(d in t)if(t.hasOwnProperty(d)&&d!=="children"){var p=gr(t[d],120-a.length-d.length-1);o-=d.length+p.length+2,r.push(d+"="+p)}return r.length===0?a+"<"+e+`>
137
- `:0<o?a+"<"+e+" "+r.join(" ")+`>
138
- `:a+"<"+e+`
139
- `+a+" "+r.join(`
140
- `+a+" ")+`
141
- `+a+`>
142
- `}function O0(e,t,a){var o="",r=We({},t),d;for(d in e)if(e.hasOwnProperty(d)){delete r[d];var p=120-2*a-d.length-2,v=mr(e[d],p);t.hasOwnProperty(d)?(p=mr(t[d],p),o+=Zc(a)+d+": "+v+`
143
- `,o+=$o(a)+d+": "+p+`
144
- `):o+=Zc(a)+d+": "+v+`
145
- `}for(var T in r)r.hasOwnProperty(T)&&(e=mr(r[T],120-2*a-T.length-2),o+=$o(a)+T+": "+e+`
146
- `);return o}function uo(e,t,a,o){var r="",d=new Map;for(_ in a)a.hasOwnProperty(_)&&d.set(_.toLowerCase(),_);if(d.size===1&&d.has("children"))r+=pr(e,t,Mt(o));else{for(var p in t)if(t.hasOwnProperty(p)&&p!=="children"){var v=120-2*(o+1)-p.length-1,T=d.get(p.toLowerCase());if(T!==void 0){d.delete(p.toLowerCase());var _=t[p];T=a[T];var H=gr(_,v);v=gr(T,v),typeof _=="object"&&_!==null&&typeof T=="object"&&T!==null&&D0(_)==="Object"&&D0(T)==="Object"&&(2<Object.keys(_).length||2<Object.keys(T).length||-1<H.indexOf("...")||-1<v.indexOf("..."))?r+=Mt(o+1)+p+`={{
147
- `+O0(_,T,o+2)+Mt(o+1)+`}}
148
- `:(r+=Zc(o+1)+p+"="+H+`
149
- `,r+=$o(o+1)+p+"="+v+`
150
- `)}else r+=Mt(o+1)+p+"="+gr(t[p],v)+`
151
- `}d.forEach(function(R){if(R!=="children"){var D=120-2*(o+1)-R.length-1;r+=$o(o+1)+R+"="+gr(a[R],D)+`
152
- `}}),r=r===""?Mt(o)+"<"+e+`>
153
- `:Mt(o)+"<"+e+`
154
- `+r+Mt(o)+`>
155
- `}return e=a.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(d="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(d=""+t),r+=C0(d,""+e,o+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(r=e==null?r+C0(""+t,null,o+1):r+C0(""+t,void 0,o+1)),r}function bl(e,t){var a=Io(e);if(a===null){for(a="",e=e.child;e;)a+=bl(e,t),e=e.sibling;return a}return Mt(t)+"<"+a+`>
156
- `}function z0(e,t){var a=Qc(e,t);if(a!==e&&(e.children.length!==1||e.children[0]!==a))return Mt(t)+`...
157
- `+z0(a,t+1);a="";var o=e.fiber._debugInfo;if(o)for(var r=0;r<o.length;r++){var d=o[r].name;typeof d=="string"&&(a+=Mt(t)+"<"+d+`>
158
- `,t++)}if(o="",r=e.fiber.pendingProps,e.fiber.tag===6)o=C0(r,e.serverProps,t),t++;else if(d=Io(e.fiber),d!==null)if(e.serverProps===void 0){o=t;var p=120-2*o-d.length-2,v="";for(_ in r)if(r.hasOwnProperty(_)&&_!=="children"){var T=gr(r[_],15);if(p-=_.length+T.length+2,0>p){v+=" ...";break}v+=" "+_+"="+T}o=Mt(o)+"<"+d+v+`>
159
- `,t++}else e.serverProps===null?(o=pr(d,r,Zc(t)),t++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(o=uo(d,r,e.serverProps,t),t++);var _="";for(r=e.fiber.child,d=0;r&&d<e.children.length;)p=e.children[d],p.fiber===r?(_+=z0(p,t),d++):_+=bl(r,t),r=r.sibling;for(r&&0<e.children.length&&(_+=Mt(t)+`...
160
- `),r=e.serverTail,e.serverProps===null&&t--,e=0;e<r.length;e++)d=r[e],_=typeof d=="string"?_+($o(t)+hu(d,120-2*t)+`
161
- `):_+pr(d.type,d.props,$o(t));return a+o+_}function Em(e){try{return`
162
-
163
- `+z0(e,0)}catch{return""}}function N0(e,t,a){for(var o=t,r=null,d=0;o;)o===e&&(d=0),r={fiber:o,children:r!==null?[r]:[],serverProps:o===t?a:o===e?null:void 0,serverTail:[],distanceFromLeaf:d},d++,o=o.return;return r!==null?Em(r).replaceAll(/^[+-]/gm,">"):""}function Tm(e,t){var a=We({},e||I),o={tag:t};return x.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),z.indexOf(t)!==-1&&(a.pTagInButtonScope=null),S.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(a.listItemTagAutoclosing=null,a.dlItemTagAutoclosing=null),a.current=o,t==="form"&&(a.formTag=o),t==="a"&&(a.aTagInScope=o),t==="button"&&(a.buttonTagInScope=o),t==="nobr"&&(a.nobrTagInScope=o),t==="p"&&(a.pTagInButtonScope=o),t==="li"&&(a.listItemTagAutoclosing=o),(t==="dd"||t==="dt")&&(a.dlItemTagAutoclosing=o),t==="#document"||t==="html"?a.containerTagInScope=null:a.containerTagInScope||(a.containerTagInScope=o),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?a.implicitRootScope===!0&&(a.implicitRootScope=!1):a.implicitRootScope=!0,a}function od(e,t,a){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(a)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!a)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return Q.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return a||t===null;case"html":return a&&t==="#document"||t===null;case"body":return a&&(t==="#document"||t==="html")||t===null}return!0}function cb(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function Sl(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function cd(e,t){t=t||I;var a=t.current;if(t=(a=od(e,a&&a.tag,t.implicitRootScope)?null:a)?null:cb(e,t),t=a||t,!t)return!0;var o=t.tag;if(t=String(!!a)+"|"+e+"|"+o,ae[t])return!1;ae[t]=!0;var r=(t=gl)?Sl(t.return,o):null,d=t!==null&&r!==null?N0(r,t,null):"",p="<"+e+">";return a?(a="",o==="table"&&e==="tr"&&(a+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
164
- This will cause a hydration error.%s`,p,o,a,d)):console.error(`In HTML, %s cannot be a descendant of <%s>.
165
- This will cause a hydration error.%s`,p,o,d),t&&(e=t.return,r===null||e===null||r===e&&e._debugOwner===t._debugOwner||fe(r,function(){console.error(`<%s> cannot contain a nested %s.
166
- See this log for the ancestor stack trace.`,o,p)})),!1}function sd(e,t,a){if(a||od("#text",t,!1))return!0;if(a="#text|"+t,ae[a])return!1;ae[a]=!0;var o=(a=gl)?Sl(a,t):null;return a=a!==null&&o!==null?N0(o,a,a.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
167
- This will cause a hydration error.%s`,t,a):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
168
- This will cause a hydration error.%s`,t,a),!1}function Jc(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function yr(e){return e.replace(Y,function(t,a){return a.toUpperCase()})}function Am(e,t,a){var o=t.indexOf("--")===0;o||(-1<t.indexOf("-")?X.hasOwnProperty(t)&&X[t]||(X[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,yr(t.replace(jt,"ms-")))):ze.test(t)?X.hasOwnProperty(t)&&X[t]||(X[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!L.test(a)||te.hasOwnProperty(a)&&te[a]||(te[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(L,""))),typeof a=="number"&&(isNaN(a)?Ae||(Ae=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||gt||(gt=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),a==null||typeof a=="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!="number"||a===0||pe.has(t)?t==="float"?e.cssFloat=a:(Zo(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function _m(e,t,a){if(t!=null&&typeof t!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,a!=null){if(t){var o={};if(a){for(var r in a)if(a.hasOwnProperty(r)&&!t.hasOwnProperty(r))for(var d=Z[r]||[r],p=0;p<d.length;p++)o[d[p]]=r}for(var v in t)if(t.hasOwnProperty(v)&&(!a||a[v]!==t[v]))for(r=Z[v]||[v],d=0;d<r.length;d++)o[r[d]]=v;v={};for(var T in t)for(r=Z[T]||[T],d=0;d<r.length;d++)v[r[d]]=T;T={};for(var _ in o)if(r=o[_],(d=v[_])&&r!==d&&(p=r+","+d,!T[p])){T[p]=!0,p=console;var H=t[r];p.error.call(p,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",H==null||typeof H=="boolean"||H===""?"Removing":"Updating",r,d)}}for(var R in a)!a.hasOwnProperty(R)||t!=null&&t.hasOwnProperty(R)||(R.indexOf("--")===0?e.setProperty(R,""):R==="float"?e.cssFloat="":e[R]="");for(var D in t)_=t[D],t.hasOwnProperty(D)&&a[D]!==_&&Am(e,D,_)}else for(o in t)t.hasOwnProperty(o)&&Am(e,o,t[o])}function mu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function l3(e){return wt.get(e)||e}function i3(e,t){if(Ll.call(d2,t)&&d2[t])return!0;if(ox.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=M4.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),d2[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),d2[t]=!0}if(ux.test(t)){if(e=t.toLowerCase(),e=M4.hasOwnProperty(e)?e:null,e==null)return d2[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),d2[t]=!0)}return!0}function u3(e,t){var a=[],o;for(o in t)i3(e,o)||a.push(o);t=a.map(function(r){return"`"+r+"`"}).join(", "),a.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<a.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function xm(e,t,a,o){if(Ll.call(Gl,t)&&Gl[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Gl[t]=!0;if(typeof a=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(o!=null){if(e=o.possibleRegistrationNames,o.registrationNameDependencies.hasOwnProperty(t))return!0;if(o=e.hasOwnProperty(r)?e[r]:null,o!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,o),Gl[t]=!0;if(m7.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Gl[t]=!0}else if(m7.test(t))return cx.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Gl[t]=!0;if(sx.test(t)||rx.test(t))return!0;if(r==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Gl[t]=!0;if(r==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Gl[t]=!0;if(r==="is"&&a!==null&&a!==void 0&&typeof a!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof a),Gl[t]=!0;if(typeof a=="number"&&isNaN(a))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Gl[t]=!0;if(Fi.hasOwnProperty(r)){if(r=Fi[r],r!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,r),Gl[t]=!0}else if(t!==r)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,r),Gl[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof a){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return r=t.toLowerCase().slice(0,5),r==="data-"||r==="aria-"?!0:(a?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',a,t,t,a,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',a,t,t,a,t,t,t),Gl[t]=!0)}case"function":case"symbol":return Gl[t]=!0,!1;case"string":if(a==="false"||a==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",a,t,a==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,a),Gl[t]=!0}}return!0}function sb(e,t,a){var o=[],r;for(r in t)xm(e,r,t[r],a)||o.push(r);t=o.map(function(d){return"`"+d+"`"}).join(", "),o.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<o.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function rd(e){return fx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Fl(){}function Mi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function U0(e){var t=vl(e);if(t&&(e=t.stateNode)){var a=e[ll]||null;e:switch(e=t.stateNode,t.type){case"input":if(Fo(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(dt(t,"name"),a=a.querySelectorAll('input[name="'+Ht(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var r=o[ll]||null;if(!r)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Fo(o,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&wm(o)}break e;case"textarea":Xc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&du(e,!!a.multiple,t,!1)}}}function B0(e,t,a){if(Tb)return e(t,a);Tb=!0;try{var o=e(t);return o}finally{if(Tb=!1,(h2!==null||m2!==null)&&(Ul(),h2&&(t=h2,e=m2,m2=h2=null,U0(t),e)))for(t=0;t<e.length;t++)U0(e[t])}}function gu(e,t){var a=e.stateNode;if(a===null)return null;var o=a[ll]||null;if(o===null)return null;a=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}function Kc(){if(C4)return C4;var e,t=_b,a=t.length,o,r="value"in Sf?Sf.value:Sf.textContent,d=r.length;for(e=0;e<a&&t[e]===r[e];e++);var p=a-e;for(o=1;o<=p&&t[a-o]===r[d-o];o++);return C4=r.slice(e,1<o?1-o:void 0)}function fd(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vr(){return!0}function Mm(){return!1}function ta(e){function t(a,o,r,d,p){this._reactName=a,this._targetInst=r,this.type=o,this.nativeEvent=d,this.target=p,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(a=e[v],this[v]=a?a(d):d[v]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?vr:Mm,this.isPropagationStopped=Mm,this}return We(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=vr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=vr)},persist:function(){},isPersistent:vr}),t}function oo(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ax[e])?!!t[e]:!1}function dd(){return oo}function wr(e,t){switch(e){case"keyup":return Lx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==v7;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function co(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function Cm(e,t){switch(e){case"compositionend":return co(t);case"keypress":return t.which!==b7?null:(E7=!0,S7);case"textInput":return e=t.data,e===S7&&E7?null:e;default:return null}}function H0(e,t){if(g2)return e==="compositionend"||!Db&&wr(e,t)?(e=Kc(),C4=_b=Sf=null,g2=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return w7&&t.locale!=="ko"?null:t.data;default:return null}}function Dm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Rx[e.type]:t==="textarea"}function L0(e){if(!Oc)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function hd(e,t,a,o){h2?m2?m2.push(o):m2=[o]:h2=o,t=Xi(t,"onChange"),0<t.length&&(a=new D4("onChange","change",null,a,o),e.push({event:a,listeners:t}))}function o3(e){Ot(e,0)}function Sa(e){var t=Jl(e);if(wm(t))return e}function Wo(e,t){if(e==="change")return t}function md(){Mp&&(Mp.detachEvent("onpropertychange",br),Cp=Mp=null)}function br(e){if(e.propertyName==="value"&&Sa(Cp)){var t=[];hd(t,Cp,e,Mi(e)),B0(o3,t)}}function rb(e,t,a){e==="focusin"?(md(),Mp=t,Cp=a,Mp.attachEvent("onpropertychange",br)):e==="focusout"&&md()}function Om(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Sa(Cp)}function zm(e,t){if(e==="click")return Sa(t)}function gd(e,t){if(e==="input"||e==="change")return Sa(t)}function G0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Sr(e,t){if(Rl(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var r=a[o];if(!Ll.call(t,r)||!Rl(e[r],t[r]))return!1}return!0}function c3(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function s3(e,t){var a=c3(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=c3(a)}}function r3(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?r3(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function R0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=xi(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=xi(e.document)}return t}function Nm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function f3(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;zb||p2==null||p2!==xi(o)||(o=p2,"selectionStart"in o&&Nm(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Dp&&Sr(Dp,o)||(Dp=o,o=Xi(Ob,"onSelect"),0<o.length&&(t=new D4("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=p2)))}function Fc(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function $c(e){if(Nb[e])return Nb[e];if(!y2[e])return e;var t=y2[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in A7)return Nb[e]=t[a];return e}function Ci(e,t){D7.set(e,t),_i(t,[e])}function d3(e){for(var t=z4,a=0;a<e.length;a++){var o=e[a];if(typeof o=="object"&&o!==null)if(Rn(o)&&o.length===2&&typeof o[0]=="string"){if(t!==z4&&t!==Gb)return Hb;t=Gb}else return Hb;else{if(typeof o=="function"||typeof o=="string"&&50<o.length||t!==z4&&t!==Lb)return Hb;t=Lb}}return t}function Um(e,t,a,o){for(var r in e)Ll.call(e,r)&&r[0]!=="_"&&pu(r,e[r],t,a,o)}function pu(e,t,a,o,r){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===ui){var d=xe(t.type)||"…",p=t.key;t=t.props;var v=Object.keys(t),T=v.length;if(p==null&&T===0){t="<"+d+" />";break}if(3>o||T===1&&v[0]==="children"&&p==null){t="<"+d+" … />";break}a.push([r+"  ".repeat(o)+e,"<"+d]),p!==null&&pu("key",p,a,o+1,r),e=!1;for(var _ in t)_==="children"?t.children!=null&&(!Rn(t.children)||0<t.children.length)&&(e=!0):Ll.call(t,_)&&_[0]!=="_"&&pu(_,t[_],a,o+1,r);a.push(["",e?">…</"+d+">":"/>"]);return}if(d=Object.prototype.toString.call(t),d=d.slice(8,d.length-1),d==="Array"){if(_=d3(t),_===Lb||_===z4){t=JSON.stringify(t);break}else if(_===Gb){for(a.push([r+"  ".repeat(o)+e,""]),e=0;e<t.length;e++)d=t[e],pu(d[0],d[1],a,o+1,r);return}}if(d==="Promise"){if(t.status==="fulfilled"){if(d=a.length,pu(e,t.value,a,o,r),a.length>d){a=a[d],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(d=a.length,pu(e,t.reason,a,o,r),a.length>d)){a=a[d],a[1]="Rejected Promise<"+a[1]+">";return}a.push(["  ".repeat(o)+e,"Promise"]);return}d==="Object"&&(_=Object.getPrototypeOf(t))&&typeof _.constructor=="function"&&(d=_.constructor.name),a.push([r+"  ".repeat(o)+e,d==="Object"?3>o?"":"…":d]),3>o&&Um(t,a,o+1,r);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===Qx?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}a.push([r+"  ".repeat(o)+e,t])}function h3(e,t,a,o){var r=!0;for(p in e)p in t||(a.push([N4+"  ".repeat(o)+p,"…"]),r=!1);for(var d in t)if(d in e){var p=e[d],v=t[d];if(p!==v){if(o===0&&d==="children")r="  ".repeat(o)+d,a.push([N4+r,"…"],[U4+r,"…"]);else{if(!(3<=o)){if(typeof p=="object"&&typeof v=="object"&&p!==null&&v!==null&&p.$$typeof===v.$$typeof)if(v.$$typeof===ui){if(p.type===v.type&&p.key===v.key){p=xe(v.type)||"…",r="  ".repeat(o)+d,p="<"+p+" … />",a.push([N4+r,p],[U4+r,p]),r=!1;continue}}else{var T=Object.prototype.toString.call(p),_=Object.prototype.toString.call(v);if(T===_&&(_==="[object Object]"||_==="[object Array]")){T=[N7+"  ".repeat(o)+d,_==="[object Array]"?"Array":""],a.push(T),_=a.length,h3(p,v,a,o+1)?_===a.length&&(T[1]="Referentially unequal but deeply equal objects. Consider memoization."):r=!1;continue}}else if(typeof p=="function"&&typeof v=="function"&&p.name===v.name&&p.length===v.length&&(T=Function.prototype.toString.call(p),_=Function.prototype.toString.call(v),T===_)){p=v.name===""?"() => {}":v.name+"() {}",a.push([N7+"  ".repeat(o)+d,p+" Referentially unequal function closure. Consider memoization."]);continue}}pu(d,p,a,o,N4),pu(d,v,a,o,U4)}r=!1}}else a.push([U4+"  ".repeat(o)+d,"…"]),r=!1;return r}function Di(e){mt=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function $l(e,t,a,o){un&&(Tf.start=t,Tf.end=a,Hs.color="warning",Hs.tooltipText=o,Hs.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,o,Tf)):performance.measure(o,Tf))}function j0(e,t,a){$l(e,t,a,"Reconnect")}function q0(e,t,a,o,r){var d=ce(e);if(d!==null&&un){var p=e.alternate,v=e.actualDuration;if(p===null||p.child!==e.child)for(var T=e.child;T!==null;T=T.sibling)v-=T.actualDuration;o=.5>v?o?"tertiary-light":"primary-light":10>v?o?"tertiary":"primary":100>v?o?"tertiary-dark":"primary-dark":"error";var _=e.memoizedProps;v=e._debugTask,_!==null&&p!==null&&p.memoizedProps!==_?(T=[Zx],_=h3(p.memoizedProps,_,T,0),1<T.length&&(_&&!Ef&&!(p.lanes&r)&&100<e.actualDuration?(Ef=!0,T[0]=Jx,Hs.color="warning",Hs.tooltipText=U7):(Hs.color=o,Hs.tooltipText=d),Hs.properties=T,Tf.start=t,Tf.end=a,v!=null?v.run(performance.measure.bind(performance,"​"+d,Tf)):performance.measure("​"+d,Tf))):v!=null?v.run(console.timeStamp.bind(console,d,t,a,ku,void 0,o)):console.timeStamp(d,t,a,ku,void 0,o)}}function Bm(e,t,a,o){if(un){var r=ce(e);if(r!==null){for(var d=null,p=[],v=0;v<o.length;v++){var T=o[v];d==null&&T.source!==null&&(d=T.source._debugTask),T=T.value,p.push(["Error",typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T)])}e.key!==null&&pu("key",e.key,p,0,""),e.memoizedProps!==null&&Um(e.memoizedProps,p,0,""),d==null&&(d=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:ku,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:p}}},d?d.run(performance.measure.bind(performance,"​"+r,e)):performance.measure("​"+r,e)}}}function Oi(e,t,a,o,r){if(r!==null){if(un){var d=ce(e);if(d!==null){o=[];for(var p=0;p<r.length;p++){var v=r[p].value;o.push(["Error",typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v)])}e.key!==null&&pu("key",e.key,o,0,""),e.memoizedProps!==null&&Um(e.memoizedProps,o,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:ku,tooltipText:"A lifecycle or effect errored",properties:o}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+d,t)):performance.measure("​"+d,t)}}}else d=ce(e),d!==null&&un&&(r=1>o?"secondary-light":100>o?"secondary":500>o?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,d,t,a,ku,void 0,r)):console.timeStamp(d,t,a,ku,void 0,r))}function fb(e,t,a,o){if(un&&!(t<=e)){var r=(a&738197653)===a?"tertiary-dark":"primary-dark";a=(a&536870912)===a?"Prepared":(a&201326741)===a?"Hydrated":"Render",o?o.run(console.timeStamp.bind(console,a,e,t,mt,rt,r)):console.timeStamp(a,e,t,mt,rt,r)}}function m3(e,t,a,o){!un||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Prewarm",e,t,mt,rt,a)):console.timeStamp("Prewarm",e,t,mt,rt,a))}function g3(e,t,a,o){!un||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Suspended",e,t,mt,rt,a)):console.timeStamp("Suspended",e,t,mt,rt,a))}function db(e,t,a,o,r,d){if(un&&!(t<=e)){a=[];for(var p=0;p<o.length;p++){var v=o[p].value;a.push(["Recoverable Error",typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:mt,trackGroup:rt,tooltipText:r?"Hydration Failed":"Recovered after Error",properties:a}}},d?d.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function Hm(e,t,a,o){!un||t<=e||(o?o.run(console.timeStamp.bind(console,"Errored",e,t,mt,rt,"error")):console.timeStamp("Errored",e,t,mt,rt,"error"))}function hb(e,t,a,o){!un||t<=e||(o?o.run(console.timeStamp.bind(console,a,e,t,mt,rt,"secondary-light")):console.timeStamp(a,e,t,mt,rt,"secondary-light"))}function p3(e,t,a,o,r){if(un&&!(t<=e)){for(var d=[],p=0;p<a.length;p++){var v=a[p].value;d.push(["Error",typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v)])}e={start:e,end:t,detail:{devtools:{color:"error",track:mt,trackGroup:rt,tooltipText:o?"Remaining Effects Errored":"Commit Errored",properties:d}}},r?r.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function Lm(e,t,a){!un||t<=e||console.timeStamp("Animating",e,t,mt,rt,"secondary-dark")}function V0(){for(var e=v2,t=Rb=v2=0;t<e;){var a=Xu[t];Xu[t++]=null;var o=Xu[t];Xu[t++]=null;var r=Xu[t];Xu[t++]=null;var d=Xu[t];if(Xu[t++]=null,o!==null&&r!==null){var p=o.pending;p===null?r.next=r:(r.next=p.next,p.next=r),o.pending=r}d!==0&&Gm(a,r,d)}}function Er(e,t,a,o){Xu[v2++]=e,Xu[v2++]=t,Xu[v2++]=a,Xu[v2++]=o,Rb|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Ic(e,t,a,o){return Er(e,t,a,o),pd(e)}function za(e,t){return Er(e,null,null,t),pd(e)}function Gm(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var r=!1,d=e.return;d!==null;)d.childLanes|=a,o=d.alternate,o!==null&&(o.childLanes|=a),d.tag===22&&(e=d.stateNode,e===null||e._visibility&Op||(r=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,r&&t!==null&&(r=31-Ta(a),e=d.hiddenUpdates,o=e[r],o===null?e[r]=[t]:o.push(t),t.lane=a|536870912),d):null}function pd(e){if(ay>sM)throw Rh=ay=0,ly=y6=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Rh>rM&&(Rh=0,ly=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&e.flags&4098&&ii(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&t.flags&4098&&ii(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function Po(e){if(Qu===null)return e;var t=Qu(e);return t===void 0?e:t.current}function Y0(e){if(Qu===null)return e;var t=Qu(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=Po(e.render),e.render!==t)?(t={$$typeof:rf,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function Rm(e,t){if(Qu===null)return!1;var a=e.elementType;t=t.type;var o=!1,r=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(o=!0);break;case 0:(typeof t=="function"||r===Ba)&&(o=!0);break;case 11:(r===rf||r===Ba)&&(o=!0);break;case 14:case 15:(r===ph||r===Ba)&&(o=!0);break;default:return!1}return!!(o&&(e=Qu(a),e!==void 0&&e===Qu(t)))}function Wc(e){Qu!==null&&typeof WeakSet=="function"&&(w2===null&&(w2=new WeakSet),w2.add(e))}function y3(e,t,a){do{var o=e,r=o.alternate,d=o.child,p=o.sibling,v=o.tag;o=o.type;var T=null;switch(v){case 0:case 15:case 1:T=o;break;case 11:T=o.render}if(Qu===null)throw Error("Expected resolveFamily to be set during hot reload.");var _=!1;if(o=!1,T!==null&&(T=Qu(T),T!==void 0&&(a.has(T)?o=!0:t.has(T)&&(v===1?o=!0:_=!0))),w2!==null&&(w2.has(e)||r!==null&&w2.has(r))&&(o=!0),o&&(e._debugNeedsRemount=!0),(o||_)&&(r=za(e,2),r!==null&&je(r,e,2)),d===null||o||y3(d,t,a),p===null)break;e=p}while(!0)}function mb(e,t,a,o){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,B7||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function jm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yu(e,t){var a=e.alternate;switch(a===null?(a=q(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a._debugOwner=e._debugOwner,a._debugStack=e._debugStack,a._debugTask=e._debugTask,a._debugHookTypes=e._debugHookTypes,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null,a.actualDuration=-0,a.actualStartTime=-1.1),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a.selfBaseDuration=e.selfBaseDuration,a.treeBaseDuration=e.treeBaseDuration,a._debugInfo=e._debugInfo,a._debugNeedsRemount=e._debugNeedsRemount,a.tag){case 0:case 15:a.type=Po(e.type);break;case 1:a.type=Po(e.type);break;case 11:a.type=Y0(e.type)}return a}function qm(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=a.selfBaseDuration,e.treeBaseDuration=a.treeBaseDuration),e}function Pc(e,t,a,o,r,d){var p=0,v=e;if(typeof e=="function")jm(e)&&(p=1),v=Po(v);else if(typeof e=="string")p=ee(),p=d4(e,a,p)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ki:return t=q(31,a,t,r),t.elementType=Ki,t.lanes=d,t;case sf:return es(a.children,r,d,t);case al:p=8,r|=pl,r|=Oo;break;case gh:return e=a,o=r,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=q(12,e,t,o|Pe),t.elementType=gh,t.lanes=d,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Os:return t=q(13,a,t,r),t.elementType=Os,t.lanes=d,t;case ml:return t=q(19,a,t,r),t.elementType=ml,t.lanes=d,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ji:p=10;break e;case e2:p=9;break e;case rf:p=11,v=Y0(v);break e;case ph:p=14;break e;case Ba:p=16,v=null;break e}v="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(v+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?a="null":Rn(e)?a="array":e!==void 0&&e.$$typeof===ui?(a="<"+(xe(e.type)||"Unknown")+" />",v=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(p=o?me(o):null)&&(v+=`
169
-
170
- Check the render method of \``+p+"`."),p=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+v)),v=null}return t=q(p,a,t,r),t.elementType=e,t.type=v,t.lanes=d,t._debugOwner=o,t}function ec(e,t,a){return t=Pc(e.type,e.key,e.props,e._owner,t,a),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function es(e,t,a,o){return e=q(7,e,o,t),e.lanes=a,e}function Tr(e,t,a){return e=q(6,e,null,t),e.lanes=a,e}function Vm(e){var t=q(18,null,null,Ge);return t.stateNode=e,t}function k0(e,t,a){return t=q(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xa(e,t){if(typeof e=="object"&&e!==null){var a=jb.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Pn(t)},jb.set(e,t),t)}return{value:e,source:t,stack:Pn(t)}}function zi(e,t){tc(),b2[S2++]=zp,b2[S2++]=B4,B4=e,zp=t}function Ym(e,t,a){tc(),Zu[Ju++]=Gs,Zu[Ju++]=Rs,Zu[Ju++]=Th,Th=e;var o=Gs;e=Rs;var r=32-Ta(o)-1;o&=~(1<<r),a+=1;var d=32-Ta(t)+r;if(30<d){var p=r-r%5;d=(o&(1<<p)-1).toString(32),o>>=p,r-=p,Gs=1<<32-Ta(t)+r|a<<r|o,Rs=d+e}else Gs=1<<d|a<<r|o,Rs=e}function X0(e){tc(),e.return!==null&&(zi(e,1),Ym(e,1,0))}function Q0(e){for(;e===B4;)B4=b2[--S2],b2[S2]=null,zp=b2[--S2],b2[S2]=null;for(;e===Th;)Th=Zu[--Ju],Zu[Ju]=null,Rs=Zu[--Ju],Zu[Ju]=null,Gs=Zu[--Ju],Zu[Ju]=null}function v3(){return tc(),Th!==null?{id:Gs,overflow:Rs}:null}function w3(e,t){tc(),Zu[Ju++]=Gs,Zu[Ju++]=Rs,Zu[Ju++]=Th,Gs=t.id,Rs=t.overflow,Th=e}function tc(){ct||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function ts(e,t){if(e.return===null){if($i===null)$i={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if($i.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");$i.distanceFromLeaf>t&&($i.distanceFromLeaf=t)}return $i}var a=ts(e.return,t+1).children;return 0<a.length&&a[a.length-1].fiber===e?(a=a[a.length-1],a.distanceFromLeaf>t&&(a.distanceFromLeaf=t),a):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},a.push(t),t)}function b3(){ct&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Na(e,t){zc||(e=ts(e,0),e.serverProps=null,t!==null&&(t=c4(t),e.serverTail.push(t)))}function Il(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",o=$i;throw o!==null&&($i=null,a=Em(o)),vd(Xa(Error("Hydration failed because the server rendered "+(t?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
171
-
172
- - A server/client branch \`if (typeof window !== 'undefined')\`.
173
- - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
174
- - Date formatting in a user's locale which doesn't match the server.
175
- - External changing data without sending a snapshot of it along with the HTML.
176
- - Invalid HTML tag nesting.
177
-
178
- It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
179
-
180
- https://react.dev/link/hydration-mismatch`+a),e)),qb}function km(e){var t=e.stateNode,a=e.type,o=e.memoizedProps;switch(t[ln]=e,t[ll]=o,tl(a,o),a){case"dialog":Le("cancel",t),Le("close",t);break;case"iframe":case"object":case"embed":Le("load",t);break;case"video":case"audio":for(a=0;a<iy.length;a++)Le(iy[a],t);break;case"source":Le("error",t);break;case"img":case"image":case"link":Le("error",t),Le("load",t);break;case"details":Le("toggle",t);break;case"input":Yc("input",o),Le("invalid",t),ka(t,o),x0(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"option":a3(t,o);break;case"select":Yc("select",o),Le("invalid",t),M0(t,o);break;case"textarea":Yc("textarea",o),Le("invalid",t),kc(t,o),hr(t,o.value,o.defaultValue,o.children)}a=o.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||Qg(t.textContent,a)?(o.popover!=null&&(Le("beforetoggle",t),Le("toggle",t)),o.onScroll!=null&&Le("scroll",t),o.onScrollEnd!=null&&Le("scrollend",t),o.onClick!=null&&(t.onclick=Fl),t=!0):t=!1,t||Il(e,!0)}function Xm(e){for(il=e.return;il;)switch(il.tag){case 5:case 31:case 13:Ku=!1;return;case 27:case 3:Ku=!0;return;default:il=il.return}}function ns(e){if(e!==il)return!1;if(!ct)return Xm(e),ct=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||ef(e.type,e.memoizedProps)),a=!a),a&&on){for(a=on;a;){var o=ts(e,0),r=c4(a);o.serverTail.push(r),a=r.type==="Suspense"?af(a):Bl(a.nextSibling)}Il(e)}if(Xm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");on=af(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");on=af(e)}else t===27?(t=on,Ac(e.type)?(e=D6,D6=null,on=e):on=t):on=il?Bl(e.stateNode.nextSibling):null;return!0}function nc(){on=il=null,zc=ct=!1}function yd(){var e=_f;return e!==null&&(Yl===null?Yl=e:Yl.push.apply(Yl,e),_f=null),e}function vd(e){_f===null?_f=[e]:_f.push(e)}function ac(){var e=$i;if(e!==null){$i=null;for(var t=Em(e);0<e.children.length;)e=e.children[0];fe(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
181
-
182
- - A server/client branch \`if (typeof window !== 'undefined')\`.
183
- - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
184
- - Date formatting in a user's locale which doesn't match the server.
185
- - External changing data without sending a snapshot of it along with the HTML.
186
- - Invalid HTML tag nesting.
187
-
188
- It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
189
-
190
- %s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function Ar(){E2=H4=null,T2=!1}function Wl(e,t,a){He(Vb,t._currentValue,e),t._currentValue=a,He(Yb,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==L7&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=L7}function Ni(e,t){e._currentValue=Vb.current;var a=Yb.current;ke(Yb,t),e._currentRenderer=a,ke(Vb,t)}function Z0(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}e!==a&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function so(e,t,a,o){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var d=r.dependencies;if(d!==null){var p=r.child;d=d.firstContext;e:for(;d!==null;){var v=d;d=r;for(var T=0;T<t.length;T++)if(v.context===t[T]){d.lanes|=a,v=d.alternate,v!==null&&(v.lanes|=a),Z0(d.return,a,e),o||(p=null);break e}d=v.next}}else if(r.tag===18){if(p=r.return,p===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");p.lanes|=a,d=p.alternate,d!==null&&(d.lanes|=a),Z0(p,a,e),p=null}else p=r.child;if(p!==null)p.return=r;else for(p=r;p!==null;){if(p===e){p=null;break}if(r=p.sibling,r!==null){r.return=p.return,p=r;break}p=p.return}r=p}}function Ui(e,t,a,o){e=null;for(var r=t,d=!1;r!==null;){if(!d){if(r.flags&524288)d=!0;else if(r.flags&262144)break}if(r.tag===10){var p=r.alternate;if(p===null)throw Error("Should have a current fiber. This is a bug in React.");if(p=p.memoizedProps,p!==null){var v=r.type;Rl(r.pendingProps.value,p.value)||(e!==null?e.push(v):e=[v])}}else if(r===Cc.current){if(p=r.alternate,p===null)throw Error("Should have a current fiber. This is a bug in React.");p.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(ry):e=[ry])}r=r.return}e!==null&&so(t,e,a,o),t.flags|=262144}function _r(e){for(e=e.firstContext;e!==null;){if(!Rl(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function lc(e){H4=e,E2=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Tt(e){return T2&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Qm(H4,e)}function wd(e,t){return H4===null&&lc(e),Qm(e,t)}function Qm(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},E2===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");E2=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else E2=E2.next=t;return a}function J0(){return{controller:new $x,data:new Map,refCount:0}}function as(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function bd(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&Ix(Wx,function(){e.controller.abort()})}function vu(e,t,a){e&127?0>Nc&&(Nc=ra(),Up=L4(t),kb=t,a!=null&&(Xb=ce(a)),(pt&(xa|Pi))!==Ra&&(Nn=!0,Mf=Np),e=tf(),t=Gu(),e!==A2||t!==Bp?A2=-1.1:t!==null&&(Mf=Np),xh=e,Bp=t):e&4194048&&0>Fu&&(Fu=ra(),Hp=L4(t),G7=t,a!=null&&(R7=ce(a)),0>Ys)&&(e=tf(),t=Gu(),(e!==Df||t!==Mh)&&(Df=-1.1),Cf=e,Mh=t)}function S3(e){if(0>Nc){Nc=ra(),Up=e._debugTask!=null?e._debugTask:null,(pt&(xa|Pi))!==Ra&&(Mf=Np);var t=tf(),a=Gu();t!==A2||a!==Bp?A2=-1.1:a!==null&&(Mf=Np),xh=t,Bp=a}0>Fu&&(Fu=ra(),Hp=e._debugTask!=null?e._debugTask:null,0>Ys)&&(e=tf(),t=Gu(),(e!==Df||t!==Mh)&&(Df=-1.1),Cf=e,Mh=t)}function wu(){var e=Ah;return Ah=0,e}function xr(e){var t=Ah;return Ah=e,t}function Qa(e){var t=Ah;return Ah+=e,t}function ls(){Ne=De=-1.1}function tn(){var e=De;return De=-1.1,e}function na(e){0<=e&&(De=e)}function Pl(){var e=bn;return bn=-0,e}function El(e){0<=e&&(bn=e)}function Tl(){var e=hn;return hn=null,e}function ei(){var e=Nn;return Nn=!1,e}function ro(e){jl=ra(),0>e.actualStartTime&&(e.actualStartTime=jl)}function K0(e){if(0<=jl){var t=ra()-jl;e.actualDuration+=t,e.selfBaseDuration=t,jl=-1}}function Sd(e){if(0<=jl){var t=ra()-jl;e.actualDuration+=t,jl=-1}}function Za(){if(0<=jl){var e=ra(),t=e-jl;jl=-1,Ah+=t,bn+=t,Ne=e}}function E3(e){hn===null&&(hn=[]),hn.push(e),qs===null&&(qs=[]),qs.push(e)}function yn(){jl=ra(),0>De&&(De=jl)}function is(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function fo(e,t){if(Gp===null){var a=Gp=[];Zb=0,Ch=Xg(),_2={status:"pending",value:void 0,then:function(o){a.push(o)}}}return Zb++,t.then(Zm,Zm),t}function Zm(){if(--Zb===0&&(-1<Fu||(Ys=-1.1),Gp!==null)){_2!==null&&(_2.status="fulfilled");var e=Gp;Gp=null,Ch=0,_2=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function F0(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){for(o.status="rejected",o.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),o}function ho(){var e=Dh.current;return e!==null?e:Kt.pooledCache}function Mr(e,t){t===null?He(Dh,Dh.current,e):He(Dh,t.pool,e)}function Jm(){var e=ho();return e===null?null:{parent:sa._currentValue,pool:e}}function $0(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Km(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Al(e,t,a){F.actQueue!==null&&(F.didUsePromise=!0);var o=e.thenables;if(a=o[a],a===void 0?o.push(t):a!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(Fl,Fl),t=a),t._debugInfo===void 0){e=performance.now(),o=t.displayName;var r={name:typeof o=="string"?o:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:r}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){r.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ed(e),e;default:if(typeof t.status=="string")t.then(Fl,Fl);else{if(e=Kt,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(d){if(t.status==="pending"){var p=t;p.status="fulfilled",p.value=d}},function(d){if(t.status==="pending"){var p=t;p.status="rejected",p.reason=d}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ed(e),e}throw zh=t,Xp=!0,x2}}function _l(e){try{return aM(e)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(zh=t,Xp=!0,x2):t}}function us(){if(zh===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=zh;return zh=null,Xp=!1,e}function Ed(e){if(e===x2||e===X4)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Mn(e){var t=et;return e!=null&&(et=t===null?e:t.concat(e)),t}function cl(){var e=et;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var a=e[t].debugTask;if(a!=null)return a}}return null}function Ja(e,t,a){for(var o=Object.keys(e.props),r=0;r<o.length;r++){var d=o[r];if(d!=="children"&&d!=="key"){t===null&&(t=ec(e,a.mode,0),t._debugInfo=et,t.return=a),fe(t,function(p){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",p)},d);break}}}function Bi(e){var t=Qp;return Qp+=1,M2===null&&(M2=$0()),Al(M2,e,t)}function sl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Hi(e,t){throw t.$$typeof===v4?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
191
- - Multiple copies of the "react" package is used.
192
- - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
193
- - A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function ti(e,t){var a=cl();a!==null?a.run(Hi.bind(null,e,t)):Hi(e,t)}function Fm(e,t){var a=ce(e)||"Component";l9[a]||(l9[a]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
194
- root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
195
- <%s>{%s}</%s>`,t,t,a,t,a))}function Cr(e,t){var a=cl();a!==null?a.run(Fm.bind(null,e,t)):Fm(e,t)}function I0(e,t){var a=ce(e)||"Component";i9[a]||(i9[a]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
196
- root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
197
- <%s>%s</%s>`,a,t,a))}function Td(e,t){var a=cl();a!==null?a.run(I0.bind(null,e,t)):I0(e,t)}function aa(e){function t(C,O){if(e){var B=C.deletions;B===null?(C.deletions=[O],C.flags|=16):B.push(O)}}function a(C,O){if(!e)return null;for(;O!==null;)t(C,O),O=O.sibling;return null}function o(C){for(var O=new Map;C!==null;)C.key!==null?O.set(C.key,C):O.set(C.index,C),C=C.sibling;return O}function r(C,O){return C=yu(C,O),C.index=0,C.sibling=null,C}function d(C,O,B){return C.index=B,e?(B=C.alternate,B!==null?(B=B.index,B<O?(C.flags|=67108866,O):B):(C.flags|=67108866,O)):(C.flags|=1048576,O)}function p(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function v(C,O,B,W){return O===null||O.tag!==6?(O=Tr(B,C.mode,W),O.return=C,O._debugOwner=C,O._debugTask=C._debugTask,O._debugInfo=et,O):(O=r(O,B),O.return=C,O._debugInfo=et,O)}function T(C,O,B,W){var re=B.type;return re===sf?(O=H(C,O,B.props.children,W,B.key),Ja(B,O,C),O):O!==null&&(O.elementType===re||Rm(O,B)||typeof re=="object"&&re!==null&&re.$$typeof===Ba&&_l(re)===O.type)?(O=r(O,B.props),sl(O,B),O.return=C,O._debugOwner=B._owner,O._debugInfo=et,O):(O=ec(B,C.mode,W),sl(O,B),O.return=C,O._debugInfo=et,O)}function _(C,O,B,W){return O===null||O.tag!==4||O.stateNode.containerInfo!==B.containerInfo||O.stateNode.implementation!==B.implementation?(O=k0(B,C.mode,W),O.return=C,O._debugInfo=et,O):(O=r(O,B.children||[]),O.return=C,O._debugInfo=et,O)}function H(C,O,B,W,re){return O===null||O.tag!==7?(O=es(B,C.mode,W,re),O.return=C,O._debugOwner=C,O._debugTask=C._debugTask,O._debugInfo=et,O):(O=r(O,B),O.return=C,O._debugInfo=et,O)}function R(C,O,B){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Tr(""+O,C.mode,B),O.return=C,O._debugOwner=C,O._debugTask=C._debugTask,O._debugInfo=et,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case ui:return B=ec(O,C.mode,B),sl(B,O),B.return=C,C=Mn(O._debugInfo),B._debugInfo=et,et=C,B;case xc:return O=k0(O,C.mode,B),O.return=C,O._debugInfo=et,O;case Ba:var W=Mn(O._debugInfo);return O=_l(O),C=R(C,O,B),et=W,C}if(Rn(O)||Qe(O))return B=es(O,C.mode,B,null),B.return=C,B._debugOwner=C,B._debugTask=C._debugTask,C=Mn(O._debugInfo),B._debugInfo=et,et=C,B;if(typeof O.then=="function")return W=Mn(O._debugInfo),C=R(C,Bi(O),B),et=W,C;if(O.$$typeof===Ji)return R(C,wd(C,O),B);ti(C,O)}return typeof O=="function"&&Cr(C,O),typeof O=="symbol"&&Td(C,O),null}function D(C,O,B,W){var re=O!==null?O.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return re!==null?null:v(C,O,""+B,W);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case ui:return B.key===re?(re=Mn(B._debugInfo),C=T(C,O,B,W),et=re,C):null;case xc:return B.key===re?_(C,O,B,W):null;case Ba:return re=Mn(B._debugInfo),B=_l(B),C=D(C,O,B,W),et=re,C}if(Rn(B)||Qe(B))return re!==null?null:(re=Mn(B._debugInfo),C=H(C,O,B,W,null),et=re,C);if(typeof B.then=="function")return re=Mn(B._debugInfo),C=D(C,O,Bi(B),W),et=re,C;if(B.$$typeof===Ji)return D(C,O,wd(C,B),W);ti(C,B)}return typeof B=="function"&&Cr(C,B),typeof B=="symbol"&&Td(C,B),null}function J(C,O,B,W,re){if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return C=C.get(B)||null,v(O,C,""+W,re);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case ui:return B=C.get(W.key===null?B:W.key)||null,C=Mn(W._debugInfo),O=T(O,B,W,re),et=C,O;case xc:return C=C.get(W.key===null?B:W.key)||null,_(O,C,W,re);case Ba:var Ye=Mn(W._debugInfo);return W=_l(W),O=J(C,O,B,W,re),et=Ye,O}if(Rn(W)||Qe(W))return B=C.get(B)||null,C=Mn(W._debugInfo),O=H(O,B,W,re,null),et=C,O;if(typeof W.then=="function")return Ye=Mn(W._debugInfo),O=J(C,O,B,Bi(W),re),et=Ye,O;if(W.$$typeof===Ji)return J(C,O,B,wd(O,W),re);ti(O,W)}return typeof W=="function"&&Cr(O,W),typeof W=="symbol"&&Td(O,W),null}function se(C,O,B,W){if(typeof B!="object"||B===null)return W;switch(B.$$typeof){case ui:case xc:U(C,O,B);var re=B.key;if(typeof re!="string")break;if(W===null){W=new Set,W.add(re);break}if(!W.has(re)){W.add(re);break}fe(O,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",re)});break;case Ba:B=_l(B),se(C,O,B,W)}return W}function de(C,O,B,W){for(var re=null,Ye=null,Me=null,we=O,Ie=O=0,cn=null;we!==null&&Ie<B.length;Ie++){we.index>Ie?(cn=we,we=null):cn=we.sibling;var Fn=D(C,we,B[Ie],W);if(Fn===null){we===null&&(we=cn);break}re=se(C,Fn,B[Ie],re),e&&we&&Fn.alternate===null&&t(C,we),O=d(Fn,O,Ie),Me===null?Ye=Fn:Me.sibling=Fn,Me=Fn,we=cn}if(Ie===B.length)return a(C,we),ct&&zi(C,Ie),Ye;if(we===null){for(;Ie<B.length;Ie++)we=R(C,B[Ie],W),we!==null&&(re=se(C,we,B[Ie],re),O=d(we,O,Ie),Me===null?Ye=we:Me.sibling=we,Me=we);return ct&&zi(C,Ie),Ye}for(we=o(we);Ie<B.length;Ie++)cn=J(we,C,Ie,B[Ie],W),cn!==null&&(re=se(C,cn,B[Ie],re),e&&cn.alternate!==null&&we.delete(cn.key===null?Ie:cn.key),O=d(cn,O,Ie),Me===null?Ye=cn:Me.sibling=cn,Me=cn);return e&&we.forEach(function($s){return t(C,$s)}),ct&&zi(C,Ie),Ye}function Wt(C,O,B,W){if(B==null)throw Error("An iterable object provided no iterator.");for(var re=null,Ye=null,Me=O,we=O=0,Ie=null,cn=null,Fn=B.next();Me!==null&&!Fn.done;we++,Fn=B.next()){Me.index>we?(Ie=Me,Me=null):Ie=Me.sibling;var $s=D(C,Me,Fn.value,W);if($s===null){Me===null&&(Me=Ie);break}cn=se(C,$s,Fn.value,cn),e&&Me&&$s.alternate===null&&t(C,Me),O=d($s,O,we),Ye===null?re=$s:Ye.sibling=$s,Ye=$s,Me=Ie}if(Fn.done)return a(C,Me),ct&&zi(C,we),re;if(Me===null){for(;!Fn.done;we++,Fn=B.next())Me=R(C,Fn.value,W),Me!==null&&(cn=se(C,Me,Fn.value,cn),O=d(Me,O,we),Ye===null?re=Me:Ye.sibling=Me,Ye=Me);return ct&&zi(C,we),re}for(Me=o(Me);!Fn.done;we++,Fn=B.next())Ie=J(Me,C,we,Fn.value,W),Ie!==null&&(cn=se(C,Ie,Fn.value,cn),e&&Ie.alternate!==null&&Me.delete(Ie.key===null?we:Ie.key),O=d(Ie,O,we),Ye===null?re=Ie:Ye.sibling=Ie,Ye=Ie);return e&&Me.forEach(function(MM){return t(C,MM)}),ct&&zi(C,we),re}function ft(C,O,B,W){if(typeof B=="object"&&B!==null&&B.type===sf&&B.key===null&&(Ja(B,null,C),B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case ui:var re=Mn(B._debugInfo);e:{for(var Ye=B.key;O!==null;){if(O.key===Ye){if(Ye=B.type,Ye===sf){if(O.tag===7){a(C,O.sibling),W=r(O,B.props.children),W.return=C,W._debugOwner=B._owner,W._debugInfo=et,Ja(B,W,C),C=W;break e}}else if(O.elementType===Ye||Rm(O,B)||typeof Ye=="object"&&Ye!==null&&Ye.$$typeof===Ba&&_l(Ye)===O.type){a(C,O.sibling),W=r(O,B.props),sl(W,B),W.return=C,W._debugOwner=B._owner,W._debugInfo=et,C=W;break e}a(C,O);break}else t(C,O);O=O.sibling}B.type===sf?(W=es(B.props.children,C.mode,W,B.key),W.return=C,W._debugOwner=C,W._debugTask=C._debugTask,W._debugInfo=et,Ja(B,W,C),C=W):(W=ec(B,C.mode,W),sl(W,B),W.return=C,W._debugInfo=et,C=W)}return C=p(C),et=re,C;case xc:e:{for(re=B,B=re.key;O!==null;){if(O.key===B)if(O.tag===4&&O.stateNode.containerInfo===re.containerInfo&&O.stateNode.implementation===re.implementation){a(C,O.sibling),W=r(O,re.children||[]),W.return=C,C=W;break e}else{a(C,O);break}else t(C,O);O=O.sibling}W=k0(re,C.mode,W),W.return=C,C=W}return p(C);case Ba:return re=Mn(B._debugInfo),B=_l(B),C=ft(C,O,B,W),et=re,C}if(Rn(B))return re=Mn(B._debugInfo),C=de(C,O,B,W),et=re,C;if(Qe(B)){if(re=Mn(B._debugInfo),Ye=Qe(B),typeof Ye!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Me=Ye.call(B);return Me===B?(C.tag!==0||Object.prototype.toString.call(C.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Me)!=="[object Generator]")&&(n9||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),n9=!0):B.entries!==Ye||$b||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),$b=!0),C=Wt(C,O,Me,W),et=re,C}if(typeof B.then=="function")return re=Mn(B._debugInfo),C=ft(C,O,Bi(B),W),et=re,C;if(B.$$typeof===Ji)return ft(C,O,wd(C,B),W);ti(C,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(re=""+B,O!==null&&O.tag===6?(a(C,O.sibling),W=r(O,re),W.return=C,C=W):(a(C,O),W=Tr(re,C.mode,W),W.return=C,W._debugOwner=C,W._debugTask=C._debugTask,W._debugInfo=et,C=W),p(C)):(typeof B=="function"&&Cr(C,B),typeof B=="symbol"&&Td(C,B),a(C,O))}return function(C,O,B,W){var re=et;et=null;try{Qp=0;var Ye=ft(C,O,B,W);return M2=null,Ye}catch(cn){if(cn===x2||cn===X4)throw cn;var Me=q(29,cn,null,C.mode);Me.lanes=W,Me.return=C;var we=Me._debugInfo=et;if(Me._debugOwner=C._debugOwner,Me._debugTask=C._debugTask,we!=null){for(var Ie=we.length-1;0<=Ie;Ie--)if(typeof we[Ie].stack=="string"){Me._debugOwner=we[Ie],Me._debugTask=we[Ie].debugTask;break}}return Me}finally{et=re}}}function Xt(e,t){var a=Rn(e);return e=!a&&typeof Qe(e)=="function",a||e?(a=a?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",a,t,a),!1):!0}function ut(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function kn(e){return{lane:e,tag:o9,payload:null,callback:null,next:null}}function Su(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,Wb===o&&!r9){var r=ce(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
198
-
199
- Please update the following component: %s`,r),r9=!0}return(pt&xa)!==Ra?(r=o.pending,r===null?t.next=t:(t.next=r.next,r.next=t),o.pending=t,t=pd(e),Gm(e,null,a),t):(Er(e,o,t,a),pd(e))}function ni(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,wa(e,a)}}function Ad(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var r=null,d=null;if(a=a.firstBaseUpdate,a!==null){do{var p={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};d===null?r=d=p:d=d.next=p,a=a.next}while(a!==null);d===null?r=d=t:d=d.next=t}else r=d=t;a={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:d,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function Dr(){if(Pb){var e=_2;if(e!==null)throw e}}function Eu(e,t,a,o){Pb=!1;var r=e.updateQueue;Of=!1,Wb=r.shared;var d=r.firstBaseUpdate,p=r.lastBaseUpdate,v=r.shared.pending;if(v!==null){r.shared.pending=null;var T=v,_=T.next;T.next=null,p===null?d=_:p.next=_,p=T;var H=e.alternate;H!==null&&(H=H.updateQueue,v=H.lastBaseUpdate,v!==p&&(v===null?H.firstBaseUpdate=_:v.next=_,H.lastBaseUpdate=T))}if(d!==null){var R=r.baseState;p=0,H=_=T=null,v=d;do{var D=v.lane&-536870913,J=D!==v.lane;if(J?(tt&D)===D:(o&D)===D){D!==0&&D===Ch&&(Pb=!0),H!==null&&(H=H.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{D=e;var se=v,de=t,Wt=a;switch(se.tag){case c9:if(se=se.payload,typeof se=="function"){T2=!0;var ft=se.call(Wt,R,de);if(D.mode&pl){ht(!0);try{se.call(Wt,R,de)}finally{ht(!1)}}T2=!1,R=ft;break e}R=se;break e;case Ib:D.flags=D.flags&-65537|128;case o9:if(ft=se.payload,typeof ft=="function"){if(T2=!0,se=ft.call(Wt,R,de),D.mode&pl){ht(!0);try{ft.call(Wt,R,de)}finally{ht(!1)}}T2=!1}else se=ft;if(se==null)break e;R=We({},R,se);break e;case s9:Of=!0}}D=v.callback,D!==null&&(e.flags|=64,J&&(e.flags|=8192),J=r.callbacks,J===null?r.callbacks=[D]:J.push(D))}else J={lane:D,tag:v.tag,payload:v.payload,callback:v.callback,next:null},H===null?(_=H=J,T=R):H=H.next=J,p|=D;if(v=v.next,v===null){if(v=r.shared.pending,v===null)break;J=v,v=J.next,J.next=null,r.lastBaseUpdate=J,r.shared.pending=null}}while(!0);H===null&&(T=R),r.baseState=T,r.firstBaseUpdate=_,r.lastBaseUpdate=H,d===null&&(r.shared.lanes=0),Uf|=p,e.lanes=p,e.memoizedState=R}Wb=null}function ic(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function $m(e,t){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)ic(a[e],t)}function Or(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)ic(a[e],t)}function W0(e,t){var a=Bc;He(Z4,a,e),He(C2,t,e),Bc=a|t.baseLanes}function mo(e){He(Z4,Bc,e),He(C2,C2.current,e)}function Li(e){Bc=Z4.current,ke(C2,e),ke(Z4,e)}function Ka(e){var t=e.alternate;He(Kn,Kn.current&D2,e),He(Ii,e,e),$u===null&&(t===null||C2.current!==null||t.memoizedState!==null)&&($u=e)}function Gi(e){He(Kn,Kn.current,e),He(Ii,e,e),$u===null&&($u=e)}function P0(e){e.tag===22?(He(Kn,Kn.current,e),He(Ii,e,e),$u===null&&($u=e)):Tu(e)}function Tu(e){He(Kn,Kn.current,e),He(Ii,Ii.current,e)}function la(e){ke(Ii,e),$u===e&&($u=null),ke(Kn,e)}function os(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||uh(a)||Jg(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function qe(){var e=K;Wu===null?Wu=[e]:Wu.push(e)}function le(){var e=K;if(Wu!==null&&(Qs++,Wu[Qs]!==e)){var t=ce(Ve);if(!f9.has(t)&&(f9.add(t),Wu!==null)){for(var a="",o=0;o<=Qs;o++){var r=Wu[o],d=o===Qs?e:r;for(r=o+1+". "+r;30>r.length;)r+=" ";r+=d+`
200
- `,a+=r}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
201
-
202
- Previous render Next render
203
- ------------------------------------------------------
204
- %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
205
- `,t,a)}}}function go(e){e==null||Rn(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",K,typeof e)}function _d(){var e=ce(Ve);h9.has(e)||(h9.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function vn(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
206
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
207
- 2. You might be breaking the Rules of Hooks
208
- 3. You might have more than one copy of React in the same app
209
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Im(e,t){if(Kp)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",K),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
210
-
211
- Previous: %s
212
- Incoming: %s`,K,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!Rl(e[a],t[a]))return!1;return!0}function Wm(e,t,a,o,r,d){ks=d,Ve=t,Wu=e!==null?e._debugHookTypes:null,Qs=-1,Kp=e!==null&&e.type!==t.type,(Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")&&(d=ce(Ve),e6.has(d)||(e6.add(d),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",d===null?"An unknown Component":"<"+d+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,F.H=e!==null&&e.memoizedState!==null?n6:Wu!==null?m9:t6,Uh=d=(t.mode&pl)!==Ge;var p=Jb(a,o,r);if(Uh=!1,z2&&(p=xd(t,a,o,r)),d){ht(!0);try{p=xd(t,a,o,r)}finally{ht(!1)}}return Cn(e,t),p}function Cn(e,t){t._debugHookTypes=Wu,t.dependencies===null?Xs!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Xs}):t.dependencies._debugThenableState=Xs,F.H=Fp;var a=Jt!==null&&Jt.next!==null;if(ks=0,Wu=K=fa=Jt=Ve=null,Qs=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),K4=!1,Jp=0,Xs=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||da||(e=e.dependencies,e!==null&&_r(e)&&(da=!0)),Xp?(Xp=!1,e=!0):e=!1,e&&(t=ce(t)||"Unknown",d9.has(t)||e6.has(t)||(d9.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function xd(e,t,a,o){Ve=e;var r=0;do{if(z2&&(Xs=null),Jp=0,z2=!1,r>=iM)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(r+=1,Kp=!1,fa=Jt=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}Qs=-1,F.H=g9,d=Jb(t,a,o)}while(z2);return d}function Md(){var e=F.H,t=e.useState()[0];return t=typeof t.then=="function"?Od(t):t,e=e.useState()[0],(Jt!==null?Jt.memoizedState:null)!==e&&(Ve.flags|=1024),t}function cs(){var e=F4!==0;return F4=0,e}function Cd(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&Oo)!==Ge?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function uc(e){if(K4){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}K4=!1}ks=0,Wu=fa=Jt=Ve=null,Qs=-1,K=null,z2=!1,Jp=F4=0,Xs=null}function Ln(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fa===null?Ve.memoizedState=fa=e:fa=fa.next=e,fa}function Ct(){if(Jt===null){var e=Ve.alternate;e=e!==null?e.memoizedState:null}else e=Jt.next;var t=fa===null?Ve.memoizedState:fa.next;if(t!==null)fa=t,Jt=e;else{if(e===null)throw Ve.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");Jt=e,e={memoizedState:Jt.memoizedState,baseState:Jt.baseState,baseQueue:Jt.baseQueue,queue:Jt.queue,next:null},fa===null?Ve.memoizedState=fa=e:fa=fa.next=e}return fa}function Dd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Od(e){var t=Jp;return Jp+=1,Xs===null&&(Xs=$0()),e=Al(Xs,e,t),t=Ve,(fa===null?t.memoizedState:fa.next)===null&&(t=t.alternate,F.H=t!==null&&t.memoizedState!==null?n6:t6),e}function po(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Od(e);if(e.$$typeof===Ji)return Tt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function xl(e){var t=null,a=Ve.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=Ve.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Dd(),Ve.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||Kp)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=bb;else a.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",a.length,e);return t.index++,a}function Ml(e,t){return typeof t=="function"?t(e):t}function zr(e,t,a){var o=Ln();if(a!==void 0){var r=a(t);if(Uh){ht(!0);try{a(t)}finally{ht(!1)}}}else r=t;return o.memoizedState=o.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},o.queue=e,e=e.dispatch=gb.bind(null,Ve,e),[o.memoizedState,e]}function ss(e){var t=Ct();return oc(t,Jt,e)}function oc(e,t,a){var o=e.queue;if(o===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");o.lastRenderedReducer=a;var r=e.baseQueue,d=o.pending;if(d!==null){if(r!==null){var p=r.next;r.next=d.next,d.next=p}t.baseQueue!==r&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=r=d,o.pending=null}if(d=e.baseState,r===null)e.memoizedState=d;else{t=r.next;var v=p=null,T=null,_=t,H=!1;do{var R=_.lane&-536870913;if(R!==_.lane?(tt&R)===R:(ks&R)===R){var D=_.revertLane;if(D===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),R===Ch&&(H=!0);else if((ks&D)===D){_=_.next,D===Ch&&(H=!0);continue}else R={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},T===null?(v=T=R,p=d):T=T.next=R,Ve.lanes|=D,Uf|=D;R=_.action,Uh&&a(d,R),d=_.hasEagerState?_.eagerState:a(d,R)}else D={lane:R,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},T===null?(v=T=D,p=d):T=T.next=D,Ve.lanes|=R,Uf|=R;_=_.next}while(_!==null&&_!==t);if(T===null?p=d:T.next=v,!Rl(d,e.memoizedState)&&(da=!0,H&&(a=_2,a!==null)))throw a;e.memoizedState=d,e.baseState=p,e.baseQueue=T,o.lastRenderedState=d}return r===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function rs(e){var t=Ct(),a=t.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=e;var o=a.dispatch,r=a.pending,d=t.memoizedState;if(r!==null){a.pending=null;var p=r=r.next;do d=e(d,p.action),p=p.next;while(p!==r);Rl(d,t.memoizedState)||(da=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),a.lastRenderedState=d}return[d,o]}function Nr(e,t,a){var o=Ve,r=Ln();if(ct){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var d=a();O2||d===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),O2=!0)}else{if(d=t(),O2||(a=t(),Rl(d,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),O2=!0)),Kt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");tt&127||Pm(o,t,d)}return r.memoizedState=d,a={value:d,getSnapshot:t},r.queue=a,hs(cc.bind(null,o,a,e),[e]),o.flags|=2048,Au(Iu|Vl,{destroy:void 0},eg.bind(null,o,a,d,t),null),d}function fs(e,t,a){var o=Ve,r=Ct(),d=ct;if(d){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");a=a()}else if(a=t(),!O2){var p=t();Rl(a,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),O2=!0)}(p=!Rl((Jt||r).memoizedState,a))&&(r.memoizedState=a,da=!0),r=r.queue;var v=cc.bind(null,o,r,e);if(Xn(2048,Vl,v,[e]),r.getSnapshot!==t||p||fa!==null&&fa.memoizedState.tag&Iu){if(o.flags|=2048,Au(Iu|Vl,{destroy:void 0},eg.bind(null,o,r,a,t),null),Kt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");d||ks&127||Pm(o,t,a)}return a}function Pm(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ve.updateQueue,t===null?(t=Dd(),Ve.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function eg(e,t,a,o){t.value=a,t.getSnapshot=o,sc(t)&&tg(e)}function cc(e,t,a){return a(function(){sc(t)&&(vu(2,"updateSyncExternalStore()",e),tg(e))})}function sc(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Rl(e,a)}catch{return!0}}function tg(e){var t=za(e,2);t!==null&&je(t,e,2)}function e1(e){var t=Ln();if(typeof e=="function"){var a=e;if(e=a(),Uh){ht(!0);try{a()}finally{ht(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ml,lastRenderedState:e},t}function rc(e){e=e1(e);var t=e.queue,a=u1.bind(null,Ve,t);return t.dispatch=a,[e.memoizedState,a]}function ds(e){var t=Ln();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Gd.bind(null,Ve,!0,a),a.dispatch=t,[e,t]}function zd(e,t){var a=Ct();return Ur(a,Jt,e,t)}function Ur(e,t,a,o){return e.baseState=a,oc(e,Jt,typeof o=="function"?o:Ml)}function Nd(e,t){var a=Ct();return Jt!==null?Ur(a,Jt,e,t):(a.baseState=e,[e,a.queue.dispatch])}function T3(e,t,a,o,r){if(ia(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var d={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){d.listeners.push(p)}};F.T!==null?a(!0):d.isTransition=!1,o(d),a=t.pending,a===null?(d.next=t.pending=d,fc(t,d)):(d.next=a.next,t.pending=a.next=d)}}function fc(e,t){var a=t.action,o=t.payload,r=e.state;if(t.isTransition){var d=F.T,p={};p._updatedFibers=new Set,F.T=p;try{var v=a(r,o),T=F.S;T!==null&&T(p,v),ng(e,t,v)}catch(_){Ud(e,t,_)}finally{d!==null&&p.types!==null&&(d.types!==null&&d.types!==p.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),d.types=p.types),F.T=d,d===null&&p._updatedFibers&&(e=p._updatedFibers.size,p._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{p=a(r,o),ng(e,t,p)}catch(_){Ud(e,t,_)}}function ng(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?(F.asyncTransitions++,a.then(ms,ms),a.then(function(o){yo(e,t,o)},function(o){return Ud(e,t,o)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):yo(e,t,a)}function yo(e,t,a){t.status="fulfilled",t.value=a,t1(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,fc(e,a)))}function Ud(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,t1(t),t=t.next;while(t!==o)}e.action=null}function t1(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function vo(e,t){return t}function Cl(e,t){if(ct){var a=Kt.formState;if(a!==null){e:{var o=Ve;if(ct){if(on){t:{for(var r=on,d=Ku;r.nodeType!==8;){if(!d){r=null;break t}if(r=Bl(r.nextSibling),r===null){r=null;break t}}d=r.data,r=d===_6||d===eE?r:null}if(r){on=Bl(r.nextSibling),o=r.data===_6;break e}}Il(o)}o=!1}o&&(t=a[0])}}return a=Ln(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vo,lastRenderedState:t},a.queue=o,a=u1.bind(null,Ve,o),o.dispatch=a,o=e1(!1),d=Gd.bind(null,Ve,!1,o.queue),o=Ln(),r={state:t,dispatch:null,action:e,pending:null},o.queue=r,a=T3.bind(null,Ve,r,d,a),r.dispatch=a,o.memoizedState=e,[t,a,!1]}function dc(e){var t=Ct();return n1(t,Jt,e)}function n1(e,t,a){if(t=oc(e,t,vo)[0],e=ss(Ml)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=Od(t)}catch(p){throw p===x2?X4:p}else o=t;t=Ct();var r=t.queue,d=r.dispatch;return a!==t.memoizedState&&(Ve.flags|=2048,Au(Iu|Vl,{destroy:void 0},ag.bind(null,r,a),null)),[o,d,e]}function ag(e,t){e.action=t}function hc(e){var t=Ct(),a=Jt;if(a!==null)return n1(t,a,e);Ct(),t=t.memoizedState,a=Ct();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function Au(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=Ve.updateQueue,t===null&&(t=Dd(),Ve.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function a1(e){var t=Ln();return e={current:e},t.memoizedState=e}function mc(e,t,a,o){var r=Ln();Ve.flags|=e,r.memoizedState=Au(Iu|t,{destroy:void 0},a,o===void 0?null:o)}function Xn(e,t,a,o){var r=Ct();o=o===void 0?null:o;var d=r.memoizedState.inst;Jt!==null&&o!==null&&Im(o,Jt.memoizedState.deps)?r.memoizedState=Au(t,d,a,o):(Ve.flags|=e,r.memoizedState=Au(Iu|t,d,a,o))}function hs(e,t){(Ve.mode&Oo)!==Ge?mc(276826112,Vl,e,t):mc(8390656,Vl,e,t)}function A3(e){Ve.flags|=4;var t=Ve.updateQueue;if(t===null)t=Dd(),Ve.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Bd(e){var t=Ln(),a={impl:e};return t.memoizedState=a,function(){if((pt&xa)!==Ra)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Br(e){var t=Ct().memoizedState;return A3({ref:t,nextImpl:e}),function(){if((pt&xa)!==Ra)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function Fa(e,t){var a=4194308;return(Ve.mode&Oo)!==Ge&&(a|=134217728),mc(a,Wi,e,t)}function Dl(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function _u(e,t,a){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!=null?a.concat([e]):null;var o=4194308;(Ve.mode&Oo)!==Ge&&(o|=134217728),mc(o,Wi,Dl.bind(null,t,e),a)}function Hr(e,t,a){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!=null?a.concat([e]):null,Xn(4,Wi,Dl.bind(null,t,e),a)}function l1(e,t){return Ln().memoizedState=[e,t===void 0?null:t],e}function Ri(e,t){var a=Ct();t=t===void 0?null:t;var o=a.memoizedState;return t!==null&&Im(t,o[1])?o[0]:(a.memoizedState=[e,t],e)}function $a(e,t){var a=Ln();t=t===void 0?null:t;var o=e();if(Uh){ht(!0);try{e()}finally{ht(!1)}}return a.memoizedState=[o,t],o}function nn(e,t){var a=Ct();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&Im(t,o[1]))return o[0];if(o=e(),Uh){ht(!0);try{e()}finally{ht(!1)}}return a.memoizedState=[o,t],o}function Lr(e,t){var a=Ln();return Dt(a,e,t)}function xu(e,t){var a=Ct();return Dn(a,Jt.memoizedState,e,t)}function Ke(e,t){var a=Ct();return Jt===null?Dt(a,e,t):Dn(a,Jt.memoizedState,e,t)}function Dt(e,t,a){return a===void 0||ks&1073741824&&!(tt&261930)?e.memoizedState=t:(e.memoizedState=a,e=Xr(),Ve.lanes|=e,Uf|=e,a)}function Dn(e,t,a,o){return Rl(a,t)?a:C2.current!==null?(e=Dt(e,a,o),Rl(e,t)||(da=!0),e):!(ks&42)||ks&1073741824&&!(tt&261930)?(da=!0,e.memoizedState=a):(e=Xr(),Ve.lanes|=e,Uf|=e,t)}function ms(){F.asyncTransitions--}function gs(e,t,a,o,r){var d=_t.p;_t.p=d!==0&&d<Aa?d:Aa;var p=F.T,v={};v._updatedFibers=new Set,F.T=v,Gd(e,!1,t,a);try{var T=r(),_=F.S;if(_!==null&&_(v,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){F.asyncTransitions++,T.then(ms,ms);var H=F0(T,o);ps(e,t,H,Ua(e))}else ps(e,t,o,Ua(e))}catch(R){ps(e,t,{then:function(){},status:"rejected",reason:R},Ua(e))}finally{_t.p=d,p!==null&&v.types!==null&&(p.types!==null&&p.types!==v.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),p.types=v.types),F.T=p,p===null&&v._updatedFibers&&(e=v._updatedFibers.size,v._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function wo(e,t,a,o){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var r=Hd(e).queue;S3(e),gs(e,r,t,Xh,a===null?G:function(){return Gr(e),a(o)})}function Hd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Xh,baseState:Xh,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ml,lastRenderedState:Xh},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ml,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Gr(e){F.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=Hd(e);t.next===null&&(t=e.alternate.memoizedState),ps(e,t.next.queue,{},Ua(e))}function gc(){var e=e1(!1);return e=gs.bind(null,Ve,e.queue,!0,!1),Ln().memoizedState=e,[!1,e]}function _3(){var e=ss(Ml)[0],t=Ct().memoizedState;return[typeof e=="boolean"?e:Od(e),t]}function rn(){var e=rs(Ml)[0],t=Ct().memoizedState;return[typeof e=="boolean"?e:Od(e),t]}function bo(){return Tt(ry)}function Ld(){var e=Ln(),t=Kt.identifierPrefix;if(ct){var a=Rs,o=Gs;a=(o&~(1<<32-Ta(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=F4++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=lM++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function i1(){return Ln().memoizedState=x3.bind(null,Ve)}function x3(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var o=Ua(a),r=kn(o),d=Su(a,r,o);d!==null&&(vu(o,"refresh()",e),je(d,a,o),ni(d,a,o)),e=J0(),t!=null&&d!==null&&console.error("The seed argument is not enabled outside experimental channels."),r.payload={cache:e};return}a=a.return}}function gb(e,t,a){var o=arguments;typeof o[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),o=Ua(e);var r={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};ia(e)?wn(t,r):(r=Ic(e,t,r,o),r!==null&&(vu(o,"dispatch()",e),je(r,e,o),Rd(r,t,o)))}function u1(e,t,a){var o=arguments;typeof o[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),o=Ua(e),ps(e,t,a,o)&&vu(o,"setState()",e)}function ps(e,t,a,o){var r={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ia(e))wn(t,r);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null)){var p=F.H;F.H=No;try{var v=t.lastRenderedState,T=d(v,a);if(r.hasEagerState=!0,r.eagerState=T,Rl(T,v))return Er(e,t,r,0),Kt===null&&V0(),!1}catch{}finally{F.H=p}}if(a=Ic(e,t,r,o),a!==null)return je(a,e,o),Rd(a,t,o),!0}return!1}function Gd(e,t,a,o){if(F.T===null&&Ch===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),o={lane:2,revertLane:Xg(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},ia(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Ic(e,a,o,2),t!==null&&(vu(2,"setOptimistic()",e),je(t,e,2))}function ia(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function wn(e,t){z2=K4=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Rd(e,t,a){if(a&4194048){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,wa(e,a)}}function ys(e){if(e!==null&&typeof e!="function"){var t=String(e);x9.has(t)||(x9.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Rr(e,t,a,o){var r=e.memoizedState,d=a(o,r);if(e.mode&pl){ht(!0);try{d=a(o,r)}finally{ht(!1)}}d===void 0&&(t=xe(t)||"Component",E9.has(t)||(E9.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),r=d==null?r:We({},r,d),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}function o1(e,t,a,o,r,d,p){var v=e.stateNode;if(typeof v.shouldComponentUpdate=="function"){if(a=v.shouldComponentUpdate(o,d,p),e.mode&pl){ht(!0);try{a=v.shouldComponentUpdate(o,d,p)}finally{ht(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",xe(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!Sr(a,o)||!Sr(r,d):!0}function Mu(e,t,a,o){var r=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==r&&(e=ce(e)||"Component",y9.has(e)||(y9.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),a6.enqueueReplaceState(t,t.state,null))}function Cu(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=We({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function c1(e){Bb(e),console.warn(`%s
213
-
214
- %s
215
- `,N2?"An error occurred in the <"+N2+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
216
- Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function s1(e){var t=N2?"The above error occurred in the <"+N2+"> component.":"The above error occurred in one of your React components.",a="React will try to recreate this component tree from scratch using the error boundary you provided, "+((l6||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var o=e.environmentName;e=[`%o
217
-
218
- %s
219
-
220
- %s
221
- `,e,t,a].slice(0),typeof e[0]=="string"?e.splice(0,1,cE+" "+e[0],sE,bv+o+bv,rE):e.splice(0,0,cE,sE,bv+o+bv,rE),e.unshift(console),o=_M.apply(console.error,e),o()}else console.error(`%o
222
-
223
- %s
224
-
225
- %s
226
- `,e,t,a)}function lg(e){Bb(e)}function jd(e,t){try{N2=t.source?ce(t.source):null,l6=null;var a=t.value;if(F.actQueue!==null)F.thrownErrors.push(a);else{var o=e.onUncaughtError;o(a,{componentStack:t.stack})}}catch(r){setTimeout(function(){throw r})}}function ig(e,t,a){try{N2=a.source?ce(a.source):null,l6=ce(t);var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function r1(e,t,a){return a=kn(a),a.tag=Ib,a.payload={element:null},a.callback=function(){fe(t.source,jd,e,t)},a}function f1(e){return e=kn(e),e.tag=Ib,e}function d1(e,t,a,o){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var d=o.value;e.payload=function(){return r(d)},e.callback=function(){Wc(a),fe(o.source,ig,t,a,o)}}var p=a.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){Wc(a),fe(o.source,ig,t,a,o),typeof r!="function"&&(Hf===null?Hf=new Set([this]):Hf.add(this)),eM(this,o),typeof r=="function"||!(a.lanes&2)&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",ce(a)||"Unknown")})}function ug(e,t,a,o,r){if(a.flags|=32768,Vu&&Fr(e,r),o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=a.alternate,t!==null&&Ui(t,a,r,!0),ct&&(zc=!0),a=Ii.current,a!==null){switch(a.tag){case 31:case 13:return $u===null?Zr():a.alternate===null&&Sn===Js&&(Sn=W4),a.flags&=-257,a.flags|=65536,a.lanes=r,o===Q4?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),N1(e,o,r)),!1;case 22:return a.flags|=65536,o===Q4?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),N1(e,o,r)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return N1(e,o,r),Zr(),!1}if(ct)return zc=!0,t=Ii.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=r,o!==qb&&vd(Xa(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:o}),a))):(o!==qb&&vd(Xa(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:o}),a)),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,o=Xa(o,a),r=r1(e.stateNode,o,r),Ad(e,r),Sn!==zf&&(Sn=Bh)),!1;var d=Xa(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:o}),a);if(ty===null?ty=[d]:ty.push(d),Sn!==zf&&(Sn=Bh),t===null)return!0;o=Xa(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=r1(a.stateNode,o,e),Ad(a,e),!1;case 1:if(t=a.type,d=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Hf===null||!Hf.has(d))))return a.flags|=65536,r&=-r,a.lanes|=r,r=f1(r),d1(r,e,a,o),Ad(a,r),!1}a=a.return}while(a!==null);return!1}function ua(e,t,a,o){t.child=e===null?u9(t,null,a,o):Nh(t,e.child,a,o)}function M3(e,t,a,o,r){a=a.render;var d=t.ref;if("ref"in o){var p={};for(var v in o)v!=="ref"&&(p[v]=o[v])}else p=o;return lc(t),o=Wm(e,t,a,p,d,r),v=cs(),e!==null&&!da?(Cd(e,t,r),ji(e,t,r)):(ct&&v&&X0(t),t.flags|=1,ua(e,t,o,r),t.child)}function og(e,t,a,o,r){if(e===null){var d=a.type;return typeof d=="function"&&!jm(d)&&d.defaultProps===void 0&&a.compare===null?(a=Po(d),t.tag=15,t.type=a,jr(t,d),cg(e,t,a,o,r)):(e=Pc(a.type,null,o,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!y1(e,r)){var p=d.memoizedProps;if(a=a.compare,a=a!==null?a:Sr,a(p,o)&&e.ref===t.ref)return ji(e,t,r)}return t.flags|=1,e=yu(d,o),e.ref=t.ref,e.return=t,t.child=e}function cg(e,t,a,o,r){if(e!==null){var d=e.memoizedProps;if(Sr(d,o)&&e.ref===t.ref&&t.type===e.type)if(da=!1,t.pendingProps=o=d,y1(e,r))e.flags&131072&&(da=!0);else return t.lanes=e.lanes,ji(e,t,r)}return dg(e,t,a,o,r)}function sg(e,t,a,o){var r=o.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Op,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if(t.flags&128){if(d=d!==null?d.baseLanes|a:a,e!==null){for(o=t.child=e.child,r=0;o!==null;)r=r|o.lanes|o.childLanes,o=o.sibling;o=r&~d}else o=0,t.child=null;return rg(e,t,d,a,o)}if(a&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Mr(t,d!==null?d.cachePool:null),d!==null?W0(t,d):mo(t),P0(t);else return o=t.lanes=536870912,rg(e,t,d!==null?d.baseLanes|a:a,a,o)}else d!==null?(Mr(t,d.cachePool),W0(t,d),Tu(t),t.memoizedState=null):(e!==null&&Mr(t,null),mo(t),Tu(t));return ua(e,t,r,a),t.child}function vs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Op,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function rg(e,t,a,o,r){var d=ho();return d=d===null?null:{parent:sa._currentValue,pool:d},t.memoizedState={baseLanes:a,cachePool:d},e!==null&&Mr(t,null),mo(t),P0(t),e!==null&&Ui(e,t,o,!0),t.childLanes=r,null}function qd(e,t){var a=t.hidden;return a!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
227
- - <Activity %s>
228
- + <Activity %s>`,a===!0?"hidden":a===!1?"hidden={false}":"hidden={...}",a?'mode="hidden"':'mode="visible"'),t=Yd({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function fg(e,t,a){return Nh(t,e.child,null,a),e=qd(t,t.pendingProps),e.flags|=2,la(t),t.memoizedState=null,e}function C3(e,t,a){var o=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ct){if(o.mode==="hidden")return e=qd(t,o),t.lanes=536870912,vs(null,e);if(Gi(t),(e=on)?(a=zt(e,Ku),a=a!==null&&a.data===qh?a:null,a!==null&&(o={dehydrated:a,treeContext:v3(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=Vm(a),o.return=t,t.child=o,il=t,on=null)):a=null,a===null)throw Na(t,e),Il(t);return t.lanes=536870912,null}return qd(t,o)}var d=e.memoizedState;if(d!==null){var p=d.dehydrated;if(Gi(t),r)if(t.flags&256)t.flags&=-257,t=fg(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(b3(),a&536870912&&Qr(t),da||Ui(e,t,a,!1),r=(a&e.childLanes)!==0,da||r){if(o=Kt,o!==null&&(p=Ko(o,a),p!==0&&p!==d.retryLane))throw d.retryLane=p,za(e,p),je(o,e,p),i6;Zr(),t=fg(e,t,a)}else e=d.treeContext,on=Bl(p.nextSibling),il=t,ct=!0,_f=null,zc=!1,$i=null,Ku=!1,e!==null&&w3(t,e),t=qd(t,o),t.flags|=4096;return t}return d=e.child,o={mode:o.mode,children:o.children},a&536870912&&a&e.lanes&&Qr(t),e=yu(d,o),e.ref=t.ref,t.child=e,e.return=t,e}function Vd(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==a)&&(t.flags|=4194816)}}function dg(e,t,a,o,r){if(a.prototype&&typeof a.prototype.render=="function"){var d=xe(a)||"Unknown";M9[d]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",d,d),M9[d]=!0)}return t.mode&pl&&zo.recordLegacyContextWarning(t,null),e===null&&(jr(t,t.type),a.contextTypes&&(d=xe(a)||"Unknown",D9[d]||(D9[d]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",d)))),lc(t),a=Wm(e,t,a,o,void 0,r),o=cs(),e!==null&&!da?(Cd(e,t,r),ji(e,t,r)):(ct&&o&&X0(t),t.flags|=1,ua(e,t,a,r),t.child)}function hg(e,t,a,o,r,d){return lc(t),Qs=-1,Kp=e!==null&&e.type!==t.type,t.updateQueue=null,a=xd(t,o,a,r),Cn(e,t),o=cs(),e!==null&&!da?(Cd(e,t,d),ji(e,t,d)):(ct&&o&&X0(t),t.flags|=1,ua(e,t,a,d),t.child)}function ws(e,t,a,o,r){switch(E(t)){case!1:var d=t.stateNode,p=new t.type(t.memoizedProps,d.context).state;d.updater.enqueueSetState(d,p,null);break;case!0:t.flags|=128,t.flags|=65536,d=Error("Simulated error coming from DevTools");var v=r&-r;if(t.lanes|=v,p=Kt,p===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");v=f1(v),d1(v,p,t,Xa(d,t)),Ad(t,v)}if(lc(t),t.stateNode===null){if(p=Af,d=a.contextType,"contextType"in a&&d!==null&&(d===void 0||d.$$typeof!==Ji)&&!_9.has(a)&&(_9.add(a),v=d===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof d!="object"?" However, it is set to a "+typeof d+".":d.$$typeof===e2?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(d).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",xe(a)||"Component",v)),typeof d=="object"&&d!==null&&(p=Tt(d)),d=new a(o,p),t.mode&pl){ht(!0);try{d=new a(o,p)}finally{ht(!1)}}if(p=t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=a6,t.stateNode=d,d._reactInternals=t,d._reactInternalInstance=p9,typeof a.getDerivedStateFromProps=="function"&&p===null&&(p=xe(a)||"Component",v9.has(p)||(v9.add(p),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",p,d.state===null?"null":"undefined",p))),typeof a.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"){var T=v=p=null;if(typeof d.componentWillMount=="function"&&d.componentWillMount.__suppressDeprecationWarning!==!0?p="componentWillMount":typeof d.UNSAFE_componentWillMount=="function"&&(p="UNSAFE_componentWillMount"),typeof d.componentWillReceiveProps=="function"&&d.componentWillReceiveProps.__suppressDeprecationWarning!==!0?v="componentWillReceiveProps":typeof d.UNSAFE_componentWillReceiveProps=="function"&&(v="UNSAFE_componentWillReceiveProps"),typeof d.componentWillUpdate=="function"&&d.componentWillUpdate.__suppressDeprecationWarning!==!0?T="componentWillUpdate":typeof d.UNSAFE_componentWillUpdate=="function"&&(T="UNSAFE_componentWillUpdate"),p!==null||v!==null||T!==null){d=xe(a)||"Component";var _=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";b9.has(d)||(b9.add(d),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
229
-
230
- %s uses %s but also contains the following legacy lifecycles:%s%s%s
231
-
232
- The above lifecycles should be removed. Learn more about this warning here:
233
- https://react.dev/link/unsafe-component-lifecycles`,d,_,p!==null?`
234
- `+p:"",v!==null?`
235
- `+v:"",T!==null?`
236
- `+T:""))}}d=t.stateNode,p=xe(a)||"Component",d.render||(a.prototype&&typeof a.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",p):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",p)),!d.getInitialState||d.getInitialState.isReactClassApproved||d.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",p),d.getDefaultProps&&!d.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",p),d.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",p),a.childContextTypes&&!A9.has(a)&&(A9.add(a),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",p)),a.contextTypes&&!T9.has(a)&&(T9.add(a),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",p)),typeof d.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",p),a.prototype&&a.prototype.isPureReactComponent&&typeof d.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",xe(a)||"A pure component"),typeof d.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",p),typeof d.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",p),typeof d.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",p),typeof d.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",p),v=d.props!==o,d.props!==void 0&&v&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",p),d.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",p,p),typeof d.getSnapshotBeforeUpdate!="function"||typeof d.componentDidUpdate=="function"||w9.has(a)||(w9.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",xe(a))),typeof d.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",p),typeof d.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",p),typeof a.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",p),(v=d.state)&&(typeof v!="object"||Rn(v))&&console.error("%s.state: must be set to an object or null",p),typeof d.getChildContext=="function"&&typeof a.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",p),d=t.stateNode,d.props=o,d.state=t.memoizedState,d.refs={},ut(t),p=a.contextType,d.context=typeof p=="object"&&p!==null?Tt(p):Af,d.state===o&&(p=xe(a)||"Component",S9.has(p)||(S9.add(p),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",p))),t.mode&pl&&zo.recordLegacyContextWarning(t,d),zo.recordUnsafeLifecycleWarnings(t,d),d.state=t.memoizedState,p=a.getDerivedStateFromProps,typeof p=="function"&&(Rr(t,a,p,o),d.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(p=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),p!==d.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",ce(t)||"Component"),a6.enqueueReplaceState(d,d.state,null)),Eu(t,o,d,r),Dr(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Oo)!==Ge&&(t.flags|=134217728),d=!0}else if(e===null){d=t.stateNode;var H=t.memoizedProps;v=Cu(a,H),d.props=v;var R=d.context;T=a.contextType,p=Af,typeof T=="object"&&T!==null&&(p=Tt(T)),_=a.getDerivedStateFromProps,T=typeof _=="function"||typeof d.getSnapshotBeforeUpdate=="function",H=t.pendingProps!==H,T||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(H||R!==p)&&Mu(t,d,o,p),Of=!1;var D=t.memoizedState;d.state=D,Eu(t,o,d,r),Dr(),R=t.memoizedState,H||D!==R||Of?(typeof _=="function"&&(Rr(t,a,_,o),R=t.memoizedState),(v=Of||o1(t,a,v,o,D,R,p))?(T||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Oo)!==Ge&&(t.flags|=134217728)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Oo)!==Ge&&(t.flags|=134217728),t.memoizedProps=o,t.memoizedState=R),d.props=o,d.state=R,d.context=p,d=v):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Oo)!==Ge&&(t.flags|=134217728),d=!1)}else{d=t.stateNode,bu(e,t),p=t.memoizedProps,T=Cu(a,p),d.props=T,_=t.pendingProps,D=d.context,R=a.contextType,v=Af,typeof R=="object"&&R!==null&&(v=Tt(R)),H=a.getDerivedStateFromProps,(R=typeof H=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(p!==_||D!==v)&&Mu(t,d,o,v),Of=!1,D=t.memoizedState,d.state=D,Eu(t,o,d,r),Dr();var J=t.memoizedState;p!==_||D!==J||Of||e!==null&&e.dependencies!==null&&_r(e.dependencies)?(typeof H=="function"&&(Rr(t,a,H,o),J=t.memoizedState),(T=Of||o1(t,a,T,o,D,J,v)||e!==null&&e.dependencies!==null&&_r(e.dependencies))?(R||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,J,v),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,J,v)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||p===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=J),d.props=o,d.state=J,d.context=v,d=T):(typeof d.componentDidUpdate!="function"||p===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),d=!1)}if(v=d,Vd(e,t),p=(t.flags&128)!==0,v||p){if(v=t.stateNode,Ti(t),p&&typeof a.getDerivedStateFromError!="function")a=null,jl=-1;else if(a=Z7(v),t.mode&pl){ht(!0);try{Z7(v)}finally{ht(!1)}}t.flags|=1,e!==null&&p?(t.child=Nh(t,e.child,null,r),t.child=Nh(t,null,a,r)):ua(e,t,a,r),t.memoizedState=v.state,e=t.child}else e=ji(e,t,r);return r=t.stateNode,d&&r.props!==o&&(U2||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ce(t)||"a component"),U2=!0),e}function mg(e,t,a,o){return nc(),t.flags|=256,ua(e,t,a,o),t.child}function jr(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
237
- %s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=xe(t)||"Unknown",O9[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),O9[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=xe(t)||"Unknown",C9[t]||(console.error("%s: Function components do not support contextType.",t),C9[t]=!0))}function qr(e){return{baseLanes:e,cachePool:Jm()}}function h1(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=ri),e}function m1(e,t,a){var o,r=t.pendingProps;w(t)&&(t.flags|=128);var d=!1,p=(t.flags&128)!==0;if((o=p)||(o=e!==null&&e.memoizedState===null?!1:(Kn.current&Zp)!==0),o&&(d=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(ct){if(d?Ka(t):Tu(t),(e=on)?(a=zt(e,Ku),a=a!==null&&a.data!==qh?a:null,a!==null&&(o={dehydrated:a,treeContext:v3(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=Vm(a),o.return=t,t.child=o,il=t,on=null)):a=null,a===null)throw Na(t,e),Il(t);return Jg(a)?t.lanes=32:t.lanes=536870912,null}var v=r.children;if(r=r.fallback,d){Tu(t);var T=t.mode;return v=Yd({mode:"hidden",children:v},T),r=es(r,T,a,null),v.return=t,r.return=t,v.sibling=r,t.child=v,r=t.child,r.memoizedState=qr(a),r.childLanes=h1(e,o,a),t.memoizedState=u6,vs(null,r)}return Ka(t),gg(t,v)}var _=e.memoizedState;if(_!==null){var H=_.dehydrated;if(H!==null){if(p)t.flags&256?(Ka(t),t.flags&=-257,t=g1(e,t,a)):t.memoizedState!==null?(Tu(t),t.child=e.child,t.flags|=128,t=null):(Tu(t),v=r.fallback,T=t.mode,r=Yd({mode:"visible",children:r.children},T),v=es(v,T,a,null),v.flags|=2,r.return=t,v.return=t,r.sibling=v,t.child=r,Nh(t,e.child,null,a),r=t.child,r.memoizedState=qr(a),r.childLanes=h1(e,o,a),t.memoizedState=u6,t=vs(null,r));else if(Ka(t),b3(),a&536870912&&Qr(t),Jg(H)){if(o=H.nextSibling&&H.nextSibling.dataset,o){v=o.dgst;var R=o.msg;T=o.stck;var D=o.cstck}d=R,o=v,r=T,H=D,v=d,T=H,v=Error(v||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),v.stack=r||"",v.digest=o,o=T===void 0?null:T,r={value:v,source:null,stack:o},typeof o=="string"&&jb.set(v,r),vd(r),t=g1(e,t,a)}else if(da||Ui(e,t,a,!1),o=(a&e.childLanes)!==0,da||o){if(o=Kt,o!==null&&(r=Ko(o,a),r!==0&&r!==_.retryLane))throw _.retryLane=r,za(e,r),je(o,e,r),i6;uh(H)||Zr(),t=g1(e,t,a)}else uh(H)?(t.flags|=192,t.child=e.child,t=null):(e=_.treeContext,on=Bl(H.nextSibling),il=t,ct=!0,_f=null,zc=!1,$i=null,Ku=!1,e!==null&&w3(t,e),t=gg(t,r.children),t.flags|=4096);return t}}return d?(Tu(t),v=r.fallback,T=t.mode,D=e.child,H=D.sibling,r=yu(D,{mode:"hidden",children:r.children}),r.subtreeFlags=D.subtreeFlags&65011712,H!==null?v=yu(H,v):(v=es(v,T,a,null),v.flags|=2),v.return=t,r.return=t,r.sibling=v,t.child=r,vs(null,r),r=t.child,v=e.child.memoizedState,v===null?v=qr(a):(T=v.cachePool,T!==null?(D=sa._currentValue,T=T.parent!==D?{parent:D,pool:D}:T):T=Jm(),v={baseLanes:v.baseLanes|a,cachePool:T}),r.memoizedState=v,r.childLanes=h1(e,o,a),t.memoizedState=u6,vs(e.child,r)):(_!==null&&(a&62914560)===a&&a&e.lanes&&Qr(t),Ka(t),a=e.child,e=a.sibling,a=yu(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a)}function gg(e,t){return t=Yd({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Yd(e,t){return e=q(22,e,null,t),e.lanes=0,e}function g1(e,t,a){return Nh(t,e.child,null,a),e=gg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pg(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Z0(e.return,t,a)}function p1(e,t,a,o,r,d){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:r,treeForkCount:d}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=o,p.tail=a,p.tailMode=r,p.treeForkCount=d)}function yg(e,t,a){var o=t.pendingProps,r=o.revealOrder,d=o.tail,p=o.children,v=Kn.current;if((o=(v&Zp)!==0)?(v=v&D2|Zp,t.flags|=128):v&=D2,He(Kn,v,t),v=r??"null",r!=="forwards"&&r!=="unstable_legacy-backwards"&&r!=="together"&&r!=="independent"&&!z9[v])if(z9[v]=!0,r==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(r==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof r=="string")switch(r.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',r,r.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',r,r.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',r)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',r);v=d??"null",I4[v]||(d==null?(r==="forwards"||r==="backwards"||r==="unstable_legacy-backwards")&&(I4[v]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):d!=="visible"&&d!=="collapsed"&&d!=="hidden"?(I4[v]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',d)):r!=="forwards"&&r!=="backwards"&&r!=="unstable_legacy-backwards"&&(I4[v]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',d)));e:if((r==="forwards"||r==="backwards"||r==="unstable_legacy-backwards")&&p!==void 0&&p!==null&&p!==!1)if(Rn(p)){for(v=0;v<p.length;v++)if(!Xt(p[v],v))break e}else if(v=Qe(p),typeof v=="function"){if(v=v.call(p))for(var T=v.next(),_=0;!T.done;T=v.next()){if(!Xt(T.value,_))break e;_++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',r);if(ua(e,t,p,a),ct?(tc(),p=zp):p=0,!o&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pg(e,a,t);else if(e.tag===19)pg(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(a=t.child,r=null;a!==null;)e=a.alternate,e!==null&&os(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),p1(t,!1,r,a,d,p);break;case"backwards":case"unstable_legacy-backwards":for(a=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&os(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}p1(t,!0,a,null,d,p);break;case"together":p1(t,!1,null,null,void 0,p);break;default:t.memoizedState=null}return t.child}function ji(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),jl=-1,Uf|=t.lanes,!(a&t.childLanes))if(e!==null){if(Ui(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){for(e=t.child,a=yu(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=yu(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function y1(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&_r(e)))}function D3(e,t,a){switch(t.tag){case 3:$t(t,t.stateNode.containerInfo),Wl(t,sa,e.memoizedState.cache),nc();break;case 27:case 5:ie(t);break;case 4:$t(t,t.stateNode.containerInfo);break;case 10:Wl(t,t.type,t.memoizedProps.value);break;case 12:a&t.childLanes&&(t.flags|=4),t.flags|=2048;var o=t.stateNode;o.effectDuration=-0,o.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,Gi(t),null;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(Ka(t),t.flags|=128,null):a&t.child.childLanes?m1(e,t,a):(Ka(t),e=ji(e,t,a),e!==null?e.sibling:null);Ka(t);break;case 19:var r=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(Ui(e,t,a,!1),o=(a&t.childLanes)!==0),r){if(o)return yg(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),He(Kn,Kn.current,t),o)break;return null;case 22:return t.lanes=0,sg(e,t,a,t.pendingProps);case 24:Wl(t,sa,e.memoizedState.cache)}return ji(e,t,a)}function kd(e,t,a){if(t._debugNeedsRemount&&e!==null){a=Pc(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),a._debugStack=t._debugStack,a._debugTask=t._debugTask;var o=t.return;if(o===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,a.index=t.index,a.sibling=t.sibling,a.return=t.return,a.ref=t.ref,a._debugInfo=t._debugInfo,t===o.child)o.child=a;else{var r=o.child;if(r===null)throw Error("Expected parent to have a child.");for(;r.sibling!==t;)if(r=r.sibling,r===null)throw Error("Expected to find the previous sibling.");r.sibling=a}return t=o.deletions,t===null?(o.deletions=[e],o.flags|=16):t.push(e),a.flags|=2,a}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)da=!0;else{if(!y1(e,a)&&!(t.flags&128))return da=!1,D3(e,t,a);da=!!(e.flags&131072)}else da=!1,(o=ct)&&(tc(),o=(t.flags&1048576)!==0),o&&(o=t.index,tc(),Ym(t,zp,o));switch(t.lanes=0,t.tag){case 16:e:if(o=t.pendingProps,e=_l(t.elementType),t.type=e,typeof e=="function")jm(e)?(o=Cu(e,o),t.tag=1,t.type=e=Po(e),t=ws(null,t,e,o,a)):(t.tag=0,jr(t,e),t.type=e=Po(e),t=dg(null,t,e,o,a));else{if(e!=null){if(r=e.$$typeof,r===rf){t.tag=11,t.type=e=Y0(e),t=M3(null,t,e,o,a);break e}else if(r===ph){t.tag=14,t=og(null,t,e,o,a);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===Ba&&(t=" Did you wrap a component in React.lazy() more than once?"),a=xe(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return dg(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,r=Cu(o,t.pendingProps),ws(e,t,o,r,a);case 3:e:{if($t(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");o=t.pendingProps;var d=t.memoizedState;r=d.element,bu(e,t),Eu(t,o,null,a);var p=t.memoizedState;if(o=p.cache,Wl(t,sa,o),o!==d.cache&&so(t,[sa],a,!0),Dr(),o=p.element,d.isDehydrated)if(d={element:o,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=mg(e,t,o,a);break e}else if(o!==r){r=Xa(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),vd(r),t=mg(e,t,o,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(on=Bl(e.firstChild),il=t,ct=!0,_f=null,zc=!1,$i=null,Ku=!0,a=u9(t,null,o,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(nc(),o===r){t=ji(e,t,a);break e}ua(e,t,o,a)}t=t.child}return t;case 26:return Vd(e,t),e===null?(a=Ig(t.type,null,t.pendingProps,null))?t.memoizedState=a:ct||(a=t.type,e=t.pendingProps,o=Ft(Hl.current),o=lh(o).createElement(a),o[ln]=t,o[ll]=e,an(o,a,e),xn(o),t.stateNode=o):t.memoizedState=Ig(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ie(t),e===null&&ct&&(o=Ft(Hl.current),r=ee(),o=t.stateNode=xo(t.type,t.pendingProps,o,r,!1),zc||(r=hl(o,t.type,t.pendingProps,r),r!==null&&(ts(t,0).serverProps=r)),il=t,Ku=!0,r=on,Ac(t.type)?(D6=r,on=Bl(o.firstChild)):on=r),ua(e,t,t.pendingProps.children,a),Vd(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ct&&(d=ee(),o=cd(t.type,d.ancestorInfo),r=on,(p=!r)||(p=i4(r,t.type,t.pendingProps,Ku),p!==null?(t.stateNode=p,zc||(d=hl(p,t.type,t.pendingProps,d),d!==null&&(ts(t,0).serverProps=d)),il=t,on=Bl(p.firstChild),Ku=!1,d=!0):d=!1,p=!d),p&&(o&&Na(t,r),Il(t))),ie(t),r=t.type,d=t.pendingProps,p=e!==null?e.memoizedProps:null,o=d.children,ef(r,d)?o=null:p!==null&&ef(r,p)&&(t.flags|=32),t.memoizedState!==null&&(r=Wm(e,t,Md,null,null,a),ry._currentValue=r),Vd(e,t),ua(e,t,o,a),t.child;case 6:return e===null&&ct&&(a=t.pendingProps,e=ee(),o=e.ancestorInfo.current,a=o!=null?sd(a,o.tag,e.ancestorInfo.implicitRootScope):!0,e=on,(o=!e)||(o=u4(e,t.pendingProps,Ku),o!==null?(t.stateNode=o,il=t,on=null,o=!0):o=!1,o=!o),o&&(a&&Na(t,e),Il(t))),null;case 13:return m1(e,t,a);case 4:return $t(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Nh(t,null,o,a):ua(e,t,o,a),t.child;case 11:return M3(e,t,t.type,t.pendingProps,a);case 7:return ua(e,t,t.pendingProps,a),t.child;case 8:return ua(e,t,t.pendingProps.children,a),t.child;case 12:return t.flags|=4,t.flags|=2048,o=t.stateNode,o.effectDuration=-0,o.passiveEffectDuration=-0,ua(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.type,r=t.pendingProps,d=r.value,"value"in r||N9||(N9=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Wl(t,o,d),ua(e,t,r.children,a),t.child;case 9:return r=t.type._context,o=t.pendingProps.children,typeof o!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),lc(t),r=Tt(r),o=Jb(o,r,void 0),t.flags|=1,ua(e,t,o,a),t.child;case 14:return og(e,t,t.type,t.pendingProps,a);case 15:return cg(e,t,t.type,t.pendingProps,a);case 19:return yg(e,t,a);case 31:return C3(e,t,a);case 22:return sg(e,t,a,t.pendingProps);case 24:return lc(t),o=Tt(sa),e===null?(r=ho(),r===null&&(r=Kt,d=J0(),r.pooledCache=d,as(d),d!==null&&(r.pooledCacheLanes|=a),r=d),t.memoizedState={parent:o,cache:r},ut(t),Wl(t,sa,r)):(e.lanes&a&&(bu(e,t),Eu(t,null,null,a),Dr()),r=e.memoizedState,d=t.memoizedState,r.parent!==o?(r={parent:o,cache:o},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Wl(t,sa,o)):(o=d.cache,Wl(t,sa,o),o!==r.cache&&so(t,[sa],a,!0))),ua(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Du(e){e.flags|=4}function v1(e,t,a,o,r){if((t=(e.mode&Fx)!==Ge)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Hg())e.flags|=8192;else throw zh=Q4,Fb}else e.flags&=-16777217}function O3(e,t){if(t.type!=="stylesheet"||(t.state.loading&Pu)!==kh)e.flags&=-16777217;else if(e.flags|=16777216,!it(t))if(Hg())e.flags|=8192;else throw zh=Q4,Fb}function Vr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?cr():536870912,e.lanes|=t,Gh|=t)}function Yr(e,t){if(!ct)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)if((e.mode&Pe)!==Ge){for(var r=e.selfBaseDuration,d=e.child;d!==null;)a|=d.lanes|d.childLanes,o|=d.subtreeFlags&65011712,o|=d.flags&65011712,r+=d.treeBaseDuration,d=d.sibling;e.treeBaseDuration=r}else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,o|=r.subtreeFlags&65011712,o|=r.flags&65011712,r.return=e,r=r.sibling;else if((e.mode&Pe)!==Ge){r=e.actualDuration,d=e.selfBaseDuration;for(var p=e.child;p!==null;)a|=p.lanes|p.childLanes,o|=p.subtreeFlags,o|=p.flags,r+=p.actualDuration,d+=p.treeBaseDuration,p=p.sibling;e.actualDuration=r,e.treeBaseDuration=d}else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function vg(e,t,a){var o=t.pendingProps;switch(Q0(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lt(t),null;case 1:return Lt(t),null;case 3:return a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Ni(sa,t),V(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ns(t)?(ac(),Du(t)):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,yd())),Lt(t),null;case 26:var r=t.type,d=t.memoizedState;return e===null?(Du(t),d!==null?(Lt(t),O3(t,d)):(Lt(t),v1(t,r,null,o,a))):d?d!==e.memoizedState?(Du(t),Lt(t),O3(t,d)):(Lt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&Du(t),Lt(t),v1(t,r,e,o,a)),null;case 27:if(ve(t),a=Ft(Hl.current),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Du(t);else{if(!o){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Lt(t),null}e=ee(),ns(t)?km(t):(e=xo(r,o,a,e,!0),t.stateNode=e,Du(t))}return Lt(t),null;case 5:if(ve(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Du(t);else{if(!o){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Lt(t),null}var p=ee();if(ns(t))km(t);else{switch(d=Ft(Hl.current),cd(r,p.ancestorInfo),p=p.context,d=lh(d),p){case V2:d=d.createElementNS($e,r);break;case yv:d=d.createElementNS(Je,r);break;default:switch(r){case"svg":d=d.createElementNS($e,r);break;case"math":d=d.createElementNS(Je,r);break;case"script":d=d.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof o.is=="string"?d.createElement("select",{is:o.is}):d.createElement("select"),o.multiple?d.multiple=!0:o.size&&(d.size=o.size);break;default:d=typeof o.is=="string"?d.createElement(r,{is:o.is}):d.createElement(r),r.indexOf("-")===-1&&(r!==r.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),Object.prototype.toString.call(d)!=="[object HTMLUnknownElement]"||Ll.call(nE,r)||(nE[r]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",r)))}}d[ln]=t,d[ll]=o;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)d.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=d;e:switch(an(d,r,o),r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Du(t)}}return Lt(t),v1(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&Du(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=Ft(Hl.current),a=ee(),ns(t)){if(e=t.stateNode,a=t.memoizedProps,r=!zc,o=null,d=il,d!==null)switch(d.tag){case 3:r&&(r=s4(e,a,o),r!==null&&(ts(t,0).serverProps=r));break;case 27:case 5:o=d.memoizedProps,r&&(r=s4(e,a,o),r!==null&&(ts(t,0).serverProps=r))}e[ln]=t,e=!!(e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||Qg(e.nodeValue,a)),e||Il(t,!0)}else r=a.ancestorInfo.current,r!=null&&sd(o,r.tag,a.ancestorInfo.implicitRootScope),e=lh(e).createTextNode(o),e[ln]=t,t.stateNode=e}return Lt(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=ns(t),a!==null){if(e===null){if(!o)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[ln]=t,Lt(t),(t.mode&Pe)!==Ge&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else ac(),nc(),!(t.flags&128)&&(a=t.memoizedState=null),t.flags|=4,Lt(t),(t.mode&Pe)!==Ge&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=yd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(la(t),t):(la(t),null);if(t.flags&128)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Lt(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=o,d=ns(t),r!==null&&r.dehydrated!==null){if(e===null){if(!d)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");d[ln]=t,Lt(t),(t.mode&Pe)!==Ge&&r!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration))}else ac(),nc(),!(t.flags&128)&&(r=t.memoizedState=null),t.flags|=4,Lt(t),(t.mode&Pe)!==Ge&&r!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration));r=!1}else r=yd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(la(t),t):(la(t),null)}return la(t),t.flags&128?(t.lanes=a,(t.mode&Pe)!==Ge&&is(t),t):(a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,r=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(r=o.alternate.memoizedState.cachePool.pool),d=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),d!==r&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Vr(t,t.updateQueue),Lt(t),(t.mode&Pe)!==Ge&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return V(t),e===null&&Ec(t.stateNode.containerInfo),Lt(t),null;case 10:return Ni(t.type,t),Lt(t),null;case 19:if(ke(Kn,t),o=t.memoizedState,o===null)return Lt(t),null;if(r=(t.flags&128)!==0,d=o.rendering,d===null)if(r)Yr(o,!1);else{if(Sn!==Js||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(d=os(e),d!==null){for(t.flags|=128,Yr(o,!1),e=d.updateQueue,t.updateQueue=e,Vr(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)qm(a,e),a=a.sibling;return He(Kn,Kn.current&D2|Zp,t),ct&&zi(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&ca()>lv&&(t.flags|=128,r=!0,Yr(o,!1),t.lanes=4194304)}else{if(!r)if(e=os(d),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Vr(t,e),Yr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!d.alternate&&!ct)return Lt(t),null}else 2*ca()-o.renderingStartTime>lv&&a!==536870912&&(t.flags|=128,r=!0,Yr(o,!1),t.lanes=4194304);o.isBackwards?(d.sibling=t.child,t.child=d):(e=o.last,e!==null?e.sibling=d:t.child=d,o.last=d)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=ca(),e.sibling=null,a=Kn.current,a=r?a&D2|Zp:a&D2,He(Kn,a,t),ct&&zi(t,o.treeForkCount),e):(Lt(t),null);case 22:case 23:return la(t),Li(t),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?a&536870912&&!(t.flags&128)&&(Lt(t),t.subtreeFlags&6&&(t.flags|=8192)):Lt(t),a=t.updateQueue,a!==null&&Vr(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&ke(Dh,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ni(sa,t),Lt(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function z3(e,t){switch(Q0(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Pe)!==Ge&&is(t),t):null;case 3:return Ni(sa,t),V(t),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ve(t),null;case 31:if(t.memoizedState!==null){if(la(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");nc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Pe)!==Ge&&is(t),t):null;case 13:if(la(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");nc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Pe)!==Ge&&is(t),t):null;case 19:return ke(Kn,t),null;case 4:return V(t),null;case 10:return Ni(t.type,t),null;case 22:case 23:return la(t),Li(t),e!==null&&ke(Dh,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Pe)!==Ge&&is(t),t):null;case 24:return Ni(sa,t),null;case 25:return null;default:return null}}function wg(e,t){switch(Q0(t),t.tag){case 3:Ni(sa,t),V(t);break;case 26:case 27:case 5:ve(t);break;case 4:V(t);break;case 31:t.memoizedState!==null&&la(t);break;case 13:la(t);break;case 19:ke(Kn,t);break;case 10:Ni(t.type,t);break;case 22:case 23:la(t),Li(t),e!==null&&ke(Dh,t);break;case 24:Ni(sa,t)}}function Ou(e){return(e.mode&Pe)!==Ge}function N3(e,t){Ou(e)?(yn(),So(t,e),Za()):So(t,e)}function w1(e,t,a){Ou(e)?(yn(),pc(a,e,t),Za()):pc(a,e,t)}function So(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var r=o.next;a=r;do{if((a.tag&e)===e&&(o=void 0,(e&ql)!==J4&&(R2=!0),o=fe(t,tM,a),(e&ql)!==J4&&(R2=!1),o!==void 0&&typeof o!="function")){var d=void 0;d=a.tag&Wi?"useLayoutEffect":a.tag&ql?"useInsertionEffect":"useEffect";var p=void 0;p=o===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof o.then=="function"?`
238
-
239
- It looks like you wrote `+d+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
240
-
241
- `+d+`(() => {
242
- async function fetchData() {
243
- // You can await here
244
- const response = await MyAPI.getData(someId);
245
- // ...
246
- }
247
- fetchData();
248
- }, [someId]); // Or [] if effect doesn't need props or state
249
-
250
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+o,fe(t,function(v,T){console.error("%s must not return anything besides a function, which is used for clean-up.%s",v,T)},d,p)}a=a.next}while(a!==r)}}catch(v){Fe(t,t.return,v)}}function pc(e,t,a){try{var o=t.updateQueue,r=o!==null?o.lastEffect:null;if(r!==null){var d=r.next;o=d;do{if((o.tag&e)===e){var p=o.inst,v=p.destroy;v!==void 0&&(p.destroy=void 0,(e&ql)!==J4&&(R2=!0),r=t,fe(r,nM,r,a,v),(e&ql)!==J4&&(R2=!1))}o=o.next}while(o!==d)}}catch(T){Fe(t,t.return,T)}}function Xd(e,t){Ou(e)?(yn(),So(t,e),Za()):So(t,e)}function b1(e,t,a){Ou(e)?(yn(),pc(a,e,t),Za()):pc(a,e,t)}function bg(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||U2||(a.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ce(e)||"instance"),a.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ce(e)||"instance"));try{fe(e,Or,t,a)}catch(o){Fe(e,e.return,o)}}}function Qd(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function U3(e,t){var a=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||U2||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ce(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ce(e)||"instance"));try{var r=Cu(e.type,a),d=fe(e,Qd,t,r,o);a=U9,d!==void 0||a.has(e.type)||(a.add(e.type),fe(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",ce(e))})),t.__reactInternalSnapshotBeforeUpdate=d}catch(p){Fe(e,e.return,p)}}function S1(e,t,a){a.props=Cu(e.type,e.memoizedProps),a.state=e.memoizedState,Ou(e)?(yn(),fe(e,W7,e,t,a),Za()):fe(e,W7,e,t,a)}function B3(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}if(typeof t=="function")if(Ou(e))try{yn(),e.refCleanup=t(a)}finally{Za()}else e.refCleanup=t(a);else typeof t=="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",ce(e)),t.current=a}}function bs(e,t){try{fe(e,B3,e)}catch(a){Fe(e,t,a)}}function ai(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o=="function")try{if(Ou(e))try{yn(),fe(e,o)}finally{Za(e)}else fe(e,o)}catch(r){Fe(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{if(Ou(e))try{yn(),fe(e,a,null)}finally{Za(e)}else fe(e,a,null)}catch(r){Fe(e,t,r)}else a.current=null}function Sg(e,t,a,o){var r=e.memoizedProps,d=r.id,p=r.onCommit;r=r.onRender,t=t===null?"mount":"update",V4&&(t="nested-update"),typeof r=="function"&&r(d,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof p=="function"&&p(d,t,o,a)}function H3(e,t,a,o){var r=e.memoizedProps;e=r.id,r=r.onPostCommit,t=t===null?"mount":"update",V4&&(t="nested-update"),typeof r=="function"&&r(e,t,o,a)}function yc(e){var t=e.type,a=e.memoizedProps,o=e.stateNode;try{fe(e,K3,o,t,a,e)}catch(r){Fe(e,e.return,r)}}function E1(e,t,a){try{fe(e,Y1,e.stateNode,e.type,a,t,e)}catch(o){Fe(e,e.return,o)}}function Eg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ac(e.type)||e.tag===4}function T1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Eg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ac(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kr(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?($3(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):($3(a),t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Fl));else if(o!==4&&(o===27&&Ac(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(kr(e,t,a),e=e.sibling;e!==null;)kr(e,t,a),e=e.sibling}function Zd(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(o!==4&&(o===27&&Ac(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Zd(e,t,a),e=e.sibling;e!==null;)Zd(e,t,a),e=e.sibling}function Tg(e){for(var t,a=e.return;a!==null;){if(Eg(a)){t=a;break}a=a.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,a=T1(e),Zd(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(k1(a),t.flags&=-33),t=T1(e),Zd(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=T1(e),kr(e,a,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Ag(e){var t=e.stateNode,a=e.memoizedProps;try{fe(e,Ru,e.type,a,t,e)}catch(o){Fe(e,e.return,o)}}function _g(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function pb(e,t){if(e=e.containerInfo,x6=Sv,e=R0(e),Nm(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var r=o.anchorOffset,d=o.focusNode;o=o.focusOffset;try{a.nodeType,d.nodeType}catch{a=null;break e}var p=0,v=-1,T=-1,_=0,H=0,R=e,D=null;t:for(;;){for(var J;R!==a||r!==0&&R.nodeType!==3||(v=p+r),R!==d||o!==0&&R.nodeType!==3||(T=p+o),R.nodeType===3&&(p+=R.nodeValue.length),(J=R.firstChild)!==null;)D=R,R=J;for(;;){if(R===e)break t;if(D===a&&++_===r&&(v=p),D===d&&++H===o&&(T=p),(J=R.nextSibling)!==null)break;R=D,D=R.parentNode}R=J}a=v===-1||T===-1?null:{start:v,end:T}}else a=null}a=a||{start:0,end:0}}else a=null;for(M6={focusedElem:e,selectionRange:a},Sv=!1,Ga=t;Ga!==null;)if(t=Ga,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ga=e;else for(;Ga!==null;){switch(e=t=Ga,a=e.alternate,r=e.flags,e.tag){case 0:if(r&4&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)r=e[a],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:r&1024&&a!==null&&U3(e,a);break;case 3:if(r&1024){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)nf(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":nf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(r&1024)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,Ga=e;break}Ga=t.return}}function A1(e,t,a){var o=tn(),r=Pl(),d=Tl(),p=ei(),v=a.flags;switch(a.tag){case 0:case 11:case 15:Ol(e,a),v&4&&N3(a,Wi|Iu);break;case 1:if(Ol(e,a),v&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||U2||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ce(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ce(a)||"instance")),Ou(a)?(yn(),fe(a,Kb,a,e),Za()):fe(a,Kb,a,e);else{var T=Cu(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||U2||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ce(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ce(a)||"instance")),Ou(a)?(yn(),fe(a,F7,a,e,T,t,e.__reactInternalSnapshotBeforeUpdate),Za()):fe(a,F7,a,e,T,t,e.__reactInternalSnapshotBeforeUpdate)}v&64&&bg(a),v&512&&bs(a,a.return);break;case 3:if(t=wu(),Ol(e,a),v&64&&(v=a.updateQueue,v!==null)){if(T=null,a.child!==null)switch(a.child.tag){case 27:case 5:T=a.child.stateNode;break;case 1:T=a.child.stateNode}try{fe(a,Or,v,T)}catch(H){Fe(a,a.return,H)}}e.effectDuration+=xr(t);break;case 27:t===null&&v&4&&Ag(a);case 26:case 5:if(Ol(e,a),t===null){if(v&4)yc(a);else if(v&64){e=a.type,t=a.memoizedProps,T=a.stateNode;try{fe(a,F3,T,e,t,a)}catch(H){Fe(a,a.return,H)}}}v&512&&bs(a,a.return);break;case 12:if(v&4){v=wu(),Ol(e,a),e=a.stateNode,e.effectDuration+=Qa(v);try{fe(a,Sg,a,t,xf,e.effectDuration)}catch(H){Fe(a,a.return,H)}}else Ol(e,a);break;case 31:Ol(e,a),v&4&&Mg(e,a);break;case 13:Ol(e,a),v&4&&Cg(e,a),v&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(v=To.bind(null,a),o4(e,v))));break;case 22:if(v=a.memoizedState!==null||Zs,!v){t=t!==null&&t.memoizedState!==null||ha,T=Zs;var _=ha;Zs=v,(ha=t)&&!_?(qi(e,a,(a.subtreeFlags&8772)!==0),(a.mode&Pe)!==Ge&&0<=De&&0<=Ne&&.05<Ne-De&&j0(a,De,Ne)):Ol(e,a),Zs=T,ha=_}break;case 30:break;default:Ol(e,a)}(a.mode&Pe)!==Ge&&0<=De&&0<=Ne&&((Nn||.05<bn)&&Oi(a,De,Ne,bn,hn),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&.05<Ne-De&&(_g(a.return.alternate,a.return)||$l(a,De,Ne,"Mount"))),na(o),El(r),hn=d,Nn=p}function On(e){var t=e.alternate;t!==null&&(e.alternate=null,On(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Zl(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function It(e,t,a){for(a=a.child;a!==null;)xg(e,t,a),a=a.sibling}function xg(e,t,a){if(Zn&&typeof Zn.onCommitFiberUnmount=="function")try{Zn.onCommitFiberUnmount(Us,a)}catch(_){qu||(qu=!0,console.error("React instrumentation encountered an error: %o",_))}var o=tn(),r=Pl(),d=Tl(),p=ei();switch(a.tag){case 26:ha||ai(a,t),It(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:ha||ai(a,t);var v=ma,T=ci;Ac(a.type)&&(ma=a.stateNode,ci=!1),It(e,t,a),fe(a,Mo,a.stateNode),ma=v,ci=T;break;case 5:ha||ai(a,t);case 6:if(v=ma,T=ci,ma=null,It(e,t,a),ma=v,ci=T,ma!==null)if(ci)try{fe(a,W3,ma,a.stateNode)}catch(_){Fe(a,t,_)}else try{fe(a,I3,ma,a.stateNode)}catch(_){Fe(a,t,_)}break;case 18:ma!==null&&(ci?(e=ma,_s(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ds(e)):_s(ma,a.stateNode));break;case 4:v=ma,T=ci,ma=a.stateNode.containerInfo,ci=!0,It(e,t,a),ma=v,ci=T;break;case 0:case 11:case 14:case 15:pc(ql,a,t),ha||w1(a,t,Wi),It(e,t,a);break;case 1:ha||(ai(a,t),v=a.stateNode,typeof v.componentWillUnmount=="function"&&S1(a,t,v)),It(e,t,a);break;case 21:It(e,t,a);break;case 22:ha=(v=ha)||a.memoizedState!==null,It(e,t,a),ha=v;break;default:It(e,t,a)}(a.mode&Pe)!==Ge&&0<=De&&0<=Ne&&(Nn||.05<bn)&&Oi(a,De,Ne,bn,hn),na(o),El(r),hn=d,Nn=p}function Mg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{fe(t,X1,e)}catch(a){Fe(t,t.return,a)}}}function Cg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{fe(t,Fg,e)}catch(a){Fe(t,t.return,a)}}function L3(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new B9),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new B9),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function vc(e,t){var a=L3(e);t.forEach(function(o){if(!a.has(o)){if(a.add(o),Vu)if(B2!==null&&H2!==null)Fr(H2,B2);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var r=Ts.bind(null,e,o);o.then(r,r)}})}function Ia(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var r=e,d=t,p=a[o],v=tn(),T=d;e:for(;T!==null;){switch(T.tag){case 27:if(Ac(T.type)){ma=T.stateNode,ci=!1;break e}break;case 5:ma=T.stateNode,ci=!1;break e;case 3:case 4:ma=T.stateNode.containerInfo,ci=!0;break e}T=T.return}if(ma===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");xg(r,d,p),ma=null,ci=!1,(p.mode&Pe)!==Ge&&0<=De&&0<=Ne&&.05<Ne-De&&$l(p,De,Ne,"Unmount"),na(v),r=p,d=r.alternate,d!==null&&(d.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Jd(t,e),t=t.sibling}function Jd(e,t){var a=tn(),o=Pl(),r=Tl(),d=ei(),p=e.alternate,v=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ia(t,e),Wa(e),v&4&&(pc(ql|Iu,e,e.return),So(ql|Iu,e),w1(e,e.return,Wi|Iu));break;case 1:if(Ia(t,e),Wa(e),v&512&&(ha||p===null||ai(p,p.return)),v&64&&Zs&&(v=e.updateQueue,v!==null&&(p=v.callbacks,p!==null))){var T=v.shared.hiddenCallbacks;v.shared.hiddenCallbacks=T===null?p:T.concat(p)}break;case 26:if(T=Uo,Ia(t,e),Wa(e),v&512&&(ha||p===null||ai(p,p.return)),v&4){var _=p!==null?p.memoizedState:null;if(v=e.memoizedState,p===null)if(v===null)if(e.stateNode===null){e:{v=e.type,p=e.memoizedProps,T=T.ownerDocument||T;t:switch(v){case"title":_=T.getElementsByTagName("title")[0],(!_||_[vf]||_[ln]||_.namespaceURI===$e||_.hasAttribute("itemprop"))&&(_=T.createElement(v),T.head.insertBefore(_,T.querySelector("head > title"))),an(_,v,p),_[ln]=e,xn(_),v=_;break e;case"link":var H=uf("link","href",T).get(v+(p.href||""));if(H){for(var R=0;R<H.length;R++)if(_=H[R],_.getAttribute("href")===(p.href==null||p.href===""?null:p.href)&&_.getAttribute("rel")===(p.rel==null?null:p.rel)&&_.getAttribute("title")===(p.title==null?null:p.title)&&_.getAttribute("crossorigin")===(p.crossOrigin==null?null:p.crossOrigin)){H.splice(R,1);break t}}_=T.createElement(v),an(_,v,p),T.head.appendChild(_);break;case"meta":if(H=uf("meta","content",T).get(v+(p.content||""))){for(R=0;R<H.length;R++)if(_=H[R],dt(p.content,"content"),_.getAttribute("content")===(p.content==null?null:""+p.content)&&_.getAttribute("name")===(p.name==null?null:p.name)&&_.getAttribute("property")===(p.property==null?null:p.property)&&_.getAttribute("http-equiv")===(p.httpEquiv==null?null:p.httpEquiv)&&_.getAttribute("charset")===(p.charSet==null?null:p.charSet)){H.splice(R,1);break t}}_=T.createElement(v),an(_,v,p),T.head.appendChild(_);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+v+'". This is a bug in React.')}_[ln]=e,xn(_),v=_}e.stateNode=v}else f4(T,e.type,e.stateNode);else e.stateNode=J1(T,v,e.memoizedProps);else _!==v?(_===null?p.stateNode!==null&&(p=p.stateNode,p.parentNode.removeChild(p)):_.count--,v===null?f4(T,e.type,e.stateNode):J1(T,v,e.memoizedProps)):v===null&&e.stateNode!==null&&E1(e,e.memoizedProps,p.memoizedProps)}break;case 27:Ia(t,e),Wa(e),v&512&&(ha||p===null||ai(p,p.return)),p!==null&&v&4&&E1(e,e.memoizedProps,p.memoizedProps);break;case 5:if(Ia(t,e),Wa(e),v&512&&(ha||p===null||ai(p,p.return)),e.flags&32){T=e.stateNode;try{fe(e,k1,T)}catch(de){Fe(e,e.return,de)}}v&4&&e.stateNode!=null&&(T=e.memoizedProps,E1(e,T,p!==null?p.memoizedProps:T)),v&1024&&(o6=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Ia(t,e),Wa(e),v&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");v=e.memoizedProps,p=p!==null?p.memoizedProps:v,T=e.stateNode;try{fe(e,yb,T,p,v)}catch(de){Fe(e,e.return,de)}}break;case 3:if(T=wu(),vv=null,_=Uo,Uo=Q1(t.containerInfo),Ia(t,e),Uo=_,Wa(e),v&4&&p!==null&&p.memoizedState.isDehydrated)try{fe(e,Kg,t.containerInfo)}catch(de){Fe(e,e.return,de)}o6&&(o6=!1,G3(e)),t.effectDuration+=xr(T);break;case 4:v=Uo,Uo=Q1(e.stateNode.containerInfo),Ia(t,e),Wa(e),Uo=v;break;case 12:v=wu(),Ia(t,e),Wa(e),e.stateNode.effectDuration+=Qa(v);break;case 31:Ia(t,e),Wa(e),v&4&&(v=e.updateQueue,v!==null&&(e.updateQueue=null,vc(e,v)));break;case 13:Ia(t,e),Wa(e),e.child.flags&8192&&e.memoizedState!==null!=(p!==null&&p.memoizedState!==null)&&(av=ca()),v&4&&(v=e.updateQueue,v!==null&&(e.updateQueue=null,vc(e,v)));break;case 22:T=e.memoizedState!==null;var D=p!==null&&p.memoizedState!==null,J=Zs,se=ha;if(Zs=J||T,ha=se||D,Ia(t,e),ha=se,Zs=J,D&&!T&&!J&&!se&&(e.mode&Pe)!==Ge&&0<=De&&0<=Ne&&.05<Ne-De&&j0(e,De,Ne),Wa(e),v&8192)e:for(t=e.stateNode,t._visibility=T?t._visibility&~Op:t._visibility|Op,!T||p===null||D||Zs||ha||(wc(e),(e.mode&Pe)!==Ge&&0<=De&&0<=Ne&&.05<Ne-De&&$l(e,De,Ne,"Disconnect")),p=null,t=e;;){if(t.tag===5||t.tag===26){if(p===null){D=p=t;try{_=D.stateNode,T?fe(D,e4,_):fe(D,a4,D.stateNode,D.memoizedProps)}catch(de){Fe(D,D.return,de)}}}else if(t.tag===6){if(p===null){D=t;try{H=D.stateNode,T?fe(D,t4,H):fe(D,l4,H,D.memoizedProps)}catch(de){Fe(D,D.return,de)}}}else if(t.tag===18){if(p===null){D=t;try{R=D.stateNode,T?fe(D,P3,R):fe(D,n4,D.stateNode)}catch(de){Fe(D,D.return,de)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;p===t&&(p=null),t=t.return}p===t&&(p=null),t.sibling.return=t.return,t=t.sibling}v&4&&(v=e.updateQueue,v!==null&&(p=v.retryQueue,p!==null&&(v.retryQueue=null,vc(e,p))));break;case 19:Ia(t,e),Wa(e),v&4&&(v=e.updateQueue,v!==null&&(e.updateQueue=null,vc(e,v)));break;case 30:break;case 21:break;default:Ia(t,e),Wa(e)}(e.mode&Pe)!==Ge&&0<=De&&0<=Ne&&((Nn||.05<bn)&&Oi(e,De,Ne,bn,hn),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<Ne-De&&(_g(e.return.alternate,e.return)||$l(e,De,Ne,"Mount"))),na(a),El(o),hn=r,Nn=d}function Wa(e){var t=e.flags;if(t&2){try{fe(e,Tg,e)}catch(a){Fe(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function G3(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;G3(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ol(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)A1(e,t.alternate,t),t=t.sibling}function _1(e){var t=tn(),a=Pl(),o=Tl(),r=ei();switch(e.tag){case 0:case 11:case 14:case 15:w1(e,e.return,Wi),wc(e);break;case 1:ai(e,e.return);var d=e.stateNode;typeof d.componentWillUnmount=="function"&&S1(e,e.return,d),wc(e);break;case 27:fe(e,Mo,e.stateNode);case 26:case 5:ai(e,e.return),wc(e);break;case 22:e.memoizedState===null&&wc(e);break;case 30:wc(e);break;default:wc(e)}(e.mode&Pe)!==Ge&&0<=De&&0<=Ne&&(Nn||.05<bn)&&Oi(e,De,Ne,bn,hn),na(t),El(a),hn=o,Nn=r}function wc(e){for(e=e.child;e!==null;)_1(e),e=e.sibling}function Dg(e,t,a,o){var r=tn(),d=Pl(),p=Tl(),v=ei(),T=a.flags;switch(a.tag){case 0:case 11:case 15:qi(e,a,o),N3(a,Wi);break;case 1:if(qi(e,a,o),t=a.stateNode,typeof t.componentDidMount=="function"&&fe(a,Kb,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{fe(a,$m,t,e)}catch(_){Fe(a,a.return,_)}}o&&T&64&&bg(a),bs(a,a.return);break;case 27:Ag(a);case 26:case 5:qi(e,a,o),o&&t===null&&T&4&&yc(a),bs(a,a.return);break;case 12:if(o&&T&4){T=wu(),qi(e,a,o),o=a.stateNode,o.effectDuration+=Qa(T);try{fe(a,Sg,a,t,xf,o.effectDuration)}catch(_){Fe(a,a.return,_)}}else qi(e,a,o);break;case 31:qi(e,a,o),o&&T&4&&Mg(e,a);break;case 13:qi(e,a,o),o&&T&4&&Cg(e,a);break;case 22:a.memoizedState===null&&qi(e,a,o),bs(a,a.return);break;case 30:break;default:qi(e,a,o)}(a.mode&Pe)!==Ge&&0<=De&&0<=Ne&&(Nn||.05<bn)&&Oi(a,De,Ne,bn,hn),na(r),El(d),hn=p,Nn=v}function qi(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)Dg(e,t.alternate,t,a),t=t.sibling}function Kd(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&as(e),a!=null&&bd(a))}function Fd(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(as(t),e!=null&&bd(e))}function zl(e,t,a,o,r){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var d=t.sibling;Og(e,t,a,o,d!==null?d.actualStartTime:r),t=d}}function Og(e,t,a,o,r){var d=tn(),p=Pl(),v=Tl(),T=ei(),_=Ef,H=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Pe)!==Ge&&0<t.actualStartTime&&t.flags&1&&q0(t,t.actualStartTime,r,_a,a),zl(e,t,a,o,r),H&2048&&Xd(t,Vl|Iu);break;case 1:(t.mode&Pe)!==Ge&&0<t.actualStartTime&&(t.flags&128?Bm(t,t.actualStartTime,r,[]):t.flags&1&&q0(t,t.actualStartTime,r,_a,a)),zl(e,t,a,o,r);break;case 3:var R=wu(),D=_a;_a=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,zl(e,t,a,o,r),_a=D,H&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),o=t.memoizedState.cache,o!==a&&(as(o),a!=null&&bd(a))),e.passiveEffectDuration+=xr(R);break;case 12:if(H&2048){H=wu(),zl(e,t,a,o,r),e=t.stateNode,e.passiveEffectDuration+=Qa(H);try{fe(t,H3,t,t.alternate,xf,e.passiveEffectDuration)}catch(J){Fe(t,t.return,J)}}else zl(e,t,a,o,r);break;case 31:H=_a,R=t.alternate!==null?t.alternate.memoizedState:null,D=t.memoizedState,R!==null&&D===null?(D=t.deletions,D!==null&&0<D.length&&D[0].tag===18?(_a=!1,R=R.hydrationErrors,R!==null&&Bm(t,t.actualStartTime,r,R)):_a=!0):_a=!1,zl(e,t,a,o,r),_a=H;break;case 13:H=_a,R=t.alternate!==null?t.alternate.memoizedState:null,D=t.memoizedState,R===null||R.dehydrated===null||D!==null&&D.dehydrated!==null?_a=!1:(D=t.deletions,D!==null&&0<D.length&&D[0].tag===18?(_a=!1,R=R.hydrationErrors,R!==null&&Bm(t,t.actualStartTime,r,R)):_a=!0),zl(e,t,a,o,r),_a=H;break;case 23:break;case 22:D=t.stateNode,R=t.alternate,t.memoizedState!==null?D._visibility&Ls?zl(e,t,a,o,r):Ss(e,t,a,o,r):D._visibility&Ls?zl(e,t,a,o,r):(D._visibility|=Ls,bc(e,t,a,o,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),r),(t.mode&Pe)===Ge||_a||(e=t.actualStartTime,0<=e&&.05<r-e&&j0(t,e,r),0<=De&&0<=Ne&&.05<Ne-De&&j0(t,De,Ne))),H&2048&&Kd(R,t);break;case 24:zl(e,t,a,o,r),H&2048&&Fd(t.alternate,t);break;default:zl(e,t,a,o,r)}(t.mode&Pe)!==Ge&&((e=!_a&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(a=t.actualStartTime,0<=a&&.05<r-a&&$l(t,a,r,"Mount")),0<=De&&0<=Ne&&((Nn||.05<bn)&&Oi(t,De,Ne,bn,hn),e&&.05<Ne-De&&$l(t,De,Ne,"Mount"))),na(d),El(p),hn=v,Nn=T,Ef=_}function bc(e,t,a,o,r,d){for(r=r&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child)),t=t.child;t!==null;){var p=t.sibling;$d(e,t,a,o,r,p!==null?p.actualStartTime:d),t=p}}function $d(e,t,a,o,r,d){var p=tn(),v=Pl(),T=Tl(),_=ei(),H=Ef;r&&(t.mode&Pe)!==Ge&&0<t.actualStartTime&&t.flags&1&&q0(t,t.actualStartTime,d,_a,a);var R=t.flags;switch(t.tag){case 0:case 11:case 15:bc(e,t,a,o,r,d),Xd(t,Vl);break;case 23:break;case 22:var D=t.stateNode;t.memoizedState!==null?D._visibility&Ls?bc(e,t,a,o,r,d):Ss(e,t,a,o,d):(D._visibility|=Ls,bc(e,t,a,o,r,d)),r&&R&2048&&Kd(t.alternate,t);break;case 24:bc(e,t,a,o,r,d),r&&R&2048&&Fd(t.alternate,t);break;default:bc(e,t,a,o,r,d)}(t.mode&Pe)!==Ge&&0<=De&&0<=Ne&&(Nn||.05<bn)&&Oi(t,De,Ne,bn,hn),na(p),El(v),hn=T,Nn=_,Ef=H}function Ss(e,t,a,o,r){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var d=t.child;d!==null;){t=d.sibling;var p=e,v=a,T=o,_=t!==null?t.actualStartTime:r,H=Ef;(d.mode&Pe)!==Ge&&0<d.actualStartTime&&d.flags&1&&q0(d,d.actualStartTime,_,_a,v);var R=d.flags;switch(d.tag){case 22:Ss(p,d,v,T,_),R&2048&&Kd(d.alternate,d);break;case 24:Ss(p,d,v,T,_),R&2048&&Fd(d.alternate,d);break;default:Ss(p,d,v,T,_)}Ef=H,d=t}}function Es(e,t,a){if(e.subtreeFlags&$p)for(e=e.child;e!==null;)x1(e,t,a),e=e.sibling}function x1(e,t,a){switch(e.tag){case 26:Es(e,t,a),e.flags&$p&&e.memoizedState!==null&&ep(a,Uo,e.memoizedState,e.memoizedProps);break;case 5:Es(e,t,a);break;case 3:case 4:var o=Uo;Uo=Q1(e.stateNode.containerInfo),Es(e,t,a),Uo=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=$p,$p=16777216,Es(e,t,a),$p=o):Es(e,t,a));break;default:Es(e,t,a)}}function zg(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Nl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a],r=tn();Ga=o,zu(o,e),(o.mode&Pe)!==Ge&&0<=De&&0<=Ne&&.05<Ne-De&&$l(o,De,Ne,"Unmount"),na(r)}zg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)M1(e),e=e.sibling}function M1(e){var t=tn(),a=Pl(),o=Tl(),r=ei();switch(e.tag){case 0:case 11:case 15:Nl(e),e.flags&2048&&b1(e,e.return,Vl|Iu);break;case 3:var d=wu();Nl(e),e.stateNode.passiveEffectDuration+=xr(d);break;case 12:d=wu(),Nl(e),e.stateNode.passiveEffectDuration+=Qa(d);break;case 22:d=e.stateNode,e.memoizedState!==null&&d._visibility&Ls&&(e.return===null||e.return.tag!==13)?(d._visibility&=~Ls,C1(e),(e.mode&Pe)!==Ge&&0<=De&&0<=Ne&&.05<Ne-De&&$l(e,De,Ne,"Disconnect")):Nl(e);break;default:Nl(e)}(e.mode&Pe)!==Ge&&0<=De&&0<=Ne&&(Nn||.05<bn)&&Oi(e,De,Ne,bn,hn),na(t),El(a),Nn=r,hn=o}function C1(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a],r=tn();Ga=o,zu(o,e),(o.mode&Pe)!==Ge&&0<=De&&0<=Ne&&.05<Ne-De&&$l(o,De,Ne,"Unmount"),na(r)}zg(e)}for(e=e.child;e!==null;)Ng(e),e=e.sibling}function Ng(e){var t=tn(),a=Pl(),o=Tl(),r=ei();switch(e.tag){case 0:case 11:case 15:b1(e,e.return,Vl),C1(e);break;case 22:var d=e.stateNode;d._visibility&Ls&&(d._visibility&=~Ls,C1(e));break;default:C1(e)}(e.mode&Pe)!==Ge&&0<=De&&0<=Ne&&(Nn||.05<bn)&&Oi(e,De,Ne,bn,hn),na(t),El(a),Nn=r,hn=o}function zu(e,t){for(;Ga!==null;){var a=Ga,o=a,r=t,d=tn(),p=Pl(),v=Tl(),T=ei();switch(o.tag){case 0:case 11:case 15:b1(o,r,Vl);break;case 23:case 22:o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(r=o.memoizedState.cachePool.pool,r!=null&&as(r));break;case 24:bd(o.memoizedState.cache)}if((o.mode&Pe)!==Ge&&0<=De&&0<=Ne&&(Nn||.05<bn)&&Oi(o,De,Ne,bn,hn),na(d),El(p),Nn=T,hn=v,o=a.child,o!==null)o.return=a,Ga=o;else e:for(a=e;Ga!==null;){if(o=Ga,d=o.sibling,p=o.return,On(o),o===a){Ga=null;break e}if(d!==null){d.return=p,Ga=d;break e}Ga=p}}}function Ug(){oM.forEach(function(e){return e()})}function Bg(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||F.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Ua(e){if((pt&xa)!==Ra&&tt!==0)return tt&-tt;var t=F.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),Xg()):E0()}function Xr(){if(ri===0)if(!(tt&536870912)||ct){var e=wh;wh<<=1,!(wh&3932160)&&(wh=262144),ri=e}else ri=536870912;return e=Ii.current,e!==null&&(e.flags|=32),ri}function je(e,t,a){if(R2&&console.error("useInsertionEffect must not schedule updates."),v6&&(ov=!0),(e===Kt&&(qt===Hh||qt===Lh)||e.cancelPendingCommit!==null)&&(Nu(e,0),li(e,tt,ri,!1)),su(e,a),(pt&xa)!==Ra&&e===Kt){if(ju)switch(t.tag){case 0:case 11:case 15:e=lt&&ce(lt)||"Unknown",F9.has(e)||(F9.add(e),t=ce(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:K9||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),K9=!0)}}else Vu&&_n(e,t,a),eh(t),e===Kt&&((pt&xa)===Ra&&(Bf|=a),Sn===zf&&li(e,tt,ri,!1)),fl(e)}function R3(e,t,a){if((pt&(xa|Pi))!==Ra)throw Error("Should not already be working.");if(tt!==0&&lt!==null){var o=lt,r=ca();switch(V7){case Pp:case Hh:var d=Lp;un&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Suspended",d,r,ku,void 0,"primary-light")):console.timeStamp("Suspended",d,r,ku,void 0,"primary-light"));break;case Lh:d=Lp,un&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Action",d,r,ku,void 0,"primary-light")):console.timeStamp("Action",d,r,ku,void 0,"primary-light"));break;default:un&&(o=r-Lp,3>o||console.timeStamp("Blocked",Lp,r,ku,void 0,5>o?"primary-light":10>o?"primary":100>o?"primary-dark":"error"))}}d=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Hn(e,t))?Eo(e,t):Jr(e,t,!0);var p=a;do{if(d===Js){L2&&!a&&li(e,t,0,!1),t=qt,Lp=ra(),V7=t;break}else{if(o=ca(),r=e.current.alternate,p&&!q3(r)){Di(t),r=La,d=o,!un||d<=r||(jn?jn.run(console.timeStamp.bind(console,"Teared Render",r,d,mt,rt,"error")):console.timeStamp("Teared Render",r,d,mt,rt,"error")),Sc(t,o),d=Jr(e,t,!1),p=!1;continue}if(d===Bh){if(p=t,e.errorRecoveryDisabledLanes&p)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){Di(t),Hm(La,o,t,jn),Sc(t,o),t=v;e:{o=e,d=p,p=ty;var T=o.current.memoizedState.isDehydrated;if(T&&(Nu(o,v).flags|=256),v=Jr(o,v,!1),v!==Bh){if(r6&&!T){o.errorRecoveryDisabledLanes|=d,Bf|=d,d=zf;break e}o=Yl,Yl=p,o!==null&&(Yl===null?Yl=o:Yl.push.apply(Yl,o))}d=v}if(p=!1,d!==Bh)continue;o=ca()}}if(d===Wp){Di(t),Hm(La,o,t,jn),Sc(t,o),Nu(e,0),li(e,t,0,!0);break}e:{switch(a=e,d){case Js:case Wp:throw Error("Root did not complete. This is a bug in React.");case zf:if((t&4194048)!==t)break;case P4:Di(t),m3(La,o,t,jn),Sc(t,o),r=t,r&127?R4=o:r&4194048&&(j4=o),li(a,t,ri,!Nf);break e;case Bh:Yl=null;break;case W4:case H9:break;default:throw Error("Unknown root exit status.")}if(F.actQueue!==null)Qt(a,r,t,Yl,ny,nv,ri,Bf,Gh,d,null,null,La,o);else{if((t&62914560)===t&&(p=av+R9-ca(),10<p)){if(li(a,t,ri,!Nf),Vc(a,0,!0)!==0)break e;Bo=t,a.timeoutHandle=aE(j3.bind(null,a,r,Yl,ny,nv,t,ri,Bf,Gh,Nf,d,"Throttled",La,o),p);break e}j3(a,r,Yl,ny,nv,t,ri,Bf,Gh,Nf,d,null,La,o)}}}break}while(!0);fl(e)}function j3(e,t,a,o,r,d,p,v,T,_,H,R,D,J){e.timeoutHandle=Yh;var se=t.subtreeFlags,de=null;if((se&8192||(se&16785408)===16785408)&&(de={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Fl},x1(t,d,de),se=(d&62914560)===d?av-ca():(d&4194048)===d?G9-ca():0,se=K1(de,se),se!==null)){Bo=d,e.cancelPendingCommit=se(Qt.bind(null,e,t,d,a,o,r,p,v,T,H,de,de.waitingForViewTransition?"Waiting for the previous Animation":0<de.count?0<de.imgCount?"Suspended on CSS and Images":"Suspended on CSS":de.imgCount===1?"Suspended on an Image":0<de.imgCount?"Suspended on Images":null,D,J)),li(e,d,p,!_);return}Qt(e,t,d,a,o,r,p,v,T,H,de,R,D,J)}function q3(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var r=a[o],d=r.getSnapshot;r=r.value;try{if(!Rl(d(),r))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function li(e,t,a,o){t&=~f6,t&=~Bf,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var r=t;0<r;){var d=31-Ta(r),p=1<<d;o[d]=-1,r&=~p}a!==0&&rr(e,a,t)}function Ul(){return(pt&(xa|Pi))===Ra?(Bu(0),!1):!0}function D1(){if(lt!==null){if(qt===si)var e=lt.return;else e=lt,Ar(),uc(e),M2=null,Qp=0,e=lt;for(;e!==null;)wg(e.alternate,e),e=e.return;lt=null}}function Sc(e,t){e&127&&(_h=t),e&4194048&&(Vs=t),e&62914560&&(j7=t),e&2080374784&&(q7=t)}function Nu(e,t){un&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",rt,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",rt,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",rt,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",rt,"primary-light"));var a=La;if(La=ra(),tt!==0&&0<a){if(Di(tt),Sn===W4||Sn===zf)m3(a,La,t,jn);else{var o=La,r=jn;if(un&&!(o<=a)){var d=(t&738197653)===t?"tertiary-dark":"primary-dark",p=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";r?r.run(console.timeStamp.bind(console,p,a,o,mt,rt,d)):console.timeStamp(p,a,o,mt,rt,d)}}Sc(tt,La)}if(a=jn,jn=null,t&127){jn=Up,r=0<=Nc&&Nc<_h?_h:Nc,o=0<=xh&&xh<_h?_h:xh,d=0<=o?o:0<=r?r:La,0<=R4?(Di(2),g3(R4,d,t,a)):q4&127,a=r;var v=o,T=Bp,_=0<A2,H=Mf===Np,R=Mf===G4;if(r=La,o=Up,d=kb,p=Xb,un){if(mt="Blocking",0<a?a>r&&(a=r):a=r,0<v?v>a&&(v=a):v=a,T!==null&&a>v){var D=_?"secondary-light":"warning";o?o.run(console.timeStamp.bind(console,_?"Consecutive":"Event: "+T,v,a,mt,rt,D)):console.timeStamp(_?"Consecutive":"Event: "+T,v,a,mt,rt,D)}r>a&&(v=H?"error":(t&738197653)===t?"tertiary-light":"primary-light",H=R?"Promise Resolved":H?"Cascading Update":5<r-a?"Update Blocked":"Update",R=[],p!=null&&R.push(["Component name",p]),d!=null&&R.push(["Method name",d]),a={start:a,end:r,detail:{devtools:{properties:R,track:mt,trackGroup:rt,color:v}}},o?o.run(performance.measure.bind(performance,H,a)):performance.measure(H,a))}Nc=-1.1,Mf=0,Xb=kb=null,R4=-1.1,A2=xh,xh=-1.1,_h=ra()}if(t&4194048&&(jn=Hp,r=0<=Ys&&Ys<Vs?Vs:Ys,a=0<=Fu&&Fu<Vs?Vs:Fu,o=0<=Cf&&Cf<Vs?Vs:Cf,d=0<=o?o:0<=a?a:La,0<=j4?(Di(256),g3(j4,d,t,jn)):q4&4194048,R=o,v=Mh,T=0<Df,_=Qb===G4,d=La,o=Hp,p=G7,H=R7,un&&(mt="Transition",0<a?a>d&&(a=d):a=d,0<r?r>a&&(r=a):r=a,0<R?R>r&&(R=r):R=r,r>R&&v!==null&&(D=T?"secondary-light":"warning",o?o.run(console.timeStamp.bind(console,T?"Consecutive":"Event: "+v,R,r,mt,rt,D)):console.timeStamp(T?"Consecutive":"Event: "+v,R,r,mt,rt,D)),a>r&&(o?o.run(console.timeStamp.bind(console,"Action",r,a,mt,rt,"primary-dark")):console.timeStamp("Action",r,a,mt,rt,"primary-dark")),d>a&&(r=_?"Promise Resolved":5<d-a?"Update Blocked":"Update",R=[],H!=null&&R.push(["Component name",H]),p!=null&&R.push(["Method name",p]),a={start:a,end:d,detail:{devtools:{properties:R,track:mt,trackGroup:rt,color:"primary-light"}}},o?o.run(performance.measure.bind(performance,r,a)):performance.measure(r,a))),Fu=Ys=-1.1,Qb=0,j4=-1.1,Df=Cf,Cf=-1.1,Vs=ra()),t&62914560&&q4&62914560&&(Di(4194304),Lm(j7,La)),t&2080374784&&q4&2080374784&&(Di(268435456),Lm(q7,La)),a=e.timeoutHandle,a!==Yh&&(e.timeoutHandle=Yh,bM(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Bo=0,D1(),Kt=e,lt=a=yu(e.current,null),tt=t,qt=si,eu=null,Nf=!1,L2=Hn(e,t),r6=!1,Sn=Js,Gh=ri=f6=Bf=Uf=0,Yl=ty=null,nv=!1,t&8&&(t|=t&32),o=e.entangledLanes,o!==0)for(e=e.entanglements,o&=t;0<o;)r=31-Ta(o),d=1<<r,t|=e[r],o&=~d;return Bc=t,V0(),e=z7(),1e3<e-O7&&(F.recentlyCreatedOwnerStacks=0,O7=e),zo.discardPendingWarnings(),a}function Vi(e,t){Ve=null,F.H=Fp,F.getCurrentStack=null,ju=!1,gl=null,t===x2||t===X4?(t=us(),qt=Pp):t===Fb?(t=us(),qt=L9):qt=t===i6?s6:t!==null&&typeof t=="object"&&typeof t.then=="function"?ey:ev,eu=t;var a=lt;a===null?(Sn=Wp,jd(e,Xa(t,e.current))):a.mode&Pe&&K0(a)}function Hg(){var e=Ii.current;return e===null?!0:(tt&4194048)===tt?$u===null:(tt&62914560)===tt||tt&536870912?e===$u:!1}function O1(){var e=F.H;return F.H=Fp,e===null?Fp:e}function Lg(){var e=F.A;return F.A=uM,e}function Qr(e){jn===null&&(jn=e._debugTask==null?null:e._debugTask)}function Zr(){Sn=zf,Nf||(tt&4194048)!==tt&&Ii.current!==null||(L2=!0),!(Uf&134217727)&&!(Bf&134217727)||Kt===null||li(Kt,tt,ri,!1)}function Jr(e,t,a){var o=pt;pt|=xa;var r=O1(),d=Lg();if(Kt!==e||tt!==t){if(Vu){var p=e.memoizedUpdaters;0<p.size&&(Fr(e,tt),p.clear()),ol(e,t)}ny=null,Nu(e,t)}t=!1,p=Sn;e:do try{if(qt!==si&&lt!==null){var v=lt,T=eu;switch(qt){case s6:D1(),p=P4;break e;case Pp:case Hh:case Lh:case ey:Ii.current===null&&(t=!0);var _=qt;if(qt=si,eu=null,Kr(e,v,T,_),a&&L2){p=Js;break e}break;default:_=qt,qt=si,eu=null,Kr(e,v,T,_)}}Gg(),p=Sn;break}catch(H){Vi(e,H)}while(!0);return t&&e.shellSuspendCounter++,Ar(),pt=o,F.H=r,F.A=d,lt===null&&(Kt=null,tt=0,V0()),p}function Gg(){for(;lt!==null;)z1(lt)}function Eo(e,t){var a=pt;pt|=xa;var o=O1(),r=Lg();if(Kt!==e||tt!==t){if(Vu){var d=e.memoizedUpdaters;0<d.size&&(Fr(e,tt),d.clear()),ol(e,t)}ny=null,lv=ca()+j9,Nu(e,t)}else L2=Hn(e,t);e:do try{if(qt!==si&&lt!==null)t:switch(t=lt,d=eu,qt){case ev:qt=si,eu=null,Kr(e,t,d,ev);break;case Hh:case Lh:if(Km(d)){qt=si,eu=null,Rg(t);break}t=function(){qt!==Hh&&qt!==Lh||Kt!==e||(qt=tv),fl(e)},d.then(t,t);break e;case Pp:qt=tv;break e;case L9:qt=c6;break e;case tv:Km(d)?(qt=si,eu=null,Rg(t)):(qt=si,eu=null,Kr(e,t,d,tv));break;case c6:var p=null;switch(lt.tag){case 26:p=lt.memoizedState;case 5:case 27:var v=lt;if(p?it(p):v.stateNode.complete){qt=si,eu=null;var T=v.sibling;if(T!==null)lt=T;else{var _=v.return;_!==null?(lt=_,Id(_)):lt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}qt=si,eu=null,Kr(e,t,d,c6);break;case ey:qt=si,eu=null,Kr(e,t,d,ey);break;case s6:D1(),Sn=P4;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}F.actQueue!==null?Gg():Gn();break}catch(H){Vi(e,H)}while(!0);return Ar(),F.H=o,F.A=r,pt=a,lt!==null?Js:(Kt=null,tt=0,V0(),Sn)}function Gn(){for(;lt!==null&&!i2();)z1(lt)}function z1(e){var t=e.alternate;(e.mode&Pe)!==Ge?(ro(e),t=fe(e,kd,t,e,Bc),K0(e)):t=fe(e,kd,t,e,Bc),e.memoizedProps=e.pendingProps,t===null?Id(e):lt=t}function Rg(e){var t=fe(e,oa,e);e.memoizedProps=e.pendingProps,t===null?Id(e):lt=t}function oa(e){var t=e.alternate,a=(e.mode&Pe)!==Ge;switch(a&&ro(e),e.tag){case 15:case 0:t=hg(t,e,e.pendingProps,e.type,void 0,tt);break;case 11:t=hg(t,e,e.pendingProps,e.type.render,e.ref,tt);break;case 5:uc(e);default:wg(t,e),e=lt=qm(e,Bc),t=kd(t,e,Bc)}return a&&K0(e),t}function Kr(e,t,a,o){Ar(),uc(t),M2=null,Qp=0;var r=t.return;try{if(ug(e,r,t,a,tt)){Sn=Wp,jd(e,Xa(a,e.current)),lt=null;return}}catch(d){if(r!==null)throw lt=r,d;Sn=Wp,jd(e,Xa(a,e.current)),lt=null;return}t.flags&32768?(ct||o===ev?e=!0:L2||tt&536870912?e=!1:(Nf=e=!0,(o===Hh||o===Lh||o===Pp||o===ey)&&(o=Ii.current,o!==null&&o.tag===13&&(o.flags|=16384))),jg(t,e)):Id(t)}function Id(e){var t=e;do{if(t.flags&32768){jg(t,Nf);return}var a=t.alternate;if(e=t.return,ro(t),a=fe(t,vg,a,t,Bc),(t.mode&Pe)!==Ge&&Sd(t),a!==null){lt=a;return}if(t=t.sibling,t!==null){lt=t;return}lt=t=e}while(t!==null);Sn===Js&&(Sn=H9)}function jg(e,t){do{var a=z3(e.alternate,e);if(a!==null){a.flags&=32767,lt=a;return}if((e.mode&Pe)!==Ge){Sd(e),a=e.actualDuration;for(var o=e.child;o!==null;)a+=o.actualDuration,o=o.sibling;e.actualDuration=a}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){lt=e;return}lt=e=a}while(e!==null);Sn=P4,lt=null}function Qt(e,t,a,o,r,d,p,v,T,_,H,R,D,J){e.cancelPendingCommit=null;do Wd();while(ga!==Lf);if(zo.flushLegacyContextWarning(),zo.flushPendingUnsafeLifecycleWarnings(),(pt&(xa|Pi))!==Ra)throw Error("Should not already be working.");if(Di(a),_===Bh?Hm(D,J,a,jn):o!==null?db(D,J,a,o,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,jn):fb(D,J,a,jn),t!==null){if(a===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(d=t.lanes|t.childLanes,d|=Rb,ym(e,a,d,p,v,T),e===Kt&&(lt=Kt=null,tt=0),G2=t,Gf=e,Bo=a,m6=d,p6=r,Q9=o,g6=J,Z9=R,Ho=iv,J9=null,t.actualDuration!==0||t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,$r(Ns,function(){return cy=window.event,Ho===iv&&(Ho=h6),Pd(),null})):(e.callbackNode=null,e.callbackPriority=0),qs=null,xf=ra(),R!==null&&hb(J,xf,R,jn),o=(t.flags&13878)!==0,t.subtreeFlags&13878||o){o=F.T,F.T=null,r=_t.p,_t.p=Jn,p=pt,pt|=Pi;try{pb(e,t,a)}finally{pt=p,_t.p=r,F.T=o}}ga=V9,Pa(),Uu(),qg()}}function Pa(){if(ga===V9){ga=Lf;var e=Gf,t=G2,a=Bo,o=(t.flags&13878)!==0;if(t.subtreeFlags&13878||o){o=F.T,F.T=null;var r=_t.p;_t.p=Jn;var d=pt;pt|=Pi;try{B2=a,H2=e,ls(),Jd(t,e),H2=B2=null,a=M6;var p=R0(e.containerInfo),v=a.focusedElem,T=a.selectionRange;if(p!==v&&v&&v.ownerDocument&&r3(v.ownerDocument.documentElement,v)){if(T!==null&&Nm(v)){var _=T.start,H=T.end;if(H===void 0&&(H=_),"selectionStart"in v)v.selectionStart=_,v.selectionEnd=Math.min(H,v.value.length);else{var R=v.ownerDocument||document,D=R&&R.defaultView||window;if(D.getSelection){var J=D.getSelection(),se=v.textContent.length,de=Math.min(T.start,se),Wt=T.end===void 0?de:Math.min(T.end,se);!J.extend&&de>Wt&&(p=Wt,Wt=de,de=p);var ft=s3(v,de),C=s3(v,Wt);if(ft&&C&&(J.rangeCount!==1||J.anchorNode!==ft.node||J.anchorOffset!==ft.offset||J.focusNode!==C.node||J.focusOffset!==C.offset)){var O=R.createRange();O.setStart(ft.node,ft.offset),J.removeAllRanges(),de>Wt?(J.addRange(O),J.extend(C.node,C.offset)):(O.setEnd(C.node,C.offset),J.addRange(O))}}}}for(R=[],J=v;J=J.parentNode;)J.nodeType===1&&R.push({element:J,left:J.scrollLeft,top:J.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<R.length;v++){var B=R[v];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}Sv=!!x6,M6=x6=null}finally{pt=d,_t.p=r,F.T=o}}e.current=t,ga=Y9}}function Uu(){if(ga===Y9){ga=Lf;var e=J9;if(e!==null){xf=ra();var t=js,a=xf;!un||a<=t||console.timeStamp(e,t,a,mt,rt,"secondary-light")}e=Gf,t=G2,a=Bo;var o=(t.flags&8772)!==0;if(t.subtreeFlags&8772||o){o=F.T,F.T=null;var r=_t.p;_t.p=Jn;var d=pt;pt|=Pi;try{B2=a,H2=e,ls(),A1(e,t.alternate,t),H2=B2=null}finally{pt=d,_t.p=r,F.T=o}}e=g6,t=Z9,js=ra(),e=t===null?e:xf,t=js,a=Ho===d6,o=jn,qs!==null?p3(e,t,qs,!1,o):!un||t<=e||(o?o.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,mt,rt,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,mt,rt,a?"error":"secondary-dark")),ga=k9}}function qg(){if(ga===X9||ga===k9){if(ga===X9){var e=js;js=ra();var t=js,a=Ho===d6;!un||t<=e||console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,mt,rt,a?" error":"secondary-light"),Ho!==d6&&(Ho=q9)}ga=Lf,u2(),e=Gf;var o=G2;t=Bo,a=Q9;var r=o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0;r?ga=uv:(ga=Lf,G2=Gf=null,Vg(e,e.pendingLanes),Rh=0,ly=null);var d=e.pendingLanes;if(d===0&&(Hf=null),r||B1(e),d=ba(t),o=o.stateNode,Zn&&typeof Zn.onCommitFiberRoot=="function")try{var p=(o.current.flags&128)===128;switch(d){case Jn:var v=yp;break;case Aa:v=o2;break;case Ha:v=Ns;break;case Dc:v=c2;break;default:v=Ns}Zn.onCommitFiberRoot(Us,o,v,p)}catch(R){qu||(qu=!0,console.error("React instrumentation encountered an error: %o",R))}if(Vu&&e.memoizedUpdaters.clear(),Ug(),a!==null){p=F.T,v=_t.p,_t.p=Jn,F.T=null;try{var T=e.onRecoverableError;for(o=0;o<a.length;o++){var _=a[o],H=V3(_.stack);fe(_.source,T,_.value,H)}}finally{F.T=p,_t.p=v}}Bo&3&&Wd(),fl(e),d=e.pendingLanes,t&261930&&d&42?(Y4=!0,e===y6?ay++:(ay=0,y6=e)):ay=0,r||Sc(t,js),Bu(0)}}function V3(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function Vg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,bd(t)))}function Wd(){return Pa(),Uu(),qg(),Pd()}function Pd(){if(ga!==uv)return!1;var e=Gf,t=m6;m6=0;var a=ba(Bo),o=Ha>a?Ha:a;a=F.T;var r=_t.p;try{_t.p=o,F.T=null;var d=p6;p6=null,o=Gf;var p=Bo;if(ga=Lf,G2=Gf=null,Bo=0,(pt&(xa|Pi))!==Ra)throw Error("Cannot flush passive effects while already rendering.");Di(p),v6=!0,ov=!1;var v=0;if(qs=null,v=ca(),Ho===q9)Lm(js,v,Px);else{var T=js,_=v,H=Ho===h6;!un||_<=T||(jn?jn.run(console.timeStamp.bind(console,H?"Waiting for Paint":"Waiting",T,_,mt,rt,"secondary-light")):console.timeStamp(H?"Waiting for Paint":"Waiting",T,_,mt,rt,"secondary-light"))}T=pt,pt|=Pi;var R=o.current;ls(),M1(R);var D=o.current;R=g6,ls(),Og(o,D,p,d,R),B1(o),pt=T;var J=ca();if(D=v,R=jn,qs!==null?p3(D,J,qs,!0,R):!un||J<=D||(R?R.run(console.timeStamp.bind(console,"Remaining Effects",D,J,mt,rt,"secondary-dark")):console.timeStamp("Remaining Effects",D,J,mt,rt,"secondary-dark")),Sc(p,J),Bu(0,!1),ov?o===ly?Rh++:(Rh=0,ly=o):Rh=0,ov=v6=!1,Zn&&typeof Zn.onPostCommitFiberRoot=="function")try{Zn.onPostCommitFiberRoot(Us,o)}catch(de){qu||(qu=!0,console.error("React instrumentation encountered an error: %o",de))}var se=o.current.stateNode;return se.effectDuration=0,se.passiveEffectDuration=0,!0}finally{_t.p=r,F.T=a,Vg(e,t)}}function el(e,t,a){t=Xa(a,t),E3(t),t=r1(e.stateNode,t,2),e=Su(e,t,2),e!==null&&(su(e,2),fl(e))}function Fe(e,t,a){if(R2=!1,e.tag===3)el(e,e,a);else{for(;t!==null;){if(t.tag===3){el(t,e,a);return}if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Hf===null||!Hf.has(o))){e=Xa(a,e),E3(e),a=f1(2),o=Su(t,a,2),o!==null&&(d1(a,o,t,e),su(o,2),fl(o));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
251
-
252
- Error message:
253
-
254
- %s`,a)}}function N1(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new cM;var r=new Set;o.set(t,r)}else r=o.get(t),r===void 0&&(r=new Set,o.set(t,r));r.has(a)||(r6=!0,r.add(a),o=rl.bind(null,e,t,a),Vu&&Fr(e,a),t.then(o,o))}function rl(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,a&127?0>Nc&&(_h=Nc=ra(),Up=L4("Promise Resolved"),Mf=G4):a&4194048&&0>Fu&&(Vs=Fu=ra(),Hp=L4("Promise Resolved"),Qb=G4),Bg()&&F.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
255
-
256
- When testing, code that resolves suspended data should be wrapped into act(...):
257
-
258
- act(() => {
259
- /* finish loading suspended data */
260
- });
261
- /* assert on the output */
262
-
263
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Kt===e&&(tt&a)===a&&(Sn===zf||Sn===W4&&(tt&62914560)===tt&&ca()-av<R9?(pt&xa)===Ra&&Nu(e,0):f6|=a,Gh===tt&&(Gh=0)),fl(e)}function Yg(e,t){t===0&&(t=cr()),e=za(e,t),e!==null&&(su(e,t),fl(e))}function To(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Yg(e,a)}function Ts(e,t){var a=0;switch(e.tag){case 31:case 13:var o=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}o!==null&&o.delete(t),Yg(e,a)}function Yi(e,t,a){if(t.subtreeFlags&67117056)for(t=t.child;t!==null;){var o=e,r=t,d=r.type===al;d=a||d,r.tag!==22?r.flags&67108864?d&&fe(r,U1,o,r):Yi(o,r,d):r.memoizedState===null&&(d&&r.flags&8192?fe(r,U1,o,r):r.subtreeFlags&67108864&&fe(r,Yi,o,r,d)),t=t.sibling}}function U1(e,t){ht(!0);try{_1(t),Ng(t),Dg(e,t.alternate,t,!1),$d(e,t,0,null,!1,0)}finally{ht(!1)}}function B1(e){var t=!0;e.current.mode&(pl|Oo)||(t=!1),Yi(e,e.current,t)}function ii(e){if((pt&xa)===Ra){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=ce(e)||"ReactComponent",cv!==null){if(cv.has(t))return;cv.add(t)}else cv=new Set([t]);fe(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Fr(e,t){Vu&&e.memoizedUpdaters.forEach(function(a){_n(e,a,t)})}function $r(e,t){var a=F.actQueue;return a!==null?(a.push(t),fM):pp(e,t)}function eh(e){Bg()&&F.actQueue===null&&fe(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
264
-
265
- When testing, code that causes React state updates should be wrapped into act(...):
266
-
267
- act(() => {
268
- /* fire events that update state */
269
- });
270
- /* assert on the output */
271
-
272
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,ce(e))})}function fl(e){e!==j2&&e.next===null&&(j2===null?sv=j2=e:j2=j2.next=e),rv=!0,F.actQueue!==null?b6||(b6=!0,k3()):w6||(w6=!0,k3())}function Bu(e,t){if(!S6&&rv){S6=!0;do for(var a=!1,o=sv;o!==null;){if(e!==0){var r=o.pendingLanes;if(r===0)var d=0;else{var p=o.suspendedLanes,v=o.pingedLanes;d=(1<<31-Ta(42|e)+1)-1,d&=r&~(p&~v),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(a=!0,th(o,d))}else d=tt,d=Vc(o,o===Kt?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==Yh),!(d&3)||Hn(o,d)||(a=!0,th(o,d));o=o.next}while(a);S6=!1}}function Y3(){cy=window.event,H1()}function H1(){rv=b6=w6=!1;var e=0;Rf!==0&&Zg()&&(e=Rf);for(var t=ca(),a=null,o=sv;o!==null;){var r=o.next,d=Ir(o,t);d===0?(o.next=null,a===null?sv=r:a.next=r,r===null&&(j2=a)):(a=o,(e!==0||d&3)&&(rv=!0)),o=r}ga!==Lf&&ga!==uv||Bu(e),Rf!==0&&(Rf=0)}function Ir(e,t){for(var a=e.suspendedLanes,o=e.pingedLanes,r=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var p=31-Ta(d),v=1<<p,T=r[p];T===-1?(!(v&a)||v&o)&&(r[p]=S0(v,t)):T<=t&&(e.expiredLanes|=v),d&=~v}if(t=Kt,a=tt,a=Vc(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Yh),o=e.callbackNode,a===0||e===t&&(qt===Hh||qt===Lh)||e.cancelPendingCommit!==null)return o!==null&&L1(o),e.callbackNode=null,e.callbackPriority=0;if(!(a&3)||Hn(e,a)){if(t=a&-a,t!==e.callbackPriority||F.actQueue!==null&&o!==E6)L1(o);else return t;switch(ba(a)){case Jn:case Aa:a=o2;break;case Ha:a=Ns;break;case Dc:a=c2;break;default:a=Ns}return o=kg.bind(null,e),F.actQueue!==null?(F.actQueue.push(o),a=E6):a=pp(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&L1(o),e.callbackPriority=2,e.callbackNode=null,2}function kg(e,t){if(Y4=V4=!1,cy=window.event,ga!==Lf&&ga!==uv)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Ho===iv&&(Ho=h6),Wd()&&e.callbackNode!==a)return null;var o=tt;return o=Vc(e,e===Kt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Yh),o===0?null:(R3(e,o,t),Ir(e,ca()),e.callbackNode!=null&&e.callbackNode===a?kg.bind(null,e):null)}function th(e,t){if(Wd())return null;V4=Y4,Y4=!1,R3(e,t,!0)}function L1(e){e!==E6&&e!==null&&l2(e)}function k3(){F.actQueue!==null&&F.actQueue.push(function(){return H1(),null}),SM(function(){(pt&(xa|Pi))!==Ra?pp(yp,Y3):H1()})}function Xg(){if(Rf===0){var e=Ch;e===0&&(e=pf,pf<<=1,!(pf&261888)&&(pf=256)),Rf=e}return Rf}function vt(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(dt(e,"action"),rd(""+e))}function Gt(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function ot(e,t,a,o,r){if(t==="submit"&&a&&a.stateNode===r){var d=vt((r[ll]||null).action),p=o.submitter;p&&(t=(t=p[ll]||null)?vt(t.formAction):p.getAttribute("formAction"),t!==null&&(d=t,p=null));var v=new D4("action","action",null,o,r);e.push({event:v,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Rf!==0){var T=p?Gt(r,p):new FormData(r),_={pending:!0,data:T,method:r.method,action:d};Object.freeze(_),wo(a,_,null,T)}}else typeof d=="function"&&(v.preventDefault(),T=p?Gt(r,p):new FormData(r),_={pending:!0,data:T,method:r.method,action:d},Object.freeze(_),wo(a,_,d,T))},currentTarget:r}]})}}function at(e,t,a){e.currentTarget=a;try{t(e)}catch(o){Bb(o)}e.currentTarget=null}function Ot(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a];e:{var r=void 0,d=o.event;if(o=o.listeners,t)for(var p=o.length-1;0<=p;p--){var v=o[p],T=v.instance,_=v.currentTarget;if(v=v.listener,T!==r&&d.isPropagationStopped())break e;T!==null?fe(T,at,d,v,_):at(d,v,_),r=T}else for(p=0;p<o.length;p++){if(v=o[p],T=v.instance,_=v.currentTarget,v=v.listener,T!==r&&d.isPropagationStopped())break e;T!==null?fe(T,at,d,v,_):at(d,v,_),r=T}}}}function Le(e,t){T6.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var a=t[Bs];a===void 0&&(a=t[Bs]=new Set);var o=e+"__bubble";a.has(o)||(G1(t,e,2,!1),a.add(o))}function Hu(e,t,a){T6.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var o=0;t&&(o|=4),G1(a,e,o,t)}function Ec(e){if(!e[fv]){e[fv]=!0,A4.forEach(function(a){a!=="selectionchange"&&(T6.has(a)||Hu(a,!1,e),Hu(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fv]||(t[fv]=!0,Hu("selectionchange",!1,t))}}function G1(e,t,a,o){switch(I1(t)){case Jn:var r=ip;break;case Aa:r=Ea;break;default:r=up}a=r.bind(null,t,a,e),r=void 0,!Ab||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),o?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function ki(e,t,a,o,r){var d=o;if(!(t&1)&&!(t&2)&&o!==null)e:for(;;){if(o===null)return;var p=o.tag;if(p===3||p===4){var v=o.stateNode.containerInfo;if(v===r)break;if(p===4)for(p=o.return;p!==null;){var T=p.tag;if((T===3||T===4)&&p.stateNode.containerInfo===r)return;p=p.return}for(;v!==null;){if(p=Ai(v),p===null)return;if(T=p.tag,T===5||T===6||T===26||T===27){o=d=p;continue e}v=v.parentNode}}o=o.return}B0(function(){var _=d,H=Mi(a),R=[];e:{var D=D7.get(e);if(D!==void 0){var J=D4,se=e;switch(e){case"keypress":if(fd(a)===0)break e;case"keydown":case"keyup":J=xx;break;case"focusin":se="focus",J=Cb;break;case"focusout":se="blur",J=Cb;break;case"beforeblur":case"afterblur":J=Cb;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=g7;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=mx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=Dx;break;case _7:case x7:case M7:J=yx;break;case C7:J=zx;break;case"scroll":case"scrollend":J=dx;break;case"wheel":J=Ux;break;case"copy":case"cut":case"paste":J=wx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=y7;break;case"toggle":case"beforetoggle":J=Hx}var de=(t&4)!==0,Wt=!de&&(e==="scroll"||e==="scrollend"),ft=de?D!==null?D+"Capture":null:D;de=[];for(var C=_,O;C!==null;){var B=C;if(O=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||O===null||ft===null||(B=gu(C,ft),B!=null&&de.push(Zt(C,B,O))),Wt)break;C=C.return}0<de.length&&(D=new J(D,se,null,a,H),R.push({event:D,listeners:de}))}}if(!(t&7)){e:{if(D=e==="mouseover"||e==="pointerover",J=e==="mouseout"||e==="pointerout",D&&a!==Ep&&(se=a.relatedTarget||a.fromElement)&&(Ai(se)||se[Do]))break e;if((J||D)&&(D=H.window===H?H:(D=H.ownerDocument)?D.defaultView||D.parentWindow:window,J?(se=a.relatedTarget||a.toElement,J=_,se=se?Ai(se):null,se!==null&&(Wt=P(se),de=se.tag,se!==Wt||de!==5&&de!==27&&de!==6)&&(se=null)):(J=null,se=_),J!==se)){if(de=g7,B="onMouseLeave",ft="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(de=y7,B="onPointerLeave",ft="onPointerEnter",C="pointer"),Wt=J==null?D:Jl(J),O=se==null?D:Jl(se),D=new de(B,C+"leave",J,a,H),D.target=Wt,D.relatedTarget=O,B=null,Ai(H)===_&&(de=new de(ft,C+"enter",se,a,H),de.target=O,de.relatedTarget=Wt,B=de),Wt=B,J&&se)t:{for(de=As,ft=J,C=se,O=0,B=ft;B;B=de(B))O++;B=0;for(var W=C;W;W=de(W))B++;for(;0<O-B;)ft=de(ft),O--;for(;0<B-O;)C=de(C),B--;for(;O--;){if(ft===C||C!==null&&ft===C.alternate){de=ft;break t}ft=de(ft),C=de(C)}de=null}else de=null;J!==null&&R1(R,D,J,de,!1),se!==null&&Wt!==null&&R1(R,Wt,se,de,!0)}}e:{if(D=_?Jl(_):window,J=D.nodeName&&D.nodeName.toLowerCase(),J==="select"||J==="input"&&D.type==="file")var re=Wo;else if(Dm(D))if(T7)re=gd;else{re=Om;var Ye=rb}else J=D.nodeName,!J||J.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?_&&mu(_.elementType)&&(re=Wo):re=zm;if(re&&(re=re(e,_))){hd(R,re,a,H);break e}Ye&&Ye(e,D,_),e==="focusout"&&_&&D.type==="number"&&_.memoizedProps.value!=null&&bm(D,"number",D.value)}switch(Ye=_?Jl(_):window,e){case"focusin":(Dm(Ye)||Ye.contentEditable==="true")&&(p2=Ye,Ob=_,Dp=null);break;case"focusout":Dp=Ob=p2=null;break;case"mousedown":zb=!0;break;case"contextmenu":case"mouseup":case"dragend":zb=!1,f3(R,a,H);break;case"selectionchange":if(jx)break;case"keydown":case"keyup":f3(R,a,H)}var Me;if(Db)e:{switch(e){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else g2?wr(e,a)&&(we="onCompositionEnd"):e==="keydown"&&a.keyCode===v7&&(we="onCompositionStart");we&&(w7&&a.locale!=="ko"&&(g2||we!=="onCompositionStart"?we==="onCompositionEnd"&&g2&&(Me=Kc()):(Sf=H,_b="value"in Sf?Sf.value:Sf.textContent,g2=!0)),Ye=Xi(_,we),0<Ye.length&&(we=new p7(we,e,null,a,H),R.push({event:we,listeners:Ye}),Me?we.data=Me:(Me=co(a),Me!==null&&(we.data=Me)))),(Me=Gx?Cm(e,a):H0(e,a))&&(we=Xi(_,"onBeforeInput"),0<we.length&&(Ye=new Sx("onBeforeInput","beforeinput",null,a,H),R.push({event:Ye,listeners:we}),Ye.data=Me)),ot(R,e,_,a,H)}Ot(R,t)})}function Zt(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Xi(e,t){for(var a=t+"Capture",o=[];e!==null;){var r=e,d=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||d===null||(r=gu(e,a),r!=null&&o.unshift(Zt(e,r,d)),r=gu(e,t),r!=null&&o.push(Zt(e,r,d))),e.tag===3)return o;e=e.return}return[]}function As(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function R1(e,t,a,o,r){for(var d=t._reactName,p=[];a!==null&&a!==o;){var v=a,T=v.alternate,_=v.stateNode;if(v=v.tag,T!==null&&T===o)break;v!==5&&v!==26&&v!==27||_===null||(T=_,r?(_=gu(a,d),_!=null&&p.unshift(Zt(a,_,T))):r||(_=gu(a,d),_!=null&&p.push(Zt(a,_,T)))),a=a.return}p.length!==0&&e.push({event:t,listeners:p})}function tl(e,t){u3(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||h7||(h7=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var a={registrationNameDependencies:Yu,possibleRegistrationNames:wf};mu(e)||typeof t.is=="string"||sb(e,t,a),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function fn(e,t,a,o){t!==a&&(a=Qi(a),Qi(t)!==a&&(o[e]=t))}function nh(e,t,a){t.forEach(function(o){a[Ao(o)]=o==="style"?Tc(e):e.getAttribute(o)})}function dn(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function j1(e,t){return e=e.namespaceURI===Je||e.namespaceURI===$e?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Qi(e){return Va(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",io(e)),Ya(e)),(typeof e=="string"?e:""+e).replace(dM,`
273
- `).replace(hM,"")}function Qg(e,t){return t=Qi(t),Qi(e)===t}function At(e,t,a,o,r,d){switch(a){case"children":typeof o=="string"?(sd(o,t,!1),t==="body"||t==="textarea"&&o===""||Jc(e,o)):(typeof o=="number"||typeof o=="bigint")&&(sd(""+o,t,!1),t!=="body"&&Jc(e,""+o));break;case"className":ud(e,"class",o);break;case"tabIndex":ud(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":ud(e,a,o);break;case"style":_m(e,o,d);break;case"data":if(t!=="object"){ud(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){console.error(a==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a),e.removeAttribute(a);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}dt(o,a),o=rd(""+o),e.setAttribute(a,o);break;case"action":case"formAction":if(o!=null&&(t==="form"?a==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof o=="function"&&(r.encType==null&&r.method==null||mv||(mv=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),r.target==null||hv||(hv=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?a==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||r.type==="submit"||r.type==="image"||dv?t!=="button"||r.type==null||r.type==="submit"||dv?typeof o=="function"&&(r.name==null||W9||(W9=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),r.formEncType==null&&r.formMethod==null||mv||(mv=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),r.formTarget==null||hv||(hv=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(dv=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(dv=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(a==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof o=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(a==="formAction"?(t!=="input"&&At(e,t,"name",r.name,r,null),At(e,t,"formEncType",r.formEncType,r,null),At(e,t,"formMethod",r.formMethod,r,null),At(e,t,"formTarget",r.formTarget,r,null)):(At(e,t,"encType",r.encType,r,null),At(e,t,"method",r.method,r,null),At(e,t,"target",r.target,r,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}dt(o,a),o=rd(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(typeof o!="function"&&dn(a,o),e.onclick=Fl);break;case"onScroll":o!=null&&(typeof o!="function"&&dn(a,o),Le("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!="function"&&dn(a,o),Le("scrollend",e));break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}dt(o,a),a=rd(""+o),e.setAttributeNS(jh,"xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?(dt(o,a),e.setAttribute(a,""+o)):e.removeAttribute(a);break;case"inert":o!==""||gv[a]||(gv[a]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",a));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?(dt(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?(dt(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(a):(dt(o,a),e.setAttribute(a,o));break;case"popover":Le("beforetoggle",e),Le("toggle",e),T0(e,"popover",o);break;case"xlinkActuate":fu(e,jh,"xlink:actuate",o);break;case"xlinkArcrole":fu(e,jh,"xlink:arcrole",o);break;case"xlinkRole":fu(e,jh,"xlink:role",o);break;case"xlinkShow":fu(e,jh,"xlink:show",o);break;case"xlinkTitle":fu(e,jh,"xlink:title",o);break;case"xlinkType":fu(e,jh,"xlink:type",o);break;case"xmlBase":fu(e,A6,"xml:base",o);break;case"xmlLang":fu(e,A6,"xml:lang",o);break;case"xmlSpace":fu(e,A6,"xml:space",o);break;case"is":d!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),T0(e,"is",o);break;case"innerText":case"textContent":break;case"popoverTarget":P9||o==null||typeof o!="object"||(P9=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",o));default:!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N"?(a=l3(a),T0(e,a,o)):Yu.hasOwnProperty(a)&&o!=null&&typeof o!="function"&&dn(a,o)}}function Wr(e,t,a,o,r,d){switch(a){case"style":_m(e,o,d);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"children":typeof o=="string"?Jc(e,o):(typeof o=="number"||typeof o=="bigint")&&Jc(e,""+o);break;case"onScroll":o!=null&&(typeof o!="function"&&dn(a,o),Le("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!="function"&&dn(a,o),Le("scrollend",e));break;case"onClick":o!=null&&(typeof o!="function"&&dn(a,o),e.onclick=Fl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Yu.hasOwnProperty(a))o!=null&&typeof o!="function"&&dn(a,o);else e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),t=a.slice(2,r?a.length-7:void 0),d=e[ll]||null,d=d!=null?d[a]:null,typeof d=="function"&&e.removeEventListener(t,d,r),typeof o=="function")){typeof d!="function"&&d!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,o,r);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):T0(e,a,o)}}}function an(e,t,a){switch(tl(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Le("error",e),Le("load",e);var o=!1,r=!1,d;for(d in a)if(a.hasOwnProperty(d)){var p=a[d];if(p!=null)switch(d){case"src":o=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:At(e,t,d,p,a,null)}}r&&At(e,t,"srcSet",a.srcSet,a,null),o&&At(e,t,"src",a.src,a,null);return;case"input":Yc("input",a),Le("invalid",e);var v=d=p=r=null,T=null,_=null;for(o in a)if(a.hasOwnProperty(o)){var H=a[o];if(H!=null)switch(o){case"name":r=H;break;case"type":p=H;break;case"checked":T=H;break;case"defaultChecked":_=H;break;case"value":d=H;break;case"defaultValue":v=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:At(e,t,o,H,a,null)}}ka(e,a),x0(e,d,v,T,_,p,r,!1);return;case"select":Yc("select",a),Le("invalid",e),o=p=d=null;for(r in a)if(a.hasOwnProperty(r)&&(v=a[r],v!=null))switch(r){case"value":d=v;break;case"defaultValue":p=v;break;case"multiple":o=v;default:At(e,t,r,v,a,null)}M0(e,a),t=d,a=p,e.multiple=!!o,t!=null?du(e,!!o,t,!1):a!=null&&du(e,!!o,a,!0);return;case"textarea":Yc("textarea",a),Le("invalid",e),d=r=o=null;for(p in a)if(a.hasOwnProperty(p)&&(v=a[p],v!=null))switch(p){case"value":o=v;break;case"defaultValue":r=v;break;case"children":d=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:At(e,t,p,v,a,null)}kc(e,a),hr(e,o,r,d);return;case"option":a3(e,a);for(T in a)if(a.hasOwnProperty(T)&&(o=a[T],o!=null))switch(T){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:At(e,t,T,o,a,null)}return;case"dialog":Le("beforetoggle",e),Le("toggle",e),Le("cancel",e),Le("close",e);break;case"iframe":case"object":Le("load",e);break;case"video":case"audio":for(o=0;o<iy.length;o++)Le(iy[o],e);break;case"image":Le("error",e),Le("load",e);break;case"details":Le("toggle",e);break;case"embed":case"source":case"link":Le("error",e),Le("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_ in a)if(a.hasOwnProperty(_)&&(o=a[_],o!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:At(e,t,_,o,a,null)}return;default:if(mu(t)){for(H in a)a.hasOwnProperty(H)&&(o=a[H],o!==void 0&&Wr(e,t,H,o,a,void 0));return}}for(v in a)a.hasOwnProperty(v)&&(o=a[v],o!=null&&At(e,t,v,o,a,null))}function Qn(e,t,a,o){switch(tl(t,o),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,d=null,p=null,v=null,T=null,_=null,H=null;for(J in a){var R=a[J];if(a.hasOwnProperty(J)&&R!=null)switch(J){case"checked":break;case"value":break;case"defaultValue":T=R;default:o.hasOwnProperty(J)||At(e,t,J,null,o,R)}}for(var D in o){var J=o[D];if(R=a[D],o.hasOwnProperty(D)&&(J!=null||R!=null))switch(D){case"type":d=J;break;case"name":r=J;break;case"checked":_=J;break;case"defaultChecked":H=J;break;case"value":p=J;break;case"defaultValue":v=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:J!==R&&At(e,t,D,J,o,R)}}t=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,o=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,t||!o||I9||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),I9=!0),!t||o||$9||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),$9=!0),Fo(e,p,v,T,_,H,d,r);return;case"select":J=p=v=D=null;for(d in a)if(T=a[d],a.hasOwnProperty(d)&&T!=null)switch(d){case"value":break;case"multiple":J=T;default:o.hasOwnProperty(d)||At(e,t,d,null,o,T)}for(r in o)if(d=o[r],T=a[r],o.hasOwnProperty(r)&&(d!=null||T!=null))switch(r){case"value":D=d;break;case"defaultValue":v=d;break;case"multiple":p=d;default:d!==T&&At(e,t,r,d,o,T)}o=v,t=p,a=J,D!=null?du(e,!!t,D,!1):!!a!=!!t&&(o!=null?du(e,!!t,o,!0):du(e,!!t,t?[]:"",!1));return;case"textarea":J=D=null;for(v in a)if(r=a[v],a.hasOwnProperty(v)&&r!=null&&!o.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:At(e,t,v,null,o,r)}for(p in o)if(r=o[p],d=a[p],o.hasOwnProperty(p)&&(r!=null||d!=null))switch(p){case"value":D=r;break;case"defaultValue":J=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:r!==d&&At(e,t,p,r,o,d)}Xc(e,D,J);return;case"option":for(var se in a)if(D=a[se],a.hasOwnProperty(se)&&D!=null&&!o.hasOwnProperty(se))switch(se){case"selected":e.selected=!1;break;default:At(e,t,se,null,o,D)}for(T in o)if(D=o[T],J=a[T],o.hasOwnProperty(T)&&D!==J&&(D!=null||J!=null))switch(T){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:At(e,t,T,D,o,J)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var de in a)D=a[de],a.hasOwnProperty(de)&&D!=null&&!o.hasOwnProperty(de)&&At(e,t,de,null,o,D);for(_ in o)if(D=o[_],J=a[_],o.hasOwnProperty(_)&&D!==J&&(D!=null||J!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:At(e,t,_,D,o,J)}return;default:if(mu(t)){for(var Wt in a)D=a[Wt],a.hasOwnProperty(Wt)&&D!==void 0&&!o.hasOwnProperty(Wt)&&Wr(e,t,Wt,void 0,o,D);for(H in o)D=o[H],J=a[H],!o.hasOwnProperty(H)||D===J||D===void 0&&J===void 0||Wr(e,t,H,D,o,J);return}}for(var ft in a)D=a[ft],a.hasOwnProperty(ft)&&D!=null&&!o.hasOwnProperty(ft)&&At(e,t,ft,null,o,D);for(R in o)D=o[R],J=a[R],!o.hasOwnProperty(R)||D===J||D==null&&J==null||At(e,t,R,D,o,J)}function Ao(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Tc(e){var t={};e=e.style;for(var a=0;a<e.length;a++){var o=e[a];t[o]=e.getPropertyValue(o)}return t}function Lu(e,t,a){if(t!=null&&typeof t!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var o,r=o="",d;for(d in t)if(t.hasOwnProperty(d)){var p=t[d];p!=null&&typeof p!="boolean"&&p!==""&&(d.indexOf("--")===0?(Zo(p,d),o+=r+d+":"+(""+p).trim()):typeof p!="number"||p===0||pe.has(d)?(Zo(p,d),o+=r+d.replace($,"-$1").toLowerCase().replace(he,"-ms-")+":"+(""+p).trim()):o+=r+d.replace($,"-$1").toLowerCase().replace(he,"-ms-")+":"+p+"px",r=";")}o=o||null,t=e.getAttribute("style"),t!==o&&(o=Qi(o),Qi(t)!==o&&(a.style=Tc(e)))}}function dl(e,t,a,o,r,d){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(dt(o,t),e===""+o)return}fn(t,e,o,d)}function q1(e,t,a,o,r,d){if(r.delete(a),e=e.getAttribute(a),e===null){switch(typeof o){case"function":case"symbol":return}if(!o)return}else switch(typeof o){case"function":case"symbol":break;default:if(o)return}fn(t,e,o,d)}function V1(e,t,a,o,r,d){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":return}else if(o!=null)switch(typeof o){case"function":case"symbol":break;default:if(dt(o,a),e===""+o)return}fn(t,e,o,d)}function Pr(e,t,a,o,r,d){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(o))return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(!isNaN(o)&&(dt(o,t),e===""+o))return}fn(t,e,o,d)}function ah(e,t,a,o,r,d){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(dt(o,t),a=rd(""+o),e===a)return}fn(t,e,o,d)}function hl(e,t,a,o){for(var r={},d=new Set,p=e.attributes,v=0;v<p.length;v++)switch(p[v].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:d.add(p[v].name)}if(mu(t)){for(var T in a)if(a.hasOwnProperty(T)){var _=a[T];if(_!=null){if(Yu.hasOwnProperty(T))typeof _!="function"&&dn(T,_);else if(a.suppressHydrationWarning!==!0)switch(T){case"children":typeof _!="string"&&typeof _!="number"||fn("children",e.textContent,_,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":p=e.innerHTML,_=_?_.__html:void 0,_!=null&&(_=j1(e,_),fn(T,p,_,r));continue;case"style":d.delete(T),Lu(e,_,r);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":d.delete(T.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",T);continue;case"className":d.delete("class"),p=dr(e,"class",_),fn("className",p,_,r);continue;default:o.context===Ks&&t!=="svg"&&t!=="math"?d.delete(T.toLowerCase()):d.delete(T),p=dr(e,T,_),fn(T,p,_,r)}}}}else for(_ in a)if(a.hasOwnProperty(_)&&(T=a[_],T!=null)){if(Yu.hasOwnProperty(_))typeof T!="function"&&dn(_,T);else if(a.suppressHydrationWarning!==!0)switch(_){case"children":typeof T!="string"&&typeof T!="number"||fn("children",e.textContent,T,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":p=e.innerHTML,T=T?T.__html:void 0,T!=null&&(T=j1(e,T),p!==T&&(r[_]={__html:p}));continue;case"className":dl(e,_,"class",T,d,r);continue;case"tabIndex":dl(e,_,"tabindex",T,d,r);continue;case"style":d.delete(_),Lu(e,T,r);continue;case"multiple":d.delete(_),fn(_,e.multiple,T,r);continue;case"muted":d.delete(_),fn(_,e.muted,T,r);continue;case"autoFocus":d.delete("autofocus"),fn(_,e.autofocus,T,r);continue;case"data":if(t!=="object"){d.delete(_),p=e.getAttribute("data"),fn(_,p,T,r);continue}case"src":case"href":if(!(T!==""||t==="a"&&_==="href"||t==="object"&&_==="data")){console.error(_==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',_,_);continue}ah(e,_,_,T,d,r);continue;case"action":case"formAction":if(p=e.getAttribute(_),typeof T=="function"){d.delete(_.toLowerCase()),_==="formAction"?(d.delete("name"),d.delete("formenctype"),d.delete("formmethod"),d.delete("formtarget")):(d.delete("enctype"),d.delete("method"),d.delete("target"));continue}else if(p===mM){d.delete(_.toLowerCase()),fn(_,"function",T,r);continue}ah(e,_,_.toLowerCase(),T,d,r);continue;case"xlinkHref":ah(e,_,"xlink:href",T,d,r);continue;case"contentEditable":V1(e,_,"contenteditable",T,d,r);continue;case"spellCheck":V1(e,_,"spellcheck",T,d,r);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":V1(e,_,_,T,d,r);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":q1(e,_,_.toLowerCase(),T,d,r);continue;case"capture":case"download":e:{v=e;var H=p=_,R=r;if(d.delete(H),v=v.getAttribute(H),v===null)switch(typeof T){case"undefined":case"function":case"symbol":break e;default:if(T===!1)break e}else if(T!=null)switch(typeof T){case"function":case"symbol":break;case"boolean":if(T===!0&&v==="")break e;break;default:if(dt(T,p),v===""+T)break e}fn(p,v,T,R)}continue;case"cols":case"rows":case"size":case"span":e:{if(v=e,H=p=_,R=r,d.delete(H),v=v.getAttribute(H),v===null)switch(typeof T){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(T)||1>T)break e}else if(T!=null)switch(typeof T){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(T)||1>T)&&(dt(T,p),v===""+T))break e}fn(p,v,T,R)}continue;case"rowSpan":Pr(e,_,"rowspan",T,d,r);continue;case"start":Pr(e,_,_,T,d,r);continue;case"xHeight":dl(e,_,"x-height",T,d,r);continue;case"xlinkActuate":dl(e,_,"xlink:actuate",T,d,r);continue;case"xlinkArcrole":dl(e,_,"xlink:arcrole",T,d,r);continue;case"xlinkRole":dl(e,_,"xlink:role",T,d,r);continue;case"xlinkShow":dl(e,_,"xlink:show",T,d,r);continue;case"xlinkTitle":dl(e,_,"xlink:title",T,d,r);continue;case"xlinkType":dl(e,_,"xlink:type",T,d,r);continue;case"xmlBase":dl(e,_,"xml:base",T,d,r);continue;case"xmlLang":dl(e,_,"xml:lang",T,d,r);continue;case"xmlSpace":dl(e,_,"xml:space",T,d,r);continue;case"inert":T!==""||gv[_]||(gv[_]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",_)),q1(e,_,_,T,d,r);continue;default:if(!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!=="n"&&_[1]!=="N"){v=l3(_),p=!1,o.context===Ks&&t!=="svg"&&t!=="math"?d.delete(v.toLowerCase()):(H=_.toLowerCase(),H=Fi.hasOwnProperty(H)&&Fi[H]||null,H!==null&&H!==_&&(p=!0,d.delete(H)),d.delete(v));e:if(H=e,R=v,v=T,id(R))if(H.hasAttribute(R))H=H.getAttribute(R),dt(v,R),v=H===""+v?v:H;else{switch(typeof v){case"function":case"symbol":break e;case"boolean":if(H=R.toLowerCase().slice(0,5),H!=="data-"&&H!=="aria-")break e}v=v===void 0?void 0:null}else v=void 0;p||fn(_,v,T,r)}}}return 0<d.size&&a.suppressHydrationWarning!==!0&&nh(e,d,r),Object.keys(r).length===0?null:r}function X3(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function nl(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Q3(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var r=a[o],d=r.transferSize,p=r.initiatorType,v=r.duration;if(d&&v&&nl(p)){for(p=0,v=r.responseEnd,o+=1;o<a.length;o++){var T=a[o],_=T.startTime;if(_>v)break;var H=T.transferSize,R=T.initiatorType;H&&nl(R)&&(T=T.responseEnd,p+=H*(T<v?1:(v-_)/(T-_)))}if(--o,t+=8*(d+p)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}function lh(e){return e.nodeType===9?e:e.ownerDocument}function Z3(e){switch(e){case $e:return V2;case Je:return yv;default:return Ks}}function _o(e,t){if(e===Ks)switch(t){case"svg":return V2;case"math":return yv;default:return Ks}return e===V2&&t==="foreignObject"?Ks:e}function ef(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function Zg(){var e=window.event;return e&&e.type==="popstate"?e===C6?!1:(C6=e,!0):(C6=null,!1)}function Gu(){var e=window.event;return e&&e!==cy?e.type:null}function tf(){var e=window.event;return e&&e!==cy?e.timeStamp:-1.1}function J3(e){setTimeout(function(){throw e})}function K3(e,t,a){switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();break;case"img":a.src?e.src=a.src:a.srcSet&&(e.srcset=a.srcSet)}}function F3(){}function Y1(e,t,a,o){Qn(e,t,a,o),e[ll]=o}function k1(e){Jc(e,"")}function yb(e,t,a){e.nodeValue=a}function $3(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[ll]||null;if(t!==null){var a=vl(e);a!==null&&(typeof t.children=="string"||typeof t.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,fe(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,fe(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Ac(e){return e==="head"}function I3(e,t){e.removeChild(t)}function W3(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function _s(e,t){var a=t,o=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a===oy||a===pv){if(o===0){e.removeChild(r),Ds(t);return}o--}else if(a===uy||a===jf||a===Vh||a===q2||a===qh)o++;else if(a===pM)Mo(e.ownerDocument.documentElement);else if(a===vM){a=e.ownerDocument.head,Mo(a);for(var d=a.firstChild;d;){var p=d.nextSibling,v=d.nodeName;d[vf]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&d.rel.toLowerCase()==="stylesheet"||a.removeChild(d),d=p}}else a===yM&&Mo(e.ownerDocument.body);a=r}while(a);Ds(t)}function ih(e,t){var a=e;e=0;do{var o=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a===oy){if(e===0)break;e--}else a!==uy&&a!==jf&&a!==Vh&&a!==q2||e++;a=o}while(a)}function P3(e){ih(e,!0)}function e4(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function t4(e){e.nodeValue=""}function n4(e){ih(e,!1)}function a4(e,t){t=t[wM],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function l4(e,t){e.nodeValue=t}function nf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":nf(a),Zl(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function i4(e,t,a,o){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[vf])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){dt(r.name,"name");var d=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=Bl(e.nextSibling),e===null)break}return null}function u4(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Bl(e.nextSibling),e===null))return null;return e}function zt(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Bl(e.nextSibling),e===null))return null;return e}function uh(e){return e.data===jf||e.data===Vh}function Jg(e){return e.data===q2||e.data===jf&&e.ownerDocument.readyState!==tE}function o4(e,t){var a=e.ownerDocument;if(e.data===Vh)e._reactRetry=t;else if(e.data!==jf||a.readyState!==tE)t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function Bl(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===uy||t===q2||t===jf||t===Vh||t===qh||t===_6||t===eE)break;if(t===oy||t===pv)return null}}return e}function c4(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},o=e.attributes,r=0;r<o.length;r++){var d=o[r];a[Ao(d.name)]=d.name.toLowerCase()==="style"?Tc(e):d.value}return{type:t,props:a}}return e.nodeType===8?e.data===qh?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function s4(e,t,a){return a===null||a[gM]!==!0?(e.nodeValue===t?e=null:(t=Qi(t),e=Qi(e.nodeValue)===t?null:e.nodeValue),e):null}function af(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===oy||a===pv){if(t===0)return Bl(e.nextSibling);t--}else a!==uy&&a!==q2&&a!==jf&&a!==Vh&&a!==qh||t++}e=e.nextSibling}return null}function xs(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===uy||a===q2||a===jf||a===Vh||a===qh){if(t===0)return e;t--}else a!==oy&&a!==pv||t++}e=e.previousSibling}return null}function Kg(e){Ds(e)}function X1(e){Ds(e)}function Fg(e){Ds(e)}function xo(e,t,a,o,r){switch(r&&cd(e,o.ancestorInfo),t=lh(a),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function Ru(e,t,a,o){if(!a[Do]&&vl(a)){var r=a.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",r,r,r)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(r=a.attributes;r.length;)a.removeAttributeNode(r[0]);an(a,e,t),a[ln]=o,a[ll]=t}function Mo(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Zl(e)}function Q1(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function $g(e,t,a){var o=Y2;if(o&&typeof t=="string"&&t){var r=Ht(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),oE.has(r)||(oE.add(r),e={rel:e,crossOrigin:a,href:t},o.querySelector(r)===null&&(t=o.createElement("link"),an(t,"link",e),xn(t),o.head.appendChild(t)))}}function Ig(e,t,a,o){var r=(r=Hl.current)?Q1(r):null;if(!r)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=Ms(a.href),t=Kl(r).hoistableStyles,o=t.get(a),o||(o={type:"style",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ms(a.href);var d=Kl(r).hoistableStyles,p=d.get(e);if(!p&&(r=r.ownerDocument||r,p={type:"stylesheet",instance:null,count:0,state:{loading:kh,preload:null}},d.set(e,p),(d=r.querySelector(ch(e)))&&!d._p&&(p.instance=d,p.state.loading=sy|Pu),!eo.has(e))){var v={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};eo.set(e,v),d||r4(r,e,v,p.state)}if(t&&o===null)throw a=`
274
-
275
- - `+oh(t)+`
276
- + `+oh(a),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return p}if(t&&o!==null)throw a=`
277
-
278
- - `+oh(t)+`
279
- + `+oh(a),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(a=Cs(a),t=Kl(r).hoistableScripts,o=t.get(a),o||(o={type:"script",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function oh(e){var t=0,a="<link";return typeof e.rel=="string"?(t++,a+=' rel="'+e.rel+'"'):Ll.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,a+=' href="'+e.href+'"'):Ll.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,a+=' precedence="'+e.precedence+'"'):Ll.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function Ms(e){return'href="'+Ht(e)+'"'}function ch(e){return'link[rel="stylesheet"]['+e+"]"}function Z1(e){return We({},e,{"data-precedence":e.precedence,precedence:null})}function r4(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=sy:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=sy}),t.addEventListener("error",function(){return o.loading|=iE}),an(t,"link",a),xn(t),e.head.appendChild(t))}function Cs(e){return'[src="'+Ht(e)+'"]'}function sh(e){return"script[async]"+e}function J1(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+Ht(a.href)+'"]');if(o)return t.instance=o,xn(o),o;var r=We({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),xn(o),an(o,"style",r),lf(o,a.precedence,e),t.instance=o;case"stylesheet":r=Ms(a.href);var d=e.querySelector(ch(r));if(d)return t.state.loading|=Pu,t.instance=d,xn(d),d;o=Z1(a),(r=eo.get(r))&&Wg(o,r),d=(e.ownerDocument||e).createElement("link"),xn(d);var p=d;return p._p=new Promise(function(v,T){p.onload=v,p.onerror=T}),an(d,"link",o),t.state.loading|=Pu,lf(d,a.precedence,e),t.instance=d;case"script":return d=Cs(a.src),(r=e.querySelector(sh(d)))?(t.instance=r,xn(r),r):(o=a,(r=eo.get(d))&&(o=We({},a),Pg(o,r)),e=e.ownerDocument||e,r=e.createElement("script"),xn(r),an(r,"link",o),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&Pu)===kh&&(o=t.instance,t.state.loading|=Pu,lf(o,a.precedence,e));return t.instance}function lf(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=o.length?o[o.length-1]:null,d=r,p=0;p<o.length;p++){var v=o[p];if(v.dataset.precedence===t)d=v;else if(d!==r)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Wg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Pg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function uf(e,t,a){if(vv===null){var o=new Map,r=vv=new Map;r.set(a,o)}else r=vv,o=r.get(a),o||(o=new Map,r.set(a,o));if(o.has(e))return o;for(o.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var d=a[r];if(!(d[vf]||d[ln]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!==$e){var p=d.getAttribute(t)||"";p=e+p;var v=o.get(p);v?v.push(d):o.set(p,[d])}}return o}function f4(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function d4(e,t,a){var o=!a.ancestorInfo.containerTagInScope;if(a.context===V2||t.itemProp!=null)return!o||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href===""){o&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence=="string"){e=t.href;var r=t.onError,d=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),r&&a.push("`onError`"),d!=null&&a.push("`disabled`"),r=X3(a,"and"),r+=a.length===1?" prop":" props",d=a.length===1?"an "+r:"the "+r,a.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,d,r)}o&&(typeof t.rel!="string"||typeof t.href!="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(t.rel){case"stylesheet":return e=t.precedence,t=t.disabled,typeof e!="string"&&o&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&t==null;default:return!0}case"script":if(e=t.async&&typeof t.async!="function"&&typeof t.async!="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!="string"){o&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":o&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function it(e){return!(e.type==="stylesheet"&&(e.state.loading&uE)===kh)}function ep(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&Pu)===kh){if(a.instance===null){var r=Ms(o.href),d=t.querySelector(ch(r));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=of.bind(e),t.then(e,e)),a.state.loading|=Pu,a.instance=d,xn(d);return}d=t.ownerDocument||t,o=Z1(o),(r=eo.get(r))&&Wg(o,r),d=d.createElement("link"),xn(d);var p=d;p._p=new Promise(function(v,T){p.onload=v,p.onerror=T}),an(d,"link",o),a.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&uE)===kh&&(e.count++,a=of.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function K1(e,t){return e.stylesheets&&e.count===0&&rh(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&rh(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},EM+t);0<e.imgBytes&&O6===0&&(O6=125*Q3()*AM);var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&rh(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>O6?50:TM)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(r)}}:null}function of(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)rh(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function rh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,wv=new Map,t.forEach(tp,e),wv=null,of.call(e))}function tp(e,t){if(!(t.state.loading&Pu)){var a=wv.get(e);if(a)var o=a.get(z6);else{a=new Map,wv.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<r.length;d++){var p=r[d];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(a.set(p.dataset.precedence,p),o=p)}o&&a.set(z6,o)}r=t.instance,p=r.getAttribute("data-precedence"),d=a.get(p)||o,d===o&&a.set(z6,r),a.set(p,r),this.count++,o=of.bind(this),r.addEventListener("load",o),r.addEventListener("error",o),d?d.parentNode.insertBefore(r,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=Pu}}function fh(e,t,a,o,r,d,p,v,T){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Yh,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=sr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sr(0),this.hiddenUpdates=sr(null),this.identifierPrefix=o,this.onUncaughtError=r,this.onCaughtError=d,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=a?"hydrateRoot()":"createRoot()"}function dh(e,t,a,o,r,d,p,v,T,_,H,R){return e=new fh(e,t,a,p,T,_,H,R,v),t=Kx,d===!0&&(t|=pl|Oo),t|=Pe,d=q(3,null,null,t),e.current=d,d.stateNode=e,t=J0(),as(t),e.pooledCache=t,as(t),d.memoizedState={element:o,isDehydrated:a,cache:t},ut(d),e}function h4(e){return e?(e=Af,e):Af}function F1(e,t,a,o,r,d){if(Zn&&typeof Zn.onScheduleFiberRoot=="function")try{Zn.onScheduleFiberRoot(Us,o,a)}catch(p){qu||(qu=!0,console.error("React instrumentation encountered an error: %o",p))}r=h4(r),o.context===null?o.context=r:o.pendingContext=r,ju&&gl!==null&&!fE&&(fE=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
280
-
281
- Check the render method of %s.`,ce(gl)||"Unknown")),o=kn(t),o.payload={element:a},d=d===void 0?null:d,d!==null&&(typeof d!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",d),o.callback=d),a=Su(e,o,t),a!==null&&(vu(t,"root.render()",null),je(a,e,t),ni(a,e,t))}function m4(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function np(e,t){m4(e,t),(e=e.alternate)&&m4(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=za(e,67108864);t!==null&&je(t,e,67108864),np(e,67108864)}}function lp(e){if(e.tag===13||e.tag===31){var t=Ua(e);t=sn(t);var a=za(e,t);a!==null&&je(a,e,t),np(e,t)}}function Rt(){return gl}function ip(e,t,a,o){var r=F.T;F.T=null;var d=_t.p;try{_t.p=Jn,up(e,t,a,o)}finally{_t.p=d,F.T=r}}function Ea(e,t,a,o){var r=F.T;F.T=null;var d=_t.p;try{_t.p=Aa,up(e,t,a,o)}finally{_t.p=d,F.T=r}}function up(e,t,a,o){if(Sv){var r=$1(o);if(r===null)ki(e,t,o,Ev,a),W1(e,o);else if(g4(r,e,t,a,o))o.stopPropagation();else if(W1(e,o),t&4&&-1<xM.indexOf(e)){for(;r!==null;){var d=vl(r);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var p=Ql(d.pendingLanes);if(p!==0){var v=d;for(v.pendingLanes|=2,v.entangledLanes|=2;p;){var T=1<<31-Ta(p);v.entanglements[1]|=T,p&=~T}fl(d),(pt&(xa|Pi))===Ra&&(lv=ca()+j9,Bu(0))}}break;case 31:case 13:v=za(d,2),v!==null&&je(v,d,2),Ul(),np(d,2)}if(d=$1(o),d===null&&ki(e,t,o,Ev,a),d===r)break;r=d}r!==null&&o.stopPropagation()}else ki(e,t,o,null,a)}}function $1(e){return e=Mi(e),op(e)}function op(e){if(Ev=null,e=Ai(e),e!==null){var t=P(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=ye(t),e!==null)return e;e=null}else if(a===31){if(e=be(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ev=e,null}function I1(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return Jn;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Aa;case"message":switch(vh()){case yp:return Jn;case o2:return Aa;case Ns:case S4:return Ha;case c2:return Dc;default:return Ha}default:return Ha}}function W1(e,t){switch(e){case"focusin":case"focusout":qf=null;break;case"dragenter":case"dragleave":Vf=null;break;case"mouseover":case"mouseout":Yf=null;break;case"pointerover":case"pointerout":fy.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dy.delete(t.pointerId)}}function _c(e,t,a,o,r,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:d,targetContainers:[r]},t!==null&&(t=vl(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function g4(e,t,a,o,r){switch(t){case"focusin":return qf=_c(qf,e,t,a,o,r),!0;case"dragenter":return Vf=_c(Vf,e,t,a,o,r),!0;case"mouseover":return Yf=_c(Yf,e,t,a,o,r),!0;case"pointerover":var d=r.pointerId;return fy.set(d,_c(fy.get(d)||null,e,t,a,o,r)),!0;case"gotpointercapture":return d=r.pointerId,dy.set(d,_c(dy.get(d)||null,e,t,a,o,r)),!0}return!1}function cp(e){var t=Ai(e.target);if(t!==null){var a=P(t);if(a!==null){if(t=a.tag,t===13){if(t=ye(a),t!==null){e.blockedOn=t,ru(e.priority,function(){lp(a)});return}}else if(t===31){if(t=be(a),t!==null){e.blockedOn=t,ru(e.priority,function(){lp(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function cf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=$1(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a),r=o;Ep!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Ep=r,a.target.dispatchEvent(o),Ep===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Ep=null}else return t=vl(a),t!==null&&ap(t),e.blockedOn=a,!1;t.shift()}return!0}function P1(e,t,a){cf(e)&&a.delete(t)}function vb(){N6=!1,qf!==null&&cf(qf)&&(qf=null),Vf!==null&&cf(Vf)&&(Vf=null),Yf!==null&&cf(Yf)&&(Yf=null),fy.forEach(P1),dy.forEach(P1)}function hh(e,t){e.blockedOn===t&&(e.blockedOn=null,N6||(N6=!0,zn.unstable_scheduleCallback(zn.unstable_NormalPriority,vb)))}function p4(e){Tv!==e&&(Tv=e,zn.unstable_scheduleCallback(zn.unstable_NormalPriority,function(){Tv===e&&(Tv=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],r=e[t+2];if(typeof o!="function"){if(op(o||a)===null)continue;break}var d=vl(a);d!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:r,method:a.method,action:o},Object.freeze(a),wo(d,a,o,r))}}))}function Ds(e){function t(T){return hh(T,e)}qf!==null&&hh(qf,e),Vf!==null&&hh(Vf,e),Yf!==null&&hh(Yf,e),fy.forEach(t),dy.forEach(t);for(var a=0;a<kf.length;a++){var o=kf[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<kf.length&&(a=kf[0],a.blockedOn===null);)cp(a),a.blockedOn===null&&kf.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var r=a[o],d=a[o+1],p=r[ll]||null;if(typeof d=="function")p||p4(a);else if(p){var v=null;if(d&&d.hasAttribute("formAction")){if(r=d,p=d[ll]||null)v=p.formAction;else if(op(r)!==null)continue}else v=p.action;typeof v=="function"?a[o+1]=v:(a.splice(o,3),o-=3),p4(a)}}}function y4(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(p){return r=p})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function sp(e){this._internalRoot=e}function Zi(e){this._internalRoot=e}function rp(e){e[Do]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var zn=l7(),mh=j,wb=Av,We=Object.assign,v4=Symbol.for("react.element"),ui=Symbol.for("react.transitional.element"),xc=Symbol.for("react.portal"),sf=Symbol.for("react.fragment"),al=Symbol.for("react.strict_mode"),gh=Symbol.for("react.profiler"),e2=Symbol.for("react.consumer"),Ji=Symbol.for("react.context"),rf=Symbol.for("react.forward_ref"),Os=Symbol.for("react.suspense"),ml=Symbol.for("react.suspense_list"),ph=Symbol.for("react.memo"),Ba=Symbol.for("react.lazy"),Ki=Symbol.for("react.activity"),bb=Symbol.for("react.memo_cache_sentinel"),w4=Symbol.iterator,ff=Symbol.for("react.client.reference"),Rn=Array.isArray,F=mh.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_t=wb.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Sb=Object.freeze({pending:!1,data:null,method:null,action:null}),fp=[],dp=[],Co=-1,Mc=Ut(null),df=Ut(null),Hl=Ut(null),Cc=Ut(null),hf=0,b4,zs,mf,hp,yh,t2,n2;Ce.__reactDisabledLog=!0;var gf,mp,a2=!1,gp=new(typeof WeakMap=="function"?WeakMap:Map),gl=null,ju=!1,Ll=Object.prototype.hasOwnProperty,pp=zn.unstable_scheduleCallback,l2=zn.unstable_cancelCallback,i2=zn.unstable_shouldYield,u2=zn.unstable_requestPaint,ca=zn.unstable_now,vh=zn.unstable_getCurrentPriorityLevel,yp=zn.unstable_ImmediatePriority,o2=zn.unstable_UserBlockingPriority,Ns=zn.unstable_NormalPriority,S4=zn.unstable_LowPriority,c2=zn.unstable_IdlePriority,vp=zn.log,E4=zn.unstable_setDisableYieldValue,Us=null,Zn=null,qu=!1,Vu=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Ta=Math.clz32?Math.clz32:Jo,wp=Math.log,s2=Math.LN2,pf=256,wh=262144,yf=4194304,Jn=2,Aa=8,Ha=32,Dc=268435456,oi=Math.random().toString(36).slice(2),ln="__reactFiber$"+oi,ll="__reactProps$"+oi,Do="__reactContainer$"+oi,Bs="__reactEvents$"+oi,Eb="__reactListeners$"+oi,T4="__reactHandles$"+oi,bh="__reactResources$"+oi,vf="__reactMarker$"+oi,A4=new Set,Yu={},wf={},_4={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},bf=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),bp={},r2={},f2=/[\n"\\]/g,Sp=!1,x4=!1,Sh=!1,n=!1,l=!1,u=!1,s=["value","defaultValue"],m=!1,g=/["'&<>\n\t]|^\s|\s$/,S="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),x="applet caption html table td th marquee object template foreignObject desc title".split(" "),z=x.concat(["button"]),Q="dd dt li option optgroup p rp rt".split(" "),I={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},ae={},Z={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},$=/([A-Z])/g,he=/^ms-/,ze=/^(?:webkit|moz|o)[A-Z]/,jt=/^-ms-/,Y=/-(.)/g,L=/;\s*$/,X={},te={},Ae=!1,gt=!1,pe=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),Je="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",wt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Fi={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},M4={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},d2={},ux=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ox=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),h7=!1,Gl={},m7=/^on./,cx=/^on[^A-Z]/,sx=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),rx=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),fx=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,Ep=null,h2=null,m2=null,Tb=!1,Oc=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ab=!1;if(Oc)try{var Tp={};Object.defineProperty(Tp,"passive",{get:function(){Ab=!0}}),window.addEventListener("test",Tp,Tp),window.removeEventListener("test",Tp,Tp)}catch{Ab=!1}var Sf=null,_b=null,C4=null,Eh={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},D4=ta(Eh),Ap=We({},Eh,{view:0,detail:0}),dx=ta(Ap),xb,Mb,_p,O4=We({},Ap,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==_p&&(_p&&e.type==="mousemove"?(xb=e.screenX-_p.screenX,Mb=e.screenY-_p.screenY):Mb=xb=0,_p=e),xb)},movementY:function(e){return"movementY"in e?e.movementY:Mb}}),g7=ta(O4),hx=We({},O4,{dataTransfer:0}),mx=ta(hx),gx=We({},Ap,{relatedTarget:0}),Cb=ta(gx),px=We({},Eh,{animationName:0,elapsedTime:0,pseudoElement:0}),yx=ta(px),vx=We({},Eh,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wx=ta(vx),bx=We({},Eh,{data:0}),p7=ta(bx),Sx=p7,Ex={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tx={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ax={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},_x=We({},Ap,{key:function(e){if(e.key){var t=Ex[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Tx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dd,charCode:function(e){return e.type==="keypress"?fd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),xx=ta(_x),Mx=We({},O4,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),y7=ta(Mx),Cx=We({},Ap,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dd}),Dx=ta(Cx),Ox=We({},Eh,{propertyName:0,elapsedTime:0,pseudoElement:0}),zx=ta(Ox),Nx=We({},O4,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ux=ta(Nx),Bx=We({},Eh,{newState:0,oldState:0}),Hx=ta(Bx),Lx=[9,13,27,32],v7=229,Db=Oc&&"CompositionEvent"in window,xp=null;Oc&&"documentMode"in document&&(xp=document.documentMode);var Gx=Oc&&"TextEvent"in window&&!xp,w7=Oc&&(!Db||xp&&8<xp&&11>=xp),b7=32,S7=String.fromCharCode(b7),E7=!1,g2=!1,Rx={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Mp=null,Cp=null,T7=!1;Oc&&(T7=L0("input")&&(!document.documentMode||9<document.documentMode));var Rl=typeof Object.is=="function"?Object.is:G0,jx=Oc&&"documentMode"in document&&11>=document.documentMode,p2=null,Ob=null,Dp=null,zb=!1,y2={animationend:Fc("Animation","AnimationEnd"),animationiteration:Fc("Animation","AnimationIteration"),animationstart:Fc("Animation","AnimationStart"),transitionrun:Fc("Transition","TransitionRun"),transitionstart:Fc("Transition","TransitionStart"),transitioncancel:Fc("Transition","TransitionCancel"),transitionend:Fc("Transition","TransitionEnd")},Nb={},A7={};Oc&&(A7=document.createElement("div").style,"AnimationEvent"in window||(delete y2.animationend.animation,delete y2.animationiteration.animation,delete y2.animationstart.animation),"TransitionEvent"in window||delete y2.transitionend.transition);var _7=$c("animationend"),x7=$c("animationiteration"),M7=$c("animationstart"),qx=$c("transitionrun"),Vx=$c("transitionstart"),Yx=$c("transitioncancel"),C7=$c("transitionend"),D7=new Map,Ub="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Ub.push("scrollEnd");var O7=0;if(typeof performance=="object"&&typeof performance.now=="function")var kx=performance,z7=function(){return kx.now()};else{var Xx=Date;z7=function(){return Xx.now()}}var Bb=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Qx="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",z4=0,Hb=1,Lb=2,Gb=3,N4="– ",U4="+ ",N7="  ",un=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",ku="Components ⚛",rt="Scheduler ⚛",mt="Blocking",Ef=!1,Hs={color:"primary",properties:null,tooltipText:"",track:ku},Tf={start:-0,end:-0,detail:{devtools:Hs}},Zx=["Changed Props",""],U7="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",Jx=["Changed Props",U7],Op=1,Ls=2,Xu=[],v2=0,Rb=0,Af={};Object.freeze(Af);var Qu=null,w2=null,Ge=0,Kx=1,Pe=2,pl=8,Oo=16,Fx=32,B7=!1;try{var H7=Object.preventExtensions({})}catch{B7=!0}var jb=new WeakMap,b2=[],S2=0,B4=null,zp=0,Zu=[],Ju=0,Th=null,Gs=1,Rs="",il=null,on=null,ct=!1,zc=!1,$i=null,_f=null,Ku=!1,qb=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Vb=Ut(null),Yb=Ut(null),L7={},H4=null,E2=null,T2=!1,$x=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Ix=zn.unstable_scheduleCallback,Wx=zn.unstable_NormalPriority,sa={$$typeof:Ji,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},ra=zn.unstable_now,L4=console.createTask?console.createTask:function(){return null},Np=1,G4=2,La=-0,xf=-0,js=-0,qs=null,jl=-1.1,Ah=-0,bn=-0,De=-1.1,Ne=-1.1,hn=null,Nn=!1,_h=-0,Nc=-1.1,Up=null,Mf=0,kb=null,Xb=null,xh=-1.1,Bp=null,A2=-1.1,R4=-1.1,Vs=-0,Ys=-1.1,Fu=-1.1,Qb=0,Hp=null,G7=null,R7=null,Cf=-1.1,Mh=null,Df=-1.1,j4=-1.1,j7=-0,q7=-0,q4=0,Px=null,V7=0,Lp=-1.1,V4=!1,Y4=!1,Gp=null,Zb=0,Ch=0,_2=null,Y7=F.S;F.S=function(e,t){if(G9=ca(),typeof t=="object"&&t!==null&&typeof t.then=="function"){if(0>Ys&&0>Fu){Ys=ra();var a=tf(),o=Gu();(a!==Df||o!==Mh)&&(Df=-1.1),Cf=a,Mh=o}fo(e,t)}Y7!==null&&Y7(e,t)};var Dh=Ut(null),zo={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Rp=[],jp=[],qp=[],Vp=[],Yp=[],kp=[],Oh=new Set;zo.recordUnsafeLifecycleWarnings=function(e,t){Oh.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Rp.push(e),e.mode&pl&&typeof t.UNSAFE_componentWillMount=="function"&&jp.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&qp.push(e),e.mode&pl&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&Vp.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Yp.push(e),e.mode&pl&&typeof t.UNSAFE_componentWillUpdate=="function"&&kp.push(e))},zo.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Rp.length&&(Rp.forEach(function(v){e.add(ce(v)||"Component"),Oh.add(v.type)}),Rp=[]);var t=new Set;0<jp.length&&(jp.forEach(function(v){t.add(ce(v)||"Component"),Oh.add(v.type)}),jp=[]);var a=new Set;0<qp.length&&(qp.forEach(function(v){a.add(ce(v)||"Component"),Oh.add(v.type)}),qp=[]);var o=new Set;0<Vp.length&&(Vp.forEach(function(v){o.add(ce(v)||"Component"),Oh.add(v.type)}),Vp=[]);var r=new Set;0<Yp.length&&(Yp.forEach(function(v){r.add(ce(v)||"Component"),Oh.add(v.type)}),Yp=[]);var d=new Set;if(0<kp.length&&(kp.forEach(function(v){d.add(ce(v)||"Component"),Oh.add(v.type)}),kp=[]),0<t.size){var p=N(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
282
-
283
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
284
-
285
- Please update the following components: %s`,p)}0<o.size&&(p=N(o),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
286
-
287
- * Move data fetching code or side effects to componentDidUpdate.
288
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
289
-
290
- Please update the following components: %s`,p)),0<d.size&&(p=N(d),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
291
-
292
- * Move data fetching code or side effects to componentDidUpdate.
293
-
294
- Please update the following components: %s`,p)),0<e.size&&(p=N(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
295
-
296
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
297
- * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
298
-
299
- Please update the following components: %s`,p)),0<a.size&&(p=N(a),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
300
-
301
- * Move data fetching code or side effects to componentDidUpdate.
302
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
303
- * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
304
-
305
- Please update the following components: %s`,p)),0<r.size&&(p=N(r),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
306
-
307
- * Move data fetching code or side effects to componentDidUpdate.
308
- * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
309
-
310
- Please update the following components: %s`,p))};var k4=new Map,k7=new Set;zo.recordLegacyContextWarning=function(e,t){for(var a=null,o=e;o!==null;)o.mode&pl&&(a=o),o=o.return;a===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!k7.has(e.type)&&(o=k4.get(a),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(o===void 0&&(o=[],k4.set(a,o)),o.push(e))},zo.flushLegacyContextWarning=function(){k4.forEach(function(e){if(e.length!==0){var t=e[0],a=new Set;e.forEach(function(r){a.add(ce(r)||"Component"),k7.add(r.type)});var o=N(a);fe(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
311
-
312
- The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
313
-
314
- Please update the following components: %s
315
-
316
- Learn more about this warning here: https://react.dev/link/legacy-context`,o)})}})},zo.discardPendingWarnings=function(){Rp=[],jp=[],qp=[],Vp=[],Yp=[],kp=[],k4=new Map};var X7={react_stack_bottom_frame:function(e,t,a){var o=ju;ju=!0;try{return e(t,a)}finally{ju=o}}},Jb=X7.react_stack_bottom_frame.bind(X7),Q7={react_stack_bottom_frame:function(e){var t=ju;ju=!0;try{return e.render()}finally{ju=t}}},Z7=Q7.react_stack_bottom_frame.bind(Q7),J7={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(a){Fe(e,e.return,a)}}},Kb=J7.react_stack_bottom_frame.bind(J7),K7={react_stack_bottom_frame:function(e,t,a,o,r){try{t.componentDidUpdate(a,o,r)}catch(d){Fe(e,e.return,d)}}},F7=K7.react_stack_bottom_frame.bind(K7),$7={react_stack_bottom_frame:function(e,t){var a=t.stack;e.componentDidCatch(t.value,{componentStack:a!==null?a:""})}},eM=$7.react_stack_bottom_frame.bind($7),I7={react_stack_bottom_frame:function(e,t,a){try{a.componentWillUnmount()}catch(o){Fe(e,t,o)}}},W7=I7.react_stack_bottom_frame.bind(I7),P7={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},tM=P7.react_stack_bottom_frame.bind(P7),e9={react_stack_bottom_frame:function(e,t,a){try{a()}catch(o){Fe(e,t,o)}}},nM=e9.react_stack_bottom_frame.bind(e9),t9={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},aM=t9.react_stack_bottom_frame.bind(t9),x2=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Fb=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),X4=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Q4={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},zh=null,Xp=!1,M2=null,Qp=0,et=null,$b,n9=$b=!1,a9={},l9={},i9={};U=function(e,t,a){if(a!==null&&typeof a=="object"&&a._store&&(!a._store.validated&&a.key==null||a._store.validated===2)){if(typeof a._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");a._store.validated=1;var o=ce(e),r=o||"null";if(!a9[r]){a9[r]=!0,a=a._owner,e=e._debugOwner;var d="";e&&typeof e.tag=="number"&&(r=ce(e))&&(d=`
317
-
318
- Check the render method of \``+r+"`."),d||o&&(d=`
319
-
320
- Check the top-level render call using <`+o+">.");var p="";a!=null&&e!==a&&(o=null,typeof a.tag=="number"?o=ce(a):typeof a.name=="string"&&(o=a.name),o&&(p=" It was passed a child from "+o+".")),fe(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',d,p)})}}};var Nh=aa(!0),u9=aa(!1),o9=0,c9=1,s9=2,Ib=3,Of=!1,r9=!1,Wb=null,Pb=!1,C2=Ut(null),Z4=Ut(0),Ii=Ut(null),$u=null,D2=1,Zp=2,Kn=Ut(0),J4=0,Iu=1,ql=2,Wi=4,Vl=8,O2,f9=new Set,d9=new Set,e6=new Set,h9=new Set,ks=0,Ve=null,Jt=null,fa=null,K4=!1,z2=!1,Uh=!1,F4=0,Jp=0,Xs=null,lM=0,iM=25,K=null,Wu=null,Qs=-1,Kp=!1,Fp={readContext:Tt,use:po,useCallback:vn,useContext:vn,useEffect:vn,useImperativeHandle:vn,useLayoutEffect:vn,useInsertionEffect:vn,useMemo:vn,useReducer:vn,useRef:vn,useState:vn,useDebugValue:vn,useDeferredValue:vn,useTransition:vn,useSyncExternalStore:vn,useId:vn,useHostTransitionStatus:vn,useFormState:vn,useActionState:vn,useOptimistic:vn,useMemoCache:vn,useCacheRefresh:vn};Fp.useEffectEvent=vn;var t6=null,m9=null,n6=null,g9=null,Uc=null,No=null,$4=null;t6={readContext:function(e){return Tt(e)},use:po,useCallback:function(e,t){return K="useCallback",qe(),go(t),l1(e,t)},useContext:function(e){return K="useContext",qe(),Tt(e)},useEffect:function(e,t){return K="useEffect",qe(),go(t),hs(e,t)},useImperativeHandle:function(e,t,a){return K="useImperativeHandle",qe(),go(a),_u(e,t,a)},useInsertionEffect:function(e,t){K="useInsertionEffect",qe(),go(t),mc(4,ql,e,t)},useLayoutEffect:function(e,t){return K="useLayoutEffect",qe(),go(t),Fa(e,t)},useMemo:function(e,t){K="useMemo",qe(),go(t);var a=F.H;F.H=Uc;try{return $a(e,t)}finally{F.H=a}},useReducer:function(e,t,a){K="useReducer",qe();var o=F.H;F.H=Uc;try{return zr(e,t,a)}finally{F.H=o}},useRef:function(e){return K="useRef",qe(),a1(e)},useState:function(e){K="useState",qe();var t=F.H;F.H=Uc;try{return rc(e)}finally{F.H=t}},useDebugValue:function(){K="useDebugValue",qe()},useDeferredValue:function(e,t){return K="useDeferredValue",qe(),Lr(e,t)},useTransition:function(){return K="useTransition",qe(),gc()},useSyncExternalStore:function(e,t,a){return K="useSyncExternalStore",qe(),Nr(e,t,a)},useId:function(){return K="useId",qe(),Ld()},useFormState:function(e,t){return K="useFormState",qe(),_d(),Cl(e,t)},useActionState:function(e,t){return K="useActionState",qe(),Cl(e,t)},useOptimistic:function(e){return K="useOptimistic",qe(),ds(e)},useHostTransitionStatus:bo,useMemoCache:xl,useCacheRefresh:function(){return K="useCacheRefresh",qe(),i1()},useEffectEvent:function(e){return K="useEffectEvent",qe(),Bd(e)}},m9={readContext:function(e){return Tt(e)},use:po,useCallback:function(e,t){return K="useCallback",le(),l1(e,t)},useContext:function(e){return K="useContext",le(),Tt(e)},useEffect:function(e,t){return K="useEffect",le(),hs(e,t)},useImperativeHandle:function(e,t,a){return K="useImperativeHandle",le(),_u(e,t,a)},useInsertionEffect:function(e,t){K="useInsertionEffect",le(),mc(4,ql,e,t)},useLayoutEffect:function(e,t){return K="useLayoutEffect",le(),Fa(e,t)},useMemo:function(e,t){K="useMemo",le();var a=F.H;F.H=Uc;try{return $a(e,t)}finally{F.H=a}},useReducer:function(e,t,a){K="useReducer",le();var o=F.H;F.H=Uc;try{return zr(e,t,a)}finally{F.H=o}},useRef:function(e){return K="useRef",le(),a1(e)},useState:function(e){K="useState",le();var t=F.H;F.H=Uc;try{return rc(e)}finally{F.H=t}},useDebugValue:function(){K="useDebugValue",le()},useDeferredValue:function(e,t){return K="useDeferredValue",le(),Lr(e,t)},useTransition:function(){return K="useTransition",le(),gc()},useSyncExternalStore:function(e,t,a){return K="useSyncExternalStore",le(),Nr(e,t,a)},useId:function(){return K="useId",le(),Ld()},useActionState:function(e,t){return K="useActionState",le(),Cl(e,t)},useFormState:function(e,t){return K="useFormState",le(),_d(),Cl(e,t)},useOptimistic:function(e){return K="useOptimistic",le(),ds(e)},useHostTransitionStatus:bo,useMemoCache:xl,useCacheRefresh:function(){return K="useCacheRefresh",le(),i1()},useEffectEvent:function(e){return K="useEffectEvent",le(),Bd(e)}},n6={readContext:function(e){return Tt(e)},use:po,useCallback:function(e,t){return K="useCallback",le(),Ri(e,t)},useContext:function(e){return K="useContext",le(),Tt(e)},useEffect:function(e,t){K="useEffect",le(),Xn(2048,Vl,e,t)},useImperativeHandle:function(e,t,a){return K="useImperativeHandle",le(),Hr(e,t,a)},useInsertionEffect:function(e,t){return K="useInsertionEffect",le(),Xn(4,ql,e,t)},useLayoutEffect:function(e,t){return K="useLayoutEffect",le(),Xn(4,Wi,e,t)},useMemo:function(e,t){K="useMemo",le();var a=F.H;F.H=No;try{return nn(e,t)}finally{F.H=a}},useReducer:function(e,t,a){K="useReducer",le();var o=F.H;F.H=No;try{return ss(e,t,a)}finally{F.H=o}},useRef:function(){return K="useRef",le(),Ct().memoizedState},useState:function(){K="useState",le();var e=F.H;F.H=No;try{return ss(Ml)}finally{F.H=e}},useDebugValue:function(){K="useDebugValue",le()},useDeferredValue:function(e,t){return K="useDeferredValue",le(),xu(e,t)},useTransition:function(){return K="useTransition",le(),_3()},useSyncExternalStore:function(e,t,a){return K="useSyncExternalStore",le(),fs(e,t,a)},useId:function(){return K="useId",le(),Ct().memoizedState},useFormState:function(e){return K="useFormState",le(),_d(),dc(e)},useActionState:function(e){return K="useActionState",le(),dc(e)},useOptimistic:function(e,t){return K="useOptimistic",le(),zd(e,t)},useHostTransitionStatus:bo,useMemoCache:xl,useCacheRefresh:function(){return K="useCacheRefresh",le(),Ct().memoizedState},useEffectEvent:function(e){return K="useEffectEvent",le(),Br(e)}},g9={readContext:function(e){return Tt(e)},use:po,useCallback:function(e,t){return K="useCallback",le(),Ri(e,t)},useContext:function(e){return K="useContext",le(),Tt(e)},useEffect:function(e,t){K="useEffect",le(),Xn(2048,Vl,e,t)},useImperativeHandle:function(e,t,a){return K="useImperativeHandle",le(),Hr(e,t,a)},useInsertionEffect:function(e,t){return K="useInsertionEffect",le(),Xn(4,ql,e,t)},useLayoutEffect:function(e,t){return K="useLayoutEffect",le(),Xn(4,Wi,e,t)},useMemo:function(e,t){K="useMemo",le();var a=F.H;F.H=$4;try{return nn(e,t)}finally{F.H=a}},useReducer:function(e,t,a){K="useReducer",le();var o=F.H;F.H=$4;try{return rs(e,t,a)}finally{F.H=o}},useRef:function(){return K="useRef",le(),Ct().memoizedState},useState:function(){K="useState",le();var e=F.H;F.H=$4;try{return rs(Ml)}finally{F.H=e}},useDebugValue:function(){K="useDebugValue",le()},useDeferredValue:function(e,t){return K="useDeferredValue",le(),Ke(e,t)},useTransition:function(){return K="useTransition",le(),rn()},useSyncExternalStore:function(e,t,a){return K="useSyncExternalStore",le(),fs(e,t,a)},useId:function(){return K="useId",le(),Ct().memoizedState},useFormState:function(e){return K="useFormState",le(),_d(),hc(e)},useActionState:function(e){return K="useActionState",le(),hc(e)},useOptimistic:function(e,t){return K="useOptimistic",le(),Nd(e,t)},useHostTransitionStatus:bo,useMemoCache:xl,useCacheRefresh:function(){return K="useCacheRefresh",le(),Ct().memoizedState},useEffectEvent:function(e){return K="useEffectEvent",le(),Br(e)}},Uc={readContext:function(e){return M(),Tt(e)},use:function(e){return A(),po(e)},useCallback:function(e,t){return K="useCallback",A(),qe(),l1(e,t)},useContext:function(e){return K="useContext",A(),qe(),Tt(e)},useEffect:function(e,t){return K="useEffect",A(),qe(),hs(e,t)},useImperativeHandle:function(e,t,a){return K="useImperativeHandle",A(),qe(),_u(e,t,a)},useInsertionEffect:function(e,t){K="useInsertionEffect",A(),qe(),mc(4,ql,e,t)},useLayoutEffect:function(e,t){return K="useLayoutEffect",A(),qe(),Fa(e,t)},useMemo:function(e,t){K="useMemo",A(),qe();var a=F.H;F.H=Uc;try{return $a(e,t)}finally{F.H=a}},useReducer:function(e,t,a){K="useReducer",A(),qe();var o=F.H;F.H=Uc;try{return zr(e,t,a)}finally{F.H=o}},useRef:function(e){return K="useRef",A(),qe(),a1(e)},useState:function(e){K="useState",A(),qe();var t=F.H;F.H=Uc;try{return rc(e)}finally{F.H=t}},useDebugValue:function(){K="useDebugValue",A(),qe()},useDeferredValue:function(e,t){return K="useDeferredValue",A(),qe(),Lr(e,t)},useTransition:function(){return K="useTransition",A(),qe(),gc()},useSyncExternalStore:function(e,t,a){return K="useSyncExternalStore",A(),qe(),Nr(e,t,a)},useId:function(){return K="useId",A(),qe(),Ld()},useFormState:function(e,t){return K="useFormState",A(),qe(),Cl(e,t)},useActionState:function(e,t){return K="useActionState",A(),qe(),Cl(e,t)},useOptimistic:function(e){return K="useOptimistic",A(),qe(),ds(e)},useMemoCache:function(e){return A(),xl(e)},useHostTransitionStatus:bo,useCacheRefresh:function(){return K="useCacheRefresh",qe(),i1()},useEffectEvent:function(e){return K="useEffectEvent",A(),qe(),Bd(e)}},No={readContext:function(e){return M(),Tt(e)},use:function(e){return A(),po(e)},useCallback:function(e,t){return K="useCallback",A(),le(),Ri(e,t)},useContext:function(e){return K="useContext",A(),le(),Tt(e)},useEffect:function(e,t){K="useEffect",A(),le(),Xn(2048,Vl,e,t)},useImperativeHandle:function(e,t,a){return K="useImperativeHandle",A(),le(),Hr(e,t,a)},useInsertionEffect:function(e,t){return K="useInsertionEffect",A(),le(),Xn(4,ql,e,t)},useLayoutEffect:function(e,t){return K="useLayoutEffect",A(),le(),Xn(4,Wi,e,t)},useMemo:function(e,t){K="useMemo",A(),le();var a=F.H;F.H=No;try{return nn(e,t)}finally{F.H=a}},useReducer:function(e,t,a){K="useReducer",A(),le();var o=F.H;F.H=No;try{return ss(e,t,a)}finally{F.H=o}},useRef:function(){return K="useRef",A(),le(),Ct().memoizedState},useState:function(){K="useState",A(),le();var e=F.H;F.H=No;try{return ss(Ml)}finally{F.H=e}},useDebugValue:function(){K="useDebugValue",A(),le()},useDeferredValue:function(e,t){return K="useDeferredValue",A(),le(),xu(e,t)},useTransition:function(){return K="useTransition",A(),le(),_3()},useSyncExternalStore:function(e,t,a){return K="useSyncExternalStore",A(),le(),fs(e,t,a)},useId:function(){return K="useId",A(),le(),Ct().memoizedState},useFormState:function(e){return K="useFormState",A(),le(),dc(e)},useActionState:function(e){return K="useActionState",A(),le(),dc(e)},useOptimistic:function(e,t){return K="useOptimistic",A(),le(),zd(e,t)},useMemoCache:function(e){return A(),xl(e)},useHostTransitionStatus:bo,useCacheRefresh:function(){return K="useCacheRefresh",le(),Ct().memoizedState},useEffectEvent:function(e){return K="useEffectEvent",A(),le(),Br(e)}},$4={readContext:function(e){return M(),Tt(e)},use:function(e){return A(),po(e)},useCallback:function(e,t){return K="useCallback",A(),le(),Ri(e,t)},useContext:function(e){return K="useContext",A(),le(),Tt(e)},useEffect:function(e,t){K="useEffect",A(),le(),Xn(2048,Vl,e,t)},useImperativeHandle:function(e,t,a){return K="useImperativeHandle",A(),le(),Hr(e,t,a)},useInsertionEffect:function(e,t){return K="useInsertionEffect",A(),le(),Xn(4,ql,e,t)},useLayoutEffect:function(e,t){return K="useLayoutEffect",A(),le(),Xn(4,Wi,e,t)},useMemo:function(e,t){K="useMemo",A(),le();var a=F.H;F.H=No;try{return nn(e,t)}finally{F.H=a}},useReducer:function(e,t,a){K="useReducer",A(),le();var o=F.H;F.H=No;try{return rs(e,t,a)}finally{F.H=o}},useRef:function(){return K="useRef",A(),le(),Ct().memoizedState},useState:function(){K="useState",A(),le();var e=F.H;F.H=No;try{return rs(Ml)}finally{F.H=e}},useDebugValue:function(){K="useDebugValue",A(),le()},useDeferredValue:function(e,t){return K="useDeferredValue",A(),le(),Ke(e,t)},useTransition:function(){return K="useTransition",A(),le(),rn()},useSyncExternalStore:function(e,t,a){return K="useSyncExternalStore",A(),le(),fs(e,t,a)},useId:function(){return K="useId",A(),le(),Ct().memoizedState},useFormState:function(e){return K="useFormState",A(),le(),hc(e)},useActionState:function(e){return K="useActionState",A(),le(),hc(e)},useOptimistic:function(e,t){return K="useOptimistic",A(),le(),Nd(e,t)},useMemoCache:function(e){return A(),xl(e)},useHostTransitionStatus:bo,useCacheRefresh:function(){return K="useCacheRefresh",le(),Ct().memoizedState},useEffectEvent:function(e){return K="useEffectEvent",A(),le(),Br(e)}};var p9={},y9=new Set,v9=new Set,w9=new Set,b9=new Set,S9=new Set,E9=new Set,T9=new Set,A9=new Set,_9=new Set,x9=new Set;Object.freeze(p9);var a6={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Ua(e),r=kn(o);r.payload=t,a!=null&&(ys(a),r.callback=a),t=Su(e,r,o),t!==null&&(vu(o,"this.setState()",e),je(t,e,o),ni(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Ua(e),r=kn(o);r.tag=c9,r.payload=t,a!=null&&(ys(a),r.callback=a),t=Su(e,r,o),t!==null&&(vu(o,"this.replaceState()",e),je(t,e,o),ni(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ua(e),o=kn(a);o.tag=s9,t!=null&&(ys(t),o.callback=t),t=Su(e,o,a),t!==null&&(vu(a,"this.forceUpdate()",e),je(t,e,a),ni(t,e,a))}},N2=null,l6=null,i6=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),da=!1,M9={},C9={},D9={},O9={},U2=!1,z9={},I4={},u6={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},N9=!1,U9=null;U9=new Set;var Zs=!1,ha=!1,o6=!1,B9=typeof WeakSet=="function"?WeakSet:Set,Ga=null,B2=null,H2=null,ma=null,ci=!1,Uo=null,_a=!1,$p=8192,uM={getCacheForType:function(e){var t=Tt(sa),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Tt(sa).controller.signal},getOwner:function(){return gl}};if(typeof Symbol=="function"&&Symbol.for){var Ip=Symbol.for;Ip("selector.component"),Ip("selector.has_pseudo_class"),Ip("selector.role"),Ip("selector.test_id"),Ip("selector.text")}var oM=[],cM=typeof WeakMap=="function"?WeakMap:Map,Ra=0,xa=2,Pi=4,Js=0,Wp=1,Bh=2,W4=3,zf=4,P4=6,H9=5,pt=Ra,Kt=null,lt=null,tt=0,si=0,ev=1,Hh=2,Pp=3,L9=4,c6=5,ey=6,tv=7,s6=8,Lh=9,qt=si,eu=null,Nf=!1,L2=!1,r6=!1,Bc=0,Sn=Js,Uf=0,Bf=0,f6=0,ri=0,Gh=0,ty=null,Yl=null,nv=!1,av=0,G9=0,R9=300,lv=1/0,j9=500,ny=null,jn=null,Hf=null,iv=0,d6=1,h6=2,q9=3,Lf=0,V9=1,Y9=2,k9=3,X9=4,uv=5,ga=0,Gf=null,G2=null,Bo=0,m6=0,g6=-0,p6=null,Q9=null,Z9=null,Ho=iv,J9=null,sM=50,ay=0,y6=null,v6=!1,ov=!1,rM=50,Rh=0,ly=null,R2=!1,cv=null,K9=!1,F9=new Set,fM={},sv=null,j2=null,w6=!1,b6=!1,rv=!1,S6=!1,Rf=0,E6={};(function(){for(var e=0;e<Ub.length;e++){var t=Ub[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Ci(a,"on"+t)}Ci(_7,"onAnimationEnd"),Ci(x7,"onAnimationIteration"),Ci(M7,"onAnimationStart"),Ci("dblclick","onDoubleClick"),Ci("focusin","onFocus"),Ci("focusout","onBlur"),Ci(qx,"onTransitionRun"),Ci(Vx,"onTransitionStart"),Ci(Yx,"onTransitionCancel"),Ci(C7,"onTransitionEnd")})(),fr("onMouseEnter",["mouseout","mouseover"]),fr("onMouseLeave",["mouseout","mouseover"]),fr("onPointerEnter",["pointerout","pointerover"]),fr("onPointerLeave",["pointerout","pointerover"]),_i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),_i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),_i("onBeforeInput",["compositionend","keypress","textInput","paste"]),_i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),_i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),_i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var iy="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),T6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(iy)),fv="_reactListening"+Math.random().toString(36).slice(2),$9=!1,I9=!1,dv=!1,W9=!1,hv=!1,mv=!1,P9=!1,gv={},dM=/\r\n?/g,hM=/\u0000|\uFFFD/g,jh="http://www.w3.org/1999/xlink",A6="http://www.w3.org/XML/1998/namespace",mM="javascript:throw new Error('React form unexpectedly submitted.')",gM="suppressHydrationWarning",qh="&",pv="/&",uy="$",oy="/$",jf="$?",Vh="$~",q2="$!",pM="html",yM="body",vM="head",_6="F!",eE="F",tE="loading",wM="style",Ks=0,V2=1,yv=2,x6=null,M6=null,nE={dialog:!0,webview:!0},C6=null,cy=void 0,aE=typeof setTimeout=="function"?setTimeout:void 0,bM=typeof clearTimeout=="function"?clearTimeout:void 0,Yh=-1,lE=typeof Promise=="function"?Promise:void 0,SM=typeof queueMicrotask=="function"?queueMicrotask:typeof lE<"u"?function(e){return lE.resolve(null).then(e).catch(J3)}:aE,D6=null,kh=0,sy=1,iE=2,uE=3,Pu=4,eo=new Map,oE=new Set,Fs=_t.d;_t.d={f:function(){var e=Fs.f(),t=Ul();return e||t},r:function(e){var t=vl(e);t!==null&&t.tag===5&&t.type==="form"?Gr(t):Fs.r(e)},D:function(e){Fs.D(e),$g("dns-prefetch",e,null)},C:function(e,t){Fs.C(e,t),$g("preconnect",e,t)},L:function(e,t,a){Fs.L(e,t,a);var o=Y2;if(o&&e&&t){var r='link[rel="preload"][as="'+Ht(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+Ht(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+Ht(a.imageSizes)+'"]')):r+='[href="'+Ht(e)+'"]';var d=r;switch(t){case"style":d=Ms(e);break;case"script":d=Cs(e)}eo.has(d)||(e=We({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),eo.set(d,e),o.querySelector(r)!==null||t==="style"&&o.querySelector(ch(d))||t==="script"&&o.querySelector(sh(d))||(t=o.createElement("link"),an(t,"link",e),xn(t),o.head.appendChild(t)))}},m:function(e,t){Fs.m(e,t);var a=Y2;if(a&&e){var o=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Ht(o)+'"][href="'+Ht(e)+'"]',d=r;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Cs(e)}if(!eo.has(d)&&(e=We({rel:"modulepreload",href:e},t),eo.set(d,e),a.querySelector(r)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(sh(d)))return}o=a.createElement("link"),an(o,"link",e),xn(o),a.head.appendChild(o)}}},X:function(e,t){Fs.X(e,t);var a=Y2;if(a&&e){var o=Kl(a).hoistableScripts,r=Cs(e),d=o.get(r);d||(d=a.querySelector(sh(r)),d||(e=We({src:e,async:!0},t),(t=eo.get(r))&&Pg(e,t),d=a.createElement("script"),xn(d),an(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(r,d))}},S:function(e,t,a){Fs.S(e,t,a);var o=Y2;if(o&&e){var r=Kl(o).hoistableStyles,d=Ms(e);t=t||"default";var p=r.get(d);if(!p){var v={loading:kh,preload:null};if(p=o.querySelector(ch(d)))v.loading=sy|Pu;else{e=We({rel:"stylesheet",href:e,"data-precedence":t},a),(a=eo.get(d))&&Wg(e,a);var T=p=o.createElement("link");xn(T),an(T,"link",e),T._p=new Promise(function(_,H){T.onload=_,T.onerror=H}),T.addEventListener("load",function(){v.loading|=sy}),T.addEventListener("error",function(){v.loading|=iE}),v.loading|=Pu,lf(p,t,o)}p={type:"stylesheet",instance:p,count:1,state:v},r.set(d,p)}}},M:function(e,t){Fs.M(e,t);var a=Y2;if(a&&e){var o=Kl(a).hoistableScripts,r=Cs(e),d=o.get(r);d||(d=a.querySelector(sh(r)),d||(e=We({src:e,async:!0,type:"module"},t),(t=eo.get(r))&&Pg(e,t),d=a.createElement("script"),xn(d),an(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(r,d))}}};var Y2=typeof document>"u"?null:document,vv=null,EM=6e4,TM=800,AM=500,O6=0,z6=null,wv=null,Xh=Sb,ry={$$typeof:Ji,Provider:null,Consumer:null,_currentValue:Xh,_currentValue2:Xh,_threadCount:0},cE="%c%s%c",sE="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",rE="",bv=" ",_M=Function.prototype.bind,fE=!1,dE=null,hE=null,mE=null,gE=null,pE=null,yE=null,vE=null,wE=null,bE=null,SE=null;dE=function(e,t,a,o){t=i(e,t),t!==null&&(a=c(t.memoizedState,a,0,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=We({},e.memoizedProps),a=za(e,2),a!==null&&je(a,e,2))},hE=function(e,t,a){t=i(e,t),t!==null&&(a=y(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=We({},e.memoizedProps),a=za(e,2),a!==null&&je(a,e,2))},mE=function(e,t,a,o){t=i(e,t),t!==null&&(a=f(t.memoizedState,a,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=We({},e.memoizedProps),a=za(e,2),a!==null&&je(a,e,2))},gE=function(e,t,a){e.pendingProps=c(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=za(e,2),t!==null&&je(t,e,2)},pE=function(e,t){e.pendingProps=y(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=za(e,2),t!==null&&je(t,e,2)},yE=function(e,t,a){e.pendingProps=f(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=za(e,2),t!==null&&je(t,e,2)},vE=function(e){var t=za(e,2);t!==null&&je(t,e,2)},wE=function(e){var t=cr(),a=za(e,t);a!==null&&je(a,e,t)},bE=function(e){E=e},SE=function(e){w=e};var Sv=!0,Ev=null,N6=!1,qf=null,Vf=null,Yf=null,fy=new Map,dy=new Map,kf=[],xM="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),Tv=null;if(Zi.prototype.render=sp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var a=arguments;typeof a[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):ue(a[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof a[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),a=e;var o=t.current,r=Ua(o);F1(o,r,a,t,null,null)},Zi.prototype.unmount=sp.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(pt&(xa|Pi))!==Ra&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),F1(e.current,2,null,e,null,null),Ul(),t[Do]=null}},Zi.prototype.unstable_scheduleHydration=function(e){if(e){var t=E0();e={blockedOn:null,target:e,priority:t};for(var a=0;a<kf.length&&t!==0&&t<kf[a].priority;a++);kf.splice(a,0,e),a===0&&cp(e)}},function(){var e=mh.version;if(e!=="19.2.0")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
321
- - react: `+(e+`
322
- - react-dom: 19.2.0
323
- Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),_t.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=nt(t),e=e!==null?Be(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.2.0"};return e.overrideHookState=dE,e.overrideHookStateDeletePath=hE,e.overrideHookStateRenamePath=mE,e.overrideProps=gE,e.overridePropsDeletePath=pE,e.overridePropsRenamePath=yE,e.scheduleUpdate=vE,e.scheduleRetry=wE,e.setErrorHandler=bE,e.setSuspenseHandler=SE,e.scheduleRefresh=ne,e.scheduleRoot=k,e.setRefreshHandler=oe,e.getCurrentFiber=Rt,kt(e)}()&&Oc&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var EE=window.location.protocol;/^(https?|file):$/.test(EE)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(EE==="file:"?`
324
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}pm.createRoot=function(e,t){if(!ue(e))throw Error("Target container is not a DOM element.");rp(e);var a=!1,o="",r=c1,d=s1,p=lg;return t!=null&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===ui&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
325
-
326
- let root = createRoot(domContainer);
327
- root.render(<App />);`),t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=dh(e,1,!1,null,null,a,o,null,r,d,p,y4),e[Do]=t.current,Ec(e),new sp(t)},pm.hydrateRoot=function(e,t,a){if(!ue(e))throw Error("Target container is not a DOM element.");rp(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var o=!1,r="",d=c1,p=s1,v=lg,T=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(d=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError),a.formState!==void 0&&(T=a.formState)),t=dh(e,1,!0,t,a??null,o,r,T,d,p,v,y4),t.context=h4(null),a=t.current,o=Ua(a),o=sn(o),r=kn(o),r.callback=null,Su(a,r,o),vu(o,"hydrateRoot()",null),a=o,t.current.lanes=a,su(t,a),fl(t),e[Do]=t.current,Ec(e),new Zi(t)},pm.version="19.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),pm}function o7(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o7)}catch(i){console.error(i)}}}process.env.NODE_ENV==="production"?(o7(),ib.exports=x_()):ib.exports=M_();var C_=ib.exports;const D_=i=>b.jsx("span",{className:"iw-text-2xl",children:b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",...i,children:[b.jsx("path",{d:"M0 0C9.01627 8.39148 22.9837 8.39148 32 0C23.6085 9.01627 23.6085 22.9837 32 32C22.9837 23.6085 9.01627 23.6085 0 32C8.39148 22.9837 8.39148 9.01627 0 0Z",fill:"url(#paint0_linear_6039_13039)"}),b.jsx("defs",{children:b.jsxs("linearGradient",{id:"paint0_linear_6039_13039",x1:"16",y1:"-3.5",x2:"41.5",y2:"29",gradientUnits:"userSpaceOnUse",children:[b.jsx("stop",{offset:"0.210966",stopColor:"#1E06CB"}),b.jsx("stop",{offset:"0.740385",stopColor:"#DB38EF"})]})})]})}),O_=()=>b.jsx(Ov,{config:{api:{baseUrl:"http://localhost:8000/api",authToken:""},interview:{proctoring:{enabled:!1,gazeAnalysisEnabled:!1,showControls:!1,showEngagementBar:!1,showLandmarks:!1}}},children:b.jsx("div",{className:"interview-widget-container",children:b.jsx(n3,{title:"Frontend Developer",brandName:"Previa",interviewId:"ea3cb06a-c168-4ad3-8084-4165a79473d3",className:"iw-rounded-none iw-shadow-none",onInterviewEnd:()=>{console.log("🎉🎉 Interview ended 🎉🎉"),window.location.reload(),sessionStorage.clear()},onInterviewDisqualify:()=>{console.log("❌ Interview disqualified ❌")}})})}),z_=document.getElementById("root");C_.createRoot(z_).render(b.jsx(O_,{}));const N_=(i,c,f)=>Math.max(c,Math.min(f,i)),c7=i=>{const c=Math.max(0,Math.floor(i)),f=Math.floor(c/60).toString().padStart(2,"0"),h=(c%60).toString().padStart(2,"0");return`${f}:${h}`},e3=({total:i,remaining:c,size:f=64,strokeWidth:h=6,className:y="",showLabel:w=!0})=>{const E=Math.max(1,i||1),A=N_(c/E,0,1),{radius:M,circumference:G,dashOffset:U,center:N}=j.useMemo(()=>{const ne=(f-h)/2,oe=2*Math.PI*ne,ue=oe*(1-A),P=Math.round(h)%2===1,ye=f/2+(P?.5:0);return{radius:ne,circumference:oe,dashOffset:ue,center:ye}},[f,h,A]),q=j.useMemo(()=>A<=.25?"iw-stroke-red-500":A<=.5?"iw-stroke-yellow-500":"iw-stroke-green-500",[A]),k=A<=.25?"iw-animate-pulse":"";return b.jsxs("div",{className:`iw-relative iw-inline-flex iw-items-center iw-justify-center iw-rounded-full iw-bg-white ${y}`,style:{width:f,height:f},"aria-label":`Time remaining ${c7(c)}`,role:"timer","aria-live":"polite",children:[b.jsx("svg",{width:f,height:f,viewBox:`0 0 ${f} ${f}`,preserveAspectRatio:"xMidYMid meet",children:b.jsxs("g",{transform:`rotate(-90 ${N} ${N})`,children:[b.jsx("circle",{cx:N,cy:N,r:M,className:"iw-stroke-gray-200",strokeWidth:h,fill:"none",shapeRendering:"geometricPrecision",vectorEffect:"non-scaling-stroke"}),b.jsx("circle",{cx:N,cy:N,r:M,className:`${q} ${k}`,strokeWidth:h,strokeLinecap:"round",fill:"none",strokeDasharray:G,strokeDashoffset:U,shapeRendering:"geometricPrecision",vectorEffect:"non-scaling-stroke",style:{transition:"stroke-dashoffset 0.3s ease, stroke 0.2s ease"}})]})}),w?b.jsx("div",{className:"iw-absolute iw-inset-0 iw-flex iw-items-center iw-justify-center iw-rotate-0",children:b.jsx("span",{className:`iw-text-[11px] iw-font-semibold iw-tabular-nums ${A<=.25?"iw-text-red-600":A<=.5?"iw-text-yellow-600":"iw-text-green-600"}`,children:c7(c)})}):b.jsx("div",{className:"iw-absolute iw-inset-0 iw-flex iw-items-center iw-justify-center iw-rotate-0",children:b.jsx(ZE,{})})]})},U_=({timerState:i,answeringTime:c})=>{const f=(i==null?void 0:i.currentPhaseTimeRemaining)||0,h=c||I8.answeringDuration;return b.jsxs("div",{className:"iw-flex iw-items-center iw-gap-3",children:[b.jsx(e3,{total:h,remaining:f,size:50,strokeWidth:4,showLabel:!1,className:"iw-shadow-sm iw-border iw-border-gray-100"}),b.jsxs("div",{className:"iw-flex iw-flex-col",children:[b.jsx("span",{className:"iw-text-[#5C6686]",children:"Time left to answer"}),b.jsxs("span",{className:"iw-text-xl iw-font-bold iw-text-[#062260]",children:[Nv(f)," mins"]})]})]})},B_=({question:i,isLoading:c=!1,phase:f,brandName:h,timerState:y,answeringTime:w})=>b.jsx("div",{className:"iw-rounded-xl iw-mb-4 message-animation iw-text-gray-800 iw-py-1",children:b.jsxs("div",{className:"iw-flex iw-items-center iw-gap-4",children:[b.jsx("div",{className:`iw-flex iw-flex-col iw-items-center iw-justify-center iw-relative iw-h-16 iw-w-16 iw-shrink-0 iw-shadow iw-rounded-full iw-border-[#E8EEFE] iw-border-4 ${f===St.READING_QUESTION?"iw-animate-speaking":""}`,children:b.jsx("div",{className:"iw-bg-transparent iw-flex iw-items-center iw-justify-center iw-rounded-full iw-size-full",style:{backgroundImage:"linear-gradient(#B5D0FD, #FFFFFF)"},children:b.jsx(D_,{className:"iw-size-8"})})}),b.jsx(H_,{phase:f,question:i,isLoading:c,brandName:h,timerState:y,answeringTime:w})]})}),H_=({phase:i,question:c,isLoading:f,brandName:h,timerState:y,answeringTime:w})=>{const E=h||"We",A=h?"is":"are";if(f||i===St.FETCHING_QUESTION||i===St.IDLE)return b.jsxs("div",{className:"iw-animate-pulse iw-w-full iw-space-y-3 iw-mr-10",children:[b.jsx("div",{className:"iw-h-5 iw-bg-gray-200 iw-rounded iw-w-full"}),b.jsx("div",{className:"iw-h-5 iw-bg-gray-200 iw-rounded iw-w-3/4"})]});const M=()=>b.jsxs("span",{className:"iw-animate-dot-wave iw-ml-1",children:[b.jsx("span",{children:"."}),b.jsx("span",{children:"."}),b.jsx("span",{children:"."})]});switch(i){case St.ANSWERING:return b.jsxs("div",{className:"iw-flex iw-items-center iw-justify-between iw-w-full",children:[b.jsxs("p",{className:"iw-text-lg iw-leading-7 iw-font-medium iw-text-gray-600",children:["Listening",b.jsx(M,{})]}),b.jsx(U_,{timerState:y,answeringTime:w})]});case St.TRANSCRIBING:return b.jsxs("p",{className:"iw-text-lg iw-leading-7 iw-font-medium iw-text-gray-600",children:[E," ",A," analyzing your answer",b.jsx(M,{})]});case(St.EDITING||St.SUBMITTING):return b.jsxs("p",{className:"iw-text-lg iw-leading-7 iw-font-medium iw-text-gray-600",children:[E," ",A," waiting for your answer..."]});default:return b.jsx("p",{className:"iw-text-lg iw-leading-7",children:c==null?void 0:c.question})}},L_=({label:i,error:c,fullWidth:f=!1,className:h="",id:y,...w})=>{const E=y||`textarea-${Math.random().toString(36).substring(2,9)}`,A="iw-block iw-rounded-md iw-border iw-border-gray-300 iw-shadow-sm iw-px-4 iw-py-2 iw-text-sm iw-transition-all",M=c?"iw-border-red-500 iw-focus:border-red-500 iw-focus:ring-red-500":"",G=f?"iw-w-full":"",U=h.includes("iw-h-full")||f?"iw-h-full":"";return b.jsxs("div",{className:`iw-h-full iw-flex iw-flex-col ${f?"iw-w-full":""}`,children:[i&&b.jsx("label",{htmlFor:E,className:"iw-block iw-text-sm iw-font-medium iw-text-gray-700 iw-mb-1",children:i}),b.jsx("textarea",{id:E,className:`${A} ${M} ${G} ${U} ${h}`,"aria-invalid":c?"true":"false",...w}),c&&b.jsx("p",{className:"iw-mt-1 iw-text-sm iw-text-red-600",children:c})]})},G_=({answerText:i,onAnswerChange:c,timerState:f,editingTime:h})=>b.jsxs("div",{className:"iw-w-full iw-bg-white iw-rounded-xl iw-border iw-border-[#84bbf5] iw-overflow-hidden iw-rounded-tr-none",children:[b.jsx("div",{className:"iw-p-2 iw-pb-0",children:b.jsx(L_,{value:i,onChange:c,placeholder:"Type your answer here...",className:"iw-w-full iw-h-64 iw-resize-none iw-bg-transparent iw-border-none iw-text-[#062260] iw-text-base iw-leading-relaxed focus-visible:iw-outline-0 iw-p-0",disabled:f.phase===St.SUBMITTING})}),b.jsxs("div",{className:"iw-bg-[#F1F5FE] iw-px-2 iw-py-2 iw-flex iw-items-center iw-justify-between iw-border-t iw-border-[#E8EEFE]",children:[b.jsx("span",{className:"iw-text-[#062260] iw-text-sm iw-font-medium iw-line-clamp-1",children:"Time left to edit answer"}),b.jsxs("div",{className:"iw-flex iw-items-center iw-gap-2",children:[b.jsx(e3,{total:h,remaining:f.currentPhaseTimeRemaining,size:32,strokeWidth:3,showLabel:!1}),b.jsx("span",{className:"iw-text-[#062260] iw-text-sm iw-font-bold",children:`${Nv(f.currentPhaseTimeRemaining)} mins`})]})]})]}),s7=({children:i})=>b.jsx("div",{className:"iw-flex iw-flex-col iw-items-start iw-mt-3 iw-gap-1",children:i}),R_=({children:i})=>b.jsx("div",{className:"iw-flex iw-flex-col iw-items-end iw-mt-3 iw-gap-1",children:i}),j_=({questionNumber:i})=>b.jsxs("div",{className:"iw-px-4 iw-py-1.5 iw-rounded-full iw-mb-2 iw-text-sm iw-font-semibold",style:{color:"#062260",backgroundColor:"#E6F3FF",border:"1px solid #BDE0FD"},children:[" Q",i]}),r7=({label:i})=>b.jsxs("div",{className:"iw-flex iw-items-center iw-gap-2 iw-text-sm iw-text-gray-500 iw-bg-[#F1F5FE] iw-px-4 iw-py-1.5 iw-rounded-full iw-my-2 iw-font-semibold",children:[i&&b.jsx("span",{className:"iw-font-medium",children:i}),b.jsxs("span",{className:"iw-animate-dot-wave iw-text-2xl",children:[b.jsx("span",{children:"."}),b.jsx("span",{children:"."}),b.jsx("span",{children:"."})]})]}),q_=({phase:i,questionNumber:c})=>{switch(i){case St.FETCHING_QUESTION:return b.jsxs(s7,{children:[b.jsx(j_,{questionNumber:c+1}),b.jsx(r7,{})]});case St.ANSWERING:return b.jsx(R_,{children:b.jsx(r7,{label:"You"})});case St.TRANSCRIBING:return b.jsx(s7,{children:b.jsxs("div",{className:"iw-flex iw-items-center iw-px-1 iw-py-1.5 iw-rounded-lg iw-mb-2 iw-text-sm iw-bg-[#F2E8FE]",children:[b.jsx("img",{src:"../../../../src/assets/transcribing.gif",alt:"Transcribing",className:"iw-h-8 iw-w-12"}),b.jsx("span",{className:"iw-text-sm iw-text-[#062260]",children:"Analyzing answer…"})]})});default:return null}},V_=({item:i,index:c,isCurrentQuestion:f=!1,isEditable:h=!1,answerText:y="",onAnswerChange:w,timerState:E,editingTime:A})=>{const M=h&&E&&A!==void 0,G=M||i.answer;return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"iw-flex iw-flex-col iw-items-start",children:[b.jsxs("div",{className:"iw-px-4 iw-py-1.5 iw-rounded-full iw-mb-2 iw-text-sm iw-font-semibold",style:{color:"#062260",backgroundColor:"#E6F3FF",border:"1px solid #BDE0FD"},children:["Q",c+1]}),b.jsx("div",{className:"iw-w-full iw-p-4 iw-rounded-xl iw-text-[#062260] iw-text-base iw-leading-relaxed iw-rounded-tl-none",style:{backgroundColor:"#F1F5FE",border:f?"2px solid #84bbf5":"1px solid transparent"},children:i.question})]}),G&&b.jsxs("div",{className:"iw-flex iw-flex-col iw-items-end iw-mt-4",children:[b.jsx("div",{className:"iw-px-4 iw-py-1.5 iw-rounded-full iw-mb-2 iw-text-sm iw-font-semibold",style:{color:"#062260",backgroundColor:"#F2E8FE",border:"1px solid #E9D5FF"},children:"You"}),M?b.jsx(G_,{answerText:y||"",onAnswerChange:w,timerState:E,editingTime:A}):b.jsx("div",{className:"iw-w-full iw-p-4 iw-rounded-xl iw-text-[#062260] iw-text-base iw-leading-relaxed iw-rounded-tr-none",style:{backgroundColor:"#F7F1FE"},children:i.answer})]}),f&&b.jsx(q_,{phase:E==null?void 0:E.phase,questionNumber:c+1})]})},Y_=()=>b.jsx("div",{className:"iw-space-y-6 iw-animate-pulse",children:[1,2,3].map(i=>b.jsxs("div",{className:`iw-flex iw-flex-col ${i%2===0?"iw-items-end":"iw-items-start"} iw-gap-2`,children:[b.jsx("div",{className:"iw-h-8 iw-w-16 iw-bg-gray-200 iw-rounded-full"}),b.jsx("div",{className:"iw-h-24 iw-w-full iw-bg-gray-100 iw-rounded-xl"})]},i))}),k_=({transcript:i,isLoading:c,className:f="",bottomRef:h,isEditing:y,answerText:w,onAnswerChange:E,timerState:A,editingTime:M})=>b.jsxs("div",{className:`iw-h-full iw-flex iw-flex-col iw-bg-white iw-scroll-smooth iw-p-6 iw-pr-2 iw-min-w-32 iw-border iw-rounded-tr-2xl iw-rounded-br-2xl iw-border-[#E8EEFE] ${f}`,children:[b.jsxs("div",{className:"iw-mb-6",children:[b.jsx("h2",{className:"iw-text-lg iw-font-semibold iw-mb-4",style:{color:"#062260"},children:"Interview transcript"}),b.jsx("div",{className:"iw-h-px iw-w-full iw-border-t iw-border-dashed iw-border-gray-300"})]}),b.jsxs("div",{className:"iw-flex-1 iw-overflow-y-auto iw-pr-2 iw-space-y-6 iw-scrollbar-thin iw-max-w-xl iw-pb-5",children:[c?b.jsx(Y_,{}):i==null?void 0:i.map((G,U)=>b.jsx(V_,{item:G,index:U,isCurrentQuestion:U===(i==null?void 0:i.length)-1,isEditable:!!(U===(i==null?void 0:i.length)-1&&y),answerText:w||"",onAnswerChange:E||(()=>{}),timerState:A,editingTime:M},G.qna_id)),b.jsx("div",{ref:h})]})]}),X_=({interviewId:i,className:c="",currentQuestion:f,lastSubmittedAnswer:h,isEditing:y,answerText:w,onAnswerChange:E,timerState:A,editingTime:M})=>{const G=P8(),[U,N]=j.useState([]),[q,k]=j.useState(!0),ne=j.useRef(null);return j.useEffect(()=>{var oe;(oe=ne.current)==null||oe.scrollIntoView({behavior:"smooth"})},[U,w,A==null?void 0:A.phase]),j.useEffect(()=>{(async()=>{var ue;try{const P=await G.getInterviewTranscription(i);N(((ue=P==null?void 0:P.data)==null?void 0:ue.question_answers)||[])}catch(P){console.error("Failed to fetch transcript:",P)}finally{k(!1)}})()},[i,G]),j.useEffect(()=>{f&&N(oe=>{if(oe.some(ye=>ye.qna_id===f.qna_id))return oe;const P={qna_id:f.qna_id,question:f.question,answer:null,question_generated_at:new Date().toISOString(),answer_submitted_at:null};return[...oe,P]})},[f]),j.useEffect(()=>{h!=null&&h.answer?N(oe=>oe.map(ue=>ue.qna_id===h.qnaId?{...ue,answer:h.answer,answer_submitted_at:new Date().toISOString()}:ue)):w&&N(oe=>oe.map(ue=>ue.qna_id===(h==null?void 0:h.qnaId)?{...ue,answer:w,answer_submitted_at:new Date().toISOString()}:ue))},[h,w]),b.jsx(k_,{transcript:U,isLoading:q||(U==null?void 0:U.length)===0,className:c,bottomRef:ne,isEditing:y,answerText:w,onAnswerChange:E,timerState:A,editingTime:M})},Q_=({onClick:i,text:c="Submit response"})=>(j.useEffect(()=>{if(typeof window>"u")return;const f=h=>{const y=h.metaKey||h.ctrlKey,w=h.key===" ",E=h.target;E.tagName==="INPUT"||E.isContentEditable||y&&w&&(h.preventDefault(),i())};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[i]),b.jsx("div",{className:"iw-fixed iw-bottom-10 iw-left-1/4 iw-transform iw--translate-x-1/2 iw-z-50",children:b.jsxs("button",{onClick:i,className:"iw-flex iw-items-center iw-gap-3 iw-bg-[#4C6CFF] hover:iw-bg-[#4c6dffd5] iw-text-white iw-px-5 iw-py-3 iw-rounded-lg iw-shadow-lg iw-transition-all iw-duration-200 iw-group",children:[b.jsx("span",{className:"iw-font-semibold iw-text-sm",children:c}),b.jsx("span",{className:"iw-bg-white/90 iw-text-[#062260] iw-px-2 iw-py-1 iw-rounded iw-text-xs iw-font-mono iw-font-bold group-hover:iw-bg-white iw-transition-colors",children:"Press Ctrl / ⌘ + Space"})]})})),f7=({brandName:i,currentQuestion:c,state:f,phase:h,className:y="",interviewId:w="",interview_duration:E=hy,videoFeedRef:A,lastSubmittedAnswer:M,onNextPhase:G,answerText:U,onAnswerChange:N,editingTime:q,answeringTime:k})=>b.jsxs("div",{className:`iw-px-4 iw-py-3 ${y} iw-h-[calc(100vh_-_120px)] iw-max-h-[calc(100vh_-_120px)] iw-flex iw-gap-0 iw-relative`,children:[b.jsxs("div",{className:"iw-flex iw-flex-col iw-flex-1 iw-p-5 iw-bg-white/50 iw-border iw-border-[#E8EEFE] iw-rounded-s-3xl iw-overflow-hidden",children:[b.jsx("div",{className:"iw-flex iw-items-start iw-justify-between iw-gap-3 iw-mb-4",children:b.jsx("div",{className:"iw-flex-1",children:b.jsx(B_,{question:c,isLoading:h===St.FETCHING_QUESTION||h===St.IDLE,phase:h,brandName:i,timerState:f,answeringTime:k})})}),b.jsx("div",{className:"iw-flex-1 iw-min-h-0 iw-rounded-[16px] iw-overflow-hidden iw-relative",children:b.jsx(F8,{ref:A,interviewId:w,interview_duration:E,isAnswering:h===St.ANSWERING})})]}),b.jsx("div",{className:"iw-interview-transcription iw-w-1/4 iw-min-w-32 iw-h-full",children:b.jsx(X_,{interviewId:w,currentQuestion:c,lastSubmittedAnswer:M,isEditing:h===St.EDITING,answerText:U,onAnswerChange:N,timerState:f,editingTime:q})}),G&&(h===St.ANSWERING||h===St.EDITING)&&b.jsx(Q_,{onClick:G,text:h===St.ANSWERING?"Submit Response":"Submit Final Response"})]}),Z_=({confirmExitInterview:i,isOpen:c,onClose:f})=>b.jsx(lb,{isOpen:c,onClose:f,title:"Exit Interview",closeOnOverlayClick:!1,children:b.jsxs("div",{className:"iw-space-y-5",children:[b.jsxs("div",{className:"iw-flex iw-items-start iw-gap-3 iw-rounded-xl iw-p-2",children:[b.jsx("div",{className:"iw-flex iw-h-10 iw-w-10 iw-flex-none iw-items-center iw-justify-center iw-rounded-full iw-bg-rose-100 iw-text-rose-600",children:"!"}),b.jsxs("div",{className:"iw-space-y-2",children:[b.jsx("p",{className:"iw-text-sm iw-font-semibold iw-text-rose-600",children:"Leaving now will end your interview !"}),b.jsx("p",{className:"iw-text-sm iw-text-slate-500",children:"Are you sure you want to exit? All progress will be lost and you will not be able to resume."})]})]}),b.jsxs("div",{className:"iw-flex iw-flex-col-reverse iw-gap-2 sm:iw-flex-row sm:iw-items-center sm:iw-justify-end iw-pb-1",children:[b.jsx("button",{className:"iw-inline-flex iw-items-center iw-justify-center iw-rounded-lg iw-border iw-border-slate-200 iw-bg-white iw-px-4 iw-py-2 iw-text-sm iw-font-medium iw-text-slate-600 iw-shadow-sm iw-transition hover:iw-bg-slate-50",onClick:f,children:"Stay in interview"}),b.jsx("button",{className:"iw-inline-flex iw-items-center iw-justify-center iw-rounded-lg iw-px-4 iw-py-2 iw-text-sm iw-font-semibold iw-text-white iw-transition hover:iw-brightness-110",style:{background:"linear-gradient(to right, rgba(244, 63, 94, 0.8), rgba(225, 29, 72, 0.8))",boxShadow:"0 12px 30px -16px rgba(244, 63, 94, 0.65)"},onClick:i,children:"Confirm exit"})]})]})}),d7=({title:i,brandName:c,brandLogo:f,onExit:h,totalDuration:y=30,elapsedTime:w=0})=>{const{baseColor:E}=Q2(),[A,M]=j.useState(!1),G=Math.min(w/(y*60)*100,100),U=()=>b.jsxs("div",{className:"iw-px-4 iw-pb-2 iw-flex iw-items-center iw-gap-3",children:[b.jsx("div",{className:"iw-flex-1 iw-h-4 iw-bg-[#F2F4F7] iw-rounded-full iw-overflow-hidden iw-border iw-border-blue-100 iw-relative",children:b.jsx("div",{className:"iw-h-full iw-bg-[#0EB00E] iw-rounded-full iw-transition-all iw-duration-1000 iw-ease-linear",style:{width:`${G}%`}})}),b.jsxs("div",{className:"iw-text-sm iw-font-medium iw-whitespace-nowrap",children:[b.jsx("span",{className:"iw-text-[#062260]",children:Nv(w)}),b.jsxs("span",{className:"iw-text-[#667085]",children:["/",y," Min"]})]})]});return b.jsxs("header",{className:"iw-w-full iw-text-gray-900 iw-shadow-sm",children:[b.jsxs("div",{className:"iw-mx-auto iw-flex iw-items-center iw-justify-between iw-p-4 iw-pt-1 iw-mb-2 iw-border-b iw-border-[#B3B9CB] iw-border-dashed",children:[b.jsxs("div",{className:"iw-flex iw-items-center iw-space-x-2",children:[f||b.jsx("div",{className:"iw-h-7 iw-w-7 iw-rounded-md iw-flex iw-items-center iw-justify-center iw-text-white iw-font-semibold",style:{backgroundColor:E},children:R6(c)}),b.jsx("p",{className:"iw-text-xl iw-font-semibold",children:c})]}),b.jsx("h1",{className:"iw-text-2xl iw-font-semibold iw-text-gradient-silver",children:i}),b.jsx("button",{className:"iw-text-sm iw-text-[#E94315] iw-min-w-10 iw-rounded-md hover:iw-bg-orange-100 iw-p-2",onClick:()=>M(!0),children:b.jsxs("span",{className:"iw-flex iw-items-center iw-gap-1 iw-text-[18px] iw-font-semibold iw-whitespace-nowrap",children:[b.jsx(q6,{className:"iw-text-[#E94315] iw-size-5"}),"Leave interview"]})})]}),b.jsx(U,{}),b.jsx("div",{className:"iw-h-px iw-bg-gray-200"}),b.jsx(Z_,{isOpen:A,confirmExitInterview:()=>{h(),M(!1)},onClose:()=>M(!1)})]})},J_=({className:i="",width:c,height:f=56,barWidth:h=3,gap:y=2,fftSize:w=1024,smoothingTimeConstant:E=.8,mediaStream:A,startOnMount:M=!0})=>{const{baseColor:G}=Q2(),U=j.useRef(null),N=j.useRef(null),q=j.useRef(null),k=j.useRef(null),ne=j.useRef(null),oe=j.useRef(null),ue=j.useRef(!1),[P,ye]=j.useState(null);j.useEffect(()=>{if(c||!N.current)return;const Te=N.current,nt=()=>{const Qe=U.current;if(!Qe)return;const xe=Te.clientWidth,me=f;Qe.width=Math.max(1,Math.floor(xe*window.devicePixelRatio||1)),Qe.height=Math.max(1,Math.floor(me*window.devicePixelRatio||1))},Be=new ResizeObserver(nt);return Be.observe(Te),nt(),()=>Be.disconnect()},[c,f]),j.useEffect(()=>{if(!c)return;const Te=U.current;Te&&(Te.width=Math.max(1,Math.floor(c*(window.devicePixelRatio||1))),Te.height=Math.max(1,Math.floor(f*(window.devicePixelRatio||1))))},[c,f]),j.useEffect(()=>{let Te=!1;return(async()=>{try{const Be=new(window.AudioContext||window.webkitAudioContext);q.current=Be;let Qe=A;if(!Qe){if(!M)return;Qe=await navigator.mediaDevices.getUserMedia({audio:!0,video:!1}),ue.current=!0}if(Te)return;const xe=Be.createAnalyser();xe.fftSize=w,xe.smoothingTimeConstant=E,k.current=xe;const me=Be.createMediaStreamSource(Qe);ne.current=me,me.connect(xe),be()}catch(Be){ye((Be==null?void 0:Be.message)||"Failed to initialize microphone")}})(),()=>{var Be,Qe,xe,me;Te=!0,oe.current&&cancelAnimationFrame(oe.current);try{(Be=ne.current)==null||Be.disconnect()}catch{}try{(Qe=k.current)==null||Qe.disconnect()}catch{}ue.current&&((me=((xe=ne.current)==null?void 0:xe.mediaStream)||void 0)==null||me.getTracks().forEach(ce=>ce.stop())),q.current&&q.current.state!=="closed"&&q.current.close()}},[A,w,E,M]);const be=()=>{const Te=U.current,nt=k.current;if(!Te||!nt)return;const Be=Te.getContext("2d");if(!Be)return;const Qe=window.devicePixelRatio||1,xe=Te.width,me=Te.height,ce=nt.frequencyBinCount,Ut=new Uint8Array(ce),ke=()=>{oe.current=requestAnimationFrame(ke),nt.getByteTimeDomainData(Ut),Be.clearRect(0,0,xe,me),Be.fillStyle="rgba(0,0,0,0)",Be.fillRect(0,0,xe,me);const He=Math.max(1,Math.floor(h*Qe)),Ft=Math.max(1,Math.floor(y*Qe)),$t=He+Ft,V=Math.max(8,Math.floor((xe+Ft)/$t)),ee=Math.floor(Ut.length/V);for(let ie=0;ie<V;ie++){const ve=Math.min(Ut.length-1,ie*ee),Ce=Ut[ve]/128-1,Et=Math.abs(Ce),st=Math.pow(Et,.6),Xe=Math.max(me*.06,st*(me*.9)),Ze=ie*$t,Bt=(me-Xe)/2,en=140-Math.min(140,140*Et),Pn=85,Vt=48+Math.floor(12*(1-Et));Be.fillStyle=`${G}`,Be.shadowColor=`hsla(${en}, ${Pn}%, ${Vt}%, ${.25*Et})`,Be.shadowBlur=8*Et;const ea=Math.min(He/2,Xe/2);K_(Be,Ze,Bt,He,Xe,ea),Be.fill()}};ke()};return b.jsxs("div",{ref:N,className:`iw-relative iw-w-full iw-overflow-hidden iw-rounded-md iw-bg-gray-50 ${i}`,style:{height:f},children:[b.jsx("canvas",{ref:U,className:"iw-w-full iw-h-full"}),P&&b.jsx("div",{className:"iw-absolute iw-inset-0 iw-flex iw-items-center iw-justify-center",children:b.jsx("span",{className:"iw-text-xs iw-text-red-600 iw-bg-red-50 iw-border iw-border-red-200 iw-px-2 iw-py-1 iw-rounded",children:P})})]})};function K_(i,c,f,h,y,w){const E=Math.min(w,h/2,y/2);i.beginPath(),i.moveTo(c+E,f),i.lineTo(c+h-E,f),i.quadraticCurveTo(c+h,f,c+h,f+E),i.lineTo(c+h,f+y-E),i.quadraticCurveTo(c+h,f+y,c+h-E,f+y),i.lineTo(c+E,f+y),i.quadraticCurveTo(c,f+y,c,f+y-E),i.lineTo(c,f+E),i.quadraticCurveTo(c,f,c+E,f),i.closePath()}const F_=({state:i,answeringTime:c,nextPhase:f,sttError:h})=>b.jsxs("div",{className:"iw-flex iw-flex-col iw-justify-between iw-h-full ",children:[b.jsxs("div",{children:[b.jsxs("div",{className:"iw-flex iw-items-center iw-justify-between",children:[b.jsx("h3",{className:"iw-text-lg iw-font-semibold iw-text-gray-900 iw-mb-1",children:"You may start speaking now. We're listening...."}),b.jsxs("div",{className:"iw-flex iw-items-center iw-justify-center iw-gap-2",children:[b.jsxs("div",{className:"iw-flex iw-items-center iw-gap-1",children:[b.jsx(j6,{className:"iw-size-4 iw-text-orange-600"}),b.jsx("p",{className:"iw-text-gray-700 iw-text-sm",children:"Time to talk: "})]}),b.jsx(e3,{total:c,remaining:i.currentPhaseTimeRemaining,size:50,strokeWidth:4})]})]}),b.jsx("p",{className:"iw-max-w-lg iw-text-gray-500 iw-text-xs iw-leading-[21px]",children:"Done talking? Click the button to review your answer."})]}),b.jsxs("div",{children:[b.jsx(J_,{}),h&&b.jsxs("div",{className:"iw-mt-2 iw-text-xs iw-text-red-600",children:["Recording error: ",h.message]})]}),b.jsx("div",{className:"iw-w-full iw-grid iw-grid-cols-1",children:b.jsx(mm,{onClick:()=>{f()},children:"Transcribe My Answer"})})]});function $_(){const[i,c]=j.useState(!0),f=j.useMemo(()=>[0,1,2].map(h=>({id:h})),[]);return j.useEffect(()=>{const h=setInterval(()=>{c(y=>!y)},1500);return()=>clearInterval(h)},[]),b.jsxs("div",{className:"iw-flex iw-flex-col iw-items-center iw-justify-center iw-gap-8 iw-h-full",children:[b.jsx("div",{className:"iw-relative iw-w-80 iw-h-48 ","aria-hidden":!0,children:f.map((h,y)=>{const w=y*50,E=i?w:w+12,A=i?1:.08,M=y*140;return b.jsx("div",{role:"presentation",className:"iw-absolute iw-w-full iw-rounded-lg iw-p-4 iw-shadow-md iw-bg-gradient-to-b iw-from-gray-50 iw-to-gray-100 iw-overflow-hidden",style:{top:0,transform:`translateY(${E}px)`,opacity:A,transition:`transform 600ms cubic-bezier(.2,.9,.3,1) ${M}ms, opacity 400ms ease ${M}ms`},children:b.jsxs("div",{className:"iw-flex iw-gap-3 iw-items-center",children:[b.jsx("div",{className:"iw-w-10 iw-h-10 iw-bg-gray-300 iw-rounded iw-flex-shrink-0"}),b.jsxs("div",{className:"iw-flex-1 iw-space-y-2",children:[b.jsx("div",{className:"iw-h-2 iw-bg-gray-300 iw-rounded iw-w-24"}),b.jsx("div",{className:"iw-h-2 iw-bg-gray-300 iw-rounded iw-w-32"})]})]})},h.id)})}),b.jsx("div",{className:"iw-text-center",children:b.jsx("p",{className:"iw-text-gray-500 iw-font-medium",children:"Preparing your question..."})})]})}const I_=({size:i="192px",className:c,colors:f,animationDuration:h=20})=>{const w={...{bg:"oklch(95% 0.02 264.695)",c1:"oklch(75% 0.15 350)",c2:"oklch(80% 0.12 200)",c3:"oklch(78% 0.14 280)"},...f},E=parseInt(i.replace("px",""),10),A=E<50?Math.max(E*.008,1):Math.max(E*.015,4),M=E<50?Math.max(E*.004,1.2):Math.max(E*.008,1.5),G=E<50?Math.max(E*.004,.05):Math.max(E*.008,.1),U=E<50?Math.max(E*.004,.5):Math.max(E*.008,2),N=E<30?"0%":E<50?"5%":E<100?"15%":"25%",q=E<30?1.1:E<50?Math.max(M*1.2,1.3):M;return b.jsx("div",{className:`siri-orb ${c}`,style:{width:i,height:i,"--bg":w.bg,"--c1":w.c1,"--c2":w.c2,"--c3":w.c3,"--animation-duration":`${h}s`,"--blur-amount":`${A}px`,"--contrast-amount":q,"--dot-size":`${G}px`,"--shadow-spread":`${U}px`,"--mask-radius":N},children:b.jsx("style",{children:`
74
+ └─────────────────────────────────────────────────────────────┘`,"color: #ffd93d; font-size: 14px; font-family: monospace; background: rgba(255, 217, 61, 0.1); padding: 10px;")}const t={open:!1,orientation:null},r=160,i=setInterval(()=>{window.outerHeight-window.innerHeight>r||window.outerWidth-window.innerWidth>r?t.open||(t.open=!0,t.orientation=window.outerWidth-window.innerWidth>r?"vertical":"horizontal",e()):t.open&&(t.open=!1,console.log("%c🌟 Developer tools closed. Interview continues smoothly! ✨","color: #4ecdc4; font-weight: bold; text-shadow: 0 0 10px #4ecdc4;"))},500),n=a=>{if(a.keyCode===123||a.ctrlKey&&a.shiftKey&&(a.keyCode===73||a.keyCode===74)||a.ctrlKey&&a.keyCode===85)return a.preventDefault(),console.log("%c🎭 Nice try! Keyboard shortcuts are disabled during interviews ✨","color: #ffd93d; font-weight: bold; text-shadow: 0 0 10px #ffd93d;"),!1},s=a=>(a.preventDefault(),console.log("%c🌈 Right-click menu disabled for interview integrity! 🎪","color: #ff9ff3; font-weight: bold; text-shadow: 0 0 10px #ff9ff3;"),!1);return document.addEventListener("keydown",n),document.addEventListener("contextmenu",s),()=>{clearInterval(i),document.removeEventListener("keydown",n),document.removeEventListener("contextmenu",s),delete window.showStats,delete window.interviewTips}},[])},b1=(e,t,r)=>Math.max(t,Math.min(r,e)),al=e=>{const t=Math.max(0,Math.floor(e)),r=Math.floor(t/60).toString().padStart(2,"0"),i=(t%60).toString().padStart(2,"0");return`${r}:${i}`},Yi=({total:e,remaining:t,size:r=64,strokeWidth:i=6,className:n="",showLabel:s=!0})=>{const a=Math.max(1,e||1),c=b1(t/a,0,1),{radius:l,circumference:h,dashOffset:d,center:f}=u.useMemo(()=>{const p=(r-i)/2,y=2*Math.PI*p,b=y*(1-c),m=Math.round(i)%2===1,S=r/2+(m?.5:0);return{radius:p,circumference:y,dashOffset:b,center:S}},[r,i,c]),w=u.useMemo(()=>c<=.25?"iw-stroke-red-500":c<=.5?"iw-stroke-yellow-500":"iw-stroke-green-500",[c]),g=c<=.25?"iw-animate-pulse":"";return o.jsxs("div",{className:`iw-relative iw-inline-flex iw-items-center iw-justify-center iw-rounded-full iw-bg-white ${n}`,style:{width:r,height:r},"aria-label":`Time remaining ${al(t)}`,role:"timer","aria-live":"polite",children:[o.jsx("svg",{width:r,height:r,viewBox:`0 0 ${r} ${r}`,preserveAspectRatio:"xMidYMid meet",children:o.jsxs("g",{transform:`rotate(-90 ${f} ${f})`,children:[o.jsx("circle",{cx:f,cy:f,r:l,className:"iw-stroke-gray-200",strokeWidth:i,fill:"none",shapeRendering:"geometricPrecision",vectorEffect:"non-scaling-stroke"}),o.jsx("circle",{cx:f,cy:f,r:l,className:`${w} ${g}`,strokeWidth:i,strokeLinecap:"round",fill:"none",strokeDasharray:h,strokeDashoffset:d,shapeRendering:"geometricPrecision",vectorEffect:"non-scaling-stroke",style:{transition:"stroke-dashoffset 0.3s ease, stroke 0.2s ease"}})]})}),s?o.jsx("div",{className:"iw-absolute iw-inset-0 iw-flex iw-items-center iw-justify-center iw-rotate-0",children:o.jsx("span",{className:`iw-text-[11px] iw-font-semibold iw-tabular-nums ${c<=.25?"iw-text-red-600":c<=.5?"iw-text-yellow-600":"iw-text-green-600"}`,children:al(t)})}):o.jsx("div",{className:"iw-absolute iw-inset-0 iw-flex iw-items-center iw-justify-center iw-rotate-0",children:o.jsx(jl,{})})]})},v1=({timerState:e,answeringTime:t})=>{const r=(e==null?void 0:e.currentPhaseTimeRemaining)||0,i=t||il.answeringDuration;return o.jsxs("div",{className:"iw-flex iw-items-center iw-gap-3",children:[o.jsx(Yi,{total:i,remaining:r,size:50,strokeWidth:4,showLabel:!1,className:"iw-shadow-sm iw-border iw-border-gray-100"}),o.jsxs("div",{className:"iw-flex iw-flex-col",children:[o.jsx("span",{className:"iw-text-[#5C6686]",children:"Time left to answer"}),o.jsxs("span",{className:"iw-text-xl iw-font-bold iw-text-[#062260]",children:[cn(r)," mins"]})]})]})},x1=({question:e,isLoading:t=!1,phase:r,brandName:i,brandLogo:n,timerState:s,answeringTime:a})=>o.jsx("div",{className:"iw-rounded-xl iw-mb-4 message-animation iw-text-gray-800 iw-py-1",children:o.jsxs("div",{className:"iw-flex iw-items-center iw-gap-4",children:[o.jsx("div",{className:`iw-flex iw-flex-col iw-items-center iw-justify-center iw-relative iw-h-16 iw-w-16 iw-shrink-0 iw-shadow iw-rounded-full iw-border-[#E8EEFE] iw-border-4 ${r===P.READING_QUESTION?"iw-animate-speaking":""}`,children:o.jsx("div",{className:"iw-bg-transparent iw-flex iw-items-center iw-justify-center iw-rounded-full iw-size-full",style:{backgroundImage:"linear-gradient(#B5D0FD, #FFFFFF)"},children:o.jsx(ln,{brandLogo:n,brandName:i})})}),o.jsx(E1,{phase:r,question:e,isLoading:t,brandName:i,timerState:s,answeringTime:a})]})}),E1=({phase:e,question:t,isLoading:r,brandName:i,timerState:n,answeringTime:s})=>{const a=i||"We",c=i?"is":"are";if(r||e===P.FETCHING_QUESTION||e===P.IDLE)return o.jsxs("div",{className:"iw-animate-pulse iw-w-full iw-space-y-3 iw-mr-10",children:[o.jsx("div",{className:"iw-h-5 iw-bg-gray-200 iw-rounded iw-w-full"}),o.jsx("div",{className:"iw-h-5 iw-bg-gray-200 iw-rounded iw-w-3/4"})]});const l=()=>o.jsxs("span",{className:"iw-animate-dot-wave iw-ml-1",children:[o.jsx("span",{children:"."}),o.jsx("span",{children:"."}),o.jsx("span",{children:"."})]});switch(e){case P.ANSWERING:return o.jsxs("div",{className:"iw-flex iw-items-center iw-justify-between iw-w-full",children:[o.jsxs("p",{className:"iw-text-lg iw-leading-7 iw-font-medium iw-text-gray-600",children:["Listening",o.jsx(l,{})]}),o.jsx(v1,{timerState:n,answeringTime:s})]});case P.TRANSCRIBING:return o.jsxs("p",{className:"iw-text-lg iw-leading-7 iw-font-medium iw-text-gray-600",children:[a," ",c," analyzing your answer",o.jsx(l,{})]});case(P.EDITING||P.SUBMITTING):return o.jsxs("p",{className:"iw-text-lg iw-leading-7 iw-font-medium iw-text-gray-600",children:[a," ",c," waiting for your answer..."]});default:return o.jsx("p",{className:"iw-text-lg iw-leading-7",children:t==null?void 0:t.question})}},k1=({label:e,error:t,fullWidth:r=!1,className:i="",id:n,...s})=>{const a=n||`textarea-${Math.random().toString(36).substring(2,9)}`,c="iw-block iw-rounded-md iw-border iw-border-gray-300 iw-shadow-sm iw-px-4 iw-py-2 iw-text-sm iw-transition-all",l=t?"iw-border-red-500 iw-focus:border-red-500 iw-focus:ring-red-500":"",h=r?"iw-w-full":"",d=i.includes("iw-h-full")||r?"iw-h-full":"";return o.jsxs("div",{className:`iw-h-full iw-flex iw-flex-col ${r?"iw-w-full":""}`,children:[e&&o.jsx("label",{htmlFor:a,className:"iw-block iw-text-sm iw-font-medium iw-text-gray-700 iw-mb-1",children:e}),o.jsx("textarea",{id:a,className:`${c} ${l} ${h} ${d} ${i}`,"aria-invalid":t?"true":"false",...s}),t&&o.jsx("p",{className:"iw-mt-1 iw-text-sm iw-text-red-600",children:t})]})},_1=({answerText:e,onAnswerChange:t,timerState:r,editingTime:i})=>o.jsxs("div",{className:"iw-w-full iw-bg-white iw-rounded-xl iw-border iw-border-[#84bbf5] iw-overflow-hidden iw-rounded-tr-none",children:[o.jsx("div",{className:"iw-p-2 iw-pb-0",children:o.jsx(k1,{value:e,onChange:t,placeholder:"Type your answer here...",className:"iw-w-full iw-h-64 iw-resize-none iw-bg-transparent iw-border-none iw-text-[#062260] iw-text-base iw-leading-relaxed focus-visible:iw-outline-0 iw-p-0",disabled:r.phase===P.SUBMITTING})}),o.jsxs("div",{className:"iw-bg-[#F1F5FE] iw-px-2 iw-py-2 iw-flex iw-items-center iw-justify-between iw-border-t iw-border-[#E8EEFE]",children:[o.jsx("span",{className:"iw-text-[#062260] iw-text-sm iw-font-medium iw-line-clamp-1",children:"Time left to edit answer"}),o.jsxs("div",{className:"iw-flex iw-items-center iw-gap-2",children:[o.jsx(Yi,{total:i,remaining:r.currentPhaseTimeRemaining,size:32,strokeWidth:3,showLabel:!1}),o.jsx("span",{className:"iw-text-[#062260] iw-text-sm iw-font-bold",children:`${cn(r.currentPhaseTimeRemaining)} mins`})]})]})]}),cl=({children:e})=>o.jsx("div",{className:"iw-flex iw-flex-col iw-items-start iw-mt-3 iw-gap-1",children:e}),N1=({children:e})=>o.jsx("div",{className:"iw-flex iw-flex-col iw-items-end iw-mt-3 iw-gap-1",children:e}),T1=({questionNumber:e})=>o.jsxs("div",{className:"iw-px-4 iw-py-1.5 iw-rounded-full iw-mb-2 iw-text-sm iw-font-semibold",style:{color:"#062260",backgroundColor:"#E6F3FF",border:"1px solid #BDE0FD"},children:[" Q",e]}),ll=({label:e})=>o.jsxs("div",{className:"iw-flex iw-items-center iw-gap-2 iw-text-sm iw-text-gray-500 iw-bg-[#F1F5FE] iw-px-4 iw-py-1.5 iw-rounded-full iw-my-2 iw-font-semibold",children:[e&&o.jsx("span",{className:"iw-font-medium",children:e}),o.jsxs("span",{className:"iw-animate-dot-wave iw-text-2xl",children:[o.jsx("span",{children:"."}),o.jsx("span",{children:"."}),o.jsx("span",{children:"."})]})]}),S1=({phase:e,questionNumber:t})=>{switch(e){case P.FETCHING_QUESTION:return o.jsxs(cl,{children:[o.jsx(T1,{questionNumber:t+1}),o.jsx(ll,{})]});case P.ANSWERING:return o.jsx(N1,{children:o.jsx(ll,{label:"You"})});case P.TRANSCRIBING:return o.jsx(cl,{children:o.jsxs("div",{className:"iw-flex iw-items-center iw-px-1 iw-py-1.5 iw-rounded-lg iw-mb-2 iw-text-sm iw-bg-[#F2E8FE]",children:[o.jsx("img",{src:"../../../../src/assets/transcribing.gif",alt:"Transcribing",className:"iw-h-8 iw-w-12"}),o.jsx("span",{className:"iw-text-sm iw-text-[#062260]",children:"Analyzing answer…"})]})});default:return null}},A1=({item:e,index:t,isCurrentQuestion:r=!1,isEditable:i=!1,answerText:n="",onAnswerChange:s,timerState:a,editingTime:c})=>{const l=i&&a&&c!==void 0,h=l||e.answer;return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"iw-flex iw-flex-col iw-items-start",children:[o.jsxs("div",{className:"iw-px-4 iw-py-1.5 iw-rounded-full iw-mb-2 iw-text-sm iw-font-semibold",style:{color:"#062260",backgroundColor:"#E6F3FF",border:"1px solid #BDE0FD"},children:["Q",t+1]}),o.jsx("div",{className:"iw-w-full iw-p-4 iw-rounded-xl iw-text-[#062260] iw-text-base iw-leading-relaxed iw-rounded-tl-none",style:{backgroundColor:"#F1F5FE",border:r?"2px solid #84bbf5":"1px solid transparent"},children:e.question})]}),h&&o.jsxs("div",{className:"iw-flex iw-flex-col iw-items-end iw-mt-4",children:[o.jsx("div",{className:"iw-px-4 iw-py-1.5 iw-rounded-full iw-mb-2 iw-text-sm iw-font-semibold",style:{color:"#062260",backgroundColor:"#F2E8FE",border:"1px solid #E9D5FF"},children:"You"}),l?o.jsx(_1,{answerText:n||"",onAnswerChange:s,timerState:a,editingTime:c}):o.jsx("div",{className:"iw-w-full iw-p-4 iw-rounded-xl iw-text-[#062260] iw-text-base iw-leading-relaxed iw-rounded-tr-none",style:{backgroundColor:"#F7F1FE"},children:e.answer})]}),r&&o.jsx(S1,{phase:a==null?void 0:a.phase,questionNumber:t+1})]})},C1=()=>o.jsx("div",{className:"iw-space-y-6 iw-animate-pulse",children:[1,2,3].map(e=>o.jsxs("div",{className:`iw-flex iw-flex-col ${e%2===0?"iw-items-end":"iw-items-start"} iw-gap-2`,children:[o.jsx("div",{className:"iw-h-8 iw-w-16 iw-bg-gray-200 iw-rounded-full"}),o.jsx("div",{className:"iw-h-24 iw-w-full iw-bg-gray-100 iw-rounded-xl"})]},e))}),I1=({transcript:e,isLoading:t,className:r="",bottomRef:i,isEditing:n,answerText:s,onAnswerChange:a,timerState:c,editingTime:l})=>o.jsxs("div",{className:`iw-h-full iw-flex iw-flex-col iw-bg-white iw-scroll-smooth iw-p-6 iw-pr-2 iw-min-w-32 iw-border iw-rounded-tr-2xl iw-rounded-br-2xl iw-border-[#E8EEFE] ${r}`,children:[o.jsxs("div",{className:"iw-mb-6",children:[o.jsx("h2",{className:"iw-text-lg iw-font-semibold iw-mb-4",style:{color:"#062260"},children:"Interview transcript"}),o.jsx("div",{className:"iw-h-px iw-w-full iw-border-t iw-border-dashed iw-border-gray-300"})]}),o.jsxs("div",{className:"iw-flex-1 iw-overflow-y-auto iw-pr-2 iw-space-y-6 iw-scrollbar-thin iw-max-w-xl iw-pb-5",children:[t?o.jsx(C1,{}):e==null?void 0:e.map((h,d)=>o.jsx(A1,{item:h,index:d,isCurrentQuestion:d===(e==null?void 0:e.length)-1,isEditable:!!(d===(e==null?void 0:e.length)-1&&n),answerText:s||"",onAnswerChange:a||(()=>{}),timerState:c,editingTime:l},h.qna_id)),o.jsx("div",{ref:i})]})]}),F1=({interviewId:e,className:t="",currentQuestion:r,lastSubmittedAnswer:i,isEditing:n,answerText:s,onAnswerChange:a,timerState:c,editingTime:l})=>{const h=sl(),[d,f]=u.useState([]),[w,g]=u.useState(!0),p=u.useRef(null);return u.useEffect(()=>{var y;(y=p.current)==null||y.scrollIntoView({behavior:"smooth"})},[d,s,c==null?void 0:c.phase]),u.useEffect(()=>{(async()=>{var b;try{const m=await h.getInterviewTranscription(e);f(((b=m==null?void 0:m.data)==null?void 0:b.question_answers)||[])}catch(m){console.error("Failed to fetch transcript:",m)}finally{g(!1)}})()},[e,h]),u.useEffect(()=>{r&&f(y=>{if(y.some(S=>S.qna_id===r.qna_id))return y;const m={qna_id:r.qna_id,question:r.question,answer:null,question_generated_at:new Date().toISOString(),answer_submitted_at:null};return[...y,m]})},[r]),u.useEffect(()=>{i!=null&&i.answer?f(y=>y.map(b=>b.qna_id===i.qnaId?{...b,answer:i.answer,answer_submitted_at:new Date().toISOString()}:b)):s&&f(y=>y.map(b=>b.qna_id===(i==null?void 0:i.qnaId)?{...b,answer:s,answer_submitted_at:new Date().toISOString()}:b))},[i,s]),o.jsx(I1,{transcript:d,isLoading:w||(d==null?void 0:d.length)===0,className:t,bottomRef:p,isEditing:n,answerText:s,onAnswerChange:a,timerState:c,editingTime:l})},L1=({onClick:e,text:t="Submit response"})=>(u.useEffect(()=>{if(typeof window>"u")return;const r=i=>{const n=i.metaKey||i.ctrlKey,s=i.key===" ",a=i.target;a.tagName==="INPUT"||a.isContentEditable||n&&s&&(i.preventDefault(),e())};return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[e]),o.jsx("div",{className:"iw-fixed iw-bottom-10 iw-left-1/4 iw-transform iw--translate-x-1/2 iw-z-50",children:o.jsxs("button",{onClick:e,className:"iw-flex iw-items-center iw-gap-3 iw-bg-[#4C6CFF] hover:iw-bg-[#4c6dffd5] iw-text-white iw-px-5 iw-py-3 iw-rounded-lg iw-shadow-lg iw-transition-all iw-duration-200 iw-group",children:[o.jsx("span",{className:"iw-font-semibold iw-text-sm",children:t}),o.jsx("span",{className:"iw-bg-white/90 iw-text-[#062260] iw-px-2 iw-py-1 iw-rounded iw-text-xs iw-font-mono iw-font-bold group-hover:iw-bg-white iw-transition-colors",children:"Press Ctrl / ⌘ + Space"})]})})),dl=({brandName:e,brandLogo:t,currentQuestion:r,state:i,phase:n,className:s="",interviewId:a="",interview_duration:c=oi,videoFeedRef:l,lastSubmittedAnswer:h,onNextPhase:d,answerText:f,onAnswerChange:w,editingTime:g,answeringTime:p})=>o.jsxs("div",{className:`iw-px-4 iw-py-3 ${s} iw-h-[calc(100vh_-_120px)] iw-max-h-[calc(100vh_-_120px)] iw-flex iw-gap-0 iw-relative`,children:[o.jsxs("div",{className:"iw-flex iw-flex-col iw-flex-1 iw-p-5 iw-bg-white/50 iw-border iw-border-[#E8EEFE] iw-rounded-s-3xl iw-overflow-hidden",children:[o.jsx("div",{className:"iw-flex iw-items-start iw-justify-between iw-gap-3 iw-mb-4",children:o.jsx("div",{className:"iw-flex-1",children:o.jsx(x1,{question:r,isLoading:n===P.FETCHING_QUESTION||n===P.IDLE,phase:n,brandName:e,brandLogo:t,timerState:i,answeringTime:p})})}),o.jsx("div",{className:"iw-flex-1 iw-min-h-0 iw-rounded-[16px] iw-overflow-hidden iw-relative",children:o.jsx(tl,{ref:l,interviewId:a,interview_duration:c,isAnswering:n===P.ANSWERING})})]}),o.jsx("div",{className:"iw-interview-transcription iw-w-1/4 iw-min-w-32 iw-h-full",children:o.jsx(F1,{interviewId:a,currentQuestion:r,lastSubmittedAnswer:h,isEditing:n===P.EDITING,answerText:f,onAnswerChange:w,timerState:i,editingTime:g})}),d&&(n===P.ANSWERING||n===P.EDITING)&&o.jsx(L1,{onClick:d,text:n===P.ANSWERING?"Submit Response":"Submit Final Response"})]}),M1=({confirmExitInterview:e,isOpen:t,onClose:r})=>o.jsxs(Ds,{isOpen:t,onClose:r,showCloseButton:!1,closeOnOverlayClick:!1,className:"iw-max-w-xl iw-border-2 iw-border-dashed iw-rounded-xl iw-border-[#6296FB]",children:[o.jsxs("div",{className:"iw-p-4",children:[o.jsx("h2",{className:"iw-text-xl iw-font-semibold iw-text-[#062260]",children:"Are you sure you want to leave interview?"}),o.jsx("p",{className:"iw-mt-2 iw-text-[#667085] iw-line-clamp-2",children:"If you exit now, the interview will be terminated and cannot be resumed."})]}),o.jsx("div",{className:"iw-my-0 iw-h-px iw-m-6 iw-border-t iw-border-dashed iw-border-[#B3B9CB]"}),o.jsxs("div",{className:"iw-flex iw-justify-center iw-gap-4 iw-p-4",children:[o.jsx(Ki,{className:"iw-px-8 iw-py-3 iw-rounded-xl !iw-bg-[#E94315] !iw-text-white !iw-font-bold !iw-shadow-md !hover:iw-opacity-70",onClick:e,children:"Leave"}),o.jsx(Ki,{onClick:r,className:"iw-px-6 iw-py-3 iw-rounded-xl !iw-bg-[#F1F5FE] !iw-text-[#062260] !iw-font-bold !iw-border !iw-border-[#E7EAF1] !iw-shadow-md hover:iw-opacity-70",children:"Stay in Interview"})]})]}),ul=({title:e,brandName:t,brandLogo:r,onExit:i,totalDuration:n=30,elapsedTime:s=0})=>{const[a,c]=u.useState(!1),l=Math.min(s/(n*60)*100,100),h=()=>o.jsxs("div",{className:"iw-px-4 iw-pb-2 iw-flex iw-items-center iw-gap-3",children:[o.jsx("div",{className:"iw-flex-1 iw-h-4 iw-bg-[#F2F4F7] iw-rounded-full iw-overflow-hidden iw-border iw-border-blue-100 iw-relative",children:o.jsx("div",{className:"iw-h-full iw-bg-[#0EB00E] iw-rounded-full iw-transition-all iw-duration-1000 iw-ease-linear",style:{width:`${l}%`}})}),o.jsxs("div",{className:"iw-text-sm iw-font-medium iw-whitespace-nowrap",children:[o.jsx("span",{className:"iw-text-[#062260]",children:cn(s)}),o.jsxs("span",{className:"iw-text-[#667085]",children:["/",n," Min"]})]})]});return o.jsxs("header",{className:"iw-w-full iw-text-gray-900 iw-shadow-sm",children:[o.jsxs("div",{className:"iw-mx-auto iw-flex iw-items-center iw-justify-between iw-p-4 iw-pt-1 iw-mb-2 iw-border-b iw-border-[#B3B9CB] iw-border-dashed",children:[o.jsxs("div",{className:"iw-flex iw-items-center iw-space-x-2",children:[o.jsx(ln,{brandLogo:r,brandName:t}),o.jsx("p",{className:"iw-text-xl iw-font-semibold",children:t})]}),o.jsx("h1",{className:"iw-text-2xl iw-font-semibold iw-text-gradient-silver",children:e}),o.jsx("button",{className:"iw-text-sm iw-text-[#E94315] iw-min-w-10 iw-rounded-md hover:iw-bg-orange-100 iw-p-2",onClick:()=>c(!0),children:o.jsxs("span",{className:"iw-flex iw-items-center iw-gap-1 iw-text-[18px] iw-font-semibold iw-whitespace-nowrap",children:[o.jsx(qs,{className:"iw-text-[#E94315] iw-size-5"}),"Leave interview"]})})]}),o.jsx(h,{}),o.jsx("div",{className:"iw-h-px iw-bg-gray-200"}),o.jsx(M1,{isOpen:a,confirmExitInterview:()=>{i(),c(!1)},onClose:()=>c(!1)})]})},P1=({className:e="",width:t,height:r=56,barWidth:i=3,gap:n=2,fftSize:s=1024,smoothingTimeConstant:a=.8,mediaStream:c,startOnMount:l=!0})=>{const{baseColor:h}=ci(),d=u.useRef(null),f=u.useRef(null),w=u.useRef(null),g=u.useRef(null),p=u.useRef(null),y=u.useRef(null),b=u.useRef(!1),[m,S]=u.useState(null);u.useEffect(()=>{if(t||!f.current)return;const C=f.current,U=()=>{const V=d.current;if(!V)return;const ne=C.clientWidth,T=r;V.width=Math.max(1,Math.floor(ne*window.devicePixelRatio||1)),V.height=Math.max(1,Math.floor(T*window.devicePixelRatio||1))},L=new ResizeObserver(U);return L.observe(C),U(),()=>L.disconnect()},[t,r]),u.useEffect(()=>{if(!t)return;const C=d.current;C&&(C.width=Math.max(1,Math.floor(t*(window.devicePixelRatio||1))),C.height=Math.max(1,Math.floor(r*(window.devicePixelRatio||1))))},[t,r]),u.useEffect(()=>{let C=!1;return(async()=>{try{const L=new(window.AudioContext||window.webkitAudioContext);w.current=L;let V=c;if(!V){if(!l)return;V=await navigator.mediaDevices.getUserMedia({audio:!0,video:!1}),b.current=!0}if(C)return;const ne=L.createAnalyser();ne.fftSize=s,ne.smoothingTimeConstant=a,g.current=ne;const T=L.createMediaStreamSource(V);p.current=T,T.connect(ne),I()}catch(L){S((L==null?void 0:L.message)||"Failed to initialize microphone")}})(),()=>{var L,V,ne,T;C=!0,y.current&&cancelAnimationFrame(y.current);try{(L=p.current)==null||L.disconnect()}catch{}try{(V=g.current)==null||V.disconnect()}catch{}b.current&&((T=((ne=p.current)==null?void 0:ne.mediaStream)||void 0)==null||T.getTracks().forEach(j=>j.stop())),w.current&&w.current.state!=="closed"&&w.current.close()}},[c,s,a,l]);const I=()=>{const C=d.current,U=g.current;if(!C||!U)return;const L=C.getContext("2d");if(!L)return;const V=window.devicePixelRatio||1,ne=C.width,T=C.height,j=U.frequencyBinCount,ft=new Uint8Array(j),qe=()=>{y.current=requestAnimationFrame(qe),U.getByteTimeDomainData(ft),L.clearRect(0,0,ne,T),L.fillStyle="rgba(0,0,0,0)",L.fillRect(0,0,ne,T);const Ve=Math.max(1,Math.floor(i*V)),it=Math.max(1,Math.floor(n*V)),nt=Ve+it,Kt=Math.max(8,Math.floor((ne+it)/nt)),Tt=Math.floor(ft.length/Kt);for(let St=0;St<Kt;St++){const wt=Math.min(ft.length-1,St*Tt),At=ft[wt]/128-1,st=Math.abs(At),Sr=Math.pow(st,.6),Ct=Math.max(T*.06,Sr*(T*.9)),ti=St*nt,ot=(T-Ct)/2,pe=140-Math.min(140,140*st),je=85,ee=48+Math.floor(12*(1-st));L.fillStyle=`${h}`,L.shadowColor=`hsla(${pe}, ${je}%, ${ee}%, ${.25*st})`,L.shadowBlur=8*st;const It=Math.min(Ve/2,Ct/2);D1(L,ti,ot,Ve,Ct,It),L.fill()}};qe()};return o.jsxs("div",{ref:f,className:`iw-relative iw-w-full iw-overflow-hidden iw-rounded-md iw-bg-gray-50 ${e}`,style:{height:r},children:[o.jsx("canvas",{ref:d,className:"iw-w-full iw-h-full"}),m&&o.jsx("div",{className:"iw-absolute iw-inset-0 iw-flex iw-items-center iw-justify-center",children:o.jsx("span",{className:"iw-text-xs iw-text-red-600 iw-bg-red-50 iw-border iw-border-red-200 iw-px-2 iw-py-1 iw-rounded",children:m})})]})};function D1(e,t,r,i,n,s){const a=Math.min(s,i/2,n/2);e.beginPath(),e.moveTo(t+a,r),e.lineTo(t+i-a,r),e.quadraticCurveTo(t+i,r,t+i,r+a),e.lineTo(t+i,r+n-a),e.quadraticCurveTo(t+i,r+n,t+i-a,r+n),e.lineTo(t+a,r+n),e.quadraticCurveTo(t,r+n,t,r+n-a),e.lineTo(t,r+a),e.quadraticCurveTo(t,r,t+a,r),e.closePath()}const O1=({state:e,answeringTime:t,nextPhase:r,sttError:i})=>o.jsxs("div",{className:"iw-flex iw-flex-col iw-justify-between iw-h-full ",children:[o.jsxs("div",{children:[o.jsxs("div",{className:"iw-flex iw-items-center iw-justify-between",children:[o.jsx("h3",{className:"iw-text-lg iw-font-semibold iw-text-gray-900 iw-mb-1",children:"You may start speaking now. We're listening...."}),o.jsxs("div",{className:"iw-flex iw-items-center iw-justify-center iw-gap-2",children:[o.jsxs("div",{className:"iw-flex iw-items-center iw-gap-1",children:[o.jsx(Hs,{className:"iw-size-4 iw-text-orange-600"}),o.jsx("p",{className:"iw-text-gray-700 iw-text-sm",children:"Time to talk: "})]}),o.jsx(Yi,{total:t,remaining:e.currentPhaseTimeRemaining,size:50,strokeWidth:4})]})]}),o.jsx("p",{className:"iw-max-w-lg iw-text-gray-500 iw-text-xs iw-leading-[21px]",children:"Done talking? Click the button to review your answer."})]}),o.jsxs("div",{children:[o.jsx(P1,{}),i&&o.jsxs("div",{className:"iw-mt-2 iw-text-xs iw-text-red-600",children:["Recording error: ",i.message]})]}),o.jsx("div",{className:"iw-w-full iw-grid iw-grid-cols-1",children:o.jsx(ei,{onClick:()=>{r()},children:"Transcribe My Answer"})})]});function B1(){const[e,t]=u.useState(!0),r=u.useMemo(()=>[0,1,2].map(i=>({id:i})),[]);return u.useEffect(()=>{const i=setInterval(()=>{t(n=>!n)},1500);return()=>clearInterval(i)},[]),o.jsxs("div",{className:"iw-flex iw-flex-col iw-items-center iw-justify-center iw-gap-8 iw-h-full",children:[o.jsx("div",{className:"iw-relative iw-w-80 iw-h-48 ","aria-hidden":!0,children:r.map((i,n)=>{const s=n*50,a=e?s:s+12,c=e?1:.08,l=n*140;return o.jsx("div",{role:"presentation",className:"iw-absolute iw-w-full iw-rounded-lg iw-p-4 iw-shadow-md iw-bg-gradient-to-b iw-from-gray-50 iw-to-gray-100 iw-overflow-hidden",style:{top:0,transform:`translateY(${a}px)`,opacity:c,transition:`transform 600ms cubic-bezier(.2,.9,.3,1) ${l}ms, opacity 400ms ease ${l}ms`},children:o.jsxs("div",{className:"iw-flex iw-gap-3 iw-items-center",children:[o.jsx("div",{className:"iw-w-10 iw-h-10 iw-bg-gray-300 iw-rounded iw-flex-shrink-0"}),o.jsxs("div",{className:"iw-flex-1 iw-space-y-2",children:[o.jsx("div",{className:"iw-h-2 iw-bg-gray-300 iw-rounded iw-w-24"}),o.jsx("div",{className:"iw-h-2 iw-bg-gray-300 iw-rounded iw-w-32"})]})]})},i.id)})}),o.jsx("div",{className:"iw-text-center",children:o.jsx("p",{className:"iw-text-gray-500 iw-font-medium",children:"Preparing your question..."})})]})}const U1=({size:e="192px",className:t,colors:r,animationDuration:i=20})=>{const s={...{bg:"oklch(95% 0.02 264.695)",c1:"oklch(75% 0.15 350)",c2:"oklch(80% 0.12 200)",c3:"oklch(78% 0.14 280)"},...r},a=parseInt(e.replace("px",""),10),c=a<50?Math.max(a*.008,1):Math.max(a*.015,4),l=a<50?Math.max(a*.004,1.2):Math.max(a*.008,1.5),h=a<50?Math.max(a*.004,.05):Math.max(a*.008,.1),d=a<50?Math.max(a*.004,.5):Math.max(a*.008,2),f=a<30?"0%":a<50?"5%":a<100?"15%":"25%",w=a<30?1.1:a<50?Math.max(l*1.2,1.3):l;return o.jsx("div",{className:`siri-orb ${t}`,style:{width:e,height:e,"--bg":s.bg,"--c1":s.c1,"--c2":s.c2,"--c3":s.c3,"--animation-duration":`${i}s`,"--blur-amount":`${c}px`,"--contrast-amount":w,"--dot-size":`${h}px`,"--shadow-spread":`${d}px`,"--mask-radius":f},children:o.jsx("style",{children:`
328
75
  @property --angle {
329
76
  syntax: "<angle>";
330
77
  inherits: false;
@@ -429,4 +176,4 @@ You might need to use a local HTTP server (instead of file://): https://react.de
429
176
  animation: none;
430
177
  }
431
178
  }
432
- `})})};function W_({ttsError:i}){return b.jsxs("div",{className:"iw-flex iw-flex-col iw-items-center iw-justify-center iw-gap-8 iw-w-full iw-h-full",children:[b.jsx(I_,{size:"80px"}),i&&b.jsxs("div",{className:"iw-mt-2 iw-text-xs iw-text-red-600",children:["Audio playback failed: ",i.message]}),b.jsx("p",{className:"iw-text- iw-text-gray-700",children:"Your AI interviewer is speaking..."})]})}const P_=({state:i,thinkingTime:c,nextPhase:f})=>b.jsxs("div",{className:"iw-flex iw-flex-col iw-gap-6 iw-items-center iw-justify-center iw-text-center iw-h-full ",children:[b.jsxs("div",{children:[b.jsx("h3",{className:"iw-text-lg iw-font-semibold iw-text-gray-900 iw-mb-1",children:"Get Ready to Answer"}),b.jsx("p",{className:"iw-max-w-lg iw-text-gray-500 iw-text-xs iw-leading-[21px]",children:"After 30-seconds thinking time, recording will start automatically, or you can begin recording early by clicking the button below."})]}),b.jsxs("div",{className:"iw-flex iw-items-center iw-justify-center iw-gap-2",children:[b.jsxs("div",{className:"iw-flex iw-items-center iw-gap-1",children:[b.jsx(j6,{className:"iw-size-4 iw-text-orange-600"}),b.jsx("p",{className:"iw-text-gray-700 iw-text-sm",children:"Time to think: "})]}),b.jsx(e3,{total:c,remaining:i.currentPhaseTimeRemaining,size:50,strokeWidth:4})]}),b.jsx("div",{className:"iw-w-full iw-grid iw-grid-cols-1",children:b.jsx(mm,{onClick:()=>{f()},children:"Start Answering"})})]}),ex=({sttError:i,editingDuration:c})=>b.jsxs("div",{className:"iw-flex iw-flex-col iw-items-center iw-justify-center iw-h-full",children:[b.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 60 60",fill:"none",children:[b.jsx("rect",{width:60,height:60,rx:30,fill:"url(#prefix__paint0_linear_1460_12482)"}),b.jsx("path",{d:"M28.127 14c.276 7.685 6.442 13.851 14.127 14.127-7.684.276-13.85 6.442-14.127 14.127-.275-7.685-6.442-13.851-14.126-14.127 7.684-.276 13.85-6.442 14.126-14.127zM38.937 31.873A7.331 7.331 0 0046 38.937 7.331 7.331 0 0038.937 46a7.331 7.331 0 00-7.064-7.063 7.331 7.331 0 007.064-7.064z",fill:"#fff"}),b.jsx("defs",{children:b.jsxs("linearGradient",{id:"prefix__paint0_linear_1460_12482",x1:30,y1:-6.563,x2:77.813,y2:54.375,gradientUnits:"userSpaceOnUse",children:[b.jsx("stop",{offset:.211,stopColor:"#5C92FA"}),b.jsx("stop",{offset:1,stopColor:"#A75FFD"})]})})]}),b.jsx("h3",{className:"iw-text-lg iw-font-semibold iw-text-gray-900 iw-mb-1 iw-mt-3",children:"Just a moment... We're analyzing your response"}),b.jsxs("p",{className:"iw-max-w-lg iw-text-gray-500 iw-text-xs iw-leading-[21px]",children:["After transcription, you'll have ",c||30," sec to review your answer."]}),i&&b.jsxs("div",{className:"iw-mt-2 iw-text-xs iw-text-red-600",children:["Transcription error: ",i.message,i.recoverable&&" (attempting to continue)"]})]}),t3=5;function tx({isOpen:i,onClose:c,warningCount:f,violationType:h,onDisqualify:y}){const[w,E]=j.useState(10),A=j.useRef(c);if(j.useEffect(()=>{A.current=c},[c]),j.useEffect(()=>{if(!i)return;const q=setInterval(()=>{E(k=>k<=1?(A.current(),10):k-1)},1e3);return()=>clearInterval(q)},[i]),j.useEffect(()=>{i&&E(10)},[i]),j.useEffect(()=>(i?(document.body.style.overflow="hidden",document.body.classList.add("interview-widget-container")):(document.body.style.overflow="unset",document.body.classList.remove("interview-widget-container")),()=>{document.body.style.overflow="unset",document.body.classList.remove("interview-widget-container")}),[i]),!i)return null;const G=(()=>{switch(h){case"tab_switch":return{title:"Tab Switch Detected",description:"You attempted to switch to another tab or reload application.",icon:b.jsx(V6,{className:"iw-h-5 iw-w-5"})};case"fullscreen_exit":return{title:"Full Screen Exit Detected",description:"You attempted to exit full screen mode.",icon:b.jsx(FE,{className:"iw-h-5 iw-w-5"})};case"focus_loss":return{title:"Focus Loss Detected",description:"You lost focus from the interview window.",icon:b.jsx(QE,{className:"iw-h-5 iw-w-5"})};case"blocked_shortcut":return{title:"Keyboard Shortcut Blocked",description:"You attempted to use a blocked keyboard shortcut.",icon:b.jsx(Uv,{className:"iw-h-5 iw-w-5"})};case"right_click_attempt":return{title:"Right Click Attempted",description:"You attempted to use the right click.",icon:b.jsx($E,{className:"iw-h-5 iw-w-5"})};case"alt_tab_attempt":return{title:"Alt + Tab Attempted",description:"You attempted to use the Alt + Tab shortcut.",icon:b.jsx(Uv,{className:"iw-h-5 iw-w-5"})};case"blocked_function_key":return{title:"Function Key Blocked",description:"You attempted to use a blocked function key.",icon:b.jsx(Uv,{className:"iw-h-5 iw-w-5"})};default:return{title:"Violation Detected",description:"You attempted to perform an action that is not allowed.",icon:b.jsx(Z2,{className:"iw-h-5 iw-w-5"})}}})(),U=t3-f,N=()=>{f+1>t3?y():c()};return b.jsx("div",{className:"iw-fixed iw-inset-0 iw-z-50 iw-flex iw-items-center iw-justify-center iw-bg-black/60 iw-p-4 iw-backdrop-blur-sm",children:b.jsxs("div",{className:"iw-w-full iw-max-w-md iw-rounded-2xl iw-border iw-border-gray-100 iw-bg-white iw-shadow-xl",children:[b.jsxs("div",{className:"iw-p-6 iw-pb-0",children:[b.jsxs("div",{className:"iw-mb-6 iw-flex iw-items-start iw-gap-4",children:[b.jsx("div",{className:"iw-flex iw-h-12 iw-w-12 iw-flex-shrink-0 iw-items-center iw-justify-center iw-rounded-2xl iw-bg-red-50",children:b.jsx(Z2,{className:"iw-h-6 iw-w-6 iw-text-red-500"})}),b.jsxs("div",{className:"iw-flex-1",children:[b.jsx("h2",{className:"iw-mb-1 iw-text-xl iw-font-semibold iw-text-gray-900",children:"Security Violation"}),b.jsxs("div",{className:"iw-flex iw-items-center iw-gap-2",children:[b.jsx("span",{className:"iw-text-sm iw-text-gray-500",children:"Warning"}),b.jsx("div",{className:"iw-flex iw-gap-1",children:Array.from({length:t3}).map((q,k)=>b.jsx("div",{className:`iw-h-2 iw-w-2 iw-rounded-full ${k<=f-1?"iw-bg-red-500":"iw-bg-gray-200"}`},k))}),b.jsxs("span",{className:"iw-text-sm iw-text-gray-500",children:["(",f,"/",t3,")"]})]})]})]}),b.jsx("div",{className:"iw-mb-5 iw-rounded-2xl iw-border iw-border-red-100 iw-p-5",style:{background:"linear-gradient(to right, rgb(254, 242, 242), rgb(254, 245, 235))",borderColor:"rgb(254, 226, 226)"},children:b.jsxs("div",{className:"iw-flex iw-items-start iw-gap-4",children:[b.jsx("div",{className:"iw-flex iw-h-10 iw-w-10 iw-items-center iw-justify-center iw-rounded-xl iw-bg-white iw-shadow-sm",children:G.icon}),b.jsxs("div",{className:"iw-flex-1",children:[b.jsx("h3",{className:"iw-mb-2 iw-font-semibold iw-text-gray-900",children:G.title}),b.jsx("p",{className:"iw-text-sm iw-leading-relaxed iw-text-gray-700",children:G.description}),b.jsxs("div",{className:"iw-mt-3 iw-flex iw-items-center iw-gap-2 iw-text-xs iw-text-red-600",children:[b.jsx(IE,{className:"iw-h-3 iw-w-3"}),b.jsx("span",{children:"This action is monitored for interview integrity"})]})]})]})}),b.jsxs("div",{className:"iw-mb-5 iw-grid iw-grid-cols-2 iw-gap-3",children:[b.jsx("div",{className:"iw-rounded-xl iw-border iw-border-amber-200 iw-bg-amber-50 iw-p-4",children:b.jsxs("div",{className:"iw-text-center",children:[b.jsx("div",{className:"iw-mb-1 iw-text-2xl iw-font-bold iw-text-amber-600",children:U}),b.jsx("div",{className:"iw-text-xs iw-font-medium iw-text-amber-700",children:"Warnings Left"})]})}),b.jsx("div",{className:"iw-border-primary-100 iw-bg-primary-50 iw-rounded-xl iw-border iw-p-4",children:b.jsxs("div",{className:"iw-text-center",children:[b.jsxs("div",{className:"iw-mb-1 iw-flex iw-items-center iw-justify-center iw-gap-1.5",children:[b.jsx(XE,{className:"iw-text-primary-600 iw-h-4 iw-w-4"}),b.jsx("span",{className:"iw-text-primary-600 iw-text-2xl iw-font-bold",children:w})]}),b.jsx("div",{className:"iw-text-primary-700 iw-text-xs iw-font-medium",children:"Auto Close"})]})})]}),U===1&&b.jsx("div",{className:"iw-mb-5 iw-rounded-2xl iw-p-4 iw-text-white",style:{background:"linear-gradient(to right, rgba(220, 38, 38, 0.9), rgba(239, 68, 68, 0.9))"},children:b.jsxs("div",{className:"iw-flex iw-items-center iw-gap-3",children:[b.jsx("div",{className:"iw-flex iw-h-8 iw-w-8 iw-items-center iw-justify-center iw-rounded-full iw-bg-white/20",children:b.jsx(Z2,{className:"iw-h-4 iw-w-4"})}),b.jsxs("div",{children:[b.jsx("div",{className:"iw-text-sm iw-font-semibold",children:"Final Warning"}),b.jsx("div",{className:"iw-text-xs iw-text-red-100",children:"Next violation will disqualify you from this interview"})]})]})})]}),b.jsxs("div",{className:"iw-p-6 iw-pt-0",children:[b.jsx(mm,{onClick:N,className:"iw-h-12 iw-w-full iw-rounded-xl iw-bg-gray-800 iw-text-sm iw-font-medium iw-text-white iw-hover:bg-gray-800",children:"I Understand - Continue Interview"}),b.jsx("p",{className:"iw-text-gray-500 iw-mt-3 iw-text-center iw-text-xs",children:"Please maintain focus and avoid switching tabs, exiting fullscreen, using shortcuts or right-clicking."})]})]})})}const nx=i=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...i,children:[b.jsx("path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z"}),b.jsx("circle",{cx:"12",cy:"12",r:"10"})]}),ax=({showHardReloadWarning:i,onContinue:c})=>{const f=()=>{c()};return b.jsxs(lb,{isOpen:i,onClose:f,closeOnOverlayClick:!1,closeOnEscape:!1,showCloseButton:!1,className:"iw-max-w-lg iw-px-2 iw-rounded-xl",children:[b.jsx("div",{className:"iw-absolute iw-inset-x-0 iw-top-0 iw-h-1 iw-bg-gradient-to-r iw-from-red-500 iw-to-red-600"}),b.jsx("div",{className:"iw-space-y-1 iw-pb-2 iw-pt-3",children:b.jsxs("div",{className:"iw-flex iw-items-center iw-gap-2",children:[b.jsx(Z2,{className:"iw-w-5 iw-h-5 iw-text-red-500"}),b.jsx("h3",{className:"iw-text-xl iw-font-semibold iw-text-red-500",children:"Full Screen Exit Detected"})]})}),b.jsx("div",{className:"iw-pt-4 iw-pb-6",children:b.jsx("p",{className:"iw-text-center iw-text-sm iw-leading-relaxed iw-text-gray-500/90",children:"Exiting full screen mode or reloading this page during the session is strictly prohibited. Any attempt to do so will be recorded and may lead to penalties."})}),b.jsx("div",{className:"iw-pt-2 iw-pb-4",children:b.jsxs("button",{onClick:f,className:"iw-w-full iw-flex iw-items-center iw-justify-center iw-gap-2 iw-px-4 iw-py-3 iw-bg-gray-100 iw-text-gray-600 iw-rounded-md iw-font-medium iw-transition-colors hover:iw-bg-gray-200 focus:iw-outline-none focus:iw-ring-2 focus:iw-ring-gray-400 focus:iw-ring-offset-2",children:[b.jsx(nx,{className:"iw-size-4"}),"Continue Session"]})})]})},lx=j.forwardRef(({children:i,onDisqualify:c},f)=>{const[h,y]=j.useState(!1),[w,E]=j.useState(!1),[A,M]=j.useState(!1),[G,U]=j.useState("fullscreen_exit"),{logViolation:N,violationCount:q}=E_({maxViolations:5,onViolation:P=>{w||(y(!0),U(P.type))}}),{enterFullScreen:k,isFullScreen:ne,exitFullScreen:oe}=g_({onFullScreenChange(P){!P&&!w&&!A&&(y(!0),N({type:"fullscreen_exit",severity:"high",details:{action:"fullscreen_exit",reason:"Attempted to exit full screen mode"}})),P&&M(!1)}});j.useEffect(()=>{k()},[]),j.useImperativeHandle(f,()=>({exitFullScreenIntentionally:async()=>{M(!0),y(!1),E(!1);try{document.fullscreenElement&&await document.exitFullscreen()}catch(P){console.error("Failed to exit fullscreen:",P)}}}),[]),v_(N),p_(N),w_(),T_();const ue=()=>{E(!0),oe(),y(!1),c==null||c()};return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"iw-relative iw-h-full iw-w-full",children:i}),b.jsx(tx,{warningCount:q,isOpen:h,violationType:G,onClose:()=>{y(!1),k()},onDisqualify:ue}),!h&&q>0&&!w&&!A&&b.jsx(ax,{showHardReloadWarning:!ne,logViolation:N,onContinue:k})]})}),ix=({interviewTitle:i,brandName:c="Novara",brandLogo:f,interviewId:h,onComplete:y,onDisqualify:w,className:E="",videoFeedRef:A})=>{var Zo;const M=P8(),{baseUrl:G,authToken:U}=G6(),{timers:N,stt:q,proctoring:k}=zv(),ne=j.useRef(null),[oe,ue]=j.useState(null),[P,ye]=j.useState(""),[be,Te]=j.useState(null),[nt,Be]=j.useState(hy),[Qe,xe]=j.useState(!0),me=j.useRef(""),ce=j.useRef(null);j.useEffect(()=>{(async()=>{try{const kt=await M.getInterviewConfig(h);kt!=null&&kt.data&&(kt.data.duration_in_minutes&&Be(kt.data.duration_in_minutes),typeof kt.data.allow_answer_editing=="boolean"&&xe(kt.data.allow_answer_editing))}catch(kt){console.error("Failed to fetch interview config:",kt)}})()},[h]);const Ut={thinkingTime:(N==null?void 0:N.thinkingDuration)||0,answeringTime:(N==null?void 0:N.answeringDuration)||120,editingTime:Qe?(N==null?void 0:N.editingDuration)||30:0},{thinkingTime:ke,answeringTime:He,editingTime:Ft}=Ut;j.useEffect(()=>{me.current=P},[P]);const $t=j.useRef(!1),{speak:V,stop:ee,error:ie}=S_({onEnd:()=>{$t.current=!1,Vt()},onError:()=>{$t.current||($t.current=!0,Vt())}}),ve=j.useRef(!1),Ce=j.useRef(!1),{startRecording:Et,stopRecording:st,transcribe:Xe,cancelRecording:Ze,error:Bt}=y_({config:{baseUrl:G,provider:q==null?void 0:q.provider,model:q==null?void 0:q.model,language:q==null?void 0:q.language,authToken:U,qnaId:((Zo=ce.current)==null?void 0:Zo.qna_id)||"",interviewId:h},onStart:()=>{ve.current=!1,Ce.current=!1},onStop:()=>{},onTranscriptionComplete:Re=>{ye(Re.transcript),Ce.current||(Ce.current=!0,Vt())},onError:Re=>{console.error("STT Error:",Re),ve.current||(ve.current=!0,Vt())}}),{state:en,startQuestion:Pn,nextPhase:Vt,completeInterview:ea}=h_({config:{answeringDuration:He,editingDuration:Ft},callbacks:{onPhaseChange:Re=>{switch(Re){case St.FETCHING_QUESTION:cu();break;case St.READING_QUESTION:Ti();break;case St.ANSWERING:io();break;case St.TRANSCRIBING:Va();break;case St.SUBMITTING:fe();break}},onInterviewEnd:()=>{y==null||y()}}});j.useEffect(()=>{Pn()},[]);const{execute:cu}=m_(async()=>{const Re=await M.generateQuestion({interviewId:h});return ce.current=Re.data,Re},{onSuccess:async Re=>{Re&&Re.data&&(ye(""),ue(Re.data),Vt())},onError:Re=>{console.error("Failed to fetch questions:",Re)}}),fe=j.useCallback(async()=>{var Re;try{const kt=me.current,ht=((Re=ce.current)==null?void 0:Re.qna_id)||"";await M.submitAnswer({interviewId:h,qnaId:ht,answer:kt}),Te({qnaId:ht,answer:kt})}catch(kt){console.error("Failed to submit answer:",kt)}Pn()},[M,h,Pn]),Ti=j.useCallback(async()=>{var Re;if((Re=ce.current)!=null&&Re.question)if(ce.current.question_audio_data_base64)try{$t.current=!1,await V(ce.current.question_audio_data_base64),ce.current.is_interview_done&&ea()}catch(kt){console.error("Failed to speak question:",kt),Vt()}else console.warn("No audio data available for question"),await RE(2e3),Vt();else Vt()},[V,Vt,ea]),io=j.useCallback(async()=>{try{await Et(He)}catch(Re){console.error("Failed to start recording:",Re),Vt()}},[Et,Vt]),Va=j.useCallback(async()=>{try{const Re=await st();await Xe(Re)}catch(Re){console.error("STT processing failed:",Re),!ve.current&&!Ce.current&&(ve.current=!0,Vt())}},[st,Xe,Vt]),Ya=j.useCallback(async Re=>{var kt,ht;ee(),Ze(),A&&"current"in A&&((kt=A.current)==null||kt.stopCamera()),await((ht=ne.current)==null?void 0:ht.exitFullScreenIntentionally());try{await M.exitInterview(h)}catch(Jo){console.error("API call failed:",Jo)}finally{Re==null||Re(),ea(),sessionStorage.removeItem(Mv)}},[h,ee,M]),dt=()=>{const{phase:Re}=en;switch(Re){case St.IDLE:return b.jsxs("div",{className:"iw-text-center iw-flex iw-flex-col iw-items-center iw-justify-center iw-gap-2 iw-h-full",children:[b.jsx("h3",{className:"iw-text-lg iw-font-semibold iw-text-gray-900 iw-mb-1",children:"Ready to start the Interview?"}),b.jsx("p",{className:"iw-max-w-xl iw-text-gray-500 iw-text-xs iw-leading-[21px]",children:`You will be asked a series of behavioral and technical questions. For each one you'll get a short thinking period, then a timed recording window. We'll transcribe your response so you can review and edit it before submitting. Click "Start Interview" when you're ready.`}),b.jsx(mm,{onClick:Pn,className:"iw-mt-2 iw-w-40",children:"Start Interview"})]});case St.FETCHING_QUESTION:return b.jsx($_,{});case St.READING_QUESTION:return b.jsx(W_,{ttsError:ie});case St.THINKING:return b.jsx(P_,{state:en,thinkingTime:ke,nextPhase:Vt});case St.ANSWERING:return b.jsx(F_,{state:en,answeringTime:He,nextPhase:Vt,sttError:Bt});case St.TRANSCRIBING:return b.jsx(ex,{sttError:Bt,editingDuration:Ft});case St.EDITING:case St.SUBMITTING:return null;case St.COMPLETED:return null;default:return null}};return b.jsx(b.Fragment,{children:k!=null&&k.enabled?b.jsxs(lx,{ref:ne,onDisqualify:()=>Ya(w),children:[b.jsx(d7,{title:i,brandName:c,brandLogo:f,totalDuration:nt,elapsedTime:en.totalTimeElapsed,onExit:()=>Ya()}),b.jsx(f7,{brandName:c,currentQuestion:oe,state:en,phase:en.phase,className:E,interviewId:h,interview_duration:nt,videoFeedRef:A,lastSubmittedAnswer:be,onNextPhase:Vt,answerText:P,onAnswerChange:Re=>ye(Re.target.value),editingTime:Ft,answeringTime:He,children:dt()})]}):b.jsxs(b.Fragment,{children:[b.jsx(d7,{title:i,brandName:c,brandLogo:f,totalDuration:nt,elapsedTime:en.totalTimeElapsed,onExit:()=>Ya()}),b.jsx(f7,{brandName:c,currentQuestion:oe,state:en,phase:en.phase,className:E,interviewId:h,interview_duration:nt,videoFeedRef:A,lastSubmittedAnswer:be,onNextPhase:Vt,answerText:P,onAnswerChange:Re=>ye(Re.target.value),editingTime:Ft,answeringTime:He,children:dt()})]})})},n3=({title:i,brandName:c,brandLogo:f,interviewId:h,onInterviewEnd:y,onInterviewDisqualify:w,className:E=""})=>{const{baseColor:A}=Q2(),[M,G]=j.useState(!1),[U,N]=j.useState(!0),[q,k]=j.useState(!1),{proctoring:ne}=zv(),oe=j.useRef(null),ue=j.useRef(null),P=(ne==null?void 0:ne.gazeAnalysisEnabled)===!0,ye=()=>{G(!0),N(!1)};return j.useEffect(()=>{if(M&&q&&ue.current&&P)try{ue.current.setReference()}finally{k(!1)}},[M,q,P]),M?b.jsx("div",{className:"interview-widget-container",children:b.jsx("div",{ref:oe,className:`iw-flex iw-flex-col iw-rounded-xl iw-shadow-lg iw-overflow-hidden iw-h-[calc(100vh-1rem)] ${E}`,children:b.jsx("div",{className:"iw-h-[calc(100vh-1rem)] iw-flex iw-flex-col iw-justify-between gap-1",children:b.jsx(ix,{interviewTitle:i??"Interview",brandName:c??"Novara",brandLogo:f,interviewId:h,className:E,onComplete:y??(()=>{}),onDisqualify:w,videoFeedRef:ue})})})}):b.jsxs("div",{className:"interview-widget-container",children:[b.jsxs("div",{className:"iw-flex iw-items-center iw-space-x-2 iw-mx-auto iw-p-2 iw-max-w-[1800px]",children:[f||b.jsx("div",{className:"iw-h-7 iw-w-7 iw-rounded-md iw-flex iw-items-center iw-justify-center iw-text-white iw-font-semibold",style:{backgroundColor:A},children:R6(c)}),b.jsx("p",{className:"iw-text-xl iw-font-semibold",children:c})]}),b.jsx(f_,{isOpen:U,gazeEnabled:P,onStart:ye,onRequestCalibration:()=>k(!0),videoFeedRef:ue,interviewId:h})]})};typeof window<"u"&&(window.InterviewWidget={InterviewWidget:n3,InterviewWidgetProvider:Ov}),ja.InterviewWidget=n3,ja.InterviewWidgetProvider=Ov,ja.default=n3,Object.defineProperties(ja,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
179
+ `})})};function G1({ttsError:e}){return o.jsxs("div",{className:"iw-flex iw-flex-col iw-items-center iw-justify-center iw-gap-8 iw-w-full iw-h-full",children:[o.jsx(U1,{size:"80px"}),e&&o.jsxs("div",{className:"iw-mt-2 iw-text-xs iw-text-red-600",children:["Audio playback failed: ",e.message]}),o.jsx("p",{className:"iw-text- iw-text-gray-700",children:"Your AI interviewer is speaking..."})]})}const V1=({state:e,thinkingTime:t,nextPhase:r})=>o.jsxs("div",{className:"iw-flex iw-flex-col iw-gap-6 iw-items-center iw-justify-center iw-text-center iw-h-full ",children:[o.jsxs("div",{children:[o.jsx("h3",{className:"iw-text-lg iw-font-semibold iw-text-gray-900 iw-mb-1",children:"Get Ready to Answer"}),o.jsx("p",{className:"iw-max-w-lg iw-text-gray-500 iw-text-xs iw-leading-[21px]",children:"After 30-seconds thinking time, recording will start automatically, or you can begin recording early by clicking the button below."})]}),o.jsxs("div",{className:"iw-flex iw-items-center iw-justify-center iw-gap-2",children:[o.jsxs("div",{className:"iw-flex iw-items-center iw-gap-1",children:[o.jsx(Hs,{className:"iw-size-4 iw-text-orange-600"}),o.jsx("p",{className:"iw-text-gray-700 iw-text-sm",children:"Time to think: "})]}),o.jsx(Yi,{total:t,remaining:e.currentPhaseTimeRemaining,size:50,strokeWidth:4})]}),o.jsx("div",{className:"iw-w-full iw-grid iw-grid-cols-1",children:o.jsx(ei,{onClick:()=>{r()},children:"Start Answering"})})]}),j1=({sttError:e,editingDuration:t})=>o.jsxs("div",{className:"iw-flex iw-flex-col iw-items-center iw-justify-center iw-h-full",children:[o.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 60 60",fill:"none",children:[o.jsx("rect",{width:60,height:60,rx:30,fill:"url(#prefix__paint0_linear_1460_12482)"}),o.jsx("path",{d:"M28.127 14c.276 7.685 6.442 13.851 14.127 14.127-7.684.276-13.85 6.442-14.127 14.127-.275-7.685-6.442-13.851-14.126-14.127 7.684-.276 13.85-6.442 14.126-14.127zM38.937 31.873A7.331 7.331 0 0046 38.937 7.331 7.331 0 0038.937 46a7.331 7.331 0 00-7.064-7.063 7.331 7.331 0 007.064-7.064z",fill:"#fff"}),o.jsx("defs",{children:o.jsxs("linearGradient",{id:"prefix__paint0_linear_1460_12482",x1:30,y1:-6.563,x2:77.813,y2:54.375,gradientUnits:"userSpaceOnUse",children:[o.jsx("stop",{offset:.211,stopColor:"#5C92FA"}),o.jsx("stop",{offset:1,stopColor:"#A75FFD"})]})})]}),o.jsx("h3",{className:"iw-text-lg iw-font-semibold iw-text-gray-900 iw-mb-1 iw-mt-3",children:"Just a moment... We're analyzing your response"}),o.jsxs("p",{className:"iw-max-w-lg iw-text-gray-500 iw-text-xs iw-leading-[21px]",children:["After transcription, you'll have ",t||30," sec to review your answer."]}),e&&o.jsxs("div",{className:"iw-mt-2 iw-text-xs iw-text-red-600",children:["Transcription error: ",e.message,e.recoverable&&" (attempting to continue)"]})]}),Xi=5;function W1({isOpen:e,onClose:t,warningCount:r,violationType:i,onDisqualify:n}){const[s,a]=u.useState(10),c=u.useRef(t);if(u.useEffect(()=>{c.current=t},[t]),u.useEffect(()=>{if(!e)return;const w=setInterval(()=>{a(g=>g<=1?(c.current(),10):g-1)},1e3);return()=>clearInterval(w)},[e]),u.useEffect(()=>{e&&a(10)},[e]),u.useEffect(()=>(e?(document.body.style.overflow="hidden",document.body.classList.add("interview-widget-container")):(document.body.style.overflow="unset",document.body.classList.remove("interview-widget-container")),()=>{document.body.style.overflow="unset",document.body.classList.remove("interview-widget-container")}),[e]),!e)return null;const h=(()=>{switch(i){case"tab_switch":return{title:"Tab Switch Detected",description:"You attempted to switch to another tab or reload application.",icon:o.jsx(Ks,{className:"iw-h-5 iw-w-5"})};case"fullscreen_exit":return{title:"Full Screen Exit Detected",description:"You attempted to exit full screen mode.",icon:o.jsx(zl,{className:"iw-h-5 iw-w-5"})};case"focus_loss":return{title:"Focus Loss Detected",description:"You lost focus from the interview window.",icon:o.jsx(Vl,{className:"iw-h-5 iw-w-5"})};case"blocked_shortcut":return{title:"Keyboard Shortcut Blocked",description:"You attempted to use a blocked keyboard shortcut.",icon:o.jsx(dn,{className:"iw-h-5 iw-w-5"})};case"right_click_attempt":return{title:"Right Click Attempted",description:"You attempted to use the right click.",icon:o.jsx(Hl,{className:"iw-h-5 iw-w-5"})};case"alt_tab_attempt":return{title:"Alt + Tab Attempted",description:"You attempted to use the Alt + Tab shortcut.",icon:o.jsx(dn,{className:"iw-h-5 iw-w-5"})};case"blocked_function_key":return{title:"Function Key Blocked",description:"You attempted to use a blocked function key.",icon:o.jsx(dn,{className:"iw-h-5 iw-w-5"})};default:return{title:"Violation Detected",description:"You attempted to perform an action that is not allowed.",icon:o.jsx(Lr,{className:"iw-h-5 iw-w-5"})}}})(),d=Xi-r,f=()=>{r+1>Xi?n():t()};return o.jsx("div",{className:"iw-fixed iw-inset-0 iw-z-50 iw-flex iw-items-center iw-justify-center iw-bg-black/60 iw-p-4 iw-backdrop-blur-sm",children:o.jsxs("div",{className:"iw-w-full iw-max-w-md iw-rounded-2xl iw-border iw-border-gray-100 iw-bg-white iw-shadow-xl",children:[o.jsxs("div",{className:"iw-p-6 iw-pb-0",children:[o.jsxs("div",{className:"iw-mb-6 iw-flex iw-items-start iw-gap-4",children:[o.jsx("div",{className:"iw-flex iw-h-12 iw-w-12 iw-flex-shrink-0 iw-items-center iw-justify-center iw-rounded-2xl iw-bg-red-50",children:o.jsx(Lr,{className:"iw-h-6 iw-w-6 iw-text-red-500"})}),o.jsxs("div",{className:"iw-flex-1",children:[o.jsx("h2",{className:"iw-mb-1 iw-text-xl iw-font-semibold iw-text-gray-900",children:"Security Violation"}),o.jsxs("div",{className:"iw-flex iw-items-center iw-gap-2",children:[o.jsx("span",{className:"iw-text-sm iw-text-gray-500",children:"Warning"}),o.jsx("div",{className:"iw-flex iw-gap-1",children:Array.from({length:Xi}).map((w,g)=>o.jsx("div",{className:`iw-h-2 iw-w-2 iw-rounded-full ${g<=r-1?"iw-bg-red-500":"iw-bg-gray-200"}`},g))}),o.jsxs("span",{className:"iw-text-sm iw-text-gray-500",children:["(",r,"/",Xi,")"]})]})]})]}),o.jsx("div",{className:"iw-mb-5 iw-rounded-2xl iw-border iw-border-red-100 iw-p-5",style:{background:"linear-gradient(to right, rgb(254, 242, 242), rgb(254, 245, 235))",borderColor:"rgb(254, 226, 226)"},children:o.jsxs("div",{className:"iw-flex iw-items-start iw-gap-4",children:[o.jsx("div",{className:"iw-flex iw-h-10 iw-w-10 iw-items-center iw-justify-center iw-rounded-xl iw-bg-white iw-shadow-sm",children:h.icon}),o.jsxs("div",{className:"iw-flex-1",children:[o.jsx("h3",{className:"iw-mb-2 iw-font-semibold iw-text-gray-900",children:h.title}),o.jsx("p",{className:"iw-text-sm iw-leading-relaxed iw-text-gray-700",children:h.description}),o.jsxs("div",{className:"iw-mt-3 iw-flex iw-items-center iw-gap-2 iw-text-xs iw-text-red-600",children:[o.jsx(ql,{className:"iw-h-3 iw-w-3"}),o.jsx("span",{children:"This action is monitored for interview integrity"})]})]})]})}),o.jsxs("div",{className:"iw-mb-5 iw-grid iw-grid-cols-2 iw-gap-3",children:[o.jsx("div",{className:"iw-rounded-xl iw-border iw-border-amber-200 iw-bg-amber-50 iw-p-4",children:o.jsxs("div",{className:"iw-text-center",children:[o.jsx("div",{className:"iw-mb-1 iw-text-2xl iw-font-bold iw-text-amber-600",children:d}),o.jsx("div",{className:"iw-text-xs iw-font-medium iw-text-amber-700",children:"Warnings Left"})]})}),o.jsx("div",{className:"iw-border-primary-100 iw-bg-primary-50 iw-rounded-xl iw-border iw-p-4",children:o.jsxs("div",{className:"iw-text-center",children:[o.jsxs("div",{className:"iw-mb-1 iw-flex iw-items-center iw-justify-center iw-gap-1.5",children:[o.jsx(Gl,{className:"iw-text-primary-600 iw-h-4 iw-w-4"}),o.jsx("span",{className:"iw-text-primary-600 iw-text-2xl iw-font-bold",children:s})]}),o.jsx("div",{className:"iw-text-primary-700 iw-text-xs iw-font-medium",children:"Auto Close"})]})})]}),d===1&&o.jsx("div",{className:"iw-mb-5 iw-rounded-2xl iw-p-4 iw-text-white",style:{background:"linear-gradient(to right, rgba(220, 38, 38, 0.9), rgba(239, 68, 68, 0.9))"},children:o.jsxs("div",{className:"iw-flex iw-items-center iw-gap-3",children:[o.jsx("div",{className:"iw-flex iw-h-8 iw-w-8 iw-items-center iw-justify-center iw-rounded-full iw-bg-white/20",children:o.jsx(Lr,{className:"iw-h-4 iw-w-4"})}),o.jsxs("div",{children:[o.jsx("div",{className:"iw-text-sm iw-font-semibold",children:"Final Warning"}),o.jsx("div",{className:"iw-text-xs iw-text-red-100",children:"Next violation will disqualify you from this interview"})]})]})})]}),o.jsxs("div",{className:"iw-p-6 iw-pt-0",children:[o.jsx(ei,{onClick:f,className:"iw-h-12 iw-w-full iw-rounded-xl iw-bg-gray-800 iw-text-sm iw-font-medium iw-text-white iw-hover:bg-gray-800",children:"I Understand - Continue Interview"}),o.jsx("p",{className:"iw-text-gray-500 iw-mt-3 iw-text-center iw-text-xs",children:"Please maintain focus and avoid switching tabs, exiting fullscreen, using shortcuts or right-clicking."})]})]})})}const $1=e=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[o.jsx("path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z"}),o.jsx("circle",{cx:"12",cy:"12",r:"10"})]}),z1=({showHardReloadWarning:e,onContinue:t})=>{const r=()=>{t()};return o.jsxs(Ds,{isOpen:e,onClose:r,closeOnOverlayClick:!1,closeOnEscape:!1,showCloseButton:!1,className:"iw-max-w-lg iw-px-2 iw-rounded-xl",children:[o.jsx("div",{className:"iw-absolute iw-inset-x-0 iw-top-0 iw-h-1 iw-bg-gradient-to-r iw-from-red-500 iw-to-red-600"}),o.jsx("div",{className:"iw-space-y-1 iw-pb-2 iw-pt-3",children:o.jsxs("div",{className:"iw-flex iw-items-center iw-gap-2",children:[o.jsx(Lr,{className:"iw-w-5 iw-h-5 iw-text-red-500"}),o.jsx("h3",{className:"iw-text-xl iw-font-semibold iw-text-red-500",children:"Full Screen Exit Detected"})]})}),o.jsx("div",{className:"iw-pt-4 iw-pb-6",children:o.jsx("p",{className:"iw-text-center iw-text-sm iw-leading-relaxed iw-text-gray-500/90",children:"Exiting full screen mode or reloading this page during the session is strictly prohibited. Any attempt to do so will be recorded and may lead to penalties."})}),o.jsx("div",{className:"iw-pt-2 iw-pb-4",children:o.jsxs("button",{onClick:r,className:"iw-w-full iw-flex iw-items-center iw-justify-center iw-gap-2 iw-px-4 iw-py-3 iw-bg-gray-100 iw-text-gray-600 iw-rounded-md iw-font-medium iw-transition-colors hover:iw-bg-gray-200 focus:iw-outline-none focus:iw-ring-2 focus:iw-ring-gray-400 focus:iw-ring-offset-2",children:[o.jsx($1,{className:"iw-size-4"}),"Continue Session"]})})]})},H1=u.forwardRef(({children:e,onDisqualify:t},r)=>{const[i,n]=u.useState(!1),[s,a]=u.useState(!1),[c,l]=u.useState(!1),[h,d]=u.useState("fullscreen_exit"),{logViolation:f,violationCount:w}=m1({maxViolations:5,onViolation:m=>{s||(n(!0),d(m.type))}}),{enterFullScreen:g,isFullScreen:p,exitFullScreen:y}=d1({onFullScreenChange(m){!m&&!s&&!c&&(n(!0),f({type:"fullscreen_exit",severity:"high",details:{action:"fullscreen_exit",reason:"Attempted to exit full screen mode"}})),m&&l(!1)}});u.useEffect(()=>{g()},[]),u.useImperativeHandle(r,()=>({exitFullScreenIntentionally:async()=>{l(!0),n(!1),a(!1);try{document.fullscreenElement&&await document.exitFullscreen()}catch(m){console.error("Failed to exit fullscreen:",m)}}}),[]),f1(f),u1(f),w1(),y1();const b=()=>{a(!0),y(),n(!1),t==null||t()};return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"iw-relative iw-h-full iw-w-full",children:e}),o.jsx(W1,{warningCount:w,isOpen:i,violationType:h,onClose:()=>{n(!1),g()},onDisqualify:b}),!i&&w>0&&!s&&!c&&o.jsx(z1,{showHardReloadWarning:!p,logViolation:f,onContinue:g})]})}),q1=({interviewTitle:e,brandName:t="Novara",brandLogo:r,interviewId:i,onComplete:n,onDisqualify:s,className:a="",videoFeedRef:c})=>{var Ji;const l=sl(),{baseUrl:h,authToken:d}=zs(),{timers:f,stt:w,proctoring:g}=an(),p=u.useRef(null),[y,b]=u.useState(null),[m,S]=u.useState(""),[I,C]=u.useState(null),[U,L]=u.useState(oi),[V,ne]=u.useState(!0),T=u.useRef(""),j=u.useRef(null);u.useEffect(()=>{(async()=>{try{const Q=await l.getInterviewConfig(i);Q!=null&&Q.data&&(Q.data.duration_in_minutes&&L(Q.data.duration_in_minutes),typeof Q.data.allow_answer_editing=="boolean"&&ne(Q.data.allow_answer_editing))}catch(Q){console.error("Failed to fetch interview config:",Q)}})()},[i]);const ft={thinkingTime:(f==null?void 0:f.thinkingDuration)||0,answeringTime:(f==null?void 0:f.answeringDuration)||120,editingTime:V?(f==null?void 0:f.editingDuration)||30:0},{thinkingTime:qe,answeringTime:Ve,editingTime:it}=ft;u.useEffect(()=>{T.current=m},[m]);const nt=u.useRef(!1),{speak:Kt,stop:Tt,error:St}=p1({onEnd:()=>{nt.current=!1,ee()},onError:()=>{nt.current||(nt.current=!0,ee())}}),wt=u.useRef(!1),At=u.useRef(!1),{startRecording:st,stopRecording:Sr,transcribe:Ct,cancelRecording:ti,error:ot}=h1({config:{baseUrl:h,provider:w==null?void 0:w.provider,model:w==null?void 0:w.model,language:w==null?void 0:w.language,authToken:d,qnaId:((Ji=j.current)==null?void 0:Ji.qna_id)||"",interviewId:i},onStart:()=>{wt.current=!1,At.current=!1},onStop:()=>{},onTranscriptionComplete:A=>{S(A.transcript),At.current||(At.current=!0,ee())},onError:A=>{console.error("STT Error:",A),wt.current||(wt.current=!0,ee())}}),{state:pe,startQuestion:je,nextPhase:ee,completeInterview:It}=c1({config:{answeringDuration:Ve,editingDuration:it},callbacks:{onPhaseChange:A=>{switch(A){case P.FETCHING_QUESTION:Ar();break;case P.READING_QUESTION:ii();break;case P.ANSWERING:Bs();break;case P.TRANSCRIBING:Qi();break;case P.SUBMITTING:ri();break}},onInterviewEnd:()=>{n==null||n()}}});u.useEffect(()=>{je()},[]);const{execute:Ar}=l1(async()=>{const A=await l.generateQuestion({interviewId:i});return j.current=A.data,A},{onSuccess:async A=>{A&&A.data&&(S(""),b(A.data),ee())},onError:A=>{console.error("Failed to fetch questions:",A)}}),ri=u.useCallback(async()=>{var A;try{const Q=T.current,Xt=((A=j.current)==null?void 0:A.qna_id)||"";await l.submitAnswer({interviewId:i,qnaId:Xt,answer:Q}),C({qnaId:Xt,answer:Q})}catch(Q){console.error("Failed to submit answer:",Q)}je()},[l,i,je]),ii=u.useCallback(async()=>{var A;if((A=j.current)!=null&&A.question)if(j.current.question_audio_data_base64)try{nt.current=!1,await Kt(j.current.question_audio_data_base64),j.current.is_interview_done&&It()}catch(Q){console.error("Failed to speak question:",Q),ee()}else console.warn("No audio data available for question"),await Ll(2e3),ee();else ee()},[Kt,ee,It]),Bs=u.useCallback(async()=>{try{await st(Ve)}catch(A){console.error("Failed to start recording:",A),ee()}},[st,ee]),Qi=u.useCallback(async()=>{try{const A=await Sr();await Ct(A)}catch(A){console.error("STT processing failed:",A),!wt.current&&!At.current&&(wt.current=!0,ee())}},[Sr,Ct,ee]),Yt=u.useCallback(async A=>{var Q,Xt;Tt(),ti(),c&&"current"in c&&((Q=c.current)==null||Q.stopCamera()),await((Xt=p.current)==null?void 0:Xt.exitFullScreenIntentionally());try{await l.exitInterview(i)}catch(Zi){console.error("API call failed:",Zi)}finally{A==null||A(),It(),sessionStorage.removeItem(nn)}},[i,Tt,l]),ni=()=>{const{phase:A}=pe;switch(A){case P.IDLE:return o.jsxs("div",{className:"iw-text-center iw-flex iw-flex-col iw-items-center iw-justify-center iw-gap-2 iw-h-full",children:[o.jsx("h3",{className:"iw-text-lg iw-font-semibold iw-text-gray-900 iw-mb-1",children:"Ready to start the Interview?"}),o.jsx("p",{className:"iw-max-w-xl iw-text-gray-500 iw-text-xs iw-leading-[21px]",children:`You will be asked a series of behavioral and technical questions. For each one you'll get a short thinking period, then a timed recording window. We'll transcribe your response so you can review and edit it before submitting. Click "Start Interview" when you're ready.`}),o.jsx(ei,{onClick:je,className:"iw-mt-2 iw-w-40",children:"Start Interview"})]});case P.FETCHING_QUESTION:return o.jsx(B1,{});case P.READING_QUESTION:return o.jsx(G1,{ttsError:St});case P.THINKING:return o.jsx(V1,{state:pe,thinkingTime:qe,nextPhase:ee});case P.ANSWERING:return o.jsx(O1,{state:pe,answeringTime:Ve,nextPhase:ee,sttError:ot});case P.TRANSCRIBING:return o.jsx(j1,{sttError:ot,editingDuration:it});case P.EDITING:case P.SUBMITTING:return null;case P.COMPLETED:return null;default:return null}};return o.jsx(o.Fragment,{children:g!=null&&g.enabled?o.jsxs(H1,{ref:p,onDisqualify:()=>Yt(s),children:[o.jsx(ul,{title:e,brandName:t,brandLogo:r,totalDuration:U,elapsedTime:pe.totalTimeElapsed,onExit:()=>Yt()}),o.jsx(dl,{brandName:t,brandLogo:r,currentQuestion:y,state:pe,phase:pe.phase,className:a,interviewId:i,interview_duration:U,videoFeedRef:c,lastSubmittedAnswer:I,onNextPhase:ee,answerText:m,onAnswerChange:A=>S(A.target.value),editingTime:it,answeringTime:Ve,children:ni()})]}):o.jsxs(o.Fragment,{children:[o.jsx(ul,{title:e,brandName:t,brandLogo:r,totalDuration:U,elapsedTime:pe.totalTimeElapsed,onExit:()=>Yt()}),o.jsx(dl,{brandName:t,brandLogo:r,currentQuestion:y,state:pe,phase:pe.phase,className:a,interviewId:i,interview_duration:U,videoFeedRef:c,lastSubmittedAnswer:I,onNextPhase:ee,answerText:m,onAnswerChange:A=>S(A.target.value),editingTime:it,answeringTime:Ve,children:ni()})]})})},Os=({title:e,brandName:t,brandLogo:r,interviewId:i,onInterviewEnd:n,onInterviewDisqualify:s,className:a=""})=>{const[c,l]=u.useState(!1),[h,d]=u.useState(!0),[f,w]=u.useState(!1),{proctoring:g}=an(),p=u.useRef(null),y=u.useRef(null),b=(g==null?void 0:g.gazeAnalysisEnabled)===!0,m=()=>{l(!0),d(!1)};return u.useEffect(()=>{if(c&&f&&y.current&&b)try{y.current.setReference()}finally{w(!1)}},[c,f,b]),c?o.jsx("div",{className:"interview-widget-container",children:o.jsx("div",{ref:p,className:`iw-flex iw-flex-col iw-rounded-xl iw-shadow-lg iw-overflow-hidden iw-h-[calc(100vh-1rem)] ${a}`,children:o.jsx("div",{className:"iw-h-[calc(100vh-1rem)] iw-flex iw-flex-col iw-justify-between gap-1",children:o.jsx(q1,{interviewTitle:e??"Interview",brandName:t??"Novara",brandLogo:r,interviewId:i,className:a,onComplete:n??(()=>{}),onDisqualify:s,videoFeedRef:y})})})}):o.jsxs("div",{className:"interview-widget-container",children:[o.jsxs("div",{className:"iw-flex iw-items-center iw-space-x-2 iw-mx-auto iw-p-2 iw-max-w-[1800px]",children:[o.jsx(ln,{brandLogo:r,brandName:t}),o.jsx("p",{className:"iw-text-xl iw-font-semibold",children:t})]}),o.jsx(o1,{isOpen:h,gazeEnabled:b,onStart:m,onRequestCalibration:()=>w(!0),videoFeedRef:y,interviewId:i})]})};typeof window<"u"&&(window.InterviewWidget={InterviewWidget:Os,InterviewWidgetProvider:$s}),he.InterviewWidget=Os,he.InterviewWidgetProvider=$s,he.default=Os,Object.defineProperties(he,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});