From d401135f006b1d622cf1c6bc0d8b294b6aeb416c Mon Sep 17 00:00:00 2001 From: Xiaodong Date: Sun, 28 Sep 2025 22:57:50 +0800 Subject: [PATCH 01/25] fix(frontend): chat input placeholder incorrect --- src/frontend/src/components/inputs/chat-input.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/components/inputs/chat-input.tsx b/src/frontend/src/components/inputs/chat-input.tsx index f24c7bf3..4892d571 100644 --- a/src/frontend/src/components/inputs/chat-input.tsx +++ b/src/frontend/src/components/inputs/chat-input.tsx @@ -36,7 +36,7 @@ export const ChatInput: FC = () => { onChange={(event) => setInput(event.target.value)} multiline maxRows={4} - placeholder='Enter your system prompt here...' + placeholder='How can Gradient help?' fullWidth onKeyDown={onKeyDown} slotProps={{ From f7f93976ec55cb1c3a6b54931994e6fd578cf941 Mon Sep 17 00:00:00 2001 From: Xiaodong Date: Sun, 28 Sep 2025 23:19:19 +0800 Subject: [PATCH 02/25] fix(frontend): button minWidth too large --- src/frontend/src/themes/components/form/button.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/themes/components/form/button.ts b/src/frontend/src/themes/components/form/button.ts index abc0979c..c76ccf92 100644 --- a/src/frontend/src/themes/components/form/button.ts +++ b/src/frontend/src/themes/components/form/button.ts @@ -51,7 +51,7 @@ const SIZES: readonly NonNullable[] = ['small', 'medium', ' const SIZE_REM_MAP: Record, number> = INPUT_SIZE_REM_MAP; -const MIN_WIDTH_MULTIPLY = 2; +const MIN_WIDTH_MULTIPLY = 3 / 2.25; const SIZE_PADDING_INLINE_REM_MAP: Record, number> = { small: 0.875, From b5b6f5df9d850bf747a7df8f685a7f7b560aed08 Mon Sep 17 00:00:00 2001 From: Xiaodong Date: Sun, 28 Sep 2025 23:30:20 +0800 Subject: [PATCH 03/25] fix(frontend): text button size and color incorrect --- .../src/components/inputs/chat-input.tsx | 12 ++++++--- .../src/themes/components/form/button.ts | 26 +++++++++---------- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/src/frontend/src/components/inputs/chat-input.tsx b/src/frontend/src/components/inputs/chat-input.tsx index 4892d571..327115ff 100644 --- a/src/frontend/src/components/inputs/chat-input.tsx +++ b/src/frontend/src/components/inputs/chat-input.tsx @@ -27,7 +27,7 @@ export const ChatInput: FC = () => { }); return ( - + {modelName} @@ -43,8 +43,14 @@ export const ChatInput: FC = () => { input: { sx: { flexDirection: 'column' }, endAdornment: ( - - - {dialogJoinCommand} )} @@ -159,6 +188,8 @@ export const DrawerLayout: FC = ({ children }) => { {children} + {dialogJoinCommand} + {dialogWaiting} {dialogRebalancing} ); From ab38013650a549a0680c8d6ba208acc32597efdb Mon Sep 17 00:00:00 2001 From: Xiaodong Date: Mon, 29 Sep 2025 14:08:21 +0800 Subject: [PATCH 16/25] fix(frontend): node join command label --- src/frontend/src/components/inputs/join-command.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/components/inputs/join-command.tsx b/src/frontend/src/components/inputs/join-command.tsx index ffe3d02d..c44590ed 100644 --- a/src/frontend/src/components/inputs/join-command.tsx +++ b/src/frontend/src/components/inputs/join-command.tsx @@ -54,7 +54,7 @@ export const JoinCommand: FC = () => { {Object.entries(nodeJoinCommand).map(([key, value]) => ( - {LABEL_MAP[key] || key}: + For {LABEL_MAP[key] || key}: {value} From 0e3a3046515e3cc953765caeca7b8e9fce43bd9e Mon Sep 17 00:00:00 2001 From: Xiaodong Date: Mon, 29 Sep 2025 16:26:09 +0800 Subject: [PATCH 17/25] fix(frontend): page join error alert --- src/frontend/src/pages/join.tsx | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/src/frontend/src/pages/join.tsx b/src/frontend/src/pages/join.tsx index 6532078f..afe40f6e 100644 --- a/src/frontend/src/pages/join.tsx +++ b/src/frontend/src/pages/join.tsx @@ -1,4 +1,4 @@ -import { useState } from 'react'; +import { useMemo, useState } from 'react'; import { Link as RouterLink } from 'react-router-dom'; import { Alert, @@ -30,10 +30,24 @@ const Stack = styled(MuiStack)(({ theme }) => { export default function PageJoin() { const [ - { networkType, initNodesNumber, modelName, modelInfoList }, + { + clusterInfo: { status: clusterStatus, initNodesNumber }, + nodeInfoList, + }, { setNetworkType, setInitNodesNumber, setModelName }, ] = useCluster(); + const isError = useMemo(() => { + if ( + nodeInfoList.length >= initNodesNumber + && nodeInfoList.every((node) => node.status === 'available') + && clusterStatus === 'waiting' + ) { + return true; + } + return false; + }, [clusterStatus, initNodesNumber, nodeInfoList]); + return ( - - If your nodes cannot connect properly, retry the above join command to restart the - server. - + {(isError && ( + + Your selected model requires more nodes. Please go back to the previous step to add + more nodes, or choose a smaller model. + + )) || ( + + If your nodes cannot connect properly, retry the above join command to restart the + server. + + )} From b5c15d9a4025082e3fa66138f3ac8bfb561906a9 Mon Sep 17 00:00:00 2001 From: Xiaodong Date: Mon, 29 Sep 2025 16:27:04 +0800 Subject: [PATCH 18/25] build(frontend): build for error feedback --- .../{chat-CbwKW4RP.js => chat-DD20GMag.js} | 2 +- .../{index-s_AXcvRx.js => index-CjW85zni.js} | 120 +++++++++--------- src/frontend/dist/assets/join-EB_i0cv0.js | 6 + src/frontend/dist/assets/join-fvdzhZQR.js | 6 - ...ut-Dqag71UG.js => main-layout-BuYSNSZl.js} | 96 +++++++------- .../{setup-DT_kALx_.js => setup-BAm7AVk9.js} | 2 +- src/frontend/dist/index.html | 2 +- 7 files changed, 117 insertions(+), 117 deletions(-) rename src/frontend/dist/assets/{chat-CbwKW4RP.js => chat-DD20GMag.js} (99%) rename src/frontend/dist/assets/{index-s_AXcvRx.js => index-CjW85zni.js} (74%) create mode 100644 src/frontend/dist/assets/join-EB_i0cv0.js delete mode 100644 src/frontend/dist/assets/join-fvdzhZQR.js rename src/frontend/dist/assets/{main-layout-Dqag71UG.js => main-layout-BuYSNSZl.js} (69%) rename src/frontend/dist/assets/{setup-DT_kALx_.js => setup-BAm7AVk9.js} (98%) diff --git a/src/frontend/dist/assets/chat-CbwKW4RP.js b/src/frontend/dist/assets/chat-DD20GMag.js similarity index 99% rename from src/frontend/dist/assets/chat-CbwKW4RP.js rename to src/frontend/dist/assets/chat-DD20GMag.js index d2d2d203..68bbd0bb 100644 --- a/src/frontend/dist/assets/chat-CbwKW4RP.js +++ b/src/frontend/dist/assets/chat-DD20GMag.js @@ -1,4 +1,4 @@ -import{h as A,f as N,r as x,u as H,j as a,s as T,c as U,b as z,d as W,m as V,e as Te,p as ze,q as Le,v as w,o as ee,i as Me,w as Re,l as je,S as ne,n as le}from"./index-s_AXcvRx.js";import{i as Z,b as qe,c as ie,F as $e,u as te,f as re,O as Ae,d as Ne,I as He,S as Ue,D as We,e as Ee,C as De}from"./main-layout-Dqag71UG.js";function Be(e){return A("MuiFormControl",e)}N("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Oe=e=>{const{classes:t,margin:r,fullWidth:o}=e,s={root:["root",r!=="none"&&`margin${z(r)}`,o&&"fullWidth"]};return W(s,Be,t)},_e=T("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${z(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ke=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormControl"}),{children:s,className:l,color:i="primary",component:p="div",disabled:n=!1,error:d=!1,focused:m,fullWidth:h=!1,hiddenLabel:b=!1,margin:g="none",required:f=!1,size:u="medium",variant:c="outlined",...C}=o,I={...o,color:i,component:p,disabled:n,error:d,fullWidth:h,hiddenLabel:b,margin:g,required:f,size:u,variant:c},G=Oe(I),[y,J]=x.useState(()=>{let F=!1;return s&&x.Children.forEach(s,v=>{if(!Z(v,["Input","Select"]))return;const j=Z(v,["Select"])?v.props.input:v;j&&qe(j.props)&&(F=!0)}),F}),[E,L]=x.useState(()=>{let F=!1;return s&&x.Children.forEach(s,v=>{Z(v,["Input","Select"])&&(ie(v.props,!0)||ie(v.props.inputProps,!0))&&(F=!0)}),F}),[D,M]=x.useState(!1);n&&D&&M(!1);const B=m!==void 0&&!n?m:D;let O;x.useRef(!1);const _=x.useCallback(()=>{L(!0)},[]),R=x.useCallback(()=>{L(!1)},[]),Q=x.useMemo(()=>({adornedStart:y,setAdornedStart:J,color:i,disabled:n,error:d,filled:E,focused:B,fullWidth:h,hiddenLabel:b,size:u,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:R,onFilled:_,registerEffect:O,required:f,variant:c}),[y,i,n,d,E,B,h,b,O,R,_,f,u,c]);return a.jsx($e.Provider,{value:Q,children:a.jsx(_e,{as:p,ownerState:I,className:U(G.root,l),ref:r,...C,children:s})})});function Ve(e){return A("MuiFormHelperText",e)}const de=N("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ce;const Ge=e=>{const{classes:t,contained:r,size:o,disabled:s,error:l,filled:i,focused:p,required:n}=e,d={root:["root",s&&"disabled",l&&"error",o&&`size${z(o)}`,r&&"contained",p&&"focused",i&&"filled",n&&"required"]};return W(d,Ve,t)},Je=T("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${z(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${de.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${de.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Qe=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormHelperText"}),{children:s,className:l,component:i="p",disabled:p,error:n,filled:d,focused:m,margin:h,required:b,variant:g,...f}=o,u=te(),c=re({props:o,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),C={...o,component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required};delete C.ownerState;const I=Ge(C);return a.jsx(Je,{as:i,className:U(I.root,l),ref:r,...f,ownerState:C,children:s===" "?ce||(ce=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});function Xe(e){return A("MuiFormLabel",e)}const $=N("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ye=e=>{const{classes:t,color:r,focused:o,disabled:s,error:l,filled:i,required:p}=e,n={root:["root",`color${z(r)}`,s&&"disabled",l&&"error",i&&"filled",o&&"focused",p&&"required"],asterisk:["asterisk",l&&"error"]};return W(n,Xe,t)},Ze=T("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Te()).map(([t])=>({props:{color:t},style:{[`&.${$.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),et=T("span",{name:"MuiFormLabel",slot:"Asterisk"})(V(({theme:e})=>({[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}))),tt=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormLabel"}),{children:s,className:l,color:i,component:p="label",disabled:n,error:d,filled:m,focused:h,required:b,...g}=o,f=te(),u=re({props:o,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),c={...o,color:u.color||"primary",component:p,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required},C=Ye(c);return a.jsxs(Ze,{as:p,ownerState:c,className:U(C.root,l),ref:r,...g,children:[s,u.required&&a.jsxs(et,{ownerState:c,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});function rt(e){return A("MuiInputLabel",e)}N("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ot=e=>{const{classes:t,formControl:r,size:o,shrink:s,disableAnimation:l,variant:i,required:p}=e,n={root:["root",r&&"formControl",!l&&"animated",s&&"shrink",o&&o!=="medium"&&`size${z(o)}`,i],asterisk:[p&&"asterisk"]},d=W(n,rt,t);return{...t,...d}},st=T(tt,{shouldForwardProp:e=>ze(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${$.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(V(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:o})=>t==="filled"&&r.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),at=x.forwardRef(function(t,r){const o=H({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:l,shrink:i,variant:p,className:n,...d}=o,m=te();let h=i;typeof h>"u"&&m&&(h=m.filled||m.focused||m.adornedStart);const b=re({props:o,muiFormControl:m,states:["size","variant","required","focused"]}),g={...o,disableAnimation:s,formControl:m,shrink:h,size:b.size,variant:b.variant,required:b.required,focused:b.focused},f=ot(g);return a.jsx(st,{"data-shrink":h,ref:r,className:U(f.root,n),...d,ownerState:g,classes:f})});function nt(e){return A("MuiTextField",e)}N("MuiTextField",["root"]);const lt={standard:He,filled:Ne,outlined:Ae},it=e=>{const{classes:t}=e;return W({root:["root"]},nt,t)},dt=T(Ke,{name:"MuiTextField",slot:"Root"})({}),ct=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:l=!1,children:i,className:p,color:n="primary",defaultValue:d,disabled:m=!1,error:h=!1,FormHelperTextProps:b,fullWidth:g=!1,helperText:f,id:u,InputLabelProps:c,inputProps:C,InputProps:I,inputRef:G,label:y,maxRows:J,minRows:E,multiline:L=!1,name:D,onBlur:M,onChange:B,onFocus:O,placeholder:_,required:R=!1,rows:Q,select:F=!1,SelectProps:v,slots:j={},slotProps:pe={},type:ue,value:oe,variant:K="outlined",...me}=o,S={...o,autoFocus:l,color:n,disabled:m,error:h,fullWidth:g,multiline:L,required:R,select:F,variant:K},fe=it(S),k=Le(u),X=f&&k?`${k}-helper-text`:void 0,se=y&&k?`${k}-label`:void 0,xe=lt[K],P={slots:j,slotProps:{input:I,inputLabel:c,htmlInput:C,formHelperText:b,select:v,...pe}},q={},Y=P.slotProps.inputLabel;K==="outlined"&&(Y&&typeof Y.shrink<"u"&&(q.notched=Y.shrink),q.label=y),F&&((!v||!v.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[he,be]=w("root",{elementType:dt,shouldForwardComponentProp:!0,externalForwardedProps:{...P,...me},ownerState:S,className:U(fe.root,p),ref:r,additionalProps:{disabled:m,error:h,fullWidth:g,required:R,color:n,variant:K}}),[ve,ge]=w("input",{elementType:xe,externalForwardedProps:P,additionalProps:q,ownerState:S}),[Ce,Fe]=w("inputLabel",{elementType:at,externalForwardedProps:P,ownerState:S}),[ye,Se]=w("htmlInput",{elementType:"input",externalForwardedProps:P,ownerState:S}),[ke,Pe]=w("formHelperText",{elementType:Qe,externalForwardedProps:P,ownerState:S}),[Ie,we]=w("select",{elementType:Ue,externalForwardedProps:P,ownerState:S}),ae=a.jsx(ve,{"aria-describedby":X,autoComplete:s,autoFocus:l,defaultValue:d,fullWidth:g,multiline:L,name:D,rows:Q,maxRows:J,minRows:E,type:ue,value:oe,id:k,inputRef:G,onBlur:M,onChange:B,onFocus:O,placeholder:_,inputProps:Se,slots:{input:j.htmlInput?ye:void 0},...ge});return a.jsxs(he,{...be,children:[y!=null&&y!==""&&a.jsx(Ce,{htmlFor:k,id:se,...Fe,children:y}),F?a.jsx(Ie,{"aria-describedby":X,id:k,labelId:se,value:oe,input:ae,...we,children:i}):ae,f&&a.jsx(ke,{id:X,...Pe,children:f})]})});/** +import{h as A,f as N,r as x,u as H,j as a,s as T,c as U,b as z,d as W,m as V,e as Te,p as ze,q as Le,v as w,o as ee,i as Me,w as Re,l as je,S as ne,n as le}from"./index-CjW85zni.js";import{i as Z,b as qe,c as ie,F as $e,u as te,f as re,O as Ae,d as Ne,I as He,S as Ue,D as We,e as Ee,C as De}from"./main-layout-BuYSNSZl.js";function Be(e){return A("MuiFormControl",e)}N("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Oe=e=>{const{classes:t,margin:r,fullWidth:o}=e,s={root:["root",r!=="none"&&`margin${z(r)}`,o&&"fullWidth"]};return W(s,Be,t)},_e=T("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${z(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ke=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormControl"}),{children:s,className:l,color:i="primary",component:p="div",disabled:n=!1,error:d=!1,focused:m,fullWidth:h=!1,hiddenLabel:b=!1,margin:g="none",required:f=!1,size:u="medium",variant:c="outlined",...C}=o,I={...o,color:i,component:p,disabled:n,error:d,fullWidth:h,hiddenLabel:b,margin:g,required:f,size:u,variant:c},G=Oe(I),[y,J]=x.useState(()=>{let F=!1;return s&&x.Children.forEach(s,v=>{if(!Z(v,["Input","Select"]))return;const j=Z(v,["Select"])?v.props.input:v;j&&qe(j.props)&&(F=!0)}),F}),[E,L]=x.useState(()=>{let F=!1;return s&&x.Children.forEach(s,v=>{Z(v,["Input","Select"])&&(ie(v.props,!0)||ie(v.props.inputProps,!0))&&(F=!0)}),F}),[D,M]=x.useState(!1);n&&D&&M(!1);const B=m!==void 0&&!n?m:D;let O;x.useRef(!1);const _=x.useCallback(()=>{L(!0)},[]),R=x.useCallback(()=>{L(!1)},[]),Q=x.useMemo(()=>({adornedStart:y,setAdornedStart:J,color:i,disabled:n,error:d,filled:E,focused:B,fullWidth:h,hiddenLabel:b,size:u,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:R,onFilled:_,registerEffect:O,required:f,variant:c}),[y,i,n,d,E,B,h,b,O,R,_,f,u,c]);return a.jsx($e.Provider,{value:Q,children:a.jsx(_e,{as:p,ownerState:I,className:U(G.root,l),ref:r,...C,children:s})})});function Ve(e){return A("MuiFormHelperText",e)}const de=N("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ce;const Ge=e=>{const{classes:t,contained:r,size:o,disabled:s,error:l,filled:i,focused:p,required:n}=e,d={root:["root",s&&"disabled",l&&"error",o&&`size${z(o)}`,r&&"contained",p&&"focused",i&&"filled",n&&"required"]};return W(d,Ve,t)},Je=T("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${z(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${de.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${de.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Qe=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormHelperText"}),{children:s,className:l,component:i="p",disabled:p,error:n,filled:d,focused:m,margin:h,required:b,variant:g,...f}=o,u=te(),c=re({props:o,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),C={...o,component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required};delete C.ownerState;const I=Ge(C);return a.jsx(Je,{as:i,className:U(I.root,l),ref:r,...f,ownerState:C,children:s===" "?ce||(ce=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});function Xe(e){return A("MuiFormLabel",e)}const $=N("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ye=e=>{const{classes:t,color:r,focused:o,disabled:s,error:l,filled:i,required:p}=e,n={root:["root",`color${z(r)}`,s&&"disabled",l&&"error",i&&"filled",o&&"focused",p&&"required"],asterisk:["asterisk",l&&"error"]};return W(n,Xe,t)},Ze=T("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Te()).map(([t])=>({props:{color:t},style:{[`&.${$.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),et=T("span",{name:"MuiFormLabel",slot:"Asterisk"})(V(({theme:e})=>({[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}))),tt=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormLabel"}),{children:s,className:l,color:i,component:p="label",disabled:n,error:d,filled:m,focused:h,required:b,...g}=o,f=te(),u=re({props:o,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),c={...o,color:u.color||"primary",component:p,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required},C=Ye(c);return a.jsxs(Ze,{as:p,ownerState:c,className:U(C.root,l),ref:r,...g,children:[s,u.required&&a.jsxs(et,{ownerState:c,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});function rt(e){return A("MuiInputLabel",e)}N("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ot=e=>{const{classes:t,formControl:r,size:o,shrink:s,disableAnimation:l,variant:i,required:p}=e,n={root:["root",r&&"formControl",!l&&"animated",s&&"shrink",o&&o!=="medium"&&`size${z(o)}`,i],asterisk:[p&&"asterisk"]},d=W(n,rt,t);return{...t,...d}},st=T(tt,{shouldForwardProp:e=>ze(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${$.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(V(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:o})=>t==="filled"&&r.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),at=x.forwardRef(function(t,r){const o=H({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:l,shrink:i,variant:p,className:n,...d}=o,m=te();let h=i;typeof h>"u"&&m&&(h=m.filled||m.focused||m.adornedStart);const b=re({props:o,muiFormControl:m,states:["size","variant","required","focused"]}),g={...o,disableAnimation:s,formControl:m,shrink:h,size:b.size,variant:b.variant,required:b.required,focused:b.focused},f=ot(g);return a.jsx(st,{"data-shrink":h,ref:r,className:U(f.root,n),...d,ownerState:g,classes:f})});function nt(e){return A("MuiTextField",e)}N("MuiTextField",["root"]);const lt={standard:He,filled:Ne,outlined:Ae},it=e=>{const{classes:t}=e;return W({root:["root"]},nt,t)},dt=T(Ke,{name:"MuiTextField",slot:"Root"})({}),ct=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:l=!1,children:i,className:p,color:n="primary",defaultValue:d,disabled:m=!1,error:h=!1,FormHelperTextProps:b,fullWidth:g=!1,helperText:f,id:u,InputLabelProps:c,inputProps:C,InputProps:I,inputRef:G,label:y,maxRows:J,minRows:E,multiline:L=!1,name:D,onBlur:M,onChange:B,onFocus:O,placeholder:_,required:R=!1,rows:Q,select:F=!1,SelectProps:v,slots:j={},slotProps:pe={},type:ue,value:oe,variant:K="outlined",...me}=o,S={...o,autoFocus:l,color:n,disabled:m,error:h,fullWidth:g,multiline:L,required:R,select:F,variant:K},fe=it(S),k=Le(u),X=f&&k?`${k}-helper-text`:void 0,se=y&&k?`${k}-label`:void 0,xe=lt[K],P={slots:j,slotProps:{input:I,inputLabel:c,htmlInput:C,formHelperText:b,select:v,...pe}},q={},Y=P.slotProps.inputLabel;K==="outlined"&&(Y&&typeof Y.shrink<"u"&&(q.notched=Y.shrink),q.label=y),F&&((!v||!v.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[he,be]=w("root",{elementType:dt,shouldForwardComponentProp:!0,externalForwardedProps:{...P,...me},ownerState:S,className:U(fe.root,p),ref:r,additionalProps:{disabled:m,error:h,fullWidth:g,required:R,color:n,variant:K}}),[ve,ge]=w("input",{elementType:xe,externalForwardedProps:P,additionalProps:q,ownerState:S}),[Ce,Fe]=w("inputLabel",{elementType:at,externalForwardedProps:P,ownerState:S}),[ye,Se]=w("htmlInput",{elementType:"input",externalForwardedProps:P,ownerState:S}),[ke,Pe]=w("formHelperText",{elementType:Qe,externalForwardedProps:P,ownerState:S}),[Ie,we]=w("select",{elementType:Ue,externalForwardedProps:P,ownerState:S}),ae=a.jsx(ve,{"aria-describedby":X,autoComplete:s,autoFocus:l,defaultValue:d,fullWidth:g,multiline:L,name:D,rows:Q,maxRows:J,minRows:E,type:ue,value:oe,id:k,inputRef:G,onBlur:M,onChange:B,onFocus:O,placeholder:_,inputProps:Se,slots:{input:j.htmlInput?ye:void 0},...ge});return a.jsxs(he,{...be,children:[y!=null&&y!==""&&a.jsx(Ce,{htmlFor:k,id:se,...Fe,children:y}),F?a.jsx(Ie,{"aria-describedby":X,id:k,labelId:se,value:oe,input:ae,...we,children:i}):ae,f&&a.jsx(ke,{id:X,...Pe,children:f})]})});/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. diff --git a/src/frontend/dist/assets/index-s_AXcvRx.js b/src/frontend/dist/assets/index-CjW85zni.js similarity index 74% rename from src/frontend/dist/assets/index-s_AXcvRx.js rename to src/frontend/dist/assets/index-CjW85zni.js index 61c5a803..81078fbd 100644 --- a/src/frontend/dist/assets/index-s_AXcvRx.js +++ b/src/frontend/dist/assets/index-CjW85zni.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/setup-DT_kALx_.js","assets/main-layout-Dqag71UG.js","assets/main-layout-DVneG3Rq.css","assets/join-fvdzhZQR.js","assets/chat-CbwKW4RP.js"])))=>i.map(i=>d[i]); -function ES(n,r){for(var l=0;lo[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function l(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=l(s);fetch(s.href,c)}})();function Na(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Tf={exports:{}},yl={};/** +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/setup-BAm7AVk9.js","assets/main-layout-BuYSNSZl.js","assets/main-layout-DVneG3Rq.css","assets/join-EB_i0cv0.js","assets/chat-DD20GMag.js"])))=>i.map(i=>d[i]); +function MS(n,r){for(var l=0;lo[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function l(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=l(s);fetch(s.href,c)}})();function Na(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Tf={exports:{}},yl={};/** * @license React * react-jsx-runtime.production.js * @@ -7,7 +7,7 @@ function ES(n,r){for(var l=0;l>>1,A=w[le];if(0>>1;les(re,Z))oes(fe,re)?(w[le]=fe,w[oe]=Z,le=oe):(w[le]=re,w[ae]=Z,le=ae);else if(oes(fe,Z))w[le]=fe,w[oe]=Z,le=oe;else break e}}return H}function s(w,H){var Z=w.sortIndex-H.sortIndex;return Z!==0?Z:w.id-H.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var p=[],m=[],y=1,v=null,S=3,O=!1,E=!1,T=!1,M=!1,D=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function B(w){for(var H=l(m);H!==null;){if(H.callback===null)o(m);else if(H.startTime<=w)o(m),H.sortIndex=H.expirationTime,r(p,H);else break;H=l(m)}}function z(w){if(T=!1,B(w),!E)if(l(p)!==null)E=!0,L||(L=!0,C());else{var H=l(m);H!==null&&X(z,H.startTime-w)}}var L=!1,q=-1,ee=5,Q=-1;function K(){return M?!0:!(n.unstable_now()-Qw&&K());){var le=v.callback;if(typeof le=="function"){v.callback=null,S=v.priorityLevel;var A=le(v.expirationTime<=w);if(w=n.unstable_now(),typeof A=="function"){v.callback=A,B(w),H=!0;break t}v===l(p)&&o(p),B(w)}else o(p);v=l(p)}if(v!==null)H=!0;else{var Y=l(m);Y!==null&&X(z,Y.startTime-w),H=!1}}break e}finally{v=null,S=Z,O=!1}H=void 0}}finally{H?C():L=!1}}}var C;if(typeof $=="function")C=function(){$(F)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,P=ie.port2;ie.port1.onmessage=F,C=function(){P.postMessage(null)}}else C=function(){D(F,0)};function X(w,H){q=D(function(){w(n.unstable_now())},H)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(w){w.callback=null},n.unstable_forceFrameRate=function(w){0>w||125le?(w.sortIndex=Z,r(m,w),l(p)===null&&w===l(m)&&(T?(_(q),q=-1):T=!0,X(z,Z-le))):(w.sortIndex=A,r(p,w),E||O||(E=!0,L||(L=!0,C()))),w},n.unstable_shouldYield=K,n.unstable_wrapCallback=function(w){var H=S;return function(){var Z=S;S=H;try{return w.apply(this,arguments)}finally{S=Z}}}})(Of)),Of}var n0;function RS(){return n0||(n0=1,Af.exports=wS()),Af.exports}var wf={exports:{}},zt={};/** + */var n0;function RS(){return n0||(n0=1,(function(n){function r(w,H){var Z=w.length;w.push(H);e:for(;0>>1,A=w[le];if(0>>1;les(re,Z))oes(fe,re)?(w[le]=fe,w[oe]=Z,le=oe):(w[le]=re,w[ae]=Z,le=ae);else if(oes(fe,Z))w[le]=fe,w[oe]=Z,le=oe;else break e}}return H}function s(w,H){var Z=w.sortIndex-H.sortIndex;return Z!==0?Z:w.id-H.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var p=[],m=[],y=1,v=null,S=3,O=!1,E=!1,T=!1,M=!1,D=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function B(w){for(var H=l(m);H!==null;){if(H.callback===null)o(m);else if(H.startTime<=w)o(m),H.sortIndex=H.expirationTime,r(p,H);else break;H=l(m)}}function z(w){if(T=!1,B(w),!E)if(l(p)!==null)E=!0,L||(L=!0,C());else{var H=l(m);H!==null&&X(z,H.startTime-w)}}var L=!1,q=-1,ee=5,Q=-1;function K(){return M?!0:!(n.unstable_now()-Qw&&K());){var le=v.callback;if(typeof le=="function"){v.callback=null,S=v.priorityLevel;var A=le(v.expirationTime<=w);if(w=n.unstable_now(),typeof A=="function"){v.callback=A,B(w),H=!0;break t}v===l(p)&&o(p),B(w)}else o(p);v=l(p)}if(v!==null)H=!0;else{var Y=l(m);Y!==null&&X(z,Y.startTime-w),H=!1}}break e}finally{v=null,S=Z,O=!1}H=void 0}}finally{H?C():L=!1}}}var C;if(typeof $=="function")C=function(){$(F)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,P=ie.port2;ie.port1.onmessage=F,C=function(){P.postMessage(null)}}else C=function(){D(F,0)};function X(w,H){q=D(function(){w(n.unstable_now())},H)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(w){w.callback=null},n.unstable_forceFrameRate=function(w){0>w||125le?(w.sortIndex=Z,r(m,w),l(p)===null&&w===l(m)&&(T?(_(q),q=-1):T=!0,X(z,Z-le))):(w.sortIndex=A,r(p,w),E||O||(E=!0,L||(L=!0,C()))),w},n.unstable_shouldYield=K,n.unstable_wrapCallback=function(w){var H=S;return function(){var Z=S;S=H;try{return w.apply(this,arguments)}finally{S=Z}}}})(Of)),Of}var a0;function DS(){return a0||(a0=1,Af.exports=RS()),Af.exports}var wf={exports:{}},zt={};/** * @license React * react-dom.production.js * @@ -31,7 +31,7 @@ function ES(n,r){for(var l=0;l"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),wf.exports=DS(),wf.exports}/** + */var r0;function _S(){if(r0)return zt;r0=1;var n=Ed();function r(p){var m="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),wf.exports=_S(),wf.exports}/** * @license React * react-dom-client.production.js * @@ -39,15 +39,15 @@ function ES(n,r){for(var l=0;lA||(e.current=le[A],le[A]=null,A--)}function re(e,t){A++,le[A]=e.current,e.current=t}var oe=Y(null),fe=Y(null),se=Y(null),we=Y(null);function Se(e,t){switch(re(se,t),re(fe,e),re(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Mg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Mg(t),e=Ag(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ae(oe),re(oe,e)}function Qe(){ae(oe),ae(fe),ae(se)}function Xe(e){e.memoizedState!==null&&re(we,e);var t=oe.current,a=Ag(t,e.type);t!==a&&(re(fe,e),re(oe,a))}function it(e){fe.current===e&&(ae(oe),ae(fe)),we.current===e&&(ae(we),dl._currentValue=Z)}var vt=Object.prototype.hasOwnProperty,Mt=n.unstable_scheduleCallback,$t=n.unstable_cancelCallback,yn=n.unstable_shouldYield,Un=n.unstable_requestPaint,Je=n.unstable_now,Nt=n.unstable_getCurrentPriorityLevel,ft=n.unstable_ImmediatePriority,vn=n.unstable_UserBlockingPriority,An=n.unstable_NormalPriority,pe=n.unstable_LowPriority,Ql=n.unstable_IdlePriority,Kl=n.log,Il=n.unstable_setDisableYieldValue,bt=null,Te=null;function lt(e){if(typeof Kl=="function"&&Il(e),Te&&typeof Te.setStrictMode=="function")try{Te.setStrictMode(bt,e)}catch{}}var Ke=Math.clz32?Math.clz32:c1,Si=Math.log,cs=Math.LN2;function c1(e){return e>>>=0,e===0?32:31-(Si(e)/cs|0)|0}var Wl=256,Fl=4194304;function ja(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Jl(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var u=0,f=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var b=i&134217727;return b!==0?(i=b&~f,i!==0?u=ja(i):(g&=b,g!==0?u=ja(g):a||(a=b&~e,a!==0&&(u=ja(a))))):(b=i&~f,b!==0?u=ja(b):g!==0?u=ja(g):a||(a=i&~e,a!==0&&(u=ja(a)))),u===0?0:t!==0&&t!==u&&(t&f)===0&&(f=u&-u,a=t&-t,f>=a||f===32&&(a&4194048)!==0)?t:u}function xi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function f1(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function uh(){var e=Wl;return Wl<<=1,(Wl&4194048)===0&&(Wl=256),e}function sh(){var e=Fl;return Fl<<=1,(Fl&62914560)===0&&(Fl=4194304),e}function fs(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Ci(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function d1(e,t,a,i,u,f){var g=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var b=e.entanglements,R=e.expirationTimes,U=e.hiddenUpdates;for(a=g&~a;0A||(e.current=le[A],le[A]=null,A--)}function re(e,t){A++,le[A]=e.current,e.current=t}var oe=Y(null),fe=Y(null),se=Y(null),we=Y(null);function Se(e,t){switch(re(se,t),re(fe,e),re(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ag(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ag(t),e=Og(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ae(oe),re(oe,e)}function Qe(){ae(oe),ae(fe),ae(se)}function Xe(e){e.memoizedState!==null&&re(we,e);var t=oe.current,a=Og(t,e.type);t!==a&&(re(fe,e),re(oe,a))}function it(e){fe.current===e&&(ae(oe),ae(fe)),we.current===e&&(ae(we),dl._currentValue=Z)}var vt=Object.prototype.hasOwnProperty,Mt=n.unstable_scheduleCallback,$t=n.unstable_cancelCallback,yn=n.unstable_shouldYield,Un=n.unstable_requestPaint,Je=n.unstable_now,Nt=n.unstable_getCurrentPriorityLevel,ft=n.unstable_ImmediatePriority,vn=n.unstable_UserBlockingPriority,An=n.unstable_NormalPriority,pe=n.unstable_LowPriority,Ql=n.unstable_IdlePriority,Kl=n.log,Il=n.unstable_setDisableYieldValue,bt=null,Te=null;function lt(e){if(typeof Kl=="function"&&Il(e),Te&&typeof Te.setStrictMode=="function")try{Te.setStrictMode(bt,e)}catch{}}var Ke=Math.clz32?Math.clz32:f1,Si=Math.log,cs=Math.LN2;function f1(e){return e>>>=0,e===0?32:31-(Si(e)/cs|0)|0}var Wl=256,Fl=4194304;function ja(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Jl(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var u=0,f=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var b=i&134217727;return b!==0?(i=b&~f,i!==0?u=ja(i):(g&=b,g!==0?u=ja(g):a||(a=b&~e,a!==0&&(u=ja(a))))):(b=i&~f,b!==0?u=ja(b):g!==0?u=ja(g):a||(a=i&~e,a!==0&&(u=ja(a)))),u===0?0:t!==0&&t!==u&&(t&f)===0&&(f=u&-u,a=t&-t,f>=a||f===32&&(a&4194048)!==0)?t:u}function xi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function d1(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function sh(){var e=Wl;return Wl<<=1,(Wl&4194048)===0&&(Wl=256),e}function ch(){var e=Fl;return Fl<<=1,(Fl&62914560)===0&&(Fl=4194304),e}function fs(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Ci(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function h1(e,t,a,i,u,f){var g=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var b=e.entanglements,R=e.expirationTimes,U=e.hiddenUpdates;for(a=g&~a;0)":-1u||R[i]!==U[u]){var J=` -`+R[i].replace(" at new "," at ");return e.displayName&&J.includes("")&&(J=J.replace("",e.displayName)),J}while(1<=i&&0<=u);break}}}finally{ys=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Sr(a):""}function v1(e){switch(e.tag){case 26:case 27:case 5:return Sr(e.type);case 16:return Sr("Lazy");case 13:return Sr("Suspense");case 19:return Sr("SuspenseList");case 0:case 15:return vs(e.type,!1);case 11:return vs(e.type.render,!1);case 1:return vs(e.type,!0);case 31:return Sr("Activity");default:return""}}function bh(e){try{var t="";do t+=v1(e),e=e.return;while(e);return t}catch(a){return` +`+R[i].replace(" at new "," at ");return e.displayName&&J.includes("")&&(J=J.replace("",e.displayName)),J}while(1<=i&&0<=u);break}}}finally{ys=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Sr(a):""}function b1(e){switch(e.tag){case 26:case 27:case 5:return Sr(e.type);case 16:return Sr("Lazy");case 13:return Sr("Suspense");case 19:return Sr("SuspenseList");case 0:case 15:return vs(e.type,!1);case 11:return vs(e.type.render,!1);case 1:return vs(e.type,!0);case 31:return Sr("Activity");default:return""}}function Sh(e){try{var t="";do t+=b1(e),e=e.return;while(e);return t}catch(a){return` Error generating stack: `+a.message+` -`+a.stack}}function nn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Sh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function b1(e){var t=Sh(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,f=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(g){i=""+g,f.call(this,g)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return i},setValue:function(g){i=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function no(e){e._valueTracker||(e._valueTracker=b1(e))}function xh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=Sh(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function ao(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var S1=/[\n"\\]/g;function an(e){return e.replace(S1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function bs(e,t,a,i,u,f,g,b){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+nn(t)):e.value!==""+nn(t)&&(e.value=""+nn(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?Ss(e,g,nn(t)):a!=null?Ss(e,g,nn(a)):i!=null&&e.removeAttribute("value"),u==null&&f!=null&&(e.defaultChecked=!!f),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+nn(b):e.removeAttribute("name")}function Ch(e,t,a,i,u,f,g,b){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||t!=null))return;a=a!=null?""+nn(a):"",t=t!=null?""+nn(t):a,b||t===e.value||(e.value=t),e.defaultValue=t}i=i??u,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=b?e.checked:!!i,e.defaultChecked=!!i,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g)}function Ss(e,t,a){t==="number"&&ao(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function xr(e,t,a,i){if(e=e.options,t){t={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ms=!1;if(Yn)try{var Ai={};Object.defineProperty(Ai,"passive",{get:function(){Ms=!0}}),window.addEventListener("test",Ai,Ai),window.removeEventListener("test",Ai,Ai)}catch{Ms=!1}var sa=null,As=null,io=null;function Rh(){if(io)return io;var e,t=As,a=t.length,i,u="value"in sa?sa.value:sa.textContent,f=u.length;for(e=0;e=Ri),Nh=" ",Bh=!1;function Lh(e,t){switch(e){case"keyup":return Q1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Mr=!1;function I1(e,t){switch(e){case"compositionend":return jh(t);case"keypress":return t.which!==32?null:(Bh=!0,Nh);case"textInput":return e=t.data,e===Nh&&Bh?null:e;default:return null}}function W1(e,t){if(Mr)return e==="compositionend"||!_s&&Lh(e,t)?(e=Rh(),io=As=sa=null,Mr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Xh(a)}}function Qh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ao(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ao(e.document)}return t}function $s(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var ib=Yn&&"documentMode"in document&&11>=document.documentMode,Ar=null,Ns=null,ki=null,Bs=!1;function Ih(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Bs||Ar==null||Ar!==ao(i)||(i=Ar,"selectionStart"in i&&$s(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ki&&zi(ki,i)||(ki=i,i=Io(Ns,"onSelect"),0>=g,u-=g,Vn=1<<32-Ke(t)+u|a<f?f:8;var g=w.T,b={};w.T=b,xc(e,!1,t,a);try{var R=u(),U=w.S;if(U!==null&&U(b,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var J=mb(R,i);Qi(e,t,J,It(e))}else Qi(e,t,i,It(e))}catch(ne){Qi(e,t,{then:function(){},status:"rejected",reason:ne},It())}finally{H.p=f,w.T=g}}function bb(){}function bc(e,t,a,i){if(e.tag!==5)throw Error(o(476));var u=Wm(e).queue;Im(e,u,t,Z,a===null?bb:function(){return Fm(e),a(i)})}function Wm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zn,lastRenderedState:Z},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Fm(e){var t=Wm(e).next.queue;Qi(e,t,{},It())}function Sc(){return _t(dl)}function Jm(){return ht().memoizedState}function ep(){return ht().memoizedState}function Sb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=It();e=da(a);var i=ha(t,e,a);i!==null&&(Wt(i,t,a),qi(i,t,a)),t={cache:Is()},e.payload=t;return}t=t.return}}function xb(e,t,a){var i=It();a={lane:i,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Do(e)?np(t,a):(a=Hs(e,t,a,i),a!==null&&(Wt(a,e,i),ap(a,t,i)))}function tp(e,t,a){var i=It();Qi(e,t,a,i)}function Qi(e,t,a,i){var u={lane:i,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Do(e))np(t,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var g=t.lastRenderedState,b=f(g,a);if(u.hasEagerState=!0,u.eagerState=b,Pt(b,g))return ho(e,t,u,0),Pe===null&&fo(),!1}catch{}finally{}if(a=Hs(e,t,u,i),a!==null)return Wt(a,e,i),ap(a,t,i),!0}return!1}function xc(e,t,a,i){if(i={lane:2,revertLane:Jc(),action:i,hasEagerState:!1,eagerState:null,next:null},Do(e)){if(t)throw Error(o(479))}else t=Hs(e,a,i,2),t!==null&&Wt(t,e,2)}function Do(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function np(e,t){Br=Eo=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function ap(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,fh(e,a)}}var _o={readContext:_t,use:Ao,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useLayoutEffect:ot,useInsertionEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useSyncExternalStore:ot,useId:ot,useHostTransitionStatus:ot,useFormState:ot,useActionState:ot,useOptimistic:ot,useMemoCache:ot,useCacheRefresh:ot},rp={readContext:_t,use:Ao,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:_t,useEffect:Ym,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ro(4194308,4,Pm.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ro(4194308,4,e,t)},useInsertionEffect:function(e,t){Ro(4,2,e,t)},useMemo:function(e,t){var a=Ht();t=t===void 0?null:t;var i=e();if(Wa){lt(!0);try{e()}finally{lt(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Ht();if(a!==void 0){var u=a(t);if(Wa){lt(!0);try{a(t)}finally{lt(!1)}}}else u=t;return i.memoizedState=i.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},i.queue=e,e=e.dispatch=xb.bind(null,ve,e),[i.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:function(e){e=pc(e);var t=e.queue,a=tp.bind(null,ve,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:yc,useDeferredValue:function(e,t){var a=Ht();return vc(a,e,t)},useTransition:function(){var e=pc(!1);return e=Im.bind(null,ve,e.queue,!0,!1),Ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=ve,u=Ht();if(De){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Pe===null)throw Error(o(349));(Ee&124)!==0||Mm(i,t,a)}u.memoizedState=a;var f={value:a,getSnapshot:t};return u.queue=f,Ym(Om.bind(null,i,f,e),[e]),i.flags|=2048,jr(9,wo(),Am.bind(null,i,f,a,t),null),a},useId:function(){var e=Ht(),t=Pe.identifierPrefix;if(De){var a=Gn,i=Vn;a=(i&~(1<<32-Ke(i)-1)).toString(32)+a,t="«"+t+"R"+a,a=Mo++,0he?(Tt=ce,ce=null):Tt=ce.sibling;var Re=V(N,ce,j[he],te);if(Re===null){ce===null&&(ce=Tt);break}e&&ce&&Re.alternate===null&&t(N,ce),k=f(Re,k,he),be===null?ue=Re:be.sibling=Re,be=Re,ce=Tt}if(he===j.length)return a(N,ce),De&&Pa(N,he),ue;if(ce===null){for(;hehe?(Tt=ce,ce=null):Tt=ce.sibling;var Da=V(N,ce,Re.value,te);if(Da===null){ce===null&&(ce=Tt);break}e&&ce&&Da.alternate===null&&t(N,ce),k=f(Da,k,he),be===null?ue=Da:be.sibling=Da,be=Da,ce=Tt}if(Re.done)return a(N,ce),De&&Pa(N,he),ue;if(ce===null){for(;!Re.done;he++,Re=j.next())Re=ne(N,Re.value,te),Re!==null&&(k=f(Re,k,he),be===null?ue=Re:be.sibling=Re,be=Re);return De&&Pa(N,he),ue}for(ce=i(ce);!Re.done;he++,Re=j.next())Re=G(ce,N,he,Re.value,te),Re!==null&&(e&&Re.alternate!==null&&ce.delete(Re.key===null?he:Re.key),k=f(Re,k,he),be===null?ue=Re:be.sibling=Re,be=Re);return e&&ce.forEach(function(TS){return t(N,TS)}),De&&Pa(N,he),ue}function Ye(N,k,j,te){if(typeof j=="object"&&j!==null&&j.type===E&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case S:e:{for(var ue=j.key;k!==null;){if(k.key===ue){if(ue=j.type,ue===E){if(k.tag===7){a(N,k.sibling),te=u(k,j.props.children),te.return=N,N=te;break e}}else if(k.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===ee&&lp(ue)===k.type){a(N,k.sibling),te=u(k,j.props),Ii(te,j),te.return=N,N=te;break e}a(N,k);break}else t(N,k);k=k.sibling}j.type===E?(te=Va(j.props.children,N.mode,te,j.key),te.return=N,N=te):(te=po(j.type,j.key,j.props,null,N.mode,te),Ii(te,j),te.return=N,N=te)}return g(N);case O:e:{for(ue=j.key;k!==null;){if(k.key===ue)if(k.tag===4&&k.stateNode.containerInfo===j.containerInfo&&k.stateNode.implementation===j.implementation){a(N,k.sibling),te=u(k,j.children||[]),te.return=N,N=te;break e}else{a(N,k);break}else t(N,k);k=k.sibling}te=Vs(j,N.mode,te),te.return=N,N=te}return g(N);case ee:return ue=j._init,j=ue(j._payload),Ye(N,k,j,te)}if(X(j))return me(N,k,j,te);if(C(j)){if(ue=C(j),typeof ue!="function")throw Error(o(150));return j=ue.call(j),de(N,k,j,te)}if(typeof j.then=="function")return Ye(N,k,zo(j),te);if(j.$$typeof===$)return Ye(N,k,bo(N,j),te);ko(N,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,k!==null&&k.tag===6?(a(N,k.sibling),te=u(k,j),te.return=N,N=te):(a(N,k),te=qs(j,N.mode,te),te.return=N,N=te),g(N)):a(N,k)}return function(N,k,j,te){try{Ki=0;var ue=Ye(N,k,j,te);return Ur=null,ue}catch(ce){if(ce===Hi||ce===xo)throw ce;var be=Xt(29,ce,null,N.mode);return be.lanes=te,be.return=N,be}finally{}}}var Hr=op(!0),up=op(!1),sn=Y(null),wn=null;function pa(e){var t=e.alternate;re(yt,yt.current&1),re(sn,e),wn===null&&(t===null||Nr.current!==null||t.memoizedState!==null)&&(wn=e)}function sp(e){if(e.tag===22){if(re(yt,yt.current),re(sn,e),wn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(wn=e)}}else ga()}function ga(){re(yt,yt.current),re(sn,sn.current)}function Qn(e){ae(sn),wn===e&&(wn=null),ae(yt)}var yt=Y(0);function $o(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||df(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Cc(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:y({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Tc={enqueueSetState:function(e,t,a){e=e._reactInternals;var i=It(),u=da(i);u.payload=t,a!=null&&(u.callback=a),t=ha(e,u,i),t!==null&&(Wt(t,e,i),qi(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=It(),u=da(i);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=ha(e,u,i),t!==null&&(Wt(t,e,i),qi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=It(),i=da(a);i.tag=2,t!=null&&(i.callback=t),t=ha(e,i,a),t!==null&&(Wt(t,e,a),qi(t,e,a))}};function cp(e,t,a,i,u,f,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,f,g):t.prototype&&t.prototype.isPureReactComponent?!zi(a,i)||!zi(u,f):!0}function fp(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&Tc.enqueueReplaceState(t,t.state,null)}function Fa(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=y({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}var No=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function dp(e){No(e)}function hp(e){console.error(e)}function mp(e){No(e)}function Bo(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function pp(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Ec(e,t,a){return a=da(a),a.tag=3,a.payload={element:null},a.callback=function(){Bo(e,t)},a}function gp(e){return e=da(e),e.tag=3,e}function yp(e,t,a,i){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var f=i.value;e.payload=function(){return u(f)},e.callback=function(){pp(t,a,i)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){pp(t,a,i),typeof u!="function"&&(Ca===null?Ca=new Set([this]):Ca.add(this));var b=i.stack;this.componentDidCatch(i.value,{componentStack:b!==null?b:""})})}function Tb(e,t,a,i,u){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&Li(t,a,u,!0),a=sn.current,a!==null){switch(a.tag){case 13:return wn===null?Qc():a.alternate===null&&tt===0&&(tt=3),a.flags&=-257,a.flags|=65536,a.lanes=u,i===Js?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),Ic(e,i,u)),!1;case 22:return a.flags|=65536,i===Js?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),Ic(e,i,u)),!1}throw Error(o(435,a.tag))}return Ic(e,i,u),Qc(),!1}if(De)return t=sn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,i!==Xs&&(e=Error(o(422),{cause:i}),Bi(rn(e,a)))):(i!==Xs&&(t=Error(o(423),{cause:i}),Bi(rn(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,i=rn(i,a),u=Ec(e.stateNode,i,u),nc(e,u),tt!==4&&(tt=2)),!1;var f=Error(o(520),{cause:i});if(f=rn(f,a),al===null?al=[f]:al.push(f),tt!==4&&(tt=2),t===null)return!0;i=rn(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=Ec(a.stateNode,i,e),nc(a,e),!1;case 1:if(t=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Ca===null||!Ca.has(f))))return a.flags|=65536,u&=-u,a.lanes|=u,u=gp(u),yp(u,e,a,i),nc(a,u),!1}a=a.return}while(a!==null);return!1}var vp=Error(o(461)),xt=!1;function At(e,t,a,i){t.child=e===null?up(t,null,a,i):Hr(t,e.child,a,i)}function bp(e,t,a,i,u){a=a.render;var f=t.ref;if("ref"in i){var g={};for(var b in i)b!=="ref"&&(g[b]=i[b])}else g=i;return Ka(t),i=oc(e,t,a,g,f,u),b=uc(),e!==null&&!xt?(sc(e,t,u),Kn(e,t,u)):(De&&b&&Gs(t),t.flags|=1,At(e,t,i,u),t.child)}function Sp(e,t,a,i,u){if(e===null){var f=a.type;return typeof f=="function"&&!Ys(f)&&f.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=f,xp(e,t,f,i,u)):(e=po(a.type,null,i,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!zc(e,u)){var g=f.memoizedProps;if(a=a.compare,a=a!==null?a:zi,a(g,i)&&e.ref===t.ref)return Kn(e,t,u)}return t.flags|=1,e=qn(f,i),e.ref=t.ref,e.return=t,t.child=e}function xp(e,t,a,i,u){if(e!==null){var f=e.memoizedProps;if(zi(f,i)&&e.ref===t.ref)if(xt=!1,t.pendingProps=i=f,zc(e,u))(e.flags&131072)!==0&&(xt=!0);else return t.lanes=e.lanes,Kn(e,t,u)}return Mc(e,t,a,i,u)}function Cp(e,t,a){var i=t.pendingProps,u=i.children,f=e!==null?e.memoizedState:null;if(i.mode==="hidden"){if((t.flags&128)!==0){if(i=f!==null?f.baseLanes|a:a,e!==null){for(u=t.child=e.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;t.childLanes=f&~i}else t.childLanes=0,t.child=null;return Tp(e,t,i,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&So(t,f!==null?f.cachePool:null),f!==null?xm(t,f):rc(),sp(t);else return t.lanes=t.childLanes=536870912,Tp(e,t,f!==null?f.baseLanes|a:a,a)}else f!==null?(So(t,f.cachePool),xm(t,f),ga(),t.memoizedState=null):(e!==null&&So(t,null),rc(),ga());return At(e,t,u,a),t.child}function Tp(e,t,a,i){var u=Fs();return u=u===null?null:{parent:gt._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&So(t,null),rc(),sp(t),e!==null&&Li(e,t,i,!0),null}function Lo(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Mc(e,t,a,i,u){return Ka(t),a=oc(e,t,a,i,void 0,u),i=uc(),e!==null&&!xt?(sc(e,t,u),Kn(e,t,u)):(De&&i&&Gs(t),t.flags|=1,At(e,t,a,u),t.child)}function Ep(e,t,a,i,u,f){return Ka(t),t.updateQueue=null,a=Tm(t,i,a,u),Cm(e),i=uc(),e!==null&&!xt?(sc(e,t,f),Kn(e,t,f)):(De&&i&&Gs(t),t.flags|=1,At(e,t,a,f),t.child)}function Mp(e,t,a,i,u){if(Ka(t),t.stateNode===null){var f=Dr,g=a.contextType;typeof g=="object"&&g!==null&&(f=_t(g)),f=new a(i,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Tc,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=i,f.state=t.memoizedState,f.refs={},ec(t),g=a.contextType,f.context=typeof g=="object"&&g!==null?_t(g):Dr,f.state=t.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(Cc(t,a,g,i),f.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(g=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),g!==f.state&&Tc.enqueueReplaceState(f,f.state,null),Gi(t,i,f,u),Vi(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){f=t.stateNode;var b=t.memoizedProps,R=Fa(a,b);f.props=R;var U=f.context,J=a.contextType;g=Dr,typeof J=="object"&&J!==null&&(g=_t(J));var ne=a.getDerivedStateFromProps;J=typeof ne=="function"||typeof f.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,J||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b||U!==g)&&fp(t,f,i,g),fa=!1;var V=t.memoizedState;f.state=V,Gi(t,i,f,u),Vi(),U=t.memoizedState,b||V!==U||fa?(typeof ne=="function"&&(Cc(t,a,ne,i),U=t.memoizedState),(R=fa||cp(t,a,R,i,V,U,g))?(J||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=U),f.props=i,f.state=U,f.context=g,i=R):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{f=t.stateNode,tc(e,t),g=t.memoizedProps,J=Fa(a,g),f.props=J,ne=t.pendingProps,V=f.context,U=a.contextType,R=Dr,typeof U=="object"&&U!==null&&(R=_t(U)),b=a.getDerivedStateFromProps,(U=typeof b=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==ne||V!==R)&&fp(t,f,i,R),fa=!1,V=t.memoizedState,f.state=V,Gi(t,i,f,u),Vi();var G=t.memoizedState;g!==ne||V!==G||fa||e!==null&&e.dependencies!==null&&vo(e.dependencies)?(typeof b=="function"&&(Cc(t,a,b,i),G=t.memoizedState),(J=fa||cp(t,a,J,i,V,G,R)||e!==null&&e.dependencies!==null&&vo(e.dependencies))?(U||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(i,G,R),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(i,G,R)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=G),f.props=i,f.state=G,f.context=R,i=J):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),i=!1)}return f=i,Lo(e,t),i=(t.flags&128)!==0,f||i?(f=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&i?(t.child=Hr(t,e.child,null,u),t.child=Hr(t,null,a,u)):At(e,t,a,u),t.memoizedState=f.state,e=t.child):e=Kn(e,t,u),e}function Ap(e,t,a,i){return Ni(),t.flags|=256,At(e,t,a,i),t.child}var Ac={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Oc(e){return{baseLanes:e,cachePool:hm()}}function wc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=cn),e}function Op(e,t,a){var i=t.pendingProps,u=!1,f=(t.flags&128)!==0,g;if((g=f)||(g=e!==null&&e.memoizedState===null?!1:(yt.current&2)!==0),g&&(u=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(De){if(u?pa(t):ga(),De){var b=et,R;if(R=b){e:{for(R=b,b=On;R.nodeType!==8;){if(!b){b=null;break e}if(R=xn(R.nextSibling),R===null){b=null;break e}}b=R}b!==null?(t.memoizedState={dehydrated:b,treeContext:Ga!==null?{id:Vn,overflow:Gn}:null,retryLane:536870912,hydrationErrors:null},R=Xt(18,null,null,0),R.stateNode=b,R.return=t,t.child=R,Bt=t,et=null,R=!0):R=!1}R||Za(t)}if(b=t.memoizedState,b!==null&&(b=b.dehydrated,b!==null))return df(b)?t.lanes=32:t.lanes=536870912,null;Qn(t)}return b=i.children,i=i.fallback,u?(ga(),u=t.mode,b=jo({mode:"hidden",children:b},u),i=Va(i,u,a,null),b.return=t,i.return=t,b.sibling=i,t.child=b,u=t.child,u.memoizedState=Oc(a),u.childLanes=wc(e,g,a),t.memoizedState=Ac,i):(pa(t),Rc(t,b))}if(R=e.memoizedState,R!==null&&(b=R.dehydrated,b!==null)){if(f)t.flags&256?(pa(t),t.flags&=-257,t=Dc(e,t,a)):t.memoizedState!==null?(ga(),t.child=e.child,t.flags|=128,t=null):(ga(),u=i.fallback,b=t.mode,i=jo({mode:"visible",children:i.children},b),u=Va(u,b,a,null),u.flags|=2,i.return=t,u.return=t,i.sibling=u,t.child=i,Hr(t,e.child,null,a),i=t.child,i.memoizedState=Oc(a),i.childLanes=wc(e,g,a),t.memoizedState=Ac,t=u);else if(pa(t),df(b)){if(g=b.nextSibling&&b.nextSibling.dataset,g)var U=g.dgst;g=U,i=Error(o(419)),i.stack="",i.digest=g,Bi({value:i,source:null,stack:null}),t=Dc(e,t,a)}else if(xt||Li(e,t,a,!1),g=(a&e.childLanes)!==0,xt||g){if(g=Pe,g!==null&&(i=a&-a,i=(i&42)!==0?1:ds(i),i=(i&(g.suspendedLanes|a))!==0?0:i,i!==0&&i!==R.retryLane))throw R.retryLane=i,Rr(e,i),Wt(g,e,i),vp;b.data==="$?"||Qc(),t=Dc(e,t,a)}else b.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,et=xn(b.nextSibling),Bt=t,De=!0,Xa=null,On=!1,e!==null&&(on[un++]=Vn,on[un++]=Gn,on[un++]=Ga,Vn=e.id,Gn=e.overflow,Ga=t),t=Rc(t,i.children),t.flags|=4096);return t}return u?(ga(),u=i.fallback,b=t.mode,R=e.child,U=R.sibling,i=qn(R,{mode:"hidden",children:i.children}),i.subtreeFlags=R.subtreeFlags&65011712,U!==null?u=qn(U,u):(u=Va(u,b,a,null),u.flags|=2),u.return=t,i.return=t,i.sibling=u,t.child=i,i=u,u=t.child,b=e.child.memoizedState,b===null?b=Oc(a):(R=b.cachePool,R!==null?(U=gt._currentValue,R=R.parent!==U?{parent:U,pool:U}:R):R=hm(),b={baseLanes:b.baseLanes|a,cachePool:R}),u.memoizedState=b,u.childLanes=wc(e,g,a),t.memoizedState=Ac,i):(pa(t),a=e.child,e=a.sibling,a=qn(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=a,t.memoizedState=null,a)}function Rc(e,t){return t=jo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function jo(e,t){return e=Xt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Dc(e,t,a){return Hr(t,e.child,null,a),e=Rc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wp(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Qs(e.return,t,a)}function _c(e,t,a,i,u){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:u}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=i,f.tail=a,f.tailMode=u)}function Rp(e,t,a){var i=t.pendingProps,u=i.revealOrder,f=i.tail;if(At(e,t,i.children,a),i=yt.current,(i&2)!==0)i=i&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wp(e,a,t);else if(e.tag===19)wp(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}switch(re(yt,i),u){case"forwards":for(a=t.child,u=null;a!==null;)e=a.alternate,e!==null&&$o(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),_c(t,!1,u,a,f);break;case"backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&$o(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}_c(t,!0,a,null,f);break;case"together":_c(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Kn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),xa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Li(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=qn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=qn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function zc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&vo(e)))}function Eb(e,t,a){switch(t.tag){case 3:Se(t,t.stateNode.containerInfo),ca(t,gt,e.memoizedState.cache),Ni();break;case 27:case 5:Xe(t);break;case 4:Se(t,t.stateNode.containerInfo);break;case 10:ca(t,t.type,t.memoizedProps.value);break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(pa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Op(e,t,a):(pa(t),e=Kn(e,t,a),e!==null?e.sibling:null);pa(t);break;case 19:var u=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(Li(e,t,a,!1),i=(a&t.childLanes)!==0),u){if(i)return Rp(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),re(yt,yt.current),i)break;return null;case 22:case 23:return t.lanes=0,Cp(e,t,a);case 24:ca(t,gt,e.memoizedState.cache)}return Kn(e,t,a)}function Dp(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)xt=!0;else{if(!zc(e,a)&&(t.flags&128)===0)return xt=!1,Eb(e,t,a);xt=(e.flags&131072)!==0}else xt=!1,De&&(t.flags&1048576)!==0&&lm(t,yo,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var i=t.elementType,u=i._init;if(i=u(i._payload),t.type=i,typeof i=="function")Ys(i)?(e=Fa(i,e),t.tag=1,t=Mp(null,t,i,e,a)):(t.tag=0,t=Mc(null,t,i,e,a));else{if(i!=null){if(u=i.$$typeof,u===B){t.tag=11,t=bp(null,t,i,e,a);break e}else if(u===q){t.tag=14,t=Sp(null,t,i,e,a);break e}}throw t=P(i)||i,Error(o(306,t,""))}}return t;case 0:return Mc(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,u=Fa(i,t.pendingProps),Mp(e,t,i,u,a);case 3:e:{if(Se(t,t.stateNode.containerInfo),e===null)throw Error(o(387));i=t.pendingProps;var f=t.memoizedState;u=f.element,tc(e,t),Gi(t,i,null,a);var g=t.memoizedState;if(i=g.cache,ca(t,gt,i),i!==f.cache&&Ks(t,[gt],a,!0),Vi(),i=g.element,f.isDehydrated)if(f={element:i,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=Ap(e,t,i,a);break e}else if(i!==u){u=rn(Error(o(424)),t),Bi(u),t=Ap(e,t,i,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(et=xn(e.firstChild),Bt=t,De=!0,Xa=null,On=!0,a=up(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Ni(),i===u){t=Kn(e,t,a);break e}At(e,t,i,a)}t=t.child}return t;case 26:return Lo(e,t),e===null?(a=$g(t.type,null,t.pendingProps,null))?t.memoizedState=a:De||(a=t.type,e=t.pendingProps,i=Fo(se.current).createElement(a),i[Dt]=t,i[jt]=e,wt(i,a,e),St(i),t.stateNode=i):t.memoizedState=$g(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Xe(t),e===null&&De&&(i=t.stateNode=_g(t.type,t.pendingProps,se.current),Bt=t,On=!0,u=et,Ma(t.type)?(hf=u,et=xn(i.firstChild)):et=u),At(e,t,t.pendingProps.children,a),Lo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&De&&((u=i=et)&&(i=Fb(i,t.type,t.pendingProps,On),i!==null?(t.stateNode=i,Bt=t,et=xn(i.firstChild),On=!1,u=!0):u=!1),u||Za(t)),Xe(t),u=t.type,f=t.pendingProps,g=e!==null?e.memoizedProps:null,i=f.children,sf(u,f)?i=null:g!==null&&sf(u,g)&&(t.flags|=32),t.memoizedState!==null&&(u=oc(e,t,gb,null,null,a),dl._currentValue=u),Lo(e,t),At(e,t,i,a),t.child;case 6:return e===null&&De&&((e=a=et)&&(a=Jb(a,t.pendingProps,On),a!==null?(t.stateNode=a,Bt=t,et=null,e=!0):e=!1),e||Za(t)),null;case 13:return Op(e,t,a);case 4:return Se(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Hr(t,null,i,a):At(e,t,i,a),t.child;case 11:return bp(e,t,t.type,t.pendingProps,a);case 7:return At(e,t,t.pendingProps,a),t.child;case 8:return At(e,t,t.pendingProps.children,a),t.child;case 12:return At(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,ca(t,t.type,i.value),At(e,t,i.children,a),t.child;case 9:return u=t.type._context,i=t.pendingProps.children,Ka(t),u=_t(u),i=i(u),t.flags|=1,At(e,t,i,a),t.child;case 14:return Sp(e,t,t.type,t.pendingProps,a);case 15:return xp(e,t,t.type,t.pendingProps,a);case 19:return Rp(e,t,a);case 31:return i=t.pendingProps,a=t.mode,i={mode:i.mode,children:i.children},e===null?(a=jo(i,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=qn(e.child,i),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return Cp(e,t,a);case 24:return Ka(t),i=_t(gt),e===null?(u=Fs(),u===null&&(u=Pe,f=Is(),u.pooledCache=f,f.refCount++,f!==null&&(u.pooledCacheLanes|=a),u=f),t.memoizedState={parent:i,cache:u},ec(t),ca(t,gt,u)):((e.lanes&a)!==0&&(tc(e,t),Gi(t,null,null,a),Vi()),u=e.memoizedState,f=t.memoizedState,u.parent!==i?(u={parent:i,cache:i},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),ca(t,gt,i)):(i=f.cache,ca(t,gt,i),i!==u.cache&&Ks(t,[gt],a,!0))),At(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function In(e){e.flags|=4}function _p(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ug(t)){if(t=sn.current,t!==null&&((Ee&4194048)===Ee?wn!==null:(Ee&62914560)!==Ee&&(Ee&536870912)===0||t!==wn))throw Yi=Js,mm;e.flags|=8192}}function Uo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?sh():536870912,e.lanes|=t,Gr|=t)}function Wi(e,t){if(!De)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,i|=u.subtreeFlags&65011712,i|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,i|=u.subtreeFlags,i|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function Mb(e,t,a){var i=t.pendingProps;switch(Ps(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return Fe(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Xn(gt),Qe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&($i(t)?In(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,sm())),Fe(t),null;case 26:return a=t.memoizedState,e===null?(In(t),a!==null?(Fe(t),_p(t,a)):(Fe(t),t.flags&=-16777217)):a?a!==e.memoizedState?(In(t),Fe(t),_p(t,a)):(Fe(t),t.flags&=-16777217):(e.memoizedProps!==i&&In(t),Fe(t),t.flags&=-16777217),null;case 27:it(t),a=se.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==i&&In(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return Fe(t),null}e=oe.current,$i(t)?om(t):(e=_g(u,i,a),t.stateNode=e,In(t))}return Fe(t),null;case 5:if(it(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&In(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return Fe(t),null}if(e=oe.current,$i(t))om(t);else{switch(u=Fo(se.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=u.createElement("div"),e.innerHTML=" + From 7a27ce7800ae6be67a6d667b04a6a2438540b4a0 Mon Sep 17 00:00:00 2001 From: Xiaodong Date: Mon, 29 Sep 2025 16:34:04 +0800 Subject: [PATCH 19/25] fix(frontend): node list skeleton --- src/frontend/src/components/inputs/node-list.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/components/inputs/node-list.tsx b/src/frontend/src/components/inputs/node-list.tsx index e5edc2e2..5408d494 100644 --- a/src/frontend/src/components/inputs/node-list.tsx +++ b/src/frontend/src/components/inputs/node-list.tsx @@ -133,7 +133,7 @@ const Node: FC<{ variant: NodeListVariant; node?: NodeInfo }> = ({ variant, node {gpuName} {gpuMemory}GB - )) || } + )) || } {(node && ( = ({ variant, node > {id && id.substring(0, 4) + '...' + id.substring(id.length - 4)} - )) || } + )) || } {node && ( @@ -183,6 +183,7 @@ export const NodeList: FC = ({ variant = 'list' }) => { ] = useCluster(); const { length: nodesNumber } = nodeInfoList; + // const nodesNumber = 0; return ( @@ -202,6 +203,10 @@ export const NodeList: FC = ({ variant = 'list' }) => { {nodeInfoList.map((node) => ( ))} + {initNodesNumber > nodesNumber + && Array.from({ length: initNodesNumber - nodesNumber }).map((_, index) => ( + + ))} ); From d30e1745303a99febb8ccefc71e9939cab9e2551 Mon Sep 17 00:00:00 2001 From: Xiaodong Date: Mon, 29 Sep 2025 16:35:12 +0800 Subject: [PATCH 20/25] fix(frontend): chat page dialog --- src/frontend/src/components/common/drawer-layout.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/frontend/src/components/common/drawer-layout.tsx b/src/frontend/src/components/common/drawer-layout.tsx index 9786ee27..f2443bb9 100644 --- a/src/frontend/src/components/common/drawer-layout.tsx +++ b/src/frontend/src/components/common/drawer-layout.tsx @@ -103,7 +103,6 @@ export const DrawerLayout: FC = ({ children }) => { confirmLabel: 'Finish', }); useEffect(() => { - openWaiting(); if (clusterStatus === 'waiting') { openWaiting(); } From c9dc5ebc35200c46a799ad75d83a9b9f1711e24c Mon Sep 17 00:00:00 2001 From: Xiaodong Date: Mon, 29 Sep 2025 16:37:15 +0800 Subject: [PATCH 21/25] build(frontend): build for error feedback --- .../{chat-DD20GMag.js => chat-DCeKw9oj.js} | 2 +- .../{index-CjW85zni.js => index-PErRMx3K.js} | 4 +- .../{join-EB_i0cv0.js => join-Ct6Vm6PP.js} | 2 +- ...ut-BuYSNSZl.js => main-layout-By96MLvX.js} | 90 +++++++++---------- .../{setup-BAm7AVk9.js => setup-Bxlzm9g5.js} | 2 +- src/frontend/dist/index.html | 2 +- 6 files changed, 51 insertions(+), 51 deletions(-) rename src/frontend/dist/assets/{chat-DD20GMag.js => chat-DCeKw9oj.js} (99%) rename src/frontend/dist/assets/{index-CjW85zni.js => index-PErRMx3K.js} (99%) rename src/frontend/dist/assets/{join-EB_i0cv0.js => join-Ct6Vm6PP.js} (94%) rename src/frontend/dist/assets/{main-layout-BuYSNSZl.js => main-layout-By96MLvX.js} (85%) rename src/frontend/dist/assets/{setup-BAm7AVk9.js => setup-Bxlzm9g5.js} (98%) diff --git a/src/frontend/dist/assets/chat-DD20GMag.js b/src/frontend/dist/assets/chat-DCeKw9oj.js similarity index 99% rename from src/frontend/dist/assets/chat-DD20GMag.js rename to src/frontend/dist/assets/chat-DCeKw9oj.js index 68bbd0bb..0686ec1c 100644 --- a/src/frontend/dist/assets/chat-DD20GMag.js +++ b/src/frontend/dist/assets/chat-DCeKw9oj.js @@ -1,4 +1,4 @@ -import{h as A,f as N,r as x,u as H,j as a,s as T,c as U,b as z,d as W,m as V,e as Te,p as ze,q as Le,v as w,o as ee,i as Me,w as Re,l as je,S as ne,n as le}from"./index-CjW85zni.js";import{i as Z,b as qe,c as ie,F as $e,u as te,f as re,O as Ae,d as Ne,I as He,S as Ue,D as We,e as Ee,C as De}from"./main-layout-BuYSNSZl.js";function Be(e){return A("MuiFormControl",e)}N("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Oe=e=>{const{classes:t,margin:r,fullWidth:o}=e,s={root:["root",r!=="none"&&`margin${z(r)}`,o&&"fullWidth"]};return W(s,Be,t)},_e=T("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${z(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ke=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormControl"}),{children:s,className:l,color:i="primary",component:p="div",disabled:n=!1,error:d=!1,focused:m,fullWidth:h=!1,hiddenLabel:b=!1,margin:g="none",required:f=!1,size:u="medium",variant:c="outlined",...C}=o,I={...o,color:i,component:p,disabled:n,error:d,fullWidth:h,hiddenLabel:b,margin:g,required:f,size:u,variant:c},G=Oe(I),[y,J]=x.useState(()=>{let F=!1;return s&&x.Children.forEach(s,v=>{if(!Z(v,["Input","Select"]))return;const j=Z(v,["Select"])?v.props.input:v;j&&qe(j.props)&&(F=!0)}),F}),[E,L]=x.useState(()=>{let F=!1;return s&&x.Children.forEach(s,v=>{Z(v,["Input","Select"])&&(ie(v.props,!0)||ie(v.props.inputProps,!0))&&(F=!0)}),F}),[D,M]=x.useState(!1);n&&D&&M(!1);const B=m!==void 0&&!n?m:D;let O;x.useRef(!1);const _=x.useCallback(()=>{L(!0)},[]),R=x.useCallback(()=>{L(!1)},[]),Q=x.useMemo(()=>({adornedStart:y,setAdornedStart:J,color:i,disabled:n,error:d,filled:E,focused:B,fullWidth:h,hiddenLabel:b,size:u,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:R,onFilled:_,registerEffect:O,required:f,variant:c}),[y,i,n,d,E,B,h,b,O,R,_,f,u,c]);return a.jsx($e.Provider,{value:Q,children:a.jsx(_e,{as:p,ownerState:I,className:U(G.root,l),ref:r,...C,children:s})})});function Ve(e){return A("MuiFormHelperText",e)}const de=N("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ce;const Ge=e=>{const{classes:t,contained:r,size:o,disabled:s,error:l,filled:i,focused:p,required:n}=e,d={root:["root",s&&"disabled",l&&"error",o&&`size${z(o)}`,r&&"contained",p&&"focused",i&&"filled",n&&"required"]};return W(d,Ve,t)},Je=T("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${z(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${de.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${de.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Qe=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormHelperText"}),{children:s,className:l,component:i="p",disabled:p,error:n,filled:d,focused:m,margin:h,required:b,variant:g,...f}=o,u=te(),c=re({props:o,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),C={...o,component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required};delete C.ownerState;const I=Ge(C);return a.jsx(Je,{as:i,className:U(I.root,l),ref:r,...f,ownerState:C,children:s===" "?ce||(ce=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});function Xe(e){return A("MuiFormLabel",e)}const $=N("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ye=e=>{const{classes:t,color:r,focused:o,disabled:s,error:l,filled:i,required:p}=e,n={root:["root",`color${z(r)}`,s&&"disabled",l&&"error",i&&"filled",o&&"focused",p&&"required"],asterisk:["asterisk",l&&"error"]};return W(n,Xe,t)},Ze=T("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Te()).map(([t])=>({props:{color:t},style:{[`&.${$.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),et=T("span",{name:"MuiFormLabel",slot:"Asterisk"})(V(({theme:e})=>({[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}))),tt=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormLabel"}),{children:s,className:l,color:i,component:p="label",disabled:n,error:d,filled:m,focused:h,required:b,...g}=o,f=te(),u=re({props:o,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),c={...o,color:u.color||"primary",component:p,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required},C=Ye(c);return a.jsxs(Ze,{as:p,ownerState:c,className:U(C.root,l),ref:r,...g,children:[s,u.required&&a.jsxs(et,{ownerState:c,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});function rt(e){return A("MuiInputLabel",e)}N("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ot=e=>{const{classes:t,formControl:r,size:o,shrink:s,disableAnimation:l,variant:i,required:p}=e,n={root:["root",r&&"formControl",!l&&"animated",s&&"shrink",o&&o!=="medium"&&`size${z(o)}`,i],asterisk:[p&&"asterisk"]},d=W(n,rt,t);return{...t,...d}},st=T(tt,{shouldForwardProp:e=>ze(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${$.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(V(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:o})=>t==="filled"&&r.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),at=x.forwardRef(function(t,r){const o=H({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:l,shrink:i,variant:p,className:n,...d}=o,m=te();let h=i;typeof h>"u"&&m&&(h=m.filled||m.focused||m.adornedStart);const b=re({props:o,muiFormControl:m,states:["size","variant","required","focused"]}),g={...o,disableAnimation:s,formControl:m,shrink:h,size:b.size,variant:b.variant,required:b.required,focused:b.focused},f=ot(g);return a.jsx(st,{"data-shrink":h,ref:r,className:U(f.root,n),...d,ownerState:g,classes:f})});function nt(e){return A("MuiTextField",e)}N("MuiTextField",["root"]);const lt={standard:He,filled:Ne,outlined:Ae},it=e=>{const{classes:t}=e;return W({root:["root"]},nt,t)},dt=T(Ke,{name:"MuiTextField",slot:"Root"})({}),ct=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:l=!1,children:i,className:p,color:n="primary",defaultValue:d,disabled:m=!1,error:h=!1,FormHelperTextProps:b,fullWidth:g=!1,helperText:f,id:u,InputLabelProps:c,inputProps:C,InputProps:I,inputRef:G,label:y,maxRows:J,minRows:E,multiline:L=!1,name:D,onBlur:M,onChange:B,onFocus:O,placeholder:_,required:R=!1,rows:Q,select:F=!1,SelectProps:v,slots:j={},slotProps:pe={},type:ue,value:oe,variant:K="outlined",...me}=o,S={...o,autoFocus:l,color:n,disabled:m,error:h,fullWidth:g,multiline:L,required:R,select:F,variant:K},fe=it(S),k=Le(u),X=f&&k?`${k}-helper-text`:void 0,se=y&&k?`${k}-label`:void 0,xe=lt[K],P={slots:j,slotProps:{input:I,inputLabel:c,htmlInput:C,formHelperText:b,select:v,...pe}},q={},Y=P.slotProps.inputLabel;K==="outlined"&&(Y&&typeof Y.shrink<"u"&&(q.notched=Y.shrink),q.label=y),F&&((!v||!v.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[he,be]=w("root",{elementType:dt,shouldForwardComponentProp:!0,externalForwardedProps:{...P,...me},ownerState:S,className:U(fe.root,p),ref:r,additionalProps:{disabled:m,error:h,fullWidth:g,required:R,color:n,variant:K}}),[ve,ge]=w("input",{elementType:xe,externalForwardedProps:P,additionalProps:q,ownerState:S}),[Ce,Fe]=w("inputLabel",{elementType:at,externalForwardedProps:P,ownerState:S}),[ye,Se]=w("htmlInput",{elementType:"input",externalForwardedProps:P,ownerState:S}),[ke,Pe]=w("formHelperText",{elementType:Qe,externalForwardedProps:P,ownerState:S}),[Ie,we]=w("select",{elementType:Ue,externalForwardedProps:P,ownerState:S}),ae=a.jsx(ve,{"aria-describedby":X,autoComplete:s,autoFocus:l,defaultValue:d,fullWidth:g,multiline:L,name:D,rows:Q,maxRows:J,minRows:E,type:ue,value:oe,id:k,inputRef:G,onBlur:M,onChange:B,onFocus:O,placeholder:_,inputProps:Se,slots:{input:j.htmlInput?ye:void 0},...ge});return a.jsxs(he,{...be,children:[y!=null&&y!==""&&a.jsx(Ce,{htmlFor:k,id:se,...Fe,children:y}),F?a.jsx(Ie,{"aria-describedby":X,id:k,labelId:se,value:oe,input:ae,...we,children:i}):ae,f&&a.jsx(ke,{id:X,...Pe,children:f})]})});/** +import{h as A,f as N,r as x,u as H,j as a,s as T,c as U,b as z,d as W,m as V,e as Te,p as ze,q as Le,v as w,o as ee,i as Me,w as Re,l as je,S as ne,n as le}from"./index-PErRMx3K.js";import{i as Z,b as qe,c as ie,F as $e,u as te,f as re,O as Ae,d as Ne,I as He,S as Ue,D as We,e as Ee,C as De}from"./main-layout-By96MLvX.js";function Be(e){return A("MuiFormControl",e)}N("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Oe=e=>{const{classes:t,margin:r,fullWidth:o}=e,s={root:["root",r!=="none"&&`margin${z(r)}`,o&&"fullWidth"]};return W(s,Be,t)},_e=T("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${z(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ke=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormControl"}),{children:s,className:l,color:i="primary",component:p="div",disabled:n=!1,error:d=!1,focused:m,fullWidth:h=!1,hiddenLabel:b=!1,margin:g="none",required:f=!1,size:u="medium",variant:c="outlined",...C}=o,I={...o,color:i,component:p,disabled:n,error:d,fullWidth:h,hiddenLabel:b,margin:g,required:f,size:u,variant:c},G=Oe(I),[y,J]=x.useState(()=>{let F=!1;return s&&x.Children.forEach(s,v=>{if(!Z(v,["Input","Select"]))return;const j=Z(v,["Select"])?v.props.input:v;j&&qe(j.props)&&(F=!0)}),F}),[E,L]=x.useState(()=>{let F=!1;return s&&x.Children.forEach(s,v=>{Z(v,["Input","Select"])&&(ie(v.props,!0)||ie(v.props.inputProps,!0))&&(F=!0)}),F}),[D,M]=x.useState(!1);n&&D&&M(!1);const B=m!==void 0&&!n?m:D;let O;x.useRef(!1);const _=x.useCallback(()=>{L(!0)},[]),R=x.useCallback(()=>{L(!1)},[]),Q=x.useMemo(()=>({adornedStart:y,setAdornedStart:J,color:i,disabled:n,error:d,filled:E,focused:B,fullWidth:h,hiddenLabel:b,size:u,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:R,onFilled:_,registerEffect:O,required:f,variant:c}),[y,i,n,d,E,B,h,b,O,R,_,f,u,c]);return a.jsx($e.Provider,{value:Q,children:a.jsx(_e,{as:p,ownerState:I,className:U(G.root,l),ref:r,...C,children:s})})});function Ve(e){return A("MuiFormHelperText",e)}const de=N("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ce;const Ge=e=>{const{classes:t,contained:r,size:o,disabled:s,error:l,filled:i,focused:p,required:n}=e,d={root:["root",s&&"disabled",l&&"error",o&&`size${z(o)}`,r&&"contained",p&&"focused",i&&"filled",n&&"required"]};return W(d,Ve,t)},Je=T("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${z(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${de.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${de.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Qe=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormHelperText"}),{children:s,className:l,component:i="p",disabled:p,error:n,filled:d,focused:m,margin:h,required:b,variant:g,...f}=o,u=te(),c=re({props:o,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),C={...o,component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required};delete C.ownerState;const I=Ge(C);return a.jsx(Je,{as:i,className:U(I.root,l),ref:r,...f,ownerState:C,children:s===" "?ce||(ce=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});function Xe(e){return A("MuiFormLabel",e)}const $=N("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ye=e=>{const{classes:t,color:r,focused:o,disabled:s,error:l,filled:i,required:p}=e,n={root:["root",`color${z(r)}`,s&&"disabled",l&&"error",i&&"filled",o&&"focused",p&&"required"],asterisk:["asterisk",l&&"error"]};return W(n,Xe,t)},Ze=T("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Te()).map(([t])=>({props:{color:t},style:{[`&.${$.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),et=T("span",{name:"MuiFormLabel",slot:"Asterisk"})(V(({theme:e})=>({[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}))),tt=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormLabel"}),{children:s,className:l,color:i,component:p="label",disabled:n,error:d,filled:m,focused:h,required:b,...g}=o,f=te(),u=re({props:o,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),c={...o,color:u.color||"primary",component:p,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required},C=Ye(c);return a.jsxs(Ze,{as:p,ownerState:c,className:U(C.root,l),ref:r,...g,children:[s,u.required&&a.jsxs(et,{ownerState:c,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});function rt(e){return A("MuiInputLabel",e)}N("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ot=e=>{const{classes:t,formControl:r,size:o,shrink:s,disableAnimation:l,variant:i,required:p}=e,n={root:["root",r&&"formControl",!l&&"animated",s&&"shrink",o&&o!=="medium"&&`size${z(o)}`,i],asterisk:[p&&"asterisk"]},d=W(n,rt,t);return{...t,...d}},st=T(tt,{shouldForwardProp:e=>ze(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${$.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(V(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:o})=>t==="filled"&&r.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),at=x.forwardRef(function(t,r){const o=H({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:l,shrink:i,variant:p,className:n,...d}=o,m=te();let h=i;typeof h>"u"&&m&&(h=m.filled||m.focused||m.adornedStart);const b=re({props:o,muiFormControl:m,states:["size","variant","required","focused"]}),g={...o,disableAnimation:s,formControl:m,shrink:h,size:b.size,variant:b.variant,required:b.required,focused:b.focused},f=ot(g);return a.jsx(st,{"data-shrink":h,ref:r,className:U(f.root,n),...d,ownerState:g,classes:f})});function nt(e){return A("MuiTextField",e)}N("MuiTextField",["root"]);const lt={standard:He,filled:Ne,outlined:Ae},it=e=>{const{classes:t}=e;return W({root:["root"]},nt,t)},dt=T(Ke,{name:"MuiTextField",slot:"Root"})({}),ct=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:l=!1,children:i,className:p,color:n="primary",defaultValue:d,disabled:m=!1,error:h=!1,FormHelperTextProps:b,fullWidth:g=!1,helperText:f,id:u,InputLabelProps:c,inputProps:C,InputProps:I,inputRef:G,label:y,maxRows:J,minRows:E,multiline:L=!1,name:D,onBlur:M,onChange:B,onFocus:O,placeholder:_,required:R=!1,rows:Q,select:F=!1,SelectProps:v,slots:j={},slotProps:pe={},type:ue,value:oe,variant:K="outlined",...me}=o,S={...o,autoFocus:l,color:n,disabled:m,error:h,fullWidth:g,multiline:L,required:R,select:F,variant:K},fe=it(S),k=Le(u),X=f&&k?`${k}-helper-text`:void 0,se=y&&k?`${k}-label`:void 0,xe=lt[K],P={slots:j,slotProps:{input:I,inputLabel:c,htmlInput:C,formHelperText:b,select:v,...pe}},q={},Y=P.slotProps.inputLabel;K==="outlined"&&(Y&&typeof Y.shrink<"u"&&(q.notched=Y.shrink),q.label=y),F&&((!v||!v.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[he,be]=w("root",{elementType:dt,shouldForwardComponentProp:!0,externalForwardedProps:{...P,...me},ownerState:S,className:U(fe.root,p),ref:r,additionalProps:{disabled:m,error:h,fullWidth:g,required:R,color:n,variant:K}}),[ve,ge]=w("input",{elementType:xe,externalForwardedProps:P,additionalProps:q,ownerState:S}),[Ce,Fe]=w("inputLabel",{elementType:at,externalForwardedProps:P,ownerState:S}),[ye,Se]=w("htmlInput",{elementType:"input",externalForwardedProps:P,ownerState:S}),[ke,Pe]=w("formHelperText",{elementType:Qe,externalForwardedProps:P,ownerState:S}),[Ie,we]=w("select",{elementType:Ue,externalForwardedProps:P,ownerState:S}),ae=a.jsx(ve,{"aria-describedby":X,autoComplete:s,autoFocus:l,defaultValue:d,fullWidth:g,multiline:L,name:D,rows:Q,maxRows:J,minRows:E,type:ue,value:oe,id:k,inputRef:G,onBlur:M,onChange:B,onFocus:O,placeholder:_,inputProps:Se,slots:{input:j.htmlInput?ye:void 0},...ge});return a.jsxs(he,{...be,children:[y!=null&&y!==""&&a.jsx(Ce,{htmlFor:k,id:se,...Fe,children:y}),F?a.jsx(Ie,{"aria-describedby":X,id:k,labelId:se,value:oe,input:ae,...we,children:i}):ae,f&&a.jsx(ke,{id:X,...Pe,children:f})]})});/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. diff --git a/src/frontend/dist/assets/index-CjW85zni.js b/src/frontend/dist/assets/index-PErRMx3K.js similarity index 99% rename from src/frontend/dist/assets/index-CjW85zni.js rename to src/frontend/dist/assets/index-PErRMx3K.js index 81078fbd..54ac8190 100644 --- a/src/frontend/dist/assets/index-CjW85zni.js +++ b/src/frontend/dist/assets/index-PErRMx3K.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/setup-BAm7AVk9.js","assets/main-layout-BuYSNSZl.js","assets/main-layout-DVneG3Rq.css","assets/join-EB_i0cv0.js","assets/chat-DD20GMag.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/setup-Bxlzm9g5.js","assets/main-layout-By96MLvX.js","assets/main-layout-DVneG3Rq.css","assets/join-Ct6Vm6PP.js","assets/chat-DCeKw9oj.js"])))=>i.map(i=>d[i]); function MS(n,r){for(var l=0;lo[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function l(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=l(s);fetch(s.href,c)}})();function Na(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Tf={exports:{}},yl={};/** * @license React * react-jsx-runtime.production.js @@ -315,4 +315,4 @@ export default theme;`}function P0(n){return typeof n=="number"?`${(n*100).toFix 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},kO=function(){return Oe.createElement(us,null,Oe.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12A10,10 0 0,0 12,2Z`}))},$O={default:void 0,success:Oe.createElement(DO,null),warning:Oe.createElement(_O,null),error:Oe.createElement(zO,null),info:Oe.createElement(kO,null)},cr={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:$O,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:n1,transitionDuration:{enter:225,exit:195}},NO=function(r,l){var o=function(c){return typeof c=="number"||c===null};return o(r)?r:o(l)?l:cr.autoHideDuration},BO=function(r,l){var o=function(c,d){return d.some(function(h){return typeof c===h})};return o(r,["string","number"])?r:o(r,["object"])?Ve({},cr.transitionDuration,{},o(l,["object"])&&l,{},r):o(l,["string","number"])?l:o(l,["object"])?Ve({},cr.transitionDuration,{},l):cr.transitionDuration},LO=function(r,l){return function(o,s){return s===void 0&&(s=!1),s?Ve({},cr[o],{},l[o],{},r[o]):o==="autoHideDuration"?NO(r.autoHideDuration,l.autoHideDuration):o==="transitionDuration"?BO(r.transitionDuration,l.transitionDuration):r[o]||l[o]||cr[o]}};function Zl(n){return Object.entries(n).reduce(function(r,l){var o,s=l[0],c=l[1];return Ve({},r,(o={},o[s]=ih(c),o))},{})}var mi={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(r){return"notistack-MuiContent-"+r}},Ay=Zl({root:{height:0},entered:{height:"auto"}}),Gf="0px",Pf=175,a1=x.forwardRef(function(n,r){var l=n.children,o=n.in,s=n.onExited,c=x.useRef(null),d=x.useRef(null),h=Cd(r,d),p=function(){return c.current?c.current.clientHeight:0},m=function(T){T.style.height=Gf},y=function(T){var M=p(),D=qu({timeout:Pf,mode:"enter"}),_=D.duration,$=D.easing;T.style.transitionDuration=typeof _=="string"?_:_+"ms",T.style.height=M+"px",T.style.transitionTimingFunction=$||""},v=function(T){T.style.height="auto"},S=function(T){T.style.height=p()+"px"},O=function(T){e1(T);var M=qu({timeout:Pf,mode:"exit"}),D=M.duration,_=M.easing;T.style.transitionDuration=typeof D=="string"?D:D+"ms",T.style.height=Gf,T.style.transitionTimingFunction=_||""};return x.createElement(oh,{in:o,unmountOnExit:!0,onEnter:m,onEntered:v,onEntering:y,onExit:S,onExited:s,onExiting:O,nodeRef:d,timeout:Pf},function(E,T){return x.createElement("div",Object.assign({ref:h,className:mr(Ay.root,E==="entered"&&Ay.entered),style:Ve({pointerEvents:"all",overflow:"hidden",minHeight:Gf,transition:si("height")},E==="entered"&&{overflow:"visible"},{},E==="exited"&&!o&&{visibility:"hidden"})},T),x.createElement("div",{ref:c,className:mi.CollapseWrapper,style:{display:"flex",width:"100%"}},l))})});a1.displayName="Collapse";var Oy={right:"left",left:"right",bottom:"up",top:"down"},jO=function(r){return r.horizontal!=="center"?Oy[r.horizontal]:Oy[r.vertical]},UO=function(r){return"anchorOrigin"+lh(r)},HO=function(r){r===void 0&&(r={});var l={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(r).filter(function(o){return!l[o]}).reduce(function(o,s){var c;return Ve({},o,(c={},c[s]=r[s],c))},{})},YO=function(){};function Dl(n,r){return n.reduce(function(l,o){return o==null?l:function(){for(var c=arguments.length,d=new Array(c),h=0;h-1,$=M.snacks.findIndex(D)>-1;if(_||$)return M}return s.handleDisplaySnack(Ve({},M,{queue:[].concat(M.queue,[T])}))}),O},s.handleDisplaySnack=function(c){var d=c.snacks;return d.length>=s.maxSnack?s.handleDismissOldest(c):s.processQueue(c)},s.processQueue=function(c){var d=c.queue,h=c.snacks;return d.length>0?Ve({},c,{snacks:[].concat(h,[d[0]]),queue:d.slice(1,d.length)}):c},s.handleDismissOldest=function(c){if(c.snacks.some(function(y){return!y.open||y.requestClose}))return c;var d=!1,h=!1,p=c.snacks.reduce(function(y,v){return y+(v.open&&v.persist?1:0)},0);p===s.maxSnack&&(h=!0);var m=c.snacks.map(function(y){return!d&&(!y.persist||h)?(d=!0,y.entered?(y.onClose&&y.onClose(null,"maxsnack",y.id),s.props.onClose&&s.props.onClose(null,"maxsnack",y.id),Ve({},y,{open:!1})):Ve({},y,{requestClose:!0})):Ve({},y)});return Ve({},c,{snacks:m})},s.handleEnteredSnack=function(c,d,h){if(!gu(h))throw new Error("handleEnteredSnack Cannot be called with undefined key");s.setState(function(p){var m=p.snacks;return{snacks:m.map(function(y){return y.id===h?Ve({},y,{entered:!0}):Ve({},y)})}})},s.handleCloseSnack=function(c,d,h){s.props.onClose&&s.props.onClose(c,d,h);var p=h===void 0;s.setState(function(m){var y=m.snacks,v=m.queue;return{snacks:y.map(function(S){return!p&&S.id!==h?Ve({},S):S.entered?Ve({},S,{open:!1}):Ve({},S,{requestClose:!0})}),queue:v.filter(function(S){return S.id!==h})}})},s.closeSnackbar=function(c){var d=s.state.snacks.find(function(h){return h.id===c});gu(c)&&d&&d.onClose&&d.onClose(null,"instructed",c),s.handleCloseSnack(null,"instructed",c)},s.handleExitedSnack=function(c,d){if(!gu(d))throw new Error("handleExitedSnack Cannot be called with undefined key");s.setState(function(h){var p=s.processQueue(Ve({},h,{snacks:h.snacks.filter(function(m){return m.id!==d})}));return p.queue.length===0?p:s.handleDismissOldest(p)})},s.enqueueSnackbar,s.closeSnackbar,s.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:s.enqueueSnackbar.bind(Sy(s)),closeSnackbar:s.closeSnackbar.bind(Sy(s))}},s}var l=r.prototype;return l.render=function(){var s=this,c=this.state.contextValue,d=this.props,h=d.domRoot,p=d.children,m=d.dense,y=m===void 0?!1:m,v=d.Components,S=v===void 0?{}:v,O=d.classes,E=this.state.snacks.reduce(function(M,D){var _,$=lh(D.anchorOrigin),B=M[$]||[];return Ve({},M,(_={},_[$]=[].concat(B,[D]),_))},{}),T=Object.keys(E).map(function(M){var D=E[M],_=D[0];return Oe.createElement(QO,{key:M,dense:y,anchorOrigin:_.anchorOrigin,classes:O},D.map(function($){return Oe.createElement(XO,{key:$.id,snack:$,classes:O,Component:S[$.variant],onClose:s.handleCloseSnack,onEnter:s.props.onEnter,onExit:s.props.onExit,onExited:Dl([s.handleExitedSnack,s.props.onExited],$.id),onEntered:Dl([s.handleEnteredSnack,s.props.onEntered],$.id)})}))});return Oe.createElement(Jv.Provider,{value:c},p,h?Wy.createPortal(T,h):T)},Wv(r,[{key:"maxSnack",get:function(){return this.props.maxSnack||cr.maxSnack}}]),r})(x.Component),IO=(function(){return x.useContext(Jv)});function WO(n){return ct("MuiTitleIcon",n)}rt("MuiTitleIcon",["root","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning"]);const FO=n=>{const{classes:r,variant:l,color:o}=n,s={root:["root",l&&`variant${ge(l)}`,o&&`color${ge(o)}`],outlineOuter:["outlineOuter"],outlineInner:["outlineInner"]};return gn(s,WO,r)},JO=["inherit","primary","secondary","error","info","success","warning"],ew=Me("div",{name:"MuiTitleIcon",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:{color:l,variant:o}}=n;return[r.root,l&&r[`color${ge(l)}`],o&&r[`variant${ge(o)}`]]}})(({theme:n})=>{const{palette:r}=n;return{position:"relative",width:"2.25rem",height:"2.25rem",display:"inline-flex",justifyContent:"center",alignItems:"center",color:"inherit",backgroundColor:"transparent",border:"none",outline:"none",fontSize:"1.25rem",[`& .${p5.root}, & .tabler-icon, & svg`]:{width:"1em",height:"1em"},variants:[...JO.map(l=>({props:{color:l},style:{color:l==="inherit"?"inherit":l==="default"?r.text.primary:r[l].main}}))]}}),tw=Me("div",{name:"MuiTitleIcon",slot:"OutlineOuter"})(()=>({boxSizing:"border-box",width:"2.25rem",height:"2.25rem",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",opacity:.1,borderWidth:"1.667px",borderStyle:"solid",borderColor:"currentcolor",variants:[{props:{variant:"circle"},style:{borderRadius:"50%"}},{props:{variant:"square"},style:{borderRadius:"0.38rem"}}]})),nw=Me("div",{name:"MuiTitleIcon",slot:"OutlineInner"})(()=>({boxSizing:"border-box",width:"1.75rem",height:"1.75rem",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",opacity:.3,borderWidth:"1.667px",borderStyle:"solid",borderColor:"currentcolor",variants:[{props:{variant:"circle"},style:{borderRadius:"50%"}},{props:{variant:"square"},style:{borderRadius:"0.25em"}}]})),Xw=x.forwardRef(function(r,l){const o=Lv({props:r,name:"MuiTitleIcon"}),{children:s,classes:c,variant:d="circle",color:h="default",className:p,...m}=o,y={...o,variant:d,color:h},v=FO(y);return W.jsxs(ew,{ref:l,className:Ze(v.root,p),ownerState:y,role:"img",...m,children:[W.jsx(tw,{className:v.outlineOuter,ownerState:y}),W.jsx(nw,{className:v.outlineInner,ownerState:y}),s]})}),aw=Me("div",{name:"MuiTitleIconForm",slot:"Root"})(({theme:n})=>{const{palette:r}=n;return{flex:"none",width:"3rem",height:"3rem",aspectRatio:"1 / 1",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"0.375rem",backgroundColor:r.grey[250],overflow:"hidden"}}),rw=Me("div",{name:"MuiTitleIconForm",slot:"Image"})(({theme:n})=>{const{palette:r}=n;return{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"url(/assets/common/form-half-one.png) center / cover no-repeat",mixBlendMode:"multiply"}}),Zw=()=>W.jsx(aw,{children:W.jsx(rw,{})}),iw=Me("div")(({theme:n})=>{const{palette:r}=n;return{display:"flex",flexFlow:"row nowrap",alignItems:"center",justifyContent:"flex-start",gap:"0.75rem",paddingBlockStart:"0.75rem",color:r.grey[700]}}),lw=Me("div")(({theme:n})=>{const{palette:r}=n;return{position:"absolute",bottom:0,left:"-1rem",right:"-1rem"}}),ow=150,uw=n=>{const{severity:r,autoHideDuration:l=0}=n,[o,s]=x.useState(0);return x.useEffect(()=>{if(l<=0)return;const c=l/100;let d,h;const p=()=>d=requestAnimationFrame(m=>{h||(h=m);const y=Math.min(100,Math.ceil((m+ow-h)/c));s(y),y<100&&p()});return p(),()=>{d&&cancelAnimationFrame(d)}},[l]),W.jsx(lw,{children:W.jsx(M5,{variant:"determinate",color:r,value:o})})},sw=x.forwardRef((n,r)=>{const{autoHideDuration:l,variant:o,title:s,children:c,onClose:d,action:h,dismissLabel:p="Dismiss",onDismiss:m,...y}=n;let v=s,S=c;!v&&S&&(v=S,S=void 0);const O=m&&W.jsx(u5,{variant:"text",color:"inherit",onClick:m,children:p}),E=(!!h||!!O)&&W.jsxs(W.Fragment,{children:[O,h]})||void 0;return o==="notification"?W.jsxs(J0,{...y,variant:o,onClose:d,ref:r,children:[!!v&&W.jsx(ty,{children:v}),S,E&&W.jsx(iw,{children:E}),l&&l>0&&W.jsx(uw,{...n})]}):W.jsxs(J0,{...y,variant:o,onClose:d,action:E,ref:r,children:[!!v&&W.jsx(ty,{children:v}),S]})}),Al=x.forwardRef((n,r)=>{const{id:l,variant:o,title:s,message:c,action:d,notification:h=!0,closable:p=h,dismissAble:m,persist:y,autoHideDuration:v,hideIconVariant:S,className:O,style:E}=n,{closeSnackbar:T}=IO(),M=o==="default"?"info":o,D=typeof d=="function"?d(l):d,_=p&&(()=>T(l))||void 0,$=m&&(()=>T(l))||void 0,B=v||void 0;return W.jsx(sw,{variant:h&&"notification"||"outlined",severity:M,icon:S?!1:void 0,onClose:_,onDismiss:$,action:D,title:s,autoHideDuration:B,ref:r,className:O,style:E,children:c})}),cw={default:Al,info:Al,success:Al,warning:Al,error:Al},o1=({children:n})=>W.jsx(KO,{anchorOrigin:{vertical:"bottom",horizontal:"right"},maxSnack:5,autoHideDuration:5e3,Components:cw,style:{width:"21.25rem"},children:n}),fw=n=>{const{palette:r,overlays:l}=n;return{defaultProps:{variant:"outlined"},styleOverrides:{root:{variants:[{props:({ownerState:o})=>!o.square,style:{borderRadius:"0.75rem"}},{props:{variant:"outlined"},style:{border:`1px solid ${r.divider}`}},{props:{variant:"overlay"},style:{border:`1px solid ${r.divider}`,boxShadow:l.shadowMiddle}}]}}}},dw=n=>{const{spacing:r}=n;return{defaultProps:{slotProps:{paper:{variant:"overlay"},backdrop:{invisible:!0}}},styleOverrides:{root:{[`& .${gd.root}`]:{marginBlock:r(1.5)}},paper:{padding:r(1)}}}},hw=n=>{const{spacing:r}=n;return{defaultProps:{},styleOverrides:{}}},mw=n=>{const{palette:r,spacing:l}=n;return{defaultProps:{},styleOverrides:{root:{padding:l(1),gap:l(.75),"&:hover":{backgroundColor:r.grey[200]},[`& + .${gd.root}`]:{margin:0,marginBlock:l(1.5)},[`& .${gd.inset}`]:{margin:0,marginInline:`${la.small}rem`},[`& .${A5.root}`]:{minWidth:`${la.small}rem`}}}}},pw=Object.freeze(Object.defineProperty({__proto__:null,MuiAlert:cO,MuiAlertTitle:sO,MuiBackdrop:fO,MuiButton:hA,MuiButtonBase:mA,MuiButtonGroup:pA,MuiChip:GA,MuiCssBaseline:fA,MuiDialog:gO,MuiDialogActions:dO,MuiDialogContent:mO,MuiDialogContentText:pO,MuiDialogTitle:hO,MuiDivider:PA,MuiFormControl:yA,MuiFormHelperText:bA,MuiFormLabel:vA,MuiIconButton:gA,MuiInputAdornment:xA,MuiInputBase:TA,MuiInputLabel:SA,MuiLinearProgress:yO,MuiList:XA,MuiListItem:ZA,MuiListItemAvatar:WA,MuiListItemButton:QA,MuiListItemIcon:KA,MuiListItemText:IA,MuiMenu:dw,MuiMenuItem:mw,MuiMenuList:hw,MuiOutlinedInput:EA,MuiPaper:fw,MuiSelect:LA,MuiSlider:HA,MuiSnackbar:bO,MuiSnackbarContent:vO,MuiTable:JA,MuiTableBody:tO,MuiTableCell:aO,MuiTableContainer:FA,MuiTableFooter:rO,MuiTableHead:eO,MuiTablePagination:iO,MuiTablePaginationActions:lO,MuiTableRow:nO,MuiTableSortLabel:oO,MuiTextField:MA,MuiToggleButton:YA,MuiToggleButtonGroup:qA,MuiTypography:uO,SnackbarProvider:o1},Symbol.toStringTag,{value:"Module"})),Ll=Fd({palette:iA,typography:lA,spacing:n=>`${n*8/Qv}rem`,overlays:oA});Ll.components=Ll.components||{};Object.entries(pw).forEach(([n,r])=>{n.startsWith("Mui")&&typeof r=="function"&&(Ll.components[n]=r(Ll))});const gw=({children:n})=>W.jsx(BE,{theme:{[Tn]:Ll},children:W.jsx(o1,{children:W.jsx(_5,{dateAdapter:aA,localeText:{okButtonLabel:"Apply"},children:n})})}),yw="modulepreload",vw=function(n){return"/"+n},zy={},uh=function(r,l,o){let s=Promise.resolve();if(l&&l.length>0){let p=function(m){return Promise.all(m.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),h=d?.nonce||d?.getAttribute("nonce");s=p(l.map(m=>{if(m=vw(m),m in zy)return;zy[m]=!0;const y=m.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${v}`))return;const S=document.createElement("link");if(S.rel=y?"stylesheet":yw,y||(S.as="script"),S.crossOrigin="",S.href=m,h&&S.setAttribute("nonce",h),document.head.appendChild(S),y)return new Promise((O,E)=>{S.addEventListener("load",O),S.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${m}`)))})}))}function c(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return s.then(d=>{for(const h of d||[])h.status==="rejected"&&c(h.reason);return r().catch(c)})},bw=n=>r=>{const{url:l,method:o="GET",afterFetch:s=$=>$}=n,{debugName:c,onStatusChange:d,onMessage:h,onError:p}=r,m=new TextDecoder;let y,v;const S=(...$)=>{console.log(`%c http-stream.ts ${o} ${l} ${c??""}`,"color: white; background: darkcyan; padding: 2px 4px; border-radius: 2px;",...$)},O=$=>{S("onStatusChange",$);try{d?.($)}catch(B){S("onStatusChange Error",B)}},E=$=>{try{h?.($)}catch(B){S("onMessage Error",B)}},T=async()=>{try{v&&(await v.cancel(),v=void 0)}catch($){S("reader cancel error",$)}};return Object.freeze({send:($={})=>{const{headers:B,body:z,data:L}=$;O("connecting"),S("send",L),y=new AbortController;let q;const Q=L?.type==="queue_info"?0:5e3;Q>0&&(q=setTimeout(()=>{S(`fetch timeout: triggering abort after ${Q}ms`);try{y?.abort()}catch(K){S("abort error during timeout",K)}O("error"),p?.(new Error("The request timed out. Please try again later."))},Q)),fetch(l,{headers:{"Content-Type":"application/json",...B},method:o,body:L&&JSON.stringify(L)||z,signal:y.signal}).then(async K=>{if(q&&(clearTimeout(q),q=void 0),K.status!==200||K.headers.get("content-type")!=="application/x-ndjson"){S("fetch status error or content-type error",K),O("error");return}if(v=K.body?.getReader(),!v){S("getReader error",K),O("error");return}O("connected");let F="";for(;;){const{done:C,value:ie}=await v.read();if(C){await T(),O("disconnected");break}const P=m.decode(ie);F+=P;const X=F.split(` `);F=X.pop()||"",X.forEach(w=>{try{const H=s(JSON.parse(w));E(H)}catch(H){S("Parse Message Error",H)}})}}).catch(async K=>{q&&(clearTimeout(q),q=void 0),await T(),S("fetch error",K),O("error"),p?.(K)}).finally(async()=>{q&&(clearTimeout(q),q=void 0),await T(),y=void 0})},abort:()=>{try{y?.abort(),y=void 0}catch($){S("abort error",$)}v?.cancel(),v=void 0,O("disconnected")}})},ss="",Sw=async()=>{const r=await(await fetch(`${ss}/model/list`,{method:"GET"})).json();if(r.type!=="model_list")throw new Error(`Invalid message type: ${r.type}.`);return r.data},xw=async n=>{const l=await(await fetch(`${ss}/scheduler/init`,{method:"POST",body:JSON.stringify(n)})).json();if(l.type!=="scheduler_init")throw new Error(`Invalid message type: ${l.type}.`);return l.data},Cw=bw({url:`${ss}/cluster/status`,method:"GET"}),ky=n=>{const r=x.useRef(void 0);return r.current||(r.current={value:typeof n=="function"?n():n}),r.current.value},Tw=n=>{const r=x.useRef(void 0);return r.current||(r.current={callback:n}),r.current.callback},Bu=n=>{const r=x.useRef(void 0);return r.current=n,Tw(((...o)=>r.current?.(...o)))},Ew="/assets/qwen-JvO50h5P.png",$y=(...n)=>{console.log("%c cluster.tsx ","color: white; background: darkcyan;",...n)},u1=x.createContext(void 0),{Provider:Mw}=u1,Aw=({children:n})=>{const[r,l]=x.useState("local"),[o,s]=x.useState(1),[c,d]=x.useState(""),[h,p]=x.useState([]);x.useEffect(()=>{Sw().then(M=>{p(M.map(D=>({name:D,displayName:D,logoUrl:Ew})))})},[]),x.useEffect(()=>{h.length&&d(h[0].name)},[h]);const[m,y]=x.useState(()=>({id:"",status:"idle",nodeJoinCommand:{},initNodesNumber:4})),[v,S]=x.useState(()=>[]);x.useMemo(()=>{const D=Cw({onMessage:_=>{if(_.type==="cluster_status"){const{data:{status:$,init_nodes_num:B,model_name:z,node_join_command:L,node_list:q}}=_;y(ee=>{const Q={...ee,status:$,initNodesNumber:B||0,modelName:z||"",nodeJoinCommand:L||{}};return JSON.stringify(Q)!==JSON.stringify(ee)?($y("setClusterInfo",Q),Q):ee}),S(ee=>{const Q=q.map(({node_id:K,status:F,gpu_name:C,gpu_memory:ie})=>({id:K,status:F,gpuName:C,gpuMemory:ie}));return JSON.stringify(Q)!==JSON.stringify(ee)?($y("setNodeInfoList",Q),Q):ee})}}});return D.send(),D},[]);const O=Bu(async()=>{xw({model_name:c,init_nodes_num:o,is_local_network:r==="local"})}),E=x.useMemo(()=>({setNetworkType:l,setInitNodesNumber:s,setModelName:d,init:O}),[]),T=x.useMemo(()=>[{networkType:r,initNodesNumber:o,modelName:c,modelInfoList:h,clusterInfo:m,nodeInfoList:v},E],[r,o,c,h,m,v,E]);return W.jsx(Mw,{value:T,children:n})},s1=()=>{const n=x.useContext(u1);if(!n)throw new Error("useCluster must be used within a ClusterProvider");return n},Ow=(...n)=>{},ww=({children:n})=>{const[{modelName:r,clusterInfo:{status:l}}]=s1(),[o,s]=x.useState(""),[c,d]=x.useState("closed"),[h,p]=x.useState([]),m=ky(()=>Rw({onOpen:()=>d("opened"),onClose:()=>d("closed"),onError:T=>d("error"),onMessage:T=>{const{data:{id:M,object:D,model:_,created:$,choices:B,usage:z}}=T;D==="chat.completion.chunk"&&B?.length>0&&(B[0].delta.content&&d("generating"),p(L=>{let q=L;return B.forEach(({delta:{role:ee,content:Q}={}})=>{if(typeof Q!="string")return;ee=ee||"assistant";let K=q[q.length-1];if(K&&K.role===ee){if(K.content+Q===K.content)return;K={...K,content:K.content+Q},q=[...q.slice(0,-1),K]}else K={id:M,role:ee,content:Q,createdAt:$},q=[...q,K];Ow("onMessage","update last message",K.content)}),q}))}})),y=Bu(T=>{if(l!=="available"||c==="opened"||c==="generating"||!r)return;let M=h;if(T){const D=h.findIndex($=>$.id===T.id),_=h[D];if(!_)return;M=M.slice(0,D+(_.role==="user"?1:0))}else{const D=o.trim();if(!D)return;s("");const _=performance.now();M=[...M,{id:_.toString(),role:"user",content:D,createdAt:_}]}p(M),m.connect(r,M)}),v=Bu(()=>{c==="opened"&&m.disconnect()}),S=Bu(()=>{v(),c!=="opened"&&p([])}),O=ky({setInput:s,generate:y,stop:v,clear:S}),E=x.useMemo(()=>[{input:o,status:c,messages:h},O],[o,c,h,O]);return W.jsx(c1.Provider,{value:E,children:n})},c1=x.createContext(void 0),Qw=()=>{const n=x.useContext(c1);if(!n)throw new Error("useChat must be used within a ChatProvider");return n},Rw=n=>{const{onOpen:r,onClose:l,onError:o,onMessage:s}=n,c=new TextDecoder;let d,h;return{connect:(y,v)=>{h=new AbortController,fetch(`${ss}/v1/chat/completions`,{method:"POST",body:JSON.stringify({stream:!0,model:y,messages:v,max_tokens:2048,sampling_params:{top_k:3}}),signal:h.signal}).then(async S=>{const O=S.status,E=S.headers.get("Content-Type");if(O!==200){o?.(new Error(`[SSE] Failed to connect: ${O}`));return}if(!E?.includes("text/event-stream")){o?.(new Error(`[SSE] Invalid content type: ${E}`));return}if(d=S.body?.getReader(),!d){o?.(new Error("[SSE] Failed to get reader"));return}r?.();let T="";const M=D=>{const _={event:"message",data:void 0};D.forEach($=>{const B=$.indexOf(":");if(B<=0)return;const z=$.slice(0,B).trim(),L=$.slice(B+1).trim();if(!L.startsWith(":")){switch(z){case"event":_.event=L;break;case"id":_.id=L;break;case"data":try{const q=JSON.parse(L),ee=Q=>{Q&&(Array.isArray(Q)?Q.forEach((K,F)=>{K===null?Q[F]=void 0:ee(K)}):typeof Q=="object"&&Object.keys(Q).forEach(K=>{Q[K]===null?delete Q[K]:ee(Q[K])}))};ee(q),_.data=q}catch{_.data=L}break}_.data!==void 0&&s?.(_)}})};for(;;){const{done:D,value:_}=await d.read();if(D){l?.();return}const $=c.decode(_);T+=$;const B=T.split(` -`);T=B.pop()||"",M(B)}}).catch(S=>{if(S instanceof Error&&S.name==="AbortError"){l?.();return}o?.(S)})},disconnect:()=>{d?.cancel(),d=void 0,h?.abort("stop"),h=void 0,l?.()}}},Dw=x.lazy(()=>uh(()=>import("./setup-BAm7AVk9.js"),__vite__mapDeps([0,1,2]))),_w=x.lazy(()=>uh(()=>import("./join-EB_i0cv0.js"),__vite__mapDeps([3,1,2]))),zw=x.lazy(()=>uh(()=>import("./chat-DD20GMag.js"),__vite__mapDeps([4,1,2]))),If=(...n)=>{console.log("%c router.tsx ","color: white; background: purple;",...n)},kw=()=>{const n=wd(),[{clusterInfo:{status:r}}]=s1();return x.useEffect(()=>{switch(If("cluster status",r),r){case"idle":case"waiting":If("no need to navigate");break;default:If("navigate to /chat");break}},[n,r]),c2([{path:"/",element:W.jsx(T2,{to:"/setup",replace:!0})},{path:"/setup",element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(Dw,{})})},{path:"/join",element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(_w,{})})},{path:"/chat",element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(zw,{})})},{path:"*",element:W.jsx("div",{children:"404 - Page Not Found"})}])},$w=Me("div")(({theme:n})=>{const{palette:r,typography:l}=n;return{...l.body2,color:r.text.primary,backgroundColor:r.background.default,width:"100%",height:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center"}}),Nw=()=>W.jsx($w,{children:W.jsx(Aw,{children:W.jsx(ww,{children:W.jsx(kw,{})})})});$S.createRoot(document.getElementById("root")).render(W.jsx(x.StrictMode,{children:W.jsx(Z2,{children:W.jsxs(gw,{children:[W.jsx(h5,{}),W.jsx(Nw,{})]})})}));export{Fd as $,J0 as A,Vv as B,vv as C,Hv as D,Oe as E,Z0 as F,aM as G,iM as H,sd as I,nM as J,Pd as K,Ky as L,Wy as M,wu as N,Uv as O,tM as P,JM as Q,Bw as R,O5 as S,KM as T,jw as U,fr as V,Gl as W,_E as X,iT as Y,Tn as Z,qE as _,Bl as a,rM as a0,qv as a1,Hw as a2,m5 as a3,Yw as a4,Lt as a5,WE as a6,qw as a7,Lw as a8,AT as a9,A5 as aa,gd as ab,Uw as ac,ar as ad,zE as ae,bi as af,La as ag,Vw as ah,w5 as ai,Gw as aj,ry as ak,Zw as al,Xw as am,_A as an,my as ao,kA as ap,Pv as aq,NA as ar,Na as as,ge as b,Ze as c,gn as d,en as e,rt as f,Pw as g,ct as h,s1 as i,W as j,wd as k,Bu as l,Gt as m,u5 as n,Pl as o,jv as p,Qd as q,x as r,Me as s,R5 as t,tn as u,ii as v,Qw as w,nC as x,hr as y,Gd as z}; +`);T=B.pop()||"",M(B)}}).catch(S=>{if(S instanceof Error&&S.name==="AbortError"){l?.();return}o?.(S)})},disconnect:()=>{d?.cancel(),d=void 0,h?.abort("stop"),h=void 0,l?.()}}},Dw=x.lazy(()=>uh(()=>import("./setup-Bxlzm9g5.js"),__vite__mapDeps([0,1,2]))),_w=x.lazy(()=>uh(()=>import("./join-Ct6Vm6PP.js"),__vite__mapDeps([3,1,2]))),zw=x.lazy(()=>uh(()=>import("./chat-DCeKw9oj.js"),__vite__mapDeps([4,1,2]))),If=(...n)=>{console.log("%c router.tsx ","color: white; background: purple;",...n)},kw=()=>{const n=wd(),[{clusterInfo:{status:r}}]=s1();return x.useEffect(()=>{switch(If("cluster status",r),r){case"idle":case"waiting":If("no need to navigate");break;default:If("navigate to /chat");break}},[n,r]),c2([{path:"/",element:W.jsx(T2,{to:"/setup",replace:!0})},{path:"/setup",element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(Dw,{})})},{path:"/join",element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(_w,{})})},{path:"/chat",element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(zw,{})})},{path:"*",element:W.jsx("div",{children:"404 - Page Not Found"})}])},$w=Me("div")(({theme:n})=>{const{palette:r,typography:l}=n;return{...l.body2,color:r.text.primary,backgroundColor:r.background.default,width:"100%",height:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center"}}),Nw=()=>W.jsx($w,{children:W.jsx(Aw,{children:W.jsx(ww,{children:W.jsx(kw,{})})})});$S.createRoot(document.getElementById("root")).render(W.jsx(x.StrictMode,{children:W.jsx(Z2,{children:W.jsxs(gw,{children:[W.jsx(h5,{}),W.jsx(Nw,{})]})})}));export{Fd as $,J0 as A,Vv as B,vv as C,Hv as D,Oe as E,Z0 as F,aM as G,iM as H,sd as I,nM as J,Pd as K,Ky as L,Wy as M,wu as N,Uv as O,tM as P,JM as Q,Bw as R,O5 as S,KM as T,jw as U,fr as V,Gl as W,_E as X,iT as Y,Tn as Z,qE as _,Bl as a,rM as a0,qv as a1,Hw as a2,m5 as a3,Yw as a4,Lt as a5,WE as a6,qw as a7,Lw as a8,AT as a9,A5 as aa,gd as ab,Uw as ac,ar as ad,zE as ae,bi as af,La as ag,Vw as ah,w5 as ai,Gw as aj,ry as ak,Zw as al,Xw as am,_A as an,my as ao,kA as ap,Pv as aq,NA as ar,Na as as,ge as b,Ze as c,gn as d,en as e,rt as f,Pw as g,ct as h,s1 as i,W as j,wd as k,Bu as l,Gt as m,u5 as n,Pl as o,jv as p,Qd as q,x as r,Me as s,R5 as t,tn as u,ii as v,Qw as w,nC as x,hr as y,Gd as z}; diff --git a/src/frontend/dist/assets/join-EB_i0cv0.js b/src/frontend/dist/assets/join-Ct6Vm6PP.js similarity index 94% rename from src/frontend/dist/assets/join-EB_i0cv0.js rename to src/frontend/dist/assets/join-Ct6Vm6PP.js index ad32a895..7e7550e4 100644 --- a/src/frontend/dist/assets/join-EB_i0cv0.js +++ b/src/frontend/dist/assets/join-Ct6Vm6PP.js @@ -1,4 +1,4 @@ -import{o as l,i as c,r as u,j as e,T as t,s as h,A as a,n as p,L as m,S as x}from"./index-CjW85zni.js";import{M as y,J as f,N as j}from"./main-layout-BuYSNSZl.js";/** +import{o as l,i as c,r as u,j as e,T as t,s as h,A as a,n as p,L as m,S as x}from"./index-PErRMx3K.js";import{M as y,J as f,N as j}from"./main-layout-By96MLvX.js";/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. diff --git a/src/frontend/dist/assets/main-layout-BuYSNSZl.js b/src/frontend/dist/assets/main-layout-By96MLvX.js similarity index 85% rename from src/frontend/dist/assets/main-layout-BuYSNSZl.js rename to src/frontend/dist/assets/main-layout-By96MLvX.js index ea2dc085..cb8efa64 100644 --- a/src/frontend/dist/assets/main-layout-BuYSNSZl.js +++ b/src/frontend/dist/assets/main-layout-By96MLvX.js @@ -1,6 +1,6 @@ -import{x as $4,y as W4,r as O,z as Y4,C as G4,j as L,c as Be,_ as K4,R as Ma,D as X4,E as Ra,F as R1,G as Q4,H as Z4,I as rn,J as J4,K as Lr,M as e3,N as au,s as ue,u as Ke,O as t3,P as Ji,m as vt,Q as ea,b as Tt,d as je,U as n3,V as D1,f as ut,h as pt,W as r3,X as Ns,v as At,Y as i3,Z as a3,$ as s3,a0 as o3,a1 as Ms,q as _1,a2 as u3,a3 as l3,T as Ve,p as Dn,a4 as c3,a5 as sl,e as ol,a6 as d3,a7 as h3,a8 as H0,a9 as f3,B as m3,aa as z0,ab as U0,ac as p3,ad as vn,ae as g3,af as L1,ag as P1,ah as b3,ai as y3,aj as T3,ak as V0,o as _n,al as E3,am as j0,an as x3,ao as q0,ap as Ja,aq as ul,ar as O1,n as ls,i as fa,S as Je,l as cs,as as B1,w as F1}from"./index-CjW85zni.js";function v3(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,a=$4("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(W4);return O.forwardRef(function(u,l){const c=Y4(n),{className:d,component:m="div",...p}=G4(u);return L.jsx(a,{as:m,ref:l,className:Be(d,i?i(r):r),theme:t&&c[t]||c,...p})})}function S3(e,t){return O.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function A3(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function C3(e){return parseFloat(e)}function $0(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function H1(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Tn(e){return e&&e.ownerDocument||document}function Wn(e){return Tn(e).defaultView||window}function W0(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Y0(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:a}=O.useRef(t!==void 0),[s,o]=O.useState(n),u=a?t:s,l=O.useCallback(c=>{a||o(c)},[]);return[u,l]}function w3(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function k3(e,t){if(!e)return t;function n(s,o){const u={};return Object.keys(o).forEach(l=>{w3(l,o[l])&&typeof s[l]=="function"&&(u[l]=(...c)=>{s[l](...c),o[l](...c)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const o=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...o}):e,l=Be(s?.className,o?.className,u?.className),c=n(u,o);return{...o,...u,...c,...!!l&&{className:l},...o?.style&&u?.style&&{style:{...o.style,...u.style}},...o?.sx&&u?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,i=n(e,r),a=Be(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const G0={disabled:!1};var I3=function(t){return t.scrollTop},Li="unmounted",wr="exited",kr="entering",Wr="entered",su="exiting",Ln=(function(e){K4(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?o?(u=wr,a.appearStatus=kr):u=Wr:r.unmountOnExit||r.mountOnEnter?u=Li:u=wr,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===Li?{status:wr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==kr&&s!==Wr&&(a=kr):(s===kr||s===Wr)&&(a=su)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===kr){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ma.findDOMNode(this);s&&I3(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===wr&&this.setState({status:Li})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,u=this.props.nodeRef?[o]:[Ma.findDOMNode(this),o],l=u[0],c=u[1],d=this.getTimeouts(),m=o?d.appear:d.enter;if(!i&&!s||G0.disabled){this.safeSetState({status:Wr},function(){a.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:kr},function(){a.props.onEntering(l,c),a.onTransitionEnd(m,function(){a.safeSetState({status:Wr},function(){a.props.onEntered(l,c)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:Ma.findDOMNode(this);if(!a||G0.disabled){this.safeSetState({status:wr},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:su},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:wr},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:Ma.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Li)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=X4(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ra.createElement(R1.Provider,{value:null},typeof s=="function"?s(i,o):Ra.cloneElement(Ra.Children.only(s),o))},t})(Ra.Component);Ln.contextType=R1;Ln.propTypes={};function Vr(){}Ln.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vr,onEntering:Vr,onEntered:Vr,onExit:Vr,onExiting:Vr,onExited:Vr};Ln.UNMOUNTED=Li;Ln.EXITED=wr;Ln.ENTERING=kr;Ln.ENTERED=Wr;Ln.EXITING=su;const z1=e=>e.scrollTop;function ds(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function N3(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,s=i?{}:Q4(n,r),{props:o,internalRef:u}=Z4({...a,externalSlotProps:s}),l=rn(u,s?.ref,e.additionalProps?.ref);return J4(t,{...o,ref:l},r)}function ma(e){return parseInt(O.version,10)>=19?e?.props?.ref||null:e?.ref||null}function M3(e){return typeof e=="function"?e():e}const R3=O.forwardRef(function(t,n){const{children:r,container:i,disablePortal:a=!1}=t,[s,o]=O.useState(null),u=rn(O.isValidElement(r)?ma(r):null,n);if(Lr(()=>{a||o(M3(i)||document.body)},[i,a]),Lr(()=>{if(s&&!a)return W0(n,s),()=>{W0(n,null)}},[n,s,a]),a){if(O.isValidElement(r)){const l={ref:u};return O.cloneElement(r,l)}return r}return s&&e3.createPortal(r,s)});function Da(e){return parseInt(e,10)||0}const D3={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function _3(e){for(const t in e)return!1;return!0}function K0(e){return _3(e)||e.outerHeightStyle===0&&!e.overflowing}const L3=O.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:o,...u}=t,{current:l}=O.useRef(o!=null),c=O.useRef(null),d=rn(n,c),m=O.useRef(null),p=O.useRef(null),b=O.useCallback(()=>{const v=c.current,_=p.current;if(!v||!_)return;const k=Wn(v).getComputedStyle(v);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};_.style.width=k.width,_.value=v.value||t.placeholder||"x",_.value.slice(-1)===` -`&&(_.value+=" ");const V=k.boxSizing,U=Da(k.paddingBottom)+Da(k.paddingTop),q=Da(k.borderBottomWidth)+Da(k.borderTopWidth),B=_.scrollHeight;_.value="x";const K=_.scrollHeight;let Y=B;a&&(Y=Math.max(Number(a)*K,Y)),i&&(Y=Math.min(Number(i)*K,Y)),Y=Math.max(Y,K);const X=Y+(V==="border-box"?U+q:0),j=Math.abs(Y-B)<=1;return{outerHeightStyle:X,overflowing:j}},[i,a,t.placeholder]),E=au(()=>{const v=c.current,_=b();if(!v||!_||K0(_))return!1;const P=_.outerHeightStyle;return m.current!=null&&m.current!==P}),C=O.useCallback(()=>{const v=c.current,_=b();if(!v||!_||K0(_))return;const P=_.outerHeightStyle;m.current!==P&&(m.current=P,v.style.height=`${P}px`),v.style.overflow=_.overflowing?"hidden":""},[b]),T=O.useRef(-1);Lr(()=>{const v=H1(C),_=c?.current;if(!_)return;const P=Wn(_);P.addEventListener("resize",v);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(()=>{E()&&(k.unobserve(_),cancelAnimationFrame(T.current),C(),T.current=requestAnimationFrame(()=>{k.observe(_)}))}),k.observe(_)),()=>{v.clear(),cancelAnimationFrame(T.current),P.removeEventListener("resize",v),k&&k.disconnect()}},[b,C,E]),Lr(()=>{C()});const S=v=>{l||C();const _=v.target,P=_.value.length,k=_.value.endsWith(` -`),V=_.selectionStart===P;k&&V&&_.setSelectionRange(P,P),r&&r(v)};return L.jsxs(O.Fragment,{children:[L.jsx("textarea",{value:o,onChange:S,ref:d,rows:a,style:s,...u}),L.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:{...D3.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function ll({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const U1=O.createContext(void 0);function cl(){return O.useContext(U1)}function X0(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function V1(e,t=!1){return e&&(X0(e.value)&&e.value!==""||t&&X0(e.defaultValue)&&e.defaultValue!=="")}function DR(e){return e.startAdornment}var Q0;const Rs=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Tt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ds=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},P3=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:o,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:d,size:m,startAdornment:p,type:b}=e,E={root:["root",`color${Tt(n)}`,r&&"disabled",i&&"error",u&&"fullWidth",s&&"focused",o&&"formControl",m&&m!=="medium"&&`size${Tt(m)}`,c&&"multiline",p&&"adornedStart",a&&"adornedEnd",l&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",c&&"inputMultiline",m==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return je(E,n3,t)},_s=ue("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Rs})(vt(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ea.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Ls=ue("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ds})(vt(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ea.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${ea.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Z0=t3({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),dl=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:o,color:u,components:l={},componentsProps:c={},defaultValue:d,disabled:m,disableInjectingGlobalStyles:p,endAdornment:b,error:E,fullWidth:C=!1,id:T,inputComponent:S="input",inputProps:v={},inputRef:_,margin:P,maxRows:k,minRows:V,multiline:U=!1,name:q,onBlur:B,onChange:K,onClick:Y,onFocus:X,onKeyDown:j,onKeyUp:W,placeholder:ne,readOnly:le,renderSuffix:fe,rows:oe,size:I,slotProps:De={},slots:Ae={},startAdornment:D,type:_e="text",value:Ue,...He}=r,qe=v.value!=null?v.value:Ue,{current:$e}=O.useRef(qe!=null),We=O.useRef(),xe=O.useCallback(Le=>{},[]),Pe=rn(We,_,v.ref,xe),[ze,dt]=O.useState(!1),Oe=cl(),Xe=ll({props:r,muiFormControl:Oe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Xe.focused=Oe?Oe.focused:ze,O.useEffect(()=>{!Oe&&m&&ze&&(dt(!1),B&&B())},[Oe,m,ze,B]);const Pt=Oe&&Oe.onFilled,Ot=Oe&&Oe.onEmpty,wt=O.useCallback(Le=>{V1(Le)?Pt&&Pt():Ot&&Ot()},[Pt,Ot]);Lr(()=>{$e&&wt({value:qe})},[qe,wt,$e]);const Vt=Le=>{X&&X(Le),v.onFocus&&v.onFocus(Le),Oe&&Oe.onFocus?Oe.onFocus(Le):dt(!0)},Qt=Le=>{B&&B(Le),v.onBlur&&v.onBlur(Le),Oe&&Oe.onBlur?Oe.onBlur(Le):dt(!1)},kt=(Le,...jt)=>{if(!$e){const qt=Le.target||We.current;if(qt==null)throw new Error(D1(1));wt({value:qt.value})}v.onChange&&v.onChange(Le,...jt),K&&K(Le,...jt)};O.useEffect(()=>{wt(We.current)},[]);const xn=Le=>{We.current&&Le.currentTarget===Le.target&&We.current.focus(),Y&&Y(Le)};let er=S,Nt=v;U&&er==="input"&&(oe?Nt={type:void 0,minRows:oe,maxRows:oe,...Nt}:Nt={type:void 0,maxRows:k,minRows:V,...Nt},er=L3);const tr=Le=>{wt(Le.animationName==="mui-auto-fill-cancel"?We.current:{value:"x"})};O.useEffect(()=>{Oe&&Oe.setAdornedStart(!!D)},[Oe,D]);const G={...r,color:Xe.color||"primary",disabled:Xe.disabled,endAdornment:b,error:Xe.error,focused:Xe.focused,formControl:Oe,fullWidth:C,hiddenLabel:Xe.hiddenLabel,multiline:U,size:Xe.size,startAdornment:D,type:_e},ae=P3(G),ye=Ae.root||l.Root||_s,ve=De.root||c.root||{},Me=Ae.input||l.Input||Ls;return Nt={...Nt,...De.input??c.input},L.jsxs(O.Fragment,{children:[!p&&typeof Z0=="function"&&(Q0||(Q0=L.jsx(Z0,{}))),L.jsxs(ye,{...ve,ref:n,onClick:xn,...He,...!Ji(ye)&&{ownerState:{...G,...ve.ownerState}},className:Be(ae.root,ve.className,o,le&&"MuiInputBase-readOnly"),children:[D,L.jsx(U1.Provider,{value:null,children:L.jsx(Me,{"aria-invalid":Xe.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:d,disabled:Xe.disabled,id:T,onAnimationStart:tr,name:q,placeholder:ne,readOnly:le,required:Xe.required,rows:oe,value:qe,onKeyDown:j,onKeyUp:W,type:_e,...Nt,...!Ji(Me)&&{as:er,ownerState:{...G,...Nt.ownerState}},ref:Pe,className:Be(ae.input,Nt.className,le&&"MuiInputBase-readOnly"),onBlur:Qt,onChange:kt,onFocus:Vt})}),b,fe?fe({...Xe,startAdornment:D}):null]})]})});function O3(e){return pt("MuiInput",e)}const Si={...ea,...ut("MuiInput",["root","underline","input"])};function B3(e){return pt("MuiFilledInput",e)}const Er={...ea,...ut("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},F3=r3(L.jsx("path",{d:"M7 10l5 5 5-5z"})),H3={entering:{opacity:1},entered:{opacity:1}},ou=O.forwardRef(function(t,n){const r=Ns(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:o,easing:u,in:l,onEnter:c,onEntered:d,onEntering:m,onExit:p,onExited:b,onExiting:E,style:C,timeout:T=i,TransitionComponent:S=Ln,...v}=t,_=O.useRef(null),P=rn(_,ma(o),n),k=j=>W=>{if(j){const ne=_.current;W===void 0?j(ne):j(ne,W)}},V=k(m),U=k((j,W)=>{z1(j);const ne=ds({style:C,timeout:T,easing:u},{mode:"enter"});j.style.webkitTransition=r.transitions.create("opacity",ne),j.style.transition=r.transitions.create("opacity",ne),c&&c(j,W)}),q=k(d),B=k(E),K=k(j=>{const W=ds({style:C,timeout:T,easing:u},{mode:"exit"});j.style.webkitTransition=r.transitions.create("opacity",W),j.style.transition=r.transitions.create("opacity",W),p&&p(j)}),Y=k(b),X=j=>{a&&a(_.current,j)};return L.jsx(S,{appear:s,in:l,nodeRef:_,onEnter:U,onEntered:q,onEntering:V,onExit:K,onExited:Y,onExiting:B,addEndListener:X,timeout:T,...v,children:(j,{ownerState:W,...ne})=>O.cloneElement(o,{style:{opacity:0,visibility:j==="exited"&&!l?"hidden":void 0,...H3[j],...C,...o.props.style},ref:P,...ne})})});function z3(e){return pt("MuiBackdrop",e)}ut("MuiBackdrop",["root","invisible"]);const U3=e=>{const{classes:t,invisible:n}=e;return je({root:["root",n&&"invisible"]},z3,t)},V3=ue("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),j1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:s="div",invisible:o=!1,open:u,components:l={},componentsProps:c={},slotProps:d={},slots:m={},TransitionComponent:p,transitionDuration:b,...E}=r,C={...r,component:s,invisible:o},T=U3(C),S={transition:p,root:l.Root,...m},v={...c,...d},_={component:s,slots:S,slotProps:v},[P,k]=At("root",{elementType:V3,externalForwardedProps:_,className:Be(T.root,a),ownerState:C}),[V,U]=At("transition",{elementType:ou,externalForwardedProps:_,ownerState:C});return L.jsx(V,{in:u,timeout:b,...E,...U,children:L.jsx(P,{"aria-hidden":!0,...k,classes:T,ref:n,children:i})})}),j3=ut("MuiBox",["root"]),q3=s3(),ci=v3({themeId:a3,defaultTheme:q3,defaultClassName:j3.root,generateClassName:i3.generate});function q1(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function $3(e){const t=Tn(e);return t.body===e?Wn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Fi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function J0(e){return parseInt(Wn(e).getComputedStyle(e).paddingRight,10)||0}function W3(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function ec(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,s=>{const o=!a.includes(s),u=!W3(s);o&&u&&Fi(s,i)})}function no(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function Y3(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if($3(r)){const s=q1(Wn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${J0(r)+s}px`;const o=Tn(r).querySelectorAll(".mui-fixed");[].forEach.call(o,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${J0(u)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Tn(r).body;else{const s=r.parentElement,o=Wn(r);a=s?.nodeName==="HTML"&&o.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:o})=>{a?s.style.setProperty(o,a):s.style.removeProperty(o)})}}function G3(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class K3{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Fi(t.modalRef,!1);const i=G3(n);ec(n,t.mount,t.modalRef,i,!0);const a=no(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=no(this.containers,a=>a.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=Y3(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=no(this.containers,s=>s.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Fi(t.modalRef,n),ec(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&Fi(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const X3=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Q3(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Z3(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function J3(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Z3(e))}function e6(e){const t=[],n=[];return Array.from(e.querySelectorAll(X3)).forEach((r,i)=>{const a=Q3(r);a===-1||!J3(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function t6(){return!0}function n6(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=e6,isEnabled:s=t6,open:o}=e,u=O.useRef(!1),l=O.useRef(null),c=O.useRef(null),d=O.useRef(null),m=O.useRef(null),p=O.useRef(!1),b=O.useRef(null),E=rn(ma(t),b),C=O.useRef(null);O.useEffect(()=>{!o||!b.current||(p.current=!n)},[n,o]),O.useEffect(()=>{if(!o||!b.current)return;const v=Tn(b.current);return b.current.contains(v.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),p.current&&b.current.focus()),()=>{i||(d.current&&d.current.focus&&(u.current=!0,d.current.focus()),d.current=null)}},[o]),O.useEffect(()=>{if(!o||!b.current)return;const v=Tn(b.current),_=V=>{C.current=V,!(r||!s()||V.key!=="Tab")&&v.activeElement===b.current&&V.shiftKey&&(u.current=!0,c.current&&c.current.focus())},P=()=>{const V=b.current;if(V===null)return;if(!v.hasFocus()||!s()||u.current){u.current=!1;return}if(V.contains(v.activeElement)||r&&v.activeElement!==l.current&&v.activeElement!==c.current)return;if(v.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!p.current)return;let U=[];if((v.activeElement===l.current||v.activeElement===c.current)&&(U=a(b.current)),U.length>0){const q=!!(C.current?.shiftKey&&C.current?.key==="Tab"),B=U[0],K=U[U.length-1];typeof B!="string"&&typeof K!="string"&&(q?K.focus():B.focus())}else V.focus()};v.addEventListener("focusin",P),v.addEventListener("keydown",_,!0);const k=setInterval(()=>{v.activeElement&&v.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(k),v.removeEventListener("focusin",P),v.removeEventListener("keydown",_,!0)}},[n,r,i,s,o,a]);const T=v=>{d.current===null&&(d.current=v.relatedTarget),p.current=!0,m.current=v.target;const _=t.props.onFocus;_&&_(v)},S=v=>{d.current===null&&(d.current=v.relatedTarget),p.current=!0};return L.jsxs(O.Fragment,{children:[L.jsx("div",{tabIndex:o?0:-1,onFocus:S,ref:l,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:E,onFocus:T}),L.jsx("div",{tabIndex:o?0:-1,onFocus:S,ref:c,"data-testid":"sentinelEnd"})]})}function r6(e){return typeof e=="function"?e():e}function i6(e){return e?e.props.hasOwnProperty("in"):!1}const tc=()=>{},_a=new K3;function a6(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:o,onClose:u,open:l,rootRef:c}=e,d=O.useRef({}),m=O.useRef(null),p=O.useRef(null),b=rn(p,c),[E,C]=O.useState(!l),T=i6(o);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const v=()=>Tn(m.current),_=()=>(d.current.modalRef=p.current,d.current.mount=m.current,d.current),P=()=>{_a.mount(_(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},k=au(()=>{const W=r6(t)||v().body;_a.add(_(),W),p.current&&P()}),V=()=>_a.isTopModal(_()),U=au(W=>{m.current=W,W&&(l&&V()?P():p.current&&Fi(p.current,S))}),q=O.useCallback(()=>{_a.remove(_(),S)},[S]);O.useEffect(()=>()=>{q()},[q]),O.useEffect(()=>{l?k():(!T||!i)&&q()},[l,q,T,i,k]);const B=W=>ne=>{W.onKeyDown?.(ne),!(ne.key!=="Escape"||ne.which===229||!V())&&(n||(ne.stopPropagation(),u&&u(ne,"escapeKeyDown")))},K=W=>ne=>{W.onClick?.(ne),ne.target===ne.currentTarget&&u&&u(ne,"backdropClick")};return{getRootProps:(W={})=>{const ne=o3(e);delete ne.onTransitionEnter,delete ne.onTransitionExited;const le={...ne,...W};return{role:"presentation",...le,onKeyDown:B(le),ref:b}},getBackdropProps:(W={})=>{const ne=W;return{"aria-hidden":!0,...ne,onClick:K(ne),open:l}},getTransitionProps:()=>{const W=()=>{C(!1),a&&a()},ne=()=>{C(!0),s&&s(),i&&q()};return{onEnter:$0(W,o?.props.onEnter??tc),onExited:$0(ne,o?.props.onExited??tc)}},rootRef:b,portalRef:U,isTopModal:V,exited:E,hasTransition:T}}function s6(e){return pt("MuiModal",e)}ut("MuiModal",["root","hidden","backdrop"]);const o6=e=>{const{open:t,exited:n,classes:r}=e;return je({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},s6,r)},u6=ue("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(vt(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),l6=ue(j1,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),$1=O.forwardRef(function(t,n){const r=Ke({name:"MuiModal",props:t}),{BackdropComponent:i=l6,BackdropProps:a,classes:s,className:o,closeAfterTransition:u=!1,children:l,container:c,component:d,components:m={},componentsProps:p={},disableAutoFocus:b=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:C=!1,disablePortal:T=!1,disableRestoreFocus:S=!1,disableScrollLock:v=!1,hideBackdrop:_=!1,keepMounted:P=!1,onClose:k,onTransitionEnter:V,onTransitionExited:U,open:q,slotProps:B={},slots:K={},theme:Y,...X}=r,j={...r,closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:E,disableEscapeKeyDown:C,disablePortal:T,disableRestoreFocus:S,disableScrollLock:v,hideBackdrop:_,keepMounted:P},{getRootProps:W,getBackdropProps:ne,getTransitionProps:le,portalRef:fe,isTopModal:oe,exited:I,hasTransition:De}=a6({...j,rootRef:n}),Ae={...j,exited:I},D=o6(Ae),_e={};if(l.props.tabIndex===void 0&&(_e.tabIndex="-1"),De){const{onEnter:xe,onExited:Pe}=le();_e.onEnter=xe,_e.onExited=Pe}const Ue={slots:{root:m.Root,backdrop:m.Backdrop,...K},slotProps:{...p,...B}},[He,qe]=At("root",{ref:n,elementType:u6,externalForwardedProps:{...Ue,...X,component:d},getSlotProps:W,ownerState:Ae,className:Be(o,D?.root,!Ae.open&&Ae.exited&&D?.hidden)}),[$e,We]=At("backdrop",{ref:a?.ref,elementType:i,externalForwardedProps:Ue,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:xe=>ne({...xe,onClick:Pe=>{xe?.onClick&&xe.onClick(Pe)}}),className:Be(a?.className,D?.backdrop),ownerState:Ae});return!P&&!q&&(!De||I)?null:L.jsx(R3,{ref:fe,container:c,disablePortal:T,children:L.jsxs(He,{...qe,children:[!_&&i?L.jsx($e,{...We}):null,L.jsx(n6,{disableEnforceFocus:E,disableAutoFocus:b,disableRestoreFocus:S,isEnabled:oe,open:q,children:O.cloneElement(l,_e)})]})})});function c6(e){return pt("MuiDialog",e)}const ro=ut("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),W1=O.createContext({}),d6=ue(j1,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),h6=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${Tt(n)}`],paper:["paper",`paperScroll${Tt(n)}`,`paperWidth${Tt(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return je(s,c6,t)},f6=ue($1,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),m6=ue("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Tt(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),p6=ue(Ms,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Tt(n.scroll)}`],t[`paperWidth${Tt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(vt(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${ro.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${ro.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ro.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),g6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialog"}),i=Ns(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":o,"aria-modal":u=!0,BackdropComponent:l,BackdropProps:c,children:d,className:m,disableEscapeKeyDown:p=!1,fullScreen:b=!1,fullWidth:E=!1,maxWidth:C="sm",onClick:T,onClose:S,open:v,PaperComponent:_=Ms,PaperProps:P={},scroll:k="paper",slots:V={},slotProps:U={},TransitionComponent:q=ou,transitionDuration:B=a,TransitionProps:K,...Y}=r,X={...r,disableEscapeKeyDown:p,fullScreen:b,fullWidth:E,maxWidth:C,scroll:k},j=h6(X),W=O.useRef(),ne=dt=>{W.current=dt.target===dt.currentTarget},le=dt=>{T&&T(dt),W.current&&(W.current=null,S&&S(dt,"backdropClick"))},fe=_1(o),oe=O.useMemo(()=>({titleId:fe}),[fe]),I={transition:q,...V},De={transition:K,paper:P,backdrop:c,...U},Ae={slots:I,slotProps:De},[D,_e]=At("root",{elementType:f6,shouldForwardComponentProp:!0,externalForwardedProps:Ae,ownerState:X,className:Be(j.root,m),ref:n}),[Ue,He]=At("backdrop",{elementType:d6,shouldForwardComponentProp:!0,externalForwardedProps:Ae,ownerState:X}),[qe,$e]=At("paper",{elementType:p6,shouldForwardComponentProp:!0,externalForwardedProps:Ae,ownerState:X,className:Be(j.paper,P.className)}),[We,xe]=At("container",{elementType:m6,externalForwardedProps:Ae,ownerState:X,className:j.container}),[Pe,ze]=At("transition",{elementType:ou,externalForwardedProps:Ae,ownerState:X,additionalProps:{appear:!0,in:v,timeout:B,role:"presentation"}});return L.jsx(D,{closeAfterTransition:!0,slots:{backdrop:Ue},slotProps:{backdrop:{transitionDuration:B,as:l,...He}},disableEscapeKeyDown:p,onClose:S,open:v,onClick:le,..._e,...Y,children:L.jsx(Pe,{...ze,children:L.jsx(We,{onMouseDown:ne,...xe,children:L.jsx(qe,{as:_,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":fe,"aria-modal":u,...$e,children:L.jsx(W1.Provider,{value:oe,children:d})})})})})});function b6(e){return pt("MuiDialogActions",e)}ut("MuiDialogActions",["root","spacing"]);const y6=e=>{const{classes:t,disableSpacing:n}=e;return je({root:["root",!n&&"spacing"]},b6,t)},T6=ue("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),E6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:a=!1,...s}=r,o={...r,disableSpacing:a},u=y6(o);return L.jsx(T6,{className:Be(u.root,i),ownerState:o,ref:n,...s})}),x6=e=>{const{classes:t,dividers:n}=e;return je({root:["root",n&&"dividers"]},u3,t)},v6=ue("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(vt(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${l3.root} + &`]:{paddingTop:0}}}]}))),S6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContent"}),{className:i,dividers:a=!1,...s}=r,o={...r,dividers:a},u=x6(o);return L.jsx(v6,{className:Be(u.root,i),ownerState:o,ref:n,...s})});function A6(e){return pt("MuiDialogContentText",e)}ut("MuiDialogContentText",["root"]);const C6=e=>{const{classes:t}=e,r=je({root:["root"]},A6,t);return{...t,...r}},w6=ue(Ve,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),k6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContentText"}),{children:i,className:a,...s}=r,o=C6(s);return L.jsx(w6,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:Be(o.root,a),...r,classes:o})}),I6=e=>{const{classes:t}=e;return je({root:["root"]},c3,t)},N6=ue(Ve,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),M6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogTitle"}),{className:i,id:a,...s}=r,o=r,u=I6(o),{titleId:l=a}=O.useContext(W1);return L.jsx(N6,{component:"h2",className:Be(u.root,i),ownerState:o,ref:n,variant:"h6",id:a??l,...s})}),R6=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:s,multiline:o}=e,u={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",a==="small"&&`size${Tt(a)}`,s&&"hiddenLabel",o&&"multiline"],input:["input"]},l=je(u,B3,t);return{...t,...l}},D6=ue(_s,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Rs(e,t),!n.disableUnderline&&t.underline]}})(vt(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Er.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Er.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Er.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Er.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Er.disabled}, .${Er.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Er.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ol()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:o})=>s.multiline&&o==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),_6=ue(Ls,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ds})(vt(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Y1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:o=!1,hiddenLabel:u,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:m={},type:p="text",...b}=r,E={...r,disableUnderline:i,fullWidth:o,inputComponent:l,multiline:c,type:p},C=R6(r),T={root:{ownerState:E},input:{ownerState:E}},S=d??s?sl(T,d??s):T,v=m.root??a.Root??D6,_=m.input??a.Input??_6;return L.jsx(dl,{slots:{root:v,input:_},slotProps:S,fullWidth:o,inputComponent:l,multiline:c,ref:n,type:p,...b,classes:C})});Y1.muiName="Input";function uu(e){return`scale(${e}, ${e**2})`}const L6={entering:{opacity:1,transform:uu(1)},entered:{opacity:1,transform:"none"}},io=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),lu=O.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:s,in:o,onEnter:u,onEntered:l,onEntering:c,onExit:d,onExited:m,onExiting:p,style:b,timeout:E="auto",TransitionComponent:C=Ln,...T}=t,S=d3(),v=O.useRef(),_=Ns(),P=O.useRef(null),k=rn(P,ma(a),n),V=W=>ne=>{if(W){const le=P.current;ne===void 0?W(le):W(le,ne)}},U=V(c),q=V((W,ne)=>{z1(W);const{duration:le,delay:fe,easing:oe}=ds({style:b,timeout:E,easing:s},{mode:"enter"});let I;E==="auto"?(I=_.transitions.getAutoHeightDuration(W.clientHeight),v.current=I):I=le,W.style.transition=[_.transitions.create("opacity",{duration:I,delay:fe}),_.transitions.create("transform",{duration:io?I:I*.666,delay:fe,easing:oe})].join(","),u&&u(W,ne)}),B=V(l),K=V(p),Y=V(W=>{const{duration:ne,delay:le,easing:fe}=ds({style:b,timeout:E,easing:s},{mode:"exit"});let oe;E==="auto"?(oe=_.transitions.getAutoHeightDuration(W.clientHeight),v.current=oe):oe=ne,W.style.transition=[_.transitions.create("opacity",{duration:oe,delay:le}),_.transitions.create("transform",{duration:io?oe:oe*.666,delay:io?le:le||oe*.333,easing:fe})].join(","),W.style.opacity=0,W.style.transform=uu(.75),d&&d(W)}),X=V(m),j=W=>{E==="auto"&&S.start(v.current||0,W),r&&r(P.current,W)};return L.jsx(C,{appear:i,in:o,nodeRef:P,onEnter:q,onEntered:B,onEntering:U,onExit:Y,onExited:X,onExiting:K,addEndListener:j,timeout:E==="auto"?null:E,...T,children:(W,{ownerState:ne,...le})=>O.cloneElement(a,{style:{opacity:0,transform:uu(.75),visibility:W==="exited"&&!o?"hidden":void 0,...L6[W],...b,...a.props.style},ref:k,...le})})});lu&&(lu.muiSupportAuto=!0);const P6=e=>{const{classes:t,disableUnderline:n}=e,i=je({root:["root",!n&&"underline"],input:["input"]},O3,t);return{...t,...i}},O6=ue(_s,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Rs(e,t),!n.disableUnderline&&t.underline]}})(vt(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Si.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Si.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Si.disabled}, .${Si.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Si.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ol()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),B6=ue(Ls,{name:"MuiInput",slot:"Input",overridesResolver:Ds})({}),G1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:o=!1,inputComponent:u="input",multiline:l=!1,slotProps:c,slots:d={},type:m="text",...p}=r,b=P6(r),C={root:{ownerState:{disableUnderline:i}}},T=c??s?sl(c??s,C):C,S=d.root??a.Root??O6,v=d.input??a.Input??B6;return L.jsx(dl,{slots:{root:S,input:v},slotProps:T,fullWidth:o,inputComponent:u,multiline:l,ref:n,type:m,...p,classes:b})});G1.muiName="Input";const jn=O.createContext({});function F6(e){return pt("MuiList",e)}ut("MuiList",["root","padding","dense","subheader"]);const H6=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return je({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},F6,t)},z6=ue("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),K1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiList"}),{children:i,className:a,component:s="ul",dense:o=!1,disablePadding:u=!1,subheader:l,...c}=r,d=O.useMemo(()=>({dense:o}),[o]),m={...r,component:s,dense:o,disablePadding:u},p=H6(m);return L.jsx(jn.Provider,{value:d,children:L.jsxs(z6,{as:s,className:Be(p.root,a),ref:n,ownerState:m,...c,children:[l,i]})})});function U6(e){return pt("MuiListItem",e)}ut("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const V6=ut("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function j6(e){return pt("MuiListItemSecondaryAction",e)}ut("MuiListItemSecondaryAction",["root","disableGutters"]);const q6=e=>{const{disableGutters:t,classes:n}=e;return je({root:["root",t&&"disableGutters"]},j6,n)},$6=ue("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),X1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...a}=r,s=O.useContext(jn),o={...r,disableGutters:s.disableGutters},u=q6(o);return L.jsx($6,{className:Be(u.root,i),ownerState:o,ref:n,...a})});X1.muiName="ListItemSecondaryAction";const W6=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},Y6=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:a,divider:s,hasSecondaryAction:o}=e;return je({root:["root",r&&"dense",!i&&"gutters",!a&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",o&&"secondaryAction"],container:["container"]},U6,n)},G6=ue("div",{name:"MuiListItem",slot:"Root",overridesResolver:W6})(vt(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${V6.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),K6=ue("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),X6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItem"}),{alignItems:i="center",children:a,className:s,component:o,components:u={},componentsProps:l={},ContainerComponent:c="li",ContainerProps:{className:d,...m}={},dense:p=!1,disableGutters:b=!1,disablePadding:E=!1,divider:C=!1,secondaryAction:T,slotProps:S={},slots:v={},..._}=r,P=O.useContext(jn),k=O.useMemo(()=>({dense:p||P.dense||!1,alignItems:i,disableGutters:b}),[i,P.dense,p,b]),V=O.useRef(null),U=O.Children.toArray(a),q=U.length&&S3(U[U.length-1],["ListItemSecondaryAction"]),B={...r,alignItems:i,dense:k.dense,disableGutters:b,disablePadding:E,divider:C,hasSecondaryAction:q},K=Y6(B),Y=rn(V,n),X=v.root||u.Root||G6,j=S.root||l.root||{},W={className:Be(K.root,j.className,s),..._};let ne=o||"li";return q?(ne=!W.component&&!o?"div":ne,c==="li"&&(ne==="li"?ne="div":W.component==="li"&&(W.component="div")),L.jsx(jn.Provider,{value:k,children:L.jsxs(K6,{as:c,className:Be(K.container,d),ref:Y,ownerState:B,...m,children:[L.jsx(X,{...j,...!Ji(X)&&{as:ne,ownerState:{...B,...j.ownerState}},...W,children:U}),U.pop()]})})):L.jsx(jn.Provider,{value:k,children:L.jsxs(X,{...j,as:ne,ref:Y,...!Ji(X)&&{ownerState:{...B,...j.ownerState}},...W,children:[U,T&&L.jsx(X1,{children:T})]})})}),Q6=e=>{const{alignItems:t,classes:n}=e;return je({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},h3,n)},Z6=ue("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(vt(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),J6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemIcon"}),{className:i,...a}=r,s=O.useContext(jn),o={...r,alignItems:s.alignItems},u=Q6(o);return L.jsx(Z6,{className:Be(u.root,i),ownerState:o,ref:n,...a})});function eg(e){return pt("MuiListItemText",e)}const Gr=ut("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),tg=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return je({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},eg,t)},ng=ue("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Gr.primary}`]:t.primary},{[`& .${Gr.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${H0.root}:where(& .${Gr.primary})`]:{display:"block"},[`.${H0.root}:where(& .${Gr.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),rg=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:s=!1,inset:o=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:d,slots:m={},slotProps:p={},...b}=r,{dense:E}=O.useContext(jn);let C=u??i,T=c;const S={...r,disableTypography:s,inset:o,primary:!!C,secondary:!!T,dense:E},v=tg(S),_={slots:m,slotProps:{primary:l,secondary:d,...p}},[P,k]=At("root",{className:Be(v.root,a),elementType:ng,externalForwardedProps:{..._,...b},ownerState:S,ref:n}),[V,U]=At("primary",{className:v.primary,elementType:Ve,externalForwardedProps:_,ownerState:S}),[q,B]=At("secondary",{className:v.secondary,elementType:Ve,externalForwardedProps:_,ownerState:S});return C!=null&&C.type!==Ve&&!s&&(C=L.jsx(V,{variant:E?"body2":"body1",component:U?.variant?void 0:"span",...U,children:C})),T!=null&&T.type!==Ve&&!s&&(T=L.jsx(q,{variant:"body2",color:"textSecondary",...B,children:T})),L.jsxs(P,{...k,children:[C,T]})});function ao(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function nc(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Q1(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Ai(e,t,n,r,i,a){let s=!1,o=i(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(s)return!1;s=!0}const u=r?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!Q1(o,a)||u)o=i(e,o,n);else return o.focus(),!0}return!1}const ig=O.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:o,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu",...m}=t,p=O.useRef(null),b=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Lr(()=>{i&&p.current.focus()},[i]),O.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(v,{direction:_})=>{const P=!p.current.style.width;if(v.clientHeight{const _=p.current,P=v.key;if(v.ctrlKey||v.metaKey||v.altKey){c&&c(v);return}const V=Tn(_).activeElement;if(P==="ArrowDown")v.preventDefault(),Ai(_,V,l,u,ao);else if(P==="ArrowUp")v.preventDefault(),Ai(_,V,l,u,nc);else if(P==="Home")v.preventDefault(),Ai(_,null,l,u,ao);else if(P==="End")v.preventDefault(),Ai(_,null,l,u,nc);else if(P.length===1){const U=b.current,q=P.toLowerCase(),B=performance.now();U.keys.length>0&&(B-U.lastTime>500?(U.keys=[],U.repeating=!0,U.previousKeyMatched=!0):U.repeating&&q!==U.keys[0]&&(U.repeating=!1)),U.lastTime=B,U.keys.push(q);const K=V&&!U.repeating&&Q1(V,U);U.previousKeyMatched&&(K||Ai(_,V,!1,u,ao,U))?v.preventDefault():U.previousKeyMatched=!1}c&&c(v)},C=rn(p,n);let T=-1;O.Children.forEach(s,(v,_)=>{if(!O.isValidElement(v)){T===_&&(T+=1,T>=s.length&&(T=-1));return}v.props.disabled||(d==="selectedMenu"&&v.props.selected||T===-1)&&(T=_),T===_&&(v.props.disabled||v.props.muiSkipListHighlight||v.type.muiSkipListHighlight)&&(T+=1,T>=s.length&&(T=-1))});const S=O.Children.map(s,(v,_)=>{if(_===T){const P={};return a&&(P.autoFocus=!0),v.props.tabIndex===void 0&&d==="selectedMenu"&&(P.tabIndex=0),O.cloneElement(v,P)}return v});return L.jsx(K1,{role:"menu",ref:C,className:o,onKeyDown:E,tabIndex:i?0:-1,...m,children:S})});function ag(e){return pt("MuiPopover",e)}ut("MuiPopover",["root","paper"]);function rc(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function ic(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function ac(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function La(e){return typeof e=="function"?e():e}const sg=e=>{const{classes:t}=e;return je({root:["root"],paper:["paper"]},ag,t)},og=ue($1,{name:"MuiPopover",slot:"Root"})({}),Z1=ue(Ms,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),ug=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:o,anchorReference:u="anchorEl",children:l,className:c,container:d,elevation:m=8,marginThreshold:p=16,open:b,PaperProps:E={},slots:C={},slotProps:T={},transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:v,transitionDuration:_="auto",TransitionProps:P={},disableScrollLock:k=!1,...V}=r,U=O.useRef(),q={...r,anchorOrigin:s,anchorReference:u,elevation:m,marginThreshold:p,transformOrigin:S,TransitionComponent:v,transitionDuration:_,TransitionProps:P},B=sg(q),K=O.useCallback(()=>{if(u==="anchorPosition")return o;const xe=La(a),ze=(xe&&xe.nodeType===1?xe:Tn(U.current).body).getBoundingClientRect();return{top:ze.top+rc(ze,s.vertical),left:ze.left+ic(ze,s.horizontal)}},[a,s.horizontal,s.vertical,o,u]),Y=O.useCallback(xe=>({vertical:rc(xe,S.vertical),horizontal:ic(xe,S.horizontal)}),[S.horizontal,S.vertical]),X=O.useCallback(xe=>{const Pe={width:xe.offsetWidth,height:xe.offsetHeight},ze=Y(Pe);if(u==="none")return{top:null,left:null,transformOrigin:ac(ze)};const dt=K();let Oe=dt.top-ze.vertical,Xe=dt.left-ze.horizontal;const Pt=Oe+Pe.height,Ot=Xe+Pe.width,wt=Wn(La(a)),Vt=wt.innerHeight-p,Qt=wt.innerWidth-p;if(p!==null&&OeVt){const kt=Pt-Vt;Oe-=kt,ze.vertical+=kt}if(p!==null&&XeQt){const kt=Ot-Qt;Xe-=kt,ze.horizontal+=kt}return{top:`${Math.round(Oe)}px`,left:`${Math.round(Xe)}px`,transformOrigin:ac(ze)}},[a,u,K,Y,p]),[j,W]=O.useState(b),ne=O.useCallback(()=>{const xe=U.current;if(!xe)return;const Pe=X(xe);Pe.top!==null&&xe.style.setProperty("top",Pe.top),Pe.left!==null&&(xe.style.left=Pe.left),xe.style.transformOrigin=Pe.transformOrigin,W(!0)},[X]);O.useEffect(()=>(k&&window.addEventListener("scroll",ne),()=>window.removeEventListener("scroll",ne)),[a,k,ne]);const le=()=>{ne()},fe=()=>{W(!1)};O.useEffect(()=>{b&&ne()}),O.useImperativeHandle(i,()=>b?{updatePosition:()=>{ne()}}:null,[b,ne]),O.useEffect(()=>{if(!b)return;const xe=H1(()=>{ne()}),Pe=Wn(La(a));return Pe.addEventListener("resize",xe),()=>{xe.clear(),Pe.removeEventListener("resize",xe)}},[a,b,ne]);let oe=_;const I={slots:{transition:v,...C},slotProps:{transition:P,paper:E,...T}},[De,Ae]=At("transition",{elementType:lu,externalForwardedProps:I,ownerState:q,getSlotProps:xe=>({...xe,onEntering:(Pe,ze)=>{xe.onEntering?.(Pe,ze),le()},onExited:Pe=>{xe.onExited?.(Pe),fe()}}),additionalProps:{appear:!0,in:b}});_==="auto"&&!De.muiSupportAuto&&(oe=void 0);const D=d||(a?Tn(La(a)).body:void 0),[_e,{slots:Ue,slotProps:He,...qe}]=At("root",{ref:n,elementType:og,externalForwardedProps:{...I,...V},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:C.backdrop},slotProps:{backdrop:k3(typeof T.backdrop=="function"?T.backdrop(q):T.backdrop,{invisible:!0})},container:D,open:b},ownerState:q,className:Be(B.root,c)}),[$e,We]=At("paper",{ref:U,className:B.paper,elementType:Z1,externalForwardedProps:I,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:j?void 0:{opacity:0}},ownerState:q});return L.jsx(_e,{...qe,...!Ji(_e)&&{slots:Ue,slotProps:He,disableScrollLock:k},children:L.jsx(De,{...Ae,timeout:oe,children:L.jsx($e,{...We,children:l})})})});function lg(e){return pt("MuiMenu",e)}ut("MuiMenu",["root","paper","list"]);const cg={vertical:"top",horizontal:"right"},dg={vertical:"top",horizontal:"left"},hg=e=>{const{classes:t}=e;return je({root:["root"],paper:["paper"],list:["list"]},lg,t)},fg=ue(ug,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),mg=ue(Z1,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),pg=ue(ig,{name:"MuiMenu",slot:"List"})({outline:0}),gg=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:o=!1,MenuListProps:u={},onClose:l,open:c,PaperProps:d={},PopoverClasses:m,transitionDuration:p="auto",TransitionProps:{onEntering:b,...E}={},variant:C="selectedMenu",slots:T={},slotProps:S={},...v}=r,_=f3(),P={...r,autoFocus:i,disableAutoFocusItem:o,MenuListProps:u,onEntering:b,PaperProps:d,transitionDuration:p,TransitionProps:E,variant:C},k=hg(P),V=i&&!o&&c,U=O.useRef(null),q=(oe,I)=>{U.current&&U.current.adjustStyleForScrollbar(oe,{direction:_?"rtl":"ltr"}),b&&b(oe,I)},B=oe=>{oe.key==="Tab"&&(oe.preventDefault(),l&&l(oe,"tabKeyDown"))};let K=-1;O.Children.map(a,(oe,I)=>{O.isValidElement(oe)&&(oe.props.disabled||(C==="selectedMenu"&&oe.props.selected||K===-1)&&(K=I))});const Y={slots:T,slotProps:{list:u,transition:E,paper:d,...S}},X=N3({elementType:T.root,externalSlotProps:S.root,ownerState:P,className:[k.root,s]}),[j,W]=At("paper",{className:k.paper,elementType:mg,externalForwardedProps:Y,shouldForwardComponentProp:!0,ownerState:P}),[ne,le]=At("list",{className:Be(k.list,u.className),elementType:pg,shouldForwardComponentProp:!0,externalForwardedProps:Y,getSlotProps:oe=>({...oe,onKeyDown:I=>{B(I),oe.onKeyDown?.(I)}}),ownerState:P}),fe=typeof Y.slotProps.transition=="function"?Y.slotProps.transition(P):Y.slotProps.transition;return L.jsx(fg,{onClose:l,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?cg:dg,slots:{root:T.root,paper:j,backdrop:T.backdrop,...T.transition&&{transition:T.transition}},slotProps:{root:X,paper:W,backdrop:typeof S.backdrop=="function"?S.backdrop(P):S.backdrop,transition:{...fe,onEntering:(...oe)=>{q(...oe),fe?.onEntering?.(...oe)}}},open:c,ref:n,transitionDuration:p,ownerState:P,...v,classes:m,children:L.jsx(ne,{actions:U,autoFocus:i&&(K===-1||o),autoFocusItem:V,variant:C,...le,children:a})})});function bg(e){return pt("MuiMenuItem",e)}const Ci=ut("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),yg=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Tg=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,u=je({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},bg,s);return{...s,...u}},Eg=ue(m3,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:yg})(vt(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ci.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ci.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Ci.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Ci.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ci.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${U0.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${U0.inset}`]:{marginLeft:52},[`& .${Gr.root}`]:{marginTop:0,marginBottom:0},[`& .${Gr.inset}`]:{paddingLeft:36},[`& .${z0.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${z0.root} svg`]:{fontSize:"1.25rem"}}}]}))),xg=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:o=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:m,...p}=r,b=O.useContext(jn),E=O.useMemo(()=>({dense:s||b.dense||!1,disableGutters:u}),[b.dense,s,u]),C=O.useRef(null);Lr(()=>{i&&C.current&&C.current.focus()},[i]);const T={...r,dense:E.dense,divider:o,disableGutters:u},S=Tg(r),v=rn(C,n);let _;return r.disabled||(_=d!==void 0?d:-1),L.jsx(jn.Provider,{value:E,children:L.jsx(Eg,{ref:v,role:c,tabIndex:_,component:a,focusVisibleClassName:Be(S.focusVisible,l),className:Be(S.root,m),...p,ownerState:T,classes:S})})});function vg(e){return pt("MuiNativeSelect",e)}const hl=ut("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Sg=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Tt(n)}`,a&&"iconOpen",r&&"disabled"]};return je(o,vg,t)},J1=ue("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${hl.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Ag=ue(J1,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Dn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${hl.multiple}`]:t.multiple}]}})({}),ef=ue("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${hl.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),Cg=ue(ef,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Tt(n.variant)}`],n.open&&t.iconOpen]}})({}),wg=O.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:s,inputRef:o,variant:u="standard",...l}=t,c={...t,disabled:i,variant:u,error:a},d=Sg(c);return L.jsxs(O.Fragment,{children:[L.jsx(Ag,{ownerState:c,className:Be(d.select,r),disabled:i,ref:o||n,...l}),t.multiple?null:L.jsx(Cg,{as:s,ownerState:c,className:d.icon})]})});var sc;const kg=ue("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Dn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Ig=ue("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Dn})(vt(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Ng(e){const{children:t,classes:n,className:r,label:i,notched:a,...s}=e,o=i!=null&&i!=="",u={...e,notched:a,withLabel:o};return L.jsx(kg,{"aria-hidden":!0,className:r,ownerState:u,...s,children:L.jsx(Ig,{ownerState:u,children:o?L.jsx("span",{children:i}):sc||(sc=L.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const Mg=e=>{const{classes:t}=e,r=je({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},p3,t);return{...t,...r}},Rg=ue(_s,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Rs})(vt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${vn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${vn.focused} .${vn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(ol()).map(([n])=>({props:{color:n},style:{[`&.${vn.focused} .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${vn.error} .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${vn.disabled} .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),Dg=ue(Ng,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(vt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),_g=ue(Ls,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ds})(vt(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),tf=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:o,multiline:u=!1,notched:l,slots:c={},slotProps:d={},type:m="text",...p}=r,b=Mg(r),E=cl(),C=ll({props:r,muiFormControl:E,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T={...r,color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:E,fullWidth:a,hiddenLabel:C.hiddenLabel,multiline:u,size:C.size,type:m},S=c.root??i.Root??Rg,v=c.input??i.Input??_g,[_,P]=At("notchedOutline",{elementType:Dg,className:b.notchedOutline,shouldForwardComponentProp:!0,ownerState:T,externalForwardedProps:{slots:c,slotProps:d},additionalProps:{label:o!=null&&o!==""&&C.required?L.jsxs(O.Fragment,{children:[o," ","*"]}):o}});return L.jsx(dl,{slots:{root:S,input:v},slotProps:d,renderSuffix:k=>L.jsx(_,{...P,notched:typeof l<"u"?l:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:a,inputComponent:s,multiline:u,ref:n,type:m,...p,classes:{...b,notchedOutline:null}})});tf.muiName="Input";function nf(e){return pt("MuiSelect",e)}const wi=ut("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var oc;const Lg=ue(J1,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${wi.select}`]:t.select},{[`&.${wi.select}`]:t[n.variant]},{[`&.${wi.error}`]:t.error},{[`&.${wi.multiple}`]:t.multiple}]}})({[`&.${wi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Pg=ue(ef,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Tt(n.variant)}`],n.open&&t.iconOpen]}})({}),Og=ue("input",{shouldForwardProp:e=>g3(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function uc(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Bg(e){return e==null||typeof e=="string"&&!e.trim()}const Fg=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Tt(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return je(o,nf,t)},Hg=O.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:a,autoWidth:s,children:o,className:u,defaultOpen:l,defaultValue:c,disabled:d,displayEmpty:m,error:p=!1,IconComponent:b,inputRef:E,labelId:C,MenuProps:T={},multiple:S,name:v,onBlur:_,onChange:P,onClose:k,onFocus:V,onOpen:U,open:q,readOnly:B,renderValue:K,required:Y,SelectDisplayProps:X={},tabIndex:j,type:W,value:ne,variant:le="standard",...fe}=t,[oe,I]=Y0({controlled:ne,default:c,name:"Select"}),[De,Ae]=Y0({controlled:q,default:l,name:"Select"}),D=O.useRef(null),_e=O.useRef(null),[Ue,He]=O.useState(null),{current:qe}=O.useRef(q!=null),[$e,We]=O.useState(),xe=rn(n,E),Pe=O.useCallback(me=>{_e.current=me,me&&He(me)},[]),ze=Ue?.parentNode;O.useImperativeHandle(xe,()=>({focus:()=>{_e.current.focus()},node:D.current,value:oe}),[oe]),O.useEffect(()=>{l&&De&&Ue&&!qe&&(We(s?null:ze.clientWidth),_e.current.focus())},[Ue,s]),O.useEffect(()=>{a&&_e.current.focus()},[a]),O.useEffect(()=>{if(!C)return;const me=Tn(_e.current).getElementById(C);if(me){const ke=()=>{getSelection().isCollapsed&&_e.current.focus()};return me.addEventListener("click",ke),()=>{me.removeEventListener("click",ke)}}},[C]);const dt=(me,ke)=>{me?U&&U(ke):k&&k(ke),qe||(We(s?null:ze.clientWidth),Ae(me))},Oe=me=>{me.button===0&&(me.preventDefault(),_e.current.focus(),dt(!0,me))},Xe=me=>{dt(!1,me)},Pt=O.Children.toArray(o),Ot=me=>{const ke=Pt.find(tt=>tt.props.value===me.target.value);ke!==void 0&&(I(ke.props.value),P&&P(me,ke))},wt=me=>ke=>{let tt;if(ke.currentTarget.hasAttribute("tabindex")){if(S){tt=Array.isArray(oe)?oe.slice():[];const Mt=oe.indexOf(me.props.value);Mt===-1?tt.push(me.props.value):tt.splice(Mt,1)}else tt=me.props.value;if(me.props.onClick&&me.props.onClick(ke),oe!==tt&&(I(tt),P)){const Mt=ke.nativeEvent||ke,F0=new Mt.constructor(Mt.type,Mt);Object.defineProperty(F0,"target",{writable:!0,value:{value:tt,name:v}}),P(F0,me)}S||dt(!1,ke)}},Vt=me=>{B||[" ","ArrowUp","ArrowDown","Enter"].includes(me.key)&&(me.preventDefault(),dt(!0,me))},Qt=Ue!==null&&De,kt=me=>{!Qt&&_&&(Object.defineProperty(me,"target",{writable:!0,value:{value:oe,name:v}}),_(me))};delete fe["aria-invalid"];let xn,er;const Nt=[];let tr=!1;(V1({value:oe})||m)&&(K?xn=K(oe):tr=!0);const G=Pt.map(me=>{if(!O.isValidElement(me))return null;let ke;if(S){if(!Array.isArray(oe))throw new Error(D1(2));ke=oe.some(tt=>uc(tt,me.props.value)),ke&&tr&&Nt.push(me.props.children)}else ke=uc(oe,me.props.value),ke&&tr&&(er=me.props.children);return O.cloneElement(me,{"aria-selected":ke?"true":"false",onClick:wt(me),onKeyUp:tt=>{tt.key===" "&&tt.preventDefault(),me.props.onKeyUp&&me.props.onKeyUp(tt)},role:"option",selected:ke,value:void 0,"data-value":me.props.value})});tr&&(S?Nt.length===0?xn=null:xn=Nt.reduce((me,ke,tt)=>(me.push(ke),tt{const{classes:t}=e,r=je({root:["root"]},nf,t);return{...t,...r}},fl={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Dn(e)&&e!=="variant"},Ug=ue(G1,fl)(""),Vg=ue(tf,fl)(""),jg=ue(Y1,fl)(""),rf=O.forwardRef(function(t,n){const r=Ke({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:s={},className:o,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=F3,id:d,input:m,inputProps:p,label:b,labelId:E,MenuProps:C,multiple:T=!1,native:S=!1,onClose:v,onOpen:_,open:P,renderValue:k,SelectDisplayProps:V,variant:U="outlined",...q}=r,B=S?wg:Hg,K=cl(),Y=ll({props:r,muiFormControl:K,states:["variant","error"]}),X=Y.variant||U,j={...r,variant:X,classes:s},W=zg(j),{root:ne,...le}=W,fe=m||{standard:L.jsx(Ug,{ownerState:j}),outlined:L.jsx(Vg,{label:b,ownerState:j}),filled:L.jsx(jg,{ownerState:j})}[X],oe=rn(n,ma(fe));return L.jsx(O.Fragment,{children:O.cloneElement(fe,{inputComponent:B,inputProps:{children:a,error:Y.error,IconComponent:c,variant:X,type:void 0,multiple:T,...S?{id:d}:{autoWidth:i,defaultOpen:u,displayEmpty:l,labelId:E,MenuProps:C,onClose:v,onOpen:_,open:P,renderValue:k,SelectDisplayProps:{id:d,...V}},...p,classes:p?sl(le,p.classes):le,...m?m.props.inputProps:{}},...(T&&S||l)&&X==="outlined"?{notched:!0}:{},ref:oe,className:Be(fe.props.className,o,W.root),...!m&&{variant:X},...q})})});rf.muiName="Select";function qg(e){return pt("MuiSkeleton",e)}ut("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const $g=e=>{const{classes:t,variant:n,animation:r,hasChildren:i,width:a,height:s}=e;return je({root:["root",n,r,i&&"withChildren",i&&!a&&"fitContent",i&&!s&&"heightAuto"]},qg,t)},cu=P1` +import{x as W4,y as Y4,r as O,z as G4,C as K4,j as L,c as Be,_ as X4,R as Ma,D as Q4,E as Ra,F as D1,G as Z4,H as J4,I as rn,J as e3,K as Lr,M as t3,N as au,s as ue,u as Ke,O as n3,P as Ji,m as vt,Q as ea,b as Tt,d as je,U as r3,V as _1,f as ut,h as pt,W as i3,X as Ns,v as At,Y as a3,Z as s3,$ as o3,a0 as u3,a1 as Ms,q as L1,a2 as l3,a3 as c3,T as Ve,p as Dn,a4 as d3,a5 as sl,e as ol,a6 as h3,a7 as f3,a8 as H0,a9 as m3,B as p3,aa as z0,ab as U0,ac as g3,ad as vn,ae as b3,af as P1,ag as O1,ah as y3,ai as T3,aj as E3,ak as V0,o as _n,al as x3,am as j0,an as v3,ao as q0,ap as Ja,aq as ul,ar as B1,n as ls,i as fa,S as Je,l as cs,as as F1,w as H1}from"./index-PErRMx3K.js";function S3(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,a=W4("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(Y4);return O.forwardRef(function(u,l){const c=G4(n),{className:d,component:m="div",...p}=K4(u);return L.jsx(a,{as:m,ref:l,className:Be(d,i?i(r):r),theme:t&&c[t]||c,...p})})}function A3(e,t){return O.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function C3(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function w3(e){return parseFloat(e)}function $0(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function z1(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Tn(e){return e&&e.ownerDocument||document}function Wn(e){return Tn(e).defaultView||window}function W0(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Y0(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:a}=O.useRef(t!==void 0),[s,o]=O.useState(n),u=a?t:s,l=O.useCallback(c=>{a||o(c)},[]);return[u,l]}function k3(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function I3(e,t){if(!e)return t;function n(s,o){const u={};return Object.keys(o).forEach(l=>{k3(l,o[l])&&typeof s[l]=="function"&&(u[l]=(...c)=>{s[l](...c),o[l](...c)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const o=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...o}):e,l=Be(s?.className,o?.className,u?.className),c=n(u,o);return{...o,...u,...c,...!!l&&{className:l},...o?.style&&u?.style&&{style:{...o.style,...u.style}},...o?.sx&&u?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,i=n(e,r),a=Be(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const G0={disabled:!1};var N3=function(t){return t.scrollTop},Li="unmounted",wr="exited",kr="entering",Wr="entered",su="exiting",Ln=(function(e){X4(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?o?(u=wr,a.appearStatus=kr):u=Wr:r.unmountOnExit||r.mountOnEnter?u=Li:u=wr,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===Li?{status:wr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==kr&&s!==Wr&&(a=kr):(s===kr||s===Wr)&&(a=su)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===kr){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ma.findDOMNode(this);s&&N3(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===wr&&this.setState({status:Li})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,u=this.props.nodeRef?[o]:[Ma.findDOMNode(this),o],l=u[0],c=u[1],d=this.getTimeouts(),m=o?d.appear:d.enter;if(!i&&!s||G0.disabled){this.safeSetState({status:Wr},function(){a.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:kr},function(){a.props.onEntering(l,c),a.onTransitionEnd(m,function(){a.safeSetState({status:Wr},function(){a.props.onEntered(l,c)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:Ma.findDOMNode(this);if(!a||G0.disabled){this.safeSetState({status:wr},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:su},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:wr},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:Ma.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Li)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=Q4(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ra.createElement(D1.Provider,{value:null},typeof s=="function"?s(i,o):Ra.cloneElement(Ra.Children.only(s),o))},t})(Ra.Component);Ln.contextType=D1;Ln.propTypes={};function Vr(){}Ln.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vr,onEntering:Vr,onEntered:Vr,onExit:Vr,onExiting:Vr,onExited:Vr};Ln.UNMOUNTED=Li;Ln.EXITED=wr;Ln.ENTERING=kr;Ln.ENTERED=Wr;Ln.EXITING=su;const U1=e=>e.scrollTop;function ds(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function M3(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,s=i?{}:Z4(n,r),{props:o,internalRef:u}=J4({...a,externalSlotProps:s}),l=rn(u,s?.ref,e.additionalProps?.ref);return e3(t,{...o,ref:l},r)}function ma(e){return parseInt(O.version,10)>=19?e?.props?.ref||null:e?.ref||null}function R3(e){return typeof e=="function"?e():e}const D3=O.forwardRef(function(t,n){const{children:r,container:i,disablePortal:a=!1}=t,[s,o]=O.useState(null),u=rn(O.isValidElement(r)?ma(r):null,n);if(Lr(()=>{a||o(R3(i)||document.body)},[i,a]),Lr(()=>{if(s&&!a)return W0(n,s),()=>{W0(n,null)}},[n,s,a]),a){if(O.isValidElement(r)){const l={ref:u};return O.cloneElement(r,l)}return r}return s&&t3.createPortal(r,s)});function Da(e){return parseInt(e,10)||0}const _3={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function L3(e){for(const t in e)return!1;return!0}function K0(e){return L3(e)||e.outerHeightStyle===0&&!e.overflowing}const P3=O.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:o,...u}=t,{current:l}=O.useRef(o!=null),c=O.useRef(null),d=rn(n,c),m=O.useRef(null),p=O.useRef(null),b=O.useCallback(()=>{const v=c.current,_=p.current;if(!v||!_)return;const k=Wn(v).getComputedStyle(v);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};_.style.width=k.width,_.value=v.value||t.placeholder||"x",_.value.slice(-1)===` +`&&(_.value+=" ");const V=k.boxSizing,U=Da(k.paddingBottom)+Da(k.paddingTop),q=Da(k.borderBottomWidth)+Da(k.borderTopWidth),B=_.scrollHeight;_.value="x";const K=_.scrollHeight;let Y=B;a&&(Y=Math.max(Number(a)*K,Y)),i&&(Y=Math.min(Number(i)*K,Y)),Y=Math.max(Y,K);const X=Y+(V==="border-box"?U+q:0),j=Math.abs(Y-B)<=1;return{outerHeightStyle:X,overflowing:j}},[i,a,t.placeholder]),E=au(()=>{const v=c.current,_=b();if(!v||!_||K0(_))return!1;const P=_.outerHeightStyle;return m.current!=null&&m.current!==P}),C=O.useCallback(()=>{const v=c.current,_=b();if(!v||!_||K0(_))return;const P=_.outerHeightStyle;m.current!==P&&(m.current=P,v.style.height=`${P}px`),v.style.overflow=_.overflowing?"hidden":""},[b]),T=O.useRef(-1);Lr(()=>{const v=z1(C),_=c?.current;if(!_)return;const P=Wn(_);P.addEventListener("resize",v);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(()=>{E()&&(k.unobserve(_),cancelAnimationFrame(T.current),C(),T.current=requestAnimationFrame(()=>{k.observe(_)}))}),k.observe(_)),()=>{v.clear(),cancelAnimationFrame(T.current),P.removeEventListener("resize",v),k&&k.disconnect()}},[b,C,E]),Lr(()=>{C()});const S=v=>{l||C();const _=v.target,P=_.value.length,k=_.value.endsWith(` +`),V=_.selectionStart===P;k&&V&&_.setSelectionRange(P,P),r&&r(v)};return L.jsxs(O.Fragment,{children:[L.jsx("textarea",{value:o,onChange:S,ref:d,rows:a,style:s,...u}),L.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:{..._3.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function ll({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const V1=O.createContext(void 0);function cl(){return O.useContext(V1)}function X0(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function j1(e,t=!1){return e&&(X0(e.value)&&e.value!==""||t&&X0(e.defaultValue)&&e.defaultValue!=="")}function DR(e){return e.startAdornment}var Q0;const Rs=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Tt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ds=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},O3=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:o,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:d,size:m,startAdornment:p,type:b}=e,E={root:["root",`color${Tt(n)}`,r&&"disabled",i&&"error",u&&"fullWidth",s&&"focused",o&&"formControl",m&&m!=="medium"&&`size${Tt(m)}`,c&&"multiline",p&&"adornedStart",a&&"adornedEnd",l&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",c&&"inputMultiline",m==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return je(E,r3,t)},_s=ue("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Rs})(vt(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ea.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Ls=ue("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ds})(vt(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ea.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${ea.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Z0=n3({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),dl=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:o,color:u,components:l={},componentsProps:c={},defaultValue:d,disabled:m,disableInjectingGlobalStyles:p,endAdornment:b,error:E,fullWidth:C=!1,id:T,inputComponent:S="input",inputProps:v={},inputRef:_,margin:P,maxRows:k,minRows:V,multiline:U=!1,name:q,onBlur:B,onChange:K,onClick:Y,onFocus:X,onKeyDown:j,onKeyUp:W,placeholder:ne,readOnly:le,renderSuffix:fe,rows:oe,size:I,slotProps:De={},slots:Ae={},startAdornment:D,type:_e="text",value:Ue,...He}=r,qe=v.value!=null?v.value:Ue,{current:$e}=O.useRef(qe!=null),We=O.useRef(),xe=O.useCallback(Le=>{},[]),Pe=rn(We,_,v.ref,xe),[ze,dt]=O.useState(!1),Oe=cl(),Xe=ll({props:r,muiFormControl:Oe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Xe.focused=Oe?Oe.focused:ze,O.useEffect(()=>{!Oe&&m&&ze&&(dt(!1),B&&B())},[Oe,m,ze,B]);const Pt=Oe&&Oe.onFilled,Ot=Oe&&Oe.onEmpty,wt=O.useCallback(Le=>{j1(Le)?Pt&&Pt():Ot&&Ot()},[Pt,Ot]);Lr(()=>{$e&&wt({value:qe})},[qe,wt,$e]);const Vt=Le=>{X&&X(Le),v.onFocus&&v.onFocus(Le),Oe&&Oe.onFocus?Oe.onFocus(Le):dt(!0)},Qt=Le=>{B&&B(Le),v.onBlur&&v.onBlur(Le),Oe&&Oe.onBlur?Oe.onBlur(Le):dt(!1)},kt=(Le,...jt)=>{if(!$e){const qt=Le.target||We.current;if(qt==null)throw new Error(_1(1));wt({value:qt.value})}v.onChange&&v.onChange(Le,...jt),K&&K(Le,...jt)};O.useEffect(()=>{wt(We.current)},[]);const xn=Le=>{We.current&&Le.currentTarget===Le.target&&We.current.focus(),Y&&Y(Le)};let er=S,Nt=v;U&&er==="input"&&(oe?Nt={type:void 0,minRows:oe,maxRows:oe,...Nt}:Nt={type:void 0,maxRows:k,minRows:V,...Nt},er=P3);const tr=Le=>{wt(Le.animationName==="mui-auto-fill-cancel"?We.current:{value:"x"})};O.useEffect(()=>{Oe&&Oe.setAdornedStart(!!D)},[Oe,D]);const G={...r,color:Xe.color||"primary",disabled:Xe.disabled,endAdornment:b,error:Xe.error,focused:Xe.focused,formControl:Oe,fullWidth:C,hiddenLabel:Xe.hiddenLabel,multiline:U,size:Xe.size,startAdornment:D,type:_e},ae=O3(G),ye=Ae.root||l.Root||_s,ve=De.root||c.root||{},Me=Ae.input||l.Input||Ls;return Nt={...Nt,...De.input??c.input},L.jsxs(O.Fragment,{children:[!p&&typeof Z0=="function"&&(Q0||(Q0=L.jsx(Z0,{}))),L.jsxs(ye,{...ve,ref:n,onClick:xn,...He,...!Ji(ye)&&{ownerState:{...G,...ve.ownerState}},className:Be(ae.root,ve.className,o,le&&"MuiInputBase-readOnly"),children:[D,L.jsx(V1.Provider,{value:null,children:L.jsx(Me,{"aria-invalid":Xe.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:d,disabled:Xe.disabled,id:T,onAnimationStart:tr,name:q,placeholder:ne,readOnly:le,required:Xe.required,rows:oe,value:qe,onKeyDown:j,onKeyUp:W,type:_e,...Nt,...!Ji(Me)&&{as:er,ownerState:{...G,...Nt.ownerState}},ref:Pe,className:Be(ae.input,Nt.className,le&&"MuiInputBase-readOnly"),onBlur:Qt,onChange:kt,onFocus:Vt})}),b,fe?fe({...Xe,startAdornment:D}):null]})]})});function B3(e){return pt("MuiInput",e)}const Si={...ea,...ut("MuiInput",["root","underline","input"])};function F3(e){return pt("MuiFilledInput",e)}const Er={...ea,...ut("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},H3=i3(L.jsx("path",{d:"M7 10l5 5 5-5z"})),z3={entering:{opacity:1},entered:{opacity:1}},ou=O.forwardRef(function(t,n){const r=Ns(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:o,easing:u,in:l,onEnter:c,onEntered:d,onEntering:m,onExit:p,onExited:b,onExiting:E,style:C,timeout:T=i,TransitionComponent:S=Ln,...v}=t,_=O.useRef(null),P=rn(_,ma(o),n),k=j=>W=>{if(j){const ne=_.current;W===void 0?j(ne):j(ne,W)}},V=k(m),U=k((j,W)=>{U1(j);const ne=ds({style:C,timeout:T,easing:u},{mode:"enter"});j.style.webkitTransition=r.transitions.create("opacity",ne),j.style.transition=r.transitions.create("opacity",ne),c&&c(j,W)}),q=k(d),B=k(E),K=k(j=>{const W=ds({style:C,timeout:T,easing:u},{mode:"exit"});j.style.webkitTransition=r.transitions.create("opacity",W),j.style.transition=r.transitions.create("opacity",W),p&&p(j)}),Y=k(b),X=j=>{a&&a(_.current,j)};return L.jsx(S,{appear:s,in:l,nodeRef:_,onEnter:U,onEntered:q,onEntering:V,onExit:K,onExited:Y,onExiting:B,addEndListener:X,timeout:T,...v,children:(j,{ownerState:W,...ne})=>O.cloneElement(o,{style:{opacity:0,visibility:j==="exited"&&!l?"hidden":void 0,...z3[j],...C,...o.props.style},ref:P,...ne})})});function U3(e){return pt("MuiBackdrop",e)}ut("MuiBackdrop",["root","invisible"]);const V3=e=>{const{classes:t,invisible:n}=e;return je({root:["root",n&&"invisible"]},U3,t)},j3=ue("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),q1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:s="div",invisible:o=!1,open:u,components:l={},componentsProps:c={},slotProps:d={},slots:m={},TransitionComponent:p,transitionDuration:b,...E}=r,C={...r,component:s,invisible:o},T=V3(C),S={transition:p,root:l.Root,...m},v={...c,...d},_={component:s,slots:S,slotProps:v},[P,k]=At("root",{elementType:j3,externalForwardedProps:_,className:Be(T.root,a),ownerState:C}),[V,U]=At("transition",{elementType:ou,externalForwardedProps:_,ownerState:C});return L.jsx(V,{in:u,timeout:b,...E,...U,children:L.jsx(P,{"aria-hidden":!0,...k,classes:T,ref:n,children:i})})}),q3=ut("MuiBox",["root"]),$3=o3(),ci=S3({themeId:s3,defaultTheme:$3,defaultClassName:q3.root,generateClassName:a3.generate});function $1(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function W3(e){const t=Tn(e);return t.body===e?Wn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Fi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function J0(e){return parseInt(Wn(e).getComputedStyle(e).paddingRight,10)||0}function Y3(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function ec(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,s=>{const o=!a.includes(s),u=!Y3(s);o&&u&&Fi(s,i)})}function no(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function G3(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(W3(r)){const s=$1(Wn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${J0(r)+s}px`;const o=Tn(r).querySelectorAll(".mui-fixed");[].forEach.call(o,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${J0(u)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Tn(r).body;else{const s=r.parentElement,o=Wn(r);a=s?.nodeName==="HTML"&&o.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:o})=>{a?s.style.setProperty(o,a):s.style.removeProperty(o)})}}function K3(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class X3{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Fi(t.modalRef,!1);const i=K3(n);ec(n,t.mount,t.modalRef,i,!0);const a=no(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=no(this.containers,a=>a.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=G3(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=no(this.containers,s=>s.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Fi(t.modalRef,n),ec(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&Fi(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Q3=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Z3(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function J3(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function e6(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||J3(e))}function t6(e){const t=[],n=[];return Array.from(e.querySelectorAll(Q3)).forEach((r,i)=>{const a=Z3(r);a===-1||!e6(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function n6(){return!0}function r6(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=t6,isEnabled:s=n6,open:o}=e,u=O.useRef(!1),l=O.useRef(null),c=O.useRef(null),d=O.useRef(null),m=O.useRef(null),p=O.useRef(!1),b=O.useRef(null),E=rn(ma(t),b),C=O.useRef(null);O.useEffect(()=>{!o||!b.current||(p.current=!n)},[n,o]),O.useEffect(()=>{if(!o||!b.current)return;const v=Tn(b.current);return b.current.contains(v.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),p.current&&b.current.focus()),()=>{i||(d.current&&d.current.focus&&(u.current=!0,d.current.focus()),d.current=null)}},[o]),O.useEffect(()=>{if(!o||!b.current)return;const v=Tn(b.current),_=V=>{C.current=V,!(r||!s()||V.key!=="Tab")&&v.activeElement===b.current&&V.shiftKey&&(u.current=!0,c.current&&c.current.focus())},P=()=>{const V=b.current;if(V===null)return;if(!v.hasFocus()||!s()||u.current){u.current=!1;return}if(V.contains(v.activeElement)||r&&v.activeElement!==l.current&&v.activeElement!==c.current)return;if(v.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!p.current)return;let U=[];if((v.activeElement===l.current||v.activeElement===c.current)&&(U=a(b.current)),U.length>0){const q=!!(C.current?.shiftKey&&C.current?.key==="Tab"),B=U[0],K=U[U.length-1];typeof B!="string"&&typeof K!="string"&&(q?K.focus():B.focus())}else V.focus()};v.addEventListener("focusin",P),v.addEventListener("keydown",_,!0);const k=setInterval(()=>{v.activeElement&&v.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(k),v.removeEventListener("focusin",P),v.removeEventListener("keydown",_,!0)}},[n,r,i,s,o,a]);const T=v=>{d.current===null&&(d.current=v.relatedTarget),p.current=!0,m.current=v.target;const _=t.props.onFocus;_&&_(v)},S=v=>{d.current===null&&(d.current=v.relatedTarget),p.current=!0};return L.jsxs(O.Fragment,{children:[L.jsx("div",{tabIndex:o?0:-1,onFocus:S,ref:l,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:E,onFocus:T}),L.jsx("div",{tabIndex:o?0:-1,onFocus:S,ref:c,"data-testid":"sentinelEnd"})]})}function i6(e){return typeof e=="function"?e():e}function a6(e){return e?e.props.hasOwnProperty("in"):!1}const tc=()=>{},_a=new X3;function s6(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:o,onClose:u,open:l,rootRef:c}=e,d=O.useRef({}),m=O.useRef(null),p=O.useRef(null),b=rn(p,c),[E,C]=O.useState(!l),T=a6(o);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const v=()=>Tn(m.current),_=()=>(d.current.modalRef=p.current,d.current.mount=m.current,d.current),P=()=>{_a.mount(_(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},k=au(()=>{const W=i6(t)||v().body;_a.add(_(),W),p.current&&P()}),V=()=>_a.isTopModal(_()),U=au(W=>{m.current=W,W&&(l&&V()?P():p.current&&Fi(p.current,S))}),q=O.useCallback(()=>{_a.remove(_(),S)},[S]);O.useEffect(()=>()=>{q()},[q]),O.useEffect(()=>{l?k():(!T||!i)&&q()},[l,q,T,i,k]);const B=W=>ne=>{W.onKeyDown?.(ne),!(ne.key!=="Escape"||ne.which===229||!V())&&(n||(ne.stopPropagation(),u&&u(ne,"escapeKeyDown")))},K=W=>ne=>{W.onClick?.(ne),ne.target===ne.currentTarget&&u&&u(ne,"backdropClick")};return{getRootProps:(W={})=>{const ne=u3(e);delete ne.onTransitionEnter,delete ne.onTransitionExited;const le={...ne,...W};return{role:"presentation",...le,onKeyDown:B(le),ref:b}},getBackdropProps:(W={})=>{const ne=W;return{"aria-hidden":!0,...ne,onClick:K(ne),open:l}},getTransitionProps:()=>{const W=()=>{C(!1),a&&a()},ne=()=>{C(!0),s&&s(),i&&q()};return{onEnter:$0(W,o?.props.onEnter??tc),onExited:$0(ne,o?.props.onExited??tc)}},rootRef:b,portalRef:U,isTopModal:V,exited:E,hasTransition:T}}function o6(e){return pt("MuiModal",e)}ut("MuiModal",["root","hidden","backdrop"]);const u6=e=>{const{open:t,exited:n,classes:r}=e;return je({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},o6,r)},l6=ue("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(vt(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),c6=ue(q1,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),W1=O.forwardRef(function(t,n){const r=Ke({name:"MuiModal",props:t}),{BackdropComponent:i=c6,BackdropProps:a,classes:s,className:o,closeAfterTransition:u=!1,children:l,container:c,component:d,components:m={},componentsProps:p={},disableAutoFocus:b=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:C=!1,disablePortal:T=!1,disableRestoreFocus:S=!1,disableScrollLock:v=!1,hideBackdrop:_=!1,keepMounted:P=!1,onClose:k,onTransitionEnter:V,onTransitionExited:U,open:q,slotProps:B={},slots:K={},theme:Y,...X}=r,j={...r,closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:E,disableEscapeKeyDown:C,disablePortal:T,disableRestoreFocus:S,disableScrollLock:v,hideBackdrop:_,keepMounted:P},{getRootProps:W,getBackdropProps:ne,getTransitionProps:le,portalRef:fe,isTopModal:oe,exited:I,hasTransition:De}=s6({...j,rootRef:n}),Ae={...j,exited:I},D=u6(Ae),_e={};if(l.props.tabIndex===void 0&&(_e.tabIndex="-1"),De){const{onEnter:xe,onExited:Pe}=le();_e.onEnter=xe,_e.onExited=Pe}const Ue={slots:{root:m.Root,backdrop:m.Backdrop,...K},slotProps:{...p,...B}},[He,qe]=At("root",{ref:n,elementType:l6,externalForwardedProps:{...Ue,...X,component:d},getSlotProps:W,ownerState:Ae,className:Be(o,D?.root,!Ae.open&&Ae.exited&&D?.hidden)}),[$e,We]=At("backdrop",{ref:a?.ref,elementType:i,externalForwardedProps:Ue,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:xe=>ne({...xe,onClick:Pe=>{xe?.onClick&&xe.onClick(Pe)}}),className:Be(a?.className,D?.backdrop),ownerState:Ae});return!P&&!q&&(!De||I)?null:L.jsx(D3,{ref:fe,container:c,disablePortal:T,children:L.jsxs(He,{...qe,children:[!_&&i?L.jsx($e,{...We}):null,L.jsx(r6,{disableEnforceFocus:E,disableAutoFocus:b,disableRestoreFocus:S,isEnabled:oe,open:q,children:O.cloneElement(l,_e)})]})})});function d6(e){return pt("MuiDialog",e)}const ro=ut("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Y1=O.createContext({}),h6=ue(q1,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),f6=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${Tt(n)}`],paper:["paper",`paperScroll${Tt(n)}`,`paperWidth${Tt(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return je(s,d6,t)},m6=ue(W1,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),p6=ue("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Tt(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),g6=ue(Ms,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Tt(n.scroll)}`],t[`paperWidth${Tt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(vt(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${ro.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${ro.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ro.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),b6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialog"}),i=Ns(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":o,"aria-modal":u=!0,BackdropComponent:l,BackdropProps:c,children:d,className:m,disableEscapeKeyDown:p=!1,fullScreen:b=!1,fullWidth:E=!1,maxWidth:C="sm",onClick:T,onClose:S,open:v,PaperComponent:_=Ms,PaperProps:P={},scroll:k="paper",slots:V={},slotProps:U={},TransitionComponent:q=ou,transitionDuration:B=a,TransitionProps:K,...Y}=r,X={...r,disableEscapeKeyDown:p,fullScreen:b,fullWidth:E,maxWidth:C,scroll:k},j=f6(X),W=O.useRef(),ne=dt=>{W.current=dt.target===dt.currentTarget},le=dt=>{T&&T(dt),W.current&&(W.current=null,S&&S(dt,"backdropClick"))},fe=L1(o),oe=O.useMemo(()=>({titleId:fe}),[fe]),I={transition:q,...V},De={transition:K,paper:P,backdrop:c,...U},Ae={slots:I,slotProps:De},[D,_e]=At("root",{elementType:m6,shouldForwardComponentProp:!0,externalForwardedProps:Ae,ownerState:X,className:Be(j.root,m),ref:n}),[Ue,He]=At("backdrop",{elementType:h6,shouldForwardComponentProp:!0,externalForwardedProps:Ae,ownerState:X}),[qe,$e]=At("paper",{elementType:g6,shouldForwardComponentProp:!0,externalForwardedProps:Ae,ownerState:X,className:Be(j.paper,P.className)}),[We,xe]=At("container",{elementType:p6,externalForwardedProps:Ae,ownerState:X,className:j.container}),[Pe,ze]=At("transition",{elementType:ou,externalForwardedProps:Ae,ownerState:X,additionalProps:{appear:!0,in:v,timeout:B,role:"presentation"}});return L.jsx(D,{closeAfterTransition:!0,slots:{backdrop:Ue},slotProps:{backdrop:{transitionDuration:B,as:l,...He}},disableEscapeKeyDown:p,onClose:S,open:v,onClick:le,..._e,...Y,children:L.jsx(Pe,{...ze,children:L.jsx(We,{onMouseDown:ne,...xe,children:L.jsx(qe,{as:_,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":fe,"aria-modal":u,...$e,children:L.jsx(Y1.Provider,{value:oe,children:d})})})})})});function y6(e){return pt("MuiDialogActions",e)}ut("MuiDialogActions",["root","spacing"]);const T6=e=>{const{classes:t,disableSpacing:n}=e;return je({root:["root",!n&&"spacing"]},y6,t)},E6=ue("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),x6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:a=!1,...s}=r,o={...r,disableSpacing:a},u=T6(o);return L.jsx(E6,{className:Be(u.root,i),ownerState:o,ref:n,...s})}),v6=e=>{const{classes:t,dividers:n}=e;return je({root:["root",n&&"dividers"]},l3,t)},S6=ue("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(vt(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${c3.root} + &`]:{paddingTop:0}}}]}))),A6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContent"}),{className:i,dividers:a=!1,...s}=r,o={...r,dividers:a},u=v6(o);return L.jsx(S6,{className:Be(u.root,i),ownerState:o,ref:n,...s})});function C6(e){return pt("MuiDialogContentText",e)}ut("MuiDialogContentText",["root"]);const w6=e=>{const{classes:t}=e,r=je({root:["root"]},C6,t);return{...t,...r}},k6=ue(Ve,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),I6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContentText"}),{children:i,className:a,...s}=r,o=w6(s);return L.jsx(k6,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:Be(o.root,a),...r,classes:o})}),N6=e=>{const{classes:t}=e;return je({root:["root"]},d3,t)},M6=ue(Ve,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),R6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogTitle"}),{className:i,id:a,...s}=r,o=r,u=N6(o),{titleId:l=a}=O.useContext(Y1);return L.jsx(M6,{component:"h2",className:Be(u.root,i),ownerState:o,ref:n,variant:"h6",id:a??l,...s})}),D6=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:s,multiline:o}=e,u={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",a==="small"&&`size${Tt(a)}`,s&&"hiddenLabel",o&&"multiline"],input:["input"]},l=je(u,F3,t);return{...t,...l}},_6=ue(_s,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Rs(e,t),!n.disableUnderline&&t.underline]}})(vt(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Er.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Er.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Er.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Er.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Er.disabled}, .${Er.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Er.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ol()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:o})=>s.multiline&&o==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),L6=ue(Ls,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ds})(vt(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),G1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:o=!1,hiddenLabel:u,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:m={},type:p="text",...b}=r,E={...r,disableUnderline:i,fullWidth:o,inputComponent:l,multiline:c,type:p},C=D6(r),T={root:{ownerState:E},input:{ownerState:E}},S=d??s?sl(T,d??s):T,v=m.root??a.Root??_6,_=m.input??a.Input??L6;return L.jsx(dl,{slots:{root:v,input:_},slotProps:S,fullWidth:o,inputComponent:l,multiline:c,ref:n,type:p,...b,classes:C})});G1.muiName="Input";function uu(e){return`scale(${e}, ${e**2})`}const P6={entering:{opacity:1,transform:uu(1)},entered:{opacity:1,transform:"none"}},io=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),lu=O.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:s,in:o,onEnter:u,onEntered:l,onEntering:c,onExit:d,onExited:m,onExiting:p,style:b,timeout:E="auto",TransitionComponent:C=Ln,...T}=t,S=h3(),v=O.useRef(),_=Ns(),P=O.useRef(null),k=rn(P,ma(a),n),V=W=>ne=>{if(W){const le=P.current;ne===void 0?W(le):W(le,ne)}},U=V(c),q=V((W,ne)=>{U1(W);const{duration:le,delay:fe,easing:oe}=ds({style:b,timeout:E,easing:s},{mode:"enter"});let I;E==="auto"?(I=_.transitions.getAutoHeightDuration(W.clientHeight),v.current=I):I=le,W.style.transition=[_.transitions.create("opacity",{duration:I,delay:fe}),_.transitions.create("transform",{duration:io?I:I*.666,delay:fe,easing:oe})].join(","),u&&u(W,ne)}),B=V(l),K=V(p),Y=V(W=>{const{duration:ne,delay:le,easing:fe}=ds({style:b,timeout:E,easing:s},{mode:"exit"});let oe;E==="auto"?(oe=_.transitions.getAutoHeightDuration(W.clientHeight),v.current=oe):oe=ne,W.style.transition=[_.transitions.create("opacity",{duration:oe,delay:le}),_.transitions.create("transform",{duration:io?oe:oe*.666,delay:io?le:le||oe*.333,easing:fe})].join(","),W.style.opacity=0,W.style.transform=uu(.75),d&&d(W)}),X=V(m),j=W=>{E==="auto"&&S.start(v.current||0,W),r&&r(P.current,W)};return L.jsx(C,{appear:i,in:o,nodeRef:P,onEnter:q,onEntered:B,onEntering:U,onExit:Y,onExited:X,onExiting:K,addEndListener:j,timeout:E==="auto"?null:E,...T,children:(W,{ownerState:ne,...le})=>O.cloneElement(a,{style:{opacity:0,transform:uu(.75),visibility:W==="exited"&&!o?"hidden":void 0,...P6[W],...b,...a.props.style},ref:k,...le})})});lu&&(lu.muiSupportAuto=!0);const O6=e=>{const{classes:t,disableUnderline:n}=e,i=je({root:["root",!n&&"underline"],input:["input"]},B3,t);return{...t,...i}},B6=ue(_s,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Rs(e,t),!n.disableUnderline&&t.underline]}})(vt(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Si.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Si.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Si.disabled}, .${Si.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Si.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ol()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),F6=ue(Ls,{name:"MuiInput",slot:"Input",overridesResolver:Ds})({}),K1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:o=!1,inputComponent:u="input",multiline:l=!1,slotProps:c,slots:d={},type:m="text",...p}=r,b=O6(r),C={root:{ownerState:{disableUnderline:i}}},T=c??s?sl(c??s,C):C,S=d.root??a.Root??B6,v=d.input??a.Input??F6;return L.jsx(dl,{slots:{root:S,input:v},slotProps:T,fullWidth:o,inputComponent:u,multiline:l,ref:n,type:m,...p,classes:b})});K1.muiName="Input";const jn=O.createContext({});function H6(e){return pt("MuiList",e)}ut("MuiList",["root","padding","dense","subheader"]);const z6=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return je({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},H6,t)},U6=ue("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),X1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiList"}),{children:i,className:a,component:s="ul",dense:o=!1,disablePadding:u=!1,subheader:l,...c}=r,d=O.useMemo(()=>({dense:o}),[o]),m={...r,component:s,dense:o,disablePadding:u},p=z6(m);return L.jsx(jn.Provider,{value:d,children:L.jsxs(U6,{as:s,className:Be(p.root,a),ref:n,ownerState:m,...c,children:[l,i]})})});function V6(e){return pt("MuiListItem",e)}ut("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const j6=ut("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function q6(e){return pt("MuiListItemSecondaryAction",e)}ut("MuiListItemSecondaryAction",["root","disableGutters"]);const $6=e=>{const{disableGutters:t,classes:n}=e;return je({root:["root",t&&"disableGutters"]},q6,n)},W6=ue("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Q1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...a}=r,s=O.useContext(jn),o={...r,disableGutters:s.disableGutters},u=$6(o);return L.jsx(W6,{className:Be(u.root,i),ownerState:o,ref:n,...a})});Q1.muiName="ListItemSecondaryAction";const Y6=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},G6=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:a,divider:s,hasSecondaryAction:o}=e;return je({root:["root",r&&"dense",!i&&"gutters",!a&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",o&&"secondaryAction"],container:["container"]},V6,n)},K6=ue("div",{name:"MuiListItem",slot:"Root",overridesResolver:Y6})(vt(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${j6.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),X6=ue("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Q6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItem"}),{alignItems:i="center",children:a,className:s,component:o,components:u={},componentsProps:l={},ContainerComponent:c="li",ContainerProps:{className:d,...m}={},dense:p=!1,disableGutters:b=!1,disablePadding:E=!1,divider:C=!1,secondaryAction:T,slotProps:S={},slots:v={},..._}=r,P=O.useContext(jn),k=O.useMemo(()=>({dense:p||P.dense||!1,alignItems:i,disableGutters:b}),[i,P.dense,p,b]),V=O.useRef(null),U=O.Children.toArray(a),q=U.length&&A3(U[U.length-1],["ListItemSecondaryAction"]),B={...r,alignItems:i,dense:k.dense,disableGutters:b,disablePadding:E,divider:C,hasSecondaryAction:q},K=G6(B),Y=rn(V,n),X=v.root||u.Root||K6,j=S.root||l.root||{},W={className:Be(K.root,j.className,s),..._};let ne=o||"li";return q?(ne=!W.component&&!o?"div":ne,c==="li"&&(ne==="li"?ne="div":W.component==="li"&&(W.component="div")),L.jsx(jn.Provider,{value:k,children:L.jsxs(X6,{as:c,className:Be(K.container,d),ref:Y,ownerState:B,...m,children:[L.jsx(X,{...j,...!Ji(X)&&{as:ne,ownerState:{...B,...j.ownerState}},...W,children:U}),U.pop()]})})):L.jsx(jn.Provider,{value:k,children:L.jsxs(X,{...j,as:ne,ref:Y,...!Ji(X)&&{ownerState:{...B,...j.ownerState}},...W,children:[U,T&&L.jsx(Q1,{children:T})]})})}),Z6=e=>{const{alignItems:t,classes:n}=e;return je({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},f3,n)},J6=ue("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(vt(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),eg=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemIcon"}),{className:i,...a}=r,s=O.useContext(jn),o={...r,alignItems:s.alignItems},u=Z6(o);return L.jsx(J6,{className:Be(u.root,i),ownerState:o,ref:n,...a})});function tg(e){return pt("MuiListItemText",e)}const Gr=ut("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ng=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return je({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},tg,t)},rg=ue("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Gr.primary}`]:t.primary},{[`& .${Gr.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${H0.root}:where(& .${Gr.primary})`]:{display:"block"},[`.${H0.root}:where(& .${Gr.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),ig=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:s=!1,inset:o=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:d,slots:m={},slotProps:p={},...b}=r,{dense:E}=O.useContext(jn);let C=u??i,T=c;const S={...r,disableTypography:s,inset:o,primary:!!C,secondary:!!T,dense:E},v=ng(S),_={slots:m,slotProps:{primary:l,secondary:d,...p}},[P,k]=At("root",{className:Be(v.root,a),elementType:rg,externalForwardedProps:{..._,...b},ownerState:S,ref:n}),[V,U]=At("primary",{className:v.primary,elementType:Ve,externalForwardedProps:_,ownerState:S}),[q,B]=At("secondary",{className:v.secondary,elementType:Ve,externalForwardedProps:_,ownerState:S});return C!=null&&C.type!==Ve&&!s&&(C=L.jsx(V,{variant:E?"body2":"body1",component:U?.variant?void 0:"span",...U,children:C})),T!=null&&T.type!==Ve&&!s&&(T=L.jsx(q,{variant:"body2",color:"textSecondary",...B,children:T})),L.jsxs(P,{...k,children:[C,T]})});function ao(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function nc(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Z1(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Ai(e,t,n,r,i,a){let s=!1,o=i(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(s)return!1;s=!0}const u=r?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!Z1(o,a)||u)o=i(e,o,n);else return o.focus(),!0}return!1}const ag=O.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:o,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu",...m}=t,p=O.useRef(null),b=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Lr(()=>{i&&p.current.focus()},[i]),O.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(v,{direction:_})=>{const P=!p.current.style.width;if(v.clientHeight{const _=p.current,P=v.key;if(v.ctrlKey||v.metaKey||v.altKey){c&&c(v);return}const V=Tn(_).activeElement;if(P==="ArrowDown")v.preventDefault(),Ai(_,V,l,u,ao);else if(P==="ArrowUp")v.preventDefault(),Ai(_,V,l,u,nc);else if(P==="Home")v.preventDefault(),Ai(_,null,l,u,ao);else if(P==="End")v.preventDefault(),Ai(_,null,l,u,nc);else if(P.length===1){const U=b.current,q=P.toLowerCase(),B=performance.now();U.keys.length>0&&(B-U.lastTime>500?(U.keys=[],U.repeating=!0,U.previousKeyMatched=!0):U.repeating&&q!==U.keys[0]&&(U.repeating=!1)),U.lastTime=B,U.keys.push(q);const K=V&&!U.repeating&&Z1(V,U);U.previousKeyMatched&&(K||Ai(_,V,!1,u,ao,U))?v.preventDefault():U.previousKeyMatched=!1}c&&c(v)},C=rn(p,n);let T=-1;O.Children.forEach(s,(v,_)=>{if(!O.isValidElement(v)){T===_&&(T+=1,T>=s.length&&(T=-1));return}v.props.disabled||(d==="selectedMenu"&&v.props.selected||T===-1)&&(T=_),T===_&&(v.props.disabled||v.props.muiSkipListHighlight||v.type.muiSkipListHighlight)&&(T+=1,T>=s.length&&(T=-1))});const S=O.Children.map(s,(v,_)=>{if(_===T){const P={};return a&&(P.autoFocus=!0),v.props.tabIndex===void 0&&d==="selectedMenu"&&(P.tabIndex=0),O.cloneElement(v,P)}return v});return L.jsx(X1,{role:"menu",ref:C,className:o,onKeyDown:E,tabIndex:i?0:-1,...m,children:S})});function sg(e){return pt("MuiPopover",e)}ut("MuiPopover",["root","paper"]);function rc(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function ic(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function ac(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function La(e){return typeof e=="function"?e():e}const og=e=>{const{classes:t}=e;return je({root:["root"],paper:["paper"]},sg,t)},ug=ue(W1,{name:"MuiPopover",slot:"Root"})({}),J1=ue(Ms,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),lg=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:o,anchorReference:u="anchorEl",children:l,className:c,container:d,elevation:m=8,marginThreshold:p=16,open:b,PaperProps:E={},slots:C={},slotProps:T={},transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:v,transitionDuration:_="auto",TransitionProps:P={},disableScrollLock:k=!1,...V}=r,U=O.useRef(),q={...r,anchorOrigin:s,anchorReference:u,elevation:m,marginThreshold:p,transformOrigin:S,TransitionComponent:v,transitionDuration:_,TransitionProps:P},B=og(q),K=O.useCallback(()=>{if(u==="anchorPosition")return o;const xe=La(a),ze=(xe&&xe.nodeType===1?xe:Tn(U.current).body).getBoundingClientRect();return{top:ze.top+rc(ze,s.vertical),left:ze.left+ic(ze,s.horizontal)}},[a,s.horizontal,s.vertical,o,u]),Y=O.useCallback(xe=>({vertical:rc(xe,S.vertical),horizontal:ic(xe,S.horizontal)}),[S.horizontal,S.vertical]),X=O.useCallback(xe=>{const Pe={width:xe.offsetWidth,height:xe.offsetHeight},ze=Y(Pe);if(u==="none")return{top:null,left:null,transformOrigin:ac(ze)};const dt=K();let Oe=dt.top-ze.vertical,Xe=dt.left-ze.horizontal;const Pt=Oe+Pe.height,Ot=Xe+Pe.width,wt=Wn(La(a)),Vt=wt.innerHeight-p,Qt=wt.innerWidth-p;if(p!==null&&OeVt){const kt=Pt-Vt;Oe-=kt,ze.vertical+=kt}if(p!==null&&XeQt){const kt=Ot-Qt;Xe-=kt,ze.horizontal+=kt}return{top:`${Math.round(Oe)}px`,left:`${Math.round(Xe)}px`,transformOrigin:ac(ze)}},[a,u,K,Y,p]),[j,W]=O.useState(b),ne=O.useCallback(()=>{const xe=U.current;if(!xe)return;const Pe=X(xe);Pe.top!==null&&xe.style.setProperty("top",Pe.top),Pe.left!==null&&(xe.style.left=Pe.left),xe.style.transformOrigin=Pe.transformOrigin,W(!0)},[X]);O.useEffect(()=>(k&&window.addEventListener("scroll",ne),()=>window.removeEventListener("scroll",ne)),[a,k,ne]);const le=()=>{ne()},fe=()=>{W(!1)};O.useEffect(()=>{b&&ne()}),O.useImperativeHandle(i,()=>b?{updatePosition:()=>{ne()}}:null,[b,ne]),O.useEffect(()=>{if(!b)return;const xe=z1(()=>{ne()}),Pe=Wn(La(a));return Pe.addEventListener("resize",xe),()=>{xe.clear(),Pe.removeEventListener("resize",xe)}},[a,b,ne]);let oe=_;const I={slots:{transition:v,...C},slotProps:{transition:P,paper:E,...T}},[De,Ae]=At("transition",{elementType:lu,externalForwardedProps:I,ownerState:q,getSlotProps:xe=>({...xe,onEntering:(Pe,ze)=>{xe.onEntering?.(Pe,ze),le()},onExited:Pe=>{xe.onExited?.(Pe),fe()}}),additionalProps:{appear:!0,in:b}});_==="auto"&&!De.muiSupportAuto&&(oe=void 0);const D=d||(a?Tn(La(a)).body:void 0),[_e,{slots:Ue,slotProps:He,...qe}]=At("root",{ref:n,elementType:ug,externalForwardedProps:{...I,...V},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:C.backdrop},slotProps:{backdrop:I3(typeof T.backdrop=="function"?T.backdrop(q):T.backdrop,{invisible:!0})},container:D,open:b},ownerState:q,className:Be(B.root,c)}),[$e,We]=At("paper",{ref:U,className:B.paper,elementType:J1,externalForwardedProps:I,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:j?void 0:{opacity:0}},ownerState:q});return L.jsx(_e,{...qe,...!Ji(_e)&&{slots:Ue,slotProps:He,disableScrollLock:k},children:L.jsx(De,{...Ae,timeout:oe,children:L.jsx($e,{...We,children:l})})})});function cg(e){return pt("MuiMenu",e)}ut("MuiMenu",["root","paper","list"]);const dg={vertical:"top",horizontal:"right"},hg={vertical:"top",horizontal:"left"},fg=e=>{const{classes:t}=e;return je({root:["root"],paper:["paper"],list:["list"]},cg,t)},mg=ue(lg,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),pg=ue(J1,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),gg=ue(ag,{name:"MuiMenu",slot:"List"})({outline:0}),bg=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:o=!1,MenuListProps:u={},onClose:l,open:c,PaperProps:d={},PopoverClasses:m,transitionDuration:p="auto",TransitionProps:{onEntering:b,...E}={},variant:C="selectedMenu",slots:T={},slotProps:S={},...v}=r,_=m3(),P={...r,autoFocus:i,disableAutoFocusItem:o,MenuListProps:u,onEntering:b,PaperProps:d,transitionDuration:p,TransitionProps:E,variant:C},k=fg(P),V=i&&!o&&c,U=O.useRef(null),q=(oe,I)=>{U.current&&U.current.adjustStyleForScrollbar(oe,{direction:_?"rtl":"ltr"}),b&&b(oe,I)},B=oe=>{oe.key==="Tab"&&(oe.preventDefault(),l&&l(oe,"tabKeyDown"))};let K=-1;O.Children.map(a,(oe,I)=>{O.isValidElement(oe)&&(oe.props.disabled||(C==="selectedMenu"&&oe.props.selected||K===-1)&&(K=I))});const Y={slots:T,slotProps:{list:u,transition:E,paper:d,...S}},X=M3({elementType:T.root,externalSlotProps:S.root,ownerState:P,className:[k.root,s]}),[j,W]=At("paper",{className:k.paper,elementType:pg,externalForwardedProps:Y,shouldForwardComponentProp:!0,ownerState:P}),[ne,le]=At("list",{className:Be(k.list,u.className),elementType:gg,shouldForwardComponentProp:!0,externalForwardedProps:Y,getSlotProps:oe=>({...oe,onKeyDown:I=>{B(I),oe.onKeyDown?.(I)}}),ownerState:P}),fe=typeof Y.slotProps.transition=="function"?Y.slotProps.transition(P):Y.slotProps.transition;return L.jsx(mg,{onClose:l,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?dg:hg,slots:{root:T.root,paper:j,backdrop:T.backdrop,...T.transition&&{transition:T.transition}},slotProps:{root:X,paper:W,backdrop:typeof S.backdrop=="function"?S.backdrop(P):S.backdrop,transition:{...fe,onEntering:(...oe)=>{q(...oe),fe?.onEntering?.(...oe)}}},open:c,ref:n,transitionDuration:p,ownerState:P,...v,classes:m,children:L.jsx(ne,{actions:U,autoFocus:i&&(K===-1||o),autoFocusItem:V,variant:C,...le,children:a})})});function yg(e){return pt("MuiMenuItem",e)}const Ci=ut("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Tg=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Eg=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,u=je({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},yg,s);return{...s,...u}},xg=ue(p3,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Tg})(vt(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ci.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ci.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Ci.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Ci.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ci.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${U0.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${U0.inset}`]:{marginLeft:52},[`& .${Gr.root}`]:{marginTop:0,marginBottom:0},[`& .${Gr.inset}`]:{paddingLeft:36},[`& .${z0.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${z0.root} svg`]:{fontSize:"1.25rem"}}}]}))),vg=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:o=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:m,...p}=r,b=O.useContext(jn),E=O.useMemo(()=>({dense:s||b.dense||!1,disableGutters:u}),[b.dense,s,u]),C=O.useRef(null);Lr(()=>{i&&C.current&&C.current.focus()},[i]);const T={...r,dense:E.dense,divider:o,disableGutters:u},S=Eg(r),v=rn(C,n);let _;return r.disabled||(_=d!==void 0?d:-1),L.jsx(jn.Provider,{value:E,children:L.jsx(xg,{ref:v,role:c,tabIndex:_,component:a,focusVisibleClassName:Be(S.focusVisible,l),className:Be(S.root,m),...p,ownerState:T,classes:S})})});function Sg(e){return pt("MuiNativeSelect",e)}const hl=ut("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ag=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Tt(n)}`,a&&"iconOpen",r&&"disabled"]};return je(o,Sg,t)},ef=ue("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${hl.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Cg=ue(ef,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Dn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${hl.multiple}`]:t.multiple}]}})({}),tf=ue("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${hl.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),wg=ue(tf,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Tt(n.variant)}`],n.open&&t.iconOpen]}})({}),kg=O.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:s,inputRef:o,variant:u="standard",...l}=t,c={...t,disabled:i,variant:u,error:a},d=Ag(c);return L.jsxs(O.Fragment,{children:[L.jsx(Cg,{ownerState:c,className:Be(d.select,r),disabled:i,ref:o||n,...l}),t.multiple?null:L.jsx(wg,{as:s,ownerState:c,className:d.icon})]})});var sc;const Ig=ue("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Dn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Ng=ue("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Dn})(vt(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Mg(e){const{children:t,classes:n,className:r,label:i,notched:a,...s}=e,o=i!=null&&i!=="",u={...e,notched:a,withLabel:o};return L.jsx(Ig,{"aria-hidden":!0,className:r,ownerState:u,...s,children:L.jsx(Ng,{ownerState:u,children:o?L.jsx("span",{children:i}):sc||(sc=L.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const Rg=e=>{const{classes:t}=e,r=je({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},g3,t);return{...t,...r}},Dg=ue(_s,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Rs})(vt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${vn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${vn.focused} .${vn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(ol()).map(([n])=>({props:{color:n},style:{[`&.${vn.focused} .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${vn.error} .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${vn.disabled} .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),_g=ue(Mg,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(vt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),Lg=ue(Ls,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ds})(vt(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),nf=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:o,multiline:u=!1,notched:l,slots:c={},slotProps:d={},type:m="text",...p}=r,b=Rg(r),E=cl(),C=ll({props:r,muiFormControl:E,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T={...r,color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:E,fullWidth:a,hiddenLabel:C.hiddenLabel,multiline:u,size:C.size,type:m},S=c.root??i.Root??Dg,v=c.input??i.Input??Lg,[_,P]=At("notchedOutline",{elementType:_g,className:b.notchedOutline,shouldForwardComponentProp:!0,ownerState:T,externalForwardedProps:{slots:c,slotProps:d},additionalProps:{label:o!=null&&o!==""&&C.required?L.jsxs(O.Fragment,{children:[o," ","*"]}):o}});return L.jsx(dl,{slots:{root:S,input:v},slotProps:d,renderSuffix:k=>L.jsx(_,{...P,notched:typeof l<"u"?l:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:a,inputComponent:s,multiline:u,ref:n,type:m,...p,classes:{...b,notchedOutline:null}})});nf.muiName="Input";function rf(e){return pt("MuiSelect",e)}const wi=ut("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var oc;const Pg=ue(ef,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${wi.select}`]:t.select},{[`&.${wi.select}`]:t[n.variant]},{[`&.${wi.error}`]:t.error},{[`&.${wi.multiple}`]:t.multiple}]}})({[`&.${wi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Og=ue(tf,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Tt(n.variant)}`],n.open&&t.iconOpen]}})({}),Bg=ue("input",{shouldForwardProp:e=>b3(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function uc(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Fg(e){return e==null||typeof e=="string"&&!e.trim()}const Hg=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Tt(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return je(o,rf,t)},zg=O.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:a,autoWidth:s,children:o,className:u,defaultOpen:l,defaultValue:c,disabled:d,displayEmpty:m,error:p=!1,IconComponent:b,inputRef:E,labelId:C,MenuProps:T={},multiple:S,name:v,onBlur:_,onChange:P,onClose:k,onFocus:V,onOpen:U,open:q,readOnly:B,renderValue:K,required:Y,SelectDisplayProps:X={},tabIndex:j,type:W,value:ne,variant:le="standard",...fe}=t,[oe,I]=Y0({controlled:ne,default:c,name:"Select"}),[De,Ae]=Y0({controlled:q,default:l,name:"Select"}),D=O.useRef(null),_e=O.useRef(null),[Ue,He]=O.useState(null),{current:qe}=O.useRef(q!=null),[$e,We]=O.useState(),xe=rn(n,E),Pe=O.useCallback(me=>{_e.current=me,me&&He(me)},[]),ze=Ue?.parentNode;O.useImperativeHandle(xe,()=>({focus:()=>{_e.current.focus()},node:D.current,value:oe}),[oe]),O.useEffect(()=>{l&&De&&Ue&&!qe&&(We(s?null:ze.clientWidth),_e.current.focus())},[Ue,s]),O.useEffect(()=>{a&&_e.current.focus()},[a]),O.useEffect(()=>{if(!C)return;const me=Tn(_e.current).getElementById(C);if(me){const ke=()=>{getSelection().isCollapsed&&_e.current.focus()};return me.addEventListener("click",ke),()=>{me.removeEventListener("click",ke)}}},[C]);const dt=(me,ke)=>{me?U&&U(ke):k&&k(ke),qe||(We(s?null:ze.clientWidth),Ae(me))},Oe=me=>{me.button===0&&(me.preventDefault(),_e.current.focus(),dt(!0,me))},Xe=me=>{dt(!1,me)},Pt=O.Children.toArray(o),Ot=me=>{const ke=Pt.find(tt=>tt.props.value===me.target.value);ke!==void 0&&(I(ke.props.value),P&&P(me,ke))},wt=me=>ke=>{let tt;if(ke.currentTarget.hasAttribute("tabindex")){if(S){tt=Array.isArray(oe)?oe.slice():[];const Mt=oe.indexOf(me.props.value);Mt===-1?tt.push(me.props.value):tt.splice(Mt,1)}else tt=me.props.value;if(me.props.onClick&&me.props.onClick(ke),oe!==tt&&(I(tt),P)){const Mt=ke.nativeEvent||ke,F0=new Mt.constructor(Mt.type,Mt);Object.defineProperty(F0,"target",{writable:!0,value:{value:tt,name:v}}),P(F0,me)}S||dt(!1,ke)}},Vt=me=>{B||[" ","ArrowUp","ArrowDown","Enter"].includes(me.key)&&(me.preventDefault(),dt(!0,me))},Qt=Ue!==null&&De,kt=me=>{!Qt&&_&&(Object.defineProperty(me,"target",{writable:!0,value:{value:oe,name:v}}),_(me))};delete fe["aria-invalid"];let xn,er;const Nt=[];let tr=!1;(j1({value:oe})||m)&&(K?xn=K(oe):tr=!0);const G=Pt.map(me=>{if(!O.isValidElement(me))return null;let ke;if(S){if(!Array.isArray(oe))throw new Error(_1(2));ke=oe.some(tt=>uc(tt,me.props.value)),ke&&tr&&Nt.push(me.props.children)}else ke=uc(oe,me.props.value),ke&&tr&&(er=me.props.children);return O.cloneElement(me,{"aria-selected":ke?"true":"false",onClick:wt(me),onKeyUp:tt=>{tt.key===" "&&tt.preventDefault(),me.props.onKeyUp&&me.props.onKeyUp(tt)},role:"option",selected:ke,value:void 0,"data-value":me.props.value})});tr&&(S?Nt.length===0?xn=null:xn=Nt.reduce((me,ke,tt)=>(me.push(ke),tt{const{classes:t}=e,r=je({root:["root"]},rf,t);return{...t,...r}},fl={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Dn(e)&&e!=="variant"},Vg=ue(K1,fl)(""),jg=ue(nf,fl)(""),qg=ue(G1,fl)(""),af=O.forwardRef(function(t,n){const r=Ke({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:s={},className:o,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=H3,id:d,input:m,inputProps:p,label:b,labelId:E,MenuProps:C,multiple:T=!1,native:S=!1,onClose:v,onOpen:_,open:P,renderValue:k,SelectDisplayProps:V,variant:U="outlined",...q}=r,B=S?kg:zg,K=cl(),Y=ll({props:r,muiFormControl:K,states:["variant","error"]}),X=Y.variant||U,j={...r,variant:X,classes:s},W=Ug(j),{root:ne,...le}=W,fe=m||{standard:L.jsx(Vg,{ownerState:j}),outlined:L.jsx(jg,{label:b,ownerState:j}),filled:L.jsx(qg,{ownerState:j})}[X],oe=rn(n,ma(fe));return L.jsx(O.Fragment,{children:O.cloneElement(fe,{inputComponent:B,inputProps:{children:a,error:Y.error,IconComponent:c,variant:X,type:void 0,multiple:T,...S?{id:d}:{autoWidth:i,defaultOpen:u,displayEmpty:l,labelId:E,MenuProps:C,onClose:v,onOpen:_,open:P,renderValue:k,SelectDisplayProps:{id:d,...V}},...p,classes:p?sl(le,p.classes):le,...m?m.props.inputProps:{}},...(T&&S||l)&&X==="outlined"?{notched:!0}:{},ref:oe,className:Be(fe.props.className,o,W.root),...!m&&{variant:X},...q})})});af.muiName="Select";function $g(e){return pt("MuiSkeleton",e)}ut("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Wg=e=>{const{classes:t,variant:n,animation:r,hasChildren:i,width:a,height:s}=e;return je({root:["root",n,r,i&&"withChildren",i&&!a&&"fitContent",i&&!s&&"heightAuto"]},$g,t)},cu=O1` 0% { opacity: 1; } @@ -12,7 +12,7 @@ import{x as $4,y as W4,r as O,z as Y4,C as G4,j as L,c as Be,_ as K4,R as Ma,D a 100% { opacity: 1; } -`,du=P1` +`,du=O1` 0% { transform: translateX(-100%); } @@ -25,101 +25,101 @@ import{x as $4,y as W4,r as O,z as Y4,C as G4,j as L,c as Be,_ as K4,R as Ma,D a 100% { transform: translateX(100%); } -`,Wg=typeof cu!="string"?L1` +`,Yg=typeof cu!="string"?P1` animation: ${cu} 2s ease-in-out 0.5s infinite; - `:null,Yg=typeof du!="string"?L1` + `:null,Gg=typeof du!="string"?P1` &::after { animation: ${du} 2s linear 0.5s infinite; } - `:null,Gg=ue("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(vt(({theme:e})=>{const t=A3(e.shape.borderRadius)||"px",n=C3(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:Wg||{animation:`${cu} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient( + `:null,Kg=ue("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(vt(({theme:e})=>{const t=C3(e.shape.borderRadius)||"px",n=w3(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:Yg||{animation:`${cu} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient( 90deg, transparent, ${(e.vars||e).palette.action.hover}, transparent - )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Yg||{"&::after":{animation:`${du} 2s linear 0.5s infinite`}}}]}})),lc=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiSkeleton"}),{animation:i="pulse",className:a,component:s="span",height:o,style:u,variant:l="text",width:c,...d}=r,m={...r,animation:i,component:s,variant:l,hasChildren:!!d.children},p=$g(m);return L.jsx(Gg,{as:s,ref:n,className:Be(p.root,a),ownerState:m,...d,style:{width:c,height:o,...u}})}),af=O.createContext();function Kg(e){return pt("MuiTable",e)}ut("MuiTable",["root","stickyHeader"]);const Xg=e=>{const{classes:t,stickyHeader:n}=e;return je({root:["root",n&&"stickyHeader"]},Kg,t)},Qg=ue("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(vt(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),cc="table",Zg=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTable"}),{className:i,component:a=cc,padding:s="normal",size:o="medium",stickyHeader:u=!1,...l}=r,c={...r,component:a,padding:s,size:o,stickyHeader:u},d=Xg(c),m=O.useMemo(()=>({padding:s,size:o,stickyHeader:u}),[s,o,u]);return L.jsx(af.Provider,{value:m,children:L.jsx(Qg,{as:a,role:a===cc?null:"table",ref:n,className:Be(d.root,i),ownerState:c,...l})})}),Ps=O.createContext();function Jg(e){return pt("MuiTableBody",e)}ut("MuiTableBody",["root"]);const e5=e=>{const{classes:t}=e;return je({root:["root"]},Jg,t)},t5=ue("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),n5={variant:"body"},dc="tbody",r5=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableBody"}),{className:i,component:a=dc,...s}=r,o={...r,component:a},u=e5(o);return L.jsx(Ps.Provider,{value:n5,children:L.jsx(t5,{className:Be(u.root,i),as:a,ref:n,role:a===dc?null:"rowgroup",ownerState:o,...s})})}),i5=e=>{const{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:s}=e,o={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${Tt(r)}`,i!=="normal"&&`padding${Tt(i)}`,`size${Tt(a)}`]};return je(o,b3,t)},a5=ue("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Tt(n.size)}`],n.padding!=="normal"&&t[`padding${Tt(n.padding)}`],n.align!=="inherit"&&t[`align${Tt(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(vt(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${y3.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),hc=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:s,padding:o,scope:u,size:l,sortDirection:c,variant:d,...m}=r,p=O.useContext(af),b=O.useContext(Ps),E=b&&b.variant==="head";let C;s?C=s:C=E?"th":"td";let T=u;C==="td"?T=void 0:!T&&E&&(T="col");const S=d||b&&b.variant,v={...r,align:i,component:C,padding:o||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:S==="head"&&p&&p.stickyHeader,variant:S},_=i5(v);let P=null;return c&&(P=c==="asc"?"ascending":"descending"),L.jsx(a5,{as:C,ref:n,className:Be(_.root,a),"aria-sort":P,scope:T,ownerState:v,...m})});function s5(e){return pt("MuiTableContainer",e)}ut("MuiTableContainer",["root"]);const o5=e=>{const{classes:t}=e;return je({root:["root"]},s5,t)},u5=ue("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),l5=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableContainer"}),{className:i,component:a="div",...s}=r,o={...r,component:a},u=o5(o);return L.jsx(u5,{ref:n,as:a,className:Be(u.root,i),ownerState:o,...s})});function c5(e){return pt("MuiTableHead",e)}ut("MuiTableHead",["root"]);const d5=e=>{const{classes:t}=e;return je({root:["root"]},c5,t)},h5=ue("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),f5={variant:"head"},fc="thead",m5=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableHead"}),{className:i,component:a=fc,...s}=r,o={...r,component:a},u=d5(o);return L.jsx(Ps.Provider,{value:f5,children:L.jsx(h5,{as:a,className:Be(u.root,i),ref:n,role:a===fc?null:"rowgroup",ownerState:o,...s})})}),p5=e=>{const{classes:t,selected:n,hover:r,head:i,footer:a}=e;return je({root:["root",n&&"selected",r&&"hover",i&&"head",a&&"footer"]},T3,t)},g5=ue("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(vt(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${V0.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${V0.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),mc="tr",b5=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableRow"}),{className:i,component:a=mc,hover:s=!1,selected:o=!1,...u}=r,l=O.useContext(Ps),c={...r,component:a,hover:s,selected:o,head:l&&l.variant==="head",footer:l&&l.variant==="footer"},d=p5(c);return L.jsx(g5,{as:a,ref:n,className:Be(d.root,i),role:a===mc?null:"row",ownerState:c,...u})});/** + )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Gg||{"&::after":{animation:`${du} 2s linear 0.5s infinite`}}}]}})),lc=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiSkeleton"}),{animation:i="pulse",className:a,component:s="span",height:o,style:u,variant:l="text",width:c,...d}=r,m={...r,animation:i,component:s,variant:l,hasChildren:!!d.children},p=Wg(m);return L.jsx(Kg,{as:s,ref:n,className:Be(p.root,a),ownerState:m,...d,style:{width:c,height:o,...u}})}),sf=O.createContext();function Xg(e){return pt("MuiTable",e)}ut("MuiTable",["root","stickyHeader"]);const Qg=e=>{const{classes:t,stickyHeader:n}=e;return je({root:["root",n&&"stickyHeader"]},Xg,t)},Zg=ue("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(vt(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),cc="table",Jg=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTable"}),{className:i,component:a=cc,padding:s="normal",size:o="medium",stickyHeader:u=!1,...l}=r,c={...r,component:a,padding:s,size:o,stickyHeader:u},d=Qg(c),m=O.useMemo(()=>({padding:s,size:o,stickyHeader:u}),[s,o,u]);return L.jsx(sf.Provider,{value:m,children:L.jsx(Zg,{as:a,role:a===cc?null:"table",ref:n,className:Be(d.root,i),ownerState:c,...l})})}),Ps=O.createContext();function e5(e){return pt("MuiTableBody",e)}ut("MuiTableBody",["root"]);const t5=e=>{const{classes:t}=e;return je({root:["root"]},e5,t)},n5=ue("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),r5={variant:"body"},dc="tbody",i5=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableBody"}),{className:i,component:a=dc,...s}=r,o={...r,component:a},u=t5(o);return L.jsx(Ps.Provider,{value:r5,children:L.jsx(n5,{className:Be(u.root,i),as:a,ref:n,role:a===dc?null:"rowgroup",ownerState:o,...s})})}),a5=e=>{const{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:s}=e,o={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${Tt(r)}`,i!=="normal"&&`padding${Tt(i)}`,`size${Tt(a)}`]};return je(o,y3,t)},s5=ue("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Tt(n.size)}`],n.padding!=="normal"&&t[`padding${Tt(n.padding)}`],n.align!=="inherit"&&t[`align${Tt(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(vt(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${T3.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),hc=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:s,padding:o,scope:u,size:l,sortDirection:c,variant:d,...m}=r,p=O.useContext(sf),b=O.useContext(Ps),E=b&&b.variant==="head";let C;s?C=s:C=E?"th":"td";let T=u;C==="td"?T=void 0:!T&&E&&(T="col");const S=d||b&&b.variant,v={...r,align:i,component:C,padding:o||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:S==="head"&&p&&p.stickyHeader,variant:S},_=a5(v);let P=null;return c&&(P=c==="asc"?"ascending":"descending"),L.jsx(s5,{as:C,ref:n,className:Be(_.root,a),"aria-sort":P,scope:T,ownerState:v,...m})});function o5(e){return pt("MuiTableContainer",e)}ut("MuiTableContainer",["root"]);const u5=e=>{const{classes:t}=e;return je({root:["root"]},o5,t)},l5=ue("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),c5=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableContainer"}),{className:i,component:a="div",...s}=r,o={...r,component:a},u=u5(o);return L.jsx(l5,{ref:n,as:a,className:Be(u.root,i),ownerState:o,...s})});function d5(e){return pt("MuiTableHead",e)}ut("MuiTableHead",["root"]);const h5=e=>{const{classes:t}=e;return je({root:["root"]},d5,t)},f5=ue("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),m5={variant:"head"},fc="thead",p5=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableHead"}),{className:i,component:a=fc,...s}=r,o={...r,component:a},u=h5(o);return L.jsx(Ps.Provider,{value:m5,children:L.jsx(f5,{as:a,className:Be(u.root,i),ref:n,role:a===fc?null:"rowgroup",ownerState:o,...s})})}),g5=e=>{const{classes:t,selected:n,hover:r,head:i,footer:a}=e;return je({root:["root",n&&"selected",r&&"hover",i&&"head",a&&"footer"]},E3,t)},b5=ue("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(vt(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${V0.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${V0.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),mc="tr",y5=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableRow"}),{className:i,component:a=mc,hover:s=!1,selected:o=!1,...u}=r,l=O.useContext(Ps),c={...r,component:a,hover:s,selected:o,head:l&&l.variant==="head",footer:l&&l.variant==="footer"},d=g5(c);return L.jsx(b5,{as:a,ref:n,className:Be(d.root,i),role:a===mc?null:"row",ownerState:c,...u})});/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const y5=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],T5=_n("outline","check","Check",y5);/** + */const T5=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],E5=_n("outline","check","Check",T5);/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const E5=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M9 12h6",key:"svg-1"}],["path",{d:"M12 9v6",key:"svg-2"}]],x5=_n("outline","circle-plus","CirclePlus",E5);/** + */const x5=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M9 12h6",key:"svg-1"}],["path",{d:"M12 9v6",key:"svg-2"}]],v5=_n("outline","circle-plus","CirclePlus",x5);/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const v5=[["path",{d:"M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z",key:"svg-1"}],["path",{d:"M4.012 16.737a2 2 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-2"}],["path",{d:"M11 14l2 2l4 -4",key:"svg-3"}]],sf=_n("outline","copy-check","CopyCheck",v5);/** + */const S5=[["path",{d:"M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z",key:"svg-1"}],["path",{d:"M4.012 16.737a2 2 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-2"}],["path",{d:"M11 14l2 2l4 -4",key:"svg-3"}]],of=_n("outline","copy-check","CopyCheck",S5);/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const S5=[["path",{d:"M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z",key:"svg-0"}],["path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-1"}]],of=_n("outline","copy","Copy",S5);/** + */const A5=[["path",{d:"M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z",key:"svg-0"}],["path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-1"}]],uf=_n("outline","copy","Copy",A5);/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const A5=[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M9 4v16",key:"svg-1"}],["path",{d:"M15 10l-2 2l2 2",key:"svg-2"}]],C5=_n("outline","layout-sidebar-left-collapse","LayoutSidebarLeftCollapse",A5);/** + */const C5=[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M9 4v16",key:"svg-1"}],["path",{d:"M15 10l-2 2l2 2",key:"svg-2"}]],w5=_n("outline","layout-sidebar-left-collapse","LayoutSidebarLeftCollapse",C5);/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const w5=[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M9 4v16",key:"svg-1"}],["path",{d:"M14 10l2 2l-2 2",key:"svg-2"}]],k5=_n("outline","layout-sidebar-left-expand","LayoutSidebarLeftExpand",w5);/** + */const k5=[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M9 4v16",key:"svg-1"}],["path",{d:"M14 10l2 2l-2 2",key:"svg-2"}]],I5=_n("outline","layout-sidebar-left-expand","LayoutSidebarLeftExpand",k5);/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const I5=[["path",{d:"M12 6l0 -3",key:"svg-0"}],["path",{d:"M16.25 7.75l2.15 -2.15",key:"svg-1"}],["path",{d:"M18 12l3 0",key:"svg-2"}],["path",{d:"M16.25 16.25l2.15 2.15",key:"svg-3"}],["path",{d:"M12 18l0 3",key:"svg-4"}],["path",{d:"M7.75 16.25l-2.15 2.15",key:"svg-5"}],["path",{d:"M6 12l-3 0",key:"svg-6"}],["path",{d:"M7.75 7.75l-2.15 -2.15",key:"svg-7"}]],N5=_n("outline","loader","Loader",I5);/** + */const N5=[["path",{d:"M12 6l0 -3",key:"svg-0"}],["path",{d:"M16.25 7.75l2.15 -2.15",key:"svg-1"}],["path",{d:"M18 12l3 0",key:"svg-2"}],["path",{d:"M16.25 16.25l2.15 2.15",key:"svg-3"}],["path",{d:"M12 18l0 3",key:"svg-4"}],["path",{d:"M7.75 16.25l-2.15 2.15",key:"svg-5"}],["path",{d:"M6 12l-3 0",key:"svg-6"}],["path",{d:"M7.75 7.75l-2.15 -2.15",key:"svg-7"}]],M5=_n("outline","loader","Loader",N5);/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const M5=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]],R5=_n("outline","plus","Plus",M5);/** + */const R5=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]],D5=_n("outline","plus","Plus",R5);/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const D5=[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]],_5=_n("outline","refresh","Refresh",D5);/** + */const _5=[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]],L5=_n("outline","refresh","Refresh",_5);/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const L5=[["path",{d:"M7 3.34a10 10 0 1 1 -4.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 4.995 -8.336z",key:"svg-0"}]],P5=_n("filled","circle-filled","CircleFilled",L5),O5={primary:Ja,secondary:Ja,info:Ja,error:q0,warning:q0,success:x3},B5=e=>{const{open:t,onClose:n=()=>{},titleId:r,title:i,contentId:a,content:s,color:o="primary",titleIconColor:u="warning",titleIcon:l=!0,cancelLabel:c,onCancel:d=()=>{},confirmLabel:m,onConfirm:p=()=>{},submitLabel:b,onSubmitValid:E,onSubmitInvalid:C,handleSubmit:T,secondaryAction:S,...v}=e,_=O5[o],[P,k]=O.useState(!1),V=Y=>!(Y===!1||typeof Y=="object"&&Y.closeDialog===!1),U=Y=>async(...X)=>{if(!P)try{const j=Y(...X);if(j instanceof Promise){k(!0);const W=await j;k(!1),V(W)&&n()}else V(j)&&n()}catch(j){k(!1),console.error("Error in dialog action:",j)}};let q;const B=[];c&&B.push({key:"cancel",children:c,color:"secondary",onClick:U(d),loading:P}),m&&B.push({key:"confirm",children:m,color:o,onClick:U(p),loading:P}),b&&(B.push({key:"submit",children:b,type:"submit",loading:P}),T&&E&&(q={onSubmit:Y=>{Y.preventDefault(),Y.stopPropagation(),!P&&(k(!0),T(async(...X)=>{try{const j=await E(...X);k(!1),V(j)&&n()}catch(j){k(!1),console.error("Error in form submission:",j)}},async(...X)=>{try{await C?.(...X)}catch(j){console.error("Error in form validation:",j)}finally{k(!1)}})())}}));const K=()=>{P||n()};return L.jsxs(g6,{open:t,onClose:K,"aria-labelledby":r,"aria-describedby":a,...v,component:q&&"form"||void 0,...q,children:[L.jsxs(M6,{id:!_&&r||void 0,children:[l==="form"&&L.jsx(E3,{})||l===!0&&L.jsx(j0,{variant:"circle",color:u,children:L.jsx(_,{})})||L.jsx(j0,{variant:"circle",color:u,children:l})||void 0,!l&&i,L.jsx(ul,{size:"small",onClick:K,children:L.jsx(O1,{size:"1.25rem"})})]}),L.jsxs(S6,{children:[l&&L.jsx(Ve,{variant:"subtitle1",id:r,children:i}),L.jsx(k6,{id:a,children:s})]}),B.length>0&&L.jsxs(E6,{children:[L.jsx(ci,{mr:"auto",children:S}),B.map(Y=>O.createElement(ls,{...Y,key:Y.key,...B.length===1&&{fullWidth:!0}}))]})]})},so=(e,t)=>{const[n,r]=O.useState(!1),i=L.jsx(B5,{...e,open:n,onClose:()=>{r(!1),e.onClose?.()}}),a=O.useMemo(()=>({open:()=>r(!0),close:()=>r(!1)}),[]);return[i,a]},F5=()=>L.jsxs("svg",{width:"130",height:"30",viewBox:"0 0 130 30",fill:"currentColor",children:[L.jsx("path",{d:"M26.2097 15.5517C26.2097 10.4948 29.0713 7.95158 32.7786 7.95158C35.4147 7.95158 36.7961 9.20112 37.4445 10.2889H37.7265V8.28969H40.1369V22.6814C40.1369 27.018 37.952 29.5024 33.3848 29.5024C28.9162 29.5024 26.83 27.1356 26.5903 24.6071V24.1661H28.888C29.029 25.9302 30.2836 27.5325 33.3425 27.5325C36.4155 27.5325 37.656 25.8861 37.656 22.7843V20.9026H37.3741C36.6833 21.9758 35.3442 23.1371 32.7786 23.1371C29.0713 23.1371 26.2097 20.6086 26.2097 15.5517ZM28.7189 15.5517C28.7189 19.1386 30.5373 21.1084 33.2297 21.1084C35.9221 21.1084 37.7406 19.1386 37.7406 15.5517C37.7406 11.9648 35.9221 9.99494 33.2297 9.99494C30.5373 9.99494 28.7189 11.9648 28.7189 15.5517ZM43.7132 23.2694V8.28969H46.1237V10.4065H46.4056C47.0118 9.12762 48.1958 7.84868 51.142 8.15739V10.3918C48.1677 10.0684 46.1942 11.1563 46.1942 14.9196V23.2694H43.7132ZM55.1754 12.6116H52.8776V12.1706C53.1737 9.55393 55.4714 7.93688 58.925 7.93688C62.3786 7.93688 64.6481 9.55393 64.6481 13.2878V20.2264C64.6481 20.9908 65.0005 21.373 65.7336 21.373H66.537V23.2694H65.3248C63.5909 23.2694 62.7592 22.3433 62.6746 20.9467H62.3927C61.6456 22.3874 60.2501 23.5928 57.3885 23.5928C54.3014 23.5928 52.1446 21.7847 52.1446 19.0945C52.1446 16.1544 54.3437 14.9343 57.1348 14.655L60.4615 14.3316C61.6456 14.214 62.2799 13.8758 62.2799 12.7292C62.2799 10.8182 61.0536 9.86263 58.8827 9.86263C56.7119 9.86263 55.2599 10.7888 55.1754 12.6116ZM54.5974 19.0063C54.5974 20.6086 55.8802 21.667 57.7832 21.667C60.0668 21.667 62.294 20.2705 62.294 16.6542V15.6546H62.0121C61.5751 15.9339 61.1522 16.0956 59.8836 16.2279L57.6986 16.4484C55.7251 16.6689 54.5974 17.3745 54.5974 19.0063ZM81.7299 2.10083V23.2694H79.3194V21.1378H79.0375C78.3747 22.3433 76.951 23.6075 74.2304 23.6075C70.4948 23.6075 67.6333 20.9614 67.6333 15.7869C67.6333 10.5977 70.4948 7.95158 74.2304 7.95158C76.951 7.95158 78.3324 9.21582 78.9668 10.3183H79.2489V2.10083H81.7299ZM79.3335 15.7869C79.3335 12.053 77.4726 9.99494 74.7379 9.99494C72.0032 9.99494 70.1424 12.053 70.1424 15.7869C70.1424 19.5061 72.0032 21.5641 74.7379 21.5641C77.4726 21.5641 79.3335 19.5061 79.3335 15.7869ZM85.2595 5.57012V2.48304H87.8109V5.57012H85.2595ZM85.3018 23.2694V8.28969H87.7827V23.2694H85.3018ZM90.4861 15.7722C90.4861 10.6859 93.1503 7.93688 97.3651 7.93688C101.608 7.93688 103.906 10.7153 103.906 15.1254V16.3308H92.8966C92.953 19.6237 94.6022 21.667 97.3651 21.667C99.9871 21.667 101.157 20.0206 101.383 18.58H103.596V19.021C103.286 20.8585 101.679 23.6222 97.3792 23.6222C93.1644 23.6222 90.4861 20.8732 90.4861 15.7722ZM92.9389 14.4492H101.524C101.495 11.7149 100.114 9.89204 97.351 9.89204C94.6445 9.89204 93.1362 11.7443 92.9389 14.4492ZM106.613 23.2694V8.28969H109.024V10.4065H109.306C109.785 9.45102 110.997 7.95158 113.957 7.95158C117.115 7.95158 119.201 9.75973 119.201 13.1996V23.2694H116.72V13.376C116.72 11.024 115.381 9.98024 113.365 9.98024C111.068 9.98024 109.094 11.5091 109.094 14.6256V23.2694H106.613ZM120.923 10.186V8.28969H123.784V4.15888H126.251V8.28969H129.564V10.186H126.251V19.9618C126.251 20.7997 126.617 21.2701 127.52 21.2701H129.479V23.2694H127.069C124.968 23.2694 123.784 22.1816 123.784 20.0059V10.186H120.923Z"}),L.jsx("path",{d:"M18.0703 2.45142L10.571 23.4436H7.5481L15.0474 2.45142H18.0703Z"}),L.jsx("path",{d:"M0 23.6859V20.4192H3.13253V23.6859H0Z"})]}),H5=()=>L.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("path",{d:"M18.8379 5.25L13.7788 18.8297H11.2112L16.2703 5.25H18.8379Z",fill:"currentColor"}),L.jsx("path",{d:"M5.0625 18.8297V15.8246H7.97243V18.8297H5.0625Z",fill:"currentColor"})]}),z5=ue(rf)(({theme:e})=>{const{spacing:t}=e;return{height:"4rem"}}),U5=ue(xg)(({theme:e})=>{const{spacing:t}=e;return{height:"3.25rem",gap:"0.5rem"}}),V5=ue("img")(({theme:e})=>{const{palette:t}=e;return{width:"2.25rem",height:"2.25rem",borderRadius:"0.5rem",border:`1px solid ${t.divider}`,objectFit:"cover"}}),j5=ue("span")(({theme:e})=>{const{palette:t,typography:n}=e;return{...n.subtitle2,fontWeight:n.fontWeightLight,color:t.text.primary}}),q5=ue("span")(({theme:e})=>{const{palette:t,typography:n}=e;return{...n.body2,fontWeight:n.fontWeightLight,color:t.text.secondary}}),pc=(e,t)=>L.jsxs(U5,{value:e.name,children:[L.jsx(V5,{src:e.logoUrl}),L.jsxs(Je,{gap:.25,children:[L.jsx(j5,{children:e.displayName}),L.jsx(q5,{children:e.name})]})]},e.name),_R=()=>{const[{modelName:e,modelInfoList:t},{setModelName:n}]=fa();return L.jsx(z5,{value:e,onChange:r=>n(String(r.target.value)),renderValue:r=>{const i=t.find(a=>a.name===r);return i&&pc(i)||void 0},children:t.map(r=>pc(r,r.name===e))})},$5={"linux/mac":"Linux/MacOS",windows:"Windows"},W5=ue("div")(({theme:e})=>{const{palette:t,spacing:n}=e;return{display:"flex",flexFlow:"row nowrap",justifyContent:"space-between",alignItems:"center",paddingInline:n(2),paddingBlock:n(1.5),gap:n(1),overflow:"hidden",borderRadius:"0.7rem",backgroundColor:t.background.area}}),gc=()=>{const[{clusterInfo:{nodeJoinCommand:e}}]=fa(),[t,n]=O.useState();O.useEffect(()=>{if(t){const i=setTimeout(()=>{n(void 0)},2e3);return()=>clearTimeout(i)}},[t]);const r=cs(async i=>{await navigator.clipboard.writeText(e[i]),n(i)});return L.jsx(Je,{gap:1,children:Object.entries(e).map(([i,a])=>L.jsxs(Je,{gap:1,children:[L.jsxs(Ve,{variant:"subtitle2",children:["For ",$5[i]||i,":"]}),L.jsxs(W5,{children:[L.jsx(Ve,{sx:{flex:1,lineHeight:"1.125rem",whiteSpace:"wrap"},variant:"pre",children:a}),L.jsx(ul,{sx:{flex:"none",fontSize:"1.5rem"},size:"em",onClick:()=>r(i),children:t===i&&L.jsx(sf,{})||L.jsx(of,{})})]})]},i))})};function ml(e,t){e.indexOf(t)===-1&&e.push(t)}function pl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Yn=(e,t,n)=>n>t?t:n{};const Gn={},uf=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function lf(e){return typeof e=="object"&&e!==null}const cf=e=>/^0[^.\s]+$/u.test(e);function bl(e){let t;return()=>(t===void 0&&(t=e()),t)}const dn=e=>e,Y5=(e,t)=>n=>t(e(n)),pa=(...e)=>e.reduce(Y5),ta=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class yl{constructor(){this.subscriptions=[]}add(t){return ml(this.subscriptions,t),()=>pl(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;ae*1e3,Mn=e=>e/1e3;function df(e,t){return t?e*(1e3/t):0}const hf=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,G5=1e-7,K5=12;function X5(e,t,n,r,i){let a,s,o=0;do s=t+(n-t)/2,a=hf(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>G5&&++oX5(a,0,1,e,n);return a=>a===0||a===1?a:hf(i(a),t,r)}const ff=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,mf=e=>t=>1-e(1-t),pf=ga(.33,1.53,.69,.99),Tl=mf(pf),gf=ff(Tl),bf=e=>(e*=2)<1?.5*Tl(e):.5*(2-Math.pow(2,-10*(e-1))),El=e=>1-Math.sin(Math.acos(e)),yf=mf(El),Tf=ff(El),Q5=ga(.42,0,1,1),Z5=ga(0,0,.58,1),Ef=ga(.42,0,.58,1),J5=e=>Array.isArray(e)&&typeof e[0]!="number",xf=e=>Array.isArray(e)&&typeof e[0]=="number",e7={linear:dn,easeIn:Q5,easeInOut:Ef,easeOut:Z5,circIn:El,circInOut:Tf,circOut:yf,backIn:Tl,backInOut:gf,backOut:pf,anticipate:bf},t7=e=>typeof e=="string",bc=e=>{if(xf(e)){gl(e.length===4);const[t,n,r,i]=e;return ga(t,n,r,i)}else if(t7(e))return e7[e];return e},vf=O.createContext({}),Sf=O.createContext({strict:!1}),Af=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Os=O.createContext({});function Bs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function na(e){return typeof e=="string"||Array.isArray(e)}const xl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],vl=["initial",...xl];function Fs(e){return Bs(e.animate)||vl.some(t=>na(e[t]))}function Cf(e){return!!(Fs(e)||e.variants)}function n7(e,t){if(Fs(e)){const{initial:n,animate:r}=e;return{initial:n===!1||na(n)?n:void 0,animate:na(r)?r:void 0}}return e.inherit!==!1?t:{}}function r7(e){const{initial:t,animate:n}=n7(e,O.useContext(Os));return O.useMemo(()=>({initial:t,animate:n}),[yc(t),yc(n)])}function yc(e){return Array.isArray(e)?e.join(" "):e}const Pa=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function i7(e,t){let n=new Set,r=new Set,i=!1,a=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function u(c){s.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,d=!1,m=!1)=>{const b=m&&i?n:r;return d&&s.add(c),b.has(c)||b.add(c),c},cancel:c=>{r.delete(c),s.delete(c)},process:c=>{if(o=c,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),n.clear(),i=!1,a&&(a=!1,l.process(c))}};return l}const a7=40;function wf(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=Pa.reduce((v,_)=>(v[_]=i7(a),v),{}),{setup:o,read:u,resolveKeyframes:l,preUpdate:c,update:d,preRender:m,render:p,postRender:b}=s,E=()=>{const v=Gn.useManualTiming?i.timestamp:performance.now();n=!1,Gn.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(v-i.timestamp,a7),1)),i.timestamp=v,i.isProcessing=!0,o.process(i),u.process(i),l.process(i),c.process(i),d.process(i),m.process(i),p.process(i),b.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(E))},C=()=>{n=!0,r=!0,i.isProcessing||e(E)};return{schedule:Pa.reduce((v,_)=>{const P=s[_];return v[_]=(k,V=!1,U=!1)=>(n||C(),P.schedule(k,V,U)),v},{}),cancel:v=>{for(let _=0;_(es===void 0&&Gt.set(It.isProcessing||Gn.useManualTiming?It.timestamp:performance.now()),es),set:e=>{es=e,queueMicrotask(s7)}},kf=e=>t=>typeof t=="string"&&t.startsWith(e),Sl=kf("--"),o7=kf("var(--"),Al=e=>o7(e)?u7.test(e.split("/*")[0].trim()):!1,u7=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,di={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ra={...di,transform:e=>Yn(0,1,e)},Oa={...di,default:1},Hi=e=>Math.round(e*1e5)/1e5,Cl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function l7(e){return e==null}const c7=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,wl=(e,t)=>n=>!!(typeof n=="string"&&c7.test(n)&&n.startsWith(e)||t&&!l7(n)&&Object.prototype.hasOwnProperty.call(n,t)),If=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,o]=r.match(Cl);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},d7=e=>Yn(0,255,e),uo={...di,transform:e=>Math.round(d7(e))},Nr={test:wl("rgb","red"),parse:If("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+uo.transform(e)+", "+uo.transform(t)+", "+uo.transform(n)+", "+Hi(ra.transform(r))+")"};function h7(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const hu={test:wl("#"),parse:h7,transform:Nr.transform},ba=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),sr=ba("deg"),Rn=ba("%"),Ee=ba("px"),f7=ba("vh"),m7=ba("vw"),Tc={...Rn,parse:e=>Rn.parse(e)/100,transform:e=>Rn.transform(e*100)},Kr={test:wl("hsl","hue"),parse:If("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Rn.transform(Hi(t))+", "+Rn.transform(Hi(n))+", "+Hi(ra.transform(r))+")"},yt={test:e=>Nr.test(e)||hu.test(e)||Kr.test(e),parse:e=>Nr.test(e)?Nr.parse(e):Kr.test(e)?Kr.parse(e):hu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Nr.transform(e):Kr.transform(e),getAnimatableNone:e=>{const t=yt.parse(e);return t.alpha=0,yt.transform(t)}},p7=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function g7(e){return isNaN(e)&&typeof e=="string"&&(e.match(Cl)?.length||0)+(e.match(p7)?.length||0)>0}const Nf="number",Mf="color",b7="var",y7="var(",Ec="${}",T7=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ia(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(T7,u=>(yt.test(u)?(r.color.push(a),i.push(Mf),n.push(yt.parse(u))):u.startsWith(y7)?(r.var.push(a),i.push(b7),n.push(u)):(r.number.push(a),i.push(Nf),n.push(parseFloat(u))),++a,Ec)).split(Ec);return{values:n,split:o,indexes:r,types:i}}function Rf(e){return ia(e).values}function Df(e){const{split:t,types:n}=ia(e),r=t.length;return i=>{let a="";for(let s=0;stypeof e=="number"?0:yt.test(e)?yt.getAnimatableNone(e):e;function x7(e){const t=Rf(e);return Df(e)(t.map(E7))}const fr={test:g7,parse:Rf,createTransformer:Df,getAnimatableNone:x7};function lo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function v7({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,u=2*n-o;i=lo(u,o,e+1/3),a=lo(u,o,e),s=lo(u,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function hs(e,t){return n=>n>0?t:e}const ot=(e,t,n)=>e+(t-e)*n,co=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},S7=[hu,Nr,Kr],A7=e=>S7.find(t=>t.test(e));function xc(e){const t=A7(e);if(!t)return!1;let n=t.parse(e);return t===Kr&&(n=v7(n)),n}const vc=(e,t)=>{const n=xc(e),r=xc(t);if(!n||!r)return hs(e,t);const i={...n};return a=>(i.red=co(n.red,r.red,a),i.green=co(n.green,r.green,a),i.blue=co(n.blue,r.blue,a),i.alpha=ot(n.alpha,r.alpha,a),Nr.transform(i))},fu=new Set(["none","hidden"]);function C7(e,t){return fu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function w7(e,t){return n=>ot(e,t,n)}function kl(e){return typeof e=="number"?w7:typeof e=="string"?Al(e)?hs:yt.test(e)?vc:N7:Array.isArray(e)?_f:typeof e=="object"?yt.test(e)?vc:k7:hs}function _f(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>kl(a)(a,t[s]));return a=>{for(let s=0;s{for(const a in r)n[a]=r[a](i);return n}}function I7(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=fr.createTransformer(t),r=ia(e),i=ia(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?fu.has(e)&&!i.values.length||fu.has(t)&&!r.values.length?C7(e,t):pa(_f(I7(r,i),i.values),n):hs(e,t)};function Lf(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ot(e,t,n):kl(e)(e,t)}const M7=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>rt.update(t,n),stop:()=>hr(t),now:()=>It.isProcessing?It.timestamp:Gt.now()}},Pf=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a=fs?1/0:t}function R7(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Il(r),fs);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:Mn(i)}}const D7=5;function Of(e,t,n){const r=Math.max(t-D7,0);return df(n-e(r),t-r)}const ct={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ho=.001;function _7({duration:e=ct.duration,bounce:t=ct.bounce,velocity:n=ct.velocity,mass:r=ct.mass}){let i,a,s=1-t;s=Yn(ct.minDamping,ct.maxDamping,s),e=Yn(ct.minDuration,ct.maxDuration,Mn(e)),s<1?(i=l=>{const c=l*s,d=c*e,m=c-n,p=mu(l,s),b=Math.exp(-d);return ho-m/p*b},a=l=>{const d=l*s*e,m=d*n+n,p=Math.pow(s,2)*Math.pow(l,2)*e,b=Math.exp(-d),E=mu(Math.pow(l,2),s);return(-i(l)+ho>0?-1:1)*((m-p)*b)/E}):(i=l=>{const c=Math.exp(-l*e),d=(l-n)*e+1;return-ho+c*d},a=l=>{const c=Math.exp(-l*e),d=(n-l)*(e*e);return c*d});const o=5/e,u=P7(i,a,o);if(e=Nn(e),isNaN(u))return{stiffness:ct.stiffness,damping:ct.damping,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const L7=12;function P7(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function F7(e){let t={velocity:ct.velocity,stiffness:ct.stiffness,damping:ct.damping,mass:ct.mass,isResolvedFromDuration:!1,...e};if(!Sc(e,B7)&&Sc(e,O7))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Yn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ct.mass,stiffness:i,damping:a}}else{const n=_7(e);t={...t,...n,mass:ct.mass},t.isResolvedFromDuration=!0}return t}function ms(e=ct.visualDuration,t=ct.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:a},{stiffness:u,damping:l,mass:c,duration:d,velocity:m,isResolvedFromDuration:p}=F7({...n,velocity:-Mn(n.velocity||0)}),b=m||0,E=l/(2*Math.sqrt(u*c)),C=s-a,T=Mn(Math.sqrt(u/c)),S=Math.abs(C)<5;r||(r=S?ct.restSpeed.granular:ct.restSpeed.default),i||(i=S?ct.restDelta.granular:ct.restDelta.default);let v;if(E<1){const P=mu(T,E);v=k=>{const V=Math.exp(-E*T*k);return s-V*((b+E*T*C)/P*Math.sin(P*k)+C*Math.cos(P*k))}}else if(E===1)v=P=>s-Math.exp(-T*P)*(C+(b+T*C)*P);else{const P=T*Math.sqrt(E*E-1);v=k=>{const V=Math.exp(-E*T*k),U=Math.min(P*k,300);return s-V*((b+E*T*C)*Math.sinh(U)+P*C*Math.cosh(U))/P}}const _={calculatedDuration:p&&d||null,next:P=>{const k=v(P);if(p)o.done=P>=d;else{let V=P===0?b:0;E<1&&(V=P===0?Nn(b):Of(v,P,k));const U=Math.abs(V)<=r,q=Math.abs(s-k)<=i;o.done=U&&q}return o.value=o.done?s:k,o},toString:()=>{const P=Math.min(Il(_),fs),k=Pf(V=>_.next(P*V).value,P,30);return P+"ms "+k},toTransition:()=>{}};return _}ms.applyToOptions=e=>{const t=R7(e,100,ms);return e.ease=t.ease,e.duration=Nn(t.duration),e.type="keyframes",e};function pu({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:u,restDelta:l=.5,restSpeed:c}){const d=e[0],m={done:!1,value:d},p=U=>o!==void 0&&Uu,b=U=>o===void 0?u:u===void 0||Math.abs(o-U)-E*Math.exp(-U/r),v=U=>T+S(U),_=U=>{const q=S(U),B=v(U);m.done=Math.abs(q)<=l,m.value=m.done?T:B};let P,k;const V=U=>{p(m.value)&&(P=U,k=ms({keyframes:[m.value,b(m.value)],velocity:Of(v,U,m.value),damping:i,stiffness:a,restDelta:l,restSpeed:c}))};return V(0),{calculatedDuration:null,next:U=>{let q=!1;return!k&&P===void 0&&(q=!0,_(U),V(U)),P!==void 0&&U>=P?k.next(U-P):(!q&&_(U),m)}}}function H7(e,t,n){const r=[],i=n||Gn.mix||Lf,a=e.length-1;for(let s=0;st[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=H7(t,r,i),u=o.length,l=c=>{if(s&&c1)for(;dl(Yn(e[0],e[a-1],c)):l}function U7(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ta(0,t,r);e.push(ot(n,1,i))}}function V7(e){const t=[0];return U7(t,e.length-1),t}function j7(e,t){return e.map(n=>n*t)}function q7(e,t){return e.map(()=>t||Ef).splice(0,e.length-1)}function zi({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=J5(r)?r.map(bc):bc(r),a={done:!1,value:t[0]},s=j7(n&&n.length===t.length?n:V7(t),e),o=z7(s,t,{ease:Array.isArray(i)?i:q7(t,i)});return{calculatedDuration:e,next:u=>(a.value=o(u),a.done=u>=e,a)}}const $7=e=>e!==null;function Nl(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter($7),o=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!o||r===void 0?a[o]:r}const W7={decay:pu,inertia:pu,tween:zi,keyframes:zi,spring:ms};function Bf(e){typeof e.type=="string"&&(e.type=W7[e.type])}class Ml{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Y7=e=>e/100;class Rl extends Ml{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Gt.now()&&this.tick(Gt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Bf(t);const{type:n=zi,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=t;let{keyframes:o}=t;const u=n||zi;u!==zi&&typeof o[0]!="number"&&(this.mixKeyframes=pa(Y7,Lf(o[0],o[1])),o=[0,100]);const l=u({...t,keyframes:o});a==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...o].reverse(),velocity:-s})),l.calculatedDuration===null&&(l.calculatedDuration=Il(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:c,repeat:d,repeatType:m,repeatDelay:p,type:b,onUpdate:E,finalKeyframe:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const T=this.currentTime-l*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?T<0:T>i;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,_=r;if(d){const U=Math.min(this.currentTime,i)/o;let q=Math.floor(U),B=U%1;!B&&U>=1&&(B=1),B===1&&q--,q=Math.min(q,d+1),!!(q%2)&&(m==="reverse"?(B=1-B,p&&(B-=p/o)):m==="mirror"&&(_=s)),v=Yn(0,1,B)*o}const P=S?{done:!1,value:c[0]}:_.next(v);a&&(P.value=a(P.value));let{done:k}=P;!S&&u!==null&&(k=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return V&&b!==pu&&(P.value=Nl(c,this.options,C,this.speed)),E&&E(P.value),V&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return Mn(this.calculatedDuration)}get time(){return Mn(this.currentTime)}set time(t){t=Nn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Gt.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Mn(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=M7,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Gt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function G7(e){for(let t=1;te*180/Math.PI,gu=e=>{const t=Mr(Math.atan2(e[1],e[0]));return bu(t)},K7={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:gu,rotateZ:gu,skewX:e=>Mr(Math.atan(e[1])),skewY:e=>Mr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},bu=e=>(e=e%360,e<0&&(e+=360),e),Ac=gu,Cc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),wc=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),X7={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Cc,scaleY:wc,scale:e=>(Cc(e)+wc(e))/2,rotateX:e=>bu(Mr(Math.atan2(e[6],e[5]))),rotateY:e=>bu(Mr(Math.atan2(-e[2],e[0]))),rotateZ:Ac,rotate:Ac,skewX:e=>Mr(Math.atan(e[4])),skewY:e=>Mr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function yu(e){return e.includes("scale")?1:0}function Tu(e,t){if(!e||e==="none")return yu(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=X7,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=K7,i=o}if(!i)return yu(t);const a=r[t],s=i[1].split(",").map(Z7);return typeof a=="function"?a(s):s[a]}const Q7=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Tu(n,t)};function Z7(e){return parseFloat(e.trim())}const hi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],fi=new Set(hi),kc=e=>e===di||e===Ee,J7=new Set(["x","y","z"]),e8=hi.filter(e=>!J7.has(e));function t8(e){const t=[];return e8.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Rr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Tu(t,"x"),y:(e,{transform:t})=>Tu(t,"y")};Rr.translateX=Rr.x;Rr.translateY=Rr.y;const Dr=new Set;let Eu=!1,xu=!1,vu=!1;function Ff(){if(xu){const e=Array.from(Dr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=t8(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,s])=>{r.getValue(a)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}xu=!1,Eu=!1,Dr.forEach(e=>e.complete(vu)),Dr.clear()}function Hf(){Dr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(xu=!0)})}function n8(){vu=!0,Hf(),Ff(),vu=!1}class Dl{constructor(t,n,r,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Dr.add(this),Eu||(Eu=!0,rt.read(Hf),rt.resolveKeyframes(Ff))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i?.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const o=r.readValue(n,s);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}G7(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Dr.delete(this)}cancel(){this.state==="scheduled"&&(Dr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const r8=e=>e.startsWith("--");function i8(e,t,n){r8(t)?e.style.setProperty(t,n):e.style[t]=n}const a8=bl(()=>window.ScrollTimeline!==void 0),s8={};function o8(e,t){const n=bl(e);return()=>s8[t]??n()}const zf=o8(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Pi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ic={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Pi([0,.65,.55,1]),circOut:Pi([.55,0,1,.45]),backIn:Pi([.31,.01,.66,-.59]),backOut:Pi([.33,1.53,.69,.99])};function Uf(e,t){if(e)return typeof e=="function"?zf()?Pf(e,t):"ease-out":xf(e)?Pi(e):Array.isArray(e)?e.map(n=>Uf(n,t)||Ic.easeOut):Ic[e]}function u8(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:u}={},l=void 0){const c={[t]:n};u&&(c.offset=u);const d=Uf(o,i);Array.isArray(d)&&(c.easing=d);const m={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return l&&(m.pseudoElement=l),e.animate(c,m)}function Vf(e){return typeof e=="function"&&"applyToOptions"in e}function l8({type:e,...t}){return Vf(e)&&zf()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class c8 extends Ml{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:o,onComplete:u}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,gl(typeof t.type!="string");const l=l8(t);this.animation=u8(n,r,i,l,a),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const c=Nl(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(c):i8(n,r,c),this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Mn(Number(t))}get time(){return Mn(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Nn(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&a8()?(this.animation.timeline=t,dn):n(this)}}const jf={anticipate:bf,backInOut:gf,circInOut:Tf};function d8(e){return e in jf}function h8(e){typeof e.ease=="string"&&d8(e.ease)&&(e.ease=jf[e.ease])}const Nc=10;class f8 extends c8{constructor(t){h8(t),Bf(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new Rl({...s,autoplay:!1}),u=Nn(this.finishedTime??this.time);n.setWithVelocity(o.sample(u-Nc).value,o.sample(u).value,Nc),o.stop()}}const Mc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(fr.test(e)||e==="0")&&!e.startsWith("url("));function m8(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function y8(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=t.owner.getProps();return b8()&&n&&g8.has(n)&&(n!=="transform"||!l)&&!u&&!r&&i!=="mirror"&&a!==0&&s!=="inertia"}const T8=40;class E8 extends Ml{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:o,name:u,motionValue:l,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Gt.now();const m={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,name:u,motionValue:l,element:c,...d},p=c?.KeyframeResolver||Dl;this.keyframeResolver=new p(o,(b,E,C)=>this.onKeyframesResolved(b,E,m,!C),u,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:s,velocity:o,delay:u,isHandoff:l,onUpdate:c}=r;this.resolvedAt=Gt.now(),p8(t,a,s,o)||((Gn.instantAnimations||!u)&&c?.(Nl(t,r,n)),t[0]=t[t.length-1],Su(r),r.repeat=0);const m={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>T8?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!l&&y8(m)?new f8({...m,element:m.motionValue.owner.current}):new Rl(m);p.finished.then(()=>this.notifyFinished()).catch(dn),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),n8()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const x8=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function v8(e){const t=x8.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function qf(e,t,n=1){const[r,i]=v8(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return uf(s)?parseFloat(s):s}return Al(i)?qf(i,t,n+1):i}function _l(e,t){return e?.[t]??e?.default??e}const $f=new Set(["width","height","top","left","right","bottom",...hi]),S8={test:e=>e==="auto",parse:e=>e},Wf=e=>t=>t.test(e),Yf=[di,Ee,Rn,sr,m7,f7,S8],Rc=e=>Yf.find(Wf(e));function A8(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||cf(e):!0}const C8=new Set(["brightness","contrast","saturate","opacity"]);function w8(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Cl)||[];if(!r)return e;const i=n.replace(r,"");let a=C8.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const k8=/\b([a-z-]*)\(.*?\)/gu,Au={...fr,getAnimatableNone:e=>{const t=e.match(k8);return t?t.map(w8).join(" "):e}},Dc={...di,transform:Math.round},I8={rotate:sr,rotateX:sr,rotateY:sr,rotateZ:sr,scale:Oa,scaleX:Oa,scaleY:Oa,scaleZ:Oa,skew:sr,skewX:sr,skewY:sr,distance:Ee,translateX:Ee,translateY:Ee,translateZ:Ee,x:Ee,y:Ee,z:Ee,perspective:Ee,transformPerspective:Ee,opacity:ra,originX:Tc,originY:Tc,originZ:Ee},Ll={borderWidth:Ee,borderTopWidth:Ee,borderRightWidth:Ee,borderBottomWidth:Ee,borderLeftWidth:Ee,borderRadius:Ee,radius:Ee,borderTopLeftRadius:Ee,borderTopRightRadius:Ee,borderBottomRightRadius:Ee,borderBottomLeftRadius:Ee,width:Ee,maxWidth:Ee,height:Ee,maxHeight:Ee,top:Ee,right:Ee,bottom:Ee,left:Ee,padding:Ee,paddingTop:Ee,paddingRight:Ee,paddingBottom:Ee,paddingLeft:Ee,margin:Ee,marginTop:Ee,marginRight:Ee,marginBottom:Ee,marginLeft:Ee,backgroundPositionX:Ee,backgroundPositionY:Ee,...I8,zIndex:Dc,fillOpacity:ra,strokeOpacity:ra,numOctaves:Dc},N8={...Ll,color:yt,backgroundColor:yt,outlineColor:yt,fill:yt,stroke:yt,borderColor:yt,borderTopColor:yt,borderRightColor:yt,borderBottomColor:yt,borderLeftColor:yt,filter:Au,WebkitFilter:Au},Gf=e=>N8[e];function Kf(e,t){let n=Gf(e);return n!==Au&&(n=fr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const M8=new Set(["auto","none","0"]);function R8(e,t,n){let r=0,i;for(;r{t.getValue(o).set(u)}),this.resolveNoneKeyframes()}}function _8(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const Xf=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function L8(e){return lf(e)&&"offsetHeight"in e}const _c=30,P8=e=>!isNaN(parseFloat(e));class O8{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const i=Gt.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Gt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=P8(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new yl);const r=this.events[t].add(n);return t==="change"?()=>{r(),rt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Gt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>_c)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,_c);return df(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ai(e,t){return new O8(e,t)}const{schedule:Pl}=wf(queueMicrotask,!1),gn={x:!1,y:!1};function Qf(){return gn.x||gn.y}function B8(e){return e==="x"||e==="y"?gn[e]?null:(gn[e]=!0,()=>{gn[e]=!1}):gn.x||gn.y?null:(gn.x=gn.y=!0,()=>{gn.x=gn.y=!1})}function Zf(e,t){const n=_8(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Lc(e){return!(e.pointerType==="touch"||Qf())}function F8(e,t,n={}){const[r,i,a]=Zf(e,n),s=o=>{if(!Lc(o))return;const{target:u}=o,l=t(u,o);if(typeof l!="function"||!u)return;const c=d=>{Lc(d)&&(l(d),u.removeEventListener("pointerleave",c))};u.addEventListener("pointerleave",c,i)};return r.forEach(o=>{o.addEventListener("pointerenter",s,i)}),a}const Jf=(e,t)=>t?e===t?!0:Jf(e,t.parentElement):!1,Ol=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,H8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function z8(e){return H8.has(e.tagName)||e.tabIndex!==-1}const ts=new WeakSet;function Pc(e){return t=>{t.key==="Enter"&&e(t)}}function fo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const U8=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Pc(()=>{if(ts.has(n))return;fo(n,"down");const i=Pc(()=>{fo(n,"up")}),a=()=>fo(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Oc(e){return Ol(e)&&!Qf()}function V8(e,t,n={}){const[r,i,a]=Zf(e,n),s=o=>{const u=o.currentTarget;if(!Oc(o))return;ts.add(u);const l=t(u,o),c=(p,b)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",m),ts.has(u)&&ts.delete(u),Oc(p)&&typeof l=="function"&&l(p,{success:b})},d=p=>{c(p,u===window||u===document||n.useGlobalTarget||Jf(u,p.target))},m=p=>{c(p,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",m,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,i),L8(o)&&(o.addEventListener("focus",l=>U8(l,i)),!z8(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),a}function em(e){return lf(e)&&"ownerSVGElement"in e}function j8(e){return em(e)&&e.tagName==="svg"}const Rt=e=>!!(e&&e.getVelocity),q8=[...Yf,yt,fr],$8=e=>q8.find(Wf(e)),aa={};function W8(e){for(const t in e)aa[t]=e[t],Sl(t)&&(aa[t].isCSSVariable=!0)}function tm(e,{layout:t,layoutId:n}){return fi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!aa[e]||e==="opacity")}const Y8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},G8=hi.length;function K8(e,t,n){let r="",i=!0;for(let a=0;a({style:{},transform:{},transformOrigin:{},vars:{}});function nm(e,t,n){for(const r in t)!Rt(t[r])&&!tm(r,n)&&(e[r]=t[r])}function X8({transformTemplate:e},t){return O.useMemo(()=>{const n=Fl();return Bl(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Q8(e,t){const n=e.style||{},r={};return nm(r,n,e),Object.assign(r,X8(e,t)),r}function Z8(e,t){const n={},r=Q8(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const J8={offset:"stroke-dashoffset",array:"stroke-dasharray"},eb={offset:"strokeDashoffset",array:"strokeDasharray"};function tb(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?J8:eb;e[a.offset]=Ee.transform(-r);const s=Ee.transform(t),o=Ee.transform(n);e[a.array]=`${s} ${o}`}function rm(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...o},u,l,c){if(Bl(e,o,l),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:m}=e;d.transform&&(m.transform=d.transform,delete d.transform),(m.transform||d.transformOrigin)&&(m.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),m.transform&&(m.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&tb(d,i,a,s,!1)}const im=()=>({...Fl(),attrs:{}}),am=e=>typeof e=="string"&&e.toLowerCase()==="svg";function nb(e,t,n,r){const i=O.useMemo(()=>{const a=im();return rm(a,t,am(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};nm(a,e.style,e),i.style={...a,...i.style}}return i}const rb=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ps(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||rb.has(e)}let sm=e=>!ps(e);function ib(e){typeof e=="function"&&(sm=t=>t.startsWith("on")?!ps(t):e(t))}try{ib(require("@emotion/is-prop-valid").default)}catch{}function ab(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(sm(i)||n===!0&&ps(i)||!t&&!ps(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const sb=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Hl(e){return typeof e!="string"||e.includes("-")?!1:!!(sb.indexOf(e)>-1||/[A-Z]/u.test(e))}function ob(e,t,n,{latestValues:r},i,a=!1){const o=(Hl(e)?nb:Z8)(t,r,i,e),u=ab(t,typeof e=="string",a),l=e!==O.Fragment?{...u,...o,ref:n}:{},{children:c}=t,d=O.useMemo(()=>Rt(c)?c.get():c,[c]);return O.createElement(e,{...l,children:d})}const zl=O.createContext(null);function Bc(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ul(e,t,n,r){if(typeof t=="function"){const[i,a]=Bc(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=Bc(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function ub(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}function ns(e){return Rt(e)?e.get():e}function lb({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:cb(n,r,i,e),renderState:t()}}function cb(e,t,n,r){const i={},a=r(e,{});for(const m in a)i[m]=ns(a[m]);let{initial:s,animate:o}=e;const u=Fs(e),l=Cf(e);t&&l&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?o:s;if(d&&typeof d!="boolean"&&!Bs(d)){const m=Array.isArray(d)?d:[d];for(let p=0;p(t,n)=>{const r=O.useContext(Os),i=O.useContext(zl),a=()=>lb(e,t,r,i);return n?a():ub(a)};function Vl(e,t,n){const{style:r}=e,i={};for(const a in r)(Rt(r[a])||t.style&&Rt(t.style[a])||tm(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}const db=om({scrapeMotionValuesFromProps:Vl,createRenderState:Fl});function um(e,t,n){const r=Vl(e,t,n);for(const i in e)if(Rt(e[i])||Rt(t[i])){const a=hi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const hb=om({scrapeMotionValuesFromProps:um,createRenderState:im}),jl=typeof window<"u",Fc={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},si={};for(const e in Fc)si[e]={isEnabled:t=>Fc[e].some(n=>!!t[n])};function fb(e){for(const t in e)si[t]={...si[t],...e[t]}}const mb=Symbol.for("motionComponentSymbol");function Xr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function pb(e,t,n){const r=O.useRef(null);return O.useCallback(i=>{const a=r.current;r.current=i,i!==a&&(i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount())),n&&(typeof n=="function"?n(i):Xr(n)&&(n.current=i))},[t,n])}const ql=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),gb="framerAppearId",lm="data-"+ql(gb),cm=O.createContext({}),bb=jl?O.useLayoutEffect:O.useEffect;function yb(e,t,n,r,i){const{visualElement:a}=O.useContext(Os),s=O.useContext(Sf),o=O.useContext(zl),u=O.useContext(Af).reducedMotion,l=O.useRef(null);r=r||s.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:a,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:u}));const c=l.current,d=O.useContext(cm);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&Tb(l.current,n,i,d);const m=O.useRef(!1);O.useInsertionEffect(()=>{c&&m.current&&c.update(n,o)});const p=n[lm],b=O.useRef(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return bb(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),b.current&&c.animationState&&c.animationState.animateChanges())}),O.useEffect(()=>{c&&(!b.current&&c.animationState&&c.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),b.current=!1),c.enteringChildren=void 0)}),c}function Tb(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:u,layoutRoot:l,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:dm(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&Xr(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:u,layoutRoot:l})}function dm(e){if(e)return e.options.allowProjection!==!1?e.projection:dm(e.parent)}function Eb(e,{forwardMotionProps:t=!1}={},n,r){n&&fb(n);const i=Hl(e)?hb:db;function a(o,u){let l;const c={...O.useContext(Af),...o,layoutId:xb(o)},{isStatic:d}=c,m=r7(o),p=i(o,d);if(!d&&jl){vb();const b=Sb(c);l=b.MeasureLayout,m.visualElement=yb(e,p,c,r,b.ProjectionNode)}return L.jsxs(Os.Provider,{value:m,children:[l&&m.visualElement?L.jsx(l,{visualElement:m.visualElement,...c}):null,ob(e,o,pb(p,m.visualElement,u),p,d,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=O.forwardRef(a);return s[mb]=e,s}function xb({layoutId:e}){const t=O.useContext(vf).id;return t&&e!==void 0?t+"-"+e:e}function vb(e,t){O.useContext(Sf).strict}function Sb(e){const{drag:t,layout:n}=si;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function hm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ab({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Cb(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function mo(e){return e===void 0||e===1}function Cu({scale:e,scaleX:t,scaleY:n}){return!mo(e)||!mo(t)||!mo(n)}function Ir(e){return Cu(e)||fm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function fm(e){return Hc(e.x)||Hc(e.y)}function Hc(e){return e&&e!=="0%"}function gs(e,t,n){const r=e-n,i=t*r;return n+i}function zc(e,t,n,r,i){return i!==void 0&&(e=gs(e,i,r)),gs(e,n,r)+t}function wu(e,t=0,n=1,r,i){e.min=zc(e.min,t,n,r,i),e.max=zc(e.max,t,n,r,i)}function mm(e,{x:t,y:n}){wu(e.x,t.translate,t.scale,t.originPoint),wu(e.y,n.translate,n.scale,n.originPoint)}const Uc=.999999999999,Vc=1.0000000000001;function wb(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,s;for(let o=0;oUc&&(t.x=1),t.yUc&&(t.y=1)}function Qr(e,t){e.min=e.min+t,e.max=e.max+t}function jc(e,t,n,r,i=.5){const a=ot(e.min,e.max,i);wu(e,t,n,a,r)}function Zr(e,t){jc(e.x,t.x,t.scaleX,t.scale,t.originX),jc(e.y,t.y,t.scaleY,t.scale,t.originY)}function pm(e,t){return hm(Cb(e.getBoundingClientRect(),t))}function kb(e,t,n){const r=pm(e,n),{scroll:i}=t;return i&&(Qr(r.x,i.offset.x),Qr(r.y,i.offset.y)),r}const qc=()=>({translate:0,scale:1,origin:0,originPoint:0}),Jr=()=>({x:qc(),y:qc()}),$c=()=>({min:0,max:0}),ht=()=>({x:$c(),y:$c()}),ku={current:null},gm={current:!1};function Ib(){if(gm.current=!0,!!jl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ku.current=e.matches;e.addEventListener("change",t),t()}else ku.current=!1}const Nb=new WeakMap;function Mb(e,t,n){for(const r in t){const i=t[r],a=n[r];if(Rt(i))e.addValue(r,i);else if(Rt(a))e.addValue(r,ai(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,ai(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Wc=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Rb{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Dl,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=Gt.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),gm.current||Ib(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ku.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),hr(this.notifyUpdate),hr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=fi.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&rt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in si){const n=si[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ht()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ai(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(uf(r)||cf(r))?r=parseFloat(r):!$8(r)&&fr.test(n)&&(r=Kf(t,n)),this.setBaseTarget(t,Rt(r)?r.get():r)),Rt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=Ul(this.props,n,this.presenceContext?.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Rt(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new yl),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Pl.render(this.render)}}class bm extends Rb{constructor(){super(...arguments),this.KeyframeResolver=D8}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Rt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function ym(e,{style:t,vars:n},r,i){const a=e.style;let s;for(s in t)a[s]=t[s];i?.applyProjectionStyles(a,r);for(s in n)a.setProperty(s,n[s])}function Db(e){return window.getComputedStyle(e)}class _b extends bm{constructor(){super(...arguments),this.type="html",this.renderInstance=ym}readValueFromInstance(t,n){if(fi.has(n))return this.projection?.isProjecting?yu(n):Q7(t,n);{const r=Db(t),i=(Sl(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return pm(t,n)}build(t,n,r){Bl(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Vl(t,n,r)}}const Tm=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Lb(e,t,n,r){ym(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Tm.has(i)?i:ql(i),t.attrs[i])}class Pb extends bm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ht}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(fi.has(n)){const r=Gf(n);return r&&r.default||0}return n=Tm.has(n)?n:ql(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return um(t,n,r)}build(t,n,r){rm(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Lb(t,n,r,i)}mount(t){this.isSVGTag=am(t.tagName),super.mount(t)}}const Ob=(e,t)=>Hl(e)?new Pb(t):new _b(t,{allowProjection:e!==O.Fragment});function ti(e,t,n){const r=e.getProps();return Ul(r,t,n!==void 0?n:r.custom,e)}const Iu=e=>Array.isArray(e);function Bb(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ai(n))}function Fb(e){return Iu(e)?e[e.length-1]||0:e}function Hb(e,t){const n=ti(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const o=Fb(a[s]);Bb(e,s,o)}}function zb(e){return!!(Rt(e)&&e.add)}function Nu(e,t){const n=e.getValue("willChange");if(zb(n))return n.add(t);if(!n&&Gn.WillChange){const r=new Gn.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Em(e){return e.props[lm]}const Ub=e=>e!==null;function Vb(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Ub),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const jb={type:"spring",stiffness:500,damping:25,restSpeed:10},qb=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$b={type:"keyframes",duration:.8},Wb={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Yb=(e,{keyframes:t})=>t.length>2?$b:fi.has(e)?e.startsWith("scale")?qb(t[1]):jb:Wb;function Gb({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:u,elapsed:l,...c}){return!!Object.keys(c).length}const $l=(e,t,n,r={},i,a)=>s=>{const o=_l(r,e)||{},u=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Nn(u);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-l,onUpdate:m=>{t.set(m),o.onUpdate&&o.onUpdate(m)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:i};Gb(o)||Object.assign(c,Yb(e,c)),c.duration&&(c.duration=Nn(c.duration)),c.repeatDelay&&(c.repeatDelay=Nn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Su(c),c.delay===0&&(d=!0)),(Gn.instantAnimations||Gn.skipAnimations)&&(d=!0,Su(c),c.delay=0),c.allowFlatten=!o.type&&!o.ease,d&&!a&&t.get()!==void 0){const m=Vb(c.keyframes,o);if(m!==void 0){rt.update(()=>{c.onUpdate(m),c.onComplete()});return}}return o.isSync?new Rl(c):new E8(c)};function Kb({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function xm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...o}=t;r&&(a=r);const u=[],l=i&&e.animationState&&e.animationState.getState()[i];for(const c in o){const d=e.getValue(c,e.latestValues[c]??null),m=o[c];if(m===void 0||l&&Kb(l,c))continue;const p={delay:n,..._l(a||{},c)},b=d.get();if(b!==void 0&&!d.isAnimating&&!Array.isArray(m)&&m===b&&!p.velocity)continue;let E=!1;if(window.MotionHandoffAnimation){const T=Em(e);if(T){const S=window.MotionHandoffAnimation(T,c,rt);S!==null&&(p.startTime=S,E=!0)}}Nu(e,c),d.start($l(c,d,m,e.shouldReduceMotion&&$f.has(c)?{type:!1}:p,e,E));const C=d.animation;C&&u.push(C)}return s&&Promise.all(u).then(()=>{rt.update(()=>{s&&Hb(e,s)})}),u}function vm(e,t,n,r=0,i=1){const a=Array.from(e).sort((l,c)=>l.sortNodePosition(c)).indexOf(t),s=e.size,o=(s-1)*r;return typeof n=="function"?n(a,s):i===1?a*r:o-a*r}function Mu(e,t,n={}){const r=ti(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(xm(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:d}=i;return Xb(e,t,u,l,c,d,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[u,l]=o==="beforeChildren"?[a,s]:[s,a];return u().then(()=>l())}else return Promise.all([a(),s(n.delay)])}function Xb(e,t,n=0,r=0,i=0,a=1,s){const o=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),o.push(Mu(u,t,{...s,delay:n+(typeof r=="function"?0:r)+vm(e.variantChildren,u,r,i,a)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(o)}function Qb(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>Mu(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=Mu(e,t,n);else{const i=typeof t=="function"?ti(e,t,n.custom):t;r=Promise.all(xm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Sm(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>Qb(e,n,r)))}function ny(e){let t=ty(e),n=Yc(),r=!0;const i=u=>(l,c)=>{const d=ti(e,c,u==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:m,transitionEnd:p,...b}=d;l={...l,...b,...p}}return l};function a(u){t=u(e)}function s(u){const{props:l}=e,c=Am(e.parent)||{},d=[],m=new Set;let p={},b=1/0;for(let C=0;Cb&&_,q=!1;const B=Array.isArray(v)?v:[v];let K=B.reduce(i(T),{});P===!1&&(K={});const{prevResolvedValues:Y={}}=S,X={...Y,...K},j=le=>{U=!0,m.has(le)&&(q=!0,m.delete(le)),S.needsAnimating[le]=!0;const fe=e.getValue(le);fe&&(fe.liveStyle=!1)};for(const le in X){const fe=K[le],oe=Y[le];if(p.hasOwnProperty(le))continue;let I=!1;Iu(fe)&&Iu(oe)?I=!Sm(fe,oe):I=fe!==oe,I?fe!=null?j(le):m.add(le):fe!==void 0&&m.has(le)?j(le):S.protectedKeys[le]=!0}S.prevProp=v,S.prevResolvedValues=K,S.isActive&&(p={...p,...K}),r&&e.blockInitialAnimation&&(U=!1);const W=k&&V;U&&(!W||q)&&d.push(...B.map(le=>{const fe={type:T};if(typeof le=="string"&&r&&!W&&e.manuallyAnimateOnMount&&e.parent){const{parent:oe}=e,I=ti(oe,le);if(oe.enteringChildren&&I){const{delayChildren:De}=I.transition||{};fe.delay=vm(oe.enteringChildren,e,De)}}return{animation:le,options:fe}}))}if(m.size){const C={};if(typeof l.initial!="boolean"){const T=ti(e,Array.isArray(l.initial)?l.initial[0]:l.initial);T&&T.transition&&(C.transition=T.transition)}m.forEach(T=>{const S=e.getBaseTarget(T),v=e.getValue(T);v&&(v.liveStyle=!0),C[T]=S??null}),d.push({animation:C})}let E=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(E=!1),r=!1,E?t(d):Promise.resolve()}function o(u,l){if(n[u].isActive===l)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(u,l)),n[u].isActive=l;const c=s(u);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Yc(),r=!0}}}function ry(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Sm(t,e):!1}function xr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Yc(){return{animate:xr(!0),whileInView:xr(),whileHover:xr(),whileTap:xr(),whileDrag:xr(),whileFocus:xr(),exit:xr()}}class br{constructor(t){this.isMounted=!1,this.node=t}update(){}}class iy extends br{constructor(t){super(t),t.animationState||(t.animationState=ny(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Bs(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let ay=0;class sy extends br{constructor(){super(...arguments),this.id=ay++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const oy={animation:{Feature:iy},exit:{Feature:sy}};function sa(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ya(e){return{point:{x:e.pageX,y:e.pageY}}}const uy=e=>t=>Ol(t)&&e(t,ya(t));function Ui(e,t,n,r){return sa(e,t,uy(n),r)}const Cm=1e-4,ly=1-Cm,cy=1+Cm,wm=.01,dy=0-wm,hy=0+wm;function Ht(e){return e.max-e.min}function fy(e,t,n){return Math.abs(e-t)<=n}function Gc(e,t,n,r=.5){e.origin=r,e.originPoint=ot(t.min,t.max,e.origin),e.scale=Ht(n)/Ht(t),e.translate=ot(n.min,n.max,e.origin)-e.originPoint,(e.scale>=ly&&e.scale<=cy||isNaN(e.scale))&&(e.scale=1),(e.translate>=dy&&e.translate<=hy||isNaN(e.translate))&&(e.translate=0)}function Vi(e,t,n,r){Gc(e.x,t.x,n.x,r?r.originX:void 0),Gc(e.y,t.y,n.y,r?r.originY:void 0)}function Kc(e,t,n){e.min=n.min+t.min,e.max=e.min+Ht(t)}function my(e,t,n){Kc(e.x,t.x,n.x),Kc(e.y,t.y,n.y)}function Xc(e,t,n){e.min=t.min-n.min,e.max=e.min+Ht(t)}function ji(e,t,n){Xc(e.x,t.x,n.x),Xc(e.y,t.y,n.y)}function on(e){return[e("x"),e("y")]}const km=({current:e})=>e?e.ownerDocument.defaultView:null,Qc=(e,t)=>Math.abs(e-t);function py(e,t){const n=Qc(e.x,t.x),r=Qc(e.y,t.y);return Math.sqrt(n**2+r**2)}class Im{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=go(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,b=py(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!b)return;const{point:E}=m,{timestamp:C}=It;this.history.push({...E,timestamp:C});const{onStart:T,onMove:S}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=po(p,this.transformPagePoint),rt.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:b,onSessionEnd:E,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=go(m.type==="pointercancel"?this.lastMoveEventInfo:po(p,this.transformPagePoint),this.history);this.startEvent&&b&&b(m,T),E&&E(m,T)},!Ol(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const o=ya(t),u=po(o,this.transformPagePoint),{point:l}=u,{timestamp:c}=It;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,go(u,this.history)),this.removeListeners=pa(Ui(this.contextWindow,"pointermove",this.handlePointerMove),Ui(this.contextWindow,"pointerup",this.handlePointerUp),Ui(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),hr(this.updatePoint)}}function po(e,t){return t?{point:t(e.point)}:e}function Zc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function go({point:e},t){return{point:e,delta:Zc(e,Nm(t)),offset:Zc(e,gy(t)),velocity:by(t,.1)}}function gy(e){return e[0]}function Nm(e){return e[e.length-1]}function by(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Nm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Nn(t)));)n--;if(!r)return{x:0,y:0};const a=Mn(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function yy(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ot(n,e,r.max):Math.min(e,n)),e}function Jc(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Ty(e,{top:t,left:n,bottom:r,right:i}){return{x:Jc(e.x,n,i),y:Jc(e.y,t,r)}}function ed(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=ta(t.min,t.max-r,e.min):r>i&&(n=ta(e.min,e.max-i,t.min)),Yn(0,1,n)}function vy(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ru=.35;function Sy(e=Ru){return e===!1?e=0:e===!0&&(e=Ru),{x:td(e,"left","right"),y:td(e,"top","bottom")}}function td(e,t,n){return{min:nd(e,t),max:nd(e,n)}}function nd(e,t){return typeof e=="number"?e:e[t]||0}const Ay=new WeakMap;class Cy{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ht(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=d=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ya(d).point)},s=(d,m)=>{const{drag:p,dragPropagation:b,onDragStart:E}=this.getProps();if(p&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=B8(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=m,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),on(T=>{let S=this.getAxisMotionValue(T).get()||0;if(Rn.test(S)){const{projection:v}=this.visualElement;if(v&&v.layout){const _=v.layout.layoutBox[T];_&&(S=Ht(_)*(parseFloat(S)/100))}}this.originPoint[T]=S}),E&&rt.postRender(()=>E(d,m)),Nu(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},o=(d,m)=>{this.latestPointerEvent=d,this.latestPanInfo=m;const{dragPropagation:p,dragDirectionLock:b,onDirectionLock:E,onDrag:C}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(b&&this.currentDirection===null){this.currentDirection=wy(T),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),C&&C(d,m)},u=(d,m)=>{this.latestPointerEvent=d,this.latestPanInfo=m,this.stop(d,m),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>on(d=>this.getAnimationState(d)==="paused"&&this.getAxisMotionValue(d).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Im(t,{onSessionStart:a,onStart:s,onMove:o,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:km(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&rt.postRender(()=>o(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ba(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=yy(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&Xr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Ty(r.layoutBox,t):this.constraints=!1,this.elastic=Sy(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&on(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=vy(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Xr(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=kb(r,i.root,this.visualElement.getTransformPagePoint());let s=Ey(i.layout.layoutBox,a);if(n){const o=n(Ab(s));this.hasMutatedConstraints=!!o,o&&(s=hm(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),u=this.constraints||{},l=on(c=>{if(!Ba(c,n,this.currentDirection))return;let d=u&&u[c]||{};s&&(d={min:0,max:0});const m=i?200:1e6,p=i?40:1e7,b={type:"inertia",velocity:r?t[c]:0,bounceStiffness:m,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(c,b)});return Promise.all(l).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Nu(this.visualElement,t),r.start($l(t,r,0,n,this.visualElement,!1))}stopAnimation(){on(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){on(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){on(n=>{const{drag:r}=this.getProps();if(!Ba(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:o}=i.layout.layoutBox[n];a.set(t[n]-ot(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Xr(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};on(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const u=o.get();i[s]=xy({min:u,max:u},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),on(s=>{if(!Ba(s,t,null))return;const o=this.getAxisMotionValue(s),{min:u,max:l}=this.constraints[s];o.set(ot(u,l,i[s]))})}addListeners(){if(!this.visualElement.current)return;Ay.set(this.visualElement,this);const t=this.visualElement.current,n=Ui(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Xr(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),rt.read(r);const s=sa(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(on(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=u[c].translate,d.set(d.get()+u[c].translate))}),this.visualElement.render())}));return()=>{s(),n(),a(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=Ru,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:o}}}function Ba(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function wy(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ky extends br{constructor(t){super(t),this.removeGroupControls=dn,this.removeListeners=dn,this.controls=new Cy(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||dn}unmount(){this.removeGroupControls(),this.removeListeners()}}const rd=e=>(t,n)=>{e&&rt.postRender(()=>e(t,n))};class Iy extends br{constructor(){super(...arguments),this.removePointerDownListener=dn}onPointerDown(t){this.session=new Im(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:km(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:rd(t),onStart:rd(n),onMove:r,onEnd:(a,s)=>{delete this.session,i&&rt.postRender(()=>i(a,s))}}}mount(){this.removePointerDownListener=Ui(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Ny(e=!0){const t=O.useContext(zl);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=O.useId();O.useEffect(()=>{if(e)return i(a)},[e]);const s=O.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}const rs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function id(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ki={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ee.test(e))e=parseFloat(e);else return e;const n=id(e,t.target.x),r=id(e,t.target.y);return`${n}% ${r}%`}},My={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=fr.parse(e);if(i.length>5)return r;const a=fr.createTransformer(e),s=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,u=n.y.scale*t.y;i[0+s]/=o,i[1+s]/=u;const l=ot(o,u,.5);return typeof i[2+s]=="number"&&(i[2+s]/=l),typeof i[3+s]=="number"&&(i[3+s]/=l),a(i)}};let bo=!1;class Ry extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;W8(Dy),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),bo&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),rs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:s}=r;return s&&(s.isPresent=a,bo=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||rt.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Pl.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;bo=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Mm(e){const[t,n]=Ny(),r=O.useContext(vf);return L.jsx(Ry,{...e,layoutGroup:r,switchLayoutGroup:O.useContext(cm),isPresent:t,safeToRemove:n})}const Dy={borderRadius:{...ki,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ki,borderTopRightRadius:ki,borderBottomLeftRadius:ki,borderBottomRightRadius:ki,boxShadow:My};function _y(e,t,n){const r=Rt(e)?e:ai(e);return r.start($l("",r,t,n)),r.animation}const Ly=(e,t)=>e.depth-t.depth;class Py{constructor(){this.children=[],this.isDirty=!1}add(t){ml(this.children,t),this.isDirty=!0}remove(t){pl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Ly),this.isDirty=!1,this.children.forEach(t)}}function Oy(e,t){const n=Gt.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(hr(r),e(a-t))};return rt.setup(r,!0),()=>hr(r)}const Rm=["TopLeft","TopRight","BottomLeft","BottomRight"],By=Rm.length,ad=e=>typeof e=="string"?parseFloat(e):e,sd=e=>typeof e=="number"||Ee.test(e);function Fy(e,t,n,r,i,a){i?(e.opacity=ot(0,n.opacity??1,Hy(r)),e.opacityExit=ot(t.opacity??1,0,zy(r))):a&&(e.opacity=ot(t.opacity??1,n.opacity??1,r));for(let s=0;srt?1:n(ta(e,t,r))}function ud(e,t){e.min=t.min,e.max=t.max}function sn(e,t){ud(e.x,t.x),ud(e.y,t.y)}function ld(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function cd(e,t,n,r,i){return e-=t,e=gs(e,1/n,r),i!==void 0&&(e=gs(e,1/i,r)),e}function Uy(e,t=0,n=1,r=.5,i,a=e,s=e){if(Rn.test(t)&&(t=parseFloat(t),t=ot(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=ot(a.min,a.max,r);e===a&&(o-=t),e.min=cd(e.min,t,n,o,i),e.max=cd(e.max,t,n,o,i)}function dd(e,t,[n,r,i],a,s){Uy(e,t[n],t[r],t[i],t.scale,a,s)}const Vy=["x","scaleX","originX"],jy=["y","scaleY","originY"];function hd(e,t,n,r){dd(e.x,t,Vy,n?n.x:void 0,r?r.x:void 0),dd(e.y,t,jy,n?n.y:void 0,r?r.y:void 0)}function fd(e){return e.translate===0&&e.scale===1}function _m(e){return fd(e.x)&&fd(e.y)}function md(e,t){return e.min===t.min&&e.max===t.max}function qy(e,t){return md(e.x,t.x)&&md(e.y,t.y)}function pd(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Lm(e,t){return pd(e.x,t.x)&&pd(e.y,t.y)}function gd(e){return Ht(e.x)/Ht(e.y)}function bd(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class $y{constructor(){this.members=[]}add(t){ml(this.members,t),t.scheduleRender()}remove(t){if(pl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Wy(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,s=n?.z||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:d,rotateY:m,skewX:p,skewY:b}=n;l&&(r=`perspective(${l}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),m&&(r+=`rotateY(${m}deg) `),p&&(r+=`skewX(${p}deg) `),b&&(r+=`skewY(${b}deg) `)}const o=e.x.scale*t.x,u=e.y.scale*t.y;return(o!==1||u!==1)&&(r+=`scale(${o}, ${u})`),r||"none"}const yo=["","X","Y","Z"],Yy=1e3;let Gy=0;function To(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Pm(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Em(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",rt,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Pm(r)}function Om({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},o=t?.()){this.id=Gy++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Qy),this.nodes.forEach(t9),this.nodes.forEach(n9),this.nodes.forEach(Zy)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;rt.read(()=>{d=window.innerWidth}),e(s,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,c&&c(),c=Oy(m,250),rs.hasAnimatedSinceResize&&(rs.hasAnimatedSinceResize=!1,this.nodes.forEach(Ed)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&l&&(o||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:m,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||l.getDefaultTransition()||o9,{onLayoutAnimationStart:E,onLayoutAnimationComplete:C}=l.getProps(),T=!this.targetLayout||!Lm(this.targetLayout,p),S=!d&&m;if(this.options.layoutRoot||this.resumeFrom||S||d&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={..._l(b,"layout"),onPlay:E,onComplete:C};(l.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(c,S)}else d||Ed(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),hr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(r9),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Pm(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ht(this.snapshot.measuredBox.x)&&!Ht(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const P=_/1e3;xd(d.x,s.x,P),xd(d.y,s.y,P),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ji(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),a9(this.relativeTarget,this.relativeTargetOrigin,m,P),v&&qy(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=ht()),sn(v,this.relativeTarget)),E&&(this.animationValues=c,Fy(c,l,this.latestValues,P,S,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(hr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=rt.update(()=>{rs.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ai(0)),this.currentAnimation=_y(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Yy),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:u,layout:l,latestValues:c}=s;if(!(!o||!u||!l)){if(this!==s&&this.layout&&l&&Bm(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||ht();const d=Ht(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+d;const m=Ht(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+m}sn(o,u),Zr(o,c),Vi(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new $y),this.sharedNodes.get(s).add(o);const l=o.options.initialPromotionConfig;o.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(o=!0),!o)return;const l={};u.z&&To("z",s,l,this.animationValues);for(let c=0;cs.currentAnimation?.stop()),this.root.nodes.forEach(yd),this.root.sharedNodes.clear()}}}function Ky(e){e.updateLayout()}function Xy(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i==="size"?on(c=>{const d=a?t.measuredBox[c]:t.layoutBox[c],m=Ht(d);d.min=n[c].min,d.max=d.min+m}):Bm(i,t.layoutBox,n)&&on(c=>{const d=a?t.measuredBox[c]:t.layoutBox[c],m=Ht(n[c]);d.max=d.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+m)});const s=Jr();Vi(s,n,t.layoutBox);const o=Jr();a?Vi(o,e.applyTransform(r,!0),t.measuredBox):Vi(o,n,t.layoutBox);const u=!_m(s);let l=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:d,layout:m}=c;if(d&&m){const p=ht();ji(p,t.layoutBox,d.layoutBox);const b=ht();ji(b,n,m.layoutBox),Lm(p,b)||(l=!0),c.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=p,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:s,hasLayoutChanged:u,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Qy(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Zy(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Jy(e){e.clearSnapshot()}function yd(e){e.clearMeasurements()}function Td(e){e.isLayoutDirty=!1}function e9(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ed(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function t9(e){e.resolveTargetDelta()}function n9(e){e.calcProjection()}function r9(e){e.resetSkewAndRotation()}function i9(e){e.removeLeadSnapshot()}function xd(e,t,n){e.translate=ot(t.translate,0,n),e.scale=ot(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function vd(e,t,n,r){e.min=ot(t.min,n.min,r),e.max=ot(t.max,n.max,r)}function a9(e,t,n,r){vd(e.x,t.x,n.x,r),vd(e.y,t.y,n.y,r)}function s9(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const o9={duration:.45,ease:[.4,0,.1,1]},Sd=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ad=Sd("applewebkit/")&&!Sd("chrome/")?Math.round:dn;function Cd(e){e.min=Ad(e.min),e.max=Ad(e.max)}function u9(e){Cd(e.x),Cd(e.y)}function Bm(e,t,n){return e==="position"||e==="preserve-aspect"&&!fy(gd(t),gd(n),.2)}function l9(e){return e!==e.root&&e.scroll?.wasRoot}const c9=Om({attachResizeListener:(e,t)=>sa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Eo={current:void 0},Fm=Om({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Eo.current){const e=new c9({});e.mount(window),e.setOptions({layoutScroll:!0}),Eo.current=e}return Eo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),d9={pan:{Feature:Iy},drag:{Feature:ky,ProjectionNode:Fm,MeasureLayout:Mm}};function wd(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&rt.postRender(()=>a(t,ya(t)))}class h9 extends br{mount(){const{current:t}=this.node;t&&(this.unmount=F8(t,(n,r)=>(wd(this.node,r,"Start"),i=>wd(this.node,i,"End"))))}unmount(){}}class f9 extends br{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pa(sa(this.node.current,"focus",()=>this.onFocus()),sa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function kd(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&rt.postRender(()=>a(t,ya(t)))}class m9 extends br{mount(){const{current:t}=this.node;t&&(this.unmount=V8(t,(n,r)=>(kd(this.node,r,"Start"),(i,{success:a})=>kd(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Du=new WeakMap,xo=new WeakMap,p9=e=>{const t=Du.get(e.target);t&&t(e)},g9=e=>{e.forEach(p9)};function b9({root:e,...t}){const n=e||document;xo.has(n)||xo.set(n,{});const r=xo.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(g9,{root:e,...t})),r[i]}function y9(e,t,n){const r=b9(t);return Du.set(e,n),r.observe(e),()=>{Du.delete(e),r.unobserve(e)}}const T9={some:0,all:1};class E9 extends br{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:T9[i]},o=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,a&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),m=l?c:d;m&&m(u)};return y9(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(x9(t,n))&&this.startObserver()}unmount(){}}function x9({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const v9={inView:{Feature:E9},tap:{Feature:m9},focus:{Feature:f9},hover:{Feature:h9}},S9={layout:{ProjectionNode:Fm,MeasureLayout:Mm}},A9={...oy,...v9,...d9,...S9};function C9(e,t){return Eb(e,t,A9,Ob)}const Wl=C9("div"),w9=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{position:"relative",flex:1,gap:t(1.5),overflow:"hidden"}}),k9=ue(K1)(({theme:e,variant:t})=>{const{spacing:n}=e;return{gap:n(t==="list"?1.5:5.5),overflowY:"auto"}}),I9=ue(X6)(({theme:e})=>{const{spacing:t}=e;return{flex:"none",padding:t(2),overflow:"hidden"}}),N9=ue(J6)(({theme:e})=>({fontSize:"1.5rem",width:"2.75rem",height:"2.75rem",borderRadius:"50%",display:"inline-flex",alignItems:"center",justifyContent:"center"})),M9=ue(Wl)(({theme:e,variant:t})=>({fontSize:t==="list"?"1.5rem":"1em",width:"1em",height:"1em",display:"inline-flex",alignItems:"center",justifyContent:"center",transformOrigin:"center"})),R9={waiting:"info",available:"success",failed:"error"},D9=()=>L.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",children:L.jsx("path",{d:"M20.0235 2.88477H6.92829C6.49415 2.88477 6.0778 3.05722 5.77082 3.3642C5.46384 3.67118 5.29138 4.08754 5.29138 4.52167V22.5276C5.29138 22.9618 5.46384 23.3781 5.77082 23.6851C6.0778 23.9921 6.49415 24.1645 6.92829 24.1645H20.0235C20.4577 24.1645 20.874 23.9921 21.181 23.6851C21.488 23.3781 21.6604 22.9618 21.6604 22.5276V4.52167C21.6604 4.08754 21.488 3.67118 21.181 3.3642C20.874 3.05722 20.4577 2.88477 20.0235 2.88477ZM13.4759 20.0723C13.2331 20.0723 12.9957 20.0003 12.7938 19.8654C12.592 19.7305 12.4346 19.5387 12.3417 19.3144C12.2488 19.0901 12.2244 18.8432 12.2718 18.6051C12.3192 18.3669 12.4361 18.1482 12.6078 17.9765C12.7795 17.8048 12.9983 17.6879 13.2364 17.6405C13.4745 17.5931 13.7214 17.6174 13.9457 17.7104C14.17 17.8033 14.3618 17.9606 14.4967 18.1625C14.6316 18.3644 14.7036 18.6018 14.7036 18.8446C14.7036 19.1702 14.5742 19.4825 14.344 19.7127C14.1138 19.9429 13.8015 20.0723 13.4759 20.0723ZM16.7497 11.8877H10.2021C9.98503 11.8877 9.77685 11.8015 9.62336 11.648C9.46987 11.4945 9.38364 11.2864 9.38364 11.0693C9.38364 10.8522 9.46987 10.644 9.62336 10.4906C9.77685 10.3371 9.98503 10.2508 10.2021 10.2508H16.7497C16.9668 10.2508 17.175 10.3371 17.3285 10.4906C17.4819 10.644 17.5682 10.8522 17.5682 11.0693C17.5682 11.2864 17.4819 11.4945 17.3285 11.648C17.175 11.8015 16.9668 11.8877 16.7497 11.8877ZM16.7497 8.61393H10.2021C9.98503 8.61393 9.77685 8.5277 9.62336 8.37421C9.46987 8.22072 9.38364 8.01255 9.38364 7.79548C9.38364 7.57841 9.46987 7.37024 9.62336 7.21675C9.77685 7.06326 9.98503 6.97703 10.2021 6.97703H16.7497C16.9668 6.97703 17.175 7.06326 17.3285 7.21675C17.4819 7.37024 17.5682 7.57841 17.5682 7.79548C17.5682 8.01255 17.4819 8.22072 17.3285 8.37421C17.175 8.5277 16.9668 8.61393 16.7497 8.61393Z",fill:"currentColor"})}),_9={waiting:N5,available:T5,failed:O1},L9=({variant:e,node:t})=>{const{id:n,status:r,gpuName:i,gpuMemory:a}=t||{status:"waiting"},{palette:s}=Ns(),{main:o,lighter:u}=r==="waiting"?{main:s.grey[800],lighter:s.grey[250]}:s[R9[r]],l=r==="failed"?.2:void 0,c=_9[r];return L.jsxs(I9,{component:e==="list"?Ms:ci,variant:"outlined",sx:{opacity:l,padding:e==="menu"?0:void 0,backgroundColor:"transparent"},children:[L.jsx(N9,{sx:{color:s.grey[800],backgroundColor:s.grey[250]},children:L.jsx(D9,{})}),L.jsxs(rg,{children:[t&&L.jsxs(Ve,{variant:"body1",children:[i," ",a,"GB"]})||L.jsx(lc,{width:"8rem",height:"0.75rem",sx:{my:.5}}),t&&L.jsx(Ve,{variant:"body1",color:"text.disabled",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:n&&n.substring(0,4)+"..."+n.substring(n.length-4)})||L.jsx(lc,{width:"14rem",height:"0.75rem",sx:{my:.5}})]}),t&&L.jsxs(M9,{sx:{color:o},...r==="waiting"&&{animate:{rotate:360},transition:{repeat:1/0,ease:"linear",duration:2}},variant:e,children:[e==="list"&&L.jsx(c,{}),e==="menu"&&L.jsx(P5,{})]})]})},Fa=({variant:e="list"})=>{const[{clusterInfo:{initNodesNumber:t},nodeInfoList:n}]=fa(),{length:r}=n;return L.jsxs(w9,{children:[e==="menu"&&L.jsx(ci,{sx:{position:"absolute",top:"1.375rem",bottom:"1.375rem",left:"1.375rem",borderLeft:"2px dashed",borderColor:"divider"}}),L.jsx(k9,{variant:e,children:n.map(i=>L.jsx(L9,{variant:e,node:i},i.id))})]})},P9={small:1,medium:1.25,large:2.25},O9=ue(Wl)(({theme:e,size:t})=>{const n=`${P9[t]}rem`;return{position:"relative",width:n,height:n,display:"inline-flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"}}),vo=ue(Wl)(({theme:e})=>({flex:1,aspectRatio:1,borderRadius:"50%",backgroundColor:"currentColor"})),So={pulse:{scale:[0,.6,0,0],keyTimes:[0,.3,.6,1],transition:{duration:2,repeat:1/0,ease:"linear"}}},B9={staggerChildren:.25,staggerDirection:1},F9=O.forwardRef(({size:e="medium"},t)=>L.jsxs(O9,{ref:t,size:e,animate:"pulse",transition:B9,children:[L.jsx(vo,{variants:So},1),L.jsx(vo,{variants:So},2),L.jsx(vo,{variants:So},3)]}));function Id(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function Hm(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const H9=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,z9=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,U9={};function Nd(e,t){return(U9.jsx?z9:H9).test(e)}const V9=/[ \t\n\f\r]/g;function j9(e){return typeof e=="object"?e.type==="text"?Md(e.value):!1:Md(e)}function Md(e){return e.replace(V9,"")===""}let Ta=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Ta.prototype.normal={};Ta.prototype.property={};Ta.prototype.space=void 0;function zm(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ta(n,r,t)}function oa(e){return e.toLowerCase()}let Kt=class{constructor(t,n){this.attribute=n,this.property=t}};Kt.prototype.attribute="";Kt.prototype.booleanish=!1;Kt.prototype.boolean=!1;Kt.prototype.commaOrSpaceSeparated=!1;Kt.prototype.commaSeparated=!1;Kt.prototype.defined=!1;Kt.prototype.mustUseProperty=!1;Kt.prototype.number=!1;Kt.prototype.overloadedBoolean=!1;Kt.prototype.property="";Kt.prototype.spaceSeparated=!1;Kt.prototype.space=void 0;let q9=0;const Ce=Br(),gt=Br(),_u=Br(),re=Br(),Qe=Br(),ni=Br(),Zt=Br();function Br(){return 2**++q9}const Lu=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ce,booleanish:gt,commaOrSpaceSeparated:Zt,commaSeparated:ni,number:re,overloadedBoolean:_u,spaceSeparated:Qe},Symbol.toStringTag,{value:"Module"})),Ao=Object.keys(Lu);let Yl=class extends Kt{constructor(t,n,r,i){let a=-1;if(super(t,n),Rd(this,"space",i),typeof r=="number")for(;++a4&&n.slice(0,4)==="data"&&K9.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Dd,Q9);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Dd.test(a)){let s=a.replace(G9,X9);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Yl}return new i(r,t)}function X9(e){return"-"+e.toLowerCase()}function Q9(e){return e.charAt(1).toUpperCase()}const Hs=zm([Um,$9,qm,$m,Wm],"html"),pi=zm([Um,W9,qm,$m,Wm],"svg");function _d(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Ym(e){return e.join(" ").trim()}var jr={},Co,Ld;function Z9(){if(Ld)return Co;Ld=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,u=` -`,l="/",c="*",d="",m="comment",p="declaration";Co=function(E,C){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];C=C||{};var T=1,S=1;function v(X){var j=X.match(t);j&&(T+=j.length);var W=X.lastIndexOf(u);S=~W?X.length-W:S+X.length}function _(){var X={line:T,column:S};return function(j){return j.position=new P(X),U(),j}}function P(X){this.start=X,this.end={line:T,column:S},this.source=C.source}P.prototype.content=E;function k(X){var j=new Error(C.source+":"+T+":"+S+": "+X);if(j.reason=X,j.filename=C.source,j.line=T,j.column=S,j.source=E,!C.silent)throw j}function V(X){var j=X.exec(E);if(j){var W=j[0];return v(W),E=E.slice(W.length),j}}function U(){V(n)}function q(X){var j;for(X=X||[];j=B();)j!==!1&&X.push(j);return X}function B(){var X=_();if(!(l!=E.charAt(0)||c!=E.charAt(1))){for(var j=2;d!=E.charAt(j)&&(c!=E.charAt(j)||l!=E.charAt(j+1));)++j;if(j+=2,d===E.charAt(j-1))return k("End of comment missing");var W=E.slice(2,j-2);return S+=2,v(W),E=E.slice(j),S+=2,X({type:m,comment:W})}}function K(){var X=_(),j=V(r);if(j){if(B(),!V(i))return k("property missing ':'");var W=V(a),ne=X({type:p,property:b(j[0].replace(e,d)),value:W?b(W[0].replace(e,d)):d});return V(s),ne}}function Y(){var X=[];q(X);for(var j;j=K();)j!==!1&&(X.push(j),q(X));return X}return U(),Y()};function b(E){return E?E.replace(o,d):d}return Co}var Pd;function J9(){if(Pd)return jr;Pd=1;var e=jr&&jr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(jr,"__esModule",{value:!0}),jr.default=n;var t=e(Z9());function n(r,i){var a=null;if(!r||typeof r!="string")return a;var s=(0,t.default)(r),o=typeof i=="function";return s.forEach(function(u){if(u.type==="declaration"){var l=u.property,c=u.value;o?i(l,c,u):c&&(a=a||{},a[l]=c)}}),a}return jr}var Ii={},Od;function eT(){if(Od)return Ii;Od=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(l){return!l||n.test(l)||e.test(l)},s=function(l,c){return c.toUpperCase()},o=function(l,c){return"".concat(c,"-")},u=function(l,c){return c===void 0&&(c={}),a(l)?l:(l=l.toLowerCase(),c.reactCompat?l=l.replace(i,o):l=l.replace(r,o),l.replace(t,s))};return Ii.camelCase=u,Ii}var Ni,Bd;function tT(){if(Bd)return Ni;Bd=1;var e=Ni&&Ni.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(J9()),n=eT();function r(i,a){var s={};return!i||typeof i!="string"||(0,t.default)(i,function(o,u){o&&u&&(s[(0,n.camelCase)(o,a)]=u)}),s}return r.default=r,Ni=r,Ni}var nT=tT();const rT=B1(nT),zs=Gm("end"),Pn=Gm("start");function Gm(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Km(e){const t=Pn(e),n=zs(e);if(t&&n)return{start:t,end:n}}function qi(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Fd(e.position):"start"in e||"end"in e?Fd(e):"line"in e||"column"in e?Pu(e):""}function Pu(e){return Hd(e&&e.line)+":"+Hd(e&&e.column)}function Fd(e){return Pu(e&&e.start)+"-"+Pu(e&&e.end)}function Hd(e){return e&&typeof e=="number"?e:1}class _t extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?a.ruleId=r:(a.source=r.slice(0,u),a.ruleId=r.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=qi(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}_t.prototype.file="";_t.prototype.name="";_t.prototype.reason="";_t.prototype.message="";_t.prototype.stack="";_t.prototype.column=void 0;_t.prototype.line=void 0;_t.prototype.ancestors=void 0;_t.prototype.cause=void 0;_t.prototype.fatal=void 0;_t.prototype.place=void 0;_t.prototype.ruleId=void 0;_t.prototype.source=void 0;const Kl={}.hasOwnProperty,iT=new Map,aT=/[A-Z]/g,sT=new Set(["table","tbody","thead","tfoot","tr"]),oT=new Set(["td","th"]),Xm="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function uT(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=gT(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=pT(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?pi:Hs,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Qm(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Qm(e,t,n){if(t.type==="element")return lT(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return cT(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return hT(e,t,n);if(t.type==="mdxjsEsm")return dT(e,t);if(t.type==="root")return fT(e,t,n);if(t.type==="text")return mT(e,t)}function lT(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=pi,e.schema=i),e.ancestors.push(t);const a=Jm(e,t.tagName,!1),s=bT(e,t);let o=Ql(e,t);return sT.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!j9(u):!0})),Zm(e,s,a,t),Xl(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function cT(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ua(e,t.position)}function dT(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ua(e,t.position)}function hT(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=pi,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:Jm(e,t.name,!0),s=yT(e,t),o=Ql(e,t);return Zm(e,s,a,t),Xl(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function fT(e,t,n){const r={};return Xl(r,Ql(e,t)),e.create(t,e.Fragment,r,n)}function mT(e,t){return t.value}function Zm(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Xl(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function pT(e,t,n){return r;function r(i,a,s,o){const l=Array.isArray(s.children)?n:t;return o?l(a,s,o):l(a,s)}}function gT(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),u=Pn(r);return t(i,a,s,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function bT(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Kl.call(t.properties,i)){const a=TT(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&oT.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function yT(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else ua(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else ua(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Ql(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:iT;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a0?(nn(e,e.length,0,t),e):t}const Vd={}.hasOwnProperty;function tp(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function yn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ft=yr(/[A-Za-z]/),Dt=yr(/[\dA-Za-z]/),IT=yr(/[#-'*+\--9=?A-Z^-~]/);function bs(e){return e!==null&&(e<32||e===127)}const Ou=yr(/\d/),NT=yr(/[\dA-Fa-f]/),MT=yr(/[!-/:-@[-`{-~]/);function he(e){return e!==null&&e<-2}function Ye(e){return e!==null&&(e<0||e===32)}function Re(e){return e===-2||e===-1||e===32}const Us=yr(new RegExp("\\p{P}|\\p{S}","u")),Pr=yr(/\s/);function yr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function gi(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Ne(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(u){return Re(u)?(e.enter(n),o(u)):t(u)}function o(u){return Re(u)&&a++s))return;const V=t.events.length;let U=V,q,B;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){if(q){B=t.events[U][1].end;break}q=!0}for(T(r),k=V;kv;){const P=n[_];t.containerState=P[1],P[0].exit.call(t,e)}n.length=v}function S(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function PT(e,t,n){return Ne(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function oi(e){if(e===null||Ye(e)||Pr(e))return 1;if(Us(e))return 2}function Vs(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},m={...e[n][1].start};qd(d,-u),qd(m,u),s={type:u>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:m},a={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=un(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=un(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),l=un(l,Vs(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=un(l,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=un(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,nn(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n0&&Re(k)?Ne(e,S,"linePrefix",a+1)(k):S(k)}function S(k){return k===null||he(k)?e.check($d,E,_)(k):(e.enter("codeFlowValue"),v(k))}function v(k){return k===null||he(k)?(e.exit("codeFlowValue"),S(k)):(e.consume(k),v)}function _(k){return e.exit("codeFenced"),t(k)}function P(k,V,U){let q=0;return B;function B(W){return k.enter("lineEnding"),k.consume(W),k.exit("lineEnding"),K}function K(W){return k.enter("codeFencedFence"),Re(W)?Ne(k,Y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):Y(W)}function Y(W){return W===o?(k.enter("codeFencedFenceSequence"),X(W)):U(W)}function X(W){return W===o?(q++,k.consume(W),X):q>=s?(k.exit("codeFencedFenceSequence"),Re(W)?Ne(k,j,"whitespace")(W):j(W)):U(W)}function j(W){return W===null||he(W)?(k.exit("codeFencedFence"),V(W)):U(W)}}}function YT(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const ko={name:"codeIndented",tokenize:KT},GT={partial:!0,tokenize:XT};function KT(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),Ne(e,a,"linePrefix",5)(l)}function a(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?u(l):he(l)?e.attempt(GT,s,u)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||he(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function u(l){return e.exit("codeIndented"),t(l)}}function XT(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):he(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Ne(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):he(s)?i(s):n(s)}}const QT={name:"codeText",previous:JT,resolve:ZT,tokenize:eE};function ZT(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Mi(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Mi(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Mi(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function op(e,t,n,r,i,a,s,o,u){const l=u||Number.POSITIVE_INFINITY;let c=0;return d;function d(T){return T===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(T),e.exit(a),m):T===null||T===32||T===41||bs(T)?n(T):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),E(T))}function m(T){return T===62?(e.enter(a),e.consume(T),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(T))}function p(T){return T===62?(e.exit("chunkString"),e.exit(o),m(T)):T===null||T===60||he(T)?n(T):(e.consume(T),T===92?b:p)}function b(T){return T===60||T===62||T===92?(e.consume(T),p):p(T)}function E(T){return!c&&(T===null||T===41||Ye(T))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(T)):c999||p===null||p===91||p===93&&!u||p===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):he(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||he(p)||o++>999?(e.exit("chunkString"),c(p)):(e.consume(p),u||(u=!Re(p)),p===92?m:d)}function m(p){return p===91||p===92||p===93?(e.consume(p),o++,d):d(p)}}function lp(e,t,n,r,i,a){let s;return o;function o(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),s=m===40?41:m,u):n(m)}function u(m){return m===s?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(a),l(m))}function l(m){return m===s?(e.exit(a),u(s)):m===null?n(m):he(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Ne(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(m))}function c(m){return m===s||m===null||he(m)?(e.exit("chunkString"),l(m)):(e.consume(m),m===92?d:c)}function d(m){return m===s||m===92?(e.consume(m),c):c(m)}}function $i(e,t){let n;return r;function r(i){return he(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Re(i)?Ne(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const uE={name:"definition",tokenize:cE},lE={partial:!0,tokenize:dE};function cE(e,t,n){const r=this;let i;return a;function a(p){return e.enter("definition"),s(p)}function s(p){return up.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return i=yn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):n(p)}function u(p){return Ye(p)?$i(e,l)(p):l(p)}function l(p){return op(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(lE,d,d)(p)}function d(p){return Re(p)?Ne(e,m,"whitespace")(p):m(p)}function m(p){return p===null||he(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function dE(e,t,n){return r;function r(o){return Ye(o)?$i(e,i)(o):n(o)}function i(o){return lp(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return Re(o)?Ne(e,s,"whitespace")(o):s(o)}function s(o){return o===null||he(o)?t(o):n(o)}}const hE={name:"hardBreakEscape",tokenize:fE};function fE(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return he(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const mE={name:"headingAtx",resolve:pE,tokenize:gE};function pE(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},nn(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function gE(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Ye(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||he(c)?(e.exit("atxHeading"),t(c)):Re(c)?Ne(e,o,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),o(c))}function l(c){return c===null||c===35||Ye(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),l)}}const bE=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Yd=["pre","script","style","textarea"],yE={concrete:!0,name:"htmlFlow",resolveTo:xE,tokenize:vE},TE={partial:!0,tokenize:AE},EE={partial:!0,tokenize:SE};function xE(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function vE(e,t,n){const r=this;let i,a,s,o,u;return l;function l(D){return c(D)}function c(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),d}function d(D){return D===33?(e.consume(D),m):D===47?(e.consume(D),a=!0,E):D===63?(e.consume(D),i=3,r.interrupt?t:I):Ft(D)?(e.consume(D),s=String.fromCharCode(D),C):n(D)}function m(D){return D===45?(e.consume(D),i=2,p):D===91?(e.consume(D),i=5,o=0,b):Ft(D)?(e.consume(D),i=4,r.interrupt?t:I):n(D)}function p(D){return D===45?(e.consume(D),r.interrupt?t:I):n(D)}function b(D){const _e="CDATA[";return D===_e.charCodeAt(o++)?(e.consume(D),o===_e.length?r.interrupt?t:Y:b):n(D)}function E(D){return Ft(D)?(e.consume(D),s=String.fromCharCode(D),C):n(D)}function C(D){if(D===null||D===47||D===62||Ye(D)){const _e=D===47,Ue=s.toLowerCase();return!_e&&!a&&Yd.includes(Ue)?(i=1,r.interrupt?t(D):Y(D)):bE.includes(s.toLowerCase())?(i=6,_e?(e.consume(D),T):r.interrupt?t(D):Y(D)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(D):a?S(D):v(D))}return D===45||Dt(D)?(e.consume(D),s+=String.fromCharCode(D),C):n(D)}function T(D){return D===62?(e.consume(D),r.interrupt?t:Y):n(D)}function S(D){return Re(D)?(e.consume(D),S):B(D)}function v(D){return D===47?(e.consume(D),B):D===58||D===95||Ft(D)?(e.consume(D),_):Re(D)?(e.consume(D),v):B(D)}function _(D){return D===45||D===46||D===58||D===95||Dt(D)?(e.consume(D),_):P(D)}function P(D){return D===61?(e.consume(D),k):Re(D)?(e.consume(D),P):v(D)}function k(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),u=D,V):Re(D)?(e.consume(D),k):U(D)}function V(D){return D===u?(e.consume(D),u=null,q):D===null||he(D)?n(D):(e.consume(D),V)}function U(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||Ye(D)?P(D):(e.consume(D),U)}function q(D){return D===47||D===62||Re(D)?v(D):n(D)}function B(D){return D===62?(e.consume(D),K):n(D)}function K(D){return D===null||he(D)?Y(D):Re(D)?(e.consume(D),K):n(D)}function Y(D){return D===45&&i===2?(e.consume(D),ne):D===60&&i===1?(e.consume(D),le):D===62&&i===4?(e.consume(D),De):D===63&&i===3?(e.consume(D),I):D===93&&i===5?(e.consume(D),oe):he(D)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(TE,Ae,X)(D)):D===null||he(D)?(e.exit("htmlFlowData"),X(D)):(e.consume(D),Y)}function X(D){return e.check(EE,j,Ae)(D)}function j(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),W}function W(D){return D===null||he(D)?X(D):(e.enter("htmlFlowData"),Y(D))}function ne(D){return D===45?(e.consume(D),I):Y(D)}function le(D){return D===47?(e.consume(D),s="",fe):Y(D)}function fe(D){if(D===62){const _e=s.toLowerCase();return Yd.includes(_e)?(e.consume(D),De):Y(D)}return Ft(D)&&s.length<8?(e.consume(D),s+=String.fromCharCode(D),fe):Y(D)}function oe(D){return D===93?(e.consume(D),I):Y(D)}function I(D){return D===62?(e.consume(D),De):D===45&&i===2?(e.consume(D),I):Y(D)}function De(D){return D===null||he(D)?(e.exit("htmlFlowData"),Ae(D)):(e.consume(D),De)}function Ae(D){return e.exit("htmlFlow"),t(D)}}function SE(e,t,n){const r=this;return i;function i(s){return he(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function AE(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ea,t,n)}}const CE={name:"htmlText",tokenize:wE};function wE(e,t,n){const r=this;let i,a,s;return o;function o(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),u}function u(I){return I===33?(e.consume(I),l):I===47?(e.consume(I),P):I===63?(e.consume(I),v):Ft(I)?(e.consume(I),U):n(I)}function l(I){return I===45?(e.consume(I),c):I===91?(e.consume(I),a=0,b):Ft(I)?(e.consume(I),S):n(I)}function c(I){return I===45?(e.consume(I),p):n(I)}function d(I){return I===null?n(I):I===45?(e.consume(I),m):he(I)?(s=d,le(I)):(e.consume(I),d)}function m(I){return I===45?(e.consume(I),p):d(I)}function p(I){return I===62?ne(I):I===45?m(I):d(I)}function b(I){const De="CDATA[";return I===De.charCodeAt(a++)?(e.consume(I),a===De.length?E:b):n(I)}function E(I){return I===null?n(I):I===93?(e.consume(I),C):he(I)?(s=E,le(I)):(e.consume(I),E)}function C(I){return I===93?(e.consume(I),T):E(I)}function T(I){return I===62?ne(I):I===93?(e.consume(I),T):E(I)}function S(I){return I===null||I===62?ne(I):he(I)?(s=S,le(I)):(e.consume(I),S)}function v(I){return I===null?n(I):I===63?(e.consume(I),_):he(I)?(s=v,le(I)):(e.consume(I),v)}function _(I){return I===62?ne(I):v(I)}function P(I){return Ft(I)?(e.consume(I),k):n(I)}function k(I){return I===45||Dt(I)?(e.consume(I),k):V(I)}function V(I){return he(I)?(s=V,le(I)):Re(I)?(e.consume(I),V):ne(I)}function U(I){return I===45||Dt(I)?(e.consume(I),U):I===47||I===62||Ye(I)?q(I):n(I)}function q(I){return I===47?(e.consume(I),ne):I===58||I===95||Ft(I)?(e.consume(I),B):he(I)?(s=q,le(I)):Re(I)?(e.consume(I),q):ne(I)}function B(I){return I===45||I===46||I===58||I===95||Dt(I)?(e.consume(I),B):K(I)}function K(I){return I===61?(e.consume(I),Y):he(I)?(s=K,le(I)):Re(I)?(e.consume(I),K):q(I)}function Y(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),i=I,X):he(I)?(s=Y,le(I)):Re(I)?(e.consume(I),Y):(e.consume(I),j)}function X(I){return I===i?(e.consume(I),i=void 0,W):I===null?n(I):he(I)?(s=X,le(I)):(e.consume(I),X)}function j(I){return I===null||I===34||I===39||I===60||I===61||I===96?n(I):I===47||I===62||Ye(I)?q(I):(e.consume(I),j)}function W(I){return I===47||I===62||Ye(I)?q(I):n(I)}function ne(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),t):n(I)}function le(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),fe}function fe(I){return Re(I)?Ne(e,oe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):oe(I)}function oe(I){return e.enter("htmlTextData"),s(I)}}const e0={name:"labelEnd",resolveAll:ME,resolveTo:RE,tokenize:DE},kE={tokenize:_E},IE={tokenize:LE},NE={tokenize:PE};function ME(e){let t=-1;const n=[];for(;++t=3&&(l===null||he(l))?(e.exit("thematicBreak"),t(l)):n(l)}function u(l){return l===i?(e.consume(l),r++,u):(e.exit("thematicBreakSequence"),Re(l)?Ne(e,o,"whitespace")(l):o(l))}}const Wt={continuation:{tokenize:$E},exit:YE,name:"list",tokenize:qE},VE={partial:!0,tokenize:GE},jE={partial:!0,tokenize:WE};function qE(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(p){const b=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Ou(p)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(is,n,l)(p):l(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return n(p)}function u(p){return Ou(p)&&++s<10?(e.consume(p),u):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):n(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Ea,r.interrupt?n:c,e.attempt(VE,m,d))}function c(p){return r.containerState.initialBlankLine=!0,a++,m(p)}function d(p){return Re(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),m):n(p)}function m(p){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function $E(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ea,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ne(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!Re(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(jE,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ne(e,e.attempt(Wt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function WE(e,t,n){const r=this;return Ne(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function YE(e){e.exit(this.containerState.type)}function GE(e,t,n){const r=this;return Ne(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!Re(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Gd={name:"setextUnderline",resolveTo:KE,tokenize:XE};function KE(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function XE(e,t,n){const r=this;let i;return a;function a(l){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===i?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),Re(l)?Ne(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||he(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const QE={tokenize:ZE};function ZE(e){const t=this,n=e.attempt(Ea,r,e.attempt(this.parser.constructs.flowInitial,i,Ne(e,e.attempt(this.parser.constructs.flow,i,e.attempt(rE,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const JE={resolveAll:dp()},ex=cp("string"),tx=cp("text");function cp(e){return{resolveAll:dp(e==="text"?nx:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(c){return l(c)?a(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return l(c)?(n.exit("data"),a(c)):(n.consume(c),u)}function l(c){if(c===null)return!0;const d=i[c];let m=-1;if(d)for(;++m-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function px(e,t){let n=-1;const r=[];let i;for(;++n{const{open:t,onClose:n=()=>{},titleId:r,title:i,contentId:a,content:s,color:o="primary",titleIconColor:u="warning",titleIcon:l=!0,cancelLabel:c,onCancel:d=()=>{},confirmLabel:m,onConfirm:p=()=>{},submitLabel:b,onSubmitValid:E,onSubmitInvalid:C,handleSubmit:T,secondaryAction:S,...v}=e,_=B5[o],[P,k]=O.useState(!1),V=Y=>!(Y===!1||typeof Y=="object"&&Y.closeDialog===!1),U=Y=>async(...X)=>{if(!P)try{const j=Y(...X);if(j instanceof Promise){k(!0);const W=await j;k(!1),V(W)&&n()}else V(j)&&n()}catch(j){k(!1),console.error("Error in dialog action:",j)}};let q;const B=[];c&&B.push({key:"cancel",children:c,color:"secondary",onClick:U(d),loading:P}),m&&B.push({key:"confirm",children:m,color:o,onClick:U(p),loading:P}),b&&(B.push({key:"submit",children:b,type:"submit",loading:P}),T&&E&&(q={onSubmit:Y=>{Y.preventDefault(),Y.stopPropagation(),!P&&(k(!0),T(async(...X)=>{try{const j=await E(...X);k(!1),V(j)&&n()}catch(j){k(!1),console.error("Error in form submission:",j)}},async(...X)=>{try{await C?.(...X)}catch(j){console.error("Error in form validation:",j)}finally{k(!1)}})())}}));const K=()=>{P||n()};return L.jsxs(b6,{open:t,onClose:K,"aria-labelledby":r,"aria-describedby":a,...v,component:q&&"form"||void 0,...q,children:[L.jsxs(R6,{id:!_&&r||void 0,children:[l==="form"&&L.jsx(x3,{})||l===!0&&L.jsx(j0,{variant:"circle",color:u,children:L.jsx(_,{})})||L.jsx(j0,{variant:"circle",color:u,children:l})||void 0,!l&&i,L.jsx(ul,{size:"small",onClick:K,children:L.jsx(B1,{size:"1.25rem"})})]}),L.jsxs(A6,{children:[l&&L.jsx(Ve,{variant:"subtitle1",id:r,children:i}),L.jsx(I6,{id:a,children:s})]}),B.length>0&&L.jsxs(x6,{children:[L.jsx(ci,{mr:"auto",children:S}),B.map(Y=>O.createElement(ls,{...Y,key:Y.key,...B.length===1&&{fullWidth:!0}}))]})]})},so=(e,t)=>{const[n,r]=O.useState(!1),i=L.jsx(F5,{...e,open:n,onClose:()=>{r(!1),e.onClose?.()}}),a=O.useMemo(()=>({open:()=>r(!0),close:()=>r(!1)}),[]);return[i,a]},H5=()=>L.jsxs("svg",{width:"130",height:"30",viewBox:"0 0 130 30",fill:"currentColor",children:[L.jsx("path",{d:"M26.2097 15.5517C26.2097 10.4948 29.0713 7.95158 32.7786 7.95158C35.4147 7.95158 36.7961 9.20112 37.4445 10.2889H37.7265V8.28969H40.1369V22.6814C40.1369 27.018 37.952 29.5024 33.3848 29.5024C28.9162 29.5024 26.83 27.1356 26.5903 24.6071V24.1661H28.888C29.029 25.9302 30.2836 27.5325 33.3425 27.5325C36.4155 27.5325 37.656 25.8861 37.656 22.7843V20.9026H37.3741C36.6833 21.9758 35.3442 23.1371 32.7786 23.1371C29.0713 23.1371 26.2097 20.6086 26.2097 15.5517ZM28.7189 15.5517C28.7189 19.1386 30.5373 21.1084 33.2297 21.1084C35.9221 21.1084 37.7406 19.1386 37.7406 15.5517C37.7406 11.9648 35.9221 9.99494 33.2297 9.99494C30.5373 9.99494 28.7189 11.9648 28.7189 15.5517ZM43.7132 23.2694V8.28969H46.1237V10.4065H46.4056C47.0118 9.12762 48.1958 7.84868 51.142 8.15739V10.3918C48.1677 10.0684 46.1942 11.1563 46.1942 14.9196V23.2694H43.7132ZM55.1754 12.6116H52.8776V12.1706C53.1737 9.55393 55.4714 7.93688 58.925 7.93688C62.3786 7.93688 64.6481 9.55393 64.6481 13.2878V20.2264C64.6481 20.9908 65.0005 21.373 65.7336 21.373H66.537V23.2694H65.3248C63.5909 23.2694 62.7592 22.3433 62.6746 20.9467H62.3927C61.6456 22.3874 60.2501 23.5928 57.3885 23.5928C54.3014 23.5928 52.1446 21.7847 52.1446 19.0945C52.1446 16.1544 54.3437 14.9343 57.1348 14.655L60.4615 14.3316C61.6456 14.214 62.2799 13.8758 62.2799 12.7292C62.2799 10.8182 61.0536 9.86263 58.8827 9.86263C56.7119 9.86263 55.2599 10.7888 55.1754 12.6116ZM54.5974 19.0063C54.5974 20.6086 55.8802 21.667 57.7832 21.667C60.0668 21.667 62.294 20.2705 62.294 16.6542V15.6546H62.0121C61.5751 15.9339 61.1522 16.0956 59.8836 16.2279L57.6986 16.4484C55.7251 16.6689 54.5974 17.3745 54.5974 19.0063ZM81.7299 2.10083V23.2694H79.3194V21.1378H79.0375C78.3747 22.3433 76.951 23.6075 74.2304 23.6075C70.4948 23.6075 67.6333 20.9614 67.6333 15.7869C67.6333 10.5977 70.4948 7.95158 74.2304 7.95158C76.951 7.95158 78.3324 9.21582 78.9668 10.3183H79.2489V2.10083H81.7299ZM79.3335 15.7869C79.3335 12.053 77.4726 9.99494 74.7379 9.99494C72.0032 9.99494 70.1424 12.053 70.1424 15.7869C70.1424 19.5061 72.0032 21.5641 74.7379 21.5641C77.4726 21.5641 79.3335 19.5061 79.3335 15.7869ZM85.2595 5.57012V2.48304H87.8109V5.57012H85.2595ZM85.3018 23.2694V8.28969H87.7827V23.2694H85.3018ZM90.4861 15.7722C90.4861 10.6859 93.1503 7.93688 97.3651 7.93688C101.608 7.93688 103.906 10.7153 103.906 15.1254V16.3308H92.8966C92.953 19.6237 94.6022 21.667 97.3651 21.667C99.9871 21.667 101.157 20.0206 101.383 18.58H103.596V19.021C103.286 20.8585 101.679 23.6222 97.3792 23.6222C93.1644 23.6222 90.4861 20.8732 90.4861 15.7722ZM92.9389 14.4492H101.524C101.495 11.7149 100.114 9.89204 97.351 9.89204C94.6445 9.89204 93.1362 11.7443 92.9389 14.4492ZM106.613 23.2694V8.28969H109.024V10.4065H109.306C109.785 9.45102 110.997 7.95158 113.957 7.95158C117.115 7.95158 119.201 9.75973 119.201 13.1996V23.2694H116.72V13.376C116.72 11.024 115.381 9.98024 113.365 9.98024C111.068 9.98024 109.094 11.5091 109.094 14.6256V23.2694H106.613ZM120.923 10.186V8.28969H123.784V4.15888H126.251V8.28969H129.564V10.186H126.251V19.9618C126.251 20.7997 126.617 21.2701 127.52 21.2701H129.479V23.2694H127.069C124.968 23.2694 123.784 22.1816 123.784 20.0059V10.186H120.923Z"}),L.jsx("path",{d:"M18.0703 2.45142L10.571 23.4436H7.5481L15.0474 2.45142H18.0703Z"}),L.jsx("path",{d:"M0 23.6859V20.4192H3.13253V23.6859H0Z"})]}),z5=()=>L.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("path",{d:"M18.8379 5.25L13.7788 18.8297H11.2112L16.2703 5.25H18.8379Z",fill:"currentColor"}),L.jsx("path",{d:"M5.0625 18.8297V15.8246H7.97243V18.8297H5.0625Z",fill:"currentColor"})]}),U5=ue(af)(({theme:e})=>{const{spacing:t}=e;return{height:"4rem"}}),V5=ue(vg)(({theme:e})=>{const{spacing:t}=e;return{height:"3.25rem",gap:"0.5rem"}}),j5=ue("img")(({theme:e})=>{const{palette:t}=e;return{width:"2.25rem",height:"2.25rem",borderRadius:"0.5rem",border:`1px solid ${t.divider}`,objectFit:"cover"}}),q5=ue("span")(({theme:e})=>{const{palette:t,typography:n}=e;return{...n.subtitle2,fontWeight:n.fontWeightLight,color:t.text.primary}}),$5=ue("span")(({theme:e})=>{const{palette:t,typography:n}=e;return{...n.body2,fontWeight:n.fontWeightLight,color:t.text.secondary}}),pc=(e,t)=>L.jsxs(V5,{value:e.name,children:[L.jsx(j5,{src:e.logoUrl}),L.jsxs(Je,{gap:.25,children:[L.jsx(q5,{children:e.displayName}),L.jsx($5,{children:e.name})]})]},e.name),_R=()=>{const[{modelName:e,modelInfoList:t},{setModelName:n}]=fa();return L.jsx(U5,{value:e,onChange:r=>n(String(r.target.value)),renderValue:r=>{const i=t.find(a=>a.name===r);return i&&pc(i)||void 0},children:t.map(r=>pc(r,r.name===e))})},W5={"linux/mac":"Linux/MacOS",windows:"Windows"},Y5=ue("div")(({theme:e})=>{const{palette:t,spacing:n}=e;return{display:"flex",flexFlow:"row nowrap",justifyContent:"space-between",alignItems:"center",paddingInline:n(2),paddingBlock:n(1.5),gap:n(1),overflow:"hidden",borderRadius:"0.7rem",backgroundColor:t.background.area}}),gc=()=>{const[{clusterInfo:{nodeJoinCommand:e}}]=fa(),[t,n]=O.useState();O.useEffect(()=>{if(t){const i=setTimeout(()=>{n(void 0)},2e3);return()=>clearTimeout(i)}},[t]);const r=cs(async i=>{await navigator.clipboard.writeText(e[i]),n(i)});return L.jsx(Je,{gap:1,children:Object.entries(e).map(([i,a])=>L.jsxs(Je,{gap:1,children:[L.jsxs(Ve,{variant:"subtitle2",children:["For ",W5[i]||i,":"]}),L.jsxs(Y5,{children:[L.jsx(Ve,{sx:{flex:1,lineHeight:"1.125rem",whiteSpace:"wrap"},variant:"pre",children:a}),L.jsx(ul,{sx:{flex:"none",fontSize:"1.5rem"},size:"em",onClick:()=>r(i),children:t===i&&L.jsx(of,{})||L.jsx(uf,{})})]})]},i))})};function ml(e,t){e.indexOf(t)===-1&&e.push(t)}function pl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Yn=(e,t,n)=>n>t?t:n{};const Gn={},lf=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function cf(e){return typeof e=="object"&&e!==null}const df=e=>/^0[^.\s]+$/u.test(e);function bl(e){let t;return()=>(t===void 0&&(t=e()),t)}const dn=e=>e,G5=(e,t)=>n=>t(e(n)),pa=(...e)=>e.reduce(G5),ta=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class yl{constructor(){this.subscriptions=[]}add(t){return ml(this.subscriptions,t),()=>pl(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;ae*1e3,Mn=e=>e/1e3;function hf(e,t){return t?e*(1e3/t):0}const ff=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,K5=1e-7,X5=12;function Q5(e,t,n,r,i){let a,s,o=0;do s=t+(n-t)/2,a=ff(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>K5&&++oQ5(a,0,1,e,n);return a=>a===0||a===1?a:ff(i(a),t,r)}const mf=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,pf=e=>t=>1-e(1-t),gf=ga(.33,1.53,.69,.99),Tl=pf(gf),bf=mf(Tl),yf=e=>(e*=2)<1?.5*Tl(e):.5*(2-Math.pow(2,-10*(e-1))),El=e=>1-Math.sin(Math.acos(e)),Tf=pf(El),Ef=mf(El),Z5=ga(.42,0,1,1),J5=ga(0,0,.58,1),xf=ga(.42,0,.58,1),e7=e=>Array.isArray(e)&&typeof e[0]!="number",vf=e=>Array.isArray(e)&&typeof e[0]=="number",t7={linear:dn,easeIn:Z5,easeInOut:xf,easeOut:J5,circIn:El,circInOut:Ef,circOut:Tf,backIn:Tl,backInOut:bf,backOut:gf,anticipate:yf},n7=e=>typeof e=="string",bc=e=>{if(vf(e)){gl(e.length===4);const[t,n,r,i]=e;return ga(t,n,r,i)}else if(n7(e))return t7[e];return e},Sf=O.createContext({}),Af=O.createContext({strict:!1}),Cf=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Os=O.createContext({});function Bs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function na(e){return typeof e=="string"||Array.isArray(e)}const xl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],vl=["initial",...xl];function Fs(e){return Bs(e.animate)||vl.some(t=>na(e[t]))}function wf(e){return!!(Fs(e)||e.variants)}function r7(e,t){if(Fs(e)){const{initial:n,animate:r}=e;return{initial:n===!1||na(n)?n:void 0,animate:na(r)?r:void 0}}return e.inherit!==!1?t:{}}function i7(e){const{initial:t,animate:n}=r7(e,O.useContext(Os));return O.useMemo(()=>({initial:t,animate:n}),[yc(t),yc(n)])}function yc(e){return Array.isArray(e)?e.join(" "):e}const Pa=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function a7(e,t){let n=new Set,r=new Set,i=!1,a=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function u(c){s.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,d=!1,m=!1)=>{const b=m&&i?n:r;return d&&s.add(c),b.has(c)||b.add(c),c},cancel:c=>{r.delete(c),s.delete(c)},process:c=>{if(o=c,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),n.clear(),i=!1,a&&(a=!1,l.process(c))}};return l}const s7=40;function kf(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=Pa.reduce((v,_)=>(v[_]=a7(a),v),{}),{setup:o,read:u,resolveKeyframes:l,preUpdate:c,update:d,preRender:m,render:p,postRender:b}=s,E=()=>{const v=Gn.useManualTiming?i.timestamp:performance.now();n=!1,Gn.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(v-i.timestamp,s7),1)),i.timestamp=v,i.isProcessing=!0,o.process(i),u.process(i),l.process(i),c.process(i),d.process(i),m.process(i),p.process(i),b.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(E))},C=()=>{n=!0,r=!0,i.isProcessing||e(E)};return{schedule:Pa.reduce((v,_)=>{const P=s[_];return v[_]=(k,V=!1,U=!1)=>(n||C(),P.schedule(k,V,U)),v},{}),cancel:v=>{for(let _=0;_(es===void 0&&Gt.set(It.isProcessing||Gn.useManualTiming?It.timestamp:performance.now()),es),set:e=>{es=e,queueMicrotask(o7)}},If=e=>t=>typeof t=="string"&&t.startsWith(e),Sl=If("--"),u7=If("var(--"),Al=e=>u7(e)?l7.test(e.split("/*")[0].trim()):!1,l7=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,di={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ra={...di,transform:e=>Yn(0,1,e)},Oa={...di,default:1},Hi=e=>Math.round(e*1e5)/1e5,Cl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function c7(e){return e==null}const d7=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,wl=(e,t)=>n=>!!(typeof n=="string"&&d7.test(n)&&n.startsWith(e)||t&&!c7(n)&&Object.prototype.hasOwnProperty.call(n,t)),Nf=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,o]=r.match(Cl);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},h7=e=>Yn(0,255,e),uo={...di,transform:e=>Math.round(h7(e))},Nr={test:wl("rgb","red"),parse:Nf("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+uo.transform(e)+", "+uo.transform(t)+", "+uo.transform(n)+", "+Hi(ra.transform(r))+")"};function f7(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const hu={test:wl("#"),parse:f7,transform:Nr.transform},ba=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),sr=ba("deg"),Rn=ba("%"),Ee=ba("px"),m7=ba("vh"),p7=ba("vw"),Tc={...Rn,parse:e=>Rn.parse(e)/100,transform:e=>Rn.transform(e*100)},Kr={test:wl("hsl","hue"),parse:Nf("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Rn.transform(Hi(t))+", "+Rn.transform(Hi(n))+", "+Hi(ra.transform(r))+")"},yt={test:e=>Nr.test(e)||hu.test(e)||Kr.test(e),parse:e=>Nr.test(e)?Nr.parse(e):Kr.test(e)?Kr.parse(e):hu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Nr.transform(e):Kr.transform(e),getAnimatableNone:e=>{const t=yt.parse(e);return t.alpha=0,yt.transform(t)}},g7=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function b7(e){return isNaN(e)&&typeof e=="string"&&(e.match(Cl)?.length||0)+(e.match(g7)?.length||0)>0}const Mf="number",Rf="color",y7="var",T7="var(",Ec="${}",E7=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ia(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(E7,u=>(yt.test(u)?(r.color.push(a),i.push(Rf),n.push(yt.parse(u))):u.startsWith(T7)?(r.var.push(a),i.push(y7),n.push(u)):(r.number.push(a),i.push(Mf),n.push(parseFloat(u))),++a,Ec)).split(Ec);return{values:n,split:o,indexes:r,types:i}}function Df(e){return ia(e).values}function _f(e){const{split:t,types:n}=ia(e),r=t.length;return i=>{let a="";for(let s=0;stypeof e=="number"?0:yt.test(e)?yt.getAnimatableNone(e):e;function v7(e){const t=Df(e);return _f(e)(t.map(x7))}const fr={test:b7,parse:Df,createTransformer:_f,getAnimatableNone:v7};function lo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function S7({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,u=2*n-o;i=lo(u,o,e+1/3),a=lo(u,o,e),s=lo(u,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function hs(e,t){return n=>n>0?t:e}const ot=(e,t,n)=>e+(t-e)*n,co=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},A7=[hu,Nr,Kr],C7=e=>A7.find(t=>t.test(e));function xc(e){const t=C7(e);if(!t)return!1;let n=t.parse(e);return t===Kr&&(n=S7(n)),n}const vc=(e,t)=>{const n=xc(e),r=xc(t);if(!n||!r)return hs(e,t);const i={...n};return a=>(i.red=co(n.red,r.red,a),i.green=co(n.green,r.green,a),i.blue=co(n.blue,r.blue,a),i.alpha=ot(n.alpha,r.alpha,a),Nr.transform(i))},fu=new Set(["none","hidden"]);function w7(e,t){return fu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function k7(e,t){return n=>ot(e,t,n)}function kl(e){return typeof e=="number"?k7:typeof e=="string"?Al(e)?hs:yt.test(e)?vc:M7:Array.isArray(e)?Lf:typeof e=="object"?yt.test(e)?vc:I7:hs}function Lf(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>kl(a)(a,t[s]));return a=>{for(let s=0;s{for(const a in r)n[a]=r[a](i);return n}}function N7(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=fr.createTransformer(t),r=ia(e),i=ia(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?fu.has(e)&&!i.values.length||fu.has(t)&&!r.values.length?w7(e,t):pa(Lf(N7(r,i),i.values),n):hs(e,t)};function Pf(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ot(e,t,n):kl(e)(e,t)}const R7=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>rt.update(t,n),stop:()=>hr(t),now:()=>It.isProcessing?It.timestamp:Gt.now()}},Of=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a=fs?1/0:t}function D7(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Il(r),fs);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:Mn(i)}}const _7=5;function Bf(e,t,n){const r=Math.max(t-_7,0);return hf(n-e(r),t-r)}const ct={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ho=.001;function L7({duration:e=ct.duration,bounce:t=ct.bounce,velocity:n=ct.velocity,mass:r=ct.mass}){let i,a,s=1-t;s=Yn(ct.minDamping,ct.maxDamping,s),e=Yn(ct.minDuration,ct.maxDuration,Mn(e)),s<1?(i=l=>{const c=l*s,d=c*e,m=c-n,p=mu(l,s),b=Math.exp(-d);return ho-m/p*b},a=l=>{const d=l*s*e,m=d*n+n,p=Math.pow(s,2)*Math.pow(l,2)*e,b=Math.exp(-d),E=mu(Math.pow(l,2),s);return(-i(l)+ho>0?-1:1)*((m-p)*b)/E}):(i=l=>{const c=Math.exp(-l*e),d=(l-n)*e+1;return-ho+c*d},a=l=>{const c=Math.exp(-l*e),d=(n-l)*(e*e);return c*d});const o=5/e,u=O7(i,a,o);if(e=Nn(e),isNaN(u))return{stiffness:ct.stiffness,damping:ct.damping,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const P7=12;function O7(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function H7(e){let t={velocity:ct.velocity,stiffness:ct.stiffness,damping:ct.damping,mass:ct.mass,isResolvedFromDuration:!1,...e};if(!Sc(e,F7)&&Sc(e,B7))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Yn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ct.mass,stiffness:i,damping:a}}else{const n=L7(e);t={...t,...n,mass:ct.mass},t.isResolvedFromDuration=!0}return t}function ms(e=ct.visualDuration,t=ct.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:a},{stiffness:u,damping:l,mass:c,duration:d,velocity:m,isResolvedFromDuration:p}=H7({...n,velocity:-Mn(n.velocity||0)}),b=m||0,E=l/(2*Math.sqrt(u*c)),C=s-a,T=Mn(Math.sqrt(u/c)),S=Math.abs(C)<5;r||(r=S?ct.restSpeed.granular:ct.restSpeed.default),i||(i=S?ct.restDelta.granular:ct.restDelta.default);let v;if(E<1){const P=mu(T,E);v=k=>{const V=Math.exp(-E*T*k);return s-V*((b+E*T*C)/P*Math.sin(P*k)+C*Math.cos(P*k))}}else if(E===1)v=P=>s-Math.exp(-T*P)*(C+(b+T*C)*P);else{const P=T*Math.sqrt(E*E-1);v=k=>{const V=Math.exp(-E*T*k),U=Math.min(P*k,300);return s-V*((b+E*T*C)*Math.sinh(U)+P*C*Math.cosh(U))/P}}const _={calculatedDuration:p&&d||null,next:P=>{const k=v(P);if(p)o.done=P>=d;else{let V=P===0?b:0;E<1&&(V=P===0?Nn(b):Bf(v,P,k));const U=Math.abs(V)<=r,q=Math.abs(s-k)<=i;o.done=U&&q}return o.value=o.done?s:k,o},toString:()=>{const P=Math.min(Il(_),fs),k=Of(V=>_.next(P*V).value,P,30);return P+"ms "+k},toTransition:()=>{}};return _}ms.applyToOptions=e=>{const t=D7(e,100,ms);return e.ease=t.ease,e.duration=Nn(t.duration),e.type="keyframes",e};function pu({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:u,restDelta:l=.5,restSpeed:c}){const d=e[0],m={done:!1,value:d},p=U=>o!==void 0&&Uu,b=U=>o===void 0?u:u===void 0||Math.abs(o-U)-E*Math.exp(-U/r),v=U=>T+S(U),_=U=>{const q=S(U),B=v(U);m.done=Math.abs(q)<=l,m.value=m.done?T:B};let P,k;const V=U=>{p(m.value)&&(P=U,k=ms({keyframes:[m.value,b(m.value)],velocity:Bf(v,U,m.value),damping:i,stiffness:a,restDelta:l,restSpeed:c}))};return V(0),{calculatedDuration:null,next:U=>{let q=!1;return!k&&P===void 0&&(q=!0,_(U),V(U)),P!==void 0&&U>=P?k.next(U-P):(!q&&_(U),m)}}}function z7(e,t,n){const r=[],i=n||Gn.mix||Pf,a=e.length-1;for(let s=0;st[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=z7(t,r,i),u=o.length,l=c=>{if(s&&c1)for(;dl(Yn(e[0],e[a-1],c)):l}function V7(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ta(0,t,r);e.push(ot(n,1,i))}}function j7(e){const t=[0];return V7(t,e.length-1),t}function q7(e,t){return e.map(n=>n*t)}function $7(e,t){return e.map(()=>t||xf).splice(0,e.length-1)}function zi({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=e7(r)?r.map(bc):bc(r),a={done:!1,value:t[0]},s=q7(n&&n.length===t.length?n:j7(t),e),o=U7(s,t,{ease:Array.isArray(i)?i:$7(t,i)});return{calculatedDuration:e,next:u=>(a.value=o(u),a.done=u>=e,a)}}const W7=e=>e!==null;function Nl(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(W7),o=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!o||r===void 0?a[o]:r}const Y7={decay:pu,inertia:pu,tween:zi,keyframes:zi,spring:ms};function Ff(e){typeof e.type=="string"&&(e.type=Y7[e.type])}class Ml{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const G7=e=>e/100;class Rl extends Ml{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Gt.now()&&this.tick(Gt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ff(t);const{type:n=zi,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=t;let{keyframes:o}=t;const u=n||zi;u!==zi&&typeof o[0]!="number"&&(this.mixKeyframes=pa(G7,Pf(o[0],o[1])),o=[0,100]);const l=u({...t,keyframes:o});a==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...o].reverse(),velocity:-s})),l.calculatedDuration===null&&(l.calculatedDuration=Il(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:c,repeat:d,repeatType:m,repeatDelay:p,type:b,onUpdate:E,finalKeyframe:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const T=this.currentTime-l*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?T<0:T>i;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,_=r;if(d){const U=Math.min(this.currentTime,i)/o;let q=Math.floor(U),B=U%1;!B&&U>=1&&(B=1),B===1&&q--,q=Math.min(q,d+1),!!(q%2)&&(m==="reverse"?(B=1-B,p&&(B-=p/o)):m==="mirror"&&(_=s)),v=Yn(0,1,B)*o}const P=S?{done:!1,value:c[0]}:_.next(v);a&&(P.value=a(P.value));let{done:k}=P;!S&&u!==null&&(k=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return V&&b!==pu&&(P.value=Nl(c,this.options,C,this.speed)),E&&E(P.value),V&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return Mn(this.calculatedDuration)}get time(){return Mn(this.currentTime)}set time(t){t=Nn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Gt.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Mn(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=R7,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Gt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function K7(e){for(let t=1;te*180/Math.PI,gu=e=>{const t=Mr(Math.atan2(e[1],e[0]));return bu(t)},X7={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:gu,rotateZ:gu,skewX:e=>Mr(Math.atan(e[1])),skewY:e=>Mr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},bu=e=>(e=e%360,e<0&&(e+=360),e),Ac=gu,Cc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),wc=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Q7={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Cc,scaleY:wc,scale:e=>(Cc(e)+wc(e))/2,rotateX:e=>bu(Mr(Math.atan2(e[6],e[5]))),rotateY:e=>bu(Mr(Math.atan2(-e[2],e[0]))),rotateZ:Ac,rotate:Ac,skewX:e=>Mr(Math.atan(e[4])),skewY:e=>Mr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function yu(e){return e.includes("scale")?1:0}function Tu(e,t){if(!e||e==="none")return yu(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Q7,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=X7,i=o}if(!i)return yu(t);const a=r[t],s=i[1].split(",").map(J7);return typeof a=="function"?a(s):s[a]}const Z7=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Tu(n,t)};function J7(e){return parseFloat(e.trim())}const hi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],fi=new Set(hi),kc=e=>e===di||e===Ee,e8=new Set(["x","y","z"]),t8=hi.filter(e=>!e8.has(e));function n8(e){const t=[];return t8.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Rr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Tu(t,"x"),y:(e,{transform:t})=>Tu(t,"y")};Rr.translateX=Rr.x;Rr.translateY=Rr.y;const Dr=new Set;let Eu=!1,xu=!1,vu=!1;function Hf(){if(xu){const e=Array.from(Dr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=n8(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,s])=>{r.getValue(a)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}xu=!1,Eu=!1,Dr.forEach(e=>e.complete(vu)),Dr.clear()}function zf(){Dr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(xu=!0)})}function r8(){vu=!0,zf(),Hf(),vu=!1}class Dl{constructor(t,n,r,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Dr.add(this),Eu||(Eu=!0,rt.read(zf),rt.resolveKeyframes(Hf))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i?.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const o=r.readValue(n,s);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}K7(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Dr.delete(this)}cancel(){this.state==="scheduled"&&(Dr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const i8=e=>e.startsWith("--");function a8(e,t,n){i8(t)?e.style.setProperty(t,n):e.style[t]=n}const s8=bl(()=>window.ScrollTimeline!==void 0),o8={};function u8(e,t){const n=bl(e);return()=>o8[t]??n()}const Uf=u8(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Pi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ic={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Pi([0,.65,.55,1]),circOut:Pi([.55,0,1,.45]),backIn:Pi([.31,.01,.66,-.59]),backOut:Pi([.33,1.53,.69,.99])};function Vf(e,t){if(e)return typeof e=="function"?Uf()?Of(e,t):"ease-out":vf(e)?Pi(e):Array.isArray(e)?e.map(n=>Vf(n,t)||Ic.easeOut):Ic[e]}function l8(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:u}={},l=void 0){const c={[t]:n};u&&(c.offset=u);const d=Vf(o,i);Array.isArray(d)&&(c.easing=d);const m={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return l&&(m.pseudoElement=l),e.animate(c,m)}function jf(e){return typeof e=="function"&&"applyToOptions"in e}function c8({type:e,...t}){return jf(e)&&Uf()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class d8 extends Ml{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:o,onComplete:u}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,gl(typeof t.type!="string");const l=c8(t);this.animation=l8(n,r,i,l,a),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const c=Nl(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(c):a8(n,r,c),this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Mn(Number(t))}get time(){return Mn(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Nn(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&s8()?(this.animation.timeline=t,dn):n(this)}}const qf={anticipate:yf,backInOut:bf,circInOut:Ef};function h8(e){return e in qf}function f8(e){typeof e.ease=="string"&&h8(e.ease)&&(e.ease=qf[e.ease])}const Nc=10;class m8 extends d8{constructor(t){f8(t),Ff(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new Rl({...s,autoplay:!1}),u=Nn(this.finishedTime??this.time);n.setWithVelocity(o.sample(u-Nc).value,o.sample(u).value,Nc),o.stop()}}const Mc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(fr.test(e)||e==="0")&&!e.startsWith("url("));function p8(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function T8(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=t.owner.getProps();return y8()&&n&&b8.has(n)&&(n!=="transform"||!l)&&!u&&!r&&i!=="mirror"&&a!==0&&s!=="inertia"}const E8=40;class x8 extends Ml{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:o,name:u,motionValue:l,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Gt.now();const m={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,name:u,motionValue:l,element:c,...d},p=c?.KeyframeResolver||Dl;this.keyframeResolver=new p(o,(b,E,C)=>this.onKeyframesResolved(b,E,m,!C),u,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:s,velocity:o,delay:u,isHandoff:l,onUpdate:c}=r;this.resolvedAt=Gt.now(),g8(t,a,s,o)||((Gn.instantAnimations||!u)&&c?.(Nl(t,r,n)),t[0]=t[t.length-1],Su(r),r.repeat=0);const m={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>E8?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!l&&T8(m)?new m8({...m,element:m.motionValue.owner.current}):new Rl(m);p.finished.then(()=>this.notifyFinished()).catch(dn),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),r8()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const v8=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function S8(e){const t=v8.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function $f(e,t,n=1){const[r,i]=S8(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return lf(s)?parseFloat(s):s}return Al(i)?$f(i,t,n+1):i}function _l(e,t){return e?.[t]??e?.default??e}const Wf=new Set(["width","height","top","left","right","bottom",...hi]),A8={test:e=>e==="auto",parse:e=>e},Yf=e=>t=>t.test(e),Gf=[di,Ee,Rn,sr,p7,m7,A8],Rc=e=>Gf.find(Yf(e));function C8(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||df(e):!0}const w8=new Set(["brightness","contrast","saturate","opacity"]);function k8(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Cl)||[];if(!r)return e;const i=n.replace(r,"");let a=w8.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const I8=/\b([a-z-]*)\(.*?\)/gu,Au={...fr,getAnimatableNone:e=>{const t=e.match(I8);return t?t.map(k8).join(" "):e}},Dc={...di,transform:Math.round},N8={rotate:sr,rotateX:sr,rotateY:sr,rotateZ:sr,scale:Oa,scaleX:Oa,scaleY:Oa,scaleZ:Oa,skew:sr,skewX:sr,skewY:sr,distance:Ee,translateX:Ee,translateY:Ee,translateZ:Ee,x:Ee,y:Ee,z:Ee,perspective:Ee,transformPerspective:Ee,opacity:ra,originX:Tc,originY:Tc,originZ:Ee},Ll={borderWidth:Ee,borderTopWidth:Ee,borderRightWidth:Ee,borderBottomWidth:Ee,borderLeftWidth:Ee,borderRadius:Ee,radius:Ee,borderTopLeftRadius:Ee,borderTopRightRadius:Ee,borderBottomRightRadius:Ee,borderBottomLeftRadius:Ee,width:Ee,maxWidth:Ee,height:Ee,maxHeight:Ee,top:Ee,right:Ee,bottom:Ee,left:Ee,padding:Ee,paddingTop:Ee,paddingRight:Ee,paddingBottom:Ee,paddingLeft:Ee,margin:Ee,marginTop:Ee,marginRight:Ee,marginBottom:Ee,marginLeft:Ee,backgroundPositionX:Ee,backgroundPositionY:Ee,...N8,zIndex:Dc,fillOpacity:ra,strokeOpacity:ra,numOctaves:Dc},M8={...Ll,color:yt,backgroundColor:yt,outlineColor:yt,fill:yt,stroke:yt,borderColor:yt,borderTopColor:yt,borderRightColor:yt,borderBottomColor:yt,borderLeftColor:yt,filter:Au,WebkitFilter:Au},Kf=e=>M8[e];function Xf(e,t){let n=Kf(e);return n!==Au&&(n=fr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const R8=new Set(["auto","none","0"]);function D8(e,t,n){let r=0,i;for(;r{t.getValue(o).set(u)}),this.resolveNoneKeyframes()}}function L8(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const Qf=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function P8(e){return cf(e)&&"offsetHeight"in e}const _c=30,O8=e=>!isNaN(parseFloat(e));class B8{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const i=Gt.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Gt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=O8(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new yl);const r=this.events[t].add(n);return t==="change"?()=>{r(),rt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Gt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>_c)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,_c);return hf(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ai(e,t){return new B8(e,t)}const{schedule:Pl}=kf(queueMicrotask,!1),gn={x:!1,y:!1};function Zf(){return gn.x||gn.y}function F8(e){return e==="x"||e==="y"?gn[e]?null:(gn[e]=!0,()=>{gn[e]=!1}):gn.x||gn.y?null:(gn.x=gn.y=!0,()=>{gn.x=gn.y=!1})}function Jf(e,t){const n=L8(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Lc(e){return!(e.pointerType==="touch"||Zf())}function H8(e,t,n={}){const[r,i,a]=Jf(e,n),s=o=>{if(!Lc(o))return;const{target:u}=o,l=t(u,o);if(typeof l!="function"||!u)return;const c=d=>{Lc(d)&&(l(d),u.removeEventListener("pointerleave",c))};u.addEventListener("pointerleave",c,i)};return r.forEach(o=>{o.addEventListener("pointerenter",s,i)}),a}const em=(e,t)=>t?e===t?!0:em(e,t.parentElement):!1,Ol=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,z8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function U8(e){return z8.has(e.tagName)||e.tabIndex!==-1}const ts=new WeakSet;function Pc(e){return t=>{t.key==="Enter"&&e(t)}}function fo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const V8=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Pc(()=>{if(ts.has(n))return;fo(n,"down");const i=Pc(()=>{fo(n,"up")}),a=()=>fo(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Oc(e){return Ol(e)&&!Zf()}function j8(e,t,n={}){const[r,i,a]=Jf(e,n),s=o=>{const u=o.currentTarget;if(!Oc(o))return;ts.add(u);const l=t(u,o),c=(p,b)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",m),ts.has(u)&&ts.delete(u),Oc(p)&&typeof l=="function"&&l(p,{success:b})},d=p=>{c(p,u===window||u===document||n.useGlobalTarget||em(u,p.target))},m=p=>{c(p,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",m,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,i),P8(o)&&(o.addEventListener("focus",l=>V8(l,i)),!U8(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),a}function tm(e){return cf(e)&&"ownerSVGElement"in e}function q8(e){return tm(e)&&e.tagName==="svg"}const Rt=e=>!!(e&&e.getVelocity),$8=[...Gf,yt,fr],W8=e=>$8.find(Yf(e)),aa={};function Y8(e){for(const t in e)aa[t]=e[t],Sl(t)&&(aa[t].isCSSVariable=!0)}function nm(e,{layout:t,layoutId:n}){return fi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!aa[e]||e==="opacity")}const G8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},K8=hi.length;function X8(e,t,n){let r="",i=!0;for(let a=0;a({style:{},transform:{},transformOrigin:{},vars:{}});function rm(e,t,n){for(const r in t)!Rt(t[r])&&!nm(r,n)&&(e[r]=t[r])}function Q8({transformTemplate:e},t){return O.useMemo(()=>{const n=Fl();return Bl(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Z8(e,t){const n=e.style||{},r={};return rm(r,n,e),Object.assign(r,Q8(e,t)),r}function J8(e,t){const n={},r=Z8(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const eb={offset:"stroke-dashoffset",array:"stroke-dasharray"},tb={offset:"strokeDashoffset",array:"strokeDasharray"};function nb(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?eb:tb;e[a.offset]=Ee.transform(-r);const s=Ee.transform(t),o=Ee.transform(n);e[a.array]=`${s} ${o}`}function im(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...o},u,l,c){if(Bl(e,o,l),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:m}=e;d.transform&&(m.transform=d.transform,delete d.transform),(m.transform||d.transformOrigin)&&(m.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),m.transform&&(m.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&nb(d,i,a,s,!1)}const am=()=>({...Fl(),attrs:{}}),sm=e=>typeof e=="string"&&e.toLowerCase()==="svg";function rb(e,t,n,r){const i=O.useMemo(()=>{const a=am();return im(a,t,sm(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};rm(a,e.style,e),i.style={...a,...i.style}}return i}const ib=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ps(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ib.has(e)}let om=e=>!ps(e);function ab(e){typeof e=="function"&&(om=t=>t.startsWith("on")?!ps(t):e(t))}try{ab(require("@emotion/is-prop-valid").default)}catch{}function sb(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(om(i)||n===!0&&ps(i)||!t&&!ps(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const ob=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Hl(e){return typeof e!="string"||e.includes("-")?!1:!!(ob.indexOf(e)>-1||/[A-Z]/u.test(e))}function ub(e,t,n,{latestValues:r},i,a=!1){const o=(Hl(e)?rb:J8)(t,r,i,e),u=sb(t,typeof e=="string",a),l=e!==O.Fragment?{...u,...o,ref:n}:{},{children:c}=t,d=O.useMemo(()=>Rt(c)?c.get():c,[c]);return O.createElement(e,{...l,children:d})}const zl=O.createContext(null);function Bc(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ul(e,t,n,r){if(typeof t=="function"){const[i,a]=Bc(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=Bc(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function lb(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}function ns(e){return Rt(e)?e.get():e}function cb({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:db(n,r,i,e),renderState:t()}}function db(e,t,n,r){const i={},a=r(e,{});for(const m in a)i[m]=ns(a[m]);let{initial:s,animate:o}=e;const u=Fs(e),l=wf(e);t&&l&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?o:s;if(d&&typeof d!="boolean"&&!Bs(d)){const m=Array.isArray(d)?d:[d];for(let p=0;p(t,n)=>{const r=O.useContext(Os),i=O.useContext(zl),a=()=>cb(e,t,r,i);return n?a():lb(a)};function Vl(e,t,n){const{style:r}=e,i={};for(const a in r)(Rt(r[a])||t.style&&Rt(t.style[a])||nm(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}const hb=um({scrapeMotionValuesFromProps:Vl,createRenderState:Fl});function lm(e,t,n){const r=Vl(e,t,n);for(const i in e)if(Rt(e[i])||Rt(t[i])){const a=hi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const fb=um({scrapeMotionValuesFromProps:lm,createRenderState:am}),jl=typeof window<"u",Fc={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},si={};for(const e in Fc)si[e]={isEnabled:t=>Fc[e].some(n=>!!t[n])};function mb(e){for(const t in e)si[t]={...si[t],...e[t]}}const pb=Symbol.for("motionComponentSymbol");function Xr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function gb(e,t,n){const r=O.useRef(null);return O.useCallback(i=>{const a=r.current;r.current=i,i!==a&&(i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount())),n&&(typeof n=="function"?n(i):Xr(n)&&(n.current=i))},[t,n])}const ql=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),bb="framerAppearId",cm="data-"+ql(bb),dm=O.createContext({}),yb=jl?O.useLayoutEffect:O.useEffect;function Tb(e,t,n,r,i){const{visualElement:a}=O.useContext(Os),s=O.useContext(Af),o=O.useContext(zl),u=O.useContext(Cf).reducedMotion,l=O.useRef(null);r=r||s.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:a,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:u}));const c=l.current,d=O.useContext(dm);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&Eb(l.current,n,i,d);const m=O.useRef(!1);O.useInsertionEffect(()=>{c&&m.current&&c.update(n,o)});const p=n[cm],b=O.useRef(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return yb(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),b.current&&c.animationState&&c.animationState.animateChanges())}),O.useEffect(()=>{c&&(!b.current&&c.animationState&&c.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),b.current=!1),c.enteringChildren=void 0)}),c}function Eb(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:u,layoutRoot:l,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:hm(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&Xr(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:u,layoutRoot:l})}function hm(e){if(e)return e.options.allowProjection!==!1?e.projection:hm(e.parent)}function xb(e,{forwardMotionProps:t=!1}={},n,r){n&&mb(n);const i=Hl(e)?fb:hb;function a(o,u){let l;const c={...O.useContext(Cf),...o,layoutId:vb(o)},{isStatic:d}=c,m=i7(o),p=i(o,d);if(!d&&jl){Sb();const b=Ab(c);l=b.MeasureLayout,m.visualElement=Tb(e,p,c,r,b.ProjectionNode)}return L.jsxs(Os.Provider,{value:m,children:[l&&m.visualElement?L.jsx(l,{visualElement:m.visualElement,...c}):null,ub(e,o,gb(p,m.visualElement,u),p,d,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=O.forwardRef(a);return s[pb]=e,s}function vb({layoutId:e}){const t=O.useContext(Sf).id;return t&&e!==void 0?t+"-"+e:e}function Sb(e,t){O.useContext(Af).strict}function Ab(e){const{drag:t,layout:n}=si;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function fm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Cb({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function wb(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function mo(e){return e===void 0||e===1}function Cu({scale:e,scaleX:t,scaleY:n}){return!mo(e)||!mo(t)||!mo(n)}function Ir(e){return Cu(e)||mm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function mm(e){return Hc(e.x)||Hc(e.y)}function Hc(e){return e&&e!=="0%"}function gs(e,t,n){const r=e-n,i=t*r;return n+i}function zc(e,t,n,r,i){return i!==void 0&&(e=gs(e,i,r)),gs(e,n,r)+t}function wu(e,t=0,n=1,r,i){e.min=zc(e.min,t,n,r,i),e.max=zc(e.max,t,n,r,i)}function pm(e,{x:t,y:n}){wu(e.x,t.translate,t.scale,t.originPoint),wu(e.y,n.translate,n.scale,n.originPoint)}const Uc=.999999999999,Vc=1.0000000000001;function kb(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,s;for(let o=0;oUc&&(t.x=1),t.yUc&&(t.y=1)}function Qr(e,t){e.min=e.min+t,e.max=e.max+t}function jc(e,t,n,r,i=.5){const a=ot(e.min,e.max,i);wu(e,t,n,a,r)}function Zr(e,t){jc(e.x,t.x,t.scaleX,t.scale,t.originX),jc(e.y,t.y,t.scaleY,t.scale,t.originY)}function gm(e,t){return fm(wb(e.getBoundingClientRect(),t))}function Ib(e,t,n){const r=gm(e,n),{scroll:i}=t;return i&&(Qr(r.x,i.offset.x),Qr(r.y,i.offset.y)),r}const qc=()=>({translate:0,scale:1,origin:0,originPoint:0}),Jr=()=>({x:qc(),y:qc()}),$c=()=>({min:0,max:0}),ht=()=>({x:$c(),y:$c()}),ku={current:null},bm={current:!1};function Nb(){if(bm.current=!0,!!jl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ku.current=e.matches;e.addEventListener("change",t),t()}else ku.current=!1}const Mb=new WeakMap;function Rb(e,t,n){for(const r in t){const i=t[r],a=n[r];if(Rt(i))e.addValue(r,i);else if(Rt(a))e.addValue(r,ai(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,ai(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Wc=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Db{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Dl,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=Gt.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),bm.current||Nb(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ku.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),hr(this.notifyUpdate),hr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=fi.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&rt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in si){const n=si[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ht()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ai(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(lf(r)||df(r))?r=parseFloat(r):!W8(r)&&fr.test(n)&&(r=Xf(t,n)),this.setBaseTarget(t,Rt(r)?r.get():r)),Rt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=Ul(this.props,n,this.presenceContext?.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Rt(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new yl),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Pl.render(this.render)}}class ym extends Db{constructor(){super(...arguments),this.KeyframeResolver=_8}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Rt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Tm(e,{style:t,vars:n},r,i){const a=e.style;let s;for(s in t)a[s]=t[s];i?.applyProjectionStyles(a,r);for(s in n)a.setProperty(s,n[s])}function _b(e){return window.getComputedStyle(e)}class Lb extends ym{constructor(){super(...arguments),this.type="html",this.renderInstance=Tm}readValueFromInstance(t,n){if(fi.has(n))return this.projection?.isProjecting?yu(n):Z7(t,n);{const r=_b(t),i=(Sl(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return gm(t,n)}build(t,n,r){Bl(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Vl(t,n,r)}}const Em=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Pb(e,t,n,r){Tm(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Em.has(i)?i:ql(i),t.attrs[i])}class Ob extends ym{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ht}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(fi.has(n)){const r=Kf(n);return r&&r.default||0}return n=Em.has(n)?n:ql(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return lm(t,n,r)}build(t,n,r){im(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Pb(t,n,r,i)}mount(t){this.isSVGTag=sm(t.tagName),super.mount(t)}}const Bb=(e,t)=>Hl(e)?new Ob(t):new Lb(t,{allowProjection:e!==O.Fragment});function ti(e,t,n){const r=e.getProps();return Ul(r,t,n!==void 0?n:r.custom,e)}const Iu=e=>Array.isArray(e);function Fb(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ai(n))}function Hb(e){return Iu(e)?e[e.length-1]||0:e}function zb(e,t){const n=ti(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const o=Hb(a[s]);Fb(e,s,o)}}function Ub(e){return!!(Rt(e)&&e.add)}function Nu(e,t){const n=e.getValue("willChange");if(Ub(n))return n.add(t);if(!n&&Gn.WillChange){const r=new Gn.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function xm(e){return e.props[cm]}const Vb=e=>e!==null;function jb(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Vb),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const qb={type:"spring",stiffness:500,damping:25,restSpeed:10},$b=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Wb={type:"keyframes",duration:.8},Yb={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Gb=(e,{keyframes:t})=>t.length>2?Wb:fi.has(e)?e.startsWith("scale")?$b(t[1]):qb:Yb;function Kb({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:u,elapsed:l,...c}){return!!Object.keys(c).length}const $l=(e,t,n,r={},i,a)=>s=>{const o=_l(r,e)||{},u=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Nn(u);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-l,onUpdate:m=>{t.set(m),o.onUpdate&&o.onUpdate(m)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:i};Kb(o)||Object.assign(c,Gb(e,c)),c.duration&&(c.duration=Nn(c.duration)),c.repeatDelay&&(c.repeatDelay=Nn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Su(c),c.delay===0&&(d=!0)),(Gn.instantAnimations||Gn.skipAnimations)&&(d=!0,Su(c),c.delay=0),c.allowFlatten=!o.type&&!o.ease,d&&!a&&t.get()!==void 0){const m=jb(c.keyframes,o);if(m!==void 0){rt.update(()=>{c.onUpdate(m),c.onComplete()});return}}return o.isSync?new Rl(c):new x8(c)};function Xb({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function vm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...o}=t;r&&(a=r);const u=[],l=i&&e.animationState&&e.animationState.getState()[i];for(const c in o){const d=e.getValue(c,e.latestValues[c]??null),m=o[c];if(m===void 0||l&&Xb(l,c))continue;const p={delay:n,..._l(a||{},c)},b=d.get();if(b!==void 0&&!d.isAnimating&&!Array.isArray(m)&&m===b&&!p.velocity)continue;let E=!1;if(window.MotionHandoffAnimation){const T=xm(e);if(T){const S=window.MotionHandoffAnimation(T,c,rt);S!==null&&(p.startTime=S,E=!0)}}Nu(e,c),d.start($l(c,d,m,e.shouldReduceMotion&&Wf.has(c)?{type:!1}:p,e,E));const C=d.animation;C&&u.push(C)}return s&&Promise.all(u).then(()=>{rt.update(()=>{s&&zb(e,s)})}),u}function Sm(e,t,n,r=0,i=1){const a=Array.from(e).sort((l,c)=>l.sortNodePosition(c)).indexOf(t),s=e.size,o=(s-1)*r;return typeof n=="function"?n(a,s):i===1?a*r:o-a*r}function Mu(e,t,n={}){const r=ti(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(vm(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:d}=i;return Qb(e,t,u,l,c,d,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[u,l]=o==="beforeChildren"?[a,s]:[s,a];return u().then(()=>l())}else return Promise.all([a(),s(n.delay)])}function Qb(e,t,n=0,r=0,i=0,a=1,s){const o=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),o.push(Mu(u,t,{...s,delay:n+(typeof r=="function"?0:r)+Sm(e.variantChildren,u,r,i,a)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(o)}function Zb(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>Mu(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=Mu(e,t,n);else{const i=typeof t=="function"?ti(e,t,n.custom):t;r=Promise.all(vm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Am(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>Zb(e,n,r)))}function ry(e){let t=ny(e),n=Yc(),r=!0;const i=u=>(l,c)=>{const d=ti(e,c,u==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:m,transitionEnd:p,...b}=d;l={...l,...b,...p}}return l};function a(u){t=u(e)}function s(u){const{props:l}=e,c=Cm(e.parent)||{},d=[],m=new Set;let p={},b=1/0;for(let C=0;Cb&&_,q=!1;const B=Array.isArray(v)?v:[v];let K=B.reduce(i(T),{});P===!1&&(K={});const{prevResolvedValues:Y={}}=S,X={...Y,...K},j=le=>{U=!0,m.has(le)&&(q=!0,m.delete(le)),S.needsAnimating[le]=!0;const fe=e.getValue(le);fe&&(fe.liveStyle=!1)};for(const le in X){const fe=K[le],oe=Y[le];if(p.hasOwnProperty(le))continue;let I=!1;Iu(fe)&&Iu(oe)?I=!Am(fe,oe):I=fe!==oe,I?fe!=null?j(le):m.add(le):fe!==void 0&&m.has(le)?j(le):S.protectedKeys[le]=!0}S.prevProp=v,S.prevResolvedValues=K,S.isActive&&(p={...p,...K}),r&&e.blockInitialAnimation&&(U=!1);const W=k&&V;U&&(!W||q)&&d.push(...B.map(le=>{const fe={type:T};if(typeof le=="string"&&r&&!W&&e.manuallyAnimateOnMount&&e.parent){const{parent:oe}=e,I=ti(oe,le);if(oe.enteringChildren&&I){const{delayChildren:De}=I.transition||{};fe.delay=Sm(oe.enteringChildren,e,De)}}return{animation:le,options:fe}}))}if(m.size){const C={};if(typeof l.initial!="boolean"){const T=ti(e,Array.isArray(l.initial)?l.initial[0]:l.initial);T&&T.transition&&(C.transition=T.transition)}m.forEach(T=>{const S=e.getBaseTarget(T),v=e.getValue(T);v&&(v.liveStyle=!0),C[T]=S??null}),d.push({animation:C})}let E=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(E=!1),r=!1,E?t(d):Promise.resolve()}function o(u,l){if(n[u].isActive===l)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(u,l)),n[u].isActive=l;const c=s(u);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Yc(),r=!0}}}function iy(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Am(t,e):!1}function xr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Yc(){return{animate:xr(!0),whileInView:xr(),whileHover:xr(),whileTap:xr(),whileDrag:xr(),whileFocus:xr(),exit:xr()}}class br{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ay extends br{constructor(t){super(t),t.animationState||(t.animationState=ry(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Bs(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let sy=0;class oy extends br{constructor(){super(...arguments),this.id=sy++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const uy={animation:{Feature:ay},exit:{Feature:oy}};function sa(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ya(e){return{point:{x:e.pageX,y:e.pageY}}}const ly=e=>t=>Ol(t)&&e(t,ya(t));function Ui(e,t,n,r){return sa(e,t,ly(n),r)}const wm=1e-4,cy=1-wm,dy=1+wm,km=.01,hy=0-km,fy=0+km;function Ht(e){return e.max-e.min}function my(e,t,n){return Math.abs(e-t)<=n}function Gc(e,t,n,r=.5){e.origin=r,e.originPoint=ot(t.min,t.max,e.origin),e.scale=Ht(n)/Ht(t),e.translate=ot(n.min,n.max,e.origin)-e.originPoint,(e.scale>=cy&&e.scale<=dy||isNaN(e.scale))&&(e.scale=1),(e.translate>=hy&&e.translate<=fy||isNaN(e.translate))&&(e.translate=0)}function Vi(e,t,n,r){Gc(e.x,t.x,n.x,r?r.originX:void 0),Gc(e.y,t.y,n.y,r?r.originY:void 0)}function Kc(e,t,n){e.min=n.min+t.min,e.max=e.min+Ht(t)}function py(e,t,n){Kc(e.x,t.x,n.x),Kc(e.y,t.y,n.y)}function Xc(e,t,n){e.min=t.min-n.min,e.max=e.min+Ht(t)}function ji(e,t,n){Xc(e.x,t.x,n.x),Xc(e.y,t.y,n.y)}function on(e){return[e("x"),e("y")]}const Im=({current:e})=>e?e.ownerDocument.defaultView:null,Qc=(e,t)=>Math.abs(e-t);function gy(e,t){const n=Qc(e.x,t.x),r=Qc(e.y,t.y);return Math.sqrt(n**2+r**2)}class Nm{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=go(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,b=gy(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!b)return;const{point:E}=m,{timestamp:C}=It;this.history.push({...E,timestamp:C});const{onStart:T,onMove:S}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=po(p,this.transformPagePoint),rt.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:b,onSessionEnd:E,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=go(m.type==="pointercancel"?this.lastMoveEventInfo:po(p,this.transformPagePoint),this.history);this.startEvent&&b&&b(m,T),E&&E(m,T)},!Ol(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const o=ya(t),u=po(o,this.transformPagePoint),{point:l}=u,{timestamp:c}=It;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,go(u,this.history)),this.removeListeners=pa(Ui(this.contextWindow,"pointermove",this.handlePointerMove),Ui(this.contextWindow,"pointerup",this.handlePointerUp),Ui(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),hr(this.updatePoint)}}function po(e,t){return t?{point:t(e.point)}:e}function Zc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function go({point:e},t){return{point:e,delta:Zc(e,Mm(t)),offset:Zc(e,by(t)),velocity:yy(t,.1)}}function by(e){return e[0]}function Mm(e){return e[e.length-1]}function yy(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Mm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Nn(t)));)n--;if(!r)return{x:0,y:0};const a=Mn(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Ty(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ot(n,e,r.max):Math.min(e,n)),e}function Jc(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Ey(e,{top:t,left:n,bottom:r,right:i}){return{x:Jc(e.x,n,i),y:Jc(e.y,t,r)}}function ed(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=ta(t.min,t.max-r,e.min):r>i&&(n=ta(e.min,e.max-i,t.min)),Yn(0,1,n)}function Sy(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ru=.35;function Ay(e=Ru){return e===!1?e=0:e===!0&&(e=Ru),{x:td(e,"left","right"),y:td(e,"top","bottom")}}function td(e,t,n){return{min:nd(e,t),max:nd(e,n)}}function nd(e,t){return typeof e=="number"?e:e[t]||0}const Cy=new WeakMap;class wy{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ht(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=d=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ya(d).point)},s=(d,m)=>{const{drag:p,dragPropagation:b,onDragStart:E}=this.getProps();if(p&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=F8(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=m,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),on(T=>{let S=this.getAxisMotionValue(T).get()||0;if(Rn.test(S)){const{projection:v}=this.visualElement;if(v&&v.layout){const _=v.layout.layoutBox[T];_&&(S=Ht(_)*(parseFloat(S)/100))}}this.originPoint[T]=S}),E&&rt.postRender(()=>E(d,m)),Nu(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},o=(d,m)=>{this.latestPointerEvent=d,this.latestPanInfo=m;const{dragPropagation:p,dragDirectionLock:b,onDirectionLock:E,onDrag:C}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(b&&this.currentDirection===null){this.currentDirection=ky(T),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),C&&C(d,m)},u=(d,m)=>{this.latestPointerEvent=d,this.latestPanInfo=m,this.stop(d,m),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>on(d=>this.getAnimationState(d)==="paused"&&this.getAxisMotionValue(d).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Nm(t,{onSessionStart:a,onStart:s,onMove:o,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:Im(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&rt.postRender(()=>o(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ba(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Ty(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&Xr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Ey(r.layoutBox,t):this.constraints=!1,this.elastic=Ay(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&on(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=Sy(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Xr(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=Ib(r,i.root,this.visualElement.getTransformPagePoint());let s=xy(i.layout.layoutBox,a);if(n){const o=n(Cb(s));this.hasMutatedConstraints=!!o,o&&(s=fm(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),u=this.constraints||{},l=on(c=>{if(!Ba(c,n,this.currentDirection))return;let d=u&&u[c]||{};s&&(d={min:0,max:0});const m=i?200:1e6,p=i?40:1e7,b={type:"inertia",velocity:r?t[c]:0,bounceStiffness:m,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(c,b)});return Promise.all(l).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Nu(this.visualElement,t),r.start($l(t,r,0,n,this.visualElement,!1))}stopAnimation(){on(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){on(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){on(n=>{const{drag:r}=this.getProps();if(!Ba(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:o}=i.layout.layoutBox[n];a.set(t[n]-ot(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Xr(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};on(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const u=o.get();i[s]=vy({min:u,max:u},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),on(s=>{if(!Ba(s,t,null))return;const o=this.getAxisMotionValue(s),{min:u,max:l}=this.constraints[s];o.set(ot(u,l,i[s]))})}addListeners(){if(!this.visualElement.current)return;Cy.set(this.visualElement,this);const t=this.visualElement.current,n=Ui(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Xr(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),rt.read(r);const s=sa(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(on(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=u[c].translate,d.set(d.get()+u[c].translate))}),this.visualElement.render())}));return()=>{s(),n(),a(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=Ru,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:o}}}function Ba(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function ky(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Iy extends br{constructor(t){super(t),this.removeGroupControls=dn,this.removeListeners=dn,this.controls=new wy(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||dn}unmount(){this.removeGroupControls(),this.removeListeners()}}const rd=e=>(t,n)=>{e&&rt.postRender(()=>e(t,n))};class Ny extends br{constructor(){super(...arguments),this.removePointerDownListener=dn}onPointerDown(t){this.session=new Nm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Im(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:rd(t),onStart:rd(n),onMove:r,onEnd:(a,s)=>{delete this.session,i&&rt.postRender(()=>i(a,s))}}}mount(){this.removePointerDownListener=Ui(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function My(e=!0){const t=O.useContext(zl);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=O.useId();O.useEffect(()=>{if(e)return i(a)},[e]);const s=O.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}const rs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function id(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ki={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ee.test(e))e=parseFloat(e);else return e;const n=id(e,t.target.x),r=id(e,t.target.y);return`${n}% ${r}%`}},Ry={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=fr.parse(e);if(i.length>5)return r;const a=fr.createTransformer(e),s=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,u=n.y.scale*t.y;i[0+s]/=o,i[1+s]/=u;const l=ot(o,u,.5);return typeof i[2+s]=="number"&&(i[2+s]/=l),typeof i[3+s]=="number"&&(i[3+s]/=l),a(i)}};let bo=!1;class Dy extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;Y8(_y),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),bo&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),rs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:s}=r;return s&&(s.isPresent=a,bo=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||rt.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Pl.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;bo=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Rm(e){const[t,n]=My(),r=O.useContext(Sf);return L.jsx(Dy,{...e,layoutGroup:r,switchLayoutGroup:O.useContext(dm),isPresent:t,safeToRemove:n})}const _y={borderRadius:{...ki,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ki,borderTopRightRadius:ki,borderBottomLeftRadius:ki,borderBottomRightRadius:ki,boxShadow:Ry};function Ly(e,t,n){const r=Rt(e)?e:ai(e);return r.start($l("",r,t,n)),r.animation}const Py=(e,t)=>e.depth-t.depth;class Oy{constructor(){this.children=[],this.isDirty=!1}add(t){ml(this.children,t),this.isDirty=!0}remove(t){pl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Py),this.isDirty=!1,this.children.forEach(t)}}function By(e,t){const n=Gt.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(hr(r),e(a-t))};return rt.setup(r,!0),()=>hr(r)}const Dm=["TopLeft","TopRight","BottomLeft","BottomRight"],Fy=Dm.length,ad=e=>typeof e=="string"?parseFloat(e):e,sd=e=>typeof e=="number"||Ee.test(e);function Hy(e,t,n,r,i,a){i?(e.opacity=ot(0,n.opacity??1,zy(r)),e.opacityExit=ot(t.opacity??1,0,Uy(r))):a&&(e.opacity=ot(t.opacity??1,n.opacity??1,r));for(let s=0;srt?1:n(ta(e,t,r))}function ud(e,t){e.min=t.min,e.max=t.max}function sn(e,t){ud(e.x,t.x),ud(e.y,t.y)}function ld(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function cd(e,t,n,r,i){return e-=t,e=gs(e,1/n,r),i!==void 0&&(e=gs(e,1/i,r)),e}function Vy(e,t=0,n=1,r=.5,i,a=e,s=e){if(Rn.test(t)&&(t=parseFloat(t),t=ot(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=ot(a.min,a.max,r);e===a&&(o-=t),e.min=cd(e.min,t,n,o,i),e.max=cd(e.max,t,n,o,i)}function dd(e,t,[n,r,i],a,s){Vy(e,t[n],t[r],t[i],t.scale,a,s)}const jy=["x","scaleX","originX"],qy=["y","scaleY","originY"];function hd(e,t,n,r){dd(e.x,t,jy,n?n.x:void 0,r?r.x:void 0),dd(e.y,t,qy,n?n.y:void 0,r?r.y:void 0)}function fd(e){return e.translate===0&&e.scale===1}function Lm(e){return fd(e.x)&&fd(e.y)}function md(e,t){return e.min===t.min&&e.max===t.max}function $y(e,t){return md(e.x,t.x)&&md(e.y,t.y)}function pd(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Pm(e,t){return pd(e.x,t.x)&&pd(e.y,t.y)}function gd(e){return Ht(e.x)/Ht(e.y)}function bd(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Wy{constructor(){this.members=[]}add(t){ml(this.members,t),t.scheduleRender()}remove(t){if(pl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Yy(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,s=n?.z||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:d,rotateY:m,skewX:p,skewY:b}=n;l&&(r=`perspective(${l}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),m&&(r+=`rotateY(${m}deg) `),p&&(r+=`skewX(${p}deg) `),b&&(r+=`skewY(${b}deg) `)}const o=e.x.scale*t.x,u=e.y.scale*t.y;return(o!==1||u!==1)&&(r+=`scale(${o}, ${u})`),r||"none"}const yo=["","X","Y","Z"],Gy=1e3;let Ky=0;function To(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Om(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=xm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",rt,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Om(r)}function Bm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},o=t?.()){this.id=Ky++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Zy),this.nodes.forEach(n9),this.nodes.forEach(r9),this.nodes.forEach(Jy)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;rt.read(()=>{d=window.innerWidth}),e(s,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,c&&c(),c=By(m,250),rs.hasAnimatedSinceResize&&(rs.hasAnimatedSinceResize=!1,this.nodes.forEach(Ed)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&l&&(o||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:m,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||l.getDefaultTransition()||u9,{onLayoutAnimationStart:E,onLayoutAnimationComplete:C}=l.getProps(),T=!this.targetLayout||!Pm(this.targetLayout,p),S=!d&&m;if(this.options.layoutRoot||this.resumeFrom||S||d&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={..._l(b,"layout"),onPlay:E,onComplete:C};(l.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(c,S)}else d||Ed(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),hr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(i9),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Om(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ht(this.snapshot.measuredBox.x)&&!Ht(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const P=_/1e3;xd(d.x,s.x,P),xd(d.y,s.y,P),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ji(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),s9(this.relativeTarget,this.relativeTargetOrigin,m,P),v&&$y(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=ht()),sn(v,this.relativeTarget)),E&&(this.animationValues=c,Hy(c,l,this.latestValues,P,S,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(hr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=rt.update(()=>{rs.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ai(0)),this.currentAnimation=Ly(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Gy),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:u,layout:l,latestValues:c}=s;if(!(!o||!u||!l)){if(this!==s&&this.layout&&l&&Fm(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||ht();const d=Ht(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+d;const m=Ht(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+m}sn(o,u),Zr(o,c),Vi(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Wy),this.sharedNodes.get(s).add(o);const l=o.options.initialPromotionConfig;o.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(o=!0),!o)return;const l={};u.z&&To("z",s,l,this.animationValues);for(let c=0;cs.currentAnimation?.stop()),this.root.nodes.forEach(yd),this.root.sharedNodes.clear()}}}function Xy(e){e.updateLayout()}function Qy(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i==="size"?on(c=>{const d=a?t.measuredBox[c]:t.layoutBox[c],m=Ht(d);d.min=n[c].min,d.max=d.min+m}):Fm(i,t.layoutBox,n)&&on(c=>{const d=a?t.measuredBox[c]:t.layoutBox[c],m=Ht(n[c]);d.max=d.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+m)});const s=Jr();Vi(s,n,t.layoutBox);const o=Jr();a?Vi(o,e.applyTransform(r,!0),t.measuredBox):Vi(o,n,t.layoutBox);const u=!Lm(s);let l=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:d,layout:m}=c;if(d&&m){const p=ht();ji(p,t.layoutBox,d.layoutBox);const b=ht();ji(b,n,m.layoutBox),Pm(p,b)||(l=!0),c.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=p,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:s,hasLayoutChanged:u,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Zy(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Jy(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function e9(e){e.clearSnapshot()}function yd(e){e.clearMeasurements()}function Td(e){e.isLayoutDirty=!1}function t9(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ed(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function n9(e){e.resolveTargetDelta()}function r9(e){e.calcProjection()}function i9(e){e.resetSkewAndRotation()}function a9(e){e.removeLeadSnapshot()}function xd(e,t,n){e.translate=ot(t.translate,0,n),e.scale=ot(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function vd(e,t,n,r){e.min=ot(t.min,n.min,r),e.max=ot(t.max,n.max,r)}function s9(e,t,n,r){vd(e.x,t.x,n.x,r),vd(e.y,t.y,n.y,r)}function o9(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const u9={duration:.45,ease:[.4,0,.1,1]},Sd=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ad=Sd("applewebkit/")&&!Sd("chrome/")?Math.round:dn;function Cd(e){e.min=Ad(e.min),e.max=Ad(e.max)}function l9(e){Cd(e.x),Cd(e.y)}function Fm(e,t,n){return e==="position"||e==="preserve-aspect"&&!my(gd(t),gd(n),.2)}function c9(e){return e!==e.root&&e.scroll?.wasRoot}const d9=Bm({attachResizeListener:(e,t)=>sa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Eo={current:void 0},Hm=Bm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Eo.current){const e=new d9({});e.mount(window),e.setOptions({layoutScroll:!0}),Eo.current=e}return Eo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),h9={pan:{Feature:Ny},drag:{Feature:Iy,ProjectionNode:Hm,MeasureLayout:Rm}};function wd(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&rt.postRender(()=>a(t,ya(t)))}class f9 extends br{mount(){const{current:t}=this.node;t&&(this.unmount=H8(t,(n,r)=>(wd(this.node,r,"Start"),i=>wd(this.node,i,"End"))))}unmount(){}}class m9 extends br{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pa(sa(this.node.current,"focus",()=>this.onFocus()),sa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function kd(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&rt.postRender(()=>a(t,ya(t)))}class p9 extends br{mount(){const{current:t}=this.node;t&&(this.unmount=j8(t,(n,r)=>(kd(this.node,r,"Start"),(i,{success:a})=>kd(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Du=new WeakMap,xo=new WeakMap,g9=e=>{const t=Du.get(e.target);t&&t(e)},b9=e=>{e.forEach(g9)};function y9({root:e,...t}){const n=e||document;xo.has(n)||xo.set(n,{});const r=xo.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(b9,{root:e,...t})),r[i]}function T9(e,t,n){const r=y9(t);return Du.set(e,n),r.observe(e),()=>{Du.delete(e),r.unobserve(e)}}const E9={some:0,all:1};class x9 extends br{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:E9[i]},o=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,a&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),m=l?c:d;m&&m(u)};return T9(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(v9(t,n))&&this.startObserver()}unmount(){}}function v9({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const S9={inView:{Feature:x9},tap:{Feature:p9},focus:{Feature:m9},hover:{Feature:f9}},A9={layout:{ProjectionNode:Hm,MeasureLayout:Rm}},C9={...uy,...S9,...h9,...A9};function w9(e,t){return xb(e,t,C9,Bb)}const Wl=w9("div"),k9=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{position:"relative",flex:1,gap:t(1.5),overflow:"hidden"}}),I9=ue(X1)(({theme:e,variant:t})=>{const{spacing:n}=e;return{gap:n(t==="list"?1.5:5.5),overflowY:"auto"}}),N9=ue(Q6)(({theme:e})=>{const{spacing:t}=e;return{flex:"none",padding:t(2),overflow:"hidden"}}),M9=ue(eg)(({theme:e})=>({fontSize:"1.5rem",width:"2.75rem",height:"2.75rem",borderRadius:"50%",display:"inline-flex",alignItems:"center",justifyContent:"center"})),R9=ue(Wl)(({theme:e,variant:t})=>({fontSize:t==="list"?"1.5rem":"1em",width:"1em",height:"1em",display:"inline-flex",alignItems:"center",justifyContent:"center",transformOrigin:"center"})),D9={waiting:"info",available:"success",failed:"error"},_9=()=>L.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",children:L.jsx("path",{d:"M20.0235 2.88477H6.92829C6.49415 2.88477 6.0778 3.05722 5.77082 3.3642C5.46384 3.67118 5.29138 4.08754 5.29138 4.52167V22.5276C5.29138 22.9618 5.46384 23.3781 5.77082 23.6851C6.0778 23.9921 6.49415 24.1645 6.92829 24.1645H20.0235C20.4577 24.1645 20.874 23.9921 21.181 23.6851C21.488 23.3781 21.6604 22.9618 21.6604 22.5276V4.52167C21.6604 4.08754 21.488 3.67118 21.181 3.3642C20.874 3.05722 20.4577 2.88477 20.0235 2.88477ZM13.4759 20.0723C13.2331 20.0723 12.9957 20.0003 12.7938 19.8654C12.592 19.7305 12.4346 19.5387 12.3417 19.3144C12.2488 19.0901 12.2244 18.8432 12.2718 18.6051C12.3192 18.3669 12.4361 18.1482 12.6078 17.9765C12.7795 17.8048 12.9983 17.6879 13.2364 17.6405C13.4745 17.5931 13.7214 17.6174 13.9457 17.7104C14.17 17.8033 14.3618 17.9606 14.4967 18.1625C14.6316 18.3644 14.7036 18.6018 14.7036 18.8446C14.7036 19.1702 14.5742 19.4825 14.344 19.7127C14.1138 19.9429 13.8015 20.0723 13.4759 20.0723ZM16.7497 11.8877H10.2021C9.98503 11.8877 9.77685 11.8015 9.62336 11.648C9.46987 11.4945 9.38364 11.2864 9.38364 11.0693C9.38364 10.8522 9.46987 10.644 9.62336 10.4906C9.77685 10.3371 9.98503 10.2508 10.2021 10.2508H16.7497C16.9668 10.2508 17.175 10.3371 17.3285 10.4906C17.4819 10.644 17.5682 10.8522 17.5682 11.0693C17.5682 11.2864 17.4819 11.4945 17.3285 11.648C17.175 11.8015 16.9668 11.8877 16.7497 11.8877ZM16.7497 8.61393H10.2021C9.98503 8.61393 9.77685 8.5277 9.62336 8.37421C9.46987 8.22072 9.38364 8.01255 9.38364 7.79548C9.38364 7.57841 9.46987 7.37024 9.62336 7.21675C9.77685 7.06326 9.98503 6.97703 10.2021 6.97703H16.7497C16.9668 6.97703 17.175 7.06326 17.3285 7.21675C17.4819 7.37024 17.5682 7.57841 17.5682 7.79548C17.5682 8.01255 17.4819 8.22072 17.3285 8.37421C17.175 8.5277 16.9668 8.61393 16.7497 8.61393Z",fill:"currentColor"})}),L9={waiting:M5,available:E5,failed:B1},Id=({variant:e,node:t})=>{const{id:n,status:r,gpuName:i,gpuMemory:a}=t||{status:"waiting"},{palette:s}=Ns(),{main:o,lighter:u}=r==="waiting"?{main:s.grey[800],lighter:s.grey[250]}:s[D9[r]],l=r==="failed"?.2:void 0,c=L9[r];return L.jsxs(N9,{component:e==="list"?Ms:ci,variant:"outlined",sx:{opacity:l,padding:e==="menu"?0:void 0,backgroundColor:"transparent"},children:[L.jsx(M9,{sx:{color:s.grey[800],backgroundColor:s.grey[250]},children:L.jsx(_9,{})}),L.jsxs(ig,{children:[t&&L.jsxs(Ve,{variant:"body1",children:[i," ",a,"GB"]})||L.jsx(lc,{width:"8rem",height:"1.25rem"}),t&&L.jsx(Ve,{variant:"body1",color:"text.disabled",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:n&&n.substring(0,4)+"..."+n.substring(n.length-4)})||L.jsx(lc,{width:"14rem",height:"1.25rem"})]}),t&&L.jsxs(R9,{sx:{color:o},...r==="waiting"&&{animate:{rotate:360},transition:{repeat:1/0,ease:"linear",duration:2}},variant:e,children:[e==="list"&&L.jsx(c,{}),e==="menu"&&L.jsx(O5,{})]})]})},Fa=({variant:e="list"})=>{const[{clusterInfo:{initNodesNumber:t},nodeInfoList:n}]=fa(),{length:r}=n;return L.jsxs(k9,{children:[e==="menu"&&L.jsx(ci,{sx:{position:"absolute",top:"1.375rem",bottom:"1.375rem",left:"1.375rem",borderLeft:"2px dashed",borderColor:"divider"}}),L.jsxs(I9,{variant:e,children:[n.map(i=>L.jsx(Id,{variant:e,node:i},i.id)),t>r&&Array.from({length:t-r}).map((i,a)=>L.jsx(Id,{variant:e},a))]})]})},P9={small:1,medium:1.25,large:2.25},O9=ue(Wl)(({theme:e,size:t})=>{const n=`${P9[t]}rem`;return{position:"relative",width:n,height:n,display:"inline-flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"}}),vo=ue(Wl)(({theme:e})=>({flex:1,aspectRatio:1,borderRadius:"50%",backgroundColor:"currentColor"})),So={pulse:{scale:[0,.6,0,0],keyTimes:[0,.3,.6,1],transition:{duration:2,repeat:1/0,ease:"linear"}}},B9={staggerChildren:.25,staggerDirection:1},F9=O.forwardRef(({size:e="medium"},t)=>L.jsxs(O9,{ref:t,size:e,animate:"pulse",transition:B9,children:[L.jsx(vo,{variants:So},1),L.jsx(vo,{variants:So},2),L.jsx(vo,{variants:So},3)]}));function Nd(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function zm(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const H9=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,z9=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,U9={};function Md(e,t){return(U9.jsx?z9:H9).test(e)}const V9=/[ \t\n\f\r]/g;function j9(e){return typeof e=="object"?e.type==="text"?Rd(e.value):!1:Rd(e)}function Rd(e){return e.replace(V9,"")===""}let Ta=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Ta.prototype.normal={};Ta.prototype.property={};Ta.prototype.space=void 0;function Um(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ta(n,r,t)}function oa(e){return e.toLowerCase()}let Kt=class{constructor(t,n){this.attribute=n,this.property=t}};Kt.prototype.attribute="";Kt.prototype.booleanish=!1;Kt.prototype.boolean=!1;Kt.prototype.commaOrSpaceSeparated=!1;Kt.prototype.commaSeparated=!1;Kt.prototype.defined=!1;Kt.prototype.mustUseProperty=!1;Kt.prototype.number=!1;Kt.prototype.overloadedBoolean=!1;Kt.prototype.property="";Kt.prototype.spaceSeparated=!1;Kt.prototype.space=void 0;let q9=0;const Ce=Br(),gt=Br(),_u=Br(),re=Br(),Qe=Br(),ni=Br(),Zt=Br();function Br(){return 2**++q9}const Lu=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ce,booleanish:gt,commaOrSpaceSeparated:Zt,commaSeparated:ni,number:re,overloadedBoolean:_u,spaceSeparated:Qe},Symbol.toStringTag,{value:"Module"})),Ao=Object.keys(Lu);let Yl=class extends Kt{constructor(t,n,r,i){let a=-1;if(super(t,n),Dd(this,"space",i),typeof r=="number")for(;++a4&&n.slice(0,4)==="data"&&K9.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(_d,Q9);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!_d.test(a)){let s=a.replace(G9,X9);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Yl}return new i(r,t)}function X9(e){return"-"+e.toLowerCase()}function Q9(e){return e.charAt(1).toUpperCase()}const Hs=Um([Vm,$9,$m,Wm,Ym],"html"),pi=Um([Vm,W9,$m,Wm,Ym],"svg");function Ld(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Gm(e){return e.join(" ").trim()}var jr={},Co,Pd;function Z9(){if(Pd)return Co;Pd=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,u=` +`,l="/",c="*",d="",m="comment",p="declaration";Co=function(E,C){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];C=C||{};var T=1,S=1;function v(X){var j=X.match(t);j&&(T+=j.length);var W=X.lastIndexOf(u);S=~W?X.length-W:S+X.length}function _(){var X={line:T,column:S};return function(j){return j.position=new P(X),U(),j}}function P(X){this.start=X,this.end={line:T,column:S},this.source=C.source}P.prototype.content=E;function k(X){var j=new Error(C.source+":"+T+":"+S+": "+X);if(j.reason=X,j.filename=C.source,j.line=T,j.column=S,j.source=E,!C.silent)throw j}function V(X){var j=X.exec(E);if(j){var W=j[0];return v(W),E=E.slice(W.length),j}}function U(){V(n)}function q(X){var j;for(X=X||[];j=B();)j!==!1&&X.push(j);return X}function B(){var X=_();if(!(l!=E.charAt(0)||c!=E.charAt(1))){for(var j=2;d!=E.charAt(j)&&(c!=E.charAt(j)||l!=E.charAt(j+1));)++j;if(j+=2,d===E.charAt(j-1))return k("End of comment missing");var W=E.slice(2,j-2);return S+=2,v(W),E=E.slice(j),S+=2,X({type:m,comment:W})}}function K(){var X=_(),j=V(r);if(j){if(B(),!V(i))return k("property missing ':'");var W=V(a),ne=X({type:p,property:b(j[0].replace(e,d)),value:W?b(W[0].replace(e,d)):d});return V(s),ne}}function Y(){var X=[];q(X);for(var j;j=K();)j!==!1&&(X.push(j),q(X));return X}return U(),Y()};function b(E){return E?E.replace(o,d):d}return Co}var Od;function J9(){if(Od)return jr;Od=1;var e=jr&&jr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(jr,"__esModule",{value:!0}),jr.default=n;var t=e(Z9());function n(r,i){var a=null;if(!r||typeof r!="string")return a;var s=(0,t.default)(r),o=typeof i=="function";return s.forEach(function(u){if(u.type==="declaration"){var l=u.property,c=u.value;o?i(l,c,u):c&&(a=a||{},a[l]=c)}}),a}return jr}var Ii={},Bd;function eT(){if(Bd)return Ii;Bd=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(l){return!l||n.test(l)||e.test(l)},s=function(l,c){return c.toUpperCase()},o=function(l,c){return"".concat(c,"-")},u=function(l,c){return c===void 0&&(c={}),a(l)?l:(l=l.toLowerCase(),c.reactCompat?l=l.replace(i,o):l=l.replace(r,o),l.replace(t,s))};return Ii.camelCase=u,Ii}var Ni,Fd;function tT(){if(Fd)return Ni;Fd=1;var e=Ni&&Ni.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(J9()),n=eT();function r(i,a){var s={};return!i||typeof i!="string"||(0,t.default)(i,function(o,u){o&&u&&(s[(0,n.camelCase)(o,a)]=u)}),s}return r.default=r,Ni=r,Ni}var nT=tT();const rT=F1(nT),zs=Km("end"),Pn=Km("start");function Km(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Xm(e){const t=Pn(e),n=zs(e);if(t&&n)return{start:t,end:n}}function qi(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Hd(e.position):"start"in e||"end"in e?Hd(e):"line"in e||"column"in e?Pu(e):""}function Pu(e){return zd(e&&e.line)+":"+zd(e&&e.column)}function Hd(e){return Pu(e&&e.start)+"-"+Pu(e&&e.end)}function zd(e){return e&&typeof e=="number"?e:1}class _t extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?a.ruleId=r:(a.source=r.slice(0,u),a.ruleId=r.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=qi(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}_t.prototype.file="";_t.prototype.name="";_t.prototype.reason="";_t.prototype.message="";_t.prototype.stack="";_t.prototype.column=void 0;_t.prototype.line=void 0;_t.prototype.ancestors=void 0;_t.prototype.cause=void 0;_t.prototype.fatal=void 0;_t.prototype.place=void 0;_t.prototype.ruleId=void 0;_t.prototype.source=void 0;const Kl={}.hasOwnProperty,iT=new Map,aT=/[A-Z]/g,sT=new Set(["table","tbody","thead","tfoot","tr"]),oT=new Set(["td","th"]),Qm="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function uT(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=gT(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=pT(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?pi:Hs,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Zm(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Zm(e,t,n){if(t.type==="element")return lT(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return cT(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return hT(e,t,n);if(t.type==="mdxjsEsm")return dT(e,t);if(t.type==="root")return fT(e,t,n);if(t.type==="text")return mT(e,t)}function lT(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=pi,e.schema=i),e.ancestors.push(t);const a=ep(e,t.tagName,!1),s=bT(e,t);let o=Ql(e,t);return sT.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!j9(u):!0})),Jm(e,s,a,t),Xl(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function cT(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ua(e,t.position)}function dT(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ua(e,t.position)}function hT(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=pi,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:ep(e,t.name,!0),s=yT(e,t),o=Ql(e,t);return Jm(e,s,a,t),Xl(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function fT(e,t,n){const r={};return Xl(r,Ql(e,t)),e.create(t,e.Fragment,r,n)}function mT(e,t){return t.value}function Jm(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Xl(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function pT(e,t,n){return r;function r(i,a,s,o){const l=Array.isArray(s.children)?n:t;return o?l(a,s,o):l(a,s)}}function gT(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),u=Pn(r);return t(i,a,s,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function bT(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Kl.call(t.properties,i)){const a=TT(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&oT.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function yT(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else ua(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else ua(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Ql(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:iT;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a0?(nn(e,e.length,0,t),e):t}const jd={}.hasOwnProperty;function np(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function yn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ft=yr(/[A-Za-z]/),Dt=yr(/[\dA-Za-z]/),IT=yr(/[#-'*+\--9=?A-Z^-~]/);function bs(e){return e!==null&&(e<32||e===127)}const Ou=yr(/\d/),NT=yr(/[\dA-Fa-f]/),MT=yr(/[!-/:-@[-`{-~]/);function he(e){return e!==null&&e<-2}function Ye(e){return e!==null&&(e<0||e===32)}function Re(e){return e===-2||e===-1||e===32}const Us=yr(new RegExp("\\p{P}|\\p{S}","u")),Pr=yr(/\s/);function yr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function gi(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Ne(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(u){return Re(u)?(e.enter(n),o(u)):t(u)}function o(u){return Re(u)&&a++s))return;const V=t.events.length;let U=V,q,B;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){if(q){B=t.events[U][1].end;break}q=!0}for(T(r),k=V;kv;){const P=n[_];t.containerState=P[1],P[0].exit.call(t,e)}n.length=v}function S(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function PT(e,t,n){return Ne(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function oi(e){if(e===null||Ye(e)||Pr(e))return 1;if(Us(e))return 2}function Vs(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},m={...e[n][1].start};$d(d,-u),$d(m,u),s={type:u>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:m},a={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=un(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=un(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),l=un(l,Vs(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=un(l,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=un(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,nn(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n0&&Re(k)?Ne(e,S,"linePrefix",a+1)(k):S(k)}function S(k){return k===null||he(k)?e.check(Wd,E,_)(k):(e.enter("codeFlowValue"),v(k))}function v(k){return k===null||he(k)?(e.exit("codeFlowValue"),S(k)):(e.consume(k),v)}function _(k){return e.exit("codeFenced"),t(k)}function P(k,V,U){let q=0;return B;function B(W){return k.enter("lineEnding"),k.consume(W),k.exit("lineEnding"),K}function K(W){return k.enter("codeFencedFence"),Re(W)?Ne(k,Y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):Y(W)}function Y(W){return W===o?(k.enter("codeFencedFenceSequence"),X(W)):U(W)}function X(W){return W===o?(q++,k.consume(W),X):q>=s?(k.exit("codeFencedFenceSequence"),Re(W)?Ne(k,j,"whitespace")(W):j(W)):U(W)}function j(W){return W===null||he(W)?(k.exit("codeFencedFence"),V(W)):U(W)}}}function YT(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const ko={name:"codeIndented",tokenize:KT},GT={partial:!0,tokenize:XT};function KT(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),Ne(e,a,"linePrefix",5)(l)}function a(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?u(l):he(l)?e.attempt(GT,s,u)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||he(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function u(l){return e.exit("codeIndented"),t(l)}}function XT(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):he(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Ne(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):he(s)?i(s):n(s)}}const QT={name:"codeText",previous:JT,resolve:ZT,tokenize:eE};function ZT(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Mi(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Mi(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Mi(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function up(e,t,n,r,i,a,s,o,u){const l=u||Number.POSITIVE_INFINITY;let c=0;return d;function d(T){return T===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(T),e.exit(a),m):T===null||T===32||T===41||bs(T)?n(T):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),E(T))}function m(T){return T===62?(e.enter(a),e.consume(T),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(T))}function p(T){return T===62?(e.exit("chunkString"),e.exit(o),m(T)):T===null||T===60||he(T)?n(T):(e.consume(T),T===92?b:p)}function b(T){return T===60||T===62||T===92?(e.consume(T),p):p(T)}function E(T){return!c&&(T===null||T===41||Ye(T))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(T)):c999||p===null||p===91||p===93&&!u||p===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):he(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||he(p)||o++>999?(e.exit("chunkString"),c(p)):(e.consume(p),u||(u=!Re(p)),p===92?m:d)}function m(p){return p===91||p===92||p===93?(e.consume(p),o++,d):d(p)}}function cp(e,t,n,r,i,a){let s;return o;function o(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),s=m===40?41:m,u):n(m)}function u(m){return m===s?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(a),l(m))}function l(m){return m===s?(e.exit(a),u(s)):m===null?n(m):he(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Ne(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(m))}function c(m){return m===s||m===null||he(m)?(e.exit("chunkString"),l(m)):(e.consume(m),m===92?d:c)}function d(m){return m===s||m===92?(e.consume(m),c):c(m)}}function $i(e,t){let n;return r;function r(i){return he(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Re(i)?Ne(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const uE={name:"definition",tokenize:cE},lE={partial:!0,tokenize:dE};function cE(e,t,n){const r=this;let i;return a;function a(p){return e.enter("definition"),s(p)}function s(p){return lp.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return i=yn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):n(p)}function u(p){return Ye(p)?$i(e,l)(p):l(p)}function l(p){return up(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(lE,d,d)(p)}function d(p){return Re(p)?Ne(e,m,"whitespace")(p):m(p)}function m(p){return p===null||he(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function dE(e,t,n){return r;function r(o){return Ye(o)?$i(e,i)(o):n(o)}function i(o){return cp(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return Re(o)?Ne(e,s,"whitespace")(o):s(o)}function s(o){return o===null||he(o)?t(o):n(o)}}const hE={name:"hardBreakEscape",tokenize:fE};function fE(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return he(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const mE={name:"headingAtx",resolve:pE,tokenize:gE};function pE(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},nn(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function gE(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Ye(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||he(c)?(e.exit("atxHeading"),t(c)):Re(c)?Ne(e,o,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),o(c))}function l(c){return c===null||c===35||Ye(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),l)}}const bE=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Gd=["pre","script","style","textarea"],yE={concrete:!0,name:"htmlFlow",resolveTo:xE,tokenize:vE},TE={partial:!0,tokenize:AE},EE={partial:!0,tokenize:SE};function xE(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function vE(e,t,n){const r=this;let i,a,s,o,u;return l;function l(D){return c(D)}function c(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),d}function d(D){return D===33?(e.consume(D),m):D===47?(e.consume(D),a=!0,E):D===63?(e.consume(D),i=3,r.interrupt?t:I):Ft(D)?(e.consume(D),s=String.fromCharCode(D),C):n(D)}function m(D){return D===45?(e.consume(D),i=2,p):D===91?(e.consume(D),i=5,o=0,b):Ft(D)?(e.consume(D),i=4,r.interrupt?t:I):n(D)}function p(D){return D===45?(e.consume(D),r.interrupt?t:I):n(D)}function b(D){const _e="CDATA[";return D===_e.charCodeAt(o++)?(e.consume(D),o===_e.length?r.interrupt?t:Y:b):n(D)}function E(D){return Ft(D)?(e.consume(D),s=String.fromCharCode(D),C):n(D)}function C(D){if(D===null||D===47||D===62||Ye(D)){const _e=D===47,Ue=s.toLowerCase();return!_e&&!a&&Gd.includes(Ue)?(i=1,r.interrupt?t(D):Y(D)):bE.includes(s.toLowerCase())?(i=6,_e?(e.consume(D),T):r.interrupt?t(D):Y(D)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(D):a?S(D):v(D))}return D===45||Dt(D)?(e.consume(D),s+=String.fromCharCode(D),C):n(D)}function T(D){return D===62?(e.consume(D),r.interrupt?t:Y):n(D)}function S(D){return Re(D)?(e.consume(D),S):B(D)}function v(D){return D===47?(e.consume(D),B):D===58||D===95||Ft(D)?(e.consume(D),_):Re(D)?(e.consume(D),v):B(D)}function _(D){return D===45||D===46||D===58||D===95||Dt(D)?(e.consume(D),_):P(D)}function P(D){return D===61?(e.consume(D),k):Re(D)?(e.consume(D),P):v(D)}function k(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),u=D,V):Re(D)?(e.consume(D),k):U(D)}function V(D){return D===u?(e.consume(D),u=null,q):D===null||he(D)?n(D):(e.consume(D),V)}function U(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||Ye(D)?P(D):(e.consume(D),U)}function q(D){return D===47||D===62||Re(D)?v(D):n(D)}function B(D){return D===62?(e.consume(D),K):n(D)}function K(D){return D===null||he(D)?Y(D):Re(D)?(e.consume(D),K):n(D)}function Y(D){return D===45&&i===2?(e.consume(D),ne):D===60&&i===1?(e.consume(D),le):D===62&&i===4?(e.consume(D),De):D===63&&i===3?(e.consume(D),I):D===93&&i===5?(e.consume(D),oe):he(D)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(TE,Ae,X)(D)):D===null||he(D)?(e.exit("htmlFlowData"),X(D)):(e.consume(D),Y)}function X(D){return e.check(EE,j,Ae)(D)}function j(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),W}function W(D){return D===null||he(D)?X(D):(e.enter("htmlFlowData"),Y(D))}function ne(D){return D===45?(e.consume(D),I):Y(D)}function le(D){return D===47?(e.consume(D),s="",fe):Y(D)}function fe(D){if(D===62){const _e=s.toLowerCase();return Gd.includes(_e)?(e.consume(D),De):Y(D)}return Ft(D)&&s.length<8?(e.consume(D),s+=String.fromCharCode(D),fe):Y(D)}function oe(D){return D===93?(e.consume(D),I):Y(D)}function I(D){return D===62?(e.consume(D),De):D===45&&i===2?(e.consume(D),I):Y(D)}function De(D){return D===null||he(D)?(e.exit("htmlFlowData"),Ae(D)):(e.consume(D),De)}function Ae(D){return e.exit("htmlFlow"),t(D)}}function SE(e,t,n){const r=this;return i;function i(s){return he(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function AE(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ea,t,n)}}const CE={name:"htmlText",tokenize:wE};function wE(e,t,n){const r=this;let i,a,s;return o;function o(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),u}function u(I){return I===33?(e.consume(I),l):I===47?(e.consume(I),P):I===63?(e.consume(I),v):Ft(I)?(e.consume(I),U):n(I)}function l(I){return I===45?(e.consume(I),c):I===91?(e.consume(I),a=0,b):Ft(I)?(e.consume(I),S):n(I)}function c(I){return I===45?(e.consume(I),p):n(I)}function d(I){return I===null?n(I):I===45?(e.consume(I),m):he(I)?(s=d,le(I)):(e.consume(I),d)}function m(I){return I===45?(e.consume(I),p):d(I)}function p(I){return I===62?ne(I):I===45?m(I):d(I)}function b(I){const De="CDATA[";return I===De.charCodeAt(a++)?(e.consume(I),a===De.length?E:b):n(I)}function E(I){return I===null?n(I):I===93?(e.consume(I),C):he(I)?(s=E,le(I)):(e.consume(I),E)}function C(I){return I===93?(e.consume(I),T):E(I)}function T(I){return I===62?ne(I):I===93?(e.consume(I),T):E(I)}function S(I){return I===null||I===62?ne(I):he(I)?(s=S,le(I)):(e.consume(I),S)}function v(I){return I===null?n(I):I===63?(e.consume(I),_):he(I)?(s=v,le(I)):(e.consume(I),v)}function _(I){return I===62?ne(I):v(I)}function P(I){return Ft(I)?(e.consume(I),k):n(I)}function k(I){return I===45||Dt(I)?(e.consume(I),k):V(I)}function V(I){return he(I)?(s=V,le(I)):Re(I)?(e.consume(I),V):ne(I)}function U(I){return I===45||Dt(I)?(e.consume(I),U):I===47||I===62||Ye(I)?q(I):n(I)}function q(I){return I===47?(e.consume(I),ne):I===58||I===95||Ft(I)?(e.consume(I),B):he(I)?(s=q,le(I)):Re(I)?(e.consume(I),q):ne(I)}function B(I){return I===45||I===46||I===58||I===95||Dt(I)?(e.consume(I),B):K(I)}function K(I){return I===61?(e.consume(I),Y):he(I)?(s=K,le(I)):Re(I)?(e.consume(I),K):q(I)}function Y(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),i=I,X):he(I)?(s=Y,le(I)):Re(I)?(e.consume(I),Y):(e.consume(I),j)}function X(I){return I===i?(e.consume(I),i=void 0,W):I===null?n(I):he(I)?(s=X,le(I)):(e.consume(I),X)}function j(I){return I===null||I===34||I===39||I===60||I===61||I===96?n(I):I===47||I===62||Ye(I)?q(I):(e.consume(I),j)}function W(I){return I===47||I===62||Ye(I)?q(I):n(I)}function ne(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),t):n(I)}function le(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),fe}function fe(I){return Re(I)?Ne(e,oe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):oe(I)}function oe(I){return e.enter("htmlTextData"),s(I)}}const e0={name:"labelEnd",resolveAll:ME,resolveTo:RE,tokenize:DE},kE={tokenize:_E},IE={tokenize:LE},NE={tokenize:PE};function ME(e){let t=-1;const n=[];for(;++t=3&&(l===null||he(l))?(e.exit("thematicBreak"),t(l)):n(l)}function u(l){return l===i?(e.consume(l),r++,u):(e.exit("thematicBreakSequence"),Re(l)?Ne(e,o,"whitespace")(l):o(l))}}const Wt={continuation:{tokenize:$E},exit:YE,name:"list",tokenize:qE},VE={partial:!0,tokenize:GE},jE={partial:!0,tokenize:WE};function qE(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(p){const b=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Ou(p)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(is,n,l)(p):l(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return n(p)}function u(p){return Ou(p)&&++s<10?(e.consume(p),u):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):n(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Ea,r.interrupt?n:c,e.attempt(VE,m,d))}function c(p){return r.containerState.initialBlankLine=!0,a++,m(p)}function d(p){return Re(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),m):n(p)}function m(p){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function $E(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ea,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ne(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!Re(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(jE,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ne(e,e.attempt(Wt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function WE(e,t,n){const r=this;return Ne(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function YE(e){e.exit(this.containerState.type)}function GE(e,t,n){const r=this;return Ne(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!Re(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Kd={name:"setextUnderline",resolveTo:KE,tokenize:XE};function KE(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function XE(e,t,n){const r=this;let i;return a;function a(l){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===i?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),Re(l)?Ne(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||he(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const QE={tokenize:ZE};function ZE(e){const t=this,n=e.attempt(Ea,r,e.attempt(this.parser.constructs.flowInitial,i,Ne(e,e.attempt(this.parser.constructs.flow,i,e.attempt(rE,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const JE={resolveAll:hp()},ex=dp("string"),tx=dp("text");function dp(e){return{resolveAll:hp(e==="text"?nx:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(c){return l(c)?a(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return l(c)?(n.exit("data"),a(c)):(n.consume(c),u)}function l(c){if(c===null)return!0;const d=i[c];let m=-1;if(d)for(;++m-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function px(e,t){let n=-1;const r=[];let i;for(;++n0){const Le=ye.tokenStack[ye.tokenStack.length-1];(Le[1]||Xd).call(ye,void 0,Le[0])}for(ae.position={start:rr(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:rr(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},Me=-1;++Me0){const Le=ye.tokenStack[ye.tokenStack.length-1];(Le[1]||Qd).call(ye,void 0,Le[0])}for(ae.position={start:rr(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:rr(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},Me=-1;++Me1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,u);const l={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,l),e.applyData(t,l)}function Dx(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _x(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function mp(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function Lx(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return mp(e,t);const i={src:gi(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Px(e,t){const n={src:gi(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Ox(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Bx(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return mp(e,t);const i={href:gi(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Fx(e,t){const n={href:gi(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Hx(e,t,n){const r=e.all(t),i=n?zx(n):pp(t),a={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,u);const l={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,l),e.applyData(t,l)}function Dx(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _x(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function pp(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function Lx(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return pp(e,t);const i={src:gi(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Px(e,t){const n={src:gi(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Ox(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Bx(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return pp(e,t);const i={href:gi(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Fx(e,t){const n={href:gi(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Hx(e,t,n){const r=e.all(t),i=n?zx(n):gp(t),a={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o1}function Ux(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Pn(t.children[1]),u=zs(t.children[t.children.length-1]);o&&u&&(s.position={start:o,end:u}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Wx(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let u=-1;const l=[];for(;++u0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Jd(t.slice(i),i>0,!1)),a.join("")}function Jd(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===Qd||a===Zd;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===Qd||a===Zd;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Kx(e,t){const n={type:"text",value:Gx(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Xx(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Qx={blockquote:wx,break:kx,code:Ix,delete:Nx,emphasis:Mx,footnoteReference:Rx,heading:Dx,html:_x,imageReference:Lx,image:Px,inlineCode:Ox,linkReference:Bx,link:Fx,listItem:Hx,list:Ux,paragraph:Vx,root:jx,strong:qx,table:$x,tableCell:Yx,tableRow:Wx,text:Kx,thematicBreak:Xx,toml:Ha,yaml:Ha,definition:Ha,footnoteDefinition:Ha};function Ha(){}const gp=-1,js=0,Wi=1,ys=2,t0=3,n0=4,r0=5,i0=6,bp=7,yp=8,eh=typeof self=="object"?self:globalThis,Zx=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case js:case gp:return n(s,i);case Wi:{const o=n([],i);for(const u of s)o.push(r(u));return o}case ys:{const o=n({},i);for(const[u,l]of s)o[r(u)]=r(l);return o}case t0:return n(new Date(s),i);case n0:{const{source:o,flags:u}=s;return n(new RegExp(o,u),i)}case r0:{const o=n(new Map,i);for(const[u,l]of s)o.set(r(u),r(l));return o}case i0:{const o=n(new Set,i);for(const u of s)o.add(r(u));return o}case bp:{const{name:o,message:u}=s;return n(new eh[o](u),i)}case yp:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(new eh[a](s),i)};return r},th=e=>Zx(new Map,e)(0),qr="",{toString:Jx}={},{keys:ev}=Object,Ri=e=>{const t=typeof e;if(t!=="object"||!e)return[js,t];const n=Jx.call(e).slice(8,-1);switch(n){case"Array":return[Wi,qr];case"Object":return[ys,qr];case"Date":return[t0,qr];case"RegExp":return[n0,qr];case"Map":return[r0,qr];case"Set":return[i0,qr];case"DataView":return[Wi,n]}return n.includes("Array")?[Wi,n]:n.includes("Error")?[bp,n]:[ys,n]},za=([e,t])=>e===js&&(t==="function"||t==="symbol"),tv=(e,t,n,r)=>{const i=(s,o)=>{const u=r.push(s)-1;return n.set(o,u),u},a=s=>{if(n.has(s))return n.get(s);let[o,u]=Ri(s);switch(o){case js:{let c=s;switch(u){case"bigint":o=yp,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);c=null;break;case"undefined":return i([gp],s)}return i([o,c],s)}case Wi:{if(u){let m=s;return u==="DataView"?m=new Uint8Array(s.buffer):u==="ArrayBuffer"&&(m=new Uint8Array(s)),i([u,[...m]],s)}const c=[],d=i([o,c],s);for(const m of s)c.push(a(m));return d}case ys:{if(u)switch(u){case"BigInt":return i([u,s.toString()],s);case"Boolean":case"Number":case"String":return i([u,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const c=[],d=i([o,c],s);for(const m of ev(s))(e||!za(Ri(s[m])))&&c.push([a(m),a(s[m])]);return d}case t0:return i([o,s.toISOString()],s);case n0:{const{source:c,flags:d}=s;return i([o,{source:c,flags:d}],s)}case r0:{const c=[],d=i([o,c],s);for(const[m,p]of s)(e||!(za(Ri(m))||za(Ri(p))))&&c.push([a(m),a(p)]);return d}case i0:{const c=[],d=i([o,c],s);for(const m of s)(e||!za(Ri(m)))&&c.push(a(m));return d}}const{message:l}=s;return i([o,{name:u,message:l}],s)};return a},nh=(e,{json:t,lossy:n}={})=>{const r=[];return tv(!(t||n),!!t,new Map,r)(e),r},Or=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?th(nh(e,t)):structuredClone(e):(e,t)=>th(nh(e,t));function nv(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function rv(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function iv(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||nv,r=e.options.footnoteBackLabel||rv,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let u=-1;for(;++u0&&b.push({type:"text",value:" "});let S=typeof n=="string"?n:n(u,p);typeof S=="string"&&(S={type:"text",value:S}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,p),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const C=c[c.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const S=C.children[C.children.length-1];S&&S.type==="text"?S.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...b)}else c.push(...b);const T={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(c,!0)};e.patch(l,T),o.push(T)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Or(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`});const l={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,l),e.applyData(t,l)}function zx(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r1}function Ux(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Pn(t.children[1]),u=zs(t.children[t.children.length-1]);o&&u&&(s.position={start:o,end:u}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Wx(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let u=-1;const l=[];for(;++u0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(eh(t.slice(i),i>0,!1)),a.join("")}function eh(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===Zd||a===Jd;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===Zd||a===Jd;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Kx(e,t){const n={type:"text",value:Gx(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Xx(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Qx={blockquote:wx,break:kx,code:Ix,delete:Nx,emphasis:Mx,footnoteReference:Rx,heading:Dx,html:_x,imageReference:Lx,image:Px,inlineCode:Ox,linkReference:Bx,link:Fx,listItem:Hx,list:Ux,paragraph:Vx,root:jx,strong:qx,table:$x,tableCell:Yx,tableRow:Wx,text:Kx,thematicBreak:Xx,toml:Ha,yaml:Ha,definition:Ha,footnoteDefinition:Ha};function Ha(){}const bp=-1,js=0,Wi=1,ys=2,t0=3,n0=4,r0=5,i0=6,yp=7,Tp=8,th=typeof self=="object"?self:globalThis,Zx=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case js:case bp:return n(s,i);case Wi:{const o=n([],i);for(const u of s)o.push(r(u));return o}case ys:{const o=n({},i);for(const[u,l]of s)o[r(u)]=r(l);return o}case t0:return n(new Date(s),i);case n0:{const{source:o,flags:u}=s;return n(new RegExp(o,u),i)}case r0:{const o=n(new Map,i);for(const[u,l]of s)o.set(r(u),r(l));return o}case i0:{const o=n(new Set,i);for(const u of s)o.add(r(u));return o}case yp:{const{name:o,message:u}=s;return n(new th[o](u),i)}case Tp:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(new th[a](s),i)};return r},nh=e=>Zx(new Map,e)(0),qr="",{toString:Jx}={},{keys:ev}=Object,Ri=e=>{const t=typeof e;if(t!=="object"||!e)return[js,t];const n=Jx.call(e).slice(8,-1);switch(n){case"Array":return[Wi,qr];case"Object":return[ys,qr];case"Date":return[t0,qr];case"RegExp":return[n0,qr];case"Map":return[r0,qr];case"Set":return[i0,qr];case"DataView":return[Wi,n]}return n.includes("Array")?[Wi,n]:n.includes("Error")?[yp,n]:[ys,n]},za=([e,t])=>e===js&&(t==="function"||t==="symbol"),tv=(e,t,n,r)=>{const i=(s,o)=>{const u=r.push(s)-1;return n.set(o,u),u},a=s=>{if(n.has(s))return n.get(s);let[o,u]=Ri(s);switch(o){case js:{let c=s;switch(u){case"bigint":o=Tp,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);c=null;break;case"undefined":return i([bp],s)}return i([o,c],s)}case Wi:{if(u){let m=s;return u==="DataView"?m=new Uint8Array(s.buffer):u==="ArrayBuffer"&&(m=new Uint8Array(s)),i([u,[...m]],s)}const c=[],d=i([o,c],s);for(const m of s)c.push(a(m));return d}case ys:{if(u)switch(u){case"BigInt":return i([u,s.toString()],s);case"Boolean":case"Number":case"String":return i([u,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const c=[],d=i([o,c],s);for(const m of ev(s))(e||!za(Ri(s[m])))&&c.push([a(m),a(s[m])]);return d}case t0:return i([o,s.toISOString()],s);case n0:{const{source:c,flags:d}=s;return i([o,{source:c,flags:d}],s)}case r0:{const c=[],d=i([o,c],s);for(const[m,p]of s)(e||!(za(Ri(m))||za(Ri(p))))&&c.push([a(m),a(p)]);return d}case i0:{const c=[],d=i([o,c],s);for(const m of s)(e||!za(Ri(m)))&&c.push(a(m));return d}}const{message:l}=s;return i([o,{name:u,message:l}],s)};return a},rh=(e,{json:t,lossy:n}={})=>{const r=[];return tv(!(t||n),!!t,new Map,r)(e),r},Or=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?nh(rh(e,t)):structuredClone(e):(e,t)=>nh(rh(e,t));function nv(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function rv(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function iv(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||nv,r=e.options.footnoteBackLabel||rv,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let u=-1;for(;++u0&&b.push({type:"text",value:" "});let S=typeof n=="string"?n:n(u,p);typeof S=="string"&&(S={type:"text",value:S}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,p),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const C=c[c.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const S=C.children[C.children.length-1];S&&S.type==="text"?S.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...b)}else c.push(...b);const T={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(c,!0)};e.patch(l,T),o.push(T)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Or(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:` -`}]}}const xa=(function(e){if(e==null)return uv;if(typeof e=="function")return qs(e);if(typeof e=="object")return Array.isArray(e)?av(e):sv(e);if(typeof e=="string")return ov(e);throw new Error("Expected function, string, or object as test")});function av(e){const t=[];let n=-1;for(;++n":""))+")"})}return m;function m(){let p=Tp,b,E,C;if((!t||a(u,l,c[c.length-1]||void 0))&&(p=dv(n(u,c)),p[0]===Fu))return p;if("children"in u&&u.children){const T=u;if(T.children&&p[0]!==Ep)for(E=(r?T.children.length:-1)+s,C=c.concat(T);E>-1&&E":""))+")"})}return m;function m(){let p=Ep,b,E,C;if((!t||a(u,l,c[c.length-1]||void 0))&&(p=dv(n(u,c)),p[0]===Fu))return p;if("children"in u&&u.children){const T=u;if(T.children&&p[0]!==xp)for(E=(r?T.children.length:-1)+s,C=c.concat(T);E>-1&&E0&&n.push({type:"text",value:` -`}),n}function rh(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function ih(e,t){const n=fv(e,t),r=n.one(e,void 0),i=iv(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` -`},i),a}function yv(e,t){return e&&"run"in e?async function(n,r){const i=ih(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ih(n,{file:r,...e||t})}}function ah(e){if(e)throw e}var No,sh;function Tv(){if(sh)return No;sh=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},a=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var c=e.call(l,"constructor"),d=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!c&&!d)return!1;var m;for(m in l);return typeof m>"u"||e.call(l,m)},s=function(l,c){n&&c.name==="__proto__"?n(l,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):l[c.name]=c.newValue},o=function(l,c){if(c==="__proto__")if(e.call(l,c)){if(r)return r(l,c).value}else return;return l[c]};return No=function u(){var l,c,d,m,p,b,E=arguments[0],C=1,T=arguments.length,S=!1;for(typeof E=="boolean"&&(S=E,E=arguments[1]||{},C=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});Cs.length;let u;o&&s.push(i);try{u=e.apply(this,s)}catch(l){const c=l;if(o&&n)throw c;return i(c)}o||(u&&u.then&&typeof u.then=="function"?u.then(a,i):u instanceof Error?i(u):a(u))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}const Sn={basename:Sv,dirname:Av,extname:Cv,join:wv,sep:"/"};function Sv(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');va(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function Av(e){if(va(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Cv(e){va(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function wv(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Iv(e,t){let n="",r=0,i=-1,a=0,s=-1,o,u;for(;++s<=e.length;){if(s2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function va(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Nv={cwd:Mv};function Mv(){return"/"}function Uu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Rv(e){if(typeof e=="string")e=new URL(e);else if(!Uu(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Dv(e)}function Dv(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[p,...b]=c;const E=r[m][1];zu(E)&&zu(p)&&(p=Mo(!0,E,p)),r[m]=[l,p,...b]}}}}const Ov=new s0().freeze();function Lo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Po(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Oo(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function uh(e){if(!zu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function lh(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ua(e){return Bv(e)?e:new xp(e)}function Bv(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Fv(e){return typeof e=="string"||Hv(e)}function Hv(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const zv="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ch=[],dh={allowDangerousHtml:!0},Uv=/^(https?|ircs?|mailto|xmpp)$/i,Vv=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function jv(e){const t=qv(e),n=$v(e);return Wv(t.runSync(t.parse(n),n),e)}function qv(e){const t=e.rehypePlugins||ch,n=e.remarkPlugins||ch,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...dh}:dh;return Ov().use(Cx).use(n).use(yv,r).use(t)}function $v(e){const t=e.children||"",n=new xp;return typeof t=="string"&&(n.value=t),n}function Wv(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,u=t.urlTransform||Yv;for(const c of Vv)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+zv+c.id,void 0);return $s(e,l),uT(e,{Fragment:L.Fragment,components:i,ignoreInvalidStyle:!0,jsx:L.jsx,jsxs:L.jsxs,passKeys:!0,passNode:!0});function l(c,d,m){if(c.type==="raw"&&m&&typeof d=="number")return s?m.children.splice(d,1):m.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let p;for(p in wo)if(Object.hasOwn(wo,p)&&Object.hasOwn(c.properties,p)){const b=c.properties[p],E=wo[p];(E===null||E.includes(c.tagName))&&(c.properties[p]=u(String(b||""),p,c))}}if(c.type==="element"){let p=n?!n.includes(c.tagName):a?a.includes(c.tagName):!1;if(!p&&r&&typeof d=="number"&&(p=!r(c,d,m)),p&&m&&typeof d=="number")return o&&c.children?m.children.splice(d,1,...c.children):m.children.splice(d,1),d}}}function Yv(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Uv.test(e.slice(0,t))?e:""}function hh(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Gv(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Kv(e,t,n){const i=xa((n||{}).ignore||[]),a=Xv(t);let s=-1;for(;++s0?{type:"text",value:k}:void 0),k===!1?m.lastIndex=_+1:(b!==_&&S.push({type:"text",value:l.value.slice(b,_)}),Array.isArray(k)?S.push(...k):k&&S.push(k),b=_+v[0].length,T=!0),!m.global)break;v=m.exec(l.value)}return T?(b?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=hh(e,"(");let a=hh(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function vp(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Pr(n)||Us(n))&&(!t||n!==47)}Sp.peek=TS;function dS(){this.buffer()}function hS(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function fS(){this.buffer()}function mS(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function pS(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=yn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function gS(e){this.exit(e)}function bS(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=yn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function yS(e){this.exit(e)}function TS(){return"["}function Sp(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=i.move("]"),a}function ES(){return{enter:{gfmFootnoteCallString:dS,gfmFootnoteCall:hS,gfmFootnoteDefinitionLabelString:fS,gfmFootnoteDefinition:mS},exit:{gfmFootnoteCallString:pS,gfmFootnoteCall:gS,gfmFootnoteDefinitionLabelString:bS,gfmFootnoteDefinition:yS}}}function xS(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Sp},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,s){const o=a.createTracker(s);let u=o.move("[^");const l=a.enter("footnoteDefinition"),c=a.enter("label");return u+=o.move(a.safe(a.associationId(r),{before:u,after:"]"})),c(),u+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),u+=o.move((t?` -`:" ")+a.indentLines(a.containerFlow(r,o.current()),t?Ap:vS))),l(),u}}function vS(e,t,n){return t===0?e:Ap(e,t,n)}function Ap(e,t,n){return(n?"":" ")+e}const SS=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Cp.peek=IS;function AS(){return{canContainEols:["delete"],enter:{strikethrough:wS},exit:{strikethrough:kS}}}function CS(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:SS}],handlers:{delete:Cp}}}function wS(e){this.enter({type:"delete",children:[]},e)}function kS(e){this.exit(e)}function Cp(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function IS(){return"~"}function NS(e){return e.length}function MS(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||NS,a=[],s=[],o=[],u=[];let l=0,c=-1;for(;++cl&&(l=e[c].length);++Tu[T])&&(u[T]=v)}E.push(S)}s[c]=E,o[c]=C}let d=-1;if(typeof r=="object"&&"length"in r)for(;++du[d]&&(u[d]=S),p[d]=S),m[d]=v}s.splice(1,0,m),o.splice(1,0,p),c=-1;const b=[];for(;++c "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),_S);return i(),s}function _S(e,t,n){return">"+(n?"":" ")+e}function LS(e,t){return ph(e,t.inConstruct,!0)&&!ph(e,t.notInConstruct,!1)}function ph(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r"u"||e.call(l,m)},s=function(l,c){n&&c.name==="__proto__"?n(l,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):l[c.name]=c.newValue},o=function(l,c){if(c==="__proto__")if(e.call(l,c)){if(r)return r(l,c).value}else return;return l[c]};return No=function u(){var l,c,d,m,p,b,E=arguments[0],C=1,T=arguments.length,S=!1;for(typeof E=="boolean"&&(S=E,E=arguments[1]||{},C=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});Cs.length;let u;o&&s.push(i);try{u=e.apply(this,s)}catch(l){const c=l;if(o&&n)throw c;return i(c)}o||(u&&u.then&&typeof u.then=="function"?u.then(a,i):u instanceof Error?i(u):a(u))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}const Sn={basename:Sv,dirname:Av,extname:Cv,join:wv,sep:"/"};function Sv(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');va(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function Av(e){if(va(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Cv(e){va(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function wv(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Iv(e,t){let n="",r=0,i=-1,a=0,s=-1,o,u;for(;++s<=e.length;){if(s2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function va(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Nv={cwd:Mv};function Mv(){return"/"}function Uu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Rv(e){if(typeof e=="string")e=new URL(e);else if(!Uu(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Dv(e)}function Dv(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[p,...b]=c;const E=r[m][1];zu(E)&&zu(p)&&(p=Mo(!0,E,p)),r[m]=[l,p,...b]}}}}const Ov=new s0().freeze();function Lo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Po(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Oo(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function lh(e){if(!zu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ch(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ua(e){return Bv(e)?e:new vp(e)}function Bv(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Fv(e){return typeof e=="string"||Hv(e)}function Hv(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const zv="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",dh=[],hh={allowDangerousHtml:!0},Uv=/^(https?|ircs?|mailto|xmpp)$/i,Vv=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function jv(e){const t=qv(e),n=$v(e);return Wv(t.runSync(t.parse(n),n),e)}function qv(e){const t=e.rehypePlugins||dh,n=e.remarkPlugins||dh,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...hh}:hh;return Ov().use(Cx).use(n).use(yv,r).use(t)}function $v(e){const t=e.children||"",n=new vp;return typeof t=="string"&&(n.value=t),n}function Wv(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,u=t.urlTransform||Yv;for(const c of Vv)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+zv+c.id,void 0);return $s(e,l),uT(e,{Fragment:L.Fragment,components:i,ignoreInvalidStyle:!0,jsx:L.jsx,jsxs:L.jsxs,passKeys:!0,passNode:!0});function l(c,d,m){if(c.type==="raw"&&m&&typeof d=="number")return s?m.children.splice(d,1):m.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let p;for(p in wo)if(Object.hasOwn(wo,p)&&Object.hasOwn(c.properties,p)){const b=c.properties[p],E=wo[p];(E===null||E.includes(c.tagName))&&(c.properties[p]=u(String(b||""),p,c))}}if(c.type==="element"){let p=n?!n.includes(c.tagName):a?a.includes(c.tagName):!1;if(!p&&r&&typeof d=="number"&&(p=!r(c,d,m)),p&&m&&typeof d=="number")return o&&c.children?m.children.splice(d,1,...c.children):m.children.splice(d,1),d}}}function Yv(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Uv.test(e.slice(0,t))?e:""}function fh(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Gv(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Kv(e,t,n){const i=xa((n||{}).ignore||[]),a=Xv(t);let s=-1;for(;++s0?{type:"text",value:k}:void 0),k===!1?m.lastIndex=_+1:(b!==_&&S.push({type:"text",value:l.value.slice(b,_)}),Array.isArray(k)?S.push(...k):k&&S.push(k),b=_+v[0].length,T=!0),!m.global)break;v=m.exec(l.value)}return T?(b?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=fh(e,"(");let a=fh(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function Sp(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Pr(n)||Us(n))&&(!t||n!==47)}Ap.peek=TS;function dS(){this.buffer()}function hS(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function fS(){this.buffer()}function mS(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function pS(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=yn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function gS(e){this.exit(e)}function bS(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=yn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function yS(e){this.exit(e)}function TS(){return"["}function Ap(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=i.move("]"),a}function ES(){return{enter:{gfmFootnoteCallString:dS,gfmFootnoteCall:hS,gfmFootnoteDefinitionLabelString:fS,gfmFootnoteDefinition:mS},exit:{gfmFootnoteCallString:pS,gfmFootnoteCall:gS,gfmFootnoteDefinitionLabelString:bS,gfmFootnoteDefinition:yS}}}function xS(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Ap},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,s){const o=a.createTracker(s);let u=o.move("[^");const l=a.enter("footnoteDefinition"),c=a.enter("label");return u+=o.move(a.safe(a.associationId(r),{before:u,after:"]"})),c(),u+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),u+=o.move((t?` +`:" ")+a.indentLines(a.containerFlow(r,o.current()),t?Cp:vS))),l(),u}}function vS(e,t,n){return t===0?e:Cp(e,t,n)}function Cp(e,t,n){return(n?"":" ")+e}const SS=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];wp.peek=IS;function AS(){return{canContainEols:["delete"],enter:{strikethrough:wS},exit:{strikethrough:kS}}}function CS(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:SS}],handlers:{delete:wp}}}function wS(e){this.enter({type:"delete",children:[]},e)}function kS(e){this.exit(e)}function wp(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function IS(){return"~"}function NS(e){return e.length}function MS(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||NS,a=[],s=[],o=[],u=[];let l=0,c=-1;for(;++cl&&(l=e[c].length);++Tu[T])&&(u[T]=v)}E.push(S)}s[c]=E,o[c]=C}let d=-1;if(typeof r=="object"&&"length"in r)for(;++du[d]&&(u[d]=S),p[d]=S),m[d]=v}s.splice(1,0,m),o.splice(1,0,p),c=-1;const b=[];for(;++c "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),_S);return i(),s}function _S(e,t,n){return">"+(n?"":" ")+e}function LS(e,t){return gh(e,t.inConstruct,!0)&&!gh(e,t.notInConstruct,!1)}function gh(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++rs&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function PS(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function OS(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function BS(e,t,n,r){const i=OS(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(PS(e,n)){const d=n.enter("codeIndented"),m=n.indentLines(a,FS);return d(),m}const o=n.createTracker(r),u=i.repeat(Math.max(kp(a,i)+1,3)),l=n.enter("codeFenced");let c=o.move(u);if(e.lang){const d=n.enter(`codeFencedLang${s}`);c+=o.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(n.safe(e.meta,{before:c,after:` +`}function Ip(e,t){const n=String(e);let r=n.indexOf(t),i=r,a=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>s&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function PS(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function OS(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function BS(e,t,n,r){const i=OS(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(PS(e,n)){const d=n.enter("codeIndented"),m=n.indentLines(a,FS);return d(),m}const o=n.createTracker(r),u=i.repeat(Math.max(Ip(a,i)+1,3)),l=n.enter("codeFenced");let c=o.move(u);if(e.lang){const d=n.enter(`codeFencedLang${s}`);c+=o.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(n.safe(e.meta,{before:c,after:` `,encode:["`"],...o.current()})),d()}return c+=o.move(` `),a&&(c+=o.move(a+` `)),c+=o.move(u),l(),c}function FS(e,t,n){return(n?"":" ")+e}function o0(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function HS(e,t,n,r){const i=o0(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=n.enter("label");const u=n.createTracker(r);let l=u.move("[");return l+=u.move(n.safe(n.associationId(e),{before:l,after:"]",...u.current()})),l+=u.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(n.safe(e.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(o=n.enter("destinationRaw"),l+=u.move(n.safe(e.url,{before:l,after:e.title?" ":` -`,...u.current()}))),o(),e.title&&(o=n.enter(`title${a}`),l+=u.move(" "+i),l+=u.move(n.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),o()),s(),l}function zS(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function la(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ts(e,t,n){const r=oi(e),i=oi(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Ip.peek=US;function Ip(e,t,n,r){const i=zS(n),a=n.enter("emphasis"),s=n.createTracker(r),o=s.move(i);let u=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const l=u.charCodeAt(0),c=Ts(r.before.charCodeAt(r.before.length-1),l,i);c.inside&&(u=la(l)+u.slice(1));const d=u.charCodeAt(u.length-1),m=Ts(r.after.charCodeAt(0),d,i);m.inside&&(u=u.slice(0,-1)+la(d));const p=s.move(i);return a(),n.attentionEncodeSurroundingInfo={after:m.outside,before:c.outside},o+u+p}function US(e,t,n){return n.options.emphasis||"*"}function VS(e,t){let n=!1;return $s(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Fu}),!!((!e.depth||e.depth<3)&&Zl(e)&&(t.options.setext||n))}function jS(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(VS(e,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),m=n.containerPhrasing(e,{...a.current(),before:` +`,...u.current()}))),o(),e.title&&(o=n.enter(`title${a}`),l+=u.move(" "+i),l+=u.move(n.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),o()),s(),l}function zS(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function la(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ts(e,t,n){const r=oi(e),i=oi(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Np.peek=US;function Np(e,t,n,r){const i=zS(n),a=n.enter("emphasis"),s=n.createTracker(r),o=s.move(i);let u=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const l=u.charCodeAt(0),c=Ts(r.before.charCodeAt(r.before.length-1),l,i);c.inside&&(u=la(l)+u.slice(1));const d=u.charCodeAt(u.length-1),m=Ts(r.after.charCodeAt(0),d,i);m.inside&&(u=u.slice(0,-1)+la(d));const p=s.move(i);return a(),n.attentionEncodeSurroundingInfo={after:m.outside,before:c.outside},o+u+p}function US(e,t,n){return n.options.emphasis||"*"}function VS(e,t){let n=!1;return $s(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Fu}),!!((!e.depth||e.depth<3)&&Zl(e)&&(t.options.setext||n))}function jS(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(VS(e,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),m=n.containerPhrasing(e,{...a.current(),before:` `,after:` `});return d(),c(),m+` `+(i===1?"=":"-").repeat(m.length-(Math.max(m.lastIndexOf("\r"),m.lastIndexOf(` `))+1))}const s="#".repeat(i),o=n.enter("headingAtx"),u=n.enter("phrasing");a.move(s+" ");let l=n.containerPhrasing(e,{before:"# ",after:` -`,...a.current()});return/^[\t ]/.test(l)&&(l=la(l.charCodeAt(0))+l.slice(1)),l=l?s+" "+l:s,n.options.closeAtx&&(l+=" "+s),u(),o(),l}Np.peek=qS;function Np(e){return e.value||""}function qS(){return"<"}Mp.peek=$S;function Mp(e,t,n,r){const i=o0(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const u=n.createTracker(r);let l=u.move("![");return l+=u.move(n.safe(e.alt,{before:l,after:"]",...u.current()})),l+=u.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(n.safe(e.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(o=n.enter("destinationRaw"),l+=u.move(n.safe(e.url,{before:l,after:e.title?" ":")",...u.current()}))),o(),e.title&&(o=n.enter(`title${a}`),l+=u.move(" "+i),l+=u.move(n.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),o()),l+=u.move(")"),s(),l}function $S(){return"!"}Rp.peek=WS;function Rp(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let u=o.move("![");const l=n.safe(e.alt,{before:u,after:"]",...o.current()});u+=o.move(l+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!l||l!==d?u+=o.move(d+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function WS(){return"!"}Dp.peek=YS;function Dp(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a\u007F]/.test(e.url))}Lp.peek=GS;function Lp(e,t,n,r){const i=o0(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,u;if(_p(e,n)){const c=n.stack;n.stack=[],o=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),o(),n.stack=c,d}o=n.enter("link"),u=n.enter("label");let l=s.move("[");return l+=s.move(n.containerPhrasing(e,{before:l,after:"](",...s.current()})),l+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),l+=s.move("<"),l+=s.move(n.safe(e.url,{before:l,after:">",...s.current()})),l+=s.move(">")):(u=n.enter("destinationRaw"),l+=s.move(n.safe(e.url,{before:l,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=n.enter(`title${a}`),l+=s.move(" "+i),l+=s.move(n.safe(e.title,{before:l,after:i,...s.current()})),l+=s.move(i),u()),l+=s.move(")"),o(),l}function GS(e,t,n){return _p(e,n)?"<":"["}Pp.peek=KS;function Pp(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let u=o.move("[");const l=n.containerPhrasing(e,{before:u,after:"]",...o.current()});u+=o.move(l+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!l||l!==d?u+=o.move(d+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function KS(){return"["}function u0(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function XS(e){const t=u0(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function QS(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Op(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function ZS(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?QS(n):u0(n);const o=e.ordered?s==="."?")":".":XS(n);let u=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),Op(n)===s&&c){let d=-1;for(;++d-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);const u=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,o.current()),c);return u(),l;function c(d,m,p){return m?(p?"":" ".repeat(s))+d:(p?a:a+" ".repeat(s-a.length))+d}}function tA(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const nA=xa(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function rA(e,t,n,r){return(e.children.some(function(s){return nA(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function iA(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Bp.peek=aA;function Bp(e,t,n,r){const i=iA(n),a=n.enter("strong"),s=n.createTracker(r),o=s.move(i+i);let u=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const l=u.charCodeAt(0),c=Ts(r.before.charCodeAt(r.before.length-1),l,i);c.inside&&(u=la(l)+u.slice(1));const d=u.charCodeAt(u.length-1),m=Ts(r.after.charCodeAt(0),d,i);m.inside&&(u=u.slice(0,-1)+la(d));const p=s.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:m.outside,before:c.outside},o+u+p}function aA(e,t,n){return n.options.strong||"*"}function sA(e,t,n,r){return n.safe(e.value,r)}function oA(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function uA(e,t,n){const r=(Op(n)+(n.options.ruleSpaces?" ":"")).repeat(oA(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Fp={blockquote:DS,break:gh,code:BS,definition:HS,emphasis:Ip,hardBreak:gh,heading:jS,html:Np,image:Mp,imageReference:Rp,inlineCode:Dp,link:Lp,linkReference:Pp,list:ZS,listItem:eA,paragraph:tA,root:rA,strong:Bp,text:sA,thematicBreak:uA};function lA(){return{enter:{table:cA,tableData:bh,tableHeader:bh,tableRow:hA},exit:{codeText:fA,table:dA,tableData:zo,tableHeader:zo,tableRow:zo}}}function cA(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function dA(e){this.exit(e),this.data.inTable=void 0}function hA(e){this.enter({type:"tableRow",children:[]},e)}function zo(e){this.exit(e)}function bh(e){this.enter({type:"tableCell",children:[]},e)}function fA(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,mA));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function mA(e,t){return t==="|"?t:e}function pA(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,...a.current()});return/^[\t ]/.test(l)&&(l=la(l.charCodeAt(0))+l.slice(1)),l=l?s+" "+l:s,n.options.closeAtx&&(l+=" "+s),u(),o(),l}Mp.peek=qS;function Mp(e){return e.value||""}function qS(){return"<"}Rp.peek=$S;function Rp(e,t,n,r){const i=o0(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const u=n.createTracker(r);let l=u.move("![");return l+=u.move(n.safe(e.alt,{before:l,after:"]",...u.current()})),l+=u.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(n.safe(e.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(o=n.enter("destinationRaw"),l+=u.move(n.safe(e.url,{before:l,after:e.title?" ":")",...u.current()}))),o(),e.title&&(o=n.enter(`title${a}`),l+=u.move(" "+i),l+=u.move(n.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),o()),l+=u.move(")"),s(),l}function $S(){return"!"}Dp.peek=WS;function Dp(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let u=o.move("![");const l=n.safe(e.alt,{before:u,after:"]",...o.current()});u+=o.move(l+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!l||l!==d?u+=o.move(d+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function WS(){return"!"}_p.peek=YS;function _p(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a\u007F]/.test(e.url))}Pp.peek=GS;function Pp(e,t,n,r){const i=o0(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,u;if(Lp(e,n)){const c=n.stack;n.stack=[],o=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),o(),n.stack=c,d}o=n.enter("link"),u=n.enter("label");let l=s.move("[");return l+=s.move(n.containerPhrasing(e,{before:l,after:"](",...s.current()})),l+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),l+=s.move("<"),l+=s.move(n.safe(e.url,{before:l,after:">",...s.current()})),l+=s.move(">")):(u=n.enter("destinationRaw"),l+=s.move(n.safe(e.url,{before:l,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=n.enter(`title${a}`),l+=s.move(" "+i),l+=s.move(n.safe(e.title,{before:l,after:i,...s.current()})),l+=s.move(i),u()),l+=s.move(")"),o(),l}function GS(e,t,n){return Lp(e,n)?"<":"["}Op.peek=KS;function Op(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let u=o.move("[");const l=n.containerPhrasing(e,{before:u,after:"]",...o.current()});u+=o.move(l+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!l||l!==d?u+=o.move(d+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function KS(){return"["}function u0(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function XS(e){const t=u0(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function QS(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Bp(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function ZS(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?QS(n):u0(n);const o=e.ordered?s==="."?")":".":XS(n);let u=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),Bp(n)===s&&c){let d=-1;for(;++d-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);const u=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,o.current()),c);return u(),l;function c(d,m,p){return m?(p?"":" ".repeat(s))+d:(p?a:a+" ".repeat(s-a.length))+d}}function tA(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const nA=xa(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function rA(e,t,n,r){return(e.children.some(function(s){return nA(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function iA(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Fp.peek=aA;function Fp(e,t,n,r){const i=iA(n),a=n.enter("strong"),s=n.createTracker(r),o=s.move(i+i);let u=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const l=u.charCodeAt(0),c=Ts(r.before.charCodeAt(r.before.length-1),l,i);c.inside&&(u=la(l)+u.slice(1));const d=u.charCodeAt(u.length-1),m=Ts(r.after.charCodeAt(0),d,i);m.inside&&(u=u.slice(0,-1)+la(d));const p=s.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:m.outside,before:c.outside},o+u+p}function aA(e,t,n){return n.options.strong||"*"}function sA(e,t,n,r){return n.safe(e.value,r)}function oA(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function uA(e,t,n){const r=(Bp(n)+(n.options.ruleSpaces?" ":"")).repeat(oA(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Hp={blockquote:DS,break:bh,code:BS,definition:HS,emphasis:Np,hardBreak:bh,heading:jS,html:Mp,image:Rp,imageReference:Dp,inlineCode:_p,link:Pp,linkReference:Op,list:ZS,listItem:eA,paragraph:tA,root:rA,strong:Fp,text:sA,thematicBreak:uA};function lA(){return{enter:{table:cA,tableData:yh,tableHeader:yh,tableRow:hA},exit:{codeText:fA,table:dA,tableData:zo,tableHeader:zo,tableRow:zo}}}function cA(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function dA(e){this.exit(e),this.data.inTable=void 0}function hA(e){this.enter({type:"tableRow",children:[]},e)}function zo(e){this.exit(e)}function yh(e){this.enter({type:"tableCell",children:[]},e)}function fA(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,mA));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function mA(e,t){return t==="|"?t:e}function pA(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:s,tableCell:u,tableRow:o}};function s(p,b,E,C){return l(c(p,E,C),p.align)}function o(p,b,E,C){const T=d(p,E,C),S=l([T]);return S.slice(0,S.indexOf(` -`))}function u(p,b,E,C){const T=E.enter("tableCell"),S=E.enter("phrasing"),v=E.containerPhrasing(p,{...C,before:a,after:a});return S(),T(),v}function l(p,b){return MS(p,{align:b,alignDelimiters:r,padding:n,stringLength:i})}function c(p,b,E){const C=p.children;let T=-1;const S=[],v=b.enter("table");for(;++T0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const _A={tokenize:UA,partial:!0};function LA(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:FA,continuation:{tokenize:HA},exit:zA}},text:{91:{name:"gfmFootnoteCall",tokenize:BA},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:PA,resolveTo:OA}}}}function PA(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return o;function o(u){if(!s||!s._balanced)return n(u);const l=yn(r.sliceSerialize({start:s.end,end:r.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function OA(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function BA(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),u}function u(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(d){if(a>999||d===93&&!s||d===null||d===91||Ye(d))return n(d);if(d===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return i.includes(yn(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Ye(d)||(s=!0),a++,e.consume(d),d===92?c:l}function c(d){return d===91||d===92||d===93?(e.consume(d),a++,l):l(d)}}function FA(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(b)}function c(b){if(s>999||b===93&&!o||b===null||b===91||Ye(b))return n(b);if(b===93){e.exit("chunkString");const E=e.exit("gfmFootnoteDefinitionLabelString");return a=yn(r.sliceSerialize(E)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return Ye(b)||(o=!0),s++,e.consume(b),b===92?d:c}function d(b){return b===91||b===92||b===93?(e.consume(b),s++,c):c(b)}function m(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),Ne(e,p,"gfmFootnoteDefinitionWhitespace")):n(b)}function p(b){return t(b)}}function HA(e,t,n){return e.check(Ea,t,e.attempt(_A,t,n))}function zA(e){e.exit("gfmFootnoteDefinition")}function UA(e,t,n){const r=this;return Ne(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function VA(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let u=-1;for(;++u1?u(b):(s.consume(b),d++,p);if(d<2&&!n)return u(b);const C=s.exit("strikethroughSequenceTemporary"),T=oi(b);return C._open=!T||T===2&&!!E,C._close=!E||E===2&&!!T,o(b)}}}class jA{constructor(){this.map=[]}add(t,n,r){qA(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function qA(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const j=r.events[K][1].type;if(j==="lineEnding"||j==="linePrefix")K--;else break}const Y=K>-1?r.events[K][1].type:null,X=Y==="tableHead"||Y==="tableRow"?k:u;return X===k&&r.parser.lazy[r.now().line]?n(B):X(B)}function u(B){return e.enter("tableHead"),e.enter("tableRow"),l(B)}function l(B){return B===124||(s=!0,a+=1),c(B)}function c(B){return B===null?n(B):he(B)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),p):n(B):Re(B)?Ne(e,c,"whitespace")(B):(a+=1,s&&(s=!1,i+=1),B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),d(B)))}function d(B){return B===null||B===124||Ye(B)?(e.exit("data"),c(B)):(e.consume(B),B===92?m:d)}function m(B){return B===92||B===124?(e.consume(B),d):d(B)}function p(B){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(B):(e.enter("tableDelimiterRow"),s=!1,Re(B)?Ne(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):b(B))}function b(B){return B===45||B===58?C(B):B===124?(s=!0,e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),E):P(B)}function E(B){return Re(B)?Ne(e,C,"whitespace")(B):C(B)}function C(B){return B===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),T):B===45?(a+=1,T(B)):B===null||he(B)?_(B):P(B)}function T(B){return B===45?(e.enter("tableDelimiterFiller"),S(B)):P(B)}function S(B){return B===45?(e.consume(B),S):B===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(B))}function v(B){return Re(B)?Ne(e,_,"whitespace")(B):_(B)}function _(B){return B===124?b(B):B===null||he(B)?!s||i!==a?P(B):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(B)):P(B)}function P(B){return n(B)}function k(B){return e.enter("tableRow"),V(B)}function V(B){return B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),V):B===null||he(B)?(e.exit("tableRow"),t(B)):Re(B)?Ne(e,V,"whitespace")(B):(e.enter("data"),U(B))}function U(B){return B===null||B===124||Ye(B)?(e.exit("data"),V(B)):(e.consume(B),B===92?q:U)}function q(B){return B===92||B===124?(e.consume(B),U):U(B)}}function GA(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,u=0,l,c,d;const m=new jA;for(;++nn[2]+1){const b=n[2]+1,E=n[3]-n[2]-1;e.add(b,E,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},Yr(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Th(e,t,n,r,i){const a=[],s=Yr(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function Yr(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const KA={name:"tasklistCheck",tokenize:QA};function XA(){return{text:{91:KA}}}function QA(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return Ye(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):n(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(u)}function o(u){return he(u)?t(u):Re(u)?e.check({tokenize:ZA},t,n)(u):n(u)}}function ZA(e,t,n){return Ne(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function JA(e){return tp([AA(),LA(),VA(e),WA(),XA()])}const eC={};function Eh(e){const t=this,n=e||eC,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(JA(n)),a.push(EA()),s.push(xA(n))}function tC(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:o,mathText:s,mathTextData:o}};function e(u){const l={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[l]}},u)}function t(){this.buffer()}function n(){const u=this.resume(),l=this.stack[this.stack.length-1];l.type,l.meta=u}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(u){const l=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=l;const d=c.data.hChildren[0];d.type,d.tagName,d.children.push({type:"text",value:l}),this.data.mathFlowInside=void 0}function a(u){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},u),this.buffer()}function s(u){const l=this.resume(),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=l,c.data.hChildren.push({type:"text",value:l})}function o(u){this.config.enter.data.call(this,u),this.config.exit.data.call(this,u)}}function nC(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` -`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(a,s,o,u){const l=a.value||"",c=o.createTracker(u),d="$".repeat(Math.max(kp(l,"$")+1,2)),m=o.enter("mathFlow");let p=c.move(d);if(a.meta){const b=o.enter("mathFlowMeta");p+=c.move(o.safe(a.meta,{after:` +`))}function u(p,b,E,C){const T=E.enter("tableCell"),S=E.enter("phrasing"),v=E.containerPhrasing(p,{...C,before:a,after:a});return S(),T(),v}function l(p,b){return MS(p,{align:b,alignDelimiters:r,padding:n,stringLength:i})}function c(p,b,E){const C=p.children;let T=-1;const S=[],v=b.enter("table");for(;++T0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const _A={tokenize:UA,partial:!0};function LA(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:FA,continuation:{tokenize:HA},exit:zA}},text:{91:{name:"gfmFootnoteCall",tokenize:BA},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:PA,resolveTo:OA}}}}function PA(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return o;function o(u){if(!s||!s._balanced)return n(u);const l=yn(r.sliceSerialize({start:s.end,end:r.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function OA(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function BA(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),u}function u(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(d){if(a>999||d===93&&!s||d===null||d===91||Ye(d))return n(d);if(d===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return i.includes(yn(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Ye(d)||(s=!0),a++,e.consume(d),d===92?c:l}function c(d){return d===91||d===92||d===93?(e.consume(d),a++,l):l(d)}}function FA(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(b)}function c(b){if(s>999||b===93&&!o||b===null||b===91||Ye(b))return n(b);if(b===93){e.exit("chunkString");const E=e.exit("gfmFootnoteDefinitionLabelString");return a=yn(r.sliceSerialize(E)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return Ye(b)||(o=!0),s++,e.consume(b),b===92?d:c}function d(b){return b===91||b===92||b===93?(e.consume(b),s++,c):c(b)}function m(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),Ne(e,p,"gfmFootnoteDefinitionWhitespace")):n(b)}function p(b){return t(b)}}function HA(e,t,n){return e.check(Ea,t,e.attempt(_A,t,n))}function zA(e){e.exit("gfmFootnoteDefinition")}function UA(e,t,n){const r=this;return Ne(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function VA(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let u=-1;for(;++u1?u(b):(s.consume(b),d++,p);if(d<2&&!n)return u(b);const C=s.exit("strikethroughSequenceTemporary"),T=oi(b);return C._open=!T||T===2&&!!E,C._close=!E||E===2&&!!T,o(b)}}}class jA{constructor(){this.map=[]}add(t,n,r){qA(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function qA(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const j=r.events[K][1].type;if(j==="lineEnding"||j==="linePrefix")K--;else break}const Y=K>-1?r.events[K][1].type:null,X=Y==="tableHead"||Y==="tableRow"?k:u;return X===k&&r.parser.lazy[r.now().line]?n(B):X(B)}function u(B){return e.enter("tableHead"),e.enter("tableRow"),l(B)}function l(B){return B===124||(s=!0,a+=1),c(B)}function c(B){return B===null?n(B):he(B)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),p):n(B):Re(B)?Ne(e,c,"whitespace")(B):(a+=1,s&&(s=!1,i+=1),B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),d(B)))}function d(B){return B===null||B===124||Ye(B)?(e.exit("data"),c(B)):(e.consume(B),B===92?m:d)}function m(B){return B===92||B===124?(e.consume(B),d):d(B)}function p(B){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(B):(e.enter("tableDelimiterRow"),s=!1,Re(B)?Ne(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):b(B))}function b(B){return B===45||B===58?C(B):B===124?(s=!0,e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),E):P(B)}function E(B){return Re(B)?Ne(e,C,"whitespace")(B):C(B)}function C(B){return B===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),T):B===45?(a+=1,T(B)):B===null||he(B)?_(B):P(B)}function T(B){return B===45?(e.enter("tableDelimiterFiller"),S(B)):P(B)}function S(B){return B===45?(e.consume(B),S):B===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(B))}function v(B){return Re(B)?Ne(e,_,"whitespace")(B):_(B)}function _(B){return B===124?b(B):B===null||he(B)?!s||i!==a?P(B):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(B)):P(B)}function P(B){return n(B)}function k(B){return e.enter("tableRow"),V(B)}function V(B){return B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),V):B===null||he(B)?(e.exit("tableRow"),t(B)):Re(B)?Ne(e,V,"whitespace")(B):(e.enter("data"),U(B))}function U(B){return B===null||B===124||Ye(B)?(e.exit("data"),V(B)):(e.consume(B),B===92?q:U)}function q(B){return B===92||B===124?(e.consume(B),U):U(B)}}function GA(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,u=0,l,c,d;const m=new jA;for(;++nn[2]+1){const b=n[2]+1,E=n[3]-n[2]-1;e.add(b,E,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},Yr(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Eh(e,t,n,r,i){const a=[],s=Yr(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function Yr(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const KA={name:"tasklistCheck",tokenize:QA};function XA(){return{text:{91:KA}}}function QA(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return Ye(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):n(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(u)}function o(u){return he(u)?t(u):Re(u)?e.check({tokenize:ZA},t,n)(u):n(u)}}function ZA(e,t,n){return Ne(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function JA(e){return np([AA(),LA(),VA(e),WA(),XA()])}const eC={};function xh(e){const t=this,n=e||eC,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(JA(n)),a.push(EA()),s.push(xA(n))}function tC(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:o,mathText:s,mathTextData:o}};function e(u){const l={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[l]}},u)}function t(){this.buffer()}function n(){const u=this.resume(),l=this.stack[this.stack.length-1];l.type,l.meta=u}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(u){const l=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=l;const d=c.data.hChildren[0];d.type,d.tagName,d.children.push({type:"text",value:l}),this.data.mathFlowInside=void 0}function a(u){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},u),this.buffer()}function s(u){const l=this.resume(),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=l,c.data.hChildren.push({type:"text",value:l})}function o(u){this.config.enter.data.call(this,u),this.config.exit.data.call(this,u)}}function nC(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` +`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(a,s,o,u){const l=a.value||"",c=o.createTracker(u),d="$".repeat(Math.max(Ip(l,"$")+1,2)),m=o.enter("mathFlow");let p=c.move(d);if(a.meta){const b=o.enter("mathFlowMeta");p+=c.move(o.safe(a.meta,{after:` `,before:p,encode:["$"],...c.current()})),b()}return p+=c.move(` `),l&&(p+=c.move(l+` -`)),p+=c.move(d),m(),p}function r(a,s,o){let u=a.value||"",l=1;for(t||l++;new RegExp("(^|[^$])"+"\\$".repeat(l)+"([^$]|$)").test(u);)l++;const c="$".repeat(l);/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^\$|\$$/.test(u))&&(u=" "+u+" ");let d=-1;for(;++d15?l="…"+o.slice(i-15,i):l=o.slice(0,i);var c;a+15":">","<":"<",'"':""","'":"'"},pC=/[&><"']/g;function gC(e){return String(e).replace(pC,t=>mC[t])}var Yp=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},bC=function(t){var n=Yp(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},yC=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},TC=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},pe={contains:cC,deflt:dC,escape:gC,hyphenate:fC,getBaseElem:Yp,isCharacterBox:bC,protocolFromUrl:TC},as={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function EC(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class c0{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in as)if(as.hasOwnProperty(n)){var r=as[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:EC(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new te("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var n=pe.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class ir{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return An[xC[this.id]]}sub(){return An[vC[this.id]]}fracNum(){return An[SC[this.id]]}fracDen(){return An[AC[this.id]]}cramp(){return An[CC[this.id]]}text(){return An[wC[this.id]]}isTight(){return this.size>=2}}var d0=0,Es=1,ri=2,qn=3,ca=4,cn=5,ui=6,zt=7,An=[new ir(d0,0,!1),new ir(Es,0,!0),new ir(ri,1,!1),new ir(qn,1,!0),new ir(ca,2,!1),new ir(cn,2,!0),new ir(ui,3,!1),new ir(zt,3,!0)],xC=[ca,cn,ca,cn,ui,zt,ui,zt],vC=[cn,cn,cn,cn,zt,zt,zt,zt],SC=[ri,qn,ca,cn,ui,zt,ui,zt],AC=[qn,qn,cn,cn,zt,zt,zt,zt],CC=[Es,Es,qn,qn,cn,cn,zt,zt],wC=[d0,Es,ri,qn,ri,qn,ri,qn],be={DISPLAY:An[d0],TEXT:An[ri],SCRIPT:An[ca],SCRIPTSCRIPT:An[ui]},ju=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function kC(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var ss=[];ju.forEach(e=>e.blocks.forEach(t=>ss.push(...t)));function Gp(e){for(var t=0;t=ss[t]&&e<=ss[t+1])return!0;return!1}var $r=80,IC=function(t,n){return"M95,"+(622+t+n)+` +`)),p+=c.move(d),m(),p}function r(a,s,o){let u=a.value||"",l=1;for(t||l++;new RegExp("(^|[^$])"+"\\$".repeat(l)+"([^$]|$)").test(u);)l++;const c="$".repeat(l);/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^\$|\$$/.test(u))&&(u=" "+u+" ");let d=-1;for(;++d15?l="…"+o.slice(i-15,i):l=o.slice(0,i);var c;a+15":">","<":"<",'"':""","'":"'"},pC=/[&><"']/g;function gC(e){return String(e).replace(pC,t=>mC[t])}var Gp=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},bC=function(t){var n=Gp(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},yC=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},TC=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},pe={contains:cC,deflt:dC,escape:gC,hyphenate:fC,getBaseElem:Gp,isCharacterBox:bC,protocolFromUrl:TC},as={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function EC(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class c0{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in as)if(as.hasOwnProperty(n)){var r=as[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:EC(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new te("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var n=pe.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class ir{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return An[xC[this.id]]}sub(){return An[vC[this.id]]}fracNum(){return An[SC[this.id]]}fracDen(){return An[AC[this.id]]}cramp(){return An[CC[this.id]]}text(){return An[wC[this.id]]}isTight(){return this.size>=2}}var d0=0,Es=1,ri=2,qn=3,ca=4,cn=5,ui=6,zt=7,An=[new ir(d0,0,!1),new ir(Es,0,!0),new ir(ri,1,!1),new ir(qn,1,!0),new ir(ca,2,!1),new ir(cn,2,!0),new ir(ui,3,!1),new ir(zt,3,!0)],xC=[ca,cn,ca,cn,ui,zt,ui,zt],vC=[cn,cn,cn,cn,zt,zt,zt,zt],SC=[ri,qn,ca,cn,ui,zt,ui,zt],AC=[qn,qn,cn,cn,zt,zt,zt,zt],CC=[Es,Es,qn,qn,cn,cn,zt,zt],wC=[d0,Es,ri,qn,ri,qn,ri,qn],be={DISPLAY:An[d0],TEXT:An[ri],SCRIPT:An[ca],SCRIPTSCRIPT:An[ui]},ju=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function kC(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var ss=[];ju.forEach(e=>e.blocks.forEach(t=>ss.push(...t)));function Kp(e){for(var t=0;t=ss[t]&&e<=ss[t+1])return!0;return!1}var $r=80,IC=function(t,n){return"M95,"+(622+t+n)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 @@ -170,7 +170,7 @@ s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,1 H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 -219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},PC=function(t,n,r){n=1e3*n;var i="";switch(t){case"sqrtMain":i=IC(n,$r);break;case"sqrtSize1":i=NC(n,$r);break;case"sqrtSize2":i=MC(n,$r);break;case"sqrtSize3":i=RC(n,$r);break;case"sqrtSize4":i=DC(n,$r);break;case"sqrtTall":i=LC(n,$r,r)}return i},OC=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},vh={doubleleftarrow:`M262 157 +219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},PC=function(t,n,r){n=1e3*n;var i="";switch(t){case"sqrtMain":i=IC(n,$r);break;case"sqrtSize1":i=NC(n,$r);break;case"sqrtSize2":i=MC(n,$r);break;case"sqrtSize3":i=RC(n,$r);break;case"sqrtSize4":i=DC(n,$r);break;case"sqrtTall":i=LC(n,$r,r)}return i},OC=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},Sh={doubleleftarrow:`M262 157 l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 @@ -373,19 +373,19 @@ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6 c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let Sa=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return pe.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;nn.toText();return this.children.map(t).join("")}};var wn={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ja={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Sh={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function FC(e,t){wn[e]=t}function h0(e,t,n){if(!wn[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=wn[t][r];if(!i&&e[0]in Sh&&(r=Sh[e[0]].charCodeAt(0),i=wn[t][r]),!i&&n==="text"&&Gp(r)&&(i=wn[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Uo={};function HC(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Uo[t]){var n=Uo[t]={cssEmPerMu:ja.quad[t]/18};for(var r in ja)ja.hasOwnProperty(r)&&(n[r]=ja[r][t])}return Uo[t]}var zC=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Ah=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ch=function(t,n){return n.size<2?t:zC[t-1][n.size-1]};class Un{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Un.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Ah[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new Un(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Ch(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Ah[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=Ch(Un.BASESIZE,t);return this.size===n&&this.textSize===Un.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Un.BASESIZE?["sizing","reset-size"+this.size,"size"+Un.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=HC(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Un.BASESIZE=6;var qu={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},UC={ex:!0,em:!0,mu:!0},Kp=function(t){return typeof t!="string"&&(t=t.unit),t in qu||t in UC||t==="ex"},st=function(t,n){var r;if(t.unit in qu)r=qu[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new te("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},se=function(t){return+t.toFixed(4)+"em"},mr=function(t){return t.filter(n=>n).join(" ")},Xp=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},Qp=function(t){var n=document.createElement(t);n.className=mr(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a/=\x00-\x1f]/,Zp=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+pe.escape(mr(this.classes))+'"');var r="";for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=pe.hyphenate(i)+":"+this.style[i]+";");r&&(n+=' style="'+pe.escape(r)+'"');for(var a in this.attributes)if(this.attributes.hasOwnProperty(a)){if(VC.test(a))throw new te("Invalid attribute name '"+a+"'");n+=" "+a+'="'+pe.escape(this.attributes[a])+'"'}n+=">";for(var s=0;s",n};class Aa{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Xp.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return pe.contains(this.classes,t)}toNode(){return Qp.call(this,"span")}toMarkup(){return Zp.call(this,"span")}}class f0{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Xp.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return pe.contains(this.classes,t)}toNode(){return Qp.call(this,"a")}toMarkup(){return Zp.call(this,"a")}}class jC{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return pe.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t=''+pe.escape(this.alt)+'0&&(n=document.createElement("span"),n.style.marginRight=se(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=mr(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=pe.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+pe.escape(r)+'"');var a=pe.escape(this.text);return t?(n+=">",n+=a,n+="",n):a}}class Kn{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i':''}}class $u{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t=" but got "+String(e)+".")}var WC={bin:1,close:1,inner:1,open:1,punct:1,rel:1},YC={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},et={math:{},text:{}};function f(e,t,n,r,i,a){et[e][i]={font:t,group:n,replace:r},a&&r&&(et[e][r]=et[e][i])}var g="math",Q="text",y="main",N="ams",it="accent-token",de="bin",Ut="close",bi="inner",ge="mathord",Et="op-token",an="open",Ws="punct",M="rel",Jn="spacing",F="textord";f(g,y,M,"≡","\\equiv",!0);f(g,y,M,"≺","\\prec",!0);f(g,y,M,"≻","\\succ",!0);f(g,y,M,"∼","\\sim",!0);f(g,y,M,"⊥","\\perp");f(g,y,M,"⪯","\\preceq",!0);f(g,y,M,"⪰","\\succeq",!0);f(g,y,M,"≃","\\simeq",!0);f(g,y,M,"∣","\\mid",!0);f(g,y,M,"≪","\\ll",!0);f(g,y,M,"≫","\\gg",!0);f(g,y,M,"≍","\\asymp",!0);f(g,y,M,"∥","\\parallel");f(g,y,M,"⋈","\\bowtie",!0);f(g,y,M,"⌣","\\smile",!0);f(g,y,M,"⊑","\\sqsubseteq",!0);f(g,y,M,"⊒","\\sqsupseteq",!0);f(g,y,M,"≐","\\doteq",!0);f(g,y,M,"⌢","\\frown",!0);f(g,y,M,"∋","\\ni",!0);f(g,y,M,"∝","\\propto",!0);f(g,y,M,"⊢","\\vdash",!0);f(g,y,M,"⊣","\\dashv",!0);f(g,y,M,"∋","\\owns");f(g,y,Ws,".","\\ldotp");f(g,y,Ws,"⋅","\\cdotp");f(g,y,F,"#","\\#");f(Q,y,F,"#","\\#");f(g,y,F,"&","\\&");f(Q,y,F,"&","\\&");f(g,y,F,"ℵ","\\aleph",!0);f(g,y,F,"∀","\\forall",!0);f(g,y,F,"ℏ","\\hbar",!0);f(g,y,F,"∃","\\exists",!0);f(g,y,F,"∇","\\nabla",!0);f(g,y,F,"♭","\\flat",!0);f(g,y,F,"ℓ","\\ell",!0);f(g,y,F,"♮","\\natural",!0);f(g,y,F,"♣","\\clubsuit",!0);f(g,y,F,"℘","\\wp",!0);f(g,y,F,"♯","\\sharp",!0);f(g,y,F,"♢","\\diamondsuit",!0);f(g,y,F,"ℜ","\\Re",!0);f(g,y,F,"♡","\\heartsuit",!0);f(g,y,F,"ℑ","\\Im",!0);f(g,y,F,"♠","\\spadesuit",!0);f(g,y,F,"§","\\S",!0);f(Q,y,F,"§","\\S");f(g,y,F,"¶","\\P",!0);f(Q,y,F,"¶","\\P");f(g,y,F,"†","\\dag");f(Q,y,F,"†","\\dag");f(Q,y,F,"†","\\textdagger");f(g,y,F,"‡","\\ddag");f(Q,y,F,"‡","\\ddag");f(Q,y,F,"‡","\\textdaggerdbl");f(g,y,Ut,"⎱","\\rmoustache",!0);f(g,y,an,"⎰","\\lmoustache",!0);f(g,y,Ut,"⟯","\\rgroup",!0);f(g,y,an,"⟮","\\lgroup",!0);f(g,y,de,"∓","\\mp",!0);f(g,y,de,"⊖","\\ominus",!0);f(g,y,de,"⊎","\\uplus",!0);f(g,y,de,"⊓","\\sqcap",!0);f(g,y,de,"∗","\\ast");f(g,y,de,"⊔","\\sqcup",!0);f(g,y,de,"◯","\\bigcirc",!0);f(g,y,de,"∙","\\bullet",!0);f(g,y,de,"‡","\\ddagger");f(g,y,de,"≀","\\wr",!0);f(g,y,de,"⨿","\\amalg");f(g,y,de,"&","\\And");f(g,y,M,"⟵","\\longleftarrow",!0);f(g,y,M,"⇐","\\Leftarrow",!0);f(g,y,M,"⟸","\\Longleftarrow",!0);f(g,y,M,"⟶","\\longrightarrow",!0);f(g,y,M,"⇒","\\Rightarrow",!0);f(g,y,M,"⟹","\\Longrightarrow",!0);f(g,y,M,"↔","\\leftrightarrow",!0);f(g,y,M,"⟷","\\longleftrightarrow",!0);f(g,y,M,"⇔","\\Leftrightarrow",!0);f(g,y,M,"⟺","\\Longleftrightarrow",!0);f(g,y,M,"↦","\\mapsto",!0);f(g,y,M,"⟼","\\longmapsto",!0);f(g,y,M,"↗","\\nearrow",!0);f(g,y,M,"↩","\\hookleftarrow",!0);f(g,y,M,"↪","\\hookrightarrow",!0);f(g,y,M,"↘","\\searrow",!0);f(g,y,M,"↼","\\leftharpoonup",!0);f(g,y,M,"⇀","\\rightharpoonup",!0);f(g,y,M,"↙","\\swarrow",!0);f(g,y,M,"↽","\\leftharpoondown",!0);f(g,y,M,"⇁","\\rightharpoondown",!0);f(g,y,M,"↖","\\nwarrow",!0);f(g,y,M,"⇌","\\rightleftharpoons",!0);f(g,N,M,"≮","\\nless",!0);f(g,N,M,"","\\@nleqslant");f(g,N,M,"","\\@nleqq");f(g,N,M,"⪇","\\lneq",!0);f(g,N,M,"≨","\\lneqq",!0);f(g,N,M,"","\\@lvertneqq");f(g,N,M,"⋦","\\lnsim",!0);f(g,N,M,"⪉","\\lnapprox",!0);f(g,N,M,"⊀","\\nprec",!0);f(g,N,M,"⋠","\\npreceq",!0);f(g,N,M,"⋨","\\precnsim",!0);f(g,N,M,"⪹","\\precnapprox",!0);f(g,N,M,"≁","\\nsim",!0);f(g,N,M,"","\\@nshortmid");f(g,N,M,"∤","\\nmid",!0);f(g,N,M,"⊬","\\nvdash",!0);f(g,N,M,"⊭","\\nvDash",!0);f(g,N,M,"⋪","\\ntriangleleft");f(g,N,M,"⋬","\\ntrianglelefteq",!0);f(g,N,M,"⊊","\\subsetneq",!0);f(g,N,M,"","\\@varsubsetneq");f(g,N,M,"⫋","\\subsetneqq",!0);f(g,N,M,"","\\@varsubsetneqq");f(g,N,M,"≯","\\ngtr",!0);f(g,N,M,"","\\@ngeqslant");f(g,N,M,"","\\@ngeqq");f(g,N,M,"⪈","\\gneq",!0);f(g,N,M,"≩","\\gneqq",!0);f(g,N,M,"","\\@gvertneqq");f(g,N,M,"⋧","\\gnsim",!0);f(g,N,M,"⪊","\\gnapprox",!0);f(g,N,M,"⊁","\\nsucc",!0);f(g,N,M,"⋡","\\nsucceq",!0);f(g,N,M,"⋩","\\succnsim",!0);f(g,N,M,"⪺","\\succnapprox",!0);f(g,N,M,"≆","\\ncong",!0);f(g,N,M,"","\\@nshortparallel");f(g,N,M,"∦","\\nparallel",!0);f(g,N,M,"⊯","\\nVDash",!0);f(g,N,M,"⋫","\\ntriangleright");f(g,N,M,"⋭","\\ntrianglerighteq",!0);f(g,N,M,"","\\@nsupseteqq");f(g,N,M,"⊋","\\supsetneq",!0);f(g,N,M,"","\\@varsupsetneq");f(g,N,M,"⫌","\\supsetneqq",!0);f(g,N,M,"","\\@varsupsetneqq");f(g,N,M,"⊮","\\nVdash",!0);f(g,N,M,"⪵","\\precneqq",!0);f(g,N,M,"⪶","\\succneqq",!0);f(g,N,M,"","\\@nsubseteqq");f(g,N,de,"⊴","\\unlhd");f(g,N,de,"⊵","\\unrhd");f(g,N,M,"↚","\\nleftarrow",!0);f(g,N,M,"↛","\\nrightarrow",!0);f(g,N,M,"⇍","\\nLeftarrow",!0);f(g,N,M,"⇏","\\nRightarrow",!0);f(g,N,M,"↮","\\nleftrightarrow",!0);f(g,N,M,"⇎","\\nLeftrightarrow",!0);f(g,N,M,"△","\\vartriangle");f(g,N,F,"ℏ","\\hslash");f(g,N,F,"▽","\\triangledown");f(g,N,F,"◊","\\lozenge");f(g,N,F,"Ⓢ","\\circledS");f(g,N,F,"®","\\circledR");f(Q,N,F,"®","\\circledR");f(g,N,F,"∡","\\measuredangle",!0);f(g,N,F,"∄","\\nexists");f(g,N,F,"℧","\\mho");f(g,N,F,"Ⅎ","\\Finv",!0);f(g,N,F,"⅁","\\Game",!0);f(g,N,F,"‵","\\backprime");f(g,N,F,"▲","\\blacktriangle");f(g,N,F,"▼","\\blacktriangledown");f(g,N,F,"■","\\blacksquare");f(g,N,F,"⧫","\\blacklozenge");f(g,N,F,"★","\\bigstar");f(g,N,F,"∢","\\sphericalangle",!0);f(g,N,F,"∁","\\complement",!0);f(g,N,F,"ð","\\eth",!0);f(Q,y,F,"ð","ð");f(g,N,F,"╱","\\diagup");f(g,N,F,"╲","\\diagdown");f(g,N,F,"□","\\square");f(g,N,F,"□","\\Box");f(g,N,F,"◊","\\Diamond");f(g,N,F,"¥","\\yen",!0);f(Q,N,F,"¥","\\yen",!0);f(g,N,F,"✓","\\checkmark",!0);f(Q,N,F,"✓","\\checkmark");f(g,N,F,"ℶ","\\beth",!0);f(g,N,F,"ℸ","\\daleth",!0);f(g,N,F,"ℷ","\\gimel",!0);f(g,N,F,"ϝ","\\digamma",!0);f(g,N,F,"ϰ","\\varkappa");f(g,N,an,"┌","\\@ulcorner",!0);f(g,N,Ut,"┐","\\@urcorner",!0);f(g,N,an,"└","\\@llcorner",!0);f(g,N,Ut,"┘","\\@lrcorner",!0);f(g,N,M,"≦","\\leqq",!0);f(g,N,M,"⩽","\\leqslant",!0);f(g,N,M,"⪕","\\eqslantless",!0);f(g,N,M,"≲","\\lesssim",!0);f(g,N,M,"⪅","\\lessapprox",!0);f(g,N,M,"≊","\\approxeq",!0);f(g,N,de,"⋖","\\lessdot");f(g,N,M,"⋘","\\lll",!0);f(g,N,M,"≶","\\lessgtr",!0);f(g,N,M,"⋚","\\lesseqgtr",!0);f(g,N,M,"⪋","\\lesseqqgtr",!0);f(g,N,M,"≑","\\doteqdot");f(g,N,M,"≓","\\risingdotseq",!0);f(g,N,M,"≒","\\fallingdotseq",!0);f(g,N,M,"∽","\\backsim",!0);f(g,N,M,"⋍","\\backsimeq",!0);f(g,N,M,"⫅","\\subseteqq",!0);f(g,N,M,"⋐","\\Subset",!0);f(g,N,M,"⊏","\\sqsubset",!0);f(g,N,M,"≼","\\preccurlyeq",!0);f(g,N,M,"⋞","\\curlyeqprec",!0);f(g,N,M,"≾","\\precsim",!0);f(g,N,M,"⪷","\\precapprox",!0);f(g,N,M,"⊲","\\vartriangleleft");f(g,N,M,"⊴","\\trianglelefteq");f(g,N,M,"⊨","\\vDash",!0);f(g,N,M,"⊪","\\Vvdash",!0);f(g,N,M,"⌣","\\smallsmile");f(g,N,M,"⌢","\\smallfrown");f(g,N,M,"≏","\\bumpeq",!0);f(g,N,M,"≎","\\Bumpeq",!0);f(g,N,M,"≧","\\geqq",!0);f(g,N,M,"⩾","\\geqslant",!0);f(g,N,M,"⪖","\\eqslantgtr",!0);f(g,N,M,"≳","\\gtrsim",!0);f(g,N,M,"⪆","\\gtrapprox",!0);f(g,N,de,"⋗","\\gtrdot");f(g,N,M,"⋙","\\ggg",!0);f(g,N,M,"≷","\\gtrless",!0);f(g,N,M,"⋛","\\gtreqless",!0);f(g,N,M,"⪌","\\gtreqqless",!0);f(g,N,M,"≖","\\eqcirc",!0);f(g,N,M,"≗","\\circeq",!0);f(g,N,M,"≜","\\triangleq",!0);f(g,N,M,"∼","\\thicksim");f(g,N,M,"≈","\\thickapprox");f(g,N,M,"⫆","\\supseteqq",!0);f(g,N,M,"⋑","\\Supset",!0);f(g,N,M,"⊐","\\sqsupset",!0);f(g,N,M,"≽","\\succcurlyeq",!0);f(g,N,M,"⋟","\\curlyeqsucc",!0);f(g,N,M,"≿","\\succsim",!0);f(g,N,M,"⪸","\\succapprox",!0);f(g,N,M,"⊳","\\vartriangleright");f(g,N,M,"⊵","\\trianglerighteq");f(g,N,M,"⊩","\\Vdash",!0);f(g,N,M,"∣","\\shortmid");f(g,N,M,"∥","\\shortparallel");f(g,N,M,"≬","\\between",!0);f(g,N,M,"⋔","\\pitchfork",!0);f(g,N,M,"∝","\\varpropto");f(g,N,M,"◀","\\blacktriangleleft");f(g,N,M,"∴","\\therefore",!0);f(g,N,M,"∍","\\backepsilon");f(g,N,M,"▶","\\blacktriangleright");f(g,N,M,"∵","\\because",!0);f(g,N,M,"⋘","\\llless");f(g,N,M,"⋙","\\gggtr");f(g,N,de,"⊲","\\lhd");f(g,N,de,"⊳","\\rhd");f(g,N,M,"≂","\\eqsim",!0);f(g,y,M,"⋈","\\Join");f(g,N,M,"≑","\\Doteq",!0);f(g,N,de,"∔","\\dotplus",!0);f(g,N,de,"∖","\\smallsetminus");f(g,N,de,"⋒","\\Cap",!0);f(g,N,de,"⋓","\\Cup",!0);f(g,N,de,"⩞","\\doublebarwedge",!0);f(g,N,de,"⊟","\\boxminus",!0);f(g,N,de,"⊞","\\boxplus",!0);f(g,N,de,"⋇","\\divideontimes",!0);f(g,N,de,"⋉","\\ltimes",!0);f(g,N,de,"⋊","\\rtimes",!0);f(g,N,de,"⋋","\\leftthreetimes",!0);f(g,N,de,"⋌","\\rightthreetimes",!0);f(g,N,de,"⋏","\\curlywedge",!0);f(g,N,de,"⋎","\\curlyvee",!0);f(g,N,de,"⊝","\\circleddash",!0);f(g,N,de,"⊛","\\circledast",!0);f(g,N,de,"⋅","\\centerdot");f(g,N,de,"⊺","\\intercal",!0);f(g,N,de,"⋒","\\doublecap");f(g,N,de,"⋓","\\doublecup");f(g,N,de,"⊠","\\boxtimes",!0);f(g,N,M,"⇢","\\dashrightarrow",!0);f(g,N,M,"⇠","\\dashleftarrow",!0);f(g,N,M,"⇇","\\leftleftarrows",!0);f(g,N,M,"⇆","\\leftrightarrows",!0);f(g,N,M,"⇚","\\Lleftarrow",!0);f(g,N,M,"↞","\\twoheadleftarrow",!0);f(g,N,M,"↢","\\leftarrowtail",!0);f(g,N,M,"↫","\\looparrowleft",!0);f(g,N,M,"⇋","\\leftrightharpoons",!0);f(g,N,M,"↶","\\curvearrowleft",!0);f(g,N,M,"↺","\\circlearrowleft",!0);f(g,N,M,"↰","\\Lsh",!0);f(g,N,M,"⇈","\\upuparrows",!0);f(g,N,M,"↿","\\upharpoonleft",!0);f(g,N,M,"⇃","\\downharpoonleft",!0);f(g,y,M,"⊶","\\origof",!0);f(g,y,M,"⊷","\\imageof",!0);f(g,N,M,"⊸","\\multimap",!0);f(g,N,M,"↭","\\leftrightsquigarrow",!0);f(g,N,M,"⇉","\\rightrightarrows",!0);f(g,N,M,"⇄","\\rightleftarrows",!0);f(g,N,M,"↠","\\twoheadrightarrow",!0);f(g,N,M,"↣","\\rightarrowtail",!0);f(g,N,M,"↬","\\looparrowright",!0);f(g,N,M,"↷","\\curvearrowright",!0);f(g,N,M,"↻","\\circlearrowright",!0);f(g,N,M,"↱","\\Rsh",!0);f(g,N,M,"⇊","\\downdownarrows",!0);f(g,N,M,"↾","\\upharpoonright",!0);f(g,N,M,"⇂","\\downharpoonright",!0);f(g,N,M,"⇝","\\rightsquigarrow",!0);f(g,N,M,"⇝","\\leadsto");f(g,N,M,"⇛","\\Rrightarrow",!0);f(g,N,M,"↾","\\restriction");f(g,y,F,"‘","`");f(g,y,F,"$","\\$");f(Q,y,F,"$","\\$");f(Q,y,F,"$","\\textdollar");f(g,y,F,"%","\\%");f(Q,y,F,"%","\\%");f(g,y,F,"_","\\_");f(Q,y,F,"_","\\_");f(Q,y,F,"_","\\textunderscore");f(g,y,F,"∠","\\angle",!0);f(g,y,F,"∞","\\infty",!0);f(g,y,F,"′","\\prime");f(g,y,F,"△","\\triangle");f(g,y,F,"Γ","\\Gamma",!0);f(g,y,F,"Δ","\\Delta",!0);f(g,y,F,"Θ","\\Theta",!0);f(g,y,F,"Λ","\\Lambda",!0);f(g,y,F,"Ξ","\\Xi",!0);f(g,y,F,"Π","\\Pi",!0);f(g,y,F,"Σ","\\Sigma",!0);f(g,y,F,"Υ","\\Upsilon",!0);f(g,y,F,"Φ","\\Phi",!0);f(g,y,F,"Ψ","\\Psi",!0);f(g,y,F,"Ω","\\Omega",!0);f(g,y,F,"A","Α");f(g,y,F,"B","Β");f(g,y,F,"E","Ε");f(g,y,F,"Z","Ζ");f(g,y,F,"H","Η");f(g,y,F,"I","Ι");f(g,y,F,"K","Κ");f(g,y,F,"M","Μ");f(g,y,F,"N","Ν");f(g,y,F,"O","Ο");f(g,y,F,"P","Ρ");f(g,y,F,"T","Τ");f(g,y,F,"X","Χ");f(g,y,F,"¬","\\neg",!0);f(g,y,F,"¬","\\lnot");f(g,y,F,"⊤","\\top");f(g,y,F,"⊥","\\bot");f(g,y,F,"∅","\\emptyset");f(g,N,F,"∅","\\varnothing");f(g,y,ge,"α","\\alpha",!0);f(g,y,ge,"β","\\beta",!0);f(g,y,ge,"γ","\\gamma",!0);f(g,y,ge,"δ","\\delta",!0);f(g,y,ge,"ϵ","\\epsilon",!0);f(g,y,ge,"ζ","\\zeta",!0);f(g,y,ge,"η","\\eta",!0);f(g,y,ge,"θ","\\theta",!0);f(g,y,ge,"ι","\\iota",!0);f(g,y,ge,"κ","\\kappa",!0);f(g,y,ge,"λ","\\lambda",!0);f(g,y,ge,"μ","\\mu",!0);f(g,y,ge,"ν","\\nu",!0);f(g,y,ge,"ξ","\\xi",!0);f(g,y,ge,"ο","\\omicron",!0);f(g,y,ge,"π","\\pi",!0);f(g,y,ge,"ρ","\\rho",!0);f(g,y,ge,"σ","\\sigma",!0);f(g,y,ge,"τ","\\tau",!0);f(g,y,ge,"υ","\\upsilon",!0);f(g,y,ge,"ϕ","\\phi",!0);f(g,y,ge,"χ","\\chi",!0);f(g,y,ge,"ψ","\\psi",!0);f(g,y,ge,"ω","\\omega",!0);f(g,y,ge,"ε","\\varepsilon",!0);f(g,y,ge,"ϑ","\\vartheta",!0);f(g,y,ge,"ϖ","\\varpi",!0);f(g,y,ge,"ϱ","\\varrho",!0);f(g,y,ge,"ς","\\varsigma",!0);f(g,y,ge,"φ","\\varphi",!0);f(g,y,de,"∗","*",!0);f(g,y,de,"+","+");f(g,y,de,"−","-",!0);f(g,y,de,"⋅","\\cdot",!0);f(g,y,de,"∘","\\circ",!0);f(g,y,de,"÷","\\div",!0);f(g,y,de,"±","\\pm",!0);f(g,y,de,"×","\\times",!0);f(g,y,de,"∩","\\cap",!0);f(g,y,de,"∪","\\cup",!0);f(g,y,de,"∖","\\setminus",!0);f(g,y,de,"∧","\\land");f(g,y,de,"∨","\\lor");f(g,y,de,"∧","\\wedge",!0);f(g,y,de,"∨","\\vee",!0);f(g,y,F,"√","\\surd");f(g,y,an,"⟨","\\langle",!0);f(g,y,an,"∣","\\lvert");f(g,y,an,"∥","\\lVert");f(g,y,Ut,"?","?");f(g,y,Ut,"!","!");f(g,y,Ut,"⟩","\\rangle",!0);f(g,y,Ut,"∣","\\rvert");f(g,y,Ut,"∥","\\rVert");f(g,y,M,"=","=");f(g,y,M,":",":");f(g,y,M,"≈","\\approx",!0);f(g,y,M,"≅","\\cong",!0);f(g,y,M,"≥","\\ge");f(g,y,M,"≥","\\geq",!0);f(g,y,M,"←","\\gets");f(g,y,M,">","\\gt",!0);f(g,y,M,"∈","\\in",!0);f(g,y,M,"","\\@not");f(g,y,M,"⊂","\\subset",!0);f(g,y,M,"⊃","\\supset",!0);f(g,y,M,"⊆","\\subseteq",!0);f(g,y,M,"⊇","\\supseteq",!0);f(g,N,M,"⊈","\\nsubseteq",!0);f(g,N,M,"⊉","\\nsupseteq",!0);f(g,y,M,"⊨","\\models");f(g,y,M,"←","\\leftarrow",!0);f(g,y,M,"≤","\\le");f(g,y,M,"≤","\\leq",!0);f(g,y,M,"<","\\lt",!0);f(g,y,M,"→","\\rightarrow",!0);f(g,y,M,"→","\\to");f(g,N,M,"≱","\\ngeq",!0);f(g,N,M,"≰","\\nleq",!0);f(g,y,Jn," ","\\ ");f(g,y,Jn," ","\\space");f(g,y,Jn," ","\\nobreakspace");f(Q,y,Jn," ","\\ ");f(Q,y,Jn," "," ");f(Q,y,Jn," ","\\space");f(Q,y,Jn," ","\\nobreakspace");f(g,y,Jn,null,"\\nobreak");f(g,y,Jn,null,"\\allowbreak");f(g,y,Ws,",",",");f(g,y,Ws,";",";");f(g,N,de,"⊼","\\barwedge",!0);f(g,N,de,"⊻","\\veebar",!0);f(g,y,de,"⊙","\\odot",!0);f(g,y,de,"⊕","\\oplus",!0);f(g,y,de,"⊗","\\otimes",!0);f(g,y,F,"∂","\\partial",!0);f(g,y,de,"⊘","\\oslash",!0);f(g,N,de,"⊚","\\circledcirc",!0);f(g,N,de,"⊡","\\boxdot",!0);f(g,y,de,"△","\\bigtriangleup");f(g,y,de,"▽","\\bigtriangledown");f(g,y,de,"†","\\dagger");f(g,y,de,"⋄","\\diamond");f(g,y,de,"⋆","\\star");f(g,y,de,"◃","\\triangleleft");f(g,y,de,"▹","\\triangleright");f(g,y,an,"{","\\{");f(Q,y,F,"{","\\{");f(Q,y,F,"{","\\textbraceleft");f(g,y,Ut,"}","\\}");f(Q,y,F,"}","\\}");f(Q,y,F,"}","\\textbraceright");f(g,y,an,"{","\\lbrace");f(g,y,Ut,"}","\\rbrace");f(g,y,an,"[","\\lbrack",!0);f(Q,y,F,"[","\\lbrack",!0);f(g,y,Ut,"]","\\rbrack",!0);f(Q,y,F,"]","\\rbrack",!0);f(g,y,an,"(","\\lparen",!0);f(g,y,Ut,")","\\rparen",!0);f(Q,y,F,"<","\\textless",!0);f(Q,y,F,">","\\textgreater",!0);f(g,y,an,"⌊","\\lfloor",!0);f(g,y,Ut,"⌋","\\rfloor",!0);f(g,y,an,"⌈","\\lceil",!0);f(g,y,Ut,"⌉","\\rceil",!0);f(g,y,F,"\\","\\backslash");f(g,y,F,"∣","|");f(g,y,F,"∣","\\vert");f(Q,y,F,"|","\\textbar",!0);f(g,y,F,"∥","\\|");f(g,y,F,"∥","\\Vert");f(Q,y,F,"∥","\\textbardbl");f(Q,y,F,"~","\\textasciitilde");f(Q,y,F,"\\","\\textbackslash");f(Q,y,F,"^","\\textasciicircum");f(g,y,M,"↑","\\uparrow",!0);f(g,y,M,"⇑","\\Uparrow",!0);f(g,y,M,"↓","\\downarrow",!0);f(g,y,M,"⇓","\\Downarrow",!0);f(g,y,M,"↕","\\updownarrow",!0);f(g,y,M,"⇕","\\Updownarrow",!0);f(g,y,Et,"∐","\\coprod");f(g,y,Et,"⋁","\\bigvee");f(g,y,Et,"⋀","\\bigwedge");f(g,y,Et,"⨄","\\biguplus");f(g,y,Et,"⋂","\\bigcap");f(g,y,Et,"⋃","\\bigcup");f(g,y,Et,"∫","\\int");f(g,y,Et,"∫","\\intop");f(g,y,Et,"∬","\\iint");f(g,y,Et,"∭","\\iiint");f(g,y,Et,"∏","\\prod");f(g,y,Et,"∑","\\sum");f(g,y,Et,"⨂","\\bigotimes");f(g,y,Et,"⨁","\\bigoplus");f(g,y,Et,"⨀","\\bigodot");f(g,y,Et,"∮","\\oint");f(g,y,Et,"∯","\\oiint");f(g,y,Et,"∰","\\oiiint");f(g,y,Et,"⨆","\\bigsqcup");f(g,y,Et,"∫","\\smallint");f(Q,y,bi,"…","\\textellipsis");f(g,y,bi,"…","\\mathellipsis");f(Q,y,bi,"…","\\ldots",!0);f(g,y,bi,"…","\\ldots",!0);f(g,y,bi,"⋯","\\@cdots",!0);f(g,y,bi,"⋱","\\ddots",!0);f(g,y,F,"⋮","\\varvdots");f(Q,y,F,"⋮","\\varvdots");f(g,y,it,"ˊ","\\acute");f(g,y,it,"ˋ","\\grave");f(g,y,it,"¨","\\ddot");f(g,y,it,"~","\\tilde");f(g,y,it,"ˉ","\\bar");f(g,y,it,"˘","\\breve");f(g,y,it,"ˇ","\\check");f(g,y,it,"^","\\hat");f(g,y,it,"⃗","\\vec");f(g,y,it,"˙","\\dot");f(g,y,it,"˚","\\mathring");f(g,y,ge,"","\\@imath");f(g,y,ge,"","\\@jmath");f(g,y,F,"ı","ı");f(g,y,F,"ȷ","ȷ");f(Q,y,F,"ı","\\i",!0);f(Q,y,F,"ȷ","\\j",!0);f(Q,y,F,"ß","\\ss",!0);f(Q,y,F,"æ","\\ae",!0);f(Q,y,F,"œ","\\oe",!0);f(Q,y,F,"ø","\\o",!0);f(Q,y,F,"Æ","\\AE",!0);f(Q,y,F,"Œ","\\OE",!0);f(Q,y,F,"Ø","\\O",!0);f(Q,y,it,"ˊ","\\'");f(Q,y,it,"ˋ","\\`");f(Q,y,it,"ˆ","\\^");f(Q,y,it,"˜","\\~");f(Q,y,it,"ˉ","\\=");f(Q,y,it,"˘","\\u");f(Q,y,it,"˙","\\.");f(Q,y,it,"¸","\\c");f(Q,y,it,"˚","\\r");f(Q,y,it,"ˇ","\\v");f(Q,y,it,"¨",'\\"');f(Q,y,it,"˝","\\H");f(Q,y,it,"◯","\\textcircled");var Jp={"--":!0,"---":!0,"``":!0,"''":!0};f(Q,y,F,"–","--",!0);f(Q,y,F,"–","\\textendash");f(Q,y,F,"—","---",!0);f(Q,y,F,"—","\\textemdash");f(Q,y,F,"‘","`",!0);f(Q,y,F,"‘","\\textquoteleft");f(Q,y,F,"’","'",!0);f(Q,y,F,"’","\\textquoteright");f(Q,y,F,"“","``",!0);f(Q,y,F,"“","\\textquotedblleft");f(Q,y,F,"”","''",!0);f(Q,y,F,"”","\\textquotedblright");f(g,y,F,"°","\\degree",!0);f(Q,y,F,"°","\\degree");f(Q,y,F,"°","\\textdegree",!0);f(g,y,F,"£","\\pounds");f(g,y,F,"£","\\mathsterling",!0);f(Q,y,F,"£","\\pounds");f(Q,y,F,"£","\\textsterling",!0);f(g,N,F,"✠","\\maltese");f(Q,N,F,"✠","\\maltese");var kh='0123456789/@."';for(var Vo=0;Vo0)return bn(a,l,i,n,s.concat(c));if(u){var d,m;if(u==="boldsymbol"){var p=XC(a,i,n,s,r);d=p.fontName,m=[p.fontClass]}else o?(d=n2[u].fontName,m=[u]):(d=Ya(u,n.fontWeight,n.fontShape),m=[u,n.fontWeight,n.fontShape]);if(Ys(a,d,i).metrics)return bn(a,d,i,n,s.concat(m));if(Jp.hasOwnProperty(a)&&d.slice(0,10)==="Typewriter"){for(var b=[],E=0;E{if(mr(e.classes)!==mr(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},JC=e=>{for(var t=0;tn&&(n=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},Yt=function(t,n,r,i){var a=new Aa(t,n,r,i);return m0(a),a},e2=(e,t,n,r)=>new Aa(e,t,n,r),ew=function(t,n,r){var i=Yt([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=se(i.height),i.maxFontSize=1,i},tw=function(t,n,r,i){var a=new f0(t,n,r,i);return m0(a),a},t2=function(t){var n=new Sa(t);return m0(n),n},nw=function(t,n){return t instanceof Sa?Yt([],[t],n):t},rw=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,s=1;s{var n=Yt(["mspace"],[],t),r=st(e,t);return n.style.marginRight=se(r),n},Ya=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},n2={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},r2={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},sw=function(t,n){var[r,i,a]=r2[t],s=new pr(r),o=new Kn([s],{width:se(i),height:se(a),style:"width:"+se(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),u=e2(["overlay"],[o],n);return u.height=a,u.style.height=se(a),u.style.width=se(i),u},z={fontMap:n2,makeSymbol:bn,mathsym:KC,makeSpan:Yt,makeSvgSpan:e2,makeLineSpan:ew,makeAnchor:tw,makeFragment:t2,wrapFragment:nw,makeVList:iw,makeOrd:QC,makeGlue:aw,staticSvg:sw,svgData:r2,tryCombineChars:JC},at={number:3,unit:"mu"},Ar={number:4,unit:"mu"},zn={number:5,unit:"mu"},ow={mord:{mop:at,mbin:Ar,mrel:zn,minner:at},mop:{mord:at,mop:at,mrel:zn,minner:at},mbin:{mord:Ar,mop:Ar,mopen:Ar,minner:Ar},mrel:{mord:zn,mop:zn,mopen:zn,minner:zn},mopen:{},mclose:{mop:at,mbin:Ar,mrel:zn,minner:at},mpunct:{mord:at,mop:at,mrel:zn,mopen:at,mclose:at,mpunct:at,minner:at},minner:{mord:at,mop:at,mbin:Ar,mrel:zn,mopen:at,mpunct:at,minner:at}},uw={mord:{mop:at},mop:{mord:at,mop:at},mbin:{},mrel:{},mopen:{},mclose:{mop:at},mpunct:{},minner:{mop:at}},i2={},vs={},Ss={};function ce(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},u=0;u{var C=E.classes[0],T=b.classes[0];C==="mbin"&&pe.contains(cw,T)?E.classes[0]="mord":T==="mbin"&&pe.contains(lw,C)&&(b.classes[0]="mord")},{node:d},m,p),Dh(a,(b,E)=>{var C=Yu(E),T=Yu(b),S=C&&T?b.hasClass("mtight")?uw[C][T]:ow[C][T]:null;if(S)return z.makeGlue(S,l)},{node:d},m,p),a},Dh=function e(t,n,r,i,a){i&&t.push(i);for(var s=0;sm=>{t.splice(d+1,0,m),s++})(s)}i&&t.pop()},a2=function(t){return t instanceof Sa||t instanceof f0||t instanceof Aa&&t.hasClass("enclosing")?t:null},fw=function e(t,n){var r=a2(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},Yu=function(t,n){return t?(n&&(t=fw(t,n)),hw[t.classes[0]]||null):null},da=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return Xn(n.concat(r))},Fe=function(t,n,r){if(!t)return Xn();if(vs[t.type]){var i=vs[t.type](t,n);if(r&&n.size!==r.size){i=Xn(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new te("Got group of unknown type: '"+t.type+"'")};function Ga(e,t){var n=Xn(["base"],e,t),r=Xn(["strut"]);return r.style.height=se(n.height+n.depth),n.depth&&(r.style.verticalAlign=se(-n.depth)),n.children.unshift(r),n}function Gu(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=xt(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],s=[],o=0;o0&&(a.push(Ga(s,t)),s=[]),a.push(r[o]));s.length>0&&a.push(Ga(s,t));var l;n?(l=Ga(xt(n,t,!0)),l.classes=["tag"],a.push(l)):i&&a.push(i);var c=Xn(["katex-html"],a);if(c.setAttribute("aria-hidden","true"),l){var d=l.children[0];d.style.height=se(c.height+c.depth),c.depth&&(d.style.verticalAlign=se(-c.depth))}return c}function s2(e){return new Sa(e)}class tn{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=mr(this.classes));for(var r=0;r0&&(t+=' class ="'+pe.escape(mr(this.classes))+'"'),t+=">";for(var r=0;r",t}toText(){return this.children.map(t=>t.toText()).join("")}}class kn{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return pe.escape(this.toText())}toText(){return this.text}}class mw{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",se(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var ee={MathNode:tn,TextNode:kn,SpaceNode:mw,newDocumentFragment:s2},mn=function(t,n,r){return et[n][t]&&et[n][t].replace&&t.charCodeAt(0)!==55349&&!(Jp.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=et[n][t].replace),new ee.TextNode(t)},p0=function(t){return t.length===1?t[0]:new ee.MathNode("mrow",t)},g0=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathsfit")return"sans-serif-italic";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(pe.contains(["\\imath","\\jmath"],a))return null;et[i][a]&&et[i][a].replace&&(a=et[i][a].replace);var s=z.fontMap[r].fontName;return h0(a,s,i)?z.fontMap[r].variant:null};function Wo(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof kn&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof kn&&n.text===","}else return!1}var Xt=function(t,n,r){if(t.length===1){var i=Ge(t[0],n);return r&&i instanceof tn&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o=1&&(s.type==="mn"||Wo(s))){var l=u.children[0];l instanceof tn&&l.type==="mn"&&(l.children=[...s.children,...l.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var c=s.children[0];if(c instanceof kn&&c.text==="̸"&&(u.type==="mo"||u.type==="mi"||u.type==="mn")){var d=u.children[0];d instanceof kn&&d.text.length>0&&(d.text=d.text.slice(0,1)+"̸"+d.text.slice(1),a.pop())}}}a.push(u),s=u}return a},gr=function(t,n,r){return p0(Xt(t,n,r))},Ge=function(t,n){if(!t)return new ee.MathNode("mrow");if(Ss[t.type]){var r=Ss[t.type](t,n);return r}else throw new te("Got group of unknown type: '"+t.type+"'")};function _h(e,t,n,r,i){var a=Xt(e,n),s;a.length===1&&a[0]instanceof tn&&pe.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new ee.MathNode("mrow",a);var o=new ee.MathNode("annotation",[new ee.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var u=new ee.MathNode("semantics",[s,o]),l=new ee.MathNode("math",[u]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&l.setAttribute("display","block");var c=i?"katex":"katex-mathml";return z.makeSpan([c],[l])}var o2=function(t){return new Un({style:t.displayMode?be.DISPLAY:be.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},u2=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=z.makeSpan(r,[t])}return t},pw=function(t,n,r){var i=o2(r),a;if(r.output==="mathml")return _h(t,n,i,r.displayMode,!0);if(r.output==="html"){var s=Gu(t,i);a=z.makeSpan(["katex"],[s])}else{var o=_h(t,n,i,r.displayMode,!1),u=Gu(t,i);a=z.makeSpan(["katex"],[o,u])}return u2(a,r)},gw=function(t,n,r){var i=o2(r),a=Gu(t,i),s=z.makeSpan(["katex"],[a]);return u2(s,r)},bw={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},yw=function(t){var n=new ee.MathNode("mo",[new ee.TextNode(bw[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},Tw={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Ew=function(t){return t.type==="ordgroup"?t.body.length:1},xw=function(t,n){function r(){var o=4e5,u=t.label.slice(1);if(pe.contains(["widehat","widecheck","widetilde","utilde"],u)){var l=t,c=Ew(l.base),d,m,p;if(c>5)u==="widehat"||u==="widecheck"?(d=420,o=2364,p=.42,m=u+"4"):(d=312,o=2340,p=.34,m="tilde4");else{var b=[1,1,2,2,3,3][c];u==="widehat"||u==="widecheck"?(o=[0,1062,2364,2364,2364][b],d=[0,239,300,360,420][b],p=[0,.24,.3,.3,.36,.42][b],m=u+b):(o=[0,600,1033,2339,2340][b],d=[0,260,286,306,312][b],p=[0,.26,.286,.3,.306,.34][b],m="tilde"+b)}var E=new pr(m),C=new Kn([E],{width:"100%",height:se(p),viewBox:"0 0 "+o+" "+d,preserveAspectRatio:"none"});return{span:z.makeSvgSpan([],[C],n),minWidth:0,height:p}}else{var T=[],S=Tw[u],[v,_,P]=S,k=P/1e3,V=v.length,U,q;if(V===1){var B=S[3];U=["hide-tail"],q=[B]}else if(V===2)U=["halfarrow-left","halfarrow-right"],q=["xMinYMin","xMaxYMin"];else if(V===3)U=["brace-left","brace-center","brace-right"],q=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+V+" children.");for(var K=0;K0&&(i.style.minWidth=se(a)),i},vw=function(t,n,r,i,a){var s,o=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(s=z.makeSpan(["stretchy",n],[],a),n==="fbox"){var u=a.color&&a.getColor();u&&(s.style.borderColor=u)}}else{var l=[];/^[bx]cancel$/.test(n)&&l.push(new $u({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&l.push(new $u({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new Kn(l,{width:"100%",height:se(o)});s=z.makeSvgSpan([],[c],a)}return s.height=o,s.style.height=se(o),s},Qn={encloseSpan:vw,mathMLnode:yw,svgSpan:xw};function we(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function b0(e){var t=Gs(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Gs(e){return e&&(e.type==="atom"||YC.hasOwnProperty(e.type))?e:null}var y0=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=we(e.base,"accent"),n=r.base,e.base=n,i=$C(Fe(e,t)),e.base=r):(r=we(e,"accent"),n=r.base);var a=Fe(n,t.havingCrampedStyle()),s=r.isShifty&&pe.isCharacterBox(n),o=0;if(s){var u=pe.getBaseElem(n),l=Fe(u,t.havingCrampedStyle());o=wh(l).skew}var c=r.label==="\\c",d=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),m;if(r.isStretchy)m=Qn.svgSpan(r,t),m=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:m,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+se(2*o)+")",marginLeft:se(2*o)}:void 0}]},t);else{var p,b;r.label==="\\vec"?(p=z.staticSvg("vec",t),b=z.svgData.vec[1]):(p=z.makeOrd({mode:r.mode,text:r.label},t,"textord"),p=wh(p),p.italic=0,b=p.width,c&&(d+=p.depth)),m=z.makeSpan(["accent-body"],[p]);var E=r.label==="\\textcircled";E&&(m.classes.push("accent-full"),d=a.height);var C=o;E||(C-=b/2),m.style.left=se(C),r.label==="\\textcircled"&&(m.style.top=".2em"),m=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-d},{type:"elem",elem:m}]},t)}var T=z.makeSpan(["mord","accent"],[m],t);return i?(i.children[0]=T,i.height=Math.max(T.height,i.height),i.classes[0]="mord",i):T},l2=(e,t)=>{var n=e.isStretchy?Qn.mathMLnode(e.label):new ee.MathNode("mo",[mn(e.label,e.mode)]),r=new ee.MathNode("mover",[Ge(e.base,t),n]);return r.setAttribute("accent","true"),r},Sw=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ce({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=As(t[0]),r=!Sw.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:y0,mathmlBuilder:l2});ce({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:y0,mathmlBuilder:l2});ce({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Fe(e.base,t),r=Qn.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=z.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return z.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=Qn.mathMLnode(e.label),r=new ee.MathNode("munder",[Ge(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Ka=e=>{var t=new ee.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ce({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=z.wrapFragment(Fe(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(r=t.havingStyle(n.sub()),s=z.wrapFragment(Fe(e.below,r,t),t),s.classes.push(a+"-arrow-pad"));var o=Qn.svgSpan(e,t),u=-t.fontMetrics().axisHeight+.5*o.height,l=-t.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(l-=i.depth);var c;if(s){var d=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;c=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u},{type:"elem",elem:s,shift:d}]},t)}else c=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u}]},t);return c.children[0].children[0].children[1].classes.push("svg-align"),z.makeSpan(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){var n=Qn.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=Ka(Ge(e.body,t));if(e.below){var a=Ka(Ge(e.below,t));r=new ee.MathNode("munderover",[n,a,i])}else r=new ee.MathNode("mover",[n,i])}else if(e.below){var s=Ka(Ge(e.below,t));r=new ee.MathNode("munder",[n,s])}else r=Ka(),r=new ee.MathNode("mover",[n,r]);return r}});var Aw=z.makeSpan;function c2(e,t){var n=xt(e.body,t,!0);return Aw([e.mclass],n,t)}function d2(e,t){var n,r=Xt(e.body,t);return e.mclass==="minner"?n=new ee.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new ee.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new ee.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}ce({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:mt(i),isCharacterBox:pe.isCharacterBox(i)}},htmlBuilder:c2,mathmlBuilder:d2});var Ks=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ce({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:Ks(t[0]),body:mt(t[1]),isCharacterBox:pe.isCharacterBox(t[1])}}});ce({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],s;r!=="\\stackrel"?s=Ks(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:mt(i)},u={type:"supsub",mode:a.mode,base:o,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:s,body:[u],isCharacterBox:pe.isCharacterBox(u)}},htmlBuilder:c2,mathmlBuilder:d2});ce({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:Ks(t[0]),body:mt(t[0])}},htmlBuilder(e,t){var n=xt(e.body,t,!0),r=z.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=Xt(e.body,t),r=new ee.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var Cw={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Lh=()=>({type:"styling",body:[],mode:"math",style:"display"}),Ph=e=>e.type==="textord"&&e.text==="@",ww=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function kw(e,t,n){var r=Cw[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},s=n.callFunction("\\Big",[a],[]),o=n.callFunction("\\\\cdright",[t[1]],[]),u={type:"ordgroup",mode:"math",body:[i,s,o]};return n.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var l={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[l],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Iw(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new te("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a-1))if("<>AV".indexOf(l)>-1)for(var d=0;d<2;d++){for(var m=!0,p=u+1;pAV=|." after @',s[u]);var b=kw(l,c,e),E={type:"styling",body:[b],mode:"math",style:"display"};r.push(E),o=Lh()}a%2===0?r.push(o):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var C=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:C,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}ce({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=z.wrapFragment(Fe(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=se(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new ee.MathNode("mrow",[Ge(e.label,t)]);return n=new ee.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new ee.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});ce({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=z.wrapFragment(Fe(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new ee.MathNode("mrow",[Ge(e.fragment,t)])}});ce({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=we(t[0],"ordgroup"),i=r.body,a="",s=0;s=1114111)throw new te("\\@char with invalid code point "+a);return u<=65535?l=String.fromCharCode(u):(u-=65536,l=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:n.mode,text:l}}});var h2=(e,t)=>{var n=xt(e.body,t.withColor(e.color),!1);return z.makeFragment(n)},f2=(e,t)=>{var n=Xt(e.body,t.withColor(e.color)),r=new ee.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};ce({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=we(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:mt(i)}},htmlBuilder:h2,mathmlBuilder:f2});ce({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=we(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:h2,mathmlBuilder:f2});ce({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&we(i,"size").value}},htmlBuilder(e,t){var n=z.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=se(st(e.size,t)))),n},mathmlBuilder(e,t){var n=new ee.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",se(st(e.size,t)))),n}});var Ku={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},m2=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new te("Expected a control sequence",e);return t},Nw=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},p2=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};ce({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(Ku[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=Ku[r.text]),we(t.parseFunction(),"internal");throw new te("Invalid token after macro prefix",r)}});ce({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new te("Expected a control sequence",r);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new te('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new te('Argument number "'+r.text+'" out of order');a++,o.push([])}else{if(r.text==="EOF")throw new te("Expected a macro definition");o[a].push(r.text)}var{tokens:u}=t.gullet.consumeArg();return s&&u.unshift(s),(n==="\\edef"||n==="\\xdef")&&(u=t.gullet.expandTokens(u),u.reverse()),t.gullet.macros.set(i,{tokens:u,numArgs:a,delimiters:o},n===Ku[n]),{type:"internal",mode:t.mode}}});ce({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=m2(t.gullet.popToken());t.gullet.consumeSpaces();var i=Nw(t);return p2(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});ce({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=m2(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return p2(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var Oi=function(t,n,r){var i=et.math[t]&&et.math[t].replace,a=h0(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},T0=function(t,n,r,i){var a=r.havingBaseStyle(n),s=z.makeSpan(i.concat(a.sizingClasses(r)),[t],r),o=a.sizeMultiplier/r.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},g2=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=se(a),t.height-=a,t.depth+=a},Mw=function(t,n,r,i,a,s){var o=z.makeSymbol(t,"Main-Regular",a,i),u=T0(o,n,i,s);return r&&g2(u,i,n),u},Rw=function(t,n,r,i){return z.makeSymbol(t,"Size"+n+"-Regular",r,i)},b2=function(t,n,r,i,a,s){var o=Rw(t,n,a,i),u=T0(z.makeSpan(["delimsizing","size"+n],[o],i),be.TEXT,i,s);return r&&g2(u,i,be.TEXT),u},Yo=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=z.makeSpan(["delimsizinginner",i],[z.makeSpan([],[z.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},Go=function(t,n,r){var i=wn["Size4-Regular"][t.charCodeAt(0)]?wn["Size4-Regular"][t.charCodeAt(0)][4]:wn["Size1-Regular"][t.charCodeAt(0)][4],a=new pr("inner",OC(t,Math.round(1e3*n))),s=new Kn([a],{width:se(i),height:se(n),style:"width:"+se(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),o=z.makeSvgSpan([],[s],r);return o.height=n,o.style.height=se(n),o.style.width=se(i),{type:"elem",elem:o}},Xu=.008,Xa={type:"kern",size:-1*Xu},Dw=["|","\\lvert","\\rvert","\\vert"],_w=["\\|","\\lVert","\\rVert","\\Vert"],y2=function(t,n,r,i,a,s){var o,u,l,c,d="",m=0;o=l=c=t,u=null;var p="Size1-Regular";t==="\\uparrow"?l=c="⏐":t==="\\Uparrow"?l=c="‖":t==="\\downarrow"?o=l="⏐":t==="\\Downarrow"?o=l="‖":t==="\\updownarrow"?(o="\\uparrow",l="⏐",c="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",l="‖",c="\\Downarrow"):pe.contains(Dw,t)?(l="∣",d="vert",m=333):pe.contains(_w,t)?(l="∥",d="doublevert",m=556):t==="["||t==="\\lbrack"?(o="⎡",l="⎢",c="⎣",p="Size4-Regular",d="lbrack",m=667):t==="]"||t==="\\rbrack"?(o="⎤",l="⎥",c="⎦",p="Size4-Regular",d="rbrack",m=667):t==="\\lfloor"||t==="⌊"?(l=o="⎢",c="⎣",p="Size4-Regular",d="lfloor",m=667):t==="\\lceil"||t==="⌈"?(o="⎡",l=c="⎢",p="Size4-Regular",d="lceil",m=667):t==="\\rfloor"||t==="⌋"?(l=o="⎥",c="⎦",p="Size4-Regular",d="rfloor",m=667):t==="\\rceil"||t==="⌉"?(o="⎤",l=c="⎥",p="Size4-Regular",d="rceil",m=667):t==="("||t==="\\lparen"?(o="⎛",l="⎜",c="⎝",p="Size4-Regular",d="lparen",m=875):t===")"||t==="\\rparen"?(o="⎞",l="⎟",c="⎠",p="Size4-Regular",d="rparen",m=875):t==="\\{"||t==="\\lbrace"?(o="⎧",u="⎨",c="⎩",l="⎪",p="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",u="⎬",c="⎭",l="⎪",p="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",c="⎩",l="⎪",p="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",c="⎭",l="⎪",p="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",c="⎭",l="⎪",p="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",c="⎩",l="⎪",p="Size4-Regular");var b=Oi(o,p,a),E=b.height+b.depth,C=Oi(l,p,a),T=C.height+C.depth,S=Oi(c,p,a),v=S.height+S.depth,_=0,P=1;if(u!==null){var k=Oi(u,p,a);_=k.height+k.depth,P=2}var V=E+v+_,U=Math.max(0,Math.ceil((n-V)/(P*T))),q=V+U*P*T,B=i.fontMetrics().axisHeight;r&&(B*=i.sizeMultiplier);var K=q/2-B,Y=[];if(d.length>0){var X=q-E-v,j=Math.round(q*1e3),W=BC(d,Math.round(X*1e3)),ne=new pr(d,W),le=(m/1e3).toFixed(3)+"em",fe=(j/1e3).toFixed(3)+"em",oe=new Kn([ne],{width:le,height:fe,viewBox:"0 0 "+m+" "+j}),I=z.makeSvgSpan([],[oe],i);I.height=j/1e3,I.style.width=le,I.style.height=fe,Y.push({type:"elem",elem:I})}else{if(Y.push(Yo(c,p,a)),Y.push(Xa),u===null){var De=q-E-v+2*Xu;Y.push(Go(l,De,i))}else{var Ae=(q-E-v-_)/2+2*Xu;Y.push(Go(l,Ae,i)),Y.push(Xa),Y.push(Yo(u,p,a)),Y.push(Xa),Y.push(Go(l,Ae,i))}Y.push(Xa),Y.push(Yo(o,p,a))}var D=i.havingBaseStyle(be.TEXT),_e=z.makeVList({positionType:"bottom",positionData:K,children:Y},D);return T0(z.makeSpan(["delimsizing","mult"],[_e],D),be.TEXT,i,s)},Ko=80,Xo=.08,Qo=function(t,n,r,i,a){var s=PC(t,i,r),o=new pr(t,s),u=new Kn([o],{width:"400em",height:se(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return z.makeSvgSpan(["hide-tail"],[u],a)},Lw=function(t,n){var r=n.havingBaseSizing(),i=v2("\\surd",t*r.sizeMultiplier,x2,r),a=r.sizeMultiplier,s=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),o,u=0,l=0,c=0,d;return i.type==="small"?(c=1e3+1e3*s+Ko,t<1?a=1:t<1.4&&(a=.7),u=(1+s+Xo)/a,l=(1+s)/a,o=Qo("sqrtMain",u,c,s,n),o.style.minWidth="0.853em",d=.833/a):i.type==="large"?(c=(1e3+Ko)*Yi[i.size],l=(Yi[i.size]+s)/a,u=(Yi[i.size]+s+Xo)/a,o=Qo("sqrtSize"+i.size,u,c,s,n),o.style.minWidth="1.02em",d=1/a):(u=t+s+Xo,l=t+s,c=Math.floor(1e3*t+s)+Ko,o=Qo("sqrtTall",u,c,s,n),o.style.minWidth="0.742em",d=1.056),o.height=l,o.style.height=se(u),{span:o,advanceWidth:d,ruleWidth:(n.fontMetrics().sqrtRuleThickness+s)*a}},T2=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Pw=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],E2=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Yi=[0,1.2,1.8,2.4,3],Ow=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),pe.contains(T2,t)||pe.contains(E2,t))return b2(t,n,!1,r,i,a);if(pe.contains(Pw,t))return y2(t,Yi[n],!1,r,i,a);throw new te("Illegal delimiter: '"+t+"'")},Bw=[{type:"small",style:be.SCRIPTSCRIPT},{type:"small",style:be.SCRIPT},{type:"small",style:be.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Fw=[{type:"small",style:be.SCRIPTSCRIPT},{type:"small",style:be.SCRIPT},{type:"small",style:be.TEXT},{type:"stack"}],x2=[{type:"small",style:be.SCRIPTSCRIPT},{type:"small",style:be.SCRIPT},{type:"small",style:be.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Hw=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},v2=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),s=a;sn)return r[s]}return r[r.length-1]},S2=function(t,n,r,i,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;pe.contains(E2,t)?o=Bw:pe.contains(T2,t)?o=x2:o=Fw;var u=v2(t,n,o,i);return u.type==="small"?Mw(t,u.style,r,i,a,s):u.type==="large"?b2(t,u.size,r,i,a,s):y2(t,n,r,i,a,s)},zw=function(t,n,r,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,u=901,l=5/i.fontMetrics().ptPerEm,c=Math.max(n-o,r+o),d=Math.max(c/500*u,2*c-l);return S2(t,d,!0,i,a,s)},$n={sqrtImage:Lw,sizedDelim:Ow,sizeToMaxHeight:Yi,customSizedDelim:S2,leftRightDelim:zw},Oh={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Uw=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Xs(e,t){var n=Gs(e);if(n&&pe.contains(Uw,n.text))return n;throw n?new te("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new te("Invalid delimiter type '"+e.type+"'",e)}ce({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=Xs(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Oh[e.funcName].size,mclass:Oh[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?z.makeSpan([e.mclass]):$n.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(mn(e.delim,e.mode));var n=new ee.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=se($n.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function Bh(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ce({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new te("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Xs(t[0],e).text,color:n}}});ce({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Xs(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=we(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Bh(e);for(var n=xt(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,s=0;s{Bh(e);var n=Xt(e.body,t);if(e.left!=="."){var r=new ee.MathNode("mo",[mn(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new ee.MathNode("mo",[mn(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return p0(n)}});ce({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Xs(t[0],e);if(!e.parser.leftrightDepth)throw new te("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=da(t,[]);else{n=$n.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?mn("|","text"):mn(e.delim,e.mode),r=new ee.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var E0=(e,t)=>{var n=z.wrapFragment(Fe(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,s=0,o=pe.isCharacterBox(e.body);if(r==="sout")a=z.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var u=st({number:.6,unit:"pt"},t),l=st({number:.35,unit:"ex"},t),c=t.havingBaseSizing();i=i/c.sizeMultiplier;var d=n.height+n.depth+u+l;n.style.paddingLeft=se(d/2+u);var m=Math.floor(1e3*d*i),p=_C(m),b=new Kn([new pr("phase",p)],{width:"400em",height:se(m/1e3),viewBox:"0 0 400000 "+m,preserveAspectRatio:"xMinYMin slice"});a=z.makeSvgSpan(["hide-tail"],[b],t),a.style.height=se(d),s=n.depth+u+l}else{/cancel/.test(r)?o||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var E=0,C=0,T=0;/box/.test(r)?(T=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),E=t.fontMetrics().fboxsep+(r==="colorbox"?0:T),C=E):r==="angl"?(T=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),E=4*T,C=Math.max(0,.25-n.depth)):(E=o?.2:0,C=E),a=Qn.encloseSpan(n,r,E,C,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=se(T)):r==="angl"&&T!==.049&&(a.style.borderTopWidth=se(T),a.style.borderRightWidth=se(T)),s=n.depth+C,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var S;if(e.backgroundColor)S=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:n,shift:0}]},t);else{var v=/cancel|phase/.test(r)?["svg-align"]:[];S=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:v}]},t)}return/cancel/.test(r)&&(S.height=n.height,S.depth=n.depth),/cancel/.test(r)&&!o?z.makeSpan(["mord","cancel-lap"],[S],t):z.makeSpan(["mord"],[S],t)},x0=(e,t)=>{var n=0,r=new ee.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ge(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};ce({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=we(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:E0,mathmlBuilder:x0});ce({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=we(t[0],"color-token").color,s=we(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:E0,mathmlBuilder:x0});ce({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});ce({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:E0,mathmlBuilder:x0});ce({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var A2={};function Bn(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},u=0;u{var t=e.parser.settings;if(!t.displayMode)throw new te("{"+e.envName+"} can be used only in display mode.")};function v0(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function Tr(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:u,singleRow:l,emptySingleRow:c,maxNumCols:d,leqno:m}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var p=e.gullet.expandMacroAsText("\\arraystretch");if(p==null)s=1;else if(s=parseFloat(p),!s||s<0)throw new te("Invalid \\arraystretch: "+p)}e.gullet.beginGroup();var b=[],E=[b],C=[],T=[],S=u!=null?[]:void 0;function v(){u&&e.gullet.macros.set("\\@eqnsw","1",!0)}function _(){S&&(e.gullet.macros.get("\\df@tag")?(S.push(e.subparse([new hn("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):S.push(!!u&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(v(),T.push(Fh(e));;){var P=e.parseExpression(!1,l?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),P={type:"ordgroup",mode:e.mode,body:P},n&&(P={type:"styling",mode:e.mode,style:n,body:[P]}),b.push(P);var k=e.fetch().text;if(k==="&"){if(d&&b.length===d){if(l||o)throw new te("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(k==="\\end"){_(),b.length===1&&P.type==="styling"&&P.body[0].body.length===0&&(E.length>1||!c)&&E.pop(),T.length0&&(v+=.25),l.push({pos:v,isDashed:wt[Vt]})}for(_(s[0]),r=0;r0&&(K+=S,Vwt))for(r=0;r=o)){var qe=void 0;(i>0||t.hskipBeforeAndAfter)&&(qe=pe.deflt(Ae.pregap,m),qe!==0&&(W=z.makeSpan(["arraycolsep"],[]),W.style.width=se(qe),j.push(W)));var $e=[];for(r=0;r0){for(var ze=z.makeLineSpan("hline",n,c),dt=z.makeLineSpan("hdashline",n,c),Oe=[{type:"elem",elem:u,shift:0}];l.length>0;){var Xe=l.pop(),Pt=Xe.pos-Y;Xe.isDashed?Oe.push({type:"elem",elem:dt,shift:Pt}):Oe.push({type:"elem",elem:ze,shift:Pt})}u=z.makeVList({positionType:"individualShift",children:Oe},n)}if(le.length===0)return z.makeSpan(["mord"],[u],n);var Ot=z.makeVList({positionType:"individualShift",children:le},n);return Ot=z.makeSpan(["tag"],[Ot],n),z.makeFragment([u,Ot])},Vw={c:"center ",l:"left ",r:"right "},Hn=function(t,n){for(var r=[],i=new ee.MathNode("mtd",[],["mtr-glue"]),a=new ee.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var b=t.cols,E="",C=!1,T=0,S=b.length;b[0].type==="separator"&&(m+="top ",T=1),b[b.length-1].type==="separator"&&(m+="bottom ",S-=1);for(var v=T;v0?"left ":"",m+=U[U.length-1].length>0?"right ":"";for(var q=1;q-1?"alignat":"align",a=t.envName==="split",s=Tr(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:v0(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o,u=0,l={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var c="",d=0;d0&&p&&(C=1),r[b]={type:"align",align:E,pregap:C,postgap:0}}return s.colSeparationType=p?"align":"alignat",s};Bn({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Gs(t[0]),r=n?[t[0]]:we(t[0],"ordgroup").body,i=r.map(function(s){var o=b0(s),u=o.text;if("lcr".indexOf(u)!==-1)return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new te("Unknown column alignment: "+u,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Tr(e.parser,a,S0(e.envName))},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new te("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=Tr(e.parser,r,S0(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Tr(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Gs(t[0]),r=n?[t[0]]:we(t[0],"ordgroup").body,i=r.map(function(s){var o=b0(s),u=o.text;if("lc".indexOf(u)!==-1)return{type:"align",align:u};throw new te("Unknown column alignment: "+u,s)});if(i.length>1)throw new te("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=Tr(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new te("{subarray} can contain only one column");return a},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Tr(e.parser,t,S0(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:w2,htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){pe.contains(["gather","gather*"],e.envName)&&Qs(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:v0(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Tr(e.parser,t,"display")},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:w2,htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Qs(e);var t={autoTag:v0(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Tr(e.parser,t,"display")},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Qs(e),Iw(e.parser)},htmlBuilder:Fn,mathmlBuilder:Hn});x("\\nonumber","\\gdef\\@eqnsw{0}");x("\\notag","\\nonumber");ce({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new te(e.funcName+" valid only within array environment")}});var Hh=A2;ce({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new te("Invalid environment name",i);for(var a="",s=0;s{var n=e.font,r=t.withFont(n);return Fe(e.body,r)},I2=(e,t)=>{var n=e.font,r=t.withFont(n);return Ge(e.body,r)},zh={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ce({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=As(t[0]),a=r;return a in zh&&(a=zh[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:k2,mathmlBuilder:I2});ce({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=pe.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:Ks(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});ce({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,s=n.parseExpression(!0,i),o="math"+r.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:n.mode,body:s}}},htmlBuilder:k2,mathmlBuilder:I2});var N2=(e,t)=>{var n=t;return e==="display"?n=n.id>=be.SCRIPT.id?n.text():be.DISPLAY:e==="text"&&n.size===be.DISPLAY.size?n=be.TEXT:e==="script"?n=be.SCRIPT:e==="scriptscript"&&(n=be.SCRIPTSCRIPT),n},A0=(e,t)=>{var n=N2(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var s=Fe(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,u=3.5/t.fontMetrics().ptPerEm;s.height=s.height0?b=3*m:b=7*m,E=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,b=m):(p=t.fontMetrics().num3,b=3*m),E=t.fontMetrics().denom2);var C;if(c){var S=t.fontMetrics().axisHeight;p-s.depth-(S+.5*d){var n=new ee.MathNode("mfrac",[Ge(e.numer,t),Ge(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=st(e.barSize,t);n.setAttribute("linethickness",se(r))}var i=N2(e.size,t.style);if(i.size!==t.style.size){n=new ee.MathNode("mstyle",[n]);var a=i.size===be.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new ee.MathNode("mo",[new ee.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(n),e.rightDelim!=null){var u=new ee.MathNode("mo",[new ee.TextNode(e.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),s.push(u)}return p0(s)}return n};ce({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],s,o=null,u=null,l="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",u=")";break;case"\\\\bracefrac":s=!1,o="\\{",u="\\}";break;case"\\\\brackfrac":s=!1,o="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":l="display";break;case"\\tfrac":case"\\tbinom":l="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:o,rightDelim:u,size:l,barSize:null}},htmlBuilder:A0,mathmlBuilder:C0});ce({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});ce({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var Uh=["display","text","script","scriptscript"],Vh=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};ce({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=As(t[0]),s=a.type==="atom"&&a.family==="open"?Vh(a.text):null,o=As(t[1]),u=o.type==="atom"&&o.family==="close"?Vh(o.text):null,l=we(t[2],"size"),c,d=null;l.isBlank?c=!0:(d=l.value,c=d.number>0);var m="auto",p=t[3];if(p.type==="ordgroup"){if(p.body.length>0){var b=we(p.body[0],"textord");m=Uh[Number(b.text)]}}else p=we(p,"textord"),m=Uh[Number(p.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:c,barSize:d,leftDelim:s,rightDelim:u,size:m}},htmlBuilder:A0,mathmlBuilder:C0});ce({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:we(t[0],"size").value,token:i}}});ce({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=yC(we(t[1],"infix").size),s=t[2],o=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:A0,mathmlBuilder:C0});var M2=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?Fe(e.sup,t.havingStyle(n.sup()),t):Fe(e.sub,t.havingStyle(n.sub()),t),i=we(e.base,"horizBrace")):i=we(e,"horizBrace");var a=Fe(i.base,t.havingBaseStyle(be.DISPLAY)),s=Qn.svgSpan(i,t),o;if(i.isOver?(o=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=z.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),r){var u=z.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);i.isOver?o=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:r}]},t):o=z.makeVList({positionType:"bottom",positionData:u.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:u}]},t)}return z.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)},jw=(e,t)=>{var n=Qn.mathMLnode(e.label);return new ee.MathNode(e.isOver?"mover":"munder",[Ge(e.base,t),n])};ce({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:M2,mathmlBuilder:jw});ce({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=we(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:mt(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=xt(e.body,t,!1);return z.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=gr(e.body,t);return n instanceof tn||(n=new tn("mrow",[n])),n.setAttribute("href",e.href),n}});ce({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=we(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=we(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,u={};switch(r){case"\\htmlClass":u.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":u.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":u.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var l=a.split(","),c=0;c{var n=xt(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=z.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>gr(e.body,t)});ce({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:mt(t[0]),mathml:mt(t[1])}},htmlBuilder:(e,t)=>{var n=xt(e.html,t,!1);return z.makeFragment(n)},mathmlBuilder:(e,t)=>gr(e.mathml,t)});var Zo=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new te("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!Kp(r))throw new te("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};ce({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(n[0])for(var u=we(n[0],"raw").string,l=u.split(","),c=0;c{var n=st(e.height,t),r=0;e.totalheight.number>0&&(r=st(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=st(e.width,t));var a={height:se(n+r)};i>0&&(a.width=se(i)),r>0&&(a.verticalAlign=se(-r));var s=new jC(e.src,e.alt,a);return s.height=n,s.depth=r,s},mathmlBuilder:(e,t)=>{var n=new ee.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=st(e.height,t),i=0;if(e.totalheight.number>0&&(i=st(e.totalheight,t)-r,n.setAttribute("valign",se(-i))),n.setAttribute("height",se(r+i)),e.width.number>0){var a=st(e.width,t);n.setAttribute("width",se(a))}return n.setAttribute("src",e.src),n}});ce({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=we(t[0],"size");if(n.settings.strict){var a=r[1]==="m",s=i.value.unit==="mu";a?(s||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):s&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return z.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=st(e.dimension,t);return new ee.SpaceNode(n)}});ce({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=z.makeSpan([],[Fe(e.body,t)]),n=z.makeSpan(["inner"],[n],t)):n=z.makeSpan(["inner"],[Fe(e.body,t)]);var r=z.makeSpan(["fix"],[]),i=z.makeSpan([e.alignment],[n,r],t),a=z.makeSpan(["strut"]);return a.style.height=se(i.height+i.depth),i.depth&&(a.style.verticalAlign=se(-i.depth)),i.children.unshift(a),i=z.makeSpan(["thinbox"],[i],t),z.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new ee.MathNode("mpadded",[Ge(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});ce({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",s=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:s}}});ce({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new te("Mismatched "+e.funcName)}});var jh=(e,t)=>{switch(t.style.size){case be.DISPLAY.size:return e.display;case be.TEXT.size:return e.text;case be.SCRIPT.size:return e.script;case be.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ce({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:mt(t[0]),text:mt(t[1]),script:mt(t[2]),scriptscript:mt(t[3])}},htmlBuilder:(e,t)=>{var n=jh(e,t),r=xt(n,t,!1);return z.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=jh(e,t);return gr(n,t)}});var R2=(e,t,n,r,i,a,s)=>{e=z.makeSpan([],[e]);var o=n&&pe.isCharacterBox(n),u,l;if(t){var c=Fe(t,r.havingStyle(i.sup()),r);l={elem:c,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-c.depth)}}if(n){var d=Fe(n,r.havingStyle(i.sub()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var m;if(l&&u){var p=r.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+e.depth+s;m=z.makeVList({positionType:"bottom",positionData:p,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:se(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:se(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(u){var b=e.height-s;m=z.makeVList({positionType:"top",positionData:b,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:se(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e}]},r)}else if(l){var E=e.depth+s;m=z.makeVList({positionType:"bottom",positionData:E,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:se(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var C=[m];if(u&&a!==0&&!o){var T=z.makeSpan(["mspace"],[],r);T.style.marginRight=se(a),C.unshift(T)}return z.makeSpan(["mop","op-limits"],C,r)},D2=["\\smallint"],yi=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=we(e.base,"op"),i=!0):a=we(e,"op");var s=t.style,o=!1;s.size===be.DISPLAY.size&&a.symbol&&!pe.contains(D2,a.name)&&(o=!0);var u;if(a.symbol){var l=o?"Size2-Regular":"Size1-Regular",c="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(c=a.name.slice(1),a.name=c==="oiint"?"\\iint":"\\iiint"),u=z.makeSymbol(a.name,l,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),c.length>0){var d=u.italic,m=z.staticSvg(c+"Size"+(o?"2":"1"),t);u=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:m,shift:o?.08:0}]},t),a.name="\\"+c,u.classes.unshift("mop"),u.italic=d}}else if(a.body){var p=xt(a.body,t,!0);p.length===1&&p[0]instanceof fn?(u=p[0],u.classes[0]="mop"):u=z.makeSpan(["mop"],p,t)}else{for(var b=[],E=1;E{var n;if(e.symbol)n=new tn("mo",[mn(e.name,e.mode)]),pe.contains(D2,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new tn("mo",Xt(e.body,t));else{n=new tn("mi",[new kn(e.name.slice(1))]);var r=new tn("mo",[mn("⁡","text")]);e.parentIsSupSub?n=new tn("mrow",[n,r]):n=s2([n,r])}return n},qw={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ce({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=qw[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:yi,mathmlBuilder:Ca});ce({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:mt(r)}},htmlBuilder:yi,mathmlBuilder:Ca});var $w={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ce({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:yi,mathmlBuilder:Ca});ce({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:yi,mathmlBuilder:Ca});ce({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=$w[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:yi,mathmlBuilder:Ca});var _2=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=we(e.base,"operatorname"),i=!0):a=we(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(d=>{var m=d.text;return typeof m=="string"?{type:"textord",mode:d.mode,text:m}:d}),u=xt(o,t.withFont("mathrm"),!0),l=0;l{for(var n=Xt(e.body,t.withFont("mathrm")),r=!0,i=0;ic.toText()).join("");n=[new ee.TextNode(o)]}var u=new ee.MathNode("mi",n);u.setAttribute("mathvariant","normal");var l=new ee.MathNode("mo",[mn("⁡","text")]);return e.parentIsSupSub?new ee.MathNode("mrow",[u,l]):ee.newDocumentFragment([u,l])};ce({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:mt(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:_2,mathmlBuilder:Ww});x("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Fr({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?z.makeFragment(xt(e.body,t,!1)):z.makeSpan(["mord"],xt(e.body,t,!0),t)},mathmlBuilder(e,t){return gr(e.body,t,!0)}});ce({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=Fe(e.body,t.havingCrampedStyle()),r=z.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return z.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new ee.MathNode("mo",[new ee.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new ee.MathNode("mover",[Ge(e.body,t),n]);return r.setAttribute("accent","true"),r}});ce({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:mt(r)}},htmlBuilder:(e,t)=>{var n=xt(e.body,t.withPhantom(),!1);return z.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=Xt(e.body,t);return new ee.MathNode("mphantom",n)}});ce({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=z.makeSpan([],[Fe(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=Xt(mt(e.body),t),r=new ee.MathNode("mphantom",n),i=new ee.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});ce({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=z.makeSpan(["inner"],[Fe(e.body,t.withPhantom())]),r=z.makeSpan(["fix"],[]);return z.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=Xt(mt(e.body),t),r=new ee.MathNode("mphantom",n),i=new ee.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});ce({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=we(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Fe(e.body,t),r=st(e.dy,t);return z.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new ee.MathNode("mpadded",[Ge(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});ce({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ce({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=we(t[0],"size"),s=we(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&we(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var n=z.makeSpan(["mord","rule"],[],t),r=st(e.width,t),i=st(e.height,t),a=e.shift?st(e.shift,t):0;return n.style.borderRightWidth=se(r),n.style.borderTopWidth=se(i),n.style.bottom=se(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=st(e.width,t),r=st(e.height,t),i=e.shift?st(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new ee.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",se(n)),s.setAttribute("height",se(r));var o=new ee.MathNode("mpadded",[s]);return i>=0?o.setAttribute("height",se(i)):(o.setAttribute("height",se(i)),o.setAttribute("depth",se(-i))),o.setAttribute("voffset",se(i)),o}});function L2(e,t,n){for(var r=xt(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return L2(e.body,n,t)};ce({type:"sizing",names:qh,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:qh.indexOf(r)+1,body:a}},htmlBuilder:Yw,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=Xt(e.body,n),i=new ee.MathNode("mstyle",r);return i.setAttribute("mathsize",se(n.sizeMultiplier)),i}});ce({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,s=n[0]&&we(n[0],"ordgroup");if(s)for(var o="",u=0;u{var n=z.makeSpan([],[Fe(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new ee.MathNode("mpadded",[Ge(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});ce({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Fe(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=z.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+s&&(s=(s+d-n.height-n.depth)/2);var m=u.height-n.height-s-l;n.style.paddingLeft=se(c);var p=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+m)},{type:"elem",elem:u},{type:"kern",size:l}]},t);if(e.index){var b=t.havingStyle(be.SCRIPTSCRIPT),E=Fe(e.index,b,t),C=.6*(p.height-p.depth),T=z.makeVList({positionType:"shift",positionData:-C,children:[{type:"elem",elem:E}]},t),S=z.makeSpan(["root"],[T]);return z.makeSpan(["mord","sqrt"],[S,p],t)}else return z.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new ee.MathNode("mroot",[Ge(n,t),Ge(r,t)]):new ee.MathNode("msqrt",[Ge(n,t)])}});var $h={display:be.DISPLAY,text:be.TEXT,script:be.SCRIPT,scriptscript:be.SCRIPTSCRIPT};ce({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),s=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var n=$h[e.style],r=t.havingStyle(n).withFont("");return L2(e.body,r,t)},mathmlBuilder(e,t){var n=$h[e.style],r=t.havingStyle(n),i=Xt(e.body,r),a=new ee.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var Gw=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===be.DISPLAY.size||r.alwaysHandleSupSub);return i?yi:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===be.DISPLAY.size||r.limits);return a?_2:null}else{if(r.type==="accent")return pe.isCharacterBox(r.base)?y0:null;if(r.type==="horizBrace"){var s=!t.sub;return s===r.isOver?M2:null}else return null}else return null};Fr({type:"supsub",htmlBuilder(e,t){var n=Gw(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,s=Fe(r,t),o,u,l=t.fontMetrics(),c=0,d=0,m=r&&pe.isCharacterBox(r);if(i){var p=t.havingStyle(t.style.sup());o=Fe(i,p,t),m||(c=s.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var b=t.havingStyle(t.style.sub());u=Fe(a,b,t),m||(d=s.depth+b.fontMetrics().subDrop*b.sizeMultiplier/t.sizeMultiplier)}var E;t.style===be.DISPLAY?E=l.sup1:t.style.cramped?E=l.sup3:E=l.sup2;var C=t.sizeMultiplier,T=se(.5/l.ptPerEm/C),S=null;if(u){var v=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof fn||v)&&(S=se(-s.italic))}var _;if(o&&u){c=Math.max(c,E,o.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var P=l.defaultRuleThickness,k=4*P;if(c-o.depth-(u.height-d)0&&(c+=V,d-=V)}var U=[{type:"elem",elem:u,shift:d,marginRight:T,marginLeft:S},{type:"elem",elem:o,shift:-c,marginRight:T}];_=z.makeVList({positionType:"individualShift",children:U},t)}else if(u){d=Math.max(d,l.sub1,u.height-.8*l.xHeight);var q=[{type:"elem",elem:u,marginLeft:S,marginRight:T}];_=z.makeVList({positionType:"shift",positionData:d,children:q},t)}else if(o)c=Math.max(c,E,o.depth+.25*l.xHeight),_=z.makeVList({positionType:"shift",positionData:-c,children:[{type:"elem",elem:o,marginRight:T}]},t);else throw new Error("supsub must have either sup or sub.");var B=Yu(s,"right")||"mord";return z.makeSpan([B],[s,z.makeSpan(["msupsub"],[_])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[Ge(e.base,t)];e.sub&&a.push(Ge(e.sub,t)),e.sup&&a.push(Ge(e.sup,t));var s;if(n)s=r?"mover":"munder";else if(e.sub)if(e.sup){var l=e.base;l&&l.type==="op"&&l.limits&&t.style===be.DISPLAY||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(t.style===be.DISPLAY||l.limits)?s="munderover":s="msubsup"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(t.style===be.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||t.style===be.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===be.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===be.DISPLAY)?s="mover":s="msup"}return new ee.MathNode(s,a)}});Fr({type:"atom",htmlBuilder(e,t){return z.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new ee.MathNode("mo",[mn(e.text,e.mode)]);if(e.family==="bin"){var r=g0(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var P2={mi:"italic",mn:"normal",mtext:"normal"};Fr({type:"mathord",htmlBuilder(e,t){return z.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new ee.MathNode("mi",[mn(e.text,e.mode,t)]),r=g0(e,t)||"italic";return r!==P2[n.type]&&n.setAttribute("mathvariant",r),n}});Fr({type:"textord",htmlBuilder(e,t){return z.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=mn(e.text,e.mode,t),r=g0(e,t)||"normal",i;return e.mode==="text"?i=new ee.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new ee.MathNode("mn",[n]):e.text==="\\prime"?i=new ee.MathNode("mo",[n]):i=new ee.MathNode("mi",[n]),r!==P2[i.type]&&i.setAttribute("mathvariant",r),i}});var Jo={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},eu={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Fr({type:"spacing",htmlBuilder(e,t){if(eu.hasOwnProperty(e.text)){var n=eu[e.text].className||"";if(e.mode==="text"){var r=z.makeOrd(e,t,"textord");return r.classes.push(n),r}else return z.makeSpan(["mspace",n],[z.mathsym(e.text,e.mode,t)],t)}else{if(Jo.hasOwnProperty(e.text))return z.makeSpan(["mspace",Jo[e.text]],[],t);throw new te('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(eu.hasOwnProperty(e.text))n=new ee.MathNode("mtext",[new ee.TextNode(" ")]);else{if(Jo.hasOwnProperty(e.text))return new ee.MathNode("mspace");throw new te('Unknown type of space "'+e.text+'"')}return n}});var Wh=()=>{var e=new ee.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Fr({type:"tag",mathmlBuilder(e,t){var n=new ee.MathNode("mtable",[new ee.MathNode("mtr",[Wh(),new ee.MathNode("mtd",[gr(e.body,t)]),Wh(),new ee.MathNode("mtd",[gr(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var Yh={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Gh={"\\textbf":"textbf","\\textmd":"textmd"},Kw={"\\textit":"textit","\\textup":"textup"},Kh=(e,t)=>{var n=e.font;if(n){if(Yh[n])return t.withTextFontFamily(Yh[n]);if(Gh[n])return t.withTextFontWeight(Gh[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Kw[n])};ce({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:mt(i),font:r}},htmlBuilder(e,t){var n=Kh(e,t),r=xt(e.body,n,!0);return z.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=Kh(e,t);return gr(e.body,n)}});ce({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Fe(e.body,t),r=z.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=z.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return z.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new ee.MathNode("mo",[new ee.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new ee.MathNode("munder",[Ge(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});ce({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Fe(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return z.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new ee.MathNode("mpadded",[Ge(e.body,t)],["vcenter"])}});ce({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new te("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=Xh(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),cr=i2,O2=`[ \r - ]`,Xw="\\\\[a-zA-Z@]+",Qw="\\\\[^\uD800-\uDFFF]",Zw="("+Xw+")"+O2+"*",Jw=`\\\\( +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let Sa=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return pe.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;nn.toText();return this.children.map(t).join("")}};var wn={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ja={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Ah={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function FC(e,t){wn[e]=t}function h0(e,t,n){if(!wn[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=wn[t][r];if(!i&&e[0]in Ah&&(r=Ah[e[0]].charCodeAt(0),i=wn[t][r]),!i&&n==="text"&&Kp(r)&&(i=wn[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Uo={};function HC(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Uo[t]){var n=Uo[t]={cssEmPerMu:ja.quad[t]/18};for(var r in ja)ja.hasOwnProperty(r)&&(n[r]=ja[r][t])}return Uo[t]}var zC=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Ch=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],wh=function(t,n){return n.size<2?t:zC[t-1][n.size-1]};class Un{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Un.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Ch[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new Un(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:wh(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Ch[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=wh(Un.BASESIZE,t);return this.size===n&&this.textSize===Un.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Un.BASESIZE?["sizing","reset-size"+this.size,"size"+Un.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=HC(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Un.BASESIZE=6;var qu={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},UC={ex:!0,em:!0,mu:!0},Xp=function(t){return typeof t!="string"&&(t=t.unit),t in qu||t in UC||t==="ex"},st=function(t,n){var r;if(t.unit in qu)r=qu[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new te("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},se=function(t){return+t.toFixed(4)+"em"},mr=function(t){return t.filter(n=>n).join(" ")},Qp=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},Zp=function(t){var n=document.createElement(t);n.className=mr(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a/=\x00-\x1f]/,Jp=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+pe.escape(mr(this.classes))+'"');var r="";for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=pe.hyphenate(i)+":"+this.style[i]+";");r&&(n+=' style="'+pe.escape(r)+'"');for(var a in this.attributes)if(this.attributes.hasOwnProperty(a)){if(VC.test(a))throw new te("Invalid attribute name '"+a+"'");n+=" "+a+'="'+pe.escape(this.attributes[a])+'"'}n+=">";for(var s=0;s",n};class Aa{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Qp.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return pe.contains(this.classes,t)}toNode(){return Zp.call(this,"span")}toMarkup(){return Jp.call(this,"span")}}class f0{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Qp.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return pe.contains(this.classes,t)}toNode(){return Zp.call(this,"a")}toMarkup(){return Jp.call(this,"a")}}class jC{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return pe.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t=''+pe.escape(this.alt)+'0&&(n=document.createElement("span"),n.style.marginRight=se(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=mr(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=pe.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+pe.escape(r)+'"');var a=pe.escape(this.text);return t?(n+=">",n+=a,n+="",n):a}}class Kn{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i':''}}class $u{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t=" but got "+String(e)+".")}var WC={bin:1,close:1,inner:1,open:1,punct:1,rel:1},YC={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},et={math:{},text:{}};function f(e,t,n,r,i,a){et[e][i]={font:t,group:n,replace:r},a&&r&&(et[e][r]=et[e][i])}var g="math",Q="text",y="main",N="ams",it="accent-token",de="bin",Ut="close",bi="inner",ge="mathord",Et="op-token",an="open",Ws="punct",M="rel",Jn="spacing",F="textord";f(g,y,M,"≡","\\equiv",!0);f(g,y,M,"≺","\\prec",!0);f(g,y,M,"≻","\\succ",!0);f(g,y,M,"∼","\\sim",!0);f(g,y,M,"⊥","\\perp");f(g,y,M,"⪯","\\preceq",!0);f(g,y,M,"⪰","\\succeq",!0);f(g,y,M,"≃","\\simeq",!0);f(g,y,M,"∣","\\mid",!0);f(g,y,M,"≪","\\ll",!0);f(g,y,M,"≫","\\gg",!0);f(g,y,M,"≍","\\asymp",!0);f(g,y,M,"∥","\\parallel");f(g,y,M,"⋈","\\bowtie",!0);f(g,y,M,"⌣","\\smile",!0);f(g,y,M,"⊑","\\sqsubseteq",!0);f(g,y,M,"⊒","\\sqsupseteq",!0);f(g,y,M,"≐","\\doteq",!0);f(g,y,M,"⌢","\\frown",!0);f(g,y,M,"∋","\\ni",!0);f(g,y,M,"∝","\\propto",!0);f(g,y,M,"⊢","\\vdash",!0);f(g,y,M,"⊣","\\dashv",!0);f(g,y,M,"∋","\\owns");f(g,y,Ws,".","\\ldotp");f(g,y,Ws,"⋅","\\cdotp");f(g,y,F,"#","\\#");f(Q,y,F,"#","\\#");f(g,y,F,"&","\\&");f(Q,y,F,"&","\\&");f(g,y,F,"ℵ","\\aleph",!0);f(g,y,F,"∀","\\forall",!0);f(g,y,F,"ℏ","\\hbar",!0);f(g,y,F,"∃","\\exists",!0);f(g,y,F,"∇","\\nabla",!0);f(g,y,F,"♭","\\flat",!0);f(g,y,F,"ℓ","\\ell",!0);f(g,y,F,"♮","\\natural",!0);f(g,y,F,"♣","\\clubsuit",!0);f(g,y,F,"℘","\\wp",!0);f(g,y,F,"♯","\\sharp",!0);f(g,y,F,"♢","\\diamondsuit",!0);f(g,y,F,"ℜ","\\Re",!0);f(g,y,F,"♡","\\heartsuit",!0);f(g,y,F,"ℑ","\\Im",!0);f(g,y,F,"♠","\\spadesuit",!0);f(g,y,F,"§","\\S",!0);f(Q,y,F,"§","\\S");f(g,y,F,"¶","\\P",!0);f(Q,y,F,"¶","\\P");f(g,y,F,"†","\\dag");f(Q,y,F,"†","\\dag");f(Q,y,F,"†","\\textdagger");f(g,y,F,"‡","\\ddag");f(Q,y,F,"‡","\\ddag");f(Q,y,F,"‡","\\textdaggerdbl");f(g,y,Ut,"⎱","\\rmoustache",!0);f(g,y,an,"⎰","\\lmoustache",!0);f(g,y,Ut,"⟯","\\rgroup",!0);f(g,y,an,"⟮","\\lgroup",!0);f(g,y,de,"∓","\\mp",!0);f(g,y,de,"⊖","\\ominus",!0);f(g,y,de,"⊎","\\uplus",!0);f(g,y,de,"⊓","\\sqcap",!0);f(g,y,de,"∗","\\ast");f(g,y,de,"⊔","\\sqcup",!0);f(g,y,de,"◯","\\bigcirc",!0);f(g,y,de,"∙","\\bullet",!0);f(g,y,de,"‡","\\ddagger");f(g,y,de,"≀","\\wr",!0);f(g,y,de,"⨿","\\amalg");f(g,y,de,"&","\\And");f(g,y,M,"⟵","\\longleftarrow",!0);f(g,y,M,"⇐","\\Leftarrow",!0);f(g,y,M,"⟸","\\Longleftarrow",!0);f(g,y,M,"⟶","\\longrightarrow",!0);f(g,y,M,"⇒","\\Rightarrow",!0);f(g,y,M,"⟹","\\Longrightarrow",!0);f(g,y,M,"↔","\\leftrightarrow",!0);f(g,y,M,"⟷","\\longleftrightarrow",!0);f(g,y,M,"⇔","\\Leftrightarrow",!0);f(g,y,M,"⟺","\\Longleftrightarrow",!0);f(g,y,M,"↦","\\mapsto",!0);f(g,y,M,"⟼","\\longmapsto",!0);f(g,y,M,"↗","\\nearrow",!0);f(g,y,M,"↩","\\hookleftarrow",!0);f(g,y,M,"↪","\\hookrightarrow",!0);f(g,y,M,"↘","\\searrow",!0);f(g,y,M,"↼","\\leftharpoonup",!0);f(g,y,M,"⇀","\\rightharpoonup",!0);f(g,y,M,"↙","\\swarrow",!0);f(g,y,M,"↽","\\leftharpoondown",!0);f(g,y,M,"⇁","\\rightharpoondown",!0);f(g,y,M,"↖","\\nwarrow",!0);f(g,y,M,"⇌","\\rightleftharpoons",!0);f(g,N,M,"≮","\\nless",!0);f(g,N,M,"","\\@nleqslant");f(g,N,M,"","\\@nleqq");f(g,N,M,"⪇","\\lneq",!0);f(g,N,M,"≨","\\lneqq",!0);f(g,N,M,"","\\@lvertneqq");f(g,N,M,"⋦","\\lnsim",!0);f(g,N,M,"⪉","\\lnapprox",!0);f(g,N,M,"⊀","\\nprec",!0);f(g,N,M,"⋠","\\npreceq",!0);f(g,N,M,"⋨","\\precnsim",!0);f(g,N,M,"⪹","\\precnapprox",!0);f(g,N,M,"≁","\\nsim",!0);f(g,N,M,"","\\@nshortmid");f(g,N,M,"∤","\\nmid",!0);f(g,N,M,"⊬","\\nvdash",!0);f(g,N,M,"⊭","\\nvDash",!0);f(g,N,M,"⋪","\\ntriangleleft");f(g,N,M,"⋬","\\ntrianglelefteq",!0);f(g,N,M,"⊊","\\subsetneq",!0);f(g,N,M,"","\\@varsubsetneq");f(g,N,M,"⫋","\\subsetneqq",!0);f(g,N,M,"","\\@varsubsetneqq");f(g,N,M,"≯","\\ngtr",!0);f(g,N,M,"","\\@ngeqslant");f(g,N,M,"","\\@ngeqq");f(g,N,M,"⪈","\\gneq",!0);f(g,N,M,"≩","\\gneqq",!0);f(g,N,M,"","\\@gvertneqq");f(g,N,M,"⋧","\\gnsim",!0);f(g,N,M,"⪊","\\gnapprox",!0);f(g,N,M,"⊁","\\nsucc",!0);f(g,N,M,"⋡","\\nsucceq",!0);f(g,N,M,"⋩","\\succnsim",!0);f(g,N,M,"⪺","\\succnapprox",!0);f(g,N,M,"≆","\\ncong",!0);f(g,N,M,"","\\@nshortparallel");f(g,N,M,"∦","\\nparallel",!0);f(g,N,M,"⊯","\\nVDash",!0);f(g,N,M,"⋫","\\ntriangleright");f(g,N,M,"⋭","\\ntrianglerighteq",!0);f(g,N,M,"","\\@nsupseteqq");f(g,N,M,"⊋","\\supsetneq",!0);f(g,N,M,"","\\@varsupsetneq");f(g,N,M,"⫌","\\supsetneqq",!0);f(g,N,M,"","\\@varsupsetneqq");f(g,N,M,"⊮","\\nVdash",!0);f(g,N,M,"⪵","\\precneqq",!0);f(g,N,M,"⪶","\\succneqq",!0);f(g,N,M,"","\\@nsubseteqq");f(g,N,de,"⊴","\\unlhd");f(g,N,de,"⊵","\\unrhd");f(g,N,M,"↚","\\nleftarrow",!0);f(g,N,M,"↛","\\nrightarrow",!0);f(g,N,M,"⇍","\\nLeftarrow",!0);f(g,N,M,"⇏","\\nRightarrow",!0);f(g,N,M,"↮","\\nleftrightarrow",!0);f(g,N,M,"⇎","\\nLeftrightarrow",!0);f(g,N,M,"△","\\vartriangle");f(g,N,F,"ℏ","\\hslash");f(g,N,F,"▽","\\triangledown");f(g,N,F,"◊","\\lozenge");f(g,N,F,"Ⓢ","\\circledS");f(g,N,F,"®","\\circledR");f(Q,N,F,"®","\\circledR");f(g,N,F,"∡","\\measuredangle",!0);f(g,N,F,"∄","\\nexists");f(g,N,F,"℧","\\mho");f(g,N,F,"Ⅎ","\\Finv",!0);f(g,N,F,"⅁","\\Game",!0);f(g,N,F,"‵","\\backprime");f(g,N,F,"▲","\\blacktriangle");f(g,N,F,"▼","\\blacktriangledown");f(g,N,F,"■","\\blacksquare");f(g,N,F,"⧫","\\blacklozenge");f(g,N,F,"★","\\bigstar");f(g,N,F,"∢","\\sphericalangle",!0);f(g,N,F,"∁","\\complement",!0);f(g,N,F,"ð","\\eth",!0);f(Q,y,F,"ð","ð");f(g,N,F,"╱","\\diagup");f(g,N,F,"╲","\\diagdown");f(g,N,F,"□","\\square");f(g,N,F,"□","\\Box");f(g,N,F,"◊","\\Diamond");f(g,N,F,"¥","\\yen",!0);f(Q,N,F,"¥","\\yen",!0);f(g,N,F,"✓","\\checkmark",!0);f(Q,N,F,"✓","\\checkmark");f(g,N,F,"ℶ","\\beth",!0);f(g,N,F,"ℸ","\\daleth",!0);f(g,N,F,"ℷ","\\gimel",!0);f(g,N,F,"ϝ","\\digamma",!0);f(g,N,F,"ϰ","\\varkappa");f(g,N,an,"┌","\\@ulcorner",!0);f(g,N,Ut,"┐","\\@urcorner",!0);f(g,N,an,"└","\\@llcorner",!0);f(g,N,Ut,"┘","\\@lrcorner",!0);f(g,N,M,"≦","\\leqq",!0);f(g,N,M,"⩽","\\leqslant",!0);f(g,N,M,"⪕","\\eqslantless",!0);f(g,N,M,"≲","\\lesssim",!0);f(g,N,M,"⪅","\\lessapprox",!0);f(g,N,M,"≊","\\approxeq",!0);f(g,N,de,"⋖","\\lessdot");f(g,N,M,"⋘","\\lll",!0);f(g,N,M,"≶","\\lessgtr",!0);f(g,N,M,"⋚","\\lesseqgtr",!0);f(g,N,M,"⪋","\\lesseqqgtr",!0);f(g,N,M,"≑","\\doteqdot");f(g,N,M,"≓","\\risingdotseq",!0);f(g,N,M,"≒","\\fallingdotseq",!0);f(g,N,M,"∽","\\backsim",!0);f(g,N,M,"⋍","\\backsimeq",!0);f(g,N,M,"⫅","\\subseteqq",!0);f(g,N,M,"⋐","\\Subset",!0);f(g,N,M,"⊏","\\sqsubset",!0);f(g,N,M,"≼","\\preccurlyeq",!0);f(g,N,M,"⋞","\\curlyeqprec",!0);f(g,N,M,"≾","\\precsim",!0);f(g,N,M,"⪷","\\precapprox",!0);f(g,N,M,"⊲","\\vartriangleleft");f(g,N,M,"⊴","\\trianglelefteq");f(g,N,M,"⊨","\\vDash",!0);f(g,N,M,"⊪","\\Vvdash",!0);f(g,N,M,"⌣","\\smallsmile");f(g,N,M,"⌢","\\smallfrown");f(g,N,M,"≏","\\bumpeq",!0);f(g,N,M,"≎","\\Bumpeq",!0);f(g,N,M,"≧","\\geqq",!0);f(g,N,M,"⩾","\\geqslant",!0);f(g,N,M,"⪖","\\eqslantgtr",!0);f(g,N,M,"≳","\\gtrsim",!0);f(g,N,M,"⪆","\\gtrapprox",!0);f(g,N,de,"⋗","\\gtrdot");f(g,N,M,"⋙","\\ggg",!0);f(g,N,M,"≷","\\gtrless",!0);f(g,N,M,"⋛","\\gtreqless",!0);f(g,N,M,"⪌","\\gtreqqless",!0);f(g,N,M,"≖","\\eqcirc",!0);f(g,N,M,"≗","\\circeq",!0);f(g,N,M,"≜","\\triangleq",!0);f(g,N,M,"∼","\\thicksim");f(g,N,M,"≈","\\thickapprox");f(g,N,M,"⫆","\\supseteqq",!0);f(g,N,M,"⋑","\\Supset",!0);f(g,N,M,"⊐","\\sqsupset",!0);f(g,N,M,"≽","\\succcurlyeq",!0);f(g,N,M,"⋟","\\curlyeqsucc",!0);f(g,N,M,"≿","\\succsim",!0);f(g,N,M,"⪸","\\succapprox",!0);f(g,N,M,"⊳","\\vartriangleright");f(g,N,M,"⊵","\\trianglerighteq");f(g,N,M,"⊩","\\Vdash",!0);f(g,N,M,"∣","\\shortmid");f(g,N,M,"∥","\\shortparallel");f(g,N,M,"≬","\\between",!0);f(g,N,M,"⋔","\\pitchfork",!0);f(g,N,M,"∝","\\varpropto");f(g,N,M,"◀","\\blacktriangleleft");f(g,N,M,"∴","\\therefore",!0);f(g,N,M,"∍","\\backepsilon");f(g,N,M,"▶","\\blacktriangleright");f(g,N,M,"∵","\\because",!0);f(g,N,M,"⋘","\\llless");f(g,N,M,"⋙","\\gggtr");f(g,N,de,"⊲","\\lhd");f(g,N,de,"⊳","\\rhd");f(g,N,M,"≂","\\eqsim",!0);f(g,y,M,"⋈","\\Join");f(g,N,M,"≑","\\Doteq",!0);f(g,N,de,"∔","\\dotplus",!0);f(g,N,de,"∖","\\smallsetminus");f(g,N,de,"⋒","\\Cap",!0);f(g,N,de,"⋓","\\Cup",!0);f(g,N,de,"⩞","\\doublebarwedge",!0);f(g,N,de,"⊟","\\boxminus",!0);f(g,N,de,"⊞","\\boxplus",!0);f(g,N,de,"⋇","\\divideontimes",!0);f(g,N,de,"⋉","\\ltimes",!0);f(g,N,de,"⋊","\\rtimes",!0);f(g,N,de,"⋋","\\leftthreetimes",!0);f(g,N,de,"⋌","\\rightthreetimes",!0);f(g,N,de,"⋏","\\curlywedge",!0);f(g,N,de,"⋎","\\curlyvee",!0);f(g,N,de,"⊝","\\circleddash",!0);f(g,N,de,"⊛","\\circledast",!0);f(g,N,de,"⋅","\\centerdot");f(g,N,de,"⊺","\\intercal",!0);f(g,N,de,"⋒","\\doublecap");f(g,N,de,"⋓","\\doublecup");f(g,N,de,"⊠","\\boxtimes",!0);f(g,N,M,"⇢","\\dashrightarrow",!0);f(g,N,M,"⇠","\\dashleftarrow",!0);f(g,N,M,"⇇","\\leftleftarrows",!0);f(g,N,M,"⇆","\\leftrightarrows",!0);f(g,N,M,"⇚","\\Lleftarrow",!0);f(g,N,M,"↞","\\twoheadleftarrow",!0);f(g,N,M,"↢","\\leftarrowtail",!0);f(g,N,M,"↫","\\looparrowleft",!0);f(g,N,M,"⇋","\\leftrightharpoons",!0);f(g,N,M,"↶","\\curvearrowleft",!0);f(g,N,M,"↺","\\circlearrowleft",!0);f(g,N,M,"↰","\\Lsh",!0);f(g,N,M,"⇈","\\upuparrows",!0);f(g,N,M,"↿","\\upharpoonleft",!0);f(g,N,M,"⇃","\\downharpoonleft",!0);f(g,y,M,"⊶","\\origof",!0);f(g,y,M,"⊷","\\imageof",!0);f(g,N,M,"⊸","\\multimap",!0);f(g,N,M,"↭","\\leftrightsquigarrow",!0);f(g,N,M,"⇉","\\rightrightarrows",!0);f(g,N,M,"⇄","\\rightleftarrows",!0);f(g,N,M,"↠","\\twoheadrightarrow",!0);f(g,N,M,"↣","\\rightarrowtail",!0);f(g,N,M,"↬","\\looparrowright",!0);f(g,N,M,"↷","\\curvearrowright",!0);f(g,N,M,"↻","\\circlearrowright",!0);f(g,N,M,"↱","\\Rsh",!0);f(g,N,M,"⇊","\\downdownarrows",!0);f(g,N,M,"↾","\\upharpoonright",!0);f(g,N,M,"⇂","\\downharpoonright",!0);f(g,N,M,"⇝","\\rightsquigarrow",!0);f(g,N,M,"⇝","\\leadsto");f(g,N,M,"⇛","\\Rrightarrow",!0);f(g,N,M,"↾","\\restriction");f(g,y,F,"‘","`");f(g,y,F,"$","\\$");f(Q,y,F,"$","\\$");f(Q,y,F,"$","\\textdollar");f(g,y,F,"%","\\%");f(Q,y,F,"%","\\%");f(g,y,F,"_","\\_");f(Q,y,F,"_","\\_");f(Q,y,F,"_","\\textunderscore");f(g,y,F,"∠","\\angle",!0);f(g,y,F,"∞","\\infty",!0);f(g,y,F,"′","\\prime");f(g,y,F,"△","\\triangle");f(g,y,F,"Γ","\\Gamma",!0);f(g,y,F,"Δ","\\Delta",!0);f(g,y,F,"Θ","\\Theta",!0);f(g,y,F,"Λ","\\Lambda",!0);f(g,y,F,"Ξ","\\Xi",!0);f(g,y,F,"Π","\\Pi",!0);f(g,y,F,"Σ","\\Sigma",!0);f(g,y,F,"Υ","\\Upsilon",!0);f(g,y,F,"Φ","\\Phi",!0);f(g,y,F,"Ψ","\\Psi",!0);f(g,y,F,"Ω","\\Omega",!0);f(g,y,F,"A","Α");f(g,y,F,"B","Β");f(g,y,F,"E","Ε");f(g,y,F,"Z","Ζ");f(g,y,F,"H","Η");f(g,y,F,"I","Ι");f(g,y,F,"K","Κ");f(g,y,F,"M","Μ");f(g,y,F,"N","Ν");f(g,y,F,"O","Ο");f(g,y,F,"P","Ρ");f(g,y,F,"T","Τ");f(g,y,F,"X","Χ");f(g,y,F,"¬","\\neg",!0);f(g,y,F,"¬","\\lnot");f(g,y,F,"⊤","\\top");f(g,y,F,"⊥","\\bot");f(g,y,F,"∅","\\emptyset");f(g,N,F,"∅","\\varnothing");f(g,y,ge,"α","\\alpha",!0);f(g,y,ge,"β","\\beta",!0);f(g,y,ge,"γ","\\gamma",!0);f(g,y,ge,"δ","\\delta",!0);f(g,y,ge,"ϵ","\\epsilon",!0);f(g,y,ge,"ζ","\\zeta",!0);f(g,y,ge,"η","\\eta",!0);f(g,y,ge,"θ","\\theta",!0);f(g,y,ge,"ι","\\iota",!0);f(g,y,ge,"κ","\\kappa",!0);f(g,y,ge,"λ","\\lambda",!0);f(g,y,ge,"μ","\\mu",!0);f(g,y,ge,"ν","\\nu",!0);f(g,y,ge,"ξ","\\xi",!0);f(g,y,ge,"ο","\\omicron",!0);f(g,y,ge,"π","\\pi",!0);f(g,y,ge,"ρ","\\rho",!0);f(g,y,ge,"σ","\\sigma",!0);f(g,y,ge,"τ","\\tau",!0);f(g,y,ge,"υ","\\upsilon",!0);f(g,y,ge,"ϕ","\\phi",!0);f(g,y,ge,"χ","\\chi",!0);f(g,y,ge,"ψ","\\psi",!0);f(g,y,ge,"ω","\\omega",!0);f(g,y,ge,"ε","\\varepsilon",!0);f(g,y,ge,"ϑ","\\vartheta",!0);f(g,y,ge,"ϖ","\\varpi",!0);f(g,y,ge,"ϱ","\\varrho",!0);f(g,y,ge,"ς","\\varsigma",!0);f(g,y,ge,"φ","\\varphi",!0);f(g,y,de,"∗","*",!0);f(g,y,de,"+","+");f(g,y,de,"−","-",!0);f(g,y,de,"⋅","\\cdot",!0);f(g,y,de,"∘","\\circ",!0);f(g,y,de,"÷","\\div",!0);f(g,y,de,"±","\\pm",!0);f(g,y,de,"×","\\times",!0);f(g,y,de,"∩","\\cap",!0);f(g,y,de,"∪","\\cup",!0);f(g,y,de,"∖","\\setminus",!0);f(g,y,de,"∧","\\land");f(g,y,de,"∨","\\lor");f(g,y,de,"∧","\\wedge",!0);f(g,y,de,"∨","\\vee",!0);f(g,y,F,"√","\\surd");f(g,y,an,"⟨","\\langle",!0);f(g,y,an,"∣","\\lvert");f(g,y,an,"∥","\\lVert");f(g,y,Ut,"?","?");f(g,y,Ut,"!","!");f(g,y,Ut,"⟩","\\rangle",!0);f(g,y,Ut,"∣","\\rvert");f(g,y,Ut,"∥","\\rVert");f(g,y,M,"=","=");f(g,y,M,":",":");f(g,y,M,"≈","\\approx",!0);f(g,y,M,"≅","\\cong",!0);f(g,y,M,"≥","\\ge");f(g,y,M,"≥","\\geq",!0);f(g,y,M,"←","\\gets");f(g,y,M,">","\\gt",!0);f(g,y,M,"∈","\\in",!0);f(g,y,M,"","\\@not");f(g,y,M,"⊂","\\subset",!0);f(g,y,M,"⊃","\\supset",!0);f(g,y,M,"⊆","\\subseteq",!0);f(g,y,M,"⊇","\\supseteq",!0);f(g,N,M,"⊈","\\nsubseteq",!0);f(g,N,M,"⊉","\\nsupseteq",!0);f(g,y,M,"⊨","\\models");f(g,y,M,"←","\\leftarrow",!0);f(g,y,M,"≤","\\le");f(g,y,M,"≤","\\leq",!0);f(g,y,M,"<","\\lt",!0);f(g,y,M,"→","\\rightarrow",!0);f(g,y,M,"→","\\to");f(g,N,M,"≱","\\ngeq",!0);f(g,N,M,"≰","\\nleq",!0);f(g,y,Jn," ","\\ ");f(g,y,Jn," ","\\space");f(g,y,Jn," ","\\nobreakspace");f(Q,y,Jn," ","\\ ");f(Q,y,Jn," "," ");f(Q,y,Jn," ","\\space");f(Q,y,Jn," ","\\nobreakspace");f(g,y,Jn,null,"\\nobreak");f(g,y,Jn,null,"\\allowbreak");f(g,y,Ws,",",",");f(g,y,Ws,";",";");f(g,N,de,"⊼","\\barwedge",!0);f(g,N,de,"⊻","\\veebar",!0);f(g,y,de,"⊙","\\odot",!0);f(g,y,de,"⊕","\\oplus",!0);f(g,y,de,"⊗","\\otimes",!0);f(g,y,F,"∂","\\partial",!0);f(g,y,de,"⊘","\\oslash",!0);f(g,N,de,"⊚","\\circledcirc",!0);f(g,N,de,"⊡","\\boxdot",!0);f(g,y,de,"△","\\bigtriangleup");f(g,y,de,"▽","\\bigtriangledown");f(g,y,de,"†","\\dagger");f(g,y,de,"⋄","\\diamond");f(g,y,de,"⋆","\\star");f(g,y,de,"◃","\\triangleleft");f(g,y,de,"▹","\\triangleright");f(g,y,an,"{","\\{");f(Q,y,F,"{","\\{");f(Q,y,F,"{","\\textbraceleft");f(g,y,Ut,"}","\\}");f(Q,y,F,"}","\\}");f(Q,y,F,"}","\\textbraceright");f(g,y,an,"{","\\lbrace");f(g,y,Ut,"}","\\rbrace");f(g,y,an,"[","\\lbrack",!0);f(Q,y,F,"[","\\lbrack",!0);f(g,y,Ut,"]","\\rbrack",!0);f(Q,y,F,"]","\\rbrack",!0);f(g,y,an,"(","\\lparen",!0);f(g,y,Ut,")","\\rparen",!0);f(Q,y,F,"<","\\textless",!0);f(Q,y,F,">","\\textgreater",!0);f(g,y,an,"⌊","\\lfloor",!0);f(g,y,Ut,"⌋","\\rfloor",!0);f(g,y,an,"⌈","\\lceil",!0);f(g,y,Ut,"⌉","\\rceil",!0);f(g,y,F,"\\","\\backslash");f(g,y,F,"∣","|");f(g,y,F,"∣","\\vert");f(Q,y,F,"|","\\textbar",!0);f(g,y,F,"∥","\\|");f(g,y,F,"∥","\\Vert");f(Q,y,F,"∥","\\textbardbl");f(Q,y,F,"~","\\textasciitilde");f(Q,y,F,"\\","\\textbackslash");f(Q,y,F,"^","\\textasciicircum");f(g,y,M,"↑","\\uparrow",!0);f(g,y,M,"⇑","\\Uparrow",!0);f(g,y,M,"↓","\\downarrow",!0);f(g,y,M,"⇓","\\Downarrow",!0);f(g,y,M,"↕","\\updownarrow",!0);f(g,y,M,"⇕","\\Updownarrow",!0);f(g,y,Et,"∐","\\coprod");f(g,y,Et,"⋁","\\bigvee");f(g,y,Et,"⋀","\\bigwedge");f(g,y,Et,"⨄","\\biguplus");f(g,y,Et,"⋂","\\bigcap");f(g,y,Et,"⋃","\\bigcup");f(g,y,Et,"∫","\\int");f(g,y,Et,"∫","\\intop");f(g,y,Et,"∬","\\iint");f(g,y,Et,"∭","\\iiint");f(g,y,Et,"∏","\\prod");f(g,y,Et,"∑","\\sum");f(g,y,Et,"⨂","\\bigotimes");f(g,y,Et,"⨁","\\bigoplus");f(g,y,Et,"⨀","\\bigodot");f(g,y,Et,"∮","\\oint");f(g,y,Et,"∯","\\oiint");f(g,y,Et,"∰","\\oiiint");f(g,y,Et,"⨆","\\bigsqcup");f(g,y,Et,"∫","\\smallint");f(Q,y,bi,"…","\\textellipsis");f(g,y,bi,"…","\\mathellipsis");f(Q,y,bi,"…","\\ldots",!0);f(g,y,bi,"…","\\ldots",!0);f(g,y,bi,"⋯","\\@cdots",!0);f(g,y,bi,"⋱","\\ddots",!0);f(g,y,F,"⋮","\\varvdots");f(Q,y,F,"⋮","\\varvdots");f(g,y,it,"ˊ","\\acute");f(g,y,it,"ˋ","\\grave");f(g,y,it,"¨","\\ddot");f(g,y,it,"~","\\tilde");f(g,y,it,"ˉ","\\bar");f(g,y,it,"˘","\\breve");f(g,y,it,"ˇ","\\check");f(g,y,it,"^","\\hat");f(g,y,it,"⃗","\\vec");f(g,y,it,"˙","\\dot");f(g,y,it,"˚","\\mathring");f(g,y,ge,"","\\@imath");f(g,y,ge,"","\\@jmath");f(g,y,F,"ı","ı");f(g,y,F,"ȷ","ȷ");f(Q,y,F,"ı","\\i",!0);f(Q,y,F,"ȷ","\\j",!0);f(Q,y,F,"ß","\\ss",!0);f(Q,y,F,"æ","\\ae",!0);f(Q,y,F,"œ","\\oe",!0);f(Q,y,F,"ø","\\o",!0);f(Q,y,F,"Æ","\\AE",!0);f(Q,y,F,"Œ","\\OE",!0);f(Q,y,F,"Ø","\\O",!0);f(Q,y,it,"ˊ","\\'");f(Q,y,it,"ˋ","\\`");f(Q,y,it,"ˆ","\\^");f(Q,y,it,"˜","\\~");f(Q,y,it,"ˉ","\\=");f(Q,y,it,"˘","\\u");f(Q,y,it,"˙","\\.");f(Q,y,it,"¸","\\c");f(Q,y,it,"˚","\\r");f(Q,y,it,"ˇ","\\v");f(Q,y,it,"¨",'\\"');f(Q,y,it,"˝","\\H");f(Q,y,it,"◯","\\textcircled");var e2={"--":!0,"---":!0,"``":!0,"''":!0};f(Q,y,F,"–","--",!0);f(Q,y,F,"–","\\textendash");f(Q,y,F,"—","---",!0);f(Q,y,F,"—","\\textemdash");f(Q,y,F,"‘","`",!0);f(Q,y,F,"‘","\\textquoteleft");f(Q,y,F,"’","'",!0);f(Q,y,F,"’","\\textquoteright");f(Q,y,F,"“","``",!0);f(Q,y,F,"“","\\textquotedblleft");f(Q,y,F,"”","''",!0);f(Q,y,F,"”","\\textquotedblright");f(g,y,F,"°","\\degree",!0);f(Q,y,F,"°","\\degree");f(Q,y,F,"°","\\textdegree",!0);f(g,y,F,"£","\\pounds");f(g,y,F,"£","\\mathsterling",!0);f(Q,y,F,"£","\\pounds");f(Q,y,F,"£","\\textsterling",!0);f(g,N,F,"✠","\\maltese");f(Q,N,F,"✠","\\maltese");var Ih='0123456789/@."';for(var Vo=0;Vo0)return bn(a,l,i,n,s.concat(c));if(u){var d,m;if(u==="boldsymbol"){var p=XC(a,i,n,s,r);d=p.fontName,m=[p.fontClass]}else o?(d=r2[u].fontName,m=[u]):(d=Ya(u,n.fontWeight,n.fontShape),m=[u,n.fontWeight,n.fontShape]);if(Ys(a,d,i).metrics)return bn(a,d,i,n,s.concat(m));if(e2.hasOwnProperty(a)&&d.slice(0,10)==="Typewriter"){for(var b=[],E=0;E{if(mr(e.classes)!==mr(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},JC=e=>{for(var t=0;tn&&(n=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},Yt=function(t,n,r,i){var a=new Aa(t,n,r,i);return m0(a),a},t2=(e,t,n,r)=>new Aa(e,t,n,r),ew=function(t,n,r){var i=Yt([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=se(i.height),i.maxFontSize=1,i},tw=function(t,n,r,i){var a=new f0(t,n,r,i);return m0(a),a},n2=function(t){var n=new Sa(t);return m0(n),n},nw=function(t,n){return t instanceof Sa?Yt([],[t],n):t},rw=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,s=1;s{var n=Yt(["mspace"],[],t),r=st(e,t);return n.style.marginRight=se(r),n},Ya=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},r2={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},i2={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},sw=function(t,n){var[r,i,a]=i2[t],s=new pr(r),o=new Kn([s],{width:se(i),height:se(a),style:"width:"+se(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),u=t2(["overlay"],[o],n);return u.height=a,u.style.height=se(a),u.style.width=se(i),u},z={fontMap:r2,makeSymbol:bn,mathsym:KC,makeSpan:Yt,makeSvgSpan:t2,makeLineSpan:ew,makeAnchor:tw,makeFragment:n2,wrapFragment:nw,makeVList:iw,makeOrd:QC,makeGlue:aw,staticSvg:sw,svgData:i2,tryCombineChars:JC},at={number:3,unit:"mu"},Ar={number:4,unit:"mu"},zn={number:5,unit:"mu"},ow={mord:{mop:at,mbin:Ar,mrel:zn,minner:at},mop:{mord:at,mop:at,mrel:zn,minner:at},mbin:{mord:Ar,mop:Ar,mopen:Ar,minner:Ar},mrel:{mord:zn,mop:zn,mopen:zn,minner:zn},mopen:{},mclose:{mop:at,mbin:Ar,mrel:zn,minner:at},mpunct:{mord:at,mop:at,mrel:zn,mopen:at,mclose:at,mpunct:at,minner:at},minner:{mord:at,mop:at,mbin:Ar,mrel:zn,mopen:at,mpunct:at,minner:at}},uw={mord:{mop:at},mop:{mord:at,mop:at},mbin:{},mrel:{},mopen:{},mclose:{mop:at},mpunct:{},minner:{mop:at}},a2={},vs={},Ss={};function ce(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},u=0;u{var C=E.classes[0],T=b.classes[0];C==="mbin"&&pe.contains(cw,T)?E.classes[0]="mord":T==="mbin"&&pe.contains(lw,C)&&(b.classes[0]="mord")},{node:d},m,p),_h(a,(b,E)=>{var C=Yu(E),T=Yu(b),S=C&&T?b.hasClass("mtight")?uw[C][T]:ow[C][T]:null;if(S)return z.makeGlue(S,l)},{node:d},m,p),a},_h=function e(t,n,r,i,a){i&&t.push(i);for(var s=0;sm=>{t.splice(d+1,0,m),s++})(s)}i&&t.pop()},s2=function(t){return t instanceof Sa||t instanceof f0||t instanceof Aa&&t.hasClass("enclosing")?t:null},fw=function e(t,n){var r=s2(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},Yu=function(t,n){return t?(n&&(t=fw(t,n)),hw[t.classes[0]]||null):null},da=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return Xn(n.concat(r))},Fe=function(t,n,r){if(!t)return Xn();if(vs[t.type]){var i=vs[t.type](t,n);if(r&&n.size!==r.size){i=Xn(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new te("Got group of unknown type: '"+t.type+"'")};function Ga(e,t){var n=Xn(["base"],e,t),r=Xn(["strut"]);return r.style.height=se(n.height+n.depth),n.depth&&(r.style.verticalAlign=se(-n.depth)),n.children.unshift(r),n}function Gu(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=xt(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],s=[],o=0;o0&&(a.push(Ga(s,t)),s=[]),a.push(r[o]));s.length>0&&a.push(Ga(s,t));var l;n?(l=Ga(xt(n,t,!0)),l.classes=["tag"],a.push(l)):i&&a.push(i);var c=Xn(["katex-html"],a);if(c.setAttribute("aria-hidden","true"),l){var d=l.children[0];d.style.height=se(c.height+c.depth),c.depth&&(d.style.verticalAlign=se(-c.depth))}return c}function o2(e){return new Sa(e)}class tn{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=mr(this.classes));for(var r=0;r0&&(t+=' class ="'+pe.escape(mr(this.classes))+'"'),t+=">";for(var r=0;r",t}toText(){return this.children.map(t=>t.toText()).join("")}}class kn{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return pe.escape(this.toText())}toText(){return this.text}}class mw{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",se(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var ee={MathNode:tn,TextNode:kn,SpaceNode:mw,newDocumentFragment:o2},mn=function(t,n,r){return et[n][t]&&et[n][t].replace&&t.charCodeAt(0)!==55349&&!(e2.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=et[n][t].replace),new ee.TextNode(t)},p0=function(t){return t.length===1?t[0]:new ee.MathNode("mrow",t)},g0=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathsfit")return"sans-serif-italic";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(pe.contains(["\\imath","\\jmath"],a))return null;et[i][a]&&et[i][a].replace&&(a=et[i][a].replace);var s=z.fontMap[r].fontName;return h0(a,s,i)?z.fontMap[r].variant:null};function Wo(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof kn&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof kn&&n.text===","}else return!1}var Xt=function(t,n,r){if(t.length===1){var i=Ge(t[0],n);return r&&i instanceof tn&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o=1&&(s.type==="mn"||Wo(s))){var l=u.children[0];l instanceof tn&&l.type==="mn"&&(l.children=[...s.children,...l.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var c=s.children[0];if(c instanceof kn&&c.text==="̸"&&(u.type==="mo"||u.type==="mi"||u.type==="mn")){var d=u.children[0];d instanceof kn&&d.text.length>0&&(d.text=d.text.slice(0,1)+"̸"+d.text.slice(1),a.pop())}}}a.push(u),s=u}return a},gr=function(t,n,r){return p0(Xt(t,n,r))},Ge=function(t,n){if(!t)return new ee.MathNode("mrow");if(Ss[t.type]){var r=Ss[t.type](t,n);return r}else throw new te("Got group of unknown type: '"+t.type+"'")};function Lh(e,t,n,r,i){var a=Xt(e,n),s;a.length===1&&a[0]instanceof tn&&pe.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new ee.MathNode("mrow",a);var o=new ee.MathNode("annotation",[new ee.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var u=new ee.MathNode("semantics",[s,o]),l=new ee.MathNode("math",[u]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&l.setAttribute("display","block");var c=i?"katex":"katex-mathml";return z.makeSpan([c],[l])}var u2=function(t){return new Un({style:t.displayMode?be.DISPLAY:be.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},l2=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=z.makeSpan(r,[t])}return t},pw=function(t,n,r){var i=u2(r),a;if(r.output==="mathml")return Lh(t,n,i,r.displayMode,!0);if(r.output==="html"){var s=Gu(t,i);a=z.makeSpan(["katex"],[s])}else{var o=Lh(t,n,i,r.displayMode,!1),u=Gu(t,i);a=z.makeSpan(["katex"],[o,u])}return l2(a,r)},gw=function(t,n,r){var i=u2(r),a=Gu(t,i),s=z.makeSpan(["katex"],[a]);return l2(s,r)},bw={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},yw=function(t){var n=new ee.MathNode("mo",[new ee.TextNode(bw[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},Tw={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Ew=function(t){return t.type==="ordgroup"?t.body.length:1},xw=function(t,n){function r(){var o=4e5,u=t.label.slice(1);if(pe.contains(["widehat","widecheck","widetilde","utilde"],u)){var l=t,c=Ew(l.base),d,m,p;if(c>5)u==="widehat"||u==="widecheck"?(d=420,o=2364,p=.42,m=u+"4"):(d=312,o=2340,p=.34,m="tilde4");else{var b=[1,1,2,2,3,3][c];u==="widehat"||u==="widecheck"?(o=[0,1062,2364,2364,2364][b],d=[0,239,300,360,420][b],p=[0,.24,.3,.3,.36,.42][b],m=u+b):(o=[0,600,1033,2339,2340][b],d=[0,260,286,306,312][b],p=[0,.26,.286,.3,.306,.34][b],m="tilde"+b)}var E=new pr(m),C=new Kn([E],{width:"100%",height:se(p),viewBox:"0 0 "+o+" "+d,preserveAspectRatio:"none"});return{span:z.makeSvgSpan([],[C],n),minWidth:0,height:p}}else{var T=[],S=Tw[u],[v,_,P]=S,k=P/1e3,V=v.length,U,q;if(V===1){var B=S[3];U=["hide-tail"],q=[B]}else if(V===2)U=["halfarrow-left","halfarrow-right"],q=["xMinYMin","xMaxYMin"];else if(V===3)U=["brace-left","brace-center","brace-right"],q=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+V+" children.");for(var K=0;K0&&(i.style.minWidth=se(a)),i},vw=function(t,n,r,i,a){var s,o=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(s=z.makeSpan(["stretchy",n],[],a),n==="fbox"){var u=a.color&&a.getColor();u&&(s.style.borderColor=u)}}else{var l=[];/^[bx]cancel$/.test(n)&&l.push(new $u({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&l.push(new $u({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new Kn(l,{width:"100%",height:se(o)});s=z.makeSvgSpan([],[c],a)}return s.height=o,s.style.height=se(o),s},Qn={encloseSpan:vw,mathMLnode:yw,svgSpan:xw};function we(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function b0(e){var t=Gs(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Gs(e){return e&&(e.type==="atom"||YC.hasOwnProperty(e.type))?e:null}var y0=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=we(e.base,"accent"),n=r.base,e.base=n,i=$C(Fe(e,t)),e.base=r):(r=we(e,"accent"),n=r.base);var a=Fe(n,t.havingCrampedStyle()),s=r.isShifty&&pe.isCharacterBox(n),o=0;if(s){var u=pe.getBaseElem(n),l=Fe(u,t.havingCrampedStyle());o=kh(l).skew}var c=r.label==="\\c",d=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),m;if(r.isStretchy)m=Qn.svgSpan(r,t),m=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:m,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+se(2*o)+")",marginLeft:se(2*o)}:void 0}]},t);else{var p,b;r.label==="\\vec"?(p=z.staticSvg("vec",t),b=z.svgData.vec[1]):(p=z.makeOrd({mode:r.mode,text:r.label},t,"textord"),p=kh(p),p.italic=0,b=p.width,c&&(d+=p.depth)),m=z.makeSpan(["accent-body"],[p]);var E=r.label==="\\textcircled";E&&(m.classes.push("accent-full"),d=a.height);var C=o;E||(C-=b/2),m.style.left=se(C),r.label==="\\textcircled"&&(m.style.top=".2em"),m=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-d},{type:"elem",elem:m}]},t)}var T=z.makeSpan(["mord","accent"],[m],t);return i?(i.children[0]=T,i.height=Math.max(T.height,i.height),i.classes[0]="mord",i):T},c2=(e,t)=>{var n=e.isStretchy?Qn.mathMLnode(e.label):new ee.MathNode("mo",[mn(e.label,e.mode)]),r=new ee.MathNode("mover",[Ge(e.base,t),n]);return r.setAttribute("accent","true"),r},Sw=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ce({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=As(t[0]),r=!Sw.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:y0,mathmlBuilder:c2});ce({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:y0,mathmlBuilder:c2});ce({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Fe(e.base,t),r=Qn.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=z.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return z.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=Qn.mathMLnode(e.label),r=new ee.MathNode("munder",[Ge(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Ka=e=>{var t=new ee.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ce({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=z.wrapFragment(Fe(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(r=t.havingStyle(n.sub()),s=z.wrapFragment(Fe(e.below,r,t),t),s.classes.push(a+"-arrow-pad"));var o=Qn.svgSpan(e,t),u=-t.fontMetrics().axisHeight+.5*o.height,l=-t.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(l-=i.depth);var c;if(s){var d=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;c=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u},{type:"elem",elem:s,shift:d}]},t)}else c=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u}]},t);return c.children[0].children[0].children[1].classes.push("svg-align"),z.makeSpan(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){var n=Qn.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=Ka(Ge(e.body,t));if(e.below){var a=Ka(Ge(e.below,t));r=new ee.MathNode("munderover",[n,a,i])}else r=new ee.MathNode("mover",[n,i])}else if(e.below){var s=Ka(Ge(e.below,t));r=new ee.MathNode("munder",[n,s])}else r=Ka(),r=new ee.MathNode("mover",[n,r]);return r}});var Aw=z.makeSpan;function d2(e,t){var n=xt(e.body,t,!0);return Aw([e.mclass],n,t)}function h2(e,t){var n,r=Xt(e.body,t);return e.mclass==="minner"?n=new ee.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new ee.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new ee.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}ce({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:mt(i),isCharacterBox:pe.isCharacterBox(i)}},htmlBuilder:d2,mathmlBuilder:h2});var Ks=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ce({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:Ks(t[0]),body:mt(t[1]),isCharacterBox:pe.isCharacterBox(t[1])}}});ce({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],s;r!=="\\stackrel"?s=Ks(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:mt(i)},u={type:"supsub",mode:a.mode,base:o,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:s,body:[u],isCharacterBox:pe.isCharacterBox(u)}},htmlBuilder:d2,mathmlBuilder:h2});ce({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:Ks(t[0]),body:mt(t[0])}},htmlBuilder(e,t){var n=xt(e.body,t,!0),r=z.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=Xt(e.body,t),r=new ee.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var Cw={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Ph=()=>({type:"styling",body:[],mode:"math",style:"display"}),Oh=e=>e.type==="textord"&&e.text==="@",ww=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function kw(e,t,n){var r=Cw[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},s=n.callFunction("\\Big",[a],[]),o=n.callFunction("\\\\cdright",[t[1]],[]),u={type:"ordgroup",mode:"math",body:[i,s,o]};return n.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var l={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[l],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Iw(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new te("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a-1))if("<>AV".indexOf(l)>-1)for(var d=0;d<2;d++){for(var m=!0,p=u+1;pAV=|." after @',s[u]);var b=kw(l,c,e),E={type:"styling",body:[b],mode:"math",style:"display"};r.push(E),o=Ph()}a%2===0?r.push(o):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var C=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:C,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}ce({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=z.wrapFragment(Fe(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=se(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new ee.MathNode("mrow",[Ge(e.label,t)]);return n=new ee.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new ee.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});ce({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=z.wrapFragment(Fe(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new ee.MathNode("mrow",[Ge(e.fragment,t)])}});ce({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=we(t[0],"ordgroup"),i=r.body,a="",s=0;s=1114111)throw new te("\\@char with invalid code point "+a);return u<=65535?l=String.fromCharCode(u):(u-=65536,l=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:n.mode,text:l}}});var f2=(e,t)=>{var n=xt(e.body,t.withColor(e.color),!1);return z.makeFragment(n)},m2=(e,t)=>{var n=Xt(e.body,t.withColor(e.color)),r=new ee.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};ce({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=we(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:mt(i)}},htmlBuilder:f2,mathmlBuilder:m2});ce({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=we(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:f2,mathmlBuilder:m2});ce({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&we(i,"size").value}},htmlBuilder(e,t){var n=z.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=se(st(e.size,t)))),n},mathmlBuilder(e,t){var n=new ee.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",se(st(e.size,t)))),n}});var Ku={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},p2=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new te("Expected a control sequence",e);return t},Nw=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},g2=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};ce({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(Ku[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=Ku[r.text]),we(t.parseFunction(),"internal");throw new te("Invalid token after macro prefix",r)}});ce({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new te("Expected a control sequence",r);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new te('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new te('Argument number "'+r.text+'" out of order');a++,o.push([])}else{if(r.text==="EOF")throw new te("Expected a macro definition");o[a].push(r.text)}var{tokens:u}=t.gullet.consumeArg();return s&&u.unshift(s),(n==="\\edef"||n==="\\xdef")&&(u=t.gullet.expandTokens(u),u.reverse()),t.gullet.macros.set(i,{tokens:u,numArgs:a,delimiters:o},n===Ku[n]),{type:"internal",mode:t.mode}}});ce({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=p2(t.gullet.popToken());t.gullet.consumeSpaces();var i=Nw(t);return g2(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});ce({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=p2(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return g2(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var Oi=function(t,n,r){var i=et.math[t]&&et.math[t].replace,a=h0(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},T0=function(t,n,r,i){var a=r.havingBaseStyle(n),s=z.makeSpan(i.concat(a.sizingClasses(r)),[t],r),o=a.sizeMultiplier/r.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},b2=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=se(a),t.height-=a,t.depth+=a},Mw=function(t,n,r,i,a,s){var o=z.makeSymbol(t,"Main-Regular",a,i),u=T0(o,n,i,s);return r&&b2(u,i,n),u},Rw=function(t,n,r,i){return z.makeSymbol(t,"Size"+n+"-Regular",r,i)},y2=function(t,n,r,i,a,s){var o=Rw(t,n,a,i),u=T0(z.makeSpan(["delimsizing","size"+n],[o],i),be.TEXT,i,s);return r&&b2(u,i,be.TEXT),u},Yo=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=z.makeSpan(["delimsizinginner",i],[z.makeSpan([],[z.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},Go=function(t,n,r){var i=wn["Size4-Regular"][t.charCodeAt(0)]?wn["Size4-Regular"][t.charCodeAt(0)][4]:wn["Size1-Regular"][t.charCodeAt(0)][4],a=new pr("inner",OC(t,Math.round(1e3*n))),s=new Kn([a],{width:se(i),height:se(n),style:"width:"+se(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),o=z.makeSvgSpan([],[s],r);return o.height=n,o.style.height=se(n),o.style.width=se(i),{type:"elem",elem:o}},Xu=.008,Xa={type:"kern",size:-1*Xu},Dw=["|","\\lvert","\\rvert","\\vert"],_w=["\\|","\\lVert","\\rVert","\\Vert"],T2=function(t,n,r,i,a,s){var o,u,l,c,d="",m=0;o=l=c=t,u=null;var p="Size1-Regular";t==="\\uparrow"?l=c="⏐":t==="\\Uparrow"?l=c="‖":t==="\\downarrow"?o=l="⏐":t==="\\Downarrow"?o=l="‖":t==="\\updownarrow"?(o="\\uparrow",l="⏐",c="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",l="‖",c="\\Downarrow"):pe.contains(Dw,t)?(l="∣",d="vert",m=333):pe.contains(_w,t)?(l="∥",d="doublevert",m=556):t==="["||t==="\\lbrack"?(o="⎡",l="⎢",c="⎣",p="Size4-Regular",d="lbrack",m=667):t==="]"||t==="\\rbrack"?(o="⎤",l="⎥",c="⎦",p="Size4-Regular",d="rbrack",m=667):t==="\\lfloor"||t==="⌊"?(l=o="⎢",c="⎣",p="Size4-Regular",d="lfloor",m=667):t==="\\lceil"||t==="⌈"?(o="⎡",l=c="⎢",p="Size4-Regular",d="lceil",m=667):t==="\\rfloor"||t==="⌋"?(l=o="⎥",c="⎦",p="Size4-Regular",d="rfloor",m=667):t==="\\rceil"||t==="⌉"?(o="⎤",l=c="⎥",p="Size4-Regular",d="rceil",m=667):t==="("||t==="\\lparen"?(o="⎛",l="⎜",c="⎝",p="Size4-Regular",d="lparen",m=875):t===")"||t==="\\rparen"?(o="⎞",l="⎟",c="⎠",p="Size4-Regular",d="rparen",m=875):t==="\\{"||t==="\\lbrace"?(o="⎧",u="⎨",c="⎩",l="⎪",p="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",u="⎬",c="⎭",l="⎪",p="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",c="⎩",l="⎪",p="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",c="⎭",l="⎪",p="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",c="⎭",l="⎪",p="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",c="⎩",l="⎪",p="Size4-Regular");var b=Oi(o,p,a),E=b.height+b.depth,C=Oi(l,p,a),T=C.height+C.depth,S=Oi(c,p,a),v=S.height+S.depth,_=0,P=1;if(u!==null){var k=Oi(u,p,a);_=k.height+k.depth,P=2}var V=E+v+_,U=Math.max(0,Math.ceil((n-V)/(P*T))),q=V+U*P*T,B=i.fontMetrics().axisHeight;r&&(B*=i.sizeMultiplier);var K=q/2-B,Y=[];if(d.length>0){var X=q-E-v,j=Math.round(q*1e3),W=BC(d,Math.round(X*1e3)),ne=new pr(d,W),le=(m/1e3).toFixed(3)+"em",fe=(j/1e3).toFixed(3)+"em",oe=new Kn([ne],{width:le,height:fe,viewBox:"0 0 "+m+" "+j}),I=z.makeSvgSpan([],[oe],i);I.height=j/1e3,I.style.width=le,I.style.height=fe,Y.push({type:"elem",elem:I})}else{if(Y.push(Yo(c,p,a)),Y.push(Xa),u===null){var De=q-E-v+2*Xu;Y.push(Go(l,De,i))}else{var Ae=(q-E-v-_)/2+2*Xu;Y.push(Go(l,Ae,i)),Y.push(Xa),Y.push(Yo(u,p,a)),Y.push(Xa),Y.push(Go(l,Ae,i))}Y.push(Xa),Y.push(Yo(o,p,a))}var D=i.havingBaseStyle(be.TEXT),_e=z.makeVList({positionType:"bottom",positionData:K,children:Y},D);return T0(z.makeSpan(["delimsizing","mult"],[_e],D),be.TEXT,i,s)},Ko=80,Xo=.08,Qo=function(t,n,r,i,a){var s=PC(t,i,r),o=new pr(t,s),u=new Kn([o],{width:"400em",height:se(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return z.makeSvgSpan(["hide-tail"],[u],a)},Lw=function(t,n){var r=n.havingBaseSizing(),i=S2("\\surd",t*r.sizeMultiplier,v2,r),a=r.sizeMultiplier,s=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),o,u=0,l=0,c=0,d;return i.type==="small"?(c=1e3+1e3*s+Ko,t<1?a=1:t<1.4&&(a=.7),u=(1+s+Xo)/a,l=(1+s)/a,o=Qo("sqrtMain",u,c,s,n),o.style.minWidth="0.853em",d=.833/a):i.type==="large"?(c=(1e3+Ko)*Yi[i.size],l=(Yi[i.size]+s)/a,u=(Yi[i.size]+s+Xo)/a,o=Qo("sqrtSize"+i.size,u,c,s,n),o.style.minWidth="1.02em",d=1/a):(u=t+s+Xo,l=t+s,c=Math.floor(1e3*t+s)+Ko,o=Qo("sqrtTall",u,c,s,n),o.style.minWidth="0.742em",d=1.056),o.height=l,o.style.height=se(u),{span:o,advanceWidth:d,ruleWidth:(n.fontMetrics().sqrtRuleThickness+s)*a}},E2=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Pw=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],x2=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Yi=[0,1.2,1.8,2.4,3],Ow=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),pe.contains(E2,t)||pe.contains(x2,t))return y2(t,n,!1,r,i,a);if(pe.contains(Pw,t))return T2(t,Yi[n],!1,r,i,a);throw new te("Illegal delimiter: '"+t+"'")},Bw=[{type:"small",style:be.SCRIPTSCRIPT},{type:"small",style:be.SCRIPT},{type:"small",style:be.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Fw=[{type:"small",style:be.SCRIPTSCRIPT},{type:"small",style:be.SCRIPT},{type:"small",style:be.TEXT},{type:"stack"}],v2=[{type:"small",style:be.SCRIPTSCRIPT},{type:"small",style:be.SCRIPT},{type:"small",style:be.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Hw=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},S2=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),s=a;sn)return r[s]}return r[r.length-1]},A2=function(t,n,r,i,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;pe.contains(x2,t)?o=Bw:pe.contains(E2,t)?o=v2:o=Fw;var u=S2(t,n,o,i);return u.type==="small"?Mw(t,u.style,r,i,a,s):u.type==="large"?y2(t,u.size,r,i,a,s):T2(t,n,r,i,a,s)},zw=function(t,n,r,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,u=901,l=5/i.fontMetrics().ptPerEm,c=Math.max(n-o,r+o),d=Math.max(c/500*u,2*c-l);return A2(t,d,!0,i,a,s)},$n={sqrtImage:Lw,sizedDelim:Ow,sizeToMaxHeight:Yi,customSizedDelim:A2,leftRightDelim:zw},Bh={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Uw=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Xs(e,t){var n=Gs(e);if(n&&pe.contains(Uw,n.text))return n;throw n?new te("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new te("Invalid delimiter type '"+e.type+"'",e)}ce({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=Xs(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Bh[e.funcName].size,mclass:Bh[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?z.makeSpan([e.mclass]):$n.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(mn(e.delim,e.mode));var n=new ee.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=se($n.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function Fh(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ce({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new te("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Xs(t[0],e).text,color:n}}});ce({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Xs(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=we(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Fh(e);for(var n=xt(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,s=0;s{Fh(e);var n=Xt(e.body,t);if(e.left!=="."){var r=new ee.MathNode("mo",[mn(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new ee.MathNode("mo",[mn(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return p0(n)}});ce({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Xs(t[0],e);if(!e.parser.leftrightDepth)throw new te("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=da(t,[]);else{n=$n.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?mn("|","text"):mn(e.delim,e.mode),r=new ee.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var E0=(e,t)=>{var n=z.wrapFragment(Fe(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,s=0,o=pe.isCharacterBox(e.body);if(r==="sout")a=z.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var u=st({number:.6,unit:"pt"},t),l=st({number:.35,unit:"ex"},t),c=t.havingBaseSizing();i=i/c.sizeMultiplier;var d=n.height+n.depth+u+l;n.style.paddingLeft=se(d/2+u);var m=Math.floor(1e3*d*i),p=_C(m),b=new Kn([new pr("phase",p)],{width:"400em",height:se(m/1e3),viewBox:"0 0 400000 "+m,preserveAspectRatio:"xMinYMin slice"});a=z.makeSvgSpan(["hide-tail"],[b],t),a.style.height=se(d),s=n.depth+u+l}else{/cancel/.test(r)?o||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var E=0,C=0,T=0;/box/.test(r)?(T=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),E=t.fontMetrics().fboxsep+(r==="colorbox"?0:T),C=E):r==="angl"?(T=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),E=4*T,C=Math.max(0,.25-n.depth)):(E=o?.2:0,C=E),a=Qn.encloseSpan(n,r,E,C,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=se(T)):r==="angl"&&T!==.049&&(a.style.borderTopWidth=se(T),a.style.borderRightWidth=se(T)),s=n.depth+C,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var S;if(e.backgroundColor)S=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:n,shift:0}]},t);else{var v=/cancel|phase/.test(r)?["svg-align"]:[];S=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:v}]},t)}return/cancel/.test(r)&&(S.height=n.height,S.depth=n.depth),/cancel/.test(r)&&!o?z.makeSpan(["mord","cancel-lap"],[S],t):z.makeSpan(["mord"],[S],t)},x0=(e,t)=>{var n=0,r=new ee.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ge(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};ce({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=we(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:E0,mathmlBuilder:x0});ce({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=we(t[0],"color-token").color,s=we(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:E0,mathmlBuilder:x0});ce({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});ce({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:E0,mathmlBuilder:x0});ce({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var C2={};function Bn(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},u=0;u{var t=e.parser.settings;if(!t.displayMode)throw new te("{"+e.envName+"} can be used only in display mode.")};function v0(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function Tr(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:u,singleRow:l,emptySingleRow:c,maxNumCols:d,leqno:m}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var p=e.gullet.expandMacroAsText("\\arraystretch");if(p==null)s=1;else if(s=parseFloat(p),!s||s<0)throw new te("Invalid \\arraystretch: "+p)}e.gullet.beginGroup();var b=[],E=[b],C=[],T=[],S=u!=null?[]:void 0;function v(){u&&e.gullet.macros.set("\\@eqnsw","1",!0)}function _(){S&&(e.gullet.macros.get("\\df@tag")?(S.push(e.subparse([new hn("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):S.push(!!u&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(v(),T.push(Hh(e));;){var P=e.parseExpression(!1,l?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),P={type:"ordgroup",mode:e.mode,body:P},n&&(P={type:"styling",mode:e.mode,style:n,body:[P]}),b.push(P);var k=e.fetch().text;if(k==="&"){if(d&&b.length===d){if(l||o)throw new te("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(k==="\\end"){_(),b.length===1&&P.type==="styling"&&P.body[0].body.length===0&&(E.length>1||!c)&&E.pop(),T.length0&&(v+=.25),l.push({pos:v,isDashed:wt[Vt]})}for(_(s[0]),r=0;r0&&(K+=S,Vwt))for(r=0;r=o)){var qe=void 0;(i>0||t.hskipBeforeAndAfter)&&(qe=pe.deflt(Ae.pregap,m),qe!==0&&(W=z.makeSpan(["arraycolsep"],[]),W.style.width=se(qe),j.push(W)));var $e=[];for(r=0;r0){for(var ze=z.makeLineSpan("hline",n,c),dt=z.makeLineSpan("hdashline",n,c),Oe=[{type:"elem",elem:u,shift:0}];l.length>0;){var Xe=l.pop(),Pt=Xe.pos-Y;Xe.isDashed?Oe.push({type:"elem",elem:dt,shift:Pt}):Oe.push({type:"elem",elem:ze,shift:Pt})}u=z.makeVList({positionType:"individualShift",children:Oe},n)}if(le.length===0)return z.makeSpan(["mord"],[u],n);var Ot=z.makeVList({positionType:"individualShift",children:le},n);return Ot=z.makeSpan(["tag"],[Ot],n),z.makeFragment([u,Ot])},Vw={c:"center ",l:"left ",r:"right "},Hn=function(t,n){for(var r=[],i=new ee.MathNode("mtd",[],["mtr-glue"]),a=new ee.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var b=t.cols,E="",C=!1,T=0,S=b.length;b[0].type==="separator"&&(m+="top ",T=1),b[b.length-1].type==="separator"&&(m+="bottom ",S-=1);for(var v=T;v0?"left ":"",m+=U[U.length-1].length>0?"right ":"";for(var q=1;q-1?"alignat":"align",a=t.envName==="split",s=Tr(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:v0(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o,u=0,l={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var c="",d=0;d0&&p&&(C=1),r[b]={type:"align",align:E,pregap:C,postgap:0}}return s.colSeparationType=p?"align":"alignat",s};Bn({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Gs(t[0]),r=n?[t[0]]:we(t[0],"ordgroup").body,i=r.map(function(s){var o=b0(s),u=o.text;if("lcr".indexOf(u)!==-1)return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new te("Unknown column alignment: "+u,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Tr(e.parser,a,S0(e.envName))},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new te("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=Tr(e.parser,r,S0(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Tr(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Gs(t[0]),r=n?[t[0]]:we(t[0],"ordgroup").body,i=r.map(function(s){var o=b0(s),u=o.text;if("lc".indexOf(u)!==-1)return{type:"align",align:u};throw new te("Unknown column alignment: "+u,s)});if(i.length>1)throw new te("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=Tr(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new te("{subarray} can contain only one column");return a},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Tr(e.parser,t,S0(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:k2,htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){pe.contains(["gather","gather*"],e.envName)&&Qs(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:v0(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Tr(e.parser,t,"display")},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:k2,htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Qs(e);var t={autoTag:v0(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Tr(e.parser,t,"display")},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Qs(e),Iw(e.parser)},htmlBuilder:Fn,mathmlBuilder:Hn});x("\\nonumber","\\gdef\\@eqnsw{0}");x("\\notag","\\nonumber");ce({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new te(e.funcName+" valid only within array environment")}});var zh=C2;ce({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new te("Invalid environment name",i);for(var a="",s=0;s{var n=e.font,r=t.withFont(n);return Fe(e.body,r)},N2=(e,t)=>{var n=e.font,r=t.withFont(n);return Ge(e.body,r)},Uh={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ce({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=As(t[0]),a=r;return a in Uh&&(a=Uh[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:I2,mathmlBuilder:N2});ce({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=pe.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:Ks(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});ce({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,s=n.parseExpression(!0,i),o="math"+r.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:n.mode,body:s}}},htmlBuilder:I2,mathmlBuilder:N2});var M2=(e,t)=>{var n=t;return e==="display"?n=n.id>=be.SCRIPT.id?n.text():be.DISPLAY:e==="text"&&n.size===be.DISPLAY.size?n=be.TEXT:e==="script"?n=be.SCRIPT:e==="scriptscript"&&(n=be.SCRIPTSCRIPT),n},A0=(e,t)=>{var n=M2(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var s=Fe(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,u=3.5/t.fontMetrics().ptPerEm;s.height=s.height0?b=3*m:b=7*m,E=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,b=m):(p=t.fontMetrics().num3,b=3*m),E=t.fontMetrics().denom2);var C;if(c){var S=t.fontMetrics().axisHeight;p-s.depth-(S+.5*d){var n=new ee.MathNode("mfrac",[Ge(e.numer,t),Ge(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=st(e.barSize,t);n.setAttribute("linethickness",se(r))}var i=M2(e.size,t.style);if(i.size!==t.style.size){n=new ee.MathNode("mstyle",[n]);var a=i.size===be.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new ee.MathNode("mo",[new ee.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(n),e.rightDelim!=null){var u=new ee.MathNode("mo",[new ee.TextNode(e.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),s.push(u)}return p0(s)}return n};ce({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],s,o=null,u=null,l="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",u=")";break;case"\\\\bracefrac":s=!1,o="\\{",u="\\}";break;case"\\\\brackfrac":s=!1,o="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":l="display";break;case"\\tfrac":case"\\tbinom":l="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:o,rightDelim:u,size:l,barSize:null}},htmlBuilder:A0,mathmlBuilder:C0});ce({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});ce({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var Vh=["display","text","script","scriptscript"],jh=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};ce({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=As(t[0]),s=a.type==="atom"&&a.family==="open"?jh(a.text):null,o=As(t[1]),u=o.type==="atom"&&o.family==="close"?jh(o.text):null,l=we(t[2],"size"),c,d=null;l.isBlank?c=!0:(d=l.value,c=d.number>0);var m="auto",p=t[3];if(p.type==="ordgroup"){if(p.body.length>0){var b=we(p.body[0],"textord");m=Vh[Number(b.text)]}}else p=we(p,"textord"),m=Vh[Number(p.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:c,barSize:d,leftDelim:s,rightDelim:u,size:m}},htmlBuilder:A0,mathmlBuilder:C0});ce({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:we(t[0],"size").value,token:i}}});ce({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=yC(we(t[1],"infix").size),s=t[2],o=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:A0,mathmlBuilder:C0});var R2=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?Fe(e.sup,t.havingStyle(n.sup()),t):Fe(e.sub,t.havingStyle(n.sub()),t),i=we(e.base,"horizBrace")):i=we(e,"horizBrace");var a=Fe(i.base,t.havingBaseStyle(be.DISPLAY)),s=Qn.svgSpan(i,t),o;if(i.isOver?(o=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=z.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),r){var u=z.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);i.isOver?o=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:r}]},t):o=z.makeVList({positionType:"bottom",positionData:u.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:u}]},t)}return z.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)},jw=(e,t)=>{var n=Qn.mathMLnode(e.label);return new ee.MathNode(e.isOver?"mover":"munder",[Ge(e.base,t),n])};ce({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:R2,mathmlBuilder:jw});ce({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=we(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:mt(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=xt(e.body,t,!1);return z.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=gr(e.body,t);return n instanceof tn||(n=new tn("mrow",[n])),n.setAttribute("href",e.href),n}});ce({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=we(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=we(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,u={};switch(r){case"\\htmlClass":u.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":u.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":u.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var l=a.split(","),c=0;c{var n=xt(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=z.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>gr(e.body,t)});ce({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:mt(t[0]),mathml:mt(t[1])}},htmlBuilder:(e,t)=>{var n=xt(e.html,t,!1);return z.makeFragment(n)},mathmlBuilder:(e,t)=>gr(e.mathml,t)});var Zo=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new te("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!Xp(r))throw new te("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};ce({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(n[0])for(var u=we(n[0],"raw").string,l=u.split(","),c=0;c{var n=st(e.height,t),r=0;e.totalheight.number>0&&(r=st(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=st(e.width,t));var a={height:se(n+r)};i>0&&(a.width=se(i)),r>0&&(a.verticalAlign=se(-r));var s=new jC(e.src,e.alt,a);return s.height=n,s.depth=r,s},mathmlBuilder:(e,t)=>{var n=new ee.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=st(e.height,t),i=0;if(e.totalheight.number>0&&(i=st(e.totalheight,t)-r,n.setAttribute("valign",se(-i))),n.setAttribute("height",se(r+i)),e.width.number>0){var a=st(e.width,t);n.setAttribute("width",se(a))}return n.setAttribute("src",e.src),n}});ce({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=we(t[0],"size");if(n.settings.strict){var a=r[1]==="m",s=i.value.unit==="mu";a?(s||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):s&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return z.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=st(e.dimension,t);return new ee.SpaceNode(n)}});ce({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=z.makeSpan([],[Fe(e.body,t)]),n=z.makeSpan(["inner"],[n],t)):n=z.makeSpan(["inner"],[Fe(e.body,t)]);var r=z.makeSpan(["fix"],[]),i=z.makeSpan([e.alignment],[n,r],t),a=z.makeSpan(["strut"]);return a.style.height=se(i.height+i.depth),i.depth&&(a.style.verticalAlign=se(-i.depth)),i.children.unshift(a),i=z.makeSpan(["thinbox"],[i],t),z.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new ee.MathNode("mpadded",[Ge(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});ce({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",s=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:s}}});ce({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new te("Mismatched "+e.funcName)}});var qh=(e,t)=>{switch(t.style.size){case be.DISPLAY.size:return e.display;case be.TEXT.size:return e.text;case be.SCRIPT.size:return e.script;case be.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ce({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:mt(t[0]),text:mt(t[1]),script:mt(t[2]),scriptscript:mt(t[3])}},htmlBuilder:(e,t)=>{var n=qh(e,t),r=xt(n,t,!1);return z.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=qh(e,t);return gr(n,t)}});var D2=(e,t,n,r,i,a,s)=>{e=z.makeSpan([],[e]);var o=n&&pe.isCharacterBox(n),u,l;if(t){var c=Fe(t,r.havingStyle(i.sup()),r);l={elem:c,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-c.depth)}}if(n){var d=Fe(n,r.havingStyle(i.sub()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var m;if(l&&u){var p=r.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+e.depth+s;m=z.makeVList({positionType:"bottom",positionData:p,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:se(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:se(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(u){var b=e.height-s;m=z.makeVList({positionType:"top",positionData:b,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:se(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e}]},r)}else if(l){var E=e.depth+s;m=z.makeVList({positionType:"bottom",positionData:E,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:se(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var C=[m];if(u&&a!==0&&!o){var T=z.makeSpan(["mspace"],[],r);T.style.marginRight=se(a),C.unshift(T)}return z.makeSpan(["mop","op-limits"],C,r)},_2=["\\smallint"],yi=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=we(e.base,"op"),i=!0):a=we(e,"op");var s=t.style,o=!1;s.size===be.DISPLAY.size&&a.symbol&&!pe.contains(_2,a.name)&&(o=!0);var u;if(a.symbol){var l=o?"Size2-Regular":"Size1-Regular",c="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(c=a.name.slice(1),a.name=c==="oiint"?"\\iint":"\\iiint"),u=z.makeSymbol(a.name,l,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),c.length>0){var d=u.italic,m=z.staticSvg(c+"Size"+(o?"2":"1"),t);u=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:m,shift:o?.08:0}]},t),a.name="\\"+c,u.classes.unshift("mop"),u.italic=d}}else if(a.body){var p=xt(a.body,t,!0);p.length===1&&p[0]instanceof fn?(u=p[0],u.classes[0]="mop"):u=z.makeSpan(["mop"],p,t)}else{for(var b=[],E=1;E{var n;if(e.symbol)n=new tn("mo",[mn(e.name,e.mode)]),pe.contains(_2,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new tn("mo",Xt(e.body,t));else{n=new tn("mi",[new kn(e.name.slice(1))]);var r=new tn("mo",[mn("⁡","text")]);e.parentIsSupSub?n=new tn("mrow",[n,r]):n=o2([n,r])}return n},qw={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ce({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=qw[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:yi,mathmlBuilder:Ca});ce({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:mt(r)}},htmlBuilder:yi,mathmlBuilder:Ca});var $w={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ce({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:yi,mathmlBuilder:Ca});ce({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:yi,mathmlBuilder:Ca});ce({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=$w[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:yi,mathmlBuilder:Ca});var L2=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=we(e.base,"operatorname"),i=!0):a=we(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(d=>{var m=d.text;return typeof m=="string"?{type:"textord",mode:d.mode,text:m}:d}),u=xt(o,t.withFont("mathrm"),!0),l=0;l{for(var n=Xt(e.body,t.withFont("mathrm")),r=!0,i=0;ic.toText()).join("");n=[new ee.TextNode(o)]}var u=new ee.MathNode("mi",n);u.setAttribute("mathvariant","normal");var l=new ee.MathNode("mo",[mn("⁡","text")]);return e.parentIsSupSub?new ee.MathNode("mrow",[u,l]):ee.newDocumentFragment([u,l])};ce({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:mt(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:L2,mathmlBuilder:Ww});x("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Fr({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?z.makeFragment(xt(e.body,t,!1)):z.makeSpan(["mord"],xt(e.body,t,!0),t)},mathmlBuilder(e,t){return gr(e.body,t,!0)}});ce({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=Fe(e.body,t.havingCrampedStyle()),r=z.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return z.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new ee.MathNode("mo",[new ee.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new ee.MathNode("mover",[Ge(e.body,t),n]);return r.setAttribute("accent","true"),r}});ce({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:mt(r)}},htmlBuilder:(e,t)=>{var n=xt(e.body,t.withPhantom(),!1);return z.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=Xt(e.body,t);return new ee.MathNode("mphantom",n)}});ce({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=z.makeSpan([],[Fe(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=Xt(mt(e.body),t),r=new ee.MathNode("mphantom",n),i=new ee.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});ce({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=z.makeSpan(["inner"],[Fe(e.body,t.withPhantom())]),r=z.makeSpan(["fix"],[]);return z.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=Xt(mt(e.body),t),r=new ee.MathNode("mphantom",n),i=new ee.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});ce({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=we(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Fe(e.body,t),r=st(e.dy,t);return z.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new ee.MathNode("mpadded",[Ge(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});ce({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ce({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=we(t[0],"size"),s=we(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&we(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var n=z.makeSpan(["mord","rule"],[],t),r=st(e.width,t),i=st(e.height,t),a=e.shift?st(e.shift,t):0;return n.style.borderRightWidth=se(r),n.style.borderTopWidth=se(i),n.style.bottom=se(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=st(e.width,t),r=st(e.height,t),i=e.shift?st(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new ee.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",se(n)),s.setAttribute("height",se(r));var o=new ee.MathNode("mpadded",[s]);return i>=0?o.setAttribute("height",se(i)):(o.setAttribute("height",se(i)),o.setAttribute("depth",se(-i))),o.setAttribute("voffset",se(i)),o}});function P2(e,t,n){for(var r=xt(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return P2(e.body,n,t)};ce({type:"sizing",names:$h,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:$h.indexOf(r)+1,body:a}},htmlBuilder:Yw,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=Xt(e.body,n),i=new ee.MathNode("mstyle",r);return i.setAttribute("mathsize",se(n.sizeMultiplier)),i}});ce({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,s=n[0]&&we(n[0],"ordgroup");if(s)for(var o="",u=0;u{var n=z.makeSpan([],[Fe(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new ee.MathNode("mpadded",[Ge(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});ce({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Fe(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=z.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+s&&(s=(s+d-n.height-n.depth)/2);var m=u.height-n.height-s-l;n.style.paddingLeft=se(c);var p=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+m)},{type:"elem",elem:u},{type:"kern",size:l}]},t);if(e.index){var b=t.havingStyle(be.SCRIPTSCRIPT),E=Fe(e.index,b,t),C=.6*(p.height-p.depth),T=z.makeVList({positionType:"shift",positionData:-C,children:[{type:"elem",elem:E}]},t),S=z.makeSpan(["root"],[T]);return z.makeSpan(["mord","sqrt"],[S,p],t)}else return z.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new ee.MathNode("mroot",[Ge(n,t),Ge(r,t)]):new ee.MathNode("msqrt",[Ge(n,t)])}});var Wh={display:be.DISPLAY,text:be.TEXT,script:be.SCRIPT,scriptscript:be.SCRIPTSCRIPT};ce({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),s=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var n=Wh[e.style],r=t.havingStyle(n).withFont("");return P2(e.body,r,t)},mathmlBuilder(e,t){var n=Wh[e.style],r=t.havingStyle(n),i=Xt(e.body,r),a=new ee.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var Gw=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===be.DISPLAY.size||r.alwaysHandleSupSub);return i?yi:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===be.DISPLAY.size||r.limits);return a?L2:null}else{if(r.type==="accent")return pe.isCharacterBox(r.base)?y0:null;if(r.type==="horizBrace"){var s=!t.sub;return s===r.isOver?R2:null}else return null}else return null};Fr({type:"supsub",htmlBuilder(e,t){var n=Gw(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,s=Fe(r,t),o,u,l=t.fontMetrics(),c=0,d=0,m=r&&pe.isCharacterBox(r);if(i){var p=t.havingStyle(t.style.sup());o=Fe(i,p,t),m||(c=s.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var b=t.havingStyle(t.style.sub());u=Fe(a,b,t),m||(d=s.depth+b.fontMetrics().subDrop*b.sizeMultiplier/t.sizeMultiplier)}var E;t.style===be.DISPLAY?E=l.sup1:t.style.cramped?E=l.sup3:E=l.sup2;var C=t.sizeMultiplier,T=se(.5/l.ptPerEm/C),S=null;if(u){var v=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof fn||v)&&(S=se(-s.italic))}var _;if(o&&u){c=Math.max(c,E,o.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var P=l.defaultRuleThickness,k=4*P;if(c-o.depth-(u.height-d)0&&(c+=V,d-=V)}var U=[{type:"elem",elem:u,shift:d,marginRight:T,marginLeft:S},{type:"elem",elem:o,shift:-c,marginRight:T}];_=z.makeVList({positionType:"individualShift",children:U},t)}else if(u){d=Math.max(d,l.sub1,u.height-.8*l.xHeight);var q=[{type:"elem",elem:u,marginLeft:S,marginRight:T}];_=z.makeVList({positionType:"shift",positionData:d,children:q},t)}else if(o)c=Math.max(c,E,o.depth+.25*l.xHeight),_=z.makeVList({positionType:"shift",positionData:-c,children:[{type:"elem",elem:o,marginRight:T}]},t);else throw new Error("supsub must have either sup or sub.");var B=Yu(s,"right")||"mord";return z.makeSpan([B],[s,z.makeSpan(["msupsub"],[_])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[Ge(e.base,t)];e.sub&&a.push(Ge(e.sub,t)),e.sup&&a.push(Ge(e.sup,t));var s;if(n)s=r?"mover":"munder";else if(e.sub)if(e.sup){var l=e.base;l&&l.type==="op"&&l.limits&&t.style===be.DISPLAY||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(t.style===be.DISPLAY||l.limits)?s="munderover":s="msubsup"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(t.style===be.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||t.style===be.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===be.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===be.DISPLAY)?s="mover":s="msup"}return new ee.MathNode(s,a)}});Fr({type:"atom",htmlBuilder(e,t){return z.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new ee.MathNode("mo",[mn(e.text,e.mode)]);if(e.family==="bin"){var r=g0(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var O2={mi:"italic",mn:"normal",mtext:"normal"};Fr({type:"mathord",htmlBuilder(e,t){return z.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new ee.MathNode("mi",[mn(e.text,e.mode,t)]),r=g0(e,t)||"italic";return r!==O2[n.type]&&n.setAttribute("mathvariant",r),n}});Fr({type:"textord",htmlBuilder(e,t){return z.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=mn(e.text,e.mode,t),r=g0(e,t)||"normal",i;return e.mode==="text"?i=new ee.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new ee.MathNode("mn",[n]):e.text==="\\prime"?i=new ee.MathNode("mo",[n]):i=new ee.MathNode("mi",[n]),r!==O2[i.type]&&i.setAttribute("mathvariant",r),i}});var Jo={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},eu={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Fr({type:"spacing",htmlBuilder(e,t){if(eu.hasOwnProperty(e.text)){var n=eu[e.text].className||"";if(e.mode==="text"){var r=z.makeOrd(e,t,"textord");return r.classes.push(n),r}else return z.makeSpan(["mspace",n],[z.mathsym(e.text,e.mode,t)],t)}else{if(Jo.hasOwnProperty(e.text))return z.makeSpan(["mspace",Jo[e.text]],[],t);throw new te('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(eu.hasOwnProperty(e.text))n=new ee.MathNode("mtext",[new ee.TextNode(" ")]);else{if(Jo.hasOwnProperty(e.text))return new ee.MathNode("mspace");throw new te('Unknown type of space "'+e.text+'"')}return n}});var Yh=()=>{var e=new ee.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Fr({type:"tag",mathmlBuilder(e,t){var n=new ee.MathNode("mtable",[new ee.MathNode("mtr",[Yh(),new ee.MathNode("mtd",[gr(e.body,t)]),Yh(),new ee.MathNode("mtd",[gr(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var Gh={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Kh={"\\textbf":"textbf","\\textmd":"textmd"},Kw={"\\textit":"textit","\\textup":"textup"},Xh=(e,t)=>{var n=e.font;if(n){if(Gh[n])return t.withTextFontFamily(Gh[n]);if(Kh[n])return t.withTextFontWeight(Kh[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Kw[n])};ce({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:mt(i),font:r}},htmlBuilder(e,t){var n=Xh(e,t),r=xt(e.body,n,!0);return z.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=Xh(e,t);return gr(e.body,n)}});ce({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Fe(e.body,t),r=z.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=z.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return z.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new ee.MathNode("mo",[new ee.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new ee.MathNode("munder",[Ge(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});ce({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Fe(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return z.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new ee.MathNode("mpadded",[Ge(e.body,t)],["vcenter"])}});ce({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new te("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=Qh(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),cr=a2,B2=`[ \r + ]`,Xw="\\\\[a-zA-Z@]+",Qw="\\\\[^\uD800-\uDFFF]",Zw="("+Xw+")"+B2+"*",Jw=`\\\\( |[ \r ]+ -?)[ \r ]*`,Qu="[̀-ͯ]",ek=new RegExp(Qu+"+$"),tk="("+O2+"+)|"+(Jw+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Qu+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Qu+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Zw)+("|"+Qw+")");class Qh{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(tk,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new hn("EOF",new en(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new te("Unexpected character: '"+t[n]+"'",new hn(t[n],new en(this,n,n+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(` -`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new hn(i,new en(this,n,this.tokenRegex.lastIndex))}}class nk{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new te("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var rk=C2;x("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});x("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});x("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});x("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});x("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});x("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");x("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Zh={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};x("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new te("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=Zh[t.text],r==null||r>=n)throw new te("Invalid base-"+n+" digit "+t.text);for(var i;(i=Zh[e.future().text])!=null&&i{var i=e.consumeArg().tokens;if(i.length!==1)throw new te("\\newcommand's first argument must be a macro name");var a=i[0].text,s=e.isDefined(a);if(s&&!t)throw new te("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!s&&!n)throw new te("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var o=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var u="",l=e.expandNextToken();l.text!=="]"&&l.text!=="EOF";)u+=l.text,l=e.expandNextToken();if(!u.match(/^\s*[0-9]+\s*$/))throw new te("Invalid number of arguments: "+u);o=parseInt(u),i=e.consumeArg().tokens}return s&&r||e.macros.set(a,{tokens:i,numArgs:o}),""};x("\\newcommand",e=>w0(e,!1,!0,!1));x("\\renewcommand",e=>w0(e,!0,!1,!1));x("\\providecommand",e=>w0(e,!0,!0,!0));x("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});x("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});x("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),cr[n],et.math[n],et.text[n]),""});x("\\bgroup","{");x("\\egroup","}");x("~","\\nobreakspace");x("\\lq","`");x("\\rq","'");x("\\aa","\\r a");x("\\AA","\\r A");x("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");x("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");x("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");x("ℬ","\\mathscr{B}");x("ℰ","\\mathscr{E}");x("ℱ","\\mathscr{F}");x("ℋ","\\mathscr{H}");x("ℐ","\\mathscr{I}");x("ℒ","\\mathscr{L}");x("ℳ","\\mathscr{M}");x("ℛ","\\mathscr{R}");x("ℭ","\\mathfrak{C}");x("ℌ","\\mathfrak{H}");x("ℨ","\\mathfrak{Z}");x("\\Bbbk","\\Bbb{k}");x("·","\\cdotp");x("\\llap","\\mathllap{\\textrm{#1}}");x("\\rlap","\\mathrlap{\\textrm{#1}}");x("\\clap","\\mathclap{\\textrm{#1}}");x("\\mathstrut","\\vphantom{(}");x("\\underbar","\\underline{\\text{#1}}");x("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');x("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");x("\\ne","\\neq");x("≠","\\neq");x("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");x("∉","\\notin");x("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");x("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");x("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");x("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");x("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");x("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");x("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");x("⟂","\\perp");x("‼","\\mathclose{!\\mkern-0.8mu!}");x("∌","\\notni");x("⌜","\\ulcorner");x("⌝","\\urcorner");x("⌞","\\llcorner");x("⌟","\\lrcorner");x("©","\\copyright");x("®","\\textregistered");x("️","\\textregistered");x("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');x("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');x("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');x("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');x("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");x("⋮","\\vdots");x("\\varGamma","\\mathit{\\Gamma}");x("\\varDelta","\\mathit{\\Delta}");x("\\varTheta","\\mathit{\\Theta}");x("\\varLambda","\\mathit{\\Lambda}");x("\\varXi","\\mathit{\\Xi}");x("\\varPi","\\mathit{\\Pi}");x("\\varSigma","\\mathit{\\Sigma}");x("\\varUpsilon","\\mathit{\\Upsilon}");x("\\varPhi","\\mathit{\\Phi}");x("\\varPsi","\\mathit{\\Psi}");x("\\varOmega","\\mathit{\\Omega}");x("\\substack","\\begin{subarray}{c}#1\\end{subarray}");x("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");x("\\boxed","\\fbox{$\\displaystyle{#1}$}");x("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");x("\\implies","\\DOTSB\\;\\Longrightarrow\\;");x("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");x("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");x("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Jh={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};x("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in Jh?t=Jh[n]:(n.slice(0,4)==="\\not"||n in et.math&&pe.contains(["bin","rel"],et.math[n].group))&&(t="\\dotsb"),t});var k0={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};x("\\dotso",function(e){var t=e.future().text;return t in k0?"\\ldots\\,":"\\ldots"});x("\\dotsc",function(e){var t=e.future().text;return t in k0&&t!==","?"\\ldots\\,":"\\ldots"});x("\\cdots",function(e){var t=e.future().text;return t in k0?"\\@cdots\\,":"\\@cdots"});x("\\dotsb","\\cdots");x("\\dotsm","\\cdots");x("\\dotsi","\\!\\cdots");x("\\dotsx","\\ldots\\,");x("\\DOTSI","\\relax");x("\\DOTSB","\\relax");x("\\DOTSX","\\relax");x("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");x("\\,","\\tmspace+{3mu}{.1667em}");x("\\thinspace","\\,");x("\\>","\\mskip{4mu}");x("\\:","\\tmspace+{4mu}{.2222em}");x("\\medspace","\\:");x("\\;","\\tmspace+{5mu}{.2777em}");x("\\thickspace","\\;");x("\\!","\\tmspace-{3mu}{.1667em}");x("\\negthinspace","\\!");x("\\negmedspace","\\tmspace-{4mu}{.2222em}");x("\\negthickspace","\\tmspace-{5mu}{.277em}");x("\\enspace","\\kern.5em ");x("\\enskip","\\hskip.5em\\relax");x("\\quad","\\hskip1em\\relax");x("\\qquad","\\hskip2em\\relax");x("\\tag","\\@ifstar\\tag@literal\\tag@paren");x("\\tag@paren","\\tag@literal{({#1})}");x("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new te("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});x("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");x("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");x("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");x("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");x("\\newline","\\\\\\relax");x("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var B2=se(wn["Main-Regular"][84][1]-.7*wn["Main-Regular"][65][1]);x("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+B2+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");x("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+B2+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");x("\\hspace","\\@ifstar\\@hspacer\\@hspace");x("\\@hspace","\\hskip #1\\relax");x("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");x("\\ordinarycolon",":");x("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");x("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');x("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');x("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');x("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');x("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');x("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');x("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');x("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');x("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');x("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');x("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');x("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');x("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');x("∷","\\dblcolon");x("∹","\\eqcolon");x("≔","\\coloneqq");x("≕","\\eqqcolon");x("⩴","\\Coloneqq");x("\\ratio","\\vcentcolon");x("\\coloncolon","\\dblcolon");x("\\colonequals","\\coloneqq");x("\\coloncolonequals","\\Coloneqq");x("\\equalscolon","\\eqqcolon");x("\\equalscoloncolon","\\Eqqcolon");x("\\colonminus","\\coloneq");x("\\coloncolonminus","\\Coloneq");x("\\minuscolon","\\eqcolon");x("\\minuscoloncolon","\\Eqcolon");x("\\coloncolonapprox","\\Colonapprox");x("\\coloncolonsim","\\Colonsim");x("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");x("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");x("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");x("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");x("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");x("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");x("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");x("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");x("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");x("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");x("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");x("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");x("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");x("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");x("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");x("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");x("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");x("\\nleqq","\\html@mathml{\\@nleqq}{≰}");x("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");x("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");x("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");x("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");x("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");x("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");x("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");x("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");x("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");x("\\imath","\\html@mathml{\\@imath}{ı}");x("\\jmath","\\html@mathml{\\@jmath}{ȷ}");x("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");x("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");x("⟦","\\llbracket");x("⟧","\\rrbracket");x("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");x("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");x("⦃","\\lBrace");x("⦄","\\rBrace");x("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");x("⦵","\\minuso");x("\\darr","\\downarrow");x("\\dArr","\\Downarrow");x("\\Darr","\\Downarrow");x("\\lang","\\langle");x("\\rang","\\rangle");x("\\uarr","\\uparrow");x("\\uArr","\\Uparrow");x("\\Uarr","\\Uparrow");x("\\N","\\mathbb{N}");x("\\R","\\mathbb{R}");x("\\Z","\\mathbb{Z}");x("\\alef","\\aleph");x("\\alefsym","\\aleph");x("\\Alpha","\\mathrm{A}");x("\\Beta","\\mathrm{B}");x("\\bull","\\bullet");x("\\Chi","\\mathrm{X}");x("\\clubs","\\clubsuit");x("\\cnums","\\mathbb{C}");x("\\Complex","\\mathbb{C}");x("\\Dagger","\\ddagger");x("\\diamonds","\\diamondsuit");x("\\empty","\\emptyset");x("\\Epsilon","\\mathrm{E}");x("\\Eta","\\mathrm{H}");x("\\exist","\\exists");x("\\harr","\\leftrightarrow");x("\\hArr","\\Leftrightarrow");x("\\Harr","\\Leftrightarrow");x("\\hearts","\\heartsuit");x("\\image","\\Im");x("\\infin","\\infty");x("\\Iota","\\mathrm{I}");x("\\isin","\\in");x("\\Kappa","\\mathrm{K}");x("\\larr","\\leftarrow");x("\\lArr","\\Leftarrow");x("\\Larr","\\Leftarrow");x("\\lrarr","\\leftrightarrow");x("\\lrArr","\\Leftrightarrow");x("\\Lrarr","\\Leftrightarrow");x("\\Mu","\\mathrm{M}");x("\\natnums","\\mathbb{N}");x("\\Nu","\\mathrm{N}");x("\\Omicron","\\mathrm{O}");x("\\plusmn","\\pm");x("\\rarr","\\rightarrow");x("\\rArr","\\Rightarrow");x("\\Rarr","\\Rightarrow");x("\\real","\\Re");x("\\reals","\\mathbb{R}");x("\\Reals","\\mathbb{R}");x("\\Rho","\\mathrm{P}");x("\\sdot","\\cdot");x("\\sect","\\S");x("\\spades","\\spadesuit");x("\\sub","\\subset");x("\\sube","\\subseteq");x("\\supe","\\supseteq");x("\\Tau","\\mathrm{T}");x("\\thetasym","\\vartheta");x("\\weierp","\\wp");x("\\Zeta","\\mathrm{Z}");x("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");x("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");x("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");x("\\bra","\\mathinner{\\langle{#1}|}");x("\\ket","\\mathinner{|{#1}\\rangle}");x("\\braket","\\mathinner{\\langle{#1}\\rangle}");x("\\Bra","\\left\\langle#1\\right|");x("\\Ket","\\left|#1\\right\\rangle");var F2=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var u=d=>m=>{e&&(m.macros.set("|",s),i.length&&m.macros.set("\\|",o));var p=d;if(!d&&i.length){var b=m.future();b.text==="|"&&(m.popToken(),p=!0)}return{tokens:p?i:r,numArgs:0}};t.macros.set("|",u(!1)),i.length&&t.macros.set("\\|",u(!0));var l=t.consumeArg().tokens,c=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}};x("\\bra@ket",F2(!1));x("\\bra@set",F2(!0));x("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");x("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");x("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");x("\\angln","{\\angl n}");x("\\blue","\\textcolor{##6495ed}{#1}");x("\\orange","\\textcolor{##ffa500}{#1}");x("\\pink","\\textcolor{##ff00af}{#1}");x("\\red","\\textcolor{##df0030}{#1}");x("\\green","\\textcolor{##28ae7b}{#1}");x("\\gray","\\textcolor{gray}{#1}");x("\\purple","\\textcolor{##9d38bd}{#1}");x("\\blueA","\\textcolor{##ccfaff}{#1}");x("\\blueB","\\textcolor{##80f6ff}{#1}");x("\\blueC","\\textcolor{##63d9ea}{#1}");x("\\blueD","\\textcolor{##11accd}{#1}");x("\\blueE","\\textcolor{##0c7f99}{#1}");x("\\tealA","\\textcolor{##94fff5}{#1}");x("\\tealB","\\textcolor{##26edd5}{#1}");x("\\tealC","\\textcolor{##01d1c1}{#1}");x("\\tealD","\\textcolor{##01a995}{#1}");x("\\tealE","\\textcolor{##208170}{#1}");x("\\greenA","\\textcolor{##b6ffb0}{#1}");x("\\greenB","\\textcolor{##8af281}{#1}");x("\\greenC","\\textcolor{##74cf70}{#1}");x("\\greenD","\\textcolor{##1fab54}{#1}");x("\\greenE","\\textcolor{##0d923f}{#1}");x("\\goldA","\\textcolor{##ffd0a9}{#1}");x("\\goldB","\\textcolor{##ffbb71}{#1}");x("\\goldC","\\textcolor{##ff9c39}{#1}");x("\\goldD","\\textcolor{##e07d10}{#1}");x("\\goldE","\\textcolor{##a75a05}{#1}");x("\\redA","\\textcolor{##fca9a9}{#1}");x("\\redB","\\textcolor{##ff8482}{#1}");x("\\redC","\\textcolor{##f9685d}{#1}");x("\\redD","\\textcolor{##e84d39}{#1}");x("\\redE","\\textcolor{##bc2612}{#1}");x("\\maroonA","\\textcolor{##ffbde0}{#1}");x("\\maroonB","\\textcolor{##ff92c6}{#1}");x("\\maroonC","\\textcolor{##ed5fa6}{#1}");x("\\maroonD","\\textcolor{##ca337c}{#1}");x("\\maroonE","\\textcolor{##9e034e}{#1}");x("\\purpleA","\\textcolor{##ddd7ff}{#1}");x("\\purpleB","\\textcolor{##c6b9fc}{#1}");x("\\purpleC","\\textcolor{##aa87ff}{#1}");x("\\purpleD","\\textcolor{##7854ab}{#1}");x("\\purpleE","\\textcolor{##543b78}{#1}");x("\\mintA","\\textcolor{##f5f9e8}{#1}");x("\\mintB","\\textcolor{##edf2df}{#1}");x("\\mintC","\\textcolor{##e0e5cc}{#1}");x("\\grayA","\\textcolor{##f6f7f7}{#1}");x("\\grayB","\\textcolor{##f0f1f2}{#1}");x("\\grayC","\\textcolor{##e3e5e6}{#1}");x("\\grayD","\\textcolor{##d6d8da}{#1}");x("\\grayE","\\textcolor{##babec2}{#1}");x("\\grayF","\\textcolor{##888d93}{#1}");x("\\grayG","\\textcolor{##626569}{#1}");x("\\grayH","\\textcolor{##3b3e40}{#1}");x("\\grayI","\\textcolor{##21242c}{#1}");x("\\kaBlue","\\textcolor{##314453}{#1}");x("\\kaGreen","\\textcolor{##71B307}{#1}");var H2={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class ik{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new nk(rk,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new Qh(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new hn("EOF",r.loc)),this.pushTokens(i),n.range(r,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),n.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new te("Extra }",a)}else if(a.text==="EOF")throw new te("Unexpected end of input in a macro argument, expected '"+(t&&r?t[o]:"}")+"'",a);if(t&&r)if((s===0||s===1&&t[o]==="{")&&a.text===t[o]){if(++o,o===t.length){n.splice(-o,o);break}}else o=0}while(s!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:a}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new te("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;ithis.settings.maxExpand)throw new te("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),r=n.text,i=n.noexpand?null:this._getExpansion(r);if(i==null||t&&i.unexpandable){if(t&&i==null&&r[0]==="\\"&&!this.isDefined(r))throw new te("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var u=a[o];if(u.text==="#"){if(o===0)throw new te("Incomplete placeholder at end of macro body",u);if(u=a[--o],u.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(u.text))a.splice(o,2,...s[+u.text-1]);else throw new te("Not a valid argument number",u)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new hn(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var s=i.replace(/##/g,"");s.indexOf("#"+(a+1))!==-1;)++a;for(var o=new Qh(i,this.settings),u=[],l=o.lex();l.text!=="EOF";)u.push(l),l=o.lex();u.reverse();var c={tokens:u,numArgs:a};return c}return i}isDefined(t){return this.macros.has(t)||cr.hasOwnProperty(t)||et.math.hasOwnProperty(t)||et.text.hasOwnProperty(t)||H2.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:cr.hasOwnProperty(t)&&!cr[t].primitive}}var e1=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Qa=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),tu={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},t1={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let z2=class U2{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new ik(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new te("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new hn("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(U2.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||t&&cr[i.text]&&cr[i.text].infix)break;var a=this.parseAtom(n);if(a){if(a.type==="internal")continue}else break;r.push(a)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var o=et[this.mode][n].group,u=en.range(t),l;if(WC.hasOwnProperty(o)){var c=o;l={type:"atom",mode:this.mode,family:c,loc:u,text:n}}else l={type:o,mode:this.mode,loc:u,text:n};s=l}else if(n.charCodeAt(0)>=128)this.settings.strict&&(Gp(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:en.range(t),text:n};else return null;if(this.consume(),a)for(var d=0;dl&&(l=c):c&&(l!==void 0&&l>-1&&u.push(` -`.repeat(l)||" "),l=-1,u.push(c))}return u.join("")}function X2(e,t,n){return e.type==="element"?Dk(e,t,n):e.type==="text"?n.whitespace==="normal"?Q2(e,n):_k(e):[]}function Dk(e,t,n){const r=Z2(e,n),i=e.children||[];let a=-1,s=[];if(Mk(e))return s;let o,u;for(Ju(e)||d1(e)&&o1(t,e,d1)?u=` -`:Nk(e)?(o=2,u=2):K2(e)&&(o=1,u=1);++a-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const u=h1(t,n[s-1]);o=u===-1?t.length+1:u+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length1?n[a.line-2]:0)+a.column-1;if(s4&&n.slice(0,4)==="data"&&Xk.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(p1,eI);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!p1.test(a)){let s=a.replace(Qk,Jk);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=D0}return new i(r,t)}function Jk(e){return"-"+e.toLowerCase()}function eI(e){return e.charAt(1).toUpperCase()}const tI=t4([i4,r4,o4,u4,Gk],"html"),l4=t4([i4,r4,o4,u4,Kk],"svg"),nI={},rI={}.hasOwnProperty,c4=wp("type",{handlers:{root:aI,element:cI,text:uI,comment:lI,doctype:oI}});function iI(e,t){const r=(t||nI).space;return c4(e,r==="svg"?l4:tI)}function aI(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=_0(e.children,n,t),Ei(e,n),n}function sI(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=_0(e.children,n,t),Ei(e,n),n}function oI(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Ei(e,t),t}function uI(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Ei(e,t),t}function lI(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Ei(e,t),t}function cI(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=l4);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&rI.call(e.properties,a)){const u=dI(r,a,e.properties[a]);u&&i.push(u)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:In[s],childNodes:[],parentNode:null};return o.childNodes=_0(e.children,o,r),Ei(e,o),e.tagName==="template"&&e.content&&(o.content=sI(e.content,r)),o}function dI(e,t,n){const r=Zk(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Hm(n):Ym(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=r.attribute.slice(0,a)),i.namespace=In[r.space]}return i}function _0(e,t,n){let r=-1;const i=[];if(e)for(;++r=55296&&e<=57343}function mI(e){return e>=56320&&e<=57343}function pI(e,t){return(e-55296)*1024+9216+t}function h4(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function f4(e){return e>=64976&&e<=65007||fI.has(e)}var $;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})($||($={}));const gI=65536;class bI{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=gI,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:a}=this,s=i+n,o=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(mI(n))return this.pos++,this._addGap(),pI(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,A.EOF;return this._err($.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;const r=this.html.charCodeAt(n);return r===A.CARRIAGE_RETURN?A.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;let t=this.html.charCodeAt(this.pos);return t===A.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,A.LINE_FEED):t===A.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,d4(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===A.LINE_FEED||t===A.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){h4(t)?this._err($.controlCharacterInInputStream):f4(t)&&this._err($.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const yI=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),TI=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function EI(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=TI.get(e))!==null&&t!==void 0?t:e}var Ct;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ct||(Ct={}));const xI=32;var dr;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(dr||(dr={}));function nl(e){return e>=Ct.ZERO&&e<=Ct.NINE}function vI(e){return e>=Ct.UPPER_A&&e<=Ct.UPPER_F||e>=Ct.LOWER_A&&e<=Ct.LOWER_F}function SI(e){return e>=Ct.UPPER_A&&e<=Ct.UPPER_Z||e>=Ct.LOWER_A&&e<=Ct.LOWER_Z||nl(e)}function AI(e){return e===Ct.EQUALS||SI(e)}var St;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(St||(St={}));var Vn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Vn||(Vn={}));class CI{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=St.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Vn.Strict}startEntity(t){this.decodeMode=t,this.state=St.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case St.EntityStart:return t.charCodeAt(n)===Ct.NUM?(this.state=St.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=St.NamedEntity,this.stateNamedEntity(t,n));case St.NumericStart:return this.stateNumericStart(t,n);case St.NumericDecimal:return this.stateNumericDecimal(t,n);case St.NumericHex:return this.stateNumericHex(t,n);case St.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|xI)===Ct.LOWER_X?(this.state=St.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=St.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+Number.parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,a!==0){if(s===Ct.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Vn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&dr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~dr.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case St.NamedEntity:return this.result!==0&&(this.decodeMode!==Vn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case St.NumericDecimal:return this.emitNumericEntity(0,2);case St.NumericHex:return this.emitNumericEntity(0,3);case St.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case St.EntityStart:return 0}}}function wI(e,t,n,r){const i=(t&dr.BRANCH_LENGTH)>>7,a=t&dr.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const u=r-a;return u<0||u>=i?-1:e[n+u]-1}let s=n,o=s+i-1;for(;s<=o;){const u=s+o>>>1,l=e[u];if(lr)o=u-1;else return e[u+i]}return-1}var Z;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Z||(Z={}));var _r;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(_r||(_r={}));var ln;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ln||(ln={}));var H;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(H||(H={}));var h;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(h||(h={}));const kI=new Map([[H.A,h.A],[H.ADDRESS,h.ADDRESS],[H.ANNOTATION_XML,h.ANNOTATION_XML],[H.APPLET,h.APPLET],[H.AREA,h.AREA],[H.ARTICLE,h.ARTICLE],[H.ASIDE,h.ASIDE],[H.B,h.B],[H.BASE,h.BASE],[H.BASEFONT,h.BASEFONT],[H.BGSOUND,h.BGSOUND],[H.BIG,h.BIG],[H.BLOCKQUOTE,h.BLOCKQUOTE],[H.BODY,h.BODY],[H.BR,h.BR],[H.BUTTON,h.BUTTON],[H.CAPTION,h.CAPTION],[H.CENTER,h.CENTER],[H.CODE,h.CODE],[H.COL,h.COL],[H.COLGROUP,h.COLGROUP],[H.DD,h.DD],[H.DESC,h.DESC],[H.DETAILS,h.DETAILS],[H.DIALOG,h.DIALOG],[H.DIR,h.DIR],[H.DIV,h.DIV],[H.DL,h.DL],[H.DT,h.DT],[H.EM,h.EM],[H.EMBED,h.EMBED],[H.FIELDSET,h.FIELDSET],[H.FIGCAPTION,h.FIGCAPTION],[H.FIGURE,h.FIGURE],[H.FONT,h.FONT],[H.FOOTER,h.FOOTER],[H.FOREIGN_OBJECT,h.FOREIGN_OBJECT],[H.FORM,h.FORM],[H.FRAME,h.FRAME],[H.FRAMESET,h.FRAMESET],[H.H1,h.H1],[H.H2,h.H2],[H.H3,h.H3],[H.H4,h.H4],[H.H5,h.H5],[H.H6,h.H6],[H.HEAD,h.HEAD],[H.HEADER,h.HEADER],[H.HGROUP,h.HGROUP],[H.HR,h.HR],[H.HTML,h.HTML],[H.I,h.I],[H.IMG,h.IMG],[H.IMAGE,h.IMAGE],[H.INPUT,h.INPUT],[H.IFRAME,h.IFRAME],[H.KEYGEN,h.KEYGEN],[H.LABEL,h.LABEL],[H.LI,h.LI],[H.LINK,h.LINK],[H.LISTING,h.LISTING],[H.MAIN,h.MAIN],[H.MALIGNMARK,h.MALIGNMARK],[H.MARQUEE,h.MARQUEE],[H.MATH,h.MATH],[H.MENU,h.MENU],[H.META,h.META],[H.MGLYPH,h.MGLYPH],[H.MI,h.MI],[H.MO,h.MO],[H.MN,h.MN],[H.MS,h.MS],[H.MTEXT,h.MTEXT],[H.NAV,h.NAV],[H.NOBR,h.NOBR],[H.NOFRAMES,h.NOFRAMES],[H.NOEMBED,h.NOEMBED],[H.NOSCRIPT,h.NOSCRIPT],[H.OBJECT,h.OBJECT],[H.OL,h.OL],[H.OPTGROUP,h.OPTGROUP],[H.OPTION,h.OPTION],[H.P,h.P],[H.PARAM,h.PARAM],[H.PLAINTEXT,h.PLAINTEXT],[H.PRE,h.PRE],[H.RB,h.RB],[H.RP,h.RP],[H.RT,h.RT],[H.RTC,h.RTC],[H.RUBY,h.RUBY],[H.S,h.S],[H.SCRIPT,h.SCRIPT],[H.SEARCH,h.SEARCH],[H.SECTION,h.SECTION],[H.SELECT,h.SELECT],[H.SOURCE,h.SOURCE],[H.SMALL,h.SMALL],[H.SPAN,h.SPAN],[H.STRIKE,h.STRIKE],[H.STRONG,h.STRONG],[H.STYLE,h.STYLE],[H.SUB,h.SUB],[H.SUMMARY,h.SUMMARY],[H.SUP,h.SUP],[H.TABLE,h.TABLE],[H.TBODY,h.TBODY],[H.TEMPLATE,h.TEMPLATE],[H.TEXTAREA,h.TEXTAREA],[H.TFOOT,h.TFOOT],[H.TD,h.TD],[H.TH,h.TH],[H.THEAD,h.THEAD],[H.TITLE,h.TITLE],[H.TR,h.TR],[H.TRACK,h.TRACK],[H.TT,h.TT],[H.U,h.U],[H.UL,h.UL],[H.SVG,h.SVG],[H.VAR,h.VAR],[H.WBR,h.WBR],[H.XMP,h.XMP]]);function xi(e){var t;return(t=kI.get(e))!==null&&t!==void 0?t:h.UNKNOWN}const J=h,II={[Z.HTML]:new Set([J.ADDRESS,J.APPLET,J.AREA,J.ARTICLE,J.ASIDE,J.BASE,J.BASEFONT,J.BGSOUND,J.BLOCKQUOTE,J.BODY,J.BR,J.BUTTON,J.CAPTION,J.CENTER,J.COL,J.COLGROUP,J.DD,J.DETAILS,J.DIR,J.DIV,J.DL,J.DT,J.EMBED,J.FIELDSET,J.FIGCAPTION,J.FIGURE,J.FOOTER,J.FORM,J.FRAME,J.FRAMESET,J.H1,J.H2,J.H3,J.H4,J.H5,J.H6,J.HEAD,J.HEADER,J.HGROUP,J.HR,J.HTML,J.IFRAME,J.IMG,J.INPUT,J.LI,J.LINK,J.LISTING,J.MAIN,J.MARQUEE,J.MENU,J.META,J.NAV,J.NOEMBED,J.NOFRAMES,J.NOSCRIPT,J.OBJECT,J.OL,J.P,J.PARAM,J.PLAINTEXT,J.PRE,J.SCRIPT,J.SECTION,J.SELECT,J.SOURCE,J.STYLE,J.SUMMARY,J.TABLE,J.TBODY,J.TD,J.TEMPLATE,J.TEXTAREA,J.TFOOT,J.TH,J.THEAD,J.TITLE,J.TR,J.TRACK,J.UL,J.WBR,J.XMP]),[Z.MATHML]:new Set([J.MI,J.MO,J.MN,J.MS,J.MTEXT,J.ANNOTATION_XML]),[Z.SVG]:new Set([J.TITLE,J.FOREIGN_OBJECT,J.DESC]),[Z.XLINK]:new Set,[Z.XML]:new Set,[Z.XMLNS]:new Set},rl=new Set([J.H1,J.H2,J.H3,J.H4,J.H5,J.H6]);H.STYLE,H.SCRIPT,H.XMP,H.IFRAME,H.NOEMBED,H.NOFRAMES,H.PLAINTEXT;var w;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(w||(w={}));const ft={DATA:w.DATA,RCDATA:w.RCDATA,RAWTEXT:w.RAWTEXT,SCRIPT_DATA:w.SCRIPT_DATA,PLAINTEXT:w.PLAINTEXT,CDATA_SECTION:w.CDATA_SECTION};function NI(e){return e>=A.DIGIT_0&&e<=A.DIGIT_9}function Bi(e){return e>=A.LATIN_CAPITAL_A&&e<=A.LATIN_CAPITAL_Z}function MI(e){return e>=A.LATIN_SMALL_A&&e<=A.LATIN_SMALL_Z}function or(e){return MI(e)||Bi(e)}function g1(e){return or(e)||NI(e)}function Za(e){return e+32}function p4(e){return e===A.SPACE||e===A.LINE_FEED||e===A.TABULATION||e===A.FORM_FEED}function b1(e){return p4(e)||e===A.SOLIDUS||e===A.GREATER_THAN_SIGN}function RI(e){return e===A.NULL?$.nullCharacterReference:e>1114111?$.characterReferenceOutsideUnicodeRange:d4(e)?$.surrogateCharacterReference:f4(e)?$.noncharacterCharacterReference:h4(e)||e===A.CARRIAGE_RETURN?$.controlCharacterReference:null}class DI{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=w.DATA,this.returnState=w.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new bI(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new CI(yI,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err($.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err($.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=RI(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n0&&this._err($.endTagWithAttributes),t.selfClosing&&this._err($.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Ie.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ie.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ie.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Ie.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=p4(t)?Ie.WHITESPACE_CHARACTER:t===A.NULL?Ie.NULL_CHARACTER:Ie.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Ie.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=w.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Vn.Attribute:Vn.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===w.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===w.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===w.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case w.DATA:{this._stateData(t);break}case w.RCDATA:{this._stateRcdata(t);break}case w.RAWTEXT:{this._stateRawtext(t);break}case w.SCRIPT_DATA:{this._stateScriptData(t);break}case w.PLAINTEXT:{this._statePlaintext(t);break}case w.TAG_OPEN:{this._stateTagOpen(t);break}case w.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case w.TAG_NAME:{this._stateTagName(t);break}case w.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case w.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case w.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case w.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case w.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case w.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case w.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case w.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case w.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case w.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case w.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case w.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case w.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case w.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case w.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case w.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case w.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case w.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case w.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case w.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case w.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case w.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case w.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case w.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case w.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case w.BOGUS_COMMENT:{this._stateBogusComment(t);break}case w.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case w.COMMENT_START:{this._stateCommentStart(t);break}case w.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case w.COMMENT:{this._stateComment(t);break}case w.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case w.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case w.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case w.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case w.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case w.COMMENT_END:{this._stateCommentEnd(t);break}case w.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case w.DOCTYPE:{this._stateDoctype(t);break}case w.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case w.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case w.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case w.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case w.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case w.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case w.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case w.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case w.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case w.CDATA_SECTION:{this._stateCdataSection(t);break}case w.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case w.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case w.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case w.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=w.TAG_OPEN;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err($.unexpectedNullCharacter),this._emitCodePoint(t);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case A.AMPERSAND:{this._startCharacterReference();break}case A.LESS_THAN_SIGN:{this.state=w.RCDATA_LESS_THAN_SIGN;break}case A.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(nt);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case A.LESS_THAN_SIGN:{this.state=w.RAWTEXT_LESS_THAN_SIGN;break}case A.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(nt);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_LESS_THAN_SIGN;break}case A.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(nt);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case A.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(nt);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(or(t))this._createStartTagToken(),this.state=w.TAG_NAME,this._stateTagName(t);else switch(t){case A.EXCLAMATION_MARK:{this.state=w.MARKUP_DECLARATION_OPEN;break}case A.SOLIDUS:{this.state=w.END_TAG_OPEN;break}case A.QUESTION_MARK:{this._err($.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t);break}case A.EOF:{this._err($.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err($.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=w.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(or(t))this._createEndTagToken(),this.state=w.TAG_NAME,this._stateTagName(t);else switch(t){case A.GREATER_THAN_SIGN:{this._err($.missingEndTagName),this.state=w.DATA;break}case A.EOF:{this._err($.eofBeforeTagName),this._emitChars("");break}case A.NULL:{this._err($.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_ESCAPED,this._emitChars(nt);break}case A.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===A.SOLIDUS?this.state=w.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:or(t)?(this._emitChars("<"),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=w.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){or(t)?(this.state=w.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case A.NULL:{this._err($.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(nt);break}case A.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===A.SOLIDUS?(this.state=w.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith($t.SCRIPT,!1)&&b1(this.preprocessor.peek($t.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<$t.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=w.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.SOLIDUS:case A.GREATER_THAN_SIGN:case A.EOF:{this.state=w.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case A.EQUALS_SIGN:{this._err($.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=w.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=w.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:case A.SOLIDUS:case A.GREATER_THAN_SIGN:case A.EOF:{this._leaveAttrName(),this.state=w.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case A.EQUALS_SIGN:{this._leaveAttrName(),this.state=w.BEFORE_ATTRIBUTE_VALUE;break}case A.QUOTATION_MARK:case A.APOSTROPHE:case A.LESS_THAN_SIGN:{this._err($.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case A.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.name+=nt;break}default:this.currentAttr.name+=String.fromCodePoint(Bi(t)?Za(t):t)}}_stateAfterAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.SOLIDUS:{this.state=w.SELF_CLOSING_START_TAG;break}case A.EQUALS_SIGN:{this.state=w.BEFORE_ATTRIBUTE_VALUE;break}case A.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=w.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{this.state=w.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this.state=w.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err($.missingAttributeValue),this.state=w.DATA,this.emitCurrentTagToken();break}default:this.state=w.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case A.QUOTATION_MARK:{this.state=w.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.value+=nt;break}case A.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case A.APOSTROPHE:{this.state=w.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.value+=nt;break}case A.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this._leaveAttrValue(),this.state=w.BEFORE_ATTRIBUTE_NAME;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=w.DATA,this.emitCurrentTagToken();break}case A.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.value+=nt;break}case A.QUOTATION_MARK:case A.APOSTROPHE:case A.LESS_THAN_SIGN:case A.EQUALS_SIGN:case A.GRAVE_ACCENT:{this._err($.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case A.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this._leaveAttrValue(),this.state=w.BEFORE_ATTRIBUTE_NAME;break}case A.SOLIDUS:{this._leaveAttrValue(),this.state=w.SELF_CLOSING_START_TAG;break}case A.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=w.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this._err($.missingWhitespaceBetweenAttributes),this.state=w.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case A.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=w.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this._err($.unexpectedSolidusInTag),this.state=w.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentComment(n);break}case A.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case A.NULL:{this._err($.unexpectedNullCharacter),n.data+=nt;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch($t.DASH_DASH,!0)?(this._createCommentToken($t.DASH_DASH.length+1),this.state=w.COMMENT_START):this._consumeSequenceIfMatch($t.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation($t.DOCTYPE.length+1),this.state=w.DOCTYPE):this._consumeSequenceIfMatch($t.CDATA_START,!0)?this.inForeignNode?this.state=w.CDATA_SECTION:(this._err($.cdataInHtmlContent),this._createCommentToken($t.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=w.BOGUS_COMMENT):this._ensureHibernation()||(this._err($.incorrectlyOpenedComment),this._createCommentToken(2),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case A.HYPHEN_MINUS:{this.state=w.COMMENT_START_DASH;break}case A.GREATER_THAN_SIGN:{this._err($.abruptClosingOfEmptyComment),this.state=w.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=w.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=w.COMMENT_END;break}case A.GREATER_THAN_SIGN:{this._err($.abruptClosingOfEmptyComment),this.state=w.DATA,this.emitCurrentComment(n);break}case A.EOF:{this._err($.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=w.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=w.COMMENT_END_DASH;break}case A.LESS_THAN_SIGN:{n.data+="<",this.state=w.COMMENT_LESS_THAN_SIGN;break}case A.NULL:{this._err($.unexpectedNullCharacter),n.data+=nt;break}case A.EOF:{this._err($.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case A.EXCLAMATION_MARK:{n.data+="!",this.state=w.COMMENT_LESS_THAN_SIGN_BANG;break}case A.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=w.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===A.HYPHEN_MINUS?this.state=w.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=w.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===A.HYPHEN_MINUS?this.state=w.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=w.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==A.GREATER_THAN_SIGN&&t!==A.EOF&&this._err($.nestedComment),this.state=w.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=w.COMMENT_END;break}case A.EOF:{this._err($.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=w.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentComment(n);break}case A.EXCLAMATION_MARK:{this.state=w.COMMENT_END_BANG;break}case A.HYPHEN_MINUS:{n.data+="-";break}case A.EOF:{this._err($.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=w.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{n.data+="--!",this.state=w.COMMENT_END_DASH;break}case A.GREATER_THAN_SIGN:{this._err($.incorrectlyClosedComment),this.state=w.DATA,this.emitCurrentComment(n);break}case A.EOF:{this._err($.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=w.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this.state=w.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case A.EOF:{this._err($.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err($.missingWhitespaceBeforeDoctypeName),this.state=w.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Bi(t))this._createDoctypeToken(String.fromCharCode(Za(t))),this.state=w.DOCTYPE_NAME;else switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.NULL:{this._err($.unexpectedNullCharacter),this._createDoctypeToken(nt),this.state=w.DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this._err($.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=w.DATA;break}case A.EOF:{this._err($.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=w.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=w.AFTER_DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(n);break}case A.NULL:{this._err($.unexpectedNullCharacter),n.name+=nt;break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Bi(t)?Za(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch($t.PUBLIC,!1)?this.state=w.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch($t.SYSTEM,!1)?this.state=w.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err($.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.QUOTATION_MARK:{this._err($.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err($.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err($.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{n.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{n.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err($.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case A.QUOTATION_MARK:{this.state=w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.NULL:{this._err($.unexpectedNullCharacter),n.publicId+=nt;break}case A.GREATER_THAN_SIGN:{this._err($.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=w.DATA;break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case A.APOSTROPHE:{this.state=w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.NULL:{this._err($.unexpectedNullCharacter),n.publicId+=nt;break}case A.GREATER_THAN_SIGN:{this._err($.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=w.DATA;break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=w.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case A.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(n);break}case A.QUOTATION_MARK:{this._err($.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err($.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=w.DATA;break}case A.QUOTATION_MARK:{n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.QUOTATION_MARK:{this._err($.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err($.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err($.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err($.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case A.QUOTATION_MARK:{this.state=w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.NULL:{this._err($.unexpectedNullCharacter),n.systemId+=nt;break}case A.GREATER_THAN_SIGN:{this._err($.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=w.DATA;break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case A.APOSTROPHE:{this.state=w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.NULL:{this._err($.unexpectedNullCharacter),n.systemId+=nt;break}case A.GREATER_THAN_SIGN:{this._err($.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=w.DATA;break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=w.DATA;break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err($.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=w.DATA;break}case A.NULL:{this._err($.unexpectedNullCharacter);break}case A.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case A.RIGHT_SQUARE_BRACKET:{this.state=w.CDATA_SECTION_BRACKET;break}case A.EOF:{this._err($.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===A.RIGHT_SQUARE_BRACKET?this.state=w.CDATA_SECTION_END:(this._emitChars("]"),this.state=w.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case A.GREATER_THAN_SIGN:{this.state=w.DATA;break}case A.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=w.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(A.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&g1(this.preprocessor.peek(1))?w.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){g1(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===A.SEMICOLON&&this._err($.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const g4=new Set([h.DD,h.DT,h.LI,h.OPTGROUP,h.OPTION,h.P,h.RB,h.RP,h.RT,h.RTC]),y1=new Set([...g4,h.CAPTION,h.COLGROUP,h.TBODY,h.TD,h.TFOOT,h.TH,h.THEAD,h.TR]),Cs=new Set([h.APPLET,h.CAPTION,h.HTML,h.MARQUEE,h.OBJECT,h.TABLE,h.TD,h.TEMPLATE,h.TH]),_I=new Set([...Cs,h.OL,h.UL]),LI=new Set([...Cs,h.BUTTON]),T1=new Set([h.ANNOTATION_XML,h.MI,h.MN,h.MO,h.MS,h.MTEXT]),E1=new Set([h.DESC,h.FOREIGN_OBJECT,h.TITLE]),PI=new Set([h.TR,h.TEMPLATE,h.HTML]),OI=new Set([h.TBODY,h.TFOOT,h.THEAD,h.TEMPLATE,h.HTML]),BI=new Set([h.TABLE,h.TEMPLATE,h.HTML]),FI=new Set([h.TD,h.TH]);class HI{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=h.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===h.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Z.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Z.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(BI,Z.HTML)}clearBackToTableBodyContext(){this.clearBackTo(OI,Z.HTML)}clearBackToTableRowContext(){this.clearBackTo(PI,Z.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===h.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===h.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Z.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case Z.SVG:{if(E1.has(i))return!1;break}case Z.MATHML:{if(T1.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Cs)}hasInListItemScope(t){return this.hasInDynamicScope(t,_I)}hasInButtonScope(t){return this.hasInDynamicScope(t,LI)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Z.HTML:{if(rl.has(n))return!0;if(Cs.has(n))return!1;break}case Z.SVG:{if(E1.has(n))return!1;break}case Z.MATHML:{if(T1.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Z.HTML)switch(this.tagIDs[n]){case t:return!0;case h.TABLE:case h.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Z.HTML)switch(this.tagIDs[t]){case h.TBODY:case h.THEAD:case h.TFOOT:return!0;case h.TABLE:case h.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Z.HTML)switch(this.tagIDs[n]){case t:return!0;case h.OPTION:case h.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&g4.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&y1.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&y1.has(this.currentTagId);)this.pop()}}const ru=3;var Cn;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Cn||(Cn={}));const x1={type:Cn.Marker};class zI{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o[s.name,s.value]));let a=0;for(let s=0;si.get(u.name)===u.value)&&(a+=1,a>=ru&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(x1)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Cn.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Cn.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(x1);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Cn.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Cn.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Cn.Element&&n.element===t)}}const ur={createDocument(){return{nodeName:"#document",mode:ln.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};ur.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(ur.isTextNode(n)){n.value+=t;return}}ur.appendChild(e,ur.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&ur.isTextNode(r)?r.value+=t:ur.insertBefore(e,ur.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function WI(e){return e.name===b4&&e.publicId===null&&(e.systemId===null||e.systemId===UI)}function YI(e){if(e.name!==b4)return ln.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===VI)return ln.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),qI.has(n))return ln.QUIRKS;let r=t===null?jI:y4;if(v1(n,r))return ln.QUIRKS;if(r=t===null?T4:$I,v1(n,r))return ln.LIMITED_QUIRKS}return ln.NO_QUIRKS}const S1={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},GI="definitionurl",KI="definitionURL",XI=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),QI=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Z.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Z.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Z.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Z.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Z.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Z.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Z.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Z.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Z.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Z.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Z.XMLNS}]]),ZI=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),JI=new Set([h.B,h.BIG,h.BLOCKQUOTE,h.BODY,h.BR,h.CENTER,h.CODE,h.DD,h.DIV,h.DL,h.DT,h.EM,h.EMBED,h.H1,h.H2,h.H3,h.H4,h.H5,h.H6,h.HEAD,h.HR,h.I,h.IMG,h.LI,h.LISTING,h.MENU,h.META,h.NOBR,h.OL,h.P,h.PRE,h.RUBY,h.S,h.SMALL,h.SPAN,h.STRONG,h.STRIKE,h.SUB,h.SUP,h.TABLE,h.TT,h.U,h.UL,h.VAR]);function eN(e){const t=e.tagID;return t===h.FONT&&e.attrs.some(({name:r})=>r===_r.COLOR||r===_r.SIZE||r===_r.FACE)||JI.has(t)}function E4(e){for(let t=0;t0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===Z.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Z.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=R.TEXT}switchToPlaintextParsing(){this.insertionMode=R.TEXT,this.originalInsertionMode=R.IN_BODY,this.tokenizer.state=ft.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===H.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Z.HTML))switch(this.fragmentContextID){case h.TITLE:case h.TEXTAREA:{this.tokenizer.state=ft.RCDATA;break}case h.STYLE:case h.XMP:case h.IFRAME:case h.NOEMBED:case h.NOFRAMES:case h.NOSCRIPT:{this.tokenizer.state=ft.RAWTEXT;break}case h.SCRIPT:{this.tokenizer.state=ft.SCRIPT_DATA;break}case h.PLAINTEXT:{this.tokenizer.state=ft.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Z.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Z.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(H.HTML,Z.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,h.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:u,endCol:l,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:u,endCol:l,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===Ie.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===h.SVG&&this.treeAdapter.getTagName(n)===H.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Z.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===h.MGLYPH||t.tagID===h.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,Z.HTML)}_processToken(t){switch(t.type){case Ie.CHARACTER:{this.onCharacter(t);break}case Ie.NULL_CHARACTER:{this.onNullCharacter(t);break}case Ie.COMMENT:{this.onComment(t);break}case Ie.DOCTYPE:{this.onDoctype(t);break}case Ie.START_TAG:{this._processStartTag(t);break}case Ie.END_TAG:{this.onEndTag(t);break}case Ie.EOF:{this.onEof(t);break}case Ie.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return iN(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Cn.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=R.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(h.P),this.openElements.popUntilTagNamePopped(h.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case h.TR:{this.insertionMode=R.IN_ROW;return}case h.TBODY:case h.THEAD:case h.TFOOT:{this.insertionMode=R.IN_TABLE_BODY;return}case h.CAPTION:{this.insertionMode=R.IN_CAPTION;return}case h.COLGROUP:{this.insertionMode=R.IN_COLUMN_GROUP;return}case h.TABLE:{this.insertionMode=R.IN_TABLE;return}case h.BODY:{this.insertionMode=R.IN_BODY;return}case h.FRAMESET:{this.insertionMode=R.IN_FRAMESET;return}case h.SELECT:{this._resetInsertionModeForSelect(t);return}case h.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case h.HTML:{this.insertionMode=this.headElement?R.AFTER_HEAD:R.BEFORE_HEAD;return}case h.TD:case h.TH:{if(t>0){this.insertionMode=R.IN_CELL;return}break}case h.HEAD:{if(t>0){this.insertionMode=R.IN_HEAD;return}break}}this.insertionMode=R.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===h.TEMPLATE)break;if(r===h.TABLE){this.insertionMode=R.IN_SELECT_IN_TABLE;return}}this.insertionMode=R.IN_SELECT}_isElementCausesFosterParenting(t){return v4.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case h.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Z.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case h.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return II[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){FM(this,t);return}switch(this.insertionMode){case R.INITIAL:{Di(this,t);break}case R.BEFORE_HTML:{Gi(this,t);break}case R.BEFORE_HEAD:{Ki(this,t);break}case R.IN_HEAD:{Xi(this,t);break}case R.IN_HEAD_NO_SCRIPT:{Qi(this,t);break}case R.AFTER_HEAD:{Zi(this,t);break}case R.IN_BODY:case R.IN_CAPTION:case R.IN_CELL:case R.IN_TEMPLATE:{A4(this,t);break}case R.TEXT:case R.IN_SELECT:case R.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case R.IN_TABLE:case R.IN_TABLE_BODY:case R.IN_ROW:{iu(this,t);break}case R.IN_TABLE_TEXT:{M4(this,t);break}case R.IN_COLUMN_GROUP:{ws(this,t);break}case R.AFTER_BODY:{ks(this,t);break}case R.AFTER_AFTER_BODY:{us(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){BM(this,t);return}switch(this.insertionMode){case R.INITIAL:{Di(this,t);break}case R.BEFORE_HTML:{Gi(this,t);break}case R.BEFORE_HEAD:{Ki(this,t);break}case R.IN_HEAD:{Xi(this,t);break}case R.IN_HEAD_NO_SCRIPT:{Qi(this,t);break}case R.AFTER_HEAD:{Zi(this,t);break}case R.TEXT:{this._insertCharacters(t);break}case R.IN_TABLE:case R.IN_TABLE_BODY:case R.IN_ROW:{iu(this,t);break}case R.IN_COLUMN_GROUP:{ws(this,t);break}case R.AFTER_BODY:{ks(this,t);break}case R.AFTER_AFTER_BODY:{us(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){il(this,t);return}switch(this.insertionMode){case R.INITIAL:case R.BEFORE_HTML:case R.BEFORE_HEAD:case R.IN_HEAD:case R.IN_HEAD_NO_SCRIPT:case R.AFTER_HEAD:case R.IN_BODY:case R.IN_TABLE:case R.IN_CAPTION:case R.IN_COLUMN_GROUP:case R.IN_TABLE_BODY:case R.IN_ROW:case R.IN_CELL:case R.IN_SELECT:case R.IN_SELECT_IN_TABLE:case R.IN_TEMPLATE:case R.IN_FRAMESET:case R.AFTER_FRAMESET:{il(this,t);break}case R.IN_TABLE_TEXT:{_i(this,t);break}case R.AFTER_BODY:{pN(this,t);break}case R.AFTER_AFTER_BODY:case R.AFTER_AFTER_FRAMESET:{gN(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case R.INITIAL:{bN(this,t);break}case R.BEFORE_HEAD:case R.IN_HEAD:case R.IN_HEAD_NO_SCRIPT:case R.AFTER_HEAD:{this._err(t,$.misplacedDoctype);break}case R.IN_TABLE_TEXT:{_i(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,$.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?HM(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case R.INITIAL:{Di(this,t);break}case R.BEFORE_HTML:{yN(this,t);break}case R.BEFORE_HEAD:{EN(this,t);break}case R.IN_HEAD:{En(this,t);break}case R.IN_HEAD_NO_SCRIPT:{SN(this,t);break}case R.AFTER_HEAD:{CN(this,t);break}case R.IN_BODY:{Lt(this,t);break}case R.IN_TABLE:{li(this,t);break}case R.IN_TABLE_TEXT:{_i(this,t);break}case R.IN_CAPTION:{xM(this,t);break}case R.IN_COLUMN_GROUP:{B0(this,t);break}case R.IN_TABLE_BODY:{eo(this,t);break}case R.IN_ROW:{to(this,t);break}case R.IN_CELL:{AM(this,t);break}case R.IN_SELECT:{_4(this,t);break}case R.IN_SELECT_IN_TABLE:{wM(this,t);break}case R.IN_TEMPLATE:{IM(this,t);break}case R.AFTER_BODY:{MM(this,t);break}case R.IN_FRAMESET:{RM(this,t);break}case R.AFTER_FRAMESET:{_M(this,t);break}case R.AFTER_AFTER_BODY:{PM(this,t);break}case R.AFTER_AFTER_FRAMESET:{OM(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?zM(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case R.INITIAL:{Di(this,t);break}case R.BEFORE_HTML:{TN(this,t);break}case R.BEFORE_HEAD:{xN(this,t);break}case R.IN_HEAD:{vN(this,t);break}case R.IN_HEAD_NO_SCRIPT:{AN(this,t);break}case R.AFTER_HEAD:{wN(this,t);break}case R.IN_BODY:{Js(this,t);break}case R.TEXT:{dM(this,t);break}case R.IN_TABLE:{ha(this,t);break}case R.IN_TABLE_TEXT:{_i(this,t);break}case R.IN_CAPTION:{vM(this,t);break}case R.IN_COLUMN_GROUP:{SM(this,t);break}case R.IN_TABLE_BODY:{al(this,t);break}case R.IN_ROW:{D4(this,t);break}case R.IN_CELL:{CM(this,t);break}case R.IN_SELECT:{L4(this,t);break}case R.IN_SELECT_IN_TABLE:{kM(this,t);break}case R.IN_TEMPLATE:{NM(this,t);break}case R.AFTER_BODY:{O4(this,t);break}case R.IN_FRAMESET:{DM(this,t);break}case R.AFTER_FRAMESET:{LM(this,t);break}case R.AFTER_AFTER_BODY:{us(this,t);break}}}onEof(t){switch(this.insertionMode){case R.INITIAL:{Di(this,t);break}case R.BEFORE_HTML:{Gi(this,t);break}case R.BEFORE_HEAD:{Ki(this,t);break}case R.IN_HEAD:{Xi(this,t);break}case R.IN_HEAD_NO_SCRIPT:{Qi(this,t);break}case R.AFTER_HEAD:{Zi(this,t);break}case R.IN_BODY:case R.IN_TABLE:case R.IN_CAPTION:case R.IN_COLUMN_GROUP:case R.IN_TABLE_BODY:case R.IN_ROW:case R.IN_CELL:case R.IN_SELECT:case R.IN_SELECT_IN_TABLE:{I4(this,t);break}case R.TEXT:{hM(this,t);break}case R.IN_TABLE_TEXT:{_i(this,t);break}case R.IN_TEMPLATE:{P4(this,t);break}case R.AFTER_BODY:case R.IN_FRAMESET:case R.AFTER_FRAMESET:case R.AFTER_AFTER_BODY:case R.AFTER_AFTER_FRAMESET:{O0(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===A.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case R.IN_HEAD:case R.IN_HEAD_NO_SCRIPT:case R.AFTER_HEAD:case R.TEXT:case R.IN_COLUMN_GROUP:case R.IN_SELECT:case R.IN_SELECT_IN_TABLE:case R.IN_FRAMESET:case R.AFTER_FRAMESET:{this._insertCharacters(t);break}case R.IN_BODY:case R.IN_CAPTION:case R.IN_CELL:case R.IN_TEMPLATE:case R.AFTER_BODY:case R.AFTER_AFTER_BODY:case R.AFTER_AFTER_FRAMESET:{S4(this,t);break}case R.IN_TABLE:case R.IN_TABLE_BODY:case R.IN_ROW:{iu(this,t);break}case R.IN_TABLE_TEXT:{N4(this,t);break}}}}function lN(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):k4(e,t),n}function cN(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function dN(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),u=o&&a>=oN;!o||u?(u&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=hN(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function hN(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function fN(e,t,n){const r=e.treeAdapter.getTagName(t),i=xi(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===h.TEMPLATE&&a===Z.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function mN(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function P0(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function bN(e,t){e._setDocumentType(t);const n=t.forceQuirks?ln.QUIRKS:YI(t);WI(t)||e._err(t,$.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=R.BEFORE_HTML}function Di(e,t){e._err(t,$.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ln.QUIRKS),e.insertionMode=R.BEFORE_HTML,e._processToken(t)}function yN(e,t){t.tagID===h.HTML?(e._insertElement(t,Z.HTML),e.insertionMode=R.BEFORE_HEAD):Gi(e,t)}function TN(e,t){const n=t.tagID;(n===h.HTML||n===h.HEAD||n===h.BODY||n===h.BR)&&Gi(e,t)}function Gi(e,t){e._insertFakeRootElement(),e.insertionMode=R.BEFORE_HEAD,e._processToken(t)}function EN(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.HEAD:{e._insertElement(t,Z.HTML),e.headElement=e.openElements.current,e.insertionMode=R.IN_HEAD;break}default:Ki(e,t)}}function xN(e,t){const n=t.tagID;n===h.HEAD||n===h.BODY||n===h.HTML||n===h.BR?Ki(e,t):e._err(t,$.endTagWithoutMatchingOpenElement)}function Ki(e,t){e._insertFakeElement(H.HEAD,h.HEAD),e.headElement=e.openElements.current,e.insertionMode=R.IN_HEAD,e._processToken(t)}function En(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:{e._appendElement(t,Z.HTML),t.ackSelfClosing=!0;break}case h.TITLE:{e._switchToTextParsing(t,ft.RCDATA);break}case h.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,ft.RAWTEXT):(e._insertElement(t,Z.HTML),e.insertionMode=R.IN_HEAD_NO_SCRIPT);break}case h.NOFRAMES:case h.STYLE:{e._switchToTextParsing(t,ft.RAWTEXT);break}case h.SCRIPT:{e._switchToTextParsing(t,ft.SCRIPT_DATA);break}case h.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=R.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(R.IN_TEMPLATE);break}case h.HEAD:{e._err(t,$.misplacedStartTagForHeadElement);break}default:Xi(e,t)}}function vN(e,t){switch(t.tagID){case h.HEAD:{e.openElements.pop(),e.insertionMode=R.AFTER_HEAD;break}case h.BODY:case h.BR:case h.HTML:{Xi(e,t);break}case h.TEMPLATE:{Ur(e,t);break}default:e._err(t,$.endTagWithoutMatchingOpenElement)}}function Ur(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==h.TEMPLATE&&e._err(t,$.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,$.endTagWithoutMatchingOpenElement)}function Xi(e,t){e.openElements.pop(),e.insertionMode=R.AFTER_HEAD,e._processToken(t)}function SN(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.BASEFONT:case h.BGSOUND:case h.HEAD:case h.LINK:case h.META:case h.NOFRAMES:case h.STYLE:{En(e,t);break}case h.NOSCRIPT:{e._err(t,$.nestedNoscriptInHead);break}default:Qi(e,t)}}function AN(e,t){switch(t.tagID){case h.NOSCRIPT:{e.openElements.pop(),e.insertionMode=R.IN_HEAD;break}case h.BR:{Qi(e,t);break}default:e._err(t,$.endTagWithoutMatchingOpenElement)}}function Qi(e,t){const n=t.type===Ie.EOF?$.openElementsLeftAfterEof:$.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=R.IN_HEAD,e._processToken(t)}function CN(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.BODY:{e._insertElement(t,Z.HTML),e.framesetOk=!1,e.insertionMode=R.IN_BODY;break}case h.FRAMESET:{e._insertElement(t,Z.HTML),e.insertionMode=R.IN_FRAMESET;break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:case h.NOFRAMES:case h.SCRIPT:case h.STYLE:case h.TEMPLATE:case h.TITLE:{e._err(t,$.abandonedHeadElementChild),e.openElements.push(e.headElement,h.HEAD),En(e,t),e.openElements.remove(e.headElement);break}case h.HEAD:{e._err(t,$.misplacedStartTagForHeadElement);break}default:Zi(e,t)}}function wN(e,t){switch(t.tagID){case h.BODY:case h.HTML:case h.BR:{Zi(e,t);break}case h.TEMPLATE:{Ur(e,t);break}default:e._err(t,$.endTagWithoutMatchingOpenElement)}}function Zi(e,t){e._insertFakeElement(H.BODY,h.BODY),e.insertionMode=R.IN_BODY,Zs(e,t)}function Zs(e,t){switch(t.type){case Ie.CHARACTER:{A4(e,t);break}case Ie.WHITESPACE_CHARACTER:{S4(e,t);break}case Ie.COMMENT:{il(e,t);break}case Ie.START_TAG:{Lt(e,t);break}case Ie.END_TAG:{Js(e,t);break}case Ie.EOF:{I4(e,t);break}}}function S4(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function A4(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function kN(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function IN(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function NN(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Z.HTML),e.insertionMode=R.IN_FRAMESET)}function MN(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,Z.HTML)}function RN(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&rl.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Z.HTML)}function DN(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,Z.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function _N(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,Z.HTML),n||(e.formElement=e.openElements.current))}function LN(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===h.LI&&i===h.LI||(n===h.DD||n===h.DT)&&(i===h.DD||i===h.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==h.ADDRESS&&i!==h.DIV&&i!==h.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,Z.HTML)}function PN(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,Z.HTML),e.tokenizer.state=ft.PLAINTEXT}function ON(e,t){e.openElements.hasInScope(h.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.framesetOk=!1}function BN(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(H.A);n&&(P0(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function FN(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function HN(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(h.NOBR)&&(P0(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Z.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function zN(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function UN(e,t){e.treeAdapter.getDocumentMode(e.document)!==ln.QUIRKS&&e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,Z.HTML),e.framesetOk=!1,e.insertionMode=R.IN_TABLE}function C4(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Z.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function w4(e){const t=m4(e,_r.TYPE);return t!=null&&t.toLowerCase()===aN}function VN(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Z.HTML),w4(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function jN(e,t){e._appendElement(t,Z.HTML),t.ackSelfClosing=!0}function qN(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._appendElement(t,Z.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function $N(e,t){t.tagName=H.IMG,t.tagID=h.IMG,C4(e,t)}function WN(e,t){e._insertElement(t,Z.HTML),e.skipNextNewLine=!0,e.tokenizer.state=ft.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=R.TEXT}function YN(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,ft.RAWTEXT)}function GN(e,t){e.framesetOk=!1,e._switchToTextParsing(t,ft.RAWTEXT)}function w1(e,t){e._switchToTextParsing(t,ft.RAWTEXT)}function KN(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===R.IN_TABLE||e.insertionMode===R.IN_CAPTION||e.insertionMode===R.IN_TABLE_BODY||e.insertionMode===R.IN_ROW||e.insertionMode===R.IN_CELL?R.IN_SELECT_IN_TABLE:R.IN_SELECT}function XN(e,t){e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML)}function QN(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Z.HTML)}function ZN(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(h.RTC),e._insertElement(t,Z.HTML)}function JN(e,t){e._reconstructActiveFormattingElements(),E4(t),L0(t),t.selfClosing?e._appendElement(t,Z.MATHML):e._insertElement(t,Z.MATHML),t.ackSelfClosing=!0}function eM(e,t){e._reconstructActiveFormattingElements(),x4(t),L0(t),t.selfClosing?e._appendElement(t,Z.SVG):e._insertElement(t,Z.SVG),t.ackSelfClosing=!0}function k1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML)}function Lt(e,t){switch(t.tagID){case h.I:case h.S:case h.B:case h.U:case h.EM:case h.TT:case h.BIG:case h.CODE:case h.FONT:case h.SMALL:case h.STRIKE:case h.STRONG:{FN(e,t);break}case h.A:{BN(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{RN(e,t);break}case h.P:case h.DL:case h.OL:case h.UL:case h.DIV:case h.DIR:case h.NAV:case h.MAIN:case h.MENU:case h.ASIDE:case h.CENTER:case h.FIGURE:case h.FOOTER:case h.HEADER:case h.HGROUP:case h.DIALOG:case h.DETAILS:case h.ADDRESS:case h.ARTICLE:case h.SEARCH:case h.SECTION:case h.SUMMARY:case h.FIELDSET:case h.BLOCKQUOTE:case h.FIGCAPTION:{MN(e,t);break}case h.LI:case h.DD:case h.DT:{LN(e,t);break}case h.BR:case h.IMG:case h.WBR:case h.AREA:case h.EMBED:case h.KEYGEN:{C4(e,t);break}case h.HR:{qN(e,t);break}case h.RB:case h.RTC:{QN(e,t);break}case h.RT:case h.RP:{ZN(e,t);break}case h.PRE:case h.LISTING:{DN(e,t);break}case h.XMP:{YN(e,t);break}case h.SVG:{eM(e,t);break}case h.HTML:{kN(e,t);break}case h.BASE:case h.LINK:case h.META:case h.STYLE:case h.TITLE:case h.SCRIPT:case h.BGSOUND:case h.BASEFONT:case h.TEMPLATE:{En(e,t);break}case h.BODY:{IN(e,t);break}case h.FORM:{_N(e,t);break}case h.NOBR:{HN(e,t);break}case h.MATH:{JN(e,t);break}case h.TABLE:{UN(e,t);break}case h.INPUT:{VN(e,t);break}case h.PARAM:case h.TRACK:case h.SOURCE:{jN(e,t);break}case h.IMAGE:{$N(e,t);break}case h.BUTTON:{ON(e,t);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{zN(e,t);break}case h.IFRAME:{GN(e,t);break}case h.SELECT:{KN(e,t);break}case h.OPTION:case h.OPTGROUP:{XN(e,t);break}case h.NOEMBED:case h.NOFRAMES:{w1(e,t);break}case h.FRAMESET:{NN(e,t);break}case h.TEXTAREA:{WN(e,t);break}case h.NOSCRIPT:{e.options.scriptingEnabled?w1(e,t):k1(e,t);break}case h.PLAINTEXT:{PN(e,t);break}case h.COL:case h.TH:case h.TD:case h.TR:case h.HEAD:case h.FRAME:case h.TBODY:case h.TFOOT:case h.THEAD:case h.CAPTION:case h.COLGROUP:break;default:k1(e,t)}}function tM(e,t){if(e.openElements.hasInScope(h.BODY)&&(e.insertionMode=R.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function nM(e,t){e.openElements.hasInScope(h.BODY)&&(e.insertionMode=R.AFTER_BODY,O4(e,t))}function rM(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function iM(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(h.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(h.FORM):n&&e.openElements.remove(n))}function aM(e){e.openElements.hasInButtonScope(h.P)||e._insertFakeElement(H.P,h.P),e._closePElement()}function sM(e){e.openElements.hasInListItemScope(h.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(h.LI),e.openElements.popUntilTagNamePopped(h.LI))}function oM(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function uM(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function lM(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function cM(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(H.BR,h.BR),e.openElements.pop(),e.framesetOk=!1}function k4(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==h.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function Js(e,t){switch(t.tagID){case h.A:case h.B:case h.I:case h.S:case h.U:case h.EM:case h.TT:case h.BIG:case h.CODE:case h.FONT:case h.NOBR:case h.SMALL:case h.STRIKE:case h.STRONG:{P0(e,t);break}case h.P:{aM(e);break}case h.DL:case h.UL:case h.OL:case h.DIR:case h.DIV:case h.NAV:case h.PRE:case h.MAIN:case h.MENU:case h.ASIDE:case h.BUTTON:case h.CENTER:case h.FIGURE:case h.FOOTER:case h.HEADER:case h.HGROUP:case h.DIALOG:case h.ADDRESS:case h.ARTICLE:case h.DETAILS:case h.SEARCH:case h.SECTION:case h.SUMMARY:case h.LISTING:case h.FIELDSET:case h.BLOCKQUOTE:case h.FIGCAPTION:{rM(e,t);break}case h.LI:{sM(e);break}case h.DD:case h.DT:{oM(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{uM(e);break}case h.BR:{cM(e);break}case h.BODY:{tM(e,t);break}case h.HTML:{nM(e,t);break}case h.FORM:{iM(e);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{lM(e,t);break}case h.TEMPLATE:{Ur(e,t);break}default:k4(e,t)}}function I4(e,t){e.tmplInsertionModeStack.length>0?P4(e,t):O0(e,t)}function dM(e,t){var n;t.tagID===h.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function hM(e,t){e._err(t,$.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function iu(e,t){if(e.openElements.currentTagId!==void 0&&v4.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=R.IN_TABLE_TEXT,t.type){case Ie.CHARACTER:{M4(e,t);break}case Ie.WHITESPACE_CHARACTER:{N4(e,t);break}}else ka(e,t)}function fM(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Z.HTML),e.insertionMode=R.IN_CAPTION}function mM(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Z.HTML),e.insertionMode=R.IN_COLUMN_GROUP}function pM(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.COLGROUP,h.COLGROUP),e.insertionMode=R.IN_COLUMN_GROUP,B0(e,t)}function gM(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Z.HTML),e.insertionMode=R.IN_TABLE_BODY}function bM(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.TBODY,h.TBODY),e.insertionMode=R.IN_TABLE_BODY,eo(e,t)}function yM(e,t){e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function TM(e,t){w4(t)?e._appendElement(t,Z.HTML):ka(e,t),t.ackSelfClosing=!0}function EM(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Z.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function li(e,t){switch(t.tagID){case h.TD:case h.TH:case h.TR:{bM(e,t);break}case h.STYLE:case h.SCRIPT:case h.TEMPLATE:{En(e,t);break}case h.COL:{pM(e,t);break}case h.FORM:{EM(e,t);break}case h.TABLE:{yM(e,t);break}case h.TBODY:case h.TFOOT:case h.THEAD:{gM(e,t);break}case h.INPUT:{TM(e,t);break}case h.CAPTION:{fM(e,t);break}case h.COLGROUP:{mM(e,t);break}default:ka(e,t)}}function ha(e,t){switch(t.tagID){case h.TABLE:{e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode());break}case h.TEMPLATE:{Ur(e,t);break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TBODY:case h.TD:case h.TFOOT:case h.TH:case h.THEAD:case h.TR:break;default:ka(e,t)}}function ka(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Zs(e,t),e.fosterParentingEnabled=n}function N4(e,t){e.pendingCharacterTokens.push(t)}function M4(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function _i(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===h.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===h.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop();break}case h.OPTION:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop();break}case h.SELECT:{e.openElements.hasInSelectScope(h.SELECT)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode());break}case h.TEMPLATE:{Ur(e,t);break}}}function wM(e,t){const n=t.tagID;n===h.CAPTION||n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR||n===h.TD||n===h.TH?(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e._processStartTag(t)):_4(e,t)}function kM(e,t){const n=t.tagID;n===h.CAPTION||n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR||n===h.TD||n===h.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e.onEndTag(t)):L4(e,t)}function IM(e,t){switch(t.tagID){case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:case h.NOFRAMES:case h.SCRIPT:case h.STYLE:case h.TEMPLATE:case h.TITLE:{En(e,t);break}case h.CAPTION:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:{e.tmplInsertionModeStack[0]=R.IN_TABLE,e.insertionMode=R.IN_TABLE,li(e,t);break}case h.COL:{e.tmplInsertionModeStack[0]=R.IN_COLUMN_GROUP,e.insertionMode=R.IN_COLUMN_GROUP,B0(e,t);break}case h.TR:{e.tmplInsertionModeStack[0]=R.IN_TABLE_BODY,e.insertionMode=R.IN_TABLE_BODY,eo(e,t);break}case h.TD:case h.TH:{e.tmplInsertionModeStack[0]=R.IN_ROW,e.insertionMode=R.IN_ROW,to(e,t);break}default:e.tmplInsertionModeStack[0]=R.IN_BODY,e.insertionMode=R.IN_BODY,Lt(e,t)}}function NM(e,t){t.tagID===h.TEMPLATE&&Ur(e,t)}function P4(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):O0(e,t)}function MM(e,t){t.tagID===h.HTML?Lt(e,t):ks(e,t)}function O4(e,t){var n;if(t.tagID===h.HTML){if(e.fragmentContext||(e.insertionMode=R.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===h.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else ks(e,t)}function ks(e,t){e.insertionMode=R.IN_BODY,Zs(e,t)}function RM(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.FRAMESET:{e._insertElement(t,Z.HTML);break}case h.FRAME:{e._appendElement(t,Z.HTML),t.ackSelfClosing=!0;break}case h.NOFRAMES:{En(e,t);break}}}function DM(e,t){t.tagID===h.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==h.FRAMESET&&(e.insertionMode=R.AFTER_FRAMESET))}function _M(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.NOFRAMES:{En(e,t);break}}}function LM(e,t){t.tagID===h.HTML&&(e.insertionMode=R.AFTER_AFTER_FRAMESET)}function PM(e,t){t.tagID===h.HTML?Lt(e,t):us(e,t)}function us(e,t){e.insertionMode=R.IN_BODY,Zs(e,t)}function OM(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.NOFRAMES:{En(e,t);break}}}function BM(e,t){t.chars=nt,e._insertCharacters(t)}function FM(e,t){e._insertCharacters(t),e.framesetOk=!1}function B4(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Z.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function HM(e,t){if(eN(t))B4(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Z.MATHML?E4(t):r===Z.SVG&&(tN(t),x4(t)),L0(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function zM(e,t){if(t.tagID===h.P||t.tagID===h.BR){B4(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Z.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}H.AREA,H.BASE,H.BASEFONT,H.BGSOUND,H.BR,H.COL,H.EMBED,H.FRAME,H.HR,H.IMG,H.INPUT,H.KEYGEN,H.LINK,H.META,H.PARAM,H.SOURCE,H.TRACK,H.WBR;const UM=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,VM=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),I1={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function F4(e,t){const n=ZM(e),r=wp("type",{handlers:{root:jM,element:qM,text:$M,comment:z4,doctype:WM,raw:GM},unknown:KM}),i={parser:n?new C1(I1):C1.getFragmentParser(void 0,I1),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),vi(i,Pn());const a=n?i.parser.document:i.parser.getFragment(),s=jk(a,{file:i.options.file});return i.stitches&&$s(s,"comment",function(o,u,l){const c=o;if(c.value.stitch&&l&&u!==void 0){const d=l.children;return d[u]=c.value.stitch,u}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function H4(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);const n={type:Ie.CHARACTER,chars:e.value,location:Ia(e)};vi(t,Pn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function WM(e,t){const n={type:Ie.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ia(e)};vi(t,Pn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function YM(e,t){t.stitches=!0;const n=JM(e);if("children"in e&&"children"in n){const r=F4({type:"root",children:e.children},t.options);n.children=r.children}z4({type:"comment",value:{stitch:n}},t)}function z4(e,t){const n=e.value,r={type:Ie.COMMENT,data:n,location:Ia(e)};vi(t,Pn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function GM(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,U4(t,Pn(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(UM,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function KM(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))YM(n,t);else{let r="";throw VM.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function vi(e,t){U4(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=ft.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function U4(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function XM(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===ft.PLAINTEXT)return;vi(t,Pn(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:In.html;i===In.html&&n==="svg"&&(i=In.svg);const a=iI({...e,children:[]},{space:i===In.svg?"svg":"html"}),s={type:Ie.START_TAG,tagName:n,tagID:xi(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:Ia(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function QM(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&hI.includes(n)||t.parser.tokenizer.state===ft.PLAINTEXT)return;vi(t,zs(e));const r={type:Ie.END_TAG,tagName:n,tagID:xi(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Ia(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===ft.RCDATA||t.parser.tokenizer.state===ft.RAWTEXT||t.parser.tokenizer.state===ft.SCRIPT_DATA)&&(t.parser.tokenizer.state=ft.DATA)}function ZM(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Ia(e){const t=Pn(e)||{line:void 0,column:void 0,offset:void 0},n=zs(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function JM(e){return"children"in e?Or({...e,children:[]}):Or(e)}function eR(e){return function(t,n){return F4(t,{...e,file:n})}}const Cr=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Is={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Cr,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Cr],h2:[["className","sr-only"]],img:[...Cr,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Cr,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Cr],table:[...Cr],ul:[...Cr,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},lr={}.hasOwnProperty;function tR(e,t){let n={type:"root",children:[]};const r={schema:t?{...Is,...t}:Is,stack:[]},i=V4(r,e);return i&&(Array.isArray(i)?i.length===1?n=i[0]:n.children=i:n=i),n}function V4(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return nR(e,n);case"doctype":return rR(e,n);case"element":return iR(e,n);case"root":return aR(e,n);case"text":return sR(e,n)}}}function nR(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),a={type:"comment",value:r<0?n:n.slice(0,r)};return Na(a,t),a}}function rR(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return Na(n,t),n}}function iR(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=j4(e,t.children),i=oR(e,t.properties);e.stack.pop();let a=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&lr.call(e.schema.ancestors,n))){const o=e.schema.ancestors[n];let u=-1;for(a=!1;++u1){let i=!1,a=0;for(;++a-1&&a>u||s>-1&&a>s||o>-1&&a>o)return!0;let l=-1;for(;++l4&&t.slice(0,4).toLowerCase()==="data")return n}function cR(e){return function(t){return tR(t,e)}}const dR=ue("article",{name:"MuiMarkdownRenderer",slot:"Root"})(({theme:e})=>{const{palette:t,spacing:n,typography:r}=e,i={"& pre":{overflowX:"auto"}};return{...r.body1,overflowWrap:"break-word",maxWidth:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"stretch",gap:n(1),...i,"& think":{color:t.text.disabled},"& ul, & ol":{margin:0}}}),hR=e=>e.replace(//,` +?)[ \r ]*`,Qu="[̀-ͯ]",ek=new RegExp(Qu+"+$"),tk="("+B2+"+)|"+(Jw+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Qu+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Qu+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Zw)+("|"+Qw+")");class Zh{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(tk,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new hn("EOF",new en(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new te("Unexpected character: '"+t[n]+"'",new hn(t[n],new en(this,n,n+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(` +`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new hn(i,new en(this,n,this.tokenRegex.lastIndex))}}class nk{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new te("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var rk=w2;x("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});x("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});x("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});x("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});x("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});x("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");x("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Jh={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};x("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new te("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=Jh[t.text],r==null||r>=n)throw new te("Invalid base-"+n+" digit "+t.text);for(var i;(i=Jh[e.future().text])!=null&&i{var i=e.consumeArg().tokens;if(i.length!==1)throw new te("\\newcommand's first argument must be a macro name");var a=i[0].text,s=e.isDefined(a);if(s&&!t)throw new te("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!s&&!n)throw new te("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var o=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var u="",l=e.expandNextToken();l.text!=="]"&&l.text!=="EOF";)u+=l.text,l=e.expandNextToken();if(!u.match(/^\s*[0-9]+\s*$/))throw new te("Invalid number of arguments: "+u);o=parseInt(u),i=e.consumeArg().tokens}return s&&r||e.macros.set(a,{tokens:i,numArgs:o}),""};x("\\newcommand",e=>w0(e,!1,!0,!1));x("\\renewcommand",e=>w0(e,!0,!1,!1));x("\\providecommand",e=>w0(e,!0,!0,!0));x("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});x("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});x("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),cr[n],et.math[n],et.text[n]),""});x("\\bgroup","{");x("\\egroup","}");x("~","\\nobreakspace");x("\\lq","`");x("\\rq","'");x("\\aa","\\r a");x("\\AA","\\r A");x("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");x("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");x("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");x("ℬ","\\mathscr{B}");x("ℰ","\\mathscr{E}");x("ℱ","\\mathscr{F}");x("ℋ","\\mathscr{H}");x("ℐ","\\mathscr{I}");x("ℒ","\\mathscr{L}");x("ℳ","\\mathscr{M}");x("ℛ","\\mathscr{R}");x("ℭ","\\mathfrak{C}");x("ℌ","\\mathfrak{H}");x("ℨ","\\mathfrak{Z}");x("\\Bbbk","\\Bbb{k}");x("·","\\cdotp");x("\\llap","\\mathllap{\\textrm{#1}}");x("\\rlap","\\mathrlap{\\textrm{#1}}");x("\\clap","\\mathclap{\\textrm{#1}}");x("\\mathstrut","\\vphantom{(}");x("\\underbar","\\underline{\\text{#1}}");x("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');x("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");x("\\ne","\\neq");x("≠","\\neq");x("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");x("∉","\\notin");x("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");x("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");x("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");x("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");x("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");x("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");x("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");x("⟂","\\perp");x("‼","\\mathclose{!\\mkern-0.8mu!}");x("∌","\\notni");x("⌜","\\ulcorner");x("⌝","\\urcorner");x("⌞","\\llcorner");x("⌟","\\lrcorner");x("©","\\copyright");x("®","\\textregistered");x("️","\\textregistered");x("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');x("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');x("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');x("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');x("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");x("⋮","\\vdots");x("\\varGamma","\\mathit{\\Gamma}");x("\\varDelta","\\mathit{\\Delta}");x("\\varTheta","\\mathit{\\Theta}");x("\\varLambda","\\mathit{\\Lambda}");x("\\varXi","\\mathit{\\Xi}");x("\\varPi","\\mathit{\\Pi}");x("\\varSigma","\\mathit{\\Sigma}");x("\\varUpsilon","\\mathit{\\Upsilon}");x("\\varPhi","\\mathit{\\Phi}");x("\\varPsi","\\mathit{\\Psi}");x("\\varOmega","\\mathit{\\Omega}");x("\\substack","\\begin{subarray}{c}#1\\end{subarray}");x("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");x("\\boxed","\\fbox{$\\displaystyle{#1}$}");x("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");x("\\implies","\\DOTSB\\;\\Longrightarrow\\;");x("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");x("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");x("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var e1={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};x("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in e1?t=e1[n]:(n.slice(0,4)==="\\not"||n in et.math&&pe.contains(["bin","rel"],et.math[n].group))&&(t="\\dotsb"),t});var k0={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};x("\\dotso",function(e){var t=e.future().text;return t in k0?"\\ldots\\,":"\\ldots"});x("\\dotsc",function(e){var t=e.future().text;return t in k0&&t!==","?"\\ldots\\,":"\\ldots"});x("\\cdots",function(e){var t=e.future().text;return t in k0?"\\@cdots\\,":"\\@cdots"});x("\\dotsb","\\cdots");x("\\dotsm","\\cdots");x("\\dotsi","\\!\\cdots");x("\\dotsx","\\ldots\\,");x("\\DOTSI","\\relax");x("\\DOTSB","\\relax");x("\\DOTSX","\\relax");x("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");x("\\,","\\tmspace+{3mu}{.1667em}");x("\\thinspace","\\,");x("\\>","\\mskip{4mu}");x("\\:","\\tmspace+{4mu}{.2222em}");x("\\medspace","\\:");x("\\;","\\tmspace+{5mu}{.2777em}");x("\\thickspace","\\;");x("\\!","\\tmspace-{3mu}{.1667em}");x("\\negthinspace","\\!");x("\\negmedspace","\\tmspace-{4mu}{.2222em}");x("\\negthickspace","\\tmspace-{5mu}{.277em}");x("\\enspace","\\kern.5em ");x("\\enskip","\\hskip.5em\\relax");x("\\quad","\\hskip1em\\relax");x("\\qquad","\\hskip2em\\relax");x("\\tag","\\@ifstar\\tag@literal\\tag@paren");x("\\tag@paren","\\tag@literal{({#1})}");x("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new te("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});x("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");x("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");x("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");x("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");x("\\newline","\\\\\\relax");x("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var F2=se(wn["Main-Regular"][84][1]-.7*wn["Main-Regular"][65][1]);x("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+F2+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");x("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+F2+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");x("\\hspace","\\@ifstar\\@hspacer\\@hspace");x("\\@hspace","\\hskip #1\\relax");x("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");x("\\ordinarycolon",":");x("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");x("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');x("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');x("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');x("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');x("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');x("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');x("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');x("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');x("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');x("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');x("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');x("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');x("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');x("∷","\\dblcolon");x("∹","\\eqcolon");x("≔","\\coloneqq");x("≕","\\eqqcolon");x("⩴","\\Coloneqq");x("\\ratio","\\vcentcolon");x("\\coloncolon","\\dblcolon");x("\\colonequals","\\coloneqq");x("\\coloncolonequals","\\Coloneqq");x("\\equalscolon","\\eqqcolon");x("\\equalscoloncolon","\\Eqqcolon");x("\\colonminus","\\coloneq");x("\\coloncolonminus","\\Coloneq");x("\\minuscolon","\\eqcolon");x("\\minuscoloncolon","\\Eqcolon");x("\\coloncolonapprox","\\Colonapprox");x("\\coloncolonsim","\\Colonsim");x("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");x("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");x("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");x("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");x("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");x("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");x("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");x("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");x("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");x("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");x("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");x("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");x("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");x("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");x("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");x("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");x("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");x("\\nleqq","\\html@mathml{\\@nleqq}{≰}");x("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");x("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");x("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");x("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");x("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");x("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");x("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");x("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");x("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");x("\\imath","\\html@mathml{\\@imath}{ı}");x("\\jmath","\\html@mathml{\\@jmath}{ȷ}");x("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");x("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");x("⟦","\\llbracket");x("⟧","\\rrbracket");x("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");x("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");x("⦃","\\lBrace");x("⦄","\\rBrace");x("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");x("⦵","\\minuso");x("\\darr","\\downarrow");x("\\dArr","\\Downarrow");x("\\Darr","\\Downarrow");x("\\lang","\\langle");x("\\rang","\\rangle");x("\\uarr","\\uparrow");x("\\uArr","\\Uparrow");x("\\Uarr","\\Uparrow");x("\\N","\\mathbb{N}");x("\\R","\\mathbb{R}");x("\\Z","\\mathbb{Z}");x("\\alef","\\aleph");x("\\alefsym","\\aleph");x("\\Alpha","\\mathrm{A}");x("\\Beta","\\mathrm{B}");x("\\bull","\\bullet");x("\\Chi","\\mathrm{X}");x("\\clubs","\\clubsuit");x("\\cnums","\\mathbb{C}");x("\\Complex","\\mathbb{C}");x("\\Dagger","\\ddagger");x("\\diamonds","\\diamondsuit");x("\\empty","\\emptyset");x("\\Epsilon","\\mathrm{E}");x("\\Eta","\\mathrm{H}");x("\\exist","\\exists");x("\\harr","\\leftrightarrow");x("\\hArr","\\Leftrightarrow");x("\\Harr","\\Leftrightarrow");x("\\hearts","\\heartsuit");x("\\image","\\Im");x("\\infin","\\infty");x("\\Iota","\\mathrm{I}");x("\\isin","\\in");x("\\Kappa","\\mathrm{K}");x("\\larr","\\leftarrow");x("\\lArr","\\Leftarrow");x("\\Larr","\\Leftarrow");x("\\lrarr","\\leftrightarrow");x("\\lrArr","\\Leftrightarrow");x("\\Lrarr","\\Leftrightarrow");x("\\Mu","\\mathrm{M}");x("\\natnums","\\mathbb{N}");x("\\Nu","\\mathrm{N}");x("\\Omicron","\\mathrm{O}");x("\\plusmn","\\pm");x("\\rarr","\\rightarrow");x("\\rArr","\\Rightarrow");x("\\Rarr","\\Rightarrow");x("\\real","\\Re");x("\\reals","\\mathbb{R}");x("\\Reals","\\mathbb{R}");x("\\Rho","\\mathrm{P}");x("\\sdot","\\cdot");x("\\sect","\\S");x("\\spades","\\spadesuit");x("\\sub","\\subset");x("\\sube","\\subseteq");x("\\supe","\\supseteq");x("\\Tau","\\mathrm{T}");x("\\thetasym","\\vartheta");x("\\weierp","\\wp");x("\\Zeta","\\mathrm{Z}");x("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");x("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");x("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");x("\\bra","\\mathinner{\\langle{#1}|}");x("\\ket","\\mathinner{|{#1}\\rangle}");x("\\braket","\\mathinner{\\langle{#1}\\rangle}");x("\\Bra","\\left\\langle#1\\right|");x("\\Ket","\\left|#1\\right\\rangle");var H2=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var u=d=>m=>{e&&(m.macros.set("|",s),i.length&&m.macros.set("\\|",o));var p=d;if(!d&&i.length){var b=m.future();b.text==="|"&&(m.popToken(),p=!0)}return{tokens:p?i:r,numArgs:0}};t.macros.set("|",u(!1)),i.length&&t.macros.set("\\|",u(!0));var l=t.consumeArg().tokens,c=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}};x("\\bra@ket",H2(!1));x("\\bra@set",H2(!0));x("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");x("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");x("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");x("\\angln","{\\angl n}");x("\\blue","\\textcolor{##6495ed}{#1}");x("\\orange","\\textcolor{##ffa500}{#1}");x("\\pink","\\textcolor{##ff00af}{#1}");x("\\red","\\textcolor{##df0030}{#1}");x("\\green","\\textcolor{##28ae7b}{#1}");x("\\gray","\\textcolor{gray}{#1}");x("\\purple","\\textcolor{##9d38bd}{#1}");x("\\blueA","\\textcolor{##ccfaff}{#1}");x("\\blueB","\\textcolor{##80f6ff}{#1}");x("\\blueC","\\textcolor{##63d9ea}{#1}");x("\\blueD","\\textcolor{##11accd}{#1}");x("\\blueE","\\textcolor{##0c7f99}{#1}");x("\\tealA","\\textcolor{##94fff5}{#1}");x("\\tealB","\\textcolor{##26edd5}{#1}");x("\\tealC","\\textcolor{##01d1c1}{#1}");x("\\tealD","\\textcolor{##01a995}{#1}");x("\\tealE","\\textcolor{##208170}{#1}");x("\\greenA","\\textcolor{##b6ffb0}{#1}");x("\\greenB","\\textcolor{##8af281}{#1}");x("\\greenC","\\textcolor{##74cf70}{#1}");x("\\greenD","\\textcolor{##1fab54}{#1}");x("\\greenE","\\textcolor{##0d923f}{#1}");x("\\goldA","\\textcolor{##ffd0a9}{#1}");x("\\goldB","\\textcolor{##ffbb71}{#1}");x("\\goldC","\\textcolor{##ff9c39}{#1}");x("\\goldD","\\textcolor{##e07d10}{#1}");x("\\goldE","\\textcolor{##a75a05}{#1}");x("\\redA","\\textcolor{##fca9a9}{#1}");x("\\redB","\\textcolor{##ff8482}{#1}");x("\\redC","\\textcolor{##f9685d}{#1}");x("\\redD","\\textcolor{##e84d39}{#1}");x("\\redE","\\textcolor{##bc2612}{#1}");x("\\maroonA","\\textcolor{##ffbde0}{#1}");x("\\maroonB","\\textcolor{##ff92c6}{#1}");x("\\maroonC","\\textcolor{##ed5fa6}{#1}");x("\\maroonD","\\textcolor{##ca337c}{#1}");x("\\maroonE","\\textcolor{##9e034e}{#1}");x("\\purpleA","\\textcolor{##ddd7ff}{#1}");x("\\purpleB","\\textcolor{##c6b9fc}{#1}");x("\\purpleC","\\textcolor{##aa87ff}{#1}");x("\\purpleD","\\textcolor{##7854ab}{#1}");x("\\purpleE","\\textcolor{##543b78}{#1}");x("\\mintA","\\textcolor{##f5f9e8}{#1}");x("\\mintB","\\textcolor{##edf2df}{#1}");x("\\mintC","\\textcolor{##e0e5cc}{#1}");x("\\grayA","\\textcolor{##f6f7f7}{#1}");x("\\grayB","\\textcolor{##f0f1f2}{#1}");x("\\grayC","\\textcolor{##e3e5e6}{#1}");x("\\grayD","\\textcolor{##d6d8da}{#1}");x("\\grayE","\\textcolor{##babec2}{#1}");x("\\grayF","\\textcolor{##888d93}{#1}");x("\\grayG","\\textcolor{##626569}{#1}");x("\\grayH","\\textcolor{##3b3e40}{#1}");x("\\grayI","\\textcolor{##21242c}{#1}");x("\\kaBlue","\\textcolor{##314453}{#1}");x("\\kaGreen","\\textcolor{##71B307}{#1}");var z2={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class ik{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new nk(rk,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new Zh(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new hn("EOF",r.loc)),this.pushTokens(i),n.range(r,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),n.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new te("Extra }",a)}else if(a.text==="EOF")throw new te("Unexpected end of input in a macro argument, expected '"+(t&&r?t[o]:"}")+"'",a);if(t&&r)if((s===0||s===1&&t[o]==="{")&&a.text===t[o]){if(++o,o===t.length){n.splice(-o,o);break}}else o=0}while(s!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:a}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new te("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;ithis.settings.maxExpand)throw new te("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),r=n.text,i=n.noexpand?null:this._getExpansion(r);if(i==null||t&&i.unexpandable){if(t&&i==null&&r[0]==="\\"&&!this.isDefined(r))throw new te("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var u=a[o];if(u.text==="#"){if(o===0)throw new te("Incomplete placeholder at end of macro body",u);if(u=a[--o],u.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(u.text))a.splice(o,2,...s[+u.text-1]);else throw new te("Not a valid argument number",u)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new hn(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var s=i.replace(/##/g,"");s.indexOf("#"+(a+1))!==-1;)++a;for(var o=new Zh(i,this.settings),u=[],l=o.lex();l.text!=="EOF";)u.push(l),l=o.lex();u.reverse();var c={tokens:u,numArgs:a};return c}return i}isDefined(t){return this.macros.has(t)||cr.hasOwnProperty(t)||et.math.hasOwnProperty(t)||et.text.hasOwnProperty(t)||z2.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:cr.hasOwnProperty(t)&&!cr[t].primitive}}var t1=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Qa=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),tu={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},n1={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let U2=class V2{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new ik(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new te("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new hn("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(V2.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||t&&cr[i.text]&&cr[i.text].infix)break;var a=this.parseAtom(n);if(a){if(a.type==="internal")continue}else break;r.push(a)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var o=et[this.mode][n].group,u=en.range(t),l;if(WC.hasOwnProperty(o)){var c=o;l={type:"atom",mode:this.mode,family:c,loc:u,text:n}}else l={type:o,mode:this.mode,loc:u,text:n};s=l}else if(n.charCodeAt(0)>=128)this.settings.strict&&(Kp(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:en.range(t),text:n};else return null;if(this.consume(),a)for(var d=0;dl&&(l=c):c&&(l!==void 0&&l>-1&&u.push(` +`.repeat(l)||" "),l=-1,u.push(c))}return u.join("")}function Q2(e,t,n){return e.type==="element"?Dk(e,t,n):e.type==="text"?n.whitespace==="normal"?Z2(e,n):_k(e):[]}function Dk(e,t,n){const r=J2(e,n),i=e.children||[];let a=-1,s=[];if(Mk(e))return s;let o,u;for(Ju(e)||h1(e)&&u1(t,e,h1)?u=` +`:Nk(e)?(o=2,u=2):X2(e)&&(o=1,u=1);++a-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const u=f1(t,n[s-1]);o=u===-1?t.length+1:u+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length1?n[a.line-2]:0)+a.column-1;if(s4&&n.slice(0,4)==="data"&&Xk.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(g1,eI);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!g1.test(a)){let s=a.replace(Qk,Jk);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=D0}return new i(r,t)}function Jk(e){return"-"+e.toLowerCase()}function eI(e){return e.charAt(1).toUpperCase()}const tI=n4([a4,i4,u4,l4,Gk],"html"),c4=n4([a4,i4,u4,l4,Kk],"svg"),nI={},rI={}.hasOwnProperty,d4=kp("type",{handlers:{root:aI,element:cI,text:uI,comment:lI,doctype:oI}});function iI(e,t){const r=(t||nI).space;return d4(e,r==="svg"?c4:tI)}function aI(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=_0(e.children,n,t),Ei(e,n),n}function sI(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=_0(e.children,n,t),Ei(e,n),n}function oI(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Ei(e,t),t}function uI(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Ei(e,t),t}function lI(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Ei(e,t),t}function cI(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=c4);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&rI.call(e.properties,a)){const u=dI(r,a,e.properties[a]);u&&i.push(u)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:In[s],childNodes:[],parentNode:null};return o.childNodes=_0(e.children,o,r),Ei(e,o),e.tagName==="template"&&e.content&&(o.content=sI(e.content,r)),o}function dI(e,t,n){const r=Zk(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?zm(n):Gm(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=r.attribute.slice(0,a)),i.namespace=In[r.space]}return i}function _0(e,t,n){let r=-1;const i=[];if(e)for(;++r=55296&&e<=57343}function mI(e){return e>=56320&&e<=57343}function pI(e,t){return(e-55296)*1024+9216+t}function f4(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function m4(e){return e>=64976&&e<=65007||fI.has(e)}var $;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})($||($={}));const gI=65536;class bI{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=gI,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:a}=this,s=i+n,o=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(mI(n))return this.pos++,this._addGap(),pI(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,A.EOF;return this._err($.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;const r=this.html.charCodeAt(n);return r===A.CARRIAGE_RETURN?A.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;let t=this.html.charCodeAt(this.pos);return t===A.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,A.LINE_FEED):t===A.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,h4(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===A.LINE_FEED||t===A.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){f4(t)?this._err($.controlCharacterInInputStream):m4(t)&&this._err($.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const yI=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),TI=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function EI(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=TI.get(e))!==null&&t!==void 0?t:e}var Ct;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ct||(Ct={}));const xI=32;var dr;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(dr||(dr={}));function nl(e){return e>=Ct.ZERO&&e<=Ct.NINE}function vI(e){return e>=Ct.UPPER_A&&e<=Ct.UPPER_F||e>=Ct.LOWER_A&&e<=Ct.LOWER_F}function SI(e){return e>=Ct.UPPER_A&&e<=Ct.UPPER_Z||e>=Ct.LOWER_A&&e<=Ct.LOWER_Z||nl(e)}function AI(e){return e===Ct.EQUALS||SI(e)}var St;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(St||(St={}));var Vn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Vn||(Vn={}));class CI{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=St.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Vn.Strict}startEntity(t){this.decodeMode=t,this.state=St.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case St.EntityStart:return t.charCodeAt(n)===Ct.NUM?(this.state=St.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=St.NamedEntity,this.stateNamedEntity(t,n));case St.NumericStart:return this.stateNumericStart(t,n);case St.NumericDecimal:return this.stateNumericDecimal(t,n);case St.NumericHex:return this.stateNumericHex(t,n);case St.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|xI)===Ct.LOWER_X?(this.state=St.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=St.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+Number.parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,a!==0){if(s===Ct.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Vn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&dr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~dr.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case St.NamedEntity:return this.result!==0&&(this.decodeMode!==Vn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case St.NumericDecimal:return this.emitNumericEntity(0,2);case St.NumericHex:return this.emitNumericEntity(0,3);case St.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case St.EntityStart:return 0}}}function wI(e,t,n,r){const i=(t&dr.BRANCH_LENGTH)>>7,a=t&dr.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const u=r-a;return u<0||u>=i?-1:e[n+u]-1}let s=n,o=s+i-1;for(;s<=o;){const u=s+o>>>1,l=e[u];if(lr)o=u-1;else return e[u+i]}return-1}var Z;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Z||(Z={}));var _r;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(_r||(_r={}));var ln;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ln||(ln={}));var H;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(H||(H={}));var h;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(h||(h={}));const kI=new Map([[H.A,h.A],[H.ADDRESS,h.ADDRESS],[H.ANNOTATION_XML,h.ANNOTATION_XML],[H.APPLET,h.APPLET],[H.AREA,h.AREA],[H.ARTICLE,h.ARTICLE],[H.ASIDE,h.ASIDE],[H.B,h.B],[H.BASE,h.BASE],[H.BASEFONT,h.BASEFONT],[H.BGSOUND,h.BGSOUND],[H.BIG,h.BIG],[H.BLOCKQUOTE,h.BLOCKQUOTE],[H.BODY,h.BODY],[H.BR,h.BR],[H.BUTTON,h.BUTTON],[H.CAPTION,h.CAPTION],[H.CENTER,h.CENTER],[H.CODE,h.CODE],[H.COL,h.COL],[H.COLGROUP,h.COLGROUP],[H.DD,h.DD],[H.DESC,h.DESC],[H.DETAILS,h.DETAILS],[H.DIALOG,h.DIALOG],[H.DIR,h.DIR],[H.DIV,h.DIV],[H.DL,h.DL],[H.DT,h.DT],[H.EM,h.EM],[H.EMBED,h.EMBED],[H.FIELDSET,h.FIELDSET],[H.FIGCAPTION,h.FIGCAPTION],[H.FIGURE,h.FIGURE],[H.FONT,h.FONT],[H.FOOTER,h.FOOTER],[H.FOREIGN_OBJECT,h.FOREIGN_OBJECT],[H.FORM,h.FORM],[H.FRAME,h.FRAME],[H.FRAMESET,h.FRAMESET],[H.H1,h.H1],[H.H2,h.H2],[H.H3,h.H3],[H.H4,h.H4],[H.H5,h.H5],[H.H6,h.H6],[H.HEAD,h.HEAD],[H.HEADER,h.HEADER],[H.HGROUP,h.HGROUP],[H.HR,h.HR],[H.HTML,h.HTML],[H.I,h.I],[H.IMG,h.IMG],[H.IMAGE,h.IMAGE],[H.INPUT,h.INPUT],[H.IFRAME,h.IFRAME],[H.KEYGEN,h.KEYGEN],[H.LABEL,h.LABEL],[H.LI,h.LI],[H.LINK,h.LINK],[H.LISTING,h.LISTING],[H.MAIN,h.MAIN],[H.MALIGNMARK,h.MALIGNMARK],[H.MARQUEE,h.MARQUEE],[H.MATH,h.MATH],[H.MENU,h.MENU],[H.META,h.META],[H.MGLYPH,h.MGLYPH],[H.MI,h.MI],[H.MO,h.MO],[H.MN,h.MN],[H.MS,h.MS],[H.MTEXT,h.MTEXT],[H.NAV,h.NAV],[H.NOBR,h.NOBR],[H.NOFRAMES,h.NOFRAMES],[H.NOEMBED,h.NOEMBED],[H.NOSCRIPT,h.NOSCRIPT],[H.OBJECT,h.OBJECT],[H.OL,h.OL],[H.OPTGROUP,h.OPTGROUP],[H.OPTION,h.OPTION],[H.P,h.P],[H.PARAM,h.PARAM],[H.PLAINTEXT,h.PLAINTEXT],[H.PRE,h.PRE],[H.RB,h.RB],[H.RP,h.RP],[H.RT,h.RT],[H.RTC,h.RTC],[H.RUBY,h.RUBY],[H.S,h.S],[H.SCRIPT,h.SCRIPT],[H.SEARCH,h.SEARCH],[H.SECTION,h.SECTION],[H.SELECT,h.SELECT],[H.SOURCE,h.SOURCE],[H.SMALL,h.SMALL],[H.SPAN,h.SPAN],[H.STRIKE,h.STRIKE],[H.STRONG,h.STRONG],[H.STYLE,h.STYLE],[H.SUB,h.SUB],[H.SUMMARY,h.SUMMARY],[H.SUP,h.SUP],[H.TABLE,h.TABLE],[H.TBODY,h.TBODY],[H.TEMPLATE,h.TEMPLATE],[H.TEXTAREA,h.TEXTAREA],[H.TFOOT,h.TFOOT],[H.TD,h.TD],[H.TH,h.TH],[H.THEAD,h.THEAD],[H.TITLE,h.TITLE],[H.TR,h.TR],[H.TRACK,h.TRACK],[H.TT,h.TT],[H.U,h.U],[H.UL,h.UL],[H.SVG,h.SVG],[H.VAR,h.VAR],[H.WBR,h.WBR],[H.XMP,h.XMP]]);function xi(e){var t;return(t=kI.get(e))!==null&&t!==void 0?t:h.UNKNOWN}const J=h,II={[Z.HTML]:new Set([J.ADDRESS,J.APPLET,J.AREA,J.ARTICLE,J.ASIDE,J.BASE,J.BASEFONT,J.BGSOUND,J.BLOCKQUOTE,J.BODY,J.BR,J.BUTTON,J.CAPTION,J.CENTER,J.COL,J.COLGROUP,J.DD,J.DETAILS,J.DIR,J.DIV,J.DL,J.DT,J.EMBED,J.FIELDSET,J.FIGCAPTION,J.FIGURE,J.FOOTER,J.FORM,J.FRAME,J.FRAMESET,J.H1,J.H2,J.H3,J.H4,J.H5,J.H6,J.HEAD,J.HEADER,J.HGROUP,J.HR,J.HTML,J.IFRAME,J.IMG,J.INPUT,J.LI,J.LINK,J.LISTING,J.MAIN,J.MARQUEE,J.MENU,J.META,J.NAV,J.NOEMBED,J.NOFRAMES,J.NOSCRIPT,J.OBJECT,J.OL,J.P,J.PARAM,J.PLAINTEXT,J.PRE,J.SCRIPT,J.SECTION,J.SELECT,J.SOURCE,J.STYLE,J.SUMMARY,J.TABLE,J.TBODY,J.TD,J.TEMPLATE,J.TEXTAREA,J.TFOOT,J.TH,J.THEAD,J.TITLE,J.TR,J.TRACK,J.UL,J.WBR,J.XMP]),[Z.MATHML]:new Set([J.MI,J.MO,J.MN,J.MS,J.MTEXT,J.ANNOTATION_XML]),[Z.SVG]:new Set([J.TITLE,J.FOREIGN_OBJECT,J.DESC]),[Z.XLINK]:new Set,[Z.XML]:new Set,[Z.XMLNS]:new Set},rl=new Set([J.H1,J.H2,J.H3,J.H4,J.H5,J.H6]);H.STYLE,H.SCRIPT,H.XMP,H.IFRAME,H.NOEMBED,H.NOFRAMES,H.PLAINTEXT;var w;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(w||(w={}));const ft={DATA:w.DATA,RCDATA:w.RCDATA,RAWTEXT:w.RAWTEXT,SCRIPT_DATA:w.SCRIPT_DATA,PLAINTEXT:w.PLAINTEXT,CDATA_SECTION:w.CDATA_SECTION};function NI(e){return e>=A.DIGIT_0&&e<=A.DIGIT_9}function Bi(e){return e>=A.LATIN_CAPITAL_A&&e<=A.LATIN_CAPITAL_Z}function MI(e){return e>=A.LATIN_SMALL_A&&e<=A.LATIN_SMALL_Z}function or(e){return MI(e)||Bi(e)}function b1(e){return or(e)||NI(e)}function Za(e){return e+32}function g4(e){return e===A.SPACE||e===A.LINE_FEED||e===A.TABULATION||e===A.FORM_FEED}function y1(e){return g4(e)||e===A.SOLIDUS||e===A.GREATER_THAN_SIGN}function RI(e){return e===A.NULL?$.nullCharacterReference:e>1114111?$.characterReferenceOutsideUnicodeRange:h4(e)?$.surrogateCharacterReference:m4(e)?$.noncharacterCharacterReference:f4(e)||e===A.CARRIAGE_RETURN?$.controlCharacterReference:null}class DI{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=w.DATA,this.returnState=w.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new bI(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new CI(yI,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err($.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err($.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=RI(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n0&&this._err($.endTagWithAttributes),t.selfClosing&&this._err($.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Ie.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ie.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ie.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Ie.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=g4(t)?Ie.WHITESPACE_CHARACTER:t===A.NULL?Ie.NULL_CHARACTER:Ie.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Ie.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=w.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Vn.Attribute:Vn.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===w.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===w.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===w.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case w.DATA:{this._stateData(t);break}case w.RCDATA:{this._stateRcdata(t);break}case w.RAWTEXT:{this._stateRawtext(t);break}case w.SCRIPT_DATA:{this._stateScriptData(t);break}case w.PLAINTEXT:{this._statePlaintext(t);break}case w.TAG_OPEN:{this._stateTagOpen(t);break}case w.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case w.TAG_NAME:{this._stateTagName(t);break}case w.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case w.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case w.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case w.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case w.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case w.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case w.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case w.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case w.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case w.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case w.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case w.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case w.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case w.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case w.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case w.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case w.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case w.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case w.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case w.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case w.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case w.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case w.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case w.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case w.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case w.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case w.BOGUS_COMMENT:{this._stateBogusComment(t);break}case w.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case w.COMMENT_START:{this._stateCommentStart(t);break}case w.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case w.COMMENT:{this._stateComment(t);break}case w.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case w.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case w.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case w.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case w.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case w.COMMENT_END:{this._stateCommentEnd(t);break}case w.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case w.DOCTYPE:{this._stateDoctype(t);break}case w.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case w.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case w.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case w.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case w.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case w.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case w.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case w.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case w.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case w.CDATA_SECTION:{this._stateCdataSection(t);break}case w.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case w.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case w.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case w.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=w.TAG_OPEN;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err($.unexpectedNullCharacter),this._emitCodePoint(t);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case A.AMPERSAND:{this._startCharacterReference();break}case A.LESS_THAN_SIGN:{this.state=w.RCDATA_LESS_THAN_SIGN;break}case A.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(nt);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case A.LESS_THAN_SIGN:{this.state=w.RAWTEXT_LESS_THAN_SIGN;break}case A.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(nt);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_LESS_THAN_SIGN;break}case A.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(nt);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case A.NULL:{this._err($.unexpectedNullCharacter),this._emitChars(nt);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(or(t))this._createStartTagToken(),this.state=w.TAG_NAME,this._stateTagName(t);else switch(t){case A.EXCLAMATION_MARK:{this.state=w.MARKUP_DECLARATION_OPEN;break}case A.SOLIDUS:{this.state=w.END_TAG_OPEN;break}case A.QUESTION_MARK:{this._err($.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t);break}case A.EOF:{this._err($.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err($.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=w.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(or(t))this._createEndTagToken(),this.state=w.TAG_NAME,this._stateTagName(t);else switch(t){case A.GREATER_THAN_SIGN:{this._err($.missingEndTagName),this.state=w.DATA;break}case A.EOF:{this._err($.eofBeforeTagName),this._emitChars("");break}case A.NULL:{this._err($.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_ESCAPED,this._emitChars(nt);break}case A.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===A.SOLIDUS?this.state=w.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:or(t)?(this._emitChars("<"),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=w.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){or(t)?(this.state=w.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case A.NULL:{this._err($.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(nt);break}case A.EOF:{this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===A.SOLIDUS?(this.state=w.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith($t.SCRIPT,!1)&&y1(this.preprocessor.peek($t.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<$t.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=w.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.SOLIDUS:case A.GREATER_THAN_SIGN:case A.EOF:{this.state=w.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case A.EQUALS_SIGN:{this._err($.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=w.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=w.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:case A.SOLIDUS:case A.GREATER_THAN_SIGN:case A.EOF:{this._leaveAttrName(),this.state=w.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case A.EQUALS_SIGN:{this._leaveAttrName(),this.state=w.BEFORE_ATTRIBUTE_VALUE;break}case A.QUOTATION_MARK:case A.APOSTROPHE:case A.LESS_THAN_SIGN:{this._err($.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case A.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.name+=nt;break}default:this.currentAttr.name+=String.fromCodePoint(Bi(t)?Za(t):t)}}_stateAfterAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.SOLIDUS:{this.state=w.SELF_CLOSING_START_TAG;break}case A.EQUALS_SIGN:{this.state=w.BEFORE_ATTRIBUTE_VALUE;break}case A.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=w.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{this.state=w.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this.state=w.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err($.missingAttributeValue),this.state=w.DATA,this.emitCurrentTagToken();break}default:this.state=w.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case A.QUOTATION_MARK:{this.state=w.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.value+=nt;break}case A.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case A.APOSTROPHE:{this.state=w.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.value+=nt;break}case A.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this._leaveAttrValue(),this.state=w.BEFORE_ATTRIBUTE_NAME;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=w.DATA,this.emitCurrentTagToken();break}case A.NULL:{this._err($.unexpectedNullCharacter),this.currentAttr.value+=nt;break}case A.QUOTATION_MARK:case A.APOSTROPHE:case A.LESS_THAN_SIGN:case A.EQUALS_SIGN:case A.GRAVE_ACCENT:{this._err($.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case A.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this._leaveAttrValue(),this.state=w.BEFORE_ATTRIBUTE_NAME;break}case A.SOLIDUS:{this._leaveAttrValue(),this.state=w.SELF_CLOSING_START_TAG;break}case A.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=w.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this._err($.missingWhitespaceBetweenAttributes),this.state=w.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case A.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=w.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err($.eofInTag),this._emitEOFToken();break}default:this._err($.unexpectedSolidusInTag),this.state=w.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentComment(n);break}case A.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case A.NULL:{this._err($.unexpectedNullCharacter),n.data+=nt;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch($t.DASH_DASH,!0)?(this._createCommentToken($t.DASH_DASH.length+1),this.state=w.COMMENT_START):this._consumeSequenceIfMatch($t.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation($t.DOCTYPE.length+1),this.state=w.DOCTYPE):this._consumeSequenceIfMatch($t.CDATA_START,!0)?this.inForeignNode?this.state=w.CDATA_SECTION:(this._err($.cdataInHtmlContent),this._createCommentToken($t.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=w.BOGUS_COMMENT):this._ensureHibernation()||(this._err($.incorrectlyOpenedComment),this._createCommentToken(2),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case A.HYPHEN_MINUS:{this.state=w.COMMENT_START_DASH;break}case A.GREATER_THAN_SIGN:{this._err($.abruptClosingOfEmptyComment),this.state=w.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=w.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=w.COMMENT_END;break}case A.GREATER_THAN_SIGN:{this._err($.abruptClosingOfEmptyComment),this.state=w.DATA,this.emitCurrentComment(n);break}case A.EOF:{this._err($.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=w.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=w.COMMENT_END_DASH;break}case A.LESS_THAN_SIGN:{n.data+="<",this.state=w.COMMENT_LESS_THAN_SIGN;break}case A.NULL:{this._err($.unexpectedNullCharacter),n.data+=nt;break}case A.EOF:{this._err($.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case A.EXCLAMATION_MARK:{n.data+="!",this.state=w.COMMENT_LESS_THAN_SIGN_BANG;break}case A.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=w.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===A.HYPHEN_MINUS?this.state=w.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=w.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===A.HYPHEN_MINUS?this.state=w.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=w.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==A.GREATER_THAN_SIGN&&t!==A.EOF&&this._err($.nestedComment),this.state=w.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=w.COMMENT_END;break}case A.EOF:{this._err($.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=w.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentComment(n);break}case A.EXCLAMATION_MARK:{this.state=w.COMMENT_END_BANG;break}case A.HYPHEN_MINUS:{n.data+="-";break}case A.EOF:{this._err($.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=w.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case A.HYPHEN_MINUS:{n.data+="--!",this.state=w.COMMENT_END_DASH;break}case A.GREATER_THAN_SIGN:{this._err($.incorrectlyClosedComment),this.state=w.DATA,this.emitCurrentComment(n);break}case A.EOF:{this._err($.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=w.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this.state=w.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case A.EOF:{this._err($.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err($.missingWhitespaceBeforeDoctypeName),this.state=w.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Bi(t))this._createDoctypeToken(String.fromCharCode(Za(t))),this.state=w.DOCTYPE_NAME;else switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.NULL:{this._err($.unexpectedNullCharacter),this._createDoctypeToken(nt),this.state=w.DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this._err($.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=w.DATA;break}case A.EOF:{this._err($.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=w.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=w.AFTER_DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(n);break}case A.NULL:{this._err($.unexpectedNullCharacter),n.name+=nt;break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Bi(t)?Za(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch($t.PUBLIC,!1)?this.state=w.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch($t.SYSTEM,!1)?this.state=w.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err($.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.QUOTATION_MARK:{this._err($.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err($.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err($.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{n.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{n.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err($.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case A.QUOTATION_MARK:{this.state=w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.NULL:{this._err($.unexpectedNullCharacter),n.publicId+=nt;break}case A.GREATER_THAN_SIGN:{this._err($.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=w.DATA;break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case A.APOSTROPHE:{this.state=w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.NULL:{this._err($.unexpectedNullCharacter),n.publicId+=nt;break}case A.GREATER_THAN_SIGN:{this._err($.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=w.DATA;break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=w.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case A.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(n);break}case A.QUOTATION_MARK:{this._err($.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err($.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=w.DATA;break}case A.QUOTATION_MARK:{n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.QUOTATION_MARK:{this._err($.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err($.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err($.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{n.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err($.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(n);break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err($.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case A.QUOTATION_MARK:{this.state=w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.NULL:{this._err($.unexpectedNullCharacter),n.systemId+=nt;break}case A.GREATER_THAN_SIGN:{this._err($.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=w.DATA;break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case A.APOSTROPHE:{this.state=w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.NULL:{this._err($.unexpectedNullCharacter),n.systemId+=nt;break}case A.GREATER_THAN_SIGN:{this._err($.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=w.DATA;break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=w.DATA;break}case A.EOF:{this._err($.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err($.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=w.DATA;break}case A.NULL:{this._err($.unexpectedNullCharacter);break}case A.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case A.RIGHT_SQUARE_BRACKET:{this.state=w.CDATA_SECTION_BRACKET;break}case A.EOF:{this._err($.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===A.RIGHT_SQUARE_BRACKET?this.state=w.CDATA_SECTION_END:(this._emitChars("]"),this.state=w.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case A.GREATER_THAN_SIGN:{this.state=w.DATA;break}case A.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=w.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(A.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&b1(this.preprocessor.peek(1))?w.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){b1(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===A.SEMICOLON&&this._err($.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const b4=new Set([h.DD,h.DT,h.LI,h.OPTGROUP,h.OPTION,h.P,h.RB,h.RP,h.RT,h.RTC]),T1=new Set([...b4,h.CAPTION,h.COLGROUP,h.TBODY,h.TD,h.TFOOT,h.TH,h.THEAD,h.TR]),Cs=new Set([h.APPLET,h.CAPTION,h.HTML,h.MARQUEE,h.OBJECT,h.TABLE,h.TD,h.TEMPLATE,h.TH]),_I=new Set([...Cs,h.OL,h.UL]),LI=new Set([...Cs,h.BUTTON]),E1=new Set([h.ANNOTATION_XML,h.MI,h.MN,h.MO,h.MS,h.MTEXT]),x1=new Set([h.DESC,h.FOREIGN_OBJECT,h.TITLE]),PI=new Set([h.TR,h.TEMPLATE,h.HTML]),OI=new Set([h.TBODY,h.TFOOT,h.THEAD,h.TEMPLATE,h.HTML]),BI=new Set([h.TABLE,h.TEMPLATE,h.HTML]),FI=new Set([h.TD,h.TH]);class HI{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=h.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===h.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Z.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Z.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(BI,Z.HTML)}clearBackToTableBodyContext(){this.clearBackTo(OI,Z.HTML)}clearBackToTableRowContext(){this.clearBackTo(PI,Z.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===h.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===h.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Z.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case Z.SVG:{if(x1.has(i))return!1;break}case Z.MATHML:{if(E1.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Cs)}hasInListItemScope(t){return this.hasInDynamicScope(t,_I)}hasInButtonScope(t){return this.hasInDynamicScope(t,LI)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Z.HTML:{if(rl.has(n))return!0;if(Cs.has(n))return!1;break}case Z.SVG:{if(x1.has(n))return!1;break}case Z.MATHML:{if(E1.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Z.HTML)switch(this.tagIDs[n]){case t:return!0;case h.TABLE:case h.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Z.HTML)switch(this.tagIDs[t]){case h.TBODY:case h.THEAD:case h.TFOOT:return!0;case h.TABLE:case h.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Z.HTML)switch(this.tagIDs[n]){case t:return!0;case h.OPTION:case h.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&b4.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&T1.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&T1.has(this.currentTagId);)this.pop()}}const ru=3;var Cn;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Cn||(Cn={}));const v1={type:Cn.Marker};class zI{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o[s.name,s.value]));let a=0;for(let s=0;si.get(u.name)===u.value)&&(a+=1,a>=ru&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(v1)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Cn.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Cn.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(v1);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Cn.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Cn.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Cn.Element&&n.element===t)}}const ur={createDocument(){return{nodeName:"#document",mode:ln.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};ur.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(ur.isTextNode(n)){n.value+=t;return}}ur.appendChild(e,ur.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&ur.isTextNode(r)?r.value+=t:ur.insertBefore(e,ur.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function WI(e){return e.name===y4&&e.publicId===null&&(e.systemId===null||e.systemId===UI)}function YI(e){if(e.name!==y4)return ln.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===VI)return ln.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),qI.has(n))return ln.QUIRKS;let r=t===null?jI:T4;if(S1(n,r))return ln.QUIRKS;if(r=t===null?E4:$I,S1(n,r))return ln.LIMITED_QUIRKS}return ln.NO_QUIRKS}const A1={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},GI="definitionurl",KI="definitionURL",XI=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),QI=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Z.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Z.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Z.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Z.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Z.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Z.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Z.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Z.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Z.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Z.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Z.XMLNS}]]),ZI=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),JI=new Set([h.B,h.BIG,h.BLOCKQUOTE,h.BODY,h.BR,h.CENTER,h.CODE,h.DD,h.DIV,h.DL,h.DT,h.EM,h.EMBED,h.H1,h.H2,h.H3,h.H4,h.H5,h.H6,h.HEAD,h.HR,h.I,h.IMG,h.LI,h.LISTING,h.MENU,h.META,h.NOBR,h.OL,h.P,h.PRE,h.RUBY,h.S,h.SMALL,h.SPAN,h.STRONG,h.STRIKE,h.SUB,h.SUP,h.TABLE,h.TT,h.U,h.UL,h.VAR]);function eN(e){const t=e.tagID;return t===h.FONT&&e.attrs.some(({name:r})=>r===_r.COLOR||r===_r.SIZE||r===_r.FACE)||JI.has(t)}function x4(e){for(let t=0;t0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===Z.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Z.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=R.TEXT}switchToPlaintextParsing(){this.insertionMode=R.TEXT,this.originalInsertionMode=R.IN_BODY,this.tokenizer.state=ft.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===H.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Z.HTML))switch(this.fragmentContextID){case h.TITLE:case h.TEXTAREA:{this.tokenizer.state=ft.RCDATA;break}case h.STYLE:case h.XMP:case h.IFRAME:case h.NOEMBED:case h.NOFRAMES:case h.NOSCRIPT:{this.tokenizer.state=ft.RAWTEXT;break}case h.SCRIPT:{this.tokenizer.state=ft.SCRIPT_DATA;break}case h.PLAINTEXT:{this.tokenizer.state=ft.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Z.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Z.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(H.HTML,Z.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,h.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:u,endCol:l,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:u,endCol:l,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===Ie.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===h.SVG&&this.treeAdapter.getTagName(n)===H.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Z.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===h.MGLYPH||t.tagID===h.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,Z.HTML)}_processToken(t){switch(t.type){case Ie.CHARACTER:{this.onCharacter(t);break}case Ie.NULL_CHARACTER:{this.onNullCharacter(t);break}case Ie.COMMENT:{this.onComment(t);break}case Ie.DOCTYPE:{this.onDoctype(t);break}case Ie.START_TAG:{this._processStartTag(t);break}case Ie.END_TAG:{this.onEndTag(t);break}case Ie.EOF:{this.onEof(t);break}case Ie.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return iN(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Cn.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=R.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(h.P),this.openElements.popUntilTagNamePopped(h.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case h.TR:{this.insertionMode=R.IN_ROW;return}case h.TBODY:case h.THEAD:case h.TFOOT:{this.insertionMode=R.IN_TABLE_BODY;return}case h.CAPTION:{this.insertionMode=R.IN_CAPTION;return}case h.COLGROUP:{this.insertionMode=R.IN_COLUMN_GROUP;return}case h.TABLE:{this.insertionMode=R.IN_TABLE;return}case h.BODY:{this.insertionMode=R.IN_BODY;return}case h.FRAMESET:{this.insertionMode=R.IN_FRAMESET;return}case h.SELECT:{this._resetInsertionModeForSelect(t);return}case h.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case h.HTML:{this.insertionMode=this.headElement?R.AFTER_HEAD:R.BEFORE_HEAD;return}case h.TD:case h.TH:{if(t>0){this.insertionMode=R.IN_CELL;return}break}case h.HEAD:{if(t>0){this.insertionMode=R.IN_HEAD;return}break}}this.insertionMode=R.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===h.TEMPLATE)break;if(r===h.TABLE){this.insertionMode=R.IN_SELECT_IN_TABLE;return}}this.insertionMode=R.IN_SELECT}_isElementCausesFosterParenting(t){return S4.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case h.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Z.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case h.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return II[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){FM(this,t);return}switch(this.insertionMode){case R.INITIAL:{Di(this,t);break}case R.BEFORE_HTML:{Gi(this,t);break}case R.BEFORE_HEAD:{Ki(this,t);break}case R.IN_HEAD:{Xi(this,t);break}case R.IN_HEAD_NO_SCRIPT:{Qi(this,t);break}case R.AFTER_HEAD:{Zi(this,t);break}case R.IN_BODY:case R.IN_CAPTION:case R.IN_CELL:case R.IN_TEMPLATE:{C4(this,t);break}case R.TEXT:case R.IN_SELECT:case R.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case R.IN_TABLE:case R.IN_TABLE_BODY:case R.IN_ROW:{iu(this,t);break}case R.IN_TABLE_TEXT:{R4(this,t);break}case R.IN_COLUMN_GROUP:{ws(this,t);break}case R.AFTER_BODY:{ks(this,t);break}case R.AFTER_AFTER_BODY:{us(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){BM(this,t);return}switch(this.insertionMode){case R.INITIAL:{Di(this,t);break}case R.BEFORE_HTML:{Gi(this,t);break}case R.BEFORE_HEAD:{Ki(this,t);break}case R.IN_HEAD:{Xi(this,t);break}case R.IN_HEAD_NO_SCRIPT:{Qi(this,t);break}case R.AFTER_HEAD:{Zi(this,t);break}case R.TEXT:{this._insertCharacters(t);break}case R.IN_TABLE:case R.IN_TABLE_BODY:case R.IN_ROW:{iu(this,t);break}case R.IN_COLUMN_GROUP:{ws(this,t);break}case R.AFTER_BODY:{ks(this,t);break}case R.AFTER_AFTER_BODY:{us(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){il(this,t);return}switch(this.insertionMode){case R.INITIAL:case R.BEFORE_HTML:case R.BEFORE_HEAD:case R.IN_HEAD:case R.IN_HEAD_NO_SCRIPT:case R.AFTER_HEAD:case R.IN_BODY:case R.IN_TABLE:case R.IN_CAPTION:case R.IN_COLUMN_GROUP:case R.IN_TABLE_BODY:case R.IN_ROW:case R.IN_CELL:case R.IN_SELECT:case R.IN_SELECT_IN_TABLE:case R.IN_TEMPLATE:case R.IN_FRAMESET:case R.AFTER_FRAMESET:{il(this,t);break}case R.IN_TABLE_TEXT:{_i(this,t);break}case R.AFTER_BODY:{pN(this,t);break}case R.AFTER_AFTER_BODY:case R.AFTER_AFTER_FRAMESET:{gN(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case R.INITIAL:{bN(this,t);break}case R.BEFORE_HEAD:case R.IN_HEAD:case R.IN_HEAD_NO_SCRIPT:case R.AFTER_HEAD:{this._err(t,$.misplacedDoctype);break}case R.IN_TABLE_TEXT:{_i(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,$.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?HM(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case R.INITIAL:{Di(this,t);break}case R.BEFORE_HTML:{yN(this,t);break}case R.BEFORE_HEAD:{EN(this,t);break}case R.IN_HEAD:{En(this,t);break}case R.IN_HEAD_NO_SCRIPT:{SN(this,t);break}case R.AFTER_HEAD:{CN(this,t);break}case R.IN_BODY:{Lt(this,t);break}case R.IN_TABLE:{li(this,t);break}case R.IN_TABLE_TEXT:{_i(this,t);break}case R.IN_CAPTION:{xM(this,t);break}case R.IN_COLUMN_GROUP:{B0(this,t);break}case R.IN_TABLE_BODY:{eo(this,t);break}case R.IN_ROW:{to(this,t);break}case R.IN_CELL:{AM(this,t);break}case R.IN_SELECT:{L4(this,t);break}case R.IN_SELECT_IN_TABLE:{wM(this,t);break}case R.IN_TEMPLATE:{IM(this,t);break}case R.AFTER_BODY:{MM(this,t);break}case R.IN_FRAMESET:{RM(this,t);break}case R.AFTER_FRAMESET:{_M(this,t);break}case R.AFTER_AFTER_BODY:{PM(this,t);break}case R.AFTER_AFTER_FRAMESET:{OM(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?zM(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case R.INITIAL:{Di(this,t);break}case R.BEFORE_HTML:{TN(this,t);break}case R.BEFORE_HEAD:{xN(this,t);break}case R.IN_HEAD:{vN(this,t);break}case R.IN_HEAD_NO_SCRIPT:{AN(this,t);break}case R.AFTER_HEAD:{wN(this,t);break}case R.IN_BODY:{Js(this,t);break}case R.TEXT:{dM(this,t);break}case R.IN_TABLE:{ha(this,t);break}case R.IN_TABLE_TEXT:{_i(this,t);break}case R.IN_CAPTION:{vM(this,t);break}case R.IN_COLUMN_GROUP:{SM(this,t);break}case R.IN_TABLE_BODY:{al(this,t);break}case R.IN_ROW:{_4(this,t);break}case R.IN_CELL:{CM(this,t);break}case R.IN_SELECT:{P4(this,t);break}case R.IN_SELECT_IN_TABLE:{kM(this,t);break}case R.IN_TEMPLATE:{NM(this,t);break}case R.AFTER_BODY:{B4(this,t);break}case R.IN_FRAMESET:{DM(this,t);break}case R.AFTER_FRAMESET:{LM(this,t);break}case R.AFTER_AFTER_BODY:{us(this,t);break}}}onEof(t){switch(this.insertionMode){case R.INITIAL:{Di(this,t);break}case R.BEFORE_HTML:{Gi(this,t);break}case R.BEFORE_HEAD:{Ki(this,t);break}case R.IN_HEAD:{Xi(this,t);break}case R.IN_HEAD_NO_SCRIPT:{Qi(this,t);break}case R.AFTER_HEAD:{Zi(this,t);break}case R.IN_BODY:case R.IN_TABLE:case R.IN_CAPTION:case R.IN_COLUMN_GROUP:case R.IN_TABLE_BODY:case R.IN_ROW:case R.IN_CELL:case R.IN_SELECT:case R.IN_SELECT_IN_TABLE:{N4(this,t);break}case R.TEXT:{hM(this,t);break}case R.IN_TABLE_TEXT:{_i(this,t);break}case R.IN_TEMPLATE:{O4(this,t);break}case R.AFTER_BODY:case R.IN_FRAMESET:case R.AFTER_FRAMESET:case R.AFTER_AFTER_BODY:case R.AFTER_AFTER_FRAMESET:{O0(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===A.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case R.IN_HEAD:case R.IN_HEAD_NO_SCRIPT:case R.AFTER_HEAD:case R.TEXT:case R.IN_COLUMN_GROUP:case R.IN_SELECT:case R.IN_SELECT_IN_TABLE:case R.IN_FRAMESET:case R.AFTER_FRAMESET:{this._insertCharacters(t);break}case R.IN_BODY:case R.IN_CAPTION:case R.IN_CELL:case R.IN_TEMPLATE:case R.AFTER_BODY:case R.AFTER_AFTER_BODY:case R.AFTER_AFTER_FRAMESET:{A4(this,t);break}case R.IN_TABLE:case R.IN_TABLE_BODY:case R.IN_ROW:{iu(this,t);break}case R.IN_TABLE_TEXT:{M4(this,t);break}}}}function lN(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):I4(e,t),n}function cN(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function dN(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),u=o&&a>=oN;!o||u?(u&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=hN(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function hN(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function fN(e,t,n){const r=e.treeAdapter.getTagName(t),i=xi(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===h.TEMPLATE&&a===Z.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function mN(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function P0(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function bN(e,t){e._setDocumentType(t);const n=t.forceQuirks?ln.QUIRKS:YI(t);WI(t)||e._err(t,$.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=R.BEFORE_HTML}function Di(e,t){e._err(t,$.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ln.QUIRKS),e.insertionMode=R.BEFORE_HTML,e._processToken(t)}function yN(e,t){t.tagID===h.HTML?(e._insertElement(t,Z.HTML),e.insertionMode=R.BEFORE_HEAD):Gi(e,t)}function TN(e,t){const n=t.tagID;(n===h.HTML||n===h.HEAD||n===h.BODY||n===h.BR)&&Gi(e,t)}function Gi(e,t){e._insertFakeRootElement(),e.insertionMode=R.BEFORE_HEAD,e._processToken(t)}function EN(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.HEAD:{e._insertElement(t,Z.HTML),e.headElement=e.openElements.current,e.insertionMode=R.IN_HEAD;break}default:Ki(e,t)}}function xN(e,t){const n=t.tagID;n===h.HEAD||n===h.BODY||n===h.HTML||n===h.BR?Ki(e,t):e._err(t,$.endTagWithoutMatchingOpenElement)}function Ki(e,t){e._insertFakeElement(H.HEAD,h.HEAD),e.headElement=e.openElements.current,e.insertionMode=R.IN_HEAD,e._processToken(t)}function En(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:{e._appendElement(t,Z.HTML),t.ackSelfClosing=!0;break}case h.TITLE:{e._switchToTextParsing(t,ft.RCDATA);break}case h.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,ft.RAWTEXT):(e._insertElement(t,Z.HTML),e.insertionMode=R.IN_HEAD_NO_SCRIPT);break}case h.NOFRAMES:case h.STYLE:{e._switchToTextParsing(t,ft.RAWTEXT);break}case h.SCRIPT:{e._switchToTextParsing(t,ft.SCRIPT_DATA);break}case h.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=R.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(R.IN_TEMPLATE);break}case h.HEAD:{e._err(t,$.misplacedStartTagForHeadElement);break}default:Xi(e,t)}}function vN(e,t){switch(t.tagID){case h.HEAD:{e.openElements.pop(),e.insertionMode=R.AFTER_HEAD;break}case h.BODY:case h.BR:case h.HTML:{Xi(e,t);break}case h.TEMPLATE:{Ur(e,t);break}default:e._err(t,$.endTagWithoutMatchingOpenElement)}}function Ur(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==h.TEMPLATE&&e._err(t,$.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,$.endTagWithoutMatchingOpenElement)}function Xi(e,t){e.openElements.pop(),e.insertionMode=R.AFTER_HEAD,e._processToken(t)}function SN(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.BASEFONT:case h.BGSOUND:case h.HEAD:case h.LINK:case h.META:case h.NOFRAMES:case h.STYLE:{En(e,t);break}case h.NOSCRIPT:{e._err(t,$.nestedNoscriptInHead);break}default:Qi(e,t)}}function AN(e,t){switch(t.tagID){case h.NOSCRIPT:{e.openElements.pop(),e.insertionMode=R.IN_HEAD;break}case h.BR:{Qi(e,t);break}default:e._err(t,$.endTagWithoutMatchingOpenElement)}}function Qi(e,t){const n=t.type===Ie.EOF?$.openElementsLeftAfterEof:$.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=R.IN_HEAD,e._processToken(t)}function CN(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.BODY:{e._insertElement(t,Z.HTML),e.framesetOk=!1,e.insertionMode=R.IN_BODY;break}case h.FRAMESET:{e._insertElement(t,Z.HTML),e.insertionMode=R.IN_FRAMESET;break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:case h.NOFRAMES:case h.SCRIPT:case h.STYLE:case h.TEMPLATE:case h.TITLE:{e._err(t,$.abandonedHeadElementChild),e.openElements.push(e.headElement,h.HEAD),En(e,t),e.openElements.remove(e.headElement);break}case h.HEAD:{e._err(t,$.misplacedStartTagForHeadElement);break}default:Zi(e,t)}}function wN(e,t){switch(t.tagID){case h.BODY:case h.HTML:case h.BR:{Zi(e,t);break}case h.TEMPLATE:{Ur(e,t);break}default:e._err(t,$.endTagWithoutMatchingOpenElement)}}function Zi(e,t){e._insertFakeElement(H.BODY,h.BODY),e.insertionMode=R.IN_BODY,Zs(e,t)}function Zs(e,t){switch(t.type){case Ie.CHARACTER:{C4(e,t);break}case Ie.WHITESPACE_CHARACTER:{A4(e,t);break}case Ie.COMMENT:{il(e,t);break}case Ie.START_TAG:{Lt(e,t);break}case Ie.END_TAG:{Js(e,t);break}case Ie.EOF:{N4(e,t);break}}}function A4(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function C4(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function kN(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function IN(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function NN(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Z.HTML),e.insertionMode=R.IN_FRAMESET)}function MN(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,Z.HTML)}function RN(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&rl.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Z.HTML)}function DN(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,Z.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function _N(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,Z.HTML),n||(e.formElement=e.openElements.current))}function LN(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===h.LI&&i===h.LI||(n===h.DD||n===h.DT)&&(i===h.DD||i===h.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==h.ADDRESS&&i!==h.DIV&&i!==h.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,Z.HTML)}function PN(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,Z.HTML),e.tokenizer.state=ft.PLAINTEXT}function ON(e,t){e.openElements.hasInScope(h.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.framesetOk=!1}function BN(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(H.A);n&&(P0(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function FN(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function HN(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(h.NOBR)&&(P0(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Z.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function zN(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function UN(e,t){e.treeAdapter.getDocumentMode(e.document)!==ln.QUIRKS&&e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,Z.HTML),e.framesetOk=!1,e.insertionMode=R.IN_TABLE}function w4(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Z.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function k4(e){const t=p4(e,_r.TYPE);return t!=null&&t.toLowerCase()===aN}function VN(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Z.HTML),k4(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function jN(e,t){e._appendElement(t,Z.HTML),t.ackSelfClosing=!0}function qN(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._appendElement(t,Z.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function $N(e,t){t.tagName=H.IMG,t.tagID=h.IMG,w4(e,t)}function WN(e,t){e._insertElement(t,Z.HTML),e.skipNextNewLine=!0,e.tokenizer.state=ft.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=R.TEXT}function YN(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,ft.RAWTEXT)}function GN(e,t){e.framesetOk=!1,e._switchToTextParsing(t,ft.RAWTEXT)}function k1(e,t){e._switchToTextParsing(t,ft.RAWTEXT)}function KN(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===R.IN_TABLE||e.insertionMode===R.IN_CAPTION||e.insertionMode===R.IN_TABLE_BODY||e.insertionMode===R.IN_ROW||e.insertionMode===R.IN_CELL?R.IN_SELECT_IN_TABLE:R.IN_SELECT}function XN(e,t){e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML)}function QN(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Z.HTML)}function ZN(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(h.RTC),e._insertElement(t,Z.HTML)}function JN(e,t){e._reconstructActiveFormattingElements(),x4(t),L0(t),t.selfClosing?e._appendElement(t,Z.MATHML):e._insertElement(t,Z.MATHML),t.ackSelfClosing=!0}function eM(e,t){e._reconstructActiveFormattingElements(),v4(t),L0(t),t.selfClosing?e._appendElement(t,Z.SVG):e._insertElement(t,Z.SVG),t.ackSelfClosing=!0}function I1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Z.HTML)}function Lt(e,t){switch(t.tagID){case h.I:case h.S:case h.B:case h.U:case h.EM:case h.TT:case h.BIG:case h.CODE:case h.FONT:case h.SMALL:case h.STRIKE:case h.STRONG:{FN(e,t);break}case h.A:{BN(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{RN(e,t);break}case h.P:case h.DL:case h.OL:case h.UL:case h.DIV:case h.DIR:case h.NAV:case h.MAIN:case h.MENU:case h.ASIDE:case h.CENTER:case h.FIGURE:case h.FOOTER:case h.HEADER:case h.HGROUP:case h.DIALOG:case h.DETAILS:case h.ADDRESS:case h.ARTICLE:case h.SEARCH:case h.SECTION:case h.SUMMARY:case h.FIELDSET:case h.BLOCKQUOTE:case h.FIGCAPTION:{MN(e,t);break}case h.LI:case h.DD:case h.DT:{LN(e,t);break}case h.BR:case h.IMG:case h.WBR:case h.AREA:case h.EMBED:case h.KEYGEN:{w4(e,t);break}case h.HR:{qN(e,t);break}case h.RB:case h.RTC:{QN(e,t);break}case h.RT:case h.RP:{ZN(e,t);break}case h.PRE:case h.LISTING:{DN(e,t);break}case h.XMP:{YN(e,t);break}case h.SVG:{eM(e,t);break}case h.HTML:{kN(e,t);break}case h.BASE:case h.LINK:case h.META:case h.STYLE:case h.TITLE:case h.SCRIPT:case h.BGSOUND:case h.BASEFONT:case h.TEMPLATE:{En(e,t);break}case h.BODY:{IN(e,t);break}case h.FORM:{_N(e,t);break}case h.NOBR:{HN(e,t);break}case h.MATH:{JN(e,t);break}case h.TABLE:{UN(e,t);break}case h.INPUT:{VN(e,t);break}case h.PARAM:case h.TRACK:case h.SOURCE:{jN(e,t);break}case h.IMAGE:{$N(e,t);break}case h.BUTTON:{ON(e,t);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{zN(e,t);break}case h.IFRAME:{GN(e,t);break}case h.SELECT:{KN(e,t);break}case h.OPTION:case h.OPTGROUP:{XN(e,t);break}case h.NOEMBED:case h.NOFRAMES:{k1(e,t);break}case h.FRAMESET:{NN(e,t);break}case h.TEXTAREA:{WN(e,t);break}case h.NOSCRIPT:{e.options.scriptingEnabled?k1(e,t):I1(e,t);break}case h.PLAINTEXT:{PN(e,t);break}case h.COL:case h.TH:case h.TD:case h.TR:case h.HEAD:case h.FRAME:case h.TBODY:case h.TFOOT:case h.THEAD:case h.CAPTION:case h.COLGROUP:break;default:I1(e,t)}}function tM(e,t){if(e.openElements.hasInScope(h.BODY)&&(e.insertionMode=R.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function nM(e,t){e.openElements.hasInScope(h.BODY)&&(e.insertionMode=R.AFTER_BODY,B4(e,t))}function rM(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function iM(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(h.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(h.FORM):n&&e.openElements.remove(n))}function aM(e){e.openElements.hasInButtonScope(h.P)||e._insertFakeElement(H.P,h.P),e._closePElement()}function sM(e){e.openElements.hasInListItemScope(h.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(h.LI),e.openElements.popUntilTagNamePopped(h.LI))}function oM(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function uM(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function lM(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function cM(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(H.BR,h.BR),e.openElements.pop(),e.framesetOk=!1}function I4(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==h.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function Js(e,t){switch(t.tagID){case h.A:case h.B:case h.I:case h.S:case h.U:case h.EM:case h.TT:case h.BIG:case h.CODE:case h.FONT:case h.NOBR:case h.SMALL:case h.STRIKE:case h.STRONG:{P0(e,t);break}case h.P:{aM(e);break}case h.DL:case h.UL:case h.OL:case h.DIR:case h.DIV:case h.NAV:case h.PRE:case h.MAIN:case h.MENU:case h.ASIDE:case h.BUTTON:case h.CENTER:case h.FIGURE:case h.FOOTER:case h.HEADER:case h.HGROUP:case h.DIALOG:case h.ADDRESS:case h.ARTICLE:case h.DETAILS:case h.SEARCH:case h.SECTION:case h.SUMMARY:case h.LISTING:case h.FIELDSET:case h.BLOCKQUOTE:case h.FIGCAPTION:{rM(e,t);break}case h.LI:{sM(e);break}case h.DD:case h.DT:{oM(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{uM(e);break}case h.BR:{cM(e);break}case h.BODY:{tM(e,t);break}case h.HTML:{nM(e,t);break}case h.FORM:{iM(e);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{lM(e,t);break}case h.TEMPLATE:{Ur(e,t);break}default:I4(e,t)}}function N4(e,t){e.tmplInsertionModeStack.length>0?O4(e,t):O0(e,t)}function dM(e,t){var n;t.tagID===h.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function hM(e,t){e._err(t,$.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function iu(e,t){if(e.openElements.currentTagId!==void 0&&S4.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=R.IN_TABLE_TEXT,t.type){case Ie.CHARACTER:{R4(e,t);break}case Ie.WHITESPACE_CHARACTER:{M4(e,t);break}}else ka(e,t)}function fM(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Z.HTML),e.insertionMode=R.IN_CAPTION}function mM(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Z.HTML),e.insertionMode=R.IN_COLUMN_GROUP}function pM(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.COLGROUP,h.COLGROUP),e.insertionMode=R.IN_COLUMN_GROUP,B0(e,t)}function gM(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Z.HTML),e.insertionMode=R.IN_TABLE_BODY}function bM(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.TBODY,h.TBODY),e.insertionMode=R.IN_TABLE_BODY,eo(e,t)}function yM(e,t){e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function TM(e,t){k4(t)?e._appendElement(t,Z.HTML):ka(e,t),t.ackSelfClosing=!0}function EM(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Z.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function li(e,t){switch(t.tagID){case h.TD:case h.TH:case h.TR:{bM(e,t);break}case h.STYLE:case h.SCRIPT:case h.TEMPLATE:{En(e,t);break}case h.COL:{pM(e,t);break}case h.FORM:{EM(e,t);break}case h.TABLE:{yM(e,t);break}case h.TBODY:case h.TFOOT:case h.THEAD:{gM(e,t);break}case h.INPUT:{TM(e,t);break}case h.CAPTION:{fM(e,t);break}case h.COLGROUP:{mM(e,t);break}default:ka(e,t)}}function ha(e,t){switch(t.tagID){case h.TABLE:{e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode());break}case h.TEMPLATE:{Ur(e,t);break}case h.BODY:case h.CAPTION:case h.COL:case h.COLGROUP:case h.HTML:case h.TBODY:case h.TD:case h.TFOOT:case h.TH:case h.THEAD:case h.TR:break;default:ka(e,t)}}function ka(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Zs(e,t),e.fosterParentingEnabled=n}function M4(e,t){e.pendingCharacterTokens.push(t)}function R4(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function _i(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===h.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===h.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===h.OPTGROUP&&e.openElements.pop();break}case h.OPTION:{e.openElements.currentTagId===h.OPTION&&e.openElements.pop();break}case h.SELECT:{e.openElements.hasInSelectScope(h.SELECT)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode());break}case h.TEMPLATE:{Ur(e,t);break}}}function wM(e,t){const n=t.tagID;n===h.CAPTION||n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR||n===h.TD||n===h.TH?(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e._processStartTag(t)):L4(e,t)}function kM(e,t){const n=t.tagID;n===h.CAPTION||n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR||n===h.TD||n===h.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),e.onEndTag(t)):P4(e,t)}function IM(e,t){switch(t.tagID){case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:case h.NOFRAMES:case h.SCRIPT:case h.STYLE:case h.TEMPLATE:case h.TITLE:{En(e,t);break}case h.CAPTION:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:{e.tmplInsertionModeStack[0]=R.IN_TABLE,e.insertionMode=R.IN_TABLE,li(e,t);break}case h.COL:{e.tmplInsertionModeStack[0]=R.IN_COLUMN_GROUP,e.insertionMode=R.IN_COLUMN_GROUP,B0(e,t);break}case h.TR:{e.tmplInsertionModeStack[0]=R.IN_TABLE_BODY,e.insertionMode=R.IN_TABLE_BODY,eo(e,t);break}case h.TD:case h.TH:{e.tmplInsertionModeStack[0]=R.IN_ROW,e.insertionMode=R.IN_ROW,to(e,t);break}default:e.tmplInsertionModeStack[0]=R.IN_BODY,e.insertionMode=R.IN_BODY,Lt(e,t)}}function NM(e,t){t.tagID===h.TEMPLATE&&Ur(e,t)}function O4(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):O0(e,t)}function MM(e,t){t.tagID===h.HTML?Lt(e,t):ks(e,t)}function B4(e,t){var n;if(t.tagID===h.HTML){if(e.fragmentContext||(e.insertionMode=R.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===h.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else ks(e,t)}function ks(e,t){e.insertionMode=R.IN_BODY,Zs(e,t)}function RM(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.FRAMESET:{e._insertElement(t,Z.HTML);break}case h.FRAME:{e._appendElement(t,Z.HTML),t.ackSelfClosing=!0;break}case h.NOFRAMES:{En(e,t);break}}}function DM(e,t){t.tagID===h.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==h.FRAMESET&&(e.insertionMode=R.AFTER_FRAMESET))}function _M(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.NOFRAMES:{En(e,t);break}}}function LM(e,t){t.tagID===h.HTML&&(e.insertionMode=R.AFTER_AFTER_FRAMESET)}function PM(e,t){t.tagID===h.HTML?Lt(e,t):us(e,t)}function us(e,t){e.insertionMode=R.IN_BODY,Zs(e,t)}function OM(e,t){switch(t.tagID){case h.HTML:{Lt(e,t);break}case h.NOFRAMES:{En(e,t);break}}}function BM(e,t){t.chars=nt,e._insertCharacters(t)}function FM(e,t){e._insertCharacters(t),e.framesetOk=!1}function F4(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Z.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function HM(e,t){if(eN(t))F4(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Z.MATHML?x4(t):r===Z.SVG&&(tN(t),v4(t)),L0(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function zM(e,t){if(t.tagID===h.P||t.tagID===h.BR){F4(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Z.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}H.AREA,H.BASE,H.BASEFONT,H.BGSOUND,H.BR,H.COL,H.EMBED,H.FRAME,H.HR,H.IMG,H.INPUT,H.KEYGEN,H.LINK,H.META,H.PARAM,H.SOURCE,H.TRACK,H.WBR;const UM=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,VM=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),N1={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function H4(e,t){const n=ZM(e),r=kp("type",{handlers:{root:jM,element:qM,text:$M,comment:U4,doctype:WM,raw:GM},unknown:KM}),i={parser:n?new w1(N1):w1.getFragmentParser(void 0,N1),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),vi(i,Pn());const a=n?i.parser.document:i.parser.getFragment(),s=jk(a,{file:i.options.file});return i.stitches&&$s(s,"comment",function(o,u,l){const c=o;if(c.value.stitch&&l&&u!==void 0){const d=l.children;return d[u]=c.value.stitch,u}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function z4(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);const n={type:Ie.CHARACTER,chars:e.value,location:Ia(e)};vi(t,Pn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function WM(e,t){const n={type:Ie.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ia(e)};vi(t,Pn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function YM(e,t){t.stitches=!0;const n=JM(e);if("children"in e&&"children"in n){const r=H4({type:"root",children:e.children},t.options);n.children=r.children}U4({type:"comment",value:{stitch:n}},t)}function U4(e,t){const n=e.value,r={type:Ie.COMMENT,data:n,location:Ia(e)};vi(t,Pn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function GM(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,V4(t,Pn(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(UM,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function KM(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))YM(n,t);else{let r="";throw VM.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function vi(e,t){V4(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=ft.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function V4(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function XM(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===ft.PLAINTEXT)return;vi(t,Pn(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:In.html;i===In.html&&n==="svg"&&(i=In.svg);const a=iI({...e,children:[]},{space:i===In.svg?"svg":"html"}),s={type:Ie.START_TAG,tagName:n,tagID:xi(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:Ia(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function QM(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&hI.includes(n)||t.parser.tokenizer.state===ft.PLAINTEXT)return;vi(t,zs(e));const r={type:Ie.END_TAG,tagName:n,tagID:xi(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Ia(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===ft.RCDATA||t.parser.tokenizer.state===ft.RAWTEXT||t.parser.tokenizer.state===ft.SCRIPT_DATA)&&(t.parser.tokenizer.state=ft.DATA)}function ZM(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Ia(e){const t=Pn(e)||{line:void 0,column:void 0,offset:void 0},n=zs(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function JM(e){return"children"in e?Or({...e,children:[]}):Or(e)}function eR(e){return function(t,n){return H4(t,{...e,file:n})}}const Cr=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Is={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Cr,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Cr],h2:[["className","sr-only"]],img:[...Cr,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Cr,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Cr],table:[...Cr],ul:[...Cr,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},lr={}.hasOwnProperty;function tR(e,t){let n={type:"root",children:[]};const r={schema:t?{...Is,...t}:Is,stack:[]},i=j4(r,e);return i&&(Array.isArray(i)?i.length===1?n=i[0]:n.children=i:n=i),n}function j4(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return nR(e,n);case"doctype":return rR(e,n);case"element":return iR(e,n);case"root":return aR(e,n);case"text":return sR(e,n)}}}function nR(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),a={type:"comment",value:r<0?n:n.slice(0,r)};return Na(a,t),a}}function rR(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return Na(n,t),n}}function iR(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=q4(e,t.children),i=oR(e,t.properties);e.stack.pop();let a=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&lr.call(e.schema.ancestors,n))){const o=e.schema.ancestors[n];let u=-1;for(a=!1;++u1){let i=!1,a=0;for(;++a-1&&a>u||s>-1&&a>s||o>-1&&a>o)return!0;let l=-1;for(;++l4&&t.slice(0,4).toLowerCase()==="data")return n}function cR(e){return function(t){return tR(t,e)}}const dR=ue("article",{name:"MuiMarkdownRenderer",slot:"Root"})(({theme:e})=>{const{palette:t,spacing:n,typography:r}=e,i={"& pre":{overflowX:"auto"}};return{...r.body1,overflowWrap:"break-word",maxWidth:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"stretch",gap:n(1),...i,"& think":{color:t.text.disabled},"& ul, & ol":{margin:0}}}),hR=e=>e.replace(//,` `).replace(/<\/think>/,` -`),fR=e=>e.replace(/\\\[/g,"$$").replace(/\\\]/g,"$$").replace(/\\\(/g,"$").replace(/\\\)/g,"$"),mR={h1:e=>L.jsx(Ve,{...e,variant:"h1"}),h2:e=>L.jsx(Ve,{...e,variant:"h2"}),h3:e=>L.jsx(Ve,{...e,variant:"h3"}),h4:e=>L.jsx(Ve,{...e,variant:"h4"}),h5:e=>L.jsx(Ve,{...e,variant:"h5"}),h6:e=>L.jsx(Ve,{...e,variant:"h6"}),p:e=>L.jsx(Ve,{...e,variant:"body1"}),caption:e=>L.jsx(Ve,{...e,variant:"caption"}),table:e=>L.jsx(l5,{children:L.jsx(Zg,{...e})}),thead:m5,tbody:r5,tr:b5,th:hc,td:hc},pR=["script","iframe","style","form","input","textarea"],gR={...Is,tagNames:(Is.tagNames||[]).filter(e=>!pR.includes(e))},bR=({content:e})=>(e=hR(e),e=fR(e),L.jsx(dR,{children:L.jsx(jv,{remarkPlugins:[Eh,r1],rehypePlugins:[zk,eR,[Eh,r1,cR,gR]],components:mR,children:e})})),HR=()=>{const[{status:e,messages:t}]=F1(),n=O.useRef(null),r=O.useRef(null),[i,a]=O.useState(!0);O.useEffect(()=>{r.current?.scrollIntoView({behavior:"smooth"})},[t]);const s=cs(o=>{const{current:u}=n;u&&a(u.scrollHeight-u.scrollTop-u.clientHeight<10)});return L.jsxs(Je,{ref:n,sx:{flex:1,overflowX:"hidden",overflowY:"auto",gap:4},onScroll:s,children:[t.map(o=>L.jsx(yR,{message:o},o.id)),e==="opened"&&L.jsx(F9,{size:"large"}),L.jsx(ci,{ref:r,sx:{width:"100%",height:0}})]})},yR=O.memo(({message:e})=>{const{role:t,content:n}=e,[{status:r},{generate:i}]=F1(),[a,s]=O.useState(!1);O.useEffect(()=>{const d=setTimeout(()=>{s(!1)},2e3);return()=>clearTimeout(d)},[a]);const o=cs(()=>{navigator.clipboard.writeText(n),s(!0)}),u=cs(()=>{i(e)}),l=t==="user"?"flex-end":"flex-start",c=t==="user"?L.jsx(Ve,{variant:"body1",sx:{px:2,py:1.5,borderRadius:"0.5rem",backgroundColor:"background.default"},children:n}):L.jsx(bR,{content:n});return L.jsx(Je,{direction:"row",sx:{width:"100%",justifyContent:l},children:L.jsxs(Je,{sx:{maxWidth:"100%",gap:1},children:[c,L.jsxs(Je,{direction:"row",sx:{justifyContent:l,gap:2,color:"grey.600"},children:[L.jsx(ls,{variant:"text",startIcon:a?L.jsx(sf,{}):L.jsx(of,{}),onClick:o,children:"Copy"}),t==="assistant"&&L.jsx(ls,{variant:"text",startIcon:L.jsx(_5,{}),onClick:u,children:"Regenerate"})]},"actions")]})})}),TR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",height:"100%",justifyContent:"flex-start",alignItems:"stretch",overflow:"hidden"}}),ER=ue(Je)(({theme:e})=>{const{palette:t,spacing:n}=e;return{height:"100%",paddingBlock:n(3),paddingInline:n(2),gap:n(3),overflow:"hidden",transition:"width 0.3s ease-in-out",backgroundColor:t.grey[200]}}),xR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",height:"4rem",flex:"none",paddingBlock:t(2),paddingInline:t(4),overflow:"hidden"}}),vR=ue(Je)(({theme:e})=>{const{palette:t,spacing:n}=e;return{flex:1,alignItems:"center",overflow:"hidden",backgroundColor:t.grey[100]}}),SR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"48.75rem",maxWidth:"100%",height:"100%",gap:t(4),padding:t(4),overflow:"hidden"}}),zR=({children:e})=>{const[{modelName:t,clusterInfo:{status:n}}]=fa(),[r,{open:i}]=so({color:"primary",titleIcon:L.jsx(Ja,{}),title:"Reconnect your nodes",content:L.jsxs(Je,{sx:{gap:7},children:[L.jsxs(Je,{sx:{gap:1},children:[L.jsx(Ve,{variant:"body1",children:"Run join command on your new Node"}),L.jsx(gc,{})]}),L.jsxs(Je,{sx:{gap:1},children:[L.jsx(Ve,{variant:"body1",children:"Check your live node status"}),L.jsx(Ve,{variant:"body2",color:"text.disabled",children:"After you successfully start the server on the nodes, you should see them show up on the below dashboard."}),L.jsx(Fa,{})]})]}),confirmLabel:"Finish"});O.useEffect(()=>{i(),n==="waiting"&&i()},[n,i]);const[a,{open:s}]=so({color:"primary",title:"",content:L.jsxs(L.Fragment,{children:[L.jsx(Ve,{variant:"body1",children:"Cluster rebalancing"}),L.jsx(Ve,{variant:"body2",color:"text.disabled",children:"We have noticed one of your nodes has been disconnected. We are now rebalancing your inference requests onto working nodes. Please wait a few seconds for the cluster to rebalance itself."}),L.jsx(Fa,{variant:"menu"})]}),confirmLabel:"Finish"});O.useEffect(()=>{n==="rebalancing"&&s()},[n,s]);const[o,u]=O.useState(!0),[l,{open:c}]=so({color:"primary",titleIcon:L.jsx(x5,{}),title:"Add Nodes",content:L.jsxs(Je,{sx:{gap:7},children:[L.jsxs(Je,{sx:{gap:1},children:[L.jsx(Ve,{variant:"body1",children:"Run join command on your new Node"}),L.jsx(gc,{})]}),L.jsxs(Je,{sx:{gap:1},children:[L.jsx(Ve,{variant:"body1",children:"Check your live node status"}),L.jsx(Ve,{variant:"body2",color:"text.disabled",children:"After you successfully start the server on the nodes, you should see them show up on the below dashboard."}),L.jsx(Fa,{})]})]})});return L.jsxs(TR,{direction:"row",children:[L.jsxs(ER,{sx:{width:o?"21.875rem":"3.5rem"},children:[L.jsxs(Je,{direction:"row",sx:{justifyContent:"flex-end",alignItems:"center",gap:2},children:[o&&L.jsx(H5,{}),L.jsx(ci,{sx:{flex:1}}),L.jsx(ul,{size:"em",sx:{fontSize:"1.5rem"},onClick:()=>u(d=>!d),children:o?L.jsx(C5,{}):L.jsx(k5,{})})]}),o&&L.jsxs(Je,{sx:{gap:4},children:[L.jsx(Fa,{variant:"menu"}),L.jsx(ls,{color:"info",startIcon:L.jsx(R5,{}),onClick:c,children:"Add Nodes"})]})]}),L.jsxs(vR,{children:[L.jsx(xR,{direction:"row",children:L.jsx(Ve,{variant:"h2",fontWeight:500,children:t})}),L.jsx(SR,{children:e})]}),l,r,a]})},AR=ue(Je)(({theme:e})=>{const{palette:t,spacing:n}=e;return{width:"100%",height:"100%",display:"flex",alignItems:"center",gap:n(3),padding:n(3),overflow:"hidden",backgroundColor:t.grey[100]}}),CR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",flex:"none",justifyContent:"flex-start",alignItems:"center",gap:t(1)}}),wR=ue(ci)(({theme:e})=>{const{spacing:t}=e;return{position:"relative",flex:"1",width:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",overflowY:"hidden"}}),kR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"30rem",height:"100%",gap:t(7),overflow:"hidden"}}),IR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"calc((100% - 30rem) / 2 - 4rem)",height:"100%",overflow:"auto",position:"absolute",top:0,left:"2rem",alignItems:"flex-end",gap:t(2)}}),NR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"calc((100% - 30rem) / 2 - 4rem)",height:"100%",overflow:"auto",position:"absolute",top:0,right:"2rem",alignItems:"flex-start",gap:t(2)}}),UR=({children:e,contentStart:t,contentEnd:n=L.jsx(MR,{})})=>L.jsxs(AR,{children:[L.jsx(CR,{direction:"row",children:L.jsx(F5,{})}),L.jsxs(wR,{children:[L.jsx(kR,{children:e}),t&&L.jsx(IR,{children:t})||void 0,n&&L.jsx(NR,{children:n})||void 0]})]}),MR=()=>{const[{initNodesNumber:e,networkType:t,modelName:n,clusterInfo:r}]=fa();return null};export{HR as C,F9 as D,U1 as F,G1 as I,gc as J,UR as M,Fa as N,tf as O,rf as S,_R as a,DR as b,V1 as c,Y1 as d,zR as e,ll as f,S3 as i,cl as u}; +`),fR=e=>e.replace(/\\\[/g,"$$").replace(/\\\]/g,"$$").replace(/\\\(/g,"$").replace(/\\\)/g,"$"),mR={h1:e=>L.jsx(Ve,{...e,variant:"h1"}),h2:e=>L.jsx(Ve,{...e,variant:"h2"}),h3:e=>L.jsx(Ve,{...e,variant:"h3"}),h4:e=>L.jsx(Ve,{...e,variant:"h4"}),h5:e=>L.jsx(Ve,{...e,variant:"h5"}),h6:e=>L.jsx(Ve,{...e,variant:"h6"}),p:e=>L.jsx(Ve,{...e,variant:"body1"}),caption:e=>L.jsx(Ve,{...e,variant:"caption"}),table:e=>L.jsx(c5,{children:L.jsx(Jg,{...e})}),thead:p5,tbody:i5,tr:y5,th:hc,td:hc},pR=["script","iframe","style","form","input","textarea"],gR={...Is,tagNames:(Is.tagNames||[]).filter(e=>!pR.includes(e))},bR=({content:e})=>(e=hR(e),e=fR(e),L.jsx(dR,{children:L.jsx(jv,{remarkPlugins:[xh,i1],rehypePlugins:[zk,eR,[xh,i1,cR,gR]],components:mR,children:e})})),HR=()=>{const[{status:e,messages:t}]=H1(),n=O.useRef(null),r=O.useRef(null),[i,a]=O.useState(!0);O.useEffect(()=>{r.current?.scrollIntoView({behavior:"smooth"})},[t]);const s=cs(o=>{const{current:u}=n;u&&a(u.scrollHeight-u.scrollTop-u.clientHeight<10)});return L.jsxs(Je,{ref:n,sx:{flex:1,overflowX:"hidden",overflowY:"auto",gap:4},onScroll:s,children:[t.map(o=>L.jsx(yR,{message:o},o.id)),e==="opened"&&L.jsx(F9,{size:"large"}),L.jsx(ci,{ref:r,sx:{width:"100%",height:0}})]})},yR=O.memo(({message:e})=>{const{role:t,content:n}=e,[{status:r},{generate:i}]=H1(),[a,s]=O.useState(!1);O.useEffect(()=>{const d=setTimeout(()=>{s(!1)},2e3);return()=>clearTimeout(d)},[a]);const o=cs(()=>{navigator.clipboard.writeText(n),s(!0)}),u=cs(()=>{i(e)}),l=t==="user"?"flex-end":"flex-start",c=t==="user"?L.jsx(Ve,{variant:"body1",sx:{px:2,py:1.5,borderRadius:"0.5rem",backgroundColor:"background.default"},children:n}):L.jsx(bR,{content:n});return L.jsx(Je,{direction:"row",sx:{width:"100%",justifyContent:l},children:L.jsxs(Je,{sx:{maxWidth:"100%",gap:1},children:[c,L.jsxs(Je,{direction:"row",sx:{justifyContent:l,gap:2,color:"grey.600"},children:[L.jsx(ls,{variant:"text",startIcon:a?L.jsx(of,{}):L.jsx(uf,{}),onClick:o,children:"Copy"}),t==="assistant"&&L.jsx(ls,{variant:"text",startIcon:L.jsx(L5,{}),onClick:u,children:"Regenerate"})]},"actions")]})})}),TR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",height:"100%",justifyContent:"flex-start",alignItems:"stretch",overflow:"hidden"}}),ER=ue(Je)(({theme:e})=>{const{palette:t,spacing:n}=e;return{height:"100%",paddingBlock:n(3),paddingInline:n(2),gap:n(3),overflow:"hidden",transition:"width 0.3s ease-in-out",backgroundColor:t.grey[200]}}),xR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",height:"4rem",flex:"none",paddingBlock:t(2),paddingInline:t(4),overflow:"hidden"}}),vR=ue(Je)(({theme:e})=>{const{palette:t,spacing:n}=e;return{flex:1,alignItems:"center",overflow:"hidden",backgroundColor:t.grey[100]}}),SR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"48.75rem",maxWidth:"100%",height:"100%",gap:t(4),padding:t(4),overflow:"hidden"}}),zR=({children:e})=>{const[{modelName:t,clusterInfo:{status:n}}]=fa(),[r,{open:i}]=so({color:"primary",titleIcon:L.jsx(Ja,{}),title:"Reconnect your nodes",content:L.jsxs(Je,{sx:{gap:7},children:[L.jsxs(Je,{sx:{gap:1},children:[L.jsx(Ve,{variant:"body1",children:"Run join command on your new Node"}),L.jsx(gc,{})]}),L.jsxs(Je,{sx:{gap:1},children:[L.jsx(Ve,{variant:"body1",children:"Check your live node status"}),L.jsx(Ve,{variant:"body2",color:"text.disabled",children:"After you successfully start the server on the nodes, you should see them show up on the below dashboard."}),L.jsx(Fa,{})]})]}),confirmLabel:"Finish"});O.useEffect(()=>{n==="waiting"&&i()},[n,i]);const[a,{open:s}]=so({color:"primary",title:"",content:L.jsxs(L.Fragment,{children:[L.jsx(Ve,{variant:"body1",children:"Cluster rebalancing"}),L.jsx(Ve,{variant:"body2",color:"text.disabled",children:"We have noticed one of your nodes has been disconnected. We are now rebalancing your inference requests onto working nodes. Please wait a few seconds for the cluster to rebalance itself."}),L.jsx(Fa,{variant:"menu"})]}),confirmLabel:"Finish"});O.useEffect(()=>{n==="rebalancing"&&s()},[n,s]);const[o,u]=O.useState(!0),[l,{open:c}]=so({color:"primary",titleIcon:L.jsx(v5,{}),title:"Add Nodes",content:L.jsxs(Je,{sx:{gap:7},children:[L.jsxs(Je,{sx:{gap:1},children:[L.jsx(Ve,{variant:"body1",children:"Run join command on your new Node"}),L.jsx(gc,{})]}),L.jsxs(Je,{sx:{gap:1},children:[L.jsx(Ve,{variant:"body1",children:"Check your live node status"}),L.jsx(Ve,{variant:"body2",color:"text.disabled",children:"After you successfully start the server on the nodes, you should see them show up on the below dashboard."}),L.jsx(Fa,{})]})]})});return L.jsxs(TR,{direction:"row",children:[L.jsxs(ER,{sx:{width:o?"21.875rem":"3.5rem"},children:[L.jsxs(Je,{direction:"row",sx:{justifyContent:"flex-end",alignItems:"center",gap:2},children:[o&&L.jsx(z5,{}),L.jsx(ci,{sx:{flex:1}}),L.jsx(ul,{size:"em",sx:{fontSize:"1.5rem"},onClick:()=>u(d=>!d),children:o?L.jsx(w5,{}):L.jsx(I5,{})})]}),o&&L.jsxs(Je,{sx:{gap:4},children:[L.jsx(Fa,{variant:"menu"}),L.jsx(ls,{color:"info",startIcon:L.jsx(D5,{}),onClick:c,children:"Add Nodes"})]})]}),L.jsxs(vR,{children:[L.jsx(xR,{direction:"row",children:L.jsx(Ve,{variant:"h2",fontWeight:500,children:t})}),L.jsx(SR,{children:e})]}),l,r,a]})},AR=ue(Je)(({theme:e})=>{const{palette:t,spacing:n}=e;return{width:"100%",height:"100%",display:"flex",alignItems:"center",gap:n(3),padding:n(3),overflow:"hidden",backgroundColor:t.grey[100]}}),CR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",flex:"none",justifyContent:"flex-start",alignItems:"center",gap:t(1)}}),wR=ue(ci)(({theme:e})=>{const{spacing:t}=e;return{position:"relative",flex:"1",width:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",overflowY:"hidden"}}),kR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"30rem",height:"100%",gap:t(7),overflow:"hidden"}}),IR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"calc((100% - 30rem) / 2 - 4rem)",height:"100%",overflow:"auto",position:"absolute",top:0,left:"2rem",alignItems:"flex-end",gap:t(2)}}),NR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"calc((100% - 30rem) / 2 - 4rem)",height:"100%",overflow:"auto",position:"absolute",top:0,right:"2rem",alignItems:"flex-start",gap:t(2)}}),UR=({children:e,contentStart:t,contentEnd:n=L.jsx(MR,{})})=>L.jsxs(AR,{children:[L.jsx(CR,{direction:"row",children:L.jsx(H5,{})}),L.jsxs(wR,{children:[L.jsx(kR,{children:e}),t&&L.jsx(IR,{children:t})||void 0,n&&L.jsx(NR,{children:n})||void 0]})]}),MR=()=>{const[{initNodesNumber:e,networkType:t,modelName:n,clusterInfo:r}]=fa();return null};export{HR as C,F9 as D,V1 as F,K1 as I,gc as J,UR as M,Fa as N,nf as O,af as S,_R as a,DR as b,j1 as c,G1 as d,zR as e,ll as f,A3 as i,cl as u}; diff --git a/src/frontend/dist/assets/setup-BAm7AVk9.js b/src/frontend/dist/assets/setup-Bxlzm9g5.js similarity index 98% rename from src/frontend/dist/assets/setup-BAm7AVk9.js rename to src/frontend/dist/assets/setup-Bxlzm9g5.js index c21a490d..4af110e2 100644 --- a/src/frontend/dist/assets/setup-BAm7AVk9.js +++ b/src/frontend/dist/assets/setup-Bxlzm9g5.js @@ -1 +1 @@ -import{r as i,a as X,u as G,j as o,s as L,c as M,b as S,d as I,g as V,B as D,m as A,t as C,e as F,f as Y,h as H,i as _,k as q,l as J,T as b,n as K,S as Q}from"./index-CjW85zni.js";import{O as Z,M as tt,a as et}from"./main-layout-BuYSNSZl.js";function ot(t){return i.Children.toArray(t).filter(e=>i.isValidElement(e))}const E=i.createContext({}),U=i.createContext(void 0);function rt(t,e){return e===void 0||t===void 0?!1:Array.isArray(e)?e.includes(t):t===e}const st=t=>{const{classes:e,fullWidth:a,selected:p,disabled:d,size:g,color:x}=t,u={root:["root",p&&"selected",d&&"disabled",a&&"fullWidth",`size${S(g)}`,x]};return I(u,V,e)},at=L(D,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:a}=t;return[e.root,e[`size${S(a.size)}`]]}})(A(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${C.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${C.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(F()).map(([e])=>({props:{color:e},style:{[`&.${C.selected}`]:{color:(t.vars||t).palette[e].main,backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),W=i.forwardRef(function(e,a){const{value:p,...d}=i.useContext(E),g=i.useContext(U),x=X({...d,selected:rt(e.value,p)},e),u=G({props:x,name:"MuiToggleButton"}),{children:$,className:v,color:l="standard",disabled:B=!1,disableFocusRipple:h=!1,fullWidth:n=!1,onChange:R,onClick:T,selected:f,size:k="medium",value:j,...z}=u,m={...u,color:l,disabled:B,disableFocusRipple:h,fullWidth:n,size:k},O=st(m),P=s=>{T&&(T(s,j),s.defaultPrevented)||R&&R(s,j)},c=g||"";return o.jsx(at,{className:M(d.className,O.root,v,c),disabled:B,focusRipple:!h,ref:a,onClick:P,onChange:R,value:j,ownerState:m,"aria-pressed":f,...z,children:$})});function nt(t){return H("MuiToggleButtonGroup",t)}const r=Y("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),lt=t=>{const{classes:e,orientation:a,fullWidth:p,disabled:d}=t,g={root:["root",a,p&&"fullWidth"],grouped:["grouped",`grouped${S(a)}`,d&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return I(g,nt,e)},it=L("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:a}=t;return[{[`& .${r.grouped}`]:e.grouped},{[`& .${r.grouped}`]:e[`grouped${S(a.orientation)}`]},{[`& .${r.firstButton}`]:e.firstButton},{[`& .${r.lastButton}`]:e.lastButton},{[`& .${r.middleButton}`]:e.middleButton},e.root,a.orientation==="vertical"&&e.vertical,a.fullWidth&&e.fullWidth]}})(A(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${r.grouped}`]:{[`&.${r.selected} + .${r.grouped}.${r.selected}`]:{borderTop:0,marginTop:0}},[`& .${r.firstButton},& .${r.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${r.lastButton},& .${r.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${r.lastButton}.${C.disabled},& .${r.middleButton}.${C.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${r.grouped}`]:{[`&.${r.selected} + .${r.grouped}.${r.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${r.firstButton},& .${r.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${r.lastButton},& .${r.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${r.lastButton}.${C.disabled},& .${r.middleButton}.${C.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),dt=i.forwardRef(function(e,a){const p=G({props:e,name:"MuiToggleButtonGroup"}),{children:d,className:g,color:x="standard",disabled:u=!1,exclusive:$=!1,fullWidth:v=!1,onChange:l,orientation:B="horizontal",size:h="medium",value:n,...R}=p,T={...p,disabled:u,fullWidth:v,orientation:B,size:h},f=lt(T),k=i.useCallback((c,s)=>{if(!l)return;const w=n&&n.indexOf(s);let N;n&&w>=0?(N=n.slice(),N.splice(w,1)):N=n?n.concat(s):[s],l(c,N)},[l,n]),j=i.useCallback((c,s)=>{l&&l(c,n===s?null:s)},[l,n]),z=i.useMemo(()=>({className:f.grouped,onChange:$?j:k,value:n,size:h,fullWidth:v,color:x,disabled:u}),[f.grouped,$,j,k,n,h,v,x,u]),m=ot(d),O=m.length,P=c=>{const s=c===0,w=c===O-1;return s&&w?"":s?f.firstButton:w?f.lastButton:f.middleButton};return o.jsx(it,{role:"group",className:M(f.root,g),ref:a,ownerState:T,...R,children:o.jsx(E.Provider,{value:z,children:m.map((c,s)=>o.jsx(U.Provider,{value:P(s),children:c},s))})})}),ut=t=>o.jsx(Z,{type:"number",...t,inputRef:t.inputRef,slotProps:{input:{step:1,sx:{textAlign:"center",...t.slotProps?.input?.sx},...t.slotProps?.input},...t.slotProps},"data-debug-typeof":typeof t.value}),y=L(Q)(({theme:t})=>{const{spacing:e}=t;return{overflowY:"auto"}});function gt(){const[{networkType:t,initNodesNumber:e,modelName:a,modelInfoList:p},{setNetworkType:d,setInitNodesNumber:g,setModelName:x,init:u}]=_(),$=q(),v=J(()=>{u(),$("/join")});return o.jsxs(tt,{children:[o.jsx(b,{variant:"h1",children:"Build Your Own AI Cluster"}),o.jsxs(y,{gap:2.5,children:[o.jsxs(y,{gap:.5,children:[o.jsx(b,{variant:"body1",children:"Step 1 - Specify the initial number of worker nodes to join"}),o.jsx(b,{variant:"body2",color:"text.secondary",fontWeight:"regular",children:"XXX Explainations here"})]}),o.jsxs(y,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:2,children:[o.jsx(b,{color:"text.secondary",children:"Node Number"}),o.jsx(ut,{sx:{width:"10rem"},value:e,onChange:l=>g(Number(l.target.value))})]}),o.jsxs(y,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:2,children:[o.jsx(b,{color:"text.secondary",children:"Are you nodes within the same local network?"}),o.jsxs(dt,{sx:{width:"10rem"},exclusive:!0,value:t,onChange:(l,B)=>B&&d(B),children:[o.jsx(W,{value:"local",children:"Local"}),o.jsx(W,{value:"remote",children:"Remote"})]})]})]}),o.jsxs(y,{gap:2.5,children:[o.jsxs(y,{gap:.5,children:[o.jsx(b,{variant:"body1",children:"Step 2 - Select the model you would like to host"}),o.jsx(b,{variant:"body2",color:"text.secondary",fontWeight:"regular",children:"XXX Explainations here"})]}),o.jsx(et,{})]}),o.jsx(y,{direction:"row",justifyContent:"flex-end",alignItems:"center",gap:2,children:o.jsx(K,{onClick:v,children:"Continue"})})]})}export{gt as default}; +import{r as i,a as X,u as G,j as o,s as L,c as M,b as S,d as I,g as V,B as D,m as A,t as C,e as F,f as Y,h as H,i as _,k as q,l as J,T as b,n as K,S as Q}from"./index-PErRMx3K.js";import{O as Z,M as tt,a as et}from"./main-layout-By96MLvX.js";function ot(t){return i.Children.toArray(t).filter(e=>i.isValidElement(e))}const E=i.createContext({}),U=i.createContext(void 0);function rt(t,e){return e===void 0||t===void 0?!1:Array.isArray(e)?e.includes(t):t===e}const st=t=>{const{classes:e,fullWidth:a,selected:p,disabled:d,size:g,color:x}=t,u={root:["root",p&&"selected",d&&"disabled",a&&"fullWidth",`size${S(g)}`,x]};return I(u,V,e)},at=L(D,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:a}=t;return[e.root,e[`size${S(a.size)}`]]}})(A(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${C.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${C.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(F()).map(([e])=>({props:{color:e},style:{[`&.${C.selected}`]:{color:(t.vars||t).palette[e].main,backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),W=i.forwardRef(function(e,a){const{value:p,...d}=i.useContext(E),g=i.useContext(U),x=X({...d,selected:rt(e.value,p)},e),u=G({props:x,name:"MuiToggleButton"}),{children:$,className:v,color:l="standard",disabled:B=!1,disableFocusRipple:h=!1,fullWidth:n=!1,onChange:R,onClick:T,selected:f,size:k="medium",value:j,...z}=u,m={...u,color:l,disabled:B,disableFocusRipple:h,fullWidth:n,size:k},O=st(m),P=s=>{T&&(T(s,j),s.defaultPrevented)||R&&R(s,j)},c=g||"";return o.jsx(at,{className:M(d.className,O.root,v,c),disabled:B,focusRipple:!h,ref:a,onClick:P,onChange:R,value:j,ownerState:m,"aria-pressed":f,...z,children:$})});function nt(t){return H("MuiToggleButtonGroup",t)}const r=Y("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),lt=t=>{const{classes:e,orientation:a,fullWidth:p,disabled:d}=t,g={root:["root",a,p&&"fullWidth"],grouped:["grouped",`grouped${S(a)}`,d&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return I(g,nt,e)},it=L("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:a}=t;return[{[`& .${r.grouped}`]:e.grouped},{[`& .${r.grouped}`]:e[`grouped${S(a.orientation)}`]},{[`& .${r.firstButton}`]:e.firstButton},{[`& .${r.lastButton}`]:e.lastButton},{[`& .${r.middleButton}`]:e.middleButton},e.root,a.orientation==="vertical"&&e.vertical,a.fullWidth&&e.fullWidth]}})(A(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${r.grouped}`]:{[`&.${r.selected} + .${r.grouped}.${r.selected}`]:{borderTop:0,marginTop:0}},[`& .${r.firstButton},& .${r.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${r.lastButton},& .${r.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${r.lastButton}.${C.disabled},& .${r.middleButton}.${C.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${r.grouped}`]:{[`&.${r.selected} + .${r.grouped}.${r.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${r.firstButton},& .${r.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${r.lastButton},& .${r.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${r.lastButton}.${C.disabled},& .${r.middleButton}.${C.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),dt=i.forwardRef(function(e,a){const p=G({props:e,name:"MuiToggleButtonGroup"}),{children:d,className:g,color:x="standard",disabled:u=!1,exclusive:$=!1,fullWidth:v=!1,onChange:l,orientation:B="horizontal",size:h="medium",value:n,...R}=p,T={...p,disabled:u,fullWidth:v,orientation:B,size:h},f=lt(T),k=i.useCallback((c,s)=>{if(!l)return;const w=n&&n.indexOf(s);let N;n&&w>=0?(N=n.slice(),N.splice(w,1)):N=n?n.concat(s):[s],l(c,N)},[l,n]),j=i.useCallback((c,s)=>{l&&l(c,n===s?null:s)},[l,n]),z=i.useMemo(()=>({className:f.grouped,onChange:$?j:k,value:n,size:h,fullWidth:v,color:x,disabled:u}),[f.grouped,$,j,k,n,h,v,x,u]),m=ot(d),O=m.length,P=c=>{const s=c===0,w=c===O-1;return s&&w?"":s?f.firstButton:w?f.lastButton:f.middleButton};return o.jsx(it,{role:"group",className:M(f.root,g),ref:a,ownerState:T,...R,children:o.jsx(E.Provider,{value:z,children:m.map((c,s)=>o.jsx(U.Provider,{value:P(s),children:c},s))})})}),ut=t=>o.jsx(Z,{type:"number",...t,inputRef:t.inputRef,slotProps:{input:{step:1,sx:{textAlign:"center",...t.slotProps?.input?.sx},...t.slotProps?.input},...t.slotProps},"data-debug-typeof":typeof t.value}),y=L(Q)(({theme:t})=>{const{spacing:e}=t;return{overflowY:"auto"}});function gt(){const[{networkType:t,initNodesNumber:e,modelName:a,modelInfoList:p},{setNetworkType:d,setInitNodesNumber:g,setModelName:x,init:u}]=_(),$=q(),v=J(()=>{u(),$("/join")});return o.jsxs(tt,{children:[o.jsx(b,{variant:"h1",children:"Build Your Own AI Cluster"}),o.jsxs(y,{gap:2.5,children:[o.jsxs(y,{gap:.5,children:[o.jsx(b,{variant:"body1",children:"Step 1 - Specify the initial number of worker nodes to join"}),o.jsx(b,{variant:"body2",color:"text.secondary",fontWeight:"regular",children:"XXX Explainations here"})]}),o.jsxs(y,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:2,children:[o.jsx(b,{color:"text.secondary",children:"Node Number"}),o.jsx(ut,{sx:{width:"10rem"},value:e,onChange:l=>g(Number(l.target.value))})]}),o.jsxs(y,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:2,children:[o.jsx(b,{color:"text.secondary",children:"Are you nodes within the same local network?"}),o.jsxs(dt,{sx:{width:"10rem"},exclusive:!0,value:t,onChange:(l,B)=>B&&d(B),children:[o.jsx(W,{value:"local",children:"Local"}),o.jsx(W,{value:"remote",children:"Remote"})]})]})]}),o.jsxs(y,{gap:2.5,children:[o.jsxs(y,{gap:.5,children:[o.jsx(b,{variant:"body1",children:"Step 2 - Select the model you would like to host"}),o.jsx(b,{variant:"body2",color:"text.secondary",fontWeight:"regular",children:"XXX Explainations here"})]}),o.jsx(et,{})]}),o.jsx(y,{direction:"row",justifyContent:"flex-end",alignItems:"center",gap:2,children:o.jsx(K,{onClick:v,children:"Continue"})})]})}export{gt as default}; diff --git a/src/frontend/dist/index.html b/src/frontend/dist/index.html index 89121247..09359596 100644 --- a/src/frontend/dist/index.html +++ b/src/frontend/dist/index.html @@ -5,7 +5,7 @@ Parallax Open Source - + From f6269723b0ea4165504718c50ba2f0de93475136 Mon Sep 17 00:00:00 2001 From: Xiaodong Date: Mon, 29 Sep 2025 17:32:49 +0800 Subject: [PATCH 22/25] fix(frontend): node join error determine --- src/frontend/src/pages/join.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/pages/join.tsx b/src/frontend/src/pages/join.tsx index afe40f6e..0807a1e6 100644 --- a/src/frontend/src/pages/join.tsx +++ b/src/frontend/src/pages/join.tsx @@ -39,7 +39,8 @@ export default function PageJoin() { const isError = useMemo(() => { if ( - nodeInfoList.length >= initNodesNumber + initNodesNumber > 0 + && nodeInfoList.length >= initNodesNumber && nodeInfoList.every((node) => node.status === 'available') && clusterStatus === 'waiting' ) { From f47ba7778f421b92d8ae37ec6c19f703238c3146 Mon Sep 17 00:00:00 2001 From: Xiaodong Date: Mon, 29 Sep 2025 17:33:41 +0800 Subject: [PATCH 23/25] build(frontend): build for join node error and navigator --- .../dist/assets/{chat-DCeKw9oj.js => chat-B9cTpCh0.js} | 2 +- .../dist/assets/{index-PErRMx3K.js => index-BlRBE7Ft.js} | 4 ++-- src/frontend/dist/assets/join-Btvp11Vj.js | 6 ++++++ src/frontend/dist/assets/join-Ct6Vm6PP.js | 6 ------ .../{main-layout-By96MLvX.js => main-layout-C11OgrSN.js} | 2 +- .../dist/assets/{setup-Bxlzm9g5.js => setup-Bsllr9Nn.js} | 2 +- src/frontend/dist/index.html | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) rename src/frontend/dist/assets/{chat-DCeKw9oj.js => chat-B9cTpCh0.js} (99%) rename src/frontend/dist/assets/{index-PErRMx3K.js => index-BlRBE7Ft.js} (99%) create mode 100644 src/frontend/dist/assets/join-Btvp11Vj.js delete mode 100644 src/frontend/dist/assets/join-Ct6Vm6PP.js rename src/frontend/dist/assets/{main-layout-By96MLvX.js => main-layout-C11OgrSN.js} (99%) rename src/frontend/dist/assets/{setup-Bxlzm9g5.js => setup-Bsllr9Nn.js} (98%) diff --git a/src/frontend/dist/assets/chat-DCeKw9oj.js b/src/frontend/dist/assets/chat-B9cTpCh0.js similarity index 99% rename from src/frontend/dist/assets/chat-DCeKw9oj.js rename to src/frontend/dist/assets/chat-B9cTpCh0.js index 0686ec1c..3b16053a 100644 --- a/src/frontend/dist/assets/chat-DCeKw9oj.js +++ b/src/frontend/dist/assets/chat-B9cTpCh0.js @@ -1,4 +1,4 @@ -import{h as A,f as N,r as x,u as H,j as a,s as T,c as U,b as z,d as W,m as V,e as Te,p as ze,q as Le,v as w,o as ee,i as Me,w as Re,l as je,S as ne,n as le}from"./index-PErRMx3K.js";import{i as Z,b as qe,c as ie,F as $e,u as te,f as re,O as Ae,d as Ne,I as He,S as Ue,D as We,e as Ee,C as De}from"./main-layout-By96MLvX.js";function Be(e){return A("MuiFormControl",e)}N("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Oe=e=>{const{classes:t,margin:r,fullWidth:o}=e,s={root:["root",r!=="none"&&`margin${z(r)}`,o&&"fullWidth"]};return W(s,Be,t)},_e=T("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${z(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ke=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormControl"}),{children:s,className:l,color:i="primary",component:p="div",disabled:n=!1,error:d=!1,focused:m,fullWidth:h=!1,hiddenLabel:b=!1,margin:g="none",required:f=!1,size:u="medium",variant:c="outlined",...C}=o,I={...o,color:i,component:p,disabled:n,error:d,fullWidth:h,hiddenLabel:b,margin:g,required:f,size:u,variant:c},G=Oe(I),[y,J]=x.useState(()=>{let F=!1;return s&&x.Children.forEach(s,v=>{if(!Z(v,["Input","Select"]))return;const j=Z(v,["Select"])?v.props.input:v;j&&qe(j.props)&&(F=!0)}),F}),[E,L]=x.useState(()=>{let F=!1;return s&&x.Children.forEach(s,v=>{Z(v,["Input","Select"])&&(ie(v.props,!0)||ie(v.props.inputProps,!0))&&(F=!0)}),F}),[D,M]=x.useState(!1);n&&D&&M(!1);const B=m!==void 0&&!n?m:D;let O;x.useRef(!1);const _=x.useCallback(()=>{L(!0)},[]),R=x.useCallback(()=>{L(!1)},[]),Q=x.useMemo(()=>({adornedStart:y,setAdornedStart:J,color:i,disabled:n,error:d,filled:E,focused:B,fullWidth:h,hiddenLabel:b,size:u,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:R,onFilled:_,registerEffect:O,required:f,variant:c}),[y,i,n,d,E,B,h,b,O,R,_,f,u,c]);return a.jsx($e.Provider,{value:Q,children:a.jsx(_e,{as:p,ownerState:I,className:U(G.root,l),ref:r,...C,children:s})})});function Ve(e){return A("MuiFormHelperText",e)}const de=N("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ce;const Ge=e=>{const{classes:t,contained:r,size:o,disabled:s,error:l,filled:i,focused:p,required:n}=e,d={root:["root",s&&"disabled",l&&"error",o&&`size${z(o)}`,r&&"contained",p&&"focused",i&&"filled",n&&"required"]};return W(d,Ve,t)},Je=T("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${z(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${de.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${de.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Qe=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormHelperText"}),{children:s,className:l,component:i="p",disabled:p,error:n,filled:d,focused:m,margin:h,required:b,variant:g,...f}=o,u=te(),c=re({props:o,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),C={...o,component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required};delete C.ownerState;const I=Ge(C);return a.jsx(Je,{as:i,className:U(I.root,l),ref:r,...f,ownerState:C,children:s===" "?ce||(ce=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});function Xe(e){return A("MuiFormLabel",e)}const $=N("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ye=e=>{const{classes:t,color:r,focused:o,disabled:s,error:l,filled:i,required:p}=e,n={root:["root",`color${z(r)}`,s&&"disabled",l&&"error",i&&"filled",o&&"focused",p&&"required"],asterisk:["asterisk",l&&"error"]};return W(n,Xe,t)},Ze=T("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Te()).map(([t])=>({props:{color:t},style:{[`&.${$.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),et=T("span",{name:"MuiFormLabel",slot:"Asterisk"})(V(({theme:e})=>({[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}))),tt=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormLabel"}),{children:s,className:l,color:i,component:p="label",disabled:n,error:d,filled:m,focused:h,required:b,...g}=o,f=te(),u=re({props:o,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),c={...o,color:u.color||"primary",component:p,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required},C=Ye(c);return a.jsxs(Ze,{as:p,ownerState:c,className:U(C.root,l),ref:r,...g,children:[s,u.required&&a.jsxs(et,{ownerState:c,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});function rt(e){return A("MuiInputLabel",e)}N("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ot=e=>{const{classes:t,formControl:r,size:o,shrink:s,disableAnimation:l,variant:i,required:p}=e,n={root:["root",r&&"formControl",!l&&"animated",s&&"shrink",o&&o!=="medium"&&`size${z(o)}`,i],asterisk:[p&&"asterisk"]},d=W(n,rt,t);return{...t,...d}},st=T(tt,{shouldForwardProp:e=>ze(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${$.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(V(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:o})=>t==="filled"&&r.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),at=x.forwardRef(function(t,r){const o=H({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:l,shrink:i,variant:p,className:n,...d}=o,m=te();let h=i;typeof h>"u"&&m&&(h=m.filled||m.focused||m.adornedStart);const b=re({props:o,muiFormControl:m,states:["size","variant","required","focused"]}),g={...o,disableAnimation:s,formControl:m,shrink:h,size:b.size,variant:b.variant,required:b.required,focused:b.focused},f=ot(g);return a.jsx(st,{"data-shrink":h,ref:r,className:U(f.root,n),...d,ownerState:g,classes:f})});function nt(e){return A("MuiTextField",e)}N("MuiTextField",["root"]);const lt={standard:He,filled:Ne,outlined:Ae},it=e=>{const{classes:t}=e;return W({root:["root"]},nt,t)},dt=T(Ke,{name:"MuiTextField",slot:"Root"})({}),ct=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:l=!1,children:i,className:p,color:n="primary",defaultValue:d,disabled:m=!1,error:h=!1,FormHelperTextProps:b,fullWidth:g=!1,helperText:f,id:u,InputLabelProps:c,inputProps:C,InputProps:I,inputRef:G,label:y,maxRows:J,minRows:E,multiline:L=!1,name:D,onBlur:M,onChange:B,onFocus:O,placeholder:_,required:R=!1,rows:Q,select:F=!1,SelectProps:v,slots:j={},slotProps:pe={},type:ue,value:oe,variant:K="outlined",...me}=o,S={...o,autoFocus:l,color:n,disabled:m,error:h,fullWidth:g,multiline:L,required:R,select:F,variant:K},fe=it(S),k=Le(u),X=f&&k?`${k}-helper-text`:void 0,se=y&&k?`${k}-label`:void 0,xe=lt[K],P={slots:j,slotProps:{input:I,inputLabel:c,htmlInput:C,formHelperText:b,select:v,...pe}},q={},Y=P.slotProps.inputLabel;K==="outlined"&&(Y&&typeof Y.shrink<"u"&&(q.notched=Y.shrink),q.label=y),F&&((!v||!v.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[he,be]=w("root",{elementType:dt,shouldForwardComponentProp:!0,externalForwardedProps:{...P,...me},ownerState:S,className:U(fe.root,p),ref:r,additionalProps:{disabled:m,error:h,fullWidth:g,required:R,color:n,variant:K}}),[ve,ge]=w("input",{elementType:xe,externalForwardedProps:P,additionalProps:q,ownerState:S}),[Ce,Fe]=w("inputLabel",{elementType:at,externalForwardedProps:P,ownerState:S}),[ye,Se]=w("htmlInput",{elementType:"input",externalForwardedProps:P,ownerState:S}),[ke,Pe]=w("formHelperText",{elementType:Qe,externalForwardedProps:P,ownerState:S}),[Ie,we]=w("select",{elementType:Ue,externalForwardedProps:P,ownerState:S}),ae=a.jsx(ve,{"aria-describedby":X,autoComplete:s,autoFocus:l,defaultValue:d,fullWidth:g,multiline:L,name:D,rows:Q,maxRows:J,minRows:E,type:ue,value:oe,id:k,inputRef:G,onBlur:M,onChange:B,onFocus:O,placeholder:_,inputProps:Se,slots:{input:j.htmlInput?ye:void 0},...ge});return a.jsxs(he,{...be,children:[y!=null&&y!==""&&a.jsx(Ce,{htmlFor:k,id:se,...Fe,children:y}),F?a.jsx(Ie,{"aria-describedby":X,id:k,labelId:se,value:oe,input:ae,...we,children:i}):ae,f&&a.jsx(ke,{id:X,...Pe,children:f})]})});/** +import{h as A,f as N,r as x,u as H,j as a,s as T,c as U,b as z,d as W,m as V,e as Te,p as ze,q as Le,v as w,o as ee,i as Me,w as Re,l as je,S as ne,n as le}from"./index-BlRBE7Ft.js";import{i as Z,b as qe,c as ie,F as $e,u as te,f as re,O as Ae,d as Ne,I as He,S as Ue,D as We,e as Ee,C as De}from"./main-layout-C11OgrSN.js";function Be(e){return A("MuiFormControl",e)}N("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Oe=e=>{const{classes:t,margin:r,fullWidth:o}=e,s={root:["root",r!=="none"&&`margin${z(r)}`,o&&"fullWidth"]};return W(s,Be,t)},_e=T("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${z(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ke=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormControl"}),{children:s,className:l,color:i="primary",component:p="div",disabled:n=!1,error:d=!1,focused:m,fullWidth:h=!1,hiddenLabel:b=!1,margin:g="none",required:f=!1,size:u="medium",variant:c="outlined",...C}=o,I={...o,color:i,component:p,disabled:n,error:d,fullWidth:h,hiddenLabel:b,margin:g,required:f,size:u,variant:c},G=Oe(I),[y,J]=x.useState(()=>{let F=!1;return s&&x.Children.forEach(s,v=>{if(!Z(v,["Input","Select"]))return;const j=Z(v,["Select"])?v.props.input:v;j&&qe(j.props)&&(F=!0)}),F}),[E,L]=x.useState(()=>{let F=!1;return s&&x.Children.forEach(s,v=>{Z(v,["Input","Select"])&&(ie(v.props,!0)||ie(v.props.inputProps,!0))&&(F=!0)}),F}),[D,M]=x.useState(!1);n&&D&&M(!1);const B=m!==void 0&&!n?m:D;let O;x.useRef(!1);const _=x.useCallback(()=>{L(!0)},[]),R=x.useCallback(()=>{L(!1)},[]),Q=x.useMemo(()=>({adornedStart:y,setAdornedStart:J,color:i,disabled:n,error:d,filled:E,focused:B,fullWidth:h,hiddenLabel:b,size:u,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:R,onFilled:_,registerEffect:O,required:f,variant:c}),[y,i,n,d,E,B,h,b,O,R,_,f,u,c]);return a.jsx($e.Provider,{value:Q,children:a.jsx(_e,{as:p,ownerState:I,className:U(G.root,l),ref:r,...C,children:s})})});function Ve(e){return A("MuiFormHelperText",e)}const de=N("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ce;const Ge=e=>{const{classes:t,contained:r,size:o,disabled:s,error:l,filled:i,focused:p,required:n}=e,d={root:["root",s&&"disabled",l&&"error",o&&`size${z(o)}`,r&&"contained",p&&"focused",i&&"filled",n&&"required"]};return W(d,Ve,t)},Je=T("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${z(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${de.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${de.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Qe=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormHelperText"}),{children:s,className:l,component:i="p",disabled:p,error:n,filled:d,focused:m,margin:h,required:b,variant:g,...f}=o,u=te(),c=re({props:o,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),C={...o,component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required};delete C.ownerState;const I=Ge(C);return a.jsx(Je,{as:i,className:U(I.root,l),ref:r,...f,ownerState:C,children:s===" "?ce||(ce=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});function Xe(e){return A("MuiFormLabel",e)}const $=N("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ye=e=>{const{classes:t,color:r,focused:o,disabled:s,error:l,filled:i,required:p}=e,n={root:["root",`color${z(r)}`,s&&"disabled",l&&"error",i&&"filled",o&&"focused",p&&"required"],asterisk:["asterisk",l&&"error"]};return W(n,Xe,t)},Ze=T("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Te()).map(([t])=>({props:{color:t},style:{[`&.${$.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),et=T("span",{name:"MuiFormLabel",slot:"Asterisk"})(V(({theme:e})=>({[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}))),tt=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormLabel"}),{children:s,className:l,color:i,component:p="label",disabled:n,error:d,filled:m,focused:h,required:b,...g}=o,f=te(),u=re({props:o,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),c={...o,color:u.color||"primary",component:p,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required},C=Ye(c);return a.jsxs(Ze,{as:p,ownerState:c,className:U(C.root,l),ref:r,...g,children:[s,u.required&&a.jsxs(et,{ownerState:c,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});function rt(e){return A("MuiInputLabel",e)}N("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ot=e=>{const{classes:t,formControl:r,size:o,shrink:s,disableAnimation:l,variant:i,required:p}=e,n={root:["root",r&&"formControl",!l&&"animated",s&&"shrink",o&&o!=="medium"&&`size${z(o)}`,i],asterisk:[p&&"asterisk"]},d=W(n,rt,t);return{...t,...d}},st=T(tt,{shouldForwardProp:e=>ze(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${$.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(V(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:o})=>t==="filled"&&r.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),at=x.forwardRef(function(t,r){const o=H({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:l,shrink:i,variant:p,className:n,...d}=o,m=te();let h=i;typeof h>"u"&&m&&(h=m.filled||m.focused||m.adornedStart);const b=re({props:o,muiFormControl:m,states:["size","variant","required","focused"]}),g={...o,disableAnimation:s,formControl:m,shrink:h,size:b.size,variant:b.variant,required:b.required,focused:b.focused},f=ot(g);return a.jsx(st,{"data-shrink":h,ref:r,className:U(f.root,n),...d,ownerState:g,classes:f})});function nt(e){return A("MuiTextField",e)}N("MuiTextField",["root"]);const lt={standard:He,filled:Ne,outlined:Ae},it=e=>{const{classes:t}=e;return W({root:["root"]},nt,t)},dt=T(Ke,{name:"MuiTextField",slot:"Root"})({}),ct=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:l=!1,children:i,className:p,color:n="primary",defaultValue:d,disabled:m=!1,error:h=!1,FormHelperTextProps:b,fullWidth:g=!1,helperText:f,id:u,InputLabelProps:c,inputProps:C,InputProps:I,inputRef:G,label:y,maxRows:J,minRows:E,multiline:L=!1,name:D,onBlur:M,onChange:B,onFocus:O,placeholder:_,required:R=!1,rows:Q,select:F=!1,SelectProps:v,slots:j={},slotProps:pe={},type:ue,value:oe,variant:K="outlined",...me}=o,S={...o,autoFocus:l,color:n,disabled:m,error:h,fullWidth:g,multiline:L,required:R,select:F,variant:K},fe=it(S),k=Le(u),X=f&&k?`${k}-helper-text`:void 0,se=y&&k?`${k}-label`:void 0,xe=lt[K],P={slots:j,slotProps:{input:I,inputLabel:c,htmlInput:C,formHelperText:b,select:v,...pe}},q={},Y=P.slotProps.inputLabel;K==="outlined"&&(Y&&typeof Y.shrink<"u"&&(q.notched=Y.shrink),q.label=y),F&&((!v||!v.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[he,be]=w("root",{elementType:dt,shouldForwardComponentProp:!0,externalForwardedProps:{...P,...me},ownerState:S,className:U(fe.root,p),ref:r,additionalProps:{disabled:m,error:h,fullWidth:g,required:R,color:n,variant:K}}),[ve,ge]=w("input",{elementType:xe,externalForwardedProps:P,additionalProps:q,ownerState:S}),[Ce,Fe]=w("inputLabel",{elementType:at,externalForwardedProps:P,ownerState:S}),[ye,Se]=w("htmlInput",{elementType:"input",externalForwardedProps:P,ownerState:S}),[ke,Pe]=w("formHelperText",{elementType:Qe,externalForwardedProps:P,ownerState:S}),[Ie,we]=w("select",{elementType:Ue,externalForwardedProps:P,ownerState:S}),ae=a.jsx(ve,{"aria-describedby":X,autoComplete:s,autoFocus:l,defaultValue:d,fullWidth:g,multiline:L,name:D,rows:Q,maxRows:J,minRows:E,type:ue,value:oe,id:k,inputRef:G,onBlur:M,onChange:B,onFocus:O,placeholder:_,inputProps:Se,slots:{input:j.htmlInput?ye:void 0},...ge});return a.jsxs(he,{...be,children:[y!=null&&y!==""&&a.jsx(Ce,{htmlFor:k,id:se,...Fe,children:y}),F?a.jsx(Ie,{"aria-describedby":X,id:k,labelId:se,value:oe,input:ae,...we,children:i}):ae,f&&a.jsx(ke,{id:X,...Pe,children:f})]})});/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. diff --git a/src/frontend/dist/assets/index-PErRMx3K.js b/src/frontend/dist/assets/index-BlRBE7Ft.js similarity index 99% rename from src/frontend/dist/assets/index-PErRMx3K.js rename to src/frontend/dist/assets/index-BlRBE7Ft.js index 54ac8190..db67d8b4 100644 --- a/src/frontend/dist/assets/index-PErRMx3K.js +++ b/src/frontend/dist/assets/index-BlRBE7Ft.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/setup-Bxlzm9g5.js","assets/main-layout-By96MLvX.js","assets/main-layout-DVneG3Rq.css","assets/join-Ct6Vm6PP.js","assets/chat-DCeKw9oj.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/setup-Bsllr9Nn.js","assets/main-layout-C11OgrSN.js","assets/main-layout-DVneG3Rq.css","assets/join-Btvp11Vj.js","assets/chat-B9cTpCh0.js"])))=>i.map(i=>d[i]); function MS(n,r){for(var l=0;lo[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function l(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=l(s);fetch(s.href,c)}})();function Na(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Tf={exports:{}},yl={};/** * @license React * react-jsx-runtime.production.js @@ -315,4 +315,4 @@ export default theme;`}function P0(n){return typeof n=="number"?`${(n*100).toFix 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},kO=function(){return Oe.createElement(us,null,Oe.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12A10,10 0 0,0 12,2Z`}))},$O={default:void 0,success:Oe.createElement(DO,null),warning:Oe.createElement(_O,null),error:Oe.createElement(zO,null),info:Oe.createElement(kO,null)},cr={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:$O,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:n1,transitionDuration:{enter:225,exit:195}},NO=function(r,l){var o=function(c){return typeof c=="number"||c===null};return o(r)?r:o(l)?l:cr.autoHideDuration},BO=function(r,l){var o=function(c,d){return d.some(function(h){return typeof c===h})};return o(r,["string","number"])?r:o(r,["object"])?Ve({},cr.transitionDuration,{},o(l,["object"])&&l,{},r):o(l,["string","number"])?l:o(l,["object"])?Ve({},cr.transitionDuration,{},l):cr.transitionDuration},LO=function(r,l){return function(o,s){return s===void 0&&(s=!1),s?Ve({},cr[o],{},l[o],{},r[o]):o==="autoHideDuration"?NO(r.autoHideDuration,l.autoHideDuration):o==="transitionDuration"?BO(r.transitionDuration,l.transitionDuration):r[o]||l[o]||cr[o]}};function Zl(n){return Object.entries(n).reduce(function(r,l){var o,s=l[0],c=l[1];return Ve({},r,(o={},o[s]=ih(c),o))},{})}var mi={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(r){return"notistack-MuiContent-"+r}},Ay=Zl({root:{height:0},entered:{height:"auto"}}),Gf="0px",Pf=175,a1=x.forwardRef(function(n,r){var l=n.children,o=n.in,s=n.onExited,c=x.useRef(null),d=x.useRef(null),h=Cd(r,d),p=function(){return c.current?c.current.clientHeight:0},m=function(T){T.style.height=Gf},y=function(T){var M=p(),D=qu({timeout:Pf,mode:"enter"}),_=D.duration,$=D.easing;T.style.transitionDuration=typeof _=="string"?_:_+"ms",T.style.height=M+"px",T.style.transitionTimingFunction=$||""},v=function(T){T.style.height="auto"},S=function(T){T.style.height=p()+"px"},O=function(T){e1(T);var M=qu({timeout:Pf,mode:"exit"}),D=M.duration,_=M.easing;T.style.transitionDuration=typeof D=="string"?D:D+"ms",T.style.height=Gf,T.style.transitionTimingFunction=_||""};return x.createElement(oh,{in:o,unmountOnExit:!0,onEnter:m,onEntered:v,onEntering:y,onExit:S,onExited:s,onExiting:O,nodeRef:d,timeout:Pf},function(E,T){return x.createElement("div",Object.assign({ref:h,className:mr(Ay.root,E==="entered"&&Ay.entered),style:Ve({pointerEvents:"all",overflow:"hidden",minHeight:Gf,transition:si("height")},E==="entered"&&{overflow:"visible"},{},E==="exited"&&!o&&{visibility:"hidden"})},T),x.createElement("div",{ref:c,className:mi.CollapseWrapper,style:{display:"flex",width:"100%"}},l))})});a1.displayName="Collapse";var Oy={right:"left",left:"right",bottom:"up",top:"down"},jO=function(r){return r.horizontal!=="center"?Oy[r.horizontal]:Oy[r.vertical]},UO=function(r){return"anchorOrigin"+lh(r)},HO=function(r){r===void 0&&(r={});var l={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(r).filter(function(o){return!l[o]}).reduce(function(o,s){var c;return Ve({},o,(c={},c[s]=r[s],c))},{})},YO=function(){};function Dl(n,r){return n.reduce(function(l,o){return o==null?l:function(){for(var c=arguments.length,d=new Array(c),h=0;h-1,$=M.snacks.findIndex(D)>-1;if(_||$)return M}return s.handleDisplaySnack(Ve({},M,{queue:[].concat(M.queue,[T])}))}),O},s.handleDisplaySnack=function(c){var d=c.snacks;return d.length>=s.maxSnack?s.handleDismissOldest(c):s.processQueue(c)},s.processQueue=function(c){var d=c.queue,h=c.snacks;return d.length>0?Ve({},c,{snacks:[].concat(h,[d[0]]),queue:d.slice(1,d.length)}):c},s.handleDismissOldest=function(c){if(c.snacks.some(function(y){return!y.open||y.requestClose}))return c;var d=!1,h=!1,p=c.snacks.reduce(function(y,v){return y+(v.open&&v.persist?1:0)},0);p===s.maxSnack&&(h=!0);var m=c.snacks.map(function(y){return!d&&(!y.persist||h)?(d=!0,y.entered?(y.onClose&&y.onClose(null,"maxsnack",y.id),s.props.onClose&&s.props.onClose(null,"maxsnack",y.id),Ve({},y,{open:!1})):Ve({},y,{requestClose:!0})):Ve({},y)});return Ve({},c,{snacks:m})},s.handleEnteredSnack=function(c,d,h){if(!gu(h))throw new Error("handleEnteredSnack Cannot be called with undefined key");s.setState(function(p){var m=p.snacks;return{snacks:m.map(function(y){return y.id===h?Ve({},y,{entered:!0}):Ve({},y)})}})},s.handleCloseSnack=function(c,d,h){s.props.onClose&&s.props.onClose(c,d,h);var p=h===void 0;s.setState(function(m){var y=m.snacks,v=m.queue;return{snacks:y.map(function(S){return!p&&S.id!==h?Ve({},S):S.entered?Ve({},S,{open:!1}):Ve({},S,{requestClose:!0})}),queue:v.filter(function(S){return S.id!==h})}})},s.closeSnackbar=function(c){var d=s.state.snacks.find(function(h){return h.id===c});gu(c)&&d&&d.onClose&&d.onClose(null,"instructed",c),s.handleCloseSnack(null,"instructed",c)},s.handleExitedSnack=function(c,d){if(!gu(d))throw new Error("handleExitedSnack Cannot be called with undefined key");s.setState(function(h){var p=s.processQueue(Ve({},h,{snacks:h.snacks.filter(function(m){return m.id!==d})}));return p.queue.length===0?p:s.handleDismissOldest(p)})},s.enqueueSnackbar,s.closeSnackbar,s.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:s.enqueueSnackbar.bind(Sy(s)),closeSnackbar:s.closeSnackbar.bind(Sy(s))}},s}var l=r.prototype;return l.render=function(){var s=this,c=this.state.contextValue,d=this.props,h=d.domRoot,p=d.children,m=d.dense,y=m===void 0?!1:m,v=d.Components,S=v===void 0?{}:v,O=d.classes,E=this.state.snacks.reduce(function(M,D){var _,$=lh(D.anchorOrigin),B=M[$]||[];return Ve({},M,(_={},_[$]=[].concat(B,[D]),_))},{}),T=Object.keys(E).map(function(M){var D=E[M],_=D[0];return Oe.createElement(QO,{key:M,dense:y,anchorOrigin:_.anchorOrigin,classes:O},D.map(function($){return Oe.createElement(XO,{key:$.id,snack:$,classes:O,Component:S[$.variant],onClose:s.handleCloseSnack,onEnter:s.props.onEnter,onExit:s.props.onExit,onExited:Dl([s.handleExitedSnack,s.props.onExited],$.id),onEntered:Dl([s.handleEnteredSnack,s.props.onEntered],$.id)})}))});return Oe.createElement(Jv.Provider,{value:c},p,h?Wy.createPortal(T,h):T)},Wv(r,[{key:"maxSnack",get:function(){return this.props.maxSnack||cr.maxSnack}}]),r})(x.Component),IO=(function(){return x.useContext(Jv)});function WO(n){return ct("MuiTitleIcon",n)}rt("MuiTitleIcon",["root","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning"]);const FO=n=>{const{classes:r,variant:l,color:o}=n,s={root:["root",l&&`variant${ge(l)}`,o&&`color${ge(o)}`],outlineOuter:["outlineOuter"],outlineInner:["outlineInner"]};return gn(s,WO,r)},JO=["inherit","primary","secondary","error","info","success","warning"],ew=Me("div",{name:"MuiTitleIcon",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:{color:l,variant:o}}=n;return[r.root,l&&r[`color${ge(l)}`],o&&r[`variant${ge(o)}`]]}})(({theme:n})=>{const{palette:r}=n;return{position:"relative",width:"2.25rem",height:"2.25rem",display:"inline-flex",justifyContent:"center",alignItems:"center",color:"inherit",backgroundColor:"transparent",border:"none",outline:"none",fontSize:"1.25rem",[`& .${p5.root}, & .tabler-icon, & svg`]:{width:"1em",height:"1em"},variants:[...JO.map(l=>({props:{color:l},style:{color:l==="inherit"?"inherit":l==="default"?r.text.primary:r[l].main}}))]}}),tw=Me("div",{name:"MuiTitleIcon",slot:"OutlineOuter"})(()=>({boxSizing:"border-box",width:"2.25rem",height:"2.25rem",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",opacity:.1,borderWidth:"1.667px",borderStyle:"solid",borderColor:"currentcolor",variants:[{props:{variant:"circle"},style:{borderRadius:"50%"}},{props:{variant:"square"},style:{borderRadius:"0.38rem"}}]})),nw=Me("div",{name:"MuiTitleIcon",slot:"OutlineInner"})(()=>({boxSizing:"border-box",width:"1.75rem",height:"1.75rem",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",opacity:.3,borderWidth:"1.667px",borderStyle:"solid",borderColor:"currentcolor",variants:[{props:{variant:"circle"},style:{borderRadius:"50%"}},{props:{variant:"square"},style:{borderRadius:"0.25em"}}]})),Xw=x.forwardRef(function(r,l){const o=Lv({props:r,name:"MuiTitleIcon"}),{children:s,classes:c,variant:d="circle",color:h="default",className:p,...m}=o,y={...o,variant:d,color:h},v=FO(y);return W.jsxs(ew,{ref:l,className:Ze(v.root,p),ownerState:y,role:"img",...m,children:[W.jsx(tw,{className:v.outlineOuter,ownerState:y}),W.jsx(nw,{className:v.outlineInner,ownerState:y}),s]})}),aw=Me("div",{name:"MuiTitleIconForm",slot:"Root"})(({theme:n})=>{const{palette:r}=n;return{flex:"none",width:"3rem",height:"3rem",aspectRatio:"1 / 1",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"0.375rem",backgroundColor:r.grey[250],overflow:"hidden"}}),rw=Me("div",{name:"MuiTitleIconForm",slot:"Image"})(({theme:n})=>{const{palette:r}=n;return{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"url(/assets/common/form-half-one.png) center / cover no-repeat",mixBlendMode:"multiply"}}),Zw=()=>W.jsx(aw,{children:W.jsx(rw,{})}),iw=Me("div")(({theme:n})=>{const{palette:r}=n;return{display:"flex",flexFlow:"row nowrap",alignItems:"center",justifyContent:"flex-start",gap:"0.75rem",paddingBlockStart:"0.75rem",color:r.grey[700]}}),lw=Me("div")(({theme:n})=>{const{palette:r}=n;return{position:"absolute",bottom:0,left:"-1rem",right:"-1rem"}}),ow=150,uw=n=>{const{severity:r,autoHideDuration:l=0}=n,[o,s]=x.useState(0);return x.useEffect(()=>{if(l<=0)return;const c=l/100;let d,h;const p=()=>d=requestAnimationFrame(m=>{h||(h=m);const y=Math.min(100,Math.ceil((m+ow-h)/c));s(y),y<100&&p()});return p(),()=>{d&&cancelAnimationFrame(d)}},[l]),W.jsx(lw,{children:W.jsx(M5,{variant:"determinate",color:r,value:o})})},sw=x.forwardRef((n,r)=>{const{autoHideDuration:l,variant:o,title:s,children:c,onClose:d,action:h,dismissLabel:p="Dismiss",onDismiss:m,...y}=n;let v=s,S=c;!v&&S&&(v=S,S=void 0);const O=m&&W.jsx(u5,{variant:"text",color:"inherit",onClick:m,children:p}),E=(!!h||!!O)&&W.jsxs(W.Fragment,{children:[O,h]})||void 0;return o==="notification"?W.jsxs(J0,{...y,variant:o,onClose:d,ref:r,children:[!!v&&W.jsx(ty,{children:v}),S,E&&W.jsx(iw,{children:E}),l&&l>0&&W.jsx(uw,{...n})]}):W.jsxs(J0,{...y,variant:o,onClose:d,action:E,ref:r,children:[!!v&&W.jsx(ty,{children:v}),S]})}),Al=x.forwardRef((n,r)=>{const{id:l,variant:o,title:s,message:c,action:d,notification:h=!0,closable:p=h,dismissAble:m,persist:y,autoHideDuration:v,hideIconVariant:S,className:O,style:E}=n,{closeSnackbar:T}=IO(),M=o==="default"?"info":o,D=typeof d=="function"?d(l):d,_=p&&(()=>T(l))||void 0,$=m&&(()=>T(l))||void 0,B=v||void 0;return W.jsx(sw,{variant:h&&"notification"||"outlined",severity:M,icon:S?!1:void 0,onClose:_,onDismiss:$,action:D,title:s,autoHideDuration:B,ref:r,className:O,style:E,children:c})}),cw={default:Al,info:Al,success:Al,warning:Al,error:Al},o1=({children:n})=>W.jsx(KO,{anchorOrigin:{vertical:"bottom",horizontal:"right"},maxSnack:5,autoHideDuration:5e3,Components:cw,style:{width:"21.25rem"},children:n}),fw=n=>{const{palette:r,overlays:l}=n;return{defaultProps:{variant:"outlined"},styleOverrides:{root:{variants:[{props:({ownerState:o})=>!o.square,style:{borderRadius:"0.75rem"}},{props:{variant:"outlined"},style:{border:`1px solid ${r.divider}`}},{props:{variant:"overlay"},style:{border:`1px solid ${r.divider}`,boxShadow:l.shadowMiddle}}]}}}},dw=n=>{const{spacing:r}=n;return{defaultProps:{slotProps:{paper:{variant:"overlay"},backdrop:{invisible:!0}}},styleOverrides:{root:{[`& .${gd.root}`]:{marginBlock:r(1.5)}},paper:{padding:r(1)}}}},hw=n=>{const{spacing:r}=n;return{defaultProps:{},styleOverrides:{}}},mw=n=>{const{palette:r,spacing:l}=n;return{defaultProps:{},styleOverrides:{root:{padding:l(1),gap:l(.75),"&:hover":{backgroundColor:r.grey[200]},[`& + .${gd.root}`]:{margin:0,marginBlock:l(1.5)},[`& .${gd.inset}`]:{margin:0,marginInline:`${la.small}rem`},[`& .${A5.root}`]:{minWidth:`${la.small}rem`}}}}},pw=Object.freeze(Object.defineProperty({__proto__:null,MuiAlert:cO,MuiAlertTitle:sO,MuiBackdrop:fO,MuiButton:hA,MuiButtonBase:mA,MuiButtonGroup:pA,MuiChip:GA,MuiCssBaseline:fA,MuiDialog:gO,MuiDialogActions:dO,MuiDialogContent:mO,MuiDialogContentText:pO,MuiDialogTitle:hO,MuiDivider:PA,MuiFormControl:yA,MuiFormHelperText:bA,MuiFormLabel:vA,MuiIconButton:gA,MuiInputAdornment:xA,MuiInputBase:TA,MuiInputLabel:SA,MuiLinearProgress:yO,MuiList:XA,MuiListItem:ZA,MuiListItemAvatar:WA,MuiListItemButton:QA,MuiListItemIcon:KA,MuiListItemText:IA,MuiMenu:dw,MuiMenuItem:mw,MuiMenuList:hw,MuiOutlinedInput:EA,MuiPaper:fw,MuiSelect:LA,MuiSlider:HA,MuiSnackbar:bO,MuiSnackbarContent:vO,MuiTable:JA,MuiTableBody:tO,MuiTableCell:aO,MuiTableContainer:FA,MuiTableFooter:rO,MuiTableHead:eO,MuiTablePagination:iO,MuiTablePaginationActions:lO,MuiTableRow:nO,MuiTableSortLabel:oO,MuiTextField:MA,MuiToggleButton:YA,MuiToggleButtonGroup:qA,MuiTypography:uO,SnackbarProvider:o1},Symbol.toStringTag,{value:"Module"})),Ll=Fd({palette:iA,typography:lA,spacing:n=>`${n*8/Qv}rem`,overlays:oA});Ll.components=Ll.components||{};Object.entries(pw).forEach(([n,r])=>{n.startsWith("Mui")&&typeof r=="function"&&(Ll.components[n]=r(Ll))});const gw=({children:n})=>W.jsx(BE,{theme:{[Tn]:Ll},children:W.jsx(o1,{children:W.jsx(_5,{dateAdapter:aA,localeText:{okButtonLabel:"Apply"},children:n})})}),yw="modulepreload",vw=function(n){return"/"+n},zy={},uh=function(r,l,o){let s=Promise.resolve();if(l&&l.length>0){let p=function(m){return Promise.all(m.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),h=d?.nonce||d?.getAttribute("nonce");s=p(l.map(m=>{if(m=vw(m),m in zy)return;zy[m]=!0;const y=m.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${v}`))return;const S=document.createElement("link");if(S.rel=y?"stylesheet":yw,y||(S.as="script"),S.crossOrigin="",S.href=m,h&&S.setAttribute("nonce",h),document.head.appendChild(S),y)return new Promise((O,E)=>{S.addEventListener("load",O),S.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${m}`)))})}))}function c(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return s.then(d=>{for(const h of d||[])h.status==="rejected"&&c(h.reason);return r().catch(c)})},bw=n=>r=>{const{url:l,method:o="GET",afterFetch:s=$=>$}=n,{debugName:c,onStatusChange:d,onMessage:h,onError:p}=r,m=new TextDecoder;let y,v;const S=(...$)=>{console.log(`%c http-stream.ts ${o} ${l} ${c??""}`,"color: white; background: darkcyan; padding: 2px 4px; border-radius: 2px;",...$)},O=$=>{S("onStatusChange",$);try{d?.($)}catch(B){S("onStatusChange Error",B)}},E=$=>{try{h?.($)}catch(B){S("onMessage Error",B)}},T=async()=>{try{v&&(await v.cancel(),v=void 0)}catch($){S("reader cancel error",$)}};return Object.freeze({send:($={})=>{const{headers:B,body:z,data:L}=$;O("connecting"),S("send",L),y=new AbortController;let q;const Q=L?.type==="queue_info"?0:5e3;Q>0&&(q=setTimeout(()=>{S(`fetch timeout: triggering abort after ${Q}ms`);try{y?.abort()}catch(K){S("abort error during timeout",K)}O("error"),p?.(new Error("The request timed out. Please try again later."))},Q)),fetch(l,{headers:{"Content-Type":"application/json",...B},method:o,body:L&&JSON.stringify(L)||z,signal:y.signal}).then(async K=>{if(q&&(clearTimeout(q),q=void 0),K.status!==200||K.headers.get("content-type")!=="application/x-ndjson"){S("fetch status error or content-type error",K),O("error");return}if(v=K.body?.getReader(),!v){S("getReader error",K),O("error");return}O("connected");let F="";for(;;){const{done:C,value:ie}=await v.read();if(C){await T(),O("disconnected");break}const P=m.decode(ie);F+=P;const X=F.split(` `);F=X.pop()||"",X.forEach(w=>{try{const H=s(JSON.parse(w));E(H)}catch(H){S("Parse Message Error",H)}})}}).catch(async K=>{q&&(clearTimeout(q),q=void 0),await T(),S("fetch error",K),O("error"),p?.(K)}).finally(async()=>{q&&(clearTimeout(q),q=void 0),await T(),y=void 0})},abort:()=>{try{y?.abort(),y=void 0}catch($){S("abort error",$)}v?.cancel(),v=void 0,O("disconnected")}})},ss="",Sw=async()=>{const r=await(await fetch(`${ss}/model/list`,{method:"GET"})).json();if(r.type!=="model_list")throw new Error(`Invalid message type: ${r.type}.`);return r.data},xw=async n=>{const l=await(await fetch(`${ss}/scheduler/init`,{method:"POST",body:JSON.stringify(n)})).json();if(l.type!=="scheduler_init")throw new Error(`Invalid message type: ${l.type}.`);return l.data},Cw=bw({url:`${ss}/cluster/status`,method:"GET"}),ky=n=>{const r=x.useRef(void 0);return r.current||(r.current={value:typeof n=="function"?n():n}),r.current.value},Tw=n=>{const r=x.useRef(void 0);return r.current||(r.current={callback:n}),r.current.callback},Bu=n=>{const r=x.useRef(void 0);return r.current=n,Tw(((...o)=>r.current?.(...o)))},Ew="/assets/qwen-JvO50h5P.png",$y=(...n)=>{console.log("%c cluster.tsx ","color: white; background: darkcyan;",...n)},u1=x.createContext(void 0),{Provider:Mw}=u1,Aw=({children:n})=>{const[r,l]=x.useState("local"),[o,s]=x.useState(1),[c,d]=x.useState(""),[h,p]=x.useState([]);x.useEffect(()=>{Sw().then(M=>{p(M.map(D=>({name:D,displayName:D,logoUrl:Ew})))})},[]),x.useEffect(()=>{h.length&&d(h[0].name)},[h]);const[m,y]=x.useState(()=>({id:"",status:"idle",nodeJoinCommand:{},initNodesNumber:4})),[v,S]=x.useState(()=>[]);x.useMemo(()=>{const D=Cw({onMessage:_=>{if(_.type==="cluster_status"){const{data:{status:$,init_nodes_num:B,model_name:z,node_join_command:L,node_list:q}}=_;y(ee=>{const Q={...ee,status:$,initNodesNumber:B||0,modelName:z||"",nodeJoinCommand:L||{}};return JSON.stringify(Q)!==JSON.stringify(ee)?($y("setClusterInfo",Q),Q):ee}),S(ee=>{const Q=q.map(({node_id:K,status:F,gpu_name:C,gpu_memory:ie})=>({id:K,status:F,gpuName:C,gpuMemory:ie}));return JSON.stringify(Q)!==JSON.stringify(ee)?($y("setNodeInfoList",Q),Q):ee})}}});return D.send(),D},[]);const O=Bu(async()=>{xw({model_name:c,init_nodes_num:o,is_local_network:r==="local"})}),E=x.useMemo(()=>({setNetworkType:l,setInitNodesNumber:s,setModelName:d,init:O}),[]),T=x.useMemo(()=>[{networkType:r,initNodesNumber:o,modelName:c,modelInfoList:h,clusterInfo:m,nodeInfoList:v},E],[r,o,c,h,m,v,E]);return W.jsx(Mw,{value:T,children:n})},s1=()=>{const n=x.useContext(u1);if(!n)throw new Error("useCluster must be used within a ClusterProvider");return n},Ow=(...n)=>{},ww=({children:n})=>{const[{modelName:r,clusterInfo:{status:l}}]=s1(),[o,s]=x.useState(""),[c,d]=x.useState("closed"),[h,p]=x.useState([]),m=ky(()=>Rw({onOpen:()=>d("opened"),onClose:()=>d("closed"),onError:T=>d("error"),onMessage:T=>{const{data:{id:M,object:D,model:_,created:$,choices:B,usage:z}}=T;D==="chat.completion.chunk"&&B?.length>0&&(B[0].delta.content&&d("generating"),p(L=>{let q=L;return B.forEach(({delta:{role:ee,content:Q}={}})=>{if(typeof Q!="string")return;ee=ee||"assistant";let K=q[q.length-1];if(K&&K.role===ee){if(K.content+Q===K.content)return;K={...K,content:K.content+Q},q=[...q.slice(0,-1),K]}else K={id:M,role:ee,content:Q,createdAt:$},q=[...q,K];Ow("onMessage","update last message",K.content)}),q}))}})),y=Bu(T=>{if(l!=="available"||c==="opened"||c==="generating"||!r)return;let M=h;if(T){const D=h.findIndex($=>$.id===T.id),_=h[D];if(!_)return;M=M.slice(0,D+(_.role==="user"?1:0))}else{const D=o.trim();if(!D)return;s("");const _=performance.now();M=[...M,{id:_.toString(),role:"user",content:D,createdAt:_}]}p(M),m.connect(r,M)}),v=Bu(()=>{c==="opened"&&m.disconnect()}),S=Bu(()=>{v(),c!=="opened"&&p([])}),O=ky({setInput:s,generate:y,stop:v,clear:S}),E=x.useMemo(()=>[{input:o,status:c,messages:h},O],[o,c,h,O]);return W.jsx(c1.Provider,{value:E,children:n})},c1=x.createContext(void 0),Qw=()=>{const n=x.useContext(c1);if(!n)throw new Error("useChat must be used within a ChatProvider");return n},Rw=n=>{const{onOpen:r,onClose:l,onError:o,onMessage:s}=n,c=new TextDecoder;let d,h;return{connect:(y,v)=>{h=new AbortController,fetch(`${ss}/v1/chat/completions`,{method:"POST",body:JSON.stringify({stream:!0,model:y,messages:v,max_tokens:2048,sampling_params:{top_k:3}}),signal:h.signal}).then(async S=>{const O=S.status,E=S.headers.get("Content-Type");if(O!==200){o?.(new Error(`[SSE] Failed to connect: ${O}`));return}if(!E?.includes("text/event-stream")){o?.(new Error(`[SSE] Invalid content type: ${E}`));return}if(d=S.body?.getReader(),!d){o?.(new Error("[SSE] Failed to get reader"));return}r?.();let T="";const M=D=>{const _={event:"message",data:void 0};D.forEach($=>{const B=$.indexOf(":");if(B<=0)return;const z=$.slice(0,B).trim(),L=$.slice(B+1).trim();if(!L.startsWith(":")){switch(z){case"event":_.event=L;break;case"id":_.id=L;break;case"data":try{const q=JSON.parse(L),ee=Q=>{Q&&(Array.isArray(Q)?Q.forEach((K,F)=>{K===null?Q[F]=void 0:ee(K)}):typeof Q=="object"&&Object.keys(Q).forEach(K=>{Q[K]===null?delete Q[K]:ee(Q[K])}))};ee(q),_.data=q}catch{_.data=L}break}_.data!==void 0&&s?.(_)}})};for(;;){const{done:D,value:_}=await d.read();if(D){l?.();return}const $=c.decode(_);T+=$;const B=T.split(` -`);T=B.pop()||"",M(B)}}).catch(S=>{if(S instanceof Error&&S.name==="AbortError"){l?.();return}o?.(S)})},disconnect:()=>{d?.cancel(),d=void 0,h?.abort("stop"),h=void 0,l?.()}}},Dw=x.lazy(()=>uh(()=>import("./setup-Bxlzm9g5.js"),__vite__mapDeps([0,1,2]))),_w=x.lazy(()=>uh(()=>import("./join-Ct6Vm6PP.js"),__vite__mapDeps([3,1,2]))),zw=x.lazy(()=>uh(()=>import("./chat-DCeKw9oj.js"),__vite__mapDeps([4,1,2]))),If=(...n)=>{console.log("%c router.tsx ","color: white; background: purple;",...n)},kw=()=>{const n=wd(),[{clusterInfo:{status:r}}]=s1();return x.useEffect(()=>{switch(If("cluster status",r),r){case"idle":case"waiting":If("no need to navigate");break;default:If("navigate to /chat");break}},[n,r]),c2([{path:"/",element:W.jsx(T2,{to:"/setup",replace:!0})},{path:"/setup",element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(Dw,{})})},{path:"/join",element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(_w,{})})},{path:"/chat",element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(zw,{})})},{path:"*",element:W.jsx("div",{children:"404 - Page Not Found"})}])},$w=Me("div")(({theme:n})=>{const{palette:r,typography:l}=n;return{...l.body2,color:r.text.primary,backgroundColor:r.background.default,width:"100%",height:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center"}}),Nw=()=>W.jsx($w,{children:W.jsx(Aw,{children:W.jsx(ww,{children:W.jsx(kw,{})})})});$S.createRoot(document.getElementById("root")).render(W.jsx(x.StrictMode,{children:W.jsx(Z2,{children:W.jsxs(gw,{children:[W.jsx(h5,{}),W.jsx(Nw,{})]})})}));export{Fd as $,J0 as A,Vv as B,vv as C,Hv as D,Oe as E,Z0 as F,aM as G,iM as H,sd as I,nM as J,Pd as K,Ky as L,Wy as M,wu as N,Uv as O,tM as P,JM as Q,Bw as R,O5 as S,KM as T,jw as U,fr as V,Gl as W,_E as X,iT as Y,Tn as Z,qE as _,Bl as a,rM as a0,qv as a1,Hw as a2,m5 as a3,Yw as a4,Lt as a5,WE as a6,qw as a7,Lw as a8,AT as a9,A5 as aa,gd as ab,Uw as ac,ar as ad,zE as ae,bi as af,La as ag,Vw as ah,w5 as ai,Gw as aj,ry as ak,Zw as al,Xw as am,_A as an,my as ao,kA as ap,Pv as aq,NA as ar,Na as as,ge as b,Ze as c,gn as d,en as e,rt as f,Pw as g,ct as h,s1 as i,W as j,wd as k,Bu as l,Gt as m,u5 as n,Pl as o,jv as p,Qd as q,x as r,Me as s,R5 as t,tn as u,ii as v,Qw as w,nC as x,hr as y,Gd as z}; +`);T=B.pop()||"",M(B)}}).catch(S=>{if(S instanceof Error&&S.name==="AbortError"){l?.();return}o?.(S)})},disconnect:()=>{d?.cancel(),d=void 0,h?.abort("stop"),h=void 0,l?.()}}},Dw=x.lazy(()=>uh(()=>import("./setup-Bsllr9Nn.js"),__vite__mapDeps([0,1,2]))),_w=x.lazy(()=>uh(()=>import("./join-Btvp11Vj.js"),__vite__mapDeps([3,1,2]))),zw=x.lazy(()=>uh(()=>import("./chat-B9cTpCh0.js"),__vite__mapDeps([4,1,2]))),If=(...n)=>{console.log("%c router.tsx ","color: white; background: purple;",...n)},kw=()=>{const n=wd(),[{clusterInfo:{status:r}}]=s1();return x.useEffect(()=>{switch(If("cluster status",r),r){case"idle":case"waiting":If("no need to navigate");break;default:If("navigate to /chat"),n("/chat");break}},[n,r]),c2([{path:"/",element:W.jsx(T2,{to:"/setup",replace:!0})},{path:"/setup",element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(Dw,{})})},{path:"/join",element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(_w,{})})},{path:"/chat",element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(zw,{})})},{path:"*",element:W.jsx("div",{children:"404 - Page Not Found"})}])},$w=Me("div")(({theme:n})=>{const{palette:r,typography:l}=n;return{...l.body2,color:r.text.primary,backgroundColor:r.background.default,width:"100%",height:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center"}}),Nw=()=>W.jsx($w,{children:W.jsx(Aw,{children:W.jsx(ww,{children:W.jsx(kw,{})})})});$S.createRoot(document.getElementById("root")).render(W.jsx(x.StrictMode,{children:W.jsx(Z2,{children:W.jsxs(gw,{children:[W.jsx(h5,{}),W.jsx(Nw,{})]})})}));export{Fd as $,J0 as A,Vv as B,vv as C,Hv as D,Oe as E,Z0 as F,aM as G,iM as H,sd as I,nM as J,Pd as K,Ky as L,Wy as M,wu as N,Uv as O,tM as P,JM as Q,Bw as R,O5 as S,KM as T,jw as U,fr as V,Gl as W,_E as X,iT as Y,Tn as Z,qE as _,Bl as a,rM as a0,qv as a1,Hw as a2,m5 as a3,Yw as a4,Lt as a5,WE as a6,qw as a7,Lw as a8,AT as a9,A5 as aa,gd as ab,Uw as ac,ar as ad,zE as ae,bi as af,La as ag,Vw as ah,w5 as ai,Gw as aj,ry as ak,Zw as al,Xw as am,_A as an,my as ao,kA as ap,Pv as aq,NA as ar,Na as as,ge as b,Ze as c,gn as d,en as e,rt as f,Pw as g,ct as h,s1 as i,W as j,wd as k,Bu as l,Gt as m,u5 as n,Pl as o,jv as p,Qd as q,x as r,Me as s,R5 as t,tn as u,ii as v,Qw as w,nC as x,hr as y,Gd as z}; diff --git a/src/frontend/dist/assets/join-Btvp11Vj.js b/src/frontend/dist/assets/join-Btvp11Vj.js new file mode 100644 index 00000000..091a4a1c --- /dev/null +++ b/src/frontend/dist/assets/join-Btvp11Vj.js @@ -0,0 +1,6 @@ +import{o as l,i as c,r as u,j as e,T as r,s as h,A as a,n as p,L as m,S as x}from"./index-BlRBE7Ft.js";import{M as y,J as f,N as j}from"./main-layout-C11OgrSN.js";/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const v=[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l6 6",key:"svg-1"}],["path",{d:"M5 12l6 -6",key:"svg-2"}]],g=l("outline","arrow-left","ArrowLeft",v),s=h(x)(({theme:o})=>{const{spacing:t}=o;return{overflowY:"auto"}});function M(){const[{clusterInfo:{status:o,initNodesNumber:t},nodeInfoList:n},{setNetworkType:k,setInitNodesNumber:b,setModelName:w}]=c(),i=u.useMemo(()=>!!(t>0&&n.length>=t&&n.every(d=>d.status==="available")&&o==="waiting"),[o,t,n]);return e.jsxs(y,{contentStart:e.jsx(p,{component:m,to:"/setup",size:"medium",color:"secondary",startIcon:e.jsx(g,{}),children:"Back"}),children:[e.jsx(r,{variant:"h1",children:"Get Your Nodes Running"}),e.jsxs(s,{gap:6,sx:{overflow:"hidden"},children:[e.jsxs(s,{gap:2,children:[e.jsx(s,{gap:1,children:e.jsx(r,{variant:"body1",children:"Step 1 - On all worker nodes, run command line join"})}),e.jsx(f,{})]}),e.jsxs(s,{gap:2,flex:1,children:[e.jsxs(s,{gap:1,children:[e.jsx(r,{variant:"body1",children:"Step 2 - Check your live node status"}),e.jsx(r,{variant:"body2",color:"text.secondary",fontWeight:"regular",children:"After you successfully start the server on each nodes, you should see them show up on the below dashboard."})]}),i&&e.jsx(a,{severity:"error",variant:"standard",children:"Your selected model requires more nodes. Please go back to the previous step to add more nodes, or choose a smaller model."},"error")||e.jsx(a,{severity:"info",variant:"standard",children:"If your nodes cannot connect properly, retry the above join command to restart the server."},"info"),e.jsx(j,{},"node-list")]})]})]})}export{M as default}; diff --git a/src/frontend/dist/assets/join-Ct6Vm6PP.js b/src/frontend/dist/assets/join-Ct6Vm6PP.js deleted file mode 100644 index 7e7550e4..00000000 --- a/src/frontend/dist/assets/join-Ct6Vm6PP.js +++ /dev/null @@ -1,6 +0,0 @@ -import{o as l,i as c,r as u,j as e,T as t,s as h,A as a,n as p,L as m,S as x}from"./index-PErRMx3K.js";import{M as y,J as f,N as j}from"./main-layout-By96MLvX.js";/** - * @license @tabler/icons-react v3.35.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */const v=[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l6 6",key:"svg-1"}],["path",{d:"M5 12l6 -6",key:"svg-2"}]],g=l("outline","arrow-left","ArrowLeft",v),s=h(x)(({theme:o})=>{const{spacing:r}=o;return{overflowY:"auto"}});function M(){const[{clusterInfo:{status:o,initNodesNumber:r},nodeInfoList:n},{setNetworkType:k,setInitNodesNumber:b,setModelName:w}]=c(),i=u.useMemo(()=>!!(n.length>=r&&n.every(d=>d.status==="available")&&o==="waiting"),[o,r,n]);return e.jsxs(y,{contentStart:e.jsx(p,{component:m,to:"/setup",size:"medium",color:"secondary",startIcon:e.jsx(g,{}),children:"Back"}),children:[e.jsx(t,{variant:"h1",children:"Get Your Nodes Running"}),e.jsxs(s,{gap:6,sx:{overflow:"hidden"},children:[e.jsxs(s,{gap:2,children:[e.jsx(s,{gap:1,children:e.jsx(t,{variant:"body1",children:"Step 1 - On all worker nodes, run command line join"})}),e.jsx(f,{})]}),e.jsxs(s,{gap:2,flex:1,children:[e.jsxs(s,{gap:1,children:[e.jsx(t,{variant:"body1",children:"Step 2 - Check your live node status"}),e.jsx(t,{variant:"body2",color:"text.secondary",fontWeight:"regular",children:"After you successfully start the server on each nodes, you should see them show up on the below dashboard."})]}),i&&e.jsx(a,{severity:"error",variant:"standard",children:"Your selected model requires more nodes. Please go back to the previous step to add more nodes, or choose a smaller model."},"error")||e.jsx(a,{severity:"info",variant:"standard",children:"If your nodes cannot connect properly, retry the above join command to restart the server."},"info"),e.jsx(j,{},"node-list")]})]})]})}export{M as default}; diff --git a/src/frontend/dist/assets/main-layout-By96MLvX.js b/src/frontend/dist/assets/main-layout-C11OgrSN.js similarity index 99% rename from src/frontend/dist/assets/main-layout-By96MLvX.js rename to src/frontend/dist/assets/main-layout-C11OgrSN.js index cb8efa64..8c169f8f 100644 --- a/src/frontend/dist/assets/main-layout-By96MLvX.js +++ b/src/frontend/dist/assets/main-layout-C11OgrSN.js @@ -1,4 +1,4 @@ -import{x as W4,y as Y4,r as O,z as G4,C as K4,j as L,c as Be,_ as X4,R as Ma,D as Q4,E as Ra,F as D1,G as Z4,H as J4,I as rn,J as e3,K as Lr,M as t3,N as au,s as ue,u as Ke,O as n3,P as Ji,m as vt,Q as ea,b as Tt,d as je,U as r3,V as _1,f as ut,h as pt,W as i3,X as Ns,v as At,Y as a3,Z as s3,$ as o3,a0 as u3,a1 as Ms,q as L1,a2 as l3,a3 as c3,T as Ve,p as Dn,a4 as d3,a5 as sl,e as ol,a6 as h3,a7 as f3,a8 as H0,a9 as m3,B as p3,aa as z0,ab as U0,ac as g3,ad as vn,ae as b3,af as P1,ag as O1,ah as y3,ai as T3,aj as E3,ak as V0,o as _n,al as x3,am as j0,an as v3,ao as q0,ap as Ja,aq as ul,ar as B1,n as ls,i as fa,S as Je,l as cs,as as F1,w as H1}from"./index-PErRMx3K.js";function S3(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,a=W4("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(Y4);return O.forwardRef(function(u,l){const c=G4(n),{className:d,component:m="div",...p}=K4(u);return L.jsx(a,{as:m,ref:l,className:Be(d,i?i(r):r),theme:t&&c[t]||c,...p})})}function A3(e,t){return O.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function C3(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function w3(e){return parseFloat(e)}function $0(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function z1(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Tn(e){return e&&e.ownerDocument||document}function Wn(e){return Tn(e).defaultView||window}function W0(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Y0(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:a}=O.useRef(t!==void 0),[s,o]=O.useState(n),u=a?t:s,l=O.useCallback(c=>{a||o(c)},[]);return[u,l]}function k3(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function I3(e,t){if(!e)return t;function n(s,o){const u={};return Object.keys(o).forEach(l=>{k3(l,o[l])&&typeof s[l]=="function"&&(u[l]=(...c)=>{s[l](...c),o[l](...c)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const o=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...o}):e,l=Be(s?.className,o?.className,u?.className),c=n(u,o);return{...o,...u,...c,...!!l&&{className:l},...o?.style&&u?.style&&{style:{...o.style,...u.style}},...o?.sx&&u?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,i=n(e,r),a=Be(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const G0={disabled:!1};var N3=function(t){return t.scrollTop},Li="unmounted",wr="exited",kr="entering",Wr="entered",su="exiting",Ln=(function(e){X4(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?o?(u=wr,a.appearStatus=kr):u=Wr:r.unmountOnExit||r.mountOnEnter?u=Li:u=wr,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===Li?{status:wr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==kr&&s!==Wr&&(a=kr):(s===kr||s===Wr)&&(a=su)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===kr){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ma.findDOMNode(this);s&&N3(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===wr&&this.setState({status:Li})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,u=this.props.nodeRef?[o]:[Ma.findDOMNode(this),o],l=u[0],c=u[1],d=this.getTimeouts(),m=o?d.appear:d.enter;if(!i&&!s||G0.disabled){this.safeSetState({status:Wr},function(){a.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:kr},function(){a.props.onEntering(l,c),a.onTransitionEnd(m,function(){a.safeSetState({status:Wr},function(){a.props.onEntered(l,c)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:Ma.findDOMNode(this);if(!a||G0.disabled){this.safeSetState({status:wr},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:su},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:wr},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:Ma.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Li)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=Q4(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ra.createElement(D1.Provider,{value:null},typeof s=="function"?s(i,o):Ra.cloneElement(Ra.Children.only(s),o))},t})(Ra.Component);Ln.contextType=D1;Ln.propTypes={};function Vr(){}Ln.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vr,onEntering:Vr,onEntered:Vr,onExit:Vr,onExiting:Vr,onExited:Vr};Ln.UNMOUNTED=Li;Ln.EXITED=wr;Ln.ENTERING=kr;Ln.ENTERED=Wr;Ln.EXITING=su;const U1=e=>e.scrollTop;function ds(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function M3(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,s=i?{}:Z4(n,r),{props:o,internalRef:u}=J4({...a,externalSlotProps:s}),l=rn(u,s?.ref,e.additionalProps?.ref);return e3(t,{...o,ref:l},r)}function ma(e){return parseInt(O.version,10)>=19?e?.props?.ref||null:e?.ref||null}function R3(e){return typeof e=="function"?e():e}const D3=O.forwardRef(function(t,n){const{children:r,container:i,disablePortal:a=!1}=t,[s,o]=O.useState(null),u=rn(O.isValidElement(r)?ma(r):null,n);if(Lr(()=>{a||o(R3(i)||document.body)},[i,a]),Lr(()=>{if(s&&!a)return W0(n,s),()=>{W0(n,null)}},[n,s,a]),a){if(O.isValidElement(r)){const l={ref:u};return O.cloneElement(r,l)}return r}return s&&t3.createPortal(r,s)});function Da(e){return parseInt(e,10)||0}const _3={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function L3(e){for(const t in e)return!1;return!0}function K0(e){return L3(e)||e.outerHeightStyle===0&&!e.overflowing}const P3=O.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:o,...u}=t,{current:l}=O.useRef(o!=null),c=O.useRef(null),d=rn(n,c),m=O.useRef(null),p=O.useRef(null),b=O.useCallback(()=>{const v=c.current,_=p.current;if(!v||!_)return;const k=Wn(v).getComputedStyle(v);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};_.style.width=k.width,_.value=v.value||t.placeholder||"x",_.value.slice(-1)===` +import{x as W4,y as Y4,r as O,z as G4,C as K4,j as L,c as Be,_ as X4,R as Ma,D as Q4,E as Ra,F as D1,G as Z4,H as J4,I as rn,J as e3,K as Lr,M as t3,N as au,s as ue,u as Ke,O as n3,P as Ji,m as vt,Q as ea,b as Tt,d as je,U as r3,V as _1,f as ut,h as pt,W as i3,X as Ns,v as At,Y as a3,Z as s3,$ as o3,a0 as u3,a1 as Ms,q as L1,a2 as l3,a3 as c3,T as Ve,p as Dn,a4 as d3,a5 as sl,e as ol,a6 as h3,a7 as f3,a8 as H0,a9 as m3,B as p3,aa as z0,ab as U0,ac as g3,ad as vn,ae as b3,af as P1,ag as O1,ah as y3,ai as T3,aj as E3,ak as V0,o as _n,al as x3,am as j0,an as v3,ao as q0,ap as Ja,aq as ul,ar as B1,n as ls,i as fa,S as Je,l as cs,as as F1,w as H1}from"./index-BlRBE7Ft.js";function S3(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,a=W4("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(Y4);return O.forwardRef(function(u,l){const c=G4(n),{className:d,component:m="div",...p}=K4(u);return L.jsx(a,{as:m,ref:l,className:Be(d,i?i(r):r),theme:t&&c[t]||c,...p})})}function A3(e,t){return O.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function C3(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function w3(e){return parseFloat(e)}function $0(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function z1(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Tn(e){return e&&e.ownerDocument||document}function Wn(e){return Tn(e).defaultView||window}function W0(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Y0(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:a}=O.useRef(t!==void 0),[s,o]=O.useState(n),u=a?t:s,l=O.useCallback(c=>{a||o(c)},[]);return[u,l]}function k3(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function I3(e,t){if(!e)return t;function n(s,o){const u={};return Object.keys(o).forEach(l=>{k3(l,o[l])&&typeof s[l]=="function"&&(u[l]=(...c)=>{s[l](...c),o[l](...c)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const o=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...o}):e,l=Be(s?.className,o?.className,u?.className),c=n(u,o);return{...o,...u,...c,...!!l&&{className:l},...o?.style&&u?.style&&{style:{...o.style,...u.style}},...o?.sx&&u?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,i=n(e,r),a=Be(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const G0={disabled:!1};var N3=function(t){return t.scrollTop},Li="unmounted",wr="exited",kr="entering",Wr="entered",su="exiting",Ln=(function(e){X4(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?o?(u=wr,a.appearStatus=kr):u=Wr:r.unmountOnExit||r.mountOnEnter?u=Li:u=wr,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===Li?{status:wr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==kr&&s!==Wr&&(a=kr):(s===kr||s===Wr)&&(a=su)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===kr){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ma.findDOMNode(this);s&&N3(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===wr&&this.setState({status:Li})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,u=this.props.nodeRef?[o]:[Ma.findDOMNode(this),o],l=u[0],c=u[1],d=this.getTimeouts(),m=o?d.appear:d.enter;if(!i&&!s||G0.disabled){this.safeSetState({status:Wr},function(){a.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:kr},function(){a.props.onEntering(l,c),a.onTransitionEnd(m,function(){a.safeSetState({status:Wr},function(){a.props.onEntered(l,c)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:Ma.findDOMNode(this);if(!a||G0.disabled){this.safeSetState({status:wr},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:su},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:wr},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:Ma.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Li)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=Q4(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ra.createElement(D1.Provider,{value:null},typeof s=="function"?s(i,o):Ra.cloneElement(Ra.Children.only(s),o))},t})(Ra.Component);Ln.contextType=D1;Ln.propTypes={};function Vr(){}Ln.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vr,onEntering:Vr,onEntered:Vr,onExit:Vr,onExiting:Vr,onExited:Vr};Ln.UNMOUNTED=Li;Ln.EXITED=wr;Ln.ENTERING=kr;Ln.ENTERED=Wr;Ln.EXITING=su;const U1=e=>e.scrollTop;function ds(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function M3(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,s=i?{}:Z4(n,r),{props:o,internalRef:u}=J4({...a,externalSlotProps:s}),l=rn(u,s?.ref,e.additionalProps?.ref);return e3(t,{...o,ref:l},r)}function ma(e){return parseInt(O.version,10)>=19?e?.props?.ref||null:e?.ref||null}function R3(e){return typeof e=="function"?e():e}const D3=O.forwardRef(function(t,n){const{children:r,container:i,disablePortal:a=!1}=t,[s,o]=O.useState(null),u=rn(O.isValidElement(r)?ma(r):null,n);if(Lr(()=>{a||o(R3(i)||document.body)},[i,a]),Lr(()=>{if(s&&!a)return W0(n,s),()=>{W0(n,null)}},[n,s,a]),a){if(O.isValidElement(r)){const l={ref:u};return O.cloneElement(r,l)}return r}return s&&t3.createPortal(r,s)});function Da(e){return parseInt(e,10)||0}const _3={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function L3(e){for(const t in e)return!1;return!0}function K0(e){return L3(e)||e.outerHeightStyle===0&&!e.overflowing}const P3=O.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:o,...u}=t,{current:l}=O.useRef(o!=null),c=O.useRef(null),d=rn(n,c),m=O.useRef(null),p=O.useRef(null),b=O.useCallback(()=>{const v=c.current,_=p.current;if(!v||!_)return;const k=Wn(v).getComputedStyle(v);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};_.style.width=k.width,_.value=v.value||t.placeholder||"x",_.value.slice(-1)===` `&&(_.value+=" ");const V=k.boxSizing,U=Da(k.paddingBottom)+Da(k.paddingTop),q=Da(k.borderBottomWidth)+Da(k.borderTopWidth),B=_.scrollHeight;_.value="x";const K=_.scrollHeight;let Y=B;a&&(Y=Math.max(Number(a)*K,Y)),i&&(Y=Math.min(Number(i)*K,Y)),Y=Math.max(Y,K);const X=Y+(V==="border-box"?U+q:0),j=Math.abs(Y-B)<=1;return{outerHeightStyle:X,overflowing:j}},[i,a,t.placeholder]),E=au(()=>{const v=c.current,_=b();if(!v||!_||K0(_))return!1;const P=_.outerHeightStyle;return m.current!=null&&m.current!==P}),C=O.useCallback(()=>{const v=c.current,_=b();if(!v||!_||K0(_))return;const P=_.outerHeightStyle;m.current!==P&&(m.current=P,v.style.height=`${P}px`),v.style.overflow=_.overflowing?"hidden":""},[b]),T=O.useRef(-1);Lr(()=>{const v=z1(C),_=c?.current;if(!_)return;const P=Wn(_);P.addEventListener("resize",v);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(()=>{E()&&(k.unobserve(_),cancelAnimationFrame(T.current),C(),T.current=requestAnimationFrame(()=>{k.observe(_)}))}),k.observe(_)),()=>{v.clear(),cancelAnimationFrame(T.current),P.removeEventListener("resize",v),k&&k.disconnect()}},[b,C,E]),Lr(()=>{C()});const S=v=>{l||C();const _=v.target,P=_.value.length,k=_.value.endsWith(` `),V=_.selectionStart===P;k&&V&&_.setSelectionRange(P,P),r&&r(v)};return L.jsxs(O.Fragment,{children:[L.jsx("textarea",{value:o,onChange:S,ref:d,rows:a,style:s,...u}),L.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:{..._3.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function ll({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const V1=O.createContext(void 0);function cl(){return O.useContext(V1)}function X0(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function j1(e,t=!1){return e&&(X0(e.value)&&e.value!==""||t&&X0(e.defaultValue)&&e.defaultValue!=="")}function DR(e){return e.startAdornment}var Q0;const Rs=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Tt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ds=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},O3=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:o,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:d,size:m,startAdornment:p,type:b}=e,E={root:["root",`color${Tt(n)}`,r&&"disabled",i&&"error",u&&"fullWidth",s&&"focused",o&&"formControl",m&&m!=="medium"&&`size${Tt(m)}`,c&&"multiline",p&&"adornedStart",a&&"adornedEnd",l&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",c&&"inputMultiline",m==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return je(E,r3,t)},_s=ue("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Rs})(vt(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ea.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Ls=ue("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ds})(vt(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ea.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${ea.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Z0=n3({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),dl=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:o,color:u,components:l={},componentsProps:c={},defaultValue:d,disabled:m,disableInjectingGlobalStyles:p,endAdornment:b,error:E,fullWidth:C=!1,id:T,inputComponent:S="input",inputProps:v={},inputRef:_,margin:P,maxRows:k,minRows:V,multiline:U=!1,name:q,onBlur:B,onChange:K,onClick:Y,onFocus:X,onKeyDown:j,onKeyUp:W,placeholder:ne,readOnly:le,renderSuffix:fe,rows:oe,size:I,slotProps:De={},slots:Ae={},startAdornment:D,type:_e="text",value:Ue,...He}=r,qe=v.value!=null?v.value:Ue,{current:$e}=O.useRef(qe!=null),We=O.useRef(),xe=O.useCallback(Le=>{},[]),Pe=rn(We,_,v.ref,xe),[ze,dt]=O.useState(!1),Oe=cl(),Xe=ll({props:r,muiFormControl:Oe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Xe.focused=Oe?Oe.focused:ze,O.useEffect(()=>{!Oe&&m&&ze&&(dt(!1),B&&B())},[Oe,m,ze,B]);const Pt=Oe&&Oe.onFilled,Ot=Oe&&Oe.onEmpty,wt=O.useCallback(Le=>{j1(Le)?Pt&&Pt():Ot&&Ot()},[Pt,Ot]);Lr(()=>{$e&&wt({value:qe})},[qe,wt,$e]);const Vt=Le=>{X&&X(Le),v.onFocus&&v.onFocus(Le),Oe&&Oe.onFocus?Oe.onFocus(Le):dt(!0)},Qt=Le=>{B&&B(Le),v.onBlur&&v.onBlur(Le),Oe&&Oe.onBlur?Oe.onBlur(Le):dt(!1)},kt=(Le,...jt)=>{if(!$e){const qt=Le.target||We.current;if(qt==null)throw new Error(_1(1));wt({value:qt.value})}v.onChange&&v.onChange(Le,...jt),K&&K(Le,...jt)};O.useEffect(()=>{wt(We.current)},[]);const xn=Le=>{We.current&&Le.currentTarget===Le.target&&We.current.focus(),Y&&Y(Le)};let er=S,Nt=v;U&&er==="input"&&(oe?Nt={type:void 0,minRows:oe,maxRows:oe,...Nt}:Nt={type:void 0,maxRows:k,minRows:V,...Nt},er=P3);const tr=Le=>{wt(Le.animationName==="mui-auto-fill-cancel"?We.current:{value:"x"})};O.useEffect(()=>{Oe&&Oe.setAdornedStart(!!D)},[Oe,D]);const G={...r,color:Xe.color||"primary",disabled:Xe.disabled,endAdornment:b,error:Xe.error,focused:Xe.focused,formControl:Oe,fullWidth:C,hiddenLabel:Xe.hiddenLabel,multiline:U,size:Xe.size,startAdornment:D,type:_e},ae=O3(G),ye=Ae.root||l.Root||_s,ve=De.root||c.root||{},Me=Ae.input||l.Input||Ls;return Nt={...Nt,...De.input??c.input},L.jsxs(O.Fragment,{children:[!p&&typeof Z0=="function"&&(Q0||(Q0=L.jsx(Z0,{}))),L.jsxs(ye,{...ve,ref:n,onClick:xn,...He,...!Ji(ye)&&{ownerState:{...G,...ve.ownerState}},className:Be(ae.root,ve.className,o,le&&"MuiInputBase-readOnly"),children:[D,L.jsx(V1.Provider,{value:null,children:L.jsx(Me,{"aria-invalid":Xe.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:d,disabled:Xe.disabled,id:T,onAnimationStart:tr,name:q,placeholder:ne,readOnly:le,required:Xe.required,rows:oe,value:qe,onKeyDown:j,onKeyUp:W,type:_e,...Nt,...!Ji(Me)&&{as:er,ownerState:{...G,...Nt.ownerState}},ref:Pe,className:Be(ae.input,Nt.className,le&&"MuiInputBase-readOnly"),onBlur:Qt,onChange:kt,onFocus:Vt})}),b,fe?fe({...Xe,startAdornment:D}):null]})]})});function B3(e){return pt("MuiInput",e)}const Si={...ea,...ut("MuiInput",["root","underline","input"])};function F3(e){return pt("MuiFilledInput",e)}const Er={...ea,...ut("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},H3=i3(L.jsx("path",{d:"M7 10l5 5 5-5z"})),z3={entering:{opacity:1},entered:{opacity:1}},ou=O.forwardRef(function(t,n){const r=Ns(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:o,easing:u,in:l,onEnter:c,onEntered:d,onEntering:m,onExit:p,onExited:b,onExiting:E,style:C,timeout:T=i,TransitionComponent:S=Ln,...v}=t,_=O.useRef(null),P=rn(_,ma(o),n),k=j=>W=>{if(j){const ne=_.current;W===void 0?j(ne):j(ne,W)}},V=k(m),U=k((j,W)=>{U1(j);const ne=ds({style:C,timeout:T,easing:u},{mode:"enter"});j.style.webkitTransition=r.transitions.create("opacity",ne),j.style.transition=r.transitions.create("opacity",ne),c&&c(j,W)}),q=k(d),B=k(E),K=k(j=>{const W=ds({style:C,timeout:T,easing:u},{mode:"exit"});j.style.webkitTransition=r.transitions.create("opacity",W),j.style.transition=r.transitions.create("opacity",W),p&&p(j)}),Y=k(b),X=j=>{a&&a(_.current,j)};return L.jsx(S,{appear:s,in:l,nodeRef:_,onEnter:U,onEntered:q,onEntering:V,onExit:K,onExited:Y,onExiting:B,addEndListener:X,timeout:T,...v,children:(j,{ownerState:W,...ne})=>O.cloneElement(o,{style:{opacity:0,visibility:j==="exited"&&!l?"hidden":void 0,...z3[j],...C,...o.props.style},ref:P,...ne})})});function U3(e){return pt("MuiBackdrop",e)}ut("MuiBackdrop",["root","invisible"]);const V3=e=>{const{classes:t,invisible:n}=e;return je({root:["root",n&&"invisible"]},U3,t)},j3=ue("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),q1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:s="div",invisible:o=!1,open:u,components:l={},componentsProps:c={},slotProps:d={},slots:m={},TransitionComponent:p,transitionDuration:b,...E}=r,C={...r,component:s,invisible:o},T=V3(C),S={transition:p,root:l.Root,...m},v={...c,...d},_={component:s,slots:S,slotProps:v},[P,k]=At("root",{elementType:j3,externalForwardedProps:_,className:Be(T.root,a),ownerState:C}),[V,U]=At("transition",{elementType:ou,externalForwardedProps:_,ownerState:C});return L.jsx(V,{in:u,timeout:b,...E,...U,children:L.jsx(P,{"aria-hidden":!0,...k,classes:T,ref:n,children:i})})}),q3=ut("MuiBox",["root"]),$3=o3(),ci=S3({themeId:s3,defaultTheme:$3,defaultClassName:q3.root,generateClassName:a3.generate});function $1(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function W3(e){const t=Tn(e);return t.body===e?Wn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Fi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function J0(e){return parseInt(Wn(e).getComputedStyle(e).paddingRight,10)||0}function Y3(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function ec(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,s=>{const o=!a.includes(s),u=!Y3(s);o&&u&&Fi(s,i)})}function no(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function G3(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(W3(r)){const s=$1(Wn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${J0(r)+s}px`;const o=Tn(r).querySelectorAll(".mui-fixed");[].forEach.call(o,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${J0(u)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Tn(r).body;else{const s=r.parentElement,o=Wn(r);a=s?.nodeName==="HTML"&&o.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:o})=>{a?s.style.setProperty(o,a):s.style.removeProperty(o)})}}function K3(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class X3{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Fi(t.modalRef,!1);const i=K3(n);ec(n,t.mount,t.modalRef,i,!0);const a=no(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=no(this.containers,a=>a.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=G3(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=no(this.containers,s=>s.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Fi(t.modalRef,n),ec(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&Fi(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Q3=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Z3(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function J3(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function e6(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||J3(e))}function t6(e){const t=[],n=[];return Array.from(e.querySelectorAll(Q3)).forEach((r,i)=>{const a=Z3(r);a===-1||!e6(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function n6(){return!0}function r6(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=t6,isEnabled:s=n6,open:o}=e,u=O.useRef(!1),l=O.useRef(null),c=O.useRef(null),d=O.useRef(null),m=O.useRef(null),p=O.useRef(!1),b=O.useRef(null),E=rn(ma(t),b),C=O.useRef(null);O.useEffect(()=>{!o||!b.current||(p.current=!n)},[n,o]),O.useEffect(()=>{if(!o||!b.current)return;const v=Tn(b.current);return b.current.contains(v.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),p.current&&b.current.focus()),()=>{i||(d.current&&d.current.focus&&(u.current=!0,d.current.focus()),d.current=null)}},[o]),O.useEffect(()=>{if(!o||!b.current)return;const v=Tn(b.current),_=V=>{C.current=V,!(r||!s()||V.key!=="Tab")&&v.activeElement===b.current&&V.shiftKey&&(u.current=!0,c.current&&c.current.focus())},P=()=>{const V=b.current;if(V===null)return;if(!v.hasFocus()||!s()||u.current){u.current=!1;return}if(V.contains(v.activeElement)||r&&v.activeElement!==l.current&&v.activeElement!==c.current)return;if(v.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!p.current)return;let U=[];if((v.activeElement===l.current||v.activeElement===c.current)&&(U=a(b.current)),U.length>0){const q=!!(C.current?.shiftKey&&C.current?.key==="Tab"),B=U[0],K=U[U.length-1];typeof B!="string"&&typeof K!="string"&&(q?K.focus():B.focus())}else V.focus()};v.addEventListener("focusin",P),v.addEventListener("keydown",_,!0);const k=setInterval(()=>{v.activeElement&&v.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(k),v.removeEventListener("focusin",P),v.removeEventListener("keydown",_,!0)}},[n,r,i,s,o,a]);const T=v=>{d.current===null&&(d.current=v.relatedTarget),p.current=!0,m.current=v.target;const _=t.props.onFocus;_&&_(v)},S=v=>{d.current===null&&(d.current=v.relatedTarget),p.current=!0};return L.jsxs(O.Fragment,{children:[L.jsx("div",{tabIndex:o?0:-1,onFocus:S,ref:l,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:E,onFocus:T}),L.jsx("div",{tabIndex:o?0:-1,onFocus:S,ref:c,"data-testid":"sentinelEnd"})]})}function i6(e){return typeof e=="function"?e():e}function a6(e){return e?e.props.hasOwnProperty("in"):!1}const tc=()=>{},_a=new X3;function s6(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:o,onClose:u,open:l,rootRef:c}=e,d=O.useRef({}),m=O.useRef(null),p=O.useRef(null),b=rn(p,c),[E,C]=O.useState(!l),T=a6(o);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const v=()=>Tn(m.current),_=()=>(d.current.modalRef=p.current,d.current.mount=m.current,d.current),P=()=>{_a.mount(_(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},k=au(()=>{const W=i6(t)||v().body;_a.add(_(),W),p.current&&P()}),V=()=>_a.isTopModal(_()),U=au(W=>{m.current=W,W&&(l&&V()?P():p.current&&Fi(p.current,S))}),q=O.useCallback(()=>{_a.remove(_(),S)},[S]);O.useEffect(()=>()=>{q()},[q]),O.useEffect(()=>{l?k():(!T||!i)&&q()},[l,q,T,i,k]);const B=W=>ne=>{W.onKeyDown?.(ne),!(ne.key!=="Escape"||ne.which===229||!V())&&(n||(ne.stopPropagation(),u&&u(ne,"escapeKeyDown")))},K=W=>ne=>{W.onClick?.(ne),ne.target===ne.currentTarget&&u&&u(ne,"backdropClick")};return{getRootProps:(W={})=>{const ne=u3(e);delete ne.onTransitionEnter,delete ne.onTransitionExited;const le={...ne,...W};return{role:"presentation",...le,onKeyDown:B(le),ref:b}},getBackdropProps:(W={})=>{const ne=W;return{"aria-hidden":!0,...ne,onClick:K(ne),open:l}},getTransitionProps:()=>{const W=()=>{C(!1),a&&a()},ne=()=>{C(!0),s&&s(),i&&q()};return{onEnter:$0(W,o?.props.onEnter??tc),onExited:$0(ne,o?.props.onExited??tc)}},rootRef:b,portalRef:U,isTopModal:V,exited:E,hasTransition:T}}function o6(e){return pt("MuiModal",e)}ut("MuiModal",["root","hidden","backdrop"]);const u6=e=>{const{open:t,exited:n,classes:r}=e;return je({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},o6,r)},l6=ue("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(vt(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),c6=ue(q1,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),W1=O.forwardRef(function(t,n){const r=Ke({name:"MuiModal",props:t}),{BackdropComponent:i=c6,BackdropProps:a,classes:s,className:o,closeAfterTransition:u=!1,children:l,container:c,component:d,components:m={},componentsProps:p={},disableAutoFocus:b=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:C=!1,disablePortal:T=!1,disableRestoreFocus:S=!1,disableScrollLock:v=!1,hideBackdrop:_=!1,keepMounted:P=!1,onClose:k,onTransitionEnter:V,onTransitionExited:U,open:q,slotProps:B={},slots:K={},theme:Y,...X}=r,j={...r,closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:E,disableEscapeKeyDown:C,disablePortal:T,disableRestoreFocus:S,disableScrollLock:v,hideBackdrop:_,keepMounted:P},{getRootProps:W,getBackdropProps:ne,getTransitionProps:le,portalRef:fe,isTopModal:oe,exited:I,hasTransition:De}=s6({...j,rootRef:n}),Ae={...j,exited:I},D=u6(Ae),_e={};if(l.props.tabIndex===void 0&&(_e.tabIndex="-1"),De){const{onEnter:xe,onExited:Pe}=le();_e.onEnter=xe,_e.onExited=Pe}const Ue={slots:{root:m.Root,backdrop:m.Backdrop,...K},slotProps:{...p,...B}},[He,qe]=At("root",{ref:n,elementType:l6,externalForwardedProps:{...Ue,...X,component:d},getSlotProps:W,ownerState:Ae,className:Be(o,D?.root,!Ae.open&&Ae.exited&&D?.hidden)}),[$e,We]=At("backdrop",{ref:a?.ref,elementType:i,externalForwardedProps:Ue,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:xe=>ne({...xe,onClick:Pe=>{xe?.onClick&&xe.onClick(Pe)}}),className:Be(a?.className,D?.backdrop),ownerState:Ae});return!P&&!q&&(!De||I)?null:L.jsx(D3,{ref:fe,container:c,disablePortal:T,children:L.jsxs(He,{...qe,children:[!_&&i?L.jsx($e,{...We}):null,L.jsx(r6,{disableEnforceFocus:E,disableAutoFocus:b,disableRestoreFocus:S,isEnabled:oe,open:q,children:O.cloneElement(l,_e)})]})})});function d6(e){return pt("MuiDialog",e)}const ro=ut("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Y1=O.createContext({}),h6=ue(q1,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),f6=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${Tt(n)}`],paper:["paper",`paperScroll${Tt(n)}`,`paperWidth${Tt(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return je(s,d6,t)},m6=ue(W1,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),p6=ue("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Tt(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),g6=ue(Ms,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Tt(n.scroll)}`],t[`paperWidth${Tt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(vt(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${ro.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${ro.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ro.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),b6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialog"}),i=Ns(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":o,"aria-modal":u=!0,BackdropComponent:l,BackdropProps:c,children:d,className:m,disableEscapeKeyDown:p=!1,fullScreen:b=!1,fullWidth:E=!1,maxWidth:C="sm",onClick:T,onClose:S,open:v,PaperComponent:_=Ms,PaperProps:P={},scroll:k="paper",slots:V={},slotProps:U={},TransitionComponent:q=ou,transitionDuration:B=a,TransitionProps:K,...Y}=r,X={...r,disableEscapeKeyDown:p,fullScreen:b,fullWidth:E,maxWidth:C,scroll:k},j=f6(X),W=O.useRef(),ne=dt=>{W.current=dt.target===dt.currentTarget},le=dt=>{T&&T(dt),W.current&&(W.current=null,S&&S(dt,"backdropClick"))},fe=L1(o),oe=O.useMemo(()=>({titleId:fe}),[fe]),I={transition:q,...V},De={transition:K,paper:P,backdrop:c,...U},Ae={slots:I,slotProps:De},[D,_e]=At("root",{elementType:m6,shouldForwardComponentProp:!0,externalForwardedProps:Ae,ownerState:X,className:Be(j.root,m),ref:n}),[Ue,He]=At("backdrop",{elementType:h6,shouldForwardComponentProp:!0,externalForwardedProps:Ae,ownerState:X}),[qe,$e]=At("paper",{elementType:g6,shouldForwardComponentProp:!0,externalForwardedProps:Ae,ownerState:X,className:Be(j.paper,P.className)}),[We,xe]=At("container",{elementType:p6,externalForwardedProps:Ae,ownerState:X,className:j.container}),[Pe,ze]=At("transition",{elementType:ou,externalForwardedProps:Ae,ownerState:X,additionalProps:{appear:!0,in:v,timeout:B,role:"presentation"}});return L.jsx(D,{closeAfterTransition:!0,slots:{backdrop:Ue},slotProps:{backdrop:{transitionDuration:B,as:l,...He}},disableEscapeKeyDown:p,onClose:S,open:v,onClick:le,..._e,...Y,children:L.jsx(Pe,{...ze,children:L.jsx(We,{onMouseDown:ne,...xe,children:L.jsx(qe,{as:_,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":fe,"aria-modal":u,...$e,children:L.jsx(Y1.Provider,{value:oe,children:d})})})})})});function y6(e){return pt("MuiDialogActions",e)}ut("MuiDialogActions",["root","spacing"]);const T6=e=>{const{classes:t,disableSpacing:n}=e;return je({root:["root",!n&&"spacing"]},y6,t)},E6=ue("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),x6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:a=!1,...s}=r,o={...r,disableSpacing:a},u=T6(o);return L.jsx(E6,{className:Be(u.root,i),ownerState:o,ref:n,...s})}),v6=e=>{const{classes:t,dividers:n}=e;return je({root:["root",n&&"dividers"]},l3,t)},S6=ue("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(vt(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${c3.root} + &`]:{paddingTop:0}}}]}))),A6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContent"}),{className:i,dividers:a=!1,...s}=r,o={...r,dividers:a},u=v6(o);return L.jsx(S6,{className:Be(u.root,i),ownerState:o,ref:n,...s})});function C6(e){return pt("MuiDialogContentText",e)}ut("MuiDialogContentText",["root"]);const w6=e=>{const{classes:t}=e,r=je({root:["root"]},C6,t);return{...t,...r}},k6=ue(Ve,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),I6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContentText"}),{children:i,className:a,...s}=r,o=w6(s);return L.jsx(k6,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:Be(o.root,a),...r,classes:o})}),N6=e=>{const{classes:t}=e;return je({root:["root"]},d3,t)},M6=ue(Ve,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),R6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogTitle"}),{className:i,id:a,...s}=r,o=r,u=N6(o),{titleId:l=a}=O.useContext(Y1);return L.jsx(M6,{component:"h2",className:Be(u.root,i),ownerState:o,ref:n,variant:"h6",id:a??l,...s})}),D6=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:s,multiline:o}=e,u={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",a==="small"&&`size${Tt(a)}`,s&&"hiddenLabel",o&&"multiline"],input:["input"]},l=je(u,F3,t);return{...t,...l}},_6=ue(_s,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Rs(e,t),!n.disableUnderline&&t.underline]}})(vt(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Er.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Er.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Er.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Er.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Er.disabled}, .${Er.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Er.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ol()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:o})=>s.multiline&&o==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),L6=ue(Ls,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ds})(vt(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),G1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:o=!1,hiddenLabel:u,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:m={},type:p="text",...b}=r,E={...r,disableUnderline:i,fullWidth:o,inputComponent:l,multiline:c,type:p},C=D6(r),T={root:{ownerState:E},input:{ownerState:E}},S=d??s?sl(T,d??s):T,v=m.root??a.Root??_6,_=m.input??a.Input??L6;return L.jsx(dl,{slots:{root:v,input:_},slotProps:S,fullWidth:o,inputComponent:l,multiline:c,ref:n,type:p,...b,classes:C})});G1.muiName="Input";function uu(e){return`scale(${e}, ${e**2})`}const P6={entering:{opacity:1,transform:uu(1)},entered:{opacity:1,transform:"none"}},io=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),lu=O.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:s,in:o,onEnter:u,onEntered:l,onEntering:c,onExit:d,onExited:m,onExiting:p,style:b,timeout:E="auto",TransitionComponent:C=Ln,...T}=t,S=h3(),v=O.useRef(),_=Ns(),P=O.useRef(null),k=rn(P,ma(a),n),V=W=>ne=>{if(W){const le=P.current;ne===void 0?W(le):W(le,ne)}},U=V(c),q=V((W,ne)=>{U1(W);const{duration:le,delay:fe,easing:oe}=ds({style:b,timeout:E,easing:s},{mode:"enter"});let I;E==="auto"?(I=_.transitions.getAutoHeightDuration(W.clientHeight),v.current=I):I=le,W.style.transition=[_.transitions.create("opacity",{duration:I,delay:fe}),_.transitions.create("transform",{duration:io?I:I*.666,delay:fe,easing:oe})].join(","),u&&u(W,ne)}),B=V(l),K=V(p),Y=V(W=>{const{duration:ne,delay:le,easing:fe}=ds({style:b,timeout:E,easing:s},{mode:"exit"});let oe;E==="auto"?(oe=_.transitions.getAutoHeightDuration(W.clientHeight),v.current=oe):oe=ne,W.style.transition=[_.transitions.create("opacity",{duration:oe,delay:le}),_.transitions.create("transform",{duration:io?oe:oe*.666,delay:io?le:le||oe*.333,easing:fe})].join(","),W.style.opacity=0,W.style.transform=uu(.75),d&&d(W)}),X=V(m),j=W=>{E==="auto"&&S.start(v.current||0,W),r&&r(P.current,W)};return L.jsx(C,{appear:i,in:o,nodeRef:P,onEnter:q,onEntered:B,onEntering:U,onExit:Y,onExited:X,onExiting:K,addEndListener:j,timeout:E==="auto"?null:E,...T,children:(W,{ownerState:ne,...le})=>O.cloneElement(a,{style:{opacity:0,transform:uu(.75),visibility:W==="exited"&&!o?"hidden":void 0,...P6[W],...b,...a.props.style},ref:k,...le})})});lu&&(lu.muiSupportAuto=!0);const O6=e=>{const{classes:t,disableUnderline:n}=e,i=je({root:["root",!n&&"underline"],input:["input"]},B3,t);return{...t,...i}},B6=ue(_s,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Rs(e,t),!n.disableUnderline&&t.underline]}})(vt(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Si.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Si.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Si.disabled}, .${Si.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Si.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ol()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),F6=ue(Ls,{name:"MuiInput",slot:"Input",overridesResolver:Ds})({}),K1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:o=!1,inputComponent:u="input",multiline:l=!1,slotProps:c,slots:d={},type:m="text",...p}=r,b=O6(r),C={root:{ownerState:{disableUnderline:i}}},T=c??s?sl(c??s,C):C,S=d.root??a.Root??B6,v=d.input??a.Input??F6;return L.jsx(dl,{slots:{root:S,input:v},slotProps:T,fullWidth:o,inputComponent:u,multiline:l,ref:n,type:m,...p,classes:b})});K1.muiName="Input";const jn=O.createContext({});function H6(e){return pt("MuiList",e)}ut("MuiList",["root","padding","dense","subheader"]);const z6=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return je({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},H6,t)},U6=ue("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),X1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiList"}),{children:i,className:a,component:s="ul",dense:o=!1,disablePadding:u=!1,subheader:l,...c}=r,d=O.useMemo(()=>({dense:o}),[o]),m={...r,component:s,dense:o,disablePadding:u},p=z6(m);return L.jsx(jn.Provider,{value:d,children:L.jsxs(U6,{as:s,className:Be(p.root,a),ref:n,ownerState:m,...c,children:[l,i]})})});function V6(e){return pt("MuiListItem",e)}ut("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const j6=ut("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function q6(e){return pt("MuiListItemSecondaryAction",e)}ut("MuiListItemSecondaryAction",["root","disableGutters"]);const $6=e=>{const{disableGutters:t,classes:n}=e;return je({root:["root",t&&"disableGutters"]},q6,n)},W6=ue("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Q1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...a}=r,s=O.useContext(jn),o={...r,disableGutters:s.disableGutters},u=$6(o);return L.jsx(W6,{className:Be(u.root,i),ownerState:o,ref:n,...a})});Q1.muiName="ListItemSecondaryAction";const Y6=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},G6=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:a,divider:s,hasSecondaryAction:o}=e;return je({root:["root",r&&"dense",!i&&"gutters",!a&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",o&&"secondaryAction"],container:["container"]},V6,n)},K6=ue("div",{name:"MuiListItem",slot:"Root",overridesResolver:Y6})(vt(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${j6.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),X6=ue("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Q6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItem"}),{alignItems:i="center",children:a,className:s,component:o,components:u={},componentsProps:l={},ContainerComponent:c="li",ContainerProps:{className:d,...m}={},dense:p=!1,disableGutters:b=!1,disablePadding:E=!1,divider:C=!1,secondaryAction:T,slotProps:S={},slots:v={},..._}=r,P=O.useContext(jn),k=O.useMemo(()=>({dense:p||P.dense||!1,alignItems:i,disableGutters:b}),[i,P.dense,p,b]),V=O.useRef(null),U=O.Children.toArray(a),q=U.length&&A3(U[U.length-1],["ListItemSecondaryAction"]),B={...r,alignItems:i,dense:k.dense,disableGutters:b,disablePadding:E,divider:C,hasSecondaryAction:q},K=G6(B),Y=rn(V,n),X=v.root||u.Root||K6,j=S.root||l.root||{},W={className:Be(K.root,j.className,s),..._};let ne=o||"li";return q?(ne=!W.component&&!o?"div":ne,c==="li"&&(ne==="li"?ne="div":W.component==="li"&&(W.component="div")),L.jsx(jn.Provider,{value:k,children:L.jsxs(X6,{as:c,className:Be(K.container,d),ref:Y,ownerState:B,...m,children:[L.jsx(X,{...j,...!Ji(X)&&{as:ne,ownerState:{...B,...j.ownerState}},...W,children:U}),U.pop()]})})):L.jsx(jn.Provider,{value:k,children:L.jsxs(X,{...j,as:ne,ref:Y,...!Ji(X)&&{ownerState:{...B,...j.ownerState}},...W,children:[U,T&&L.jsx(Q1,{children:T})]})})}),Z6=e=>{const{alignItems:t,classes:n}=e;return je({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},f3,n)},J6=ue("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(vt(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),eg=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemIcon"}),{className:i,...a}=r,s=O.useContext(jn),o={...r,alignItems:s.alignItems},u=Z6(o);return L.jsx(J6,{className:Be(u.root,i),ownerState:o,ref:n,...a})});function tg(e){return pt("MuiListItemText",e)}const Gr=ut("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ng=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return je({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},tg,t)},rg=ue("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Gr.primary}`]:t.primary},{[`& .${Gr.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${H0.root}:where(& .${Gr.primary})`]:{display:"block"},[`.${H0.root}:where(& .${Gr.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),ig=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:s=!1,inset:o=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:d,slots:m={},slotProps:p={},...b}=r,{dense:E}=O.useContext(jn);let C=u??i,T=c;const S={...r,disableTypography:s,inset:o,primary:!!C,secondary:!!T,dense:E},v=ng(S),_={slots:m,slotProps:{primary:l,secondary:d,...p}},[P,k]=At("root",{className:Be(v.root,a),elementType:rg,externalForwardedProps:{..._,...b},ownerState:S,ref:n}),[V,U]=At("primary",{className:v.primary,elementType:Ve,externalForwardedProps:_,ownerState:S}),[q,B]=At("secondary",{className:v.secondary,elementType:Ve,externalForwardedProps:_,ownerState:S});return C!=null&&C.type!==Ve&&!s&&(C=L.jsx(V,{variant:E?"body2":"body1",component:U?.variant?void 0:"span",...U,children:C})),T!=null&&T.type!==Ve&&!s&&(T=L.jsx(q,{variant:"body2",color:"textSecondary",...B,children:T})),L.jsxs(P,{...k,children:[C,T]})});function ao(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function nc(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Z1(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Ai(e,t,n,r,i,a){let s=!1,o=i(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(s)return!1;s=!0}const u=r?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!Z1(o,a)||u)o=i(e,o,n);else return o.focus(),!0}return!1}const ag=O.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:o,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu",...m}=t,p=O.useRef(null),b=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Lr(()=>{i&&p.current.focus()},[i]),O.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(v,{direction:_})=>{const P=!p.current.style.width;if(v.clientHeight{const _=p.current,P=v.key;if(v.ctrlKey||v.metaKey||v.altKey){c&&c(v);return}const V=Tn(_).activeElement;if(P==="ArrowDown")v.preventDefault(),Ai(_,V,l,u,ao);else if(P==="ArrowUp")v.preventDefault(),Ai(_,V,l,u,nc);else if(P==="Home")v.preventDefault(),Ai(_,null,l,u,ao);else if(P==="End")v.preventDefault(),Ai(_,null,l,u,nc);else if(P.length===1){const U=b.current,q=P.toLowerCase(),B=performance.now();U.keys.length>0&&(B-U.lastTime>500?(U.keys=[],U.repeating=!0,U.previousKeyMatched=!0):U.repeating&&q!==U.keys[0]&&(U.repeating=!1)),U.lastTime=B,U.keys.push(q);const K=V&&!U.repeating&&Z1(V,U);U.previousKeyMatched&&(K||Ai(_,V,!1,u,ao,U))?v.preventDefault():U.previousKeyMatched=!1}c&&c(v)},C=rn(p,n);let T=-1;O.Children.forEach(s,(v,_)=>{if(!O.isValidElement(v)){T===_&&(T+=1,T>=s.length&&(T=-1));return}v.props.disabled||(d==="selectedMenu"&&v.props.selected||T===-1)&&(T=_),T===_&&(v.props.disabled||v.props.muiSkipListHighlight||v.type.muiSkipListHighlight)&&(T+=1,T>=s.length&&(T=-1))});const S=O.Children.map(s,(v,_)=>{if(_===T){const P={};return a&&(P.autoFocus=!0),v.props.tabIndex===void 0&&d==="selectedMenu"&&(P.tabIndex=0),O.cloneElement(v,P)}return v});return L.jsx(X1,{role:"menu",ref:C,className:o,onKeyDown:E,tabIndex:i?0:-1,...m,children:S})});function sg(e){return pt("MuiPopover",e)}ut("MuiPopover",["root","paper"]);function rc(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function ic(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function ac(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function La(e){return typeof e=="function"?e():e}const og=e=>{const{classes:t}=e;return je({root:["root"],paper:["paper"]},sg,t)},ug=ue(W1,{name:"MuiPopover",slot:"Root"})({}),J1=ue(Ms,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),lg=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:o,anchorReference:u="anchorEl",children:l,className:c,container:d,elevation:m=8,marginThreshold:p=16,open:b,PaperProps:E={},slots:C={},slotProps:T={},transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:v,transitionDuration:_="auto",TransitionProps:P={},disableScrollLock:k=!1,...V}=r,U=O.useRef(),q={...r,anchorOrigin:s,anchorReference:u,elevation:m,marginThreshold:p,transformOrigin:S,TransitionComponent:v,transitionDuration:_,TransitionProps:P},B=og(q),K=O.useCallback(()=>{if(u==="anchorPosition")return o;const xe=La(a),ze=(xe&&xe.nodeType===1?xe:Tn(U.current).body).getBoundingClientRect();return{top:ze.top+rc(ze,s.vertical),left:ze.left+ic(ze,s.horizontal)}},[a,s.horizontal,s.vertical,o,u]),Y=O.useCallback(xe=>({vertical:rc(xe,S.vertical),horizontal:ic(xe,S.horizontal)}),[S.horizontal,S.vertical]),X=O.useCallback(xe=>{const Pe={width:xe.offsetWidth,height:xe.offsetHeight},ze=Y(Pe);if(u==="none")return{top:null,left:null,transformOrigin:ac(ze)};const dt=K();let Oe=dt.top-ze.vertical,Xe=dt.left-ze.horizontal;const Pt=Oe+Pe.height,Ot=Xe+Pe.width,wt=Wn(La(a)),Vt=wt.innerHeight-p,Qt=wt.innerWidth-p;if(p!==null&&OeVt){const kt=Pt-Vt;Oe-=kt,ze.vertical+=kt}if(p!==null&&XeQt){const kt=Ot-Qt;Xe-=kt,ze.horizontal+=kt}return{top:`${Math.round(Oe)}px`,left:`${Math.round(Xe)}px`,transformOrigin:ac(ze)}},[a,u,K,Y,p]),[j,W]=O.useState(b),ne=O.useCallback(()=>{const xe=U.current;if(!xe)return;const Pe=X(xe);Pe.top!==null&&xe.style.setProperty("top",Pe.top),Pe.left!==null&&(xe.style.left=Pe.left),xe.style.transformOrigin=Pe.transformOrigin,W(!0)},[X]);O.useEffect(()=>(k&&window.addEventListener("scroll",ne),()=>window.removeEventListener("scroll",ne)),[a,k,ne]);const le=()=>{ne()},fe=()=>{W(!1)};O.useEffect(()=>{b&&ne()}),O.useImperativeHandle(i,()=>b?{updatePosition:()=>{ne()}}:null,[b,ne]),O.useEffect(()=>{if(!b)return;const xe=z1(()=>{ne()}),Pe=Wn(La(a));return Pe.addEventListener("resize",xe),()=>{xe.clear(),Pe.removeEventListener("resize",xe)}},[a,b,ne]);let oe=_;const I={slots:{transition:v,...C},slotProps:{transition:P,paper:E,...T}},[De,Ae]=At("transition",{elementType:lu,externalForwardedProps:I,ownerState:q,getSlotProps:xe=>({...xe,onEntering:(Pe,ze)=>{xe.onEntering?.(Pe,ze),le()},onExited:Pe=>{xe.onExited?.(Pe),fe()}}),additionalProps:{appear:!0,in:b}});_==="auto"&&!De.muiSupportAuto&&(oe=void 0);const D=d||(a?Tn(La(a)).body:void 0),[_e,{slots:Ue,slotProps:He,...qe}]=At("root",{ref:n,elementType:ug,externalForwardedProps:{...I,...V},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:C.backdrop},slotProps:{backdrop:I3(typeof T.backdrop=="function"?T.backdrop(q):T.backdrop,{invisible:!0})},container:D,open:b},ownerState:q,className:Be(B.root,c)}),[$e,We]=At("paper",{ref:U,className:B.paper,elementType:J1,externalForwardedProps:I,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:j?void 0:{opacity:0}},ownerState:q});return L.jsx(_e,{...qe,...!Ji(_e)&&{slots:Ue,slotProps:He,disableScrollLock:k},children:L.jsx(De,{...Ae,timeout:oe,children:L.jsx($e,{...We,children:l})})})});function cg(e){return pt("MuiMenu",e)}ut("MuiMenu",["root","paper","list"]);const dg={vertical:"top",horizontal:"right"},hg={vertical:"top",horizontal:"left"},fg=e=>{const{classes:t}=e;return je({root:["root"],paper:["paper"],list:["list"]},cg,t)},mg=ue(lg,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),pg=ue(J1,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),gg=ue(ag,{name:"MuiMenu",slot:"List"})({outline:0}),bg=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:o=!1,MenuListProps:u={},onClose:l,open:c,PaperProps:d={},PopoverClasses:m,transitionDuration:p="auto",TransitionProps:{onEntering:b,...E}={},variant:C="selectedMenu",slots:T={},slotProps:S={},...v}=r,_=m3(),P={...r,autoFocus:i,disableAutoFocusItem:o,MenuListProps:u,onEntering:b,PaperProps:d,transitionDuration:p,TransitionProps:E,variant:C},k=fg(P),V=i&&!o&&c,U=O.useRef(null),q=(oe,I)=>{U.current&&U.current.adjustStyleForScrollbar(oe,{direction:_?"rtl":"ltr"}),b&&b(oe,I)},B=oe=>{oe.key==="Tab"&&(oe.preventDefault(),l&&l(oe,"tabKeyDown"))};let K=-1;O.Children.map(a,(oe,I)=>{O.isValidElement(oe)&&(oe.props.disabled||(C==="selectedMenu"&&oe.props.selected||K===-1)&&(K=I))});const Y={slots:T,slotProps:{list:u,transition:E,paper:d,...S}},X=M3({elementType:T.root,externalSlotProps:S.root,ownerState:P,className:[k.root,s]}),[j,W]=At("paper",{className:k.paper,elementType:pg,externalForwardedProps:Y,shouldForwardComponentProp:!0,ownerState:P}),[ne,le]=At("list",{className:Be(k.list,u.className),elementType:gg,shouldForwardComponentProp:!0,externalForwardedProps:Y,getSlotProps:oe=>({...oe,onKeyDown:I=>{B(I),oe.onKeyDown?.(I)}}),ownerState:P}),fe=typeof Y.slotProps.transition=="function"?Y.slotProps.transition(P):Y.slotProps.transition;return L.jsx(mg,{onClose:l,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?dg:hg,slots:{root:T.root,paper:j,backdrop:T.backdrop,...T.transition&&{transition:T.transition}},slotProps:{root:X,paper:W,backdrop:typeof S.backdrop=="function"?S.backdrop(P):S.backdrop,transition:{...fe,onEntering:(...oe)=>{q(...oe),fe?.onEntering?.(...oe)}}},open:c,ref:n,transitionDuration:p,ownerState:P,...v,classes:m,children:L.jsx(ne,{actions:U,autoFocus:i&&(K===-1||o),autoFocusItem:V,variant:C,...le,children:a})})});function yg(e){return pt("MuiMenuItem",e)}const Ci=ut("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Tg=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Eg=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,u=je({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},yg,s);return{...s,...u}},xg=ue(p3,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Tg})(vt(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ci.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ci.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Ci.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Ci.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ci.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${U0.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${U0.inset}`]:{marginLeft:52},[`& .${Gr.root}`]:{marginTop:0,marginBottom:0},[`& .${Gr.inset}`]:{paddingLeft:36},[`& .${z0.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${z0.root} svg`]:{fontSize:"1.25rem"}}}]}))),vg=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:o=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:m,...p}=r,b=O.useContext(jn),E=O.useMemo(()=>({dense:s||b.dense||!1,disableGutters:u}),[b.dense,s,u]),C=O.useRef(null);Lr(()=>{i&&C.current&&C.current.focus()},[i]);const T={...r,dense:E.dense,divider:o,disableGutters:u},S=Eg(r),v=rn(C,n);let _;return r.disabled||(_=d!==void 0?d:-1),L.jsx(jn.Provider,{value:E,children:L.jsx(xg,{ref:v,role:c,tabIndex:_,component:a,focusVisibleClassName:Be(S.focusVisible,l),className:Be(S.root,m),...p,ownerState:T,classes:S})})});function Sg(e){return pt("MuiNativeSelect",e)}const hl=ut("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ag=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Tt(n)}`,a&&"iconOpen",r&&"disabled"]};return je(o,Sg,t)},ef=ue("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${hl.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Cg=ue(ef,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Dn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${hl.multiple}`]:t.multiple}]}})({}),tf=ue("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${hl.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),wg=ue(tf,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Tt(n.variant)}`],n.open&&t.iconOpen]}})({}),kg=O.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:s,inputRef:o,variant:u="standard",...l}=t,c={...t,disabled:i,variant:u,error:a},d=Ag(c);return L.jsxs(O.Fragment,{children:[L.jsx(Cg,{ownerState:c,className:Be(d.select,r),disabled:i,ref:o||n,...l}),t.multiple?null:L.jsx(wg,{as:s,ownerState:c,className:d.icon})]})});var sc;const Ig=ue("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Dn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Ng=ue("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Dn})(vt(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Mg(e){const{children:t,classes:n,className:r,label:i,notched:a,...s}=e,o=i!=null&&i!=="",u={...e,notched:a,withLabel:o};return L.jsx(Ig,{"aria-hidden":!0,className:r,ownerState:u,...s,children:L.jsx(Ng,{ownerState:u,children:o?L.jsx("span",{children:i}):sc||(sc=L.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const Rg=e=>{const{classes:t}=e,r=je({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},g3,t);return{...t,...r}},Dg=ue(_s,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Rs})(vt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${vn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${vn.focused} .${vn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(ol()).map(([n])=>({props:{color:n},style:{[`&.${vn.focused} .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${vn.error} .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${vn.disabled} .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),_g=ue(Mg,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(vt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),Lg=ue(Ls,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ds})(vt(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),nf=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:o,multiline:u=!1,notched:l,slots:c={},slotProps:d={},type:m="text",...p}=r,b=Rg(r),E=cl(),C=ll({props:r,muiFormControl:E,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T={...r,color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:E,fullWidth:a,hiddenLabel:C.hiddenLabel,multiline:u,size:C.size,type:m},S=c.root??i.Root??Dg,v=c.input??i.Input??Lg,[_,P]=At("notchedOutline",{elementType:_g,className:b.notchedOutline,shouldForwardComponentProp:!0,ownerState:T,externalForwardedProps:{slots:c,slotProps:d},additionalProps:{label:o!=null&&o!==""&&C.required?L.jsxs(O.Fragment,{children:[o," ","*"]}):o}});return L.jsx(dl,{slots:{root:S,input:v},slotProps:d,renderSuffix:k=>L.jsx(_,{...P,notched:typeof l<"u"?l:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:a,inputComponent:s,multiline:u,ref:n,type:m,...p,classes:{...b,notchedOutline:null}})});nf.muiName="Input";function rf(e){return pt("MuiSelect",e)}const wi=ut("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var oc;const Pg=ue(ef,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${wi.select}`]:t.select},{[`&.${wi.select}`]:t[n.variant]},{[`&.${wi.error}`]:t.error},{[`&.${wi.multiple}`]:t.multiple}]}})({[`&.${wi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Og=ue(tf,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Tt(n.variant)}`],n.open&&t.iconOpen]}})({}),Bg=ue("input",{shouldForwardProp:e=>b3(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function uc(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Fg(e){return e==null||typeof e=="string"&&!e.trim()}const Hg=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Tt(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return je(o,rf,t)},zg=O.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:a,autoWidth:s,children:o,className:u,defaultOpen:l,defaultValue:c,disabled:d,displayEmpty:m,error:p=!1,IconComponent:b,inputRef:E,labelId:C,MenuProps:T={},multiple:S,name:v,onBlur:_,onChange:P,onClose:k,onFocus:V,onOpen:U,open:q,readOnly:B,renderValue:K,required:Y,SelectDisplayProps:X={},tabIndex:j,type:W,value:ne,variant:le="standard",...fe}=t,[oe,I]=Y0({controlled:ne,default:c,name:"Select"}),[De,Ae]=Y0({controlled:q,default:l,name:"Select"}),D=O.useRef(null),_e=O.useRef(null),[Ue,He]=O.useState(null),{current:qe}=O.useRef(q!=null),[$e,We]=O.useState(),xe=rn(n,E),Pe=O.useCallback(me=>{_e.current=me,me&&He(me)},[]),ze=Ue?.parentNode;O.useImperativeHandle(xe,()=>({focus:()=>{_e.current.focus()},node:D.current,value:oe}),[oe]),O.useEffect(()=>{l&&De&&Ue&&!qe&&(We(s?null:ze.clientWidth),_e.current.focus())},[Ue,s]),O.useEffect(()=>{a&&_e.current.focus()},[a]),O.useEffect(()=>{if(!C)return;const me=Tn(_e.current).getElementById(C);if(me){const ke=()=>{getSelection().isCollapsed&&_e.current.focus()};return me.addEventListener("click",ke),()=>{me.removeEventListener("click",ke)}}},[C]);const dt=(me,ke)=>{me?U&&U(ke):k&&k(ke),qe||(We(s?null:ze.clientWidth),Ae(me))},Oe=me=>{me.button===0&&(me.preventDefault(),_e.current.focus(),dt(!0,me))},Xe=me=>{dt(!1,me)},Pt=O.Children.toArray(o),Ot=me=>{const ke=Pt.find(tt=>tt.props.value===me.target.value);ke!==void 0&&(I(ke.props.value),P&&P(me,ke))},wt=me=>ke=>{let tt;if(ke.currentTarget.hasAttribute("tabindex")){if(S){tt=Array.isArray(oe)?oe.slice():[];const Mt=oe.indexOf(me.props.value);Mt===-1?tt.push(me.props.value):tt.splice(Mt,1)}else tt=me.props.value;if(me.props.onClick&&me.props.onClick(ke),oe!==tt&&(I(tt),P)){const Mt=ke.nativeEvent||ke,F0=new Mt.constructor(Mt.type,Mt);Object.defineProperty(F0,"target",{writable:!0,value:{value:tt,name:v}}),P(F0,me)}S||dt(!1,ke)}},Vt=me=>{B||[" ","ArrowUp","ArrowDown","Enter"].includes(me.key)&&(me.preventDefault(),dt(!0,me))},Qt=Ue!==null&&De,kt=me=>{!Qt&&_&&(Object.defineProperty(me,"target",{writable:!0,value:{value:oe,name:v}}),_(me))};delete fe["aria-invalid"];let xn,er;const Nt=[];let tr=!1;(j1({value:oe})||m)&&(K?xn=K(oe):tr=!0);const G=Pt.map(me=>{if(!O.isValidElement(me))return null;let ke;if(S){if(!Array.isArray(oe))throw new Error(_1(2));ke=oe.some(tt=>uc(tt,me.props.value)),ke&&tr&&Nt.push(me.props.children)}else ke=uc(oe,me.props.value),ke&&tr&&(er=me.props.children);return O.cloneElement(me,{"aria-selected":ke?"true":"false",onClick:wt(me),onKeyUp:tt=>{tt.key===" "&&tt.preventDefault(),me.props.onKeyUp&&me.props.onKeyUp(tt)},role:"option",selected:ke,value:void 0,"data-value":me.props.value})});tr&&(S?Nt.length===0?xn=null:xn=Nt.reduce((me,ke,tt)=>(me.push(ke),tt{const{classes:t}=e,r=je({root:["root"]},rf,t);return{...t,...r}},fl={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Dn(e)&&e!=="variant"},Vg=ue(K1,fl)(""),jg=ue(nf,fl)(""),qg=ue(G1,fl)(""),af=O.forwardRef(function(t,n){const r=Ke({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:s={},className:o,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=H3,id:d,input:m,inputProps:p,label:b,labelId:E,MenuProps:C,multiple:T=!1,native:S=!1,onClose:v,onOpen:_,open:P,renderValue:k,SelectDisplayProps:V,variant:U="outlined",...q}=r,B=S?kg:zg,K=cl(),Y=ll({props:r,muiFormControl:K,states:["variant","error"]}),X=Y.variant||U,j={...r,variant:X,classes:s},W=Ug(j),{root:ne,...le}=W,fe=m||{standard:L.jsx(Vg,{ownerState:j}),outlined:L.jsx(jg,{label:b,ownerState:j}),filled:L.jsx(qg,{ownerState:j})}[X],oe=rn(n,ma(fe));return L.jsx(O.Fragment,{children:O.cloneElement(fe,{inputComponent:B,inputProps:{children:a,error:Y.error,IconComponent:c,variant:X,type:void 0,multiple:T,...S?{id:d}:{autoWidth:i,defaultOpen:u,displayEmpty:l,labelId:E,MenuProps:C,onClose:v,onOpen:_,open:P,renderValue:k,SelectDisplayProps:{id:d,...V}},...p,classes:p?sl(le,p.classes):le,...m?m.props.inputProps:{}},...(T&&S||l)&&X==="outlined"?{notched:!0}:{},ref:oe,className:Be(fe.props.className,o,W.root),...!m&&{variant:X},...q})})});af.muiName="Select";function $g(e){return pt("MuiSkeleton",e)}ut("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Wg=e=>{const{classes:t,variant:n,animation:r,hasChildren:i,width:a,height:s}=e;return je({root:["root",n,r,i&&"withChildren",i&&!a&&"fitContent",i&&!s&&"heightAuto"]},$g,t)},cu=O1` 0% { diff --git a/src/frontend/dist/assets/setup-Bxlzm9g5.js b/src/frontend/dist/assets/setup-Bsllr9Nn.js similarity index 98% rename from src/frontend/dist/assets/setup-Bxlzm9g5.js rename to src/frontend/dist/assets/setup-Bsllr9Nn.js index 4af110e2..0b8ba4ce 100644 --- a/src/frontend/dist/assets/setup-Bxlzm9g5.js +++ b/src/frontend/dist/assets/setup-Bsllr9Nn.js @@ -1 +1 @@ -import{r as i,a as X,u as G,j as o,s as L,c as M,b as S,d as I,g as V,B as D,m as A,t as C,e as F,f as Y,h as H,i as _,k as q,l as J,T as b,n as K,S as Q}from"./index-PErRMx3K.js";import{O as Z,M as tt,a as et}from"./main-layout-By96MLvX.js";function ot(t){return i.Children.toArray(t).filter(e=>i.isValidElement(e))}const E=i.createContext({}),U=i.createContext(void 0);function rt(t,e){return e===void 0||t===void 0?!1:Array.isArray(e)?e.includes(t):t===e}const st=t=>{const{classes:e,fullWidth:a,selected:p,disabled:d,size:g,color:x}=t,u={root:["root",p&&"selected",d&&"disabled",a&&"fullWidth",`size${S(g)}`,x]};return I(u,V,e)},at=L(D,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:a}=t;return[e.root,e[`size${S(a.size)}`]]}})(A(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${C.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${C.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(F()).map(([e])=>({props:{color:e},style:{[`&.${C.selected}`]:{color:(t.vars||t).palette[e].main,backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),W=i.forwardRef(function(e,a){const{value:p,...d}=i.useContext(E),g=i.useContext(U),x=X({...d,selected:rt(e.value,p)},e),u=G({props:x,name:"MuiToggleButton"}),{children:$,className:v,color:l="standard",disabled:B=!1,disableFocusRipple:h=!1,fullWidth:n=!1,onChange:R,onClick:T,selected:f,size:k="medium",value:j,...z}=u,m={...u,color:l,disabled:B,disableFocusRipple:h,fullWidth:n,size:k},O=st(m),P=s=>{T&&(T(s,j),s.defaultPrevented)||R&&R(s,j)},c=g||"";return o.jsx(at,{className:M(d.className,O.root,v,c),disabled:B,focusRipple:!h,ref:a,onClick:P,onChange:R,value:j,ownerState:m,"aria-pressed":f,...z,children:$})});function nt(t){return H("MuiToggleButtonGroup",t)}const r=Y("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),lt=t=>{const{classes:e,orientation:a,fullWidth:p,disabled:d}=t,g={root:["root",a,p&&"fullWidth"],grouped:["grouped",`grouped${S(a)}`,d&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return I(g,nt,e)},it=L("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:a}=t;return[{[`& .${r.grouped}`]:e.grouped},{[`& .${r.grouped}`]:e[`grouped${S(a.orientation)}`]},{[`& .${r.firstButton}`]:e.firstButton},{[`& .${r.lastButton}`]:e.lastButton},{[`& .${r.middleButton}`]:e.middleButton},e.root,a.orientation==="vertical"&&e.vertical,a.fullWidth&&e.fullWidth]}})(A(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${r.grouped}`]:{[`&.${r.selected} + .${r.grouped}.${r.selected}`]:{borderTop:0,marginTop:0}},[`& .${r.firstButton},& .${r.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${r.lastButton},& .${r.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${r.lastButton}.${C.disabled},& .${r.middleButton}.${C.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${r.grouped}`]:{[`&.${r.selected} + .${r.grouped}.${r.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${r.firstButton},& .${r.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${r.lastButton},& .${r.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${r.lastButton}.${C.disabled},& .${r.middleButton}.${C.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),dt=i.forwardRef(function(e,a){const p=G({props:e,name:"MuiToggleButtonGroup"}),{children:d,className:g,color:x="standard",disabled:u=!1,exclusive:$=!1,fullWidth:v=!1,onChange:l,orientation:B="horizontal",size:h="medium",value:n,...R}=p,T={...p,disabled:u,fullWidth:v,orientation:B,size:h},f=lt(T),k=i.useCallback((c,s)=>{if(!l)return;const w=n&&n.indexOf(s);let N;n&&w>=0?(N=n.slice(),N.splice(w,1)):N=n?n.concat(s):[s],l(c,N)},[l,n]),j=i.useCallback((c,s)=>{l&&l(c,n===s?null:s)},[l,n]),z=i.useMemo(()=>({className:f.grouped,onChange:$?j:k,value:n,size:h,fullWidth:v,color:x,disabled:u}),[f.grouped,$,j,k,n,h,v,x,u]),m=ot(d),O=m.length,P=c=>{const s=c===0,w=c===O-1;return s&&w?"":s?f.firstButton:w?f.lastButton:f.middleButton};return o.jsx(it,{role:"group",className:M(f.root,g),ref:a,ownerState:T,...R,children:o.jsx(E.Provider,{value:z,children:m.map((c,s)=>o.jsx(U.Provider,{value:P(s),children:c},s))})})}),ut=t=>o.jsx(Z,{type:"number",...t,inputRef:t.inputRef,slotProps:{input:{step:1,sx:{textAlign:"center",...t.slotProps?.input?.sx},...t.slotProps?.input},...t.slotProps},"data-debug-typeof":typeof t.value}),y=L(Q)(({theme:t})=>{const{spacing:e}=t;return{overflowY:"auto"}});function gt(){const[{networkType:t,initNodesNumber:e,modelName:a,modelInfoList:p},{setNetworkType:d,setInitNodesNumber:g,setModelName:x,init:u}]=_(),$=q(),v=J(()=>{u(),$("/join")});return o.jsxs(tt,{children:[o.jsx(b,{variant:"h1",children:"Build Your Own AI Cluster"}),o.jsxs(y,{gap:2.5,children:[o.jsxs(y,{gap:.5,children:[o.jsx(b,{variant:"body1",children:"Step 1 - Specify the initial number of worker nodes to join"}),o.jsx(b,{variant:"body2",color:"text.secondary",fontWeight:"regular",children:"XXX Explainations here"})]}),o.jsxs(y,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:2,children:[o.jsx(b,{color:"text.secondary",children:"Node Number"}),o.jsx(ut,{sx:{width:"10rem"},value:e,onChange:l=>g(Number(l.target.value))})]}),o.jsxs(y,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:2,children:[o.jsx(b,{color:"text.secondary",children:"Are you nodes within the same local network?"}),o.jsxs(dt,{sx:{width:"10rem"},exclusive:!0,value:t,onChange:(l,B)=>B&&d(B),children:[o.jsx(W,{value:"local",children:"Local"}),o.jsx(W,{value:"remote",children:"Remote"})]})]})]}),o.jsxs(y,{gap:2.5,children:[o.jsxs(y,{gap:.5,children:[o.jsx(b,{variant:"body1",children:"Step 2 - Select the model you would like to host"}),o.jsx(b,{variant:"body2",color:"text.secondary",fontWeight:"regular",children:"XXX Explainations here"})]}),o.jsx(et,{})]}),o.jsx(y,{direction:"row",justifyContent:"flex-end",alignItems:"center",gap:2,children:o.jsx(K,{onClick:v,children:"Continue"})})]})}export{gt as default}; +import{r as i,a as X,u as G,j as o,s as L,c as M,b as S,d as I,g as V,B as D,m as A,t as C,e as F,f as Y,h as H,i as _,k as q,l as J,T as b,n as K,S as Q}from"./index-BlRBE7Ft.js";import{O as Z,M as tt,a as et}from"./main-layout-C11OgrSN.js";function ot(t){return i.Children.toArray(t).filter(e=>i.isValidElement(e))}const E=i.createContext({}),U=i.createContext(void 0);function rt(t,e){return e===void 0||t===void 0?!1:Array.isArray(e)?e.includes(t):t===e}const st=t=>{const{classes:e,fullWidth:a,selected:p,disabled:d,size:g,color:x}=t,u={root:["root",p&&"selected",d&&"disabled",a&&"fullWidth",`size${S(g)}`,x]};return I(u,V,e)},at=L(D,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:a}=t;return[e.root,e[`size${S(a.size)}`]]}})(A(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${C.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${C.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(F()).map(([e])=>({props:{color:e},style:{[`&.${C.selected}`]:{color:(t.vars||t).palette[e].main,backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),W=i.forwardRef(function(e,a){const{value:p,...d}=i.useContext(E),g=i.useContext(U),x=X({...d,selected:rt(e.value,p)},e),u=G({props:x,name:"MuiToggleButton"}),{children:$,className:v,color:l="standard",disabled:B=!1,disableFocusRipple:h=!1,fullWidth:n=!1,onChange:R,onClick:T,selected:f,size:k="medium",value:j,...z}=u,m={...u,color:l,disabled:B,disableFocusRipple:h,fullWidth:n,size:k},O=st(m),P=s=>{T&&(T(s,j),s.defaultPrevented)||R&&R(s,j)},c=g||"";return o.jsx(at,{className:M(d.className,O.root,v,c),disabled:B,focusRipple:!h,ref:a,onClick:P,onChange:R,value:j,ownerState:m,"aria-pressed":f,...z,children:$})});function nt(t){return H("MuiToggleButtonGroup",t)}const r=Y("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),lt=t=>{const{classes:e,orientation:a,fullWidth:p,disabled:d}=t,g={root:["root",a,p&&"fullWidth"],grouped:["grouped",`grouped${S(a)}`,d&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return I(g,nt,e)},it=L("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:a}=t;return[{[`& .${r.grouped}`]:e.grouped},{[`& .${r.grouped}`]:e[`grouped${S(a.orientation)}`]},{[`& .${r.firstButton}`]:e.firstButton},{[`& .${r.lastButton}`]:e.lastButton},{[`& .${r.middleButton}`]:e.middleButton},e.root,a.orientation==="vertical"&&e.vertical,a.fullWidth&&e.fullWidth]}})(A(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${r.grouped}`]:{[`&.${r.selected} + .${r.grouped}.${r.selected}`]:{borderTop:0,marginTop:0}},[`& .${r.firstButton},& .${r.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${r.lastButton},& .${r.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${r.lastButton}.${C.disabled},& .${r.middleButton}.${C.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${r.grouped}`]:{[`&.${r.selected} + .${r.grouped}.${r.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${r.firstButton},& .${r.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${r.lastButton},& .${r.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${r.lastButton}.${C.disabled},& .${r.middleButton}.${C.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),dt=i.forwardRef(function(e,a){const p=G({props:e,name:"MuiToggleButtonGroup"}),{children:d,className:g,color:x="standard",disabled:u=!1,exclusive:$=!1,fullWidth:v=!1,onChange:l,orientation:B="horizontal",size:h="medium",value:n,...R}=p,T={...p,disabled:u,fullWidth:v,orientation:B,size:h},f=lt(T),k=i.useCallback((c,s)=>{if(!l)return;const w=n&&n.indexOf(s);let N;n&&w>=0?(N=n.slice(),N.splice(w,1)):N=n?n.concat(s):[s],l(c,N)},[l,n]),j=i.useCallback((c,s)=>{l&&l(c,n===s?null:s)},[l,n]),z=i.useMemo(()=>({className:f.grouped,onChange:$?j:k,value:n,size:h,fullWidth:v,color:x,disabled:u}),[f.grouped,$,j,k,n,h,v,x,u]),m=ot(d),O=m.length,P=c=>{const s=c===0,w=c===O-1;return s&&w?"":s?f.firstButton:w?f.lastButton:f.middleButton};return o.jsx(it,{role:"group",className:M(f.root,g),ref:a,ownerState:T,...R,children:o.jsx(E.Provider,{value:z,children:m.map((c,s)=>o.jsx(U.Provider,{value:P(s),children:c},s))})})}),ut=t=>o.jsx(Z,{type:"number",...t,inputRef:t.inputRef,slotProps:{input:{step:1,sx:{textAlign:"center",...t.slotProps?.input?.sx},...t.slotProps?.input},...t.slotProps},"data-debug-typeof":typeof t.value}),y=L(Q)(({theme:t})=>{const{spacing:e}=t;return{overflowY:"auto"}});function gt(){const[{networkType:t,initNodesNumber:e,modelName:a,modelInfoList:p},{setNetworkType:d,setInitNodesNumber:g,setModelName:x,init:u}]=_(),$=q(),v=J(()=>{u(),$("/join")});return o.jsxs(tt,{children:[o.jsx(b,{variant:"h1",children:"Build Your Own AI Cluster"}),o.jsxs(y,{gap:2.5,children:[o.jsxs(y,{gap:.5,children:[o.jsx(b,{variant:"body1",children:"Step 1 - Specify the initial number of worker nodes to join"}),o.jsx(b,{variant:"body2",color:"text.secondary",fontWeight:"regular",children:"XXX Explainations here"})]}),o.jsxs(y,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:2,children:[o.jsx(b,{color:"text.secondary",children:"Node Number"}),o.jsx(ut,{sx:{width:"10rem"},value:e,onChange:l=>g(Number(l.target.value))})]}),o.jsxs(y,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:2,children:[o.jsx(b,{color:"text.secondary",children:"Are you nodes within the same local network?"}),o.jsxs(dt,{sx:{width:"10rem"},exclusive:!0,value:t,onChange:(l,B)=>B&&d(B),children:[o.jsx(W,{value:"local",children:"Local"}),o.jsx(W,{value:"remote",children:"Remote"})]})]})]}),o.jsxs(y,{gap:2.5,children:[o.jsxs(y,{gap:.5,children:[o.jsx(b,{variant:"body1",children:"Step 2 - Select the model you would like to host"}),o.jsx(b,{variant:"body2",color:"text.secondary",fontWeight:"regular",children:"XXX Explainations here"})]}),o.jsx(et,{})]}),o.jsx(y,{direction:"row",justifyContent:"flex-end",alignItems:"center",gap:2,children:o.jsx(K,{onClick:v,children:"Continue"})})]})}export{gt as default}; diff --git a/src/frontend/dist/index.html b/src/frontend/dist/index.html index 09359596..d2279363 100644 --- a/src/frontend/dist/index.html +++ b/src/frontend/dist/index.html @@ -5,7 +5,7 @@ Parallax Open Source - + From 1b9f0de9e118954e244f7b003cb2756df5a3ed6a Mon Sep 17 00:00:00 2001 From: Xiaodong Date: Mon, 29 Sep 2025 17:40:22 +0800 Subject: [PATCH 24/25] feat(frontend): update brand icon and logo --- src/frontend/index.html | 2 +- src/frontend/public/vite.svg | 1 - src/frontend/src/assets/gradient-icon.svg | 5 +++ src/frontend/src/assets/gradient-logo.svg | 1 - src/frontend/src/assets/react.svg | 1 - src/frontend/src/components/brand/icon.tsx | 7 ++--- src/frontend/src/components/brand/logo.tsx | 36 +++++++++++++++++----- 7 files changed, 38 insertions(+), 15 deletions(-) delete mode 100644 src/frontend/public/vite.svg create mode 100644 src/frontend/src/assets/gradient-icon.svg delete mode 100644 src/frontend/src/assets/gradient-logo.svg delete mode 100644 src/frontend/src/assets/react.svg diff --git a/src/frontend/index.html b/src/frontend/index.html index 55bc3731..6b1bb91a 100644 --- a/src/frontend/index.html +++ b/src/frontend/index.html @@ -2,7 +2,7 @@ - + Parallax Open Source diff --git a/src/frontend/public/vite.svg b/src/frontend/public/vite.svg deleted file mode 100644 index e7b8dfb1..00000000 --- a/src/frontend/public/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/frontend/src/assets/gradient-icon.svg b/src/frontend/src/assets/gradient-icon.svg new file mode 100644 index 00000000..66c63514 --- /dev/null +++ b/src/frontend/src/assets/gradient-icon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/frontend/src/assets/gradient-logo.svg b/src/frontend/src/assets/gradient-logo.svg deleted file mode 100644 index 8b137891..00000000 --- a/src/frontend/src/assets/gradient-logo.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/frontend/src/assets/react.svg b/src/frontend/src/assets/react.svg deleted file mode 100644 index 6c87de9b..00000000 --- a/src/frontend/src/assets/react.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/frontend/src/components/brand/icon.tsx b/src/frontend/src/components/brand/icon.tsx index d4f48726..59a1f5cb 100644 --- a/src/frontend/src/components/brand/icon.tsx +++ b/src/frontend/src/components/brand/icon.tsx @@ -1,7 +1,6 @@ export const IconBrandGradient = () => ( - - {/* */} - - + + + ); diff --git a/src/frontend/src/components/brand/logo.tsx b/src/frontend/src/components/brand/logo.tsx index 6d668816..bf466c9c 100644 --- a/src/frontend/src/components/brand/logo.tsx +++ b/src/frontend/src/components/brand/logo.tsx @@ -1,16 +1,38 @@ export const LogoGradient = () => ( - + + + + + + + + ); From 9fc23f6b78175d22d10b07b96083a83ceaca2905 Mon Sep 17 00:00:00 2001 From: Xiaodong Date: Mon, 29 Sep 2025 17:41:21 +0800 Subject: [PATCH 25/25] build(frontend): build for brand assets --- .../{chat-B9cTpCh0.js => chat-DU5MDPi1.js} | 2 +- .../dist/assets/gradient-icon-CRwZKfVU.svg | 5 ++++ .../{index-BlRBE7Ft.js => index-Bht8DC43.js} | 4 +-- .../{join-Btvp11Vj.js => join-DTKtNOjq.js} | 2 +- ...ut-C11OgrSN.js => main-layout-goXDayPH.js} | 30 +++++++++---------- .../{setup-Bsllr9Nn.js => setup-DchpltJe.js} | 2 +- src/frontend/dist/index.html | 4 +-- src/frontend/dist/vite.svg | 1 - 8 files changed, 27 insertions(+), 23 deletions(-) rename src/frontend/dist/assets/{chat-B9cTpCh0.js => chat-DU5MDPi1.js} (99%) create mode 100644 src/frontend/dist/assets/gradient-icon-CRwZKfVU.svg rename src/frontend/dist/assets/{index-BlRBE7Ft.js => index-Bht8DC43.js} (99%) rename src/frontend/dist/assets/{join-Btvp11Vj.js => join-DTKtNOjq.js} (94%) rename src/frontend/dist/assets/{main-layout-C11OgrSN.js => main-layout-goXDayPH.js} (80%) rename src/frontend/dist/assets/{setup-Bsllr9Nn.js => setup-DchpltJe.js} (98%) delete mode 100644 src/frontend/dist/vite.svg diff --git a/src/frontend/dist/assets/chat-B9cTpCh0.js b/src/frontend/dist/assets/chat-DU5MDPi1.js similarity index 99% rename from src/frontend/dist/assets/chat-B9cTpCh0.js rename to src/frontend/dist/assets/chat-DU5MDPi1.js index 3b16053a..655f9d80 100644 --- a/src/frontend/dist/assets/chat-B9cTpCh0.js +++ b/src/frontend/dist/assets/chat-DU5MDPi1.js @@ -1,4 +1,4 @@ -import{h as A,f as N,r as x,u as H,j as a,s as T,c as U,b as z,d as W,m as V,e as Te,p as ze,q as Le,v as w,o as ee,i as Me,w as Re,l as je,S as ne,n as le}from"./index-BlRBE7Ft.js";import{i as Z,b as qe,c as ie,F as $e,u as te,f as re,O as Ae,d as Ne,I as He,S as Ue,D as We,e as Ee,C as De}from"./main-layout-C11OgrSN.js";function Be(e){return A("MuiFormControl",e)}N("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Oe=e=>{const{classes:t,margin:r,fullWidth:o}=e,s={root:["root",r!=="none"&&`margin${z(r)}`,o&&"fullWidth"]};return W(s,Be,t)},_e=T("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${z(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ke=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormControl"}),{children:s,className:l,color:i="primary",component:p="div",disabled:n=!1,error:d=!1,focused:m,fullWidth:h=!1,hiddenLabel:b=!1,margin:g="none",required:f=!1,size:u="medium",variant:c="outlined",...C}=o,I={...o,color:i,component:p,disabled:n,error:d,fullWidth:h,hiddenLabel:b,margin:g,required:f,size:u,variant:c},G=Oe(I),[y,J]=x.useState(()=>{let F=!1;return s&&x.Children.forEach(s,v=>{if(!Z(v,["Input","Select"]))return;const j=Z(v,["Select"])?v.props.input:v;j&&qe(j.props)&&(F=!0)}),F}),[E,L]=x.useState(()=>{let F=!1;return s&&x.Children.forEach(s,v=>{Z(v,["Input","Select"])&&(ie(v.props,!0)||ie(v.props.inputProps,!0))&&(F=!0)}),F}),[D,M]=x.useState(!1);n&&D&&M(!1);const B=m!==void 0&&!n?m:D;let O;x.useRef(!1);const _=x.useCallback(()=>{L(!0)},[]),R=x.useCallback(()=>{L(!1)},[]),Q=x.useMemo(()=>({adornedStart:y,setAdornedStart:J,color:i,disabled:n,error:d,filled:E,focused:B,fullWidth:h,hiddenLabel:b,size:u,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:R,onFilled:_,registerEffect:O,required:f,variant:c}),[y,i,n,d,E,B,h,b,O,R,_,f,u,c]);return a.jsx($e.Provider,{value:Q,children:a.jsx(_e,{as:p,ownerState:I,className:U(G.root,l),ref:r,...C,children:s})})});function Ve(e){return A("MuiFormHelperText",e)}const de=N("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ce;const Ge=e=>{const{classes:t,contained:r,size:o,disabled:s,error:l,filled:i,focused:p,required:n}=e,d={root:["root",s&&"disabled",l&&"error",o&&`size${z(o)}`,r&&"contained",p&&"focused",i&&"filled",n&&"required"]};return W(d,Ve,t)},Je=T("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${z(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${de.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${de.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Qe=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormHelperText"}),{children:s,className:l,component:i="p",disabled:p,error:n,filled:d,focused:m,margin:h,required:b,variant:g,...f}=o,u=te(),c=re({props:o,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),C={...o,component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required};delete C.ownerState;const I=Ge(C);return a.jsx(Je,{as:i,className:U(I.root,l),ref:r,...f,ownerState:C,children:s===" "?ce||(ce=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});function Xe(e){return A("MuiFormLabel",e)}const $=N("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ye=e=>{const{classes:t,color:r,focused:o,disabled:s,error:l,filled:i,required:p}=e,n={root:["root",`color${z(r)}`,s&&"disabled",l&&"error",i&&"filled",o&&"focused",p&&"required"],asterisk:["asterisk",l&&"error"]};return W(n,Xe,t)},Ze=T("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Te()).map(([t])=>({props:{color:t},style:{[`&.${$.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),et=T("span",{name:"MuiFormLabel",slot:"Asterisk"})(V(({theme:e})=>({[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}))),tt=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormLabel"}),{children:s,className:l,color:i,component:p="label",disabled:n,error:d,filled:m,focused:h,required:b,...g}=o,f=te(),u=re({props:o,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),c={...o,color:u.color||"primary",component:p,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required},C=Ye(c);return a.jsxs(Ze,{as:p,ownerState:c,className:U(C.root,l),ref:r,...g,children:[s,u.required&&a.jsxs(et,{ownerState:c,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});function rt(e){return A("MuiInputLabel",e)}N("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ot=e=>{const{classes:t,formControl:r,size:o,shrink:s,disableAnimation:l,variant:i,required:p}=e,n={root:["root",r&&"formControl",!l&&"animated",s&&"shrink",o&&o!=="medium"&&`size${z(o)}`,i],asterisk:[p&&"asterisk"]},d=W(n,rt,t);return{...t,...d}},st=T(tt,{shouldForwardProp:e=>ze(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${$.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(V(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:o})=>t==="filled"&&r.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),at=x.forwardRef(function(t,r){const o=H({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:l,shrink:i,variant:p,className:n,...d}=o,m=te();let h=i;typeof h>"u"&&m&&(h=m.filled||m.focused||m.adornedStart);const b=re({props:o,muiFormControl:m,states:["size","variant","required","focused"]}),g={...o,disableAnimation:s,formControl:m,shrink:h,size:b.size,variant:b.variant,required:b.required,focused:b.focused},f=ot(g);return a.jsx(st,{"data-shrink":h,ref:r,className:U(f.root,n),...d,ownerState:g,classes:f})});function nt(e){return A("MuiTextField",e)}N("MuiTextField",["root"]);const lt={standard:He,filled:Ne,outlined:Ae},it=e=>{const{classes:t}=e;return W({root:["root"]},nt,t)},dt=T(Ke,{name:"MuiTextField",slot:"Root"})({}),ct=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:l=!1,children:i,className:p,color:n="primary",defaultValue:d,disabled:m=!1,error:h=!1,FormHelperTextProps:b,fullWidth:g=!1,helperText:f,id:u,InputLabelProps:c,inputProps:C,InputProps:I,inputRef:G,label:y,maxRows:J,minRows:E,multiline:L=!1,name:D,onBlur:M,onChange:B,onFocus:O,placeholder:_,required:R=!1,rows:Q,select:F=!1,SelectProps:v,slots:j={},slotProps:pe={},type:ue,value:oe,variant:K="outlined",...me}=o,S={...o,autoFocus:l,color:n,disabled:m,error:h,fullWidth:g,multiline:L,required:R,select:F,variant:K},fe=it(S),k=Le(u),X=f&&k?`${k}-helper-text`:void 0,se=y&&k?`${k}-label`:void 0,xe=lt[K],P={slots:j,slotProps:{input:I,inputLabel:c,htmlInput:C,formHelperText:b,select:v,...pe}},q={},Y=P.slotProps.inputLabel;K==="outlined"&&(Y&&typeof Y.shrink<"u"&&(q.notched=Y.shrink),q.label=y),F&&((!v||!v.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[he,be]=w("root",{elementType:dt,shouldForwardComponentProp:!0,externalForwardedProps:{...P,...me},ownerState:S,className:U(fe.root,p),ref:r,additionalProps:{disabled:m,error:h,fullWidth:g,required:R,color:n,variant:K}}),[ve,ge]=w("input",{elementType:xe,externalForwardedProps:P,additionalProps:q,ownerState:S}),[Ce,Fe]=w("inputLabel",{elementType:at,externalForwardedProps:P,ownerState:S}),[ye,Se]=w("htmlInput",{elementType:"input",externalForwardedProps:P,ownerState:S}),[ke,Pe]=w("formHelperText",{elementType:Qe,externalForwardedProps:P,ownerState:S}),[Ie,we]=w("select",{elementType:Ue,externalForwardedProps:P,ownerState:S}),ae=a.jsx(ve,{"aria-describedby":X,autoComplete:s,autoFocus:l,defaultValue:d,fullWidth:g,multiline:L,name:D,rows:Q,maxRows:J,minRows:E,type:ue,value:oe,id:k,inputRef:G,onBlur:M,onChange:B,onFocus:O,placeholder:_,inputProps:Se,slots:{input:j.htmlInput?ye:void 0},...ge});return a.jsxs(he,{...be,children:[y!=null&&y!==""&&a.jsx(Ce,{htmlFor:k,id:se,...Fe,children:y}),F?a.jsx(Ie,{"aria-describedby":X,id:k,labelId:se,value:oe,input:ae,...we,children:i}):ae,f&&a.jsx(ke,{id:X,...Pe,children:f})]})});/** +import{h as A,f as N,r as x,u as H,j as a,s as T,c as U,b as z,d as W,m as V,e as Te,p as ze,q as Le,v as w,o as ee,i as Me,w as Re,l as je,S as ne,n as le}from"./index-Bht8DC43.js";import{i as Z,b as qe,c as ie,F as $e,u as te,f as re,O as Ae,d as Ne,I as He,S as Ue,D as We,e as Ee,C as De}from"./main-layout-goXDayPH.js";function Be(e){return A("MuiFormControl",e)}N("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Oe=e=>{const{classes:t,margin:r,fullWidth:o}=e,s={root:["root",r!=="none"&&`margin${z(r)}`,o&&"fullWidth"]};return W(s,Be,t)},_e=T("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${z(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ke=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormControl"}),{children:s,className:l,color:i="primary",component:p="div",disabled:n=!1,error:d=!1,focused:m,fullWidth:h=!1,hiddenLabel:b=!1,margin:g="none",required:f=!1,size:u="medium",variant:c="outlined",...C}=o,I={...o,color:i,component:p,disabled:n,error:d,fullWidth:h,hiddenLabel:b,margin:g,required:f,size:u,variant:c},G=Oe(I),[y,J]=x.useState(()=>{let F=!1;return s&&x.Children.forEach(s,v=>{if(!Z(v,["Input","Select"]))return;const j=Z(v,["Select"])?v.props.input:v;j&&qe(j.props)&&(F=!0)}),F}),[E,L]=x.useState(()=>{let F=!1;return s&&x.Children.forEach(s,v=>{Z(v,["Input","Select"])&&(ie(v.props,!0)||ie(v.props.inputProps,!0))&&(F=!0)}),F}),[D,M]=x.useState(!1);n&&D&&M(!1);const B=m!==void 0&&!n?m:D;let O;x.useRef(!1);const _=x.useCallback(()=>{L(!0)},[]),R=x.useCallback(()=>{L(!1)},[]),Q=x.useMemo(()=>({adornedStart:y,setAdornedStart:J,color:i,disabled:n,error:d,filled:E,focused:B,fullWidth:h,hiddenLabel:b,size:u,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:R,onFilled:_,registerEffect:O,required:f,variant:c}),[y,i,n,d,E,B,h,b,O,R,_,f,u,c]);return a.jsx($e.Provider,{value:Q,children:a.jsx(_e,{as:p,ownerState:I,className:U(G.root,l),ref:r,...C,children:s})})});function Ve(e){return A("MuiFormHelperText",e)}const de=N("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ce;const Ge=e=>{const{classes:t,contained:r,size:o,disabled:s,error:l,filled:i,focused:p,required:n}=e,d={root:["root",s&&"disabled",l&&"error",o&&`size${z(o)}`,r&&"contained",p&&"focused",i&&"filled",n&&"required"]};return W(d,Ve,t)},Je=T("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${z(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${de.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${de.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Qe=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormHelperText"}),{children:s,className:l,component:i="p",disabled:p,error:n,filled:d,focused:m,margin:h,required:b,variant:g,...f}=o,u=te(),c=re({props:o,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),C={...o,component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required};delete C.ownerState;const I=Ge(C);return a.jsx(Je,{as:i,className:U(I.root,l),ref:r,...f,ownerState:C,children:s===" "?ce||(ce=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});function Xe(e){return A("MuiFormLabel",e)}const $=N("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ye=e=>{const{classes:t,color:r,focused:o,disabled:s,error:l,filled:i,required:p}=e,n={root:["root",`color${z(r)}`,s&&"disabled",l&&"error",i&&"filled",o&&"focused",p&&"required"],asterisk:["asterisk",l&&"error"]};return W(n,Xe,t)},Ze=T("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Te()).map(([t])=>({props:{color:t},style:{[`&.${$.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),et=T("span",{name:"MuiFormLabel",slot:"Asterisk"})(V(({theme:e})=>({[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}))),tt=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiFormLabel"}),{children:s,className:l,color:i,component:p="label",disabled:n,error:d,filled:m,focused:h,required:b,...g}=o,f=te(),u=re({props:o,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),c={...o,color:u.color||"primary",component:p,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required},C=Ye(c);return a.jsxs(Ze,{as:p,ownerState:c,className:U(C.root,l),ref:r,...g,children:[s,u.required&&a.jsxs(et,{ownerState:c,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});function rt(e){return A("MuiInputLabel",e)}N("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ot=e=>{const{classes:t,formControl:r,size:o,shrink:s,disableAnimation:l,variant:i,required:p}=e,n={root:["root",r&&"formControl",!l&&"animated",s&&"shrink",o&&o!=="medium"&&`size${z(o)}`,i],asterisk:[p&&"asterisk"]},d=W(n,rt,t);return{...t,...d}},st=T(tt,{shouldForwardProp:e=>ze(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${$.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(V(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:o})=>t==="filled"&&r.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),at=x.forwardRef(function(t,r){const o=H({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:l,shrink:i,variant:p,className:n,...d}=o,m=te();let h=i;typeof h>"u"&&m&&(h=m.filled||m.focused||m.adornedStart);const b=re({props:o,muiFormControl:m,states:["size","variant","required","focused"]}),g={...o,disableAnimation:s,formControl:m,shrink:h,size:b.size,variant:b.variant,required:b.required,focused:b.focused},f=ot(g);return a.jsx(st,{"data-shrink":h,ref:r,className:U(f.root,n),...d,ownerState:g,classes:f})});function nt(e){return A("MuiTextField",e)}N("MuiTextField",["root"]);const lt={standard:He,filled:Ne,outlined:Ae},it=e=>{const{classes:t}=e;return W({root:["root"]},nt,t)},dt=T(Ke,{name:"MuiTextField",slot:"Root"})({}),ct=x.forwardRef(function(t,r){const o=H({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:l=!1,children:i,className:p,color:n="primary",defaultValue:d,disabled:m=!1,error:h=!1,FormHelperTextProps:b,fullWidth:g=!1,helperText:f,id:u,InputLabelProps:c,inputProps:C,InputProps:I,inputRef:G,label:y,maxRows:J,minRows:E,multiline:L=!1,name:D,onBlur:M,onChange:B,onFocus:O,placeholder:_,required:R=!1,rows:Q,select:F=!1,SelectProps:v,slots:j={},slotProps:pe={},type:ue,value:oe,variant:K="outlined",...me}=o,S={...o,autoFocus:l,color:n,disabled:m,error:h,fullWidth:g,multiline:L,required:R,select:F,variant:K},fe=it(S),k=Le(u),X=f&&k?`${k}-helper-text`:void 0,se=y&&k?`${k}-label`:void 0,xe=lt[K],P={slots:j,slotProps:{input:I,inputLabel:c,htmlInput:C,formHelperText:b,select:v,...pe}},q={},Y=P.slotProps.inputLabel;K==="outlined"&&(Y&&typeof Y.shrink<"u"&&(q.notched=Y.shrink),q.label=y),F&&((!v||!v.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[he,be]=w("root",{elementType:dt,shouldForwardComponentProp:!0,externalForwardedProps:{...P,...me},ownerState:S,className:U(fe.root,p),ref:r,additionalProps:{disabled:m,error:h,fullWidth:g,required:R,color:n,variant:K}}),[ve,ge]=w("input",{elementType:xe,externalForwardedProps:P,additionalProps:q,ownerState:S}),[Ce,Fe]=w("inputLabel",{elementType:at,externalForwardedProps:P,ownerState:S}),[ye,Se]=w("htmlInput",{elementType:"input",externalForwardedProps:P,ownerState:S}),[ke,Pe]=w("formHelperText",{elementType:Qe,externalForwardedProps:P,ownerState:S}),[Ie,we]=w("select",{elementType:Ue,externalForwardedProps:P,ownerState:S}),ae=a.jsx(ve,{"aria-describedby":X,autoComplete:s,autoFocus:l,defaultValue:d,fullWidth:g,multiline:L,name:D,rows:Q,maxRows:J,minRows:E,type:ue,value:oe,id:k,inputRef:G,onBlur:M,onChange:B,onFocus:O,placeholder:_,inputProps:Se,slots:{input:j.htmlInput?ye:void 0},...ge});return a.jsxs(he,{...be,children:[y!=null&&y!==""&&a.jsx(Ce,{htmlFor:k,id:se,...Fe,children:y}),F?a.jsx(Ie,{"aria-describedby":X,id:k,labelId:se,value:oe,input:ae,...we,children:i}):ae,f&&a.jsx(ke,{id:X,...Pe,children:f})]})});/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. diff --git a/src/frontend/dist/assets/gradient-icon-CRwZKfVU.svg b/src/frontend/dist/assets/gradient-icon-CRwZKfVU.svg new file mode 100644 index 00000000..66c63514 --- /dev/null +++ b/src/frontend/dist/assets/gradient-icon-CRwZKfVU.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/frontend/dist/assets/index-BlRBE7Ft.js b/src/frontend/dist/assets/index-Bht8DC43.js similarity index 99% rename from src/frontend/dist/assets/index-BlRBE7Ft.js rename to src/frontend/dist/assets/index-Bht8DC43.js index db67d8b4..5ed99514 100644 --- a/src/frontend/dist/assets/index-BlRBE7Ft.js +++ b/src/frontend/dist/assets/index-Bht8DC43.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/setup-Bsllr9Nn.js","assets/main-layout-C11OgrSN.js","assets/main-layout-DVneG3Rq.css","assets/join-Btvp11Vj.js","assets/chat-B9cTpCh0.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/setup-DchpltJe.js","assets/main-layout-goXDayPH.js","assets/main-layout-DVneG3Rq.css","assets/join-DTKtNOjq.js","assets/chat-DU5MDPi1.js"])))=>i.map(i=>d[i]); function MS(n,r){for(var l=0;lo[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function l(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=l(s);fetch(s.href,c)}})();function Na(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Tf={exports:{}},yl={};/** * @license React * react-jsx-runtime.production.js @@ -315,4 +315,4 @@ export default theme;`}function P0(n){return typeof n=="number"?`${(n*100).toFix 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},kO=function(){return Oe.createElement(us,null,Oe.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12A10,10 0 0,0 12,2Z`}))},$O={default:void 0,success:Oe.createElement(DO,null),warning:Oe.createElement(_O,null),error:Oe.createElement(zO,null),info:Oe.createElement(kO,null)},cr={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:$O,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:n1,transitionDuration:{enter:225,exit:195}},NO=function(r,l){var o=function(c){return typeof c=="number"||c===null};return o(r)?r:o(l)?l:cr.autoHideDuration},BO=function(r,l){var o=function(c,d){return d.some(function(h){return typeof c===h})};return o(r,["string","number"])?r:o(r,["object"])?Ve({},cr.transitionDuration,{},o(l,["object"])&&l,{},r):o(l,["string","number"])?l:o(l,["object"])?Ve({},cr.transitionDuration,{},l):cr.transitionDuration},LO=function(r,l){return function(o,s){return s===void 0&&(s=!1),s?Ve({},cr[o],{},l[o],{},r[o]):o==="autoHideDuration"?NO(r.autoHideDuration,l.autoHideDuration):o==="transitionDuration"?BO(r.transitionDuration,l.transitionDuration):r[o]||l[o]||cr[o]}};function Zl(n){return Object.entries(n).reduce(function(r,l){var o,s=l[0],c=l[1];return Ve({},r,(o={},o[s]=ih(c),o))},{})}var mi={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(r){return"notistack-MuiContent-"+r}},Ay=Zl({root:{height:0},entered:{height:"auto"}}),Gf="0px",Pf=175,a1=x.forwardRef(function(n,r){var l=n.children,o=n.in,s=n.onExited,c=x.useRef(null),d=x.useRef(null),h=Cd(r,d),p=function(){return c.current?c.current.clientHeight:0},m=function(T){T.style.height=Gf},y=function(T){var M=p(),D=qu({timeout:Pf,mode:"enter"}),_=D.duration,$=D.easing;T.style.transitionDuration=typeof _=="string"?_:_+"ms",T.style.height=M+"px",T.style.transitionTimingFunction=$||""},v=function(T){T.style.height="auto"},S=function(T){T.style.height=p()+"px"},O=function(T){e1(T);var M=qu({timeout:Pf,mode:"exit"}),D=M.duration,_=M.easing;T.style.transitionDuration=typeof D=="string"?D:D+"ms",T.style.height=Gf,T.style.transitionTimingFunction=_||""};return x.createElement(oh,{in:o,unmountOnExit:!0,onEnter:m,onEntered:v,onEntering:y,onExit:S,onExited:s,onExiting:O,nodeRef:d,timeout:Pf},function(E,T){return x.createElement("div",Object.assign({ref:h,className:mr(Ay.root,E==="entered"&&Ay.entered),style:Ve({pointerEvents:"all",overflow:"hidden",minHeight:Gf,transition:si("height")},E==="entered"&&{overflow:"visible"},{},E==="exited"&&!o&&{visibility:"hidden"})},T),x.createElement("div",{ref:c,className:mi.CollapseWrapper,style:{display:"flex",width:"100%"}},l))})});a1.displayName="Collapse";var Oy={right:"left",left:"right",bottom:"up",top:"down"},jO=function(r){return r.horizontal!=="center"?Oy[r.horizontal]:Oy[r.vertical]},UO=function(r){return"anchorOrigin"+lh(r)},HO=function(r){r===void 0&&(r={});var l={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(r).filter(function(o){return!l[o]}).reduce(function(o,s){var c;return Ve({},o,(c={},c[s]=r[s],c))},{})},YO=function(){};function Dl(n,r){return n.reduce(function(l,o){return o==null?l:function(){for(var c=arguments.length,d=new Array(c),h=0;h-1,$=M.snacks.findIndex(D)>-1;if(_||$)return M}return s.handleDisplaySnack(Ve({},M,{queue:[].concat(M.queue,[T])}))}),O},s.handleDisplaySnack=function(c){var d=c.snacks;return d.length>=s.maxSnack?s.handleDismissOldest(c):s.processQueue(c)},s.processQueue=function(c){var d=c.queue,h=c.snacks;return d.length>0?Ve({},c,{snacks:[].concat(h,[d[0]]),queue:d.slice(1,d.length)}):c},s.handleDismissOldest=function(c){if(c.snacks.some(function(y){return!y.open||y.requestClose}))return c;var d=!1,h=!1,p=c.snacks.reduce(function(y,v){return y+(v.open&&v.persist?1:0)},0);p===s.maxSnack&&(h=!0);var m=c.snacks.map(function(y){return!d&&(!y.persist||h)?(d=!0,y.entered?(y.onClose&&y.onClose(null,"maxsnack",y.id),s.props.onClose&&s.props.onClose(null,"maxsnack",y.id),Ve({},y,{open:!1})):Ve({},y,{requestClose:!0})):Ve({},y)});return Ve({},c,{snacks:m})},s.handleEnteredSnack=function(c,d,h){if(!gu(h))throw new Error("handleEnteredSnack Cannot be called with undefined key");s.setState(function(p){var m=p.snacks;return{snacks:m.map(function(y){return y.id===h?Ve({},y,{entered:!0}):Ve({},y)})}})},s.handleCloseSnack=function(c,d,h){s.props.onClose&&s.props.onClose(c,d,h);var p=h===void 0;s.setState(function(m){var y=m.snacks,v=m.queue;return{snacks:y.map(function(S){return!p&&S.id!==h?Ve({},S):S.entered?Ve({},S,{open:!1}):Ve({},S,{requestClose:!0})}),queue:v.filter(function(S){return S.id!==h})}})},s.closeSnackbar=function(c){var d=s.state.snacks.find(function(h){return h.id===c});gu(c)&&d&&d.onClose&&d.onClose(null,"instructed",c),s.handleCloseSnack(null,"instructed",c)},s.handleExitedSnack=function(c,d){if(!gu(d))throw new Error("handleExitedSnack Cannot be called with undefined key");s.setState(function(h){var p=s.processQueue(Ve({},h,{snacks:h.snacks.filter(function(m){return m.id!==d})}));return p.queue.length===0?p:s.handleDismissOldest(p)})},s.enqueueSnackbar,s.closeSnackbar,s.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:s.enqueueSnackbar.bind(Sy(s)),closeSnackbar:s.closeSnackbar.bind(Sy(s))}},s}var l=r.prototype;return l.render=function(){var s=this,c=this.state.contextValue,d=this.props,h=d.domRoot,p=d.children,m=d.dense,y=m===void 0?!1:m,v=d.Components,S=v===void 0?{}:v,O=d.classes,E=this.state.snacks.reduce(function(M,D){var _,$=lh(D.anchorOrigin),B=M[$]||[];return Ve({},M,(_={},_[$]=[].concat(B,[D]),_))},{}),T=Object.keys(E).map(function(M){var D=E[M],_=D[0];return Oe.createElement(QO,{key:M,dense:y,anchorOrigin:_.anchorOrigin,classes:O},D.map(function($){return Oe.createElement(XO,{key:$.id,snack:$,classes:O,Component:S[$.variant],onClose:s.handleCloseSnack,onEnter:s.props.onEnter,onExit:s.props.onExit,onExited:Dl([s.handleExitedSnack,s.props.onExited],$.id),onEntered:Dl([s.handleEnteredSnack,s.props.onEntered],$.id)})}))});return Oe.createElement(Jv.Provider,{value:c},p,h?Wy.createPortal(T,h):T)},Wv(r,[{key:"maxSnack",get:function(){return this.props.maxSnack||cr.maxSnack}}]),r})(x.Component),IO=(function(){return x.useContext(Jv)});function WO(n){return ct("MuiTitleIcon",n)}rt("MuiTitleIcon",["root","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning"]);const FO=n=>{const{classes:r,variant:l,color:o}=n,s={root:["root",l&&`variant${ge(l)}`,o&&`color${ge(o)}`],outlineOuter:["outlineOuter"],outlineInner:["outlineInner"]};return gn(s,WO,r)},JO=["inherit","primary","secondary","error","info","success","warning"],ew=Me("div",{name:"MuiTitleIcon",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:{color:l,variant:o}}=n;return[r.root,l&&r[`color${ge(l)}`],o&&r[`variant${ge(o)}`]]}})(({theme:n})=>{const{palette:r}=n;return{position:"relative",width:"2.25rem",height:"2.25rem",display:"inline-flex",justifyContent:"center",alignItems:"center",color:"inherit",backgroundColor:"transparent",border:"none",outline:"none",fontSize:"1.25rem",[`& .${p5.root}, & .tabler-icon, & svg`]:{width:"1em",height:"1em"},variants:[...JO.map(l=>({props:{color:l},style:{color:l==="inherit"?"inherit":l==="default"?r.text.primary:r[l].main}}))]}}),tw=Me("div",{name:"MuiTitleIcon",slot:"OutlineOuter"})(()=>({boxSizing:"border-box",width:"2.25rem",height:"2.25rem",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",opacity:.1,borderWidth:"1.667px",borderStyle:"solid",borderColor:"currentcolor",variants:[{props:{variant:"circle"},style:{borderRadius:"50%"}},{props:{variant:"square"},style:{borderRadius:"0.38rem"}}]})),nw=Me("div",{name:"MuiTitleIcon",slot:"OutlineInner"})(()=>({boxSizing:"border-box",width:"1.75rem",height:"1.75rem",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",opacity:.3,borderWidth:"1.667px",borderStyle:"solid",borderColor:"currentcolor",variants:[{props:{variant:"circle"},style:{borderRadius:"50%"}},{props:{variant:"square"},style:{borderRadius:"0.25em"}}]})),Xw=x.forwardRef(function(r,l){const o=Lv({props:r,name:"MuiTitleIcon"}),{children:s,classes:c,variant:d="circle",color:h="default",className:p,...m}=o,y={...o,variant:d,color:h},v=FO(y);return W.jsxs(ew,{ref:l,className:Ze(v.root,p),ownerState:y,role:"img",...m,children:[W.jsx(tw,{className:v.outlineOuter,ownerState:y}),W.jsx(nw,{className:v.outlineInner,ownerState:y}),s]})}),aw=Me("div",{name:"MuiTitleIconForm",slot:"Root"})(({theme:n})=>{const{palette:r}=n;return{flex:"none",width:"3rem",height:"3rem",aspectRatio:"1 / 1",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"0.375rem",backgroundColor:r.grey[250],overflow:"hidden"}}),rw=Me("div",{name:"MuiTitleIconForm",slot:"Image"})(({theme:n})=>{const{palette:r}=n;return{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"url(/assets/common/form-half-one.png) center / cover no-repeat",mixBlendMode:"multiply"}}),Zw=()=>W.jsx(aw,{children:W.jsx(rw,{})}),iw=Me("div")(({theme:n})=>{const{palette:r}=n;return{display:"flex",flexFlow:"row nowrap",alignItems:"center",justifyContent:"flex-start",gap:"0.75rem",paddingBlockStart:"0.75rem",color:r.grey[700]}}),lw=Me("div")(({theme:n})=>{const{palette:r}=n;return{position:"absolute",bottom:0,left:"-1rem",right:"-1rem"}}),ow=150,uw=n=>{const{severity:r,autoHideDuration:l=0}=n,[o,s]=x.useState(0);return x.useEffect(()=>{if(l<=0)return;const c=l/100;let d,h;const p=()=>d=requestAnimationFrame(m=>{h||(h=m);const y=Math.min(100,Math.ceil((m+ow-h)/c));s(y),y<100&&p()});return p(),()=>{d&&cancelAnimationFrame(d)}},[l]),W.jsx(lw,{children:W.jsx(M5,{variant:"determinate",color:r,value:o})})},sw=x.forwardRef((n,r)=>{const{autoHideDuration:l,variant:o,title:s,children:c,onClose:d,action:h,dismissLabel:p="Dismiss",onDismiss:m,...y}=n;let v=s,S=c;!v&&S&&(v=S,S=void 0);const O=m&&W.jsx(u5,{variant:"text",color:"inherit",onClick:m,children:p}),E=(!!h||!!O)&&W.jsxs(W.Fragment,{children:[O,h]})||void 0;return o==="notification"?W.jsxs(J0,{...y,variant:o,onClose:d,ref:r,children:[!!v&&W.jsx(ty,{children:v}),S,E&&W.jsx(iw,{children:E}),l&&l>0&&W.jsx(uw,{...n})]}):W.jsxs(J0,{...y,variant:o,onClose:d,action:E,ref:r,children:[!!v&&W.jsx(ty,{children:v}),S]})}),Al=x.forwardRef((n,r)=>{const{id:l,variant:o,title:s,message:c,action:d,notification:h=!0,closable:p=h,dismissAble:m,persist:y,autoHideDuration:v,hideIconVariant:S,className:O,style:E}=n,{closeSnackbar:T}=IO(),M=o==="default"?"info":o,D=typeof d=="function"?d(l):d,_=p&&(()=>T(l))||void 0,$=m&&(()=>T(l))||void 0,B=v||void 0;return W.jsx(sw,{variant:h&&"notification"||"outlined",severity:M,icon:S?!1:void 0,onClose:_,onDismiss:$,action:D,title:s,autoHideDuration:B,ref:r,className:O,style:E,children:c})}),cw={default:Al,info:Al,success:Al,warning:Al,error:Al},o1=({children:n})=>W.jsx(KO,{anchorOrigin:{vertical:"bottom",horizontal:"right"},maxSnack:5,autoHideDuration:5e3,Components:cw,style:{width:"21.25rem"},children:n}),fw=n=>{const{palette:r,overlays:l}=n;return{defaultProps:{variant:"outlined"},styleOverrides:{root:{variants:[{props:({ownerState:o})=>!o.square,style:{borderRadius:"0.75rem"}},{props:{variant:"outlined"},style:{border:`1px solid ${r.divider}`}},{props:{variant:"overlay"},style:{border:`1px solid ${r.divider}`,boxShadow:l.shadowMiddle}}]}}}},dw=n=>{const{spacing:r}=n;return{defaultProps:{slotProps:{paper:{variant:"overlay"},backdrop:{invisible:!0}}},styleOverrides:{root:{[`& .${gd.root}`]:{marginBlock:r(1.5)}},paper:{padding:r(1)}}}},hw=n=>{const{spacing:r}=n;return{defaultProps:{},styleOverrides:{}}},mw=n=>{const{palette:r,spacing:l}=n;return{defaultProps:{},styleOverrides:{root:{padding:l(1),gap:l(.75),"&:hover":{backgroundColor:r.grey[200]},[`& + .${gd.root}`]:{margin:0,marginBlock:l(1.5)},[`& .${gd.inset}`]:{margin:0,marginInline:`${la.small}rem`},[`& .${A5.root}`]:{minWidth:`${la.small}rem`}}}}},pw=Object.freeze(Object.defineProperty({__proto__:null,MuiAlert:cO,MuiAlertTitle:sO,MuiBackdrop:fO,MuiButton:hA,MuiButtonBase:mA,MuiButtonGroup:pA,MuiChip:GA,MuiCssBaseline:fA,MuiDialog:gO,MuiDialogActions:dO,MuiDialogContent:mO,MuiDialogContentText:pO,MuiDialogTitle:hO,MuiDivider:PA,MuiFormControl:yA,MuiFormHelperText:bA,MuiFormLabel:vA,MuiIconButton:gA,MuiInputAdornment:xA,MuiInputBase:TA,MuiInputLabel:SA,MuiLinearProgress:yO,MuiList:XA,MuiListItem:ZA,MuiListItemAvatar:WA,MuiListItemButton:QA,MuiListItemIcon:KA,MuiListItemText:IA,MuiMenu:dw,MuiMenuItem:mw,MuiMenuList:hw,MuiOutlinedInput:EA,MuiPaper:fw,MuiSelect:LA,MuiSlider:HA,MuiSnackbar:bO,MuiSnackbarContent:vO,MuiTable:JA,MuiTableBody:tO,MuiTableCell:aO,MuiTableContainer:FA,MuiTableFooter:rO,MuiTableHead:eO,MuiTablePagination:iO,MuiTablePaginationActions:lO,MuiTableRow:nO,MuiTableSortLabel:oO,MuiTextField:MA,MuiToggleButton:YA,MuiToggleButtonGroup:qA,MuiTypography:uO,SnackbarProvider:o1},Symbol.toStringTag,{value:"Module"})),Ll=Fd({palette:iA,typography:lA,spacing:n=>`${n*8/Qv}rem`,overlays:oA});Ll.components=Ll.components||{};Object.entries(pw).forEach(([n,r])=>{n.startsWith("Mui")&&typeof r=="function"&&(Ll.components[n]=r(Ll))});const gw=({children:n})=>W.jsx(BE,{theme:{[Tn]:Ll},children:W.jsx(o1,{children:W.jsx(_5,{dateAdapter:aA,localeText:{okButtonLabel:"Apply"},children:n})})}),yw="modulepreload",vw=function(n){return"/"+n},zy={},uh=function(r,l,o){let s=Promise.resolve();if(l&&l.length>0){let p=function(m){return Promise.all(m.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),h=d?.nonce||d?.getAttribute("nonce");s=p(l.map(m=>{if(m=vw(m),m in zy)return;zy[m]=!0;const y=m.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${v}`))return;const S=document.createElement("link");if(S.rel=y?"stylesheet":yw,y||(S.as="script"),S.crossOrigin="",S.href=m,h&&S.setAttribute("nonce",h),document.head.appendChild(S),y)return new Promise((O,E)=>{S.addEventListener("load",O),S.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${m}`)))})}))}function c(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return s.then(d=>{for(const h of d||[])h.status==="rejected"&&c(h.reason);return r().catch(c)})},bw=n=>r=>{const{url:l,method:o="GET",afterFetch:s=$=>$}=n,{debugName:c,onStatusChange:d,onMessage:h,onError:p}=r,m=new TextDecoder;let y,v;const S=(...$)=>{console.log(`%c http-stream.ts ${o} ${l} ${c??""}`,"color: white; background: darkcyan; padding: 2px 4px; border-radius: 2px;",...$)},O=$=>{S("onStatusChange",$);try{d?.($)}catch(B){S("onStatusChange Error",B)}},E=$=>{try{h?.($)}catch(B){S("onMessage Error",B)}},T=async()=>{try{v&&(await v.cancel(),v=void 0)}catch($){S("reader cancel error",$)}};return Object.freeze({send:($={})=>{const{headers:B,body:z,data:L}=$;O("connecting"),S("send",L),y=new AbortController;let q;const Q=L?.type==="queue_info"?0:5e3;Q>0&&(q=setTimeout(()=>{S(`fetch timeout: triggering abort after ${Q}ms`);try{y?.abort()}catch(K){S("abort error during timeout",K)}O("error"),p?.(new Error("The request timed out. Please try again later."))},Q)),fetch(l,{headers:{"Content-Type":"application/json",...B},method:o,body:L&&JSON.stringify(L)||z,signal:y.signal}).then(async K=>{if(q&&(clearTimeout(q),q=void 0),K.status!==200||K.headers.get("content-type")!=="application/x-ndjson"){S("fetch status error or content-type error",K),O("error");return}if(v=K.body?.getReader(),!v){S("getReader error",K),O("error");return}O("connected");let F="";for(;;){const{done:C,value:ie}=await v.read();if(C){await T(),O("disconnected");break}const P=m.decode(ie);F+=P;const X=F.split(` `);F=X.pop()||"",X.forEach(w=>{try{const H=s(JSON.parse(w));E(H)}catch(H){S("Parse Message Error",H)}})}}).catch(async K=>{q&&(clearTimeout(q),q=void 0),await T(),S("fetch error",K),O("error"),p?.(K)}).finally(async()=>{q&&(clearTimeout(q),q=void 0),await T(),y=void 0})},abort:()=>{try{y?.abort(),y=void 0}catch($){S("abort error",$)}v?.cancel(),v=void 0,O("disconnected")}})},ss="",Sw=async()=>{const r=await(await fetch(`${ss}/model/list`,{method:"GET"})).json();if(r.type!=="model_list")throw new Error(`Invalid message type: ${r.type}.`);return r.data},xw=async n=>{const l=await(await fetch(`${ss}/scheduler/init`,{method:"POST",body:JSON.stringify(n)})).json();if(l.type!=="scheduler_init")throw new Error(`Invalid message type: ${l.type}.`);return l.data},Cw=bw({url:`${ss}/cluster/status`,method:"GET"}),ky=n=>{const r=x.useRef(void 0);return r.current||(r.current={value:typeof n=="function"?n():n}),r.current.value},Tw=n=>{const r=x.useRef(void 0);return r.current||(r.current={callback:n}),r.current.callback},Bu=n=>{const r=x.useRef(void 0);return r.current=n,Tw(((...o)=>r.current?.(...o)))},Ew="/assets/qwen-JvO50h5P.png",$y=(...n)=>{console.log("%c cluster.tsx ","color: white; background: darkcyan;",...n)},u1=x.createContext(void 0),{Provider:Mw}=u1,Aw=({children:n})=>{const[r,l]=x.useState("local"),[o,s]=x.useState(1),[c,d]=x.useState(""),[h,p]=x.useState([]);x.useEffect(()=>{Sw().then(M=>{p(M.map(D=>({name:D,displayName:D,logoUrl:Ew})))})},[]),x.useEffect(()=>{h.length&&d(h[0].name)},[h]);const[m,y]=x.useState(()=>({id:"",status:"idle",nodeJoinCommand:{},initNodesNumber:4})),[v,S]=x.useState(()=>[]);x.useMemo(()=>{const D=Cw({onMessage:_=>{if(_.type==="cluster_status"){const{data:{status:$,init_nodes_num:B,model_name:z,node_join_command:L,node_list:q}}=_;y(ee=>{const Q={...ee,status:$,initNodesNumber:B||0,modelName:z||"",nodeJoinCommand:L||{}};return JSON.stringify(Q)!==JSON.stringify(ee)?($y("setClusterInfo",Q),Q):ee}),S(ee=>{const Q=q.map(({node_id:K,status:F,gpu_name:C,gpu_memory:ie})=>({id:K,status:F,gpuName:C,gpuMemory:ie}));return JSON.stringify(Q)!==JSON.stringify(ee)?($y("setNodeInfoList",Q),Q):ee})}}});return D.send(),D},[]);const O=Bu(async()=>{xw({model_name:c,init_nodes_num:o,is_local_network:r==="local"})}),E=x.useMemo(()=>({setNetworkType:l,setInitNodesNumber:s,setModelName:d,init:O}),[]),T=x.useMemo(()=>[{networkType:r,initNodesNumber:o,modelName:c,modelInfoList:h,clusterInfo:m,nodeInfoList:v},E],[r,o,c,h,m,v,E]);return W.jsx(Mw,{value:T,children:n})},s1=()=>{const n=x.useContext(u1);if(!n)throw new Error("useCluster must be used within a ClusterProvider");return n},Ow=(...n)=>{},ww=({children:n})=>{const[{modelName:r,clusterInfo:{status:l}}]=s1(),[o,s]=x.useState(""),[c,d]=x.useState("closed"),[h,p]=x.useState([]),m=ky(()=>Rw({onOpen:()=>d("opened"),onClose:()=>d("closed"),onError:T=>d("error"),onMessage:T=>{const{data:{id:M,object:D,model:_,created:$,choices:B,usage:z}}=T;D==="chat.completion.chunk"&&B?.length>0&&(B[0].delta.content&&d("generating"),p(L=>{let q=L;return B.forEach(({delta:{role:ee,content:Q}={}})=>{if(typeof Q!="string")return;ee=ee||"assistant";let K=q[q.length-1];if(K&&K.role===ee){if(K.content+Q===K.content)return;K={...K,content:K.content+Q},q=[...q.slice(0,-1),K]}else K={id:M,role:ee,content:Q,createdAt:$},q=[...q,K];Ow("onMessage","update last message",K.content)}),q}))}})),y=Bu(T=>{if(l!=="available"||c==="opened"||c==="generating"||!r)return;let M=h;if(T){const D=h.findIndex($=>$.id===T.id),_=h[D];if(!_)return;M=M.slice(0,D+(_.role==="user"?1:0))}else{const D=o.trim();if(!D)return;s("");const _=performance.now();M=[...M,{id:_.toString(),role:"user",content:D,createdAt:_}]}p(M),m.connect(r,M)}),v=Bu(()=>{c==="opened"&&m.disconnect()}),S=Bu(()=>{v(),c!=="opened"&&p([])}),O=ky({setInput:s,generate:y,stop:v,clear:S}),E=x.useMemo(()=>[{input:o,status:c,messages:h},O],[o,c,h,O]);return W.jsx(c1.Provider,{value:E,children:n})},c1=x.createContext(void 0),Qw=()=>{const n=x.useContext(c1);if(!n)throw new Error("useChat must be used within a ChatProvider");return n},Rw=n=>{const{onOpen:r,onClose:l,onError:o,onMessage:s}=n,c=new TextDecoder;let d,h;return{connect:(y,v)=>{h=new AbortController,fetch(`${ss}/v1/chat/completions`,{method:"POST",body:JSON.stringify({stream:!0,model:y,messages:v,max_tokens:2048,sampling_params:{top_k:3}}),signal:h.signal}).then(async S=>{const O=S.status,E=S.headers.get("Content-Type");if(O!==200){o?.(new Error(`[SSE] Failed to connect: ${O}`));return}if(!E?.includes("text/event-stream")){o?.(new Error(`[SSE] Invalid content type: ${E}`));return}if(d=S.body?.getReader(),!d){o?.(new Error("[SSE] Failed to get reader"));return}r?.();let T="";const M=D=>{const _={event:"message",data:void 0};D.forEach($=>{const B=$.indexOf(":");if(B<=0)return;const z=$.slice(0,B).trim(),L=$.slice(B+1).trim();if(!L.startsWith(":")){switch(z){case"event":_.event=L;break;case"id":_.id=L;break;case"data":try{const q=JSON.parse(L),ee=Q=>{Q&&(Array.isArray(Q)?Q.forEach((K,F)=>{K===null?Q[F]=void 0:ee(K)}):typeof Q=="object"&&Object.keys(Q).forEach(K=>{Q[K]===null?delete Q[K]:ee(Q[K])}))};ee(q),_.data=q}catch{_.data=L}break}_.data!==void 0&&s?.(_)}})};for(;;){const{done:D,value:_}=await d.read();if(D){l?.();return}const $=c.decode(_);T+=$;const B=T.split(` -`);T=B.pop()||"",M(B)}}).catch(S=>{if(S instanceof Error&&S.name==="AbortError"){l?.();return}o?.(S)})},disconnect:()=>{d?.cancel(),d=void 0,h?.abort("stop"),h=void 0,l?.()}}},Dw=x.lazy(()=>uh(()=>import("./setup-Bsllr9Nn.js"),__vite__mapDeps([0,1,2]))),_w=x.lazy(()=>uh(()=>import("./join-Btvp11Vj.js"),__vite__mapDeps([3,1,2]))),zw=x.lazy(()=>uh(()=>import("./chat-B9cTpCh0.js"),__vite__mapDeps([4,1,2]))),If=(...n)=>{console.log("%c router.tsx ","color: white; background: purple;",...n)},kw=()=>{const n=wd(),[{clusterInfo:{status:r}}]=s1();return x.useEffect(()=>{switch(If("cluster status",r),r){case"idle":case"waiting":If("no need to navigate");break;default:If("navigate to /chat"),n("/chat");break}},[n,r]),c2([{path:"/",element:W.jsx(T2,{to:"/setup",replace:!0})},{path:"/setup",element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(Dw,{})})},{path:"/join",element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(_w,{})})},{path:"/chat",element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(zw,{})})},{path:"*",element:W.jsx("div",{children:"404 - Page Not Found"})}])},$w=Me("div")(({theme:n})=>{const{palette:r,typography:l}=n;return{...l.body2,color:r.text.primary,backgroundColor:r.background.default,width:"100%",height:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center"}}),Nw=()=>W.jsx($w,{children:W.jsx(Aw,{children:W.jsx(ww,{children:W.jsx(kw,{})})})});$S.createRoot(document.getElementById("root")).render(W.jsx(x.StrictMode,{children:W.jsx(Z2,{children:W.jsxs(gw,{children:[W.jsx(h5,{}),W.jsx(Nw,{})]})})}));export{Fd as $,J0 as A,Vv as B,vv as C,Hv as D,Oe as E,Z0 as F,aM as G,iM as H,sd as I,nM as J,Pd as K,Ky as L,Wy as M,wu as N,Uv as O,tM as P,JM as Q,Bw as R,O5 as S,KM as T,jw as U,fr as V,Gl as W,_E as X,iT as Y,Tn as Z,qE as _,Bl as a,rM as a0,qv as a1,Hw as a2,m5 as a3,Yw as a4,Lt as a5,WE as a6,qw as a7,Lw as a8,AT as a9,A5 as aa,gd as ab,Uw as ac,ar as ad,zE as ae,bi as af,La as ag,Vw as ah,w5 as ai,Gw as aj,ry as ak,Zw as al,Xw as am,_A as an,my as ao,kA as ap,Pv as aq,NA as ar,Na as as,ge as b,Ze as c,gn as d,en as e,rt as f,Pw as g,ct as h,s1 as i,W as j,wd as k,Bu as l,Gt as m,u5 as n,Pl as o,jv as p,Qd as q,x as r,Me as s,R5 as t,tn as u,ii as v,Qw as w,nC as x,hr as y,Gd as z}; +`);T=B.pop()||"",M(B)}}).catch(S=>{if(S instanceof Error&&S.name==="AbortError"){l?.();return}o?.(S)})},disconnect:()=>{d?.cancel(),d=void 0,h?.abort("stop"),h=void 0,l?.()}}},Dw=x.lazy(()=>uh(()=>import("./setup-DchpltJe.js"),__vite__mapDeps([0,1,2]))),_w=x.lazy(()=>uh(()=>import("./join-DTKtNOjq.js"),__vite__mapDeps([3,1,2]))),zw=x.lazy(()=>uh(()=>import("./chat-DU5MDPi1.js"),__vite__mapDeps([4,1,2]))),If=(...n)=>{console.log("%c router.tsx ","color: white; background: purple;",...n)},kw=()=>{const n=wd(),[{clusterInfo:{status:r}}]=s1();return x.useEffect(()=>{switch(If("cluster status",r),r){case"idle":case"waiting":If("no need to navigate");break;default:If("navigate to /chat"),n("/chat");break}},[n,r]),c2([{path:"/",element:W.jsx(T2,{to:"/setup",replace:!0})},{path:"/setup",element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(Dw,{})})},{path:"/join",element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(_w,{})})},{path:"/chat",element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(zw,{})})},{path:"*",element:W.jsx("div",{children:"404 - Page Not Found"})}])},$w=Me("div")(({theme:n})=>{const{palette:r,typography:l}=n;return{...l.body2,color:r.text.primary,backgroundColor:r.background.default,width:"100%",height:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center"}}),Nw=()=>W.jsx($w,{children:W.jsx(Aw,{children:W.jsx(ww,{children:W.jsx(kw,{})})})});$S.createRoot(document.getElementById("root")).render(W.jsx(x.StrictMode,{children:W.jsx(Z2,{children:W.jsxs(gw,{children:[W.jsx(h5,{}),W.jsx(Nw,{})]})})}));export{Fd as $,J0 as A,Vv as B,vv as C,Hv as D,Oe as E,Z0 as F,aM as G,iM as H,sd as I,nM as J,Pd as K,Ky as L,Wy as M,wu as N,Uv as O,tM as P,JM as Q,Bw as R,O5 as S,KM as T,jw as U,fr as V,Gl as W,_E as X,iT as Y,Tn as Z,qE as _,Bl as a,rM as a0,qv as a1,Hw as a2,m5 as a3,Yw as a4,Lt as a5,WE as a6,qw as a7,Lw as a8,AT as a9,A5 as aa,gd as ab,Uw as ac,ar as ad,zE as ae,bi as af,La as ag,Vw as ah,w5 as ai,Gw as aj,ry as ak,Zw as al,Xw as am,_A as an,my as ao,kA as ap,Pv as aq,NA as ar,Na as as,ge as b,Ze as c,gn as d,en as e,rt as f,Pw as g,ct as h,s1 as i,W as j,wd as k,Bu as l,Gt as m,u5 as n,Pl as o,jv as p,Qd as q,x as r,Me as s,R5 as t,tn as u,ii as v,Qw as w,nC as x,hr as y,Gd as z}; diff --git a/src/frontend/dist/assets/join-Btvp11Vj.js b/src/frontend/dist/assets/join-DTKtNOjq.js similarity index 94% rename from src/frontend/dist/assets/join-Btvp11Vj.js rename to src/frontend/dist/assets/join-DTKtNOjq.js index 091a4a1c..a7080777 100644 --- a/src/frontend/dist/assets/join-Btvp11Vj.js +++ b/src/frontend/dist/assets/join-DTKtNOjq.js @@ -1,4 +1,4 @@ -import{o as l,i as c,r as u,j as e,T as r,s as h,A as a,n as p,L as m,S as x}from"./index-BlRBE7Ft.js";import{M as y,J as f,N as j}from"./main-layout-C11OgrSN.js";/** +import{o as l,i as c,r as u,j as e,T as r,s as h,A as a,n as p,L as m,S as x}from"./index-Bht8DC43.js";import{M as y,J as f,N as j}from"./main-layout-goXDayPH.js";/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. diff --git a/src/frontend/dist/assets/main-layout-C11OgrSN.js b/src/frontend/dist/assets/main-layout-goXDayPH.js similarity index 80% rename from src/frontend/dist/assets/main-layout-C11OgrSN.js rename to src/frontend/dist/assets/main-layout-goXDayPH.js index 8c169f8f..5e01fb38 100644 --- a/src/frontend/dist/assets/main-layout-C11OgrSN.js +++ b/src/frontend/dist/assets/main-layout-goXDayPH.js @@ -1,6 +1,6 @@ -import{x as W4,y as Y4,r as O,z as G4,C as K4,j as L,c as Be,_ as X4,R as Ma,D as Q4,E as Ra,F as D1,G as Z4,H as J4,I as rn,J as e3,K as Lr,M as t3,N as au,s as ue,u as Ke,O as n3,P as Ji,m as vt,Q as ea,b as Tt,d as je,U as r3,V as _1,f as ut,h as pt,W as i3,X as Ns,v as At,Y as a3,Z as s3,$ as o3,a0 as u3,a1 as Ms,q as L1,a2 as l3,a3 as c3,T as Ve,p as Dn,a4 as d3,a5 as sl,e as ol,a6 as h3,a7 as f3,a8 as H0,a9 as m3,B as p3,aa as z0,ab as U0,ac as g3,ad as vn,ae as b3,af as P1,ag as O1,ah as y3,ai as T3,aj as E3,ak as V0,o as _n,al as x3,am as j0,an as v3,ao as q0,ap as Ja,aq as ul,ar as B1,n as ls,i as fa,S as Je,l as cs,as as F1,w as H1}from"./index-BlRBE7Ft.js";function S3(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,a=W4("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(Y4);return O.forwardRef(function(u,l){const c=G4(n),{className:d,component:m="div",...p}=K4(u);return L.jsx(a,{as:m,ref:l,className:Be(d,i?i(r):r),theme:t&&c[t]||c,...p})})}function A3(e,t){return O.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function C3(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function w3(e){return parseFloat(e)}function $0(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function z1(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Tn(e){return e&&e.ownerDocument||document}function Wn(e){return Tn(e).defaultView||window}function W0(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Y0(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:a}=O.useRef(t!==void 0),[s,o]=O.useState(n),u=a?t:s,l=O.useCallback(c=>{a||o(c)},[]);return[u,l]}function k3(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function I3(e,t){if(!e)return t;function n(s,o){const u={};return Object.keys(o).forEach(l=>{k3(l,o[l])&&typeof s[l]=="function"&&(u[l]=(...c)=>{s[l](...c),o[l](...c)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const o=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...o}):e,l=Be(s?.className,o?.className,u?.className),c=n(u,o);return{...o,...u,...c,...!!l&&{className:l},...o?.style&&u?.style&&{style:{...o.style,...u.style}},...o?.sx&&u?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,i=n(e,r),a=Be(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const G0={disabled:!1};var N3=function(t){return t.scrollTop},Li="unmounted",wr="exited",kr="entering",Wr="entered",su="exiting",Ln=(function(e){X4(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?o?(u=wr,a.appearStatus=kr):u=Wr:r.unmountOnExit||r.mountOnEnter?u=Li:u=wr,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===Li?{status:wr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==kr&&s!==Wr&&(a=kr):(s===kr||s===Wr)&&(a=su)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===kr){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ma.findDOMNode(this);s&&N3(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===wr&&this.setState({status:Li})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,u=this.props.nodeRef?[o]:[Ma.findDOMNode(this),o],l=u[0],c=u[1],d=this.getTimeouts(),m=o?d.appear:d.enter;if(!i&&!s||G0.disabled){this.safeSetState({status:Wr},function(){a.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:kr},function(){a.props.onEntering(l,c),a.onTransitionEnd(m,function(){a.safeSetState({status:Wr},function(){a.props.onEntered(l,c)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:Ma.findDOMNode(this);if(!a||G0.disabled){this.safeSetState({status:wr},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:su},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:wr},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:Ma.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Li)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=Q4(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ra.createElement(D1.Provider,{value:null},typeof s=="function"?s(i,o):Ra.cloneElement(Ra.Children.only(s),o))},t})(Ra.Component);Ln.contextType=D1;Ln.propTypes={};function Vr(){}Ln.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vr,onEntering:Vr,onEntered:Vr,onExit:Vr,onExiting:Vr,onExited:Vr};Ln.UNMOUNTED=Li;Ln.EXITED=wr;Ln.ENTERING=kr;Ln.ENTERED=Wr;Ln.EXITING=su;const U1=e=>e.scrollTop;function ds(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function M3(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,s=i?{}:Z4(n,r),{props:o,internalRef:u}=J4({...a,externalSlotProps:s}),l=rn(u,s?.ref,e.additionalProps?.ref);return e3(t,{...o,ref:l},r)}function ma(e){return parseInt(O.version,10)>=19?e?.props?.ref||null:e?.ref||null}function R3(e){return typeof e=="function"?e():e}const D3=O.forwardRef(function(t,n){const{children:r,container:i,disablePortal:a=!1}=t,[s,o]=O.useState(null),u=rn(O.isValidElement(r)?ma(r):null,n);if(Lr(()=>{a||o(R3(i)||document.body)},[i,a]),Lr(()=>{if(s&&!a)return W0(n,s),()=>{W0(n,null)}},[n,s,a]),a){if(O.isValidElement(r)){const l={ref:u};return O.cloneElement(r,l)}return r}return s&&t3.createPortal(r,s)});function Da(e){return parseInt(e,10)||0}const _3={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function L3(e){for(const t in e)return!1;return!0}function K0(e){return L3(e)||e.outerHeightStyle===0&&!e.overflowing}const P3=O.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:o,...u}=t,{current:l}=O.useRef(o!=null),c=O.useRef(null),d=rn(n,c),m=O.useRef(null),p=O.useRef(null),b=O.useCallback(()=>{const v=c.current,_=p.current;if(!v||!_)return;const k=Wn(v).getComputedStyle(v);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};_.style.width=k.width,_.value=v.value||t.placeholder||"x",_.value.slice(-1)===` -`&&(_.value+=" ");const V=k.boxSizing,U=Da(k.paddingBottom)+Da(k.paddingTop),q=Da(k.borderBottomWidth)+Da(k.borderTopWidth),B=_.scrollHeight;_.value="x";const K=_.scrollHeight;let Y=B;a&&(Y=Math.max(Number(a)*K,Y)),i&&(Y=Math.min(Number(i)*K,Y)),Y=Math.max(Y,K);const X=Y+(V==="border-box"?U+q:0),j=Math.abs(Y-B)<=1;return{outerHeightStyle:X,overflowing:j}},[i,a,t.placeholder]),E=au(()=>{const v=c.current,_=b();if(!v||!_||K0(_))return!1;const P=_.outerHeightStyle;return m.current!=null&&m.current!==P}),C=O.useCallback(()=>{const v=c.current,_=b();if(!v||!_||K0(_))return;const P=_.outerHeightStyle;m.current!==P&&(m.current=P,v.style.height=`${P}px`),v.style.overflow=_.overflowing?"hidden":""},[b]),T=O.useRef(-1);Lr(()=>{const v=z1(C),_=c?.current;if(!_)return;const P=Wn(_);P.addEventListener("resize",v);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(()=>{E()&&(k.unobserve(_),cancelAnimationFrame(T.current),C(),T.current=requestAnimationFrame(()=>{k.observe(_)}))}),k.observe(_)),()=>{v.clear(),cancelAnimationFrame(T.current),P.removeEventListener("resize",v),k&&k.disconnect()}},[b,C,E]),Lr(()=>{C()});const S=v=>{l||C();const _=v.target,P=_.value.length,k=_.value.endsWith(` -`),V=_.selectionStart===P;k&&V&&_.setSelectionRange(P,P),r&&r(v)};return L.jsxs(O.Fragment,{children:[L.jsx("textarea",{value:o,onChange:S,ref:d,rows:a,style:s,...u}),L.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:{..._3.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function ll({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const V1=O.createContext(void 0);function cl(){return O.useContext(V1)}function X0(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function j1(e,t=!1){return e&&(X0(e.value)&&e.value!==""||t&&X0(e.defaultValue)&&e.defaultValue!=="")}function DR(e){return e.startAdornment}var Q0;const Rs=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Tt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ds=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},O3=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:o,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:d,size:m,startAdornment:p,type:b}=e,E={root:["root",`color${Tt(n)}`,r&&"disabled",i&&"error",u&&"fullWidth",s&&"focused",o&&"formControl",m&&m!=="medium"&&`size${Tt(m)}`,c&&"multiline",p&&"adornedStart",a&&"adornedEnd",l&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",c&&"inputMultiline",m==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return je(E,r3,t)},_s=ue("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Rs})(vt(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ea.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Ls=ue("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ds})(vt(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ea.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${ea.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Z0=n3({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),dl=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:o,color:u,components:l={},componentsProps:c={},defaultValue:d,disabled:m,disableInjectingGlobalStyles:p,endAdornment:b,error:E,fullWidth:C=!1,id:T,inputComponent:S="input",inputProps:v={},inputRef:_,margin:P,maxRows:k,minRows:V,multiline:U=!1,name:q,onBlur:B,onChange:K,onClick:Y,onFocus:X,onKeyDown:j,onKeyUp:W,placeholder:ne,readOnly:le,renderSuffix:fe,rows:oe,size:I,slotProps:De={},slots:Ae={},startAdornment:D,type:_e="text",value:Ue,...He}=r,qe=v.value!=null?v.value:Ue,{current:$e}=O.useRef(qe!=null),We=O.useRef(),xe=O.useCallback(Le=>{},[]),Pe=rn(We,_,v.ref,xe),[ze,dt]=O.useState(!1),Oe=cl(),Xe=ll({props:r,muiFormControl:Oe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Xe.focused=Oe?Oe.focused:ze,O.useEffect(()=>{!Oe&&m&&ze&&(dt(!1),B&&B())},[Oe,m,ze,B]);const Pt=Oe&&Oe.onFilled,Ot=Oe&&Oe.onEmpty,wt=O.useCallback(Le=>{j1(Le)?Pt&&Pt():Ot&&Ot()},[Pt,Ot]);Lr(()=>{$e&&wt({value:qe})},[qe,wt,$e]);const Vt=Le=>{X&&X(Le),v.onFocus&&v.onFocus(Le),Oe&&Oe.onFocus?Oe.onFocus(Le):dt(!0)},Qt=Le=>{B&&B(Le),v.onBlur&&v.onBlur(Le),Oe&&Oe.onBlur?Oe.onBlur(Le):dt(!1)},kt=(Le,...jt)=>{if(!$e){const qt=Le.target||We.current;if(qt==null)throw new Error(_1(1));wt({value:qt.value})}v.onChange&&v.onChange(Le,...jt),K&&K(Le,...jt)};O.useEffect(()=>{wt(We.current)},[]);const xn=Le=>{We.current&&Le.currentTarget===Le.target&&We.current.focus(),Y&&Y(Le)};let er=S,Nt=v;U&&er==="input"&&(oe?Nt={type:void 0,minRows:oe,maxRows:oe,...Nt}:Nt={type:void 0,maxRows:k,minRows:V,...Nt},er=P3);const tr=Le=>{wt(Le.animationName==="mui-auto-fill-cancel"?We.current:{value:"x"})};O.useEffect(()=>{Oe&&Oe.setAdornedStart(!!D)},[Oe,D]);const G={...r,color:Xe.color||"primary",disabled:Xe.disabled,endAdornment:b,error:Xe.error,focused:Xe.focused,formControl:Oe,fullWidth:C,hiddenLabel:Xe.hiddenLabel,multiline:U,size:Xe.size,startAdornment:D,type:_e},ae=O3(G),ye=Ae.root||l.Root||_s,ve=De.root||c.root||{},Me=Ae.input||l.Input||Ls;return Nt={...Nt,...De.input??c.input},L.jsxs(O.Fragment,{children:[!p&&typeof Z0=="function"&&(Q0||(Q0=L.jsx(Z0,{}))),L.jsxs(ye,{...ve,ref:n,onClick:xn,...He,...!Ji(ye)&&{ownerState:{...G,...ve.ownerState}},className:Be(ae.root,ve.className,o,le&&"MuiInputBase-readOnly"),children:[D,L.jsx(V1.Provider,{value:null,children:L.jsx(Me,{"aria-invalid":Xe.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:d,disabled:Xe.disabled,id:T,onAnimationStart:tr,name:q,placeholder:ne,readOnly:le,required:Xe.required,rows:oe,value:qe,onKeyDown:j,onKeyUp:W,type:_e,...Nt,...!Ji(Me)&&{as:er,ownerState:{...G,...Nt.ownerState}},ref:Pe,className:Be(ae.input,Nt.className,le&&"MuiInputBase-readOnly"),onBlur:Qt,onChange:kt,onFocus:Vt})}),b,fe?fe({...Xe,startAdornment:D}):null]})]})});function B3(e){return pt("MuiInput",e)}const Si={...ea,...ut("MuiInput",["root","underline","input"])};function F3(e){return pt("MuiFilledInput",e)}const Er={...ea,...ut("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},H3=i3(L.jsx("path",{d:"M7 10l5 5 5-5z"})),z3={entering:{opacity:1},entered:{opacity:1}},ou=O.forwardRef(function(t,n){const r=Ns(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:o,easing:u,in:l,onEnter:c,onEntered:d,onEntering:m,onExit:p,onExited:b,onExiting:E,style:C,timeout:T=i,TransitionComponent:S=Ln,...v}=t,_=O.useRef(null),P=rn(_,ma(o),n),k=j=>W=>{if(j){const ne=_.current;W===void 0?j(ne):j(ne,W)}},V=k(m),U=k((j,W)=>{U1(j);const ne=ds({style:C,timeout:T,easing:u},{mode:"enter"});j.style.webkitTransition=r.transitions.create("opacity",ne),j.style.transition=r.transitions.create("opacity",ne),c&&c(j,W)}),q=k(d),B=k(E),K=k(j=>{const W=ds({style:C,timeout:T,easing:u},{mode:"exit"});j.style.webkitTransition=r.transitions.create("opacity",W),j.style.transition=r.transitions.create("opacity",W),p&&p(j)}),Y=k(b),X=j=>{a&&a(_.current,j)};return L.jsx(S,{appear:s,in:l,nodeRef:_,onEnter:U,onEntered:q,onEntering:V,onExit:K,onExited:Y,onExiting:B,addEndListener:X,timeout:T,...v,children:(j,{ownerState:W,...ne})=>O.cloneElement(o,{style:{opacity:0,visibility:j==="exited"&&!l?"hidden":void 0,...z3[j],...C,...o.props.style},ref:P,...ne})})});function U3(e){return pt("MuiBackdrop",e)}ut("MuiBackdrop",["root","invisible"]);const V3=e=>{const{classes:t,invisible:n}=e;return je({root:["root",n&&"invisible"]},U3,t)},j3=ue("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),q1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:s="div",invisible:o=!1,open:u,components:l={},componentsProps:c={},slotProps:d={},slots:m={},TransitionComponent:p,transitionDuration:b,...E}=r,C={...r,component:s,invisible:o},T=V3(C),S={transition:p,root:l.Root,...m},v={...c,...d},_={component:s,slots:S,slotProps:v},[P,k]=At("root",{elementType:j3,externalForwardedProps:_,className:Be(T.root,a),ownerState:C}),[V,U]=At("transition",{elementType:ou,externalForwardedProps:_,ownerState:C});return L.jsx(V,{in:u,timeout:b,...E,...U,children:L.jsx(P,{"aria-hidden":!0,...k,classes:T,ref:n,children:i})})}),q3=ut("MuiBox",["root"]),$3=o3(),ci=S3({themeId:s3,defaultTheme:$3,defaultClassName:q3.root,generateClassName:a3.generate});function $1(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function W3(e){const t=Tn(e);return t.body===e?Wn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Fi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function J0(e){return parseInt(Wn(e).getComputedStyle(e).paddingRight,10)||0}function Y3(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function ec(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,s=>{const o=!a.includes(s),u=!Y3(s);o&&u&&Fi(s,i)})}function no(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function G3(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(W3(r)){const s=$1(Wn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${J0(r)+s}px`;const o=Tn(r).querySelectorAll(".mui-fixed");[].forEach.call(o,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${J0(u)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Tn(r).body;else{const s=r.parentElement,o=Wn(r);a=s?.nodeName==="HTML"&&o.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:o})=>{a?s.style.setProperty(o,a):s.style.removeProperty(o)})}}function K3(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class X3{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Fi(t.modalRef,!1);const i=K3(n);ec(n,t.mount,t.modalRef,i,!0);const a=no(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=no(this.containers,a=>a.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=G3(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=no(this.containers,s=>s.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Fi(t.modalRef,n),ec(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&Fi(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Q3=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Z3(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function J3(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function e6(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||J3(e))}function t6(e){const t=[],n=[];return Array.from(e.querySelectorAll(Q3)).forEach((r,i)=>{const a=Z3(r);a===-1||!e6(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function n6(){return!0}function r6(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=t6,isEnabled:s=n6,open:o}=e,u=O.useRef(!1),l=O.useRef(null),c=O.useRef(null),d=O.useRef(null),m=O.useRef(null),p=O.useRef(!1),b=O.useRef(null),E=rn(ma(t),b),C=O.useRef(null);O.useEffect(()=>{!o||!b.current||(p.current=!n)},[n,o]),O.useEffect(()=>{if(!o||!b.current)return;const v=Tn(b.current);return b.current.contains(v.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),p.current&&b.current.focus()),()=>{i||(d.current&&d.current.focus&&(u.current=!0,d.current.focus()),d.current=null)}},[o]),O.useEffect(()=>{if(!o||!b.current)return;const v=Tn(b.current),_=V=>{C.current=V,!(r||!s()||V.key!=="Tab")&&v.activeElement===b.current&&V.shiftKey&&(u.current=!0,c.current&&c.current.focus())},P=()=>{const V=b.current;if(V===null)return;if(!v.hasFocus()||!s()||u.current){u.current=!1;return}if(V.contains(v.activeElement)||r&&v.activeElement!==l.current&&v.activeElement!==c.current)return;if(v.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!p.current)return;let U=[];if((v.activeElement===l.current||v.activeElement===c.current)&&(U=a(b.current)),U.length>0){const q=!!(C.current?.shiftKey&&C.current?.key==="Tab"),B=U[0],K=U[U.length-1];typeof B!="string"&&typeof K!="string"&&(q?K.focus():B.focus())}else V.focus()};v.addEventListener("focusin",P),v.addEventListener("keydown",_,!0);const k=setInterval(()=>{v.activeElement&&v.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(k),v.removeEventListener("focusin",P),v.removeEventListener("keydown",_,!0)}},[n,r,i,s,o,a]);const T=v=>{d.current===null&&(d.current=v.relatedTarget),p.current=!0,m.current=v.target;const _=t.props.onFocus;_&&_(v)},S=v=>{d.current===null&&(d.current=v.relatedTarget),p.current=!0};return L.jsxs(O.Fragment,{children:[L.jsx("div",{tabIndex:o?0:-1,onFocus:S,ref:l,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:E,onFocus:T}),L.jsx("div",{tabIndex:o?0:-1,onFocus:S,ref:c,"data-testid":"sentinelEnd"})]})}function i6(e){return typeof e=="function"?e():e}function a6(e){return e?e.props.hasOwnProperty("in"):!1}const tc=()=>{},_a=new X3;function s6(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:o,onClose:u,open:l,rootRef:c}=e,d=O.useRef({}),m=O.useRef(null),p=O.useRef(null),b=rn(p,c),[E,C]=O.useState(!l),T=a6(o);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const v=()=>Tn(m.current),_=()=>(d.current.modalRef=p.current,d.current.mount=m.current,d.current),P=()=>{_a.mount(_(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},k=au(()=>{const W=i6(t)||v().body;_a.add(_(),W),p.current&&P()}),V=()=>_a.isTopModal(_()),U=au(W=>{m.current=W,W&&(l&&V()?P():p.current&&Fi(p.current,S))}),q=O.useCallback(()=>{_a.remove(_(),S)},[S]);O.useEffect(()=>()=>{q()},[q]),O.useEffect(()=>{l?k():(!T||!i)&&q()},[l,q,T,i,k]);const B=W=>ne=>{W.onKeyDown?.(ne),!(ne.key!=="Escape"||ne.which===229||!V())&&(n||(ne.stopPropagation(),u&&u(ne,"escapeKeyDown")))},K=W=>ne=>{W.onClick?.(ne),ne.target===ne.currentTarget&&u&&u(ne,"backdropClick")};return{getRootProps:(W={})=>{const ne=u3(e);delete ne.onTransitionEnter,delete ne.onTransitionExited;const le={...ne,...W};return{role:"presentation",...le,onKeyDown:B(le),ref:b}},getBackdropProps:(W={})=>{const ne=W;return{"aria-hidden":!0,...ne,onClick:K(ne),open:l}},getTransitionProps:()=>{const W=()=>{C(!1),a&&a()},ne=()=>{C(!0),s&&s(),i&&q()};return{onEnter:$0(W,o?.props.onEnter??tc),onExited:$0(ne,o?.props.onExited??tc)}},rootRef:b,portalRef:U,isTopModal:V,exited:E,hasTransition:T}}function o6(e){return pt("MuiModal",e)}ut("MuiModal",["root","hidden","backdrop"]);const u6=e=>{const{open:t,exited:n,classes:r}=e;return je({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},o6,r)},l6=ue("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(vt(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),c6=ue(q1,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),W1=O.forwardRef(function(t,n){const r=Ke({name:"MuiModal",props:t}),{BackdropComponent:i=c6,BackdropProps:a,classes:s,className:o,closeAfterTransition:u=!1,children:l,container:c,component:d,components:m={},componentsProps:p={},disableAutoFocus:b=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:C=!1,disablePortal:T=!1,disableRestoreFocus:S=!1,disableScrollLock:v=!1,hideBackdrop:_=!1,keepMounted:P=!1,onClose:k,onTransitionEnter:V,onTransitionExited:U,open:q,slotProps:B={},slots:K={},theme:Y,...X}=r,j={...r,closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:E,disableEscapeKeyDown:C,disablePortal:T,disableRestoreFocus:S,disableScrollLock:v,hideBackdrop:_,keepMounted:P},{getRootProps:W,getBackdropProps:ne,getTransitionProps:le,portalRef:fe,isTopModal:oe,exited:I,hasTransition:De}=s6({...j,rootRef:n}),Ae={...j,exited:I},D=u6(Ae),_e={};if(l.props.tabIndex===void 0&&(_e.tabIndex="-1"),De){const{onEnter:xe,onExited:Pe}=le();_e.onEnter=xe,_e.onExited=Pe}const Ue={slots:{root:m.Root,backdrop:m.Backdrop,...K},slotProps:{...p,...B}},[He,qe]=At("root",{ref:n,elementType:l6,externalForwardedProps:{...Ue,...X,component:d},getSlotProps:W,ownerState:Ae,className:Be(o,D?.root,!Ae.open&&Ae.exited&&D?.hidden)}),[$e,We]=At("backdrop",{ref:a?.ref,elementType:i,externalForwardedProps:Ue,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:xe=>ne({...xe,onClick:Pe=>{xe?.onClick&&xe.onClick(Pe)}}),className:Be(a?.className,D?.backdrop),ownerState:Ae});return!P&&!q&&(!De||I)?null:L.jsx(D3,{ref:fe,container:c,disablePortal:T,children:L.jsxs(He,{...qe,children:[!_&&i?L.jsx($e,{...We}):null,L.jsx(r6,{disableEnforceFocus:E,disableAutoFocus:b,disableRestoreFocus:S,isEnabled:oe,open:q,children:O.cloneElement(l,_e)})]})})});function d6(e){return pt("MuiDialog",e)}const ro=ut("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Y1=O.createContext({}),h6=ue(q1,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),f6=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${Tt(n)}`],paper:["paper",`paperScroll${Tt(n)}`,`paperWidth${Tt(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return je(s,d6,t)},m6=ue(W1,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),p6=ue("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Tt(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),g6=ue(Ms,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Tt(n.scroll)}`],t[`paperWidth${Tt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(vt(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${ro.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${ro.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ro.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),b6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialog"}),i=Ns(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":o,"aria-modal":u=!0,BackdropComponent:l,BackdropProps:c,children:d,className:m,disableEscapeKeyDown:p=!1,fullScreen:b=!1,fullWidth:E=!1,maxWidth:C="sm",onClick:T,onClose:S,open:v,PaperComponent:_=Ms,PaperProps:P={},scroll:k="paper",slots:V={},slotProps:U={},TransitionComponent:q=ou,transitionDuration:B=a,TransitionProps:K,...Y}=r,X={...r,disableEscapeKeyDown:p,fullScreen:b,fullWidth:E,maxWidth:C,scroll:k},j=f6(X),W=O.useRef(),ne=dt=>{W.current=dt.target===dt.currentTarget},le=dt=>{T&&T(dt),W.current&&(W.current=null,S&&S(dt,"backdropClick"))},fe=L1(o),oe=O.useMemo(()=>({titleId:fe}),[fe]),I={transition:q,...V},De={transition:K,paper:P,backdrop:c,...U},Ae={slots:I,slotProps:De},[D,_e]=At("root",{elementType:m6,shouldForwardComponentProp:!0,externalForwardedProps:Ae,ownerState:X,className:Be(j.root,m),ref:n}),[Ue,He]=At("backdrop",{elementType:h6,shouldForwardComponentProp:!0,externalForwardedProps:Ae,ownerState:X}),[qe,$e]=At("paper",{elementType:g6,shouldForwardComponentProp:!0,externalForwardedProps:Ae,ownerState:X,className:Be(j.paper,P.className)}),[We,xe]=At("container",{elementType:p6,externalForwardedProps:Ae,ownerState:X,className:j.container}),[Pe,ze]=At("transition",{elementType:ou,externalForwardedProps:Ae,ownerState:X,additionalProps:{appear:!0,in:v,timeout:B,role:"presentation"}});return L.jsx(D,{closeAfterTransition:!0,slots:{backdrop:Ue},slotProps:{backdrop:{transitionDuration:B,as:l,...He}},disableEscapeKeyDown:p,onClose:S,open:v,onClick:le,..._e,...Y,children:L.jsx(Pe,{...ze,children:L.jsx(We,{onMouseDown:ne,...xe,children:L.jsx(qe,{as:_,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":fe,"aria-modal":u,...$e,children:L.jsx(Y1.Provider,{value:oe,children:d})})})})})});function y6(e){return pt("MuiDialogActions",e)}ut("MuiDialogActions",["root","spacing"]);const T6=e=>{const{classes:t,disableSpacing:n}=e;return je({root:["root",!n&&"spacing"]},y6,t)},E6=ue("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),x6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:a=!1,...s}=r,o={...r,disableSpacing:a},u=T6(o);return L.jsx(E6,{className:Be(u.root,i),ownerState:o,ref:n,...s})}),v6=e=>{const{classes:t,dividers:n}=e;return je({root:["root",n&&"dividers"]},l3,t)},S6=ue("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(vt(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${c3.root} + &`]:{paddingTop:0}}}]}))),A6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContent"}),{className:i,dividers:a=!1,...s}=r,o={...r,dividers:a},u=v6(o);return L.jsx(S6,{className:Be(u.root,i),ownerState:o,ref:n,...s})});function C6(e){return pt("MuiDialogContentText",e)}ut("MuiDialogContentText",["root"]);const w6=e=>{const{classes:t}=e,r=je({root:["root"]},C6,t);return{...t,...r}},k6=ue(Ve,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),I6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContentText"}),{children:i,className:a,...s}=r,o=w6(s);return L.jsx(k6,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:Be(o.root,a),...r,classes:o})}),N6=e=>{const{classes:t}=e;return je({root:["root"]},d3,t)},M6=ue(Ve,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),R6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogTitle"}),{className:i,id:a,...s}=r,o=r,u=N6(o),{titleId:l=a}=O.useContext(Y1);return L.jsx(M6,{component:"h2",className:Be(u.root,i),ownerState:o,ref:n,variant:"h6",id:a??l,...s})}),D6=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:s,multiline:o}=e,u={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",a==="small"&&`size${Tt(a)}`,s&&"hiddenLabel",o&&"multiline"],input:["input"]},l=je(u,F3,t);return{...t,...l}},_6=ue(_s,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Rs(e,t),!n.disableUnderline&&t.underline]}})(vt(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Er.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Er.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Er.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Er.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Er.disabled}, .${Er.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Er.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ol()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:o})=>s.multiline&&o==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),L6=ue(Ls,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ds})(vt(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),G1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:o=!1,hiddenLabel:u,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:m={},type:p="text",...b}=r,E={...r,disableUnderline:i,fullWidth:o,inputComponent:l,multiline:c,type:p},C=D6(r),T={root:{ownerState:E},input:{ownerState:E}},S=d??s?sl(T,d??s):T,v=m.root??a.Root??_6,_=m.input??a.Input??L6;return L.jsx(dl,{slots:{root:v,input:_},slotProps:S,fullWidth:o,inputComponent:l,multiline:c,ref:n,type:p,...b,classes:C})});G1.muiName="Input";function uu(e){return`scale(${e}, ${e**2})`}const P6={entering:{opacity:1,transform:uu(1)},entered:{opacity:1,transform:"none"}},io=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),lu=O.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:s,in:o,onEnter:u,onEntered:l,onEntering:c,onExit:d,onExited:m,onExiting:p,style:b,timeout:E="auto",TransitionComponent:C=Ln,...T}=t,S=h3(),v=O.useRef(),_=Ns(),P=O.useRef(null),k=rn(P,ma(a),n),V=W=>ne=>{if(W){const le=P.current;ne===void 0?W(le):W(le,ne)}},U=V(c),q=V((W,ne)=>{U1(W);const{duration:le,delay:fe,easing:oe}=ds({style:b,timeout:E,easing:s},{mode:"enter"});let I;E==="auto"?(I=_.transitions.getAutoHeightDuration(W.clientHeight),v.current=I):I=le,W.style.transition=[_.transitions.create("opacity",{duration:I,delay:fe}),_.transitions.create("transform",{duration:io?I:I*.666,delay:fe,easing:oe})].join(","),u&&u(W,ne)}),B=V(l),K=V(p),Y=V(W=>{const{duration:ne,delay:le,easing:fe}=ds({style:b,timeout:E,easing:s},{mode:"exit"});let oe;E==="auto"?(oe=_.transitions.getAutoHeightDuration(W.clientHeight),v.current=oe):oe=ne,W.style.transition=[_.transitions.create("opacity",{duration:oe,delay:le}),_.transitions.create("transform",{duration:io?oe:oe*.666,delay:io?le:le||oe*.333,easing:fe})].join(","),W.style.opacity=0,W.style.transform=uu(.75),d&&d(W)}),X=V(m),j=W=>{E==="auto"&&S.start(v.current||0,W),r&&r(P.current,W)};return L.jsx(C,{appear:i,in:o,nodeRef:P,onEnter:q,onEntered:B,onEntering:U,onExit:Y,onExited:X,onExiting:K,addEndListener:j,timeout:E==="auto"?null:E,...T,children:(W,{ownerState:ne,...le})=>O.cloneElement(a,{style:{opacity:0,transform:uu(.75),visibility:W==="exited"&&!o?"hidden":void 0,...P6[W],...b,...a.props.style},ref:k,...le})})});lu&&(lu.muiSupportAuto=!0);const O6=e=>{const{classes:t,disableUnderline:n}=e,i=je({root:["root",!n&&"underline"],input:["input"]},B3,t);return{...t,...i}},B6=ue(_s,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Rs(e,t),!n.disableUnderline&&t.underline]}})(vt(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Si.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Si.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Si.disabled}, .${Si.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Si.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ol()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),F6=ue(Ls,{name:"MuiInput",slot:"Input",overridesResolver:Ds})({}),K1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:o=!1,inputComponent:u="input",multiline:l=!1,slotProps:c,slots:d={},type:m="text",...p}=r,b=O6(r),C={root:{ownerState:{disableUnderline:i}}},T=c??s?sl(c??s,C):C,S=d.root??a.Root??B6,v=d.input??a.Input??F6;return L.jsx(dl,{slots:{root:S,input:v},slotProps:T,fullWidth:o,inputComponent:u,multiline:l,ref:n,type:m,...p,classes:b})});K1.muiName="Input";const jn=O.createContext({});function H6(e){return pt("MuiList",e)}ut("MuiList",["root","padding","dense","subheader"]);const z6=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return je({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},H6,t)},U6=ue("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),X1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiList"}),{children:i,className:a,component:s="ul",dense:o=!1,disablePadding:u=!1,subheader:l,...c}=r,d=O.useMemo(()=>({dense:o}),[o]),m={...r,component:s,dense:o,disablePadding:u},p=z6(m);return L.jsx(jn.Provider,{value:d,children:L.jsxs(U6,{as:s,className:Be(p.root,a),ref:n,ownerState:m,...c,children:[l,i]})})});function V6(e){return pt("MuiListItem",e)}ut("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const j6=ut("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function q6(e){return pt("MuiListItemSecondaryAction",e)}ut("MuiListItemSecondaryAction",["root","disableGutters"]);const $6=e=>{const{disableGutters:t,classes:n}=e;return je({root:["root",t&&"disableGutters"]},q6,n)},W6=ue("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Q1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...a}=r,s=O.useContext(jn),o={...r,disableGutters:s.disableGutters},u=$6(o);return L.jsx(W6,{className:Be(u.root,i),ownerState:o,ref:n,...a})});Q1.muiName="ListItemSecondaryAction";const Y6=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},G6=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:a,divider:s,hasSecondaryAction:o}=e;return je({root:["root",r&&"dense",!i&&"gutters",!a&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",o&&"secondaryAction"],container:["container"]},V6,n)},K6=ue("div",{name:"MuiListItem",slot:"Root",overridesResolver:Y6})(vt(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${j6.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),X6=ue("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Q6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItem"}),{alignItems:i="center",children:a,className:s,component:o,components:u={},componentsProps:l={},ContainerComponent:c="li",ContainerProps:{className:d,...m}={},dense:p=!1,disableGutters:b=!1,disablePadding:E=!1,divider:C=!1,secondaryAction:T,slotProps:S={},slots:v={},..._}=r,P=O.useContext(jn),k=O.useMemo(()=>({dense:p||P.dense||!1,alignItems:i,disableGutters:b}),[i,P.dense,p,b]),V=O.useRef(null),U=O.Children.toArray(a),q=U.length&&A3(U[U.length-1],["ListItemSecondaryAction"]),B={...r,alignItems:i,dense:k.dense,disableGutters:b,disablePadding:E,divider:C,hasSecondaryAction:q},K=G6(B),Y=rn(V,n),X=v.root||u.Root||K6,j=S.root||l.root||{},W={className:Be(K.root,j.className,s),..._};let ne=o||"li";return q?(ne=!W.component&&!o?"div":ne,c==="li"&&(ne==="li"?ne="div":W.component==="li"&&(W.component="div")),L.jsx(jn.Provider,{value:k,children:L.jsxs(X6,{as:c,className:Be(K.container,d),ref:Y,ownerState:B,...m,children:[L.jsx(X,{...j,...!Ji(X)&&{as:ne,ownerState:{...B,...j.ownerState}},...W,children:U}),U.pop()]})})):L.jsx(jn.Provider,{value:k,children:L.jsxs(X,{...j,as:ne,ref:Y,...!Ji(X)&&{ownerState:{...B,...j.ownerState}},...W,children:[U,T&&L.jsx(Q1,{children:T})]})})}),Z6=e=>{const{alignItems:t,classes:n}=e;return je({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},f3,n)},J6=ue("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(vt(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),eg=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemIcon"}),{className:i,...a}=r,s=O.useContext(jn),o={...r,alignItems:s.alignItems},u=Z6(o);return L.jsx(J6,{className:Be(u.root,i),ownerState:o,ref:n,...a})});function tg(e){return pt("MuiListItemText",e)}const Gr=ut("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ng=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return je({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},tg,t)},rg=ue("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Gr.primary}`]:t.primary},{[`& .${Gr.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${H0.root}:where(& .${Gr.primary})`]:{display:"block"},[`.${H0.root}:where(& .${Gr.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),ig=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:s=!1,inset:o=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:d,slots:m={},slotProps:p={},...b}=r,{dense:E}=O.useContext(jn);let C=u??i,T=c;const S={...r,disableTypography:s,inset:o,primary:!!C,secondary:!!T,dense:E},v=ng(S),_={slots:m,slotProps:{primary:l,secondary:d,...p}},[P,k]=At("root",{className:Be(v.root,a),elementType:rg,externalForwardedProps:{..._,...b},ownerState:S,ref:n}),[V,U]=At("primary",{className:v.primary,elementType:Ve,externalForwardedProps:_,ownerState:S}),[q,B]=At("secondary",{className:v.secondary,elementType:Ve,externalForwardedProps:_,ownerState:S});return C!=null&&C.type!==Ve&&!s&&(C=L.jsx(V,{variant:E?"body2":"body1",component:U?.variant?void 0:"span",...U,children:C})),T!=null&&T.type!==Ve&&!s&&(T=L.jsx(q,{variant:"body2",color:"textSecondary",...B,children:T})),L.jsxs(P,{...k,children:[C,T]})});function ao(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function nc(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Z1(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Ai(e,t,n,r,i,a){let s=!1,o=i(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(s)return!1;s=!0}const u=r?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!Z1(o,a)||u)o=i(e,o,n);else return o.focus(),!0}return!1}const ag=O.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:o,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu",...m}=t,p=O.useRef(null),b=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Lr(()=>{i&&p.current.focus()},[i]),O.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(v,{direction:_})=>{const P=!p.current.style.width;if(v.clientHeight{const _=p.current,P=v.key;if(v.ctrlKey||v.metaKey||v.altKey){c&&c(v);return}const V=Tn(_).activeElement;if(P==="ArrowDown")v.preventDefault(),Ai(_,V,l,u,ao);else if(P==="ArrowUp")v.preventDefault(),Ai(_,V,l,u,nc);else if(P==="Home")v.preventDefault(),Ai(_,null,l,u,ao);else if(P==="End")v.preventDefault(),Ai(_,null,l,u,nc);else if(P.length===1){const U=b.current,q=P.toLowerCase(),B=performance.now();U.keys.length>0&&(B-U.lastTime>500?(U.keys=[],U.repeating=!0,U.previousKeyMatched=!0):U.repeating&&q!==U.keys[0]&&(U.repeating=!1)),U.lastTime=B,U.keys.push(q);const K=V&&!U.repeating&&Z1(V,U);U.previousKeyMatched&&(K||Ai(_,V,!1,u,ao,U))?v.preventDefault():U.previousKeyMatched=!1}c&&c(v)},C=rn(p,n);let T=-1;O.Children.forEach(s,(v,_)=>{if(!O.isValidElement(v)){T===_&&(T+=1,T>=s.length&&(T=-1));return}v.props.disabled||(d==="selectedMenu"&&v.props.selected||T===-1)&&(T=_),T===_&&(v.props.disabled||v.props.muiSkipListHighlight||v.type.muiSkipListHighlight)&&(T+=1,T>=s.length&&(T=-1))});const S=O.Children.map(s,(v,_)=>{if(_===T){const P={};return a&&(P.autoFocus=!0),v.props.tabIndex===void 0&&d==="selectedMenu"&&(P.tabIndex=0),O.cloneElement(v,P)}return v});return L.jsx(X1,{role:"menu",ref:C,className:o,onKeyDown:E,tabIndex:i?0:-1,...m,children:S})});function sg(e){return pt("MuiPopover",e)}ut("MuiPopover",["root","paper"]);function rc(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function ic(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function ac(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function La(e){return typeof e=="function"?e():e}const og=e=>{const{classes:t}=e;return je({root:["root"],paper:["paper"]},sg,t)},ug=ue(W1,{name:"MuiPopover",slot:"Root"})({}),J1=ue(Ms,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),lg=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:o,anchorReference:u="anchorEl",children:l,className:c,container:d,elevation:m=8,marginThreshold:p=16,open:b,PaperProps:E={},slots:C={},slotProps:T={},transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:v,transitionDuration:_="auto",TransitionProps:P={},disableScrollLock:k=!1,...V}=r,U=O.useRef(),q={...r,anchorOrigin:s,anchorReference:u,elevation:m,marginThreshold:p,transformOrigin:S,TransitionComponent:v,transitionDuration:_,TransitionProps:P},B=og(q),K=O.useCallback(()=>{if(u==="anchorPosition")return o;const xe=La(a),ze=(xe&&xe.nodeType===1?xe:Tn(U.current).body).getBoundingClientRect();return{top:ze.top+rc(ze,s.vertical),left:ze.left+ic(ze,s.horizontal)}},[a,s.horizontal,s.vertical,o,u]),Y=O.useCallback(xe=>({vertical:rc(xe,S.vertical),horizontal:ic(xe,S.horizontal)}),[S.horizontal,S.vertical]),X=O.useCallback(xe=>{const Pe={width:xe.offsetWidth,height:xe.offsetHeight},ze=Y(Pe);if(u==="none")return{top:null,left:null,transformOrigin:ac(ze)};const dt=K();let Oe=dt.top-ze.vertical,Xe=dt.left-ze.horizontal;const Pt=Oe+Pe.height,Ot=Xe+Pe.width,wt=Wn(La(a)),Vt=wt.innerHeight-p,Qt=wt.innerWidth-p;if(p!==null&&OeVt){const kt=Pt-Vt;Oe-=kt,ze.vertical+=kt}if(p!==null&&XeQt){const kt=Ot-Qt;Xe-=kt,ze.horizontal+=kt}return{top:`${Math.round(Oe)}px`,left:`${Math.round(Xe)}px`,transformOrigin:ac(ze)}},[a,u,K,Y,p]),[j,W]=O.useState(b),ne=O.useCallback(()=>{const xe=U.current;if(!xe)return;const Pe=X(xe);Pe.top!==null&&xe.style.setProperty("top",Pe.top),Pe.left!==null&&(xe.style.left=Pe.left),xe.style.transformOrigin=Pe.transformOrigin,W(!0)},[X]);O.useEffect(()=>(k&&window.addEventListener("scroll",ne),()=>window.removeEventListener("scroll",ne)),[a,k,ne]);const le=()=>{ne()},fe=()=>{W(!1)};O.useEffect(()=>{b&&ne()}),O.useImperativeHandle(i,()=>b?{updatePosition:()=>{ne()}}:null,[b,ne]),O.useEffect(()=>{if(!b)return;const xe=z1(()=>{ne()}),Pe=Wn(La(a));return Pe.addEventListener("resize",xe),()=>{xe.clear(),Pe.removeEventListener("resize",xe)}},[a,b,ne]);let oe=_;const I={slots:{transition:v,...C},slotProps:{transition:P,paper:E,...T}},[De,Ae]=At("transition",{elementType:lu,externalForwardedProps:I,ownerState:q,getSlotProps:xe=>({...xe,onEntering:(Pe,ze)=>{xe.onEntering?.(Pe,ze),le()},onExited:Pe=>{xe.onExited?.(Pe),fe()}}),additionalProps:{appear:!0,in:b}});_==="auto"&&!De.muiSupportAuto&&(oe=void 0);const D=d||(a?Tn(La(a)).body:void 0),[_e,{slots:Ue,slotProps:He,...qe}]=At("root",{ref:n,elementType:ug,externalForwardedProps:{...I,...V},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:C.backdrop},slotProps:{backdrop:I3(typeof T.backdrop=="function"?T.backdrop(q):T.backdrop,{invisible:!0})},container:D,open:b},ownerState:q,className:Be(B.root,c)}),[$e,We]=At("paper",{ref:U,className:B.paper,elementType:J1,externalForwardedProps:I,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:j?void 0:{opacity:0}},ownerState:q});return L.jsx(_e,{...qe,...!Ji(_e)&&{slots:Ue,slotProps:He,disableScrollLock:k},children:L.jsx(De,{...Ae,timeout:oe,children:L.jsx($e,{...We,children:l})})})});function cg(e){return pt("MuiMenu",e)}ut("MuiMenu",["root","paper","list"]);const dg={vertical:"top",horizontal:"right"},hg={vertical:"top",horizontal:"left"},fg=e=>{const{classes:t}=e;return je({root:["root"],paper:["paper"],list:["list"]},cg,t)},mg=ue(lg,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),pg=ue(J1,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),gg=ue(ag,{name:"MuiMenu",slot:"List"})({outline:0}),bg=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:o=!1,MenuListProps:u={},onClose:l,open:c,PaperProps:d={},PopoverClasses:m,transitionDuration:p="auto",TransitionProps:{onEntering:b,...E}={},variant:C="selectedMenu",slots:T={},slotProps:S={},...v}=r,_=m3(),P={...r,autoFocus:i,disableAutoFocusItem:o,MenuListProps:u,onEntering:b,PaperProps:d,transitionDuration:p,TransitionProps:E,variant:C},k=fg(P),V=i&&!o&&c,U=O.useRef(null),q=(oe,I)=>{U.current&&U.current.adjustStyleForScrollbar(oe,{direction:_?"rtl":"ltr"}),b&&b(oe,I)},B=oe=>{oe.key==="Tab"&&(oe.preventDefault(),l&&l(oe,"tabKeyDown"))};let K=-1;O.Children.map(a,(oe,I)=>{O.isValidElement(oe)&&(oe.props.disabled||(C==="selectedMenu"&&oe.props.selected||K===-1)&&(K=I))});const Y={slots:T,slotProps:{list:u,transition:E,paper:d,...S}},X=M3({elementType:T.root,externalSlotProps:S.root,ownerState:P,className:[k.root,s]}),[j,W]=At("paper",{className:k.paper,elementType:pg,externalForwardedProps:Y,shouldForwardComponentProp:!0,ownerState:P}),[ne,le]=At("list",{className:Be(k.list,u.className),elementType:gg,shouldForwardComponentProp:!0,externalForwardedProps:Y,getSlotProps:oe=>({...oe,onKeyDown:I=>{B(I),oe.onKeyDown?.(I)}}),ownerState:P}),fe=typeof Y.slotProps.transition=="function"?Y.slotProps.transition(P):Y.slotProps.transition;return L.jsx(mg,{onClose:l,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?dg:hg,slots:{root:T.root,paper:j,backdrop:T.backdrop,...T.transition&&{transition:T.transition}},slotProps:{root:X,paper:W,backdrop:typeof S.backdrop=="function"?S.backdrop(P):S.backdrop,transition:{...fe,onEntering:(...oe)=>{q(...oe),fe?.onEntering?.(...oe)}}},open:c,ref:n,transitionDuration:p,ownerState:P,...v,classes:m,children:L.jsx(ne,{actions:U,autoFocus:i&&(K===-1||o),autoFocusItem:V,variant:C,...le,children:a})})});function yg(e){return pt("MuiMenuItem",e)}const Ci=ut("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Tg=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Eg=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,u=je({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},yg,s);return{...s,...u}},xg=ue(p3,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Tg})(vt(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ci.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ci.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Ci.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Ci.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ci.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${U0.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${U0.inset}`]:{marginLeft:52},[`& .${Gr.root}`]:{marginTop:0,marginBottom:0},[`& .${Gr.inset}`]:{paddingLeft:36},[`& .${z0.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${z0.root} svg`]:{fontSize:"1.25rem"}}}]}))),vg=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:o=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:m,...p}=r,b=O.useContext(jn),E=O.useMemo(()=>({dense:s||b.dense||!1,disableGutters:u}),[b.dense,s,u]),C=O.useRef(null);Lr(()=>{i&&C.current&&C.current.focus()},[i]);const T={...r,dense:E.dense,divider:o,disableGutters:u},S=Eg(r),v=rn(C,n);let _;return r.disabled||(_=d!==void 0?d:-1),L.jsx(jn.Provider,{value:E,children:L.jsx(xg,{ref:v,role:c,tabIndex:_,component:a,focusVisibleClassName:Be(S.focusVisible,l),className:Be(S.root,m),...p,ownerState:T,classes:S})})});function Sg(e){return pt("MuiNativeSelect",e)}const hl=ut("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ag=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Tt(n)}`,a&&"iconOpen",r&&"disabled"]};return je(o,Sg,t)},ef=ue("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${hl.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Cg=ue(ef,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Dn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${hl.multiple}`]:t.multiple}]}})({}),tf=ue("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${hl.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),wg=ue(tf,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Tt(n.variant)}`],n.open&&t.iconOpen]}})({}),kg=O.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:s,inputRef:o,variant:u="standard",...l}=t,c={...t,disabled:i,variant:u,error:a},d=Ag(c);return L.jsxs(O.Fragment,{children:[L.jsx(Cg,{ownerState:c,className:Be(d.select,r),disabled:i,ref:o||n,...l}),t.multiple?null:L.jsx(wg,{as:s,ownerState:c,className:d.icon})]})});var sc;const Ig=ue("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Dn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Ng=ue("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Dn})(vt(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Mg(e){const{children:t,classes:n,className:r,label:i,notched:a,...s}=e,o=i!=null&&i!=="",u={...e,notched:a,withLabel:o};return L.jsx(Ig,{"aria-hidden":!0,className:r,ownerState:u,...s,children:L.jsx(Ng,{ownerState:u,children:o?L.jsx("span",{children:i}):sc||(sc=L.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const Rg=e=>{const{classes:t}=e,r=je({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},g3,t);return{...t,...r}},Dg=ue(_s,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Rs})(vt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${vn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${vn.focused} .${vn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(ol()).map(([n])=>({props:{color:n},style:{[`&.${vn.focused} .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${vn.error} .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${vn.disabled} .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),_g=ue(Mg,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(vt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),Lg=ue(Ls,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ds})(vt(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),nf=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:o,multiline:u=!1,notched:l,slots:c={},slotProps:d={},type:m="text",...p}=r,b=Rg(r),E=cl(),C=ll({props:r,muiFormControl:E,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T={...r,color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:E,fullWidth:a,hiddenLabel:C.hiddenLabel,multiline:u,size:C.size,type:m},S=c.root??i.Root??Dg,v=c.input??i.Input??Lg,[_,P]=At("notchedOutline",{elementType:_g,className:b.notchedOutline,shouldForwardComponentProp:!0,ownerState:T,externalForwardedProps:{slots:c,slotProps:d},additionalProps:{label:o!=null&&o!==""&&C.required?L.jsxs(O.Fragment,{children:[o," ","*"]}):o}});return L.jsx(dl,{slots:{root:S,input:v},slotProps:d,renderSuffix:k=>L.jsx(_,{...P,notched:typeof l<"u"?l:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:a,inputComponent:s,multiline:u,ref:n,type:m,...p,classes:{...b,notchedOutline:null}})});nf.muiName="Input";function rf(e){return pt("MuiSelect",e)}const wi=ut("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var oc;const Pg=ue(ef,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${wi.select}`]:t.select},{[`&.${wi.select}`]:t[n.variant]},{[`&.${wi.error}`]:t.error},{[`&.${wi.multiple}`]:t.multiple}]}})({[`&.${wi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Og=ue(tf,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Tt(n.variant)}`],n.open&&t.iconOpen]}})({}),Bg=ue("input",{shouldForwardProp:e=>b3(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function uc(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Fg(e){return e==null||typeof e=="string"&&!e.trim()}const Hg=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Tt(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return je(o,rf,t)},zg=O.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:a,autoWidth:s,children:o,className:u,defaultOpen:l,defaultValue:c,disabled:d,displayEmpty:m,error:p=!1,IconComponent:b,inputRef:E,labelId:C,MenuProps:T={},multiple:S,name:v,onBlur:_,onChange:P,onClose:k,onFocus:V,onOpen:U,open:q,readOnly:B,renderValue:K,required:Y,SelectDisplayProps:X={},tabIndex:j,type:W,value:ne,variant:le="standard",...fe}=t,[oe,I]=Y0({controlled:ne,default:c,name:"Select"}),[De,Ae]=Y0({controlled:q,default:l,name:"Select"}),D=O.useRef(null),_e=O.useRef(null),[Ue,He]=O.useState(null),{current:qe}=O.useRef(q!=null),[$e,We]=O.useState(),xe=rn(n,E),Pe=O.useCallback(me=>{_e.current=me,me&&He(me)},[]),ze=Ue?.parentNode;O.useImperativeHandle(xe,()=>({focus:()=>{_e.current.focus()},node:D.current,value:oe}),[oe]),O.useEffect(()=>{l&&De&&Ue&&!qe&&(We(s?null:ze.clientWidth),_e.current.focus())},[Ue,s]),O.useEffect(()=>{a&&_e.current.focus()},[a]),O.useEffect(()=>{if(!C)return;const me=Tn(_e.current).getElementById(C);if(me){const ke=()=>{getSelection().isCollapsed&&_e.current.focus()};return me.addEventListener("click",ke),()=>{me.removeEventListener("click",ke)}}},[C]);const dt=(me,ke)=>{me?U&&U(ke):k&&k(ke),qe||(We(s?null:ze.clientWidth),Ae(me))},Oe=me=>{me.button===0&&(me.preventDefault(),_e.current.focus(),dt(!0,me))},Xe=me=>{dt(!1,me)},Pt=O.Children.toArray(o),Ot=me=>{const ke=Pt.find(tt=>tt.props.value===me.target.value);ke!==void 0&&(I(ke.props.value),P&&P(me,ke))},wt=me=>ke=>{let tt;if(ke.currentTarget.hasAttribute("tabindex")){if(S){tt=Array.isArray(oe)?oe.slice():[];const Mt=oe.indexOf(me.props.value);Mt===-1?tt.push(me.props.value):tt.splice(Mt,1)}else tt=me.props.value;if(me.props.onClick&&me.props.onClick(ke),oe!==tt&&(I(tt),P)){const Mt=ke.nativeEvent||ke,F0=new Mt.constructor(Mt.type,Mt);Object.defineProperty(F0,"target",{writable:!0,value:{value:tt,name:v}}),P(F0,me)}S||dt(!1,ke)}},Vt=me=>{B||[" ","ArrowUp","ArrowDown","Enter"].includes(me.key)&&(me.preventDefault(),dt(!0,me))},Qt=Ue!==null&&De,kt=me=>{!Qt&&_&&(Object.defineProperty(me,"target",{writable:!0,value:{value:oe,name:v}}),_(me))};delete fe["aria-invalid"];let xn,er;const Nt=[];let tr=!1;(j1({value:oe})||m)&&(K?xn=K(oe):tr=!0);const G=Pt.map(me=>{if(!O.isValidElement(me))return null;let ke;if(S){if(!Array.isArray(oe))throw new Error(_1(2));ke=oe.some(tt=>uc(tt,me.props.value)),ke&&tr&&Nt.push(me.props.children)}else ke=uc(oe,me.props.value),ke&&tr&&(er=me.props.children);return O.cloneElement(me,{"aria-selected":ke?"true":"false",onClick:wt(me),onKeyUp:tt=>{tt.key===" "&&tt.preventDefault(),me.props.onKeyUp&&me.props.onKeyUp(tt)},role:"option",selected:ke,value:void 0,"data-value":me.props.value})});tr&&(S?Nt.length===0?xn=null:xn=Nt.reduce((me,ke,tt)=>(me.push(ke),tt{const{classes:t}=e,r=je({root:["root"]},rf,t);return{...t,...r}},fl={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Dn(e)&&e!=="variant"},Vg=ue(K1,fl)(""),jg=ue(nf,fl)(""),qg=ue(G1,fl)(""),af=O.forwardRef(function(t,n){const r=Ke({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:s={},className:o,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=H3,id:d,input:m,inputProps:p,label:b,labelId:E,MenuProps:C,multiple:T=!1,native:S=!1,onClose:v,onOpen:_,open:P,renderValue:k,SelectDisplayProps:V,variant:U="outlined",...q}=r,B=S?kg:zg,K=cl(),Y=ll({props:r,muiFormControl:K,states:["variant","error"]}),X=Y.variant||U,j={...r,variant:X,classes:s},W=Ug(j),{root:ne,...le}=W,fe=m||{standard:L.jsx(Vg,{ownerState:j}),outlined:L.jsx(jg,{label:b,ownerState:j}),filled:L.jsx(qg,{ownerState:j})}[X],oe=rn(n,ma(fe));return L.jsx(O.Fragment,{children:O.cloneElement(fe,{inputComponent:B,inputProps:{children:a,error:Y.error,IconComponent:c,variant:X,type:void 0,multiple:T,...S?{id:d}:{autoWidth:i,defaultOpen:u,displayEmpty:l,labelId:E,MenuProps:C,onClose:v,onOpen:_,open:P,renderValue:k,SelectDisplayProps:{id:d,...V}},...p,classes:p?sl(le,p.classes):le,...m?m.props.inputProps:{}},...(T&&S||l)&&X==="outlined"?{notched:!0}:{},ref:oe,className:Be(fe.props.className,o,W.root),...!m&&{variant:X},...q})})});af.muiName="Select";function $g(e){return pt("MuiSkeleton",e)}ut("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Wg=e=>{const{classes:t,variant:n,animation:r,hasChildren:i,width:a,height:s}=e;return je({root:["root",n,r,i&&"withChildren",i&&!a&&"fitContent",i&&!s&&"heightAuto"]},$g,t)},cu=O1` +import{x as W4,y as Y4,r as O,z as G4,C as K4,j as D,c as Be,_ as X4,R as Ma,D as Q4,E as Ra,F as D1,G as Z4,H as J4,I as rn,J as e3,K as Lr,M as t3,N as au,s as ue,u as Ke,O as n3,P as Ji,m as vt,Q as ea,b as Tt,d as je,U as r3,V as _1,f as ut,h as pt,W as i3,X as Ns,v as At,Y as a3,Z as s3,$ as o3,a0 as u3,a1 as Ms,q as L1,a2 as l3,a3 as c3,T as Ve,p as Dn,a4 as d3,a5 as sl,e as ol,a6 as h3,a7 as f3,a8 as H0,a9 as m3,B as p3,aa as z0,ab as U0,ac as g3,ad as vn,ae as b3,af as P1,ag as O1,ah as y3,ai as T3,aj as E3,ak as V0,o as _n,al as x3,am as j0,an as v3,ao as q0,ap as Ja,aq as ul,ar as B1,n as ls,i as fa,S as Je,l as cs,as as F1,w as H1}from"./index-Bht8DC43.js";function S3(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,a=W4("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(Y4);return O.forwardRef(function(u,l){const c=G4(n),{className:d,component:m="div",...p}=K4(u);return D.jsx(a,{as:m,ref:l,className:Be(d,i?i(r):r),theme:t&&c[t]||c,...p})})}function A3(e,t){return O.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function C3(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function w3(e){return parseFloat(e)}function $0(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function z1(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Tn(e){return e&&e.ownerDocument||document}function Wn(e){return Tn(e).defaultView||window}function W0(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Y0(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:a}=O.useRef(t!==void 0),[s,o]=O.useState(n),u=a?t:s,l=O.useCallback(c=>{a||o(c)},[]);return[u,l]}function k3(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function I3(e,t){if(!e)return t;function n(s,o){const u={};return Object.keys(o).forEach(l=>{k3(l,o[l])&&typeof s[l]=="function"&&(u[l]=(...c)=>{s[l](...c),o[l](...c)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const o=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...o}):e,l=Be(s?.className,o?.className,u?.className),c=n(u,o);return{...o,...u,...c,...!!l&&{className:l},...o?.style&&u?.style&&{style:{...o.style,...u.style}},...o?.sx&&u?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,i=n(e,r),a=Be(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const G0={disabled:!1};var N3=function(t){return t.scrollTop},Li="unmounted",wr="exited",kr="entering",Wr="entered",su="exiting",Ln=(function(e){X4(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?o?(u=wr,a.appearStatus=kr):u=Wr:r.unmountOnExit||r.mountOnEnter?u=Li:u=wr,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===Li?{status:wr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==kr&&s!==Wr&&(a=kr):(s===kr||s===Wr)&&(a=su)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===kr){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ma.findDOMNode(this);s&&N3(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===wr&&this.setState({status:Li})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,u=this.props.nodeRef?[o]:[Ma.findDOMNode(this),o],l=u[0],c=u[1],d=this.getTimeouts(),m=o?d.appear:d.enter;if(!i&&!s||G0.disabled){this.safeSetState({status:Wr},function(){a.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:kr},function(){a.props.onEntering(l,c),a.onTransitionEnd(m,function(){a.safeSetState({status:Wr},function(){a.props.onEntered(l,c)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:Ma.findDOMNode(this);if(!a||G0.disabled){this.safeSetState({status:wr},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:su},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:wr},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:Ma.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Li)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=Q4(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ra.createElement(D1.Provider,{value:null},typeof s=="function"?s(i,o):Ra.cloneElement(Ra.Children.only(s),o))},t})(Ra.Component);Ln.contextType=D1;Ln.propTypes={};function Vr(){}Ln.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vr,onEntering:Vr,onEntered:Vr,onExit:Vr,onExiting:Vr,onExited:Vr};Ln.UNMOUNTED=Li;Ln.EXITED=wr;Ln.ENTERING=kr;Ln.ENTERED=Wr;Ln.EXITING=su;const U1=e=>e.scrollTop;function ds(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function M3(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,s=i?{}:Z4(n,r),{props:o,internalRef:u}=J4({...a,externalSlotProps:s}),l=rn(u,s?.ref,e.additionalProps?.ref);return e3(t,{...o,ref:l},r)}function ma(e){return parseInt(O.version,10)>=19?e?.props?.ref||null:e?.ref||null}function R3(e){return typeof e=="function"?e():e}const D3=O.forwardRef(function(t,n){const{children:r,container:i,disablePortal:a=!1}=t,[s,o]=O.useState(null),u=rn(O.isValidElement(r)?ma(r):null,n);if(Lr(()=>{a||o(R3(i)||document.body)},[i,a]),Lr(()=>{if(s&&!a)return W0(n,s),()=>{W0(n,null)}},[n,s,a]),a){if(O.isValidElement(r)){const l={ref:u};return O.cloneElement(r,l)}return r}return s&&t3.createPortal(r,s)});function Da(e){return parseInt(e,10)||0}const _3={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function L3(e){for(const t in e)return!1;return!0}function K0(e){return L3(e)||e.outerHeightStyle===0&&!e.overflowing}const P3=O.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:o,...u}=t,{current:l}=O.useRef(o!=null),c=O.useRef(null),d=rn(n,c),m=O.useRef(null),p=O.useRef(null),b=O.useCallback(()=>{const v=c.current,L=p.current;if(!v||!L)return;const k=Wn(v).getComputedStyle(v);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};L.style.width=k.width,L.value=v.value||t.placeholder||"x",L.value.slice(-1)===` +`&&(L.value+=" ");const V=k.boxSizing,U=Da(k.paddingBottom)+Da(k.paddingTop),q=Da(k.borderBottomWidth)+Da(k.borderTopWidth),B=L.scrollHeight;L.value="x";const K=L.scrollHeight;let Y=B;a&&(Y=Math.max(Number(a)*K,Y)),i&&(Y=Math.min(Number(i)*K,Y)),Y=Math.max(Y,K);const X=Y+(V==="border-box"?U+q:0),j=Math.abs(Y-B)<=1;return{outerHeightStyle:X,overflowing:j}},[i,a,t.placeholder]),E=au(()=>{const v=c.current,L=b();if(!v||!L||K0(L))return!1;const P=L.outerHeightStyle;return m.current!=null&&m.current!==P}),C=O.useCallback(()=>{const v=c.current,L=b();if(!v||!L||K0(L))return;const P=L.outerHeightStyle;m.current!==P&&(m.current=P,v.style.height=`${P}px`),v.style.overflow=L.overflowing?"hidden":""},[b]),T=O.useRef(-1);Lr(()=>{const v=z1(C),L=c?.current;if(!L)return;const P=Wn(L);P.addEventListener("resize",v);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(()=>{E()&&(k.unobserve(L),cancelAnimationFrame(T.current),C(),T.current=requestAnimationFrame(()=>{k.observe(L)}))}),k.observe(L)),()=>{v.clear(),cancelAnimationFrame(T.current),P.removeEventListener("resize",v),k&&k.disconnect()}},[b,C,E]),Lr(()=>{C()});const S=v=>{l||C();const L=v.target,P=L.value.length,k=L.value.endsWith(` +`),V=L.selectionStart===P;k&&V&&L.setSelectionRange(P,P),r&&r(v)};return D.jsxs(O.Fragment,{children:[D.jsx("textarea",{value:o,onChange:S,ref:d,rows:a,style:s,...u}),D.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:{..._3.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function ll({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const V1=O.createContext(void 0);function cl(){return O.useContext(V1)}function X0(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function j1(e,t=!1){return e&&(X0(e.value)&&e.value!==""||t&&X0(e.defaultValue)&&e.defaultValue!=="")}function DR(e){return e.startAdornment}var Q0;const Rs=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Tt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ds=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},O3=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:o,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:d,size:m,startAdornment:p,type:b}=e,E={root:["root",`color${Tt(n)}`,r&&"disabled",i&&"error",u&&"fullWidth",s&&"focused",o&&"formControl",m&&m!=="medium"&&`size${Tt(m)}`,c&&"multiline",p&&"adornedStart",a&&"adornedEnd",l&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",c&&"inputMultiline",m==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return je(E,r3,t)},_s=ue("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Rs})(vt(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ea.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Ls=ue("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ds})(vt(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ea.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${ea.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Z0=n3({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),dl=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:o,color:u,components:l={},componentsProps:c={},defaultValue:d,disabled:m,disableInjectingGlobalStyles:p,endAdornment:b,error:E,fullWidth:C=!1,id:T,inputComponent:S="input",inputProps:v={},inputRef:L,margin:P,maxRows:k,minRows:V,multiline:U=!1,name:q,onBlur:B,onChange:K,onClick:Y,onFocus:X,onKeyDown:j,onKeyUp:W,placeholder:ne,readOnly:le,renderSuffix:fe,rows:oe,size:I,slotProps:De={},slots:Ae={},startAdornment:_,type:_e="text",value:Ue,...He}=r,qe=v.value!=null?v.value:Ue,{current:$e}=O.useRef(qe!=null),We=O.useRef(),xe=O.useCallback(Le=>{},[]),Pe=rn(We,L,v.ref,xe),[ze,dt]=O.useState(!1),Oe=cl(),Xe=ll({props:r,muiFormControl:Oe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Xe.focused=Oe?Oe.focused:ze,O.useEffect(()=>{!Oe&&m&&ze&&(dt(!1),B&&B())},[Oe,m,ze,B]);const Pt=Oe&&Oe.onFilled,Ot=Oe&&Oe.onEmpty,wt=O.useCallback(Le=>{j1(Le)?Pt&&Pt():Ot&&Ot()},[Pt,Ot]);Lr(()=>{$e&&wt({value:qe})},[qe,wt,$e]);const Vt=Le=>{X&&X(Le),v.onFocus&&v.onFocus(Le),Oe&&Oe.onFocus?Oe.onFocus(Le):dt(!0)},Qt=Le=>{B&&B(Le),v.onBlur&&v.onBlur(Le),Oe&&Oe.onBlur?Oe.onBlur(Le):dt(!1)},kt=(Le,...jt)=>{if(!$e){const qt=Le.target||We.current;if(qt==null)throw new Error(_1(1));wt({value:qt.value})}v.onChange&&v.onChange(Le,...jt),K&&K(Le,...jt)};O.useEffect(()=>{wt(We.current)},[]);const xn=Le=>{We.current&&Le.currentTarget===Le.target&&We.current.focus(),Y&&Y(Le)};let er=S,Nt=v;U&&er==="input"&&(oe?Nt={type:void 0,minRows:oe,maxRows:oe,...Nt}:Nt={type:void 0,maxRows:k,minRows:V,...Nt},er=P3);const tr=Le=>{wt(Le.animationName==="mui-auto-fill-cancel"?We.current:{value:"x"})};O.useEffect(()=>{Oe&&Oe.setAdornedStart(!!_)},[Oe,_]);const G={...r,color:Xe.color||"primary",disabled:Xe.disabled,endAdornment:b,error:Xe.error,focused:Xe.focused,formControl:Oe,fullWidth:C,hiddenLabel:Xe.hiddenLabel,multiline:U,size:Xe.size,startAdornment:_,type:_e},ae=O3(G),ye=Ae.root||l.Root||_s,ve=De.root||c.root||{},Me=Ae.input||l.Input||Ls;return Nt={...Nt,...De.input??c.input},D.jsxs(O.Fragment,{children:[!p&&typeof Z0=="function"&&(Q0||(Q0=D.jsx(Z0,{}))),D.jsxs(ye,{...ve,ref:n,onClick:xn,...He,...!Ji(ye)&&{ownerState:{...G,...ve.ownerState}},className:Be(ae.root,ve.className,o,le&&"MuiInputBase-readOnly"),children:[_,D.jsx(V1.Provider,{value:null,children:D.jsx(Me,{"aria-invalid":Xe.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:d,disabled:Xe.disabled,id:T,onAnimationStart:tr,name:q,placeholder:ne,readOnly:le,required:Xe.required,rows:oe,value:qe,onKeyDown:j,onKeyUp:W,type:_e,...Nt,...!Ji(Me)&&{as:er,ownerState:{...G,...Nt.ownerState}},ref:Pe,className:Be(ae.input,Nt.className,le&&"MuiInputBase-readOnly"),onBlur:Qt,onChange:kt,onFocus:Vt})}),b,fe?fe({...Xe,startAdornment:_}):null]})]})});function B3(e){return pt("MuiInput",e)}const Si={...ea,...ut("MuiInput",["root","underline","input"])};function F3(e){return pt("MuiFilledInput",e)}const Er={...ea,...ut("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},H3=i3(D.jsx("path",{d:"M7 10l5 5 5-5z"})),z3={entering:{opacity:1},entered:{opacity:1}},ou=O.forwardRef(function(t,n){const r=Ns(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:o,easing:u,in:l,onEnter:c,onEntered:d,onEntering:m,onExit:p,onExited:b,onExiting:E,style:C,timeout:T=i,TransitionComponent:S=Ln,...v}=t,L=O.useRef(null),P=rn(L,ma(o),n),k=j=>W=>{if(j){const ne=L.current;W===void 0?j(ne):j(ne,W)}},V=k(m),U=k((j,W)=>{U1(j);const ne=ds({style:C,timeout:T,easing:u},{mode:"enter"});j.style.webkitTransition=r.transitions.create("opacity",ne),j.style.transition=r.transitions.create("opacity",ne),c&&c(j,W)}),q=k(d),B=k(E),K=k(j=>{const W=ds({style:C,timeout:T,easing:u},{mode:"exit"});j.style.webkitTransition=r.transitions.create("opacity",W),j.style.transition=r.transitions.create("opacity",W),p&&p(j)}),Y=k(b),X=j=>{a&&a(L.current,j)};return D.jsx(S,{appear:s,in:l,nodeRef:L,onEnter:U,onEntered:q,onEntering:V,onExit:K,onExited:Y,onExiting:B,addEndListener:X,timeout:T,...v,children:(j,{ownerState:W,...ne})=>O.cloneElement(o,{style:{opacity:0,visibility:j==="exited"&&!l?"hidden":void 0,...z3[j],...C,...o.props.style},ref:P,...ne})})});function U3(e){return pt("MuiBackdrop",e)}ut("MuiBackdrop",["root","invisible"]);const V3=e=>{const{classes:t,invisible:n}=e;return je({root:["root",n&&"invisible"]},U3,t)},j3=ue("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),q1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:s="div",invisible:o=!1,open:u,components:l={},componentsProps:c={},slotProps:d={},slots:m={},TransitionComponent:p,transitionDuration:b,...E}=r,C={...r,component:s,invisible:o},T=V3(C),S={transition:p,root:l.Root,...m},v={...c,...d},L={component:s,slots:S,slotProps:v},[P,k]=At("root",{elementType:j3,externalForwardedProps:L,className:Be(T.root,a),ownerState:C}),[V,U]=At("transition",{elementType:ou,externalForwardedProps:L,ownerState:C});return D.jsx(V,{in:u,timeout:b,...E,...U,children:D.jsx(P,{"aria-hidden":!0,...k,classes:T,ref:n,children:i})})}),q3=ut("MuiBox",["root"]),$3=o3(),ci=S3({themeId:s3,defaultTheme:$3,defaultClassName:q3.root,generateClassName:a3.generate});function $1(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function W3(e){const t=Tn(e);return t.body===e?Wn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Fi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function J0(e){return parseInt(Wn(e).getComputedStyle(e).paddingRight,10)||0}function Y3(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function ec(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,s=>{const o=!a.includes(s),u=!Y3(s);o&&u&&Fi(s,i)})}function no(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function G3(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(W3(r)){const s=$1(Wn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${J0(r)+s}px`;const o=Tn(r).querySelectorAll(".mui-fixed");[].forEach.call(o,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${J0(u)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Tn(r).body;else{const s=r.parentElement,o=Wn(r);a=s?.nodeName==="HTML"&&o.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:o})=>{a?s.style.setProperty(o,a):s.style.removeProperty(o)})}}function K3(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class X3{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Fi(t.modalRef,!1);const i=K3(n);ec(n,t.mount,t.modalRef,i,!0);const a=no(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=no(this.containers,a=>a.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=G3(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=no(this.containers,s=>s.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Fi(t.modalRef,n),ec(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&Fi(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Q3=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Z3(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function J3(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function e6(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||J3(e))}function t6(e){const t=[],n=[];return Array.from(e.querySelectorAll(Q3)).forEach((r,i)=>{const a=Z3(r);a===-1||!e6(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function n6(){return!0}function r6(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=t6,isEnabled:s=n6,open:o}=e,u=O.useRef(!1),l=O.useRef(null),c=O.useRef(null),d=O.useRef(null),m=O.useRef(null),p=O.useRef(!1),b=O.useRef(null),E=rn(ma(t),b),C=O.useRef(null);O.useEffect(()=>{!o||!b.current||(p.current=!n)},[n,o]),O.useEffect(()=>{if(!o||!b.current)return;const v=Tn(b.current);return b.current.contains(v.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),p.current&&b.current.focus()),()=>{i||(d.current&&d.current.focus&&(u.current=!0,d.current.focus()),d.current=null)}},[o]),O.useEffect(()=>{if(!o||!b.current)return;const v=Tn(b.current),L=V=>{C.current=V,!(r||!s()||V.key!=="Tab")&&v.activeElement===b.current&&V.shiftKey&&(u.current=!0,c.current&&c.current.focus())},P=()=>{const V=b.current;if(V===null)return;if(!v.hasFocus()||!s()||u.current){u.current=!1;return}if(V.contains(v.activeElement)||r&&v.activeElement!==l.current&&v.activeElement!==c.current)return;if(v.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!p.current)return;let U=[];if((v.activeElement===l.current||v.activeElement===c.current)&&(U=a(b.current)),U.length>0){const q=!!(C.current?.shiftKey&&C.current?.key==="Tab"),B=U[0],K=U[U.length-1];typeof B!="string"&&typeof K!="string"&&(q?K.focus():B.focus())}else V.focus()};v.addEventListener("focusin",P),v.addEventListener("keydown",L,!0);const k=setInterval(()=>{v.activeElement&&v.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(k),v.removeEventListener("focusin",P),v.removeEventListener("keydown",L,!0)}},[n,r,i,s,o,a]);const T=v=>{d.current===null&&(d.current=v.relatedTarget),p.current=!0,m.current=v.target;const L=t.props.onFocus;L&&L(v)},S=v=>{d.current===null&&(d.current=v.relatedTarget),p.current=!0};return D.jsxs(O.Fragment,{children:[D.jsx("div",{tabIndex:o?0:-1,onFocus:S,ref:l,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:E,onFocus:T}),D.jsx("div",{tabIndex:o?0:-1,onFocus:S,ref:c,"data-testid":"sentinelEnd"})]})}function i6(e){return typeof e=="function"?e():e}function a6(e){return e?e.props.hasOwnProperty("in"):!1}const tc=()=>{},_a=new X3;function s6(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:o,onClose:u,open:l,rootRef:c}=e,d=O.useRef({}),m=O.useRef(null),p=O.useRef(null),b=rn(p,c),[E,C]=O.useState(!l),T=a6(o);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const v=()=>Tn(m.current),L=()=>(d.current.modalRef=p.current,d.current.mount=m.current,d.current),P=()=>{_a.mount(L(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},k=au(()=>{const W=i6(t)||v().body;_a.add(L(),W),p.current&&P()}),V=()=>_a.isTopModal(L()),U=au(W=>{m.current=W,W&&(l&&V()?P():p.current&&Fi(p.current,S))}),q=O.useCallback(()=>{_a.remove(L(),S)},[S]);O.useEffect(()=>()=>{q()},[q]),O.useEffect(()=>{l?k():(!T||!i)&&q()},[l,q,T,i,k]);const B=W=>ne=>{W.onKeyDown?.(ne),!(ne.key!=="Escape"||ne.which===229||!V())&&(n||(ne.stopPropagation(),u&&u(ne,"escapeKeyDown")))},K=W=>ne=>{W.onClick?.(ne),ne.target===ne.currentTarget&&u&&u(ne,"backdropClick")};return{getRootProps:(W={})=>{const ne=u3(e);delete ne.onTransitionEnter,delete ne.onTransitionExited;const le={...ne,...W};return{role:"presentation",...le,onKeyDown:B(le),ref:b}},getBackdropProps:(W={})=>{const ne=W;return{"aria-hidden":!0,...ne,onClick:K(ne),open:l}},getTransitionProps:()=>{const W=()=>{C(!1),a&&a()},ne=()=>{C(!0),s&&s(),i&&q()};return{onEnter:$0(W,o?.props.onEnter??tc),onExited:$0(ne,o?.props.onExited??tc)}},rootRef:b,portalRef:U,isTopModal:V,exited:E,hasTransition:T}}function o6(e){return pt("MuiModal",e)}ut("MuiModal",["root","hidden","backdrop"]);const u6=e=>{const{open:t,exited:n,classes:r}=e;return je({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},o6,r)},l6=ue("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(vt(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),c6=ue(q1,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),W1=O.forwardRef(function(t,n){const r=Ke({name:"MuiModal",props:t}),{BackdropComponent:i=c6,BackdropProps:a,classes:s,className:o,closeAfterTransition:u=!1,children:l,container:c,component:d,components:m={},componentsProps:p={},disableAutoFocus:b=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:C=!1,disablePortal:T=!1,disableRestoreFocus:S=!1,disableScrollLock:v=!1,hideBackdrop:L=!1,keepMounted:P=!1,onClose:k,onTransitionEnter:V,onTransitionExited:U,open:q,slotProps:B={},slots:K={},theme:Y,...X}=r,j={...r,closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:E,disableEscapeKeyDown:C,disablePortal:T,disableRestoreFocus:S,disableScrollLock:v,hideBackdrop:L,keepMounted:P},{getRootProps:W,getBackdropProps:ne,getTransitionProps:le,portalRef:fe,isTopModal:oe,exited:I,hasTransition:De}=s6({...j,rootRef:n}),Ae={...j,exited:I},_=u6(Ae),_e={};if(l.props.tabIndex===void 0&&(_e.tabIndex="-1"),De){const{onEnter:xe,onExited:Pe}=le();_e.onEnter=xe,_e.onExited=Pe}const Ue={slots:{root:m.Root,backdrop:m.Backdrop,...K},slotProps:{...p,...B}},[He,qe]=At("root",{ref:n,elementType:l6,externalForwardedProps:{...Ue,...X,component:d},getSlotProps:W,ownerState:Ae,className:Be(o,_?.root,!Ae.open&&Ae.exited&&_?.hidden)}),[$e,We]=At("backdrop",{ref:a?.ref,elementType:i,externalForwardedProps:Ue,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:xe=>ne({...xe,onClick:Pe=>{xe?.onClick&&xe.onClick(Pe)}}),className:Be(a?.className,_?.backdrop),ownerState:Ae});return!P&&!q&&(!De||I)?null:D.jsx(D3,{ref:fe,container:c,disablePortal:T,children:D.jsxs(He,{...qe,children:[!L&&i?D.jsx($e,{...We}):null,D.jsx(r6,{disableEnforceFocus:E,disableAutoFocus:b,disableRestoreFocus:S,isEnabled:oe,open:q,children:O.cloneElement(l,_e)})]})})});function d6(e){return pt("MuiDialog",e)}const ro=ut("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Y1=O.createContext({}),h6=ue(q1,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),f6=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${Tt(n)}`],paper:["paper",`paperScroll${Tt(n)}`,`paperWidth${Tt(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return je(s,d6,t)},m6=ue(W1,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),p6=ue("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Tt(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),g6=ue(Ms,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Tt(n.scroll)}`],t[`paperWidth${Tt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(vt(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${ro.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${ro.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ro.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),b6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialog"}),i=Ns(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":o,"aria-modal":u=!0,BackdropComponent:l,BackdropProps:c,children:d,className:m,disableEscapeKeyDown:p=!1,fullScreen:b=!1,fullWidth:E=!1,maxWidth:C="sm",onClick:T,onClose:S,open:v,PaperComponent:L=Ms,PaperProps:P={},scroll:k="paper",slots:V={},slotProps:U={},TransitionComponent:q=ou,transitionDuration:B=a,TransitionProps:K,...Y}=r,X={...r,disableEscapeKeyDown:p,fullScreen:b,fullWidth:E,maxWidth:C,scroll:k},j=f6(X),W=O.useRef(),ne=dt=>{W.current=dt.target===dt.currentTarget},le=dt=>{T&&T(dt),W.current&&(W.current=null,S&&S(dt,"backdropClick"))},fe=L1(o),oe=O.useMemo(()=>({titleId:fe}),[fe]),I={transition:q,...V},De={transition:K,paper:P,backdrop:c,...U},Ae={slots:I,slotProps:De},[_,_e]=At("root",{elementType:m6,shouldForwardComponentProp:!0,externalForwardedProps:Ae,ownerState:X,className:Be(j.root,m),ref:n}),[Ue,He]=At("backdrop",{elementType:h6,shouldForwardComponentProp:!0,externalForwardedProps:Ae,ownerState:X}),[qe,$e]=At("paper",{elementType:g6,shouldForwardComponentProp:!0,externalForwardedProps:Ae,ownerState:X,className:Be(j.paper,P.className)}),[We,xe]=At("container",{elementType:p6,externalForwardedProps:Ae,ownerState:X,className:j.container}),[Pe,ze]=At("transition",{elementType:ou,externalForwardedProps:Ae,ownerState:X,additionalProps:{appear:!0,in:v,timeout:B,role:"presentation"}});return D.jsx(_,{closeAfterTransition:!0,slots:{backdrop:Ue},slotProps:{backdrop:{transitionDuration:B,as:l,...He}},disableEscapeKeyDown:p,onClose:S,open:v,onClick:le,..._e,...Y,children:D.jsx(Pe,{...ze,children:D.jsx(We,{onMouseDown:ne,...xe,children:D.jsx(qe,{as:L,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":fe,"aria-modal":u,...$e,children:D.jsx(Y1.Provider,{value:oe,children:d})})})})})});function y6(e){return pt("MuiDialogActions",e)}ut("MuiDialogActions",["root","spacing"]);const T6=e=>{const{classes:t,disableSpacing:n}=e;return je({root:["root",!n&&"spacing"]},y6,t)},E6=ue("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),x6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:a=!1,...s}=r,o={...r,disableSpacing:a},u=T6(o);return D.jsx(E6,{className:Be(u.root,i),ownerState:o,ref:n,...s})}),v6=e=>{const{classes:t,dividers:n}=e;return je({root:["root",n&&"dividers"]},l3,t)},S6=ue("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(vt(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${c3.root} + &`]:{paddingTop:0}}}]}))),A6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContent"}),{className:i,dividers:a=!1,...s}=r,o={...r,dividers:a},u=v6(o);return D.jsx(S6,{className:Be(u.root,i),ownerState:o,ref:n,...s})});function C6(e){return pt("MuiDialogContentText",e)}ut("MuiDialogContentText",["root"]);const w6=e=>{const{classes:t}=e,r=je({root:["root"]},C6,t);return{...t,...r}},k6=ue(Ve,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),I6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContentText"}),{children:i,className:a,...s}=r,o=w6(s);return D.jsx(k6,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:Be(o.root,a),...r,classes:o})}),N6=e=>{const{classes:t}=e;return je({root:["root"]},d3,t)},M6=ue(Ve,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),R6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogTitle"}),{className:i,id:a,...s}=r,o=r,u=N6(o),{titleId:l=a}=O.useContext(Y1);return D.jsx(M6,{component:"h2",className:Be(u.root,i),ownerState:o,ref:n,variant:"h6",id:a??l,...s})}),D6=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:s,multiline:o}=e,u={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",a==="small"&&`size${Tt(a)}`,s&&"hiddenLabel",o&&"multiline"],input:["input"]},l=je(u,F3,t);return{...t,...l}},_6=ue(_s,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Rs(e,t),!n.disableUnderline&&t.underline]}})(vt(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Er.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Er.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Er.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Er.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Er.disabled}, .${Er.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Er.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ol()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:o})=>s.multiline&&o==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),L6=ue(Ls,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ds})(vt(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),G1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:o=!1,hiddenLabel:u,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:m={},type:p="text",...b}=r,E={...r,disableUnderline:i,fullWidth:o,inputComponent:l,multiline:c,type:p},C=D6(r),T={root:{ownerState:E},input:{ownerState:E}},S=d??s?sl(T,d??s):T,v=m.root??a.Root??_6,L=m.input??a.Input??L6;return D.jsx(dl,{slots:{root:v,input:L},slotProps:S,fullWidth:o,inputComponent:l,multiline:c,ref:n,type:p,...b,classes:C})});G1.muiName="Input";function uu(e){return`scale(${e}, ${e**2})`}const P6={entering:{opacity:1,transform:uu(1)},entered:{opacity:1,transform:"none"}},io=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),lu=O.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:s,in:o,onEnter:u,onEntered:l,onEntering:c,onExit:d,onExited:m,onExiting:p,style:b,timeout:E="auto",TransitionComponent:C=Ln,...T}=t,S=h3(),v=O.useRef(),L=Ns(),P=O.useRef(null),k=rn(P,ma(a),n),V=W=>ne=>{if(W){const le=P.current;ne===void 0?W(le):W(le,ne)}},U=V(c),q=V((W,ne)=>{U1(W);const{duration:le,delay:fe,easing:oe}=ds({style:b,timeout:E,easing:s},{mode:"enter"});let I;E==="auto"?(I=L.transitions.getAutoHeightDuration(W.clientHeight),v.current=I):I=le,W.style.transition=[L.transitions.create("opacity",{duration:I,delay:fe}),L.transitions.create("transform",{duration:io?I:I*.666,delay:fe,easing:oe})].join(","),u&&u(W,ne)}),B=V(l),K=V(p),Y=V(W=>{const{duration:ne,delay:le,easing:fe}=ds({style:b,timeout:E,easing:s},{mode:"exit"});let oe;E==="auto"?(oe=L.transitions.getAutoHeightDuration(W.clientHeight),v.current=oe):oe=ne,W.style.transition=[L.transitions.create("opacity",{duration:oe,delay:le}),L.transitions.create("transform",{duration:io?oe:oe*.666,delay:io?le:le||oe*.333,easing:fe})].join(","),W.style.opacity=0,W.style.transform=uu(.75),d&&d(W)}),X=V(m),j=W=>{E==="auto"&&S.start(v.current||0,W),r&&r(P.current,W)};return D.jsx(C,{appear:i,in:o,nodeRef:P,onEnter:q,onEntered:B,onEntering:U,onExit:Y,onExited:X,onExiting:K,addEndListener:j,timeout:E==="auto"?null:E,...T,children:(W,{ownerState:ne,...le})=>O.cloneElement(a,{style:{opacity:0,transform:uu(.75),visibility:W==="exited"&&!o?"hidden":void 0,...P6[W],...b,...a.props.style},ref:k,...le})})});lu&&(lu.muiSupportAuto=!0);const O6=e=>{const{classes:t,disableUnderline:n}=e,i=je({root:["root",!n&&"underline"],input:["input"]},B3,t);return{...t,...i}},B6=ue(_s,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Rs(e,t),!n.disableUnderline&&t.underline]}})(vt(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Si.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Si.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Si.disabled}, .${Si.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Si.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ol()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),F6=ue(Ls,{name:"MuiInput",slot:"Input",overridesResolver:Ds})({}),K1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:o=!1,inputComponent:u="input",multiline:l=!1,slotProps:c,slots:d={},type:m="text",...p}=r,b=O6(r),C={root:{ownerState:{disableUnderline:i}}},T=c??s?sl(c??s,C):C,S=d.root??a.Root??B6,v=d.input??a.Input??F6;return D.jsx(dl,{slots:{root:S,input:v},slotProps:T,fullWidth:o,inputComponent:u,multiline:l,ref:n,type:m,...p,classes:b})});K1.muiName="Input";const jn=O.createContext({});function H6(e){return pt("MuiList",e)}ut("MuiList",["root","padding","dense","subheader"]);const z6=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return je({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},H6,t)},U6=ue("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),X1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiList"}),{children:i,className:a,component:s="ul",dense:o=!1,disablePadding:u=!1,subheader:l,...c}=r,d=O.useMemo(()=>({dense:o}),[o]),m={...r,component:s,dense:o,disablePadding:u},p=z6(m);return D.jsx(jn.Provider,{value:d,children:D.jsxs(U6,{as:s,className:Be(p.root,a),ref:n,ownerState:m,...c,children:[l,i]})})});function V6(e){return pt("MuiListItem",e)}ut("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const j6=ut("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function q6(e){return pt("MuiListItemSecondaryAction",e)}ut("MuiListItemSecondaryAction",["root","disableGutters"]);const $6=e=>{const{disableGutters:t,classes:n}=e;return je({root:["root",t&&"disableGutters"]},q6,n)},W6=ue("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Q1=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...a}=r,s=O.useContext(jn),o={...r,disableGutters:s.disableGutters},u=$6(o);return D.jsx(W6,{className:Be(u.root,i),ownerState:o,ref:n,...a})});Q1.muiName="ListItemSecondaryAction";const Y6=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},G6=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:a,divider:s,hasSecondaryAction:o}=e;return je({root:["root",r&&"dense",!i&&"gutters",!a&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",o&&"secondaryAction"],container:["container"]},V6,n)},K6=ue("div",{name:"MuiListItem",slot:"Root",overridesResolver:Y6})(vt(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${j6.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),X6=ue("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Q6=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItem"}),{alignItems:i="center",children:a,className:s,component:o,components:u={},componentsProps:l={},ContainerComponent:c="li",ContainerProps:{className:d,...m}={},dense:p=!1,disableGutters:b=!1,disablePadding:E=!1,divider:C=!1,secondaryAction:T,slotProps:S={},slots:v={},...L}=r,P=O.useContext(jn),k=O.useMemo(()=>({dense:p||P.dense||!1,alignItems:i,disableGutters:b}),[i,P.dense,p,b]),V=O.useRef(null),U=O.Children.toArray(a),q=U.length&&A3(U[U.length-1],["ListItemSecondaryAction"]),B={...r,alignItems:i,dense:k.dense,disableGutters:b,disablePadding:E,divider:C,hasSecondaryAction:q},K=G6(B),Y=rn(V,n),X=v.root||u.Root||K6,j=S.root||l.root||{},W={className:Be(K.root,j.className,s),...L};let ne=o||"li";return q?(ne=!W.component&&!o?"div":ne,c==="li"&&(ne==="li"?ne="div":W.component==="li"&&(W.component="div")),D.jsx(jn.Provider,{value:k,children:D.jsxs(X6,{as:c,className:Be(K.container,d),ref:Y,ownerState:B,...m,children:[D.jsx(X,{...j,...!Ji(X)&&{as:ne,ownerState:{...B,...j.ownerState}},...W,children:U}),U.pop()]})})):D.jsx(jn.Provider,{value:k,children:D.jsxs(X,{...j,as:ne,ref:Y,...!Ji(X)&&{ownerState:{...B,...j.ownerState}},...W,children:[U,T&&D.jsx(Q1,{children:T})]})})}),Z6=e=>{const{alignItems:t,classes:n}=e;return je({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},f3,n)},J6=ue("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(vt(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),eg=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemIcon"}),{className:i,...a}=r,s=O.useContext(jn),o={...r,alignItems:s.alignItems},u=Z6(o);return D.jsx(J6,{className:Be(u.root,i),ownerState:o,ref:n,...a})});function tg(e){return pt("MuiListItemText",e)}const Gr=ut("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ng=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return je({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},tg,t)},rg=ue("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Gr.primary}`]:t.primary},{[`& .${Gr.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${H0.root}:where(& .${Gr.primary})`]:{display:"block"},[`.${H0.root}:where(& .${Gr.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),ig=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:s=!1,inset:o=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:d,slots:m={},slotProps:p={},...b}=r,{dense:E}=O.useContext(jn);let C=u??i,T=c;const S={...r,disableTypography:s,inset:o,primary:!!C,secondary:!!T,dense:E},v=ng(S),L={slots:m,slotProps:{primary:l,secondary:d,...p}},[P,k]=At("root",{className:Be(v.root,a),elementType:rg,externalForwardedProps:{...L,...b},ownerState:S,ref:n}),[V,U]=At("primary",{className:v.primary,elementType:Ve,externalForwardedProps:L,ownerState:S}),[q,B]=At("secondary",{className:v.secondary,elementType:Ve,externalForwardedProps:L,ownerState:S});return C!=null&&C.type!==Ve&&!s&&(C=D.jsx(V,{variant:E?"body2":"body1",component:U?.variant?void 0:"span",...U,children:C})),T!=null&&T.type!==Ve&&!s&&(T=D.jsx(q,{variant:"body2",color:"textSecondary",...B,children:T})),D.jsxs(P,{...k,children:[C,T]})});function ao(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function nc(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Z1(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Ai(e,t,n,r,i,a){let s=!1,o=i(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(s)return!1;s=!0}const u=r?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!Z1(o,a)||u)o=i(e,o,n);else return o.focus(),!0}return!1}const ag=O.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:o,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu",...m}=t,p=O.useRef(null),b=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Lr(()=>{i&&p.current.focus()},[i]),O.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(v,{direction:L})=>{const P=!p.current.style.width;if(v.clientHeight{const L=p.current,P=v.key;if(v.ctrlKey||v.metaKey||v.altKey){c&&c(v);return}const V=Tn(L).activeElement;if(P==="ArrowDown")v.preventDefault(),Ai(L,V,l,u,ao);else if(P==="ArrowUp")v.preventDefault(),Ai(L,V,l,u,nc);else if(P==="Home")v.preventDefault(),Ai(L,null,l,u,ao);else if(P==="End")v.preventDefault(),Ai(L,null,l,u,nc);else if(P.length===1){const U=b.current,q=P.toLowerCase(),B=performance.now();U.keys.length>0&&(B-U.lastTime>500?(U.keys=[],U.repeating=!0,U.previousKeyMatched=!0):U.repeating&&q!==U.keys[0]&&(U.repeating=!1)),U.lastTime=B,U.keys.push(q);const K=V&&!U.repeating&&Z1(V,U);U.previousKeyMatched&&(K||Ai(L,V,!1,u,ao,U))?v.preventDefault():U.previousKeyMatched=!1}c&&c(v)},C=rn(p,n);let T=-1;O.Children.forEach(s,(v,L)=>{if(!O.isValidElement(v)){T===L&&(T+=1,T>=s.length&&(T=-1));return}v.props.disabled||(d==="selectedMenu"&&v.props.selected||T===-1)&&(T=L),T===L&&(v.props.disabled||v.props.muiSkipListHighlight||v.type.muiSkipListHighlight)&&(T+=1,T>=s.length&&(T=-1))});const S=O.Children.map(s,(v,L)=>{if(L===T){const P={};return a&&(P.autoFocus=!0),v.props.tabIndex===void 0&&d==="selectedMenu"&&(P.tabIndex=0),O.cloneElement(v,P)}return v});return D.jsx(X1,{role:"menu",ref:C,className:o,onKeyDown:E,tabIndex:i?0:-1,...m,children:S})});function sg(e){return pt("MuiPopover",e)}ut("MuiPopover",["root","paper"]);function rc(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function ic(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function ac(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function La(e){return typeof e=="function"?e():e}const og=e=>{const{classes:t}=e;return je({root:["root"],paper:["paper"]},sg,t)},ug=ue(W1,{name:"MuiPopover",slot:"Root"})({}),J1=ue(Ms,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),lg=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:o,anchorReference:u="anchorEl",children:l,className:c,container:d,elevation:m=8,marginThreshold:p=16,open:b,PaperProps:E={},slots:C={},slotProps:T={},transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:v,transitionDuration:L="auto",TransitionProps:P={},disableScrollLock:k=!1,...V}=r,U=O.useRef(),q={...r,anchorOrigin:s,anchorReference:u,elevation:m,marginThreshold:p,transformOrigin:S,TransitionComponent:v,transitionDuration:L,TransitionProps:P},B=og(q),K=O.useCallback(()=>{if(u==="anchorPosition")return o;const xe=La(a),ze=(xe&&xe.nodeType===1?xe:Tn(U.current).body).getBoundingClientRect();return{top:ze.top+rc(ze,s.vertical),left:ze.left+ic(ze,s.horizontal)}},[a,s.horizontal,s.vertical,o,u]),Y=O.useCallback(xe=>({vertical:rc(xe,S.vertical),horizontal:ic(xe,S.horizontal)}),[S.horizontal,S.vertical]),X=O.useCallback(xe=>{const Pe={width:xe.offsetWidth,height:xe.offsetHeight},ze=Y(Pe);if(u==="none")return{top:null,left:null,transformOrigin:ac(ze)};const dt=K();let Oe=dt.top-ze.vertical,Xe=dt.left-ze.horizontal;const Pt=Oe+Pe.height,Ot=Xe+Pe.width,wt=Wn(La(a)),Vt=wt.innerHeight-p,Qt=wt.innerWidth-p;if(p!==null&&OeVt){const kt=Pt-Vt;Oe-=kt,ze.vertical+=kt}if(p!==null&&XeQt){const kt=Ot-Qt;Xe-=kt,ze.horizontal+=kt}return{top:`${Math.round(Oe)}px`,left:`${Math.round(Xe)}px`,transformOrigin:ac(ze)}},[a,u,K,Y,p]),[j,W]=O.useState(b),ne=O.useCallback(()=>{const xe=U.current;if(!xe)return;const Pe=X(xe);Pe.top!==null&&xe.style.setProperty("top",Pe.top),Pe.left!==null&&(xe.style.left=Pe.left),xe.style.transformOrigin=Pe.transformOrigin,W(!0)},[X]);O.useEffect(()=>(k&&window.addEventListener("scroll",ne),()=>window.removeEventListener("scroll",ne)),[a,k,ne]);const le=()=>{ne()},fe=()=>{W(!1)};O.useEffect(()=>{b&&ne()}),O.useImperativeHandle(i,()=>b?{updatePosition:()=>{ne()}}:null,[b,ne]),O.useEffect(()=>{if(!b)return;const xe=z1(()=>{ne()}),Pe=Wn(La(a));return Pe.addEventListener("resize",xe),()=>{xe.clear(),Pe.removeEventListener("resize",xe)}},[a,b,ne]);let oe=L;const I={slots:{transition:v,...C},slotProps:{transition:P,paper:E,...T}},[De,Ae]=At("transition",{elementType:lu,externalForwardedProps:I,ownerState:q,getSlotProps:xe=>({...xe,onEntering:(Pe,ze)=>{xe.onEntering?.(Pe,ze),le()},onExited:Pe=>{xe.onExited?.(Pe),fe()}}),additionalProps:{appear:!0,in:b}});L==="auto"&&!De.muiSupportAuto&&(oe=void 0);const _=d||(a?Tn(La(a)).body:void 0),[_e,{slots:Ue,slotProps:He,...qe}]=At("root",{ref:n,elementType:ug,externalForwardedProps:{...I,...V},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:C.backdrop},slotProps:{backdrop:I3(typeof T.backdrop=="function"?T.backdrop(q):T.backdrop,{invisible:!0})},container:_,open:b},ownerState:q,className:Be(B.root,c)}),[$e,We]=At("paper",{ref:U,className:B.paper,elementType:J1,externalForwardedProps:I,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:j?void 0:{opacity:0}},ownerState:q});return D.jsx(_e,{...qe,...!Ji(_e)&&{slots:Ue,slotProps:He,disableScrollLock:k},children:D.jsx(De,{...Ae,timeout:oe,children:D.jsx($e,{...We,children:l})})})});function cg(e){return pt("MuiMenu",e)}ut("MuiMenu",["root","paper","list"]);const dg={vertical:"top",horizontal:"right"},hg={vertical:"top",horizontal:"left"},fg=e=>{const{classes:t}=e;return je({root:["root"],paper:["paper"],list:["list"]},cg,t)},mg=ue(lg,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),pg=ue(J1,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),gg=ue(ag,{name:"MuiMenu",slot:"List"})({outline:0}),bg=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:o=!1,MenuListProps:u={},onClose:l,open:c,PaperProps:d={},PopoverClasses:m,transitionDuration:p="auto",TransitionProps:{onEntering:b,...E}={},variant:C="selectedMenu",slots:T={},slotProps:S={},...v}=r,L=m3(),P={...r,autoFocus:i,disableAutoFocusItem:o,MenuListProps:u,onEntering:b,PaperProps:d,transitionDuration:p,TransitionProps:E,variant:C},k=fg(P),V=i&&!o&&c,U=O.useRef(null),q=(oe,I)=>{U.current&&U.current.adjustStyleForScrollbar(oe,{direction:L?"rtl":"ltr"}),b&&b(oe,I)},B=oe=>{oe.key==="Tab"&&(oe.preventDefault(),l&&l(oe,"tabKeyDown"))};let K=-1;O.Children.map(a,(oe,I)=>{O.isValidElement(oe)&&(oe.props.disabled||(C==="selectedMenu"&&oe.props.selected||K===-1)&&(K=I))});const Y={slots:T,slotProps:{list:u,transition:E,paper:d,...S}},X=M3({elementType:T.root,externalSlotProps:S.root,ownerState:P,className:[k.root,s]}),[j,W]=At("paper",{className:k.paper,elementType:pg,externalForwardedProps:Y,shouldForwardComponentProp:!0,ownerState:P}),[ne,le]=At("list",{className:Be(k.list,u.className),elementType:gg,shouldForwardComponentProp:!0,externalForwardedProps:Y,getSlotProps:oe=>({...oe,onKeyDown:I=>{B(I),oe.onKeyDown?.(I)}}),ownerState:P}),fe=typeof Y.slotProps.transition=="function"?Y.slotProps.transition(P):Y.slotProps.transition;return D.jsx(mg,{onClose:l,anchorOrigin:{vertical:"bottom",horizontal:L?"right":"left"},transformOrigin:L?dg:hg,slots:{root:T.root,paper:j,backdrop:T.backdrop,...T.transition&&{transition:T.transition}},slotProps:{root:X,paper:W,backdrop:typeof S.backdrop=="function"?S.backdrop(P):S.backdrop,transition:{...fe,onEntering:(...oe)=>{q(...oe),fe?.onEntering?.(...oe)}}},open:c,ref:n,transitionDuration:p,ownerState:P,...v,classes:m,children:D.jsx(ne,{actions:U,autoFocus:i&&(K===-1||o),autoFocusItem:V,variant:C,...le,children:a})})});function yg(e){return pt("MuiMenuItem",e)}const Ci=ut("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Tg=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Eg=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,u=je({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},yg,s);return{...s,...u}},xg=ue(p3,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Tg})(vt(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ci.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ci.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Ci.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Ci.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ci.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${U0.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${U0.inset}`]:{marginLeft:52},[`& .${Gr.root}`]:{marginTop:0,marginBottom:0},[`& .${Gr.inset}`]:{paddingLeft:36},[`& .${z0.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${z0.root} svg`]:{fontSize:"1.25rem"}}}]}))),vg=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:o=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:m,...p}=r,b=O.useContext(jn),E=O.useMemo(()=>({dense:s||b.dense||!1,disableGutters:u}),[b.dense,s,u]),C=O.useRef(null);Lr(()=>{i&&C.current&&C.current.focus()},[i]);const T={...r,dense:E.dense,divider:o,disableGutters:u},S=Eg(r),v=rn(C,n);let L;return r.disabled||(L=d!==void 0?d:-1),D.jsx(jn.Provider,{value:E,children:D.jsx(xg,{ref:v,role:c,tabIndex:L,component:a,focusVisibleClassName:Be(S.focusVisible,l),className:Be(S.root,m),...p,ownerState:T,classes:S})})});function Sg(e){return pt("MuiNativeSelect",e)}const hl=ut("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ag=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Tt(n)}`,a&&"iconOpen",r&&"disabled"]};return je(o,Sg,t)},ef=ue("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${hl.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Cg=ue(ef,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Dn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${hl.multiple}`]:t.multiple}]}})({}),tf=ue("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${hl.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),wg=ue(tf,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Tt(n.variant)}`],n.open&&t.iconOpen]}})({}),kg=O.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:s,inputRef:o,variant:u="standard",...l}=t,c={...t,disabled:i,variant:u,error:a},d=Ag(c);return D.jsxs(O.Fragment,{children:[D.jsx(Cg,{ownerState:c,className:Be(d.select,r),disabled:i,ref:o||n,...l}),t.multiple?null:D.jsx(wg,{as:s,ownerState:c,className:d.icon})]})});var sc;const Ig=ue("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Dn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Ng=ue("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Dn})(vt(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Mg(e){const{children:t,classes:n,className:r,label:i,notched:a,...s}=e,o=i!=null&&i!=="",u={...e,notched:a,withLabel:o};return D.jsx(Ig,{"aria-hidden":!0,className:r,ownerState:u,...s,children:D.jsx(Ng,{ownerState:u,children:o?D.jsx("span",{children:i}):sc||(sc=D.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const Rg=e=>{const{classes:t}=e,r=je({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},g3,t);return{...t,...r}},Dg=ue(_s,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Rs})(vt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${vn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${vn.focused} .${vn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(ol()).map(([n])=>({props:{color:n},style:{[`&.${vn.focused} .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${vn.error} .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${vn.disabled} .${vn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),_g=ue(Mg,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(vt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),Lg=ue(Ls,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ds})(vt(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),nf=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:o,multiline:u=!1,notched:l,slots:c={},slotProps:d={},type:m="text",...p}=r,b=Rg(r),E=cl(),C=ll({props:r,muiFormControl:E,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T={...r,color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:E,fullWidth:a,hiddenLabel:C.hiddenLabel,multiline:u,size:C.size,type:m},S=c.root??i.Root??Dg,v=c.input??i.Input??Lg,[L,P]=At("notchedOutline",{elementType:_g,className:b.notchedOutline,shouldForwardComponentProp:!0,ownerState:T,externalForwardedProps:{slots:c,slotProps:d},additionalProps:{label:o!=null&&o!==""&&C.required?D.jsxs(O.Fragment,{children:[o," ","*"]}):o}});return D.jsx(dl,{slots:{root:S,input:v},slotProps:d,renderSuffix:k=>D.jsx(L,{...P,notched:typeof l<"u"?l:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:a,inputComponent:s,multiline:u,ref:n,type:m,...p,classes:{...b,notchedOutline:null}})});nf.muiName="Input";function rf(e){return pt("MuiSelect",e)}const wi=ut("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var oc;const Pg=ue(ef,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${wi.select}`]:t.select},{[`&.${wi.select}`]:t[n.variant]},{[`&.${wi.error}`]:t.error},{[`&.${wi.multiple}`]:t.multiple}]}})({[`&.${wi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Og=ue(tf,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Tt(n.variant)}`],n.open&&t.iconOpen]}})({}),Bg=ue("input",{shouldForwardProp:e=>b3(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function uc(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Fg(e){return e==null||typeof e=="string"&&!e.trim()}const Hg=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Tt(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return je(o,rf,t)},zg=O.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:a,autoWidth:s,children:o,className:u,defaultOpen:l,defaultValue:c,disabled:d,displayEmpty:m,error:p=!1,IconComponent:b,inputRef:E,labelId:C,MenuProps:T={},multiple:S,name:v,onBlur:L,onChange:P,onClose:k,onFocus:V,onOpen:U,open:q,readOnly:B,renderValue:K,required:Y,SelectDisplayProps:X={},tabIndex:j,type:W,value:ne,variant:le="standard",...fe}=t,[oe,I]=Y0({controlled:ne,default:c,name:"Select"}),[De,Ae]=Y0({controlled:q,default:l,name:"Select"}),_=O.useRef(null),_e=O.useRef(null),[Ue,He]=O.useState(null),{current:qe}=O.useRef(q!=null),[$e,We]=O.useState(),xe=rn(n,E),Pe=O.useCallback(me=>{_e.current=me,me&&He(me)},[]),ze=Ue?.parentNode;O.useImperativeHandle(xe,()=>({focus:()=>{_e.current.focus()},node:_.current,value:oe}),[oe]),O.useEffect(()=>{l&&De&&Ue&&!qe&&(We(s?null:ze.clientWidth),_e.current.focus())},[Ue,s]),O.useEffect(()=>{a&&_e.current.focus()},[a]),O.useEffect(()=>{if(!C)return;const me=Tn(_e.current).getElementById(C);if(me){const ke=()=>{getSelection().isCollapsed&&_e.current.focus()};return me.addEventListener("click",ke),()=>{me.removeEventListener("click",ke)}}},[C]);const dt=(me,ke)=>{me?U&&U(ke):k&&k(ke),qe||(We(s?null:ze.clientWidth),Ae(me))},Oe=me=>{me.button===0&&(me.preventDefault(),_e.current.focus(),dt(!0,me))},Xe=me=>{dt(!1,me)},Pt=O.Children.toArray(o),Ot=me=>{const ke=Pt.find(tt=>tt.props.value===me.target.value);ke!==void 0&&(I(ke.props.value),P&&P(me,ke))},wt=me=>ke=>{let tt;if(ke.currentTarget.hasAttribute("tabindex")){if(S){tt=Array.isArray(oe)?oe.slice():[];const Mt=oe.indexOf(me.props.value);Mt===-1?tt.push(me.props.value):tt.splice(Mt,1)}else tt=me.props.value;if(me.props.onClick&&me.props.onClick(ke),oe!==tt&&(I(tt),P)){const Mt=ke.nativeEvent||ke,F0=new Mt.constructor(Mt.type,Mt);Object.defineProperty(F0,"target",{writable:!0,value:{value:tt,name:v}}),P(F0,me)}S||dt(!1,ke)}},Vt=me=>{B||[" ","ArrowUp","ArrowDown","Enter"].includes(me.key)&&(me.preventDefault(),dt(!0,me))},Qt=Ue!==null&&De,kt=me=>{!Qt&&L&&(Object.defineProperty(me,"target",{writable:!0,value:{value:oe,name:v}}),L(me))};delete fe["aria-invalid"];let xn,er;const Nt=[];let tr=!1;(j1({value:oe})||m)&&(K?xn=K(oe):tr=!0);const G=Pt.map(me=>{if(!O.isValidElement(me))return null;let ke;if(S){if(!Array.isArray(oe))throw new Error(_1(2));ke=oe.some(tt=>uc(tt,me.props.value)),ke&&tr&&Nt.push(me.props.children)}else ke=uc(oe,me.props.value),ke&&tr&&(er=me.props.children);return O.cloneElement(me,{"aria-selected":ke?"true":"false",onClick:wt(me),onKeyUp:tt=>{tt.key===" "&&tt.preventDefault(),me.props.onKeyUp&&me.props.onKeyUp(tt)},role:"option",selected:ke,value:void 0,"data-value":me.props.value})});tr&&(S?Nt.length===0?xn=null:xn=Nt.reduce((me,ke,tt)=>(me.push(ke),tt{const{classes:t}=e,r=je({root:["root"]},rf,t);return{...t,...r}},fl={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Dn(e)&&e!=="variant"},Vg=ue(K1,fl)(""),jg=ue(nf,fl)(""),qg=ue(G1,fl)(""),af=O.forwardRef(function(t,n){const r=Ke({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:s={},className:o,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=H3,id:d,input:m,inputProps:p,label:b,labelId:E,MenuProps:C,multiple:T=!1,native:S=!1,onClose:v,onOpen:L,open:P,renderValue:k,SelectDisplayProps:V,variant:U="outlined",...q}=r,B=S?kg:zg,K=cl(),Y=ll({props:r,muiFormControl:K,states:["variant","error"]}),X=Y.variant||U,j={...r,variant:X,classes:s},W=Ug(j),{root:ne,...le}=W,fe=m||{standard:D.jsx(Vg,{ownerState:j}),outlined:D.jsx(jg,{label:b,ownerState:j}),filled:D.jsx(qg,{ownerState:j})}[X],oe=rn(n,ma(fe));return D.jsx(O.Fragment,{children:O.cloneElement(fe,{inputComponent:B,inputProps:{children:a,error:Y.error,IconComponent:c,variant:X,type:void 0,multiple:T,...S?{id:d}:{autoWidth:i,defaultOpen:u,displayEmpty:l,labelId:E,MenuProps:C,onClose:v,onOpen:L,open:P,renderValue:k,SelectDisplayProps:{id:d,...V}},...p,classes:p?sl(le,p.classes):le,...m?m.props.inputProps:{}},...(T&&S||l)&&X==="outlined"?{notched:!0}:{},ref:oe,className:Be(fe.props.className,o,W.root),...!m&&{variant:X},...q})})});af.muiName="Select";function $g(e){return pt("MuiSkeleton",e)}ut("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Wg=e=>{const{classes:t,variant:n,animation:r,hasChildren:i,width:a,height:s}=e;return je({root:["root",n,r,i&&"withChildren",i&&!a&&"fitContent",i&&!s&&"heightAuto"]},$g,t)},cu=O1` 0% { opacity: 1; } @@ -36,8 +36,8 @@ import{x as W4,y as Y4,r as O,z as G4,C as K4,j as L,c as Be,_ as X4,R as Ma,D a transparent, ${(e.vars||e).palette.action.hover}, transparent - )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Gg||{"&::after":{animation:`${du} 2s linear 0.5s infinite`}}}]}})),lc=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiSkeleton"}),{animation:i="pulse",className:a,component:s="span",height:o,style:u,variant:l="text",width:c,...d}=r,m={...r,animation:i,component:s,variant:l,hasChildren:!!d.children},p=Wg(m);return L.jsx(Kg,{as:s,ref:n,className:Be(p.root,a),ownerState:m,...d,style:{width:c,height:o,...u}})}),sf=O.createContext();function Xg(e){return pt("MuiTable",e)}ut("MuiTable",["root","stickyHeader"]);const Qg=e=>{const{classes:t,stickyHeader:n}=e;return je({root:["root",n&&"stickyHeader"]},Xg,t)},Zg=ue("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(vt(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),cc="table",Jg=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTable"}),{className:i,component:a=cc,padding:s="normal",size:o="medium",stickyHeader:u=!1,...l}=r,c={...r,component:a,padding:s,size:o,stickyHeader:u},d=Qg(c),m=O.useMemo(()=>({padding:s,size:o,stickyHeader:u}),[s,o,u]);return L.jsx(sf.Provider,{value:m,children:L.jsx(Zg,{as:a,role:a===cc?null:"table",ref:n,className:Be(d.root,i),ownerState:c,...l})})}),Ps=O.createContext();function e5(e){return pt("MuiTableBody",e)}ut("MuiTableBody",["root"]);const t5=e=>{const{classes:t}=e;return je({root:["root"]},e5,t)},n5=ue("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),r5={variant:"body"},dc="tbody",i5=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableBody"}),{className:i,component:a=dc,...s}=r,o={...r,component:a},u=t5(o);return L.jsx(Ps.Provider,{value:r5,children:L.jsx(n5,{className:Be(u.root,i),as:a,ref:n,role:a===dc?null:"rowgroup",ownerState:o,...s})})}),a5=e=>{const{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:s}=e,o={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${Tt(r)}`,i!=="normal"&&`padding${Tt(i)}`,`size${Tt(a)}`]};return je(o,y3,t)},s5=ue("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Tt(n.size)}`],n.padding!=="normal"&&t[`padding${Tt(n.padding)}`],n.align!=="inherit"&&t[`align${Tt(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(vt(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${T3.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),hc=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:s,padding:o,scope:u,size:l,sortDirection:c,variant:d,...m}=r,p=O.useContext(sf),b=O.useContext(Ps),E=b&&b.variant==="head";let C;s?C=s:C=E?"th":"td";let T=u;C==="td"?T=void 0:!T&&E&&(T="col");const S=d||b&&b.variant,v={...r,align:i,component:C,padding:o||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:S==="head"&&p&&p.stickyHeader,variant:S},_=a5(v);let P=null;return c&&(P=c==="asc"?"ascending":"descending"),L.jsx(s5,{as:C,ref:n,className:Be(_.root,a),"aria-sort":P,scope:T,ownerState:v,...m})});function o5(e){return pt("MuiTableContainer",e)}ut("MuiTableContainer",["root"]);const u5=e=>{const{classes:t}=e;return je({root:["root"]},o5,t)},l5=ue("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),c5=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableContainer"}),{className:i,component:a="div",...s}=r,o={...r,component:a},u=u5(o);return L.jsx(l5,{ref:n,as:a,className:Be(u.root,i),ownerState:o,...s})});function d5(e){return pt("MuiTableHead",e)}ut("MuiTableHead",["root"]);const h5=e=>{const{classes:t}=e;return je({root:["root"]},d5,t)},f5=ue("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),m5={variant:"head"},fc="thead",p5=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableHead"}),{className:i,component:a=fc,...s}=r,o={...r,component:a},u=h5(o);return L.jsx(Ps.Provider,{value:m5,children:L.jsx(f5,{as:a,className:Be(u.root,i),ref:n,role:a===fc?null:"rowgroup",ownerState:o,...s})})}),g5=e=>{const{classes:t,selected:n,hover:r,head:i,footer:a}=e;return je({root:["root",n&&"selected",r&&"hover",i&&"head",a&&"footer"]},E3,t)},b5=ue("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(vt(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${V0.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${V0.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),mc="tr",y5=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableRow"}),{className:i,component:a=mc,hover:s=!1,selected:o=!1,...u}=r,l=O.useContext(Ps),c={...r,component:a,hover:s,selected:o,head:l&&l.variant==="head",footer:l&&l.variant==="footer"},d=g5(c);return L.jsx(b5,{as:a,ref:n,className:Be(d.root,i),role:a===mc?null:"row",ownerState:c,...u})});/** + )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Gg||{"&::after":{animation:`${du} 2s linear 0.5s infinite`}}}]}})),lc=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiSkeleton"}),{animation:i="pulse",className:a,component:s="span",height:o,style:u,variant:l="text",width:c,...d}=r,m={...r,animation:i,component:s,variant:l,hasChildren:!!d.children},p=Wg(m);return D.jsx(Kg,{as:s,ref:n,className:Be(p.root,a),ownerState:m,...d,style:{width:c,height:o,...u}})}),sf=O.createContext();function Xg(e){return pt("MuiTable",e)}ut("MuiTable",["root","stickyHeader"]);const Qg=e=>{const{classes:t,stickyHeader:n}=e;return je({root:["root",n&&"stickyHeader"]},Xg,t)},Zg=ue("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(vt(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),cc="table",Jg=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTable"}),{className:i,component:a=cc,padding:s="normal",size:o="medium",stickyHeader:u=!1,...l}=r,c={...r,component:a,padding:s,size:o,stickyHeader:u},d=Qg(c),m=O.useMemo(()=>({padding:s,size:o,stickyHeader:u}),[s,o,u]);return D.jsx(sf.Provider,{value:m,children:D.jsx(Zg,{as:a,role:a===cc?null:"table",ref:n,className:Be(d.root,i),ownerState:c,...l})})}),Ps=O.createContext();function e5(e){return pt("MuiTableBody",e)}ut("MuiTableBody",["root"]);const t5=e=>{const{classes:t}=e;return je({root:["root"]},e5,t)},n5=ue("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),r5={variant:"body"},dc="tbody",i5=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableBody"}),{className:i,component:a=dc,...s}=r,o={...r,component:a},u=t5(o);return D.jsx(Ps.Provider,{value:r5,children:D.jsx(n5,{className:Be(u.root,i),as:a,ref:n,role:a===dc?null:"rowgroup",ownerState:o,...s})})}),a5=e=>{const{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:s}=e,o={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${Tt(r)}`,i!=="normal"&&`padding${Tt(i)}`,`size${Tt(a)}`]};return je(o,y3,t)},s5=ue("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Tt(n.size)}`],n.padding!=="normal"&&t[`padding${Tt(n.padding)}`],n.align!=="inherit"&&t[`align${Tt(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(vt(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${T3.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),hc=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:s,padding:o,scope:u,size:l,sortDirection:c,variant:d,...m}=r,p=O.useContext(sf),b=O.useContext(Ps),E=b&&b.variant==="head";let C;s?C=s:C=E?"th":"td";let T=u;C==="td"?T=void 0:!T&&E&&(T="col");const S=d||b&&b.variant,v={...r,align:i,component:C,padding:o||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:S==="head"&&p&&p.stickyHeader,variant:S},L=a5(v);let P=null;return c&&(P=c==="asc"?"ascending":"descending"),D.jsx(s5,{as:C,ref:n,className:Be(L.root,a),"aria-sort":P,scope:T,ownerState:v,...m})});function o5(e){return pt("MuiTableContainer",e)}ut("MuiTableContainer",["root"]);const u5=e=>{const{classes:t}=e;return je({root:["root"]},o5,t)},l5=ue("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),c5=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableContainer"}),{className:i,component:a="div",...s}=r,o={...r,component:a},u=u5(o);return D.jsx(l5,{ref:n,as:a,className:Be(u.root,i),ownerState:o,...s})});function d5(e){return pt("MuiTableHead",e)}ut("MuiTableHead",["root"]);const h5=e=>{const{classes:t}=e;return je({root:["root"]},d5,t)},f5=ue("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),m5={variant:"head"},fc="thead",p5=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableHead"}),{className:i,component:a=fc,...s}=r,o={...r,component:a},u=h5(o);return D.jsx(Ps.Provider,{value:m5,children:D.jsx(f5,{as:a,className:Be(u.root,i),ref:n,role:a===fc?null:"rowgroup",ownerState:o,...s})})}),g5=e=>{const{classes:t,selected:n,hover:r,head:i,footer:a}=e;return je({root:["root",n&&"selected",r&&"hover",i&&"head",a&&"footer"]},E3,t)},b5=ue("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(vt(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${V0.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${V0.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),mc="tr",y5=O.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableRow"}),{className:i,component:a=mc,hover:s=!1,selected:o=!1,...u}=r,l=O.useContext(Ps),c={...r,component:a,hover:s,selected:o,head:l&&l.variant==="head",footer:l&&l.variant==="footer"},d=g5(c);return D.jsx(b5,{as:a,ref:n,className:Be(d.root,i),role:a===mc?null:"row",ownerState:c,...u})});/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. @@ -87,10 +87,10 @@ import{x as W4,y as Y4,r as O,z as G4,C as K4,j as L,c as Be,_ as X4,R as Ma,D a * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const P5=[["path",{d:"M7 3.34a10 10 0 1 1 -4.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 4.995 -8.336z",key:"svg-0"}]],O5=_n("filled","circle-filled","CircleFilled",P5),B5={primary:Ja,secondary:Ja,info:Ja,error:q0,warning:q0,success:v3},F5=e=>{const{open:t,onClose:n=()=>{},titleId:r,title:i,contentId:a,content:s,color:o="primary",titleIconColor:u="warning",titleIcon:l=!0,cancelLabel:c,onCancel:d=()=>{},confirmLabel:m,onConfirm:p=()=>{},submitLabel:b,onSubmitValid:E,onSubmitInvalid:C,handleSubmit:T,secondaryAction:S,...v}=e,_=B5[o],[P,k]=O.useState(!1),V=Y=>!(Y===!1||typeof Y=="object"&&Y.closeDialog===!1),U=Y=>async(...X)=>{if(!P)try{const j=Y(...X);if(j instanceof Promise){k(!0);const W=await j;k(!1),V(W)&&n()}else V(j)&&n()}catch(j){k(!1),console.error("Error in dialog action:",j)}};let q;const B=[];c&&B.push({key:"cancel",children:c,color:"secondary",onClick:U(d),loading:P}),m&&B.push({key:"confirm",children:m,color:o,onClick:U(p),loading:P}),b&&(B.push({key:"submit",children:b,type:"submit",loading:P}),T&&E&&(q={onSubmit:Y=>{Y.preventDefault(),Y.stopPropagation(),!P&&(k(!0),T(async(...X)=>{try{const j=await E(...X);k(!1),V(j)&&n()}catch(j){k(!1),console.error("Error in form submission:",j)}},async(...X)=>{try{await C?.(...X)}catch(j){console.error("Error in form validation:",j)}finally{k(!1)}})())}}));const K=()=>{P||n()};return L.jsxs(b6,{open:t,onClose:K,"aria-labelledby":r,"aria-describedby":a,...v,component:q&&"form"||void 0,...q,children:[L.jsxs(R6,{id:!_&&r||void 0,children:[l==="form"&&L.jsx(x3,{})||l===!0&&L.jsx(j0,{variant:"circle",color:u,children:L.jsx(_,{})})||L.jsx(j0,{variant:"circle",color:u,children:l})||void 0,!l&&i,L.jsx(ul,{size:"small",onClick:K,children:L.jsx(B1,{size:"1.25rem"})})]}),L.jsxs(A6,{children:[l&&L.jsx(Ve,{variant:"subtitle1",id:r,children:i}),L.jsx(I6,{id:a,children:s})]}),B.length>0&&L.jsxs(x6,{children:[L.jsx(ci,{mr:"auto",children:S}),B.map(Y=>O.createElement(ls,{...Y,key:Y.key,...B.length===1&&{fullWidth:!0}}))]})]})},so=(e,t)=>{const[n,r]=O.useState(!1),i=L.jsx(F5,{...e,open:n,onClose:()=>{r(!1),e.onClose?.()}}),a=O.useMemo(()=>({open:()=>r(!0),close:()=>r(!1)}),[]);return[i,a]},H5=()=>L.jsxs("svg",{width:"130",height:"30",viewBox:"0 0 130 30",fill:"currentColor",children:[L.jsx("path",{d:"M26.2097 15.5517C26.2097 10.4948 29.0713 7.95158 32.7786 7.95158C35.4147 7.95158 36.7961 9.20112 37.4445 10.2889H37.7265V8.28969H40.1369V22.6814C40.1369 27.018 37.952 29.5024 33.3848 29.5024C28.9162 29.5024 26.83 27.1356 26.5903 24.6071V24.1661H28.888C29.029 25.9302 30.2836 27.5325 33.3425 27.5325C36.4155 27.5325 37.656 25.8861 37.656 22.7843V20.9026H37.3741C36.6833 21.9758 35.3442 23.1371 32.7786 23.1371C29.0713 23.1371 26.2097 20.6086 26.2097 15.5517ZM28.7189 15.5517C28.7189 19.1386 30.5373 21.1084 33.2297 21.1084C35.9221 21.1084 37.7406 19.1386 37.7406 15.5517C37.7406 11.9648 35.9221 9.99494 33.2297 9.99494C30.5373 9.99494 28.7189 11.9648 28.7189 15.5517ZM43.7132 23.2694V8.28969H46.1237V10.4065H46.4056C47.0118 9.12762 48.1958 7.84868 51.142 8.15739V10.3918C48.1677 10.0684 46.1942 11.1563 46.1942 14.9196V23.2694H43.7132ZM55.1754 12.6116H52.8776V12.1706C53.1737 9.55393 55.4714 7.93688 58.925 7.93688C62.3786 7.93688 64.6481 9.55393 64.6481 13.2878V20.2264C64.6481 20.9908 65.0005 21.373 65.7336 21.373H66.537V23.2694H65.3248C63.5909 23.2694 62.7592 22.3433 62.6746 20.9467H62.3927C61.6456 22.3874 60.2501 23.5928 57.3885 23.5928C54.3014 23.5928 52.1446 21.7847 52.1446 19.0945C52.1446 16.1544 54.3437 14.9343 57.1348 14.655L60.4615 14.3316C61.6456 14.214 62.2799 13.8758 62.2799 12.7292C62.2799 10.8182 61.0536 9.86263 58.8827 9.86263C56.7119 9.86263 55.2599 10.7888 55.1754 12.6116ZM54.5974 19.0063C54.5974 20.6086 55.8802 21.667 57.7832 21.667C60.0668 21.667 62.294 20.2705 62.294 16.6542V15.6546H62.0121C61.5751 15.9339 61.1522 16.0956 59.8836 16.2279L57.6986 16.4484C55.7251 16.6689 54.5974 17.3745 54.5974 19.0063ZM81.7299 2.10083V23.2694H79.3194V21.1378H79.0375C78.3747 22.3433 76.951 23.6075 74.2304 23.6075C70.4948 23.6075 67.6333 20.9614 67.6333 15.7869C67.6333 10.5977 70.4948 7.95158 74.2304 7.95158C76.951 7.95158 78.3324 9.21582 78.9668 10.3183H79.2489V2.10083H81.7299ZM79.3335 15.7869C79.3335 12.053 77.4726 9.99494 74.7379 9.99494C72.0032 9.99494 70.1424 12.053 70.1424 15.7869C70.1424 19.5061 72.0032 21.5641 74.7379 21.5641C77.4726 21.5641 79.3335 19.5061 79.3335 15.7869ZM85.2595 5.57012V2.48304H87.8109V5.57012H85.2595ZM85.3018 23.2694V8.28969H87.7827V23.2694H85.3018ZM90.4861 15.7722C90.4861 10.6859 93.1503 7.93688 97.3651 7.93688C101.608 7.93688 103.906 10.7153 103.906 15.1254V16.3308H92.8966C92.953 19.6237 94.6022 21.667 97.3651 21.667C99.9871 21.667 101.157 20.0206 101.383 18.58H103.596V19.021C103.286 20.8585 101.679 23.6222 97.3792 23.6222C93.1644 23.6222 90.4861 20.8732 90.4861 15.7722ZM92.9389 14.4492H101.524C101.495 11.7149 100.114 9.89204 97.351 9.89204C94.6445 9.89204 93.1362 11.7443 92.9389 14.4492ZM106.613 23.2694V8.28969H109.024V10.4065H109.306C109.785 9.45102 110.997 7.95158 113.957 7.95158C117.115 7.95158 119.201 9.75973 119.201 13.1996V23.2694H116.72V13.376C116.72 11.024 115.381 9.98024 113.365 9.98024C111.068 9.98024 109.094 11.5091 109.094 14.6256V23.2694H106.613ZM120.923 10.186V8.28969H123.784V4.15888H126.251V8.28969H129.564V10.186H126.251V19.9618C126.251 20.7997 126.617 21.2701 127.52 21.2701H129.479V23.2694H127.069C124.968 23.2694 123.784 22.1816 123.784 20.0059V10.186H120.923Z"}),L.jsx("path",{d:"M18.0703 2.45142L10.571 23.4436H7.5481L15.0474 2.45142H18.0703Z"}),L.jsx("path",{d:"M0 23.6859V20.4192H3.13253V23.6859H0Z"})]}),z5=()=>L.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("path",{d:"M18.8379 5.25L13.7788 18.8297H11.2112L16.2703 5.25H18.8379Z",fill:"currentColor"}),L.jsx("path",{d:"M5.0625 18.8297V15.8246H7.97243V18.8297H5.0625Z",fill:"currentColor"})]}),U5=ue(af)(({theme:e})=>{const{spacing:t}=e;return{height:"4rem"}}),V5=ue(vg)(({theme:e})=>{const{spacing:t}=e;return{height:"3.25rem",gap:"0.5rem"}}),j5=ue("img")(({theme:e})=>{const{palette:t}=e;return{width:"2.25rem",height:"2.25rem",borderRadius:"0.5rem",border:`1px solid ${t.divider}`,objectFit:"cover"}}),q5=ue("span")(({theme:e})=>{const{palette:t,typography:n}=e;return{...n.subtitle2,fontWeight:n.fontWeightLight,color:t.text.primary}}),$5=ue("span")(({theme:e})=>{const{palette:t,typography:n}=e;return{...n.body2,fontWeight:n.fontWeightLight,color:t.text.secondary}}),pc=(e,t)=>L.jsxs(V5,{value:e.name,children:[L.jsx(j5,{src:e.logoUrl}),L.jsxs(Je,{gap:.25,children:[L.jsx(q5,{children:e.displayName}),L.jsx($5,{children:e.name})]})]},e.name),_R=()=>{const[{modelName:e,modelInfoList:t},{setModelName:n}]=fa();return L.jsx(U5,{value:e,onChange:r=>n(String(r.target.value)),renderValue:r=>{const i=t.find(a=>a.name===r);return i&&pc(i)||void 0},children:t.map(r=>pc(r,r.name===e))})},W5={"linux/mac":"Linux/MacOS",windows:"Windows"},Y5=ue("div")(({theme:e})=>{const{palette:t,spacing:n}=e;return{display:"flex",flexFlow:"row nowrap",justifyContent:"space-between",alignItems:"center",paddingInline:n(2),paddingBlock:n(1.5),gap:n(1),overflow:"hidden",borderRadius:"0.7rem",backgroundColor:t.background.area}}),gc=()=>{const[{clusterInfo:{nodeJoinCommand:e}}]=fa(),[t,n]=O.useState();O.useEffect(()=>{if(t){const i=setTimeout(()=>{n(void 0)},2e3);return()=>clearTimeout(i)}},[t]);const r=cs(async i=>{await navigator.clipboard.writeText(e[i]),n(i)});return L.jsx(Je,{gap:1,children:Object.entries(e).map(([i,a])=>L.jsxs(Je,{gap:1,children:[L.jsxs(Ve,{variant:"subtitle2",children:["For ",W5[i]||i,":"]}),L.jsxs(Y5,{children:[L.jsx(Ve,{sx:{flex:1,lineHeight:"1.125rem",whiteSpace:"wrap"},variant:"pre",children:a}),L.jsx(ul,{sx:{flex:"none",fontSize:"1.5rem"},size:"em",onClick:()=>r(i),children:t===i&&L.jsx(of,{})||L.jsx(uf,{})})]})]},i))})};function ml(e,t){e.indexOf(t)===-1&&e.push(t)}function pl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Yn=(e,t,n)=>n>t?t:n{};const Gn={},lf=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function cf(e){return typeof e=="object"&&e!==null}const df=e=>/^0[^.\s]+$/u.test(e);function bl(e){let t;return()=>(t===void 0&&(t=e()),t)}const dn=e=>e,G5=(e,t)=>n=>t(e(n)),pa=(...e)=>e.reduce(G5),ta=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class yl{constructor(){this.subscriptions=[]}add(t){return ml(this.subscriptions,t),()=>pl(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;ae*1e3,Mn=e=>e/1e3;function hf(e,t){return t?e*(1e3/t):0}const ff=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,K5=1e-7,X5=12;function Q5(e,t,n,r,i){let a,s,o=0;do s=t+(n-t)/2,a=ff(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>K5&&++oQ5(a,0,1,e,n);return a=>a===0||a===1?a:ff(i(a),t,r)}const mf=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,pf=e=>t=>1-e(1-t),gf=ga(.33,1.53,.69,.99),Tl=pf(gf),bf=mf(Tl),yf=e=>(e*=2)<1?.5*Tl(e):.5*(2-Math.pow(2,-10*(e-1))),El=e=>1-Math.sin(Math.acos(e)),Tf=pf(El),Ef=mf(El),Z5=ga(.42,0,1,1),J5=ga(0,0,.58,1),xf=ga(.42,0,.58,1),e7=e=>Array.isArray(e)&&typeof e[0]!="number",vf=e=>Array.isArray(e)&&typeof e[0]=="number",t7={linear:dn,easeIn:Z5,easeInOut:xf,easeOut:J5,circIn:El,circInOut:Ef,circOut:Tf,backIn:Tl,backInOut:bf,backOut:gf,anticipate:yf},n7=e=>typeof e=="string",bc=e=>{if(vf(e)){gl(e.length===4);const[t,n,r,i]=e;return ga(t,n,r,i)}else if(n7(e))return t7[e];return e},Sf=O.createContext({}),Af=O.createContext({strict:!1}),Cf=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Os=O.createContext({});function Bs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function na(e){return typeof e=="string"||Array.isArray(e)}const xl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],vl=["initial",...xl];function Fs(e){return Bs(e.animate)||vl.some(t=>na(e[t]))}function wf(e){return!!(Fs(e)||e.variants)}function r7(e,t){if(Fs(e)){const{initial:n,animate:r}=e;return{initial:n===!1||na(n)?n:void 0,animate:na(r)?r:void 0}}return e.inherit!==!1?t:{}}function i7(e){const{initial:t,animate:n}=r7(e,O.useContext(Os));return O.useMemo(()=>({initial:t,animate:n}),[yc(t),yc(n)])}function yc(e){return Array.isArray(e)?e.join(" "):e}const Pa=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function a7(e,t){let n=new Set,r=new Set,i=!1,a=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function u(c){s.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,d=!1,m=!1)=>{const b=m&&i?n:r;return d&&s.add(c),b.has(c)||b.add(c),c},cancel:c=>{r.delete(c),s.delete(c)},process:c=>{if(o=c,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),n.clear(),i=!1,a&&(a=!1,l.process(c))}};return l}const s7=40;function kf(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=Pa.reduce((v,_)=>(v[_]=a7(a),v),{}),{setup:o,read:u,resolveKeyframes:l,preUpdate:c,update:d,preRender:m,render:p,postRender:b}=s,E=()=>{const v=Gn.useManualTiming?i.timestamp:performance.now();n=!1,Gn.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(v-i.timestamp,s7),1)),i.timestamp=v,i.isProcessing=!0,o.process(i),u.process(i),l.process(i),c.process(i),d.process(i),m.process(i),p.process(i),b.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(E))},C=()=>{n=!0,r=!0,i.isProcessing||e(E)};return{schedule:Pa.reduce((v,_)=>{const P=s[_];return v[_]=(k,V=!1,U=!1)=>(n||C(),P.schedule(k,V,U)),v},{}),cancel:v=>{for(let _=0;_(es===void 0&&Gt.set(It.isProcessing||Gn.useManualTiming?It.timestamp:performance.now()),es),set:e=>{es=e,queueMicrotask(o7)}},If=e=>t=>typeof t=="string"&&t.startsWith(e),Sl=If("--"),u7=If("var(--"),Al=e=>u7(e)?l7.test(e.split("/*")[0].trim()):!1,l7=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,di={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ra={...di,transform:e=>Yn(0,1,e)},Oa={...di,default:1},Hi=e=>Math.round(e*1e5)/1e5,Cl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function c7(e){return e==null}const d7=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,wl=(e,t)=>n=>!!(typeof n=="string"&&d7.test(n)&&n.startsWith(e)||t&&!c7(n)&&Object.prototype.hasOwnProperty.call(n,t)),Nf=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,o]=r.match(Cl);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},h7=e=>Yn(0,255,e),uo={...di,transform:e=>Math.round(h7(e))},Nr={test:wl("rgb","red"),parse:Nf("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+uo.transform(e)+", "+uo.transform(t)+", "+uo.transform(n)+", "+Hi(ra.transform(r))+")"};function f7(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const hu={test:wl("#"),parse:f7,transform:Nr.transform},ba=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),sr=ba("deg"),Rn=ba("%"),Ee=ba("px"),m7=ba("vh"),p7=ba("vw"),Tc={...Rn,parse:e=>Rn.parse(e)/100,transform:e=>Rn.transform(e*100)},Kr={test:wl("hsl","hue"),parse:Nf("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Rn.transform(Hi(t))+", "+Rn.transform(Hi(n))+", "+Hi(ra.transform(r))+")"},yt={test:e=>Nr.test(e)||hu.test(e)||Kr.test(e),parse:e=>Nr.test(e)?Nr.parse(e):Kr.test(e)?Kr.parse(e):hu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Nr.transform(e):Kr.transform(e),getAnimatableNone:e=>{const t=yt.parse(e);return t.alpha=0,yt.transform(t)}},g7=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function b7(e){return isNaN(e)&&typeof e=="string"&&(e.match(Cl)?.length||0)+(e.match(g7)?.length||0)>0}const Mf="number",Rf="color",y7="var",T7="var(",Ec="${}",E7=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ia(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(E7,u=>(yt.test(u)?(r.color.push(a),i.push(Rf),n.push(yt.parse(u))):u.startsWith(T7)?(r.var.push(a),i.push(y7),n.push(u)):(r.number.push(a),i.push(Mf),n.push(parseFloat(u))),++a,Ec)).split(Ec);return{values:n,split:o,indexes:r,types:i}}function Df(e){return ia(e).values}function _f(e){const{split:t,types:n}=ia(e),r=t.length;return i=>{let a="";for(let s=0;stypeof e=="number"?0:yt.test(e)?yt.getAnimatableNone(e):e;function v7(e){const t=Df(e);return _f(e)(t.map(x7))}const fr={test:b7,parse:Df,createTransformer:_f,getAnimatableNone:v7};function lo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function S7({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,u=2*n-o;i=lo(u,o,e+1/3),a=lo(u,o,e),s=lo(u,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function hs(e,t){return n=>n>0?t:e}const ot=(e,t,n)=>e+(t-e)*n,co=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},A7=[hu,Nr,Kr],C7=e=>A7.find(t=>t.test(e));function xc(e){const t=C7(e);if(!t)return!1;let n=t.parse(e);return t===Kr&&(n=S7(n)),n}const vc=(e,t)=>{const n=xc(e),r=xc(t);if(!n||!r)return hs(e,t);const i={...n};return a=>(i.red=co(n.red,r.red,a),i.green=co(n.green,r.green,a),i.blue=co(n.blue,r.blue,a),i.alpha=ot(n.alpha,r.alpha,a),Nr.transform(i))},fu=new Set(["none","hidden"]);function w7(e,t){return fu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function k7(e,t){return n=>ot(e,t,n)}function kl(e){return typeof e=="number"?k7:typeof e=="string"?Al(e)?hs:yt.test(e)?vc:M7:Array.isArray(e)?Lf:typeof e=="object"?yt.test(e)?vc:I7:hs}function Lf(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>kl(a)(a,t[s]));return a=>{for(let s=0;s{for(const a in r)n[a]=r[a](i);return n}}function N7(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=fr.createTransformer(t),r=ia(e),i=ia(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?fu.has(e)&&!i.values.length||fu.has(t)&&!r.values.length?w7(e,t):pa(Lf(N7(r,i),i.values),n):hs(e,t)};function Pf(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ot(e,t,n):kl(e)(e,t)}const R7=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>rt.update(t,n),stop:()=>hr(t),now:()=>It.isProcessing?It.timestamp:Gt.now()}},Of=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a=fs?1/0:t}function D7(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Il(r),fs);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:Mn(i)}}const _7=5;function Bf(e,t,n){const r=Math.max(t-_7,0);return hf(n-e(r),t-r)}const ct={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ho=.001;function L7({duration:e=ct.duration,bounce:t=ct.bounce,velocity:n=ct.velocity,mass:r=ct.mass}){let i,a,s=1-t;s=Yn(ct.minDamping,ct.maxDamping,s),e=Yn(ct.minDuration,ct.maxDuration,Mn(e)),s<1?(i=l=>{const c=l*s,d=c*e,m=c-n,p=mu(l,s),b=Math.exp(-d);return ho-m/p*b},a=l=>{const d=l*s*e,m=d*n+n,p=Math.pow(s,2)*Math.pow(l,2)*e,b=Math.exp(-d),E=mu(Math.pow(l,2),s);return(-i(l)+ho>0?-1:1)*((m-p)*b)/E}):(i=l=>{const c=Math.exp(-l*e),d=(l-n)*e+1;return-ho+c*d},a=l=>{const c=Math.exp(-l*e),d=(n-l)*(e*e);return c*d});const o=5/e,u=O7(i,a,o);if(e=Nn(e),isNaN(u))return{stiffness:ct.stiffness,damping:ct.damping,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const P7=12;function O7(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function H7(e){let t={velocity:ct.velocity,stiffness:ct.stiffness,damping:ct.damping,mass:ct.mass,isResolvedFromDuration:!1,...e};if(!Sc(e,F7)&&Sc(e,B7))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Yn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ct.mass,stiffness:i,damping:a}}else{const n=L7(e);t={...t,...n,mass:ct.mass},t.isResolvedFromDuration=!0}return t}function ms(e=ct.visualDuration,t=ct.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:a},{stiffness:u,damping:l,mass:c,duration:d,velocity:m,isResolvedFromDuration:p}=H7({...n,velocity:-Mn(n.velocity||0)}),b=m||0,E=l/(2*Math.sqrt(u*c)),C=s-a,T=Mn(Math.sqrt(u/c)),S=Math.abs(C)<5;r||(r=S?ct.restSpeed.granular:ct.restSpeed.default),i||(i=S?ct.restDelta.granular:ct.restDelta.default);let v;if(E<1){const P=mu(T,E);v=k=>{const V=Math.exp(-E*T*k);return s-V*((b+E*T*C)/P*Math.sin(P*k)+C*Math.cos(P*k))}}else if(E===1)v=P=>s-Math.exp(-T*P)*(C+(b+T*C)*P);else{const P=T*Math.sqrt(E*E-1);v=k=>{const V=Math.exp(-E*T*k),U=Math.min(P*k,300);return s-V*((b+E*T*C)*Math.sinh(U)+P*C*Math.cosh(U))/P}}const _={calculatedDuration:p&&d||null,next:P=>{const k=v(P);if(p)o.done=P>=d;else{let V=P===0?b:0;E<1&&(V=P===0?Nn(b):Bf(v,P,k));const U=Math.abs(V)<=r,q=Math.abs(s-k)<=i;o.done=U&&q}return o.value=o.done?s:k,o},toString:()=>{const P=Math.min(Il(_),fs),k=Of(V=>_.next(P*V).value,P,30);return P+"ms "+k},toTransition:()=>{}};return _}ms.applyToOptions=e=>{const t=D7(e,100,ms);return e.ease=t.ease,e.duration=Nn(t.duration),e.type="keyframes",e};function pu({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:u,restDelta:l=.5,restSpeed:c}){const d=e[0],m={done:!1,value:d},p=U=>o!==void 0&&Uu,b=U=>o===void 0?u:u===void 0||Math.abs(o-U)-E*Math.exp(-U/r),v=U=>T+S(U),_=U=>{const q=S(U),B=v(U);m.done=Math.abs(q)<=l,m.value=m.done?T:B};let P,k;const V=U=>{p(m.value)&&(P=U,k=ms({keyframes:[m.value,b(m.value)],velocity:Bf(v,U,m.value),damping:i,stiffness:a,restDelta:l,restSpeed:c}))};return V(0),{calculatedDuration:null,next:U=>{let q=!1;return!k&&P===void 0&&(q=!0,_(U),V(U)),P!==void 0&&U>=P?k.next(U-P):(!q&&_(U),m)}}}function z7(e,t,n){const r=[],i=n||Gn.mix||Pf,a=e.length-1;for(let s=0;st[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=z7(t,r,i),u=o.length,l=c=>{if(s&&c1)for(;dl(Yn(e[0],e[a-1],c)):l}function V7(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ta(0,t,r);e.push(ot(n,1,i))}}function j7(e){const t=[0];return V7(t,e.length-1),t}function q7(e,t){return e.map(n=>n*t)}function $7(e,t){return e.map(()=>t||xf).splice(0,e.length-1)}function zi({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=e7(r)?r.map(bc):bc(r),a={done:!1,value:t[0]},s=q7(n&&n.length===t.length?n:j7(t),e),o=U7(s,t,{ease:Array.isArray(i)?i:$7(t,i)});return{calculatedDuration:e,next:u=>(a.value=o(u),a.done=u>=e,a)}}const W7=e=>e!==null;function Nl(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(W7),o=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!o||r===void 0?a[o]:r}const Y7={decay:pu,inertia:pu,tween:zi,keyframes:zi,spring:ms};function Ff(e){typeof e.type=="string"&&(e.type=Y7[e.type])}class Ml{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const G7=e=>e/100;class Rl extends Ml{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Gt.now()&&this.tick(Gt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ff(t);const{type:n=zi,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=t;let{keyframes:o}=t;const u=n||zi;u!==zi&&typeof o[0]!="number"&&(this.mixKeyframes=pa(G7,Pf(o[0],o[1])),o=[0,100]);const l=u({...t,keyframes:o});a==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...o].reverse(),velocity:-s})),l.calculatedDuration===null&&(l.calculatedDuration=Il(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:c,repeat:d,repeatType:m,repeatDelay:p,type:b,onUpdate:E,finalKeyframe:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const T=this.currentTime-l*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?T<0:T>i;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,_=r;if(d){const U=Math.min(this.currentTime,i)/o;let q=Math.floor(U),B=U%1;!B&&U>=1&&(B=1),B===1&&q--,q=Math.min(q,d+1),!!(q%2)&&(m==="reverse"?(B=1-B,p&&(B-=p/o)):m==="mirror"&&(_=s)),v=Yn(0,1,B)*o}const P=S?{done:!1,value:c[0]}:_.next(v);a&&(P.value=a(P.value));let{done:k}=P;!S&&u!==null&&(k=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return V&&b!==pu&&(P.value=Nl(c,this.options,C,this.speed)),E&&E(P.value),V&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return Mn(this.calculatedDuration)}get time(){return Mn(this.currentTime)}set time(t){t=Nn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Gt.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Mn(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=R7,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Gt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function K7(e){for(let t=1;te*180/Math.PI,gu=e=>{const t=Mr(Math.atan2(e[1],e[0]));return bu(t)},X7={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:gu,rotateZ:gu,skewX:e=>Mr(Math.atan(e[1])),skewY:e=>Mr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},bu=e=>(e=e%360,e<0&&(e+=360),e),Ac=gu,Cc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),wc=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Q7={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Cc,scaleY:wc,scale:e=>(Cc(e)+wc(e))/2,rotateX:e=>bu(Mr(Math.atan2(e[6],e[5]))),rotateY:e=>bu(Mr(Math.atan2(-e[2],e[0]))),rotateZ:Ac,rotate:Ac,skewX:e=>Mr(Math.atan(e[4])),skewY:e=>Mr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function yu(e){return e.includes("scale")?1:0}function Tu(e,t){if(!e||e==="none")return yu(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Q7,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=X7,i=o}if(!i)return yu(t);const a=r[t],s=i[1].split(",").map(J7);return typeof a=="function"?a(s):s[a]}const Z7=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Tu(n,t)};function J7(e){return parseFloat(e.trim())}const hi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],fi=new Set(hi),kc=e=>e===di||e===Ee,e8=new Set(["x","y","z"]),t8=hi.filter(e=>!e8.has(e));function n8(e){const t=[];return t8.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Rr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Tu(t,"x"),y:(e,{transform:t})=>Tu(t,"y")};Rr.translateX=Rr.x;Rr.translateY=Rr.y;const Dr=new Set;let Eu=!1,xu=!1,vu=!1;function Hf(){if(xu){const e=Array.from(Dr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=n8(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,s])=>{r.getValue(a)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}xu=!1,Eu=!1,Dr.forEach(e=>e.complete(vu)),Dr.clear()}function zf(){Dr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(xu=!0)})}function r8(){vu=!0,zf(),Hf(),vu=!1}class Dl{constructor(t,n,r,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Dr.add(this),Eu||(Eu=!0,rt.read(zf),rt.resolveKeyframes(Hf))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i?.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const o=r.readValue(n,s);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}K7(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Dr.delete(this)}cancel(){this.state==="scheduled"&&(Dr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const i8=e=>e.startsWith("--");function a8(e,t,n){i8(t)?e.style.setProperty(t,n):e.style[t]=n}const s8=bl(()=>window.ScrollTimeline!==void 0),o8={};function u8(e,t){const n=bl(e);return()=>o8[t]??n()}const Uf=u8(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Pi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ic={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Pi([0,.65,.55,1]),circOut:Pi([.55,0,1,.45]),backIn:Pi([.31,.01,.66,-.59]),backOut:Pi([.33,1.53,.69,.99])};function Vf(e,t){if(e)return typeof e=="function"?Uf()?Of(e,t):"ease-out":vf(e)?Pi(e):Array.isArray(e)?e.map(n=>Vf(n,t)||Ic.easeOut):Ic[e]}function l8(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:u}={},l=void 0){const c={[t]:n};u&&(c.offset=u);const d=Vf(o,i);Array.isArray(d)&&(c.easing=d);const m={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return l&&(m.pseudoElement=l),e.animate(c,m)}function jf(e){return typeof e=="function"&&"applyToOptions"in e}function c8({type:e,...t}){return jf(e)&&Uf()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class d8 extends Ml{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:o,onComplete:u}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,gl(typeof t.type!="string");const l=c8(t);this.animation=l8(n,r,i,l,a),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const c=Nl(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(c):a8(n,r,c),this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Mn(Number(t))}get time(){return Mn(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Nn(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&s8()?(this.animation.timeline=t,dn):n(this)}}const qf={anticipate:yf,backInOut:bf,circInOut:Ef};function h8(e){return e in qf}function f8(e){typeof e.ease=="string"&&h8(e.ease)&&(e.ease=qf[e.ease])}const Nc=10;class m8 extends d8{constructor(t){f8(t),Ff(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new Rl({...s,autoplay:!1}),u=Nn(this.finishedTime??this.time);n.setWithVelocity(o.sample(u-Nc).value,o.sample(u).value,Nc),o.stop()}}const Mc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(fr.test(e)||e==="0")&&!e.startsWith("url("));function p8(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function T8(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=t.owner.getProps();return y8()&&n&&b8.has(n)&&(n!=="transform"||!l)&&!u&&!r&&i!=="mirror"&&a!==0&&s!=="inertia"}const E8=40;class x8 extends Ml{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:o,name:u,motionValue:l,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Gt.now();const m={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,name:u,motionValue:l,element:c,...d},p=c?.KeyframeResolver||Dl;this.keyframeResolver=new p(o,(b,E,C)=>this.onKeyframesResolved(b,E,m,!C),u,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:s,velocity:o,delay:u,isHandoff:l,onUpdate:c}=r;this.resolvedAt=Gt.now(),g8(t,a,s,o)||((Gn.instantAnimations||!u)&&c?.(Nl(t,r,n)),t[0]=t[t.length-1],Su(r),r.repeat=0);const m={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>E8?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!l&&T8(m)?new m8({...m,element:m.motionValue.owner.current}):new Rl(m);p.finished.then(()=>this.notifyFinished()).catch(dn),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),r8()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const v8=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function S8(e){const t=v8.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function $f(e,t,n=1){const[r,i]=S8(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return lf(s)?parseFloat(s):s}return Al(i)?$f(i,t,n+1):i}function _l(e,t){return e?.[t]??e?.default??e}const Wf=new Set(["width","height","top","left","right","bottom",...hi]),A8={test:e=>e==="auto",parse:e=>e},Yf=e=>t=>t.test(e),Gf=[di,Ee,Rn,sr,p7,m7,A8],Rc=e=>Gf.find(Yf(e));function C8(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||df(e):!0}const w8=new Set(["brightness","contrast","saturate","opacity"]);function k8(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Cl)||[];if(!r)return e;const i=n.replace(r,"");let a=w8.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const I8=/\b([a-z-]*)\(.*?\)/gu,Au={...fr,getAnimatableNone:e=>{const t=e.match(I8);return t?t.map(k8).join(" "):e}},Dc={...di,transform:Math.round},N8={rotate:sr,rotateX:sr,rotateY:sr,rotateZ:sr,scale:Oa,scaleX:Oa,scaleY:Oa,scaleZ:Oa,skew:sr,skewX:sr,skewY:sr,distance:Ee,translateX:Ee,translateY:Ee,translateZ:Ee,x:Ee,y:Ee,z:Ee,perspective:Ee,transformPerspective:Ee,opacity:ra,originX:Tc,originY:Tc,originZ:Ee},Ll={borderWidth:Ee,borderTopWidth:Ee,borderRightWidth:Ee,borderBottomWidth:Ee,borderLeftWidth:Ee,borderRadius:Ee,radius:Ee,borderTopLeftRadius:Ee,borderTopRightRadius:Ee,borderBottomRightRadius:Ee,borderBottomLeftRadius:Ee,width:Ee,maxWidth:Ee,height:Ee,maxHeight:Ee,top:Ee,right:Ee,bottom:Ee,left:Ee,padding:Ee,paddingTop:Ee,paddingRight:Ee,paddingBottom:Ee,paddingLeft:Ee,margin:Ee,marginTop:Ee,marginRight:Ee,marginBottom:Ee,marginLeft:Ee,backgroundPositionX:Ee,backgroundPositionY:Ee,...N8,zIndex:Dc,fillOpacity:ra,strokeOpacity:ra,numOctaves:Dc},M8={...Ll,color:yt,backgroundColor:yt,outlineColor:yt,fill:yt,stroke:yt,borderColor:yt,borderTopColor:yt,borderRightColor:yt,borderBottomColor:yt,borderLeftColor:yt,filter:Au,WebkitFilter:Au},Kf=e=>M8[e];function Xf(e,t){let n=Kf(e);return n!==Au&&(n=fr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const R8=new Set(["auto","none","0"]);function D8(e,t,n){let r=0,i;for(;r{t.getValue(o).set(u)}),this.resolveNoneKeyframes()}}function L8(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const Qf=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function P8(e){return cf(e)&&"offsetHeight"in e}const _c=30,O8=e=>!isNaN(parseFloat(e));class B8{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const i=Gt.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Gt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=O8(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new yl);const r=this.events[t].add(n);return t==="change"?()=>{r(),rt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Gt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>_c)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,_c);return hf(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ai(e,t){return new B8(e,t)}const{schedule:Pl}=kf(queueMicrotask,!1),gn={x:!1,y:!1};function Zf(){return gn.x||gn.y}function F8(e){return e==="x"||e==="y"?gn[e]?null:(gn[e]=!0,()=>{gn[e]=!1}):gn.x||gn.y?null:(gn.x=gn.y=!0,()=>{gn.x=gn.y=!1})}function Jf(e,t){const n=L8(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Lc(e){return!(e.pointerType==="touch"||Zf())}function H8(e,t,n={}){const[r,i,a]=Jf(e,n),s=o=>{if(!Lc(o))return;const{target:u}=o,l=t(u,o);if(typeof l!="function"||!u)return;const c=d=>{Lc(d)&&(l(d),u.removeEventListener("pointerleave",c))};u.addEventListener("pointerleave",c,i)};return r.forEach(o=>{o.addEventListener("pointerenter",s,i)}),a}const em=(e,t)=>t?e===t?!0:em(e,t.parentElement):!1,Ol=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,z8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function U8(e){return z8.has(e.tagName)||e.tabIndex!==-1}const ts=new WeakSet;function Pc(e){return t=>{t.key==="Enter"&&e(t)}}function fo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const V8=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Pc(()=>{if(ts.has(n))return;fo(n,"down");const i=Pc(()=>{fo(n,"up")}),a=()=>fo(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Oc(e){return Ol(e)&&!Zf()}function j8(e,t,n={}){const[r,i,a]=Jf(e,n),s=o=>{const u=o.currentTarget;if(!Oc(o))return;ts.add(u);const l=t(u,o),c=(p,b)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",m),ts.has(u)&&ts.delete(u),Oc(p)&&typeof l=="function"&&l(p,{success:b})},d=p=>{c(p,u===window||u===document||n.useGlobalTarget||em(u,p.target))},m=p=>{c(p,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",m,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,i),P8(o)&&(o.addEventListener("focus",l=>V8(l,i)),!U8(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),a}function tm(e){return cf(e)&&"ownerSVGElement"in e}function q8(e){return tm(e)&&e.tagName==="svg"}const Rt=e=>!!(e&&e.getVelocity),$8=[...Gf,yt,fr],W8=e=>$8.find(Yf(e)),aa={};function Y8(e){for(const t in e)aa[t]=e[t],Sl(t)&&(aa[t].isCSSVariable=!0)}function nm(e,{layout:t,layoutId:n}){return fi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!aa[e]||e==="opacity")}const G8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},K8=hi.length;function X8(e,t,n){let r="",i=!0;for(let a=0;a({style:{},transform:{},transformOrigin:{},vars:{}});function rm(e,t,n){for(const r in t)!Rt(t[r])&&!nm(r,n)&&(e[r]=t[r])}function Q8({transformTemplate:e},t){return O.useMemo(()=>{const n=Fl();return Bl(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Z8(e,t){const n=e.style||{},r={};return rm(r,n,e),Object.assign(r,Q8(e,t)),r}function J8(e,t){const n={},r=Z8(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const eb={offset:"stroke-dashoffset",array:"stroke-dasharray"},tb={offset:"strokeDashoffset",array:"strokeDasharray"};function nb(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?eb:tb;e[a.offset]=Ee.transform(-r);const s=Ee.transform(t),o=Ee.transform(n);e[a.array]=`${s} ${o}`}function im(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...o},u,l,c){if(Bl(e,o,l),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:m}=e;d.transform&&(m.transform=d.transform,delete d.transform),(m.transform||d.transformOrigin)&&(m.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),m.transform&&(m.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&nb(d,i,a,s,!1)}const am=()=>({...Fl(),attrs:{}}),sm=e=>typeof e=="string"&&e.toLowerCase()==="svg";function rb(e,t,n,r){const i=O.useMemo(()=>{const a=am();return im(a,t,sm(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};rm(a,e.style,e),i.style={...a,...i.style}}return i}const ib=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ps(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ib.has(e)}let om=e=>!ps(e);function ab(e){typeof e=="function"&&(om=t=>t.startsWith("on")?!ps(t):e(t))}try{ab(require("@emotion/is-prop-valid").default)}catch{}function sb(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(om(i)||n===!0&&ps(i)||!t&&!ps(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const ob=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Hl(e){return typeof e!="string"||e.includes("-")?!1:!!(ob.indexOf(e)>-1||/[A-Z]/u.test(e))}function ub(e,t,n,{latestValues:r},i,a=!1){const o=(Hl(e)?rb:J8)(t,r,i,e),u=sb(t,typeof e=="string",a),l=e!==O.Fragment?{...u,...o,ref:n}:{},{children:c}=t,d=O.useMemo(()=>Rt(c)?c.get():c,[c]);return O.createElement(e,{...l,children:d})}const zl=O.createContext(null);function Bc(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ul(e,t,n,r){if(typeof t=="function"){const[i,a]=Bc(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=Bc(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function lb(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}function ns(e){return Rt(e)?e.get():e}function cb({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:db(n,r,i,e),renderState:t()}}function db(e,t,n,r){const i={},a=r(e,{});for(const m in a)i[m]=ns(a[m]);let{initial:s,animate:o}=e;const u=Fs(e),l=wf(e);t&&l&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?o:s;if(d&&typeof d!="boolean"&&!Bs(d)){const m=Array.isArray(d)?d:[d];for(let p=0;p(t,n)=>{const r=O.useContext(Os),i=O.useContext(zl),a=()=>cb(e,t,r,i);return n?a():lb(a)};function Vl(e,t,n){const{style:r}=e,i={};for(const a in r)(Rt(r[a])||t.style&&Rt(t.style[a])||nm(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}const hb=um({scrapeMotionValuesFromProps:Vl,createRenderState:Fl});function lm(e,t,n){const r=Vl(e,t,n);for(const i in e)if(Rt(e[i])||Rt(t[i])){const a=hi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const fb=um({scrapeMotionValuesFromProps:lm,createRenderState:am}),jl=typeof window<"u",Fc={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},si={};for(const e in Fc)si[e]={isEnabled:t=>Fc[e].some(n=>!!t[n])};function mb(e){for(const t in e)si[t]={...si[t],...e[t]}}const pb=Symbol.for("motionComponentSymbol");function Xr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function gb(e,t,n){const r=O.useRef(null);return O.useCallback(i=>{const a=r.current;r.current=i,i!==a&&(i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount())),n&&(typeof n=="function"?n(i):Xr(n)&&(n.current=i))},[t,n])}const ql=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),bb="framerAppearId",cm="data-"+ql(bb),dm=O.createContext({}),yb=jl?O.useLayoutEffect:O.useEffect;function Tb(e,t,n,r,i){const{visualElement:a}=O.useContext(Os),s=O.useContext(Af),o=O.useContext(zl),u=O.useContext(Cf).reducedMotion,l=O.useRef(null);r=r||s.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:a,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:u}));const c=l.current,d=O.useContext(dm);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&Eb(l.current,n,i,d);const m=O.useRef(!1);O.useInsertionEffect(()=>{c&&m.current&&c.update(n,o)});const p=n[cm],b=O.useRef(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return yb(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),b.current&&c.animationState&&c.animationState.animateChanges())}),O.useEffect(()=>{c&&(!b.current&&c.animationState&&c.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),b.current=!1),c.enteringChildren=void 0)}),c}function Eb(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:u,layoutRoot:l,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:hm(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&Xr(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:u,layoutRoot:l})}function hm(e){if(e)return e.options.allowProjection!==!1?e.projection:hm(e.parent)}function xb(e,{forwardMotionProps:t=!1}={},n,r){n&&mb(n);const i=Hl(e)?fb:hb;function a(o,u){let l;const c={...O.useContext(Cf),...o,layoutId:vb(o)},{isStatic:d}=c,m=i7(o),p=i(o,d);if(!d&&jl){Sb();const b=Ab(c);l=b.MeasureLayout,m.visualElement=Tb(e,p,c,r,b.ProjectionNode)}return L.jsxs(Os.Provider,{value:m,children:[l&&m.visualElement?L.jsx(l,{visualElement:m.visualElement,...c}):null,ub(e,o,gb(p,m.visualElement,u),p,d,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=O.forwardRef(a);return s[pb]=e,s}function vb({layoutId:e}){const t=O.useContext(Sf).id;return t&&e!==void 0?t+"-"+e:e}function Sb(e,t){O.useContext(Af).strict}function Ab(e){const{drag:t,layout:n}=si;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function fm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Cb({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function wb(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function mo(e){return e===void 0||e===1}function Cu({scale:e,scaleX:t,scaleY:n}){return!mo(e)||!mo(t)||!mo(n)}function Ir(e){return Cu(e)||mm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function mm(e){return Hc(e.x)||Hc(e.y)}function Hc(e){return e&&e!=="0%"}function gs(e,t,n){const r=e-n,i=t*r;return n+i}function zc(e,t,n,r,i){return i!==void 0&&(e=gs(e,i,r)),gs(e,n,r)+t}function wu(e,t=0,n=1,r,i){e.min=zc(e.min,t,n,r,i),e.max=zc(e.max,t,n,r,i)}function pm(e,{x:t,y:n}){wu(e.x,t.translate,t.scale,t.originPoint),wu(e.y,n.translate,n.scale,n.originPoint)}const Uc=.999999999999,Vc=1.0000000000001;function kb(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,s;for(let o=0;oUc&&(t.x=1),t.yUc&&(t.y=1)}function Qr(e,t){e.min=e.min+t,e.max=e.max+t}function jc(e,t,n,r,i=.5){const a=ot(e.min,e.max,i);wu(e,t,n,a,r)}function Zr(e,t){jc(e.x,t.x,t.scaleX,t.scale,t.originX),jc(e.y,t.y,t.scaleY,t.scale,t.originY)}function gm(e,t){return fm(wb(e.getBoundingClientRect(),t))}function Ib(e,t,n){const r=gm(e,n),{scroll:i}=t;return i&&(Qr(r.x,i.offset.x),Qr(r.y,i.offset.y)),r}const qc=()=>({translate:0,scale:1,origin:0,originPoint:0}),Jr=()=>({x:qc(),y:qc()}),$c=()=>({min:0,max:0}),ht=()=>({x:$c(),y:$c()}),ku={current:null},bm={current:!1};function Nb(){if(bm.current=!0,!!jl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ku.current=e.matches;e.addEventListener("change",t),t()}else ku.current=!1}const Mb=new WeakMap;function Rb(e,t,n){for(const r in t){const i=t[r],a=n[r];if(Rt(i))e.addValue(r,i);else if(Rt(a))e.addValue(r,ai(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,ai(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Wc=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Db{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Dl,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=Gt.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),bm.current||Nb(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ku.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),hr(this.notifyUpdate),hr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=fi.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&rt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in si){const n=si[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ht()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ai(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(lf(r)||df(r))?r=parseFloat(r):!W8(r)&&fr.test(n)&&(r=Xf(t,n)),this.setBaseTarget(t,Rt(r)?r.get():r)),Rt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=Ul(this.props,n,this.presenceContext?.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Rt(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new yl),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Pl.render(this.render)}}class ym extends Db{constructor(){super(...arguments),this.KeyframeResolver=_8}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Rt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Tm(e,{style:t,vars:n},r,i){const a=e.style;let s;for(s in t)a[s]=t[s];i?.applyProjectionStyles(a,r);for(s in n)a.setProperty(s,n[s])}function _b(e){return window.getComputedStyle(e)}class Lb extends ym{constructor(){super(...arguments),this.type="html",this.renderInstance=Tm}readValueFromInstance(t,n){if(fi.has(n))return this.projection?.isProjecting?yu(n):Z7(t,n);{const r=_b(t),i=(Sl(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return gm(t,n)}build(t,n,r){Bl(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Vl(t,n,r)}}const Em=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Pb(e,t,n,r){Tm(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Em.has(i)?i:ql(i),t.attrs[i])}class Ob extends ym{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ht}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(fi.has(n)){const r=Kf(n);return r&&r.default||0}return n=Em.has(n)?n:ql(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return lm(t,n,r)}build(t,n,r){im(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Pb(t,n,r,i)}mount(t){this.isSVGTag=sm(t.tagName),super.mount(t)}}const Bb=(e,t)=>Hl(e)?new Ob(t):new Lb(t,{allowProjection:e!==O.Fragment});function ti(e,t,n){const r=e.getProps();return Ul(r,t,n!==void 0?n:r.custom,e)}const Iu=e=>Array.isArray(e);function Fb(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ai(n))}function Hb(e){return Iu(e)?e[e.length-1]||0:e}function zb(e,t){const n=ti(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const o=Hb(a[s]);Fb(e,s,o)}}function Ub(e){return!!(Rt(e)&&e.add)}function Nu(e,t){const n=e.getValue("willChange");if(Ub(n))return n.add(t);if(!n&&Gn.WillChange){const r=new Gn.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function xm(e){return e.props[cm]}const Vb=e=>e!==null;function jb(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Vb),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const qb={type:"spring",stiffness:500,damping:25,restSpeed:10},$b=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Wb={type:"keyframes",duration:.8},Yb={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Gb=(e,{keyframes:t})=>t.length>2?Wb:fi.has(e)?e.startsWith("scale")?$b(t[1]):qb:Yb;function Kb({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:u,elapsed:l,...c}){return!!Object.keys(c).length}const $l=(e,t,n,r={},i,a)=>s=>{const o=_l(r,e)||{},u=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Nn(u);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-l,onUpdate:m=>{t.set(m),o.onUpdate&&o.onUpdate(m)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:i};Kb(o)||Object.assign(c,Gb(e,c)),c.duration&&(c.duration=Nn(c.duration)),c.repeatDelay&&(c.repeatDelay=Nn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Su(c),c.delay===0&&(d=!0)),(Gn.instantAnimations||Gn.skipAnimations)&&(d=!0,Su(c),c.delay=0),c.allowFlatten=!o.type&&!o.ease,d&&!a&&t.get()!==void 0){const m=jb(c.keyframes,o);if(m!==void 0){rt.update(()=>{c.onUpdate(m),c.onComplete()});return}}return o.isSync?new Rl(c):new x8(c)};function Xb({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function vm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...o}=t;r&&(a=r);const u=[],l=i&&e.animationState&&e.animationState.getState()[i];for(const c in o){const d=e.getValue(c,e.latestValues[c]??null),m=o[c];if(m===void 0||l&&Xb(l,c))continue;const p={delay:n,..._l(a||{},c)},b=d.get();if(b!==void 0&&!d.isAnimating&&!Array.isArray(m)&&m===b&&!p.velocity)continue;let E=!1;if(window.MotionHandoffAnimation){const T=xm(e);if(T){const S=window.MotionHandoffAnimation(T,c,rt);S!==null&&(p.startTime=S,E=!0)}}Nu(e,c),d.start($l(c,d,m,e.shouldReduceMotion&&Wf.has(c)?{type:!1}:p,e,E));const C=d.animation;C&&u.push(C)}return s&&Promise.all(u).then(()=>{rt.update(()=>{s&&zb(e,s)})}),u}function Sm(e,t,n,r=0,i=1){const a=Array.from(e).sort((l,c)=>l.sortNodePosition(c)).indexOf(t),s=e.size,o=(s-1)*r;return typeof n=="function"?n(a,s):i===1?a*r:o-a*r}function Mu(e,t,n={}){const r=ti(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(vm(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:d}=i;return Qb(e,t,u,l,c,d,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[u,l]=o==="beforeChildren"?[a,s]:[s,a];return u().then(()=>l())}else return Promise.all([a(),s(n.delay)])}function Qb(e,t,n=0,r=0,i=0,a=1,s){const o=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),o.push(Mu(u,t,{...s,delay:n+(typeof r=="function"?0:r)+Sm(e.variantChildren,u,r,i,a)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(o)}function Zb(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>Mu(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=Mu(e,t,n);else{const i=typeof t=="function"?ti(e,t,n.custom):t;r=Promise.all(vm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Am(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>Zb(e,n,r)))}function ry(e){let t=ny(e),n=Yc(),r=!0;const i=u=>(l,c)=>{const d=ti(e,c,u==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:m,transitionEnd:p,...b}=d;l={...l,...b,...p}}return l};function a(u){t=u(e)}function s(u){const{props:l}=e,c=Cm(e.parent)||{},d=[],m=new Set;let p={},b=1/0;for(let C=0;Cb&&_,q=!1;const B=Array.isArray(v)?v:[v];let K=B.reduce(i(T),{});P===!1&&(K={});const{prevResolvedValues:Y={}}=S,X={...Y,...K},j=le=>{U=!0,m.has(le)&&(q=!0,m.delete(le)),S.needsAnimating[le]=!0;const fe=e.getValue(le);fe&&(fe.liveStyle=!1)};for(const le in X){const fe=K[le],oe=Y[le];if(p.hasOwnProperty(le))continue;let I=!1;Iu(fe)&&Iu(oe)?I=!Am(fe,oe):I=fe!==oe,I?fe!=null?j(le):m.add(le):fe!==void 0&&m.has(le)?j(le):S.protectedKeys[le]=!0}S.prevProp=v,S.prevResolvedValues=K,S.isActive&&(p={...p,...K}),r&&e.blockInitialAnimation&&(U=!1);const W=k&&V;U&&(!W||q)&&d.push(...B.map(le=>{const fe={type:T};if(typeof le=="string"&&r&&!W&&e.manuallyAnimateOnMount&&e.parent){const{parent:oe}=e,I=ti(oe,le);if(oe.enteringChildren&&I){const{delayChildren:De}=I.transition||{};fe.delay=Sm(oe.enteringChildren,e,De)}}return{animation:le,options:fe}}))}if(m.size){const C={};if(typeof l.initial!="boolean"){const T=ti(e,Array.isArray(l.initial)?l.initial[0]:l.initial);T&&T.transition&&(C.transition=T.transition)}m.forEach(T=>{const S=e.getBaseTarget(T),v=e.getValue(T);v&&(v.liveStyle=!0),C[T]=S??null}),d.push({animation:C})}let E=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(E=!1),r=!1,E?t(d):Promise.resolve()}function o(u,l){if(n[u].isActive===l)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(u,l)),n[u].isActive=l;const c=s(u);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Yc(),r=!0}}}function iy(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Am(t,e):!1}function xr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Yc(){return{animate:xr(!0),whileInView:xr(),whileHover:xr(),whileTap:xr(),whileDrag:xr(),whileFocus:xr(),exit:xr()}}class br{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ay extends br{constructor(t){super(t),t.animationState||(t.animationState=ry(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Bs(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let sy=0;class oy extends br{constructor(){super(...arguments),this.id=sy++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const uy={animation:{Feature:ay},exit:{Feature:oy}};function sa(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ya(e){return{point:{x:e.pageX,y:e.pageY}}}const ly=e=>t=>Ol(t)&&e(t,ya(t));function Ui(e,t,n,r){return sa(e,t,ly(n),r)}const wm=1e-4,cy=1-wm,dy=1+wm,km=.01,hy=0-km,fy=0+km;function Ht(e){return e.max-e.min}function my(e,t,n){return Math.abs(e-t)<=n}function Gc(e,t,n,r=.5){e.origin=r,e.originPoint=ot(t.min,t.max,e.origin),e.scale=Ht(n)/Ht(t),e.translate=ot(n.min,n.max,e.origin)-e.originPoint,(e.scale>=cy&&e.scale<=dy||isNaN(e.scale))&&(e.scale=1),(e.translate>=hy&&e.translate<=fy||isNaN(e.translate))&&(e.translate=0)}function Vi(e,t,n,r){Gc(e.x,t.x,n.x,r?r.originX:void 0),Gc(e.y,t.y,n.y,r?r.originY:void 0)}function Kc(e,t,n){e.min=n.min+t.min,e.max=e.min+Ht(t)}function py(e,t,n){Kc(e.x,t.x,n.x),Kc(e.y,t.y,n.y)}function Xc(e,t,n){e.min=t.min-n.min,e.max=e.min+Ht(t)}function ji(e,t,n){Xc(e.x,t.x,n.x),Xc(e.y,t.y,n.y)}function on(e){return[e("x"),e("y")]}const Im=({current:e})=>e?e.ownerDocument.defaultView:null,Qc=(e,t)=>Math.abs(e-t);function gy(e,t){const n=Qc(e.x,t.x),r=Qc(e.y,t.y);return Math.sqrt(n**2+r**2)}class Nm{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=go(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,b=gy(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!b)return;const{point:E}=m,{timestamp:C}=It;this.history.push({...E,timestamp:C});const{onStart:T,onMove:S}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=po(p,this.transformPagePoint),rt.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:b,onSessionEnd:E,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=go(m.type==="pointercancel"?this.lastMoveEventInfo:po(p,this.transformPagePoint),this.history);this.startEvent&&b&&b(m,T),E&&E(m,T)},!Ol(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const o=ya(t),u=po(o,this.transformPagePoint),{point:l}=u,{timestamp:c}=It;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,go(u,this.history)),this.removeListeners=pa(Ui(this.contextWindow,"pointermove",this.handlePointerMove),Ui(this.contextWindow,"pointerup",this.handlePointerUp),Ui(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),hr(this.updatePoint)}}function po(e,t){return t?{point:t(e.point)}:e}function Zc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function go({point:e},t){return{point:e,delta:Zc(e,Mm(t)),offset:Zc(e,by(t)),velocity:yy(t,.1)}}function by(e){return e[0]}function Mm(e){return e[e.length-1]}function yy(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Mm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Nn(t)));)n--;if(!r)return{x:0,y:0};const a=Mn(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Ty(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ot(n,e,r.max):Math.min(e,n)),e}function Jc(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Ey(e,{top:t,left:n,bottom:r,right:i}){return{x:Jc(e.x,n,i),y:Jc(e.y,t,r)}}function ed(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=ta(t.min,t.max-r,e.min):r>i&&(n=ta(e.min,e.max-i,t.min)),Yn(0,1,n)}function Sy(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ru=.35;function Ay(e=Ru){return e===!1?e=0:e===!0&&(e=Ru),{x:td(e,"left","right"),y:td(e,"top","bottom")}}function td(e,t,n){return{min:nd(e,t),max:nd(e,n)}}function nd(e,t){return typeof e=="number"?e:e[t]||0}const Cy=new WeakMap;class wy{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ht(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=d=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ya(d).point)},s=(d,m)=>{const{drag:p,dragPropagation:b,onDragStart:E}=this.getProps();if(p&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=F8(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=m,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),on(T=>{let S=this.getAxisMotionValue(T).get()||0;if(Rn.test(S)){const{projection:v}=this.visualElement;if(v&&v.layout){const _=v.layout.layoutBox[T];_&&(S=Ht(_)*(parseFloat(S)/100))}}this.originPoint[T]=S}),E&&rt.postRender(()=>E(d,m)),Nu(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},o=(d,m)=>{this.latestPointerEvent=d,this.latestPanInfo=m;const{dragPropagation:p,dragDirectionLock:b,onDirectionLock:E,onDrag:C}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(b&&this.currentDirection===null){this.currentDirection=ky(T),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),C&&C(d,m)},u=(d,m)=>{this.latestPointerEvent=d,this.latestPanInfo=m,this.stop(d,m),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>on(d=>this.getAnimationState(d)==="paused"&&this.getAxisMotionValue(d).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Nm(t,{onSessionStart:a,onStart:s,onMove:o,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:Im(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&rt.postRender(()=>o(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ba(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Ty(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&Xr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Ey(r.layoutBox,t):this.constraints=!1,this.elastic=Ay(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&on(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=Sy(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Xr(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=Ib(r,i.root,this.visualElement.getTransformPagePoint());let s=xy(i.layout.layoutBox,a);if(n){const o=n(Cb(s));this.hasMutatedConstraints=!!o,o&&(s=fm(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),u=this.constraints||{},l=on(c=>{if(!Ba(c,n,this.currentDirection))return;let d=u&&u[c]||{};s&&(d={min:0,max:0});const m=i?200:1e6,p=i?40:1e7,b={type:"inertia",velocity:r?t[c]:0,bounceStiffness:m,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(c,b)});return Promise.all(l).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Nu(this.visualElement,t),r.start($l(t,r,0,n,this.visualElement,!1))}stopAnimation(){on(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){on(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){on(n=>{const{drag:r}=this.getProps();if(!Ba(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:o}=i.layout.layoutBox[n];a.set(t[n]-ot(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Xr(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};on(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const u=o.get();i[s]=vy({min:u,max:u},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),on(s=>{if(!Ba(s,t,null))return;const o=this.getAxisMotionValue(s),{min:u,max:l}=this.constraints[s];o.set(ot(u,l,i[s]))})}addListeners(){if(!this.visualElement.current)return;Cy.set(this.visualElement,this);const t=this.visualElement.current,n=Ui(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Xr(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),rt.read(r);const s=sa(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(on(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=u[c].translate,d.set(d.get()+u[c].translate))}),this.visualElement.render())}));return()=>{s(),n(),a(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=Ru,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:o}}}function Ba(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function ky(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Iy extends br{constructor(t){super(t),this.removeGroupControls=dn,this.removeListeners=dn,this.controls=new wy(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||dn}unmount(){this.removeGroupControls(),this.removeListeners()}}const rd=e=>(t,n)=>{e&&rt.postRender(()=>e(t,n))};class Ny extends br{constructor(){super(...arguments),this.removePointerDownListener=dn}onPointerDown(t){this.session=new Nm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Im(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:rd(t),onStart:rd(n),onMove:r,onEnd:(a,s)=>{delete this.session,i&&rt.postRender(()=>i(a,s))}}}mount(){this.removePointerDownListener=Ui(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function My(e=!0){const t=O.useContext(zl);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=O.useId();O.useEffect(()=>{if(e)return i(a)},[e]);const s=O.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}const rs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function id(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ki={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ee.test(e))e=parseFloat(e);else return e;const n=id(e,t.target.x),r=id(e,t.target.y);return`${n}% ${r}%`}},Ry={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=fr.parse(e);if(i.length>5)return r;const a=fr.createTransformer(e),s=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,u=n.y.scale*t.y;i[0+s]/=o,i[1+s]/=u;const l=ot(o,u,.5);return typeof i[2+s]=="number"&&(i[2+s]/=l),typeof i[3+s]=="number"&&(i[3+s]/=l),a(i)}};let bo=!1;class Dy extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;Y8(_y),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),bo&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),rs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:s}=r;return s&&(s.isPresent=a,bo=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||rt.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Pl.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;bo=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Rm(e){const[t,n]=My(),r=O.useContext(Sf);return L.jsx(Dy,{...e,layoutGroup:r,switchLayoutGroup:O.useContext(dm),isPresent:t,safeToRemove:n})}const _y={borderRadius:{...ki,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ki,borderTopRightRadius:ki,borderBottomLeftRadius:ki,borderBottomRightRadius:ki,boxShadow:Ry};function Ly(e,t,n){const r=Rt(e)?e:ai(e);return r.start($l("",r,t,n)),r.animation}const Py=(e,t)=>e.depth-t.depth;class Oy{constructor(){this.children=[],this.isDirty=!1}add(t){ml(this.children,t),this.isDirty=!0}remove(t){pl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Py),this.isDirty=!1,this.children.forEach(t)}}function By(e,t){const n=Gt.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(hr(r),e(a-t))};return rt.setup(r,!0),()=>hr(r)}const Dm=["TopLeft","TopRight","BottomLeft","BottomRight"],Fy=Dm.length,ad=e=>typeof e=="string"?parseFloat(e):e,sd=e=>typeof e=="number"||Ee.test(e);function Hy(e,t,n,r,i,a){i?(e.opacity=ot(0,n.opacity??1,zy(r)),e.opacityExit=ot(t.opacity??1,0,Uy(r))):a&&(e.opacity=ot(t.opacity??1,n.opacity??1,r));for(let s=0;srt?1:n(ta(e,t,r))}function ud(e,t){e.min=t.min,e.max=t.max}function sn(e,t){ud(e.x,t.x),ud(e.y,t.y)}function ld(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function cd(e,t,n,r,i){return e-=t,e=gs(e,1/n,r),i!==void 0&&(e=gs(e,1/i,r)),e}function Vy(e,t=0,n=1,r=.5,i,a=e,s=e){if(Rn.test(t)&&(t=parseFloat(t),t=ot(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=ot(a.min,a.max,r);e===a&&(o-=t),e.min=cd(e.min,t,n,o,i),e.max=cd(e.max,t,n,o,i)}function dd(e,t,[n,r,i],a,s){Vy(e,t[n],t[r],t[i],t.scale,a,s)}const jy=["x","scaleX","originX"],qy=["y","scaleY","originY"];function hd(e,t,n,r){dd(e.x,t,jy,n?n.x:void 0,r?r.x:void 0),dd(e.y,t,qy,n?n.y:void 0,r?r.y:void 0)}function fd(e){return e.translate===0&&e.scale===1}function Lm(e){return fd(e.x)&&fd(e.y)}function md(e,t){return e.min===t.min&&e.max===t.max}function $y(e,t){return md(e.x,t.x)&&md(e.y,t.y)}function pd(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Pm(e,t){return pd(e.x,t.x)&&pd(e.y,t.y)}function gd(e){return Ht(e.x)/Ht(e.y)}function bd(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Wy{constructor(){this.members=[]}add(t){ml(this.members,t),t.scheduleRender()}remove(t){if(pl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Yy(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,s=n?.z||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:d,rotateY:m,skewX:p,skewY:b}=n;l&&(r=`perspective(${l}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),m&&(r+=`rotateY(${m}deg) `),p&&(r+=`skewX(${p}deg) `),b&&(r+=`skewY(${b}deg) `)}const o=e.x.scale*t.x,u=e.y.scale*t.y;return(o!==1||u!==1)&&(r+=`scale(${o}, ${u})`),r||"none"}const yo=["","X","Y","Z"],Gy=1e3;let Ky=0;function To(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Om(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=xm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",rt,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Om(r)}function Bm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},o=t?.()){this.id=Ky++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Zy),this.nodes.forEach(n9),this.nodes.forEach(r9),this.nodes.forEach(Jy)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;rt.read(()=>{d=window.innerWidth}),e(s,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,c&&c(),c=By(m,250),rs.hasAnimatedSinceResize&&(rs.hasAnimatedSinceResize=!1,this.nodes.forEach(Ed)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&l&&(o||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:m,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||l.getDefaultTransition()||u9,{onLayoutAnimationStart:E,onLayoutAnimationComplete:C}=l.getProps(),T=!this.targetLayout||!Pm(this.targetLayout,p),S=!d&&m;if(this.options.layoutRoot||this.resumeFrom||S||d&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={..._l(b,"layout"),onPlay:E,onComplete:C};(l.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(c,S)}else d||Ed(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),hr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(i9),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Om(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ht(this.snapshot.measuredBox.x)&&!Ht(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const P=_/1e3;xd(d.x,s.x,P),xd(d.y,s.y,P),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ji(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),s9(this.relativeTarget,this.relativeTargetOrigin,m,P),v&&$y(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=ht()),sn(v,this.relativeTarget)),E&&(this.animationValues=c,Hy(c,l,this.latestValues,P,S,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(hr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=rt.update(()=>{rs.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ai(0)),this.currentAnimation=Ly(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Gy),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:u,layout:l,latestValues:c}=s;if(!(!o||!u||!l)){if(this!==s&&this.layout&&l&&Fm(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||ht();const d=Ht(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+d;const m=Ht(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+m}sn(o,u),Zr(o,c),Vi(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Wy),this.sharedNodes.get(s).add(o);const l=o.options.initialPromotionConfig;o.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(o=!0),!o)return;const l={};u.z&&To("z",s,l,this.animationValues);for(let c=0;cs.currentAnimation?.stop()),this.root.nodes.forEach(yd),this.root.sharedNodes.clear()}}}function Xy(e){e.updateLayout()}function Qy(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i==="size"?on(c=>{const d=a?t.measuredBox[c]:t.layoutBox[c],m=Ht(d);d.min=n[c].min,d.max=d.min+m}):Fm(i,t.layoutBox,n)&&on(c=>{const d=a?t.measuredBox[c]:t.layoutBox[c],m=Ht(n[c]);d.max=d.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+m)});const s=Jr();Vi(s,n,t.layoutBox);const o=Jr();a?Vi(o,e.applyTransform(r,!0),t.measuredBox):Vi(o,n,t.layoutBox);const u=!Lm(s);let l=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:d,layout:m}=c;if(d&&m){const p=ht();ji(p,t.layoutBox,d.layoutBox);const b=ht();ji(b,n,m.layoutBox),Pm(p,b)||(l=!0),c.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=p,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:s,hasLayoutChanged:u,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Zy(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Jy(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function e9(e){e.clearSnapshot()}function yd(e){e.clearMeasurements()}function Td(e){e.isLayoutDirty=!1}function t9(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ed(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function n9(e){e.resolveTargetDelta()}function r9(e){e.calcProjection()}function i9(e){e.resetSkewAndRotation()}function a9(e){e.removeLeadSnapshot()}function xd(e,t,n){e.translate=ot(t.translate,0,n),e.scale=ot(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function vd(e,t,n,r){e.min=ot(t.min,n.min,r),e.max=ot(t.max,n.max,r)}function s9(e,t,n,r){vd(e.x,t.x,n.x,r),vd(e.y,t.y,n.y,r)}function o9(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const u9={duration:.45,ease:[.4,0,.1,1]},Sd=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ad=Sd("applewebkit/")&&!Sd("chrome/")?Math.round:dn;function Cd(e){e.min=Ad(e.min),e.max=Ad(e.max)}function l9(e){Cd(e.x),Cd(e.y)}function Fm(e,t,n){return e==="position"||e==="preserve-aspect"&&!my(gd(t),gd(n),.2)}function c9(e){return e!==e.root&&e.scroll?.wasRoot}const d9=Bm({attachResizeListener:(e,t)=>sa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Eo={current:void 0},Hm=Bm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Eo.current){const e=new d9({});e.mount(window),e.setOptions({layoutScroll:!0}),Eo.current=e}return Eo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),h9={pan:{Feature:Ny},drag:{Feature:Iy,ProjectionNode:Hm,MeasureLayout:Rm}};function wd(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&rt.postRender(()=>a(t,ya(t)))}class f9 extends br{mount(){const{current:t}=this.node;t&&(this.unmount=H8(t,(n,r)=>(wd(this.node,r,"Start"),i=>wd(this.node,i,"End"))))}unmount(){}}class m9 extends br{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pa(sa(this.node.current,"focus",()=>this.onFocus()),sa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function kd(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&rt.postRender(()=>a(t,ya(t)))}class p9 extends br{mount(){const{current:t}=this.node;t&&(this.unmount=j8(t,(n,r)=>(kd(this.node,r,"Start"),(i,{success:a})=>kd(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Du=new WeakMap,xo=new WeakMap,g9=e=>{const t=Du.get(e.target);t&&t(e)},b9=e=>{e.forEach(g9)};function y9({root:e,...t}){const n=e||document;xo.has(n)||xo.set(n,{});const r=xo.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(b9,{root:e,...t})),r[i]}function T9(e,t,n){const r=y9(t);return Du.set(e,n),r.observe(e),()=>{Du.delete(e),r.unobserve(e)}}const E9={some:0,all:1};class x9 extends br{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:E9[i]},o=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,a&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),m=l?c:d;m&&m(u)};return T9(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(v9(t,n))&&this.startObserver()}unmount(){}}function v9({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const S9={inView:{Feature:x9},tap:{Feature:p9},focus:{Feature:m9},hover:{Feature:f9}},A9={layout:{ProjectionNode:Hm,MeasureLayout:Rm}},C9={...uy,...S9,...h9,...A9};function w9(e,t){return xb(e,t,C9,Bb)}const Wl=w9("div"),k9=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{position:"relative",flex:1,gap:t(1.5),overflow:"hidden"}}),I9=ue(X1)(({theme:e,variant:t})=>{const{spacing:n}=e;return{gap:n(t==="list"?1.5:5.5),overflowY:"auto"}}),N9=ue(Q6)(({theme:e})=>{const{spacing:t}=e;return{flex:"none",padding:t(2),overflow:"hidden"}}),M9=ue(eg)(({theme:e})=>({fontSize:"1.5rem",width:"2.75rem",height:"2.75rem",borderRadius:"50%",display:"inline-flex",alignItems:"center",justifyContent:"center"})),R9=ue(Wl)(({theme:e,variant:t})=>({fontSize:t==="list"?"1.5rem":"1em",width:"1em",height:"1em",display:"inline-flex",alignItems:"center",justifyContent:"center",transformOrigin:"center"})),D9={waiting:"info",available:"success",failed:"error"},_9=()=>L.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",children:L.jsx("path",{d:"M20.0235 2.88477H6.92829C6.49415 2.88477 6.0778 3.05722 5.77082 3.3642C5.46384 3.67118 5.29138 4.08754 5.29138 4.52167V22.5276C5.29138 22.9618 5.46384 23.3781 5.77082 23.6851C6.0778 23.9921 6.49415 24.1645 6.92829 24.1645H20.0235C20.4577 24.1645 20.874 23.9921 21.181 23.6851C21.488 23.3781 21.6604 22.9618 21.6604 22.5276V4.52167C21.6604 4.08754 21.488 3.67118 21.181 3.3642C20.874 3.05722 20.4577 2.88477 20.0235 2.88477ZM13.4759 20.0723C13.2331 20.0723 12.9957 20.0003 12.7938 19.8654C12.592 19.7305 12.4346 19.5387 12.3417 19.3144C12.2488 19.0901 12.2244 18.8432 12.2718 18.6051C12.3192 18.3669 12.4361 18.1482 12.6078 17.9765C12.7795 17.8048 12.9983 17.6879 13.2364 17.6405C13.4745 17.5931 13.7214 17.6174 13.9457 17.7104C14.17 17.8033 14.3618 17.9606 14.4967 18.1625C14.6316 18.3644 14.7036 18.6018 14.7036 18.8446C14.7036 19.1702 14.5742 19.4825 14.344 19.7127C14.1138 19.9429 13.8015 20.0723 13.4759 20.0723ZM16.7497 11.8877H10.2021C9.98503 11.8877 9.77685 11.8015 9.62336 11.648C9.46987 11.4945 9.38364 11.2864 9.38364 11.0693C9.38364 10.8522 9.46987 10.644 9.62336 10.4906C9.77685 10.3371 9.98503 10.2508 10.2021 10.2508H16.7497C16.9668 10.2508 17.175 10.3371 17.3285 10.4906C17.4819 10.644 17.5682 10.8522 17.5682 11.0693C17.5682 11.2864 17.4819 11.4945 17.3285 11.648C17.175 11.8015 16.9668 11.8877 16.7497 11.8877ZM16.7497 8.61393H10.2021C9.98503 8.61393 9.77685 8.5277 9.62336 8.37421C9.46987 8.22072 9.38364 8.01255 9.38364 7.79548C9.38364 7.57841 9.46987 7.37024 9.62336 7.21675C9.77685 7.06326 9.98503 6.97703 10.2021 6.97703H16.7497C16.9668 6.97703 17.175 7.06326 17.3285 7.21675C17.4819 7.37024 17.5682 7.57841 17.5682 7.79548C17.5682 8.01255 17.4819 8.22072 17.3285 8.37421C17.175 8.5277 16.9668 8.61393 16.7497 8.61393Z",fill:"currentColor"})}),L9={waiting:M5,available:E5,failed:B1},Id=({variant:e,node:t})=>{const{id:n,status:r,gpuName:i,gpuMemory:a}=t||{status:"waiting"},{palette:s}=Ns(),{main:o,lighter:u}=r==="waiting"?{main:s.grey[800],lighter:s.grey[250]}:s[D9[r]],l=r==="failed"?.2:void 0,c=L9[r];return L.jsxs(N9,{component:e==="list"?Ms:ci,variant:"outlined",sx:{opacity:l,padding:e==="menu"?0:void 0,backgroundColor:"transparent"},children:[L.jsx(M9,{sx:{color:s.grey[800],backgroundColor:s.grey[250]},children:L.jsx(_9,{})}),L.jsxs(ig,{children:[t&&L.jsxs(Ve,{variant:"body1",children:[i," ",a,"GB"]})||L.jsx(lc,{width:"8rem",height:"1.25rem"}),t&&L.jsx(Ve,{variant:"body1",color:"text.disabled",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:n&&n.substring(0,4)+"..."+n.substring(n.length-4)})||L.jsx(lc,{width:"14rem",height:"1.25rem"})]}),t&&L.jsxs(R9,{sx:{color:o},...r==="waiting"&&{animate:{rotate:360},transition:{repeat:1/0,ease:"linear",duration:2}},variant:e,children:[e==="list"&&L.jsx(c,{}),e==="menu"&&L.jsx(O5,{})]})]})},Fa=({variant:e="list"})=>{const[{clusterInfo:{initNodesNumber:t},nodeInfoList:n}]=fa(),{length:r}=n;return L.jsxs(k9,{children:[e==="menu"&&L.jsx(ci,{sx:{position:"absolute",top:"1.375rem",bottom:"1.375rem",left:"1.375rem",borderLeft:"2px dashed",borderColor:"divider"}}),L.jsxs(I9,{variant:e,children:[n.map(i=>L.jsx(Id,{variant:e,node:i},i.id)),t>r&&Array.from({length:t-r}).map((i,a)=>L.jsx(Id,{variant:e},a))]})]})},P9={small:1,medium:1.25,large:2.25},O9=ue(Wl)(({theme:e,size:t})=>{const n=`${P9[t]}rem`;return{position:"relative",width:n,height:n,display:"inline-flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"}}),vo=ue(Wl)(({theme:e})=>({flex:1,aspectRatio:1,borderRadius:"50%",backgroundColor:"currentColor"})),So={pulse:{scale:[0,.6,0,0],keyTimes:[0,.3,.6,1],transition:{duration:2,repeat:1/0,ease:"linear"}}},B9={staggerChildren:.25,staggerDirection:1},F9=O.forwardRef(({size:e="medium"},t)=>L.jsxs(O9,{ref:t,size:e,animate:"pulse",transition:B9,children:[L.jsx(vo,{variants:So},1),L.jsx(vo,{variants:So},2),L.jsx(vo,{variants:So},3)]}));function Nd(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function zm(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const H9=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,z9=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,U9={};function Md(e,t){return(U9.jsx?z9:H9).test(e)}const V9=/[ \t\n\f\r]/g;function j9(e){return typeof e=="object"?e.type==="text"?Rd(e.value):!1:Rd(e)}function Rd(e){return e.replace(V9,"")===""}let Ta=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Ta.prototype.normal={};Ta.prototype.property={};Ta.prototype.space=void 0;function Um(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ta(n,r,t)}function oa(e){return e.toLowerCase()}let Kt=class{constructor(t,n){this.attribute=n,this.property=t}};Kt.prototype.attribute="";Kt.prototype.booleanish=!1;Kt.prototype.boolean=!1;Kt.prototype.commaOrSpaceSeparated=!1;Kt.prototype.commaSeparated=!1;Kt.prototype.defined=!1;Kt.prototype.mustUseProperty=!1;Kt.prototype.number=!1;Kt.prototype.overloadedBoolean=!1;Kt.prototype.property="";Kt.prototype.spaceSeparated=!1;Kt.prototype.space=void 0;let q9=0;const Ce=Br(),gt=Br(),_u=Br(),re=Br(),Qe=Br(),ni=Br(),Zt=Br();function Br(){return 2**++q9}const Lu=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ce,booleanish:gt,commaOrSpaceSeparated:Zt,commaSeparated:ni,number:re,overloadedBoolean:_u,spaceSeparated:Qe},Symbol.toStringTag,{value:"Module"})),Ao=Object.keys(Lu);let Yl=class extends Kt{constructor(t,n,r,i){let a=-1;if(super(t,n),Dd(this,"space",i),typeof r=="number")for(;++a4&&n.slice(0,4)==="data"&&K9.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(_d,Q9);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!_d.test(a)){let s=a.replace(G9,X9);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Yl}return new i(r,t)}function X9(e){return"-"+e.toLowerCase()}function Q9(e){return e.charAt(1).toUpperCase()}const Hs=Um([Vm,$9,$m,Wm,Ym],"html"),pi=Um([Vm,W9,$m,Wm,Ym],"svg");function Ld(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Gm(e){return e.join(" ").trim()}var jr={},Co,Pd;function Z9(){if(Pd)return Co;Pd=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,u=` -`,l="/",c="*",d="",m="comment",p="declaration";Co=function(E,C){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];C=C||{};var T=1,S=1;function v(X){var j=X.match(t);j&&(T+=j.length);var W=X.lastIndexOf(u);S=~W?X.length-W:S+X.length}function _(){var X={line:T,column:S};return function(j){return j.position=new P(X),U(),j}}function P(X){this.start=X,this.end={line:T,column:S},this.source=C.source}P.prototype.content=E;function k(X){var j=new Error(C.source+":"+T+":"+S+": "+X);if(j.reason=X,j.filename=C.source,j.line=T,j.column=S,j.source=E,!C.silent)throw j}function V(X){var j=X.exec(E);if(j){var W=j[0];return v(W),E=E.slice(W.length),j}}function U(){V(n)}function q(X){var j;for(X=X||[];j=B();)j!==!1&&X.push(j);return X}function B(){var X=_();if(!(l!=E.charAt(0)||c!=E.charAt(1))){for(var j=2;d!=E.charAt(j)&&(c!=E.charAt(j)||l!=E.charAt(j+1));)++j;if(j+=2,d===E.charAt(j-1))return k("End of comment missing");var W=E.slice(2,j-2);return S+=2,v(W),E=E.slice(j),S+=2,X({type:m,comment:W})}}function K(){var X=_(),j=V(r);if(j){if(B(),!V(i))return k("property missing ':'");var W=V(a),ne=X({type:p,property:b(j[0].replace(e,d)),value:W?b(W[0].replace(e,d)):d});return V(s),ne}}function Y(){var X=[];q(X);for(var j;j=K();)j!==!1&&(X.push(j),q(X));return X}return U(),Y()};function b(E){return E?E.replace(o,d):d}return Co}var Od;function J9(){if(Od)return jr;Od=1;var e=jr&&jr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(jr,"__esModule",{value:!0}),jr.default=n;var t=e(Z9());function n(r,i){var a=null;if(!r||typeof r!="string")return a;var s=(0,t.default)(r),o=typeof i=="function";return s.forEach(function(u){if(u.type==="declaration"){var l=u.property,c=u.value;o?i(l,c,u):c&&(a=a||{},a[l]=c)}}),a}return jr}var Ii={},Bd;function eT(){if(Bd)return Ii;Bd=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(l){return!l||n.test(l)||e.test(l)},s=function(l,c){return c.toUpperCase()},o=function(l,c){return"".concat(c,"-")},u=function(l,c){return c===void 0&&(c={}),a(l)?l:(l=l.toLowerCase(),c.reactCompat?l=l.replace(i,o):l=l.replace(r,o),l.replace(t,s))};return Ii.camelCase=u,Ii}var Ni,Fd;function tT(){if(Fd)return Ni;Fd=1;var e=Ni&&Ni.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(J9()),n=eT();function r(i,a){var s={};return!i||typeof i!="string"||(0,t.default)(i,function(o,u){o&&u&&(s[(0,n.camelCase)(o,a)]=u)}),s}return r.default=r,Ni=r,Ni}var nT=tT();const rT=F1(nT),zs=Km("end"),Pn=Km("start");function Km(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Xm(e){const t=Pn(e),n=zs(e);if(t&&n)return{start:t,end:n}}function qi(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Hd(e.position):"start"in e||"end"in e?Hd(e):"line"in e||"column"in e?Pu(e):""}function Pu(e){return zd(e&&e.line)+":"+zd(e&&e.column)}function Hd(e){return Pu(e&&e.start)+"-"+Pu(e&&e.end)}function zd(e){return e&&typeof e=="number"?e:1}class _t extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?a.ruleId=r:(a.source=r.slice(0,u),a.ruleId=r.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=qi(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}_t.prototype.file="";_t.prototype.name="";_t.prototype.reason="";_t.prototype.message="";_t.prototype.stack="";_t.prototype.column=void 0;_t.prototype.line=void 0;_t.prototype.ancestors=void 0;_t.prototype.cause=void 0;_t.prototype.fatal=void 0;_t.prototype.place=void 0;_t.prototype.ruleId=void 0;_t.prototype.source=void 0;const Kl={}.hasOwnProperty,iT=new Map,aT=/[A-Z]/g,sT=new Set(["table","tbody","thead","tfoot","tr"]),oT=new Set(["td","th"]),Qm="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function uT(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=gT(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=pT(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?pi:Hs,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Zm(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Zm(e,t,n){if(t.type==="element")return lT(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return cT(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return hT(e,t,n);if(t.type==="mdxjsEsm")return dT(e,t);if(t.type==="root")return fT(e,t,n);if(t.type==="text")return mT(e,t)}function lT(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=pi,e.schema=i),e.ancestors.push(t);const a=ep(e,t.tagName,!1),s=bT(e,t);let o=Ql(e,t);return sT.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!j9(u):!0})),Jm(e,s,a,t),Xl(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function cT(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ua(e,t.position)}function dT(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ua(e,t.position)}function hT(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=pi,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:ep(e,t.name,!0),s=yT(e,t),o=Ql(e,t);return Jm(e,s,a,t),Xl(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function fT(e,t,n){const r={};return Xl(r,Ql(e,t)),e.create(t,e.Fragment,r,n)}function mT(e,t){return t.value}function Jm(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Xl(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function pT(e,t,n){return r;function r(i,a,s,o){const l=Array.isArray(s.children)?n:t;return o?l(a,s,o):l(a,s)}}function gT(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),u=Pn(r);return t(i,a,s,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function bT(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Kl.call(t.properties,i)){const a=TT(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&oT.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function yT(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else ua(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else ua(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Ql(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:iT;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a0?(nn(e,e.length,0,t),e):t}const jd={}.hasOwnProperty;function np(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function yn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ft=yr(/[A-Za-z]/),Dt=yr(/[\dA-Za-z]/),IT=yr(/[#-'*+\--9=?A-Z^-~]/);function bs(e){return e!==null&&(e<32||e===127)}const Ou=yr(/\d/),NT=yr(/[\dA-Fa-f]/),MT=yr(/[!-/:-@[-`{-~]/);function he(e){return e!==null&&e<-2}function Ye(e){return e!==null&&(e<0||e===32)}function Re(e){return e===-2||e===-1||e===32}const Us=yr(new RegExp("\\p{P}|\\p{S}","u")),Pr=yr(/\s/);function yr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function gi(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Ne(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(u){return Re(u)?(e.enter(n),o(u)):t(u)}function o(u){return Re(u)&&a++s))return;const V=t.events.length;let U=V,q,B;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){if(q){B=t.events[U][1].end;break}q=!0}for(T(r),k=V;kv;){const P=n[_];t.containerState=P[1],P[0].exit.call(t,e)}n.length=v}function S(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function PT(e,t,n){return Ne(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function oi(e){if(e===null||Ye(e)||Pr(e))return 1;if(Us(e))return 2}function Vs(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},m={...e[n][1].start};$d(d,-u),$d(m,u),s={type:u>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:m},a={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=un(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=un(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),l=un(l,Vs(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=un(l,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=un(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,nn(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n0&&Re(k)?Ne(e,S,"linePrefix",a+1)(k):S(k)}function S(k){return k===null||he(k)?e.check(Wd,E,_)(k):(e.enter("codeFlowValue"),v(k))}function v(k){return k===null||he(k)?(e.exit("codeFlowValue"),S(k)):(e.consume(k),v)}function _(k){return e.exit("codeFenced"),t(k)}function P(k,V,U){let q=0;return B;function B(W){return k.enter("lineEnding"),k.consume(W),k.exit("lineEnding"),K}function K(W){return k.enter("codeFencedFence"),Re(W)?Ne(k,Y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):Y(W)}function Y(W){return W===o?(k.enter("codeFencedFenceSequence"),X(W)):U(W)}function X(W){return W===o?(q++,k.consume(W),X):q>=s?(k.exit("codeFencedFenceSequence"),Re(W)?Ne(k,j,"whitespace")(W):j(W)):U(W)}function j(W){return W===null||he(W)?(k.exit("codeFencedFence"),V(W)):U(W)}}}function YT(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const ko={name:"codeIndented",tokenize:KT},GT={partial:!0,tokenize:XT};function KT(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),Ne(e,a,"linePrefix",5)(l)}function a(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?u(l):he(l)?e.attempt(GT,s,u)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||he(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function u(l){return e.exit("codeIndented"),t(l)}}function XT(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):he(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Ne(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):he(s)?i(s):n(s)}}const QT={name:"codeText",previous:JT,resolve:ZT,tokenize:eE};function ZT(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Mi(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Mi(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Mi(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function up(e,t,n,r,i,a,s,o,u){const l=u||Number.POSITIVE_INFINITY;let c=0;return d;function d(T){return T===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(T),e.exit(a),m):T===null||T===32||T===41||bs(T)?n(T):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),E(T))}function m(T){return T===62?(e.enter(a),e.consume(T),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(T))}function p(T){return T===62?(e.exit("chunkString"),e.exit(o),m(T)):T===null||T===60||he(T)?n(T):(e.consume(T),T===92?b:p)}function b(T){return T===60||T===62||T===92?(e.consume(T),p):p(T)}function E(T){return!c&&(T===null||T===41||Ye(T))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(T)):c999||p===null||p===91||p===93&&!u||p===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):he(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||he(p)||o++>999?(e.exit("chunkString"),c(p)):(e.consume(p),u||(u=!Re(p)),p===92?m:d)}function m(p){return p===91||p===92||p===93?(e.consume(p),o++,d):d(p)}}function cp(e,t,n,r,i,a){let s;return o;function o(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),s=m===40?41:m,u):n(m)}function u(m){return m===s?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(a),l(m))}function l(m){return m===s?(e.exit(a),u(s)):m===null?n(m):he(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Ne(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(m))}function c(m){return m===s||m===null||he(m)?(e.exit("chunkString"),l(m)):(e.consume(m),m===92?d:c)}function d(m){return m===s||m===92?(e.consume(m),c):c(m)}}function $i(e,t){let n;return r;function r(i){return he(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Re(i)?Ne(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const uE={name:"definition",tokenize:cE},lE={partial:!0,tokenize:dE};function cE(e,t,n){const r=this;let i;return a;function a(p){return e.enter("definition"),s(p)}function s(p){return lp.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return i=yn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):n(p)}function u(p){return Ye(p)?$i(e,l)(p):l(p)}function l(p){return up(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(lE,d,d)(p)}function d(p){return Re(p)?Ne(e,m,"whitespace")(p):m(p)}function m(p){return p===null||he(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function dE(e,t,n){return r;function r(o){return Ye(o)?$i(e,i)(o):n(o)}function i(o){return cp(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return Re(o)?Ne(e,s,"whitespace")(o):s(o)}function s(o){return o===null||he(o)?t(o):n(o)}}const hE={name:"hardBreakEscape",tokenize:fE};function fE(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return he(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const mE={name:"headingAtx",resolve:pE,tokenize:gE};function pE(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},nn(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function gE(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Ye(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||he(c)?(e.exit("atxHeading"),t(c)):Re(c)?Ne(e,o,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),o(c))}function l(c){return c===null||c===35||Ye(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),l)}}const bE=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Gd=["pre","script","style","textarea"],yE={concrete:!0,name:"htmlFlow",resolveTo:xE,tokenize:vE},TE={partial:!0,tokenize:AE},EE={partial:!0,tokenize:SE};function xE(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function vE(e,t,n){const r=this;let i,a,s,o,u;return l;function l(D){return c(D)}function c(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),d}function d(D){return D===33?(e.consume(D),m):D===47?(e.consume(D),a=!0,E):D===63?(e.consume(D),i=3,r.interrupt?t:I):Ft(D)?(e.consume(D),s=String.fromCharCode(D),C):n(D)}function m(D){return D===45?(e.consume(D),i=2,p):D===91?(e.consume(D),i=5,o=0,b):Ft(D)?(e.consume(D),i=4,r.interrupt?t:I):n(D)}function p(D){return D===45?(e.consume(D),r.interrupt?t:I):n(D)}function b(D){const _e="CDATA[";return D===_e.charCodeAt(o++)?(e.consume(D),o===_e.length?r.interrupt?t:Y:b):n(D)}function E(D){return Ft(D)?(e.consume(D),s=String.fromCharCode(D),C):n(D)}function C(D){if(D===null||D===47||D===62||Ye(D)){const _e=D===47,Ue=s.toLowerCase();return!_e&&!a&&Gd.includes(Ue)?(i=1,r.interrupt?t(D):Y(D)):bE.includes(s.toLowerCase())?(i=6,_e?(e.consume(D),T):r.interrupt?t(D):Y(D)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(D):a?S(D):v(D))}return D===45||Dt(D)?(e.consume(D),s+=String.fromCharCode(D),C):n(D)}function T(D){return D===62?(e.consume(D),r.interrupt?t:Y):n(D)}function S(D){return Re(D)?(e.consume(D),S):B(D)}function v(D){return D===47?(e.consume(D),B):D===58||D===95||Ft(D)?(e.consume(D),_):Re(D)?(e.consume(D),v):B(D)}function _(D){return D===45||D===46||D===58||D===95||Dt(D)?(e.consume(D),_):P(D)}function P(D){return D===61?(e.consume(D),k):Re(D)?(e.consume(D),P):v(D)}function k(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),u=D,V):Re(D)?(e.consume(D),k):U(D)}function V(D){return D===u?(e.consume(D),u=null,q):D===null||he(D)?n(D):(e.consume(D),V)}function U(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||Ye(D)?P(D):(e.consume(D),U)}function q(D){return D===47||D===62||Re(D)?v(D):n(D)}function B(D){return D===62?(e.consume(D),K):n(D)}function K(D){return D===null||he(D)?Y(D):Re(D)?(e.consume(D),K):n(D)}function Y(D){return D===45&&i===2?(e.consume(D),ne):D===60&&i===1?(e.consume(D),le):D===62&&i===4?(e.consume(D),De):D===63&&i===3?(e.consume(D),I):D===93&&i===5?(e.consume(D),oe):he(D)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(TE,Ae,X)(D)):D===null||he(D)?(e.exit("htmlFlowData"),X(D)):(e.consume(D),Y)}function X(D){return e.check(EE,j,Ae)(D)}function j(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),W}function W(D){return D===null||he(D)?X(D):(e.enter("htmlFlowData"),Y(D))}function ne(D){return D===45?(e.consume(D),I):Y(D)}function le(D){return D===47?(e.consume(D),s="",fe):Y(D)}function fe(D){if(D===62){const _e=s.toLowerCase();return Gd.includes(_e)?(e.consume(D),De):Y(D)}return Ft(D)&&s.length<8?(e.consume(D),s+=String.fromCharCode(D),fe):Y(D)}function oe(D){return D===93?(e.consume(D),I):Y(D)}function I(D){return D===62?(e.consume(D),De):D===45&&i===2?(e.consume(D),I):Y(D)}function De(D){return D===null||he(D)?(e.exit("htmlFlowData"),Ae(D)):(e.consume(D),De)}function Ae(D){return e.exit("htmlFlow"),t(D)}}function SE(e,t,n){const r=this;return i;function i(s){return he(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function AE(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ea,t,n)}}const CE={name:"htmlText",tokenize:wE};function wE(e,t,n){const r=this;let i,a,s;return o;function o(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),u}function u(I){return I===33?(e.consume(I),l):I===47?(e.consume(I),P):I===63?(e.consume(I),v):Ft(I)?(e.consume(I),U):n(I)}function l(I){return I===45?(e.consume(I),c):I===91?(e.consume(I),a=0,b):Ft(I)?(e.consume(I),S):n(I)}function c(I){return I===45?(e.consume(I),p):n(I)}function d(I){return I===null?n(I):I===45?(e.consume(I),m):he(I)?(s=d,le(I)):(e.consume(I),d)}function m(I){return I===45?(e.consume(I),p):d(I)}function p(I){return I===62?ne(I):I===45?m(I):d(I)}function b(I){const De="CDATA[";return I===De.charCodeAt(a++)?(e.consume(I),a===De.length?E:b):n(I)}function E(I){return I===null?n(I):I===93?(e.consume(I),C):he(I)?(s=E,le(I)):(e.consume(I),E)}function C(I){return I===93?(e.consume(I),T):E(I)}function T(I){return I===62?ne(I):I===93?(e.consume(I),T):E(I)}function S(I){return I===null||I===62?ne(I):he(I)?(s=S,le(I)):(e.consume(I),S)}function v(I){return I===null?n(I):I===63?(e.consume(I),_):he(I)?(s=v,le(I)):(e.consume(I),v)}function _(I){return I===62?ne(I):v(I)}function P(I){return Ft(I)?(e.consume(I),k):n(I)}function k(I){return I===45||Dt(I)?(e.consume(I),k):V(I)}function V(I){return he(I)?(s=V,le(I)):Re(I)?(e.consume(I),V):ne(I)}function U(I){return I===45||Dt(I)?(e.consume(I),U):I===47||I===62||Ye(I)?q(I):n(I)}function q(I){return I===47?(e.consume(I),ne):I===58||I===95||Ft(I)?(e.consume(I),B):he(I)?(s=q,le(I)):Re(I)?(e.consume(I),q):ne(I)}function B(I){return I===45||I===46||I===58||I===95||Dt(I)?(e.consume(I),B):K(I)}function K(I){return I===61?(e.consume(I),Y):he(I)?(s=K,le(I)):Re(I)?(e.consume(I),K):q(I)}function Y(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),i=I,X):he(I)?(s=Y,le(I)):Re(I)?(e.consume(I),Y):(e.consume(I),j)}function X(I){return I===i?(e.consume(I),i=void 0,W):I===null?n(I):he(I)?(s=X,le(I)):(e.consume(I),X)}function j(I){return I===null||I===34||I===39||I===60||I===61||I===96?n(I):I===47||I===62||Ye(I)?q(I):(e.consume(I),j)}function W(I){return I===47||I===62||Ye(I)?q(I):n(I)}function ne(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),t):n(I)}function le(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),fe}function fe(I){return Re(I)?Ne(e,oe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):oe(I)}function oe(I){return e.enter("htmlTextData"),s(I)}}const e0={name:"labelEnd",resolveAll:ME,resolveTo:RE,tokenize:DE},kE={tokenize:_E},IE={tokenize:LE},NE={tokenize:PE};function ME(e){let t=-1;const n=[];for(;++t=3&&(l===null||he(l))?(e.exit("thematicBreak"),t(l)):n(l)}function u(l){return l===i?(e.consume(l),r++,u):(e.exit("thematicBreakSequence"),Re(l)?Ne(e,o,"whitespace")(l):o(l))}}const Wt={continuation:{tokenize:$E},exit:YE,name:"list",tokenize:qE},VE={partial:!0,tokenize:GE},jE={partial:!0,tokenize:WE};function qE(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(p){const b=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Ou(p)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(is,n,l)(p):l(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return n(p)}function u(p){return Ou(p)&&++s<10?(e.consume(p),u):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):n(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Ea,r.interrupt?n:c,e.attempt(VE,m,d))}function c(p){return r.containerState.initialBlankLine=!0,a++,m(p)}function d(p){return Re(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),m):n(p)}function m(p){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function $E(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ea,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ne(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!Re(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(jE,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ne(e,e.attempt(Wt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function WE(e,t,n){const r=this;return Ne(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function YE(e){e.exit(this.containerState.type)}function GE(e,t,n){const r=this;return Ne(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!Re(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Kd={name:"setextUnderline",resolveTo:KE,tokenize:XE};function KE(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function XE(e,t,n){const r=this;let i;return a;function a(l){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===i?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),Re(l)?Ne(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||he(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const QE={tokenize:ZE};function ZE(e){const t=this,n=e.attempt(Ea,r,e.attempt(this.parser.constructs.flowInitial,i,Ne(e,e.attempt(this.parser.constructs.flow,i,e.attempt(rE,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const JE={resolveAll:hp()},ex=dp("string"),tx=dp("text");function dp(e){return{resolveAll:hp(e==="text"?nx:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(c){return l(c)?a(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return l(c)?(n.exit("data"),a(c)):(n.consume(c),u)}function l(c){if(c===null)return!0;const d=i[c];let m=-1;if(d)for(;++m-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function px(e,t){let n=-1;const r=[];let i;for(;++n{const{open:t,onClose:n=()=>{},titleId:r,title:i,contentId:a,content:s,color:o="primary",titleIconColor:u="warning",titleIcon:l=!0,cancelLabel:c,onCancel:d=()=>{},confirmLabel:m,onConfirm:p=()=>{},submitLabel:b,onSubmitValid:E,onSubmitInvalid:C,handleSubmit:T,secondaryAction:S,...v}=e,L=B5[o],[P,k]=O.useState(!1),V=Y=>!(Y===!1||typeof Y=="object"&&Y.closeDialog===!1),U=Y=>async(...X)=>{if(!P)try{const j=Y(...X);if(j instanceof Promise){k(!0);const W=await j;k(!1),V(W)&&n()}else V(j)&&n()}catch(j){k(!1),console.error("Error in dialog action:",j)}};let q;const B=[];c&&B.push({key:"cancel",children:c,color:"secondary",onClick:U(d),loading:P}),m&&B.push({key:"confirm",children:m,color:o,onClick:U(p),loading:P}),b&&(B.push({key:"submit",children:b,type:"submit",loading:P}),T&&E&&(q={onSubmit:Y=>{Y.preventDefault(),Y.stopPropagation(),!P&&(k(!0),T(async(...X)=>{try{const j=await E(...X);k(!1),V(j)&&n()}catch(j){k(!1),console.error("Error in form submission:",j)}},async(...X)=>{try{await C?.(...X)}catch(j){console.error("Error in form validation:",j)}finally{k(!1)}})())}}));const K=()=>{P||n()};return D.jsxs(b6,{open:t,onClose:K,"aria-labelledby":r,"aria-describedby":a,...v,component:q&&"form"||void 0,...q,children:[D.jsxs(R6,{id:!L&&r||void 0,children:[l==="form"&&D.jsx(x3,{})||l===!0&&D.jsx(j0,{variant:"circle",color:u,children:D.jsx(L,{})})||D.jsx(j0,{variant:"circle",color:u,children:l})||void 0,!l&&i,D.jsx(ul,{size:"small",onClick:K,children:D.jsx(B1,{size:"1.25rem"})})]}),D.jsxs(A6,{children:[l&&D.jsx(Ve,{variant:"subtitle1",id:r,children:i}),D.jsx(I6,{id:a,children:s})]}),B.length>0&&D.jsxs(x6,{children:[D.jsx(ci,{mr:"auto",children:S}),B.map(Y=>O.createElement(ls,{...Y,key:Y.key,...B.length===1&&{fullWidth:!0}}))]})]})},so=(e,t)=>{const[n,r]=O.useState(!1),i=D.jsx(F5,{...e,open:n,onClose:()=>{r(!1),e.onClose?.()}}),a=O.useMemo(()=>({open:()=>r(!0),close:()=>r(!1)}),[]);return[i,a]},H5=()=>D.jsxs("svg",{width:"100",height:"21",viewBox:"0 0 100 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[D.jsx("path",{d:"M25.9027 21C24.2555 21 22.9819 20.6707 22.082 20.012C21.1821 19.3687 20.6482 18.4344 20.4805 17.209H23.7064C23.9352 18.1586 24.6825 18.6335 25.9485 18.6335C26.8789 18.6335 27.5576 18.4037 27.9847 17.9442C28.4118 17.5 28.6253 16.8184 28.6253 15.8993V14.0383C28.3203 14.5897 27.8779 15.0339 27.2984 15.3709C26.7188 15.6926 26.0324 15.8534 25.2393 15.8534C24.2478 15.8534 23.3556 15.6313 22.5624 15.1871C21.7693 14.7276 21.1439 14.0536 20.6864 13.1652C20.2288 12.2768 20 11.2046 20 9.94858C20 8.69256 20.2288 7.62035 20.6864 6.73195C21.1439 5.82823 21.7693 5.15427 22.5624 4.71007C23.3556 4.25055 24.2478 4.02079 25.2393 4.02079C25.9866 4.02079 26.6654 4.18928 27.2755 4.52626C27.8856 4.86324 28.3355 5.29978 28.6253 5.83589V4.36543H31.7826V15.7845C31.7826 17.3928 31.3021 18.6641 30.3412 19.5985C29.3803 20.5328 27.9008 21 25.9027 21ZM25.9256 13.4409C26.7493 13.4409 27.4127 13.1116 27.9161 12.453C28.4194 11.7943 28.6711 10.9519 28.6711 9.9256C28.6711 8.89934 28.4194 8.06455 27.9161 7.42123C27.4127 6.76258 26.7493 6.43326 25.9256 6.43326C25.041 6.43326 24.3699 6.73961 23.9123 7.3523C23.4547 7.96499 23.2259 8.82276 23.2259 9.9256C23.2259 11.0284 23.4547 11.8939 23.9123 12.5219C24.3699 13.1346 25.041 13.4409 25.9256 13.4409Z",fill:"black"}),D.jsx("path",{d:"M33.39 16.1751V4.36543H36.4787V6.91575C36.8905 5.81291 37.4091 5.03939 38.0344 4.59519C38.6598 4.15098 39.5368 3.95952 40.6655 4.02079V6.98468C40.3299 6.95405 40.0783 6.93873 39.9105 6.93873C39.4682 6.93873 39.0487 7 38.6522 7.12254C37.2489 7.59737 36.5473 9.01422 36.5473 11.3731V16.1751H33.39Z",fill:"black"}),D.jsx("path",{d:"M44.1585 16.4967C42.9382 16.4967 41.9316 16.1751 41.1384 15.5317C40.3606 14.8884 39.9716 14 39.9716 12.8665C39.9716 11.9628 40.2157 11.2659 40.7037 10.7757C41.2071 10.2702 41.7714 9.9256 42.3968 9.74179C43.0374 9.55799 43.7619 9.41247 44.5703 9.30525L45.5312 9.19037C46.3396 9.09847 46.9192 8.96061 47.27 8.7768C47.636 8.57768 47.8191 8.20241 47.8191 7.65098C47.8191 7.19147 47.6589 6.83917 47.3386 6.59409C47.0183 6.34902 46.5607 6.22648 45.9659 6.22648C45.3863 6.22648 44.9135 6.34902 44.5474 6.59409C44.1966 6.82385 43.9754 7.14551 43.8839 7.55908H40.4978C40.7266 6.44092 41.3138 5.57549 42.2595 4.9628C43.2204 4.33479 44.4788 4.02079 46.0345 4.02079C49.2986 4.02079 50.9306 5.26149 50.9306 7.74289V13.326C50.9306 14.2451 51.0602 15.1947 51.3195 16.1751H48.208C48.086 15.6083 48.0021 15.1105 47.9563 14.6816C47.6055 15.233 47.1022 15.6772 46.4463 16.0142C45.7905 16.3359 45.0278 16.4967 44.1585 16.4967ZM45.1422 14.1532C45.9354 14.1532 46.576 13.8928 47.0641 13.372C47.5674 12.8512 47.8191 12.1849 47.8191 11.3731V10.2013C47.6055 10.4617 47.3386 10.6608 47.0183 10.7987C46.7133 10.9365 46.2709 11.0514 45.6913 11.1433C44.8372 11.2965 44.2195 11.4803 43.8381 11.6947C43.4568 11.8939 43.2662 12.2538 43.2662 12.7746C43.2662 13.2035 43.4416 13.5405 43.7924 13.7856C44.1432 14.0306 44.5932 14.1532 45.1422 14.1532Z",fill:"black"}),D.jsx("path",{d:"M63.6153 0.0919039V16.1751H60.458V14.7965C60.1682 15.3173 59.7183 15.7385 59.1082 16.0602C58.4981 16.3665 57.7964 16.5197 57.0033 16.5197C56.0119 16.5197 55.112 16.267 54.3036 15.7615C53.5105 15.256 52.8775 14.5361 52.4047 13.6018C51.9471 12.6521 51.7183 11.5416 51.7183 10.2702C51.7183 8.99891 51.9471 7.89606 52.4047 6.96171C52.8775 6.01203 53.5105 5.28446 54.3036 4.77899C55.112 4.27352 56.0119 4.02079 57.0033 4.02079C57.7812 4.02079 58.4752 4.18928 59.0853 4.52626C59.7106 4.84792 60.1682 5.2768 60.458 5.81291V0.0919039H63.6153ZM57.6897 14.0383C58.5438 14.0383 59.2226 13.686 59.7259 12.9814C60.2445 12.2768 60.5038 11.3731 60.5038 10.2702C60.5038 9.1674 60.2445 8.26368 59.7259 7.55908C59.2226 6.85449 58.5438 6.50219 57.6897 6.50219C56.7898 6.50219 56.1034 6.83917 55.6306 7.51313C55.173 8.17177 54.9442 9.09081 54.9442 10.2702C54.9442 11.4497 55.173 12.3764 55.6306 13.0503C56.1034 13.709 56.7898 14.0383 57.6897 14.0383Z",fill:"black"}),D.jsx("path",{d:"M68.4939 3.10175H64.9476V0H68.4939V3.10175ZM68.2879 16.1751H65.1764V4.36543H68.2879V16.1751Z",fill:"black"}),D.jsx("path",{d:"M75.1212 14.0842C76.2194 14.0842 76.9515 13.7396 77.3176 13.0503H80.6121C80.2766 14.1225 79.6207 14.9726 78.6446 15.6007C77.6836 16.2133 76.4939 16.5197 75.0755 16.5197C73.7942 16.5197 72.6808 16.2593 71.7351 15.7385C70.8047 15.2177 70.0879 14.4902 69.5845 13.5558C69.0812 12.6061 68.8295 11.5186 68.8295 10.2932C68.8295 9.09847 69.1041 8.02626 69.6532 7.07659C70.2023 6.1116 70.9344 5.36105 71.8495 4.82495C72.7799 4.28884 73.7942 4.02079 74.8924 4.02079C76.0821 4.02079 77.1269 4.30416 78.0268 4.8709C78.942 5.42232 79.6589 6.24179 80.1774 7.32932C80.696 8.40153 80.9629 9.69584 80.9782 11.2123H72.0555C72.1165 12.0853 72.4291 12.7823 72.9935 13.3031C73.5731 13.8239 74.2823 14.0842 75.1212 14.0842ZM75.0068 6.45624C74.2594 6.45624 73.6112 6.70131 73.0621 7.19147C72.5283 7.68162 72.2003 8.29431 72.0783 9.02954H77.8438C77.7065 8.24836 77.3938 7.62801 76.9058 7.16849C76.4177 6.69365 75.7847 6.45624 75.0068 6.45624Z",fill:"black"}),D.jsx("path",{d:"M81.5786 16.1751V4.36543H84.6444V5.85886C84.9647 5.35339 85.407 4.92451 85.9713 4.57221C86.5357 4.2046 87.2449 4.02079 88.0991 4.02079C89.304 4.02079 90.2421 4.39606 90.9132 5.14661C91.5995 5.89716 91.9427 6.95405 91.9427 8.31729V16.1751H88.7854V8.54705C88.7854 7.21444 88.2135 6.54814 87.0695 6.54814C86.4289 6.54814 85.8798 6.80853 85.4222 7.32932C84.9647 7.83479 84.7359 8.593 84.7359 9.60394V16.1751H81.5786Z",fill:"black"}),D.jsx("path",{d:"M98.1011 16.2899C96.9876 16.2899 96.0801 16.0066 95.3785 15.4398C94.6921 14.8731 94.3489 13.9311 94.3489 12.6138V6.7779H92.3356V4.36543H94.3489V0.873086H97.4147V4.36543H99.7712V6.7779H97.4147V12.0853C97.4147 12.698 97.5291 13.1575 97.7579 13.4639C98.0019 13.7549 98.3985 13.9004 98.9476 13.9004C99.2374 13.9004 99.5882 13.8545 100 13.7626V16.0372C99.5272 16.2057 98.8942 16.2899 98.1011 16.2899Z",fill:"black"}),D.jsx("path",{d:"M3 13H0V16H3V13Z",fill:"black"}),D.jsx("path",{d:"M18 0V2.85011L8.94745 16H6V13.1499L15.0521 0H18Z",fill:"black"})]}),z5=()=>D.jsxs("svg",{width:"26",height:"28",viewBox:"0 0 26 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[D.jsx("path",{d:"M7 19H4V22H7V19Z",fill:"black"}),D.jsx("path",{d:"M22 6V8.85011L12.9475 22H10V19.1499L19.0521 6H22Z",fill:"black"})]}),U5=ue(af)(({theme:e})=>{const{spacing:t}=e;return{height:"4rem"}}),V5=ue(vg)(({theme:e})=>{const{spacing:t}=e;return{height:"3.25rem",gap:"0.5rem"}}),j5=ue("img")(({theme:e})=>{const{palette:t}=e;return{width:"2.25rem",height:"2.25rem",borderRadius:"0.5rem",border:`1px solid ${t.divider}`,objectFit:"cover"}}),q5=ue("span")(({theme:e})=>{const{palette:t,typography:n}=e;return{...n.subtitle2,fontWeight:n.fontWeightLight,color:t.text.primary}}),$5=ue("span")(({theme:e})=>{const{palette:t,typography:n}=e;return{...n.body2,fontWeight:n.fontWeightLight,color:t.text.secondary}}),pc=(e,t)=>D.jsxs(V5,{value:e.name,children:[D.jsx(j5,{src:e.logoUrl}),D.jsxs(Je,{gap:.25,children:[D.jsx(q5,{children:e.displayName}),D.jsx($5,{children:e.name})]})]},e.name),_R=()=>{const[{modelName:e,modelInfoList:t},{setModelName:n}]=fa();return D.jsx(U5,{value:e,onChange:r=>n(String(r.target.value)),renderValue:r=>{const i=t.find(a=>a.name===r);return i&&pc(i)||void 0},children:t.map(r=>pc(r,r.name===e))})},W5={"linux/mac":"Linux/MacOS",windows:"Windows"},Y5=ue("div")(({theme:e})=>{const{palette:t,spacing:n}=e;return{display:"flex",flexFlow:"row nowrap",justifyContent:"space-between",alignItems:"center",paddingInline:n(2),paddingBlock:n(1.5),gap:n(1),overflow:"hidden",borderRadius:"0.7rem",backgroundColor:t.background.area}}),gc=()=>{const[{clusterInfo:{nodeJoinCommand:e}}]=fa(),[t,n]=O.useState();O.useEffect(()=>{if(t){const i=setTimeout(()=>{n(void 0)},2e3);return()=>clearTimeout(i)}},[t]);const r=cs(async i=>{await navigator.clipboard.writeText(e[i]),n(i)});return D.jsx(Je,{gap:1,children:Object.entries(e).map(([i,a])=>D.jsxs(Je,{gap:1,children:[D.jsxs(Ve,{variant:"subtitle2",children:["For ",W5[i]||i,":"]}),D.jsxs(Y5,{children:[D.jsx(Ve,{sx:{flex:1,lineHeight:"1.125rem",whiteSpace:"wrap"},variant:"pre",children:a}),D.jsx(ul,{sx:{flex:"none",fontSize:"1.5rem"},size:"em",onClick:()=>r(i),children:t===i&&D.jsx(of,{})||D.jsx(uf,{})})]})]},i))})};function ml(e,t){e.indexOf(t)===-1&&e.push(t)}function pl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Yn=(e,t,n)=>n>t?t:n{};const Gn={},lf=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function cf(e){return typeof e=="object"&&e!==null}const df=e=>/^0[^.\s]+$/u.test(e);function bl(e){let t;return()=>(t===void 0&&(t=e()),t)}const dn=e=>e,G5=(e,t)=>n=>t(e(n)),pa=(...e)=>e.reduce(G5),ta=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class yl{constructor(){this.subscriptions=[]}add(t){return ml(this.subscriptions,t),()=>pl(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;ae*1e3,Mn=e=>e/1e3;function hf(e,t){return t?e*(1e3/t):0}const ff=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,K5=1e-7,X5=12;function Q5(e,t,n,r,i){let a,s,o=0;do s=t+(n-t)/2,a=ff(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>K5&&++oQ5(a,0,1,e,n);return a=>a===0||a===1?a:ff(i(a),t,r)}const mf=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,pf=e=>t=>1-e(1-t),gf=ga(.33,1.53,.69,.99),Tl=pf(gf),bf=mf(Tl),yf=e=>(e*=2)<1?.5*Tl(e):.5*(2-Math.pow(2,-10*(e-1))),El=e=>1-Math.sin(Math.acos(e)),Tf=pf(El),Ef=mf(El),Z5=ga(.42,0,1,1),J5=ga(0,0,.58,1),xf=ga(.42,0,.58,1),e7=e=>Array.isArray(e)&&typeof e[0]!="number",vf=e=>Array.isArray(e)&&typeof e[0]=="number",t7={linear:dn,easeIn:Z5,easeInOut:xf,easeOut:J5,circIn:El,circInOut:Ef,circOut:Tf,backIn:Tl,backInOut:bf,backOut:gf,anticipate:yf},n7=e=>typeof e=="string",bc=e=>{if(vf(e)){gl(e.length===4);const[t,n,r,i]=e;return ga(t,n,r,i)}else if(n7(e))return t7[e];return e},Sf=O.createContext({}),Af=O.createContext({strict:!1}),Cf=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Os=O.createContext({});function Bs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function na(e){return typeof e=="string"||Array.isArray(e)}const xl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],vl=["initial",...xl];function Fs(e){return Bs(e.animate)||vl.some(t=>na(e[t]))}function wf(e){return!!(Fs(e)||e.variants)}function r7(e,t){if(Fs(e)){const{initial:n,animate:r}=e;return{initial:n===!1||na(n)?n:void 0,animate:na(r)?r:void 0}}return e.inherit!==!1?t:{}}function i7(e){const{initial:t,animate:n}=r7(e,O.useContext(Os));return O.useMemo(()=>({initial:t,animate:n}),[yc(t),yc(n)])}function yc(e){return Array.isArray(e)?e.join(" "):e}const Pa=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function a7(e,t){let n=new Set,r=new Set,i=!1,a=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function u(c){s.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,d=!1,m=!1)=>{const b=m&&i?n:r;return d&&s.add(c),b.has(c)||b.add(c),c},cancel:c=>{r.delete(c),s.delete(c)},process:c=>{if(o=c,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),n.clear(),i=!1,a&&(a=!1,l.process(c))}};return l}const s7=40;function kf(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=Pa.reduce((v,L)=>(v[L]=a7(a),v),{}),{setup:o,read:u,resolveKeyframes:l,preUpdate:c,update:d,preRender:m,render:p,postRender:b}=s,E=()=>{const v=Gn.useManualTiming?i.timestamp:performance.now();n=!1,Gn.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(v-i.timestamp,s7),1)),i.timestamp=v,i.isProcessing=!0,o.process(i),u.process(i),l.process(i),c.process(i),d.process(i),m.process(i),p.process(i),b.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(E))},C=()=>{n=!0,r=!0,i.isProcessing||e(E)};return{schedule:Pa.reduce((v,L)=>{const P=s[L];return v[L]=(k,V=!1,U=!1)=>(n||C(),P.schedule(k,V,U)),v},{}),cancel:v=>{for(let L=0;L(es===void 0&&Gt.set(It.isProcessing||Gn.useManualTiming?It.timestamp:performance.now()),es),set:e=>{es=e,queueMicrotask(o7)}},If=e=>t=>typeof t=="string"&&t.startsWith(e),Sl=If("--"),u7=If("var(--"),Al=e=>u7(e)?l7.test(e.split("/*")[0].trim()):!1,l7=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,di={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ra={...di,transform:e=>Yn(0,1,e)},Oa={...di,default:1},Hi=e=>Math.round(e*1e5)/1e5,Cl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function c7(e){return e==null}const d7=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,wl=(e,t)=>n=>!!(typeof n=="string"&&d7.test(n)&&n.startsWith(e)||t&&!c7(n)&&Object.prototype.hasOwnProperty.call(n,t)),Nf=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,o]=r.match(Cl);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},h7=e=>Yn(0,255,e),uo={...di,transform:e=>Math.round(h7(e))},Nr={test:wl("rgb","red"),parse:Nf("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+uo.transform(e)+", "+uo.transform(t)+", "+uo.transform(n)+", "+Hi(ra.transform(r))+")"};function f7(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const hu={test:wl("#"),parse:f7,transform:Nr.transform},ba=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),sr=ba("deg"),Rn=ba("%"),Ee=ba("px"),m7=ba("vh"),p7=ba("vw"),Tc={...Rn,parse:e=>Rn.parse(e)/100,transform:e=>Rn.transform(e*100)},Kr={test:wl("hsl","hue"),parse:Nf("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Rn.transform(Hi(t))+", "+Rn.transform(Hi(n))+", "+Hi(ra.transform(r))+")"},yt={test:e=>Nr.test(e)||hu.test(e)||Kr.test(e),parse:e=>Nr.test(e)?Nr.parse(e):Kr.test(e)?Kr.parse(e):hu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Nr.transform(e):Kr.transform(e),getAnimatableNone:e=>{const t=yt.parse(e);return t.alpha=0,yt.transform(t)}},g7=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function b7(e){return isNaN(e)&&typeof e=="string"&&(e.match(Cl)?.length||0)+(e.match(g7)?.length||0)>0}const Mf="number",Rf="color",y7="var",T7="var(",Ec="${}",E7=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ia(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(E7,u=>(yt.test(u)?(r.color.push(a),i.push(Rf),n.push(yt.parse(u))):u.startsWith(T7)?(r.var.push(a),i.push(y7),n.push(u)):(r.number.push(a),i.push(Mf),n.push(parseFloat(u))),++a,Ec)).split(Ec);return{values:n,split:o,indexes:r,types:i}}function Df(e){return ia(e).values}function _f(e){const{split:t,types:n}=ia(e),r=t.length;return i=>{let a="";for(let s=0;stypeof e=="number"?0:yt.test(e)?yt.getAnimatableNone(e):e;function v7(e){const t=Df(e);return _f(e)(t.map(x7))}const fr={test:b7,parse:Df,createTransformer:_f,getAnimatableNone:v7};function lo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function S7({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,u=2*n-o;i=lo(u,o,e+1/3),a=lo(u,o,e),s=lo(u,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function hs(e,t){return n=>n>0?t:e}const ot=(e,t,n)=>e+(t-e)*n,co=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},A7=[hu,Nr,Kr],C7=e=>A7.find(t=>t.test(e));function xc(e){const t=C7(e);if(!t)return!1;let n=t.parse(e);return t===Kr&&(n=S7(n)),n}const vc=(e,t)=>{const n=xc(e),r=xc(t);if(!n||!r)return hs(e,t);const i={...n};return a=>(i.red=co(n.red,r.red,a),i.green=co(n.green,r.green,a),i.blue=co(n.blue,r.blue,a),i.alpha=ot(n.alpha,r.alpha,a),Nr.transform(i))},fu=new Set(["none","hidden"]);function w7(e,t){return fu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function k7(e,t){return n=>ot(e,t,n)}function kl(e){return typeof e=="number"?k7:typeof e=="string"?Al(e)?hs:yt.test(e)?vc:M7:Array.isArray(e)?Lf:typeof e=="object"?yt.test(e)?vc:I7:hs}function Lf(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>kl(a)(a,t[s]));return a=>{for(let s=0;s{for(const a in r)n[a]=r[a](i);return n}}function N7(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=fr.createTransformer(t),r=ia(e),i=ia(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?fu.has(e)&&!i.values.length||fu.has(t)&&!r.values.length?w7(e,t):pa(Lf(N7(r,i),i.values),n):hs(e,t)};function Pf(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ot(e,t,n):kl(e)(e,t)}const R7=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>rt.update(t,n),stop:()=>hr(t),now:()=>It.isProcessing?It.timestamp:Gt.now()}},Of=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a=fs?1/0:t}function D7(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Il(r),fs);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:Mn(i)}}const _7=5;function Bf(e,t,n){const r=Math.max(t-_7,0);return hf(n-e(r),t-r)}const ct={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ho=.001;function L7({duration:e=ct.duration,bounce:t=ct.bounce,velocity:n=ct.velocity,mass:r=ct.mass}){let i,a,s=1-t;s=Yn(ct.minDamping,ct.maxDamping,s),e=Yn(ct.minDuration,ct.maxDuration,Mn(e)),s<1?(i=l=>{const c=l*s,d=c*e,m=c-n,p=mu(l,s),b=Math.exp(-d);return ho-m/p*b},a=l=>{const d=l*s*e,m=d*n+n,p=Math.pow(s,2)*Math.pow(l,2)*e,b=Math.exp(-d),E=mu(Math.pow(l,2),s);return(-i(l)+ho>0?-1:1)*((m-p)*b)/E}):(i=l=>{const c=Math.exp(-l*e),d=(l-n)*e+1;return-ho+c*d},a=l=>{const c=Math.exp(-l*e),d=(n-l)*(e*e);return c*d});const o=5/e,u=O7(i,a,o);if(e=Nn(e),isNaN(u))return{stiffness:ct.stiffness,damping:ct.damping,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const P7=12;function O7(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function H7(e){let t={velocity:ct.velocity,stiffness:ct.stiffness,damping:ct.damping,mass:ct.mass,isResolvedFromDuration:!1,...e};if(!Sc(e,F7)&&Sc(e,B7))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Yn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ct.mass,stiffness:i,damping:a}}else{const n=L7(e);t={...t,...n,mass:ct.mass},t.isResolvedFromDuration=!0}return t}function ms(e=ct.visualDuration,t=ct.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:a},{stiffness:u,damping:l,mass:c,duration:d,velocity:m,isResolvedFromDuration:p}=H7({...n,velocity:-Mn(n.velocity||0)}),b=m||0,E=l/(2*Math.sqrt(u*c)),C=s-a,T=Mn(Math.sqrt(u/c)),S=Math.abs(C)<5;r||(r=S?ct.restSpeed.granular:ct.restSpeed.default),i||(i=S?ct.restDelta.granular:ct.restDelta.default);let v;if(E<1){const P=mu(T,E);v=k=>{const V=Math.exp(-E*T*k);return s-V*((b+E*T*C)/P*Math.sin(P*k)+C*Math.cos(P*k))}}else if(E===1)v=P=>s-Math.exp(-T*P)*(C+(b+T*C)*P);else{const P=T*Math.sqrt(E*E-1);v=k=>{const V=Math.exp(-E*T*k),U=Math.min(P*k,300);return s-V*((b+E*T*C)*Math.sinh(U)+P*C*Math.cosh(U))/P}}const L={calculatedDuration:p&&d||null,next:P=>{const k=v(P);if(p)o.done=P>=d;else{let V=P===0?b:0;E<1&&(V=P===0?Nn(b):Bf(v,P,k));const U=Math.abs(V)<=r,q=Math.abs(s-k)<=i;o.done=U&&q}return o.value=o.done?s:k,o},toString:()=>{const P=Math.min(Il(L),fs),k=Of(V=>L.next(P*V).value,P,30);return P+"ms "+k},toTransition:()=>{}};return L}ms.applyToOptions=e=>{const t=D7(e,100,ms);return e.ease=t.ease,e.duration=Nn(t.duration),e.type="keyframes",e};function pu({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:u,restDelta:l=.5,restSpeed:c}){const d=e[0],m={done:!1,value:d},p=U=>o!==void 0&&Uu,b=U=>o===void 0?u:u===void 0||Math.abs(o-U)-E*Math.exp(-U/r),v=U=>T+S(U),L=U=>{const q=S(U),B=v(U);m.done=Math.abs(q)<=l,m.value=m.done?T:B};let P,k;const V=U=>{p(m.value)&&(P=U,k=ms({keyframes:[m.value,b(m.value)],velocity:Bf(v,U,m.value),damping:i,stiffness:a,restDelta:l,restSpeed:c}))};return V(0),{calculatedDuration:null,next:U=>{let q=!1;return!k&&P===void 0&&(q=!0,L(U),V(U)),P!==void 0&&U>=P?k.next(U-P):(!q&&L(U),m)}}}function z7(e,t,n){const r=[],i=n||Gn.mix||Pf,a=e.length-1;for(let s=0;st[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=z7(t,r,i),u=o.length,l=c=>{if(s&&c1)for(;dl(Yn(e[0],e[a-1],c)):l}function V7(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ta(0,t,r);e.push(ot(n,1,i))}}function j7(e){const t=[0];return V7(t,e.length-1),t}function q7(e,t){return e.map(n=>n*t)}function $7(e,t){return e.map(()=>t||xf).splice(0,e.length-1)}function zi({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=e7(r)?r.map(bc):bc(r),a={done:!1,value:t[0]},s=q7(n&&n.length===t.length?n:j7(t),e),o=U7(s,t,{ease:Array.isArray(i)?i:$7(t,i)});return{calculatedDuration:e,next:u=>(a.value=o(u),a.done=u>=e,a)}}const W7=e=>e!==null;function Nl(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(W7),o=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!o||r===void 0?a[o]:r}const Y7={decay:pu,inertia:pu,tween:zi,keyframes:zi,spring:ms};function Ff(e){typeof e.type=="string"&&(e.type=Y7[e.type])}class Ml{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const G7=e=>e/100;class Rl extends Ml{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Gt.now()&&this.tick(Gt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ff(t);const{type:n=zi,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=t;let{keyframes:o}=t;const u=n||zi;u!==zi&&typeof o[0]!="number"&&(this.mixKeyframes=pa(G7,Pf(o[0],o[1])),o=[0,100]);const l=u({...t,keyframes:o});a==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...o].reverse(),velocity:-s})),l.calculatedDuration===null&&(l.calculatedDuration=Il(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:c,repeat:d,repeatType:m,repeatDelay:p,type:b,onUpdate:E,finalKeyframe:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const T=this.currentTime-l*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?T<0:T>i;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,L=r;if(d){const U=Math.min(this.currentTime,i)/o;let q=Math.floor(U),B=U%1;!B&&U>=1&&(B=1),B===1&&q--,q=Math.min(q,d+1),!!(q%2)&&(m==="reverse"?(B=1-B,p&&(B-=p/o)):m==="mirror"&&(L=s)),v=Yn(0,1,B)*o}const P=S?{done:!1,value:c[0]}:L.next(v);a&&(P.value=a(P.value));let{done:k}=P;!S&&u!==null&&(k=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return V&&b!==pu&&(P.value=Nl(c,this.options,C,this.speed)),E&&E(P.value),V&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return Mn(this.calculatedDuration)}get time(){return Mn(this.currentTime)}set time(t){t=Nn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Gt.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Mn(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=R7,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Gt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function K7(e){for(let t=1;te*180/Math.PI,gu=e=>{const t=Mr(Math.atan2(e[1],e[0]));return bu(t)},X7={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:gu,rotateZ:gu,skewX:e=>Mr(Math.atan(e[1])),skewY:e=>Mr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},bu=e=>(e=e%360,e<0&&(e+=360),e),Ac=gu,Cc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),wc=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Q7={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Cc,scaleY:wc,scale:e=>(Cc(e)+wc(e))/2,rotateX:e=>bu(Mr(Math.atan2(e[6],e[5]))),rotateY:e=>bu(Mr(Math.atan2(-e[2],e[0]))),rotateZ:Ac,rotate:Ac,skewX:e=>Mr(Math.atan(e[4])),skewY:e=>Mr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function yu(e){return e.includes("scale")?1:0}function Tu(e,t){if(!e||e==="none")return yu(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Q7,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=X7,i=o}if(!i)return yu(t);const a=r[t],s=i[1].split(",").map(J7);return typeof a=="function"?a(s):s[a]}const Z7=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Tu(n,t)};function J7(e){return parseFloat(e.trim())}const hi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],fi=new Set(hi),kc=e=>e===di||e===Ee,e8=new Set(["x","y","z"]),t8=hi.filter(e=>!e8.has(e));function n8(e){const t=[];return t8.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Rr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Tu(t,"x"),y:(e,{transform:t})=>Tu(t,"y")};Rr.translateX=Rr.x;Rr.translateY=Rr.y;const Dr=new Set;let Eu=!1,xu=!1,vu=!1;function Hf(){if(xu){const e=Array.from(Dr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=n8(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,s])=>{r.getValue(a)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}xu=!1,Eu=!1,Dr.forEach(e=>e.complete(vu)),Dr.clear()}function zf(){Dr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(xu=!0)})}function r8(){vu=!0,zf(),Hf(),vu=!1}class Dl{constructor(t,n,r,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Dr.add(this),Eu||(Eu=!0,rt.read(zf),rt.resolveKeyframes(Hf))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i?.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const o=r.readValue(n,s);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}K7(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Dr.delete(this)}cancel(){this.state==="scheduled"&&(Dr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const i8=e=>e.startsWith("--");function a8(e,t,n){i8(t)?e.style.setProperty(t,n):e.style[t]=n}const s8=bl(()=>window.ScrollTimeline!==void 0),o8={};function u8(e,t){const n=bl(e);return()=>o8[t]??n()}const Uf=u8(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Pi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ic={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Pi([0,.65,.55,1]),circOut:Pi([.55,0,1,.45]),backIn:Pi([.31,.01,.66,-.59]),backOut:Pi([.33,1.53,.69,.99])};function Vf(e,t){if(e)return typeof e=="function"?Uf()?Of(e,t):"ease-out":vf(e)?Pi(e):Array.isArray(e)?e.map(n=>Vf(n,t)||Ic.easeOut):Ic[e]}function l8(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:u}={},l=void 0){const c={[t]:n};u&&(c.offset=u);const d=Vf(o,i);Array.isArray(d)&&(c.easing=d);const m={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return l&&(m.pseudoElement=l),e.animate(c,m)}function jf(e){return typeof e=="function"&&"applyToOptions"in e}function c8({type:e,...t}){return jf(e)&&Uf()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class d8 extends Ml{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:o,onComplete:u}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,gl(typeof t.type!="string");const l=c8(t);this.animation=l8(n,r,i,l,a),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const c=Nl(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(c):a8(n,r,c),this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Mn(Number(t))}get time(){return Mn(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Nn(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&s8()?(this.animation.timeline=t,dn):n(this)}}const qf={anticipate:yf,backInOut:bf,circInOut:Ef};function h8(e){return e in qf}function f8(e){typeof e.ease=="string"&&h8(e.ease)&&(e.ease=qf[e.ease])}const Nc=10;class m8 extends d8{constructor(t){f8(t),Ff(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new Rl({...s,autoplay:!1}),u=Nn(this.finishedTime??this.time);n.setWithVelocity(o.sample(u-Nc).value,o.sample(u).value,Nc),o.stop()}}const Mc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(fr.test(e)||e==="0")&&!e.startsWith("url("));function p8(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function T8(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=t.owner.getProps();return y8()&&n&&b8.has(n)&&(n!=="transform"||!l)&&!u&&!r&&i!=="mirror"&&a!==0&&s!=="inertia"}const E8=40;class x8 extends Ml{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:o,name:u,motionValue:l,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Gt.now();const m={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,name:u,motionValue:l,element:c,...d},p=c?.KeyframeResolver||Dl;this.keyframeResolver=new p(o,(b,E,C)=>this.onKeyframesResolved(b,E,m,!C),u,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:s,velocity:o,delay:u,isHandoff:l,onUpdate:c}=r;this.resolvedAt=Gt.now(),g8(t,a,s,o)||((Gn.instantAnimations||!u)&&c?.(Nl(t,r,n)),t[0]=t[t.length-1],Su(r),r.repeat=0);const m={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>E8?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!l&&T8(m)?new m8({...m,element:m.motionValue.owner.current}):new Rl(m);p.finished.then(()=>this.notifyFinished()).catch(dn),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),r8()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const v8=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function S8(e){const t=v8.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function $f(e,t,n=1){const[r,i]=S8(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return lf(s)?parseFloat(s):s}return Al(i)?$f(i,t,n+1):i}function _l(e,t){return e?.[t]??e?.default??e}const Wf=new Set(["width","height","top","left","right","bottom",...hi]),A8={test:e=>e==="auto",parse:e=>e},Yf=e=>t=>t.test(e),Gf=[di,Ee,Rn,sr,p7,m7,A8],Rc=e=>Gf.find(Yf(e));function C8(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||df(e):!0}const w8=new Set(["brightness","contrast","saturate","opacity"]);function k8(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Cl)||[];if(!r)return e;const i=n.replace(r,"");let a=w8.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const I8=/\b([a-z-]*)\(.*?\)/gu,Au={...fr,getAnimatableNone:e=>{const t=e.match(I8);return t?t.map(k8).join(" "):e}},Dc={...di,transform:Math.round},N8={rotate:sr,rotateX:sr,rotateY:sr,rotateZ:sr,scale:Oa,scaleX:Oa,scaleY:Oa,scaleZ:Oa,skew:sr,skewX:sr,skewY:sr,distance:Ee,translateX:Ee,translateY:Ee,translateZ:Ee,x:Ee,y:Ee,z:Ee,perspective:Ee,transformPerspective:Ee,opacity:ra,originX:Tc,originY:Tc,originZ:Ee},Ll={borderWidth:Ee,borderTopWidth:Ee,borderRightWidth:Ee,borderBottomWidth:Ee,borderLeftWidth:Ee,borderRadius:Ee,radius:Ee,borderTopLeftRadius:Ee,borderTopRightRadius:Ee,borderBottomRightRadius:Ee,borderBottomLeftRadius:Ee,width:Ee,maxWidth:Ee,height:Ee,maxHeight:Ee,top:Ee,right:Ee,bottom:Ee,left:Ee,padding:Ee,paddingTop:Ee,paddingRight:Ee,paddingBottom:Ee,paddingLeft:Ee,margin:Ee,marginTop:Ee,marginRight:Ee,marginBottom:Ee,marginLeft:Ee,backgroundPositionX:Ee,backgroundPositionY:Ee,...N8,zIndex:Dc,fillOpacity:ra,strokeOpacity:ra,numOctaves:Dc},M8={...Ll,color:yt,backgroundColor:yt,outlineColor:yt,fill:yt,stroke:yt,borderColor:yt,borderTopColor:yt,borderRightColor:yt,borderBottomColor:yt,borderLeftColor:yt,filter:Au,WebkitFilter:Au},Kf=e=>M8[e];function Xf(e,t){let n=Kf(e);return n!==Au&&(n=fr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const R8=new Set(["auto","none","0"]);function D8(e,t,n){let r=0,i;for(;r{t.getValue(o).set(u)}),this.resolveNoneKeyframes()}}function L8(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const Qf=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function P8(e){return cf(e)&&"offsetHeight"in e}const _c=30,O8=e=>!isNaN(parseFloat(e));class B8{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const i=Gt.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Gt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=O8(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new yl);const r=this.events[t].add(n);return t==="change"?()=>{r(),rt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Gt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>_c)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,_c);return hf(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ai(e,t){return new B8(e,t)}const{schedule:Pl}=kf(queueMicrotask,!1),gn={x:!1,y:!1};function Zf(){return gn.x||gn.y}function F8(e){return e==="x"||e==="y"?gn[e]?null:(gn[e]=!0,()=>{gn[e]=!1}):gn.x||gn.y?null:(gn.x=gn.y=!0,()=>{gn.x=gn.y=!1})}function Jf(e,t){const n=L8(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Lc(e){return!(e.pointerType==="touch"||Zf())}function H8(e,t,n={}){const[r,i,a]=Jf(e,n),s=o=>{if(!Lc(o))return;const{target:u}=o,l=t(u,o);if(typeof l!="function"||!u)return;const c=d=>{Lc(d)&&(l(d),u.removeEventListener("pointerleave",c))};u.addEventListener("pointerleave",c,i)};return r.forEach(o=>{o.addEventListener("pointerenter",s,i)}),a}const em=(e,t)=>t?e===t?!0:em(e,t.parentElement):!1,Ol=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,z8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function U8(e){return z8.has(e.tagName)||e.tabIndex!==-1}const ts=new WeakSet;function Pc(e){return t=>{t.key==="Enter"&&e(t)}}function fo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const V8=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Pc(()=>{if(ts.has(n))return;fo(n,"down");const i=Pc(()=>{fo(n,"up")}),a=()=>fo(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Oc(e){return Ol(e)&&!Zf()}function j8(e,t,n={}){const[r,i,a]=Jf(e,n),s=o=>{const u=o.currentTarget;if(!Oc(o))return;ts.add(u);const l=t(u,o),c=(p,b)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",m),ts.has(u)&&ts.delete(u),Oc(p)&&typeof l=="function"&&l(p,{success:b})},d=p=>{c(p,u===window||u===document||n.useGlobalTarget||em(u,p.target))},m=p=>{c(p,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",m,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,i),P8(o)&&(o.addEventListener("focus",l=>V8(l,i)),!U8(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),a}function tm(e){return cf(e)&&"ownerSVGElement"in e}function q8(e){return tm(e)&&e.tagName==="svg"}const Rt=e=>!!(e&&e.getVelocity),$8=[...Gf,yt,fr],W8=e=>$8.find(Yf(e)),aa={};function Y8(e){for(const t in e)aa[t]=e[t],Sl(t)&&(aa[t].isCSSVariable=!0)}function nm(e,{layout:t,layoutId:n}){return fi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!aa[e]||e==="opacity")}const G8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},K8=hi.length;function X8(e,t,n){let r="",i=!0;for(let a=0;a({style:{},transform:{},transformOrigin:{},vars:{}});function rm(e,t,n){for(const r in t)!Rt(t[r])&&!nm(r,n)&&(e[r]=t[r])}function Q8({transformTemplate:e},t){return O.useMemo(()=>{const n=Fl();return Bl(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Z8(e,t){const n=e.style||{},r={};return rm(r,n,e),Object.assign(r,Q8(e,t)),r}function J8(e,t){const n={},r=Z8(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const eb={offset:"stroke-dashoffset",array:"stroke-dasharray"},tb={offset:"strokeDashoffset",array:"strokeDasharray"};function nb(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?eb:tb;e[a.offset]=Ee.transform(-r);const s=Ee.transform(t),o=Ee.transform(n);e[a.array]=`${s} ${o}`}function im(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...o},u,l,c){if(Bl(e,o,l),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:m}=e;d.transform&&(m.transform=d.transform,delete d.transform),(m.transform||d.transformOrigin)&&(m.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),m.transform&&(m.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&nb(d,i,a,s,!1)}const am=()=>({...Fl(),attrs:{}}),sm=e=>typeof e=="string"&&e.toLowerCase()==="svg";function rb(e,t,n,r){const i=O.useMemo(()=>{const a=am();return im(a,t,sm(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};rm(a,e.style,e),i.style={...a,...i.style}}return i}const ib=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ps(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ib.has(e)}let om=e=>!ps(e);function ab(e){typeof e=="function"&&(om=t=>t.startsWith("on")?!ps(t):e(t))}try{ab(require("@emotion/is-prop-valid").default)}catch{}function sb(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(om(i)||n===!0&&ps(i)||!t&&!ps(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const ob=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Hl(e){return typeof e!="string"||e.includes("-")?!1:!!(ob.indexOf(e)>-1||/[A-Z]/u.test(e))}function ub(e,t,n,{latestValues:r},i,a=!1){const o=(Hl(e)?rb:J8)(t,r,i,e),u=sb(t,typeof e=="string",a),l=e!==O.Fragment?{...u,...o,ref:n}:{},{children:c}=t,d=O.useMemo(()=>Rt(c)?c.get():c,[c]);return O.createElement(e,{...l,children:d})}const zl=O.createContext(null);function Bc(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ul(e,t,n,r){if(typeof t=="function"){const[i,a]=Bc(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=Bc(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function lb(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}function ns(e){return Rt(e)?e.get():e}function cb({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:db(n,r,i,e),renderState:t()}}function db(e,t,n,r){const i={},a=r(e,{});for(const m in a)i[m]=ns(a[m]);let{initial:s,animate:o}=e;const u=Fs(e),l=wf(e);t&&l&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?o:s;if(d&&typeof d!="boolean"&&!Bs(d)){const m=Array.isArray(d)?d:[d];for(let p=0;p(t,n)=>{const r=O.useContext(Os),i=O.useContext(zl),a=()=>cb(e,t,r,i);return n?a():lb(a)};function Vl(e,t,n){const{style:r}=e,i={};for(const a in r)(Rt(r[a])||t.style&&Rt(t.style[a])||nm(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}const hb=um({scrapeMotionValuesFromProps:Vl,createRenderState:Fl});function lm(e,t,n){const r=Vl(e,t,n);for(const i in e)if(Rt(e[i])||Rt(t[i])){const a=hi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const fb=um({scrapeMotionValuesFromProps:lm,createRenderState:am}),jl=typeof window<"u",Fc={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},si={};for(const e in Fc)si[e]={isEnabled:t=>Fc[e].some(n=>!!t[n])};function mb(e){for(const t in e)si[t]={...si[t],...e[t]}}const pb=Symbol.for("motionComponentSymbol");function Xr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function gb(e,t,n){const r=O.useRef(null);return O.useCallback(i=>{const a=r.current;r.current=i,i!==a&&(i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount())),n&&(typeof n=="function"?n(i):Xr(n)&&(n.current=i))},[t,n])}const ql=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),bb="framerAppearId",cm="data-"+ql(bb),dm=O.createContext({}),yb=jl?O.useLayoutEffect:O.useEffect;function Tb(e,t,n,r,i){const{visualElement:a}=O.useContext(Os),s=O.useContext(Af),o=O.useContext(zl),u=O.useContext(Cf).reducedMotion,l=O.useRef(null);r=r||s.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:a,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:u}));const c=l.current,d=O.useContext(dm);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&Eb(l.current,n,i,d);const m=O.useRef(!1);O.useInsertionEffect(()=>{c&&m.current&&c.update(n,o)});const p=n[cm],b=O.useRef(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return yb(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),b.current&&c.animationState&&c.animationState.animateChanges())}),O.useEffect(()=>{c&&(!b.current&&c.animationState&&c.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),b.current=!1),c.enteringChildren=void 0)}),c}function Eb(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:u,layoutRoot:l,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:hm(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&Xr(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:u,layoutRoot:l})}function hm(e){if(e)return e.options.allowProjection!==!1?e.projection:hm(e.parent)}function xb(e,{forwardMotionProps:t=!1}={},n,r){n&&mb(n);const i=Hl(e)?fb:hb;function a(o,u){let l;const c={...O.useContext(Cf),...o,layoutId:vb(o)},{isStatic:d}=c,m=i7(o),p=i(o,d);if(!d&&jl){Sb();const b=Ab(c);l=b.MeasureLayout,m.visualElement=Tb(e,p,c,r,b.ProjectionNode)}return D.jsxs(Os.Provider,{value:m,children:[l&&m.visualElement?D.jsx(l,{visualElement:m.visualElement,...c}):null,ub(e,o,gb(p,m.visualElement,u),p,d,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=O.forwardRef(a);return s[pb]=e,s}function vb({layoutId:e}){const t=O.useContext(Sf).id;return t&&e!==void 0?t+"-"+e:e}function Sb(e,t){O.useContext(Af).strict}function Ab(e){const{drag:t,layout:n}=si;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function fm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Cb({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function wb(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function mo(e){return e===void 0||e===1}function Cu({scale:e,scaleX:t,scaleY:n}){return!mo(e)||!mo(t)||!mo(n)}function Ir(e){return Cu(e)||mm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function mm(e){return Hc(e.x)||Hc(e.y)}function Hc(e){return e&&e!=="0%"}function gs(e,t,n){const r=e-n,i=t*r;return n+i}function zc(e,t,n,r,i){return i!==void 0&&(e=gs(e,i,r)),gs(e,n,r)+t}function wu(e,t=0,n=1,r,i){e.min=zc(e.min,t,n,r,i),e.max=zc(e.max,t,n,r,i)}function pm(e,{x:t,y:n}){wu(e.x,t.translate,t.scale,t.originPoint),wu(e.y,n.translate,n.scale,n.originPoint)}const Uc=.999999999999,Vc=1.0000000000001;function kb(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,s;for(let o=0;oUc&&(t.x=1),t.yUc&&(t.y=1)}function Qr(e,t){e.min=e.min+t,e.max=e.max+t}function jc(e,t,n,r,i=.5){const a=ot(e.min,e.max,i);wu(e,t,n,a,r)}function Zr(e,t){jc(e.x,t.x,t.scaleX,t.scale,t.originX),jc(e.y,t.y,t.scaleY,t.scale,t.originY)}function gm(e,t){return fm(wb(e.getBoundingClientRect(),t))}function Ib(e,t,n){const r=gm(e,n),{scroll:i}=t;return i&&(Qr(r.x,i.offset.x),Qr(r.y,i.offset.y)),r}const qc=()=>({translate:0,scale:1,origin:0,originPoint:0}),Jr=()=>({x:qc(),y:qc()}),$c=()=>({min:0,max:0}),ht=()=>({x:$c(),y:$c()}),ku={current:null},bm={current:!1};function Nb(){if(bm.current=!0,!!jl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ku.current=e.matches;e.addEventListener("change",t),t()}else ku.current=!1}const Mb=new WeakMap;function Rb(e,t,n){for(const r in t){const i=t[r],a=n[r];if(Rt(i))e.addValue(r,i);else if(Rt(a))e.addValue(r,ai(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,ai(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Wc=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Db{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Dl,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=Gt.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),bm.current||Nb(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ku.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),hr(this.notifyUpdate),hr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=fi.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&rt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in si){const n=si[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ht()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ai(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(lf(r)||df(r))?r=parseFloat(r):!W8(r)&&fr.test(n)&&(r=Xf(t,n)),this.setBaseTarget(t,Rt(r)?r.get():r)),Rt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=Ul(this.props,n,this.presenceContext?.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Rt(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new yl),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Pl.render(this.render)}}class ym extends Db{constructor(){super(...arguments),this.KeyframeResolver=_8}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Rt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Tm(e,{style:t,vars:n},r,i){const a=e.style;let s;for(s in t)a[s]=t[s];i?.applyProjectionStyles(a,r);for(s in n)a.setProperty(s,n[s])}function _b(e){return window.getComputedStyle(e)}class Lb extends ym{constructor(){super(...arguments),this.type="html",this.renderInstance=Tm}readValueFromInstance(t,n){if(fi.has(n))return this.projection?.isProjecting?yu(n):Z7(t,n);{const r=_b(t),i=(Sl(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return gm(t,n)}build(t,n,r){Bl(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Vl(t,n,r)}}const Em=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Pb(e,t,n,r){Tm(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Em.has(i)?i:ql(i),t.attrs[i])}class Ob extends ym{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ht}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(fi.has(n)){const r=Kf(n);return r&&r.default||0}return n=Em.has(n)?n:ql(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return lm(t,n,r)}build(t,n,r){im(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Pb(t,n,r,i)}mount(t){this.isSVGTag=sm(t.tagName),super.mount(t)}}const Bb=(e,t)=>Hl(e)?new Ob(t):new Lb(t,{allowProjection:e!==O.Fragment});function ti(e,t,n){const r=e.getProps();return Ul(r,t,n!==void 0?n:r.custom,e)}const Iu=e=>Array.isArray(e);function Fb(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ai(n))}function Hb(e){return Iu(e)?e[e.length-1]||0:e}function zb(e,t){const n=ti(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const o=Hb(a[s]);Fb(e,s,o)}}function Ub(e){return!!(Rt(e)&&e.add)}function Nu(e,t){const n=e.getValue("willChange");if(Ub(n))return n.add(t);if(!n&&Gn.WillChange){const r=new Gn.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function xm(e){return e.props[cm]}const Vb=e=>e!==null;function jb(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Vb),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const qb={type:"spring",stiffness:500,damping:25,restSpeed:10},$b=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Wb={type:"keyframes",duration:.8},Yb={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Gb=(e,{keyframes:t})=>t.length>2?Wb:fi.has(e)?e.startsWith("scale")?$b(t[1]):qb:Yb;function Kb({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:u,elapsed:l,...c}){return!!Object.keys(c).length}const $l=(e,t,n,r={},i,a)=>s=>{const o=_l(r,e)||{},u=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Nn(u);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-l,onUpdate:m=>{t.set(m),o.onUpdate&&o.onUpdate(m)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:i};Kb(o)||Object.assign(c,Gb(e,c)),c.duration&&(c.duration=Nn(c.duration)),c.repeatDelay&&(c.repeatDelay=Nn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Su(c),c.delay===0&&(d=!0)),(Gn.instantAnimations||Gn.skipAnimations)&&(d=!0,Su(c),c.delay=0),c.allowFlatten=!o.type&&!o.ease,d&&!a&&t.get()!==void 0){const m=jb(c.keyframes,o);if(m!==void 0){rt.update(()=>{c.onUpdate(m),c.onComplete()});return}}return o.isSync?new Rl(c):new x8(c)};function Xb({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function vm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...o}=t;r&&(a=r);const u=[],l=i&&e.animationState&&e.animationState.getState()[i];for(const c in o){const d=e.getValue(c,e.latestValues[c]??null),m=o[c];if(m===void 0||l&&Xb(l,c))continue;const p={delay:n,..._l(a||{},c)},b=d.get();if(b!==void 0&&!d.isAnimating&&!Array.isArray(m)&&m===b&&!p.velocity)continue;let E=!1;if(window.MotionHandoffAnimation){const T=xm(e);if(T){const S=window.MotionHandoffAnimation(T,c,rt);S!==null&&(p.startTime=S,E=!0)}}Nu(e,c),d.start($l(c,d,m,e.shouldReduceMotion&&Wf.has(c)?{type:!1}:p,e,E));const C=d.animation;C&&u.push(C)}return s&&Promise.all(u).then(()=>{rt.update(()=>{s&&zb(e,s)})}),u}function Sm(e,t,n,r=0,i=1){const a=Array.from(e).sort((l,c)=>l.sortNodePosition(c)).indexOf(t),s=e.size,o=(s-1)*r;return typeof n=="function"?n(a,s):i===1?a*r:o-a*r}function Mu(e,t,n={}){const r=ti(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(vm(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:d}=i;return Qb(e,t,u,l,c,d,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[u,l]=o==="beforeChildren"?[a,s]:[s,a];return u().then(()=>l())}else return Promise.all([a(),s(n.delay)])}function Qb(e,t,n=0,r=0,i=0,a=1,s){const o=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),o.push(Mu(u,t,{...s,delay:n+(typeof r=="function"?0:r)+Sm(e.variantChildren,u,r,i,a)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(o)}function Zb(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>Mu(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=Mu(e,t,n);else{const i=typeof t=="function"?ti(e,t,n.custom):t;r=Promise.all(vm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Am(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>Zb(e,n,r)))}function r9(e){let t=n9(e),n=Yc(),r=!0;const i=u=>(l,c)=>{const d=ti(e,c,u==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:m,transitionEnd:p,...b}=d;l={...l,...b,...p}}return l};function a(u){t=u(e)}function s(u){const{props:l}=e,c=Cm(e.parent)||{},d=[],m=new Set;let p={},b=1/0;for(let C=0;Cb&&L,q=!1;const B=Array.isArray(v)?v:[v];let K=B.reduce(i(T),{});P===!1&&(K={});const{prevResolvedValues:Y={}}=S,X={...Y,...K},j=le=>{U=!0,m.has(le)&&(q=!0,m.delete(le)),S.needsAnimating[le]=!0;const fe=e.getValue(le);fe&&(fe.liveStyle=!1)};for(const le in X){const fe=K[le],oe=Y[le];if(p.hasOwnProperty(le))continue;let I=!1;Iu(fe)&&Iu(oe)?I=!Am(fe,oe):I=fe!==oe,I?fe!=null?j(le):m.add(le):fe!==void 0&&m.has(le)?j(le):S.protectedKeys[le]=!0}S.prevProp=v,S.prevResolvedValues=K,S.isActive&&(p={...p,...K}),r&&e.blockInitialAnimation&&(U=!1);const W=k&&V;U&&(!W||q)&&d.push(...B.map(le=>{const fe={type:T};if(typeof le=="string"&&r&&!W&&e.manuallyAnimateOnMount&&e.parent){const{parent:oe}=e,I=ti(oe,le);if(oe.enteringChildren&&I){const{delayChildren:De}=I.transition||{};fe.delay=Sm(oe.enteringChildren,e,De)}}return{animation:le,options:fe}}))}if(m.size){const C={};if(typeof l.initial!="boolean"){const T=ti(e,Array.isArray(l.initial)?l.initial[0]:l.initial);T&&T.transition&&(C.transition=T.transition)}m.forEach(T=>{const S=e.getBaseTarget(T),v=e.getValue(T);v&&(v.liveStyle=!0),C[T]=S??null}),d.push({animation:C})}let E=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(E=!1),r=!1,E?t(d):Promise.resolve()}function o(u,l){if(n[u].isActive===l)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(u,l)),n[u].isActive=l;const c=s(u);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Yc(),r=!0}}}function i9(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Am(t,e):!1}function xr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Yc(){return{animate:xr(!0),whileInView:xr(),whileHover:xr(),whileTap:xr(),whileDrag:xr(),whileFocus:xr(),exit:xr()}}class br{constructor(t){this.isMounted=!1,this.node=t}update(){}}class a9 extends br{constructor(t){super(t),t.animationState||(t.animationState=r9(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Bs(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let s9=0;class o9 extends br{constructor(){super(...arguments),this.id=s9++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const u9={animation:{Feature:a9},exit:{Feature:o9}};function sa(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ya(e){return{point:{x:e.pageX,y:e.pageY}}}const l9=e=>t=>Ol(t)&&e(t,ya(t));function Ui(e,t,n,r){return sa(e,t,l9(n),r)}const wm=1e-4,c9=1-wm,d9=1+wm,km=.01,h9=0-km,f9=0+km;function Ht(e){return e.max-e.min}function m9(e,t,n){return Math.abs(e-t)<=n}function Gc(e,t,n,r=.5){e.origin=r,e.originPoint=ot(t.min,t.max,e.origin),e.scale=Ht(n)/Ht(t),e.translate=ot(n.min,n.max,e.origin)-e.originPoint,(e.scale>=c9&&e.scale<=d9||isNaN(e.scale))&&(e.scale=1),(e.translate>=h9&&e.translate<=f9||isNaN(e.translate))&&(e.translate=0)}function Vi(e,t,n,r){Gc(e.x,t.x,n.x,r?r.originX:void 0),Gc(e.y,t.y,n.y,r?r.originY:void 0)}function Kc(e,t,n){e.min=n.min+t.min,e.max=e.min+Ht(t)}function p9(e,t,n){Kc(e.x,t.x,n.x),Kc(e.y,t.y,n.y)}function Xc(e,t,n){e.min=t.min-n.min,e.max=e.min+Ht(t)}function ji(e,t,n){Xc(e.x,t.x,n.x),Xc(e.y,t.y,n.y)}function on(e){return[e("x"),e("y")]}const Im=({current:e})=>e?e.ownerDocument.defaultView:null,Qc=(e,t)=>Math.abs(e-t);function g9(e,t){const n=Qc(e.x,t.x),r=Qc(e.y,t.y);return Math.sqrt(n**2+r**2)}class Nm{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=go(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,b=g9(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!b)return;const{point:E}=m,{timestamp:C}=It;this.history.push({...E,timestamp:C});const{onStart:T,onMove:S}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=po(p,this.transformPagePoint),rt.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:b,onSessionEnd:E,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=go(m.type==="pointercancel"?this.lastMoveEventInfo:po(p,this.transformPagePoint),this.history);this.startEvent&&b&&b(m,T),E&&E(m,T)},!Ol(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const o=ya(t),u=po(o,this.transformPagePoint),{point:l}=u,{timestamp:c}=It;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,go(u,this.history)),this.removeListeners=pa(Ui(this.contextWindow,"pointermove",this.handlePointerMove),Ui(this.contextWindow,"pointerup",this.handlePointerUp),Ui(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),hr(this.updatePoint)}}function po(e,t){return t?{point:t(e.point)}:e}function Zc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function go({point:e},t){return{point:e,delta:Zc(e,Mm(t)),offset:Zc(e,b9(t)),velocity:y9(t,.1)}}function b9(e){return e[0]}function Mm(e){return e[e.length-1]}function y9(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Mm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Nn(t)));)n--;if(!r)return{x:0,y:0};const a=Mn(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function T9(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ot(n,e,r.max):Math.min(e,n)),e}function Jc(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function E9(e,{top:t,left:n,bottom:r,right:i}){return{x:Jc(e.x,n,i),y:Jc(e.y,t,r)}}function ed(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=ta(t.min,t.max-r,e.min):r>i&&(n=ta(e.min,e.max-i,t.min)),Yn(0,1,n)}function S9(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ru=.35;function A9(e=Ru){return e===!1?e=0:e===!0&&(e=Ru),{x:td(e,"left","right"),y:td(e,"top","bottom")}}function td(e,t,n){return{min:nd(e,t),max:nd(e,n)}}function nd(e,t){return typeof e=="number"?e:e[t]||0}const C9=new WeakMap;class w9{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ht(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=d=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ya(d).point)},s=(d,m)=>{const{drag:p,dragPropagation:b,onDragStart:E}=this.getProps();if(p&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=F8(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=m,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),on(T=>{let S=this.getAxisMotionValue(T).get()||0;if(Rn.test(S)){const{projection:v}=this.visualElement;if(v&&v.layout){const L=v.layout.layoutBox[T];L&&(S=Ht(L)*(parseFloat(S)/100))}}this.originPoint[T]=S}),E&&rt.postRender(()=>E(d,m)),Nu(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},o=(d,m)=>{this.latestPointerEvent=d,this.latestPanInfo=m;const{dragPropagation:p,dragDirectionLock:b,onDirectionLock:E,onDrag:C}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(b&&this.currentDirection===null){this.currentDirection=k9(T),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),C&&C(d,m)},u=(d,m)=>{this.latestPointerEvent=d,this.latestPanInfo=m,this.stop(d,m),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>on(d=>this.getAnimationState(d)==="paused"&&this.getAxisMotionValue(d).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Nm(t,{onSessionStart:a,onStart:s,onMove:o,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:Im(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&rt.postRender(()=>o(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ba(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=T9(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&Xr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=E9(r.layoutBox,t):this.constraints=!1,this.elastic=A9(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&on(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=S9(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Xr(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=Ib(r,i.root,this.visualElement.getTransformPagePoint());let s=x9(i.layout.layoutBox,a);if(n){const o=n(Cb(s));this.hasMutatedConstraints=!!o,o&&(s=fm(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),u=this.constraints||{},l=on(c=>{if(!Ba(c,n,this.currentDirection))return;let d=u&&u[c]||{};s&&(d={min:0,max:0});const m=i?200:1e6,p=i?40:1e7,b={type:"inertia",velocity:r?t[c]:0,bounceStiffness:m,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(c,b)});return Promise.all(l).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Nu(this.visualElement,t),r.start($l(t,r,0,n,this.visualElement,!1))}stopAnimation(){on(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){on(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){on(n=>{const{drag:r}=this.getProps();if(!Ba(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:o}=i.layout.layoutBox[n];a.set(t[n]-ot(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Xr(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};on(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const u=o.get();i[s]=v9({min:u,max:u},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),on(s=>{if(!Ba(s,t,null))return;const o=this.getAxisMotionValue(s),{min:u,max:l}=this.constraints[s];o.set(ot(u,l,i[s]))})}addListeners(){if(!this.visualElement.current)return;C9.set(this.visualElement,this);const t=this.visualElement.current,n=Ui(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Xr(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),rt.read(r);const s=sa(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(on(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=u[c].translate,d.set(d.get()+u[c].translate))}),this.visualElement.render())}));return()=>{s(),n(),a(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=Ru,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:o}}}function Ba(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function k9(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class I9 extends br{constructor(t){super(t),this.removeGroupControls=dn,this.removeListeners=dn,this.controls=new w9(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||dn}unmount(){this.removeGroupControls(),this.removeListeners()}}const rd=e=>(t,n)=>{e&&rt.postRender(()=>e(t,n))};class N9 extends br{constructor(){super(...arguments),this.removePointerDownListener=dn}onPointerDown(t){this.session=new Nm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Im(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:rd(t),onStart:rd(n),onMove:r,onEnd:(a,s)=>{delete this.session,i&&rt.postRender(()=>i(a,s))}}}mount(){this.removePointerDownListener=Ui(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function M9(e=!0){const t=O.useContext(zl);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=O.useId();O.useEffect(()=>{if(e)return i(a)},[e]);const s=O.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}const rs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function id(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ki={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ee.test(e))e=parseFloat(e);else return e;const n=id(e,t.target.x),r=id(e,t.target.y);return`${n}% ${r}%`}},R9={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=fr.parse(e);if(i.length>5)return r;const a=fr.createTransformer(e),s=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,u=n.y.scale*t.y;i[0+s]/=o,i[1+s]/=u;const l=ot(o,u,.5);return typeof i[2+s]=="number"&&(i[2+s]/=l),typeof i[3+s]=="number"&&(i[3+s]/=l),a(i)}};let bo=!1;class D9 extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;Y8(_9),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),bo&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),rs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:s}=r;return s&&(s.isPresent=a,bo=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||rt.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Pl.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;bo=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Rm(e){const[t,n]=M9(),r=O.useContext(Sf);return D.jsx(D9,{...e,layoutGroup:r,switchLayoutGroup:O.useContext(dm),isPresent:t,safeToRemove:n})}const _9={borderRadius:{...ki,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ki,borderTopRightRadius:ki,borderBottomLeftRadius:ki,borderBottomRightRadius:ki,boxShadow:R9};function L9(e,t,n){const r=Rt(e)?e:ai(e);return r.start($l("",r,t,n)),r.animation}const P9=(e,t)=>e.depth-t.depth;class O9{constructor(){this.children=[],this.isDirty=!1}add(t){ml(this.children,t),this.isDirty=!0}remove(t){pl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(P9),this.isDirty=!1,this.children.forEach(t)}}function B9(e,t){const n=Gt.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(hr(r),e(a-t))};return rt.setup(r,!0),()=>hr(r)}const Dm=["TopLeft","TopRight","BottomLeft","BottomRight"],F9=Dm.length,ad=e=>typeof e=="string"?parseFloat(e):e,sd=e=>typeof e=="number"||Ee.test(e);function H9(e,t,n,r,i,a){i?(e.opacity=ot(0,n.opacity??1,z9(r)),e.opacityExit=ot(t.opacity??1,0,U9(r))):a&&(e.opacity=ot(t.opacity??1,n.opacity??1,r));for(let s=0;srt?1:n(ta(e,t,r))}function ud(e,t){e.min=t.min,e.max=t.max}function sn(e,t){ud(e.x,t.x),ud(e.y,t.y)}function ld(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function cd(e,t,n,r,i){return e-=t,e=gs(e,1/n,r),i!==void 0&&(e=gs(e,1/i,r)),e}function V9(e,t=0,n=1,r=.5,i,a=e,s=e){if(Rn.test(t)&&(t=parseFloat(t),t=ot(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=ot(a.min,a.max,r);e===a&&(o-=t),e.min=cd(e.min,t,n,o,i),e.max=cd(e.max,t,n,o,i)}function dd(e,t,[n,r,i],a,s){V9(e,t[n],t[r],t[i],t.scale,a,s)}const j9=["x","scaleX","originX"],q9=["y","scaleY","originY"];function hd(e,t,n,r){dd(e.x,t,j9,n?n.x:void 0,r?r.x:void 0),dd(e.y,t,q9,n?n.y:void 0,r?r.y:void 0)}function fd(e){return e.translate===0&&e.scale===1}function Lm(e){return fd(e.x)&&fd(e.y)}function md(e,t){return e.min===t.min&&e.max===t.max}function $9(e,t){return md(e.x,t.x)&&md(e.y,t.y)}function pd(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Pm(e,t){return pd(e.x,t.x)&&pd(e.y,t.y)}function gd(e){return Ht(e.x)/Ht(e.y)}function bd(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class W9{constructor(){this.members=[]}add(t){ml(this.members,t),t.scheduleRender()}remove(t){if(pl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Y9(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,s=n?.z||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:d,rotateY:m,skewX:p,skewY:b}=n;l&&(r=`perspective(${l}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),m&&(r+=`rotateY(${m}deg) `),p&&(r+=`skewX(${p}deg) `),b&&(r+=`skewY(${b}deg) `)}const o=e.x.scale*t.x,u=e.y.scale*t.y;return(o!==1||u!==1)&&(r+=`scale(${o}, ${u})`),r||"none"}const yo=["","X","Y","Z"],G9=1e3;let K9=0;function To(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Om(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=xm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",rt,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Om(r)}function Bm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},o=t?.()){this.id=K9++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Z9),this.nodes.forEach(ny),this.nodes.forEach(ry),this.nodes.forEach(J9)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;rt.read(()=>{d=window.innerWidth}),e(s,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,c&&c(),c=B9(m,250),rs.hasAnimatedSinceResize&&(rs.hasAnimatedSinceResize=!1,this.nodes.forEach(Ed)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&l&&(o||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:m,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||l.getDefaultTransition()||uy,{onLayoutAnimationStart:E,onLayoutAnimationComplete:C}=l.getProps(),T=!this.targetLayout||!Pm(this.targetLayout,p),S=!d&&m;if(this.options.layoutRoot||this.resumeFrom||S||d&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={..._l(b,"layout"),onPlay:E,onComplete:C};(l.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(c,S)}else d||Ed(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),hr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(iy),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Om(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ht(this.snapshot.measuredBox.x)&&!Ht(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const P=L/1e3;xd(d.x,s.x,P),xd(d.y,s.y,P),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ji(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),sy(this.relativeTarget,this.relativeTargetOrigin,m,P),v&&$9(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=ht()),sn(v,this.relativeTarget)),E&&(this.animationValues=c,H9(c,l,this.latestValues,P,S,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(hr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=rt.update(()=>{rs.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ai(0)),this.currentAnimation=L9(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(G9),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:u,layout:l,latestValues:c}=s;if(!(!o||!u||!l)){if(this!==s&&this.layout&&l&&Fm(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||ht();const d=Ht(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+d;const m=Ht(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+m}sn(o,u),Zr(o,c),Vi(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new W9),this.sharedNodes.get(s).add(o);const l=o.options.initialPromotionConfig;o.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(o=!0),!o)return;const l={};u.z&&To("z",s,l,this.animationValues);for(let c=0;cs.currentAnimation?.stop()),this.root.nodes.forEach(yd),this.root.sharedNodes.clear()}}}function X9(e){e.updateLayout()}function Q9(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i==="size"?on(c=>{const d=a?t.measuredBox[c]:t.layoutBox[c],m=Ht(d);d.min=n[c].min,d.max=d.min+m}):Fm(i,t.layoutBox,n)&&on(c=>{const d=a?t.measuredBox[c]:t.layoutBox[c],m=Ht(n[c]);d.max=d.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+m)});const s=Jr();Vi(s,n,t.layoutBox);const o=Jr();a?Vi(o,e.applyTransform(r,!0),t.measuredBox):Vi(o,n,t.layoutBox);const u=!Lm(s);let l=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:d,layout:m}=c;if(d&&m){const p=ht();ji(p,t.layoutBox,d.layoutBox);const b=ht();ji(b,n,m.layoutBox),Pm(p,b)||(l=!0),c.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=p,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:s,hasLayoutChanged:u,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Z9(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function J9(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ey(e){e.clearSnapshot()}function yd(e){e.clearMeasurements()}function Td(e){e.isLayoutDirty=!1}function ty(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ed(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ny(e){e.resolveTargetDelta()}function ry(e){e.calcProjection()}function iy(e){e.resetSkewAndRotation()}function ay(e){e.removeLeadSnapshot()}function xd(e,t,n){e.translate=ot(t.translate,0,n),e.scale=ot(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function vd(e,t,n,r){e.min=ot(t.min,n.min,r),e.max=ot(t.max,n.max,r)}function sy(e,t,n,r){vd(e.x,t.x,n.x,r),vd(e.y,t.y,n.y,r)}function oy(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const uy={duration:.45,ease:[.4,0,.1,1]},Sd=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ad=Sd("applewebkit/")&&!Sd("chrome/")?Math.round:dn;function Cd(e){e.min=Ad(e.min),e.max=Ad(e.max)}function ly(e){Cd(e.x),Cd(e.y)}function Fm(e,t,n){return e==="position"||e==="preserve-aspect"&&!m9(gd(t),gd(n),.2)}function cy(e){return e!==e.root&&e.scroll?.wasRoot}const dy=Bm({attachResizeListener:(e,t)=>sa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Eo={current:void 0},Hm=Bm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Eo.current){const e=new dy({});e.mount(window),e.setOptions({layoutScroll:!0}),Eo.current=e}return Eo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),hy={pan:{Feature:N9},drag:{Feature:I9,ProjectionNode:Hm,MeasureLayout:Rm}};function wd(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&rt.postRender(()=>a(t,ya(t)))}class fy extends br{mount(){const{current:t}=this.node;t&&(this.unmount=H8(t,(n,r)=>(wd(this.node,r,"Start"),i=>wd(this.node,i,"End"))))}unmount(){}}class my extends br{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pa(sa(this.node.current,"focus",()=>this.onFocus()),sa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function kd(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&rt.postRender(()=>a(t,ya(t)))}class py extends br{mount(){const{current:t}=this.node;t&&(this.unmount=j8(t,(n,r)=>(kd(this.node,r,"Start"),(i,{success:a})=>kd(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Du=new WeakMap,xo=new WeakMap,gy=e=>{const t=Du.get(e.target);t&&t(e)},by=e=>{e.forEach(gy)};function yy({root:e,...t}){const n=e||document;xo.has(n)||xo.set(n,{});const r=xo.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(by,{root:e,...t})),r[i]}function Ty(e,t,n){const r=yy(t);return Du.set(e,n),r.observe(e),()=>{Du.delete(e),r.unobserve(e)}}const Ey={some:0,all:1};class xy extends br{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Ey[i]},o=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,a&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),m=l?c:d;m&&m(u)};return Ty(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(vy(t,n))&&this.startObserver()}unmount(){}}function vy({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Sy={inView:{Feature:xy},tap:{Feature:py},focus:{Feature:my},hover:{Feature:fy}},Ay={layout:{ProjectionNode:Hm,MeasureLayout:Rm}},Cy={...u9,...Sy,...hy,...Ay};function wy(e,t){return xb(e,t,Cy,Bb)}const Wl=wy("div"),ky=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{position:"relative",flex:1,gap:t(1.5),overflow:"hidden"}}),Iy=ue(X1)(({theme:e,variant:t})=>{const{spacing:n}=e;return{gap:n(t==="list"?1.5:5.5),overflowY:"auto"}}),Ny=ue(Q6)(({theme:e})=>{const{spacing:t}=e;return{flex:"none",padding:t(2),overflow:"hidden"}}),My=ue(eg)(({theme:e})=>({fontSize:"1.5rem",width:"2.75rem",height:"2.75rem",borderRadius:"50%",display:"inline-flex",alignItems:"center",justifyContent:"center"})),Ry=ue(Wl)(({theme:e,variant:t})=>({fontSize:t==="list"?"1.5rem":"1em",width:"1em",height:"1em",display:"inline-flex",alignItems:"center",justifyContent:"center",transformOrigin:"center"})),Dy={waiting:"info",available:"success",failed:"error"},_y=()=>D.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",children:D.jsx("path",{d:"M20.0235 2.88477H6.92829C6.49415 2.88477 6.0778 3.05722 5.77082 3.3642C5.46384 3.67118 5.29138 4.08754 5.29138 4.52167V22.5276C5.29138 22.9618 5.46384 23.3781 5.77082 23.6851C6.0778 23.9921 6.49415 24.1645 6.92829 24.1645H20.0235C20.4577 24.1645 20.874 23.9921 21.181 23.6851C21.488 23.3781 21.6604 22.9618 21.6604 22.5276V4.52167C21.6604 4.08754 21.488 3.67118 21.181 3.3642C20.874 3.05722 20.4577 2.88477 20.0235 2.88477ZM13.4759 20.0723C13.2331 20.0723 12.9957 20.0003 12.7938 19.8654C12.592 19.7305 12.4346 19.5387 12.3417 19.3144C12.2488 19.0901 12.2244 18.8432 12.2718 18.6051C12.3192 18.3669 12.4361 18.1482 12.6078 17.9765C12.7795 17.8048 12.9983 17.6879 13.2364 17.6405C13.4745 17.5931 13.7214 17.6174 13.9457 17.7104C14.17 17.8033 14.3618 17.9606 14.4967 18.1625C14.6316 18.3644 14.7036 18.6018 14.7036 18.8446C14.7036 19.1702 14.5742 19.4825 14.344 19.7127C14.1138 19.9429 13.8015 20.0723 13.4759 20.0723ZM16.7497 11.8877H10.2021C9.98503 11.8877 9.77685 11.8015 9.62336 11.648C9.46987 11.4945 9.38364 11.2864 9.38364 11.0693C9.38364 10.8522 9.46987 10.644 9.62336 10.4906C9.77685 10.3371 9.98503 10.2508 10.2021 10.2508H16.7497C16.9668 10.2508 17.175 10.3371 17.3285 10.4906C17.4819 10.644 17.5682 10.8522 17.5682 11.0693C17.5682 11.2864 17.4819 11.4945 17.3285 11.648C17.175 11.8015 16.9668 11.8877 16.7497 11.8877ZM16.7497 8.61393H10.2021C9.98503 8.61393 9.77685 8.5277 9.62336 8.37421C9.46987 8.22072 9.38364 8.01255 9.38364 7.79548C9.38364 7.57841 9.46987 7.37024 9.62336 7.21675C9.77685 7.06326 9.98503 6.97703 10.2021 6.97703H16.7497C16.9668 6.97703 17.175 7.06326 17.3285 7.21675C17.4819 7.37024 17.5682 7.57841 17.5682 7.79548C17.5682 8.01255 17.4819 8.22072 17.3285 8.37421C17.175 8.5277 16.9668 8.61393 16.7497 8.61393Z",fill:"currentColor"})}),Ly={waiting:M5,available:E5,failed:B1},Id=({variant:e,node:t})=>{const{id:n,status:r,gpuName:i,gpuMemory:a}=t||{status:"waiting"},{palette:s}=Ns(),{main:o,lighter:u}=r==="waiting"?{main:s.grey[800],lighter:s.grey[250]}:s[Dy[r]],l=r==="failed"?.2:void 0,c=Ly[r];return D.jsxs(Ny,{component:e==="list"?Ms:ci,variant:"outlined",sx:{opacity:l,padding:e==="menu"?0:void 0,backgroundColor:"transparent"},children:[D.jsx(My,{sx:{color:s.grey[800],backgroundColor:s.grey[250]},children:D.jsx(_y,{})}),D.jsxs(ig,{children:[t&&D.jsxs(Ve,{variant:"body1",children:[i," ",a,"GB"]})||D.jsx(lc,{width:"8rem",height:"1.25rem"}),t&&D.jsx(Ve,{variant:"body1",color:"text.disabled",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:n&&n.substring(0,4)+"..."+n.substring(n.length-4)})||D.jsx(lc,{width:"14rem",height:"1.25rem"})]}),t&&D.jsxs(Ry,{sx:{color:o},...r==="waiting"&&{animate:{rotate:360},transition:{repeat:1/0,ease:"linear",duration:2}},variant:e,children:[e==="list"&&D.jsx(c,{}),e==="menu"&&D.jsx(O5,{})]})]})},Fa=({variant:e="list"})=>{const[{clusterInfo:{initNodesNumber:t},nodeInfoList:n}]=fa(),{length:r}=n;return D.jsxs(ky,{children:[e==="menu"&&D.jsx(ci,{sx:{position:"absolute",top:"1.375rem",bottom:"1.375rem",left:"1.375rem",borderLeft:"2px dashed",borderColor:"divider"}}),D.jsxs(Iy,{variant:e,children:[n.map(i=>D.jsx(Id,{variant:e,node:i},i.id)),t>r&&Array.from({length:t-r}).map((i,a)=>D.jsx(Id,{variant:e},a))]})]})},Py={small:1,medium:1.25,large:2.25},Oy=ue(Wl)(({theme:e,size:t})=>{const n=`${Py[t]}rem`;return{position:"relative",width:n,height:n,display:"inline-flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"}}),vo=ue(Wl)(({theme:e})=>({flex:1,aspectRatio:1,borderRadius:"50%",backgroundColor:"currentColor"})),So={pulse:{scale:[0,.6,0,0],keyTimes:[0,.3,.6,1],transition:{duration:2,repeat:1/0,ease:"linear"}}},By={staggerChildren:.25,staggerDirection:1},Fy=O.forwardRef(({size:e="medium"},t)=>D.jsxs(Oy,{ref:t,size:e,animate:"pulse",transition:By,children:[D.jsx(vo,{variants:So},1),D.jsx(vo,{variants:So},2),D.jsx(vo,{variants:So},3)]}));function Nd(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function zm(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Hy=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zy=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Uy={};function Md(e,t){return(Uy.jsx?zy:Hy).test(e)}const Vy=/[ \t\n\f\r]/g;function jy(e){return typeof e=="object"?e.type==="text"?Rd(e.value):!1:Rd(e)}function Rd(e){return e.replace(Vy,"")===""}let Ta=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Ta.prototype.normal={};Ta.prototype.property={};Ta.prototype.space=void 0;function Um(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ta(n,r,t)}function oa(e){return e.toLowerCase()}let Kt=class{constructor(t,n){this.attribute=n,this.property=t}};Kt.prototype.attribute="";Kt.prototype.booleanish=!1;Kt.prototype.boolean=!1;Kt.prototype.commaOrSpaceSeparated=!1;Kt.prototype.commaSeparated=!1;Kt.prototype.defined=!1;Kt.prototype.mustUseProperty=!1;Kt.prototype.number=!1;Kt.prototype.overloadedBoolean=!1;Kt.prototype.property="";Kt.prototype.spaceSeparated=!1;Kt.prototype.space=void 0;let qy=0;const Ce=Br(),gt=Br(),_u=Br(),re=Br(),Qe=Br(),ni=Br(),Zt=Br();function Br(){return 2**++qy}const Lu=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ce,booleanish:gt,commaOrSpaceSeparated:Zt,commaSeparated:ni,number:re,overloadedBoolean:_u,spaceSeparated:Qe},Symbol.toStringTag,{value:"Module"})),Ao=Object.keys(Lu);let Yl=class extends Kt{constructor(t,n,r,i){let a=-1;if(super(t,n),Dd(this,"space",i),typeof r=="number")for(;++a4&&n.slice(0,4)==="data"&&Ky.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(_d,Qy);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!_d.test(a)){let s=a.replace(Gy,Xy);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Yl}return new i(r,t)}function Xy(e){return"-"+e.toLowerCase()}function Qy(e){return e.charAt(1).toUpperCase()}const Hs=Um([Vm,$y,$m,Wm,Ym],"html"),pi=Um([Vm,Wy,$m,Wm,Ym],"svg");function Ld(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Gm(e){return e.join(" ").trim()}var jr={},Co,Pd;function Zy(){if(Pd)return Co;Pd=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,u=` +`,l="/",c="*",d="",m="comment",p="declaration";Co=function(E,C){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];C=C||{};var T=1,S=1;function v(X){var j=X.match(t);j&&(T+=j.length);var W=X.lastIndexOf(u);S=~W?X.length-W:S+X.length}function L(){var X={line:T,column:S};return function(j){return j.position=new P(X),U(),j}}function P(X){this.start=X,this.end={line:T,column:S},this.source=C.source}P.prototype.content=E;function k(X){var j=new Error(C.source+":"+T+":"+S+": "+X);if(j.reason=X,j.filename=C.source,j.line=T,j.column=S,j.source=E,!C.silent)throw j}function V(X){var j=X.exec(E);if(j){var W=j[0];return v(W),E=E.slice(W.length),j}}function U(){V(n)}function q(X){var j;for(X=X||[];j=B();)j!==!1&&X.push(j);return X}function B(){var X=L();if(!(l!=E.charAt(0)||c!=E.charAt(1))){for(var j=2;d!=E.charAt(j)&&(c!=E.charAt(j)||l!=E.charAt(j+1));)++j;if(j+=2,d===E.charAt(j-1))return k("End of comment missing");var W=E.slice(2,j-2);return S+=2,v(W),E=E.slice(j),S+=2,X({type:m,comment:W})}}function K(){var X=L(),j=V(r);if(j){if(B(),!V(i))return k("property missing ':'");var W=V(a),ne=X({type:p,property:b(j[0].replace(e,d)),value:W?b(W[0].replace(e,d)):d});return V(s),ne}}function Y(){var X=[];q(X);for(var j;j=K();)j!==!1&&(X.push(j),q(X));return X}return U(),Y()};function b(E){return E?E.replace(o,d):d}return Co}var Od;function Jy(){if(Od)return jr;Od=1;var e=jr&&jr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(jr,"__esModule",{value:!0}),jr.default=n;var t=e(Zy());function n(r,i){var a=null;if(!r||typeof r!="string")return a;var s=(0,t.default)(r),o=typeof i=="function";return s.forEach(function(u){if(u.type==="declaration"){var l=u.property,c=u.value;o?i(l,c,u):c&&(a=a||{},a[l]=c)}}),a}return jr}var Ii={},Bd;function eT(){if(Bd)return Ii;Bd=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(l){return!l||n.test(l)||e.test(l)},s=function(l,c){return c.toUpperCase()},o=function(l,c){return"".concat(c,"-")},u=function(l,c){return c===void 0&&(c={}),a(l)?l:(l=l.toLowerCase(),c.reactCompat?l=l.replace(i,o):l=l.replace(r,o),l.replace(t,s))};return Ii.camelCase=u,Ii}var Ni,Fd;function tT(){if(Fd)return Ni;Fd=1;var e=Ni&&Ni.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(Jy()),n=eT();function r(i,a){var s={};return!i||typeof i!="string"||(0,t.default)(i,function(o,u){o&&u&&(s[(0,n.camelCase)(o,a)]=u)}),s}return r.default=r,Ni=r,Ni}var nT=tT();const rT=F1(nT),zs=Km("end"),Pn=Km("start");function Km(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Xm(e){const t=Pn(e),n=zs(e);if(t&&n)return{start:t,end:n}}function qi(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Hd(e.position):"start"in e||"end"in e?Hd(e):"line"in e||"column"in e?Pu(e):""}function Pu(e){return zd(e&&e.line)+":"+zd(e&&e.column)}function Hd(e){return Pu(e&&e.start)+"-"+Pu(e&&e.end)}function zd(e){return e&&typeof e=="number"?e:1}class _t extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?a.ruleId=r:(a.source=r.slice(0,u),a.ruleId=r.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=qi(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}_t.prototype.file="";_t.prototype.name="";_t.prototype.reason="";_t.prototype.message="";_t.prototype.stack="";_t.prototype.column=void 0;_t.prototype.line=void 0;_t.prototype.ancestors=void 0;_t.prototype.cause=void 0;_t.prototype.fatal=void 0;_t.prototype.place=void 0;_t.prototype.ruleId=void 0;_t.prototype.source=void 0;const Kl={}.hasOwnProperty,iT=new Map,aT=/[A-Z]/g,sT=new Set(["table","tbody","thead","tfoot","tr"]),oT=new Set(["td","th"]),Qm="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function uT(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=gT(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=pT(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?pi:Hs,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Zm(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Zm(e,t,n){if(t.type==="element")return lT(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return cT(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return hT(e,t,n);if(t.type==="mdxjsEsm")return dT(e,t);if(t.type==="root")return fT(e,t,n);if(t.type==="text")return mT(e,t)}function lT(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=pi,e.schema=i),e.ancestors.push(t);const a=ep(e,t.tagName,!1),s=bT(e,t);let o=Ql(e,t);return sT.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!jy(u):!0})),Jm(e,s,a,t),Xl(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function cT(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ua(e,t.position)}function dT(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ua(e,t.position)}function hT(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=pi,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:ep(e,t.name,!0),s=yT(e,t),o=Ql(e,t);return Jm(e,s,a,t),Xl(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function fT(e,t,n){const r={};return Xl(r,Ql(e,t)),e.create(t,e.Fragment,r,n)}function mT(e,t){return t.value}function Jm(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Xl(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function pT(e,t,n){return r;function r(i,a,s,o){const l=Array.isArray(s.children)?n:t;return o?l(a,s,o):l(a,s)}}function gT(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),u=Pn(r);return t(i,a,s,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function bT(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Kl.call(t.properties,i)){const a=TT(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&oT.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function yT(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else ua(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else ua(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Ql(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:iT;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a0?(nn(e,e.length,0,t),e):t}const jd={}.hasOwnProperty;function np(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function yn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ft=yr(/[A-Za-z]/),Dt=yr(/[\dA-Za-z]/),IT=yr(/[#-'*+\--9=?A-Z^-~]/);function bs(e){return e!==null&&(e<32||e===127)}const Ou=yr(/\d/),NT=yr(/[\dA-Fa-f]/),MT=yr(/[!-/:-@[-`{-~]/);function he(e){return e!==null&&e<-2}function Ye(e){return e!==null&&(e<0||e===32)}function Re(e){return e===-2||e===-1||e===32}const Us=yr(new RegExp("\\p{P}|\\p{S}","u")),Pr=yr(/\s/);function yr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function gi(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Ne(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(u){return Re(u)?(e.enter(n),o(u)):t(u)}function o(u){return Re(u)&&a++s))return;const V=t.events.length;let U=V,q,B;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){if(q){B=t.events[U][1].end;break}q=!0}for(T(r),k=V;kv;){const P=n[L];t.containerState=P[1],P[0].exit.call(t,e)}n.length=v}function S(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function PT(e,t,n){return Ne(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function oi(e){if(e===null||Ye(e)||Pr(e))return 1;if(Us(e))return 2}function Vs(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},m={...e[n][1].start};$d(d,-u),$d(m,u),s={type:u>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:m},a={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=un(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=un(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),l=un(l,Vs(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=un(l,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=un(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,nn(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n0&&Re(k)?Ne(e,S,"linePrefix",a+1)(k):S(k)}function S(k){return k===null||he(k)?e.check(Wd,E,L)(k):(e.enter("codeFlowValue"),v(k))}function v(k){return k===null||he(k)?(e.exit("codeFlowValue"),S(k)):(e.consume(k),v)}function L(k){return e.exit("codeFenced"),t(k)}function P(k,V,U){let q=0;return B;function B(W){return k.enter("lineEnding"),k.consume(W),k.exit("lineEnding"),K}function K(W){return k.enter("codeFencedFence"),Re(W)?Ne(k,Y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):Y(W)}function Y(W){return W===o?(k.enter("codeFencedFenceSequence"),X(W)):U(W)}function X(W){return W===o?(q++,k.consume(W),X):q>=s?(k.exit("codeFencedFenceSequence"),Re(W)?Ne(k,j,"whitespace")(W):j(W)):U(W)}function j(W){return W===null||he(W)?(k.exit("codeFencedFence"),V(W)):U(W)}}}function YT(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const ko={name:"codeIndented",tokenize:KT},GT={partial:!0,tokenize:XT};function KT(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),Ne(e,a,"linePrefix",5)(l)}function a(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?u(l):he(l)?e.attempt(GT,s,u)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||he(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function u(l){return e.exit("codeIndented"),t(l)}}function XT(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):he(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Ne(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):he(s)?i(s):n(s)}}const QT={name:"codeText",previous:JT,resolve:ZT,tokenize:eE};function ZT(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Mi(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Mi(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Mi(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function up(e,t,n,r,i,a,s,o,u){const l=u||Number.POSITIVE_INFINITY;let c=0;return d;function d(T){return T===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(T),e.exit(a),m):T===null||T===32||T===41||bs(T)?n(T):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),E(T))}function m(T){return T===62?(e.enter(a),e.consume(T),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(T))}function p(T){return T===62?(e.exit("chunkString"),e.exit(o),m(T)):T===null||T===60||he(T)?n(T):(e.consume(T),T===92?b:p)}function b(T){return T===60||T===62||T===92?(e.consume(T),p):p(T)}function E(T){return!c&&(T===null||T===41||Ye(T))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(T)):c999||p===null||p===91||p===93&&!u||p===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):he(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||he(p)||o++>999?(e.exit("chunkString"),c(p)):(e.consume(p),u||(u=!Re(p)),p===92?m:d)}function m(p){return p===91||p===92||p===93?(e.consume(p),o++,d):d(p)}}function cp(e,t,n,r,i,a){let s;return o;function o(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),s=m===40?41:m,u):n(m)}function u(m){return m===s?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(a),l(m))}function l(m){return m===s?(e.exit(a),u(s)):m===null?n(m):he(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Ne(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(m))}function c(m){return m===s||m===null||he(m)?(e.exit("chunkString"),l(m)):(e.consume(m),m===92?d:c)}function d(m){return m===s||m===92?(e.consume(m),c):c(m)}}function $i(e,t){let n;return r;function r(i){return he(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Re(i)?Ne(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const uE={name:"definition",tokenize:cE},lE={partial:!0,tokenize:dE};function cE(e,t,n){const r=this;let i;return a;function a(p){return e.enter("definition"),s(p)}function s(p){return lp.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return i=yn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):n(p)}function u(p){return Ye(p)?$i(e,l)(p):l(p)}function l(p){return up(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(lE,d,d)(p)}function d(p){return Re(p)?Ne(e,m,"whitespace")(p):m(p)}function m(p){return p===null||he(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function dE(e,t,n){return r;function r(o){return Ye(o)?$i(e,i)(o):n(o)}function i(o){return cp(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return Re(o)?Ne(e,s,"whitespace")(o):s(o)}function s(o){return o===null||he(o)?t(o):n(o)}}const hE={name:"hardBreakEscape",tokenize:fE};function fE(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return he(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const mE={name:"headingAtx",resolve:pE,tokenize:gE};function pE(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},nn(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function gE(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Ye(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||he(c)?(e.exit("atxHeading"),t(c)):Re(c)?Ne(e,o,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),o(c))}function l(c){return c===null||c===35||Ye(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),l)}}const bE=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Gd=["pre","script","style","textarea"],yE={concrete:!0,name:"htmlFlow",resolveTo:xE,tokenize:vE},TE={partial:!0,tokenize:AE},EE={partial:!0,tokenize:SE};function xE(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function vE(e,t,n){const r=this;let i,a,s,o,u;return l;function l(_){return c(_)}function c(_){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(_),d}function d(_){return _===33?(e.consume(_),m):_===47?(e.consume(_),a=!0,E):_===63?(e.consume(_),i=3,r.interrupt?t:I):Ft(_)?(e.consume(_),s=String.fromCharCode(_),C):n(_)}function m(_){return _===45?(e.consume(_),i=2,p):_===91?(e.consume(_),i=5,o=0,b):Ft(_)?(e.consume(_),i=4,r.interrupt?t:I):n(_)}function p(_){return _===45?(e.consume(_),r.interrupt?t:I):n(_)}function b(_){const _e="CDATA[";return _===_e.charCodeAt(o++)?(e.consume(_),o===_e.length?r.interrupt?t:Y:b):n(_)}function E(_){return Ft(_)?(e.consume(_),s=String.fromCharCode(_),C):n(_)}function C(_){if(_===null||_===47||_===62||Ye(_)){const _e=_===47,Ue=s.toLowerCase();return!_e&&!a&&Gd.includes(Ue)?(i=1,r.interrupt?t(_):Y(_)):bE.includes(s.toLowerCase())?(i=6,_e?(e.consume(_),T):r.interrupt?t(_):Y(_)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(_):a?S(_):v(_))}return _===45||Dt(_)?(e.consume(_),s+=String.fromCharCode(_),C):n(_)}function T(_){return _===62?(e.consume(_),r.interrupt?t:Y):n(_)}function S(_){return Re(_)?(e.consume(_),S):B(_)}function v(_){return _===47?(e.consume(_),B):_===58||_===95||Ft(_)?(e.consume(_),L):Re(_)?(e.consume(_),v):B(_)}function L(_){return _===45||_===46||_===58||_===95||Dt(_)?(e.consume(_),L):P(_)}function P(_){return _===61?(e.consume(_),k):Re(_)?(e.consume(_),P):v(_)}function k(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),u=_,V):Re(_)?(e.consume(_),k):U(_)}function V(_){return _===u?(e.consume(_),u=null,q):_===null||he(_)?n(_):(e.consume(_),V)}function U(_){return _===null||_===34||_===39||_===47||_===60||_===61||_===62||_===96||Ye(_)?P(_):(e.consume(_),U)}function q(_){return _===47||_===62||Re(_)?v(_):n(_)}function B(_){return _===62?(e.consume(_),K):n(_)}function K(_){return _===null||he(_)?Y(_):Re(_)?(e.consume(_),K):n(_)}function Y(_){return _===45&&i===2?(e.consume(_),ne):_===60&&i===1?(e.consume(_),le):_===62&&i===4?(e.consume(_),De):_===63&&i===3?(e.consume(_),I):_===93&&i===5?(e.consume(_),oe):he(_)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(TE,Ae,X)(_)):_===null||he(_)?(e.exit("htmlFlowData"),X(_)):(e.consume(_),Y)}function X(_){return e.check(EE,j,Ae)(_)}function j(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),W}function W(_){return _===null||he(_)?X(_):(e.enter("htmlFlowData"),Y(_))}function ne(_){return _===45?(e.consume(_),I):Y(_)}function le(_){return _===47?(e.consume(_),s="",fe):Y(_)}function fe(_){if(_===62){const _e=s.toLowerCase();return Gd.includes(_e)?(e.consume(_),De):Y(_)}return Ft(_)&&s.length<8?(e.consume(_),s+=String.fromCharCode(_),fe):Y(_)}function oe(_){return _===93?(e.consume(_),I):Y(_)}function I(_){return _===62?(e.consume(_),De):_===45&&i===2?(e.consume(_),I):Y(_)}function De(_){return _===null||he(_)?(e.exit("htmlFlowData"),Ae(_)):(e.consume(_),De)}function Ae(_){return e.exit("htmlFlow"),t(_)}}function SE(e,t,n){const r=this;return i;function i(s){return he(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function AE(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ea,t,n)}}const CE={name:"htmlText",tokenize:wE};function wE(e,t,n){const r=this;let i,a,s;return o;function o(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),u}function u(I){return I===33?(e.consume(I),l):I===47?(e.consume(I),P):I===63?(e.consume(I),v):Ft(I)?(e.consume(I),U):n(I)}function l(I){return I===45?(e.consume(I),c):I===91?(e.consume(I),a=0,b):Ft(I)?(e.consume(I),S):n(I)}function c(I){return I===45?(e.consume(I),p):n(I)}function d(I){return I===null?n(I):I===45?(e.consume(I),m):he(I)?(s=d,le(I)):(e.consume(I),d)}function m(I){return I===45?(e.consume(I),p):d(I)}function p(I){return I===62?ne(I):I===45?m(I):d(I)}function b(I){const De="CDATA[";return I===De.charCodeAt(a++)?(e.consume(I),a===De.length?E:b):n(I)}function E(I){return I===null?n(I):I===93?(e.consume(I),C):he(I)?(s=E,le(I)):(e.consume(I),E)}function C(I){return I===93?(e.consume(I),T):E(I)}function T(I){return I===62?ne(I):I===93?(e.consume(I),T):E(I)}function S(I){return I===null||I===62?ne(I):he(I)?(s=S,le(I)):(e.consume(I),S)}function v(I){return I===null?n(I):I===63?(e.consume(I),L):he(I)?(s=v,le(I)):(e.consume(I),v)}function L(I){return I===62?ne(I):v(I)}function P(I){return Ft(I)?(e.consume(I),k):n(I)}function k(I){return I===45||Dt(I)?(e.consume(I),k):V(I)}function V(I){return he(I)?(s=V,le(I)):Re(I)?(e.consume(I),V):ne(I)}function U(I){return I===45||Dt(I)?(e.consume(I),U):I===47||I===62||Ye(I)?q(I):n(I)}function q(I){return I===47?(e.consume(I),ne):I===58||I===95||Ft(I)?(e.consume(I),B):he(I)?(s=q,le(I)):Re(I)?(e.consume(I),q):ne(I)}function B(I){return I===45||I===46||I===58||I===95||Dt(I)?(e.consume(I),B):K(I)}function K(I){return I===61?(e.consume(I),Y):he(I)?(s=K,le(I)):Re(I)?(e.consume(I),K):q(I)}function Y(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),i=I,X):he(I)?(s=Y,le(I)):Re(I)?(e.consume(I),Y):(e.consume(I),j)}function X(I){return I===i?(e.consume(I),i=void 0,W):I===null?n(I):he(I)?(s=X,le(I)):(e.consume(I),X)}function j(I){return I===null||I===34||I===39||I===60||I===61||I===96?n(I):I===47||I===62||Ye(I)?q(I):(e.consume(I),j)}function W(I){return I===47||I===62||Ye(I)?q(I):n(I)}function ne(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),t):n(I)}function le(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),fe}function fe(I){return Re(I)?Ne(e,oe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):oe(I)}function oe(I){return e.enter("htmlTextData"),s(I)}}const e0={name:"labelEnd",resolveAll:ME,resolveTo:RE,tokenize:DE},kE={tokenize:_E},IE={tokenize:LE},NE={tokenize:PE};function ME(e){let t=-1;const n=[];for(;++t=3&&(l===null||he(l))?(e.exit("thematicBreak"),t(l)):n(l)}function u(l){return l===i?(e.consume(l),r++,u):(e.exit("thematicBreakSequence"),Re(l)?Ne(e,o,"whitespace")(l):o(l))}}const Wt={continuation:{tokenize:$E},exit:YE,name:"list",tokenize:qE},VE={partial:!0,tokenize:GE},jE={partial:!0,tokenize:WE};function qE(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(p){const b=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Ou(p)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(is,n,l)(p):l(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return n(p)}function u(p){return Ou(p)&&++s<10?(e.consume(p),u):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):n(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Ea,r.interrupt?n:c,e.attempt(VE,m,d))}function c(p){return r.containerState.initialBlankLine=!0,a++,m(p)}function d(p){return Re(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),m):n(p)}function m(p){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function $E(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ea,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ne(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!Re(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(jE,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ne(e,e.attempt(Wt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function WE(e,t,n){const r=this;return Ne(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function YE(e){e.exit(this.containerState.type)}function GE(e,t,n){const r=this;return Ne(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!Re(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Kd={name:"setextUnderline",resolveTo:KE,tokenize:XE};function KE(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function XE(e,t,n){const r=this;let i;return a;function a(l){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===i?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),Re(l)?Ne(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||he(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const QE={tokenize:ZE};function ZE(e){const t=this,n=e.attempt(Ea,r,e.attempt(this.parser.constructs.flowInitial,i,Ne(e,e.attempt(this.parser.constructs.flow,i,e.attempt(rE,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const JE={resolveAll:hp()},ex=dp("string"),tx=dp("text");function dp(e){return{resolveAll:hp(e==="text"?nx:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(c){return l(c)?a(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return l(c)?(n.exit("data"),a(c)):(n.consume(c),u)}function l(c){if(c===null)return!0;const d=i[c];let m=-1;if(d)for(;++m-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function px(e,t){let n=-1;const r=[];let i;for(;++n0){const Le=ye.tokenStack[ye.tokenStack.length-1];(Le[1]||Qd).call(ye,void 0,Le[0])}for(ae.position={start:rr(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:rr(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},Me=-1;++Me0){const Le=ye.tokenStack[ye.tokenStack.length-1];(Le[1]||Qd).call(ye,void 0,Le[0])}for(ae.position={start:rr(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:rr(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},Me=-1;++Me1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,u);const l={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,l),e.applyData(t,l)}function Dx(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _x(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function pp(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function Lx(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return pp(e,t);const i={src:gi(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Px(e,t){const n={src:gi(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Ox(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Bx(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return pp(e,t);const i={href:gi(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Fx(e,t){const n={href:gi(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Hx(e,t,n){const r=e.all(t),i=n?zx(n):gp(t),a={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o0&&n.push({type:"text",value:` `}),n}function ih(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function ah(e,t){const n=fv(e,t),r=n.one(e,void 0),i=iv(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` -`},i),a}function yv(e,t){return e&&"run"in e?async function(n,r){const i=ah(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ah(n,{file:r,...e||t})}}function sh(e){if(e)throw e}var No,oh;function Tv(){if(oh)return No;oh=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},a=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var c=e.call(l,"constructor"),d=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!c&&!d)return!1;var m;for(m in l);return typeof m>"u"||e.call(l,m)},s=function(l,c){n&&c.name==="__proto__"?n(l,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):l[c.name]=c.newValue},o=function(l,c){if(c==="__proto__")if(e.call(l,c)){if(r)return r(l,c).value}else return;return l[c]};return No=function u(){var l,c,d,m,p,b,E=arguments[0],C=1,T=arguments.length,S=!1;for(typeof E=="boolean"&&(S=E,E=arguments[1]||{},C=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});Cs.length;let u;o&&s.push(i);try{u=e.apply(this,s)}catch(l){const c=l;if(o&&n)throw c;return i(c)}o||(u&&u.then&&typeof u.then=="function"?u.then(a,i):u instanceof Error?i(u):a(u))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}const Sn={basename:Sv,dirname:Av,extname:Cv,join:wv,sep:"/"};function Sv(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');va(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function Av(e){if(va(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Cv(e){va(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function wv(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Iv(e,t){let n="",r=0,i=-1,a=0,s=-1,o,u;for(;++s<=e.length;){if(s2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function va(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Nv={cwd:Mv};function Mv(){return"/"}function Uu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Rv(e){if(typeof e=="string")e=new URL(e);else if(!Uu(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Dv(e)}function Dv(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[p,...b]=c;const E=r[m][1];zu(E)&&zu(p)&&(p=Mo(!0,E,p)),r[m]=[l,p,...b]}}}}const Ov=new s0().freeze();function Lo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Po(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Oo(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function lh(e){if(!zu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ch(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ua(e){return Bv(e)?e:new vp(e)}function Bv(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Fv(e){return typeof e=="string"||Hv(e)}function Hv(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const zv="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",dh=[],hh={allowDangerousHtml:!0},Uv=/^(https?|ircs?|mailto|xmpp)$/i,Vv=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function jv(e){const t=qv(e),n=$v(e);return Wv(t.runSync(t.parse(n),n),e)}function qv(e){const t=e.rehypePlugins||dh,n=e.remarkPlugins||dh,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...hh}:hh;return Ov().use(Cx).use(n).use(yv,r).use(t)}function $v(e){const t=e.children||"",n=new vp;return typeof t=="string"&&(n.value=t),n}function Wv(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,u=t.urlTransform||Yv;for(const c of Vv)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+zv+c.id,void 0);return $s(e,l),uT(e,{Fragment:L.Fragment,components:i,ignoreInvalidStyle:!0,jsx:L.jsx,jsxs:L.jsxs,passKeys:!0,passNode:!0});function l(c,d,m){if(c.type==="raw"&&m&&typeof d=="number")return s?m.children.splice(d,1):m.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let p;for(p in wo)if(Object.hasOwn(wo,p)&&Object.hasOwn(c.properties,p)){const b=c.properties[p],E=wo[p];(E===null||E.includes(c.tagName))&&(c.properties[p]=u(String(b||""),p,c))}}if(c.type==="element"){let p=n?!n.includes(c.tagName):a?a.includes(c.tagName):!1;if(!p&&r&&typeof d=="number"&&(p=!r(c,d,m)),p&&m&&typeof d=="number")return o&&c.children?m.children.splice(d,1,...c.children):m.children.splice(d,1),d}}}function Yv(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Uv.test(e.slice(0,t))?e:""}function fh(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Gv(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Kv(e,t,n){const i=xa((n||{}).ignore||[]),a=Xv(t);let s=-1;for(;++s0?{type:"text",value:k}:void 0),k===!1?m.lastIndex=_+1:(b!==_&&S.push({type:"text",value:l.value.slice(b,_)}),Array.isArray(k)?S.push(...k):k&&S.push(k),b=_+v[0].length,T=!0),!m.global)break;v=m.exec(l.value)}return T?(b?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=fh(e,"(");let a=fh(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function Sp(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Pr(n)||Us(n))&&(!t||n!==47)}Ap.peek=TS;function dS(){this.buffer()}function hS(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function fS(){this.buffer()}function mS(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function pS(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=yn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function gS(e){this.exit(e)}function bS(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=yn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function yS(e){this.exit(e)}function TS(){return"["}function Ap(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=i.move("]"),a}function ES(){return{enter:{gfmFootnoteCallString:dS,gfmFootnoteCall:hS,gfmFootnoteDefinitionLabelString:fS,gfmFootnoteDefinition:mS},exit:{gfmFootnoteCallString:pS,gfmFootnoteCall:gS,gfmFootnoteDefinitionLabelString:bS,gfmFootnoteDefinition:yS}}}function xS(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Ap},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,s){const o=a.createTracker(s);let u=o.move("[^");const l=a.enter("footnoteDefinition"),c=a.enter("label");return u+=o.move(a.safe(a.associationId(r),{before:u,after:"]"})),c(),u+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),u+=o.move((t?` -`:" ")+a.indentLines(a.containerFlow(r,o.current()),t?Cp:vS))),l(),u}}function vS(e,t,n){return t===0?e:Cp(e,t,n)}function Cp(e,t,n){return(n?"":" ")+e}const SS=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];wp.peek=IS;function AS(){return{canContainEols:["delete"],enter:{strikethrough:wS},exit:{strikethrough:kS}}}function CS(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:SS}],handlers:{delete:wp}}}function wS(e){this.enter({type:"delete",children:[]},e)}function kS(e){this.exit(e)}function wp(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function IS(){return"~"}function NS(e){return e.length}function MS(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||NS,a=[],s=[],o=[],u=[];let l=0,c=-1;for(;++cl&&(l=e[c].length);++Tu[T])&&(u[T]=v)}E.push(S)}s[c]=E,o[c]=C}let d=-1;if(typeof r=="object"&&"length"in r)for(;++du[d]&&(u[d]=S),p[d]=S),m[d]=v}s.splice(1,0,m),o.splice(1,0,p),c=-1;const b=[];for(;++c"u"||e.call(l,m)},s=function(l,c){n&&c.name==="__proto__"?n(l,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):l[c.name]=c.newValue},o=function(l,c){if(c==="__proto__")if(e.call(l,c)){if(r)return r(l,c).value}else return;return l[c]};return No=function u(){var l,c,d,m,p,b,E=arguments[0],C=1,T=arguments.length,S=!1;for(typeof E=="boolean"&&(S=E,E=arguments[1]||{},C=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});Cs.length;let u;o&&s.push(i);try{u=e.apply(this,s)}catch(l){const c=l;if(o&&n)throw c;return i(c)}o||(u&&u.then&&typeof u.then=="function"?u.then(a,i):u instanceof Error?i(u):a(u))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}const Sn={basename:Sv,dirname:Av,extname:Cv,join:wv,sep:"/"};function Sv(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');va(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function Av(e){if(va(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Cv(e){va(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function wv(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Iv(e,t){let n="",r=0,i=-1,a=0,s=-1,o,u;for(;++s<=e.length;){if(s2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function va(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Nv={cwd:Mv};function Mv(){return"/"}function Uu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Rv(e){if(typeof e=="string")e=new URL(e);else if(!Uu(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Dv(e)}function Dv(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[p,...b]=c;const E=r[m][1];zu(E)&&zu(p)&&(p=Mo(!0,E,p)),r[m]=[l,p,...b]}}}}const Ov=new s0().freeze();function Lo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Po(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Oo(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function lh(e){if(!zu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ch(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ua(e){return Bv(e)?e:new vp(e)}function Bv(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Fv(e){return typeof e=="string"||Hv(e)}function Hv(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const zv="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",dh=[],hh={allowDangerousHtml:!0},Uv=/^(https?|ircs?|mailto|xmpp)$/i,Vv=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function jv(e){const t=qv(e),n=$v(e);return Wv(t.runSync(t.parse(n),n),e)}function qv(e){const t=e.rehypePlugins||dh,n=e.remarkPlugins||dh,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...hh}:hh;return Ov().use(Cx).use(n).use(yv,r).use(t)}function $v(e){const t=e.children||"",n=new vp;return typeof t=="string"&&(n.value=t),n}function Wv(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,u=t.urlTransform||Yv;for(const c of Vv)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+zv+c.id,void 0);return $s(e,l),uT(e,{Fragment:D.Fragment,components:i,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function l(c,d,m){if(c.type==="raw"&&m&&typeof d=="number")return s?m.children.splice(d,1):m.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let p;for(p in wo)if(Object.hasOwn(wo,p)&&Object.hasOwn(c.properties,p)){const b=c.properties[p],E=wo[p];(E===null||E.includes(c.tagName))&&(c.properties[p]=u(String(b||""),p,c))}}if(c.type==="element"){let p=n?!n.includes(c.tagName):a?a.includes(c.tagName):!1;if(!p&&r&&typeof d=="number"&&(p=!r(c,d,m)),p&&m&&typeof d=="number")return o&&c.children?m.children.splice(d,1,...c.children):m.children.splice(d,1),d}}}function Yv(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Uv.test(e.slice(0,t))?e:""}function fh(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Gv(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Kv(e,t,n){const i=xa((n||{}).ignore||[]),a=Xv(t);let s=-1;for(;++s0?{type:"text",value:k}:void 0),k===!1?m.lastIndex=L+1:(b!==L&&S.push({type:"text",value:l.value.slice(b,L)}),Array.isArray(k)?S.push(...k):k&&S.push(k),b=L+v[0].length,T=!0),!m.global)break;v=m.exec(l.value)}return T?(b?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=fh(e,"(");let a=fh(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function Sp(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Pr(n)||Us(n))&&(!t||n!==47)}Ap.peek=TS;function dS(){this.buffer()}function hS(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function fS(){this.buffer()}function mS(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function pS(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=yn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function gS(e){this.exit(e)}function bS(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=yn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function yS(e){this.exit(e)}function TS(){return"["}function Ap(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=i.move("]"),a}function ES(){return{enter:{gfmFootnoteCallString:dS,gfmFootnoteCall:hS,gfmFootnoteDefinitionLabelString:fS,gfmFootnoteDefinition:mS},exit:{gfmFootnoteCallString:pS,gfmFootnoteCall:gS,gfmFootnoteDefinitionLabelString:bS,gfmFootnoteDefinition:yS}}}function xS(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Ap},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,s){const o=a.createTracker(s);let u=o.move("[^");const l=a.enter("footnoteDefinition"),c=a.enter("label");return u+=o.move(a.safe(a.associationId(r),{before:u,after:"]"})),c(),u+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),u+=o.move((t?` +`:" ")+a.indentLines(a.containerFlow(r,o.current()),t?Cp:vS))),l(),u}}function vS(e,t,n){return t===0?e:Cp(e,t,n)}function Cp(e,t,n){return(n?"":" ")+e}const SS=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];wp.peek=IS;function AS(){return{canContainEols:["delete"],enter:{strikethrough:wS},exit:{strikethrough:kS}}}function CS(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:SS}],handlers:{delete:wp}}}function wS(e){this.enter({type:"delete",children:[]},e)}function kS(e){this.exit(e)}function wp(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function IS(){return"~"}function NS(e){return e.length}function MS(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||NS,a=[],s=[],o=[],u=[];let l=0,c=-1;for(;++cl&&(l=e[c].length);++Tu[T])&&(u[T]=v)}E.push(S)}s[c]=E,o[c]=C}let d=-1;if(typeof r=="object"&&"length"in r)for(;++du[d]&&(u[d]=S),p[d]=S),m[d]=v}s.splice(1,0,m),o.splice(1,0,p),c=-1;const b=[];for(;++c "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),_S);return i(),s}function _S(e,t,n){return">"+(n?"":" ")+e}function LS(e,t){return gh(e,t.inConstruct,!0)&&!gh(e,t.notInConstruct,!1)}function gh(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++rs&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function PS(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function OS(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function BS(e,t,n,r){const i=OS(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(PS(e,n)){const d=n.enter("codeIndented"),m=n.indentLines(a,FS);return d(),m}const o=n.createTracker(r),u=i.repeat(Math.max(Ip(a,i)+1,3)),l=n.enter("codeFenced");let c=o.move(u);if(e.lang){const d=n.enter(`codeFencedLang${s}`);c+=o.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(n.safe(e.meta,{before:c,after:` @@ -115,11 +115,11 @@ import{x as W4,y as Y4,r as O,z as G4,C as K4,j as L,c as Be,_ as X4,R as Ma,D a `))+1))}const s="#".repeat(i),o=n.enter("headingAtx"),u=n.enter("phrasing");a.move(s+" ");let l=n.containerPhrasing(e,{before:"# ",after:` `,...a.current()});return/^[\t ]/.test(l)&&(l=la(l.charCodeAt(0))+l.slice(1)),l=l?s+" "+l:s,n.options.closeAtx&&(l+=" "+s),u(),o(),l}Mp.peek=qS;function Mp(e){return e.value||""}function qS(){return"<"}Rp.peek=$S;function Rp(e,t,n,r){const i=o0(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const u=n.createTracker(r);let l=u.move("![");return l+=u.move(n.safe(e.alt,{before:l,after:"]",...u.current()})),l+=u.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(n.safe(e.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(o=n.enter("destinationRaw"),l+=u.move(n.safe(e.url,{before:l,after:e.title?" ":")",...u.current()}))),o(),e.title&&(o=n.enter(`title${a}`),l+=u.move(" "+i),l+=u.move(n.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),o()),l+=u.move(")"),s(),l}function $S(){return"!"}Dp.peek=WS;function Dp(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let u=o.move("![");const l=n.safe(e.alt,{before:u,after:"]",...o.current()});u+=o.move(l+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!l||l!==d?u+=o.move(d+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function WS(){return"!"}_p.peek=YS;function _p(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a\u007F]/.test(e.url))}Pp.peek=GS;function Pp(e,t,n,r){const i=o0(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,u;if(Lp(e,n)){const c=n.stack;n.stack=[],o=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),o(),n.stack=c,d}o=n.enter("link"),u=n.enter("label");let l=s.move("[");return l+=s.move(n.containerPhrasing(e,{before:l,after:"](",...s.current()})),l+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),l+=s.move("<"),l+=s.move(n.safe(e.url,{before:l,after:">",...s.current()})),l+=s.move(">")):(u=n.enter("destinationRaw"),l+=s.move(n.safe(e.url,{before:l,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=n.enter(`title${a}`),l+=s.move(" "+i),l+=s.move(n.safe(e.title,{before:l,after:i,...s.current()})),l+=s.move(i),u()),l+=s.move(")"),o(),l}function GS(e,t,n){return Lp(e,n)?"<":"["}Op.peek=KS;function Op(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let u=o.move("[");const l=n.containerPhrasing(e,{before:u,after:"]",...o.current()});u+=o.move(l+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!l||l!==d?u+=o.move(d+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function KS(){return"["}function u0(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function XS(e){const t=u0(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function QS(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Bp(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function ZS(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?QS(n):u0(n);const o=e.ordered?s==="."?")":".":XS(n);let u=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),Bp(n)===s&&c){let d=-1;for(;++d-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);const u=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,o.current()),c);return u(),l;function c(d,m,p){return m?(p?"":" ".repeat(s))+d:(p?a:a+" ".repeat(s-a.length))+d}}function tA(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const nA=xa(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function rA(e,t,n,r){return(e.children.some(function(s){return nA(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function iA(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Fp.peek=aA;function Fp(e,t,n,r){const i=iA(n),a=n.enter("strong"),s=n.createTracker(r),o=s.move(i+i);let u=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const l=u.charCodeAt(0),c=Ts(r.before.charCodeAt(r.before.length-1),l,i);c.inside&&(u=la(l)+u.slice(1));const d=u.charCodeAt(u.length-1),m=Ts(r.after.charCodeAt(0),d,i);m.inside&&(u=u.slice(0,-1)+la(d));const p=s.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:m.outside,before:c.outside},o+u+p}function aA(e,t,n){return n.options.strong||"*"}function sA(e,t,n,r){return n.safe(e.value,r)}function oA(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function uA(e,t,n){const r=(Bp(n)+(n.options.ruleSpaces?" ":"")).repeat(oA(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Hp={blockquote:DS,break:bh,code:BS,definition:HS,emphasis:Np,hardBreak:bh,heading:jS,html:Mp,image:Rp,imageReference:Dp,inlineCode:_p,link:Pp,linkReference:Op,list:ZS,listItem:eA,paragraph:tA,root:rA,strong:Fp,text:sA,thematicBreak:uA};function lA(){return{enter:{table:cA,tableData:yh,tableHeader:yh,tableRow:hA},exit:{codeText:fA,table:dA,tableData:zo,tableHeader:zo,tableRow:zo}}}function cA(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function dA(e){this.exit(e),this.data.inTable=void 0}function hA(e){this.enter({type:"tableRow",children:[]},e)}function zo(e){this.exit(e)}function yh(e){this.enter({type:"tableCell",children:[]},e)}function fA(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,mA));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function mA(e,t){return t==="|"?t:e}function pA(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:s,tableCell:u,tableRow:o}};function s(p,b,E,C){return l(c(p,E,C),p.align)}function o(p,b,E,C){const T=d(p,E,C),S=l([T]);return S.slice(0,S.indexOf(` -`))}function u(p,b,E,C){const T=E.enter("tableCell"),S=E.enter("phrasing"),v=E.containerPhrasing(p,{...C,before:a,after:a});return S(),T(),v}function l(p,b){return MS(p,{align:b,alignDelimiters:r,padding:n,stringLength:i})}function c(p,b,E){const C=p.children;let T=-1;const S=[],v=b.enter("table");for(;++T0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const _A={tokenize:UA,partial:!0};function LA(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:FA,continuation:{tokenize:HA},exit:zA}},text:{91:{name:"gfmFootnoteCall",tokenize:BA},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:PA,resolveTo:OA}}}}function PA(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return o;function o(u){if(!s||!s._balanced)return n(u);const l=yn(r.sliceSerialize({start:s.end,end:r.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function OA(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function BA(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),u}function u(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(d){if(a>999||d===93&&!s||d===null||d===91||Ye(d))return n(d);if(d===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return i.includes(yn(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Ye(d)||(s=!0),a++,e.consume(d),d===92?c:l}function c(d){return d===91||d===92||d===93?(e.consume(d),a++,l):l(d)}}function FA(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(b)}function c(b){if(s>999||b===93&&!o||b===null||b===91||Ye(b))return n(b);if(b===93){e.exit("chunkString");const E=e.exit("gfmFootnoteDefinitionLabelString");return a=yn(r.sliceSerialize(E)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return Ye(b)||(o=!0),s++,e.consume(b),b===92?d:c}function d(b){return b===91||b===92||b===93?(e.consume(b),s++,c):c(b)}function m(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),Ne(e,p,"gfmFootnoteDefinitionWhitespace")):n(b)}function p(b){return t(b)}}function HA(e,t,n){return e.check(Ea,t,e.attempt(_A,t,n))}function zA(e){e.exit("gfmFootnoteDefinition")}function UA(e,t,n){const r=this;return Ne(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function VA(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let u=-1;for(;++u1?u(b):(s.consume(b),d++,p);if(d<2&&!n)return u(b);const C=s.exit("strikethroughSequenceTemporary"),T=oi(b);return C._open=!T||T===2&&!!E,C._close=!E||E===2&&!!T,o(b)}}}class jA{constructor(){this.map=[]}add(t,n,r){qA(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function qA(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const j=r.events[K][1].type;if(j==="lineEnding"||j==="linePrefix")K--;else break}const Y=K>-1?r.events[K][1].type:null,X=Y==="tableHead"||Y==="tableRow"?k:u;return X===k&&r.parser.lazy[r.now().line]?n(B):X(B)}function u(B){return e.enter("tableHead"),e.enter("tableRow"),l(B)}function l(B){return B===124||(s=!0,a+=1),c(B)}function c(B){return B===null?n(B):he(B)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),p):n(B):Re(B)?Ne(e,c,"whitespace")(B):(a+=1,s&&(s=!1,i+=1),B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),d(B)))}function d(B){return B===null||B===124||Ye(B)?(e.exit("data"),c(B)):(e.consume(B),B===92?m:d)}function m(B){return B===92||B===124?(e.consume(B),d):d(B)}function p(B){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(B):(e.enter("tableDelimiterRow"),s=!1,Re(B)?Ne(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):b(B))}function b(B){return B===45||B===58?C(B):B===124?(s=!0,e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),E):P(B)}function E(B){return Re(B)?Ne(e,C,"whitespace")(B):C(B)}function C(B){return B===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),T):B===45?(a+=1,T(B)):B===null||he(B)?_(B):P(B)}function T(B){return B===45?(e.enter("tableDelimiterFiller"),S(B)):P(B)}function S(B){return B===45?(e.consume(B),S):B===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(B))}function v(B){return Re(B)?Ne(e,_,"whitespace")(B):_(B)}function _(B){return B===124?b(B):B===null||he(B)?!s||i!==a?P(B):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(B)):P(B)}function P(B){return n(B)}function k(B){return e.enter("tableRow"),V(B)}function V(B){return B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),V):B===null||he(B)?(e.exit("tableRow"),t(B)):Re(B)?Ne(e,V,"whitespace")(B):(e.enter("data"),U(B))}function U(B){return B===null||B===124||Ye(B)?(e.exit("data"),V(B)):(e.consume(B),B===92?q:U)}function q(B){return B===92||B===124?(e.consume(B),U):U(B)}}function GA(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,u=0,l,c,d;const m=new jA;for(;++nn[2]+1){const b=n[2]+1,E=n[3]-n[2]-1;e.add(b,E,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},Yr(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Eh(e,t,n,r,i){const a=[],s=Yr(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function Yr(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const KA={name:"tasklistCheck",tokenize:QA};function XA(){return{text:{91:KA}}}function QA(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return Ye(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):n(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(u)}function o(u){return he(u)?t(u):Re(u)?e.check({tokenize:ZA},t,n)(u):n(u)}}function ZA(e,t,n){return Ne(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function JA(e){return np([AA(),LA(),VA(e),WA(),XA()])}const eC={};function xh(e){const t=this,n=e||eC,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(JA(n)),a.push(EA()),s.push(xA(n))}function tC(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:o,mathText:s,mathTextData:o}};function e(u){const l={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[l]}},u)}function t(){this.buffer()}function n(){const u=this.resume(),l=this.stack[this.stack.length-1];l.type,l.meta=u}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(u){const l=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=l;const d=c.data.hChildren[0];d.type,d.tagName,d.children.push({type:"text",value:l}),this.data.mathFlowInside=void 0}function a(u){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},u),this.buffer()}function s(u){const l=this.resume(),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=l,c.data.hChildren.push({type:"text",value:l})}function o(u){this.config.enter.data.call(this,u),this.config.exit.data.call(this,u)}}function nC(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` +`))}function u(p,b,E,C){const T=E.enter("tableCell"),S=E.enter("phrasing"),v=E.containerPhrasing(p,{...C,before:a,after:a});return S(),T(),v}function l(p,b){return MS(p,{align:b,alignDelimiters:r,padding:n,stringLength:i})}function c(p,b,E){const C=p.children;let T=-1;const S=[],v=b.enter("table");for(;++T0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const _A={tokenize:UA,partial:!0};function LA(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:FA,continuation:{tokenize:HA},exit:zA}},text:{91:{name:"gfmFootnoteCall",tokenize:BA},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:PA,resolveTo:OA}}}}function PA(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return o;function o(u){if(!s||!s._balanced)return n(u);const l=yn(r.sliceSerialize({start:s.end,end:r.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function OA(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function BA(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),u}function u(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(d){if(a>999||d===93&&!s||d===null||d===91||Ye(d))return n(d);if(d===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return i.includes(yn(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Ye(d)||(s=!0),a++,e.consume(d),d===92?c:l}function c(d){return d===91||d===92||d===93?(e.consume(d),a++,l):l(d)}}function FA(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(b)}function c(b){if(s>999||b===93&&!o||b===null||b===91||Ye(b))return n(b);if(b===93){e.exit("chunkString");const E=e.exit("gfmFootnoteDefinitionLabelString");return a=yn(r.sliceSerialize(E)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return Ye(b)||(o=!0),s++,e.consume(b),b===92?d:c}function d(b){return b===91||b===92||b===93?(e.consume(b),s++,c):c(b)}function m(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),Ne(e,p,"gfmFootnoteDefinitionWhitespace")):n(b)}function p(b){return t(b)}}function HA(e,t,n){return e.check(Ea,t,e.attempt(_A,t,n))}function zA(e){e.exit("gfmFootnoteDefinition")}function UA(e,t,n){const r=this;return Ne(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function VA(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let u=-1;for(;++u1?u(b):(s.consume(b),d++,p);if(d<2&&!n)return u(b);const C=s.exit("strikethroughSequenceTemporary"),T=oi(b);return C._open=!T||T===2&&!!E,C._close=!E||E===2&&!!T,o(b)}}}class jA{constructor(){this.map=[]}add(t,n,r){qA(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function qA(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const j=r.events[K][1].type;if(j==="lineEnding"||j==="linePrefix")K--;else break}const Y=K>-1?r.events[K][1].type:null,X=Y==="tableHead"||Y==="tableRow"?k:u;return X===k&&r.parser.lazy[r.now().line]?n(B):X(B)}function u(B){return e.enter("tableHead"),e.enter("tableRow"),l(B)}function l(B){return B===124||(s=!0,a+=1),c(B)}function c(B){return B===null?n(B):he(B)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),p):n(B):Re(B)?Ne(e,c,"whitespace")(B):(a+=1,s&&(s=!1,i+=1),B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),d(B)))}function d(B){return B===null||B===124||Ye(B)?(e.exit("data"),c(B)):(e.consume(B),B===92?m:d)}function m(B){return B===92||B===124?(e.consume(B),d):d(B)}function p(B){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(B):(e.enter("tableDelimiterRow"),s=!1,Re(B)?Ne(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):b(B))}function b(B){return B===45||B===58?C(B):B===124?(s=!0,e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),E):P(B)}function E(B){return Re(B)?Ne(e,C,"whitespace")(B):C(B)}function C(B){return B===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),T):B===45?(a+=1,T(B)):B===null||he(B)?L(B):P(B)}function T(B){return B===45?(e.enter("tableDelimiterFiller"),S(B)):P(B)}function S(B){return B===45?(e.consume(B),S):B===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(B))}function v(B){return Re(B)?Ne(e,L,"whitespace")(B):L(B)}function L(B){return B===124?b(B):B===null||he(B)?!s||i!==a?P(B):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(B)):P(B)}function P(B){return n(B)}function k(B){return e.enter("tableRow"),V(B)}function V(B){return B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),V):B===null||he(B)?(e.exit("tableRow"),t(B)):Re(B)?Ne(e,V,"whitespace")(B):(e.enter("data"),U(B))}function U(B){return B===null||B===124||Ye(B)?(e.exit("data"),V(B)):(e.consume(B),B===92?q:U)}function q(B){return B===92||B===124?(e.consume(B),U):U(B)}}function GA(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,u=0,l,c,d;const m=new jA;for(;++nn[2]+1){const b=n[2]+1,E=n[3]-n[2]-1;e.add(b,E,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},Yr(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Eh(e,t,n,r,i){const a=[],s=Yr(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function Yr(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const KA={name:"tasklistCheck",tokenize:QA};function XA(){return{text:{91:KA}}}function QA(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return Ye(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):n(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(u)}function o(u){return he(u)?t(u):Re(u)?e.check({tokenize:ZA},t,n)(u):n(u)}}function ZA(e,t,n){return Ne(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function JA(e){return np([AA(),LA(),VA(e),WA(),XA()])}const eC={};function xh(e){const t=this,n=e||eC,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(JA(n)),a.push(EA()),s.push(xA(n))}function tC(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:o,mathText:s,mathTextData:o}};function e(u){const l={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[l]}},u)}function t(){this.buffer()}function n(){const u=this.resume(),l=this.stack[this.stack.length-1];l.type,l.meta=u}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(u){const l=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=l;const d=c.data.hChildren[0];d.type,d.tagName,d.children.push({type:"text",value:l}),this.data.mathFlowInside=void 0}function a(u){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},u),this.buffer()}function s(u){const l=this.resume(),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=l,c.data.hChildren.push({type:"text",value:l})}function o(u){this.config.enter.data.call(this,u),this.config.exit.data.call(this,u)}}function nC(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` `,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(a,s,o,u){const l=a.value||"",c=o.createTracker(u),d="$".repeat(Math.max(Ip(l,"$")+1,2)),m=o.enter("mathFlow");let p=c.move(d);if(a.meta){const b=o.enter("mathFlowMeta");p+=c.move(o.safe(a.meta,{after:` `,before:p,encode:["$"],...c.current()})),b()}return p+=c.move(` `),l&&(p+=c.move(l+` -`)),p+=c.move(d),m(),p}function r(a,s,o){let u=a.value||"",l=1;for(t||l++;new RegExp("(^|[^$])"+"\\$".repeat(l)+"([^$]|$)").test(u);)l++;const c="$".repeat(l);/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^\$|\$$/.test(u))&&(u=" "+u+" ");let d=-1;for(;++d15?l="…"+o.slice(i-15,i):l=o.slice(0,i);var c;a+15":">","<":"<",'"':""","'":"'"},pC=/[&><"']/g;function gC(e){return String(e).replace(pC,t=>mC[t])}var Gp=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},bC=function(t){var n=Gp(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},yC=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},TC=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},pe={contains:cC,deflt:dC,escape:gC,hyphenate:fC,getBaseElem:Gp,isCharacterBox:bC,protocolFromUrl:TC},as={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function EC(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class c0{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in as)if(as.hasOwnProperty(n)){var r=as[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:EC(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new te("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var n=pe.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class ir{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return An[xC[this.id]]}sub(){return An[vC[this.id]]}fracNum(){return An[SC[this.id]]}fracDen(){return An[AC[this.id]]}cramp(){return An[CC[this.id]]}text(){return An[wC[this.id]]}isTight(){return this.size>=2}}var d0=0,Es=1,ri=2,qn=3,ca=4,cn=5,ui=6,zt=7,An=[new ir(d0,0,!1),new ir(Es,0,!0),new ir(ri,1,!1),new ir(qn,1,!0),new ir(ca,2,!1),new ir(cn,2,!0),new ir(ui,3,!1),new ir(zt,3,!0)],xC=[ca,cn,ca,cn,ui,zt,ui,zt],vC=[cn,cn,cn,cn,zt,zt,zt,zt],SC=[ri,qn,ca,cn,ui,zt,ui,zt],AC=[qn,qn,cn,cn,zt,zt,zt,zt],CC=[Es,Es,qn,qn,cn,cn,zt,zt],wC=[d0,Es,ri,qn,ri,qn,ri,qn],be={DISPLAY:An[d0],TEXT:An[ri],SCRIPT:An[ca],SCRIPTSCRIPT:An[ui]},ju=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function kC(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var ss=[];ju.forEach(e=>e.blocks.forEach(t=>ss.push(...t)));function Kp(e){for(var t=0;t=ss[t]&&e<=ss[t+1])return!0;return!1}var $r=80,IC=function(t,n){return"M95,"+(622+t+n)+` +`)),p+=c.move(d),m(),p}function r(a,s,o){let u=a.value||"",l=1;for(t||l++;new RegExp("(^|[^$])"+"\\$".repeat(l)+"([^$]|$)").test(u);)l++;const c="$".repeat(l);/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^\$|\$$/.test(u))&&(u=" "+u+" ");let d=-1;for(;++d15?l="…"+o.slice(i-15,i):l=o.slice(0,i);var c;a+15":">","<":"<",'"':""","'":"'"},pC=/[&><"']/g;function gC(e){return String(e).replace(pC,t=>mC[t])}var Gp=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},bC=function(t){var n=Gp(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},yC=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},TC=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},pe={contains:cC,deflt:dC,escape:gC,hyphenate:fC,getBaseElem:Gp,isCharacterBox:bC,protocolFromUrl:TC},as={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function EC(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class c0{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in as)if(as.hasOwnProperty(n)){var r=as[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:EC(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new te("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var n=pe.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class ir{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return An[xC[this.id]]}sub(){return An[vC[this.id]]}fracNum(){return An[SC[this.id]]}fracDen(){return An[AC[this.id]]}cramp(){return An[CC[this.id]]}text(){return An[wC[this.id]]}isTight(){return this.size>=2}}var d0=0,Es=1,ri=2,qn=3,ca=4,cn=5,ui=6,zt=7,An=[new ir(d0,0,!1),new ir(Es,0,!0),new ir(ri,1,!1),new ir(qn,1,!0),new ir(ca,2,!1),new ir(cn,2,!0),new ir(ui,3,!1),new ir(zt,3,!0)],xC=[ca,cn,ca,cn,ui,zt,ui,zt],vC=[cn,cn,cn,cn,zt,zt,zt,zt],SC=[ri,qn,ca,cn,ui,zt,ui,zt],AC=[qn,qn,cn,cn,zt,zt,zt,zt],CC=[Es,Es,qn,qn,cn,cn,zt,zt],wC=[d0,Es,ri,qn,ri,qn,ri,qn],be={DISPLAY:An[d0],TEXT:An[ri],SCRIPT:An[ca],SCRIPTSCRIPT:An[ui]},ju=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function kC(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var ss=[];ju.forEach(e=>e.blocks.forEach(t=>ss.push(...t)));function Kp(e){for(var t=0;t=ss[t]&&e<=ss[t+1])return!0;return!1}var $r=80,IC=function(t,n){return"M95,"+(622+t+n)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 @@ -373,8 +373,8 @@ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6 c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let Sa=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return pe.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;nn.toText();return this.children.map(t).join("")}};var wn={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ja={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Ah={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function FC(e,t){wn[e]=t}function h0(e,t,n){if(!wn[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=wn[t][r];if(!i&&e[0]in Ah&&(r=Ah[e[0]].charCodeAt(0),i=wn[t][r]),!i&&n==="text"&&Kp(r)&&(i=wn[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Uo={};function HC(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Uo[t]){var n=Uo[t]={cssEmPerMu:ja.quad[t]/18};for(var r in ja)ja.hasOwnProperty(r)&&(n[r]=ja[r][t])}return Uo[t]}var zC=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Ch=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],wh=function(t,n){return n.size<2?t:zC[t-1][n.size-1]};class Un{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Un.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Ch[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new Un(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:wh(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Ch[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=wh(Un.BASESIZE,t);return this.size===n&&this.textSize===Un.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Un.BASESIZE?["sizing","reset-size"+this.size,"size"+Un.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=HC(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Un.BASESIZE=6;var qu={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},UC={ex:!0,em:!0,mu:!0},Xp=function(t){return typeof t!="string"&&(t=t.unit),t in qu||t in UC||t==="ex"},st=function(t,n){var r;if(t.unit in qu)r=qu[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new te("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},se=function(t){return+t.toFixed(4)+"em"},mr=function(t){return t.filter(n=>n).join(" ")},Qp=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},Zp=function(t){var n=document.createElement(t);n.className=mr(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a/=\x00-\x1f]/,Jp=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+pe.escape(mr(this.classes))+'"');var r="";for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=pe.hyphenate(i)+":"+this.style[i]+";");r&&(n+=' style="'+pe.escape(r)+'"');for(var a in this.attributes)if(this.attributes.hasOwnProperty(a)){if(VC.test(a))throw new te("Invalid attribute name '"+a+"'");n+=" "+a+'="'+pe.escape(this.attributes[a])+'"'}n+=">";for(var s=0;s",n};class Aa{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Qp.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return pe.contains(this.classes,t)}toNode(){return Zp.call(this,"span")}toMarkup(){return Jp.call(this,"span")}}class f0{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Qp.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return pe.contains(this.classes,t)}toNode(){return Zp.call(this,"a")}toMarkup(){return Jp.call(this,"a")}}class jC{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return pe.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t=''+pe.escape(this.alt)+'0&&(n=document.createElement("span"),n.style.marginRight=se(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=mr(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=pe.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+pe.escape(r)+'"');var a=pe.escape(this.text);return t?(n+=">",n+=a,n+="",n):a}}class Kn{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i':''}}class $u{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t=" but got "+String(e)+".")}var WC={bin:1,close:1,inner:1,open:1,punct:1,rel:1},YC={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},et={math:{},text:{}};function f(e,t,n,r,i,a){et[e][i]={font:t,group:n,replace:r},a&&r&&(et[e][r]=et[e][i])}var g="math",Q="text",y="main",N="ams",it="accent-token",de="bin",Ut="close",bi="inner",ge="mathord",Et="op-token",an="open",Ws="punct",M="rel",Jn="spacing",F="textord";f(g,y,M,"≡","\\equiv",!0);f(g,y,M,"≺","\\prec",!0);f(g,y,M,"≻","\\succ",!0);f(g,y,M,"∼","\\sim",!0);f(g,y,M,"⊥","\\perp");f(g,y,M,"⪯","\\preceq",!0);f(g,y,M,"⪰","\\succeq",!0);f(g,y,M,"≃","\\simeq",!0);f(g,y,M,"∣","\\mid",!0);f(g,y,M,"≪","\\ll",!0);f(g,y,M,"≫","\\gg",!0);f(g,y,M,"≍","\\asymp",!0);f(g,y,M,"∥","\\parallel");f(g,y,M,"⋈","\\bowtie",!0);f(g,y,M,"⌣","\\smile",!0);f(g,y,M,"⊑","\\sqsubseteq",!0);f(g,y,M,"⊒","\\sqsupseteq",!0);f(g,y,M,"≐","\\doteq",!0);f(g,y,M,"⌢","\\frown",!0);f(g,y,M,"∋","\\ni",!0);f(g,y,M,"∝","\\propto",!0);f(g,y,M,"⊢","\\vdash",!0);f(g,y,M,"⊣","\\dashv",!0);f(g,y,M,"∋","\\owns");f(g,y,Ws,".","\\ldotp");f(g,y,Ws,"⋅","\\cdotp");f(g,y,F,"#","\\#");f(Q,y,F,"#","\\#");f(g,y,F,"&","\\&");f(Q,y,F,"&","\\&");f(g,y,F,"ℵ","\\aleph",!0);f(g,y,F,"∀","\\forall",!0);f(g,y,F,"ℏ","\\hbar",!0);f(g,y,F,"∃","\\exists",!0);f(g,y,F,"∇","\\nabla",!0);f(g,y,F,"♭","\\flat",!0);f(g,y,F,"ℓ","\\ell",!0);f(g,y,F,"♮","\\natural",!0);f(g,y,F,"♣","\\clubsuit",!0);f(g,y,F,"℘","\\wp",!0);f(g,y,F,"♯","\\sharp",!0);f(g,y,F,"♢","\\diamondsuit",!0);f(g,y,F,"ℜ","\\Re",!0);f(g,y,F,"♡","\\heartsuit",!0);f(g,y,F,"ℑ","\\Im",!0);f(g,y,F,"♠","\\spadesuit",!0);f(g,y,F,"§","\\S",!0);f(Q,y,F,"§","\\S");f(g,y,F,"¶","\\P",!0);f(Q,y,F,"¶","\\P");f(g,y,F,"†","\\dag");f(Q,y,F,"†","\\dag");f(Q,y,F,"†","\\textdagger");f(g,y,F,"‡","\\ddag");f(Q,y,F,"‡","\\ddag");f(Q,y,F,"‡","\\textdaggerdbl");f(g,y,Ut,"⎱","\\rmoustache",!0);f(g,y,an,"⎰","\\lmoustache",!0);f(g,y,Ut,"⟯","\\rgroup",!0);f(g,y,an,"⟮","\\lgroup",!0);f(g,y,de,"∓","\\mp",!0);f(g,y,de,"⊖","\\ominus",!0);f(g,y,de,"⊎","\\uplus",!0);f(g,y,de,"⊓","\\sqcap",!0);f(g,y,de,"∗","\\ast");f(g,y,de,"⊔","\\sqcup",!0);f(g,y,de,"◯","\\bigcirc",!0);f(g,y,de,"∙","\\bullet",!0);f(g,y,de,"‡","\\ddagger");f(g,y,de,"≀","\\wr",!0);f(g,y,de,"⨿","\\amalg");f(g,y,de,"&","\\And");f(g,y,M,"⟵","\\longleftarrow",!0);f(g,y,M,"⇐","\\Leftarrow",!0);f(g,y,M,"⟸","\\Longleftarrow",!0);f(g,y,M,"⟶","\\longrightarrow",!0);f(g,y,M,"⇒","\\Rightarrow",!0);f(g,y,M,"⟹","\\Longrightarrow",!0);f(g,y,M,"↔","\\leftrightarrow",!0);f(g,y,M,"⟷","\\longleftrightarrow",!0);f(g,y,M,"⇔","\\Leftrightarrow",!0);f(g,y,M,"⟺","\\Longleftrightarrow",!0);f(g,y,M,"↦","\\mapsto",!0);f(g,y,M,"⟼","\\longmapsto",!0);f(g,y,M,"↗","\\nearrow",!0);f(g,y,M,"↩","\\hookleftarrow",!0);f(g,y,M,"↪","\\hookrightarrow",!0);f(g,y,M,"↘","\\searrow",!0);f(g,y,M,"↼","\\leftharpoonup",!0);f(g,y,M,"⇀","\\rightharpoonup",!0);f(g,y,M,"↙","\\swarrow",!0);f(g,y,M,"↽","\\leftharpoondown",!0);f(g,y,M,"⇁","\\rightharpoondown",!0);f(g,y,M,"↖","\\nwarrow",!0);f(g,y,M,"⇌","\\rightleftharpoons",!0);f(g,N,M,"≮","\\nless",!0);f(g,N,M,"","\\@nleqslant");f(g,N,M,"","\\@nleqq");f(g,N,M,"⪇","\\lneq",!0);f(g,N,M,"≨","\\lneqq",!0);f(g,N,M,"","\\@lvertneqq");f(g,N,M,"⋦","\\lnsim",!0);f(g,N,M,"⪉","\\lnapprox",!0);f(g,N,M,"⊀","\\nprec",!0);f(g,N,M,"⋠","\\npreceq",!0);f(g,N,M,"⋨","\\precnsim",!0);f(g,N,M,"⪹","\\precnapprox",!0);f(g,N,M,"≁","\\nsim",!0);f(g,N,M,"","\\@nshortmid");f(g,N,M,"∤","\\nmid",!0);f(g,N,M,"⊬","\\nvdash",!0);f(g,N,M,"⊭","\\nvDash",!0);f(g,N,M,"⋪","\\ntriangleleft");f(g,N,M,"⋬","\\ntrianglelefteq",!0);f(g,N,M,"⊊","\\subsetneq",!0);f(g,N,M,"","\\@varsubsetneq");f(g,N,M,"⫋","\\subsetneqq",!0);f(g,N,M,"","\\@varsubsetneqq");f(g,N,M,"≯","\\ngtr",!0);f(g,N,M,"","\\@ngeqslant");f(g,N,M,"","\\@ngeqq");f(g,N,M,"⪈","\\gneq",!0);f(g,N,M,"≩","\\gneqq",!0);f(g,N,M,"","\\@gvertneqq");f(g,N,M,"⋧","\\gnsim",!0);f(g,N,M,"⪊","\\gnapprox",!0);f(g,N,M,"⊁","\\nsucc",!0);f(g,N,M,"⋡","\\nsucceq",!0);f(g,N,M,"⋩","\\succnsim",!0);f(g,N,M,"⪺","\\succnapprox",!0);f(g,N,M,"≆","\\ncong",!0);f(g,N,M,"","\\@nshortparallel");f(g,N,M,"∦","\\nparallel",!0);f(g,N,M,"⊯","\\nVDash",!0);f(g,N,M,"⋫","\\ntriangleright");f(g,N,M,"⋭","\\ntrianglerighteq",!0);f(g,N,M,"","\\@nsupseteqq");f(g,N,M,"⊋","\\supsetneq",!0);f(g,N,M,"","\\@varsupsetneq");f(g,N,M,"⫌","\\supsetneqq",!0);f(g,N,M,"","\\@varsupsetneqq");f(g,N,M,"⊮","\\nVdash",!0);f(g,N,M,"⪵","\\precneqq",!0);f(g,N,M,"⪶","\\succneqq",!0);f(g,N,M,"","\\@nsubseteqq");f(g,N,de,"⊴","\\unlhd");f(g,N,de,"⊵","\\unrhd");f(g,N,M,"↚","\\nleftarrow",!0);f(g,N,M,"↛","\\nrightarrow",!0);f(g,N,M,"⇍","\\nLeftarrow",!0);f(g,N,M,"⇏","\\nRightarrow",!0);f(g,N,M,"↮","\\nleftrightarrow",!0);f(g,N,M,"⇎","\\nLeftrightarrow",!0);f(g,N,M,"△","\\vartriangle");f(g,N,F,"ℏ","\\hslash");f(g,N,F,"▽","\\triangledown");f(g,N,F,"◊","\\lozenge");f(g,N,F,"Ⓢ","\\circledS");f(g,N,F,"®","\\circledR");f(Q,N,F,"®","\\circledR");f(g,N,F,"∡","\\measuredangle",!0);f(g,N,F,"∄","\\nexists");f(g,N,F,"℧","\\mho");f(g,N,F,"Ⅎ","\\Finv",!0);f(g,N,F,"⅁","\\Game",!0);f(g,N,F,"‵","\\backprime");f(g,N,F,"▲","\\blacktriangle");f(g,N,F,"▼","\\blacktriangledown");f(g,N,F,"■","\\blacksquare");f(g,N,F,"⧫","\\blacklozenge");f(g,N,F,"★","\\bigstar");f(g,N,F,"∢","\\sphericalangle",!0);f(g,N,F,"∁","\\complement",!0);f(g,N,F,"ð","\\eth",!0);f(Q,y,F,"ð","ð");f(g,N,F,"╱","\\diagup");f(g,N,F,"╲","\\diagdown");f(g,N,F,"□","\\square");f(g,N,F,"□","\\Box");f(g,N,F,"◊","\\Diamond");f(g,N,F,"¥","\\yen",!0);f(Q,N,F,"¥","\\yen",!0);f(g,N,F,"✓","\\checkmark",!0);f(Q,N,F,"✓","\\checkmark");f(g,N,F,"ℶ","\\beth",!0);f(g,N,F,"ℸ","\\daleth",!0);f(g,N,F,"ℷ","\\gimel",!0);f(g,N,F,"ϝ","\\digamma",!0);f(g,N,F,"ϰ","\\varkappa");f(g,N,an,"┌","\\@ulcorner",!0);f(g,N,Ut,"┐","\\@urcorner",!0);f(g,N,an,"└","\\@llcorner",!0);f(g,N,Ut,"┘","\\@lrcorner",!0);f(g,N,M,"≦","\\leqq",!0);f(g,N,M,"⩽","\\leqslant",!0);f(g,N,M,"⪕","\\eqslantless",!0);f(g,N,M,"≲","\\lesssim",!0);f(g,N,M,"⪅","\\lessapprox",!0);f(g,N,M,"≊","\\approxeq",!0);f(g,N,de,"⋖","\\lessdot");f(g,N,M,"⋘","\\lll",!0);f(g,N,M,"≶","\\lessgtr",!0);f(g,N,M,"⋚","\\lesseqgtr",!0);f(g,N,M,"⪋","\\lesseqqgtr",!0);f(g,N,M,"≑","\\doteqdot");f(g,N,M,"≓","\\risingdotseq",!0);f(g,N,M,"≒","\\fallingdotseq",!0);f(g,N,M,"∽","\\backsim",!0);f(g,N,M,"⋍","\\backsimeq",!0);f(g,N,M,"⫅","\\subseteqq",!0);f(g,N,M,"⋐","\\Subset",!0);f(g,N,M,"⊏","\\sqsubset",!0);f(g,N,M,"≼","\\preccurlyeq",!0);f(g,N,M,"⋞","\\curlyeqprec",!0);f(g,N,M,"≾","\\precsim",!0);f(g,N,M,"⪷","\\precapprox",!0);f(g,N,M,"⊲","\\vartriangleleft");f(g,N,M,"⊴","\\trianglelefteq");f(g,N,M,"⊨","\\vDash",!0);f(g,N,M,"⊪","\\Vvdash",!0);f(g,N,M,"⌣","\\smallsmile");f(g,N,M,"⌢","\\smallfrown");f(g,N,M,"≏","\\bumpeq",!0);f(g,N,M,"≎","\\Bumpeq",!0);f(g,N,M,"≧","\\geqq",!0);f(g,N,M,"⩾","\\geqslant",!0);f(g,N,M,"⪖","\\eqslantgtr",!0);f(g,N,M,"≳","\\gtrsim",!0);f(g,N,M,"⪆","\\gtrapprox",!0);f(g,N,de,"⋗","\\gtrdot");f(g,N,M,"⋙","\\ggg",!0);f(g,N,M,"≷","\\gtrless",!0);f(g,N,M,"⋛","\\gtreqless",!0);f(g,N,M,"⪌","\\gtreqqless",!0);f(g,N,M,"≖","\\eqcirc",!0);f(g,N,M,"≗","\\circeq",!0);f(g,N,M,"≜","\\triangleq",!0);f(g,N,M,"∼","\\thicksim");f(g,N,M,"≈","\\thickapprox");f(g,N,M,"⫆","\\supseteqq",!0);f(g,N,M,"⋑","\\Supset",!0);f(g,N,M,"⊐","\\sqsupset",!0);f(g,N,M,"≽","\\succcurlyeq",!0);f(g,N,M,"⋟","\\curlyeqsucc",!0);f(g,N,M,"≿","\\succsim",!0);f(g,N,M,"⪸","\\succapprox",!0);f(g,N,M,"⊳","\\vartriangleright");f(g,N,M,"⊵","\\trianglerighteq");f(g,N,M,"⊩","\\Vdash",!0);f(g,N,M,"∣","\\shortmid");f(g,N,M,"∥","\\shortparallel");f(g,N,M,"≬","\\between",!0);f(g,N,M,"⋔","\\pitchfork",!0);f(g,N,M,"∝","\\varpropto");f(g,N,M,"◀","\\blacktriangleleft");f(g,N,M,"∴","\\therefore",!0);f(g,N,M,"∍","\\backepsilon");f(g,N,M,"▶","\\blacktriangleright");f(g,N,M,"∵","\\because",!0);f(g,N,M,"⋘","\\llless");f(g,N,M,"⋙","\\gggtr");f(g,N,de,"⊲","\\lhd");f(g,N,de,"⊳","\\rhd");f(g,N,M,"≂","\\eqsim",!0);f(g,y,M,"⋈","\\Join");f(g,N,M,"≑","\\Doteq",!0);f(g,N,de,"∔","\\dotplus",!0);f(g,N,de,"∖","\\smallsetminus");f(g,N,de,"⋒","\\Cap",!0);f(g,N,de,"⋓","\\Cup",!0);f(g,N,de,"⩞","\\doublebarwedge",!0);f(g,N,de,"⊟","\\boxminus",!0);f(g,N,de,"⊞","\\boxplus",!0);f(g,N,de,"⋇","\\divideontimes",!0);f(g,N,de,"⋉","\\ltimes",!0);f(g,N,de,"⋊","\\rtimes",!0);f(g,N,de,"⋋","\\leftthreetimes",!0);f(g,N,de,"⋌","\\rightthreetimes",!0);f(g,N,de,"⋏","\\curlywedge",!0);f(g,N,de,"⋎","\\curlyvee",!0);f(g,N,de,"⊝","\\circleddash",!0);f(g,N,de,"⊛","\\circledast",!0);f(g,N,de,"⋅","\\centerdot");f(g,N,de,"⊺","\\intercal",!0);f(g,N,de,"⋒","\\doublecap");f(g,N,de,"⋓","\\doublecup");f(g,N,de,"⊠","\\boxtimes",!0);f(g,N,M,"⇢","\\dashrightarrow",!0);f(g,N,M,"⇠","\\dashleftarrow",!0);f(g,N,M,"⇇","\\leftleftarrows",!0);f(g,N,M,"⇆","\\leftrightarrows",!0);f(g,N,M,"⇚","\\Lleftarrow",!0);f(g,N,M,"↞","\\twoheadleftarrow",!0);f(g,N,M,"↢","\\leftarrowtail",!0);f(g,N,M,"↫","\\looparrowleft",!0);f(g,N,M,"⇋","\\leftrightharpoons",!0);f(g,N,M,"↶","\\curvearrowleft",!0);f(g,N,M,"↺","\\circlearrowleft",!0);f(g,N,M,"↰","\\Lsh",!0);f(g,N,M,"⇈","\\upuparrows",!0);f(g,N,M,"↿","\\upharpoonleft",!0);f(g,N,M,"⇃","\\downharpoonleft",!0);f(g,y,M,"⊶","\\origof",!0);f(g,y,M,"⊷","\\imageof",!0);f(g,N,M,"⊸","\\multimap",!0);f(g,N,M,"↭","\\leftrightsquigarrow",!0);f(g,N,M,"⇉","\\rightrightarrows",!0);f(g,N,M,"⇄","\\rightleftarrows",!0);f(g,N,M,"↠","\\twoheadrightarrow",!0);f(g,N,M,"↣","\\rightarrowtail",!0);f(g,N,M,"↬","\\looparrowright",!0);f(g,N,M,"↷","\\curvearrowright",!0);f(g,N,M,"↻","\\circlearrowright",!0);f(g,N,M,"↱","\\Rsh",!0);f(g,N,M,"⇊","\\downdownarrows",!0);f(g,N,M,"↾","\\upharpoonright",!0);f(g,N,M,"⇂","\\downharpoonright",!0);f(g,N,M,"⇝","\\rightsquigarrow",!0);f(g,N,M,"⇝","\\leadsto");f(g,N,M,"⇛","\\Rrightarrow",!0);f(g,N,M,"↾","\\restriction");f(g,y,F,"‘","`");f(g,y,F,"$","\\$");f(Q,y,F,"$","\\$");f(Q,y,F,"$","\\textdollar");f(g,y,F,"%","\\%");f(Q,y,F,"%","\\%");f(g,y,F,"_","\\_");f(Q,y,F,"_","\\_");f(Q,y,F,"_","\\textunderscore");f(g,y,F,"∠","\\angle",!0);f(g,y,F,"∞","\\infty",!0);f(g,y,F,"′","\\prime");f(g,y,F,"△","\\triangle");f(g,y,F,"Γ","\\Gamma",!0);f(g,y,F,"Δ","\\Delta",!0);f(g,y,F,"Θ","\\Theta",!0);f(g,y,F,"Λ","\\Lambda",!0);f(g,y,F,"Ξ","\\Xi",!0);f(g,y,F,"Π","\\Pi",!0);f(g,y,F,"Σ","\\Sigma",!0);f(g,y,F,"Υ","\\Upsilon",!0);f(g,y,F,"Φ","\\Phi",!0);f(g,y,F,"Ψ","\\Psi",!0);f(g,y,F,"Ω","\\Omega",!0);f(g,y,F,"A","Α");f(g,y,F,"B","Β");f(g,y,F,"E","Ε");f(g,y,F,"Z","Ζ");f(g,y,F,"H","Η");f(g,y,F,"I","Ι");f(g,y,F,"K","Κ");f(g,y,F,"M","Μ");f(g,y,F,"N","Ν");f(g,y,F,"O","Ο");f(g,y,F,"P","Ρ");f(g,y,F,"T","Τ");f(g,y,F,"X","Χ");f(g,y,F,"¬","\\neg",!0);f(g,y,F,"¬","\\lnot");f(g,y,F,"⊤","\\top");f(g,y,F,"⊥","\\bot");f(g,y,F,"∅","\\emptyset");f(g,N,F,"∅","\\varnothing");f(g,y,ge,"α","\\alpha",!0);f(g,y,ge,"β","\\beta",!0);f(g,y,ge,"γ","\\gamma",!0);f(g,y,ge,"δ","\\delta",!0);f(g,y,ge,"ϵ","\\epsilon",!0);f(g,y,ge,"ζ","\\zeta",!0);f(g,y,ge,"η","\\eta",!0);f(g,y,ge,"θ","\\theta",!0);f(g,y,ge,"ι","\\iota",!0);f(g,y,ge,"κ","\\kappa",!0);f(g,y,ge,"λ","\\lambda",!0);f(g,y,ge,"μ","\\mu",!0);f(g,y,ge,"ν","\\nu",!0);f(g,y,ge,"ξ","\\xi",!0);f(g,y,ge,"ο","\\omicron",!0);f(g,y,ge,"π","\\pi",!0);f(g,y,ge,"ρ","\\rho",!0);f(g,y,ge,"σ","\\sigma",!0);f(g,y,ge,"τ","\\tau",!0);f(g,y,ge,"υ","\\upsilon",!0);f(g,y,ge,"ϕ","\\phi",!0);f(g,y,ge,"χ","\\chi",!0);f(g,y,ge,"ψ","\\psi",!0);f(g,y,ge,"ω","\\omega",!0);f(g,y,ge,"ε","\\varepsilon",!0);f(g,y,ge,"ϑ","\\vartheta",!0);f(g,y,ge,"ϖ","\\varpi",!0);f(g,y,ge,"ϱ","\\varrho",!0);f(g,y,ge,"ς","\\varsigma",!0);f(g,y,ge,"φ","\\varphi",!0);f(g,y,de,"∗","*",!0);f(g,y,de,"+","+");f(g,y,de,"−","-",!0);f(g,y,de,"⋅","\\cdot",!0);f(g,y,de,"∘","\\circ",!0);f(g,y,de,"÷","\\div",!0);f(g,y,de,"±","\\pm",!0);f(g,y,de,"×","\\times",!0);f(g,y,de,"∩","\\cap",!0);f(g,y,de,"∪","\\cup",!0);f(g,y,de,"∖","\\setminus",!0);f(g,y,de,"∧","\\land");f(g,y,de,"∨","\\lor");f(g,y,de,"∧","\\wedge",!0);f(g,y,de,"∨","\\vee",!0);f(g,y,F,"√","\\surd");f(g,y,an,"⟨","\\langle",!0);f(g,y,an,"∣","\\lvert");f(g,y,an,"∥","\\lVert");f(g,y,Ut,"?","?");f(g,y,Ut,"!","!");f(g,y,Ut,"⟩","\\rangle",!0);f(g,y,Ut,"∣","\\rvert");f(g,y,Ut,"∥","\\rVert");f(g,y,M,"=","=");f(g,y,M,":",":");f(g,y,M,"≈","\\approx",!0);f(g,y,M,"≅","\\cong",!0);f(g,y,M,"≥","\\ge");f(g,y,M,"≥","\\geq",!0);f(g,y,M,"←","\\gets");f(g,y,M,">","\\gt",!0);f(g,y,M,"∈","\\in",!0);f(g,y,M,"","\\@not");f(g,y,M,"⊂","\\subset",!0);f(g,y,M,"⊃","\\supset",!0);f(g,y,M,"⊆","\\subseteq",!0);f(g,y,M,"⊇","\\supseteq",!0);f(g,N,M,"⊈","\\nsubseteq",!0);f(g,N,M,"⊉","\\nsupseteq",!0);f(g,y,M,"⊨","\\models");f(g,y,M,"←","\\leftarrow",!0);f(g,y,M,"≤","\\le");f(g,y,M,"≤","\\leq",!0);f(g,y,M,"<","\\lt",!0);f(g,y,M,"→","\\rightarrow",!0);f(g,y,M,"→","\\to");f(g,N,M,"≱","\\ngeq",!0);f(g,N,M,"≰","\\nleq",!0);f(g,y,Jn," ","\\ ");f(g,y,Jn," ","\\space");f(g,y,Jn," ","\\nobreakspace");f(Q,y,Jn," ","\\ ");f(Q,y,Jn," "," ");f(Q,y,Jn," ","\\space");f(Q,y,Jn," ","\\nobreakspace");f(g,y,Jn,null,"\\nobreak");f(g,y,Jn,null,"\\allowbreak");f(g,y,Ws,",",",");f(g,y,Ws,";",";");f(g,N,de,"⊼","\\barwedge",!0);f(g,N,de,"⊻","\\veebar",!0);f(g,y,de,"⊙","\\odot",!0);f(g,y,de,"⊕","\\oplus",!0);f(g,y,de,"⊗","\\otimes",!0);f(g,y,F,"∂","\\partial",!0);f(g,y,de,"⊘","\\oslash",!0);f(g,N,de,"⊚","\\circledcirc",!0);f(g,N,de,"⊡","\\boxdot",!0);f(g,y,de,"△","\\bigtriangleup");f(g,y,de,"▽","\\bigtriangledown");f(g,y,de,"†","\\dagger");f(g,y,de,"⋄","\\diamond");f(g,y,de,"⋆","\\star");f(g,y,de,"◃","\\triangleleft");f(g,y,de,"▹","\\triangleright");f(g,y,an,"{","\\{");f(Q,y,F,"{","\\{");f(Q,y,F,"{","\\textbraceleft");f(g,y,Ut,"}","\\}");f(Q,y,F,"}","\\}");f(Q,y,F,"}","\\textbraceright");f(g,y,an,"{","\\lbrace");f(g,y,Ut,"}","\\rbrace");f(g,y,an,"[","\\lbrack",!0);f(Q,y,F,"[","\\lbrack",!0);f(g,y,Ut,"]","\\rbrack",!0);f(Q,y,F,"]","\\rbrack",!0);f(g,y,an,"(","\\lparen",!0);f(g,y,Ut,")","\\rparen",!0);f(Q,y,F,"<","\\textless",!0);f(Q,y,F,">","\\textgreater",!0);f(g,y,an,"⌊","\\lfloor",!0);f(g,y,Ut,"⌋","\\rfloor",!0);f(g,y,an,"⌈","\\lceil",!0);f(g,y,Ut,"⌉","\\rceil",!0);f(g,y,F,"\\","\\backslash");f(g,y,F,"∣","|");f(g,y,F,"∣","\\vert");f(Q,y,F,"|","\\textbar",!0);f(g,y,F,"∥","\\|");f(g,y,F,"∥","\\Vert");f(Q,y,F,"∥","\\textbardbl");f(Q,y,F,"~","\\textasciitilde");f(Q,y,F,"\\","\\textbackslash");f(Q,y,F,"^","\\textasciicircum");f(g,y,M,"↑","\\uparrow",!0);f(g,y,M,"⇑","\\Uparrow",!0);f(g,y,M,"↓","\\downarrow",!0);f(g,y,M,"⇓","\\Downarrow",!0);f(g,y,M,"↕","\\updownarrow",!0);f(g,y,M,"⇕","\\Updownarrow",!0);f(g,y,Et,"∐","\\coprod");f(g,y,Et,"⋁","\\bigvee");f(g,y,Et,"⋀","\\bigwedge");f(g,y,Et,"⨄","\\biguplus");f(g,y,Et,"⋂","\\bigcap");f(g,y,Et,"⋃","\\bigcup");f(g,y,Et,"∫","\\int");f(g,y,Et,"∫","\\intop");f(g,y,Et,"∬","\\iint");f(g,y,Et,"∭","\\iiint");f(g,y,Et,"∏","\\prod");f(g,y,Et,"∑","\\sum");f(g,y,Et,"⨂","\\bigotimes");f(g,y,Et,"⨁","\\bigoplus");f(g,y,Et,"⨀","\\bigodot");f(g,y,Et,"∮","\\oint");f(g,y,Et,"∯","\\oiint");f(g,y,Et,"∰","\\oiiint");f(g,y,Et,"⨆","\\bigsqcup");f(g,y,Et,"∫","\\smallint");f(Q,y,bi,"…","\\textellipsis");f(g,y,bi,"…","\\mathellipsis");f(Q,y,bi,"…","\\ldots",!0);f(g,y,bi,"…","\\ldots",!0);f(g,y,bi,"⋯","\\@cdots",!0);f(g,y,bi,"⋱","\\ddots",!0);f(g,y,F,"⋮","\\varvdots");f(Q,y,F,"⋮","\\varvdots");f(g,y,it,"ˊ","\\acute");f(g,y,it,"ˋ","\\grave");f(g,y,it,"¨","\\ddot");f(g,y,it,"~","\\tilde");f(g,y,it,"ˉ","\\bar");f(g,y,it,"˘","\\breve");f(g,y,it,"ˇ","\\check");f(g,y,it,"^","\\hat");f(g,y,it,"⃗","\\vec");f(g,y,it,"˙","\\dot");f(g,y,it,"˚","\\mathring");f(g,y,ge,"","\\@imath");f(g,y,ge,"","\\@jmath");f(g,y,F,"ı","ı");f(g,y,F,"ȷ","ȷ");f(Q,y,F,"ı","\\i",!0);f(Q,y,F,"ȷ","\\j",!0);f(Q,y,F,"ß","\\ss",!0);f(Q,y,F,"æ","\\ae",!0);f(Q,y,F,"œ","\\oe",!0);f(Q,y,F,"ø","\\o",!0);f(Q,y,F,"Æ","\\AE",!0);f(Q,y,F,"Œ","\\OE",!0);f(Q,y,F,"Ø","\\O",!0);f(Q,y,it,"ˊ","\\'");f(Q,y,it,"ˋ","\\`");f(Q,y,it,"ˆ","\\^");f(Q,y,it,"˜","\\~");f(Q,y,it,"ˉ","\\=");f(Q,y,it,"˘","\\u");f(Q,y,it,"˙","\\.");f(Q,y,it,"¸","\\c");f(Q,y,it,"˚","\\r");f(Q,y,it,"ˇ","\\v");f(Q,y,it,"¨",'\\"');f(Q,y,it,"˝","\\H");f(Q,y,it,"◯","\\textcircled");var e2={"--":!0,"---":!0,"``":!0,"''":!0};f(Q,y,F,"–","--",!0);f(Q,y,F,"–","\\textendash");f(Q,y,F,"—","---",!0);f(Q,y,F,"—","\\textemdash");f(Q,y,F,"‘","`",!0);f(Q,y,F,"‘","\\textquoteleft");f(Q,y,F,"’","'",!0);f(Q,y,F,"’","\\textquoteright");f(Q,y,F,"“","``",!0);f(Q,y,F,"“","\\textquotedblleft");f(Q,y,F,"”","''",!0);f(Q,y,F,"”","\\textquotedblright");f(g,y,F,"°","\\degree",!0);f(Q,y,F,"°","\\degree");f(Q,y,F,"°","\\textdegree",!0);f(g,y,F,"£","\\pounds");f(g,y,F,"£","\\mathsterling",!0);f(Q,y,F,"£","\\pounds");f(Q,y,F,"£","\\textsterling",!0);f(g,N,F,"✠","\\maltese");f(Q,N,F,"✠","\\maltese");var Ih='0123456789/@."';for(var Vo=0;Vo0)return bn(a,l,i,n,s.concat(c));if(u){var d,m;if(u==="boldsymbol"){var p=XC(a,i,n,s,r);d=p.fontName,m=[p.fontClass]}else o?(d=r2[u].fontName,m=[u]):(d=Ya(u,n.fontWeight,n.fontShape),m=[u,n.fontWeight,n.fontShape]);if(Ys(a,d,i).metrics)return bn(a,d,i,n,s.concat(m));if(e2.hasOwnProperty(a)&&d.slice(0,10)==="Typewriter"){for(var b=[],E=0;E{if(mr(e.classes)!==mr(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},JC=e=>{for(var t=0;tn&&(n=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},Yt=function(t,n,r,i){var a=new Aa(t,n,r,i);return m0(a),a},t2=(e,t,n,r)=>new Aa(e,t,n,r),ew=function(t,n,r){var i=Yt([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=se(i.height),i.maxFontSize=1,i},tw=function(t,n,r,i){var a=new f0(t,n,r,i);return m0(a),a},n2=function(t){var n=new Sa(t);return m0(n),n},nw=function(t,n){return t instanceof Sa?Yt([],[t],n):t},rw=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,s=1;s{var n=Yt(["mspace"],[],t),r=st(e,t);return n.style.marginRight=se(r),n},Ya=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},r2={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},i2={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},sw=function(t,n){var[r,i,a]=i2[t],s=new pr(r),o=new Kn([s],{width:se(i),height:se(a),style:"width:"+se(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),u=t2(["overlay"],[o],n);return u.height=a,u.style.height=se(a),u.style.width=se(i),u},z={fontMap:r2,makeSymbol:bn,mathsym:KC,makeSpan:Yt,makeSvgSpan:t2,makeLineSpan:ew,makeAnchor:tw,makeFragment:n2,wrapFragment:nw,makeVList:iw,makeOrd:QC,makeGlue:aw,staticSvg:sw,svgData:i2,tryCombineChars:JC},at={number:3,unit:"mu"},Ar={number:4,unit:"mu"},zn={number:5,unit:"mu"},ow={mord:{mop:at,mbin:Ar,mrel:zn,minner:at},mop:{mord:at,mop:at,mrel:zn,minner:at},mbin:{mord:Ar,mop:Ar,mopen:Ar,minner:Ar},mrel:{mord:zn,mop:zn,mopen:zn,minner:zn},mopen:{},mclose:{mop:at,mbin:Ar,mrel:zn,minner:at},mpunct:{mord:at,mop:at,mrel:zn,mopen:at,mclose:at,mpunct:at,minner:at},minner:{mord:at,mop:at,mbin:Ar,mrel:zn,mopen:at,mpunct:at,minner:at}},uw={mord:{mop:at},mop:{mord:at,mop:at},mbin:{},mrel:{},mopen:{},mclose:{mop:at},mpunct:{},minner:{mop:at}},a2={},vs={},Ss={};function ce(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},u=0;u{var C=E.classes[0],T=b.classes[0];C==="mbin"&&pe.contains(cw,T)?E.classes[0]="mord":T==="mbin"&&pe.contains(lw,C)&&(b.classes[0]="mord")},{node:d},m,p),_h(a,(b,E)=>{var C=Yu(E),T=Yu(b),S=C&&T?b.hasClass("mtight")?uw[C][T]:ow[C][T]:null;if(S)return z.makeGlue(S,l)},{node:d},m,p),a},_h=function e(t,n,r,i,a){i&&t.push(i);for(var s=0;sm=>{t.splice(d+1,0,m),s++})(s)}i&&t.pop()},s2=function(t){return t instanceof Sa||t instanceof f0||t instanceof Aa&&t.hasClass("enclosing")?t:null},fw=function e(t,n){var r=s2(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},Yu=function(t,n){return t?(n&&(t=fw(t,n)),hw[t.classes[0]]||null):null},da=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return Xn(n.concat(r))},Fe=function(t,n,r){if(!t)return Xn();if(vs[t.type]){var i=vs[t.type](t,n);if(r&&n.size!==r.size){i=Xn(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new te("Got group of unknown type: '"+t.type+"'")};function Ga(e,t){var n=Xn(["base"],e,t),r=Xn(["strut"]);return r.style.height=se(n.height+n.depth),n.depth&&(r.style.verticalAlign=se(-n.depth)),n.children.unshift(r),n}function Gu(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=xt(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],s=[],o=0;o0&&(a.push(Ga(s,t)),s=[]),a.push(r[o]));s.length>0&&a.push(Ga(s,t));var l;n?(l=Ga(xt(n,t,!0)),l.classes=["tag"],a.push(l)):i&&a.push(i);var c=Xn(["katex-html"],a);if(c.setAttribute("aria-hidden","true"),l){var d=l.children[0];d.style.height=se(c.height+c.depth),c.depth&&(d.style.verticalAlign=se(-c.depth))}return c}function o2(e){return new Sa(e)}class tn{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=mr(this.classes));for(var r=0;r0&&(t+=' class ="'+pe.escape(mr(this.classes))+'"'),t+=">";for(var r=0;r",t}toText(){return this.children.map(t=>t.toText()).join("")}}class kn{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return pe.escape(this.toText())}toText(){return this.text}}class mw{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",se(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var ee={MathNode:tn,TextNode:kn,SpaceNode:mw,newDocumentFragment:o2},mn=function(t,n,r){return et[n][t]&&et[n][t].replace&&t.charCodeAt(0)!==55349&&!(e2.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=et[n][t].replace),new ee.TextNode(t)},p0=function(t){return t.length===1?t[0]:new ee.MathNode("mrow",t)},g0=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathsfit")return"sans-serif-italic";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(pe.contains(["\\imath","\\jmath"],a))return null;et[i][a]&&et[i][a].replace&&(a=et[i][a].replace);var s=z.fontMap[r].fontName;return h0(a,s,i)?z.fontMap[r].variant:null};function Wo(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof kn&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof kn&&n.text===","}else return!1}var Xt=function(t,n,r){if(t.length===1){var i=Ge(t[0],n);return r&&i instanceof tn&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o=1&&(s.type==="mn"||Wo(s))){var l=u.children[0];l instanceof tn&&l.type==="mn"&&(l.children=[...s.children,...l.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var c=s.children[0];if(c instanceof kn&&c.text==="̸"&&(u.type==="mo"||u.type==="mi"||u.type==="mn")){var d=u.children[0];d instanceof kn&&d.text.length>0&&(d.text=d.text.slice(0,1)+"̸"+d.text.slice(1),a.pop())}}}a.push(u),s=u}return a},gr=function(t,n,r){return p0(Xt(t,n,r))},Ge=function(t,n){if(!t)return new ee.MathNode("mrow");if(Ss[t.type]){var r=Ss[t.type](t,n);return r}else throw new te("Got group of unknown type: '"+t.type+"'")};function Lh(e,t,n,r,i){var a=Xt(e,n),s;a.length===1&&a[0]instanceof tn&&pe.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new ee.MathNode("mrow",a);var o=new ee.MathNode("annotation",[new ee.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var u=new ee.MathNode("semantics",[s,o]),l=new ee.MathNode("math",[u]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&l.setAttribute("display","block");var c=i?"katex":"katex-mathml";return z.makeSpan([c],[l])}var u2=function(t){return new Un({style:t.displayMode?be.DISPLAY:be.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},l2=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=z.makeSpan(r,[t])}return t},pw=function(t,n,r){var i=u2(r),a;if(r.output==="mathml")return Lh(t,n,i,r.displayMode,!0);if(r.output==="html"){var s=Gu(t,i);a=z.makeSpan(["katex"],[s])}else{var o=Lh(t,n,i,r.displayMode,!1),u=Gu(t,i);a=z.makeSpan(["katex"],[o,u])}return l2(a,r)},gw=function(t,n,r){var i=u2(r),a=Gu(t,i),s=z.makeSpan(["katex"],[a]);return l2(s,r)},bw={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},yw=function(t){var n=new ee.MathNode("mo",[new ee.TextNode(bw[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},Tw={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Ew=function(t){return t.type==="ordgroup"?t.body.length:1},xw=function(t,n){function r(){var o=4e5,u=t.label.slice(1);if(pe.contains(["widehat","widecheck","widetilde","utilde"],u)){var l=t,c=Ew(l.base),d,m,p;if(c>5)u==="widehat"||u==="widecheck"?(d=420,o=2364,p=.42,m=u+"4"):(d=312,o=2340,p=.34,m="tilde4");else{var b=[1,1,2,2,3,3][c];u==="widehat"||u==="widecheck"?(o=[0,1062,2364,2364,2364][b],d=[0,239,300,360,420][b],p=[0,.24,.3,.3,.36,.42][b],m=u+b):(o=[0,600,1033,2339,2340][b],d=[0,260,286,306,312][b],p=[0,.26,.286,.3,.306,.34][b],m="tilde"+b)}var E=new pr(m),C=new Kn([E],{width:"100%",height:se(p),viewBox:"0 0 "+o+" "+d,preserveAspectRatio:"none"});return{span:z.makeSvgSpan([],[C],n),minWidth:0,height:p}}else{var T=[],S=Tw[u],[v,_,P]=S,k=P/1e3,V=v.length,U,q;if(V===1){var B=S[3];U=["hide-tail"],q=[B]}else if(V===2)U=["halfarrow-left","halfarrow-right"],q=["xMinYMin","xMaxYMin"];else if(V===3)U=["brace-left","brace-center","brace-right"],q=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+V+" children.");for(var K=0;K0&&(i.style.minWidth=se(a)),i},vw=function(t,n,r,i,a){var s,o=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(s=z.makeSpan(["stretchy",n],[],a),n==="fbox"){var u=a.color&&a.getColor();u&&(s.style.borderColor=u)}}else{var l=[];/^[bx]cancel$/.test(n)&&l.push(new $u({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&l.push(new $u({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new Kn(l,{width:"100%",height:se(o)});s=z.makeSvgSpan([],[c],a)}return s.height=o,s.style.height=se(o),s},Qn={encloseSpan:vw,mathMLnode:yw,svgSpan:xw};function we(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function b0(e){var t=Gs(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Gs(e){return e&&(e.type==="atom"||YC.hasOwnProperty(e.type))?e:null}var y0=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=we(e.base,"accent"),n=r.base,e.base=n,i=$C(Fe(e,t)),e.base=r):(r=we(e,"accent"),n=r.base);var a=Fe(n,t.havingCrampedStyle()),s=r.isShifty&&pe.isCharacterBox(n),o=0;if(s){var u=pe.getBaseElem(n),l=Fe(u,t.havingCrampedStyle());o=kh(l).skew}var c=r.label==="\\c",d=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),m;if(r.isStretchy)m=Qn.svgSpan(r,t),m=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:m,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+se(2*o)+")",marginLeft:se(2*o)}:void 0}]},t);else{var p,b;r.label==="\\vec"?(p=z.staticSvg("vec",t),b=z.svgData.vec[1]):(p=z.makeOrd({mode:r.mode,text:r.label},t,"textord"),p=kh(p),p.italic=0,b=p.width,c&&(d+=p.depth)),m=z.makeSpan(["accent-body"],[p]);var E=r.label==="\\textcircled";E&&(m.classes.push("accent-full"),d=a.height);var C=o;E||(C-=b/2),m.style.left=se(C),r.label==="\\textcircled"&&(m.style.top=".2em"),m=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-d},{type:"elem",elem:m}]},t)}var T=z.makeSpan(["mord","accent"],[m],t);return i?(i.children[0]=T,i.height=Math.max(T.height,i.height),i.classes[0]="mord",i):T},c2=(e,t)=>{var n=e.isStretchy?Qn.mathMLnode(e.label):new ee.MathNode("mo",[mn(e.label,e.mode)]),r=new ee.MathNode("mover",[Ge(e.base,t),n]);return r.setAttribute("accent","true"),r},Sw=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ce({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=As(t[0]),r=!Sw.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:y0,mathmlBuilder:c2});ce({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:y0,mathmlBuilder:c2});ce({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Fe(e.base,t),r=Qn.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=z.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return z.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=Qn.mathMLnode(e.label),r=new ee.MathNode("munder",[Ge(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Ka=e=>{var t=new ee.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ce({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=z.wrapFragment(Fe(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(r=t.havingStyle(n.sub()),s=z.wrapFragment(Fe(e.below,r,t),t),s.classes.push(a+"-arrow-pad"));var o=Qn.svgSpan(e,t),u=-t.fontMetrics().axisHeight+.5*o.height,l=-t.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(l-=i.depth);var c;if(s){var d=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;c=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u},{type:"elem",elem:s,shift:d}]},t)}else c=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u}]},t);return c.children[0].children[0].children[1].classes.push("svg-align"),z.makeSpan(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){var n=Qn.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=Ka(Ge(e.body,t));if(e.below){var a=Ka(Ge(e.below,t));r=new ee.MathNode("munderover",[n,a,i])}else r=new ee.MathNode("mover",[n,i])}else if(e.below){var s=Ka(Ge(e.below,t));r=new ee.MathNode("munder",[n,s])}else r=Ka(),r=new ee.MathNode("mover",[n,r]);return r}});var Aw=z.makeSpan;function d2(e,t){var n=xt(e.body,t,!0);return Aw([e.mclass],n,t)}function h2(e,t){var n,r=Xt(e.body,t);return e.mclass==="minner"?n=new ee.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new ee.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new ee.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}ce({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:mt(i),isCharacterBox:pe.isCharacterBox(i)}},htmlBuilder:d2,mathmlBuilder:h2});var Ks=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ce({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:Ks(t[0]),body:mt(t[1]),isCharacterBox:pe.isCharacterBox(t[1])}}});ce({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],s;r!=="\\stackrel"?s=Ks(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:mt(i)},u={type:"supsub",mode:a.mode,base:o,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:s,body:[u],isCharacterBox:pe.isCharacterBox(u)}},htmlBuilder:d2,mathmlBuilder:h2});ce({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:Ks(t[0]),body:mt(t[0])}},htmlBuilder(e,t){var n=xt(e.body,t,!0),r=z.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=Xt(e.body,t),r=new ee.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var Cw={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Ph=()=>({type:"styling",body:[],mode:"math",style:"display"}),Oh=e=>e.type==="textord"&&e.text==="@",ww=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function kw(e,t,n){var r=Cw[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},s=n.callFunction("\\Big",[a],[]),o=n.callFunction("\\\\cdright",[t[1]],[]),u={type:"ordgroup",mode:"math",body:[i,s,o]};return n.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var l={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[l],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Iw(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new te("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a-1))if("<>AV".indexOf(l)>-1)for(var d=0;d<2;d++){for(var m=!0,p=u+1;pAV=|." after @',s[u]);var b=kw(l,c,e),E={type:"styling",body:[b],mode:"math",style:"display"};r.push(E),o=Ph()}a%2===0?r.push(o):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var C=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:C,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}ce({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=z.wrapFragment(Fe(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=se(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new ee.MathNode("mrow",[Ge(e.label,t)]);return n=new ee.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new ee.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});ce({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=z.wrapFragment(Fe(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new ee.MathNode("mrow",[Ge(e.fragment,t)])}});ce({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=we(t[0],"ordgroup"),i=r.body,a="",s=0;s=1114111)throw new te("\\@char with invalid code point "+a);return u<=65535?l=String.fromCharCode(u):(u-=65536,l=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:n.mode,text:l}}});var f2=(e,t)=>{var n=xt(e.body,t.withColor(e.color),!1);return z.makeFragment(n)},m2=(e,t)=>{var n=Xt(e.body,t.withColor(e.color)),r=new ee.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};ce({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=we(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:mt(i)}},htmlBuilder:f2,mathmlBuilder:m2});ce({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=we(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:f2,mathmlBuilder:m2});ce({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&we(i,"size").value}},htmlBuilder(e,t){var n=z.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=se(st(e.size,t)))),n},mathmlBuilder(e,t){var n=new ee.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",se(st(e.size,t)))),n}});var Ku={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},p2=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new te("Expected a control sequence",e);return t},Nw=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},g2=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};ce({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(Ku[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=Ku[r.text]),we(t.parseFunction(),"internal");throw new te("Invalid token after macro prefix",r)}});ce({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new te("Expected a control sequence",r);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new te('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new te('Argument number "'+r.text+'" out of order');a++,o.push([])}else{if(r.text==="EOF")throw new te("Expected a macro definition");o[a].push(r.text)}var{tokens:u}=t.gullet.consumeArg();return s&&u.unshift(s),(n==="\\edef"||n==="\\xdef")&&(u=t.gullet.expandTokens(u),u.reverse()),t.gullet.macros.set(i,{tokens:u,numArgs:a,delimiters:o},n===Ku[n]),{type:"internal",mode:t.mode}}});ce({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=p2(t.gullet.popToken());t.gullet.consumeSpaces();var i=Nw(t);return g2(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});ce({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=p2(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return g2(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var Oi=function(t,n,r){var i=et.math[t]&&et.math[t].replace,a=h0(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},T0=function(t,n,r,i){var a=r.havingBaseStyle(n),s=z.makeSpan(i.concat(a.sizingClasses(r)),[t],r),o=a.sizeMultiplier/r.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},b2=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=se(a),t.height-=a,t.depth+=a},Mw=function(t,n,r,i,a,s){var o=z.makeSymbol(t,"Main-Regular",a,i),u=T0(o,n,i,s);return r&&b2(u,i,n),u},Rw=function(t,n,r,i){return z.makeSymbol(t,"Size"+n+"-Regular",r,i)},y2=function(t,n,r,i,a,s){var o=Rw(t,n,a,i),u=T0(z.makeSpan(["delimsizing","size"+n],[o],i),be.TEXT,i,s);return r&&b2(u,i,be.TEXT),u},Yo=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=z.makeSpan(["delimsizinginner",i],[z.makeSpan([],[z.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},Go=function(t,n,r){var i=wn["Size4-Regular"][t.charCodeAt(0)]?wn["Size4-Regular"][t.charCodeAt(0)][4]:wn["Size1-Regular"][t.charCodeAt(0)][4],a=new pr("inner",OC(t,Math.round(1e3*n))),s=new Kn([a],{width:se(i),height:se(n),style:"width:"+se(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),o=z.makeSvgSpan([],[s],r);return o.height=n,o.style.height=se(n),o.style.width=se(i),{type:"elem",elem:o}},Xu=.008,Xa={type:"kern",size:-1*Xu},Dw=["|","\\lvert","\\rvert","\\vert"],_w=["\\|","\\lVert","\\rVert","\\Vert"],T2=function(t,n,r,i,a,s){var o,u,l,c,d="",m=0;o=l=c=t,u=null;var p="Size1-Regular";t==="\\uparrow"?l=c="⏐":t==="\\Uparrow"?l=c="‖":t==="\\downarrow"?o=l="⏐":t==="\\Downarrow"?o=l="‖":t==="\\updownarrow"?(o="\\uparrow",l="⏐",c="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",l="‖",c="\\Downarrow"):pe.contains(Dw,t)?(l="∣",d="vert",m=333):pe.contains(_w,t)?(l="∥",d="doublevert",m=556):t==="["||t==="\\lbrack"?(o="⎡",l="⎢",c="⎣",p="Size4-Regular",d="lbrack",m=667):t==="]"||t==="\\rbrack"?(o="⎤",l="⎥",c="⎦",p="Size4-Regular",d="rbrack",m=667):t==="\\lfloor"||t==="⌊"?(l=o="⎢",c="⎣",p="Size4-Regular",d="lfloor",m=667):t==="\\lceil"||t==="⌈"?(o="⎡",l=c="⎢",p="Size4-Regular",d="lceil",m=667):t==="\\rfloor"||t==="⌋"?(l=o="⎥",c="⎦",p="Size4-Regular",d="rfloor",m=667):t==="\\rceil"||t==="⌉"?(o="⎤",l=c="⎥",p="Size4-Regular",d="rceil",m=667):t==="("||t==="\\lparen"?(o="⎛",l="⎜",c="⎝",p="Size4-Regular",d="lparen",m=875):t===")"||t==="\\rparen"?(o="⎞",l="⎟",c="⎠",p="Size4-Regular",d="rparen",m=875):t==="\\{"||t==="\\lbrace"?(o="⎧",u="⎨",c="⎩",l="⎪",p="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",u="⎬",c="⎭",l="⎪",p="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",c="⎩",l="⎪",p="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",c="⎭",l="⎪",p="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",c="⎭",l="⎪",p="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",c="⎩",l="⎪",p="Size4-Regular");var b=Oi(o,p,a),E=b.height+b.depth,C=Oi(l,p,a),T=C.height+C.depth,S=Oi(c,p,a),v=S.height+S.depth,_=0,P=1;if(u!==null){var k=Oi(u,p,a);_=k.height+k.depth,P=2}var V=E+v+_,U=Math.max(0,Math.ceil((n-V)/(P*T))),q=V+U*P*T,B=i.fontMetrics().axisHeight;r&&(B*=i.sizeMultiplier);var K=q/2-B,Y=[];if(d.length>0){var X=q-E-v,j=Math.round(q*1e3),W=BC(d,Math.round(X*1e3)),ne=new pr(d,W),le=(m/1e3).toFixed(3)+"em",fe=(j/1e3).toFixed(3)+"em",oe=new Kn([ne],{width:le,height:fe,viewBox:"0 0 "+m+" "+j}),I=z.makeSvgSpan([],[oe],i);I.height=j/1e3,I.style.width=le,I.style.height=fe,Y.push({type:"elem",elem:I})}else{if(Y.push(Yo(c,p,a)),Y.push(Xa),u===null){var De=q-E-v+2*Xu;Y.push(Go(l,De,i))}else{var Ae=(q-E-v-_)/2+2*Xu;Y.push(Go(l,Ae,i)),Y.push(Xa),Y.push(Yo(u,p,a)),Y.push(Xa),Y.push(Go(l,Ae,i))}Y.push(Xa),Y.push(Yo(o,p,a))}var D=i.havingBaseStyle(be.TEXT),_e=z.makeVList({positionType:"bottom",positionData:K,children:Y},D);return T0(z.makeSpan(["delimsizing","mult"],[_e],D),be.TEXT,i,s)},Ko=80,Xo=.08,Qo=function(t,n,r,i,a){var s=PC(t,i,r),o=new pr(t,s),u=new Kn([o],{width:"400em",height:se(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return z.makeSvgSpan(["hide-tail"],[u],a)},Lw=function(t,n){var r=n.havingBaseSizing(),i=S2("\\surd",t*r.sizeMultiplier,v2,r),a=r.sizeMultiplier,s=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),o,u=0,l=0,c=0,d;return i.type==="small"?(c=1e3+1e3*s+Ko,t<1?a=1:t<1.4&&(a=.7),u=(1+s+Xo)/a,l=(1+s)/a,o=Qo("sqrtMain",u,c,s,n),o.style.minWidth="0.853em",d=.833/a):i.type==="large"?(c=(1e3+Ko)*Yi[i.size],l=(Yi[i.size]+s)/a,u=(Yi[i.size]+s+Xo)/a,o=Qo("sqrtSize"+i.size,u,c,s,n),o.style.minWidth="1.02em",d=1/a):(u=t+s+Xo,l=t+s,c=Math.floor(1e3*t+s)+Ko,o=Qo("sqrtTall",u,c,s,n),o.style.minWidth="0.742em",d=1.056),o.height=l,o.style.height=se(u),{span:o,advanceWidth:d,ruleWidth:(n.fontMetrics().sqrtRuleThickness+s)*a}},E2=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Pw=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],x2=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Yi=[0,1.2,1.8,2.4,3],Ow=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),pe.contains(E2,t)||pe.contains(x2,t))return y2(t,n,!1,r,i,a);if(pe.contains(Pw,t))return T2(t,Yi[n],!1,r,i,a);throw new te("Illegal delimiter: '"+t+"'")},Bw=[{type:"small",style:be.SCRIPTSCRIPT},{type:"small",style:be.SCRIPT},{type:"small",style:be.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Fw=[{type:"small",style:be.SCRIPTSCRIPT},{type:"small",style:be.SCRIPT},{type:"small",style:be.TEXT},{type:"stack"}],v2=[{type:"small",style:be.SCRIPTSCRIPT},{type:"small",style:be.SCRIPT},{type:"small",style:be.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Hw=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},S2=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),s=a;sn)return r[s]}return r[r.length-1]},A2=function(t,n,r,i,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;pe.contains(x2,t)?o=Bw:pe.contains(E2,t)?o=v2:o=Fw;var u=S2(t,n,o,i);return u.type==="small"?Mw(t,u.style,r,i,a,s):u.type==="large"?y2(t,u.size,r,i,a,s):T2(t,n,r,i,a,s)},zw=function(t,n,r,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,u=901,l=5/i.fontMetrics().ptPerEm,c=Math.max(n-o,r+o),d=Math.max(c/500*u,2*c-l);return A2(t,d,!0,i,a,s)},$n={sqrtImage:Lw,sizedDelim:Ow,sizeToMaxHeight:Yi,customSizedDelim:A2,leftRightDelim:zw},Bh={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Uw=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Xs(e,t){var n=Gs(e);if(n&&pe.contains(Uw,n.text))return n;throw n?new te("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new te("Invalid delimiter type '"+e.type+"'",e)}ce({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=Xs(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Bh[e.funcName].size,mclass:Bh[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?z.makeSpan([e.mclass]):$n.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(mn(e.delim,e.mode));var n=new ee.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=se($n.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function Fh(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ce({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new te("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Xs(t[0],e).text,color:n}}});ce({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Xs(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=we(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Fh(e);for(var n=xt(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,s=0;s{Fh(e);var n=Xt(e.body,t);if(e.left!=="."){var r=new ee.MathNode("mo",[mn(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new ee.MathNode("mo",[mn(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return p0(n)}});ce({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Xs(t[0],e);if(!e.parser.leftrightDepth)throw new te("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=da(t,[]);else{n=$n.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?mn("|","text"):mn(e.delim,e.mode),r=new ee.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var E0=(e,t)=>{var n=z.wrapFragment(Fe(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,s=0,o=pe.isCharacterBox(e.body);if(r==="sout")a=z.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var u=st({number:.6,unit:"pt"},t),l=st({number:.35,unit:"ex"},t),c=t.havingBaseSizing();i=i/c.sizeMultiplier;var d=n.height+n.depth+u+l;n.style.paddingLeft=se(d/2+u);var m=Math.floor(1e3*d*i),p=_C(m),b=new Kn([new pr("phase",p)],{width:"400em",height:se(m/1e3),viewBox:"0 0 400000 "+m,preserveAspectRatio:"xMinYMin slice"});a=z.makeSvgSpan(["hide-tail"],[b],t),a.style.height=se(d),s=n.depth+u+l}else{/cancel/.test(r)?o||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var E=0,C=0,T=0;/box/.test(r)?(T=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),E=t.fontMetrics().fboxsep+(r==="colorbox"?0:T),C=E):r==="angl"?(T=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),E=4*T,C=Math.max(0,.25-n.depth)):(E=o?.2:0,C=E),a=Qn.encloseSpan(n,r,E,C,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=se(T)):r==="angl"&&T!==.049&&(a.style.borderTopWidth=se(T),a.style.borderRightWidth=se(T)),s=n.depth+C,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var S;if(e.backgroundColor)S=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:n,shift:0}]},t);else{var v=/cancel|phase/.test(r)?["svg-align"]:[];S=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:v}]},t)}return/cancel/.test(r)&&(S.height=n.height,S.depth=n.depth),/cancel/.test(r)&&!o?z.makeSpan(["mord","cancel-lap"],[S],t):z.makeSpan(["mord"],[S],t)},x0=(e,t)=>{var n=0,r=new ee.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ge(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};ce({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=we(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:E0,mathmlBuilder:x0});ce({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=we(t[0],"color-token").color,s=we(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:E0,mathmlBuilder:x0});ce({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});ce({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:E0,mathmlBuilder:x0});ce({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var C2={};function Bn(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},u=0;u{var t=e.parser.settings;if(!t.displayMode)throw new te("{"+e.envName+"} can be used only in display mode.")};function v0(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function Tr(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:u,singleRow:l,emptySingleRow:c,maxNumCols:d,leqno:m}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var p=e.gullet.expandMacroAsText("\\arraystretch");if(p==null)s=1;else if(s=parseFloat(p),!s||s<0)throw new te("Invalid \\arraystretch: "+p)}e.gullet.beginGroup();var b=[],E=[b],C=[],T=[],S=u!=null?[]:void 0;function v(){u&&e.gullet.macros.set("\\@eqnsw","1",!0)}function _(){S&&(e.gullet.macros.get("\\df@tag")?(S.push(e.subparse([new hn("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):S.push(!!u&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(v(),T.push(Hh(e));;){var P=e.parseExpression(!1,l?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),P={type:"ordgroup",mode:e.mode,body:P},n&&(P={type:"styling",mode:e.mode,style:n,body:[P]}),b.push(P);var k=e.fetch().text;if(k==="&"){if(d&&b.length===d){if(l||o)throw new te("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(k==="\\end"){_(),b.length===1&&P.type==="styling"&&P.body[0].body.length===0&&(E.length>1||!c)&&E.pop(),T.length0&&(v+=.25),l.push({pos:v,isDashed:wt[Vt]})}for(_(s[0]),r=0;r0&&(K+=S,Vwt))for(r=0;r=o)){var qe=void 0;(i>0||t.hskipBeforeAndAfter)&&(qe=pe.deflt(Ae.pregap,m),qe!==0&&(W=z.makeSpan(["arraycolsep"],[]),W.style.width=se(qe),j.push(W)));var $e=[];for(r=0;r0){for(var ze=z.makeLineSpan("hline",n,c),dt=z.makeLineSpan("hdashline",n,c),Oe=[{type:"elem",elem:u,shift:0}];l.length>0;){var Xe=l.pop(),Pt=Xe.pos-Y;Xe.isDashed?Oe.push({type:"elem",elem:dt,shift:Pt}):Oe.push({type:"elem",elem:ze,shift:Pt})}u=z.makeVList({positionType:"individualShift",children:Oe},n)}if(le.length===0)return z.makeSpan(["mord"],[u],n);var Ot=z.makeVList({positionType:"individualShift",children:le},n);return Ot=z.makeSpan(["tag"],[Ot],n),z.makeFragment([u,Ot])},Vw={c:"center ",l:"left ",r:"right "},Hn=function(t,n){for(var r=[],i=new ee.MathNode("mtd",[],["mtr-glue"]),a=new ee.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var b=t.cols,E="",C=!1,T=0,S=b.length;b[0].type==="separator"&&(m+="top ",T=1),b[b.length-1].type==="separator"&&(m+="bottom ",S-=1);for(var v=T;v0?"left ":"",m+=U[U.length-1].length>0?"right ":"";for(var q=1;q-1?"alignat":"align",a=t.envName==="split",s=Tr(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:v0(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o,u=0,l={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var c="",d=0;d0&&p&&(C=1),r[b]={type:"align",align:E,pregap:C,postgap:0}}return s.colSeparationType=p?"align":"alignat",s};Bn({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Gs(t[0]),r=n?[t[0]]:we(t[0],"ordgroup").body,i=r.map(function(s){var o=b0(s),u=o.text;if("lcr".indexOf(u)!==-1)return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new te("Unknown column alignment: "+u,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Tr(e.parser,a,S0(e.envName))},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new te("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=Tr(e.parser,r,S0(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Tr(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Gs(t[0]),r=n?[t[0]]:we(t[0],"ordgroup").body,i=r.map(function(s){var o=b0(s),u=o.text;if("lc".indexOf(u)!==-1)return{type:"align",align:u};throw new te("Unknown column alignment: "+u,s)});if(i.length>1)throw new te("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=Tr(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new te("{subarray} can contain only one column");return a},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Tr(e.parser,t,S0(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:k2,htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){pe.contains(["gather","gather*"],e.envName)&&Qs(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:v0(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Tr(e.parser,t,"display")},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:k2,htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Qs(e);var t={autoTag:v0(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Tr(e.parser,t,"display")},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Qs(e),Iw(e.parser)},htmlBuilder:Fn,mathmlBuilder:Hn});x("\\nonumber","\\gdef\\@eqnsw{0}");x("\\notag","\\nonumber");ce({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new te(e.funcName+" valid only within array environment")}});var zh=C2;ce({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new te("Invalid environment name",i);for(var a="",s=0;s{var n=e.font,r=t.withFont(n);return Fe(e.body,r)},N2=(e,t)=>{var n=e.font,r=t.withFont(n);return Ge(e.body,r)},Uh={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ce({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=As(t[0]),a=r;return a in Uh&&(a=Uh[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:I2,mathmlBuilder:N2});ce({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=pe.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:Ks(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});ce({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,s=n.parseExpression(!0,i),o="math"+r.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:n.mode,body:s}}},htmlBuilder:I2,mathmlBuilder:N2});var M2=(e,t)=>{var n=t;return e==="display"?n=n.id>=be.SCRIPT.id?n.text():be.DISPLAY:e==="text"&&n.size===be.DISPLAY.size?n=be.TEXT:e==="script"?n=be.SCRIPT:e==="scriptscript"&&(n=be.SCRIPTSCRIPT),n},A0=(e,t)=>{var n=M2(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var s=Fe(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,u=3.5/t.fontMetrics().ptPerEm;s.height=s.height0?b=3*m:b=7*m,E=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,b=m):(p=t.fontMetrics().num3,b=3*m),E=t.fontMetrics().denom2);var C;if(c){var S=t.fontMetrics().axisHeight;p-s.depth-(S+.5*d){var n=new ee.MathNode("mfrac",[Ge(e.numer,t),Ge(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=st(e.barSize,t);n.setAttribute("linethickness",se(r))}var i=M2(e.size,t.style);if(i.size!==t.style.size){n=new ee.MathNode("mstyle",[n]);var a=i.size===be.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new ee.MathNode("mo",[new ee.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(n),e.rightDelim!=null){var u=new ee.MathNode("mo",[new ee.TextNode(e.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),s.push(u)}return p0(s)}return n};ce({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],s,o=null,u=null,l="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",u=")";break;case"\\\\bracefrac":s=!1,o="\\{",u="\\}";break;case"\\\\brackfrac":s=!1,o="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":l="display";break;case"\\tfrac":case"\\tbinom":l="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:o,rightDelim:u,size:l,barSize:null}},htmlBuilder:A0,mathmlBuilder:C0});ce({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});ce({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var Vh=["display","text","script","scriptscript"],jh=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};ce({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=As(t[0]),s=a.type==="atom"&&a.family==="open"?jh(a.text):null,o=As(t[1]),u=o.type==="atom"&&o.family==="close"?jh(o.text):null,l=we(t[2],"size"),c,d=null;l.isBlank?c=!0:(d=l.value,c=d.number>0);var m="auto",p=t[3];if(p.type==="ordgroup"){if(p.body.length>0){var b=we(p.body[0],"textord");m=Vh[Number(b.text)]}}else p=we(p,"textord"),m=Vh[Number(p.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:c,barSize:d,leftDelim:s,rightDelim:u,size:m}},htmlBuilder:A0,mathmlBuilder:C0});ce({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:we(t[0],"size").value,token:i}}});ce({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=yC(we(t[1],"infix").size),s=t[2],o=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:A0,mathmlBuilder:C0});var R2=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?Fe(e.sup,t.havingStyle(n.sup()),t):Fe(e.sub,t.havingStyle(n.sub()),t),i=we(e.base,"horizBrace")):i=we(e,"horizBrace");var a=Fe(i.base,t.havingBaseStyle(be.DISPLAY)),s=Qn.svgSpan(i,t),o;if(i.isOver?(o=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=z.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),r){var u=z.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);i.isOver?o=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:r}]},t):o=z.makeVList({positionType:"bottom",positionData:u.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:u}]},t)}return z.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)},jw=(e,t)=>{var n=Qn.mathMLnode(e.label);return new ee.MathNode(e.isOver?"mover":"munder",[Ge(e.base,t),n])};ce({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:R2,mathmlBuilder:jw});ce({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=we(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:mt(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=xt(e.body,t,!1);return z.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=gr(e.body,t);return n instanceof tn||(n=new tn("mrow",[n])),n.setAttribute("href",e.href),n}});ce({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=we(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=we(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,u={};switch(r){case"\\htmlClass":u.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":u.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":u.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var l=a.split(","),c=0;c{var n=xt(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=z.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>gr(e.body,t)});ce({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:mt(t[0]),mathml:mt(t[1])}},htmlBuilder:(e,t)=>{var n=xt(e.html,t,!1);return z.makeFragment(n)},mathmlBuilder:(e,t)=>gr(e.mathml,t)});var Zo=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new te("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!Xp(r))throw new te("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};ce({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(n[0])for(var u=we(n[0],"raw").string,l=u.split(","),c=0;c{var n=st(e.height,t),r=0;e.totalheight.number>0&&(r=st(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=st(e.width,t));var a={height:se(n+r)};i>0&&(a.width=se(i)),r>0&&(a.verticalAlign=se(-r));var s=new jC(e.src,e.alt,a);return s.height=n,s.depth=r,s},mathmlBuilder:(e,t)=>{var n=new ee.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=st(e.height,t),i=0;if(e.totalheight.number>0&&(i=st(e.totalheight,t)-r,n.setAttribute("valign",se(-i))),n.setAttribute("height",se(r+i)),e.width.number>0){var a=st(e.width,t);n.setAttribute("width",se(a))}return n.setAttribute("src",e.src),n}});ce({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=we(t[0],"size");if(n.settings.strict){var a=r[1]==="m",s=i.value.unit==="mu";a?(s||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):s&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return z.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=st(e.dimension,t);return new ee.SpaceNode(n)}});ce({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=z.makeSpan([],[Fe(e.body,t)]),n=z.makeSpan(["inner"],[n],t)):n=z.makeSpan(["inner"],[Fe(e.body,t)]);var r=z.makeSpan(["fix"],[]),i=z.makeSpan([e.alignment],[n,r],t),a=z.makeSpan(["strut"]);return a.style.height=se(i.height+i.depth),i.depth&&(a.style.verticalAlign=se(-i.depth)),i.children.unshift(a),i=z.makeSpan(["thinbox"],[i],t),z.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new ee.MathNode("mpadded",[Ge(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});ce({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",s=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:s}}});ce({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new te("Mismatched "+e.funcName)}});var qh=(e,t)=>{switch(t.style.size){case be.DISPLAY.size:return e.display;case be.TEXT.size:return e.text;case be.SCRIPT.size:return e.script;case be.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ce({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:mt(t[0]),text:mt(t[1]),script:mt(t[2]),scriptscript:mt(t[3])}},htmlBuilder:(e,t)=>{var n=qh(e,t),r=xt(n,t,!1);return z.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=qh(e,t);return gr(n,t)}});var D2=(e,t,n,r,i,a,s)=>{e=z.makeSpan([],[e]);var o=n&&pe.isCharacterBox(n),u,l;if(t){var c=Fe(t,r.havingStyle(i.sup()),r);l={elem:c,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-c.depth)}}if(n){var d=Fe(n,r.havingStyle(i.sub()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var m;if(l&&u){var p=r.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+e.depth+s;m=z.makeVList({positionType:"bottom",positionData:p,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:se(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:se(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(u){var b=e.height-s;m=z.makeVList({positionType:"top",positionData:b,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:se(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e}]},r)}else if(l){var E=e.depth+s;m=z.makeVList({positionType:"bottom",positionData:E,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:se(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var C=[m];if(u&&a!==0&&!o){var T=z.makeSpan(["mspace"],[],r);T.style.marginRight=se(a),C.unshift(T)}return z.makeSpan(["mop","op-limits"],C,r)},_2=["\\smallint"],yi=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=we(e.base,"op"),i=!0):a=we(e,"op");var s=t.style,o=!1;s.size===be.DISPLAY.size&&a.symbol&&!pe.contains(_2,a.name)&&(o=!0);var u;if(a.symbol){var l=o?"Size2-Regular":"Size1-Regular",c="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(c=a.name.slice(1),a.name=c==="oiint"?"\\iint":"\\iiint"),u=z.makeSymbol(a.name,l,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),c.length>0){var d=u.italic,m=z.staticSvg(c+"Size"+(o?"2":"1"),t);u=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:m,shift:o?.08:0}]},t),a.name="\\"+c,u.classes.unshift("mop"),u.italic=d}}else if(a.body){var p=xt(a.body,t,!0);p.length===1&&p[0]instanceof fn?(u=p[0],u.classes[0]="mop"):u=z.makeSpan(["mop"],p,t)}else{for(var b=[],E=1;E{var n;if(e.symbol)n=new tn("mo",[mn(e.name,e.mode)]),pe.contains(_2,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new tn("mo",Xt(e.body,t));else{n=new tn("mi",[new kn(e.name.slice(1))]);var r=new tn("mo",[mn("⁡","text")]);e.parentIsSupSub?n=new tn("mrow",[n,r]):n=o2([n,r])}return n},qw={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ce({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=qw[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:yi,mathmlBuilder:Ca});ce({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:mt(r)}},htmlBuilder:yi,mathmlBuilder:Ca});var $w={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ce({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:yi,mathmlBuilder:Ca});ce({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:yi,mathmlBuilder:Ca});ce({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=$w[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:yi,mathmlBuilder:Ca});var L2=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=we(e.base,"operatorname"),i=!0):a=we(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(d=>{var m=d.text;return typeof m=="string"?{type:"textord",mode:d.mode,text:m}:d}),u=xt(o,t.withFont("mathrm"),!0),l=0;l{for(var n=Xt(e.body,t.withFont("mathrm")),r=!0,i=0;ic.toText()).join("");n=[new ee.TextNode(o)]}var u=new ee.MathNode("mi",n);u.setAttribute("mathvariant","normal");var l=new ee.MathNode("mo",[mn("⁡","text")]);return e.parentIsSupSub?new ee.MathNode("mrow",[u,l]):ee.newDocumentFragment([u,l])};ce({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:mt(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:L2,mathmlBuilder:Ww});x("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Fr({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?z.makeFragment(xt(e.body,t,!1)):z.makeSpan(["mord"],xt(e.body,t,!0),t)},mathmlBuilder(e,t){return gr(e.body,t,!0)}});ce({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=Fe(e.body,t.havingCrampedStyle()),r=z.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return z.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new ee.MathNode("mo",[new ee.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new ee.MathNode("mover",[Ge(e.body,t),n]);return r.setAttribute("accent","true"),r}});ce({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:mt(r)}},htmlBuilder:(e,t)=>{var n=xt(e.body,t.withPhantom(),!1);return z.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=Xt(e.body,t);return new ee.MathNode("mphantom",n)}});ce({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=z.makeSpan([],[Fe(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=Xt(mt(e.body),t),r=new ee.MathNode("mphantom",n),i=new ee.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});ce({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=z.makeSpan(["inner"],[Fe(e.body,t.withPhantom())]),r=z.makeSpan(["fix"],[]);return z.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=Xt(mt(e.body),t),r=new ee.MathNode("mphantom",n),i=new ee.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});ce({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=we(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Fe(e.body,t),r=st(e.dy,t);return z.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new ee.MathNode("mpadded",[Ge(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});ce({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ce({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=we(t[0],"size"),s=we(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&we(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var n=z.makeSpan(["mord","rule"],[],t),r=st(e.width,t),i=st(e.height,t),a=e.shift?st(e.shift,t):0;return n.style.borderRightWidth=se(r),n.style.borderTopWidth=se(i),n.style.bottom=se(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=st(e.width,t),r=st(e.height,t),i=e.shift?st(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new ee.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",se(n)),s.setAttribute("height",se(r));var o=new ee.MathNode("mpadded",[s]);return i>=0?o.setAttribute("height",se(i)):(o.setAttribute("height",se(i)),o.setAttribute("depth",se(-i))),o.setAttribute("voffset",se(i)),o}});function P2(e,t,n){for(var r=xt(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return P2(e.body,n,t)};ce({type:"sizing",names:$h,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:$h.indexOf(r)+1,body:a}},htmlBuilder:Yw,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=Xt(e.body,n),i=new ee.MathNode("mstyle",r);return i.setAttribute("mathsize",se(n.sizeMultiplier)),i}});ce({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,s=n[0]&&we(n[0],"ordgroup");if(s)for(var o="",u=0;u{var n=z.makeSpan([],[Fe(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new ee.MathNode("mpadded",[Ge(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});ce({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Fe(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=z.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+s&&(s=(s+d-n.height-n.depth)/2);var m=u.height-n.height-s-l;n.style.paddingLeft=se(c);var p=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+m)},{type:"elem",elem:u},{type:"kern",size:l}]},t);if(e.index){var b=t.havingStyle(be.SCRIPTSCRIPT),E=Fe(e.index,b,t),C=.6*(p.height-p.depth),T=z.makeVList({positionType:"shift",positionData:-C,children:[{type:"elem",elem:E}]},t),S=z.makeSpan(["root"],[T]);return z.makeSpan(["mord","sqrt"],[S,p],t)}else return z.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new ee.MathNode("mroot",[Ge(n,t),Ge(r,t)]):new ee.MathNode("msqrt",[Ge(n,t)])}});var Wh={display:be.DISPLAY,text:be.TEXT,script:be.SCRIPT,scriptscript:be.SCRIPTSCRIPT};ce({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),s=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var n=Wh[e.style],r=t.havingStyle(n).withFont("");return P2(e.body,r,t)},mathmlBuilder(e,t){var n=Wh[e.style],r=t.havingStyle(n),i=Xt(e.body,r),a=new ee.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var Gw=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===be.DISPLAY.size||r.alwaysHandleSupSub);return i?yi:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===be.DISPLAY.size||r.limits);return a?L2:null}else{if(r.type==="accent")return pe.isCharacterBox(r.base)?y0:null;if(r.type==="horizBrace"){var s=!t.sub;return s===r.isOver?R2:null}else return null}else return null};Fr({type:"supsub",htmlBuilder(e,t){var n=Gw(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,s=Fe(r,t),o,u,l=t.fontMetrics(),c=0,d=0,m=r&&pe.isCharacterBox(r);if(i){var p=t.havingStyle(t.style.sup());o=Fe(i,p,t),m||(c=s.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var b=t.havingStyle(t.style.sub());u=Fe(a,b,t),m||(d=s.depth+b.fontMetrics().subDrop*b.sizeMultiplier/t.sizeMultiplier)}var E;t.style===be.DISPLAY?E=l.sup1:t.style.cramped?E=l.sup3:E=l.sup2;var C=t.sizeMultiplier,T=se(.5/l.ptPerEm/C),S=null;if(u){var v=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof fn||v)&&(S=se(-s.italic))}var _;if(o&&u){c=Math.max(c,E,o.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var P=l.defaultRuleThickness,k=4*P;if(c-o.depth-(u.height-d)0&&(c+=V,d-=V)}var U=[{type:"elem",elem:u,shift:d,marginRight:T,marginLeft:S},{type:"elem",elem:o,shift:-c,marginRight:T}];_=z.makeVList({positionType:"individualShift",children:U},t)}else if(u){d=Math.max(d,l.sub1,u.height-.8*l.xHeight);var q=[{type:"elem",elem:u,marginLeft:S,marginRight:T}];_=z.makeVList({positionType:"shift",positionData:d,children:q},t)}else if(o)c=Math.max(c,E,o.depth+.25*l.xHeight),_=z.makeVList({positionType:"shift",positionData:-c,children:[{type:"elem",elem:o,marginRight:T}]},t);else throw new Error("supsub must have either sup or sub.");var B=Yu(s,"right")||"mord";return z.makeSpan([B],[s,z.makeSpan(["msupsub"],[_])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[Ge(e.base,t)];e.sub&&a.push(Ge(e.sub,t)),e.sup&&a.push(Ge(e.sup,t));var s;if(n)s=r?"mover":"munder";else if(e.sub)if(e.sup){var l=e.base;l&&l.type==="op"&&l.limits&&t.style===be.DISPLAY||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(t.style===be.DISPLAY||l.limits)?s="munderover":s="msubsup"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(t.style===be.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||t.style===be.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===be.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===be.DISPLAY)?s="mover":s="msup"}return new ee.MathNode(s,a)}});Fr({type:"atom",htmlBuilder(e,t){return z.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new ee.MathNode("mo",[mn(e.text,e.mode)]);if(e.family==="bin"){var r=g0(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var O2={mi:"italic",mn:"normal",mtext:"normal"};Fr({type:"mathord",htmlBuilder(e,t){return z.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new ee.MathNode("mi",[mn(e.text,e.mode,t)]),r=g0(e,t)||"italic";return r!==O2[n.type]&&n.setAttribute("mathvariant",r),n}});Fr({type:"textord",htmlBuilder(e,t){return z.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=mn(e.text,e.mode,t),r=g0(e,t)||"normal",i;return e.mode==="text"?i=new ee.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new ee.MathNode("mn",[n]):e.text==="\\prime"?i=new ee.MathNode("mo",[n]):i=new ee.MathNode("mi",[n]),r!==O2[i.type]&&i.setAttribute("mathvariant",r),i}});var Jo={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},eu={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Fr({type:"spacing",htmlBuilder(e,t){if(eu.hasOwnProperty(e.text)){var n=eu[e.text].className||"";if(e.mode==="text"){var r=z.makeOrd(e,t,"textord");return r.classes.push(n),r}else return z.makeSpan(["mspace",n],[z.mathsym(e.text,e.mode,t)],t)}else{if(Jo.hasOwnProperty(e.text))return z.makeSpan(["mspace",Jo[e.text]],[],t);throw new te('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(eu.hasOwnProperty(e.text))n=new ee.MathNode("mtext",[new ee.TextNode(" ")]);else{if(Jo.hasOwnProperty(e.text))return new ee.MathNode("mspace");throw new te('Unknown type of space "'+e.text+'"')}return n}});var Yh=()=>{var e=new ee.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Fr({type:"tag",mathmlBuilder(e,t){var n=new ee.MathNode("mtable",[new ee.MathNode("mtr",[Yh(),new ee.MathNode("mtd",[gr(e.body,t)]),Yh(),new ee.MathNode("mtd",[gr(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var Gh={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Kh={"\\textbf":"textbf","\\textmd":"textmd"},Kw={"\\textit":"textit","\\textup":"textup"},Xh=(e,t)=>{var n=e.font;if(n){if(Gh[n])return t.withTextFontFamily(Gh[n]);if(Kh[n])return t.withTextFontWeight(Kh[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Kw[n])};ce({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:mt(i),font:r}},htmlBuilder(e,t){var n=Xh(e,t),r=xt(e.body,n,!0);return z.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=Xh(e,t);return gr(e.body,n)}});ce({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Fe(e.body,t),r=z.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=z.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return z.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new ee.MathNode("mo",[new ee.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new ee.MathNode("munder",[Ge(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});ce({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Fe(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return z.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new ee.MathNode("mpadded",[Ge(e.body,t)],["vcenter"])}});ce({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new te("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=Qh(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),cr=a2,B2=`[ \r +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let Sa=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return pe.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;nn.toText();return this.children.map(t).join("")}};var wn={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ja={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Ah={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function FC(e,t){wn[e]=t}function h0(e,t,n){if(!wn[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=wn[t][r];if(!i&&e[0]in Ah&&(r=Ah[e[0]].charCodeAt(0),i=wn[t][r]),!i&&n==="text"&&Kp(r)&&(i=wn[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Uo={};function HC(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Uo[t]){var n=Uo[t]={cssEmPerMu:ja.quad[t]/18};for(var r in ja)ja.hasOwnProperty(r)&&(n[r]=ja[r][t])}return Uo[t]}var zC=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Ch=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],wh=function(t,n){return n.size<2?t:zC[t-1][n.size-1]};class Un{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Un.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Ch[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new Un(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:wh(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Ch[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=wh(Un.BASESIZE,t);return this.size===n&&this.textSize===Un.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Un.BASESIZE?["sizing","reset-size"+this.size,"size"+Un.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=HC(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Un.BASESIZE=6;var qu={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},UC={ex:!0,em:!0,mu:!0},Xp=function(t){return typeof t!="string"&&(t=t.unit),t in qu||t in UC||t==="ex"},st=function(t,n){var r;if(t.unit in qu)r=qu[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new te("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},se=function(t){return+t.toFixed(4)+"em"},mr=function(t){return t.filter(n=>n).join(" ")},Qp=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},Zp=function(t){var n=document.createElement(t);n.className=mr(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a/=\x00-\x1f]/,Jp=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+pe.escape(mr(this.classes))+'"');var r="";for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=pe.hyphenate(i)+":"+this.style[i]+";");r&&(n+=' style="'+pe.escape(r)+'"');for(var a in this.attributes)if(this.attributes.hasOwnProperty(a)){if(VC.test(a))throw new te("Invalid attribute name '"+a+"'");n+=" "+a+'="'+pe.escape(this.attributes[a])+'"'}n+=">";for(var s=0;s",n};class Aa{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Qp.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return pe.contains(this.classes,t)}toNode(){return Zp.call(this,"span")}toMarkup(){return Jp.call(this,"span")}}class f0{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Qp.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return pe.contains(this.classes,t)}toNode(){return Zp.call(this,"a")}toMarkup(){return Jp.call(this,"a")}}class jC{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return pe.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t=''+pe.escape(this.alt)+'0&&(n=document.createElement("span"),n.style.marginRight=se(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=mr(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=pe.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+pe.escape(r)+'"');var a=pe.escape(this.text);return t?(n+=">",n+=a,n+="",n):a}}class Kn{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i':''}}class $u{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t=" but got "+String(e)+".")}var WC={bin:1,close:1,inner:1,open:1,punct:1,rel:1},YC={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},et={math:{},text:{}};function f(e,t,n,r,i,a){et[e][i]={font:t,group:n,replace:r},a&&r&&(et[e][r]=et[e][i])}var g="math",Q="text",y="main",N="ams",it="accent-token",de="bin",Ut="close",bi="inner",ge="mathord",Et="op-token",an="open",Ws="punct",M="rel",Jn="spacing",F="textord";f(g,y,M,"≡","\\equiv",!0);f(g,y,M,"≺","\\prec",!0);f(g,y,M,"≻","\\succ",!0);f(g,y,M,"∼","\\sim",!0);f(g,y,M,"⊥","\\perp");f(g,y,M,"⪯","\\preceq",!0);f(g,y,M,"⪰","\\succeq",!0);f(g,y,M,"≃","\\simeq",!0);f(g,y,M,"∣","\\mid",!0);f(g,y,M,"≪","\\ll",!0);f(g,y,M,"≫","\\gg",!0);f(g,y,M,"≍","\\asymp",!0);f(g,y,M,"∥","\\parallel");f(g,y,M,"⋈","\\bowtie",!0);f(g,y,M,"⌣","\\smile",!0);f(g,y,M,"⊑","\\sqsubseteq",!0);f(g,y,M,"⊒","\\sqsupseteq",!0);f(g,y,M,"≐","\\doteq",!0);f(g,y,M,"⌢","\\frown",!0);f(g,y,M,"∋","\\ni",!0);f(g,y,M,"∝","\\propto",!0);f(g,y,M,"⊢","\\vdash",!0);f(g,y,M,"⊣","\\dashv",!0);f(g,y,M,"∋","\\owns");f(g,y,Ws,".","\\ldotp");f(g,y,Ws,"⋅","\\cdotp");f(g,y,F,"#","\\#");f(Q,y,F,"#","\\#");f(g,y,F,"&","\\&");f(Q,y,F,"&","\\&");f(g,y,F,"ℵ","\\aleph",!0);f(g,y,F,"∀","\\forall",!0);f(g,y,F,"ℏ","\\hbar",!0);f(g,y,F,"∃","\\exists",!0);f(g,y,F,"∇","\\nabla",!0);f(g,y,F,"♭","\\flat",!0);f(g,y,F,"ℓ","\\ell",!0);f(g,y,F,"♮","\\natural",!0);f(g,y,F,"♣","\\clubsuit",!0);f(g,y,F,"℘","\\wp",!0);f(g,y,F,"♯","\\sharp",!0);f(g,y,F,"♢","\\diamondsuit",!0);f(g,y,F,"ℜ","\\Re",!0);f(g,y,F,"♡","\\heartsuit",!0);f(g,y,F,"ℑ","\\Im",!0);f(g,y,F,"♠","\\spadesuit",!0);f(g,y,F,"§","\\S",!0);f(Q,y,F,"§","\\S");f(g,y,F,"¶","\\P",!0);f(Q,y,F,"¶","\\P");f(g,y,F,"†","\\dag");f(Q,y,F,"†","\\dag");f(Q,y,F,"†","\\textdagger");f(g,y,F,"‡","\\ddag");f(Q,y,F,"‡","\\ddag");f(Q,y,F,"‡","\\textdaggerdbl");f(g,y,Ut,"⎱","\\rmoustache",!0);f(g,y,an,"⎰","\\lmoustache",!0);f(g,y,Ut,"⟯","\\rgroup",!0);f(g,y,an,"⟮","\\lgroup",!0);f(g,y,de,"∓","\\mp",!0);f(g,y,de,"⊖","\\ominus",!0);f(g,y,de,"⊎","\\uplus",!0);f(g,y,de,"⊓","\\sqcap",!0);f(g,y,de,"∗","\\ast");f(g,y,de,"⊔","\\sqcup",!0);f(g,y,de,"◯","\\bigcirc",!0);f(g,y,de,"∙","\\bullet",!0);f(g,y,de,"‡","\\ddagger");f(g,y,de,"≀","\\wr",!0);f(g,y,de,"⨿","\\amalg");f(g,y,de,"&","\\And");f(g,y,M,"⟵","\\longleftarrow",!0);f(g,y,M,"⇐","\\Leftarrow",!0);f(g,y,M,"⟸","\\Longleftarrow",!0);f(g,y,M,"⟶","\\longrightarrow",!0);f(g,y,M,"⇒","\\Rightarrow",!0);f(g,y,M,"⟹","\\Longrightarrow",!0);f(g,y,M,"↔","\\leftrightarrow",!0);f(g,y,M,"⟷","\\longleftrightarrow",!0);f(g,y,M,"⇔","\\Leftrightarrow",!0);f(g,y,M,"⟺","\\Longleftrightarrow",!0);f(g,y,M,"↦","\\mapsto",!0);f(g,y,M,"⟼","\\longmapsto",!0);f(g,y,M,"↗","\\nearrow",!0);f(g,y,M,"↩","\\hookleftarrow",!0);f(g,y,M,"↪","\\hookrightarrow",!0);f(g,y,M,"↘","\\searrow",!0);f(g,y,M,"↼","\\leftharpoonup",!0);f(g,y,M,"⇀","\\rightharpoonup",!0);f(g,y,M,"↙","\\swarrow",!0);f(g,y,M,"↽","\\leftharpoondown",!0);f(g,y,M,"⇁","\\rightharpoondown",!0);f(g,y,M,"↖","\\nwarrow",!0);f(g,y,M,"⇌","\\rightleftharpoons",!0);f(g,N,M,"≮","\\nless",!0);f(g,N,M,"","\\@nleqslant");f(g,N,M,"","\\@nleqq");f(g,N,M,"⪇","\\lneq",!0);f(g,N,M,"≨","\\lneqq",!0);f(g,N,M,"","\\@lvertneqq");f(g,N,M,"⋦","\\lnsim",!0);f(g,N,M,"⪉","\\lnapprox",!0);f(g,N,M,"⊀","\\nprec",!0);f(g,N,M,"⋠","\\npreceq",!0);f(g,N,M,"⋨","\\precnsim",!0);f(g,N,M,"⪹","\\precnapprox",!0);f(g,N,M,"≁","\\nsim",!0);f(g,N,M,"","\\@nshortmid");f(g,N,M,"∤","\\nmid",!0);f(g,N,M,"⊬","\\nvdash",!0);f(g,N,M,"⊭","\\nvDash",!0);f(g,N,M,"⋪","\\ntriangleleft");f(g,N,M,"⋬","\\ntrianglelefteq",!0);f(g,N,M,"⊊","\\subsetneq",!0);f(g,N,M,"","\\@varsubsetneq");f(g,N,M,"⫋","\\subsetneqq",!0);f(g,N,M,"","\\@varsubsetneqq");f(g,N,M,"≯","\\ngtr",!0);f(g,N,M,"","\\@ngeqslant");f(g,N,M,"","\\@ngeqq");f(g,N,M,"⪈","\\gneq",!0);f(g,N,M,"≩","\\gneqq",!0);f(g,N,M,"","\\@gvertneqq");f(g,N,M,"⋧","\\gnsim",!0);f(g,N,M,"⪊","\\gnapprox",!0);f(g,N,M,"⊁","\\nsucc",!0);f(g,N,M,"⋡","\\nsucceq",!0);f(g,N,M,"⋩","\\succnsim",!0);f(g,N,M,"⪺","\\succnapprox",!0);f(g,N,M,"≆","\\ncong",!0);f(g,N,M,"","\\@nshortparallel");f(g,N,M,"∦","\\nparallel",!0);f(g,N,M,"⊯","\\nVDash",!0);f(g,N,M,"⋫","\\ntriangleright");f(g,N,M,"⋭","\\ntrianglerighteq",!0);f(g,N,M,"","\\@nsupseteqq");f(g,N,M,"⊋","\\supsetneq",!0);f(g,N,M,"","\\@varsupsetneq");f(g,N,M,"⫌","\\supsetneqq",!0);f(g,N,M,"","\\@varsupsetneqq");f(g,N,M,"⊮","\\nVdash",!0);f(g,N,M,"⪵","\\precneqq",!0);f(g,N,M,"⪶","\\succneqq",!0);f(g,N,M,"","\\@nsubseteqq");f(g,N,de,"⊴","\\unlhd");f(g,N,de,"⊵","\\unrhd");f(g,N,M,"↚","\\nleftarrow",!0);f(g,N,M,"↛","\\nrightarrow",!0);f(g,N,M,"⇍","\\nLeftarrow",!0);f(g,N,M,"⇏","\\nRightarrow",!0);f(g,N,M,"↮","\\nleftrightarrow",!0);f(g,N,M,"⇎","\\nLeftrightarrow",!0);f(g,N,M,"△","\\vartriangle");f(g,N,F,"ℏ","\\hslash");f(g,N,F,"▽","\\triangledown");f(g,N,F,"◊","\\lozenge");f(g,N,F,"Ⓢ","\\circledS");f(g,N,F,"®","\\circledR");f(Q,N,F,"®","\\circledR");f(g,N,F,"∡","\\measuredangle",!0);f(g,N,F,"∄","\\nexists");f(g,N,F,"℧","\\mho");f(g,N,F,"Ⅎ","\\Finv",!0);f(g,N,F,"⅁","\\Game",!0);f(g,N,F,"‵","\\backprime");f(g,N,F,"▲","\\blacktriangle");f(g,N,F,"▼","\\blacktriangledown");f(g,N,F,"■","\\blacksquare");f(g,N,F,"⧫","\\blacklozenge");f(g,N,F,"★","\\bigstar");f(g,N,F,"∢","\\sphericalangle",!0);f(g,N,F,"∁","\\complement",!0);f(g,N,F,"ð","\\eth",!0);f(Q,y,F,"ð","ð");f(g,N,F,"╱","\\diagup");f(g,N,F,"╲","\\diagdown");f(g,N,F,"□","\\square");f(g,N,F,"□","\\Box");f(g,N,F,"◊","\\Diamond");f(g,N,F,"¥","\\yen",!0);f(Q,N,F,"¥","\\yen",!0);f(g,N,F,"✓","\\checkmark",!0);f(Q,N,F,"✓","\\checkmark");f(g,N,F,"ℶ","\\beth",!0);f(g,N,F,"ℸ","\\daleth",!0);f(g,N,F,"ℷ","\\gimel",!0);f(g,N,F,"ϝ","\\digamma",!0);f(g,N,F,"ϰ","\\varkappa");f(g,N,an,"┌","\\@ulcorner",!0);f(g,N,Ut,"┐","\\@urcorner",!0);f(g,N,an,"└","\\@llcorner",!0);f(g,N,Ut,"┘","\\@lrcorner",!0);f(g,N,M,"≦","\\leqq",!0);f(g,N,M,"⩽","\\leqslant",!0);f(g,N,M,"⪕","\\eqslantless",!0);f(g,N,M,"≲","\\lesssim",!0);f(g,N,M,"⪅","\\lessapprox",!0);f(g,N,M,"≊","\\approxeq",!0);f(g,N,de,"⋖","\\lessdot");f(g,N,M,"⋘","\\lll",!0);f(g,N,M,"≶","\\lessgtr",!0);f(g,N,M,"⋚","\\lesseqgtr",!0);f(g,N,M,"⪋","\\lesseqqgtr",!0);f(g,N,M,"≑","\\doteqdot");f(g,N,M,"≓","\\risingdotseq",!0);f(g,N,M,"≒","\\fallingdotseq",!0);f(g,N,M,"∽","\\backsim",!0);f(g,N,M,"⋍","\\backsimeq",!0);f(g,N,M,"⫅","\\subseteqq",!0);f(g,N,M,"⋐","\\Subset",!0);f(g,N,M,"⊏","\\sqsubset",!0);f(g,N,M,"≼","\\preccurlyeq",!0);f(g,N,M,"⋞","\\curlyeqprec",!0);f(g,N,M,"≾","\\precsim",!0);f(g,N,M,"⪷","\\precapprox",!0);f(g,N,M,"⊲","\\vartriangleleft");f(g,N,M,"⊴","\\trianglelefteq");f(g,N,M,"⊨","\\vDash",!0);f(g,N,M,"⊪","\\Vvdash",!0);f(g,N,M,"⌣","\\smallsmile");f(g,N,M,"⌢","\\smallfrown");f(g,N,M,"≏","\\bumpeq",!0);f(g,N,M,"≎","\\Bumpeq",!0);f(g,N,M,"≧","\\geqq",!0);f(g,N,M,"⩾","\\geqslant",!0);f(g,N,M,"⪖","\\eqslantgtr",!0);f(g,N,M,"≳","\\gtrsim",!0);f(g,N,M,"⪆","\\gtrapprox",!0);f(g,N,de,"⋗","\\gtrdot");f(g,N,M,"⋙","\\ggg",!0);f(g,N,M,"≷","\\gtrless",!0);f(g,N,M,"⋛","\\gtreqless",!0);f(g,N,M,"⪌","\\gtreqqless",!0);f(g,N,M,"≖","\\eqcirc",!0);f(g,N,M,"≗","\\circeq",!0);f(g,N,M,"≜","\\triangleq",!0);f(g,N,M,"∼","\\thicksim");f(g,N,M,"≈","\\thickapprox");f(g,N,M,"⫆","\\supseteqq",!0);f(g,N,M,"⋑","\\Supset",!0);f(g,N,M,"⊐","\\sqsupset",!0);f(g,N,M,"≽","\\succcurlyeq",!0);f(g,N,M,"⋟","\\curlyeqsucc",!0);f(g,N,M,"≿","\\succsim",!0);f(g,N,M,"⪸","\\succapprox",!0);f(g,N,M,"⊳","\\vartriangleright");f(g,N,M,"⊵","\\trianglerighteq");f(g,N,M,"⊩","\\Vdash",!0);f(g,N,M,"∣","\\shortmid");f(g,N,M,"∥","\\shortparallel");f(g,N,M,"≬","\\between",!0);f(g,N,M,"⋔","\\pitchfork",!0);f(g,N,M,"∝","\\varpropto");f(g,N,M,"◀","\\blacktriangleleft");f(g,N,M,"∴","\\therefore",!0);f(g,N,M,"∍","\\backepsilon");f(g,N,M,"▶","\\blacktriangleright");f(g,N,M,"∵","\\because",!0);f(g,N,M,"⋘","\\llless");f(g,N,M,"⋙","\\gggtr");f(g,N,de,"⊲","\\lhd");f(g,N,de,"⊳","\\rhd");f(g,N,M,"≂","\\eqsim",!0);f(g,y,M,"⋈","\\Join");f(g,N,M,"≑","\\Doteq",!0);f(g,N,de,"∔","\\dotplus",!0);f(g,N,de,"∖","\\smallsetminus");f(g,N,de,"⋒","\\Cap",!0);f(g,N,de,"⋓","\\Cup",!0);f(g,N,de,"⩞","\\doublebarwedge",!0);f(g,N,de,"⊟","\\boxminus",!0);f(g,N,de,"⊞","\\boxplus",!0);f(g,N,de,"⋇","\\divideontimes",!0);f(g,N,de,"⋉","\\ltimes",!0);f(g,N,de,"⋊","\\rtimes",!0);f(g,N,de,"⋋","\\leftthreetimes",!0);f(g,N,de,"⋌","\\rightthreetimes",!0);f(g,N,de,"⋏","\\curlywedge",!0);f(g,N,de,"⋎","\\curlyvee",!0);f(g,N,de,"⊝","\\circleddash",!0);f(g,N,de,"⊛","\\circledast",!0);f(g,N,de,"⋅","\\centerdot");f(g,N,de,"⊺","\\intercal",!0);f(g,N,de,"⋒","\\doublecap");f(g,N,de,"⋓","\\doublecup");f(g,N,de,"⊠","\\boxtimes",!0);f(g,N,M,"⇢","\\dashrightarrow",!0);f(g,N,M,"⇠","\\dashleftarrow",!0);f(g,N,M,"⇇","\\leftleftarrows",!0);f(g,N,M,"⇆","\\leftrightarrows",!0);f(g,N,M,"⇚","\\Lleftarrow",!0);f(g,N,M,"↞","\\twoheadleftarrow",!0);f(g,N,M,"↢","\\leftarrowtail",!0);f(g,N,M,"↫","\\looparrowleft",!0);f(g,N,M,"⇋","\\leftrightharpoons",!0);f(g,N,M,"↶","\\curvearrowleft",!0);f(g,N,M,"↺","\\circlearrowleft",!0);f(g,N,M,"↰","\\Lsh",!0);f(g,N,M,"⇈","\\upuparrows",!0);f(g,N,M,"↿","\\upharpoonleft",!0);f(g,N,M,"⇃","\\downharpoonleft",!0);f(g,y,M,"⊶","\\origof",!0);f(g,y,M,"⊷","\\imageof",!0);f(g,N,M,"⊸","\\multimap",!0);f(g,N,M,"↭","\\leftrightsquigarrow",!0);f(g,N,M,"⇉","\\rightrightarrows",!0);f(g,N,M,"⇄","\\rightleftarrows",!0);f(g,N,M,"↠","\\twoheadrightarrow",!0);f(g,N,M,"↣","\\rightarrowtail",!0);f(g,N,M,"↬","\\looparrowright",!0);f(g,N,M,"↷","\\curvearrowright",!0);f(g,N,M,"↻","\\circlearrowright",!0);f(g,N,M,"↱","\\Rsh",!0);f(g,N,M,"⇊","\\downdownarrows",!0);f(g,N,M,"↾","\\upharpoonright",!0);f(g,N,M,"⇂","\\downharpoonright",!0);f(g,N,M,"⇝","\\rightsquigarrow",!0);f(g,N,M,"⇝","\\leadsto");f(g,N,M,"⇛","\\Rrightarrow",!0);f(g,N,M,"↾","\\restriction");f(g,y,F,"‘","`");f(g,y,F,"$","\\$");f(Q,y,F,"$","\\$");f(Q,y,F,"$","\\textdollar");f(g,y,F,"%","\\%");f(Q,y,F,"%","\\%");f(g,y,F,"_","\\_");f(Q,y,F,"_","\\_");f(Q,y,F,"_","\\textunderscore");f(g,y,F,"∠","\\angle",!0);f(g,y,F,"∞","\\infty",!0);f(g,y,F,"′","\\prime");f(g,y,F,"△","\\triangle");f(g,y,F,"Γ","\\Gamma",!0);f(g,y,F,"Δ","\\Delta",!0);f(g,y,F,"Θ","\\Theta",!0);f(g,y,F,"Λ","\\Lambda",!0);f(g,y,F,"Ξ","\\Xi",!0);f(g,y,F,"Π","\\Pi",!0);f(g,y,F,"Σ","\\Sigma",!0);f(g,y,F,"Υ","\\Upsilon",!0);f(g,y,F,"Φ","\\Phi",!0);f(g,y,F,"Ψ","\\Psi",!0);f(g,y,F,"Ω","\\Omega",!0);f(g,y,F,"A","Α");f(g,y,F,"B","Β");f(g,y,F,"E","Ε");f(g,y,F,"Z","Ζ");f(g,y,F,"H","Η");f(g,y,F,"I","Ι");f(g,y,F,"K","Κ");f(g,y,F,"M","Μ");f(g,y,F,"N","Ν");f(g,y,F,"O","Ο");f(g,y,F,"P","Ρ");f(g,y,F,"T","Τ");f(g,y,F,"X","Χ");f(g,y,F,"¬","\\neg",!0);f(g,y,F,"¬","\\lnot");f(g,y,F,"⊤","\\top");f(g,y,F,"⊥","\\bot");f(g,y,F,"∅","\\emptyset");f(g,N,F,"∅","\\varnothing");f(g,y,ge,"α","\\alpha",!0);f(g,y,ge,"β","\\beta",!0);f(g,y,ge,"γ","\\gamma",!0);f(g,y,ge,"δ","\\delta",!0);f(g,y,ge,"ϵ","\\epsilon",!0);f(g,y,ge,"ζ","\\zeta",!0);f(g,y,ge,"η","\\eta",!0);f(g,y,ge,"θ","\\theta",!0);f(g,y,ge,"ι","\\iota",!0);f(g,y,ge,"κ","\\kappa",!0);f(g,y,ge,"λ","\\lambda",!0);f(g,y,ge,"μ","\\mu",!0);f(g,y,ge,"ν","\\nu",!0);f(g,y,ge,"ξ","\\xi",!0);f(g,y,ge,"ο","\\omicron",!0);f(g,y,ge,"π","\\pi",!0);f(g,y,ge,"ρ","\\rho",!0);f(g,y,ge,"σ","\\sigma",!0);f(g,y,ge,"τ","\\tau",!0);f(g,y,ge,"υ","\\upsilon",!0);f(g,y,ge,"ϕ","\\phi",!0);f(g,y,ge,"χ","\\chi",!0);f(g,y,ge,"ψ","\\psi",!0);f(g,y,ge,"ω","\\omega",!0);f(g,y,ge,"ε","\\varepsilon",!0);f(g,y,ge,"ϑ","\\vartheta",!0);f(g,y,ge,"ϖ","\\varpi",!0);f(g,y,ge,"ϱ","\\varrho",!0);f(g,y,ge,"ς","\\varsigma",!0);f(g,y,ge,"φ","\\varphi",!0);f(g,y,de,"∗","*",!0);f(g,y,de,"+","+");f(g,y,de,"−","-",!0);f(g,y,de,"⋅","\\cdot",!0);f(g,y,de,"∘","\\circ",!0);f(g,y,de,"÷","\\div",!0);f(g,y,de,"±","\\pm",!0);f(g,y,de,"×","\\times",!0);f(g,y,de,"∩","\\cap",!0);f(g,y,de,"∪","\\cup",!0);f(g,y,de,"∖","\\setminus",!0);f(g,y,de,"∧","\\land");f(g,y,de,"∨","\\lor");f(g,y,de,"∧","\\wedge",!0);f(g,y,de,"∨","\\vee",!0);f(g,y,F,"√","\\surd");f(g,y,an,"⟨","\\langle",!0);f(g,y,an,"∣","\\lvert");f(g,y,an,"∥","\\lVert");f(g,y,Ut,"?","?");f(g,y,Ut,"!","!");f(g,y,Ut,"⟩","\\rangle",!0);f(g,y,Ut,"∣","\\rvert");f(g,y,Ut,"∥","\\rVert");f(g,y,M,"=","=");f(g,y,M,":",":");f(g,y,M,"≈","\\approx",!0);f(g,y,M,"≅","\\cong",!0);f(g,y,M,"≥","\\ge");f(g,y,M,"≥","\\geq",!0);f(g,y,M,"←","\\gets");f(g,y,M,">","\\gt",!0);f(g,y,M,"∈","\\in",!0);f(g,y,M,"","\\@not");f(g,y,M,"⊂","\\subset",!0);f(g,y,M,"⊃","\\supset",!0);f(g,y,M,"⊆","\\subseteq",!0);f(g,y,M,"⊇","\\supseteq",!0);f(g,N,M,"⊈","\\nsubseteq",!0);f(g,N,M,"⊉","\\nsupseteq",!0);f(g,y,M,"⊨","\\models");f(g,y,M,"←","\\leftarrow",!0);f(g,y,M,"≤","\\le");f(g,y,M,"≤","\\leq",!0);f(g,y,M,"<","\\lt",!0);f(g,y,M,"→","\\rightarrow",!0);f(g,y,M,"→","\\to");f(g,N,M,"≱","\\ngeq",!0);f(g,N,M,"≰","\\nleq",!0);f(g,y,Jn," ","\\ ");f(g,y,Jn," ","\\space");f(g,y,Jn," ","\\nobreakspace");f(Q,y,Jn," ","\\ ");f(Q,y,Jn," "," ");f(Q,y,Jn," ","\\space");f(Q,y,Jn," ","\\nobreakspace");f(g,y,Jn,null,"\\nobreak");f(g,y,Jn,null,"\\allowbreak");f(g,y,Ws,",",",");f(g,y,Ws,";",";");f(g,N,de,"⊼","\\barwedge",!0);f(g,N,de,"⊻","\\veebar",!0);f(g,y,de,"⊙","\\odot",!0);f(g,y,de,"⊕","\\oplus",!0);f(g,y,de,"⊗","\\otimes",!0);f(g,y,F,"∂","\\partial",!0);f(g,y,de,"⊘","\\oslash",!0);f(g,N,de,"⊚","\\circledcirc",!0);f(g,N,de,"⊡","\\boxdot",!0);f(g,y,de,"△","\\bigtriangleup");f(g,y,de,"▽","\\bigtriangledown");f(g,y,de,"†","\\dagger");f(g,y,de,"⋄","\\diamond");f(g,y,de,"⋆","\\star");f(g,y,de,"◃","\\triangleleft");f(g,y,de,"▹","\\triangleright");f(g,y,an,"{","\\{");f(Q,y,F,"{","\\{");f(Q,y,F,"{","\\textbraceleft");f(g,y,Ut,"}","\\}");f(Q,y,F,"}","\\}");f(Q,y,F,"}","\\textbraceright");f(g,y,an,"{","\\lbrace");f(g,y,Ut,"}","\\rbrace");f(g,y,an,"[","\\lbrack",!0);f(Q,y,F,"[","\\lbrack",!0);f(g,y,Ut,"]","\\rbrack",!0);f(Q,y,F,"]","\\rbrack",!0);f(g,y,an,"(","\\lparen",!0);f(g,y,Ut,")","\\rparen",!0);f(Q,y,F,"<","\\textless",!0);f(Q,y,F,">","\\textgreater",!0);f(g,y,an,"⌊","\\lfloor",!0);f(g,y,Ut,"⌋","\\rfloor",!0);f(g,y,an,"⌈","\\lceil",!0);f(g,y,Ut,"⌉","\\rceil",!0);f(g,y,F,"\\","\\backslash");f(g,y,F,"∣","|");f(g,y,F,"∣","\\vert");f(Q,y,F,"|","\\textbar",!0);f(g,y,F,"∥","\\|");f(g,y,F,"∥","\\Vert");f(Q,y,F,"∥","\\textbardbl");f(Q,y,F,"~","\\textasciitilde");f(Q,y,F,"\\","\\textbackslash");f(Q,y,F,"^","\\textasciicircum");f(g,y,M,"↑","\\uparrow",!0);f(g,y,M,"⇑","\\Uparrow",!0);f(g,y,M,"↓","\\downarrow",!0);f(g,y,M,"⇓","\\Downarrow",!0);f(g,y,M,"↕","\\updownarrow",!0);f(g,y,M,"⇕","\\Updownarrow",!0);f(g,y,Et,"∐","\\coprod");f(g,y,Et,"⋁","\\bigvee");f(g,y,Et,"⋀","\\bigwedge");f(g,y,Et,"⨄","\\biguplus");f(g,y,Et,"⋂","\\bigcap");f(g,y,Et,"⋃","\\bigcup");f(g,y,Et,"∫","\\int");f(g,y,Et,"∫","\\intop");f(g,y,Et,"∬","\\iint");f(g,y,Et,"∭","\\iiint");f(g,y,Et,"∏","\\prod");f(g,y,Et,"∑","\\sum");f(g,y,Et,"⨂","\\bigotimes");f(g,y,Et,"⨁","\\bigoplus");f(g,y,Et,"⨀","\\bigodot");f(g,y,Et,"∮","\\oint");f(g,y,Et,"∯","\\oiint");f(g,y,Et,"∰","\\oiiint");f(g,y,Et,"⨆","\\bigsqcup");f(g,y,Et,"∫","\\smallint");f(Q,y,bi,"…","\\textellipsis");f(g,y,bi,"…","\\mathellipsis");f(Q,y,bi,"…","\\ldots",!0);f(g,y,bi,"…","\\ldots",!0);f(g,y,bi,"⋯","\\@cdots",!0);f(g,y,bi,"⋱","\\ddots",!0);f(g,y,F,"⋮","\\varvdots");f(Q,y,F,"⋮","\\varvdots");f(g,y,it,"ˊ","\\acute");f(g,y,it,"ˋ","\\grave");f(g,y,it,"¨","\\ddot");f(g,y,it,"~","\\tilde");f(g,y,it,"ˉ","\\bar");f(g,y,it,"˘","\\breve");f(g,y,it,"ˇ","\\check");f(g,y,it,"^","\\hat");f(g,y,it,"⃗","\\vec");f(g,y,it,"˙","\\dot");f(g,y,it,"˚","\\mathring");f(g,y,ge,"","\\@imath");f(g,y,ge,"","\\@jmath");f(g,y,F,"ı","ı");f(g,y,F,"ȷ","ȷ");f(Q,y,F,"ı","\\i",!0);f(Q,y,F,"ȷ","\\j",!0);f(Q,y,F,"ß","\\ss",!0);f(Q,y,F,"æ","\\ae",!0);f(Q,y,F,"œ","\\oe",!0);f(Q,y,F,"ø","\\o",!0);f(Q,y,F,"Æ","\\AE",!0);f(Q,y,F,"Œ","\\OE",!0);f(Q,y,F,"Ø","\\O",!0);f(Q,y,it,"ˊ","\\'");f(Q,y,it,"ˋ","\\`");f(Q,y,it,"ˆ","\\^");f(Q,y,it,"˜","\\~");f(Q,y,it,"ˉ","\\=");f(Q,y,it,"˘","\\u");f(Q,y,it,"˙","\\.");f(Q,y,it,"¸","\\c");f(Q,y,it,"˚","\\r");f(Q,y,it,"ˇ","\\v");f(Q,y,it,"¨",'\\"');f(Q,y,it,"˝","\\H");f(Q,y,it,"◯","\\textcircled");var e2={"--":!0,"---":!0,"``":!0,"''":!0};f(Q,y,F,"–","--",!0);f(Q,y,F,"–","\\textendash");f(Q,y,F,"—","---",!0);f(Q,y,F,"—","\\textemdash");f(Q,y,F,"‘","`",!0);f(Q,y,F,"‘","\\textquoteleft");f(Q,y,F,"’","'",!0);f(Q,y,F,"’","\\textquoteright");f(Q,y,F,"“","``",!0);f(Q,y,F,"“","\\textquotedblleft");f(Q,y,F,"”","''",!0);f(Q,y,F,"”","\\textquotedblright");f(g,y,F,"°","\\degree",!0);f(Q,y,F,"°","\\degree");f(Q,y,F,"°","\\textdegree",!0);f(g,y,F,"£","\\pounds");f(g,y,F,"£","\\mathsterling",!0);f(Q,y,F,"£","\\pounds");f(Q,y,F,"£","\\textsterling",!0);f(g,N,F,"✠","\\maltese");f(Q,N,F,"✠","\\maltese");var Ih='0123456789/@."';for(var Vo=0;Vo0)return bn(a,l,i,n,s.concat(c));if(u){var d,m;if(u==="boldsymbol"){var p=XC(a,i,n,s,r);d=p.fontName,m=[p.fontClass]}else o?(d=r2[u].fontName,m=[u]):(d=Ya(u,n.fontWeight,n.fontShape),m=[u,n.fontWeight,n.fontShape]);if(Ys(a,d,i).metrics)return bn(a,d,i,n,s.concat(m));if(e2.hasOwnProperty(a)&&d.slice(0,10)==="Typewriter"){for(var b=[],E=0;E{if(mr(e.classes)!==mr(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},JC=e=>{for(var t=0;tn&&(n=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},Yt=function(t,n,r,i){var a=new Aa(t,n,r,i);return m0(a),a},t2=(e,t,n,r)=>new Aa(e,t,n,r),ew=function(t,n,r){var i=Yt([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=se(i.height),i.maxFontSize=1,i},tw=function(t,n,r,i){var a=new f0(t,n,r,i);return m0(a),a},n2=function(t){var n=new Sa(t);return m0(n),n},nw=function(t,n){return t instanceof Sa?Yt([],[t],n):t},rw=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,s=1;s{var n=Yt(["mspace"],[],t),r=st(e,t);return n.style.marginRight=se(r),n},Ya=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},r2={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},i2={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},sw=function(t,n){var[r,i,a]=i2[t],s=new pr(r),o=new Kn([s],{width:se(i),height:se(a),style:"width:"+se(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),u=t2(["overlay"],[o],n);return u.height=a,u.style.height=se(a),u.style.width=se(i),u},z={fontMap:r2,makeSymbol:bn,mathsym:KC,makeSpan:Yt,makeSvgSpan:t2,makeLineSpan:ew,makeAnchor:tw,makeFragment:n2,wrapFragment:nw,makeVList:iw,makeOrd:QC,makeGlue:aw,staticSvg:sw,svgData:i2,tryCombineChars:JC},at={number:3,unit:"mu"},Ar={number:4,unit:"mu"},zn={number:5,unit:"mu"},ow={mord:{mop:at,mbin:Ar,mrel:zn,minner:at},mop:{mord:at,mop:at,mrel:zn,minner:at},mbin:{mord:Ar,mop:Ar,mopen:Ar,minner:Ar},mrel:{mord:zn,mop:zn,mopen:zn,minner:zn},mopen:{},mclose:{mop:at,mbin:Ar,mrel:zn,minner:at},mpunct:{mord:at,mop:at,mrel:zn,mopen:at,mclose:at,mpunct:at,minner:at},minner:{mord:at,mop:at,mbin:Ar,mrel:zn,mopen:at,mpunct:at,minner:at}},uw={mord:{mop:at},mop:{mord:at,mop:at},mbin:{},mrel:{},mopen:{},mclose:{mop:at},mpunct:{},minner:{mop:at}},a2={},vs={},Ss={};function ce(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},u=0;u{var C=E.classes[0],T=b.classes[0];C==="mbin"&&pe.contains(cw,T)?E.classes[0]="mord":T==="mbin"&&pe.contains(lw,C)&&(b.classes[0]="mord")},{node:d},m,p),_h(a,(b,E)=>{var C=Yu(E),T=Yu(b),S=C&&T?b.hasClass("mtight")?uw[C][T]:ow[C][T]:null;if(S)return z.makeGlue(S,l)},{node:d},m,p),a},_h=function e(t,n,r,i,a){i&&t.push(i);for(var s=0;sm=>{t.splice(d+1,0,m),s++})(s)}i&&t.pop()},s2=function(t){return t instanceof Sa||t instanceof f0||t instanceof Aa&&t.hasClass("enclosing")?t:null},fw=function e(t,n){var r=s2(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},Yu=function(t,n){return t?(n&&(t=fw(t,n)),hw[t.classes[0]]||null):null},da=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return Xn(n.concat(r))},Fe=function(t,n,r){if(!t)return Xn();if(vs[t.type]){var i=vs[t.type](t,n);if(r&&n.size!==r.size){i=Xn(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new te("Got group of unknown type: '"+t.type+"'")};function Ga(e,t){var n=Xn(["base"],e,t),r=Xn(["strut"]);return r.style.height=se(n.height+n.depth),n.depth&&(r.style.verticalAlign=se(-n.depth)),n.children.unshift(r),n}function Gu(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=xt(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],s=[],o=0;o0&&(a.push(Ga(s,t)),s=[]),a.push(r[o]));s.length>0&&a.push(Ga(s,t));var l;n?(l=Ga(xt(n,t,!0)),l.classes=["tag"],a.push(l)):i&&a.push(i);var c=Xn(["katex-html"],a);if(c.setAttribute("aria-hidden","true"),l){var d=l.children[0];d.style.height=se(c.height+c.depth),c.depth&&(d.style.verticalAlign=se(-c.depth))}return c}function o2(e){return new Sa(e)}class tn{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=mr(this.classes));for(var r=0;r0&&(t+=' class ="'+pe.escape(mr(this.classes))+'"'),t+=">";for(var r=0;r",t}toText(){return this.children.map(t=>t.toText()).join("")}}class kn{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return pe.escape(this.toText())}toText(){return this.text}}class mw{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",se(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var ee={MathNode:tn,TextNode:kn,SpaceNode:mw,newDocumentFragment:o2},mn=function(t,n,r){return et[n][t]&&et[n][t].replace&&t.charCodeAt(0)!==55349&&!(e2.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=et[n][t].replace),new ee.TextNode(t)},p0=function(t){return t.length===1?t[0]:new ee.MathNode("mrow",t)},g0=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathsfit")return"sans-serif-italic";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(pe.contains(["\\imath","\\jmath"],a))return null;et[i][a]&&et[i][a].replace&&(a=et[i][a].replace);var s=z.fontMap[r].fontName;return h0(a,s,i)?z.fontMap[r].variant:null};function Wo(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof kn&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof kn&&n.text===","}else return!1}var Xt=function(t,n,r){if(t.length===1){var i=Ge(t[0],n);return r&&i instanceof tn&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o=1&&(s.type==="mn"||Wo(s))){var l=u.children[0];l instanceof tn&&l.type==="mn"&&(l.children=[...s.children,...l.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var c=s.children[0];if(c instanceof kn&&c.text==="̸"&&(u.type==="mo"||u.type==="mi"||u.type==="mn")){var d=u.children[0];d instanceof kn&&d.text.length>0&&(d.text=d.text.slice(0,1)+"̸"+d.text.slice(1),a.pop())}}}a.push(u),s=u}return a},gr=function(t,n,r){return p0(Xt(t,n,r))},Ge=function(t,n){if(!t)return new ee.MathNode("mrow");if(Ss[t.type]){var r=Ss[t.type](t,n);return r}else throw new te("Got group of unknown type: '"+t.type+"'")};function Lh(e,t,n,r,i){var a=Xt(e,n),s;a.length===1&&a[0]instanceof tn&&pe.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new ee.MathNode("mrow",a);var o=new ee.MathNode("annotation",[new ee.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var u=new ee.MathNode("semantics",[s,o]),l=new ee.MathNode("math",[u]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&l.setAttribute("display","block");var c=i?"katex":"katex-mathml";return z.makeSpan([c],[l])}var u2=function(t){return new Un({style:t.displayMode?be.DISPLAY:be.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},l2=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=z.makeSpan(r,[t])}return t},pw=function(t,n,r){var i=u2(r),a;if(r.output==="mathml")return Lh(t,n,i,r.displayMode,!0);if(r.output==="html"){var s=Gu(t,i);a=z.makeSpan(["katex"],[s])}else{var o=Lh(t,n,i,r.displayMode,!1),u=Gu(t,i);a=z.makeSpan(["katex"],[o,u])}return l2(a,r)},gw=function(t,n,r){var i=u2(r),a=Gu(t,i),s=z.makeSpan(["katex"],[a]);return l2(s,r)},bw={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},yw=function(t){var n=new ee.MathNode("mo",[new ee.TextNode(bw[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},Tw={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Ew=function(t){return t.type==="ordgroup"?t.body.length:1},xw=function(t,n){function r(){var o=4e5,u=t.label.slice(1);if(pe.contains(["widehat","widecheck","widetilde","utilde"],u)){var l=t,c=Ew(l.base),d,m,p;if(c>5)u==="widehat"||u==="widecheck"?(d=420,o=2364,p=.42,m=u+"4"):(d=312,o=2340,p=.34,m="tilde4");else{var b=[1,1,2,2,3,3][c];u==="widehat"||u==="widecheck"?(o=[0,1062,2364,2364,2364][b],d=[0,239,300,360,420][b],p=[0,.24,.3,.3,.36,.42][b],m=u+b):(o=[0,600,1033,2339,2340][b],d=[0,260,286,306,312][b],p=[0,.26,.286,.3,.306,.34][b],m="tilde"+b)}var E=new pr(m),C=new Kn([E],{width:"100%",height:se(p),viewBox:"0 0 "+o+" "+d,preserveAspectRatio:"none"});return{span:z.makeSvgSpan([],[C],n),minWidth:0,height:p}}else{var T=[],S=Tw[u],[v,L,P]=S,k=P/1e3,V=v.length,U,q;if(V===1){var B=S[3];U=["hide-tail"],q=[B]}else if(V===2)U=["halfarrow-left","halfarrow-right"],q=["xMinYMin","xMaxYMin"];else if(V===3)U=["brace-left","brace-center","brace-right"],q=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+V+" children.");for(var K=0;K0&&(i.style.minWidth=se(a)),i},vw=function(t,n,r,i,a){var s,o=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(s=z.makeSpan(["stretchy",n],[],a),n==="fbox"){var u=a.color&&a.getColor();u&&(s.style.borderColor=u)}}else{var l=[];/^[bx]cancel$/.test(n)&&l.push(new $u({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&l.push(new $u({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new Kn(l,{width:"100%",height:se(o)});s=z.makeSvgSpan([],[c],a)}return s.height=o,s.style.height=se(o),s},Qn={encloseSpan:vw,mathMLnode:yw,svgSpan:xw};function we(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function b0(e){var t=Gs(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Gs(e){return e&&(e.type==="atom"||YC.hasOwnProperty(e.type))?e:null}var y0=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=we(e.base,"accent"),n=r.base,e.base=n,i=$C(Fe(e,t)),e.base=r):(r=we(e,"accent"),n=r.base);var a=Fe(n,t.havingCrampedStyle()),s=r.isShifty&&pe.isCharacterBox(n),o=0;if(s){var u=pe.getBaseElem(n),l=Fe(u,t.havingCrampedStyle());o=kh(l).skew}var c=r.label==="\\c",d=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),m;if(r.isStretchy)m=Qn.svgSpan(r,t),m=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:m,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+se(2*o)+")",marginLeft:se(2*o)}:void 0}]},t);else{var p,b;r.label==="\\vec"?(p=z.staticSvg("vec",t),b=z.svgData.vec[1]):(p=z.makeOrd({mode:r.mode,text:r.label},t,"textord"),p=kh(p),p.italic=0,b=p.width,c&&(d+=p.depth)),m=z.makeSpan(["accent-body"],[p]);var E=r.label==="\\textcircled";E&&(m.classes.push("accent-full"),d=a.height);var C=o;E||(C-=b/2),m.style.left=se(C),r.label==="\\textcircled"&&(m.style.top=".2em"),m=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-d},{type:"elem",elem:m}]},t)}var T=z.makeSpan(["mord","accent"],[m],t);return i?(i.children[0]=T,i.height=Math.max(T.height,i.height),i.classes[0]="mord",i):T},c2=(e,t)=>{var n=e.isStretchy?Qn.mathMLnode(e.label):new ee.MathNode("mo",[mn(e.label,e.mode)]),r=new ee.MathNode("mover",[Ge(e.base,t),n]);return r.setAttribute("accent","true"),r},Sw=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ce({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=As(t[0]),r=!Sw.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:y0,mathmlBuilder:c2});ce({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:y0,mathmlBuilder:c2});ce({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Fe(e.base,t),r=Qn.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=z.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return z.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=Qn.mathMLnode(e.label),r=new ee.MathNode("munder",[Ge(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Ka=e=>{var t=new ee.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ce({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=z.wrapFragment(Fe(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(r=t.havingStyle(n.sub()),s=z.wrapFragment(Fe(e.below,r,t),t),s.classes.push(a+"-arrow-pad"));var o=Qn.svgSpan(e,t),u=-t.fontMetrics().axisHeight+.5*o.height,l=-t.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(l-=i.depth);var c;if(s){var d=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;c=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u},{type:"elem",elem:s,shift:d}]},t)}else c=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u}]},t);return c.children[0].children[0].children[1].classes.push("svg-align"),z.makeSpan(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){var n=Qn.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=Ka(Ge(e.body,t));if(e.below){var a=Ka(Ge(e.below,t));r=new ee.MathNode("munderover",[n,a,i])}else r=new ee.MathNode("mover",[n,i])}else if(e.below){var s=Ka(Ge(e.below,t));r=new ee.MathNode("munder",[n,s])}else r=Ka(),r=new ee.MathNode("mover",[n,r]);return r}});var Aw=z.makeSpan;function d2(e,t){var n=xt(e.body,t,!0);return Aw([e.mclass],n,t)}function h2(e,t){var n,r=Xt(e.body,t);return e.mclass==="minner"?n=new ee.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new ee.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new ee.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}ce({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:mt(i),isCharacterBox:pe.isCharacterBox(i)}},htmlBuilder:d2,mathmlBuilder:h2});var Ks=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ce({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:Ks(t[0]),body:mt(t[1]),isCharacterBox:pe.isCharacterBox(t[1])}}});ce({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],s;r!=="\\stackrel"?s=Ks(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:mt(i)},u={type:"supsub",mode:a.mode,base:o,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:s,body:[u],isCharacterBox:pe.isCharacterBox(u)}},htmlBuilder:d2,mathmlBuilder:h2});ce({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:Ks(t[0]),body:mt(t[0])}},htmlBuilder(e,t){var n=xt(e.body,t,!0),r=z.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=Xt(e.body,t),r=new ee.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var Cw={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Ph=()=>({type:"styling",body:[],mode:"math",style:"display"}),Oh=e=>e.type==="textord"&&e.text==="@",ww=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function kw(e,t,n){var r=Cw[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},s=n.callFunction("\\Big",[a],[]),o=n.callFunction("\\\\cdright",[t[1]],[]),u={type:"ordgroup",mode:"math",body:[i,s,o]};return n.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var l={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[l],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Iw(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new te("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a-1))if("<>AV".indexOf(l)>-1)for(var d=0;d<2;d++){for(var m=!0,p=u+1;pAV=|." after @',s[u]);var b=kw(l,c,e),E={type:"styling",body:[b],mode:"math",style:"display"};r.push(E),o=Ph()}a%2===0?r.push(o):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var C=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:C,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}ce({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=z.wrapFragment(Fe(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=se(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new ee.MathNode("mrow",[Ge(e.label,t)]);return n=new ee.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new ee.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});ce({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=z.wrapFragment(Fe(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new ee.MathNode("mrow",[Ge(e.fragment,t)])}});ce({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=we(t[0],"ordgroup"),i=r.body,a="",s=0;s=1114111)throw new te("\\@char with invalid code point "+a);return u<=65535?l=String.fromCharCode(u):(u-=65536,l=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:n.mode,text:l}}});var f2=(e,t)=>{var n=xt(e.body,t.withColor(e.color),!1);return z.makeFragment(n)},m2=(e,t)=>{var n=Xt(e.body,t.withColor(e.color)),r=new ee.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};ce({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=we(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:mt(i)}},htmlBuilder:f2,mathmlBuilder:m2});ce({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=we(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:f2,mathmlBuilder:m2});ce({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&we(i,"size").value}},htmlBuilder(e,t){var n=z.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=se(st(e.size,t)))),n},mathmlBuilder(e,t){var n=new ee.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",se(st(e.size,t)))),n}});var Ku={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},p2=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new te("Expected a control sequence",e);return t},Nw=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},g2=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};ce({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(Ku[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=Ku[r.text]),we(t.parseFunction(),"internal");throw new te("Invalid token after macro prefix",r)}});ce({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new te("Expected a control sequence",r);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new te('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new te('Argument number "'+r.text+'" out of order');a++,o.push([])}else{if(r.text==="EOF")throw new te("Expected a macro definition");o[a].push(r.text)}var{tokens:u}=t.gullet.consumeArg();return s&&u.unshift(s),(n==="\\edef"||n==="\\xdef")&&(u=t.gullet.expandTokens(u),u.reverse()),t.gullet.macros.set(i,{tokens:u,numArgs:a,delimiters:o},n===Ku[n]),{type:"internal",mode:t.mode}}});ce({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=p2(t.gullet.popToken());t.gullet.consumeSpaces();var i=Nw(t);return g2(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});ce({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=p2(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return g2(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var Oi=function(t,n,r){var i=et.math[t]&&et.math[t].replace,a=h0(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},T0=function(t,n,r,i){var a=r.havingBaseStyle(n),s=z.makeSpan(i.concat(a.sizingClasses(r)),[t],r),o=a.sizeMultiplier/r.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},b2=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=se(a),t.height-=a,t.depth+=a},Mw=function(t,n,r,i,a,s){var o=z.makeSymbol(t,"Main-Regular",a,i),u=T0(o,n,i,s);return r&&b2(u,i,n),u},Rw=function(t,n,r,i){return z.makeSymbol(t,"Size"+n+"-Regular",r,i)},y2=function(t,n,r,i,a,s){var o=Rw(t,n,a,i),u=T0(z.makeSpan(["delimsizing","size"+n],[o],i),be.TEXT,i,s);return r&&b2(u,i,be.TEXT),u},Yo=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=z.makeSpan(["delimsizinginner",i],[z.makeSpan([],[z.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},Go=function(t,n,r){var i=wn["Size4-Regular"][t.charCodeAt(0)]?wn["Size4-Regular"][t.charCodeAt(0)][4]:wn["Size1-Regular"][t.charCodeAt(0)][4],a=new pr("inner",OC(t,Math.round(1e3*n))),s=new Kn([a],{width:se(i),height:se(n),style:"width:"+se(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),o=z.makeSvgSpan([],[s],r);return o.height=n,o.style.height=se(n),o.style.width=se(i),{type:"elem",elem:o}},Xu=.008,Xa={type:"kern",size:-1*Xu},Dw=["|","\\lvert","\\rvert","\\vert"],_w=["\\|","\\lVert","\\rVert","\\Vert"],T2=function(t,n,r,i,a,s){var o,u,l,c,d="",m=0;o=l=c=t,u=null;var p="Size1-Regular";t==="\\uparrow"?l=c="⏐":t==="\\Uparrow"?l=c="‖":t==="\\downarrow"?o=l="⏐":t==="\\Downarrow"?o=l="‖":t==="\\updownarrow"?(o="\\uparrow",l="⏐",c="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",l="‖",c="\\Downarrow"):pe.contains(Dw,t)?(l="∣",d="vert",m=333):pe.contains(_w,t)?(l="∥",d="doublevert",m=556):t==="["||t==="\\lbrack"?(o="⎡",l="⎢",c="⎣",p="Size4-Regular",d="lbrack",m=667):t==="]"||t==="\\rbrack"?(o="⎤",l="⎥",c="⎦",p="Size4-Regular",d="rbrack",m=667):t==="\\lfloor"||t==="⌊"?(l=o="⎢",c="⎣",p="Size4-Regular",d="lfloor",m=667):t==="\\lceil"||t==="⌈"?(o="⎡",l=c="⎢",p="Size4-Regular",d="lceil",m=667):t==="\\rfloor"||t==="⌋"?(l=o="⎥",c="⎦",p="Size4-Regular",d="rfloor",m=667):t==="\\rceil"||t==="⌉"?(o="⎤",l=c="⎥",p="Size4-Regular",d="rceil",m=667):t==="("||t==="\\lparen"?(o="⎛",l="⎜",c="⎝",p="Size4-Regular",d="lparen",m=875):t===")"||t==="\\rparen"?(o="⎞",l="⎟",c="⎠",p="Size4-Regular",d="rparen",m=875):t==="\\{"||t==="\\lbrace"?(o="⎧",u="⎨",c="⎩",l="⎪",p="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",u="⎬",c="⎭",l="⎪",p="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",c="⎩",l="⎪",p="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",c="⎭",l="⎪",p="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",c="⎭",l="⎪",p="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",c="⎩",l="⎪",p="Size4-Regular");var b=Oi(o,p,a),E=b.height+b.depth,C=Oi(l,p,a),T=C.height+C.depth,S=Oi(c,p,a),v=S.height+S.depth,L=0,P=1;if(u!==null){var k=Oi(u,p,a);L=k.height+k.depth,P=2}var V=E+v+L,U=Math.max(0,Math.ceil((n-V)/(P*T))),q=V+U*P*T,B=i.fontMetrics().axisHeight;r&&(B*=i.sizeMultiplier);var K=q/2-B,Y=[];if(d.length>0){var X=q-E-v,j=Math.round(q*1e3),W=BC(d,Math.round(X*1e3)),ne=new pr(d,W),le=(m/1e3).toFixed(3)+"em",fe=(j/1e3).toFixed(3)+"em",oe=new Kn([ne],{width:le,height:fe,viewBox:"0 0 "+m+" "+j}),I=z.makeSvgSpan([],[oe],i);I.height=j/1e3,I.style.width=le,I.style.height=fe,Y.push({type:"elem",elem:I})}else{if(Y.push(Yo(c,p,a)),Y.push(Xa),u===null){var De=q-E-v+2*Xu;Y.push(Go(l,De,i))}else{var Ae=(q-E-v-L)/2+2*Xu;Y.push(Go(l,Ae,i)),Y.push(Xa),Y.push(Yo(u,p,a)),Y.push(Xa),Y.push(Go(l,Ae,i))}Y.push(Xa),Y.push(Yo(o,p,a))}var _=i.havingBaseStyle(be.TEXT),_e=z.makeVList({positionType:"bottom",positionData:K,children:Y},_);return T0(z.makeSpan(["delimsizing","mult"],[_e],_),be.TEXT,i,s)},Ko=80,Xo=.08,Qo=function(t,n,r,i,a){var s=PC(t,i,r),o=new pr(t,s),u=new Kn([o],{width:"400em",height:se(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return z.makeSvgSpan(["hide-tail"],[u],a)},Lw=function(t,n){var r=n.havingBaseSizing(),i=S2("\\surd",t*r.sizeMultiplier,v2,r),a=r.sizeMultiplier,s=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),o,u=0,l=0,c=0,d;return i.type==="small"?(c=1e3+1e3*s+Ko,t<1?a=1:t<1.4&&(a=.7),u=(1+s+Xo)/a,l=(1+s)/a,o=Qo("sqrtMain",u,c,s,n),o.style.minWidth="0.853em",d=.833/a):i.type==="large"?(c=(1e3+Ko)*Yi[i.size],l=(Yi[i.size]+s)/a,u=(Yi[i.size]+s+Xo)/a,o=Qo("sqrtSize"+i.size,u,c,s,n),o.style.minWidth="1.02em",d=1/a):(u=t+s+Xo,l=t+s,c=Math.floor(1e3*t+s)+Ko,o=Qo("sqrtTall",u,c,s,n),o.style.minWidth="0.742em",d=1.056),o.height=l,o.style.height=se(u),{span:o,advanceWidth:d,ruleWidth:(n.fontMetrics().sqrtRuleThickness+s)*a}},E2=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Pw=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],x2=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Yi=[0,1.2,1.8,2.4,3],Ow=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),pe.contains(E2,t)||pe.contains(x2,t))return y2(t,n,!1,r,i,a);if(pe.contains(Pw,t))return T2(t,Yi[n],!1,r,i,a);throw new te("Illegal delimiter: '"+t+"'")},Bw=[{type:"small",style:be.SCRIPTSCRIPT},{type:"small",style:be.SCRIPT},{type:"small",style:be.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Fw=[{type:"small",style:be.SCRIPTSCRIPT},{type:"small",style:be.SCRIPT},{type:"small",style:be.TEXT},{type:"stack"}],v2=[{type:"small",style:be.SCRIPTSCRIPT},{type:"small",style:be.SCRIPT},{type:"small",style:be.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Hw=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},S2=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),s=a;sn)return r[s]}return r[r.length-1]},A2=function(t,n,r,i,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;pe.contains(x2,t)?o=Bw:pe.contains(E2,t)?o=v2:o=Fw;var u=S2(t,n,o,i);return u.type==="small"?Mw(t,u.style,r,i,a,s):u.type==="large"?y2(t,u.size,r,i,a,s):T2(t,n,r,i,a,s)},zw=function(t,n,r,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,u=901,l=5/i.fontMetrics().ptPerEm,c=Math.max(n-o,r+o),d=Math.max(c/500*u,2*c-l);return A2(t,d,!0,i,a,s)},$n={sqrtImage:Lw,sizedDelim:Ow,sizeToMaxHeight:Yi,customSizedDelim:A2,leftRightDelim:zw},Bh={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Uw=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Xs(e,t){var n=Gs(e);if(n&&pe.contains(Uw,n.text))return n;throw n?new te("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new te("Invalid delimiter type '"+e.type+"'",e)}ce({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=Xs(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Bh[e.funcName].size,mclass:Bh[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?z.makeSpan([e.mclass]):$n.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(mn(e.delim,e.mode));var n=new ee.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=se($n.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function Fh(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ce({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new te("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Xs(t[0],e).text,color:n}}});ce({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Xs(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=we(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Fh(e);for(var n=xt(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,s=0;s{Fh(e);var n=Xt(e.body,t);if(e.left!=="."){var r=new ee.MathNode("mo",[mn(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new ee.MathNode("mo",[mn(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return p0(n)}});ce({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Xs(t[0],e);if(!e.parser.leftrightDepth)throw new te("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=da(t,[]);else{n=$n.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?mn("|","text"):mn(e.delim,e.mode),r=new ee.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var E0=(e,t)=>{var n=z.wrapFragment(Fe(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,s=0,o=pe.isCharacterBox(e.body);if(r==="sout")a=z.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var u=st({number:.6,unit:"pt"},t),l=st({number:.35,unit:"ex"},t),c=t.havingBaseSizing();i=i/c.sizeMultiplier;var d=n.height+n.depth+u+l;n.style.paddingLeft=se(d/2+u);var m=Math.floor(1e3*d*i),p=_C(m),b=new Kn([new pr("phase",p)],{width:"400em",height:se(m/1e3),viewBox:"0 0 400000 "+m,preserveAspectRatio:"xMinYMin slice"});a=z.makeSvgSpan(["hide-tail"],[b],t),a.style.height=se(d),s=n.depth+u+l}else{/cancel/.test(r)?o||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var E=0,C=0,T=0;/box/.test(r)?(T=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),E=t.fontMetrics().fboxsep+(r==="colorbox"?0:T),C=E):r==="angl"?(T=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),E=4*T,C=Math.max(0,.25-n.depth)):(E=o?.2:0,C=E),a=Qn.encloseSpan(n,r,E,C,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=se(T)):r==="angl"&&T!==.049&&(a.style.borderTopWidth=se(T),a.style.borderRightWidth=se(T)),s=n.depth+C,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var S;if(e.backgroundColor)S=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:n,shift:0}]},t);else{var v=/cancel|phase/.test(r)?["svg-align"]:[];S=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:v}]},t)}return/cancel/.test(r)&&(S.height=n.height,S.depth=n.depth),/cancel/.test(r)&&!o?z.makeSpan(["mord","cancel-lap"],[S],t):z.makeSpan(["mord"],[S],t)},x0=(e,t)=>{var n=0,r=new ee.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ge(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};ce({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=we(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:E0,mathmlBuilder:x0});ce({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=we(t[0],"color-token").color,s=we(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:E0,mathmlBuilder:x0});ce({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});ce({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:E0,mathmlBuilder:x0});ce({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var C2={};function Bn(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},u=0;u{var t=e.parser.settings;if(!t.displayMode)throw new te("{"+e.envName+"} can be used only in display mode.")};function v0(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function Tr(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:u,singleRow:l,emptySingleRow:c,maxNumCols:d,leqno:m}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var p=e.gullet.expandMacroAsText("\\arraystretch");if(p==null)s=1;else if(s=parseFloat(p),!s||s<0)throw new te("Invalid \\arraystretch: "+p)}e.gullet.beginGroup();var b=[],E=[b],C=[],T=[],S=u!=null?[]:void 0;function v(){u&&e.gullet.macros.set("\\@eqnsw","1",!0)}function L(){S&&(e.gullet.macros.get("\\df@tag")?(S.push(e.subparse([new hn("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):S.push(!!u&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(v(),T.push(Hh(e));;){var P=e.parseExpression(!1,l?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),P={type:"ordgroup",mode:e.mode,body:P},n&&(P={type:"styling",mode:e.mode,style:n,body:[P]}),b.push(P);var k=e.fetch().text;if(k==="&"){if(d&&b.length===d){if(l||o)throw new te("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(k==="\\end"){L(),b.length===1&&P.type==="styling"&&P.body[0].body.length===0&&(E.length>1||!c)&&E.pop(),T.length0&&(v+=.25),l.push({pos:v,isDashed:wt[Vt]})}for(L(s[0]),r=0;r0&&(K+=S,Vwt))for(r=0;r=o)){var qe=void 0;(i>0||t.hskipBeforeAndAfter)&&(qe=pe.deflt(Ae.pregap,m),qe!==0&&(W=z.makeSpan(["arraycolsep"],[]),W.style.width=se(qe),j.push(W)));var $e=[];for(r=0;r0){for(var ze=z.makeLineSpan("hline",n,c),dt=z.makeLineSpan("hdashline",n,c),Oe=[{type:"elem",elem:u,shift:0}];l.length>0;){var Xe=l.pop(),Pt=Xe.pos-Y;Xe.isDashed?Oe.push({type:"elem",elem:dt,shift:Pt}):Oe.push({type:"elem",elem:ze,shift:Pt})}u=z.makeVList({positionType:"individualShift",children:Oe},n)}if(le.length===0)return z.makeSpan(["mord"],[u],n);var Ot=z.makeVList({positionType:"individualShift",children:le},n);return Ot=z.makeSpan(["tag"],[Ot],n),z.makeFragment([u,Ot])},Vw={c:"center ",l:"left ",r:"right "},Hn=function(t,n){for(var r=[],i=new ee.MathNode("mtd",[],["mtr-glue"]),a=new ee.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var b=t.cols,E="",C=!1,T=0,S=b.length;b[0].type==="separator"&&(m+="top ",T=1),b[b.length-1].type==="separator"&&(m+="bottom ",S-=1);for(var v=T;v0?"left ":"",m+=U[U.length-1].length>0?"right ":"";for(var q=1;q-1?"alignat":"align",a=t.envName==="split",s=Tr(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:v0(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o,u=0,l={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var c="",d=0;d0&&p&&(C=1),r[b]={type:"align",align:E,pregap:C,postgap:0}}return s.colSeparationType=p?"align":"alignat",s};Bn({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Gs(t[0]),r=n?[t[0]]:we(t[0],"ordgroup").body,i=r.map(function(s){var o=b0(s),u=o.text;if("lcr".indexOf(u)!==-1)return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new te("Unknown column alignment: "+u,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Tr(e.parser,a,S0(e.envName))},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new te("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=Tr(e.parser,r,S0(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Tr(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Gs(t[0]),r=n?[t[0]]:we(t[0],"ordgroup").body,i=r.map(function(s){var o=b0(s),u=o.text;if("lc".indexOf(u)!==-1)return{type:"align",align:u};throw new te("Unknown column alignment: "+u,s)});if(i.length>1)throw new te("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=Tr(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new te("{subarray} can contain only one column");return a},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Tr(e.parser,t,S0(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:k2,htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){pe.contains(["gather","gather*"],e.envName)&&Qs(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:v0(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Tr(e.parser,t,"display")},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:k2,htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Qs(e);var t={autoTag:v0(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Tr(e.parser,t,"display")},htmlBuilder:Fn,mathmlBuilder:Hn});Bn({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Qs(e),Iw(e.parser)},htmlBuilder:Fn,mathmlBuilder:Hn});x("\\nonumber","\\gdef\\@eqnsw{0}");x("\\notag","\\nonumber");ce({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new te(e.funcName+" valid only within array environment")}});var zh=C2;ce({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new te("Invalid environment name",i);for(var a="",s=0;s{var n=e.font,r=t.withFont(n);return Fe(e.body,r)},N2=(e,t)=>{var n=e.font,r=t.withFont(n);return Ge(e.body,r)},Uh={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ce({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=As(t[0]),a=r;return a in Uh&&(a=Uh[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:I2,mathmlBuilder:N2});ce({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=pe.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:Ks(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});ce({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,s=n.parseExpression(!0,i),o="math"+r.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:n.mode,body:s}}},htmlBuilder:I2,mathmlBuilder:N2});var M2=(e,t)=>{var n=t;return e==="display"?n=n.id>=be.SCRIPT.id?n.text():be.DISPLAY:e==="text"&&n.size===be.DISPLAY.size?n=be.TEXT:e==="script"?n=be.SCRIPT:e==="scriptscript"&&(n=be.SCRIPTSCRIPT),n},A0=(e,t)=>{var n=M2(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var s=Fe(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,u=3.5/t.fontMetrics().ptPerEm;s.height=s.height0?b=3*m:b=7*m,E=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,b=m):(p=t.fontMetrics().num3,b=3*m),E=t.fontMetrics().denom2);var C;if(c){var S=t.fontMetrics().axisHeight;p-s.depth-(S+.5*d){var n=new ee.MathNode("mfrac",[Ge(e.numer,t),Ge(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=st(e.barSize,t);n.setAttribute("linethickness",se(r))}var i=M2(e.size,t.style);if(i.size!==t.style.size){n=new ee.MathNode("mstyle",[n]);var a=i.size===be.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new ee.MathNode("mo",[new ee.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(n),e.rightDelim!=null){var u=new ee.MathNode("mo",[new ee.TextNode(e.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),s.push(u)}return p0(s)}return n};ce({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],s,o=null,u=null,l="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",u=")";break;case"\\\\bracefrac":s=!1,o="\\{",u="\\}";break;case"\\\\brackfrac":s=!1,o="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":l="display";break;case"\\tfrac":case"\\tbinom":l="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:o,rightDelim:u,size:l,barSize:null}},htmlBuilder:A0,mathmlBuilder:C0});ce({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});ce({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var Vh=["display","text","script","scriptscript"],jh=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};ce({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=As(t[0]),s=a.type==="atom"&&a.family==="open"?jh(a.text):null,o=As(t[1]),u=o.type==="atom"&&o.family==="close"?jh(o.text):null,l=we(t[2],"size"),c,d=null;l.isBlank?c=!0:(d=l.value,c=d.number>0);var m="auto",p=t[3];if(p.type==="ordgroup"){if(p.body.length>0){var b=we(p.body[0],"textord");m=Vh[Number(b.text)]}}else p=we(p,"textord"),m=Vh[Number(p.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:c,barSize:d,leftDelim:s,rightDelim:u,size:m}},htmlBuilder:A0,mathmlBuilder:C0});ce({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:we(t[0],"size").value,token:i}}});ce({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=yC(we(t[1],"infix").size),s=t[2],o=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:A0,mathmlBuilder:C0});var R2=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?Fe(e.sup,t.havingStyle(n.sup()),t):Fe(e.sub,t.havingStyle(n.sub()),t),i=we(e.base,"horizBrace")):i=we(e,"horizBrace");var a=Fe(i.base,t.havingBaseStyle(be.DISPLAY)),s=Qn.svgSpan(i,t),o;if(i.isOver?(o=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=z.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),r){var u=z.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);i.isOver?o=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:r}]},t):o=z.makeVList({positionType:"bottom",positionData:u.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:u}]},t)}return z.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)},jw=(e,t)=>{var n=Qn.mathMLnode(e.label);return new ee.MathNode(e.isOver?"mover":"munder",[Ge(e.base,t),n])};ce({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:R2,mathmlBuilder:jw});ce({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=we(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:mt(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=xt(e.body,t,!1);return z.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=gr(e.body,t);return n instanceof tn||(n=new tn("mrow",[n])),n.setAttribute("href",e.href),n}});ce({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=we(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=we(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,u={};switch(r){case"\\htmlClass":u.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":u.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":u.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var l=a.split(","),c=0;c{var n=xt(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=z.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>gr(e.body,t)});ce({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:mt(t[0]),mathml:mt(t[1])}},htmlBuilder:(e,t)=>{var n=xt(e.html,t,!1);return z.makeFragment(n)},mathmlBuilder:(e,t)=>gr(e.mathml,t)});var Zo=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new te("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!Xp(r))throw new te("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};ce({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(n[0])for(var u=we(n[0],"raw").string,l=u.split(","),c=0;c{var n=st(e.height,t),r=0;e.totalheight.number>0&&(r=st(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=st(e.width,t));var a={height:se(n+r)};i>0&&(a.width=se(i)),r>0&&(a.verticalAlign=se(-r));var s=new jC(e.src,e.alt,a);return s.height=n,s.depth=r,s},mathmlBuilder:(e,t)=>{var n=new ee.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=st(e.height,t),i=0;if(e.totalheight.number>0&&(i=st(e.totalheight,t)-r,n.setAttribute("valign",se(-i))),n.setAttribute("height",se(r+i)),e.width.number>0){var a=st(e.width,t);n.setAttribute("width",se(a))}return n.setAttribute("src",e.src),n}});ce({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=we(t[0],"size");if(n.settings.strict){var a=r[1]==="m",s=i.value.unit==="mu";a?(s||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):s&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return z.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=st(e.dimension,t);return new ee.SpaceNode(n)}});ce({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=z.makeSpan([],[Fe(e.body,t)]),n=z.makeSpan(["inner"],[n],t)):n=z.makeSpan(["inner"],[Fe(e.body,t)]);var r=z.makeSpan(["fix"],[]),i=z.makeSpan([e.alignment],[n,r],t),a=z.makeSpan(["strut"]);return a.style.height=se(i.height+i.depth),i.depth&&(a.style.verticalAlign=se(-i.depth)),i.children.unshift(a),i=z.makeSpan(["thinbox"],[i],t),z.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new ee.MathNode("mpadded",[Ge(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});ce({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",s=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:s}}});ce({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new te("Mismatched "+e.funcName)}});var qh=(e,t)=>{switch(t.style.size){case be.DISPLAY.size:return e.display;case be.TEXT.size:return e.text;case be.SCRIPT.size:return e.script;case be.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ce({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:mt(t[0]),text:mt(t[1]),script:mt(t[2]),scriptscript:mt(t[3])}},htmlBuilder:(e,t)=>{var n=qh(e,t),r=xt(n,t,!1);return z.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=qh(e,t);return gr(n,t)}});var D2=(e,t,n,r,i,a,s)=>{e=z.makeSpan([],[e]);var o=n&&pe.isCharacterBox(n),u,l;if(t){var c=Fe(t,r.havingStyle(i.sup()),r);l={elem:c,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-c.depth)}}if(n){var d=Fe(n,r.havingStyle(i.sub()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var m;if(l&&u){var p=r.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+e.depth+s;m=z.makeVList({positionType:"bottom",positionData:p,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:se(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:se(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(u){var b=e.height-s;m=z.makeVList({positionType:"top",positionData:b,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:se(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e}]},r)}else if(l){var E=e.depth+s;m=z.makeVList({positionType:"bottom",positionData:E,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:se(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var C=[m];if(u&&a!==0&&!o){var T=z.makeSpan(["mspace"],[],r);T.style.marginRight=se(a),C.unshift(T)}return z.makeSpan(["mop","op-limits"],C,r)},_2=["\\smallint"],yi=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=we(e.base,"op"),i=!0):a=we(e,"op");var s=t.style,o=!1;s.size===be.DISPLAY.size&&a.symbol&&!pe.contains(_2,a.name)&&(o=!0);var u;if(a.symbol){var l=o?"Size2-Regular":"Size1-Regular",c="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(c=a.name.slice(1),a.name=c==="oiint"?"\\iint":"\\iiint"),u=z.makeSymbol(a.name,l,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),c.length>0){var d=u.italic,m=z.staticSvg(c+"Size"+(o?"2":"1"),t);u=z.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:m,shift:o?.08:0}]},t),a.name="\\"+c,u.classes.unshift("mop"),u.italic=d}}else if(a.body){var p=xt(a.body,t,!0);p.length===1&&p[0]instanceof fn?(u=p[0],u.classes[0]="mop"):u=z.makeSpan(["mop"],p,t)}else{for(var b=[],E=1;E{var n;if(e.symbol)n=new tn("mo",[mn(e.name,e.mode)]),pe.contains(_2,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new tn("mo",Xt(e.body,t));else{n=new tn("mi",[new kn(e.name.slice(1))]);var r=new tn("mo",[mn("⁡","text")]);e.parentIsSupSub?n=new tn("mrow",[n,r]):n=o2([n,r])}return n},qw={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ce({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=qw[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:yi,mathmlBuilder:Ca});ce({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:mt(r)}},htmlBuilder:yi,mathmlBuilder:Ca});var $w={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ce({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:yi,mathmlBuilder:Ca});ce({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:yi,mathmlBuilder:Ca});ce({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=$w[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:yi,mathmlBuilder:Ca});var L2=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=we(e.base,"operatorname"),i=!0):a=we(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(d=>{var m=d.text;return typeof m=="string"?{type:"textord",mode:d.mode,text:m}:d}),u=xt(o,t.withFont("mathrm"),!0),l=0;l{for(var n=Xt(e.body,t.withFont("mathrm")),r=!0,i=0;ic.toText()).join("");n=[new ee.TextNode(o)]}var u=new ee.MathNode("mi",n);u.setAttribute("mathvariant","normal");var l=new ee.MathNode("mo",[mn("⁡","text")]);return e.parentIsSupSub?new ee.MathNode("mrow",[u,l]):ee.newDocumentFragment([u,l])};ce({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:mt(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:L2,mathmlBuilder:Ww});x("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Fr({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?z.makeFragment(xt(e.body,t,!1)):z.makeSpan(["mord"],xt(e.body,t,!0),t)},mathmlBuilder(e,t){return gr(e.body,t,!0)}});ce({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=Fe(e.body,t.havingCrampedStyle()),r=z.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return z.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new ee.MathNode("mo",[new ee.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new ee.MathNode("mover",[Ge(e.body,t),n]);return r.setAttribute("accent","true"),r}});ce({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:mt(r)}},htmlBuilder:(e,t)=>{var n=xt(e.body,t.withPhantom(),!1);return z.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=Xt(e.body,t);return new ee.MathNode("mphantom",n)}});ce({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=z.makeSpan([],[Fe(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=Xt(mt(e.body),t),r=new ee.MathNode("mphantom",n),i=new ee.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});ce({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=z.makeSpan(["inner"],[Fe(e.body,t.withPhantom())]),r=z.makeSpan(["fix"],[]);return z.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=Xt(mt(e.body),t),r=new ee.MathNode("mphantom",n),i=new ee.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});ce({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=we(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Fe(e.body,t),r=st(e.dy,t);return z.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new ee.MathNode("mpadded",[Ge(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});ce({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ce({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=we(t[0],"size"),s=we(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&we(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var n=z.makeSpan(["mord","rule"],[],t),r=st(e.width,t),i=st(e.height,t),a=e.shift?st(e.shift,t):0;return n.style.borderRightWidth=se(r),n.style.borderTopWidth=se(i),n.style.bottom=se(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=st(e.width,t),r=st(e.height,t),i=e.shift?st(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new ee.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",se(n)),s.setAttribute("height",se(r));var o=new ee.MathNode("mpadded",[s]);return i>=0?o.setAttribute("height",se(i)):(o.setAttribute("height",se(i)),o.setAttribute("depth",se(-i))),o.setAttribute("voffset",se(i)),o}});function P2(e,t,n){for(var r=xt(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return P2(e.body,n,t)};ce({type:"sizing",names:$h,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:$h.indexOf(r)+1,body:a}},htmlBuilder:Yw,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=Xt(e.body,n),i=new ee.MathNode("mstyle",r);return i.setAttribute("mathsize",se(n.sizeMultiplier)),i}});ce({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,s=n[0]&&we(n[0],"ordgroup");if(s)for(var o="",u=0;u{var n=z.makeSpan([],[Fe(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new ee.MathNode("mpadded",[Ge(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});ce({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Fe(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=z.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+s&&(s=(s+d-n.height-n.depth)/2);var m=u.height-n.height-s-l;n.style.paddingLeft=se(c);var p=z.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+m)},{type:"elem",elem:u},{type:"kern",size:l}]},t);if(e.index){var b=t.havingStyle(be.SCRIPTSCRIPT),E=Fe(e.index,b,t),C=.6*(p.height-p.depth),T=z.makeVList({positionType:"shift",positionData:-C,children:[{type:"elem",elem:E}]},t),S=z.makeSpan(["root"],[T]);return z.makeSpan(["mord","sqrt"],[S,p],t)}else return z.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new ee.MathNode("mroot",[Ge(n,t),Ge(r,t)]):new ee.MathNode("msqrt",[Ge(n,t)])}});var Wh={display:be.DISPLAY,text:be.TEXT,script:be.SCRIPT,scriptscript:be.SCRIPTSCRIPT};ce({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),s=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var n=Wh[e.style],r=t.havingStyle(n).withFont("");return P2(e.body,r,t)},mathmlBuilder(e,t){var n=Wh[e.style],r=t.havingStyle(n),i=Xt(e.body,r),a=new ee.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var Gw=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===be.DISPLAY.size||r.alwaysHandleSupSub);return i?yi:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===be.DISPLAY.size||r.limits);return a?L2:null}else{if(r.type==="accent")return pe.isCharacterBox(r.base)?y0:null;if(r.type==="horizBrace"){var s=!t.sub;return s===r.isOver?R2:null}else return null}else return null};Fr({type:"supsub",htmlBuilder(e,t){var n=Gw(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,s=Fe(r,t),o,u,l=t.fontMetrics(),c=0,d=0,m=r&&pe.isCharacterBox(r);if(i){var p=t.havingStyle(t.style.sup());o=Fe(i,p,t),m||(c=s.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var b=t.havingStyle(t.style.sub());u=Fe(a,b,t),m||(d=s.depth+b.fontMetrics().subDrop*b.sizeMultiplier/t.sizeMultiplier)}var E;t.style===be.DISPLAY?E=l.sup1:t.style.cramped?E=l.sup3:E=l.sup2;var C=t.sizeMultiplier,T=se(.5/l.ptPerEm/C),S=null;if(u){var v=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof fn||v)&&(S=se(-s.italic))}var L;if(o&&u){c=Math.max(c,E,o.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var P=l.defaultRuleThickness,k=4*P;if(c-o.depth-(u.height-d)0&&(c+=V,d-=V)}var U=[{type:"elem",elem:u,shift:d,marginRight:T,marginLeft:S},{type:"elem",elem:o,shift:-c,marginRight:T}];L=z.makeVList({positionType:"individualShift",children:U},t)}else if(u){d=Math.max(d,l.sub1,u.height-.8*l.xHeight);var q=[{type:"elem",elem:u,marginLeft:S,marginRight:T}];L=z.makeVList({positionType:"shift",positionData:d,children:q},t)}else if(o)c=Math.max(c,E,o.depth+.25*l.xHeight),L=z.makeVList({positionType:"shift",positionData:-c,children:[{type:"elem",elem:o,marginRight:T}]},t);else throw new Error("supsub must have either sup or sub.");var B=Yu(s,"right")||"mord";return z.makeSpan([B],[s,z.makeSpan(["msupsub"],[L])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[Ge(e.base,t)];e.sub&&a.push(Ge(e.sub,t)),e.sup&&a.push(Ge(e.sup,t));var s;if(n)s=r?"mover":"munder";else if(e.sub)if(e.sup){var l=e.base;l&&l.type==="op"&&l.limits&&t.style===be.DISPLAY||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(t.style===be.DISPLAY||l.limits)?s="munderover":s="msubsup"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(t.style===be.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||t.style===be.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===be.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===be.DISPLAY)?s="mover":s="msup"}return new ee.MathNode(s,a)}});Fr({type:"atom",htmlBuilder(e,t){return z.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new ee.MathNode("mo",[mn(e.text,e.mode)]);if(e.family==="bin"){var r=g0(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var O2={mi:"italic",mn:"normal",mtext:"normal"};Fr({type:"mathord",htmlBuilder(e,t){return z.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new ee.MathNode("mi",[mn(e.text,e.mode,t)]),r=g0(e,t)||"italic";return r!==O2[n.type]&&n.setAttribute("mathvariant",r),n}});Fr({type:"textord",htmlBuilder(e,t){return z.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=mn(e.text,e.mode,t),r=g0(e,t)||"normal",i;return e.mode==="text"?i=new ee.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new ee.MathNode("mn",[n]):e.text==="\\prime"?i=new ee.MathNode("mo",[n]):i=new ee.MathNode("mi",[n]),r!==O2[i.type]&&i.setAttribute("mathvariant",r),i}});var Jo={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},eu={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Fr({type:"spacing",htmlBuilder(e,t){if(eu.hasOwnProperty(e.text)){var n=eu[e.text].className||"";if(e.mode==="text"){var r=z.makeOrd(e,t,"textord");return r.classes.push(n),r}else return z.makeSpan(["mspace",n],[z.mathsym(e.text,e.mode,t)],t)}else{if(Jo.hasOwnProperty(e.text))return z.makeSpan(["mspace",Jo[e.text]],[],t);throw new te('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(eu.hasOwnProperty(e.text))n=new ee.MathNode("mtext",[new ee.TextNode(" ")]);else{if(Jo.hasOwnProperty(e.text))return new ee.MathNode("mspace");throw new te('Unknown type of space "'+e.text+'"')}return n}});var Yh=()=>{var e=new ee.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Fr({type:"tag",mathmlBuilder(e,t){var n=new ee.MathNode("mtable",[new ee.MathNode("mtr",[Yh(),new ee.MathNode("mtd",[gr(e.body,t)]),Yh(),new ee.MathNode("mtd",[gr(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var Gh={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Kh={"\\textbf":"textbf","\\textmd":"textmd"},Kw={"\\textit":"textit","\\textup":"textup"},Xh=(e,t)=>{var n=e.font;if(n){if(Gh[n])return t.withTextFontFamily(Gh[n]);if(Kh[n])return t.withTextFontWeight(Kh[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Kw[n])};ce({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:mt(i),font:r}},htmlBuilder(e,t){var n=Xh(e,t),r=xt(e.body,n,!0);return z.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=Xh(e,t);return gr(e.body,n)}});ce({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Fe(e.body,t),r=z.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=z.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return z.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new ee.MathNode("mo",[new ee.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new ee.MathNode("munder",[Ge(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});ce({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Fe(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return z.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new ee.MathNode("mpadded",[Ge(e.body,t)],["vcenter"])}});ce({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new te("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=Qh(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),cr=a2,B2=`[ \r ]`,Xw="\\\\[a-zA-Z@]+",Qw="\\\\[^\uD800-\uDFFF]",Zw="("+Xw+")"+B2+"*",Jw=`\\\\( |[ \r ]+ ?)[ \r ]*`,Qu="[̀-ͯ]",ek=new RegExp(Qu+"+$"),tk="("+B2+"+)|"+(Jw+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Qu+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Qu+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Zw)+("|"+Qw+")");class Zh{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(tk,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new hn("EOF",new en(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new te("Unexpected character: '"+t[n]+"'",new hn(t[n],new en(this,n,n+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(` @@ -388,4 +388,4 @@ l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, -`),fR=e=>e.replace(/\\\[/g,"$$").replace(/\\\]/g,"$$").replace(/\\\(/g,"$").replace(/\\\)/g,"$"),mR={h1:e=>L.jsx(Ve,{...e,variant:"h1"}),h2:e=>L.jsx(Ve,{...e,variant:"h2"}),h3:e=>L.jsx(Ve,{...e,variant:"h3"}),h4:e=>L.jsx(Ve,{...e,variant:"h4"}),h5:e=>L.jsx(Ve,{...e,variant:"h5"}),h6:e=>L.jsx(Ve,{...e,variant:"h6"}),p:e=>L.jsx(Ve,{...e,variant:"body1"}),caption:e=>L.jsx(Ve,{...e,variant:"caption"}),table:e=>L.jsx(c5,{children:L.jsx(Jg,{...e})}),thead:p5,tbody:i5,tr:y5,th:hc,td:hc},pR=["script","iframe","style","form","input","textarea"],gR={...Is,tagNames:(Is.tagNames||[]).filter(e=>!pR.includes(e))},bR=({content:e})=>(e=hR(e),e=fR(e),L.jsx(dR,{children:L.jsx(jv,{remarkPlugins:[xh,i1],rehypePlugins:[zk,eR,[xh,i1,cR,gR]],components:mR,children:e})})),HR=()=>{const[{status:e,messages:t}]=H1(),n=O.useRef(null),r=O.useRef(null),[i,a]=O.useState(!0);O.useEffect(()=>{r.current?.scrollIntoView({behavior:"smooth"})},[t]);const s=cs(o=>{const{current:u}=n;u&&a(u.scrollHeight-u.scrollTop-u.clientHeight<10)});return L.jsxs(Je,{ref:n,sx:{flex:1,overflowX:"hidden",overflowY:"auto",gap:4},onScroll:s,children:[t.map(o=>L.jsx(yR,{message:o},o.id)),e==="opened"&&L.jsx(F9,{size:"large"}),L.jsx(ci,{ref:r,sx:{width:"100%",height:0}})]})},yR=O.memo(({message:e})=>{const{role:t,content:n}=e,[{status:r},{generate:i}]=H1(),[a,s]=O.useState(!1);O.useEffect(()=>{const d=setTimeout(()=>{s(!1)},2e3);return()=>clearTimeout(d)},[a]);const o=cs(()=>{navigator.clipboard.writeText(n),s(!0)}),u=cs(()=>{i(e)}),l=t==="user"?"flex-end":"flex-start",c=t==="user"?L.jsx(Ve,{variant:"body1",sx:{px:2,py:1.5,borderRadius:"0.5rem",backgroundColor:"background.default"},children:n}):L.jsx(bR,{content:n});return L.jsx(Je,{direction:"row",sx:{width:"100%",justifyContent:l},children:L.jsxs(Je,{sx:{maxWidth:"100%",gap:1},children:[c,L.jsxs(Je,{direction:"row",sx:{justifyContent:l,gap:2,color:"grey.600"},children:[L.jsx(ls,{variant:"text",startIcon:a?L.jsx(of,{}):L.jsx(uf,{}),onClick:o,children:"Copy"}),t==="assistant"&&L.jsx(ls,{variant:"text",startIcon:L.jsx(L5,{}),onClick:u,children:"Regenerate"})]},"actions")]})})}),TR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",height:"100%",justifyContent:"flex-start",alignItems:"stretch",overflow:"hidden"}}),ER=ue(Je)(({theme:e})=>{const{palette:t,spacing:n}=e;return{height:"100%",paddingBlock:n(3),paddingInline:n(2),gap:n(3),overflow:"hidden",transition:"width 0.3s ease-in-out",backgroundColor:t.grey[200]}}),xR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",height:"4rem",flex:"none",paddingBlock:t(2),paddingInline:t(4),overflow:"hidden"}}),vR=ue(Je)(({theme:e})=>{const{palette:t,spacing:n}=e;return{flex:1,alignItems:"center",overflow:"hidden",backgroundColor:t.grey[100]}}),SR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"48.75rem",maxWidth:"100%",height:"100%",gap:t(4),padding:t(4),overflow:"hidden"}}),zR=({children:e})=>{const[{modelName:t,clusterInfo:{status:n}}]=fa(),[r,{open:i}]=so({color:"primary",titleIcon:L.jsx(Ja,{}),title:"Reconnect your nodes",content:L.jsxs(Je,{sx:{gap:7},children:[L.jsxs(Je,{sx:{gap:1},children:[L.jsx(Ve,{variant:"body1",children:"Run join command on your new Node"}),L.jsx(gc,{})]}),L.jsxs(Je,{sx:{gap:1},children:[L.jsx(Ve,{variant:"body1",children:"Check your live node status"}),L.jsx(Ve,{variant:"body2",color:"text.disabled",children:"After you successfully start the server on the nodes, you should see them show up on the below dashboard."}),L.jsx(Fa,{})]})]}),confirmLabel:"Finish"});O.useEffect(()=>{n==="waiting"&&i()},[n,i]);const[a,{open:s}]=so({color:"primary",title:"",content:L.jsxs(L.Fragment,{children:[L.jsx(Ve,{variant:"body1",children:"Cluster rebalancing"}),L.jsx(Ve,{variant:"body2",color:"text.disabled",children:"We have noticed one of your nodes has been disconnected. We are now rebalancing your inference requests onto working nodes. Please wait a few seconds for the cluster to rebalance itself."}),L.jsx(Fa,{variant:"menu"})]}),confirmLabel:"Finish"});O.useEffect(()=>{n==="rebalancing"&&s()},[n,s]);const[o,u]=O.useState(!0),[l,{open:c}]=so({color:"primary",titleIcon:L.jsx(v5,{}),title:"Add Nodes",content:L.jsxs(Je,{sx:{gap:7},children:[L.jsxs(Je,{sx:{gap:1},children:[L.jsx(Ve,{variant:"body1",children:"Run join command on your new Node"}),L.jsx(gc,{})]}),L.jsxs(Je,{sx:{gap:1},children:[L.jsx(Ve,{variant:"body1",children:"Check your live node status"}),L.jsx(Ve,{variant:"body2",color:"text.disabled",children:"After you successfully start the server on the nodes, you should see them show up on the below dashboard."}),L.jsx(Fa,{})]})]})});return L.jsxs(TR,{direction:"row",children:[L.jsxs(ER,{sx:{width:o?"21.875rem":"3.5rem"},children:[L.jsxs(Je,{direction:"row",sx:{justifyContent:"flex-end",alignItems:"center",gap:2},children:[o&&L.jsx(z5,{}),L.jsx(ci,{sx:{flex:1}}),L.jsx(ul,{size:"em",sx:{fontSize:"1.5rem"},onClick:()=>u(d=>!d),children:o?L.jsx(w5,{}):L.jsx(I5,{})})]}),o&&L.jsxs(Je,{sx:{gap:4},children:[L.jsx(Fa,{variant:"menu"}),L.jsx(ls,{color:"info",startIcon:L.jsx(D5,{}),onClick:c,children:"Add Nodes"})]})]}),L.jsxs(vR,{children:[L.jsx(xR,{direction:"row",children:L.jsx(Ve,{variant:"h2",fontWeight:500,children:t})}),L.jsx(SR,{children:e})]}),l,r,a]})},AR=ue(Je)(({theme:e})=>{const{palette:t,spacing:n}=e;return{width:"100%",height:"100%",display:"flex",alignItems:"center",gap:n(3),padding:n(3),overflow:"hidden",backgroundColor:t.grey[100]}}),CR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",flex:"none",justifyContent:"flex-start",alignItems:"center",gap:t(1)}}),wR=ue(ci)(({theme:e})=>{const{spacing:t}=e;return{position:"relative",flex:"1",width:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",overflowY:"hidden"}}),kR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"30rem",height:"100%",gap:t(7),overflow:"hidden"}}),IR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"calc((100% - 30rem) / 2 - 4rem)",height:"100%",overflow:"auto",position:"absolute",top:0,left:"2rem",alignItems:"flex-end",gap:t(2)}}),NR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"calc((100% - 30rem) / 2 - 4rem)",height:"100%",overflow:"auto",position:"absolute",top:0,right:"2rem",alignItems:"flex-start",gap:t(2)}}),UR=({children:e,contentStart:t,contentEnd:n=L.jsx(MR,{})})=>L.jsxs(AR,{children:[L.jsx(CR,{direction:"row",children:L.jsx(H5,{})}),L.jsxs(wR,{children:[L.jsx(kR,{children:e}),t&&L.jsx(IR,{children:t})||void 0,n&&L.jsx(NR,{children:n})||void 0]})]}),MR=()=>{const[{initNodesNumber:e,networkType:t,modelName:n,clusterInfo:r}]=fa();return null};export{HR as C,F9 as D,V1 as F,K1 as I,gc as J,UR as M,Fa as N,nf as O,af as S,_R as a,DR as b,j1 as c,G1 as d,zR as e,ll as f,A3 as i,cl as u}; +`),fR=e=>e.replace(/\\\[/g,"$$").replace(/\\\]/g,"$$").replace(/\\\(/g,"$").replace(/\\\)/g,"$"),mR={h1:e=>D.jsx(Ve,{...e,variant:"h1"}),h2:e=>D.jsx(Ve,{...e,variant:"h2"}),h3:e=>D.jsx(Ve,{...e,variant:"h3"}),h4:e=>D.jsx(Ve,{...e,variant:"h4"}),h5:e=>D.jsx(Ve,{...e,variant:"h5"}),h6:e=>D.jsx(Ve,{...e,variant:"h6"}),p:e=>D.jsx(Ve,{...e,variant:"body1"}),caption:e=>D.jsx(Ve,{...e,variant:"caption"}),table:e=>D.jsx(c5,{children:D.jsx(Jg,{...e})}),thead:p5,tbody:i5,tr:y5,th:hc,td:hc},pR=["script","iframe","style","form","input","textarea"],gR={...Is,tagNames:(Is.tagNames||[]).filter(e=>!pR.includes(e))},bR=({content:e})=>(e=hR(e),e=fR(e),D.jsx(dR,{children:D.jsx(jv,{remarkPlugins:[xh,i1],rehypePlugins:[zk,eR,[xh,i1,cR,gR]],components:mR,children:e})})),HR=()=>{const[{status:e,messages:t}]=H1(),n=O.useRef(null),r=O.useRef(null),[i,a]=O.useState(!0);O.useEffect(()=>{r.current?.scrollIntoView({behavior:"smooth"})},[t]);const s=cs(o=>{const{current:u}=n;u&&a(u.scrollHeight-u.scrollTop-u.clientHeight<10)});return D.jsxs(Je,{ref:n,sx:{flex:1,overflowX:"hidden",overflowY:"auto",gap:4},onScroll:s,children:[t.map(o=>D.jsx(yR,{message:o},o.id)),e==="opened"&&D.jsx(Fy,{size:"large"}),D.jsx(ci,{ref:r,sx:{width:"100%",height:0}})]})},yR=O.memo(({message:e})=>{const{role:t,content:n}=e,[{status:r},{generate:i}]=H1(),[a,s]=O.useState(!1);O.useEffect(()=>{const d=setTimeout(()=>{s(!1)},2e3);return()=>clearTimeout(d)},[a]);const o=cs(()=>{navigator.clipboard.writeText(n),s(!0)}),u=cs(()=>{i(e)}),l=t==="user"?"flex-end":"flex-start",c=t==="user"?D.jsx(Ve,{variant:"body1",sx:{px:2,py:1.5,borderRadius:"0.5rem",backgroundColor:"background.default"},children:n}):D.jsx(bR,{content:n});return D.jsx(Je,{direction:"row",sx:{width:"100%",justifyContent:l},children:D.jsxs(Je,{sx:{maxWidth:"100%",gap:1},children:[c,D.jsxs(Je,{direction:"row",sx:{justifyContent:l,gap:2,color:"grey.600"},children:[D.jsx(ls,{variant:"text",startIcon:a?D.jsx(of,{}):D.jsx(uf,{}),onClick:o,children:"Copy"}),t==="assistant"&&D.jsx(ls,{variant:"text",startIcon:D.jsx(L5,{}),onClick:u,children:"Regenerate"})]},"actions")]})})}),TR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",height:"100%",justifyContent:"flex-start",alignItems:"stretch",overflow:"hidden"}}),ER=ue(Je)(({theme:e})=>{const{palette:t,spacing:n}=e;return{height:"100%",paddingBlock:n(3),paddingInline:n(2),gap:n(3),overflow:"hidden",transition:"width 0.3s ease-in-out",backgroundColor:t.grey[200]}}),xR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",height:"4rem",flex:"none",paddingBlock:t(2),paddingInline:t(4),overflow:"hidden"}}),vR=ue(Je)(({theme:e})=>{const{palette:t,spacing:n}=e;return{flex:1,alignItems:"center",overflow:"hidden",backgroundColor:t.grey[100]}}),SR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"48.75rem",maxWidth:"100%",height:"100%",gap:t(4),padding:t(4),overflow:"hidden"}}),zR=({children:e})=>{const[{modelName:t,clusterInfo:{status:n}}]=fa(),[r,{open:i}]=so({color:"primary",titleIcon:D.jsx(Ja,{}),title:"Reconnect your nodes",content:D.jsxs(Je,{sx:{gap:7},children:[D.jsxs(Je,{sx:{gap:1},children:[D.jsx(Ve,{variant:"body1",children:"Run join command on your new Node"}),D.jsx(gc,{})]}),D.jsxs(Je,{sx:{gap:1},children:[D.jsx(Ve,{variant:"body1",children:"Check your live node status"}),D.jsx(Ve,{variant:"body2",color:"text.disabled",children:"After you successfully start the server on the nodes, you should see them show up on the below dashboard."}),D.jsx(Fa,{})]})]}),confirmLabel:"Finish"});O.useEffect(()=>{n==="waiting"&&i()},[n,i]);const[a,{open:s}]=so({color:"primary",title:"",content:D.jsxs(D.Fragment,{children:[D.jsx(Ve,{variant:"body1",children:"Cluster rebalancing"}),D.jsx(Ve,{variant:"body2",color:"text.disabled",children:"We have noticed one of your nodes has been disconnected. We are now rebalancing your inference requests onto working nodes. Please wait a few seconds for the cluster to rebalance itself."}),D.jsx(Fa,{variant:"menu"})]}),confirmLabel:"Finish"});O.useEffect(()=>{n==="rebalancing"&&s()},[n,s]);const[o,u]=O.useState(!0),[l,{open:c}]=so({color:"primary",titleIcon:D.jsx(v5,{}),title:"Add Nodes",content:D.jsxs(Je,{sx:{gap:7},children:[D.jsxs(Je,{sx:{gap:1},children:[D.jsx(Ve,{variant:"body1",children:"Run join command on your new Node"}),D.jsx(gc,{})]}),D.jsxs(Je,{sx:{gap:1},children:[D.jsx(Ve,{variant:"body1",children:"Check your live node status"}),D.jsx(Ve,{variant:"body2",color:"text.disabled",children:"After you successfully start the server on the nodes, you should see them show up on the below dashboard."}),D.jsx(Fa,{})]})]})});return D.jsxs(TR,{direction:"row",children:[D.jsxs(ER,{sx:{width:o?"21.875rem":"3.5rem"},children:[D.jsxs(Je,{direction:"row",sx:{justifyContent:"flex-end",alignItems:"center",gap:2},children:[o&&D.jsx(z5,{}),D.jsx(ci,{sx:{flex:1}}),D.jsx(ul,{size:"em",sx:{fontSize:"1.5rem"},onClick:()=>u(d=>!d),children:o?D.jsx(w5,{}):D.jsx(I5,{})})]}),o&&D.jsxs(Je,{sx:{gap:4},children:[D.jsx(Fa,{variant:"menu"}),D.jsx(ls,{color:"info",startIcon:D.jsx(D5,{}),onClick:c,children:"Add Nodes"})]})]}),D.jsxs(vR,{children:[D.jsx(xR,{direction:"row",children:D.jsx(Ve,{variant:"h2",fontWeight:500,children:t})}),D.jsx(SR,{children:e})]}),l,r,a]})},AR=ue(Je)(({theme:e})=>{const{palette:t,spacing:n}=e;return{width:"100%",height:"100%",display:"flex",alignItems:"center",gap:n(3),padding:n(3),overflow:"hidden",backgroundColor:t.grey[100]}}),CR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",flex:"none",justifyContent:"flex-start",alignItems:"center",gap:t(1)}}),wR=ue(ci)(({theme:e})=>{const{spacing:t}=e;return{position:"relative",flex:"1",width:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",overflowY:"hidden"}}),kR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"30rem",height:"100%",gap:t(7),overflow:"hidden"}}),IR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"calc((100% - 30rem) / 2 - 4rem)",height:"100%",overflow:"auto",position:"absolute",top:0,left:"2rem",alignItems:"flex-end",gap:t(2)}}),NR=ue(Je)(({theme:e})=>{const{spacing:t}=e;return{width:"calc((100% - 30rem) / 2 - 4rem)",height:"100%",overflow:"auto",position:"absolute",top:0,right:"2rem",alignItems:"flex-start",gap:t(2)}}),UR=({children:e,contentStart:t,contentEnd:n=D.jsx(MR,{})})=>D.jsxs(AR,{children:[D.jsx(CR,{direction:"row",children:D.jsx(H5,{})}),D.jsxs(wR,{children:[D.jsx(kR,{children:e}),t&&D.jsx(IR,{children:t})||void 0,n&&D.jsx(NR,{children:n})||void 0]})]}),MR=()=>{const[{initNodesNumber:e,networkType:t,modelName:n,clusterInfo:r}]=fa();return null};export{HR as C,Fy as D,V1 as F,K1 as I,gc as J,UR as M,Fa as N,nf as O,af as S,_R as a,DR as b,j1 as c,G1 as d,zR as e,ll as f,A3 as i,cl as u}; diff --git a/src/frontend/dist/assets/setup-Bsllr9Nn.js b/src/frontend/dist/assets/setup-DchpltJe.js similarity index 98% rename from src/frontend/dist/assets/setup-Bsllr9Nn.js rename to src/frontend/dist/assets/setup-DchpltJe.js index 0b8ba4ce..59e8029f 100644 --- a/src/frontend/dist/assets/setup-Bsllr9Nn.js +++ b/src/frontend/dist/assets/setup-DchpltJe.js @@ -1 +1 @@ -import{r as i,a as X,u as G,j as o,s as L,c as M,b as S,d as I,g as V,B as D,m as A,t as C,e as F,f as Y,h as H,i as _,k as q,l as J,T as b,n as K,S as Q}from"./index-BlRBE7Ft.js";import{O as Z,M as tt,a as et}from"./main-layout-C11OgrSN.js";function ot(t){return i.Children.toArray(t).filter(e=>i.isValidElement(e))}const E=i.createContext({}),U=i.createContext(void 0);function rt(t,e){return e===void 0||t===void 0?!1:Array.isArray(e)?e.includes(t):t===e}const st=t=>{const{classes:e,fullWidth:a,selected:p,disabled:d,size:g,color:x}=t,u={root:["root",p&&"selected",d&&"disabled",a&&"fullWidth",`size${S(g)}`,x]};return I(u,V,e)},at=L(D,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:a}=t;return[e.root,e[`size${S(a.size)}`]]}})(A(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${C.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${C.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(F()).map(([e])=>({props:{color:e},style:{[`&.${C.selected}`]:{color:(t.vars||t).palette[e].main,backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),W=i.forwardRef(function(e,a){const{value:p,...d}=i.useContext(E),g=i.useContext(U),x=X({...d,selected:rt(e.value,p)},e),u=G({props:x,name:"MuiToggleButton"}),{children:$,className:v,color:l="standard",disabled:B=!1,disableFocusRipple:h=!1,fullWidth:n=!1,onChange:R,onClick:T,selected:f,size:k="medium",value:j,...z}=u,m={...u,color:l,disabled:B,disableFocusRipple:h,fullWidth:n,size:k},O=st(m),P=s=>{T&&(T(s,j),s.defaultPrevented)||R&&R(s,j)},c=g||"";return o.jsx(at,{className:M(d.className,O.root,v,c),disabled:B,focusRipple:!h,ref:a,onClick:P,onChange:R,value:j,ownerState:m,"aria-pressed":f,...z,children:$})});function nt(t){return H("MuiToggleButtonGroup",t)}const r=Y("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),lt=t=>{const{classes:e,orientation:a,fullWidth:p,disabled:d}=t,g={root:["root",a,p&&"fullWidth"],grouped:["grouped",`grouped${S(a)}`,d&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return I(g,nt,e)},it=L("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:a}=t;return[{[`& .${r.grouped}`]:e.grouped},{[`& .${r.grouped}`]:e[`grouped${S(a.orientation)}`]},{[`& .${r.firstButton}`]:e.firstButton},{[`& .${r.lastButton}`]:e.lastButton},{[`& .${r.middleButton}`]:e.middleButton},e.root,a.orientation==="vertical"&&e.vertical,a.fullWidth&&e.fullWidth]}})(A(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${r.grouped}`]:{[`&.${r.selected} + .${r.grouped}.${r.selected}`]:{borderTop:0,marginTop:0}},[`& .${r.firstButton},& .${r.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${r.lastButton},& .${r.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${r.lastButton}.${C.disabled},& .${r.middleButton}.${C.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${r.grouped}`]:{[`&.${r.selected} + .${r.grouped}.${r.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${r.firstButton},& .${r.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${r.lastButton},& .${r.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${r.lastButton}.${C.disabled},& .${r.middleButton}.${C.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),dt=i.forwardRef(function(e,a){const p=G({props:e,name:"MuiToggleButtonGroup"}),{children:d,className:g,color:x="standard",disabled:u=!1,exclusive:$=!1,fullWidth:v=!1,onChange:l,orientation:B="horizontal",size:h="medium",value:n,...R}=p,T={...p,disabled:u,fullWidth:v,orientation:B,size:h},f=lt(T),k=i.useCallback((c,s)=>{if(!l)return;const w=n&&n.indexOf(s);let N;n&&w>=0?(N=n.slice(),N.splice(w,1)):N=n?n.concat(s):[s],l(c,N)},[l,n]),j=i.useCallback((c,s)=>{l&&l(c,n===s?null:s)},[l,n]),z=i.useMemo(()=>({className:f.grouped,onChange:$?j:k,value:n,size:h,fullWidth:v,color:x,disabled:u}),[f.grouped,$,j,k,n,h,v,x,u]),m=ot(d),O=m.length,P=c=>{const s=c===0,w=c===O-1;return s&&w?"":s?f.firstButton:w?f.lastButton:f.middleButton};return o.jsx(it,{role:"group",className:M(f.root,g),ref:a,ownerState:T,...R,children:o.jsx(E.Provider,{value:z,children:m.map((c,s)=>o.jsx(U.Provider,{value:P(s),children:c},s))})})}),ut=t=>o.jsx(Z,{type:"number",...t,inputRef:t.inputRef,slotProps:{input:{step:1,sx:{textAlign:"center",...t.slotProps?.input?.sx},...t.slotProps?.input},...t.slotProps},"data-debug-typeof":typeof t.value}),y=L(Q)(({theme:t})=>{const{spacing:e}=t;return{overflowY:"auto"}});function gt(){const[{networkType:t,initNodesNumber:e,modelName:a,modelInfoList:p},{setNetworkType:d,setInitNodesNumber:g,setModelName:x,init:u}]=_(),$=q(),v=J(()=>{u(),$("/join")});return o.jsxs(tt,{children:[o.jsx(b,{variant:"h1",children:"Build Your Own AI Cluster"}),o.jsxs(y,{gap:2.5,children:[o.jsxs(y,{gap:.5,children:[o.jsx(b,{variant:"body1",children:"Step 1 - Specify the initial number of worker nodes to join"}),o.jsx(b,{variant:"body2",color:"text.secondary",fontWeight:"regular",children:"XXX Explainations here"})]}),o.jsxs(y,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:2,children:[o.jsx(b,{color:"text.secondary",children:"Node Number"}),o.jsx(ut,{sx:{width:"10rem"},value:e,onChange:l=>g(Number(l.target.value))})]}),o.jsxs(y,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:2,children:[o.jsx(b,{color:"text.secondary",children:"Are you nodes within the same local network?"}),o.jsxs(dt,{sx:{width:"10rem"},exclusive:!0,value:t,onChange:(l,B)=>B&&d(B),children:[o.jsx(W,{value:"local",children:"Local"}),o.jsx(W,{value:"remote",children:"Remote"})]})]})]}),o.jsxs(y,{gap:2.5,children:[o.jsxs(y,{gap:.5,children:[o.jsx(b,{variant:"body1",children:"Step 2 - Select the model you would like to host"}),o.jsx(b,{variant:"body2",color:"text.secondary",fontWeight:"regular",children:"XXX Explainations here"})]}),o.jsx(et,{})]}),o.jsx(y,{direction:"row",justifyContent:"flex-end",alignItems:"center",gap:2,children:o.jsx(K,{onClick:v,children:"Continue"})})]})}export{gt as default}; +import{r as i,a as X,u as G,j as o,s as L,c as M,b as S,d as I,g as V,B as D,m as A,t as C,e as F,f as Y,h as H,i as _,k as q,l as J,T as b,n as K,S as Q}from"./index-Bht8DC43.js";import{O as Z,M as tt,a as et}from"./main-layout-goXDayPH.js";function ot(t){return i.Children.toArray(t).filter(e=>i.isValidElement(e))}const E=i.createContext({}),U=i.createContext(void 0);function rt(t,e){return e===void 0||t===void 0?!1:Array.isArray(e)?e.includes(t):t===e}const st=t=>{const{classes:e,fullWidth:a,selected:p,disabled:d,size:g,color:x}=t,u={root:["root",p&&"selected",d&&"disabled",a&&"fullWidth",`size${S(g)}`,x]};return I(u,V,e)},at=L(D,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:a}=t;return[e.root,e[`size${S(a.size)}`]]}})(A(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${C.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${C.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(F()).map(([e])=>({props:{color:e},style:{[`&.${C.selected}`]:{color:(t.vars||t).palette[e].main,backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),W=i.forwardRef(function(e,a){const{value:p,...d}=i.useContext(E),g=i.useContext(U),x=X({...d,selected:rt(e.value,p)},e),u=G({props:x,name:"MuiToggleButton"}),{children:$,className:v,color:l="standard",disabled:B=!1,disableFocusRipple:h=!1,fullWidth:n=!1,onChange:R,onClick:T,selected:f,size:k="medium",value:j,...z}=u,m={...u,color:l,disabled:B,disableFocusRipple:h,fullWidth:n,size:k},O=st(m),P=s=>{T&&(T(s,j),s.defaultPrevented)||R&&R(s,j)},c=g||"";return o.jsx(at,{className:M(d.className,O.root,v,c),disabled:B,focusRipple:!h,ref:a,onClick:P,onChange:R,value:j,ownerState:m,"aria-pressed":f,...z,children:$})});function nt(t){return H("MuiToggleButtonGroup",t)}const r=Y("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),lt=t=>{const{classes:e,orientation:a,fullWidth:p,disabled:d}=t,g={root:["root",a,p&&"fullWidth"],grouped:["grouped",`grouped${S(a)}`,d&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return I(g,nt,e)},it=L("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:a}=t;return[{[`& .${r.grouped}`]:e.grouped},{[`& .${r.grouped}`]:e[`grouped${S(a.orientation)}`]},{[`& .${r.firstButton}`]:e.firstButton},{[`& .${r.lastButton}`]:e.lastButton},{[`& .${r.middleButton}`]:e.middleButton},e.root,a.orientation==="vertical"&&e.vertical,a.fullWidth&&e.fullWidth]}})(A(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${r.grouped}`]:{[`&.${r.selected} + .${r.grouped}.${r.selected}`]:{borderTop:0,marginTop:0}},[`& .${r.firstButton},& .${r.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${r.lastButton},& .${r.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${r.lastButton}.${C.disabled},& .${r.middleButton}.${C.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${r.grouped}`]:{[`&.${r.selected} + .${r.grouped}.${r.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${r.firstButton},& .${r.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${r.lastButton},& .${r.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${r.lastButton}.${C.disabled},& .${r.middleButton}.${C.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),dt=i.forwardRef(function(e,a){const p=G({props:e,name:"MuiToggleButtonGroup"}),{children:d,className:g,color:x="standard",disabled:u=!1,exclusive:$=!1,fullWidth:v=!1,onChange:l,orientation:B="horizontal",size:h="medium",value:n,...R}=p,T={...p,disabled:u,fullWidth:v,orientation:B,size:h},f=lt(T),k=i.useCallback((c,s)=>{if(!l)return;const w=n&&n.indexOf(s);let N;n&&w>=0?(N=n.slice(),N.splice(w,1)):N=n?n.concat(s):[s],l(c,N)},[l,n]),j=i.useCallback((c,s)=>{l&&l(c,n===s?null:s)},[l,n]),z=i.useMemo(()=>({className:f.grouped,onChange:$?j:k,value:n,size:h,fullWidth:v,color:x,disabled:u}),[f.grouped,$,j,k,n,h,v,x,u]),m=ot(d),O=m.length,P=c=>{const s=c===0,w=c===O-1;return s&&w?"":s?f.firstButton:w?f.lastButton:f.middleButton};return o.jsx(it,{role:"group",className:M(f.root,g),ref:a,ownerState:T,...R,children:o.jsx(E.Provider,{value:z,children:m.map((c,s)=>o.jsx(U.Provider,{value:P(s),children:c},s))})})}),ut=t=>o.jsx(Z,{type:"number",...t,inputRef:t.inputRef,slotProps:{input:{step:1,sx:{textAlign:"center",...t.slotProps?.input?.sx},...t.slotProps?.input},...t.slotProps},"data-debug-typeof":typeof t.value}),y=L(Q)(({theme:t})=>{const{spacing:e}=t;return{overflowY:"auto"}});function gt(){const[{networkType:t,initNodesNumber:e,modelName:a,modelInfoList:p},{setNetworkType:d,setInitNodesNumber:g,setModelName:x,init:u}]=_(),$=q(),v=J(()=>{u(),$("/join")});return o.jsxs(tt,{children:[o.jsx(b,{variant:"h1",children:"Build Your Own AI Cluster"}),o.jsxs(y,{gap:2.5,children:[o.jsxs(y,{gap:.5,children:[o.jsx(b,{variant:"body1",children:"Step 1 - Specify the initial number of worker nodes to join"}),o.jsx(b,{variant:"body2",color:"text.secondary",fontWeight:"regular",children:"XXX Explainations here"})]}),o.jsxs(y,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:2,children:[o.jsx(b,{color:"text.secondary",children:"Node Number"}),o.jsx(ut,{sx:{width:"10rem"},value:e,onChange:l=>g(Number(l.target.value))})]}),o.jsxs(y,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:2,children:[o.jsx(b,{color:"text.secondary",children:"Are you nodes within the same local network?"}),o.jsxs(dt,{sx:{width:"10rem"},exclusive:!0,value:t,onChange:(l,B)=>B&&d(B),children:[o.jsx(W,{value:"local",children:"Local"}),o.jsx(W,{value:"remote",children:"Remote"})]})]})]}),o.jsxs(y,{gap:2.5,children:[o.jsxs(y,{gap:.5,children:[o.jsx(b,{variant:"body1",children:"Step 2 - Select the model you would like to host"}),o.jsx(b,{variant:"body2",color:"text.secondary",fontWeight:"regular",children:"XXX Explainations here"})]}),o.jsx(et,{})]}),o.jsx(y,{direction:"row",justifyContent:"flex-end",alignItems:"center",gap:2,children:o.jsx(K,{onClick:v,children:"Continue"})})]})}export{gt as default}; diff --git a/src/frontend/dist/index.html b/src/frontend/dist/index.html index d2279363..eacf440a 100644 --- a/src/frontend/dist/index.html +++ b/src/frontend/dist/index.html @@ -2,10 +2,10 @@ - + Parallax Open Source - + diff --git a/src/frontend/dist/vite.svg b/src/frontend/dist/vite.svg deleted file mode 100644 index e7b8dfb1..00000000 --- a/src/frontend/dist/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file