@akai-mirai/report-ui 1.0.19 → 1.0.20

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.
@@ -291,7 +291,7 @@ theme.transitions = createTransitions(theme.transitions || {});
291
291
 
292
292
  export default theme;`}function m2(t){return typeof t=="number"?`${(t*100).toFixed(0)}%`:`calc((${t}) * 100%)`}const B3=t=>{if(!Number.isNaN(+t))return+t;const e=t.match(/\d*\.?\d+/g);if(!e)return 0;let r=0;for(let l=0;l<e.length;l+=1)r+=+e[l];return r};function E3(t){Object.assign(t,{alpha(e,r){const l=this||t;return l.colorSpace?`oklch(from ${e} l c h / ${typeof r=="string"?`calc(${r})`:r})`:l.vars?`rgba(${e.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:_b(e,B3(r))},lighten(e,r){const l=this||t;return l.colorSpace?`color-mix(in ${l.colorSpace}, ${e}, #fff ${m2(r)})`:Af(e,r)},darken(e,r){const l=this||t;return l.colorSpace?`color-mix(in ${l.colorSpace}, ${e}, #000 ${m2(r)})`:wf(e,r)}})}function T1(t={},...e){const{breakpoints:r,mixins:l={},spacing:d,palette:b={},transitions:p={},typography:E={},shape:k,colorSpace:Y,...N}=t;if(t.vars&&t.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":uh(20));const F=j1({...b,colorSpace:Y}),H=Ub(t);let j=Zs(H,{mixins:d3(H.breakpoints,l),palette:F,shadows:y3.slice(),typography:g3(F,E),transitions:A3(p),zIndex:{...T3}});if(j=Zs(j,N),j=e.reduce((U,L)=>Zs(U,L),j),process.env.NODE_ENV!=="production"){const U=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],L=(ae,Te)=>{let We;for(We in ae){const Ge=ae[We];if(U.includes(We)&&Object.keys(Ge).length>0){if(process.env.NODE_ENV!=="production"){const Fe=K1("",We);console.error([`MUI: The \`${Te}\` component increases the CSS specificity of the \`${We}\` internal state.`,"You can not override it like this: ",JSON.stringify(ae,null,2),"",`Instead, you need to use the '&.${Fe}' syntax:`,JSON.stringify({root:{[`&.${Fe}`]:Ge}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
293
293
  `))}ae[We]={}}}};Object.keys(j.components).forEach(ae=>{const Te=j.components[ae].styleOverrides;Te&&ae.startsWith("Mui")&&L(Te,ae)})}return j.unstable_sxConfig={...pf,...N?.unstable_sxConfig},j.unstable_sx=function(L){return jh({sx:L,theme:this})},j.toRuntimeSource=rv,E3(j),j}function k3(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const S3=[...Array(25)].map((t,e)=>{if(e===0)return"none";const r=k3(e);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function nv(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function av(t){return t==="dark"?S3:[]}function D3(t){const{palette:e={mode:"light"},opacity:r,overlays:l,colorSpace:d,...b}=t,p=j1({...e,colorSpace:d});return{palette:p,opacity:{...nv(p.mode),...r},overlays:l||av(p.mode),...b}}function M3(t){return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!t[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const F3=t=>[...[...Array(25)].map((e,r)=>`--${t?`${t}-`:""}overlays-${r}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],R3=t=>(e,r)=>{const l=t.rootSelector||":root",d=t.colorSchemeSelector;let b=d;if(d==="class"&&(b=".%s"),d==="data"&&(b="[data-%s]"),d?.startsWith("data-")&&!d.includes("%s")&&(b=`[${d}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const p={};return F3(t.cssVarPrefix).forEach(E=>{p[E]=r[E],delete r[E]}),b==="media"?{[l]:r,"@media (prefers-color-scheme: dark)":{[l]:p}}:b?{[b.replace("%s",e)]:p,[`${l}, ${b.replace("%s",e)}`]:r}:{[l]:{...r,...p}}}if(b&&b!=="media")return`${l}, ${b.replace("%s",String(e))}`}else if(e){if(b==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[l]:r}};if(b)return b.replace("%s",String(e))}return l};function z3(t,e){e.forEach(r=>{t[r]||(t[r]={})})}function Ce(t,e,r){!t[e]&&r&&(t[e]=r)}function ud(t){return typeof t!="string"||!t.startsWith("hsl")?t:qb(t)}function zc(t,e){`${e}Channel`in t||(t[`${e}Channel`]=sd(ud(t[e]),`MUI: Can't create \`palette.${e}Channel\` because \`palette.${e}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
294
- To suppress this warning, you need to explicitly provide the \`palette.${e}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function N3(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const tc=t=>{try{return t()}catch{}},W3=(t="mui")=>_y(t);function a1(t,e,r,l,d){if(!r)return;r=r===!0?{}:r;const b=d==="dark"?"dark":"light";if(!l){e[d]=D3({...r,palette:{mode:b,...r?.palette},colorSpace:t});return}const{palette:p,...E}=T1({...l,palette:{mode:b,...r?.palette},colorSpace:t});return e[d]={...r,palette:p,opacity:{...nv(b),...r?.opacity},overlays:r?.overlays||av(b)},E}function Y3(t={},...e){const{colorSchemes:r={light:!0},defaultColorScheme:l,disableCssColorScheme:d=!1,cssVarPrefix:b="mui",nativeColor:p=!1,shouldSkipGeneratingVar:E=M3,colorSchemeSelector:k=r.light&&r.dark?"media":void 0,rootSelector:Y=":root",...N}=t,F=Object.keys(r)[0],H=l||(r.light&&F!=="light"?"light":F),j=W3(b),{[H]:U,light:L,dark:ae,...Te}=r,We={...Te};let Ge=U;if((H==="dark"&&!("dark"in r)||H==="light"&&!("light"in r))&&(Ge=!0),!Ge)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${H}\` option is either missing or invalid.`:uh(21,H));let Fe;p&&(Fe="oklch");const me=a1(Fe,We,Ge,N,H);L&&!We.light&&a1(Fe,We,L,void 0,"light"),ae&&!We.dark&&a1(Fe,We,ae,void 0,"dark");let pe={defaultColorScheme:H,...me,cssVarPrefix:b,colorSchemeSelector:k,rootSelector:Y,getCssVar:j,colorSchemes:We,font:{...h3(me.typography),...me.font},spacing:N3(N.spacing)};Object.keys(pe.colorSchemes).forEach(Dt=>{const K=pe.colorSchemes[Dt].palette,$e=Se=>{const he=Se.split("-"),Re=he[1],Br=he[2];return j(Se,K[Re][Br])};K.mode==="light"&&(Ce(K.common,"background","#fff"),Ce(K.common,"onBackground","#000")),K.mode==="dark"&&(Ce(K.common,"background","#000"),Ce(K.common,"onBackground","#fff"));function Me(Se,he,Re){if(Fe){let Br;return Se===Ch&&(Br=`transparent ${((1-Re)*100).toFixed(0)}%`),Se===nn&&(Br=`#000 ${(Re*100).toFixed(0)}%`),Se===an&&(Br=`#fff ${(Re*100).toFixed(0)}%`),`color-mix(in ${Fe}, ${he}, ${Br})`}return Se(he,Re)}if(z3(K,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),K.mode==="light"){Ce(K.Alert,"errorColor",Me(nn,K.error.light,.6)),Ce(K.Alert,"infoColor",Me(nn,K.info.light,.6)),Ce(K.Alert,"successColor",Me(nn,K.success.light,.6)),Ce(K.Alert,"warningColor",Me(nn,K.warning.light,.6)),Ce(K.Alert,"errorFilledBg",$e("palette-error-main")),Ce(K.Alert,"infoFilledBg",$e("palette-info-main")),Ce(K.Alert,"successFilledBg",$e("palette-success-main")),Ce(K.Alert,"warningFilledBg",$e("palette-warning-main")),Ce(K.Alert,"errorFilledColor",tc(()=>K.getContrastText(K.error.main))),Ce(K.Alert,"infoFilledColor",tc(()=>K.getContrastText(K.info.main))),Ce(K.Alert,"successFilledColor",tc(()=>K.getContrastText(K.success.main))),Ce(K.Alert,"warningFilledColor",tc(()=>K.getContrastText(K.warning.main))),Ce(K.Alert,"errorStandardBg",Me(an,K.error.light,.9)),Ce(K.Alert,"infoStandardBg",Me(an,K.info.light,.9)),Ce(K.Alert,"successStandardBg",Me(an,K.success.light,.9)),Ce(K.Alert,"warningStandardBg",Me(an,K.warning.light,.9)),Ce(K.Alert,"errorIconColor",$e("palette-error-main")),Ce(K.Alert,"infoIconColor",$e("palette-info-main")),Ce(K.Alert,"successIconColor",$e("palette-success-main")),Ce(K.Alert,"warningIconColor",$e("palette-warning-main")),Ce(K.AppBar,"defaultBg",$e("palette-grey-100")),Ce(K.Avatar,"defaultBg",$e("palette-grey-400")),Ce(K.Button,"inheritContainedBg",$e("palette-grey-300")),Ce(K.Button,"inheritContainedHoverBg",$e("palette-grey-A100")),Ce(K.Chip,"defaultBorder",$e("palette-grey-400")),Ce(K.Chip,"defaultAvatarColor",$e("palette-grey-700")),Ce(K.Chip,"defaultIconColor",$e("palette-grey-700")),Ce(K.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Ce(K.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Ce(K.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Ce(K.LinearProgress,"primaryBg",Me(an,K.primary.main,.62)),Ce(K.LinearProgress,"secondaryBg",Me(an,K.secondary.main,.62)),Ce(K.LinearProgress,"errorBg",Me(an,K.error.main,.62)),Ce(K.LinearProgress,"infoBg",Me(an,K.info.main,.62)),Ce(K.LinearProgress,"successBg",Me(an,K.success.main,.62)),Ce(K.LinearProgress,"warningBg",Me(an,K.warning.main,.62)),Ce(K.Skeleton,"bg",Fe?Me(Ch,K.text.primary,.11):`rgba(${$e("palette-text-primaryChannel")} / 0.11)`),Ce(K.Slider,"primaryTrack",Me(an,K.primary.main,.62)),Ce(K.Slider,"secondaryTrack",Me(an,K.secondary.main,.62)),Ce(K.Slider,"errorTrack",Me(an,K.error.main,.62)),Ce(K.Slider,"infoTrack",Me(an,K.info.main,.62)),Ce(K.Slider,"successTrack",Me(an,K.success.main,.62)),Ce(K.Slider,"warningTrack",Me(an,K.warning.main,.62));const Se=Fe?Me(nn,K.background.default,.6825):Pd(K.background.default,.8);Ce(K.SnackbarContent,"bg",Se),Ce(K.SnackbarContent,"color",tc(()=>Fe?A1.text.primary:K.getContrastText(Se))),Ce(K.SpeedDialAction,"fabHoverBg",Pd(K.background.paper,.15)),Ce(K.StepConnector,"border",$e("palette-grey-400")),Ce(K.StepContent,"border",$e("palette-grey-400")),Ce(K.Switch,"defaultColor",$e("palette-common-white")),Ce(K.Switch,"defaultDisabledColor",$e("palette-grey-100")),Ce(K.Switch,"primaryDisabledColor",Me(an,K.primary.main,.62)),Ce(K.Switch,"secondaryDisabledColor",Me(an,K.secondary.main,.62)),Ce(K.Switch,"errorDisabledColor",Me(an,K.error.main,.62)),Ce(K.Switch,"infoDisabledColor",Me(an,K.info.main,.62)),Ce(K.Switch,"successDisabledColor",Me(an,K.success.main,.62)),Ce(K.Switch,"warningDisabledColor",Me(an,K.warning.main,.62)),Ce(K.TableCell,"border",Me(an,Me(Ch,K.divider,1),.88)),Ce(K.Tooltip,"bg",Me(Ch,K.grey[700],.92))}if(K.mode==="dark"){Ce(K.Alert,"errorColor",Me(an,K.error.light,.6)),Ce(K.Alert,"infoColor",Me(an,K.info.light,.6)),Ce(K.Alert,"successColor",Me(an,K.success.light,.6)),Ce(K.Alert,"warningColor",Me(an,K.warning.light,.6)),Ce(K.Alert,"errorFilledBg",$e("palette-error-dark")),Ce(K.Alert,"infoFilledBg",$e("palette-info-dark")),Ce(K.Alert,"successFilledBg",$e("palette-success-dark")),Ce(K.Alert,"warningFilledBg",$e("palette-warning-dark")),Ce(K.Alert,"errorFilledColor",tc(()=>K.getContrastText(K.error.dark))),Ce(K.Alert,"infoFilledColor",tc(()=>K.getContrastText(K.info.dark))),Ce(K.Alert,"successFilledColor",tc(()=>K.getContrastText(K.success.dark))),Ce(K.Alert,"warningFilledColor",tc(()=>K.getContrastText(K.warning.dark))),Ce(K.Alert,"errorStandardBg",Me(nn,K.error.light,.9)),Ce(K.Alert,"infoStandardBg",Me(nn,K.info.light,.9)),Ce(K.Alert,"successStandardBg",Me(nn,K.success.light,.9)),Ce(K.Alert,"warningStandardBg",Me(nn,K.warning.light,.9)),Ce(K.Alert,"errorIconColor",$e("palette-error-main")),Ce(K.Alert,"infoIconColor",$e("palette-info-main")),Ce(K.Alert,"successIconColor",$e("palette-success-main")),Ce(K.Alert,"warningIconColor",$e("palette-warning-main")),Ce(K.AppBar,"defaultBg",$e("palette-grey-900")),Ce(K.AppBar,"darkBg",$e("palette-background-paper")),Ce(K.AppBar,"darkColor",$e("palette-text-primary")),Ce(K.Avatar,"defaultBg",$e("palette-grey-600")),Ce(K.Button,"inheritContainedBg",$e("palette-grey-800")),Ce(K.Button,"inheritContainedHoverBg",$e("palette-grey-700")),Ce(K.Chip,"defaultBorder",$e("palette-grey-700")),Ce(K.Chip,"defaultAvatarColor",$e("palette-grey-300")),Ce(K.Chip,"defaultIconColor",$e("palette-grey-300")),Ce(K.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Ce(K.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Ce(K.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Ce(K.LinearProgress,"primaryBg",Me(nn,K.primary.main,.5)),Ce(K.LinearProgress,"secondaryBg",Me(nn,K.secondary.main,.5)),Ce(K.LinearProgress,"errorBg",Me(nn,K.error.main,.5)),Ce(K.LinearProgress,"infoBg",Me(nn,K.info.main,.5)),Ce(K.LinearProgress,"successBg",Me(nn,K.success.main,.5)),Ce(K.LinearProgress,"warningBg",Me(nn,K.warning.main,.5)),Ce(K.Skeleton,"bg",Fe?Me(Ch,K.text.primary,.13):`rgba(${$e("palette-text-primaryChannel")} / 0.13)`),Ce(K.Slider,"primaryTrack",Me(nn,K.primary.main,.5)),Ce(K.Slider,"secondaryTrack",Me(nn,K.secondary.main,.5)),Ce(K.Slider,"errorTrack",Me(nn,K.error.main,.5)),Ce(K.Slider,"infoTrack",Me(nn,K.info.main,.5)),Ce(K.Slider,"successTrack",Me(nn,K.success.main,.5)),Ce(K.Slider,"warningTrack",Me(nn,K.warning.main,.5));const Se=Fe?Me(an,K.background.default,.985):Pd(K.background.default,.98);Ce(K.SnackbarContent,"bg",Se),Ce(K.SnackbarContent,"color",tc(()=>Fe?ev.text.primary:K.getContrastText(Se))),Ce(K.SpeedDialAction,"fabHoverBg",Pd(K.background.paper,.15)),Ce(K.StepConnector,"border",$e("palette-grey-600")),Ce(K.StepContent,"border",$e("palette-grey-600")),Ce(K.Switch,"defaultColor",$e("palette-grey-300")),Ce(K.Switch,"defaultDisabledColor",$e("palette-grey-600")),Ce(K.Switch,"primaryDisabledColor",Me(nn,K.primary.main,.55)),Ce(K.Switch,"secondaryDisabledColor",Me(nn,K.secondary.main,.55)),Ce(K.Switch,"errorDisabledColor",Me(nn,K.error.main,.55)),Ce(K.Switch,"infoDisabledColor",Me(nn,K.info.main,.55)),Ce(K.Switch,"successDisabledColor",Me(nn,K.success.main,.55)),Ce(K.Switch,"warningDisabledColor",Me(nn,K.warning.main,.55)),Ce(K.TableCell,"border",Me(nn,Me(Ch,K.divider,1),.68)),Ce(K.Tooltip,"bg",Me(Ch,K.grey[700],.92))}zc(K.background,"default"),zc(K.background,"paper"),zc(K.common,"background"),zc(K.common,"onBackground"),zc(K,"divider"),Object.keys(K).forEach(Se=>{const he=K[Se];Se!=="tonalOffset"&&he&&typeof he=="object"&&(he.main&&Ce(K[Se],"mainChannel",sd(ud(he.main))),he.light&&Ce(K[Se],"lightChannel",sd(ud(he.light))),he.dark&&Ce(K[Se],"darkChannel",sd(ud(he.dark))),he.contrastText&&Ce(K[Se],"contrastTextChannel",sd(ud(he.contrastText))),Se==="text"&&(zc(K[Se],"primary"),zc(K[Se],"secondary")),Se==="action"&&(he.active&&zc(K[Se],"active"),he.selected&&zc(K[Se],"selected")))})}),pe=e.reduce((Dt,K)=>Zs(Dt,K),pe);const et={prefix:b,disableCssColorScheme:d,shouldSkipGeneratingVar:E,getSelector:R3(pe),enableContrastVars:p},{vars:lt,generateThemeVars:Ke,generateStyleSheets:pt}=t3(pe,et);return pe.vars=lt,Object.entries(pe.colorSchemes[pe.defaultColorScheme]).forEach(([Dt,K])=>{pe[Dt]=K}),pe.generateThemeVars=Ke,pe.generateStyleSheets=pt,pe.generateSpacing=function(){return Xb(N.spacing,U1(this))},pe.getColorSchemeSelector=r3(k),pe.spacing=pe.generateSpacing(),pe.shouldSkipGeneratingVar=E,pe.unstable_sxConfig={...pf,...N?.unstable_sxConfig},pe.unstable_sx=function(K){return jh({sx:K,theme:this})},pe.toRuntimeSource=rv,pe}function y2(t,e,r){t.colorSchemes&&r&&(t.colorSchemes[e]={...r!==!0&&r,palette:j1({...r===!0?{}:r.palette,mode:e})})}function iv(t={},...e){const{palette:r,cssVariables:l=!1,colorSchemes:d=r?void 0:{light:!0},defaultColorScheme:b=r?.mode,...p}=t,E=b||"light",k=d?.[E],Y={...d,...r?{[E]:{...typeof k!="boolean"&&k,palette:r}}:void 0};if(l===!1){if(!("colorSchemes"in t))return T1(t,...e);let N=r;"palette"in t||Y[E]&&(Y[E]!==!0?N=Y[E].palette:E==="dark"&&(N={mode:"dark"}));const F=T1({...t,palette:N},...e);return F.defaultColorScheme=E,F.colorSchemes=Y,F.palette.mode==="light"&&(F.colorSchemes.light={...Y.light!==!0&&Y.light,palette:F.palette},y2(F,"dark",Y.dark)),F.palette.mode==="dark"&&(F.colorSchemes.dark={...Y.dark!==!0&&Y.dark,palette:F.palette},y2(F,"light",Y.light)),F}return!r&&!("light"in Y)&&E==="light"&&(Y.light=!0),Y3({...p,colorSchemes:Y,defaultColorScheme:E,...typeof l!="boolean"&&l},...e)}const P3=iv(),L3="$$material";function G3(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const O3=t=>G3(t)&&t!=="classes",I3=Gy({themeId:L3,defaultTheme:P3,rootShouldForwardProp:O3}),H3=qy;process.env.NODE_ENV!=="production"&&(Xr.node,Xr.object.isRequired);function Z3(t){return jy(t)}function Q3(t){return K1("MuiSvgIcon",t)}Ny("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const X3=t=>{const{color:e,fontSize:r,classes:l}=t,d={root:["root",e!=="inherit"&&`color${Mh(e)}`,`fontSize${Mh(r)}`]};return Bm(d,Q3,l)},U3=I3("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="inherit"&&e[`color${Mh(r.color)}`],e[`fontSize${Mh(r.fontSize)}`]]}})(H3(({theme:t})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:t.transitions?.create?.("fill",{duration:(t.vars??t).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:t.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:t.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,e])=>e&&e.main).map(([e])=>({props:{color:e},style:{color:(t.vars??t).palette?.[e]?.main}})),{props:{color:"action"},style:{color:(t.vars??t).palette?.action?.active}},{props:{color:"disabled"},style:{color:(t.vars??t).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),jd=ii.forwardRef(function(e,r){const l=Z3({props:e,name:"MuiSvgIcon"}),{children:d,className:b,color:p="inherit",component:E="svg",fontSize:k="medium",htmlColor:Y,inheritViewBox:N=!1,titleAccess:F,viewBox:H="0 0 24 24",...j}=l,U=ii.isValidElement(d)&&d.type==="svg",L={...l,color:p,component:E,fontSize:k,instanceFontSize:e.fontSize,inheritViewBox:N,viewBox:H,hasSvgAsChild:U},ae={};N||(ae.viewBox=H);const Te=X3(L);return m.jsxs(U3,{as:E,className:Ib(Te.root,b),focusable:"false",color:Y,"aria-hidden":F?void 0:!0,role:F?"img":void 0,ref:r,...ae,...j,...U&&d.props,ownerState:L,children:[U?d.props.children:d,F?m.jsx("title",{children:F}):null]})});process.env.NODE_ENV!=="production"&&(jd.propTypes={children:Xr.node,classes:Xr.object,className:Xr.string,color:Xr.oneOfType([Xr.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),Xr.string]),component:Xr.elementType,fontSize:Xr.oneOfType([Xr.oneOf(["inherit","large","medium","small"]),Xr.string]),htmlColor:Xr.string,inheritViewBox:Xr.bool,shapeRendering:Xr.string,sx:Xr.oneOfType([Xr.arrayOf(Xr.oneOfType([Xr.func,Xr.object,Xr.bool])),Xr.func,Xr.object]),titleAccess:Xr.string,viewBox:Xr.string});jd.muiName="SvgIcon";function J3(t,e){function r(l,d){return m.jsx(jd,{"data-testid":process.env.NODE_ENV!=="production"?`${e}Icon`:void 0,ref:d,...l,children:t})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${e}Icon`),r.muiName=jd.muiName,ii.memo(ii.forwardRef(r))}const K3=J3(m.jsx("path",{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2m2 10H3v4c0 1.1.9 2 2 2h4v-2H5zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2"}),"CropFree"),p2=14,rh=1.5,V3={topLeft:{borderTop:rh,borderRight:0,borderBottom:0,borderLeft:rh},topRight:{borderTop:rh,borderRight:rh,borderBottom:0,borderLeft:0},bottomLeft:{borderTop:0,borderRight:0,borderBottom:rh,borderLeft:rh},bottomRight:{borderTop:0,borderRight:rh,borderBottom:rh,borderLeft:0}},Ld=({corner:t="topLeft"})=>m.jsx(x.Box,{sx:{width:p2,height:p2,boxSizing:"border-box",borderColor:"grey.700",borderStyle:"solid",borderRadius:0,...V3[t]}}),j3="зона сканирования",q3=()=>m.jsxs(x.Paper,{variant:"outlined",elevation:0,sx:{display:"inline-flex",alignItems:"center",gap:.5,px:.75,py:.35,borderRadius:1,borderColor:"grey.300",bgcolor:"grey.50"},children:[m.jsx(K3,{sx:{fontSize:12,color:"grey.600"}}),m.jsx(x.Typography,{variant:"caption",sx:{fontSize:"0.65rem",color:"grey.600",letterSpacing:"0.02em",lineHeight:1.2},children:j3})]}),x2=5,i1=25,qd=20,w2=12,Qh=({filled:t=!1})=>m.jsx(x.Box,{sx:{width:qd,height:qd,border:"1px solid #000",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:m.jsx(x.Box,{sx:{width:w2,height:w2,borderRadius:"50%",border:"1px solid #000",bgcolor:t?"#000":"transparent"}})}),lv="ABCDEFGHIJ",_3={kk:"Сұрақ",ru:"Вопрос",en:"Question"},$3={kk:"б.",ru:"б.",en:"pt."};function e5(t,e){return{oneCorrect:{kk:"бір нұсқа",ru:"один вариант",en:"single choice"},manyCorrect:{kk:"бірнеше нұсқа",ru:"множественный выбор",en:"multiple choice"},boolean:{kk:"Истина / Жалған",ru:"Истина / Ложь",en:"True / False"},shortAnswer:{kk:"қысқа жауап",ru:"Краткий ответ",en:"Short answer"},longAnswer:{kk:"толық жауап",ru:"Развёрнутый ответ",en:"Long answer"},matching:{kk:"сәйкестендіру",ru:"Соответствие",en:"Matching"},ordering:{kk:"реттеу",ru:"Упорядочивание",en:"Ordering"},fillInTheBlank:{kk:"бос орынды толтыру",ru:"Вставка пропуска",en:"Fill in the blank"},numeric:{kk:"сандық",ru:"Числовой ответ",en:"Numeric"},summary:{kk:"қорытынды",ru:"Сведение",en:"Summary"}}[t]?.[e]??t}function A2(t){if(!t)return"";try{return Cb(t).trim()||t}catch{return t}}const t5=({q:t,index:e,lang:r})=>{const l=e+1,d=t.point!=null?` (${t.point} ${$3[r]??"б."})`:"",b=e5(t.questionTypeId,r),p=_3[r]??"Вопрос",E=A2(t.title),k=t.questionTypeId==="boolean",Y=t.questionTypeId==="oneCorrect"||t.questionTypeId==="manyCorrect"||t.questionTypeId==="boolean",N=Y?t.options:[],F=t.imageUrls??[];return m.jsxs(x.Box,{sx:{mb:1.75,breakInside:"avoid",textAlign:"left"},children:[m.jsxs(x.Typography,{variant:"body2",component:"p",sx:{mb:.75,color:"text.secondary",fontSize:"0.8125rem",fontFamily:"inherit"},children:[p," ",l,d," | ",b]}),m.jsx(x.Typography,{variant:"body1",component:"div",sx:{whiteSpace:"pre-wrap",fontSize:"1rem",lineHeight:1.5,"& p":{margin:0}},dangerouslySetInnerHTML:{__html:E}}),F.length>0&&m.jsx(x.Box,{sx:{mt:1,textAlign:"left"},children:F.map((H,j)=>m.jsx("img",{src:H,alt:"",style:{maxWidth:"100%",height:"auto",maxHeight:200,objectFit:"contain"}},j))}),k&&N.length===0&&m.jsx(x.Typography,{variant:"body2",sx:{mt:1,fontSize:"0.9375rem"},children:"И. Истина    Л. Ложь"}),Y&&!k&&N.length>0&&m.jsx(x.Box,{component:"ol",sx:{pl:2.5,mt:1,listStyle:"none",counterReset:"opt",textAlign:"left"},children:N.map((H,j)=>m.jsx(x.Typography,{component:"li",variant:"body2",sx:{counterIncrement:"opt",fontSize:"0.9375rem",lineHeight:1.5,mb:.25,"&::before":{content:`"${lv[j]||String(j+1)}. "`,fontWeight:600}},dangerouslySetInnerHTML:{__html:A2(H.text)}},H.id))}),(t.questionTypeId==="shortAnswer"||t.questionTypeId==="longAnswer"||t.questionTypeId==="numeric"||t.questionTypeId==="fillInTheBlank")&&m.jsx(x.Typography,{variant:"body2",color:"text.secondary",sx:{mt:1,fontSize:"0.9375rem"},children:"Ответ: _______________________"})]})},r5=({data:t,startIndex:e,endIndex:r,pageNum:l,totalPages:d})=>{const b=t.questions.slice(e,r),p=ii.default.useMemo(()=>ov(b),[b]);return m.jsxs(x.Box,{sx:{width:"100%",maxWidth:Yb,minHeight:Pb,margin:0,p:Wb,boxSizing:"border-box",position:"relative",backgroundColor:"#fff",textAlign:"left"},children:[m.jsxs(x.Box,{sx:{position:"absolute",top:6,left:6,display:"flex",alignItems:"center",gap:.5},children:[m.jsx(Ld,{corner:"topLeft"}),m.jsx(q3,{})]}),m.jsx(x.Box,{sx:{position:"absolute",top:6,right:6},children:m.jsx(Ld,{corner:"topRight"})}),m.jsx(x.Box,{sx:{position:"absolute",bottom:6,left:6},children:m.jsx(Ld,{corner:"bottomLeft"})}),m.jsx(x.Box,{sx:{position:"absolute",bottom:6,right:6},children:m.jsx(Ld,{corner:"bottomRight"})}),m.jsxs(x.Stack,{spacing:1.5,sx:{pt:.5},children:[m.jsxs(x.Box,{children:[m.jsx(x.Typography,{variant:"h6",fontWeight:700,sx:{fontSize:"1.25rem",letterSpacing:"0.02em"},children:t.title}),m.jsx(x.Divider,{sx:{mt:1.5,borderColor:"#000",borderWidth:1}})]}),m.jsxs(x.Stack,{direction:"row",alignItems:"center",spacing:1,children:[m.jsx(x.Typography,{variant:"body2",sx:{fontWeight:500,fontSize:"0.875rem",flexShrink:0},children:"Имя и фамилия"}),m.jsx(x.Box,{sx:{flex:1,minWidth:0,borderBottom:"1px solid #000",height:28,alignSelf:"stretch"}})]}),m.jsxs(x.Box,{sx:{py:.5},children:[m.jsx(x.Typography,{variant:"body2",sx:{fontSize:"0.8125rem",lineHeight:1.5,color:"text.primary",mb:1.5},children:"Отметьте ответы, полностью закрасив кружок внутри клетки. При ошибке закрасьте целиком клетку неверного ответа, затем отметьте кружок правильного ответа."}),m.jsxs(x.Stack,{direction:"row",spacing:3,flexWrap:"wrap",useFlexGap:!0,children:[m.jsxs(x.Stack,{direction:"row",alignItems:"center",spacing:.75,children:[m.jsx(x.Typography,{variant:"caption",sx:{fontSize:"0.7rem",whiteSpace:"nowrap"},children:"Пример: отмечен ответ В"}),["A","B","C","D"].map(E=>m.jsxs(x.Stack,{direction:"row",alignItems:"center",spacing:.25,children:[m.jsx(Qh,{filled:E==="B"}),m.jsx(x.Typography,{variant:"caption",sx:{fontSize:"0.7rem"},children:E})]},E))]}),m.jsxs(x.Stack,{direction:"row",alignItems:"center",spacing:.75,children:[m.jsx(x.Typography,{variant:"caption",sx:{fontSize:"0.7rem",whiteSpace:"nowrap"},children:"Пример: исправление (было В, стало D)"}),m.jsxs(x.Stack,{direction:"row",alignItems:"center",spacing:.25,children:[m.jsx(x.Box,{sx:{width:qd,height:qd,border:"1px solid #000",bgcolor:"#000",flexShrink:0}}),m.jsx(x.Typography,{variant:"caption",sx:{fontSize:"0.7rem"},children:"В"})]}),["C"].map(E=>m.jsxs(x.Stack,{direction:"row",alignItems:"center",spacing:.25,children:[m.jsx(Qh,{}),m.jsx(x.Typography,{variant:"caption",sx:{fontSize:"0.7rem"},children:E})]},E)),m.jsxs(x.Stack,{direction:"row",alignItems:"center",spacing:.25,children:[m.jsx(Qh,{filled:!0}),m.jsx(x.Typography,{variant:"caption",sx:{fontSize:"0.7rem"},children:"D"})]})]})]})]}),m.jsx(x.Divider,{sx:{borderColor:"#000"}}),p.map((E,k)=>{let Y=e;for(let F=0;F<k;F++)Y+=p[F].questions.length;const N=E.questions;return m.jsxs(x.Box,{sx:{mb:k<p.length-1?1:0},children:[E.subjectTitle!=null&&m.jsx(x.Typography,{variant:"subtitle2",sx:{fontSize:"0.8rem",fontWeight:700,color:"grey.800",letterSpacing:"0.02em",py:.5,borderBottom:"1px solid",borderColor:"grey.300",mb:.5},children:E.subjectTitle}),m.jsx(x.TableContainer,{sx:{flex:1,overflow:"hidden"},children:m.jsxs(x.Table,{size:"small",sx:{borderCollapse:"collapse"},children:[m.jsx(x.TableHead,{children:m.jsxs(x.TableRow,{children:[m.jsx(x.TableCell,{align:"center",sx:{width:48,border:"1px solid #000",fontWeight:700,fontSize:"0.75rem",py:.75,bgcolor:"grey.100"},children:"№"}),m.jsx(x.TableCell,{sx:{border:"1px solid #000",fontWeight:700,fontSize:"0.75rem",py:.75,bgcolor:"grey.100"},children:"Варианты ответов (заполните кружок)"})]})}),m.jsx(x.TableBody,{children:N.map((F,H)=>{const j=Y+H+1,U=F.questionTypeId==="boolean",L=F.questionTypeId==="oneCorrect"||F.questionTypeId==="manyCorrect",ae=U||L;return m.jsxs(x.TableRow,{children:[m.jsx(x.TableCell,{align:"center",sx:{width:48,border:"1px solid #000",fontWeight:600,fontSize:"0.8125rem",py:.75},children:j}),m.jsxs(x.TableCell,{sx:{border:"1px solid #000",py:.75},children:[U&&m.jsxs(x.Stack,{direction:"row",alignItems:"center",spacing:2,children:[m.jsxs(x.Stack,{direction:"row",alignItems:"center",spacing:.5,children:[m.jsx(Qh,{}),m.jsx(x.Typography,{variant:"body2",sx:{fontSize:"0.8125rem"},children:"И"})]}),m.jsxs(x.Stack,{direction:"row",alignItems:"center",spacing:.5,children:[m.jsx(Qh,{}),m.jsx(x.Typography,{variant:"body2",sx:{fontSize:"0.8125rem"},children:"Л"})]})]}),L&&F.options.length>0&&m.jsx(x.Stack,{direction:"row",alignItems:"center",spacing:1.5,flexWrap:"wrap",children:F.options.slice(0,6).map((Te,We)=>m.jsxs(x.Stack,{direction:"row",alignItems:"center",spacing:.5,children:[m.jsx(Qh,{}),m.jsx(x.Typography,{variant:"body2",sx:{fontSize:"0.8125rem"},children:lv[We]})]},We))}),!ae&&m.jsx(x.Box,{sx:{borderBottom:"1px solid #000",minHeight:20,width:"70%"}})]})]},F.id)})})]})})]},E.subjectTitle??`no-subject-${k}`)}),m.jsx(x.Divider,{sx:{borderColor:"#000"}}),m.jsxs(x.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{minHeight:32},children:[m.jsx(x.Typography,{variant:"caption",sx:{fontSize:"0.65rem",color:"grey.500",letterSpacing:"0.02em"},children:"зона сканирования"}),m.jsxs(x.Typography,{variant:"caption",sx:{fontSize:"0.75rem",fontWeight:500},children:["Страница ",l," из ",d]})]})]})]})};function ov(t){if(!t.some(d=>d.subjectTitle!=null&&d.subjectTitle.trim()!==""))return[{subjectTitle:null,questions:t}];const r=[],l=new Map;for(const d of t){const b=d.subjectTitle!=null&&d.subjectTitle.trim()!==""?d.subjectTitle.trim():null;l.has(b)||(l.set(b,[]),r.push(b)),l.get(b).push(d)}return r.map(d=>({subjectTitle:d,questions:l.get(d)}))}const sv=({data:t,options:e={}})=>{const r=e.language||t.language||t.locale||"ru",l=t.questions,d=ii.default.useMemo(()=>ov(l),[l]),b=d.length>1,p=Math.ceil(l.length/i1);let E=0;const k=[];for(const N of d){const{subjectTitle:F,questions:H}=N;for(let j=0;j<H.length;j+=x2){const U=H.slice(j,j+x2),L=E;E+=U.length,k.push({key:`q-${F??"all"}-${j}`,isFirstInGroup:j===0,subjectTitle:F,chunk:U,startIndex:L})}}const Y=k.length;return m.jsxs(x.Box,{sx:{width:"100%",maxWidth:"210mm",margin:"0 auto",bgcolor:"#fff",textAlign:"left"},children:[k.map((N,F)=>m.jsxs(x.Box,{sx:{width:"100%",minHeight:"100vh",p:Wb,boxSizing:"border-box",breakAfter:"page",pageBreakAfter:"always",...N.isFirstInGroup&&F>0?{breakBefore:"page",pageBreakBefore:"always"}:{},backgroundColor:"#fff",position:"relative",textAlign:"left"},children:[m.jsxs(x.Box,{sx:{mb:1.5,pb:1,borderBottom:"1px solid #e0e0e0",textAlign:"left"},children:[m.jsx(x.Typography,{variant:"h5",fontWeight:700,sx:{fontSize:"1.2rem",fontFamily:"inherit"},children:t.title}),m.jsx(x.Typography,{variant:"body2",color:"text.secondary",sx:{mt:.25,fontSize:"0.8125rem"},children:d.map(H=>`${H.subjectTitle??"Без предмета"}: ${H.questions.length}`).join(" · ")})]}),b&&N.isFirstInGroup&&N.subjectTitle&&m.jsx(x.Box,{sx:{mt:.5,mb:1.25,py:.75,px:1.25,bgcolor:"grey.100",borderLeft:"4px solid",borderColor:"primary.main",borderRadius:0,textAlign:"left"},children:m.jsx(x.Typography,{variant:"subtitle1",fontWeight:700,sx:{fontSize:"1rem",letterSpacing:"0.02em",color:"text.primary"},children:N.subjectTitle})}),N.chunk.map((H,j)=>m.jsx(t5,{q:H,index:N.startIndex+j,lang:r},H.id)),m.jsxs(x.Typography,{variant:"caption",color:"text.secondary",sx:{position:"absolute",bottom:8,right:14},children:["Страница ",F+1,"/",Y]})]},N.key)),Array.from({length:p}).map((N,F)=>m.jsx(x.Box,{sx:{breakBefore:"page",pageBreakBefore:"always",position:"relative",width:Yb,minHeight:Pb,boxSizing:"border-box"},children:m.jsx(r5,{data:t,startIndex:F*i1,endIndex:Math.min((F+1)*i1,l.length),pageNum:F+1,totalPages:p})},`sheet-${F}`))]})},uv=iv({palette:{primary:{lighter:"#E3F2FD",light:"#64B5F6",main:"#1976D2",dark:"#1565C0",darker:"#0D47A1",contrastText:"#FFFFFF"},secondary:{lighter:"#D4F8FE",light:"#A8F3FD",main:"#5EEBFC",dark:"#35C7E0",darker:"#1E9CB5",contrastText:"#000000"},info:{lighter:"#B8E5FC",light:"#6BCFFA",main:"#12B3F9",dark:"#0D8AC7",darker:"#086295",contrastText:"#FFFFFF"},success:{lighter:"#E8F5E9",light:"#81C784",main:"#4CAF50",dark:"#388E3C",darker:"#2E7D32",contrastText:"#FFFFFF"},warning:{lighter:"#FFF5CC",light:"#FFD666",main:"#FFAB00",dark:"#CC8800",darker:"#996600",contrastText:"#1C252E"},error:{lighter:"#FFD4C8",light:"#FFA891",main:"#FF5630",dark:"#CC4426",darker:"#99331C",contrastText:"#FFFFFF"},grey:{50:"#FCFDFD",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#1C252E",900:"#141A21"},background:{default:"#FFFFFF",paper:"#FFFFFF"},text:{primary:"#1C252E",secondary:"#637381",disabled:"#919EAB"}},typography:{fontFamily:'"Inter Variable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',h1:{fontFamily:'"Barlow", sans-serif',fontWeight:800,fontSize:"2.5rem",lineHeight:1.25},h2:{fontFamily:'"Barlow", sans-serif',fontWeight:800,fontSize:"2rem",lineHeight:1.33},h3:{fontFamily:'"Barlow", sans-serif',fontWeight:700,fontSize:"1.5rem",lineHeight:1.5},h4:{fontWeight:700,fontSize:"1.25rem",lineHeight:1.5},h5:{fontWeight:700,fontSize:"1.125rem",lineHeight:1.5},h6:{fontWeight:600,fontSize:"1.0625rem",lineHeight:1.56},body1:{fontSize:"1rem",lineHeight:1.5},body2:{fontSize:"0.875rem",lineHeight:1.57},caption:{fontSize:"0.75rem",lineHeight:1.5}},shape:{borderRadius:8},spacing:8}),cv=({children:t})=>m.jsxs(x.ThemeProvider,{theme:uv,children:[m.jsx(x.CssBaseline,{}),t]}),hv=({data:t,options:e={}})=>{const r=e.language??"ru",l=e.includeDetailedAnalysisByQuestions!==!1,d=e.includeSubjectBreakdown!==!1,b=t.student&&(`${t.student.firstName??""} ${t.student.lastName??""}`.trim()||t.student.email)||"—";return m.jsxs(x.Box,{sx:{p:3,backgroundColor:"#F9FAFB",minHeight:"100vh"},children:[m.jsxs(x.Paper,{elevation:0,sx:{p:4,mb:3,backgroundColor:"white",border:"1px solid",borderColor:"divider",borderRadius:2},children:[m.jsxs(x.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",mb:3},children:[m.jsxs(x.Box,{sx:{display:"flex",alignItems:"center",flex:1},children:[m.jsx(Ut.Person,{sx:{fontSize:40,color:"primary.main",mr:2}}),m.jsxs(x.Box,{sx:{flex:1},children:[m.jsx(x.Typography,{variant:"h3",component:"h1",gutterBottom:!0,fontWeight:700,children:fe("ent.sessionReportTitle",r)}),m.jsxs(x.Typography,{variant:"body2",color:"text.secondary",children:[t.testTitle," · ",fe("ent.variant",r)," ",t.testId.slice(0,8),"…"]})]})]}),m.jsx(x.Box,{sx:{ml:3},children:m.jsx("img",{src:$h(),alt:"SANA",style:{height:"60px",width:"auto",maxWidth:"200px",display:"block"}})})]}),m.jsx(x.Divider,{sx:{my:2}}),m.jsxs(x.Grid,{container:!0,spacing:2,children:[m.jsxs(x.Grid,{size:{xs:12,sm:6,md:3},children:[m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("session.student",r)}),m.jsx(x.Typography,{variant:"body2",fontWeight:600,children:b})]}),m.jsxs(x.Grid,{size:{xs:12,sm:6,md:3},children:[m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("session.status",r)}),m.jsx(x.Box,{sx:{mt:.5},children:m.jsx(x.Chip,{label:t.status==="COMPLETED"?fe("status.finished",r):t.status,size:"small",color:t.status==="COMPLETED"?"success":"default"})})]}),m.jsxs(x.Grid,{size:{xs:12,sm:6,md:3},children:[m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("session.started",r)}),m.jsx(x.Typography,{variant:"body2",fontWeight:600,children:Zi(t.startedAt)})]}),m.jsxs(x.Grid,{size:{xs:12,sm:6,md:3},children:[m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("session.finished",r)}),m.jsx(x.Typography,{variant:"body2",fontWeight:600,children:Zi(t.finishedAt)})]})]})]}),m.jsxs(x.Grid,{container:!0,spacing:3,sx:{mb:3},children:[m.jsx(x.Grid,{size:{xs:12,sm:6,md:3},children:m.jsx(x.Card,{elevation:0,sx:{border:"1px solid",borderColor:"divider",borderRadius:2},children:m.jsxs(x.CardContent,{children:[m.jsxs(x.Box,{sx:{display:"flex",alignItems:"center",mb:1},children:[m.jsx(Ut.BarChart,{sx:{color:"primary.main",mr:1,fontSize:20}}),m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("session.totalQuestions",r)})]}),m.jsx(x.Typography,{variant:"h4",fontWeight:700,color:"primary.main",children:t.totalQuestions}),m.jsxs(x.Typography,{variant:"caption",color:"text.secondary",children:[fe("ent.answered",r),": ",t.answeredQuestions]})]})})}),m.jsx(x.Grid,{size:{xs:12,sm:6,md:3},children:m.jsx(x.Card,{elevation:0,sx:{border:"1px solid",borderColor:"divider",borderRadius:2},children:m.jsxs(x.CardContent,{children:[m.jsxs(x.Box,{sx:{display:"flex",alignItems:"center",mb:1},children:[m.jsx(Ut.CheckCircle,{sx:{color:"success.main",mr:1,fontSize:20}}),m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("session.correctAnswers",r)})]}),m.jsxs(x.Typography,{variant:"h4",fontWeight:700,color:"success.main",children:[t.correctAnswers,"/",t.answeredQuestions]})]})})}),m.jsx(x.Grid,{size:{xs:12,sm:6,md:3},children:m.jsx(x.Card,{elevation:0,sx:{border:"1px solid",borderColor:"divider",borderRadius:2},children:m.jsxs(x.CardContent,{children:[m.jsxs(x.Box,{sx:{display:"flex",alignItems:"center",mb:1},children:[m.jsx(Ut.Score,{sx:{color:"info.main",mr:1,fontSize:20}}),m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("quiz.score",r)})]}),m.jsxs(x.Typography,{variant:"h4",fontWeight:700,color:"info.main",children:[typeof t.score=="number"?t.score.toFixed(1):t.score," / ",t.maxScore]})]})})}),m.jsx(x.Grid,{size:{xs:12,sm:6,md:3},children:m.jsx(x.Card,{elevation:0,sx:{border:"1px solid",borderColor:"divider",borderRadius:2},children:m.jsxs(x.CardContent,{children:[m.jsxs(x.Box,{sx:{display:"flex",alignItems:"center",mb:1},children:[m.jsx(Ut.Schedule,{sx:{color:"warning.main",mr:1,fontSize:20}}),m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("quiz.time",r)})]}),m.jsx(x.Typography,{variant:"h4",fontWeight:700,color:"warning.main",children:Yc(t.timeSpent)})]})})})]}),d&&t.subjectResults?.length>0&&m.jsxs(x.Paper,{elevation:0,sx:{p:3,mb:3,backgroundColor:"white",border:"1px solid",borderColor:"divider"},children:[m.jsx(x.Typography,{variant:"h6",gutterBottom:!0,fontWeight:600,children:fe("ent.bySubject",r)}),m.jsxs(x.Table,{size:"small",children:[m.jsx(x.TableHead,{children:m.jsxs(x.TableRow,{children:[m.jsx(x.TableCell,{children:fe("course.subject",r)}),m.jsx(x.TableCell,{align:"right",children:fe("session.totalQuestions",r)}),m.jsx(x.TableCell,{align:"right",children:fe("session.correctAnswers",r)}),m.jsx(x.TableCell,{align:"right",children:fe("quiz.score",r)})]})}),m.jsx(x.TableBody,{children:t.subjectResults.map(p=>m.jsxs(x.TableRow,{children:[m.jsx(x.TableCell,{children:p.subjectTitle}),m.jsx(x.TableCell,{align:"right",children:p.total}),m.jsx(x.TableCell,{align:"right",children:p.correct}),m.jsx(x.TableCell,{align:"right",children:p.score})]},p.subjectId))})]})]}),l&&t.questionResults?.length>0&&m.jsxs(x.Paper,{elevation:0,sx:{p:3,mb:3,backgroundColor:"white",border:"1px solid",borderColor:"divider"},children:[m.jsx(x.Typography,{variant:"h6",gutterBottom:!0,fontWeight:600,children:fe("ent.detailedAnalysis",r)}),t.questionResults.map((p,E)=>{const k=p.options.filter(N=>p.correctOptionIds.includes(N.id)).map(N=>N.text).join(", "),Y=p.studentSelectedOptionIds.length?p.options.filter(N=>p.studentSelectedOptionIds.includes(N.id)).map(N=>N.text).join(", "):"—";return m.jsxs(x.Box,{sx:{py:2,borderBottom:E<t.questionResults.length-1?"1px solid":"none",borderColor:"divider"},children:[m.jsxs(x.Box,{sx:{display:"flex",alignItems:"center",gap:1,mb:1},children:[m.jsxs(x.Typography,{variant:"caption",color:"text.secondary",children:["#",p.order," · ",p.subjectTitle]}),p.isCorrect?m.jsx(Ut.CheckCircle,{sx:{fontSize:18,color:"success.main"}}):m.jsx(Ut.Cancel,{sx:{fontSize:18,color:"error.main"}})]}),m.jsx(Lc,{content:p.questionTitle,variant:"body2",sx:{mb:1}}),m.jsxs(x.Typography,{variant:"caption",color:"text.secondary",component:"span",display:"block",children:[fe("session.correctAnswer",r),":"," ",m.jsx(Lc,{content:k,variant:"caption",component:"span"})]}),m.jsxs(x.Typography,{variant:"caption",component:"span",display:"block",color:p.isCorrect?"success.dark":"error.dark",children:[fe("session.yourAnswer",r),":"," ",m.jsx(Lc,{content:Y,variant:"caption",component:"span"})]})]},p.questionId)})]})]})},dv=({data:t,options:e={}})=>{const r=e.language??"ru",l=e.includeQuestionList===!0,d=e.includeSubjectBreakdown!==!1,b=t.subjectQuestionCounts??{},p=t.subjectMaxScores??{},E=Object.keys(b).length?Object.keys(b):t.subjectsConfig?.mainSubjects??[];return m.jsxs(x.Box,{sx:{p:3,backgroundColor:"#F9FAFB",minHeight:"100vh"},children:[m.jsxs(x.Paper,{elevation:0,sx:{p:4,mb:3,backgroundColor:"white",border:"1px solid",borderColor:"divider",borderRadius:2},children:[m.jsxs(x.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",mb:3},children:[m.jsxs(x.Box,{sx:{display:"flex",alignItems:"center",flex:1},children:[m.jsx(Ut.School,{sx:{fontSize:40,color:"primary.main",mr:2}}),m.jsxs(x.Box,{sx:{flex:1},children:[m.jsx(x.Typography,{variant:"h3",component:"h1",gutterBottom:!0,fontWeight:700,children:fe("ent.testReportTitle",r)}),m.jsxs(x.Typography,{variant:"body2",color:"text.secondary",children:[t.title," · ",fe("ent.variant",r)," ",String(t.variant)]})]})]}),m.jsx(x.Box,{sx:{ml:3},children:m.jsx("img",{src:$h(),alt:"SANA",style:{height:"60px",width:"auto",maxWidth:"200px",display:"block"}})})]}),m.jsx(x.Divider,{sx:{my:2}}),m.jsxs(x.Grid,{container:!0,spacing:2,children:[m.jsxs(x.Grid,{size:{xs:12,sm:6,md:3},children:[m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("ent.testTitle",r)}),m.jsx(x.Typography,{variant:"body2",fontWeight:600,children:t.title})]}),m.jsxs(x.Grid,{size:{xs:12,sm:6,md:3},children:[m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("ent.variant",r)}),m.jsx(x.Typography,{variant:"body2",fontWeight:600,children:String(t.variant)})]}),m.jsxs(x.Grid,{size:{xs:12,sm:6,md:3},children:[m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("ent.year",r)}),m.jsx(x.Typography,{variant:"body2",fontWeight:600,children:t.year})]}),m.jsxs(x.Grid,{size:{xs:12,sm:6,md:3},children:[m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("ent.duration",r)}),m.jsx(x.Typography,{variant:"body2",fontWeight:600,children:Yc(t.duration)})]})]})]}),m.jsxs(x.Grid,{container:!0,spacing:3,sx:{mb:3},children:[m.jsx(x.Grid,{size:{xs:12,sm:6,md:4},children:m.jsx(x.Card,{elevation:0,sx:{border:"1px solid",borderColor:"divider",borderRadius:2},children:m.jsxs(x.CardContent,{children:[m.jsxs(x.Box,{sx:{display:"flex",alignItems:"center",mb:1},children:[m.jsx(Ut.Assignment,{sx:{color:"primary.main",mr:1,fontSize:20}}),m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("session.totalQuestions",r)})]}),m.jsx(x.Typography,{variant:"h4",fontWeight:700,color:"primary.main",children:t.totalQuestions})]})})}),m.jsx(x.Grid,{size:{xs:12,sm:6,md:4},children:m.jsx(x.Card,{elevation:0,sx:{border:"1px solid",borderColor:"divider",borderRadius:2},children:m.jsxs(x.CardContent,{children:[m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("quiz.maxScore",r)}),m.jsx(x.Typography,{variant:"h4",fontWeight:700,color:"info.main",children:t.maxScore})]})})}),m.jsx(x.Grid,{size:{xs:12,sm:6,md:4},children:m.jsx(x.Card,{elevation:0,sx:{border:"1px solid",borderColor:"divider",borderRadius:2},children:m.jsxs(x.CardContent,{children:[m.jsxs(x.Box,{sx:{display:"flex",alignItems:"center",mb:1},children:[m.jsx(Ut.Schedule,{sx:{color:"warning.main",mr:1,fontSize:20}}),m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("ent.duration",r)})]}),m.jsx(x.Typography,{variant:"h4",fontWeight:700,color:"warning.main",children:Yc(t.duration)})]})})})]}),d&&E.length>0&&m.jsxs(x.Paper,{elevation:0,sx:{p:3,mb:3,backgroundColor:"white",border:"1px solid",borderColor:"divider"},children:[m.jsx(x.Typography,{variant:"h6",gutterBottom:!0,fontWeight:600,children:fe("ent.subjectBreakdown",r)}),m.jsxs(x.Table,{size:"small",children:[m.jsx(x.TableHead,{children:m.jsxs(x.TableRow,{children:[m.jsx(x.TableCell,{children:fe("course.subject",r)}),m.jsx(x.TableCell,{align:"right",children:fe("session.totalQuestions",r)}),m.jsx(x.TableCell,{align:"right",children:fe("quiz.maxScore",r)})]})}),m.jsx(x.TableBody,{children:E.map(k=>m.jsxs(x.TableRow,{children:[m.jsx(x.TableCell,{children:k}),m.jsx(x.TableCell,{align:"right",children:b[k]??"—"}),m.jsx(x.TableCell,{align:"right",children:p[k]??"—"})]},k))})]})]}),m.jsxs(x.Paper,{elevation:0,sx:{p:3,mb:3,backgroundColor:"white",border:"1px solid",borderColor:"divider"},children:[m.jsx(x.Typography,{variant:"h6",gutterBottom:!0,fontWeight:600,children:fe("ent.sessionsList",r)}),t.sessions&&t.sessions.length>0?m.jsxs(x.Table,{size:"small",children:[m.jsx(x.TableHead,{children:m.jsxs(x.TableRow,{children:[m.jsx(x.TableCell,{children:fe("session.student",r)}),m.jsx(x.TableCell,{children:fe("session.status",r)}),m.jsx(x.TableCell,{align:"right",children:fe("quiz.score",r)}),m.jsx(x.TableCell,{children:fe("session.started",r)}),m.jsx(x.TableCell,{children:fe("session.finished",r)}),m.jsx(x.TableCell,{align:"right",children:fe("quiz.time",r)})]})}),m.jsx(x.TableBody,{children:t.sessions.map(k=>{const Y=k.student&&(`${k.student.firstName??""} ${k.student.lastName??""}`.trim()||k.student.email)||"—";return m.jsxs(x.TableRow,{children:[m.jsx(x.TableCell,{children:Y}),m.jsx(x.TableCell,{children:k.status}),m.jsxs(x.TableCell,{align:"right",children:[k.score!=null?k.score.toFixed(1):"—",k.totalQuestions!=null?` / ${k.totalQuestions}`:""]}),m.jsx(x.TableCell,{children:Zi(k.startedAt)}),m.jsx(x.TableCell,{children:k.finishedAt?Zi(k.finishedAt):"—"}),m.jsx(x.TableCell,{align:"right",children:k.timeSpent!=null?Yc(k.timeSpent):"—"})]},k.id)})})]}):m.jsx(x.Typography,{variant:"body2",color:"text.secondary",children:fe("ent.noSessions",r)})]}),l&&t.questions?.length>0&&m.jsxs(x.Paper,{elevation:0,sx:{p:3,mb:3,backgroundColor:"white",border:"1px solid",borderColor:"divider"},children:[m.jsx(x.Typography,{variant:"h6",gutterBottom:!0,fontWeight:600,children:fe("ent.questionList",r)}),t.questions.map((k,Y)=>{const N=typeof k.subject?.title=="object"?ac(k.subject.title,r,k.subjectId):String(k.subject?.title??k.subjectId);return m.jsxs(x.Box,{sx:{py:2,borderBottom:Y<t.questions.length-1?"1px solid":"none",borderColor:"divider"},children:[m.jsxs(x.Typography,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:.5},children:["#",k.order," · ",N," · ",k.points," ",r==="ru"?"б.":"pts"]}),m.jsx(Lc,{content:k.question.title,variant:"body2",sx:{mb:1}}),k.question.options?.length>0&&m.jsx(x.Box,{component:"ul",sx:{m:0,pl:2.5},children:k.question.options.slice().sort((F,H)=>(F.order??0)-(H.order??0)).map(F=>m.jsx("li",{children:m.jsx(Lc,{content:F.text+(F.isCorrect?" ✓":""),variant:"caption",component:"span",sx:{color:"text.secondary"}})},F.id))})]},k.questionId)})]})]})};var Bh={},id={};var T2;function n5(){if(T2)return id;T2=1;var t=ii.default,e=_d.default;function r(u){var h="https://react.dev/errors/"+u;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)h+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+u+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),L=Symbol.for("react.scope"),ae=Symbol.for("react.activity"),Te=Symbol.for("react.legacy_hidden"),We=Symbol.for("react.memo_cache_sentinel"),Ge=Symbol.for("react.view_transition"),Fe=Symbol.iterator;function me(u){return u===null||typeof u!="object"?null:(u=Fe&&u[Fe]||u["@@iterator"],typeof u=="function"?u:null)}var pe=Array.isArray;function et(u,h){var y=u.length&3,C=u.length-y,z=h;for(h=0;h<C;){var Z=u.charCodeAt(h)&255|(u.charCodeAt(++h)&255)<<8|(u.charCodeAt(++h)&255)<<16|(u.charCodeAt(++h)&255)<<24;++h,Z=3432918353*(Z&65535)+((3432918353*(Z>>>16)&65535)<<16)&4294967295,Z=Z<<15|Z>>>17,Z=461845907*(Z&65535)+((461845907*(Z>>>16)&65535)<<16)&4294967295,z^=Z,z=z<<13|z>>>19,z=5*(z&65535)+((5*(z>>>16)&65535)<<16)&4294967295,z=(z&65535)+27492+(((z>>>16)+58964&65535)<<16)}switch(Z=0,y){case 3:Z^=(u.charCodeAt(h+2)&255)<<16;case 2:Z^=(u.charCodeAt(h+1)&255)<<8;case 1:Z^=u.charCodeAt(h)&255,Z=3432918353*(Z&65535)+((3432918353*(Z>>>16)&65535)<<16)&4294967295,Z=Z<<15|Z>>>17,z^=461845907*(Z&65535)+((461845907*(Z>>>16)&65535)<<16)&4294967295}return z^=u.length,z^=z>>>16,z=2246822507*(z&65535)+((2246822507*(z>>>16)&65535)<<16)&4294967295,z^=z>>>13,z=3266489909*(z&65535)+((3266489909*(z>>>16)&65535)<<16)&4294967295,(z^z>>>16)>>>0}var lt=Object.assign,Ke=Object.prototype.hasOwnProperty,pt=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]*$"),Dt={},K={};function $e(u){return Ke.call(K,u)?!0:Ke.call(Dt,u)?!1:pt.test(u)?K[u]=!0:(Dt[u]=!0,!1)}var Me=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(" ")),Se=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"]]),he=/["'&<>]/;function Re(u){if(typeof u=="boolean"||typeof u=="number"||typeof u=="bigint")return""+u;u=""+u;var h=he.exec(u);if(h){var y="",C,z=0;for(C=h.index;C<u.length;C++){switch(u.charCodeAt(C)){case 34:h="&quot;";break;case 38:h="&amp;";break;case 39:h="&#x27;";break;case 60:h="&lt;";break;case 62:h="&gt;";break;default:continue}z!==C&&(y+=u.slice(z,C)),z=C+1,y+=h}u=z!==C?y+u.slice(z,C):y}return u}var Br=/([A-Z])/g,Bi=/^ms-/,ue=/^[\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 re(u){return ue.test(""+u)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":u}var Ue=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,st=e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,it={pending:!1,data:null,method:null,action:null},_e=st.d;st.d={f:_e.f,r:_e.r,D:Si,C:Ln,L:To,m:G0,X:dc,S:_n,M:ku};var ut=[],tt=null,Rt=/(<\/|<)(s)(cript)/gi;function mt(u,h,y,C){return""+h+(y==="s"?"\\u0073":"\\u0053")+C}function ct(u,h,y,C,z){return{idPrefix:u===void 0?"":u,nextFormID:0,streamingFormat:0,bootstrapScriptContent:y,bootstrapScripts:C,bootstrapModules:z,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function Mt(u,h,y,C){return{insertionMode:u,selectedValue:h,tagScope:y,viewTransition:C}}function qe(u,h,y){var C=u.tagScope&-25;switch(h){case"noscript":return Mt(2,null,C|1,null);case"select":return Mt(2,y.value!=null?y.value:y.defaultValue,C,null);case"svg":return Mt(4,null,C,null);case"picture":return Mt(2,null,C|2,null);case"math":return Mt(5,null,C,null);case"foreignObject":return Mt(2,null,C,null);case"table":return Mt(6,null,C,null);case"thead":case"tbody":case"tfoot":return Mt(7,null,C,null);case"colgroup":return Mt(9,null,C,null);case"tr":return Mt(8,null,C,null);case"head":if(2>u.insertionMode)return Mt(3,null,C,null);break;case"html":if(u.insertionMode===0)return Mt(1,null,C,null)}return 6<=u.insertionMode||2>u.insertionMode?Mt(2,null,C,null):u.tagScope!==C?Mt(u.insertionMode,u.selectedValue,C,null):u}function ot(u){return u===null?null:{update:u.update,enter:"none",exit:"none",share:u.update,name:u.autoName,autoName:u.autoName,nameIdx:0}}function yr(u,h){return h.tagScope&32&&(u.instructions|=128),Mt(h.insertionMode,h.selectedValue,h.tagScope|12,ot(h.viewTransition))}function It(u,h){u=ot(h.viewTransition);var y=h.tagScope|16;return u!==null&&u.share!=="none"&&(y|=64),Mt(h.insertionMode,h.selectedValue,y,u)}var Jr=new Map;function Qi(u,h){if(typeof h!="object")throw Error(r(62));var y=!0,C;for(C in h)if(Ke.call(h,C)){var z=h[C];if(z!=null&&typeof z!="boolean"&&z!==""){if(C.indexOf("--")===0){var Z=Re(C);z=Re((""+z).trim())}else Z=Jr.get(C),Z===void 0&&(Z=Re(C.replace(Br,"-$1").toLowerCase().replace(Bi,"-ms-")),Jr.set(C,Z)),z=typeof z=="number"?z===0||Me.has(C)?""+z:z+"px":Re((""+z).trim());y?(y=!1,u.push(' style="',Z,":",z)):u.push(";",Z,":",z)}}y||u.push('"')}function Ei(u,h,y){y&&typeof y!="function"&&typeof y!="symbol"&&u.push(" ",h,'=""')}function $r(u,h,y){typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&u.push(" ",h,'="',Re(y),'"')}var yn=Re("javascript:throw new Error('React form unexpectedly submitted.')");function jn(u,h){this.push('<input type="hidden"'),pn(u),$r(this,"name",h),$r(this,"value",u),this.push("/>")}function pn(u){if(typeof u!="string")throw Error(r(480))}function ki(u,h){if(typeof h.$$FORM_ACTION=="function"){var y=u.nextFormID++;u=u.idPrefix+y;try{var C=h.$$FORM_ACTION(u);if(C){var z=C.data;z?.forEach(pn)}return C}catch(Z){if(typeof Z=="object"&&Z!==null&&typeof Z.then=="function")throw Z}}return null}function P0(u,h,y,C,z,Z,J,ve){var te=null;if(typeof C=="function"){var ge=ki(h,C);ge!==null?(ve=ge.name,C=ge.action||"",z=ge.encType,Z=ge.method,J=ge.target,te=ge.data):(u.push(" ","formAction",'="',yn,'"'),J=Z=z=C=ve=null,sc(h,y))}return ve!=null&&Vt(u,"name",ve),C!=null&&Vt(u,"formAction",C),z!=null&&Vt(u,"formEncType",z),Z!=null&&Vt(u,"formMethod",Z),J!=null&&Vt(u,"formTarget",J),te}function Vt(u,h,y){switch(h){case"className":$r(u,"class",y);break;case"tabIndex":$r(u,"tabindex",y);break;case"dir":case"role":case"viewBox":case"width":case"height":$r(u,h,y);break;case"style":Qi(u,y);break;case"src":case"href":if(y==="")break;case"action":case"formAction":if(y==null||typeof y=="function"||typeof y=="symbol"||typeof y=="boolean")break;y=re(""+y),u.push(" ",h,'="',Re(y),'"');break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":Ei(u,h.toLowerCase(),y);break;case"xlinkHref":if(typeof y=="function"||typeof y=="symbol"||typeof y=="boolean")break;y=re(""+y),u.push(" ","xlink:href",'="',Re(y),'"');break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":typeof y!="function"&&typeof y!="symbol"&&u.push(" ",h,'="',Re(y),'"');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":y&&typeof y!="function"&&typeof y!="symbol"&&u.push(" ",h,'=""');break;case"capture":case"download":y===!0?u.push(" ",h,'=""'):y!==!1&&typeof y!="function"&&typeof y!="symbol"&&u.push(" ",h,'="',Re(y),'"');break;case"cols":case"rows":case"size":case"span":typeof y!="function"&&typeof y!="symbol"&&!isNaN(y)&&1<=y&&u.push(" ",h,'="',Re(y),'"');break;case"rowSpan":case"start":typeof y=="function"||typeof y=="symbol"||isNaN(y)||u.push(" ",h,'="',Re(y),'"');break;case"xlinkActuate":$r(u,"xlink:actuate",y);break;case"xlinkArcrole":$r(u,"xlink:arcrole",y);break;case"xlinkRole":$r(u,"xlink:role",y);break;case"xlinkShow":$r(u,"xlink:show",y);break;case"xlinkTitle":$r(u,"xlink:title",y);break;case"xlinkType":$r(u,"xlink:type",y);break;case"xmlBase":$r(u,"xml:base",y);break;case"xmlLang":$r(u,"xml:lang",y);break;case"xmlSpace":$r(u,"xml:space",y);break;default:if((!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(h=Se.get(h)||h,$e(h))){switch(typeof y){case"function":case"symbol":return;case"boolean":var C=h.toLowerCase().slice(0,5);if(C!=="data-"&&C!=="aria-")return}u.push(" ",h,'="',Re(y),'"')}}}function qn(u,h,y){if(h!=null){if(y!=null)throw Error(r(60));if(typeof h!="object"||!("__html"in h))throw Error(r(61));h=h.__html,h!=null&&u.push(""+h)}}function pr(u){var h="";return t.Children.forEach(u,function(y){y!=null&&(h+=y)}),h}function sc(u,h){if((u.instructions&16)===0){u.instructions|=16;var y=h.preamble,C=h.bootstrapChunks;(y.htmlChunks||y.headChunks)&&C.length===0?(C.push(h.startInlineScript),js(C,u),C.push(">",`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,"<\/script>")):C.unshift(h.startInlineScript,">",`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,"<\/script>")}}function en(u,h){u.push(Yr("link"));for(var y in h)if(Ke.call(h,y)){var C=h[y];if(C!=null)switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"link"));default:Vt(u,y,C)}}return u.push("/>"),null}var Tu=/(<\/|<)(s)(tyle)/gi;function Cu(u,h,y,C){return""+h+(y==="s"?"\\73 ":"\\53 ")+C}function gl(u,h,y){u.push(Yr(y));for(var C in h)if(Ke.call(h,C)){var z=h[C];if(z!=null)switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,y));default:Vt(u,C,z)}}return u.push("/>"),null}function Bu(u,h){u.push(Yr("title"));var y=null,C=null,z;for(z in h)if(Ke.call(h,z)){var Z=h[z];if(Z!=null)switch(z){case"children":y=Z;break;case"dangerouslySetInnerHTML":C=Z;break;default:Vt(u,z,Z)}}return u.push(">"),h=Array.isArray(y)?2>y.length?y[0]:null:y,typeof h!="function"&&typeof h!="symbol"&&h!==null&&h!==void 0&&u.push(Re(""+h)),qn(u,C,y),u.push(xo("title")),null}function Xs(u,h){u.push(Yr("script"));var y=null,C=null,z;for(z in h)if(Ke.call(h,z)){var Z=h[z];if(Z!=null)switch(z){case"children":y=Z;break;case"dangerouslySetInnerHTML":C=Z;break;default:Vt(u,z,Z)}}return u.push(">"),qn(u,C,y),typeof y=="string"&&u.push((""+y).replace(Rt,mt)),u.push(xo("script")),null}function yo(u,h,y){u.push(Yr(y));var C=y=null,z;for(z in h)if(Ke.call(h,z)){var Z=h[z];if(Z!=null)switch(z){case"children":y=Z;break;case"dangerouslySetInnerHTML":C=Z;break;default:Vt(u,z,Z)}}return u.push(">"),qn(u,C,y),y}function Gl(u,h,y){u.push(Yr(y));var C=y=null,z;for(z in h)if(Ke.call(h,z)){var Z=h[z];if(Z!=null)switch(z){case"children":y=Z;break;case"dangerouslySetInnerHTML":C=Z;break;default:Vt(u,z,Z)}}return u.push(">"),qn(u,C,y),typeof y=="string"?(u.push(Re(y)),null):y}var po=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Us=new Map;function Yr(u){var h=Us.get(u);if(h===void 0){if(!po.test(u))throw Error(r(65,u));h="<"+u,Us.set(u,h)}return h}function Er(u,h,y,C,z,Z,J,ve,te){switch(h){case"div":case"span":case"svg":case"path":break;case"a":u.push(Yr("a"));var ge=null,Ee=null,Ae;for(Ae in y)if(Ke.call(y,Ae)){var Ie=y[Ae];if(Ie!=null)switch(Ae){case"children":ge=Ie;break;case"dangerouslySetInnerHTML":Ee=Ie;break;case"href":Ie===""?$r(u,"href",""):Vt(u,Ae,Ie);break;default:Vt(u,Ae,Ie)}}if(u.push(">"),qn(u,Ee,ge),typeof ge=="string"){u.push(Re(ge));var ht=null}else ht=ge;return ht;case"g":case"p":case"li":break;case"select":u.push(Yr("select"));var zt=null,xt=null,gt;for(gt in y)if(Ke.call(y,gt)){var Ct=y[gt];if(Ct!=null)switch(gt){case"children":zt=Ct;break;case"dangerouslySetInnerHTML":xt=Ct;break;case"defaultValue":case"value":break;default:Vt(u,gt,Ct)}}return u.push(">"),qn(u,xt,zt),zt;case"option":var yt=ve.selectedValue;u.push(Yr("option"));var Mr=null,Nt=null,Qt=null,ar=null,kt;for(kt in y)if(Ke.call(y,kt)){var Lr=y[kt];if(Lr!=null)switch(kt){case"children":Mr=Lr;break;case"selected":Qt=Lr;break;case"dangerouslySetInnerHTML":ar=Lr;break;case"value":Nt=Lr;default:Vt(u,kt,Lr)}}if(yt!=null){var $t=Nt!==null?""+Nt:pr(Mr);if(pe(yt)){for(var $n=0;$n<yt.length;$n++)if(""+yt[$n]===$t){u.push(' selected=""');break}}else""+yt===$t&&u.push(' selected=""')}else Qt&&u.push(' selected=""');return u.push(">"),qn(u,ar,Mr),Mr;case"textarea":u.push(Yr("textarea"));var lr=null,Jt=null,er=null,Bt;for(Bt in y)if(Ke.call(y,Bt)){var tr=y[Bt];if(tr!=null)switch(Bt){case"children":er=tr;break;case"value":lr=tr;break;case"defaultValue":Jt=tr;break;case"dangerouslySetInnerHTML":throw Error(r(91));default:Vt(u,Bt,tr)}}if(lr===null&&Jt!==null&&(lr=Jt),u.push(">"),er!=null){if(lr!=null)throw Error(r(92));if(pe(er)){if(1<er.length)throw Error(r(93));lr=""+er[0]}lr=""+er}return typeof lr=="string"&&lr[0]===`
294
+ To suppress this warning, you need to explicitly provide the \`palette.${e}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function N3(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const tc=t=>{try{return t()}catch{}},W3=(t="mui")=>_y(t);function a1(t,e,r,l,d){if(!r)return;r=r===!0?{}:r;const b=d==="dark"?"dark":"light";if(!l){e[d]=D3({...r,palette:{mode:b,...r?.palette},colorSpace:t});return}const{palette:p,...E}=T1({...l,palette:{mode:b,...r?.palette},colorSpace:t});return e[d]={...r,palette:p,opacity:{...nv(b),...r?.opacity},overlays:r?.overlays||av(b)},E}function Y3(t={},...e){const{colorSchemes:r={light:!0},defaultColorScheme:l,disableCssColorScheme:d=!1,cssVarPrefix:b="mui",nativeColor:p=!1,shouldSkipGeneratingVar:E=M3,colorSchemeSelector:k=r.light&&r.dark?"media":void 0,rootSelector:Y=":root",...N}=t,F=Object.keys(r)[0],H=l||(r.light&&F!=="light"?"light":F),j=W3(b),{[H]:U,light:L,dark:ae,...Te}=r,We={...Te};let Ge=U;if((H==="dark"&&!("dark"in r)||H==="light"&&!("light"in r))&&(Ge=!0),!Ge)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${H}\` option is either missing or invalid.`:uh(21,H));let Fe;p&&(Fe="oklch");const me=a1(Fe,We,Ge,N,H);L&&!We.light&&a1(Fe,We,L,void 0,"light"),ae&&!We.dark&&a1(Fe,We,ae,void 0,"dark");let pe={defaultColorScheme:H,...me,cssVarPrefix:b,colorSchemeSelector:k,rootSelector:Y,getCssVar:j,colorSchemes:We,font:{...h3(me.typography),...me.font},spacing:N3(N.spacing)};Object.keys(pe.colorSchemes).forEach(Dt=>{const K=pe.colorSchemes[Dt].palette,$e=Se=>{const he=Se.split("-"),Re=he[1],Br=he[2];return j(Se,K[Re][Br])};K.mode==="light"&&(Ce(K.common,"background","#fff"),Ce(K.common,"onBackground","#000")),K.mode==="dark"&&(Ce(K.common,"background","#000"),Ce(K.common,"onBackground","#fff"));function Me(Se,he,Re){if(Fe){let Br;return Se===Ch&&(Br=`transparent ${((1-Re)*100).toFixed(0)}%`),Se===nn&&(Br=`#000 ${(Re*100).toFixed(0)}%`),Se===an&&(Br=`#fff ${(Re*100).toFixed(0)}%`),`color-mix(in ${Fe}, ${he}, ${Br})`}return Se(he,Re)}if(z3(K,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),K.mode==="light"){Ce(K.Alert,"errorColor",Me(nn,K.error.light,.6)),Ce(K.Alert,"infoColor",Me(nn,K.info.light,.6)),Ce(K.Alert,"successColor",Me(nn,K.success.light,.6)),Ce(K.Alert,"warningColor",Me(nn,K.warning.light,.6)),Ce(K.Alert,"errorFilledBg",$e("palette-error-main")),Ce(K.Alert,"infoFilledBg",$e("palette-info-main")),Ce(K.Alert,"successFilledBg",$e("palette-success-main")),Ce(K.Alert,"warningFilledBg",$e("palette-warning-main")),Ce(K.Alert,"errorFilledColor",tc(()=>K.getContrastText(K.error.main))),Ce(K.Alert,"infoFilledColor",tc(()=>K.getContrastText(K.info.main))),Ce(K.Alert,"successFilledColor",tc(()=>K.getContrastText(K.success.main))),Ce(K.Alert,"warningFilledColor",tc(()=>K.getContrastText(K.warning.main))),Ce(K.Alert,"errorStandardBg",Me(an,K.error.light,.9)),Ce(K.Alert,"infoStandardBg",Me(an,K.info.light,.9)),Ce(K.Alert,"successStandardBg",Me(an,K.success.light,.9)),Ce(K.Alert,"warningStandardBg",Me(an,K.warning.light,.9)),Ce(K.Alert,"errorIconColor",$e("palette-error-main")),Ce(K.Alert,"infoIconColor",$e("palette-info-main")),Ce(K.Alert,"successIconColor",$e("palette-success-main")),Ce(K.Alert,"warningIconColor",$e("palette-warning-main")),Ce(K.AppBar,"defaultBg",$e("palette-grey-100")),Ce(K.Avatar,"defaultBg",$e("palette-grey-400")),Ce(K.Button,"inheritContainedBg",$e("palette-grey-300")),Ce(K.Button,"inheritContainedHoverBg",$e("palette-grey-A100")),Ce(K.Chip,"defaultBorder",$e("palette-grey-400")),Ce(K.Chip,"defaultAvatarColor",$e("palette-grey-700")),Ce(K.Chip,"defaultIconColor",$e("palette-grey-700")),Ce(K.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Ce(K.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Ce(K.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Ce(K.LinearProgress,"primaryBg",Me(an,K.primary.main,.62)),Ce(K.LinearProgress,"secondaryBg",Me(an,K.secondary.main,.62)),Ce(K.LinearProgress,"errorBg",Me(an,K.error.main,.62)),Ce(K.LinearProgress,"infoBg",Me(an,K.info.main,.62)),Ce(K.LinearProgress,"successBg",Me(an,K.success.main,.62)),Ce(K.LinearProgress,"warningBg",Me(an,K.warning.main,.62)),Ce(K.Skeleton,"bg",Fe?Me(Ch,K.text.primary,.11):`rgba(${$e("palette-text-primaryChannel")} / 0.11)`),Ce(K.Slider,"primaryTrack",Me(an,K.primary.main,.62)),Ce(K.Slider,"secondaryTrack",Me(an,K.secondary.main,.62)),Ce(K.Slider,"errorTrack",Me(an,K.error.main,.62)),Ce(K.Slider,"infoTrack",Me(an,K.info.main,.62)),Ce(K.Slider,"successTrack",Me(an,K.success.main,.62)),Ce(K.Slider,"warningTrack",Me(an,K.warning.main,.62));const Se=Fe?Me(nn,K.background.default,.6825):Pd(K.background.default,.8);Ce(K.SnackbarContent,"bg",Se),Ce(K.SnackbarContent,"color",tc(()=>Fe?A1.text.primary:K.getContrastText(Se))),Ce(K.SpeedDialAction,"fabHoverBg",Pd(K.background.paper,.15)),Ce(K.StepConnector,"border",$e("palette-grey-400")),Ce(K.StepContent,"border",$e("palette-grey-400")),Ce(K.Switch,"defaultColor",$e("palette-common-white")),Ce(K.Switch,"defaultDisabledColor",$e("palette-grey-100")),Ce(K.Switch,"primaryDisabledColor",Me(an,K.primary.main,.62)),Ce(K.Switch,"secondaryDisabledColor",Me(an,K.secondary.main,.62)),Ce(K.Switch,"errorDisabledColor",Me(an,K.error.main,.62)),Ce(K.Switch,"infoDisabledColor",Me(an,K.info.main,.62)),Ce(K.Switch,"successDisabledColor",Me(an,K.success.main,.62)),Ce(K.Switch,"warningDisabledColor",Me(an,K.warning.main,.62)),Ce(K.TableCell,"border",Me(an,Me(Ch,K.divider,1),.88)),Ce(K.Tooltip,"bg",Me(Ch,K.grey[700],.92))}if(K.mode==="dark"){Ce(K.Alert,"errorColor",Me(an,K.error.light,.6)),Ce(K.Alert,"infoColor",Me(an,K.info.light,.6)),Ce(K.Alert,"successColor",Me(an,K.success.light,.6)),Ce(K.Alert,"warningColor",Me(an,K.warning.light,.6)),Ce(K.Alert,"errorFilledBg",$e("palette-error-dark")),Ce(K.Alert,"infoFilledBg",$e("palette-info-dark")),Ce(K.Alert,"successFilledBg",$e("palette-success-dark")),Ce(K.Alert,"warningFilledBg",$e("palette-warning-dark")),Ce(K.Alert,"errorFilledColor",tc(()=>K.getContrastText(K.error.dark))),Ce(K.Alert,"infoFilledColor",tc(()=>K.getContrastText(K.info.dark))),Ce(K.Alert,"successFilledColor",tc(()=>K.getContrastText(K.success.dark))),Ce(K.Alert,"warningFilledColor",tc(()=>K.getContrastText(K.warning.dark))),Ce(K.Alert,"errorStandardBg",Me(nn,K.error.light,.9)),Ce(K.Alert,"infoStandardBg",Me(nn,K.info.light,.9)),Ce(K.Alert,"successStandardBg",Me(nn,K.success.light,.9)),Ce(K.Alert,"warningStandardBg",Me(nn,K.warning.light,.9)),Ce(K.Alert,"errorIconColor",$e("palette-error-main")),Ce(K.Alert,"infoIconColor",$e("palette-info-main")),Ce(K.Alert,"successIconColor",$e("palette-success-main")),Ce(K.Alert,"warningIconColor",$e("palette-warning-main")),Ce(K.AppBar,"defaultBg",$e("palette-grey-900")),Ce(K.AppBar,"darkBg",$e("palette-background-paper")),Ce(K.AppBar,"darkColor",$e("palette-text-primary")),Ce(K.Avatar,"defaultBg",$e("palette-grey-600")),Ce(K.Button,"inheritContainedBg",$e("palette-grey-800")),Ce(K.Button,"inheritContainedHoverBg",$e("palette-grey-700")),Ce(K.Chip,"defaultBorder",$e("palette-grey-700")),Ce(K.Chip,"defaultAvatarColor",$e("palette-grey-300")),Ce(K.Chip,"defaultIconColor",$e("palette-grey-300")),Ce(K.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Ce(K.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Ce(K.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Ce(K.LinearProgress,"primaryBg",Me(nn,K.primary.main,.5)),Ce(K.LinearProgress,"secondaryBg",Me(nn,K.secondary.main,.5)),Ce(K.LinearProgress,"errorBg",Me(nn,K.error.main,.5)),Ce(K.LinearProgress,"infoBg",Me(nn,K.info.main,.5)),Ce(K.LinearProgress,"successBg",Me(nn,K.success.main,.5)),Ce(K.LinearProgress,"warningBg",Me(nn,K.warning.main,.5)),Ce(K.Skeleton,"bg",Fe?Me(Ch,K.text.primary,.13):`rgba(${$e("palette-text-primaryChannel")} / 0.13)`),Ce(K.Slider,"primaryTrack",Me(nn,K.primary.main,.5)),Ce(K.Slider,"secondaryTrack",Me(nn,K.secondary.main,.5)),Ce(K.Slider,"errorTrack",Me(nn,K.error.main,.5)),Ce(K.Slider,"infoTrack",Me(nn,K.info.main,.5)),Ce(K.Slider,"successTrack",Me(nn,K.success.main,.5)),Ce(K.Slider,"warningTrack",Me(nn,K.warning.main,.5));const Se=Fe?Me(an,K.background.default,.985):Pd(K.background.default,.98);Ce(K.SnackbarContent,"bg",Se),Ce(K.SnackbarContent,"color",tc(()=>Fe?ev.text.primary:K.getContrastText(Se))),Ce(K.SpeedDialAction,"fabHoverBg",Pd(K.background.paper,.15)),Ce(K.StepConnector,"border",$e("palette-grey-600")),Ce(K.StepContent,"border",$e("palette-grey-600")),Ce(K.Switch,"defaultColor",$e("palette-grey-300")),Ce(K.Switch,"defaultDisabledColor",$e("palette-grey-600")),Ce(K.Switch,"primaryDisabledColor",Me(nn,K.primary.main,.55)),Ce(K.Switch,"secondaryDisabledColor",Me(nn,K.secondary.main,.55)),Ce(K.Switch,"errorDisabledColor",Me(nn,K.error.main,.55)),Ce(K.Switch,"infoDisabledColor",Me(nn,K.info.main,.55)),Ce(K.Switch,"successDisabledColor",Me(nn,K.success.main,.55)),Ce(K.Switch,"warningDisabledColor",Me(nn,K.warning.main,.55)),Ce(K.TableCell,"border",Me(nn,Me(Ch,K.divider,1),.68)),Ce(K.Tooltip,"bg",Me(Ch,K.grey[700],.92))}zc(K.background,"default"),zc(K.background,"paper"),zc(K.common,"background"),zc(K.common,"onBackground"),zc(K,"divider"),Object.keys(K).forEach(Se=>{const he=K[Se];Se!=="tonalOffset"&&he&&typeof he=="object"&&(he.main&&Ce(K[Se],"mainChannel",sd(ud(he.main))),he.light&&Ce(K[Se],"lightChannel",sd(ud(he.light))),he.dark&&Ce(K[Se],"darkChannel",sd(ud(he.dark))),he.contrastText&&Ce(K[Se],"contrastTextChannel",sd(ud(he.contrastText))),Se==="text"&&(zc(K[Se],"primary"),zc(K[Se],"secondary")),Se==="action"&&(he.active&&zc(K[Se],"active"),he.selected&&zc(K[Se],"selected")))})}),pe=e.reduce((Dt,K)=>Zs(Dt,K),pe);const et={prefix:b,disableCssColorScheme:d,shouldSkipGeneratingVar:E,getSelector:R3(pe),enableContrastVars:p},{vars:lt,generateThemeVars:Ke,generateStyleSheets:pt}=t3(pe,et);return pe.vars=lt,Object.entries(pe.colorSchemes[pe.defaultColorScheme]).forEach(([Dt,K])=>{pe[Dt]=K}),pe.generateThemeVars=Ke,pe.generateStyleSheets=pt,pe.generateSpacing=function(){return Xb(N.spacing,U1(this))},pe.getColorSchemeSelector=r3(k),pe.spacing=pe.generateSpacing(),pe.shouldSkipGeneratingVar=E,pe.unstable_sxConfig={...pf,...N?.unstable_sxConfig},pe.unstable_sx=function(K){return jh({sx:K,theme:this})},pe.toRuntimeSource=rv,pe}function y2(t,e,r){t.colorSchemes&&r&&(t.colorSchemes[e]={...r!==!0&&r,palette:j1({...r===!0?{}:r.palette,mode:e})})}function iv(t={},...e){const{palette:r,cssVariables:l=!1,colorSchemes:d=r?void 0:{light:!0},defaultColorScheme:b=r?.mode,...p}=t,E=b||"light",k=d?.[E],Y={...d,...r?{[E]:{...typeof k!="boolean"&&k,palette:r}}:void 0};if(l===!1){if(!("colorSchemes"in t))return T1(t,...e);let N=r;"palette"in t||Y[E]&&(Y[E]!==!0?N=Y[E].palette:E==="dark"&&(N={mode:"dark"}));const F=T1({...t,palette:N},...e);return F.defaultColorScheme=E,F.colorSchemes=Y,F.palette.mode==="light"&&(F.colorSchemes.light={...Y.light!==!0&&Y.light,palette:F.palette},y2(F,"dark",Y.dark)),F.palette.mode==="dark"&&(F.colorSchemes.dark={...Y.dark!==!0&&Y.dark,palette:F.palette},y2(F,"light",Y.light)),F}return!r&&!("light"in Y)&&E==="light"&&(Y.light=!0),Y3({...p,colorSchemes:Y,defaultColorScheme:E,...typeof l!="boolean"&&l},...e)}const P3=iv(),L3="$$material";function G3(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const O3=t=>G3(t)&&t!=="classes",I3=Gy({themeId:L3,defaultTheme:P3,rootShouldForwardProp:O3}),H3=qy;process.env.NODE_ENV!=="production"&&(Xr.node,Xr.object.isRequired);function Z3(t){return jy(t)}function Q3(t){return K1("MuiSvgIcon",t)}Ny("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const X3=t=>{const{color:e,fontSize:r,classes:l}=t,d={root:["root",e!=="inherit"&&`color${Mh(e)}`,`fontSize${Mh(r)}`]};return Bm(d,Q3,l)},U3=I3("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="inherit"&&e[`color${Mh(r.color)}`],e[`fontSize${Mh(r.fontSize)}`]]}})(H3(({theme:t})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:t.transitions?.create?.("fill",{duration:(t.vars??t).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:t.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:t.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,e])=>e&&e.main).map(([e])=>({props:{color:e},style:{color:(t.vars??t).palette?.[e]?.main}})),{props:{color:"action"},style:{color:(t.vars??t).palette?.action?.active}},{props:{color:"disabled"},style:{color:(t.vars??t).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),jd=ii.forwardRef(function(e,r){const l=Z3({props:e,name:"MuiSvgIcon"}),{children:d,className:b,color:p="inherit",component:E="svg",fontSize:k="medium",htmlColor:Y,inheritViewBox:N=!1,titleAccess:F,viewBox:H="0 0 24 24",...j}=l,U=ii.isValidElement(d)&&d.type==="svg",L={...l,color:p,component:E,fontSize:k,instanceFontSize:e.fontSize,inheritViewBox:N,viewBox:H,hasSvgAsChild:U},ae={};N||(ae.viewBox=H);const Te=X3(L);return m.jsxs(U3,{as:E,className:Ib(Te.root,b),focusable:"false",color:Y,"aria-hidden":F?void 0:!0,role:F?"img":void 0,ref:r,...ae,...j,...U&&d.props,ownerState:L,children:[U?d.props.children:d,F?m.jsx("title",{children:F}):null]})});process.env.NODE_ENV!=="production"&&(jd.propTypes={children:Xr.node,classes:Xr.object,className:Xr.string,color:Xr.oneOfType([Xr.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),Xr.string]),component:Xr.elementType,fontSize:Xr.oneOfType([Xr.oneOf(["inherit","large","medium","small"]),Xr.string]),htmlColor:Xr.string,inheritViewBox:Xr.bool,shapeRendering:Xr.string,sx:Xr.oneOfType([Xr.arrayOf(Xr.oneOfType([Xr.func,Xr.object,Xr.bool])),Xr.func,Xr.object]),titleAccess:Xr.string,viewBox:Xr.string});jd.muiName="SvgIcon";function J3(t,e){function r(l,d){return m.jsx(jd,{"data-testid":process.env.NODE_ENV!=="production"?`${e}Icon`:void 0,ref:d,...l,children:t})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${e}Icon`),r.muiName=jd.muiName,ii.memo(ii.forwardRef(r))}const K3=J3(m.jsx("path",{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2m2 10H3v4c0 1.1.9 2 2 2h4v-2H5zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2"}),"CropFree"),p2=14,rh=1.5,V3={topLeft:{borderTop:rh,borderRight:0,borderBottom:0,borderLeft:rh},topRight:{borderTop:rh,borderRight:rh,borderBottom:0,borderLeft:0},bottomLeft:{borderTop:0,borderRight:0,borderBottom:rh,borderLeft:rh},bottomRight:{borderTop:0,borderRight:rh,borderBottom:rh,borderLeft:0}},Ld=({corner:t="topLeft"})=>m.jsx(x.Box,{sx:{width:p2,height:p2,boxSizing:"border-box",borderColor:"grey.700",borderStyle:"solid",borderRadius:0,...V3[t]}}),j3="зона сканирования",q3=()=>m.jsxs(x.Paper,{variant:"outlined",elevation:0,sx:{display:"inline-flex",alignItems:"center",gap:.5,px:.75,py:.35,borderRadius:1,borderColor:"grey.300",bgcolor:"grey.50"},children:[m.jsx(K3,{sx:{fontSize:12,color:"grey.600"}}),m.jsx(x.Typography,{variant:"caption",sx:{fontSize:"0.65rem",color:"grey.600",letterSpacing:"0.02em",lineHeight:1.2},children:j3})]}),x2=5,i1=25,qd=20,w2=12,Qh=({filled:t=!1})=>m.jsx(x.Box,{sx:{width:qd,height:qd,border:"1px solid #000",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:m.jsx(x.Box,{sx:{width:w2,height:w2,borderRadius:"50%",border:"1px solid #000",bgcolor:t?"#000":"transparent"}})}),lv="ABCDEFGHIJ",_3={kk:"Сұрақ",ru:"Вопрос",en:"Question"},$3={kk:"б.",ru:"б.",en:"pt."};function e5(t,e){return{oneCorrect:{kk:"бір нұсқа",ru:"один вариант",en:"single choice"},manyCorrect:{kk:"бірнеше нұсқа",ru:"множественный выбор",en:"multiple choice"},boolean:{kk:"Истина / Жалған",ru:"Истина / Ложь",en:"True / False"},shortAnswer:{kk:"қысқа жауап",ru:"Краткий ответ",en:"Short answer"},longAnswer:{kk:"толық жауап",ru:"Развёрнутый ответ",en:"Long answer"},matching:{kk:"сәйкестендіру",ru:"Соответствие",en:"Matching"},ordering:{kk:"реттеу",ru:"Упорядочивание",en:"Ordering"},fillInTheBlank:{kk:"бос орынды толтыру",ru:"Вставка пропуска",en:"Fill in the blank"},numeric:{kk:"сандық",ru:"Числовой ответ",en:"Numeric"},summary:{kk:"қорытынды",ru:"Сведение",en:"Summary"}}[t]?.[e]??t}function A2(t){if(!t)return"";try{return Cb(t).trim()||t}catch{return t}}const t5=({q:t,index:e,lang:r})=>{const l=e+1,d=t.point!=null?` (${t.point} ${$3[r]??"б."})`:"",b=e5(t.questionTypeId,r),p=_3[r]??"Вопрос",E=A2(t.title),k=t.questionTypeId==="boolean",Y=t.questionTypeId==="oneCorrect"||t.questionTypeId==="manyCorrect"||t.questionTypeId==="boolean",N=Y?t.options:[],F=t.imageUrls??[];return m.jsxs(x.Box,{sx:{mb:1.75,breakInside:"avoid",textAlign:"left"},children:[m.jsxs(x.Typography,{variant:"body2",component:"p",sx:{mb:.75,color:"text.secondary",fontSize:"0.8125rem",fontFamily:"inherit"},children:[p," ",l,d," | ",b]}),m.jsx(x.Typography,{variant:"body1",component:"div",sx:{whiteSpace:"pre-wrap",fontSize:"1rem",lineHeight:1.5,"& p":{margin:0}},dangerouslySetInnerHTML:{__html:E}}),F.length>0&&m.jsx(x.Box,{sx:{mt:1,textAlign:"left"},children:F.map((H,j)=>m.jsx("img",{src:H,alt:"",style:{maxWidth:"100%",height:"auto",maxHeight:200,objectFit:"contain"}},j))}),k&&N.length===0&&m.jsx(x.Typography,{variant:"body2",sx:{mt:1,fontSize:"0.9375rem"},children:"И. Истина    Л. Ложь"}),Y&&!k&&N.length>0&&m.jsx(x.Box,{component:"ol",sx:{pl:2.5,mt:1,listStyle:"none",counterReset:"opt",textAlign:"left"},children:N.map((H,j)=>m.jsx(x.Typography,{component:"li",variant:"body2",sx:{counterIncrement:"opt",fontSize:"0.9375rem",lineHeight:1.5,mb:.25,"&::before":{content:`"${lv[j]||String(j+1)}. "`,fontWeight:600}},dangerouslySetInnerHTML:{__html:A2(H.text)}},H.id))}),(t.questionTypeId==="shortAnswer"||t.questionTypeId==="longAnswer"||t.questionTypeId==="numeric"||t.questionTypeId==="fillInTheBlank")&&m.jsx(x.Typography,{variant:"body2",color:"text.secondary",sx:{mt:1,fontSize:"0.9375rem"},children:"Ответ: _______________________"})]})},r5=({data:t,startIndex:e,endIndex:r,pageNum:l,totalPages:d})=>{const b=t.questions.slice(e,r),p=ii.default.useMemo(()=>ov(b),[b]);return m.jsxs(x.Box,{sx:{width:"100%",maxWidth:Yb,minHeight:Pb,margin:0,p:Wb,boxSizing:"border-box",position:"relative",backgroundColor:"#fff",textAlign:"left"},children:[m.jsxs(x.Box,{sx:{position:"absolute",top:6,left:6,display:"flex",alignItems:"center",gap:.5},children:[m.jsx(Ld,{corner:"topLeft"}),m.jsx(q3,{})]}),m.jsx(x.Box,{sx:{position:"absolute",top:6,right:6},children:m.jsx(Ld,{corner:"topRight"})}),m.jsx(x.Box,{sx:{position:"absolute",bottom:6,left:6},children:m.jsx(Ld,{corner:"bottomLeft"})}),m.jsx(x.Box,{sx:{position:"absolute",bottom:6,right:6},children:m.jsx(Ld,{corner:"bottomRight"})}),m.jsxs(x.Stack,{spacing:1.5,sx:{pt:.5},children:[m.jsxs(x.Box,{children:[m.jsx(x.Typography,{variant:"h6",fontWeight:700,sx:{fontSize:"1.25rem",letterSpacing:"0.02em"},children:t.title}),m.jsx(x.Divider,{sx:{mt:1.5,borderColor:"#000",borderWidth:1}})]}),m.jsxs(x.Stack,{direction:"row",alignItems:"center",spacing:1,children:[m.jsx(x.Typography,{variant:"body2",sx:{fontWeight:500,fontSize:"0.875rem",flexShrink:0},children:"Имя и фамилия"}),m.jsx(x.Box,{sx:{flex:1,minWidth:0,borderBottom:"1px solid #000",height:28,alignSelf:"stretch"}})]}),m.jsxs(x.Box,{sx:{py:.5},children:[m.jsx(x.Typography,{variant:"body2",sx:{fontSize:"0.8125rem",lineHeight:1.5,color:"text.primary",mb:1.5},children:"Отметьте ответы, полностью закрасив кружок внутри клетки. При ошибке закрасьте целиком клетку неверного ответа, затем отметьте кружок правильного ответа."}),m.jsxs(x.Stack,{direction:"row",spacing:3,flexWrap:"wrap",useFlexGap:!0,children:[m.jsxs(x.Stack,{direction:"row",alignItems:"center",spacing:.75,children:[m.jsx(x.Typography,{variant:"caption",sx:{fontSize:"0.7rem",whiteSpace:"nowrap"},children:"Пример: отмечен ответ В"}),["A","B","C","D"].map(E=>m.jsxs(x.Stack,{direction:"row",alignItems:"center",spacing:.25,children:[m.jsx(Qh,{filled:E==="B"}),m.jsx(x.Typography,{variant:"caption",sx:{fontSize:"0.7rem"},children:E})]},E))]}),m.jsxs(x.Stack,{direction:"row",alignItems:"center",spacing:.75,children:[m.jsx(x.Typography,{variant:"caption",sx:{fontSize:"0.7rem",whiteSpace:"nowrap"},children:"Пример: исправление (было В, стало D)"}),m.jsxs(x.Stack,{direction:"row",alignItems:"center",spacing:.25,children:[m.jsx(x.Box,{sx:{width:qd,height:qd,border:"1px solid #000",bgcolor:"#000",flexShrink:0}}),m.jsx(x.Typography,{variant:"caption",sx:{fontSize:"0.7rem"},children:"В"})]}),["C"].map(E=>m.jsxs(x.Stack,{direction:"row",alignItems:"center",spacing:.25,children:[m.jsx(Qh,{}),m.jsx(x.Typography,{variant:"caption",sx:{fontSize:"0.7rem"},children:E})]},E)),m.jsxs(x.Stack,{direction:"row",alignItems:"center",spacing:.25,children:[m.jsx(Qh,{filled:!0}),m.jsx(x.Typography,{variant:"caption",sx:{fontSize:"0.7rem"},children:"D"})]})]})]})]}),m.jsx(x.Divider,{sx:{borderColor:"#000"}}),p.map((E,k)=>{let Y=e;for(let F=0;F<k;F++)Y+=p[F].questions.length;const N=E.questions;return m.jsxs(x.Box,{sx:{mb:k<p.length-1?1:0},children:[E.subjectTitle!=null&&m.jsx(x.Typography,{variant:"subtitle2",sx:{fontSize:"0.8rem",fontWeight:700,color:"grey.800",letterSpacing:"0.02em",py:.5,borderBottom:"1px solid",borderColor:"grey.300",mb:.5},children:E.subjectTitle}),m.jsx(x.TableContainer,{sx:{flex:1,overflow:"hidden"},children:m.jsxs(x.Table,{size:"small",sx:{borderCollapse:"collapse"},children:[m.jsx(x.TableHead,{children:m.jsxs(x.TableRow,{children:[m.jsx(x.TableCell,{align:"center",sx:{width:48,border:"1px solid #000",fontWeight:700,fontSize:"0.75rem",py:.75,bgcolor:"grey.100"},children:"№"}),m.jsx(x.TableCell,{sx:{border:"1px solid #000",fontWeight:700,fontSize:"0.75rem",py:.75,bgcolor:"grey.100"},children:"Варианты ответов (заполните кружок)"})]})}),m.jsx(x.TableBody,{children:N.map((F,H)=>{const j=Y+H+1,U=F.questionTypeId==="boolean",L=F.questionTypeId==="oneCorrect"||F.questionTypeId==="manyCorrect",ae=U||L;return m.jsxs(x.TableRow,{children:[m.jsx(x.TableCell,{align:"center",sx:{width:48,border:"1px solid #000",fontWeight:600,fontSize:"0.8125rem",py:.75},children:j}),m.jsxs(x.TableCell,{sx:{border:"1px solid #000",py:.75},children:[U&&m.jsxs(x.Stack,{direction:"row",alignItems:"center",spacing:2,children:[m.jsxs(x.Stack,{direction:"row",alignItems:"center",spacing:.5,children:[m.jsx(Qh,{}),m.jsx(x.Typography,{variant:"body2",sx:{fontSize:"0.8125rem"},children:"И"})]}),m.jsxs(x.Stack,{direction:"row",alignItems:"center",spacing:.5,children:[m.jsx(Qh,{}),m.jsx(x.Typography,{variant:"body2",sx:{fontSize:"0.8125rem"},children:"Л"})]})]}),L&&F.options.length>0&&m.jsx(x.Stack,{direction:"row",alignItems:"center",spacing:1.5,flexWrap:"wrap",children:F.options.slice(0,6).map((Te,We)=>m.jsxs(x.Stack,{direction:"row",alignItems:"center",spacing:.5,children:[m.jsx(Qh,{}),m.jsx(x.Typography,{variant:"body2",sx:{fontSize:"0.8125rem"},children:lv[We]})]},We))}),!ae&&m.jsx(x.Box,{sx:{borderBottom:"1px solid #000",minHeight:20,width:"70%"}})]})]},F.id)})})]})})]},E.subjectTitle??`no-subject-${k}`)}),m.jsx(x.Divider,{sx:{borderColor:"#000"}}),m.jsxs(x.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{minHeight:32},children:[m.jsx(x.Typography,{variant:"caption",sx:{fontSize:"0.65rem",color:"grey.500",letterSpacing:"0.02em"},children:"зона сканирования"}),m.jsxs(x.Typography,{variant:"caption",sx:{fontSize:"0.75rem",fontWeight:500},children:["Страница ",l," из ",d]})]})]})]})};function ov(t){if(!t.some(d=>d.subjectTitle!=null&&d.subjectTitle.trim()!==""))return[{subjectTitle:null,questions:t}];const r=[],l=new Map;for(const d of t){const b=d.subjectTitle!=null&&d.subjectTitle.trim()!==""?d.subjectTitle.trim():null;l.has(b)||(l.set(b,[]),r.push(b)),l.get(b).push(d)}return r.map(d=>({subjectTitle:d,questions:l.get(d)}))}const sv=({data:t,options:e={}})=>{const r=e.language||t.language||t.locale||"ru",l=t.questions,d=ii.default.useMemo(()=>ov(l),[l]),b=d.length>1,p=Math.ceil(l.length/i1);let E=0;const k=[];for(const N of d){const{subjectTitle:F,questions:H}=N;for(let j=0;j<H.length;j+=x2){const U=H.slice(j,j+x2),L=E;E+=U.length,k.push({key:`q-${F??"all"}-${j}`,isFirstInGroup:j===0,subjectTitle:F,chunk:U,startIndex:L})}}const Y=k.length;return m.jsxs(x.Box,{sx:{width:"100%",maxWidth:"210mm",margin:"0 auto",bgcolor:"#fff",textAlign:"left"},children:[k.map((N,F)=>m.jsxs(x.Box,{sx:{width:"100%",minHeight:"100vh",p:Wb,boxSizing:"border-box",breakAfter:"page",pageBreakAfter:"always",...N.isFirstInGroup&&F>0?{breakBefore:"page",pageBreakBefore:"always"}:{},backgroundColor:"#fff",position:"relative",textAlign:"left"},children:[m.jsxs(x.Box,{sx:{mb:1.5,pb:1,borderBottom:"1px solid #e0e0e0",textAlign:"left"},children:[m.jsx(x.Typography,{variant:"h5",fontWeight:700,sx:{fontSize:"1.2rem",fontFamily:"inherit"},children:t.title}),m.jsx(x.Typography,{variant:"body2",color:"text.secondary",sx:{mt:.25,fontSize:"0.8125rem"},children:d.map(H=>`${H.subjectTitle??"Без предмета"}: ${H.questions.length}`).join(" · ")})]}),b&&N.isFirstInGroup&&N.subjectTitle&&m.jsx(x.Box,{sx:{mt:.5,mb:1.25,py:.75,px:1.25,bgcolor:"grey.100",borderLeft:"4px solid",borderColor:"primary.main",borderRadius:0,textAlign:"left"},children:m.jsx(x.Typography,{variant:"subtitle1",fontWeight:700,sx:{fontSize:"1rem",letterSpacing:"0.02em",color:"text.primary"},children:N.subjectTitle})}),N.chunk.map((H,j)=>m.jsx(t5,{q:H,index:N.startIndex+j,lang:r},H.id)),m.jsxs(x.Typography,{variant:"caption",color:"text.secondary",sx:{position:"absolute",bottom:8,right:14},children:["Страница ",F+1,"/",Y]})]},N.key)),Array.from({length:p}).map((N,F)=>m.jsx(x.Box,{sx:{breakBefore:"page",pageBreakBefore:"always",position:"relative",width:Yb,minHeight:Pb,boxSizing:"border-box"},children:m.jsx(r5,{data:t,startIndex:F*i1,endIndex:Math.min((F+1)*i1,l.length),pageNum:F+1,totalPages:p})},`sheet-${F}`))]})},uv=iv({palette:{primary:{lighter:"#E3F2FD",light:"#64B5F6",main:"#1976D2",dark:"#1565C0",darker:"#0D47A1",contrastText:"#FFFFFF"},secondary:{lighter:"#D4F8FE",light:"#A8F3FD",main:"#5EEBFC",dark:"#35C7E0",darker:"#1E9CB5",contrastText:"#000000"},info:{lighter:"#B8E5FC",light:"#6BCFFA",main:"#12B3F9",dark:"#0D8AC7",darker:"#086295",contrastText:"#FFFFFF"},success:{lighter:"#E8F5E9",light:"#81C784",main:"#4CAF50",dark:"#388E3C",darker:"#2E7D32",contrastText:"#FFFFFF"},warning:{lighter:"#FFF5CC",light:"#FFD666",main:"#FFAB00",dark:"#CC8800",darker:"#996600",contrastText:"#1C252E"},error:{lighter:"#FFD4C8",light:"#FFA891",main:"#FF5630",dark:"#CC4426",darker:"#99331C",contrastText:"#FFFFFF"},grey:{50:"#FCFDFD",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#1C252E",900:"#141A21"},background:{default:"#FFFFFF",paper:"#FFFFFF"},text:{primary:"#1C252E",secondary:"#637381",disabled:"#919EAB"}},typography:{fontFamily:'"Inter Variable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',h1:{fontFamily:'"Barlow", sans-serif',fontWeight:800,fontSize:"2.5rem",lineHeight:1.25},h2:{fontFamily:'"Barlow", sans-serif',fontWeight:800,fontSize:"2rem",lineHeight:1.33},h3:{fontFamily:'"Barlow", sans-serif',fontWeight:700,fontSize:"1.5rem",lineHeight:1.5},h4:{fontWeight:700,fontSize:"1.25rem",lineHeight:1.5},h5:{fontWeight:700,fontSize:"1.125rem",lineHeight:1.5},h6:{fontWeight:600,fontSize:"1.0625rem",lineHeight:1.56},body1:{fontSize:"1rem",lineHeight:1.5},body2:{fontSize:"0.875rem",lineHeight:1.57},caption:{fontSize:"0.75rem",lineHeight:1.5}},shape:{borderRadius:8},spacing:8}),cv=({children:t})=>m.jsxs(x.ThemeProvider,{theme:uv,children:[m.jsx(x.CssBaseline,{}),t]}),hv=({data:t,options:e={}})=>{const r=e.language??"ru",l=e.includeDetailedAnalysisByQuestions!==!1,d=e.includeSubjectBreakdown!==!1,b=t.student&&(`${t.student.firstName??""} ${t.student.lastName??""}`.trim()||t.student.email)||"—";return m.jsxs(x.Box,{sx:{p:3,backgroundColor:"#F9FAFB",minHeight:"100vh"},children:[m.jsxs(x.Paper,{elevation:0,sx:{p:4,mb:3,backgroundColor:"white",border:"1px solid",borderColor:"divider",borderRadius:2},children:[m.jsxs(x.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",mb:3},children:[m.jsxs(x.Box,{sx:{display:"flex",alignItems:"center",flex:1},children:[m.jsx(Ut.Person,{sx:{fontSize:40,color:"primary.main",mr:2}}),m.jsxs(x.Box,{sx:{flex:1},children:[m.jsx(x.Typography,{variant:"h3",component:"h1",gutterBottom:!0,fontWeight:700,children:fe("ent.sessionReportTitle",r)}),m.jsxs(x.Typography,{variant:"body2",color:"text.secondary",children:[t.testTitle,t.testVariant!=null?` · ${fe("ent.variant",r)} ${String(t.testVariant)}`:` · ${fe("ent.variant",r)} ${t.testId.slice(0,8)}…`]})]})]}),m.jsx(x.Box,{sx:{ml:3},children:m.jsx("img",{src:$h(),alt:"SANA",style:{height:"60px",width:"auto",maxWidth:"200px",display:"block"}})})]}),m.jsx(x.Divider,{sx:{my:2}}),m.jsxs(x.Grid,{container:!0,spacing:2,children:[m.jsxs(x.Grid,{size:{xs:12,sm:6,md:3},children:[m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("session.student",r)}),m.jsx(x.Typography,{variant:"body2",fontWeight:600,children:b})]}),m.jsxs(x.Grid,{size:{xs:12,sm:6,md:3},children:[m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("session.status",r)}),m.jsx(x.Box,{sx:{mt:.5},children:m.jsx(x.Chip,{label:t.status==="COMPLETED"?fe("status.finished",r):t.status,size:"small",color:t.status==="COMPLETED"?"success":"default"})})]}),m.jsxs(x.Grid,{size:{xs:12,sm:6,md:3},children:[m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("session.started",r)}),m.jsx(x.Typography,{variant:"body2",fontWeight:600,children:Zi(t.startedAt)})]}),m.jsxs(x.Grid,{size:{xs:12,sm:6,md:3},children:[m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("session.finished",r)}),m.jsx(x.Typography,{variant:"body2",fontWeight:600,children:Zi(t.finishedAt)})]})]})]}),m.jsxs(x.Grid,{container:!0,spacing:3,sx:{mb:3},children:[m.jsx(x.Grid,{size:{xs:12,sm:6,md:3},children:m.jsx(x.Card,{elevation:0,sx:{border:"1px solid",borderColor:"divider",borderRadius:2},children:m.jsxs(x.CardContent,{children:[m.jsxs(x.Box,{sx:{display:"flex",alignItems:"center",mb:1},children:[m.jsx(Ut.BarChart,{sx:{color:"primary.main",mr:1,fontSize:20}}),m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("session.totalQuestions",r)})]}),m.jsx(x.Typography,{variant:"h4",fontWeight:700,color:"primary.main",children:t.totalQuestions}),m.jsxs(x.Typography,{variant:"caption",color:"text.secondary",children:[fe("ent.answered",r),": ",t.answeredQuestions]})]})})}),m.jsx(x.Grid,{size:{xs:12,sm:6,md:3},children:m.jsx(x.Card,{elevation:0,sx:{border:"1px solid",borderColor:"divider",borderRadius:2},children:m.jsxs(x.CardContent,{children:[m.jsxs(x.Box,{sx:{display:"flex",alignItems:"center",mb:1},children:[m.jsx(Ut.CheckCircle,{sx:{color:"success.main",mr:1,fontSize:20}}),m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("session.correctAnswers",r)})]}),m.jsxs(x.Typography,{variant:"h4",fontWeight:700,color:"success.main",children:[t.correctAnswers,"/",t.answeredQuestions]})]})})}),m.jsx(x.Grid,{size:{xs:12,sm:6,md:3},children:m.jsx(x.Card,{elevation:0,sx:{border:"1px solid",borderColor:"divider",borderRadius:2},children:m.jsxs(x.CardContent,{children:[m.jsxs(x.Box,{sx:{display:"flex",alignItems:"center",mb:1},children:[m.jsx(Ut.Score,{sx:{color:"info.main",mr:1,fontSize:20}}),m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("quiz.score",r)})]}),m.jsxs(x.Typography,{variant:"h4",fontWeight:700,color:"info.main",children:[typeof t.score=="number"?t.score.toFixed(1):t.score," / ",t.maxScore]})]})})}),m.jsx(x.Grid,{size:{xs:12,sm:6,md:3},children:m.jsx(x.Card,{elevation:0,sx:{border:"1px solid",borderColor:"divider",borderRadius:2},children:m.jsxs(x.CardContent,{children:[m.jsxs(x.Box,{sx:{display:"flex",alignItems:"center",mb:1},children:[m.jsx(Ut.Schedule,{sx:{color:"warning.main",mr:1,fontSize:20}}),m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("quiz.time",r)})]}),m.jsx(x.Typography,{variant:"h4",fontWeight:700,color:"warning.main",children:Yc(t.timeSpent)})]})})})]}),d&&t.subjectResults?.length>0&&m.jsxs(x.Paper,{elevation:0,sx:{p:3,mb:3,backgroundColor:"white",border:"1px solid",borderColor:"divider"},children:[m.jsx(x.Typography,{variant:"h6",gutterBottom:!0,fontWeight:600,children:fe("ent.bySubject",r)}),m.jsxs(x.Table,{size:"small",children:[m.jsx(x.TableHead,{children:m.jsxs(x.TableRow,{children:[m.jsx(x.TableCell,{children:fe("course.subject",r)}),m.jsx(x.TableCell,{align:"right",children:fe("session.totalQuestions",r)}),m.jsx(x.TableCell,{align:"right",children:fe("session.correctAnswers",r)}),m.jsx(x.TableCell,{align:"right",children:fe("quiz.score",r)})]})}),m.jsx(x.TableBody,{children:t.subjectResults.map(p=>m.jsxs(x.TableRow,{children:[m.jsx(x.TableCell,{children:p.subjectTitle}),m.jsx(x.TableCell,{align:"right",children:p.total}),m.jsx(x.TableCell,{align:"right",children:p.correct}),m.jsx(x.TableCell,{align:"right",children:p.score})]},p.subjectId))})]})]}),l&&t.questionResults?.length>0&&m.jsxs(x.Paper,{elevation:0,sx:{p:3,mb:3,backgroundColor:"white",border:"1px solid",borderColor:"divider"},children:[m.jsx(x.Typography,{variant:"h6",gutterBottom:!0,fontWeight:600,children:fe("ent.detailedAnalysis",r)}),t.questionResults.map((p,E)=>{const k=p.options.filter(N=>p.correctOptionIds.includes(N.id)).map(N=>N.text).join(", "),Y=p.studentSelectedOptionIds.length?p.options.filter(N=>p.studentSelectedOptionIds.includes(N.id)).map(N=>N.text).join(", "):"—";return m.jsxs(x.Box,{sx:{py:2,borderBottom:E<t.questionResults.length-1?"1px solid":"none",borderColor:"divider"},children:[m.jsxs(x.Box,{sx:{display:"flex",alignItems:"center",gap:1,mb:1},children:[m.jsxs(x.Typography,{variant:"caption",color:"text.secondary",children:["#",p.order," · ",p.subjectTitle]}),p.isCorrect?m.jsx(Ut.CheckCircle,{sx:{fontSize:18,color:"success.main"}}):m.jsx(Ut.Cancel,{sx:{fontSize:18,color:"error.main"}})]}),m.jsx(Lc,{content:p.questionTitle,variant:"body2",sx:{mb:1}}),m.jsxs(x.Typography,{variant:"caption",color:"text.secondary",component:"span",display:"block",children:[fe("session.correctAnswer",r),":"," ",m.jsx(Lc,{content:k,variant:"caption",component:"span"})]}),m.jsxs(x.Typography,{variant:"caption",component:"span",display:"block",color:p.isCorrect?"success.dark":"error.dark",children:[fe("session.yourAnswer",r),":"," ",m.jsx(Lc,{content:Y,variant:"caption",component:"span"})]})]},p.questionId)})]})]})},dv=({data:t,options:e={}})=>{const r=e.language??"ru",l=e.includeQuestionList===!0,d=e.includeSubjectBreakdown!==!1,b=t.subjectQuestionCounts??{},p=t.subjectMaxScores??{},E=Object.keys(b).length?Object.keys(b):t.subjectsConfig?.mainSubjects??[];return m.jsxs(x.Box,{sx:{p:3,backgroundColor:"#F9FAFB",minHeight:"100vh"},children:[m.jsxs(x.Paper,{elevation:0,sx:{p:4,mb:3,backgroundColor:"white",border:"1px solid",borderColor:"divider",borderRadius:2},children:[m.jsxs(x.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",mb:3},children:[m.jsxs(x.Box,{sx:{display:"flex",alignItems:"center",flex:1},children:[m.jsx(Ut.School,{sx:{fontSize:40,color:"primary.main",mr:2}}),m.jsxs(x.Box,{sx:{flex:1},children:[m.jsx(x.Typography,{variant:"h3",component:"h1",gutterBottom:!0,fontWeight:700,children:fe("ent.testReportTitle",r)}),m.jsxs(x.Typography,{variant:"body2",color:"text.secondary",children:[t.title," · ",fe("ent.variant",r)," ",String(t.variant)]})]})]}),m.jsx(x.Box,{sx:{ml:3},children:m.jsx("img",{src:$h(),alt:"SANA",style:{height:"60px",width:"auto",maxWidth:"200px",display:"block"}})})]}),m.jsx(x.Divider,{sx:{my:2}}),m.jsxs(x.Grid,{container:!0,spacing:2,children:[m.jsxs(x.Grid,{size:{xs:12,sm:6,md:3},children:[m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("ent.testTitle",r)}),m.jsx(x.Typography,{variant:"body2",fontWeight:600,children:t.title})]}),m.jsxs(x.Grid,{size:{xs:12,sm:6,md:3},children:[m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("ent.variant",r)}),m.jsx(x.Typography,{variant:"body2",fontWeight:600,children:String(t.variant)})]}),m.jsxs(x.Grid,{size:{xs:12,sm:6,md:3},children:[m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("ent.year",r)}),m.jsx(x.Typography,{variant:"body2",fontWeight:600,children:t.year})]}),m.jsxs(x.Grid,{size:{xs:12,sm:6,md:3},children:[m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("ent.duration",r)}),m.jsx(x.Typography,{variant:"body2",fontWeight:600,children:Yc(t.duration)})]})]})]}),m.jsxs(x.Grid,{container:!0,spacing:3,sx:{mb:3},children:[m.jsx(x.Grid,{size:{xs:12,sm:6,md:4},children:m.jsx(x.Card,{elevation:0,sx:{border:"1px solid",borderColor:"divider",borderRadius:2},children:m.jsxs(x.CardContent,{children:[m.jsxs(x.Box,{sx:{display:"flex",alignItems:"center",mb:1},children:[m.jsx(Ut.Assignment,{sx:{color:"primary.main",mr:1,fontSize:20}}),m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("session.totalQuestions",r)})]}),m.jsx(x.Typography,{variant:"h4",fontWeight:700,color:"primary.main",children:t.totalQuestions})]})})}),m.jsx(x.Grid,{size:{xs:12,sm:6,md:4},children:m.jsx(x.Card,{elevation:0,sx:{border:"1px solid",borderColor:"divider",borderRadius:2},children:m.jsxs(x.CardContent,{children:[m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("quiz.maxScore",r)}),m.jsx(x.Typography,{variant:"h4",fontWeight:700,color:"info.main",children:t.maxScore})]})})}),m.jsx(x.Grid,{size:{xs:12,sm:6,md:4},children:m.jsx(x.Card,{elevation:0,sx:{border:"1px solid",borderColor:"divider",borderRadius:2},children:m.jsxs(x.CardContent,{children:[m.jsxs(x.Box,{sx:{display:"flex",alignItems:"center",mb:1},children:[m.jsx(Ut.Schedule,{sx:{color:"warning.main",mr:1,fontSize:20}}),m.jsx(x.Typography,{variant:"caption",color:"text.secondary",children:fe("ent.duration",r)})]}),m.jsx(x.Typography,{variant:"h4",fontWeight:700,color:"warning.main",children:Yc(t.duration)})]})})})]}),d&&E.length>0&&m.jsxs(x.Paper,{elevation:0,sx:{p:3,mb:3,backgroundColor:"white",border:"1px solid",borderColor:"divider"},children:[m.jsx(x.Typography,{variant:"h6",gutterBottom:!0,fontWeight:600,children:fe("ent.subjectBreakdown",r)}),m.jsxs(x.Table,{size:"small",children:[m.jsx(x.TableHead,{children:m.jsxs(x.TableRow,{children:[m.jsx(x.TableCell,{children:fe("course.subject",r)}),m.jsx(x.TableCell,{align:"right",children:fe("session.totalQuestions",r)}),m.jsx(x.TableCell,{align:"right",children:fe("quiz.maxScore",r)})]})}),m.jsx(x.TableBody,{children:E.map(k=>m.jsxs(x.TableRow,{children:[m.jsx(x.TableCell,{children:k}),m.jsx(x.TableCell,{align:"right",children:b[k]??"—"}),m.jsx(x.TableCell,{align:"right",children:p[k]??"—"})]},k))})]})]}),m.jsxs(x.Paper,{elevation:0,sx:{p:3,mb:3,backgroundColor:"white",border:"1px solid",borderColor:"divider"},children:[m.jsx(x.Typography,{variant:"h6",gutterBottom:!0,fontWeight:600,children:fe("ent.sessionsList",r)}),t.sessions&&t.sessions.length>0?m.jsxs(x.Table,{size:"small",children:[m.jsx(x.TableHead,{children:m.jsxs(x.TableRow,{children:[m.jsx(x.TableCell,{children:fe("session.student",r)}),m.jsx(x.TableCell,{children:fe("session.status",r)}),m.jsx(x.TableCell,{align:"right",children:fe("quiz.score",r)}),m.jsx(x.TableCell,{children:fe("session.started",r)}),m.jsx(x.TableCell,{children:fe("session.finished",r)}),m.jsx(x.TableCell,{align:"right",children:fe("quiz.time",r)})]})}),m.jsx(x.TableBody,{children:t.sessions.map(k=>{const Y=k.student&&(`${k.student.firstName??""} ${k.student.lastName??""}`.trim()||k.student.email)||"—";return m.jsxs(x.TableRow,{children:[m.jsx(x.TableCell,{children:Y}),m.jsx(x.TableCell,{children:k.status}),m.jsxs(x.TableCell,{align:"right",children:[k.score!=null?k.score.toFixed(1):"—",k.totalQuestions!=null?` / ${k.totalQuestions}`:""]}),m.jsx(x.TableCell,{children:Zi(k.startedAt)}),m.jsx(x.TableCell,{children:k.finishedAt?Zi(k.finishedAt):"—"}),m.jsx(x.TableCell,{align:"right",children:k.timeSpent!=null?Yc(k.timeSpent):"—"})]},k.id)})})]}):m.jsx(x.Typography,{variant:"body2",color:"text.secondary",children:fe("ent.noSessions",r)})]}),l&&t.questions?.length>0&&m.jsxs(x.Paper,{elevation:0,sx:{p:3,mb:3,backgroundColor:"white",border:"1px solid",borderColor:"divider"},children:[m.jsx(x.Typography,{variant:"h6",gutterBottom:!0,fontWeight:600,children:fe("ent.questionList",r)}),t.questions.map((k,Y)=>{const N=typeof k.subject?.title=="object"?ac(k.subject.title,r,k.subjectId):String(k.subject?.title??k.subjectId);return m.jsxs(x.Box,{sx:{py:2,borderBottom:Y<t.questions.length-1?"1px solid":"none",borderColor:"divider"},children:[m.jsxs(x.Typography,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:.5},children:["#",k.order," · ",N," · ",k.points," ",r==="ru"?"б.":"pts"]}),m.jsx(Lc,{content:k.question.title,variant:"body2",sx:{mb:1}}),k.question.options?.length>0&&m.jsx(x.Box,{component:"ul",sx:{m:0,pl:2.5},children:k.question.options.slice().sort((F,H)=>(F.order??0)-(H.order??0)).map(F=>m.jsx("li",{children:m.jsx(Lc,{content:F.text+(F.isCorrect?" ✓":""),variant:"caption",component:"span",sx:{color:"text.secondary"}})},F.id))})]},k.questionId)})]})]})};var Bh={},id={};var T2;function n5(){if(T2)return id;T2=1;var t=ii.default,e=_d.default;function r(u){var h="https://react.dev/errors/"+u;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)h+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+u+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),L=Symbol.for("react.scope"),ae=Symbol.for("react.activity"),Te=Symbol.for("react.legacy_hidden"),We=Symbol.for("react.memo_cache_sentinel"),Ge=Symbol.for("react.view_transition"),Fe=Symbol.iterator;function me(u){return u===null||typeof u!="object"?null:(u=Fe&&u[Fe]||u["@@iterator"],typeof u=="function"?u:null)}var pe=Array.isArray;function et(u,h){var y=u.length&3,C=u.length-y,z=h;for(h=0;h<C;){var Z=u.charCodeAt(h)&255|(u.charCodeAt(++h)&255)<<8|(u.charCodeAt(++h)&255)<<16|(u.charCodeAt(++h)&255)<<24;++h,Z=3432918353*(Z&65535)+((3432918353*(Z>>>16)&65535)<<16)&4294967295,Z=Z<<15|Z>>>17,Z=461845907*(Z&65535)+((461845907*(Z>>>16)&65535)<<16)&4294967295,z^=Z,z=z<<13|z>>>19,z=5*(z&65535)+((5*(z>>>16)&65535)<<16)&4294967295,z=(z&65535)+27492+(((z>>>16)+58964&65535)<<16)}switch(Z=0,y){case 3:Z^=(u.charCodeAt(h+2)&255)<<16;case 2:Z^=(u.charCodeAt(h+1)&255)<<8;case 1:Z^=u.charCodeAt(h)&255,Z=3432918353*(Z&65535)+((3432918353*(Z>>>16)&65535)<<16)&4294967295,Z=Z<<15|Z>>>17,z^=461845907*(Z&65535)+((461845907*(Z>>>16)&65535)<<16)&4294967295}return z^=u.length,z^=z>>>16,z=2246822507*(z&65535)+((2246822507*(z>>>16)&65535)<<16)&4294967295,z^=z>>>13,z=3266489909*(z&65535)+((3266489909*(z>>>16)&65535)<<16)&4294967295,(z^z>>>16)>>>0}var lt=Object.assign,Ke=Object.prototype.hasOwnProperty,pt=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]*$"),Dt={},K={};function $e(u){return Ke.call(K,u)?!0:Ke.call(Dt,u)?!1:pt.test(u)?K[u]=!0:(Dt[u]=!0,!1)}var Me=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(" ")),Se=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"]]),he=/["'&<>]/;function Re(u){if(typeof u=="boolean"||typeof u=="number"||typeof u=="bigint")return""+u;u=""+u;var h=he.exec(u);if(h){var y="",C,z=0;for(C=h.index;C<u.length;C++){switch(u.charCodeAt(C)){case 34:h="&quot;";break;case 38:h="&amp;";break;case 39:h="&#x27;";break;case 60:h="&lt;";break;case 62:h="&gt;";break;default:continue}z!==C&&(y+=u.slice(z,C)),z=C+1,y+=h}u=z!==C?y+u.slice(z,C):y}return u}var Br=/([A-Z])/g,Bi=/^ms-/,ue=/^[\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 re(u){return ue.test(""+u)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":u}var Ue=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,st=e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,it={pending:!1,data:null,method:null,action:null},_e=st.d;st.d={f:_e.f,r:_e.r,D:Si,C:Ln,L:To,m:G0,X:dc,S:_n,M:ku};var ut=[],tt=null,Rt=/(<\/|<)(s)(cript)/gi;function mt(u,h,y,C){return""+h+(y==="s"?"\\u0073":"\\u0053")+C}function ct(u,h,y,C,z){return{idPrefix:u===void 0?"":u,nextFormID:0,streamingFormat:0,bootstrapScriptContent:y,bootstrapScripts:C,bootstrapModules:z,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function Mt(u,h,y,C){return{insertionMode:u,selectedValue:h,tagScope:y,viewTransition:C}}function qe(u,h,y){var C=u.tagScope&-25;switch(h){case"noscript":return Mt(2,null,C|1,null);case"select":return Mt(2,y.value!=null?y.value:y.defaultValue,C,null);case"svg":return Mt(4,null,C,null);case"picture":return Mt(2,null,C|2,null);case"math":return Mt(5,null,C,null);case"foreignObject":return Mt(2,null,C,null);case"table":return Mt(6,null,C,null);case"thead":case"tbody":case"tfoot":return Mt(7,null,C,null);case"colgroup":return Mt(9,null,C,null);case"tr":return Mt(8,null,C,null);case"head":if(2>u.insertionMode)return Mt(3,null,C,null);break;case"html":if(u.insertionMode===0)return Mt(1,null,C,null)}return 6<=u.insertionMode||2>u.insertionMode?Mt(2,null,C,null):u.tagScope!==C?Mt(u.insertionMode,u.selectedValue,C,null):u}function ot(u){return u===null?null:{update:u.update,enter:"none",exit:"none",share:u.update,name:u.autoName,autoName:u.autoName,nameIdx:0}}function yr(u,h){return h.tagScope&32&&(u.instructions|=128),Mt(h.insertionMode,h.selectedValue,h.tagScope|12,ot(h.viewTransition))}function It(u,h){u=ot(h.viewTransition);var y=h.tagScope|16;return u!==null&&u.share!=="none"&&(y|=64),Mt(h.insertionMode,h.selectedValue,y,u)}var Jr=new Map;function Qi(u,h){if(typeof h!="object")throw Error(r(62));var y=!0,C;for(C in h)if(Ke.call(h,C)){var z=h[C];if(z!=null&&typeof z!="boolean"&&z!==""){if(C.indexOf("--")===0){var Z=Re(C);z=Re((""+z).trim())}else Z=Jr.get(C),Z===void 0&&(Z=Re(C.replace(Br,"-$1").toLowerCase().replace(Bi,"-ms-")),Jr.set(C,Z)),z=typeof z=="number"?z===0||Me.has(C)?""+z:z+"px":Re((""+z).trim());y?(y=!1,u.push(' style="',Z,":",z)):u.push(";",Z,":",z)}}y||u.push('"')}function Ei(u,h,y){y&&typeof y!="function"&&typeof y!="symbol"&&u.push(" ",h,'=""')}function $r(u,h,y){typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&u.push(" ",h,'="',Re(y),'"')}var yn=Re("javascript:throw new Error('React form unexpectedly submitted.')");function jn(u,h){this.push('<input type="hidden"'),pn(u),$r(this,"name",h),$r(this,"value",u),this.push("/>")}function pn(u){if(typeof u!="string")throw Error(r(480))}function ki(u,h){if(typeof h.$$FORM_ACTION=="function"){var y=u.nextFormID++;u=u.idPrefix+y;try{var C=h.$$FORM_ACTION(u);if(C){var z=C.data;z?.forEach(pn)}return C}catch(Z){if(typeof Z=="object"&&Z!==null&&typeof Z.then=="function")throw Z}}return null}function P0(u,h,y,C,z,Z,J,ve){var te=null;if(typeof C=="function"){var ge=ki(h,C);ge!==null?(ve=ge.name,C=ge.action||"",z=ge.encType,Z=ge.method,J=ge.target,te=ge.data):(u.push(" ","formAction",'="',yn,'"'),J=Z=z=C=ve=null,sc(h,y))}return ve!=null&&Vt(u,"name",ve),C!=null&&Vt(u,"formAction",C),z!=null&&Vt(u,"formEncType",z),Z!=null&&Vt(u,"formMethod",Z),J!=null&&Vt(u,"formTarget",J),te}function Vt(u,h,y){switch(h){case"className":$r(u,"class",y);break;case"tabIndex":$r(u,"tabindex",y);break;case"dir":case"role":case"viewBox":case"width":case"height":$r(u,h,y);break;case"style":Qi(u,y);break;case"src":case"href":if(y==="")break;case"action":case"formAction":if(y==null||typeof y=="function"||typeof y=="symbol"||typeof y=="boolean")break;y=re(""+y),u.push(" ",h,'="',Re(y),'"');break;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"ref":break;case"autoFocus":case"multiple":case"muted":Ei(u,h.toLowerCase(),y);break;case"xlinkHref":if(typeof y=="function"||typeof y=="symbol"||typeof y=="boolean")break;y=re(""+y),u.push(" ","xlink:href",'="',Re(y),'"');break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":typeof y!="function"&&typeof y!="symbol"&&u.push(" ",h,'="',Re(y),'"');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":y&&typeof y!="function"&&typeof y!="symbol"&&u.push(" ",h,'=""');break;case"capture":case"download":y===!0?u.push(" ",h,'=""'):y!==!1&&typeof y!="function"&&typeof y!="symbol"&&u.push(" ",h,'="',Re(y),'"');break;case"cols":case"rows":case"size":case"span":typeof y!="function"&&typeof y!="symbol"&&!isNaN(y)&&1<=y&&u.push(" ",h,'="',Re(y),'"');break;case"rowSpan":case"start":typeof y=="function"||typeof y=="symbol"||isNaN(y)||u.push(" ",h,'="',Re(y),'"');break;case"xlinkActuate":$r(u,"xlink:actuate",y);break;case"xlinkArcrole":$r(u,"xlink:arcrole",y);break;case"xlinkRole":$r(u,"xlink:role",y);break;case"xlinkShow":$r(u,"xlink:show",y);break;case"xlinkTitle":$r(u,"xlink:title",y);break;case"xlinkType":$r(u,"xlink:type",y);break;case"xmlBase":$r(u,"xml:base",y);break;case"xmlLang":$r(u,"xml:lang",y);break;case"xmlSpace":$r(u,"xml:space",y);break;default:if((!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(h=Se.get(h)||h,$e(h))){switch(typeof y){case"function":case"symbol":return;case"boolean":var C=h.toLowerCase().slice(0,5);if(C!=="data-"&&C!=="aria-")return}u.push(" ",h,'="',Re(y),'"')}}}function qn(u,h,y){if(h!=null){if(y!=null)throw Error(r(60));if(typeof h!="object"||!("__html"in h))throw Error(r(61));h=h.__html,h!=null&&u.push(""+h)}}function pr(u){var h="";return t.Children.forEach(u,function(y){y!=null&&(h+=y)}),h}function sc(u,h){if((u.instructions&16)===0){u.instructions|=16;var y=h.preamble,C=h.bootstrapChunks;(y.htmlChunks||y.headChunks)&&C.length===0?(C.push(h.startInlineScript),js(C,u),C.push(">",`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,"<\/script>")):C.unshift(h.startInlineScript,">",`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,"<\/script>")}}function en(u,h){u.push(Yr("link"));for(var y in h)if(Ke.call(h,y)){var C=h[y];if(C!=null)switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"link"));default:Vt(u,y,C)}}return u.push("/>"),null}var Tu=/(<\/|<)(s)(tyle)/gi;function Cu(u,h,y,C){return""+h+(y==="s"?"\\73 ":"\\53 ")+C}function gl(u,h,y){u.push(Yr(y));for(var C in h)if(Ke.call(h,C)){var z=h[C];if(z!=null)switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,y));default:Vt(u,C,z)}}return u.push("/>"),null}function Bu(u,h){u.push(Yr("title"));var y=null,C=null,z;for(z in h)if(Ke.call(h,z)){var Z=h[z];if(Z!=null)switch(z){case"children":y=Z;break;case"dangerouslySetInnerHTML":C=Z;break;default:Vt(u,z,Z)}}return u.push(">"),h=Array.isArray(y)?2>y.length?y[0]:null:y,typeof h!="function"&&typeof h!="symbol"&&h!==null&&h!==void 0&&u.push(Re(""+h)),qn(u,C,y),u.push(xo("title")),null}function Xs(u,h){u.push(Yr("script"));var y=null,C=null,z;for(z in h)if(Ke.call(h,z)){var Z=h[z];if(Z!=null)switch(z){case"children":y=Z;break;case"dangerouslySetInnerHTML":C=Z;break;default:Vt(u,z,Z)}}return u.push(">"),qn(u,C,y),typeof y=="string"&&u.push((""+y).replace(Rt,mt)),u.push(xo("script")),null}function yo(u,h,y){u.push(Yr(y));var C=y=null,z;for(z in h)if(Ke.call(h,z)){var Z=h[z];if(Z!=null)switch(z){case"children":y=Z;break;case"dangerouslySetInnerHTML":C=Z;break;default:Vt(u,z,Z)}}return u.push(">"),qn(u,C,y),y}function Gl(u,h,y){u.push(Yr(y));var C=y=null,z;for(z in h)if(Ke.call(h,z)){var Z=h[z];if(Z!=null)switch(z){case"children":y=Z;break;case"dangerouslySetInnerHTML":C=Z;break;default:Vt(u,z,Z)}}return u.push(">"),qn(u,C,y),typeof y=="string"?(u.push(Re(y)),null):y}var po=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Us=new Map;function Yr(u){var h=Us.get(u);if(h===void 0){if(!po.test(u))throw Error(r(65,u));h="<"+u,Us.set(u,h)}return h}function Er(u,h,y,C,z,Z,J,ve,te){switch(h){case"div":case"span":case"svg":case"path":break;case"a":u.push(Yr("a"));var ge=null,Ee=null,Ae;for(Ae in y)if(Ke.call(y,Ae)){var Ie=y[Ae];if(Ie!=null)switch(Ae){case"children":ge=Ie;break;case"dangerouslySetInnerHTML":Ee=Ie;break;case"href":Ie===""?$r(u,"href",""):Vt(u,Ae,Ie);break;default:Vt(u,Ae,Ie)}}if(u.push(">"),qn(u,Ee,ge),typeof ge=="string"){u.push(Re(ge));var ht=null}else ht=ge;return ht;case"g":case"p":case"li":break;case"select":u.push(Yr("select"));var zt=null,xt=null,gt;for(gt in y)if(Ke.call(y,gt)){var Ct=y[gt];if(Ct!=null)switch(gt){case"children":zt=Ct;break;case"dangerouslySetInnerHTML":xt=Ct;break;case"defaultValue":case"value":break;default:Vt(u,gt,Ct)}}return u.push(">"),qn(u,xt,zt),zt;case"option":var yt=ve.selectedValue;u.push(Yr("option"));var Mr=null,Nt=null,Qt=null,ar=null,kt;for(kt in y)if(Ke.call(y,kt)){var Lr=y[kt];if(Lr!=null)switch(kt){case"children":Mr=Lr;break;case"selected":Qt=Lr;break;case"dangerouslySetInnerHTML":ar=Lr;break;case"value":Nt=Lr;default:Vt(u,kt,Lr)}}if(yt!=null){var $t=Nt!==null?""+Nt:pr(Mr);if(pe(yt)){for(var $n=0;$n<yt.length;$n++)if(""+yt[$n]===$t){u.push(' selected=""');break}}else""+yt===$t&&u.push(' selected=""')}else Qt&&u.push(' selected=""');return u.push(">"),qn(u,ar,Mr),Mr;case"textarea":u.push(Yr("textarea"));var lr=null,Jt=null,er=null,Bt;for(Bt in y)if(Ke.call(y,Bt)){var tr=y[Bt];if(tr!=null)switch(Bt){case"children":er=tr;break;case"value":lr=tr;break;case"defaultValue":Jt=tr;break;case"dangerouslySetInnerHTML":throw Error(r(91));default:Vt(u,Bt,tr)}}if(lr===null&&Jt!==null&&(lr=Jt),u.push(">"),er!=null){if(lr!=null)throw Error(r(92));if(pe(er)){if(1<er.length)throw Error(r(93));lr=""+er[0]}lr=""+er}return typeof lr=="string"&&lr[0]===`
295
295
  `&&u.push(`
296
296
  `),lr!==null&&u.push(Re(""+lr)),null;case"input":u.push(Yr("input"));var kn=null,Yt=null,_l=null,El=null,ea=null,si=null,ui=null,ci=null,tl=null,kl;for(kl in y)if(Ke.call(y,kl)){var An=y[kl];if(An!=null)switch(kl){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"input"));case"name":kn=An;break;case"formAction":Yt=An;break;case"formEncType":_l=An;break;case"formMethod":El=An;break;case"formTarget":ea=An;break;case"defaultChecked":tl=An;break;case"defaultValue":ui=An;break;case"checked":ci=An;break;case"value":si=An;break;default:Vt(u,kl,An)}}var Wo=P0(u,C,z,Yt,_l,El,ea,kn);return ci!==null?Ei(u,"checked",ci):tl!==null&&Ei(u,"checked",tl),si!==null?Vt(u,"value",si):ui!==null&&Vt(u,"value",ui),u.push("/>"),Wo?.forEach(jn,u),null;case"button":u.push(Yr("button"));var Yo=null,c0=null,q0=null,xs=null,$l=null,ta=null,h0=null,ra;for(ra in y)if(Ke.call(y,ra)){var $a=y[ra];if($a!=null)switch(ra){case"children":Yo=$a;break;case"dangerouslySetInnerHTML":c0=$a;break;case"name":q0=$a;break;case"formAction":xs=$a;break;case"formEncType":$l=$a;break;case"formMethod":ta=$a;break;case"formTarget":h0=$a;break;default:Vt(u,ra,$a)}}var Sl=P0(u,C,z,xs,$l,ta,h0,q0);if(u.push(">"),Sl?.forEach(jn,u),qn(u,c0,Yo),typeof Yo=="string"){u.push(Re(Yo));var d0=null}else d0=Yo;return d0;case"form":u.push(Yr("form"));var Dl=null,_0=null,un=null,f0=null,eo=null,ws=null,Po;for(Po in y)if(Ke.call(y,Po)){var tn=y[Po];if(tn!=null)switch(Po){case"children":Dl=tn;break;case"dangerouslySetInnerHTML":_0=tn;break;case"action":un=tn;break;case"encType":f0=tn;break;case"method":eo=tn;break;case"target":ws=tn;break;default:Vt(u,Po,tn)}}var ei=null,Wt=null;if(typeof un=="function"){var Ml=ki(C,un);Ml!==null?(un=Ml.action||"",f0=Ml.encType,eo=Ml.method,ws=Ml.target,ei=Ml.data,Wt=Ml.name):(u.push(" ","action",'="',yn,'"'),ws=eo=f0=un=null,sc(C,z))}if(un!=null&&Vt(u,"action",un),f0!=null&&Vt(u,"encType",f0),eo!=null&&Vt(u,"method",eo),ws!=null&&Vt(u,"target",ws),u.push(">"),Wt!==null&&(u.push('<input type="hidden"'),$r(u,"name",Wt),u.push("/>"),ei?.forEach(jn,u)),qn(u,_0,Dl),typeof Dl=="string"){u.push(Re(Dl));var As=null}else As=Dl;return As;case"menuitem":u.push(Yr("menuitem"));for(var to in y)if(Ke.call(y,to)){var Gr=y[to];if(Gr!=null)switch(to){case"children":case"dangerouslySetInnerHTML":throw Error(r(400));default:Vt(u,to,Gr)}}return u.push(">"),null;case"object":u.push(Yr("object"));var Ta=null,ro=null,Lo;for(Lo in y)if(Ke.call(y,Lo)){var hi=y[Lo];if(hi!=null)switch(Lo){case"children":Ta=hi;break;case"dangerouslySetInnerHTML":ro=hi;break;case"data":var In=re(""+hi);if(In==="")break;u.push(" ","data",'="',Re(In),'"');break;default:Vt(u,Lo,hi)}}if(u.push(">"),qn(u,ro,Ta),typeof Ta=="string"){u.push(Re(Ta));var Ts=null}else Ts=Ta;return Ts;case"title":var na=ve.tagScope&1,Lu=ve.tagScope&4;if(ve.insertionMode===4||na||y.itemProp!=null)var Go=Bu(u,y);else Lu?Go=null:(Bu(z.hoistableChunks,y),Go=void 0);return Go;case"link":var g0=ve.tagScope&1,$0=ve.tagScope&4,eu=y.rel,rl=y.href,Oo=y.precedence;if(ve.insertionMode===4||g0||y.itemProp!=null||typeof eu!="string"||typeof rl!="string"||rl===""){en(u,y);var Io=null}else if(y.rel==="stylesheet")if(typeof Oo!="string"||y.disabled!=null||y.onLoad||y.onError)Io=en(u,y);else{var aa=z.styles.get(Oo),b0=C.styleResources.hasOwnProperty(rl)?C.styleResources[rl]:void 0;if(b0!==null){C.styleResources[rl]=null,aa||(aa={precedence:Re(Oo),rules:[],hrefs:[],sheets:new Map},z.styles.set(Oo,aa));var v0={state:0,props:lt({},y,{"data-precedence":y.precedence,precedence:null})};if(b0){b0.length===2&&O0(v0.props,b0);var Gu=z.preloads.stylesheets.get(rl);Gu&&0<Gu.length?Gu.length=0:v0.state=1}aa.sheets.set(rl,v0),J&&J.stylesheets.add(v0)}else if(aa){var Ou=aa.sheets.get(rl);Ou&&J&&J.stylesheets.add(Ou)}te&&u.push("<!-- -->"),Io=null}else y.onLoad||y.onError?Io=en(u,y):(te&&u.push("<!-- -->"),Io=$0?null:en(z.hoistableChunks,y));return Io;case"script":var tu=ve.tagScope&1,Iu=y.async;if(typeof y.src!="string"||!y.src||!Iu||typeof Iu=="function"||typeof Iu=="symbol"||y.onLoad||y.onError||ve.insertionMode===4||tu||y.itemProp!=null)var Hu=Xs(u,y);else{var cn=y.src;if(y.type==="module")var ru=C.moduleScriptResources,m0=z.preloads.moduleScripts;else ru=C.scriptResources,m0=z.preloads.scripts;var y0=ru.hasOwnProperty(cn)?ru[cn]:void 0;if(y0!==null){ru[cn]=null;var nu=y;if(y0){y0.length===2&&(nu=lt({},y),O0(nu,y0));var Zu=m0.get(cn);Zu&&(Zu.length=0)}var au=[];z.scripts.add(au),Xs(au,nu)}te&&u.push("<!-- -->"),Hu=null}return Hu;case"style":var iu=ve.tagScope&1,no=y.precedence,di=y.href,pc=y.nonce;if(ve.insertionMode===4||iu||y.itemProp!=null||typeof no!="string"||typeof di!="string"||di===""){u.push(Yr("style"));var Ho=null,p0=null,Yi;for(Yi in y)if(Ke.call(y,Yi)){var Cs=y[Yi];if(Cs!=null)switch(Yi){case"children":Ho=Cs;break;case"dangerouslySetInnerHTML":p0=Cs;break;default:Vt(u,Yi,Cs)}}u.push(">");var ao=Array.isArray(Ho)?2>Ho.length?Ho[0]:null:Ho;typeof ao!="function"&&typeof ao!="symbol"&&ao!==null&&ao!==void 0&&u.push((""+ao).replace(Tu,Cu)),qn(u,p0,Ho),u.push(xo("style"));var x0=null}else{var io=z.styles.get(no);if((C.styleResources.hasOwnProperty(di)?C.styleResources[di]:void 0)!==null){C.styleResources[di]=null,io||(io={precedence:Re(no),rules:[],hrefs:[],sheets:new Map},z.styles.set(no,io));var xc=z.nonce.style;if(!xc||xc===pc){io.hrefs.push(Re(di));var wc=io.rules,Pi=null,Bs=null,ti;for(ti in y)if(Ke.call(y,ti)){var lo=y[ti];if(lo!=null)switch(ti){case"children":Pi=lo;break;case"dangerouslySetInnerHTML":Bs=lo}}var Zo=Array.isArray(Pi)?2>Pi.length?Pi[0]:null:Pi;typeof Zo!="function"&&typeof Zo!="symbol"&&Zo!==null&&Zo!==void 0&&wc.push((""+Zo).replace(Tu,Cu)),qn(wc,Bs,Pi)}}io&&J&&J.styles.add(io),te&&u.push("<!-- -->"),x0=void 0}return x0;case"meta":var fi=ve.tagScope&1,Qu=ve.tagScope&4;if(ve.insertionMode===4||fi||y.itemProp!=null)var Ac=gl(u,y,"meta");else te&&u.push("<!-- -->"),Ac=Qu?null:typeof y.charSet=="string"?gl(z.charsetChunks,y,"meta"):y.name==="viewport"?gl(z.viewportChunks,y,"meta"):gl(z.hoistableChunks,y,"meta");return Ac;case"listing":case"pre":u.push(Yr(h));var Es=null,s=null,c;for(c in y)if(Ke.call(y,c)){var v=y[c];if(v!=null)switch(c){case"children":Es=v;break;case"dangerouslySetInnerHTML":s=v;break;default:Vt(u,c,v)}}if(u.push(">"),s!=null){if(Es!=null)throw Error(r(60));if(typeof s!="object"||!("__html"in s))throw Error(r(61));var B=s.__html;B!=null&&(typeof B=="string"&&0<B.length&&B[0]===`
297
297
  `?u.push(`
@@ -491,15 +491,19 @@ performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready
491
491
  -webkit-font-smoothing: antialiased;
492
492
  -moz-osx-font-smoothing: grayscale;
493
493
  background-color: #F9FAFB;
494
+ width: 100%;
495
+ max-width: 100%;
494
496
  }
495
497
  @media print {
496
498
  body {
497
499
  print-color-adjust: exact;
498
500
  -webkit-print-color-adjust: exact;
499
501
  background-color: white;
502
+ width: 100%;
503
+ max-width: 100%;
500
504
  }
501
505
  @page {
502
- margin: 18mm;
506
+ margin: 10mm;
503
507
  size: A4;
504
508
  }
505
509
  }
@@ -18431,11 +18431,7 @@ const N5 = ({
18431
18431
  /* @__PURE__ */ F(q, { variant: "h3", component: "h1", gutterBottom: !0, fontWeight: 700, children: ge("ent.sessionReportTitle", r) }),
18432
18432
  /* @__PURE__ */ U(q, { variant: "body2", color: "text.secondary", children: [
18433
18433
  t.testTitle,
18434
- " · ",
18435
- ge("ent.variant", r),
18436
- " ",
18437
- t.testId.slice(0, 8),
18438
- "…"
18434
+ t.testVariant != null ? ` · ${ge("ent.variant", r)} ${String(t.testVariant)}` : ` · ${ge("ent.variant", r)} ${t.testId.slice(0, 8)}…`
18439
18435
  ] })
18440
18436
  ] })
18441
18437
  ] }),
@@ -40503,15 +40499,19 @@ function X5(t) {
40503
40499
  -webkit-font-smoothing: antialiased;
40504
40500
  -moz-osx-font-smoothing: grayscale;
40505
40501
  background-color: #F9FAFB;
40502
+ width: 100%;
40503
+ max-width: 100%;
40506
40504
  }
40507
40505
  @media print {
40508
40506
  body {
40509
40507
  print-color-adjust: exact;
40510
40508
  -webkit-print-color-adjust: exact;
40511
40509
  background-color: white;
40510
+ width: 100%;
40511
+ max-width: 100%;
40512
40512
  }
40513
40513
  @page {
40514
- margin: 18mm;
40514
+ margin: 10mm;
40515
40515
  size: A4;
40516
40516
  }
40517
40517
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akai-mirai/report-ui",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "EMS Report UI Library - Beautiful report generation library for quiz and session results",
5
5
  "main": "./dist/ems-report-ui.cjs.js",
6
6
  "module": "./dist/ems-report-ui.es.js",