PageSourceSearch

https://medsy.ai/_next/static/chunks/659.2968ffca3f03e8b2.js

js medsy.ai collected 2026-10-05 12:15:56 UTC 80,189 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[659],{9391:()=>{},10659:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ew});var i=n(95155),s=n(12115),r=n(27204);n(9391);var l=n(80946),a=n(81517);let o={MY_ASSESSMENT:"my-assessment"},c="vx-online-proctored-exam-assessment",d="vx-assessment-published",u="vx-student-exam-time-extensions",m="vx-student-exam-time-extension-changed",h="vx-student-exam-submission-status",v="vx-student-exam-session",p="vx-student-exam-reset-state",w="vx-student-exam-reset-changed",g="vx-exam-controls-state",x="vx-exam-controls-state-changed",f="vx-online-proctored-exam-attempts",b="vx-current-student-id",y=[{key:"MCQ",defaultTitle:"Multiple Choice Question"},{key:"SAQs",defaultTitle:"Short Answer Questions"},{key:"MEQs",defaultTitle:"Modified Essay Questions"},{key:"LAQs",defaultTitle:"Long Answer Questions"}],j=new Set(y.map(e=>e.key)),S=()=>{try{let e=JSON.parse(window.sessionStorage.getItem(c)||"null");if(e&&"object"==typeof e)return e;let t=(e=>{if(!e)return null;try{let t=e.replace(/-/g,"+").replace(/_/g,"/"),n=t.padEnd(4*Math.ceil(t.length/4),"="),i=JSON.parse(window.decodeURIComponent(window.atob(n)));return i&&"object"==typeof i?i:null}catch(e){return null}})(new URLSearchParams(window.location.search).get("assessment"));if(t)return window.sessionStorage.setItem(c,JSON.stringify(t)),t;return null}catch(e){return null}},M=e=>{var t;return(null==e?void 0:e.id)||(null==e?void 0:e.assessmentId)||(null==e||null==(t=e.setup)?void 0:t.assessmentId)||"selected-assessment"},E=e=>{let t=(null==e?void 0:e.answers)&&"object"==typeof e.answers?e.answers:e&&"object"==typeof e?e:{},n=t.mcq,i=t.descriptive,s=t.mcq_statuses||t.mcqStatuses;return n&&"object"==typeof n||(n=Object.fromEntries(Object.entries(t).filter(e=>{let[t]=e;return!["mcq","descriptive","mcq_statuses","mcqStatuses"].includes(t)}))),i&&"object"==typeof i||(i={}),s&&"object"==typeof s||(s={}),{mcq:n,descriptive:i,statuses:s}},k=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e||{}).length>0||Object.keys(t||{}).length>0},N=e=>{let t=(0,l.SG)(e);if(t)return t;try{return window.localStorage.getItem(b)||"anonymous-student"}catch(e){return"anonymous-student"}},A=function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=Array.isArray(null==i?void 0:i.questions)?i.questions:[],r=Array.isArray(null==i?void 0:i.questionRows)?i.questionRows:[],l=Array.isArray(null==n?void 0:n.questions)?n.questions:[],a=Array.isArray(null==n?void 0:n.questionRows)?n.questionRows:[],o=s.length?s:r.length?r:l,c=r.length?r:s.length?s:a.length?a:o;return{...n,...i,questions:o,questionRows:c,setup:{...(null==n?void 0:n.setup)||{},...(null==i?void 0:i.setup)||{},questions:Array.isArray(null==i||null==(e=i.setup)?void 0:e.questions)&&i.setup.questions.length?i.setup.questions:o.length?o:(null==n||null==(t=n.setup)?void 0:t.questions)||[]}}},L=(e,t)=>{let n=t||N(e);try{let t=JSON.parse(window.localStorage.getItem(u)||"null"),i=null==t?void 0:t[M(e)],s=null==i?void 0:i[n];return s&&"object"==typeof s?s:{}}catch(e){return{}}},q=(e,t)=>{let n=t||N(e);try{var i;let t=JSON.parse(window.localStorage.getItem(p)||"null"),s=null==t||null==(i=t[M(e)])?void 0:i[n];return s&&"object"==typeof s?s:null}catch(e){return null}},C=e=>{try{let t=JSON.parse(window.localStorage.getItem("".concat(g,":").concat(e))||"null");return t&&"object"==typeof t?t:{}}catch(e){return{}}},T=(e,t,n)=>{let i=M(e);try{let e=C(i),s=e[t]||{},r="function"==typeof n?n(s):n,l={...e,[t]:{...s,...r,updatedAt:new Date().toISOString()}};window.localStorage.setItem("".concat(g,":").concat(i),JSON.stringify(l)),window.dispatchEvent(new CustomEvent(x,{detail:{assessmentId:i,studentId:t}}))}catch(e){}},D=e=>e&&!Number.isNaN(new Date(e).getTime())?new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}):"-",I=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"Monitoring Event";M(e)&&t&&T(e,t,e=>{let s={id:"".concat(t,"-monitor-").concat(Date.now()),time:D(new Date),action:i,remarks:n,faculty:"System"};return{...e,logs:[s,...e.logs||[]],lastMonitoringEventAt:new Date().toISOString()}})},F=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N(e);try{var n;let i=JSON.parse(window.localStorage.getItem(f)||"null"),s=null==i||null==(n=i[M(e)])?void 0:n[t];return s&&"object"==typeof s?s:null}catch(e){return null}},Q=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N(e),n=F(e,t),i=q(e,t);return(null==i?void 0:i.version)&&(null==n?void 0:n.appliedResetVersion)!==i.version?"clear"===i.mode?{appliedResetVersion:i.version}:{...n||{},hasStarted:!1,examStartedAt:null,activeSequenceStartedAt:null,isMcqSubmitted:!1,isDescriptiveSubmitted:!1,isAssessmentSubmitted:!1,appliedResetVersion:i.version}:n},P=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N(e);try{let i=JSON.parse(window.localStorage.getItem(f)||"null"),s=i&&"object"==typeof i?i:{},r=M(e),l=s[r]||{};window.localStorage.setItem(f,JSON.stringify({...s,[r]:{...l,[n]:{...t,updatedAt:new Date().toISOString()}}}))}catch(e){}},O=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N(e);try{let i=JSON.parse(window.localStorage.getItem(h)||"null"),s=i&&"object"==typeof i?i:{},r=M(e),l=s[r]||{},a={...s,[r]:{...l,[n]:{status:t,updatedAt:new Date().toISOString()}}};window.localStorage.setItem(h,JSON.stringify(a)),window.dispatchEvent(new CustomEvent("vx-student-exam-submission-status-changed",{detail:{assessmentId:r,studentId:n,status:t}}))}catch(e){}},R=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N(e);try{let i=JSON.parse(window.localStorage.getItem(v)||"null"),s=i&&"object"==typeof i?i:{},r=M(e),l=s[r]||{},a={...s,[r]:{...l,[n]:{...l[n]||{},loginTime:new Date(t).toISOString(),examType:"Proctored",attendance:"P",updatedAt:new Date().toISOString()}}};window.localStorage.setItem(v,JSON.stringify(a)),window.dispatchEvent(new CustomEvent("vx-student-exam-session-changed",{detail:{assessmentId:r,studentId:n,loginTime:t}}))}catch(e){}},_=e=>String(null!=e?e:"").replace(/<\/?[A-Za-z][^>]*>/g," ").replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/\s+/g," ").trim(),z=e=>{if(!e)return"-";let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleDateString("en-GB").replace(/\//g,"-")},W=e=>"Descriptive Question"===e||String(null!=e?e:"").toLowerCase().includes("descriptive")||Str
1ing(null!=e?e:"").includes("SAQs")||String(null!=e?e:"").includes("MEQs")||String(null!=e?e:"").includes("LAQs"),B=e=>_(null==e?void 0:e.questionText)||_(null==e?void 0:e.title)||_(null==e?void 0:e.question)||"Question text not available",V=e=>{var t,n,i;return _(null!=(i=null!=(n=null!=(t=null==e?void 0:e.label)?t:null==e?void 0:e.text)?n:null==e?void 0:e.value)?i:e)||"Option"},Z=e=>{let t=String(null!=e?e:"").trim();return""!==t&&"-"!==t&&0!==Number(t)},H=e=>{let t=Number(e);return Number.isFinite(t)?t:0},J=e=>{if(!W(null==e?void 0:e.type))return(null==e?void 0:e.type)!=="MCQ"||H(null==e?void 0:e.marks)?H((e=>{var t,n,i;return null!=(i=null!=(n=null!=(t=null==e?void 0:e.marks)?t:null==e?void 0:e.totalMarks)?n:null==e?void 0:e.mark)?i:"-"})(e)):1;let t=Array.isArray(null==e?void 0:e.descriptiveSections)?e.descriptiveSections:[],n=t.reduce((e,t)=>{let n=Array.isArray(t.children)?t.children:[],i=n.reduce((e,t)=>e+H(t.marks),0);return e+(n.length?0:H(t.marks))+i},0);return(t.length?0:H(null==e?void 0:e.marks))+n},U=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Array.isArray(e)&&e.length?(0,i.jsx)("div",{className:"online-practice-question-images ".concat(t).trim(),"aria-label":"Question images",children:e.map((t,r)=>{var l;return(0,i.jsxs)("figure",{children:[(0,i.jsx)("span",{children:String.fromCharCode(65+r)}),(0,i.jsx)("button",{type:"button",disabled:s,onClick:()=>null==n?void 0:n(e,r),"aria-label":"Preview question image ".concat(String.fromCharCode(65+r)),children:(0,i.jsx)("img",{src:t.url,alt:t.name||"Question image ".concat(r+1)})})]},null!=(l=t.id)?l:"".concat(t.name||"image","-").concat(r))})}):null},Y=e=>{let t=Math.max(1,e),n="";return[["X",10],["IX",9],["V",5],["IV",4],["I",1]].forEach(e=>{let[i,s]=e;for(;t>=s;)n+=i,t-=s}),n},K=e=>String(null!=e?e:"").startsWith("custom-section-"),X=e=>j.has(null==e?void 0:e.previewSectionKey)||K(null==e?void 0:e.previewSectionKey)?e.previewSectionKey:(e=>"MCQ"===e?"MCQ":String(e).includes("MEQs")?"MEQs":String(e).includes("LAQs")?"LAQs":String(e).includes("SAQs")||"Descriptive Question"===e?"SAQs":e||"Question")(null==e?void 0:e.type),G=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.assessmentId)return String(e.assessmentId);let t=[e.collegeName,e.assessmentName,e.academicYear,e.examCategory,e.course,e.year].filter(
1Boolean).join("|");return t?t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""):"draft"},$=(e,t)=>{try{let n=JSON.parse(window.localStorage.getItem(e)||"null");return null!=n?n:t}catch(e){return t}},ee=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=G(e),n=y.reduce((e,t)=>({...e,[t.key]:t.defaultTitle}),{}),i=$("".concat("vx-create-assessment-custom-sections",":").concat(t),[]),s=Array.isArray(i)?Object.fromEntries(i.map(e=>[e.key,e.title||e.defaultTitle||"New Section"])):{},r=$("".concat("vx-create-assessment-section-titles",":").concat(t),{});return{...n,...s,...r&&"object"==typeof r?r:{}}},et=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=G(e),i=y.map(e=>e.key),s=$("".concat("vx-create-assessment-section-order",":").concat(n),[]),r=t.map(X).filter(Boolean);return[...Array.isArray(s)?s:[],...i,...r].filter((e,t,n)=>n.indexOf(e)===t)},en=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=et(e,t),i={},s=1;return n.forEach(e=>{t.filter(t=>X(t)===e).forEach((n,r)=>{var l;let a=t.indexOf(n);i[null!=(l=n.id)?l:"".concat(e,"-").concat(a)]=s,s+=1})}),i},ei=()=>(()=>{let e=window.navigator.userAgent||"";return/Android(?!.*\bTablet\b)|iPhone|iPod|Windows Phone|BlackBerry|IEMobile|Kindle|Silk/i.test(e)})()||(()=>{let e=window.navigator.userAgent||"";return/iPad|Android(?!.*Mobi)|Tablet|PlayBook|Surface|Nexus 7|Nexus 10|SM-T|Kindle/i.test(e)})(),es=["Escape","Tab","AltLeft","AltRight","ControlLeft","ControlRight","ShiftLeft","ShiftRight","MetaLeft","MetaRight","ContextMenu","PrintScreen","ScrollLock","Pause","Insert","Delete","Home","End","PageUp","PageDown","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Enter","Space","Backspace","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"],er=async()=>{if(document.documentElement.requestFullscreen&&!document.fullscreenElement)try{await document.documentElement.requestFullscreen({navigationUI:"hide"})}catch(e){try{await document.documentElement.requestFullscreen()}catch(e){}}},el=async()=>{var e,t;if(null==(t=window.navigator)||null==(e=t.keyboard)?void 0:e.lock){try{await window.navigator.keyboard.lock();return}catch(e){}try{await window.navigator.keyboard.lock(es)}catch(e){}}},ea=()=>{try{var e,t,n;null==(n=window.navigator)||null==(t=n.keyboard)||null==(e=t.unlock)||e.call(t)}catch(e){}},eo=e=>{e.preventDefault(),e.stopPropagation(),"function"==typeof e.stopImmediatePropagation&&e.stopImmediatePropagation()},ec=e=>e instanceof HTMLElement&&!!e.closest('input, textarea, select, [contenteditable="true"], [role="textbox"]'),ed=()=>(()=>{let e=window.navigator.userAgent||"";return/FBAN|FBAV|FB_IAB|Instagram|Line|MicroMessenger|WhatsApp|Telegram|Discord|LinkedInApp|Snapchat|TikTok|WeChat|Pinterest/i.test(e)})()?"Please open the proctored exam in a standard browser session.":(()=>{let e=window.navigator.userAgent||"";return/Firefox\//i.test(e)})()?"Firefox is not supported for online proctored exams. Please use Chrome or Microsoft Edge.":ei()||(()=>{var e,t;return!!(null==(t=window.document)||null==(e=t.documentElement)?void 0:e.requestFullscreen)&&!1!==window.document.fullscreenEnabled})()?window.screen&&"number"==typeof window.screen.availLeft&&(0!==window.screen.availLeft||0!==window.screen.availTop)?"More than one display is detected. Use one screen for the exam.":"":"Launch this proctored exam in fullscreen/PWA mode.",eu=e=>{if("number"==typeof e&&Number.isFinite(e))return Math.max(0,Math.round(60*e));let t=String(null!=e?e:"").trim();if(!t)return 0;let n=t.split(":").map(e=>Number(e.trim()));return n.some(e=>Number.isNaN(e))?0:3===n.length?Math.max(0,3600*n[0]+60*n[1]+n[2]):2===n.length?Math.max(0,3600*n[0]+60*n[1]):Math.max(0,60*n[0])},em=e=>{let t=Math.max(0,Math.floor(e)),n=Math.floor(t/3600),i=Math.floor(t%3600/60),s=t%60,r=e=>String(e).padStart(2,"0");return n>0?"".concat(r(n),":").concat(r(i),":").concat(r(s)):"".concat(r(i),":").concat(r(s))},eh=e=>"online-practice-desc-".concat(String(e||"section").replace(/[^a-zA-Z0-9_-]/g,"-")),ev=(e,t)=>
1{var n;return String(null!=(n=null==e?void 0:e.id)?n:"mcq-".concat(t))},ep=e=>String(e||"").toLowerCase().includes("answer"),ew=function(e){var t,n,h,v,f,y,j,H,G,$;let{onExit:es,theme:ew="light",onToggleTheme:eg}=e,[ex,ef]=(0,s.useState)(S),[eb]=(0,s.useState)(()=>Q(ex)||{}),[ey,ej]=(0,s.useState)(!1),[eS,eM]=(0,s.useState)(!!eb.hasStarted),[eE,ek]=(0,s.useState)(eb.examStartedAt||null),[eN,eA]=(0,s.useState)(eb.activeSequenceStartedAt||null),[eL,eq]=(0,s.useState)(Date.now()),[eC,eT]=(0,s.useState)(eb.activeSection||"mcq"),[eD,eI]=(0,s.useState)(eb.activeDescriptiveGroupKey||""),[eF,eQ]=(0,s.useState)(Number(eb.activeQuestionIndex||0)),[eP,eO]=(0,s.useState)(eb.answers||{}),[eR,e_]=(0,s.useState)(eb.mcqQuestionStatuses||{}),[ez,eW]=(0,s.useState)(eb.descriptiveAnswers||{}),[eB,eV]=(0,s.useState)(null),[eZ,eH]=(0,s.useState)(!!eb.isMcqSubmitted),[eJ,eU]=(0,s.useState)(!!eb.isDescriptiveSubmitted),[eY,eK]=(0,s.useState)(!!eb.isAssessmentSubmitted),[eX,eG]=(0,s.useState)(Number(eb.appliedResetVersion||0)),[e$,e0]=(0,s.use
1State)(!1),[e1,e2]=(0,s.useState)(!1),[e4,e6]=(0,s.useState)(""),[e5,e3]=(0,s.useState)(null),[e7,e8]=(0,s.useState)(null),[e9,te]=(0,s.useState)(""),tt=(0,s.useRef)(!1),[tn,ti]=(0,s.useState)(null),[ts,tr]=(0,s.useState)(!1),[tl,ta]=(0,s.useState)({active:!1,message:"",requiresFullscreen:!1}),[to,tc]=(0,s.useState)(""),[td,tu]=(0,s.useState)(!1),[tm,th]=(0,s.useState)(()=>L(ex)),[tv,tp]=(0,s.useState)({count:0,phase:"idle",message:"",endsAt:0,showFullscreenLock:!1}),[tw,tg]=(0,s.useState)(!1);(0,s.useRef)(0);let tx=(0,s.useRef)(!1),tf=(0,s.useRef)(!1),tb=(0,s.useRef)(null),ty=(0,s.useRef)(""),tj=(0,s.useRef)(!1),tS=(0,s.useRef)(!1),tM=Array.isArray(null==ex?void 0:ex.questionRows)&&ex.questionRows.length?ex.questionRows:Array.isArray(null==ex?void 0:ex.questions)?ex.questions:[],tE=(0,s.useMemo)(()=>tM.filter(e=>!W(null==e?void 0:e.type)),[tM]),tk=(0,s.useMemo)(()=>tM.filter(e=>W(null==e?void 0:e.type)),[tM]),tN=(0,s.useMemo)(()=>tE.reduce((e,t)=>e+J(t),0),[tE]),tA="mcq"===eC?tE:tk,tL=tA.length?Math.min(Math.max(0,eF),tA.length-1):0,tq=null!=(h=tA[tL])?h:null,tC=tq&&"mcq"===eC?eR[ev(tq,tL)]:"",tT=null!=(v=null==ex?void 0:ex.setup)?v:{},tD=String((null==ex?void 0:ex.examType)||tT.examType||"Hybrid").toLowerCase(),tI=tE.length>0&&"descriptive"!==tD,tF=tk.length>0&&"mcq"!==tD,tQ="online"===String((null==ex?void 0:ex.examMode)||"").toLowerCase()&&String((null==ex?void 0:ex.supervisionType)||"").toLowerCase().includes("proctored"),tP=(0,s.useMemo)(()=>en(tT,tM),[tM,tT]),tO=tq&&null!=(y=tP[null!=(f=tq.id)?f:"".concat(X(tq),"-").concat(tM.indexOf(tq))])?y:eF+1,tR=(0,s.useMemo)(()=>{let e=ee(tT),t=et(tT,tM),n=new Map;tk.forEach(t=>{let i=X(t),s=e[i]||String((null==t?void 0:t.type)||"Descriptive Questions").replace(/\bSAQs?\b/gi,"").replace(/\bDirect\b/gi,"Direct").replace(/\bModified\s+Essay\b/gi,"Essay").replace(/\bDescriptive\s+Question\b/gi,"Descriptive Questions").replace(/[-_]+/g," ").replace(/\s+/g," ").trim()||"Descriptive Questions",r=n.get(i);if(r){r.questions.push(t),r.totalMarks+=J(t);return}n.set(i,{key:i,title:s,totalMarks:J(t),questions:[t]})});let i=t.filter(e=>"MCQ"===e&&tI||n.has(e));return[...n.values()].sort((e,n)=>t.indexOf(e.key)-t.indexOf(n.key)).map(e=>{var t;return{...e,roman:"".concat(Y(i.indexOf(e.key)+1),"."),toneClass:"MCQ"===(t=e.key)?"type-mcq":"SAQs"===t?"type-saqs":"MEQs"===t?"type-meqs":"LAQs"===t?"type-laqs":(K(t),"type-custom")}})},[tk,tI,tM,tT]),t_=(0,s.useMemo)(()=>tR.reduce((e,t)=>e+t.totalMarks,0),[tR]),tz=ee(tT).MCQ||"Multiple Choice Question",tW=(0,s.useMemo)(()=>{let e=et(tT,tM).filter(e=>"MCQ"===e&&tI||tR.some(t=>t.key===e)).indexOf("MCQ");return"".concat(Y(Math.max(0,e)+1),".")},[tR,tI,tM,tT]),tB=(0,s.useMemo)(()=>tE.filter((e,t)=>"answered"===eR[ev(e,t)]).length,[eR,tE]);(0,s.useMemo)(()=>tE.length>0&&tE.every((e,t)=>{let n=eR[ev(e,t)];return"answered"===n||"try-later"===n}),[eR,tE]);let tV=ep(tT.mcqDisplayType||(null==ex?void 0:ex.mcqDisplayType)||"Answer Input"),tZ=ep(tT.descriptiveDisplayType||(null==ex?void 0:ex.descriptiveDisplayType)||"Read-Only"),tH=eZ||eY,tJ=eJ||eY,tU=!ei(),tY=eS&&!eY,tK=!eY,tX=tl.active&&eS&&!eY,tG=tv.endsAt?Math.max(0,Math.ceil((tv.endsAt-eL)/1e3)):0,t$="penalty"===tv.phase||"lock"===tv.ph
1ase,t0=tQ&&eS&&!eY&&(tX||"warning"===tv.phase||t$||"auto-submitted"===tv.phase),t1=t0||"warning"===tv.phase||"auto-submitted"===tv.phase,t2=eS&&!eY&&"idle"!==tv.phase&&tv.showFullscreenLock,t4=tX||t1||"auto-submitted"===tv.phase,t6=tI&&!eZ,t5=tF&&!eJ,t3=!!(tQ&&tI&&tF&&tT.splitProctoredDuration),t7=!!(tI&&tF&&!t3),t8="descriptive-first"===tT.proctoredSectionSequence?"descriptive":"mcq",t9=t3?[t8,"descriptive"===t8?"mcq":"descriptive"]:[],ne=t9[0],nt=t9[1],nn=e=>"mcq"===e?eZ:"descriptive"===e&&eJ,ni=e=>!!tQ&&(t3?e===ne||!!(nt===e&&nn(ne)):"mcq"===e&&tI||"descriptive"===e&&tF),ns="mcq"===eC&&t6&&!t5,nr="descriptive"===eC&&t5&&!t6,nl=e=>t3?"Submit Assessment":"mcq"===e?ns?"Submit Assessment":"Submit MCQ Assessment":nr?"Submit Assessment":"Submit Descriptive Assessment",na="mcq"===eC?"MCQ":"Descriptive",no="mcq"===eC&&t6,nc="descriptive"===eC&&t5,nd=eS&&(tI||tF)&&!eY&&!(t6||t5)&&!no&&!nc,nu=tT.logoPreview||(null==ex?void 0:ex.logoPreview)||"",nm="dark"===ew?r.bd:r.AX,nh=_(tT.studentInstructions).split(/\n+|(?:\s*•\s*)/).map(e=>e.trim()).filter(Boolean);"Yes"===tT.provideStudentInstructions&&nh.length;let nv=(0,s.useMemo)(()=>{if(null==ex?void 0:ex.baseTotalDuration){var e,t;return eu(ex.baseTotalDuration)+60*Math.max(0,Number(null!=(t=null!=(e=null==ex?void 0:ex.extendedMinutes)?e:null==ex?void 0:ex.extended_minutes)?t:0))}return eu(null==ex?void 0:ex.totalDuration)},[null==ex?void 0:ex.baseTotalDuration,null==ex?void 0:ex.extendedMinutes,null==ex?void 0:ex.extended_minutes,null==ex?void 0:ex.totalDuration]),np=Number((null==tm?void 0:tm.extensionMinutes)||0),nw=(null==tm?void 0:tm.sectionExtensions)||{},ng=Number(nw.mcq||0),nx=Number(nw.descriptive||0),nf="mcq"===eC?ng:nx,nb=nv+60*np,ny=(0,s.useMemo)(()=>((e,t)=>{if(!e)return null;let n=new Date(e),i=String(t||"").trim().match(/^(\d{1,2})(?::(\d{2}))?\s*(AM|PM)?$/i);if(!i)return n.setHours(0,0,0,0),n;let s=Number(i[1]),r=Number(i[2]||0),l=String(i[3]||"").toUpperCase();return"PM"===l&&s<12&&(s+=12),"AM"===l&&12===s&&(s=0),n.setHours(s,r,0,0),n})((e=>{if(!e)return null;let t=String(e).trim(),n=t.match(/^(\d{4})-(\d{2})-(\d{2})$/),i=t.match(/^(\d{2})-(\d{2})-(\d{4})$/);if(n)return new Date(Number(n[1]),Number(n[2])-1,Number(n[3]));if(i)return new Date(Number(i[3]),Number(i[2])-1,Number(i[1]));let s=new Date(t);return Number.isNaN(s.getTime())?null:s})(null==ex?void 0:ex.startDate),null==ex?void 0:ex.startTime),[null==ex?void 0:ex.startDate,null==ex?void 0:ex.startTime]),nj=(0,s.useMemo)(()=>{let e=ny&&nb?new Date(ny.getTime()+1e3*nb):null,t=(null==ex?void 0:ex.extendedEndAt)||(null==ex?void 0:ex.extended_end_at);if(!t)return e;let n=new Date(/[zZ]|[+-]\d{2}:?\d{2}$/.test(String(t))?t:"".concat(String(t).replace(" ","T"),"+05:30"));return Number.isFinite(n.getTime())?e?n.getTime()>e.getTime()?n:e:n:e},[null==ex?void 0:ex.extendedEndAt,null==ex?void 0:ex.extended_end_at,nb,ny]),nS=!!(ny&&nj&&eL>=ny.getTime()&&eL<=nj.getTime()),nM=eE&&nb?eE+1e3*nb:null,nE=(eS||nS)&&nb?Math.max(0,Math.floor((((null==nj?void 0:nj.getTime())||nM||eL)-eL)/1e3)):nb,nk=!!((eS||nS)&&nb),nN=nk?em(nE):(null==ex?void 0:ex.totalDuration)||"-",nA=nk&&nE>0&&nE<=300,nL=(0,s.useMemo)(()=>eu(tT.mcqTimeLimit),[tT.mcqTimeLimit]),nq=(0,s.useMemo)(()=>eu(tT.descriptiveTimeLimit),[tT.descriptiveTimeLimit]),nC=t3?"mcq"===eC?nL+60*ng:nq+60*nx:0,nT=!!(eS&&t3&&eN&&nC>0),nD=nT?Math.max(0,nC-Math.floor((eL-eN)/1e3)):nC,nI=nC>0?em(nD):"-",nF=nT&&nD>0&&nD<=300,nQ=e5?Math.max(0,5-Math.floor((eL-e5.startedAt)/1e3)):0,nP=[],nO=[{label:"Type",value:(null==ex?void 0:ex.examType)||"-",tone:"type"},{label:nT||nk?"Time Remaining":"Duration",value:nT?nI:nN,tone:"duration",isCritical:nT?nF:nA},...(t3?nf:np)>0?[{label:"Extended",value:"+".concat(t3?nf:np," mins"),tone:"extended"}]:[]],nR=[{label:"Total Marks",value:null!=(j=null==ex?void 0:ex.totalMarks)?j:"-",icon:r.wA},{label:"Questions",value:null!=(H=null==ex?void 0:ex.questionCount)?H:tM.length,icon:r.Vw},{label:nk?"Remaining Time":"Total Duration",value:nN,icon:r.M4},{label:"Start Date",value:z(null==ex?void 0:ex.startDate),icon:r.AD},{label:"Start Time",value:(null==ex?void 0:ex.startTime)||"-",icon:r.Ao},{label:"End Date",value:z(null==ex?void 0:ex.endDate),icon:r.AD}],n_=(null==eB?void 0:eB.isFinal)?{title:"Submit Assessment?",message:"You are about to submit the complete proctored assessment for ".concat((null==ex?void 0:ex.name)||"this assessment",". Once confirmed, this assessment will be marked as completed."),success:"".concat((null==ex?void 0:ex.name)||"Assessment"," has been completed successfully."),questions:tM.length,marks:null!=(G=null==ex?void 0:ex.totalMarks)?G:tN+t_,answered:null}:(null==eB?void 0:eB.section)==="descriptive"?{title:"Submit Descriptive Assessment?",message:"You are about to submit the descriptive section for ".concat((null==ex?void 0:ex.name)||"this proctored assessment",". After confirmation, descriptive responses will be locked and the next section will open."),success:"Descriptive section submitted successfully.",questions:tk.length,marks:t_,answered:null}:{title:"Submit MCQ Assessment?",message:"You are about to submit the MCQ section for ".concat((null==ex?void 0:ex.name)||"this proctored assessment",". After confirmation, MCQ answers will be locked and the next section will open."),success:"MCQ section submitted successfully.",questions:tE.length,marks:tN,answered:"".concat(tB," / ").concat(tE.length," answered")},nz=e=>{!t0&&ni(e)&&("mcq"!==e||!eZ)&&("descriptive"!==e||!eJ)&&(eT(e),eQ(0),"descriptive"===e&&tR.length&&eI(tR[0].key),eS&&t3&&eA(Date.now()))}
1,nW=(e,t,n)=>{if(t0)return;let i=ev(e,t);e_(e=>({...e,[i]:n}))},nB=(e,t)=>{tJ||t0||eW(n=>({...n,[e]:t}))},nV=async()=>{var e,t,n,i,s;let r=!ei(),o=ed();if(o){tc(o),tu(!0),te(o);return}tu(!1),tc(""),tp({count:0,phase:"idle",message:"",endsAt:0,showFullscreenLock:!1}),te(""),ta({active:!1,message:"",requiresFullscreen:!1});try{if(window.history&&window.history.pushState&&window.history.pushState({proctor:"locked"},"",window.location.href),(null==(t=window.screen)||null==(e=t.orientation)?void 0:e.lock)&&window.screen.orientation.lock("landscape").catch(()=>{}),!document.fullscreenElement&&document.documentElement.requestFullscreen)await er();else if(r&&!document.documentElement.requestFullscreen)return void te("Launch this proctored exam in fullscreen/PWA mode.")}catch(e){if(r)return void te("Launch this proctored exam in fullscreen/PWA mode.")}if(r&&!document.fullscreenElement)return void te("Please enter fullscreen mode to start the proctored exam.");try{let e=await (0,a.vm)((0,l.ZO)(),(null==ex?void 0:ex.id)||(null==ex?void 0:ex.assessmentId)||(null==ex||null==(n=ex.setup)?void 0:n.assessmentId),{confirmStart:!0});if(null==e?void 0:e.data){let t=A(ex,{...e.data,id:e.data.id||(null==ex?void 0:ex.id),assessmentId:e.data.assessmentId||(null==ex?void 0:ex.assessmentId)});window.sessionStorage.setItem(c,JSON.stringify(t)),ef(t);let n=(null==(i=e.data)?void 0:i.result)&&"object"==typeof e.data.result?e.data.result:{},r=E((null==(s=e.data)?void 0:s.attempt)||e.data);if(n.answers_cleared||String(n.last_faculty_action||"").toLowerCase().includes("clear"))eO({}),eW({}),e_({}),P(ex,{...F(ex)||{},answers:{},descriptiveAnswers:{},mcqQuestionStatuses:{}});else if(k(r.mcq,r.descriptive)){let e={mcq:eP||{},descriptive:ez||{},statuses:eR||{}},t={...r.mcq,...e.mcq},n={...r.descriptive,...e.descriptive},i={...r.statuses,...e.statuses};eO(t),eW(n),e_(i),P(ex,{...F(ex)||{},answers:t,descriptiveAnswers:n,mcqQuestionStatuses:i})}}}catch(e){te((null==e?void 0:e.message)||"Unable to start this assessment right now.");return}await el(),tr(!!document.fullscreenElement),ta({active:!1,message:"",requiresFullscreen:!1});let d=Date.now();ek(d),eA(t3?d:null),eq(d),eM(!0),R(ex,d),t3&&(eT(t8),eQ(0))},nZ=e=>{if("final"===e)return void eV({section:"final",isFinal:!0,phase:"confirm"});eV({section:e,isFinal:"mcq"===e?!t5:!t6,phase:"confirm"})},nH=async()=>{if(t0)return;let e=(null==eB?void 0:eB.section)==="final"||!!(null==eB?void 0:eB.isFinal);if((null==eB?void 0:eB.section)==="mcq"&&!e)try{await (0,a.h0)((0,l.ZO)(),{assessment_id:M(ex),answers:{...eP},descriptive_answers:{...ez},mcq_statuses:{...eR},finalize:!1})}catch(e){te((null==e?void 0:e.message)||"Unable to save assessment answers.");return}(null==eB?void 0:eB.section)==="mcq"&&eH(!0),(null==eB?void 0:eB.section)==="descriptive"&&eU(!0),e&&(eH(e=>e||tI),eU(e=>e||tF)),eV(e=>e?{...e,phase:"success"}:e)},nJ=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{navigateAway:t=!1,submissionStatus:n="Manual Submit"}=e;if(!tt.current){tt.current=!0;let e={...eP},t={...ez},n={...eR};try{await (0,a.h0)((0,l.ZO)(),{assessment_id:M(ex),answers:e,descriptive_answers:t,mcq_statuses:n,finalize:!0})}catch(e){tt.current=!1,te((null==e?void 0:e.message)||"Unable to save assessment submission.");return}}eK(!0),tI&&eH(!0),tF&&eU(!0),tp(e=>({...e,phase:"idle",message:"",endsAt:0,showFullscreenLock:!1})),tg(!1),ta({active:!1,message:"",requiresFullscreen:!1}),document.fullscreenElement&&document.exitFullscreen&&(tx.current=!0,document.exitFullscreen().catch(()=>{})),ea(),tr(!1),O(ex,n),nU(),eV(e=>(null==e?void 0:e.phase)==="success"?e:null),e0(!1),t&&nK()},nU=()=>{if(!ex)return;let e={...ex,status:"completed",completedAt:new Date().toISOString()};try{window.sessionStorage.setItem(c,JSON.stringify(e))}catch(e){}try{let t=JSON.parse(window.localStorage.getItem(d)||"[]");if(!Array.isArray(t))return;let n=t.map(t=>{let n=(null==t?void 0:t.id)&&(null==ex?void 0:ex.id)&&t.id===ex.id,i=!(null==ex?void 0:ex.id)&&(null==t?void 0:t.assessmentName)===(null==ex?void 0:ex.assessmentName)&&(null==t?void 0:t.startDate)===(null==ex?void 0:ex.startDate)&&(null==t?void 0:t.startTime)===(null==ex?void 0:ex.startTime);return n||i?{...t,status:"completed",completedAt:e.completedAt}:t});window.localStorage.setItem(d,JSON.stringify(n))}catch(e){}finally{try{window.dispatchEvent(new CustomEvent("vx-assessment-published-changed"))}catch(e){}}},nY=function(){var e,t,n,i;let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Browser fullscreen exited";if(!ex||!eS||eY||tS.current||tx.current)return;tS.current=!0,tb.current&&(window.clearTimeout(tb.current),tb.current=null),ea();let r=M(ex),o=N(ex);try{window.localStorage.setItem(b,o)}catch(e){}let c=C(r)[o]||{},d=Number(null!=(i=null!=(n=null!=(t=c.fullscreenViolationTotal)?t:c.fullscreenExitCount)?n:null==(e=c.invigilatorLock)?void 0:e.exitCount)?i:0)+1,u=new Date().toISOString(),m=D(new Date);ti({title:"Exam Locked",message:"Contact invigilator to continue."}),ta({active:!0,message:"Contact invigilator to continue.",requiresFullscreen:!1}),T(ex,o,{fullscreenExitCount:d,fullscreenViolationTotal:d,resumeUnlockedAt:"",accessRequest:null,invigilatorLock:{active:!0,lockedAt:u,reason:s,exitCount:d},overallStatus:"Violation",logs:[{id:"".concat(o,"-fullscreen-lock-").concat(Date.now()),time:m,action:"Exam Locked",remarks:"".concat(s," | Resume & Extend required from Exam Controls."),faculty:"System"},...c.logs||[]]});let h=(0,l.ZO)();h&&r&&(0,a.h0)(h,{assessment_id:r,finalize:!1,answers:eP||{},descriptive_answers:ez||{},mcq_statuses:eR||{},proctoring:{overall_status:"Violation",invigilator_lock:{active:!0,lockedAt:u,reason:s,exitCount:d},access_requested:!1,access_request:{active:!1},proctoring_logs:[{time:m,at:u,action:"Violation",remarks:"".concat(s," | Resume & Extend required from Exam Controls."),faculty:"System"}],fullscreenViolationTotal:d,fullscreenExitCount:d}}).catch(()=>{})},nK=()=>{tx.current=!0,tb.current&&(window.clearTimeout(tb.current),tb.current=null),ti(null),ta({active:!1,message:"",requiresFullscreen:!1}),e0(!1),ea(),document.fullscreenElement&&document.exitFullscreen&&document.exitFullscreen().catch(()=>{}),tr(!1);try{window.sessionStorage.removeItem(c)}catch(e){}null==es||es(o.MY_ASSESSMENT)},nX=()=>
1{if(eY)return void nK();e0(!0)},nG=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!eS||eY)return;let n="".concat(e,":").concat(t);ty.current!==n&&(ty.current=n,I(ex,N(ex),"".concat(e).concat(t?" | ".concat(t):"")))},n$=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;!t4&&Array.isArray(e)&&e.length&&e8({images:e,index:Math.min(Math.max(0,t),e.length-1)})},n0=()=>{e8(null)},n1=e=>{e8(t=>{if(!t)return t;let n=Math.min(Math.max(0,t.index+e),t.images.length-1);return{...t,index:n}})},n2=async()=>{if(document.documentElement.requestFullscreen&&!document.fullscreenElement)try{tb.current&&(window.clearTimeout(tb.current),tb.current=null),await er(),await el(),tr(!0),ta({active:!1,message:"",requiresFullscreen:!1}),te("")}catch(e){te("Fullscreen mode is required for proctored exam.")}},n4=async()=>{if(tU&&!document.fullscreenElement)return void await n2();await el(),tr(!!document.fullscreenElement),ta({active:!1,message:"",requiresFullscreen:!1}),te("")};return((0,s.useEffect)(()=>{let e=window.setInterval(()=>{eq(Date.now())},1e3);return()=>window.clearInterval(e)},[]),(0,s.useEffect)(()=>(document.documentElement.classList.add("assessment-exam-standalone-root"),document.body.classList.add("assessment-exam-standalone-body"),er().then(()=>{tr(!!document.fullscreenElement)}),()=>{document.documentElement.classList.remove("assessment-exam-standalone-root"),document.body.classList.remove("assessment-exam-standalone-body")}),[]),(0,s.useEffect)(()=>{if(!ex||eY)return;let e=()=>(()=>{var e;if(ex&&!eY){if(null==(e=(C(M(ex))[N(ex)]||{}).invigilatorLock)?void 0:e.active){tS.current=!0;let e="Contact invigilator to continue.";tn&&tn.message===e||ti({title:"Exam Locked",message:e}),ta({active:!0,message:e,requiresFullscreen:!1}),te("");return}tS.current=!1,ti(null),ta(e=>e.active&&e.message.includes("Contact invigilator to continue")?{active:!1,message:"",requiresFullscreen:!1}:e),eS&&(tr(!!document.fullscreenElement),tU&&!document.fullscreenElement&&(tb.current||!document.documentElement.requestFullscreen||document.fullscreenElement||(tb.current=window.setTimeout(()=>{tb.current=null,!eS||eY||document.fullscreenElement||n2()},1e3))),el(),te(""))}})(),t=t=>{t.key==="".concat(g,":").concat(M(ex))&&e()},n=t=>{if(!(null==t?void 0:t.detail))return void e();t.detail.assessmentId&&t.detail.assessmentId!==M(ex)||e()};return e(),window.addEventListener("storage",t),window.addEventListener(x,n),()=>{window.removeEventListener("storage",t),window.removeEventListener(x,n)}},[ex,eS,eY]),(0,s.useEffect)(()=>{if(!td||eS||eY)return;let e=()=>{let e=ed();tc(e),e||tu(!1)};return window.addEventListener("resize",e),window.addEventListener("orientationchange",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e)}},[eS,eY,td]),(0,s.useEffect)(()=>{eS&&eY&&document.fullscreenElement&&document.exitFullscreen&&document.exitFullscreen().catch(()=>{})},[eS,eY]),(0,s.useEffect)(()=>{tv.endsAt&&["penalty","lock","auto-submitted"].includes(tv.phase)&&!(eL<tv.endsAt)&&"auto-submitted"!==tv.phase&&tp(e=>e.phase===tv.phase&&e.endsAt===tv.endsAt?{...e,phase:"idle",message:"",endsAt:0}:e)},[tv.endsAt,tv.phase,eL]),(0,s.useEffect)(()=>{if(!t1||"warning"!==tv.phase)return;let e=window.setTimeout(()=>{tp(e=>"warning"===e.phase?{...e,phase:"idle",message:"",endsAt:0}:e)},3e3);return()=>window.clearTimeout(e)},[t1,tv.phase,tv.message]),(0,s.useEffect)(()=>{if(!tw||!eY||"auto-submitted"!==tv.phase)return;let e=window.setTimeout(()=>{nK()},1800);return()=>window.clearTimeout(e)},[tw,eY,es,tv.phase]),(0,s.useEffect)(()=>{if(!tK)return;let e=e=>{eo(e),"keydown"===e.type&&tY&&el()},t=e=>{ec(e.target)&&(eo(e),"function"==typeof e.target.blur&&e.target.blur())};return tY&&el(),ec(document.activeElement)&&"function"==typeof document.activeElement.blur&&document.activeElement.blur(),window.addEventListener("keydown",e,!0),window.addEventListener("keypress",e,!0),window.addEventListener("keyup",e,!0),window.addEventListener("beforeinput",e,!0),window.addEventListener("input",e,!0),window.addEventListener("compositionstart",e,!0),window.addEventListener("compositionupdate",e,!0),window.addEventListener("compositionend",e,!0),window.addEventListener("focusin",t,!0),document.addEventListener("keydown",e,!0),document.addEventListener("keypress",e,!0),document.addEventListener("keyup",e,!0),document.addEventListener("beforeinput",e,!0),document.addEventListener("input",e,!0),document.addEventListener("compositionstart",e,!0),document.addEventListener("compositionupdate",e,!0),document.addEventListener("compositionend",e,!0),document.addEventListener("focusin",t,!0),()=>{window.removeEventListener("keydown",e,!0),window.removeEventListener("keypress",e,!0),window.removeEventListener("keyup",e,!0),window.removeEventListener("beforeinput",e,!0),window.removeEventListener("input",e,!0),window.removeEventListener("compositionstart",e,!0),window.removeEventListener("compositionupdate",e,!0),window.removeEventListener("compositionend",e,!0),window.removeEventListener("focusin",t,!0),document.removeEventListener("keydown",e,!0),document.removeEventListener("keypress",e,!0),document.removeEventListener("keyup",e,!0),document.removeEventListener("beforeinput",e,!0),document.removeEventListener("input",e,!0),document.removeEventListener("compositionstart",e,!0),document.removeEventListener("compositionupdate",e,!0),document.removeEventListener("compositionend",e,!0),document.removeEventListener("focusin",t,!0),tY&&ea()}},[tY,tK]),(0,s.useEffect)(()=>
1{if(!eS||eY)return;let e=!ei(),t=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ta(n=>n.active&&n.message===e&&n.requiresFullscreen===t?n:{active:!0,message:e,requiresFullscreen:t})},n=()=>{ta(e=>e.active?{active:!1,message:"",requiresFullscreen:!1}:e)},i=()=>{if(tr(!!document.fullscreenElement),e&&!document.fullscreenElement){nG("Fullscreen interrupted","Page visibility changed while fullscreen was inactive"),nY("Fullscreen exited");return}if(document.hidden){t("Return to the exam screen to continue."),nG("Tab or page hidden","Exam page became hidden");return}n()},s=()=>{if(tr(!!document.fullscreenElement),e&&!document.fullscreenElement){nG("Fullscreen interrupted","Window lost focus while fullscreen was inactive"),nY("Fullscreen exited");return}t("Keep this exam window active to continue."),nG("Window focus lost","Exam window lost focus")},r=()=>{if(tr(!!document.fullscreenElement),!e||document.fullscreenElement){if(tf.current){tf.current=!1,t("Exam paused. Resume when you are ready to continue.");return}n()}},l=()=>{if(tr(!!document.fullscreenElement),e&&!document.fullscreenElement){if(tx.current){tx.current=!1;return}nG("Fullscreen interrupted","Browser fullscreen exited"),nY("Browser fullscreen exited");return}document.fullscreenElement&&(tx.current=!1,el()),n()},a=e=>{e.preventDefault(),e.stopPropagation()},o=e=>{e.preventDefault(),e.stopPropagation()},c=e=>{e.preventDefault(),e.stopPropagation()},d=e=>{e.preventDefault(),e.stopPropagation()},u=e=>{e.preventDefault(),e.stopPropagation()},m=e=>{e.preventDefault(),e.stopPropagation()},h=e=>{e.preventDefault(),e.stopPropagation()},v=e=>{"number"!=typeof e.clientY||e.clientY>18||(e.preventDefault(),e.stopPropagation(),"function"==typeof e.stopImmediatePropagation&&e.stopImmediatePropagation(),t("Exam paused. Move away from browser controls and resume when ready."),nG("Browser control area reached","Pointer moved to the top screen edge"))},p=()=>{eS&&!eY&&window.history&&window.history.pushState&&window.history.pushState({proctor:"locked"},"",window.location.href)},w=()=>{e&&(nG("Fullscreen restore failed","Browser reported a fullscreen error"),nY("Fullscreen restore failed"))},g=e=>{eS&&!eY&&(tf.current=!0,t("Exam paused. Resume when you are ready to continue."),nG("Close or refresh prompted","Browser beforeunload prompt was triggered"),e.preventDefault(),e.returnValue="")},x=()=>{tr(!!document.fullscreenElement),t("Return to the exam screen to continue."),nG("Page leaving or hidden","Browser pagehide event was triggered")},f=()=>{tr(!!document.fullscreenElement),e&&!document.fullscreenElement&&(nG("Fullscreen interrupted","Window resized while fullscreen was inactive"),nY("Fullscreen exited"))};return document.addEventListener("visibilitychange",i,!0),window.addEventListener("visibilitychange",i),window.addEventListener("blur",s),window.addEventListener("focus",r),document.addEventListener("fullscreenchange",l,!0),document.addEventListener("fullscreenerror",w,!0),window.addEventListener("fullscreenchange",l),window.addEventListener("contextmenu",d),window.addEventListener("copy",a),window.addEventListener("cut",o),window.addEventListener("paste",c),window.addEventListener("dragstart",u),window.addEventListener("selectstart",m),window.addEventListener("drop",h),window.addEventListener("pointermove",v,!0),window.addEventListener("mousemove",v,!0),document.addEventListener("pointermove",v,!0),document.addEventListener("mousemove",v,!0),window.addEventListener("fullscreenerror",w),window.addEventListener("popstate",p),window.addEventListener("beforeunload",g),window.addEventListener("pagehide",x),window.addEventListener("resize",f),window.history&&window.history.pushState&&window.history.pushState({proctor:"locked"},"",window.location.href),()=>{tb.current&&(window.clearTimeout(tb.current),tb.current=null),ea(),document.removeEventListener("visibilitychange",i,!0),window.removeEventListener("visibilitychange",i),window.removeEventListener("blur",s),window.removeEventListener("focus",r),document.removeEventListener("fullscreenchange",l,!0),document.removeEventListener("fullscreenerror",w,!0),window.removeEventListener("fullscreenchange",l),window.removeEventListener("contextmenu",d),window.removeEventListener("copy",a),window.removeEventListener("cut",o),window.removeEventListener("paste",c),window.removeEventListener("dragstart",u),window.removeEventListener("selectstart",m),window.removeEventListener("drop",h),window.removeEventListener("pointermove",v,!0),window.removeEventListener("mousemove",v,!0),document.removeEventListener("pointermove",v,!0),document.removeEventListener("mousemove",v,!0),window.removeEventListener("fullscreenerror",w),window.removeEventListener("popstate",p),window.removeEventListener("beforeunload",g),window.removeEventListener("pagehide",x),window.removeEventListener("resize",f)}},[eS,eY]),(0,s.useEffect)(()=>{ex&&P(ex,{hasStarted:eS,examStartedAt:eE,activeSequenceStartedAt:eN,activeSection:eC,activeDescriptiveGroupKey:eD,activeQuestionIndex:eF,answers:eP,mcqQuestionStatuses:eR,descriptiveAnswers:ez,isMcqSubmitted:eZ,isDescriptiveSubmitted:eJ,isAssessmentSubmitted:eY,appliedResetVersion:eX})},[eD,eF,eC,eN,eP,eX,ex,ez,eE,eS,eY,eJ,eZ,eR]),(0,s.useEffect)(()=>
1{if(!ex||!eS)return;let e=()=>{var e,t;e=N(ex),t={isSubmitted:eY,isPaused:tl.active,fullscreenActive:!!document.fullscreenElement,pageVisible:!document.hidden,windowFocused:document.hasFocus(),activeSection:eC,activeQuestionIndex:eF},M(ex)&&e&&T(ex,e,e=>{var n;let i=!!(null==(n=e.invigilatorLock)?void 0:n.active);return{...e,heartbeat:{...e.heartbeat||{},...t,lastHeartbeatAt:new Date().toISOString()},overallStatus:i?"Locked":t.isSubmitted?"Completed":t.isPaused?"Paused":"In progress"}})};if(e(),eY)return;let t=window.setInterval(e,5e3);return()=>window.clearInterval(t)},[eF,eC,ex,tl.active,eS,eY]),(0,s.useEffect)(()=>{let e=()=>{let e=q(ex),t=F(ex)||{};if((null==e?void 0:e.version)&&t.appliedResetVersion!==e.version){if(eM(!1),ek(null),eA(null),eQ(0),eV(null),e0(!1),e2(!1),e6(""),e3(null),eH(!1),eU(!1),eK(!1),"clear"===e.mode){eG(e.version),eT("mcq"),eI(""),eO({}),e_({}),eW({}),P(ex,{appliedResetVersion:e.version});return}eT(t.activeSection||"mcq"),eI(t.activeDescriptiveGroupKey||""),eO(t.answers||{}),e_(t.mcqQuestionStatuses||{}),eW(t.descriptiveAnswers||{}),eG(e.version),P(ex,{...t,hasStarted:!1,examStartedAt:null,activeSequenceStartedAt:null,isMcqSubmitted:!1,isDescriptiveSubmitted:!1,isAssessmentSubmitted:!1,appliedResetVersion:e.version})}},t=t=>{t.detail&&t.detail.assessmentId!==M(ex)||e()},n=t=>{t.key===p&&e()};return e(),window.addEventListener(w,t),window.addEventListener("storage",n),()=>{window.removeEventListener(w,t),window.removeEventListener("storage",n)}},[ex]),(0,s.useEffect)(()=>{let e=()=>{th(L(ex))},t=t=>{t.key===u&&e()},n=t=>{t.detail&&t.detail.assessmentId!==M(ex)||e()};return e(),window.addEventListener("storage",t),window.addEventListener(m,n),()=>{window.removeEventListener("storage",t),window.removeEventListener(m,n)}},[ex]),(0,s.useEffect)(()=>{if(!ex||!eS)return;let e=M(ex),t=(0,l.ZO)();if(!e||!t)return;let n=!1,i=async()=>{try{var i,s,r,l;let o=await (0,a.UH)(t),d=(Array.isArray(null==o||null==(i=o.data)?void 0:i.data)?o.data.data:Array.isArray(null==o?void 0:o.data)?o.data:[]).find(t=>String((null==t?void 0:t.id)||(null==t?void 0:t.assessmentId)||"")===String(e));if(!d||n)return;let u=Number(null!=(l=null!=(r=d.extendedMinutes)?r:d.extended_minutes)?l:0),m=String(d.studentStatus||(null==(s=d.attempt)?void 0:s.status)||"").toLowerCase(),h=d.result&&"object"==typeof d.result?d.result:{},v=!!(h.resume_unlocked_at||h.invigilator_lock_cleared||h.invigilator_lock&&!1===h.invigilator_lock.active&&(Number(h.extended_minutes)>0||h.last_faculty_action));if(ef(t=>{let n=A(t,{...d,id:e,assessmentId:e,totalDuration:d.totalDuration||t.totalDuration,baseTotalDuration:d.baseTotalDuration||t.baseTotalDuration,extendedMinutes:u,extendedEndAt:d.extendedEndAt||d.extended_end_at||t.extendedEndAt});try{window.sessionStorage.setItem(c,JSON.stringify(n))}catch(e){}return n}),v){T(ex,N(ex),e=>({...e,invigilatorLock:{...e.invigilatorLock||{},active:!1},accessRequest:{...e.accessRequest||{},active:!1},resumeUnlockedAt:h.resume_unlocked_at||new Date().toISOString(),overallStatus:"In Progress"})),ti(null),ta({active:!1,message:"",requiresFullscreen:!1});let e=E(d.attempt||d);h.answers_cleared||String(h.last_faculty_action||"").toLowerCase().includes("clear")?(eO({}),eW({}),e_({}),P(ex,{...F(ex)||{},answers:{},descriptiveAnswers:{},mcqQuestionStatuses:{}})):k(e.mcq,e.descriptive)&&(eO(t=>Object.keys(t||{}).length?t:{...e.mcq}),eW(t=>Object.keys(t||{}).length?t:{...e.descriptive}),e_(t=>Object.keys(t||{}).length?t:{...e.statuses}))}"in_progress"===m&&(eK(!1),tt.current=!1)}catch(e){}};i();let s=window.setInterval(i,12e3);return()=>{n=!0,window.clearInterval(s)}},[null==ex?void 0:ex.id,null==ex?void 0:ex.assessmentId,eS]),(0,s.useEffect)(()=>{if(!eS||"mcq"!==eC||!tq)return;let e=ev(tq,eF);e_(t=>t[e]?t:{...t,[e]:"viewed"})},[eF,eC,tq,eS]),(0,s.useEffect)(()=>{if(!eS||!t3||eB||e5)return;let e=nn(ne);if(eC===nt&&!e){eT(ne),eQ(0),"descriptive"===ne&&tR.length&&eI(tR[0].key);return}(eC!==ne||e)&&eC===ne&&e&&(eT(nt),eQ(0),"descriptive"===nt&&tR.length&&eI(tR[0].key))},[eC,tR,eS,t3,eZ,eJ,ne,nt,t8,eB,e5]),(0,s.useEffect)(()=>{if(nT&&!(nD>0)&&!eY&&!eB&&!e5){if(eC===ne&&!nn(eC)){"mcq"===eC&&eH(!0),"descriptive"===eC&&eU(!0),e3({fromLabel:na,toSection:nt,toLabel:"mcq"===nt?"MCQ":"Descriptive",startedAt:Date.now()});return}eC!==nt||nn(eC)||(e6("".concat(na," time is over. Submitting assessment.")),nJ({submissionStatus:"Auto Submit"}),e2(!0))}},[eC,na,nD,tR,eY,nT,ne,nt,e5,eB]),(0,s.useEffect)(()=>
1{if(!e5||nQ>0)return;let e=Date.now();eT(e5.toSection),eQ(0),eA(e),"descriptive"===e5.toSection&&tR.length&&eI(tR[0].key),e3(null)},[tR,e5,nQ]),(0,s.useEffect)(()=>{if(!e4)return;let e=window.setTimeout(()=>{e6("")},2500);return()=>window.clearTimeout(e)},[e4]),(0,s.useEffect)(()=>{if(tI&&!tF&&"mcq"!==eC){eT("mcq"),eQ(0);return}!tI&&tF&&"descriptive"!==eC&&(eT("descriptive"),eQ(0),tR.length&&eI(tR[0].key))},[eC,tR,tF,tI]),(0,s.useEffect)(()=>{if("descriptive"!==eC||!tR.length)return;let e=0,t=()=>{var t,n;e=0;let i=document.querySelector(".online-practice-header"),s=(null!=(t=null==i?void 0:i.getBoundingClientRect().height)?t:84)+90,r=tR.map(e=>{let t=document.getElementById(eh(e.key));if(!t)return null;let n=t.getBoundingClientRect();return{key:e.key,top:n.top,bottom:n.bottom}}).filter(Boolean);if(!r.length)return;let l=null!=(n=r.filter(e=>e.bottom>=s).sort((e,t)=>Math.abs(e.top-s)-Math.abs(t.top-s))[0])?n:r[r.length-1];eI(e=>e===l.key?e:l.key)},n=()=>{e||(e=window.requestAnimationFrame(t))};return t(),window.addEventListener("scroll",n,{passive:!0}),window.addEventListener("resize",n),document.addEventListener("scroll",n,{passive:!0,capture:!0}),()=>{window.removeEventListener("scroll",n),window.removeEventListener("resize",n),document.removeEventListener("scroll",n,{capture:!0}),e&&window.cancelAnimationFrame(e)}},[eC,tR]),(0,s.useEffect)(()=>{if((null==eB?void 0:eB.phase)!=="success")return;let e=window.setTimeout(()=>{let e=eB.section,t=eB.isFinal;return(eV(null),t)?void nJ({navigateAway:!0}):"mcq"===e?void nz("descriptive"):"descriptive"===e?void nz("mcq"):void 0},2e3);return()=>window.clearTimeout(e)},[eB]),(0,s.useEffect)(()=>{!nk||nE>0||eY||(nJ({submissionStatus:"Auto Submit"}),e2(!0))},[eY,nE,nk]),(0,s.useEffect)(()=>{if(!e1)return;let e=window.setTimeout(()=>{nK()},2e3);return()=>window.clearTimeout(e)},[e1,es]),(0,s.useEffect)(()=>{if(!e7)return;let e=e=>{if(tY){e.preventDefault(),e.stopPropagation();return}if("Escape"===e.key)return void n0();"ArrowLeft"===e.key&&n1(-1),"ArrowRight"===e.key&&n1(1)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[e7,tY]),ex)?tQ?(0,i.jsxs)("main",{className:"online-practice-exam-page is-proctored-exam ".concat(eS?"has-fixed-header":"is-before-start"," ").concat(t0?"is-proctor-locked":""," ").concat(t1?"is-proctor-restricted":"").trim(),children:[tY?(0,i.jsx)("div",{className:"online-proctored-top-edge-guard","aria-hidden":"true"}):null,eS?(0,i.jsxs)("header",{className:"online-practice-header ".concat(nP.length?"":"has-no-chips").trim(),children:[nu?(0,i.jsx)("img",{src:nu,alt:tT.logoName||"Assessment logo",className:"online-practice-logo-image"}):(0,i.jsx)("span",{className:"online-practice-logo-mark","aria-hidden":"true",children:(0,i.jsx)(r.y8,{size:20,strokeWidth:2.3})}),(0,i.jsxs)("div",{className:"online-practice-header-title",children:[(0,i.jsx)("h1",{children:ex.assessmentName||"Proctored Assessment"}),(0,i.jsx)("p",{children:tT.collegeName||ex.collegeName||"College not selected"}),(0,i.jsx)("small",{children:[ex.examCategory,tT.academicYear,ex.assignTo,ex.supervisionType||"Proctored Exam"].filter(Boolean).join(" / ")})]}),nP.length?(0,i.jsx)("div",{className:"online-practice-header-chips","aria-label":"Assessment configuration summary",children:nP.map(e=>(0,i.jsxs)("span",{className:"is-".concat(e.tone," ").concat(e.isCritical?"is-critical":"").trim(),children:[(0,i.jsx)("em",{children:e.label}),(0,i.jsx)("strong",{children:e.value})]},e.tone))}):null,(0,i.jsxs)("div",{className:"online-practice-header-actions",children:[(0,i.jsx)("button",{type:"button",className:"online-practice-theme-btn",onClick:eg,"aria-label":"Toggle theme",children:(0,i.jsx)(nm,{size:16,strokeWidth:2.2})}),tY?null:(0,i.jsx)("button",{type:"button",className:"online-practice-exit-btn",onClick:nX,children:"Exit"})]})]}):null,eS?(0,i.jsx)("section",{className:"online-practice-workspace",children:(0,i.jsxs)("div",{className:"online-practice-exam-layout",children:[(0,i.jsxs)("div",{className:"online-practice-exam-main",children:["mcq"===eC&&tI?(0,i.jsxs)("div",{className:"online-practice-question-head is-section-title type-mcq",children:[(0,i.jsxs)("h2",{children:[(0,i.jsx)("span",{children:tW}),tz]}),(0,i.jsxs)("strong",{children:[String(tN).padStart(2,"0")," Marks"]})]}):null,(0,i.jsx)("article",{className:"online-practice-question-card ".concat("descriptive"===eC?"is-descriptive-section":"").trim(),children:"descriptive"===eC?tR.length?(0,i.jsx)("div",{className:"online-practice-descriptive-readonly","aria-label":"Read only descriptive questions",children:tR.map((e,t)=>(0,i.jsxs)("section",{className:"online-practice-descriptive-section ".concat(e.toneClass),id:eh(e.key),children:[(0,i.jsxs)("div",{className:"online-practice-descriptive-section-head",children:[(0,i.jsxs)("h2",{children:[(0,i.jsx)("span",{children:e.roman}),e.title]}),(0,i.jsxs)("strong",{children:[String(e.totalMarks).padStart(2,"0")," Marks"]})]}),(0,i.jsx)("div",{className:"online-practice-descriptive-list",children:e.questions.map((t,n)=>{var s,r,l,a,o;let c=(e=>{let t=Array.isArray(null==e?void 0:e.descriptiveSections)?e.descriptiveSections:[];if(t.length)return t;let n=Array.isArray(null==e?void 0:e.subQuestions)?e.subQuestions:[];return n.length?n:[]})(t),d=null!=(r=tP[null!=(s=t.id)?s:"".concat(e.key,"-").concat(tM.indexOf(t))])?r:n+1;return(0,i.jsxs)("div",{className:"online-practice-descriptive-paper-question",children:[(0,i.jsxs)("p",{className:"online-practice-descriptive-main",children:[(0,i.jsxs)("strong",{children:[d,"."]}),(0,i.jsx)("span",{children:B(t)})]}),U(t.images,"",n$,t4),c.length?c.map((e,n)=>{var s,r,l,a,o;return(0,i.jsxs)("div",{className:"online-practice-descriptive-subgroup",children:[(0,i.jsxs)("p",{className:"online-practice-descriptive-sub",children:[(0,i.jsxs)("strong",{children:[Y(n+1).toLowerCase(),"."]}),(0,i.jsx)("span",{children:B(e)}),!(null!=(s=e.children)?s:[]).length&&Z(e.marks)?(0,i.jsxs)("b",{children:[e.marks," Marks"]}):null]}),tZ&&!(null!=(r=e.children)?r:[]).length?(0,i.jsxs)("label",{className:"online-practice-descriptive-answer",children:[(0,i.jsx)("span",{children:"Your answer"}),(0,i.jsx)("textarea",{disabled:tJ||t4||tY,value:null!=(a=ez[null!=(l=e.id)?l:"".concat(t.id,"-section-").concat(n)])?a:"",onCh
1ange:i=>{var s;return nB(null!=(s=e.id)?s:"".concat(t.id,"-section-").concat(n),i.target.value)},placeholder:"Type your answer..."})]}):null,Array.isArray(e.children)&&e.children.length?e.children.map((e,s)=>{var r,l,a;return(0,i.jsxs)("div",{className:"online-practice-descriptive-child",children:[(0,i.jsxs)("p",{className:"online-practice-descriptive-sub is-nested",children:[(0,i.jsxs)("strong",{children:[String.fromCharCode(97+s),"."]}),(0,i.jsx)("span",{children:B(e)}),Z(e.marks)?(0,i.jsxs)("b",{children:[e.marks," Marks"]}):null]}),tZ?(0,i.jsxs)("label",{className:"online-practice-descriptive-answer is-nested",children:[(0,i.jsx)("span",{children:"Your answer"}),(0,i.jsx)("textarea",{disabled:tJ||t4||tY,value:null!=(l=ez[null!=(r=e.id)?r:"".concat(t.id,"-child-").concat(n,"-").concat(s)])?l:"",onChange:i=>{var r;return nB(null!=(r=e.id)?r:"".concat(t.id,"-child-").concat(n,"-").concat(s),i.target.value)},placeholder:"Type your answer..."})]}):null]},null!=(a=e.id)?a:s)}):null]},null!=(o=e.id)?o:n)}):tZ?(0,i.jsxs)("label",{className:"online-practice-descriptive-answer",children:[(0,i.jsx)("span",{children:"Your answer"}),(0,i.jsx)("textarea",{disabled:tJ||t4||tY,value:null!=(a=ez[null!=(l=t.id)?l:"".concat(e.key,"-").concat(n)])?a:"",onChange:i=>{var s;return nB(null!=(s=t.id)?s:"".concat(e.key,"-").concat(n),i.target.value)},placeholder:"Type your answer..."})]}):null]},null!=(o=t.id)?o:n)})})]},e.title))}):(0,i.jsx)("div",{className:"online-practice-empty-section",children:(0,i.jsx)("p",{children:"No questions available in this section."})}):tV?tq?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"online-practice-current-question",children:[(0,i.jsxs)("strong",{className:"online-practice-current-question-number",children:[tO,"."]}),(0,i.jsx)("h2",{children:B(tq)})]}),U(tq.images,"is-mcq",n$,t4),(0,i.jsx)("div",{className:"online-practice-options",children:(null!=($=tq.options)?$:[]).map((e,t)=>{var n;let s="".concat(null!=(n=tq.id)?n:eF,"-").concat(t),r=eP[ev(tq,eF)]===t;return(0,i.jsxs)("button",{type:"button",className:r?"is-selected":"",onClick:()=>((e,t,n)=>{let i=ev(e,t);if(eP[i]===n){let{[i]:e,...t}=eP;eO(t),e_(e=>({...e,[i]:"viewed"}))}else eO(e=>({...e,[i]:n})),e_(e=>({...e,[i]:"answered"}))})(tq,eF,t),children:[(0,i.jsxs)("strong",{children:[String.fromCharCode(65+t),"."]}),(0,i.jsx)("span",{children:V(e)})]},s)})})]}):(0,i.jsx)("div",{className:"online-practice-empty-section",children:(0,i.jsx)("p",{children:"No questions available in this section."})}):tE.length?(0,i.jsx)("div",{className:"online-practice-mcq-readonly-list","aria-label":"Read only MCQ questions",children:tE.map((e,t)=>{var n,s,r,l;let a=null!=(s=tP[null!=(n=e.id)?n:"MCQ-".concat(tM.indexOf(e))])?s:t+1;return(0,i.jsxs)("section",{className:"online-practice-mcq-readonly-question",children:[(0,i.jsxs)("div",{className:"online-practice-current-question",children:[(0,i.jsxs)("strong",{className:"online-practice-current-question-number",children:[a,"."]}),(0,i.jsx)("h2",{children:B(e)})]}),U(e.images,"is-mcq",n$,t4),(0,i.jsx)("div",{className:"online-practice-options is-readonly",children:(null!=(r=e.options)?r:[]).map((n,s)=>{var r;return(0,i.jsxs)("button",{type:"button",disabled:t4,children:[(0,i.jsxs)("strong",{children:[String.fromCharCode(65+s),"."]}),(0,i.jsx)("span",{children:V(n)})]},"".concat(null!=(r=e.id)?r:t,"-").concat(s))})})]},null!=(l=e.id)?l:t)})}):(0,i.jsx)("div",{className:"online-practice-empty-section",children:(0,i.jsx)("p",{children:"No questions available in this section."})})}),"mcq"===eC&&tV?(0,i.jsxs)("footer",{className:"online-practice-question-nav",children:[(0,i.jsx)("button",{type:"button",className:"online-practice-try-later-btn ".concat("try-later"===tC?"is-active":""),onClick:()=>{tq&&(nW(tq,eF,"try-later"),eQ(e=>Math.min(tA.length-1,e+1)))},children:"Try Later"}),(0,i.jsxs)("span",{className:"online-practice-question-nav-actions",children:[(0,i.jsxs)("button",{type:"button",disabled:eF<=0||t4,onClick:()=>eQ(e=>Math.max(0,e-1)),children:[(0,i.jsx)(r.JG,{size:16,strokeWidth:2.2}),"Previous"]}),(0,i.jsxs)("button",{type:"button",disabled:eF>=tA.length-1||t4,onClick:()=>
1{if(!tA.length)return;if(!tq)return void eQ(0);let e=eR[ev(tq,eF)];!tV||tH||t0||e&&"viewed"!==e&&"not-viewed"!==e||nW(tq,eF,"try-later"),eQ(e=>Math.min(tA.length-1,e+1))},children:["Next",(0,i.jsx)(r.c_,{size:16,strokeWidth:2.2})]})]})]}):null]}),(0,i.jsxs)("aside",{className:"online-practice-side-nav","aria-label":"Question navigation",children:[(0,i.jsxs)("div",{className:"online-proctored-side-meta","aria-label":"Proctored assessment summary",children:[(0,i.jsxs)("span",{className:"online-proctored-side-badge",children:[(0,i.jsx)(r.VA,{size:14,strokeWidth:2.3}),"Proctored Exams"]}),(0,i.jsx)("div",{className:"online-proctored-side-meta-grid",children:nO.map(e=>(0,i.jsxs)("span",{className:"is-".concat(e.tone," ").concat(e.isCritical?"is-critical":"").trim(),children:[(0,i.jsx)("em",{children:e.label}),(0,i.jsx)("strong",{children:e.value})]},e.tone))})]}),t7?(0,i.jsxs)("div",{className:"online-practice-tabs",role:"tablist","aria-label":"Question sections",children:[tI?(0,i.jsx)("button",{type:"button",className:"".concat("mcq"===eC?"is-active":""," ").concat(eZ?"is-completed":"").trim(),onClick:()=>nz("mcq"),disabled:eZ||t4,children:eZ?"MCQ Completed":"MCQ"}):null,tF?(0,i.jsx)("button",{type:"button",className:"".concat("descriptive"===eC?"is-active":""," ").concat(eJ?"is-completed":"").trim(),onClick:()=>nz("descriptive"),disabled:eJ||t4,children:eJ?"Descriptive Completed":"Descriptive"}):null]}):t3?(0,i.jsxs)("div",{className:"online-proctored-sequence-note",children:[(0,i.jsx)(r.ox,{size:15,strokeWidth:2.4}),(0,i.jsx)("strong",{children:na})]}):null,e4?(0,i.jsx)("div",{className:"online-proctored-sequence-alert",role:"status",children:e4}):null,(0,i.jsxs)("div",{className:"online-practice-nav-summary","aria-label":"".concat("mcq"===eC?"MCQ":"Descriptive"," section summary"),children:[(0,i.jsxs)("span",{children:[(0,i.jsx)("strong",{children:"mcq"===eC?tE.length:tk.length}),(0,i.jsx)("em",{children:"Total Questions"})]}),(0,i.jsxs)("span",{children:[(0,i.jsx)("strong",{children:String("mcq"===eC?tN:t_).padStart(2,"0")}),(0,i.jsx)("em",{children:"Total Marks"})]})]}),"mcq"===eC?tV?(0,i.jsxs)("div",{className:"online-practice-mcq-nav-panel",children:[(0,i.jsxs)("div",{className:"online-practice-mcq-attended-row",children:[(0,i.jsx)("span",{children:"Attended"}),(0,i.jsxs)("strong",{children:[tB," / ",tE.length]})]}),(0,i.jsx)("div",{className:"online-practice-number-nav","aria-label":"MCQ question numbers",children:tE.map((e,t)=>{var n;let s=eR[ev(e,t)]||"not-viewed";return(0,i.jsx)("button",{type:"button",className:"is-".concat(s," ").concat(eF===t?"is-active":"").trim(),onClick:()=>eQ(t),disabled:tH||t4,children:t+1},null!=(n=e.id)?n:t)})}),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"online-practice-question-status-legend","aria-label":"Question status legend",children:[(0,i.jsxs)("span",{className:"is-answered",children:[(0,i.jsx)("i",{"aria-hidden":"true"}),"Answered"]}),(0,i.jsxs)("span",{className:"is-try-later",children:[(0,i.jsx)("i",{"aria-hidden":"true"}),"Try Later"]}),(0,i.jsxs)("span",{className:"is-not-viewed",children:[(0,i.jsx)("i",{"aria-hidden":"true"}),"Not Viewed"]}),(0,i.jsxs)("span",{className:"is-viewed",children:[(0,i.jsx)("i",{"aria-hidden":"true"}),"Viewed"]})]}),no?(0,i.jsx)("button",{type:"button",className:"online-practice-submit-mcq-btn",onClick:()=>nZ("mcq"),children:eZ?"MCQ Assessment Submitted":nl("mcq")}):null]})]}):null:(0,i.jsx)("div",{className:"online-practice-section-nav","aria-label":"Descriptive sections",children:tR.map((e,t)=>{let n=eD?eD===e.key:0===t;return(0,i.jsxs)("button",{type:"button",className:n?"is-active":"",onClick:()=>{var t;return t=e.key,void(!t0&&ni("descriptive")&&(eT("descriptive"),eI(t),window.requestAnimationFrame(()=>{var e;let n=document.getElementById(eh(t)),i=document.querySelector(".online-practice-header");if(!n)return;let s=(null!=(e=null==i?void 0:i.getBoundingClientRect().height)?e:84)+14;window.scrollTo({top:n.getBoundingClientRect().top+window.scrollY-s,behavior:"smooth"})})))},disabled:tJ||t4,children:[(0,i.jsx)("span",{children:e.roman}),(0,i.jsx)("strong",{children:e.title}),(0,i.jsxs)("em",{children:[String(e.totalMarks).padStart(2,"0")," Marks"," ","•"," ",e.questions.length," Questions"]})]},e.key)})}),no&&!tV?(0,i.jsx)("button",{type:"button",className:"online-practice-submit-mcq-btn online-practice-submit-assessment-btn",onClick:()=>nZ("mcq"),children:eZ?"MCQ Assessment Submitted":nl("mcq")}):null,nc?(0,i.jsx)("button",{type:"button",className:"online-practice-submit-mcq-btn online-practice-submit-assessment-btn",onClick:()=>nZ("descriptive"),children:eY?"Assessment Submitted":eJ?"Descriptive Assessment Submitted":nl("descriptive")}
1):null,nd?(0,i.jsx)("button",{type:"button",className:"online-practice-submit-mcq-btn online-practice-submit-assessment-btn",onClick:()=>nZ("final"),children:"Submit Assessment"}):null]})]})}):(0,i.jsxs)("section",{className:"online-practice-start-card",children:[(0,i.jsxs)("div",{className:"online-practice-start-identity",children:[nu?(0,i.jsx)("img",{src:nu,alt:tT.logoName||"Assessment logo",className:"online-practice-logo-image"}):(0,i.jsx)("span",{className:"online-practice-logo-mark","aria-hidden":"true",children:(0,i.jsx)(r.y8,{size:20,strokeWidth:2.3})}),(0,i.jsxs)("div",{children:[(0,i.jsx)("h1",{children:ex.assessmentName||"Proctored Assessment"}),(0,i.jsx)("p",{children:tT.collegeName||ex.collegeName||"College not selected"}),(0,i.jsx)("small",{children:[ex.examCategory,tT.academicYear,ex.assignTo,ex.supervisionType||"Proctored Exam"].filter(Boolean).join(" / ")})]}),(0,i.jsxs)("div",{className:"online-practice-header-actions",children:[(0,i.jsx)("button",{type:"button",className:"online-practice-theme-btn",onClick:eg,"aria-label":"Toggle theme",children:(0,i.jsx)(nm,{size:16,strokeWidth:2.2})}),(0,i.jsx)("button",{type:"button",className:"online-practice-exit-btn",onClick:nX,children:"Exit"})]})]}),(0,i.jsxs)("div",{className:"online-practice-start-head",children:[(0,i.jsxs)("span",{children:[(0,i.jsx)(r.iU,{size:18,strokeWidth:2.2}),"Assessment Details"]}),(0,i.jsx)("strong",{children:ex.examMode||"Online"})]}),(0,i.jsx)("div",{className:"online-practice-detail-grid",children:nR.map(e=>{let t=e.icon;return(0,i.jsxs)("span",{children:[(0,i.jsx)("i",{"aria-hidden":"true",children:(0,i.jsx)(t,{size:15,strokeWidth:2.3})}),(0,i.jsx)("strong",{children:e.value}),(0,i.jsx)("em",{children:e.label})]},e.label)})}),(0,i.jsxs)("section",{className:"online-proctored-guidelines","aria-label":"Important exam guidelines",children:[(0,i.jsxs)("h2",{children:[(0,i.jsx)(r.R2,{size:16,strokeWidth:2.4}),"Important Exam Guidelines"]}),(0,i.jsxs)("div",{className:"online-proctored-guideline-grid",children:[(0,i.jsxs)("span",{children:[(0,i.jsx)(r.jt,{size:16,strokeWidth:2.4}),(0,i.jsx)("strong",{children:"Power:"}),(0,i.jsx)("p",{children:"Ensure your device is sufficiently charged before taking the exam."})]}),(0,i.jsxs)("span",{children:[(0,i.jsx)(r.MA,{size:16,strokeWidth:2.4}),(0,i.jsx)("strong",{children:"Restricted Items:"}),(0,i.jsx)("p",{children:"Use of calculators, smartwatches, or unauthorized electronic devices is strictly prohibited."})]}),(0,i.jsxs)("span",{children:[(0,i.jsx)(r.MJ,{size:16,strokeWidth:2.4}),(0,i.jsx)("strong",{children:"Stable Internet:"}),(0,i.jsx)("p",{children:"Maintain a stable internet connection. If disconnected, your answers are saved locally, but you must reconnect to submit."})]}),(0,i.jsxs)("span",{children:[(0,i.jsx)(r.Ud,{size:16,strokeWidth:2.4}),(0,i.jsx)("strong",{children:"Technical Support:"}),(0,i.jsx)("p",{children:"If you face any technical issues, raise your hand to alert the physical invigilator immediately."})]}),(0,i.jsxs)("span",{children:[(0,i.jsx)(r.br,{size:16,strokeWidth:2.4}),(0,i.jsx)("strong",{children:"No Interruptions:"}),(0,i.jsx)("p",{children:"Disable all notifications and close background applications to prevent accidental tab switches."})]}),(0,i.jsxs)("span",{children:[(0,i.jsx)(r.Jl,{size:16,strokeWidth:2.4}),(0,i.jsx)("strong",{children:"Final Submission:"}),(0,i.jsx)("p",{children:'Do not close the browser window until you see the final "Submitted Successfully" screen.'})]})]})]}),(0,i.jsxs)("section",{className:"online-proctored-rules","aria-label":"Online testing environment rules",children:[(0,i.jsxs)("h2",{children:[(0,i.jsx)(r.VA,{size:16,strokeWidth:2.4}),"Online Testing Environment Rules"]}),(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{children:"To ensure a fair testing environment, the system uses a controlled online exam window."}),(0,i.jsx)("li",{children:"Please remain on the exam page at all times until you submit the assessment."}),(0,i.jsx)("li",{children:"Desktop exams require fullscreen mode; mobile and tablet exams are monitored through app and page activity."}),(0,i.jsx)("li",{children:"Keyboard input is disabled during the live proctored exam. Use mouse or touch controls only."}),(0,i.jsx)("li",{children:"Do not close the browser window before final submission."})]})]}),(0,i.jsx)("p",{className:"online-proctored-fullscreen-note",children:"Please click below to start your exam. Use mouse or touch only; switching apps, tabs, or leaving the exam screen will be monitored."}),(0,i.jsxs)("div",{className:"online-practice-start-footer",children:[(0,i.jsxs)("label",{className:"online-practice-agree",children:[(0,i.jsx)("input",{type:"checkbox",checked:ey,onChange:e=>ej(e.target.checked),onKeyDown:eo}),(0,i.jsx)("span",{children:"I acknowledge and agree to comply with all stated assessment guidelines."})]}),(0,i.jsx)("button",{type:"button",className:"online-practice-start-btn",disabled:!ey,onKeyDown:eo,onKeyUp:eo,onKeyPress:eo,onPointerDown:()=>{tj.current=!0},onClick:e=>{var t,n;if(0===e.detail&&(null==(t=e.nativeEvent)?void 0:t.pointerType)!=="mouse"&&(null==(n=e.nativeEvent)?void 0:n.pointerType)!=="touch"||!tj.current)return void eo(e);tj.current=!1,nV()},children:"Start Proctored Exam"})]}),td&&to?(0,i.jsxs)("div",{className:"online-proctored-fullscreen-alert",role:"alert",children:[(0,i.jsx)(r.hc,{size:16,strokeWidth:2.4}),to]}):null,e9?(0,i.jsxs)("div",{className:"online-proctored-fullscreen-alert",role:"alert",children:[(0,i.jsx)(r.hc,{size:16,strokeWidth:2.4}),e9]}):null]}),tn?(0,i.jsx)("div",{className:"online-practice-submit-overlay online-proctored-lock-overlay",role:"presentation",children:(0,i.jsxs)("section",{className:"online-proctored-violation-overlay online-practice-submit-modal is-paused",role:"dialog","aria-modal":"true","aria-labelledby":"online-proctored-invigilator-lock-title",children:[(0,i.jsx)("span",{className:"online-practice-time-limit-icon","aria-hidden":"true",children:(0,i.jsx)(r.hc,{size:34,strokeWidth:2.4})}),(0,i.jsx)("h2",{id:"online-proctored-invigilator-lock-title",children:tn.title}),(0,i.jsx)("p",{children:tn.message}),(0,i.jsx)("div",{className:"online-practice-submit-actions online-practice-exit-actions",children:(0,i.jsx)("button",{type:"button",onClick:nK,children:"Return to My Assessment"})})]})}):null,tX&&!tn?(0,i.jsx)("div",{className:"online-practice-submit-overlay online-proctored-lock-overlay",role:"presentation",children:(0,i.jsxs)("section",{className:"online-proctored-violation-overlay online-practice-submit-modal is-paused",role:"dialog","aria-modal":"true","aria-labelledby":"online-proctored-pause-title",children:[(0,i.jsx)("span",{className:"online-practice-time-limit-icon","aria-hidden":"true",children:(0,i.jsx)(r.hc,{size:34,strokeWidth:2.4})}),(0,i.jsx)("h2",{id:"online-proctored-pause-title",children:"Exam Paused"}),(0,i.jsx)("p",{children:tl.message||"Return to the exam screen to continue."}),(0,i.jsx)("div",{className:"online-practice-submit-actions online-practice-exit-actions",children:tl.requiresFullscreen?(0,i.jsx)("button",{type:"button",onClick:n2,children:"Return Fullscreen"}):(0,i.jsx)("button",{type:"button",onClick:n4,children:"Resume Exam"})})]})}):null,t2?(0,i.jsx)("div",{className:"online-practice-submit-overlay",role:"presentation",children:(0,i.jsxs)("section",{className:"online-proctored-violation-overlay online-practice-submit-modal is-".concat(tv.phase),role:"dialog","aria-modal":"true","aria-labelledby":"online-proctored-violation-title",children:[(0,i.jsx)("span",{className:"online-practice-time-limit-icon","aria-hidden":"true",children:(0,i.jsx)(r.hc,{size:34,strokeWidth:2.4})}),(0,i.jsx)("h2",{id:"online-proctored-violation-title",children:"Security Violation"}),(0,i.jsx)("p",{children:tv.message}),tU&&!ts?(0,i.jsx)("p",{className:"online-proctored-violation-note",children:"Fullscreen mode is required to continue. Return to fullscreen to resume."}):null,tG>0?(0,i.jsxs)("p",{className:"online-proctored-violation-note",children:[t$?"Restricted for":"Auto action in"," ",String(tG).padStart(2,"0")," ","seconds."]}):null,(0,i.jsx)("div",{className:"online-practice-submit-actions online-practice-exit-actions",children:tU&&!ts?(0,i.jsx)("button",{type:"button",onClick:n2,children:"Return Fullscreen"}):null})]})}):null,eB?(0,i.jsx)("div",{className:"online-practice-submit-overlay",role:"presentation",children:(0,i.jsx)("section",{className:"online-practice-submit-modal is-".concat(eB.phase),role:"dialog","aria-modal":"true","aria-labelledby":"online-practice-submit-title",children:"success"===eB.phase?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"online-practice-submit-success-icon","aria-hidden":"true",children:(0,i.jsx)(r.Jl,{size:34,strokeWidth:2.4})}),(0,i.jsx)("h2",{id:"online-practice-submit-title",children:n_.success}),(0,i.jsx)("p",{children:eB.isFinal||"final"===eB.section?"Redirecting to My Assessment.":"mcq"===eB.section?"Opening the descriptive section now.":"Opening the MCQ section now."})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h2",{id:"online-practice-submit-title",children:n_.title}),(0,i.jsx)("p",{children:n_.message}),(0,i.jsxs)("div",{className:"online-practice-submit-summary","aria-label":"Submission summary",children:[(0,i.jsxs)("span",{children:[(0,i.jsx)("em",{children:"Assessment"}),(0,i.jsx)("strong",{children:(null==ex?void 0:ex.name)||(null==ex?void 0:ex.assessmentName)||"Assessment"})]}),(0,i.jsxs)("span",{children:[(0,i.jsx)("em",{children:"Exam Type"}),(0,i.jsx)("strong",{children:(null==ex?void 0:ex.examType)||"-"})]}),(0,i.jsxs)("span",{children:[(0,i.jsx)("em",{children:"Questions"}),(0,i.jsx)("strong",{children:n_.questions})]}),(0,i.jsxs)("span",{children:[(0,i.jsx)("em",{children:"Marks"}),(0,i.jsx)("strong",{children:n_.marks})]}),n_.answered?(0,i.jsxs)("span",{className:"is-wide",children:[(0,i.jsx)("em",{children:"MCQ Progress"}),(0,i.jsx)("strong",{children:n_.answered})]}):null]}),(0,i.jsxs)("div",{className:"online-practice-submit-actions",children:[(0,i.jsx)("button",{type:"button",className:"is-secondary",onClick:()=>{(null==eB?void 0:eB.phase)!=="success"&&eV(null)},children:"Cancel"}),(0,i.jsx)("button",{type:"button",onClick:nH,children:"Confirm Submit"})]})]})})}):null,e$?(0,i.jsx)("div",{className:"online-practice-submit-overlay",role:"presentation",children:(0,i.jsxs)("section",{className:"online-practice-submit-modal online-practice-exit-modal",role:"dialog","aria-modal":"true","aria-labelledby":"online-practice-exit-title",children:[(0,i.jsx)("span",{className:"online-practice-exit-warning-icon","aria-hidden":"true",children:(0,i.jsx)(r.hc,{size:32,strokeWidth:2.4})}),(0,i.jsx)("h2",{id:"online-practice-exit-title",children:"Hold on, you're not quite done!"}),(0,i.jsx)("p",{children:"This proctored exam is still in progress. Exiting now may leave the assessment incomplete. Are you sure you want to quit right now?"}),(0,i.jsxs)("div",{className:"online-practice-submit-actions online-practice-exit-actions",children:[(0,i.jsx)("button",{type:"button",onClick:()=>
1{if(!eS)return void nK();e0(!1),nJ({navigateAway:!0})},children:"Finish the Test"}),(0,i.jsx)("button",{type:"button",className:"is-danger",onClick:()=>{nK()},children:"Exit Anyway"})]})]})}):null,e5?(0,i.jsx)("div",{className:"online-practice-submit-overlay",role:"presentation",children:(0,i.jsxs)("section",{className:"online-practice-submit-modal online-proctored-sequence-modal",role:"dialog","aria-modal":"true","aria-labelledby":"online-proctored-sequence-title",children:[(0,i.jsx)("span",{className:"online-practice-time-limit-icon","aria-hidden":"true",children:(0,i.jsx)(r.M4,{size:32,strokeWidth:2.4})}),(0,i.jsx)("h2",{id:"online-proctored-sequence-title",children:"Section Time Completed"}),(0,i.jsxs)("p",{children:[e5.fromLabel," time has ended. The next section will begin shortly."]}),(0,i.jsxs)("div",{className:"online-proctored-sequence-countdown","aria-live":"polite",children:[(0,i.jsx)("strong",{children:nQ}),(0,i.jsxs)("span",{children:["Continuing to ",e5.toLabel," in ",nQ," seconds..."]})]})]})}):null,e1?(0,i.jsx)("div",{className:"online-practice-submit-overlay",role:"presentation",children:(0,i.jsxs)("section",{className:"online-practice-submit-modal online-practice-time-limit-modal is-success",role:"dialog","aria-modal":"true","aria-labelledby":"online-practice-time-limit-title",children:[(0,i.jsx)("span",{className:"online-practice-time-limit-icon","aria-hidden":"true",children:(0,i.jsx)(r.M4,{size:34,strokeWidth:2.4})}),(0,i.jsx)("h2",{id:"online-practice-time-limit-title",children:"Time Limit Reached"}),(0,i.jsx)("p",{children:"Thank you for completing the assessment. The allocated time has ended. Your test is now being automatically submitted, and this window will close shortly."})]})}):null,e7?(0,i.jsx)("div",{className:"online-practice-image-preview-overlay",role:"presentation",onClick:n0,children:(0,i.jsxs)("section",{className:"online-practice-image-preview-modal",role:"dialog","aria-modal":"true","aria-labelledby":"online-practice-image-preview-title",onClick:e=>e.stopPropagation(),children:[(0,i.jsxs)("header",{children:[(0,i.jsx)("span",{className:"online-practice-image-preview-badge",children:String.fromCharCode(65+e7.index)}),(0,i.jsx)("h2",{id:"online-practice-image-preview-title",children:"Question Image"}),(0,i.jsxs)("strong",{children:[e7.index+1," / ",e7.images.length]}),(0,i.jsx)("button",{type:"button",onClick:n0,"aria-label":"Close image preview",children:(0,i.jsx)(r.X,{size:18,strokeWidth:2.4})})]}),(0,i.jsx)("div",{className:"online-practice-image-preview-stage",children:(0,i.jsx)("img",{src:null==(t=e7.images[e7.index])?void 0:t.url,alt:(null==(n=e7.images[e7.index])?void 0:n.name)||"Question image ".concat(e7.index+1)})}),(0,i.jsxs)("footer",{children:[(0,i.jsxs)("button",{type:"button",onClick:()=>n1(-1),disabled:e7.index<=0,children:[(0,i.jsx)(r.JG,{size:16,strokeWidth:2.3}),"Previous"]}),(0,i.jsxs)("button",{type:"button",onClick:()=>n1(1),disabled:e7.index>=e7.images.length-1,children:["Next",(0,i.jsx)(r.c_,{size:16,strokeWidth:2.3})]})]})]})}):null]}):(0,i.jsx)("main",{className:"online-practice-exam-page is-proctored-exam",children:(0,i.jsxs)("section",{className:"online-practice-empty",children:[(0,i.jsx)("h1",{children:"Proctored exam only"}),(0,i.jsx)("p",{children:"This page is available only for Online Proctored Exam assessments."}),(0,i.jsxs)("button",{type:"button",onClick:nK,children:[(0,i.jsx)(r.nk,{size:16,strokeWidth:2.2}),"Back to My Assessment"]})]})}):(0,i.jsx)("main",{className:"online-practice-exam-page is-proctored-exam",children:(0,i.jsxs)("section",{className:"online-practice-empty",children:[(0,i.jsx)("h1",{children:"Assessment not found"}),(0,i.jsx)("p",{children:"Please return to My Assessment and start the assessment again."}),(0,i.jsxs)("button",{type:"button",onClick:nK,children:[(0,i.jsx)(r.nk,{size:16,strokeWidth:2.2}),"Back to My Assessment"]})]})})}},27204:(e,t,n)=>{"use strict";n.d(t,{AD:()=>w,AX:()=>O,Ao:()=>M,Co:()=>u,FW:()=>z,Hb:()=>W,Il:()=>o,JG:()=>y,Jl:()=>f,M4:()=>U,MA:()=>m,MJ:()=>G,NF:()=>p,Nm:()=>g,QE:()=>_,R2:()=>D,RI:()=>a,TB:()=>Y,Ud:()=>q,VA:()=>P,Vw:()=>C,X:()=>$,X_:()=>N,ZM:()=>E,_V:()=>T,aJ:()=>x,bd:()=>J,br:()=>v,c_:()=>
1j,dJ:()=>L,f5:()=>k,gH:()=>R,hc:()=>l,iU:()=>A,jt:()=>h,lC:()=>Z,nU:()=>Q,nk:()=>c,ox:()=>V,rX:()=>S,su:()=>K,vj:()=>H,wA:()=>d,wB:()=>B,xt:()=>F,y8:()=>I,yQ:()=>b,zW:()=>X});var i=n(95155);let s={AlertTriangle:["M12 3 22 20H2L12 3Z","M12 9v5","M12 17h.01"],AlertCircle:["M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z","M12 8v5","M12 16h.01"],Activity:["M4 12h4l2-6 4 12 2-6h4"],ArrowLeft:["M19 12H5","m11 5-7-7 7-7"],Award:["M12 15a6 6 0 1 0 0-12 6 6 0 0 0 0 12Z","m9 14-2 7 5-3 5 3-2-7"],BadgeCheck:["M12 3 15 8l5 1-3.5 4 1 6-5.5-2.5L6.5 19l1-6L4 9l5-1 3-5Z","m9 12 2 2 4-5"],Ban:["M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z","M5.6 5.6l12.8 12.8"],BatteryCharging:["M3 7h14v10H3z","M21 11v2","m11 14 2-4h-3l2-4"],BellOff:["M3 3l18 18","M6 8a6 6 0 0 1 12 0c0 7 3 7 3 9H9","M10 21h4"],CalendarClock:["M4 5h16v15H4z","M8 3v4","M16 3v4","M4 10h16","M12 14v3l2 1"],CalendarDays:["M4 5h16v15H4z","M8 3v4","M16 3v4","M4 10h16","M8 14h.01","M12 14h.01","M16 14h.01"],ChartColumnBig:["M4 19V5","M4 19h16","M8 16v-5","M12 16V8","M16 16v-7"],Check:["m5 12 4 4L19 6"],CheckCircle2:["M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z","m8 12 2.5 2.5L16 9"],ChevronDown:["m6 9 6 6 6-6"],ChevronLeft:["m15 18-6-6 6-6"],ChevronRight:["m9 18 6-6-6-6"],ChevronUp:["m18 15-6-6-6 6"],Clock3:["M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z","M12 7v5h4"],ClipboardList:["M9 5a3 3 0 0 1 6 0","M6 5h12v16H6z","M9 12h6","M9 16h4"],Download:["M12 3v12","m7 10 5 5 5-5","M5 21h14"],EyeOff:["M3 3l18 18","M10.6 10.6a2 2 0 0 0 2.8 2.8","M9.9 4.2A9.8 9.8 0 0 1 12 4c5 0 8 4 9 8a12.4 12.4 0 0 1-2.1 3.6","M6.2 6.2A12.4 12.4 0 0 0 3 12c1 4 4 8 9 8 1.5 0 2.8-.3 4-.9"],FileText:["M6 3h8l4 4v14H6z","M14 3v5h5","M9 13h6","M9 17h6"],Filter:["M4 5h16l-6 7v5l-4 2v-7L4 5Z"],Hand:["M8 13V5a2 2 0 0 1 4 0v6","M12 11V4a2 2 0 0 1 4 0v8","M16 12V7a2 2 0 0 1 4 0v7a7 7 0 0 1-14 0v-1"],Hash:["M5 9h14","M5 15h14","M10 4 8 20","M16 4l-2 16"],Image:["M5 5h14v14H5z","m5 14 4-4 2 2 3-3","M9 9h.01"],Info:["M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z","M12 11v5","M12 8h.01"],ListChecks:["m3 7 2 2 4-4","M11 7h10","m3 16 2 2 4-4","M11 16h10"],ListFilter:["M4 6h16","M7 12h10","M10 18h4"],Lock:["M7 11V8a5 5 0 0 1 10 0v3","M5 11h14v10H5z"],LogOut:["M10 17l5-5-5-5","M15 12H3","M14 5h5v14h-5"],Monitor:["M4 5h16v11H4z","M8 20h8","M12 16v4"],Moon:["M21 13a8 8 0 1 1-10-10 7 7 0 0 0 10 10Z"],Pencil:["M4 20h4L19 9l-4-4L4 16v4Z","m13-13 4 4"],Percent:["M19 5 5 19","M7 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z","M17 20a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"],Plus:["M12 5v14","M5 12h14"],RotateCcw:["M3 12a9 9 0 1 0 3-6.7","M3 4v6h6"],Settings:["M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1-2 3.5-.2-.1a1.7 1.7 0 0 0-1.9.3 1.7 1.7 0 0 0-.5 1.8V23h-4v-.5a1.7 1.7 0 0 0-.5-1.8 1.7 1.7 0 0 0-1.9-.3l-.2.1-2-3.5.1-.1A1.7 1.7 0 0 0 4.6 15 1.7 1.7 0 0 0 3 14H2v-4h1a1.7 1.7 0 0 0 1.6-1 1.7 1.7 0 0 0-.3-1.9l-.1-.1 2-3.5.2.1a1.7 1.7 0 0 0 1.9-.3A1.7 1.7 0 0 0 8.8 1.5V1h4v.5a1.7 1.7 0 0 0 .5 1.8 1.7 1.7 0 0 0 1.9.3l.2-.1 2 3.5-.1.1A1.7 1.7 0 0 0 19.4 9 1.7 1.7 0 0 0 21 10h1v4h-1a1.7 1.7 0 0 0-1.6 1Z"],ShieldCheck:["M12 3 5 6v5c0 4.5 3 8 7 10 4-2 7-5.5 7-10V6l-7-3Z","m9 12 2 2 4-5"],SlidersHorizontal:["M4 7h5","M15 7h5","M11 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z","M4 17h9","M19 17h1","M15 17a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"],Search:["M11 18a7 7 0 1 0 0-14 7 7 0 0 0 0 14Z","m20 20-3.5-3.5"],Sun:["M12 16a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z","M12 2v2","M12 20v2","M4.9 4.9l1.4 1.4","M17.7 17.7l1.4 1.4","M2 12h2","M20 12h2"],Timer:["M10 2h4","M12 14l3-3","M12 22a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z"],Trash2:["M3 6h18","M8 6V4h8v2","M6 6l1 15h10l1-15","M10 11v6","M14 11v6"],UserX:["M15 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2","M8.5 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z","m17 8 5 5","m22 8-5 5"],Users:["M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2","M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z","M22 21v-2a4 4 0 0 0-3-3.9","M16 3.1a4 4 0 0 1 0 7.8"],Wifi:["M5 13a10 10 0 0 1 14 0","M8.5 16.5a5 5 0 0 1 7 0","M12 20h.01"],X:["M18 6 6 18","m6 6 12 12"]};function r(e){return function(t){let{size:n=16,strokeWidth:r=2,...l}=t;return(0,i.jsx)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...l,children:(s[e]||s.Info).map(e=>(0,i.jsx)("path",{d:e},e))})}}let l=r("AlertTriangle"),a=r("AlertCircle"),o=r("Activity"),c=r("ArrowLeft"),d=r("Award"),u=r("BadgeCheck"),m=r("Ban"),h=r("BatteryCharging"),v=r("BellOff"),p=r("CalendarClock"),w=r("CalendarDays"),g=r("ChartColumnBig"),x=r("Check"),f=r("CheckCircle2"),b=r("ChevronDown"),y=r("ChevronLeft"),j=r("ChevronRight"),S=r("ChevronUp"),M=r("Clock3"),E=r("ClipboardList"),k=r("Download"),N=r("EyeOff"),A=r("FileText"),L=r("Filter"),q=r("Hand"),C=r("Hash"),T=r("Image"),D=r("Info"),I=r("ListChecks"),F=r("ListFilter");r("Lock");let Q=r("LogOut"),P=r("Monitor"),O=r("Moon"),R=r("Pencil"),_=r("Percent"),z=r("Plus"),W=r("RotateCcw"),B=r("Settings"),V=r("ShieldCheck"),Z=r("SlidersHorizontal"),H=r("Search"),J=r("Sun"),U=r("Timer"),Y=r("Trash2"),K=r("UserX"),X=r("Users"),G=r("Wifi"),$=r("X")}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.